@serverlessworkflow/sdk 1.0.0-alpha5.0 → 1.0.0

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 (100) hide show
  1. package/README.md +6 -6
  2. package/esm/index.esm.js +2040 -1121
  3. package/esm/index.esm.js.map +1 -1
  4. package/esm/index.esm.min.js +7 -7
  5. package/esm/index.esm.min.js.map +1 -1
  6. package/lib/generated/builders/any-event-consumption-strategy-until-builder.d.ts +14 -0
  7. package/lib/generated/builders/any-event-consumption-strategy-until-builder.d.ts.map +1 -0
  8. package/lib/generated/builders/any-event-until-consumed-builder.d.ts +14 -0
  9. package/lib/generated/builders/any-event-until-consumed-builder.d.ts.map +1 -0
  10. package/lib/generated/builders/container-lifetime-builder.d.ts +14 -0
  11. package/lib/generated/builders/container-lifetime-builder.d.ts.map +1 -0
  12. package/lib/generated/builders/error-filter-builder.d.ts +14 -0
  13. package/lib/generated/builders/error-filter-builder.d.ts.map +1 -0
  14. package/lib/generated/builders/event-data-builder.d.ts +14 -0
  15. package/lib/generated/builders/event-data-builder.d.ts.map +1 -0
  16. package/lib/generated/builders/http-body-builder.d.ts +14 -0
  17. package/lib/generated/builders/http-body-builder.d.ts.map +1 -0
  18. package/lib/generated/builders/http-headers-builder.d.ts +14 -0
  19. package/lib/generated/builders/http-headers-builder.d.ts.map +1 -0
  20. package/lib/generated/builders/http-query-builder.d.ts +14 -0
  21. package/lib/generated/builders/http-query-builder.d.ts.map +1 -0
  22. package/lib/generated/builders/index.d.ts +11 -6
  23. package/lib/generated/builders/index.d.ts.map +1 -1
  24. package/lib/generated/builders/raise-task-error-builder.d.ts +14 -0
  25. package/lib/generated/builders/raise-task-error-builder.d.ts.map +1 -0
  26. package/lib/generated/builders/subscription-iterator-builder.d.ts +14 -0
  27. package/lib/generated/builders/subscription-iterator-builder.d.ts.map +1 -0
  28. package/lib/generated/builders/task-timeout-builder.d.ts +14 -0
  29. package/lib/generated/builders/task-timeout-builder.d.ts.map +1 -0
  30. package/lib/generated/classes/any-event-consumption-strategy-until.d.ts +39 -0
  31. package/lib/generated/classes/any-event-consumption-strategy-until.d.ts.map +1 -0
  32. package/lib/generated/classes/any-event-consumption-strategy.d.ts.map +1 -1
  33. package/lib/generated/classes/any-event-until-consumed.d.ts +39 -0
  34. package/lib/generated/classes/any-event-until-consumed.d.ts.map +1 -0
  35. package/lib/generated/classes/async-api-arguments.d.ts +5 -0
  36. package/lib/generated/classes/async-api-arguments.d.ts.map +1 -1
  37. package/lib/generated/classes/call-async-api.d.ts.map +1 -1
  38. package/lib/generated/classes/catch-errors.d.ts +0 -5
  39. package/lib/generated/classes/catch-errors.d.ts.map +1 -1
  40. package/lib/generated/classes/container-lifetime.d.ts +39 -0
  41. package/lib/generated/classes/container-lifetime.d.ts.map +1 -0
  42. package/lib/generated/classes/container.d.ts.map +1 -1
  43. package/lib/generated/classes/error-filter.d.ts +44 -0
  44. package/lib/generated/classes/error-filter.d.ts.map +1 -0
  45. package/lib/generated/classes/event-consumption-strategy.d.ts.map +1 -1
  46. package/lib/generated/classes/event-data.d.ts +44 -0
  47. package/lib/generated/classes/event-data.d.ts.map +1 -0
  48. package/lib/generated/classes/http-body.d.ts +44 -0
  49. package/lib/generated/classes/http-body.d.ts.map +1 -0
  50. package/lib/generated/classes/http-headers.d.ts +44 -0
  51. package/lib/generated/classes/http-headers.d.ts.map +1 -0
  52. package/lib/generated/classes/http-query.d.ts +44 -0
  53. package/lib/generated/classes/http-query.d.ts.map +1 -0
  54. package/lib/generated/classes/index.d.ts +11 -6
  55. package/lib/generated/classes/index.d.ts.map +1 -1
  56. package/lib/generated/classes/listen-task.d.ts.map +1 -1
  57. package/lib/generated/classes/raise-task-error.d.ts +44 -0
  58. package/lib/generated/classes/raise-task-error.d.ts.map +1 -0
  59. package/lib/generated/classes/subscription-iterator.d.ts +39 -0
  60. package/lib/generated/classes/subscription-iterator.d.ts.map +1 -0
  61. package/lib/generated/classes/task-timeout.d.ts +39 -0
  62. package/lib/generated/classes/task-timeout.d.ts.map +1 -0
  63. package/lib/generated/classes/task.d.ts.map +1 -1
  64. package/lib/generated/definitions/specification.d.ts +105 -44
  65. package/lib/generated/definitions/specification.d.ts.map +1 -1
  66. package/lib/generated/validation/validation-pointers.d.ts +11 -6
  67. package/lib/generated/validation/validation-pointers.d.ts.map +1 -1
  68. package/package.json +2 -2
  69. package/systemjs/index.systemjs.js +2039 -1120
  70. package/systemjs/index.systemjs.js.map +1 -1
  71. package/systemjs/index.systemjs.min.js +4 -4
  72. package/systemjs/index.systemjs.min.js.map +1 -1
  73. package/umd/index.umd.js +2050 -1126
  74. package/umd/index.umd.js.map +1 -1
  75. package/umd/index.umd.min.js +4 -4
  76. package/umd/index.umd.min.js.map +1 -1
  77. package/lib/generated/builders/raise-task-raise-error-builder.d.ts +0 -14
  78. package/lib/generated/builders/raise-task-raise-error-builder.d.ts.map +0 -1
  79. package/lib/generated/builders/task-base-timeout-builder.d.ts +0 -14
  80. package/lib/generated/builders/task-base-timeout-builder.d.ts.map +0 -1
  81. package/lib/generated/builders/with-async-api-payload-builder.d.ts +0 -14
  82. package/lib/generated/builders/with-async-api-payload-builder.d.ts.map +0 -1
  83. package/lib/generated/builders/with-http-body-builder.d.ts +0 -14
  84. package/lib/generated/builders/with-http-body-builder.d.ts.map +0 -1
  85. package/lib/generated/builders/with-http-headers-builder.d.ts +0 -14
  86. package/lib/generated/builders/with-http-headers-builder.d.ts.map +0 -1
  87. package/lib/generated/builders/with-http-query-builder.d.ts +0 -14
  88. package/lib/generated/builders/with-http-query-builder.d.ts.map +0 -1
  89. package/lib/generated/classes/raise-task-raise-error.d.ts +0 -44
  90. package/lib/generated/classes/raise-task-raise-error.d.ts.map +0 -1
  91. package/lib/generated/classes/task-base-timeout.d.ts +0 -39
  92. package/lib/generated/classes/task-base-timeout.d.ts.map +0 -1
  93. package/lib/generated/classes/with-async-api-payload.d.ts +0 -44
  94. package/lib/generated/classes/with-async-api-payload.d.ts.map +0 -1
  95. package/lib/generated/classes/with-http-body.d.ts +0 -44
  96. package/lib/generated/classes/with-http-body.d.ts.map +0 -1
  97. package/lib/generated/classes/with-http-headers.d.ts +0 -44
  98. package/lib/generated/classes/with-http-headers.d.ts.map +0 -1
  99. package/lib/generated/classes/with-http-query.d.ts +0 -44
  100. package/lib/generated/classes/with-http-query.d.ts.map +0 -1
@@ -1,10 +1,10 @@
1
- System.register([],(function(e){"use strict";return{execute:function(){function t(e,t){return null==t.validate&&(t.validate=!0),null==t.normalize&&(t.normalize=!0),e}function n(e,n){void 0===e&&(e={}),void 0===n&&(n=t);var o=new Proxy({},{get:function(t,r){return"build"===r?function(t){return null==(t=t||{}).validate&&(t.validate=!0),null==t.normalize&&(t.normalize=!0),n(e,t)}:function(t){return e[r.toString()]=t,o}},set:function(){return!1}});return o}function o(e,n){if(void 0===e&&(e=[]),void 0===n&&(n=t),null!=e&&!Array.isArray(e))throw new Error("The provided model should be an array");var o=new Proxy({},{get:function(t,r){return"build"===r?function(t){return null==(t=t||{}).validate&&(t.validate=!0),null==t.normalize&&(t.normalize=!0),n(e,t)}:"push"===r?function(t){return e.push(t),o}:void 0},set:function(){return!1}});return o}var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}"function"==typeof SuppressedError&&SuppressedError;var a,s,l=function(e){return!!e&&("object"==typeof e&&!Array.isArray(e))},c=function(e){return JSON.parse(JSON.stringify(e))},u=function(e){l(e)&&Object.assign(this,c(e))},d=function(e){function t(t){var n=this;if(isNaN(t)){if(n=e.apply(this,t||[])||this,t||(t=[]),!Array.isArray(t))throw new Error("The provided model should be an array")}else n=e.call(this,t)||this;return n}return i(t,e),t}(Array),p="1.0.0-alpha5",f={preValidation:function(e){var t,n;if((null===(t=null==e?void 0:e.document)||void 0===t?void 0:t.dsl)!==p)throw new Error("'Workflow' is invalid - The DSL version of the workflow '".concat(null===(n=null==e?void 0:e.document)||void 0===n?void 0:n.dsl,"' doesn't match the supported version of the SDK '").concat(p,"'."))}},h=new Map,m=function(e){return h.get(e)};function v(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a="Workflow",s=f,h.set(a,s);var y={exports:{}},w={},g={},b={},k={},$={},j={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class o extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function r(e,...t){const n=[e[0]];let r=0;for(;r<t.length;)s(n,t[r]),n.push(e[++r]);return new o(n)}e._Code=o,e.nil=new o(""),e._=r;const i=new o("+");function a(e,...t){const n=[c(e[0])];let r=0;for(;r<t.length;)n.push(i),s(n,t[r]),n.push(i,c(e[++r]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===i){const n=l(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(n),new o(n)}function s(e,t){var r;t instanceof o?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof(r=t)||"boolean"==typeof r||null===r?r:c(Array.isArray(r)?r.join(","):r))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof n||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof n?void 0:`"${e}${t.slice(1)}`}function c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=a,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:a`${e}${t}`},e.stringify=function(e){return new o(c(e))},e.safeStringify=c,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new o(`.${t}`):r`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new o(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new o(e.toString())}}(j);var T={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=j;class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o||(e.UsedValueState=o={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class r{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=r;class i extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:o}){this.value=e,this.scopePath=t._`.${new t.Name(n)}[${o}]`}}e.ValueScopeName=i;const a=t._`\n`;e.ValueScope=class extends r{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?a:t.nil}}get(){return this._scope}name(e){return new i(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const o=this.toName(e),{prefix:r}=o,i=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[r];if(a){const e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,o);const s=this._scope[r]||(this._scope[r]=[]),l=s.length;return s[l]=t.ref,o.setValue(t,{property:r,itemIndex:l}),o}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,(n=>{if(void 0===n.scopePath)throw new Error(`CodeGen: name "${n}" has no value`);return t._`${e}${n.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(r,i,a={},s){let l=t.nil;for(const c in r){const u=r[c];if(!u)continue;const d=a[c]=a[c]||new Map;u.forEach((r=>{if(d.has(r))return;d.set(r,o.Started);let a=i(r);if(a){const n=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${n} ${r} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(r)))throw new n(r);l=t._`${l}${a}${this.opts._n}`}d.set(r,o.Completed)}))}return l}}}(T),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=j,n=T;var o=j;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return o.Name}});var r=T;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class i{optimizeNodes(){return this}optimizeNames(e,t){return this}}class a extends i{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const o=e?n.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${o} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=S(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends i{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=S(this.rhs,e,n),this}get names(){return _(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,n,o){super(e,n,o),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class c extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class u extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends i{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends i{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=S(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class f extends i{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let o=n.length;for(;o--;){const r=n[o];r.optimizeNames(e,t)||(O(e,r.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>C(e,t.names)),{})}}class h extends f{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends f{}class v extends h{}v.kind="else";class y extends h{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof y?t:t.nodes:this.nodes.length?this:new y(x(e),t instanceof y?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=S(this.condition,e,t),this}get names(){const e=super.names;return _(e,this.condition),this.else&&C(e,this.else.names),e}}y.kind="if";class w extends h{}w.kind="for";class g extends w{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=S(this.iteration,e,t),this}get names(){return C(super.names,this.iteration.names)}}class b extends w{constructor(e,t,n,o){super(),this.varKind=e,this.name=t,this.from=n,this.to=o}render(e){const t=e.es5?n.varKinds.var:this.varKind,{name:o,from:r,to:i}=this;return`for(${t} ${o}=${r}; ${o}<${i}; ${o}++)`+super.render(e)}get names(){const e=_(super.names,this.from);return _(e,this.to)}}class k extends w{constructor(e,t,n,o){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=o}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=S(this.iterable,e,t),this}get names(){return C(super.names,this.iterable.names)}}class $ extends h{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}$.kind="func";class A extends f{render(e){return"return "+super.render(e)}}A.kind="return";class P extends h{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,o;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(o=this.finally)||void 0===o||o.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&C(e,this.catch.names),this.finally&&C(e,this.finally.names),e}}class z extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}z.kind="catch";class E extends h{render(e){return"finally"+super.render(e)}}E.kind="finally";function C(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function _(e,n){return n instanceof t._CodeOrName?C(e,n.names):e}function S(e,n,o){return e instanceof t.Name?i(e):(r=e)instanceof t._Code&&r._items.some((e=>e instanceof t.Name&&1===n[e.str]&&void 0!==o[e.str]))?new t._Code(e._items.reduce(((e,n)=>(n instanceof t.Name&&(n=i(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e)),[])):e;var r;function i(e){const t=o[e.str];return void 0===t||1!==n[e.str]?e:(delete n[e.str],t)}}function O(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function x(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${D(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,o){const r=this._scope.toName(t);return void 0!==n&&o&&(this._constants[r.str]=n),this._leafNode(new a(e,r,n)),r}const(e,t,o){return this._def(n.varKinds.const,e,t,o)}let(e,t,o){return this._def(n.varKinds.let,e,t,o)}var(e,t,o){return this._def(n.varKinds.var,e,t,o)}assign(e,t,n){return this._leafNode(new s(e,t,n))}add(t,n){return this._leafNode(new l(t,e.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new p(e)),this}object(...e){const n=["{"];for(const[o,r]of e)n.length>1&&n.push(","),n.push(o),(o!==r||this.opts.es5)&&(n.push(":"),(0,t.addCodeArg)(n,r));return n.push("}"),new t._Code(n)}if(e,t,n){if(this._blockNode(new y(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new y(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new g(e),t)}forRange(e,t,o,r,i=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const a=this._scope.toName(e);return this._for(new b(i,a,t,o),(()=>r(a)))}forOf(e,o,r,i=n.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=o instanceof t.Name?o:this.var("_arr",o);return this.forRange("_i",0,t._`${e}.length`,(n=>{this.var(a,t._`${e}[${n}]`),r(a)}))}return this._for(new k("of",i,a,o),(()=>r(a)))}forIn(e,o,r,i=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${o})`,r);const a=this._scope.toName(e);return this._for(new k("in",i,a,o),(()=>r(a)))}endFor(){return this._endBlockNode(w)}label(e){return this._leafNode(new c(e))}break(e){return this._leafNode(new u(e))}return(e){const t=new A;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(A)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const o=new P;if(this._blockNode(o),this.code(e),t){const e=this.name("e");this._currNode=o.catch=new z(e),t(e)}return n&&(this._currNode=o.finally=new E,this.code(n)),this._endBlockNode(z,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,o,r){return this._blockNode(new $(e,n,o)),r&&this.code(r).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=x;const I=N(e.operators.AND);e.and=function(...e){return e.reduce(I)};const R=N(e.operators.OR);function N(e){return(n,o)=>n===t.nil?o:o===t.nil?n:t._`${D(n)} ${e} ${D(o)}`}function D(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(R)}}($);var A={};Object.defineProperty(A,"__esModule",{value:!0}),A.checkStrictMode=A.getErrorPath=A.Type=A.useFunc=A.setEvaluated=A.evaluatedPropsToName=A.mergeEvaluated=A.eachItem=A.unescapeJsonPointer=A.escapeJsonPointer=A.escapeFragment=A.unescapeFragment=A.schemaRefOrVal=A.schemaHasRulesButRef=A.schemaHasRules=A.checkUnknownRules=A.alwaysValidSchema=A.toHash=void 0;const P=$,z=j;function E(e,t=e.schema){const{opts:n,self:o}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const r=o.RULES.keywords;for(const n in t)r[n]||D(e,`unknown keyword: "${n}"`)}function C(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function _(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function S(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function O({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:o}){return(r,i,a,s)=>{const l=void 0===a?i:a instanceof P.Name?(i instanceof P.Name?e(r,i,a):t(r,i,a),a):i instanceof P.Name?(t(r,a,i),i):n(i,a);return s!==P.Name||l instanceof P.Name?l:o(r,l)}}function x(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",P._`{}`);return void 0!==t&&I(e,n,t),n}function I(e,t,n){Object.keys(n).forEach((n=>e.assign(P._`${t}${(0,P.getProperty)(n)}`,!0)))}A.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},A.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(E(e,t),!C(t,e.self.RULES.all))},A.checkUnknownRules=E,A.schemaHasRules=C,A.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},A.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,o,r){if(!r){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return P._`${n}`}return P._`${e}${t}${(0,P.getProperty)(o)}`},A.unescapeFragment=function(e){return S(decodeURIComponent(e))},A.escapeFragment=function(e){return encodeURIComponent(_(e))},A.escapeJsonPointer=_,A.unescapeJsonPointer=S,A.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},A.mergeEvaluated={props:O({mergeNames:(e,t,n)=>e.if(P._`${n} !== true && ${t} !== undefined`,(()=>{e.if(P._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,P._`${n} || {}`).code(P._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(P._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,P._`${n} || {}`),I(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:x}),items:O({mergeNames:(e,t,n)=>e.if(P._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,P._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(P._`${n} !== true`,(()=>e.assign(n,!0===t||P._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},A.evaluatedPropsToName=x,A.setEvaluated=I;const R={};var N;function D(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}A.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:R[t.code]||(R[t.code]=new z._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(N||(A.Type=N={})),A.getErrorPath=function(e,t,n){if(e instanceof P.Name){const o=t===N.Num;return n?o?P._`"[" + ${e} + "]"`:P._`"['" + ${e} + "']"`:o?P._`"/" + ${e}`:P._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,P.getProperty)(e).toString():"/"+_(e)},A.checkStrictMode=D;var B,M,F,q={};function U(){if(B)return q;B=1,Object.defineProperty(q,"__esModule",{value:!0});const e=$,t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return q.default=t,q}function L(){return M||(M=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=$,n=A,o=U();function r(e,n){const r=e.const("err",n);e.if(t._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,t._`[${r}]`)),t._`${o.default.vErrors}.push(${r})`),e.code(t._`${o.default.errors}++`)}function i(e,n){const{gen:o,validateName:r,schemaEnv:i}=e;i.$async?o.throw(t._`new ${e.ValidationError}(${n})`):(o.assign(t._`${r}.errors`,n),o.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?t.str`"${e}" keyword must be ${n} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(n,o=e.keywordError,a,l){const{it:c}=n,{gen:u,compositeRule:d,allErrors:p}=c,f=s(n,o,a);(null!=l?l:d||p)?r(u,f):i(c,t._`[${f}]`)},e.reportExtraError=function(t,n=e.keywordError,a){const{it:l}=t,{gen:c,compositeRule:u,allErrors:d}=l;r(c,s(t,n,a)),u||d||i(l,o.default.vErrors)},e.resetErrorsCount=function(e,n){e.assign(o.default.errors,n),e.if(t._`${o.default.vErrors} !== null`,(()=>e.if(n,(()=>e.assign(t._`${o.default.vErrors}.length`,n)),(()=>e.assign(o.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:n,schemaValue:r,data:i,errsCount:a,it:s}){if(void 0===a)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",a,o.default.errors,(a=>{e.const(l,t._`${o.default.vErrors}[${a}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(o.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${n}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,r),e.assign(t._`${l}.data`,i))}))};const a={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function s(e,n,r){const{createErrors:i}=e.it;return!1===i?t._`{}`:function(e,n,r={}){const{gen:i,it:s}=e,u=[l(s,r),c(e,r)];return function(e,{params:n,message:r},i){const{keyword:s,data:l,schemaValue:c,it:u}=e,{opts:d,propertyName:p,topSchemaRef:f,schemaPath:h}=u;i.push([a.keyword,s],[a.params,"function"==typeof n?n(e):n||t._`{}`]),d.messages&&i.push([a.message,"function"==typeof r?r(e):r]);d.verbose&&i.push([a.schema,c],[a.parentSchema,t._`${f}${h}`],[o.default.data,l]);p&&i.push([a.propertyName,p])}(e,n,u),i.object(...u)}(e,n,r)}function l({errorPath:e},{instancePath:r}){const i=r?t.str`${e}${(0,n.getErrorPath)(r,n.Type.Str)}`:e;return[o.default.instancePath,(0,t.strConcat)(o.default.instancePath,i)]}function c({keyword:e,it:{errSchemaPath:o}},{schemaPath:r,parentSchema:i}){let s=i?o:t.str`${o}/${e}`;return r&&(s=t.str`${s}${(0,n.getErrorPath)(r,n.Type.Str)}`),[a.schemaPath,s]}}(k)),k}var W={},V={};Object.defineProperty(V,"__esModule",{value:!0}),V.getRules=V.isJSONType=void 0;const G=new Set(["string","number","integer","boolean","null","object","array"]);V.isJSONType=function(e){return"string"==typeof e&&G.has(e)},V.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var H,K={};function J(){if(H)return K;function e(e,n){return n.rules.some((n=>t(e,n)))}function t(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}return H=1,Object.defineProperty(K,"__esModule",{value:!0}),K.shouldUseRule=K.shouldUseGroup=K.schemaHasRulesForType=void 0,K.schemaHasRulesForType=function({schema:t,self:n},o){const r=n.RULES.types[o];return r&&!0!==r&&e(t,r)},K.shouldUseGroup=e,K.shouldUseRule=t,K}Object.defineProperty(W,"__esModule",{value:!0}),W.reportTypeError=W.checkDataTypes=W.checkDataType=W.coerceAndCheckDataType=W.getJSONTypes=W.getSchemaTypes=W.DataType=void 0;const Z=V,Y=J(),Q=L(),X=$,ee=A;var te;function ne(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(Z.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(te||(W.DataType=te={})),W.getSchemaTypes=function(e){const t=ne(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},W.getJSONTypes=ne,W.coerceAndCheckDataType=function(e,t){const{gen:n,data:o,opts:r}=e,i=function(e,t){return t?e.filter((e=>oe.has(e)||"array"===t&&"array"===e)):[]}(t,r.coerceTypes),a=t.length>0&&!(0===i.length&&1===t.length&&(0,Y.schemaHasRulesForType)(e,t[0]));if(a){const a=ie(t,o,r.strictNumbers,te.Wrong);n.if(a,(()=>{i.length?function(e,t,n){const{gen:o,data:r,opts:i}=e,a=o.let("dataType",X._`typeof ${r}`),s=o.let("coerced",X._`undefined`);"array"===i.coerceTypes&&o.if(X._`${a} == 'object' && Array.isArray(${r}) && ${r}.length == 1`,(()=>o.assign(r,X._`${r}[0]`).assign(a,X._`typeof ${r}`).if(ie(t,r,i.strictNumbers),(()=>o.assign(s,r)))));o.if(X._`${s} !== undefined`);for(const e of n)(oe.has(e)||"array"===e&&"array"===i.coerceTypes)&&l(e);function l(e){switch(e){case"string":return void o.elseIf(X._`${a} == "number" || ${a} == "boolean"`).assign(s,X._`"" + ${r}`).elseIf(X._`${r} === null`).assign(s,X._`""`);case"number":return void o.elseIf(X._`${a} == "boolean" || ${r} === null
1
+ System.register([],(function(e){"use strict";return{execute:function(){function t(e,t){return null==t.validate&&(t.validate=!0),null==t.normalize&&(t.normalize=!0),e}function n(e,n){void 0===e&&(e={}),void 0===n&&(n=t);var o=new Proxy({},{get:function(t,r){return"build"===r?function(t){return null==(t=t||{}).validate&&(t.validate=!0),null==t.normalize&&(t.normalize=!0),n(e,t)}:function(t){return e[r.toString()]=t,o}},set:function(){return!1}});return o}function o(e,n){if(void 0===e&&(e=[]),void 0===n&&(n=t),null!=e&&!Array.isArray(e))throw new Error("The provided model should be an array");var o=new Proxy({},{get:function(t,r){return"build"===r?function(t){return null==(t=t||{}).validate&&(t.validate=!0),null==t.normalize&&(t.normalize=!0),n(e,t)}:"push"===r?function(t){return e.push(t),o}:void 0},set:function(){return!1}});return o}var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}"function"==typeof SuppressedError&&SuppressedError;var a,s,l=function(e){return!!e&&("object"==typeof e&&!Array.isArray(e))},c=function(e){return JSON.parse(JSON.stringify(e))},u=function(e){l(e)&&Object.assign(this,c(e))},d=function(e){function t(t){var n=this;if(isNaN(t)){if(n=e.apply(this,t||[])||this,t||(t=[]),!Array.isArray(t))throw new Error("The provided model should be an array")}else n=e.call(this,t)||this;return n}return i(t,e),t}(Array),p="1.0.0",f={preValidation:function(e){var t,n;if((null===(t=null==e?void 0:e.document)||void 0===t?void 0:t.dsl)!==p)throw new Error("'Workflow' is invalid - The DSL version of the workflow '".concat(null===(n=null==e?void 0:e.document)||void 0===n?void 0:n.dsl,"' doesn't match the supported version of the SDK '").concat(p,"'."))}},h=new Map,m=function(e){return h.get(e)};function v(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a="Workflow",s=f,h.set(a,s);var y={exports:{}},w={},g={},b={},k={},$={},j={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class o extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function r(e,...t){const n=[e[0]];let r=0;for(;r<t.length;)s(n,t[r]),n.push(e[++r]);return new o(n)}e._Code=o,e.nil=new o(""),e._=r;const i=new o("+");function a(e,...t){const n=[c(e[0])];let r=0;for(;r<t.length;)n.push(i),s(n,t[r]),n.push(i,c(e[++r]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===i){const n=l(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(n),new o(n)}function s(e,t){var r;t instanceof o?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof(r=t)||"boolean"==typeof r||null===r?r:c(Array.isArray(r)?r.join(","):r))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof n||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof n?void 0:`"${e}${t.slice(1)}`}function c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=a,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:a`${e}${t}`},e.stringify=function(e){return new o(c(e))},e.safeStringify=c,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new o(`.${t}`):r`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new o(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new o(e.toString())}}(j);var A={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=j;class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o||(e.UsedValueState=o={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class r{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=r;class i extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:o}){this.value=e,this.scopePath=t._`.${new t.Name(n)}[${o}]`}}e.ValueScopeName=i;const a=t._`\n`;e.ValueScope=class extends r{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?a:t.nil}}get(){return this._scope}name(e){return new i(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const o=this.toName(e),{prefix:r}=o,i=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[r];if(a){const e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,o);const s=this._scope[r]||(this._scope[r]=[]),l=s.length;return s[l]=t.ref,o.setValue(t,{property:r,itemIndex:l}),o}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,(n=>{if(void 0===n.scopePath)throw new Error(`CodeGen: name "${n}" has no value`);return t._`${e}${n.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(r,i,a={},s){let l=t.nil;for(const c in r){const u=r[c];if(!u)continue;const d=a[c]=a[c]||new Map;u.forEach((r=>{if(d.has(r))return;d.set(r,o.Started);let a=i(r);if(a){const n=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${n} ${r} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(r)))throw new n(r);l=t._`${l}${a}${this.opts._n}`}d.set(r,o.Completed)}))}return l}}}(A),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=j,n=A;var o=j;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return o.Name}});var r=A;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class i{optimizeNodes(){return this}optimizeNames(e,t){return this}}class a extends i{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const o=e?n.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${o} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=_(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends i{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=_(this.rhs,e,n),this}get names(){return S(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,n,o){super(e,n,o),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class c extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class u extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends i{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends i{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=_(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class f extends i{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let o=n.length;for(;o--;){const r=n[o];r.optimizeNames(e,t)||(O(e,r.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>z(e,t.names)),{})}}class h extends f{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends f{}class v extends h{}v.kind="else";class y extends h{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof y?t:t.nodes:this.nodes.length?this:new y(x(e),t instanceof y?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=_(this.condition,e,t),this}get names(){const e=super.names;return S(e,this.condition),this.else&&z(e,this.else.names),e}}y.kind="if";class w extends h{}w.kind="for";class g extends w{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=_(this.iteration,e,t),this}get names(){return z(super.names,this.iteration.names)}}class b extends w{constructor(e,t,n,o){super(),this.varKind=e,this.name=t,this.from=n,this.to=o}render(e){const t=e.es5?n.varKinds.var:this.varKind,{name:o,from:r,to:i}=this;return`for(${t} ${o}=${r}; ${o}<${i}; ${o}++)`+super.render(e)}get names(){const e=S(super.names,this.from);return S(e,this.to)}}class k extends w{constructor(e,t,n,o){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=o}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=_(this.iterable,e,t),this}get names(){return z(super.names,this.iterable.names)}}class $ extends h{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}$.kind="func";class T extends f{render(e){return"return "+super.render(e)}}T.kind="return";class P extends h{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,o;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(o=this.finally)||void 0===o||o.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&z(e,this.catch.names),this.finally&&z(e,this.finally.names),e}}class E extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}E.kind="catch";class C extends h{render(e){return"finally"+super.render(e)}}C.kind="finally";function z(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function S(e,n){return n instanceof t._CodeOrName?z(e,n.names):e}function _(e,n,o){return e instanceof t.Name?i(e):(r=e)instanceof t._Code&&r._items.some((e=>e instanceof t.Name&&1===n[e.str]&&void 0!==o[e.str]))?new t._Code(e._items.reduce(((e,n)=>(n instanceof t.Name&&(n=i(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e)),[])):e;var r;function i(e){const t=o[e.str];return void 0===t||1!==n[e.str]?e:(delete n[e.str],t)}}function O(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function x(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${D(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,o){const r=this._scope.toName(t);return void 0!==n&&o&&(this._constants[r.str]=n),this._leafNode(new a(e,r,n)),r}const(e,t,o){return this._def(n.varKinds.const,e,t,o)}let(e,t,o){return this._def(n.varKinds.let,e,t,o)}var(e,t,o){return this._def(n.varKinds.var,e,t,o)}assign(e,t,n){return this._leafNode(new s(e,t,n))}add(t,n){return this._leafNode(new l(t,e.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new p(e)),this}object(...e){const n=["{"];for(const[o,r]of e)n.length>1&&n.push(","),n.push(o),(o!==r||this.opts.es5)&&(n.push(":"),(0,t.addCodeArg)(n,r));return n.push("}"),new t._Code(n)}if(e,t,n){if(this._blockNode(new y(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new y(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new g(e),t)}forRange(e,t,o,r,i=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const a=this._scope.toName(e);return this._for(new b(i,a,t,o),(()=>r(a)))}forOf(e,o,r,i=n.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=o instanceof t.Name?o:this.var("_arr",o);return this.forRange("_i",0,t._`${e}.length`,(n=>{this.var(a,t._`${e}[${n}]`),r(a)}))}return this._for(new k("of",i,a,o),(()=>r(a)))}forIn(e,o,r,i=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${o})`,r);const a=this._scope.toName(e);return this._for(new k("in",i,a,o),(()=>r(a)))}endFor(){return this._endBlockNode(w)}label(e){return this._leafNode(new c(e))}break(e){return this._leafNode(new u(e))}return(e){const t=new T;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(T)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const o=new P;if(this._blockNode(o),this.code(e),t){const e=this.name("e");this._currNode=o.catch=new E(e),t(e)}return n&&(this._currNode=o.finally=new C,this.code(n)),this._endBlockNode(E,C)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,o,r){return this._blockNode(new $(e,n,o)),r&&this.code(r).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=x;const I=N(e.operators.AND);e.and=function(...e){return e.reduce(I)};const R=N(e.operators.OR);function N(e){return(n,o)=>n===t.nil?o:o===t.nil?n:t._`${D(n)} ${e} ${D(o)}`}function D(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(R)}}($);var T={};Object.defineProperty(T,"__esModule",{value:!0}),T.checkStrictMode=T.getErrorPath=T.Type=T.useFunc=T.setEvaluated=T.evaluatedPropsToName=T.mergeEvaluated=T.eachItem=T.unescapeJsonPointer=T.escapeJsonPointer=T.escapeFragment=T.unescapeFragment=T.schemaRefOrVal=T.schemaHasRulesButRef=T.schemaHasRules=T.checkUnknownRules=T.alwaysValidSchema=T.toHash=void 0;const P=$,E=j;function C(e,t=e.schema){const{opts:n,self:o}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const r=o.RULES.keywords;for(const n in t)r[n]||D(e,`unknown keyword: "${n}"`)}function z(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function S(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function _(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function O({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:o}){return(r,i,a,s)=>{const l=void 0===a?i:a instanceof P.Name?(i instanceof P.Name?e(r,i,a):t(r,i,a),a):i instanceof P.Name?(t(r,a,i),i):n(i,a);return s!==P.Name||l instanceof P.Name?l:o(r,l)}}function x(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",P._`{}`);return void 0!==t&&I(e,n,t),n}function I(e,t,n){Object.keys(n).forEach((n=>e.assign(P._`${t}${(0,P.getProperty)(n)}`,!0)))}T.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},T.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(C(e,t),!z(t,e.self.RULES.all))},T.checkUnknownRules=C,T.schemaHasRules=z,T.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},T.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,o,r){if(!r){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return P._`${n}`}return P._`${e}${t}${(0,P.getProperty)(o)}`},T.unescapeFragment=function(e){return _(decodeURIComponent(e))},T.escapeFragment=function(e){return encodeURIComponent(S(e))},T.escapeJsonPointer=S,T.unescapeJsonPointer=_,T.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},T.mergeEvaluated={props:O({mergeNames:(e,t,n)=>e.if(P._`${n} !== true && ${t} !== undefined`,(()=>{e.if(P._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,P._`${n} || {}`).code(P._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(P._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,P._`${n} || {}`),I(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:x}),items:O({mergeNames:(e,t,n)=>e.if(P._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,P._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(P._`${n} !== true`,(()=>e.assign(n,!0===t||P._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},T.evaluatedPropsToName=x,T.setEvaluated=I;const R={};var N;function D(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}T.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:R[t.code]||(R[t.code]=new E._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(N||(T.Type=N={})),T.getErrorPath=function(e,t,n){if(e instanceof P.Name){const o=t===N.Num;return n?o?P._`"[" + ${e} + "]"`:P._`"['" + ${e} + "']"`:o?P._`"/" + ${e}`:P._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,P.getProperty)(e).toString():"/"+S(e)},T.checkStrictMode=D;var B,M,q,F={};function U(){if(B)return F;B=1,Object.defineProperty(F,"__esModule",{value:!0});const e=$,t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return F.default=t,F}function L(){return M||(M=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=$,n=T,o=U();function r(e,n){const r=e.const("err",n);e.if(t._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,t._`[${r}]`)),t._`${o.default.vErrors}.push(${r})`),e.code(t._`${o.default.errors}++`)}function i(e,n){const{gen:o,validateName:r,schemaEnv:i}=e;i.$async?o.throw(t._`new ${e.ValidationError}(${n})`):(o.assign(t._`${r}.errors`,n),o.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?t.str`"${e}" keyword must be ${n} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(n,o=e.keywordError,a,l){const{it:c}=n,{gen:u,compositeRule:d,allErrors:p}=c,f=s(n,o,a);(null!=l?l:d||p)?r(u,f):i(c,t._`[${f}]`)},e.reportExtraError=function(t,n=e.keywordError,a){const{it:l}=t,{gen:c,compositeRule:u,allErrors:d}=l;r(c,s(t,n,a)),u||d||i(l,o.default.vErrors)},e.resetErrorsCount=function(e,n){e.assign(o.default.errors,n),e.if(t._`${o.default.vErrors} !== null`,(()=>e.if(n,(()=>e.assign(t._`${o.default.vErrors}.length`,n)),(()=>e.assign(o.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:n,schemaValue:r,data:i,errsCount:a,it:s}){if(void 0===a)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",a,o.default.errors,(a=>{e.const(l,t._`${o.default.vErrors}[${a}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(o.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${n}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,r),e.assign(t._`${l}.data`,i))}))};const a={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function s(e,n,r){const{createErrors:i}=e.it;return!1===i?t._`{}`:function(e,n,r={}){const{gen:i,it:s}=e,u=[l(s,r),c(e,r)];return function(e,{params:n,message:r},i){const{keyword:s,data:l,schemaValue:c,it:u}=e,{opts:d,propertyName:p,topSchemaRef:f,schemaPath:h}=u;i.push([a.keyword,s],[a.params,"function"==typeof n?n(e):n||t._`{}`]),d.messages&&i.push([a.message,"function"==typeof r?r(e):r]);d.verbose&&i.push([a.schema,c],[a.parentSchema,t._`${f}${h}`],[o.default.data,l]);p&&i.push([a.propertyName,p])}(e,n,u),i.object(...u)}(e,n,r)}function l({errorPath:e},{instancePath:r}){const i=r?t.str`${e}${(0,n.getErrorPath)(r,n.Type.Str)}`:e;return[o.default.instancePath,(0,t.strConcat)(o.default.instancePath,i)]}function c({keyword:e,it:{errSchemaPath:o}},{schemaPath:r,parentSchema:i}){let s=i?o:t.str`${o}/${e}`;return r&&(s=t.str`${s}${(0,n.getErrorPath)(r,n.Type.Str)}`),[a.schemaPath,s]}}(k)),k}var V={},W={};Object.defineProperty(W,"__esModule",{value:!0}),W.getRules=W.isJSONType=void 0;const G=new Set(["string","number","integer","boolean","null","object","array"]);W.isJSONType=function(e){return"string"==typeof e&&G.has(e)},W.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var H,K={};function J(){if(H)return K;function e(e,n){return n.rules.some((n=>t(e,n)))}function t(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}return H=1,Object.defineProperty(K,"__esModule",{value:!0}),K.shouldUseRule=K.shouldUseGroup=K.schemaHasRulesForType=void 0,K.schemaHasRulesForType=function({schema:t,self:n},o){const r=n.RULES.types[o];return r&&!0!==r&&e(t,r)},K.shouldUseGroup=e,K.shouldUseRule=t,K}Object.defineProperty(V,"__esModule",{value:!0}),V.reportTypeError=V.checkDataTypes=V.checkDataType=V.coerceAndCheckDataType=V.getJSONTypes=V.getSchemaTypes=V.DataType=void 0;const Z=W,Y=J(),Q=L(),X=$,ee=T;var te;function ne(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(Z.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(te||(V.DataType=te={})),V.getSchemaTypes=function(e){const t=ne(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},V.getJSONTypes=ne,V.coerceAndCheckDataType=function(e,t){const{gen:n,data:o,opts:r}=e,i=function(e,t){return t?e.filter((e=>oe.has(e)||"array"===t&&"array"===e)):[]}(t,r.coerceTypes),a=t.length>0&&!(0===i.length&&1===t.length&&(0,Y.schemaHasRulesForType)(e,t[0]));if(a){const a=ie(t,o,r.strictNumbers,te.Wrong);n.if(a,(()=>{i.length?function(e,t,n){const{gen:o,data:r,opts:i}=e,a=o.let("dataType",X._`typeof ${r}`),s=o.let("coerced",X._`undefined`);"array"===i.coerceTypes&&o.if(X._`${a} == 'object' && Array.isArray(${r}) && ${r}.length == 1`,(()=>o.assign(r,X._`${r}[0]`).assign(a,X._`typeof ${r}`).if(ie(t,r,i.strictNumbers),(()=>o.assign(s,r)))));o.if(X._`${s} !== undefined`);for(const e of n)(oe.has(e)||"array"===e&&"array"===i.coerceTypes)&&l(e);function l(e){switch(e){case"string":return void o.elseIf(X._`${a} == "number" || ${a} == "boolean"`).assign(s,X._`"" + ${r}`).elseIf(X._`${r} === null`).assign(s,X._`""`);case"number":return void o.elseIf(X._`${a} == "boolean" || ${r} === null
2
2
  || (${a} == "string" && ${r} && ${r} == +${r})`).assign(s,X._`+${r}`);case"integer":return void o.elseIf(X._`${a} === "boolean" || ${r} === null
3
3
  || (${a} === "string" && ${r} && ${r} == +${r} && !(${r} % 1))`).assign(s,X._`+${r}`);case"boolean":return void o.elseIf(X._`${r} === "false" || ${r} === 0 || ${r} === null`).assign(s,!1).elseIf(X._`${r} === "true" || ${r} === 1`).assign(s,!0);case"null":return o.elseIf(X._`${r} === "" || ${r} === 0 || ${r} === false`),void o.assign(s,null);case"array":o.elseIf(X._`${a} === "string" || ${a} === "number"
4
- || ${a} === "boolean" || ${r} === null`).assign(s,X._`[${r}]`)}}o.else(),se(e),o.endIf(),o.if(X._`${s} !== undefined`,(()=>{o.assign(r,s),function({gen:e,parentData:t,parentDataProperty:n},o){e.if(X._`${t} !== undefined`,(()=>e.assign(X._`${t}[${n}]`,o)))}(e,s)}))}(e,t,i):se(e)}))}return a};const oe=new Set(["string","number","integer","boolean","null"]);function re(e,t,n,o=te.Correct){const r=o===te.Correct?X.operators.EQ:X.operators.NEQ;let i;switch(e){case"null":return X._`${t} ${r} null`;case"array":i=X._`Array.isArray(${t})`;break;case"object":i=X._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=a(X._`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=a();break;default:return X._`typeof ${t} ${r} ${e}`}return o===te.Correct?i:(0,X.not)(i);function a(e=X.nil){return(0,X.and)(X._`typeof ${t} == "number"`,e,n?X._`isFinite(${t})`:X.nil)}}function ie(e,t,n,o){if(1===e.length)return re(e[0],t,n,o);let r;const i=(0,ee.toHash)(e);if(i.array&&i.object){const e=X._`typeof ${t} != "object"`;r=i.null?e:X._`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else r=X.nil;i.number&&delete i.integer;for(const e in i)r=(0,X.and)(r,re(e,t,n,o));return r}W.checkDataType=re,W.checkDataTypes=ie;const ae={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?X._`{type: ${e}}`:X._`{type: ${t}}`};function se(e){const t=function(e){const{gen:t,data:n,schema:o}=e,r=(0,ee.schemaRefOrVal)(e,o,"type");return{gen:t,keyword:"type",data:n,schema:o.type,schemaCode:r,schemaValue:r,parentSchema:o,params:{},it:e}}(e);(0,Q.reportError)(t,ae)}W.reportTypeError=se;var le,ce={};var ue,de,pe={},fe={};function he(){if(ue)return fe;ue=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.validateUnion=fe.validateArray=fe.usePattern=fe.callValidateCode=fe.schemaProperties=fe.allSchemaProperties=fe.noPropertyInData=fe.propertyInData=fe.isOwnProperty=fe.hasPropFunc=fe.reportMissingProp=fe.checkMissingProp=fe.checkReportMissingProp=void 0;const e=$,t=A,n=U(),o=A;function r(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function i(t,n,o){return e._`${r(t)}.call(${n}, ${o})`}function a(t,n,o,r){const a=e._`${n}${(0,e.getProperty)(o)} === undefined`;return r?(0,e.or)(a,(0,e.not)(i(t,n,o))):a}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}fe.checkReportMissingProp=function(t,n){const{gen:o,data:r,it:i}=t;o.if(a(o,r,n,i.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${n}`},!0),t.error()}))},fe.checkMissingProp=function({gen:t,data:n,it:{opts:o}},r,i){return(0,e.or)(...r.map((r=>(0,e.and)(a(t,n,r,o.ownProperties),e._`${i} = ${r}`))))},fe.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},fe.hasPropFunc=r,fe.isOwnProperty=i,fe.propertyInData=function(t,n,o,r){const a=e._`${n}${(0,e.getProperty)(o)} !== undefined`;return r?e._`${a} && ${i(t,n,o)}`:a},fe.noPropertyInData=a,fe.allSchemaProperties=s,fe.schemaProperties=function(e,n){return s(n).filter((o=>!(0,t.alwaysValidSchema)(e,n[o])))},fe.callValidateCode=function({schemaCode:t,data:o,it:{gen:r,topSchemaRef:i,schemaPath:a,errorPath:s},it:l},c,u,d){const p=d?e._`${t}, ${o}, ${i}${a}`:o,f=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,s)],[n.default.parentData,l.parentData],[n.default.parentDataProperty,l.parentDataProperty],[n.default.rootData,n.default.rootData]];l.opts.dynamicRef&&f.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);const h=e._`${p}, ${r.object(...f)}`;return u!==e.nil?e._`${c}.call(${u}, ${h})`:e._`${c}(${h})`};const l=e._`new RegExp`;return fe.usePattern=function({gen:t,it:{opts:n}},r){const i=n.unicodeRegExp?"u":"",{regExp:a}=n.code,s=a(r,i);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===a.code?l:(0,o.useFunc)(t,a)}(${r}, ${i})`})},fe.validateArray=function(n){const{gen:o,data:r,keyword:i,it:a}=n,s=o.name("valid");if(a.allErrors){const e=o.let("valid",!0);return l((()=>o.assign(e,!1))),e}return o.var(s,!0),l((()=>o.break())),s;function l(a){const l=o.const("len",e._`${r}.length`);o.forRange("i",0,l,(r=>{n.subschema({keyword:i,dataProp:r,dataPropType:t.Type.Num},s),o.if((0,e.not)(s),a)}))}},fe.validateUnion=function(n){const{gen:o,schema:r,keyword:i,it:a}=n;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,t.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const s=o.let("valid",!1),l=o.name("_valid");o.block((()=>r.forEach(((t,r)=>{const a=n.subschema({keyword:i,schemaProp:r,compositeRule:!0},l);o.assign(s,e._`${s} || ${l}`);n.mergeValidEvaluated(a,l)||o.if((0,e.not)(s))})))),n.result(s,(()=>n.reset()),(()=>n.error(!0)))},fe}function me(){if(de)return pe;de=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.validateKeywordUsage=pe.validSchemaType=pe.funcKeywordCode=pe.macroKeywordCode=void 0;const e=$,t=U(),n=he(),o=L();function r(t){const{gen:n,data:o,it:r}=t;n.if(r.parentData,(()=>n.assign(o,e._`${r.parentData}[${r.parentDataProperty}]`)))}function i(t,n,o){if(void 0===o)throw new Error(`keyword "${n}" failed to compile`);return t.scopeValue("keyword","function"==typeof o?{ref:o}:{ref:o,code:(0,e.stringify)(o)})}return pe.macroKeywordCode=function(t,n){const{gen:o,keyword:r,schema:a,parentSchema:s,it:l}=t,c=n.macro.call(l.self,a,s,l),u=i(o,r,c);!1!==l.opts.validateSchema&&l.self.validateSchema(c,!0);const d=o.name("valid");t.subschema({schema:c,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${r}`,topSchemaRef:u,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},pe.funcKeywordCode=function(a,s){var l;const{gen:c,keyword:u,schema:d,parentSchema:p,$data:f,it:h}=a;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,s);const m=!f&&s.compile?s.compile.call(h.self,d,p,h):s.validate,v=i(c,u,m),y=c.let("valid");function w(o=(s.async?e._`await `:e.nil)){const r=h.opts.passContext?t.default.this:t.default.self,i=!("compile"in s&&!f||!1===s.schema);c.assign(y,e._`${o}${(0,n.callValidateCode)(a,v,r,i)}`,s.modifying)}function g(t){var n;c.if((0,e.not)(null!==(n=s.valid)&&void 0!==n?n:y),t)}a.block$data(y,(function(){if(!1===s.errors)w(),s.modifying&&r(a),g((()=>a.error()));else{const n=s.async?function(){const t=c.let("ruleErrs",null);return c.try((()=>w(e._`await `)),(n=>c.assign(y,!1).if(e._`${n} instanceof ${h.ValidationError}`,(()=>c.assign(t,e._`${n}.errors`)),(()=>c.throw(n))))),t}():function(){const t=e._`${v}.errors`;return c.assign(t,null),w(e.nil),t}();s.modifying&&r(a),g((()=>function(n,r){const{gen:i}=n;i.if(e._`Array.isArray(${r})`,(()=>{i.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${r} : ${t.default.vErrors}.concat(${r})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,o.extendErrors)(n)}),(()=>n.error()))}(a,n)))}})),a.ok(null!==(l=s.valid)&&void 0!==l?l:y)},pe.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},pe.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:o},r,i){if(Array.isArray(r.keyword)?!r.keyword.includes(i):r.keyword!==i)throw new Error("ajv implementation error");const a=r.dependencies;if(null==a?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${i}: ${a.join(",")}`);if(r.validateSchema){if(!r.validateSchema(e[i])){const e=`keyword "${i}" value is invalid at path "${o}": `+n.errorsText(r.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},pe}var ve,ye={};var we={},ge=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var a=i[r];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},be={exports:{}},ke=be.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),$e(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function $e(e,t,n,o,r,i,a,s,l,c){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var u in t(o,r,i,a,s,l,c),o){var d=o[u];if(Array.isArray(d)){if(u in ke.arrayKeywords)for(var p=0;p<d.length;p++)$e(e,t,n,d[p],r+"/"+u+"/"+p,i,r,u,o,p)}else if(u in ke.propsKeywords){if(d&&"object"==typeof d)for(var f in d)$e(e,t,n,d[f],r+"/"+u+"/"+je(f),i,r,u,o,f)}else(u in ke.keywords||e.allKeys&&!(u in ke.skipKeywords))&&$e(e,t,n,d,r+"/"+u,i,r,u,o)}n(o,r,i,a,s,l,c)}}function je(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}ke.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},ke.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},ke.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},ke.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var Te=be.exports;Object.defineProperty(we,"__esModule",{value:!0}),we.getSchemaRefs=we.resolveUrl=we.normalizeId=we._getFullPath=we.getFullPath=we.inlineRef=void 0;const Ae=A,Pe=ge,ze=Te,Ee=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);we.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!_e(e):!!t&&Se(e)<=t)};const Ce=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function _e(e){for(const t in e){if(Ce.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(_e))return!0;if("object"==typeof n&&_e(n))return!0}return!1}function Se(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!Ee.has(n)&&("object"==typeof e[n]&&(0,Ae.eachItem)(e[n],(e=>t+=Se(e))),t===1/0))return 1/0}return t}function Oe(e,t="",n){!1!==n&&(t=Re(t));const o=e.parse(t);return xe(e,o)}function xe(e,t){return e.serialize(t).split("#")[0]+"#"}we.getFullPath=Oe,we._getFullPath=xe;const Ie=/#\/?$/;function Re(e){return e?e.replace(Ie,""):""}we.normalizeId=Re,we.resolveUrl=function(e,t,n){return n=Re(n),e.resolve(t,n)};const Ne=/^[a-z_][-a-z0-9._]*$/i;var De;function Be(){if(De)return g;De=1,Object.defineProperty(g,"__esModule",{value:!0}),g.getData=g.KeywordCxt=g.validateFunctionCode=void 0;const e=function(){if(F)return b;F=1,Object.defineProperty(b,"__esModule",{value:!0}),b.boolOrEmptySchema=b.topBoolOrEmptySchema=void 0;const e=L(),t=$,n=U(),o={message:"boolean schema is false"};function r(t,n){const{gen:r,data:i}=t,a={gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(a,o,void 0,n)}return b.topBoolOrEmptySchema=function(e){const{gen:o,schema:i,validateName:a}=e;!1===i?r(e,!1):"object"==typeof i&&!0===i.$async?o.return(n.default.data):(o.assign(t._`${a}.errors`,null),o.return(!0))},b.boolOrEmptySchema=function(e,t){const{gen:n,schema:o}=e;!1===o?(n.var(t,!1),r(e)):n.var(t,!0)},b}(),t=W,n=J(),o=W,r=function(){if(le)return ce;le=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.assignDefaults=void 0;const e=$,t=A;function n(n,o,r){const{gen:i,compositeRule:a,data:s,opts:l}=n;if(void 0===r)return;const c=e._`${s}${(0,e.getProperty)(o)}`;if(a)return void(0,t.checkStrictMode)(n,`default is ignored for: ${c}`);let u=e._`${c} === undefined`;"empty"===l.useDefaults&&(u=e._`${u} || ${c} === null || ${c} === ""`),i.if(u,e._`${c} = ${(0,e.stringify)(r)}`)}return ce.assignDefaults=function(e,t){const{properties:o,items:r}=e.schema;if("object"===t&&o)for(const t in o)n(e,t,o[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,o)=>n(e,o,t.default)))},ce}(),i=me(),a=function(){if(ve)return ye;ve=1,Object.defineProperty(ye,"__esModule",{value:!0}),ye.extendSubschemaMode=ye.extendSubschemaData=ye.getSubschema=void 0;const e=$,t=A;return ye.getSubschema=function(n,{keyword:o,schemaProp:r,schema:i,schemaPath:a,errSchemaPath:s,topSchemaRef:l}){if(void 0!==o&&void 0!==i)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==o){const i=n.schema[o];return void 0===r?{schema:i,schemaPath:e._`${n.schemaPath}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${o}`}:{schema:i[r],schemaPath:e._`${n.schemaPath}${(0,e.getProperty)(o)}${(0,e.getProperty)(r)}`,errSchemaPath:`${n.errSchemaPath}/${o}/${(0,t.escapeFragment)(r)}`}}if(void 0!==i){if(void 0===a||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:a,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},ye.extendSubschemaData=function(n,o,{dataProp:r,dataPropType:i,data:a,dataTypes:s,propertyName:l}){if(void 0!==a&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=o;if(void 0!==r){const{errorPath:a,dataPathArr:s,opts:l}=o;u(c.let("data",e._`${o.data}${(0,e.getProperty)(r)}`,!0)),n.errorPath=e.str`${a}${(0,t.getErrorPath)(r,i,l.jsPropertySyntax)}`,n.parentDataProperty=e._`${r}`,n.dataPathArr=[...s,n.parentDataProperty]}function u(e){n.data=e,n.dataLevel=o.dataLevel+1,n.dataTypes=[],o.definedProperties=new Set,n.parentData=o.data,n.dataNames=[...o.dataNames,e]}void 0!==a&&(u(a instanceof e.Name?a:c.let("data",a,!0)),void 0!==l&&(n.propertyName=l)),s&&(n.dataTypes=s)},ye.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:o,createErrors:r,allErrors:i}){void 0!==o&&(e.compositeRule=o),void 0!==r&&(e.createErrors=r),void 0!==i&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=n},ye}(),s=$,l=U(),c=we,u=A,d=L();function p({gen:e,validateName:t,schema:n,schemaEnv:o,opts:r},i){r.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,o.$async,(()=>{e.code(s._`"use strict"; ${f(n,r)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,s._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,s._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,s._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,s._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,s._`""`),e.var(l.default.parentData,s._`undefined`),e.var(l.default.parentDataProperty,s._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`{}`)}))}(e,r),e.code(i)})):e.func(t,s._`${l.default.data}, ${function(e){return s._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?s._`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}(r)}`,o.$async,(()=>e.code(f(n,r)).code(i)))}function f(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?s._`/*# sourceURL=${n} */`:s.nil}function h(t,n){v(t)&&(y(t),m(t))?function(e,t){const{schema:n,gen:o,opts:r}=e;r.$comment&&n.$comment&&k(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,c.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const i=o.const("_errs",l.default.errors);w(e,i),o.var(t,s._`${i} === ${l.default.errors}`)}(t,n):(0,e.boolOrEmptySchema)(t,n)}function m({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function y(e){(0,u.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:o,self:r}=e;t.$ref&&o.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(t,r.RULES)&&r.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function w(e,n){if(e.opts.jtd)return j(e,[],!1,n);const o=(0,t.getSchemaTypes)(e.schema);j(e,o,!(0,t.coerceAndCheckDataType)(e,o),n)}function k({gen:e,schemaEnv:t,schema:n,errSchemaPath:o,opts:r}){const i=n.$comment;if(!0===r.$comment)e.code(s._`${l.default.self}.logger.log(${i})`);else if("function"==typeof r.$comment){const n=s.str`${o}/$comment`,r=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${i}, ${n}, ${r}.schema)`)}}function j(e,t,r,i){const{gen:a,schema:c,data:d,allErrors:p,opts:f,self:h}=e,{RULES:m}=h;function v(u){(0,n.shouldUseGroup)(c,u)&&(u.type?(a.if((0,o.checkDataType)(u.type,d,f.strictNumbers)),T(e,u),1===t.length&&t[0]===u.type&&r&&(a.else(),(0,o.reportTypeError)(e)),a.endIf()):T(e,u),p||a.if(s._`${l.default.errors} === ${i||0}`))}!c.$ref||!f.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(c,m)?(f.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{z(e.dataTypes,t)||E(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const o of e.dataTypes)z(t,o)?n.push(o):t.includes("integer")&&"number"===o&&n.push("integer");e.dataTypes=n}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&E(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const o=e.self.RULES.all;for(const r in o){const i=o[r];if("object"==typeof i&&(0,n.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>P(t,e)))&&E(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes)}(e,t),a.block((()=>{for(const e of m.rules)v(e);v(m.post)}))):a.block((()=>_(e,"$ref",m.all.$ref.definition)))}function T(e,t){const{gen:o,schema:i,opts:{useDefaults:a}}=e;a&&(0,r.assignDefaults)(e,t.type),o.block((()=>{for(const o of t.rules)(0,n.shouldUseRule)(i,o)&&_(e,o.keyword,o.definition,t.type)}))}function P(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function z(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function E(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,u.checkStrictMode)(e,t,e.opts.strictTypes)}g.validateFunctionCode=function(t){v(t)&&(y(t),m(t))?function(e){const{schema:t,opts:n,gen:o}=e;p(e,(()=>{n.$comment&&t.$comment&&k(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,u.checkStrictMode)(e,"default is ignored in the schema root")}(e),o.let(l.default.vErrors,null),o.let(l.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",s._`${n}.evaluated`),t.if(s._`${e.evaluated}.dynamicProps`,(()=>t.assign(s._`${e.evaluated}.props`,s._`undefined`))),t.if(s._`${e.evaluated}.dynamicItems`,(()=>t.assign(s._`${e.evaluated}.items`,s._`undefined`)))}(e),w(e),function(e){const{gen:t,schemaEnv:n,validateName:o,ValidationError:r,opts:i}=e;n.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${r}(${l.default.vErrors})`))):(t.assign(s._`${o}.errors`,l.default.vErrors),i.unevaluated&&function({gen:e,evaluated:t,props:n,items:o}){n instanceof s.Name&&e.assign(s._`${t}.props`,n);o instanceof s.Name&&e.assign(s._`${t}.items`,o)}(e),t.return(s._`${l.default.errors} === 0`))}(e)}))}(t):p(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class C{constructor(e,t,n){if((0,i.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",x(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,n){this.failResult((0,s.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=s.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:n,schemaCode:o,schemaType:r,def:i}=this;n.if((0,s.or)(s._`${o} === undefined`,t)),e!==s.nil&&n.assign(e,!0),(r.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,s.or)(function(){if(n.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return s._`${(0,o.checkDataTypes)(e,t,i.opts.strictNumbers,o.DataType.Wrong)}`}return s.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return s._`!${n}(${t})`}return s.nil}())}subschema(e,t){const n=(0,a.getSubschema)(this.it,e);(0,a.extendSubschemaData)(n,this.it,e),(0,a.extendSubschemaMode)(n,e);const o={...this.it,...n,items:void 0,props:void 0};return h(o,t),o}mergeEvaluated(e,t){const{it:n,gen:o}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=u.mergeEvaluated.props(o,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=u.mergeEvaluated.items(o,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:o}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return o.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function _(e,t,n,o){const r=new C(e,n,t);"code"in n?n.code(r,o):r.$data&&n.validate?(0,i.funcKeywordCode)(r,n):"macro"in n?(0,i.macroKeywordCode)(r,n):(n.compile||n.validate)&&(0,i.funcKeywordCode)(r,n)}g.KeywordCxt=C;const S=/^\/(?:[^~]|~0|~1)*$/,O=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function x(e,{dataLevel:t,dataNames:n,dataPathArr:o}){let r,i;if(""===e)return l.default.rootData;if("/"===e[0]){if(!S.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);r=e,i=l.default.rootData}else{const a=O.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+a[1];if(r=a[2],"#"===r){if(s>=t)throw new Error(d("property/index",s));return o[t-s]}if(s>t)throw new Error(d("data",s));if(i=n[t-s],!r)return i}let a=i;const c=r.split("/");for(const e of c)e&&(i=s._`${i}${(0,s.getProperty)((0,u.unescapeJsonPointer)(e))}`,a=s._`${a} && ${i}`);return a;function d(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}return g.getData=x,g}we.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:o}=this.opts,r=Re(e[n]||t),i={"":r},a=Oe(o,r,!1),s={},l=new Set;return ze(e,{allKeys:!0},((e,t,o,r)=>{if(void 0===r)return;const d=a+t;let p=i[r];function f(t){const n=this.opts.uriResolver.resolve;if(t=Re(p?n(p,t):t),l.has(t))throw u(t);l.add(t);let o=this.refs[t];return"string"==typeof o&&(o=this.refs[o]),"object"==typeof o?c(e,o.schema,t):t!==Re(d)&&("#"===t[0]?(c(e,s[t],t),s[t]=e):this.refs[t]=d),t}function h(e){if("string"==typeof e){if(!Ne.test(e))throw new Error(`invalid anchor "${e}"`);f.call(this,`#${e}`)}}"string"==typeof e[n]&&(p=f.call(this,e[n])),h.call(this,e.$anchor),h.call(this,e.$dynamicAnchor),i[t]=p})),s;function c(e,t,n){if(void 0!==t&&!Pe(e,t))throw u(n)}function u(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var Me,Fe={};function qe(){if(Me)return Fe;Me=1,Object.defineProperty(Fe,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return Fe.default=e,Fe}var Ue,Le={};function We(){if(Ue)return Le;Ue=1,Object.defineProperty(Le,"__esModule",{value:!0});const e=we;class t extends Error{constructor(t,n,o,r){super(r||`can't resolve reference ${o} from id ${n}`),this.missingRef=(0,e.resolveUrl)(t,n,o),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return Le.default=t,Le}var Ve={};Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.resolveSchema=Ve.getCompilingSchema=Ve.resolveRef=Ve.compileSchema=Ve.SchemaEnv=void 0;const Ge=$,He=qe(),Ke=U(),Je=we,Ze=A,Ye=Be();class Qe{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,Je.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function Xe(e){const t=tt.call(this,e);if(t)return t;const n=(0,Je.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:o,lines:r}=this.opts.code,{ownProperties:i}=this.opts,a=new Ge.CodeGen(this.scope,{es5:o,lines:r,ownProperties:i});let s;e.$async&&(s=a.scopeValue("Error",{ref:He.default,code:Ge._`require("ajv/dist/runtime/validation_error").default`}));const l=a.scopeName("validate");e.validateName=l;const c={gen:a,allErrors:this.opts.allErrors,data:Ke.default.data,parentData:Ke.default.parentData,parentDataProperty:Ke.default.parentDataProperty,dataNames:[Ke.default.data],dataPathArr:[Ge.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,Ge.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Ge.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:Ge._`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Ye.validateFunctionCode)(c),a.optimize(this.opts.code.optimize);const t=a.toString();u=`${a.scopeRefs(Ke.default.scope)}return ${t}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const n=new Function(`${Ke.default.self}`,`${Ke.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:l,validateCode:t,scopeValues:a._values}),this.opts.unevaluated){const{props:e,items:t}=c;n.evaluated={props:e instanceof Ge.Name?void 0:e,items:t instanceof Ge.Name?void 0:t,dynamicProps:e instanceof Ge.Name,dynamicItems:t instanceof Ge.Name},n.source&&(n.source.evaluated=(0,Ge.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),t}finally{this._compilations.delete(e)}}function et(e){return(0,Je.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Xe.call(this,e)}function tt(e){for(const o of this._compilations)if(n=e,(t=o).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return o;var t,n}function nt(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||ot.call(this,e,t)}function ot(e,t){const n=this.opts.uriResolver.parse(t),o=(0,Je._getFullPath)(this.opts.uriResolver,n);let r=(0,Je.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&o===r)return it.call(this,n,e);const i=(0,Je.normalizeId)(o),a=this.refs[i]||this.schemas[i];if("string"==typeof a){const t=ot.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return it.call(this,n,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||Xe.call(this,a),i===(0,Je.normalizeId)(t)){const{schema:t}=a,{schemaId:n}=this.opts,o=t[n];return o&&(r=(0,Je.resolveUrl)(this.opts.uriResolver,r,o)),new Qe({schema:t,schemaId:n,root:e,baseId:r})}return it.call(this,n,a)}}Ve.SchemaEnv=Qe,Ve.compileSchema=Xe,Ve.resolveRef=function(e,t,n){var o;n=(0,Je.resolveUrl)(this.opts.uriResolver,t,n);const r=e.refs[n];if(r)return r;let i=nt.call(this,e,n);if(void 0===i){const r=null===(o=e.localRefs)||void 0===o?void 0:o[n],{schemaId:a}=this.opts;r&&(i=new Qe({schema:r,schemaId:a,root:e,baseId:t}))}return void 0!==i?e.refs[n]=et.call(this,i):void 0},Ve.getCompilingSchema=tt,Ve.resolveSchema=ot;const rt=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function it(e,{baseId:t,schema:n,root:o}){var r;if("/"!==(null===(r=e.fragment)||void 0===r?void 0:r[0]))return;for(const o of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,Ze.unescapeFragment)(o)];if(void 0===e)return;const r="object"==typeof(n=e)&&n[this.opts.schemaId];!rt.has(o)&&r&&(t=(0,Je.resolveUrl)(this.opts.uriResolver,t,r))}let i;if("boolean"!=typeof n&&n.$ref&&!(0,Ze.schemaHasRulesButRef)(n,this.RULES)){const e=(0,Je.resolveUrl)(this.opts.uriResolver,t,n.$ref);i=ot.call(this,o,e)}const{schemaId:a}=this.opts;return i=i||new Qe({schema:n,schemaId:a,root:o,baseId:t}),i.schema!==i.root.schema?i:void 0}var at={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},st={},lt={exports:{}};var ct={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}};const{HEX:ut}=ct;function dt(e){if(mt(e,".")<3)return{host:e,isIPV4:!1};const t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[n]=t;return n?{host:ht(n,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function pt(e,t=!1){let n="",o=!0;for(const t of e){if(void 0===ut[t])return;"0"!==t&&!0===o&&(o=!1),o||(n+=t)}return t&&0===n.length&&(n="0"),n}function ft(e,t={}){if(mt(e,":")<2)return{host:e,isIPV6:!1};const n=function(e){let t=0;const n={error:!1,address:"",zone:""},o=[],r=[];let i=!1,a=!1,s=!1;function l(){if(r.length){if(!1===i){const e=pt(r);if(void 0===e)return n.error=!0,!1;o.push(e)}r.length=0}return!0}for(let c=0;c<e.length;c++){const u=e[c];if("["!==u&&"]"!==u)if(":"!==u)if("%"===u){if(!l())break;i=!0}else r.push(u);else{if(!0===a&&(s=!0),!l())break;if(t++,o.push(":"),t>7){n.error=!0;break}c-1>=0&&":"===e[c-1]&&(a=!0)}}return r.length&&(i?n.zone=r.join(""):s?o.push(r.join("")):o.push(pt(r))),n.address=o.join(""),n}(e);if(n.error)return{host:e,isIPV6:!1};{let e=n.address,t=n.address;return n.zone&&(e+="%"+n.zone,t+="%25"+n.zone),{host:e,escapedHost:t,isIPV6:!0}}}function ht(e,t){let n="",o=!0;const r=e.length;for(let i=0;i<r;i++){const a=e[i];"0"===a&&o?(i+1<=r&&e[i+1]===t||i+1===r)&&(n+=a,o=!1):(o=a===t,n+=a)}return n}function mt(e,t){let n=0;for(let o=0;o<e.length;o++)e[o]===t&&n++;return n}const vt=/^\.\.?\//u,yt=/^\/\.(?:\/|$)/u,wt=/^\/\.\.(?:\/|$)/u,gt=/^\/?(?:.|\n)*?(?=\/|$)/u;var bt={recomposeAuthority:function(e,t){const n=[];if(void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host){let t=unescape(e.host);const o=dt(t);if(o.isIPV4)t=o.host;else{const n=ft(o.host,{isIPV4:!1});t=!0===n.isIPV6?`[${n.escapedHost}]`:e.host}n.push(t)}return"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0},normalizeComponentEncoding:function(e,t){const n=!0!==t?escape:unescape;return void 0!==e.scheme&&(e.scheme=n(e.scheme)),void 0!==e.userinfo&&(e.userinfo=n(e.userinfo)),void 0!==e.host&&(e.host=n(e.host)),void 0!==e.path&&(e.path=n(e.path)),void 0!==e.query&&(e.query=n(e.query)),void 0!==e.fragment&&(e.fragment=n(e.fragment)),e},removeDotSegments:function(e){const t=[];for(;e.length;)if(e.match(vt))e=e.replace(vt,"");else if(e.match(yt))e=e.replace(yt,"/");else if(e.match(wt))e=e.replace(wt,"/"),t.pop();else if("."===e||".."===e)e="";else{const n=e.match(gt);if(!n)throw new Error("Unexpected dot segment condition");{const o=n[0];e=e.slice(o.length),t.push(o)}}return t.join("")},normalizeIPv4:dt,normalizeIPv6:ft,stringArrayToHexStripped:pt};const kt=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,$t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function jt(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}function Tt(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function At(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const Pt={scheme:"http",domainHost:!0,parse:Tt,serialize:At},zt={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=jt(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(jt(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,n]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}},Et={http:Pt,https:{scheme:"https",domainHost:Pt.domainHost,parse:Tt,serialize:At},ws:zt,wss:{scheme:"wss",domainHost:zt.domainHost,parse:zt.parse,serialize:zt.serialize},urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match($t);if(n){const o=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const r=`${o}:${t.nid||e.nid}`,i=Et[r];e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){const n=t.scheme||e.scheme||"urn",o=e.nid.toLowerCase(),r=`${n}:${t.nid||o}`,i=Et[r];i&&(e=i.serialize(e,t));const a=e,s=e.nss;return a.path=`${o||t.nid}:${s}`,t.skipEscape=!0,a},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,t){const n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&kt.test(n.uuid)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};var Ct=Et;const{normalizeIPv6:_t,normalizeIPv4:St,removeDotSegments:Ot,recomposeAuthority:xt,normalizeComponentEncoding:It}=bt,Rt=Ct;function Nt(e,t,n,o){const r={};return o||(e=Ft(Dt(e,n),n),t=Ft(Dt(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=Ot(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=Ot(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=Ot(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=Ot(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function Dt(e,t){const n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},o=Object.assign({},t),r=[],i=Rt[(o.scheme||n.scheme||"").toLowerCase()];i&&i.serialize&&i.serialize(n,o),void 0!==n.path&&(o.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),void 0!==n.scheme&&(n.path=n.path.split("%3A").join(":")))),"suffix"!==o.reference&&n.scheme&&(r.push(n.scheme),r.push(":"));const a=xt(n,o);if(void 0!==a&&("suffix"!==o.reference&&r.push("//"),r.push(a),n.path&&"/"!==n.path.charAt(0)&&r.push("/")),void 0!==n.path){let e=n.path;o.absolutePath||i&&i.absolutePath||(e=Ot(e)),void 0===a&&(e=e.replace(/^\/\//u,"/%2F")),r.push(e)}return void 0!==n.query&&(r.push("?"),r.push(n.query)),void 0!==n.fragment&&(r.push("#"),r.push(n.fragment)),r.join("")}const Bt=Array.from({length:127},((e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t))));const Mt=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Ft(e,t){const n=Object.assign({},t),o={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},r=-1!==e.indexOf("%");let i=!1;"suffix"===n.reference&&(e=(n.scheme?n.scheme+":":"")+"//"+e);const a=e.match(Mt);if(a){if(o.scheme=a[1],o.userinfo=a[3],o.host=a[4],o.port=parseInt(a[5],10),o.path=a[6]||"",o.query=a[7],o.fragment=a[8],isNaN(o.port)&&(o.port=a[5]),o.host){const e=St(o.host);if(!1===e.isIPV4){const t=_t(e.host,{isIPV4:!1});o.host=t.host.toLowerCase(),i=t.isIPV6}else o.host=e.host,i=!0}void 0!==o.scheme||void 0!==o.userinfo||void 0!==o.host||void 0!==o.port||o.path||void 0!==o.query?void 0===o.scheme?o.reference="relative":void 0===o.fragment?o.reference="absolute":o.reference="uri":o.reference="same-document",n.reference&&"suffix"!==n.reference&&n.reference!==o.reference&&(o.error=o.error||"URI is not a "+n.reference+" reference.");const e=Rt[(n.scheme||o.scheme||"").toLowerCase()];if(!(n.unicodeSupport||e&&e.unicodeSupport)&&o.host&&(n.domainHost||e&&e.domainHost)&&!1===i&&function(e){let t=0;for(let n=0,o=e.length;n<o;++n)if(t=e.charCodeAt(n),t>126||Bt[t])return!0;return!1}(o.host))try{o.host=URL.domainToASCII(o.host.toLowerCase())}catch(e){o.error=o.error||"Host's domain name can not be converted to ASCII: "+e}(!e||e&&!e.skipNormalize)&&(r&&void 0!==o.scheme&&(o.scheme=unescape(o.scheme)),r&&void 0!==o.userinfo&&(o.userinfo=unescape(o.userinfo)),r&&void 0!==o.host&&(o.host=unescape(o.host)),void 0!==o.path&&o.path.length&&(o.path=escape(unescape(o.path))),void 0!==o.fragment&&o.fragment.length&&(o.fragment=encodeURI(decodeURIComponent(o.fragment)))),e&&e.parse&&e.parse(o,n)}else o.error=o.error||"URI can not be parsed.";return o}const qt={SCHEMES:Rt,normalize:function(e,t){return"string"==typeof e?e=Dt(Ft(e,t),t):"object"==typeof e&&(e=Ft(Dt(e,t),t)),e},resolve:function(e,t,n){const o=Object.assign({scheme:"null"},n);return Dt(Nt(Ft(e,o),Ft(t,o),o,!0),{...o,skipEscape:!0})},resolveComponents:Nt,equal:function(e,t,n){return"string"==typeof e?(e=unescape(e),e=Dt(It(Ft(e,n),!0),{...n,skipEscape:!0})):"object"==typeof e&&(e=Dt(It(e,!0),{...n,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=Dt(It(Ft(t,n),!0),{...n,skipEscape:!0})):"object"==typeof t&&(t=Dt(It(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:Dt,parse:Ft};lt.exports=qt,lt.exports.default=qt,lt.exports.fastUri=qt;var Ut=lt.exports;Object.defineProperty(st,"__esModule",{value:!0});const Lt=Ut;Lt.code='require("ajv/dist/runtime/uri").default',st.default=Lt,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Be();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=$;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const o=qe(),r=We(),i=V,a=Ve,s=$,l=we,c=W,u=A,d=at,p=st,f=(e,t)=>new RegExp(e,t);f.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(e){var t,n,o,r,i,a,s,l,c,u,d,h,m,v,y,w,g,b,k,$,j,T,A,P,z;const E=e.strict,C=null===(t=e.code)||void 0===t?void 0:t.optimize,_=!0===C||void 0===C?1:C||0,S=null!==(o=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==o?o:f,O=null!==(r=e.uriResolver)&&void 0!==r?r:p.default;return{strictSchema:null===(a=null!==(i=e.strictSchema)&&void 0!==i?i:E)||void 0===a||a,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:E)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:E)&&void 0!==u?u:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:E)&&void 0!==h?h:"log",strictRequired:null!==(v=null!==(m=e.strictRequired)&&void 0!==m?m:E)&&void 0!==v&&v,code:e.code?{...e.code,optimize:_,regExp:S}:{optimize:_,regExp:S},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(w=e.loopEnum)&&void 0!==w?w:200,meta:null===(g=e.meta)||void 0===g||g,messages:null===(b=e.messages)||void 0===b||b,inlineRefs:null===(k=e.inlineRefs)||void 0===k||k,schemaId:null!==($=e.schemaId)&&void 0!==$?$:"$id",addUsedSchema:null===(j=e.addUsedSchema)||void 0===j||j,validateSchema:null===(T=e.validateSchema)||void 0===T||T,validateFormats:null===(A=e.validateFormats)||void 0===A||A,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(z=e.int32range)||void 0===z||z,uriResolver:O}}class g{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:m,es5:t,lines:n}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const o=e.validateFormats;e.validateFormats=!1,this.RULES=(0,i.getRules)(),b.call(this,v,e,"NOT SUPPORTED"),b.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=z.call(this),e.formats&&T.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&P.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),j.call(this),e.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let o=d;"id"===n&&(o={...d},o.id=o.$id,delete o.$id),t&&e&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const o=n(t);return"$async"in n||(this.errors=n.errors),o}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return o.call(this,e,t);async function o(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||a.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await o.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof r.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),a.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const n=await c.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,o=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,o);return this}let r;if("object"==typeof e){const{schemaId:t}=this.opts;if(r=e[t],void 0!==r&&"string"!=typeof r)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||r),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,o,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const o=this.validate(n,e);if(!o&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return o}getSchema(e){let t;for(;"string"==typeof(t=k.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,o=new a.SchemaEnv({schema:{},schemaId:n});if(t=a.resolveSchema.call(this,o,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=k.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,l.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(_.call(this,n,t),!t)return(0,u.eachItem)(n,(e=>S.call(this,e))),this;x.call(this,t);const o={...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(n,0===o.type.length?e=>S.call(this,e,o):e=>o.type.forEach((t=>S.call(this,e,o,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const o of t){const t=o.split("/").slice(1);let r=e;for(const e of t)r=r[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:o}=t.definition,i=r[e];o&&i&&(r[e]=R(i))}}return e}_removeAllSchemas(e,t){for(const n in e){const o=e[n];t&&!t.test(n)||("string"==typeof o?delete e[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete e[n]))}}_addSchema(e,t,n,o=this.opts.validateSchema,r=this.opts.addUsedSchema){let i;const{schemaId:s}=this.opts;if("object"==typeof e)i=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(void 0!==c)return c;n=(0,l.normalizeId)(i||n);const u=l.getSchemaRefs.call(this,e,n);return c=new a.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:u}),this._cache.set(c.schema,c),r&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):a.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,e)}finally{this.opts=t}}}function b(e,t,n,o="error"){for(const r in e){const i=r;i in t&&this.logger[o](`${n}: option ${r}. ${e[i]}`)}}function k(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function j(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function T(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function P(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function z(){const e={...this.opts};for(const t of h)delete e[t];return e}g.ValidationError=o.default,g.MissingRefError=r.default,e.default=g;const E={log(){},warn(){},error(){}};const C=/^[a-z_$][a-z0-9_$:-]*$/i;function _(e,t){const{RULES:n}=this;if((0,u.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!C.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function S(e,t,n){var o;const r=null==t?void 0:t.post;if(n&&r)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:i}=this;let a=r?i.post:i.rules.find((({type:e})=>e===n));if(a||(a={type:n,rules:[]},i.rules.push(a)),i.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)}};t.before?O.call(this,a,s,t.before):a.rules.push(s),i.all[e]=s,null===(o=t.implements)||void 0===o||o.forEach((e=>this.addKeyword(e)))}function O(e,t,n){const o=e.rules.findIndex((e=>e.keyword===n));o>=0?e.rules.splice(o,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function x(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=R(t)),e.validateSchema=this.compile(t,!0))}const I={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function R(e){return{anyOf:[e,I]}}}(w);var Wt={},Vt={},Gt={};Object.defineProperty(Gt,"__esModule",{value:!0});const Ht={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Gt.default=Ht;var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.callRef=Kt.getValidate=void 0;const Jt=We(),Zt=he(),Yt=$,Qt=U(),Xt=Ve,en=A,tn={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:o}=e,{baseId:r,schemaEnv:i,validateName:a,opts:s,self:l}=o,{root:c}=i;if(("#"===n||"#/"===n)&&r===c.baseId)return function(){if(i===c)return on(e,a,i,i.$async);const n=t.scopeValue("root",{ref:c});return on(e,Yt._`${n}.validate`,c,c.$async)}();const u=Xt.resolveRef.call(l,c,r,n);if(void 0===u)throw new Jt.default(o.opts.uriResolver,r,n);return u instanceof Xt.SchemaEnv?function(t){const n=nn(e,t);on(e,n,t,t.$async)}(u):function(o){const r=t.scopeValue("schema",!0===s.code.source?{ref:o,code:(0,Yt.stringify)(o)}:{ref:o}),i=t.name("valid"),a=e.subschema({schema:o,dataTypes:[],schemaPath:Yt.nil,topSchemaRef:r,errSchemaPath:n},i);e.mergeEvaluated(a),e.ok(i)}(u)}};function nn(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):Yt._`${n.scopeValue("wrapper",{ref:t})}.validate`}function on(e,t,n,o){const{gen:r,it:i}=e,{allErrors:a,schemaEnv:s,opts:l}=i,c=l.passContext?Qt.default.this:Yt.nil;function u(e){const t=Yt._`${e}.errors`;r.assign(Qt.default.vErrors,Yt._`${Qt.default.vErrors} === null ? ${t} : ${Qt.default.vErrors}.concat(${t})`),r.assign(Qt.default.errors,Yt._`${Qt.default.vErrors}.length`)}function d(e){var t;if(!i.opts.unevaluated)return;const o=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==i.props)if(o&&!o.dynamicProps)void 0!==o.props&&(i.props=en.mergeEvaluated.props(r,o.props,i.props));else{const t=r.var("props",Yt._`${e}.evaluated.props`);i.props=en.mergeEvaluated.props(r,t,i.props,Yt.Name)}if(!0!==i.items)if(o&&!o.dynamicItems)void 0!==o.items&&(i.items=en.mergeEvaluated.items(r,o.items,i.items));else{const t=r.var("items",Yt._`${e}.evaluated.items`);i.items=en.mergeEvaluated.items(r,t,i.items,Yt.Name)}}o?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const n=r.let("valid");r.try((()=>{r.code(Yt._`await ${(0,Zt.callValidateCode)(e,t,c)}`),d(t),a||r.assign(n,!0)}),(e=>{r.if(Yt._`!(${e} instanceof ${i.ValidationError})`,(()=>r.throw(e))),u(e),a||r.assign(n,!1)})),e.ok(n)}():e.result((0,Zt.callValidateCode)(e,t,c),(()=>d(t)),(()=>u(t)))}Kt.getValidate=nn,Kt.callRef=on,Kt.default=tn,Object.defineProperty(Vt,"__esModule",{value:!0});const rn=Kt,an=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Gt.default,rn.default];Vt.default=an;var sn={},ln={};Object.defineProperty(ln,"__esModule",{value:!0});const cn=$,un=cn.operators,dn={maximum:{okStr:"<=",ok:un.LTE,fail:un.GT},minimum:{okStr:">=",ok:un.GTE,fail:un.LT},exclusiveMaximum:{okStr:"<",ok:un.LT,fail:un.GTE},exclusiveMinimum:{okStr:">",ok:un.GT,fail:un.LTE}},pn={message:({keyword:e,schemaCode:t})=>cn.str`must be ${dn[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>cn._`{comparison: ${dn[e].okStr}, limit: ${t}}`},fn={keyword:Object.keys(dn),type:"number",schemaType:"number",$data:!0,error:pn,code(e){const{keyword:t,data:n,schemaCode:o}=e;e.fail$data(cn._`${n} ${dn[t].fail} ${o} || isNaN(${n})`)}};ln.default=fn;var hn={};Object.defineProperty(hn,"__esModule",{value:!0});const mn=$,vn={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>mn.str`must be multiple of ${e}`,params:({schemaCode:e})=>mn._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:o,it:r}=e,i=r.opts.multipleOfPrecision,a=t.let("res"),s=i?mn._`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:mn._`${a} !== parseInt(${a})`;e.fail$data(mn._`(${o} === 0 || (${a} = ${n}/${o}, ${s}))`)}};hn.default=vn;var yn={},wn={};function gn(e){const t=e.length;let n,o=0,r=0;for(;r<t;)o++,n=e.charCodeAt(r++),n>=55296&&n<=56319&&r<t&&(n=e.charCodeAt(r),56320==(64512&n)&&r++);return o}Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=gn,gn.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(yn,"__esModule",{value:!0});const bn=$,kn=A,$n=wn,jn={message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return bn.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>bn._`{limit: ${e}}`},Tn={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:jn,code(e){const{keyword:t,data:n,schemaCode:o,it:r}=e,i="maxLength"===t?bn.operators.GT:bn.operators.LT,a=!1===r.opts.unicode?bn._`${n}.length`:bn._`${(0,kn.useFunc)(e.gen,$n.default)}(${n})`;e.fail$data(bn._`${a} ${i} ${o}`)}};yn.default=Tn;var An={};Object.defineProperty(An,"__esModule",{value:!0});const Pn=he(),zn=$,En={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>zn.str`must match pattern "${e}"`,params:({schemaCode:e})=>zn._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:r,it:i}=e,a=i.opts.unicodeRegExp?"u":"",s=n?zn._`(new RegExp(${r}, ${a}))`:(0,Pn.usePattern)(e,o);e.fail$data(zn._`!${s}.test(${t})`)}};An.default=En;var Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});const _n=$,Sn={message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return _n.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>_n._`{limit: ${e}}`},On={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Sn,code(e){const{keyword:t,data:n,schemaCode:o}=e,r="maxProperties"===t?_n.operators.GT:_n.operators.LT;e.fail$data(_n._`Object.keys(${n}).length ${r} ${o}`)}};Cn.default=On;var xn={};Object.defineProperty(xn,"__esModule",{value:!0});const In=he(),Rn=$,Nn=A,Dn={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>Rn.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>Rn._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:o,data:r,$data:i,it:a}=e,{opts:s}=a;if(!i&&0===n.length)return;const l=n.length>=s.loopRequired;if(a.allErrors?function(){if(l||i)e.block$data(Rn.nil,c);else for(const t of n)(0,In.checkReportMissingProp)(e,t)}():function(){const a=t.let("missing");if(l||i){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,i){e.setParams({missingProperty:n}),t.forOf(n,o,(()=>{t.assign(i,(0,In.propertyInData)(t,r,n,s.ownProperties)),t.if((0,Rn.not)(i),(()=>{e.error(),t.break()}))}),Rn.nil)}(a,n))),e.ok(n)}else t.if((0,In.checkMissingProp)(e,n,a)),(0,In.reportMissingProp)(e,a),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:o}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!o.has(e)){const t=`required property "${e}" is not defined at "${a.schemaEnv.baseId+a.errSchemaPath}" (strictRequired)`;(0,Nn.checkStrictMode)(a,t,a.opts.strictRequired)}}function c(){t.forOf("prop",o,(n=>{e.setParams({missingProperty:n}),t.if((0,In.noPropertyInData)(t,r,n,s.ownProperties),(()=>e.error()))}))}}};xn.default=Dn;var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});const Mn=$,Fn={message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return Mn.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>Mn._`{limit: ${e}}`},qn={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Fn,code(e){const{keyword:t,data:n,schemaCode:o}=e,r="maxItems"===t?Mn.operators.GT:Mn.operators.LT;e.fail$data(Mn._`${n}.length ${r} ${o}`)}};Bn.default=qn;var Un={},Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});const Wn=ge;Wn.code='require("ajv/dist/runtime/equal").default',Ln.default=Wn,Object.defineProperty(Un,"__esModule",{value:!0});const Vn=W,Gn=$,Hn=A,Kn=Ln,Jn={message:({params:{i:e,j:t}})=>Gn.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>Gn._`{i: ${e}, j: ${t}}`},Zn={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Jn,code(e){const{gen:t,data:n,$data:o,schema:r,parentSchema:i,schemaCode:a,it:s}=e;if(!o&&!r)return;const l=t.let("valid"),c=i.items?(0,Vn.getSchemaTypes)(i.items):[];function u(o,r){const i=t.name("item"),a=(0,Vn.checkDataTypes)(c,i,s.opts.strictNumbers,Vn.DataType.Wrong),u=t.const("indices",Gn._`{}`);t.for(Gn._`;${o}--;`,(()=>{t.let(i,Gn._`${n}[${o}]`),t.if(a,Gn._`continue`),c.length>1&&t.if(Gn._`typeof ${i} == "string"`,Gn._`${i} += "_"`),t.if(Gn._`typeof ${u}[${i}] == "number"`,(()=>{t.assign(r,Gn._`${u}[${i}]`),e.error(),t.assign(l,!1).break()})).code(Gn._`${u}[${i}] = ${o}`)}))}function d(o,r){const i=(0,Hn.useFunc)(t,Kn.default),a=t.name("outer");t.label(a).for(Gn._`;${o}--;`,(()=>t.for(Gn._`${r} = ${o}; ${r}--;`,(()=>t.if(Gn._`${i}(${n}[${o}], ${n}[${r}])`,(()=>{e.error(),t.assign(l,!1).break(a)}))))))}e.block$data(l,(function(){const o=t.let("i",Gn._`${n}.length`),r=t.let("j");e.setParams({i:o,j:r}),t.assign(l,!0),t.if(Gn._`${o} > 1`,(()=>(c.length>0&&!c.some((e=>"object"===e||"array"===e))?u:d)(o,r)))}),Gn._`${a} === false`),e.ok(l)}};Un.default=Zn;var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});const Qn=$,Xn=A,eo=Ln,to={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>Qn._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:o,schemaCode:r,schema:i}=e;o||i&&"object"==typeof i?e.fail$data(Qn._`!${(0,Xn.useFunc)(t,eo.default)}(${n}, ${r})`):e.fail(Qn._`${i} !== ${n}`)}};Yn.default=to;var no={};Object.defineProperty(no,"__esModule",{value:!0});const oo=$,ro=A,io=Ln,ao={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>oo._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:o,schema:r,schemaCode:i,it:a}=e;if(!o&&0===r.length)throw new Error("enum must have non-empty array");const s=r.length>=a.opts.loopEnum;let l;const c=()=>null!=l?l:l=(0,ro.useFunc)(t,io.default);let u;if(s||o)u=t.let("valid"),e.block$data(u,(function(){t.assign(u,!1),t.forOf("v",i,(e=>t.if(oo._`${c()}(${n}, ${e})`,(()=>t.assign(u,!0).break()))))}));else{if(!Array.isArray(r))throw new Error("ajv implementation error");const e=t.const("vSchema",i);u=(0,oo.or)(...r.map(((t,o)=>function(e,t){const o=r[t];return"object"==typeof o&&null!==o?oo._`${c()}(${n}, ${e}[${t}])`:oo._`${n} === ${o}`}(e,o))))}e.pass(u)}};no.default=ao,Object.defineProperty(sn,"__esModule",{value:!0});const so=hn,lo=yn,co=An,uo=Cn,po=xn,fo=Bn,ho=Un,mo=Yn,vo=no,yo=[ln.default,so.default,lo.default,co.default,uo.default,po.default,fo.default,ho.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},mo.default,vo.default];sn.default=yo;var wo={},go={};Object.defineProperty(go,"__esModule",{value:!0}),go.validateAdditionalItems=void 0;const bo=$,ko=A,$o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>bo.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>bo._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:o}=t;Array.isArray(o)?jo(e,o):(0,ko.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function jo(e,t){const{gen:n,schema:o,data:r,keyword:i,it:a}=e;a.items=!0;const s=n.const("len",bo._`${r}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(bo._`${s} <= ${t.length}`);else if("object"==typeof o&&!(0,ko.alwaysValidSchema)(a,o)){const o=n.var("valid",bo._`${s} <= ${t.length}`);n.if((0,bo.not)(o),(()=>function(o){n.forRange("i",t.length,s,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:ko.Type.Num},o),a.allErrors||n.if((0,bo.not)(o),(()=>n.break()))}))}(o))),e.ok(o)}}go.validateAdditionalItems=jo,go.default=$o;var To={},Ao={};Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.validateTuple=void 0;const Po=$,zo=A,Eo=he(),Co={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return _o(e,"additionalItems",t);n.items=!0,(0,zo.alwaysValidSchema)(n,t)||e.ok((0,Eo.validateArray)(e))}};function _o(e,t,n=e.schema){const{gen:o,parentSchema:r,data:i,keyword:a,it:s}=e;!function(e){const{opts:o,errSchemaPath:r}=s,i=n.length,l=i===e.minItems&&(i===e.maxItems||!1===e[t]);if(o.strictTuples&&!l){const e=`"${a}" is ${i}-tuple, but minItems or maxItems/${t} are not specified or different at path "${r}"`;(0,zo.checkStrictMode)(s,e,o.strictTuples)}}(r),s.opts.unevaluated&&n.length&&!0!==s.items&&(s.items=zo.mergeEvaluated.items(o,n.length,s.items));const l=o.name("valid"),c=o.const("len",Po._`${i}.length`);n.forEach(((t,n)=>{(0,zo.alwaysValidSchema)(s,t)||(o.if(Po._`${c} > ${n}`,(()=>e.subschema({keyword:a,schemaProp:n,dataProp:n},l))),e.ok(l))}))}Ao.validateTuple=_o,Ao.default=Co,Object.defineProperty(To,"__esModule",{value:!0});const So=Ao,Oo={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,So.validateTuple)(e,"items")};To.default=Oo;var xo={};Object.defineProperty(xo,"__esModule",{value:!0});const Io=$,Ro=A,No=he(),Do=go,Bo={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>Io.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Io._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:o}=e,{prefixItems:r}=n;o.items=!0,(0,Ro.alwaysValidSchema)(o,t)||(r?(0,Do.validateAdditionalItems)(e,r):e.ok((0,No.validateArray)(e)))}};xo.default=Bo;var Mo={};Object.defineProperty(Mo,"__esModule",{value:!0});const Fo=$,qo=A,Uo={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?Fo.str`must contain at least ${e} valid item(s)`:Fo.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?Fo._`{minContains: ${e}}`:Fo._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:r,it:i}=e;let a,s;const{minContains:l,maxContains:c}=o;i.opts.next?(a=void 0===l?1:l,s=c):a=1;const u=t.const("len",Fo._`${r}.length`);if(e.setParams({min:a,max:s}),void 0===s&&0===a)return void(0,qo.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&a>s)return(0,qo.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,qo.alwaysValidSchema)(i,n)){let t=Fo._`${u} >= ${a}`;return void 0!==s&&(t=Fo._`${t} && ${u} <= ${s}`),void e.pass(t)}i.items=!0;const d=t.name("valid");function p(){const e=t.name("_valid"),n=t.let("count",0);f(e,(()=>t.if(e,(()=>function(e){t.code(Fo._`${e}++`),void 0===s?t.if(Fo._`${e} >= ${a}`,(()=>t.assign(d,!0).break())):(t.if(Fo._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===a?t.assign(d,!0):t.if(Fo._`${e} >= ${a}`,(()=>t.assign(d,!0))))}(n)))))}function f(n,o){t.forRange("i",0,u,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:qo.Type.Num,compositeRule:!0},n),o()}))}void 0===s&&1===a?f(d,(()=>t.if(d,(()=>t.break())))):0===a?(t.let(d,!0),void 0!==s&&t.if(Fo._`${r}.length > 0`,p)):(t.let(d,!1),p()),e.result(d,(()=>e.reset()))}};Mo.default=Uo;var Lo={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=$,n=A,o=he();e.error={message:({params:{property:e,depsCount:n,deps:o}})=>{const r=1===n?"property":"properties";return t.str`must have ${r} ${o} when property ${e} is present`},params:({params:{property:e,depsCount:n,deps:o,missingProperty:r}})=>t._`{property: ${e},
4
+ || ${a} === "boolean" || ${r} === null`).assign(s,X._`[${r}]`)}}o.else(),se(e),o.endIf(),o.if(X._`${s} !== undefined`,(()=>{o.assign(r,s),function({gen:e,parentData:t,parentDataProperty:n},o){e.if(X._`${t} !== undefined`,(()=>e.assign(X._`${t}[${n}]`,o)))}(e,s)}))}(e,t,i):se(e)}))}return a};const oe=new Set(["string","number","integer","boolean","null"]);function re(e,t,n,o=te.Correct){const r=o===te.Correct?X.operators.EQ:X.operators.NEQ;let i;switch(e){case"null":return X._`${t} ${r} null`;case"array":i=X._`Array.isArray(${t})`;break;case"object":i=X._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=a(X._`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=a();break;default:return X._`typeof ${t} ${r} ${e}`}return o===te.Correct?i:(0,X.not)(i);function a(e=X.nil){return(0,X.and)(X._`typeof ${t} == "number"`,e,n?X._`isFinite(${t})`:X.nil)}}function ie(e,t,n,o){if(1===e.length)return re(e[0],t,n,o);let r;const i=(0,ee.toHash)(e);if(i.array&&i.object){const e=X._`typeof ${t} != "object"`;r=i.null?e:X._`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else r=X.nil;i.number&&delete i.integer;for(const e in i)r=(0,X.and)(r,re(e,t,n,o));return r}V.checkDataType=re,V.checkDataTypes=ie;const ae={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?X._`{type: ${e}}`:X._`{type: ${t}}`};function se(e){const t=function(e){const{gen:t,data:n,schema:o}=e,r=(0,ee.schemaRefOrVal)(e,o,"type");return{gen:t,keyword:"type",data:n,schema:o.type,schemaCode:r,schemaValue:r,parentSchema:o,params:{},it:e}}(e);(0,Q.reportError)(t,ae)}V.reportTypeError=se;var le,ce={};var ue,de,pe={},fe={};function he(){if(ue)return fe;ue=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.validateUnion=fe.validateArray=fe.usePattern=fe.callValidateCode=fe.schemaProperties=fe.allSchemaProperties=fe.noPropertyInData=fe.propertyInData=fe.isOwnProperty=fe.hasPropFunc=fe.reportMissingProp=fe.checkMissingProp=fe.checkReportMissingProp=void 0;const e=$,t=T,n=U(),o=T;function r(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function i(t,n,o){return e._`${r(t)}.call(${n}, ${o})`}function a(t,n,o,r){const a=e._`${n}${(0,e.getProperty)(o)} === undefined`;return r?(0,e.or)(a,(0,e.not)(i(t,n,o))):a}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}fe.checkReportMissingProp=function(t,n){const{gen:o,data:r,it:i}=t;o.if(a(o,r,n,i.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${n}`},!0),t.error()}))},fe.checkMissingProp=function({gen:t,data:n,it:{opts:o}},r,i){return(0,e.or)(...r.map((r=>(0,e.and)(a(t,n,r,o.ownProperties),e._`${i} = ${r}`))))},fe.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},fe.hasPropFunc=r,fe.isOwnProperty=i,fe.propertyInData=function(t,n,o,r){const a=e._`${n}${(0,e.getProperty)(o)} !== undefined`;return r?e._`${a} && ${i(t,n,o)}`:a},fe.noPropertyInData=a,fe.allSchemaProperties=s,fe.schemaProperties=function(e,n){return s(n).filter((o=>!(0,t.alwaysValidSchema)(e,n[o])))},fe.callValidateCode=function({schemaCode:t,data:o,it:{gen:r,topSchemaRef:i,schemaPath:a,errorPath:s},it:l},c,u,d){const p=d?e._`${t}, ${o}, ${i}${a}`:o,f=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,s)],[n.default.parentData,l.parentData],[n.default.parentDataProperty,l.parentDataProperty],[n.default.rootData,n.default.rootData]];l.opts.dynamicRef&&f.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);const h=e._`${p}, ${r.object(...f)}`;return u!==e.nil?e._`${c}.call(${u}, ${h})`:e._`${c}(${h})`};const l=e._`new RegExp`;return fe.usePattern=function({gen:t,it:{opts:n}},r){const i=n.unicodeRegExp?"u":"",{regExp:a}=n.code,s=a(r,i);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===a.code?l:(0,o.useFunc)(t,a)}(${r}, ${i})`})},fe.validateArray=function(n){const{gen:o,data:r,keyword:i,it:a}=n,s=o.name("valid");if(a.allErrors){const e=o.let("valid",!0);return l((()=>o.assign(e,!1))),e}return o.var(s,!0),l((()=>o.break())),s;function l(a){const l=o.const("len",e._`${r}.length`);o.forRange("i",0,l,(r=>{n.subschema({keyword:i,dataProp:r,dataPropType:t.Type.Num},s),o.if((0,e.not)(s),a)}))}},fe.validateUnion=function(n){const{gen:o,schema:r,keyword:i,it:a}=n;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,t.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const s=o.let("valid",!1),l=o.name("_valid");o.block((()=>r.forEach(((t,r)=>{const a=n.subschema({keyword:i,schemaProp:r,compositeRule:!0},l);o.assign(s,e._`${s} || ${l}`);n.mergeValidEvaluated(a,l)||o.if((0,e.not)(s))})))),n.result(s,(()=>n.reset()),(()=>n.error(!0)))},fe}function me(){if(de)return pe;de=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.validateKeywordUsage=pe.validSchemaType=pe.funcKeywordCode=pe.macroKeywordCode=void 0;const e=$,t=U(),n=he(),o=L();function r(t){const{gen:n,data:o,it:r}=t;n.if(r.parentData,(()=>n.assign(o,e._`${r.parentData}[${r.parentDataProperty}]`)))}function i(t,n,o){if(void 0===o)throw new Error(`keyword "${n}" failed to compile`);return t.scopeValue("keyword","function"==typeof o?{ref:o}:{ref:o,code:(0,e.stringify)(o)})}return pe.macroKeywordCode=function(t,n){const{gen:o,keyword:r,schema:a,parentSchema:s,it:l}=t,c=n.macro.call(l.self,a,s,l),u=i(o,r,c);!1!==l.opts.validateSchema&&l.self.validateSchema(c,!0);const d=o.name("valid");t.subschema({schema:c,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${r}`,topSchemaRef:u,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},pe.funcKeywordCode=function(a,s){var l;const{gen:c,keyword:u,schema:d,parentSchema:p,$data:f,it:h}=a;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,s);const m=!f&&s.compile?s.compile.call(h.self,d,p,h):s.validate,v=i(c,u,m),y=c.let("valid");function w(o=(s.async?e._`await `:e.nil)){const r=h.opts.passContext?t.default.this:t.default.self,i=!("compile"in s&&!f||!1===s.schema);c.assign(y,e._`${o}${(0,n.callValidateCode)(a,v,r,i)}`,s.modifying)}function g(t){var n;c.if((0,e.not)(null!==(n=s.valid)&&void 0!==n?n:y),t)}a.block$data(y,(function(){if(!1===s.errors)w(),s.modifying&&r(a),g((()=>a.error()));else{const n=s.async?function(){const t=c.let("ruleErrs",null);return c.try((()=>w(e._`await `)),(n=>c.assign(y,!1).if(e._`${n} instanceof ${h.ValidationError}`,(()=>c.assign(t,e._`${n}.errors`)),(()=>c.throw(n))))),t}():function(){const t=e._`${v}.errors`;return c.assign(t,null),w(e.nil),t}();s.modifying&&r(a),g((()=>function(n,r){const{gen:i}=n;i.if(e._`Array.isArray(${r})`,(()=>{i.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${r} : ${t.default.vErrors}.concat(${r})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,o.extendErrors)(n)}),(()=>n.error()))}(a,n)))}})),a.ok(null!==(l=s.valid)&&void 0!==l?l:y)},pe.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},pe.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:o},r,i){if(Array.isArray(r.keyword)?!r.keyword.includes(i):r.keyword!==i)throw new Error("ajv implementation error");const a=r.dependencies;if(null==a?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${i}: ${a.join(",")}`);if(r.validateSchema){if(!r.validateSchema(e[i])){const e=`keyword "${i}" value is invalid at path "${o}": `+n.errorsText(r.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},pe}var ve,ye={};var we={},ge=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var a=i[r];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},be={exports:{}},ke=be.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),$e(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function $e(e,t,n,o,r,i,a,s,l,c){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var u in t(o,r,i,a,s,l,c),o){var d=o[u];if(Array.isArray(d)){if(u in ke.arrayKeywords)for(var p=0;p<d.length;p++)$e(e,t,n,d[p],r+"/"+u+"/"+p,i,r,u,o,p)}else if(u in ke.propsKeywords){if(d&&"object"==typeof d)for(var f in d)$e(e,t,n,d[f],r+"/"+u+"/"+je(f),i,r,u,o,f)}else(u in ke.keywords||e.allKeys&&!(u in ke.skipKeywords))&&$e(e,t,n,d,r+"/"+u,i,r,u,o)}n(o,r,i,a,s,l,c)}}function je(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}ke.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},ke.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},ke.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},ke.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var Ae=be.exports;Object.defineProperty(we,"__esModule",{value:!0}),we.getSchemaRefs=we.resolveUrl=we.normalizeId=we._getFullPath=we.getFullPath=we.inlineRef=void 0;const Te=T,Pe=ge,Ee=Ae,Ce=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);we.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!Se(e):!!t&&_e(e)<=t)};const ze=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Se(e){for(const t in e){if(ze.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(Se))return!0;if("object"==typeof n&&Se(n))return!0}return!1}function _e(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!Ce.has(n)&&("object"==typeof e[n]&&(0,Te.eachItem)(e[n],(e=>t+=_e(e))),t===1/0))return 1/0}return t}function Oe(e,t="",n){!1!==n&&(t=Re(t));const o=e.parse(t);return xe(e,o)}function xe(e,t){return e.serialize(t).split("#")[0]+"#"}we.getFullPath=Oe,we._getFullPath=xe;const Ie=/#\/?$/;function Re(e){return e?e.replace(Ie,""):""}we.normalizeId=Re,we.resolveUrl=function(e,t,n){return n=Re(n),e.resolve(t,n)};const Ne=/^[a-z_][-a-z0-9._]*$/i;var De;function Be(){if(De)return g;De=1,Object.defineProperty(g,"__esModule",{value:!0}),g.getData=g.KeywordCxt=g.validateFunctionCode=void 0;const e=function(){if(q)return b;q=1,Object.defineProperty(b,"__esModule",{value:!0}),b.boolOrEmptySchema=b.topBoolOrEmptySchema=void 0;const e=L(),t=$,n=U(),o={message:"boolean schema is false"};function r(t,n){const{gen:r,data:i}=t,a={gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(a,o,void 0,n)}return b.topBoolOrEmptySchema=function(e){const{gen:o,schema:i,validateName:a}=e;!1===i?r(e,!1):"object"==typeof i&&!0===i.$async?o.return(n.default.data):(o.assign(t._`${a}.errors`,null),o.return(!0))},b.boolOrEmptySchema=function(e,t){const{gen:n,schema:o}=e;!1===o?(n.var(t,!1),r(e)):n.var(t,!0)},b}(),t=V,n=J(),o=V,r=function(){if(le)return ce;le=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.assignDefaults=void 0;const e=$,t=T;function n(n,o,r){const{gen:i,compositeRule:a,data:s,opts:l}=n;if(void 0===r)return;const c=e._`${s}${(0,e.getProperty)(o)}`;if(a)return void(0,t.checkStrictMode)(n,`default is ignored for: ${c}`);let u=e._`${c} === undefined`;"empty"===l.useDefaults&&(u=e._`${u} || ${c} === null || ${c} === ""`),i.if(u,e._`${c} = ${(0,e.stringify)(r)}`)}return ce.assignDefaults=function(e,t){const{properties:o,items:r}=e.schema;if("object"===t&&o)for(const t in o)n(e,t,o[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,o)=>n(e,o,t.default)))},ce}(),i=me(),a=function(){if(ve)return ye;ve=1,Object.defineProperty(ye,"__esModule",{value:!0}),ye.extendSubschemaMode=ye.extendSubschemaData=ye.getSubschema=void 0;const e=$,t=T;return ye.getSubschema=function(n,{keyword:o,schemaProp:r,schema:i,schemaPath:a,errSchemaPath:s,topSchemaRef:l}){if(void 0!==o&&void 0!==i)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==o){const i=n.schema[o];return void 0===r?{schema:i,schemaPath:e._`${n.schemaPath}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${o}`}:{schema:i[r],schemaPath:e._`${n.schemaPath}${(0,e.getProperty)(o)}${(0,e.getProperty)(r)}`,errSchemaPath:`${n.errSchemaPath}/${o}/${(0,t.escapeFragment)(r)}`}}if(void 0!==i){if(void 0===a||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:a,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},ye.extendSubschemaData=function(n,o,{dataProp:r,dataPropType:i,data:a,dataTypes:s,propertyName:l}){if(void 0!==a&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=o;if(void 0!==r){const{errorPath:a,dataPathArr:s,opts:l}=o;u(c.let("data",e._`${o.data}${(0,e.getProperty)(r)}`,!0)),n.errorPath=e.str`${a}${(0,t.getErrorPath)(r,i,l.jsPropertySyntax)}`,n.parentDataProperty=e._`${r}`,n.dataPathArr=[...s,n.parentDataProperty]}function u(e){n.data=e,n.dataLevel=o.dataLevel+1,n.dataTypes=[],o.definedProperties=new Set,n.parentData=o.data,n.dataNames=[...o.dataNames,e]}void 0!==a&&(u(a instanceof e.Name?a:c.let("data",a,!0)),void 0!==l&&(n.propertyName=l)),s&&(n.dataTypes=s)},ye.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:o,createErrors:r,allErrors:i}){void 0!==o&&(e.compositeRule=o),void 0!==r&&(e.createErrors=r),void 0!==i&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=n},ye}(),s=$,l=U(),c=we,u=T,d=L();function p({gen:e,validateName:t,schema:n,schemaEnv:o,opts:r},i){r.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,o.$async,(()=>{e.code(s._`"use strict"; ${f(n,r)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,s._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,s._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,s._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,s._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,s._`""`),e.var(l.default.parentData,s._`undefined`),e.var(l.default.parentDataProperty,s._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`{}`)}))}(e,r),e.code(i)})):e.func(t,s._`${l.default.data}, ${function(e){return s._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?s._`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}(r)}`,o.$async,(()=>e.code(f(n,r)).code(i)))}function f(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?s._`/*# sourceURL=${n} */`:s.nil}function h(t,n){v(t)&&(y(t),m(t))?function(e,t){const{schema:n,gen:o,opts:r}=e;r.$comment&&n.$comment&&k(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,c.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const i=o.const("_errs",l.default.errors);w(e,i),o.var(t,s._`${i} === ${l.default.errors}`)}(t,n):(0,e.boolOrEmptySchema)(t,n)}function m({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function y(e){(0,u.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:o,self:r}=e;t.$ref&&o.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(t,r.RULES)&&r.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function w(e,n){if(e.opts.jtd)return j(e,[],!1,n);const o=(0,t.getSchemaTypes)(e.schema);j(e,o,!(0,t.coerceAndCheckDataType)(e,o),n)}function k({gen:e,schemaEnv:t,schema:n,errSchemaPath:o,opts:r}){const i=n.$comment;if(!0===r.$comment)e.code(s._`${l.default.self}.logger.log(${i})`);else if("function"==typeof r.$comment){const n=s.str`${o}/$comment`,r=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${i}, ${n}, ${r}.schema)`)}}function j(e,t,r,i){const{gen:a,schema:c,data:d,allErrors:p,opts:f,self:h}=e,{RULES:m}=h;function v(u){(0,n.shouldUseGroup)(c,u)&&(u.type?(a.if((0,o.checkDataType)(u.type,d,f.strictNumbers)),A(e,u),1===t.length&&t[0]===u.type&&r&&(a.else(),(0,o.reportTypeError)(e)),a.endIf()):A(e,u),p||a.if(s._`${l.default.errors} === ${i||0}`))}!c.$ref||!f.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(c,m)?(f.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{E(e.dataTypes,t)||C(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const o of e.dataTypes)E(t,o)?n.push(o):t.includes("integer")&&"number"===o&&n.push("integer");e.dataTypes=n}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&C(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const o=e.self.RULES.all;for(const r in o){const i=o[r];if("object"==typeof i&&(0,n.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>P(t,e)))&&C(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes)}(e,t),a.block((()=>{for(const e of m.rules)v(e);v(m.post)}))):a.block((()=>S(e,"$ref",m.all.$ref.definition)))}function A(e,t){const{gen:o,schema:i,opts:{useDefaults:a}}=e;a&&(0,r.assignDefaults)(e,t.type),o.block((()=>{for(const o of t.rules)(0,n.shouldUseRule)(i,o)&&S(e,o.keyword,o.definition,t.type)}))}function P(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function E(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function C(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,u.checkStrictMode)(e,t,e.opts.strictTypes)}g.validateFunctionCode=function(t){v(t)&&(y(t),m(t))?function(e){const{schema:t,opts:n,gen:o}=e;p(e,(()=>{n.$comment&&t.$comment&&k(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,u.checkStrictMode)(e,"default is ignored in the schema root")}(e),o.let(l.default.vErrors,null),o.let(l.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",s._`${n}.evaluated`),t.if(s._`${e.evaluated}.dynamicProps`,(()=>t.assign(s._`${e.evaluated}.props`,s._`undefined`))),t.if(s._`${e.evaluated}.dynamicItems`,(()=>t.assign(s._`${e.evaluated}.items`,s._`undefined`)))}(e),w(e),function(e){const{gen:t,schemaEnv:n,validateName:o,ValidationError:r,opts:i}=e;n.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${r}(${l.default.vErrors})`))):(t.assign(s._`${o}.errors`,l.default.vErrors),i.unevaluated&&function({gen:e,evaluated:t,props:n,items:o}){n instanceof s.Name&&e.assign(s._`${t}.props`,n);o instanceof s.Name&&e.assign(s._`${t}.items`,o)}(e),t.return(s._`${l.default.errors} === 0`))}(e)}))}(t):p(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class z{constructor(e,t,n){if((0,i.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",x(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,n){this.failResult((0,s.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=s.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:n,schemaCode:o,schemaType:r,def:i}=this;n.if((0,s.or)(s._`${o} === undefined`,t)),e!==s.nil&&n.assign(e,!0),(r.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,s.or)(function(){if(n.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return s._`${(0,o.checkDataTypes)(e,t,i.opts.strictNumbers,o.DataType.Wrong)}`}return s.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return s._`!${n}(${t})`}return s.nil}())}subschema(e,t){const n=(0,a.getSubschema)(this.it,e);(0,a.extendSubschemaData)(n,this.it,e),(0,a.extendSubschemaMode)(n,e);const o={...this.it,...n,items:void 0,props:void 0};return h(o,t),o}mergeEvaluated(e,t){const{it:n,gen:o}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=u.mergeEvaluated.props(o,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=u.mergeEvaluated.items(o,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:o}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return o.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function S(e,t,n,o){const r=new z(e,n,t);"code"in n?n.code(r,o):r.$data&&n.validate?(0,i.funcKeywordCode)(r,n):"macro"in n?(0,i.macroKeywordCode)(r,n):(n.compile||n.validate)&&(0,i.funcKeywordCode)(r,n)}g.KeywordCxt=z;const _=/^\/(?:[^~]|~0|~1)*$/,O=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function x(e,{dataLevel:t,dataNames:n,dataPathArr:o}){let r,i;if(""===e)return l.default.rootData;if("/"===e[0]){if(!_.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);r=e,i=l.default.rootData}else{const a=O.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+a[1];if(r=a[2],"#"===r){if(s>=t)throw new Error(d("property/index",s));return o[t-s]}if(s>t)throw new Error(d("data",s));if(i=n[t-s],!r)return i}let a=i;const c=r.split("/");for(const e of c)e&&(i=s._`${i}${(0,s.getProperty)((0,u.unescapeJsonPointer)(e))}`,a=s._`${a} && ${i}`);return a;function d(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}return g.getData=x,g}we.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:o}=this.opts,r=Re(e[n]||t),i={"":r},a=Oe(o,r,!1),s={},l=new Set;return Ee(e,{allKeys:!0},((e,t,o,r)=>{if(void 0===r)return;const d=a+t;let p=i[r];function f(t){const n=this.opts.uriResolver.resolve;if(t=Re(p?n(p,t):t),l.has(t))throw u(t);l.add(t);let o=this.refs[t];return"string"==typeof o&&(o=this.refs[o]),"object"==typeof o?c(e,o.schema,t):t!==Re(d)&&("#"===t[0]?(c(e,s[t],t),s[t]=e):this.refs[t]=d),t}function h(e){if("string"==typeof e){if(!Ne.test(e))throw new Error(`invalid anchor "${e}"`);f.call(this,`#${e}`)}}"string"==typeof e[n]&&(p=f.call(this,e[n])),h.call(this,e.$anchor),h.call(this,e.$dynamicAnchor),i[t]=p})),s;function c(e,t,n){if(void 0!==t&&!Pe(e,t))throw u(n)}function u(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var Me,qe={};function Fe(){if(Me)return qe;Me=1,Object.defineProperty(qe,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return qe.default=e,qe}var Ue,Le={};function Ve(){if(Ue)return Le;Ue=1,Object.defineProperty(Le,"__esModule",{value:!0});const e=we;class t extends Error{constructor(t,n,o,r){super(r||`can't resolve reference ${o} from id ${n}`),this.missingRef=(0,e.resolveUrl)(t,n,o),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return Le.default=t,Le}var We={};Object.defineProperty(We,"__esModule",{value:!0}),We.resolveSchema=We.getCompilingSchema=We.resolveRef=We.compileSchema=We.SchemaEnv=void 0;const Ge=$,He=Fe(),Ke=U(),Je=we,Ze=T,Ye=Be();class Qe{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,Je.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function Xe(e){const t=tt.call(this,e);if(t)return t;const n=(0,Je.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:o,lines:r}=this.opts.code,{ownProperties:i}=this.opts,a=new Ge.CodeGen(this.scope,{es5:o,lines:r,ownProperties:i});let s;e.$async&&(s=a.scopeValue("Error",{ref:He.default,code:Ge._`require("ajv/dist/runtime/validation_error").default`}));const l=a.scopeName("validate");e.validateName=l;const c={gen:a,allErrors:this.opts.allErrors,data:Ke.default.data,parentData:Ke.default.parentData,parentDataProperty:Ke.default.parentDataProperty,dataNames:[Ke.default.data],dataPathArr:[Ge.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,Ge.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Ge.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:Ge._`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Ye.validateFunctionCode)(c),a.optimize(this.opts.code.optimize);const t=a.toString();u=`${a.scopeRefs(Ke.default.scope)}return ${t}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const n=new Function(`${Ke.default.self}`,`${Ke.default.scope}`,u)(this,this.scope.get());if(this.scope.value(l,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:l,validateCode:t,scopeValues:a._values}),this.opts.unevaluated){const{props:e,items:t}=c;n.evaluated={props:e instanceof Ge.Name?void 0:e,items:t instanceof Ge.Name?void 0:t,dynamicProps:e instanceof Ge.Name,dynamicItems:t instanceof Ge.Name},n.source&&(n.source.evaluated=(0,Ge.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),t}finally{this._compilations.delete(e)}}function et(e){return(0,Je.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Xe.call(this,e)}function tt(e){for(const o of this._compilations)if(n=e,(t=o).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return o;var t,n}function nt(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||ot.call(this,e,t)}function ot(e,t){const n=this.opts.uriResolver.parse(t),o=(0,Je._getFullPath)(this.opts.uriResolver,n);let r=(0,Je.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&o===r)return it.call(this,n,e);const i=(0,Je.normalizeId)(o),a=this.refs[i]||this.schemas[i];if("string"==typeof a){const t=ot.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return it.call(this,n,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||Xe.call(this,a),i===(0,Je.normalizeId)(t)){const{schema:t}=a,{schemaId:n}=this.opts,o=t[n];return o&&(r=(0,Je.resolveUrl)(this.opts.uriResolver,r,o)),new Qe({schema:t,schemaId:n,root:e,baseId:r})}return it.call(this,n,a)}}We.SchemaEnv=Qe,We.compileSchema=Xe,We.resolveRef=function(e,t,n){var o;n=(0,Je.resolveUrl)(this.opts.uriResolver,t,n);const r=e.refs[n];if(r)return r;let i=nt.call(this,e,n);if(void 0===i){const r=null===(o=e.localRefs)||void 0===o?void 0:o[n],{schemaId:a}=this.opts;r&&(i=new Qe({schema:r,schemaId:a,root:e,baseId:t}))}return void 0!==i?e.refs[n]=et.call(this,i):void 0},We.getCompilingSchema=tt,We.resolveSchema=ot;const rt=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function it(e,{baseId:t,schema:n,root:o}){var r;if("/"!==(null===(r=e.fragment)||void 0===r?void 0:r[0]))return;for(const o of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,Ze.unescapeFragment)(o)];if(void 0===e)return;const r="object"==typeof(n=e)&&n[this.opts.schemaId];!rt.has(o)&&r&&(t=(0,Je.resolveUrl)(this.opts.uriResolver,t,r))}let i;if("boolean"!=typeof n&&n.$ref&&!(0,Ze.schemaHasRulesButRef)(n,this.RULES)){const e=(0,Je.resolveUrl)(this.opts.uriResolver,t,n.$ref);i=ot.call(this,o,e)}const{schemaId:a}=this.opts;return i=i||new Qe({schema:n,schemaId:a,root:o,baseId:t}),i.schema!==i.root.schema?i:void 0}var at={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},st={},lt={exports:{}};var ct={HEX:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15}};const{HEX:ut}=ct;function dt(e){if(mt(e,".")<3)return{host:e,isIPV4:!1};const t=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[n]=t;return n?{host:ht(n,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function pt(e,t=!1){let n="",o=!0;for(const t of e){if(void 0===ut[t])return;"0"!==t&&!0===o&&(o=!1),o||(n+=t)}return t&&0===n.length&&(n="0"),n}function ft(e,t={}){if(mt(e,":")<2)return{host:e,isIPV6:!1};const n=function(e){let t=0;const n={error:!1,address:"",zone:""},o=[],r=[];let i=!1,a=!1,s=!1;function l(){if(r.length){if(!1===i){const e=pt(r);if(void 0===e)return n.error=!0,!1;o.push(e)}r.length=0}return!0}for(let c=0;c<e.length;c++){const u=e[c];if("["!==u&&"]"!==u)if(":"!==u)if("%"===u){if(!l())break;i=!0}else r.push(u);else{if(!0===a&&(s=!0),!l())break;if(t++,o.push(":"),t>7){n.error=!0;break}c-1>=0&&":"===e[c-1]&&(a=!0)}}return r.length&&(i?n.zone=r.join(""):s?o.push(r.join("")):o.push(pt(r))),n.address=o.join(""),n}(e);if(n.error)return{host:e,isIPV6:!1};{let e=n.address,t=n.address;return n.zone&&(e+="%"+n.zone,t+="%25"+n.zone),{host:e,escapedHost:t,isIPV6:!0}}}function ht(e,t){let n="",o=!0;const r=e.length;for(let i=0;i<r;i++){const a=e[i];"0"===a&&o?(i+1<=r&&e[i+1]===t||i+1===r)&&(n+=a,o=!1):(o=a===t,n+=a)}return n}function mt(e,t){let n=0;for(let o=0;o<e.length;o++)e[o]===t&&n++;return n}const vt=/^\.\.?\//u,yt=/^\/\.(?:\/|$)/u,wt=/^\/\.\.(?:\/|$)/u,gt=/^\/?(?:.|\n)*?(?=\/|$)/u;var bt={recomposeAuthority:function(e,t){const n=[];if(void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host){let t=unescape(e.host);const o=dt(t);if(o.isIPV4)t=o.host;else{const n=ft(o.host,{isIPV4:!1});t=!0===n.isIPV6?`[${n.escapedHost}]`:e.host}n.push(t)}return"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0},normalizeComponentEncoding:function(e,t){const n=!0!==t?escape:unescape;return void 0!==e.scheme&&(e.scheme=n(e.scheme)),void 0!==e.userinfo&&(e.userinfo=n(e.userinfo)),void 0!==e.host&&(e.host=n(e.host)),void 0!==e.path&&(e.path=n(e.path)),void 0!==e.query&&(e.query=n(e.query)),void 0!==e.fragment&&(e.fragment=n(e.fragment)),e},removeDotSegments:function(e){const t=[];for(;e.length;)if(e.match(vt))e=e.replace(vt,"");else if(e.match(yt))e=e.replace(yt,"/");else if(e.match(wt))e=e.replace(wt,"/"),t.pop();else if("."===e||".."===e)e="";else{const n=e.match(gt);if(!n)throw new Error("Unexpected dot segment condition");{const o=n[0];e=e.slice(o.length),t.push(o)}}return t.join("")},normalizeIPv4:dt,normalizeIPv6:ft,stringArrayToHexStripped:pt};const kt=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,$t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function jt(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}function At(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Tt(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const Pt={scheme:"http",domainHost:!0,parse:At,serialize:Tt},Et={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=jt(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(jt(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,n]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}},Ct={http:Pt,https:{scheme:"https",domainHost:Pt.domainHost,parse:At,serialize:Tt},ws:Et,wss:{scheme:"wss",domainHost:Et.domainHost,parse:Et.parse,serialize:Et.serialize},urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match($t);if(n){const o=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const r=`${o}:${t.nid||e.nid}`,i=Ct[r];e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){const n=t.scheme||e.scheme||"urn",o=e.nid.toLowerCase(),r=`${n}:${t.nid||o}`,i=Ct[r];i&&(e=i.serialize(e,t));const a=e,s=e.nss;return a.path=`${o||t.nid}:${s}`,t.skipEscape=!0,a},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,t){const n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&kt.test(n.uuid)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};var zt=Ct;const{normalizeIPv6:St,normalizeIPv4:_t,removeDotSegments:Ot,recomposeAuthority:xt,normalizeComponentEncoding:It}=bt,Rt=zt;function Nt(e,t,n,o){const r={};return o||(e=qt(Dt(e,n),n),t=qt(Dt(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=Ot(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=Ot(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=Ot(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=Ot(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function Dt(e,t){const n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},o=Object.assign({},t),r=[],i=Rt[(o.scheme||n.scheme||"").toLowerCase()];i&&i.serialize&&i.serialize(n,o),void 0!==n.path&&(o.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),void 0!==n.scheme&&(n.path=n.path.split("%3A").join(":")))),"suffix"!==o.reference&&n.scheme&&(r.push(n.scheme),r.push(":"));const a=xt(n,o);if(void 0!==a&&("suffix"!==o.reference&&r.push("//"),r.push(a),n.path&&"/"!==n.path.charAt(0)&&r.push("/")),void 0!==n.path){let e=n.path;o.absolutePath||i&&i.absolutePath||(e=Ot(e)),void 0===a&&(e=e.replace(/^\/\//u,"/%2F")),r.push(e)}return void 0!==n.query&&(r.push("?"),r.push(n.query)),void 0!==n.fragment&&(r.push("#"),r.push(n.fragment)),r.join("")}const Bt=Array.from({length:127},((e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t))));const Mt=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function qt(e,t){const n=Object.assign({},t),o={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},r=-1!==e.indexOf("%");let i=!1;"suffix"===n.reference&&(e=(n.scheme?n.scheme+":":"")+"//"+e);const a=e.match(Mt);if(a){if(o.scheme=a[1],o.userinfo=a[3],o.host=a[4],o.port=parseInt(a[5],10),o.path=a[6]||"",o.query=a[7],o.fragment=a[8],isNaN(o.port)&&(o.port=a[5]),o.host){const e=_t(o.host);if(!1===e.isIPV4){const t=St(e.host,{isIPV4:!1});o.host=t.host.toLowerCase(),i=t.isIPV6}else o.host=e.host,i=!0}void 0!==o.scheme||void 0!==o.userinfo||void 0!==o.host||void 0!==o.port||o.path||void 0!==o.query?void 0===o.scheme?o.reference="relative":void 0===o.fragment?o.reference="absolute":o.reference="uri":o.reference="same-document",n.reference&&"suffix"!==n.reference&&n.reference!==o.reference&&(o.error=o.error||"URI is not a "+n.reference+" reference.");const e=Rt[(n.scheme||o.scheme||"").toLowerCase()];if(!(n.unicodeSupport||e&&e.unicodeSupport)&&o.host&&(n.domainHost||e&&e.domainHost)&&!1===i&&function(e){let t=0;for(let n=0,o=e.length;n<o;++n)if(t=e.charCodeAt(n),t>126||Bt[t])return!0;return!1}(o.host))try{o.host=URL.domainToASCII(o.host.toLowerCase())}catch(e){o.error=o.error||"Host's domain name can not be converted to ASCII: "+e}(!e||e&&!e.skipNormalize)&&(r&&void 0!==o.scheme&&(o.scheme=unescape(o.scheme)),r&&void 0!==o.userinfo&&(o.userinfo=unescape(o.userinfo)),r&&void 0!==o.host&&(o.host=unescape(o.host)),void 0!==o.path&&o.path.length&&(o.path=escape(unescape(o.path))),void 0!==o.fragment&&o.fragment.length&&(o.fragment=encodeURI(decodeURIComponent(o.fragment)))),e&&e.parse&&e.parse(o,n)}else o.error=o.error||"URI can not be parsed.";return o}const Ft={SCHEMES:Rt,normalize:function(e,t){return"string"==typeof e?e=Dt(qt(e,t),t):"object"==typeof e&&(e=qt(Dt(e,t),t)),e},resolve:function(e,t,n){const o=Object.assign({scheme:"null"},n);return Dt(Nt(qt(e,o),qt(t,o),o,!0),{...o,skipEscape:!0})},resolveComponents:Nt,equal:function(e,t,n){return"string"==typeof e?(e=unescape(e),e=Dt(It(qt(e,n),!0),{...n,skipEscape:!0})):"object"==typeof e&&(e=Dt(It(e,!0),{...n,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=Dt(It(qt(t,n),!0),{...n,skipEscape:!0})):"object"==typeof t&&(t=Dt(It(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:Dt,parse:qt};lt.exports=Ft,lt.exports.default=Ft,lt.exports.fastUri=Ft;var Ut=lt.exports;Object.defineProperty(st,"__esModule",{value:!0});const Lt=Ut;Lt.code='require("ajv/dist/runtime/uri").default',st.default=Lt,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Be();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=$;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const o=Fe(),r=Ve(),i=W,a=We,s=$,l=we,c=V,u=T,d=at,p=st,f=(e,t)=>new RegExp(e,t);f.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(e){var t,n,o,r,i,a,s,l,c,u,d,h,m,v,y,w,g,b,k,$,j,A,T,P,E;const C=e.strict,z=null===(t=e.code)||void 0===t?void 0:t.optimize,S=!0===z||void 0===z?1:z||0,_=null!==(o=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==o?o:f,O=null!==(r=e.uriResolver)&&void 0!==r?r:p.default;return{strictSchema:null===(a=null!==(i=e.strictSchema)&&void 0!==i?i:C)||void 0===a||a,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:C)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:C)&&void 0!==u?u:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:C)&&void 0!==h?h:"log",strictRequired:null!==(v=null!==(m=e.strictRequired)&&void 0!==m?m:C)&&void 0!==v&&v,code:e.code?{...e.code,optimize:S,regExp:_}:{optimize:S,regExp:_},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(w=e.loopEnum)&&void 0!==w?w:200,meta:null===(g=e.meta)||void 0===g||g,messages:null===(b=e.messages)||void 0===b||b,inlineRefs:null===(k=e.inlineRefs)||void 0===k||k,schemaId:null!==($=e.schemaId)&&void 0!==$?$:"$id",addUsedSchema:null===(j=e.addUsedSchema)||void 0===j||j,validateSchema:null===(A=e.validateSchema)||void 0===A||A,validateFormats:null===(T=e.validateFormats)||void 0===T||T,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(E=e.int32range)||void 0===E||E,uriResolver:O}}class g{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:m,es5:t,lines:n}),this.logger=function(e){if(!1===e)return C;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const o=e.validateFormats;e.validateFormats=!1,this.RULES=(0,i.getRules)(),b.call(this,v,e,"NOT SUPPORTED"),b.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=E.call(this),e.formats&&A.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&P.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),j.call(this),e.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let o=d;"id"===n&&(o={...d},o.id=o.$id,delete o.$id),t&&e&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const o=n(t);return"$async"in n||(this.errors=n.errors),o}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return o.call(this,e,t);async function o(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||a.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await o.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof r.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),a.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const n=await c.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function c(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,o=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,o);return this}let r;if("object"==typeof e){const{schemaId:t}=this.opts;if(r=e[t],void 0!==r&&"string"!=typeof r)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||r),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,o,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const o=this.validate(n,e);if(!o&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return o}getSchema(e){let t;for(;"string"==typeof(t=k.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,o=new a.SchemaEnv({schema:{},schemaId:n});if(t=a.resolveSchema.call(this,o,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=k.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,l.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(S.call(this,n,t),!t)return(0,u.eachItem)(n,(e=>_.call(this,e))),this;x.call(this,t);const o={...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(n,0===o.type.length?e=>_.call(this,e,o):e=>o.type.forEach((t=>_.call(this,e,o,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const o of t){const t=o.split("/").slice(1);let r=e;for(const e of t)r=r[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:o}=t.definition,i=r[e];o&&i&&(r[e]=R(i))}}return e}_removeAllSchemas(e,t){for(const n in e){const o=e[n];t&&!t.test(n)||("string"==typeof o?delete e[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete e[n]))}}_addSchema(e,t,n,o=this.opts.validateSchema,r=this.opts.addUsedSchema){let i;const{schemaId:s}=this.opts;if("object"==typeof e)i=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(void 0!==c)return c;n=(0,l.normalizeId)(i||n);const u=l.getSchemaRefs.call(this,e,n);return c=new a.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:u}),this._cache.set(c.schema,c),r&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):a.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,e)}finally{this.opts=t}}}function b(e,t,n,o="error"){for(const r in e){const i=r;i in t&&this.logger[o](`${n}: option ${r}. ${e[i]}`)}}function k(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function j(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function A(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function P(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function E(){const e={...this.opts};for(const t of h)delete e[t];return e}g.ValidationError=o.default,g.MissingRefError=r.default,e.default=g;const C={log(){},warn(){},error(){}};const z=/^[a-z_$][a-z0-9_$:-]*$/i;function S(e,t){const{RULES:n}=this;if((0,u.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!z.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function _(e,t,n){var o;const r=null==t?void 0:t.post;if(n&&r)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:i}=this;let a=r?i.post:i.rules.find((({type:e})=>e===n));if(a||(a={type:n,rules:[]},i.rules.push(a)),i.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)}};t.before?O.call(this,a,s,t.before):a.rules.push(s),i.all[e]=s,null===(o=t.implements)||void 0===o||o.forEach((e=>this.addKeyword(e)))}function O(e,t,n){const o=e.rules.findIndex((e=>e.keyword===n));o>=0?e.rules.splice(o,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function x(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=R(t)),e.validateSchema=this.compile(t,!0))}const I={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function R(e){return{anyOf:[e,I]}}}(w);var Vt={},Wt={},Gt={};Object.defineProperty(Gt,"__esModule",{value:!0});const Ht={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Gt.default=Ht;var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.callRef=Kt.getValidate=void 0;const Jt=Ve(),Zt=he(),Yt=$,Qt=U(),Xt=We,en=T,tn={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:o}=e,{baseId:r,schemaEnv:i,validateName:a,opts:s,self:l}=o,{root:c}=i;if(("#"===n||"#/"===n)&&r===c.baseId)return function(){if(i===c)return on(e,a,i,i.$async);const n=t.scopeValue("root",{ref:c});return on(e,Yt._`${n}.validate`,c,c.$async)}();const u=Xt.resolveRef.call(l,c,r,n);if(void 0===u)throw new Jt.default(o.opts.uriResolver,r,n);return u instanceof Xt.SchemaEnv?function(t){const n=nn(e,t);on(e,n,t,t.$async)}(u):function(o){const r=t.scopeValue("schema",!0===s.code.source?{ref:o,code:(0,Yt.stringify)(o)}:{ref:o}),i=t.name("valid"),a=e.subschema({schema:o,dataTypes:[],schemaPath:Yt.nil,topSchemaRef:r,errSchemaPath:n},i);e.mergeEvaluated(a),e.ok(i)}(u)}};function nn(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):Yt._`${n.scopeValue("wrapper",{ref:t})}.validate`}function on(e,t,n,o){const{gen:r,it:i}=e,{allErrors:a,schemaEnv:s,opts:l}=i,c=l.passContext?Qt.default.this:Yt.nil;function u(e){const t=Yt._`${e}.errors`;r.assign(Qt.default.vErrors,Yt._`${Qt.default.vErrors} === null ? ${t} : ${Qt.default.vErrors}.concat(${t})`),r.assign(Qt.default.errors,Yt._`${Qt.default.vErrors}.length`)}function d(e){var t;if(!i.opts.unevaluated)return;const o=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==i.props)if(o&&!o.dynamicProps)void 0!==o.props&&(i.props=en.mergeEvaluated.props(r,o.props,i.props));else{const t=r.var("props",Yt._`${e}.evaluated.props`);i.props=en.mergeEvaluated.props(r,t,i.props,Yt.Name)}if(!0!==i.items)if(o&&!o.dynamicItems)void 0!==o.items&&(i.items=en.mergeEvaluated.items(r,o.items,i.items));else{const t=r.var("items",Yt._`${e}.evaluated.items`);i.items=en.mergeEvaluated.items(r,t,i.items,Yt.Name)}}o?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const n=r.let("valid");r.try((()=>{r.code(Yt._`await ${(0,Zt.callValidateCode)(e,t,c)}`),d(t),a||r.assign(n,!0)}),(e=>{r.if(Yt._`!(${e} instanceof ${i.ValidationError})`,(()=>r.throw(e))),u(e),a||r.assign(n,!1)})),e.ok(n)}():e.result((0,Zt.callValidateCode)(e,t,c),(()=>d(t)),(()=>u(t)))}Kt.getValidate=nn,Kt.callRef=on,Kt.default=tn,Object.defineProperty(Wt,"__esModule",{value:!0});const rn=Kt,an=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Gt.default,rn.default];Wt.default=an;var sn={},ln={};Object.defineProperty(ln,"__esModule",{value:!0});const cn=$,un=cn.operators,dn={maximum:{okStr:"<=",ok:un.LTE,fail:un.GT},minimum:{okStr:">=",ok:un.GTE,fail:un.LT},exclusiveMaximum:{okStr:"<",ok:un.LT,fail:un.GTE},exclusiveMinimum:{okStr:">",ok:un.GT,fail:un.LTE}},pn={message:({keyword:e,schemaCode:t})=>cn.str`must be ${dn[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>cn._`{comparison: ${dn[e].okStr}, limit: ${t}}`},fn={keyword:Object.keys(dn),type:"number",schemaType:"number",$data:!0,error:pn,code(e){const{keyword:t,data:n,schemaCode:o}=e;e.fail$data(cn._`${n} ${dn[t].fail} ${o} || isNaN(${n})`)}};ln.default=fn;var hn={};Object.defineProperty(hn,"__esModule",{value:!0});const mn=$,vn={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>mn.str`must be multiple of ${e}`,params:({schemaCode:e})=>mn._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:o,it:r}=e,i=r.opts.multipleOfPrecision,a=t.let("res"),s=i?mn._`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:mn._`${a} !== parseInt(${a})`;e.fail$data(mn._`(${o} === 0 || (${a} = ${n}/${o}, ${s}))`)}};hn.default=vn;var yn={},wn={};function gn(e){const t=e.length;let n,o=0,r=0;for(;r<t;)o++,n=e.charCodeAt(r++),n>=55296&&n<=56319&&r<t&&(n=e.charCodeAt(r),56320==(64512&n)&&r++);return o}Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=gn,gn.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(yn,"__esModule",{value:!0});const bn=$,kn=T,$n=wn,jn={message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return bn.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>bn._`{limit: ${e}}`},An={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:jn,code(e){const{keyword:t,data:n,schemaCode:o,it:r}=e,i="maxLength"===t?bn.operators.GT:bn.operators.LT,a=!1===r.opts.unicode?bn._`${n}.length`:bn._`${(0,kn.useFunc)(e.gen,$n.default)}(${n})`;e.fail$data(bn._`${a} ${i} ${o}`)}};yn.default=An;var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});const Pn=he(),En=$,Cn={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>En.str`must match pattern "${e}"`,params:({schemaCode:e})=>En._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:r,it:i}=e,a=i.opts.unicodeRegExp?"u":"",s=n?En._`(new RegExp(${r}, ${a}))`:(0,Pn.usePattern)(e,o);e.fail$data(En._`!${s}.test(${t})`)}};Tn.default=Cn;var zn={};Object.defineProperty(zn,"__esModule",{value:!0});const Sn=$,_n={message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return Sn.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>Sn._`{limit: ${e}}`},On={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:_n,code(e){const{keyword:t,data:n,schemaCode:o}=e,r="maxProperties"===t?Sn.operators.GT:Sn.operators.LT;e.fail$data(Sn._`Object.keys(${n}).length ${r} ${o}`)}};zn.default=On;var xn={};Object.defineProperty(xn,"__esModule",{value:!0});const In=he(),Rn=$,Nn=T,Dn={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>Rn.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>Rn._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:o,data:r,$data:i,it:a}=e,{opts:s}=a;if(!i&&0===n.length)return;const l=n.length>=s.loopRequired;if(a.allErrors?function(){if(l||i)e.block$data(Rn.nil,c);else for(const t of n)(0,In.checkReportMissingProp)(e,t)}():function(){const a=t.let("missing");if(l||i){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,i){e.setParams({missingProperty:n}),t.forOf(n,o,(()=>{t.assign(i,(0,In.propertyInData)(t,r,n,s.ownProperties)),t.if((0,Rn.not)(i),(()=>{e.error(),t.break()}))}),Rn.nil)}(a,n))),e.ok(n)}else t.if((0,In.checkMissingProp)(e,n,a)),(0,In.reportMissingProp)(e,a),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:o}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!o.has(e)){const t=`required property "${e}" is not defined at "${a.schemaEnv.baseId+a.errSchemaPath}" (strictRequired)`;(0,Nn.checkStrictMode)(a,t,a.opts.strictRequired)}}function c(){t.forOf("prop",o,(n=>{e.setParams({missingProperty:n}),t.if((0,In.noPropertyInData)(t,r,n,s.ownProperties),(()=>e.error()))}))}}};xn.default=Dn;var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});const Mn=$,qn={message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return Mn.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>Mn._`{limit: ${e}}`},Fn={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:qn,code(e){const{keyword:t,data:n,schemaCode:o}=e,r="maxItems"===t?Mn.operators.GT:Mn.operators.LT;e.fail$data(Mn._`${n}.length ${r} ${o}`)}};Bn.default=Fn;var Un={},Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});const Vn=ge;Vn.code='require("ajv/dist/runtime/equal").default',Ln.default=Vn,Object.defineProperty(Un,"__esModule",{value:!0});const Wn=V,Gn=$,Hn=T,Kn=Ln,Jn={message:({params:{i:e,j:t}})=>Gn.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>Gn._`{i: ${e}, j: ${t}}`},Zn={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Jn,code(e){const{gen:t,data:n,$data:o,schema:r,parentSchema:i,schemaCode:a,it:s}=e;if(!o&&!r)return;const l=t.let("valid"),c=i.items?(0,Wn.getSchemaTypes)(i.items):[];function u(o,r){const i=t.name("item"),a=(0,Wn.checkDataTypes)(c,i,s.opts.strictNumbers,Wn.DataType.Wrong),u=t.const("indices",Gn._`{}`);t.for(Gn._`;${o}--;`,(()=>{t.let(i,Gn._`${n}[${o}]`),t.if(a,Gn._`continue`),c.length>1&&t.if(Gn._`typeof ${i} == "string"`,Gn._`${i} += "_"`),t.if(Gn._`typeof ${u}[${i}] == "number"`,(()=>{t.assign(r,Gn._`${u}[${i}]`),e.error(),t.assign(l,!1).break()})).code(Gn._`${u}[${i}] = ${o}`)}))}function d(o,r){const i=(0,Hn.useFunc)(t,Kn.default),a=t.name("outer");t.label(a).for(Gn._`;${o}--;`,(()=>t.for(Gn._`${r} = ${o}; ${r}--;`,(()=>t.if(Gn._`${i}(${n}[${o}], ${n}[${r}])`,(()=>{e.error(),t.assign(l,!1).break(a)}))))))}e.block$data(l,(function(){const o=t.let("i",Gn._`${n}.length`),r=t.let("j");e.setParams({i:o,j:r}),t.assign(l,!0),t.if(Gn._`${o} > 1`,(()=>(c.length>0&&!c.some((e=>"object"===e||"array"===e))?u:d)(o,r)))}),Gn._`${a} === false`),e.ok(l)}};Un.default=Zn;var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});const Qn=$,Xn=T,eo=Ln,to={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>Qn._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:o,schemaCode:r,schema:i}=e;o||i&&"object"==typeof i?e.fail$data(Qn._`!${(0,Xn.useFunc)(t,eo.default)}(${n}, ${r})`):e.fail(Qn._`${i} !== ${n}`)}};Yn.default=to;var no={};Object.defineProperty(no,"__esModule",{value:!0});const oo=$,ro=T,io=Ln,ao={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>oo._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:o,schema:r,schemaCode:i,it:a}=e;if(!o&&0===r.length)throw new Error("enum must have non-empty array");const s=r.length>=a.opts.loopEnum;let l;const c=()=>null!=l?l:l=(0,ro.useFunc)(t,io.default);let u;if(s||o)u=t.let("valid"),e.block$data(u,(function(){t.assign(u,!1),t.forOf("v",i,(e=>t.if(oo._`${c()}(${n}, ${e})`,(()=>t.assign(u,!0).break()))))}));else{if(!Array.isArray(r))throw new Error("ajv implementation error");const e=t.const("vSchema",i);u=(0,oo.or)(...r.map(((t,o)=>function(e,t){const o=r[t];return"object"==typeof o&&null!==o?oo._`${c()}(${n}, ${e}[${t}])`:oo._`${n} === ${o}`}(e,o))))}e.pass(u)}};no.default=ao,Object.defineProperty(sn,"__esModule",{value:!0});const so=hn,lo=yn,co=Tn,uo=zn,po=xn,fo=Bn,ho=Un,mo=Yn,vo=no,yo=[ln.default,so.default,lo.default,co.default,uo.default,po.default,fo.default,ho.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},mo.default,vo.default];sn.default=yo;var wo={},go={};Object.defineProperty(go,"__esModule",{value:!0}),go.validateAdditionalItems=void 0;const bo=$,ko=T,$o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>bo.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>bo._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:o}=t;Array.isArray(o)?jo(e,o):(0,ko.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function jo(e,t){const{gen:n,schema:o,data:r,keyword:i,it:a}=e;a.items=!0;const s=n.const("len",bo._`${r}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(bo._`${s} <= ${t.length}`);else if("object"==typeof o&&!(0,ko.alwaysValidSchema)(a,o)){const o=n.var("valid",bo._`${s} <= ${t.length}`);n.if((0,bo.not)(o),(()=>function(o){n.forRange("i",t.length,s,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:ko.Type.Num},o),a.allErrors||n.if((0,bo.not)(o),(()=>n.break()))}))}(o))),e.ok(o)}}go.validateAdditionalItems=jo,go.default=$o;var Ao={},To={};Object.defineProperty(To,"__esModule",{value:!0}),To.validateTuple=void 0;const Po=$,Eo=T,Co=he(),zo={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return So(e,"additionalItems",t);n.items=!0,(0,Eo.alwaysValidSchema)(n,t)||e.ok((0,Co.validateArray)(e))}};function So(e,t,n=e.schema){const{gen:o,parentSchema:r,data:i,keyword:a,it:s}=e;!function(e){const{opts:o,errSchemaPath:r}=s,i=n.length,l=i===e.minItems&&(i===e.maxItems||!1===e[t]);if(o.strictTuples&&!l){const e=`"${a}" is ${i}-tuple, but minItems or maxItems/${t} are not specified or different at path "${r}"`;(0,Eo.checkStrictMode)(s,e,o.strictTuples)}}(r),s.opts.unevaluated&&n.length&&!0!==s.items&&(s.items=Eo.mergeEvaluated.items(o,n.length,s.items));const l=o.name("valid"),c=o.const("len",Po._`${i}.length`);n.forEach(((t,n)=>{(0,Eo.alwaysValidSchema)(s,t)||(o.if(Po._`${c} > ${n}`,(()=>e.subschema({keyword:a,schemaProp:n,dataProp:n},l))),e.ok(l))}))}To.validateTuple=So,To.default=zo,Object.defineProperty(Ao,"__esModule",{value:!0});const _o=To,Oo={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,_o.validateTuple)(e,"items")};Ao.default=Oo;var xo={};Object.defineProperty(xo,"__esModule",{value:!0});const Io=$,Ro=T,No=he(),Do=go,Bo={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>Io.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Io._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:o}=e,{prefixItems:r}=n;o.items=!0,(0,Ro.alwaysValidSchema)(o,t)||(r?(0,Do.validateAdditionalItems)(e,r):e.ok((0,No.validateArray)(e)))}};xo.default=Bo;var Mo={};Object.defineProperty(Mo,"__esModule",{value:!0});const qo=$,Fo=T,Uo={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?qo.str`must contain at least ${e} valid item(s)`:qo.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?qo._`{minContains: ${e}}`:qo._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:r,it:i}=e;let a,s;const{minContains:l,maxContains:c}=o;i.opts.next?(a=void 0===l?1:l,s=c):a=1;const u=t.const("len",qo._`${r}.length`);if(e.setParams({min:a,max:s}),void 0===s&&0===a)return void(0,Fo.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&a>s)return(0,Fo.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,Fo.alwaysValidSchema)(i,n)){let t=qo._`${u} >= ${a}`;return void 0!==s&&(t=qo._`${t} && ${u} <= ${s}`),void e.pass(t)}i.items=!0;const d=t.name("valid");function p(){const e=t.name("_valid"),n=t.let("count",0);f(e,(()=>t.if(e,(()=>function(e){t.code(qo._`${e}++`),void 0===s?t.if(qo._`${e} >= ${a}`,(()=>t.assign(d,!0).break())):(t.if(qo._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===a?t.assign(d,!0):t.if(qo._`${e} >= ${a}`,(()=>t.assign(d,!0))))}(n)))))}function f(n,o){t.forRange("i",0,u,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:Fo.Type.Num,compositeRule:!0},n),o()}))}void 0===s&&1===a?f(d,(()=>t.if(d,(()=>t.break())))):0===a?(t.let(d,!0),void 0!==s&&t.if(qo._`${r}.length > 0`,p)):(t.let(d,!1),p()),e.result(d,(()=>e.reset()))}};Mo.default=Uo;var Lo={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=$,n=T,o=he();e.error={message:({params:{property:e,depsCount:n,deps:o}})=>{const r=1===n?"property":"properties";return t.str`must have ${r} ${o} when property ${e} is present`},params:({params:{property:e,depsCount:n,deps:o,missingProperty:r}})=>t._`{property: ${e},
5
5
  missingProperty: ${r},
6
6
  depsCount: ${n},
7
- deps: ${o}}`};const r={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const o in e){if("__proto__"===o)continue;(Array.isArray(e[o])?t:n)[o]=e[o]}return[t,n]}(e);i(e,t),a(e,n)}};function i(e,n=e.schema){const{gen:r,data:i,it:a}=e;if(0===Object.keys(n).length)return;const s=r.let("missing");for(const l in n){const c=n[l];if(0===c.length)continue;const u=(0,o.propertyInData)(r,i,l,a.opts.ownProperties);e.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),a.allErrors?r.if(u,(()=>{for(const t of c)(0,o.checkReportMissingProp)(e,t)})):(r.if(t._`${u} && (${(0,o.checkMissingProp)(e,c,s)})`),(0,o.reportMissingProp)(e,s),r.else())}}function a(e,t=e.schema){const{gen:r,data:i,keyword:a,it:s}=e,l=r.name("valid");for(const c in t)(0,n.alwaysValidSchema)(s,t[c])||(r.if((0,o.propertyInData)(r,i,c,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:c},l);e.mergeValidEvaluated(t,l)}),(()=>r.var(l,!0))),e.ok(l))}e.validatePropertyDeps=i,e.validateSchemaDeps=a,e.default=r}(Lo);var Wo={};Object.defineProperty(Wo,"__esModule",{value:!0});const Vo=$,Go=A,Ho={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>Vo._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:r}=e;if((0,Go.alwaysValidSchema)(r,n))return;const i=t.name("valid");t.forIn("key",o,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},i),t.if((0,Vo.not)(i),(()=>{e.error(!0),r.allErrors||t.break()}))})),e.ok(i)}};Wo.default=Ho;var Ko={};Object.defineProperty(Ko,"__esModule",{value:!0});const Jo=he(),Zo=$,Yo=U(),Qo=A,Xo={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>Zo._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:r,errsCount:i,it:a}=e;if(!i)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=a;if(a.props=!0,"all"!==l.removeAdditional&&(0,Qo.alwaysValidSchema)(a,n))return;const c=(0,Jo.allSchemaProperties)(o.properties),u=(0,Jo.allSchemaProperties)(o.patternProperties);function d(e){t.code(Zo._`delete ${r}[${e}]`)}function p(o){if("all"===l.removeAdditional||l.removeAdditional&&!1===n)d(o);else{if(!1===n)return e.setParams({additionalProperty:o}),e.error(),void(s||t.break());if("object"==typeof n&&!(0,Qo.alwaysValidSchema)(a,n)){const n=t.name("valid");"failing"===l.removeAdditional?(f(o,n,!1),t.if((0,Zo.not)(n),(()=>{e.reset(),d(o)}))):(f(o,n),s||t.if((0,Zo.not)(n),(()=>t.break())))}}}function f(t,n,o){const r={keyword:"additionalProperties",dataProp:t,dataPropType:Qo.Type.Str};!1===o&&Object.assign(r,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(r,n)}t.forIn("key",r,(n=>{c.length||u.length?t.if(function(n){let r;if(c.length>8){const e=(0,Qo.schemaRefOrVal)(a,o.properties,"properties");r=(0,Jo.isOwnProperty)(t,e,n)}else r=c.length?(0,Zo.or)(...c.map((e=>Zo._`${n} === ${e}`))):Zo.nil;return u.length&&(r=(0,Zo.or)(r,...u.map((t=>Zo._`${(0,Jo.usePattern)(e,t)}.test(${n})`)))),(0,Zo.not)(r)}(n),(()=>p(n))):p(n)})),e.ok(Zo._`${i} === ${Yo.default.errors}`)}};Ko.default=Xo;var er={};Object.defineProperty(er,"__esModule",{value:!0});const tr=Be(),nr=he(),or=A,rr=Ko,ir={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:o,data:r,it:i}=e;"all"===i.opts.removeAdditional&&void 0===o.additionalProperties&&rr.default.code(new tr.KeywordCxt(i,rr.default,"additionalProperties"));const a=(0,nr.allSchemaProperties)(n);for(const e of a)i.definedProperties.add(e);i.opts.unevaluated&&a.length&&!0!==i.props&&(i.props=or.mergeEvaluated.props(t,(0,or.toHash)(a),i.props));const s=a.filter((e=>!(0,or.alwaysValidSchema)(i,n[e])));if(0===s.length)return;const l=t.name("valid");for(const n of s)c(n)?u(n):(t.if((0,nr.propertyInData)(t,r,n,i.opts.ownProperties)),u(n),i.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(l);function c(e){return i.opts.useDefaults&&!i.compositeRule&&void 0!==n[e].default}function u(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};er.default=ir;var ar={};Object.defineProperty(ar,"__esModule",{value:!0});const sr=he(),lr=$,cr=A,ur=A,dr={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:o,parentSchema:r,it:i}=e,{opts:a}=i,s=(0,sr.allSchemaProperties)(n),l=s.filter((e=>(0,cr.alwaysValidSchema)(i,n[e])));if(0===s.length||l.length===s.length&&(!i.opts.unevaluated||!0===i.props))return;const c=a.strictSchema&&!a.allowMatchingProperties&&r.properties,u=t.name("valid");!0===i.props||i.props instanceof lr.Name||(i.props=(0,ur.evaluatedPropsToName)(t,i.props));const{props:d}=i;function p(e){for(const t in c)new RegExp(e).test(t)&&(0,cr.checkStrictMode)(i,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function f(n){t.forIn("key",o,(o=>{t.if(lr._`${(0,sr.usePattern)(e,n)}.test(${o})`,(()=>{const r=l.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:ur.Type.Str},u),i.opts.unevaluated&&!0!==d?t.assign(lr._`${d}[${o}]`,!0):r||i.allErrors||t.if((0,lr.not)(u),(()=>t.break()))}))}))}!function(){for(const e of s)c&&p(e),i.allErrors?f(e):(t.var(u,!0),f(e),t.if(u))}()}};ar.default=dr;var pr={};Object.defineProperty(pr,"__esModule",{value:!0});const fr=A,hr={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:o}=e;if((0,fr.alwaysValidSchema)(o,n))return void e.fail();const r=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),e.failResult(r,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};pr.default=hr;var mr={};Object.defineProperty(mr,"__esModule",{value:!0});const vr={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:he().validateUnion,error:{message:"must match a schema in anyOf"}};mr.default=vr;var yr={};Object.defineProperty(yr,"__esModule",{value:!0});const wr=$,gr=A,br={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>wr._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(r.opts.discriminator&&o.discriminator)return;const i=n,a=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block((function(){i.forEach(((n,o)=>{let i;(0,gr.alwaysValidSchema)(r,n)?t.var(l,!0):i=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},l),o>0&&t.if(wr._`${l} && ${a}`).assign(a,!1).assign(s,wr._`[${s}, ${o}]`).else(),t.if(l,(()=>{t.assign(a,!0),t.assign(s,o),i&&e.mergeEvaluated(i,wr.Name)}))}))})),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}};yr.default=br;var kr={};Object.defineProperty(kr,"__esModule",{value:!0});const $r=A,jr={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const r=t.name("valid");n.forEach(((t,n)=>{if((0,$r.alwaysValidSchema)(o,t))return;const i=e.subschema({keyword:"allOf",schemaProp:n},r);e.ok(r),e.mergeEvaluated(i)}))}};kr.default=jr;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});const Ar=$,Pr=A,zr={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>Ar.str`must match "${e.ifClause}" schema`,params:({params:e})=>Ar._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,Pr.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const r=Er(o,"then"),i=Er(o,"else");if(!r&&!i)return;const a=t.let("valid",!0),s=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(t)}(),e.reset(),r&&i){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(s,l("then",n),l("else",n))}else r?t.if(s,l("then")):t.if((0,Ar.not)(s),l("else"));function l(n,o){return()=>{const r=e.subschema({keyword:n},s);t.assign(a,s),e.mergeValidEvaluated(r,a),o?t.assign(o,Ar._`${n}`):e.setParams({ifClause:n})}}e.pass(a,(()=>e.error(!0)))}};function Er(e,t){const n=e.schema[t];return void 0!==n&&!(0,Pr.alwaysValidSchema)(e,n)}Tr.default=zr;var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0});const _r=A,Sr={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,_r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};Cr.default=Sr,Object.defineProperty(wo,"__esModule",{value:!0});const Or=go,xr=To,Ir=Ao,Rr=xo,Nr=Mo,Dr=Lo,Br=Wo,Mr=Ko,Fr=er,qr=ar,Ur=pr,Lr=mr,Wr=yr,Vr=kr,Gr=Tr,Hr=Cr;wo.default=function(e=!1){const t=[Ur.default,Lr.default,Wr.default,Vr.default,Gr.default,Hr.default,Br.default,Mr.default,Dr.default,Fr.default,qr.default];return e?t.push(xr.default,Rr.default):t.push(Or.default,Ir.default),t.push(Nr.default),t};var Kr={},Jr={};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.dynamicAnchor=void 0;const Zr=$,Yr=U(),Qr=Ve,Xr=Kt,ei={keyword:"$dynamicAnchor",schemaType:"string",code:e=>ti(e,e.schema)};function ti(e,t){const{gen:n,it:o}=e;o.schemaEnv.root.dynamicAnchors[t]=!0;const r=Zr._`${Yr.default.dynamicAnchors}${(0,Zr.getProperty)(t)}`,i="#"===o.errSchemaPath?o.validateName:function(e){const{schemaEnv:t,schema:n,self:o}=e.it,{root:r,baseId:i,localRefs:a,meta:s}=t.root,{schemaId:l}=o.opts,c=new Qr.SchemaEnv({schema:n,schemaId:l,root:r,baseId:i,localRefs:a,meta:s});return Qr.compileSchema.call(o,c),(0,Xr.getValidate)(e,c)}(e);n.if(Zr._`!${r}`,(()=>n.assign(r,i)))}Jr.dynamicAnchor=ti,Jr.default=ei;var ni={};Object.defineProperty(ni,"__esModule",{value:!0}),ni.dynamicRef=void 0;const oi=$,ri=U(),ii=Kt,ai={keyword:"$dynamicRef",schemaType:"string",code:e=>si(e,e.schema)};function si(e,t){const{gen:n,keyword:o,it:r}=e;if("#"!==t[0])throw new Error(`"${o}" only supports hash fragment reference`);const i=t.slice(1);if(r.allErrors)a();else{const t=n.let("valid",!1);a(t),e.ok(t)}function a(e){if(r.schemaEnv.root.dynamicAnchors[i]){const t=n.let("_v",oi._`${ri.default.dynamicAnchors}${(0,oi.getProperty)(i)}`);n.if(t,s(t,e),s(r.validateName,e))}else s(r.validateName,e)()}function s(t,o){return o?()=>n.block((()=>{(0,ii.callRef)(e,t),n.let(o,!0)})):()=>(0,ii.callRef)(e,t)}}ni.dynamicRef=si,ni.default=ai;var li={};Object.defineProperty(li,"__esModule",{value:!0});const ci=Jr,ui=A,di={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,ci.dynamicAnchor)(e,""):(0,ui.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};li.default=di;var pi={};Object.defineProperty(pi,"__esModule",{value:!0});const fi=ni,hi={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,fi.dynamicRef)(e,e.schema)};pi.default=hi,Object.defineProperty(Kr,"__esModule",{value:!0});const mi=ni,vi=li,yi=pi,wi=[Jr.default,mi.default,vi.default,yi.default];Kr.default=wi;var gi={},bi={};Object.defineProperty(bi,"__esModule",{value:!0});const ki=Lo,$i={keyword:"dependentRequired",type:"object",schemaType:"object",error:ki.error,code:e=>(0,ki.validatePropertyDeps)(e)};bi.default=$i;var ji={};Object.defineProperty(ji,"__esModule",{value:!0});const Ti=Lo,Ai={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,Ti.validateSchemaDeps)(e)};ji.default=Ai;var Pi={};Object.defineProperty(Pi,"__esModule",{value:!0});const zi=A,Ei={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:n}){void 0===t.contains&&(0,zi.checkStrictMode)(n,`"${e}" without "contains" is ignored`)}};Pi.default=Ei,Object.defineProperty(gi,"__esModule",{value:!0});const Ci=ji,_i=Pi,Si=[bi.default,Ci.default,_i.default];gi.default=Si;var Oi={},xi={};Object.defineProperty(xi,"__esModule",{value:!0});const Ii=$,Ri=A,Ni=U(),Di={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:e})=>Ii._`{unevaluatedProperty: ${e.unevaluatedProperty}}`},code(e){const{gen:t,schema:n,data:o,errsCount:r,it:i}=e;if(!r)throw new Error("ajv implementation error");const{allErrors:a,props:s}=i;function l(o){if(!1===n)return e.setParams({unevaluatedProperty:o}),e.error(),void(a||t.break());if(!(0,Ri.alwaysValidSchema)(i,n)){const n=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:o,dataPropType:Ri.Type.Str},n),a||t.if((0,Ii.not)(n),(()=>t.break()))}}s instanceof Ii.Name?t.if(Ii._`${s} !== true`,(()=>t.forIn("key",o,(e=>t.if(function(e,t){return Ii._`!${e} || !${e}[${t}]`}(s,e),(()=>l(e))))))):!0!==s&&t.forIn("key",o,(e=>void 0===s?l(e):t.if(function(e,t){const n=[];for(const o in e)!0===e[o]&&n.push(Ii._`${t} !== ${o}`);return(0,Ii.and)(...n)}(s,e),(()=>l(e))))),i.props=!0,e.ok(Ii._`${r} === ${Ni.default.errors}`)}};xi.default=Di;var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0});const Mi=$,Fi=A,qi={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:e}})=>Mi.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Mi._`{limit: ${e}}`},code(e){const{gen:t,schema:n,data:o,it:r}=e,i=r.items||0;if(!0===i)return;const a=t.const("len",Mi._`${o}.length`);if(!1===n)e.setParams({len:i}),e.fail(Mi._`${a} > ${i}`);else if("object"==typeof n&&!(0,Fi.alwaysValidSchema)(r,n)){const n=t.var("valid",Mi._`${a} <= ${i}`);t.if((0,Mi.not)(n),(()=>function(n,o){t.forRange("i",o,a,(o=>{e.subschema({keyword:"unevaluatedItems",dataProp:o,dataPropType:Fi.Type.Num},n),r.allErrors||t.if((0,Mi.not)(n),(()=>t.break()))}))}(n,i))),e.ok(n)}r.items=!0}};Bi.default=qi,Object.defineProperty(Oi,"__esModule",{value:!0});const Ui=Bi,Li=[xi.default,Ui.default];Oi.default=Li;var Wi={},Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});const Gi=$,Hi={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>Gi.str`must match format "${e}"`,params:({schemaCode:e})=>Gi._`{format: ${e}}`},code(e,t){const{gen:n,data:o,$data:r,schema:i,schemaCode:a,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:d}=s;l.validateFormats&&(r?function(){const r=n.scopeValue("formats",{ref:d.formats,code:l.code.formats}),i=n.const("fDef",Gi._`${r}[${a}]`),s=n.let("fType"),c=n.let("format");n.if(Gi._`typeof ${i} == "object" && !(${i} instanceof RegExp)`,(()=>n.assign(s,Gi._`${i}.type || "string"`).assign(c,Gi._`${i}.validate`)),(()=>n.assign(s,Gi._`"string"`).assign(c,i))),e.fail$data((0,Gi.or)(!1===l.strictSchema?Gi.nil:Gi._`${a} && !${c}`,function(){const e=u.$async?Gi._`(${i}.async ? await ${c}(${o}) : ${c}(${o}))`:Gi._`${c}(${o})`,n=Gi._`(typeof ${c} == "function" ? ${e} : ${c}.test(${o}))`;return Gi._`${c} && ${c} !== true && ${s} === ${t} && !${n}`}()))}():function(){const r=d.formats[i];if(!r)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${i}" ignored in schema at path "${c}"`}}();if(!0===r)return;const[a,s,p]=function(e){const t=e instanceof RegExp?(0,Gi.regexpCode)(e):l.code.formats?Gi._`${l.code.formats}${(0,Gi.getProperty)(i)}`:void 0,o=n.scopeValue("formats",{key:i,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,Gi._`${o}.validate`];return["string",e,o]}(r);a===t&&e.pass(function(){if("object"==typeof r&&!(r instanceof RegExp)&&r.async){if(!u.$async)throw new Error("async format in sync schema");return Gi._`await ${p}(${o})`}return"function"==typeof s?Gi._`${p}(${o})`:Gi._`${p}.test(${o})`}())}())}};Vi.default=Hi,Object.defineProperty(Wi,"__esModule",{value:!0});const Ki=[Vi.default];Wi.default=Ki;var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.contentVocabulary=Ji.metadataVocabulary=void 0,Ji.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Ji.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(Wt,"__esModule",{value:!0});const Zi=Vt,Yi=sn,Qi=wo,Xi=gi,ea=Oi,ta=Wi,na=Ji,oa=[Kr.default,Zi.default,Yi.default,(0,Qi.default)(!0),ta.default,na.metadataVocabulary,na.contentVocabulary,Xi.default,ea.default];Wt.default=oa;var ra,ia={},aa={};Object.defineProperty(aa,"__esModule",{value:!0}),aa.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(ra||(aa.DiscrError=ra={})),Object.defineProperty(ia,"__esModule",{value:!0});const sa=$,la=aa,ca=Ve,ua=We(),da=A,pa={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===la.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>sa._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:o,parentSchema:r,it:i}=e,{oneOf:a}=r;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=o.propertyName;if("string"!=typeof s)throw new Error("discriminator: requires propertyName");if(o.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",sa._`${n}${(0,sa.getProperty)(s)}`);function u(n){const o=t.name("valid"),r=e.subschema({keyword:"oneOf",schemaProp:n},o);return e.mergeEvaluated(r,sa.Name),o}t.if(sa._`typeof ${c} == "string"`,(()=>function(){const n=function(){var e;const t={},n=l(r);let o=!0;for(let t=0;t<a.length;t++){let r=a[t];if((null==r?void 0:r.$ref)&&!(0,da.schemaHasRulesButRef)(r,i.self.RULES)){const e=r.$ref;if(r=ca.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,e),r instanceof ca.SchemaEnv&&(r=r.schema),void 0===r)throw new ua.default(i.opts.uriResolver,i.baseId,e)}const u=null===(e=null==r?void 0:r.properties)||void 0===e?void 0:e[s];if("object"!=typeof u)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);o=o&&(n||l(r)),c(u,t)}if(!o)throw new Error(`discriminator: "${s}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(s)}function c(e,t){if(e.const)u(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`);for(const n of e.enum)u(n,t)}}function u(e,n){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${s}" values must be unique strings`);t[e]=n}}();t.if(!1);for(const e in n)t.elseIf(sa._`${c} === ${e}`),t.assign(l,u(n[e]));t.else(),e.error(!1,{discrError:la.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:la.DiscrError.Tag,tag:c,tagName:s}))),e.ok(l)}};ia.default=pa;var fa={},ha={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}},ma={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}},va={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}},ya={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}},wa={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}},ga={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}},ba={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}},ka={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}};Object.defineProperty(fa,"__esModule",{value:!0});const $a=ha,ja=ma,Ta=va,Aa=ya,Pa=wa,za=ga,Ea=ba,Ca=ka,_a=["/properties"];fa.default=function(e){return[$a,ja,Ta,Aa,Pa,t(this,za),Ea,t(this,Ca)].forEach((e=>this.addMetaSchema(e,void 0,!1))),this;function t(t,n){return e?t.$dataMetaSchema(n,_a):n}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv2020=void 0;const n=w,o=Wt,r=ia,i=fa,a="https://json-schema.org/draft/2020-12/schema";class s extends n.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),o.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:e,meta:t}=this.opts;t&&(i.default.call(this,e),this.refs["http://json-schema.org/schema"]=a)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv2020=s,e.exports=t=s,e.exports.Ajv2020=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var l=Be();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var c=$;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var u=qe();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return u.default}});var d=We();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return d.default}})}(y,y.exports);var Sa=v(y.exports),Oa={exports:{}},xa={};!function(e){function t(e,t){return{validate:e,compare:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0,e.fullFormats={date:t(r,i),time:t(s(!0),l),"date-time":t(d(!0),p),"iso-time":t(s(),c),"iso-date-time":t(d(),f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return h.test(e)&&m.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(b.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return v.lastIndex=0,v.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=w&&e>=y}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:g},double:{type:"number",validate:g},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function r(e){const t=n.exec(e);if(!t)return!1;const r=+t[1],i=+t[2],a=+t[3];return i>=1&&i<=12&&a>=1&&a<=(2===i&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:o[i])}function i(e,t){if(e&&t)return e>t?1:e<t?-1:0}const a=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function s(e){return function(t){const n=a.exec(t);if(!n)return!1;const o=+n[1],r=+n[2],i=+n[3],s=n[4],l="-"===n[5]?-1:1,c=+(n[6]||0),u=+(n[7]||0);if(c>23||u>59||e&&!s)return!1;if(o<=23&&r<=59&&i<60)return!0;const d=r-u*l,p=o-c*l-(d<0?1:0);return(23===p||-1===p)&&(59===d||-1===d)&&i<61}}function l(e,t){if(!e||!t)return;const n=new Date("2020-01-01T"+e).valueOf(),o=new Date("2020-01-01T"+t).valueOf();return n&&o?n-o:void 0}function c(e,t){if(!e||!t)return;const n=a.exec(e),o=a.exec(t);return n&&o?(e=n[1]+n[2]+n[3])>(t=o[1]+o[2]+o[3])?1:e<t?-1:0:void 0}const u=/t|\s/i;function d(e){const t=s(e);return function(e){const n=e.split(u);return 2===n.length&&r(n[0])&&t(n[1])}}function p(e,t){if(!e||!t)return;const n=new Date(e).valueOf(),o=new Date(t).valueOf();return n&&o?n-o:void 0}function f(e,t){if(!e||!t)return;const[n,o]=e.split(u),[r,a]=t.split(u),s=i(n,r);return void 0!==s?s||l(o,a):void 0}const h=/\/|:/,m=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;const y=-(2**31),w=2**31-1;function g(){return!0}const b=/[^\\]\\Z/}(xa);var Ia={},Ra={exports:{}},Na={};Object.defineProperty(Na,"__esModule",{value:!0});const Da=sn,Ba=wo,Ma=Wi,Fa=Ji,qa=[Vt.default,Da.default,(0,Ba.default)(),Ma.default,Fa.metadataVocabulary,Fa.contentVocabulary];Na.default=qa;var Ua={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=w,o=Na,r=ia,i=Ua,a=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends n.default{_addVocabularies(){super._addVocabularies(),o.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(i,a):i;this.addMetaSchema(e,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Be();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=$;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=qe();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var p=We();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})}(Ra,Ra.exports);var La=Ra.exports;!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=La,n=$,o=n.operators,r={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},i={message:({keyword:e,schemaCode:t})=>n.str`should be ${r[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${r[e].okStr}, limit: ${t}}`};e.formatLimitDefinition={keyword:Object.keys(r),type:"string",schemaType:"string",$data:!0,error:i,code(e){const{gen:o,data:i,schemaCode:a,keyword:s,it:l}=e,{opts:c,self:u}=l;if(!c.validateFormats)return;const d=new t.KeywordCxt(l,u.RULES.all.format.definition,"format");function p(e){return n._`${e}.compare(${i}, ${a}) ${r[s].fail} 0`}d.$data?function(){const t=o.scopeValue("formats",{ref:u.formats,code:c.code.formats}),r=o.const("fmt",n._`${t}[${d.schemaCode}]`);e.fail$data((0,n.or)(n._`typeof ${r} != "object"`,n._`${r} instanceof RegExp`,n._`typeof ${r}.compare != "function"`,p(r)))}():function(){const t=d.schema,r=u.formats[t];if(!r||!0===r)return;if("object"!=typeof r||r instanceof RegExp||"function"!=typeof r.compare)throw new Error(`"${s}": format "${t}" does not define "compare" function`);const i=o.scopeValue("formats",{key:t,ref:r,code:c.code.formats?n._`${c.code.formats}${(0,n.getProperty)(t)}`:void 0});e.fail$data(p(i))}()},dependencies:["format"]};e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)}(Ia),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=xa,o=Ia,r=$,i=new r.Name("fullFormats"),a=new r.Name("fastFormats"),s=(e,t={keywords:!0})=>{if(Array.isArray(t))return l(e,t,n.fullFormats,i),e;const[r,s]="fast"===t.mode?[n.fastFormats,a]:[n.fullFormats,i];return l(e,t.formats||n.formatNames,r,s),t.keywords&&(0,o.default)(e),e};function l(e,t,n,o){var i,a;null!==(i=(a=e.opts.code).formats)&&void 0!==i||(a.formats=r._`require("ajv-formats/dist/formats").${o}`);for(const o of t)e.addFormat(o,n[o])}s.get=(e,t="full")=>{const o=("fast"===t?n.fastFormats:n.fullFormats)[e];if(!o)throw new Error(`Unknown format "${e}"`);return o},e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s}(Oa,Oa.exports);var Wa=v(Oa.exports),Va=new Sa({schemas:[{$id:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json",$schema:"https://json-schema.org/draft/2020-12/schema",description:"Serverless Workflow DSL - Workflow Schema.",type:"object",required:["document","do"],properties:{document:{type:"object",title:"Document",description:"Documents the workflow.",unevaluatedProperties:!1,properties:{dsl:{type:"string",pattern:"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",title:"WorkflowDSL",description:"The version of the DSL used by the workflow."},namespace:{type:"string",pattern:"^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",title:"WorkflowNamespace",description:"The workflow's namespace."},name:{type:"string",pattern:"^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",title:"WorkflowName",description:"The workflow's name."},version:{type:"string",pattern:"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",title:"WorkflowVersion",description:"The workflow's semantic version."},title:{type:"string",title:"WorkflowTitle",description:"The workflow's title."},summary:{type:"string",title:"WorkflowSummary",description:"The workflow's Markdown summary."},tags:{type:"object",title:"WorkflowTags",description:"A key/value mapping of the workflow's tags, if any.",additionalProperties:!0},metadata:{type:"object",title:"WorkflowMetadata",description:"Holds additional information about the workflow.",additionalProperties:!0}},required:["dsl","namespace","name","version"]},input:{$ref:"#/$defs/input",title:"Input",description:"Configures the workflow's input."},use:{type:"object",title:"Use",description:"Defines the workflow's reusable components.",unevaluatedProperties:!1,properties:{authentications:{type:"object",title:"UseAuthentications",description:"The workflow's reusable authentication policies.",additionalProperties:{$ref:"#/$defs/authenticationPolicy"}},errors:{type:"object",title:"UseErrors",description:"The workflow's reusable errors.",additionalProperties:{$ref:"#/$defs/error"}},extensions:{type:"array",title:"UseExtensions",description:"The workflow's extensions.",items:{type:"object",title:"ExtensionItem",minProperties:1,maxProperties:1,additionalProperties:{$ref:"#/$defs/extension"}}},functions:{type:"object",title:"UseFunctions",description:"The workflow's reusable functions.",additionalProperties:{$ref:"#/$defs/task"}},retries:{type:"object",title:"UseRetries",description:"The workflow's reusable retry policies.",additionalProperties:{$ref:"#/$defs/retryPolicy"}},secrets:{type:"array",title:"UseSecrets",description:"The workflow's reusable secrets.",items:{type:"string",description:"The workflow's secrets."}},timeouts:{type:"object",title:"UseTimeouts",description:"The workflow's reusable timeouts.",additionalProperties:{$ref:"#/$defs/timeout"}},catalogs:{type:"object",title:"UseCatalogs",description:"The workflow's reusable catalogs.",additionalProperties:{$ref:"#/$defs/catalog"}}}},do:{$ref:"#/$defs/taskList",title:"Do",description:"Defines the task(s) the workflow must perform."},timeout:{oneOf:[{$ref:"#/$defs/timeout",title:"TimeoutDefinition",description:"The workflow's timeout configuration, if any."},{type:"string",title:"TimeoutReference",description:"The name of the workflow's timeout, if any."}]},output:{$ref:"#/$defs/output",title:"Output",description:"Configures the workflow's output."},schedule:{type:"object",title:"Schedule",description:"Schedules the workflow.",unevaluatedProperties:!1,properties:{every:{$ref:"#/$defs/duration",title:"ScheduleEvery",description:"Specifies the duration of the interval at which the workflow should be executed."},cron:{type:"string",title:"ScheduleCron",description:"Specifies the schedule using a cron expression, e.g., '0 0 * * *' for daily at midnight."},after:{$ref:"#/$defs/duration",title:"ScheduleAfter",description:"Specifies a delay duration that the workflow must wait before starting again after it completes."},on:{$ref:"#/$defs/eventConsumptionStrategy",title:"ScheduleOn",description:"Specifies the events that trigger the workflow execution."}}}},$defs:{taskList:{title:"TaskList",description:"List of named tasks to perform.",type:"array",items:{type:"object",title:"TaskItem",minProperties:1,maxProperties:1,additionalProperties:{$ref:"#/$defs/task"}}},taskBase:{type:"object",title:"TaskBase",description:"An object inherited by all tasks.",properties:{if:{type:"string",title:"TaskBaseIf",description:"A runtime expression, if any, used to determine whether or not the task should be run."},input:{$ref:"#/$defs/input",title:"TaskBaseInput",description:"Configure the task's input."},output:{$ref:"#/$defs/output",title:"TaskBaseOutput",description:"Configure the task's output."},export:{$ref:"#/$defs/export",title:"TaskBaseExport",description:"Export task output to context."},timeout:{oneOf:[{$ref:"#/$defs/timeout",title:"TaskTimeoutDefinition",description:"The task's timeout configuration, if any."},{type:"string",title:"TaskTimeoutReference",description:"The name of the task's timeout, if any."}]},then:{$ref:"#/$defs/flowDirective",title:"TaskBaseThen",description:"The flow directive to be performed upon completion of the task."},metadata:{type:"object",title:"TaskMetadata",description:"Holds additional information about the task.",additionalProperties:!0}}},task:{title:"Task",description:"A discrete unit of work that contributes to achieving the overall objectives defined by the workflow.",unevaluatedProperties:!1,oneOf:[{$ref:"#/$defs/callTask"},{$ref:"#/$defs/doTask"},{$ref:"#/$defs/forkTask"},{$ref:"#/$defs/emitTask"},{$ref:"#/$defs/forTask"},{$ref:"#/$defs/listenTask"},{$ref:"#/$defs/raiseTask"},{$ref:"#/$defs/runTask"},{$ref:"#/$defs/setTask"},{$ref:"#/$defs/switchTask"},{$ref:"#/$defs/tryTask"},{$ref:"#/$defs/waitTask"}]},callTask:{title:"CallTask",description:"Defines the call to perform.",oneOf:[{title:"CallAsyncAPI",description:"Defines the AsyncAPI call to perform.",$ref:"#/$defs/taskBase",type:"object",required:["call","with"],unevaluatedProperties:!1,properties:{call:{type:"string",const:"asyncapi"},with:{type:"object",title:"AsyncApiArguments",description:"The Async API call arguments.",properties:{document:{$ref:"#/$defs/externalResource",title:"WithAsyncAPIDocument",description:"The document that defines the AsyncAPI operation to call."},operationRef:{type:"string",title:"WithAsyncAPIOperation",description:"A reference to the AsyncAPI operation to call."},server:{type:"string",title:"WithAsyncAPIServer",description:"A a reference to the server to call the specified AsyncAPI operation on. If not set, default to the first server matching the operation's channel."},message:{type:"string",title:"WithAsyncAPIMessage",description:"The name of the message to use. If not set, defaults to the first message defined by the operation."},binding:{type:"string",title:"WithAsyncAPIBinding",description:"The name of the binding to use. If not set, defaults to the first binding defined by the operation."},payload:{type:"object",title:"WithAsyncAPIPayload",description:"The payload to call the AsyncAPI operation with, if any."},authentication:{$ref:"#/$defs/referenceableAuthenticationPolicy",title:"WithAsyncAPIAuthentication",description:"The authentication policy, if any, to use when calling the AsyncAPI operation."}},required:["document","operationRef"],unevaluatedProperties:!1}}},{title:"CallGRPC",description:"Defines the GRPC call to perform.",$ref:"#/$defs/taskBase",type:"object",unevaluatedProperties:!1,required:["call","with"],properties:{call:{type:"string",const:"grpc"},with:{type:"object",title:"GRPCArguments",description:"The GRPC call arguments.",properties:{proto:{$ref:"#/$defs/externalResource",title:"WithGRPCProto",description:"The proto resource that describes the GRPC service to call."},service:{type:"object",title:"WithGRPCService",unevaluatedProperties:!1,properties:{name:{type:"string",title:"WithGRPCServiceName",description:"The name of the GRPC service to call."},host:{type:"string",title:"WithGRPCServiceHost",description:"The hostname of the GRPC service to call.",pattern:"^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$"},port:{type:"integer",title:"WithGRPCServicePost",description:"The port number of the GRPC service to call.",minimum:0,maximum:65535},authentication:{$ref:"#/$defs/referenceableAuthenticationPolicy",title:"WithGRPCServiceAuthentication",description:"The endpoint's authentication policy, if any."}},required:["name","host"]},method:{type:"string",title:"WithGRPCMethod",description:"The name of the method to call on the defined GRPC service."},arguments:{type:"object",title:"WithGRPCArguments",description:"The arguments, if any, to call the method with.",additionalProperties:!0}},required:["proto","service","method"],unevaluatedProperties:!1}}},{title:"CallHTTP",description:"Defines the HTTP call to perform.",$ref:"#/$defs/taskBase",type:"object",unevaluatedProperties:!1,required:["call","with"],properties:{call:{type:"string",const:"http"},with:{type:"object",title:"HTTPArguments",description:"The HTTP call arguments.",properties:{method:{type:"string",title:"WithHTTPMethod",description:"The HTTP method of the HTTP request to perform."},endpoint:{title:"WithHTTPEndpoint",description:"The HTTP endpoint to send the request to.",$ref:"#/$defs/endpoint"},headers:{type:"object",title:"WithHTTPHeaders",description:"A name/value mapping of the headers, if any, of the HTTP request to perform."},body:{title:"WithHTTPBody",description:"The body, if any, of the HTTP request to perform."},query:{type:"object",title:"WithHTTPQuery",description:"A name/value mapping of the query parameters, if any, of the HTTP request to perform.",additionalProperties:!0},output:{type:"string",title:"WithHTTPOutput",description:"The http call output format. Defaults to 'content'.",enum:["raw","content","response"]}},required:["method","endpoint"],unevaluatedProperties:!1}}},{title:"CallOpenAPI",description:"Defines the OpenAPI call to perform.",$ref:"#/$defs/taskBase",type:"object",unevaluatedProperties:!1,required:["call","with"],properties:{call:{type:"string",const:"openapi"},with:{type:"object",title:"OpenAPIArguments",description:"The OpenAPI call arguments.",properties:{document:{$ref:"#/$defs/externalResource",title:"WithOpenAPIDocument",description:"The document that defines the OpenAPI operation to call."},operationId:{type:"string",title:"WithOpenAPIOperation",description:"The id of the OpenAPI operation to call."},parameters:{type:"object",title:"WithOpenAPIParameters",description:"A name/value mapping of the parameters of the OpenAPI operation to call.",additionalProperties:!0},authentication:{$ref:"#/$defs/referenceableAuthenticationPolicy",title:"WithOpenAPIAuthentication",description:"The authentication policy, if any, to use when calling the OpenAPI operation."},output:{type:"string",enum:["raw","content","response"],title:"WithOpenAPIOutput",description:"The http call output format. Defaults to 'content'."}},required:["document","operationId"],unevaluatedProperties:!1}}},{title:"CallFunction",description:"Defines the function call to perform.",$ref:"#/$defs/taskBase",type:"object",unevaluatedProperties:!1,required:["call"],properties:{call:{type:"string",not:{enum:["asyncapi","grpc","http","openapi"]},description:"The name of the function to call."},with:{type:"object",title:"FunctionArguments",description:"A name/value mapping of the parameters, if any, to call the function with.",additionalProperties:!0}}}]},forkTask:{type:"object",$ref:"#/$defs/taskBase",title:"ForkTask",description:"Allows workflows to execute multiple tasks concurrently and optionally race them against each other, with a single possible winner, which sets the task's output.",unevaluatedProperties:!1,required:["fork"],properties:{fork:{type:"object",title:"ForkTaskConfiguration",description:"The configuration of the branches to perform concurrently.",unevaluatedProperties:!1,required:["branches"],properties:{branches:{$ref:"#/$defs/taskList",title:"ForkBranches"},compete:{type:"boolean",title:"ForkCompete",description:"Indicates whether or not the concurrent tasks are racing against each other, with a single possible winner, which sets the composite task's output.",default:!1}}}}},doTask:{type:"object",$ref:"#/$defs/taskBase",title:"DoTask",description:"Allows to execute a list of tasks in sequence.",unevaluatedProperties:!1,required:["do"],properties:{do:{$ref:"#/$defs/taskList",title:"DoTaskConfiguration",description:"The configuration of the tasks to perform sequentially."}}},emitTask:{type:"object",$ref:"#/$defs/taskBase",title:"EmitTask",description:"Allows workflows to publish events to event brokers or messaging systems, facilitating communication and coordination between different components and services.",required:["emit"],unevaluatedProperties:!1,properties:{emit:{type:"object",title:"EmitTaskConfiguration",description:"The configuration of an event's emission.",unevaluatedProperties:!1,properties:{event:{type:"object",title:"EmitEventDefinition",description:"The definition of the event to emit.",properties:{with:{$ref:"#/$defs/eventProperties",title:"EmitEventWith",description:"Defines the properties of event to emit.",required:["source","type"]}},additionalProperties:!0}},required:["event"]}}},forTask:{type:"object",$ref:"#/$defs/taskBase",title:"ForTask",description:"Allows workflows to iterate over a collection of items, executing a defined set of subtasks for each item in the collection. This task type is instrumental in handling scenarios such as batch processing, data transformation, and repetitive operations across datasets.",required:["for","do"],unevaluatedProperties:!1,properties:{for:{type:"object",title:"ForTaskConfiguration",description:"The definition of the loop that iterates over a range of values.",unevaluatedProperties:!1,properties:{each:{type:"string",title:"ForEach",description:"The name of the variable used to store the current item being enumerated.",default:"item"},in:{type:"string",title:"ForIn",description:"A runtime expression used to get the collection to enumerate."},at:{type:"string",title:"ForAt",description:"The name of the variable used to store the index of the current item being enumerated.",default:"index"}},required:["in"]},while:{type:"string",title:"While",description:"A runtime expression that represents the condition, if any, that must be met for the iteration to continue."},do:{$ref:"#/$defs/taskList",title:"ForTaskDo"}}},listenTask:{type:"object",$ref:"#/$defs/taskBase",title:"ListenTask",description:"Provides a mechanism for workflows to await and react to external events, enabling event-driven behavior within workflow systems.",required:["listen"],unevaluatedProperties:!1,properties:{listen:{type:"object",title:"ListenTaskConfiguration",description:"The configuration of the listener to use.",unevaluatedProperties:!1,properties:{to:{$ref:"#/$defs/eventConsumptionStrategy",title:"ListenTo",description:"Defines the event(s) to listen to."}},required:["to"]}}},raiseTask:{type:"object",$ref:"#/$defs/taskBase",title:"RaiseTask",description:"Intentionally triggers and propagates errors.",required:["raise"],unevaluatedProperties:!1,properties:{raise:{type:"object",title:"RaiseTaskConfiguration",description:"The definition of the error to raise.",unevaluatedProperties:!1,properties:{error:{oneOf:[{$ref:"#/$defs/error",title:"RaiseErrorDefinition",description:"Defines the error to raise."},{type:"string",title:"RaiseErrorReference",description:"The name of the error to raise"}]}},required:["error"]}}},runTask:{type:"object",$ref:"#/$defs/taskBase",title:"RunTask",description:"Provides the capability to execute external containers, shell commands, scripts, or workflows.",required:["run"],unevaluatedProperties:!1,properties:{run:{type:"object",title:"RunTaskConfiguration",description:"The configuration of the process to execute.",unevaluatedProperties:!1,properties:{await:{type:"boolean",default:!0,title:"AwaitProcessCompletion",description:"Whether to await the process completion before continuing."}},oneOf:[{title:"RunContainer",description:"Enables the execution of external processes encapsulated within a containerized environment.",properties:{container:{type:"object",title:"Container",description:"The configuration of the container to run.",unevaluatedProperties:!1,properties:{image:{type:"string",title:"ContainerImage",description:"The name of the container image to run."},command:{type:"string",title:"ContainerCommand",description:"The command, if any, to execute on the container."},ports:{type:"object",title:"ContainerPorts",description:"The container's port mappings, if any."},volumes:{type:"object",title:"ContainerVolumes",description:"The container's volume mappings, if any."},environment:{type:"object",title:"ContainerEnvironment",description:"A key/value mapping of the environment variables, if any, to use when running the configured process."}},required:["image"]}},required:["container"]},{title:"RunScript",description:"Enables the execution of custom scripts or code within a workflow, empowering workflows to perform specialized logic, data processing, or integration tasks by executing user-defined scripts written in various programming languages.",properties:{script:{type:"object",title:"Script",description:"The configuration of the script to run.",unevaluatedProperties:!1,properties:{language:{type:"string",title:"ScriptLanguage",description:"The language of the script to run."},arguments:{type:"object",title:"ScriptArguments",description:"A key/value mapping of the arguments, if any, to use when running the configured script.",additionalProperties:!0},environment:{type:"object",title:"ScriptEnvironment",description:"A key/value mapping of the environment variables, if any, to use when running the configured script process.",additionalProperties:!0}},oneOf:[{title:"InlineScript",type:"object",description:"The script's code.",properties:{code:{type:"string",title:"InlineScriptCode"}},required:["code"]},{title:"ExternalScript",type:"object",description:"The script's resource.",properties:{source:{$ref:"#/$defs/externalResource",title:"ExternalScriptResource"}},required:["source"]}],required:["language"]}},required:["script"]},{title:"RunShell",description:"Enables the execution of shell commands within a workflow, enabling workflows to interact with the underlying operating system and perform system-level operations, such as file manipulation, environment configuration, or system administration tasks.",properties:{shell:{type:"object",title:"Shell",description:"The configuration of the shell command to run.",unevaluatedProperties:!1,properties:{command:{type:"string",title:"ShellCommand",description:"The shell command to run."},arguments:{type:"object",title:"ShellArguments",description:"A list of the arguments of the shell command to run.",additionalProperties:!0},environment:{type:"object",title:"ShellEnvironment",description:"A key/value mapping of the environment variables, if any, to use when running the configured process.",additionalProperties:!0}},required:["command"]}},required:["shell"]},{title:"RunWorkflow",description:"Enables the invocation and execution of nested workflows within a parent workflow, facilitating modularization, reusability, and abstraction of complex logic or business processes by encapsulating them into standalone workflow units.",properties:{workflow:{type:"object",title:"SubflowConfiguration",description:"The configuration of the workflow to run.",unevaluatedProperties:!1,properties:{namespace:{type:"string",title:"SubflowNamespace",description:"The namespace the workflow to run belongs to."},name:{type:"string",title:"SubflowName",description:"The name of the workflow to run."},version:{type:"string",default:"latest",title:"SubflowVersion",description:"The version of the workflow to run. Defaults to latest."},input:{type:"object",title:"SubflowInput",description:"The data, if any, to pass as input to the workflow to execute. The value should be validated against the target workflow's input schema, if specified.",additionalProperties:!0}},required:["namespace","name","version"]}},required:["workflow"]}]}}},setTask:{type:"object",$ref:"#/$defs/taskBase",title:"SetTask",description:"A task used to set data.",required:["set"],unevaluatedProperties:!1,properties:{set:{type:"object",title:"SetTaskConfiguration",description:"The data to set.",minProperties:1,additionalProperties:!0}}},switchTask:{type:"object",$ref:"#/$defs/taskBase",title:"SwitchTask",description:"Enables conditional branching within workflows, allowing them to dynamically select different paths based on specified conditions or criteria.",required:["switch"],unevaluatedProperties:!1,properties:{switch:{type:"array",title:"SwitchTaskConfiguration",description:"The definition of the switch to use.",minItems:1,items:{type:"object",title:"SwitchItem",minProperties:1,maxProperties:1,additionalProperties:{type:"object",title:"SwitchCase",description:"The definition of a case within a switch task, defining a condition and corresponding tasks to execute if the condition is met.",unevaluatedProperties:!1,required:["then"],properties:{when:{type:"string",title:"SwitchCaseCondition",description:"A runtime expression used to determine whether or not the case matches."},then:{$ref:"#/$defs/flowDirective",title:"SwitchCaseOutcome",description:"The flow directive to execute when the case matches."}}}}}}},tryTask:{type:"object",$ref:"#/$defs/taskBase",title:"TryTask",description:"Serves as a mechanism within workflows to handle errors gracefully, potentially retrying failed tasks before proceeding with alternate ones.",required:["try","catch"],unevaluatedProperties:!1,properties:{try:{$ref:"#/$defs/taskList",title:"TryTaskConfiguration",description:"The task(s) to perform."},catch:{type:"object",title:"TryTaskCatch",description:"The object used to define the errors to catch.",unevaluatedProperties:!1,properties:{errors:{type:"object",title:"CatchErrors",description:"The configuration of a concept used to catch errors."},as:{type:"string",title:"CatchAs",description:"The name of the runtime expression variable to save the error as. Defaults to 'error'."},when:{type:"string",title:"CatchWhen",description:"A runtime expression used to determine whether or not to catch the filtered error."},exceptWhen:{type:"string",title:"CatchExceptWhen",description:"A runtime expression used to determine whether or not to catch the filtered error."},retry:{oneOf:[{$ref:"#/$defs/retryPolicy",title:"RetryPolicyDefinition",description:"The retry policy to use, if any, when catching errors."},{type:"string",title:"RetryPolicyReference",description:"The name of the retry policy to use, if any, when catching errors."}]},do:{$ref:"#/$defs/taskList",title:"TryTaskCatchDo",description:"The definition of the task(s) to run when catching an error."}}}}},waitTask:{type:"object",$ref:"#/$defs/taskBase",title:"WaitTask",description:"Allows workflows to pause or delay their execution for a specified period of time.",required:["wait"],unevaluatedProperties:!1,properties:{wait:{$ref:"#/$defs/duration",title:"WaitTaskConfiguration",description:"The amount of time to wait."}}},flowDirective:{title:"FlowDirective",description:"Represents different transition options for a workflow.",anyOf:[{type:"string",enum:["continue","exit","end"],default:"continue"},{type:"string"}]},referenceableAuthenticationPolicy:{type:"object",title:"ReferenceableAuthenticationPolicy",description:"Represents a referenceable authentication policy.",unevaluatedProperties:!1,oneOf:[{title:"AuthenticationPolicyReference",description:"The reference of the authentication policy to use.",properties:{use:{type:"string",minLength:1,title:"ReferenceableAuthenticationPolicyName",description:"The name of the authentication policy to use."}},required:["use"]},{$ref:"#/$defs/authenticationPolicy"}]},secretBasedAuthenticationPolicy:{type:"object",title:"SecretBasedAuthenticationPolicy",description:"Represents an authentication policy based on secrets.",unevaluatedProperties:!1,properties:{use:{type:"string",minLength:1,title:"SecretBasedAuthenticationPolicyName",description:"The name of the authentication policy to use."}},required:["use"]},authenticationPolicy:{type:"object",title:"AuthenticationPolicy",description:"Defines an authentication policy.",oneOf:[{title:"BasicAuthenticationPolicy",description:"Use basic authentication.",properties:{basic:{type:"object",title:"BasicAuthenticationPolicyConfiguration",description:"The configuration of the basic authentication policy.",unevaluatedProperties:!1,oneOf:[{title:"BasicAuthenticationProperties",description:"Inline configuration of the basic authentication policy.",properties:{username:{type:"string",description:"The username to use."},password:{type:"string",description:"The password to use."}},required:["username","password"]},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"BasicAuthenticationPolicySecret",description:"Secret based configuration of the basic authentication policy."}]}},required:["basic"]},{title:"BearerAuthenticationPolicy",description:"Use bearer authentication.",properties:{bearer:{type:"object",title:"BearerAuthenticationPolicyConfiguration",description:"The configuration of the bearer authentication policy.",unevaluatedProperties:!1,oneOf:[{title:"BearerAuthenticationProperties",description:"Inline configuration of the bearer authentication policy.",properties:{token:{type:"string",description:"The bearer token to use."}},required:["token"]},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"BearerAuthenticationPolicySecret",description:"Secret based configuration of the bearer authentication policy."}]}},required:["bearer"]},{title:"DigestAuthenticationPolicy",description:"Use digest authentication.",properties:{digest:{type:"object",title:"DigestAuthenticationPolicyConfiguration",description:"The configuration of the digest authentication policy.",unevaluatedProperties:!1,oneOf:[{title:"DigestAuthenticationProperties",description:"Inline configuration of the digest authentication policy.",properties:{username:{type:"string",description:"The username to use."},password:{type:"string",description:"The password to use."}},required:["username","password"]},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"DigestAuthenticationPolicySecret",description:"Secret based configuration of the digest authentication policy."}]}},required:["digest"]},{title:"OAuth2AuthenticationPolicy",description:"Use OAuth2 authentication.",properties:{oauth2:{type:"object",title:"OAuth2AuthenticationPolicyConfiguration",description:"The configuration of the OAuth2 authentication policy.",unevaluatedProperties:!1,oneOf:[{type:"object",title:"OAuth2ConnectAuthenticationProperties",description:"The inline configuration of the OAuth2 authentication policy.",unevaluatedProperties:!1,allOf:[{$ref:"#/$defs/oauth2AuthenticationProperties"},{type:"object",properties:{endpoints:{type:"object",title:"OAuth2AuthenticationPropertiesEndpoints",description:"The endpoint configurations for OAuth2.",properties:{token:{type:"string",format:"uri-template",default:"/oauth2/token",title:"OAuth2TokenEndpoint",description:"The relative path to the token endpoint. Defaults to `/oauth2/token`."},revocation:{type:"string",format:"uri-template",default:"/oauth2/revoke",title:"OAuth2RevocationEndpoint",description:"The relative path to the revocation endpoint. Defaults to `/oauth2/revoke`."},introspection:{type:"string",format:"uri-template",default:"/oauth2/introspect",title:"OAuth2IntrospectionEndpoint",description:"The relative path to the introspection endpoint. Defaults to `/oauth2/introspect`."}}}}}]},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"OAuth2AuthenticationPolicySecret",description:"Secret based configuration of the OAuth2 authentication policy."}]}},required:["oauth2"]},{title:"OpenIdConnectAuthenticationPolicy",description:"Use OpenIdConnect authentication.",properties:{oidc:{type:"object",title:"OpenIdConnectAuthenticationPolicyConfiguration",description:"The configuration of the OpenIdConnect authentication policy.",unevaluatedProperties:!1,oneOf:[{$ref:"#/$defs/oauth2AuthenticationProperties",title:"OpenIdConnectAuthenticationProperties",description:"The inline configuration of the OpenIdConnect authentication policy.",unevaluatedProperties:!1},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"OpenIdConnectAuthenticationPolicySecret",description:"Secret based configuration of the OpenIdConnect authentication policy."}]}},required:["oidc"]}]},oauth2AuthenticationProperties:{type:"object",title:"OAuth2AutenthicationData",description:"Inline configuration of the OAuth2 authentication policy.",properties:{authority:{$ref:"#/$defs/uriTemplate",title:"OAuth2AutenthicationDataAuthority",description:"The URI that references the OAuth2 authority to use."},grant:{type:"string",enum:["authorization_code","client_credentials","password","refresh_token","urn:ietf:params:oauth:grant-type:token-exchange"],title:"OAuth2AutenthicationDataGrant",description:"The grant type to use."},client:{type:"object",title:"OAuth2AutenthicationDataClient",description:"The definition of an OAuth2 client.",unevaluatedProperties:!1,properties:{id:{type:"string",title:"ClientId",description:"The client id to use."},secret:{type:"string",title:"ClientSecret",description:"The client secret to use, if any."},assertion:{type:"string",title:"ClientAssertion",description:"A JWT containing a signed assertion with your application credentials."},authentication:{type:"string",enum:["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],default:"client_secret_post",title:"ClientAuthentication",description:"The authentication method to use to authenticate the client."}}},request:{type:"object",title:"OAuth2TokenRequest",description:"The configuration of an OAuth2 token request",properties:{encoding:{type:"string",enum:["application/x-www-form-urlencoded","application/json"],default:"application/x-www-form-urlencoded",title:"Oauth2TokenRequestEncoding"}}},issuers:{type:"array",title:"OAuth2Issuers",description:"A list that contains that contains valid issuers that will be used to check against the issuer of generated tokens.",items:{type:"string"}},scopes:{type:"array",title:"OAuth2AutenthicationDataScopes",description:"The scopes, if any, to request the token for.",items:{type:"string"}},audiences:{type:"array",title:"OAuth2AutenthicationDataAudiences",description:"The audiences, if any, to request the token for.",items:{type:"string"}},username:{type:"string",title:"OAuth2AutenthicationDataUsername",description:"The username to use. Used only if the grant type is Password."},password:{type:"string",title:"OAuth2AutenthicationDataPassword",description:"The password to use. Used only if the grant type is Password."},subject:{$ref:"#/$defs/oauth2Token",title:"OAuth2AutenthicationDataSubject",description:"The security token that represents the identity of the party on behalf of whom the request is being made."},actor:{$ref:"#/$defs/oauth2Token",title:"OAuth2AutenthicationDataActor",description:"The security token that represents the identity of the acting party."}}},oauth2Token:{type:"object",title:"OAuth2TokenDefinition",description:"Represents an OAuth2 token.",unevaluatedProperties:!1,properties:{token:{type:"string",title:"OAuth2Token",description:"The security token to use."},type:{type:"string",title:"OAuth2TokenType",description:"The type of the security token to use."}},required:["token","type"]},duration:{oneOf:[{type:"object",minProperties:1,unevaluatedProperties:!1,properties:{days:{type:"integer",title:"DurationDays",description:"Number of days, if any."},hours:{type:"integer",title:"DurationHours",description:"Number of days, if any."},minutes:{type:"integer",title:"DurationMinutes",description:"Number of minutes, if any."},seconds:{type:"integer",title:"DurationSeconds",description:"Number of seconds, if any."},milliseconds:{type:"integer",title:"DurationMilliseconds",description:"Number of milliseconds, if any."}},title:"DurationInline",description:"The inline definition of a duration."},{type:"string",pattern:"^P(?!$)(\\d+(?:\\.\\d+)?Y)?(\\d+(?:\\.\\d+)?M)?(\\d+(?:\\.\\d+)?W)?(\\d+(?:\\.\\d+)?D)?(T(?=\\d)(\\d+(?:\\.\\d+)?H)?(\\d+(?:\\.\\d+)?M)?(\\d+(?:\\.\\d+)?S)?)?$",title:"DurationExpression",description:"The ISO 8601 expression of a duration."}]},error:{type:"object",title:"Error",description:"Represents an error.",unevaluatedProperties:!1,properties:{type:{title:"ErrorType",description:"A URI reference that identifies the error type.",oneOf:[{title:"LiteralErrorType",$ref:"#/$defs/uriTemplate",description:"The literal error type."},{title:"ExpressionErrorType",$ref:"#/$defs/runtimeExpression",description:"An expression based error type."}]},status:{type:"integer",title:"ErrorStatus",description:"The status code generated by the origin for this occurrence of the error."},instance:{title:"ErrorInstance",description:"A JSON Pointer used to reference the component the error originates from.",oneOf:[{title:"LiteralErrorInstance",description:"The literal error instance.",type:"string",format:"json-pointer"},{$ref:"#/$defs/runtimeExpression",title:"ExpressionErrorInstance",description:"An expression based error instance."}]},title:{type:"string",title:"ErrorTitle",description:"A short, human-readable summary of the error."},detail:{type:"string",title:"ErrorDetails",description:"A human-readable explanation specific to this occurrence of the error."}},required:["type","status"]},uriTemplate:{title:"UriTemplate",anyOf:[{title:"LiteralUriTemplate",type:"string",format:"uri-template",pattern:"^[A-Za-z][A-Za-z0-9+\\-.]*://.*"},{title:"LiteralUri",type:"string",format:"uri",pattern:"^[A-Za-z][A-Za-z0-9+\\-.]*://.*"}]},endpoint:{title:"Endpoint",description:"Represents an endpoint.",oneOf:[{$ref:"#/$defs/runtimeExpression"},{$ref:"#/$defs/uriTemplate"},{title:"EndpointConfiguration",type:"object",unevaluatedProperties:!1,properties:{uri:{title:"EndpointUri",description:"The endpoint's URI.",oneOf:[{title:"LiteralEndpointURI",description:"The literal endpoint's URI.",$ref:"#/$defs/uriTemplate"},{title:"ExpressionEndpointURI",$ref:"#/$defs/runtimeExpression",description:"An expression based endpoint's URI."}]},authentication:{$ref:"#/$defs/referenceableAuthenticationPolicy",title:"EndpointAuthentication",description:"The authentication policy to use."}},required:["uri"]}]},eventProperties:{type:"object",title:"EventProperties",description:"Describes the properties of an event.",properties:{id:{type:"string",title:"EventId",description:"The event's unique identifier."},source:{title:"EventSource",description:"Identifies the context in which an event happened.",oneOf:[{$ref:"#/$defs/uriTemplate"},{$ref:"#/$defs/runtimeExpression"}]},type:{type:"string",title:"EventType",description:"This attribute contains a value describing the type of event related to the originating occurrence."},time:{title:"EventTime",description:"When the event occured.",oneOf:[{title:"LiteralTime",type:"string",format:"date-time"},{$ref:"#/$defs/runtimeExpression"}]},subject:{type:"string",title:"EventSubject",description:"The subject of the event."},datacontenttype:{type:"string",title:"EventDataContentType",description:"Content type of data value. This attribute enables data to carry any type of content, whereby format and encoding might differ from that of the chosen event format."},dataschema:{title:"EventDataschema",description:"The schema describing the event format.",oneOf:[{title:"LiteralDataSchema",$ref:"#/$defs/uriTemplate",description:"The literal event data schema."},{title:"ExpressionDataSchema",$ref:"#/$defs/runtimeExpression",description:"An expression based event data schema."}]}},additionalProperties:!0},eventConsumptionStrategy:{type:"object",title:"EventConsumptionStrategy",description:"Describe the event consumption strategy to adopt.",unevaluatedProperties:!1,oneOf:[{title:"AllEventConsumptionStrategy",properties:{all:{type:"array",title:"AllEventConsumptionStrategyConfiguration",description:"A list containing all the events that must be consumed.",items:{$ref:"#/$defs/eventFilter"}}},required:["all"]},{title:"AnyEventConsumptionStrategy",properties:{any:{type:"array",title:"AnyEventConsumptionStrategyConfiguration",description:"A list containing any of the events to consume.",items:{$ref:"#/$defs/eventFilter"}}},required:["any"]},{title:"OneEventConsumptionStrategy",properties:{one:{$ref:"#/$defs/eventFilter",title:"OneEventConsumptionStrategyConfiguration",description:"The single event to consume."}},required:["one"]}]},eventFilter:{type:"object",title:"EventFilter",description:"An event filter is a mechanism used to selectively process or handle events based on predefined criteria, such as event type, source, or specific attributes.",unevaluatedProperties:!1,properties:{with:{$ref:"#/$defs/eventProperties",minProperties:1,title:"WithEvent",description:"An event filter is a mechanism used to selectively process or handle events based on predefined criteria, such as event type, source, or specific attributes."},correlate:{type:"object",title:"EventFilterCorrelate",description:"A correlation is a link between events and data, established by mapping event attributes to specific data attributes, allowing for coordinated processing or handling based on event characteristics.",additionalProperties:{type:"object",properties:{from:{type:"string",title:"CorrelateFrom",description:"A runtime expression used to extract the correlation value from the filtered event."},expect:{type:"string",title:"CorrelateExpect",description:"A constant or a runtime expression, if any, used to determine whether or not the extracted correlation value matches expectations. If not set, the first extracted value will be used as the correlation's expectation."}},required:["from"]}}},required:["with"]},extension:{type:"object",title:"Extension",description:"The definition of an extension.",unevaluatedProperties:!1,properties:{extend:{type:"string",enum:["call","composite","emit","for","listen","raise","run","set","switch","try","wait","all"],title:"ExtensionTarget",description:"The type of task to extend."},when:{type:"string",title:"ExtensionCondition",description:"A runtime expression, if any, used to determine whether or not the extension should apply in the specified context."},before:{$ref:"#/$defs/taskList",title:"ExtensionDoBefore",description:"The task(s) to execute before the extended task, if any."},after:{$ref:"#/$defs/taskList",title:"ExtensionDoAfter",description:"The task(s) to execute after the extended task, if any."}},required:["extend"]},externalResource:{type:"object",title:"ExternalResource",description:"Represents an external resource.",unevaluatedProperties:!1,properties:{name:{type:"string",title:"ExternalResourceName",description:"The name of the external resource, if any."},endpoint:{$ref:"#/$defs/endpoint",title:"ExternalResourceEndpoint",description:"The endpoint of the external resource."}},required:["endpoint"]},input:{type:"object",title:"Input",description:"Configures the input of a workflow or task.",unevaluatedProperties:!1,properties:{schema:{$ref:"#/$defs/schema",title:"InputSchema",description:"The schema used to describe and validate the input of the workflow or task."},from:{title:"InputFrom",description:"A runtime expression, if any, used to mutate and/or filter the input of the workflow or task.",oneOf:[{type:"string"},{type:"object"}]}}},output:{type:"object",title:"Output",description:"Configures the output of a workflow or task.",unevaluatedProperties:!1,properties:{schema:{$ref:"#/$defs/schema",title:"OutputSchema",description:"The schema used to describe and validate the output of the workflow or task."},as:{title:"OutputAs",description:"A runtime expression, if any, used to mutate and/or filter the output of the workflow or task.",oneOf:[{type:"string"},{type:"object"}]}}},export:{type:"object",title:"Export",description:"Set the content of the context. .",unevaluatedProperties:!1,properties:{schema:{$ref:"#/$defs/schema",title:"ExportSchema",description:"The schema used to describe and validate the workflow context."},as:{title:"ExportAs",description:"A runtime expression, if any, used to export the output data to the context.",oneOf:[{type:"string"},{type:"object"}]}}},retryPolicy:{type:"object",title:"RetryPolicy",description:"Defines a retry policy.",unevaluatedProperties:!1,properties:{when:{type:"string",title:"RetryWhen",description:"A runtime expression, if any, used to determine whether or not to retry running the task, in a given context."},exceptWhen:{type:"string",title:"RetryExcepWhen",description:"A runtime expression used to determine whether or not to retry running the task, in a given context."},delay:{$ref:"#/$defs/duration",title:"RetryDelay",description:"The duration to wait between retry attempts."},backoff:{type:"object",title:"RetryBackoff",description:"The retry duration backoff.",unevaluatedProperties:!1,oneOf:[{title:"ConstantBackoff",properties:{constant:{type:"object",description:"The definition of the constant backoff to use, if any."}},required:["constant"]},{title:"ExponentialBackOff",properties:{exponential:{type:"object",description:"The definition of the exponential backoff to use, if any."}},required:["exponential"]},{title:"LinearBackoff",properties:{linear:{type:"object",description:"The definition of the linear backoff to use, if any."}},required:["linear"]}]},limit:{type:"object",title:"RetryLimit",unevaluatedProperties:!1,properties:{attempt:{type:"object",title:"RetryLimitAttempt",unevaluatedProperties:!1,properties:{count:{type:"integer",title:"RetryLimitAttemptCount",description:"The maximum amount of retry attempts, if any."},duration:{$ref:"#/$defs/duration",title:"RetryLimitAttemptDuration",description:"The maximum duration for each retry attempt."}}},duration:{$ref:"#/$defs/duration",title:"RetryLimitDuration",description:"The duration limit, if any, for all retry attempts."}},description:"The retry limit, if any."},jitter:{type:"object",title:"RetryPolicyJitter",description:"The parameters, if any, that control the randomness or variability of the delay between retry attempts.",unevaluatedProperties:!1,properties:{from:{$ref:"#/$defs/duration",title:"RetryPolicyJitterFrom",description:"The minimum duration of the jitter range."},to:{$ref:"#/$defs/duration",title:"RetryPolicyJitterTo",description:"The maximum duration of the jitter range."}},required:["from","to"]}}},schema:{type:"object",title:"Schema",description:"Represents the definition of a schema.",unevaluatedProperties:!1,properties:{format:{type:"string",default:"json",title:"SchemaFormat",description:"The schema's format. Defaults to 'json'. The (optional) version of the format can be set using `{format}:{version}`."}},oneOf:[{title:"SchemaInline",properties:{document:{description:"The schema's inline definition."}},required:["document"]},{title:"SchemaExternal",properties:{resource:{$ref:"#/$defs/externalResource",title:"SchemaExternalResource",description:"The schema's external resource."}},required:["resource"]}]},timeout:{type:"object",title:"Timeout",description:"The definition of a timeout.",unevaluatedProperties:!1,properties:{after:{$ref:"#/$defs/duration",title:"TimeoutAfter",description:"The duration after which to timeout."}},required:["after"]},catalog:{type:"object",title:"Catalog",description:"The definition of a resource catalog",unevaluatedProperties:!1,properties:{endpoint:{$ref:"#/$defs/endpoint",title:"CatalogEndpoint",description:"The root URL where the catalog is hosted"}},required:["endpoint"]},runtimeExpression:{type:"string",title:"RuntimeExpression",description:"A runtime expression.",pattern:"^\\s*\\$\\{.+\\}\\s*$"}}}],strict:!1});Wa(Va);var Ga=new Map(Object.entries({Workflow:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#",AllEventConsumptionStrategy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventConsumptionStrategy/oneOf/0",AllEventConsumptionStrategyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventConsumptionStrategy/oneOf/0/properties/all",AnyEventConsumptionStrategy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventConsumptionStrategy/oneOf/1",AnyEventConsumptionStrategyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventConsumptionStrategy/oneOf/1/properties/any",AsyncApiArguments:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/0/properties/with",AuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy",AuthenticationPolicyReference:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/referenceableAuthenticationPolicy/oneOf/0",BasicAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/0",BasicAuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/0/properties/basic",BasicAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/0/properties/basic/oneOf/0",BearerAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/1",BearerAuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/1/properties/bearer",BearerAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/1/properties/bearer/oneOf/0",CallAsyncAPI:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/0",CallFunction:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/4",CallGRPC:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/1",CallHTTP:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/2",CallOpenAPI:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/3",CallTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask",Catalog:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/catalog",CatchErrors:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/tryTask/properties/catch/properties/errors",ConstantBackoff:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy/properties/backoff/oneOf/0",Container:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/0/properties/container",ContainerEnvironment:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/0/properties/container/properties/environment",ContainerPorts:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/0/properties/container/properties/ports",ContainerVolumes:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/0/properties/container/properties/volumes",DigestAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/2",DigestAuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/2/properties/digest",DigestAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/2/properties/digest/oneOf/0",Document:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/document",DoTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/doTask",Duration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/duration",DurationInline:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/duration/oneOf/0",EmitEventDefinition:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/emitTask/properties/emit/properties/event",EmitEventWith:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/emitTask/properties/emit/properties/event/properties/with",EmitTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/emitTask",EmitTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/emitTask/properties/emit",Endpoint:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/endpoint",EndpointConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/endpoint/oneOf/2",EndpointUri:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/endpoint/oneOf/2/properties/uri",Error:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/error",ErrorInstance:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/error/properties/instance",ErrorType:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/error/properties/type",EventConsumptionStrategy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventConsumptionStrategy",EventDataschema:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventProperties/properties/dataschema",EventFilter:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventFilter",EventFilterCorrelate:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventFilter/properties/correlate",EventSource:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventProperties/properties/source",EventTime:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventProperties/properties/time",ExponentialBackOff:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy/properties/backoff/oneOf/1",Export:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/export",ExportAs:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/export/properties/as",Extension:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/extension",ExtensionItem:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/extensions/items",ExternalResource:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/externalResource",ExternalScript:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/1/properties/script/oneOf/1",FlowDirective:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/flowDirective",ForkTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/forkTask",ForkTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/forkTask/properties/fork",ForTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/forTask",ForTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/forTask/properties/for",FunctionArguments:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/4/properties/with",GRPCArguments:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/1/properties/with",HTTPArguments:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/2/properties/with",InlineScript:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/1/properties/script/oneOf/0",Input:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/input",InputFrom:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/input/properties/from",LinearBackoff:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy/properties/backoff/oneOf/2",ListenTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/listenTask",ListenTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/listenTask/properties/listen",OAuth2AutenthicationData:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/oauth2AuthenticationProperties",OAuth2AutenthicationDataAudiences:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/oauth2AuthenticationProperties/properties/audiences",OAuth2AutenthicationDataClient:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/oauth2AuthenticationProperties/properties/client",OAuth2AutenthicationDataScopes:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/oauth2AuthenticationProperties/properties/scopes",OAuth2AuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/3",OAuth2AuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/3/properties/oauth2",OAuth2AuthenticationPropertiesEndpoints:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/3/properties/oauth2/oneOf/0/allOf/1/properties/endpoints",OAuth2ConnectAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/3/properties/oauth2/oneOf/0",OAuth2Issuers:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/oauth2AuthenticationProperties/properties/issuers",OAuth2TokenDefinition:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/oauth2Token",OAuth2TokenRequest:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/oauth2AuthenticationProperties/properties/request",OneEventConsumptionStrategy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventConsumptionStrategy/oneOf/2",OpenAPIArguments:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/3/properties/with",OpenIdConnectAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/4",OpenIdConnectAuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/4/properties/oidc",OpenIdConnectAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/4/properties/oidc/oneOf/0",Output:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/output",OutputAs:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/output/properties/as",RaiseTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/raiseTask",RaiseTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/raiseTask/properties/raise",RaiseTaskRaiseError:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/raiseTask/properties/raise/properties/error",ReferenceableAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/referenceableAuthenticationPolicy",RetryBackoff:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy/properties/backoff",RetryLimit:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy/properties/limit",RetryLimitAttempt:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy/properties/limit/properties/attempt",RetryPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy",RetryPolicyJitter:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy/properties/jitter",RunContainer:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/0",RunScript:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/1",RunShell:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/2",RunTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask",RunTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run",RuntimeExpression:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runtimeExpression",RunWorkflow:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/3",Schedule:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/schedule",Schema:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/schema",SchemaExternal:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/schema/oneOf/1",SchemaInline:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/schema/oneOf/0",Script:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/1/properties/script",SecretBasedAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/secretBasedAuthenticationPolicy",SetTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/setTask",SetTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/setTask/properties/set",Shell:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/2/properties/shell",ShellArguments:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/2/properties/shell/properties/arguments",ShellEnvironment:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/2/properties/shell/properties/environment",SubflowConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/3/properties/workflow",SubflowInput:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/3/properties/workflow/properties/input",SwitchCase:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/switchTask/properties/switch/items/additionalProperties",SwitchItem:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/switchTask/properties/switch/items",SwitchTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/switchTask",SwitchTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/switchTask/properties/switch",Task:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/task",TaskBase:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/taskBase",TaskBaseIf:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/taskBase/properties/if",TaskBaseTimeout:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/taskBase/properties/timeout",TaskItem:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/taskList/items",TaskList:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/taskList",TaskMetadata:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/taskBase/properties/metadata",Timeout:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/timeout",TryTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/tryTask",TryTaskCatch:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/tryTask/properties/catch",TryTaskCatchRetry:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/tryTask/properties/catch/properties/retry",UriTemplate:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/uriTemplate",Use:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use",UseAuthentications:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/authentications",UseCatalogs:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/catalogs",UseErrors:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/errors",UseExtensions:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/extensions",UseFunctions:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/functions",UseRetries:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/retries",UseSecrets:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/secrets",UseTimeouts:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/timeouts",WaitTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/waitTask",WithAsyncAPIPayload:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/0/properties/with/properties/payload",WithEvent:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventFilter/properties/with",WithGRPCArguments:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/1/properties/with/properties/arguments",WithGRPCService:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/1/properties/with/properties/service",WithHTTPBody:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/2/properties/with/properties/body",WithHTTPHeaders:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/2/properties/with/properties/headers",WithHTTPQuery:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/2/properties/with/properties/query",WithOpenAPIParameters:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/3/properties/with/properties/parameters",WorkflowMetadata:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/document/properties/metadata",WorkflowTags:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/document/properties/tags",WorkflowTimeout:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/timeout"}).map((function(e){var t=e[0],n=e[1];if(!n)throw"No JSON pointer provided for type '".concat(t,"'");var o=Va.getSchema(n);if(!o)throw"Unable to find schema '".concat(n,"' for type '").concat(t,"'");return[t,o]}))),Ha=e("validate",(function(e,t,n){var o,r,i,a,s,l;null===(r=null===(o=m(e))||void 0===o?void 0:o.preValidation)||void 0===r||r.call(o,t,n);var u=Ga.get(e);if(!u)throw Error("Unable to find a validation function for '".concat(e,"'"));if(!u(c(t)))throw new Error("'".concat(e,"' is invalid:\n").concat(null!==(a=null===(i=u.errors)||void 0===i?void 0:i.reduce((function(e,t){return e+"- ".concat(t.instancePath," | ").concat(t.schemaPath," | ").concat(t.message," | ").concat(JSON.stringify(t.params),"\n")}),""))&&void 0!==a?a:"","\n\ndata: ").concat(JSON.stringify(t,null,4)));null===(l=null===(s=m(e))||void 0===s?void 0:s.postValidation)||void 0===l||l.call(s,t,n)})),Ka=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("WithEvent"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithEvent",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WithEvent"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ja=Ka,Za=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("EventFilterCorrelate"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventFilterCorrelate",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EventFilterCorrelate"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ya=Za,Qa=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.with&&(i.with=new Ja(t.with)),"object"==typeof t.correlate&&(i.correlate=new Ya(t.correlate))),null===(o=null===(n=m("EventFilter"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventFilter",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EventFilter"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Xa=Qa,es=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(new Xa(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("AllEventConsumptionStrategyConfiguration"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AllEventConsumptionStrategyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AllEventConsumptionStrategyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),ts=es,ns=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.all&&(i.all=new ts(t.all)),null===(o=null===(n=m("AllEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AllEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AllEventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),os=ns,rs=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(new Xa(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("AnyEventConsumptionStrategyConfiguration"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AnyEventConsumptionStrategyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AnyEventConsumptionStrategyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),is=rs,as=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.any&&(i.any=new is(t.any)),null===(o=null===(n=m("AnyEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AnyEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AnyEventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ss=as,ls=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("BasicAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BasicAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("BasicAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),cs=ls,us=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("BearerAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BearerAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("BearerAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ds=us,ps=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("DigestAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DigestAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("DigestAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),fs=ps,hs=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("OAuth2AutenthicationDataClient"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AutenthicationDataClient",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2AutenthicationDataClient"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ms=hs,vs=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("OAuth2TokenRequest"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2TokenRequest",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2TokenRequest"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ys=vs,ws=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("OAuth2TokenDefinition"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2TokenDefinition",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2TokenDefinition"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),gs=ws,bs=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("OAuth2AuthenticationPropertiesEndpoints"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AuthenticationPropertiesEndpoints",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2AuthenticationPropertiesEndpoints"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ks=bs,$s=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.client&&(i.client=new ms(t.client)),"object"==typeof t.request&&(i.request=new ys(t.request)),"object"==typeof t.subject&&(i.subject=new gs(t.subject)),"object"==typeof t.actor&&(i.actor=new gs(t.actor)),"object"==typeof t.endpoints&&(i.endpoints=new ks(t.endpoints))),null===(o=null===(n=m("OAuth2AuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2AuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),js=$s,Ts=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.client&&(i.client=new ms(t.client)),"object"==typeof t.request&&(i.request=new ys(t.request)),"object"==typeof t.subject&&(i.subject=new gs(t.subject)),"object"==typeof t.actor&&(i.actor=new gs(t.actor))),null===(o=null===(n=m("OpenIdConnectAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OpenIdConnectAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OpenIdConnectAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),As=Ts,Ps=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.basic&&(i.basic=new cs(t.basic)),"object"==typeof t.bearer&&(i.bearer=new ds(t.bearer)),"object"==typeof t.digest&&(i.digest=new fs(t.digest)),"object"==typeof t.oauth2&&(i.oauth2=new js(t.oauth2)),"object"==typeof t.oidc&&(i.oidc=new As(t.oidc))),null===(o=null===(n=m("ReferenceableAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ReferenceableAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ReferenceableAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),zs=Ps,Es=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.authentication&&(i.authentication=new zs(t.authentication)),null===(o=null===(n=m("Endpoint"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Endpoint",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Endpoint"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Cs=Es,_s=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.endpoint&&(i.endpoint=new Cs(t.endpoint)),null===(o=null===(n=m("ExternalResource"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExternalResource",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ExternalResource"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ss=_s,Os=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("WithAsyncAPIPayload"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithAsyncAPIPayload",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WithAsyncAPIPayload"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),xs=Os,Is=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.document&&(i.document=new Ss(t.document)),"object"==typeof t.payload&&(i.payload=new xs(t.payload)),"object"==typeof t.authentication&&(i.authentication=new zs(t.authentication))),null===(o=null===(n=m("AsyncApiArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AsyncApiArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AsyncApiArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Rs=Is,Ns=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.basic&&(i.basic=new cs(t.basic)),"object"==typeof t.bearer&&(i.bearer=new ds(t.bearer)),"object"==typeof t.digest&&(i.digest=new fs(t.digest)),"object"==typeof t.oauth2&&(i.oauth2=new js(t.oauth2)),"object"==typeof t.oidc&&(i.oidc=new As(t.oidc))),null===(o=null===(n=m("AuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ds=Ns,Bs=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("AuthenticationPolicyReference"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AuthenticationPolicyReference",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AuthenticationPolicyReference"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ms=Bs,Fs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.basic&&(i.basic=new cs(t.basic)),null===(o=null===(n=m("BasicAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BasicAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("BasicAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),qs=Fs,Us=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("BasicAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BasicAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("BasicAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ls=Us,Ws=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.bearer&&(i.bearer=new ds(t.bearer)),null===(o=null===(n=m("BearerAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BearerAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("BearerAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Vs=Ws,Gs=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("BearerAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BearerAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("BearerAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Hs=Gs,Ks=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.resource&&(i.resource=new Ss(t.resource)),null===(o=null===(n=m("Schema"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Schema",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Schema"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Js=Ks,Zs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.schema&&(i.schema=new Js(t.schema)),null===(o=null===(n=m("Input"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Input",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Input"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ys=Zs,Qs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.schema&&(i.schema=new Js(t.schema)),null===(o=null===(n=m("Output"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Output",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Output"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Xs=Qs,el=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.schema&&(i.schema=new Js(t.schema)),null===(o=null===(n=m("Export"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Export",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Export"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),tl=el,nl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("Duration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Duration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Duration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ol=nl,rl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.after&&(i.after=new ol(t.after)),null===(o=null===(n=m("TaskBaseTimeout"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskBaseTimeout",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TaskBaseTimeout"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),il=rl,al=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("TaskMetadata"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskMetadata",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TaskMetadata"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),sl=al,ll=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata))),null===(o=null===(n=m("TaskBase"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskBase",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TaskBase"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),cl=ll,ul=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&(i.call="asyncapi","object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.with&&(i.with=new Rs(t.with))),null===(o=null===(n=m("CallAsyncAPI"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallAsyncAPI",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("CallAsyncAPI"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),dl=ul,pl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("FunctionArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("FunctionArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("FunctionArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),fl=pl,hl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.with&&(i.with=new fl(t.with))),null===(o=null===(n=m("CallFunction"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallFunction",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("CallFunction"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),ml=hl,vl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.authentication&&(i.authentication=new zs(t.authentication)),null===(o=null===(n=m("WithGRPCService"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithGRPCService",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WithGRPCService"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),yl=vl,wl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("WithGRPCArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithGRPCArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WithGRPCArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),gl=wl,bl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.proto&&(i.proto=new Ss(t.proto)),"object"==typeof t.service&&(i.service=new yl(t.service)),"object"==typeof t.arguments&&(i.arguments=new gl(t.arguments))),null===(o=null===(n=m("GRPCArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("GRPCArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("GRPCArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),kl=bl,$l=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&(i.call="grpc","object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.with&&(i.with=new kl(t.with))),null===(o=null===(n=m("CallGRPC"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallGRPC",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("CallGRPC"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),jl=$l,Tl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("WithHTTPHeaders"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithHTTPHeaders",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WithHTTPHeaders"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Al=Tl,Pl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("WithHTTPBody"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithHTTPBody",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WithHTTPBody"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),zl=Pl,El=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("WithHTTPQuery"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithHTTPQuery",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WithHTTPQuery"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Cl=El,_l=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.endpoint&&(i.endpoint=new Cs(t.endpoint)),"object"==typeof t.headers&&(i.headers=new Al(t.headers)),"object"==typeof t.body&&(i.body=new zl(t.body)),"object"==typeof t.query&&(i.query=new Cl(t.query))),null===(o=null===(n=m("HTTPArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("HTTPArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("HTTPArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Sl=_l,Ol=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&(i.call="http","object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.with&&(i.with=new Sl(t.with))),null===(o=null===(n=m("CallHTTP"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallHTTP",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("CallHTTP"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),xl=Ol,Il=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("WithOpenAPIParameters"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithOpenAPIParameters",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WithOpenAPIParameters"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Rl=Il,Nl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.document&&(i.document=new Ss(t.document)),"object"==typeof t.parameters&&(i.parameters=new Rl(t.parameters)),"object"==typeof t.authentication&&(i.authentication=new zs(t.authentication))),null===(o=null===(n=m("OpenAPIArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OpenAPIArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OpenAPIArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Dl=Nl,Bl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&(i.call="openapi","object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.with&&(i.with=new Dl(t.with))),null===(o=null===(n=m("CallOpenAPI"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallOpenAPI",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("CallOpenAPI"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),Ml=Bl,Fl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata))),null===(o=null===(n=m("CallTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("CallTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ql=Fl,Ul=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.endpoint&&(i.endpoint=new Cs(t.endpoint)),null===(o=null===(n=m("Catalog"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Catalog",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Catalog"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ll=Ul,Wl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("CatchErrors"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CatchErrors",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("CatchErrors"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Vl=Wl,Gl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ConstantBackoff"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ConstantBackoff",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ConstantBackoff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Hl=Gl,Kl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ContainerPorts"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ContainerPorts",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ContainerPorts"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Jl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ContainerVolumes"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ContainerVolumes",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ContainerVolumes"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Zl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ContainerEnvironment"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ContainerEnvironment",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ContainerEnvironment"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Yl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.ports&&(i.ports=new Kl(t.ports)),"object"==typeof t.volumes&&(i.volumes=new Jl(t.volumes)),"object"==typeof t.environment&&(i.environment=new Zl(t.environment))),null===(o=null===(n=m("Container"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Container",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Container"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ql=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.digest&&(i.digest=new fs(t.digest)),null===(o=null===(n=m("DigestAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DigestAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("DigestAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Xl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("DigestAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DigestAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("DigestAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ec=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("WorkflowTags"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WorkflowTags",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WorkflowTags"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),tc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("WorkflowMetadata"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WorkflowMetadata",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WorkflowMetadata"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),nc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.tags&&(i.tags=new ec(t.tags)),"object"==typeof t.metadata&&(i.metadata=new tc(t.metadata))),null===(o=null===(n=m("Document"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Document",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Document"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),oc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.branches&&(i.branches=new Sc(t.branches)),null===(o=null===(n=m("ForkTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ForkTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ForkTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),rc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("EmitEventWith"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EmitEventWith",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EmitEventWith"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ic=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.with&&(i.with=new rc(t.with)),null===(o=null===(n=m("EmitEventDefinition"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EmitEventDefinition",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EmitEventDefinition"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ac=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.event&&(i.event=new ic(t.event)),null===(o=null===(n=m("EmitTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EmitTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EmitTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),sc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ForTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ForTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ForTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),lc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.all&&(i.all=new ts(t.all)),"object"==typeof t.any&&(i.any=new is(t.any)),"object"==typeof t.one&&(i.one=new Xa(t.one))),null===(o=null===(n=m("EventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),cc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.to&&(i.to=new lc(t.to)),null===(o=null===(n=m("ListenTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ListenTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ListenTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),uc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("RaiseTaskRaiseError"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RaiseTaskRaiseError",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RaiseTaskRaiseError"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),dc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.error&&(i.error=new uc(t.error)),null===(o=null===(n=m("RaiseTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RaiseTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RaiseTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),pc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.source&&(i.source=new Ss(t.source)),null===(o=null===(n=m("Script"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Script",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Script"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),fc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ShellArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ShellArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ShellArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),hc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ShellEnvironment"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ShellEnvironment",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ShellEnvironment"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),mc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.arguments&&(i.arguments=new fc(t.arguments)),"object"==typeof t.environment&&(i.environment=new hc(t.environment))),null===(o=null===(n=m("Shell"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Shell",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Shell"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),vc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("SubflowInput"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SubflowInput",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SubflowInput"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),yc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.input&&(i.input=new vc(t.input)),null===(o=null===(n=m("SubflowConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SubflowConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SubflowConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),wc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.container&&(i.container=new Yl(t.container)),"object"==typeof t.script&&(i.script=new pc(t.script)),"object"==typeof t.shell&&(i.shell=new mc(t.shell)),"object"==typeof t.workflow&&(i.workflow=new yc(t.workflow))),null===(o=null===(n=m("RunTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RunTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),gc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("SetTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SetTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SetTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),bc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("SwitchCase"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SwitchCase",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SwitchCase"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),kc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new bc(n)}))}return null===(o=null===(n=m("SwitchItem"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SwitchItem",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SwitchItem"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),$c=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(new kc(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("SwitchTaskConfiguration"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SwitchTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SwitchTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),jc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("RetryBackoff"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryBackoff",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RetryBackoff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Tc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.duration&&(i.duration=new ol(t.duration)),null===(o=null===(n=m("RetryLimitAttempt"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryLimitAttempt",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RetryLimitAttempt"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ac=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.attempt&&(i.attempt=new Tc(t.attempt)),"object"==typeof t.duration&&(i.duration=new ol(t.duration))),null===(o=null===(n=m("RetryLimit"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryLimit",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RetryLimit"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Pc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.from&&(i.from=new ol(t.from)),"object"==typeof t.to&&(i.to=new ol(t.to))),null===(o=null===(n=m("RetryPolicyJitter"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryPolicyJitter",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RetryPolicyJitter"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),zc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.delay&&(i.delay=new ol(t.delay)),"object"==typeof t.backoff&&(i.backoff=new jc(t.backoff)),"object"==typeof t.limit&&(i.limit=new Ac(t.limit)),"object"==typeof t.jitter&&(i.jitter=new Pc(t.jitter))),null===(o=null===(n=m("TryTaskCatchRetry"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TryTaskCatchRetry",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TryTaskCatchRetry"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ec=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.errors&&(i.errors=new Vl(t.errors)),"object"==typeof t.retry&&(i.retry=new zc(t.retry)),"object"==typeof t.do&&(i.do=new Sc(t.do))),null===(o=null===(n=m("TryTaskCatch"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TryTaskCatch",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TryTaskCatch"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Cc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.fork&&(i.fork=new oc(t.fork)),"object"==typeof t.emit&&(i.emit=new ac(t.emit)),"object"==typeof t.for&&(i.for=new sc(t.for)),"object"==typeof t.listen&&(i.listen=new cc(t.listen)),"object"==typeof t.raise&&(i.raise=new dc(t.raise)),"object"==typeof t.run&&(i.run=new wc(t.run)),"object"==typeof t.set&&(i.set=new gc(t.set)),"object"==typeof t.switch&&(i.switch=new $c(t.switch)),"object"==typeof t.try&&(i.try=new Sc(t.try)),"object"==typeof t.catch&&(i.catch=new Ec(t.catch)),"object"==typeof t.wait&&(i.wait=new ol(t.wait))),null===(o=null===(n=m("Task"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Task",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Task"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),_c=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new Cc(n)}))}return null===(o=null===(n=m("TaskItem"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskItem",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TaskItem"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Sc=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(new _c(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("TaskList"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskList",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TaskList"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),Oc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.do&&(i.do=new Sc(t.do))),null===(o=null===(n=m("DoTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DoTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("DoTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),xc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("DurationInline"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DurationInline",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("DurationInline"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ic=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.emit&&(i.emit=new ac(t.emit))),null===(o=null===(n=m("EmitTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EmitTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EmitTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),Rc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.authentication&&(i.authentication=new zs(t.authentication)),null===(o=null===(n=m("EndpointConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EndpointConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EndpointConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Nc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("EndpointUri"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EndpointUri",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EndpointUri"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Dc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("Error"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Error",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Error"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Bc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ErrorInstance"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ErrorInstance",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ErrorInstance"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Mc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ErrorType"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ErrorType",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ErrorType"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Fc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("EventDataschema"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventDataschema",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EventDataschema"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),qc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("EventSource"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventSource",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EventSource"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Uc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("EventTime"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventTime",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EventTime"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Lc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ExponentialBackOff"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExponentialBackOff",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ExponentialBackOff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Wc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ExportAs"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExportAs",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ExportAs"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Vc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.before&&(i.before=new Sc(t.before)),"object"==typeof t.after&&(i.after=new Sc(t.after))),null===(o=null===(n=m("Extension"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Extension",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Extension"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Gc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new Vc(n)}))}return null===(o=null===(n=m("ExtensionItem"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExtensionItem",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ExtensionItem"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Hc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.source&&(i.source=new Ss(t.source)),null===(o=null===(n=m("ExternalScript"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExternalScript",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ExternalScript"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Kc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("FlowDirective"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("FlowDirective",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("FlowDirective"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Jc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.fork&&(i.fork=new oc(t.fork))),null===(o=null===(n=m("ForkTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ForkTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ForkTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),Zc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.for&&(i.for=new sc(t.for)),"object"==typeof t.do&&(i.do=new Sc(t.do))),null===(o=null===(n=m("ForTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ForTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ForTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),Yc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("InlineScript"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("InlineScript",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("InlineScript"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Qc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("InputFrom"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("InputFrom",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("InputFrom"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Xc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("LinearBackoff"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("LinearBackoff",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("LinearBackoff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),eu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.listen&&(i.listen=new cc(t.listen))),null===(o=null===(n=m("ListenTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ListenTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ListenTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),tu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.client&&(i.client=new ms(t.client)),"object"==typeof t.request&&(i.request=new ys(t.request)),"object"==typeof t.subject&&(i.subject=new gs(t.subject)),"object"==typeof t.actor&&(i.actor=new gs(t.actor))),null===(o=null===(n=m("OAuth2AutenthicationData"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AutenthicationData",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2AutenthicationData"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),nu=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(e)}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("OAuth2AutenthicationDataAudiences"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AutenthicationDataAudiences",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2AutenthicationDataAudiences"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),ou=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(e)}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("OAuth2AutenthicationDataScopes"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AutenthicationDataScopes",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2AutenthicationDataScopes"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),ru=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.oauth2&&(i.oauth2=new js(t.oauth2)),null===(o=null===(n=m("OAuth2AuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2AuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),iu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.client&&(i.client=new ms(t.client)),"object"==typeof t.request&&(i.request=new ys(t.request)),"object"==typeof t.subject&&(i.subject=new gs(t.subject)),"object"==typeof t.actor&&(i.actor=new gs(t.actor)),"object"==typeof t.endpoints&&(i.endpoints=new ks(t.endpoints))),null===(o=null===(n=m("OAuth2ConnectAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2ConnectAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2ConnectAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(tu),au=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(e)}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("OAuth2Issuers"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2Issuers",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2Issuers"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),su=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.one&&(i.one=new Xa(t.one)),null===(o=null===(n=m("OneEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OneEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OneEventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),lu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.oidc&&(i.oidc=new As(t.oidc)),null===(o=null===(n=m("OpenIdConnectAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OpenIdConnectAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OpenIdConnectAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),cu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.client&&(i.client=new ms(t.client)),"object"==typeof t.request&&(i.request=new ys(t.request)),"object"==typeof t.subject&&(i.subject=new gs(t.subject)),"object"==typeof t.actor&&(i.actor=new gs(t.actor))),null===(o=null===(n=m("OpenIdConnectAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OpenIdConnectAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OpenIdConnectAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),uu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("OutputAs"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OutputAs",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OutputAs"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),du=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.raise&&(i.raise=new dc(t.raise))),null===(o=null===(n=m("RaiseTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RaiseTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RaiseTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),pu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.delay&&(i.delay=new ol(t.delay)),"object"==typeof t.backoff&&(i.backoff=new jc(t.backoff)),"object"==typeof t.limit&&(i.limit=new Ac(t.limit)),"object"==typeof t.jitter&&(i.jitter=new Pc(t.jitter))),null===(o=null===(n=m("RetryPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RetryPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),fu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.container&&(i.container=new Yl(t.container)),null===(o=null===(n=m("RunContainer"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunContainer",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RunContainer"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),hu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.script&&(i.script=new pc(t.script)),null===(o=null===(n=m("RunScript"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunScript",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RunScript"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),mu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.shell&&(i.shell=new mc(t.shell)),null===(o=null===(n=m("RunShell"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunShell",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RunShell"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),vu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.run&&(i.run=new wc(t.run))),null===(o=null===(n=m("RunTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RunTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),yu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("RuntimeExpression"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RuntimeExpression",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RuntimeExpression"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),wu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.workflow&&(i.workflow=new yc(t.workflow)),null===(o=null===(n=m("RunWorkflow"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunWorkflow",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RunWorkflow"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),gu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.every&&(i.every=new ol(t.every)),"object"==typeof t.after&&(i.after=new ol(t.after)),"object"==typeof t.on&&(i.on=new lc(t.on))),null===(o=null===(n=m("Schedule"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Schedule",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Schedule"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),bu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.resource&&(i.resource=new Ss(t.resource)),null===(o=null===(n=m("SchemaExternal"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SchemaExternal",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SchemaExternal"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ku=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("SchemaInline"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SchemaInline",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SchemaInline"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),$u=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("SecretBasedAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SecretBasedAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SecretBasedAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ju=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.set&&(i.set=new gc(t.set))),null===(o=null===(n=m("SetTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SetTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SetTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),Tu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.switch&&(i.switch=new $c(t.switch))),null===(o=null===(n=m("SwitchTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SwitchTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SwitchTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),Au=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("TaskBaseIf"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskBaseIf",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TaskBaseIf"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Pu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.after&&(i.after=new ol(t.after)),null===(o=null===(n=m("Timeout"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Timeout",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Timeout"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),zu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.try&&(i.try=new Sc(t.try)),"object"==typeof t.catch&&(i.catch=new Ec(t.catch))),null===(o=null===(n=m("TryTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TryTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TryTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),Eu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("UriTemplate"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UriTemplate",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UriTemplate"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Cu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new Ds(n)}))}return null===(o=null===(n=m("UseAuthentications"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseAuthentications",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseAuthentications"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),_u=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new Dc(n)}))}return null===(o=null===(n=m("UseErrors"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseErrors",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseErrors"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Su=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(new Gc(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("UseExtensions"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseExtensions",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseExtensions"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),Ou=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new Cc(n)}))}return null===(o=null===(n=m("UseFunctions"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseFunctions",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseFunctions"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),xu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new pu(n)}))}return null===(o=null===(n=m("UseRetries"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseRetries",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseRetries"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Iu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new Pu(n)}))}return null===(o=null===(n=m("UseTimeouts"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseTimeouts",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseTimeouts"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ru=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new Ll(n)}))}return null===(o=null===(n=m("UseCatalogs"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseCatalogs",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseCatalogs"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Nu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.authentications&&(i.authentications=new Cu(t.authentications)),"object"==typeof t.errors&&(i.errors=new _u(t.errors)),"object"==typeof t.extensions&&(i.extensions=new Su(t.extensions)),"object"==typeof t.functions&&(i.functions=new Ou(t.functions)),"object"==typeof t.retries&&(i.retries=new xu(t.retries)),"object"==typeof t.timeouts&&(i.timeouts=new Iu(t.timeouts)),"object"==typeof t.catalogs&&(i.catalogs=new Ru(t.catalogs))),null===(o=null===(n=m("Use"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Use",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Use"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Du=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(e)}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("UseSecrets"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseSecrets",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseSecrets"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),Bu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.export&&(i.export=new tl(t.export)),"object"==typeof t.timeout&&(i.timeout=new il(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new sl(t.metadata)),"object"==typeof t.wait&&(i.wait=new ol(t.wait))),null===(o=null===(n=m("WaitTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WaitTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WaitTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(cl),Mu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.after&&(i.after=new ol(t.after)),null===(o=null===(n=m("WorkflowTimeout"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WorkflowTimeout",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WorkflowTimeout"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u);
7
+ deps: ${o}}`};const r={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const o in e){if("__proto__"===o)continue;(Array.isArray(e[o])?t:n)[o]=e[o]}return[t,n]}(e);i(e,t),a(e,n)}};function i(e,n=e.schema){const{gen:r,data:i,it:a}=e;if(0===Object.keys(n).length)return;const s=r.let("missing");for(const l in n){const c=n[l];if(0===c.length)continue;const u=(0,o.propertyInData)(r,i,l,a.opts.ownProperties);e.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),a.allErrors?r.if(u,(()=>{for(const t of c)(0,o.checkReportMissingProp)(e,t)})):(r.if(t._`${u} && (${(0,o.checkMissingProp)(e,c,s)})`),(0,o.reportMissingProp)(e,s),r.else())}}function a(e,t=e.schema){const{gen:r,data:i,keyword:a,it:s}=e,l=r.name("valid");for(const c in t)(0,n.alwaysValidSchema)(s,t[c])||(r.if((0,o.propertyInData)(r,i,c,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:c},l);e.mergeValidEvaluated(t,l)}),(()=>r.var(l,!0))),e.ok(l))}e.validatePropertyDeps=i,e.validateSchemaDeps=a,e.default=r}(Lo);var Vo={};Object.defineProperty(Vo,"__esModule",{value:!0});const Wo=$,Go=T,Ho={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>Wo._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:r}=e;if((0,Go.alwaysValidSchema)(r,n))return;const i=t.name("valid");t.forIn("key",o,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},i),t.if((0,Wo.not)(i),(()=>{e.error(!0),r.allErrors||t.break()}))})),e.ok(i)}};Vo.default=Ho;var Ko={};Object.defineProperty(Ko,"__esModule",{value:!0});const Jo=he(),Zo=$,Yo=U(),Qo=T,Xo={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>Zo._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:r,errsCount:i,it:a}=e;if(!i)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=a;if(a.props=!0,"all"!==l.removeAdditional&&(0,Qo.alwaysValidSchema)(a,n))return;const c=(0,Jo.allSchemaProperties)(o.properties),u=(0,Jo.allSchemaProperties)(o.patternProperties);function d(e){t.code(Zo._`delete ${r}[${e}]`)}function p(o){if("all"===l.removeAdditional||l.removeAdditional&&!1===n)d(o);else{if(!1===n)return e.setParams({additionalProperty:o}),e.error(),void(s||t.break());if("object"==typeof n&&!(0,Qo.alwaysValidSchema)(a,n)){const n=t.name("valid");"failing"===l.removeAdditional?(f(o,n,!1),t.if((0,Zo.not)(n),(()=>{e.reset(),d(o)}))):(f(o,n),s||t.if((0,Zo.not)(n),(()=>t.break())))}}}function f(t,n,o){const r={keyword:"additionalProperties",dataProp:t,dataPropType:Qo.Type.Str};!1===o&&Object.assign(r,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(r,n)}t.forIn("key",r,(n=>{c.length||u.length?t.if(function(n){let r;if(c.length>8){const e=(0,Qo.schemaRefOrVal)(a,o.properties,"properties");r=(0,Jo.isOwnProperty)(t,e,n)}else r=c.length?(0,Zo.or)(...c.map((e=>Zo._`${n} === ${e}`))):Zo.nil;return u.length&&(r=(0,Zo.or)(r,...u.map((t=>Zo._`${(0,Jo.usePattern)(e,t)}.test(${n})`)))),(0,Zo.not)(r)}(n),(()=>p(n))):p(n)})),e.ok(Zo._`${i} === ${Yo.default.errors}`)}};Ko.default=Xo;var er={};Object.defineProperty(er,"__esModule",{value:!0});const tr=Be(),nr=he(),or=T,rr=Ko,ir={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:o,data:r,it:i}=e;"all"===i.opts.removeAdditional&&void 0===o.additionalProperties&&rr.default.code(new tr.KeywordCxt(i,rr.default,"additionalProperties"));const a=(0,nr.allSchemaProperties)(n);for(const e of a)i.definedProperties.add(e);i.opts.unevaluated&&a.length&&!0!==i.props&&(i.props=or.mergeEvaluated.props(t,(0,or.toHash)(a),i.props));const s=a.filter((e=>!(0,or.alwaysValidSchema)(i,n[e])));if(0===s.length)return;const l=t.name("valid");for(const n of s)c(n)?u(n):(t.if((0,nr.propertyInData)(t,r,n,i.opts.ownProperties)),u(n),i.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(l);function c(e){return i.opts.useDefaults&&!i.compositeRule&&void 0!==n[e].default}function u(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};er.default=ir;var ar={};Object.defineProperty(ar,"__esModule",{value:!0});const sr=he(),lr=$,cr=T,ur=T,dr={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:o,parentSchema:r,it:i}=e,{opts:a}=i,s=(0,sr.allSchemaProperties)(n),l=s.filter((e=>(0,cr.alwaysValidSchema)(i,n[e])));if(0===s.length||l.length===s.length&&(!i.opts.unevaluated||!0===i.props))return;const c=a.strictSchema&&!a.allowMatchingProperties&&r.properties,u=t.name("valid");!0===i.props||i.props instanceof lr.Name||(i.props=(0,ur.evaluatedPropsToName)(t,i.props));const{props:d}=i;function p(e){for(const t in c)new RegExp(e).test(t)&&(0,cr.checkStrictMode)(i,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function f(n){t.forIn("key",o,(o=>{t.if(lr._`${(0,sr.usePattern)(e,n)}.test(${o})`,(()=>{const r=l.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:ur.Type.Str},u),i.opts.unevaluated&&!0!==d?t.assign(lr._`${d}[${o}]`,!0):r||i.allErrors||t.if((0,lr.not)(u),(()=>t.break()))}))}))}!function(){for(const e of s)c&&p(e),i.allErrors?f(e):(t.var(u,!0),f(e),t.if(u))}()}};ar.default=dr;var pr={};Object.defineProperty(pr,"__esModule",{value:!0});const fr=T,hr={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:o}=e;if((0,fr.alwaysValidSchema)(o,n))return void e.fail();const r=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),e.failResult(r,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};pr.default=hr;var mr={};Object.defineProperty(mr,"__esModule",{value:!0});const vr={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:he().validateUnion,error:{message:"must match a schema in anyOf"}};mr.default=vr;var yr={};Object.defineProperty(yr,"__esModule",{value:!0});const wr=$,gr=T,br={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>wr._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(r.opts.discriminator&&o.discriminator)return;const i=n,a=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block((function(){i.forEach(((n,o)=>{let i;(0,gr.alwaysValidSchema)(r,n)?t.var(l,!0):i=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},l),o>0&&t.if(wr._`${l} && ${a}`).assign(a,!1).assign(s,wr._`[${s}, ${o}]`).else(),t.if(l,(()=>{t.assign(a,!0),t.assign(s,o),i&&e.mergeEvaluated(i,wr.Name)}))}))})),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}};yr.default=br;var kr={};Object.defineProperty(kr,"__esModule",{value:!0});const $r=T,jr={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const r=t.name("valid");n.forEach(((t,n)=>{if((0,$r.alwaysValidSchema)(o,t))return;const i=e.subschema({keyword:"allOf",schemaProp:n},r);e.ok(r),e.mergeEvaluated(i)}))}};kr.default=jr;var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});const Tr=$,Pr=T,Er={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>Tr.str`must match "${e.ifClause}" schema`,params:({params:e})=>Tr._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,Pr.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const r=Cr(o,"then"),i=Cr(o,"else");if(!r&&!i)return;const a=t.let("valid",!0),s=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(t)}(),e.reset(),r&&i){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(s,l("then",n),l("else",n))}else r?t.if(s,l("then")):t.if((0,Tr.not)(s),l("else"));function l(n,o){return()=>{const r=e.subschema({keyword:n},s);t.assign(a,s),e.mergeValidEvaluated(r,a),o?t.assign(o,Tr._`${n}`):e.setParams({ifClause:n})}}e.pass(a,(()=>e.error(!0)))}};function Cr(e,t){const n=e.schema[t];return void 0!==n&&!(0,Pr.alwaysValidSchema)(e,n)}Ar.default=Er;var zr={};Object.defineProperty(zr,"__esModule",{value:!0});const Sr=T,_r={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,Sr.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};zr.default=_r,Object.defineProperty(wo,"__esModule",{value:!0});const Or=go,xr=Ao,Ir=To,Rr=xo,Nr=Mo,Dr=Lo,Br=Vo,Mr=Ko,qr=er,Fr=ar,Ur=pr,Lr=mr,Vr=yr,Wr=kr,Gr=Ar,Hr=zr;wo.default=function(e=!1){const t=[Ur.default,Lr.default,Vr.default,Wr.default,Gr.default,Hr.default,Br.default,Mr.default,Dr.default,qr.default,Fr.default];return e?t.push(xr.default,Rr.default):t.push(Or.default,Ir.default),t.push(Nr.default),t};var Kr={},Jr={};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.dynamicAnchor=void 0;const Zr=$,Yr=U(),Qr=We,Xr=Kt,ei={keyword:"$dynamicAnchor",schemaType:"string",code:e=>ti(e,e.schema)};function ti(e,t){const{gen:n,it:o}=e;o.schemaEnv.root.dynamicAnchors[t]=!0;const r=Zr._`${Yr.default.dynamicAnchors}${(0,Zr.getProperty)(t)}`,i="#"===o.errSchemaPath?o.validateName:function(e){const{schemaEnv:t,schema:n,self:o}=e.it,{root:r,baseId:i,localRefs:a,meta:s}=t.root,{schemaId:l}=o.opts,c=new Qr.SchemaEnv({schema:n,schemaId:l,root:r,baseId:i,localRefs:a,meta:s});return Qr.compileSchema.call(o,c),(0,Xr.getValidate)(e,c)}(e);n.if(Zr._`!${r}`,(()=>n.assign(r,i)))}Jr.dynamicAnchor=ti,Jr.default=ei;var ni={};Object.defineProperty(ni,"__esModule",{value:!0}),ni.dynamicRef=void 0;const oi=$,ri=U(),ii=Kt,ai={keyword:"$dynamicRef",schemaType:"string",code:e=>si(e,e.schema)};function si(e,t){const{gen:n,keyword:o,it:r}=e;if("#"!==t[0])throw new Error(`"${o}" only supports hash fragment reference`);const i=t.slice(1);if(r.allErrors)a();else{const t=n.let("valid",!1);a(t),e.ok(t)}function a(e){if(r.schemaEnv.root.dynamicAnchors[i]){const t=n.let("_v",oi._`${ri.default.dynamicAnchors}${(0,oi.getProperty)(i)}`);n.if(t,s(t,e),s(r.validateName,e))}else s(r.validateName,e)()}function s(t,o){return o?()=>n.block((()=>{(0,ii.callRef)(e,t),n.let(o,!0)})):()=>(0,ii.callRef)(e,t)}}ni.dynamicRef=si,ni.default=ai;var li={};Object.defineProperty(li,"__esModule",{value:!0});const ci=Jr,ui=T,di={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,ci.dynamicAnchor)(e,""):(0,ui.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};li.default=di;var pi={};Object.defineProperty(pi,"__esModule",{value:!0});const fi=ni,hi={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,fi.dynamicRef)(e,e.schema)};pi.default=hi,Object.defineProperty(Kr,"__esModule",{value:!0});const mi=ni,vi=li,yi=pi,wi=[Jr.default,mi.default,vi.default,yi.default];Kr.default=wi;var gi={},bi={};Object.defineProperty(bi,"__esModule",{value:!0});const ki=Lo,$i={keyword:"dependentRequired",type:"object",schemaType:"object",error:ki.error,code:e=>(0,ki.validatePropertyDeps)(e)};bi.default=$i;var ji={};Object.defineProperty(ji,"__esModule",{value:!0});const Ai=Lo,Ti={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,Ai.validateSchemaDeps)(e)};ji.default=Ti;var Pi={};Object.defineProperty(Pi,"__esModule",{value:!0});const Ei=T,Ci={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:n}){void 0===t.contains&&(0,Ei.checkStrictMode)(n,`"${e}" without "contains" is ignored`)}};Pi.default=Ci,Object.defineProperty(gi,"__esModule",{value:!0});const zi=ji,Si=Pi,_i=[bi.default,zi.default,Si.default];gi.default=_i;var Oi={},xi={};Object.defineProperty(xi,"__esModule",{value:!0});const Ii=$,Ri=T,Ni=U(),Di={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:e})=>Ii._`{unevaluatedProperty: ${e.unevaluatedProperty}}`},code(e){const{gen:t,schema:n,data:o,errsCount:r,it:i}=e;if(!r)throw new Error("ajv implementation error");const{allErrors:a,props:s}=i;function l(o){if(!1===n)return e.setParams({unevaluatedProperty:o}),e.error(),void(a||t.break());if(!(0,Ri.alwaysValidSchema)(i,n)){const n=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:o,dataPropType:Ri.Type.Str},n),a||t.if((0,Ii.not)(n),(()=>t.break()))}}s instanceof Ii.Name?t.if(Ii._`${s} !== true`,(()=>t.forIn("key",o,(e=>t.if(function(e,t){return Ii._`!${e} || !${e}[${t}]`}(s,e),(()=>l(e))))))):!0!==s&&t.forIn("key",o,(e=>void 0===s?l(e):t.if(function(e,t){const n=[];for(const o in e)!0===e[o]&&n.push(Ii._`${t} !== ${o}`);return(0,Ii.and)(...n)}(s,e),(()=>l(e))))),i.props=!0,e.ok(Ii._`${r} === ${Ni.default.errors}`)}};xi.default=Di;var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0});const Mi=$,qi=T,Fi={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:e}})=>Mi.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Mi._`{limit: ${e}}`},code(e){const{gen:t,schema:n,data:o,it:r}=e,i=r.items||0;if(!0===i)return;const a=t.const("len",Mi._`${o}.length`);if(!1===n)e.setParams({len:i}),e.fail(Mi._`${a} > ${i}`);else if("object"==typeof n&&!(0,qi.alwaysValidSchema)(r,n)){const n=t.var("valid",Mi._`${a} <= ${i}`);t.if((0,Mi.not)(n),(()=>function(n,o){t.forRange("i",o,a,(o=>{e.subschema({keyword:"unevaluatedItems",dataProp:o,dataPropType:qi.Type.Num},n),r.allErrors||t.if((0,Mi.not)(n),(()=>t.break()))}))}(n,i))),e.ok(n)}r.items=!0}};Bi.default=Fi,Object.defineProperty(Oi,"__esModule",{value:!0});const Ui=Bi,Li=[xi.default,Ui.default];Oi.default=Li;var Vi={},Wi={};Object.defineProperty(Wi,"__esModule",{value:!0});const Gi=$,Hi={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>Gi.str`must match format "${e}"`,params:({schemaCode:e})=>Gi._`{format: ${e}}`},code(e,t){const{gen:n,data:o,$data:r,schema:i,schemaCode:a,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:d}=s;l.validateFormats&&(r?function(){const r=n.scopeValue("formats",{ref:d.formats,code:l.code.formats}),i=n.const("fDef",Gi._`${r}[${a}]`),s=n.let("fType"),c=n.let("format");n.if(Gi._`typeof ${i} == "object" && !(${i} instanceof RegExp)`,(()=>n.assign(s,Gi._`${i}.type || "string"`).assign(c,Gi._`${i}.validate`)),(()=>n.assign(s,Gi._`"string"`).assign(c,i))),e.fail$data((0,Gi.or)(!1===l.strictSchema?Gi.nil:Gi._`${a} && !${c}`,function(){const e=u.$async?Gi._`(${i}.async ? await ${c}(${o}) : ${c}(${o}))`:Gi._`${c}(${o})`,n=Gi._`(typeof ${c} == "function" ? ${e} : ${c}.test(${o}))`;return Gi._`${c} && ${c} !== true && ${s} === ${t} && !${n}`}()))}():function(){const r=d.formats[i];if(!r)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${i}" ignored in schema at path "${c}"`}}();if(!0===r)return;const[a,s,p]=function(e){const t=e instanceof RegExp?(0,Gi.regexpCode)(e):l.code.formats?Gi._`${l.code.formats}${(0,Gi.getProperty)(i)}`:void 0,o=n.scopeValue("formats",{key:i,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,Gi._`${o}.validate`];return["string",e,o]}(r);a===t&&e.pass(function(){if("object"==typeof r&&!(r instanceof RegExp)&&r.async){if(!u.$async)throw new Error("async format in sync schema");return Gi._`await ${p}(${o})`}return"function"==typeof s?Gi._`${p}(${o})`:Gi._`${p}.test(${o})`}())}())}};Wi.default=Hi,Object.defineProperty(Vi,"__esModule",{value:!0});const Ki=[Wi.default];Vi.default=Ki;var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.contentVocabulary=Ji.metadataVocabulary=void 0,Ji.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Ji.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(Vt,"__esModule",{value:!0});const Zi=Wt,Yi=sn,Qi=wo,Xi=gi,ea=Oi,ta=Vi,na=Ji,oa=[Kr.default,Zi.default,Yi.default,(0,Qi.default)(!0),ta.default,na.metadataVocabulary,na.contentVocabulary,Xi.default,ea.default];Vt.default=oa;var ra,ia={},aa={};Object.defineProperty(aa,"__esModule",{value:!0}),aa.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(ra||(aa.DiscrError=ra={})),Object.defineProperty(ia,"__esModule",{value:!0});const sa=$,la=aa,ca=We,ua=Ve(),da=T,pa={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===la.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>sa._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:o,parentSchema:r,it:i}=e,{oneOf:a}=r;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=o.propertyName;if("string"!=typeof s)throw new Error("discriminator: requires propertyName");if(o.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),c=t.const("tag",sa._`${n}${(0,sa.getProperty)(s)}`);function u(n){const o=t.name("valid"),r=e.subschema({keyword:"oneOf",schemaProp:n},o);return e.mergeEvaluated(r,sa.Name),o}t.if(sa._`typeof ${c} == "string"`,(()=>function(){const n=function(){var e;const t={},n=l(r);let o=!0;for(let t=0;t<a.length;t++){let r=a[t];if((null==r?void 0:r.$ref)&&!(0,da.schemaHasRulesButRef)(r,i.self.RULES)){const e=r.$ref;if(r=ca.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,e),r instanceof ca.SchemaEnv&&(r=r.schema),void 0===r)throw new ua.default(i.opts.uriResolver,i.baseId,e)}const u=null===(e=null==r?void 0:r.properties)||void 0===e?void 0:e[s];if("object"!=typeof u)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);o=o&&(n||l(r)),c(u,t)}if(!o)throw new Error(`discriminator: "${s}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(s)}function c(e,t){if(e.const)u(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`);for(const n of e.enum)u(n,t)}}function u(e,n){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${s}" values must be unique strings`);t[e]=n}}();t.if(!1);for(const e in n)t.elseIf(sa._`${c} === ${e}`),t.assign(l,u(n[e]));t.else(),e.error(!1,{discrError:la.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:la.DiscrError.Tag,tag:c,tagName:s}))),e.ok(l)}};ia.default=pa;var fa={},ha={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}},ma={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}},va={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}},ya={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}},wa={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}},ga={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}},ba={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}},ka={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}};Object.defineProperty(fa,"__esModule",{value:!0});const $a=ha,ja=ma,Aa=va,Ta=ya,Pa=wa,Ea=ga,Ca=ba,za=ka,Sa=["/properties"];fa.default=function(e){return[$a,ja,Aa,Ta,Pa,t(this,Ea),Ca,t(this,za)].forEach((e=>this.addMetaSchema(e,void 0,!1))),this;function t(t,n){return e?t.$dataMetaSchema(n,Sa):n}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv2020=void 0;const n=w,o=Vt,r=ia,i=fa,a="https://json-schema.org/draft/2020-12/schema";class s extends n.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),o.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:e,meta:t}=this.opts;t&&(i.default.call(this,e),this.refs["http://json-schema.org/schema"]=a)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv2020=s,e.exports=t=s,e.exports.Ajv2020=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var l=Be();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var c=$;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var u=Fe();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return u.default}});var d=Ve();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return d.default}})}(y,y.exports);var _a=v(y.exports),Oa={exports:{}},xa={};!function(e){function t(e,t){return{validate:e,compare:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0,e.fullFormats={date:t(r,i),time:t(s(!0),l),"date-time":t(d(!0),p),"iso-time":t(s(),c),"iso-date-time":t(d(),f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return h.test(e)&&m.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(b.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return v.lastIndex=0,v.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=w&&e>=y}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:g},double:{type:"number",validate:g},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function r(e){const t=n.exec(e);if(!t)return!1;const r=+t[1],i=+t[2],a=+t[3];return i>=1&&i<=12&&a>=1&&a<=(2===i&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:o[i])}function i(e,t){if(e&&t)return e>t?1:e<t?-1:0}const a=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function s(e){return function(t){const n=a.exec(t);if(!n)return!1;const o=+n[1],r=+n[2],i=+n[3],s=n[4],l="-"===n[5]?-1:1,c=+(n[6]||0),u=+(n[7]||0);if(c>23||u>59||e&&!s)return!1;if(o<=23&&r<=59&&i<60)return!0;const d=r-u*l,p=o-c*l-(d<0?1:0);return(23===p||-1===p)&&(59===d||-1===d)&&i<61}}function l(e,t){if(!e||!t)return;const n=new Date("2020-01-01T"+e).valueOf(),o=new Date("2020-01-01T"+t).valueOf();return n&&o?n-o:void 0}function c(e,t){if(!e||!t)return;const n=a.exec(e),o=a.exec(t);return n&&o?(e=n[1]+n[2]+n[3])>(t=o[1]+o[2]+o[3])?1:e<t?-1:0:void 0}const u=/t|\s/i;function d(e){const t=s(e);return function(e){const n=e.split(u);return 2===n.length&&r(n[0])&&t(n[1])}}function p(e,t){if(!e||!t)return;const n=new Date(e).valueOf(),o=new Date(t).valueOf();return n&&o?n-o:void 0}function f(e,t){if(!e||!t)return;const[n,o]=e.split(u),[r,a]=t.split(u),s=i(n,r);return void 0!==s?s||l(o,a):void 0}const h=/\/|:/,m=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;const y=-(2**31),w=2**31-1;function g(){return!0}const b=/[^\\]\\Z/}(xa);var Ia={},Ra={exports:{}},Na={};Object.defineProperty(Na,"__esModule",{value:!0});const Da=sn,Ba=wo,Ma=Vi,qa=Ji,Fa=[Wt.default,Da.default,(0,Ba.default)(),Ma.default,qa.metadataVocabulary,qa.contentVocabulary];Na.default=Fa;var Ua={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=w,o=Na,r=ia,i=Ua,a=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends n.default{_addVocabularies(){super._addVocabularies(),o.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(r.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(i,a):i;this.addMetaSchema(e,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=Be();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=$;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=Fe();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var p=Ve();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})}(Ra,Ra.exports);var La=Ra.exports;!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=La,n=$,o=n.operators,r={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},i={message:({keyword:e,schemaCode:t})=>n.str`should be ${r[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${r[e].okStr}, limit: ${t}}`};e.formatLimitDefinition={keyword:Object.keys(r),type:"string",schemaType:"string",$data:!0,error:i,code(e){const{gen:o,data:i,schemaCode:a,keyword:s,it:l}=e,{opts:c,self:u}=l;if(!c.validateFormats)return;const d=new t.KeywordCxt(l,u.RULES.all.format.definition,"format");function p(e){return n._`${e}.compare(${i}, ${a}) ${r[s].fail} 0`}d.$data?function(){const t=o.scopeValue("formats",{ref:u.formats,code:c.code.formats}),r=o.const("fmt",n._`${t}[${d.schemaCode}]`);e.fail$data((0,n.or)(n._`typeof ${r} != "object"`,n._`${r} instanceof RegExp`,n._`typeof ${r}.compare != "function"`,p(r)))}():function(){const t=d.schema,r=u.formats[t];if(!r||!0===r)return;if("object"!=typeof r||r instanceof RegExp||"function"!=typeof r.compare)throw new Error(`"${s}": format "${t}" does not define "compare" function`);const i=o.scopeValue("formats",{key:t,ref:r,code:c.code.formats?n._`${c.code.formats}${(0,n.getProperty)(t)}`:void 0});e.fail$data(p(i))}()},dependencies:["format"]};e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)}(Ia),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=xa,o=Ia,r=$,i=new r.Name("fullFormats"),a=new r.Name("fastFormats"),s=(e,t={keywords:!0})=>{if(Array.isArray(t))return l(e,t,n.fullFormats,i),e;const[r,s]="fast"===t.mode?[n.fastFormats,a]:[n.fullFormats,i];return l(e,t.formats||n.formatNames,r,s),t.keywords&&(0,o.default)(e),e};function l(e,t,n,o){var i,a;null!==(i=(a=e.opts.code).formats)&&void 0!==i||(a.formats=r._`require("ajv-formats/dist/formats").${o}`);for(const o of t)e.addFormat(o,n[o])}s.get=(e,t="full")=>{const o=("fast"===t?n.fastFormats:n.fullFormats)[e];if(!o)throw new Error(`Unknown format "${e}"`);return o},e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s}(Oa,Oa.exports);var Va=v(Oa.exports),Wa=new _a({schemas:[{$id:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json",$schema:"https://json-schema.org/draft/2020-12/schema",description:"Serverless Workflow DSL - Workflow Schema.",type:"object",required:["document","do"],properties:{document:{type:"object",title:"Document",description:"Documents the workflow.",unevaluatedProperties:!1,properties:{dsl:{type:"string",pattern:"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",title:"WorkflowDSL",description:"The version of the DSL used by the workflow."},namespace:{type:"string",pattern:"^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",title:"WorkflowNamespace",description:"The workflow's namespace."},name:{type:"string",pattern:"^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",title:"WorkflowName",description:"The workflow's name."},version:{type:"string",pattern:"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",title:"WorkflowVersion",description:"The workflow's semantic version."},title:{type:"string",title:"WorkflowTitle",description:"The workflow's title."},summary:{type:"string",title:"WorkflowSummary",description:"The workflow's Markdown summary."},tags:{type:"object",title:"WorkflowTags",description:"A key/value mapping of the workflow's tags, if any.",additionalProperties:!0},metadata:{type:"object",title:"WorkflowMetadata",description:"Holds additional information about the workflow.",additionalProperties:!0}},required:["dsl","namespace","name","version"]},input:{$ref:"#/$defs/input",title:"Input",description:"Configures the workflow's input."},use:{type:"object",title:"Use",description:"Defines the workflow's reusable components.",unevaluatedProperties:!1,properties:{authentications:{type:"object",title:"UseAuthentications",description:"The workflow's reusable authentication policies.",additionalProperties:{$ref:"#/$defs/authenticationPolicy"}},errors:{type:"object",title:"UseErrors",description:"The workflow's reusable errors.",additionalProperties:{$ref:"#/$defs/error"}},extensions:{type:"array",title:"UseExtensions",description:"The workflow's extensions.",items:{type:"object",title:"ExtensionItem",minProperties:1,maxProperties:1,additionalProperties:{$ref:"#/$defs/extension"}}},functions:{type:"object",title:"UseFunctions",description:"The workflow's reusable functions.",additionalProperties:{$ref:"#/$defs/task"}},retries:{type:"object",title:"UseRetries",description:"The workflow's reusable retry policies.",additionalProperties:{$ref:"#/$defs/retryPolicy"}},secrets:{type:"array",title:"UseSecrets",description:"The workflow's reusable secrets.",items:{type:"string",description:"The workflow's secrets."}},timeouts:{type:"object",title:"UseTimeouts",description:"The workflow's reusable timeouts.",additionalProperties:{$ref:"#/$defs/timeout"}},catalogs:{type:"object",title:"UseCatalogs",description:"The workflow's reusable catalogs.",additionalProperties:{$ref:"#/$defs/catalog"}}}},do:{$ref:"#/$defs/taskList",title:"Do",description:"Defines the task(s) the workflow must perform."},timeout:{title:"DoTimeout",oneOf:[{$ref:"#/$defs/timeout",title:"TimeoutDefinition",description:"The workflow's timeout configuration, if any."},{type:"string",title:"TimeoutReference",description:"The name of the workflow's timeout, if any."}]},output:{$ref:"#/$defs/output",title:"Output",description:"Configures the workflow's output."},schedule:{type:"object",title:"Schedule",description:"Schedules the workflow.",unevaluatedProperties:!1,properties:{every:{$ref:"#/$defs/duration",title:"ScheduleEvery",description:"Specifies the duration of the interval at which the workflow should be executed."},cron:{type:"string",title:"ScheduleCron",description:"Specifies the schedule using a cron expression, e.g., '0 0 * * *' for daily at midnight."},after:{$ref:"#/$defs/duration",title:"ScheduleAfter",description:"Specifies a delay duration that the workflow must wait before starting again after it completes."},on:{$ref:"#/$defs/eventConsumptionStrategy",title:"ScheduleOn",description:"Specifies the events that trigger the workflow execution."}}}},$defs:{taskList:{title:"TaskList",description:"List of named tasks to perform.",type:"array",items:{type:"object",title:"TaskItem",minProperties:1,maxProperties:1,additionalProperties:{$ref:"#/$defs/task"}}},taskBase:{type:"object",title:"TaskBase",description:"An object inherited by all tasks.",properties:{if:{type:"string",title:"TaskBaseIf",description:"A runtime expression, if any, used to determine whether or not the task should be run."},input:{$ref:"#/$defs/input",title:"TaskBaseInput",description:"Configure the task's input."},output:{$ref:"#/$defs/output",title:"TaskBaseOutput",description:"Configure the task's output."},export:{$ref:"#/$defs/export",title:"TaskBaseExport",description:"Export task output to context."},timeout:{title:"TaskTimeout",oneOf:[{$ref:"#/$defs/timeout",title:"TaskTimeoutDefinition",description:"The task's timeout configuration, if any."},{type:"string",title:"TaskTimeoutReference",description:"The name of the task's timeout, if any."}]},then:{$ref:"#/$defs/flowDirective",title:"TaskBaseThen",description:"The flow directive to be performed upon completion of the task."},metadata:{type:"object",title:"TaskMetadata",description:"Holds additional information about the task.",additionalProperties:!0}}},task:{title:"Task",description:"A discrete unit of work that contributes to achieving the overall objectives defined by the workflow.",unevaluatedProperties:!1,oneOf:[{$ref:"#/$defs/callTask"},{$ref:"#/$defs/doTask"},{$ref:"#/$defs/forkTask"},{$ref:"#/$defs/emitTask"},{$ref:"#/$defs/forTask"},{$ref:"#/$defs/listenTask"},{$ref:"#/$defs/raiseTask"},{$ref:"#/$defs/runTask"},{$ref:"#/$defs/setTask"},{$ref:"#/$defs/switchTask"},{$ref:"#/$defs/tryTask"},{$ref:"#/$defs/waitTask"}]},callTask:{title:"CallTask",description:"Defines the call to perform.",oneOf:[{title:"CallAsyncAPI",description:"Defines the AsyncAPI call to perform.",$ref:"#/$defs/taskBase",type:"object",required:["call","with"],unevaluatedProperties:!1,properties:{call:{type:"string",const:"asyncapi"},with:{type:"object",title:"AsyncApiArguments",description:"The Async API call arguments.",properties:{document:{$ref:"#/$defs/externalResource",title:"AsyncAPIDocument",description:"The document that defines the AsyncAPI operation to call."},channel:{type:"string",title:"With",description:"The name of the channel on which to perform the operation. Used only in case the referenced document uses AsyncAPI v2.6.0."},operation:{type:"string",title:"AsyncAPIOperation",description:"A reference to the AsyncAPI operation to call."},server:{$ref:"#/$defs/asyncApiServer",title:"AsyncAPIServer",description:"An object used to configure to the server to call the specified AsyncAPI operation on."},protocol:{type:"string",title:"AsyncApiProtocol",description:"The protocol to use to select the target server.",enum:["amqp","amqp1","anypointmq","googlepubsub","http","ibmmq","jms","kafka","mercure","mqtt","mqtt5","nats","pulsar","redis","sns","solace","sqs","stomp","ws"]},message:{$ref:"#/$defs/asyncApiOutboundMessage",title:"AsyncApiMessage",description:"An object used to configure the message to publish using the target operation."},subscription:{$ref:"#/$defs/asyncApiSubscription",title:"AsyncApiSubscription",description:"An object used to configure the subscription to messages consumed using the target operation."},authentication:{$ref:"#/$defs/referenceableAuthenticationPolicy",title:"AsyncAPIAuthentication",description:"The authentication policy, if any, to use when calling the AsyncAPI operation."}},oneOf:[{required:["document","operation","message"]},{required:["document","operation","subscription"]},{required:["document","channel","message"]},{required:["document","channel","subscription"]}],unevaluatedProperties:!1}}},{title:"CallGRPC",description:"Defines the GRPC call to perform.",$ref:"#/$defs/taskBase",type:"object",unevaluatedProperties:!1,required:["call","with"],properties:{call:{type:"string",const:"grpc"},with:{type:"object",title:"GRPCArguments",description:"The GRPC call arguments.",properties:{proto:{$ref:"#/$defs/externalResource",title:"WithGRPCProto",description:"The proto resource that describes the GRPC service to call."},service:{type:"object",title:"WithGRPCService",unevaluatedProperties:!1,properties:{name:{type:"string",title:"WithGRPCServiceName",description:"The name of the GRPC service to call."},host:{type:"string",title:"WithGRPCServiceHost",description:"The hostname of the GRPC service to call.",pattern:"^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$"},port:{type:"integer",title:"WithGRPCServicePost",description:"The port number of the GRPC service to call.",minimum:0,maximum:65535},authentication:{$ref:"#/$defs/referenceableAuthenticationPolicy",title:"WithGRPCServiceAuthentication",description:"The endpoint's authentication policy, if any."}},required:["name","host"]},method:{type:"string",title:"WithGRPCMethod",description:"The name of the method to call on the defined GRPC service."},arguments:{type:"object",title:"WithGRPCArguments",description:"The arguments, if any, to call the method with.",additionalProperties:!0}},required:["proto","service","method"],unevaluatedProperties:!1}}},{title:"CallHTTP",description:"Defines the HTTP call to perform.",$ref:"#/$defs/taskBase",type:"object",unevaluatedProperties:!1,required:["call","with"],properties:{call:{type:"string",const:"http"},with:{type:"object",title:"HTTPArguments",description:"The HTTP call arguments.",properties:{method:{type:"string",title:"HTTPMethod",description:"The HTTP method of the HTTP request to perform."},endpoint:{title:"HTTPEndpoint",description:"The HTTP endpoint to send the request to.",$ref:"#/$defs/endpoint"},headers:{type:"object",title:"HTTPHeaders",description:"A name/value mapping of the headers, if any, of the HTTP request to perform."},body:{title:"HTTPBody",description:"The body, if any, of the HTTP request to perform."},query:{type:"object",title:"HTTPQuery",description:"A name/value mapping of the query parameters, if any, of the HTTP request to perform.",additionalProperties:!0},output:{type:"string",title:"HTTPOutput",description:"The http call output format. Defaults to 'content'.",enum:["raw","content","response"]},redirect:{type:"boolean",title:"HttpRedirect",description:"Specifies whether redirection status codes (`300–399`) should be treated as errors."}},required:["method","endpoint"],unevaluatedProperties:!1}}},{title:"CallOpenAPI",description:"Defines the OpenAPI call to perform.",$ref:"#/$defs/taskBase",type:"object",unevaluatedProperties:!1,required:["call","with"],properties:{call:{type:"string",const:"openapi"},with:{type:"object",title:"OpenAPIArguments",description:"The OpenAPI call arguments.",properties:{document:{$ref:"#/$defs/externalResource",title:"WithOpenAPIDocument",description:"The document that defines the OpenAPI operation to call."},operationId:{type:"string",title:"WithOpenAPIOperation",description:"The id of the OpenAPI operation to call."},parameters:{type:"object",title:"WithOpenAPIParameters",description:"A name/value mapping of the parameters of the OpenAPI operation to call.",additionalProperties:!0},authentication:{$ref:"#/$defs/referenceableAuthenticationPolicy",title:"WithOpenAPIAuthentication",description:"The authentication policy, if any, to use when calling the OpenAPI operation."},output:{type:"string",enum:["raw","content","response"],title:"WithOpenAPIOutput",description:"The http call output format. Defaults to 'content'."},redirect:{type:"boolean",title:"HttpRedirect",description:"Specifies whether redirection status codes (`300–399`) should be treated as errors."}},required:["document","operationId"],unevaluatedProperties:!1}}},{title:"CallFunction",description:"Defines the function call to perform.",$ref:"#/$defs/taskBase",type:"object",unevaluatedProperties:!1,required:["call"],properties:{call:{type:"string",not:{enum:["asyncapi","grpc","http","openapi"]},description:"The name of the function to call."},with:{type:"object",title:"FunctionArguments",description:"A name/value mapping of the parameters, if any, to call the function with.",additionalProperties:!0}}}]},forkTask:{type:"object",$ref:"#/$defs/taskBase",title:"ForkTask",description:"Allows workflows to execute multiple tasks concurrently and optionally race them against each other, with a single possible winner, which sets the task's output.",unevaluatedProperties:!1,required:["fork"],properties:{fork:{type:"object",title:"ForkTaskConfiguration",description:"The configuration of the branches to perform concurrently.",unevaluatedProperties:!1,required:["branches"],properties:{branches:{$ref:"#/$defs/taskList",title:"ForkBranches"},compete:{type:"boolean",title:"ForkCompete",description:"Indicates whether or not the concurrent tasks are racing against each other, with a single possible winner, which sets the composite task's output.",default:!1}}}}},doTask:{type:"object",$ref:"#/$defs/taskBase",title:"DoTask",description:"Allows to execute a list of tasks in sequence.",unevaluatedProperties:!1,required:["do"],properties:{do:{$ref:"#/$defs/taskList",title:"DoTaskConfiguration",description:"The configuration of the tasks to perform sequentially."}}},emitTask:{type:"object",$ref:"#/$defs/taskBase",title:"EmitTask",description:"Allows workflows to publish events to event brokers or messaging systems, facilitating communication and coordination between different components and services.",required:["emit"],unevaluatedProperties:!1,properties:{emit:{type:"object",title:"EmitTaskConfiguration",description:"The configuration of an event's emission.",unevaluatedProperties:!1,properties:{event:{type:"object",title:"EmitEventDefinition",description:"The definition of the event to emit.",properties:{with:{$ref:"#/$defs/eventProperties",title:"EmitEventWith",description:"Defines the properties of event to emit.",required:["source","type"]}},additionalProperties:!0}},required:["event"]}}},forTask:{type:"object",$ref:"#/$defs/taskBase",title:"ForTask",description:"Allows workflows to iterate over a collection of items, executing a defined set of subtasks for each item in the collection. This task type is instrumental in handling scenarios such as batch processing, data transformation, and repetitive operations across datasets.",required:["for","do"],unevaluatedProperties:!1,properties:{for:{type:"object",title:"ForTaskConfiguration",description:"The definition of the loop that iterates over a range of values.",unevaluatedProperties:!1,properties:{each:{type:"string",title:"ForEach",description:"The name of the variable used to store the current item being enumerated.",default:"item"},in:{type:"string",title:"ForIn",description:"A runtime expression used to get the collection to enumerate."},at:{type:"string",title:"ForAt",description:"The name of the variable used to store the index of the current item being enumerated.",default:"index"}},required:["in"]},while:{type:"string",title:"While",description:"A runtime expression that represents the condition, if any, that must be met for the iteration to continue."},do:{$ref:"#/$defs/taskList",title:"ForTaskDo"}}},listenTask:{type:"object",$ref:"#/$defs/taskBase",title:"ListenTask",description:"Provides a mechanism for workflows to await and react to external events, enabling event-driven behavior within workflow systems.",required:["listen"],unevaluatedProperties:!1,properties:{listen:{type:"object",title:"ListenTaskConfiguration",description:"The configuration of the listener to use.",unevaluatedProperties:!1,properties:{to:{$ref:"#/$defs/eventConsumptionStrategy",title:"ListenTo",description:"Defines the event(s) to listen to."},read:{type:"string",enum:["data","envelope","raw"],default:"data",title:"ListenAndReadAs",description:"Specifies how events are read during the listen operation."}},required:["to"]},foreach:{$ref:"#/$defs/subscriptionIterator",title:"ListenIterator",description:"Configures the iterator, if any, for processing consumed event(s)."}}},raiseTask:{type:"object",$ref:"#/$defs/taskBase",title:"RaiseTask",description:"Intentionally triggers and propagates errors.",required:["raise"],unevaluatedProperties:!1,properties:{raise:{type:"object",title:"RaiseTaskConfiguration",description:"The definition of the error to raise.",unevaluatedProperties:!1,properties:{error:{title:"RaiseTaskError",oneOf:[{$ref:"#/$defs/error",title:"RaiseErrorDefinition",description:"Defines the error to raise."},{type:"string",title:"RaiseErrorReference",description:"The name of the error to raise"}]}},required:["error"]}}},runTask:{type:"object",$ref:"#/$defs/taskBase",title:"RunTask",description:"Provides the capability to execute external containers, shell commands, scripts, or workflows.",required:["run"],unevaluatedProperties:!1,properties:{run:{type:"object",title:"RunTaskConfiguration",description:"The configuration of the process to execute.",unevaluatedProperties:!1,properties:{await:{type:"boolean",default:!0,title:"AwaitProcessCompletion",description:"Whether to await the process completion before continuing."},return:{type:"string",title:"ProcessReturnType",description:"Configures the output of the process.",enum:["stdout","stderr","code","all","none"],default:"stdout"}},oneOf:[{title:"RunContainer",description:"Enables the execution of external processes encapsulated within a containerized environment.",properties:{container:{type:"object",title:"Container",description:"The configuration of the container to run.",unevaluatedProperties:!1,properties:{image:{type:"string",title:"ContainerImage",description:"The name of the container image to run."},name:{type:"string",title:"ContainerName",description:"A runtime expression, if any, used to give specific name to the container."},command:{type:"string",title:"ContainerCommand",description:"The command, if any, to execute on the container."},ports:{type:"object",title:"ContainerPorts",description:"The container's port mappings, if any."},volumes:{type:"object",title:"ContainerVolumes",description:"The container's volume mappings, if any."},environment:{type:"object",title:"ContainerEnvironment",description:"A key/value mapping of the environment variables, if any, to use when running the configured process."},lifetime:{$ref:"#/$defs/containerLifetime",title:"ContainerLifetime",description:"An object, if any, used to configure the container's lifetime"}},required:["image"]}},required:["container"]},{title:"RunScript",description:"Enables the execution of custom scripts or code within a workflow, empowering workflows to perform specialized logic, data processing, or integration tasks by executing user-defined scripts written in various programming languages.",properties:{script:{type:"object",title:"Script",description:"The configuration of the script to run.",unevaluatedProperties:!1,properties:{language:{type:"string",title:"ScriptLanguage",description:"The language of the script to run."},arguments:{type:"object",title:"ScriptArguments",description:"A key/value mapping of the arguments, if any, to use when running the configured script.",additionalProperties:!0},environment:{type:"object",title:"ScriptEnvironment",description:"A key/value mapping of the environment variables, if any, to use when running the configured script process.",additionalProperties:!0}},oneOf:[{title:"InlineScript",type:"object",description:"The script's code.",properties:{code:{type:"string",title:"InlineScriptCode"}},required:["code"]},{title:"ExternalScript",type:"object",description:"The script's resource.",properties:{source:{$ref:"#/$defs/externalResource",title:"ExternalScriptResource"}},required:["source"]}],required:["language"]}},required:["script"]},{title:"RunShell",description:"Enables the execution of shell commands within a workflow, enabling workflows to interact with the underlying operating system and perform system-level operations, such as file manipulation, environment configuration, or system administration tasks.",properties:{shell:{type:"object",title:"Shell",description:"The configuration of the shell command to run.",unevaluatedProperties:!1,properties:{command:{type:"string",title:"ShellCommand",description:"The shell command to run."},arguments:{type:"object",title:"ShellArguments",description:"A list of the arguments of the shell command to run.",additionalProperties:!0},environment:{type:"object",title:"ShellEnvironment",description:"A key/value mapping of the environment variables, if any, to use when running the configured process.",additionalProperties:!0}},required:["command"]}},required:["shell"]},{title:"RunWorkflow",description:"Enables the invocation and execution of nested workflows within a parent workflow, facilitating modularization, reusability, and abstraction of complex logic or business processes by encapsulating them into standalone workflow units.",properties:{workflow:{type:"object",title:"SubflowConfiguration",description:"The configuration of the workflow to run.",unevaluatedProperties:!1,properties:{namespace:{type:"string",title:"SubflowNamespace",description:"The namespace the workflow to run belongs to."},name:{type:"string",title:"SubflowName",description:"The name of the workflow to run."},version:{type:"string",default:"latest",title:"SubflowVersion",description:"The version of the workflow to run. Defaults to latest."},input:{type:"object",title:"SubflowInput",description:"The data, if any, to pass as input to the workflow to execute. The value should be validated against the target workflow's input schema, if specified.",additionalProperties:!0}},required:["namespace","name","version"]}},required:["workflow"]}]}}},setTask:{type:"object",$ref:"#/$defs/taskBase",title:"SetTask",description:"A task used to set data.",required:["set"],unevaluatedProperties:!1,properties:{set:{type:"object",title:"SetTaskConfiguration",description:"The data to set.",minProperties:1,additionalProperties:!0}}},switchTask:{type:"object",$ref:"#/$defs/taskBase",title:"SwitchTask",description:"Enables conditional branching within workflows, allowing them to dynamically select different paths based on specified conditions or criteria.",required:["switch"],unevaluatedProperties:!1,properties:{switch:{type:"array",title:"SwitchTaskConfiguration",description:"The definition of the switch to use.",minItems:1,items:{type:"object",title:"SwitchItem",minProperties:1,maxProperties:1,additionalProperties:{type:"object",title:"SwitchCase",description:"The definition of a case within a switch task, defining a condition and corresponding tasks to execute if the condition is met.",unevaluatedProperties:!1,required:["then"],properties:{when:{type:"string",title:"SwitchCaseCondition",description:"A runtime expression used to determine whether or not the case matches."},then:{$ref:"#/$defs/flowDirective",title:"SwitchCaseOutcome",description:"The flow directive to execute when the case matches."}}}}}}},tryTask:{type:"object",$ref:"#/$defs/taskBase",title:"TryTask",description:"Serves as a mechanism within workflows to handle errors gracefully, potentially retrying failed tasks before proceeding with alternate ones.",required:["try","catch"],unevaluatedProperties:!1,properties:{try:{$ref:"#/$defs/taskList",title:"TryTaskConfiguration",description:"The task(s) to perform."},catch:{type:"object",title:"TryTaskCatch",description:"The object used to define the errors to catch.",unevaluatedProperties:!1,properties:{errors:{type:"object",title:"CatchErrors",properties:{with:{$ref:"#/$defs/errorFilter"}},description:"static error filter"},as:{type:"string",title:"CatchAs",description:"The name of the runtime expression variable to save the error as. Defaults to 'error'."},when:{type:"string",title:"CatchWhen",description:"A runtime expression used to determine whether to catch the filtered error."},exceptWhen:{type:"string",title:"CatchExceptWhen",description:"A runtime expression used to determine whether not to catch the filtered error."},retry:{oneOf:[{$ref:"#/$defs/retryPolicy",title:"RetryPolicyDefinition",description:"The retry policy to use, if any, when catching errors."},{type:"string",title:"RetryPolicyReference",description:"The name of the retry policy to use, if any, when catching errors."}]},do:{$ref:"#/$defs/taskList",title:"TryTaskCatchDo",description:"The definition of the task(s) to run when catching an error."}}}}},waitTask:{type:"object",$ref:"#/$defs/taskBase",title:"WaitTask",description:"Allows workflows to pause or delay their execution for a specified period of time.",required:["wait"],unevaluatedProperties:!1,properties:{wait:{$ref:"#/$defs/duration",title:"WaitTaskConfiguration",description:"The amount of time to wait."}}},flowDirective:{title:"FlowDirective",description:"Represents different transition options for a workflow.",anyOf:[{title:"FlowDirectiveEnum",type:"string",enum:["continue","exit","end"],default:"continue"},{type:"string"}]},referenceableAuthenticationPolicy:{type:"object",title:"ReferenceableAuthenticationPolicy",description:"Represents a referenceable authentication policy.",unevaluatedProperties:!1,oneOf:[{title:"AuthenticationPolicyReference",description:"The reference of the authentication policy to use.",properties:{use:{type:"string",minLength:1,title:"ReferenceableAuthenticationPolicyName",description:"The name of the authentication policy to use."}},required:["use"]},{$ref:"#/$defs/authenticationPolicy"}]},secretBasedAuthenticationPolicy:{type:"object",title:"SecretBasedAuthenticationPolicy",description:"Represents an authentication policy based on secrets.",unevaluatedProperties:!1,properties:{use:{type:"string",minLength:1,title:"SecretBasedAuthenticationPolicyName",description:"The name of the authentication policy to use."}},required:["use"]},authenticationPolicy:{type:"object",title:"AuthenticationPolicy",description:"Defines an authentication policy.",oneOf:[{title:"BasicAuthenticationPolicy",description:"Use basic authentication.",properties:{basic:{type:"object",title:"BasicAuthenticationPolicyConfiguration",description:"The configuration of the basic authentication policy.",unevaluatedProperties:!1,oneOf:[{title:"BasicAuthenticationProperties",description:"Inline configuration of the basic authentication policy.",properties:{username:{type:"string",description:"The username to use."},password:{type:"string",description:"The password to use."}},required:["username","password"]},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"BasicAuthenticationPolicySecret",description:"Secret based configuration of the basic authentication policy."}]}},required:["basic"]},{title:"BearerAuthenticationPolicy",description:"Use bearer authentication.",properties:{bearer:{type:"object",title:"BearerAuthenticationPolicyConfiguration",description:"The configuration of the bearer authentication policy.",unevaluatedProperties:!1,oneOf:[{title:"BearerAuthenticationProperties",description:"Inline configuration of the bearer authentication policy.",properties:{token:{type:"string",description:"The bearer token to use."}},required:["token"]},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"BearerAuthenticationPolicySecret",description:"Secret based configuration of the bearer authentication policy."}]}},required:["bearer"]},{title:"DigestAuthenticationPolicy",description:"Use digest authentication.",properties:{digest:{type:"object",title:"DigestAuthenticationPolicyConfiguration",description:"The configuration of the digest authentication policy.",unevaluatedProperties:!1,oneOf:[{title:"DigestAuthenticationProperties",description:"Inline configuration of the digest authentication policy.",properties:{username:{type:"string",description:"The username to use."},password:{type:"string",description:"The password to use."}},required:["username","password"]},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"DigestAuthenticationPolicySecret",description:"Secret based configuration of the digest authentication policy."}]}},required:["digest"]},{title:"OAuth2AuthenticationPolicy",description:"Use OAuth2 authentication.",properties:{oauth2:{type:"object",title:"OAuth2AuthenticationPolicyConfiguration",description:"The configuration of the OAuth2 authentication policy.",unevaluatedProperties:!1,oneOf:[{type:"object",title:"OAuth2ConnectAuthenticationProperties",description:"The inline configuration of the OAuth2 authentication policy.",unevaluatedProperties:!1,allOf:[{$ref:"#/$defs/oauth2AuthenticationProperties"},{type:"object",properties:{endpoints:{type:"object",title:"OAuth2AuthenticationPropertiesEndpoints",description:"The endpoint configurations for OAuth2.",properties:{token:{type:"string",format:"uri-template",default:"/oauth2/token",title:"OAuth2TokenEndpoint",description:"The relative path to the token endpoint. Defaults to `/oauth2/token`."},revocation:{type:"string",format:"uri-template",default:"/oauth2/revoke",title:"OAuth2RevocationEndpoint",description:"The relative path to the revocation endpoint. Defaults to `/oauth2/revoke`."},introspection:{type:"string",format:"uri-template",default:"/oauth2/introspect",title:"OAuth2IntrospectionEndpoint",description:"The relative path to the introspection endpoint. Defaults to `/oauth2/introspect`."}}}}}]},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"OAuth2AuthenticationPolicySecret",description:"Secret based configuration of the OAuth2 authentication policy."}]}},required:["oauth2"]},{title:"OpenIdConnectAuthenticationPolicy",description:"Use OpenIdConnect authentication.",properties:{oidc:{type:"object",title:"OpenIdConnectAuthenticationPolicyConfiguration",description:"The configuration of the OpenIdConnect authentication policy.",unevaluatedProperties:!1,oneOf:[{$ref:"#/$defs/oauth2AuthenticationProperties",title:"OpenIdConnectAuthenticationProperties",description:"The inline configuration of the OpenIdConnect authentication policy.",unevaluatedProperties:!1},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"OpenIdConnectAuthenticationPolicySecret",description:"Secret based configuration of the OpenIdConnect authentication policy."}]}},required:["oidc"]}]},oauth2AuthenticationProperties:{type:"object",title:"OAuth2AutenthicationData",description:"Inline configuration of the OAuth2 authentication policy.",properties:{authority:{$ref:"#/$defs/uriTemplate",title:"OAuth2AutenthicationDataAuthority",description:"The URI that references the OAuth2 authority to use."},grant:{type:"string",enum:["authorization_code","client_credentials","password","refresh_token","urn:ietf:params:oauth:grant-type:token-exchange"],title:"OAuth2AutenthicationDataGrant",description:"The grant type to use."},client:{type:"object",title:"OAuth2AutenthicationDataClient",description:"The definition of an OAuth2 client.",unevaluatedProperties:!1,properties:{id:{type:"string",title:"ClientId",description:"The client id to use."},secret:{type:"string",title:"ClientSecret",description:"The client secret to use, if any."},assertion:{type:"string",title:"ClientAssertion",description:"A JWT containing a signed assertion with your application credentials."},authentication:{type:"string",enum:["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],default:"client_secret_post",title:"ClientAuthentication",description:"The authentication method to use to authenticate the client."}}},request:{type:"object",title:"OAuth2TokenRequest",description:"The configuration of an OAuth2 token request",properties:{encoding:{type:"string",enum:["application/x-www-form-urlencoded","application/json"],default:"application/x-www-form-urlencoded",title:"Oauth2TokenRequestEncoding"}}},issuers:{type:"array",title:"OAuth2Issuers",description:"A list that contains that contains valid issuers that will be used to check against the issuer of generated tokens.",items:{type:"string"}},scopes:{type:"array",title:"OAuth2AutenthicationDataScopes",description:"The scopes, if any, to request the token for.",items:{type:"string"}},audiences:{type:"array",title:"OAuth2AutenthicationDataAudiences",description:"The audiences, if any, to request the token for.",items:{type:"string"}},username:{type:"string",title:"OAuth2AutenthicationDataUsername",description:"The username to use. Used only if the grant type is Password."},password:{type:"string",title:"OAuth2AutenthicationDataPassword",description:"The password to use. Used only if the grant type is Password."},subject:{$ref:"#/$defs/oauth2Token",title:"OAuth2AutenthicationDataSubject",description:"The security token that represents the identity of the party on behalf of whom the request is being made."},actor:{$ref:"#/$defs/oauth2Token",title:"OAuth2AutenthicationDataActor",description:"The security token that represents the identity of the acting party."}}},oauth2Token:{type:"object",title:"OAuth2TokenDefinition",description:"Represents an OAuth2 token.",unevaluatedProperties:!1,properties:{token:{type:"string",title:"OAuth2Token",description:"The security token to use."},type:{type:"string",title:"OAuth2TokenType",description:"The type of the security token to use."}},required:["token","type"]},duration:{oneOf:[{type:"object",minProperties:1,unevaluatedProperties:!1,properties:{days:{type:"integer",title:"DurationDays",description:"Number of days, if any."},hours:{type:"integer",title:"DurationHours",description:"Number of days, if any."},minutes:{type:"integer",title:"DurationMinutes",description:"Number of minutes, if any."},seconds:{type:"integer",title:"DurationSeconds",description:"Number of seconds, if any."},milliseconds:{type:"integer",title:"DurationMilliseconds",description:"Number of milliseconds, if any."}},title:"DurationInline",description:"The inline definition of a duration."},{type:"string",pattern:"^P(?!$)(\\d+(?:\\.\\d+)?Y)?(\\d+(?:\\.\\d+)?M)?(\\d+(?:\\.\\d+)?W)?(\\d+(?:\\.\\d+)?D)?(T(?=\\d)(\\d+(?:\\.\\d+)?H)?(\\d+(?:\\.\\d+)?M)?(\\d+(?:\\.\\d+)?S)?)?$",title:"DurationExpression",description:"The ISO 8601 expression of a duration."}]},error:{type:"object",title:"Error",description:"Represents an error.",unevaluatedProperties:!1,properties:{type:{title:"ErrorType",description:"A URI reference that identifies the error type.",oneOf:[{title:"LiteralErrorType",$ref:"#/$defs/uriTemplate",description:"The literal error type."},{title:"ExpressionErrorType",$ref:"#/$defs/runtimeExpression",description:"An expression based error type."}]},status:{type:"integer",title:"ErrorStatus",description:"The status code generated by the origin for this occurrence of the error."},instance:{title:"ErrorInstance",description:"A JSON Pointer used to reference the component the error originates from.",oneOf:[{title:"LiteralErrorInstance",description:"The literal error instance.",type:"string",format:"json-pointer"},{$ref:"#/$defs/runtimeExpression",title:"ExpressionErrorInstance",description:"An expression based error instance."}]},title:{type:"string",title:"ErrorTitle",description:"A short, human-readable summary of the error."},detail:{type:"string",title:"ErrorDetails",description:"A human-readable explanation specific to this occurrence of the error."}},required:["type","status"]},errorFilter:{type:"object",title:"ErrorFilter",description:"Error filtering base on static values. For error filtering on dynamic values, use catch.when property",minProperties:1,properties:{type:{type:"string",description:"if present, means this value should be used for filtering"},status:{type:"integer",description:"if present, means this value should be used for filtering"},instance:{type:"string",description:"if present, means this value should be used for filtering"},title:{type:"string",description:"if present, means this value should be used for filtering"},details:{type:"string",description:"if present, means this value should be used for filtering"}}},uriTemplate:{title:"UriTemplate",anyOf:[{title:"LiteralUriTemplate",type:"string",format:"uri-template",pattern:"^[A-Za-z][A-Za-z0-9+\\-.]*://.*"},{title:"LiteralUri",type:"string",format:"uri",pattern:"^[A-Za-z][A-Za-z0-9+\\-.]*://.*"}]},endpoint:{title:"Endpoint",description:"Represents an endpoint.",oneOf:[{$ref:"#/$defs/runtimeExpression"},{$ref:"#/$defs/uriTemplate"},{title:"EndpointConfiguration",type:"object",unevaluatedProperties:!1,properties:{uri:{title:"EndpointUri",description:"The endpoint's URI.",oneOf:[{title:"LiteralEndpointURI",description:"The literal endpoint's URI.",$ref:"#/$defs/uriTemplate"},{title:"ExpressionEndpointURI",$ref:"#/$defs/runtimeExpression",description:"An expression based endpoint's URI."}]},authentication:{$ref:"#/$defs/referenceableAuthenticationPolicy",title:"EndpointAuthentication",description:"The authentication policy to use."}},required:["uri"]}]},eventProperties:{type:"object",title:"EventProperties",description:"Describes the properties of an event.",properties:{id:{type:"string",title:"EventId",description:"The event's unique identifier."},source:{title:"EventSource",description:"Identifies the context in which an event happened.",oneOf:[{$ref:"#/$defs/uriTemplate"},{$ref:"#/$defs/runtimeExpression"}]},type:{type:"string",title:"EventType",description:"This attribute contains a value describing the type of event related to the originating occurrence."},time:{title:"EventTime",description:"When the event occured.",oneOf:[{title:"LiteralTime",type:"string",format:"date-time"},{$ref:"#/$defs/runtimeExpression"}]},subject:{type:"string",title:"EventSubject",description:"The subject of the event."},datacontenttype:{type:"string",title:"EventDataContentType",description:"Content type of data value. This attribute enables data to carry any type of content, whereby format and encoding might differ from that of the chosen event format."},dataschema:{title:"EventDataschema",description:"The schema describing the event format.",oneOf:[{title:"LiteralDataSchema",$ref:"#/$defs/uriTemplate",description:"The literal event data schema."},{title:"ExpressionDataSchema",$ref:"#/$defs/runtimeExpression",description:"An expression based event data schema."}]},data:{title:"EventData",description:"The event's payload data",anyOf:[{$ref:"#/$defs/runtimeExpression"},{}]}},additionalProperties:!0},eventConsumptionStrategy:{type:"object",title:"EventConsumptionStrategy",description:"Describe the event consumption strategy to adopt.",unevaluatedProperties:!1,oneOf:[{title:"AllEventConsumptionStrategy",properties:{all:{type:"array",title:"AllEventConsumptionStrategyConfiguration",description:"A list containing all the events that must be consumed.",items:{$ref:"#/$defs/eventFilter"}}},required:["all"]},{title:"AnyEventConsumptionStrategy",properties:{any:{type:"array",title:"AnyEventConsumptionStrategyConfiguration",description:"A list containing any of the events to consume.",items:{$ref:"#/$defs/eventFilter"}},until:{oneOf:[{type:"string",title:"AnyEventUntilCondition",description:"A runtime expression condition evaluated after consuming an event and which determines whether or not to continue listening."},{allOf:[{$ref:"#/$defs/eventConsumptionStrategy",description:"The strategy that defines the event(s) to consume to stop listening."},{properties:{until:!1}}],title:"AnyEventUntilConsumed"}]}},required:["any"]},{title:"OneEventConsumptionStrategy",properties:{one:{$ref:"#/$defs/eventFilter",title:"OneEventConsumptionStrategyConfiguration",description:"The single event to consume."}},required:["one"]}]},eventFilter:{type:"object",title:"EventFilter",description:"An event filter is a mechanism used to selectively process or handle events based on predefined criteria, such as event type, source, or specific attributes.",unevaluatedProperties:!1,properties:{with:{$ref:"#/$defs/eventProperties",minProperties:1,title:"WithEvent",description:"An event filter is a mechanism used to selectively process or handle events based on predefined criteria, such as event type, source, or specific attributes."},correlate:{type:"object",title:"EventFilterCorrelate",description:"A correlation is a link between events and data, established by mapping event attributes to specific data attributes, allowing for coordinated processing or handling based on event characteristics.",additionalProperties:{type:"object",properties:{from:{type:"string",title:"CorrelateFrom",description:"A runtime expression used to extract the correlation value from the filtered event."},expect:{type:"string",title:"CorrelateExpect",description:"A constant or a runtime expression, if any, used to determine whether or not the extracted correlation value matches expectations. If not set, the first extracted value will be used as the correlation's expectation."}},required:["from"]}}},required:["with"]},extension:{type:"object",title:"Extension",description:"The definition of an extension.",unevaluatedProperties:!1,properties:{extend:{type:"string",enum:["call","composite","emit","for","listen","raise","run","set","switch","try","wait","all"],title:"ExtensionTarget",description:"The type of task to extend."},when:{type:"string",title:"ExtensionCondition",description:"A runtime expression, if any, used to determine whether or not the extension should apply in the specified context."},before:{$ref:"#/$defs/taskList",title:"ExtensionDoBefore",description:"The task(s) to execute before the extended task, if any."},after:{$ref:"#/$defs/taskList",title:"ExtensionDoAfter",description:"The task(s) to execute after the extended task, if any."}},required:["extend"]},externalResource:{type:"object",title:"ExternalResource",description:"Represents an external resource.",unevaluatedProperties:!1,properties:{name:{type:"string",title:"ExternalResourceName",description:"The name of the external resource, if any."},endpoint:{$ref:"#/$defs/endpoint",title:"ExternalResourceEndpoint",description:"The endpoint of the external resource."}},required:["endpoint"]},input:{type:"object",title:"Input",description:"Configures the input of a workflow or task.",unevaluatedProperties:!1,properties:{schema:{$ref:"#/$defs/schema",title:"InputSchema",description:"The schema used to describe and validate the input of the workflow or task."},from:{title:"InputFrom",description:"A runtime expression, if any, used to mutate and/or filter the input of the workflow or task.",oneOf:[{type:"string"},{type:"object"}]}}},output:{type:"object",title:"Output",description:"Configures the output of a workflow or task.",unevaluatedProperties:!1,properties:{schema:{$ref:"#/$defs/schema",title:"OutputSchema",description:"The schema used to describe and validate the output of the workflow or task."},as:{title:"OutputAs",description:"A runtime expression, if any, used to mutate and/or filter the output of the workflow or task.",oneOf:[{type:"string"},{type:"object"}]}}},export:{type:"object",title:"Export",description:"Set the content of the context. .",unevaluatedProperties:!1,properties:{schema:{$ref:"#/$defs/schema",title:"ExportSchema",description:"The schema used to describe and validate the workflow context."},as:{title:"ExportAs",description:"A runtime expression, if any, used to export the output data to the context.",oneOf:[{type:"string"},{type:"object"}]}}},retryPolicy:{type:"object",title:"RetryPolicy",description:"Defines a retry policy.",unevaluatedProperties:!1,properties:{when:{type:"string",title:"RetryWhen",description:"A runtime expression, if any, used to determine whether or not to retry running the task, in a given context."},exceptWhen:{type:"string",title:"RetryExcepWhen",description:"A runtime expression used to determine whether or not to retry running the task, in a given context."},delay:{$ref:"#/$defs/duration",title:"RetryDelay",description:"The duration to wait between retry attempts."},backoff:{type:"object",title:"RetryBackoff",description:"The retry duration backoff.",unevaluatedProperties:!1,oneOf:[{title:"ConstantBackoff",properties:{constant:{type:"object",description:"The definition of the constant backoff to use, if any."}},required:["constant"]},{title:"ExponentialBackOff",properties:{exponential:{type:"object",description:"The definition of the exponential backoff to use, if any."}},required:["exponential"]},{title:"LinearBackoff",properties:{linear:{type:"object",description:"The definition of the linear backoff to use, if any."}},required:["linear"]}]},limit:{type:"object",title:"RetryLimit",unevaluatedProperties:!1,properties:{attempt:{type:"object",title:"RetryLimitAttempt",unevaluatedProperties:!1,properties:{count:{type:"integer",title:"RetryLimitAttemptCount",description:"The maximum amount of retry attempts, if any."},duration:{$ref:"#/$defs/duration",title:"RetryLimitAttemptDuration",description:"The maximum duration for each retry attempt."}}},duration:{$ref:"#/$defs/duration",title:"RetryLimitDuration",description:"The duration limit, if any, for all retry attempts."}},description:"The retry limit, if any."},jitter:{type:"object",title:"RetryPolicyJitter",description:"The parameters, if any, that control the randomness or variability of the delay between retry attempts.",unevaluatedProperties:!1,properties:{from:{$ref:"#/$defs/duration",title:"RetryPolicyJitterFrom",description:"The minimum duration of the jitter range."},to:{$ref:"#/$defs/duration",title:"RetryPolicyJitterTo",description:"The maximum duration of the jitter range."}},required:["from","to"]}}},schema:{type:"object",title:"Schema",description:"Represents the definition of a schema.",unevaluatedProperties:!1,properties:{format:{type:"string",default:"json",title:"SchemaFormat",description:"The schema's format. Defaults to 'json'. The (optional) version of the format can be set using `{format}:{version}`."}},oneOf:[{title:"SchemaInline",properties:{document:{description:"The schema's inline definition."}},required:["document"]},{title:"SchemaExternal",properties:{resource:{$ref:"#/$defs/externalResource",title:"SchemaExternalResource",description:"The schema's external resource."}},required:["resource"]}]},timeout:{type:"object",title:"Timeout",description:"The definition of a timeout.",unevaluatedProperties:!1,properties:{after:{$ref:"#/$defs/duration",title:"TimeoutAfter",description:"The duration after which to timeout."}},required:["after"]},catalog:{type:"object",title:"Catalog",description:"The definition of a resource catalog.",unevaluatedProperties:!1,properties:{endpoint:{$ref:"#/$defs/endpoint",title:"CatalogEndpoint",description:"The root URL where the catalog is hosted."}},required:["endpoint"]},runtimeExpression:{type:"string",title:"RuntimeExpression",description:"A runtime expression.",pattern:"^\\s*\\$\\{.+\\}\\s*$"},containerLifetime:{type:"object",title:"ContainerLifetime",description:"The configuration of a container's lifetime",unevaluatedProperties:!1,properties:{cleanup:{type:"string",title:"ContainerCleanupPolicy",description:"The container cleanup policy to use",enum:["always","never","eventually"],default:"never"},after:{$ref:"#/$defs/duration",title:"ContainerLifetimeDuration",description:"The duration after which to cleanup the container, in case the cleanup policy has been set to 'eventually'"}},required:["cleanup"],if:{properties:{cleanup:{const:"eventually"}}},then:{required:["after"]},else:{not:{required:["after"]}}},processResult:{type:"object",title:"ProcessResult",description:"The object returned by a run task when its return type has been set 'all'.",unevaluatedProperties:!1,properties:{code:{type:"integer",title:"ProcessExitCode",description:"The process's exit code."},stdout:{type:"string",title:"ProcessStandardOutput",description:"The content of the process's STDOUT."},stderr:{type:"string",title:"ProcessStandardError",description:"The content of the process's STDERR."}},required:["code","stdout","stderr"]},asyncApiServer:{type:"object",title:"AsyncApiServer",description:"Configures the target server of an AsyncAPI operation.",unevaluatedProperties:!1,properties:{name:{type:"string",title:"AsyncApiServerName",description:"The target server's name."},variables:{type:"object",title:"AsyncApiServerVariables",description:"The target server's variables, if any."}},required:["name"]},asyncApiOutboundMessage:{type:"object",title:"AsyncApiOutboundMessage",description:"An object used to configure the message to publish using the target operation.",unevaluatedProperties:!1,properties:{payload:{type:"object",title:"AsyncApiMessagePayload",description:"The message's payload, if any.",additionalProperties:!0},headers:{type:"object",title:"AsyncApiMessageHeaders",description:"The message's headers, if any.",additionalProperties:!0}}},asyncApiInboundMessage:{type:"object",title:"AsyncApiInboundMessage",description:"Represents a message counsumed by an AsyncAPI subscription.",allOf:[{$ref:"#/$defs/asyncApiOutboundMessage"}],properties:{correlationId:{type:"string",title:"AsyncApiMessageCorrelationId",description:"The message's correlation id, if any."}}},asyncApiSubscription:{type:"object",title:"AsyncApiSubscription",description:"An object used to configure the subscription to messages consumed using the target operation.",unevaluatedProperties:!1,properties:{filter:{$ref:"#/$defs/runtimeExpression",title:"AsyncApiSubscriptionCorrelation",description:"A runtime expression, if any, used to filter consumed messages."},consume:{$ref:"#/$defs/asyncApiMessageConsumptionPolicy",title:"AsyncApiMessageConsumptionPolicy",description:"An object used to configure the subscription's message consumption policy."},foreach:{$ref:"#/$defs/subscriptionIterator",title:"AsyncApiSubscriptionIterator",description:"Configures the iterator, if any, for processing consumed messages(s)."}},required:["consume"]},asyncApiMessageConsumptionPolicy:{type:"object",title:"AsyncApiMessageConsumptionPolicy",description:"An object used to configure a subscription's message consumption policy.",unevaluatedProperties:!1,properties:{for:{$ref:"#/$defs/duration",title:"AsyncApiMessageConsumptionPolicyFor",description:"Specifies the time period over which messages will be consumed."}},oneOf:[{properties:{amount:{type:"integer",description:"The amount of (filtered) messages to consume before disposing of the subscription."}},title:"AsyncApiMessageConsumptionPolicyAmount",required:["amount"]},{properties:{while:{$ref:"#/$defs/runtimeExpression",description:"A runtime expression evaluated after each consumed (filtered) message to decide if message consumption should continue."}},title:"AsyncApiMessageConsumptionPolicyWhile",required:["while"]},{properties:{until:{$ref:"#/$defs/runtimeExpression",description:"A runtime expression evaluated before each consumed (filtered) message to decide if message consumption should continue."}},title:"AsyncApiMessageConsumptionPolicyUntil",required:["until"]}]},subscriptionIterator:{type:"object",title:"SubscriptionIterator",description:"Configures the iteration over each item (event or message) consumed by a subscription.",unevaluatedProperties:!1,properties:{item:{type:"string",title:"SubscriptionIteratorItem",description:"The name of the variable used to store the current item being enumerated.",default:"item"},at:{type:"string",title:"SubscriptionIteratorIndex",description:"The name of the variable used to store the index of the current item being enumerated.",default:"index"},do:{$ref:"#/$defs/taskList",title:"SubscriptionIteratorTasks",description:"The tasks to perform for each consumed item."},output:{$ref:"#/$defs/output",title:"SubscriptionIteratorOutput",description:"An object, if any, used to customize the item's output and to document its schema."},export:{$ref:"#/$defs/export",title:"SubscriptionIteratorExport",description:"An object, if any, used to customize the content of the workflow context."}}}}}],strict:!1});Va(Wa);var Ga=new Map(Object.entries({Workflow:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#",AllEventConsumptionStrategy:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventConsumptionStrategy/oneOf/0",AllEventConsumptionStrategyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventConsumptionStrategy/oneOf/0/properties/all",AnyEventConsumptionStrategy:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventConsumptionStrategy/oneOf/1",AnyEventConsumptionStrategyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventConsumptionStrategy/oneOf/1/properties/any",AnyEventConsumptionStrategyUntil:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventConsumptionStrategy/oneOf/1/properties/until",AnyEventUntilConsumed:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventConsumptionStrategy/oneOf/1/properties/until/oneOf/1",AsyncApiArguments:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/0/properties/with",AuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy",AuthenticationPolicyReference:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/referenceableAuthenticationPolicy/oneOf/0",BasicAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/0",BasicAuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/0/properties/basic",BasicAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/0/properties/basic/oneOf/0",BearerAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/1",BearerAuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/1/properties/bearer",BearerAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/1/properties/bearer/oneOf/0",CallAsyncAPI:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/0",CallFunction:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/4",CallGRPC:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/1",CallHTTP:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/2",CallOpenAPI:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/3",CallTask:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask",Catalog:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/catalog",CatchErrors:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/tryTask/properties/catch/properties/errors",ConstantBackoff:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/retryPolicy/properties/backoff/oneOf/0",Container:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/0/properties/container",ContainerEnvironment:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/0/properties/container/properties/environment",ContainerLifetime:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/0/properties/container/properties/lifetime",ContainerPorts:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/0/properties/container/properties/ports",ContainerVolumes:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/0/properties/container/properties/volumes",DigestAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/2",DigestAuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/2/properties/digest",DigestAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/2/properties/digest/oneOf/0",Document:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/document",DoTask:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/doTask",Duration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/duration",DurationInline:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/duration/oneOf/0",EmitEventDefinition:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/emitTask/properties/emit/properties/event",EmitEventWith:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/emitTask/properties/emit/properties/event/properties/with",EmitTask:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/emitTask",EmitTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/emitTask/properties/emit",Endpoint:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/endpoint",EndpointConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/endpoint/oneOf/2",EndpointUri:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/endpoint/oneOf/2/properties/uri",Error:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/error",ErrorFilter:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/errorFilter",ErrorInstance:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/error/properties/instance",ErrorType:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/error/properties/type",EventConsumptionStrategy:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventConsumptionStrategy",EventData:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventProperties/properties/data",EventDataschema:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventProperties/properties/dataschema",EventFilter:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventFilter",EventFilterCorrelate:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventFilter/properties/correlate",EventSource:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventProperties/properties/source",EventTime:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventProperties/properties/time",ExponentialBackOff:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/retryPolicy/properties/backoff/oneOf/1",Export:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/export",ExportAs:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/export/properties/as",Extension:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/extension",ExtensionItem:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/use/properties/extensions/items",ExternalResource:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/externalResource",ExternalScript:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/1/properties/script/oneOf/1",FlowDirective:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/flowDirective",ForkTask:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/forkTask",ForkTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/forkTask/properties/fork",ForTask:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/forTask",ForTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/forTask/properties/for",FunctionArguments:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/4/properties/with",GRPCArguments:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/1/properties/with",HTTPArguments:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/2/properties/with",HTTPBody:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/2/properties/with/properties/body",HTTPHeaders:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/2/properties/with/properties/headers",HTTPQuery:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/2/properties/with/properties/query",InlineScript:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/1/properties/script/oneOf/0",Input:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/input",InputFrom:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/input/properties/from",LinearBackoff:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/retryPolicy/properties/backoff/oneOf/2",ListenTask:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/listenTask",ListenTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/listenTask/properties/listen",OAuth2AutenthicationData:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/oauth2AuthenticationProperties",OAuth2AutenthicationDataAudiences:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/oauth2AuthenticationProperties/properties/audiences",OAuth2AutenthicationDataClient:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/oauth2AuthenticationProperties/properties/client",OAuth2AutenthicationDataScopes:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/oauth2AuthenticationProperties/properties/scopes",OAuth2AuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/3",OAuth2AuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/3/properties/oauth2",OAuth2AuthenticationPropertiesEndpoints:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/3/properties/oauth2/oneOf/0/allOf/1/properties/endpoints",OAuth2ConnectAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/3/properties/oauth2/oneOf/0",OAuth2Issuers:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/oauth2AuthenticationProperties/properties/issuers",OAuth2TokenDefinition:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/oauth2Token",OAuth2TokenRequest:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/oauth2AuthenticationProperties/properties/request",OneEventConsumptionStrategy:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventConsumptionStrategy/oneOf/2",OpenAPIArguments:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/3/properties/with",OpenIdConnectAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/4",OpenIdConnectAuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/4/properties/oidc",OpenIdConnectAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/authenticationPolicy/oneOf/4/properties/oidc/oneOf/0",Output:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/output",OutputAs:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/output/properties/as",RaiseTask:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/raiseTask",RaiseTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/raiseTask/properties/raise",RaiseTaskError:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/raiseTask/properties/raise/properties/error",ReferenceableAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/referenceableAuthenticationPolicy",RetryBackoff:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/retryPolicy/properties/backoff",RetryLimit:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/retryPolicy/properties/limit",RetryLimitAttempt:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/retryPolicy/properties/limit/properties/attempt",RetryPolicy:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/retryPolicy",RetryPolicyJitter:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/retryPolicy/properties/jitter",RunContainer:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/0",RunScript:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/1",RunShell:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/2",RunTask:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask",RunTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run",RuntimeExpression:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runtimeExpression",RunWorkflow:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/3",Schedule:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/schedule",Schema:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/schema",SchemaExternal:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/schema/oneOf/1",SchemaInline:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/schema/oneOf/0",Script:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/1/properties/script",SecretBasedAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/secretBasedAuthenticationPolicy",SetTask:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/setTask",SetTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/setTask/properties/set",Shell:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/2/properties/shell",ShellArguments:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/2/properties/shell/properties/arguments",ShellEnvironment:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/2/properties/shell/properties/environment",SubflowConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/3/properties/workflow",SubflowInput:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/runTask/properties/run/oneOf/3/properties/workflow/properties/input",SubscriptionIterator:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/subscriptionIterator",SwitchCase:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/switchTask/properties/switch/items/additionalProperties",SwitchItem:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/switchTask/properties/switch/items",SwitchTask:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/switchTask",SwitchTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/switchTask/properties/switch",Task:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/task",TaskBase:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/taskBase",TaskBaseIf:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/taskBase/properties/if",TaskItem:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/taskList/items",TaskList:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/taskList",TaskMetadata:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/taskBase/properties/metadata",TaskTimeout:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/taskBase/properties/timeout",Timeout:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/timeout",TryTask:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/tryTask",TryTaskCatch:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/tryTask/properties/catch",TryTaskCatchRetry:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/tryTask/properties/catch/properties/retry",UriTemplate:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/uriTemplate",Use:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/use",UseAuthentications:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/use/properties/authentications",UseCatalogs:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/use/properties/catalogs",UseErrors:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/use/properties/errors",UseExtensions:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/use/properties/extensions",UseFunctions:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/use/properties/functions",UseRetries:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/use/properties/retries",UseSecrets:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/use/properties/secrets",UseTimeouts:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/use/properties/timeouts",WaitTask:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/waitTask",WithEvent:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/eventFilter/properties/with",WithGRPCArguments:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/1/properties/with/properties/arguments",WithGRPCService:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/1/properties/with/properties/service",WithOpenAPIParameters:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/$defs/callTask/oneOf/3/properties/with/properties/parameters",WorkflowMetadata:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/document/properties/metadata",WorkflowTags:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/document/properties/tags",WorkflowTimeout:"https://serverlessworkflow.io/schemas/1.0.0/workflow.json#/properties/timeout"}).map((function(e){var t=e[0],n=e[1];if(!n)throw"No JSON pointer provided for type '".concat(t,"'");var o=Wa.getSchema(n);if(!o)throw"Unable to find schema '".concat(n,"' for type '").concat(t,"'");return[t,o]}))),Ha=e("validate",(function(e,t,n){var o,r,i,a,s,l;null===(r=null===(o=m(e))||void 0===o?void 0:o.preValidation)||void 0===r||r.call(o,t,n);var u=Ga.get(e);if(!u)throw Error("Unable to find a validation function for '".concat(e,"'"));if(!u(c(t)))throw new Error("'".concat(e,"' is invalid:\n").concat(null!==(a=null===(i=u.errors)||void 0===i?void 0:i.reduce((function(e,t){return e+"- ".concat(t.instancePath," | ").concat(t.schemaPath," | ").concat(t.message," | ").concat(JSON.stringify(t.params),"\n")}),""))&&void 0!==a?a:"","\n\ndata: ").concat(JSON.stringify(t,null,4)));null===(l=null===(s=m(e))||void 0===s?void 0:s.postValidation)||void 0===l||l.call(s,t,n)})),Ka=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("WithEvent"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithEvent",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WithEvent"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ja=Ka,Za=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("EventFilterCorrelate"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventFilterCorrelate",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EventFilterCorrelate"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ya=Za,Qa=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.with&&(i.with=new Ja(t.with)),"object"==typeof t.correlate&&(i.correlate=new Ya(t.correlate))),null===(o=null===(n=m("EventFilter"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventFilter",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EventFilter"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Xa=Qa,es=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(new Xa(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("AllEventConsumptionStrategyConfiguration"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AllEventConsumptionStrategyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AllEventConsumptionStrategyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),ts=es,ns=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.all&&(i.all=new ts(t.all)),null===(o=null===(n=m("AllEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AllEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AllEventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),os=ns,rs=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(new Xa(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("AnyEventConsumptionStrategyConfiguration"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AnyEventConsumptionStrategyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AnyEventConsumptionStrategyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),is=rs,as=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.all&&(i.all=new ts(t.all)),"object"==typeof t.any&&(i.any=new is(t.any)),"object"==typeof t.one&&(i.one=new Xa(t.one))),null===(o=null===(n=m("AnyEventConsumptionStrategyUntil"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AnyEventConsumptionStrategyUntil",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AnyEventConsumptionStrategyUntil"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ss=as,ls=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.any&&(i.any=new is(t.any)),"object"==typeof t.until&&(i.until=new ss(t.until))),null===(o=null===(n=m("AnyEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AnyEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AnyEventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),cs=ls,us=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.all&&(i.all=new ts(t.all)),"object"==typeof t.any&&(i.any=new is(t.any)),"object"==typeof t.one&&(i.one=new Xa(t.one))),null===(o=null===(n=m("AnyEventUntilConsumed"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AnyEventUntilConsumed",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AnyEventUntilConsumed"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ds=us,ps=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("AsyncApiArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AsyncApiArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AsyncApiArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),fs=ps,hs=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("BasicAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BasicAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("BasicAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ms=hs,vs=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("BearerAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BearerAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("BearerAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ys=vs,ws=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("DigestAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DigestAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("DigestAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),gs=ws,bs=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("OAuth2AutenthicationDataClient"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AutenthicationDataClient",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2AutenthicationDataClient"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ks=bs,$s=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("OAuth2TokenRequest"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2TokenRequest",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2TokenRequest"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),js=$s,As=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("OAuth2TokenDefinition"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2TokenDefinition",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2TokenDefinition"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ts=As,Ps=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("OAuth2AuthenticationPropertiesEndpoints"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AuthenticationPropertiesEndpoints",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2AuthenticationPropertiesEndpoints"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Es=Ps,Cs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.client&&(i.client=new ks(t.client)),"object"==typeof t.request&&(i.request=new js(t.request)),"object"==typeof t.subject&&(i.subject=new Ts(t.subject)),"object"==typeof t.actor&&(i.actor=new Ts(t.actor)),"object"==typeof t.endpoints&&(i.endpoints=new Es(t.endpoints))),null===(o=null===(n=m("OAuth2AuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2AuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),zs=Cs,Ss=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.client&&(i.client=new ks(t.client)),"object"==typeof t.request&&(i.request=new js(t.request)),"object"==typeof t.subject&&(i.subject=new Ts(t.subject)),"object"==typeof t.actor&&(i.actor=new Ts(t.actor))),null===(o=null===(n=m("OpenIdConnectAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OpenIdConnectAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OpenIdConnectAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),_s=Ss,Os=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.basic&&(i.basic=new ms(t.basic)),"object"==typeof t.bearer&&(i.bearer=new ys(t.bearer)),"object"==typeof t.digest&&(i.digest=new gs(t.digest)),"object"==typeof t.oauth2&&(i.oauth2=new zs(t.oauth2)),"object"==typeof t.oidc&&(i.oidc=new _s(t.oidc))),null===(o=null===(n=m("AuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),xs=Os,Is=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("AuthenticationPolicyReference"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AuthenticationPolicyReference",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("AuthenticationPolicyReference"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Rs=Is,Ns=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.basic&&(i.basic=new ms(t.basic)),null===(o=null===(n=m("BasicAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BasicAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("BasicAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ds=Ns,Bs=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("BasicAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BasicAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("BasicAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ms=Bs,qs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.bearer&&(i.bearer=new ys(t.bearer)),null===(o=null===(n=m("BearerAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BearerAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("BearerAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Fs=qs,Us=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("BearerAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BearerAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("BearerAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ls=Us,Vs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.basic&&(i.basic=new ms(t.basic)),"object"==typeof t.bearer&&(i.bearer=new ys(t.bearer)),"object"==typeof t.digest&&(i.digest=new gs(t.digest)),"object"==typeof t.oauth2&&(i.oauth2=new zs(t.oauth2)),"object"==typeof t.oidc&&(i.oidc=new _s(t.oidc))),null===(o=null===(n=m("ReferenceableAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ReferenceableAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ReferenceableAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ws=Vs,Gs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.authentication&&(i.authentication=new Ws(t.authentication)),null===(o=null===(n=m("Endpoint"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Endpoint",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Endpoint"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Hs=Gs,Ks=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.endpoint&&(i.endpoint=new Hs(t.endpoint)),null===(o=null===(n=m("ExternalResource"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExternalResource",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ExternalResource"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Js=Ks,Zs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.resource&&(i.resource=new Js(t.resource)),null===(o=null===(n=m("Schema"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Schema",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Schema"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ys=Zs,Qs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.schema&&(i.schema=new Ys(t.schema)),null===(o=null===(n=m("Input"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Input",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Input"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Xs=Qs,el=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.schema&&(i.schema=new Ys(t.schema)),null===(o=null===(n=m("Output"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Output",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Output"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),tl=el,nl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.schema&&(i.schema=new Ys(t.schema)),null===(o=null===(n=m("Export"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Export",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Export"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ol=nl,rl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("Duration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Duration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Duration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),il=rl,al=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.after&&(i.after=new il(t.after)),null===(o=null===(n=m("TaskTimeout"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskTimeout",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TaskTimeout"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),sl=al,ll=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("TaskMetadata"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskMetadata",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TaskMetadata"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),cl=ll,ul=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata))),null===(o=null===(n=m("TaskBase"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskBase",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TaskBase"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),dl=ul,pl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&(i.call="asyncapi","object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata))),null===(o=null===(n=m("CallAsyncAPI"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallAsyncAPI",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("CallAsyncAPI"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),fl=pl,hl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("FunctionArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("FunctionArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("FunctionArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ml=hl,vl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.with&&(i.with=new ml(t.with))),null===(o=null===(n=m("CallFunction"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallFunction",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("CallFunction"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),yl=vl,wl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.authentication&&(i.authentication=new Ws(t.authentication)),null===(o=null===(n=m("WithGRPCService"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithGRPCService",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WithGRPCService"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),gl=wl,bl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("WithGRPCArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithGRPCArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WithGRPCArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),kl=bl,$l=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.proto&&(i.proto=new Js(t.proto)),"object"==typeof t.service&&(i.service=new gl(t.service)),"object"==typeof t.arguments&&(i.arguments=new kl(t.arguments))),null===(o=null===(n=m("GRPCArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("GRPCArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("GRPCArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),jl=$l,Al=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&(i.call="grpc","object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.with&&(i.with=new jl(t.with))),null===(o=null===(n=m("CallGRPC"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallGRPC",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("CallGRPC"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),Tl=Al,Pl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("HTTPHeaders"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("HTTPHeaders",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("HTTPHeaders"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),El=Pl,Cl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("HTTPBody"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("HTTPBody",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("HTTPBody"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),zl=Cl,Sl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("HTTPQuery"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("HTTPQuery",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("HTTPQuery"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),_l=Sl,Ol=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.endpoint&&(i.endpoint=new Hs(t.endpoint)),"object"==typeof t.headers&&(i.headers=new El(t.headers)),"object"==typeof t.body&&(i.body=new zl(t.body)),"object"==typeof t.query&&(i.query=new _l(t.query))),null===(o=null===(n=m("HTTPArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("HTTPArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("HTTPArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),xl=Ol,Il=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&(i.call="http","object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.with&&(i.with=new xl(t.with))),null===(o=null===(n=m("CallHTTP"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallHTTP",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("CallHTTP"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),Rl=Il,Nl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("WithOpenAPIParameters"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithOpenAPIParameters",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WithOpenAPIParameters"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Dl=Nl,Bl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.document&&(i.document=new Js(t.document)),"object"==typeof t.parameters&&(i.parameters=new Dl(t.parameters)),"object"==typeof t.authentication&&(i.authentication=new Ws(t.authentication))),null===(o=null===(n=m("OpenAPIArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OpenAPIArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OpenAPIArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ml=Bl,ql=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&(i.call="openapi","object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.with&&(i.with=new Ml(t.with))),null===(o=null===(n=m("CallOpenAPI"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallOpenAPI",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("CallOpenAPI"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),Fl=ql,Ul=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata))),null===(o=null===(n=m("CallTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("CallTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ll=Ul,Vl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.endpoint&&(i.endpoint=new Hs(t.endpoint)),null===(o=null===(n=m("Catalog"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Catalog",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Catalog"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Wl=Vl,Gl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ErrorFilter"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ErrorFilter",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ErrorFilter"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Hl=Gl,Kl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.with&&(i.with=new Hl(t.with)),null===(o=null===(n=m("CatchErrors"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CatchErrors",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("CatchErrors"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Jl=Kl,Zl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ConstantBackoff"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ConstantBackoff",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ConstantBackoff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Yl=Zl,Ql=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ContainerPorts"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ContainerPorts",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ContainerPorts"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Xl=Ql,ec=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ContainerVolumes"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ContainerVolumes",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ContainerVolumes"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),tc=ec,nc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ContainerEnvironment"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ContainerEnvironment",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ContainerEnvironment"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),oc=nc,rc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.after&&(i.after=new il(t.after)),null===(o=null===(n=m("ContainerLifetime"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ContainerLifetime",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ContainerLifetime"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ic=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.ports&&(i.ports=new Xl(t.ports)),"object"==typeof t.volumes&&(i.volumes=new tc(t.volumes)),"object"==typeof t.environment&&(i.environment=new oc(t.environment)),"object"==typeof t.lifetime&&(i.lifetime=new rc(t.lifetime))),null===(o=null===(n=m("Container"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Container",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Container"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ac=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.digest&&(i.digest=new gs(t.digest)),null===(o=null===(n=m("DigestAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DigestAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("DigestAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),sc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("DigestAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DigestAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("DigestAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),lc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("WorkflowTags"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WorkflowTags",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WorkflowTags"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),cc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("WorkflowMetadata"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WorkflowMetadata",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WorkflowMetadata"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),uc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.tags&&(i.tags=new lc(t.tags)),"object"==typeof t.metadata&&(i.metadata=new cc(t.metadata))),null===(o=null===(n=m("Document"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Document",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Document"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),dc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.branches&&(i.branches=new qc(t.branches)),null===(o=null===(n=m("ForkTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ForkTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ForkTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),pc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("EmitEventWith"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EmitEventWith",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EmitEventWith"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),fc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.with&&(i.with=new pc(t.with)),null===(o=null===(n=m("EmitEventDefinition"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EmitEventDefinition",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EmitEventDefinition"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),hc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.event&&(i.event=new fc(t.event)),null===(o=null===(n=m("EmitTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EmitTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EmitTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),mc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ForTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ForTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ForTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),vc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.all&&(i.all=new ts(t.all)),"object"==typeof t.any&&(i.any=new is(t.any)),"object"==typeof t.until&&(i.until=new ss(t.until)),"object"==typeof t.one&&(i.one=new Xa(t.one))),null===(o=null===(n=m("EventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),yc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.to&&(i.to=new vc(t.to)),null===(o=null===(n=m("ListenTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ListenTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ListenTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),wc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.do&&(i.do=new qc(t.do)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export))),null===(o=null===(n=m("SubscriptionIterator"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SubscriptionIterator",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SubscriptionIterator"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),gc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("RaiseTaskError"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RaiseTaskError",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RaiseTaskError"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),bc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.error&&(i.error=new gc(t.error)),null===(o=null===(n=m("RaiseTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RaiseTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RaiseTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),kc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.source&&(i.source=new Js(t.source)),null===(o=null===(n=m("Script"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Script",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Script"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),$c=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ShellArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ShellArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ShellArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),jc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ShellEnvironment"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ShellEnvironment",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ShellEnvironment"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ac=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.arguments&&(i.arguments=new $c(t.arguments)),"object"==typeof t.environment&&(i.environment=new jc(t.environment))),null===(o=null===(n=m("Shell"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Shell",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Shell"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Tc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("SubflowInput"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SubflowInput",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SubflowInput"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Pc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.input&&(i.input=new Tc(t.input)),null===(o=null===(n=m("SubflowConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SubflowConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SubflowConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ec=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.container&&(i.container=new ic(t.container)),"object"==typeof t.script&&(i.script=new kc(t.script)),"object"==typeof t.shell&&(i.shell=new Ac(t.shell)),"object"==typeof t.workflow&&(i.workflow=new Pc(t.workflow))),null===(o=null===(n=m("RunTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RunTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Cc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("SetTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SetTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SetTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),zc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("SwitchCase"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SwitchCase",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SwitchCase"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Sc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new zc(n)}))}return null===(o=null===(n=m("SwitchItem"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SwitchItem",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SwitchItem"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),_c=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(new Sc(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("SwitchTaskConfiguration"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SwitchTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SwitchTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),Oc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("RetryBackoff"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryBackoff",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RetryBackoff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),xc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.duration&&(i.duration=new il(t.duration)),null===(o=null===(n=m("RetryLimitAttempt"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryLimitAttempt",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RetryLimitAttempt"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ic=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.attempt&&(i.attempt=new xc(t.attempt)),"object"==typeof t.duration&&(i.duration=new il(t.duration))),null===(o=null===(n=m("RetryLimit"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryLimit",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RetryLimit"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Rc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.from&&(i.from=new il(t.from)),"object"==typeof t.to&&(i.to=new il(t.to))),null===(o=null===(n=m("RetryPolicyJitter"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryPolicyJitter",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RetryPolicyJitter"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Nc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.delay&&(i.delay=new il(t.delay)),"object"==typeof t.backoff&&(i.backoff=new Oc(t.backoff)),"object"==typeof t.limit&&(i.limit=new Ic(t.limit)),"object"==typeof t.jitter&&(i.jitter=new Rc(t.jitter))),null===(o=null===(n=m("TryTaskCatchRetry"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TryTaskCatchRetry",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TryTaskCatchRetry"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Dc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.errors&&(i.errors=new Jl(t.errors)),"object"==typeof t.retry&&(i.retry=new Nc(t.retry)),"object"==typeof t.do&&(i.do=new qc(t.do))),null===(o=null===(n=m("TryTaskCatch"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TryTaskCatch",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TryTaskCatch"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Bc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.fork&&(i.fork=new dc(t.fork)),"object"==typeof t.emit&&(i.emit=new hc(t.emit)),"object"==typeof t.for&&(i.for=new mc(t.for)),"object"==typeof t.listen&&(i.listen=new yc(t.listen)),"object"==typeof t.foreach&&(i.foreach=new wc(t.foreach)),"object"==typeof t.raise&&(i.raise=new bc(t.raise)),"object"==typeof t.run&&(i.run=new Ec(t.run)),"object"==typeof t.set&&(i.set=new Cc(t.set)),"object"==typeof t.switch&&(i.switch=new _c(t.switch)),"object"==typeof t.try&&(i.try=new qc(t.try)),"object"==typeof t.catch&&(i.catch=new Dc(t.catch)),"object"==typeof t.wait&&(i.wait=new il(t.wait))),null===(o=null===(n=m("Task"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Task",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Task"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Mc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new Bc(n)}))}return null===(o=null===(n=m("TaskItem"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskItem",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TaskItem"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),qc=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(new Mc(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("TaskList"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskList",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TaskList"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),Fc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.do&&(i.do=new qc(t.do))),null===(o=null===(n=m("DoTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DoTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("DoTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),Uc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("DurationInline"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DurationInline",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("DurationInline"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Lc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.emit&&(i.emit=new hc(t.emit))),null===(o=null===(n=m("EmitTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EmitTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EmitTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),Vc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.authentication&&(i.authentication=new Ws(t.authentication)),null===(o=null===(n=m("EndpointConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EndpointConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EndpointConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Wc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("EndpointUri"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EndpointUri",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EndpointUri"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Gc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("Error"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Error",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Error"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Hc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ErrorInstance"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ErrorInstance",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ErrorInstance"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Kc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ErrorType"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ErrorType",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ErrorType"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Jc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("EventData"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventData",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EventData"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Zc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("EventDataschema"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventDataschema",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EventDataschema"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Yc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("EventSource"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventSource",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EventSource"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Qc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("EventTime"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventTime",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("EventTime"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Xc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ExponentialBackOff"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExponentialBackOff",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ExponentialBackOff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),eu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("ExportAs"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExportAs",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ExportAs"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),tu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.before&&(i.before=new qc(t.before)),"object"==typeof t.after&&(i.after=new qc(t.after))),null===(o=null===(n=m("Extension"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Extension",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Extension"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),nu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new tu(n)}))}return null===(o=null===(n=m("ExtensionItem"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExtensionItem",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ExtensionItem"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ou=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.source&&(i.source=new Js(t.source)),null===(o=null===(n=m("ExternalScript"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExternalScript",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ExternalScript"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ru=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("FlowDirective"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("FlowDirective",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("FlowDirective"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),iu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.fork&&(i.fork=new dc(t.fork))),null===(o=null===(n=m("ForkTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ForkTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ForkTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),au=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.for&&(i.for=new mc(t.for)),"object"==typeof t.do&&(i.do=new qc(t.do))),null===(o=null===(n=m("ForTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ForTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ForTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),su=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("InlineScript"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("InlineScript",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("InlineScript"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),lu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("InputFrom"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("InputFrom",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("InputFrom"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),cu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("LinearBackoff"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("LinearBackoff",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("LinearBackoff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),uu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.listen&&(i.listen=new yc(t.listen)),"object"==typeof t.foreach&&(i.foreach=new wc(t.foreach))),null===(o=null===(n=m("ListenTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ListenTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("ListenTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),du=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.client&&(i.client=new ks(t.client)),"object"==typeof t.request&&(i.request=new js(t.request)),"object"==typeof t.subject&&(i.subject=new Ts(t.subject)),"object"==typeof t.actor&&(i.actor=new Ts(t.actor))),null===(o=null===(n=m("OAuth2AutenthicationData"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AutenthicationData",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2AutenthicationData"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),pu=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(e)}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("OAuth2AutenthicationDataAudiences"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AutenthicationDataAudiences",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2AutenthicationDataAudiences"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),fu=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(e)}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("OAuth2AutenthicationDataScopes"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AutenthicationDataScopes",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2AutenthicationDataScopes"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),hu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.oauth2&&(i.oauth2=new zs(t.oauth2)),null===(o=null===(n=m("OAuth2AuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2AuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),mu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.client&&(i.client=new ks(t.client)),"object"==typeof t.request&&(i.request=new js(t.request)),"object"==typeof t.subject&&(i.subject=new Ts(t.subject)),"object"==typeof t.actor&&(i.actor=new Ts(t.actor)),"object"==typeof t.endpoints&&(i.endpoints=new Es(t.endpoints))),null===(o=null===(n=m("OAuth2ConnectAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2ConnectAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2ConnectAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(du),vu=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(e)}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("OAuth2Issuers"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2Issuers",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OAuth2Issuers"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),yu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.one&&(i.one=new Xa(t.one)),null===(o=null===(n=m("OneEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OneEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OneEventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),wu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.oidc&&(i.oidc=new _s(t.oidc)),null===(o=null===(n=m("OpenIdConnectAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OpenIdConnectAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OpenIdConnectAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),gu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.client&&(i.client=new ks(t.client)),"object"==typeof t.request&&(i.request=new js(t.request)),"object"==typeof t.subject&&(i.subject=new Ts(t.subject)),"object"==typeof t.actor&&(i.actor=new Ts(t.actor))),null===(o=null===(n=m("OpenIdConnectAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OpenIdConnectAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OpenIdConnectAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),bu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("OutputAs"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OutputAs",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("OutputAs"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ku=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.raise&&(i.raise=new bc(t.raise))),null===(o=null===(n=m("RaiseTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RaiseTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RaiseTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),$u=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.delay&&(i.delay=new il(t.delay)),"object"==typeof t.backoff&&(i.backoff=new Oc(t.backoff)),"object"==typeof t.limit&&(i.limit=new Ic(t.limit)),"object"==typeof t.jitter&&(i.jitter=new Rc(t.jitter))),null===(o=null===(n=m("RetryPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RetryPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),ju=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.container&&(i.container=new ic(t.container)),null===(o=null===(n=m("RunContainer"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunContainer",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RunContainer"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Au=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.script&&(i.script=new kc(t.script)),null===(o=null===(n=m("RunScript"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunScript",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RunScript"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Tu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.shell&&(i.shell=new Ac(t.shell)),null===(o=null===(n=m("RunShell"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunShell",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RunShell"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Pu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.run&&(i.run=new Ec(t.run))),null===(o=null===(n=m("RunTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RunTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),Eu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("RuntimeExpression"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RuntimeExpression",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RuntimeExpression"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Cu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.workflow&&(i.workflow=new Pc(t.workflow)),null===(o=null===(n=m("RunWorkflow"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunWorkflow",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("RunWorkflow"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),zu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.every&&(i.every=new il(t.every)),"object"==typeof t.after&&(i.after=new il(t.after)),"object"==typeof t.on&&(i.on=new vc(t.on))),null===(o=null===(n=m("Schedule"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Schedule",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Schedule"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Su=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.resource&&(i.resource=new Js(t.resource)),null===(o=null===(n=m("SchemaExternal"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SchemaExternal",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SchemaExternal"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),_u=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("SchemaInline"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SchemaInline",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SchemaInline"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Ou=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("SecretBasedAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SecretBasedAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SecretBasedAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),xu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.set&&(i.set=new Cc(t.set))),null===(o=null===(n=m("SetTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SetTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SetTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),Iu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.switch&&(i.switch=new _c(t.switch))),null===(o=null===(n=m("SwitchTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SwitchTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("SwitchTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),Ru=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("TaskBaseIf"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskBaseIf",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TaskBaseIf"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Nu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.after&&(i.after=new il(t.after)),null===(o=null===(n=m("Timeout"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Timeout",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Timeout"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Du=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.try&&(i.try=new qc(t.try)),"object"==typeof t.catch&&(i.catch=new Dc(t.catch))),null===(o=null===(n=m("TryTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TryTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("TryTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),Bu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=m("UriTemplate"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UriTemplate",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UriTemplate"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Mu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new xs(n)}))}return null===(o=null===(n=m("UseAuthentications"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseAuthentications",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseAuthentications"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),qu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new Gc(n)}))}return null===(o=null===(n=m("UseErrors"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseErrors",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseErrors"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Fu=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(new nu(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("UseExtensions"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseExtensions",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseExtensions"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),Uu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new Bc(n)}))}return null===(o=null===(n=m("UseFunctions"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseFunctions",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseFunctions"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Lu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new $u(n)}))}return null===(o=null===(n=m("UseRetries"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseRetries",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseRetries"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Vu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new Nu(n)}))}return null===(o=null===(n=m("UseTimeouts"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseTimeouts",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseTimeouts"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Wu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new Wl(n)}))}return null===(o=null===(n=m("UseCatalogs"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseCatalogs",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseCatalogs"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Gu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.authentications&&(i.authentications=new Mu(t.authentications)),"object"==typeof t.errors&&(i.errors=new qu(t.errors)),"object"==typeof t.extensions&&(i.extensions=new Fu(t.extensions)),"object"==typeof t.functions&&(i.functions=new Uu(t.functions)),"object"==typeof t.retries&&(i.retries=new Lu(t.retries)),"object"==typeof t.timeouts&&(i.timeouts=new Vu(t.timeouts)),"object"==typeof t.catalogs&&(i.catalogs=new Wu(t.catalogs))),null===(o=null===(n=m("Use"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Use",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Use"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),Hu=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(e)}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=m("UseSecrets"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseSecrets",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("UseSecrets"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(d),Ku=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata)),"object"==typeof t.wait&&(i.wait=new il(t.wait))),null===(o=null===(n=m("WaitTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WaitTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WaitTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(dl),Ju=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&"object"==typeof t.after&&(i.after=new il(t.after)),null===(o=null===(n=m("WorkflowTimeout"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WorkflowTimeout",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("WorkflowTimeout"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u);
8
8
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
9
- function Fu(e){return null==e}var qu={isNothing:Fu,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:Fu(e)?[]:[e]},repeat:function(e,t){var n,o="";for(n=0;n<t;n+=1)o+=e;return o},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var n,o,r,i;if(t)for(n=0,o=(i=Object.keys(t)).length;n<o;n+=1)e[r=i[n]]=t[r];return e}};function Uu(e,t){var n="",o=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),o+" "+n):o}function Lu(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Uu(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}Lu.prototype=Object.create(Error.prototype),Lu.prototype.constructor=Lu,Lu.prototype.toString=function(e){return this.name+": "+Uu(this,e)};var Wu=Lu;function Vu(e,t,n,o,r){var i="",a="",s=Math.floor(r/2)-1;return o-t>s&&(t=o-s+(i=" ... ").length),n-o>s&&(n=o+s-(a=" ...").length),{str:i+e.slice(t,n).replace(/\t/g,"→")+a,pos:o-t+i.length}}function Gu(e,t){return qu.repeat(" ",t-e.length)+e}var Hu=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,o=/\r?\n|\r|\0/g,r=[0],i=[],a=-1;n=o.exec(e.buffer);)i.push(n.index),r.push(n.index+n[0].length),e.position<=n.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var s,l,c="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(s=1;s<=t.linesBefore&&!(a-s<0);s++)l=Vu(e.buffer,r[a-s],i[a-s],e.position-(r[a]-r[a-s]),d),c=qu.repeat(" ",t.indent)+Gu((e.line-s+1).toString(),u)+" | "+l.str+"\n"+c;for(l=Vu(e.buffer,r[a],i[a],e.position,d),c+=qu.repeat(" ",t.indent)+Gu((e.line+1).toString(),u)+" | "+l.str+"\n",c+=qu.repeat("-",t.indent+u+3+l.pos)+"^\n",s=1;s<=t.linesAfter&&!(a+s>=i.length);s++)l=Vu(e.buffer,r[a+s],i[a+s],e.position-(r[a]-r[a+s]),d),c+=qu.repeat(" ",t.indent)+Gu((e.line+s+1).toString(),u)+" | "+l.str+"\n";return c.replace(/\n$/,"")},Ku=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Ju=["scalar","sequence","mapping"];var Zu=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===Ku.indexOf(t))throw new Wu('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===Ju.indexOf(this.kind))throw new Wu('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function Yu(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,o){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=o)})),n[t]=e})),n}function Qu(e){return this.extend(e)}Qu.prototype.extend=function(e){var t=[],n=[];if(e instanceof Zu)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new Wu("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof Zu))throw new Wu("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new Wu("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new Wu("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof Zu))throw new Wu("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var o=Object.create(Qu.prototype);return o.implicit=(this.implicit||[]).concat(t),o.explicit=(this.explicit||[]).concat(n),o.compiledImplicit=Yu(o,"implicit"),o.compiledExplicit=Yu(o,"explicit"),o.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function o(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(o);return n}(o.compiledImplicit,o.compiledExplicit),o};var Xu=new Qu({explicit:[new Zu("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),new Zu("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),new Zu("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})]});var ed=new Zu("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var 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"});var td=new Zu("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var 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"});function nd(e){return 48<=e&&e<=55}function od(e){return 48<=e&&e<=57}var rd=new Zu("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=e.length,r=0,i=!1;if(!o)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===o)return!0;if("b"===(t=e[++r])){for(r++;r<o;r++)if("_"!==(t=e[r])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(r++;r<o;r++)if("_"!==(t=e[r])){if(!(48<=(n=e.charCodeAt(r))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(r++;r<o;r++)if("_"!==(t=e[r])){if(!nd(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;r<o;r++)if("_"!==(t=e[r])){if(!od(e.charCodeAt(r)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,n=e,o=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(o=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return o*parseInt(n.slice(2),2);if("x"===n[1])return o*parseInt(n.slice(2),16);if("o"===n[1])return o*parseInt(n.slice(2),8)}return o*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!qu.isNegativeZero(e)},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"]}}),id=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var ad=/^[-+]?[0-9]+e/;var sd=new Zu("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!id.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".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(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||qu.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(qu.isNegativeZero(e))return"-0.0";return n=e.toString(10),ad.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),ld=Xu.extend({implicit:[ed,td,rd,sd]}),cd=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ud=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]))?))?$");var dd=new Zu("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==cd.exec(e)||null!==ud.exec(e))},construct:function(e){var t,n,o,r,i,a,s,l,c=0,u=null;if(null===(t=cd.exec(e))&&(t=ud.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],o=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,o,r));if(i=+t[4],a=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),l=new Date(Date.UTC(n,o,r,i,a,s,c)),u&&l.setTime(l.getTime()-u),l},instanceOf:Date,represent:function(e){return e.toISOString()}});var pd=new Zu("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),fd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var hd=new Zu("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=0,r=e.length,i=fd;for(n=0;n<r;n++)if(!((t=i.indexOf(e.charAt(n)))>64)){if(t<0)return!1;o+=6}return o%8==0},construct:function(e){var t,n,o=e.replace(/[\r\n=]/g,""),r=o.length,i=fd,a=0,s=[];for(t=0;t<r;t++)t%4==0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|i.indexOf(o.charAt(t));return 0===(n=r%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,o="",r=0,i=e.length,a=fd;for(t=0;t<i;t++)t%3==0&&t&&(o+=a[r>>18&63],o+=a[r>>12&63],o+=a[r>>6&63],o+=a[63&r]),r=(r<<8)+e[t];return 0===(n=i%3)?(o+=a[r>>18&63],o+=a[r>>12&63],o+=a[r>>6&63],o+=a[63&r]):2===n?(o+=a[r>>10&63],o+=a[r>>4&63],o+=a[r<<2&63],o+=a[64]):1===n&&(o+=a[r>>2&63],o+=a[r<<4&63],o+=a[64],o+=a[64]),o}}),md=Object.prototype.hasOwnProperty,vd=Object.prototype.toString;var yd=new Zu("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,o,r,i,a=[],s=e;for(t=0,n=s.length;t<n;t+=1){if(o=s[t],i=!1,"[object Object]"!==vd.call(o))return!1;for(r in o)if(md.call(o,r)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==a.indexOf(r))return!1;a.push(r)}return!0},construct:function(e){return null!==e?e:[]}}),wd=Object.prototype.toString;var gd=new Zu("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,o,r,i,a=e;for(i=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(o=a[t],"[object Object]"!==wd.call(o))return!1;if(1!==(r=Object.keys(o)).length)return!1;i[t]=[r[0],o[r[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,o,r,i,a=e;for(i=new Array(a.length),t=0,n=a.length;t<n;t+=1)o=a[t],r=Object.keys(o),i[t]=[r[0],o[r[0]]];return i}}),bd=Object.prototype.hasOwnProperty;var kd=new Zu("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(bd.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),$d=ld.extend({implicit:[dd,pd],explicit:[hd,yd,gd,kd]}),jd=Object.prototype.hasOwnProperty,Td=1,Ad=2,Pd=3,zd=4,Ed=1,Cd=2,_d=3,Sd=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Od=/[\x85\u2028\u2029]/,xd=/[,\[\]\{\}]/,Id=/^(?:!|!!|![a-z\-]+!)$/i,Rd=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Nd(e){return Object.prototype.toString.call(e)}function Dd(e){return 10===e||13===e}function Bd(e){return 9===e||32===e}function Md(e){return 9===e||32===e||10===e||13===e}function Fd(e){return 44===e||91===e||93===e||123===e||125===e}function qd(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Ud(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function Ld(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var Wd=new Array(256),Vd=new Array(256),Gd=0;Gd<256;Gd++)Wd[Gd]=Ud(Gd)?1:0,Vd[Gd]=Ud(Gd);function Hd(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||$d,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,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.firstTabInLine=-1,this.documents=[]}function Kd(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Hu(n),new Wu(t,n)}function Jd(e,t){throw Kd(e,t)}function Zd(e,t){e.onWarning&&e.onWarning.call(null,Kd(e,t))}var Yd={YAML:function(e,t,n){var o,r,i;null!==e.version&&Jd(e,"duplication of %YAML directive"),1!==n.length&&Jd(e,"YAML directive accepts exactly one argument"),null===(o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&Jd(e,"ill-formed argument of the YAML directive"),r=parseInt(o[1],10),i=parseInt(o[2],10),1!==r&&Jd(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Zd(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var o,r;2!==n.length&&Jd(e,"TAG directive accepts exactly two arguments"),o=n[0],r=n[1],Id.test(o)||Jd(e,"ill-formed tag handle (first argument) of the TAG directive"),jd.call(e.tagMap,o)&&Jd(e,'there is a previously declared suffix for "'+o+'" tag handle'),Rd.test(r)||Jd(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){Jd(e,"tag prefix is malformed: "+r)}e.tagMap[o]=r}};function Qd(e,t,n,o){var r,i,a,s;if(t<n){if(s=e.input.slice(t,n),o)for(r=0,i=s.length;r<i;r+=1)9===(a=s.charCodeAt(r))||32<=a&&a<=1114111||Jd(e,"expected valid JSON character");else Sd.test(s)&&Jd(e,"the stream contains non-printable characters");e.result+=s}}function Xd(e,t,n,o){var r,i,a,s;for(qu.isObject(n)||Jd(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(r=Object.keys(n)).length;a<s;a+=1)i=r[a],jd.call(t,i)||(t[i]=n[i],o[i]=!0)}function ep(e,t,n,o,r,i,a,s,l){var c,u;if(Array.isArray(r))for(c=0,u=(r=Array.prototype.slice.call(r)).length;c<u;c+=1)Array.isArray(r[c])&&Jd(e,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===Nd(r[c])&&(r[c]="[object Object]");if("object"==typeof r&&"[object Object]"===Nd(r)&&(r="[object Object]"),r=String(r),null===t&&(t={}),"tag:yaml.org,2002:merge"===o)if(Array.isArray(i))for(c=0,u=i.length;c<u;c+=1)Xd(e,t,i[c],n);else Xd(e,t,i,n);else e.json||jd.call(n,r)||!jd.call(t,r)||(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,Jd(e,"duplicated mapping key")),"__proto__"===r?Object.defineProperty(t,r,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[r]=i,delete n[r];return t}function tp(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Jd(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function np(e,t,n){for(var o=0,r=e.input.charCodeAt(e.position);0!==r;){for(;Bd(r);)9===r&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&35===r)do{r=e.input.charCodeAt(++e.position)}while(10!==r&&13!==r&&0!==r);if(!Dd(r))break;for(tp(e),r=e.input.charCodeAt(e.position),o++,e.lineIndent=0;32===r;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return-1!==n&&0!==o&&e.lineIndent<n&&Zd(e,"deficient indentation"),o}function op(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!Md(t)))}function rp(e,t){1===t?e.result+=" ":t>1&&(e.result+=qu.repeat("\n",t-1))}function ip(e,t){var n,o,r=e.tag,i=e.anchor,a=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),o=e.input.charCodeAt(e.position);0!==o&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,Jd(e,"tab characters must not be used in indentation")),45===o)&&Md(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,np(e,!0,-1)&&e.lineIndent<=t)a.push(null),o=e.input.charCodeAt(e.position);else if(n=e.line,lp(e,t,Pd,!1,!0),a.push(e.result),np(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==o)Jd(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=r,e.anchor=i,e.kind="sequence",e.result=a,!0)}function ap(e){var t,n,o,r,i=!1,a=!1;if(33!==(r=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Jd(e,"duplication of a tag property"),60===(r=e.input.charCodeAt(++e.position))?(i=!0,r=e.input.charCodeAt(++e.position)):33===r?(a=!0,n="!!",r=e.input.charCodeAt(++e.position)):n="!",t=e.position,i){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&62!==r);e.position<e.length?(o=e.input.slice(t,e.position),r=e.input.charCodeAt(++e.position)):Jd(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!Md(r);)33===r&&(a?Jd(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Id.test(n)||Jd(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),r=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),xd.test(o)&&Jd(e,"tag suffix cannot contain flow indicator characters")}o&&!Rd.test(o)&&Jd(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch(t){Jd(e,"tag name is malformed: "+o)}return i?e.tag=o:jd.call(e.tagMap,n)?e.tag=e.tagMap[n]+o:"!"===n?e.tag="!"+o:"!!"===n?e.tag="tag:yaml.org,2002:"+o:Jd(e,'undeclared tag handle "'+n+'"'),!0}function sp(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Jd(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Md(n)&&!Fd(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Jd(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function lp(e,t,n,o,r){var i,a,s,l,c,u,d,p,f,h=1,m=!1,v=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=a=s=zd===n||Pd===n,o&&np(e,!0,-1)&&(m=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;ap(e)||sp(e);)np(e,!0,-1)?(m=!0,s=i,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):s=!1;if(s&&(s=m||r),1!==h&&zd!==n||(p=Td===n||Ad===n?t:t+1,f=e.position-e.lineStart,1===h?s&&(ip(e,f)||function(e,t,n){var o,r,i,a,s,l,c,u=e.tag,d=e.anchor,p={},f=Object.create(null),h=null,m=null,v=null,y=!1,w=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=p),c=e.input.charCodeAt(e.position);0!==c;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,Jd(e,"tab characters must not be used in indentation")),o=e.input.charCodeAt(e.position+1),i=e.line,63!==c&&58!==c||!Md(o)){if(a=e.line,s=e.lineStart,l=e.position,!lp(e,n,Ad,!1,!0))break;if(e.line===i){for(c=e.input.charCodeAt(e.position);Bd(c);)c=e.input.charCodeAt(++e.position);if(58===c)Md(c=e.input.charCodeAt(++e.position))||Jd(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(ep(e,p,f,h,m,null,a,s,l),h=m=v=null),w=!0,y=!1,r=!1,h=e.tag,m=e.result;else{if(!w)return e.tag=u,e.anchor=d,!0;Jd(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!w)return e.tag=u,e.anchor=d,!0;Jd(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(ep(e,p,f,h,m,null,a,s,l),h=m=v=null),w=!0,y=!0,r=!0):y?(y=!1,r=!0):Jd(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=o;if((e.line===i||e.lineIndent>t)&&(y&&(a=e.line,s=e.lineStart,l=e.position),lp(e,t,zd,!0,r)&&(y?m=e.result:v=e.result),y||(ep(e,p,f,h,m,v,a,s,l),h=m=v=null),np(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)Jd(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&ep(e,p,f,h,m,null,a,s,l),w&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=p),w}(e,f,p))||function(e,t){var n,o,r,i,a,s,l,c,u,d,p,f,h=!0,m=e.tag,v=e.anchor,y=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))a=93,c=!1,i=[];else{if(123!==f)return!1;a=125,c=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),f=e.input.charCodeAt(++e.position);0!==f;){if(np(e,!0,t),(f=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=m,e.anchor=v,e.kind=c?"mapping":"sequence",e.result=i,!0;h?44===f&&Jd(e,"expected the node content, but found ','"):Jd(e,"missed comma between flow collection entries"),p=null,s=l=!1,63===f&&Md(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,np(e,!0,t)),n=e.line,o=e.lineStart,r=e.position,lp(e,t,Td,!1,!0),d=e.tag,u=e.result,np(e,!0,t),f=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==f||(s=!0,f=e.input.charCodeAt(++e.position),np(e,!0,t),lp(e,t,Td,!1,!0),p=e.result),c?ep(e,i,y,d,u,p,n,o,r):s?i.push(ep(e,null,y,d,u,p,n,o,r)):i.push(u),np(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(h=!0,f=e.input.charCodeAt(++e.position)):h=!1}Jd(e,"unexpected end of the stream within a flow collection")}(e,p)?v=!0:(a&&function(e,t){var n,o,r,i,a,s=Ed,l=!1,c=!1,u=t,d=0,p=!1;if(124===(i=e.input.charCodeAt(e.position)))o=!1;else{if(62!==i)return!1;o=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)Ed===s?s=43===i?_d:Cd:Jd(e,"repeat of a chomping mode identifier");else{if(!((r=48<=(a=i)&&a<=57?a-48:-1)>=0))break;0===r?Jd(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?Jd(e,"repeat of an indentation width identifier"):(u=t+r-1,c=!0)}if(Bd(i)){do{i=e.input.charCodeAt(++e.position)}while(Bd(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Dd(i)&&0!==i)}for(;0!==i;){for(tp(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!c||e.lineIndent<u)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>u&&(u=e.lineIndent),Dd(i))d++;else{if(e.lineIndent<u){s===_d?e.result+=qu.repeat("\n",l?1+d:d):s===Ed&&l&&(e.result+="\n");break}for(o?Bd(i)?(p=!0,e.result+=qu.repeat("\n",l?1+d:d)):p?(p=!1,e.result+=qu.repeat("\n",d+1)):0===d?l&&(e.result+=" "):e.result+=qu.repeat("\n",d):e.result+=qu.repeat("\n",l?1+d:d),l=!0,c=!0,d=0,n=e.position;!Dd(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Qd(e,n,e.position,!1)}}return!0}(e,p)||function(e,t){var n,o,r;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,o=r=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(Qd(e,o,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;o=e.position,e.position++,r=e.position}else Dd(n)?(Qd(e,o,r,!0),rp(e,np(e,!1,t)),o=r=e.position):e.position===e.lineStart&&op(e)?Jd(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);Jd(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){var n,o,r,i,a,s,l;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return Qd(e,n,e.position,!0),e.position++,!0;if(92===s){if(Qd(e,n,e.position,!0),Dd(s=e.input.charCodeAt(++e.position)))np(e,!1,t);else if(s<256&&Wd[s])e.result+=Vd[s],e.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(r=a,i=0;r>0;r--)(a=qd(s=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:Jd(e,"expected hexadecimal character");e.result+=Ld(i),e.position++}else Jd(e,"unknown escape sequence");n=o=e.position}else Dd(s)?(Qd(e,n,o,!0),rp(e,np(e,!1,t)),n=o=e.position):e.position===e.lineStart&&op(e)?Jd(e,"unexpected end of the document within a double quoted scalar"):(e.position++,o=e.position)}Jd(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?v=!0:!function(e){var t,n,o;if(42!==(o=e.input.charCodeAt(e.position)))return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!Md(o)&&!Fd(o);)o=e.input.charCodeAt(++e.position);return e.position===t&&Jd(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),jd.call(e.anchorMap,n)||Jd(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],np(e,!0,-1),!0}(e)?function(e,t,n){var o,r,i,a,s,l,c,u,d=e.kind,p=e.result;if(Md(u=e.input.charCodeAt(e.position))||Fd(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(Md(o=e.input.charCodeAt(e.position+1))||n&&Fd(o)))return!1;for(e.kind="scalar",e.result="",r=i=e.position,a=!1;0!==u;){if(58===u){if(Md(o=e.input.charCodeAt(e.position+1))||n&&Fd(o))break}else if(35===u){if(Md(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&op(e)||n&&Fd(u))break;if(Dd(u)){if(s=e.line,l=e.lineStart,c=e.lineIndent,np(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=s,e.lineStart=l,e.lineIndent=c;break}}a&&(Qd(e,r,i,!1),rp(e,e.line-s),r=i=e.position,a=!1),Bd(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Qd(e,r,i,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,p,Td===n)&&(v=!0,null===e.tag&&(e.tag="?")):(v=!0,null===e.tag&&null===e.anchor||Jd(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(v=s&&ip(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&Jd(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((d=e.implicitTypes[l]).resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(jd.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,l=0,c=(u=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,u[l].tag.length)===u[l].tag){d=u[l];break}d||Jd(e,"unknown tag !<"+e.tag+">"),null!==e.result&&d.kind!==e.kind&&Jd(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):Jd(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||v}function cp(e){var t,n,o,r,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(np(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Md(r);)r=e.input.charCodeAt(++e.position);for(o=[],(n=e.input.slice(t,e.position)).length<1&&Jd(e,"directive name must not be less than one character in length");0!==r;){for(;Bd(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!Dd(r));break}if(Dd(r))break;for(t=e.position;0!==r&&!Md(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}0!==r&&tp(e),jd.call(Yd,n)?Yd[n](e,n,o):Zd(e,'unknown document directive "'+n+'"')}np(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,np(e,!0,-1)):a&&Jd(e,"directives end mark is expected"),lp(e,e.lineIndent-1,zd,!1,!0),np(e,!0,-1),e.checkLineBreaks&&Od.test(e.input.slice(i,e.position))&&Zd(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&op(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,np(e,!0,-1)):e.position<e.length-1&&Jd(e,"end of the stream or a document separator is expected")}function up(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)));var n=new Hd(e,t),o=e.indexOf("\0");for(-1!==o&&(n.position=o,Jd(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;)cp(n);return n.documents}var dp={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var o=up(e,n);if("function"!=typeof t)return o;for(var r=0,i=o.length;r<i;r+=1)t(o[r])},load:function(e,t){var n=up(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new Wu("expected a single document in the stream, but found more")}}},pp=Object.prototype.toString,fp=Object.prototype.hasOwnProperty,hp=65279,mp=9,vp=10,yp=13,wp=32,gp=33,bp=34,kp=35,$p=37,jp=38,Tp=39,Ap=42,Pp=44,zp=45,Ep=58,Cp=61,_p=62,Sp=63,Op=64,xp=91,Ip=93,Rp=96,Np=123,Dp=124,Bp=125,Mp={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"},Fp=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],qp=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Up(e){var t,n,o;if(t=e.toString(16).toUpperCase(),e<=255)n="x",o=2;else if(e<=65535)n="u",o=4;else{if(!(e<=4294967295))throw new Wu("code point within a string may not be greater than 0xFFFFFFFF");n="U",o=8}return"\\"+n+qu.repeat("0",o-t.length)+t}var Lp=1,Wp=2;function Vp(e){this.schema=e.schema||$d,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=qu.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,o,r,i,a,s,l;if(null===t)return{};for(n={},r=0,i=(o=Object.keys(t)).length;r<i;r+=1)a=o[r],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=e.compiledTypeMap.fallback[a])&&fp.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[a]=s;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?Wp:Lp,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Gp(e,t){for(var n,o=qu.repeat(" ",t),r=0,i=-1,a="",s=e.length;r<s;)-1===(i=e.indexOf("\n",r))?(n=e.slice(r),r=s):(n=e.slice(r,i+1),r=i+1),n.length&&"\n"!==n&&(a+=o),a+=n;return a}function Hp(e,t){return"\n"+qu.repeat(" ",e.indent*t)}function Kp(e){return e===wp||e===mp}function Jp(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==hp||65536<=e&&e<=1114111}function Zp(e){return Jp(e)&&e!==hp&&e!==yp&&e!==vp}function Yp(e,t,n){var o=Zp(e),r=o&&!Kp(e);return(n?o:o&&e!==Pp&&e!==xp&&e!==Ip&&e!==Np&&e!==Bp)&&e!==kp&&!(t===Ep&&!r)||Zp(t)&&!Kp(t)&&e===kp||t===Ep&&r}function Qp(e,t){var n,o=e.charCodeAt(t);return o>=55296&&o<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(o-55296)+n-56320+65536:o}function Xp(e){return/^\n* /.test(e)}var ef=1,tf=2,nf=3,of=4,rf=5;function af(e,t,n,o,r,i,a,s){var l,c,u=0,d=null,p=!1,f=!1,h=-1!==o,m=-1,v=Jp(c=Qp(e,0))&&c!==hp&&!Kp(c)&&c!==zp&&c!==Sp&&c!==Ep&&c!==Pp&&c!==xp&&c!==Ip&&c!==Np&&c!==Bp&&c!==kp&&c!==jp&&c!==Ap&&c!==gp&&c!==Dp&&c!==Cp&&c!==_p&&c!==Tp&&c!==bp&&c!==$p&&c!==Op&&c!==Rp&&function(e){return!Kp(e)&&e!==Ep}(Qp(e,e.length-1));if(t||a)for(l=0;l<e.length;u>=65536?l+=2:l++){if(!Jp(u=Qp(e,l)))return rf;v=v&&Yp(u,d,s),d=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if((u=Qp(e,l))===vp)p=!0,h&&(f=f||l-m-1>o&&" "!==e[m+1],m=l);else if(!Jp(u))return rf;v=v&&Yp(u,d,s),d=u}f=f||h&&l-m-1>o&&" "!==e[m+1]}return p||f?n>9&&Xp(e)?rf:a?i===Wp?rf:tf:f?of:nf:!v||a||r(e)?i===Wp?rf:tf:ef}function sf(e,t,n,o,r){e.dump=function(){if(0===t.length)return e.quotingType===Wp?'""':"''";if(!e.noCompatMode&&(-1!==Fp.indexOf(t)||qp.test(t)))return e.quotingType===Wp?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=o||e.flowLevel>-1&&n>=e.flowLevel;switch(af(t,s,e.indent,a,(function(t){return function(e,t){var n,o;for(n=0,o=e.implicitTypes.length;n<o;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!o,r)){case ef:return t;case tf:return"'"+t.replace(/'/g,"''")+"'";case nf:return"|"+lf(t,e.indent)+cf(Gp(t,i));case of:return">"+lf(t,e.indent)+cf(Gp(function(e,t){var n,o,r=/(\n+)([^\n]*)/g,i=(s=e.indexOf("\n"),s=-1!==s?s:e.length,r.lastIndex=s,uf(e.slice(0,s),t)),a="\n"===e[0]||" "===e[0];var s;for(;o=r.exec(e);){var l=o[1],c=o[2];n=" "===c[0],i+=l+(a||n||""===c?"":"\n")+uf(c,t),a=n}return i}(t,a),i));case rf:return'"'+function(e){for(var t,n="",o=0,r=0;r<e.length;o>=65536?r+=2:r++)o=Qp(e,r),!(t=Mp[o])&&Jp(o)?(n+=e[r],o>=65536&&(n+=e[r+1])):n+=t||Up(o);return n}(t)+'"';default:throw new Wu("impossible error: invalid scalar style")}}()}function lf(e,t){var n=Xp(e)?String(t):"",o="\n"===e[e.length-1];return n+(o&&("\n"===e[e.length-2]||"\n"===e)?"+":o?"":"-")+"\n"}function cf(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function uf(e,t){if(""===e||" "===e[0])return e;for(var n,o,r=/ [^ ]/g,i=0,a=0,s=0,l="";n=r.exec(e);)(s=n.index)-i>t&&(o=a>i?a:s,l+="\n"+e.slice(i,o),i=o+1),a=s;return l+="\n",e.length-i>t&&a>i?l+=e.slice(i,a)+"\n"+e.slice(a+1):l+=e.slice(i),l.slice(1)}function df(e,t,n,o){var r,i,a,s="",l=e.tag;for(r=0,i=n.length;r<i;r+=1)a=n[r],e.replacer&&(a=e.replacer.call(n,String(r),a)),(ff(e,t+1,a,!0,!0,!1,!0)||void 0===a&&ff(e,t+1,null,!0,!0,!1,!0))&&(o&&""===s||(s+=Hp(e,t)),e.dump&&vp===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function pf(e,t,n){var o,r,i,a,s,l;for(i=0,a=(r=n?e.explicitTypes:e.implicitTypes).length;i<a;i+=1)if(((s=r[i]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===pp.call(s.represent))o=s.represent(t,l);else{if(!fp.call(s.represent,l))throw new Wu("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');o=s.represent[l](t,l)}e.dump=o}return!0}return!1}function ff(e,t,n,o,r,i,a){e.tag=null,e.dump=n,pf(e,n,!1)||pf(e,n,!0);var s,l=pp.call(e.dump),c=o;o&&(o=e.flowLevel<0||e.flowLevel>t);var u,d,p="[object Object]"===l||"[object Array]"===l;if(p&&(d=-1!==(u=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(r=!1),d&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(p&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===l)o&&0!==Object.keys(e.dump).length?(!function(e,t,n,o){var r,i,a,s,l,c,u="",d=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new Wu("sortKeys must be a boolean or a function");for(r=0,i=p.length;r<i;r+=1)c="",o&&""===u||(c+=Hp(e,t)),s=n[a=p[r]],e.replacer&&(s=e.replacer.call(n,a,s)),ff(e,t+1,a,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&vp===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=Hp(e,t)),ff(e,t+1,s,!0,l)&&(e.dump&&vp===e.dump.charCodeAt(0)?c+=":":c+=": ",u+=c+=e.dump));e.tag=d,e.dump=u||"{}"}(e,t,e.dump,r),d&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var o,r,i,a,s,l="",c=e.tag,u=Object.keys(n);for(o=0,r=u.length;o<r;o+=1)s="",""!==l&&(s+=", "),e.condenseFlow&&(s+='"'),a=n[i=u[o]],e.replacer&&(a=e.replacer.call(n,i,a)),ff(e,t,i,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ff(e,t,a,!1,!1)&&(l+=s+=e.dump));e.tag=c,e.dump="{"+l+"}"}(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===l)o&&0!==e.dump.length?(e.noArrayIndent&&!a&&t>0?df(e,t-1,e.dump,r):df(e,t,e.dump,r),d&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var o,r,i,a="",s=e.tag;for(o=0,r=n.length;o<r;o+=1)i=n[o],e.replacer&&(i=e.replacer.call(n,String(o),i)),(ff(e,t,i,!1,!1)||void 0===i&&ff(e,t,null,!1,!1))&&(""!==a&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(e.skipInvalid)return!1;throw new Wu("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&sf(e,e.dump,t,i,c)}null!==e.tag&&"?"!==e.tag&&(s=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),s="!"===e.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",e.dump=s+" "+e.dump)}return!0}function hf(e,t){var n,o,r=[],i=[];for(mf(e,r,i),n=0,o=i.length;n<o;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(o)}function mf(e,t,n){var o,r,i;if(null!==e&&"object"==typeof e)if(-1!==(r=t.indexOf(e)))-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,i=e.length;r<i;r+=1)mf(e[r],t,n);else for(r=0,i=(o=Object.keys(e)).length;r<i;r+=1)mf(e[o[r]],t,n)}var vf=dp.load,yf={dump:function(e,t){var n=new Vp(t=t||{});n.noRefs||hf(e,n);var o=e;return n.replacer&&(o=n.replacer.call({"":o},"",o)),ff(n,0,o,!0,!0)?n.dump+"\n":""}}.dump,wf=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.document&&(i.document=new nc(t.document)),"object"==typeof t.input&&(i.input=new Ys(t.input)),"object"==typeof t.use&&(i.use=new Nu(t.use)),"object"==typeof t.do&&(i.do=new Sc(t.do)),"object"==typeof t.timeout&&(i.timeout=new Mu(t.timeout)),"object"==typeof t.output&&(i.output=new Xs(t.output)),"object"==typeof t.schedule&&(i.schedule=new gu(t.schedule))),null===(o=null===(n=m("Workflow"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Workflow",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Workflow"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t.deserialize=function(e){var n=vf(e);return Ha("Workflow",n),new t(n)},t.serialize=function(e,n,o){void 0===n&&(n="yaml"),void 0===o&&(o=!0);var r=new t(e);r.validate();var i=o?r.normalize():r;return"json"===n?JSON.stringify(i):yf(i)},t.prototype.serialize=function(e,n){return void 0===e&&(e="yaml"),void 0===n&&(n=!0),t.serialize(this,e,n)},t}(u),gf=e("Classes",{AllEventConsumptionStrategy:os,AllEventConsumptionStrategyConfiguration:ts,AnyEventConsumptionStrategy:ss,AnyEventConsumptionStrategyConfiguration:is,AsyncApiArguments:Rs,AuthenticationPolicy:Ds,AuthenticationPolicyReference:Ms,BasicAuthenticationPolicy:qs,BasicAuthenticationPolicyConfiguration:cs,BasicAuthenticationProperties:Ls,BearerAuthenticationPolicy:Vs,BearerAuthenticationPolicyConfiguration:ds,BearerAuthenticationProperties:Hs,CallAsyncAPI:dl,CallFunction:ml,CallGRPC:jl,CallHTTP:xl,CallOpenAPI:Ml,CallTask:ql,Catalog:Ll,CatchErrors:Vl,ConstantBackoff:Hl,Container:Yl,ContainerEnvironment:Zl,ContainerPorts:Kl,ContainerVolumes:Jl,DigestAuthenticationPolicy:Ql,DigestAuthenticationPolicyConfiguration:fs,DigestAuthenticationProperties:Xl,Document:nc,DoTask:Oc,Duration:ol,DurationInline:xc,EmitEventDefinition:ic,EmitEventWith:rc,EmitTask:Ic,EmitTaskConfiguration:ac,Endpoint:Cs,EndpointConfiguration:Rc,EndpointUri:Nc,Error:Dc,ErrorInstance:Bc,ErrorType:Mc,EventConsumptionStrategy:lc,EventDataschema:Fc,EventFilter:Xa,EventFilterCorrelate:Ya,EventSource:qc,EventTime:Uc,ExponentialBackOff:Lc,Export:tl,ExportAs:Wc,Extension:Vc,ExtensionItem:Gc,ExternalResource:Ss,ExternalScript:Hc,FlowDirective:Kc,ForkTask:Jc,ForkTaskConfiguration:oc,ForTask:Zc,ForTaskConfiguration:sc,FunctionArguments:fl,GRPCArguments:kl,HTTPArguments:Sl,InlineScript:Yc,Input:Ys,InputFrom:Qc,LinearBackoff:Xc,ListenTask:eu,ListenTaskConfiguration:cc,OAuth2AutenthicationData:tu,OAuth2AutenthicationDataAudiences:nu,OAuth2AutenthicationDataClient:ms,OAuth2AutenthicationDataScopes:ou,OAuth2AuthenticationPolicy:ru,OAuth2AuthenticationPolicyConfiguration:js,OAuth2AuthenticationPropertiesEndpoints:ks,OAuth2ConnectAuthenticationProperties:iu,OAuth2Issuers:au,OAuth2TokenDefinition:gs,OAuth2TokenRequest:ys,OneEventConsumptionStrategy:su,OpenAPIArguments:Dl,OpenIdConnectAuthenticationPolicy:lu,OpenIdConnectAuthenticationPolicyConfiguration:As,OpenIdConnectAuthenticationProperties:cu,Output:Xs,OutputAs:uu,RaiseTask:du,RaiseTaskConfiguration:dc,RaiseTaskRaiseError:uc,ReferenceableAuthenticationPolicy:zs,RetryBackoff:jc,RetryLimit:Ac,RetryLimitAttempt:Tc,RetryPolicy:pu,RetryPolicyJitter:Pc,RunContainer:fu,RunScript:hu,RunShell:mu,RunTask:vu,RunTaskConfiguration:wc,RuntimeExpression:yu,RunWorkflow:wu,Schedule:gu,Schema:Js,SchemaExternal:bu,SchemaInline:ku,Script:pc,SecretBasedAuthenticationPolicy:$u,SetTask:ju,SetTaskConfiguration:gc,Shell:mc,ShellArguments:fc,ShellEnvironment:hc,SubflowConfiguration:yc,SubflowInput:vc,SwitchCase:bc,SwitchItem:kc,SwitchTask:Tu,SwitchTaskConfiguration:$c,Task:Cc,TaskBase:cl,TaskBaseIf:Au,TaskBaseTimeout:il,TaskItem:_c,TaskList:Sc,TaskMetadata:sl,Timeout:Pu,TryTask:zu,TryTaskCatch:Ec,TryTaskCatchRetry:zc,UriTemplate:Eu,Use:Nu,UseAuthentications:Cu,UseCatalogs:Ru,UseErrors:_u,UseExtensions:Su,UseFunctions:Ou,UseRetries:xu,UseSecrets:Du,UseTimeouts:Iu,WaitTask:Bu,WithAsyncAPIPayload:xs,WithEvent:Ja,WithGRPCArguments:gl,WithGRPCService:yl,WithHTTPBody:zl,WithHTTPHeaders:Al,WithHTTPQuery:Cl,WithOpenAPIParameters:Rl,Workflow:wf,WorkflowMetadata:tc,WorkflowTags:ec,WorkflowTimeout:Mu});function bf(e,t){var n=new gf.AllEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("allEventConsumptionStrategyBuilder",(function(e){return n(e,bf)}));function kf(e,t){var n=new gf.AllEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("allEventConsumptionStrategyConfigurationBuilder",(function(e){return o(e,kf)}));function $f(e,t){var n=new gf.AnyEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("anyEventConsumptionStrategyBuilder",(function(e){return n(e,$f)}));function jf(e,t){var n=new gf.AnyEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("anyEventConsumptionStrategyConfigurationBuilder",(function(e){return o(e,jf)}));function Tf(e,t){var n=new gf.AsyncApiArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("asyncApiArgumentsBuilder",(function(e){return n(e,Tf)}));function Af(e,t){var n=new gf.AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("authenticationPolicyBuilder",(function(e){return n(e,Af)}));function Pf(e,t){var n=new gf.AuthenticationPolicyReference(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("authenticationPolicyReferenceBuilder",(function(e){return n(e,Pf)}));function zf(e,t){var n=new gf.BasicAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("basicAuthenticationPolicyBuilder",(function(e){return n(e,zf)}));function Ef(e,t){var n=new gf.BasicAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("basicAuthenticationPolicyConfigurationBuilder",(function(e){return n(e,Ef)}));function Cf(e,t){var n=new gf.BasicAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("basicAuthenticationPropertiesBuilder",(function(e){return n(e,Cf)}));function _f(e,t){var n=new gf.BearerAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("bearerAuthenticationPolicyBuilder",(function(e){return n(e,_f)}));function Sf(e,t){var n=new gf.BearerAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("bearerAuthenticationPolicyConfigurationBuilder",(function(e){return n(e,Sf)}));function Of(e,t){var n=new gf.BearerAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("bearerAuthenticationPropertiesBuilder",(function(e){return n(e,Of)}));function xf(e,t){var n=new gf.CallAsyncAPI(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("callAsyncAPIBuilder",(function(e){return n(e,xf)}));function If(e,t){var n=new gf.CallFunction(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("callFunctionBuilder",(function(e){return n(e,If)}));function Rf(e,t){var n=new gf.CallGRPC(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("callGRPCBuilder",(function(e){return n(e,Rf)}));function Nf(e,t){var n=new gf.CallHTTP(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("callHTTPBuilder",(function(e){return n(e,Nf)}));function Df(e,t){var n=new gf.CallOpenAPI(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("callOpenAPIBuilder",(function(e){return n(e,Df)}));function Bf(e,t){var n=new gf.CallTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("callTaskBuilder",(function(e){return n(e,Bf)}));function Mf(e,t){var n=new gf.Catalog(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("catalogBuilder",(function(e){return n(e,Mf)}));function Ff(e,t){var n=new gf.CatchErrors(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("catchErrorsBuilder",(function(e){return n(e,Ff)}));function qf(e,t){var n=new gf.ConstantBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("constantBackoffBuilder",(function(e){return n(e,qf)}));function Uf(e,t){var n=new gf.Container(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("containerBuilder",(function(e){return n(e,Uf)}));function Lf(e,t){var n=new gf.ContainerEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("containerEnvironmentBuilder",(function(e){return n(e,Lf)}));function Wf(e,t){var n=new gf.ContainerPorts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("containerPortsBuilder",(function(e){return n(e,Wf)}));function Vf(e,t){var n=new gf.ContainerVolumes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("containerVolumesBuilder",(function(e){return n(e,Vf)}));function Gf(e,t){var n=new gf.DigestAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("digestAuthenticationPolicyBuilder",(function(e){return n(e,Gf)}));function Hf(e,t){var n=new gf.DigestAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("digestAuthenticationPolicyConfigurationBuilder",(function(e){return n(e,Hf)}));function Kf(e,t){var n=new gf.DigestAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("digestAuthenticationPropertiesBuilder",(function(e){return n(e,Kf)}));function Jf(e,t){var n=new gf.Document(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("documentBuilder",(function(e){return n(e,Jf)}));function Zf(e,t){var n=new gf.DoTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("doTaskBuilder",(function(e){return n(e,Zf)}));function Yf(e,t){var n=new gf.Duration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("durationBuilder",(function(e){return n(e,Yf)}));function Qf(e,t){var n=new gf.DurationInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("durationInlineBuilder",(function(e){return n(e,Qf)}));function Xf(e,t){var n=new gf.EmitEventDefinition(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("emitEventDefinitionBuilder",(function(e){return n(e,Xf)}));function eh(e,t){var n=new gf.EmitEventWith(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("emitEventWithBuilder",(function(e){return n(e,eh)}));function th(e,t){var n=new gf.EmitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("emitTaskBuilder",(function(e){return n(e,th)}));function nh(e,t){var n=new gf.EmitTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("emitTaskConfigurationBuilder",(function(e){return n(e,nh)}));function oh(e,t){var n=new gf.Endpoint(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("endpointBuilder",(function(e){return n(e,oh)}));function rh(e,t){var n=new gf.EndpointConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("endpointConfigurationBuilder",(function(e){return n(e,rh)}));function ih(e,t){var n=new gf.EndpointUri(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("endpointUriBuilder",(function(e){return n(e,ih)}));function ah(e,t){var n=new gf.Error(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("errorBuilder",(function(e){return n(e,ah)}));function sh(e,t){var n=new gf.ErrorInstance(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("errorInstanceBuilder",(function(e){return n(e,sh)}));function lh(e,t){var n=new gf.ErrorType(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("errorTypeBuilder",(function(e){return n(e,lh)}));function ch(e,t){var n=new gf.EventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("eventConsumptionStrategyBuilder",(function(e){return n(e,ch)}));function uh(e,t){var n=new gf.EventDataschema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("eventDataschemaBuilder",(function(e){return n(e,uh)}));function dh(e,t){var n=new gf.EventFilter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("eventFilterBuilder",(function(e){return n(e,dh)}));function ph(e,t){var n=new gf.EventFilterCorrelate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("eventFilterCorrelateBuilder",(function(e){return n(e,ph)}));function fh(e,t){var n=new gf.EventSource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("eventSourceBuilder",(function(e){return n(e,fh)}));function hh(e,t){var n=new gf.EventTime(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("eventTimeBuilder",(function(e){return n(e,hh)}));function mh(e,t){var n=new gf.ExponentialBackOff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("exponentialBackOffBuilder",(function(e){return n(e,mh)}));function vh(e,t){var n=new gf.Export(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("exportBuilder",(function(e){return n(e,vh)}));function yh(e,t){var n=new gf.ExportAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("exportAsBuilder",(function(e){return n(e,yh)}));function wh(e,t){var n=new gf.Extension(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("extensionBuilder",(function(e){return n(e,wh)}));function gh(e,t){var n=new gf.ExtensionItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("extensionItemBuilder",(function(e){return n(e,gh)}));function bh(e,t){var n=new gf.ExternalResource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("externalResourceBuilder",(function(e){return n(e,bh)}));function kh(e,t){var n=new gf.ExternalScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("externalScriptBuilder",(function(e){return n(e,kh)}));function $h(e,t){var n=new gf.FlowDirective(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("flowDirectiveBuilder",(function(e){return n(e,$h)}));function jh(e,t){var n=new gf.ForkTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("forkTaskBuilder",(function(e){return n(e,jh)}));function Th(e,t){var n=new gf.ForkTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("forkTaskConfigurationBuilder",(function(e){return n(e,Th)}));function Ah(e,t){var n=new gf.ForTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("forTaskBuilder",(function(e){return n(e,Ah)}));function Ph(e,t){var n=new gf.ForTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("forTaskConfigurationBuilder",(function(e){return n(e,Ph)}));function zh(e,t){var n=new gf.FunctionArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("functionArgumentsBuilder",(function(e){return n(e,zh)}));function Eh(e,t){var n=new gf.GRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("gRPCArgumentsBuilder",(function(e){return n(e,Eh)}));function Ch(e,t){var n=new gf.HTTPArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("hTTPArgumentsBuilder",(function(e){return n(e,Ch)}));function _h(e,t){var n=new gf.InlineScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("inlineScriptBuilder",(function(e){return n(e,_h)}));function Sh(e,t){var n=new gf.Input(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("inputBuilder",(function(e){return n(e,Sh)}));function Oh(e,t){var n=new gf.InputFrom(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("inputFromBuilder",(function(e){return n(e,Oh)}));function xh(e,t){var n=new gf.LinearBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("linearBackoffBuilder",(function(e){return n(e,xh)}));function Ih(e,t){var n=new gf.ListenTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("listenTaskBuilder",(function(e){return n(e,Ih)}));function Rh(e,t){var n=new gf.ListenTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("listenTaskConfigurationBuilder",(function(e){return n(e,Rh)}));function Nh(e,t){var n=new gf.OAuth2AutenthicationData(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2AutenthicationDataBuilder",(function(e){return n(e,Nh)}));function Dh(e,t){var n=new gf.OAuth2AutenthicationDataAudiences(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2AutenthicationDataAudiencesBuilder",(function(e){return o(e,Dh)}));function Bh(e,t){var n=new gf.OAuth2AutenthicationDataClient(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2AutenthicationDataClientBuilder",(function(e){return n(e,Bh)}));function Mh(e,t){var n=new gf.OAuth2AutenthicationDataScopes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2AutenthicationDataScopesBuilder",(function(e){return o(e,Mh)}));function Fh(e,t){var n=new gf.OAuth2AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2AuthenticationPolicyBuilder",(function(e){return n(e,Fh)}));function qh(e,t){var n=new gf.OAuth2AuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2AuthenticationPolicyConfigurationBuilder",(function(e){return n(e,qh)}));function Uh(e,t){var n=new gf.OAuth2AuthenticationPropertiesEndpoints(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2AuthenticationPropertiesEndpointsBuilder",(function(e){return n(e,Uh)}));function Lh(e,t){var n=new gf.OAuth2ConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2ConnectAuthenticationPropertiesBuilder",(function(e){return n(e,Lh)}));function Wh(e,t){var n=new gf.OAuth2Issuers(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2IssuersBuilder",(function(e){return o(e,Wh)}));function Vh(e,t){var n=new gf.OAuth2TokenDefinition(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2TokenDefinitionBuilder",(function(e){return n(e,Vh)}));function Gh(e,t){var n=new gf.OAuth2TokenRequest(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2TokenRequestBuilder",(function(e){return n(e,Gh)}));function Hh(e,t){var n=new gf.OneEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oneEventConsumptionStrategyBuilder",(function(e){return n(e,Hh)}));function Kh(e,t){var n=new gf.OpenAPIArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("openAPIArgumentsBuilder",(function(e){return n(e,Kh)}));function Jh(e,t){var n=new gf.OpenIdConnectAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("openIdConnectAuthenticationPolicyBuilder",(function(e){return n(e,Jh)}));function Zh(e,t){var n=new gf.OpenIdConnectAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("openIdConnectAuthenticationPolicyConfigurationBuilder",(function(e){return n(e,Zh)}));function Yh(e,t){var n=new gf.OpenIdConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("openIdConnectAuthenticationPropertiesBuilder",(function(e){return n(e,Yh)}));function Qh(e,t){var n=new gf.Output(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("outputBuilder",(function(e){return n(e,Qh)}));function Xh(e,t){var n=new gf.OutputAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("outputAsBuilder",(function(e){return n(e,Xh)}));function em(e,t){var n=new gf.RaiseTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("raiseTaskBuilder",(function(e){return n(e,em)}));function tm(e,t){var n=new gf.RaiseTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("raiseTaskConfigurationBuilder",(function(e){return n(e,tm)}));function nm(e,t){var n=new gf.RaiseTaskRaiseError(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("raiseTaskRaiseErrorBuilder",(function(e){return n(e,nm)}));function om(e,t){var n=new gf.ReferenceableAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("referenceableAuthenticationPolicyBuilder",(function(e){return n(e,om)}));function rm(e,t){var n=new gf.RetryBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("retryBackoffBuilder",(function(e){return n(e,rm)}));function im(e,t){var n=new gf.RetryLimit(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("retryLimitBuilder",(function(e){return n(e,im)}));function am(e,t){var n=new gf.RetryLimitAttempt(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("retryLimitAttemptBuilder",(function(e){return n(e,am)}));function sm(e,t){var n=new gf.RetryPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("retryPolicyBuilder",(function(e){return n(e,sm)}));function lm(e,t){var n=new gf.RetryPolicyJitter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("retryPolicyJitterBuilder",(function(e){return n(e,lm)}));function cm(e,t){var n=new gf.RunContainer(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("runContainerBuilder",(function(e){return n(e,cm)}));function um(e,t){var n=new gf.RunScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("runScriptBuilder",(function(e){return n(e,um)}));function dm(e,t){var n=new gf.RunShell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("runShellBuilder",(function(e){return n(e,dm)}));function pm(e,t){var n=new gf.RunTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("runTaskBuilder",(function(e){return n(e,pm)}));function fm(e,t){var n=new gf.RunTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("runTaskConfigurationBuilder",(function(e){return n(e,fm)}));function hm(e,t){var n=new gf.RuntimeExpression(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("runtimeExpressionBuilder",(function(e){return n(e,hm)}));function mm(e,t){var n=new gf.RunWorkflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("runWorkflowBuilder",(function(e){return n(e,mm)}));function vm(e,t){var n=new gf.Schedule(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("scheduleBuilder",(function(e){return n(e,vm)}));function ym(e,t){var n=new gf.Schema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("schemaBuilder",(function(e){return n(e,ym)}));function wm(e,t){var n=new gf.SchemaExternal(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("schemaExternalBuilder",(function(e){return n(e,wm)}));function gm(e,t){var n=new gf.SchemaInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("schemaInlineBuilder",(function(e){return n(e,gm)}));function bm(e,t){var n=new gf.Script(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("scriptBuilder",(function(e){return n(e,bm)}));function km(e,t){var n=new gf.SecretBasedAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("secretBasedAuthenticationPolicyBuilder",(function(e){return n(e,km)}));function $m(e,t){var n=new gf.SetTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("setTaskBuilder",(function(e){return n(e,$m)}));function jm(e,t){var n=new gf.SetTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("setTaskConfigurationBuilder",(function(e){return n(e,jm)}));function Tm(e,t){var n=new gf.Shell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("shellBuilder",(function(e){return n(e,Tm)}));function Am(e,t){var n=new gf.ShellArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("shellArgumentsBuilder",(function(e){return n(e,Am)}));function Pm(e,t){var n=new gf.ShellEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("shellEnvironmentBuilder",(function(e){return n(e,Pm)}));function zm(e,t){var n=new gf.SubflowConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("subflowConfigurationBuilder",(function(e){return n(e,zm)}));function Em(e,t){var n=new gf.SubflowInput(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("subflowInputBuilder",(function(e){return n(e,Em)}));function Cm(e,t){var n=new gf.SwitchCase(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("switchCaseBuilder",(function(e){return n(e,Cm)}));function _m(e,t){var n=new gf.SwitchItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("switchItemBuilder",(function(e){return n(e,_m)}));function Sm(e,t){var n=new gf.SwitchTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("switchTaskBuilder",(function(e){return n(e,Sm)}));function Om(e,t){var n=new gf.SwitchTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("switchTaskConfigurationBuilder",(function(e){return n(e,Om)}));function xm(e,t){var n=new gf.Task(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("taskBuilder",(function(e){return n(e,xm)}));function Im(e,t){var n=new gf.TaskBase(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("taskBaseBuilder",(function(e){return n(e,Im)}));function Rm(e,t){var n=new gf.TaskBaseIf(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("taskBaseIfBuilder",(function(e){return n(e,Rm)}));function Nm(e,t){var n=new gf.TaskBaseTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("taskBaseTimeoutBuilder",(function(e){return n(e,Nm)}));function Dm(e,t){var n=new gf.TaskItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("taskItemBuilder",(function(e){return n(e,Dm)}));function Bm(e,t){var n=new gf.TaskList(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("taskListBuilder",(function(e){return o(e,Bm)}));function Mm(e,t){var n=new gf.TaskMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("taskMetadataBuilder",(function(e){return n(e,Mm)}));function Fm(e,t){var n=new gf.Timeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("timeoutBuilder",(function(e){return n(e,Fm)}));function qm(e,t){var n=new gf.TryTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("tryTaskBuilder",(function(e){return n(e,qm)}));function Um(e,t){var n=new gf.TryTaskCatch(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("tryTaskCatchBuilder",(function(e){return n(e,Um)}));function Lm(e,t){var n=new gf.TryTaskCatchRetry(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("tryTaskCatchRetryBuilder",(function(e){return n(e,Lm)}));function Wm(e,t){var n=new gf.UriTemplate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("uriTemplateBuilder",(function(e){return n(e,Wm)}));function Vm(e,t){var n=new gf.Use(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useBuilder",(function(e){return n(e,Vm)}));function Gm(e,t){var n=new gf.UseAuthentications(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useAuthenticationsBuilder",(function(e){return n(e,Gm)}));function Hm(e,t){var n=new gf.UseCatalogs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useCatalogsBuilder",(function(e){return n(e,Hm)}));function Km(e,t){var n=new gf.UseErrors(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useErrorsBuilder",(function(e){return n(e,Km)}));function Jm(e,t){var n=new gf.UseExtensions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useExtensionsBuilder",(function(e){return o(e,Jm)}));function Zm(e,t){var n=new gf.UseFunctions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useFunctionsBuilder",(function(e){return n(e,Zm)}));function Ym(e,t){var n=new gf.UseRetries(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useRetriesBuilder",(function(e){return n(e,Ym)}));function Qm(e,t){var n=new gf.UseSecrets(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useSecretsBuilder",(function(e){return o(e,Qm)}));function Xm(e,t){var n=new gf.UseTimeouts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useTimeoutsBuilder",(function(e){return n(e,Xm)}));function ev(e,t){var n=new gf.WaitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("waitTaskBuilder",(function(e){return n(e,ev)}));function tv(e,t){var n=new gf.WithAsyncAPIPayload(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("withAsyncAPIPayloadBuilder",(function(e){return n(e,tv)}));function nv(e,t){var n=new gf.WithEvent(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("withEventBuilder",(function(e){return n(e,nv)}));function ov(e,t){var n=new gf.WithGRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("withGRPCArgumentsBuilder",(function(e){return n(e,ov)}));function rv(e,t){var n=new gf.WithGRPCService(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("withGRPCServiceBuilder",(function(e){return n(e,rv)}));function iv(e,t){var n=new gf.WithHTTPBody(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("withHTTPBodyBuilder",(function(e){return n(e,iv)}));function av(e,t){var n=new gf.WithHTTPHeaders(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("withHTTPHeadersBuilder",(function(e){return n(e,av)}));function sv(e,t){var n=new gf.WithHTTPQuery(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("withHTTPQueryBuilder",(function(e){return n(e,sv)}));function lv(e,t){var n=new gf.WithOpenAPIParameters(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("withOpenAPIParametersBuilder",(function(e){return n(e,lv)}));function cv(e,t){var n=new gf.Workflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("workflowBuilder",(function(e){return n(e,cv)}));function uv(e,t){var n=new gf.WorkflowMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("workflowMetadataBuilder",(function(e){return n(e,uv)}));function dv(e,t){var n=new gf.WorkflowTags(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("workflowTagsBuilder",(function(e){return n(e,dv)}));function pv(e,t){var n=new gf.WorkflowTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("workflowTimeoutBuilder",(function(e){return n(e,pv)}));e("Specification",Object.freeze({__proto__:null}))}}}));
9
+ function Zu(e){return null==e}var Yu={isNothing:Zu,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:Zu(e)?[]:[e]},repeat:function(e,t){var n,o="";for(n=0;n<t;n+=1)o+=e;return o},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var n,o,r,i;if(t)for(n=0,o=(i=Object.keys(t)).length;n<o;n+=1)e[r=i[n]]=t[r];return e}};function Qu(e,t){var n="",o=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),o+" "+n):o}function Xu(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Qu(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}Xu.prototype=Object.create(Error.prototype),Xu.prototype.constructor=Xu,Xu.prototype.toString=function(e){return this.name+": "+Qu(this,e)};var ed=Xu;function td(e,t,n,o,r){var i="",a="",s=Math.floor(r/2)-1;return o-t>s&&(t=o-s+(i=" ... ").length),n-o>s&&(n=o+s-(a=" ...").length),{str:i+e.slice(t,n).replace(/\t/g,"→")+a,pos:o-t+i.length}}function nd(e,t){return Yu.repeat(" ",t-e.length)+e}var od=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,o=/\r?\n|\r|\0/g,r=[0],i=[],a=-1;n=o.exec(e.buffer);)i.push(n.index),r.push(n.index+n[0].length),e.position<=n.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var s,l,c="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(s=1;s<=t.linesBefore&&!(a-s<0);s++)l=td(e.buffer,r[a-s],i[a-s],e.position-(r[a]-r[a-s]),d),c=Yu.repeat(" ",t.indent)+nd((e.line-s+1).toString(),u)+" | "+l.str+"\n"+c;for(l=td(e.buffer,r[a],i[a],e.position,d),c+=Yu.repeat(" ",t.indent)+nd((e.line+1).toString(),u)+" | "+l.str+"\n",c+=Yu.repeat("-",t.indent+u+3+l.pos)+"^\n",s=1;s<=t.linesAfter&&!(a+s>=i.length);s++)l=td(e.buffer,r[a+s],i[a+s],e.position-(r[a]-r[a+s]),d),c+=Yu.repeat(" ",t.indent)+nd((e.line+s+1).toString(),u)+" | "+l.str+"\n";return c.replace(/\n$/,"")},rd=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],id=["scalar","sequence","mapping"];var ad=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===rd.indexOf(t))throw new ed('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===id.indexOf(this.kind))throw new ed('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function sd(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,o){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=o)})),n[t]=e})),n}function ld(e){return this.extend(e)}ld.prototype.extend=function(e){var t=[],n=[];if(e instanceof ad)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new ed("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof ad))throw new ed("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new ed("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new ed("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof ad))throw new ed("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var o=Object.create(ld.prototype);return o.implicit=(this.implicit||[]).concat(t),o.explicit=(this.explicit||[]).concat(n),o.compiledImplicit=sd(o,"implicit"),o.compiledExplicit=sd(o,"explicit"),o.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function o(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(o);return n}(o.compiledImplicit,o.compiledExplicit),o};var cd=new ld({explicit:[new ad("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),new ad("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),new ad("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})]});var ud=new ad("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var 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"});var dd=new ad("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var 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"});function pd(e){return 48<=e&&e<=55}function fd(e){return 48<=e&&e<=57}var hd=new ad("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=e.length,r=0,i=!1;if(!o)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===o)return!0;if("b"===(t=e[++r])){for(r++;r<o;r++)if("_"!==(t=e[r])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(r++;r<o;r++)if("_"!==(t=e[r])){if(!(48<=(n=e.charCodeAt(r))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(r++;r<o;r++)if("_"!==(t=e[r])){if(!pd(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;r<o;r++)if("_"!==(t=e[r])){if(!fd(e.charCodeAt(r)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,n=e,o=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(o=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return o*parseInt(n.slice(2),2);if("x"===n[1])return o*parseInt(n.slice(2),16);if("o"===n[1])return o*parseInt(n.slice(2),8)}return o*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!Yu.isNegativeZero(e)},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"]}}),md=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var vd=/^[-+]?[0-9]+e/;var yd=new ad("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!md.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".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(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||Yu.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Yu.isNegativeZero(e))return"-0.0";return n=e.toString(10),vd.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),wd=cd.extend({implicit:[ud,dd,hd,yd]}),gd=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),bd=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]))?))?$");var kd=new ad("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==gd.exec(e)||null!==bd.exec(e))},construct:function(e){var t,n,o,r,i,a,s,l,c=0,u=null;if(null===(t=gd.exec(e))&&(t=bd.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],o=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,o,r));if(i=+t[4],a=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),l=new Date(Date.UTC(n,o,r,i,a,s,c)),u&&l.setTime(l.getTime()-u),l},instanceOf:Date,represent:function(e){return e.toISOString()}});var $d=new ad("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),jd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Ad=new ad("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=0,r=e.length,i=jd;for(n=0;n<r;n++)if(!((t=i.indexOf(e.charAt(n)))>64)){if(t<0)return!1;o+=6}return o%8==0},construct:function(e){var t,n,o=e.replace(/[\r\n=]/g,""),r=o.length,i=jd,a=0,s=[];for(t=0;t<r;t++)t%4==0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|i.indexOf(o.charAt(t));return 0===(n=r%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,o="",r=0,i=e.length,a=jd;for(t=0;t<i;t++)t%3==0&&t&&(o+=a[r>>18&63],o+=a[r>>12&63],o+=a[r>>6&63],o+=a[63&r]),r=(r<<8)+e[t];return 0===(n=i%3)?(o+=a[r>>18&63],o+=a[r>>12&63],o+=a[r>>6&63],o+=a[63&r]):2===n?(o+=a[r>>10&63],o+=a[r>>4&63],o+=a[r<<2&63],o+=a[64]):1===n&&(o+=a[r>>2&63],o+=a[r<<4&63],o+=a[64],o+=a[64]),o}}),Td=Object.prototype.hasOwnProperty,Pd=Object.prototype.toString;var Ed=new ad("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,o,r,i,a=[],s=e;for(t=0,n=s.length;t<n;t+=1){if(o=s[t],i=!1,"[object Object]"!==Pd.call(o))return!1;for(r in o)if(Td.call(o,r)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==a.indexOf(r))return!1;a.push(r)}return!0},construct:function(e){return null!==e?e:[]}}),Cd=Object.prototype.toString;var zd=new ad("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,o,r,i,a=e;for(i=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(o=a[t],"[object Object]"!==Cd.call(o))return!1;if(1!==(r=Object.keys(o)).length)return!1;i[t]=[r[0],o[r[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,o,r,i,a=e;for(i=new Array(a.length),t=0,n=a.length;t<n;t+=1)o=a[t],r=Object.keys(o),i[t]=[r[0],o[r[0]]];return i}}),Sd=Object.prototype.hasOwnProperty;var _d=new ad("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(Sd.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),Od=wd.extend({implicit:[kd,$d],explicit:[Ad,Ed,zd,_d]}),xd=Object.prototype.hasOwnProperty,Id=1,Rd=2,Nd=3,Dd=4,Bd=1,Md=2,qd=3,Fd=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ud=/[\x85\u2028\u2029]/,Ld=/[,\[\]\{\}]/,Vd=/^(?:!|!!|![a-z\-]+!)$/i,Wd=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Gd(e){return Object.prototype.toString.call(e)}function Hd(e){return 10===e||13===e}function Kd(e){return 9===e||32===e}function Jd(e){return 9===e||32===e||10===e||13===e}function Zd(e){return 44===e||91===e||93===e||123===e||125===e}function Yd(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Qd(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function Xd(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var ep=new Array(256),tp=new Array(256),np=0;np<256;np++)ep[np]=Qd(np)?1:0,tp[np]=Qd(np);function op(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Od,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,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.firstTabInLine=-1,this.documents=[]}function rp(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=od(n),new ed(t,n)}function ip(e,t){throw rp(e,t)}function ap(e,t){e.onWarning&&e.onWarning.call(null,rp(e,t))}var sp={YAML:function(e,t,n){var o,r,i;null!==e.version&&ip(e,"duplication of %YAML directive"),1!==n.length&&ip(e,"YAML directive accepts exactly one argument"),null===(o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&ip(e,"ill-formed argument of the YAML directive"),r=parseInt(o[1],10),i=parseInt(o[2],10),1!==r&&ip(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&ap(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var o,r;2!==n.length&&ip(e,"TAG directive accepts exactly two arguments"),o=n[0],r=n[1],Vd.test(o)||ip(e,"ill-formed tag handle (first argument) of the TAG directive"),xd.call(e.tagMap,o)&&ip(e,'there is a previously declared suffix for "'+o+'" tag handle'),Wd.test(r)||ip(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){ip(e,"tag prefix is malformed: "+r)}e.tagMap[o]=r}};function lp(e,t,n,o){var r,i,a,s;if(t<n){if(s=e.input.slice(t,n),o)for(r=0,i=s.length;r<i;r+=1)9===(a=s.charCodeAt(r))||32<=a&&a<=1114111||ip(e,"expected valid JSON character");else Fd.test(s)&&ip(e,"the stream contains non-printable characters");e.result+=s}}function cp(e,t,n,o){var r,i,a,s;for(Yu.isObject(n)||ip(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(r=Object.keys(n)).length;a<s;a+=1)i=r[a],xd.call(t,i)||(t[i]=n[i],o[i]=!0)}function up(e,t,n,o,r,i,a,s,l){var c,u;if(Array.isArray(r))for(c=0,u=(r=Array.prototype.slice.call(r)).length;c<u;c+=1)Array.isArray(r[c])&&ip(e,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===Gd(r[c])&&(r[c]="[object Object]");if("object"==typeof r&&"[object Object]"===Gd(r)&&(r="[object Object]"),r=String(r),null===t&&(t={}),"tag:yaml.org,2002:merge"===o)if(Array.isArray(i))for(c=0,u=i.length;c<u;c+=1)cp(e,t,i[c],n);else cp(e,t,i,n);else e.json||xd.call(n,r)||!xd.call(t,r)||(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,ip(e,"duplicated mapping key")),"__proto__"===r?Object.defineProperty(t,r,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[r]=i,delete n[r];return t}function dp(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):ip(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function pp(e,t,n){for(var o=0,r=e.input.charCodeAt(e.position);0!==r;){for(;Kd(r);)9===r&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&35===r)do{r=e.input.charCodeAt(++e.position)}while(10!==r&&13!==r&&0!==r);if(!Hd(r))break;for(dp(e),r=e.input.charCodeAt(e.position),o++,e.lineIndent=0;32===r;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return-1!==n&&0!==o&&e.lineIndent<n&&ap(e,"deficient indentation"),o}function fp(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!Jd(t)))}function hp(e,t){1===t?e.result+=" ":t>1&&(e.result+=Yu.repeat("\n",t-1))}function mp(e,t){var n,o,r=e.tag,i=e.anchor,a=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),o=e.input.charCodeAt(e.position);0!==o&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,ip(e,"tab characters must not be used in indentation")),45===o)&&Jd(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,pp(e,!0,-1)&&e.lineIndent<=t)a.push(null),o=e.input.charCodeAt(e.position);else if(n=e.line,wp(e,t,Nd,!1,!0),a.push(e.result),pp(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==o)ip(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=r,e.anchor=i,e.kind="sequence",e.result=a,!0)}function vp(e){var t,n,o,r,i=!1,a=!1;if(33!==(r=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&ip(e,"duplication of a tag property"),60===(r=e.input.charCodeAt(++e.position))?(i=!0,r=e.input.charCodeAt(++e.position)):33===r?(a=!0,n="!!",r=e.input.charCodeAt(++e.position)):n="!",t=e.position,i){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&62!==r);e.position<e.length?(o=e.input.slice(t,e.position),r=e.input.charCodeAt(++e.position)):ip(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!Jd(r);)33===r&&(a?ip(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Vd.test(n)||ip(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),r=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),Ld.test(o)&&ip(e,"tag suffix cannot contain flow indicator characters")}o&&!Wd.test(o)&&ip(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch(t){ip(e,"tag name is malformed: "+o)}return i?e.tag=o:xd.call(e.tagMap,n)?e.tag=e.tagMap[n]+o:"!"===n?e.tag="!"+o:"!!"===n?e.tag="tag:yaml.org,2002:"+o:ip(e,'undeclared tag handle "'+n+'"'),!0}function yp(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&ip(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Jd(n)&&!Zd(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ip(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function wp(e,t,n,o,r){var i,a,s,l,c,u,d,p,f,h=1,m=!1,v=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=a=s=Dd===n||Nd===n,o&&pp(e,!0,-1)&&(m=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;vp(e)||yp(e);)pp(e,!0,-1)?(m=!0,s=i,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):s=!1;if(s&&(s=m||r),1!==h&&Dd!==n||(p=Id===n||Rd===n?t:t+1,f=e.position-e.lineStart,1===h?s&&(mp(e,f)||function(e,t,n){var o,r,i,a,s,l,c,u=e.tag,d=e.anchor,p={},f=Object.create(null),h=null,m=null,v=null,y=!1,w=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=p),c=e.input.charCodeAt(e.position);0!==c;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,ip(e,"tab characters must not be used in indentation")),o=e.input.charCodeAt(e.position+1),i=e.line,63!==c&&58!==c||!Jd(o)){if(a=e.line,s=e.lineStart,l=e.position,!wp(e,n,Rd,!1,!0))break;if(e.line===i){for(c=e.input.charCodeAt(e.position);Kd(c);)c=e.input.charCodeAt(++e.position);if(58===c)Jd(c=e.input.charCodeAt(++e.position))||ip(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(up(e,p,f,h,m,null,a,s,l),h=m=v=null),w=!0,y=!1,r=!1,h=e.tag,m=e.result;else{if(!w)return e.tag=u,e.anchor=d,!0;ip(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!w)return e.tag=u,e.anchor=d,!0;ip(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(up(e,p,f,h,m,null,a,s,l),h=m=v=null),w=!0,y=!0,r=!0):y?(y=!1,r=!0):ip(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=o;if((e.line===i||e.lineIndent>t)&&(y&&(a=e.line,s=e.lineStart,l=e.position),wp(e,t,Dd,!0,r)&&(y?m=e.result:v=e.result),y||(up(e,p,f,h,m,v,a,s,l),h=m=v=null),pp(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)ip(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&up(e,p,f,h,m,null,a,s,l),w&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=p),w}(e,f,p))||function(e,t){var n,o,r,i,a,s,l,c,u,d,p,f,h=!0,m=e.tag,v=e.anchor,y=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))a=93,c=!1,i=[];else{if(123!==f)return!1;a=125,c=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),f=e.input.charCodeAt(++e.position);0!==f;){if(pp(e,!0,t),(f=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=m,e.anchor=v,e.kind=c?"mapping":"sequence",e.result=i,!0;h?44===f&&ip(e,"expected the node content, but found ','"):ip(e,"missed comma between flow collection entries"),p=null,s=l=!1,63===f&&Jd(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,pp(e,!0,t)),n=e.line,o=e.lineStart,r=e.position,wp(e,t,Id,!1,!0),d=e.tag,u=e.result,pp(e,!0,t),f=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==f||(s=!0,f=e.input.charCodeAt(++e.position),pp(e,!0,t),wp(e,t,Id,!1,!0),p=e.result),c?up(e,i,y,d,u,p,n,o,r):s?i.push(up(e,null,y,d,u,p,n,o,r)):i.push(u),pp(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(h=!0,f=e.input.charCodeAt(++e.position)):h=!1}ip(e,"unexpected end of the stream within a flow collection")}(e,p)?v=!0:(a&&function(e,t){var n,o,r,i,a,s=Bd,l=!1,c=!1,u=t,d=0,p=!1;if(124===(i=e.input.charCodeAt(e.position)))o=!1;else{if(62!==i)return!1;o=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)Bd===s?s=43===i?qd:Md:ip(e,"repeat of a chomping mode identifier");else{if(!((r=48<=(a=i)&&a<=57?a-48:-1)>=0))break;0===r?ip(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?ip(e,"repeat of an indentation width identifier"):(u=t+r-1,c=!0)}if(Kd(i)){do{i=e.input.charCodeAt(++e.position)}while(Kd(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Hd(i)&&0!==i)}for(;0!==i;){for(dp(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!c||e.lineIndent<u)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>u&&(u=e.lineIndent),Hd(i))d++;else{if(e.lineIndent<u){s===qd?e.result+=Yu.repeat("\n",l?1+d:d):s===Bd&&l&&(e.result+="\n");break}for(o?Kd(i)?(p=!0,e.result+=Yu.repeat("\n",l?1+d:d)):p?(p=!1,e.result+=Yu.repeat("\n",d+1)):0===d?l&&(e.result+=" "):e.result+=Yu.repeat("\n",d):e.result+=Yu.repeat("\n",l?1+d:d),l=!0,c=!0,d=0,n=e.position;!Hd(i)&&0!==i;)i=e.input.charCodeAt(++e.position);lp(e,n,e.position,!1)}}return!0}(e,p)||function(e,t){var n,o,r;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,o=r=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(lp(e,o,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;o=e.position,e.position++,r=e.position}else Hd(n)?(lp(e,o,r,!0),hp(e,pp(e,!1,t)),o=r=e.position):e.position===e.lineStart&&fp(e)?ip(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);ip(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){var n,o,r,i,a,s,l;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return lp(e,n,e.position,!0),e.position++,!0;if(92===s){if(lp(e,n,e.position,!0),Hd(s=e.input.charCodeAt(++e.position)))pp(e,!1,t);else if(s<256&&ep[s])e.result+=tp[s],e.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(r=a,i=0;r>0;r--)(a=Yd(s=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:ip(e,"expected hexadecimal character");e.result+=Xd(i),e.position++}else ip(e,"unknown escape sequence");n=o=e.position}else Hd(s)?(lp(e,n,o,!0),hp(e,pp(e,!1,t)),n=o=e.position):e.position===e.lineStart&&fp(e)?ip(e,"unexpected end of the document within a double quoted scalar"):(e.position++,o=e.position)}ip(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?v=!0:!function(e){var t,n,o;if(42!==(o=e.input.charCodeAt(e.position)))return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!Jd(o)&&!Zd(o);)o=e.input.charCodeAt(++e.position);return e.position===t&&ip(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),xd.call(e.anchorMap,n)||ip(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],pp(e,!0,-1),!0}(e)?function(e,t,n){var o,r,i,a,s,l,c,u,d=e.kind,p=e.result;if(Jd(u=e.input.charCodeAt(e.position))||Zd(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(Jd(o=e.input.charCodeAt(e.position+1))||n&&Zd(o)))return!1;for(e.kind="scalar",e.result="",r=i=e.position,a=!1;0!==u;){if(58===u){if(Jd(o=e.input.charCodeAt(e.position+1))||n&&Zd(o))break}else if(35===u){if(Jd(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&fp(e)||n&&Zd(u))break;if(Hd(u)){if(s=e.line,l=e.lineStart,c=e.lineIndent,pp(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=s,e.lineStart=l,e.lineIndent=c;break}}a&&(lp(e,r,i,!1),hp(e,e.line-s),r=i=e.position,a=!1),Kd(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return lp(e,r,i,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,p,Id===n)&&(v=!0,null===e.tag&&(e.tag="?")):(v=!0,null===e.tag&&null===e.anchor||ip(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(v=s&&mp(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&ip(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((d=e.implicitTypes[l]).resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(xd.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,l=0,c=(u=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,u[l].tag.length)===u[l].tag){d=u[l];break}d||ip(e,"unknown tag !<"+e.tag+">"),null!==e.result&&d.kind!==e.kind&&ip(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):ip(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||v}function gp(e){var t,n,o,r,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(pp(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Jd(r);)r=e.input.charCodeAt(++e.position);for(o=[],(n=e.input.slice(t,e.position)).length<1&&ip(e,"directive name must not be less than one character in length");0!==r;){for(;Kd(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!Hd(r));break}if(Hd(r))break;for(t=e.position;0!==r&&!Jd(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}0!==r&&dp(e),xd.call(sp,n)?sp[n](e,n,o):ap(e,'unknown document directive "'+n+'"')}pp(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,pp(e,!0,-1)):a&&ip(e,"directives end mark is expected"),wp(e,e.lineIndent-1,Dd,!1,!0),pp(e,!0,-1),e.checkLineBreaks&&Ud.test(e.input.slice(i,e.position))&&ap(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&fp(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,pp(e,!0,-1)):e.position<e.length-1&&ip(e,"end of the stream or a document separator is expected")}function bp(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)));var n=new op(e,t),o=e.indexOf("\0");for(-1!==o&&(n.position=o,ip(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;)gp(n);return n.documents}var kp={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var o=bp(e,n);if("function"!=typeof t)return o;for(var r=0,i=o.length;r<i;r+=1)t(o[r])},load:function(e,t){var n=bp(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new ed("expected a single document in the stream, but found more")}}},$p=Object.prototype.toString,jp=Object.prototype.hasOwnProperty,Ap=65279,Tp=9,Pp=10,Ep=13,Cp=32,zp=33,Sp=34,_p=35,Op=37,xp=38,Ip=39,Rp=42,Np=44,Dp=45,Bp=58,Mp=61,qp=62,Fp=63,Up=64,Lp=91,Vp=93,Wp=96,Gp=123,Hp=124,Kp=125,Jp={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"},Zp=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Yp=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Qp(e){var t,n,o;if(t=e.toString(16).toUpperCase(),e<=255)n="x",o=2;else if(e<=65535)n="u",o=4;else{if(!(e<=4294967295))throw new ed("code point within a string may not be greater than 0xFFFFFFFF");n="U",o=8}return"\\"+n+Yu.repeat("0",o-t.length)+t}var Xp=1,ef=2;function tf(e){this.schema=e.schema||Od,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Yu.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,o,r,i,a,s,l;if(null===t)return{};for(n={},r=0,i=(o=Object.keys(t)).length;r<i;r+=1)a=o[r],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=e.compiledTypeMap.fallback[a])&&jp.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[a]=s;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?ef:Xp,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function nf(e,t){for(var n,o=Yu.repeat(" ",t),r=0,i=-1,a="",s=e.length;r<s;)-1===(i=e.indexOf("\n",r))?(n=e.slice(r),r=s):(n=e.slice(r,i+1),r=i+1),n.length&&"\n"!==n&&(a+=o),a+=n;return a}function of(e,t){return"\n"+Yu.repeat(" ",e.indent*t)}function rf(e){return e===Cp||e===Tp}function af(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==Ap||65536<=e&&e<=1114111}function sf(e){return af(e)&&e!==Ap&&e!==Ep&&e!==Pp}function lf(e,t,n){var o=sf(e),r=o&&!rf(e);return(n?o:o&&e!==Np&&e!==Lp&&e!==Vp&&e!==Gp&&e!==Kp)&&e!==_p&&!(t===Bp&&!r)||sf(t)&&!rf(t)&&e===_p||t===Bp&&r}function cf(e,t){var n,o=e.charCodeAt(t);return o>=55296&&o<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(o-55296)+n-56320+65536:o}function uf(e){return/^\n* /.test(e)}var df=1,pf=2,ff=3,hf=4,mf=5;function vf(e,t,n,o,r,i,a,s){var l,c,u=0,d=null,p=!1,f=!1,h=-1!==o,m=-1,v=af(c=cf(e,0))&&c!==Ap&&!rf(c)&&c!==Dp&&c!==Fp&&c!==Bp&&c!==Np&&c!==Lp&&c!==Vp&&c!==Gp&&c!==Kp&&c!==_p&&c!==xp&&c!==Rp&&c!==zp&&c!==Hp&&c!==Mp&&c!==qp&&c!==Ip&&c!==Sp&&c!==Op&&c!==Up&&c!==Wp&&function(e){return!rf(e)&&e!==Bp}(cf(e,e.length-1));if(t||a)for(l=0;l<e.length;u>=65536?l+=2:l++){if(!af(u=cf(e,l)))return mf;v=v&&lf(u,d,s),d=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if((u=cf(e,l))===Pp)p=!0,h&&(f=f||l-m-1>o&&" "!==e[m+1],m=l);else if(!af(u))return mf;v=v&&lf(u,d,s),d=u}f=f||h&&l-m-1>o&&" "!==e[m+1]}return p||f?n>9&&uf(e)?mf:a?i===ef?mf:pf:f?hf:ff:!v||a||r(e)?i===ef?mf:pf:df}function yf(e,t,n,o,r){e.dump=function(){if(0===t.length)return e.quotingType===ef?'""':"''";if(!e.noCompatMode&&(-1!==Zp.indexOf(t)||Yp.test(t)))return e.quotingType===ef?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=o||e.flowLevel>-1&&n>=e.flowLevel;switch(vf(t,s,e.indent,a,(function(t){return function(e,t){var n,o;for(n=0,o=e.implicitTypes.length;n<o;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!o,r)){case df:return t;case pf:return"'"+t.replace(/'/g,"''")+"'";case ff:return"|"+wf(t,e.indent)+gf(nf(t,i));case hf:return">"+wf(t,e.indent)+gf(nf(function(e,t){var n,o,r=/(\n+)([^\n]*)/g,i=(s=e.indexOf("\n"),s=-1!==s?s:e.length,r.lastIndex=s,bf(e.slice(0,s),t)),a="\n"===e[0]||" "===e[0];var s;for(;o=r.exec(e);){var l=o[1],c=o[2];n=" "===c[0],i+=l+(a||n||""===c?"":"\n")+bf(c,t),a=n}return i}(t,a),i));case mf:return'"'+function(e){for(var t,n="",o=0,r=0;r<e.length;o>=65536?r+=2:r++)o=cf(e,r),!(t=Jp[o])&&af(o)?(n+=e[r],o>=65536&&(n+=e[r+1])):n+=t||Qp(o);return n}(t)+'"';default:throw new ed("impossible error: invalid scalar style")}}()}function wf(e,t){var n=uf(e)?String(t):"",o="\n"===e[e.length-1];return n+(o&&("\n"===e[e.length-2]||"\n"===e)?"+":o?"":"-")+"\n"}function gf(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function bf(e,t){if(""===e||" "===e[0])return e;for(var n,o,r=/ [^ ]/g,i=0,a=0,s=0,l="";n=r.exec(e);)(s=n.index)-i>t&&(o=a>i?a:s,l+="\n"+e.slice(i,o),i=o+1),a=s;return l+="\n",e.length-i>t&&a>i?l+=e.slice(i,a)+"\n"+e.slice(a+1):l+=e.slice(i),l.slice(1)}function kf(e,t,n,o){var r,i,a,s="",l=e.tag;for(r=0,i=n.length;r<i;r+=1)a=n[r],e.replacer&&(a=e.replacer.call(n,String(r),a)),(jf(e,t+1,a,!0,!0,!1,!0)||void 0===a&&jf(e,t+1,null,!0,!0,!1,!0))&&(o&&""===s||(s+=of(e,t)),e.dump&&Pp===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function $f(e,t,n){var o,r,i,a,s,l;for(i=0,a=(r=n?e.explicitTypes:e.implicitTypes).length;i<a;i+=1)if(((s=r[i]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===$p.call(s.represent))o=s.represent(t,l);else{if(!jp.call(s.represent,l))throw new ed("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');o=s.represent[l](t,l)}e.dump=o}return!0}return!1}function jf(e,t,n,o,r,i,a){e.tag=null,e.dump=n,$f(e,n,!1)||$f(e,n,!0);var s,l=$p.call(e.dump),c=o;o&&(o=e.flowLevel<0||e.flowLevel>t);var u,d,p="[object Object]"===l||"[object Array]"===l;if(p&&(d=-1!==(u=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(r=!1),d&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(p&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===l)o&&0!==Object.keys(e.dump).length?(!function(e,t,n,o){var r,i,a,s,l,c,u="",d=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new ed("sortKeys must be a boolean or a function");for(r=0,i=p.length;r<i;r+=1)c="",o&&""===u||(c+=of(e,t)),s=n[a=p[r]],e.replacer&&(s=e.replacer.call(n,a,s)),jf(e,t+1,a,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&Pp===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=of(e,t)),jf(e,t+1,s,!0,l)&&(e.dump&&Pp===e.dump.charCodeAt(0)?c+=":":c+=": ",u+=c+=e.dump));e.tag=d,e.dump=u||"{}"}(e,t,e.dump,r),d&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var o,r,i,a,s,l="",c=e.tag,u=Object.keys(n);for(o=0,r=u.length;o<r;o+=1)s="",""!==l&&(s+=", "),e.condenseFlow&&(s+='"'),a=n[i=u[o]],e.replacer&&(a=e.replacer.call(n,i,a)),jf(e,t,i,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),jf(e,t,a,!1,!1)&&(l+=s+=e.dump));e.tag=c,e.dump="{"+l+"}"}(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===l)o&&0!==e.dump.length?(e.noArrayIndent&&!a&&t>0?kf(e,t-1,e.dump,r):kf(e,t,e.dump,r),d&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var o,r,i,a="",s=e.tag;for(o=0,r=n.length;o<r;o+=1)i=n[o],e.replacer&&(i=e.replacer.call(n,String(o),i)),(jf(e,t,i,!1,!1)||void 0===i&&jf(e,t,null,!1,!1))&&(""!==a&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}(e,t,e.dump),d&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(e.skipInvalid)return!1;throw new ed("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&yf(e,e.dump,t,i,c)}null!==e.tag&&"?"!==e.tag&&(s=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),s="!"===e.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",e.dump=s+" "+e.dump)}return!0}function Af(e,t){var n,o,r=[],i=[];for(Tf(e,r,i),n=0,o=i.length;n<o;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(o)}function Tf(e,t,n){var o,r,i;if(null!==e&&"object"==typeof e)if(-1!==(r=t.indexOf(e)))-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,i=e.length;r<i;r+=1)Tf(e[r],t,n);else for(r=0,i=(o=Object.keys(e)).length;r<i;r+=1)Tf(e[o[r]],t,n)}var Pf=kp.load,Ef={dump:function(e,t){var n=new tf(t=t||{});n.noRefs||Af(e,n);var o=e;return n.replacer&&(o=n.replacer.call({"":o},"",o)),jf(n,0,o,!0,!0)?n.dump+"\n":""}}.dump,Cf=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return l(t)&&("object"==typeof t.document&&(i.document=new uc(t.document)),"object"==typeof t.input&&(i.input=new Xs(t.input)),"object"==typeof t.use&&(i.use=new Gu(t.use)),"object"==typeof t.do&&(i.do=new qc(t.do)),"object"==typeof t.timeout&&(i.timeout=new Ju(t.timeout)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.schedule&&(i.schedule=new zu(t.schedule))),null===(o=null===(n=m("Workflow"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Workflow",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=m("Workflow"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t.deserialize=function(e){var n=Pf(e);return Ha("Workflow",n),new t(n)},t.serialize=function(e,n,o){void 0===n&&(n="yaml"),void 0===o&&(o=!0);var r=new t(e);r.validate();var i=o?r.normalize():r;return"json"===n?JSON.stringify(i):Ef(i)},t.prototype.serialize=function(e,n){return void 0===e&&(e="yaml"),void 0===n&&(n=!0),t.serialize(this,e,n)},t}(u),zf=e("Classes",{AllEventConsumptionStrategy:os,AllEventConsumptionStrategyConfiguration:ts,AnyEventConsumptionStrategy:cs,AnyEventConsumptionStrategyConfiguration:is,AnyEventConsumptionStrategyUntil:ss,AnyEventUntilConsumed:ds,AsyncApiArguments:fs,AuthenticationPolicy:xs,AuthenticationPolicyReference:Rs,BasicAuthenticationPolicy:Ds,BasicAuthenticationPolicyConfiguration:ms,BasicAuthenticationProperties:Ms,BearerAuthenticationPolicy:Fs,BearerAuthenticationPolicyConfiguration:ys,BearerAuthenticationProperties:Ls,CallAsyncAPI:fl,CallFunction:yl,CallGRPC:Tl,CallHTTP:Rl,CallOpenAPI:Fl,CallTask:Ll,Catalog:Wl,CatchErrors:Jl,ConstantBackoff:Yl,Container:ic,ContainerEnvironment:oc,ContainerLifetime:rc,ContainerPorts:Xl,ContainerVolumes:tc,DigestAuthenticationPolicy:ac,DigestAuthenticationPolicyConfiguration:gs,DigestAuthenticationProperties:sc,Document:uc,DoTask:Fc,Duration:il,DurationInline:Uc,EmitEventDefinition:fc,EmitEventWith:pc,EmitTask:Lc,EmitTaskConfiguration:hc,Endpoint:Hs,EndpointConfiguration:Vc,EndpointUri:Wc,Error:Gc,ErrorFilter:Hl,ErrorInstance:Hc,ErrorType:Kc,EventConsumptionStrategy:vc,EventData:Jc,EventDataschema:Zc,EventFilter:Xa,EventFilterCorrelate:Ya,EventSource:Yc,EventTime:Qc,ExponentialBackOff:Xc,Export:ol,ExportAs:eu,Extension:tu,ExtensionItem:nu,ExternalResource:Js,ExternalScript:ou,FlowDirective:ru,ForkTask:iu,ForkTaskConfiguration:dc,ForTask:au,ForTaskConfiguration:mc,FunctionArguments:ml,GRPCArguments:jl,HTTPArguments:xl,HTTPBody:zl,HTTPHeaders:El,HTTPQuery:_l,InlineScript:su,Input:Xs,InputFrom:lu,LinearBackoff:cu,ListenTask:uu,ListenTaskConfiguration:yc,OAuth2AutenthicationData:du,OAuth2AutenthicationDataAudiences:pu,OAuth2AutenthicationDataClient:ks,OAuth2AutenthicationDataScopes:fu,OAuth2AuthenticationPolicy:hu,OAuth2AuthenticationPolicyConfiguration:zs,OAuth2AuthenticationPropertiesEndpoints:Es,OAuth2ConnectAuthenticationProperties:mu,OAuth2Issuers:vu,OAuth2TokenDefinition:Ts,OAuth2TokenRequest:js,OneEventConsumptionStrategy:yu,OpenAPIArguments:Ml,OpenIdConnectAuthenticationPolicy:wu,OpenIdConnectAuthenticationPolicyConfiguration:_s,OpenIdConnectAuthenticationProperties:gu,Output:tl,OutputAs:bu,RaiseTask:ku,RaiseTaskConfiguration:bc,RaiseTaskError:gc,ReferenceableAuthenticationPolicy:Ws,RetryBackoff:Oc,RetryLimit:Ic,RetryLimitAttempt:xc,RetryPolicy:$u,RetryPolicyJitter:Rc,RunContainer:ju,RunScript:Au,RunShell:Tu,RunTask:Pu,RunTaskConfiguration:Ec,RuntimeExpression:Eu,RunWorkflow:Cu,Schedule:zu,Schema:Ys,SchemaExternal:Su,SchemaInline:_u,Script:kc,SecretBasedAuthenticationPolicy:Ou,SetTask:xu,SetTaskConfiguration:Cc,Shell:Ac,ShellArguments:$c,ShellEnvironment:jc,SubflowConfiguration:Pc,SubflowInput:Tc,SubscriptionIterator:wc,SwitchCase:zc,SwitchItem:Sc,SwitchTask:Iu,SwitchTaskConfiguration:_c,Task:Bc,TaskBase:dl,TaskBaseIf:Ru,TaskItem:Mc,TaskList:qc,TaskMetadata:cl,TaskTimeout:sl,Timeout:Nu,TryTask:Du,TryTaskCatch:Dc,TryTaskCatchRetry:Nc,UriTemplate:Bu,Use:Gu,UseAuthentications:Mu,UseCatalogs:Wu,UseErrors:qu,UseExtensions:Fu,UseFunctions:Uu,UseRetries:Lu,UseSecrets:Hu,UseTimeouts:Vu,WaitTask:Ku,WithEvent:Ja,WithGRPCArguments:kl,WithGRPCService:gl,WithOpenAPIParameters:Dl,Workflow:Cf,WorkflowMetadata:cc,WorkflowTags:lc,WorkflowTimeout:Ju});function Sf(e,t){var n=new zf.AllEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("allEventConsumptionStrategyBuilder",(function(e){return n(e,Sf)}));function _f(e,t){var n=new zf.AllEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("allEventConsumptionStrategyConfigurationBuilder",(function(e){return o(e,_f)}));function Of(e,t){var n=new zf.AnyEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("anyEventConsumptionStrategyBuilder",(function(e){return n(e,Of)}));function xf(e,t){var n=new zf.AnyEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("anyEventConsumptionStrategyConfigurationBuilder",(function(e){return o(e,xf)}));function If(e,t){var n=new zf.AnyEventConsumptionStrategyUntil(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("anyEventConsumptionStrategyUntilBuilder",(function(e){return n(e,If)}));function Rf(e,t){var n=new zf.AnyEventUntilConsumed(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("anyEventUntilConsumedBuilder",(function(e){return n(e,Rf)}));function Nf(e,t){var n=new zf.AsyncApiArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("asyncApiArgumentsBuilder",(function(e){return n(e,Nf)}));function Df(e,t){var n=new zf.AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("authenticationPolicyBuilder",(function(e){return n(e,Df)}));function Bf(e,t){var n=new zf.AuthenticationPolicyReference(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("authenticationPolicyReferenceBuilder",(function(e){return n(e,Bf)}));function Mf(e,t){var n=new zf.BasicAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("basicAuthenticationPolicyBuilder",(function(e){return n(e,Mf)}));function qf(e,t){var n=new zf.BasicAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("basicAuthenticationPolicyConfigurationBuilder",(function(e){return n(e,qf)}));function Ff(e,t){var n=new zf.BasicAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("basicAuthenticationPropertiesBuilder",(function(e){return n(e,Ff)}));function Uf(e,t){var n=new zf.BearerAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("bearerAuthenticationPolicyBuilder",(function(e){return n(e,Uf)}));function Lf(e,t){var n=new zf.BearerAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("bearerAuthenticationPolicyConfigurationBuilder",(function(e){return n(e,Lf)}));function Vf(e,t){var n=new zf.BearerAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("bearerAuthenticationPropertiesBuilder",(function(e){return n(e,Vf)}));function Wf(e,t){var n=new zf.CallAsyncAPI(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("callAsyncAPIBuilder",(function(e){return n(e,Wf)}));function Gf(e,t){var n=new zf.CallFunction(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("callFunctionBuilder",(function(e){return n(e,Gf)}));function Hf(e,t){var n=new zf.CallGRPC(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("callGRPCBuilder",(function(e){return n(e,Hf)}));function Kf(e,t){var n=new zf.CallHTTP(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("callHTTPBuilder",(function(e){return n(e,Kf)}));function Jf(e,t){var n=new zf.CallOpenAPI(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("callOpenAPIBuilder",(function(e){return n(e,Jf)}));function Zf(e,t){var n=new zf.CallTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("callTaskBuilder",(function(e){return n(e,Zf)}));function Yf(e,t){var n=new zf.Catalog(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("catalogBuilder",(function(e){return n(e,Yf)}));function Qf(e,t){var n=new zf.CatchErrors(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("catchErrorsBuilder",(function(e){return n(e,Qf)}));function Xf(e,t){var n=new zf.ConstantBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("constantBackoffBuilder",(function(e){return n(e,Xf)}));function eh(e,t){var n=new zf.Container(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("containerBuilder",(function(e){return n(e,eh)}));function th(e,t){var n=new zf.ContainerEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("containerEnvironmentBuilder",(function(e){return n(e,th)}));function nh(e,t){var n=new zf.ContainerLifetime(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("containerLifetimeBuilder",(function(e){return n(e,nh)}));function oh(e,t){var n=new zf.ContainerPorts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("containerPortsBuilder",(function(e){return n(e,oh)}));function rh(e,t){var n=new zf.ContainerVolumes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("containerVolumesBuilder",(function(e){return n(e,rh)}));function ih(e,t){var n=new zf.DigestAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("digestAuthenticationPolicyBuilder",(function(e){return n(e,ih)}));function ah(e,t){var n=new zf.DigestAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("digestAuthenticationPolicyConfigurationBuilder",(function(e){return n(e,ah)}));function sh(e,t){var n=new zf.DigestAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("digestAuthenticationPropertiesBuilder",(function(e){return n(e,sh)}));function lh(e,t){var n=new zf.Document(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("documentBuilder",(function(e){return n(e,lh)}));function ch(e,t){var n=new zf.DoTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("doTaskBuilder",(function(e){return n(e,ch)}));function uh(e,t){var n=new zf.Duration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("durationBuilder",(function(e){return n(e,uh)}));function dh(e,t){var n=new zf.DurationInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("durationInlineBuilder",(function(e){return n(e,dh)}));function ph(e,t){var n=new zf.EmitEventDefinition(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("emitEventDefinitionBuilder",(function(e){return n(e,ph)}));function fh(e,t){var n=new zf.EmitEventWith(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("emitEventWithBuilder",(function(e){return n(e,fh)}));function hh(e,t){var n=new zf.EmitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("emitTaskBuilder",(function(e){return n(e,hh)}));function mh(e,t){var n=new zf.EmitTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("emitTaskConfigurationBuilder",(function(e){return n(e,mh)}));function vh(e,t){var n=new zf.Endpoint(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("endpointBuilder",(function(e){return n(e,vh)}));function yh(e,t){var n=new zf.EndpointConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("endpointConfigurationBuilder",(function(e){return n(e,yh)}));function wh(e,t){var n=new zf.EndpointUri(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("endpointUriBuilder",(function(e){return n(e,wh)}));function gh(e,t){var n=new zf.Error(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("errorBuilder",(function(e){return n(e,gh)}));function bh(e,t){var n=new zf.ErrorFilter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("errorFilterBuilder",(function(e){return n(e,bh)}));function kh(e,t){var n=new zf.ErrorInstance(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("errorInstanceBuilder",(function(e){return n(e,kh)}));function $h(e,t){var n=new zf.ErrorType(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("errorTypeBuilder",(function(e){return n(e,$h)}));function jh(e,t){var n=new zf.EventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("eventConsumptionStrategyBuilder",(function(e){return n(e,jh)}));function Ah(e,t){var n=new zf.EventData(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("eventDataBuilder",(function(e){return n(e,Ah)}));function Th(e,t){var n=new zf.EventDataschema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("eventDataschemaBuilder",(function(e){return n(e,Th)}));function Ph(e,t){var n=new zf.EventFilter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("eventFilterBuilder",(function(e){return n(e,Ph)}));function Eh(e,t){var n=new zf.EventFilterCorrelate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("eventFilterCorrelateBuilder",(function(e){return n(e,Eh)}));function Ch(e,t){var n=new zf.EventSource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("eventSourceBuilder",(function(e){return n(e,Ch)}));function zh(e,t){var n=new zf.EventTime(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("eventTimeBuilder",(function(e){return n(e,zh)}));function Sh(e,t){var n=new zf.ExponentialBackOff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("exponentialBackOffBuilder",(function(e){return n(e,Sh)}));function _h(e,t){var n=new zf.Export(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("exportBuilder",(function(e){return n(e,_h)}));function Oh(e,t){var n=new zf.ExportAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("exportAsBuilder",(function(e){return n(e,Oh)}));function xh(e,t){var n=new zf.Extension(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("extensionBuilder",(function(e){return n(e,xh)}));function Ih(e,t){var n=new zf.ExtensionItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("extensionItemBuilder",(function(e){return n(e,Ih)}));function Rh(e,t){var n=new zf.ExternalResource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("externalResourceBuilder",(function(e){return n(e,Rh)}));function Nh(e,t){var n=new zf.ExternalScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("externalScriptBuilder",(function(e){return n(e,Nh)}));function Dh(e,t){var n=new zf.FlowDirective(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("flowDirectiveBuilder",(function(e){return n(e,Dh)}));function Bh(e,t){var n=new zf.ForkTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("forkTaskBuilder",(function(e){return n(e,Bh)}));function Mh(e,t){var n=new zf.ForkTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("forkTaskConfigurationBuilder",(function(e){return n(e,Mh)}));function qh(e,t){var n=new zf.ForTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("forTaskBuilder",(function(e){return n(e,qh)}));function Fh(e,t){var n=new zf.ForTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("forTaskConfigurationBuilder",(function(e){return n(e,Fh)}));function Uh(e,t){var n=new zf.FunctionArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("functionArgumentsBuilder",(function(e){return n(e,Uh)}));function Lh(e,t){var n=new zf.GRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("gRPCArgumentsBuilder",(function(e){return n(e,Lh)}));function Vh(e,t){var n=new zf.HTTPArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("hTTPArgumentsBuilder",(function(e){return n(e,Vh)}));function Wh(e,t){var n=new zf.HTTPBody(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("hTTPBodyBuilder",(function(e){return n(e,Wh)}));function Gh(e,t){var n=new zf.HTTPHeaders(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("hTTPHeadersBuilder",(function(e){return n(e,Gh)}));function Hh(e,t){var n=new zf.HTTPQuery(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("hTTPQueryBuilder",(function(e){return n(e,Hh)}));function Kh(e,t){var n=new zf.InlineScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("inlineScriptBuilder",(function(e){return n(e,Kh)}));function Jh(e,t){var n=new zf.Input(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("inputBuilder",(function(e){return n(e,Jh)}));function Zh(e,t){var n=new zf.InputFrom(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("inputFromBuilder",(function(e){return n(e,Zh)}));function Yh(e,t){var n=new zf.LinearBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("linearBackoffBuilder",(function(e){return n(e,Yh)}));function Qh(e,t){var n=new zf.ListenTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("listenTaskBuilder",(function(e){return n(e,Qh)}));function Xh(e,t){var n=new zf.ListenTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("listenTaskConfigurationBuilder",(function(e){return n(e,Xh)}));function em(e,t){var n=new zf.OAuth2AutenthicationData(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2AutenthicationDataBuilder",(function(e){return n(e,em)}));function tm(e,t){var n=new zf.OAuth2AutenthicationDataAudiences(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2AutenthicationDataAudiencesBuilder",(function(e){return o(e,tm)}));function nm(e,t){var n=new zf.OAuth2AutenthicationDataClient(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2AutenthicationDataClientBuilder",(function(e){return n(e,nm)}));function om(e,t){var n=new zf.OAuth2AutenthicationDataScopes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2AutenthicationDataScopesBuilder",(function(e){return o(e,om)}));function rm(e,t){var n=new zf.OAuth2AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2AuthenticationPolicyBuilder",(function(e){return n(e,rm)}));function im(e,t){var n=new zf.OAuth2AuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2AuthenticationPolicyConfigurationBuilder",(function(e){return n(e,im)}));function am(e,t){var n=new zf.OAuth2AuthenticationPropertiesEndpoints(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2AuthenticationPropertiesEndpointsBuilder",(function(e){return n(e,am)}));function sm(e,t){var n=new zf.OAuth2ConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2ConnectAuthenticationPropertiesBuilder",(function(e){return n(e,sm)}));function lm(e,t){var n=new zf.OAuth2Issuers(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2IssuersBuilder",(function(e){return o(e,lm)}));function cm(e,t){var n=new zf.OAuth2TokenDefinition(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2TokenDefinitionBuilder",(function(e){return n(e,cm)}));function um(e,t){var n=new zf.OAuth2TokenRequest(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oAuth2TokenRequestBuilder",(function(e){return n(e,um)}));function dm(e,t){var n=new zf.OneEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("oneEventConsumptionStrategyBuilder",(function(e){return n(e,dm)}));function pm(e,t){var n=new zf.OpenAPIArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("openAPIArgumentsBuilder",(function(e){return n(e,pm)}));function fm(e,t){var n=new zf.OpenIdConnectAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("openIdConnectAuthenticationPolicyBuilder",(function(e){return n(e,fm)}));function hm(e,t){var n=new zf.OpenIdConnectAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("openIdConnectAuthenticationPolicyConfigurationBuilder",(function(e){return n(e,hm)}));function mm(e,t){var n=new zf.OpenIdConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("openIdConnectAuthenticationPropertiesBuilder",(function(e){return n(e,mm)}));function vm(e,t){var n=new zf.Output(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("outputBuilder",(function(e){return n(e,vm)}));function ym(e,t){var n=new zf.OutputAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("outputAsBuilder",(function(e){return n(e,ym)}));function wm(e,t){var n=new zf.RaiseTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("raiseTaskBuilder",(function(e){return n(e,wm)}));function gm(e,t){var n=new zf.RaiseTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("raiseTaskConfigurationBuilder",(function(e){return n(e,gm)}));function bm(e,t){var n=new zf.RaiseTaskError(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("raiseTaskErrorBuilder",(function(e){return n(e,bm)}));function km(e,t){var n=new zf.ReferenceableAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("referenceableAuthenticationPolicyBuilder",(function(e){return n(e,km)}));function $m(e,t){var n=new zf.RetryBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("retryBackoffBuilder",(function(e){return n(e,$m)}));function jm(e,t){var n=new zf.RetryLimit(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("retryLimitBuilder",(function(e){return n(e,jm)}));function Am(e,t){var n=new zf.RetryLimitAttempt(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("retryLimitAttemptBuilder",(function(e){return n(e,Am)}));function Tm(e,t){var n=new zf.RetryPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("retryPolicyBuilder",(function(e){return n(e,Tm)}));function Pm(e,t){var n=new zf.RetryPolicyJitter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("retryPolicyJitterBuilder",(function(e){return n(e,Pm)}));function Em(e,t){var n=new zf.RunContainer(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("runContainerBuilder",(function(e){return n(e,Em)}));function Cm(e,t){var n=new zf.RunScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("runScriptBuilder",(function(e){return n(e,Cm)}));function zm(e,t){var n=new zf.RunShell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("runShellBuilder",(function(e){return n(e,zm)}));function Sm(e,t){var n=new zf.RunTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("runTaskBuilder",(function(e){return n(e,Sm)}));function _m(e,t){var n=new zf.RunTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("runTaskConfigurationBuilder",(function(e){return n(e,_m)}));function Om(e,t){var n=new zf.RuntimeExpression(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("runtimeExpressionBuilder",(function(e){return n(e,Om)}));function xm(e,t){var n=new zf.RunWorkflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("runWorkflowBuilder",(function(e){return n(e,xm)}));function Im(e,t){var n=new zf.Schedule(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("scheduleBuilder",(function(e){return n(e,Im)}));function Rm(e,t){var n=new zf.Schema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("schemaBuilder",(function(e){return n(e,Rm)}));function Nm(e,t){var n=new zf.SchemaExternal(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("schemaExternalBuilder",(function(e){return n(e,Nm)}));function Dm(e,t){var n=new zf.SchemaInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("schemaInlineBuilder",(function(e){return n(e,Dm)}));function Bm(e,t){var n=new zf.Script(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("scriptBuilder",(function(e){return n(e,Bm)}));function Mm(e,t){var n=new zf.SecretBasedAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("secretBasedAuthenticationPolicyBuilder",(function(e){return n(e,Mm)}));function qm(e,t){var n=new zf.SetTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("setTaskBuilder",(function(e){return n(e,qm)}));function Fm(e,t){var n=new zf.SetTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("setTaskConfigurationBuilder",(function(e){return n(e,Fm)}));function Um(e,t){var n=new zf.Shell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("shellBuilder",(function(e){return n(e,Um)}));function Lm(e,t){var n=new zf.ShellArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("shellArgumentsBuilder",(function(e){return n(e,Lm)}));function Vm(e,t){var n=new zf.ShellEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("shellEnvironmentBuilder",(function(e){return n(e,Vm)}));function Wm(e,t){var n=new zf.SubflowConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("subflowConfigurationBuilder",(function(e){return n(e,Wm)}));function Gm(e,t){var n=new zf.SubflowInput(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("subflowInputBuilder",(function(e){return n(e,Gm)}));function Hm(e,t){var n=new zf.SubscriptionIterator(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("subscriptionIteratorBuilder",(function(e){return n(e,Hm)}));function Km(e,t){var n=new zf.SwitchCase(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("switchCaseBuilder",(function(e){return n(e,Km)}));function Jm(e,t){var n=new zf.SwitchItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("switchItemBuilder",(function(e){return n(e,Jm)}));function Zm(e,t){var n=new zf.SwitchTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("switchTaskBuilder",(function(e){return n(e,Zm)}));function Ym(e,t){var n=new zf.SwitchTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("switchTaskConfigurationBuilder",(function(e){return n(e,Ym)}));function Qm(e,t){var n=new zf.Task(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("taskBuilder",(function(e){return n(e,Qm)}));function Xm(e,t){var n=new zf.TaskBase(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("taskBaseBuilder",(function(e){return n(e,Xm)}));function ev(e,t){var n=new zf.TaskBaseIf(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("taskBaseIfBuilder",(function(e){return n(e,ev)}));function tv(e,t){var n=new zf.TaskItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("taskItemBuilder",(function(e){return n(e,tv)}));function nv(e,t){var n=new zf.TaskList(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("taskListBuilder",(function(e){return o(e,nv)}));function ov(e,t){var n=new zf.TaskMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("taskMetadataBuilder",(function(e){return n(e,ov)}));function rv(e,t){var n=new zf.TaskTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("taskTimeoutBuilder",(function(e){return n(e,rv)}));function iv(e,t){var n=new zf.Timeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("timeoutBuilder",(function(e){return n(e,iv)}));function av(e,t){var n=new zf.TryTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("tryTaskBuilder",(function(e){return n(e,av)}));function sv(e,t){var n=new zf.TryTaskCatch(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("tryTaskCatchBuilder",(function(e){return n(e,sv)}));function lv(e,t){var n=new zf.TryTaskCatchRetry(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("tryTaskCatchRetryBuilder",(function(e){return n(e,lv)}));function cv(e,t){var n=new zf.UriTemplate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("uriTemplateBuilder",(function(e){return n(e,cv)}));function uv(e,t){var n=new zf.Use(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useBuilder",(function(e){return n(e,uv)}));function dv(e,t){var n=new zf.UseAuthentications(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useAuthenticationsBuilder",(function(e){return n(e,dv)}));function pv(e,t){var n=new zf.UseCatalogs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useCatalogsBuilder",(function(e){return n(e,pv)}));function fv(e,t){var n=new zf.UseErrors(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useErrorsBuilder",(function(e){return n(e,fv)}));function hv(e,t){var n=new zf.UseExtensions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useExtensionsBuilder",(function(e){return o(e,hv)}));function mv(e,t){var n=new zf.UseFunctions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useFunctionsBuilder",(function(e){return n(e,mv)}));function vv(e,t){var n=new zf.UseRetries(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useRetriesBuilder",(function(e){return n(e,vv)}));function yv(e,t){var n=new zf.UseSecrets(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useSecretsBuilder",(function(e){return o(e,yv)}));function wv(e,t){var n=new zf.UseTimeouts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("useTimeoutsBuilder",(function(e){return n(e,wv)}));function gv(e,t){var n=new zf.WaitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("waitTaskBuilder",(function(e){return n(e,gv)}));function bv(e,t){var n=new zf.WithEvent(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("withEventBuilder",(function(e){return n(e,bv)}));function kv(e,t){var n=new zf.WithGRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("withGRPCArgumentsBuilder",(function(e){return n(e,kv)}));function $v(e,t){var n=new zf.WithGRPCService(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("withGRPCServiceBuilder",(function(e){return n(e,$v)}));function jv(e,t){var n=new zf.WithOpenAPIParameters(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("withOpenAPIParametersBuilder",(function(e){return n(e,jv)}));function Av(e,t){var n=new zf.Workflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("workflowBuilder",(function(e){return n(e,Av)}));function Tv(e,t){var n=new zf.WorkflowMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("workflowMetadataBuilder",(function(e){return n(e,Tv)}));function Pv(e,t){var n=new zf.WorkflowTags(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("workflowTagsBuilder",(function(e){return n(e,Pv)}));function Ev(e,t){var n=new zf.WorkflowTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}e("workflowTimeoutBuilder",(function(e){return n(e,Ev)}));e("Specification",Object.freeze({__proto__:null}))}}}));
10
10
  //# sourceMappingURL=index.systemjs.min.js.map