@ansible/ansible-ui-framework 0.0.696 → 0.0.697

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,7 @@ export declare function PageTabs(props: {
3
3
  children: ReactNode;
4
4
  preComponents?: ReactNode;
5
5
  postComponents?: ReactNode;
6
+ initialTabIndex?: number;
6
7
  loading?: boolean;
7
8
  }): JSX.Element;
8
9
  export declare function PageTab(props: {
package/index.js CHANGED
@@ -16333,7 +16333,7 @@ function mb(t) {
16333
16333
  ) });
16334
16334
  }
16335
16335
  function T0(t) {
16336
- const { loading: e } = t, [r, n] = ge(0), s = pe(
16336
+ const { loading: e } = t, [r, n] = ge((t == null ? void 0 : t.initialTabIndex) ?? 0), s = pe(
16337
16337
  (l, c) => n(c),
16338
16338
  [n]
16339
16339
  ), i = bl.toArray(t.children), a = i.map((l, c) => {
package/index.umd.cjs CHANGED
@@ -157,7 +157,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
157
157
  || ${R} === "boolean" || ${w} === null`).assign(j,g._`[${w}]`)}}x.else(),l(k),x.endIf(),x.if(g._`${j} !== undefined`,()=>{x.assign(w,j),function({gen:P,parentData:I,parentDataProperty:M},V){P.if(g._`${I} !== undefined`,()=>P.assign(g._`${I}[${M}]`,V))}(k,j)})}(c,d,p):l(c)})}return y};const s=new Set(["string","number","integer","boolean","null"]);function i(c,d,h,u=r.Correct){const m=u===r.Correct?g.operators.EQ:g.operators.NEQ;let p;switch(c){case"null":return g._`${d} ${m} null`;case"array":p=g._`Array.isArray(${d})`;break;case"object":p=g._`${d} && typeof ${d} == "object" && !Array.isArray(${d})`;break;case"integer":p=y(g._`!(${d} % 1) && !isNaN(${d})`);break;case"number":p=y();break;default:return g._`typeof ${d} ${m} ${c}`}return u===r.Correct?p:(0,g.not)(p);function y(b=g.nil){return(0,g.and)(g._`typeof ${d} == "number"`,b,h?g._`isFinite(${d})`:g.nil)}}function a(c,d,h,u){if(c.length===1)return i(c[0],d,h,u);let m;const p=(0,pe.toHash)(c);if(p.array&&p.object){const y=g._`typeof ${d} != "object"`;m=p.null?y:g._`!${d} || ${y}`,delete p.null,delete p.array,delete p.object}else m=g.nil;p.number&&delete p.integer;for(const y in p)m=(0,g.and)(m,i(y,d,h,u));return m}e.checkDataType=i,e.checkDataTypes=a;const o={message:({schema:c})=>`must be ${c}`,params:({schema:c,schemaValue:d})=>typeof c=="string"?g._`{type: ${c}}`:g._`{type: ${d}}`};function l(c){const d=function(h){const{gen:u,data:m,schema:p}=h,y=(0,pe.schemaRefOrVal)(h,p,"type");return{gen:u,keyword:"type",data:m,schema:p.type,schemaCode:y,schemaValue:y,parentSchema:p,params:{},it:h}}(c);(0,jt.reportError)(d,o)}e.reportTypeError=l}),$g=Xe(function(t,e){function r(n,s,i){const{gen:a,compositeRule:o,data:l,opts:c}=n;if(i===void 0)return;const d=g._`${l}${(0,g.getProperty)(s)}`;if(o)return void(0,pe.checkStrictMode)(n,`default is ignored for: ${d}`);let h=g._`${d} === undefined`;c.useDefaults==="empty"&&(h=g._`${h} || ${d} === null || ${d} === ""`),a.if(h,g._`${d} = ${(0,g.stringify)(i)}`)}Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0,e.assignDefaults=function(n,s){const{properties:i,items:a}=n.schema;if(s==="object"&&i)for(const o in i)r(n,o,i[o].default);else s==="array"&&Array.isArray(a)&&a.forEach((o,l)=>r(n,l,o.default))}}),rt=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;const r=pe;function n(l){return l.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:g._`Object.prototype.hasOwnProperty`})}function s(l,c,d){return g._`${n(l)}.call(${c}, ${d})`}function i(l,c,d,h){const u=g._`${c}${(0,g.getProperty)(d)} === undefined`;return h?(0,g.or)(u,(0,g.not)(s(l,c,d))):u}function a(l){return l?Object.keys(l).filter(c=>c!=="__proto__"):[]}e.checkReportMissingProp=function(l,c){const{gen:d,data:h,it:u}=l;d.if(i(d,h,c,u.opts.ownProperties),()=>{l.setParams({missingProperty:g._`${c}`},!0),l.error()})},e.checkMissingProp=function({gen:l,data:c,it:{opts:d}},h,u){return(0,g.or)(...h.map(m=>(0,g.and)(i(l,c,m,d.ownProperties),g._`${u} = ${m}`)))},e.reportMissingProp=function(l,c){l.setParams({missingProperty:c},!0),l.error()},e.hasPropFunc=n,e.isOwnProperty=s,e.propertyInData=function(l,c,d,h){const u=g._`${c}${(0,g.getProperty)(d)} !== undefined`;return h?g._`${u} && ${s(l,c,d)}`:u},e.noPropertyInData=i,e.allSchemaProperties=a,e.schemaProperties=function(l,c){return a(c).filter(d=>!(0,pe.alwaysValidSchema)(l,c[d]))},e.callValidateCode=function({schemaCode:l,data:c,it:{gen:d,topSchemaRef:h,schemaPath:u,errorPath:m},it:p},y,b,k){const T=k?g._`${l}, ${c}, ${h}${u}`:c,$=[[ee.default.instancePath,(0,g.strConcat)(ee.default.instancePath,m)],[ee.default.parentData,p.parentData],[ee.default.parentDataProperty,p.parentDataProperty],[ee.default.rootData,ee.default.rootData]];p.opts.dynamicRef&&$.push([ee.default.dynamicAnchors,ee.default.dynamicAnchors]);const x=g._`${T}, ${d.object(...$)}`;return b!==g.nil?g._`${y}.call(${b}, ${x})`:g._`${y}(${x})`};const o=g._`new RegExp`;e.usePattern=function({gen:l,it:{opts:c}},d){const h=c.unicodeRegExp?"u":"",{regExp:u}=c.code,m=u(d,h);return l.scopeValue("pattern",{key:m.toString(),ref:m,code:g._`${u.code==="new RegExp"?o:(0,r.useFunc)(l,u)}(${d}, ${h})`})},e.validateArray=function(l){const{gen:c,data:d,keyword:h,it:u}=l,m=c.name("valid");if(u.allErrors){const y=c.let("valid",!0);return p(()=>c.assign(y,!1)),y}return c.var(m,!0),p(()=>c.break()),m;function p(y){const b=c.const("len",g._`${d}.length`);c.forRange("i",0,b,k=>{l.subschema({keyword:h,dataProp:k,dataPropType:pe.Type.Num},m),c.if((0,g.not)(m),y)})}},e.validateUnion=function(l){const{gen:c,schema:d,keyword:h,it:u}=l;if(!Array.isArray(d))throw new Error("ajv implementation error");if(d.some(y=>(0,pe.alwaysValidSchema)(u,y))&&!u.opts.unevaluated)return;const m=c.let("valid",!1),p=c.name("_valid");c.block(()=>d.forEach((y,b)=>{const k=l.subschema({keyword:h,schemaProp:b,compositeRule:!0},p);c.assign(m,g._`${m} || ${p}`),l.mergeValidEvaluated(k,p)||c.if((0,g.not)(m))})),l.result(m,()=>l.reset(),()=>l.error(!0))}}),_n=Xe(function(t,e){function r(s){const{gen:i,data:a,it:o}=s;i.if(o.parentData,()=>i.assign(a,g._`${o.parentData}[${o.parentDataProperty}]`))}function n(s,i,a){if(a===void 0)throw new Error(`keyword "${i}" failed to compile`);return s.scopeValue("keyword",typeof a=="function"?{ref:a}:{ref:a,code:(0,g.stringify)(a)})}Object.defineProperty(e,"__esModule",{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0,e.macroKeywordCode=function(s,i){const{gen:a,keyword:o,schema:l,parentSchema:c,it:d}=s,h=i.macro.call(d.self,l,c,d),u=n(a,o,h);d.opts.validateSchema!==!1&&d.self.validateSchema(h,!0);const m=a.name("valid");s.subschema({schema:h,schemaPath:g.nil,errSchemaPath:`${d.errSchemaPath}/${o}`,topSchemaRef:u,compositeRule:!0},m),s.pass(m,()=>s.error(!0))},e.funcKeywordCode=function(s,i){var a;const{gen:o,keyword:l,schema:c,parentSchema:d,$data:h,it:u}=s;(function({schemaEnv:T},$){if($.async&&!T.$async)throw new Error("async keyword in sync schema")})(u,i);const m=!h&&i.compile?i.compile.call(u.self,c,d,u):i.validate,p=n(o,l,m),y=o.let("valid");function b(T=i.async?g._`await `:g.nil){o.assign(y,g._`${T}${(0,rt.callValidateCode)(s,p,u.opts.passContext?ee.default.this:ee.default.self,!("compile"in i&&!h||i.schema===!1))}`,i.modifying)}function k(T){var $;o.if((0,g.not)(($=i.valid)!==null&&$!==void 0?$:y),T)}s.block$data(y,function(){if(i.errors===!1)b(),i.modifying&&r(s),k(()=>s.error());else{const T=i.async?function(){const $=o.let("ruleErrs",null);return o.try(()=>b(g._`await `),x=>o.assign(y,!1).if(g._`${x} instanceof ${u.ValidationError}`,()=>o.assign($,g._`${x}.errors`),()=>o.throw(x))),$}():function(){const $=g._`${p}.errors`;return o.assign($,null),b(g.nil),$}();i.modifying&&r(s),k(()=>function($,x){const{gen:w}=$;w.if(g._`Array.isArray(${x})`,()=>{w.assign(ee.default.vErrors,g._`${ee.default.vErrors} === null ? ${x} : ${ee.default.vErrors}.concat(${x})`).assign(ee.default.errors,g._`${ee.default.vErrors}.length`),(0,jt.extendErrors)($)},()=>$.error())}(s,T))}}),s.ok((a=i.valid)!==null&&a!==void 0?a:y)},e.validSchemaType=function(s,i,a=!1){return!i.length||i.some(o=>o==="array"?Array.isArray(s):o==="object"?s&&typeof s=="object"&&!Array.isArray(s):typeof s==o||a&&s===void 0)},e.validateKeywordUsage=function({schema:s,opts:i,self:a,errSchemaPath:o},l,c){if(Array.isArray(l.keyword)?!l.keyword.includes(c):l.keyword!==c)throw new Error("ajv implementation error");const d=l.dependencies;if(d!=null&&d.some(h=>!Object.prototype.hasOwnProperty.call(s,h)))throw new Error(`parent schema must have dependencies of ${c}: ${d.join(",")}`);if(l.validateSchema&&!l.validateSchema(s[c])){const h=`keyword "${c}" value is invalid at path "${o}": `+a.errorsText(l.validateSchema.errors);if(i.validateSchema!=="log")throw new Error(h);a.logger.error(h)}}}),Ri=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0,e.getSubschema=function(r,{keyword:n,schemaProp:s,schema:i,schemaPath:a,errSchemaPath:o,topSchemaRef:l}){if(n!==void 0&&i!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(n!==void 0){const c=r.schema[n];return s===void 0?{schema:c,schemaPath:g._`${r.schemaPath}${(0,g.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:c[s],schemaPath:g._`${r.schemaPath}${(0,g.getProperty)(n)}${(0,g.getProperty)(s)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,pe.escapeFragment)(s)}`}}if(i!==void 0){if(a===void 0||o===void 0||l===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:i,schemaPath:a,topSchemaRef:l,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')},e.extendSubschemaData=function(r,n,{dataProp:s,dataPropType:i,data:a,dataTypes:o,propertyName:l}){if(a!==void 0&&s!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:c}=n;if(s!==void 0){const{errorPath:h,dataPathArr:u,opts:m}=n;d(c.let("data",g._`${n.data}${(0,g.getProperty)(s)}`,!0)),r.errorPath=g.str`${h}${(0,pe.getErrorPath)(s,i,m.jsPropertySyntax)}`,r.parentDataProperty=g._`${s}`,r.dataPathArr=[...u,r.parentDataProperty]}function d(h){r.data=h,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,h]}a!==void 0&&(d(a instanceof g.Name?a:c.let("data",a,!0)),l!==void 0&&(r.propertyName=l)),o&&(r.dataTypes=o)},e.extendSubschemaMode=function(r,{jtdDiscriminator:n,jtdMetadata:s,compositeRule:i,createErrors:a,allErrors:o}){i!==void 0&&(r.compositeRule=i),a!==void 0&&(r.createErrors=a),o!==void 0&&(r.allErrors=o),r.jtdDiscriminator=n,r.jtdMetadata=s}}),Bi=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,s,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(s=n;s--!=0;)if(!t(e[s],r[s]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(s=n;s--!=0;)if(!Object.prototype.hasOwnProperty.call(r,i[s]))return!1;for(s=n;s--!=0;){var a=i[s];if(!t(e[a],r[a]))return!1}return!0}return e!=e&&r!=r},_g=Xe(function(t){var e=t.exports=function(n,s,i){typeof s=="function"&&(i=s,s={}),r(s,typeof(i=s.cb||i)=="function"?i:i.pre||function(){},i.post||function(){},n,"",n)};function r(n,s,i,a,o,l,c,d,h,u){if(a&&typeof a=="object"&&!Array.isArray(a)){for(var m in s(a,o,l,c,d,h,u),a){var p=a[m];if(Array.isArray(p)){if(m in e.arrayKeywords)for(var y=0;y<p.length;y++)r(n,s,i,p[y],o+"/"+m+"/"+y,l,o,m,a,y)}else if(m in e.propsKeywords){if(p&&typeof p=="object")for(var b in p)r(n,s,i,p[b],o+"/"+m+"/"+b.replace(/~/g,"~0").replace(/\//g,"~1"),l,o,m,a,b)}else(m in e.keywords||n.allKeys&&!(m in e.skipKeywords))&&r(n,s,i,p,o+"/"+m,l,o,m,a)}i(a,o,l,c,d,h,u)}}e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}}),lt=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;const r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);e.inlineRef=function(h,u=!0){return typeof h=="boolean"||(u===!0?!s(h):!!u&&i(h)<=u)};const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(h){for(const u in h){if(n.has(u))return!0;const m=h[u];if(Array.isArray(m)&&m.some(s)||typeof m=="object"&&s(m))return!0}return!1}function i(h){let u=0;for(const m in h)if(m==="$ref"||(u++,!r.has(m)&&(typeof h[m]=="object"&&(0,pe.eachItem)(h[m],p=>u+=i(p)),u===1/0)))return 1/0;return u}function a(h,u="",m){m!==!1&&(u=c(u));const p=h.parse(u);return o(h,p)}function o(h,u){return h.serialize(u).split("#")[0]+"#"}e.getFullPath=a,e._getFullPath=o;const l=/#\/?$/;function c(h){return h?h.replace(l,""):""}e.normalizeId=c,e.resolveUrl=function(h,u,m){return m=c(m),h.resolve(u,m)};const d=/^[a-z_][-a-z0-9._]*$/i;e.getSchemaRefs=function(h,u){if(typeof h=="boolean")return{};const{schemaId:m,uriResolver:p}=this.opts,y=c(h[m]||u),b={"":y},k=a(p,y,!1),T={},$=new Set;return _g(h,{allKeys:!0},(z,R,j,E)=>{if(E===void 0)return;const P=k+R;let I=b[E];function M(G){if(G=c(I?(0,this.opts.uriResolver.resolve)(I,G):G),$.has(G))throw w(G);$.add(G);let K=this.refs[G];return typeof K=="string"&&(K=this.refs[K]),typeof K=="object"?x(z,K.schema,G):G!==c(P)&&(G[0]==="#"?(x(z,T[G],G),T[G]=z):this.refs[G]=P),G}function V(G){if(typeof G=="string"){if(!d.test(G))throw new Error(`invalid anchor "${G}"`);M.call(this,`#${G}`)}}typeof z[m]=="string"&&(I=M.call(this,z[m])),V.call(this,z.$anchor),V.call(this,z.$dynamicAnchor),b[R]=I}),T;function x(z,R,j){if(R!==void 0&&!Bi(z,R))throw w(j)}function w(z){return new Error(`reference "${z}" resolves to more than one schema`)}}}),kn=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;const r=Yt;function n({gen:$,validateName:x,schema:w,schemaEnv:z,opts:R},j){R.code.es5?$.func(x,g._`${ee.default.data}, ${ee.default.valCxt}`,z.$async,()=>{$.code(g._`"use strict"; ${s(w,R)}`),function(E,P){E.if(ee.default.valCxt,()=>{E.var(ee.default.instancePath,g._`${ee.default.valCxt}.${ee.default.instancePath}`),E.var(ee.default.parentData,g._`${ee.default.valCxt}.${ee.default.parentData}`),E.var(ee.default.parentDataProperty,g._`${ee.default.valCxt}.${ee.default.parentDataProperty}`),E.var(ee.default.rootData,g._`${ee.default.valCxt}.${ee.default.rootData}`),P.dynamicRef&&E.var(ee.default.dynamicAnchors,g._`${ee.default.valCxt}.${ee.default.dynamicAnchors}`)},()=>{E.var(ee.default.instancePath,g._`""`),E.var(ee.default.parentData,g._`undefined`),E.var(ee.default.parentDataProperty,g._`undefined`),E.var(ee.default.rootData,ee.default.data),P.dynamicRef&&E.var(ee.default.dynamicAnchors,g._`{}`)})}($,R),$.code(j)}):$.func(x,g._`${ee.default.data}, ${function(E){return g._`{${ee.default.instancePath}="", ${ee.default.parentData}, ${ee.default.parentDataProperty}, ${ee.default.rootData}=${ee.default.data}${E.dynamicRef?g._`, ${ee.default.dynamicAnchors}={}`:g.nil}}={}`}(R)}`,z.$async,()=>$.code(s(w,R)).code(j))}function s($,x){const w=typeof $=="object"&&$[x.schemaId];return w&&(x.code.source||x.code.process)?g._`/*# sourceURL=${w} */`:g.nil}function i({schema:$,self:x}){if(typeof $=="boolean")return!$;for(const w in $)if(x.RULES.all[w])return!0;return!1}function a($){return typeof $.schema!="boolean"}function o($){(0,pe.checkUnknownRules)($),function(x){const{schema:w,errSchemaPath:z,opts:R,self:j}=x;w.$ref&&R.ignoreKeywordsWithRef&&(0,pe.schemaHasRulesButRef)(w,j.RULES)&&j.logger.warn(`$ref: keywords ignored in schema at path "${z}"`)}($)}function l($,x){if($.opts.jtd)return d($,[],!1,x);const w=(0,Yt.getSchemaTypes)($.schema);d($,w,!(0,Yt.coerceAndCheckDataType)($,w),x)}function c({gen:$,schemaEnv:x,schema:w,errSchemaPath:z,opts:R}){const j=w.$comment;if(R.$comment===!0)$.code(g._`${ee.default.self}.logger.log(${j})`);else if(typeof R.$comment=="function"){const E=g.str`${z}/$comment`,P=$.scopeValue("root",{ref:x.root});$.code(g._`${ee.default.self}.opts.$comment(${j}, ${E}, ${P}.schema)`)}}function d($,x,w,z){const{gen:R,schema:j,data:E,allErrors:P,opts:I,self:M}=$,{RULES:V}=M;function G(K){(0,fs.shouldUseGroup)(j,K)&&(K.type?(R.if((0,r.checkDataType)(K.type,E,I.strictNumbers)),h($,K),x.length===1&&x[0]===K.type&&w&&(R.else(),(0,r.reportTypeError)($)),R.endIf()):h($,K),P||R.if(g._`${ee.default.errors} === ${z||0}`))}!j.$ref||!I.ignoreKeywordsWithRef&&(0,pe.schemaHasRulesButRef)(j,V)?(I.jtd||function(K,J){!K.schemaEnv.meta&&K.opts.strictTypes&&(function(te,ne){ne.length&&(te.dataTypes.length?(ne.forEach(D=>{u(te.dataTypes,D)||m(te,`type "${D}" not allowed by context "${te.dataTypes.join(",")}"`)}),te.dataTypes=te.dataTypes.filter(D=>u(ne,D))):te.dataTypes=ne)}(K,J),K.opts.allowUnionTypes||function(te,ne){ne.length>1&&(ne.length!==2||!ne.includes("null"))&&m(te,"use allowUnionTypes to allow union type keyword")}(K,J),function(te,ne){const D=te.self.RULES.all;for(const _ in D){const L=D[_];if(typeof L=="object"&&(0,fs.shouldUseRule)(te.schema,L)){const{type:q}=L.definition;q.length&&!q.some(Z=>{return(Q=ne).includes(le=Z)||le==="number"&&Q.includes("integer");var Q,le})&&m(te,`missing type "${q.join(",")}" for keyword "${_}"`)}}}(K,K.dataTypes))}($,x),R.block(()=>{for(const K of V.rules)G(K);G(V.post)})):R.block(()=>y($,"$ref",V.all.$ref.definition))}function h($,x){const{gen:w,schema:z,opts:{useDefaults:R}}=$;R&&(0,$g.assignDefaults)($,x.type),w.block(()=>{for(const j of x.rules)(0,fs.shouldUseRule)(z,j)&&y($,j.keyword,j.definition,x.type)})}function u($,x){return $.includes(x)||x==="integer"&&$.includes("number")}function m($,x){(0,pe.checkStrictMode)($,x+=` at "${$.schemaEnv.baseId+$.errSchemaPath}" (strictTypes)`,$.opts.strictTypes)}e.validateFunctionCode=function($){a($)&&(o($),i($))?function(x){const{schema:w,opts:z,gen:R}=x;n(x,()=>{z.$comment&&w.$comment&&c(x),function(j){const{schema:E,opts:P}=j;E.default!==void 0&&P.useDefaults&&P.strictSchema&&(0,pe.checkStrictMode)(j,"default is ignored in the schema root")}(x),R.let(ee.default.vErrors,null),R.let(ee.default.errors,0),z.unevaluated&&function(j){const{gen:E,validateName:P}=j;j.evaluated=E.const("evaluated",g._`${P}.evaluated`),E.if(g._`${j.evaluated}.dynamicProps`,()=>E.assign(g._`${j.evaluated}.props`,g._`undefined`)),E.if(g._`${j.evaluated}.dynamicItems`,()=>E.assign(g._`${j.evaluated}.items`,g._`undefined`))}(x),l(x),function(j){const{gen:E,schemaEnv:P,validateName:I,ValidationError:M,opts:V}=j;P.$async?E.if(g._`${ee.default.errors} === 0`,()=>E.return(ee.default.data),()=>E.throw(g._`new ${M}(${ee.default.vErrors})`)):(E.assign(g._`${I}.errors`,ee.default.vErrors),V.unevaluated&&function({gen:G,evaluated:K,props:J,items:te}){J instanceof g.Name&&G.assign(g._`${K}.props`,J),te instanceof g.Name&&G.assign(g._`${K}.items`,te)}(j),E.return(g._`${ee.default.errors} === 0`))}(x)})}($):n($,()=>(0,Gc.topBoolOrEmptySchema)($))};class p{constructor(x,w,z){if((0,_n.validateKeywordUsage)(x,w,z),this.gen=x.gen,this.allErrors=x.allErrors,this.keyword=z,this.data=x.data,this.schema=x.schema[z],this.$data=w.$data&&x.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,pe.schemaRefOrVal)(x,this.schema,z,this.$data),this.schemaType=w.schemaType,this.parentSchema=x.schema,this.params={},this.it=x,this.def=w,this.$data)this.schemaCode=x.gen.const("vSchema",T(this.$data,x));else if(this.schemaCode=this.schemaValue,!(0,_n.validSchemaType)(this.schema,w.schemaType,w.allowUndefined))throw new Error(`${z} value must be ${JSON.stringify(w.schemaType)}`);("code"in w?w.trackErrors:w.errors!==!1)&&(this.errsCount=x.gen.const("_errs",ee.default.errors))}result(x,w,z){this.failResult((0,g.not)(x),w,z)}failResult(x,w,z){this.gen.if(x),z?z():this.error(),w?(this.gen.else(),w(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(x,w){this.failResult((0,g.not)(x),void 0,w)}fail(x){if(x===void 0)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(x),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(x){if(!this.$data)return this.fail(x);const{schemaCode:w}=this;this.fail(g._`${w} !== undefined && (${(0,g.or)(this.invalid$data(),x)})`)}error(x,w,z){if(w)return this.setParams(w),this._error(x,z),void this.setParams({});this._error(x,z)}_error(x,w){(x?jt.reportExtraError:jt.reportError)(this,this.def.error,w)}$dataError(){(0,jt.reportError)(this,this.def.$dataError||jt.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,jt.resetErrorsCount)(this.gen,this.errsCount)}ok(x){this.allErrors||this.gen.if(x)}setParams(x,w){w?Object.assign(this.params,x):this.params=x}block$data(x,w,z=g.nil){this.gen.block(()=>{this.check$data(x,z),w()})}check$data(x=g.nil,w=g.nil){if(!this.$data)return;const{gen:z,schemaCode:R,schemaType:j,def:E}=this;z.if((0,g.or)(g._`${R} === undefined`,w)),x!==g.nil&&z.assign(x,!0),(j.length||E.validateSchema)&&(z.elseIf(this.invalid$data()),this.$dataError(),x!==g.nil&&z.assign(x,!1)),z.else()}invalid$data(){const{gen:x,schemaCode:w,schemaType:z,def:R,it:j}=this;return(0,g.or)(function(){if(z.length){if(!(w instanceof g.Name))throw new Error("ajv implementation error");const E=Array.isArray(z)?z:[z];return g._`${(0,r.checkDataTypes)(E,w,j.opts.strictNumbers,r.DataType.Wrong)}`}return g.nil}(),function(){if(R.validateSchema){const E=x.scopeValue("validate$data",{ref:R.validateSchema});return g._`!${E}(${w})`}return g.nil}())}subschema(x,w){const z=(0,Ri.getSubschema)(this.it,x);(0,Ri.extendSubschemaData)(z,this.it,x),(0,Ri.extendSubschemaMode)(z,x);const R={...this.it,...z,items:void 0,props:void 0};return function(j,E){a(j)&&(o(j),i(j))?function(P,I){const{schema:M,gen:V,opts:G}=P;G.$comment&&M.$comment&&c(P),function(J){const te=J.schema[J.opts.schemaId];te&&(J.baseId=(0,lt.resolveUrl)(J.opts.uriResolver,J.baseId,te))}(P),function(J){if(J.schema.$async&&!J.schemaEnv.$async)throw new Error("async schema in sync schema")}(P);const K=V.const("_errs",ee.default.errors);l(P,K),V.var(I,g._`${K} === ${ee.default.errors}`)}(j,E):(0,Gc.boolOrEmptySchema)(j,E)}(R,w),R}mergeEvaluated(x,w){const{it:z,gen:R}=this;z.opts.unevaluated&&(z.props!==!0&&x.props!==void 0&&(z.props=pe.mergeEvaluated.props(R,x.props,z.props,w)),z.items!==!0&&x.items!==void 0&&(z.items=pe.mergeEvaluated.items(R,x.items,z.items,w)))}mergeValidEvaluated(x,w){const{it:z,gen:R}=this;if(z.opts.unevaluated&&(z.props!==!0||z.items!==!0))return R.if(w,()=>this.mergeEvaluated(x,g.Name)),!0}}function y($,x,w,z){const R=new p($,w,x);"code"in w?w.code(R,z):R.$data&&w.validate?(0,_n.funcKeywordCode)(R,w):"macro"in w?(0,_n.macroKeywordCode)(R,w):(w.compile||w.validate)&&(0,_n.funcKeywordCode)(R,w)}e.KeywordCxt=p;const b=/^\/(?:[^~]|~0|~1)*$/,k=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function T($,{dataLevel:x,dataNames:w,dataPathArr:z}){let R,j;if($==="")return ee.default.rootData;if($[0]==="/"){if(!b.test($))throw new Error(`Invalid JSON-pointer: ${$}`);R=$,j=ee.default.rootData}else{const M=k.exec($);if(!M)throw new Error(`Invalid JSON-pointer: ${$}`);const V=+M[1];if(R=M[2],R==="#"){if(V>=x)throw new Error(I("property/index",V));return z[x-V]}if(V>x)throw new Error(I("data",V));if(j=w[x-V],!R)return j}let E=j;const P=R.split("/");for(const M of P)M&&(j=g._`${j}${(0,g.getProperty)((0,pe.unescapeJsonPointer)(M))}`,E=g._`${E} && ${j}`);return E;function I(M,V){return`Cannot access ${M} ${V} levels up, current level is ${x}`}}e.getData=T});class kg extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}var Zc=Object.defineProperty({default:kg},"__esModule",{value:!0});class Tg extends Error{constructor(e,r,n,s){super(s||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,lt.resolveUrl)(e,r,n),this.missingSchema=(0,lt.normalizeId)((0,lt.getFullPath)(e,this.missingRef))}}var zi=Object.defineProperty({default:Tg},"__esModule",{value:!0}),tr=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;class r{constructor(h){var u;let m;this.refs={},this.dynamicAnchors={},typeof h.schema=="object"&&(m=h.schema),this.schema=h.schema,this.schemaId=h.schemaId,this.root=h.root||this,this.baseId=(u=h.baseId)!==null&&u!==void 0?u:(0,lt.normalizeId)(m==null?void 0:m[h.schemaId||"$id"]),this.schemaPath=h.schemaPath,this.localRefs=h.localRefs,this.meta=h.meta,this.$async=m==null?void 0:m.$async,this.refs={}}}function n(d){const h=i.call(this,d);if(h)return h;const u=(0,lt.getFullPath)(this.opts.uriResolver,d.root.baseId),{es5:m,lines:p}=this.opts.code,{ownProperties:y}=this.opts,b=new g.CodeGen(this.scope,{es5:m,lines:p,ownProperties:y});let k;d.$async&&(k=b.scopeValue("Error",{ref:Zc.default,code:g._`require("ajv/dist/runtime/validation_error").default`}));const T=b.scopeName("validate");d.validateName=T;const $={gen:b,allErrors:this.opts.allErrors,data:ee.default.data,parentData:ee.default.parentData,parentDataProperty:ee.default.parentDataProperty,dataNames:[ee.default.data],dataPathArr:[g.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:b.scopeValue("schema",this.opts.code.source===!0?{ref:d.schema,code:(0,g.stringify)(d.schema)}:{ref:d.schema}),validateName:T,ValidationError:k,schema:d.schema,schemaEnv:d,rootId:u,baseId:d.baseId||u,schemaPath:g.nil,errSchemaPath:d.schemaPath||(this.opts.jtd?"":"#"),errorPath:g._`""`,opts:this.opts,self:this};let x;try{this._compilations.add(d),(0,kn.validateFunctionCode)($),b.optimize(this.opts.code.optimize);const w=b.toString();x=`${b.scopeRefs(ee.default.scope)}return ${w}`,this.opts.code.process&&(x=this.opts.code.process(x,d));const z=new Function(`${ee.default.self}`,`${ee.default.scope}`,x)(this,this.scope.get());if(this.scope.value(T,{ref:z}),z.errors=null,z.schema=d.schema,z.schemaEnv=d,d.$async&&(z.$async=!0),this.opts.code.source===!0&&(z.source={validateName:T,validateCode:w,scopeValues:b._values}),this.opts.unevaluated){const{props:R,items:j}=$;z.evaluated={props:R instanceof g.Name?void 0:R,items:j instanceof g.Name?void 0:j,dynamicProps:R instanceof g.Name,dynamicItems:j instanceof g.Name},z.source&&(z.source.evaluated=(0,g.stringify)(z.evaluated))}return d.validate=z,d}catch(w){throw delete d.validate,delete d.validateName,x&&this.logger.error("Error compiling schema, function code:",x),w}finally{this._compilations.delete(d)}}function s(d){return(0,lt.inlineRef)(d.schema,this.opts.inlineRefs)?d.schema:d.validate?d:n.call(this,d)}function i(d){for(const m of this._compilations)if((h=m).schema===(u=d).schema&&h.root===u.root&&h.baseId===u.baseId)return m;var h,u}function a(d,h){let u;for(;typeof(u=this.refs[h])=="string";)h=u;return u||this.schemas[h]||o.call(this,d,h)}function o(d,h){const u=this.opts.uriResolver.parse(h),m=(0,lt._getFullPath)(this.opts.uriResolver,u);let p=(0,lt.getFullPath)(this.opts.uriResolver,d.baseId,void 0);if(Object.keys(d.schema).length>0&&m===p)return c.call(this,u,d);const y=(0,lt.normalizeId)(m),b=this.refs[y]||this.schemas[y];if(typeof b=="string"){const k=o.call(this,d,b);return typeof(k==null?void 0:k.schema)!="object"?void 0:c.call(this,u,k)}if(typeof(b==null?void 0:b.schema)=="object"){if(b.validate||n.call(this,b),y===(0,lt.normalizeId)(h)){const{schema:k}=b,{schemaId:T}=this.opts,$=k[T];return $&&(p=(0,lt.resolveUrl)(this.opts.uriResolver,p,$)),new r({schema:k,schemaId:T,root:d,baseId:p})}return c.call(this,u,b)}}e.SchemaEnv=r,e.compileSchema=n,e.resolveRef=function(d,h,u){var m;u=(0,lt.resolveUrl)(this.opts.uriResolver,h,u);const p=d.refs[u];if(p)return p;let y=a.call(this,d,u);if(y===void 0){const b=(m=d.localRefs)===null||m===void 0?void 0:m[u],{schemaId:k}=this.opts;b&&(y=new r({schema:b,schemaId:k,root:d,baseId:h}))}return y!==void 0?d.refs[u]=s.call(this,y):void 0},e.getCompilingSchema=i,e.resolveSchema=o;const l=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function c(d,{baseId:h,schema:u,root:m}){var p;if(((p=d.fragment)===null||p===void 0?void 0:p[0])!=="/")return;for(const k of d.fragment.slice(1).split("/")){if(typeof u=="boolean")return;const T=u[(0,pe.unescapeFragment)(k)];if(T===void 0)return;const $=typeof(u=T)=="object"&&u[this.opts.schemaId];!l.has(k)&&$&&(h=(0,lt.resolveUrl)(this.opts.uriResolver,h,$))}let y;if(typeof u!="boolean"&&u.$ref&&!(0,pe.schemaHasRulesButRef)(u,this.RULES)){const k=(0,lt.resolveUrl)(this.opts.uriResolver,h,u.$ref);y=o.call(this,m,k)}const{schemaId:b}=this.opts;return y=y||new r({schema:u,schemaId:b,root:m,baseId:h}),y.schema!==y.root.schema?y:void 0}}),Kc={$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},Jc=Xe(function(t,e){(function(r){function n(){for(var O=arguments.length,A=Array(O),F=0;F<O;F++)A[F]=arguments[F];if(A.length>1){A[0]=A[0].slice(0,-1);for(var W=A.length-1,oe=1;oe<W;++oe)A[oe]=A[oe].slice(1,-1);return A[W]=A[W].slice(1),A.join("")}return A[0]}function s(O){return"(?:"+O+")"}function i(O){return O===void 0?"undefined":O===null?"null":Object.prototype.toString.call(O).split(" ").pop().split("]").shift().toLowerCase()}function a(O){return O.toUpperCase()}function o(O){var A="[A-Za-z]",F="[0-9]",W=n(F,"[A-Fa-f]"),oe=s(s("%[EFef]"+W+"%"+W+W+"%"+W+W)+"|"+s("%[89A-Fa-f]"+W+"%"+W+W)+"|"+s("%"+W+W)),ge="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",xe=n("[\\:\\/\\?\\#\\[\\]\\@]",ge),je=O?"[\\uE000-\\uF8FF]":"[]",Ie=n(A,F,"[\\-\\.\\_\\~]",O?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");s(A+n(A,F,"[\\+\\-\\.]")+"*"),s(s(oe+"|"+n(Ie,ge,"[\\:]"))+"*");var ze=s(s("25[0-5]")+"|"+s("2[0-4][0-9]")+"|"+s("1[0-9][0-9]")+"|"+s("0?[1-9][0-9]")+"|0?0?"+F),et=s(ze+"\\."+ze+"\\."+ze+"\\."+ze),$e=s(W+"{1,4}"),He=s(s($e+"\\:"+$e)+"|"+et),Ke=s(s($e+"\\:")+"{6}"+He),ct=s("\\:\\:"+s($e+"\\:")+"{5}"+He),Ge=s(s($e)+"?\\:\\:"+s($e+"\\:")+"{4}"+He),ut=s(s(s($e+"\\:")+"{0,1}"+$e)+"?\\:\\:"+s($e+"\\:")+"{3}"+He),vt=s(s(s($e+"\\:")+"{0,2}"+$e)+"?\\:\\:"+s($e+"\\:")+"{2}"+He),xt=s(s(s($e+"\\:")+"{0,3}"+$e)+"?\\:\\:"+$e+"\\:"+He),rr=s(s(s($e+"\\:")+"{0,4}"+$e)+"?\\:\\:"+He),nr=s(s(s($e+"\\:")+"{0,5}"+$e)+"?\\:\\:"+$e),kt=s(s(s($e+"\\:")+"{0,6}"+$e)+"?\\:\\:"),Dt=s([Ke,ct,Ge,ut,vt,xt,rr,nr,kt].join("|")),Wt=s(s(Ie+"|"+oe)+"+");s("[vV]"+W+"+\\."+n(Ie,ge,"[\\:]")+"+"),s(s(oe+"|"+n(Ie,ge))+"*");var At=s(oe+"|"+n(Ie,ge,"[\\:\\@]"));return s(s(oe+"|"+n(Ie,ge,"[\\@]"))+"+"),s(s(At+"|"+n("[\\/\\?]",je))+"*"),{NOT_SCHEME:new RegExp(n("[^]",A,F,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",Ie,ge),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",Ie,ge),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",Ie,ge),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",Ie,ge),"g"),NOT_QUERY:new RegExp(n("[^\\%]",Ie,ge,"[\\:\\@\\/\\?]",je),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",Ie,ge,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",Ie,ge),"g"),UNRESERVED:new RegExp(Ie,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",Ie,xe),"g"),PCT_ENCODED:new RegExp(oe,"g"),IPV4ADDRESS:new RegExp("^("+et+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Dt+")"+s(s("\\%25|\\%(?!"+W+"{2})")+"("+Wt+")")+"?\\]?$")}}var l=o(!1),c=o(!0),d=function(O,A){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return function(F,W){var oe=[],ge=!0,xe=!1,je=void 0;try{for(var Ie,ze=F[Symbol.iterator]();!(ge=(Ie=ze.next()).done)&&(oe.push(Ie.value),!W||oe.length!==W);ge=!0);}catch(et){xe=!0,je=et}finally{try{!ge&&ze.return&&ze.return()}finally{if(xe)throw je}}return oe}(O,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")},h=2147483647,u=36,m=/^xn--/,p=/[^\0-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=Math.floor,T=String.fromCharCode;function $(O){throw new RangeError(b[O])}function x(O,A){var F=O.split("@"),W="";return F.length>1&&(W=F[0]+"@",O=F[1]),W+function(oe,ge){for(var xe=[],je=oe.length;je--;)xe[je]=ge(oe[je]);return xe}((O=O.replace(y,".")).split("."),A).join(".")}var w=function(O,A){return O+22+75*(O<26)-((A!=0)<<5)},z=function(O,A,F){var W=0;for(O=F?k(O/700):O>>1,O+=k(O/A);O>455;W+=u)O=k(O/35);return k(W+36*O/(O+38))},R=function(O){return x(O,function(A){return p.test(A)?"xn--"+function(F){var W=[],oe=(F=function(ke){for(var dt=[],Qe=0,nt=ke.length;Qe<nt;){var mt=ke.charCodeAt(Qe++);if(mt>=55296&&mt<=56319&&Qe<nt){var sr=ke.charCodeAt(Qe++);(64512&sr)==56320?dt.push(((1023&mt)<<10)+(1023&sr)+65536):(dt.push(mt),Qe--)}else dt.push(mt)}return dt}(F)).length,ge=128,xe=0,je=72,Ie=!0,ze=!1,et=void 0;try{for(var $e,He=F[Symbol.iterator]();!(Ie=($e=He.next()).done);Ie=!0){var Ke=$e.value;Ke<128&&W.push(T(Ke))}}catch(ke){ze=!0,et=ke}finally{try{!Ie&&He.return&&He.return()}finally{if(ze)throw et}}var ct=W.length,Ge=ct;for(ct&&W.push("-");Ge<oe;){var ut=h,vt=!0,xt=!1,rr=void 0;try{for(var nr,kt=F[Symbol.iterator]();!(vt=(nr=kt.next()).done);vt=!0){var Dt=nr.value;Dt>=ge&&Dt<ut&&(ut=Dt)}}catch(ke){xt=!0,rr=ke}finally{try{!vt&&kt.return&&kt.return()}finally{if(xt)throw rr}}var Wt=Ge+1;ut-ge>k((h-xe)/Wt)&&$("overflow"),xe+=(ut-ge)*Wt,ge=ut;var At=!0,ms=!1,ps=void 0;try{for(var gs,C=F[Symbol.iterator]();!(At=(gs=C.next()).done);At=!0){var re=gs.value;if(re<ge&&++xe>h&&$("overflow"),re==ge){for(var ce=xe,Se=u;;Se+=u){var De=Se<=je?1:Se>=je+26?26:Se-je;if(ce<De)break;var Ye=ce-De,Ne=u-De;W.push(T(w(De+Ye%Ne,0))),ce=k(Ye/Ne)}W.push(T(w(ce,0))),je=z(xe,Wt,Ge==ct),xe=0,++Ge}}}catch(ke){ms=!0,ps=ke}finally{try{!At&&C.return&&C.return()}finally{if(ms)throw ps}}++xe,++ge}return W.join("")}(A):A})},j=function(O){return x(O,function(A){return m.test(A)?function(F){var W,oe=[],ge=F.length,xe=0,je=128,Ie=72,ze=F.lastIndexOf("-");ze<0&&(ze=0);for(var et=0;et<ze;++et)F.charCodeAt(et)>=128&&$("not-basic"),oe.push(F.charCodeAt(et));for(var $e=ze>0?ze+1:0;$e<ge;){for(var He=xe,Ke=1,ct=u;;ct+=u){$e>=ge&&$("invalid-input");var Ge=(W=F.charCodeAt($e++))-48<10?W-22:W-65<26?W-65:W-97<26?W-97:u;(Ge>=u||Ge>k((h-xe)/Ke))&&$("overflow"),xe+=Ge*Ke;var ut=ct<=Ie?1:ct>=Ie+26?26:ct-Ie;if(Ge<ut)break;var vt=u-ut;Ke>k(h/vt)&&$("overflow"),Ke*=vt}var xt=oe.length+1;Ie=z(xe-He,xt,He==0),k(xe/xt)>h-je&&$("overflow"),je+=k(xe/xt),xe%=xt,oe.splice(xe++,0,je)}return String.fromCodePoint.apply(String,oe)}(A.slice(4).toLowerCase()):A})},E={};function P(O){var A=O.charCodeAt(0);return A<16?"%0"+A.toString(16).toUpperCase():A<128?"%"+A.toString(16).toUpperCase():A<2048?"%"+(A>>6|192).toString(16).toUpperCase()+"%"+(63&A|128).toString(16).toUpperCase():"%"+(A>>12|224).toString(16).toUpperCase()+"%"+(A>>6&63|128).toString(16).toUpperCase()+"%"+(63&A|128).toString(16).toUpperCase()}function I(O){for(var A="",F=0,W=O.length;F<W;){var oe=parseInt(O.substr(F+1,2),16);if(oe<128)A+=String.fromCharCode(oe),F+=3;else if(oe>=194&&oe<224){if(W-F>=6){var ge=parseInt(O.substr(F+4,2),16);A+=String.fromCharCode((31&oe)<<6|63&ge)}else A+=O.substr(F,6);F+=6}else if(oe>=224){if(W-F>=9){var xe=parseInt(O.substr(F+4,2),16),je=parseInt(O.substr(F+7,2),16);A+=String.fromCharCode((15&oe)<<12|(63&xe)<<6|63&je)}else A+=O.substr(F,9);F+=9}else A+=O.substr(F,3),F+=3}return A}function M(O,A){function F(W){var oe=I(W);return oe.match(A.UNRESERVED)?oe:W}return O.scheme&&(O.scheme=String(O.scheme).replace(A.PCT_ENCODED,F).toLowerCase().replace(A.NOT_SCHEME,"")),O.userinfo!==void 0&&(O.userinfo=String(O.userinfo).replace(A.PCT_ENCODED,F).replace(A.NOT_USERINFO,P).replace(A.PCT_ENCODED,a)),O.host!==void 0&&(O.host=String(O.host).replace(A.PCT_ENCODED,F).toLowerCase().replace(A.NOT_HOST,P).replace(A.PCT_ENCODED,a)),O.path!==void 0&&(O.path=String(O.path).replace(A.PCT_ENCODED,F).replace(O.scheme?A.NOT_PATH:A.NOT_PATH_NOSCHEME,P).replace(A.PCT_ENCODED,a)),O.query!==void 0&&(O.query=String(O.query).replace(A.PCT_ENCODED,F).replace(A.NOT_QUERY,P).replace(A.PCT_ENCODED,a)),O.fragment!==void 0&&(O.fragment=String(O.fragment).replace(A.PCT_ENCODED,F).replace(A.NOT_FRAGMENT,P).replace(A.PCT_ENCODED,a)),O}function V(O){return O.replace(/^0*(.*)/,"$1")||"0"}function G(O,A){var F=O.match(A.IPV4ADDRESS)||[],W=d(F,2)[1];return W?W.split(".").map(V).join("."):O}function K(O,A){var F=O.match(A.IPV6ADDRESS)||[],W=d(F,3),oe=W[1],ge=W[2];if(oe){for(var xe=oe.toLowerCase().split("::").reverse(),je=d(xe,2),Ie=je[0],ze=je[1],et=ze?ze.split(":").map(V):[],$e=Ie.split(":").map(V),He=A.IPV4ADDRESS.test($e[$e.length-1]),Ke=He?7:8,ct=$e.length-Ke,Ge=Array(Ke),ut=0;ut<Ke;++ut)Ge[ut]=et[ut]||$e[ct+ut]||"";He&&(Ge[Ke-1]=G(Ge[Ke-1],A));var vt=Ge.reduce(function(kt,Dt,Wt){if(!Dt||Dt==="0"){var At=kt[kt.length-1];At&&At.index+At.length===Wt?At.length++:kt.push({index:Wt,length:1})}return kt},[]).sort(function(kt,Dt){return Dt.length-kt.length})[0],xt=void 0;if(vt&&vt.length>1){var rr=Ge.slice(0,vt.index),nr=Ge.slice(vt.index+vt.length);xt=rr.join(":")+"::"+nr.join(":")}else xt=Ge.join(":");return ge&&(xt+="%"+ge),xt}return O}var J=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,te="".match(/(){0}/)[1]===void 0;function ne(O){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F={},W=A.iri!==!1?c:l;A.reference==="suffix"&&(O=(A.scheme?A.scheme+":":"")+"//"+O);var oe=O.match(J);if(oe){te?(F.scheme=oe[1],F.userinfo=oe[3],F.host=oe[4],F.port=parseInt(oe[5],10),F.path=oe[6]||"",F.query=oe[7],F.fragment=oe[8],isNaN(F.port)&&(F.port=oe[5])):(F.scheme=oe[1]||void 0,F.userinfo=O.indexOf("@")!==-1?oe[3]:void 0,F.host=O.indexOf("//")!==-1?oe[4]:void 0,F.port=parseInt(oe[5],10),F.path=oe[6]||"",F.query=O.indexOf("?")!==-1?oe[7]:void 0,F.fragment=O.indexOf("#")!==-1?oe[8]:void 0,isNaN(F.port)&&(F.port=O.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?oe[4]:void 0)),F.host&&(F.host=K(G(F.host,W),W)),F.reference=F.scheme!==void 0||F.userinfo!==void 0||F.host!==void 0||F.port!==void 0||F.path||F.query!==void 0?F.scheme===void 0?"relative":F.fragment===void 0?"absolute":"uri":"same-document",A.reference&&A.reference!=="suffix"&&A.reference!==F.reference&&(F.error=F.error||"URI is not a "+A.reference+" reference.");var ge=E[(A.scheme||F.scheme||"").toLowerCase()];if(A.unicodeSupport||ge&&ge.unicodeSupport)M(F,W);else{if(F.host&&(A.domainHost||ge&&ge.domainHost))try{F.host=R(F.host.replace(W.PCT_ENCODED,I).toLowerCase())}catch(xe){F.error=F.error||"Host's domain name can not be converted to ASCII via punycode: "+xe}M(F,l)}ge&&ge.parse&&ge.parse(F,A)}else F.error=F.error||"URI can not be parsed.";return F}function D(O,A){var F=A.iri!==!1?c:l,W=[];return O.userinfo!==void 0&&(W.push(O.userinfo),W.push("@")),O.host!==void 0&&W.push(K(G(String(O.host),F),F).replace(F.IPV6ADDRESS,function(oe,ge,xe){return"["+ge+(xe?"%25"+xe:"")+"]"})),typeof O.port!="number"&&typeof O.port!="string"||(W.push(":"),W.push(String(O.port))),W.length?W.join(""):void 0}var _=/^\.\.?\//,L=/^\/\.(\/|$)/,q=/^\/\.\.(\/|$)/,Z=/^\/?(?:.|\n)*?(?=\/|$)/;function Q(O){for(var A=[];O.length;)if(O.match(_))O=O.replace(_,"");else if(O.match(L))O=O.replace(L,"/");else if(O.match(q))O=O.replace(q,"/"),A.pop();else if(O==="."||O==="..")O="";else{var F=O.match(Z);if(!F)throw new Error("Unexpected dot segment condition");var W=F[0];O=O.slice(W.length),A.push(W)}return A.join("")}function le(O){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=A.iri?c:l,W=[],oe=E[(A.scheme||O.scheme||"").toLowerCase()];if(oe&&oe.serialize&&oe.serialize(O,A),O.host&&!F.IPV6ADDRESS.test(O.host)){if(A.domainHost||oe&&oe.domainHost)try{O.host=A.iri?j(O.host):R(O.host.replace(F.PCT_ENCODED,I).toLowerCase())}catch(je){O.error=O.error||"Host's domain name can not be converted to "+(A.iri?"Unicode":"ASCII")+" via punycode: "+je}}M(O,F),A.reference!=="suffix"&&O.scheme&&(W.push(O.scheme),W.push(":"));var ge=D(O,A);if(ge!==void 0&&(A.reference!=="suffix"&&W.push("//"),W.push(ge),O.path&&O.path.charAt(0)!=="/"&&W.push("/")),O.path!==void 0){var xe=O.path;A.absolutePath||oe&&oe.absolutePath||(xe=Q(xe)),ge===void 0&&(xe=xe.replace(/^\/\//,"/%2F")),W.push(xe)}return O.query!==void 0&&(W.push("?"),W.push(O.query)),O.fragment!==void 0&&(W.push("#"),W.push(O.fragment)),W.join("")}function U(O,A){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},W={};return arguments[3]||(O=ne(le(O,F),F),A=ne(le(A,F),F)),!(F=F||{}).tolerant&&A.scheme?(W.scheme=A.scheme,W.userinfo=A.userinfo,W.host=A.host,W.port=A.port,W.path=Q(A.path||""),W.query=A.query):(A.userinfo!==void 0||A.host!==void 0||A.port!==void 0?(W.userinfo=A.userinfo,W.host=A.host,W.port=A.port,W.path=Q(A.path||""),W.query=A.query):(A.path?(A.path.charAt(0)==="/"?W.path=Q(A.path):(W.path=O.userinfo===void 0&&O.host===void 0&&O.port===void 0||O.path?O.path?O.path.slice(0,O.path.lastIndexOf("/")+1)+A.path:A.path:"/"+A.path,W.path=Q(W.path)),W.query=A.query):(W.path=O.path,W.query=A.query!==void 0?A.query:O.query),W.userinfo=O.userinfo,W.host=O.host,W.port=O.port),W.scheme=O.scheme),W.fragment=A.fragment,W}function ve(O,A){return O&&O.toString().replace(A&&A.iri?c.PCT_ENCODED:l.PCT_ENCODED,I)}var se={scheme:"http",domainHost:!0,parse:function(O,A){return O.host||(O.error=O.error||"HTTP URIs must have a host."),O},serialize:function(O,A){var F=String(O.scheme).toLowerCase()==="https";return O.port!==(F?443:80)&&O.port!==""||(O.port=void 0),O.path||(O.path="/"),O}},Ce={scheme:"https",domainHost:se.domainHost,parse:se.parse,serialize:se.serialize};function _e(O){return typeof O.secure=="boolean"?O.secure:String(O.scheme).toLowerCase()==="wss"}var Ee={scheme:"ws",domainHost:!0,parse:function(O,A){var F=O;return F.secure=_e(F),F.resourceName=(F.path||"/")+(F.query?"?"+F.query:""),F.path=void 0,F.query=void 0,F},serialize:function(O,A){if(O.port!==(_e(O)?443:80)&&O.port!==""||(O.port=void 0),typeof O.secure=="boolean"&&(O.scheme=O.secure?"wss":"ws",O.secure=void 0),O.resourceName){var F=O.resourceName.split("?"),W=d(F,2),oe=W[0],ge=W[1];O.path=oe&&oe!=="/"?oe:void 0,O.query=ge,O.resourceName=void 0}return O.fragment=void 0,O}},X={scheme:"wss",domainHost:Ee.domainHost,parse:Ee.parse,serialize:Ee.serialize},qe={},Be="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",be="[0-9A-Fa-f]",N=s(s("%[EFef][0-9A-Fa-f]%"+be+be+"%"+be+be)+"|"+s("%[89A-Fa-f][0-9A-Fa-f]%"+be+be)+"|"+s("%"+be+be)),B=n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),H=new RegExp(Be,"g"),ue=new RegExp(N,"g"),ae=new RegExp(n("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',B),"g"),ie=new RegExp(n("[^]",Be,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ye=ie;function Oe(O){var A=I(O);return A.match(H)?A:O}var me={scheme:"mailto",parse:function(O,A){var F=O,W=F.to=F.path?F.path.split(","):[];if(F.path=void 0,F.query){for(var oe=!1,ge={},xe=F.query.split("&"),je=0,Ie=xe.length;je<Ie;++je){var ze=xe[je].split("=");switch(ze[0]){case"to":for(var et=ze[1].split(","),$e=0,He=et.length;$e<He;++$e)W.push(et[$e]);break;case"subject":F.subject=ve(ze[1],A);break;case"body":F.body=ve(ze[1],A);break;default:oe=!0,ge[ve(ze[0],A)]=ve(ze[1],A)}}oe&&(F.headers=ge)}F.query=void 0;for(var Ke=0,ct=W.length;Ke<ct;++Ke){var Ge=W[Ke].split("@");if(Ge[0]=ve(Ge[0]),A.unicodeSupport)Ge[1]=ve(Ge[1],A).toLowerCase();else try{Ge[1]=R(ve(Ge[1],A).toLowerCase())}catch(ut){F.error=F.error||"Email address's domain name can not be converted to ASCII via punycode: "+ut}W[Ke]=Ge.join("@")}return F},serialize:function(O,A){var F,W=O,oe=(F=O.to)!=null?F instanceof Array?F:typeof F.length!="number"||F.split||F.setInterval||F.call?[F]:Array.prototype.slice.call(F):[];if(oe){for(var ge=0,xe=oe.length;ge<xe;++ge){var je=String(oe[ge]),Ie=je.lastIndexOf("@"),ze=je.slice(0,Ie).replace(ue,Oe).replace(ue,a).replace(ae,P),et=je.slice(Ie+1);try{et=A.iri?j(et):R(ve(et,A).toLowerCase())}catch(ct){W.error=W.error||"Email address's domain name can not be converted to "+(A.iri?"Unicode":"ASCII")+" via punycode: "+ct}oe[ge]=ze+"@"+et}W.path=oe.join(",")}var $e=O.headers=O.headers||{};O.subject&&($e.subject=O.subject),O.body&&($e.body=O.body);var He=[];for(var Ke in $e)$e[Ke]!==qe[Ke]&&He.push(Ke.replace(ue,Oe).replace(ue,a).replace(ie,P)+"="+$e[Ke].replace(ue,Oe).replace(ue,a).replace(ye,P));return He.length&&(W.query=He.join("&")),W}},Me=/^([^\:]+)\:(.*)/,Ut={scheme:"urn",parse:function(O,A){var F=O.path&&O.path.match(Me),W=O;if(F){var oe=A.scheme||W.scheme||"urn",ge=F[1].toLowerCase(),xe=F[2],je=E[oe+":"+(A.nid||ge)];W.nid=ge,W.nss=xe,W.path=void 0,je&&(W=je.parse(W,A))}else W.error=W.error||"URN can not be parsed.";return W},serialize:function(O,A){var F=O.nid,W=E[(A.scheme||O.scheme||"urn")+":"+(A.nid||F)];W&&(O=W.serialize(O,A));var oe=O;return oe.path=(F||A.nid)+":"+O.nss,oe}},_t=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,yt={scheme:"urn:uuid",parse:function(O,A){var F=O;return F.uuid=F.nss,F.nss=void 0,A.tolerant||F.uuid&&F.uuid.match(_t)||(F.error=F.error||"UUID is not valid."),F},serialize:function(O,A){var F=O;return F.nss=(O.uuid||"").toLowerCase(),F}};E[se.scheme]=se,E[Ce.scheme]=Ce,E[Ee.scheme]=Ee,E[X.scheme]=X,E[me.scheme]=me,E[Ut.scheme]=Ut,E[yt.scheme]=yt,r.SCHEMES=E,r.pctEncChar=P,r.pctDecChars=I,r.parse=ne,r.removeDotSegments=Q,r.serialize=le,r.resolveComponents=U,r.resolve=function(O,A,F){var W=function(oe,ge){var xe={scheme:"null"};if(ge)for(var je in ge)xe[je]=ge[je];return xe}(0,F);return le(U(ne(O,W),ne(A,W),W,!0),W)},r.normalize=function(O,A){return typeof O=="string"?O=le(ne(O,A),A):i(O)==="object"&&(O=ne(le(O,A),A)),O},r.equal=function(O,A,F){return typeof O=="string"?O=le(ne(O,F),F):i(O)==="object"&&(O=le(O,F)),typeof A=="string"?A=le(ne(A,F),F):i(A)==="object"&&(A=le(A,F)),O===A},r.escapeComponent=function(O,A){return O&&O.toString().replace(A&&A.iri?c.ESCAPE:l.ESCAPE,P)},r.unescapeComponent=ve,Object.defineProperty(r,"__esModule",{value:!0})})(e)});Jc.code='require("ajv/dist/runtime/uri").default';var jg=Object.defineProperty({default:Jc},"__esModule",{value:!0}),Og=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0,Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return kn.KeywordCxt}}),Object.defineProperty(e,"_",{enumerable:!0,get:function(){return g._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return g.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return g.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return g.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return g.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return g.CodeGen}});const r=g,n=(j,E)=>new RegExp(j,E);n.code="new RegExp";const s=["removeAdditional","useDefaults","coerceTypes"],i=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),a={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."},o={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function l(j){var E,P,I,M,V,G,K,J,te,ne,D,_,L,q,Z,Q,le,U,ve,se,Ce,_e,Ee,X,qe;const Be=j.strict,be=(E=j.code)===null||E===void 0?void 0:E.optimize,N=be===!0||be===void 0?1:be||0,B=(I=(P=j.code)===null||P===void 0?void 0:P.regExp)!==null&&I!==void 0?I:n,H=(M=j.uriResolver)!==null&&M!==void 0?M:jg.default;return{strictSchema:(G=(V=j.strictSchema)!==null&&V!==void 0?V:Be)===null||G===void 0||G,strictNumbers:(J=(K=j.strictNumbers)!==null&&K!==void 0?K:Be)===null||J===void 0||J,strictTypes:(ne=(te=j.strictTypes)!==null&&te!==void 0?te:Be)!==null&&ne!==void 0?ne:"log",strictTuples:(_=(D=j.strictTuples)!==null&&D!==void 0?D:Be)!==null&&_!==void 0?_:"log",strictRequired:(q=(L=j.strictRequired)!==null&&L!==void 0?L:Be)!==null&&q!==void 0&&q,code:j.code?{...j.code,optimize:N,regExp:B}:{optimize:N,regExp:B},loopRequired:(Z=j.loopRequired)!==null&&Z!==void 0?Z:200,loopEnum:(Q=j.loopEnum)!==null&&Q!==void 0?Q:200,meta:(le=j.meta)===null||le===void 0||le,messages:(U=j.messages)===null||U===void 0||U,inlineRefs:(ve=j.inlineRefs)===null||ve===void 0||ve,schemaId:(se=j.schemaId)!==null&&se!==void 0?se:"$id",addUsedSchema:(Ce=j.addUsedSchema)===null||Ce===void 0||Ce,validateSchema:(_e=j.validateSchema)===null||_e===void 0||_e,validateFormats:(Ee=j.validateFormats)===null||Ee===void 0||Ee,unicodeRegExp:(X=j.unicodeRegExp)===null||X===void 0||X,int32range:(qe=j.int32range)===null||qe===void 0||qe,uriResolver:H}}class c{constructor(E={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,E=this.opts={...E,...l(E)};const{es5:P,lines:I}=this.opts.code;this.scope=new r.ValueScope({scope:{},prefixes:i,es5:P,lines:I}),this.logger=function(V){if(V===!1)return b;if(V===void 0)return console;if(V.log&&V.warn&&V.error)return V;throw new Error("logger must implement log, warn and error methods")}(E.logger);const M=E.validateFormats;E.validateFormats=!1,this.RULES=(0,Yc.getRules)(),d.call(this,a,E,"NOT SUPPORTED"),d.call(this,o,E,"DEPRECATED","warn"),this._metaOpts=y.call(this),E.formats&&m.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),E.keywords&&p.call(this,E.keywords),typeof E.meta=="object"&&this.addMetaSchema(E.meta),u.call(this),E.validateFormats=M}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:E,meta:P,schemaId:I}=this.opts;let M=Kc;I==="id"&&(M={...Kc},M.id=M.$id,delete M.$id),P&&E&&this.addMetaSchema(M,M[I],!1)}defaultMeta(){const{meta:E,schemaId:P}=this.opts;return this.opts.defaultMeta=typeof E=="object"?E[P]||E:void 0}validate(E,P){let I;if(typeof E=="string"){if(I=this.getSchema(E),!I)throw new Error(`no schema with key or ref "${E}"`)}else I=this.compile(E);const M=I(P);return"$async"in I||(this.errors=I.errors),M}compile(E,P){const I=this._addSchema(E,P);return I.validate||this._compileSchemaEnv(I)}compileAsync(E,P){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:I}=this.opts;return M.call(this,E,P);async function M(ne,D){await V.call(this,ne.$schema);const _=this._addSchema(ne,D);return _.validate||G.call(this,_)}async function V(ne){ne&&!this.getSchema(ne)&&await M.call(this,{$ref:ne},!0)}async function G(ne){try{return this._compileSchemaEnv(ne)}catch(D){if(!(D instanceof zi.default))throw D;return K.call(this,D),await J.call(this,D.missingSchema),G.call(this,ne)}}function K({missingSchema:ne,missingRef:D}){if(this.refs[ne])throw new Error(`AnySchema ${ne} is loaded but ${D} cannot be resolved`)}async function J(ne){const D=await te.call(this,ne);this.refs[ne]||await V.call(this,D.$schema),this.refs[ne]||this.addSchema(D,ne,P)}async function te(ne){const D=this._loading[ne];if(D)return D;try{return await(this._loading[ne]=I(ne))}finally{delete this._loading[ne]}}}addSchema(E,P,I,M=this.opts.validateSchema){if(Array.isArray(E)){for(const G of E)this.addSchema(G,void 0,I,M);return this}let V;if(typeof E=="object"){const{schemaId:G}=this.opts;if(V=E[G],V!==void 0&&typeof V!="string")throw new Error(`schema ${G} must be string`)}return P=(0,lt.normalizeId)(P||V),this._checkUnique(P),this.schemas[P]=this._addSchema(E,I,P,M,!0),this}addMetaSchema(E,P,I=this.opts.validateSchema){return this.addSchema(E,P,!0,I),this}validateSchema(E,P){if(typeof E=="boolean")return!0;let I;if(I=E.$schema,I!==void 0&&typeof I!="string")throw new Error("$schema must be a string");if(I=I||this.opts.defaultMeta||this.defaultMeta(),!I)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const M=this.validate(I,E);if(!M&&P){const V="schema is invalid: "+this.errorsText();if(this.opts.validateSchema!=="log")throw new Error(V);this.logger.error(V)}return M}getSchema(E){let P;for(;typeof(P=h.call(this,E))=="string";)E=P;if(P===void 0){const{schemaId:I}=this.opts,M=new tr.SchemaEnv({schema:{},schemaId:I});if(P=tr.resolveSchema.call(this,M,E),!P)return;this.refs[E]=P}return P.validate||this._compileSchemaEnv(P)}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 P=h.call(this,E);return typeof P=="object"&&this._cache.delete(P.schema),delete this.schemas[E],delete this.refs[E],this}case"object":{this._cache.delete(E);let P=E[this.opts.schemaId];return P&&(P=(0,lt.normalizeId)(P),delete this.schemas[P],delete this.refs[P]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(E){for(const P of E)this.addKeyword(P);return this}addKeyword(E,P){let I;if(typeof E=="string")I=E,typeof P=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),P.keyword=I);else{if(typeof E!="object"||P!==void 0)throw new Error("invalid addKeywords parameters");if(I=(P=E).keyword,Array.isArray(I)&&!I.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(T.call(this,I,P),!P)return(0,pe.eachItem)(I,V=>$.call(this,V)),this;w.call(this,P);const M={...P,type:(0,Yt.getJSONTypes)(P.type),schemaType:(0,Yt.getJSONTypes)(P.schemaType)};return(0,pe.eachItem)(I,M.type.length===0?V=>$.call(this,V,M):V=>M.type.forEach(G=>$.call(this,V,M,G))),this}getKeyword(E){const P=this.RULES.all[E];return typeof P=="object"?P.definition:!!P}removeKeyword(E){const{RULES:P}=this;delete P.keywords[E],delete P.all[E];for(const I of P.rules){const M=I.rules.findIndex(V=>V.keyword===E);M>=0&&I.rules.splice(M,1)}return this}addFormat(E,P){return typeof P=="string"&&(P=new RegExp(P)),this.formats[E]=P,this}errorsText(E=this.errors,{separator:P=", ",dataVar:I="data"}={}){return E&&E.length!==0?E.map(M=>`${I}${M.instancePath} ${M.message}`).reduce((M,V)=>M+P+V):"No errors"}$dataMetaSchema(E,P){const I=this.RULES.all;E=JSON.parse(JSON.stringify(E));for(const M of P){const V=M.split("/").slice(1);let G=E;for(const K of V)G=G[K];for(const K in I){const J=I[K];if(typeof J!="object")continue;const{$data:te}=J.definition,ne=G[K];te&&ne&&(G[K]=R(ne))}}return E}_removeAllSchemas(E,P){for(const I in E){const M=E[I];P&&!P.test(I)||(typeof M=="string"?delete E[I]:M&&!M.meta&&(this._cache.delete(M.schema),delete E[I]))}}_addSchema(E,P,I,M=this.opts.validateSchema,V=this.opts.addUsedSchema){let G;const{schemaId:K}=this.opts;if(typeof E=="object")G=E[K];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof E!="boolean")throw new Error("schema must be object or boolean")}let J=this._cache.get(E);if(J!==void 0)return J;I=(0,lt.normalizeId)(G||I);const te=lt.getSchemaRefs.call(this,E,I);return J=new tr.SchemaEnv({schema:E,schemaId:K,meta:P,baseId:I,localRefs:te}),this._cache.set(J.schema,J),V&&!I.startsWith("#")&&(I&&this._checkUnique(I),this.refs[I]=J),M&&this.validateSchema(E,!0),J}_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):tr.compileSchema.call(this,E),!E.validate)throw new Error("ajv implementation error");return E.validate}_compileMetaSchema(E){const P=this.opts;this.opts=this._metaOpts;try{tr.compileSchema.call(this,E)}finally{this.opts=P}}}function d(j,E,P,I="error"){for(const M in j){const V=M;V in E&&this.logger[I](`${P}: option ${M}. ${j[V]}`)}}function h(j){return j=(0,lt.normalizeId)(j),this.schemas[j]||this.refs[j]}function u(){const j=this.opts.schemas;if(j)if(Array.isArray(j))this.addSchema(j);else for(const E in j)this.addSchema(j[E],E)}function m(){for(const j in this.opts.formats){const E=this.opts.formats[j];E&&this.addFormat(j,E)}}function p(j){if(Array.isArray(j))this.addVocabulary(j);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const E in j){const P=j[E];P.keyword||(P.keyword=E),this.addKeyword(P)}}}function y(){const j={...this.opts};for(const E of s)delete j[E];return j}e.default=c,c.ValidationError=Zc.default,c.MissingRefError=zi.default;const b={log(){},warn(){},error(){}},k=/^[a-z_$][a-z0-9_$:-]*$/i;function T(j,E){const{RULES:P}=this;if((0,pe.eachItem)(j,I=>{if(P.keywords[I])throw new Error(`Keyword ${I} is already defined`);if(!k.test(I))throw new Error(`Keyword ${I} has invalid name`)}),E&&E.$data&&!("code"in E)&&!("validate"in E))throw new Error('$data keyword must have "code" or "validate" function')}function $(j,E,P){var I;const M=E==null?void 0:E.post;if(P&&M)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:V}=this;let G=M?V.post:V.rules.find(({type:J})=>J===P);if(G||(G={type:P,rules:[]},V.rules.push(G)),V.keywords[j]=!0,!E)return;const K={keyword:j,definition:{...E,type:(0,Yt.getJSONTypes)(E.type),schemaType:(0,Yt.getJSONTypes)(E.schemaType)}};E.before?x.call(this,G,K,E.before):G.rules.push(K),V.all[j]=K,(I=E.implements)===null||I===void 0||I.forEach(J=>this.addKeyword(J))}function x(j,E,P){const I=j.rules.findIndex(M=>M.keyword===P);I>=0?j.rules.splice(I,0,E):(j.rules.push(E),this.logger.warn(`rule ${P} is not defined`))}function w(j){let{metaSchema:E}=j;E!==void 0&&(j.$data&&this.opts.$data&&(E=R(E)),j.validateSchema=this.compile(E,!0))}const z={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function R(j){return{anyOf:[j,z]}}}),Pg=Object.defineProperty({default:{keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}},"__esModule",{value:!0}),Cg=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;const r={keyword:"$ref",schemaType:"string",code(i){const{gen:a,schema:o,it:l}=i,{baseId:c,schemaEnv:d,validateName:h,opts:u,self:m}=l,{root:p}=d;if((o==="#"||o==="#/")&&c===p.baseId)return function(){if(d===p)return s(i,h,d,d.$async);const b=a.scopeValue("root",{ref:p});return s(i,g._`${b}.validate`,p,p.$async)}();const y=tr.resolveRef.call(m,p,c,o);if(y===void 0)throw new zi.default(l.opts.uriResolver,c,o);return y instanceof tr.SchemaEnv?function(b){const k=n(i,b);s(i,k,b,b.$async)}(y):function(b){const k=a.scopeValue("schema",u.code.source===!0?{ref:b,code:(0,g.stringify)(b)}:{ref:b}),T=a.name("valid"),$=i.subschema({schema:b,dataTypes:[],schemaPath:g.nil,topSchemaRef:k,errSchemaPath:o},T);i.mergeEvaluated($),i.ok(T)}(y)}};function n(i,a){const{gen:o}=i;return a.validate?o.scopeValue("validate",{ref:a.validate}):g._`${o.scopeValue("wrapper",{ref:a})}.validate`}function s(i,a,o,l){const{gen:c,it:d}=i,{allErrors:h,schemaEnv:u,opts:m}=d,p=m.passContext?ee.default.this:g.nil;function y(k){const T=g._`${k}.errors`;c.assign(ee.default.vErrors,g._`${ee.default.vErrors} === null ? ${T} : ${ee.default.vErrors}.concat(${T})`),c.assign(ee.default.errors,g._`${ee.default.vErrors}.length`)}function b(k){var T;if(!d.opts.unevaluated)return;const $=(T=o==null?void 0:o.validate)===null||T===void 0?void 0:T.evaluated;if(d.props!==!0)if($&&!$.dynamicProps)$.props!==void 0&&(d.props=pe.mergeEvaluated.props(c,$.props,d.props));else{const x=c.var("props",g._`${k}.evaluated.props`);d.props=pe.mergeEvaluated.props(c,x,d.props,g.Name)}if(d.items!==!0)if($&&!$.dynamicItems)$.items!==void 0&&(d.items=pe.mergeEvaluated.items(c,$.items,d.items));else{const x=c.var("items",g._`${k}.evaluated.items`);d.items=pe.mergeEvaluated.items(c,x,d.items,g.Name)}}l?function(){if(!u.$async)throw new Error("async schema referenced by sync schema");const k=c.let("valid");c.try(()=>{c.code(g._`await ${(0,rt.callValidateCode)(i,a,p)}`),b(a),h||c.assign(k,!0)},T=>{c.if(g._`!(${T} instanceof ${d.ValidationError})`,()=>c.throw(T)),y(T),h||c.assign(k,!1)}),i.ok(k)}():i.result((0,rt.callValidateCode)(i,a,p),()=>b(a),()=>y(a))}e.getValidate=n,e.callRef=s,e.default=r}),Ng=Object.defineProperty({default:["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Pg.default,Cg.default]},"__esModule",{value:!0});const yr=g.operators,hs={maximum:{okStr:"<=",ok:yr.LTE,fail:yr.GT},minimum:{okStr:">=",ok:yr.GTE,fail:yr.LT},exclusiveMaximum:{okStr:"<",ok:yr.LT,fail:yr.GTE},exclusiveMinimum:{okStr:">",ok:yr.GT,fail:yr.LTE}},Ig={message:({keyword:t,schemaCode:e})=>g.str`must be ${hs[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>g._`{comparison: ${hs[t].okStr}, limit: ${e}}`},Dg={keyword:Object.keys(hs),type:"number",schemaType:"number",$data:!0,error:Ig,code(t){const{keyword:e,data:r,schemaCode:n}=t;t.fail$data(g._`${r} ${hs[e].fail} ${n} || isNaN(${r})`)}};var Ag=Object.defineProperty({default:Dg},"__esModule",{value:!0}),Fg=Object.defineProperty({default:{keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:t})=>g.str`must be multiple of ${t}`,params:({schemaCode:t})=>g._`{multipleOf: ${t}}`},code(t){const{gen:e,data:r,schemaCode:n,it:s}=t,i=s.opts.multipleOfPrecision,a=e.let("res"),o=i?g._`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:g._`${a} !== parseInt(${a})`;t.fail$data(g._`(${n} === 0 || (${a} = ${r}/${n}, ${o}))`)}}},"__esModule",{value:!0});function Xc(t){const e=t.length;let r,n=0,s=0;for(;s<e;)n++,r=t.charCodeAt(s++),r>=55296&&r<=56319&&s<e&&(r=t.charCodeAt(s),(64512&r)==56320&&s++);return n}var Mg=Xc;Xc.code='require("ajv/dist/runtime/ucs2length").default';var Vg=Object.defineProperty({default:Mg},"__esModule",{value:!0}),Lg=Object.defineProperty({default:{keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:t,schemaCode:e})=>g.str`must NOT have ${t==="maxLength"?"more":"fewer"} than ${e} characters`,params:({schemaCode:t})=>g._`{limit: ${t}}`},code(t){const{keyword:e,data:r,schemaCode:n,it:s}=t,i=e==="maxLength"?g.operators.GT:g.operators.LT,a=s.opts.unicode===!1?g._`${r}.length`:g._`${(0,pe.useFunc)(t.gen,Vg.default)}(${r})`;t.fail$data(g._`${a} ${i} ${n}`)}}},"__esModule",{value:!0}),Rg=Object.defineProperty({default:{keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>g.str`must match pattern "${t}"`,params:({schemaCode:t})=>g._`{pattern: ${t}}`},code(t){const{data:e,$data:r,schema:n,schemaCode:s,it:i}=t,a=r?g._`(new RegExp(${s}, ${i.opts.unicodeRegExp?"u":""}))`:(0,rt.usePattern)(t,n);t.fail$data(g._`!${a}.test(${e})`)}}},"__esModule",{value:!0}),Bg=Object.defineProperty({default:{keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:({keyword:t,schemaCode:e})=>g.str`must NOT have ${t==="maxProperties"?"more":"fewer"} than ${e} properties`,params:({schemaCode:t})=>g._`{limit: ${t}}`},code(t){const{keyword:e,data:r,schemaCode:n}=t;t.fail$data(g._`Object.keys(${r}).length ${e==="maxProperties"?g.operators.GT:g.operators.LT} ${n}`)}}},"__esModule",{value:!0}),zg=Object.defineProperty({default:{keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:t}})=>g.str`must have required property '${t}'`,params:({params:{missingProperty:t}})=>g._`{missingProperty: ${t}}`},code(t){const{gen:e,schema:r,schemaCode:n,data:s,$data:i,it:a}=t,{opts:o}=a;if(!i&&r.length===0)return;const l=r.length>=o.loopRequired;if(a.allErrors?function(){if(l||i)t.block$data(g.nil,c);else for(const d of r)(0,rt.checkReportMissingProp)(t,d)}():function(){const d=e.let("missing");if(l||i){const h=e.let("valid",!0);t.block$data(h,()=>function(u,m){t.setParams({missingProperty:u}),e.forOf(u,n,()=>{e.assign(m,(0,rt.propertyInData)(e,s,u,o.ownProperties)),e.if((0,g.not)(m),()=>{t.error(),e.break()})},g.nil)}(d,h)),t.ok(h)}else e.if((0,rt.checkMissingProp)(t,r,d)),(0,rt.reportMissingProp)(t,d),e.else()}(),o.strictRequired){const d=t.parentSchema.properties,{definedProperties:h}=t.it;for(const u of r)(d==null?void 0:d[u])!==void 0||h.has(u)||(0,pe.checkStrictMode)(a,`required property "${u}" is not defined at "${a.schemaEnv.baseId+a.errSchemaPath}" (strictRequired)`,a.opts.strictRequired)}function c(){e.forOf("prop",n,d=>{t.setParams({missingProperty:d}),e.if((0,rt.noPropertyInData)(e,s,d,o.ownProperties),()=>t.error())})}}}},"__esModule",{value:!0}),Ug=Object.defineProperty({default:{keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:({keyword:t,schemaCode:e})=>g.str`must NOT have ${t==="maxItems"?"more":"fewer"} than ${e} items`,params:({schemaCode:t})=>g._`{limit: ${t}}`},code(t){const{keyword:e,data:r,schemaCode:n}=t;t.fail$data(g._`${r}.length ${e==="maxItems"?g.operators.GT:g.operators.LT} ${n}`)}}},"__esModule",{value:!0});Bi.code='require("ajv/dist/runtime/equal").default';var Ui=Object.defineProperty({default:Bi},"__esModule",{value:!0}),Wg=Object.defineProperty({default:[Ag.default,Fg.default,Lg.default,Rg.default,Bg.default,zg.default,Ug.default,Object.defineProperty({default:{keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:t,j:e}})=>g.str`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>g._`{i: ${t}, j: ${e}}`},code(t){const{gen:e,data:r,$data:n,schema:s,parentSchema:i,schemaCode:a,it:o}=t;if(!n&&!s)return;const l=e.let("valid"),c=i.items?(0,Yt.getSchemaTypes)(i.items):[];function d(u,m){const p=e.name("item"),y=(0,Yt.checkDataTypes)(c,p,o.opts.strictNumbers,Yt.DataType.Wrong),b=e.const("indices",g._`{}`);e.for(g._`;${u}--;`,()=>{e.let(p,g._`${r}[${u}]`),e.if(y,g._`continue`),c.length>1&&e.if(g._`typeof ${p} == "string"`,g._`${p} += "_"`),e.if(g._`typeof ${b}[${p}] == "number"`,()=>{e.assign(m,g._`${b}[${p}]`),t.error(),e.assign(l,!1).break()}).code(g._`${b}[${p}] = ${u}`)})}function h(u,m){const p=(0,pe.useFunc)(e,Ui.default),y=e.name("outer");e.label(y).for(g._`;${u}--;`,()=>e.for(g._`${m} = ${u}; ${m}--;`,()=>e.if(g._`${p}(${r}[${u}], ${r}[${m}])`,()=>{t.error(),e.assign(l,!1).break(y)})))}t.block$data(l,function(){const u=e.let("i",g._`${r}.length`),m=e.let("j");t.setParams({i:u,j:m}),e.assign(l,!0),e.if(g._`${u} > 1`,()=>(c.length>0&&!c.some(p=>p==="object"||p==="array")?d:h)(u,m))},g._`${a} === false`),t.ok(l)}}},"__esModule",{value:!0}).default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Object.defineProperty({default:{keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:t})=>g._`{allowedValue: ${t}}`},code(t){const{gen:e,data:r,$data:n,schemaCode:s,schema:i}=t;n||i&&typeof i=="object"?t.fail$data(g._`!${(0,pe.useFunc)(e,Ui.default)}(${r}, ${s})`):t.fail(g._`${i} !== ${r}`)}}},"__esModule",{value:!0}).default,Object.defineProperty({default:{keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:t})=>g._`{allowedValues: ${t}}`},code(t){const{gen:e,data:r,$data:n,schema:s,schemaCode:i,it:a}=t;if(!n&&s.length===0)throw new Error("enum must have non-empty array");let o;const l=()=>o??(o=(0,pe.useFunc)(e,Ui.default));let c;if(s.length>=a.opts.loopEnum||n)c=e.let("valid"),t.block$data(c,function(){e.assign(c,!1),e.forOf("v",i,d=>e.if(g._`${l()}(${r}, ${d})`,()=>e.assign(c,!0).break()))});else{if(!Array.isArray(s))throw new Error("ajv implementation error");const d=e.const("vSchema",i);c=(0,g.or)(...s.map((h,u)=>function(m,p){const y=s[p];return typeof y=="object"&&y!==null?g._`${l()}(${r}, ${m}[${p}])`:g._`${r} === ${y}`}(d,u)))}t.pass(c)}}},"__esModule",{value:!0}).default]},"__esModule",{value:!0}),Qc=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateAdditionalItems=void 0;const r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:s}})=>g.str`must NOT have more than ${s} items`,params:({params:{len:s}})=>g._`{limit: ${s}}`},code(s){const{parentSchema:i,it:a}=s,{items:o}=i;Array.isArray(o)?n(s,o):(0,pe.checkStrictMode)(a,'"additionalItems" is ignored when "items" is not an array of schemas')}};function n(s,i){const{gen:a,schema:o,data:l,keyword:c,it:d}=s;d.items=!0;const h=a.const("len",g._`${l}.length`);if(o===!1)s.setParams({len:i.length}),s.pass(g._`${h} <= ${i.length}`);else if(typeof o=="object"&&!(0,pe.alwaysValidSchema)(d,o)){const u=a.var("valid",g._`${h} <= ${i.length}`);a.if((0,g.not)(u),()=>function(m){a.forRange("i",i.length,h,p=>{s.subschema({keyword:c,dataProp:p,dataPropType:pe.Type.Num},m),d.allErrors||a.if((0,g.not)(m),()=>a.break())})}(u)),s.ok(u)}}e.validateAdditionalItems=n,e.default=r}),eu=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;const r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){const{schema:i,it:a}=s;if(Array.isArray(i))return n(s,"additionalItems",i);a.items=!0,(0,pe.alwaysValidSchema)(a,i)||s.ok((0,rt.validateArray)(s))}};function n(s,i,a=s.schema){const{gen:o,parentSchema:l,data:c,keyword:d,it:h}=s;(function(p){const{opts:y,errSchemaPath:b}=h,k=a.length;y.strictTuples&&(k!==p.minItems||k!==p.maxItems&&p[i]!==!1)&&(0,pe.checkStrictMode)(h,`"${d}" is ${k}-tuple, but minItems or maxItems/${i} are not specified or different at path "${b}"`,y.strictTuples)})(l),h.opts.unevaluated&&a.length&&h.items!==!0&&(h.items=pe.mergeEvaluated.items(o,a.length,h.items));const u=o.name("valid"),m=o.const("len",g._`${c}.length`);a.forEach((p,y)=>{(0,pe.alwaysValidSchema)(h,p)||(o.if(g._`${m} > ${y}`,()=>s.subschema({keyword:d,schemaProp:y,dataProp:y},u)),s.ok(u))})}e.validateTuple=n,e.default=r}),qg=Object.defineProperty({default:{keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,eu.validateTuple)(t,"items")}},"__esModule",{value:!0}),Hg=Object.defineProperty({default:{keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:t}})=>g.str`must NOT have more than ${t} items`,params:({params:{len:t}})=>g._`{limit: ${t}}`},code(t){const{schema:e,parentSchema:r,it:n}=t,{prefixItems:s}=r;n.items=!0,(0,pe.alwaysValidSchema)(n,e)||(s?(0,Qc.validateAdditionalItems)(t,s):t.ok((0,rt.validateArray)(t)))}}},"__esModule",{value:!0}),Gg=Object.defineProperty({default:{keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:t,max:e}})=>e===void 0?g.str`must contain at least ${t} valid item(s)`:g.str`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?g._`{minContains: ${t}}`:g._`{minContains: ${t}, maxContains: ${e}}`},code(t){const{gen:e,schema:r,parentSchema:n,data:s,it:i}=t;let a,o;const{minContains:l,maxContains:c}=n;i.opts.next?(a=l===void 0?1:l,o=c):a=1;const d=e.const("len",g._`${s}.length`);if(t.setParams({min:a,max:o}),o===void 0&&a===0)return void(0,pe.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(o!==void 0&&a>o)return(0,pe.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,pe.alwaysValidSchema)(i,r)){let p=g._`${d} >= ${a}`;return o!==void 0&&(p=g._`${p} && ${d} <= ${o}`),void t.pass(p)}i.items=!0;const h=e.name("valid");function u(){const p=e.name("_valid"),y=e.let("count",0);m(p,()=>e.if(p,()=>function(b){e.code(g._`${b}++`),o===void 0?e.if(g._`${b} >= ${a}`,()=>e.assign(h,!0).break()):(e.if(g._`${b} > ${o}`,()=>e.assign(h,!1).break()),a===1?e.assign(h,!0):e.if(g._`${b} >= ${a}`,()=>e.assign(h,!0)))}(y)))}function m(p,y){e.forRange("i",0,d,b=>{t.subschema({keyword:"contains",dataProp:b,dataPropType:pe.Type.Num,compositeRule:!0},p),y()})}o===void 0&&a===1?m(h,()=>e.if(h,()=>e.break())):a===0?(e.let(h,!0),o!==void 0&&e.if(g._`${s}.length > 0`,u)):(e.let(h,!1),u()),t.result(h,()=>t.reset())}}},"__esModule",{value:!0}),Yg=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0,e.error={message:({params:{property:i,depsCount:a,deps:o}})=>g.str`must have ${a===1?"property":"properties"} ${o} when property ${i} is present`,params:({params:{property:i,depsCount:a,deps:o,missingProperty:l}})=>g._`{property: ${i},
158
158
  missingProperty: ${l},
159
159
  depsCount: ${a},
160
- deps: ${o}}`};const r={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(i){const[a,o]=function({schema:l}){const c={},d={};for(const h in l)h!=="__proto__"&&((Array.isArray(l[h])?c:d)[h]=l[h]);return[c,d]}(i);n(i,a),s(i,o)}};function n(i,a=i.schema){const{gen:o,data:l,it:c}=i;if(Object.keys(a).length===0)return;const d=o.let("missing");for(const h in a){const u=a[h];if(u.length===0)continue;const m=(0,rt.propertyInData)(o,l,h,c.opts.ownProperties);i.setParams({property:h,depsCount:u.length,deps:u.join(", ")}),c.allErrors?o.if(m,()=>{for(const p of u)(0,rt.checkReportMissingProp)(i,p)}):(o.if(g._`${m} && (${(0,rt.checkMissingProp)(i,u,d)})`),(0,rt.reportMissingProp)(i,d),o.else())}}function s(i,a=i.schema){const{gen:o,data:l,keyword:c,it:d}=i,h=o.name("valid");for(const u in a)(0,pe.alwaysValidSchema)(d,a[u])||(o.if((0,rt.propertyInData)(o,l,u,d.opts.ownProperties),()=>{const m=i.subschema({keyword:c,schemaProp:u},h);i.mergeValidEvaluated(m,h)},()=>o.var(h,!0)),i.ok(h))}e.validatePropertyDeps=n,e.validateSchemaDeps=s,e.default=r}),Zg=Object.defineProperty({default:{keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:t})=>g._`{propertyName: ${t.propertyName}}`},code(t){const{gen:e,schema:r,data:n,it:s}=t;if((0,pe.alwaysValidSchema)(s,r))return;const i=e.name("valid");e.forIn("key",n,a=>{t.setParams({propertyName:a}),t.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},i),e.if((0,g.not)(i),()=>{t.error(!0),s.allErrors||e.break()})}),t.ok(i)}}},"__esModule",{value:!0}),Wi=Object.defineProperty({default:{keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:t})=>g._`{additionalProperty: ${t.additionalProperty}}`},code(t){const{gen:e,schema:r,parentSchema:n,data:s,errsCount:i,it:a}=t;if(!i)throw new Error("ajv implementation error");const{allErrors:o,opts:l}=a;if(a.props=!0,l.removeAdditional!=="all"&&(0,pe.alwaysValidSchema)(a,r))return;const c=(0,rt.allSchemaProperties)(n.properties),d=(0,rt.allSchemaProperties)(n.patternProperties);function h(p){e.code(g._`delete ${s}[${p}]`)}function u(p){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1)h(p);else{if(r===!1)return t.setParams({additionalProperty:p}),t.error(),void(o||e.break());if(typeof r=="object"&&!(0,pe.alwaysValidSchema)(a,r)){const y=e.name("valid");l.removeAdditional==="failing"?(m(p,y,!1),e.if((0,g.not)(y),()=>{t.reset(),h(p)})):(m(p,y),o||e.if((0,g.not)(y),()=>e.break()))}}}function m(p,y,b){const k={keyword:"additionalProperties",dataProp:p,dataPropType:pe.Type.Str};b===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(k,y)}e.forIn("key",s,p=>{c.length||d.length?e.if(function(y){let b;if(c.length>8){const k=(0,pe.schemaRefOrVal)(a,n.properties,"properties");b=(0,rt.isOwnProperty)(e,k,y)}else b=c.length?(0,g.or)(...c.map(k=>g._`${y} === ${k}`)):g.nil;return d.length&&(b=(0,g.or)(b,...d.map(k=>g._`${(0,rt.usePattern)(t,k)}.test(${y})`))),(0,g.not)(b)}(p),()=>u(p)):u(p)}),t.ok(g._`${i} === ${ee.default.errors}`)}}},"__esModule",{value:!0}),Kg=Object.defineProperty({default:{keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,parentSchema:n,data:s,it:i}=t;i.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Wi.default.code(new kn.KeywordCxt(i,Wi.default,"additionalProperties"));const a=(0,rt.allSchemaProperties)(r);for(const h of a)i.definedProperties.add(h);i.opts.unevaluated&&a.length&&i.props!==!0&&(i.props=pe.mergeEvaluated.props(e,(0,pe.toHash)(a),i.props));const o=a.filter(h=>!(0,pe.alwaysValidSchema)(i,r[h]));if(o.length===0)return;const l=e.name("valid");for(const h of o)c(h)?d(h):(e.if((0,rt.propertyInData)(e,s,h,i.opts.ownProperties)),d(h),i.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(h),t.ok(l);function c(h){return i.opts.useDefaults&&!i.compositeRule&&r[h].default!==void 0}function d(h){t.subschema({keyword:"properties",schemaProp:h,dataProp:h},l)}}}},"__esModule",{value:!0});const tu=pe;var Jg=Object.defineProperty({default:{keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,data:n,parentSchema:s,it:i}=t,{opts:a}=i,o=(0,rt.allSchemaProperties)(r),l=o.filter(p=>(0,pe.alwaysValidSchema)(i,r[p]));if(o.length===0||l.length===o.length&&(!i.opts.unevaluated||i.props===!0))return;const c=a.strictSchema&&!a.allowMatchingProperties&&s.properties,d=e.name("valid");i.props===!0||i.props instanceof g.Name||(i.props=(0,tu.evaluatedPropsToName)(e,i.props));const{props:h}=i;function u(p){for(const y in c)new RegExp(p).test(y)&&(0,pe.checkStrictMode)(i,`property ${y} matches pattern ${p} (use allowMatchingProperties)`)}function m(p){e.forIn("key",n,y=>{e.if(g._`${(0,rt.usePattern)(t,p)}.test(${y})`,()=>{const b=l.includes(p);b||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:y,dataPropType:tu.Type.Str},d),i.opts.unevaluated&&h!==!0?e.assign(g._`${h}[${y}]`,!0):b||i.allErrors||e.if((0,g.not)(d),()=>e.break())})})}(function(){for(const p of o)c&&u(p),i.allErrors?m(p):(e.var(d,!0),m(p),e.if(d))})()}}},"__esModule",{value:!0}),Xg=Object.defineProperty({default:{keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:e,schema:r,it:n}=t;if((0,pe.alwaysValidSchema)(n,r))return void t.fail();const s=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),t.failResult(s,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}}},"__esModule",{value:!0}),Qg=Object.defineProperty({default:{keyword:"anyOf",schemaType:"array",trackErrors:!0,code:rt.validateUnion,error:{message:"must match a schema in anyOf"}}},"__esModule",{value:!0}),ey=Object.defineProperty({default:{keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:t})=>g._`{passingSchemas: ${t.passing}}`},code(t){const{gen:e,schema:r,parentSchema:n,it:s}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(s.opts.discriminator&&n.discriminator)return;const i=r,a=e.let("valid",!1),o=e.let("passing",null),l=e.name("_valid");t.setParams({passing:o}),e.block(function(){i.forEach((c,d)=>{let h;(0,pe.alwaysValidSchema)(s,c)?e.var(l,!0):h=t.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},l),d>0&&e.if(g._`${l} && ${a}`).assign(a,!1).assign(o,g._`[${o}, ${d}]`).else(),e.if(l,()=>{e.assign(a,!0),e.assign(o,d),h&&t.mergeEvaluated(h,g.Name)})})}),t.result(a,()=>t.reset(),()=>t.error(!0))}}},"__esModule",{value:!0}),ty=Object.defineProperty({default:{keyword:"allOf",schemaType:"array",code(t){const{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");const s=e.name("valid");r.forEach((i,a)=>{if((0,pe.alwaysValidSchema)(n,i))return;const o=t.subschema({keyword:"allOf",schemaProp:a},s);t.ok(s),t.mergeEvaluated(o)})}}},"__esModule",{value:!0});function ru(t,e){const r=t.schema[e];return r!==void 0&&!(0,pe.alwaysValidSchema)(t,r)}var ry=Object.defineProperty({default:{keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:t})=>g.str`must match "${t.ifClause}" schema`,params:({params:t})=>g._`{failingKeyword: ${t.ifClause}}`},code(t){const{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,pe.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const s=ru(n,"then"),i=ru(n,"else");if(!s&&!i)return;const a=e.let("valid",!0),o=e.name("_valid");if(function(){const c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);t.mergeEvaluated(c)}(),t.reset(),s&&i){const c=e.let("ifClause");t.setParams({ifClause:c}),e.if(o,l("then",c),l("else",c))}else s?e.if(o,l("then")):e.if((0,g.not)(o),l("else"));function l(c,d){return()=>{const h=t.subschema({keyword:c},o);e.assign(a,o),t.mergeValidEvaluated(h,a),d?e.assign(d,g._`${c}`):t.setParams({ifClause:c})}}t.pass(a,()=>t.error(!0))}}},"__esModule",{value:!0}),ny=Object.defineProperty({default:{keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,pe.checkStrictMode)(r,`"${t}" without "if" is ignored`)}}},"__esModule",{value:!0}),sy=Object.defineProperty({default:function(t=!1){const e=[Xg.default,Qg.default,ey.default,ty.default,ry.default,ny.default,Zg.default,Wi.default,Yg.default,Kg.default,Jg.default];return t?e.push(qg.default,Hg.default):e.push(Qc.default,eu.default),e.push(Gg.default),e}},"__esModule",{value:!0}),iy=Object.defineProperty({default:[Object.defineProperty({default:{keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>g.str`must match format "${t}"`,params:({schemaCode:t})=>g._`{format: ${t}}`},code(t,e){const{gen:r,data:n,$data:s,schema:i,schemaCode:a,it:o}=t,{opts:l,errSchemaPath:c,schemaEnv:d,self:h}=o;l.validateFormats&&(s?function(){const u=r.scopeValue("formats",{ref:h.formats,code:l.code.formats}),m=r.const("fDef",g._`${u}[${a}]`),p=r.let("fType"),y=r.let("format");r.if(g._`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(p,g._`${m}.type || "string"`).assign(y,g._`${m}.validate`),()=>r.assign(p,g._`"string"`).assign(y,m)),t.fail$data((0,g.or)(l.strictSchema===!1?g.nil:g._`${a} && !${y}`,function(){const b=d.$async?g._`(${m}.async ? await ${y}(${n}) : ${y}(${n}))`:g._`${y}(${n})`,k=g._`(typeof ${y} == "function" ? ${b} : ${y}.test(${n}))`;return g._`${y} && ${y} !== true && ${p} === ${e} && !${k}`}()))}():function(){const u=h.formats[i];if(!u)return void function(){if(l.strictSchema!==!1)throw new Error(b());function b(){return`unknown format "${i}" ignored in schema at path "${c}"`}h.logger.warn(b())}();if(u===!0)return;const[m,p,y]=function(b){const k=b instanceof RegExp?(0,g.regexpCode)(b):l.code.formats?g._`${l.code.formats}${(0,g.getProperty)(i)}`:void 0,T=r.scopeValue("formats",{key:i,ref:b,code:k});return typeof b!="object"||b instanceof RegExp?["string",b,T]:[b.type||"string",b.validate,g._`${T}.validate`]}(u);m===e&&t.pass(function(){if(typeof u=="object"&&!(u instanceof RegExp)&&u.async){if(!d.$async)throw new Error("async format in sync schema");return g._`await ${y}(${n})`}return typeof p=="function"?g._`${y}(${n})`:g._`${y}.test(${n})`}())}())}}},"__esModule",{value:!0}).default]},"__esModule",{value:!0}),nu=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],e.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});const ay=[Ng.default,Wg.default,(0,sy.default)(),iy.default,nu.metadataVocabulary,nu.contentVocabulary];var oy=Object.defineProperty({default:ay},"__esModule",{value:!0}),qi=Xe(function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(r=e.DiscrError||(e.DiscrError={})).Tag="tag",r.Mapping="mapping"}),ly=Object.defineProperty({default:{keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:t,tagName:e}})=>t===qi.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>g._`{error: ${t}, tag: ${r}, tagValue: ${e}}`},code(t){const{gen:e,data:r,schema:n,parentSchema:s,it:i}=t,{oneOf:a}=s;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");const o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");const l=e.let("valid",!1),c=e.const("tag",g._`${r}${(0,g.getProperty)(o)}`);function d(h){const u=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},u);return t.mergeEvaluated(m,g.Name),u}e.if(g._`typeof ${c} == "string"`,()=>function(){const h=function(){var u;const m={},p=b(s);let y=!0;for(let $=0;$<a.length;$++){let x=a[$];x!=null&&x.$ref&&!(0,pe.schemaHasRulesButRef)(x,i.self.RULES)&&(x=tr.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,x==null?void 0:x.$ref),x instanceof tr.SchemaEnv&&(x=x.schema));const w=(u=x==null?void 0:x.properties)===null||u===void 0?void 0:u[o];if(typeof w!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${o}"`);y=y&&(p||b(x)),k(w,$)}if(!y)throw new Error(`discriminator: "${o}" must be required`);return m;function b({required:$}){return Array.isArray($)&&$.includes(o)}function k($,x){if($.const)T($.const,x);else{if(!$.enum)throw new Error(`discriminator: "properties/${o}" must have "const" or "enum"`);for(const w of $.enum)T(w,x)}}function T($,x){if(typeof $!="string"||$ in m)throw new Error(`discriminator: "${o}" values must be unique strings`);m[$]=x}}();e.if(!1);for(const u in h)e.elseIf(g._`${c} === ${u}`),e.assign(l,d(h[u]));e.else(),t.error(!1,{discrError:qi.DiscrError.Mapping,tag:c,tagName:o}),e.endIf()}(),()=>t.error(!1,{discrError:qi.DiscrError.Tag,tag:c,tagName:o})),t.ok(l)}}},"__esModule",{value:!0}),su={$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},fe=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const r=["/properties"],n="http://json-schema.org/draft-07/schema";class s extends Og.default{_addVocabularies(){super._addVocabularies(),oy.default.forEach(a=>this.addVocabulary(a)),this.opts.discriminator&&this.addKeyword(ly.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const a=this.opts.$data?this.$dataMetaSchema(su,r):su;this.addMetaSchema(a,n,!1),this.refs["http://json-schema.org/schema"]=n}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(n)?n:void 0)}}t.exports=e=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s,Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return kn.KeywordCxt}}),Object.defineProperty(e,"_",{enumerable:!0,get:function(){return g._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return g.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return g.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return g.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return g.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return g.CodeGen}})}),cy=Hc(fe),uy=Hc(Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r="errorMessage",n=new fe.Name("emUsed"),s={required:"missingProperty",dependencies:"property",dependentRequired:"property"},i=/\$\{[^}]+\}/,a=/\$\{([^}]+)\}/g,o=/^""\s*\+\s*|\s*\+\s*""$/g;function l(d){return{keyword:r,schemaType:["string","object"],post:!0,code(h){const{gen:u,data:m,schema:p,schemaValue:y,it:b}=h;if(b.createErrors===!1)return;const k=p,T=g.strConcat(ee.default.instancePath,b.errorPath);function $(R,j){return g.and(fe._`${R}.keyword !== ${r}`,fe._`!${R}.${n}`,fe._`${R}.instancePath === ${T}`,fe._`${R}.keyword in ${j}`,fe._`${R}.schemaPath.indexOf(${b.errSchemaPath}) === 0`,fe._`/^\\/[^\\/]*$/.test(${R}.schemaPath.slice(${b.errSchemaPath.length}))`)}function x(R,j){const E=[];for(const P in R){const I=j[P];i.test(I)&&E.push([P,z(I)])}return u.object(...E)}function w(R){return i.test(R)?new we._Code(we.safeStringify(R).replace(a,(j,E)=>`" + JSON.stringify(${kn.getData(E,b)}) + "`).replace(o,"")):fe.stringify(R)}function z(R){return fe._`function(){return ${w(R)}}`}u.if(fe._`${ee.default.errors} > 0`,()=>{if(typeof k=="object"){const[j,E]=function(P){let I,M;for(const V in P){if(V==="properties"||V==="items")continue;const G=P[V];if(typeof G=="object"){I||(I={});const K=I[V]={};for(const J in G)K[J]=[]}else M||(M={}),M[V]=[]}return[I,M]}(k);E&&function(P){const I=u.const("emErrors",fe.stringify(P)),M=u.const("templates",x(P,p));u.forOf("err",ee.default.vErrors,J=>u.if($(J,I),()=>u.code(fe._`${I}[${J}.keyword].push(${J})`).assign(fe._`${J}.${n}`,!0)));const{singleError:V}=d;if(V){const J=u.let("message",fe._`""`),te=u.let("paramsErrors",fe._`[]`);G(ne=>{u.if(J,()=>u.code(fe._`${J} += ${typeof V=="string"?V:";"}`)),u.code(fe._`${J} += ${K(ne)}`),u.assign(te,fe._`${te}.concat(${I}[${ne}])`)}),jt.reportError(h,{message:J,params:fe._`{errors: ${te}}`})}else G(J=>jt.reportError(h,{message:K(J),params:fe._`{errors: ${I}[${J}]}`}));function G(J){u.forIn("key",I,te=>u.if(fe._`${I}[${te}].length`,()=>J(te)))}function K(J){return fe._`${J} in ${M} ? ${M}[${J}]() : ${y}[${J}]`}}(E),j&&function(P){const I=u.const("emErrors",fe.stringify(P)),M=[];for(const te in P)M.push([te,x(P[te],p[te])]);const V=u.const("templates",u.object(...M)),G=u.scopeValue("obj",{ref:s,code:fe.stringify(s)}),K=u.let("emPropParams"),J=u.let("emParamsErrors");u.forOf("err",ee.default.vErrors,te=>u.if($(te,I),()=>{u.assign(K,fe._`${G}[${te}.keyword]`),u.assign(J,fe._`${I}[${te}.keyword][${te}.params[${K}]]`),u.if(J,()=>u.code(fe._`${J}.push(${te})`).assign(fe._`${te}.${n}`,!0))})),u.forIn("key",I,te=>u.forIn("keyProp",fe._`${I}[${te}]`,ne=>{u.assign(J,fe._`${I}[${te}][${ne}]`),u.if(fe._`${J}.length`,()=>{const D=u.const("tmpl",fe._`${V}[${te}] && ${V}[${te}][${ne}]`);jt.reportError(h,{message:fe._`${D} ? ${D}() : ${y}[${te}][${ne}]`,params:fe._`{errors: ${J}}`})})}))}(j),function(P){const{props:I,items:M}=P;if(!I&&!M)return;const V=fe._`typeof ${m} == "object"`,G=fe._`Array.isArray(${m})`,K=u.let("emErrors");let J,te;const ne=u.let("templates");function D(_,L){u.assign(K,fe.stringify(_)),u.assign(ne,x(_,L))}I&&M?(J=u.let("emChildKwd"),u.if(V),u.if(G,()=>{D(M,p.items),u.assign(J,fe.str`items`)},()=>{D(I,p.properties),u.assign(J,fe.str`properties`)}),te=fe._`[${J}]`):M?(u.if(G),D(M,p.items),te=fe._`.items`):I&&(u.if(g.and(V,g.not(G))),D(I,p.properties),te=fe._`.properties`),u.forOf("err",ee.default.vErrors,_=>function(L,q,Z){u.if(g.and(fe._`${L}.keyword !== ${r}`,fe._`!${L}.${n}`,fe._`${L}.instancePath.indexOf(${T}) === 0`),()=>{const Q=u.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:fe._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),le=u.const("emMatches",fe._`${Q}.exec(${L}.instancePath.slice(${T}.length))`),U=u.const("emChild",fe._`${le} && ${le}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);u.if(fe._`${U} !== undefined && ${U} in ${q}`,()=>Z(U))})}(_,K,L=>u.code(fe._`${K}[${L}].push(${_})`).assign(fe._`${_}.${n}`,!0))),u.forIn("key",K,_=>u.if(fe._`${K}[${_}].length`,()=>{jt.reportError(h,{message:fe._`${_} in ${ne} ? ${ne}[${_}]() : ${y}${te}[${_}]`,params:fe._`{errors: ${K}[${_}]}`}),u.assign(fe._`${ee.default.vErrors}[${ee.default.errors}-1].instancePath`,fe._`${T} + "/" + ${_}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),u.endIf()}(function({properties:P,items:I}){const M={};if(P){M.props={};for(const V in P)M.props[V]=[]}if(I){M.items={};for(let V=0;V<I.length;V++)M.items[V]=[]}return M}(k))}const R=typeof k=="string"?k:k._;R&&function(j){const E=u.const("emErrs",fe._`[]`);u.forOf("err",ee.default.vErrors,P=>u.if(function(I){return g.and(fe._`${I}.keyword !== ${r}`,fe._`!${I}.${n}`,g.or(fe._`${I}.instancePath === ${T}`,g.and(fe._`${I}.instancePath.indexOf(${T}) === 0`,fe._`${I}.instancePath[${T}.length] === "/"`)),fe._`${I}.schemaPath.indexOf(${b.errSchemaPath}) === 0`,fe._`${I}.schemaPath[${b.errSchemaPath}.length] === "/"`)}(P),()=>u.code(fe._`${E}.push(${P})`).assign(fe._`${P}.${n}`,!0))),u.if(fe._`${E}.length`,()=>jt.reportError(h,{message:w(j),params:fe._`{errors: ${E}}`}))}(R),d.keepErrors||function(){const j=u.const("emErrs",fe._`[]`);u.forOf("err",ee.default.vErrors,E=>u.if(fe._`!${E}.${n}`,()=>u.code(fe._`${j}.push(${E})`))),u.assign(ee.default.vErrors,j).assign(ee.default.errors,fe._`${j}.length`)}()})},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const c=(d,h={})=>{if(!d.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(d.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return d.addKeyword(l(h))};e.default=c,t.exports=c,t.exports.default=c})),dy=function(t,e){return t.forEach(function(r){r.keyword==="required"&&(r.instancePath+="/"+r.params.missingProperty)}),t.reduce(function(r,n){var s=n.instancePath.substring(1).replace(/\//g,".");if(r[s]||(r[s]={message:n.message,type:n.keyword}),e){var i=r[s].types,a=i&&i[n.keyword];r[s]=Tc(s,e,r,n.keyword,a?[].concat(a,n.message||""):n.message)}return r},{})},fy=function(t,e,r){return r===void 0&&(r={}),function(n,s,i){try{var a,o=new cy(qc({allErrors:!0,validateSchema:!0},e));uy(o);var l=o.compile(Object.assign({$async:((a=r)==null?void 0:a.mode)==="async"},t));return l(n)?(i.shouldUseNativeValidation&&Wc({},i),Promise.resolve({values:n,errors:{}})):Promise.resolve({values:{},errors:Sg(dy(l.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)})}catch(c){return Promise.reject(c)}}};function hy(t){const{schema:e,defaultValue:r,disableBody:n,disablePadding:s}=t,i=hg({defaultValues:r??{},resolver:e?fy(e,{strict:!1,addFormats:!0}):void 0}),[a]=pt(),{handleSubmit:o,setError:l}=i,[c,d]=S.useState(null),h=Ft("md"),[u]=S.useContext(Mr),m=t.isVertical?!1:u.formLayout==="horizontal",y=(t.singleColumn?!1:u.formColumns==="multiple")?1600:m?960:800;let b=f.jsx(tg,{...i,children:f.jsxs(v.Form,{onSubmit:o(async k=>{d(null);try{await t.onSubmit(k,T=>d(new Error(T)),l)}catch(T){T instanceof Error?d(T):d(new Error("Unknown error"))}}),isHorizontal:m,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:t.disableScrolling?void 0:"hidden",gap:0},children:[t.disableScrolling?f.jsx("div",{style:{maxWidth:y,padding:s?void 0:24},children:f.jsx(Hi,{isVertical:t.isVertical,singleColumn:t.singleColumn,children:t.children})}):f.jsx("div",{style:{height:"100%",flexGrow:1,overflow:"auto"},children:f.jsx("div",{style:{maxWidth:y,padding:s?void 0:24},children:f.jsx(Hi,{isVertical:t.isVertical,singleColumn:t.singleColumn,children:t.children})})}),c&&f.jsx(v.Alert,{variant:"danger",title:c.message??"",isInline:!0,style:{paddingLeft:h&&t.onCancel?190:void 0},isExpandable:"description"in c?typeof c.description=="string":!1,children:"description"in c&&typeof c.description=="string"&&c.description}),t.onCancel?f.jsx("div",{className:"dark-2 border-top",style:{padding:s?void 0:24},children:f.jsxs(v.ActionGroup,{style:{marginTop:0},children:[f.jsx(Gi,{children:t.submitText}),t.onCancel&&f.jsx(iu,{onCancel:t.onCancel,children:t.cancelText??a.cancelText})]})}):f.jsx(Gi,{style:{marginTop:48},children:t.submitText})]})});return n||(b=f.jsx(Ws,{children:b})),b}function Hi(t){const[e]=S.useContext(Mr),r=t.isVertical?!1:e.formLayout==="horizontal",n=t.singleColumn?!1:e.formColumns==="multiple",s=12,i=n?r?12:6:12,a=n?6:12,o=n?6:12,l=n?4:12;return f.jsx(f.Fragment,{children:f.jsx(v.Grid,{hasGutter:!0,span:12,sm:s,md:i,lg:a,xl:o,xl2:l,children:t.children})})}function Gi(t){const{isSubmitting:e,errors:r}=Ec(),n=r&&Object.keys(r).length>0;return f.jsx(v.Tooltip,{content:"Please fix errors",trigger:n?void 0:"manual",children:f.jsx(v.Button,{type:"submit",isDisabled:e,isLoading:e,isDanger:n,variant:n?"secondary":void 0,style:t.style,children:t.children})})}function iu(t){return f.jsx(v.Button,{type:"button",variant:"link",onClick:t.onCancel,children:t.children})}const Uy="";function my(t){return f.jsx(Ja,{children:f.jsx(eo,{children:f.jsx(Qa,{children:f.jsx(Ga,{children:f.jsx(xm,{callback:t.navigate,children:t.children})})})})})}function py(t){const e=Dl();return t.breadcrumbs?f.jsx(v.Breadcrumb,{style:t.style,children:t.breadcrumbs.map((r,n)=>r.label?f.jsx(v.BreadcrumbItem,{id:r.id,component:r.component,isActive:r.to===void 0,children:r.to?f.jsx("a",{href:r.to,onClick:s=>{s.preventDefault(),e(r.to)},children:r.label}):r.label},r.id??r.label??n):f.jsx(S.Fragment,{},n))}):f.jsx(S.Fragment,{})}function gy(t){const{navigation:e,breadcrumbs:r,title:n,description:s,controls:i,headerActions:a,footer:o}=t,l=Ft("lg"),c=Ft("xl"),d=Ft("md"),[h]=pt();return f.jsxs(f.Fragment,{children:[e&&f.jsx(v.PageSection,{variant:v.PageSectionVariants.light,className:"border-top dark-1",style:{paddingLeft:0,paddingTop:0,paddingBottom:0},children:f.jsx(v.Flex,{direction:{default:"row"},flexWrap:{default:"nowrap"},style:{maxWidth:"100%"},children:f.jsx(v.PageNavigation,{style:{paddingTop:0,flexShrink:1,flexGrow:1},children:e})})}),f.jsx(v.PageSection,{variant:v.PageSectionVariants.light,className:"border-top border-bottom dark-3",style:{paddingTop:c?16:12,paddingBottom:c?16:12},children:f.jsxs(v.Stack,{hasGutter:!0,children:[f.jsxs(v.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[f.jsxs(v.FlexItem,{grow:{default:"grow"},children:[r&&f.jsx(py,{breadcrumbs:r,style:{paddingBottom:l?6:4}}),n?t.titleHelp?f.jsx(v.Popover,{headerContent:t.titleHelpTitle,bodyContent:f.jsxs(v.Stack,{hasGutter:!0,children:[typeof t.titleHelp=="string"?f.jsx(v.StackItem,{children:t.titleHelp}):t.titleHelp.map((u,m)=>f.jsx(v.StackItem,{children:u},m)),t.titleDocLink&&f.jsx(v.StackItem,{children:f.jsx(v.Button,{icon:f.jsx(Ve.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(t.titleDocLink,"_blank"),isInline:!0,children:h.documentation})})]}),position:"bottom-start",removeFindDomNode:!0,children:f.jsxs(v.Title,{headingLevel:"h1",children:[n,f.jsx(v.Button,{variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"},children:f.jsx(Ve.OutlinedQuestionCircleIcon,{})})]})}):f.jsx(v.Title,{headingLevel:"h1",children:n}):f.jsx(v.Title,{headingLevel:"h1",children:f.jsx(v.Skeleton,{width:"160px"})}),d&&s&&f.jsx(v.Text,{component:"p",style:{paddingTop:c?4:2,opacity:.8},children:typeof s=="string"?f.jsx(v.Truncate,{content:s}):f.jsx(v.Stack,{children:s.map(u=>f.jsx(v.StackItem,{children:u},u))})})]}),n&&(a||i)&&f.jsxs(v.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[i&&f.jsx(v.FlexItem,{grow:{default:"grow"},children:i}),a&&f.jsx(v.FlexItem,{children:a})]})]}),o]})})]})}function yy(t){const[e]=pt();return f.jsx(Ya,{message:e.errorText,children:f.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:t.children})})}function au(t){const{loading:e}=t,[r,n]=S.useState(0),s=S.useCallback((l,c)=>n(c),[n]),i=S.Children.toArray(t.children),a=i.map((l,c)=>{if(S.isValidElement(l)&&l.type===Yi){const d=l.props.label;return f.jsx(v.Tab,{title:d||f.jsx(v.Skeleton,{width:"60px"}),eventKey:c},d??c)}return l}),o=i[r];return e?f.jsx(au,{children:f.jsx(Yi,{children:f.jsx(v.PageSection,{variant:"light",children:f.jsx(v.Skeleton,{})})})}):f.jsxs(f.Fragment,{children:[f.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,className:"border-bottom",children:f.jsxs(v.Flex,{spaceItems:{default:"spaceItemsNone"},children:[t.preComponents&&f.jsxs(f.Fragment,{children:[f.jsx(v.FlexItem,{children:t.preComponents}),f.jsx(v.Divider,{orientation:{default:"vertical"},component:"div"})]}),f.jsx(v.FlexItem,{grow:{default:"grow"},children:f.jsx(v.Tabs,{activeKey:r,onSelect:s,inset:t.preComponents?void 0:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm",["2xl"]:"insetSm"},hasBorderBottom:!1,children:a})}),t.postComponents&&f.jsxs(f.Fragment,{children:[f.jsx(v.Divider,{orientation:{default:"vertical"}}),f.jsx(v.FlexItem,{style:{paddingRight:16},children:t.postComponents})]})]})}),o]})}function Yi(t){return f.jsx(f.Fragment,{children:t.children})}function vy(t){const{activeKey:e,setActiveKey:r}=t,n=S.useCallback((s,i)=>r(i),[r]);return f.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,style:{flexGrow:1},children:f.jsx(v.Tabs,{activeKey:e,onSelect:n,inset:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm",["2xl"]:"insetSm"},children:t.children})})}const by=nf`
160
+ deps: ${o}}`};const r={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(i){const[a,o]=function({schema:l}){const c={},d={};for(const h in l)h!=="__proto__"&&((Array.isArray(l[h])?c:d)[h]=l[h]);return[c,d]}(i);n(i,a),s(i,o)}};function n(i,a=i.schema){const{gen:o,data:l,it:c}=i;if(Object.keys(a).length===0)return;const d=o.let("missing");for(const h in a){const u=a[h];if(u.length===0)continue;const m=(0,rt.propertyInData)(o,l,h,c.opts.ownProperties);i.setParams({property:h,depsCount:u.length,deps:u.join(", ")}),c.allErrors?o.if(m,()=>{for(const p of u)(0,rt.checkReportMissingProp)(i,p)}):(o.if(g._`${m} && (${(0,rt.checkMissingProp)(i,u,d)})`),(0,rt.reportMissingProp)(i,d),o.else())}}function s(i,a=i.schema){const{gen:o,data:l,keyword:c,it:d}=i,h=o.name("valid");for(const u in a)(0,pe.alwaysValidSchema)(d,a[u])||(o.if((0,rt.propertyInData)(o,l,u,d.opts.ownProperties),()=>{const m=i.subschema({keyword:c,schemaProp:u},h);i.mergeValidEvaluated(m,h)},()=>o.var(h,!0)),i.ok(h))}e.validatePropertyDeps=n,e.validateSchemaDeps=s,e.default=r}),Zg=Object.defineProperty({default:{keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:t})=>g._`{propertyName: ${t.propertyName}}`},code(t){const{gen:e,schema:r,data:n,it:s}=t;if((0,pe.alwaysValidSchema)(s,r))return;const i=e.name("valid");e.forIn("key",n,a=>{t.setParams({propertyName:a}),t.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},i),e.if((0,g.not)(i),()=>{t.error(!0),s.allErrors||e.break()})}),t.ok(i)}}},"__esModule",{value:!0}),Wi=Object.defineProperty({default:{keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:t})=>g._`{additionalProperty: ${t.additionalProperty}}`},code(t){const{gen:e,schema:r,parentSchema:n,data:s,errsCount:i,it:a}=t;if(!i)throw new Error("ajv implementation error");const{allErrors:o,opts:l}=a;if(a.props=!0,l.removeAdditional!=="all"&&(0,pe.alwaysValidSchema)(a,r))return;const c=(0,rt.allSchemaProperties)(n.properties),d=(0,rt.allSchemaProperties)(n.patternProperties);function h(p){e.code(g._`delete ${s}[${p}]`)}function u(p){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1)h(p);else{if(r===!1)return t.setParams({additionalProperty:p}),t.error(),void(o||e.break());if(typeof r=="object"&&!(0,pe.alwaysValidSchema)(a,r)){const y=e.name("valid");l.removeAdditional==="failing"?(m(p,y,!1),e.if((0,g.not)(y),()=>{t.reset(),h(p)})):(m(p,y),o||e.if((0,g.not)(y),()=>e.break()))}}}function m(p,y,b){const k={keyword:"additionalProperties",dataProp:p,dataPropType:pe.Type.Str};b===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(k,y)}e.forIn("key",s,p=>{c.length||d.length?e.if(function(y){let b;if(c.length>8){const k=(0,pe.schemaRefOrVal)(a,n.properties,"properties");b=(0,rt.isOwnProperty)(e,k,y)}else b=c.length?(0,g.or)(...c.map(k=>g._`${y} === ${k}`)):g.nil;return d.length&&(b=(0,g.or)(b,...d.map(k=>g._`${(0,rt.usePattern)(t,k)}.test(${y})`))),(0,g.not)(b)}(p),()=>u(p)):u(p)}),t.ok(g._`${i} === ${ee.default.errors}`)}}},"__esModule",{value:!0}),Kg=Object.defineProperty({default:{keyword:"properties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,parentSchema:n,data:s,it:i}=t;i.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&Wi.default.code(new kn.KeywordCxt(i,Wi.default,"additionalProperties"));const a=(0,rt.allSchemaProperties)(r);for(const h of a)i.definedProperties.add(h);i.opts.unevaluated&&a.length&&i.props!==!0&&(i.props=pe.mergeEvaluated.props(e,(0,pe.toHash)(a),i.props));const o=a.filter(h=>!(0,pe.alwaysValidSchema)(i,r[h]));if(o.length===0)return;const l=e.name("valid");for(const h of o)c(h)?d(h):(e.if((0,rt.propertyInData)(e,s,h,i.opts.ownProperties)),d(h),i.allErrors||e.else().var(l,!0),e.endIf()),t.it.definedProperties.add(h),t.ok(l);function c(h){return i.opts.useDefaults&&!i.compositeRule&&r[h].default!==void 0}function d(h){t.subschema({keyword:"properties",schemaProp:h,dataProp:h},l)}}}},"__esModule",{value:!0});const tu=pe;var Jg=Object.defineProperty({default:{keyword:"patternProperties",type:"object",schemaType:"object",code(t){const{gen:e,schema:r,data:n,parentSchema:s,it:i}=t,{opts:a}=i,o=(0,rt.allSchemaProperties)(r),l=o.filter(p=>(0,pe.alwaysValidSchema)(i,r[p]));if(o.length===0||l.length===o.length&&(!i.opts.unevaluated||i.props===!0))return;const c=a.strictSchema&&!a.allowMatchingProperties&&s.properties,d=e.name("valid");i.props===!0||i.props instanceof g.Name||(i.props=(0,tu.evaluatedPropsToName)(e,i.props));const{props:h}=i;function u(p){for(const y in c)new RegExp(p).test(y)&&(0,pe.checkStrictMode)(i,`property ${y} matches pattern ${p} (use allowMatchingProperties)`)}function m(p){e.forIn("key",n,y=>{e.if(g._`${(0,rt.usePattern)(t,p)}.test(${y})`,()=>{const b=l.includes(p);b||t.subschema({keyword:"patternProperties",schemaProp:p,dataProp:y,dataPropType:tu.Type.Str},d),i.opts.unevaluated&&h!==!0?e.assign(g._`${h}[${y}]`,!0):b||i.allErrors||e.if((0,g.not)(d),()=>e.break())})})}(function(){for(const p of o)c&&u(p),i.allErrors?m(p):(e.var(d,!0),m(p),e.if(d))})()}}},"__esModule",{value:!0}),Xg=Object.defineProperty({default:{keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){const{gen:e,schema:r,it:n}=t;if((0,pe.alwaysValidSchema)(n,r))return void t.fail();const s=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),t.failResult(s,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}}},"__esModule",{value:!0}),Qg=Object.defineProperty({default:{keyword:"anyOf",schemaType:"array",trackErrors:!0,code:rt.validateUnion,error:{message:"must match a schema in anyOf"}}},"__esModule",{value:!0}),ey=Object.defineProperty({default:{keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:t})=>g._`{passingSchemas: ${t.passing}}`},code(t){const{gen:e,schema:r,parentSchema:n,it:s}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(s.opts.discriminator&&n.discriminator)return;const i=r,a=e.let("valid",!1),o=e.let("passing",null),l=e.name("_valid");t.setParams({passing:o}),e.block(function(){i.forEach((c,d)=>{let h;(0,pe.alwaysValidSchema)(s,c)?e.var(l,!0):h=t.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},l),d>0&&e.if(g._`${l} && ${a}`).assign(a,!1).assign(o,g._`[${o}, ${d}]`).else(),e.if(l,()=>{e.assign(a,!0),e.assign(o,d),h&&t.mergeEvaluated(h,g.Name)})})}),t.result(a,()=>t.reset(),()=>t.error(!0))}}},"__esModule",{value:!0}),ty=Object.defineProperty({default:{keyword:"allOf",schemaType:"array",code(t){const{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");const s=e.name("valid");r.forEach((i,a)=>{if((0,pe.alwaysValidSchema)(n,i))return;const o=t.subschema({keyword:"allOf",schemaProp:a},s);t.ok(s),t.mergeEvaluated(o)})}}},"__esModule",{value:!0});function ru(t,e){const r=t.schema[e];return r!==void 0&&!(0,pe.alwaysValidSchema)(t,r)}var ry=Object.defineProperty({default:{keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:t})=>g.str`must match "${t.ifClause}" schema`,params:({params:t})=>g._`{failingKeyword: ${t.ifClause}}`},code(t){const{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,pe.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const s=ru(n,"then"),i=ru(n,"else");if(!s&&!i)return;const a=e.let("valid",!0),o=e.name("_valid");if(function(){const c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},o);t.mergeEvaluated(c)}(),t.reset(),s&&i){const c=e.let("ifClause");t.setParams({ifClause:c}),e.if(o,l("then",c),l("else",c))}else s?e.if(o,l("then")):e.if((0,g.not)(o),l("else"));function l(c,d){return()=>{const h=t.subschema({keyword:c},o);e.assign(a,o),t.mergeValidEvaluated(h,a),d?e.assign(d,g._`${c}`):t.setParams({ifClause:c})}}t.pass(a,()=>t.error(!0))}}},"__esModule",{value:!0}),ny=Object.defineProperty({default:{keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,pe.checkStrictMode)(r,`"${t}" without "if" is ignored`)}}},"__esModule",{value:!0}),sy=Object.defineProperty({default:function(t=!1){const e=[Xg.default,Qg.default,ey.default,ty.default,ry.default,ny.default,Zg.default,Wi.default,Yg.default,Kg.default,Jg.default];return t?e.push(qg.default,Hg.default):e.push(Qc.default,eu.default),e.push(Gg.default),e}},"__esModule",{value:!0}),iy=Object.defineProperty({default:[Object.defineProperty({default:{keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:t})=>g.str`must match format "${t}"`,params:({schemaCode:t})=>g._`{format: ${t}}`},code(t,e){const{gen:r,data:n,$data:s,schema:i,schemaCode:a,it:o}=t,{opts:l,errSchemaPath:c,schemaEnv:d,self:h}=o;l.validateFormats&&(s?function(){const u=r.scopeValue("formats",{ref:h.formats,code:l.code.formats}),m=r.const("fDef",g._`${u}[${a}]`),p=r.let("fType"),y=r.let("format");r.if(g._`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>r.assign(p,g._`${m}.type || "string"`).assign(y,g._`${m}.validate`),()=>r.assign(p,g._`"string"`).assign(y,m)),t.fail$data((0,g.or)(l.strictSchema===!1?g.nil:g._`${a} && !${y}`,function(){const b=d.$async?g._`(${m}.async ? await ${y}(${n}) : ${y}(${n}))`:g._`${y}(${n})`,k=g._`(typeof ${y} == "function" ? ${b} : ${y}.test(${n}))`;return g._`${y} && ${y} !== true && ${p} === ${e} && !${k}`}()))}():function(){const u=h.formats[i];if(!u)return void function(){if(l.strictSchema!==!1)throw new Error(b());function b(){return`unknown format "${i}" ignored in schema at path "${c}"`}h.logger.warn(b())}();if(u===!0)return;const[m,p,y]=function(b){const k=b instanceof RegExp?(0,g.regexpCode)(b):l.code.formats?g._`${l.code.formats}${(0,g.getProperty)(i)}`:void 0,T=r.scopeValue("formats",{key:i,ref:b,code:k});return typeof b!="object"||b instanceof RegExp?["string",b,T]:[b.type||"string",b.validate,g._`${T}.validate`]}(u);m===e&&t.pass(function(){if(typeof u=="object"&&!(u instanceof RegExp)&&u.async){if(!d.$async)throw new Error("async format in sync schema");return g._`await ${y}(${n})`}return typeof p=="function"?g._`${y}(${n})`:g._`${y}.test(${n})`}())}())}}},"__esModule",{value:!0}).default]},"__esModule",{value:!0}),nu=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],e.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});const ay=[Ng.default,Wg.default,(0,sy.default)(),iy.default,nu.metadataVocabulary,nu.contentVocabulary];var oy=Object.defineProperty({default:ay},"__esModule",{value:!0}),qi=Xe(function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(r=e.DiscrError||(e.DiscrError={})).Tag="tag",r.Mapping="mapping"}),ly=Object.defineProperty({default:{keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:t,tagName:e}})=>t===qi.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>g._`{error: ${t}, tag: ${r}, tagValue: ${e}}`},code(t){const{gen:e,data:r,schema:n,parentSchema:s,it:i}=t,{oneOf:a}=s;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");const o=n.propertyName;if(typeof o!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");const l=e.let("valid",!1),c=e.const("tag",g._`${r}${(0,g.getProperty)(o)}`);function d(h){const u=e.name("valid"),m=t.subschema({keyword:"oneOf",schemaProp:h},u);return t.mergeEvaluated(m,g.Name),u}e.if(g._`typeof ${c} == "string"`,()=>function(){const h=function(){var u;const m={},p=b(s);let y=!0;for(let $=0;$<a.length;$++){let x=a[$];x!=null&&x.$ref&&!(0,pe.schemaHasRulesButRef)(x,i.self.RULES)&&(x=tr.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,x==null?void 0:x.$ref),x instanceof tr.SchemaEnv&&(x=x.schema));const w=(u=x==null?void 0:x.properties)===null||u===void 0?void 0:u[o];if(typeof w!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${o}"`);y=y&&(p||b(x)),k(w,$)}if(!y)throw new Error(`discriminator: "${o}" must be required`);return m;function b({required:$}){return Array.isArray($)&&$.includes(o)}function k($,x){if($.const)T($.const,x);else{if(!$.enum)throw new Error(`discriminator: "properties/${o}" must have "const" or "enum"`);for(const w of $.enum)T(w,x)}}function T($,x){if(typeof $!="string"||$ in m)throw new Error(`discriminator: "${o}" values must be unique strings`);m[$]=x}}();e.if(!1);for(const u in h)e.elseIf(g._`${c} === ${u}`),e.assign(l,d(h[u]));e.else(),t.error(!1,{discrError:qi.DiscrError.Mapping,tag:c,tagName:o}),e.endIf()}(),()=>t.error(!1,{discrError:qi.DiscrError.Tag,tag:c,tagName:o})),t.ok(l)}}},"__esModule",{value:!0}),su={$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},fe=Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const r=["/properties"],n="http://json-schema.org/draft-07/schema";class s extends Og.default{_addVocabularies(){super._addVocabularies(),oy.default.forEach(a=>this.addVocabulary(a)),this.opts.discriminator&&this.addKeyword(ly.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const a=this.opts.$data?this.$dataMetaSchema(su,r):su;this.addMetaSchema(a,n,!1),this.refs["http://json-schema.org/schema"]=n}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(n)?n:void 0)}}t.exports=e=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s,Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return kn.KeywordCxt}}),Object.defineProperty(e,"_",{enumerable:!0,get:function(){return g._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return g.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return g.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return g.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return g.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return g.CodeGen}})}),cy=Hc(fe),uy=Hc(Xe(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const r="errorMessage",n=new fe.Name("emUsed"),s={required:"missingProperty",dependencies:"property",dependentRequired:"property"},i=/\$\{[^}]+\}/,a=/\$\{([^}]+)\}/g,o=/^""\s*\+\s*|\s*\+\s*""$/g;function l(d){return{keyword:r,schemaType:["string","object"],post:!0,code(h){const{gen:u,data:m,schema:p,schemaValue:y,it:b}=h;if(b.createErrors===!1)return;const k=p,T=g.strConcat(ee.default.instancePath,b.errorPath);function $(R,j){return g.and(fe._`${R}.keyword !== ${r}`,fe._`!${R}.${n}`,fe._`${R}.instancePath === ${T}`,fe._`${R}.keyword in ${j}`,fe._`${R}.schemaPath.indexOf(${b.errSchemaPath}) === 0`,fe._`/^\\/[^\\/]*$/.test(${R}.schemaPath.slice(${b.errSchemaPath.length}))`)}function x(R,j){const E=[];for(const P in R){const I=j[P];i.test(I)&&E.push([P,z(I)])}return u.object(...E)}function w(R){return i.test(R)?new we._Code(we.safeStringify(R).replace(a,(j,E)=>`" + JSON.stringify(${kn.getData(E,b)}) + "`).replace(o,"")):fe.stringify(R)}function z(R){return fe._`function(){return ${w(R)}}`}u.if(fe._`${ee.default.errors} > 0`,()=>{if(typeof k=="object"){const[j,E]=function(P){let I,M;for(const V in P){if(V==="properties"||V==="items")continue;const G=P[V];if(typeof G=="object"){I||(I={});const K=I[V]={};for(const J in G)K[J]=[]}else M||(M={}),M[V]=[]}return[I,M]}(k);E&&function(P){const I=u.const("emErrors",fe.stringify(P)),M=u.const("templates",x(P,p));u.forOf("err",ee.default.vErrors,J=>u.if($(J,I),()=>u.code(fe._`${I}[${J}.keyword].push(${J})`).assign(fe._`${J}.${n}`,!0)));const{singleError:V}=d;if(V){const J=u.let("message",fe._`""`),te=u.let("paramsErrors",fe._`[]`);G(ne=>{u.if(J,()=>u.code(fe._`${J} += ${typeof V=="string"?V:";"}`)),u.code(fe._`${J} += ${K(ne)}`),u.assign(te,fe._`${te}.concat(${I}[${ne}])`)}),jt.reportError(h,{message:J,params:fe._`{errors: ${te}}`})}else G(J=>jt.reportError(h,{message:K(J),params:fe._`{errors: ${I}[${J}]}`}));function G(J){u.forIn("key",I,te=>u.if(fe._`${I}[${te}].length`,()=>J(te)))}function K(J){return fe._`${J} in ${M} ? ${M}[${J}]() : ${y}[${J}]`}}(E),j&&function(P){const I=u.const("emErrors",fe.stringify(P)),M=[];for(const te in P)M.push([te,x(P[te],p[te])]);const V=u.const("templates",u.object(...M)),G=u.scopeValue("obj",{ref:s,code:fe.stringify(s)}),K=u.let("emPropParams"),J=u.let("emParamsErrors");u.forOf("err",ee.default.vErrors,te=>u.if($(te,I),()=>{u.assign(K,fe._`${G}[${te}.keyword]`),u.assign(J,fe._`${I}[${te}.keyword][${te}.params[${K}]]`),u.if(J,()=>u.code(fe._`${J}.push(${te})`).assign(fe._`${te}.${n}`,!0))})),u.forIn("key",I,te=>u.forIn("keyProp",fe._`${I}[${te}]`,ne=>{u.assign(J,fe._`${I}[${te}][${ne}]`),u.if(fe._`${J}.length`,()=>{const D=u.const("tmpl",fe._`${V}[${te}] && ${V}[${te}][${ne}]`);jt.reportError(h,{message:fe._`${D} ? ${D}() : ${y}[${te}][${ne}]`,params:fe._`{errors: ${J}}`})})}))}(j),function(P){const{props:I,items:M}=P;if(!I&&!M)return;const V=fe._`typeof ${m} == "object"`,G=fe._`Array.isArray(${m})`,K=u.let("emErrors");let J,te;const ne=u.let("templates");function D(_,L){u.assign(K,fe.stringify(_)),u.assign(ne,x(_,L))}I&&M?(J=u.let("emChildKwd"),u.if(V),u.if(G,()=>{D(M,p.items),u.assign(J,fe.str`items`)},()=>{D(I,p.properties),u.assign(J,fe.str`properties`)}),te=fe._`[${J}]`):M?(u.if(G),D(M,p.items),te=fe._`.items`):I&&(u.if(g.and(V,g.not(G))),D(I,p.properties),te=fe._`.properties`),u.forOf("err",ee.default.vErrors,_=>function(L,q,Z){u.if(g.and(fe._`${L}.keyword !== ${r}`,fe._`!${L}.${n}`,fe._`${L}.instancePath.indexOf(${T}) === 0`),()=>{const Q=u.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:fe._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),le=u.const("emMatches",fe._`${Q}.exec(${L}.instancePath.slice(${T}.length))`),U=u.const("emChild",fe._`${le} && ${le}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);u.if(fe._`${U} !== undefined && ${U} in ${q}`,()=>Z(U))})}(_,K,L=>u.code(fe._`${K}[${L}].push(${_})`).assign(fe._`${_}.${n}`,!0))),u.forIn("key",K,_=>u.if(fe._`${K}[${_}].length`,()=>{jt.reportError(h,{message:fe._`${_} in ${ne} ? ${ne}[${_}]() : ${y}${te}[${_}]`,params:fe._`{errors: ${K}[${_}]}`}),u.assign(fe._`${ee.default.vErrors}[${ee.default.errors}-1].instancePath`,fe._`${T} + "/" + ${_}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})),u.endIf()}(function({properties:P,items:I}){const M={};if(P){M.props={};for(const V in P)M.props[V]=[]}if(I){M.items={};for(let V=0;V<I.length;V++)M.items[V]=[]}return M}(k))}const R=typeof k=="string"?k:k._;R&&function(j){const E=u.const("emErrs",fe._`[]`);u.forOf("err",ee.default.vErrors,P=>u.if(function(I){return g.and(fe._`${I}.keyword !== ${r}`,fe._`!${I}.${n}`,g.or(fe._`${I}.instancePath === ${T}`,g.and(fe._`${I}.instancePath.indexOf(${T}) === 0`,fe._`${I}.instancePath[${T}.length] === "/"`)),fe._`${I}.schemaPath.indexOf(${b.errSchemaPath}) === 0`,fe._`${I}.schemaPath[${b.errSchemaPath}.length] === "/"`)}(P),()=>u.code(fe._`${E}.push(${P})`).assign(fe._`${P}.${n}`,!0))),u.if(fe._`${E}.length`,()=>jt.reportError(h,{message:w(j),params:fe._`{errors: ${E}}`}))}(R),d.keepErrors||function(){const j=u.const("emErrs",fe._`[]`);u.forOf("err",ee.default.vErrors,E=>u.if(fe._`!${E}.${n}`,()=>u.code(fe._`${j}.push(${E})`))),u.assign(ee.default.vErrors,j).assign(ee.default.errors,fe._`${j}.length`)}()})},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const c=(d,h={})=>{if(!d.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(d.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return d.addKeyword(l(h))};e.default=c,t.exports=c,t.exports.default=c})),dy=function(t,e){return t.forEach(function(r){r.keyword==="required"&&(r.instancePath+="/"+r.params.missingProperty)}),t.reduce(function(r,n){var s=n.instancePath.substring(1).replace(/\//g,".");if(r[s]||(r[s]={message:n.message,type:n.keyword}),e){var i=r[s].types,a=i&&i[n.keyword];r[s]=Tc(s,e,r,n.keyword,a?[].concat(a,n.message||""):n.message)}return r},{})},fy=function(t,e,r){return r===void 0&&(r={}),function(n,s,i){try{var a,o=new cy(qc({allErrors:!0,validateSchema:!0},e));uy(o);var l=o.compile(Object.assign({$async:((a=r)==null?void 0:a.mode)==="async"},t));return l(n)?(i.shouldUseNativeValidation&&Wc({},i),Promise.resolve({values:n,errors:{}})):Promise.resolve({values:{},errors:Sg(dy(l.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)})}catch(c){return Promise.reject(c)}}};function hy(t){const{schema:e,defaultValue:r,disableBody:n,disablePadding:s}=t,i=hg({defaultValues:r??{},resolver:e?fy(e,{strict:!1,addFormats:!0}):void 0}),[a]=pt(),{handleSubmit:o,setError:l}=i,[c,d]=S.useState(null),h=Ft("md"),[u]=S.useContext(Mr),m=t.isVertical?!1:u.formLayout==="horizontal",y=(t.singleColumn?!1:u.formColumns==="multiple")?1600:m?960:800;let b=f.jsx(tg,{...i,children:f.jsxs(v.Form,{onSubmit:o(async k=>{d(null);try{await t.onSubmit(k,T=>d(new Error(T)),l)}catch(T){T instanceof Error?d(T):d(new Error("Unknown error"))}}),isHorizontal:m,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:t.disableScrolling?void 0:"hidden",gap:0},children:[t.disableScrolling?f.jsx("div",{style:{maxWidth:y,padding:s?void 0:24},children:f.jsx(Hi,{isVertical:t.isVertical,singleColumn:t.singleColumn,children:t.children})}):f.jsx("div",{style:{height:"100%",flexGrow:1,overflow:"auto"},children:f.jsx("div",{style:{maxWidth:y,padding:s?void 0:24},children:f.jsx(Hi,{isVertical:t.isVertical,singleColumn:t.singleColumn,children:t.children})})}),c&&f.jsx(v.Alert,{variant:"danger",title:c.message??"",isInline:!0,style:{paddingLeft:h&&t.onCancel?190:void 0},isExpandable:"description"in c?typeof c.description=="string":!1,children:"description"in c&&typeof c.description=="string"&&c.description}),t.onCancel?f.jsx("div",{className:"dark-2 border-top",style:{padding:s?void 0:24},children:f.jsxs(v.ActionGroup,{style:{marginTop:0},children:[f.jsx(Gi,{children:t.submitText}),t.onCancel&&f.jsx(iu,{onCancel:t.onCancel,children:t.cancelText??a.cancelText})]})}):f.jsx(Gi,{style:{marginTop:48},children:t.submitText})]})});return n||(b=f.jsx(Ws,{children:b})),b}function Hi(t){const[e]=S.useContext(Mr),r=t.isVertical?!1:e.formLayout==="horizontal",n=t.singleColumn?!1:e.formColumns==="multiple",s=12,i=n?r?12:6:12,a=n?6:12,o=n?6:12,l=n?4:12;return f.jsx(f.Fragment,{children:f.jsx(v.Grid,{hasGutter:!0,span:12,sm:s,md:i,lg:a,xl:o,xl2:l,children:t.children})})}function Gi(t){const{isSubmitting:e,errors:r}=Ec(),n=r&&Object.keys(r).length>0;return f.jsx(v.Tooltip,{content:"Please fix errors",trigger:n?void 0:"manual",children:f.jsx(v.Button,{type:"submit",isDisabled:e,isLoading:e,isDanger:n,variant:n?"secondary":void 0,style:t.style,children:t.children})})}function iu(t){return f.jsx(v.Button,{type:"button",variant:"link",onClick:t.onCancel,children:t.children})}const Uy="";function my(t){return f.jsx(Ja,{children:f.jsx(eo,{children:f.jsx(Qa,{children:f.jsx(Ga,{children:f.jsx(xm,{callback:t.navigate,children:t.children})})})})})}function py(t){const e=Dl();return t.breadcrumbs?f.jsx(v.Breadcrumb,{style:t.style,children:t.breadcrumbs.map((r,n)=>r.label?f.jsx(v.BreadcrumbItem,{id:r.id,component:r.component,isActive:r.to===void 0,children:r.to?f.jsx("a",{href:r.to,onClick:s=>{s.preventDefault(),e(r.to)},children:r.label}):r.label},r.id??r.label??n):f.jsx(S.Fragment,{},n))}):f.jsx(S.Fragment,{})}function gy(t){const{navigation:e,breadcrumbs:r,title:n,description:s,controls:i,headerActions:a,footer:o}=t,l=Ft("lg"),c=Ft("xl"),d=Ft("md"),[h]=pt();return f.jsxs(f.Fragment,{children:[e&&f.jsx(v.PageSection,{variant:v.PageSectionVariants.light,className:"border-top dark-1",style:{paddingLeft:0,paddingTop:0,paddingBottom:0},children:f.jsx(v.Flex,{direction:{default:"row"},flexWrap:{default:"nowrap"},style:{maxWidth:"100%"},children:f.jsx(v.PageNavigation,{style:{paddingTop:0,flexShrink:1,flexGrow:1},children:e})})}),f.jsx(v.PageSection,{variant:v.PageSectionVariants.light,className:"border-top border-bottom dark-3",style:{paddingTop:c?16:12,paddingBottom:c?16:12},children:f.jsxs(v.Stack,{hasGutter:!0,children:[f.jsxs(v.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[f.jsxs(v.FlexItem,{grow:{default:"grow"},children:[r&&f.jsx(py,{breadcrumbs:r,style:{paddingBottom:l?6:4}}),n?t.titleHelp?f.jsx(v.Popover,{headerContent:t.titleHelpTitle,bodyContent:f.jsxs(v.Stack,{hasGutter:!0,children:[typeof t.titleHelp=="string"?f.jsx(v.StackItem,{children:t.titleHelp}):t.titleHelp.map((u,m)=>f.jsx(v.StackItem,{children:u},m)),t.titleDocLink&&f.jsx(v.StackItem,{children:f.jsx(v.Button,{icon:f.jsx(Ve.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(t.titleDocLink,"_blank"),isInline:!0,children:h.documentation})})]}),position:"bottom-start",removeFindDomNode:!0,children:f.jsxs(v.Title,{headingLevel:"h1",children:[n,f.jsx(v.Button,{variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"},children:f.jsx(Ve.OutlinedQuestionCircleIcon,{})})]})}):f.jsx(v.Title,{headingLevel:"h1",children:n}):f.jsx(v.Title,{headingLevel:"h1",children:f.jsx(v.Skeleton,{width:"160px"})}),d&&s&&f.jsx(v.Text,{component:"p",style:{paddingTop:c?4:2,opacity:.8},children:typeof s=="string"?f.jsx(v.Truncate,{content:s}):f.jsx(v.Stack,{children:s.map(u=>f.jsx(v.StackItem,{children:u},u))})})]}),n&&(a||i)&&f.jsxs(v.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[i&&f.jsx(v.FlexItem,{grow:{default:"grow"},children:i}),a&&f.jsx(v.FlexItem,{children:a})]})]}),o]})})]})}function yy(t){const[e]=pt();return f.jsx(Ya,{message:e.errorText,children:f.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:t.children})})}function au(t){const{loading:e}=t,[r,n]=S.useState((t==null?void 0:t.initialTabIndex)??0),s=S.useCallback((l,c)=>n(c),[n]),i=S.Children.toArray(t.children),a=i.map((l,c)=>{if(S.isValidElement(l)&&l.type===Yi){const d=l.props.label;return f.jsx(v.Tab,{title:d||f.jsx(v.Skeleton,{width:"60px"}),eventKey:c},d??c)}return l}),o=i[r];return e?f.jsx(au,{children:f.jsx(Yi,{children:f.jsx(v.PageSection,{variant:"light",children:f.jsx(v.Skeleton,{})})})}):f.jsxs(f.Fragment,{children:[f.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,className:"border-bottom",children:f.jsxs(v.Flex,{spaceItems:{default:"spaceItemsNone"},children:[t.preComponents&&f.jsxs(f.Fragment,{children:[f.jsx(v.FlexItem,{children:t.preComponents}),f.jsx(v.Divider,{orientation:{default:"vertical"},component:"div"})]}),f.jsx(v.FlexItem,{grow:{default:"grow"},children:f.jsx(v.Tabs,{activeKey:r,onSelect:s,inset:t.preComponents?void 0:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm",["2xl"]:"insetSm"},hasBorderBottom:!1,children:a})}),t.postComponents&&f.jsxs(f.Fragment,{children:[f.jsx(v.Divider,{orientation:{default:"vertical"}}),f.jsx(v.FlexItem,{style:{paddingRight:16},children:t.postComponents})]})]})}),o]})}function Yi(t){return f.jsx(f.Fragment,{children:t.children})}function vy(t){const{activeKey:e,setActiveKey:r}=t,n=S.useCallback((s,i)=>r(i),[r]);return f.jsx(v.PageSection,{type:v.PageSectionTypes.tabs,style:{flexGrow:1},children:f.jsx(v.Tabs,{activeKey:e,onSelect:n,inset:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm",["2xl"]:"insetSm"},children:t.children})})}const by=nf`
161
161
  from {
162
162
  transform: rotate(0);
163
163
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "A framework for building applications using PatternFly.",
4
- "version": "0.0.696",
4
+ "version": "0.0.697",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",