@serverlessworkflow/sdk 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +136 -18
- package/esm/index.esm.js +569 -3
- package/esm/index.esm.js.map +1 -1
- package/esm/index.esm.min.js +6 -6
- package/esm/index.esm.min.js.map +1 -1
- package/lib/generated/classes/index.d.ts +2 -0
- package/lib/generated/classes/index.d.ts.map +1 -1
- package/lib/generated/classes/workflow.d.ts +25 -0
- package/lib/generated/classes/workflow.d.ts.map +1 -1
- package/lib/graph-builder.d.ts +74 -0
- package/lib/graph-builder.d.ts.map +1 -0
- package/lib/mermaid-converter.d.ts +21 -0
- package/lib/mermaid-converter.d.ts.map +1 -0
- package/package.json +1 -1
- package/serverless-workflow-sdk.d.ts +2 -0
- package/serverless-workflow-sdk.d.ts.map +1 -1
- package/systemjs/index.systemjs.js +573 -2
- package/systemjs/index.systemjs.js.map +1 -1
- package/systemjs/index.systemjs.min.js +7 -7
- package/systemjs/index.systemjs.min.js.map +1 -1
- package/umd/index.umd.js +571 -2
- package/umd/index.umd.js.map +1 -1
- package/umd/index.umd.min.js +7 -7
- package/umd/index.umd.min.js.map +1 -1
package/umd/index.umd.min.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).serverWorkflowSdk={})}(this,(function(e){"use strict";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
|
-
|| (${a} == "string" && ${
|
|
3
|
-
|| (${a} === "string" && ${
|
|
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
|
-
missingProperty: ${
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).serverWorkflowSdk={})}(this,(function(e){"use strict";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 r=new Proxy({},{get:function(t,o){return"build"===o?function(t){return null==(t=t||{}).validate&&(t.validate=!0),null==t.normalize&&(t.normalize=!0),n(e,t)}:function(t){return e[o.toString()]=t,r}},set:function(){return!1}});return r}function r(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 r=new Proxy({},{get:function(t,o){return"build"===o?function(t){return null==(t=t||{}).validate&&(t.validate=!0),null==t.normalize&&(t.normalize=!0),n(e,t)}:"push"===o?function(t){return e.push(t),r}:void 0},set:function(){return!1}});return r}var o=function(e,t){return o=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])},o(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}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var s,l,c=function(e){return!!e&&("object"==typeof e&&!Array.isArray(e))},u=function(e){return JSON.parse(JSON.stringify(e))},d=function(e){c(e)&&Object.assign(this,u(e))},p=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),f="1.0.0",h={preValidation:function(e){var t,n;if((null===(t=null==e?void 0:e.document)||void 0===t?void 0:t.dsl)!==f)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(f,"'."))}},m=new Map,v=function(e){return m.get(e)};function y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}s="Workflow",l=h,m.set(s,l);var w={exports:{}},g={},b={},k={},$={},j={},A={};!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 r 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 o(e,...t){const n=[e[0]];let o=0;for(;o<t.length;)s(n,t[o]),n.push(e[++o]);return new r(n)}e._Code=r,e.nil=new r(""),e._=o;const i=new r("+");function a(e,...t){const n=[c(e[0])];let o=0;for(;o<t.length;)n.push(i),s(n,t[o]),n.push(i,c(e[++o]));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 r(n)}function s(e,t){var o;t instanceof r?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof(o=t)||"boolean"==typeof o||null===o?o:c(Array.isArray(o)?o.join(","):o))}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 r(c(e))},e.safeStringify=c,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new r(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new r(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new r(e.toString())}}(A);var T={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=A;class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var r;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{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=o;class i extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=t._`.${new t.Name(n)}[${r}]`}}e.ValueScopeName=i;const a=t._`\n`;e.ValueScope=class extends o{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 r=this.toName(e),{prefix:o}=r,i=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[o];if(a){const e=a.get(i);if(e)return e}else a=this._values[o]=new Map;a.set(i,r);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,r.setValue(t,{property:o,itemIndex:l}),r}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(o,i,a={},s){let l=t.nil;for(const c in o){const u=o[c];if(!u)continue;const d=a[c]=a[c]||new Map;u.forEach((o=>{if(d.has(o))return;d.set(o,r.Started);let a=i(o);if(a){const n=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${n} ${o} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(o)))throw new n(o);l=t._`${l}${a}${this.opts._n}`}d.set(o,r.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=A,n=T;var r=A;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var o=T;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.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 r=e?n.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=_(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,r){super(e,n,r),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 r=n.length;for(;r--;){const o=n[r];o.optimizeNames(e,t)||(O(e,o.names),n.splice(r,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,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?n.varKinds.var:this.varKind,{name:r,from:o,to:i}=this;return`for(${t} ${r}=${o}; ${r}<${i}; ${r}++)`+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,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}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 j extends f{render(e){return"return "+super.render(e)}}j.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,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.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,r){return e instanceof t.Name?i(e):(o=e)instanceof t._Code&&o._items.some((e=>e instanceof t.Name&&1===n[e.str]&&void 0!==r[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 o;function i(e){const t=r[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,r){const o=this._scope.toName(t);return void 0!==n&&r&&(this._constants[o.str]=n),this._leafNode(new a(e,o,n)),o}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,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[r,o]of e)n.length>1&&n.push(","),n.push(r),(r!==o||this.opts.es5)&&(n.push(":"),(0,t.addCodeArg)(n,o));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,r,o,i=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const a=this._scope.toName(e);return this._for(new b(i,a,t,r),(()=>o(a)))}forOf(e,r,o,i=n.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=r instanceof t.Name?r:this.var("_arr",r);return this.forRange("_i",0,t._`${e}.length`,(n=>{this.var(a,t._`${e}[${n}]`),o(a)}))}return this._for(new k("of",i,a,r),(()=>o(a)))}forIn(e,r,o,i=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${r})`,o);const a=this._scope.toName(e);return this._for(new k("in",i,a,r),(()=>o(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 j;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(j)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new P;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new E(e),t(e)}return n&&(this._currNode=r.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,r,o){return this._blockNode(new $(e,n,r)),o&&this.code(o).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,r)=>n===t.nil?r:r===t.nil?n:t._`${D(n)} ${e} ${D(r)}`}function D(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(R)}}(j);var P={};Object.defineProperty(P,"__esModule",{value:!0}),P.checkStrictMode=P.getErrorPath=P.Type=P.useFunc=P.setEvaluated=P.evaluatedPropsToName=P.mergeEvaluated=P.eachItem=P.unescapeJsonPointer=P.escapeJsonPointer=P.escapeFragment=P.unescapeFragment=P.schemaRefOrVal=P.schemaHasRulesButRef=P.schemaHasRules=P.checkUnknownRules=P.alwaysValidSchema=P.toHash=void 0;const E=j,C=A;function z(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const o=r.RULES.keywords;for(const n in t)o[n]||B(e,`unknown keyword: "${n}"`)}function S(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 O(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function x({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:r}){return(o,i,a,s)=>{const l=void 0===a?i:a instanceof E.Name?(i instanceof E.Name?e(o,i,a):t(o,i,a),a):i instanceof E.Name?(t(o,a,i),i):n(i,a);return s!==E.Name||l instanceof E.Name?l:r(o,l)}}function I(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",E._`{}`);return void 0!==t&&R(e,n,t),n}function R(e,t,n){Object.keys(n).forEach((n=>e.assign(E._`${t}${(0,E.getProperty)(n)}`,!0)))}P.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},P.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(z(e,t),!S(t,e.self.RULES.all))},P.checkUnknownRules=z,P.schemaHasRules=S,P.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},P.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,r,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return E._`${n}`}return E._`${e}${t}${(0,E.getProperty)(r)}`},P.unescapeFragment=function(e){return O(decodeURIComponent(e))},P.escapeFragment=function(e){return encodeURIComponent(_(e))},P.escapeJsonPointer=_,P.unescapeJsonPointer=O,P.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},P.mergeEvaluated={props:x({mergeNames:(e,t,n)=>e.if(E._`${n} !== true && ${t} !== undefined`,(()=>{e.if(E._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,E._`${n} || {}`).code(E._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(E._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,E._`${n} || {}`),R(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:I}),items:x({mergeNames:(e,t,n)=>e.if(E._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,E._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(E._`${n} !== true`,(()=>e.assign(n,!0===t||E._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},P.evaluatedPropsToName=I,P.setEvaluated=R;const N={};var D;function B(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}P.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:N[t.code]||(N[t.code]=new C._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(D||(P.Type=D={})),P.getErrorPath=function(e,t,n){if(e instanceof E.Name){const r=t===D.Num;return n?r?E._`"[" + ${e} + "]"`:E._`"['" + ${e} + "']"`:r?E._`"/" + ${e}`:E._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,E.getProperty)(e).toString():"/"+_(e)},P.checkStrictMode=B;var M,F,q,U={};function L(){if(M)return U;M=1,Object.defineProperty(U,"__esModule",{value:!0});const e=j,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 U.default=t,U}function V(){return F||(F=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=j,n=P,r=L();function o(e,n){const o=e.const("err",n);e.if(t._`${r.default.vErrors} === null`,(()=>e.assign(r.default.vErrors,t._`[${o}]`)),t._`${r.default.vErrors}.push(${o})`),e.code(t._`${r.default.errors}++`)}function i(e,n){const{gen:r,validateName:o,schemaEnv:i}=e;i.$async?r.throw(t._`new ${e.ValidationError}(${n})`):(r.assign(t._`${o}.errors`,n),r.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,r=e.keywordError,a,l){const{it:c}=n,{gen:u,compositeRule:d,allErrors:p}=c,f=s(n,r,a);(null!=l?l:d||p)?o(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;o(c,s(t,n,a)),u||d||i(l,r.default.vErrors)},e.resetErrorsCount=function(e,n){e.assign(r.default.errors,n),e.if(t._`${r.default.vErrors} !== null`,(()=>e.if(n,(()=>e.assign(t._`${r.default.vErrors}.length`,n)),(()=>e.assign(r.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:n,schemaValue:o,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,r.default.errors,(a=>{e.const(l,t._`${r.default.vErrors}[${a}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(r.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${n}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),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,o){const{createErrors:i}=e.it;return!1===i?t._`{}`:function(e,n,o={}){const{gen:i,it:s}=e,u=[l(s,o),c(e,o)];return function(e,{params:n,message:o},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 o?o(e):o]);d.verbose&&i.push([a.schema,c],[a.parentSchema,t._`${f}${h}`],[r.default.data,l]);p&&i.push([a.propertyName,p])}(e,n,u),i.object(...u)}(e,n,o)}function l({errorPath:e},{instancePath:o}){const i=o?t.str`${e}${(0,n.getErrorPath)(o,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,i)]}function c({keyword:e,it:{errSchemaPath:r}},{schemaPath:o,parentSchema:i}){let s=i?r:t.str`${r}/${e}`;return o&&(s=t.str`${s}${(0,n.getErrorPath)(o,n.Type.Str)}`),[a.schemaPath,s]}}($)),$}var W={},G={};Object.defineProperty(G,"__esModule",{value:!0}),G.getRules=G.isJSONType=void 0;const H=new Set(["string","number","integer","boolean","null","object","array"]);G.isJSONType=function(e){return"string"==typeof e&&H.has(e)},G.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 K,J={};function Z(){if(K)return J;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 K=1,Object.defineProperty(J,"__esModule",{value:!0}),J.shouldUseRule=J.shouldUseGroup=J.schemaHasRulesForType=void 0,J.schemaHasRulesForType=function({schema:t,self:n},r){const o=n.RULES.types[r];return o&&!0!==o&&e(t,o)},J.shouldUseGroup=e,J.shouldUseRule=t,J}Object.defineProperty(W,"__esModule",{value:!0}),W.reportTypeError=W.checkDataTypes=W.checkDataType=W.coerceAndCheckDataType=W.getJSONTypes=W.getSchemaTypes=W.DataType=void 0;const Y=G,Q=Z(),X=V(),ee=j,te=P;var ne;function re(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(Y.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"}(ne||(W.DataType=ne={})),W.getSchemaTypes=function(e){const t=re(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=re,W.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,i=function(e,t){return t?e.filter((e=>oe.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),a=t.length>0&&!(0===i.length&&1===t.length&&(0,Q.schemaHasRulesForType)(e,t[0]));if(a){const a=ae(t,r,o.strictNumbers,ne.Wrong);n.if(a,(()=>{i.length?function(e,t,n){const{gen:r,data:o,opts:i}=e,a=r.let("dataType",ee._`typeof ${o}`),s=r.let("coerced",ee._`undefined`);"array"===i.coerceTypes&&r.if(ee._`${a} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>r.assign(o,ee._`${o}[0]`).assign(a,ee._`typeof ${o}`).if(ae(t,o,i.strictNumbers),(()=>r.assign(s,o)))));r.if(ee._`${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 r.elseIf(ee._`${a} == "number" || ${a} == "boolean"`).assign(s,ee._`"" + ${o}`).elseIf(ee._`${o} === null`).assign(s,ee._`""`);case"number":return void r.elseIf(ee._`${a} == "boolean" || ${o} === null
|
|
2
|
+
|| (${a} == "string" && ${o} && ${o} == +${o})`).assign(s,ee._`+${o}`);case"integer":return void r.elseIf(ee._`${a} === "boolean" || ${o} === null
|
|
3
|
+
|| (${a} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(s,ee._`+${o}`);case"boolean":return void r.elseIf(ee._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(s,!1).elseIf(ee._`${o} === "true" || ${o} === 1`).assign(s,!0);case"null":return r.elseIf(ee._`${o} === "" || ${o} === 0 || ${o} === false`),void r.assign(s,null);case"array":r.elseIf(ee._`${a} === "string" || ${a} === "number"
|
|
4
|
+
|| ${a} === "boolean" || ${o} === null`).assign(s,ee._`[${o}]`)}}r.else(),le(e),r.endIf(),r.if(ee._`${s} !== undefined`,(()=>{r.assign(o,s),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(ee._`${t} !== undefined`,(()=>e.assign(ee._`${t}[${n}]`,r)))}(e,s)}))}(e,t,i):le(e)}))}return a};const oe=new Set(["string","number","integer","boolean","null"]);function ie(e,t,n,r=ne.Correct){const o=r===ne.Correct?ee.operators.EQ:ee.operators.NEQ;let i;switch(e){case"null":return ee._`${t} ${o} null`;case"array":i=ee._`Array.isArray(${t})`;break;case"object":i=ee._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=a(ee._`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=a();break;default:return ee._`typeof ${t} ${o} ${e}`}return r===ne.Correct?i:(0,ee.not)(i);function a(e=ee.nil){return(0,ee.and)(ee._`typeof ${t} == "number"`,e,n?ee._`isFinite(${t})`:ee.nil)}}function ae(e,t,n,r){if(1===e.length)return ie(e[0],t,n,r);let o;const i=(0,te.toHash)(e);if(i.array&&i.object){const e=ee._`typeof ${t} != "object"`;o=i.null?e:ee._`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else o=ee.nil;i.number&&delete i.integer;for(const e in i)o=(0,ee.and)(o,ie(e,t,n,r));return o}W.checkDataType=ie,W.checkDataTypes=ae;const se={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?ee._`{type: ${e}}`:ee._`{type: ${t}}`};function le(e){const t=function(e){const{gen:t,data:n,schema:r}=e,o=(0,te.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:o,schemaValue:o,parentSchema:r,params:{},it:e}}(e);(0,X.reportError)(t,se)}W.reportTypeError=le;var ce,ue={};var de,pe,fe={},he={};function me(){if(de)return he;de=1,Object.defineProperty(he,"__esModule",{value:!0}),he.validateUnion=he.validateArray=he.usePattern=he.callValidateCode=he.schemaProperties=he.allSchemaProperties=he.noPropertyInData=he.propertyInData=he.isOwnProperty=he.hasPropFunc=he.reportMissingProp=he.checkMissingProp=he.checkReportMissingProp=void 0;const e=j,t=P,n=L(),r=P;function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function i(t,n,r){return e._`${o(t)}.call(${n}, ${r})`}function a(t,n,r,o){const a=e._`${n}${(0,e.getProperty)(r)} === undefined`;return o?(0,e.or)(a,(0,e.not)(i(t,n,r))):a}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}he.checkReportMissingProp=function(t,n){const{gen:r,data:o,it:i}=t;r.if(a(r,o,n,i.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${n}`},!0),t.error()}))},he.checkMissingProp=function({gen:t,data:n,it:{opts:r}},o,i){return(0,e.or)(...o.map((o=>(0,e.and)(a(t,n,o,r.ownProperties),e._`${i} = ${o}`))))},he.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},he.hasPropFunc=o,he.isOwnProperty=i,he.propertyInData=function(t,n,r,o){const a=e._`${n}${(0,e.getProperty)(r)} !== undefined`;return o?e._`${a} && ${i(t,n,r)}`:a},he.noPropertyInData=a,he.allSchemaProperties=s,he.schemaProperties=function(e,n){return s(n).filter((r=>!(0,t.alwaysValidSchema)(e,n[r])))},he.callValidateCode=function({schemaCode:t,data:r,it:{gen:o,topSchemaRef:i,schemaPath:a,errorPath:s},it:l},c,u,d){const p=d?e._`${t}, ${r}, ${i}${a}`:r,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}, ${o.object(...f)}`;return u!==e.nil?e._`${c}.call(${u}, ${h})`:e._`${c}(${h})`};const l=e._`new RegExp`;return he.usePattern=function({gen:t,it:{opts:n}},o){const i=n.unicodeRegExp?"u":"",{regExp:a}=n.code,s=a(o,i);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===a.code?l:(0,r.useFunc)(t,a)}(${o}, ${i})`})},he.validateArray=function(n){const{gen:r,data:o,keyword:i,it:a}=n,s=r.name("valid");if(a.allErrors){const e=r.let("valid",!0);return l((()=>r.assign(e,!1))),e}return r.var(s,!0),l((()=>r.break())),s;function l(a){const l=r.const("len",e._`${o}.length`);r.forRange("i",0,l,(o=>{n.subschema({keyword:i,dataProp:o,dataPropType:t.Type.Num},s),r.if((0,e.not)(s),a)}))}},he.validateUnion=function(n){const{gen:r,schema:o,keyword:i,it:a}=n;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some((e=>(0,t.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const s=r.let("valid",!1),l=r.name("_valid");r.block((()=>o.forEach(((t,o)=>{const a=n.subschema({keyword:i,schemaProp:o,compositeRule:!0},l);r.assign(s,e._`${s} || ${l}`);n.mergeValidEvaluated(a,l)||r.if((0,e.not)(s))})))),n.result(s,(()=>n.reset()),(()=>n.error(!0)))},he}function ve(){if(pe)return fe;pe=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.validateKeywordUsage=fe.validSchemaType=fe.funcKeywordCode=fe.macroKeywordCode=void 0;const e=j,t=L(),n=me(),r=V();function o(t){const{gen:n,data:r,it:o}=t;n.if(o.parentData,(()=>n.assign(r,e._`${o.parentData}[${o.parentDataProperty}]`)))}function i(t,n,r){if(void 0===r)throw new Error(`keyword "${n}" failed to compile`);return t.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,e.stringify)(r)})}return fe.macroKeywordCode=function(t,n){const{gen:r,keyword:o,schema:a,parentSchema:s,it:l}=t,c=n.macro.call(l.self,a,s,l),u=i(r,o,c);!1!==l.opts.validateSchema&&l.self.validateSchema(c,!0);const d=r.name("valid");t.subschema({schema:c,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:u,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},fe.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(r=(s.async?e._`await `:e.nil)){const o=h.opts.passContext?t.default.this:t.default.self,i=!("compile"in s&&!f||!1===s.schema);c.assign(y,e._`${r}${(0,n.callValidateCode)(a,v,o,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&&o(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&&o(a),g((()=>function(n,o){const{gen:i}=n;i.if(e._`Array.isArray(${o})`,(()=>{i.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,r.extendErrors)(n)}),(()=>n.error()))}(a,n)))}})),a.ok(null!==(l=s.valid)&&void 0!==l?l:y)},fe.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))},fe.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");const a=o.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(o.validateSchema){if(!o.validateSchema(e[i])){const e=`keyword "${i}" value is invalid at path "${r}": `+n.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},fe}var ye,we={};var ge={},be=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 r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))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((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},ke={exports:{}},$e=ke.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),je(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function je(e,t,n,r,o,i,a,s,l,c){if(r&&"object"==typeof r&&!Array.isArray(r)){for(var u in t(r,o,i,a,s,l,c),r){var d=r[u];if(Array.isArray(d)){if(u in $e.arrayKeywords)for(var p=0;p<d.length;p++)je(e,t,n,d[p],o+"/"+u+"/"+p,i,o,u,r,p)}else if(u in $e.propsKeywords){if(d&&"object"==typeof d)for(var f in d)je(e,t,n,d[f],o+"/"+u+"/"+Ae(f),i,o,u,r,f)}else(u in $e.keywords||e.allKeys&&!(u in $e.skipKeywords))&&je(e,t,n,d,o+"/"+u,i,o,u,r)}n(r,o,i,a,s,l,c)}}function Ae(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}$e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},$e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},$e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},$e.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=ke.exports;Object.defineProperty(ge,"__esModule",{value:!0}),ge.getSchemaRefs=ge.resolveUrl=ge.normalizeId=ge._getFullPath=ge.getFullPath=ge.inlineRef=void 0;const Pe=P,Ee=be,Ce=Te,ze=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);ge.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!_e(e):!!t&&Oe(e)<=t)};const Se=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function _e(e){for(const t in e){if(Se.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 Oe(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!ze.has(n)&&("object"==typeof e[n]&&(0,Pe.eachItem)(e[n],(e=>t+=Oe(e))),t===1/0))return 1/0}return t}function xe(e,t="",n){!1!==n&&(t=Ne(t));const r=e.parse(t);return Ie(e,r)}function Ie(e,t){return e.serialize(t).split("#")[0]+"#"}ge.getFullPath=xe,ge._getFullPath=Ie;const Re=/#\/?$/;function Ne(e){return e?e.replace(Re,""):""}ge.normalizeId=Ne,ge.resolveUrl=function(e,t,n){return n=Ne(n),e.resolve(t,n)};const De=/^[a-z_][-a-z0-9._]*$/i;var Be;function Me(){if(Be)return b;Be=1,Object.defineProperty(b,"__esModule",{value:!0}),b.getData=b.KeywordCxt=b.validateFunctionCode=void 0;const e=function(){if(q)return k;q=1,Object.defineProperty(k,"__esModule",{value:!0}),k.boolOrEmptySchema=k.topBoolOrEmptySchema=void 0;const e=V(),t=j,n=L(),r={message:"boolean schema is false"};function o(t,n){const{gen:o,data:i}=t,a={gen:o,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(a,r,void 0,n)}return k.topBoolOrEmptySchema=function(e){const{gen:r,schema:i,validateName:a}=e;!1===i?o(e,!1):"object"==typeof i&&!0===i.$async?r.return(n.default.data):(r.assign(t._`${a}.errors`,null),r.return(!0))},k.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),o(e)):n.var(t,!0)},k}(),t=W,n=Z(),r=W,o=function(){if(ce)return ue;ce=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.assignDefaults=void 0;const e=j,t=P;function n(n,r,o){const{gen:i,compositeRule:a,data:s,opts:l}=n;if(void 0===o)return;const c=e._`${s}${(0,e.getProperty)(r)}`;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)(o)}`)}return ue.assignDefaults=function(e,t){const{properties:r,items:o}=e.schema;if("object"===t&&r)for(const t in r)n(e,t,r[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,r)=>n(e,r,t.default)))},ue}(),i=ve(),a=function(){if(ye)return we;ye=1,Object.defineProperty(we,"__esModule",{value:!0}),we.extendSubschemaMode=we.extendSubschemaData=we.getSubschema=void 0;const e=j,t=P;return we.getSubschema=function(n,{keyword:r,schemaProp:o,schema:i,schemaPath:a,errSchemaPath:s,topSchemaRef:l}){if(void 0!==r&&void 0!==i)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==r){const i=n.schema[r];return void 0===o?{schema:i,schemaPath:e._`${n.schemaPath}${(0,e.getProperty)(r)}`,errSchemaPath:`${n.errSchemaPath}/${r}`}:{schema:i[o],schemaPath:e._`${n.schemaPath}${(0,e.getProperty)(r)}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${r}/${(0,t.escapeFragment)(o)}`}}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')},we.extendSubschemaData=function(n,r,{dataProp:o,dataPropType:i,data:a,dataTypes:s,propertyName:l}){if(void 0!==a&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=r;if(void 0!==o){const{errorPath:a,dataPathArr:s,opts:l}=r;u(c.let("data",e._`${r.data}${(0,e.getProperty)(o)}`,!0)),n.errorPath=e.str`${a}${(0,t.getErrorPath)(o,i,l.jsPropertySyntax)}`,n.parentDataProperty=e._`${o}`,n.dataPathArr=[...s,n.parentDataProperty]}function u(e){n.data=e,n.dataLevel=r.dataLevel+1,n.dataTypes=[],r.definedProperties=new Set,n.parentData=r.data,n.dataNames=[...r.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)},we.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:i}){void 0!==r&&(e.compositeRule=r),void 0!==o&&(e.createErrors=o),void 0!==i&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=n},we}(),s=j,l=L(),c=ge,u=P,d=V();function p({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},i){o.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,r.$async,(()=>{e.code(s._`"use strict"; ${f(n,o)}`),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,o),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}}={}`}(o)}`,r.$async,(()=>e.code(f(n,o)).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:r,opts:o}=e;o.$comment&&n.$comment&&g(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=r.const("_errs",l.default.errors);w(e,i),r.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:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function w(e,n){if(e.opts.jtd)return $(e,[],!1,n);const r=(0,t.getSchemaTypes)(e.schema);$(e,r,!(0,t.coerceAndCheckDataType)(e,r),n)}function g({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const i=n.$comment;if(!0===o.$comment)e.code(s._`${l.default.self}.logger.log(${i})`);else if("function"==typeof o.$comment){const n=s.str`${r}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${i}, ${n}, ${o}.schema)`)}}function $(e,t,o,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,r.checkDataType)(u.type,d,f.strictNumbers)),A(e,u),1===t.length&&t[0]===u.type&&o&&(a.else(),(0,r.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 r of e.dataTypes)E(t,r)?n.push(r):t.includes("integer")&&"number"===r&&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 r=e.self.RULES.all;for(const o in r){const i=r[o];if("object"==typeof i&&(0,n.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>T(t,e)))&&C(e,`missing type "${n.join(",")}" for keyword "${o}"`)}}}(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:r,schema:i,opts:{useDefaults:a}}=e;a&&(0,o.assignDefaults)(e,t.type),r.block((()=>{for(const r of t.rules)(0,n.shouldUseRule)(i,r)&&S(e,r.keyword,r.definition,t.type)}))}function T(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)}b.validateFunctionCode=function(t){v(t)&&(y(t),m(t))?function(e){const{schema:t,opts:n,gen:r}=e;p(e,(()=>{n.$comment&&t.$comment&&g(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),r.let(l.default.vErrors,null),r.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:r,ValidationError:o,opts:i}=e;n.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${o}(${l.default.vErrors})`))):(t.assign(s._`${r}.errors`,l.default.vErrors),i.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof s.Name&&e.assign(s._`${t}.props`,n);r instanceof s.Name&&e.assign(s._`${t}.items`,r)}(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:r,schemaType:o,def:i}=this;n.if((0,s.or)(s._`${r} === undefined`,t)),e!==s.nil&&n.assign(e,!0),(o.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:o,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,r.checkDataTypes)(e,t,i.opts.strictNumbers,r.DataType.Wrong)}`}return s.nil}(),function(){if(o.validateSchema){const n=e.scopeValue("validate$data",{ref:o.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 r={...this.it,...n,items:void 0,props:void 0};return h(r,t),r}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=u.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=u.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function S(e,t,n,r){const o=new z(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?(0,i.funcKeywordCode)(o,n):"macro"in n?(0,i.macroKeywordCode)(o,n):(n.compile||n.validate)&&(0,i.funcKeywordCode)(o,n)}b.KeywordCxt=z;const _=/^\/(?:[^~]|~0|~1)*$/,O=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function x(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,i;if(""===e)return l.default.rootData;if("/"===e[0]){if(!_.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=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(o=a[2],"#"===o){if(s>=t)throw new Error(d("property/index",s));return r[t-s]}if(s>t)throw new Error(d("data",s));if(i=n[t-s],!o)return i}let a=i;const c=o.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 b.getData=x,b}ge.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,o=Ne(e[n]||t),i={"":o},a=xe(r,o,!1),s={},l=new Set;return Ce(e,{allKeys:!0},((e,t,r,o)=>{if(void 0===o)return;const d=a+t;let p=i[o];function f(t){const n=this.opts.uriResolver.resolve;if(t=Ne(p?n(p,t):t),l.has(t))throw u(t);l.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?c(e,r.schema,t):t!==Ne(d)&&("#"===t[0]?(c(e,s[t],t),s[t]=e):this.refs[t]=d),t}function h(e){if("string"==typeof e){if(!De.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&&!Ee(e,t))throw u(n)}function u(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var Fe,qe={};function Ue(){if(Fe)return qe;Fe=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 Le,Ve={};function We(){if(Le)return Ve;Le=1,Object.defineProperty(Ve,"__esModule",{value:!0});const e=ge;class t extends Error{constructor(t,n,r,o){super(o||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,e.resolveUrl)(t,n,r),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return Ve.default=t,Ve}var Ge={};Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.resolveSchema=Ge.getCompilingSchema=Ge.resolveRef=Ge.compileSchema=Ge.SchemaEnv=void 0;const He=j,Ke=Ue(),Je=L(),Ze=ge,Ye=P,Qe=Me();class Xe{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,Ze.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 et(e){const t=nt.call(this,e);if(t)return t;const n=(0,Ze.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:o}=this.opts.code,{ownProperties:i}=this.opts,a=new He.CodeGen(this.scope,{es5:r,lines:o,ownProperties:i});let s;e.$async&&(s=a.scopeValue("Error",{ref:Ke.default,code:He._`require("ajv/dist/runtime/validation_error").default`}));const l=a.scopeName("validate");e.validateName=l;const c={gen:a,allErrors:this.opts.allErrors,data:Je.default.data,parentData:Je.default.parentData,parentDataProperty:Je.default.parentDataProperty,dataNames:[Je.default.data],dataPathArr:[He.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,He.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:He.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:He._`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Qe.validateFunctionCode)(c),a.optimize(this.opts.code.optimize);const t=a.toString();u=`${a.scopeRefs(Je.default.scope)}return ${t}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const n=new Function(`${Je.default.self}`,`${Je.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 He.Name?void 0:e,items:t instanceof He.Name?void 0:t,dynamicProps:e instanceof He.Name,dynamicItems:t instanceof He.Name},n.source&&(n.source.evaluated=(0,He.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 tt(e){return(0,Ze.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:et.call(this,e)}function nt(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function rt(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),r=(0,Ze._getFullPath)(this.opts.uriResolver,n);let o=(0,Ze.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return at.call(this,n,e);const i=(0,Ze.normalizeId)(r),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 at.call(this,n,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||et.call(this,a),i===(0,Ze.normalizeId)(t)){const{schema:t}=a,{schemaId:n}=this.opts,r=t[n];return r&&(o=(0,Ze.resolveUrl)(this.opts.uriResolver,o,r)),new Xe({schema:t,schemaId:n,root:e,baseId:o})}return at.call(this,n,a)}}Ge.SchemaEnv=Xe,Ge.compileSchema=et,Ge.resolveRef=function(e,t,n){var r;n=(0,Ze.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let i=rt.call(this,e,n);if(void 0===i){const o=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:a}=this.opts;o&&(i=new Xe({schema:o,schemaId:a,root:e,baseId:t}))}return void 0!==i?e.refs[n]=tt.call(this,i):void 0},Ge.getCompilingSchema=nt,Ge.resolveSchema=ot;const it=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function at(e,{baseId:t,schema:n,root:r}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,Ye.unescapeFragment)(r)];if(void 0===e)return;const o="object"==typeof(n=e)&&n[this.opts.schemaId];!it.has(r)&&o&&(t=(0,Ze.resolveUrl)(this.opts.uriResolver,t,o))}let i;if("boolean"!=typeof n&&n.$ref&&!(0,Ye.schemaHasRulesButRef)(n,this.RULES)){const e=(0,Ze.resolveUrl)(this.opts.uriResolver,t,n.$ref);i=ot.call(this,r,e)}const{schemaId:a}=this.opts;return i=i||new Xe({schema:n,schemaId:a,root:r,baseId:t}),i.schema!==i.root.schema?i:void 0}var st={$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},lt={},ct={exports:{}};var ut={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:dt}=ut;function pt(e){if(vt(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:mt(n,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function ft(e,t=!1){let n="",r=!0;for(const t of e){if(void 0===dt[t])return;"0"!==t&&!0===r&&(r=!1),r||(n+=t)}return t&&0===n.length&&(n="0"),n}function ht(e,t={}){if(vt(e,":")<2)return{host:e,isIPV6:!1};const n=function(e){let t=0;const n={error:!1,address:"",zone:""},r=[],o=[];let i=!1,a=!1,s=!1;function l(){if(o.length){if(!1===i){const e=ft(o);if(void 0===e)return n.error=!0,!1;r.push(e)}o.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 o.push(u);else{if(!0===a&&(s=!0),!l())break;if(t++,r.push(":"),t>7){n.error=!0;break}c-1>=0&&":"===e[c-1]&&(a=!0)}}return o.length&&(i?n.zone=o.join(""):s?r.push(o.join("")):r.push(ft(o))),n.address=r.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 mt(e,t){let n="",r=!0;const o=e.length;for(let i=0;i<o;i++){const a=e[i];"0"===a&&r?(i+1<=o&&e[i+1]===t||i+1===o)&&(n+=a,r=!1):(r=a===t,n+=a)}return n}function vt(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&n++;return n}const yt=/^\.\.?\//u,wt=/^\/\.(?:\/|$)/u,gt=/^\/\.\.(?:\/|$)/u,bt=/^\/?(?:.|\n)*?(?=\/|$)/u;var kt={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 r=pt(t);if(r.isIPV4)t=r.host;else{const n=ht(r.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(yt))e=e.replace(yt,"");else if(e.match(wt))e=e.replace(wt,"/");else if(e.match(gt))e=e.replace(gt,"/"),t.pop();else if("."===e||".."===e)e="";else{const n=e.match(bt);if(!n)throw new Error("Unexpected dot segment condition");{const r=n[0];e=e.slice(r.length),t.push(r)}}return t.join("")},normalizeIPv4:pt,normalizeIPv6:ht,stringArrayToHexStripped:ft};const $t=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,jt=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function At(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 Pt(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 Et={scheme:"http",domainHost:!0,parse:Tt,serialize:Pt},Ct={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=At(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(At(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}},zt={http:Et,https:{scheme:"https",domainHost:Et.domainHost,parse:Tt,serialize:Pt},ws:Ct,wss:{scheme:"wss",domainHost:Ct.domainHost,parse:Ct.parse,serialize:Ct.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(jt);if(n){const r=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const o=`${r}:${t.nid||e.nid}`,i=zt[o];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",r=e.nid.toLowerCase(),o=`${n}:${t.nid||r}`,i=zt[o];i&&(e=i.serialize(e,t));const a=e,s=e.nss;return a.path=`${r||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&&$t.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 St=zt;const{normalizeIPv6:_t,normalizeIPv4:Ot,removeDotSegments:xt,recomposeAuthority:It,normalizeComponentEncoding:Rt}=kt,Nt=St;function Dt(e,t,n,r){const o={};return r||(e=qt(Bt(e,n),n),t=qt(Bt(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=xt(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=xt(t.path||""),o.query=t.query):(t.path?("/"===t.path.charAt(0)?o.path=xt(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path:o.path="/"+t.path,o.path=xt(o.path)),o.query=t.query):(o.path=e.path,void 0!==t.query?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function Bt(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:""},r=Object.assign({},t),o=[],i=Nt[(r.scheme||n.scheme||"").toLowerCase()];i&&i.serialize&&i.serialize(n,r),void 0!==n.path&&(r.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),void 0!==n.scheme&&(n.path=n.path.split("%3A").join(":")))),"suffix"!==r.reference&&n.scheme&&(o.push(n.scheme),o.push(":"));const a=It(n,r);if(void 0!==a&&("suffix"!==r.reference&&o.push("//"),o.push(a),n.path&&"/"!==n.path.charAt(0)&&o.push("/")),void 0!==n.path){let e=n.path;r.absolutePath||i&&i.absolutePath||(e=xt(e)),void 0===a&&(e=e.replace(/^\/\//u,"/%2F")),o.push(e)}return void 0!==n.query&&(o.push("?"),o.push(n.query)),void 0!==n.fragment&&(o.push("#"),o.push(n.fragment)),o.join("")}const Mt=Array.from({length:127},((e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t))));const Ft=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function qt(e,t){const n=Object.assign({},t),r={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=-1!==e.indexOf("%");let i=!1;"suffix"===n.reference&&(e=(n.scheme?n.scheme+":":"")+"//"+e);const a=e.match(Ft);if(a){if(r.scheme=a[1],r.userinfo=a[3],r.host=a[4],r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=a[7],r.fragment=a[8],isNaN(r.port)&&(r.port=a[5]),r.host){const e=Ot(r.host);if(!1===e.isIPV4){const t=_t(e.host,{isIPV4:!1});r.host=t.host.toLowerCase(),i=t.isIPV6}else r.host=e.host,i=!0}void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",n.reference&&"suffix"!==n.reference&&n.reference!==r.reference&&(r.error=r.error||"URI is not a "+n.reference+" reference.");const e=Nt[(n.scheme||r.scheme||"").toLowerCase()];if(!(n.unicodeSupport||e&&e.unicodeSupport)&&r.host&&(n.domainHost||e&&e.domainHost)&&!1===i&&function(e){let t=0;for(let n=0,r=e.length;n<r;++n)if(t=e.charCodeAt(n),t>126||Mt[t])return!0;return!1}(r.host))try{r.host=URL.domainToASCII(r.host.toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII: "+e}(!e||e&&!e.skipNormalize)&&(o&&void 0!==r.scheme&&(r.scheme=unescape(r.scheme)),o&&void 0!==r.userinfo&&(r.userinfo=unescape(r.userinfo)),o&&void 0!==r.host&&(r.host=unescape(r.host)),void 0!==r.path&&r.path.length&&(r.path=escape(unescape(r.path))),void 0!==r.fragment&&r.fragment.length&&(r.fragment=encodeURI(decodeURIComponent(r.fragment)))),e&&e.parse&&e.parse(r,n)}else r.error=r.error||"URI can not be parsed.";return r}const Ut={SCHEMES:Nt,normalize:function(e,t){return"string"==typeof e?e=Bt(qt(e,t),t):"object"==typeof e&&(e=qt(Bt(e,t),t)),e},resolve:function(e,t,n){const r=Object.assign({scheme:"null"},n);return Bt(Dt(qt(e,r),qt(t,r),r,!0),{...r,skipEscape:!0})},resolveComponents:Dt,equal:function(e,t,n){return"string"==typeof e?(e=unescape(e),e=Bt(Rt(qt(e,n),!0),{...n,skipEscape:!0})):"object"==typeof e&&(e=Bt(Rt(e,!0),{...n,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=Bt(Rt(qt(t,n),!0),{...n,skipEscape:!0})):"object"==typeof t&&(t=Bt(Rt(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:Bt,parse:qt};ct.exports=Ut,ct.exports.default=Ut,ct.exports.fastUri=Ut;var Lt=ct.exports;Object.defineProperty(lt,"__esModule",{value:!0});const Vt=Lt;Vt.code='require("ajv/dist/runtime/uri").default',lt.default=Vt,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=Me();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=j;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 r=Ue(),o=We(),i=G,a=Ge,s=j,l=ge,c=W,u=P,d=st,p=lt,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,r,o,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!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:f,O=null!==(o=e.uriResolver)&&void 0!==o?o: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 r=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&&T.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),$.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=d;"id"===n&&(r={...d},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[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 r=n(t);return"$async"in n||(this.errors=n.errors),r}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 r.call(this,e,t);async function r(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 r.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.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,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!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 r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=k.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new a.SchemaEnv({schema:{},schemaId:n});if(t=a.resolveSchema.call(this,r,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 r={...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(n,0===r.type.length?e=>_.call(this,e,r):e=>r.type.forEach((t=>_.call(this,e,r,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 r of t){const t=r.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,i=o[e];r&&i&&(o[e]=R(i))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,o=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),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),r&&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,r="error"){for(const o in e){const i=o;i in t&&this.logger[r](`${n}: option ${o}. ${e[i]}`)}}function k(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function $(){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 T(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=r.default,g.MissingRefError=o.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 r;const o=null==t?void 0:t.post;if(n&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:i}=this;let a=o?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===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function O(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,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]}}}(g);var Wt={},Gt={},Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});const Kt={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Ht.default=Kt;var Jt={};Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.callRef=Jt.getValidate=void 0;const Zt=We(),Yt=me(),Qt=j,Xt=L(),en=Ge,tn=P,nn={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:i,validateName:a,opts:s,self:l}=r,{root:c}=i;if(("#"===n||"#/"===n)&&o===c.baseId)return function(){if(i===c)return on(e,a,i,i.$async);const n=t.scopeValue("root",{ref:c});return on(e,Qt._`${n}.validate`,c,c.$async)}();const u=en.resolveRef.call(l,c,o,n);if(void 0===u)throw new Zt.default(r.opts.uriResolver,o,n);return u instanceof en.SchemaEnv?function(t){const n=rn(e,t);on(e,n,t,t.$async)}(u):function(r){const o=t.scopeValue("schema",!0===s.code.source?{ref:r,code:(0,Qt.stringify)(r)}:{ref:r}),i=t.name("valid"),a=e.subschema({schema:r,dataTypes:[],schemaPath:Qt.nil,topSchemaRef:o,errSchemaPath:n},i);e.mergeEvaluated(a),e.ok(i)}(u)}};function rn(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):Qt._`${n.scopeValue("wrapper",{ref:t})}.validate`}function on(e,t,n,r){const{gen:o,it:i}=e,{allErrors:a,schemaEnv:s,opts:l}=i,c=l.passContext?Xt.default.this:Qt.nil;function u(e){const t=Qt._`${e}.errors`;o.assign(Xt.default.vErrors,Qt._`${Xt.default.vErrors} === null ? ${t} : ${Xt.default.vErrors}.concat(${t})`),o.assign(Xt.default.errors,Qt._`${Xt.default.vErrors}.length`)}function d(e){var t;if(!i.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==i.props)if(r&&!r.dynamicProps)void 0!==r.props&&(i.props=tn.mergeEvaluated.props(o,r.props,i.props));else{const t=o.var("props",Qt._`${e}.evaluated.props`);i.props=tn.mergeEvaluated.props(o,t,i.props,Qt.Name)}if(!0!==i.items)if(r&&!r.dynamicItems)void 0!==r.items&&(i.items=tn.mergeEvaluated.items(o,r.items,i.items));else{const t=o.var("items",Qt._`${e}.evaluated.items`);i.items=tn.mergeEvaluated.items(o,t,i.items,Qt.Name)}}r?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const n=o.let("valid");o.try((()=>{o.code(Qt._`await ${(0,Yt.callValidateCode)(e,t,c)}`),d(t),a||o.assign(n,!0)}),(e=>{o.if(Qt._`!(${e} instanceof ${i.ValidationError})`,(()=>o.throw(e))),u(e),a||o.assign(n,!1)})),e.ok(n)}():e.result((0,Yt.callValidateCode)(e,t,c),(()=>d(t)),(()=>u(t)))}Jt.getValidate=rn,Jt.callRef=on,Jt.default=nn,Object.defineProperty(Gt,"__esModule",{value:!0});const an=Jt,sn=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Ht.default,an.default];Gt.default=sn;var ln={},cn={};Object.defineProperty(cn,"__esModule",{value:!0});const un=j,dn=un.operators,pn={maximum:{okStr:"<=",ok:dn.LTE,fail:dn.GT},minimum:{okStr:">=",ok:dn.GTE,fail:dn.LT},exclusiveMaximum:{okStr:"<",ok:dn.LT,fail:dn.GTE},exclusiveMinimum:{okStr:">",ok:dn.GT,fail:dn.LTE}},fn={message:({keyword:e,schemaCode:t})=>un.str`must be ${pn[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>un._`{comparison: ${pn[e].okStr}, limit: ${t}}`},hn={keyword:Object.keys(pn),type:"number",schemaType:"number",$data:!0,error:fn,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data(un._`${n} ${pn[t].fail} ${r} || isNaN(${n})`)}};cn.default=hn;var mn={};Object.defineProperty(mn,"__esModule",{value:!0});const vn=j,yn={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>vn.str`must be multiple of ${e}`,params:({schemaCode:e})=>vn._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:r,it:o}=e,i=o.opts.multipleOfPrecision,a=t.let("res"),s=i?vn._`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:vn._`${a} !== parseInt(${a})`;e.fail$data(vn._`(${r} === 0 || (${a} = ${n}/${r}, ${s}))`)}};mn.default=yn;var wn={},gn={};function bn(e){const t=e.length;let n,r=0,o=0;for(;o<t;)r++,n=e.charCodeAt(o++),n>=55296&&n<=56319&&o<t&&(n=e.charCodeAt(o),56320==(64512&n)&&o++);return r}Object.defineProperty(gn,"__esModule",{value:!0}),gn.default=bn,bn.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(wn,"__esModule",{value:!0});const kn=j,$n=P,jn=gn,An={message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return kn.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>kn._`{limit: ${e}}`},Tn={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:An,code(e){const{keyword:t,data:n,schemaCode:r,it:o}=e,i="maxLength"===t?kn.operators.GT:kn.operators.LT,a=!1===o.opts.unicode?kn._`${n}.length`:kn._`${(0,$n.useFunc)(e.gen,jn.default)}(${n})`;e.fail$data(kn._`${a} ${i} ${r}`)}};wn.default=Tn;var Pn={};Object.defineProperty(Pn,"__esModule",{value:!0});const En=me(),Cn=j,zn={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>Cn.str`must match pattern "${e}"`,params:({schemaCode:e})=>Cn._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:i}=e,a=i.opts.unicodeRegExp?"u":"",s=n?Cn._`(new RegExp(${o}, ${a}))`:(0,En.usePattern)(e,r);e.fail$data(Cn._`!${s}.test(${t})`)}};Pn.default=zn;var Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});const _n=j,On={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}}`},xn={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:On,code(e){const{keyword:t,data:n,schemaCode:r}=e,o="maxProperties"===t?_n.operators.GT:_n.operators.LT;e.fail$data(_n._`Object.keys(${n}).length ${o} ${r}`)}};Sn.default=xn;var In={};Object.defineProperty(In,"__esModule",{value:!0});const Rn=me(),Nn=j,Dn=P,Bn={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>Nn.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>Nn._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:r,data:o,$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(Nn.nil,c);else for(const t of n)(0,Rn.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,r,(()=>{t.assign(i,(0,Rn.propertyInData)(t,o,n,s.ownProperties)),t.if((0,Nn.not)(i),(()=>{e.error(),t.break()}))}),Nn.nil)}(a,n))),e.ok(n)}else t.if((0,Rn.checkMissingProp)(e,n,a)),(0,Rn.reportMissingProp)(e,a),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${a.schemaEnv.baseId+a.errSchemaPath}" (strictRequired)`;(0,Dn.checkStrictMode)(a,t,a.opts.strictRequired)}}function c(){t.forOf("prop",r,(n=>{e.setParams({missingProperty:n}),t.if((0,Rn.noPropertyInData)(t,o,n,s.ownProperties),(()=>e.error()))}))}}};In.default=Bn;var Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});const Fn=j,qn={message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return Fn.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>Fn._`{limit: ${e}}`},Un={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:qn,code(e){const{keyword:t,data:n,schemaCode:r}=e,o="maxItems"===t?Fn.operators.GT:Fn.operators.LT;e.fail$data(Fn._`${n}.length ${o} ${r}`)}};Mn.default=Un;var Ln={},Vn={};Object.defineProperty(Vn,"__esModule",{value:!0});const Wn=be;Wn.code='require("ajv/dist/runtime/equal").default',Vn.default=Wn,Object.defineProperty(Ln,"__esModule",{value:!0});const Gn=W,Hn=j,Kn=P,Jn=Vn,Zn={message:({params:{i:e,j:t}})=>Hn.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>Hn._`{i: ${e}, j: ${t}}`},Yn={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Zn,code(e){const{gen:t,data:n,$data:r,schema:o,parentSchema:i,schemaCode:a,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),c=i.items?(0,Gn.getSchemaTypes)(i.items):[];function u(r,o){const i=t.name("item"),a=(0,Gn.checkDataTypes)(c,i,s.opts.strictNumbers,Gn.DataType.Wrong),u=t.const("indices",Hn._`{}`);t.for(Hn._`;${r}--;`,(()=>{t.let(i,Hn._`${n}[${r}]`),t.if(a,Hn._`continue`),c.length>1&&t.if(Hn._`typeof ${i} == "string"`,Hn._`${i} += "_"`),t.if(Hn._`typeof ${u}[${i}] == "number"`,(()=>{t.assign(o,Hn._`${u}[${i}]`),e.error(),t.assign(l,!1).break()})).code(Hn._`${u}[${i}] = ${r}`)}))}function d(r,o){const i=(0,Kn.useFunc)(t,Jn.default),a=t.name("outer");t.label(a).for(Hn._`;${r}--;`,(()=>t.for(Hn._`${o} = ${r}; ${o}--;`,(()=>t.if(Hn._`${i}(${n}[${r}], ${n}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(a)}))))))}e.block$data(l,(function(){const r=t.let("i",Hn._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(l,!0),t.if(Hn._`${r} > 1`,(()=>(c.length>0&&!c.some((e=>"object"===e||"array"===e))?u:d)(r,o)))}),Hn._`${a} === false`),e.ok(l)}};Ln.default=Yn;var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0});const Xn=j,er=P,tr=Vn,nr={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>Xn._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:r,schemaCode:o,schema:i}=e;r||i&&"object"==typeof i?e.fail$data(Xn._`!${(0,er.useFunc)(t,tr.default)}(${n}, ${o})`):e.fail(Xn._`${i} !== ${n}`)}};Qn.default=nr;var rr={};Object.defineProperty(rr,"__esModule",{value:!0});const or=j,ir=P,ar=Vn,sr={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>or._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:r,schema:o,schemaCode:i,it:a}=e;if(!r&&0===o.length)throw new Error("enum must have non-empty array");const s=o.length>=a.opts.loopEnum;let l;const c=()=>null!=l?l:l=(0,ir.useFunc)(t,ar.default);let u;if(s||r)u=t.let("valid"),e.block$data(u,(function(){t.assign(u,!1),t.forOf("v",i,(e=>t.if(or._`${c()}(${n}, ${e})`,(()=>t.assign(u,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",i);u=(0,or.or)(...o.map(((t,r)=>function(e,t){const r=o[t];return"object"==typeof r&&null!==r?or._`${c()}(${n}, ${e}[${t}])`:or._`${n} === ${r}`}(e,r))))}e.pass(u)}};rr.default=sr,Object.defineProperty(ln,"__esModule",{value:!0});const lr=mn,cr=wn,ur=Pn,dr=Sn,pr=In,fr=Mn,hr=Ln,mr=Qn,vr=rr,yr=[cn.default,lr.default,cr.default,ur.default,dr.default,pr.default,fr.default,hr.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},mr.default,vr.default];ln.default=yr;var wr={},gr={};Object.defineProperty(gr,"__esModule",{value:!0}),gr.validateAdditionalItems=void 0;const br=j,kr=P,$r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>br.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>br._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?jr(e,r):(0,kr.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function jr(e,t){const{gen:n,schema:r,data:o,keyword:i,it:a}=e;a.items=!0;const s=n.const("len",br._`${o}.length`);if(!1===r)e.setParams({len:t.length}),e.pass(br._`${s} <= ${t.length}`);else if("object"==typeof r&&!(0,kr.alwaysValidSchema)(a,r)){const r=n.var("valid",br._`${s} <= ${t.length}`);n.if((0,br.not)(r),(()=>function(r){n.forRange("i",t.length,s,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:kr.Type.Num},r),a.allErrors||n.if((0,br.not)(r),(()=>n.break()))}))}(r))),e.ok(r)}}gr.validateAdditionalItems=jr,gr.default=$r;var Ar={},Tr={};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.validateTuple=void 0;const Pr=j,Er=P,Cr=me(),zr={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return Sr(e,"additionalItems",t);n.items=!0,(0,Er.alwaysValidSchema)(n,t)||e.ok((0,Cr.validateArray)(e))}};function Sr(e,t,n=e.schema){const{gen:r,parentSchema:o,data:i,keyword:a,it:s}=e;!function(e){const{opts:r,errSchemaPath:o}=s,i=n.length,l=i===e.minItems&&(i===e.maxItems||!1===e[t]);if(r.strictTuples&&!l){const e=`"${a}" is ${i}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,Er.checkStrictMode)(s,e,r.strictTuples)}}(o),s.opts.unevaluated&&n.length&&!0!==s.items&&(s.items=Er.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",Pr._`${i}.length`);n.forEach(((t,n)=>{(0,Er.alwaysValidSchema)(s,t)||(r.if(Pr._`${c} > ${n}`,(()=>e.subschema({keyword:a,schemaProp:n,dataProp:n},l))),e.ok(l))}))}Tr.validateTuple=Sr,Tr.default=zr,Object.defineProperty(Ar,"__esModule",{value:!0});const _r=Tr,Or={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,_r.validateTuple)(e,"items")};Ar.default=Or;var xr={};Object.defineProperty(xr,"__esModule",{value:!0});const Ir=j,Rr=P,Nr=me(),Dr=gr,Br={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>Ir.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Ir._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,(0,Rr.alwaysValidSchema)(r,t)||(o?(0,Dr.validateAdditionalItems)(e,o):e.ok((0,Nr.validateArray)(e)))}};xr.default=Br;var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0});const Fr=j,qr=P,Ur={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?Fr.str`must contain at least ${e} valid item(s)`:Fr.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?Fr._`{minContains: ${e}}`:Fr._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:i}=e;let a,s;const{minContains:l,maxContains:c}=r;i.opts.next?(a=void 0===l?1:l,s=c):a=1;const u=t.const("len",Fr._`${o}.length`);if(e.setParams({min:a,max:s}),void 0===s&&0===a)return void(0,qr.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&a>s)return(0,qr.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,qr.alwaysValidSchema)(i,n)){let t=Fr._`${u} >= ${a}`;return void 0!==s&&(t=Fr._`${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(Fr._`${e}++`),void 0===s?t.if(Fr._`${e} >= ${a}`,(()=>t.assign(d,!0).break())):(t.if(Fr._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===a?t.assign(d,!0):t.if(Fr._`${e} >= ${a}`,(()=>t.assign(d,!0))))}(n)))))}function f(n,r){t.forRange("i",0,u,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:qr.Type.Num,compositeRule:!0},n),r()}))}void 0===s&&1===a?f(d,(()=>t.if(d,(()=>t.break())))):0===a?(t.let(d,!0),void 0!==s&&t.if(Fr._`${o}.length > 0`,p)):(t.let(d,!1),p()),e.result(d,(()=>e.reset()))}};Mr.default=Ur;var Lr={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=j,n=P,r=me();e.error={message:({params:{property:e,depsCount:n,deps:r}})=>{const o=1===n?"property":"properties";return t.str`must have ${o} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:n,deps:r,missingProperty:o}})=>t._`{property: ${e},
|
|
5
|
+
missingProperty: ${o},
|
|
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 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=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);
|
|
7
|
+
deps: ${r}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e){if("__proto__"===r)continue;(Array.isArray(e[r])?t:n)[r]=e[r]}return[t,n]}(e);i(e,t),a(e,n)}};function i(e,n=e.schema){const{gen:o,data:i,it:a}=e;if(0===Object.keys(n).length)return;const s=o.let("missing");for(const l in n){const c=n[l];if(0===c.length)continue;const u=(0,r.propertyInData)(o,i,l,a.opts.ownProperties);e.setParams({property:l,depsCount:c.length,deps:c.join(", ")}),a.allErrors?o.if(u,(()=>{for(const t of c)(0,r.checkReportMissingProp)(e,t)})):(o.if(t._`${u} && (${(0,r.checkMissingProp)(e,c,s)})`),(0,r.reportMissingProp)(e,s),o.else())}}function a(e,t=e.schema){const{gen:o,data:i,keyword:a,it:s}=e,l=o.name("valid");for(const c in t)(0,n.alwaysValidSchema)(s,t[c])||(o.if((0,r.propertyInData)(o,i,c,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:c},l);e.mergeValidEvaluated(t,l)}),(()=>o.var(l,!0))),e.ok(l))}e.validatePropertyDeps=i,e.validateSchemaDeps=a,e.default=o}(Lr);var Vr={};Object.defineProperty(Vr,"__esModule",{value:!0});const Wr=j,Gr=P,Hr={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>Wr._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,Gr.alwaysValidSchema)(o,n))return;const i=t.name("valid");t.forIn("key",r,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},i),t.if((0,Wr.not)(i),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(i)}};Vr.default=Hr;var Kr={};Object.defineProperty(Kr,"__esModule",{value:!0});const Jr=me(),Zr=j,Yr=L(),Qr=P,Xr={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>Zr._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:r,data:o,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,Qr.alwaysValidSchema)(a,n))return;const c=(0,Jr.allSchemaProperties)(r.properties),u=(0,Jr.allSchemaProperties)(r.patternProperties);function d(e){t.code(Zr._`delete ${o}[${e}]`)}function p(r){if("all"===l.removeAdditional||l.removeAdditional&&!1===n)d(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(s||t.break());if("object"==typeof n&&!(0,Qr.alwaysValidSchema)(a,n)){const n=t.name("valid");"failing"===l.removeAdditional?(f(r,n,!1),t.if((0,Zr.not)(n),(()=>{e.reset(),d(r)}))):(f(r,n),s||t.if((0,Zr.not)(n),(()=>t.break())))}}}function f(t,n,r){const o={keyword:"additionalProperties",dataProp:t,dataPropType:Qr.Type.Str};!1===r&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,n)}t.forIn("key",o,(n=>{c.length||u.length?t.if(function(n){let o;if(c.length>8){const e=(0,Qr.schemaRefOrVal)(a,r.properties,"properties");o=(0,Jr.isOwnProperty)(t,e,n)}else o=c.length?(0,Zr.or)(...c.map((e=>Zr._`${n} === ${e}`))):Zr.nil;return u.length&&(o=(0,Zr.or)(o,...u.map((t=>Zr._`${(0,Jr.usePattern)(e,t)}.test(${n})`)))),(0,Zr.not)(o)}(n),(()=>p(n))):p(n)})),e.ok(Zr._`${i} === ${Yr.default.errors}`)}};Kr.default=Xr;var eo={};Object.defineProperty(eo,"__esModule",{value:!0});const to=Me(),no=me(),ro=P,oo=Kr,io={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:o,it:i}=e;"all"===i.opts.removeAdditional&&void 0===r.additionalProperties&&oo.default.code(new to.KeywordCxt(i,oo.default,"additionalProperties"));const a=(0,no.allSchemaProperties)(n);for(const e of a)i.definedProperties.add(e);i.opts.unevaluated&&a.length&&!0!==i.props&&(i.props=ro.mergeEvaluated.props(t,(0,ro.toHash)(a),i.props));const s=a.filter((e=>!(0,ro.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,no.propertyInData)(t,o,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)}}};eo.default=io;var ao={};Object.defineProperty(ao,"__esModule",{value:!0});const so=me(),lo=j,co=P,uo=P,po={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:o,it:i}=e,{opts:a}=i,s=(0,so.allSchemaProperties)(n),l=s.filter((e=>(0,co.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&&o.properties,u=t.name("valid");!0===i.props||i.props instanceof lo.Name||(i.props=(0,uo.evaluatedPropsToName)(t,i.props));const{props:d}=i;function p(e){for(const t in c)new RegExp(e).test(t)&&(0,co.checkStrictMode)(i,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function f(n){t.forIn("key",r,(r=>{t.if(lo._`${(0,so.usePattern)(e,n)}.test(${r})`,(()=>{const o=l.includes(n);o||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:r,dataPropType:uo.Type.Str},u),i.opts.unevaluated&&!0!==d?t.assign(lo._`${d}[${r}]`,!0):o||i.allErrors||t.if((0,lo.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))}()}};ao.default=po;var fo={};Object.defineProperty(fo,"__esModule",{value:!0});const ho=P,mo={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,ho.alwaysValidSchema)(r,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};fo.default=mo;var vo={};Object.defineProperty(vo,"__esModule",{value:!0});const yo={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:me().validateUnion,error:{message:"must match a schema in anyOf"}};vo.default=yo;var wo={};Object.defineProperty(wo,"__esModule",{value:!0});const go=j,bo=P,ko={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>go._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:r,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&r.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,r)=>{let i;(0,bo.alwaysValidSchema)(o,n)?t.var(l,!0):i=e.subschema({keyword:"oneOf",schemaProp:r,compositeRule:!0},l),r>0&&t.if(go._`${l} && ${a}`).assign(a,!1).assign(s,go._`[${s}, ${r}]`).else(),t.if(l,(()=>{t.assign(a,!0),t.assign(s,r),i&&e.mergeEvaluated(i,go.Name)}))}))})),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}};wo.default=ko;var $o={};Object.defineProperty($o,"__esModule",{value:!0});const jo=P,Ao={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach(((t,n)=>{if((0,jo.alwaysValidSchema)(r,t))return;const i=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(i)}))}};$o.default=Ao;var To={};Object.defineProperty(To,"__esModule",{value:!0});const Po=j,Eo=P,Co={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>Po.str`must match "${e.ifClause}" schema`,params:({params:e})=>Po._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:r}=e;void 0===n.then&&void 0===n.else&&(0,Eo.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const o=zo(r,"then"),i=zo(r,"else");if(!o&&!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(),o&&i){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(s,l("then",n),l("else",n))}else o?t.if(s,l("then")):t.if((0,Po.not)(s),l("else"));function l(n,r){return()=>{const o=e.subschema({keyword:n},s);t.assign(a,s),e.mergeValidEvaluated(o,a),r?t.assign(r,Po._`${n}`):e.setParams({ifClause:n})}}e.pass(a,(()=>e.error(!0)))}};function zo(e,t){const n=e.schema[t];return void 0!==n&&!(0,Eo.alwaysValidSchema)(e,n)}To.default=Co;var So={};Object.defineProperty(So,"__esModule",{value:!0});const _o=P,Oo={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,_o.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};So.default=Oo,Object.defineProperty(wr,"__esModule",{value:!0});const xo=gr,Io=Ar,Ro=Tr,No=xr,Do=Mr,Bo=Lr,Mo=Vr,Fo=Kr,qo=eo,Uo=ao,Lo=fo,Vo=vo,Wo=wo,Go=$o,Ho=To,Ko=So;wr.default=function(e=!1){const t=[Lo.default,Vo.default,Wo.default,Go.default,Ho.default,Ko.default,Mo.default,Fo.default,Bo.default,qo.default,Uo.default];return e?t.push(Io.default,No.default):t.push(xo.default,Ro.default),t.push(Do.default),t};var Jo={},Zo={};Object.defineProperty(Zo,"__esModule",{value:!0}),Zo.dynamicAnchor=void 0;const Yo=j,Qo=L(),Xo=Ge,ei=Jt,ti={keyword:"$dynamicAnchor",schemaType:"string",code:e=>ni(e,e.schema)};function ni(e,t){const{gen:n,it:r}=e;r.schemaEnv.root.dynamicAnchors[t]=!0;const o=Yo._`${Qo.default.dynamicAnchors}${(0,Yo.getProperty)(t)}`,i="#"===r.errSchemaPath?r.validateName:function(e){const{schemaEnv:t,schema:n,self:r}=e.it,{root:o,baseId:i,localRefs:a,meta:s}=t.root,{schemaId:l}=r.opts,c=new Xo.SchemaEnv({schema:n,schemaId:l,root:o,baseId:i,localRefs:a,meta:s});return Xo.compileSchema.call(r,c),(0,ei.getValidate)(e,c)}(e);n.if(Yo._`!${o}`,(()=>n.assign(o,i)))}Zo.dynamicAnchor=ni,Zo.default=ti;var ri={};Object.defineProperty(ri,"__esModule",{value:!0}),ri.dynamicRef=void 0;const oi=j,ii=L(),ai=Jt,si={keyword:"$dynamicRef",schemaType:"string",code:e=>li(e,e.schema)};function li(e,t){const{gen:n,keyword:r,it:o}=e;if("#"!==t[0])throw new Error(`"${r}" only supports hash fragment reference`);const i=t.slice(1);if(o.allErrors)a();else{const t=n.let("valid",!1);a(t),e.ok(t)}function a(e){if(o.schemaEnv.root.dynamicAnchors[i]){const t=n.let("_v",oi._`${ii.default.dynamicAnchors}${(0,oi.getProperty)(i)}`);n.if(t,s(t,e),s(o.validateName,e))}else s(o.validateName,e)()}function s(t,r){return r?()=>n.block((()=>{(0,ai.callRef)(e,t),n.let(r,!0)})):()=>(0,ai.callRef)(e,t)}}ri.dynamicRef=li,ri.default=si;var ci={};Object.defineProperty(ci,"__esModule",{value:!0});const ui=Zo,di=P,pi={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,ui.dynamicAnchor)(e,""):(0,di.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};ci.default=pi;var fi={};Object.defineProperty(fi,"__esModule",{value:!0});const hi=ri,mi={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,hi.dynamicRef)(e,e.schema)};fi.default=mi,Object.defineProperty(Jo,"__esModule",{value:!0});const vi=ri,yi=ci,wi=fi,gi=[Zo.default,vi.default,yi.default,wi.default];Jo.default=gi;var bi={},ki={};Object.defineProperty(ki,"__esModule",{value:!0});const $i=Lr,ji={keyword:"dependentRequired",type:"object",schemaType:"object",error:$i.error,code:e=>(0,$i.validatePropertyDeps)(e)};ki.default=ji;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0});const Ti=Lr,Pi={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,Ti.validateSchemaDeps)(e)};Ai.default=Pi;var Ei={};Object.defineProperty(Ei,"__esModule",{value:!0});const Ci=P,zi={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:n}){void 0===t.contains&&(0,Ci.checkStrictMode)(n,`"${e}" without "contains" is ignored`)}};Ei.default=zi,Object.defineProperty(bi,"__esModule",{value:!0});const Si=Ai,_i=Ei,Oi=[ki.default,Si.default,_i.default];bi.default=Oi;var xi={},Ii={};Object.defineProperty(Ii,"__esModule",{value:!0});const Ri=j,Ni=P,Di=L(),Bi={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:e})=>Ri._`{unevaluatedProperty: ${e.unevaluatedProperty}}`},code(e){const{gen:t,schema:n,data:r,errsCount:o,it:i}=e;if(!o)throw new Error("ajv implementation error");const{allErrors:a,props:s}=i;function l(r){if(!1===n)return e.setParams({unevaluatedProperty:r}),e.error(),void(a||t.break());if(!(0,Ni.alwaysValidSchema)(i,n)){const n=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:r,dataPropType:Ni.Type.Str},n),a||t.if((0,Ri.not)(n),(()=>t.break()))}}s instanceof Ri.Name?t.if(Ri._`${s} !== true`,(()=>t.forIn("key",r,(e=>t.if(function(e,t){return Ri._`!${e} || !${e}[${t}]`}(s,e),(()=>l(e))))))):!0!==s&&t.forIn("key",r,(e=>void 0===s?l(e):t.if(function(e,t){const n=[];for(const r in e)!0===e[r]&&n.push(Ri._`${t} !== ${r}`);return(0,Ri.and)(...n)}(s,e),(()=>l(e))))),i.props=!0,e.ok(Ri._`${o} === ${Di.default.errors}`)}};Ii.default=Bi;var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});const Fi=j,qi=P,Ui={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:e}})=>Fi.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Fi._`{limit: ${e}}`},code(e){const{gen:t,schema:n,data:r,it:o}=e,i=o.items||0;if(!0===i)return;const a=t.const("len",Fi._`${r}.length`);if(!1===n)e.setParams({len:i}),e.fail(Fi._`${a} > ${i}`);else if("object"==typeof n&&!(0,qi.alwaysValidSchema)(o,n)){const n=t.var("valid",Fi._`${a} <= ${i}`);t.if((0,Fi.not)(n),(()=>function(n,r){t.forRange("i",r,a,(r=>{e.subschema({keyword:"unevaluatedItems",dataProp:r,dataPropType:qi.Type.Num},n),o.allErrors||t.if((0,Fi.not)(n),(()=>t.break()))}))}(n,i))),e.ok(n)}o.items=!0}};Mi.default=Ui,Object.defineProperty(xi,"__esModule",{value:!0});const Li=Mi,Vi=[Ii.default,Li.default];xi.default=Vi;var Wi={},Gi={};Object.defineProperty(Gi,"__esModule",{value:!0});const Hi=j,Ki={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>Hi.str`must match format "${e}"`,params:({schemaCode:e})=>Hi._`{format: ${e}}`},code(e,t){const{gen:n,data:r,$data:o,schema:i,schemaCode:a,it:s}=e,{opts:l,errSchemaPath:c,schemaEnv:u,self:d}=s;l.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:d.formats,code:l.code.formats}),i=n.const("fDef",Hi._`${o}[${a}]`),s=n.let("fType"),c=n.let("format");n.if(Hi._`typeof ${i} == "object" && !(${i} instanceof RegExp)`,(()=>n.assign(s,Hi._`${i}.type || "string"`).assign(c,Hi._`${i}.validate`)),(()=>n.assign(s,Hi._`"string"`).assign(c,i))),e.fail$data((0,Hi.or)(!1===l.strictSchema?Hi.nil:Hi._`${a} && !${c}`,function(){const e=u.$async?Hi._`(${i}.async ? await ${c}(${r}) : ${c}(${r}))`:Hi._`${c}(${r})`,n=Hi._`(typeof ${c} == "function" ? ${e} : ${c}.test(${r}))`;return Hi._`${c} && ${c} !== true && ${s} === ${t} && !${n}`}()))}():function(){const o=d.formats[i];if(!o)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===o)return;const[a,s,p]=function(e){const t=e instanceof RegExp?(0,Hi.regexpCode)(e):l.code.formats?Hi._`${l.code.formats}${(0,Hi.getProperty)(i)}`:void 0,r=n.scopeValue("formats",{key:i,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,Hi._`${r}.validate`];return["string",e,r]}(o);a===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!u.$async)throw new Error("async format in sync schema");return Hi._`await ${p}(${r})`}return"function"==typeof s?Hi._`${p}(${r})`:Hi._`${p}.test(${r})`}())}())}};Gi.default=Ki,Object.defineProperty(Wi,"__esModule",{value:!0});const Ji=[Gi.default];Wi.default=Ji;var Zi={};Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.contentVocabulary=Zi.metadataVocabulary=void 0,Zi.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Zi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(Wt,"__esModule",{value:!0});const Yi=Gt,Qi=ln,Xi=wr,ea=bi,ta=xi,na=Wi,ra=Zi,oa=[Jo.default,Yi.default,Qi.default,(0,Xi.default)(!0),na.default,ra.metadataVocabulary,ra.contentVocabulary,ea.default,ta.default];Wt.default=oa;var ia,aa={},sa={};Object.defineProperty(sa,"__esModule",{value:!0}),sa.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(ia||(sa.DiscrError=ia={})),Object.defineProperty(aa,"__esModule",{value:!0});const la=j,ca=sa,ua=Ge,da=We(),pa=P,fa={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===ca.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>la._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:r,parentSchema:o,it:i}=e,{oneOf:a}=o;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=r.propertyName;if("string"!=typeof s)throw new Error("discriminator: requires propertyName");if(r.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",la._`${n}${(0,la.getProperty)(s)}`);function u(n){const r=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},r);return e.mergeEvaluated(o,la.Name),r}t.if(la._`typeof ${c} == "string"`,(()=>function(){const n=function(){var e;const t={},n=l(o);let r=!0;for(let t=0;t<a.length;t++){let o=a[t];if((null==o?void 0:o.$ref)&&!(0,pa.schemaHasRulesButRef)(o,i.self.RULES)){const e=o.$ref;if(o=ua.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,e),o instanceof ua.SchemaEnv&&(o=o.schema),void 0===o)throw new da.default(i.opts.uriResolver,i.baseId,e)}const u=null===(e=null==o?void 0:o.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}"`);r=r&&(n||l(o)),c(u,t)}if(!r)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(la._`${c} === ${e}`),t.assign(l,u(n[e]));t.else(),e.error(!1,{discrError:ca.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:ca.DiscrError.Tag,tag:c,tagName:s}))),e.ok(l)}};aa.default=fa;var ha={},ma={$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}}},va={$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"}}}},ya={$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"}}},wa={$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"}}},ga={$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"}}},ba={$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"}}},ka={$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}}},$a={$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(ha,"__esModule",{value:!0});const ja=ma,Aa=va,Ta=ya,Pa=wa,Ea=ga,Ca=ba,za=ka,Sa=$a,_a=["/properties"];ha.default=function(e){return[ja,Aa,Ta,Pa,Ea,t(this,Ca),za,t(this,Sa)].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=g,r=Wt,o=aa,i=ha,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(),r.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.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=Me();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var c=j;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=Ue();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}})}(w,w.exports);var Oa=y(w.exports),xa={exports:{}},Ia={};!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(o,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)$/,r=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(e){const t=n.exec(e);if(!t)return!1;const o=+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)}(o)?29:r[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 r=+n[1],o=+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(r<=23&&o<=59&&i<60)return!0;const d=o-u*l,p=r-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(),r=new Date("2020-01-01T"+t).valueOf();return n&&r?n-r:void 0}function c(e,t){if(!e||!t)return;const n=a.exec(e),r=a.exec(t);return n&&r?(e=n[1]+n[2]+n[3])>(t=r[1]+r[2]+r[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&&o(n[0])&&t(n[1])}}function p(e,t){if(!e||!t)return;const n=new Date(e).valueOf(),r=new Date(t).valueOf();return n&&r?n-r:void 0}function f(e,t){if(!e||!t)return;const[n,r]=e.split(u),[o,a]=t.split(u),s=i(n,o);return void 0!==s?s||l(r,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/}(Ia);var Ra={},Na={exports:{}},Da={};Object.defineProperty(Da,"__esModule",{value:!0});const Ba=ln,Ma=wr,Fa=Wi,qa=Zi,Ua=[Gt.default,Ba.default,(0,Ma.default)(),Fa.default,qa.metadataVocabulary,qa.contentVocabulary];Da.default=Ua;var La={$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=g,r=Da,o=aa,i=La,a=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.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=Me();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=j;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=Ue();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}})}(Na,Na.exports);var Va=Na.exports;!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Va,n=j,r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},i={message:({keyword:e,schemaCode:t})=>n.str`should be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${o[e].okStr}, limit: ${t}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:i,code(e){const{gen:r,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}) ${o[s].fail} 0`}d.$data?function(){const t=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),o=r.const("fmt",n._`${t}[${d.schemaCode}]`);e.fail$data((0,n.or)(n._`typeof ${o} != "object"`,n._`${o} instanceof RegExp`,n._`typeof ${o}.compare != "function"`,p(o)))}():function(){const t=d.schema,o=u.formats[t];if(!o||!0===o)return;if("object"!=typeof o||o instanceof RegExp||"function"!=typeof o.compare)throw new Error(`"${s}": format "${t}" does not define "compare" function`);const i=r.scopeValue("formats",{key:t,ref:o,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)}(Ra),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=Ia,r=Ra,o=j,i=new o.Name("fullFormats"),a=new o.Name("fastFormats"),s=(e,t={keywords:!0})=>{if(Array.isArray(t))return l(e,t,n.fullFormats,i),e;const[o,s]="fast"===t.mode?[n.fastFormats,a]:[n.fullFormats,i];return l(e,t.formats||n.formatNames,o,s),t.keywords&&(0,r.default)(e),e};function l(e,t,n,r){var i,a;null!==(i=(a=e.opts.code).formats)&&void 0!==i||(a.formats=o._`require("ajv-formats/dist/formats").${r}`);for(const r of t)e.addFormat(r,n[r])}s.get=(e,t="full")=>{const r=("fast"===t?n.fastFormats:n.fullFormats)[e];if(!r)throw new Error(`Unknown format "${e}"`);return r},e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s}(xa,xa.exports);var Wa=y(xa.exports),Ga=new Oa({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});Wa(Ga);var Ha=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 r=Ga.getSchema(n);if(!r)throw"Unable to find schema '".concat(n,"' for type '").concat(t,"'");return[t,r]}))),Ka=function(e,t,n){var r,o,i,a,s,l;null===(o=null===(r=v(e))||void 0===r?void 0:r.preValidation)||void 0===o||o.call(r,t,n);var c=Ha.get(e);if(!c)throw Error("Unable to find a validation function for '".concat(e,"'"));if(!c(u(t)))throw new Error("'".concat(e,"' is invalid:\n").concat(null!==(a=null===(i=c.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=v(e))||void 0===s?void 0:s.postValidation)||void 0===l||l.call(s,t,n)},Ja=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("WithEvent"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("WithEvent",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("WithEvent"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Za=Ja,Ya=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("EventFilterCorrelate"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("EventFilterCorrelate",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("EventFilterCorrelate"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Qa=Ya,Xa=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.with&&(i.with=new Za(t.with)),"object"==typeof t.correlate&&(i.correlate=new Qa(t.correlate))),null===(r=null===(n=v("EventFilter"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("EventFilter",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("EventFilter"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),es=Xa,ts=function(e){function t(n){var r,o,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 es(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=v("AllEventConsumptionStrategyConfiguration"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("AllEventConsumptionStrategyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("AllEventConsumptionStrategyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(p),ns=ts,rs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.all&&(i.all=new ns(t.all)),null===(r=null===(n=v("AllEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("AllEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("AllEventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),os=rs,is=function(e){function t(n){var r,o,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 es(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=v("AnyEventConsumptionStrategyConfiguration"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("AnyEventConsumptionStrategyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("AnyEventConsumptionStrategyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(p),as=is,ss=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.all&&(i.all=new ns(t.all)),"object"==typeof t.any&&(i.any=new as(t.any)),"object"==typeof t.one&&(i.one=new es(t.one))),null===(r=null===(n=v("AnyEventConsumptionStrategyUntil"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("AnyEventConsumptionStrategyUntil",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("AnyEventConsumptionStrategyUntil"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),ls=ss,cs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.any&&(i.any=new as(t.any)),"object"==typeof t.until&&(i.until=new ls(t.until))),null===(r=null===(n=v("AnyEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("AnyEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("AnyEventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),us=cs,ds=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.all&&(i.all=new ns(t.all)),"object"==typeof t.any&&(i.any=new as(t.any)),"object"==typeof t.one&&(i.one=new es(t.one))),null===(r=null===(n=v("AnyEventUntilConsumed"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("AnyEventUntilConsumed",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("AnyEventUntilConsumed"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),ps=ds,fs=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("AsyncApiArguments"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("AsyncApiArguments",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("AsyncApiArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),hs=fs,ms=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("BasicAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("BasicAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("BasicAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),vs=ms,ys=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("BearerAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("BearerAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("BearerAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),ws=ys,gs=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("DigestAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("DigestAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("DigestAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),bs=gs,ks=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("OAuth2AutenthicationDataClient"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OAuth2AutenthicationDataClient",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OAuth2AutenthicationDataClient"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),$s=ks,js=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("OAuth2TokenRequest"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OAuth2TokenRequest",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OAuth2TokenRequest"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),As=js,Ts=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("OAuth2TokenDefinition"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OAuth2TokenDefinition",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OAuth2TokenDefinition"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Ps=Ts,Es=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("OAuth2AuthenticationPropertiesEndpoints"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OAuth2AuthenticationPropertiesEndpoints",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OAuth2AuthenticationPropertiesEndpoints"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Cs=Es,zs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.client&&(i.client=new $s(t.client)),"object"==typeof t.request&&(i.request=new As(t.request)),"object"==typeof t.subject&&(i.subject=new Ps(t.subject)),"object"==typeof t.actor&&(i.actor=new Ps(t.actor)),"object"==typeof t.endpoints&&(i.endpoints=new Cs(t.endpoints))),null===(r=null===(n=v("OAuth2AuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OAuth2AuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OAuth2AuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Ss=zs,_s=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.client&&(i.client=new $s(t.client)),"object"==typeof t.request&&(i.request=new As(t.request)),"object"==typeof t.subject&&(i.subject=new Ps(t.subject)),"object"==typeof t.actor&&(i.actor=new Ps(t.actor))),null===(r=null===(n=v("OpenIdConnectAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OpenIdConnectAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OpenIdConnectAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Os=_s,xs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.basic&&(i.basic=new vs(t.basic)),"object"==typeof t.bearer&&(i.bearer=new ws(t.bearer)),"object"==typeof t.digest&&(i.digest=new bs(t.digest)),"object"==typeof t.oauth2&&(i.oauth2=new Ss(t.oauth2)),"object"==typeof t.oidc&&(i.oidc=new Os(t.oidc))),null===(r=null===(n=v("AuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("AuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("AuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Is=xs,Rs=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("AuthenticationPolicyReference"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("AuthenticationPolicyReference",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("AuthenticationPolicyReference"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Ns=Rs,Ds=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.basic&&(i.basic=new vs(t.basic)),null===(r=null===(n=v("BasicAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("BasicAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("BasicAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Bs=Ds,Ms=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("BasicAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("BasicAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("BasicAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Fs=Ms,qs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.bearer&&(i.bearer=new ws(t.bearer)),null===(r=null===(n=v("BearerAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("BearerAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("BearerAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Us=qs,Ls=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("BearerAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("BearerAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("BearerAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Vs=Ls,Ws=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.basic&&(i.basic=new vs(t.basic)),"object"==typeof t.bearer&&(i.bearer=new ws(t.bearer)),"object"==typeof t.digest&&(i.digest=new bs(t.digest)),"object"==typeof t.oauth2&&(i.oauth2=new Ss(t.oauth2)),"object"==typeof t.oidc&&(i.oidc=new Os(t.oidc))),null===(r=null===(n=v("ReferenceableAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ReferenceableAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ReferenceableAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Gs=Ws,Hs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.authentication&&(i.authentication=new Gs(t.authentication)),null===(r=null===(n=v("Endpoint"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Endpoint",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Endpoint"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Ks=Hs,Js=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.endpoint&&(i.endpoint=new Ks(t.endpoint)),null===(r=null===(n=v("ExternalResource"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ExternalResource",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ExternalResource"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Zs=Js,Ys=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.resource&&(i.resource=new Zs(t.resource)),null===(r=null===(n=v("Schema"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Schema",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Schema"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Qs=Ys,Xs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.schema&&(i.schema=new Qs(t.schema)),null===(r=null===(n=v("Input"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Input",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Input"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),el=Xs,tl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.schema&&(i.schema=new Qs(t.schema)),null===(r=null===(n=v("Output"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Output",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Output"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),nl=tl,rl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.schema&&(i.schema=new Qs(t.schema)),null===(r=null===(n=v("Export"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Export",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Export"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),ol=rl,il=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("Duration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Duration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Duration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),al=il,sl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.after&&(i.after=new al(t.after)),null===(r=null===(n=v("TaskTimeout"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("TaskTimeout",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("TaskTimeout"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),ll=sl,cl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("TaskMetadata"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("TaskMetadata",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("TaskMetadata"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),ul=cl,dl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata))),null===(r=null===(n=v("TaskBase"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("TaskBase",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("TaskBase"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),pl=dl,fl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&(i.call="asyncapi","object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata))),null===(r=null===(n=v("CallAsyncAPI"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("CallAsyncAPI",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("CallAsyncAPI"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),hl=fl,ml=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("FunctionArguments"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("FunctionArguments",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("FunctionArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),vl=ml,yl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.with&&(i.with=new vl(t.with))),null===(r=null===(n=v("CallFunction"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("CallFunction",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("CallFunction"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),wl=yl,gl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.authentication&&(i.authentication=new Gs(t.authentication)),null===(r=null===(n=v("WithGRPCService"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("WithGRPCService",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("WithGRPCService"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),bl=gl,kl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("WithGRPCArguments"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("WithGRPCArguments",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("WithGRPCArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),$l=kl,jl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.proto&&(i.proto=new Zs(t.proto)),"object"==typeof t.service&&(i.service=new bl(t.service)),"object"==typeof t.arguments&&(i.arguments=new $l(t.arguments))),null===(r=null===(n=v("GRPCArguments"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("GRPCArguments",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("GRPCArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Al=jl,Tl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&(i.call="grpc","object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.with&&(i.with=new Al(t.with))),null===(r=null===(n=v("CallGRPC"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("CallGRPC",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("CallGRPC"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),Pl=Tl,El=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("HTTPHeaders"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("HTTPHeaders",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("HTTPHeaders"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Cl=El,zl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("HTTPBody"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("HTTPBody",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("HTTPBody"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Sl=zl,_l=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("HTTPQuery"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("HTTPQuery",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("HTTPQuery"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Ol=_l,xl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.endpoint&&(i.endpoint=new Ks(t.endpoint)),"object"==typeof t.headers&&(i.headers=new Cl(t.headers)),"object"==typeof t.body&&(i.body=new Sl(t.body)),"object"==typeof t.query&&(i.query=new Ol(t.query))),null===(r=null===(n=v("HTTPArguments"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("HTTPArguments",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("HTTPArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Il=xl,Rl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&(i.call="http","object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.with&&(i.with=new Il(t.with))),null===(r=null===(n=v("CallHTTP"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("CallHTTP",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("CallHTTP"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),Nl=Rl,Dl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("WithOpenAPIParameters"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("WithOpenAPIParameters",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("WithOpenAPIParameters"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Bl=Dl,Ml=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.document&&(i.document=new Zs(t.document)),"object"==typeof t.parameters&&(i.parameters=new Bl(t.parameters)),"object"==typeof t.authentication&&(i.authentication=new Gs(t.authentication))),null===(r=null===(n=v("OpenAPIArguments"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OpenAPIArguments",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OpenAPIArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Fl=Ml,ql=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&(i.call="openapi","object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.with&&(i.with=new Fl(t.with))),null===(r=null===(n=v("CallOpenAPI"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("CallOpenAPI",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("CallOpenAPI"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),Ul=ql,Ll=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata))),null===(r=null===(n=v("CallTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("CallTask",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("CallTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Vl=Ll,Wl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.endpoint&&(i.endpoint=new Ks(t.endpoint)),null===(r=null===(n=v("Catalog"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Catalog",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Catalog"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Gl=Wl,Hl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("ErrorFilter"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ErrorFilter",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ErrorFilter"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Kl=Hl,Jl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.with&&(i.with=new Kl(t.with)),null===(r=null===(n=v("CatchErrors"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("CatchErrors",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("CatchErrors"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Zl=Jl,Yl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("ConstantBackoff"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ConstantBackoff",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ConstantBackoff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Ql=Yl,Xl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("ContainerPorts"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ContainerPorts",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ContainerPorts"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),ec=Xl,tc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("ContainerVolumes"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ContainerVolumes",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ContainerVolumes"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),nc=tc,rc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("ContainerEnvironment"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ContainerEnvironment",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ContainerEnvironment"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),oc=rc,ic=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.after&&(i.after=new al(t.after)),null===(r=null===(n=v("ContainerLifetime"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ContainerLifetime",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ContainerLifetime"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),ac=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.ports&&(i.ports=new ec(t.ports)),"object"==typeof t.volumes&&(i.volumes=new nc(t.volumes)),"object"==typeof t.environment&&(i.environment=new oc(t.environment)),"object"==typeof t.lifetime&&(i.lifetime=new ic(t.lifetime))),null===(r=null===(n=v("Container"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Container",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Container"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),sc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.digest&&(i.digest=new bs(t.digest)),null===(r=null===(n=v("DigestAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("DigestAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("DigestAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),lc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("DigestAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("DigestAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("DigestAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),cc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("WorkflowTags"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("WorkflowTags",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("WorkflowTags"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),uc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("WorkflowMetadata"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("WorkflowMetadata",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("WorkflowMetadata"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),dc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.tags&&(i.tags=new cc(t.tags)),"object"==typeof t.metadata&&(i.metadata=new uc(t.metadata))),null===(r=null===(n=v("Document"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Document",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Document"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),pc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.branches&&(i.branches=new qc(t.branches)),null===(r=null===(n=v("ForkTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ForkTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ForkTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),fc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("EmitEventWith"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("EmitEventWith",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("EmitEventWith"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),hc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.with&&(i.with=new fc(t.with)),null===(r=null===(n=v("EmitEventDefinition"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("EmitEventDefinition",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("EmitEventDefinition"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),mc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.event&&(i.event=new hc(t.event)),null===(r=null===(n=v("EmitTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("EmitTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("EmitTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),vc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("ForTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ForTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ForTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),yc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.all&&(i.all=new ns(t.all)),"object"==typeof t.any&&(i.any=new as(t.any)),"object"==typeof t.until&&(i.until=new ls(t.until)),"object"==typeof t.one&&(i.one=new es(t.one))),null===(r=null===(n=v("EventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("EventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("EventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),wc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.to&&(i.to=new yc(t.to)),null===(r=null===(n=v("ListenTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ListenTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ListenTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),gc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.do&&(i.do=new qc(t.do)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export))),null===(r=null===(n=v("SubscriptionIterator"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("SubscriptionIterator",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("SubscriptionIterator"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),bc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("RaiseTaskError"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RaiseTaskError",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RaiseTaskError"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),kc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.error&&(i.error=new bc(t.error)),null===(r=null===(n=v("RaiseTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RaiseTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RaiseTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),$c=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.source&&(i.source=new Zs(t.source)),null===(r=null===(n=v("Script"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Script",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Script"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),jc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("ShellArguments"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ShellArguments",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ShellArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Ac=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("ShellEnvironment"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ShellEnvironment",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ShellEnvironment"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Tc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.arguments&&(i.arguments=new jc(t.arguments)),"object"==typeof t.environment&&(i.environment=new Ac(t.environment))),null===(r=null===(n=v("Shell"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Shell",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Shell"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Pc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("SubflowInput"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("SubflowInput",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("SubflowInput"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Ec=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.input&&(i.input=new Pc(t.input)),null===(r=null===(n=v("SubflowConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("SubflowConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("SubflowConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Cc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.container&&(i.container=new ac(t.container)),"object"==typeof t.script&&(i.script=new $c(t.script)),"object"==typeof t.shell&&(i.shell=new Tc(t.shell)),"object"==typeof t.workflow&&(i.workflow=new Ec(t.workflow))),null===(r=null===(n=v("RunTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RunTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RunTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),zc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("SetTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("SetTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("SetTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Sc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("SwitchCase"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("SwitchCase",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("SwitchCase"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),_c=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;if(c(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 Sc(n)}))}return null===(r=null===(n=v("SwitchItem"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("SwitchItem",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("SwitchItem"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Oc=function(e){function t(n){var r,o,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===(o=null===(r=v("SwitchTaskConfiguration"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("SwitchTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("SwitchTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(p),xc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("RetryBackoff"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RetryBackoff",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RetryBackoff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Ic=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.duration&&(i.duration=new al(t.duration)),null===(r=null===(n=v("RetryLimitAttempt"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RetryLimitAttempt",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RetryLimitAttempt"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Rc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.attempt&&(i.attempt=new Ic(t.attempt)),"object"==typeof t.duration&&(i.duration=new al(t.duration))),null===(r=null===(n=v("RetryLimit"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RetryLimit",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RetryLimit"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Nc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.from&&(i.from=new al(t.from)),"object"==typeof t.to&&(i.to=new al(t.to))),null===(r=null===(n=v("RetryPolicyJitter"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RetryPolicyJitter",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RetryPolicyJitter"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Dc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.delay&&(i.delay=new al(t.delay)),"object"==typeof t.backoff&&(i.backoff=new xc(t.backoff)),"object"==typeof t.limit&&(i.limit=new Rc(t.limit)),"object"==typeof t.jitter&&(i.jitter=new Nc(t.jitter))),null===(r=null===(n=v("TryTaskCatchRetry"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("TryTaskCatchRetry",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("TryTaskCatchRetry"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Bc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.errors&&(i.errors=new Zl(t.errors)),"object"==typeof t.retry&&(i.retry=new Dc(t.retry)),"object"==typeof t.do&&(i.do=new qc(t.do))),null===(r=null===(n=v("TryTaskCatch"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("TryTaskCatch",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("TryTaskCatch"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Mc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.fork&&(i.fork=new pc(t.fork)),"object"==typeof t.emit&&(i.emit=new mc(t.emit)),"object"==typeof t.for&&(i.for=new vc(t.for)),"object"==typeof t.listen&&(i.listen=new wc(t.listen)),"object"==typeof t.foreach&&(i.foreach=new gc(t.foreach)),"object"==typeof t.raise&&(i.raise=new kc(t.raise)),"object"==typeof t.run&&(i.run=new Cc(t.run)),"object"==typeof t.set&&(i.set=new zc(t.set)),"object"==typeof t.switch&&(i.switch=new Oc(t.switch)),"object"==typeof t.try&&(i.try=new qc(t.try)),"object"==typeof t.catch&&(i.catch=new Bc(t.catch)),"object"==typeof t.wait&&(i.wait=new al(t.wait))),null===(r=null===(n=v("Task"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Task",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Task"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Fc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;if(c(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 Mc(n)}))}return null===(r=null===(n=v("TaskItem"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("TaskItem",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("TaskItem"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),qc=function(e){function t(n){var r,o,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 Fc(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=v("TaskList"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("TaskList",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("TaskList"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(p),Uc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.do&&(i.do=new qc(t.do))),null===(r=null===(n=v("DoTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("DoTask",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("DoTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),Lc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("DurationInline"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("DurationInline",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("DurationInline"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Vc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.emit&&(i.emit=new mc(t.emit))),null===(r=null===(n=v("EmitTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("EmitTask",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("EmitTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),Wc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.authentication&&(i.authentication=new Gs(t.authentication)),null===(r=null===(n=v("EndpointConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("EndpointConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("EndpointConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Gc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("EndpointUri"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("EndpointUri",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("EndpointUri"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Hc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("Error"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Error",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Error"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Kc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("ErrorInstance"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ErrorInstance",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ErrorInstance"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Jc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("ErrorType"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ErrorType",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ErrorType"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Zc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("EventData"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("EventData",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("EventData"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Yc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("EventDataschema"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("EventDataschema",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("EventDataschema"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Qc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("EventSource"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("EventSource",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("EventSource"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Xc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("EventTime"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("EventTime",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("EventTime"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),eu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("ExponentialBackOff"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ExponentialBackOff",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ExponentialBackOff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),tu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("ExportAs"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ExportAs",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ExportAs"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),nu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.before&&(i.before=new qc(t.before)),"object"==typeof t.after&&(i.after=new qc(t.after))),null===(r=null===(n=v("Extension"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Extension",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Extension"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),ru=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;if(c(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===(r=null===(n=v("ExtensionItem"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ExtensionItem",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ExtensionItem"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),ou=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.source&&(i.source=new Zs(t.source)),null===(r=null===(n=v("ExternalScript"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ExternalScript",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ExternalScript"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),iu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("FlowDirective"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("FlowDirective",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("FlowDirective"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),au=iu,su=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.fork&&(i.fork=new pc(t.fork))),null===(r=null===(n=v("ForkTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ForkTask",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ForkTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),lu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.for&&(i.for=new vc(t.for)),"object"==typeof t.do&&(i.do=new qc(t.do))),null===(r=null===(n=v("ForTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ForTask",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ForTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),cu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("InlineScript"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("InlineScript",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("InlineScript"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),uu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("InputFrom"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("InputFrom",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("InputFrom"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),du=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("LinearBackoff"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("LinearBackoff",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("LinearBackoff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),pu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.listen&&(i.listen=new wc(t.listen)),"object"==typeof t.foreach&&(i.foreach=new gc(t.foreach))),null===(r=null===(n=v("ListenTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("ListenTask",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("ListenTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),fu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.client&&(i.client=new $s(t.client)),"object"==typeof t.request&&(i.request=new As(t.request)),"object"==typeof t.subject&&(i.subject=new Ps(t.subject)),"object"==typeof t.actor&&(i.actor=new Ps(t.actor))),null===(r=null===(n=v("OAuth2AutenthicationData"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OAuth2AutenthicationData",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OAuth2AutenthicationData"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),hu=function(e){function t(n){var r,o,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===(o=null===(r=v("OAuth2AutenthicationDataAudiences"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OAuth2AutenthicationDataAudiences",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OAuth2AutenthicationDataAudiences"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(p),mu=function(e){function t(n){var r,o,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===(o=null===(r=v("OAuth2AutenthicationDataScopes"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OAuth2AutenthicationDataScopes",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OAuth2AutenthicationDataScopes"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(p),vu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.oauth2&&(i.oauth2=new Ss(t.oauth2)),null===(r=null===(n=v("OAuth2AuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OAuth2AuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OAuth2AuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),yu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.client&&(i.client=new $s(t.client)),"object"==typeof t.request&&(i.request=new As(t.request)),"object"==typeof t.subject&&(i.subject=new Ps(t.subject)),"object"==typeof t.actor&&(i.actor=new Ps(t.actor)),"object"==typeof t.endpoints&&(i.endpoints=new Cs(t.endpoints))),null===(r=null===(n=v("OAuth2ConnectAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OAuth2ConnectAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OAuth2ConnectAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(fu),wu=function(e){function t(n){var r,o,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===(o=null===(r=v("OAuth2Issuers"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OAuth2Issuers",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OAuth2Issuers"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(p),gu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.one&&(i.one=new es(t.one)),null===(r=null===(n=v("OneEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OneEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OneEventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),bu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.oidc&&(i.oidc=new Os(t.oidc)),null===(r=null===(n=v("OpenIdConnectAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OpenIdConnectAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OpenIdConnectAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),ku=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.client&&(i.client=new $s(t.client)),"object"==typeof t.request&&(i.request=new As(t.request)),"object"==typeof t.subject&&(i.subject=new Ps(t.subject)),"object"==typeof t.actor&&(i.actor=new Ps(t.actor))),null===(r=null===(n=v("OpenIdConnectAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OpenIdConnectAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OpenIdConnectAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),$u=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("OutputAs"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("OutputAs",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("OutputAs"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),ju=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.raise&&(i.raise=new kc(t.raise))),null===(r=null===(n=v("RaiseTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RaiseTask",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RaiseTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),Au=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.delay&&(i.delay=new al(t.delay)),"object"==typeof t.backoff&&(i.backoff=new xc(t.backoff)),"object"==typeof t.limit&&(i.limit=new Rc(t.limit)),"object"==typeof t.jitter&&(i.jitter=new Nc(t.jitter))),null===(r=null===(n=v("RetryPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RetryPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RetryPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Tu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.container&&(i.container=new ac(t.container)),null===(r=null===(n=v("RunContainer"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RunContainer",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RunContainer"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Pu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.script&&(i.script=new $c(t.script)),null===(r=null===(n=v("RunScript"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RunScript",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RunScript"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Eu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.shell&&(i.shell=new Tc(t.shell)),null===(r=null===(n=v("RunShell"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RunShell",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RunShell"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Cu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.run&&(i.run=new Cc(t.run))),null===(r=null===(n=v("RunTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RunTask",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RunTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),zu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("RuntimeExpression"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RuntimeExpression",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RuntimeExpression"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Su=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.workflow&&(i.workflow=new Ec(t.workflow)),null===(r=null===(n=v("RunWorkflow"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("RunWorkflow",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("RunWorkflow"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),_u=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.every&&(i.every=new al(t.every)),"object"==typeof t.after&&(i.after=new al(t.after)),"object"==typeof t.on&&(i.on=new yc(t.on))),null===(r=null===(n=v("Schedule"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Schedule",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Schedule"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Ou=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.resource&&(i.resource=new Zs(t.resource)),null===(r=null===(n=v("SchemaExternal"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("SchemaExternal",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("SchemaExternal"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),xu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("SchemaInline"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("SchemaInline",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("SchemaInline"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Iu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("SecretBasedAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("SecretBasedAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("SecretBasedAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Ru=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.set&&(i.set=new zc(t.set))),null===(r=null===(n=v("SetTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("SetTask",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("SetTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),Nu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.switch&&(i.switch=new Oc(t.switch))),null===(r=null===(n=v("SwitchTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("SwitchTask",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("SwitchTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),Du=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("TaskBaseIf"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("TaskBaseIf",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("TaskBaseIf"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Bu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.after&&(i.after=new al(t.after)),null===(r=null===(n=v("Timeout"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Timeout",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Timeout"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Mu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.try&&(i.try=new qc(t.try)),"object"==typeof t.catch&&(i.catch=new Bc(t.catch))),null===(r=null===(n=v("TryTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("TryTask",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("TryTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),Fu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=v("UriTemplate"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("UriTemplate",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("UriTemplate"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),qu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;if(c(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 Is(n)}))}return null===(r=null===(n=v("UseAuthentications"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("UseAuthentications",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("UseAuthentications"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Uu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;if(c(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 Hc(n)}))}return null===(r=null===(n=v("UseErrors"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("UseErrors",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("UseErrors"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Lu=function(e){function t(n){var r,o,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 ru(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=v("UseExtensions"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("UseExtensions",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("UseExtensions"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(p),Vu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;if(c(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 Mc(n)}))}return null===(r=null===(n=v("UseFunctions"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("UseFunctions",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("UseFunctions"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Wu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;if(c(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 Au(n)}))}return null===(r=null===(n=v("UseRetries"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("UseRetries",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("UseRetries"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Gu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;if(c(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 Bu(n)}))}return null===(r=null===(n=v("UseTimeouts"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("UseTimeouts",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("UseTimeouts"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Hu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;if(c(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 Gl(n)}))}return null===(r=null===(n=v("UseCatalogs"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("UseCatalogs",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("UseCatalogs"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Ku=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.authentications&&(i.authentications=new qu(t.authentications)),"object"==typeof t.errors&&(i.errors=new Uu(t.errors)),"object"==typeof t.extensions&&(i.extensions=new Lu(t.extensions)),"object"==typeof t.functions&&(i.functions=new Vu(t.functions)),"object"==typeof t.retries&&(i.retries=new Wu(t.retries)),"object"==typeof t.timeouts&&(i.timeouts=new Gu(t.timeouts)),"object"==typeof t.catalogs&&(i.catalogs=new Hu(t.catalogs))),null===(r=null===(n=v("Use"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Use",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Use"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d),Ju=function(e){function t(n){var r,o,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===(o=null===(r=v("UseSecrets"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("UseSecrets",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("UseSecrets"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(p),Zu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.export&&(i.export=new ol(t.export)),"object"==typeof t.timeout&&(i.timeout=new ll(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ul(t.metadata)),"object"==typeof t.wait&&(i.wait=new al(t.wait))),null===(r=null===(n=v("WaitTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("WaitTask",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("WaitTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(pl),Yu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&"object"==typeof t.after&&(i.after=new al(t.after)),null===(r=null===(n=v("WorkflowTimeout"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("WorkflowTimeout",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("WorkflowTimeout"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(d);
|
|
8
8
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
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={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}function _f(e,t){var n=new zf.AllEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Of(e,t){var n=new zf.AnyEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function xf(e,t){var n=new zf.AnyEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function If(e,t){var n=new zf.AnyEventConsumptionStrategyUntil(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Rf(e,t){var n=new zf.AnyEventUntilConsumed(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Nf(e,t){var n=new zf.AsyncApiArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Df(e,t){var n=new zf.AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Bf(e,t){var n=new zf.AuthenticationPolicyReference(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Mf(e,t){var n=new zf.BasicAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function qf(e,t){var n=new zf.BasicAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Ff(e,t){var n=new zf.BasicAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Uf(e,t){var n=new zf.BearerAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Lf(e,t){var n=new zf.BearerAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Vf(e,t){var n=new zf.BearerAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Wf(e,t){var n=new zf.CallAsyncAPI(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Gf(e,t){var n=new zf.CallFunction(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Hf(e,t){var n=new zf.CallGRPC(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Kf(e,t){var n=new zf.CallHTTP(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Jf(e,t){var n=new zf.CallOpenAPI(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Zf(e,t){var n=new zf.CallTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Yf(e,t){var n=new zf.Catalog(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Qf(e,t){var n=new zf.CatchErrors(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Xf(e,t){var n=new zf.ConstantBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function eh(e,t){var n=new zf.Container(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function th(e,t){var n=new zf.ContainerEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function nh(e,t){var n=new zf.ContainerLifetime(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function oh(e,t){var n=new zf.ContainerPorts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function rh(e,t){var n=new zf.ContainerVolumes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function ih(e,t){var n=new zf.DigestAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function ah(e,t){var n=new zf.DigestAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function sh(e,t){var n=new zf.DigestAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function lh(e,t){var n=new zf.Document(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function ch(e,t){var n=new zf.DoTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function uh(e,t){var n=new zf.Duration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function dh(e,t){var n=new zf.DurationInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function ph(e,t){var n=new zf.EmitEventDefinition(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function fh(e,t){var n=new zf.EmitEventWith(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function hh(e,t){var n=new zf.EmitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function mh(e,t){var n=new zf.EmitTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function vh(e,t){var n=new zf.Endpoint(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function yh(e,t){var n=new zf.EndpointConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function wh(e,t){var n=new zf.EndpointUri(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function gh(e,t){var n=new zf.Error(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function bh(e,t){var n=new zf.ErrorFilter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function kh(e,t){var n=new zf.ErrorInstance(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function $h(e,t){var n=new zf.ErrorType(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function jh(e,t){var n=new zf.EventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Ah(e,t){var n=new zf.EventData(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Th(e,t){var n=new zf.EventDataschema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Ph(e,t){var n=new zf.EventFilter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Eh(e,t){var n=new zf.EventFilterCorrelate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Ch(e,t){var n=new zf.EventSource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function zh(e,t){var n=new zf.EventTime(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Sh(e,t){var n=new zf.ExponentialBackOff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function _h(e,t){var n=new zf.Export(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Oh(e,t){var n=new zf.ExportAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function xh(e,t){var n=new zf.Extension(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Ih(e,t){var n=new zf.ExtensionItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Rh(e,t){var n=new zf.ExternalResource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Nh(e,t){var n=new zf.ExternalScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Dh(e,t){var n=new zf.FlowDirective(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Bh(e,t){var n=new zf.ForkTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Mh(e,t){var n=new zf.ForkTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function qh(e,t){var n=new zf.ForTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Fh(e,t){var n=new zf.ForTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Uh(e,t){var n=new zf.FunctionArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Lh(e,t){var n=new zf.GRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Vh(e,t){var n=new zf.HTTPArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Wh(e,t){var n=new zf.HTTPBody(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Gh(e,t){var n=new zf.HTTPHeaders(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Hh(e,t){var n=new zf.HTTPQuery(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Kh(e,t){var n=new zf.InlineScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Jh(e,t){var n=new zf.Input(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Zh(e,t){var n=new zf.InputFrom(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Yh(e,t){var n=new zf.LinearBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Qh(e,t){var n=new zf.ListenTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Xh(e,t){var n=new zf.ListenTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function em(e,t){var n=new zf.OAuth2AutenthicationData(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function tm(e,t){var n=new zf.OAuth2AutenthicationDataAudiences(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function nm(e,t){var n=new zf.OAuth2AutenthicationDataClient(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function om(e,t){var n=new zf.OAuth2AutenthicationDataScopes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function rm(e,t){var n=new zf.OAuth2AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function im(e,t){var n=new zf.OAuth2AuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function am(e,t){var n=new zf.OAuth2AuthenticationPropertiesEndpoints(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function sm(e,t){var n=new zf.OAuth2ConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function lm(e,t){var n=new zf.OAuth2Issuers(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function cm(e,t){var n=new zf.OAuth2TokenDefinition(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function um(e,t){var n=new zf.OAuth2TokenRequest(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function dm(e,t){var n=new zf.OneEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function pm(e,t){var n=new zf.OpenAPIArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function fm(e,t){var n=new zf.OpenIdConnectAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function hm(e,t){var n=new zf.OpenIdConnectAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function mm(e,t){var n=new zf.OpenIdConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function vm(e,t){var n=new zf.Output(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function ym(e,t){var n=new zf.OutputAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function wm(e,t){var n=new zf.RaiseTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function gm(e,t){var n=new zf.RaiseTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function bm(e,t){var n=new zf.RaiseTaskError(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function km(e,t){var n=new zf.ReferenceableAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function $m(e,t){var n=new zf.RetryBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function jm(e,t){var n=new zf.RetryLimit(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Am(e,t){var n=new zf.RetryLimitAttempt(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Tm(e,t){var n=new zf.RetryPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Pm(e,t){var n=new zf.RetryPolicyJitter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Em(e,t){var n=new zf.RunContainer(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Cm(e,t){var n=new zf.RunScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function zm(e,t){var n=new zf.RunShell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Sm(e,t){var n=new zf.RunTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function _m(e,t){var n=new zf.RunTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Om(e,t){var n=new zf.RuntimeExpression(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function xm(e,t){var n=new zf.RunWorkflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Im(e,t){var n=new zf.Schedule(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Rm(e,t){var n=new zf.Schema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Nm(e,t){var n=new zf.SchemaExternal(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Dm(e,t){var n=new zf.SchemaInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Bm(e,t){var n=new zf.Script(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Mm(e,t){var n=new zf.SecretBasedAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function qm(e,t){var n=new zf.SetTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Fm(e,t){var n=new zf.SetTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Um(e,t){var n=new zf.Shell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Lm(e,t){var n=new zf.ShellArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Vm(e,t){var n=new zf.ShellEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Wm(e,t){var n=new zf.SubflowConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Gm(e,t){var n=new zf.SubflowInput(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Hm(e,t){var n=new zf.SubscriptionIterator(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Km(e,t){var n=new zf.SwitchCase(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Jm(e,t){var n=new zf.SwitchItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Zm(e,t){var n=new zf.SwitchTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Ym(e,t){var n=new zf.SwitchTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Qm(e,t){var n=new zf.Task(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Xm(e,t){var n=new zf.TaskBase(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function ev(e,t){var n=new zf.TaskBaseIf(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function tv(e,t){var n=new zf.TaskItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function nv(e,t){var n=new zf.TaskList(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function ov(e,t){var n=new zf.TaskMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function rv(e,t){var n=new zf.TaskTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function iv(e,t){var n=new zf.Timeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function av(e,t){var n=new zf.TryTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function sv(e,t){var n=new zf.TryTaskCatch(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function lv(e,t){var n=new zf.TryTaskCatchRetry(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function cv(e,t){var n=new zf.UriTemplate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function uv(e,t){var n=new zf.Use(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function dv(e,t){var n=new zf.UseAuthentications(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function pv(e,t){var n=new zf.UseCatalogs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function fv(e,t){var n=new zf.UseErrors(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function hv(e,t){var n=new zf.UseExtensions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function mv(e,t){var n=new zf.UseFunctions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function vv(e,t){var n=new zf.UseRetries(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function yv(e,t){var n=new zf.UseSecrets(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function wv(e,t){var n=new zf.UseTimeouts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function gv(e,t){var n=new zf.WaitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function bv(e,t){var n=new zf.WithEvent(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function kv(e,t){var n=new zf.WithGRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function $v(e,t){var n=new zf.WithGRPCService(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function jv(e,t){var n=new zf.WithOpenAPIParameters(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Av(e,t){var n=new zf.Workflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Tv(e,t){var n=new zf.WorkflowMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Pv(e,t){var n=new zf.WorkflowTags(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Ev(e,t){var n=new zf.WorkflowTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Cv=Object.freeze({__proto__:null});e.Classes=zf,e.Specification=Cv,e.allEventConsumptionStrategyBuilder=function(e){return n(e,Sf)},e.allEventConsumptionStrategyConfigurationBuilder=function(e){return o(e,_f)},e.anyEventConsumptionStrategyBuilder=function(e){return n(e,Of)},e.anyEventConsumptionStrategyConfigurationBuilder=function(e){return o(e,xf)},e.anyEventConsumptionStrategyUntilBuilder=function(e){return n(e,If)},e.anyEventUntilConsumedBuilder=function(e){return n(e,Rf)},e.asyncApiArgumentsBuilder=function(e){return n(e,Nf)},e.authenticationPolicyBuilder=function(e){return n(e,Df)},e.authenticationPolicyReferenceBuilder=function(e){return n(e,Bf)},e.basicAuthenticationPolicyBuilder=function(e){return n(e,Mf)},e.basicAuthenticationPolicyConfigurationBuilder=function(e){return n(e,qf)},e.basicAuthenticationPropertiesBuilder=function(e){return n(e,Ff)},e.bearerAuthenticationPolicyBuilder=function(e){return n(e,Uf)},e.bearerAuthenticationPolicyConfigurationBuilder=function(e){return n(e,Lf)},e.bearerAuthenticationPropertiesBuilder=function(e){return n(e,Vf)},e.callAsyncAPIBuilder=function(e){return n(e,Wf)},e.callFunctionBuilder=function(e){return n(e,Gf)},e.callGRPCBuilder=function(e){return n(e,Hf)},e.callHTTPBuilder=function(e){return n(e,Kf)},e.callOpenAPIBuilder=function(e){return n(e,Jf)},e.callTaskBuilder=function(e){return n(e,Zf)},e.catalogBuilder=function(e){return n(e,Yf)},e.catchErrorsBuilder=function(e){return n(e,Qf)},e.constantBackoffBuilder=function(e){return n(e,Xf)},e.containerBuilder=function(e){return n(e,eh)},e.containerEnvironmentBuilder=function(e){return n(e,th)},e.containerLifetimeBuilder=function(e){return n(e,nh)},e.containerPortsBuilder=function(e){return n(e,oh)},e.containerVolumesBuilder=function(e){return n(e,rh)},e.digestAuthenticationPolicyBuilder=function(e){return n(e,ih)},e.digestAuthenticationPolicyConfigurationBuilder=function(e){return n(e,ah)},e.digestAuthenticationPropertiesBuilder=function(e){return n(e,sh)},e.doTaskBuilder=function(e){return n(e,ch)},e.documentBuilder=function(e){return n(e,lh)},e.durationBuilder=function(e){return n(e,uh)},e.durationInlineBuilder=function(e){return n(e,dh)},e.emitEventDefinitionBuilder=function(e){return n(e,ph)},e.emitEventWithBuilder=function(e){return n(e,fh)},e.emitTaskBuilder=function(e){return n(e,hh)},e.emitTaskConfigurationBuilder=function(e){return n(e,mh)},e.endpointBuilder=function(e){return n(e,vh)},e.endpointConfigurationBuilder=function(e){return n(e,yh)},e.endpointUriBuilder=function(e){return n(e,wh)},e.errorBuilder=function(e){return n(e,gh)},e.errorFilterBuilder=function(e){return n(e,bh)},e.errorInstanceBuilder=function(e){return n(e,kh)},e.errorTypeBuilder=function(e){return n(e,$h)},e.eventConsumptionStrategyBuilder=function(e){return n(e,jh)},e.eventDataBuilder=function(e){return n(e,Ah)},e.eventDataschemaBuilder=function(e){return n(e,Th)},e.eventFilterBuilder=function(e){return n(e,Ph)},e.eventFilterCorrelateBuilder=function(e){return n(e,Eh)},e.eventSourceBuilder=function(e){return n(e,Ch)},e.eventTimeBuilder=function(e){return n(e,zh)},e.exponentialBackOffBuilder=function(e){return n(e,Sh)},e.exportAsBuilder=function(e){return n(e,Oh)},e.exportBuilder=function(e){return n(e,_h)},e.extensionBuilder=function(e){return n(e,xh)},e.extensionItemBuilder=function(e){return n(e,Ih)},e.externalResourceBuilder=function(e){return n(e,Rh)},e.externalScriptBuilder=function(e){return n(e,Nh)},e.flowDirectiveBuilder=function(e){return n(e,Dh)},e.forTaskBuilder=function(e){return n(e,qh)},e.forTaskConfigurationBuilder=function(e){return n(e,Fh)},e.forkTaskBuilder=function(e){return n(e,Bh)},e.forkTaskConfigurationBuilder=function(e){return n(e,Mh)},e.functionArgumentsBuilder=function(e){return n(e,Uh)},e.gRPCArgumentsBuilder=function(e){return n(e,Lh)},e.hTTPArgumentsBuilder=function(e){return n(e,Vh)},e.hTTPBodyBuilder=function(e){return n(e,Wh)},e.hTTPHeadersBuilder=function(e){return n(e,Gh)},e.hTTPQueryBuilder=function(e){return n(e,Hh)},e.inlineScriptBuilder=function(e){return n(e,Kh)},e.inputBuilder=function(e){return n(e,Jh)},e.inputFromBuilder=function(e){return n(e,Zh)},e.linearBackoffBuilder=function(e){return n(e,Yh)},e.listenTaskBuilder=function(e){return n(e,Qh)},e.listenTaskConfigurationBuilder=function(e){return n(e,Xh)},e.oAuth2AutenthicationDataAudiencesBuilder=function(e){return o(e,tm)},e.oAuth2AutenthicationDataBuilder=function(e){return n(e,em)},e.oAuth2AutenthicationDataClientBuilder=function(e){return n(e,nm)},e.oAuth2AutenthicationDataScopesBuilder=function(e){return o(e,om)},e.oAuth2AuthenticationPolicyBuilder=function(e){return n(e,rm)},e.oAuth2AuthenticationPolicyConfigurationBuilder=function(e){return n(e,im)},e.oAuth2AuthenticationPropertiesEndpointsBuilder=function(e){return n(e,am)},e.oAuth2ConnectAuthenticationPropertiesBuilder=function(e){return n(e,sm)},e.oAuth2IssuersBuilder=function(e){return o(e,lm)},e.oAuth2TokenDefinitionBuilder=function(e){return n(e,cm)},e.oAuth2TokenRequestBuilder=function(e){return n(e,um)},e.oneEventConsumptionStrategyBuilder=function(e){return n(e,dm)},e.openAPIArgumentsBuilder=function(e){return n(e,pm)},e.openIdConnectAuthenticationPolicyBuilder=function(e){return n(e,fm)},e.openIdConnectAuthenticationPolicyConfigurationBuilder=function(e){return n(e,hm)},e.openIdConnectAuthenticationPropertiesBuilder=function(e){return n(e,mm)},e.outputAsBuilder=function(e){return n(e,ym)},e.outputBuilder=function(e){return n(e,vm)},e.raiseTaskBuilder=function(e){return n(e,wm)},e.raiseTaskConfigurationBuilder=function(e){return n(e,gm)},e.raiseTaskErrorBuilder=function(e){return n(e,bm)},e.referenceableAuthenticationPolicyBuilder=function(e){return n(e,km)},e.retryBackoffBuilder=function(e){return n(e,$m)},e.retryLimitAttemptBuilder=function(e){return n(e,Am)},e.retryLimitBuilder=function(e){return n(e,jm)},e.retryPolicyBuilder=function(e){return n(e,Tm)},e.retryPolicyJitterBuilder=function(e){return n(e,Pm)},e.runContainerBuilder=function(e){return n(e,Em)},e.runScriptBuilder=function(e){return n(e,Cm)},e.runShellBuilder=function(e){return n(e,zm)},e.runTaskBuilder=function(e){return n(e,Sm)},e.runTaskConfigurationBuilder=function(e){return n(e,_m)},e.runWorkflowBuilder=function(e){return n(e,xm)},e.runtimeExpressionBuilder=function(e){return n(e,Om)},e.scheduleBuilder=function(e){return n(e,Im)},e.schemaBuilder=function(e){return n(e,Rm)},e.schemaExternalBuilder=function(e){return n(e,Nm)},e.schemaInlineBuilder=function(e){return n(e,Dm)},e.scriptBuilder=function(e){return n(e,Bm)},e.secretBasedAuthenticationPolicyBuilder=function(e){return n(e,Mm)},e.setTaskBuilder=function(e){return n(e,qm)},e.setTaskConfigurationBuilder=function(e){return n(e,Fm)},e.shellArgumentsBuilder=function(e){return n(e,Lm)},e.shellBuilder=function(e){return n(e,Um)},e.shellEnvironmentBuilder=function(e){return n(e,Vm)},e.subflowConfigurationBuilder=function(e){return n(e,Wm)},e.subflowInputBuilder=function(e){return n(e,Gm)},e.subscriptionIteratorBuilder=function(e){return n(e,Hm)},e.switchCaseBuilder=function(e){return n(e,Km)},e.switchItemBuilder=function(e){return n(e,Jm)},e.switchTaskBuilder=function(e){return n(e,Zm)},e.switchTaskConfigurationBuilder=function(e){return n(e,Ym)},e.taskBaseBuilder=function(e){return n(e,Xm)},e.taskBaseIfBuilder=function(e){return n(e,ev)},e.taskBuilder=function(e){return n(e,Qm)},e.taskItemBuilder=function(e){return n(e,tv)},e.taskListBuilder=function(e){return o(e,nv)},e.taskMetadataBuilder=function(e){return n(e,ov)},e.taskTimeoutBuilder=function(e){return n(e,rv)},e.timeoutBuilder=function(e){return n(e,iv)},e.tryTaskBuilder=function(e){return n(e,av)},e.tryTaskCatchBuilder=function(e){return n(e,sv)},e.tryTaskCatchRetryBuilder=function(e){return n(e,lv)},e.uriTemplateBuilder=function(e){return n(e,cv)},e.useAuthenticationsBuilder=function(e){return n(e,dv)},e.useBuilder=function(e){return n(e,uv)},e.useCatalogsBuilder=function(e){return n(e,pv)},e.useErrorsBuilder=function(e){return n(e,fv)},e.useExtensionsBuilder=function(e){return o(e,hv)},e.useFunctionsBuilder=function(e){return n(e,mv)},e.useRetriesBuilder=function(e){return n(e,vv)},e.useSecretsBuilder=function(e){return o(e,yv)},e.useTimeoutsBuilder=function(e){return n(e,wv)},e.validate=Ha,e.waitTaskBuilder=function(e){return n(e,gv)},e.withEventBuilder=function(e){return n(e,bv)},e.withGRPCArgumentsBuilder=function(e){return n(e,kv)},e.withGRPCServiceBuilder=function(e){return n(e,$v)},e.withOpenAPIParametersBuilder=function(e){return n(e,jv)},e.workflowBuilder=function(e){return n(e,Av)},e.workflowMetadataBuilder=function(e){return n(e,Tv)},e.workflowTagsBuilder=function(e){return n(e,Pv)},e.workflowTimeoutBuilder=function(e){return n(e,Ev)},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
9
|
+
function Qu(e){return null==e}var Xu={isNothing:Qu,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:Qu(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var n,r,o,i;if(t)for(n=0,r=(i=Object.keys(t)).length;n<r;n+=1)e[o=i[n]]=t[o];return e}};function ed(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function td(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=ed(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}td.prototype=Object.create(Error.prototype),td.prototype.constructor=td,td.prototype.toString=function(e){return this.name+": "+ed(this,e)};var nd=td;function rd(e,t,n,r,o){var i="",a="",s=Math.floor(o/2)-1;return r-t>s&&(t=r-s+(i=" ... ").length),n-r>s&&(n=r+s-(a=" ...").length),{str:i+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+i.length}}function od(e,t){return Xu.repeat(" ",t-e.length)+e}var id=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,r=/\r?\n|\r|\0/g,o=[0],i=[],a=-1;n=r.exec(e.buffer);)i.push(n.index),o.push(n.index+n[0].length),e.position<=n.index&&a<0&&(a=o.length-2);a<0&&(a=o.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=rd(e.buffer,o[a-s],i[a-s],e.position-(o[a]-o[a-s]),d),c=Xu.repeat(" ",t.indent)+od((e.line-s+1).toString(),u)+" | "+l.str+"\n"+c;for(l=rd(e.buffer,o[a],i[a],e.position,d),c+=Xu.repeat(" ",t.indent)+od((e.line+1).toString(),u)+" | "+l.str+"\n",c+=Xu.repeat("-",t.indent+u+3+l.pos)+"^\n",s=1;s<=t.linesAfter&&!(a+s>=i.length);s++)l=rd(e.buffer,o[a+s],i[a+s],e.position-(o[a]-o[a+s]),d),c+=Xu.repeat(" ",t.indent)+od((e.line+s+1).toString(),u)+" | "+l.str+"\n";return c.replace(/\n$/,"")},ad=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],sd=["scalar","sequence","mapping"];var ld=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===ad.indexOf(t))throw new nd('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===sd.indexOf(this.kind))throw new nd('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function cd(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)})),n[t]=e})),n}function ud(e){return this.extend(e)}ud.prototype.extend=function(e){var t=[],n=[];if(e instanceof ld)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 nd("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 ld))throw new nd("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new nd("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 nd("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 ld))throw new nd("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(ud.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=cd(r,"implicit"),r.compiledExplicit=cd(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(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(r);return n}(r.compiledImplicit,r.compiledExplicit),r};var dd=new ud({explicit:[new ld("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),new ld("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),new ld("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})]});var pd=new ld("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 fd=new ld("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 hd(e){return 48<=e&&e<=55}function md(e){return 48<=e&&e<=57}var vd=new ld("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,o=0,i=!1;if(!r)return!1;if("-"!==(t=e[o])&&"+"!==t||(t=e[++o]),"0"===t){if(o+1===r)return!0;if("b"===(t=e[++o])){for(o++;o<r;o++)if("_"!==(t=e[o])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(o++;o<r;o++)if("_"!==(t=e[o])){if(!(48<=(n=e.charCodeAt(o))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(o++;o<r;o++)if("_"!==(t=e[o])){if(!hd(e.charCodeAt(o)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;o<r;o++)if("_"!==(t=e[o])){if(!md(e.charCodeAt(o)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!Xu.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"]}}),yd=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var wd=/^[-+]?[0-9]+e/;var gd=new ld("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!yd.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||Xu.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(Xu.isNegativeZero(e))return"-0.0";return n=e.toString(10),wd.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),bd=dd.extend({implicit:[pd,fd,vd,gd]}),kd=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$d=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 jd=new ld("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==kd.exec(e)||null!==$d.exec(e))},construct:function(e){var t,n,r,o,i,a,s,l,c=0,u=null;if(null===(t=kd.exec(e))&&(t=$d.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(n,r,o));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,r,o,i,a,s,c)),u&&l.setTime(l.getTime()-u),l},instanceOf:Date,represent:function(e){return e.toISOString()}});var Ad=new ld("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),Td="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Pd=new ld("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,o=e.length,i=Td;for(n=0;n<o;n++)if(!((t=i.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),o=r.length,i=Td,a=0,s=[];for(t=0;t<o;t++)t%4==0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|i.indexOf(r.charAt(t));return 0===(n=o%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,r="",o=0,i=e.length,a=Td;for(t=0;t<i;t++)t%3==0&&t&&(r+=a[o>>18&63],r+=a[o>>12&63],r+=a[o>>6&63],r+=a[63&o]),o=(o<<8)+e[t];return 0===(n=i%3)?(r+=a[o>>18&63],r+=a[o>>12&63],r+=a[o>>6&63],r+=a[63&o]):2===n?(r+=a[o>>10&63],r+=a[o>>4&63],r+=a[o<<2&63],r+=a[64]):1===n&&(r+=a[o>>2&63],r+=a[o<<4&63],r+=a[64],r+=a[64]),r}}),Ed=Object.prototype.hasOwnProperty,Cd=Object.prototype.toString;var zd=new ld("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,i,a=[],s=e;for(t=0,n=s.length;t<n;t+=1){if(r=s[t],i=!1,"[object Object]"!==Cd.call(r))return!1;for(o in r)if(Ed.call(r,o)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==a.indexOf(o))return!1;a.push(o)}return!0},construct:function(e){return null!==e?e:[]}}),Sd=Object.prototype.toString;var _d=new ld("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,o,i,a=e;for(i=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],"[object Object]"!==Sd.call(r))return!1;if(1!==(o=Object.keys(r)).length)return!1;i[t]=[o[0],r[o[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,o,i,a=e;for(i=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],o=Object.keys(r),i[t]=[o[0],r[o[0]]];return i}}),Od=Object.prototype.hasOwnProperty;var xd=new ld("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(Od.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),Id=bd.extend({implicit:[jd,Ad],explicit:[Pd,zd,_d,xd]}),Rd=Object.prototype.hasOwnProperty,Nd=1,Dd=2,Bd=3,Md=4,Fd=1,qd=2,Ud=3,Ld=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Vd=/[\x85\u2028\u2029]/,Wd=/[,\[\]\{\}]/,Gd=/^(?:!|!!|![a-z\-]+!)$/i,Hd=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Kd(e){return Object.prototype.toString.call(e)}function Jd(e){return 10===e||13===e}function Zd(e){return 9===e||32===e}function Yd(e){return 9===e||32===e||10===e||13===e}function Qd(e){return 44===e||91===e||93===e||123===e||125===e}function Xd(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function ep(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 tp(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var np=new Array(256),rp=new Array(256),op=0;op<256;op++)np[op]=ep(op)?1:0,rp[op]=ep(op);function ip(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Id,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 ap(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=id(n),new nd(t,n)}function sp(e,t){throw ap(e,t)}function lp(e,t){e.onWarning&&e.onWarning.call(null,ap(e,t))}var cp={YAML:function(e,t,n){var r,o,i;null!==e.version&&sp(e,"duplication of %YAML directive"),1!==n.length&&sp(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&sp(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),i=parseInt(r[2],10),1!==o&&sp(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&lp(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&sp(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],Gd.test(r)||sp(e,"ill-formed tag handle (first argument) of the TAG directive"),Rd.call(e.tagMap,r)&&sp(e,'there is a previously declared suffix for "'+r+'" tag handle'),Hd.test(o)||sp(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(t){sp(e,"tag prefix is malformed: "+o)}e.tagMap[r]=o}};function up(e,t,n,r){var o,i,a,s;if(t<n){if(s=e.input.slice(t,n),r)for(o=0,i=s.length;o<i;o+=1)9===(a=s.charCodeAt(o))||32<=a&&a<=1114111||sp(e,"expected valid JSON character");else Ld.test(s)&&sp(e,"the stream contains non-printable characters");e.result+=s}}function dp(e,t,n,r){var o,i,a,s;for(Xu.isObject(n)||sp(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(o=Object.keys(n)).length;a<s;a+=1)i=o[a],Rd.call(t,i)||(t[i]=n[i],r[i]=!0)}function pp(e,t,n,r,o,i,a,s,l){var c,u;if(Array.isArray(o))for(c=0,u=(o=Array.prototype.slice.call(o)).length;c<u;c+=1)Array.isArray(o[c])&&sp(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===Kd(o[c])&&(o[c]="[object Object]");if("object"==typeof o&&"[object Object]"===Kd(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(i))for(c=0,u=i.length;c<u;c+=1)dp(e,t,i[c],n);else dp(e,t,i,n);else e.json||Rd.call(n,o)||!Rd.call(t,o)||(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,sp(e,"duplicated mapping key")),"__proto__"===o?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[o]=i,delete n[o];return t}function fp(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):sp(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function hp(e,t,n){for(var r=0,o=e.input.charCodeAt(e.position);0!==o;){for(;Zd(o);)9===o&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&35===o)do{o=e.input.charCodeAt(++e.position)}while(10!==o&&13!==o&&0!==o);if(!Jd(o))break;for(fp(e),o=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&lp(e,"deficient indentation"),r}function mp(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))&&!Yd(t)))}function vp(e,t){1===t?e.result+=" ":t>1&&(e.result+=Xu.repeat("\n",t-1))}function yp(e,t){var n,r,o=e.tag,i=e.anchor,a=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,sp(e,"tab characters must not be used in indentation")),45===r)&&Yd(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,hp(e,!0,-1)&&e.lineIndent<=t)a.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,bp(e,t,Bd,!1,!0),a.push(e.result),hp(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)sp(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=o,e.anchor=i,e.kind="sequence",e.result=a,!0)}function wp(e){var t,n,r,o,i=!1,a=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&sp(e,"duplication of a tag property"),60===(o=e.input.charCodeAt(++e.position))?(i=!0,o=e.input.charCodeAt(++e.position)):33===o?(a=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,i){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&62!==o);e.position<e.length?(r=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):sp(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!Yd(o);)33===o&&(a?sp(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Gd.test(n)||sp(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),Wd.test(r)&&sp(e,"tag suffix cannot contain flow indicator characters")}r&&!Hd.test(r)&&sp(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){sp(e,"tag name is malformed: "+r)}return i?e.tag=r:Rd.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:sp(e,'undeclared tag handle "'+n+'"'),!0}function gp(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&sp(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Yd(n)&&!Qd(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&sp(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function bp(e,t,n,r,o){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=Md===n||Bd===n,r&&hp(e,!0,-1)&&(m=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;wp(e)||gp(e);)hp(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||o),1!==h&&Md!==n||(p=Nd===n||Dd===n?t:t+1,f=e.position-e.lineStart,1===h?s&&(yp(e,f)||function(e,t,n){var r,o,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,sp(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),i=e.line,63!==c&&58!==c||!Yd(r)){if(a=e.line,s=e.lineStart,l=e.position,!bp(e,n,Dd,!1,!0))break;if(e.line===i){for(c=e.input.charCodeAt(e.position);Zd(c);)c=e.input.charCodeAt(++e.position);if(58===c)Yd(c=e.input.charCodeAt(++e.position))||sp(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(pp(e,p,f,h,m,null,a,s,l),h=m=v=null),w=!0,y=!1,o=!1,h=e.tag,m=e.result;else{if(!w)return e.tag=u,e.anchor=d,!0;sp(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!w)return e.tag=u,e.anchor=d,!0;sp(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(pp(e,p,f,h,m,null,a,s,l),h=m=v=null),w=!0,y=!0,o=!0):y?(y=!1,o=!0):sp(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=r;if((e.line===i||e.lineIndent>t)&&(y&&(a=e.line,s=e.lineStart,l=e.position),bp(e,t,Md,!0,o)&&(y?m=e.result:v=e.result),y||(pp(e,p,f,h,m,v,a,s,l),h=m=v=null),hp(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)sp(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&pp(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,r,o,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(hp(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&&sp(e,"expected the node content, but found ','"):sp(e,"missed comma between flow collection entries"),p=null,s=l=!1,63===f&&Yd(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,hp(e,!0,t)),n=e.line,r=e.lineStart,o=e.position,bp(e,t,Nd,!1,!0),d=e.tag,u=e.result,hp(e,!0,t),f=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==f||(s=!0,f=e.input.charCodeAt(++e.position),hp(e,!0,t),bp(e,t,Nd,!1,!0),p=e.result),c?pp(e,i,y,d,u,p,n,r,o):s?i.push(pp(e,null,y,d,u,p,n,r,o)):i.push(u),hp(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(h=!0,f=e.input.charCodeAt(++e.position)):h=!1}sp(e,"unexpected end of the stream within a flow collection")}(e,p)?v=!0:(a&&function(e,t){var n,r,o,i,a,s=Fd,l=!1,c=!1,u=t,d=0,p=!1;if(124===(i=e.input.charCodeAt(e.position)))r=!1;else{if(62!==i)return!1;r=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)Fd===s?s=43===i?Ud:qd:sp(e,"repeat of a chomping mode identifier");else{if(!((o=48<=(a=i)&&a<=57?a-48:-1)>=0))break;0===o?sp(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?sp(e,"repeat of an indentation width identifier"):(u=t+o-1,c=!0)}if(Zd(i)){do{i=e.input.charCodeAt(++e.position)}while(Zd(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Jd(i)&&0!==i)}for(;0!==i;){for(fp(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),Jd(i))d++;else{if(e.lineIndent<u){s===Ud?e.result+=Xu.repeat("\n",l?1+d:d):s===Fd&&l&&(e.result+="\n");break}for(r?Zd(i)?(p=!0,e.result+=Xu.repeat("\n",l?1+d:d)):p?(p=!1,e.result+=Xu.repeat("\n",d+1)):0===d?l&&(e.result+=" "):e.result+=Xu.repeat("\n",d):e.result+=Xu.repeat("\n",l?1+d:d),l=!0,c=!0,d=0,n=e.position;!Jd(i)&&0!==i;)i=e.input.charCodeAt(++e.position);up(e,n,e.position,!1)}}return!0}(e,p)||function(e,t){var n,r,o;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=o=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(up(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,o=e.position}else Jd(n)?(up(e,r,o,!0),vp(e,hp(e,!1,t)),r=o=e.position):e.position===e.lineStart&&mp(e)?sp(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);sp(e,"unexpected end of the stream within a single quoted scalar")}(e,p)||function(e,t){var n,r,o,i,a,s,l;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return up(e,n,e.position,!0),e.position++,!0;if(92===s){if(up(e,n,e.position,!0),Jd(s=e.input.charCodeAt(++e.position)))hp(e,!1,t);else if(s<256&&np[s])e.result+=rp[s],e.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(o=a,i=0;o>0;o--)(a=Xd(s=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:sp(e,"expected hexadecimal character");e.result+=tp(i),e.position++}else sp(e,"unknown escape sequence");n=r=e.position}else Jd(s)?(up(e,n,r,!0),vp(e,hp(e,!1,t)),n=r=e.position):e.position===e.lineStart&&mp(e)?sp(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}sp(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?v=!0:!function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Yd(r)&&!Qd(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&sp(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Rd.call(e.anchorMap,n)||sp(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],hp(e,!0,-1),!0}(e)?function(e,t,n){var r,o,i,a,s,l,c,u,d=e.kind,p=e.result;if(Yd(u=e.input.charCodeAt(e.position))||Qd(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)&&(Yd(r=e.input.charCodeAt(e.position+1))||n&&Qd(r)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==u;){if(58===u){if(Yd(r=e.input.charCodeAt(e.position+1))||n&&Qd(r))break}else if(35===u){if(Yd(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&mp(e)||n&&Qd(u))break;if(Jd(u)){if(s=e.line,l=e.lineStart,c=e.lineIndent,hp(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&&(up(e,o,i,!1),vp(e,e.line-s),o=i=e.position,a=!1),Zd(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return up(e,o,i,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,p,Nd===n)&&(v=!0,null===e.tag&&(e.tag="?")):(v=!0,null===e.tag&&null===e.anchor||sp(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(v=s&&yp(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&&sp(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(Rd.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||sp(e,"unknown tag !<"+e.tag+">"),null!==e.result&&d.kind!==e.kind&&sp(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)):sp(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 kp(e){var t,n,r,o,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(o=e.input.charCodeAt(e.position))&&(hp(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==o));){for(a=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!Yd(o);)o=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&sp(e,"directive name must not be less than one character in length");0!==o;){for(;Zd(o);)o=e.input.charCodeAt(++e.position);if(35===o){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&!Jd(o));break}if(Jd(o))break;for(t=e.position;0!==o&&!Yd(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&fp(e),Rd.call(cp,n)?cp[n](e,n,r):lp(e,'unknown document directive "'+n+'"')}hp(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,hp(e,!0,-1)):a&&sp(e,"directives end mark is expected"),bp(e,e.lineIndent-1,Md,!1,!0),hp(e,!0,-1),e.checkLineBreaks&&Vd.test(e.input.slice(i,e.position))&&lp(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&mp(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,hp(e,!0,-1)):e.position<e.length-1&&sp(e,"end of the stream or a document separator is expected")}function $p(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 ip(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,sp(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;)kp(n);return n.documents}var jp={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=$p(e,n);if("function"!=typeof t)return r;for(var o=0,i=r.length;o<i;o+=1)t(r[o])},load:function(e,t){var n=$p(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new nd("expected a single document in the stream, but found more")}}},Ap=Object.prototype.toString,Tp=Object.prototype.hasOwnProperty,Pp=65279,Ep=9,Cp=10,zp=13,Sp=32,_p=33,Op=34,xp=35,Ip=37,Rp=38,Np=39,Dp=42,Bp=44,Mp=45,Fp=58,qp=61,Up=62,Lp=63,Vp=64,Wp=91,Gp=93,Hp=96,Kp=123,Jp=124,Zp=125,Yp={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"},Qp=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Xp=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ef(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else{if(!(e<=4294967295))throw new nd("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+Xu.repeat("0",r-t.length)+t}var tf=1,nf=2;function rf(e){this.schema=e.schema||Id,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Xu.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,o,i,a,s,l;if(null===t)return{};for(n={},o=0,i=(r=Object.keys(t)).length;o<i;o+=1)a=r[o],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=e.compiledTypeMap.fallback[a])&&Tp.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?nf:tf,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 of(e,t){for(var n,r=Xu.repeat(" ",t),o=0,i=-1,a="",s=e.length;o<s;)-1===(i=e.indexOf("\n",o))?(n=e.slice(o),o=s):(n=e.slice(o,i+1),o=i+1),n.length&&"\n"!==n&&(a+=r),a+=n;return a}function af(e,t){return"\n"+Xu.repeat(" ",e.indent*t)}function sf(e){return e===Sp||e===Ep}function lf(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==Pp||65536<=e&&e<=1114111}function cf(e){return lf(e)&&e!==Pp&&e!==zp&&e!==Cp}function uf(e,t,n){var r=cf(e),o=r&&!sf(e);return(n?r:r&&e!==Bp&&e!==Wp&&e!==Gp&&e!==Kp&&e!==Zp)&&e!==xp&&!(t===Fp&&!o)||cf(t)&&!sf(t)&&e===xp||t===Fp&&o}function df(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function pf(e){return/^\n* /.test(e)}var ff=1,hf=2,mf=3,vf=4,yf=5;function wf(e,t,n,r,o,i,a,s){var l,c,u=0,d=null,p=!1,f=!1,h=-1!==r,m=-1,v=lf(c=df(e,0))&&c!==Pp&&!sf(c)&&c!==Mp&&c!==Lp&&c!==Fp&&c!==Bp&&c!==Wp&&c!==Gp&&c!==Kp&&c!==Zp&&c!==xp&&c!==Rp&&c!==Dp&&c!==_p&&c!==Jp&&c!==qp&&c!==Up&&c!==Np&&c!==Op&&c!==Ip&&c!==Vp&&c!==Hp&&function(e){return!sf(e)&&e!==Fp}(df(e,e.length-1));if(t||a)for(l=0;l<e.length;u>=65536?l+=2:l++){if(!lf(u=df(e,l)))return yf;v=v&&uf(u,d,s),d=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if((u=df(e,l))===Cp)p=!0,h&&(f=f||l-m-1>r&&" "!==e[m+1],m=l);else if(!lf(u))return yf;v=v&&uf(u,d,s),d=u}f=f||h&&l-m-1>r&&" "!==e[m+1]}return p||f?n>9&&pf(e)?yf:a?i===nf?yf:hf:f?vf:mf:!v||a||o(e)?i===nf?yf:hf:ff}function gf(e,t,n,r,o){e.dump=function(){if(0===t.length)return e.quotingType===nf?'""':"''";if(!e.noCompatMode&&(-1!==Qp.indexOf(t)||Xp.test(t)))return e.quotingType===nf?'"'+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=r||e.flowLevel>-1&&n>=e.flowLevel;switch(wf(t,s,e.indent,a,(function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!r,o)){case ff:return t;case hf:return"'"+t.replace(/'/g,"''")+"'";case mf:return"|"+bf(t,e.indent)+kf(of(t,i));case vf:return">"+bf(t,e.indent)+kf(of(function(e,t){var n,r,o=/(\n+)([^\n]*)/g,i=(s=e.indexOf("\n"),s=-1!==s?s:e.length,o.lastIndex=s,$f(e.slice(0,s),t)),a="\n"===e[0]||" "===e[0];var s;for(;r=o.exec(e);){var l=r[1],c=r[2];n=" "===c[0],i+=l+(a||n||""===c?"":"\n")+$f(c,t),a=n}return i}(t,a),i));case yf:return'"'+function(e){for(var t,n="",r=0,o=0;o<e.length;r>=65536?o+=2:o++)r=df(e,o),!(t=Yp[r])&&lf(r)?(n+=e[o],r>=65536&&(n+=e[o+1])):n+=t||ef(r);return n}(t)+'"';default:throw new nd("impossible error: invalid scalar style")}}()}function bf(e,t){var n=pf(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function kf(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function $f(e,t){if(""===e||" "===e[0])return e;for(var n,r,o=/ [^ ]/g,i=0,a=0,s=0,l="";n=o.exec(e);)(s=n.index)-i>t&&(r=a>i?a:s,l+="\n"+e.slice(i,r),i=r+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 jf(e,t,n,r){var o,i,a,s="",l=e.tag;for(o=0,i=n.length;o<i;o+=1)a=n[o],e.replacer&&(a=e.replacer.call(n,String(o),a)),(Tf(e,t+1,a,!0,!0,!1,!0)||void 0===a&&Tf(e,t+1,null,!0,!0,!1,!0))&&(r&&""===s||(s+=af(e,t)),e.dump&&Cp===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function Af(e,t,n){var r,o,i,a,s,l;for(i=0,a=(o=n?e.explicitTypes:e.implicitTypes).length;i<a;i+=1)if(((s=o[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]"===Ap.call(s.represent))r=s.represent(t,l);else{if(!Tp.call(s.represent,l))throw new nd("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');r=s.represent[l](t,l)}e.dump=r}return!0}return!1}function Tf(e,t,n,r,o,i,a){e.tag=null,e.dump=n,Af(e,n,!1)||Af(e,n,!0);var s,l=Ap.call(e.dump),c=r;r&&(r=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)&&(o=!1),d&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(p&&d&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===l)r&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var o,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 nd("sortKeys must be a boolean or a function");for(o=0,i=p.length;o<i;o+=1)c="",r&&""===u||(c+=af(e,t)),s=n[a=p[o]],e.replacer&&(s=e.replacer.call(n,a,s)),Tf(e,t+1,a,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&Cp===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=af(e,t)),Tf(e,t+1,s,!0,l)&&(e.dump&&Cp===e.dump.charCodeAt(0)?c+=":":c+=": ",u+=c+=e.dump));e.tag=d,e.dump=u||"{}"}(e,t,e.dump,o),d&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var r,o,i,a,s,l="",c=e.tag,u=Object.keys(n);for(r=0,o=u.length;r<o;r+=1)s="",""!==l&&(s+=", "),e.condenseFlow&&(s+='"'),a=n[i=u[r]],e.replacer&&(a=e.replacer.call(n,i,a)),Tf(e,t,i,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Tf(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)r&&0!==e.dump.length?(e.noArrayIndent&&!a&&t>0?jf(e,t-1,e.dump,o):jf(e,t,e.dump,o),d&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var r,o,i,a="",s=e.tag;for(r=0,o=n.length;r<o;r+=1)i=n[r],e.replacer&&(i=e.replacer.call(n,String(r),i)),(Tf(e,t,i,!1,!1)||void 0===i&&Tf(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 nd("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&gf(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 Pf(e,t){var n,r,o=[],i=[];for(Ef(e,o,i),n=0,r=i.length;n<r;n+=1)t.duplicates.push(o[i[n]]);t.usedDuplicates=new Array(r)}function Ef(e,t,n){var r,o,i;if(null!==e&&"object"==typeof e)if(-1!==(o=t.indexOf(e)))-1===n.indexOf(o)&&n.push(o);else if(t.push(e),Array.isArray(e))for(o=0,i=e.length;o<i;o+=1)Ef(e[o],t,n);else for(o=0,i=(r=Object.keys(e)).length;o<i;o+=1)Ef(e[r[o]],t,n)}var Cf,zf,Sf=jp.load,_f={dump:function(e,t){var n=new rf(t=t||{});n.noRefs||Pf(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Tf(n,0,r,!0,!0)?n.dump+"\n":""}}.dump,Of="-entry-node",xf="-exit-node",If="root",Rf="/do",Nf="/for",Df="/catch",Bf="/fork/branches",Mf="/try";function Ff(e){return(e||[]).reduce((function(e,t){var n=Object.entries(t)[0],r=n[0],o=n[1];return e.set(r,o),e}),new Map)}function qf(t,n,r,o){void 0===n&&(n=If),void 0===r&&(r=void 0),void 0===o&&(o=void 0);var i={type:n===If?e.GraphNodeType.Start:e.GraphNodeType.Entry,id:"".concat(n).concat(Of)},a={type:n===If?e.GraphNodeType.End:e.GraphNodeType.Exit,id:"".concat(n).concat(xf)},s={id:n,label:r,type:t,parent:o,entryNode:i,exitNode:a,nodes:[i,a],edges:[]};return o&&o.nodes.push(s),s}function Uf(t){var n=qf(e.GraphNodeType.Root);return Wf(n.entryNode,{graph:n,reference:Rf,taskList:Ff(t.do),taskReference:Rf}),n}function Lf(e,t,n){if(void 0===t&&(t=void 0),void 0===n&&(n=void 0),!(null==e?void 0:e.size))throw new Error("The task list cannot be empty. No tasks list to get the next task from.");var r=e.get(t||"");if((n=n||(null==r?void 0:r.then)||"")==zf.End||n==zf.Exit)return{name:n,index:-1};var o=0;if(n&&n!=zf.Continue)o=Array.from(e.keys()).indexOf(n);else if(r&&(o=Array.from(e.values()).indexOf(r)+1)>=e.size)return{name:zf.End,index:-1};var i=Array.from(e.entries())[o];return{index:o,name:i[0],task:i[1]}}function Vf(e,t,n){var r=e.exitNode||e;if(-1!=t.index){var o=Gf(a(a({},n),{taskReference:"".concat(n.reference,"/").concat(t.index,"/").concat(t.name),taskName:t.name}));Kf(n.graph,r,o.entryNode||o,t.label)}else if(t.name===zf.Exit)Kf(n.graph,r,n.graph.exitNode,t.label);else{if(t.name!==zf.End)throw new Error("Invalid transition");Kf(n.graph,r,n.graph.exitNode,t.label)}}function Wf(e,t){var n,r,o=[],i=Lf(t.taskList,t.taskName);for(o.push(i);null===(n=null==i?void 0:i.task)||void 0===n?void 0:n.if;)i.label=null===(r=null==i?void 0:i.task)||void 0===r?void 0:r.if,i=Lf(t.taskList,i.name,zf.Continue),o.push(i);o.filter((function(e,t){return o.findIndex((function(t){return t.index===e.index&&t.name===e.name&&t.task===e.task}))===t})).forEach((function(n){return Vf(e,n,t)}))}function Gf(t){var n=t.taskList.get(t.taskName);if(!n)throw new Error("Unabled to find the task '".concat(t.taskName,"' in the current context"));if(n.call)return function(t,n){var r=Hf(e.GraphNodeType.Call,n);return r}(0,t);if(n.catch)return function(t,n){var r,o,i=qf(e.GraphNodeType.TryCatch,n.taskReference,n.taskName,n.graph),s=qf(e.GraphNodeType.Try,n.taskReference+Mf,n.taskName+" (try)",i);Kf(i,i.entryNode,s.entryNode);var l=a(a({},n),{graph:s,reference:s.id,taskList:Ff(t.try),taskName:null});if(Wf(s.entryNode,l),null===(o=null===(r=t.catch)||void 0===r?void 0:r.do)||void 0===o?void 0:o.length){var c=qf(e.GraphNodeType.Catch,n.taskReference+Df+Rf,n.taskName+" (catch)",i);Kf(i,s.exitNode,c.entryNode);var u=a(a({},n),{graph:c,reference:c.id,taskList:Ff(t.catch.do),taskName:null});Wf(c.entryNode,u),Kf(i,c.exitNode,i.exitNode)}else{var d={type:e.GraphNodeType.Catch,id:n.taskReference+Df,label:n.taskName+" (catch)"};i.nodes.push(d),Kf(i,s.exitNode,d),Kf(i,d,i.exitNode)}return Wf(i,n),i}(n,t);if(n.emit)return function(t,n){var r=Hf(e.GraphNodeType.Emit,n);return r}(0,t);if(n.for)return function(t,n){var r=qf(e.GraphNodeType.For,n.taskReference,n.taskName,n.graph),o=a(a({},n),{graph:r,reference:r.id+Nf+Rf,taskList:Ff(t.do),taskName:null});return Wf(r.entryNode,o),Wf(r,n),r}(n,t);if(n.fork)return function(t,n){for(var r,o,i=qf(e.GraphNodeType.Fork,n.taskReference,n.taskName,n.graph),s=0,l=(null===(r=t.fork)||void 0===r?void 0:r.branches.length)||0;s<l;s++){var c=null===(o=t.fork)||void 0===o?void 0:o.branches[s];if(c){var u=Object.entries(c)[0][0],d=Gf(a(a({},n),{graph:i,reference:"".concat(n.taskReference).concat(Bf),taskList:Ff([c]),taskReference:"".concat(n.taskReference).concat(Bf,"/").concat(s,"/").concat(u),taskName:u}));Kf(i,i.entryNode,d.entryNode||d),Kf(i,d.exitNode||d,i.exitNode)}}return Wf(i,n),i}(n,t);if(n.listen)return function(t,n){var r=Hf(e.GraphNodeType.Listen,n);return r}(0,t);if(n.raise)return function(t,n){var r=Hf(e.GraphNodeType.Raise,n);return r}(0,t);if(n.run)return function(t,n){var r=Hf(e.GraphNodeType.Run,n);return r}(0,t);if(n.set)return function(t,n){var r=Hf(e.GraphNodeType.Set,n);return r}(0,t);if(n.switch)return function(t,n){var r,o=Hf(e.GraphNodeType.Switch,n),i=!1;null===(r=t.switch)||void 0===r||r.forEach((function(e){var t=Object.entries(e)[0],r=t[0],a=t[1];a.when||(i=!0);var s=Lf(n.taskList,n.taskName,a.then);s.label=r,Vf(o,s,n)})),i||Wf(o,n);return o}(n,t);if(n.wait)return function(t,n){var r=Hf(e.GraphNodeType.Wait,n);return r}(0,t);if(n.do)return function(t,n){var r=qf(e.GraphNodeType.Do,n.taskReference,n.taskName,n.graph),o=a(a({},n),{graph:r,reference:n.taskReference+Rf,taskList:Ff(t.do),taskName:null});return Wf(r.entryNode,o),Wf(r,n),r}(n,t);throw new Error("Unable to defined task type of task named '".concat(t.taskName,"'"))}function Hf(e,t){var n={type:e,id:t.taskReference,label:t.taskName};return t.graph.nodes.push(n),Wf(n,t),n}function Kf(e,t,n,r){void 0===r&&(r="");var o=e.edges.find((function(e){return e.sourceId===t.id&&e.destinationId===n.id}));if(o)return r&&(o.label=o.label+(o.label?" / ":"")+r),o;o={label:r,id:"".concat(t.id,"-").concat(n.id).concat(r?"-".concat(r):""),sourceId:t.id,destinationId:n.id},e.edges.push(o)}e.GraphNodeType=void 0,(Cf=e.GraphNodeType||(e.GraphNodeType={})).Root="root",Cf.Start="start",Cf.End="end",Cf.Entry="entry",Cf.Exit="exit",Cf.Call="call",Cf.Catch="catch",Cf.Do="do",Cf.Emit="emit",Cf.For="for",Cf.Fork="fork",Cf.Listen="listen",Cf.Raise="raise",Cf.Run="run",Cf.Set="set",Cf.Switch="switch",Cf.Try="try",Cf.TryCatch="try-catch",Cf.Wait="wait",function(e){e.Exit="exit",e.End="end",e.Continue="continue"}(zf||(zf={}));var Jf=function(e){return e.split("\n").map((function(e){return" ".concat(e)})).join("\n")};function Zf(t){var n="root"===t.id;return"".concat(n?"flowchart TD":"subgraph ".concat(t.id,' ["').concat(t.label||t.id,'"]'),"\n").concat(Jf(t.nodes.map((function(t){return function(t){var n,r="";if(null===(n=t.nodes)||void 0===n?void 0:n.length)r=Zf(t);else switch(r=t.id,t.type){case e.GraphNodeType.Entry:case e.GraphNodeType.Exit:r+=":::hidden";break;case e.GraphNodeType.Start:r+="(( ))";break;case e.GraphNodeType.End:r+="((( )))";break;default:r+='["'.concat(t.label,'"]')}return r}(t)})).join("\n")),"\n").concat(Jf(t.edges.map((function(e){return function(e){var t=!e.destinationId.startsWith("root")&&(e.destinationId.endsWith("-entry-node")||e.destinationId.endsWith("-exit-node")),n="".concat(e.sourceId," ").concat(e.label?'--"'.concat(e.label,'"'):"","--").concat(t?"-":">"," ").concat(e.destinationId);return n}(e)})).join("\n")),"\n").concat(n?"":"end")}function Yf(e){return Zf(Uf(e))+"\n\nclassDef hidden display: none;"}var Qf=function(){function e(e){this.workflow=e}return e.prototype.sourceCode=function(){return Yf(this.workflow)},e}(),Xf=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return c(t)&&("object"==typeof t.document&&(i.document=new dc(t.document)),"object"==typeof t.input&&(i.input=new el(t.input)),"object"==typeof t.use&&(i.use=new Ku(t.use)),"object"==typeof t.do&&(i.do=new qc(t.do)),"object"==typeof t.timeout&&(i.timeout=new Yu(t.timeout)),"object"==typeof t.output&&(i.output=new nl(t.output)),"object"==typeof t.schedule&&(i.schedule=new _u(t.schedule))),null===(r=null===(n=v("Workflow"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return i(t,e),t.prototype.validate=function(e){var n=new t(this);Ka("Workflow",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=v("Workflow"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t.deserialize=function(e){var n=Sf(e);return Ka("Workflow",n),new t(n)},t.serialize=function(e,n,r){void 0===n&&(n="yaml"),void 0===r&&(r=!0);var o=new t(e);o.validate();var i=r?o.normalize():o;return"json"===n?JSON.stringify(i):_f(i)},t.toGraph=function(e){return Uf(e)},t.toMermaidCode=function(e){return Yf(e)},t.prototype.serialize=function(e,n){return void 0===e&&(e="yaml"),void 0===n&&(n=!0),t.serialize(this,e,n)},t.prototype.toGraph=function(){return t.toGraph(this)},t.prototype.toMermaidCode=function(){return t.toMermaidCode(this)},t}(d),eh={AllEventConsumptionStrategy:os,AllEventConsumptionStrategyConfiguration:ns,AnyEventConsumptionStrategy:us,AnyEventConsumptionStrategyConfiguration:as,AnyEventConsumptionStrategyUntil:ls,AnyEventUntilConsumed:ps,AsyncApiArguments:hs,AuthenticationPolicy:Is,AuthenticationPolicyReference:Ns,BasicAuthenticationPolicy:Bs,BasicAuthenticationPolicyConfiguration:vs,BasicAuthenticationProperties:Fs,BearerAuthenticationPolicy:Us,BearerAuthenticationPolicyConfiguration:ws,BearerAuthenticationProperties:Vs,CallAsyncAPI:hl,CallFunction:wl,CallGRPC:Pl,CallHTTP:Nl,CallOpenAPI:Ul,CallTask:Vl,Catalog:Gl,CatchErrors:Zl,ConstantBackoff:Ql,Container:ac,ContainerEnvironment:oc,ContainerLifetime:ic,ContainerPorts:ec,ContainerVolumes:nc,DigestAuthenticationPolicy:sc,DigestAuthenticationPolicyConfiguration:bs,DigestAuthenticationProperties:lc,Document:dc,DoTask:Uc,Duration:al,DurationInline:Lc,EmitEventDefinition:hc,EmitEventWith:fc,EmitTask:Vc,EmitTaskConfiguration:mc,Endpoint:Ks,EndpointConfiguration:Wc,EndpointUri:Gc,Error:Hc,ErrorFilter:Kl,ErrorInstance:Kc,ErrorType:Jc,EventConsumptionStrategy:yc,EventData:Zc,EventDataschema:Yc,EventFilter:es,EventFilterCorrelate:Qa,EventSource:Qc,EventTime:Xc,ExponentialBackOff:eu,Export:ol,ExportAs:tu,Extension:nu,ExtensionItem:ru,ExternalResource:Zs,ExternalScript:ou,FlowDirective:au,ForkTask:su,ForkTaskConfiguration:pc,ForTask:lu,ForTaskConfiguration:vc,FunctionArguments:vl,GRPCArguments:Al,HTTPArguments:Il,HTTPBody:Sl,HTTPHeaders:Cl,HTTPQuery:Ol,InlineScript:cu,Input:el,InputFrom:uu,LinearBackoff:du,ListenTask:pu,ListenTaskConfiguration:wc,OAuth2AutenthicationData:fu,OAuth2AutenthicationDataAudiences:hu,OAuth2AutenthicationDataClient:$s,OAuth2AutenthicationDataScopes:mu,OAuth2AuthenticationPolicy:vu,OAuth2AuthenticationPolicyConfiguration:Ss,OAuth2AuthenticationPropertiesEndpoints:Cs,OAuth2ConnectAuthenticationProperties:yu,OAuth2Issuers:wu,OAuth2TokenDefinition:Ps,OAuth2TokenRequest:As,OneEventConsumptionStrategy:gu,OpenAPIArguments:Fl,OpenIdConnectAuthenticationPolicy:bu,OpenIdConnectAuthenticationPolicyConfiguration:Os,OpenIdConnectAuthenticationProperties:ku,Output:nl,OutputAs:$u,RaiseTask:ju,RaiseTaskConfiguration:kc,RaiseTaskError:bc,ReferenceableAuthenticationPolicy:Gs,RetryBackoff:xc,RetryLimit:Rc,RetryLimitAttempt:Ic,RetryPolicy:Au,RetryPolicyJitter:Nc,RunContainer:Tu,RunScript:Pu,RunShell:Eu,RunTask:Cu,RunTaskConfiguration:Cc,RuntimeExpression:zu,RunWorkflow:Su,Schedule:_u,Schema:Qs,SchemaExternal:Ou,SchemaInline:xu,Script:$c,SecretBasedAuthenticationPolicy:Iu,SetTask:Ru,SetTaskConfiguration:zc,Shell:Tc,ShellArguments:jc,ShellEnvironment:Ac,SubflowConfiguration:Ec,SubflowInput:Pc,SubscriptionIterator:gc,SwitchCase:Sc,SwitchItem:_c,SwitchTask:Nu,SwitchTaskConfiguration:Oc,Task:Mc,TaskBase:pl,TaskBaseIf:Du,TaskItem:Fc,TaskList:qc,TaskMetadata:ul,TaskTimeout:ll,Timeout:Bu,TryTask:Mu,TryTaskCatch:Bc,TryTaskCatchRetry:Dc,UriTemplate:Fu,Use:Ku,UseAuthentications:qu,UseCatalogs:Hu,UseErrors:Uu,UseExtensions:Lu,UseFunctions:Vu,UseRetries:Wu,UseSecrets:Ju,UseTimeouts:Gu,WaitTask:Zu,WithEvent:Za,WithGRPCArguments:$l,WithGRPCService:bl,WithOpenAPIParameters:Bl,Workflow:Xf,WorkflowMetadata:uc,WorkflowTags:cc,WorkflowTimeout:Yu};function th(e,t){var n=new eh.AllEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function nh(e,t){var n=new eh.AllEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function rh(e,t){var n=new eh.AnyEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function oh(e,t){var n=new eh.AnyEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function ih(e,t){var n=new eh.AnyEventConsumptionStrategyUntil(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function ah(e,t){var n=new eh.AnyEventUntilConsumed(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function sh(e,t){var n=new eh.AsyncApiArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function lh(e,t){var n=new eh.AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function ch(e,t){var n=new eh.AuthenticationPolicyReference(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function uh(e,t){var n=new eh.BasicAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function dh(e,t){var n=new eh.BasicAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function ph(e,t){var n=new eh.BasicAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function fh(e,t){var n=new eh.BearerAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function hh(e,t){var n=new eh.BearerAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function mh(e,t){var n=new eh.BearerAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function vh(e,t){var n=new eh.CallAsyncAPI(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function yh(e,t){var n=new eh.CallFunction(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function wh(e,t){var n=new eh.CallGRPC(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function gh(e,t){var n=new eh.CallHTTP(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function bh(e,t){var n=new eh.CallOpenAPI(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function kh(e,t){var n=new eh.CallTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function $h(e,t){var n=new eh.Catalog(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function jh(e,t){var n=new eh.CatchErrors(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Ah(e,t){var n=new eh.ConstantBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Th(e,t){var n=new eh.Container(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Ph(e,t){var n=new eh.ContainerEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Eh(e,t){var n=new eh.ContainerLifetime(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Ch(e,t){var n=new eh.ContainerPorts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function zh(e,t){var n=new eh.ContainerVolumes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Sh(e,t){var n=new eh.DigestAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function _h(e,t){var n=new eh.DigestAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Oh(e,t){var n=new eh.DigestAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function xh(e,t){var n=new eh.Document(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Ih(e,t){var n=new eh.DoTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Rh(e,t){var n=new eh.Duration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Nh(e,t){var n=new eh.DurationInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Dh(e,t){var n=new eh.EmitEventDefinition(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Bh(e,t){var n=new eh.EmitEventWith(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Mh(e,t){var n=new eh.EmitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Fh(e,t){var n=new eh.EmitTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function qh(e,t){var n=new eh.Endpoint(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Uh(e,t){var n=new eh.EndpointConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Lh(e,t){var n=new eh.EndpointUri(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Vh(e,t){var n=new eh.Error(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Wh(e,t){var n=new eh.ErrorFilter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Gh(e,t){var n=new eh.ErrorInstance(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Hh(e,t){var n=new eh.ErrorType(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Kh(e,t){var n=new eh.EventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Jh(e,t){var n=new eh.EventData(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Zh(e,t){var n=new eh.EventDataschema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Yh(e,t){var n=new eh.EventFilter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Qh(e,t){var n=new eh.EventFilterCorrelate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Xh(e,t){var n=new eh.EventSource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function em(e,t){var n=new eh.EventTime(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function tm(e,t){var n=new eh.ExponentialBackOff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function nm(e,t){var n=new eh.Export(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function rm(e,t){var n=new eh.ExportAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function om(e,t){var n=new eh.Extension(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function im(e,t){var n=new eh.ExtensionItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function am(e,t){var n=new eh.ExternalResource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function sm(e,t){var n=new eh.ExternalScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function lm(e,t){var n=new eh.FlowDirective(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function cm(e,t){var n=new eh.ForkTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function um(e,t){var n=new eh.ForkTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function dm(e,t){var n=new eh.ForTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function pm(e,t){var n=new eh.ForTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function fm(e,t){var n=new eh.FunctionArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function hm(e,t){var n=new eh.GRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function mm(e,t){var n=new eh.HTTPArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function vm(e,t){var n=new eh.HTTPBody(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function ym(e,t){var n=new eh.HTTPHeaders(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function wm(e,t){var n=new eh.HTTPQuery(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function gm(e,t){var n=new eh.InlineScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function bm(e,t){var n=new eh.Input(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function km(e,t){var n=new eh.InputFrom(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function $m(e,t){var n=new eh.LinearBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function jm(e,t){var n=new eh.ListenTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Am(e,t){var n=new eh.ListenTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Tm(e,t){var n=new eh.OAuth2AutenthicationData(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Pm(e,t){var n=new eh.OAuth2AutenthicationDataAudiences(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Em(e,t){var n=new eh.OAuth2AutenthicationDataClient(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Cm(e,t){var n=new eh.OAuth2AutenthicationDataScopes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function zm(e,t){var n=new eh.OAuth2AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Sm(e,t){var n=new eh.OAuth2AuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function _m(e,t){var n=new eh.OAuth2AuthenticationPropertiesEndpoints(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Om(e,t){var n=new eh.OAuth2ConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function xm(e,t){var n=new eh.OAuth2Issuers(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Im(e,t){var n=new eh.OAuth2TokenDefinition(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Rm(e,t){var n=new eh.OAuth2TokenRequest(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Nm(e,t){var n=new eh.OneEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Dm(e,t){var n=new eh.OpenAPIArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Bm(e,t){var n=new eh.OpenIdConnectAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Mm(e,t){var n=new eh.OpenIdConnectAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Fm(e,t){var n=new eh.OpenIdConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function qm(e,t){var n=new eh.Output(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Um(e,t){var n=new eh.OutputAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Lm(e,t){var n=new eh.RaiseTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Vm(e,t){var n=new eh.RaiseTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Wm(e,t){var n=new eh.RaiseTaskError(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Gm(e,t){var n=new eh.ReferenceableAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Hm(e,t){var n=new eh.RetryBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Km(e,t){var n=new eh.RetryLimit(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Jm(e,t){var n=new eh.RetryLimitAttempt(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Zm(e,t){var n=new eh.RetryPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Ym(e,t){var n=new eh.RetryPolicyJitter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Qm(e,t){var n=new eh.RunContainer(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Xm(e,t){var n=new eh.RunScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function ev(e,t){var n=new eh.RunShell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function tv(e,t){var n=new eh.RunTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function nv(e,t){var n=new eh.RunTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function rv(e,t){var n=new eh.RuntimeExpression(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function ov(e,t){var n=new eh.RunWorkflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function iv(e,t){var n=new eh.Schedule(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function av(e,t){var n=new eh.Schema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function sv(e,t){var n=new eh.SchemaExternal(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function lv(e,t){var n=new eh.SchemaInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function cv(e,t){var n=new eh.Script(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function uv(e,t){var n=new eh.SecretBasedAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function dv(e,t){var n=new eh.SetTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function pv(e,t){var n=new eh.SetTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function fv(e,t){var n=new eh.Shell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function hv(e,t){var n=new eh.ShellArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function mv(e,t){var n=new eh.ShellEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function vv(e,t){var n=new eh.SubflowConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function yv(e,t){var n=new eh.SubflowInput(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function wv(e,t){var n=new eh.SubscriptionIterator(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function gv(e,t){var n=new eh.SwitchCase(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function bv(e,t){var n=new eh.SwitchItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function kv(e,t){var n=new eh.SwitchTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function $v(e,t){var n=new eh.SwitchTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function jv(e,t){var n=new eh.Task(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Av(e,t){var n=new eh.TaskBase(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Tv(e,t){var n=new eh.TaskBaseIf(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Pv(e,t){var n=new eh.TaskItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Ev(e,t){var n=new eh.TaskList(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Cv(e,t){var n=new eh.TaskMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function zv(e,t){var n=new eh.TaskTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Sv(e,t){var n=new eh.Timeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function _v(e,t){var n=new eh.TryTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Ov(e,t){var n=new eh.TryTaskCatch(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function xv(e,t){var n=new eh.TryTaskCatchRetry(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Iv(e,t){var n=new eh.UriTemplate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Rv(e,t){var n=new eh.Use(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Nv(e,t){var n=new eh.UseAuthentications(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Dv(e,t){var n=new eh.UseCatalogs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Bv(e,t){var n=new eh.UseErrors(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Mv(e,t){var n=new eh.UseExtensions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Fv(e,t){var n=new eh.UseFunctions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function qv(e,t){var n=new eh.UseRetries(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Uv(e,t){var n=new eh.UseSecrets(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Lv(e,t){var n=new eh.UseTimeouts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Vv(e,t){var n=new eh.WaitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Wv(e,t){var n=new eh.WithEvent(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Gv(e,t){var n=new eh.WithGRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Hv(e,t){var n=new eh.WithGRPCService(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Kv(e,t){var n=new eh.WithOpenAPIParameters(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Jv(e,t){var n=new eh.Workflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Zv(e,t){var n=new eh.WorkflowMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Yv(e,t){var n=new eh.WorkflowTags(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}function Qv(e,t){var n=new eh.WorkflowTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Xv=Object.freeze({__proto__:null});e.Classes=eh,e.MermaidDiagram=Qf,e.Specification=Xv,e.allEventConsumptionStrategyBuilder=function(e){return n(e,th)},e.allEventConsumptionStrategyConfigurationBuilder=function(e){return r(e,nh)},e.anyEventConsumptionStrategyBuilder=function(e){return n(e,rh)},e.anyEventConsumptionStrategyConfigurationBuilder=function(e){return r(e,oh)},e.anyEventConsumptionStrategyUntilBuilder=function(e){return n(e,ih)},e.anyEventUntilConsumedBuilder=function(e){return n(e,ah)},e.asyncApiArgumentsBuilder=function(e){return n(e,sh)},e.authenticationPolicyBuilder=function(e){return n(e,lh)},e.authenticationPolicyReferenceBuilder=function(e){return n(e,ch)},e.basicAuthenticationPolicyBuilder=function(e){return n(e,uh)},e.basicAuthenticationPolicyConfigurationBuilder=function(e){return n(e,dh)},e.basicAuthenticationPropertiesBuilder=function(e){return n(e,ph)},e.bearerAuthenticationPolicyBuilder=function(e){return n(e,fh)},e.bearerAuthenticationPolicyConfigurationBuilder=function(e){return n(e,hh)},e.bearerAuthenticationPropertiesBuilder=function(e){return n(e,mh)},e.buildGraph=Uf,e.callAsyncAPIBuilder=function(e){return n(e,vh)},e.callFunctionBuilder=function(e){return n(e,yh)},e.callGRPCBuilder=function(e){return n(e,wh)},e.callHTTPBuilder=function(e){return n(e,gh)},e.callOpenAPIBuilder=function(e){return n(e,bh)},e.callTaskBuilder=function(e){return n(e,kh)},e.catalogBuilder=function(e){return n(e,$h)},e.catchErrorsBuilder=function(e){return n(e,jh)},e.constantBackoffBuilder=function(e){return n(e,Ah)},e.containerBuilder=function(e){return n(e,Th)},e.containerEnvironmentBuilder=function(e){return n(e,Ph)},e.containerLifetimeBuilder=function(e){return n(e,Eh)},e.containerPortsBuilder=function(e){return n(e,Ch)},e.containerVolumesBuilder=function(e){return n(e,zh)},e.convertToMermaidCode=Yf,e.digestAuthenticationPolicyBuilder=function(e){return n(e,Sh)},e.digestAuthenticationPolicyConfigurationBuilder=function(e){return n(e,_h)},e.digestAuthenticationPropertiesBuilder=function(e){return n(e,Oh)},e.doTaskBuilder=function(e){return n(e,Ih)},e.documentBuilder=function(e){return n(e,xh)},e.durationBuilder=function(e){return n(e,Rh)},e.durationInlineBuilder=function(e){return n(e,Nh)},e.emitEventDefinitionBuilder=function(e){return n(e,Dh)},e.emitEventWithBuilder=function(e){return n(e,Bh)},e.emitTaskBuilder=function(e){return n(e,Mh)},e.emitTaskConfigurationBuilder=function(e){return n(e,Fh)},e.endpointBuilder=function(e){return n(e,qh)},e.endpointConfigurationBuilder=function(e){return n(e,Uh)},e.endpointUriBuilder=function(e){return n(e,Lh)},e.errorBuilder=function(e){return n(e,Vh)},e.errorFilterBuilder=function(e){return n(e,Wh)},e.errorInstanceBuilder=function(e){return n(e,Gh)},e.errorTypeBuilder=function(e){return n(e,Hh)},e.eventConsumptionStrategyBuilder=function(e){return n(e,Kh)},e.eventDataBuilder=function(e){return n(e,Jh)},e.eventDataschemaBuilder=function(e){return n(e,Zh)},e.eventFilterBuilder=function(e){return n(e,Yh)},e.eventFilterCorrelateBuilder=function(e){return n(e,Qh)},e.eventSourceBuilder=function(e){return n(e,Xh)},e.eventTimeBuilder=function(e){return n(e,em)},e.exponentialBackOffBuilder=function(e){return n(e,tm)},e.exportAsBuilder=function(e){return n(e,rm)},e.exportBuilder=function(e){return n(e,nm)},e.extensionBuilder=function(e){return n(e,om)},e.extensionItemBuilder=function(e){return n(e,im)},e.externalResourceBuilder=function(e){return n(e,am)},e.externalScriptBuilder=function(e){return n(e,sm)},e.flowDirectiveBuilder=function(e){return n(e,lm)},e.forTaskBuilder=function(e){return n(e,dm)},e.forTaskConfigurationBuilder=function(e){return n(e,pm)},e.forkTaskBuilder=function(e){return n(e,cm)},e.forkTaskConfigurationBuilder=function(e){return n(e,um)},e.functionArgumentsBuilder=function(e){return n(e,fm)},e.gRPCArgumentsBuilder=function(e){return n(e,hm)},e.hTTPArgumentsBuilder=function(e){return n(e,mm)},e.hTTPBodyBuilder=function(e){return n(e,vm)},e.hTTPHeadersBuilder=function(e){return n(e,ym)},e.hTTPQueryBuilder=function(e){return n(e,wm)},e.inlineScriptBuilder=function(e){return n(e,gm)},e.inputBuilder=function(e){return n(e,bm)},e.inputFromBuilder=function(e){return n(e,km)},e.linearBackoffBuilder=function(e){return n(e,$m)},e.listenTaskBuilder=function(e){return n(e,jm)},e.listenTaskConfigurationBuilder=function(e){return n(e,Am)},e.oAuth2AutenthicationDataAudiencesBuilder=function(e){return r(e,Pm)},e.oAuth2AutenthicationDataBuilder=function(e){return n(e,Tm)},e.oAuth2AutenthicationDataClientBuilder=function(e){return n(e,Em)},e.oAuth2AutenthicationDataScopesBuilder=function(e){return r(e,Cm)},e.oAuth2AuthenticationPolicyBuilder=function(e){return n(e,zm)},e.oAuth2AuthenticationPolicyConfigurationBuilder=function(e){return n(e,Sm)},e.oAuth2AuthenticationPropertiesEndpointsBuilder=function(e){return n(e,_m)},e.oAuth2ConnectAuthenticationPropertiesBuilder=function(e){return n(e,Om)},e.oAuth2IssuersBuilder=function(e){return r(e,xm)},e.oAuth2TokenDefinitionBuilder=function(e){return n(e,Im)},e.oAuth2TokenRequestBuilder=function(e){return n(e,Rm)},e.oneEventConsumptionStrategyBuilder=function(e){return n(e,Nm)},e.openAPIArgumentsBuilder=function(e){return n(e,Dm)},e.openIdConnectAuthenticationPolicyBuilder=function(e){return n(e,Bm)},e.openIdConnectAuthenticationPolicyConfigurationBuilder=function(e){return n(e,Mm)},e.openIdConnectAuthenticationPropertiesBuilder=function(e){return n(e,Fm)},e.outputAsBuilder=function(e){return n(e,Um)},e.outputBuilder=function(e){return n(e,qm)},e.raiseTaskBuilder=function(e){return n(e,Lm)},e.raiseTaskConfigurationBuilder=function(e){return n(e,Vm)},e.raiseTaskErrorBuilder=function(e){return n(e,Wm)},e.referenceableAuthenticationPolicyBuilder=function(e){return n(e,Gm)},e.retryBackoffBuilder=function(e){return n(e,Hm)},e.retryLimitAttemptBuilder=function(e){return n(e,Jm)},e.retryLimitBuilder=function(e){return n(e,Km)},e.retryPolicyBuilder=function(e){return n(e,Zm)},e.retryPolicyJitterBuilder=function(e){return n(e,Ym)},e.runContainerBuilder=function(e){return n(e,Qm)},e.runScriptBuilder=function(e){return n(e,Xm)},e.runShellBuilder=function(e){return n(e,ev)},e.runTaskBuilder=function(e){return n(e,tv)},e.runTaskConfigurationBuilder=function(e){return n(e,nv)},e.runWorkflowBuilder=function(e){return n(e,ov)},e.runtimeExpressionBuilder=function(e){return n(e,rv)},e.scheduleBuilder=function(e){return n(e,iv)},e.schemaBuilder=function(e){return n(e,av)},e.schemaExternalBuilder=function(e){return n(e,sv)},e.schemaInlineBuilder=function(e){return n(e,lv)},e.scriptBuilder=function(e){return n(e,cv)},e.secretBasedAuthenticationPolicyBuilder=function(e){return n(e,uv)},e.setTaskBuilder=function(e){return n(e,dv)},e.setTaskConfigurationBuilder=function(e){return n(e,pv)},e.shellArgumentsBuilder=function(e){return n(e,hv)},e.shellBuilder=function(e){return n(e,fv)},e.shellEnvironmentBuilder=function(e){return n(e,mv)},e.subflowConfigurationBuilder=function(e){return n(e,vv)},e.subflowInputBuilder=function(e){return n(e,yv)},e.subscriptionIteratorBuilder=function(e){return n(e,wv)},e.switchCaseBuilder=function(e){return n(e,gv)},e.switchItemBuilder=function(e){return n(e,bv)},e.switchTaskBuilder=function(e){return n(e,kv)},e.switchTaskConfigurationBuilder=function(e){return n(e,$v)},e.taskBaseBuilder=function(e){return n(e,Av)},e.taskBaseIfBuilder=function(e){return n(e,Tv)},e.taskBuilder=function(e){return n(e,jv)},e.taskItemBuilder=function(e){return n(e,Pv)},e.taskListBuilder=function(e){return r(e,Ev)},e.taskMetadataBuilder=function(e){return n(e,Cv)},e.taskTimeoutBuilder=function(e){return n(e,zv)},e.timeoutBuilder=function(e){return n(e,Sv)},e.tryTaskBuilder=function(e){return n(e,_v)},e.tryTaskCatchBuilder=function(e){return n(e,Ov)},e.tryTaskCatchRetryBuilder=function(e){return n(e,xv)},e.uriTemplateBuilder=function(e){return n(e,Iv)},e.useAuthenticationsBuilder=function(e){return n(e,Nv)},e.useBuilder=function(e){return n(e,Rv)},e.useCatalogsBuilder=function(e){return n(e,Dv)},e.useErrorsBuilder=function(e){return n(e,Bv)},e.useExtensionsBuilder=function(e){return r(e,Mv)},e.useFunctionsBuilder=function(e){return n(e,Fv)},e.useRetriesBuilder=function(e){return n(e,qv)},e.useSecretsBuilder=function(e){return r(e,Uv)},e.useTimeoutsBuilder=function(e){return n(e,Lv)},e.validate=Ka,e.waitTaskBuilder=function(e){return n(e,Vv)},e.withEventBuilder=function(e){return n(e,Wv)},e.withGRPCArgumentsBuilder=function(e){return n(e,Gv)},e.withGRPCServiceBuilder=function(e){return n(e,Hv)},e.withOpenAPIParametersBuilder=function(e){return n(e,Kv)},e.workflowBuilder=function(e){return n(e,Jv)},e.workflowMetadataBuilder=function(e){return n(e,Zv)},e.workflowTagsBuilder=function(e){return n(e,Yv)},e.workflowTimeoutBuilder=function(e){return n(e,Qv)},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
10
10
|
//# sourceMappingURL=index.umd.min.js.map
|