@serverlessworkflow/sdk 1.0.0-alpha5.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/esm/index.esm.js +2040 -1121
- 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 +11 -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/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/package.json +2 -2
- package/systemjs/index.systemjs.js +2039 -1120
- package/systemjs/index.systemjs.js.map +1 -1
- package/systemjs/index.systemjs.min.js +4 -4
- package/systemjs/index.systemjs.min.js.map +1 -1
- package/umd/index.umd.js +2050 -1126
- package/umd/index.umd.js.map +1 -1
- package/umd/index.umd.min.js +4 -4
- 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)}"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 o(t,e),t}(Array),d="1.0.0",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 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())}}(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 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}}}(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 r=k;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=j;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 $ 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 A 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)}}A.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 z extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}z.kind="catch";class E extends h{render(e){return"finally"+super.render(e)}}E.kind="finally";function C(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function 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 $("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 $("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 z(e),t(e)}return n&&(this._currNode=r.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,r,o){return this._blockNode(new A(e,n,r)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(A)}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 A={};Object.defineProperty(A,"__esModule",{value:!0}),A.checkStrictMode=A.getErrorPath=A.Type=A.useFunc=A.setEvaluated=A.evaluatedPropsToName=A.mergeEvaluated=A.eachItem=A.unescapeJsonPointer=A.escapeJsonPointer=A.escapeFragment=A.unescapeFragment=A.schemaRefOrVal=A.schemaHasRulesButRef=A.schemaHasRules=A.checkUnknownRules=A.alwaysValidSchema=A.toHash=void 0;const T=$,P=k;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]||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 C(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function S(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function _({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:r}){return(o,i,a,s)=>{const l=void 0===a?i:a instanceof T.Name?(i instanceof T.Name?e(o,i,a):t(o,i,a),a):i instanceof T.Name?(t(o,a,i),i):n(i,a);return s!==T.Name||l instanceof T.Name?l:r(o,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)))}A.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},A.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(z(e,t),!E(t,e.self.RULES.all))},A.checkUnknownRules=z,A.schemaHasRules=E,A.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},A.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,r,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return T._`${n}`}return T._`${e}${t}${(0,T.getProperty)(r)}`},A.unescapeFragment=function(e){return S(decodeURIComponent(e))},A.escapeFragment=function(e){return encodeURIComponent(C(e))},A.escapeJsonPointer=C,A.unescapeJsonPointer=S,A.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},A.mergeEvaluated={props:_({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:_({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)})},A.evaluatedPropsToName=O,A.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)}}A.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:I[t.code]||(I[t.code]=new P._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(R||(A.Type=R={})),A.getErrorPath=function(e,t,n){if(e instanceof T.Name){const r=t===R.Num;return n?r?T._`"[" + ${e} + "]"`:T._`"['" + ${e} + "']"`:r?T._`"/" + ${e}`:T._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,T.getProperty)(e).toString():"/"+C(e)},A.checkStrictMode=N;var D,M,q,F={};function U(){if(D)return F;D=1,Object.defineProperty(F,"__esModule",{value:!0});const e=$,t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return F.default=t,F}function L(){return M||(M=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=$,n=A,r=U();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]}}(b)),b}var B={},V={};Object.defineProperty(V,"__esModule",{value:!0}),V.getRules=V.isJSONType=void 0;const W=new Set(["string","number","integer","boolean","null","object","array"]);V.isJSONType=function(e){return"string"==typeof e&&W.has(e)},V.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var 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},r){const o=n.RULES.types[r];return o&&!0!==o&&e(t,o)},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=V,Z=K(),Y=L(),Q=$,X=A;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:r,opts:o}=e,i=function(e,t){return t?e.filter((e=>ne.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),a=t.length>0&&!(0===i.length&&1===t.length&&(0,Z.schemaHasRulesForType)(e,t[0]));if(a){const a=oe(t,r,o.strictNumbers,ee.Wrong);n.if(a,(()=>{i.length?function(e,t,n){const{gen:r,data:o,opts:i}=e,a=r.let("dataType",Q._`typeof ${o}`),s=r.let("coerced",Q._`undefined`);"array"===i.coerceTypes&&r.if(Q._`${a} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>r.assign(o,Q._`${o}[0]`).assign(a,Q._`typeof ${o}`).if(oe(t,o,i.strictNumbers),(()=>r.assign(s,o)))));r.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 r.elseIf(Q._`${a} == "number" || ${a} == "boolean"`).assign(s,Q._`"" + ${o}`).elseIf(Q._`${o} === null`).assign(s,Q._`""`);case"number":return void r.elseIf(Q._`${a} == "boolean" || ${o} === null
|
|
2
|
+
|| (${a} == "string" && ${o} && ${o} == +${o})`).assign(s,Q._`+${o}`);case"integer":return void r.elseIf(Q._`${a} === "boolean" || ${o} === null
|
|
3
|
+
|| (${a} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(s,Q._`+${o}`);case"boolean":return void r.elseIf(Q._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(s,!1).elseIf(Q._`${o} === "true" || ${o} === 1`).assign(s,!0);case"null":return r.elseIf(Q._`${o} === "" || ${o} === 0 || ${o} === false`),void r.assign(s,null);case"array":r.elseIf(Q._`${a} === "string" || ${a} === "number"
|
|
4
|
+
|| ${a} === "boolean" || ${o} === null`).assign(s,Q._`[${o}]`)}}r.else(),ae(e),r.endIf(),r.if(Q._`${s} !== undefined`,(()=>{r.assign(o,s),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(Q._`${t} !== undefined`,(()=>e.assign(Q._`${t}[${n}]`,r)))}(e,s)}))}(e,t,i):ae(e)}))}return a};const ne=new Set(["string","number","integer","boolean","null"]);function re(e,t,n,r=ee.Correct){const o=r===ee.Correct?Q.operators.EQ:Q.operators.NEQ;let i;switch(e){case"null":return Q._`${t} ${o} 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} ${o} ${e}`}return r===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 oe(e,t,n,r){if(1===e.length)return re(e[0],t,n,r);let o;const i=(0,X.toHash)(e);if(i.array&&i.object){const e=Q._`typeof ${t} != "object"`;o=i.null?e:Q._`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else o=Q.nil;i.number&&delete i.integer;for(const e in i)o=(0,Q.and)(o,re(e,t,n,r));return o}B.checkDataType=re,B.checkDataTypes=oe;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:r}=e,o=(0,X.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,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=A,n=U(),r=A;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)):[]}pe.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()}))},pe.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}`))))},pe.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},pe.hasPropFunc=o,pe.isOwnProperty=i,pe.propertyInData=function(t,n,r,o){const a=e._`${n}${(0,e.getProperty)(r)} !== undefined`;return o?e._`${a} && ${i(t,n,r)}`:a},pe.noPropertyInData=a,pe.allSchemaProperties=s,pe.schemaProperties=function(e,n){return s(n).filter((r=>!(0,t.alwaysValidSchema)(e,n[r])))},pe.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 pe.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})`})},pe.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)}))}},pe.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)))},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(),r=L();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 de.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)))},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(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)},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: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)}}},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 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},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,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 be.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 be.propsKeywords){if(d&&"object"==typeof d)for(var f in d)$e(e,t,n,d[f],o+"/"+u+"/"+ke(f),i,o,u,r,f)}else(u in be.keywords||e.allKeys&&!(u in be.skipKeywords))&&$e(e,t,n,d,o+"/"+u,i,o,u,r)}n(r,o,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 Ae=A,Te=we,Pe=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?!Ce(e):!!t&&Se(e)<=t)};const Ee=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ce(e){for(const t in e){if(Ee.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(Ce))return!0;if("object"==typeof n&&Ce(n))return!0}return!1}function Se(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,Ae.eachItem)(e[n],(e=>t+=Se(e))),t===1/0))return 1/0}return t}function _e(e,t="",n){!1!==n&&(t=Ie(t));const r=e.parse(t);return Oe(e,r)}function Oe(e,t){return e.serialize(t).split("#")[0]+"#"}ye.getFullPath=_e,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(q)return g;q=1,Object.defineProperty(g,"__esModule",{value:!0}),g.boolOrEmptySchema=g.topBoolOrEmptySchema=void 0;const e=L(),t=$,n=U(),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 g.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))},g.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),o(e)):n.var(t,!0)},g}(),t=B,n=K(),r=B,o=function(){if(se)return le;se=1,Object.defineProperty(le,"__esModule",{value:!0}),le.assignDefaults=void 0;const e=$,t=A;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 le.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)))},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=A;return ve.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')},ve.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)},ve.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},ve}(),s=$,l=U(),c=ye,u=A,d=L();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);b(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 b(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)),T(e,u),1===t.length&&t[0]===u.type&&o&&(a.else(),(0,r.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 r of e.dataTypes)z(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"))&&E(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)))&&E(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 T(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 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: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),b(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)}w.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 w.getData=x,w}ye.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,o=Ie(e[n]||t),i={"":o},a=_e(r,o,!1),s={},l=new Set;return Pe(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=Ie(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!==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,qe={};function Fe(){if(Me)return qe;Me=1,Object.defineProperty(qe,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return qe.default=e,qe}var Ue,Le={};function Be(){if(Ue)return Le;Ue=1,Object.defineProperty(Le,"__esModule",{value:!0});const e=ye;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 Le.default=t,Le}var Ve={};Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.resolveSchema=Ve.getCompilingSchema=Ve.resolveRef=Ve.compileSchema=Ve.SchemaEnv=void 0;const We=$,Ge=Fe(),He=U(),Ke=ye,Je=A,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:r,lines:o}=this.opts.code,{ownProperties:i}=this.opts,a=new We.CodeGen(this.scope,{es5:r,lines:o,ownProperties:i});let s;e.$async&&(s=a.scopeValue("Error",{ref:Ge.default,code:We._`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:[We.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,We.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:We.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:We._`""`,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 We.Name?void 0:e,items:t instanceof We.Name?void 0:t,dynamicProps:e instanceof We.Name,dynamicItems:t instanceof We.Name},n.source&&(n.source.evaluated=(0,We.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 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 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),r=(0,Ke._getFullPath)(this.opts.uriResolver,n);let o=(0,Ke.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===o)return ot.call(this,n,e);const i=(0,Ke.normalizeId)(r),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 ot.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,r=t[n];return r&&(o=(0,Ke.resolveUrl)(this.opts.uriResolver,o,r)),new Ye({schema:t,schemaId:n,root:e,baseId:o})}return ot.call(this,n,a)}}Ve.SchemaEnv=Ye,Ve.compileSchema=Qe,Ve.resolveRef=function(e,t,n){var r;n=(0,Ke.resolveUrl)(this.opts.uriResolver,t,n);const o=e.refs[n];if(o)return o;let i=tt.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 Ye({schema:o,schemaId:a,root:e,baseId:t}))}return void 0!==i?e.refs[n]=Xe.call(this,i):void 0},Ve.getCompilingSchema=et,Ve.resolveSchema=nt;const rt=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ot(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,Je.unescapeFragment)(r)];if(void 0===e)return;const o="object"==typeof(n=e)&&n[this.opts.schemaId];!rt.has(r)&&o&&(t=(0,Ke.resolveUrl)(this.opts.uriResolver,t,o))}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,r,e)}const{schemaId:a}=this.opts;return i=i||new Ye({schema:n,schemaId:a,root:r,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="",r=!0;for(const t of e){if(void 0===ct[t])return;"0"!==t&&!0===r&&(r=!1),r||(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:""},r=[],o=[];let i=!1,a=!1,s=!1;function l(){if(o.length){if(!1===i){const e=dt(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(dt(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 ft(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 ht(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===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 r=ut(t);if(r.isIPV4)t=r.host;else{const n=pt(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(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 r=n[0];e=e.slice(r.length),t.push(r)}}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 At(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const Tt={scheme:"http",domainHost:!0,parse:jt,serialize:At},Pt={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:At},ws:Pt,wss:{scheme:"wss",domainHost:Pt.domainHost,parse:Pt.parse,serialize:Pt.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&&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:Ct,normalizeIPv4:St,removeDotSegments:_t,recomposeAuthority:Ot,normalizeComponentEncoding:xt}=gt,It=Et;function Rt(e,t,n,r){const o={};return r||(e=qt(Nt(e,n),n),t=qt(Nt(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=_t(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=_t(t.path||""),o.query=t.query):(t.path?("/"===t.path.charAt(0)?o.path=_t(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=_t(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 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:""},r=Object.assign({},t),o=[],i=It[(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=Ot(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=_t(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 Dt=Array.from({length:127},((e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t))));const Mt=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function qt(e,t){const n=Object.assign({},t),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(Mt);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=St(r.host);if(!1===e.isIPV4){const t=Ct(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=It[(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||Dt[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 Ft={SCHEMES:It,normalize:function(e,t){return"string"==typeof e?e=Nt(qt(e,t),t):"object"==typeof e&&(e=qt(Nt(e,t),t)),e},resolve:function(e,t,n){const r=Object.assign({scheme:"null"},n);return Nt(Rt(qt(e,r),qt(t,r),r,!0),{...r,skipEscape:!0})},resolveComponents:Rt,equal:function(e,t,n){return"string"==typeof e?(e=unescape(e),e=Nt(xt(qt(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(qt(t,n),!0),{...n,skipEscape:!0})):"object"==typeof t&&(t=Nt(xt(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:Nt,parse:qt};st.exports=Ft,st.exports.default=Ft,st.exports.fastUri=Ft;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 r=Fe(),o=Be(),i=V,a=Ve,s=$,l=ye,c=B,u=A,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,r,o,i,a,s,l,c,u,d,h,m,v,y,w,g,b,$,k,j,A,T,P,z;const E=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: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: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===($=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===(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===(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 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=z.call(this),e.formats&&T.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&P.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),j.call(this),e.validateFormats=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 T(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function P(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function z(){const e={...this.opts};for(const t of h)delete e[t];return e}g.ValidationError=r.default,g.MissingRefError=o.default,e.default=g;const E={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]}}}(y);var Bt={},Vt={},Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});const Gt={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Wt.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=Ve,Xt=A,en={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 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,o,n);if(void 0===u)throw new Kt.default(r.opts.uriResolver,o,n);return u instanceof Qt.SchemaEnv?function(t){const n=tn(e,t);nn(e,n,t,t.$async)}(u):function(r){const o=t.scopeValue("schema",!0===s.code.source?{ref:r,code:(0,Zt.stringify)(r)}:{ref:r}),i=t.name("valid"),a=e.subschema({schema:r,dataTypes:[],schemaPath:Zt.nil,topSchemaRef:o,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,r){const{gen:o,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`;o.assign(Yt.default.vErrors,Zt._`${Yt.default.vErrors} === null ? ${t} : ${Yt.default.vErrors}.concat(${t})`),o.assign(Yt.default.errors,Zt._`${Yt.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=Xt.mergeEvaluated.props(o,r.props,i.props));else{const t=o.var("props",Zt._`${e}.evaluated.props`);i.props=Xt.mergeEvaluated.props(o,t,i.props,Zt.Name)}if(!0!==i.items)if(r&&!r.dynamicItems)void 0!==r.items&&(i.items=Xt.mergeEvaluated.items(o,r.items,i.items));else{const t=o.var("items",Zt._`${e}.evaluated.items`);i.items=Xt.mergeEvaluated.items(o,t,i.items,Zt.Name)}}r?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const n=o.let("valid");o.try((()=>{o.code(Zt._`await ${(0,Jt.callValidateCode)(e,t,c)}`),d(t),a||o.assign(n,!0)}),(e=>{o.if(Zt._`!(${e} instanceof ${i.ValidationError})`,(()=>o.throw(e))),u(e),a||o.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(Vt,"__esModule",{value:!0});const rn=Ht,on=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Wt.default,rn.default];Vt.default=on;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:r}=e;e.fail$data(ln._`${n} ${un[t].fail} ${r} || 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:r,it:o}=e,i=o.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._`(${r} === 0 || (${a} = ${n}/${r}, ${s}))`)}};fn.default=mn;var vn={},yn={};function wn(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(yn,"__esModule",{value:!0}),yn.default=wn,wn.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(vn,"__esModule",{value:!0});const gn=$,bn=A,$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:r,it:o}=e,i="maxLength"===t?gn.operators.GT:gn.operators.LT,a=!1===o.opts.unicode?gn._`${n}.length`:gn._`${(0,bn.useFunc)(e.gen,$n.default)}(${n})`;e.fail$data(gn._`${a} ${i} ${r}`)}};vn.default=jn;var An={};Object.defineProperty(An,"__esModule",{value:!0});const Tn=fe(),Pn=$,zn={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>Pn.str`must match pattern "${e}"`,params:({schemaCode:e})=>Pn._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:r,schemaCode:o,it:i}=e,a=i.opts.unicodeRegExp?"u":"",s=n?Pn._`(new RegExp(${o}, ${a}))`:(0,Tn.usePattern)(e,r);e.fail$data(Pn._`!${s}.test(${t})`)}};An.default=zn;var En={};Object.defineProperty(En,"__esModule",{value:!0});const Cn=$,Sn={message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return Cn.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>Cn._`{limit: ${e}}`},_n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Sn,code(e){const{keyword:t,data:n,schemaCode:r}=e,o="maxProperties"===t?Cn.operators.GT:Cn.operators.LT;e.fail$data(Cn._`Object.keys(${n}).length ${o} ${r}`)}};En.default=_n;var On={};Object.defineProperty(On,"__esModule",{value:!0});const xn=fe(),In=$,Rn=A,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: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(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,r,(()=>{t.assign(i,(0,xn.propertyInData)(t,o,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: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,Rn.checkStrictMode)(a,t,a.opts.strictRequired)}}function c(){t.forOf("prop",r,(n=>{e.setParams({missingProperty:n}),t.if((0,xn.noPropertyInData)(t,o,n,s.ownProperties),(()=>e.error()))}))}}};On.default=Nn;var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});const Mn=$,qn={message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return Mn.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>Mn._`{limit: ${e}}`},Fn={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:qn,code(e){const{keyword:t,data:n,schemaCode:r}=e,o="maxItems"===t?Mn.operators.GT:Mn.operators.LT;e.fail$data(Mn._`${n}.length ${o} ${r}`)}};Dn.default=Fn;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 Vn=B,Wn=$,Gn=A,Hn=Ln,Kn={message:({params:{i:e,j:t}})=>Wn.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>Wn._`{i: ${e}, j: ${t}}`},Jn={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Kn,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,Vn.getSchemaTypes)(i.items):[];function u(r,o){const i=t.name("item"),a=(0,Vn.checkDataTypes)(c,i,s.opts.strictNumbers,Vn.DataType.Wrong),u=t.const("indices",Wn._`{}`);t.for(Wn._`;${r}--;`,(()=>{t.let(i,Wn._`${n}[${r}]`),t.if(a,Wn._`continue`),c.length>1&&t.if(Wn._`typeof ${i} == "string"`,Wn._`${i} += "_"`),t.if(Wn._`typeof ${u}[${i}] == "number"`,(()=>{t.assign(o,Wn._`${u}[${i}]`),e.error(),t.assign(l,!1).break()})).code(Wn._`${u}[${i}] = ${r}`)}))}function d(r,o){const i=(0,Gn.useFunc)(t,Hn.default),a=t.name("outer");t.label(a).for(Wn._`;${r}--;`,(()=>t.for(Wn._`${o} = ${r}; ${o}--;`,(()=>t.if(Wn._`${i}(${n}[${r}], ${n}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(a)}))))))}e.block$data(l,(function(){const r=t.let("i",Wn._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(l,!0),t.if(Wn._`${r} > 1`,(()=>(c.length>0&&!c.some((e=>"object"===e||"array"===e))?u:d)(r,o)))}),Wn._`${a} === false`),e.ok(l)}};Un.default=Jn;var Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});const Yn=$,Qn=A,Xn=Ln,er={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:r,schemaCode:o,schema:i}=e;r||i&&"object"==typeof i?e.fail$data(Yn._`!${(0,Qn.useFunc)(t,Xn.default)}(${n}, ${o})`):e.fail(Yn._`${i} !== ${n}`)}};Zn.default=er;var tr={};Object.defineProperty(tr,"__esModule",{value:!0});const nr=$,rr=A,or=Ln,ir={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>nr._`{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,rr.useFunc)(t,or.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(nr._`${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,nr.or)(...o.map(((t,r)=>function(e,t){const r=o[t];return"object"==typeof r&&null!==r?nr._`${c()}(${n}, ${e}[${t}])`:nr._`${n} === ${r}`}(e,r))))}e.pass(u)}};tr.default=ir,Object.defineProperty(an,"__esModule",{value:!0});const ar=fn,sr=vn,lr=An,cr=En,ur=On,dr=Dn,pr=Un,fr=Zn,hr=tr,mr=[sn.default,ar.default,sr.default,lr.default,cr.default,ur.default,dr.default,pr.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},fr.default,hr.default];an.default=mr;var vr={},yr={};Object.defineProperty(yr,"__esModule",{value:!0}),yr.validateAdditionalItems=void 0;const wr=$,gr=A,br={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>wr.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>wr._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?$r(e,r):(0,gr.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",wr._`${o}.length`);if(!1===r)e.setParams({len:t.length}),e.pass(wr._`${s} <= ${t.length}`);else if("object"==typeof r&&!(0,gr.alwaysValidSchema)(a,r)){const r=n.var("valid",wr._`${s} <= ${t.length}`);n.if((0,wr.not)(r),(()=>function(r){n.forRange("i",t.length,s,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:gr.Type.Num},r),a.allErrors||n.if((0,wr.not)(r),(()=>n.break()))}))}(r))),e.ok(r)}}yr.validateAdditionalItems=$r,yr.default=br;var kr={},jr={};Object.defineProperty(jr,"__esModule",{value:!0}),jr.validateTuple=void 0;const Ar=$,Tr=A,Pr=fe(),zr={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return Er(e,"additionalItems",t);n.items=!0,(0,Tr.alwaysValidSchema)(n,t)||e.ok((0,Pr.validateArray)(e))}};function Er(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,Tr.checkStrictMode)(s,e,r.strictTuples)}}(o),s.opts.unevaluated&&n.length&&!0!==s.items&&(s.items=Tr.mergeEvaluated.items(r,n.length,s.items));const l=r.name("valid"),c=r.const("len",Ar._`${i}.length`);n.forEach(((t,n)=>{(0,Tr.alwaysValidSchema)(s,t)||(r.if(Ar._`${c} > ${n}`,(()=>e.subschema({keyword:a,schemaProp:n,dataProp:n},l))),e.ok(l))}))}jr.validateTuple=Er,jr.default=zr,Object.defineProperty(kr,"__esModule",{value:!0});const Cr=jr,Sr={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,Cr.validateTuple)(e,"items")};kr.default=Sr;var _r={};Object.defineProperty(_r,"__esModule",{value:!0});const Or=$,xr=A,Ir=fe(),Rr=yr,Nr={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>Or.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Or._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:o}=n;r.items=!0,(0,xr.alwaysValidSchema)(r,t)||(o?(0,Rr.validateAdditionalItems)(e,o):e.ok((0,Ir.validateArray)(e)))}};_r.default=Nr;var Dr={};Object.defineProperty(Dr,"__esModule",{value:!0});const Mr=$,qr=A,Fr={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?Mr.str`must contain at least ${e} valid item(s)`:Mr.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?Mr._`{minContains: ${e}}`:Mr._`{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",Mr._`${o}.length`);if(e.setParams({min:a,max:s}),void 0===s&&0===a)return void(0,qr.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&a>s)return(0,qr.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,qr.alwaysValidSchema)(i,n)){let t=Mr._`${u} >= ${a}`;return void 0!==s&&(t=Mr._`${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(Mr._`${e}++`),void 0===s?t.if(Mr._`${e} >= ${a}`,(()=>t.assign(d,!0).break())):(t.if(Mr._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===a?t.assign(d,!0):t.if(Mr._`${e} >= ${a}`,(()=>t.assign(d,!0))))}(n)))))}function f(n,r){t.forRange("i",0,u,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:qr.Type.Num,compositeRule:!0},n),r()}))}void 0===s&&1===a?f(d,(()=>t.if(d,(()=>t.break())))):0===a?(t.let(d,!0),void 0!==s&&t.if(Mr._`${o}.length > 0`,p)):(t.let(d,!1),p()),e.result(d,(()=>e.reset()))}};Dr.default=Fr;var Ur={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=$,n=A,r=fe();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}(Ur);var Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});const Br=$,Vr=A,Wr={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>Br._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:r,it:o}=e;if((0,Vr.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,Br.not)(i),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(i)}};Lr.default=Wr;var Gr={};Object.defineProperty(Gr,"__esModule",{value:!0});const Hr=fe(),Kr=$,Jr=U(),Zr=A,Yr={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>Kr._`{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,Zr.alwaysValidSchema)(a,n))return;const c=(0,Hr.allSchemaProperties)(r.properties),u=(0,Hr.allSchemaProperties)(r.patternProperties);function d(e){t.code(Kr._`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,Zr.alwaysValidSchema)(a,n)){const n=t.name("valid");"failing"===l.removeAdditional?(f(r,n,!1),t.if((0,Kr.not)(n),(()=>{e.reset(),d(r)}))):(f(r,n),s||t.if((0,Kr.not)(n),(()=>t.break())))}}}function f(t,n,r){const o={keyword:"additionalProperties",dataProp:t,dataPropType:Zr.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,Zr.schemaRefOrVal)(a,r.properties,"properties");o=(0,Hr.isOwnProperty)(t,e,n)}else o=c.length?(0,Kr.or)(...c.map((e=>Kr._`${n} === ${e}`))):Kr.nil;return u.length&&(o=(0,Kr.or)(o,...u.map((t=>Kr._`${(0,Hr.usePattern)(e,t)}.test(${n})`)))),(0,Kr.not)(o)}(n),(()=>p(n))):p(n)})),e.ok(Kr._`${i} === ${Jr.default.errors}`)}};Gr.default=Yr;var Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});const Xr=De(),eo=fe(),to=A,no=Gr,ro={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&&no.default.code(new Xr.KeywordCxt(i,no.default,"additionalProperties"));const a=(0,eo.allSchemaProperties)(n);for(const e of a)i.definedProperties.add(e);i.opts.unevaluated&&a.length&&!0!==i.props&&(i.props=to.mergeEvaluated.props(t,(0,to.toHash)(a),i.props));const s=a.filter((e=>!(0,to.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,eo.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)}}};Qr.default=ro;var oo={};Object.defineProperty(oo,"__esModule",{value:!0});const io=fe(),ao=$,so=A,lo=A,co={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,io.allSchemaProperties)(n),l=s.filter((e=>(0,so.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 ao.Name||(i.props=(0,lo.evaluatedPropsToName)(t,i.props));const{props:d}=i;function p(e){for(const t in c)new RegExp(e).test(t)&&(0,so.checkStrictMode)(i,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function f(n){t.forIn("key",r,(r=>{t.if(ao._`${(0,io.usePattern)(e,n)}.test(${r})`,(()=>{const o=l.includes(n);o||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:r,dataPropType:lo.Type.Str},u),i.opts.unevaluated&&!0!==d?t.assign(ao._`${d}[${r}]`,!0):o||i.allErrors||t.if((0,ao.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))}()}};oo.default=co;var uo={};Object.defineProperty(uo,"__esModule",{value:!0});const po=A,fo={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,po.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"}};uo.default=fo;var ho={};Object.defineProperty(ho,"__esModule",{value:!0});const mo={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:fe().validateUnion,error:{message:"must match a schema in anyOf"}};ho.default=mo;var vo={};Object.defineProperty(vo,"__esModule",{value:!0});const yo=$,wo=A,go={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>yo._`{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,wo.alwaysValidSchema)(o,n)?t.var(l,!0):i=e.subschema({keyword:"oneOf",schemaProp:r,compositeRule:!0},l),r>0&&t.if(yo._`${l} && ${a}`).assign(a,!1).assign(s,yo._`[${s}, ${r}]`).else(),t.if(l,(()=>{t.assign(a,!0),t.assign(s,r),i&&e.mergeEvaluated(i,yo.Name)}))}))})),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}};vo.default=go;var bo={};Object.defineProperty(bo,"__esModule",{value:!0});const $o=A,ko={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)}))}};bo.default=ko;var jo={};Object.defineProperty(jo,"__esModule",{value:!0});const Ao=$,To=A,Po={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>Ao.str`must match "${e.ifClause}" schema`,params:({params:e})=>Ao._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:r}=e;void 0===n.then&&void 0===n.else&&(0,To.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,Ao.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,Ao._`${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,To.alwaysValidSchema)(e,n)}jo.default=Po;var Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});const Co=A,So={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,Co.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};Eo.default=So,Object.defineProperty(vr,"__esModule",{value:!0});const _o=yr,Oo=kr,xo=jr,Io=_r,Ro=Dr,No=Ur,Do=Lr,Mo=Gr,qo=Qr,Fo=oo,Uo=uo,Lo=ho,Bo=vo,Vo=bo,Wo=jo,Go=Eo;vr.default=function(e=!1){const t=[Uo.default,Lo.default,Bo.default,Vo.default,Wo.default,Go.default,Do.default,Mo.default,No.default,qo.default,Fo.default];return e?t.push(Oo.default,Io.default):t.push(_o.default,xo.default),t.push(Ro.default),t};var Ho={},Ko={};Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.dynamicAnchor=void 0;const Jo=$,Zo=U(),Yo=Ve,Qo=Ht,Xo={keyword:"$dynamicAnchor",schemaType:"string",code:e=>ei(e,e.schema)};function ei(e,t){const{gen:n,it:r}=e;r.schemaEnv.root.dynamicAnchors[t]=!0;const o=Jo._`${Zo.default.dynamicAnchors}${(0,Jo.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 Yo.SchemaEnv({schema:n,schemaId:l,root:o,baseId:i,localRefs:a,meta:s});return Yo.compileSchema.call(r,c),(0,Qo.getValidate)(e,c)}(e);n.if(Jo._`!${o}`,(()=>n.assign(o,i)))}Ko.dynamicAnchor=ei,Ko.default=Xo;var ti={};Object.defineProperty(ti,"__esModule",{value:!0}),ti.dynamicRef=void 0;const ni=$,ri=U(),oi=Ht,ii={keyword:"$dynamicRef",schemaType:"string",code:e=>ai(e,e.schema)};function ai(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",ni._`${ri.default.dynamicAnchors}${(0,ni.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,oi.callRef)(e,t),n.let(r,!0)})):()=>(0,oi.callRef)(e,t)}}ti.dynamicRef=ai,ti.default=ii;var si={};Object.defineProperty(si,"__esModule",{value:!0});const li=Ko,ci=A,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(Ho,"__esModule",{value:!0});const hi=ti,mi=si,vi=di,yi=[Ko.default,hi.default,mi.default,vi.default];Ho.default=yi;var wi={},gi={};Object.defineProperty(gi,"__esModule",{value:!0});const bi=Ur,$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=Ur,Ai={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,ji.validateSchemaDeps)(e)};ki.default=Ai;var Ti={};Object.defineProperty(Ti,"__esModule",{value:!0});const Pi=A,zi={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:n}){void 0===t.contains&&(0,Pi.checkStrictMode)(n,`"${e}" without "contains" is ignored`)}};Ti.default=zi,Object.defineProperty(wi,"__esModule",{value:!0});const Ei=ki,Ci=Ti,Si=[gi.default,Ei.default,Ci.default];wi.default=Si;var _i={},Oi={};Object.defineProperty(Oi,"__esModule",{value:!0});const xi=$,Ii=A,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: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,Ii.alwaysValidSchema)(i,n)){const n=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:r,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",r,(e=>t.if(function(e,t){return xi._`!${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(xi._`${t} !== ${r}`);return(0,xi.and)(...n)}(s,e),(()=>l(e))))),i.props=!0,e.ok(xi._`${o} === ${Ri.default.errors}`)}};Oi.default=Ni;var Di={};Object.defineProperty(Di,"__esModule",{value:!0});const Mi=$,qi=A,Fi={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:e}})=>Mi.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>Mi._`{limit: ${e}}`},code(e){const{gen:t,schema:n,data:r,it:o}=e,i=o.items||0;if(!0===i)return;const a=t.const("len",Mi._`${r}.length`);if(!1===n)e.setParams({len:i}),e.fail(Mi._`${a} > ${i}`);else if("object"==typeof n&&!(0,qi.alwaysValidSchema)(o,n)){const n=t.var("valid",Mi._`${a} <= ${i}`);t.if((0,Mi.not)(n),(()=>function(n,r){t.forRange("i",r,a,(r=>{e.subschema({keyword:"unevaluatedItems",dataProp:r,dataPropType:qi.Type.Num},n),o.allErrors||t.if((0,Mi.not)(n),(()=>t.break()))}))}(n,i))),e.ok(n)}o.items=!0}};Di.default=Fi,Object.defineProperty(_i,"__esModule",{value:!0});const Ui=Di,Li=[Oi.default,Ui.default];_i.default=Li;var Bi={},Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});const Wi=$,Gi={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>Wi.str`must match format "${e}"`,params:({schemaCode:e})=>Wi._`{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",Wi._`${o}[${a}]`),s=n.let("fType"),c=n.let("format");n.if(Wi._`typeof ${i} == "object" && !(${i} instanceof RegExp)`,(()=>n.assign(s,Wi._`${i}.type || "string"`).assign(c,Wi._`${i}.validate`)),(()=>n.assign(s,Wi._`"string"`).assign(c,i))),e.fail$data((0,Wi.or)(!1===l.strictSchema?Wi.nil:Wi._`${a} && !${c}`,function(){const e=u.$async?Wi._`(${i}.async ? await ${c}(${r}) : ${c}(${r}))`:Wi._`${c}(${r})`,n=Wi._`(typeof ${c} == "function" ? ${e} : ${c}.test(${r}))`;return Wi._`${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,Wi.regexpCode)(e):l.code.formats?Wi._`${l.code.formats}${(0,Wi.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,Wi._`${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 Wi._`await ${p}(${r})`}return"function"==typeof s?Wi._`${p}(${r})`:Wi._`${p}.test(${r})`}())}())}};Vi.default=Gi,Object.defineProperty(Bi,"__esModule",{value:!0});const Hi=[Vi.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=Vt,Zi=an,Yi=vr,Qi=wi,Xi=_i,ea=Bi,ta=Ki,na=[Ho.default,Ji.default,Zi.default,(0,Yi.default)(!0),ea.default,ta.metadataVocabulary,ta.contentVocabulary,Qi.default,Xi.default];Bt.default=na;var ra,oa={},ia={};Object.defineProperty(ia,"__esModule",{value:!0}),ia.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(ra||(ia.DiscrError=ra={})),Object.defineProperty(oa,"__esModule",{value:!0});const aa=$,sa=ia,la=Ve,ca=Be(),ua=A,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: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",aa._`${n}${(0,aa.getProperty)(s)}`);function u(n){const r=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},r);return e.mergeEvaluated(o,aa.Name),r}t.if(aa._`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,ua.schemaHasRulesButRef)(o,i.self.RULES)){const e=o.$ref;if(o=la.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,e),o instanceof la.SchemaEnv&&(o=o.schema),void 0===o)throw new ca.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(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)}};oa.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,Aa=va,Ta=ya,Pa=wa,za=ga,Ea=ba,Ca=["/properties"];pa.default=function(e){return[$a,ka,ja,Aa,Ta,t(this,Pa),za,t(this,Ea)].forEach((e=>this.addMetaSchema(e,void 0,!1))),this;function t(t,n){return e?t.$dataMetaSchema(n,Ca):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,r=Bt,o=oa,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(),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=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=Fe();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 Sa=m(v.exports),_a={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(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/}(Oa);var xa={},Ia={exports:{}},Ra={};Object.defineProperty(Ra,"__esModule",{value:!0});const Na=an,Da=vr,Ma=Bi,qa=Ki,Fa=[Vt.default,Na.default,(0,Da.default)(),Ma.default,qa.metadataVocabulary,qa.contentVocabulary];Ra.default=Fa;var Ua={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=y,r=Ra,o=oa,i=Ua,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=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=Fe();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=$,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)}(xa),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=Oa,r=xa,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}(_a,_a.exports);var Ba=m(_a.exports),Va=new Sa({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});Ba(Va);var Wa=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=Va.getSchema(n);if(!r)throw"Unable to find schema '".concat(n,"' for type '").concat(t,"'");return[t,r]}))),Ga=function(e,t,n){var r,o,i,a,s,c;null===(o=null===(r=h(e))||void 0===r?void 0:r.preValidation)||void 0===o||o.call(r,t,n);var u=Wa.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,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("WithEvent",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ka=Ha,Ja=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("EventFilterCorrelate",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Za=Ja,Ya=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.with&&(i.with=new Ka(t.with)),"object"==typeof t.correlate&&(i.correlate=new Za(t.correlate))),null===(r=null===(n=h("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);Ga("EventFilter",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Qa=Ya,Xa=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 Qa(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=h("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);Ga("AllEventConsumptionStrategyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),es=Xa,ts=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.all&&(i.all=new es(t.all)),null===(r=null===(n=h("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);Ga("AllEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ns=ts,rs=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 Qa(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=h("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);Ga("AnyEventConsumptionStrategyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),os=rs,is=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.all&&(i.all=new es(t.all)),"object"==typeof t.any&&(i.any=new os(t.any)),"object"==typeof t.one&&(i.one=new Qa(t.one))),null===(r=null===(n=h("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);Ga("AnyEventConsumptionStrategyUntil",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=h("AnyEventConsumptionStrategyUntil"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(c),as=is,ss=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.any&&(i.any=new os(t.any)),"object"==typeof t.until&&(i.until=new as(t.until))),null===(r=null===(n=h("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);Ga("AnyEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ls=ss,cs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.all&&(i.all=new es(t.all)),"object"==typeof t.any&&(i.any=new os(t.any)),"object"==typeof t.one&&(i.one=new Qa(t.one))),null===(r=null===(n=h("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);Ga("AnyEventUntilConsumed",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=h("AnyEventUntilConsumed"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(c),us=cs,ds=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("AsyncApiArguments",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ps=ds,fs=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("BasicAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),hs=fs,ms=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("BearerAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),vs=ms,ys=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("DigestAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ws=ys,gs=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("OAuth2AutenthicationDataClient",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),bs=gs,$s=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("OAuth2TokenRequest",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ks=$s,js=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("OAuth2TokenDefinition",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),As=js,Ts=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("OAuth2AuthenticationPropertiesEndpoints",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ps=Ts,zs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.client&&(i.client=new bs(t.client)),"object"==typeof t.request&&(i.request=new ks(t.request)),"object"==typeof t.subject&&(i.subject=new As(t.subject)),"object"==typeof t.actor&&(i.actor=new As(t.actor)),"object"==typeof t.endpoints&&(i.endpoints=new Ps(t.endpoints))),null===(r=null===(n=h("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);Ga("OAuth2AuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Es=zs,Cs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.client&&(i.client=new bs(t.client)),"object"==typeof t.request&&(i.request=new ks(t.request)),"object"==typeof t.subject&&(i.subject=new As(t.subject)),"object"==typeof t.actor&&(i.actor=new As(t.actor))),null===(r=null===(n=h("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);Ga("OpenIdConnectAuthenticationPolicyConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ss=Cs,_s=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.basic&&(i.basic=new hs(t.basic)),"object"==typeof t.bearer&&(i.bearer=new vs(t.bearer)),"object"==typeof t.digest&&(i.digest=new ws(t.digest)),"object"==typeof t.oauth2&&(i.oauth2=new Es(t.oauth2)),"object"==typeof t.oidc&&(i.oidc=new Ss(t.oidc))),null===(r=null===(n=h("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);Ga("AuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Os=_s,xs=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("AuthenticationPolicyReference",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Is=xs,Rs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.basic&&(i.basic=new hs(t.basic)),null===(r=null===(n=h("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);Ga("BasicAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ns=Rs,Ds=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("BasicAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ms=Ds,qs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.bearer&&(i.bearer=new vs(t.bearer)),null===(r=null===(n=h("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);Ga("BearerAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Fs=qs,Us=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("BearerAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ls=Us,Bs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.basic&&(i.basic=new hs(t.basic)),"object"==typeof t.bearer&&(i.bearer=new vs(t.bearer)),"object"==typeof t.digest&&(i.digest=new ws(t.digest)),"object"==typeof t.oauth2&&(i.oauth2=new Es(t.oauth2)),"object"==typeof t.oidc&&(i.oidc=new Ss(t.oidc))),null===(r=null===(n=h("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);Ga("ReferenceableAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Vs=Bs,Ws=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.authentication&&(i.authentication=new Vs(t.authentication)),null===(r=null===(n=h("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);Ga("Endpoint",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Gs=Ws,Hs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.endpoint&&(i.endpoint=new Gs(t.endpoint)),null===(r=null===(n=h("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);Ga("ExternalResource",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ks=Hs,Js=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.resource&&(i.resource=new Ks(t.resource)),null===(r=null===(n=h("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);Ga("Schema",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Zs=Js,Ys=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.schema&&(i.schema=new Zs(t.schema)),null===(r=null===(n=h("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);Ga("Input",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Qs=Ys,Xs=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.schema&&(i.schema=new Zs(t.schema)),null===(r=null===(n=h("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);Ga("Output",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),el=Xs,tl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.schema&&(i.schema=new Zs(t.schema)),null===(r=null===(n=h("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);Ga("Export",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),nl=tl,rl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("Duration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ol=rl,il=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.after&&(i.after=new ol(t.after)),null===(r=null===(n=h("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);Ga("TaskTimeout",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=h("TaskTimeout"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(c),al=il,sl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("TaskMetadata",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ll=sl,cl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata))),null===(r=null===(n=h("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);Ga("TaskBase",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ul=cl,dl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&(i.call="asyncapi","object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata))),null===(r=null===(n=h("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);Ga("CallAsyncAPI",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),pl=dl,fl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("FunctionArguments",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),hl=fl,ml=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.with&&(i.with=new hl(t.with))),null===(r=null===(n=h("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);Ga("CallFunction",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),vl=ml,yl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.authentication&&(i.authentication=new Vs(t.authentication)),null===(r=null===(n=h("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);Ga("WithGRPCService",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),wl=yl,gl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("WithGRPCArguments",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),bl=gl,$l=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.proto&&(i.proto=new Ks(t.proto)),"object"==typeof t.service&&(i.service=new wl(t.service)),"object"==typeof t.arguments&&(i.arguments=new bl(t.arguments))),null===(r=null===(n=h("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);Ga("GRPCArguments",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),kl=$l,jl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&(i.call="grpc","object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.with&&(i.with=new kl(t.with))),null===(r=null===(n=h("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);Ga("CallGRPC",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),Al=jl,Tl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("HTTPHeaders",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=h("HTTPHeaders"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(c),Pl=Tl,zl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("HTTPBody",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=h("HTTPBody"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(c),El=zl,Cl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("HTTPQuery",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=h("HTTPQuery"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(c),Sl=Cl,_l=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.endpoint&&(i.endpoint=new Gs(t.endpoint)),"object"==typeof t.headers&&(i.headers=new Pl(t.headers)),"object"==typeof t.body&&(i.body=new El(t.body)),"object"==typeof t.query&&(i.query=new Sl(t.query))),null===(r=null===(n=h("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);Ga("HTTPArguments",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ol=_l,xl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&(i.call="http","object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.with&&(i.with=new Ol(t.with))),null===(r=null===(n=h("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);Ga("CallHTTP",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),Il=xl,Rl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("WithOpenAPIParameters",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Nl=Rl,Dl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.document&&(i.document=new Ks(t.document)),"object"==typeof t.parameters&&(i.parameters=new Nl(t.parameters)),"object"==typeof t.authentication&&(i.authentication=new Vs(t.authentication))),null===(r=null===(n=h("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);Ga("OpenAPIArguments",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ml=Dl,ql=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&(i.call="openapi","object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.with&&(i.with=new Ml(t.with))),null===(r=null===(n=h("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);Ga("CallOpenAPI",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),Fl=ql,Ul=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata))),null===(r=null===(n=h("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);Ga("CallTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ll=Ul,Bl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.endpoint&&(i.endpoint=new Gs(t.endpoint)),null===(r=null===(n=h("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);Ga("Catalog",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Vl=Bl,Wl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("ErrorFilter",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=h("ErrorFilter"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(c),Gl=Wl,Hl=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.with&&(i.with=new Gl(t.with)),null===(r=null===(n=h("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);Ga("CatchErrors",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Kl=Hl,Jl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("ConstantBackoff",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Zl=Jl,Yl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("ContainerPorts",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ql=Yl,Xl=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("ContainerVolumes",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ec=Xl,tc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("ContainerEnvironment",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),nc=tc,rc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.after&&(i.after=new ol(t.after)),null===(r=null===(n=h("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);Ga("ContainerLifetime",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=h("ContainerLifetime"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(c),oc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.ports&&(i.ports=new Ql(t.ports)),"object"==typeof t.volumes&&(i.volumes=new ec(t.volumes)),"object"==typeof t.environment&&(i.environment=new nc(t.environment)),"object"==typeof t.lifetime&&(i.lifetime=new rc(t.lifetime))),null===(r=null===(n=h("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);Ga("Container",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ic=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.digest&&(i.digest=new ws(t.digest)),null===(r=null===(n=h("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);Ga("DigestAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ac=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("DigestAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),sc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("WorkflowTags",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),lc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("WorkflowMetadata",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),cc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.tags&&(i.tags=new sc(t.tags)),"object"==typeof t.metadata&&(i.metadata=new lc(t.metadata))),null===(r=null===(n=h("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);Ga("Document",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),uc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.branches&&(i.branches=new qc(t.branches)),null===(r=null===(n=h("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);Ga("ForkTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),dc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("EmitEventWith",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),pc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.with&&(i.with=new dc(t.with)),null===(r=null===(n=h("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);Ga("EmitEventDefinition",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),fc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.event&&(i.event=new pc(t.event)),null===(r=null===(n=h("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);Ga("EmitTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),hc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("ForTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),mc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.all&&(i.all=new es(t.all)),"object"==typeof t.any&&(i.any=new os(t.any)),"object"==typeof t.until&&(i.until=new as(t.until)),"object"==typeof t.one&&(i.one=new Qa(t.one))),null===(r=null===(n=h("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);Ga("EventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),vc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.to&&(i.to=new mc(t.to)),null===(r=null===(n=h("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);Ga("ListenTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),yc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.do&&(i.do=new qc(t.do)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export))),null===(r=null===(n=h("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);Ga("SubscriptionIterator",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=h("SubscriptionIterator"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(c),wc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("RaiseTaskError",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=h("RaiseTaskError"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(c),gc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.error&&(i.error=new wc(t.error)),null===(r=null===(n=h("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);Ga("RaiseTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),bc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.source&&(i.source=new Ks(t.source)),null===(r=null===(n=h("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);Ga("Script",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),$c=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("ShellArguments",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),kc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("ShellEnvironment",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),jc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.arguments&&(i.arguments=new $c(t.arguments)),"object"==typeof t.environment&&(i.environment=new kc(t.environment))),null===(r=null===(n=h("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);Ga("Shell",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ac=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("SubflowInput",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Tc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.input&&(i.input=new Ac(t.input)),null===(r=null===(n=h("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);Ga("SubflowConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Pc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.container&&(i.container=new oc(t.container)),"object"==typeof t.script&&(i.script=new bc(t.script)),"object"==typeof t.shell&&(i.shell=new jc(t.shell)),"object"==typeof t.workflow&&(i.workflow=new Tc(t.workflow))),null===(r=null===(n=h("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);Ga("RunTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),zc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("SetTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ec=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("SwitchCase",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Cc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=h("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);Ga("SwitchItem",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Sc=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 Cc(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=h("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);Ga("SwitchTaskConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),_c=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("RetryBackoff",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Oc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.duration&&(i.duration=new ol(t.duration)),null===(r=null===(n=h("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);Ga("RetryLimitAttempt",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),xc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.attempt&&(i.attempt=new Oc(t.attempt)),"object"==typeof t.duration&&(i.duration=new ol(t.duration))),null===(r=null===(n=h("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);Ga("RetryLimit",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ic=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.from&&(i.from=new ol(t.from)),"object"==typeof t.to&&(i.to=new ol(t.to))),null===(r=null===(n=h("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);Ga("RetryPolicyJitter",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Rc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.delay&&(i.delay=new ol(t.delay)),"object"==typeof t.backoff&&(i.backoff=new _c(t.backoff)),"object"==typeof t.limit&&(i.limit=new xc(t.limit)),"object"==typeof t.jitter&&(i.jitter=new Ic(t.jitter))),null===(r=null===(n=h("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);Ga("TryTaskCatchRetry",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Nc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.errors&&(i.errors=new Kl(t.errors)),"object"==typeof t.retry&&(i.retry=new Rc(t.retry)),"object"==typeof t.do&&(i.do=new qc(t.do))),null===(r=null===(n=h("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);Ga("TryTaskCatch",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Dc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.fork&&(i.fork=new uc(t.fork)),"object"==typeof t.emit&&(i.emit=new fc(t.emit)),"object"==typeof t.for&&(i.for=new hc(t.for)),"object"==typeof t.listen&&(i.listen=new vc(t.listen)),"object"==typeof t.foreach&&(i.foreach=new yc(t.foreach)),"object"==typeof t.raise&&(i.raise=new gc(t.raise)),"object"==typeof t.run&&(i.run=new Pc(t.run)),"object"==typeof t.set&&(i.set=new zc(t.set)),"object"==typeof t.switch&&(i.switch=new Sc(t.switch)),"object"==typeof t.try&&(i.try=new qc(t.try)),"object"==typeof t.catch&&(i.catch=new Nc(t.catch)),"object"==typeof t.wait&&(i.wait=new ol(t.wait))),null===(r=null===(n=h("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);Ga("Task",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Mc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 Dc(n)}))}return null===(r=null===(n=h("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);Ga("TaskItem",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),qc=function(e){function t(n){var r,o,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(new Mc(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=h("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);Ga("TaskList",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Fc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.do&&(i.do=new qc(t.do))),null===(r=null===(n=h("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);Ga("DoTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),Uc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("DurationInline",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Lc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.emit&&(i.emit=new fc(t.emit))),null===(r=null===(n=h("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);Ga("EmitTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),Bc=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.authentication&&(i.authentication=new Vs(t.authentication)),null===(r=null===(n=h("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);Ga("EndpointConfiguration",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Vc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("EndpointUri",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Wc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("Error",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Gc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("ErrorInstance",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Hc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("ErrorType",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Kc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("EventData",n,e)},t.prototype.normalize=function(){var e,n,r=new t(this);return(null===(n=null===(e=h("EventData"))||void 0===e?void 0:e.normalize)||void 0===n?void 0:n.call(e,r))||r},t}(c),Jc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("EventDataschema",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Zc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("EventSource",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Yc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("EventTime",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Qc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("ExponentialBackOff",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Xc=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("ExportAs",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),eu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.before&&(i.before=new qc(t.before)),"object"==typeof t.after&&(i.after=new qc(t.after))),null===(r=null===(n=h("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);Ga("Extension",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),tu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 eu(n)}))}return null===(r=null===(n=h("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);Ga("ExtensionItem",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),nu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.source&&(i.source=new Ks(t.source)),null===(r=null===(n=h("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);Ga("ExternalScript",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ru=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("FlowDirective",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ou=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.fork&&(i.fork=new uc(t.fork))),null===(r=null===(n=h("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);Ga("ForkTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),iu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.for&&(i.for=new hc(t.for)),"object"==typeof t.do&&(i.do=new qc(t.do))),null===(r=null===(n=h("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);Ga("ForTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),au=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("InlineScript",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),su=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("InputFrom",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),lu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("LinearBackoff",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),cu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.listen&&(i.listen=new vc(t.listen)),"object"==typeof t.foreach&&(i.foreach=new yc(t.foreach))),null===(r=null===(n=h("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);Ga("ListenTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),uu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.client&&(i.client=new bs(t.client)),"object"==typeof t.request&&(i.request=new ks(t.request)),"object"==typeof t.subject&&(i.subject=new As(t.subject)),"object"==typeof t.actor&&(i.actor=new As(t.actor))),null===(r=null===(n=h("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);Ga("OAuth2AutenthicationData",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),du=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=h("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);Ga("OAuth2AutenthicationDataAudiences",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),pu=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=h("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);Ga("OAuth2AutenthicationDataScopes",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),fu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.oauth2&&(i.oauth2=new Es(t.oauth2)),null===(r=null===(n=h("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);Ga("OAuth2AuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),hu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.client&&(i.client=new bs(t.client)),"object"==typeof t.request&&(i.request=new ks(t.request)),"object"==typeof t.subject&&(i.subject=new As(t.subject)),"object"==typeof t.actor&&(i.actor=new As(t.actor)),"object"==typeof t.endpoints&&(i.endpoints=new Ps(t.endpoints))),null===(r=null===(n=h("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);Ga("OAuth2ConnectAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(uu),mu=function(e){function t(n){var r,o,i=e.call(this,n)||this;return Array.isArray(n)&&(null==n?void 0:n.length)&&(i.splice(0,i.length),n.forEach((function(e){return i.push(e)}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=h("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);Ga("OAuth2Issuers",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),vu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.one&&(i.one=new Qa(t.one)),null===(r=null===(n=h("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);Ga("OneEventConsumptionStrategy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),yu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.oidc&&(i.oidc=new Ss(t.oidc)),null===(r=null===(n=h("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);Ga("OpenIdConnectAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),wu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.client&&(i.client=new bs(t.client)),"object"==typeof t.request&&(i.request=new ks(t.request)),"object"==typeof t.subject&&(i.subject=new As(t.subject)),"object"==typeof t.actor&&(i.actor=new As(t.actor))),null===(r=null===(n=h("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);Ga("OpenIdConnectAuthenticationProperties",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),gu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("OutputAs",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),bu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.raise&&(i.raise=new gc(t.raise))),null===(r=null===(n=h("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);Ga("RaiseTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),$u=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.delay&&(i.delay=new ol(t.delay)),"object"==typeof t.backoff&&(i.backoff=new _c(t.backoff)),"object"==typeof t.limit&&(i.limit=new xc(t.limit)),"object"==typeof t.jitter&&(i.jitter=new Ic(t.jitter))),null===(r=null===(n=h("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);Ga("RetryPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ku=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.container&&(i.container=new oc(t.container)),null===(r=null===(n=h("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);Ga("RunContainer",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),ju=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.script&&(i.script=new bc(t.script)),null===(r=null===(n=h("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);Ga("RunScript",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Au=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.shell&&(i.shell=new jc(t.shell)),null===(r=null===(n=h("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);Ga("RunShell",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Tu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.run&&(i.run=new Pc(t.run))),null===(r=null===(n=h("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);Ga("RunTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),Pu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("RuntimeExpression",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),zu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.workflow&&(i.workflow=new Tc(t.workflow)),null===(r=null===(n=h("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);Ga("RunWorkflow",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Eu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.every&&(i.every=new ol(t.every)),"object"==typeof t.after&&(i.after=new ol(t.after)),"object"==typeof t.on&&(i.on=new mc(t.on))),null===(r=null===(n=h("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);Ga("Schedule",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Cu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.resource&&(i.resource=new Ks(t.resource)),null===(r=null===(n=h("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);Ga("SchemaExternal",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Su=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("SchemaInline",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),_u=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("SecretBasedAuthenticationPolicy",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ou=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.set&&(i.set=new zc(t.set))),null===(r=null===(n=h("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);Ga("SetTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),xu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.switch&&(i.switch=new Sc(t.switch))),null===(r=null===(n=h("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);Ga("SwitchTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),Iu=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("TaskBaseIf",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Ru=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.after&&(i.after=new ol(t.after)),null===(r=null===(n=h("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);Ga("Timeout",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Nu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.try&&(i.try=new qc(t.try)),"object"==typeof t.catch&&(i.catch=new Nc(t.catch))),null===(r=null===(n=h("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);Ga("TryTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),Du=function(e){function t(t){var n,r,o=e.call(this,t)||this;return null===(r=null===(n=h("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);Ga("UriTemplate",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Mu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 Os(n)}))}return null===(r=null===(n=h("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);Ga("UseAuthentications",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),qu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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===(r=null===(n=h("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);Ga("UseErrors",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),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(new tu(e))}))),Object.setPrototypeOf(i,Object.create(t.prototype)),null===(o=null===(r=h("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);Ga("UseExtensions",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Uu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 Dc(n)}))}return null===(r=null===(n=h("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);Ga("UseFunctions",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Lu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 $u(n)}))}return null===(r=null===(n=h("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);Ga("UseRetries",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Bu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 Ru(n)}))}return null===(r=null===(n=h("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);Ga("UseTimeouts",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Vu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;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 Vl(n)}))}return null===(r=null===(n=h("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);Ga("UseCatalogs",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Wu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.authentications&&(i.authentications=new Mu(t.authentications)),"object"==typeof t.errors&&(i.errors=new qu(t.errors)),"object"==typeof t.extensions&&(i.extensions=new Fu(t.extensions)),"object"==typeof t.functions&&(i.functions=new Uu(t.functions)),"object"==typeof t.retries&&(i.retries=new Lu(t.retries)),"object"==typeof t.timeouts&&(i.timeouts=new Bu(t.timeouts)),"object"==typeof t.catalogs&&(i.catalogs=new Vu(t.catalogs))),null===(r=null===(n=h("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);Ga("Use",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c),Gu=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=h("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);Ga("UseSecrets",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(u),Hu=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.export&&(i.export=new nl(t.export)),"object"==typeof t.timeout&&(i.timeout=new al(t.timeout)),"object"==typeof t.metadata&&(i.metadata=new ll(t.metadata)),"object"==typeof t.wait&&(i.wait=new ol(t.wait))),null===(r=null===(n=h("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);Ga("WaitTask",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(ul),Ku=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&"object"==typeof t.after&&(i.after=new ol(t.after)),null===(r=null===(n=h("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);Ga("WorkflowTimeout",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t}(c);
|
|
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 Ju(e){return null==e}var Zu={isNothing:Ju,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:Ju(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 Yu(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 Qu(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Yu(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}Qu.prototype=Object.create(Error.prototype),Qu.prototype.constructor=Qu,Qu.prototype.toString=function(e){return this.name+": "+Yu(this,e)};var Xu=Qu;function ed(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 td(e,t){return Zu.repeat(" ",t-e.length)+e}var nd=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=ed(e.buffer,o[a-s],i[a-s],e.position-(o[a]-o[a-s]),d),c=Zu.repeat(" ",t.indent)+td((e.line-s+1).toString(),u)+" | "+l.str+"\n"+c;for(l=ed(e.buffer,o[a],i[a],e.position,d),c+=Zu.repeat(" ",t.indent)+td((e.line+1).toString(),u)+" | "+l.str+"\n",c+=Zu.repeat("-",t.indent+u+3+l.pos)+"^\n",s=1;s<=t.linesAfter&&!(a+s>=i.length);s++)l=ed(e.buffer,o[a+s],i[a+s],e.position-(o[a]-o[a+s]),d),c+=Zu.repeat(" ",t.indent)+td((e.line+s+1).toString(),u)+" | "+l.str+"\n";return c.replace(/\n$/,"")},rd=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],od=["scalar","sequence","mapping"];var id=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===rd.indexOf(t))throw new Xu('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===od.indexOf(this.kind))throw new Xu('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function ad(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 sd(e){return this.extend(e)}sd.prototype.extend=function(e){var t=[],n=[];if(e instanceof id)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 Xu("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 id))throw new Xu("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new Xu("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 Xu("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 id))throw new Xu("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(sd.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=ad(r,"implicit"),r.compiledExplicit=ad(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 ld=new sd({explicit:[new id("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),new id("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),new id("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})]});var cd=new id("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 ud=new id("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 dd(e){return 48<=e&&e<=55}function pd(e){return 48<=e&&e<=57}var fd=new id("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(!dd(e.charCodeAt(o)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;o<r;o++)if("_"!==(t=e[o])){if(!pd(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&&!Zu.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"]}}),hd=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var md=/^[-+]?[0-9]+e/;var vd=new id("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!hd.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||Zu.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(Zu.isNegativeZero(e))return"-0.0";return n=e.toString(10),md.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),yd=ld.extend({implicit:[cd,ud,fd,vd]}),wd=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),gd=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 bd=new id("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==wd.exec(e)||null!==gd.exec(e))},construct:function(e){var t,n,r,o,i,a,s,l,c=0,u=null;if(null===(t=wd.exec(e))&&(t=gd.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 $d=new id("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),kd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var jd=new id("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,o=e.length,i=kd;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=kd,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=kd;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}}),Ad=Object.prototype.hasOwnProperty,Td=Object.prototype.toString;var Pd=new id("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]"!==Td.call(r))return!1;for(o in r)if(Ad.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:[]}}),zd=Object.prototype.toString;var Ed=new id("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]"!==zd.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}}),Cd=Object.prototype.hasOwnProperty;var Sd=new id("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(Cd.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),_d=yd.extend({implicit:[bd,$d],explicit:[jd,Pd,Ed,Sd]}),Od=Object.prototype.hasOwnProperty,xd=1,Id=2,Rd=3,Nd=4,Dd=1,Md=2,qd=3,Fd=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Ud=/[\x85\u2028\u2029]/,Ld=/[,\[\]\{\}]/,Bd=/^(?:!|!!|![a-z\-]+!)$/i,Vd=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Wd(e){return Object.prototype.toString.call(e)}function Gd(e){return 10===e||13===e}function Hd(e){return 9===e||32===e}function Kd(e){return 9===e||32===e||10===e||13===e}function Jd(e){return 44===e||91===e||93===e||123===e||125===e}function Zd(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Yd(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 Qd(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var Xd=new Array(256),ep=new Array(256),tp=0;tp<256;tp++)Xd[tp]=Yd(tp)?1:0,ep[tp]=Yd(tp);function np(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 rp(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=nd(n),new Xu(t,n)}function op(e,t){throw rp(e,t)}function ip(e,t){e.onWarning&&e.onWarning.call(null,rp(e,t))}var ap={YAML:function(e,t,n){var r,o,i;null!==e.version&&op(e,"duplication of %YAML directive"),1!==n.length&&op(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&op(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),i=parseInt(r[2],10),1!==o&&op(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&ip(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&op(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],Bd.test(r)||op(e,"ill-formed tag handle (first argument) of the TAG directive"),Od.call(e.tagMap,r)&&op(e,'there is a previously declared suffix for "'+r+'" tag handle'),Vd.test(o)||op(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch(t){op(e,"tag prefix is malformed: "+o)}e.tagMap[r]=o}};function sp(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||op(e,"expected valid JSON character");else Fd.test(s)&&op(e,"the stream contains non-printable characters");e.result+=s}}function lp(e,t,n,r){var o,i,a,s;for(Zu.isObject(n)||op(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],Od.call(t,i)||(t[i]=n[i],r[i]=!0)}function cp(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])&&op(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===Wd(o[c])&&(o[c]="[object Object]");if("object"==typeof o&&"[object Object]"===Wd(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)lp(e,t,i[c],n);else lp(e,t,i,n);else e.json||Od.call(n,o)||!Od.call(t,o)||(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,op(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 up(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):op(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function dp(e,t,n){for(var r=0,o=e.input.charCodeAt(e.position);0!==o;){for(;Hd(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(!Gd(o))break;for(up(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&&ip(e,"deficient indentation"),r}function pp(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))&&!Kd(t)))}function fp(e,t){1===t?e.result+=" ":t>1&&(e.result+=Zu.repeat("\n",t-1))}function hp(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,op(e,"tab characters must not be used in indentation")),45===r)&&Kd(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,dp(e,!0,-1)&&e.lineIndent<=t)a.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,yp(e,t,Rd,!1,!0),a.push(e.result),dp(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)op(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 mp(e){var t,n,r,o,i=!1,a=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&op(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)):op(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!Kd(o);)33===o&&(a?op(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Bd.test(n)||op(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),Ld.test(r)&&op(e,"tag suffix cannot contain flow indicator characters")}r&&!Vd.test(r)&&op(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){op(e,"tag name is malformed: "+r)}return i?e.tag=r:Od.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:op(e,'undeclared tag handle "'+n+'"'),!0}function vp(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&op(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Kd(n)&&!Jd(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&op(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function yp(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=Nd===n||Rd===n,r&&dp(e,!0,-1)&&(m=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;mp(e)||vp(e);)dp(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&&Nd!==n||(p=xd===n||Id===n?t:t+1,f=e.position-e.lineStart,1===h?s&&(hp(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,op(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),i=e.line,63!==c&&58!==c||!Kd(r)){if(a=e.line,s=e.lineStart,l=e.position,!yp(e,n,Id,!1,!0))break;if(e.line===i){for(c=e.input.charCodeAt(e.position);Hd(c);)c=e.input.charCodeAt(++e.position);if(58===c)Kd(c=e.input.charCodeAt(++e.position))||op(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(cp(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;op(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!w)return e.tag=u,e.anchor=d,!0;op(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(y&&(cp(e,p,f,h,m,null,a,s,l),h=m=v=null),w=!0,y=!0,o=!0):y?(y=!1,o=!0):op(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),yp(e,t,Nd,!0,o)&&(y?m=e.result:v=e.result),y||(cp(e,p,f,h,m,v,a,s,l),h=m=v=null),dp(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==c)op(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&cp(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(dp(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&&op(e,"expected the node content, but found ','"):op(e,"missed comma between flow collection entries"),p=null,s=l=!1,63===f&&Kd(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,dp(e,!0,t)),n=e.line,r=e.lineStart,o=e.position,yp(e,t,xd,!1,!0),d=e.tag,u=e.result,dp(e,!0,t),f=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==f||(s=!0,f=e.input.charCodeAt(++e.position),dp(e,!0,t),yp(e,t,xd,!1,!0),p=e.result),c?cp(e,i,y,d,u,p,n,r,o):s?i.push(cp(e,null,y,d,u,p,n,r,o)):i.push(u),dp(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(h=!0,f=e.input.charCodeAt(++e.position)):h=!1}op(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=Dd,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)Dd===s?s=43===i?qd:Md:op(e,"repeat of a chomping mode identifier");else{if(!((o=48<=(a=i)&&a<=57?a-48:-1)>=0))break;0===o?op(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?op(e,"repeat of an indentation width identifier"):(u=t+o-1,c=!0)}if(Hd(i)){do{i=e.input.charCodeAt(++e.position)}while(Hd(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Gd(i)&&0!==i)}for(;0!==i;){for(up(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),Gd(i))d++;else{if(e.lineIndent<u){s===qd?e.result+=Zu.repeat("\n",l?1+d:d):s===Dd&&l&&(e.result+="\n");break}for(r?Hd(i)?(p=!0,e.result+=Zu.repeat("\n",l?1+d:d)):p?(p=!1,e.result+=Zu.repeat("\n",d+1)):0===d?l&&(e.result+=" "):e.result+=Zu.repeat("\n",d):e.result+=Zu.repeat("\n",l?1+d:d),l=!0,c=!0,d=0,n=e.position;!Gd(i)&&0!==i;)i=e.input.charCodeAt(++e.position);sp(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(sp(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,o=e.position}else Gd(n)?(sp(e,r,o,!0),fp(e,dp(e,!1,t)),r=o=e.position):e.position===e.lineStart&&pp(e)?op(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);op(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 sp(e,n,e.position,!0),e.position++,!0;if(92===s){if(sp(e,n,e.position,!0),Gd(s=e.input.charCodeAt(++e.position)))dp(e,!1,t);else if(s<256&&Xd[s])e.result+=ep[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=Zd(s=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:op(e,"expected hexadecimal character");e.result+=Qd(i),e.position++}else op(e,"unknown escape sequence");n=r=e.position}else Gd(s)?(sp(e,n,r,!0),fp(e,dp(e,!1,t)),n=r=e.position):e.position===e.lineStart&&pp(e)?op(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}op(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&&!Kd(r)&&!Jd(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&op(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Od.call(e.anchorMap,n)||op(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],dp(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(Kd(u=e.input.charCodeAt(e.position))||Jd(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)&&(Kd(r=e.input.charCodeAt(e.position+1))||n&&Jd(r)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==u;){if(58===u){if(Kd(r=e.input.charCodeAt(e.position+1))||n&&Jd(r))break}else if(35===u){if(Kd(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&pp(e)||n&&Jd(u))break;if(Gd(u)){if(s=e.line,l=e.lineStart,c=e.lineIndent,dp(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&&(sp(e,o,i,!1),fp(e,e.line-s),o=i=e.position,a=!1),Hd(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return sp(e,o,i,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,p,xd===n)&&(v=!0,null===e.tag&&(e.tag="?")):(v=!0,null===e.tag&&null===e.anchor||op(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(v=s&&hp(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&&op(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(Od.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||op(e,"unknown tag !<"+e.tag+">"),null!==e.result&&d.kind!==e.kind&&op(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)):op(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 wp(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))&&(dp(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&&!Kd(o);)o=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&op(e,"directive name must not be less than one character in length");0!==o;){for(;Hd(o);)o=e.input.charCodeAt(++e.position);if(35===o){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&!Gd(o));break}if(Gd(o))break;for(t=e.position;0!==o&&!Kd(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&up(e),Od.call(ap,n)?ap[n](e,n,r):ip(e,'unknown document directive "'+n+'"')}dp(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,dp(e,!0,-1)):a&&op(e,"directives end mark is expected"),yp(e,e.lineIndent-1,Nd,!1,!0),dp(e,!0,-1),e.checkLineBreaks&&Ud.test(e.input.slice(i,e.position))&&ip(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&pp(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,dp(e,!0,-1)):e.position<e.length-1&&op(e,"end of the stream or a document separator is expected")}function gp(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 np(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,op(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;)wp(n);return n.documents}var bp={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=gp(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=gp(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new Xu("expected a single document in the stream, but found more")}}},$p=Object.prototype.toString,kp=Object.prototype.hasOwnProperty,jp=65279,Ap=9,Tp=10,Pp=13,zp=32,Ep=33,Cp=34,Sp=35,_p=37,Op=38,xp=39,Ip=42,Rp=44,Np=45,Dp=58,Mp=61,qp=62,Fp=63,Up=64,Lp=91,Bp=93,Vp=96,Wp=123,Gp=124,Hp=125,Kp={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"},Jp=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Zp=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Yp(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 Xu("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+Zu.repeat("0",r-t.length)+t}var Qp=1,Xp=2;function ef(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=Zu.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])&&kp.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?Xp:Qp,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 tf(e,t){for(var n,r=Zu.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 nf(e,t){return"\n"+Zu.repeat(" ",e.indent*t)}function rf(e){return e===zp||e===Ap}function of(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==jp||65536<=e&&e<=1114111}function af(e){return of(e)&&e!==jp&&e!==Pp&&e!==Tp}function sf(e,t,n){var r=af(e),o=r&&!rf(e);return(n?r:r&&e!==Rp&&e!==Lp&&e!==Bp&&e!==Wp&&e!==Hp)&&e!==Sp&&!(t===Dp&&!o)||af(t)&&!rf(t)&&e===Sp||t===Dp&&o}function lf(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 cf(e){return/^\n* /.test(e)}var uf=1,df=2,pf=3,ff=4,hf=5;function mf(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=of(c=lf(e,0))&&c!==jp&&!rf(c)&&c!==Np&&c!==Fp&&c!==Dp&&c!==Rp&&c!==Lp&&c!==Bp&&c!==Wp&&c!==Hp&&c!==Sp&&c!==Op&&c!==Ip&&c!==Ep&&c!==Gp&&c!==Mp&&c!==qp&&c!==xp&&c!==Cp&&c!==_p&&c!==Up&&c!==Vp&&function(e){return!rf(e)&&e!==Dp}(lf(e,e.length-1));if(t||a)for(l=0;l<e.length;u>=65536?l+=2:l++){if(!of(u=lf(e,l)))return hf;v=v&&sf(u,d,s),d=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if((u=lf(e,l))===Tp)p=!0,h&&(f=f||l-m-1>r&&" "!==e[m+1],m=l);else if(!of(u))return hf;v=v&&sf(u,d,s),d=u}f=f||h&&l-m-1>r&&" "!==e[m+1]}return p||f?n>9&&cf(e)?hf:a?i===Xp?hf:df:f?ff:pf:!v||a||o(e)?i===Xp?hf:df:uf}function vf(e,t,n,r,o){e.dump=function(){if(0===t.length)return e.quotingType===Xp?'""':"''";if(!e.noCompatMode&&(-1!==Jp.indexOf(t)||Zp.test(t)))return e.quotingType===Xp?'"'+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(mf(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 uf:return t;case df:return"'"+t.replace(/'/g,"''")+"'";case pf:return"|"+yf(t,e.indent)+wf(tf(t,i));case ff:return">"+yf(t,e.indent)+wf(tf(function(e,t){var n,r,o=/(\n+)([^\n]*)/g,i=(s=e.indexOf("\n"),s=-1!==s?s:e.length,o.lastIndex=s,gf(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")+gf(c,t),a=n}return i}(t,a),i));case hf:return'"'+function(e){for(var t,n="",r=0,o=0;o<e.length;r>=65536?o+=2:o++)r=lf(e,o),!(t=Kp[r])&&of(r)?(n+=e[o],r>=65536&&(n+=e[o+1])):n+=t||Yp(r);return n}(t)+'"';default:throw new Xu("impossible error: invalid scalar style")}}()}function yf(e,t){var n=cf(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function wf(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function gf(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 bf(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)),(kf(e,t+1,a,!0,!0,!1,!0)||void 0===a&&kf(e,t+1,null,!0,!0,!1,!0))&&(r&&""===s||(s+=nf(e,t)),e.dump&&Tp===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=l,e.dump=s||"[]"}function $f(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]"===$p.call(s.represent))r=s.represent(t,l);else{if(!kp.call(s.represent,l))throw new Xu("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');r=s.represent[l](t,l)}e.dump=r}return!0}return!1}function kf(e,t,n,r,o,i,a){e.tag=null,e.dump=n,$f(e,n,!1)||$f(e,n,!0);var s,l=$p.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 Xu("sortKeys must be a boolean or a function");for(o=0,i=p.length;o<i;o+=1)c="",r&&""===u||(c+=nf(e,t)),s=n[a=p[o]],e.replacer&&(s=e.replacer.call(n,a,s)),kf(e,t+1,a,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&Tp===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,l&&(c+=nf(e,t)),kf(e,t+1,s,!0,l)&&(e.dump&&Tp===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)),kf(e,t,i,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),kf(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?bf(e,t-1,e.dump,o):bf(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)),(kf(e,t,i,!1,!1)||void 0===i&&kf(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 Xu("unacceptable kind of an object to dump "+l)}"?"!==e.tag&&vf(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 jf(e,t){var n,r,o=[],i=[];for(Af(e,o,i),n=0,r=i.length;n<r;n+=1)t.duplicates.push(o[i[n]]);t.usedDuplicates=new Array(r)}function Af(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)Af(e[o],t,n);else for(o=0,i=(r=Object.keys(e)).length;o<i;o+=1)Af(e[r[o]],t,n)}var Tf=bp.load,Pf={dump:function(e,t){var n=new ef(t=t||{});n.noRefs||jf(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),kf(n,0,r,!0,!0)?n.dump+"\n":""}}.dump,zf=function(e){function t(t){var n,r,o=e.call(this,t)||this,i=o;return s(t)&&("object"==typeof t.document&&(i.document=new cc(t.document)),"object"==typeof t.input&&(i.input=new Qs(t.input)),"object"==typeof t.use&&(i.use=new Wu(t.use)),"object"==typeof t.do&&(i.do=new qc(t.do)),"object"==typeof t.timeout&&(i.timeout=new Ku(t.timeout)),"object"==typeof t.output&&(i.output=new el(t.output)),"object"==typeof t.schedule&&(i.schedule=new Eu(t.schedule))),null===(r=null===(n=h("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);Ga("Workflow",n,e)},t.prototype.normalize=function(){var e,n,r=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,r))||r},t.deserialize=function(e){var n=Tf(e);return Ga("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):Pf(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),Ef={AllEventConsumptionStrategy:ns,AllEventConsumptionStrategyConfiguration:es,AnyEventConsumptionStrategy:ls,AnyEventConsumptionStrategyConfiguration:os,AnyEventConsumptionStrategyUntil:as,AnyEventUntilConsumed:us,AsyncApiArguments:ps,AuthenticationPolicy:Os,AuthenticationPolicyReference:Is,BasicAuthenticationPolicy:Ns,BasicAuthenticationPolicyConfiguration:hs,BasicAuthenticationProperties:Ms,BearerAuthenticationPolicy:Fs,BearerAuthenticationPolicyConfiguration:vs,BearerAuthenticationProperties:Ls,CallAsyncAPI:pl,CallFunction:vl,CallGRPC:Al,CallHTTP:Il,CallOpenAPI:Fl,CallTask:Ll,Catalog:Vl,CatchErrors:Kl,ConstantBackoff:Zl,Container:oc,ContainerEnvironment:nc,ContainerLifetime:rc,ContainerPorts:Ql,ContainerVolumes:ec,DigestAuthenticationPolicy:ic,DigestAuthenticationPolicyConfiguration:ws,DigestAuthenticationProperties:ac,Document:cc,DoTask:Fc,Duration:ol,DurationInline:Uc,EmitEventDefinition:pc,EmitEventWith:dc,EmitTask:Lc,EmitTaskConfiguration:fc,Endpoint:Gs,EndpointConfiguration:Bc,EndpointUri:Vc,Error:Wc,ErrorFilter:Gl,ErrorInstance:Gc,ErrorType:Hc,EventConsumptionStrategy:mc,EventData:Kc,EventDataschema:Jc,EventFilter:Qa,EventFilterCorrelate:Za,EventSource:Zc,EventTime:Yc,ExponentialBackOff:Qc,Export:nl,ExportAs:Xc,Extension:eu,ExtensionItem:tu,ExternalResource:Ks,ExternalScript:nu,FlowDirective:ru,ForkTask:ou,ForkTaskConfiguration:uc,ForTask:iu,ForTaskConfiguration:hc,FunctionArguments:hl,GRPCArguments:kl,HTTPArguments:Ol,HTTPBody:El,HTTPHeaders:Pl,HTTPQuery:Sl,InlineScript:au,Input:Qs,InputFrom:su,LinearBackoff:lu,ListenTask:cu,ListenTaskConfiguration:vc,OAuth2AutenthicationData:uu,OAuth2AutenthicationDataAudiences:du,OAuth2AutenthicationDataClient:bs,OAuth2AutenthicationDataScopes:pu,OAuth2AuthenticationPolicy:fu,OAuth2AuthenticationPolicyConfiguration:Es,OAuth2AuthenticationPropertiesEndpoints:Ps,OAuth2ConnectAuthenticationProperties:hu,OAuth2Issuers:mu,OAuth2TokenDefinition:As,OAuth2TokenRequest:ks,OneEventConsumptionStrategy:vu,OpenAPIArguments:Ml,OpenIdConnectAuthenticationPolicy:yu,OpenIdConnectAuthenticationPolicyConfiguration:Ss,OpenIdConnectAuthenticationProperties:wu,Output:el,OutputAs:gu,RaiseTask:bu,RaiseTaskConfiguration:gc,RaiseTaskError:wc,ReferenceableAuthenticationPolicy:Vs,RetryBackoff:_c,RetryLimit:xc,RetryLimitAttempt:Oc,RetryPolicy:$u,RetryPolicyJitter:Ic,RunContainer:ku,RunScript:ju,RunShell:Au,RunTask:Tu,RunTaskConfiguration:Pc,RuntimeExpression:Pu,RunWorkflow:zu,Schedule:Eu,Schema:Zs,SchemaExternal:Cu,SchemaInline:Su,Script:bc,SecretBasedAuthenticationPolicy:_u,SetTask:Ou,SetTaskConfiguration:zc,Shell:jc,ShellArguments:$c,ShellEnvironment:kc,SubflowConfiguration:Tc,SubflowInput:Ac,SubscriptionIterator:yc,SwitchCase:Ec,SwitchItem:Cc,SwitchTask:xu,SwitchTaskConfiguration:Sc,Task:Dc,TaskBase:ul,TaskBaseIf:Iu,TaskItem:Mc,TaskList:qc,TaskMetadata:ll,TaskTimeout:al,Timeout:Ru,TryTask:Nu,TryTaskCatch:Nc,TryTaskCatchRetry:Rc,UriTemplate:Du,Use:Wu,UseAuthentications:Mu,UseCatalogs:Vu,UseErrors:qu,UseExtensions:Fu,UseFunctions:Uu,UseRetries:Lu,UseSecrets:Gu,UseTimeouts:Bu,WaitTask:Hu,WithEvent:Ka,WithGRPCArguments:bl,WithGRPCService:wl,WithOpenAPIParameters:Nl,Workflow:zf,WorkflowMetadata:lc,WorkflowTags:sc,WorkflowTimeout:Ku};function Cf(e,t){var n=new Ef.AllEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Sf=function(e){return t(e,Cf)};function _f(e,t){var n=new Ef.AllEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Of=function(e){return n(e,_f)};function xf(e,t){var n=new Ef.AnyEventConsumptionStrategy(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 Ef.AnyEventConsumptionStrategyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Nf=function(e){return n(e,Rf)};function Df(e,t){var n=new Ef.AnyEventConsumptionStrategyUntil(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Mf=function(e){return t(e,Df)};function qf(e,t){var n=new Ef.AnyEventUntilConsumed(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ff=function(e){return t(e,qf)};function Uf(e,t){var n=new Ef.AsyncApiArguments(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 Ef.AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Vf=function(e){return t(e,Bf)};function Wf(e,t){var n=new Ef.AuthenticationPolicyReference(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Gf=function(e){return t(e,Wf)};function Hf(e,t){var n=new Ef.BasicAuthenticationPolicy(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 Ef.BasicAuthenticationPolicyConfiguration(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 Ef.BasicAuthenticationProperties(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 Ef.BearerAuthenticationPolicy(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 Ef.BearerAuthenticationPolicyConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var nh=function(e){return t(e,th)};function rh(e,t){var n=new Ef.BearerAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var oh=function(e){return t(e,rh)};function ih(e,t){var n=new Ef.CallAsyncAPI(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 Ef.CallFunction(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 Ef.CallGRPC(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 Ef.CallHTTP(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 Ef.CallOpenAPI(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 Ef.CallTask(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 Ef.Catalog(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 Ef.CatchErrors(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 Ef.ConstantBackoff(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 Ef.Container(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ah=function(e){return t(e,jh)};function Th(e,t){var n=new Ef.ContainerEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ph=function(e){return t(e,Th)};function zh(e,t){var n=new Ef.ContainerLifetime(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Eh=function(e){return t(e,zh)};function Ch(e,t){var n=new Ef.ContainerPorts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Sh=function(e){return t(e,Ch)};function _h(e,t){var n=new Ef.ContainerVolumes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Oh=function(e){return t(e,_h)};function xh(e,t){var n=new Ef.DigestAuthenticationPolicy(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 Ef.DigestAuthenticationPolicyConfiguration(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 Ef.DigestAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Mh=function(e){return t(e,Dh)};function qh(e,t){var n=new Ef.Document(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Fh=function(e){return t(e,qh)};function Uh(e,t){var n=new Ef.DoTask(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 Ef.Duration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Vh=function(e){return t(e,Bh)};function Wh(e,t){var n=new Ef.DurationInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Gh=function(e){return t(e,Wh)};function Hh(e,t){var n=new Ef.EmitEventDefinition(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 Ef.EmitEventWith(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 Ef.EmitTask(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 Ef.EmitTaskConfiguration(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 Ef.Endpoint(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var nm=function(e){return t(e,tm)};function rm(e,t){var n=new Ef.EndpointConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var om=function(e){return t(e,rm)};function im(e,t){var n=new Ef.EndpointUri(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 Ef.Error(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 Ef.ErrorFilter(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 Ef.ErrorInstance(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 Ef.ErrorType(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 Ef.EventConsumptionStrategy(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 Ef.EventData(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 Ef.EventDataschema(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 Ef.EventFilter(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 Ef.EventFilterCorrelate(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Am=function(e){return t(e,jm)};function Tm(e,t){var n=new Ef.EventSource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Pm=function(e){return t(e,Tm)};function zm(e,t){var n=new Ef.EventTime(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Em=function(e){return t(e,zm)};function Cm(e,t){var n=new Ef.ExponentialBackOff(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Sm=function(e){return t(e,Cm)};function _m(e,t){var n=new Ef.Export(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Om=function(e){return t(e,_m)};function xm(e,t){var n=new Ef.ExportAs(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 Ef.Extension(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 Ef.ExtensionItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Mm=function(e){return t(e,Dm)};function qm(e,t){var n=new Ef.ExternalResource(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Fm=function(e){return t(e,qm)};function Um(e,t){var n=new Ef.ExternalScript(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 Ef.FlowDirective(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Vm=function(e){return t(e,Bm)};function Wm(e,t){var n=new Ef.ForkTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Gm=function(e){return t(e,Wm)};function Hm(e,t){var n=new Ef.ForkTaskConfiguration(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 Ef.ForTask(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 Ef.ForTaskConfiguration(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 Ef.FunctionArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ev=function(e){return t(e,Xm)};function tv(e,t){var n=new Ef.GRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var nv=function(e){return t(e,tv)};function rv(e,t){var n=new Ef.HTTPArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ov=function(e){return t(e,rv)};function iv(e,t){var n=new Ef.HTTPBody(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 Ef.HTTPHeaders(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 Ef.HTTPQuery(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 Ef.InlineScript(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 Ef.Input(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var hv=function(e){return t(e,fv)};function mv(e,t){var n=new Ef.InputFrom(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 Ef.LinearBackoff(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 Ef.ListenTask(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 Ef.ListenTaskConfiguration(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 Ef.OAuth2AutenthicationData(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Av=function(e){return t(e,jv)};function Tv(e,t){var n=new Ef.OAuth2AutenthicationDataAudiences(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Pv=function(e){return n(e,Tv)};function zv(e,t){var n=new Ef.OAuth2AutenthicationDataClient(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ev=function(e){return t(e,zv)};function Cv(e,t){var n=new Ef.OAuth2AutenthicationDataScopes(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Sv=function(e){return n(e,Cv)};function _v(e,t){var n=new Ef.OAuth2AuthenticationPolicy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ov=function(e){return t(e,_v)};function xv(e,t){var n=new Ef.OAuth2AuthenticationPolicyConfiguration(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 Ef.OAuth2AuthenticationPropertiesEndpoints(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 Ef.OAuth2ConnectAuthenticationProperties(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Mv=function(e){return t(e,Dv)};function qv(e,t){var n=new Ef.OAuth2Issuers(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Fv=function(e){return n(e,qv)};function Uv(e,t){var n=new Ef.OAuth2TokenDefinition(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 Ef.OAuth2TokenRequest(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Vv=function(e){return t(e,Bv)};function Wv(e,t){var n=new Ef.OneEventConsumptionStrategy(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Gv=function(e){return t(e,Wv)};function Hv(e,t){var n=new Ef.OpenAPIArguments(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 Ef.OpenIdConnectAuthenticationPolicy(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 Ef.OpenIdConnectAuthenticationPolicyConfiguration(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 Ef.OpenIdConnectAuthenticationProperties(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 Ef.Output(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ny=function(e){return t(e,ty)};function ry(e,t){var n=new Ef.OutputAs(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var oy=function(e){return t(e,ry)};function iy(e,t){var n=new Ef.RaiseTask(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 Ef.RaiseTaskConfiguration(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 Ef.RaiseTaskError(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 Ef.ReferenceableAuthenticationPolicy(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 Ef.RetryBackoff(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 Ef.RetryLimit(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 Ef.RetryLimitAttempt(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 Ef.RetryPolicy(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 Ef.RetryPolicyJitter(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 Ef.RunContainer(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ay=function(e){return t(e,jy)};function Ty(e,t){var n=new Ef.RunScript(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Py=function(e){return t(e,Ty)};function zy(e,t){var n=new Ef.RunShell(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ey=function(e){return t(e,zy)};function Cy(e,t){var n=new Ef.RunTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Sy=function(e){return t(e,Cy)};function _y(e,t){var n=new Ef.RunTaskConfiguration(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Oy=function(e){return t(e,_y)};function xy(e,t){var n=new Ef.RuntimeExpression(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 Ef.RunWorkflow(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 Ef.Schedule(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var My=function(e){return t(e,Dy)};function qy(e,t){var n=new Ef.Schema(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Fy=function(e){return t(e,qy)};function Uy(e,t){var n=new Ef.SchemaExternal(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 Ef.SchemaInline(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Vy=function(e){return t(e,By)};function Wy(e,t){var n=new Ef.Script(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Gy=function(e){return t(e,Wy)};function Hy(e,t){var n=new Ef.SecretBasedAuthenticationPolicy(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 Ef.SetTask(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 Ef.SetTaskConfiguration(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 Ef.Shell(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 Ef.ShellArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var nw=function(e){return t(e,tw)};function rw(e,t){var n=new Ef.ShellEnvironment(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ow=function(e){return t(e,rw)};function iw(e,t){var n=new Ef.SubflowConfiguration(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 Ef.SubflowInput(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 Ef.SubscriptionIterator(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 Ef.SwitchCase(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 Ef.SwitchItem(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 Ef.SwitchTask(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 Ef.SwitchTaskConfiguration(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 Ef.Task(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 Ef.TaskBase(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 Ef.TaskBaseIf(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Aw=function(e){return t(e,jw)};function Tw(e,t){var n=new Ef.TaskItem(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Pw=function(e){return t(e,Tw)};function zw(e,t){var n=new Ef.TaskList(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ew=function(e){return n(e,zw)};function Cw(e,t){var n=new Ef.TaskMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Sw=function(e){return t(e,Cw)};function _w(e,t){var n=new Ef.TaskTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ow=function(e){return t(e,_w)};function xw(e,t){var n=new Ef.Timeout(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 Ef.TryTask(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 Ef.TryTaskCatch(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Mw=function(e){return t(e,Dw)};function qw(e,t){var n=new Ef.TryTaskCatchRetry(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Fw=function(e){return t(e,qw)};function Uw(e,t){var n=new Ef.UriTemplate(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 Ef.Use(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Vw=function(e){return t(e,Bw)};function Ww(e,t){var n=new Ef.UseAuthentications(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Gw=function(e){return t(e,Ww)};function Hw(e,t){var n=new Ef.UseCatalogs(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 Ef.UseErrors(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 Ef.UseExtensions(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Qw=function(e){return n(e,Yw)};function Xw(e,t){var n=new Ef.UseFunctions(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 Ef.UseRetries(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ng=function(e){return t(e,tg)};function rg(e,t){var n=new Ef.UseSecrets(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var og=function(e){return n(e,rg)};function ig(e,t){var n=new Ef.UseTimeouts(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ag=function(e){return t(e,ig)};function sg(e,t){var n=new Ef.WaitTask(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var lg=function(e){return t(e,sg)};function cg(e,t){var n=new Ef.WithEvent(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var ug=function(e){return t(e,cg)};function dg(e,t){var n=new Ef.WithGRPCArguments(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var pg=function(e){return t(e,dg)};function fg(e,t){var n=new Ef.WithGRPCService(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var hg=function(e){return t(e,fg)};function mg(e,t){var n=new Ef.WithOpenAPIParameters(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var vg=function(e){return t(e,mg)};function yg(e,t){var n=new Ef.Workflow(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var wg=function(e){return t(e,yg)};function gg(e,t){var n=new Ef.WorkflowMetadata(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var bg=function(e){return t(e,gg)};function $g(e,t){var n=new Ef.WorkflowTags(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var kg=function(e){return t(e,$g)};function jg(e,t){var n=new Ef.WorkflowTimeout(e);return t.validate&&n.validate(),t.normalize?n.normalize():n}var Ag=function(e){return t(e,jg)},Tg=Object.freeze({__proto__:null});export{Ef as Classes,Tg as Specification,Sf as allEventConsumptionStrategyBuilder,Of as allEventConsumptionStrategyConfigurationBuilder,If as anyEventConsumptionStrategyBuilder,Nf as anyEventConsumptionStrategyConfigurationBuilder,Mf as anyEventConsumptionStrategyUntilBuilder,Ff as anyEventUntilConsumedBuilder,Lf as asyncApiArgumentsBuilder,Vf as authenticationPolicyBuilder,Gf as authenticationPolicyReferenceBuilder,Kf as basicAuthenticationPolicyBuilder,Zf as basicAuthenticationPolicyConfigurationBuilder,Qf as basicAuthenticationPropertiesBuilder,eh as bearerAuthenticationPolicyBuilder,nh as bearerAuthenticationPolicyConfigurationBuilder,oh as bearerAuthenticationPropertiesBuilder,ah as callAsyncAPIBuilder,lh as callFunctionBuilder,uh as callGRPCBuilder,ph as callHTTPBuilder,hh as callOpenAPIBuilder,vh as callTaskBuilder,wh as catalogBuilder,bh as catchErrorsBuilder,kh as constantBackoffBuilder,Ah as containerBuilder,Ph as containerEnvironmentBuilder,Eh as containerLifetimeBuilder,Sh as containerPortsBuilder,Oh as containerVolumesBuilder,Ih as digestAuthenticationPolicyBuilder,Nh as digestAuthenticationPolicyConfigurationBuilder,Mh as digestAuthenticationPropertiesBuilder,Lh as doTaskBuilder,Fh as documentBuilder,Vh as durationBuilder,Gh as durationInlineBuilder,Kh as emitEventDefinitionBuilder,Zh as emitEventWithBuilder,Qh as emitTaskBuilder,em as emitTaskConfigurationBuilder,nm as endpointBuilder,om as endpointConfigurationBuilder,am as endpointUriBuilder,lm as errorBuilder,um as errorFilterBuilder,pm as errorInstanceBuilder,hm as errorTypeBuilder,vm as eventConsumptionStrategyBuilder,wm as eventDataBuilder,bm as eventDataschemaBuilder,km as eventFilterBuilder,Am as eventFilterCorrelateBuilder,Pm as eventSourceBuilder,Em as eventTimeBuilder,Sm as exponentialBackOffBuilder,Im as exportAsBuilder,Om as exportBuilder,Nm as extensionBuilder,Mm as extensionItemBuilder,Fm as externalResourceBuilder,Lm as externalScriptBuilder,Vm as flowDirectiveBuilder,Zm as forTaskBuilder,Qm as forTaskConfigurationBuilder,Gm as forkTaskBuilder,Km as forkTaskConfigurationBuilder,ev as functionArgumentsBuilder,nv as gRPCArgumentsBuilder,ov as hTTPArgumentsBuilder,av as hTTPBodyBuilder,lv as hTTPHeadersBuilder,uv as hTTPQueryBuilder,pv as inlineScriptBuilder,hv as inputBuilder,vv as inputFromBuilder,wv as linearBackoffBuilder,bv as listenTaskBuilder,kv as listenTaskConfigurationBuilder,Pv as oAuth2AutenthicationDataAudiencesBuilder,Av as oAuth2AutenthicationDataBuilder,Ev as oAuth2AutenthicationDataClientBuilder,Sv as oAuth2AutenthicationDataScopesBuilder,Ov as oAuth2AuthenticationPolicyBuilder,Iv as oAuth2AuthenticationPolicyConfigurationBuilder,Nv as oAuth2AuthenticationPropertiesEndpointsBuilder,Mv as oAuth2ConnectAuthenticationPropertiesBuilder,Fv as oAuth2IssuersBuilder,Lv as oAuth2TokenDefinitionBuilder,Vv as oAuth2TokenRequestBuilder,Gv as oneEventConsumptionStrategyBuilder,Kv as openAPIArgumentsBuilder,Zv as openIdConnectAuthenticationPolicyBuilder,Qv as openIdConnectAuthenticationPolicyConfigurationBuilder,ey as openIdConnectAuthenticationPropertiesBuilder,oy as outputAsBuilder,ny as outputBuilder,ay as raiseTaskBuilder,ly as raiseTaskConfigurationBuilder,uy as raiseTaskErrorBuilder,py as referenceableAuthenticationPolicyBuilder,hy as retryBackoffBuilder,wy as retryLimitAttemptBuilder,vy as retryLimitBuilder,by as retryPolicyBuilder,ky as retryPolicyJitterBuilder,Ay as runContainerBuilder,Py as runScriptBuilder,Ey as runShellBuilder,Sy as runTaskBuilder,Oy as runTaskConfigurationBuilder,Ny as runWorkflowBuilder,Iy as runtimeExpressionBuilder,My as scheduleBuilder,Fy as schemaBuilder,Ly as schemaExternalBuilder,Vy as schemaInlineBuilder,Gy as scriptBuilder,Ky as secretBasedAuthenticationPolicyBuilder,Zy as setTaskBuilder,Qy as setTaskConfigurationBuilder,nw as shellArgumentsBuilder,ew as shellBuilder,ow as shellEnvironmentBuilder,aw as subflowConfigurationBuilder,lw as subflowInputBuilder,uw as subscriptionIteratorBuilder,pw as switchCaseBuilder,hw as switchItemBuilder,vw as switchTaskBuilder,ww as switchTaskConfigurationBuilder,kw as taskBaseBuilder,Aw as taskBaseIfBuilder,bw as taskBuilder,Pw as taskItemBuilder,Ew as taskListBuilder,Sw as taskMetadataBuilder,Ow as taskTimeoutBuilder,Iw as timeoutBuilder,Nw as tryTaskBuilder,Mw as tryTaskCatchBuilder,Fw as tryTaskCatchRetryBuilder,Lw as uriTemplateBuilder,Gw as useAuthenticationsBuilder,Vw as useBuilder,Kw as useCatalogsBuilder,Zw as useErrorsBuilder,Qw as useExtensionsBuilder,eg as useFunctionsBuilder,ng as useRetriesBuilder,og as useSecretsBuilder,ag as useTimeoutsBuilder,Ga as validate,lg as waitTaskBuilder,ug as withEventBuilder,pg as withGRPCArgumentsBuilder,hg as withGRPCServiceBuilder,vg as withOpenAPIParametersBuilder,wg as workflowBuilder,bg as workflowMetadataBuilder,kg as workflowTagsBuilder,Ag as workflowTimeoutBuilder};
|
|
10
10
|
//# sourceMappingURL=index.esm.min.js.map
|