@serverlessworkflow/sdk 1.0.0-alpha5.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 +141 -23
- package/esm/index.esm.js +2607 -1122
- package/esm/index.esm.js.map +1 -1
- package/esm/index.esm.min.js +7 -7
- package/esm/index.esm.min.js.map +1 -1
- package/lib/generated/builders/any-event-consumption-strategy-until-builder.d.ts +14 -0
- package/lib/generated/builders/any-event-consumption-strategy-until-builder.d.ts.map +1 -0
- package/lib/generated/builders/any-event-until-consumed-builder.d.ts +14 -0
- package/lib/generated/builders/any-event-until-consumed-builder.d.ts.map +1 -0
- package/lib/generated/builders/container-lifetime-builder.d.ts +14 -0
- package/lib/generated/builders/container-lifetime-builder.d.ts.map +1 -0
- package/lib/generated/builders/error-filter-builder.d.ts +14 -0
- package/lib/generated/builders/error-filter-builder.d.ts.map +1 -0
- package/lib/generated/builders/event-data-builder.d.ts +14 -0
- package/lib/generated/builders/event-data-builder.d.ts.map +1 -0
- package/lib/generated/builders/http-body-builder.d.ts +14 -0
- package/lib/generated/builders/http-body-builder.d.ts.map +1 -0
- package/lib/generated/builders/http-headers-builder.d.ts +14 -0
- package/lib/generated/builders/http-headers-builder.d.ts.map +1 -0
- package/lib/generated/builders/http-query-builder.d.ts +14 -0
- package/lib/generated/builders/http-query-builder.d.ts.map +1 -0
- package/lib/generated/builders/index.d.ts +11 -6
- package/lib/generated/builders/index.d.ts.map +1 -1
- package/lib/generated/builders/raise-task-error-builder.d.ts +14 -0
- package/lib/generated/builders/raise-task-error-builder.d.ts.map +1 -0
- package/lib/generated/builders/subscription-iterator-builder.d.ts +14 -0
- package/lib/generated/builders/subscription-iterator-builder.d.ts.map +1 -0
- package/lib/generated/builders/task-timeout-builder.d.ts +14 -0
- package/lib/generated/builders/task-timeout-builder.d.ts.map +1 -0
- package/lib/generated/classes/any-event-consumption-strategy-until.d.ts +39 -0
- package/lib/generated/classes/any-event-consumption-strategy-until.d.ts.map +1 -0
- package/lib/generated/classes/any-event-consumption-strategy.d.ts.map +1 -1
- package/lib/generated/classes/any-event-until-consumed.d.ts +39 -0
- package/lib/generated/classes/any-event-until-consumed.d.ts.map +1 -0
- package/lib/generated/classes/async-api-arguments.d.ts +5 -0
- package/lib/generated/classes/async-api-arguments.d.ts.map +1 -1
- package/lib/generated/classes/call-async-api.d.ts.map +1 -1
- package/lib/generated/classes/catch-errors.d.ts +0 -5
- package/lib/generated/classes/catch-errors.d.ts.map +1 -1
- package/lib/generated/classes/container-lifetime.d.ts +39 -0
- package/lib/generated/classes/container-lifetime.d.ts.map +1 -0
- package/lib/generated/classes/container.d.ts.map +1 -1
- package/lib/generated/classes/error-filter.d.ts +44 -0
- package/lib/generated/classes/error-filter.d.ts.map +1 -0
- package/lib/generated/classes/event-consumption-strategy.d.ts.map +1 -1
- package/lib/generated/classes/event-data.d.ts +44 -0
- package/lib/generated/classes/event-data.d.ts.map +1 -0
- package/lib/generated/classes/http-body.d.ts +44 -0
- package/lib/generated/classes/http-body.d.ts.map +1 -0
- package/lib/generated/classes/http-headers.d.ts +44 -0
- package/lib/generated/classes/http-headers.d.ts.map +1 -0
- package/lib/generated/classes/http-query.d.ts +44 -0
- package/lib/generated/classes/http-query.d.ts.map +1 -0
- package/lib/generated/classes/index.d.ts +13 -6
- package/lib/generated/classes/index.d.ts.map +1 -1
- package/lib/generated/classes/listen-task.d.ts.map +1 -1
- package/lib/generated/classes/raise-task-error.d.ts +44 -0
- package/lib/generated/classes/raise-task-error.d.ts.map +1 -0
- package/lib/generated/classes/subscription-iterator.d.ts +39 -0
- package/lib/generated/classes/subscription-iterator.d.ts.map +1 -0
- package/lib/generated/classes/task-timeout.d.ts +39 -0
- package/lib/generated/classes/task-timeout.d.ts.map +1 -0
- package/lib/generated/classes/task.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/generated/definitions/specification.d.ts +105 -44
- package/lib/generated/definitions/specification.d.ts.map +1 -1
- package/lib/generated/validation/validation-pointers.d.ts +11 -6
- package/lib/generated/validation/validation-pointers.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 +2 -2
- package/serverless-workflow-sdk.d.ts +2 -0
- package/serverless-workflow-sdk.d.ts.map +1 -1
- package/systemjs/index.systemjs.js +2611 -1121
- 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 +2620 -1127
- 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/lib/generated/builders/raise-task-raise-error-builder.d.ts +0 -14
- package/lib/generated/builders/raise-task-raise-error-builder.d.ts.map +0 -1
- package/lib/generated/builders/task-base-timeout-builder.d.ts +0 -14
- package/lib/generated/builders/task-base-timeout-builder.d.ts.map +0 -1
- package/lib/generated/builders/with-async-api-payload-builder.d.ts +0 -14
- package/lib/generated/builders/with-async-api-payload-builder.d.ts.map +0 -1
- package/lib/generated/builders/with-http-body-builder.d.ts +0 -14
- package/lib/generated/builders/with-http-body-builder.d.ts.map +0 -1
- package/lib/generated/builders/with-http-headers-builder.d.ts +0 -14
- package/lib/generated/builders/with-http-headers-builder.d.ts.map +0 -1
- package/lib/generated/builders/with-http-query-builder.d.ts +0 -14
- package/lib/generated/builders/with-http-query-builder.d.ts.map +0 -1
- package/lib/generated/classes/raise-task-raise-error.d.ts +0 -44
- package/lib/generated/classes/raise-task-raise-error.d.ts.map +0 -1
- package/lib/generated/classes/task-base-timeout.d.ts +0 -39
- package/lib/generated/classes/task-base-timeout.d.ts.map +0 -1
- package/lib/generated/classes/with-async-api-payload.d.ts +0 -44
- package/lib/generated/classes/with-async-api-payload.d.ts.map +0 -1
- package/lib/generated/classes/with-http-body.d.ts +0 -44
- package/lib/generated/classes/with-http-body.d.ts.map +0 -1
- package/lib/generated/classes/with-http-headers.d.ts +0 -44
- package/lib/generated/classes/with-http-headers.d.ts.map +0 -1
- package/lib/generated/classes/with-http-query.d.ts +0 -44
- package/lib/generated/classes/with-http-query.d.ts.map +0 -1
package/esm/index.esm.min.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function e(e,t){return null==t.validate&&(t.validate=!0),null==t.normalize&&(t.normalize=!0),e}function t(t,n){void 0===t&&(t={}),void 0===n&&(n=e);var o=new Proxy({},{get:function(e,r){return"build"===r?function(e){return null==(e=e||{}).validate&&(e.validate=!0),null==e.normalize&&(e.normalize=!0),n(t,e)}:function(e){return t[r.toString()]=e,o}},set:function(){return!1}});return o}function n(t,n){if(void 0===t&&(t=[]),void 0===n&&(n=e),null!=t&&!Array.isArray(t))throw new Error("The provided model should be an array");var o=new Proxy({},{get:function(e,r){return"build"===r?function(e){return null==(e=e||{}).validate&&(e.validate=!0),null==e.normalize&&(e.normalize=!0),n(t,e)}:"push"===r?function(e){return t.push(e),o}:void 0},set:function(){return!1}});return o}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 r(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)}"function"==typeof SuppressedError&&SuppressedError;var i,a,s=function(e){return!!e&&("object"==typeof e&&!Array.isArray(e))},l=function(e){return JSON.parse(JSON.stringify(e))},c=function(e){s(e)&&Object.assign(this,l(e))},u=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 r(t,e),t}(Array),d="1.0.0-alpha5",p={preValidation:function(e){var t,n;if((null===(t=null==e?void 0:e.document)||void 0===t?void 0:t.dsl)!==d)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(d,"'."))}},f=new Map,h=function(e){return f.get(e)};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}i="Workflow",a=p,f.set(i,a);var v={exports:{}},y={},w={},g={},b={},$={},k={};!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())}}(k);var j={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=k;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}}}(j),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=k,n=j;var o=k;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=j;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return r.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return r.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return r.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class i{optimizeNodes(){return this}optimizeNames(e,t){return this}}class a extends i{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const o=e?n.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${o} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=S(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends i{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=S(this.rhs,e,n),this}get names(){return C(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,n,o){super(e,n,o),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class c extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class u extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends i{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends i{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=S(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class f extends i{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let o=n.length;for(;o--;){const r=n[o];r.optimizeNames(e,t)||(O(e,r.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>_(e,t.names)),{})}}class h extends f{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends f{}class v extends h{}v.kind="else";class y extends h{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof y?t:t.nodes:this.nodes.length?this:new y(x(e),t instanceof y?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=S(this.condition,e,t),this}get names(){const e=super.names;return C(e,this.condition),this.else&&_(e,this.else.names),e}}y.kind="if";class w extends h{}w.kind="for";class g extends w{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=S(this.iteration,e,t),this}get names(){return _(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=C(super.names,this.from);return C(e,this.to)}}class $ extends w{constructor(e,t,n,o){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=o}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=S(this.iterable,e,t),this}get names(){return _(super.names,this.iterable.names)}}class P 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)}}P.kind="func";class T extends f{render(e){return"return "+super.render(e)}}T.kind="return";class A 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&&_(e,this.catch.names),this.finally&&_(e,this.finally.names),e}}class z extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}z.kind="catch";class E extends h{render(e){return"finally"+super.render(e)}}E.kind="finally";function _(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function C(e,n){return n instanceof t._CodeOrName?_(e,n.names):e}function S(e,n,o){return e instanceof t.Name?i(e):(r=e)instanceof t._Code&&r._items.some((e=>e instanceof t.Name&&1===n[e.str]&&void 0!==o[e.str]))?new t._Code(e._items.reduce(((e,n)=>(n instanceof t.Name&&(n=i(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e)),[])):e;var r;function i(e){const t=o[e.str];return void 0===t||1!==n[e.str]?e:(delete n[e.str],t)}}function O(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function x(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${D(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,o){const r=this._scope.toName(t);return void 0!==n&&o&&(this._constants[r.str]=n),this._leafNode(new a(e,r,n)),r}const(e,t,o){return this._def(n.varKinds.const,e,t,o)}let(e,t,o){return this._def(n.varKinds.let,e,t,o)}var(e,t,o){return this._def(n.varKinds.var,e,t,o)}assign(e,t,n){return this._leafNode(new s(e,t,n))}add(t,n){return this._leafNode(new l(t,e.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new p(e)),this}object(...e){const n=["{"];for(const[o,r]of e)n.length>1&&n.push(","),n.push(o),(o!==r||this.opts.es5)&&(n.push(":"),(0,t.addCodeArg)(n,r));return n.push("}"),new t._Code(n)}if(e,t,n){if(this._blockNode(new y(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new y(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new g(e),t)}forRange(e,t,o,r,i=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const a=this._scope.toName(e);return this._for(new b(i,a,t,o),(()=>r(a)))}forOf(e,o,r,i=n.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=o instanceof t.Name?o:this.var("_arr",o);return this.forRange("_i",0,t._`${e}.length`,(n=>{this.var(a,t._`${e}[${n}]`),r(a)}))}return this._for(new $("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 $("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 A;if(this._blockNode(o),this.code(e),t){const e=this.name("e");this._currNode=o.catch=new z(e),t(e)}return n&&(this._currNode=o.finally=new E,this.code(n)),this._endBlockNode(z,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,o,r){return this._blockNode(new P(e,n,o)),r&&this.code(r).endFunc(),this}endFunc(){return this._endBlockNode(P)}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 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 T=$,A=k;function z(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]||N(e,`unknown keyword: "${n}"`)}function E(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 C(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function S({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:o}){return(r,i,a,s)=>{const l=void 0===a?i:a instanceof T.Name?(i instanceof T.Name?e(r,i,a):t(r,i,a),a):i instanceof T.Name?(t(r,a,i),i):n(i,a);return s!==T.Name||l instanceof T.Name?l:o(r,l)}}function O(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",T._`{}`);return void 0!==t&&x(e,n,t),n}function x(e,t,n){Object.keys(n).forEach((n=>e.assign(T._`${t}${(0,T.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),!E(t,e.self.RULES.all))},P.checkUnknownRules=z,P.schemaHasRules=E,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,o,r){if(!r){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return T._`${n}`}return T._`${e}${t}${(0,T.getProperty)(o)}`},P.unescapeFragment=function(e){return C(decodeURIComponent(e))},P.escapeFragment=function(e){return encodeURIComponent(_(e))},P.escapeJsonPointer=_,P.unescapeJsonPointer=C,P.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},P.mergeEvaluated={props:S({mergeNames:(e,t,n)=>e.if(T._`${n} !== true && ${t} !== undefined`,(()=>{e.if(T._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,T._`${n} || {}`).code(T._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(T._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,T._`${n} || {}`),x(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:O}),items:S({mergeNames:(e,t,n)=>e.if(T._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,T._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(T._`${n} !== true`,(()=>e.assign(n,!0===t||T._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},P.evaluatedPropsToName=O,P.setEvaluated=x;const I={};var R;function N(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:I[t.code]||(I[t.code]=new A._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(R||(P.Type=R={})),P.getErrorPath=function(e,t,n){if(e instanceof T.Name){const o=t===R.Num;return n?o?T._`"[" + ${e} + "]"`:T._`"['" + ${e} + "']"`:o?T._`"/" + ${e}`:T._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,T.getProperty)(e).toString():"/"+_(e)},P.checkStrictMode=N;var D,M,F,q={};function U(){if(D)return q;D=1,Object.defineProperty(q,"__esModule",{value:!0});const e=$,t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return q.default=t,q}function L(){return M||(M=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=$,n=P,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]}}(b)),b}var B={},W={};Object.defineProperty(W,"__esModule",{value:!0}),W.getRules=W.isJSONType=void 0;const V=new Set(["string","number","integer","boolean","null","object","array"]);W.isJSONType=function(e){return"string"==typeof e&&V.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 G,H={};function K(){if(G)return H;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 G=1,Object.defineProperty(H,"__esModule",{value:!0}),H.shouldUseRule=H.shouldUseGroup=H.schemaHasRulesForType=void 0,H.schemaHasRulesForType=function({schema:t,self:n},o){const r=n.RULES.types[o];return r&&!0!==r&&e(t,r)},H.shouldUseGroup=e,H.shouldUseRule=t,H}Object.defineProperty(B,"__esModule",{value:!0}),B.reportTypeError=B.checkDataTypes=B.checkDataType=B.coerceAndCheckDataType=B.getJSONTypes=B.getSchemaTypes=B.DataType=void 0;const J=W,Z=K(),Y=L(),Q=$,X=P;var ee;function te(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(J.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"}(ee||(B.DataType=ee={})),B.getSchemaTypes=function(e){const t=te(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},B.getJSONTypes=te,B.coerceAndCheckDataType=function(e,t){const{gen:n,data:o,opts:r}=e,i=function(e,t){return t?e.filter((e=>ne.has(e)||"array"===t&&"array"===e)):[]}(t,r.coerceTypes),a=t.length>0&&!(0===i.length&&1===t.length&&(0,Z.schemaHasRulesForType)(e,t[0]));if(a){const a=re(t,o,r.strictNumbers,ee.Wrong);n.if(a,(()=>{i.length?function(e,t,n){const{gen:o,data:r,opts:i}=e,a=o.let("dataType",Q._`typeof ${r}`),s=o.let("coerced",Q._`undefined`);"array"===i.coerceTypes&&o.if(Q._`${a} == 'object' && Array.isArray(${r}) && ${r}.length == 1`,(()=>o.assign(r,Q._`${r}[0]`).assign(a,Q._`typeof ${r}`).if(re(t,r,i.strictNumbers),(()=>o.assign(s,r)))));o.if(Q._`${s} !== undefined`);for(const e of n)(ne.has(e)||"array"===e&&"array"===i.coerceTypes)&&l(e);function l(e){switch(e){case"string":return void o.elseIf(Q._`${a} == "number" || ${a} == "boolean"`).assign(s,Q._`"" + ${r}`).elseIf(Q._`${r} === null`).assign(s,Q._`""`);case"number":return void o.elseIf(Q._`${a} == "boolean" || ${r} === null
|
|
2
|
-
|| (${a} == "string" && ${
|
|
3
|
-
|| (${a} === "string" && ${
|
|
4
|
-
|| ${a} === "boolean" || ${r} === null`).assign(s,Q._`[${r}]`)}}o.else(),ae(e),o.endIf(),o.if(Q._`${s} !== undefined`,(()=>{o.assign(r,s),function({gen:e,parentData:t,parentDataProperty:n},o){e.if(Q._`${t} !== undefined`,(()=>e.assign(Q._`${t}[${n}]`,o)))}(e,s)}))}(e,t,i):ae(e)}))}return a};const ne=new Set(["string","number","integer","boolean","null"]);function oe(e,t,n,o=ee.Correct){const r=o===ee.Correct?Q.operators.EQ:Q.operators.NEQ;let i;switch(e){case"null":return Q._`${t} ${r} null`;case"array":i=Q._`Array.isArray(${t})`;break;case"object":i=Q._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=a(Q._`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=a();break;default:return Q._`typeof ${t} ${r} ${e}`}return o===ee.Correct?i:(0,Q.not)(i);function a(e=Q.nil){return(0,Q.and)(Q._`typeof ${t} == "number"`,e,n?Q._`isFinite(${t})`:Q.nil)}}function re(e,t,n,o){if(1===e.length)return oe(e[0],t,n,o);let r;const i=(0,X.toHash)(e);if(i.array&&i.object){const e=Q._`typeof ${t} != "object"`;r=i.null?e:Q._`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else r=Q.nil;i.number&&delete i.integer;for(const e in i)r=(0,Q.and)(r,oe(e,t,n,o));return r}B.checkDataType=oe,B.checkDataTypes=re;const ie={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?Q._`{type: ${e}}`:Q._`{type: ${t}}`};function ae(e){const t=function(e){const{gen:t,data:n,schema:o}=e,r=(0,X.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,Y.reportError)(t,ie)}B.reportTypeError=ae;var se,le={};var ce,ue,de={},pe={};function fe(){if(ce)return pe;ce=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.validateUnion=pe.validateArray=pe.usePattern=pe.callValidateCode=pe.schemaProperties=pe.allSchemaProperties=pe.noPropertyInData=pe.propertyInData=pe.isOwnProperty=pe.hasPropFunc=pe.reportMissingProp=pe.checkMissingProp=pe.checkReportMissingProp=void 0;const e=$,t=P,n=U(),o=P;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)):[]}pe.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()}))},pe.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}`))))},pe.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},pe.hasPropFunc=r,pe.isOwnProperty=i,pe.propertyInData=function(t,n,o,r){const a=e._`${n}${(0,e.getProperty)(o)} !== undefined`;return r?e._`${a} && ${i(t,n,o)}`:a},pe.noPropertyInData=a,pe.allSchemaProperties=s,pe.schemaProperties=function(e,n){return s(n).filter((o=>!(0,t.alwaysValidSchema)(e,n[o])))},pe.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 pe.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})`})},pe.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)}))}},pe.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)))},pe}function he(){if(ue)return de;ue=1,Object.defineProperty(de,"__esModule",{value:!0}),de.validateKeywordUsage=de.validSchemaType=de.funcKeywordCode=de.macroKeywordCode=void 0;const e=$,t=U(),n=fe(),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 de.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)))},de.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)},de.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))},de.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)}}},de}var me,ve={};var ye={},we=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},ge={exports:{}},be=ge.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 be.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 be.propsKeywords){if(d&&"object"==typeof d)for(var f in d)$e(e,t,n,d[f],r+"/"+u+"/"+ke(f),i,r,u,o,f)}else(u in be.keywords||e.allKeys&&!(u in be.skipKeywords))&&$e(e,t,n,d,r+"/"+u,i,r,u,o)}n(o,r,i,a,s,l,c)}}function ke(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}be.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},be.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},be.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},be.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 je=ge.exports;Object.defineProperty(ye,"__esModule",{value:!0}),ye.getSchemaRefs=ye.resolveUrl=ye.normalizeId=ye._getFullPath=ye.getFullPath=ye.inlineRef=void 0;const Pe=P,Te=we,Ae=je,ze=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);ye.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!_e(e):!!t&&Ce(e)<=t)};const Ee=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function _e(e){for(const t in e){if(Ee.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 Ce(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+=Ce(e))),t===1/0))return 1/0}return t}function Se(e,t="",n){!1!==n&&(t=Ie(t));const o=e.parse(t);return Oe(e,o)}function Oe(e,t){return e.serialize(t).split("#")[0]+"#"}ye.getFullPath=Se,ye._getFullPath=Oe;const xe=/#\/?$/;function Ie(e){return e?e.replace(xe,""):""}ye.normalizeId=Ie,ye.resolveUrl=function(e,t,n){return n=Ie(n),e.resolve(t,n)};const Re=/^[a-z_][-a-z0-9._]*$/i;var Ne;function De(){if(Ne)return w;Ne=1,Object.defineProperty(w,"__esModule",{value:!0}),w.getData=w.KeywordCxt=w.validateFunctionCode=void 0;const e=function(){if(F)return g;F=1,Object.defineProperty(g,"__esModule",{value:!0}),g.boolOrEmptySchema=g.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 g.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))},g.boolOrEmptySchema=function(e,t){const{gen:n,schema:o}=e;!1===o?(n.var(t,!1),r(e)):n.var(t,!0)},g}(),t=B,n=K(),o=B,r=function(){if(se)return le;se=1,Object.defineProperty(le,"__esModule",{value:!0}),le.assignDefaults=void 0;const e=$,t=P;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 le.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)))},le}(),i=he(),a=function(){if(me)return ve;me=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.extendSubschemaMode=ve.extendSubschemaData=ve.getSubschema=void 0;const e=$,t=P;return ve.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')},ve.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)},ve.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},ve}(),s=$,l=U(),c=ye,u=P,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);b(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 b(e,n){if(e.opts.jtd)return j(e,[],!1,n);const o=(0,t.getSchemaTypes)(e.schema);j(e,o,!(0,t.coerceAndCheckDataType)(e,o),n)}function k({gen:e,schemaEnv:t,schema:n,errSchemaPath:o,opts:r}){const i=n.$comment;if(!0===r.$comment)e.code(s._`${l.default.self}.logger.log(${i})`);else if("function"==typeof r.$comment){const n=s.str`${o}/$comment`,r=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${i}, ${n}, ${r}.schema)`)}}function j(e,t,r,i){const{gen:a,schema:c,data:d,allErrors:p,opts:f,self:h}=e,{RULES:m}=h;function v(u){(0,n.shouldUseGroup)(c,u)&&(u.type?(a.if((0,o.checkDataType)(u.type,d,f.strictNumbers)),T(e,u),1===t.length&&t[0]===u.type&&r&&(a.else(),(0,o.reportTypeError)(e)),a.endIf()):T(e,u),p||a.if(s._`${l.default.errors} === ${i||0}`))}!c.$ref||!f.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(c,m)?(f.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{z(e.dataTypes,t)||E(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const o of e.dataTypes)z(t,o)?n.push(o):t.includes("integer")&&"number"===o&&n.push("integer");e.dataTypes=n}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&E(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const o=e.self.RULES.all;for(const r in o){const i=o[r];if("object"==typeof i&&(0,n.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>A(t,e)))&&E(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes)}(e,t),a.block((()=>{for(const e of m.rules)v(e);v(m.post)}))):a.block((()=>C(e,"$ref",m.all.$ref.definition)))}function T(e,t){const{gen:o,schema:i,opts:{useDefaults:a}}=e;a&&(0,r.assignDefaults)(e,t.type),o.block((()=>{for(const o of t.rules)(0,n.shouldUseRule)(i,o)&&C(e,o.keyword,o.definition,t.type)}))}function A(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function z(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function E(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,u.checkStrictMode)(e,t,e.opts.strictTypes)}w.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),b(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 _{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 C(e,t,n,o){const r=new _(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)}w.KeywordCxt=_;const S=/^\/(?:[^~]|~0|~1)*$/,O=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function x(e,{dataLevel:t,dataNames:n,dataPathArr:o}){let r,i;if(""===e)return l.default.rootData;if("/"===e[0]){if(!S.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);r=e,i=l.default.rootData}else{const a=O.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+a[1];if(r=a[2],"#"===r){if(s>=t)throw new Error(d("property/index",s));return o[t-s]}if(s>t)throw new Error(d("data",s));if(i=n[t-s],!r)return i}let a=i;const c=r.split("/");for(const e of c)e&&(i=s._`${i}${(0,s.getProperty)((0,u.unescapeJsonPointer)(e))}`,a=s._`${a} && ${i}`);return a;function d(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}return w.getData=x,w}ye.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:o}=this.opts,r=Ie(e[n]||t),i={"":r},a=Se(o,r,!1),s={},l=new Set;return Ae(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=Ie(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!==Ie(d)&&("#"===t[0]?(c(e,s[t],t),s[t]=e):this.refs[t]=d),t}function h(e){if("string"==typeof e){if(!Re.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&&!Te(e,t))throw u(n)}function u(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var Me,Fe={};function qe(){if(Me)return Fe;Me=1,Object.defineProperty(Fe,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return Fe.default=e,Fe}var Ue,Le={};function Be(){if(Ue)return Le;Ue=1,Object.defineProperty(Le,"__esModule",{value:!0});const e=ye;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 Ve=$,Ge=qe(),He=U(),Ke=ye,Je=P,Ze=De();class Ye{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,Ke.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 Qe(e){const t=et.call(this,e);if(t)return t;const n=(0,Ke.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:o,lines:r}=this.opts.code,{ownProperties:i}=this.opts,a=new Ve.CodeGen(this.scope,{es5:o,lines:r,ownProperties:i});let s;e.$async&&(s=a.scopeValue("Error",{ref:Ge.default,code:Ve._`require("ajv/dist/runtime/validation_error").default`}));const l=a.scopeName("validate");e.validateName=l;const c={gen:a,allErrors:this.opts.allErrors,data:He.default.data,parentData:He.default.parentData,parentDataProperty:He.default.parentDataProperty,dataNames:[He.default.data],dataPathArr:[Ve.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,Ve.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Ve.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:Ve._`""`,opts:this.opts,self:this};let u;try{this._compilations.add(e),(0,Ze.validateFunctionCode)(c),a.optimize(this.opts.code.optimize);const t=a.toString();u=`${a.scopeRefs(He.default.scope)}return ${t}`,this.opts.code.process&&(u=this.opts.code.process(u,e));const n=new Function(`${He.default.self}`,`${He.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 Ve.Name?void 0:e,items:t instanceof Ve.Name?void 0:t,dynamicProps:e instanceof Ve.Name,dynamicItems:t instanceof Ve.Name},n.source&&(n.source.evaluated=(0,Ve.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 Xe(e){return(0,Ke.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Qe.call(this,e)}function et(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 tt(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||nt.call(this,e,t)}function nt(e,t){const n=this.opts.uriResolver.parse(t),o=(0,Ke._getFullPath)(this.opts.uriResolver,n);let r=(0,Ke.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&o===r)return rt.call(this,n,e);const i=(0,Ke.normalizeId)(o),a=this.refs[i]||this.schemas[i];if("string"==typeof a){const t=nt.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return rt.call(this,n,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||Qe.call(this,a),i===(0,Ke.normalizeId)(t)){const{schema:t}=a,{schemaId:n}=this.opts,o=t[n];return o&&(r=(0,Ke.resolveUrl)(this.opts.uriResolver,r,o)),new Ye({schema:t,schemaId:n,root:e,baseId:r})}return rt.call(this,n,a)}}We.SchemaEnv=Ye,We.compileSchema=Qe,We.resolveRef=function(e,t,n){var o;n=(0,Ke.resolveUrl)(this.opts.uriResolver,t,n);const r=e.refs[n];if(r)return r;let i=tt.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 Ye({schema:r,schemaId:a,root:e,baseId:t}))}return void 0!==i?e.refs[n]=Xe.call(this,i):void 0},We.getCompilingSchema=et,We.resolveSchema=nt;const ot=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function rt(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,Je.unescapeFragment)(o)];if(void 0===e)return;const r="object"==typeof(n=e)&&n[this.opts.schemaId];!ot.has(o)&&r&&(t=(0,Ke.resolveUrl)(this.opts.uriResolver,t,r))}let i;if("boolean"!=typeof n&&n.$ref&&!(0,Je.schemaHasRulesButRef)(n,this.RULES)){const e=(0,Ke.resolveUrl)(this.opts.uriResolver,t,n.$ref);i=nt.call(this,o,e)}const{schemaId:a}=this.opts;return i=i||new Ye({schema:n,schemaId:a,root:o,baseId:t}),i.schema!==i.root.schema?i:void 0}var it={$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},at={},st={exports:{}};var lt={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:ct}=lt;function ut(e){if(ht(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:ft(n,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function dt(e,t=!1){let n="",o=!0;for(const t of e){if(void 0===ct[t])return;"0"!==t&&!0===o&&(o=!1),o||(n+=t)}return t&&0===n.length&&(n="0"),n}function pt(e,t={}){if(ht(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=dt(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(dt(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 ft(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 ht(e,t){let n=0;for(let o=0;o<e.length;o++)e[o]===t&&n++;return n}const mt=/^\.\.?\//u,vt=/^\/\.(?:\/|$)/u,yt=/^\/\.\.(?:\/|$)/u,wt=/^\/?(?:.|\n)*?(?=\/|$)/u;var gt={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=ut(t);if(o.isIPV4)t=o.host;else{const n=pt(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(mt))e=e.replace(mt,"");else if(e.match(vt))e=e.replace(vt,"/");else if(e.match(yt))e=e.replace(yt,"/"),t.pop();else if("."===e||".."===e)e="";else{const n=e.match(wt);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:ut,normalizeIPv6:pt,stringArrayToHexStripped:dt};const bt=/^[\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 kt(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}function jt(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 Tt={scheme:"http",domainHost:!0,parse:jt,serialize:Pt},At={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=kt(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(kt(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:Tt,https:{scheme:"https",domainHost:Tt.domainHost,parse:jt,serialize:Pt},ws:At,wss:{scheme:"wss",domainHost:At.domainHost,parse:At.parse,serialize:At.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=zt[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=zt[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&&bt.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 Et=zt;const{normalizeIPv6:_t,normalizeIPv4:Ct,removeDotSegments:St,recomposeAuthority:Ot,normalizeComponentEncoding:xt}=gt,It=Et;function Rt(e,t,n,o){const r={};return o||(e=Ft(Nt(e,n),n),t=Ft(Nt(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=St(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=St(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=St(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=St(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 Nt(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=It[(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=Ot(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=St(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 Dt=Array.from({length:127},((e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t))));const Mt=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Ft(e,t){const n=Object.assign({},t),o={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},r=-1!==e.indexOf("%");let i=!1;"suffix"===n.reference&&(e=(n.scheme?n.scheme+":":"")+"//"+e);const a=e.match(Mt);if(a){if(o.scheme=a[1],o.userinfo=a[3],o.host=a[4],o.port=parseInt(a[5],10),o.path=a[6]||"",o.query=a[7],o.fragment=a[8],isNaN(o.port)&&(o.port=a[5]),o.host){const e=Ct(o.host);if(!1===e.isIPV4){const t=_t(e.host,{isIPV4:!1});o.host=t.host.toLowerCase(),i=t.isIPV6}else o.host=e.host,i=!0}void 0!==o.scheme||void 0!==o.userinfo||void 0!==o.host||void 0!==o.port||o.path||void 0!==o.query?void 0===o.scheme?o.reference="relative":void 0===o.fragment?o.reference="absolute":o.reference="uri":o.reference="same-document",n.reference&&"suffix"!==n.reference&&n.reference!==o.reference&&(o.error=o.error||"URI is not a "+n.reference+" reference.");const e=It[(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||Dt[t])return!0;return!1}(o.host))try{o.host=URL.domainToASCII(o.host.toLowerCase())}catch(e){o.error=o.error||"Host's domain name can not be converted to ASCII: "+e}(!e||e&&!e.skipNormalize)&&(r&&void 0!==o.scheme&&(o.scheme=unescape(o.scheme)),r&&void 0!==o.userinfo&&(o.userinfo=unescape(o.userinfo)),r&&void 0!==o.host&&(o.host=unescape(o.host)),void 0!==o.path&&o.path.length&&(o.path=escape(unescape(o.path))),void 0!==o.fragment&&o.fragment.length&&(o.fragment=encodeURI(decodeURIComponent(o.fragment)))),e&&e.parse&&e.parse(o,n)}else o.error=o.error||"URI can not be parsed.";return o}const qt={SCHEMES:It,normalize:function(e,t){return"string"==typeof e?e=Nt(Ft(e,t),t):"object"==typeof e&&(e=Ft(Nt(e,t),t)),e},resolve:function(e,t,n){const o=Object.assign({scheme:"null"},n);return Nt(Rt(Ft(e,o),Ft(t,o),o,!0),{...o,skipEscape:!0})},resolveComponents:Rt,equal:function(e,t,n){return"string"==typeof e?(e=unescape(e),e=Nt(xt(Ft(e,n),!0),{...n,skipEscape:!0})):"object"==typeof e&&(e=Nt(xt(e,!0),{...n,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=Nt(xt(Ft(t,n),!0),{...n,skipEscape:!0})):"object"==typeof t&&(t=Nt(xt(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:Nt,parse:Ft};st.exports=qt,st.exports.default=qt,st.exports.fastUri=qt;var Ut=st.exports;Object.defineProperty(at,"__esModule",{value:!0});const Lt=Ut;Lt.code='require("ajv/dist/runtime/uri").default',at.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=De();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=$;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const o=qe(),r=Be(),i=W,a=We,s=$,l=ye,c=B,u=P,d=it,p=at,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,P,T,A,z;const E=e.strict,_=null===(t=e.code)||void 0===t?void 0:t.optimize,C=!0===_||void 0===_?1:_||0,S=null!==(o=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==o?o:f,O=null!==(r=e.uriResolver)&&void 0!==r?r:p.default;return{strictSchema:null===(a=null!==(i=e.strictSchema)&&void 0!==i?i:E)||void 0===a||a,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:E)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:E)&&void 0!==u?u:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:E)&&void 0!==h?h:"log",strictRequired:null!==(v=null!==(m=e.strictRequired)&&void 0!==m?m:E)&&void 0!==v&&v,code:e.code?{...e.code,optimize:C,regExp:S}:{optimize:C,regExp:S},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(w=e.loopEnum)&&void 0!==w?w:200,meta:null===(g=e.meta)||void 0===g||g,messages:null===(b=e.messages)||void 0===b||b,inlineRefs:null===($=e.inlineRefs)||void 0===$||$,schemaId:null!==(k=e.schemaId)&&void 0!==k?k:"$id",addUsedSchema:null===(j=e.addUsedSchema)||void 0===j||j,validateSchema:null===(P=e.validateSchema)||void 0===P||P,validateFormats:null===(T=e.validateFormats)||void 0===T||T,unicodeRegExp:null===(A=e.unicodeRegExp)||void 0===A||A,int32range:null===(z=e.int32range)||void 0===z||z,uriResolver:O}}class g{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...w(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:m,es5:t,lines:n}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const o=e.validateFormats;e.validateFormats=!1,this.RULES=(0,i.getRules)(),b.call(this,v,e,"NOT SUPPORTED"),b.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=z.call(this),e.formats&&T.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&A.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(C.call(this,n,t),!t)return(0,u.eachItem)(n,(e=>S.call(this,e))),this;x.call(this,t);const o={...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(n,0===o.type.length?e=>S.call(this,e,o):e=>o.type.forEach((t=>S.call(this,e,o,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const o of t){const t=o.split("/").slice(1);let r=e;for(const e of t)r=r[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:o}=t.definition,i=r[e];o&&i&&(r[e]=R(i))}}return e}_removeAllSchemas(e,t){for(const n in e){const o=e[n];t&&!t.test(n)||("string"==typeof o?delete e[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete e[n]))}}_addSchema(e,t,n,o=this.opts.validateSchema,r=this.opts.addUsedSchema){let i;const{schemaId:s}=this.opts;if("object"==typeof e)i=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(void 0!==c)return c;n=(0,l.normalizeId)(i||n);const u=l.getSchemaRefs.call(this,e,n);return c=new a.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:u}),this._cache.set(c.schema,c),r&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):a.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,e)}finally{this.opts=t}}}function b(e,t,n,o="error"){for(const r in e){const i=r;i in t&&this.logger[o](`${n}: option ${r}. ${e[i]}`)}}function k(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function j(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function T(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function A(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function z(){const e={...this.opts};for(const t of h)delete e[t];return e}g.ValidationError=o.default,g.MissingRefError=r.default,e.default=g;const E={log(){},warn(){},error(){}};const _=/^[a-z_$][a-z0-9_$:-]*$/i;function C(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(!_.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function S(e,t,n){var o;const r=null==t?void 0:t.post;if(n&&r)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:i}=this;let a=r?i.post:i.rules.find((({type:e})=>e===n));if(a||(a={type:n,rules:[]},i.rules.push(a)),i.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,c.getJSONTypes)(t.type),schemaType:(0,c.getJSONTypes)(t.schemaType)}};t.before?O.call(this,a,s,t.before):a.rules.push(s),i.all[e]=s,null===(o=t.implements)||void 0===o||o.forEach((e=>this.addKeyword(e)))}function O(e,t,n){const o=e.rules.findIndex((e=>e.keyword===n));o>=0?e.rules.splice(o,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function x(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=R(t)),e.validateSchema=this.compile(t,!0))}const I={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function R(e){return{anyOf:[e,I]}}}(y);var Bt={},Wt={},Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});const Gt={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Vt.default=Gt;var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.callRef=Ht.getValidate=void 0;const Kt=Be(),Jt=fe(),Zt=$,Yt=U(),Qt=We,Xt=P,en={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 nn(e,a,i,i.$async);const n=t.scopeValue("root",{ref:c});return nn(e,Zt._`${n}.validate`,c,c.$async)}();const u=Qt.resolveRef.call(l,c,r,n);if(void 0===u)throw new Kt.default(o.opts.uriResolver,r,n);return u instanceof Qt.SchemaEnv?function(t){const n=tn(e,t);nn(e,n,t,t.$async)}(u):function(o){const r=t.scopeValue("schema",!0===s.code.source?{ref:o,code:(0,Zt.stringify)(o)}:{ref:o}),i=t.name("valid"),a=e.subschema({schema:o,dataTypes:[],schemaPath:Zt.nil,topSchemaRef:r,errSchemaPath:n},i);e.mergeEvaluated(a),e.ok(i)}(u)}};function tn(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):Zt._`${n.scopeValue("wrapper",{ref:t})}.validate`}function nn(e,t,n,o){const{gen:r,it:i}=e,{allErrors:a,schemaEnv:s,opts:l}=i,c=l.passContext?Yt.default.this:Zt.nil;function u(e){const t=Zt._`${e}.errors`;r.assign(Yt.default.vErrors,Zt._`${Yt.default.vErrors} === null ? ${t} : ${Yt.default.vErrors}.concat(${t})`),r.assign(Yt.default.errors,Zt._`${Yt.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=Xt.mergeEvaluated.props(r,o.props,i.props));else{const t=r.var("props",Zt._`${e}.evaluated.props`);i.props=Xt.mergeEvaluated.props(r,t,i.props,Zt.Name)}if(!0!==i.items)if(o&&!o.dynamicItems)void 0!==o.items&&(i.items=Xt.mergeEvaluated.items(r,o.items,i.items));else{const t=r.var("items",Zt._`${e}.evaluated.items`);i.items=Xt.mergeEvaluated.items(r,t,i.items,Zt.Name)}}o?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const n=r.let("valid");r.try((()=>{r.code(Zt._`await ${(0,Jt.callValidateCode)(e,t,c)}`),d(t),a||r.assign(n,!0)}),(e=>{r.if(Zt._`!(${e} instanceof ${i.ValidationError})`,(()=>r.throw(e))),u(e),a||r.assign(n,!1)})),e.ok(n)}():e.result((0,Jt.callValidateCode)(e,t,c),(()=>d(t)),(()=>u(t)))}Ht.getValidate=tn,Ht.callRef=nn,Ht.default=en,Object.defineProperty(Wt,"__esModule",{value:!0});const on=Ht,rn=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Vt.default,on.default];Wt.default=rn;var an={},sn={};Object.defineProperty(sn,"__esModule",{value:!0});const ln=$,cn=ln.operators,un={maximum:{okStr:"<=",ok:cn.LTE,fail:cn.GT},minimum:{okStr:">=",ok:cn.GTE,fail:cn.LT},exclusiveMaximum:{okStr:"<",ok:cn.LT,fail:cn.GTE},exclusiveMinimum:{okStr:">",ok:cn.GT,fail:cn.LTE}},dn={message:({keyword:e,schemaCode:t})=>ln.str`must be ${un[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>ln._`{comparison: ${un[e].okStr}, limit: ${t}}`},pn={keyword:Object.keys(un),type:"number",schemaType:"number",$data:!0,error:dn,code(e){const{keyword:t,data:n,schemaCode:o}=e;e.fail$data(ln._`${n} ${un[t].fail} ${o} || isNaN(${n})`)}};sn.default=pn;var fn={};Object.defineProperty(fn,"__esModule",{value:!0});const hn=$,mn={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>hn.str`must be multiple of ${e}`,params:({schemaCode:e})=>hn._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:o,it:r}=e,i=r.opts.multipleOfPrecision,a=t.let("res"),s=i?hn._`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:hn._`${a} !== parseInt(${a})`;e.fail$data(hn._`(${o} === 0 || (${a} = ${n}/${o}, ${s}))`)}};fn.default=mn;var vn={},yn={};function wn(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(yn,"__esModule",{value:!0}),yn.default=wn,wn.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(vn,"__esModule",{value:!0});const gn=$,bn=P,$n=yn,kn={message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return gn.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>gn._`{limit: ${e}}`},jn={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:kn,code(e){const{keyword:t,data:n,schemaCode:o,it:r}=e,i="maxLength"===t?gn.operators.GT:gn.operators.LT,a=!1===r.opts.unicode?gn._`${n}.length`:gn._`${(0,bn.useFunc)(e.gen,$n.default)}(${n})`;e.fail$data(gn._`${a} ${i} ${o}`)}};vn.default=jn;var Pn={};Object.defineProperty(Pn,"__esModule",{value:!0});const Tn=fe(),An=$,zn={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>An.str`must match pattern "${e}"`,params:({schemaCode:e})=>An._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:r,it:i}=e,a=i.opts.unicodeRegExp?"u":"",s=n?An._`(new RegExp(${r}, ${a}))`:(0,Tn.usePattern)(e,o);e.fail$data(An._`!${s}.test(${t})`)}};Pn.default=zn;var En={};Object.defineProperty(En,"__esModule",{value:!0});const _n=$,Cn={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}}`},Sn={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Cn,code(e){const{keyword:t,data:n,schemaCode:o}=e,r="maxProperties"===t?_n.operators.GT:_n.operators.LT;e.fail$data(_n._`Object.keys(${n}).length ${r} ${o}`)}};En.default=Sn;var On={};Object.defineProperty(On,"__esModule",{value:!0});const xn=fe(),In=$,Rn=P,Nn={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>In.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>In._`{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(In.nil,c);else for(const t of n)(0,xn.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,xn.propertyInData)(t,r,n,s.ownProperties)),t.if((0,In.not)(i),(()=>{e.error(),t.break()}))}),In.nil)}(a,n))),e.ok(n)}else t.if((0,xn.checkMissingProp)(e,n,a)),(0,xn.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,Rn.checkStrictMode)(a,t,a.opts.strictRequired)}}function c(){t.forOf("prop",o,(n=>{e.setParams({missingProperty:n}),t.if((0,xn.noPropertyInData)(t,r,n,s.ownProperties),(()=>e.error()))}))}}};On.default=Nn;var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});const Mn=$,Fn={message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return Mn.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>Mn._`{limit: ${e}}`},qn={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Fn,code(e){const{keyword:t,data:n,schemaCode:o}=e,r="maxItems"===t?Mn.operators.GT:Mn.operators.LT;e.fail$data(Mn._`${n}.length ${r} ${o}`)}};Dn.default=qn;var Un={},Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});const Bn=we;Bn.code='require("ajv/dist/runtime/equal").default',Ln.default=Bn,Object.defineProperty(Un,"__esModule",{value:!0});const Wn=B,Vn=$,Gn=P,Hn=Ln,Kn={message:({params:{i:e,j:t}})=>Vn.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>Vn._`{i: ${e}, j: ${t}}`},Jn={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Kn,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",Vn._`{}`);t.for(Vn._`;${o}--;`,(()=>{t.let(i,Vn._`${n}[${o}]`),t.if(a,Vn._`continue`),c.length>1&&t.if(Vn._`typeof ${i} == "string"`,Vn._`${i} += "_"`),t.if(Vn._`typeof ${u}[${i}] == "number"`,(()=>{t.assign(r,Vn._`${u}[${i}]`),e.error(),t.assign(l,!1).break()})).code(Vn._`${u}[${i}] = ${o}`)}))}function d(o,r){const i=(0,Gn.useFunc)(t,Hn.default),a=t.name("outer");t.label(a).for(Vn._`;${o}--;`,(()=>t.for(Vn._`${r} = ${o}; ${r}--;`,(()=>t.if(Vn._`${i}(${n}[${o}], ${n}[${r}])`,(()=>{e.error(),t.assign(l,!1).break(a)}))))))}e.block$data(l,(function(){const o=t.let("i",Vn._`${n}.length`),r=t.let("j");e.setParams({i:o,j:r}),t.assign(l,!0),t.if(Vn._`${o} > 1`,(()=>(c.length>0&&!c.some((e=>"object"===e||"array"===e))?u:d)(o,r)))}),Vn._`${a} === false`),e.ok(l)}};Un.default=Jn;var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});const Yn=$,Qn=P,Xn=Ln,eo={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>Yn._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:o,schemaCode:r,schema:i}=e;o||i&&"object"==typeof i?e.fail$data(Yn._`!${(0,Qn.useFunc)(t,Xn.default)}(${n}, ${r})`):e.fail(Yn._`${i} !== ${n}`)}};Zn.default=eo;var to={};Object.defineProperty(to,"__esModule",{value:!0});const no=$,oo=P,ro=Ln,io={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>no._`{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,oo.useFunc)(t,ro.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(no._`${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,no.or)(...r.map(((t,o)=>function(e,t){const o=r[t];return"object"==typeof o&&null!==o?no._`${c()}(${n}, ${e}[${t}])`:no._`${n} === ${o}`}(e,o))))}e.pass(u)}};to.default=io,Object.defineProperty(an,"__esModule",{value:!0});const ao=fn,so=vn,lo=Pn,co=En,uo=On,po=Dn,fo=Un,ho=Zn,mo=to,vo=[sn.default,ao.default,so.default,lo.default,co.default,uo.default,po.default,fo.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ho.default,mo.default];an.default=vo;var yo={},wo={};Object.defineProperty(wo,"__esModule",{value:!0}),wo.validateAdditionalItems=void 0;const go=$,bo=P,$o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>go.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>go._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:o}=t;Array.isArray(o)?ko(e,o):(0,bo.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function ko(e,t){const{gen:n,schema:o,data:r,keyword:i,it:a}=e;a.items=!0;const s=n.const("len",go._`${r}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(go._`${s} <= ${t.length}`);else if("object"==typeof o&&!(0,bo.alwaysValidSchema)(a,o)){const o=n.var("valid",go._`${s} <= ${t.length}`);n.if((0,go.not)(o),(()=>function(o){n.forRange("i",t.length,s,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:bo.Type.Num},o),a.allErrors||n.if((0,go.not)(o),(()=>n.break()))}))}(o))),e.ok(o)}}wo.validateAdditionalItems=ko,wo.default=$o;var jo={},Po={};Object.defineProperty(Po,"__esModule",{value:!0}),Po.validateTuple=void 0;const To=$,Ao=P,zo=fe(),Eo={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return _o(e,"additionalItems",t);n.items=!0,(0,Ao.alwaysValidSchema)(n,t)||e.ok((0,zo.validateArray)(e))}};function _o(e,t,n=e.schema){const{gen:o,parentSchema:r,data:i,keyword:a,it:s}=e;!function(e){const{opts:o,errSchemaPath:r}=s,i=n.length,l=i===e.minItems&&(i===e.maxItems||!1===e[t]);if(o.strictTuples&&!l){const e=`"${a}" is ${i}-tuple, but minItems or maxItems/${t} are not specified or different at path "${r}"`;(0,Ao.checkStrictMode)(s,e,o.strictTuples)}}(r),s.opts.unevaluated&&n.length&&!0!==s.items&&(s.items=Ao.mergeEvaluated.items(o,n.length,s.items));const l=o.name("valid"),c=o.const("len",To._`${i}.length`);n.forEach(((t,n)=>{(0,Ao.alwaysValidSchema)(s,t)||(o.if(To._`${c} > ${n}`,(()=>e.subschema({keyword:a,schemaProp:n,dataProp:n},l))),e.ok(l))}))}Po.validateTuple=_o,Po.default=Eo,Object.defineProperty(jo,"__esModule",{value:!0});const Co=Po,So={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,Co.validateTuple)(e,"items")};jo.default=So;var Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});const xo=$,Io=P,Ro=fe(),No=wo,Do={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>xo.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>xo._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:o}=e,{prefixItems:r}=n;o.items=!0,(0,Io.alwaysValidSchema)(o,t)||(r?(0,No.validateAdditionalItems)(e,r):e.ok((0,Ro.validateArray)(e)))}};Oo.default=Do;var Mo={};Object.defineProperty(Mo,"__esModule",{value:!0});const Fo=$,qo=P,Uo={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?Fo.str`must contain at least ${e} valid item(s)`:Fo.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?Fo._`{minContains: ${e}}`:Fo._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:r,it:i}=e;let a,s;const{minContains:l,maxContains:c}=o;i.opts.next?(a=void 0===l?1:l,s=c):a=1;const u=t.const("len",Fo._`${r}.length`);if(e.setParams({min:a,max:s}),void 0===s&&0===a)return void(0,qo.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&a>s)return(0,qo.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,qo.alwaysValidSchema)(i,n)){let t=Fo._`${u} >= ${a}`;return void 0!==s&&(t=Fo._`${t} && ${u} <= ${s}`),void e.pass(t)}i.items=!0;const d=t.name("valid");function p(){const e=t.name("_valid"),n=t.let("count",0);f(e,(()=>t.if(e,(()=>function(e){t.code(Fo._`${e}++`),void 0===s?t.if(Fo._`${e} >= ${a}`,(()=>t.assign(d,!0).break())):(t.if(Fo._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===a?t.assign(d,!0):t.if(Fo._`${e} >= ${a}`,(()=>t.assign(d,!0))))}(n)))))}function f(n,o){t.forRange("i",0,u,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:qo.Type.Num,compositeRule:!0},n),o()}))}void 0===s&&1===a?f(d,(()=>t.if(d,(()=>t.break())))):0===a?(t.let(d,!0),void 0!==s&&t.if(Fo._`${r}.length > 0`,p)):(t.let(d,!1),p()),e.result(d,(()=>e.reset()))}};Mo.default=Uo;var Lo={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=$,n=P,o=fe();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(e,t){return null==t.validate&&(t.validate=!0),null==t.normalize&&(t.normalize=!0),e}function t(t,n){void 0===t&&(t={}),void 0===n&&(n=e);var r=new Proxy({},{get:function(e,o){return"build"===o?function(e){return null==(e=e||{}).validate&&(e.validate=!0),null==e.normalize&&(e.normalize=!0),n(t,e)}:function(e){return t[o.toString()]=e,r}},set:function(){return!1}});return r}function n(t,n){if(void 0===t&&(t=[]),void 0===n&&(n=e),null!=t&&!Array.isArray(t))throw new Error("The provided model should be an array");var r=new Proxy({},{get:function(e,o){return"build"===o?function(e){return null==(e=e||{}).validate&&(e.validate=!0),null==e.normalize&&(e.normalize=!0),n(t,e)}:"push"===o?function(e){return t.push(e),r}:void 0},set:function(){return!1}});return r}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 o(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)}var i=function(){return i=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},i.apply(this,arguments)};"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 o(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 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())}}(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 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}}}(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 r=j;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=A;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)=>C(e,t.names)),{})}}class h extends f{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends f{}class v extends h{}v.kind="else";class y extends h{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof y?t:t.nodes:this.nodes.length?this:new y(x(e),t instanceof y?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=_(this.condition,e,t),this}get names(){const e=super.names;return S(e,this.condition),this.else&&C(e,this.else.names),e}}y.kind="if";class w extends h{}w.kind="for";class g extends w{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=_(this.iteration,e,t),this}get names(){return C(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 C(super.names,this.iterable.names)}}class $ extends h{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}$.kind="func";class 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,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&&C(e,this.catch.names),this.finally&&C(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 z extends h{render(e){return"finally"+super.render(e)}}z.kind="finally";function C(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?C(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 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 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 z,this.code(n)),this._endBlockNode(E,z)}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)}}($);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 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]||D(e,`unknown keyword: "${n}"`)}function C(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function 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:r}){return(o,i,a,s)=>{const l=void 0===a?i:a instanceof P.Name?(i instanceof P.Name?e(o,i,a):t(o,i,a),a):i instanceof P.Name?(t(o,a,i),i):n(i,a);return s!==P.Name||l instanceof P.Name?l:r(o,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||(z(e,t),!C(t,e.self.RULES.all))},T.checkUnknownRules=z,T.schemaHasRules=C,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,r,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return P._`${n}`}return P._`${e}${t}${(0,P.getProperty)(r)}`},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 r=t===N.Num;return n?r?P._`"[" + ${e} + "]"`:P._`"['" + ${e} + "']"`:r?P._`"/" + ${e}`:P._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,P.getProperty)(e).toString():"/"+S(e)},T.checkStrictMode=D;var M,q,F,U={};function L(){if(M)return U;M=1,Object.defineProperty(U,"__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 U.default=t,U}function B(){return q||(q=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,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]}}(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},r){const o=n.RULES.types[r];return o&&!0!==o&&e(t,o)},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=B(),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:r,opts:o}=e,i=function(e,t){return t?e.filter((e=>re.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),a=t.length>0&&!(0===i.length&&1===t.length&&(0,Y.schemaHasRulesForType)(e,t[0]));if(a){const a=ie(t,r,o.strictNumbers,te.Wrong);n.if(a,(()=>{i.length?function(e,t,n){const{gen:r,data:o,opts:i}=e,a=r.let("dataType",X._`typeof ${o}`),s=r.let("coerced",X._`undefined`);"array"===i.coerceTypes&&r.if(X._`${a} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>r.assign(o,X._`${o}[0]`).assign(a,X._`typeof ${o}`).if(ie(t,o,i.strictNumbers),(()=>r.assign(s,o)))));r.if(X._`${s} !== undefined`);for(const e of n)(re.has(e)||"array"===e&&"array"===i.coerceTypes)&&l(e);function l(e){switch(e){case"string":return void r.elseIf(X._`${a} == "number" || ${a} == "boolean"`).assign(s,X._`"" + ${o}`).elseIf(X._`${o} === null`).assign(s,X._`""`);case"number":return void r.elseIf(X._`${a} == "boolean" || ${o} === null
|
|
2
|
+
|| (${a} == "string" && ${o} && ${o} == +${o})`).assign(s,X._`+${o}`);case"integer":return void r.elseIf(X._`${a} === "boolean" || ${o} === null
|
|
3
|
+
|| (${a} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(s,X._`+${o}`);case"boolean":return void r.elseIf(X._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(s,!1).elseIf(X._`${o} === "true" || ${o} === 1`).assign(s,!0);case"null":return r.elseIf(X._`${o} === "" || ${o} === 0 || ${o} === false`),void r.assign(s,null);case"array":r.elseIf(X._`${a} === "string" || ${a} === "number"
|
|
4
|
+
|| ${a} === "boolean" || ${o} === null`).assign(s,X._`[${o}]`)}}r.else(),se(e),r.endIf(),r.if(X._`${s} !== undefined`,(()=>{r.assign(o,s),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(X._`${t} !== undefined`,(()=>e.assign(X._`${t}[${n}]`,r)))}(e,s)}))}(e,t,i):se(e)}))}return a};const re=new Set(["string","number","integer","boolean","null"]);function oe(e,t,n,r=te.Correct){const o=r===te.Correct?X.operators.EQ:X.operators.NEQ;let i;switch(e){case"null":return X._`${t} ${o} 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} ${o} ${e}`}return r===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,r){if(1===e.length)return oe(e[0],t,n,r);let o;const i=(0,ee.toHash)(e);if(i.array&&i.object){const e=X._`typeof ${t} != "object"`;o=i.null?e:X._`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else o=X.nil;i.number&&delete i.integer;for(const e in i)o=(0,X.and)(o,oe(e,t,n,r));return o}V.checkDataType=oe,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:r}=e,o=(0,ee.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,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=L(),r=T;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)):[]}fe.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()}))},fe.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}`))))},fe.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},fe.hasPropFunc=o,fe.isOwnProperty=i,fe.propertyInData=function(t,n,r,o){const a=e._`${n}${(0,e.getProperty)(r)} !== undefined`;return o?e._`${a} && ${i(t,n,r)}`:a},fe.noPropertyInData=a,fe.allSchemaProperties=s,fe.schemaProperties=function(e,n){return s(n).filter((r=>!(0,t.alwaysValidSchema)(e,n[r])))},fe.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 fe.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})`})},fe.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)}))}},fe.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)))},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=L(),n=he(),r=B();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 pe.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)))},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(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)},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: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)}}},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 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},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,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 ke.arrayKeywords)for(var p=0;p<d.length;p++)$e(e,t,n,d[p],o+"/"+u+"/"+p,i,o,u,r,p)}else if(u in ke.propsKeywords){if(d&&"object"==typeof d)for(var f in d)$e(e,t,n,d[f],o+"/"+u+"/"+je(f),i,o,u,r,f)}else(u in ke.keywords||e.allKeys&&!(u in ke.skipKeywords))&&$e(e,t,n,d,o+"/"+u,i,o,u,r)}n(r,o,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,ze=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 Ce=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Se(e){for(const t in e){if(Ce.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++,!ze.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 r=e.parse(t);return xe(e,r)}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 Me(){if(De)return g;De=1,Object.defineProperty(g,"__esModule",{value:!0}),g.getData=g.KeywordCxt=g.validateFunctionCode=void 0;const e=function(){if(F)return b;F=1,Object.defineProperty(b,"__esModule",{value:!0}),b.boolOrEmptySchema=b.topBoolOrEmptySchema=void 0;const e=B(),t=$,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 b.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))},b.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),o(e)):n.var(t,!0)},b}(),t=V,n=J(),r=V,o=function(){if(le)return ce;le=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.assignDefaults=void 0;const e=$,t=T;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 ce.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)))},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: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')},ye.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)},ye.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},ye}(),s=$,l=L(),c=we,u=T,d=B();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&&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=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 j(e,[],!1,n);const r=(0,t.getSchemaTypes)(e.schema);j(e,r,!(0,t.coerceAndCheckDataType)(e,r),n)}function k({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 j(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)||z(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"))&&z(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=>P(t,e)))&&z(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 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 z(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:r}=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),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 C{constructor(e,t,n){if((0,i.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",x(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,n){this.failResult((0,s.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=s.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:n,schemaCode: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 C(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)}g.KeywordCxt=C;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 g.getData=x,g}we.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,o=Re(e[n]||t),i={"":o},a=Oe(r,o,!1),s={},l=new Set;return Ee(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=Re(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!==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 qe,Fe={};function Ue(){if(qe)return Fe;qe=1,Object.defineProperty(Fe,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return Fe.default=e,Fe}var Le,Be={};function Ve(){if(Le)return Be;Le=1,Object.defineProperty(Be,"__esModule",{value:!0});const e=we;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 Be.default=t,Be}var We={};Object.defineProperty(We,"__esModule",{value:!0}),We.resolveSchema=We.getCompilingSchema=We.resolveRef=We.compileSchema=We.SchemaEnv=void 0;const Ge=$,He=Ue(),Ke=L(),Je=we,Ze=T,Ye=Me();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:r,lines:o}=this.opts.code,{ownProperties:i}=this.opts,a=new Ge.CodeGen(this.scope,{es5:r,lines:o,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 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 nt(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||rt.call(this,e,t)}function rt(e,t){const n=this.opts.uriResolver.parse(t),r=(0,Je._getFullPath)(this.opts.uriResolver,n);let o=(0,Je.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return it.call(this,n,e);const i=(0,Je.normalizeId)(r),a=this.refs[i]||this.schemas[i];if("string"==typeof a){const t=rt.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,r=t[n];return r&&(o=(0,Je.resolveUrl)(this.opts.uriResolver,o,r)),new Qe({schema:t,schemaId:n,root:e,baseId:o})}return it.call(this,n,a)}}We.SchemaEnv=Qe,We.compileSchema=Xe,We.resolveRef=function(e,t,n){var r;n=(0,Je.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let i=nt.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 Qe({schema:o,schemaId:a,root:e,baseId:t}))}return void 0!==i?e.refs[n]=et.call(this,i):void 0},We.getCompilingSchema=tt,We.resolveSchema=rt;const ot=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function it(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,Ze.unescapeFragment)(r)];if(void 0===e)return;const o="object"==typeof(n=e)&&n[this.opts.schemaId];!ot.has(r)&&o&&(t=(0,Je.resolveUrl)(this.opts.uriResolver,t,o))}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=rt.call(this,r,e)}const{schemaId:a}=this.opts;return i=i||new Qe({schema:n,schemaId:a,root:r,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="",r=!0;for(const t of e){if(void 0===ut[t])return;"0"!==t&&!0===r&&(r=!1),r||(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:""},r=[],o=[];let i=!1,a=!1,s=!1;function l(){if(o.length){if(!1===i){const e=pt(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(pt(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 ht(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 mt(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===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 r=dt(t);if(r.isIPV4)t=r.host;else{const n=ft(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(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 r=n[0];e=e.slice(r.length),t.push(r)}}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}},zt={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 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&&kt.test(n.uuid)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};var Ct=zt;const{normalizeIPv6:St,normalizeIPv4:_t,removeDotSegments:Ot,recomposeAuthority:xt,normalizeComponentEncoding:It}=bt,Rt=Ct;function Nt(e,t,n,r){const o={};return r||(e=Ft(Dt(e,n),n),t=Ft(Dt(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=Ot(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=Ot(t.path||""),o.query=t.query):(t.path?("/"===t.path.charAt(0)?o.path=Ot(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=Ot(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 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:""},r=Object.assign({},t),o=[],i=Rt[(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=xt(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=Ot(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 qt=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Ft(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(qt);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=_t(r.host);if(!1===e.isIPV4){const t=St(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=Rt[(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:Rt,normalize:function(e,t){return"string"==typeof e?e=Dt(Ft(e,t),t):"object"==typeof e&&(e=Ft(Dt(e,t),t)),e},resolve:function(e,t,n){const r=Object.assign({scheme:"null"},n);return Dt(Nt(Ft(e,r),Ft(t,r),r,!0),{...r,skipEscape:!0})},resolveComponents:Nt,equal:function(e,t,n){return"string"==typeof e?(e=unescape(e),e=Dt(It(Ft(e,n),!0),{...n,skipEscape:!0})):"object"==typeof e&&(e=Dt(It(e,!0),{...n,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=Dt(It(Ft(t,n),!0),{...n,skipEscape:!0})):"object"==typeof t&&(t=Dt(It(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:Dt,parse:Ft};lt.exports=Ut,lt.exports.default=Ut,lt.exports.fastUri=Ut;var Lt=lt.exports;Object.defineProperty(st,"__esModule",{value:!0});const Bt=Lt;Bt.code='require("ajv/dist/runtime/uri").default',st.default=Bt,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=$;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=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,r,o,i,a,s,l,c,u,d,h,m,v,y,w,g,b,k,$,j,A,T,P,E;const z=e.strict,C=null===(t=e.code)||void 0===t?void 0:t.optimize,S=!0===C||void 0===C?1:C||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:z)||void 0===a||a,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:z)||void 0===l||l,strictTypes:null!==(u=null!==(c=e.strictTypes)&&void 0!==c?c:z)&&void 0!==u?u:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:z)&&void 0!==h?h:"log",strictRequired:null!==(v=null!==(m=e.strictRequired)&&void 0!==m?m:z)&&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 z;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&&P.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),j.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 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=r.default,g.MissingRefError=o.default,e.default=g;const z={log(){},warn(){},error(){}};const C=/^[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(!C.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function _(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]}}}(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=L(),Xt=We,en=T,tn={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 rn(e,a,i,i.$async);const n=t.scopeValue("root",{ref:c});return rn(e,Yt._`${n}.validate`,c,c.$async)}();const u=Xt.resolveRef.call(l,c,o,n);if(void 0===u)throw new Jt.default(r.opts.uriResolver,o,n);return u instanceof Xt.SchemaEnv?function(t){const n=nn(e,t);rn(e,n,t,t.$async)}(u):function(r){const o=t.scopeValue("schema",!0===s.code.source?{ref:r,code:(0,Yt.stringify)(r)}:{ref:r}),i=t.name("valid"),a=e.subschema({schema:r,dataTypes:[],schemaPath:Yt.nil,topSchemaRef:o,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 rn(e,t,n,r){const{gen:o,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`;o.assign(Qt.default.vErrors,Yt._`${Qt.default.vErrors} === null ? ${t} : ${Qt.default.vErrors}.concat(${t})`),o.assign(Qt.default.errors,Yt._`${Qt.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=en.mergeEvaluated.props(o,r.props,i.props));else{const t=o.var("props",Yt._`${e}.evaluated.props`);i.props=en.mergeEvaluated.props(o,t,i.props,Yt.Name)}if(!0!==i.items)if(r&&!r.dynamicItems)void 0!==r.items&&(i.items=en.mergeEvaluated.items(o,r.items,i.items));else{const t=o.var("items",Yt._`${e}.evaluated.items`);i.items=en.mergeEvaluated.items(o,t,i.items,Yt.Name)}}r?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const n=o.let("valid");o.try((()=>{o.code(Yt._`await ${(0,Zt.callValidateCode)(e,t,c)}`),d(t),a||o.assign(n,!0)}),(e=>{o.if(Yt._`!(${e} instanceof ${i.ValidationError})`,(()=>o.throw(e))),u(e),a||o.assign(n,!1)})),e.ok(n)}():e.result((0,Zt.callValidateCode)(e,t,c),(()=>d(t)),(()=>u(t)))}Kt.getValidate=nn,Kt.callRef=rn,Kt.default=tn,Object.defineProperty(Wt,"__esModule",{value:!0});const on=Kt,an=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Gt.default,on.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:r}=e;e.fail$data(cn._`${n} ${dn[t].fail} ${r} || 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:r,it:o}=e,i=o.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._`(${r} === 0 || (${a} = ${n}/${r}, ${s}))`)}};hn.default=vn;var yn={},wn={};function gn(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(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:r,it:o}=e,i="maxLength"===t?bn.operators.GT:bn.operators.LT,a=!1===o.opts.unicode?bn._`${n}.length`:bn._`${(0,kn.useFunc)(e.gen,$n.default)}(${n})`;e.fail$data(bn._`${a} ${i} ${r}`)}};yn.default=An;var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});const Pn=he(),En=$,zn={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:r,schemaCode:o,it:i}=e,a=i.opts.unicodeRegExp?"u":"",s=n?En._`(new RegExp(${o}, ${a}))`:(0,Pn.usePattern)(e,r);e.fail$data(En._`!${s}.test(${t})`)}};Tn.default=zn;var Cn={};Object.defineProperty(Cn,"__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:r}=e,o="maxProperties"===t?Sn.operators.GT:Sn.operators.LT;e.fail$data(Sn._`Object.keys(${n}).length ${o} ${r}`)}};Cn.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: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(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,r,(()=>{t.assign(i,(0,In.propertyInData)(t,o,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: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,Nn.checkStrictMode)(a,t,a.opts.strictRequired)}}function c(){t.forOf("prop",r,(n=>{e.setParams({missingProperty:n}),t.if((0,In.noPropertyInData)(t,o,n,s.ownProperties),(()=>e.error()))}))}}};xn.default=Dn;var Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});const qn=$,Fn={message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return qn.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>qn._`{limit: ${e}}`},Un={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Fn,code(e){const{keyword:t,data:n,schemaCode:r}=e,o="maxItems"===t?qn.operators.GT:qn.operators.LT;e.fail$data(qn._`${n}.length ${o} ${r}`)}};Mn.default=Un;var Ln={},Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});const Vn=ge;Vn.code='require("ajv/dist/runtime/equal").default',Bn.default=Vn,Object.defineProperty(Ln,"__esModule",{value:!0});const Wn=V,Gn=$,Hn=T,Kn=Bn,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:r,schema:o,parentSchema:i,schemaCode:a,it:s}=e;if(!r&&!o)return;const l=t.let("valid"),c=i.items?(0,Wn.getSchemaTypes)(i.items):[];function u(r,o){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._`;${r}--;`,(()=>{t.let(i,Gn._`${n}[${r}]`),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(o,Gn._`${u}[${i}]`),e.error(),t.assign(l,!1).break()})).code(Gn._`${u}[${i}] = ${r}`)}))}function d(r,o){const i=(0,Hn.useFunc)(t,Kn.default),a=t.name("outer");t.label(a).for(Gn._`;${r}--;`,(()=>t.for(Gn._`${o} = ${r}; ${o}--;`,(()=>t.if(Gn._`${i}(${n}[${r}], ${n}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(a)}))))))}e.block$data(l,(function(){const r=t.let("i",Gn._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(l,!0),t.if(Gn._`${r} > 1`,(()=>(c.length>0&&!c.some((e=>"object"===e||"array"===e))?u:d)(r,o)))}),Gn._`${a} === false`),e.ok(l)}};Ln.default=Zn;var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});const Qn=$,Xn=T,er=Bn,tr={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:r,schemaCode:o,schema:i}=e;r||i&&"object"==typeof i?e.fail$data(Qn._`!${(0,Xn.useFunc)(t,er.default)}(${n}, ${o})`):e.fail(Qn._`${i} !== ${n}`)}};Yn.default=tr;var nr={};Object.defineProperty(nr,"__esModule",{value:!0});const rr=$,or=T,ir=Bn,ar={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>rr._`{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,or.useFunc)(t,ir.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(rr._`${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,rr.or)(...o.map(((t,r)=>function(e,t){const r=o[t];return"object"==typeof r&&null!==r?rr._`${c()}(${n}, ${e}[${t}])`:rr._`${n} === ${r}`}(e,r))))}e.pass(u)}};nr.default=ar,Object.defineProperty(sn,"__esModule",{value:!0});const sr=hn,lr=yn,cr=Tn,ur=Cn,dr=xn,pr=Mn,fr=Ln,hr=Yn,mr=nr,vr=[ln.default,sr.default,lr.default,cr.default,ur.default,dr.default,pr.default,fr.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},hr.default,mr.default];sn.default=vr;var yr={},wr={};Object.defineProperty(wr,"__esModule",{value:!0}),wr.validateAdditionalItems=void 0;const gr=$,br=T,kr={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>gr.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>gr._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?$r(e,r):(0,br.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function $r(e,t){const{gen:n,schema:r,data:o,keyword:i,it:a}=e;a.items=!0;const s=n.const("len",gr._`${o}.length`);if(!1===r)e.setParams({len:t.length}),e.pass(gr._`${s} <= ${t.length}`);else if("object"==typeof r&&!(0,br.alwaysValidSchema)(a,r)){const r=n.var("valid",gr._`${s} <= ${t.length}`);n.if((0,gr.not)(r),(()=>function(r){n.forRange("i",t.length,s,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:br.Type.Num},r),a.allErrors||n.if((0,gr.not)(r),(()=>n.break()))}))}(r))),e.ok(r)}}wr.validateAdditionalItems=$r,wr.default=kr;var jr={},Ar={};Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.validateTuple=void 0;const Tr=$,Pr=T,Er=he(),zr={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return Cr(e,"additionalItems",t);n.items=!0,(0,Pr.alwaysValidSchema)(n,t)||e.ok((0,Er.validateArray)(e))}};function Cr(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,Pr.checkStrictMode)(s,e,r.strictTuples)}}(o),s.opts.unevaluated&&n.length&&!0!==s.items&&(s.items=Pr.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",Tr._`${i}.length`);n.forEach(((t,n)=>{(0,Pr.alwaysValidSchema)(s,t)||(r.if(Tr._`${c} > ${n}`,(()=>e.subschema({keyword:a,schemaProp:n,dataProp:n},l))),e.ok(l))}))}Ar.validateTuple=Cr,Ar.default=zr,Object.defineProperty(jr,"__esModule",{value:!0});const Sr=Ar,_r={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,Sr.validateTuple)(e,"items")};jr.default=_r;var Or={};Object.defineProperty(Or,"__esModule",{value:!0});const xr=$,Ir=T,Rr=he(),Nr=wr,Dr={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>xr.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>xr._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,(0,Ir.alwaysValidSchema)(r,t)||(o?(0,Nr.validateAdditionalItems)(e,o):e.ok((0,Rr.validateArray)(e)))}};Or.default=Dr;var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0});const qr=$,Fr=T,Ur={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?qr.str`must contain at least ${e} valid item(s)`:qr.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?qr._`{minContains: ${e}}`:qr._`{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",qr._`${o}.length`);if(e.setParams({min:a,max:s}),void 0===s&&0===a)return void(0,Fr.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&a>s)return(0,Fr.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,Fr.alwaysValidSchema)(i,n)){let t=qr._`${u} >= ${a}`;return void 0!==s&&(t=qr._`${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(qr._`${e}++`),void 0===s?t.if(qr._`${e} >= ${a}`,(()=>t.assign(d,!0).break())):(t.if(qr._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===a?t.assign(d,!0):t.if(qr._`${e} >= ${a}`,(()=>t.assign(d,!0))))}(n)))))}function f(n,r){t.forRange("i",0,u,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:Fr.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(qr._`${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=$,n=T,r=he();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 Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});const Wo=$,Vo=P,Go={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,Vo.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)}};Bo.default=Go;var Ho={};Object.defineProperty(Ho,"__esModule",{value:!0});const Ko=fe(),Jo=$,Zo=U(),Yo=P,Qo={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>Jo._`{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,Yo.alwaysValidSchema)(a,n))return;const c=(0,Ko.allSchemaProperties)(o.properties),u=(0,Ko.allSchemaProperties)(o.patternProperties);function d(e){t.code(Jo._`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,Yo.alwaysValidSchema)(a,n)){const n=t.name("valid");"failing"===l.removeAdditional?(f(o,n,!1),t.if((0,Jo.not)(n),(()=>{e.reset(),d(o)}))):(f(o,n),s||t.if((0,Jo.not)(n),(()=>t.break())))}}}function f(t,n,o){const r={keyword:"additionalProperties",dataProp:t,dataPropType:Yo.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,Yo.schemaRefOrVal)(a,o.properties,"properties");r=(0,Ko.isOwnProperty)(t,e,n)}else r=c.length?(0,Jo.or)(...c.map((e=>Jo._`${n} === ${e}`))):Jo.nil;return u.length&&(r=(0,Jo.or)(r,...u.map((t=>Jo._`${(0,Ko.usePattern)(e,t)}.test(${n})`)))),(0,Jo.not)(r)}(n),(()=>p(n))):p(n)})),e.ok(Jo._`${i} === ${Zo.default.errors}`)}};Ho.default=Qo;var Xo={};Object.defineProperty(Xo,"__esModule",{value:!0});const er=De(),tr=fe(),nr=P,or=Ho,rr={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&&or.default.code(new er.KeywordCxt(i,or.default,"additionalProperties"));const a=(0,tr.allSchemaProperties)(n);for(const e of a)i.definedProperties.add(e);i.opts.unevaluated&&a.length&&!0!==i.props&&(i.props=nr.mergeEvaluated.props(t,(0,nr.toHash)(a),i.props));const s=a.filter((e=>!(0,nr.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,tr.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)}}};Xo.default=rr;var ir={};Object.defineProperty(ir,"__esModule",{value:!0});const ar=fe(),sr=$,lr=P,cr=P,ur={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,ar.allSchemaProperties)(n),l=s.filter((e=>(0,lr.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 sr.Name||(i.props=(0,cr.evaluatedPropsToName)(t,i.props));const{props:d}=i;function p(e){for(const t in c)new RegExp(e).test(t)&&(0,lr.checkStrictMode)(i,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function f(n){t.forIn("key",o,(o=>{t.if(sr._`${(0,ar.usePattern)(e,n)}.test(${o})`,(()=>{const r=l.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:cr.Type.Str},u),i.opts.unevaluated&&!0!==d?t.assign(sr._`${d}[${o}]`,!0):r||i.allErrors||t.if((0,sr.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))}()}};ir.default=ur;var dr={};Object.defineProperty(dr,"__esModule",{value:!0});const pr=P,fr={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:o}=e;if((0,pr.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"}};dr.default=fr;var hr={};Object.defineProperty(hr,"__esModule",{value:!0});const mr={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:fe().validateUnion,error:{message:"must match a schema in anyOf"}};hr.default=mr;var vr={};Object.defineProperty(vr,"__esModule",{value:!0});const yr=$,wr=P,gr={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>yr._`{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,wr.alwaysValidSchema)(r,n)?t.var(l,!0):i=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},l),o>0&&t.if(yr._`${l} && ${a}`).assign(a,!1).assign(s,yr._`[${s}, ${o}]`).else(),t.if(l,(()=>{t.assign(a,!0),t.assign(s,o),i&&e.mergeEvaluated(i,yr.Name)}))}))})),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}};vr.default=gr;var br={};Object.defineProperty(br,"__esModule",{value:!0});const $r=P,kr={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)}))}};br.default=kr;var jr={};Object.defineProperty(jr,"__esModule",{value:!0});const Pr=$,Tr=P,Ar={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>Pr.str`must match "${e.ifClause}" schema`,params:({params:e})=>Pr._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,Tr.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const r=zr(o,"then"),i=zr(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,Pr.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,Pr._`${n}`):e.setParams({ifClause:n})}}e.pass(a,(()=>e.error(!0)))}};function zr(e,t){const n=e.schema[t];return void 0!==n&&!(0,Tr.alwaysValidSchema)(e,n)}jr.default=Ar;var Er={};Object.defineProperty(Er,"__esModule",{value:!0});const _r=P,Cr={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,_r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};Er.default=Cr,Object.defineProperty(yo,"__esModule",{value:!0});const Sr=wo,Or=jo,xr=Po,Ir=Oo,Rr=Mo,Nr=Lo,Dr=Bo,Mr=Ho,Fr=Xo,qr=ir,Ur=dr,Lr=hr,Br=vr,Wr=br,Vr=jr,Gr=Er;yo.default=function(e=!1){const t=[Ur.default,Lr.default,Br.default,Wr.default,Vr.default,Gr.default,Dr.default,Mr.default,Nr.default,Fr.default,qr.default];return e?t.push(Or.default,Ir.default):t.push(Sr.default,xr.default),t.push(Rr.default),t};var Hr={},Kr={};Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.dynamicAnchor=void 0;const Jr=$,Zr=U(),Yr=We,Qr=Ht,Xr={keyword:"$dynamicAnchor",schemaType:"string",code:e=>ei(e,e.schema)};function ei(e,t){const{gen:n,it:o}=e;o.schemaEnv.root.dynamicAnchors[t]=!0;const r=Jr._`${Zr.default.dynamicAnchors}${(0,Jr.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 Yr.SchemaEnv({schema:n,schemaId:l,root:r,baseId:i,localRefs:a,meta:s});return Yr.compileSchema.call(o,c),(0,Qr.getValidate)(e,c)}(e);n.if(Jr._`!${r}`,(()=>n.assign(r,i)))}Kr.dynamicAnchor=ei,Kr.default=Xr;var ti={};Object.defineProperty(ti,"__esModule",{value:!0}),ti.dynamicRef=void 0;const ni=$,oi=U(),ri=Ht,ii={keyword:"$dynamicRef",schemaType:"string",code:e=>ai(e,e.schema)};function ai(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",ni._`${oi.default.dynamicAnchors}${(0,ni.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,ri.callRef)(e,t),n.let(o,!0)})):()=>(0,ri.callRef)(e,t)}}ti.dynamicRef=ai,ti.default=ii;var si={};Object.defineProperty(si,"__esModule",{value:!0});const li=Kr,ci=P,ui={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,li.dynamicAnchor)(e,""):(0,ci.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};si.default=ui;var di={};Object.defineProperty(di,"__esModule",{value:!0});const pi=ti,fi={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,pi.dynamicRef)(e,e.schema)};di.default=fi,Object.defineProperty(Hr,"__esModule",{value:!0});const hi=ti,mi=si,vi=di,yi=[Kr.default,hi.default,mi.default,vi.default];Hr.default=yi;var wi={},gi={};Object.defineProperty(gi,"__esModule",{value:!0});const bi=Lo,$i={keyword:"dependentRequired",type:"object",schemaType:"object",error:bi.error,code:e=>(0,bi.validatePropertyDeps)(e)};gi.default=$i;var ki={};Object.defineProperty(ki,"__esModule",{value:!0});const ji=Lo,Pi={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,ji.validateSchemaDeps)(e)};ki.default=Pi;var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0});const Ai=P,zi={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:n}){void 0===t.contains&&(0,Ai.checkStrictMode)(n,`"${e}" without "contains" is ignored`)}};Ti.default=zi,Object.defineProperty(wi,"__esModule",{value:!0});const Ei=ki,_i=Ti,Ci=[gi.default,Ei.default,_i.default];wi.default=Ci;var Si={},Oi={};Object.defineProperty(Oi,"__esModule",{value:!0});const xi=$,Ii=P,Ri=U(),Ni={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:e})=>xi._`{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,Ii.alwaysValidSchema)(i,n)){const n=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:o,dataPropType:Ii.Type.Str},n),a||t.if((0,xi.not)(n),(()=>t.break()))}}s instanceof xi.Name?t.if(xi._`${s} !== true`,(()=>t.forIn("key",o,(e=>t.if(function(e,t){return xi._`!${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(xi._`${t} !== ${o}`);return(0,xi.and)(...n)}(s,e),(()=>l(e))))),i.props=!0,e.ok(xi._`${r} === ${Ri.default.errors}`)}};Oi.default=Ni;var Di={};Object.defineProperty(Di,"__esModule",{value:!0});const Mi=$,Fi=P,qi={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:e}})=>Mi.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Mi._`{limit: ${e}}`},code(e){const{gen:t,schema:n,data:o,it:r}=e,i=r.items||0;if(!0===i)return;const a=t.const("len",Mi._`${o}.length`);if(!1===n)e.setParams({len:i}),e.fail(Mi._`${a} > ${i}`);else if("object"==typeof n&&!(0,Fi.alwaysValidSchema)(r,n)){const n=t.var("valid",Mi._`${a} <= ${i}`);t.if((0,Mi.not)(n),(()=>function(n,o){t.forRange("i",o,a,(o=>{e.subschema({keyword:"unevaluatedItems",dataProp:o,dataPropType:Fi.Type.Num},n),r.allErrors||t.if((0,Mi.not)(n),(()=>t.break()))}))}(n,i))),e.ok(n)}r.items=!0}};Di.default=qi,Object.defineProperty(Si,"__esModule",{value:!0});const Ui=Di,Li=[Oi.default,Ui.default];Si.default=Li;var Bi={},Wi={};Object.defineProperty(Wi,"__esModule",{value:!0});const Vi=$,Gi={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>Vi.str`must match format "${e}"`,params:({schemaCode:e})=>Vi._`{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",Vi._`${r}[${a}]`),s=n.let("fType"),c=n.let("format");n.if(Vi._`typeof ${i} == "object" && !(${i} instanceof RegExp)`,(()=>n.assign(s,Vi._`${i}.type || "string"`).assign(c,Vi._`${i}.validate`)),(()=>n.assign(s,Vi._`"string"`).assign(c,i))),e.fail$data((0,Vi.or)(!1===l.strictSchema?Vi.nil:Vi._`${a} && !${c}`,function(){const e=u.$async?Vi._`(${i}.async ? await ${c}(${o}) : ${c}(${o}))`:Vi._`${c}(${o})`,n=Vi._`(typeof ${c} == "function" ? ${e} : ${c}.test(${o}))`;return Vi._`${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,Vi.regexpCode)(e):l.code.formats?Vi._`${l.code.formats}${(0,Vi.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,Vi._`${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 Vi._`await ${p}(${o})`}return"function"==typeof s?Vi._`${p}(${o})`:Vi._`${p}.test(${o})`}())}())}};Wi.default=Gi,Object.defineProperty(Bi,"__esModule",{value:!0});const Hi=[Wi.default];Bi.default=Hi;var Ki={};Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.contentVocabulary=Ki.metadataVocabulary=void 0,Ki.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Ki.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(Bt,"__esModule",{value:!0});const Ji=Wt,Zi=an,Yi=yo,Qi=wi,Xi=Si,ea=Bi,ta=Ki,na=[Hr.default,Ji.default,Zi.default,(0,Yi.default)(!0),ea.default,ta.metadataVocabulary,ta.contentVocabulary,Qi.default,Xi.default];Bt.default=na;var oa,ra={},ia={};Object.defineProperty(ia,"__esModule",{value:!0}),ia.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(oa||(ia.DiscrError=oa={})),Object.defineProperty(ra,"__esModule",{value:!0});const aa=$,sa=ia,la=We,ca=Be(),ua=P,da={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===sa.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>aa._`{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",aa._`${n}${(0,aa.getProperty)(s)}`);function u(n){const o=t.name("valid"),r=e.subschema({keyword:"oneOf",schemaProp:n},o);return e.mergeEvaluated(r,aa.Name),o}t.if(aa._`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,ua.schemaHasRulesButRef)(r,i.self.RULES)){const e=r.$ref;if(r=la.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,e),r instanceof la.SchemaEnv&&(r=r.schema),void 0===r)throw new ca.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(aa._`${c} === ${e}`),t.assign(l,u(n[e]));t.else(),e.error(!1,{discrError:sa.DiscrError.Mapping,tag:c,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:sa.DiscrError.Tag,tag:c,tagName:s}))),e.ok(l)}};ra.default=da;var pa={},fa={$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}}},ha={$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"}}}},ma={$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"}}},va={$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"}}},ya={$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"}}},wa={$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"}}},ga={$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}}},ba={$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(pa,"__esModule",{value:!0});const $a=fa,ka=ha,ja=ma,Pa=va,Ta=ya,Aa=wa,za=ga,Ea=ba,_a=["/properties"];pa.default=function(e){return[$a,ka,ja,Pa,Ta,t(this,Aa),za,t(this,Ea)].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=y,o=Bt,r=ra,i=pa,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=De();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var c=$;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var u=qe();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return u.default}});var d=Be();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return d.default}})}(v,v.exports);var Ca=m(v.exports),Sa={exports:{}},Oa={};!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/}(Oa);var xa={},Ia={exports:{}},Ra={};Object.defineProperty(Ra,"__esModule",{value:!0});const Na=an,Da=yo,Ma=Bi,Fa=Ki,qa=[Wt.default,Na.default,(0,Da.default)(),Ma.default,Fa.metadataVocabulary,Fa.contentVocabulary];Ra.default=qa;var Ua={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=y,o=Ra,r=ra,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=De();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var u=$;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var d=qe();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var p=Be();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})}(Ia,Ia.exports);var La=Ia.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)}(xa),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=Oa,o=xa,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}(Sa,Sa.exports);var Ba=m(Sa.exports),Wa=new Ca({schemas:[{$id:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json",$schema:"https://json-schema.org/draft/2020-12/schema",description:"Serverless Workflow DSL - Workflow Schema.",type:"object",required:["document","do"],properties:{document:{type:"object",title:"Document",description:"Documents the workflow.",unevaluatedProperties:!1,properties:{dsl:{type:"string",pattern:"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",title:"WorkflowDSL",description:"The version of the DSL used by the workflow."},namespace:{type:"string",pattern:"^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",title:"WorkflowNamespace",description:"The workflow's namespace."},name:{type:"string",pattern:"^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$",title:"WorkflowName",description:"The workflow's name."},version:{type:"string",pattern:"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",title:"WorkflowVersion",description:"The workflow's semantic version."},title:{type:"string",title:"WorkflowTitle",description:"The workflow's title."},summary:{type:"string",title:"WorkflowSummary",description:"The workflow's Markdown summary."},tags:{type:"object",title:"WorkflowTags",description:"A key/value mapping of the workflow's tags, if any.",additionalProperties:!0},metadata:{type:"object",title:"WorkflowMetadata",description:"Holds additional information about the workflow.",additionalProperties:!0}},required:["dsl","namespace","name","version"]},input:{$ref:"#/$defs/input",title:"Input",description:"Configures the workflow's input."},use:{type:"object",title:"Use",description:"Defines the workflow's reusable components.",unevaluatedProperties:!1,properties:{authentications:{type:"object",title:"UseAuthentications",description:"The workflow's reusable authentication policies.",additionalProperties:{$ref:"#/$defs/authenticationPolicy"}},errors:{type:"object",title:"UseErrors",description:"The workflow's reusable errors.",additionalProperties:{$ref:"#/$defs/error"}},extensions:{type:"array",title:"UseExtensions",description:"The workflow's extensions.",items:{type:"object",title:"ExtensionItem",minProperties:1,maxProperties:1,additionalProperties:{$ref:"#/$defs/extension"}}},functions:{type:"object",title:"UseFunctions",description:"The workflow's reusable functions.",additionalProperties:{$ref:"#/$defs/task"}},retries:{type:"object",title:"UseRetries",description:"The workflow's reusable retry policies.",additionalProperties:{$ref:"#/$defs/retryPolicy"}},secrets:{type:"array",title:"UseSecrets",description:"The workflow's reusable secrets.",items:{type:"string",description:"The workflow's secrets."}},timeouts:{type:"object",title:"UseTimeouts",description:"The workflow's reusable timeouts.",additionalProperties:{$ref:"#/$defs/timeout"}},catalogs:{type:"object",title:"UseCatalogs",description:"The workflow's reusable catalogs.",additionalProperties:{$ref:"#/$defs/catalog"}}}},do:{$ref:"#/$defs/taskList",title:"Do",description:"Defines the task(s) the workflow must perform."},timeout:{oneOf:[{$ref:"#/$defs/timeout",title:"TimeoutDefinition",description:"The workflow's timeout configuration, if any."},{type:"string",title:"TimeoutReference",description:"The name of the workflow's timeout, if any."}]},output:{$ref:"#/$defs/output",title:"Output",description:"Configures the workflow's output."},schedule:{type:"object",title:"Schedule",description:"Schedules the workflow.",unevaluatedProperties:!1,properties:{every:{$ref:"#/$defs/duration",title:"ScheduleEvery",description:"Specifies the duration of the interval at which the workflow should be executed."},cron:{type:"string",title:"ScheduleCron",description:"Specifies the schedule using a cron expression, e.g., '0 0 * * *' for daily at midnight."},after:{$ref:"#/$defs/duration",title:"ScheduleAfter",description:"Specifies a delay duration that the workflow must wait before starting again after it completes."},on:{$ref:"#/$defs/eventConsumptionStrategy",title:"ScheduleOn",description:"Specifies the events that trigger the workflow execution."}}}},$defs:{taskList:{title:"TaskList",description:"List of named tasks to perform.",type:"array",items:{type:"object",title:"TaskItem",minProperties:1,maxProperties:1,additionalProperties:{$ref:"#/$defs/task"}}},taskBase:{type:"object",title:"TaskBase",description:"An object inherited by all tasks.",properties:{if:{type:"string",title:"TaskBaseIf",description:"A runtime expression, if any, used to determine whether or not the task should be run."},input:{$ref:"#/$defs/input",title:"TaskBaseInput",description:"Configure the task's input."},output:{$ref:"#/$defs/output",title:"TaskBaseOutput",description:"Configure the task's output."},export:{$ref:"#/$defs/export",title:"TaskBaseExport",description:"Export task output to context."},timeout:{oneOf:[{$ref:"#/$defs/timeout",title:"TaskTimeoutDefinition",description:"The task's timeout configuration, if any."},{type:"string",title:"TaskTimeoutReference",description:"The name of the task's timeout, if any."}]},then:{$ref:"#/$defs/flowDirective",title:"TaskBaseThen",description:"The flow directive to be performed upon completion of the task."},metadata:{type:"object",title:"TaskMetadata",description:"Holds additional information about the task.",additionalProperties:!0}}},task:{title:"Task",description:"A discrete unit of work that contributes to achieving the overall objectives defined by the workflow.",unevaluatedProperties:!1,oneOf:[{$ref:"#/$defs/callTask"},{$ref:"#/$defs/doTask"},{$ref:"#/$defs/forkTask"},{$ref:"#/$defs/emitTask"},{$ref:"#/$defs/forTask"},{$ref:"#/$defs/listenTask"},{$ref:"#/$defs/raiseTask"},{$ref:"#/$defs/runTask"},{$ref:"#/$defs/setTask"},{$ref:"#/$defs/switchTask"},{$ref:"#/$defs/tryTask"},{$ref:"#/$defs/waitTask"}]},callTask:{title:"CallTask",description:"Defines the call to perform.",oneOf:[{title:"CallAsyncAPI",description:"Defines the AsyncAPI call to perform.",$ref:"#/$defs/taskBase",type:"object",required:["call","with"],unevaluatedProperties:!1,properties:{call:{type:"string",const:"asyncapi"},with:{type:"object",title:"AsyncApiArguments",description:"The Async API call arguments.",properties:{document:{$ref:"#/$defs/externalResource",title:"WithAsyncAPIDocument",description:"The document that defines the AsyncAPI operation to call."},operationRef:{type:"string",title:"WithAsyncAPIOperation",description:"A reference to the AsyncAPI operation to call."},server:{type:"string",title:"WithAsyncAPIServer",description:"A a reference to the server to call the specified AsyncAPI operation on. If not set, default to the first server matching the operation's channel."},message:{type:"string",title:"WithAsyncAPIMessage",description:"The name of the message to use. If not set, defaults to the first message defined by the operation."},binding:{type:"string",title:"WithAsyncAPIBinding",description:"The name of the binding to use. If not set, defaults to the first binding defined by the operation."},payload:{type:"object",title:"WithAsyncAPIPayload",description:"The payload to call the AsyncAPI operation with, if any."},authentication:{$ref:"#/$defs/referenceableAuthenticationPolicy",title:"WithAsyncAPIAuthentication",description:"The authentication policy, if any, to use when calling the AsyncAPI operation."}},required:["document","operationRef"],unevaluatedProperties:!1}}},{title:"CallGRPC",description:"Defines the GRPC call to perform.",$ref:"#/$defs/taskBase",type:"object",unevaluatedProperties:!1,required:["call","with"],properties:{call:{type:"string",const:"grpc"},with:{type:"object",title:"GRPCArguments",description:"The GRPC call arguments.",properties:{proto:{$ref:"#/$defs/externalResource",title:"WithGRPCProto",description:"The proto resource that describes the GRPC service to call."},service:{type:"object",title:"WithGRPCService",unevaluatedProperties:!1,properties:{name:{type:"string",title:"WithGRPCServiceName",description:"The name of the GRPC service to call."},host:{type:"string",title:"WithGRPCServiceHost",description:"The hostname of the GRPC service to call.",pattern:"^[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$"},port:{type:"integer",title:"WithGRPCServicePost",description:"The port number of the GRPC service to call.",minimum:0,maximum:65535},authentication:{$ref:"#/$defs/referenceableAuthenticationPolicy",title:"WithGRPCServiceAuthentication",description:"The endpoint's authentication policy, if any."}},required:["name","host"]},method:{type:"string",title:"WithGRPCMethod",description:"The name of the method to call on the defined GRPC service."},arguments:{type:"object",title:"WithGRPCArguments",description:"The arguments, if any, to call the method with.",additionalProperties:!0}},required:["proto","service","method"],unevaluatedProperties:!1}}},{title:"CallHTTP",description:"Defines the HTTP call to perform.",$ref:"#/$defs/taskBase",type:"object",unevaluatedProperties:!1,required:["call","with"],properties:{call:{type:"string",const:"http"},with:{type:"object",title:"HTTPArguments",description:"The HTTP call arguments.",properties:{method:{type:"string",title:"WithHTTPMethod",description:"The HTTP method of the HTTP request to perform."},endpoint:{title:"WithHTTPEndpoint",description:"The HTTP endpoint to send the request to.",$ref:"#/$defs/endpoint"},headers:{type:"object",title:"WithHTTPHeaders",description:"A name/value mapping of the headers, if any, of the HTTP request to perform."},body:{title:"WithHTTPBody",description:"The body, if any, of the HTTP request to perform."},query:{type:"object",title:"WithHTTPQuery",description:"A name/value mapping of the query parameters, if any, of the HTTP request to perform.",additionalProperties:!0},output:{type:"string",title:"WithHTTPOutput",description:"The http call output format. Defaults to 'content'.",enum:["raw","content","response"]}},required:["method","endpoint"],unevaluatedProperties:!1}}},{title:"CallOpenAPI",description:"Defines the OpenAPI call to perform.",$ref:"#/$defs/taskBase",type:"object",unevaluatedProperties:!1,required:["call","with"],properties:{call:{type:"string",const:"openapi"},with:{type:"object",title:"OpenAPIArguments",description:"The OpenAPI call arguments.",properties:{document:{$ref:"#/$defs/externalResource",title:"WithOpenAPIDocument",description:"The document that defines the OpenAPI operation to call."},operationId:{type:"string",title:"WithOpenAPIOperation",description:"The id of the OpenAPI operation to call."},parameters:{type:"object",title:"WithOpenAPIParameters",description:"A name/value mapping of the parameters of the OpenAPI operation to call.",additionalProperties:!0},authentication:{$ref:"#/$defs/referenceableAuthenticationPolicy",title:"WithOpenAPIAuthentication",description:"The authentication policy, if any, to use when calling the OpenAPI operation."},output:{type:"string",enum:["raw","content","response"],title:"WithOpenAPIOutput",description:"The http call output format. Defaults to 'content'."}},required:["document","operationId"],unevaluatedProperties:!1}}},{title:"CallFunction",description:"Defines the function call to perform.",$ref:"#/$defs/taskBase",type:"object",unevaluatedProperties:!1,required:["call"],properties:{call:{type:"string",not:{enum:["asyncapi","grpc","http","openapi"]},description:"The name of the function to call."},with:{type:"object",title:"FunctionArguments",description:"A name/value mapping of the parameters, if any, to call the function with.",additionalProperties:!0}}}]},forkTask:{type:"object",$ref:"#/$defs/taskBase",title:"ForkTask",description:"Allows workflows to execute multiple tasks concurrently and optionally race them against each other, with a single possible winner, which sets the task's output.",unevaluatedProperties:!1,required:["fork"],properties:{fork:{type:"object",title:"ForkTaskConfiguration",description:"The configuration of the branches to perform concurrently.",unevaluatedProperties:!1,required:["branches"],properties:{branches:{$ref:"#/$defs/taskList",title:"ForkBranches"},compete:{type:"boolean",title:"ForkCompete",description:"Indicates whether or not the concurrent tasks are racing against each other, with a single possible winner, which sets the composite task's output.",default:!1}}}}},doTask:{type:"object",$ref:"#/$defs/taskBase",title:"DoTask",description:"Allows to execute a list of tasks in sequence.",unevaluatedProperties:!1,required:["do"],properties:{do:{$ref:"#/$defs/taskList",title:"DoTaskConfiguration",description:"The configuration of the tasks to perform sequentially."}}},emitTask:{type:"object",$ref:"#/$defs/taskBase",title:"EmitTask",description:"Allows workflows to publish events to event brokers or messaging systems, facilitating communication and coordination between different components and services.",required:["emit"],unevaluatedProperties:!1,properties:{emit:{type:"object",title:"EmitTaskConfiguration",description:"The configuration of an event's emission.",unevaluatedProperties:!1,properties:{event:{type:"object",title:"EmitEventDefinition",description:"The definition of the event to emit.",properties:{with:{$ref:"#/$defs/eventProperties",title:"EmitEventWith",description:"Defines the properties of event to emit.",required:["source","type"]}},additionalProperties:!0}},required:["event"]}}},forTask:{type:"object",$ref:"#/$defs/taskBase",title:"ForTask",description:"Allows workflows to iterate over a collection of items, executing a defined set of subtasks for each item in the collection. This task type is instrumental in handling scenarios such as batch processing, data transformation, and repetitive operations across datasets.",required:["for","do"],unevaluatedProperties:!1,properties:{for:{type:"object",title:"ForTaskConfiguration",description:"The definition of the loop that iterates over a range of values.",unevaluatedProperties:!1,properties:{each:{type:"string",title:"ForEach",description:"The name of the variable used to store the current item being enumerated.",default:"item"},in:{type:"string",title:"ForIn",description:"A runtime expression used to get the collection to enumerate."},at:{type:"string",title:"ForAt",description:"The name of the variable used to store the index of the current item being enumerated.",default:"index"}},required:["in"]},while:{type:"string",title:"While",description:"A runtime expression that represents the condition, if any, that must be met for the iteration to continue."},do:{$ref:"#/$defs/taskList",title:"ForTaskDo"}}},listenTask:{type:"object",$ref:"#/$defs/taskBase",title:"ListenTask",description:"Provides a mechanism for workflows to await and react to external events, enabling event-driven behavior within workflow systems.",required:["listen"],unevaluatedProperties:!1,properties:{listen:{type:"object",title:"ListenTaskConfiguration",description:"The configuration of the listener to use.",unevaluatedProperties:!1,properties:{to:{$ref:"#/$defs/eventConsumptionStrategy",title:"ListenTo",description:"Defines the event(s) to listen to."}},required:["to"]}}},raiseTask:{type:"object",$ref:"#/$defs/taskBase",title:"RaiseTask",description:"Intentionally triggers and propagates errors.",required:["raise"],unevaluatedProperties:!1,properties:{raise:{type:"object",title:"RaiseTaskConfiguration",description:"The definition of the error to raise.",unevaluatedProperties:!1,properties:{error:{oneOf:[{$ref:"#/$defs/error",title:"RaiseErrorDefinition",description:"Defines the error to raise."},{type:"string",title:"RaiseErrorReference",description:"The name of the error to raise"}]}},required:["error"]}}},runTask:{type:"object",$ref:"#/$defs/taskBase",title:"RunTask",description:"Provides the capability to execute external containers, shell commands, scripts, or workflows.",required:["run"],unevaluatedProperties:!1,properties:{run:{type:"object",title:"RunTaskConfiguration",description:"The configuration of the process to execute.",unevaluatedProperties:!1,properties:{await:{type:"boolean",default:!0,title:"AwaitProcessCompletion",description:"Whether to await the process completion before continuing."}},oneOf:[{title:"RunContainer",description:"Enables the execution of external processes encapsulated within a containerized environment.",properties:{container:{type:"object",title:"Container",description:"The configuration of the container to run.",unevaluatedProperties:!1,properties:{image:{type:"string",title:"ContainerImage",description:"The name of the container image to run."},command:{type:"string",title:"ContainerCommand",description:"The command, if any, to execute on the container."},ports:{type:"object",title:"ContainerPorts",description:"The container's port mappings, if any."},volumes:{type:"object",title:"ContainerVolumes",description:"The container's volume mappings, if any."},environment:{type:"object",title:"ContainerEnvironment",description:"A key/value mapping of the environment variables, if any, to use when running the configured process."}},required:["image"]}},required:["container"]},{title:"RunScript",description:"Enables the execution of custom scripts or code within a workflow, empowering workflows to perform specialized logic, data processing, or integration tasks by executing user-defined scripts written in various programming languages.",properties:{script:{type:"object",title:"Script",description:"The configuration of the script to run.",unevaluatedProperties:!1,properties:{language:{type:"string",title:"ScriptLanguage",description:"The language of the script to run."},arguments:{type:"object",title:"ScriptArguments",description:"A key/value mapping of the arguments, if any, to use when running the configured script.",additionalProperties:!0},environment:{type:"object",title:"ScriptEnvironment",description:"A key/value mapping of the environment variables, if any, to use when running the configured script process.",additionalProperties:!0}},oneOf:[{title:"InlineScript",type:"object",description:"The script's code.",properties:{code:{type:"string",title:"InlineScriptCode"}},required:["code"]},{title:"ExternalScript",type:"object",description:"The script's resource.",properties:{source:{$ref:"#/$defs/externalResource",title:"ExternalScriptResource"}},required:["source"]}],required:["language"]}},required:["script"]},{title:"RunShell",description:"Enables the execution of shell commands within a workflow, enabling workflows to interact with the underlying operating system and perform system-level operations, such as file manipulation, environment configuration, or system administration tasks.",properties:{shell:{type:"object",title:"Shell",description:"The configuration of the shell command to run.",unevaluatedProperties:!1,properties:{command:{type:"string",title:"ShellCommand",description:"The shell command to run."},arguments:{type:"object",title:"ShellArguments",description:"A list of the arguments of the shell command to run.",additionalProperties:!0},environment:{type:"object",title:"ShellEnvironment",description:"A key/value mapping of the environment variables, if any, to use when running the configured process.",additionalProperties:!0}},required:["command"]}},required:["shell"]},{title:"RunWorkflow",description:"Enables the invocation and execution of nested workflows within a parent workflow, facilitating modularization, reusability, and abstraction of complex logic or business processes by encapsulating them into standalone workflow units.",properties:{workflow:{type:"object",title:"SubflowConfiguration",description:"The configuration of the workflow to run.",unevaluatedProperties:!1,properties:{namespace:{type:"string",title:"SubflowNamespace",description:"The namespace the workflow to run belongs to."},name:{type:"string",title:"SubflowName",description:"The name of the workflow to run."},version:{type:"string",default:"latest",title:"SubflowVersion",description:"The version of the workflow to run. Defaults to latest."},input:{type:"object",title:"SubflowInput",description:"The data, if any, to pass as input to the workflow to execute. The value should be validated against the target workflow's input schema, if specified.",additionalProperties:!0}},required:["namespace","name","version"]}},required:["workflow"]}]}}},setTask:{type:"object",$ref:"#/$defs/taskBase",title:"SetTask",description:"A task used to set data.",required:["set"],unevaluatedProperties:!1,properties:{set:{type:"object",title:"SetTaskConfiguration",description:"The data to set.",minProperties:1,additionalProperties:!0}}},switchTask:{type:"object",$ref:"#/$defs/taskBase",title:"SwitchTask",description:"Enables conditional branching within workflows, allowing them to dynamically select different paths based on specified conditions or criteria.",required:["switch"],unevaluatedProperties:!1,properties:{switch:{type:"array",title:"SwitchTaskConfiguration",description:"The definition of the switch to use.",minItems:1,items:{type:"object",title:"SwitchItem",minProperties:1,maxProperties:1,additionalProperties:{type:"object",title:"SwitchCase",description:"The definition of a case within a switch task, defining a condition and corresponding tasks to execute if the condition is met.",unevaluatedProperties:!1,required:["then"],properties:{when:{type:"string",title:"SwitchCaseCondition",description:"A runtime expression used to determine whether or not the case matches."},then:{$ref:"#/$defs/flowDirective",title:"SwitchCaseOutcome",description:"The flow directive to execute when the case matches."}}}}}}},tryTask:{type:"object",$ref:"#/$defs/taskBase",title:"TryTask",description:"Serves as a mechanism within workflows to handle errors gracefully, potentially retrying failed tasks before proceeding with alternate ones.",required:["try","catch"],unevaluatedProperties:!1,properties:{try:{$ref:"#/$defs/taskList",title:"TryTaskConfiguration",description:"The task(s) to perform."},catch:{type:"object",title:"TryTaskCatch",description:"The object used to define the errors to catch.",unevaluatedProperties:!1,properties:{errors:{type:"object",title:"CatchErrors",description:"The configuration of a concept used to catch errors."},as:{type:"string",title:"CatchAs",description:"The name of the runtime expression variable to save the error as. Defaults to 'error'."},when:{type:"string",title:"CatchWhen",description:"A runtime expression used to determine whether or not to catch the filtered error."},exceptWhen:{type:"string",title:"CatchExceptWhen",description:"A runtime expression used to determine whether or not to catch the filtered error."},retry:{oneOf:[{$ref:"#/$defs/retryPolicy",title:"RetryPolicyDefinition",description:"The retry policy to use, if any, when catching errors."},{type:"string",title:"RetryPolicyReference",description:"The name of the retry policy to use, if any, when catching errors."}]},do:{$ref:"#/$defs/taskList",title:"TryTaskCatchDo",description:"The definition of the task(s) to run when catching an error."}}}}},waitTask:{type:"object",$ref:"#/$defs/taskBase",title:"WaitTask",description:"Allows workflows to pause or delay their execution for a specified period of time.",required:["wait"],unevaluatedProperties:!1,properties:{wait:{$ref:"#/$defs/duration",title:"WaitTaskConfiguration",description:"The amount of time to wait."}}},flowDirective:{title:"FlowDirective",description:"Represents different transition options for a workflow.",anyOf:[{type:"string",enum:["continue","exit","end"],default:"continue"},{type:"string"}]},referenceableAuthenticationPolicy:{type:"object",title:"ReferenceableAuthenticationPolicy",description:"Represents a referenceable authentication policy.",unevaluatedProperties:!1,oneOf:[{title:"AuthenticationPolicyReference",description:"The reference of the authentication policy to use.",properties:{use:{type:"string",minLength:1,title:"ReferenceableAuthenticationPolicyName",description:"The name of the authentication policy to use."}},required:["use"]},{$ref:"#/$defs/authenticationPolicy"}]},secretBasedAuthenticationPolicy:{type:"object",title:"SecretBasedAuthenticationPolicy",description:"Represents an authentication policy based on secrets.",unevaluatedProperties:!1,properties:{use:{type:"string",minLength:1,title:"SecretBasedAuthenticationPolicyName",description:"The name of the authentication policy to use."}},required:["use"]},authenticationPolicy:{type:"object",title:"AuthenticationPolicy",description:"Defines an authentication policy.",oneOf:[{title:"BasicAuthenticationPolicy",description:"Use basic authentication.",properties:{basic:{type:"object",title:"BasicAuthenticationPolicyConfiguration",description:"The configuration of the basic authentication policy.",unevaluatedProperties:!1,oneOf:[{title:"BasicAuthenticationProperties",description:"Inline configuration of the basic authentication policy.",properties:{username:{type:"string",description:"The username to use."},password:{type:"string",description:"The password to use."}},required:["username","password"]},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"BasicAuthenticationPolicySecret",description:"Secret based configuration of the basic authentication policy."}]}},required:["basic"]},{title:"BearerAuthenticationPolicy",description:"Use bearer authentication.",properties:{bearer:{type:"object",title:"BearerAuthenticationPolicyConfiguration",description:"The configuration of the bearer authentication policy.",unevaluatedProperties:!1,oneOf:[{title:"BearerAuthenticationProperties",description:"Inline configuration of the bearer authentication policy.",properties:{token:{type:"string",description:"The bearer token to use."}},required:["token"]},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"BearerAuthenticationPolicySecret",description:"Secret based configuration of the bearer authentication policy."}]}},required:["bearer"]},{title:"DigestAuthenticationPolicy",description:"Use digest authentication.",properties:{digest:{type:"object",title:"DigestAuthenticationPolicyConfiguration",description:"The configuration of the digest authentication policy.",unevaluatedProperties:!1,oneOf:[{title:"DigestAuthenticationProperties",description:"Inline configuration of the digest authentication policy.",properties:{username:{type:"string",description:"The username to use."},password:{type:"string",description:"The password to use."}},required:["username","password"]},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"DigestAuthenticationPolicySecret",description:"Secret based configuration of the digest authentication policy."}]}},required:["digest"]},{title:"OAuth2AuthenticationPolicy",description:"Use OAuth2 authentication.",properties:{oauth2:{type:"object",title:"OAuth2AuthenticationPolicyConfiguration",description:"The configuration of the OAuth2 authentication policy.",unevaluatedProperties:!1,oneOf:[{type:"object",title:"OAuth2ConnectAuthenticationProperties",description:"The inline configuration of the OAuth2 authentication policy.",unevaluatedProperties:!1,allOf:[{$ref:"#/$defs/oauth2AuthenticationProperties"},{type:"object",properties:{endpoints:{type:"object",title:"OAuth2AuthenticationPropertiesEndpoints",description:"The endpoint configurations for OAuth2.",properties:{token:{type:"string",format:"uri-template",default:"/oauth2/token",title:"OAuth2TokenEndpoint",description:"The relative path to the token endpoint. Defaults to `/oauth2/token`."},revocation:{type:"string",format:"uri-template",default:"/oauth2/revoke",title:"OAuth2RevocationEndpoint",description:"The relative path to the revocation endpoint. Defaults to `/oauth2/revoke`."},introspection:{type:"string",format:"uri-template",default:"/oauth2/introspect",title:"OAuth2IntrospectionEndpoint",description:"The relative path to the introspection endpoint. Defaults to `/oauth2/introspect`."}}}}}]},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"OAuth2AuthenticationPolicySecret",description:"Secret based configuration of the OAuth2 authentication policy."}]}},required:["oauth2"]},{title:"OpenIdConnectAuthenticationPolicy",description:"Use OpenIdConnect authentication.",properties:{oidc:{type:"object",title:"OpenIdConnectAuthenticationPolicyConfiguration",description:"The configuration of the OpenIdConnect authentication policy.",unevaluatedProperties:!1,oneOf:[{$ref:"#/$defs/oauth2AuthenticationProperties",title:"OpenIdConnectAuthenticationProperties",description:"The inline configuration of the OpenIdConnect authentication policy.",unevaluatedProperties:!1},{$ref:"#/$defs/secretBasedAuthenticationPolicy",title:"OpenIdConnectAuthenticationPolicySecret",description:"Secret based configuration of the OpenIdConnect authentication policy."}]}},required:["oidc"]}]},oauth2AuthenticationProperties:{type:"object",title:"OAuth2AutenthicationData",description:"Inline configuration of the OAuth2 authentication policy.",properties:{authority:{$ref:"#/$defs/uriTemplate",title:"OAuth2AutenthicationDataAuthority",description:"The URI that references the OAuth2 authority to use."},grant:{type:"string",enum:["authorization_code","client_credentials","password","refresh_token","urn:ietf:params:oauth:grant-type:token-exchange"],title:"OAuth2AutenthicationDataGrant",description:"The grant type to use."},client:{type:"object",title:"OAuth2AutenthicationDataClient",description:"The definition of an OAuth2 client.",unevaluatedProperties:!1,properties:{id:{type:"string",title:"ClientId",description:"The client id to use."},secret:{type:"string",title:"ClientSecret",description:"The client secret to use, if any."},assertion:{type:"string",title:"ClientAssertion",description:"A JWT containing a signed assertion with your application credentials."},authentication:{type:"string",enum:["client_secret_basic","client_secret_post","client_secret_jwt","private_key_jwt","none"],default:"client_secret_post",title:"ClientAuthentication",description:"The authentication method to use to authenticate the client."}}},request:{type:"object",title:"OAuth2TokenRequest",description:"The configuration of an OAuth2 token request",properties:{encoding:{type:"string",enum:["application/x-www-form-urlencoded","application/json"],default:"application/x-www-form-urlencoded",title:"Oauth2TokenRequestEncoding"}}},issuers:{type:"array",title:"OAuth2Issuers",description:"A list that contains that contains valid issuers that will be used to check against the issuer of generated tokens.",items:{type:"string"}},scopes:{type:"array",title:"OAuth2AutenthicationDataScopes",description:"The scopes, if any, to request the token for.",items:{type:"string"}},audiences:{type:"array",title:"OAuth2AutenthicationDataAudiences",description:"The audiences, if any, to request the token for.",items:{type:"string"}},username:{type:"string",title:"OAuth2AutenthicationDataUsername",description:"The username to use. Used only if the grant type is Password."},password:{type:"string",title:"OAuth2AutenthicationDataPassword",description:"The password to use. Used only if the grant type is Password."},subject:{$ref:"#/$defs/oauth2Token",title:"OAuth2AutenthicationDataSubject",description:"The security token that represents the identity of the party on behalf of whom the request is being made."},actor:{$ref:"#/$defs/oauth2Token",title:"OAuth2AutenthicationDataActor",description:"The security token that represents the identity of the acting party."}}},oauth2Token:{type:"object",title:"OAuth2TokenDefinition",description:"Represents an OAuth2 token.",unevaluatedProperties:!1,properties:{token:{type:"string",title:"OAuth2Token",description:"The security token to use."},type:{type:"string",title:"OAuth2TokenType",description:"The type of the security token to use."}},required:["token","type"]},duration:{oneOf:[{type:"object",minProperties:1,unevaluatedProperties:!1,properties:{days:{type:"integer",title:"DurationDays",description:"Number of days, if any."},hours:{type:"integer",title:"DurationHours",description:"Number of days, if any."},minutes:{type:"integer",title:"DurationMinutes",description:"Number of minutes, if any."},seconds:{type:"integer",title:"DurationSeconds",description:"Number of seconds, if any."},milliseconds:{type:"integer",title:"DurationMilliseconds",description:"Number of milliseconds, if any."}},title:"DurationInline",description:"The inline definition of a duration."},{type:"string",pattern:"^P(?!$)(\\d+(?:\\.\\d+)?Y)?(\\d+(?:\\.\\d+)?M)?(\\d+(?:\\.\\d+)?W)?(\\d+(?:\\.\\d+)?D)?(T(?=\\d)(\\d+(?:\\.\\d+)?H)?(\\d+(?:\\.\\d+)?M)?(\\d+(?:\\.\\d+)?S)?)?$",title:"DurationExpression",description:"The ISO 8601 expression of a duration."}]},error:{type:"object",title:"Error",description:"Represents an error.",unevaluatedProperties:!1,properties:{type:{title:"ErrorType",description:"A URI reference that identifies the error type.",oneOf:[{title:"LiteralErrorType",$ref:"#/$defs/uriTemplate",description:"The literal error type."},{title:"ExpressionErrorType",$ref:"#/$defs/runtimeExpression",description:"An expression based error type."}]},status:{type:"integer",title:"ErrorStatus",description:"The status code generated by the origin for this occurrence of the error."},instance:{title:"ErrorInstance",description:"A JSON Pointer used to reference the component the error originates from.",oneOf:[{title:"LiteralErrorInstance",description:"The literal error instance.",type:"string",format:"json-pointer"},{$ref:"#/$defs/runtimeExpression",title:"ExpressionErrorInstance",description:"An expression based error instance."}]},title:{type:"string",title:"ErrorTitle",description:"A short, human-readable summary of the error."},detail:{type:"string",title:"ErrorDetails",description:"A human-readable explanation specific to this occurrence of the error."}},required:["type","status"]},uriTemplate:{title:"UriTemplate",anyOf:[{title:"LiteralUriTemplate",type:"string",format:"uri-template",pattern:"^[A-Za-z][A-Za-z0-9+\\-.]*://.*"},{title:"LiteralUri",type:"string",format:"uri",pattern:"^[A-Za-z][A-Za-z0-9+\\-.]*://.*"}]},endpoint:{title:"Endpoint",description:"Represents an endpoint.",oneOf:[{$ref:"#/$defs/runtimeExpression"},{$ref:"#/$defs/uriTemplate"},{title:"EndpointConfiguration",type:"object",unevaluatedProperties:!1,properties:{uri:{title:"EndpointUri",description:"The endpoint's URI.",oneOf:[{title:"LiteralEndpointURI",description:"The literal endpoint's URI.",$ref:"#/$defs/uriTemplate"},{title:"ExpressionEndpointURI",$ref:"#/$defs/runtimeExpression",description:"An expression based endpoint's URI."}]},authentication:{$ref:"#/$defs/referenceableAuthenticationPolicy",title:"EndpointAuthentication",description:"The authentication policy to use."}},required:["uri"]}]},eventProperties:{type:"object",title:"EventProperties",description:"Describes the properties of an event.",properties:{id:{type:"string",title:"EventId",description:"The event's unique identifier."},source:{title:"EventSource",description:"Identifies the context in which an event happened.",oneOf:[{$ref:"#/$defs/uriTemplate"},{$ref:"#/$defs/runtimeExpression"}]},type:{type:"string",title:"EventType",description:"This attribute contains a value describing the type of event related to the originating occurrence."},time:{title:"EventTime",description:"When the event occured.",oneOf:[{title:"LiteralTime",type:"string",format:"date-time"},{$ref:"#/$defs/runtimeExpression"}]},subject:{type:"string",title:"EventSubject",description:"The subject of the event."},datacontenttype:{type:"string",title:"EventDataContentType",description:"Content type of data value. This attribute enables data to carry any type of content, whereby format and encoding might differ from that of the chosen event format."},dataschema:{title:"EventDataschema",description:"The schema describing the event format.",oneOf:[{title:"LiteralDataSchema",$ref:"#/$defs/uriTemplate",description:"The literal event data schema."},{title:"ExpressionDataSchema",$ref:"#/$defs/runtimeExpression",description:"An expression based event data schema."}]}},additionalProperties:!0},eventConsumptionStrategy:{type:"object",title:"EventConsumptionStrategy",description:"Describe the event consumption strategy to adopt.",unevaluatedProperties:!1,oneOf:[{title:"AllEventConsumptionStrategy",properties:{all:{type:"array",title:"AllEventConsumptionStrategyConfiguration",description:"A list containing all the events that must be consumed.",items:{$ref:"#/$defs/eventFilter"}}},required:["all"]},{title:"AnyEventConsumptionStrategy",properties:{any:{type:"array",title:"AnyEventConsumptionStrategyConfiguration",description:"A list containing any of the events to consume.",items:{$ref:"#/$defs/eventFilter"}}},required:["any"]},{title:"OneEventConsumptionStrategy",properties:{one:{$ref:"#/$defs/eventFilter",title:"OneEventConsumptionStrategyConfiguration",description:"The single event to consume."}},required:["one"]}]},eventFilter:{type:"object",title:"EventFilter",description:"An event filter is a mechanism used to selectively process or handle events based on predefined criteria, such as event type, source, or specific attributes.",unevaluatedProperties:!1,properties:{with:{$ref:"#/$defs/eventProperties",minProperties:1,title:"WithEvent",description:"An event filter is a mechanism used to selectively process or handle events based on predefined criteria, such as event type, source, or specific attributes."},correlate:{type:"object",title:"EventFilterCorrelate",description:"A correlation is a link between events and data, established by mapping event attributes to specific data attributes, allowing for coordinated processing or handling based on event characteristics.",additionalProperties:{type:"object",properties:{from:{type:"string",title:"CorrelateFrom",description:"A runtime expression used to extract the correlation value from the filtered event."},expect:{type:"string",title:"CorrelateExpect",description:"A constant or a runtime expression, if any, used to determine whether or not the extracted correlation value matches expectations. If not set, the first extracted value will be used as the correlation's expectation."}},required:["from"]}}},required:["with"]},extension:{type:"object",title:"Extension",description:"The definition of an extension.",unevaluatedProperties:!1,properties:{extend:{type:"string",enum:["call","composite","emit","for","listen","raise","run","set","switch","try","wait","all"],title:"ExtensionTarget",description:"The type of task to extend."},when:{type:"string",title:"ExtensionCondition",description:"A runtime expression, if any, used to determine whether or not the extension should apply in the specified context."},before:{$ref:"#/$defs/taskList",title:"ExtensionDoBefore",description:"The task(s) to execute before the extended task, if any."},after:{$ref:"#/$defs/taskList",title:"ExtensionDoAfter",description:"The task(s) to execute after the extended task, if any."}},required:["extend"]},externalResource:{type:"object",title:"ExternalResource",description:"Represents an external resource.",unevaluatedProperties:!1,properties:{name:{type:"string",title:"ExternalResourceName",description:"The name of the external resource, if any."},endpoint:{$ref:"#/$defs/endpoint",title:"ExternalResourceEndpoint",description:"The endpoint of the external resource."}},required:["endpoint"]},input:{type:"object",title:"Input",description:"Configures the input of a workflow or task.",unevaluatedProperties:!1,properties:{schema:{$ref:"#/$defs/schema",title:"InputSchema",description:"The schema used to describe and validate the input of the workflow or task."},from:{title:"InputFrom",description:"A runtime expression, if any, used to mutate and/or filter the input of the workflow or task.",oneOf:[{type:"string"},{type:"object"}]}}},output:{type:"object",title:"Output",description:"Configures the output of a workflow or task.",unevaluatedProperties:!1,properties:{schema:{$ref:"#/$defs/schema",title:"OutputSchema",description:"The schema used to describe and validate the output of the workflow or task."},as:{title:"OutputAs",description:"A runtime expression, if any, used to mutate and/or filter the output of the workflow or task.",oneOf:[{type:"string"},{type:"object"}]}}},export:{type:"object",title:"Export",description:"Set the content of the context. .",unevaluatedProperties:!1,properties:{schema:{$ref:"#/$defs/schema",title:"ExportSchema",description:"The schema used to describe and validate the workflow context."},as:{title:"ExportAs",description:"A runtime expression, if any, used to export the output data to the context.",oneOf:[{type:"string"},{type:"object"}]}}},retryPolicy:{type:"object",title:"RetryPolicy",description:"Defines a retry policy.",unevaluatedProperties:!1,properties:{when:{type:"string",title:"RetryWhen",description:"A runtime expression, if any, used to determine whether or not to retry running the task, in a given context."},exceptWhen:{type:"string",title:"RetryExcepWhen",description:"A runtime expression used to determine whether or not to retry running the task, in a given context."},delay:{$ref:"#/$defs/duration",title:"RetryDelay",description:"The duration to wait between retry attempts."},backoff:{type:"object",title:"RetryBackoff",description:"The retry duration backoff.",unevaluatedProperties:!1,oneOf:[{title:"ConstantBackoff",properties:{constant:{type:"object",description:"The definition of the constant backoff to use, if any."}},required:["constant"]},{title:"ExponentialBackOff",properties:{exponential:{type:"object",description:"The definition of the exponential backoff to use, if any."}},required:["exponential"]},{title:"LinearBackoff",properties:{linear:{type:"object",description:"The definition of the linear backoff to use, if any."}},required:["linear"]}]},limit:{type:"object",title:"RetryLimit",unevaluatedProperties:!1,properties:{attempt:{type:"object",title:"RetryLimitAttempt",unevaluatedProperties:!1,properties:{count:{type:"integer",title:"RetryLimitAttemptCount",description:"The maximum amount of retry attempts, if any."},duration:{$ref:"#/$defs/duration",title:"RetryLimitAttemptDuration",description:"The maximum duration for each retry attempt."}}},duration:{$ref:"#/$defs/duration",title:"RetryLimitDuration",description:"The duration limit, if any, for all retry attempts."}},description:"The retry limit, if any."},jitter:{type:"object",title:"RetryPolicyJitter",description:"The parameters, if any, that control the randomness or variability of the delay between retry attempts.",unevaluatedProperties:!1,properties:{from:{$ref:"#/$defs/duration",title:"RetryPolicyJitterFrom",description:"The minimum duration of the jitter range."},to:{$ref:"#/$defs/duration",title:"RetryPolicyJitterTo",description:"The maximum duration of the jitter range."}},required:["from","to"]}}},schema:{type:"object",title:"Schema",description:"Represents the definition of a schema.",unevaluatedProperties:!1,properties:{format:{type:"string",default:"json",title:"SchemaFormat",description:"The schema's format. Defaults to 'json'. The (optional) version of the format can be set using `{format}:{version}`."}},oneOf:[{title:"SchemaInline",properties:{document:{description:"The schema's inline definition."}},required:["document"]},{title:"SchemaExternal",properties:{resource:{$ref:"#/$defs/externalResource",title:"SchemaExternalResource",description:"The schema's external resource."}},required:["resource"]}]},timeout:{type:"object",title:"Timeout",description:"The definition of a timeout.",unevaluatedProperties:!1,properties:{after:{$ref:"#/$defs/duration",title:"TimeoutAfter",description:"The duration after which to timeout."}},required:["after"]},catalog:{type:"object",title:"Catalog",description:"The definition of a resource catalog",unevaluatedProperties:!1,properties:{endpoint:{$ref:"#/$defs/endpoint",title:"CatalogEndpoint",description:"The root URL where the catalog is hosted"}},required:["endpoint"]},runtimeExpression:{type:"string",title:"RuntimeExpression",description:"A runtime expression.",pattern:"^\\s*\\$\\{.+\\}\\s*$"}}}],strict:!1});Ba(Wa);var Va=new Map(Object.entries({Workflow:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#",AllEventConsumptionStrategy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventConsumptionStrategy/oneOf/0",AllEventConsumptionStrategyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventConsumptionStrategy/oneOf/0/properties/all",AnyEventConsumptionStrategy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventConsumptionStrategy/oneOf/1",AnyEventConsumptionStrategyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventConsumptionStrategy/oneOf/1/properties/any",AsyncApiArguments:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/0/properties/with",AuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy",AuthenticationPolicyReference:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/referenceableAuthenticationPolicy/oneOf/0",BasicAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/0",BasicAuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/0/properties/basic",BasicAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/0/properties/basic/oneOf/0",BearerAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/1",BearerAuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/1/properties/bearer",BearerAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/1/properties/bearer/oneOf/0",CallAsyncAPI:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/0",CallFunction:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/4",CallGRPC:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/1",CallHTTP:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/2",CallOpenAPI:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/3",CallTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask",Catalog:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/catalog",CatchErrors:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/tryTask/properties/catch/properties/errors",ConstantBackoff:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy/properties/backoff/oneOf/0",Container:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/0/properties/container",ContainerEnvironment:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/0/properties/container/properties/environment",ContainerPorts:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/0/properties/container/properties/ports",ContainerVolumes:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/0/properties/container/properties/volumes",DigestAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/2",DigestAuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/2/properties/digest",DigestAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/2/properties/digest/oneOf/0",Document:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/document",DoTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/doTask",Duration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/duration",DurationInline:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/duration/oneOf/0",EmitEventDefinition:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/emitTask/properties/emit/properties/event",EmitEventWith:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/emitTask/properties/emit/properties/event/properties/with",EmitTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/emitTask",EmitTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/emitTask/properties/emit",Endpoint:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/endpoint",EndpointConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/endpoint/oneOf/2",EndpointUri:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/endpoint/oneOf/2/properties/uri",Error:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/error",ErrorInstance:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/error/properties/instance",ErrorType:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/error/properties/type",EventConsumptionStrategy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventConsumptionStrategy",EventDataschema:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventProperties/properties/dataschema",EventFilter:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventFilter",EventFilterCorrelate:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventFilter/properties/correlate",EventSource:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventProperties/properties/source",EventTime:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventProperties/properties/time",ExponentialBackOff:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy/properties/backoff/oneOf/1",Export:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/export",ExportAs:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/export/properties/as",Extension:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/extension",ExtensionItem:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/extensions/items",ExternalResource:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/externalResource",ExternalScript:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/1/properties/script/oneOf/1",FlowDirective:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/flowDirective",ForkTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/forkTask",ForkTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/forkTask/properties/fork",ForTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/forTask",ForTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/forTask/properties/for",FunctionArguments:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/4/properties/with",GRPCArguments:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/1/properties/with",HTTPArguments:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/2/properties/with",InlineScript:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/1/properties/script/oneOf/0",Input:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/input",InputFrom:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/input/properties/from",LinearBackoff:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy/properties/backoff/oneOf/2",ListenTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/listenTask",ListenTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/listenTask/properties/listen",OAuth2AutenthicationData:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/oauth2AuthenticationProperties",OAuth2AutenthicationDataAudiences:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/oauth2AuthenticationProperties/properties/audiences",OAuth2AutenthicationDataClient:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/oauth2AuthenticationProperties/properties/client",OAuth2AutenthicationDataScopes:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/oauth2AuthenticationProperties/properties/scopes",OAuth2AuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/3",OAuth2AuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/3/properties/oauth2",OAuth2AuthenticationPropertiesEndpoints:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/3/properties/oauth2/oneOf/0/allOf/1/properties/endpoints",OAuth2ConnectAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/3/properties/oauth2/oneOf/0",OAuth2Issuers:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/oauth2AuthenticationProperties/properties/issuers",OAuth2TokenDefinition:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/oauth2Token",OAuth2TokenRequest:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/oauth2AuthenticationProperties/properties/request",OneEventConsumptionStrategy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventConsumptionStrategy/oneOf/2",OpenAPIArguments:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/3/properties/with",OpenIdConnectAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/4",OpenIdConnectAuthenticationPolicyConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/4/properties/oidc",OpenIdConnectAuthenticationProperties:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/authenticationPolicy/oneOf/4/properties/oidc/oneOf/0",Output:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/output",OutputAs:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/output/properties/as",RaiseTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/raiseTask",RaiseTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/raiseTask/properties/raise",RaiseTaskRaiseError:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/raiseTask/properties/raise/properties/error",ReferenceableAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/referenceableAuthenticationPolicy",RetryBackoff:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy/properties/backoff",RetryLimit:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy/properties/limit",RetryLimitAttempt:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy/properties/limit/properties/attempt",RetryPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy",RetryPolicyJitter:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/retryPolicy/properties/jitter",RunContainer:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/0",RunScript:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/1",RunShell:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/2",RunTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask",RunTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run",RuntimeExpression:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runtimeExpression",RunWorkflow:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/3",Schedule:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/schedule",Schema:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/schema",SchemaExternal:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/schema/oneOf/1",SchemaInline:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/schema/oneOf/0",Script:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/1/properties/script",SecretBasedAuthenticationPolicy:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/secretBasedAuthenticationPolicy",SetTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/setTask",SetTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/setTask/properties/set",Shell:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/2/properties/shell",ShellArguments:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/2/properties/shell/properties/arguments",ShellEnvironment:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/2/properties/shell/properties/environment",SubflowConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/3/properties/workflow",SubflowInput:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/runTask/properties/run/oneOf/3/properties/workflow/properties/input",SwitchCase:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/switchTask/properties/switch/items/additionalProperties",SwitchItem:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/switchTask/properties/switch/items",SwitchTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/switchTask",SwitchTaskConfiguration:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/switchTask/properties/switch",Task:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/task",TaskBase:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/taskBase",TaskBaseIf:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/taskBase/properties/if",TaskBaseTimeout:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/taskBase/properties/timeout",TaskItem:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/taskList/items",TaskList:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/taskList",TaskMetadata:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/taskBase/properties/metadata",Timeout:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/timeout",TryTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/tryTask",TryTaskCatch:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/tryTask/properties/catch",TryTaskCatchRetry:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/tryTask/properties/catch/properties/retry",UriTemplate:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/uriTemplate",Use:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use",UseAuthentications:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/authentications",UseCatalogs:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/catalogs",UseErrors:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/errors",UseExtensions:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/extensions",UseFunctions:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/functions",UseRetries:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/retries",UseSecrets:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/secrets",UseTimeouts:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/use/properties/timeouts",WaitTask:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/waitTask",WithAsyncAPIPayload:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/0/properties/with/properties/payload",WithEvent:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/eventFilter/properties/with",WithGRPCArguments:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/1/properties/with/properties/arguments",WithGRPCService:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/1/properties/with/properties/service",WithHTTPBody:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/2/properties/with/properties/body",WithHTTPHeaders:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/2/properties/with/properties/headers",WithHTTPQuery:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/2/properties/with/properties/query",WithOpenAPIParameters:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/$defs/callTask/oneOf/3/properties/with/properties/parameters",WorkflowMetadata:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/document/properties/metadata",WorkflowTags:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/document/properties/tags",WorkflowTimeout:"https://serverlessworkflow.io/schemas/1.0.0-alpha5/workflow.json#/properties/timeout"}).map((function(e){var t=e[0],n=e[1];if(!n)throw"No JSON pointer provided for type '".concat(t,"'");var o=Wa.getSchema(n);if(!o)throw"Unable to find schema '".concat(n,"' for type '").concat(t,"'");return[t,o]}))),Ga=function(e,t,n){var o,r,i,a,s,c;null===(r=null===(o=h(e))||void 0===o?void 0:o.preValidation)||void 0===r||r.call(o,t,n);var u=Va.get(e);if(!u)throw Error("Unable to find a validation function for '".concat(e,"'"));if(!u(l(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===(c=null===(s=h(e))||void 0===s?void 0:s.postValidation)||void 0===c||c.call(s,t,n)},Ha=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("WithEvent"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("WithEvent",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("WithEvent"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Ka=Ha,Ja=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("EventFilterCorrelate"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("EventFilterCorrelate",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("EventFilterCorrelate"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Za=Ja,Ya=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.with&&(i.with=new Ka(t.with)),"object"==typeof t.correlate&&(i.correlate=new Za(t.correlate))),null===(o=null===(n=h("EventFilter"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("EventFilter",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("EventFilter"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Qa=Ya,Xa=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 Qa(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=h("AllEventConsumptionStrategyConfiguration"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("AllEventConsumptionStrategyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("AllEventConsumptionStrategyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),es=Xa,ts=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.all&&(i.all=new es(t.all)),null===(o=null===(n=h("AllEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("AllEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("AllEventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),ns=ts,os=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 Qa(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=h("AnyEventConsumptionStrategyConfiguration"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("AnyEventConsumptionStrategyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("AnyEventConsumptionStrategyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),rs=os,is=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.any&&(i.any=new rs(t.any)),null===(o=null===(n=h("AnyEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("AnyEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("AnyEventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),as=is,ss=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("BasicAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("BasicAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("BasicAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),ls=ss,cs=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("BearerAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("BearerAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("BearerAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),us=cs,ds=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("DigestAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("DigestAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("DigestAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),ps=ds,fs=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("OAuth2AutenthicationDataClient"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OAuth2AutenthicationDataClient",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OAuth2AutenthicationDataClient"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),hs=fs,ms=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("OAuth2TokenRequest"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OAuth2TokenRequest",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OAuth2TokenRequest"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),vs=ms,ys=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("OAuth2TokenDefinition"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OAuth2TokenDefinition",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OAuth2TokenDefinition"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),ws=ys,gs=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("OAuth2AuthenticationPropertiesEndpoints"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OAuth2AuthenticationPropertiesEndpoints",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OAuth2AuthenticationPropertiesEndpoints"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),bs=gs,$s=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.client&&(i.client=new hs(t.client)),"object"==typeof t.request&&(i.request=new vs(t.request)),"object"==typeof t.subject&&(i.subject=new ws(t.subject)),"object"==typeof t.actor&&(i.actor=new ws(t.actor)),"object"==typeof t.endpoints&&(i.endpoints=new bs(t.endpoints))),null===(o=null===(n=h("OAuth2AuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OAuth2AuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OAuth2AuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),ks=$s,js=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.client&&(i.client=new hs(t.client)),"object"==typeof t.request&&(i.request=new vs(t.request)),"object"==typeof t.subject&&(i.subject=new ws(t.subject)),"object"==typeof t.actor&&(i.actor=new ws(t.actor))),null===(o=null===(n=h("OpenIdConnectAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OpenIdConnectAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OpenIdConnectAuthenticationPolicyConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Ps=js,Ts=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.basic&&(i.basic=new ls(t.basic)),"object"==typeof t.bearer&&(i.bearer=new us(t.bearer)),"object"==typeof t.digest&&(i.digest=new ps(t.digest)),"object"==typeof t.oauth2&&(i.oauth2=new ks(t.oauth2)),"object"==typeof t.oidc&&(i.oidc=new Ps(t.oidc))),null===(o=null===(n=h("ReferenceableAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ReferenceableAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ReferenceableAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),As=Ts,zs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.authentication&&(i.authentication=new As(t.authentication)),null===(o=null===(n=h("Endpoint"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Endpoint",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Endpoint"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Es=zs,_s=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.endpoint&&(i.endpoint=new Es(t.endpoint)),null===(o=null===(n=h("ExternalResource"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ExternalResource",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ExternalResource"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Cs=_s,Ss=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("WithAsyncAPIPayload"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("WithAsyncAPIPayload",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("WithAsyncAPIPayload"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Os=Ss,xs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.document&&(i.document=new Cs(t.document)),"object"==typeof t.payload&&(i.payload=new Os(t.payload)),"object"==typeof t.authentication&&(i.authentication=new As(t.authentication))),null===(o=null===(n=h("AsyncApiArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("AsyncApiArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("AsyncApiArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Is=xs,Rs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.basic&&(i.basic=new ls(t.basic)),"object"==typeof t.bearer&&(i.bearer=new us(t.bearer)),"object"==typeof t.digest&&(i.digest=new ps(t.digest)),"object"==typeof t.oauth2&&(i.oauth2=new ks(t.oauth2)),"object"==typeof t.oidc&&(i.oidc=new Ps(t.oidc))),null===(o=null===(n=h("AuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("AuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("AuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Ns=Rs,Ds=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("AuthenticationPolicyReference"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("AuthenticationPolicyReference",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("AuthenticationPolicyReference"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Ms=Ds,Fs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.basic&&(i.basic=new ls(t.basic)),null===(o=null===(n=h("BasicAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("BasicAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("BasicAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),qs=Fs,Us=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("BasicAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("BasicAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("BasicAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Ls=Us,Bs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.bearer&&(i.bearer=new us(t.bearer)),null===(o=null===(n=h("BearerAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("BearerAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("BearerAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Ws=Bs,Vs=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("BearerAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("BearerAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("BearerAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Gs=Vs,Hs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.resource&&(i.resource=new Cs(t.resource)),null===(o=null===(n=h("Schema"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Schema",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Schema"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Ks=Hs,Js=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.schema&&(i.schema=new Ks(t.schema)),null===(o=null===(n=h("Input"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Input",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Input"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Zs=Js,Ys=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.schema&&(i.schema=new Ks(t.schema)),null===(o=null===(n=h("Output"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Output",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Output"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Qs=Ys,Xs=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.schema&&(i.schema=new Ks(t.schema)),null===(o=null===(n=h("Export"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Export",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Export"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),el=Xs,tl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("Duration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Duration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Duration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),nl=tl,ol=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.after&&(i.after=new nl(t.after)),null===(o=null===(n=h("TaskBaseTimeout"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("TaskBaseTimeout",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("TaskBaseTimeout"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),rl=ol,il=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("TaskMetadata"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("TaskMetadata",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("TaskMetadata"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),al=il,sl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata))),null===(o=null===(n=h("TaskBase"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("TaskBase",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("TaskBase"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),ll=sl,cl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&(i.call="asyncapi","object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.with&&(i.with=new Is(t.with))),null===(o=null===(n=h("CallAsyncAPI"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("CallAsyncAPI",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("CallAsyncAPI"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),ul=cl,dl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("FunctionArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("FunctionArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("FunctionArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),pl=dl,fl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.with&&(i.with=new pl(t.with))),null===(o=null===(n=h("CallFunction"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("CallFunction",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("CallFunction"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),hl=fl,ml=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.authentication&&(i.authentication=new As(t.authentication)),null===(o=null===(n=h("WithGRPCService"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("WithGRPCService",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("WithGRPCService"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),vl=ml,yl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("WithGRPCArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("WithGRPCArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("WithGRPCArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),wl=yl,gl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.proto&&(i.proto=new Cs(t.proto)),"object"==typeof t.service&&(i.service=new vl(t.service)),"object"==typeof t.arguments&&(i.arguments=new wl(t.arguments))),null===(o=null===(n=h("GRPCArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("GRPCArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("GRPCArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),bl=gl,$l=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&(i.call="grpc","object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.with&&(i.with=new bl(t.with))),null===(o=null===(n=h("CallGRPC"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("CallGRPC",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("CallGRPC"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),kl=$l,jl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("WithHTTPHeaders"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("WithHTTPHeaders",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("WithHTTPHeaders"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Pl=jl,Tl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("WithHTTPBody"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("WithHTTPBody",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("WithHTTPBody"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Al=Tl,zl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("WithHTTPQuery"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("WithHTTPQuery",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("WithHTTPQuery"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),El=zl,_l=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.endpoint&&(i.endpoint=new Es(t.endpoint)),"object"==typeof t.headers&&(i.headers=new Pl(t.headers)),"object"==typeof t.body&&(i.body=new Al(t.body)),"object"==typeof t.query&&(i.query=new El(t.query))),null===(o=null===(n=h("HTTPArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("HTTPArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("HTTPArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Cl=_l,Sl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&(i.call="http","object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.with&&(i.with=new Cl(t.with))),null===(o=null===(n=h("CallHTTP"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("CallHTTP",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("CallHTTP"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),Ol=Sl,xl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("WithOpenAPIParameters"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("WithOpenAPIParameters",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("WithOpenAPIParameters"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Il=xl,Rl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.document&&(i.document=new Cs(t.document)),"object"==typeof t.parameters&&(i.parameters=new Il(t.parameters)),"object"==typeof t.authentication&&(i.authentication=new As(t.authentication))),null===(o=null===(n=h("OpenAPIArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OpenAPIArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OpenAPIArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Nl=Rl,Dl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&(i.call="openapi","object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.with&&(i.with=new Nl(t.with))),null===(o=null===(n=h("CallOpenAPI"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("CallOpenAPI",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("CallOpenAPI"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),Ml=Dl,Fl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata))),null===(o=null===(n=h("CallTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("CallTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("CallTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),ql=Fl,Ul=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.endpoint&&(i.endpoint=new Es(t.endpoint)),null===(o=null===(n=h("Catalog"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Catalog",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Catalog"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Ll=Ul,Bl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("CatchErrors"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("CatchErrors",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("CatchErrors"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Wl=Bl,Vl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("ConstantBackoff"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ConstantBackoff",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ConstantBackoff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Gl=Vl,Hl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("ContainerPorts"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ContainerPorts",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ContainerPorts"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Kl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("ContainerVolumes"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ContainerVolumes",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ContainerVolumes"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Jl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("ContainerEnvironment"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ContainerEnvironment",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ContainerEnvironment"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Zl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.ports&&(i.ports=new Hl(t.ports)),"object"==typeof t.volumes&&(i.volumes=new Kl(t.volumes)),"object"==typeof t.environment&&(i.environment=new Jl(t.environment))),null===(o=null===(n=h("Container"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Container",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Container"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Yl=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.digest&&(i.digest=new ps(t.digest)),null===(o=null===(n=h("DigestAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("DigestAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("DigestAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Ql=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("DigestAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("DigestAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("DigestAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Xl=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("WorkflowTags"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("WorkflowTags",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("WorkflowTags"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),ec=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("WorkflowMetadata"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("WorkflowMetadata",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("WorkflowMetadata"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),tc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.tags&&(i.tags=new Xl(t.tags)),"object"==typeof t.metadata&&(i.metadata=new ec(t.metadata))),null===(o=null===(n=h("Document"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Document",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Document"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),nc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.branches&&(i.branches=new Cc(t.branches)),null===(o=null===(n=h("ForkTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ForkTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ForkTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),oc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("EmitEventWith"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("EmitEventWith",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("EmitEventWith"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),rc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.with&&(i.with=new oc(t.with)),null===(o=null===(n=h("EmitEventDefinition"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("EmitEventDefinition",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("EmitEventDefinition"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),ic=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.event&&(i.event=new rc(t.event)),null===(o=null===(n=h("EmitTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("EmitTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("EmitTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),ac=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("ForTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ForTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ForTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),sc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.all&&(i.all=new es(t.all)),"object"==typeof t.any&&(i.any=new rs(t.any)),"object"==typeof t.one&&(i.one=new Qa(t.one))),null===(o=null===(n=h("EventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("EventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("EventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),lc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.to&&(i.to=new sc(t.to)),null===(o=null===(n=h("ListenTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ListenTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ListenTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),cc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("RaiseTaskRaiseError"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RaiseTaskRaiseError",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RaiseTaskRaiseError"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),uc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.error&&(i.error=new cc(t.error)),null===(o=null===(n=h("RaiseTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RaiseTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RaiseTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),dc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.source&&(i.source=new Cs(t.source)),null===(o=null===(n=h("Script"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Script",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Script"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),pc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("ShellArguments"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ShellArguments",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ShellArguments"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),fc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("ShellEnvironment"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ShellEnvironment",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ShellEnvironment"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),hc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.arguments&&(i.arguments=new pc(t.arguments)),"object"==typeof t.environment&&(i.environment=new fc(t.environment))),null===(o=null===(n=h("Shell"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Shell",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Shell"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),mc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("SubflowInput"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("SubflowInput",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("SubflowInput"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),vc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.input&&(i.input=new mc(t.input)),null===(o=null===(n=h("SubflowConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("SubflowConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("SubflowConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),yc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.container&&(i.container=new Zl(t.container)),"object"==typeof t.script&&(i.script=new dc(t.script)),"object"==typeof t.shell&&(i.shell=new hc(t.shell)),"object"==typeof t.workflow&&(i.workflow=new vc(t.workflow))),null===(o=null===(n=h("RunTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RunTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RunTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),wc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("SetTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("SetTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("SetTaskConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),gc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("SwitchCase"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("SwitchCase",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("SwitchCase"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),bc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(s(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=h("SwitchItem"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("SwitchItem",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("SwitchItem"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),$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 bc(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=h("SwitchTaskConfiguration"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("SwitchTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("SwitchTaskConfiguration"))||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=h("RetryBackoff"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RetryBackoff",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RetryBackoff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),jc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.duration&&(i.duration=new nl(t.duration)),null===(o=null===(n=h("RetryLimitAttempt"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RetryLimitAttempt",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RetryLimitAttempt"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Pc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.attempt&&(i.attempt=new jc(t.attempt)),"object"==typeof t.duration&&(i.duration=new nl(t.duration))),null===(o=null===(n=h("RetryLimit"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RetryLimit",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RetryLimit"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Tc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.from&&(i.from=new nl(t.from)),"object"==typeof t.to&&(i.to=new nl(t.to))),null===(o=null===(n=h("RetryPolicyJitter"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RetryPolicyJitter",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RetryPolicyJitter"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Ac=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.delay&&(i.delay=new nl(t.delay)),"object"==typeof t.backoff&&(i.backoff=new kc(t.backoff)),"object"==typeof t.limit&&(i.limit=new Pc(t.limit)),"object"==typeof t.jitter&&(i.jitter=new Tc(t.jitter))),null===(o=null===(n=h("TryTaskCatchRetry"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("TryTaskCatchRetry",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("TryTaskCatchRetry"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),zc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.errors&&(i.errors=new Wl(t.errors)),"object"==typeof t.retry&&(i.retry=new Ac(t.retry)),"object"==typeof t.do&&(i.do=new Cc(t.do))),null===(o=null===(n=h("TryTaskCatch"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("TryTaskCatch",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("TryTaskCatch"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Ec=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.fork&&(i.fork=new nc(t.fork)),"object"==typeof t.emit&&(i.emit=new ic(t.emit)),"object"==typeof t.for&&(i.for=new ac(t.for)),"object"==typeof t.listen&&(i.listen=new lc(t.listen)),"object"==typeof t.raise&&(i.raise=new uc(t.raise)),"object"==typeof t.run&&(i.run=new yc(t.run)),"object"==typeof t.set&&(i.set=new wc(t.set)),"object"==typeof t.switch&&(i.switch=new $c(t.switch)),"object"==typeof t.try&&(i.try=new Cc(t.try)),"object"==typeof t.catch&&(i.catch=new zc(t.catch)),"object"==typeof t.wait&&(i.wait=new nl(t.wait))),null===(o=null===(n=h("Task"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Task",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Task"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),_c=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(s(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 Ec(n)}))}return null===(o=null===(n=h("TaskItem"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("TaskItem",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("TaskItem"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Cc=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(new _c(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=h("TaskList"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("TaskList",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("TaskList"))||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;return s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.do&&(i.do=new Cc(t.do))),null===(o=null===(n=h("DoTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("DoTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("DoTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),Oc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("DurationInline"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("DurationInline",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("DurationInline"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),xc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.emit&&(i.emit=new ic(t.emit))),null===(o=null===(n=h("EmitTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("EmitTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("EmitTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),Ic=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.authentication&&(i.authentication=new As(t.authentication)),null===(o=null===(n=h("EndpointConfiguration"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("EndpointConfiguration",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("EndpointConfiguration"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Rc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("EndpointUri"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("EndpointUri",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("EndpointUri"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Nc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("Error"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Error",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Error"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Dc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("ErrorInstance"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ErrorInstance",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ErrorInstance"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Mc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("ErrorType"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ErrorType",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ErrorType"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Fc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("EventDataschema"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("EventDataschema",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("EventDataschema"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),qc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("EventSource"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("EventSource",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("EventSource"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Uc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("EventTime"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("EventTime",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("EventTime"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Lc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("ExponentialBackOff"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ExponentialBackOff",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ExponentialBackOff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Bc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("ExportAs"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ExportAs",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ExportAs"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Wc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.before&&(i.before=new Cc(t.before)),"object"==typeof t.after&&(i.after=new Cc(t.after))),null===(o=null===(n=h("Extension"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Extension",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Extension"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Vc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(s(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 Wc(n)}))}return null===(o=null===(n=h("ExtensionItem"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ExtensionItem",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ExtensionItem"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Gc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.source&&(i.source=new Cs(t.source)),null===(o=null===(n=h("ExternalScript"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ExternalScript",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ExternalScript"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Hc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("FlowDirective"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("FlowDirective",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("FlowDirective"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Kc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.fork&&(i.fork=new nc(t.fork))),null===(o=null===(n=h("ForkTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ForkTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ForkTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),Jc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.for&&(i.for=new ac(t.for)),"object"==typeof t.do&&(i.do=new Cc(t.do))),null===(o=null===(n=h("ForTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ForTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ForTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),Zc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("InlineScript"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("InlineScript",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("InlineScript"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Yc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("InputFrom"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("InputFrom",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("InputFrom"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Qc=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("LinearBackoff"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("LinearBackoff",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("LinearBackoff"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Xc=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.listen&&(i.listen=new lc(t.listen))),null===(o=null===(n=h("ListenTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("ListenTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("ListenTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),eu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.client&&(i.client=new hs(t.client)),"object"==typeof t.request&&(i.request=new vs(t.request)),"object"==typeof t.subject&&(i.subject=new ws(t.subject)),"object"==typeof t.actor&&(i.actor=new ws(t.actor))),null===(o=null===(n=h("OAuth2AutenthicationData"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OAuth2AutenthicationData",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OAuth2AutenthicationData"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),tu=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=h("OAuth2AutenthicationDataAudiences"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OAuth2AutenthicationDataAudiences",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OAuth2AutenthicationDataAudiences"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(u),nu=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(e)}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=h("OAuth2AutenthicationDataScopes"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OAuth2AutenthicationDataScopes",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OAuth2AutenthicationDataScopes"))||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 s(t)&&"object"==typeof t.oauth2&&(i.oauth2=new ks(t.oauth2)),null===(o=null===(n=h("OAuth2AuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OAuth2AuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OAuth2AuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),ru=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.client&&(i.client=new hs(t.client)),"object"==typeof t.request&&(i.request=new vs(t.request)),"object"==typeof t.subject&&(i.subject=new ws(t.subject)),"object"==typeof t.actor&&(i.actor=new ws(t.actor)),"object"==typeof t.endpoints&&(i.endpoints=new bs(t.endpoints))),null===(o=null===(n=h("OAuth2ConnectAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OAuth2ConnectAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OAuth2ConnectAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(eu),iu=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=h("OAuth2Issuers"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OAuth2Issuers",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OAuth2Issuers"))||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 s(t)&&"object"==typeof t.one&&(i.one=new Qa(t.one)),null===(o=null===(n=h("OneEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OneEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OneEventConsumptionStrategy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),su=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.oidc&&(i.oidc=new Ps(t.oidc)),null===(o=null===(n=h("OpenIdConnectAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OpenIdConnectAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OpenIdConnectAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),lu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.client&&(i.client=new hs(t.client)),"object"==typeof t.request&&(i.request=new vs(t.request)),"object"==typeof t.subject&&(i.subject=new ws(t.subject)),"object"==typeof t.actor&&(i.actor=new ws(t.actor))),null===(o=null===(n=h("OpenIdConnectAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OpenIdConnectAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OpenIdConnectAuthenticationProperties"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),cu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("OutputAs"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("OutputAs",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("OutputAs"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),uu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.raise&&(i.raise=new uc(t.raise))),null===(o=null===(n=h("RaiseTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RaiseTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RaiseTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),du=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.delay&&(i.delay=new nl(t.delay)),"object"==typeof t.backoff&&(i.backoff=new kc(t.backoff)),"object"==typeof t.limit&&(i.limit=new Pc(t.limit)),"object"==typeof t.jitter&&(i.jitter=new Tc(t.jitter))),null===(o=null===(n=h("RetryPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RetryPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RetryPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),pu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.container&&(i.container=new Zl(t.container)),null===(o=null===(n=h("RunContainer"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RunContainer",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RunContainer"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),fu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.script&&(i.script=new dc(t.script)),null===(o=null===(n=h("RunScript"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RunScript",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RunScript"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),hu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.shell&&(i.shell=new hc(t.shell)),null===(o=null===(n=h("RunShell"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RunShell",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RunShell"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),mu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.run&&(i.run=new yc(t.run))),null===(o=null===(n=h("RunTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RunTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RunTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),vu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("RuntimeExpression"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RuntimeExpression",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RuntimeExpression"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),yu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.workflow&&(i.workflow=new vc(t.workflow)),null===(o=null===(n=h("RunWorkflow"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("RunWorkflow",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("RunWorkflow"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),wu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.every&&(i.every=new nl(t.every)),"object"==typeof t.after&&(i.after=new nl(t.after)),"object"==typeof t.on&&(i.on=new sc(t.on))),null===(o=null===(n=h("Schedule"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Schedule",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Schedule"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),gu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.resource&&(i.resource=new Cs(t.resource)),null===(o=null===(n=h("SchemaExternal"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("SchemaExternal",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("SchemaExternal"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),bu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("SchemaInline"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("SchemaInline",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("SchemaInline"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),$u=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("SecretBasedAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("SecretBasedAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("SecretBasedAuthenticationPolicy"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),ku=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.set&&(i.set=new wc(t.set))),null===(o=null===(n=h("SetTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("SetTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("SetTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),ju=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.switch&&(i.switch=new $c(t.switch))),null===(o=null===(n=h("SwitchTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("SwitchTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("SwitchTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),Pu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("TaskBaseIf"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("TaskBaseIf",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("TaskBaseIf"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Tu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.after&&(i.after=new nl(t.after)),null===(o=null===(n=h("Timeout"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Timeout",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Timeout"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Au=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.try&&(i.try=new Cc(t.try)),"object"==typeof t.catch&&(i.catch=new zc(t.catch))),null===(o=null===(n=h("TryTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("TryTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("TryTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),zu=function(e){function t(t){var n,o,r=e.call(this,t)||this;return null===(o=null===(n=h("UriTemplate"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("UriTemplate",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("UriTemplate"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Eu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(s(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 Ns(n)}))}return null===(o=null===(n=h("UseAuthentications"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("UseAuthentications",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("UseAuthentications"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),_u=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(s(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 Nc(n)}))}return null===(o=null===(n=h("UseErrors"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("UseErrors",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("UseErrors"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Cu=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 Vc(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=h("UseExtensions"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("UseExtensions",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("UseExtensions"))||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;if(s(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 Ec(n)}))}return null===(o=null===(n=h("UseFunctions"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("UseFunctions",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("UseFunctions"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Ou=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(s(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 du(n)}))}return null===(o=null===(n=h("UseRetries"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("UseRetries",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("UseRetries"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),xu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(s(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=h("UseTimeouts"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("UseTimeouts",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("UseTimeouts"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Iu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;if(s(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new Ll(n)}))}return null===(o=null===(n=h("UseCatalogs"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("UseCatalogs",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("UseCatalogs"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Ru=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.authentications&&(i.authentications=new Eu(t.authentications)),"object"==typeof t.errors&&(i.errors=new _u(t.errors)),"object"==typeof t.extensions&&(i.extensions=new Cu(t.extensions)),"object"==typeof t.functions&&(i.functions=new Su(t.functions)),"object"==typeof t.retries&&(i.retries=new Ou(t.retries)),"object"==typeof t.timeouts&&(i.timeouts=new xu(t.timeouts)),"object"==typeof t.catalogs&&(i.catalogs=new Iu(t.catalogs))),null===(o=null===(n=h("Use"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Use",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Use"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c),Nu=function(e){function t(n){var o,r,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(e)}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(r=null===(o=h("UseSecrets"))||void 0===o?void 0:o.constructor)||void 0===r||r.call(o,i),i}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("UseSecrets",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("UseSecrets"))||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 s(t)&&("object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.export&&(i.export=new el(t.export)),"object"==typeof t.timeout&&(i.timeout=new rl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new al(t.metadata)),"object"==typeof t.wait&&(i.wait=new nl(t.wait))),null===(o=null===(n=h("WaitTask"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("WaitTask",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("WaitTask"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(ll),Mu=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&"object"==typeof t.after&&(i.after=new nl(t.after)),null===(o=null===(n=h("WorkflowTimeout"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("WorkflowTimeout",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("WorkflowTimeout"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t}(c);
|
|
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 Br={};Object.defineProperty(Br,"__esModule",{value:!0});const Vr=$,Wr=T,Gr={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>Vr._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,Wr.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,Vr.not)(i),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(i)}};Br.default=Gr;var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});const Kr=he(),Jr=$,Zr=L(),Yr=T,Qr={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>Jr._`{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,Yr.alwaysValidSchema)(a,n))return;const c=(0,Kr.allSchemaProperties)(r.properties),u=(0,Kr.allSchemaProperties)(r.patternProperties);function d(e){t.code(Jr._`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,Yr.alwaysValidSchema)(a,n)){const n=t.name("valid");"failing"===l.removeAdditional?(f(r,n,!1),t.if((0,Jr.not)(n),(()=>{e.reset(),d(r)}))):(f(r,n),s||t.if((0,Jr.not)(n),(()=>t.break())))}}}function f(t,n,r){const o={keyword:"additionalProperties",dataProp:t,dataPropType:Yr.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,Yr.schemaRefOrVal)(a,r.properties,"properties");o=(0,Kr.isOwnProperty)(t,e,n)}else o=c.length?(0,Jr.or)(...c.map((e=>Jr._`${n} === ${e}`))):Jr.nil;return u.length&&(o=(0,Jr.or)(o,...u.map((t=>Jr._`${(0,Kr.usePattern)(e,t)}.test(${n})`)))),(0,Jr.not)(o)}(n),(()=>p(n))):p(n)})),e.ok(Jr._`${i} === ${Zr.default.errors}`)}};Hr.default=Qr;var Xr={};Object.defineProperty(Xr,"__esModule",{value:!0});const eo=Me(),to=he(),no=T,ro=Hr,oo={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&&ro.default.code(new eo.KeywordCxt(i,ro.default,"additionalProperties"));const a=(0,to.allSchemaProperties)(n);for(const e of a)i.definedProperties.add(e);i.opts.unevaluated&&a.length&&!0!==i.props&&(i.props=no.mergeEvaluated.props(t,(0,no.toHash)(a),i.props));const s=a.filter((e=>!(0,no.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,to.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)}}};Xr.default=oo;var io={};Object.defineProperty(io,"__esModule",{value:!0});const ao=he(),so=$,lo=T,co=T,uo={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,ao.allSchemaProperties)(n),l=s.filter((e=>(0,lo.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 so.Name||(i.props=(0,co.evaluatedPropsToName)(t,i.props));const{props:d}=i;function p(e){for(const t in c)new RegExp(e).test(t)&&(0,lo.checkStrictMode)(i,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function f(n){t.forIn("key",r,(r=>{t.if(so._`${(0,ao.usePattern)(e,n)}.test(${r})`,(()=>{const o=l.includes(n);o||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:r,dataPropType:co.Type.Str},u),i.opts.unevaluated&&!0!==d?t.assign(so._`${d}[${r}]`,!0):o||i.allErrors||t.if((0,so.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))}()}};io.default=uo;var po={};Object.defineProperty(po,"__esModule",{value:!0});const fo=T,ho={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,fo.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"}};po.default=ho;var mo={};Object.defineProperty(mo,"__esModule",{value:!0});const vo={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:he().validateUnion,error:{message:"must match a schema in anyOf"}};mo.default=vo;var yo={};Object.defineProperty(yo,"__esModule",{value:!0});const wo=$,go=T,bo={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>wo._`{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,go.alwaysValidSchema)(o,n)?t.var(l,!0):i=e.subschema({keyword:"oneOf",schemaProp:r,compositeRule:!0},l),r>0&&t.if(wo._`${l} && ${a}`).assign(a,!1).assign(s,wo._`[${s}, ${r}]`).else(),t.if(l,(()=>{t.assign(a,!0),t.assign(s,r),i&&e.mergeEvaluated(i,wo.Name)}))}))})),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}};yo.default=bo;var ko={};Object.defineProperty(ko,"__esModule",{value:!0});const $o=T,jo={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,$o.alwaysValidSchema)(r,t))return;const i=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(i)}))}};ko.default=jo;var Ao={};Object.defineProperty(Ao,"__esModule",{value:!0});const To=$,Po=T,Eo={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>To.str`must match "${e.ifClause}" schema`,params:({params:e})=>To._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:r}=e;void 0===n.then&&void 0===n.else&&(0,Po.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,To.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,To._`${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,Po.alwaysValidSchema)(e,n)}Ao.default=Eo;var Co={};Object.defineProperty(Co,"__esModule",{value:!0});const So=T,_o={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,So.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};Co.default=_o,Object.defineProperty(yr,"__esModule",{value:!0});const Oo=wr,xo=jr,Io=Ar,Ro=Or,No=Mr,Do=Lr,Mo=Br,qo=Hr,Fo=Xr,Uo=io,Lo=po,Bo=mo,Vo=yo,Wo=ko,Go=Ao,Ho=Co;yr.default=function(e=!1){const t=[Lo.default,Bo.default,Vo.default,Wo.default,Go.default,Ho.default,Mo.default,qo.default,Do.default,Fo.default,Uo.default];return e?t.push(xo.default,Ro.default):t.push(Oo.default,Io.default),t.push(No.default),t};var Ko={},Jo={};Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.dynamicAnchor=void 0;const Zo=$,Yo=L(),Qo=We,Xo=Kt,ei={keyword:"$dynamicAnchor",schemaType:"string",code:e=>ti(e,e.schema)};function ti(e,t){const{gen:n,it:r}=e;r.schemaEnv.root.dynamicAnchors[t]=!0;const o=Zo._`${Yo.default.dynamicAnchors}${(0,Zo.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 Qo.SchemaEnv({schema:n,schemaId:l,root:o,baseId:i,localRefs:a,meta:s});return Qo.compileSchema.call(r,c),(0,Xo.getValidate)(e,c)}(e);n.if(Zo._`!${o}`,(()=>n.assign(o,i)))}Jo.dynamicAnchor=ti,Jo.default=ei;var ni={};Object.defineProperty(ni,"__esModule",{value:!0}),ni.dynamicRef=void 0;const ri=$,oi=L(),ii=Kt,ai={keyword:"$dynamicRef",schemaType:"string",code:e=>si(e,e.schema)};function si(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",ri._`${oi.default.dynamicAnchors}${(0,ri.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,ii.callRef)(e,t),n.let(r,!0)})):()=>(0,ii.callRef)(e,t)}}ni.dynamicRef=si,ni.default=ai;var li={};Object.defineProperty(li,"__esModule",{value:!0});const ci=Jo,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(Ko,"__esModule",{value:!0});const mi=ni,vi=li,yi=pi,wi=[Jo.default,mi.default,vi.default,yi.default];Ko.default=wi;var gi={},bi={};Object.defineProperty(bi,"__esModule",{value:!0});const ki=Lr,$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=Lr,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,zi={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=zi,Object.defineProperty(gi,"__esModule",{value:!0});const Ci=ji,Si=Pi,_i=[bi.default,Ci.default,Si.default];gi.default=_i;var Oi={},xi={};Object.defineProperty(xi,"__esModule",{value:!0});const Ii=$,Ri=T,Ni=L(),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: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,Ri.alwaysValidSchema)(i,n)){const n=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:r,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",r,(e=>t.if(function(e,t){return Ii._`!${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(Ii._`${t} !== ${r}`);return(0,Ii.and)(...n)}(s,e),(()=>l(e))))),i.props=!0,e.ok(Ii._`${o} === ${Ni.default.errors}`)}};xi.default=Di;var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});const qi=$,Fi=T,Ui={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:e}})=>qi.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>qi._`{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",qi._`${r}.length`);if(!1===n)e.setParams({len:i}),e.fail(qi._`${a} > ${i}`);else if("object"==typeof n&&!(0,Fi.alwaysValidSchema)(o,n)){const n=t.var("valid",qi._`${a} <= ${i}`);t.if((0,qi.not)(n),(()=>function(n,r){t.forRange("i",r,a,(r=>{e.subschema({keyword:"unevaluatedItems",dataProp:r,dataPropType:Fi.Type.Num},n),o.allErrors||t.if((0,qi.not)(n),(()=>t.break()))}))}(n,i))),e.ok(n)}o.items=!0}};Mi.default=Ui,Object.defineProperty(Oi,"__esModule",{value:!0});const Li=Mi,Bi=[xi.default,Li.default];Oi.default=Bi;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: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",Gi._`${o}[${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}(${r}) : ${c}(${r}))`:Gi._`${c}(${r})`,n=Gi._`(typeof ${c} == "function" ? ${e} : ${c}.test(${r}))`;return Gi._`${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,Gi.regexpCode)(e):l.code.formats?Gi._`${l.code.formats}${(0,Gi.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,Gi._`${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 Gi._`await ${p}(${r})`}return"function"==typeof s?Gi._`${p}(${r})`:Gi._`${p}.test(${r})`}())}())}};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=yr,Xi=gi,ea=Oi,ta=Vi,na=Ji,ra=[Ko.default,Zi.default,Yi.default,(0,Qi.default)(!0),ta.default,na.metadataVocabulary,na.contentVocabulary,Xi.default,ea.default];Vt.default=ra;var oa,ia={},aa={};Object.defineProperty(aa,"__esModule",{value:!0}),aa.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(oa||(aa.DiscrError=oa={})),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: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",sa._`${n}${(0,sa.getProperty)(s)}`);function u(n){const r=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},r);return e.mergeEvaluated(o,sa.Name),r}t.if(sa._`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,da.schemaHasRulesButRef)(o,i.self.RULES)){const e=o.$ref;if(o=ca.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,e),o instanceof ca.SchemaEnv&&(o=o.schema),void 0===o)throw new ua.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(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,za=ba,Ca=ka,Sa=["/properties"];fa.default=function(e){return[$a,ja,Aa,Ta,Pa,t(this,Ea),za,t(this,Ca)].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,r=Vt,o=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(),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=$;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=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(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/}(xa);var Ia={},Ra={exports:{}},Na={};Object.defineProperty(Na,"__esModule",{value:!0});const Da=sn,Ma=yr,qa=Vi,Fa=Ji,Ua=[Wt.default,Da.default,(0,Ma.default)(),qa.default,Fa.metadataVocabulary,Fa.contentVocabulary];Na.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=w,r=Na,o=ia,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=$;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=Ve();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})}(Ra,Ra.exports);var Ba=Ra.exports;!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Ba,n=$,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)}(Ia),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=xa,r=Ia,o=$,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}(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 r=Wa.getSchema(n);if(!r)throw"Unable to find schema '".concat(n,"' for type '").concat(t,"'");return[t,r]}))),Ha=function(e,t,n){var r,o,i,a,s,l;null===(o=null===(r=m(e))||void 0===r?void 0:r.preValidation)||void 0===o||o.call(r,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,r,o=e.call(this,t)||this;return null===(r=null===(n=m("WithEvent"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithEvent",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Ja=Ka,Za=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("EventFilterCorrelate"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventFilterCorrelate",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Ya=Za,Qa=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&("object"==typeof t.with&&(i.with=new Ja(t.with)),"object"==typeof t.correlate&&(i.correlate=new Ya(t.correlate))),null===(r=null===(n=m("EventFilter"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventFilter",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Xa=Qa,es=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 Xa(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=m("AllEventConsumptionStrategyConfiguration"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AllEventConsumptionStrategyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(d),ts=es,ns=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.all&&(i.all=new ts(t.all)),null===(r=null===(n=m("AllEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AllEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),rs=ns,os=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 Xa(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=m("AnyEventConsumptionStrategyConfiguration"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AnyEventConsumptionStrategyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(d),is=os,as=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("AnyEventConsumptionStrategyUntil"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AnyEventConsumptionStrategyUntil",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),ss=as,ls=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&("object"==typeof t.any&&(i.any=new is(t.any)),"object"==typeof t.until&&(i.until=new ss(t.until))),null===(r=null===(n=m("AnyEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AnyEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),cs=ls,us=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("AnyEventUntilConsumed"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AnyEventUntilConsumed",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),ds=us,ps=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("AsyncApiArguments"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AsyncApiArguments",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),fs=ps,hs=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("BasicAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BasicAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),ms=hs,vs=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("BearerAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BearerAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),ys=vs,ws=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("DigestAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DigestAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),gs=ws,bs=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("OAuth2AutenthicationDataClient"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AutenthicationDataClient",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),ks=bs,$s=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("OAuth2TokenRequest"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2TokenRequest",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),js=$s,As=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("OAuth2TokenDefinition"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2TokenDefinition",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Ts=As,Ps=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("OAuth2AuthenticationPropertiesEndpoints"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AuthenticationPropertiesEndpoints",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Es=Ps,zs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("OAuth2AuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Cs=zs,Ss=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("OpenIdConnectAuthenticationPolicyConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OpenIdConnectAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),_s=Ss,Os=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 Cs(t.oauth2)),"object"==typeof t.oidc&&(i.oidc=new _s(t.oidc))),null===(r=null===(n=m("AuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),xs=Os,Is=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("AuthenticationPolicyReference"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("AuthenticationPolicyReference",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Rs=Is,Ns=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.basic&&(i.basic=new ms(t.basic)),null===(r=null===(n=m("BasicAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BasicAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Ds=Ns,Ms=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("BasicAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BasicAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),qs=Ms,Fs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.bearer&&(i.bearer=new ys(t.bearer)),null===(r=null===(n=m("BearerAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BearerAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Us=Fs,Ls=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("BearerAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("BearerAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Bs=Ls,Vs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 Cs(t.oauth2)),"object"==typeof t.oidc&&(i.oidc=new _s(t.oidc))),null===(r=null===(n=m("ReferenceableAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ReferenceableAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Ws=Vs,Gs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.authentication&&(i.authentication=new Ws(t.authentication)),null===(r=null===(n=m("Endpoint"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Endpoint",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Hs=Gs,Ks=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.endpoint&&(i.endpoint=new Hs(t.endpoint)),null===(r=null===(n=m("ExternalResource"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExternalResource",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Js=Ks,Zs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.resource&&(i.resource=new Js(t.resource)),null===(r=null===(n=m("Schema"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Schema",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Ys=Zs,Qs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.schema&&(i.schema=new Ys(t.schema)),null===(r=null===(n=m("Input"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Input",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Xs=Qs,el=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.schema&&(i.schema=new Ys(t.schema)),null===(r=null===(n=m("Output"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Output",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),tl=el,nl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.schema&&(i.schema=new Ys(t.schema)),null===(r=null===(n=m("Export"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Export",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),rl=nl,ol=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("Duration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Duration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),il=ol,al=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.after&&(i.after=new il(t.after)),null===(r=null===(n=m("TaskTimeout"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskTimeout",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),sl=al,ll=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("TaskMetadata"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskMetadata",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),cl=ll,ul=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata))),null===(r=null===(n=m("TaskBase"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskBase",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),dl=ul,pl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata))),null===(r=null===(n=m("CallAsyncAPI"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallAsyncAPI",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),fl=pl,hl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("FunctionArguments"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("FunctionArguments",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),ml=hl,vl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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===(r=null===(n=m("CallFunction"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallFunction",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),yl=vl,wl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.authentication&&(i.authentication=new Ws(t.authentication)),null===(r=null===(n=m("WithGRPCService"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithGRPCService",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),gl=wl,bl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("WithGRPCArguments"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithGRPCArguments",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),kl=bl,$l=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("GRPCArguments"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("GRPCArguments",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),jl=$l,Al=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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===(r=null===(n=m("CallGRPC"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallGRPC",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),Tl=Al,Pl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("HTTPHeaders"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("HTTPHeaders",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),El=Pl,zl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("HTTPBody"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("HTTPBody",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Cl=zl,Sl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("HTTPQuery"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("HTTPQuery",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),_l=Sl,Ol=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 Cl(t.body)),"object"==typeof t.query&&(i.query=new _l(t.query))),null===(r=null===(n=m("HTTPArguments"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("HTTPArguments",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),xl=Ol,Il=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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===(r=null===(n=m("CallHTTP"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallHTTP",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),Rl=Il,Nl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("WithOpenAPIParameters"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WithOpenAPIParameters",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Dl=Nl,Ml=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("OpenAPIArguments"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OpenAPIArguments",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),ql=Ml,Fl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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 ql(t.with))),null===(r=null===(n=m("CallOpenAPI"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallOpenAPI",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),Ul=Fl,Ll=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(t.export)),"object"==typeof t.timeout&&(i.timeout=new sl(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new cl(t.metadata))),null===(r=null===(n=m("CallTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CallTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Bl=Ll,Vl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.endpoint&&(i.endpoint=new Hs(t.endpoint)),null===(r=null===(n=m("Catalog"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Catalog",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Wl=Vl,Gl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("ErrorFilter"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ErrorFilter",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Hl=Gl,Kl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.with&&(i.with=new Hl(t.with)),null===(r=null===(n=m("CatchErrors"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("CatchErrors",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Jl=Kl,Zl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("ConstantBackoff"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ConstantBackoff",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Yl=Zl,Ql=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("ContainerPorts"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ContainerPorts",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Xl=Ql,ec=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("ContainerVolumes"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ContainerVolumes",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),tc=ec,nc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("ContainerEnvironment"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ContainerEnvironment",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),rc=nc,oc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.after&&(i.after=new il(t.after)),null===(r=null===(n=m("ContainerLifetime"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ContainerLifetime",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),ic=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rc(t.environment)),"object"==typeof t.lifetime&&(i.lifetime=new oc(t.lifetime))),null===(r=null===(n=m("Container"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Container",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),ac=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.digest&&(i.digest=new gs(t.digest)),null===(r=null===(n=m("DigestAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DigestAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),sc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("DigestAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DigestAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),lc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("WorkflowTags"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WorkflowTags",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),cc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("WorkflowMetadata"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WorkflowMetadata",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),uc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&("object"==typeof t.tags&&(i.tags=new lc(t.tags)),"object"==typeof t.metadata&&(i.metadata=new cc(t.metadata))),null===(r=null===(n=m("Document"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Document",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),dc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.branches&&(i.branches=new Fc(t.branches)),null===(r=null===(n=m("ForkTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ForkTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),pc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("EmitEventWith"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EmitEventWith",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),fc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.with&&(i.with=new pc(t.with)),null===(r=null===(n=m("EmitEventDefinition"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EmitEventDefinition",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),hc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.event&&(i.event=new fc(t.event)),null===(r=null===(n=m("EmitTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EmitTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),mc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("ForTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ForTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),vc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("EventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),yc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.to&&(i.to=new vc(t.to)),null===(r=null===(n=m("ListenTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ListenTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),wc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&("object"==typeof t.do&&(i.do=new Fc(t.do)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.export&&(i.export=new rl(t.export))),null===(r=null===(n=m("SubscriptionIterator"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SubscriptionIterator",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),gc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("RaiseTaskError"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RaiseTaskError",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),bc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.error&&(i.error=new gc(t.error)),null===(r=null===(n=m("RaiseTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RaiseTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),kc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.source&&(i.source=new Js(t.source)),null===(r=null===(n=m("Script"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Script",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),$c=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("ShellArguments"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ShellArguments",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),jc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("ShellEnvironment"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ShellEnvironment",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Ac=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&("object"==typeof t.arguments&&(i.arguments=new $c(t.arguments)),"object"==typeof t.environment&&(i.environment=new jc(t.environment))),null===(r=null===(n=m("Shell"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Shell",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Tc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("SubflowInput"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SubflowInput",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Pc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.input&&(i.input=new Tc(t.input)),null===(r=null===(n=m("SubflowConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SubflowConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Ec=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("RunTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),zc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("SetTaskConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SetTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Cc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("SwitchCase"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SwitchCase",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Sc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;if(l(t)){var a=[];Object.entries(t).filter((function(e){var t=e[0];return!a.includes(t)})).forEach((function(e){var t=e[0],n=e[1];i[t]=new Cc(n)}))}return null===(r=null===(n=m("SwitchItem"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SwitchItem",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),_c=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 Sc(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=m("SwitchTaskConfiguration"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SwitchTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(d),Oc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("RetryBackoff"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryBackoff",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),xc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.duration&&(i.duration=new il(t.duration)),null===(r=null===(n=m("RetryLimitAttempt"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryLimitAttempt",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Ic=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&("object"==typeof t.attempt&&(i.attempt=new xc(t.attempt)),"object"==typeof t.duration&&(i.duration=new il(t.duration))),null===(r=null===(n=m("RetryLimit"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryLimit",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Rc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&("object"==typeof t.from&&(i.from=new il(t.from)),"object"==typeof t.to&&(i.to=new il(t.to))),null===(r=null===(n=m("RetryPolicyJitter"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryPolicyJitter",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Nc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("TryTaskCatchRetry"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TryTaskCatchRetry",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Dc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 Fc(t.do))),null===(r=null===(n=m("TryTaskCatch"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TryTaskCatch",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Mc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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 zc(t.set)),"object"==typeof t.switch&&(i.switch=new _c(t.switch)),"object"==typeof t.try&&(i.try=new Fc(t.try)),"object"==typeof t.catch&&(i.catch=new Dc(t.catch)),"object"==typeof t.wait&&(i.wait=new il(t.wait))),null===(r=null===(n=m("Task"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Task",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),qc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 Mc(n)}))}return null===(r=null===(n=m("TaskItem"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskItem",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Fc=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 qc(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=m("TaskList"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskList",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(d),Uc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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 Fc(t.do))),null===(r=null===(n=m("DoTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DoTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),Lc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("DurationInline"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("DurationInline",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Bc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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===(r=null===(n=m("EmitTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EmitTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),Vc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.authentication&&(i.authentication=new Ws(t.authentication)),null===(r=null===(n=m("EndpointConfiguration"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EndpointConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Wc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("EndpointUri"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EndpointUri",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Gc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("Error"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Error",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Hc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("ErrorInstance"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ErrorInstance",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Kc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("ErrorType"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ErrorType",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Jc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("EventData"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventData",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Zc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("EventDataschema"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventDataschema",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Yc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("EventSource"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventSource",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Qc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("EventTime"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("EventTime",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Xc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("ExponentialBackOff"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExponentialBackOff",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),eu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("ExportAs"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExportAs",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),tu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&("object"==typeof t.before&&(i.before=new Fc(t.before)),"object"==typeof t.after&&(i.after=new Fc(t.after))),null===(r=null===(n=m("Extension"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Extension",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),nu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("ExtensionItem"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExtensionItem",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),ru=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.source&&(i.source=new Js(t.source)),null===(r=null===(n=m("ExternalScript"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ExternalScript",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),ou=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("FlowDirective"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("FlowDirective",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),iu=ou,au=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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===(r=null===(n=m("ForkTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ForkTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),su=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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 Fc(t.do))),null===(r=null===(n=m("ForTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ForTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),lu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("InlineScript"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("InlineScript",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),cu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("InputFrom"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("InputFrom",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),uu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("LinearBackoff"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("LinearBackoff",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),du=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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===(r=null===(n=m("ListenTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("ListenTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),pu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("OAuth2AutenthicationData"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AutenthicationData",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),fu=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=m("OAuth2AutenthicationDataAudiences"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AutenthicationDataAudiences",n,e)},t.prototype.normalize=function(){var e,n,r=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,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=m("OAuth2AutenthicationDataScopes"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AutenthicationDataScopes",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(d),mu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.oauth2&&(i.oauth2=new Cs(t.oauth2)),null===(r=null===(n=m("OAuth2AuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2AuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),vu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("OAuth2ConnectAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2ConnectAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(pu),yu=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=m("OAuth2Issuers"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OAuth2Issuers",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(d),wu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.one&&(i.one=new Xa(t.one)),null===(r=null===(n=m("OneEventConsumptionStrategy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OneEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),gu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.oidc&&(i.oidc=new _s(t.oidc)),null===(r=null===(n=m("OpenIdConnectAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OpenIdConnectAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),bu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("OpenIdConnectAuthenticationProperties"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OpenIdConnectAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),ku=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("OutputAs"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("OutputAs",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),$u=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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===(r=null===(n=m("RaiseTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RaiseTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),ju=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("RetryPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RetryPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Au=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.container&&(i.container=new ic(t.container)),null===(r=null===(n=m("RunContainer"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunContainer",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Tu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.script&&(i.script=new kc(t.script)),null===(r=null===(n=m("RunScript"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunScript",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Pu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.shell&&(i.shell=new Ac(t.shell)),null===(r=null===(n=m("RunShell"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunShell",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Eu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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===(r=null===(n=m("RunTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),zu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("RuntimeExpression"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RuntimeExpression",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Cu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.workflow&&(i.workflow=new Pc(t.workflow)),null===(r=null===(n=m("RunWorkflow"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("RunWorkflow",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Su=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("Schedule"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Schedule",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),_u=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.resource&&(i.resource=new Js(t.resource)),null===(r=null===(n=m("SchemaExternal"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SchemaExternal",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Ou=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("SchemaInline"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SchemaInline",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),xu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("SecretBasedAuthenticationPolicy"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SecretBasedAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Iu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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 zc(t.set))),null===(r=null===(n=m("SetTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SetTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),Ru=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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===(r=null===(n=m("SwitchTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("SwitchTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),Nu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("TaskBaseIf"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TaskBaseIf",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Du=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.after&&(i.after=new il(t.after)),null===(r=null===(n=m("Timeout"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Timeout",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Mu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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 Fc(t.try)),"object"==typeof t.catch&&(i.catch=new Dc(t.catch))),null===(r=null===(n=m("TryTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("TryTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),qu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=m("UriTemplate"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UriTemplate",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Fu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("UseAuthentications"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseAuthentications",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Uu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("UseErrors"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseErrors",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),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 nu(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=m("UseExtensions"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseExtensions",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(d),Bu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 Mc(n)}))}return null===(r=null===(n=m("UseFunctions"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseFunctions",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Vu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 ju(n)}))}return null===(r=null===(n=m("UseRetries"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseRetries",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Wu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 Du(n)}))}return null===(r=null===(n=m("UseTimeouts"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseTimeouts",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Gu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=m("UseCatalogs"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseCatalogs",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Hu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&("object"==typeof t.authentications&&(i.authentications=new Fu(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 Bu(t.functions)),"object"==typeof t.retries&&(i.retries=new Vu(t.retries)),"object"==typeof t.timeouts&&(i.timeouts=new Wu(t.timeouts)),"object"==typeof t.catalogs&&(i.catalogs=new Gu(t.catalogs))),null===(r=null===(n=m("Use"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Use",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Ku=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=m("UseSecrets"))||void 0===r?void 0:r.constructor)||void 0===o||o.call(r,i),i}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("UseSecrets",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(d),Ju=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 rl(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===(r=null===(n=m("WaitTask"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WaitTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(dl),Zu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return l(t)&&"object"==typeof t.after&&(i.after=new il(t.after)),null===(r=null===(n=m("WorkflowTimeout"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("WorkflowTimeout",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u);
|
|
8
8
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
9
|
-
function Fu(e){return null==e}var qu={isNothing:Fu,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:Fu(e)?[]:[e]},repeat:function(e,t){var n,o="";for(n=0;n<t;n+=1)o+=e;return o},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var n,o,r,i;if(t)for(n=0,o=(i=Object.keys(t)).length;n<o;n+=1)e[r=i[n]]=t[r];return e}};function Uu(e,t){var n="",o=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),o+" "+n):o}function Lu(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Uu(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}Lu.prototype=Object.create(Error.prototype),Lu.prototype.constructor=Lu,Lu.prototype.toString=function(e){return this.name+": "+Uu(this,e)};var Bu=Lu;function Wu(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 Vu(e,t){return qu.repeat(" ",t-e.length)+e}var Gu=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=Wu(e.buffer,r[a-s],i[a-s],e.position-(r[a]-r[a-s]),d),c=qu.repeat(" ",t.indent)+Vu((e.line-s+1).toString(),u)+" | "+l.str+"\n"+c;for(l=Wu(e.buffer,r[a],i[a],e.position,d),c+=qu.repeat(" ",t.indent)+Vu((e.line+1).toString(),u)+" | "+l.str+"\n",c+=qu.repeat("-",t.indent+u+3+l.pos)+"^\n",s=1;s<=t.linesAfter&&!(a+s>=i.length);s++)l=Wu(e.buffer,r[a+s],i[a+s],e.position-(r[a]-r[a+s]),d),c+=qu.repeat(" ",t.indent)+Vu((e.line+s+1).toString(),u)+" | "+l.str+"\n";return c.replace(/\n$/,"")},Hu=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Ku=["scalar","sequence","mapping"];var Ju=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===Hu.indexOf(t))throw new Bu('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===Ku.indexOf(this.kind))throw new Bu('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function Zu(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 Yu(e){return this.extend(e)}Yu.prototype.extend=function(e){var t=[],n=[];if(e instanceof Ju)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 Bu("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 Ju))throw new Bu("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new Bu("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 Bu("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 Ju))throw new Bu("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var o=Object.create(Yu.prototype);return o.implicit=(this.implicit||[]).concat(t),o.explicit=(this.explicit||[]).concat(n),o.compiledImplicit=Zu(o,"implicit"),o.compiledExplicit=Zu(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 Qu=new Yu({explicit:[new Ju("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),new Ju("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),new Ju("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})]});var Xu=new Ju("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 ed=new Ju("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 td(e){return 48<=e&&e<=55}function nd(e){return 48<=e&&e<=57}var od=new Ju("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(!td(e.charCodeAt(r)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;r<o;r++)if("_"!==(t=e[r])){if(!nd(e.charCodeAt(r)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,n=e,o=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(o=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return o*parseInt(n.slice(2),2);if("x"===n[1])return o*parseInt(n.slice(2),16);if("o"===n[1])return o*parseInt(n.slice(2),8)}return o*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!qu.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),rd=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var id=/^[-+]?[0-9]+e/;var ad=new Ju("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!rd.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||qu.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(qu.isNegativeZero(e))return"-0.0";return n=e.toString(10),id.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),sd=Qu.extend({implicit:[Xu,ed,od,ad]}),ld=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),cd=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 ud=new Ju("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==ld.exec(e)||null!==cd.exec(e))},construct:function(e){var t,n,o,r,i,a,s,l,c=0,u=null;if(null===(t=ld.exec(e))&&(t=cd.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 dd=new Ju("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),pd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var fd=new Ju("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,o=0,r=e.length,i=pd;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=pd,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=pd;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}}),hd=Object.prototype.hasOwnProperty,md=Object.prototype.toString;var vd=new Ju("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]"!==md.call(o))return!1;for(r in o)if(hd.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:[]}}),yd=Object.prototype.toString;var wd=new Ju("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]"!==yd.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}}),gd=Object.prototype.hasOwnProperty;var bd=new Ju("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(gd.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),$d=sd.extend({implicit:[ud,dd],explicit:[fd,vd,wd,bd]}),kd=Object.prototype.hasOwnProperty,jd=1,Pd=2,Td=3,Ad=4,zd=1,Ed=2,_d=3,Cd=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Sd=/[\x85\u2028\u2029]/,Od=/[,\[\]\{\}]/,xd=/^(?:!|!!|![a-z\-]+!)$/i,Id=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Rd(e){return Object.prototype.toString.call(e)}function Nd(e){return 10===e||13===e}function Dd(e){return 9===e||32===e}function Md(e){return 9===e||32===e||10===e||13===e}function Fd(e){return 44===e||91===e||93===e||123===e||125===e}function qd(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Ud(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function Ld(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var Bd=new Array(256),Wd=new Array(256),Vd=0;Vd<256;Vd++)Bd[Vd]=Ud(Vd)?1:0,Wd[Vd]=Ud(Vd);function Gd(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||$d,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Hd(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=Gu(n),new Bu(t,n)}function Kd(e,t){throw Hd(e,t)}function Jd(e,t){e.onWarning&&e.onWarning.call(null,Hd(e,t))}var Zd={YAML:function(e,t,n){var o,r,i;null!==e.version&&Kd(e,"duplication of %YAML directive"),1!==n.length&&Kd(e,"YAML directive accepts exactly one argument"),null===(o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&Kd(e,"ill-formed argument of the YAML directive"),r=parseInt(o[1],10),i=parseInt(o[2],10),1!==r&&Kd(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Jd(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var o,r;2!==n.length&&Kd(e,"TAG directive accepts exactly two arguments"),o=n[0],r=n[1],xd.test(o)||Kd(e,"ill-formed tag handle (first argument) of the TAG directive"),kd.call(e.tagMap,o)&&Kd(e,'there is a previously declared suffix for "'+o+'" tag handle'),Id.test(r)||Kd(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){Kd(e,"tag prefix is malformed: "+r)}e.tagMap[o]=r}};function Yd(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||Kd(e,"expected valid JSON character");else Cd.test(s)&&Kd(e,"the stream contains non-printable characters");e.result+=s}}function Qd(e,t,n,o){var r,i,a,s;for(qu.isObject(n)||Kd(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],kd.call(t,i)||(t[i]=n[i],o[i]=!0)}function Xd(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])&&Kd(e,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===Rd(r[c])&&(r[c]="[object Object]");if("object"==typeof r&&"[object Object]"===Rd(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)Qd(e,t,i[c],n);else Qd(e,t,i,n);else e.json||kd.call(n,r)||!kd.call(t,r)||(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,Kd(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 ep(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Kd(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function tp(e,t,n){for(var o=0,r=e.input.charCodeAt(e.position);0!==r;){for(;Dd(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(!Nd(r))break;for(ep(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&&Jd(e,"deficient indentation"),o}function np(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!Md(t)))}function op(e,t){1===t?e.result+=" ":t>1&&(e.result+=qu.repeat("\n",t-1))}function rp(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,Kd(e,"tab characters must not be used in indentation")),45===o)&&Md(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,tp(e,!0,-1)&&e.lineIndent<=t)a.push(null),o=e.input.charCodeAt(e.position);else if(n=e.line,sp(e,t,Td,!1,!0),a.push(e.result),tp(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==o)Kd(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 ip(e){var t,n,o,r,i=!1,a=!1;if(33!==(r=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Kd(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)):Kd(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!Md(r);)33===r&&(a?Kd(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),xd.test(n)||Kd(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),Od.test(o)&&Kd(e,"tag suffix cannot contain flow indicator characters")}o&&!Id.test(o)&&Kd(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch(t){Kd(e,"tag name is malformed: "+o)}return i?e.tag=o:kd.call(e.tagMap,n)?e.tag=e.tagMap[n]+o:"!"===n?e.tag="!"+o:"!!"===n?e.tag="tag:yaml.org,2002:"+o:Kd(e,'undeclared tag handle "'+n+'"'),!0}function ap(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Kd(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Md(n)&&!Fd(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Kd(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function sp(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=Ad===n||Td===n,o&&tp(e,!0,-1)&&(m=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;ip(e)||ap(e);)tp(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&&Ad!==n||(p=jd===n||Pd===n?t:t+1,f=e.position-e.lineStart,1===h?s&&(rp(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,Kd(e,"tab characters must not be used in indentation")),o=e.input.charCodeAt(e.position+1),i=e.line,63!==c&&58!==c||!Md(o)){if(a=e.line,s=e.lineStart,l=e.position,!sp(e,n,Pd,!1,!0))break;if(e.line===i){for(c=e.input.charCodeAt(e.position);Dd(c);)c=e.input.charCodeAt(++e.position);if(58===c)Md(c=e.input.charCodeAt(++e.position))||Kd(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Xd(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;Kd(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!w)return e.tag=u,e.anchor=d,!0;Kd(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(Xd(e,p,f,h,m,null,a,s,l),h=m=v=null),w=!0,y=!0,r=!0):y?(y=!1,r=!0):Kd(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),sp(e,t,Ad,!0,r)&&(y?m=e.result:v=e.result),y||(Xd(e,p,f,h,m,v,a,s,l),h=m=v=null),tp(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)Kd(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Xd(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(tp(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&&Kd(e,"expected the node content, but found ','"):Kd(e,"missed comma between flow collection entries"),p=null,s=l=!1,63===f&&Md(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,tp(e,!0,t)),n=e.line,o=e.lineStart,r=e.position,sp(e,t,jd,!1,!0),d=e.tag,u=e.result,tp(e,!0,t),f=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==f||(s=!0,f=e.input.charCodeAt(++e.position),tp(e,!0,t),sp(e,t,jd,!1,!0),p=e.result),c?Xd(e,i,y,d,u,p,n,o,r):s?i.push(Xd(e,null,y,d,u,p,n,o,r)):i.push(u),tp(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(h=!0,f=e.input.charCodeAt(++e.position)):h=!1}Kd(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=zd,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)zd===s?s=43===i?_d:Ed:Kd(e,"repeat of a chomping mode identifier");else{if(!((r=48<=(a=i)&&a<=57?a-48:-1)>=0))break;0===r?Kd(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?Kd(e,"repeat of an indentation width identifier"):(u=t+r-1,c=!0)}if(Dd(i)){do{i=e.input.charCodeAt(++e.position)}while(Dd(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Nd(i)&&0!==i)}for(;0!==i;){for(ep(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),Nd(i))d++;else{if(e.lineIndent<u){s===_d?e.result+=qu.repeat("\n",l?1+d:d):s===zd&&l&&(e.result+="\n");break}for(o?Dd(i)?(p=!0,e.result+=qu.repeat("\n",l?1+d:d)):p?(p=!1,e.result+=qu.repeat("\n",d+1)):0===d?l&&(e.result+=" "):e.result+=qu.repeat("\n",d):e.result+=qu.repeat("\n",l?1+d:d),l=!0,c=!0,d=0,n=e.position;!Nd(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Yd(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(Yd(e,o,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;o=e.position,e.position++,r=e.position}else Nd(n)?(Yd(e,o,r,!0),op(e,tp(e,!1,t)),o=r=e.position):e.position===e.lineStart&&np(e)?Kd(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);Kd(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 Yd(e,n,e.position,!0),e.position++,!0;if(92===s){if(Yd(e,n,e.position,!0),Nd(s=e.input.charCodeAt(++e.position)))tp(e,!1,t);else if(s<256&&Bd[s])e.result+=Wd[s],e.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(r=a,i=0;r>0;r--)(a=qd(s=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:Kd(e,"expected hexadecimal character");e.result+=Ld(i),e.position++}else Kd(e,"unknown escape sequence");n=o=e.position}else Nd(s)?(Yd(e,n,o,!0),op(e,tp(e,!1,t)),n=o=e.position):e.position===e.lineStart&&np(e)?Kd(e,"unexpected end of the document within a double quoted scalar"):(e.position++,o=e.position)}Kd(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?v=!0:!function(e){var t,n,o;if(42!==(o=e.input.charCodeAt(e.position)))return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!Md(o)&&!Fd(o);)o=e.input.charCodeAt(++e.position);return e.position===t&&Kd(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),kd.call(e.anchorMap,n)||Kd(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],tp(e,!0,-1),!0}(e)?function(e,t,n){var o,r,i,a,s,l,c,u,d=e.kind,p=e.result;if(Md(u=e.input.charCodeAt(e.position))||Fd(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(Md(o=e.input.charCodeAt(e.position+1))||n&&Fd(o)))return!1;for(e.kind="scalar",e.result="",r=i=e.position,a=!1;0!==u;){if(58===u){if(Md(o=e.input.charCodeAt(e.position+1))||n&&Fd(o))break}else if(35===u){if(Md(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&np(e)||n&&Fd(u))break;if(Nd(u)){if(s=e.line,l=e.lineStart,c=e.lineIndent,tp(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&&(Yd(e,r,i,!1),op(e,e.line-s),r=i=e.position,a=!1),Dd(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Yd(e,r,i,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,p,jd===n)&&(v=!0,null===e.tag&&(e.tag="?")):(v=!0,null===e.tag&&null===e.anchor||Kd(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(v=s&&rp(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&&Kd(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(kd.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||Kd(e,"unknown tag !<"+e.tag+">"),null!==e.result&&d.kind!==e.kind&&Kd(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)):Kd(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 lp(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))&&(tp(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Md(r);)r=e.input.charCodeAt(++e.position);for(o=[],(n=e.input.slice(t,e.position)).length<1&&Kd(e,"directive name must not be less than one character in length");0!==r;){for(;Dd(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!Nd(r));break}if(Nd(r))break;for(t=e.position;0!==r&&!Md(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}0!==r&&ep(e),kd.call(Zd,n)?Zd[n](e,n,o):Jd(e,'unknown document directive "'+n+'"')}tp(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,tp(e,!0,-1)):a&&Kd(e,"directives end mark is expected"),sp(e,e.lineIndent-1,Ad,!1,!0),tp(e,!0,-1),e.checkLineBreaks&&Sd.test(e.input.slice(i,e.position))&&Jd(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&np(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,tp(e,!0,-1)):e.position<e.length-1&&Kd(e,"end of the stream or a document separator is expected")}function cp(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 Gd(e,t),o=e.indexOf("\0");for(-1!==o&&(n.position=o,Kd(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;)lp(n);return n.documents}var up={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var o=cp(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=cp(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new Bu("expected a single document in the stream, but found more")}}},dp=Object.prototype.toString,pp=Object.prototype.hasOwnProperty,fp=65279,hp=9,mp=10,vp=13,yp=32,wp=33,gp=34,bp=35,$p=37,kp=38,jp=39,Pp=42,Tp=44,Ap=45,zp=58,Ep=61,_p=62,Cp=63,Sp=64,Op=91,xp=93,Ip=96,Rp=123,Np=124,Dp=125,Mp={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Fp=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],qp=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Up(e){var t,n,o;if(t=e.toString(16).toUpperCase(),e<=255)n="x",o=2;else if(e<=65535)n="u",o=4;else{if(!(e<=4294967295))throw new Bu("code point within a string may not be greater than 0xFFFFFFFF");n="U",o=8}return"\\"+n+qu.repeat("0",o-t.length)+t}var Lp=1,Bp=2;function Wp(e){this.schema=e.schema||$d,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=qu.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,o,r,i,a,s,l;if(null===t)return{};for(n={},r=0,i=(o=Object.keys(t)).length;r<i;r+=1)a=o[r],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=e.compiledTypeMap.fallback[a])&&pp.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?Bp:Lp,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Vp(e,t){for(var n,o=qu.repeat(" ",t),r=0,i=-1,a="",s=e.length;r<s;)-1===(i=e.indexOf("\n",r))?(n=e.slice(r),r=s):(n=e.slice(r,i+1),r=i+1),n.length&&"\n"!==n&&(a+=o),a+=n;return a}function Gp(e,t){return"\n"+qu.repeat(" ",e.indent*t)}function Hp(e){return e===yp||e===hp}function Kp(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==fp||65536<=e&&e<=1114111}function Jp(e){return Kp(e)&&e!==fp&&e!==vp&&e!==mp}function Zp(e,t,n){var o=Jp(e),r=o&&!Hp(e);return(n?o:o&&e!==Tp&&e!==Op&&e!==xp&&e!==Rp&&e!==Dp)&&e!==bp&&!(t===zp&&!r)||Jp(t)&&!Hp(t)&&e===bp||t===zp&&r}function Yp(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 Qp(e){return/^\n* /.test(e)}var Xp=1,ef=2,tf=3,nf=4,of=5;function rf(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=Kp(c=Yp(e,0))&&c!==fp&&!Hp(c)&&c!==Ap&&c!==Cp&&c!==zp&&c!==Tp&&c!==Op&&c!==xp&&c!==Rp&&c!==Dp&&c!==bp&&c!==kp&&c!==Pp&&c!==wp&&c!==Np&&c!==Ep&&c!==_p&&c!==jp&&c!==gp&&c!==$p&&c!==Sp&&c!==Ip&&function(e){return!Hp(e)&&e!==zp}(Yp(e,e.length-1));if(t||a)for(l=0;l<e.length;u>=65536?l+=2:l++){if(!Kp(u=Yp(e,l)))return of;v=v&&Zp(u,d,s),d=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if((u=Yp(e,l))===mp)p=!0,h&&(f=f||l-m-1>o&&" "!==e[m+1],m=l);else if(!Kp(u))return of;v=v&&Zp(u,d,s),d=u}f=f||h&&l-m-1>o&&" "!==e[m+1]}return p||f?n>9&&Qp(e)?of:a?i===Bp?of:ef:f?nf:tf:!v||a||r(e)?i===Bp?of:ef:Xp}function af(e,t,n,o,r){e.dump=function(){if(0===t.length)return e.quotingType===Bp?'""':"''";if(!e.noCompatMode&&(-1!==Fp.indexOf(t)||qp.test(t)))return e.quotingType===Bp?'"'+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(rf(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 Xp:return t;case ef:return"'"+t.replace(/'/g,"''")+"'";case tf:return"|"+sf(t,e.indent)+lf(Vp(t,i));case nf:return">"+sf(t,e.indent)+lf(Vp(function(e,t){var n,o,r=/(\n+)([^\n]*)/g,i=(s=e.indexOf("\n"),s=-1!==s?s:e.length,r.lastIndex=s,cf(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")+cf(c,t),a=n}return i}(t,a),i));case of:return'"'+function(e){for(var t,n="",o=0,r=0;r<e.length;o>=65536?r+=2:r++)o=Yp(e,r),!(t=Mp[o])&&Kp(o)?(n+=e[r],o>=65536&&(n+=e[r+1])):n+=t||Up(o);return n}(t)+'"';default:throw new Bu("impossible error: invalid scalar style")}}()}function sf(e,t){var n=Qp(e)?String(t):"",o="\n"===e[e.length-1];return n+(o&&("\n"===e[e.length-2]||"\n"===e)?"+":o?"":"-")+"\n"}function lf(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function cf(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 uf(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)),(pf(e,t+1,a,!0,!0,!1,!0)||void 0===a&&pf(e,t+1,null,!0,!0,!1,!0))&&(o&&""===s||(s+=Gp(e,t)),e.dump&&mp===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function df(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]"===dp.call(s.represent))o=s.represent(t,l);else{if(!pp.call(s.represent,l))throw new Bu("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');o=s.represent[l](t,l)}e.dump=o}return!0}return!1}function pf(e,t,n,o,r,i,a){e.tag=null,e.dump=n,df(e,n,!1)||df(e,n,!0);var s,l=dp.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 Bu("sortKeys must be a boolean or a function");for(r=0,i=p.length;r<i;r+=1)c="",o&&""===u||(c+=Gp(e,t)),s=n[a=p[r]],e.replacer&&(s=e.replacer.call(n,a,s)),pf(e,t+1,a,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&mp===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=Gp(e,t)),pf(e,t+1,s,!0,l)&&(e.dump&&mp===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)),pf(e,t,i,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),pf(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?uf(e,t-1,e.dump,r):uf(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)),(pf(e,t,i,!1,!1)||void 0===i&&pf(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 Bu("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&af(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 ff(e,t){var n,o,r=[],i=[];for(hf(e,r,i),n=0,o=i.length;n<o;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(o)}function hf(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)hf(e[r],t,n);else for(r=0,i=(o=Object.keys(e)).length;r<i;r+=1)hf(e[o[r]],t,n)}var mf=up.load,vf={dump:function(e,t){var n=new Wp(t=t||{});n.noRefs||ff(e,n);var o=e;return n.replacer&&(o=n.replacer.call({"":o},"",o)),pf(n,0,o,!0,!0)?n.dump+"\n":""}}.dump,yf=function(e){function t(t){var n,o,r=e.call(this,t)||this,i=r;return s(t)&&("object"==typeof t.document&&(i.document=new tc(t.document)),"object"==typeof t.input&&(i.input=new Zs(t.input)),"object"==typeof t.use&&(i.use=new Ru(t.use)),"object"==typeof t.do&&(i.do=new Cc(t.do)),"object"==typeof t.timeout&&(i.timeout=new Mu(t.timeout)),"object"==typeof t.output&&(i.output=new Qs(t.output)),"object"==typeof t.schedule&&(i.schedule=new wu(t.schedule))),null===(o=null===(n=h("Workflow"))||void 0===n?void 0:n.constructor)||void 0===o||o.call(n,r),r}return r(t,e),t.prototype.validate=function(e){var n=new t(this);Ga("Workflow",n,e)},t.prototype.normalize=function(){var e,n,o=new t(this);return(null===(n=null===(e=h("Workflow"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,o))||o},t.deserialize=function(e){var n=mf(e);return Ga("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):vf(i)},t.prototype.serialize=function(e,n){return void 0===e&&(e="yaml"),void 0===n&&(n=!0),t.serialize(this,e,n)},t}(c),wf={AllEventConsumptionStrategy:ns,AllEventConsumptionStrategyConfiguration:es,AnyEventConsumptionStrategy:as,AnyEventConsumptionStrategyConfiguration:rs,AsyncApiArguments:Is,AuthenticationPolicy:Ns,AuthenticationPolicyReference:Ms,BasicAuthenticationPolicy:qs,BasicAuthenticationPolicyConfiguration:ls,BasicAuthenticationProperties:Ls,BearerAuthenticationPolicy:Ws,BearerAuthenticationPolicyConfiguration:us,BearerAuthenticationProperties:Gs,CallAsyncAPI:ul,CallFunction:hl,CallGRPC:kl,CallHTTP:Ol,CallOpenAPI:Ml,CallTask:ql,Catalog:Ll,CatchErrors:Wl,ConstantBackoff:Gl,Container:Zl,ContainerEnvironment:Jl,ContainerPorts:Hl,ContainerVolumes:Kl,DigestAuthenticationPolicy:Yl,DigestAuthenticationPolicyConfiguration:ps,DigestAuthenticationProperties:Ql,Document:tc,DoTask:Sc,Duration:nl,DurationInline:Oc,EmitEventDefinition:rc,EmitEventWith:oc,EmitTask:xc,EmitTaskConfiguration:ic,Endpoint:Es,EndpointConfiguration:Ic,EndpointUri:Rc,Error:Nc,ErrorInstance:Dc,ErrorType:Mc,EventConsumptionStrategy:sc,EventDataschema:Fc,EventFilter:Qa,EventFilterCorrelate:Za,EventSource:qc,EventTime:Uc,ExponentialBackOff:Lc,Export:el,ExportAs:Bc,Extension:Wc,ExtensionItem:Vc,ExternalResource:Cs,ExternalScript:Gc,FlowDirective:Hc,ForkTask:Kc,ForkTaskConfiguration:nc,ForTask:Jc,ForTaskConfiguration:ac,FunctionArguments:pl,GRPCArguments:bl,HTTPArguments:Cl,InlineScript:Zc,Input:Zs,InputFrom:Yc,LinearBackoff:Qc,ListenTask:Xc,ListenTaskConfiguration:lc,OAuth2AutenthicationData:eu,OAuth2AutenthicationDataAudiences:tu,OAuth2AutenthicationDataClient:hs,OAuth2AutenthicationDataScopes:nu,OAuth2AuthenticationPolicy:ou,OAuth2AuthenticationPolicyConfiguration:ks,OAuth2AuthenticationPropertiesEndpoints:bs,OAuth2ConnectAuthenticationProperties:ru,OAuth2Issuers:iu,OAuth2TokenDefinition:ws,OAuth2TokenRequest:vs,OneEventConsumptionStrategy:au,OpenAPIArguments:Nl,OpenIdConnectAuthenticationPolicy:su,OpenIdConnectAuthenticationPolicyConfiguration:Ps,OpenIdConnectAuthenticationProperties:lu,Output:Qs,OutputAs:cu,RaiseTask:uu,RaiseTaskConfiguration:uc,RaiseTaskRaiseError:cc,ReferenceableAuthenticationPolicy:As,RetryBackoff:kc,RetryLimit:Pc,RetryLimitAttempt:jc,RetryPolicy:du,RetryPolicyJitter:Tc,RunContainer:pu,RunScript:fu,RunShell:hu,RunTask:mu,RunTaskConfiguration:yc,RuntimeExpression:vu,RunWorkflow:yu,Schedule:wu,Schema:Ks,SchemaExternal:gu,SchemaInline:bu,Script:dc,SecretBasedAuthenticationPolicy:$u,SetTask:ku,SetTaskConfiguration:wc,Shell:hc,ShellArguments:pc,ShellEnvironment:fc,SubflowConfiguration:vc,SubflowInput:mc,SwitchCase:gc,SwitchItem:bc,SwitchTask:ju,SwitchTaskConfiguration:$c,Task:Ec,TaskBase:ll,TaskBaseIf:Pu,TaskBaseTimeout:rl,TaskItem:_c,TaskList:Cc,TaskMetadata:al,Timeout:Tu,TryTask:Au,TryTaskCatch:zc,TryTaskCatchRetry:Ac,UriTemplate:zu,Use:Ru,UseAuthentications:Eu,UseCatalogs:Iu,UseErrors:_u,UseExtensions:Cu,UseFunctions:Su,UseRetries:Ou,UseSecrets:Nu,UseTimeouts:xu,WaitTask:Du,WithAsyncAPIPayload:Os,WithEvent:Ka,WithGRPCArguments:wl,WithGRPCService:vl,WithHTTPBody:Al,WithHTTPHeaders:Pl,WithHTTPQuery:El,WithOpenAPIParameters:Il,Workflow:yf,WorkflowMetadata:ec,WorkflowTags:Xl,WorkflowTimeout:Mu};function gf(e,t){var n=new wf.AllEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var bf=function(e){return t(e,gf)};function $f(e,t){var n=new wf.AllEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var kf=function(e){return n(e,$f)};function jf(e,t){var n=new wf.AnyEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Pf=function(e){return t(e,jf)};function Tf(e,t){var n=new wf.AnyEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Af=function(e){return n(e,Tf)};function zf(e,t){var n=new wf.AsyncApiArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ef=function(e){return t(e,zf)};function _f(e,t){var n=new wf.AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Cf=function(e){return t(e,_f)};function Sf(e,t){var n=new wf.AuthenticationPolicyReference(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Of=function(e){return t(e,Sf)};function xf(e,t){var n=new wf.BasicAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var If=function(e){return t(e,xf)};function Rf(e,t){var n=new wf.BasicAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Nf=function(e){return t(e,Rf)};function Df(e,t){var n=new wf.BasicAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Mf=function(e){return t(e,Df)};function Ff(e,t){var n=new wf.BearerAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var qf=function(e){return t(e,Ff)};function Uf(e,t){var n=new wf.BearerAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Lf=function(e){return t(e,Uf)};function Bf(e,t){var n=new wf.BearerAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Wf=function(e){return t(e,Bf)};function Vf(e,t){var n=new wf.CallAsyncAPI(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Gf=function(e){return t(e,Vf)};function Hf(e,t){var n=new wf.CallFunction(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Kf=function(e){return t(e,Hf)};function Jf(e,t){var n=new wf.CallGRPC(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Zf=function(e){return t(e,Jf)};function Yf(e,t){var n=new wf.CallHTTP(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Qf=function(e){return t(e,Yf)};function Xf(e,t){var n=new wf.CallOpenAPI(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var eh=function(e){return t(e,Xf)};function th(e,t){var n=new wf.CallTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var nh=function(e){return t(e,th)};function oh(e,t){var n=new wf.Catalog(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var rh=function(e){return t(e,oh)};function ih(e,t){var n=new wf.CatchErrors(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ah=function(e){return t(e,ih)};function sh(e,t){var n=new wf.ConstantBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var lh=function(e){return t(e,sh)};function ch(e,t){var n=new wf.Container(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var uh=function(e){return t(e,ch)};function dh(e,t){var n=new wf.ContainerEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ph=function(e){return t(e,dh)};function fh(e,t){var n=new wf.ContainerPorts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var hh=function(e){return t(e,fh)};function mh(e,t){var n=new wf.ContainerVolumes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var vh=function(e){return t(e,mh)};function yh(e,t){var n=new wf.DigestAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var wh=function(e){return t(e,yh)};function gh(e,t){var n=new wf.DigestAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var bh=function(e){return t(e,gh)};function $h(e,t){var n=new wf.DigestAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var kh=function(e){return t(e,$h)};function jh(e,t){var n=new wf.Document(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ph=function(e){return t(e,jh)};function Th(e,t){var n=new wf.DoTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ah=function(e){return t(e,Th)};function zh(e,t){var n=new wf.Duration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Eh=function(e){return t(e,zh)};function _h(e,t){var n=new wf.DurationInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ch=function(e){return t(e,_h)};function Sh(e,t){var n=new wf.EmitEventDefinition(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Oh=function(e){return t(e,Sh)};function xh(e,t){var n=new wf.EmitEventWith(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ih=function(e){return t(e,xh)};function Rh(e,t){var n=new wf.EmitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Nh=function(e){return t(e,Rh)};function Dh(e,t){var n=new wf.EmitTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Mh=function(e){return t(e,Dh)};function Fh(e,t){var n=new wf.Endpoint(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var qh=function(e){return t(e,Fh)};function Uh(e,t){var n=new wf.EndpointConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Lh=function(e){return t(e,Uh)};function Bh(e,t){var n=new wf.EndpointUri(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Wh=function(e){return t(e,Bh)};function Vh(e,t){var n=new wf.Error(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Gh=function(e){return t(e,Vh)};function Hh(e,t){var n=new wf.ErrorInstance(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Kh=function(e){return t(e,Hh)};function Jh(e,t){var n=new wf.ErrorType(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Zh=function(e){return t(e,Jh)};function Yh(e,t){var n=new wf.EventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Qh=function(e){return t(e,Yh)};function Xh(e,t){var n=new wf.EventDataschema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var em=function(e){return t(e,Xh)};function tm(e,t){var n=new wf.EventFilter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var nm=function(e){return t(e,tm)};function om(e,t){var n=new wf.EventFilterCorrelate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var rm=function(e){return t(e,om)};function im(e,t){var n=new wf.EventSource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var am=function(e){return t(e,im)};function sm(e,t){var n=new wf.EventTime(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var lm=function(e){return t(e,sm)};function cm(e,t){var n=new wf.ExponentialBackOff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var um=function(e){return t(e,cm)};function dm(e,t){var n=new wf.Export(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var pm=function(e){return t(e,dm)};function fm(e,t){var n=new wf.ExportAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var hm=function(e){return t(e,fm)};function mm(e,t){var n=new wf.Extension(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var vm=function(e){return t(e,mm)};function ym(e,t){var n=new wf.ExtensionItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var wm=function(e){return t(e,ym)};function gm(e,t){var n=new wf.ExternalResource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var bm=function(e){return t(e,gm)};function $m(e,t){var n=new wf.ExternalScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var km=function(e){return t(e,$m)};function jm(e,t){var n=new wf.FlowDirective(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Pm=function(e){return t(e,jm)};function Tm(e,t){var n=new wf.ForkTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Am=function(e){return t(e,Tm)};function zm(e,t){var n=new wf.ForkTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Em=function(e){return t(e,zm)};function _m(e,t){var n=new wf.ForTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Cm=function(e){return t(e,_m)};function Sm(e,t){var n=new wf.ForTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Om=function(e){return t(e,Sm)};function xm(e,t){var n=new wf.FunctionArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Im=function(e){return t(e,xm)};function Rm(e,t){var n=new wf.GRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Nm=function(e){return t(e,Rm)};function Dm(e,t){var n=new wf.HTTPArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Mm=function(e){return t(e,Dm)};function Fm(e,t){var n=new wf.InlineScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var qm=function(e){return t(e,Fm)};function Um(e,t){var n=new wf.Input(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Lm=function(e){return t(e,Um)};function Bm(e,t){var n=new wf.InputFrom(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Wm=function(e){return t(e,Bm)};function Vm(e,t){var n=new wf.LinearBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Gm=function(e){return t(e,Vm)};function Hm(e,t){var n=new wf.ListenTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Km=function(e){return t(e,Hm)};function Jm(e,t){var n=new wf.ListenTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Zm=function(e){return t(e,Jm)};function Ym(e,t){var n=new wf.OAuth2AutenthicationData(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Qm=function(e){return t(e,Ym)};function Xm(e,t){var n=new wf.OAuth2AutenthicationDataAudiences(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ev=function(e){return n(e,Xm)};function tv(e,t){var n=new wf.OAuth2AutenthicationDataClient(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var nv=function(e){return t(e,tv)};function ov(e,t){var n=new wf.OAuth2AutenthicationDataScopes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var rv=function(e){return n(e,ov)};function iv(e,t){var n=new wf.OAuth2AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var av=function(e){return t(e,iv)};function sv(e,t){var n=new wf.OAuth2AuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var lv=function(e){return t(e,sv)};function cv(e,t){var n=new wf.OAuth2AuthenticationPropertiesEndpoints(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var uv=function(e){return t(e,cv)};function dv(e,t){var n=new wf.OAuth2ConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var pv=function(e){return t(e,dv)};function fv(e,t){var n=new wf.OAuth2Issuers(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var hv=function(e){return n(e,fv)};function mv(e,t){var n=new wf.OAuth2TokenDefinition(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var vv=function(e){return t(e,mv)};function yv(e,t){var n=new wf.OAuth2TokenRequest(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var wv=function(e){return t(e,yv)};function gv(e,t){var n=new wf.OneEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var bv=function(e){return t(e,gv)};function $v(e,t){var n=new wf.OpenAPIArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var kv=function(e){return t(e,$v)};function jv(e,t){var n=new wf.OpenIdConnectAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Pv=function(e){return t(e,jv)};function Tv(e,t){var n=new wf.OpenIdConnectAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Av=function(e){return t(e,Tv)};function zv(e,t){var n=new wf.OpenIdConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ev=function(e){return t(e,zv)};function _v(e,t){var n=new wf.Output(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Cv=function(e){return t(e,_v)};function Sv(e,t){var n=new wf.OutputAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ov=function(e){return t(e,Sv)};function xv(e,t){var n=new wf.RaiseTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Iv=function(e){return t(e,xv)};function Rv(e,t){var n=new wf.RaiseTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Nv=function(e){return t(e,Rv)};function Dv(e,t){var n=new wf.RaiseTaskRaiseError(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Mv=function(e){return t(e,Dv)};function Fv(e,t){var n=new wf.ReferenceableAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var qv=function(e){return t(e,Fv)};function Uv(e,t){var n=new wf.RetryBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Lv=function(e){return t(e,Uv)};function Bv(e,t){var n=new wf.RetryLimit(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Wv=function(e){return t(e,Bv)};function Vv(e,t){var n=new wf.RetryLimitAttempt(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Gv=function(e){return t(e,Vv)};function Hv(e,t){var n=new wf.RetryPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Kv=function(e){return t(e,Hv)};function Jv(e,t){var n=new wf.RetryPolicyJitter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Zv=function(e){return t(e,Jv)};function Yv(e,t){var n=new wf.RunContainer(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Qv=function(e){return t(e,Yv)};function Xv(e,t){var n=new wf.RunScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ey=function(e){return t(e,Xv)};function ty(e,t){var n=new wf.RunShell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ny=function(e){return t(e,ty)};function oy(e,t){var n=new wf.RunTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ry=function(e){return t(e,oy)};function iy(e,t){var n=new wf.RunTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ay=function(e){return t(e,iy)};function sy(e,t){var n=new wf.RuntimeExpression(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ly=function(e){return t(e,sy)};function cy(e,t){var n=new wf.RunWorkflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var uy=function(e){return t(e,cy)};function dy(e,t){var n=new wf.Schedule(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var py=function(e){return t(e,dy)};function fy(e,t){var n=new wf.Schema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var hy=function(e){return t(e,fy)};function my(e,t){var n=new wf.SchemaExternal(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var vy=function(e){return t(e,my)};function yy(e,t){var n=new wf.SchemaInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var wy=function(e){return t(e,yy)};function gy(e,t){var n=new wf.Script(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var by=function(e){return t(e,gy)};function $y(e,t){var n=new wf.SecretBasedAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ky=function(e){return t(e,$y)};function jy(e,t){var n=new wf.SetTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Py=function(e){return t(e,jy)};function Ty(e,t){var n=new wf.SetTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ay=function(e){return t(e,Ty)};function zy(e,t){var n=new wf.Shell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ey=function(e){return t(e,zy)};function _y(e,t){var n=new wf.ShellArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Cy=function(e){return t(e,_y)};function Sy(e,t){var n=new wf.ShellEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Oy=function(e){return t(e,Sy)};function xy(e,t){var n=new wf.SubflowConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Iy=function(e){return t(e,xy)};function Ry(e,t){var n=new wf.SubflowInput(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ny=function(e){return t(e,Ry)};function Dy(e,t){var n=new wf.SwitchCase(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var My=function(e){return t(e,Dy)};function Fy(e,t){var n=new wf.SwitchItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var qy=function(e){return t(e,Fy)};function Uy(e,t){var n=new wf.SwitchTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ly=function(e){return t(e,Uy)};function By(e,t){var n=new wf.SwitchTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Wy=function(e){return t(e,By)};function Vy(e,t){var n=new wf.Task(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Gy=function(e){return t(e,Vy)};function Hy(e,t){var n=new wf.TaskBase(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ky=function(e){return t(e,Hy)};function Jy(e,t){var n=new wf.TaskBaseIf(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Zy=function(e){return t(e,Jy)};function Yy(e,t){var n=new wf.TaskBaseTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Qy=function(e){return t(e,Yy)};function Xy(e,t){var n=new wf.TaskItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ew=function(e){return t(e,Xy)};function tw(e,t){var n=new wf.TaskList(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var nw=function(e){return n(e,tw)};function ow(e,t){var n=new wf.TaskMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var rw=function(e){return t(e,ow)};function iw(e,t){var n=new wf.Timeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var aw=function(e){return t(e,iw)};function sw(e,t){var n=new wf.TryTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var lw=function(e){return t(e,sw)};function cw(e,t){var n=new wf.TryTaskCatch(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var uw=function(e){return t(e,cw)};function dw(e,t){var n=new wf.TryTaskCatchRetry(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var pw=function(e){return t(e,dw)};function fw(e,t){var n=new wf.UriTemplate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var hw=function(e){return t(e,fw)};function mw(e,t){var n=new wf.Use(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var vw=function(e){return t(e,mw)};function yw(e,t){var n=new wf.UseAuthentications(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ww=function(e){return t(e,yw)};function gw(e,t){var n=new wf.UseCatalogs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var bw=function(e){return t(e,gw)};function $w(e,t){var n=new wf.UseErrors(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var kw=function(e){return t(e,$w)};function jw(e,t){var n=new wf.UseExtensions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Pw=function(e){return n(e,jw)};function Tw(e,t){var n=new wf.UseFunctions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Aw=function(e){return t(e,Tw)};function zw(e,t){var n=new wf.UseRetries(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ew=function(e){return t(e,zw)};function _w(e,t){var n=new wf.UseSecrets(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Cw=function(e){return n(e,_w)};function Sw(e,t){var n=new wf.UseTimeouts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ow=function(e){return t(e,Sw)};function xw(e,t){var n=new wf.WaitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Iw=function(e){return t(e,xw)};function Rw(e,t){var n=new wf.WithAsyncAPIPayload(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Nw=function(e){return t(e,Rw)};function Dw(e,t){var n=new wf.WithEvent(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Mw=function(e){return t(e,Dw)};function Fw(e,t){var n=new wf.WithGRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var qw=function(e){return t(e,Fw)};function Uw(e,t){var n=new wf.WithGRPCService(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Lw=function(e){return t(e,Uw)};function Bw(e,t){var n=new wf.WithHTTPBody(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ww=function(e){return t(e,Bw)};function Vw(e,t){var n=new wf.WithHTTPHeaders(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Gw=function(e){return t(e,Vw)};function Hw(e,t){var n=new wf.WithHTTPQuery(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Kw=function(e){return t(e,Hw)};function Jw(e,t){var n=new wf.WithOpenAPIParameters(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Zw=function(e){return t(e,Jw)};function Yw(e,t){var n=new wf.Workflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Qw=function(e){return t(e,Yw)};function Xw(e,t){var n=new wf.WorkflowMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var eg=function(e){return t(e,Xw)};function tg(e,t){var n=new wf.WorkflowTags(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ng=function(e){return t(e,tg)};function og(e,t){var n=new wf.WorkflowTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var rg=function(e){return t(e,og)},ig=Object.freeze({__proto__:null});export{wf as Classes,ig as Specification,bf as allEventConsumptionStrategyBuilder,kf as allEventConsumptionStrategyConfigurationBuilder,Pf as anyEventConsumptionStrategyBuilder,Af as anyEventConsumptionStrategyConfigurationBuilder,Ef as asyncApiArgumentsBuilder,Cf as authenticationPolicyBuilder,Of as authenticationPolicyReferenceBuilder,If as basicAuthenticationPolicyBuilder,Nf as basicAuthenticationPolicyConfigurationBuilder,Mf as basicAuthenticationPropertiesBuilder,qf as bearerAuthenticationPolicyBuilder,Lf as bearerAuthenticationPolicyConfigurationBuilder,Wf as bearerAuthenticationPropertiesBuilder,Gf as callAsyncAPIBuilder,Kf as callFunctionBuilder,Zf as callGRPCBuilder,Qf as callHTTPBuilder,eh as callOpenAPIBuilder,nh as callTaskBuilder,rh as catalogBuilder,ah as catchErrorsBuilder,lh as constantBackoffBuilder,uh as containerBuilder,ph as containerEnvironmentBuilder,hh as containerPortsBuilder,vh as containerVolumesBuilder,wh as digestAuthenticationPolicyBuilder,bh as digestAuthenticationPolicyConfigurationBuilder,kh as digestAuthenticationPropertiesBuilder,Ah as doTaskBuilder,Ph as documentBuilder,Eh as durationBuilder,Ch as durationInlineBuilder,Oh as emitEventDefinitionBuilder,Ih as emitEventWithBuilder,Nh as emitTaskBuilder,Mh as emitTaskConfigurationBuilder,qh as endpointBuilder,Lh as endpointConfigurationBuilder,Wh as endpointUriBuilder,Gh as errorBuilder,Kh as errorInstanceBuilder,Zh as errorTypeBuilder,Qh as eventConsumptionStrategyBuilder,em as eventDataschemaBuilder,nm as eventFilterBuilder,rm as eventFilterCorrelateBuilder,am as eventSourceBuilder,lm as eventTimeBuilder,um as exponentialBackOffBuilder,hm as exportAsBuilder,pm as exportBuilder,vm as extensionBuilder,wm as extensionItemBuilder,bm as externalResourceBuilder,km as externalScriptBuilder,Pm as flowDirectiveBuilder,Cm as forTaskBuilder,Om as forTaskConfigurationBuilder,Am as forkTaskBuilder,Em as forkTaskConfigurationBuilder,Im as functionArgumentsBuilder,Nm as gRPCArgumentsBuilder,Mm as hTTPArgumentsBuilder,qm as inlineScriptBuilder,Lm as inputBuilder,Wm as inputFromBuilder,Gm as linearBackoffBuilder,Km as listenTaskBuilder,Zm as listenTaskConfigurationBuilder,ev as oAuth2AutenthicationDataAudiencesBuilder,Qm as oAuth2AutenthicationDataBuilder,nv as oAuth2AutenthicationDataClientBuilder,rv as oAuth2AutenthicationDataScopesBuilder,av as oAuth2AuthenticationPolicyBuilder,lv as oAuth2AuthenticationPolicyConfigurationBuilder,uv as oAuth2AuthenticationPropertiesEndpointsBuilder,pv as oAuth2ConnectAuthenticationPropertiesBuilder,hv as oAuth2IssuersBuilder,vv as oAuth2TokenDefinitionBuilder,wv as oAuth2TokenRequestBuilder,bv as oneEventConsumptionStrategyBuilder,kv as openAPIArgumentsBuilder,Pv as openIdConnectAuthenticationPolicyBuilder,Av as openIdConnectAuthenticationPolicyConfigurationBuilder,Ev as openIdConnectAuthenticationPropertiesBuilder,Ov as outputAsBuilder,Cv as outputBuilder,Iv as raiseTaskBuilder,Nv as raiseTaskConfigurationBuilder,Mv as raiseTaskRaiseErrorBuilder,qv as referenceableAuthenticationPolicyBuilder,Lv as retryBackoffBuilder,Gv as retryLimitAttemptBuilder,Wv as retryLimitBuilder,Kv as retryPolicyBuilder,Zv as retryPolicyJitterBuilder,Qv as runContainerBuilder,ey as runScriptBuilder,ny as runShellBuilder,ry as runTaskBuilder,ay as runTaskConfigurationBuilder,uy as runWorkflowBuilder,ly as runtimeExpressionBuilder,py as scheduleBuilder,hy as schemaBuilder,vy as schemaExternalBuilder,wy as schemaInlineBuilder,by as scriptBuilder,ky as secretBasedAuthenticationPolicyBuilder,Py as setTaskBuilder,Ay as setTaskConfigurationBuilder,Cy as shellArgumentsBuilder,Ey as shellBuilder,Oy as shellEnvironmentBuilder,Iy as subflowConfigurationBuilder,Ny as subflowInputBuilder,My as switchCaseBuilder,qy as switchItemBuilder,Ly as switchTaskBuilder,Wy as switchTaskConfigurationBuilder,Ky as taskBaseBuilder,Zy as taskBaseIfBuilder,Qy as taskBaseTimeoutBuilder,Gy as taskBuilder,ew as taskItemBuilder,nw as taskListBuilder,rw as taskMetadataBuilder,aw as timeoutBuilder,lw as tryTaskBuilder,uw as tryTaskCatchBuilder,pw as tryTaskCatchRetryBuilder,hw as uriTemplateBuilder,ww as useAuthenticationsBuilder,vw as useBuilder,bw as useCatalogsBuilder,kw as useErrorsBuilder,Pw as useExtensionsBuilder,Aw as useFunctionsBuilder,Ew as useRetriesBuilder,Cw as useSecretsBuilder,Ow as useTimeoutsBuilder,Ga as validate,Iw as waitTaskBuilder,Nw as withAsyncAPIPayloadBuilder,Mw as withEventBuilder,qw as withGRPCArgumentsBuilder,Lw as withGRPCServiceBuilder,Ww as withHTTPBodyBuilder,Gw as withHTTPHeadersBuilder,Kw as withHTTPQueryBuilder,Zw as withOpenAPIParametersBuilder,Qw as workflowBuilder,eg as workflowMetadataBuilder,ng as workflowTagsBuilder,rg as workflowTimeoutBuilder};
|
|
9
|
+
function Yu(e){return null==e}var Qu={isNothing:Yu,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:Yu(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 Xu(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 ed(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Xu(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}ed.prototype=Object.create(Error.prototype),ed.prototype.constructor=ed,ed.prototype.toString=function(e){return this.name+": "+Xu(this,e)};var td=ed;function nd(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 rd(e,t){return Qu.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,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=nd(e.buffer,o[a-s],i[a-s],e.position-(o[a]-o[a-s]),d),c=Qu.repeat(" ",t.indent)+rd((e.line-s+1).toString(),u)+" | "+l.str+"\n"+c;for(l=nd(e.buffer,o[a],i[a],e.position,d),c+=Qu.repeat(" ",t.indent)+rd((e.line+1).toString(),u)+" | "+l.str+"\n",c+=Qu.repeat("-",t.indent+u+3+l.pos)+"^\n",s=1;s<=t.linesAfter&&!(a+s>=i.length);s++)l=nd(e.buffer,o[a+s],i[a+s],e.position-(o[a]-o[a+s]),d),c+=Qu.repeat(" ",t.indent)+rd((e.line+s+1).toString(),u)+" | "+l.str+"\n";return c.replace(/\n$/,"")},id=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ad=["scalar","sequence","mapping"];var sd=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===id.indexOf(t))throw new td('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===ad.indexOf(this.kind))throw new td('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function ld(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 cd(e){return this.extend(e)}cd.prototype.extend=function(e){var t=[],n=[];if(e instanceof sd)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 td("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 sd))throw new td("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new td("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 td("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 sd))throw new td("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(cd.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=ld(r,"implicit"),r.compiledExplicit=ld(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 ud=new cd({explicit:[new sd("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),new sd("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),new sd("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})]});var dd=new sd("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 pd=new sd("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 fd(e){return 48<=e&&e<=55}function hd(e){return 48<=e&&e<=57}var md=new sd("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(!fd(e.charCodeAt(o)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;o<r;o++)if("_"!==(t=e[o])){if(!hd(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&&!Qu.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),vd=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var yd=/^[-+]?[0-9]+e/;var wd=new sd("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!vd.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||Qu.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Qu.isNegativeZero(e))return"-0.0";return n=e.toString(10),yd.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),gd=ud.extend({implicit:[dd,pd,md,wd]}),bd=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),kd=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 $d=new sd("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==bd.exec(e)||null!==kd.exec(e))},construct:function(e){var t,n,r,o,i,a,s,l,c=0,u=null;if(null===(t=bd.exec(e))&&(t=kd.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 jd=new sd("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),Ad="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Td=new sd("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,o=e.length,i=Ad;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=Ad,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=Ad;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}}),Pd=Object.prototype.hasOwnProperty,Ed=Object.prototype.toString;var zd=new sd("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]"!==Ed.call(r))return!1;for(o in r)if(Pd.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:[]}}),Cd=Object.prototype.toString;var Sd=new sd("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]"!==Cd.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}}),_d=Object.prototype.hasOwnProperty;var Od=new sd("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(_d.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),xd=gd.extend({implicit:[$d,jd],explicit:[Td,zd,Sd,Od]}),Id=Object.prototype.hasOwnProperty,Rd=1,Nd=2,Dd=3,Md=4,qd=1,Fd=2,Ud=3,Ld=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Bd=/[\x85\u2028\u2029]/,Vd=/[,\[\]\{\}]/,Wd=/^(?:!|!!|![a-z\-]+!)$/i,Gd=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Hd(e){return Object.prototype.toString.call(e)}function Kd(e){return 10===e||13===e}function Jd(e){return 9===e||32===e}function Zd(e){return 9===e||32===e||10===e||13===e}function Yd(e){return 44===e||91===e||93===e||123===e||125===e}function Qd(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Xd(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 ep(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var tp=new Array(256),np=new Array(256),rp=0;rp<256;rp++)tp[rp]=Xd(rp)?1:0,np[rp]=Xd(rp);function op(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||xd,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 ip(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 td(t,n)}function ap(e,t){throw ip(e,t)}function sp(e,t){e.onWarning&&e.onWarning.call(null,ip(e,t))}var lp={YAML:function(e,t,n){var r,o,i;null!==e.version&&ap(e,"duplication of %YAML directive"),1!==n.length&&ap(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&ap(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),i=parseInt(r[2],10),1!==o&&ap(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&sp(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&ap(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],Wd.test(r)||ap(e,"ill-formed tag handle (first argument) of the TAG directive"),Id.call(e.tagMap,r)&&ap(e,'there is a previously declared suffix for "'+r+'" tag handle'),Gd.test(o)||ap(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(t){ap(e,"tag prefix is malformed: "+o)}e.tagMap[r]=o}};function cp(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||ap(e,"expected valid JSON character");else Ld.test(s)&&ap(e,"the stream contains non-printable characters");e.result+=s}}function up(e,t,n,r){var o,i,a,s;for(Qu.isObject(n)||ap(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],Id.call(t,i)||(t[i]=n[i],r[i]=!0)}function dp(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])&&ap(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===Hd(o[c])&&(o[c]="[object Object]");if("object"==typeof o&&"[object Object]"===Hd(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)up(e,t,i[c],n);else up(e,t,i,n);else e.json||Id.call(n,o)||!Id.call(t,o)||(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,ap(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 pp(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):ap(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function fp(e,t,n){for(var r=0,o=e.input.charCodeAt(e.position);0!==o;){for(;Jd(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(!Kd(o))break;for(pp(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&&sp(e,"deficient indentation"),r}function hp(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))&&!Zd(t)))}function mp(e,t){1===t?e.result+=" ":t>1&&(e.result+=Qu.repeat("\n",t-1))}function vp(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,ap(e,"tab characters must not be used in indentation")),45===r)&&Zd(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,fp(e,!0,-1)&&e.lineIndent<=t)a.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,gp(e,t,Dd,!1,!0),a.push(e.result),fp(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)ap(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 yp(e){var t,n,r,o,i=!1,a=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&ap(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)):ap(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!Zd(o);)33===o&&(a?ap(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Wd.test(n)||ap(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),Vd.test(r)&&ap(e,"tag suffix cannot contain flow indicator characters")}r&&!Gd.test(r)&&ap(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){ap(e,"tag name is malformed: "+r)}return i?e.tag=r:Id.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:ap(e,'undeclared tag handle "'+n+'"'),!0}function wp(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&ap(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Zd(n)&&!Yd(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ap(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function gp(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||Dd===n,r&&fp(e,!0,-1)&&(m=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;yp(e)||wp(e);)fp(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=Rd===n||Nd===n?t:t+1,f=e.position-e.lineStart,1===h?s&&(vp(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,ap(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),i=e.line,63!==c&&58!==c||!Zd(r)){if(a=e.line,s=e.lineStart,l=e.position,!gp(e,n,Nd,!1,!0))break;if(e.line===i){for(c=e.input.charCodeAt(e.position);Jd(c);)c=e.input.charCodeAt(++e.position);if(58===c)Zd(c=e.input.charCodeAt(++e.position))||ap(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(dp(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;ap(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!w)return e.tag=u,e.anchor=d,!0;ap(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(dp(e,p,f,h,m,null,a,s,l),h=m=v=null),w=!0,y=!0,o=!0):y?(y=!1,o=!0):ap(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),gp(e,t,Md,!0,o)&&(y?m=e.result:v=e.result),y||(dp(e,p,f,h,m,v,a,s,l),h=m=v=null),fp(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)ap(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&dp(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(fp(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&&ap(e,"expected the node content, but found ','"):ap(e,"missed comma between flow collection entries"),p=null,s=l=!1,63===f&&Zd(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,fp(e,!0,t)),n=e.line,r=e.lineStart,o=e.position,gp(e,t,Rd,!1,!0),d=e.tag,u=e.result,fp(e,!0,t),f=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==f||(s=!0,f=e.input.charCodeAt(++e.position),fp(e,!0,t),gp(e,t,Rd,!1,!0),p=e.result),c?dp(e,i,y,d,u,p,n,r,o):s?i.push(dp(e,null,y,d,u,p,n,r,o)):i.push(u),fp(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(h=!0,f=e.input.charCodeAt(++e.position)):h=!1}ap(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=qd,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)qd===s?s=43===i?Ud:Fd:ap(e,"repeat of a chomping mode identifier");else{if(!((o=48<=(a=i)&&a<=57?a-48:-1)>=0))break;0===o?ap(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?ap(e,"repeat of an indentation width identifier"):(u=t+o-1,c=!0)}if(Jd(i)){do{i=e.input.charCodeAt(++e.position)}while(Jd(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Kd(i)&&0!==i)}for(;0!==i;){for(pp(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),Kd(i))d++;else{if(e.lineIndent<u){s===Ud?e.result+=Qu.repeat("\n",l?1+d:d):s===qd&&l&&(e.result+="\n");break}for(r?Jd(i)?(p=!0,e.result+=Qu.repeat("\n",l?1+d:d)):p?(p=!1,e.result+=Qu.repeat("\n",d+1)):0===d?l&&(e.result+=" "):e.result+=Qu.repeat("\n",d):e.result+=Qu.repeat("\n",l?1+d:d),l=!0,c=!0,d=0,n=e.position;!Kd(i)&&0!==i;)i=e.input.charCodeAt(++e.position);cp(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(cp(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,o=e.position}else Kd(n)?(cp(e,r,o,!0),mp(e,fp(e,!1,t)),r=o=e.position):e.position===e.lineStart&&hp(e)?ap(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);ap(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 cp(e,n,e.position,!0),e.position++,!0;if(92===s){if(cp(e,n,e.position,!0),Kd(s=e.input.charCodeAt(++e.position)))fp(e,!1,t);else if(s<256&&tp[s])e.result+=np[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=Qd(s=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:ap(e,"expected hexadecimal character");e.result+=ep(i),e.position++}else ap(e,"unknown escape sequence");n=r=e.position}else Kd(s)?(cp(e,n,r,!0),mp(e,fp(e,!1,t)),n=r=e.position):e.position===e.lineStart&&hp(e)?ap(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ap(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&&!Zd(r)&&!Yd(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ap(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Id.call(e.anchorMap,n)||ap(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],fp(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(Zd(u=e.input.charCodeAt(e.position))||Yd(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)&&(Zd(r=e.input.charCodeAt(e.position+1))||n&&Yd(r)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==u;){if(58===u){if(Zd(r=e.input.charCodeAt(e.position+1))||n&&Yd(r))break}else if(35===u){if(Zd(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&hp(e)||n&&Yd(u))break;if(Kd(u)){if(s=e.line,l=e.lineStart,c=e.lineIndent,fp(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&&(cp(e,o,i,!1),mp(e,e.line-s),o=i=e.position,a=!1),Jd(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return cp(e,o,i,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,p,Rd===n)&&(v=!0,null===e.tag&&(e.tag="?")):(v=!0,null===e.tag&&null===e.anchor||ap(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(v=s&&vp(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&&ap(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(Id.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||ap(e,"unknown tag !<"+e.tag+">"),null!==e.result&&d.kind!==e.kind&&ap(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)):ap(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 bp(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))&&(fp(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&&!Zd(o);)o=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&ap(e,"directive name must not be less than one character in length");0!==o;){for(;Jd(o);)o=e.input.charCodeAt(++e.position);if(35===o){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&!Kd(o));break}if(Kd(o))break;for(t=e.position;0!==o&&!Zd(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&pp(e),Id.call(lp,n)?lp[n](e,n,r):sp(e,'unknown document directive "'+n+'"')}fp(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,fp(e,!0,-1)):a&&ap(e,"directives end mark is expected"),gp(e,e.lineIndent-1,Md,!1,!0),fp(e,!0,-1),e.checkLineBreaks&&Bd.test(e.input.slice(i,e.position))&&sp(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&hp(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,fp(e,!0,-1)):e.position<e.length-1&&ap(e,"end of the stream or a document separator is expected")}function kp(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),r=e.indexOf("\0");for(-1!==r&&(n.position=r,ap(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;)bp(n);return n.documents}var $p={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=kp(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=kp(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new td("expected a single document in the stream, but found more")}}},jp=Object.prototype.toString,Ap=Object.prototype.hasOwnProperty,Tp=65279,Pp=9,Ep=10,zp=13,Cp=32,Sp=33,_p=34,Op=35,xp=37,Ip=38,Rp=39,Np=42,Dp=44,Mp=45,qp=58,Fp=61,Up=62,Lp=63,Bp=64,Vp=91,Wp=93,Gp=96,Hp=123,Kp=124,Jp=125,Zp={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"},Yp=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Qp=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Xp(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 td("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+Qu.repeat("0",r-t.length)+t}var ef=1,tf=2;function nf(e){this.schema=e.schema||xd,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Qu.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,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])&&Ap.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?tf:ef,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 rf(e,t){for(var n,r=Qu.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 of(e,t){return"\n"+Qu.repeat(" ",e.indent*t)}function af(e){return e===Cp||e===Pp}function sf(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==Tp||65536<=e&&e<=1114111}function lf(e){return sf(e)&&e!==Tp&&e!==zp&&e!==Ep}function cf(e,t,n){var r=lf(e),o=r&&!af(e);return(n?r:r&&e!==Dp&&e!==Vp&&e!==Wp&&e!==Hp&&e!==Jp)&&e!==Op&&!(t===qp&&!o)||lf(t)&&!af(t)&&e===Op||t===qp&&o}function uf(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 df(e){return/^\n* /.test(e)}var pf=1,ff=2,hf=3,mf=4,vf=5;function yf(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=sf(c=uf(e,0))&&c!==Tp&&!af(c)&&c!==Mp&&c!==Lp&&c!==qp&&c!==Dp&&c!==Vp&&c!==Wp&&c!==Hp&&c!==Jp&&c!==Op&&c!==Ip&&c!==Np&&c!==Sp&&c!==Kp&&c!==Fp&&c!==Up&&c!==Rp&&c!==_p&&c!==xp&&c!==Bp&&c!==Gp&&function(e){return!af(e)&&e!==qp}(uf(e,e.length-1));if(t||a)for(l=0;l<e.length;u>=65536?l+=2:l++){if(!sf(u=uf(e,l)))return vf;v=v&&cf(u,d,s),d=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if((u=uf(e,l))===Ep)p=!0,h&&(f=f||l-m-1>r&&" "!==e[m+1],m=l);else if(!sf(u))return vf;v=v&&cf(u,d,s),d=u}f=f||h&&l-m-1>r&&" "!==e[m+1]}return p||f?n>9&&df(e)?vf:a?i===tf?vf:ff:f?mf:hf:!v||a||o(e)?i===tf?vf:ff:pf}function wf(e,t,n,r,o){e.dump=function(){if(0===t.length)return e.quotingType===tf?'""':"''";if(!e.noCompatMode&&(-1!==Yp.indexOf(t)||Qp.test(t)))return e.quotingType===tf?'"'+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(yf(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 pf:return t;case ff:return"'"+t.replace(/'/g,"''")+"'";case hf:return"|"+gf(t,e.indent)+bf(rf(t,i));case mf:return">"+gf(t,e.indent)+bf(rf(function(e,t){var n,r,o=/(\n+)([^\n]*)/g,i=(s=e.indexOf("\n"),s=-1!==s?s:e.length,o.lastIndex=s,kf(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")+kf(c,t),a=n}return i}(t,a),i));case vf:return'"'+function(e){for(var t,n="",r=0,o=0;o<e.length;r>=65536?o+=2:o++)r=uf(e,o),!(t=Zp[r])&&sf(r)?(n+=e[o],r>=65536&&(n+=e[o+1])):n+=t||Xp(r);return n}(t)+'"';default:throw new td("impossible error: invalid scalar style")}}()}function gf(e,t){var n=df(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function bf(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function kf(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 $f(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)),(Af(e,t+1,a,!0,!0,!1,!0)||void 0===a&&Af(e,t+1,null,!0,!0,!1,!0))&&(r&&""===s||(s+=of(e,t)),e.dump&&Ep===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function jf(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]"===jp.call(s.represent))r=s.represent(t,l);else{if(!Ap.call(s.represent,l))throw new td("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');r=s.represent[l](t,l)}e.dump=r}return!0}return!1}function Af(e,t,n,r,o,i,a){e.tag=null,e.dump=n,jf(e,n,!1)||jf(e,n,!0);var s,l=jp.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 td("sortKeys must be a boolean or a function");for(o=0,i=p.length;o<i;o+=1)c="",r&&""===u||(c+=of(e,t)),s=n[a=p[o]],e.replacer&&(s=e.replacer.call(n,a,s)),Af(e,t+1,a,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&Ep===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=of(e,t)),Af(e,t+1,s,!0,l)&&(e.dump&&Ep===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)),Af(e,t,i,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Af(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?$f(e,t-1,e.dump,o):$f(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)),(Af(e,t,i,!1,!1)||void 0===i&&Af(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 td("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&wf(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 Tf(e,t){var n,r,o=[],i=[];for(Pf(e,o,i),n=0,r=i.length;n<r;n+=1)t.duplicates.push(o[i[n]]);t.usedDuplicates=new Array(r)}function Pf(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)Pf(e[o],t,n);else for(o=0,i=(r=Object.keys(e)).length;o<i;o+=1)Pf(e[r[o]],t,n)}var Ef,zf,Cf=$p.load,Sf={dump:function(e,t){var n=new nf(t=t||{});n.noRefs||Tf(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Af(n,0,r,!0,!0)?n.dump+"\n":""}}.dump,_f="-entry-node",Of="-exit-node",xf="root",If="/do",Rf="/for",Nf="/catch",Df="/fork/branches",Mf="/try";function qf(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 Ff(e,t,n,r){void 0===t&&(t=xf),void 0===n&&(n=void 0),void 0===r&&(r=void 0);var o={type:t===xf?Ef.Start:Ef.Entry,id:"".concat(t).concat(_f)},i={type:t===xf?Ef.End:Ef.Exit,id:"".concat(t).concat(Of)},a={id:t,label:n,type:e,parent:r,entryNode:o,exitNode:i,nodes:[o,i],edges:[]};return r&&r.nodes.push(a),a}function Uf(e){var t=Ff(Ef.Root);return Vf(t.entryNode,{graph:t,reference:If,taskList:qf(e.do),taskReference:If}),t}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 Bf(e,t,n){var r=e.exitNode||e;if(-1!=t.index){var o=Wf(i(i({},n),{taskReference:"".concat(n.reference,"/").concat(t.index,"/").concat(t.name),taskName:t.name}));Hf(n.graph,r,o.entryNode||o,t.label)}else if(t.name===zf.Exit)Hf(n.graph,r,n.graph.exitNode,t.label);else{if(t.name!==zf.End)throw new Error("Invalid transition");Hf(n.graph,r,n.graph.exitNode,t.label)}}function Vf(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 Bf(e,n,t)}))}function Wf(e){var t=e.taskList.get(e.taskName);if(!t)throw new Error("Unabled to find the task '".concat(e.taskName,"' in the current context"));if(t.call)return function(e,t){var n=Gf(Ef.Call,t);return n}(0,e);if(t.catch)return function(e,t){var n,r,o=Ff(Ef.TryCatch,t.taskReference,t.taskName,t.graph),a=Ff(Ef.Try,t.taskReference+Mf,t.taskName+" (try)",o);Hf(o,o.entryNode,a.entryNode);var s=i(i({},t),{graph:a,reference:a.id,taskList:qf(e.try),taskName:null});if(Vf(a.entryNode,s),null===(r=null===(n=e.catch)||void 0===n?void 0:n.do)||void 0===r?void 0:r.length){var l=Ff(Ef.Catch,t.taskReference+Nf+If,t.taskName+" (catch)",o);Hf(o,a.exitNode,l.entryNode);var c=i(i({},t),{graph:l,reference:l.id,taskList:qf(e.catch.do),taskName:null});Vf(l.entryNode,c),Hf(o,l.exitNode,o.exitNode)}else{var u={type:Ef.Catch,id:t.taskReference+Nf,label:t.taskName+" (catch)"};o.nodes.push(u),Hf(o,a.exitNode,u),Hf(o,u,o.exitNode)}return Vf(o,t),o}(t,e);if(t.emit)return function(e,t){var n=Gf(Ef.Emit,t);return n}(0,e);if(t.for)return function(e,t){var n=Ff(Ef.For,t.taskReference,t.taskName,t.graph),r=i(i({},t),{graph:n,reference:n.id+Rf+If,taskList:qf(e.do),taskName:null});return Vf(n.entryNode,r),Vf(n,t),n}(t,e);if(t.fork)return function(e,t){for(var n,r,o=Ff(Ef.Fork,t.taskReference,t.taskName,t.graph),a=0,s=(null===(n=e.fork)||void 0===n?void 0:n.branches.length)||0;a<s;a++){var l=null===(r=e.fork)||void 0===r?void 0:r.branches[a];if(l){var c=Object.entries(l)[0][0],u=Wf(i(i({},t),{graph:o,reference:"".concat(t.taskReference).concat(Df),taskList:qf([l]),taskReference:"".concat(t.taskReference).concat(Df,"/").concat(a,"/").concat(c),taskName:c}));Hf(o,o.entryNode,u.entryNode||u),Hf(o,u.exitNode||u,o.exitNode)}}return Vf(o,t),o}(t,e);if(t.listen)return function(e,t){var n=Gf(Ef.Listen,t);return n}(0,e);if(t.raise)return function(e,t){var n=Gf(Ef.Raise,t);return n}(0,e);if(t.run)return function(e,t){var n=Gf(Ef.Run,t);return n}(0,e);if(t.set)return function(e,t){var n=Gf(Ef.Set,t);return n}(0,e);if(t.switch)return function(e,t){var n,r=Gf(Ef.Switch,t),o=!1;null===(n=e.switch)||void 0===n||n.forEach((function(e){var n=Object.entries(e)[0],i=n[0],a=n[1];a.when||(o=!0);var s=Lf(t.taskList,t.taskName,a.then);s.label=i,Bf(r,s,t)})),o||Vf(r,t);return r}(t,e);if(t.wait)return function(e,t){var n=Gf(Ef.Wait,t);return n}(0,e);if(t.do)return function(e,t){var n=Ff(Ef.Do,t.taskReference,t.taskName,t.graph),r=i(i({},t),{graph:n,reference:t.taskReference+If,taskList:qf(e.do),taskName:null});return Vf(n.entryNode,r),Vf(n,t),n}(t,e);throw new Error("Unable to defined task type of task named '".concat(e.taskName,"'"))}function Gf(e,t){var n={type:e,id:t.taskReference,label:t.taskName};return t.graph.nodes.push(n),Vf(n,t),n}function Hf(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)}!function(e){e.Root="root",e.Start="start",e.End="end",e.Entry="entry",e.Exit="exit",e.Call="call",e.Catch="catch",e.Do="do",e.Emit="emit",e.For="for",e.Fork="fork",e.Listen="listen",e.Raise="raise",e.Run="run",e.Set="set",e.Switch="switch",e.Try="try",e.TryCatch="try-catch",e.Wait="wait"}(Ef||(Ef={})),function(e){e.Exit="exit",e.End="end",e.Continue="continue"}(zf||(zf={}));var Kf=function(e){return e.split("\n").map((function(e){return" ".concat(e)})).join("\n")};function Jf(e){var t="root"===e.id;return"".concat(t?"flowchart TD":"subgraph ".concat(e.id,' ["').concat(e.label||e.id,'"]'),"\n").concat(Kf(e.nodes.map((function(e){return function(e){var t,n="";if(null===(t=e.nodes)||void 0===t?void 0:t.length)n=Jf(e);else switch(n=e.id,e.type){case Ef.Entry:case Ef.Exit:n+=":::hidden";break;case Ef.Start:n+="(( ))";break;case Ef.End:n+="((( )))";break;default:n+='["'.concat(e.label,'"]')}return n}(e)})).join("\n")),"\n").concat(Kf(e.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(t?"":"end")}function Zf(e){return Jf(Uf(e))+"\n\nclassDef hidden display: none;"}var Yf=function(){function e(e){this.workflow=e}return e.prototype.sourceCode=function(){return Zf(this.workflow)},e}(),Qf=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 Hu(t.use)),"object"==typeof t.do&&(i.do=new Fc(t.do)),"object"==typeof t.timeout&&(i.timeout=new Zu(t.timeout)),"object"==typeof t.output&&(i.output=new tl(t.output)),"object"==typeof t.schedule&&(i.schedule=new Su(t.schedule))),null===(r=null===(n=m("Workflow"))||void 0===n?void 0:n.constructor)||void 0===r||r.call(n,o),o}return o(t,e),t.prototype.validate=function(e){var n=new t(this);Ha("Workflow",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t.deserialize=function(e){var n=Cf(e);return Ha("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):Sf(i)},t.toGraph=function(e){return Uf(e)},t.toMermaidCode=function(e){return Zf(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}(u),Xf={AllEventConsumptionStrategy:rs,AllEventConsumptionStrategyConfiguration:ts,AnyEventConsumptionStrategy:cs,AnyEventConsumptionStrategyConfiguration:is,AnyEventConsumptionStrategyUntil:ss,AnyEventUntilConsumed:ds,AsyncApiArguments:fs,AuthenticationPolicy:xs,AuthenticationPolicyReference:Rs,BasicAuthenticationPolicy:Ds,BasicAuthenticationPolicyConfiguration:ms,BasicAuthenticationProperties:qs,BearerAuthenticationPolicy:Us,BearerAuthenticationPolicyConfiguration:ys,BearerAuthenticationProperties:Bs,CallAsyncAPI:fl,CallFunction:yl,CallGRPC:Tl,CallHTTP:Rl,CallOpenAPI:Ul,CallTask:Bl,Catalog:Wl,CatchErrors:Jl,ConstantBackoff:Yl,Container:ic,ContainerEnvironment:rc,ContainerLifetime:oc,ContainerPorts:Xl,ContainerVolumes:tc,DigestAuthenticationPolicy:ac,DigestAuthenticationPolicyConfiguration:gs,DigestAuthenticationProperties:sc,Document:uc,DoTask:Uc,Duration:il,DurationInline:Lc,EmitEventDefinition:fc,EmitEventWith:pc,EmitTask:Bc,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:rl,ExportAs:eu,Extension:tu,ExtensionItem:nu,ExternalResource:Js,ExternalScript:ru,FlowDirective:iu,ForkTask:au,ForkTaskConfiguration:dc,ForTask:su,ForTaskConfiguration:mc,FunctionArguments:ml,GRPCArguments:jl,HTTPArguments:xl,HTTPBody:Cl,HTTPHeaders:El,HTTPQuery:_l,InlineScript:lu,Input:Xs,InputFrom:cu,LinearBackoff:uu,ListenTask:du,ListenTaskConfiguration:yc,OAuth2AutenthicationData:pu,OAuth2AutenthicationDataAudiences:fu,OAuth2AutenthicationDataClient:ks,OAuth2AutenthicationDataScopes:hu,OAuth2AuthenticationPolicy:mu,OAuth2AuthenticationPolicyConfiguration:Cs,OAuth2AuthenticationPropertiesEndpoints:Es,OAuth2ConnectAuthenticationProperties:vu,OAuth2Issuers:yu,OAuth2TokenDefinition:Ts,OAuth2TokenRequest:js,OneEventConsumptionStrategy:wu,OpenAPIArguments:ql,OpenIdConnectAuthenticationPolicy:gu,OpenIdConnectAuthenticationPolicyConfiguration:_s,OpenIdConnectAuthenticationProperties:bu,Output:tl,OutputAs:ku,RaiseTask:$u,RaiseTaskConfiguration:bc,RaiseTaskError:gc,ReferenceableAuthenticationPolicy:Ws,RetryBackoff:Oc,RetryLimit:Ic,RetryLimitAttempt:xc,RetryPolicy:ju,RetryPolicyJitter:Rc,RunContainer:Au,RunScript:Tu,RunShell:Pu,RunTask:Eu,RunTaskConfiguration:Ec,RuntimeExpression:zu,RunWorkflow:Cu,Schedule:Su,Schema:Ys,SchemaExternal:_u,SchemaInline:Ou,Script:kc,SecretBasedAuthenticationPolicy:xu,SetTask:Iu,SetTaskConfiguration:zc,Shell:Ac,ShellArguments:$c,ShellEnvironment:jc,SubflowConfiguration:Pc,SubflowInput:Tc,SubscriptionIterator:wc,SwitchCase:Cc,SwitchItem:Sc,SwitchTask:Ru,SwitchTaskConfiguration:_c,Task:Mc,TaskBase:dl,TaskBaseIf:Nu,TaskItem:qc,TaskList:Fc,TaskMetadata:cl,TaskTimeout:sl,Timeout:Du,TryTask:Mu,TryTaskCatch:Dc,TryTaskCatchRetry:Nc,UriTemplate:qu,Use:Hu,UseAuthentications:Fu,UseCatalogs:Gu,UseErrors:Uu,UseExtensions:Lu,UseFunctions:Bu,UseRetries:Vu,UseSecrets:Ku,UseTimeouts:Wu,WaitTask:Ju,WithEvent:Ja,WithGRPCArguments:kl,WithGRPCService:gl,WithOpenAPIParameters:Dl,Workflow:Qf,WorkflowMetadata:cc,WorkflowTags:lc,WorkflowTimeout:Zu};function eh(e,t){var n=new Xf.AllEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var th=function(e){return t(e,eh)};function nh(e,t){var n=new Xf.AllEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var rh=function(e){return n(e,nh)};function oh(e,t){var n=new Xf.AnyEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ih=function(e){return t(e,oh)};function ah(e,t){var n=new Xf.AnyEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var sh=function(e){return n(e,ah)};function lh(e,t){var n=new Xf.AnyEventConsumptionStrategyUntil(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ch=function(e){return t(e,lh)};function uh(e,t){var n=new Xf.AnyEventUntilConsumed(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var dh=function(e){return t(e,uh)};function ph(e,t){var n=new Xf.AsyncApiArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var fh=function(e){return t(e,ph)};function hh(e,t){var n=new Xf.AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var mh=function(e){return t(e,hh)};function vh(e,t){var n=new Xf.AuthenticationPolicyReference(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var yh=function(e){return t(e,vh)};function wh(e,t){var n=new Xf.BasicAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var gh=function(e){return t(e,wh)};function bh(e,t){var n=new Xf.BasicAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var kh=function(e){return t(e,bh)};function $h(e,t){var n=new Xf.BasicAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var jh=function(e){return t(e,$h)};function Ah(e,t){var n=new Xf.BearerAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Th=function(e){return t(e,Ah)};function Ph(e,t){var n=new Xf.BearerAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Eh=function(e){return t(e,Ph)};function zh(e,t){var n=new Xf.BearerAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ch=function(e){return t(e,zh)};function Sh(e,t){var n=new Xf.CallAsyncAPI(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var _h=function(e){return t(e,Sh)};function Oh(e,t){var n=new Xf.CallFunction(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var xh=function(e){return t(e,Oh)};function Ih(e,t){var n=new Xf.CallGRPC(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Rh=function(e){return t(e,Ih)};function Nh(e,t){var n=new Xf.CallHTTP(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Dh=function(e){return t(e,Nh)};function Mh(e,t){var n=new Xf.CallOpenAPI(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var qh=function(e){return t(e,Mh)};function Fh(e,t){var n=new Xf.CallTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Uh=function(e){return t(e,Fh)};function Lh(e,t){var n=new Xf.Catalog(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Bh=function(e){return t(e,Lh)};function Vh(e,t){var n=new Xf.CatchErrors(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Wh=function(e){return t(e,Vh)};function Gh(e,t){var n=new Xf.ConstantBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Hh=function(e){return t(e,Gh)};function Kh(e,t){var n=new Xf.Container(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Jh=function(e){return t(e,Kh)};function Zh(e,t){var n=new Xf.ContainerEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Yh=function(e){return t(e,Zh)};function Qh(e,t){var n=new Xf.ContainerLifetime(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Xh=function(e){return t(e,Qh)};function em(e,t){var n=new Xf.ContainerPorts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var tm=function(e){return t(e,em)};function nm(e,t){var n=new Xf.ContainerVolumes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var rm=function(e){return t(e,nm)};function om(e,t){var n=new Xf.DigestAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var im=function(e){return t(e,om)};function am(e,t){var n=new Xf.DigestAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var sm=function(e){return t(e,am)};function lm(e,t){var n=new Xf.DigestAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var cm=function(e){return t(e,lm)};function um(e,t){var n=new Xf.Document(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var dm=function(e){return t(e,um)};function pm(e,t){var n=new Xf.DoTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var fm=function(e){return t(e,pm)};function hm(e,t){var n=new Xf.Duration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var mm=function(e){return t(e,hm)};function vm(e,t){var n=new Xf.DurationInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ym=function(e){return t(e,vm)};function wm(e,t){var n=new Xf.EmitEventDefinition(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var gm=function(e){return t(e,wm)};function bm(e,t){var n=new Xf.EmitEventWith(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var km=function(e){return t(e,bm)};function $m(e,t){var n=new Xf.EmitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var jm=function(e){return t(e,$m)};function Am(e,t){var n=new Xf.EmitTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Tm=function(e){return t(e,Am)};function Pm(e,t){var n=new Xf.Endpoint(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Em=function(e){return t(e,Pm)};function zm(e,t){var n=new Xf.EndpointConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Cm=function(e){return t(e,zm)};function Sm(e,t){var n=new Xf.EndpointUri(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var _m=function(e){return t(e,Sm)};function Om(e,t){var n=new Xf.Error(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var xm=function(e){return t(e,Om)};function Im(e,t){var n=new Xf.ErrorFilter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Rm=function(e){return t(e,Im)};function Nm(e,t){var n=new Xf.ErrorInstance(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Dm=function(e){return t(e,Nm)};function Mm(e,t){var n=new Xf.ErrorType(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var qm=function(e){return t(e,Mm)};function Fm(e,t){var n=new Xf.EventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Um=function(e){return t(e,Fm)};function Lm(e,t){var n=new Xf.EventData(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Bm=function(e){return t(e,Lm)};function Vm(e,t){var n=new Xf.EventDataschema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Wm=function(e){return t(e,Vm)};function Gm(e,t){var n=new Xf.EventFilter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Hm=function(e){return t(e,Gm)};function Km(e,t){var n=new Xf.EventFilterCorrelate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Jm=function(e){return t(e,Km)};function Zm(e,t){var n=new Xf.EventSource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ym=function(e){return t(e,Zm)};function Qm(e,t){var n=new Xf.EventTime(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Xm=function(e){return t(e,Qm)};function ev(e,t){var n=new Xf.ExponentialBackOff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var tv=function(e){return t(e,ev)};function nv(e,t){var n=new Xf.Export(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var rv=function(e){return t(e,nv)};function ov(e,t){var n=new Xf.ExportAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var iv=function(e){return t(e,ov)};function av(e,t){var n=new Xf.Extension(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var sv=function(e){return t(e,av)};function lv(e,t){var n=new Xf.ExtensionItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var cv=function(e){return t(e,lv)};function uv(e,t){var n=new Xf.ExternalResource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var dv=function(e){return t(e,uv)};function pv(e,t){var n=new Xf.ExternalScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var fv=function(e){return t(e,pv)};function hv(e,t){var n=new Xf.FlowDirective(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var mv=function(e){return t(e,hv)};function vv(e,t){var n=new Xf.ForkTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var yv=function(e){return t(e,vv)};function wv(e,t){var n=new Xf.ForkTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var gv=function(e){return t(e,wv)};function bv(e,t){var n=new Xf.ForTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var kv=function(e){return t(e,bv)};function $v(e,t){var n=new Xf.ForTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var jv=function(e){return t(e,$v)};function Av(e,t){var n=new Xf.FunctionArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Tv=function(e){return t(e,Av)};function Pv(e,t){var n=new Xf.GRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ev=function(e){return t(e,Pv)};function zv(e,t){var n=new Xf.HTTPArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Cv=function(e){return t(e,zv)};function Sv(e,t){var n=new Xf.HTTPBody(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var _v=function(e){return t(e,Sv)};function Ov(e,t){var n=new Xf.HTTPHeaders(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var xv=function(e){return t(e,Ov)};function Iv(e,t){var n=new Xf.HTTPQuery(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Rv=function(e){return t(e,Iv)};function Nv(e,t){var n=new Xf.InlineScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Dv=function(e){return t(e,Nv)};function Mv(e,t){var n=new Xf.Input(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var qv=function(e){return t(e,Mv)};function Fv(e,t){var n=new Xf.InputFrom(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Uv=function(e){return t(e,Fv)};function Lv(e,t){var n=new Xf.LinearBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Bv=function(e){return t(e,Lv)};function Vv(e,t){var n=new Xf.ListenTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Wv=function(e){return t(e,Vv)};function Gv(e,t){var n=new Xf.ListenTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Hv=function(e){return t(e,Gv)};function Kv(e,t){var n=new Xf.OAuth2AutenthicationData(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Jv=function(e){return t(e,Kv)};function Zv(e,t){var n=new Xf.OAuth2AutenthicationDataAudiences(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Yv=function(e){return n(e,Zv)};function Qv(e,t){var n=new Xf.OAuth2AutenthicationDataClient(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Xv=function(e){return t(e,Qv)};function ey(e,t){var n=new Xf.OAuth2AutenthicationDataScopes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ty=function(e){return n(e,ey)};function ny(e,t){var n=new Xf.OAuth2AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ry=function(e){return t(e,ny)};function oy(e,t){var n=new Xf.OAuth2AuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var iy=function(e){return t(e,oy)};function ay(e,t){var n=new Xf.OAuth2AuthenticationPropertiesEndpoints(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var sy=function(e){return t(e,ay)};function ly(e,t){var n=new Xf.OAuth2ConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var cy=function(e){return t(e,ly)};function uy(e,t){var n=new Xf.OAuth2Issuers(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var dy=function(e){return n(e,uy)};function py(e,t){var n=new Xf.OAuth2TokenDefinition(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var fy=function(e){return t(e,py)};function hy(e,t){var n=new Xf.OAuth2TokenRequest(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var my=function(e){return t(e,hy)};function vy(e,t){var n=new Xf.OneEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var yy=function(e){return t(e,vy)};function wy(e,t){var n=new Xf.OpenAPIArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var gy=function(e){return t(e,wy)};function by(e,t){var n=new Xf.OpenIdConnectAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ky=function(e){return t(e,by)};function $y(e,t){var n=new Xf.OpenIdConnectAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var jy=function(e){return t(e,$y)};function Ay(e,t){var n=new Xf.OpenIdConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ty=function(e){return t(e,Ay)};function Py(e,t){var n=new Xf.Output(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ey=function(e){return t(e,Py)};function zy(e,t){var n=new Xf.OutputAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Cy=function(e){return t(e,zy)};function Sy(e,t){var n=new Xf.RaiseTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var _y=function(e){return t(e,Sy)};function Oy(e,t){var n=new Xf.RaiseTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var xy=function(e){return t(e,Oy)};function Iy(e,t){var n=new Xf.RaiseTaskError(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ry=function(e){return t(e,Iy)};function Ny(e,t){var n=new Xf.ReferenceableAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Dy=function(e){return t(e,Ny)};function My(e,t){var n=new Xf.RetryBackoff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var qy=function(e){return t(e,My)};function Fy(e,t){var n=new Xf.RetryLimit(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Uy=function(e){return t(e,Fy)};function Ly(e,t){var n=new Xf.RetryLimitAttempt(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var By=function(e){return t(e,Ly)};function Vy(e,t){var n=new Xf.RetryPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Wy=function(e){return t(e,Vy)};function Gy(e,t){var n=new Xf.RetryPolicyJitter(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Hy=function(e){return t(e,Gy)};function Ky(e,t){var n=new Xf.RunContainer(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Jy=function(e){return t(e,Ky)};function Zy(e,t){var n=new Xf.RunScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Yy=function(e){return t(e,Zy)};function Qy(e,t){var n=new Xf.RunShell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Xy=function(e){return t(e,Qy)};function ew(e,t){var n=new Xf.RunTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var tw=function(e){return t(e,ew)};function nw(e,t){var n=new Xf.RunTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var rw=function(e){return t(e,nw)};function ow(e,t){var n=new Xf.RuntimeExpression(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var iw=function(e){return t(e,ow)};function aw(e,t){var n=new Xf.RunWorkflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var sw=function(e){return t(e,aw)};function lw(e,t){var n=new Xf.Schedule(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var cw=function(e){return t(e,lw)};function uw(e,t){var n=new Xf.Schema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var dw=function(e){return t(e,uw)};function pw(e,t){var n=new Xf.SchemaExternal(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var fw=function(e){return t(e,pw)};function hw(e,t){var n=new Xf.SchemaInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var mw=function(e){return t(e,hw)};function vw(e,t){var n=new Xf.Script(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var yw=function(e){return t(e,vw)};function ww(e,t){var n=new Xf.SecretBasedAuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var gw=function(e){return t(e,ww)};function bw(e,t){var n=new Xf.SetTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var kw=function(e){return t(e,bw)};function $w(e,t){var n=new Xf.SetTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var jw=function(e){return t(e,$w)};function Aw(e,t){var n=new Xf.Shell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Tw=function(e){return t(e,Aw)};function Pw(e,t){var n=new Xf.ShellArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ew=function(e){return t(e,Pw)};function zw(e,t){var n=new Xf.ShellEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Cw=function(e){return t(e,zw)};function Sw(e,t){var n=new Xf.SubflowConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var _w=function(e){return t(e,Sw)};function Ow(e,t){var n=new Xf.SubflowInput(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var xw=function(e){return t(e,Ow)};function Iw(e,t){var n=new Xf.SubscriptionIterator(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Rw=function(e){return t(e,Iw)};function Nw(e,t){var n=new Xf.SwitchCase(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Dw=function(e){return t(e,Nw)};function Mw(e,t){var n=new Xf.SwitchItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var qw=function(e){return t(e,Mw)};function Fw(e,t){var n=new Xf.SwitchTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Uw=function(e){return t(e,Fw)};function Lw(e,t){var n=new Xf.SwitchTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Bw=function(e){return t(e,Lw)};function Vw(e,t){var n=new Xf.Task(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ww=function(e){return t(e,Vw)};function Gw(e,t){var n=new Xf.TaskBase(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Hw=function(e){return t(e,Gw)};function Kw(e,t){var n=new Xf.TaskBaseIf(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Jw=function(e){return t(e,Kw)};function Zw(e,t){var n=new Xf.TaskItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Yw=function(e){return t(e,Zw)};function Qw(e,t){var n=new Xf.TaskList(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Xw=function(e){return n(e,Qw)};function eg(e,t){var n=new Xf.TaskMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var tg=function(e){return t(e,eg)};function ng(e,t){var n=new Xf.TaskTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var rg=function(e){return t(e,ng)};function og(e,t){var n=new Xf.Timeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ig=function(e){return t(e,og)};function ag(e,t){var n=new Xf.TryTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var sg=function(e){return t(e,ag)};function lg(e,t){var n=new Xf.TryTaskCatch(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var cg=function(e){return t(e,lg)};function ug(e,t){var n=new Xf.TryTaskCatchRetry(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var dg=function(e){return t(e,ug)};function pg(e,t){var n=new Xf.UriTemplate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var fg=function(e){return t(e,pg)};function hg(e,t){var n=new Xf.Use(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var mg=function(e){return t(e,hg)};function vg(e,t){var n=new Xf.UseAuthentications(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var yg=function(e){return t(e,vg)};function wg(e,t){var n=new Xf.UseCatalogs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var gg=function(e){return t(e,wg)};function bg(e,t){var n=new Xf.UseErrors(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var kg=function(e){return t(e,bg)};function $g(e,t){var n=new Xf.UseExtensions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var jg=function(e){return n(e,$g)};function Ag(e,t){var n=new Xf.UseFunctions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Tg=function(e){return t(e,Ag)};function Pg(e,t){var n=new Xf.UseRetries(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Eg=function(e){return t(e,Pg)};function zg(e,t){var n=new Xf.UseSecrets(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Cg=function(e){return n(e,zg)};function Sg(e,t){var n=new Xf.UseTimeouts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var _g=function(e){return t(e,Sg)};function Og(e,t){var n=new Xf.WaitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var xg=function(e){return t(e,Og)};function Ig(e,t){var n=new Xf.WithEvent(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Rg=function(e){return t(e,Ig)};function Ng(e,t){var n=new Xf.WithGRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Dg=function(e){return t(e,Ng)};function Mg(e,t){var n=new Xf.WithGRPCService(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var qg=function(e){return t(e,Mg)};function Fg(e,t){var n=new Xf.WithOpenAPIParameters(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ug=function(e){return t(e,Fg)};function Lg(e,t){var n=new Xf.Workflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Bg=function(e){return t(e,Lg)};function Vg(e,t){var n=new Xf.WorkflowMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Wg=function(e){return t(e,Vg)};function Gg(e,t){var n=new Xf.WorkflowTags(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Hg=function(e){return t(e,Gg)};function Kg(e,t){var n=new Xf.WorkflowTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Jg=function(e){return t(e,Kg)},Zg=Object.freeze({__proto__:null});export{Xf as Classes,Ef as GraphNodeType,Yf as MermaidDiagram,Zg as Specification,th as allEventConsumptionStrategyBuilder,rh as allEventConsumptionStrategyConfigurationBuilder,ih as anyEventConsumptionStrategyBuilder,sh as anyEventConsumptionStrategyConfigurationBuilder,ch as anyEventConsumptionStrategyUntilBuilder,dh as anyEventUntilConsumedBuilder,fh as asyncApiArgumentsBuilder,mh as authenticationPolicyBuilder,yh as authenticationPolicyReferenceBuilder,gh as basicAuthenticationPolicyBuilder,kh as basicAuthenticationPolicyConfigurationBuilder,jh as basicAuthenticationPropertiesBuilder,Th as bearerAuthenticationPolicyBuilder,Eh as bearerAuthenticationPolicyConfigurationBuilder,Ch as bearerAuthenticationPropertiesBuilder,Uf as buildGraph,_h as callAsyncAPIBuilder,xh as callFunctionBuilder,Rh as callGRPCBuilder,Dh as callHTTPBuilder,qh as callOpenAPIBuilder,Uh as callTaskBuilder,Bh as catalogBuilder,Wh as catchErrorsBuilder,Hh as constantBackoffBuilder,Jh as containerBuilder,Yh as containerEnvironmentBuilder,Xh as containerLifetimeBuilder,tm as containerPortsBuilder,rm as containerVolumesBuilder,Zf as convertToMermaidCode,im as digestAuthenticationPolicyBuilder,sm as digestAuthenticationPolicyConfigurationBuilder,cm as digestAuthenticationPropertiesBuilder,fm as doTaskBuilder,dm as documentBuilder,mm as durationBuilder,ym as durationInlineBuilder,gm as emitEventDefinitionBuilder,km as emitEventWithBuilder,jm as emitTaskBuilder,Tm as emitTaskConfigurationBuilder,Em as endpointBuilder,Cm as endpointConfigurationBuilder,_m as endpointUriBuilder,xm as errorBuilder,Rm as errorFilterBuilder,Dm as errorInstanceBuilder,qm as errorTypeBuilder,Um as eventConsumptionStrategyBuilder,Bm as eventDataBuilder,Wm as eventDataschemaBuilder,Hm as eventFilterBuilder,Jm as eventFilterCorrelateBuilder,Ym as eventSourceBuilder,Xm as eventTimeBuilder,tv as exponentialBackOffBuilder,iv as exportAsBuilder,rv as exportBuilder,sv as extensionBuilder,cv as extensionItemBuilder,dv as externalResourceBuilder,fv as externalScriptBuilder,mv as flowDirectiveBuilder,kv as forTaskBuilder,jv as forTaskConfigurationBuilder,yv as forkTaskBuilder,gv as forkTaskConfigurationBuilder,Tv as functionArgumentsBuilder,Ev as gRPCArgumentsBuilder,Cv as hTTPArgumentsBuilder,_v as hTTPBodyBuilder,xv as hTTPHeadersBuilder,Rv as hTTPQueryBuilder,Dv as inlineScriptBuilder,qv as inputBuilder,Uv as inputFromBuilder,Bv as linearBackoffBuilder,Wv as listenTaskBuilder,Hv as listenTaskConfigurationBuilder,Yv as oAuth2AutenthicationDataAudiencesBuilder,Jv as oAuth2AutenthicationDataBuilder,Xv as oAuth2AutenthicationDataClientBuilder,ty as oAuth2AutenthicationDataScopesBuilder,ry as oAuth2AuthenticationPolicyBuilder,iy as oAuth2AuthenticationPolicyConfigurationBuilder,sy as oAuth2AuthenticationPropertiesEndpointsBuilder,cy as oAuth2ConnectAuthenticationPropertiesBuilder,dy as oAuth2IssuersBuilder,fy as oAuth2TokenDefinitionBuilder,my as oAuth2TokenRequestBuilder,yy as oneEventConsumptionStrategyBuilder,gy as openAPIArgumentsBuilder,ky as openIdConnectAuthenticationPolicyBuilder,jy as openIdConnectAuthenticationPolicyConfigurationBuilder,Ty as openIdConnectAuthenticationPropertiesBuilder,Cy as outputAsBuilder,Ey as outputBuilder,_y as raiseTaskBuilder,xy as raiseTaskConfigurationBuilder,Ry as raiseTaskErrorBuilder,Dy as referenceableAuthenticationPolicyBuilder,qy as retryBackoffBuilder,By as retryLimitAttemptBuilder,Uy as retryLimitBuilder,Wy as retryPolicyBuilder,Hy as retryPolicyJitterBuilder,Jy as runContainerBuilder,Yy as runScriptBuilder,Xy as runShellBuilder,tw as runTaskBuilder,rw as runTaskConfigurationBuilder,sw as runWorkflowBuilder,iw as runtimeExpressionBuilder,cw as scheduleBuilder,dw as schemaBuilder,fw as schemaExternalBuilder,mw as schemaInlineBuilder,yw as scriptBuilder,gw as secretBasedAuthenticationPolicyBuilder,kw as setTaskBuilder,jw as setTaskConfigurationBuilder,Ew as shellArgumentsBuilder,Tw as shellBuilder,Cw as shellEnvironmentBuilder,_w as subflowConfigurationBuilder,xw as subflowInputBuilder,Rw as subscriptionIteratorBuilder,Dw as switchCaseBuilder,qw as switchItemBuilder,Uw as switchTaskBuilder,Bw as switchTaskConfigurationBuilder,Hw as taskBaseBuilder,Jw as taskBaseIfBuilder,Ww as taskBuilder,Yw as taskItemBuilder,Xw as taskListBuilder,tg as taskMetadataBuilder,rg as taskTimeoutBuilder,ig as timeoutBuilder,sg as tryTaskBuilder,cg as tryTaskCatchBuilder,dg as tryTaskCatchRetryBuilder,fg as uriTemplateBuilder,yg as useAuthenticationsBuilder,mg as useBuilder,gg as useCatalogsBuilder,kg as useErrorsBuilder,jg as useExtensionsBuilder,Tg as useFunctionsBuilder,Eg as useRetriesBuilder,Cg as useSecretsBuilder,_g as useTimeoutsBuilder,Ha as validate,xg as waitTaskBuilder,Rg as withEventBuilder,Dg as withGRPCArgumentsBuilder,qg as withGRPCServiceBuilder,Ug as withOpenAPIParametersBuilder,Bg as workflowBuilder,Wg as workflowMetadataBuilder,Hg as workflowTagsBuilder,Jg as workflowTimeoutBuilder};
|
|
10
10
|
//# sourceMappingURL=index.esm.min.js.map
|