File: //proc/self/root/opt/netdata/netdata-web-files/v3/564.5cc0849283053bf421b5.chunk.js
/*! For license information please see 564.5cc0849283053bf421b5.chunk.js.LICENSE.txt */
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"add58d114229f0c7996ebd9e09ce63888b5394f2"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d0f325c6-2b58-4334-9dbf-a16b4ca53fab",e._sentryDebugIdIdentifier="sentry-dbid-d0f325c6-2b58-4334-9dbf-a16b4ca53fab")}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[564],{62514(e,t){"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case s:case i:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case u:case l:case d:case p:case m:case c:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=s,t.Lazy=p,t.Memo=m,t.Portal=o,t.Profiler=i,t.StrictMode=a,t.Suspense=f,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return g(e)===l},t.isContextProvider=function(e){return g(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return g(e)===d},t.isFragment=function(e){return g(e)===s},t.isLazy=function(e){return g(e)===p},t.isMemo=function(e){return g(e)===m},t.isPortal=function(e){return g(e)===o},t.isProfiler=function(e){return g(e)===i},t.isStrictMode=function(e){return g(e)===a},t.isSuspense=function(e){return g(e)===f},t.isSuspenseList=function(e){return g(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===s||e===i||e===a||e===f||e===h||e===y||"object"===typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=g},80782(e,t,r){"use strict";e.exports=r(62514)},79756(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=r(28132),o=r(26594),s=r(50575),a=r(37805),i=["/properties"],c="http://json-schema.org/draft-07/schema";class l extends n.default{_addVocabularies(){super._addVocabularies(),o.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=r(79888);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=r(56699);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var f=r(36024);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=r(39889);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})},37622(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=n;class o extends r{constructor(e){super(),this._items="string"===typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function s(e,...t){const r=[e[0]];let n=0;for(;n<t.length;)c(r,t[n]),r.push(e[++n]);return new o(r)}t._Code=o,t.nil=new o(""),t._=s;const a=new o("+");function i(e,...t){const r=[u(e[0])];let n=0;for(;n<t.length;)r.push(a),c(r,t[n]),r.push(a,u(e[++n]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new o(r)}function c(e,t){var r;t instanceof o?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof(r=t)||"boolean"==typeof r||null===r?r:u(Array.isArray(r)?r.join(","):r))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof n||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof n?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=i,t.addCodeArg=c,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},t.stringify=function(e){return new o(u(e))},t.safeStringify=u,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new o(`.${e}`):s`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new o(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new o(e.toString())}},56699(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=r(37622),o=r(23643);var s=r(37622);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return s.Name}});var a=r(23643);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class i{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends i{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const r=e?o.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=N(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class l extends i{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=N(this.rhs,e,t),this}get names(){return O(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class u extends l{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class f extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class h extends i{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class m extends i{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=N(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class p extends i{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(C(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>k(e,t.names)),{})}}class y extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends p{}class v extends y{}v.kind="else";class $ extends y{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof $?t:t.nodes:this.nodes.length?this:new $(I(e),t instanceof $?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=N(this.condition,e,t),this}get names(){const e=super.names;return O(e,this.condition),this.else&&k(e,this.else.names),e}}$.kind="if";class b extends y{}b.kind="for";class _ extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=N(this.iteration,e,t),this}get names(){return k(super.names,this.iteration.names)}}class w extends b{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?o.varKinds.var:this.varKind,{name:r,from:n,to:s}=this;return`for(${t} ${r}=${n}; ${r}<${s}; ${r}++)`+super.render(e)}get names(){const e=O(super.names,this.from);return O(e,this.to)}}class A extends b{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=N(this.iterable,e,t),this}get names(){return k(super.names,this.iterable.names)}}class S extends y{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}S.kind="func";class j extends p{render(e){return"return "+super.render(e)}}j.kind="return";class E extends y{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&k(e,this.catch.names),this.finally&&k(e,this.finally.names),e}}class P extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}P.kind="catch";class x extends y{render(e){return"finally"+super.render(e)}}x.kind="finally";function k(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function O(e,t){return t instanceof n._CodeOrName?k(e,t.names):e}function N(e,t,r){return e instanceof n.Name?s(e):(o=e)instanceof n._Code&&o._items.some((e=>e instanceof n.Name&&1===t[e.str]&&void 0!==r[e.str]))?new n._Code(e._items.reduce(((e,t)=>(t instanceof n.Name&&(t=s(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e)),[])):e;var o;function s(e){const n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function C(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function I(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:n._`!${F(e)}`}t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new o.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new c(e,o,r)),o}const(e,t,r){return this._def(o.varKinds.const,e,t,r)}let(e,t,r){return this._def(o.varKinds.let,e,t,r)}var(e,t,r){return this._def(o.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new l(e,t,r))}add(e,r){return this._leafNode(new u(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new m(e)),this}object(...e){const t=["{"];for(const[r,o]of e)t.length>1&&t.push(","),t.push(r),(r!==o||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,o));return t.push("}"),new n._Code(t)}if(e,t,r){if(this._blockNode(new $(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new $(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode($,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new _(e),t)}forRange(e,t,r,n,s=(this.opts.es5?o.varKinds.var:o.varKinds.let)){const a=this._scope.toName(e);return this._for(new w(s,a,t,r),(()=>n(a)))}forOf(e,t,r,s=o.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,n._`${e}.length`,(t=>{this.var(a,n._`${e}[${t}]`),r(a)}))}return this._for(new A("of",s,a,t),(()=>r(a)))}forIn(e,t,r,s=(this.opts.es5?o.varKinds.var:o.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,n._`Object.keys(${t})`,r);const a=this._scope.toName(e);return this._for(new A("in",s,a,t),(()=>r(a)))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new f(e))}return(e){const t=new j;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(j)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new E;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new P(e),t(e)}return r&&(this._currNode=n.finally=new x,this.code(r)),this._endBlockNode(P,x)}throw(e){return this._leafNode(new h(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,r,o){return this._blockNode(new S(e,t,r)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof $))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=I;const D=T(t.operators.AND);t.and=function(...e){return e.reduce(D)};const R=T(t.operators.OR);function T(e){return(t,r)=>t===n.nil?r:r===n.nil?t:n._`${F(t)} ${e} ${F(r)}`}function F(e){return e instanceof n.Name?e:n._`(${e})`}t.or=function(...e){return e.reduce(R)}},23643(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=r(37622);class o extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var s;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(s||(t.UsedValueState=s={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof n.Name?e:this.name(e)}name(e){return new n.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=a;class i extends n.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=n._`.${new n.Name(t)}[${r}]`}}t.ValueScopeName=i;const c=n._`\n`;t.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:n.nil}}get(){return this._scope}name(e){return new i(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,s=null!==(r=t.key)&&void 0!==r?r:t.ref;let a=this._values[o];if(a){const e=a.get(s);if(e)return e}else a=this._values[o]=new Map;a.set(s,n);const i=this._scope[o]||(this._scope[o]=[]),c=i.length;return i[c]=t.ref,n.setValue(t,{property:o,itemIndex:c}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return n._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,a={},i){let c=n.nil;for(const l in e){const u=e[l];if(!u)continue;const d=a[l]=a[l]||new Map;u.forEach((e=>{if(d.has(e))return;d.set(e,s.Started);let a=r(e);if(a){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=n._`${c}${r} ${e} = ${a};${this.opts._n}`}else{if(!(a=null===i||void 0===i?void 0:i(e)))throw new o(e);c=n._`${c}${a}${this.opts._n}`}d.set(e,s.Completed)}))}return c}}},40154(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const n=r(56699),o=r(19205),s=r(65373);function a(e,t){const r=e.const("err",t);e.if(n._`${s.default.vErrors} === null`,(()=>e.assign(s.default.vErrors,n._`[${r}]`)),n._`${s.default.vErrors}.push(${r})`),e.code(n._`${s.default.errors}++`)}function i(e,t){const{gen:r,validateName:o,schemaEnv:s}=e;s.$async?r.throw(n._`new ${e.ValidationError}(${t})`):(r.assign(n._`${o}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>n.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?n.str`"${e}" keyword must be ${t} ($data)`:n.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.keywordError,o,s){const{it:c}=e,{gen:u,compositeRule:d,allErrors:f}=c,h=l(e,r,o);(null!==s&&void 0!==s?s:d||f)?a(u,h):i(c,n._`[${h}]`)},t.reportExtraError=function(e,r=t.keywordError,n){const{it:o}=e,{gen:c,compositeRule:u,allErrors:d}=o;a(c,l(e,r,n)),u||d||i(o,s.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(s.default.errors,t),e.if(n._`${s.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(n._`${s.default.vErrors}.length`,t)),(()=>e.assign(s.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:o,errsCount:a,it:i}){if(void 0===a)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",a,s.default.errors,(a=>{e.const(c,n._`${s.default.vErrors}[${a}]`),e.if(n._`${c}.instancePath === undefined`,(()=>e.assign(n._`${c}.instancePath`,(0,n.strConcat)(s.default.instancePath,i.errorPath)))),e.assign(n._`${c}.schemaPath`,n.str`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign(n._`${c}.schema`,r),e.assign(n._`${c}.data`,o))}))};const c={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function l(e,t,r){const{createErrors:o}=e.it;return!1===o?n._`{}`:function(e,t,r={}){const{gen:o,it:a}=e,i=[u(a,r),d(e,r)];return function(e,{params:t,message:r},o){const{keyword:a,data:i,schemaValue:l,it:u}=e,{opts:d,propertyName:f,topSchemaRef:h,schemaPath:m}=u;o.push([c.keyword,a],[c.params,"function"==typeof t?t(e):t||n._`{}`]),d.messages&&o.push([c.message,"function"==typeof r?r(e):r]);d.verbose&&o.push([c.schema,l],[c.parentSchema,n._`${h}${m}`],[s.default.data,i]);f&&o.push([c.propertyName,f])}(e,t,i),o.object(...i)}(e,t,r)}function u({errorPath:e},{instancePath:t}){const r=t?n.str`${e}${(0,o.getErrorPath)(t,o.Type.Str)}`:e;return[s.default.instancePath,(0,n.strConcat)(s.default.instancePath,r)]}function d({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:s}){let a=s?t:n.str`${t}/${e}`;return r&&(a=n.str`${a}${(0,o.getErrorPath)(r,o.Type.Str)}`),[c.schemaPath,a]}},16245(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=r(56699),o=r(36024),s=r(65373),a=r(9737),i=r(19205),c=r(79888);class l{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,a.normalizeId)(null===r||void 0===r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null===r||void 0===r?void 0:r.$async,this.refs={}}}function u(e){const t=f.call(this,e);if(t)return t;const r=(0,a.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:i,lines:l}=this.opts.code,{ownProperties:u}=this.opts,d=new n.CodeGen(this.scope,{es5:i,lines:l,ownProperties:u});let h;e.$async&&(h=d.scopeValue("Error",{ref:o.default,code:n._`require("ajv/dist/runtime/validation_error").default`}));const m=d.scopeName("validate");e.validateName=m;const p={gen:d,allErrors:this.opts.allErrors,data:s.default.data,parentData:s.default.parentData,parentDataProperty:s.default.parentDataProperty,dataNames:[s.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:h,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:n._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e),(0,c.validateFunctionCode)(p),d.optimize(this.opts.code.optimize);const t=d.toString();y=`${d.scopeRefs(s.default.scope)}return ${t}`,this.opts.code.process&&(y=this.opts.code.process(y,e));const r=new Function(`${s.default.self}`,`${s.default.scope}`,y)(this,this.scope.get());if(this.scope.value(m,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:m,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=p;r.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},r.source&&(r.source.evaluated=(0,n.stringify)(r.evaluated))}return e.validate=r,e}catch(g){throw delete e.validate,delete e.validateName,y&&this.logger.error("Error compiling schema, function code:",y),g}finally{this._compilations.delete(e)}}function d(e){return(0,a.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function f(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function h(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||m.call(this,e,t)}function m(e,t){const r=this.opts.uriResolver.parse(t),n=(0,a._getFullPath)(this.opts.uriResolver,r);let o=(0,a.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return y.call(this,r,e);const s=(0,a.normalizeId)(n),i=this.refs[s]||this.schemas[s];if("string"==typeof i){const t=m.call(this,e,i);if("object"!==typeof(null===t||void 0===t?void 0:t.schema))return;return y.call(this,r,t)}if("object"===typeof(null===i||void 0===i?void 0:i.schema)){if(i.validate||u.call(this,i),s===(0,a.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,a.resolveUrl)(this.opts.uriResolver,o,n)),new l({schema:t,schemaId:r,root:e,baseId:o})}return y.call(this,r,i)}}t.SchemaEnv=l,t.compileSchema=u,t.resolveRef=function(e,t,r){var n;r=(0,a.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let s=h.call(this,e,r);if(void 0===s){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:a}=this.opts;o&&(s=new l({schema:o,schemaId:a,root:e,baseId:t}))}return void 0!==s?e.refs[r]=d.call(this,s):void 0},t.getCompilingSchema=f,t.resolveSchema=m;const p=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const l of e.fragment.slice(1).split("/")){if("boolean"===typeof r)return;const e=r[(0,i.unescapeFragment)(l)];if(void 0===e)return;const n="object"===typeof(r=e)&&r[this.opts.schemaId];!p.has(l)&&n&&(t=(0,a.resolveUrl)(this.opts.uriResolver,t,n))}let s;if("boolean"!=typeof r&&r.$ref&&!(0,i.schemaHasRulesButRef)(r,this.RULES)){const e=(0,a.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=m.call(this,n,e)}const{schemaId:c}=this.opts;return s=s||new l({schema:r,schemaId:c,root:n,baseId:t}),s.schema!==s.root.schema?s:void 0}},65373(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=o},39889(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(9737);class o extends Error{constructor(e,t,r,o){super(o||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=o},9737(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=r(19205),o=r(32017),s=r(7106),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&l(e)<=t)};const i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(i.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(c))return!0;if("object"==typeof r&&c(r))return!0}return!1}function l(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!a.has(r)&&("object"==typeof e[r]&&(0,n.eachItem)(e[r],(e=>t+=l(e))),t===1/0))return 1/0}return t}function u(e,t="",r){!1!==r&&(t=h(t));const n=e.parse(t);return d(e,n)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=d;const f=/#\/?$/;function h(e){return e?e.replace(f,""):""}t.normalizeId=h,t.resolveUrl=function(e,t,r){return r=h(r),e.resolve(t,r)};const m=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,a=h(e[r]||t),i={"":a},c=u(n,a,!1),l={},d=new Set;return s(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const s=c+t;let a=i[o];function u(t){const r=this.opts.uriResolver.resolve;if(t=h(a?r(a,t):t),d.has(t))throw p(t);d.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?f(e,n.schema,t):t!==h(s)&&("#"===t[0]?(f(e,l[t],t),l[t]=e):this.refs[t]=s),t}function y(e){if("string"==typeof e){if(!m.test(e))throw new Error(`invalid anchor "${e}"`);u.call(this,`#${e}`)}}"string"==typeof e[r]&&(a=u.call(this,e[r])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),i[t]=a})),l;function f(e,t,r){if(void 0!==t&&!o(e,t))throw p(r)}function p(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},43402(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},19205(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=r(56699),o=r(37622);function s(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"===typeof t)return;const o=n.RULES.keywords;for(const s in t)o[s]||m(e,`unknown keyword: "${s}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function i(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function l({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:o}){return(s,a,i,c)=>{const l=void 0===i?a:i instanceof n.Name?(a instanceof n.Name?e(s,a,i):t(s,a,i),i):a instanceof n.Name?(t(s,i,a),a):r(a,i);return c!==n.Name||l instanceof n.Name?l:o(s,l)}}function u(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",n._`{}`);return void 0!==t&&d(e,r,t),r}function d(e,t,r){Object.keys(r).forEach((r=>e.assign(n._`${t}${(0,n.getProperty)(r)}`,!0)))}t.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(s(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=s,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,o,s){if(!s){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return n._`${r}`}return n._`${e}${t}${(0,n.getProperty)(o)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(i(e))},t.escapeJsonPointer=i,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:l({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>{e.if(n._`${t} === true`,(()=>e.assign(r,!0)),(()=>e.assign(r,n._`${r} || {}`).code(n._`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>{!0===t?e.assign(r,!0):(e.assign(r,n._`${r} || {}`),d(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:l({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,n._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>e.assign(r,!0===t||n._`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=d;const f={};var h;function m(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:f[t.code]||(f[t.code]=new o._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(h||(t.Type=h={})),t.getErrorPath=function(e,t,r){if(e instanceof n.Name){const o=t===h.Num;return r?o?n._`"[" + ${e} + "]"`:n._`"['" + ${e} + "']"`:o?n._`"/" + ${e}`:n._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,n.getProperty)(e).toString():"/"+i(e)},t.checkStrictMode=m},19574(e,t){"use strict";function r(e,t){return t.rules.some((t=>n(e,t)))}function n(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},n){const o=t.RULES.types[n];return o&&!0!==o&&r(e,o)},t.shouldUseGroup=r,t.shouldUseRule=n},72129(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=r(40154),o=r(56699),s=r(65373),a={message:"boolean schema is false"};function i(e,t){const{gen:r,data:o}=e,s={gen:r,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,n.reportError)(s,a,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:n}=e;!1===r?i(e,!1):"object"==typeof r&&!0===r.$async?t.return(s.default.data):(t.assign(o._`${n}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),i(e)):r.var(t,!0)}},66542(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=r(43402),o=r(19574),s=r(40154),a=r(56699),i=r(19205);var c;function l(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(n.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c||(t.DataType=c={})),t.getSchemaTypes=function(e){const t=l(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=l,t.coerceAndCheckDataType=function(e,t){const{gen:r,data:n,opts:s}=e,i=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),l=t.length>0&&!(0===i.length&&1===t.length&&(0,o.schemaHasRulesForType)(e,t[0]));if(l){const o=f(t,n,s.strictNumbers,c.Wrong);r.if(o,(()=>{i.length?function(e,t,r){const{gen:n,data:o,opts:s}=e,i=n.let("dataType",a._`typeof ${o}`),c=n.let("coerced",a._`undefined`);"array"===s.coerceTypes&&n.if(a._`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>n.assign(o,a._`${o}[0]`).assign(i,a._`typeof ${o}`).if(f(t,o,s.strictNumbers),(()=>n.assign(c,o)))));n.if(a._`${c} !== undefined`);for(const a of r)(u.has(a)||"array"===a&&"array"===s.coerceTypes)&&l(a);function l(e){switch(e){case"string":return void n.elseIf(a._`${i} == "number" || ${i} == "boolean"`).assign(c,a._`"" + ${o}`).elseIf(a._`${o} === null`).assign(c,a._`""`);case"number":return void n.elseIf(a._`${i} == "boolean" || ${o} === null
|| (${i} == "string" && ${o} && ${o} == +${o})`).assign(c,a._`+${o}`);case"integer":return void n.elseIf(a._`${i} === "boolean" || ${o} === null
|| (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(c,a._`+${o}`);case"boolean":return void n.elseIf(a._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(c,!1).elseIf(a._`${o} === "true" || ${o} === 1`).assign(c,!0);case"null":return n.elseIf(a._`${o} === "" || ${o} === 0 || ${o} === false`),void n.assign(c,null);case"array":n.elseIf(a._`${i} === "string" || ${i} === "number"
|| ${i} === "boolean" || ${o} === null`).assign(c,a._`[${o}]`)}}n.else(),m(e),n.endIf(),n.if(a._`${c} !== undefined`,(()=>{n.assign(o,c),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(a._`${t} !== undefined`,(()=>e.assign(a._`${t}[${r}]`,n)))}(e,c)}))}(e,t,i):m(e)}))}return l};const u=new Set(["string","number","integer","boolean","null"]);function d(e,t,r,n=c.Correct){const o=n===c.Correct?a.operators.EQ:a.operators.NEQ;let s;switch(e){case"null":return a._`${t} ${o} null`;case"array":s=a._`Array.isArray(${t})`;break;case"object":s=a._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=i(a._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=i();break;default:return a._`typeof ${t} ${o} ${e}`}return n===c.Correct?s:(0,a.not)(s);function i(e=a.nil){return(0,a.and)(a._`typeof ${t} == "number"`,e,r?a._`isFinite(${t})`:a.nil)}}function f(e,t,r,n){if(1===e.length)return d(e[0],t,r,n);let o;const s=(0,i.toHash)(e);if(s.array&&s.object){const e=a._`typeof ${t} != "object"`;o=s.null?e:a._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else o=a.nil;s.number&&delete s.integer;for(const i in s)o=(0,a.and)(o,d(i,t,r,n));return o}t.checkDataType=d,t.checkDataTypes=f;const h={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?a._`{type: ${e}}`:a._`{type: ${t}}`};function m(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,i.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,s.reportError)(t,h)}t.reportTypeError=m},99524(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const n=r(56699),o=r(19205);function s(e,t,r){const{gen:s,compositeRule:a,data:i,opts:c}=e;if(void 0===r)return;const l=n._`${i}${(0,n.getProperty)(t)}`;if(a)return void(0,o.checkStrictMode)(e,`default is ignored for: ${l}`);let u=n._`${l} === undefined`;"empty"===c.useDefaults&&(u=n._`${u} || ${l} === null || ${l} === ""`),s.if(u,n._`${l} = ${(0,n.stringify)(r)}`)}t.assignDefaults=function(e,t){const{properties:r,items:n}=e.schema;if("object"===t&&r)for(const o in r)s(e,o,r[o].default);else"array"===t&&Array.isArray(n)&&n.forEach(((t,r)=>s(e,r,t.default)))}},79888(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=r(72129),o=r(66542),s=r(19574),a=r(66542),i=r(99524),c=r(64147),l=r(65633),u=r(56699),d=r(65373),f=r(9737),h=r(19205),m=r(40154);function p({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},s){o.code.es5?e.func(t,u._`${d.default.data}, ${d.default.valCxt}`,n.$async,(()=>{e.code(u._`"use strict"; ${y(r,o)}`),function(e,t){e.if(d.default.valCxt,(()=>{e.var(d.default.instancePath,u._`${d.default.valCxt}.${d.default.instancePath}`),e.var(d.default.parentData,u._`${d.default.valCxt}.${d.default.parentData}`),e.var(d.default.parentDataProperty,u._`${d.default.valCxt}.${d.default.parentDataProperty}`),e.var(d.default.rootData,u._`${d.default.valCxt}.${d.default.rootData}`),t.dynamicRef&&e.var(d.default.dynamicAnchors,u._`${d.default.valCxt}.${d.default.dynamicAnchors}`)}),(()=>{e.var(d.default.instancePath,u._`""`),e.var(d.default.parentData,u._`undefined`),e.var(d.default.parentDataProperty,u._`undefined`),e.var(d.default.rootData,d.default.data),t.dynamicRef&&e.var(d.default.dynamicAnchors,u._`{}`)}))}(e,o),e.code(s)})):e.func(t,u._`${d.default.data}, ${function(e){return u._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?u._`, ${d.default.dynamicAnchors}={}`:u.nil}}={}`}(o)}`,n.$async,(()=>e.code(y(r,o)).code(s)))}function y(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?u._`/*# sourceURL=${r} */`:u.nil}function g(e,t){$(e)&&(b(e),v(e))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&w(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,f.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const s=n.const("_errs",d.default.errors);_(e,s),n.var(t,u._`${s} === ${d.default.errors}`)}(e,t):(0,n.boolOrEmptySchema)(e,t)}function v({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function $(e){return"boolean"!=typeof e.schema}function b(e){(0,h.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function _(e,t){if(e.opts.jtd)return A(e,[],!1,t);const r=(0,o.getSchemaTypes)(e.schema);A(e,r,!(0,o.coerceAndCheckDataType)(e,r),t)}function w({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const s=r.$comment;if(!0===o.$comment)e.code(u._`${d.default.self}.logger.log(${s})`);else if("function"==typeof o.$comment){const r=u.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(u._`${d.default.self}.opts.$comment(${s}, ${r}, ${o}.schema)`)}}function A(e,t,r,n){const{gen:o,schema:i,data:c,allErrors:l,opts:f,self:m}=e,{RULES:p}=m;function y(h){(0,s.shouldUseGroup)(i,h)&&(h.type?(o.if((0,a.checkDataType)(h.type,c,f.strictNumbers)),S(e,h),1===t.length&&t[0]===h.type&&r&&(o.else(),(0,a.reportTypeError)(e)),o.endIf()):S(e,h),l||o.if(u._`${d.default.errors} === ${n||0}`))}!i.$ref||!f.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(i,p)?(f.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{E(e.dataTypes,t)||P(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)E(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&P(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const r=e.self.RULES.all;for(const n in r){const o=r[n];if("object"==typeof o&&(0,s.shouldUseRule)(e.schema,o)){const{type:r}=o.definition;r.length&&!r.some((e=>j(t,e)))&&P(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes)}(e,t),o.block((()=>{for(const e of p.rules)y(e);y(p.post)}))):o.block((()=>k(e,"$ref",p.all.$ref.definition)))}function S(e,t){const{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,i.assignDefaults)(e,t.type),r.block((()=>{for(const r of t.rules)(0,s.shouldUseRule)(n,r)&&k(e,r.keyword,r.definition,t.type)}))}function j(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function E(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function P(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){$(e)&&(b(e),v(e))?function(e){const{schema:t,opts:r,gen:n}=e;p(e,(()=>{r.$comment&&t.$comment&&w(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,h.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(d.default.vErrors,null),n.let(d.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",u._`${r}.evaluated`),t.if(u._`${e.evaluated}.dynamicProps`,(()=>t.assign(u._`${e.evaluated}.props`,u._`undefined`))),t.if(u._`${e.evaluated}.dynamicItems`,(()=>t.assign(u._`${e.evaluated}.items`,u._`undefined`)))}(e),_(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:s}=e;r.$async?t.if(u._`${d.default.errors} === 0`,(()=>t.return(d.default.data)),(()=>t.throw(u._`new ${o}(${d.default.vErrors})`))):(t.assign(u._`${n}.errors`,d.default.vErrors),s.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof u.Name&&e.assign(u._`${t}.props`,r);n instanceof u.Name&&e.assign(u._`${t}.items`,n)}(e),t.return(u._`${d.default.errors} === 0`))}(e)}))}(e):p(e,(()=>(0,n.topBoolOrEmptySchema)(e)))};class x{constructor(e,t,r){if((0,c.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",C(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,r){this.failResult((0,u.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,u.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(u._`${t} !== undefined && (${(0,u.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?m.reportExtraError:m.reportError)(this,this.def.error,t)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=u.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=u.nil,t=u.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:s}=this;r.if((0,u.or)(u._`${n} === undefined`,t)),e!==u.nil&&r.assign(e,!0),(o.length||s.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:o}=this;return(0,u.or)(function(){if(r.length){if(!(t instanceof u.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return u._`${(0,a.checkDataTypes)(e,t,o.opts.strictNumbers,a.DataType.Wrong)}`}return u.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return u._`!${r}(${t})`}return u.nil}())}subschema(e,t){const r=(0,l.getSubschema)(this.it,e);(0,l.extendSubschemaData)(r,this.it,e),(0,l.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return g(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=h.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=h.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,u.Name))),!0}}function k(e,t,r,n){const o=new x(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,c.funcKeywordCode)(o,r):"macro"in r?(0,c.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,c.funcKeywordCode)(o,r)}t.KeywordCxt=x;const O=/^\/(?:[^~]|~0|~1)*$/,N=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function C(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,s;if(""===e)return d.default.rootData;if("/"===e[0]){if(!O.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,s=d.default.rootData}else{const a=N.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const i=+a[1];if(o=a[2],"#"===o){if(i>=t)throw new Error(c("property/index",i));return n[t-i]}if(i>t)throw new Error(c("data",i));if(s=r[t-i],!o)return s}let a=s;const i=o.split("/");for(const l of i)l&&(s=u._`${s}${(0,u.getProperty)((0,h.unescapeJsonPointer)(l))}`,a=u._`${a} && ${s}`);return a;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=C},64147(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=r(56699),o=r(65373),s=r(62235),a=r(40154);function i(e){const{gen:t,data:r,it:o}=e;t.if(o.parentData,(()=>t.assign(r,n._`${o.parentData}[${o.parentDataProperty}]`)))}function c(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}t.macroKeywordCode=function(e,t){const{gen:r,keyword:o,schema:s,parentSchema:a,it:i}=e,l=t.macro.call(i.self,s,a,i),u=c(r,o,l);!1!==i.opts.validateSchema&&i.self.validateSchema(l,!0);const d=r.name("valid");e.subschema({schema:l,schemaPath:n.nil,errSchemaPath:`${i.errSchemaPath}/${o}`,topSchemaRef:u,compositeRule:!0},d),e.pass(d,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var r;const{gen:l,keyword:u,schema:d,parentSchema:f,$data:h,it:m}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,t);const p=!h&&t.compile?t.compile.call(m.self,d,f,m):t.validate,y=c(l,u,p),g=l.let("valid");function v(r=(t.async?n._`await `:n.nil)){const a=m.opts.passContext?o.default.this:o.default.self,i=!("compile"in t&&!h||!1===t.schema);l.assign(g,n._`${r}${(0,s.callValidateCode)(e,y,a,i)}`,t.modifying)}function $(e){var r;l.if((0,n.not)(null!==(r=t.valid)&&void 0!==r?r:g),e)}e.block$data(g,(function(){if(!1===t.errors)v(),t.modifying&&i(e),$((()=>e.error()));else{const r=t.async?function(){const e=l.let("ruleErrs",null);return l.try((()=>v(n._`await `)),(t=>l.assign(g,!1).if(n._`${t} instanceof ${m.ValidationError}`,(()=>l.assign(e,n._`${t}.errors`)),(()=>l.throw(t))))),e}():function(){const e=n._`${y}.errors`;return l.assign(e,null),v(n.nil),e}();t.modifying&&i(e),$((()=>function(e,t){const{gen:r}=e;r.if(n._`Array.isArray(${t})`,(()=>{r.assign(o.default.vErrors,n._`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`).assign(o.default.errors,n._`${o.default.vErrors}.length`),(0,a.extendErrors)(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:g)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&"undefined"==typeof e))},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},o,s){if(Array.isArray(o.keyword)?!o.keyword.includes(s):o.keyword!==s)throw new Error("ajv implementation error");const a=o.dependencies;if(null===a||void 0===a?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[s])){const e=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}}},65633(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=r(56699),o=r(19205);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:s,schemaPath:a,errSchemaPath:i,topSchemaRef:c}){if(void 0!==t&&void 0!==s)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const s=e.schema[t];return void 0===r?{schema:s,schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,o.escapeFragment)(r)}`}}if(void 0!==s){if(void 0===a||void 0===i||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:a,topSchemaRef:c,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:s,data:a,dataTypes:i,propertyName:c}){if(void 0!==a&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=t;if(void 0!==r){const{errorPath:a,dataPathArr:i,opts:c}=t;u(l.let("data",n._`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=n.str`${a}${(0,o.getErrorPath)(r,s,c.jsPropertySyntax)}`,e.parentDataProperty=n._`${r}`,e.dataPathArr=[...i,e.parentDataProperty]}if(void 0!==a){u(a instanceof n.Name?a:l.let("data",a,!0)),void 0!==c&&(e.propertyName=c)}function u(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}i&&(e.dataTypes=i)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:s}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==s&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}},28132(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(79888);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var o=r(56699);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const s=r(36024),a=r(39889),i=r(43402),c=r(16245),l=r(56699),u=r(9737),d=r(66542),f=r(19205),h=r(53983),m=r(86122),p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function b(e){var t,r,n,o,s,a,i,c,l,u,d,f,h,y,g,v,$,b,_,w,A,S,j,E,P;const x=e.strict,k=null===(t=e.code)||void 0===t?void 0:t.optimize,O=!0===k||void 0===k?1:k||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,C=null!==(o=e.uriResolver)&&void 0!==o?o:m.default;return{strictSchema:null===(a=null!==(s=e.strictSchema)&&void 0!==s?s:x)||void 0===a||a,strictNumbers:null===(c=null!==(i=e.strictNumbers)&&void 0!==i?i:x)||void 0===c||c,strictTypes:null!==(u=null!==(l=e.strictTypes)&&void 0!==l?l:x)&&void 0!==u?u:"log",strictTuples:null!==(f=null!==(d=e.strictTuples)&&void 0!==d?d:x)&&void 0!==f?f:"log",strictRequired:null!==(y=null!==(h=e.strictRequired)&&void 0!==h?h:x)&&void 0!==y&&y,code:e.code?{...e.code,optimize:O,regExp:N}:{optimize:O,regExp:N},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===($=e.meta)||void 0===$||$,messages:null===(b=e.messages)||void 0===b||b,inlineRefs:null===(_=e.inlineRefs)||void 0===_||_,schemaId:null!==(w=e.schemaId)&&void 0!==w?w:"$id",addUsedSchema:null===(A=e.addUsedSchema)||void 0===A||A,validateSchema:null===(S=e.validateSchema)||void 0===S||S,validateFormats:null===(j=e.validateFormats)||void 0===j||j,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(P=e.int32range)||void 0===P||P,uriResolver:C}}class _{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:g,es5:t,lines:r}),this.logger=function(e){if(!1===e)return x;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,i.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,$,e,"DEPRECATED","warn"),this._metaOpts=P.call(this),e.formats&&j.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=h;"id"===r&&(n={...h},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await o.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||s.call(this,r)}async function o(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function s(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return i.call(this,t),await c.call(this,t.missingSchema),s.call(this,e)}}function i({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await l.call(this,e);this.refs[e]||await o.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function l(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"===typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=A.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new c.SchemaEnv({schema:{},schemaId:r});if(t=c.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=A.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,u.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(O.call(this,r,t),!t)return(0,f.eachItem)(r,(e=>N.call(this,e))),this;I.call(this,t);const n={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(r,0===n.type.length?e=>N.call(this,e,n):e=>n.type.forEach((t=>N.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,s=o[e];n&&s&&(o[e]=R(s))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let s;const{schemaId:a}=this.opts;if("object"==typeof e)s=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let i=this._cache.get(e);if(void 0!==i)return i;r=(0,u.normalizeId)(s||r);const l=u.getSchemaRefs.call(this,e,r);return i=new c.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:r,localRefs:l}),this._cache.set(i.schema,i),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=i),n&&this.validateSchema(e,!0),i}_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):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(const o in e){const s=o;s in t&&this.logger[n](`${r}: option ${o}. ${e[s]}`)}}function A(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function j(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function P(){const e={...this.opts};for(const t of y)delete e[t];return e}_.ValidationError=s.default,_.MissingRefError=a.default,t.default=_;const x={log(){},warn(){},error(){}};const k=/^[a-z_$][a-z0-9_$:-]*$/i;function O(e,t){const{RULES:r}=this;if((0,f.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!k.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function N(e,t,r){var n;const o=null===t||void 0===t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:s}=this;let a=o?s.post:s.rules.find((({type:e})=>e===r));if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;const i={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?C.call(this,a,i,t.before):a.rules.push(i),s.all[e]=i,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function C(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function I(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=R(t)),e.validateSchema=this.compile(t,!0))}const D={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function R(e){return{anyOf:[e,D]}}},37464(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(32017);n.code='require("ajv/dist/runtime/equal").default',t.default=n},12403(e,t){"use strict";function r(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320===(64512&r)&&o++);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.code='require("ajv/dist/runtime/ucs2length").default'},86122(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(48343);n.code='require("ajv/dist/runtime/uri").default',t.default=n},36024(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},22891(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const n=r(56699),o=r(19205),s={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?a(e,n):(0,o.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function a(e,t){const{gen:r,schema:s,data:a,keyword:i,it:c}=e;c.items=!0;const l=r.const("len",n._`${a}.length`);if(!1===s)e.setParams({len:t.length}),e.pass(n._`${l} <= ${t.length}`);else if("object"==typeof s&&!(0,o.alwaysValidSchema)(c,s)){const s=r.var("valid",n._`${l} <= ${t.length}`);r.if((0,n.not)(s),(()=>function(s){r.forRange("i",t.length,l,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:o.Type.Num},s),c.allErrors||r.if((0,n.not)(s),(()=>r.break()))}))}(s))),e.ok(s)}}t.validateAdditionalItems=a,t.default=s},85622(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(62235),o=r(56699),s=r(65373),a=r(19205),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>o._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:i,data:c,errsCount:l,it:u}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:d,opts:f}=u;if(u.props=!0,"all"!==f.removeAdditional&&(0,a.alwaysValidSchema)(u,r))return;const h=(0,n.allSchemaProperties)(i.properties),m=(0,n.allSchemaProperties)(i.patternProperties);function p(e){t.code(o._`delete ${c}[${e}]`)}function y(n){if("all"===f.removeAdditional||f.removeAdditional&&!1===r)p(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(d||t.break());if("object"==typeof r&&!(0,a.alwaysValidSchema)(u,r)){const r=t.name("valid");"failing"===f.removeAdditional?(g(n,r,!1),t.if((0,o.not)(r),(()=>{e.reset(),p(n)}))):(g(n,r),d||t.if((0,o.not)(r),(()=>t.break())))}}}function g(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",c,(r=>{h.length||m.length?t.if(function(r){let s;if(h.length>8){const e=(0,a.schemaRefOrVal)(u,i.properties,"properties");s=(0,n.isOwnProperty)(t,e,r)}else s=h.length?(0,o.or)(...h.map((e=>o._`${r} === ${e}`))):o.nil;return m.length&&(s=(0,o.or)(s,...m.map((t=>o._`${(0,n.usePattern)(e,t)}.test(${r})`)))),(0,o.not)(s)}(r),(()=>y(r))):y(r)})),e.ok(o._`${l} === ${s.default.errors}`)}};t.default=i},54866(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(19205),o={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const s=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(o,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},s);e.ok(s),e.mergeEvaluated(a)}))}};t.default=o},86027(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(62235).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=n},95011(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),s={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?n.str`must contain at least ${e} valid item(s)`:n.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?n._`{minContains: ${e}}`:n._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:s,data:a,it:i}=e;let c,l;const{minContains:u,maxContains:d}=s;i.opts.next?(c=void 0===u?1:u,l=d):c=1;const f=t.const("len",n._`${a}.length`);if(e.setParams({min:c,max:l}),void 0===l&&0===c)return void(0,o.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==l&&c>l)return(0,o.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,o.alwaysValidSchema)(i,r)){let t=n._`${f} >= ${c}`;return void 0!==l&&(t=n._`${t} && ${f} <= ${l}`),void e.pass(t)}i.items=!0;const h=t.name("valid");function m(){const e=t.name("_valid"),r=t.let("count",0);p(e,(()=>t.if(e,(()=>function(e){t.code(n._`${e}++`),void 0===l?t.if(n._`${e} >= ${c}`,(()=>t.assign(h,!0).break())):(t.if(n._`${e} > ${l}`,(()=>t.assign(h,!1).break())),1===c?t.assign(h,!0):t.if(n._`${e} >= ${c}`,(()=>t.assign(h,!0))))}(r)))))}function p(r,n){t.forRange("i",0,f,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:o.Type.Num,compositeRule:!0},r),n()}))}void 0===l&&1===c?p(h,(()=>t.if(h,(()=>t.break())))):0===c?(t.let(h,!0),void 0!==l&&t.if(n._`${a}.length > 0`,m)):(t.let(h,!1),m()),e.result(h,(()=>e.reset()))}};t.default=s},81451(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=r(56699),o=r(19205),s=r(62235);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const o=1===t?"property":"properties";return n.str`must have ${o} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:o}})=>n._`{property: ${e},
missingProperty: ${o},
depsCount: ${t},
deps: ${r}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);i(e,t),c(e,r)}};function i(e,t=e.schema){const{gen:r,data:o,it:a}=e;if(0===Object.keys(t).length)return;const i=r.let("missing");for(const c in t){const l=t[c];if(0===l.length)continue;const u=(0,s.propertyInData)(r,o,c,a.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(", ")}),a.allErrors?r.if(u,(()=>{for(const t of l)(0,s.checkReportMissingProp)(e,t)})):(r.if(n._`${u} && (${(0,s.checkMissingProp)(e,l,i)})`),(0,s.reportMissingProp)(e,i),r.else())}}function c(e,t=e.schema){const{gen:r,data:n,keyword:a,it:i}=e,c=r.name("valid");for(const l in t)(0,o.alwaysValidSchema)(i,t[l])||(r.if((0,s.propertyInData)(r,n,l,i.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:l},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,!0))),e.ok(c))}t.validatePropertyDeps=i,t.validateSchemaDeps=c,t.default=a},58445(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),s={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>n.str`must match "${e.ifClause}" schema`,params:({params:e})=>n._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:s}=e;void 0===r.then&&void 0===r.else&&(0,o.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const i=a(s,"then"),c=a(s,"else");if(!i&&!c)return;const l=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),i&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(u,d("then",r),d("else",r))}else i?t.if(u,d("then")):t.if((0,n.not)(u),d("else"));function d(r,o){return()=>{const s=e.subschema({keyword:r},u);t.assign(l,u),e.mergeValidEvaluated(s,l),o?t.assign(o,n._`${r}`):e.setParams({ifClause:r})}}e.pass(l,(()=>e.error(!0)))}};function a(e,t){const r=e.schema[t];return void 0!==r&&!(0,o.alwaysValidSchema)(e,r)}t.default=s},53308(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(22891),o=r(29236),s=r(1096),a=r(67208),i=r(95011),c=r(81451),l=r(97267),u=r(85622),d=r(27711),f=r(16699),h=r(8265),m=r(86027),p=r(1937),y=r(54866),g=r(58445),v=r(67908);t.default=function(e=!1){const t=[h.default,m.default,p.default,y.default,g.default,v.default,l.default,u.default,c.default,d.default,f.default];return e?t.push(o.default,a.default):t.push(n.default,s.default),t.push(i.default),t}},1096(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const n=r(56699),o=r(19205),s=r(62235),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return i(e,"additionalItems",t);r.items=!0,(0,o.alwaysValidSchema)(r,t)||e.ok((0,s.validateArray)(e))}};function i(e,t,r=e.schema){const{gen:s,parentSchema:a,data:i,keyword:c,it:l}=e;!function(e){const{opts:n,errSchemaPath:s}=l,a=r.length,i=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!i){const e=`"${c}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${s}"`;(0,o.checkStrictMode)(l,e,n.strictTuples)}}(a),l.opts.unevaluated&&r.length&&!0!==l.items&&(l.items=o.mergeEvaluated.items(s,r.length,l.items));const u=s.name("valid"),d=s.const("len",n._`${i}.length`);r.forEach(((t,r)=>{(0,o.alwaysValidSchema)(l,t)||(s.if(n._`${d} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},u))),e.ok(u))}))}t.validateTuple=i,t.default=a},67208(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),s=r(62235),a=r(22891),i={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,(0,o.alwaysValidSchema)(n,t)||(i?(0,a.validateAdditionalItems)(e,i):e.ok((0,s.validateArray)(e)))}};t.default=i},8265(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(19205),o={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:o}=e;if((0,n.alwaysValidSchema)(o,r))return void e.fail();const s=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),e.failResult(s,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=o},1937(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),s={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>n._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:s,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(a.opts.discriminator&&s.discriminator)return;const i=r,c=t.let("valid",!1),l=t.let("passing",null),u=t.name("_valid");e.setParams({passing:l}),t.block((function(){i.forEach(((r,s)=>{let i;(0,o.alwaysValidSchema)(a,r)?t.var(u,!0):i=e.subschema({keyword:"oneOf",schemaProp:s,compositeRule:!0},u),s>0&&t.if(n._`${u} && ${c}`).assign(c,!1).assign(l,n._`[${l}, ${s}]`).else(),t.if(u,(()=>{t.assign(c,!0),t.assign(l,s),i&&e.mergeEvaluated(i,n.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=s},16699(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(62235),o=r(56699),s=r(19205),a=r(19205),i={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:i,parentSchema:c,it:l}=e,{opts:u}=l,d=(0,n.allSchemaProperties)(r),f=d.filter((e=>(0,s.alwaysValidSchema)(l,r[e])));if(0===d.length||f.length===d.length&&(!l.opts.unevaluated||!0===l.props))return;const h=u.strictSchema&&!u.allowMatchingProperties&&c.properties,m=t.name("valid");!0===l.props||l.props instanceof o.Name||(l.props=(0,a.evaluatedPropsToName)(t,l.props));const{props:p}=l;function y(e){for(const t in h)new RegExp(e).test(t)&&(0,s.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(r){t.forIn("key",i,(s=>{t.if(o._`${(0,n.usePattern)(e,r)}.test(${s})`,(()=>{const n=f.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:s,dataPropType:a.Type.Str},m),l.opts.unevaluated&&!0!==p?t.assign(o._`${p}[${s}]`,!0):n||l.allErrors||t.if((0,o.not)(m),(()=>t.break()))}))}))}!function(){for(const e of d)h&&y(e),l.allErrors?g(e):(t.var(m,!0),g(e),t.if(m))}()}};t.default=i},29236(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1096),o={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t.default=o},27711(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(79888),o=r(62235),s=r(19205),a=r(85622),i={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:i,data:c,it:l}=e;"all"===l.opts.removeAdditional&&void 0===i.additionalProperties&&a.default.code(new n.KeywordCxt(l,a.default,"additionalProperties"));const u=(0,o.allSchemaProperties)(r);for(const n of u)l.definedProperties.add(n);l.opts.unevaluated&&u.length&&!0!==l.props&&(l.props=s.mergeEvaluated.props(t,(0,s.toHash)(u),l.props));const d=u.filter((e=>!(0,s.alwaysValidSchema)(l,r[e])));if(0===d.length)return;const f=t.name("valid");for(const n of d)h(n)?m(n):(t.if((0,o.propertyInData)(t,c,n,l.opts.ownProperties)),m(n),l.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function h(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==r[e].default}function m(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=i},97267(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),s={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>n._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:s,it:a}=e;if((0,o.alwaysValidSchema)(a,r))return;const i=t.name("valid");t.forIn("key",s,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},i),t.if((0,n.not)(i),(()=>{e.error(!0),a.allErrors||t.break()}))})),e.ok(i)}};t.default=s},67908(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(19205),o={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t.default=o},62235(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const n=r(56699),o=r(19205),s=r(65373),a=r(19205);function i(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:n._`Object.prototype.hasOwnProperty`})}function c(e,t,r){return n._`${i(e)}.call(${t}, ${r})`}function l(e,t,r,o){const s=n._`${t}${(0,n.getProperty)(r)} === undefined`;return o?(0,n.or)(s,(0,n.not)(c(e,t,r))):s}function u(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:o,it:s}=e;r.if(l(r,o,t,s.opts.ownProperties),(()=>{e.setParams({missingProperty:n._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},o,s){return(0,n.or)(...o.map((o=>(0,n.and)(l(e,t,o,r.ownProperties),n._`${s} = ${o}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=i,t.isOwnProperty=c,t.propertyInData=function(e,t,r,o){const s=n._`${t}${(0,n.getProperty)(r)} !== undefined`;return o?n._`${s} && ${c(e,t,r)}`:s},t.noPropertyInData=l,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter((r=>!(0,o.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:o,schemaPath:a,errorPath:i},it:c},l,u,d){const f=d?n._`${e}, ${t}, ${o}${a}`:t,h=[[s.default.instancePath,(0,n.strConcat)(s.default.instancePath,i)],[s.default.parentData,c.parentData],[s.default.parentDataProperty,c.parentDataProperty],[s.default.rootData,s.default.rootData]];c.opts.dynamicRef&&h.push([s.default.dynamicAnchors,s.default.dynamicAnchors]);const m=n._`${f}, ${r.object(...h)}`;return u!==n.nil?n._`${l}.call(${u}, ${m})`:n._`${l}(${m})`};const d=n._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const o=t.unicodeRegExp?"u":"",{regExp:s}=t.code,i=s(r,o);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:n._`${"new RegExp"===s.code?d:(0,a.useFunc)(e,s)}(${r}, ${o})`})},t.validateArray=function(e){const{gen:t,data:r,keyword:s,it:a}=e,i=t.name("valid");if(a.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(i,!0),c((()=>t.break())),i;function c(a){const c=t.const("len",n._`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:s,dataProp:r,dataPropType:o.Type.Num},i),t.if((0,n.not)(i),a)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:s,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,o.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const i=t.let("valid",!1),c=t.name("_valid");t.block((()=>r.forEach(((r,o)=>{const a=e.subschema({keyword:s,schemaProp:o,compositeRule:!0},c);t.assign(i,n._`${i} || ${c}`);e.mergeValidEvaluated(a,c)||t.if((0,n.not)(i))})))),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}},68729(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},63418(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(68729),o=r(61475),s=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,o.default];t.default=s},61475(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const n=r(39889),o=r(62235),s=r(56699),a=r(65373),i=r(16245),c=r(19205),l={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:o}=e,{baseId:a,schemaEnv:c,validateName:l,opts:f,self:h}=o,{root:m}=c;if(("#"===r||"#/"===r)&&a===m.baseId)return function(){if(c===m)return d(e,l,c,c.$async);const r=t.scopeValue("root",{ref:m});return d(e,s._`${r}.validate`,m,m.$async)}();const p=i.resolveRef.call(h,m,a,r);if(void 0===p)throw new n.default(o.opts.uriResolver,a,r);return p instanceof i.SchemaEnv?function(t){const r=u(e,t);d(e,r,t,t.$async)}(p):function(n){const o=t.scopeValue("schema",!0===f.code.source?{ref:n,code:(0,s.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:s.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(p)}};function u(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):s._`${r.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,r,n){const{gen:i,it:l}=e,{allErrors:u,schemaEnv:d,opts:f}=l,h=f.passContext?a.default.this:s.nil;function m(e){const t=s._`${e}.errors`;i.assign(a.default.vErrors,s._`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),i.assign(a.default.errors,s._`${a.default.vErrors}.length`)}function p(e){var t;if(!l.opts.unevaluated)return;const n=null===(t=null===r||void 0===r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==l.props)if(n&&!n.dynamicProps)void 0!==n.props&&(l.props=c.mergeEvaluated.props(i,n.props,l.props));else{const t=i.var("props",s._`${e}.evaluated.props`);l.props=c.mergeEvaluated.props(i,t,l.props,s.Name)}if(!0!==l.items)if(n&&!n.dynamicItems)void 0!==n.items&&(l.items=c.mergeEvaluated.items(i,n.items,l.items));else{const t=i.var("items",s._`${e}.evaluated.items`);l.items=c.mergeEvaluated.items(i,t,l.items,s.Name)}}n?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const r=i.let("valid");i.try((()=>{i.code(s._`await ${(0,o.callValidateCode)(e,t,h)}`),p(t),u||i.assign(r,!0)}),(e=>{i.if(s._`!(${e} instanceof ${l.ValidationError})`,(()=>i.throw(e))),m(e),u||i.assign(r,!1)})),e.ok(r)}():e.result((0,o.callValidateCode)(e,t,h),(()=>p(t)),(()=>m(t)))}t.getValidate=u,t.callRef=d,t.default=l},50575(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(22886),s=r(16245),a=r(39889),i=r(19205),c={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===o.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>n._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:c,parentSchema:l,it:u}=e,{oneOf:d}=l;if(!u.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=c.propertyName;if("string"!=typeof f)throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",!1),m=t.const("tag",n._`${r}${(0,n.getProperty)(f)}`);function p(r){const o=t.name("valid"),s=e.subschema({keyword:"oneOf",schemaProp:r},o);return e.mergeEvaluated(s,n.Name),o}t.if(n._`typeof ${m} == "string"`,(()=>function(){const r=function(){var e;const t={},r=o(l);let n=!0;for(let l=0;l<d.length;l++){let t=d[l];if((null===t||void 0===t?void 0:t.$ref)&&!(0,i.schemaHasRulesButRef)(t,u.self.RULES)){const e=t.$ref;if(t=s.resolveRef.call(u.self,u.schemaEnv.root,u.baseId,e),t instanceof s.SchemaEnv&&(t=t.schema),void 0===t)throw new a.default(u.opts.uriResolver,u.baseId,e)}const h=null===(e=null===t||void 0===t?void 0:t.properties)||void 0===e?void 0:e[f];if("object"!=typeof h)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);n=n&&(r||o(t)),c(h,l)}if(!n)throw new Error(`discriminator: "${f}" must be required`);return t;function o({required:e}){return Array.isArray(e)&&e.includes(f)}function c(e,t){if(e.const)h(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`);for(const r of e.enum)h(r,t)}}function h(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${f}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(n._`${m} === ${e}`),t.assign(h,p(r[e]));t.else(),e.error(!1,{discrError:o.DiscrError.Mapping,tag:m,tagName:f}),t.endIf()}()),(()=>e.error(!1,{discrError:o.DiscrError.Tag,tag:m,tagName:f}))),e.ok(h)}};t.default=c},22886(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(r||(t.DiscrError=r={}))},26594(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(63418),o=r(33742),s=r(53308),a=r(53478),i=r(53727),c=[n.default,o.default,(0,s.default)(),a.default,i.metadataVocabulary,i.contentVocabulary];t.default=c},94887(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`must match format "${e}"`,params:({schemaCode:e})=>n._`{format: ${e}}`},code(e,t){const{gen:r,data:o,$data:s,schema:a,schemaCode:i,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:d,self:f}=c;l.validateFormats&&(s?function(){const s=r.scopeValue("formats",{ref:f.formats,code:l.code.formats}),a=r.const("fDef",n._`${s}[${i}]`),c=r.let("fType"),u=r.let("format");r.if(n._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(c,n._`${a}.type || "string"`).assign(u,n._`${a}.validate`)),(()=>r.assign(c,n._`"string"`).assign(u,a))),e.fail$data((0,n.or)(!1===l.strictSchema?n.nil:n._`${i} && !${u}`,function(){const e=d.$async?n._`(${a}.async ? await ${u}(${o}) : ${u}(${o}))`:n._`${u}(${o})`,r=n._`(typeof ${u} == "function" ? ${e} : ${u}.test(${o}))`;return n._`${u} && ${u} !== true && ${c} === ${t} && !${r}`}()))}():function(){const s=f.formats[a];if(!s)return void function(){if(!1===l.strictSchema)return void f.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===s)return;const[i,c,h]=function(e){const t=e instanceof RegExp?(0,n.regexpCode)(e):l.code.formats?n._`${l.code.formats}${(0,n.getProperty)(a)}`:void 0,o=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,n._`${o}.validate`];return["string",e,o]}(s);i===t&&e.pass(function(){if("object"==typeof s&&!(s instanceof RegExp)&&s.async){if(!d.$async)throw new Error("async format in sync schema");return n._`await ${h}(${o})`}return"function"==typeof c?n._`${h}(${o})`:n._`${h}.test(${o})`}())}())}};t.default=o},53478(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=[r(94887).default];t.default=n},53727(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},28085(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),s=r(37464),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>n._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:a,schemaCode:i,schema:c}=e;a||c&&"object"==typeof c?e.fail$data(n._`!${(0,o.useFunc)(t,s.default)}(${r}, ${i})`):e.fail(n._`${c} !== ${r}`)}};t.default=a},40377(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),s=r(37464),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>n._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:a,schema:i,schemaCode:c,it:l}=e;if(!a&&0===i.length)throw new Error("enum must have non-empty array");const u=i.length>=l.opts.loopEnum;let d;const f=()=>null!==d&&void 0!==d?d:d=(0,o.useFunc)(t,s.default);let h;if(u||a)h=t.let("valid"),e.block$data(h,(function(){t.assign(h,!1),t.forOf("v",c,(e=>t.if(n._`${f()}(${r}, ${e})`,(()=>t.assign(h,!0).break()))))}));else{if(!Array.isArray(i))throw new Error("ajv implementation error");const e=t.const("vSchema",c);h=(0,n.or)(...i.map(((t,o)=>function(e,t){const o=i[t];return"object"===typeof o&&null!==o?n._`${f()}(${r}, ${e}[${t}])`:n._`${r} === ${o}`}(e,o))))}e.pass(h)}};t.default=a},33742(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(23036),o=r(32785),s=r(83513),a=r(50556),i=r(10844),c=r(34757),l=r(58153),u=r(30423),d=r(28085),f=r(40377),h=[n.default,o.default,s.default,a.default,i.default,c.default,l.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default];t.default=h},58153(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:o}=e,s="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`${r}.length ${s} ${o}`)}};t.default=o},83513(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),s=r(12403),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:a,it:i}=e,c="maxLength"===t?n.operators.GT:n.operators.LT,l=!1===i.opts.unicode?n._`${r}.length`:n._`${(0,o.useFunc)(e.gen,s.default)}(${r})`;e.fail$data(n._`${l} ${c} ${a}`)}};t.default=a},23036(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=n.operators,s={maximum:{okStr:"<=",ok:o.LTE,fail:o.GT},minimum:{okStr:">=",ok:o.GTE,fail:o.LT},exclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},exclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},a={message:({keyword:e,schemaCode:t})=>n.str`must be ${s[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${s[e].okStr}, limit: ${t}}`},i={keyword:Object.keys(s),type:"number",schemaType:"number",$data:!0,error:a,code(e){const{keyword:t,data:r,schemaCode:o}=e;e.fail$data(n._`${r} ${s[t].fail} ${o} || isNaN(${r})`)}};t.default=i},10844(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:o}=e,s="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`Object.keys(${r}).length ${s} ${o}`)}};t.default=o},32785(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>n.str`must be multiple of ${e}`,params:({schemaCode:e})=>n._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:o,it:s}=e,a=s.opts.multipleOfPrecision,i=t.let("res"),c=a?n._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:n._`${i} !== parseInt(${i})`;e.fail$data(n._`(${o} === 0 || (${i} = ${r}/${o}, ${c}))`)}};t.default=o},50556(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(62235),o=r(56699),s={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>o.str`must match pattern "${e}"`,params:({schemaCode:e})=>o._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:s,schemaCode:a,it:i}=e,c=i.opts.unicodeRegExp?"u":"",l=r?o._`(new RegExp(${a}, ${c}))`:(0,n.usePattern)(e,s);e.fail$data(o._`!${l}.test(${t})`)}};t.default=s},34757(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(62235),o=r(56699),s=r(19205),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>o.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>o._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:a,data:i,$data:c,it:l}=e,{opts:u}=l;if(!c&&0===r.length)return;const d=r.length>=u.loopRequired;if(l.allErrors?function(){if(d||c)e.block$data(o.nil,f);else for(const t of r)(0,n.checkReportMissingProp)(e,t)}():function(){const s=t.let("missing");if(d||c){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,s){e.setParams({missingProperty:r}),t.forOf(r,a,(()=>{t.assign(s,(0,n.propertyInData)(t,i,r,u.ownProperties)),t.if((0,o.not)(s),(()=>{e.error(),t.break()}))}),o.nil)}(s,r))),e.ok(r)}else t.if((0,n.checkMissingProp)(e,r,s)),(0,n.reportMissingProp)(e,s),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null===t||void 0===t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;(0,s.checkStrictMode)(l,t,l.opts.strictRequired)}}function f(){t.forOf("prop",a,(r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,i,r,u.ownProperties),(()=>e.error()))}))}}};t.default=a},30423(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(66542),o=r(56699),s=r(19205),a=r(37464),i={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>o.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>o._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:i,schema:c,parentSchema:l,schemaCode:u,it:d}=e;if(!i&&!c)return;const f=t.let("valid"),h=l.items?(0,n.getSchemaTypes)(l.items):[];function m(s,a){const i=t.name("item"),c=(0,n.checkDataTypes)(h,i,d.opts.strictNumbers,n.DataType.Wrong),l=t.const("indices",o._`{}`);t.for(o._`;${s}--;`,(()=>{t.let(i,o._`${r}[${s}]`),t.if(c,o._`continue`),h.length>1&&t.if(o._`typeof ${i} == "string"`,o._`${i} += "_"`),t.if(o._`typeof ${l}[${i}] == "number"`,(()=>{t.assign(a,o._`${l}[${i}]`),e.error(),t.assign(f,!1).break()})).code(o._`${l}[${i}] = ${s}`)}))}function p(n,i){const c=(0,s.useFunc)(t,a.default),l=t.name("outer");t.label(l).for(o._`;${n}--;`,(()=>t.for(o._`${i} = ${n}; ${i}--;`,(()=>t.if(o._`${c}(${r}[${n}], ${r}[${i}])`,(()=>{e.error(),t.assign(f,!1).break(l)}))))))}e.block$data(f,(function(){const n=t.let("i",o._`${r}.length`),s=t.let("j");e.setParams({i:n,j:s}),t.assign(f,!0),t.if(o._`${n} > 1`,(()=>(h.length>0&&!h.some((e=>"object"===e||"array"===e))?m:p)(n,s)))}),o._`${u} === false`),e.ok(f)}};t.default=i},14018(e,t){"use strict";function r(e,t){return{validate:e,compare:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0,t.fullFormats={date:r(s,a),time:r(c,l),"date-time":r((function(e){const t=e.split(u);return 2===t.length&&s(t[0])&&c(t[1],!0)}),d),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return f.test(e)&&h.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(y.test(e))return!1;try{return new RegExp(e),!0}catch(t){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return m.lastIndex=0,m.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=2147483647&&e>=-2147483648}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:p},double:{type:"number",validate:p},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:r(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:r(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":r(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,d),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(e){const t=n.exec(e);if(!t)return!1;const r=+t[1],s=+t[2],a=+t[3];return s>=1&&s<=12&&a>=1&&a<=(2===s&&function(e){return e%4===0&&(e%100!==0||e%400===0)}(r)?29:o[s])}function a(e,t){if(e&&t)return e>t?1:e<t?-1:0}const i=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function c(e,t){const r=i.exec(e);if(!r)return!1;const n=+r[1],o=+r[2],s=+r[3],a=r[5];return(n<=23&&o<=59&&s<=59||23===n&&59===o&&60===s)&&(!t||""!==a)}function l(e,t){if(!e||!t)return;const r=i.exec(e),n=i.exec(t);return r&&n?(e=r[1]+r[2]+r[3]+(r[4]||""))>(t=n[1]+n[2]+n[3]+(n[4]||""))?1:e<t?-1:0:void 0}const u=/t|\s/i;function d(e,t){if(!e||!t)return;const[r,n]=e.split(u),[o,s]=t.split(u),i=a(r,o);return void 0!==i?i||l(n,s):void 0}const f=/\/|:/,h=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;const m=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function p(){return!0}const y=/[^\\]\\Z/},68182(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(14018),o=r(26461),s=r(93789),a=new s.Name("fullFormats"),i=new s.Name("fastFormats"),c=(e,t={keywords:!0})=>{if(Array.isArray(t))return l(e,t,n.fullFormats,a),e;const[r,s]="fast"===t.mode?[n.fastFormats,i]:[n.fullFormats,a];return l(e,t.formats||n.formatNames,r,s),t.keywords&&o.default(e),e};function l(e,t,r,n){var o,a;null!==(o=(a=e.opts.code).formats)&&void 0!==o||(a.formats=s._`require("ajv-formats/dist/formats").${n}`);for(const s of t)e.addFormat(s,r[s])}c.get=(e,t="full")=>{const r=("fast"===t?n.fastFormats:n.fullFormats)[e];if(!r)throw new Error(`Unknown format "${e}"`);return r},e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c},26461(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const n=r(22394),o=r(93789),s=o.operators,a={formatMaximum:{okStr:"<=",ok:s.LTE,fail:s.GT},formatMinimum:{okStr:">=",ok:s.GTE,fail:s.LT},formatExclusiveMaximum:{okStr:"<",ok:s.LT,fail:s.GTE},formatExclusiveMinimum:{okStr:">",ok:s.GT,fail:s.LTE}},i={message:({keyword:e,schemaCode:t})=>o.str`should be ${a[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>o._`{comparison: ${a[e].okStr}, limit: ${t}}`};t.formatLimitDefinition={keyword:Object.keys(a),type:"string",schemaType:"string",$data:!0,error:i,code(e){const{gen:t,data:r,schemaCode:s,keyword:i,it:c}=e,{opts:l,self:u}=c;if(!l.validateFormats)return;const d=new n.KeywordCxt(c,u.RULES.all.format.definition,"format");function f(e){return o._`${e}.compare(${r}, ${s}) ${a[i].fail} 0`}d.$data?function(){const r=t.scopeValue("formats",{ref:u.formats,code:l.code.formats}),n=t.const("fmt",o._`${r}[${d.schemaCode}]`);e.fail$data(o.or(o._`typeof ${n} != "object"`,o._`${n} instanceof RegExp`,o._`typeof ${n}.compare != "function"`,f(n)))}():function(){const r=d.schema,n=u.formats[r];if(!n||!0===n)return;if("object"!=typeof n||n instanceof RegExp||"function"!=typeof n.compare)throw new Error(`"${i}": format "${r}" does not define "compare" function`);const s=t.scopeValue("formats",{key:r,ref:n,code:l.code.formats?o._`${l.code.formats}${o.getProperty(r)}`:void 0});e.fail$data(f(s))}()},dependencies:["format"]};t.default=e=>(e.addKeyword(t.formatLimitDefinition),e)},22394(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=r(17666),o=r(4824),s=r(77013),a=r(92455),i=["/properties"],c="http://json-schema.org/draft-07/schema";class l extends n.default{_addVocabularies(){super._addVocabularies(),o.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=r(69810);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=r(93789);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var f=r(99598);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=r(70303);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})},72104(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=n;class o extends r{constructor(e){super(),this._items="string"===typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function s(e,...t){const r=[e[0]];let n=0;for(;n<t.length;)c(r,t[n]),r.push(e[++n]);return new o(r)}t._Code=o,t.nil=new o(""),t._=s;const a=new o("+");function i(e,...t){const r=[u(e[0])];let n=0;for(;n<t.length;)r.push(a),c(r,t[n]),r.push(a,u(e[++n]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new o(r)}function c(e,t){var r;t instanceof o?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof(r=t)||"boolean"==typeof r||null===r?r:u(Array.isArray(r)?r.join(","):r))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof n||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof n?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=i,t.addCodeArg=c,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},t.stringify=function(e){return new o(u(e))},t.safeStringify=u,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new o(`.${e}`):s`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new o(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new o(e.toString())}},93789(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const n=r(72104),o=r(45885);var s=r(72104);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return s.Name}});var a=r(45885);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class i{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends i{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const r=e?o.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=N(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class l extends i{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=N(this.rhs,e,t),this}get names(){return O(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class u extends l{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class f extends i{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class h extends i{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class m extends i{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=N(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class p extends i{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(C(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>k(e,t.names)),{})}}class y extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends p{}class v extends y{}v.kind="else";class $ extends y{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof $?t:t.nodes:this.nodes.length?this:new $(I(e),t instanceof $?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=N(this.condition,e,t),this}get names(){const e=super.names;return O(e,this.condition),this.else&&k(e,this.else.names),e}}$.kind="if";class b extends y{}b.kind="for";class _ extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=N(this.iteration,e,t),this}get names(){return k(super.names,this.iteration.names)}}class w extends b{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?o.varKinds.var:this.varKind,{name:r,from:n,to:s}=this;return`for(${t} ${r}=${n}; ${r}<${s}; ${r}++)`+super.render(e)}get names(){const e=O(super.names,this.from);return O(e,this.to)}}class A extends b{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=N(this.iterable,e,t),this}get names(){return k(super.names,this.iterable.names)}}class S extends y{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}S.kind="func";class j extends p{render(e){return"return "+super.render(e)}}j.kind="return";class E extends y{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&k(e,this.catch.names),this.finally&&k(e,this.finally.names),e}}class P extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}P.kind="catch";class x extends y{render(e){return"finally"+super.render(e)}}x.kind="finally";function k(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function O(e,t){return t instanceof n._CodeOrName?k(e,t.names):e}function N(e,t,r){return e instanceof n.Name?s(e):(o=e)instanceof n._Code&&o._items.some((e=>e instanceof n.Name&&1===t[e.str]&&void 0!==r[e.str]))?new n._Code(e._items.reduce(((e,t)=>(t instanceof n.Name&&(t=s(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e)),[])):e;var o;function s(e){const n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function C(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function I(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:n._`!${F(e)}`}t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new o.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new c(e,o,r)),o}const(e,t,r){return this._def(o.varKinds.const,e,t,r)}let(e,t,r){return this._def(o.varKinds.let,e,t,r)}var(e,t,r){return this._def(o.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new l(e,t,r))}add(e,r){return this._leafNode(new u(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new m(e)),this}object(...e){const t=["{"];for(const[r,o]of e)t.length>1&&t.push(","),t.push(r),(r!==o||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,o));return t.push("}"),new n._Code(t)}if(e,t,r){if(this._blockNode(new $(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new $(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode($,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new _(e),t)}forRange(e,t,r,n,s=(this.opts.es5?o.varKinds.var:o.varKinds.let)){const a=this._scope.toName(e);return this._for(new w(s,a,t,r),(()=>n(a)))}forOf(e,t,r,s=o.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,n._`${e}.length`,(t=>{this.var(a,n._`${e}[${t}]`),r(a)}))}return this._for(new A("of",s,a,t),(()=>r(a)))}forIn(e,t,r,s=(this.opts.es5?o.varKinds.var:o.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,n._`Object.keys(${t})`,r);const a=this._scope.toName(e);return this._for(new A("in",s,a,t),(()=>r(a)))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new f(e))}return(e){const t=new j;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(j)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new E;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new P(e),t(e)}return r&&(this._currNode=n.finally=new x,this.code(r)),this._endBlockNode(P,x)}throw(e){return this._leafNode(new h(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,r,o){return this._blockNode(new S(e,t,r)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof $))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=I;const D=T(t.operators.AND);t.and=function(...e){return e.reduce(D)};const R=T(t.operators.OR);function T(e){return(t,r)=>t===n.nil?r:r===n.nil?t:n._`${F(t)} ${e} ${F(r)}`}function F(e){return e instanceof n.Name?e:n._`(${e})`}t.or=function(...e){return e.reduce(R)}},45885(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=r(72104);class o extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var s;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(s||(t.UsedValueState=s={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof n.Name?e:this.name(e)}name(e){return new n.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=a;class i extends n.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=n._`.${new n.Name(t)}[${r}]`}}t.ValueScopeName=i;const c=n._`\n`;t.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:n.nil}}get(){return this._scope}name(e){return new i(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,s=null!==(r=t.key)&&void 0!==r?r:t.ref;let a=this._values[o];if(a){const e=a.get(s);if(e)return e}else a=this._values[o]=new Map;a.set(s,n);const i=this._scope[o]||(this._scope[o]=[]),c=i.length;return i[c]=t.ref,n.setValue(t,{property:o,itemIndex:c}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return n._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,a={},i){let c=n.nil;for(const l in e){const u=e[l];if(!u)continue;const d=a[l]=a[l]||new Map;u.forEach((e=>{if(d.has(e))return;d.set(e,s.Started);let a=r(e);if(a){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=n._`${c}${r} ${e} = ${a};${this.opts._n}`}else{if(!(a=null===i||void 0===i?void 0:i(e)))throw new o(e);c=n._`${c}${a}${this.opts._n}`}d.set(e,s.Completed)}))}return c}}},22796(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const n=r(93789),o=r(7083),s=r(66735);function a(e,t){const r=e.const("err",t);e.if(n._`${s.default.vErrors} === null`,(()=>e.assign(s.default.vErrors,n._`[${r}]`)),n._`${s.default.vErrors}.push(${r})`),e.code(n._`${s.default.errors}++`)}function i(e,t){const{gen:r,validateName:o,schemaEnv:s}=e;s.$async?r.throw(n._`new ${e.ValidationError}(${t})`):(r.assign(n._`${o}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>n.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?n.str`"${e}" keyword must be ${t} ($data)`:n.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.keywordError,o,s){const{it:c}=e,{gen:u,compositeRule:d,allErrors:f}=c,h=l(e,r,o);(null!==s&&void 0!==s?s:d||f)?a(u,h):i(c,n._`[${h}]`)},t.reportExtraError=function(e,r=t.keywordError,n){const{it:o}=e,{gen:c,compositeRule:u,allErrors:d}=o;a(c,l(e,r,n)),u||d||i(o,s.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(s.default.errors,t),e.if(n._`${s.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(n._`${s.default.vErrors}.length`,t)),(()=>e.assign(s.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:o,errsCount:a,it:i}){if(void 0===a)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",a,s.default.errors,(a=>{e.const(c,n._`${s.default.vErrors}[${a}]`),e.if(n._`${c}.instancePath === undefined`,(()=>e.assign(n._`${c}.instancePath`,(0,n.strConcat)(s.default.instancePath,i.errorPath)))),e.assign(n._`${c}.schemaPath`,n.str`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign(n._`${c}.schema`,r),e.assign(n._`${c}.data`,o))}))};const c={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function l(e,t,r){const{createErrors:o}=e.it;return!1===o?n._`{}`:function(e,t,r={}){const{gen:o,it:a}=e,i=[u(a,r),d(e,r)];return function(e,{params:t,message:r},o){const{keyword:a,data:i,schemaValue:l,it:u}=e,{opts:d,propertyName:f,topSchemaRef:h,schemaPath:m}=u;o.push([c.keyword,a],[c.params,"function"==typeof t?t(e):t||n._`{}`]),d.messages&&o.push([c.message,"function"==typeof r?r(e):r]);d.verbose&&o.push([c.schema,l],[c.parentSchema,n._`${h}${m}`],[s.default.data,i]);f&&o.push([c.propertyName,f])}(e,t,i),o.object(...i)}(e,t,r)}function u({errorPath:e},{instancePath:t}){const r=t?n.str`${e}${(0,o.getErrorPath)(t,o.Type.Str)}`:e;return[s.default.instancePath,(0,n.strConcat)(s.default.instancePath,r)]}function d({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:s}){let a=s?t:n.str`${t}/${e}`;return r&&(a=n.str`${a}${(0,o.getErrorPath)(r,o.Type.Str)}`),[c.schemaPath,a]}},65219(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=r(93789),o=r(99598),s=r(66735),a=r(63043),i=r(7083),c=r(69810);class l{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,a.normalizeId)(null===r||void 0===r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null===r||void 0===r?void 0:r.$async,this.refs={}}}function u(e){const t=f.call(this,e);if(t)return t;const r=(0,a.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:i,lines:l}=this.opts.code,{ownProperties:u}=this.opts,d=new n.CodeGen(this.scope,{es5:i,lines:l,ownProperties:u});let h;e.$async&&(h=d.scopeValue("Error",{ref:o.default,code:n._`require("ajv/dist/runtime/validation_error").default`}));const m=d.scopeName("validate");e.validateName=m;const p={gen:d,allErrors:this.opts.allErrors,data:s.default.data,parentData:s.default.parentData,parentDataProperty:s.default.parentDataProperty,dataNames:[s.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:h,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:n._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e),(0,c.validateFunctionCode)(p),d.optimize(this.opts.code.optimize);const t=d.toString();y=`${d.scopeRefs(s.default.scope)}return ${t}`,this.opts.code.process&&(y=this.opts.code.process(y,e));const r=new Function(`${s.default.self}`,`${s.default.scope}`,y)(this,this.scope.get());if(this.scope.value(m,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:m,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=p;r.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},r.source&&(r.source.evaluated=(0,n.stringify)(r.evaluated))}return e.validate=r,e}catch(g){throw delete e.validate,delete e.validateName,y&&this.logger.error("Error compiling schema, function code:",y),g}finally{this._compilations.delete(e)}}function d(e){return(0,a.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function f(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function h(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||m.call(this,e,t)}function m(e,t){const r=this.opts.uriResolver.parse(t),n=(0,a._getFullPath)(this.opts.uriResolver,r);let o=(0,a.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return y.call(this,r,e);const s=(0,a.normalizeId)(n),i=this.refs[s]||this.schemas[s];if("string"==typeof i){const t=m.call(this,e,i);if("object"!==typeof(null===t||void 0===t?void 0:t.schema))return;return y.call(this,r,t)}if("object"===typeof(null===i||void 0===i?void 0:i.schema)){if(i.validate||u.call(this,i),s===(0,a.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,a.resolveUrl)(this.opts.uriResolver,o,n)),new l({schema:t,schemaId:r,root:e,baseId:o})}return y.call(this,r,i)}}t.SchemaEnv=l,t.compileSchema=u,t.resolveRef=function(e,t,r){var n;r=(0,a.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let s=h.call(this,e,r);if(void 0===s){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:a}=this.opts;o&&(s=new l({schema:o,schemaId:a,root:e,baseId:t}))}return void 0!==s?e.refs[r]=d.call(this,s):void 0},t.getCompilingSchema=f,t.resolveSchema=m;const p=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const l of e.fragment.slice(1).split("/")){if("boolean"===typeof r)return;const e=r[(0,i.unescapeFragment)(l)];if(void 0===e)return;const n="object"===typeof(r=e)&&r[this.opts.schemaId];!p.has(l)&&n&&(t=(0,a.resolveUrl)(this.opts.uriResolver,t,n))}let s;if("boolean"!=typeof r&&r.$ref&&!(0,i.schemaHasRulesButRef)(r,this.RULES)){const e=(0,a.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=m.call(this,n,e)}const{schemaId:c}=this.opts;return s=s||new l({schema:r,schemaId:c,root:n,baseId:t}),s.schema!==s.root.schema?s:void 0}},66735(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=o},70303(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(63043);class o extends Error{constructor(e,t,r,o){super(o||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=o},63043(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=r(7083),o=r(32017),s=r(7106),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&l(e)<=t)};const i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(i.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(c))return!0;if("object"==typeof r&&c(r))return!0}return!1}function l(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!a.has(r)&&("object"==typeof e[r]&&(0,n.eachItem)(e[r],(e=>t+=l(e))),t===1/0))return 1/0}return t}function u(e,t="",r){!1!==r&&(t=h(t));const n=e.parse(t);return d(e,n)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=d;const f=/#\/?$/;function h(e){return e?e.replace(f,""):""}t.normalizeId=h,t.resolveUrl=function(e,t,r){return r=h(r),e.resolve(t,r)};const m=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,a=h(e[r]||t),i={"":a},c=u(n,a,!1),l={},d=new Set;return s(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const s=c+t;let a=i[o];function u(t){const r=this.opts.uriResolver.resolve;if(t=h(a?r(a,t):t),d.has(t))throw p(t);d.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?f(e,n.schema,t):t!==h(s)&&("#"===t[0]?(f(e,l[t],t),l[t]=e):this.refs[t]=s),t}function y(e){if("string"==typeof e){if(!m.test(e))throw new Error(`invalid anchor "${e}"`);u.call(this,`#${e}`)}}"string"==typeof e[r]&&(a=u.call(this,e[r])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),i[t]=a})),l;function f(e,t,r){if(void 0!==t&&!o(e,t))throw p(r)}function p(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},5095(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},7083(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=r(93789),o=r(72104);function s(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"===typeof t)return;const o=n.RULES.keywords;for(const s in t)o[s]||m(e,`unknown keyword: "${s}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function i(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function l({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:o}){return(s,a,i,c)=>{const l=void 0===i?a:i instanceof n.Name?(a instanceof n.Name?e(s,a,i):t(s,a,i),i):a instanceof n.Name?(t(s,i,a),a):r(a,i);return c!==n.Name||l instanceof n.Name?l:o(s,l)}}function u(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",n._`{}`);return void 0!==t&&d(e,r,t),r}function d(e,t,r){Object.keys(r).forEach((r=>e.assign(n._`${t}${(0,n.getProperty)(r)}`,!0)))}t.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(s(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=s,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,o,s){if(!s){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return n._`${r}`}return n._`${e}${t}${(0,n.getProperty)(o)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(i(e))},t.escapeJsonPointer=i,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:l({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>{e.if(n._`${t} === true`,(()=>e.assign(r,!0)),(()=>e.assign(r,n._`${r} || {}`).code(n._`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>{!0===t?e.assign(r,!0):(e.assign(r,n._`${r} || {}`),d(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:l({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,n._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>e.assign(r,!0===t||n._`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=d;const f={};var h;function m(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:f[t.code]||(f[t.code]=new o._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(h||(t.Type=h={})),t.getErrorPath=function(e,t,r){if(e instanceof n.Name){const o=t===h.Num;return r?o?n._`"[" + ${e} + "]"`:n._`"['" + ${e} + "']"`:o?n._`"/" + ${e}`:n._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,n.getProperty)(e).toString():"/"+i(e)},t.checkStrictMode=m},65335(e,t){"use strict";function r(e,t){return t.rules.some((t=>n(e,t)))}function n(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},n){const o=t.RULES.types[n];return o&&!0!==o&&r(e,o)},t.shouldUseGroup=r,t.shouldUseRule=n},15583(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=r(22796),o=r(93789),s=r(66735),a={message:"boolean schema is false"};function i(e,t){const{gen:r,data:o}=e,s={gen:r,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,n.reportError)(s,a,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:n}=e;!1===r?i(e,!1):"object"==typeof r&&!0===r.$async?t.return(s.default.data):(t.assign(o._`${n}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),i(e)):r.var(t,!0)}},28840(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=r(5095),o=r(65335),s=r(22796),a=r(93789),i=r(7083);var c;function l(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(n.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c||(t.DataType=c={})),t.getSchemaTypes=function(e){const t=l(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=l,t.coerceAndCheckDataType=function(e,t){const{gen:r,data:n,opts:s}=e,i=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),l=t.length>0&&!(0===i.length&&1===t.length&&(0,o.schemaHasRulesForType)(e,t[0]));if(l){const o=f(t,n,s.strictNumbers,c.Wrong);r.if(o,(()=>{i.length?function(e,t,r){const{gen:n,data:o,opts:s}=e,i=n.let("dataType",a._`typeof ${o}`),c=n.let("coerced",a._`undefined`);"array"===s.coerceTypes&&n.if(a._`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>n.assign(o,a._`${o}[0]`).assign(i,a._`typeof ${o}`).if(f(t,o,s.strictNumbers),(()=>n.assign(c,o)))));n.if(a._`${c} !== undefined`);for(const a of r)(u.has(a)||"array"===a&&"array"===s.coerceTypes)&&l(a);function l(e){switch(e){case"string":return void n.elseIf(a._`${i} == "number" || ${i} == "boolean"`).assign(c,a._`"" + ${o}`).elseIf(a._`${o} === null`).assign(c,a._`""`);case"number":return void n.elseIf(a._`${i} == "boolean" || ${o} === null
|| (${i} == "string" && ${o} && ${o} == +${o})`).assign(c,a._`+${o}`);case"integer":return void n.elseIf(a._`${i} === "boolean" || ${o} === null
|| (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(c,a._`+${o}`);case"boolean":return void n.elseIf(a._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(c,!1).elseIf(a._`${o} === "true" || ${o} === 1`).assign(c,!0);case"null":return n.elseIf(a._`${o} === "" || ${o} === 0 || ${o} === false`),void n.assign(c,null);case"array":n.elseIf(a._`${i} === "string" || ${i} === "number"
|| ${i} === "boolean" || ${o} === null`).assign(c,a._`[${o}]`)}}n.else(),m(e),n.endIf(),n.if(a._`${c} !== undefined`,(()=>{n.assign(o,c),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(a._`${t} !== undefined`,(()=>e.assign(a._`${t}[${r}]`,n)))}(e,c)}))}(e,t,i):m(e)}))}return l};const u=new Set(["string","number","integer","boolean","null"]);function d(e,t,r,n=c.Correct){const o=n===c.Correct?a.operators.EQ:a.operators.NEQ;let s;switch(e){case"null":return a._`${t} ${o} null`;case"array":s=a._`Array.isArray(${t})`;break;case"object":s=a._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=i(a._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=i();break;default:return a._`typeof ${t} ${o} ${e}`}return n===c.Correct?s:(0,a.not)(s);function i(e=a.nil){return(0,a.and)(a._`typeof ${t} == "number"`,e,r?a._`isFinite(${t})`:a.nil)}}function f(e,t,r,n){if(1===e.length)return d(e[0],t,r,n);let o;const s=(0,i.toHash)(e);if(s.array&&s.object){const e=a._`typeof ${t} != "object"`;o=s.null?e:a._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else o=a.nil;s.number&&delete s.integer;for(const i in s)o=(0,a.and)(o,d(i,t,r,n));return o}t.checkDataType=d,t.checkDataTypes=f;const h={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?a._`{type: ${e}}`:a._`{type: ${t}}`};function m(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,i.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,s.reportError)(t,h)}t.reportTypeError=m},75590(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const n=r(93789),o=r(7083);function s(e,t,r){const{gen:s,compositeRule:a,data:i,opts:c}=e;if(void 0===r)return;const l=n._`${i}${(0,n.getProperty)(t)}`;if(a)return void(0,o.checkStrictMode)(e,`default is ignored for: ${l}`);let u=n._`${l} === undefined`;"empty"===c.useDefaults&&(u=n._`${u} || ${l} === null || ${l} === ""`),s.if(u,n._`${l} = ${(0,n.stringify)(r)}`)}t.assignDefaults=function(e,t){const{properties:r,items:n}=e.schema;if("object"===t&&r)for(const o in r)s(e,o,r[o].default);else"array"===t&&Array.isArray(n)&&n.forEach(((t,r)=>s(e,r,t.default)))}},69810(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=r(15583),o=r(28840),s=r(65335),a=r(28840),i=r(75590),c=r(62657),l=r(41924),u=r(93789),d=r(66735),f=r(63043),h=r(7083),m=r(22796);function p({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},s){o.code.es5?e.func(t,u._`${d.default.data}, ${d.default.valCxt}`,n.$async,(()=>{e.code(u._`"use strict"; ${y(r,o)}`),function(e,t){e.if(d.default.valCxt,(()=>{e.var(d.default.instancePath,u._`${d.default.valCxt}.${d.default.instancePath}`),e.var(d.default.parentData,u._`${d.default.valCxt}.${d.default.parentData}`),e.var(d.default.parentDataProperty,u._`${d.default.valCxt}.${d.default.parentDataProperty}`),e.var(d.default.rootData,u._`${d.default.valCxt}.${d.default.rootData}`),t.dynamicRef&&e.var(d.default.dynamicAnchors,u._`${d.default.valCxt}.${d.default.dynamicAnchors}`)}),(()=>{e.var(d.default.instancePath,u._`""`),e.var(d.default.parentData,u._`undefined`),e.var(d.default.parentDataProperty,u._`undefined`),e.var(d.default.rootData,d.default.data),t.dynamicRef&&e.var(d.default.dynamicAnchors,u._`{}`)}))}(e,o),e.code(s)})):e.func(t,u._`${d.default.data}, ${function(e){return u._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?u._`, ${d.default.dynamicAnchors}={}`:u.nil}}={}`}(o)}`,n.$async,(()=>e.code(y(r,o)).code(s)))}function y(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?u._`/*# sourceURL=${r} */`:u.nil}function g(e,t){$(e)&&(b(e),v(e))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&w(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,f.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const s=n.const("_errs",d.default.errors);_(e,s),n.var(t,u._`${s} === ${d.default.errors}`)}(e,t):(0,n.boolOrEmptySchema)(e,t)}function v({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function $(e){return"boolean"!=typeof e.schema}function b(e){(0,h.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function _(e,t){if(e.opts.jtd)return A(e,[],!1,t);const r=(0,o.getSchemaTypes)(e.schema);A(e,r,!(0,o.coerceAndCheckDataType)(e,r),t)}function w({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const s=r.$comment;if(!0===o.$comment)e.code(u._`${d.default.self}.logger.log(${s})`);else if("function"==typeof o.$comment){const r=u.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(u._`${d.default.self}.opts.$comment(${s}, ${r}, ${o}.schema)`)}}function A(e,t,r,n){const{gen:o,schema:i,data:c,allErrors:l,opts:f,self:m}=e,{RULES:p}=m;function y(h){(0,s.shouldUseGroup)(i,h)&&(h.type?(o.if((0,a.checkDataType)(h.type,c,f.strictNumbers)),S(e,h),1===t.length&&t[0]===h.type&&r&&(o.else(),(0,a.reportTypeError)(e)),o.endIf()):S(e,h),l||o.if(u._`${d.default.errors} === ${n||0}`))}!i.$ref||!f.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(i,p)?(f.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{E(e.dataTypes,t)||P(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)E(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&P(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const r=e.self.RULES.all;for(const n in r){const o=r[n];if("object"==typeof o&&(0,s.shouldUseRule)(e.schema,o)){const{type:r}=o.definition;r.length&&!r.some((e=>j(t,e)))&&P(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes)}(e,t),o.block((()=>{for(const e of p.rules)y(e);y(p.post)}))):o.block((()=>k(e,"$ref",p.all.$ref.definition)))}function S(e,t){const{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,i.assignDefaults)(e,t.type),r.block((()=>{for(const r of t.rules)(0,s.shouldUseRule)(n,r)&&k(e,r.keyword,r.definition,t.type)}))}function j(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function E(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function P(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){$(e)&&(b(e),v(e))?function(e){const{schema:t,opts:r,gen:n}=e;p(e,(()=>{r.$comment&&t.$comment&&w(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,h.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(d.default.vErrors,null),n.let(d.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",u._`${r}.evaluated`),t.if(u._`${e.evaluated}.dynamicProps`,(()=>t.assign(u._`${e.evaluated}.props`,u._`undefined`))),t.if(u._`${e.evaluated}.dynamicItems`,(()=>t.assign(u._`${e.evaluated}.items`,u._`undefined`)))}(e),_(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:s}=e;r.$async?t.if(u._`${d.default.errors} === 0`,(()=>t.return(d.default.data)),(()=>t.throw(u._`new ${o}(${d.default.vErrors})`))):(t.assign(u._`${n}.errors`,d.default.vErrors),s.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof u.Name&&e.assign(u._`${t}.props`,r);n instanceof u.Name&&e.assign(u._`${t}.items`,n)}(e),t.return(u._`${d.default.errors} === 0`))}(e)}))}(e):p(e,(()=>(0,n.topBoolOrEmptySchema)(e)))};class x{constructor(e,t,r){if((0,c.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",C(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,r){this.failResult((0,u.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,u.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(u._`${t} !== undefined && (${(0,u.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?m.reportExtraError:m.reportError)(this,this.def.error,t)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=u.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=u.nil,t=u.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:s}=this;r.if((0,u.or)(u._`${n} === undefined`,t)),e!==u.nil&&r.assign(e,!0),(o.length||s.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:o}=this;return(0,u.or)(function(){if(r.length){if(!(t instanceof u.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return u._`${(0,a.checkDataTypes)(e,t,o.opts.strictNumbers,a.DataType.Wrong)}`}return u.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return u._`!${r}(${t})`}return u.nil}())}subschema(e,t){const r=(0,l.getSubschema)(this.it,e);(0,l.extendSubschemaData)(r,this.it,e),(0,l.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return g(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=h.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=h.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,u.Name))),!0}}function k(e,t,r,n){const o=new x(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,c.funcKeywordCode)(o,r):"macro"in r?(0,c.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,c.funcKeywordCode)(o,r)}t.KeywordCxt=x;const O=/^\/(?:[^~]|~0|~1)*$/,N=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function C(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,s;if(""===e)return d.default.rootData;if("/"===e[0]){if(!O.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,s=d.default.rootData}else{const a=N.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const i=+a[1];if(o=a[2],"#"===o){if(i>=t)throw new Error(c("property/index",i));return n[t-i]}if(i>t)throw new Error(c("data",i));if(s=r[t-i],!o)return s}let a=s;const i=o.split("/");for(const l of i)l&&(s=u._`${s}${(0,u.getProperty)((0,h.unescapeJsonPointer)(l))}`,a=u._`${a} && ${s}`);return a;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=C},62657(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=r(93789),o=r(66735),s=r(21085),a=r(22796);function i(e){const{gen:t,data:r,it:o}=e;t.if(o.parentData,(()=>t.assign(r,n._`${o.parentData}[${o.parentDataProperty}]`)))}function c(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}t.macroKeywordCode=function(e,t){const{gen:r,keyword:o,schema:s,parentSchema:a,it:i}=e,l=t.macro.call(i.self,s,a,i),u=c(r,o,l);!1!==i.opts.validateSchema&&i.self.validateSchema(l,!0);const d=r.name("valid");e.subschema({schema:l,schemaPath:n.nil,errSchemaPath:`${i.errSchemaPath}/${o}`,topSchemaRef:u,compositeRule:!0},d),e.pass(d,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var r;const{gen:l,keyword:u,schema:d,parentSchema:f,$data:h,it:m}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,t);const p=!h&&t.compile?t.compile.call(m.self,d,f,m):t.validate,y=c(l,u,p),g=l.let("valid");function v(r=(t.async?n._`await `:n.nil)){const a=m.opts.passContext?o.default.this:o.default.self,i=!("compile"in t&&!h||!1===t.schema);l.assign(g,n._`${r}${(0,s.callValidateCode)(e,y,a,i)}`,t.modifying)}function $(e){var r;l.if((0,n.not)(null!==(r=t.valid)&&void 0!==r?r:g),e)}e.block$data(g,(function(){if(!1===t.errors)v(),t.modifying&&i(e),$((()=>e.error()));else{const r=t.async?function(){const e=l.let("ruleErrs",null);return l.try((()=>v(n._`await `)),(t=>l.assign(g,!1).if(n._`${t} instanceof ${m.ValidationError}`,(()=>l.assign(e,n._`${t}.errors`)),(()=>l.throw(t))))),e}():function(){const e=n._`${y}.errors`;return l.assign(e,null),v(n.nil),e}();t.modifying&&i(e),$((()=>function(e,t){const{gen:r}=e;r.if(n._`Array.isArray(${t})`,(()=>{r.assign(o.default.vErrors,n._`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`).assign(o.default.errors,n._`${o.default.vErrors}.length`),(0,a.extendErrors)(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:g)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&"undefined"==typeof e))},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},o,s){if(Array.isArray(o.keyword)?!o.keyword.includes(s):o.keyword!==s)throw new Error("ajv implementation error");const a=o.dependencies;if(null===a||void 0===a?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${s}: ${a.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[s])){const e=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}}},41924(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=r(93789),o=r(7083);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:s,schemaPath:a,errSchemaPath:i,topSchemaRef:c}){if(void 0!==t&&void 0!==s)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const s=e.schema[t];return void 0===r?{schema:s,schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,o.escapeFragment)(r)}`}}if(void 0!==s){if(void 0===a||void 0===i||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:a,topSchemaRef:c,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:s,data:a,dataTypes:i,propertyName:c}){if(void 0!==a&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=t;if(void 0!==r){const{errorPath:a,dataPathArr:i,opts:c}=t;u(l.let("data",n._`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=n.str`${a}${(0,o.getErrorPath)(r,s,c.jsPropertySyntax)}`,e.parentDataProperty=n._`${r}`,e.dataPathArr=[...i,e.parentDataProperty]}if(void 0!==a){u(a instanceof n.Name?a:l.let("data",a,!0)),void 0!==c&&(e.propertyName=c)}function u(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}i&&(e.dataTypes=i)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:s}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==s&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}},17666(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(69810);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var o=r(93789);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const s=r(99598),a=r(70303),i=r(5095),c=r(65219),l=r(93789),u=r(63043),d=r(28840),f=r(7083),h=r(37301),m=r(76976),p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function b(e){var t,r,n,o,s,a,i,c,l,u,d,f,h,y,g,v,$,b,_,w,A,S,j,E,P;const x=e.strict,k=null===(t=e.code)||void 0===t?void 0:t.optimize,O=!0===k||void 0===k?1:k||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,C=null!==(o=e.uriResolver)&&void 0!==o?o:m.default;return{strictSchema:null===(a=null!==(s=e.strictSchema)&&void 0!==s?s:x)||void 0===a||a,strictNumbers:null===(c=null!==(i=e.strictNumbers)&&void 0!==i?i:x)||void 0===c||c,strictTypes:null!==(u=null!==(l=e.strictTypes)&&void 0!==l?l:x)&&void 0!==u?u:"log",strictTuples:null!==(f=null!==(d=e.strictTuples)&&void 0!==d?d:x)&&void 0!==f?f:"log",strictRequired:null!==(y=null!==(h=e.strictRequired)&&void 0!==h?h:x)&&void 0!==y&&y,code:e.code?{...e.code,optimize:O,regExp:N}:{optimize:O,regExp:N},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===($=e.meta)||void 0===$||$,messages:null===(b=e.messages)||void 0===b||b,inlineRefs:null===(_=e.inlineRefs)||void 0===_||_,schemaId:null!==(w=e.schemaId)&&void 0!==w?w:"$id",addUsedSchema:null===(A=e.addUsedSchema)||void 0===A||A,validateSchema:null===(S=e.validateSchema)||void 0===S||S,validateFormats:null===(j=e.validateFormats)||void 0===j||j,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(P=e.int32range)||void 0===P||P,uriResolver:C}}class _{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:g,es5:t,lines:r}),this.logger=function(e){if(!1===e)return x;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,i.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,$,e,"DEPRECATED","warn"),this._metaOpts=P.call(this),e.formats&&j.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=h;"id"===r&&(n={...h},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await o.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||s.call(this,r)}async function o(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function s(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return i.call(this,t),await c.call(this,t.missingSchema),s.call(this,e)}}function i({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await l.call(this,e);this.refs[e]||await o.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function l(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"===typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=A.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new c.SchemaEnv({schema:{},schemaId:r});if(t=c.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=A.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,u.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(O.call(this,r,t),!t)return(0,f.eachItem)(r,(e=>N.call(this,e))),this;I.call(this,t);const n={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(r,0===n.type.length?e=>N.call(this,e,n):e=>n.type.forEach((t=>N.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,s=o[e];n&&s&&(o[e]=R(s))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let s;const{schemaId:a}=this.opts;if("object"==typeof e)s=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let i=this._cache.get(e);if(void 0!==i)return i;r=(0,u.normalizeId)(s||r);const l=u.getSchemaRefs.call(this,e,r);return i=new c.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:r,localRefs:l}),this._cache.set(i.schema,i),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=i),n&&this.validateSchema(e,!0),i}_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):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(const o in e){const s=o;s in t&&this.logger[n](`${r}: option ${o}. ${e[s]}`)}}function A(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function j(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function P(){const e={...this.opts};for(const t of y)delete e[t];return e}_.ValidationError=s.default,_.MissingRefError=a.default,t.default=_;const x={log(){},warn(){},error(){}};const k=/^[a-z_$][a-z0-9_$:-]*$/i;function O(e,t){const{RULES:r}=this;if((0,f.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!k.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function N(e,t,r){var n;const o=null===t||void 0===t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:s}=this;let a=o?s.post:s.rules.find((({type:e})=>e===r));if(a||(a={type:r,rules:[]},s.rules.push(a)),s.keywords[e]=!0,!t)return;const i={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?C.call(this,a,i,t.before):a.rules.push(i),s.all[e]=i,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function C(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function I(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=R(t)),e.validateSchema=this.compile(t,!0))}const D={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function R(e){return{anyOf:[e,D]}}},72482(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(32017);n.code='require("ajv/dist/runtime/equal").default',t.default=n},82261(e,t){"use strict";function r(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320===(64512&r)&&o++);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.code='require("ajv/dist/runtime/ucs2length").default'},76976(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(48343);n.code='require("ajv/dist/runtime/uri").default',t.default=n},99598(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},57065(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const n=r(93789),o=r(7083),s={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?a(e,n):(0,o.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function a(e,t){const{gen:r,schema:s,data:a,keyword:i,it:c}=e;c.items=!0;const l=r.const("len",n._`${a}.length`);if(!1===s)e.setParams({len:t.length}),e.pass(n._`${l} <= ${t.length}`);else if("object"==typeof s&&!(0,o.alwaysValidSchema)(c,s)){const s=r.var("valid",n._`${l} <= ${t.length}`);r.if((0,n.not)(s),(()=>function(s){r.forRange("i",t.length,l,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:o.Type.Num},s),c.allErrors||r.if((0,n.not)(s),(()=>r.break()))}))}(s))),e.ok(s)}}t.validateAdditionalItems=a,t.default=s},90396(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(21085),o=r(93789),s=r(66735),a=r(7083),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>o._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:i,data:c,errsCount:l,it:u}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:d,opts:f}=u;if(u.props=!0,"all"!==f.removeAdditional&&(0,a.alwaysValidSchema)(u,r))return;const h=(0,n.allSchemaProperties)(i.properties),m=(0,n.allSchemaProperties)(i.patternProperties);function p(e){t.code(o._`delete ${c}[${e}]`)}function y(n){if("all"===f.removeAdditional||f.removeAdditional&&!1===r)p(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(d||t.break());if("object"==typeof r&&!(0,a.alwaysValidSchema)(u,r)){const r=t.name("valid");"failing"===f.removeAdditional?(g(n,r,!1),t.if((0,o.not)(r),(()=>{e.reset(),p(n)}))):(g(n,r),d||t.if((0,o.not)(r),(()=>t.break())))}}}function g(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",c,(r=>{h.length||m.length?t.if(function(r){let s;if(h.length>8){const e=(0,a.schemaRefOrVal)(u,i.properties,"properties");s=(0,n.isOwnProperty)(t,e,r)}else s=h.length?(0,o.or)(...h.map((e=>o._`${r} === ${e}`))):o.nil;return m.length&&(s=(0,o.or)(s,...m.map((t=>o._`${(0,n.usePattern)(e,t)}.test(${r})`)))),(0,o.not)(s)}(r),(()=>y(r))):y(r)})),e.ok(o._`${l} === ${s.default.errors}`)}};t.default=i},66636(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7083),o={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const s=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(o,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},s);e.ok(s),e.mergeEvaluated(a)}))}};t.default=o},41665(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(21085).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=n},96925(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),s={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?n.str`must contain at least ${e} valid item(s)`:n.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?n._`{minContains: ${e}}`:n._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:s,data:a,it:i}=e;let c,l;const{minContains:u,maxContains:d}=s;i.opts.next?(c=void 0===u?1:u,l=d):c=1;const f=t.const("len",n._`${a}.length`);if(e.setParams({min:c,max:l}),void 0===l&&0===c)return void(0,o.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==l&&c>l)return(0,o.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,o.alwaysValidSchema)(i,r)){let t=n._`${f} >= ${c}`;return void 0!==l&&(t=n._`${t} && ${f} <= ${l}`),void e.pass(t)}i.items=!0;const h=t.name("valid");function m(){const e=t.name("_valid"),r=t.let("count",0);p(e,(()=>t.if(e,(()=>function(e){t.code(n._`${e}++`),void 0===l?t.if(n._`${e} >= ${c}`,(()=>t.assign(h,!0).break())):(t.if(n._`${e} > ${l}`,(()=>t.assign(h,!1).break())),1===c?t.assign(h,!0):t.if(n._`${e} >= ${c}`,(()=>t.assign(h,!0))))}(r)))))}function p(r,n){t.forRange("i",0,f,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:o.Type.Num,compositeRule:!0},r),n()}))}void 0===l&&1===c?p(h,(()=>t.if(h,(()=>t.break())))):0===c?(t.let(h,!0),void 0!==l&&t.if(n._`${a}.length > 0`,m)):(t.let(h,!1),m()),e.result(h,(()=>e.reset()))}};t.default=s},71273(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=r(93789),o=r(7083),s=r(21085);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const o=1===t?"property":"properties";return n.str`must have ${o} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:o}})=>n._`{property: ${e},
missingProperty: ${o},
depsCount: ${t},
deps: ${r}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);i(e,t),c(e,r)}};function i(e,t=e.schema){const{gen:r,data:o,it:a}=e;if(0===Object.keys(t).length)return;const i=r.let("missing");for(const c in t){const l=t[c];if(0===l.length)continue;const u=(0,s.propertyInData)(r,o,c,a.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(", ")}),a.allErrors?r.if(u,(()=>{for(const t of l)(0,s.checkReportMissingProp)(e,t)})):(r.if(n._`${u} && (${(0,s.checkMissingProp)(e,l,i)})`),(0,s.reportMissingProp)(e,i),r.else())}}function c(e,t=e.schema){const{gen:r,data:n,keyword:a,it:i}=e,c=r.name("valid");for(const l in t)(0,o.alwaysValidSchema)(i,t[l])||(r.if((0,s.propertyInData)(r,n,l,i.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:l},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,!0))),e.ok(c))}t.validatePropertyDeps=i,t.validateSchemaDeps=c,t.default=a},7567(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),s={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>n.str`must match "${e.ifClause}" schema`,params:({params:e})=>n._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:s}=e;void 0===r.then&&void 0===r.else&&(0,o.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const i=a(s,"then"),c=a(s,"else");if(!i&&!c)return;const l=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),i&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(u,d("then",r),d("else",r))}else i?t.if(u,d("then")):t.if((0,n.not)(u),d("else"));function d(r,o){return()=>{const s=e.subschema({keyword:r},u);t.assign(l,u),e.mergeValidEvaluated(s,l),o?t.assign(o,n._`${r}`):e.setParams({ifClause:r})}}e.pass(l,(()=>e.error(!0)))}};function a(e,t){const r=e.schema[t];return void 0!==r&&!(0,o.alwaysValidSchema)(e,r)}t.default=s},52610(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(57065),o=r(47394),s=r(67366),a=r(56166),i=r(96925),c=r(71273),l=r(7705),u=r(90396),d=r(55581),f=r(78013),h=r(29320),m=r(41665),p=r(9259),y=r(66636),g=r(7567),v=r(70866);t.default=function(e=!1){const t=[h.default,m.default,p.default,y.default,g.default,v.default,l.default,u.default,c.default,d.default,f.default];return e?t.push(o.default,a.default):t.push(n.default,s.default),t.push(i.default),t}},67366(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const n=r(93789),o=r(7083),s=r(21085),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return i(e,"additionalItems",t);r.items=!0,(0,o.alwaysValidSchema)(r,t)||e.ok((0,s.validateArray)(e))}};function i(e,t,r=e.schema){const{gen:s,parentSchema:a,data:i,keyword:c,it:l}=e;!function(e){const{opts:n,errSchemaPath:s}=l,a=r.length,i=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!i){const e=`"${c}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${s}"`;(0,o.checkStrictMode)(l,e,n.strictTuples)}}(a),l.opts.unevaluated&&r.length&&!0!==l.items&&(l.items=o.mergeEvaluated.items(s,r.length,l.items));const u=s.name("valid"),d=s.const("len",n._`${i}.length`);r.forEach(((t,r)=>{(0,o.alwaysValidSchema)(l,t)||(s.if(n._`${d} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},u))),e.ok(u))}))}t.validateTuple=i,t.default=a},56166(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),s=r(21085),a=r(57065),i={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,(0,o.alwaysValidSchema)(n,t)||(i?(0,a.validateAdditionalItems)(e,i):e.ok((0,s.validateArray)(e)))}};t.default=i},29320(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7083),o={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:o}=e;if((0,n.alwaysValidSchema)(o,r))return void e.fail();const s=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),e.failResult(s,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=o},9259(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),s={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>n._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:s,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(a.opts.discriminator&&s.discriminator)return;const i=r,c=t.let("valid",!1),l=t.let("passing",null),u=t.name("_valid");e.setParams({passing:l}),t.block((function(){i.forEach(((r,s)=>{let i;(0,o.alwaysValidSchema)(a,r)?t.var(u,!0):i=e.subschema({keyword:"oneOf",schemaProp:s,compositeRule:!0},u),s>0&&t.if(n._`${u} && ${c}`).assign(c,!1).assign(l,n._`[${l}, ${s}]`).else(),t.if(u,(()=>{t.assign(c,!0),t.assign(l,s),i&&e.mergeEvaluated(i,n.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=s},78013(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(21085),o=r(93789),s=r(7083),a=r(7083),i={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:i,parentSchema:c,it:l}=e,{opts:u}=l,d=(0,n.allSchemaProperties)(r),f=d.filter((e=>(0,s.alwaysValidSchema)(l,r[e])));if(0===d.length||f.length===d.length&&(!l.opts.unevaluated||!0===l.props))return;const h=u.strictSchema&&!u.allowMatchingProperties&&c.properties,m=t.name("valid");!0===l.props||l.props instanceof o.Name||(l.props=(0,a.evaluatedPropsToName)(t,l.props));const{props:p}=l;function y(e){for(const t in h)new RegExp(e).test(t)&&(0,s.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(r){t.forIn("key",i,(s=>{t.if(o._`${(0,n.usePattern)(e,r)}.test(${s})`,(()=>{const n=f.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:s,dataPropType:a.Type.Str},m),l.opts.unevaluated&&!0!==p?t.assign(o._`${p}[${s}]`,!0):n||l.allErrors||t.if((0,o.not)(m),(()=>t.break()))}))}))}!function(){for(const e of d)h&&y(e),l.allErrors?g(e):(t.var(m,!0),g(e),t.if(m))}()}};t.default=i},47394(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(67366),o={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t.default=o},55581(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(69810),o=r(21085),s=r(7083),a=r(90396),i={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:i,data:c,it:l}=e;"all"===l.opts.removeAdditional&&void 0===i.additionalProperties&&a.default.code(new n.KeywordCxt(l,a.default,"additionalProperties"));const u=(0,o.allSchemaProperties)(r);for(const n of u)l.definedProperties.add(n);l.opts.unevaluated&&u.length&&!0!==l.props&&(l.props=s.mergeEvaluated.props(t,(0,s.toHash)(u),l.props));const d=u.filter((e=>!(0,s.alwaysValidSchema)(l,r[e])));if(0===d.length)return;const f=t.name("valid");for(const n of d)h(n)?m(n):(t.if((0,o.propertyInData)(t,c,n,l.opts.ownProperties)),m(n),l.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function h(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==r[e].default}function m(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=i},7705(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),s={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>n._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:s,it:a}=e;if((0,o.alwaysValidSchema)(a,r))return;const i=t.name("valid");t.forIn("key",s,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},i),t.if((0,n.not)(i),(()=>{e.error(!0),a.allErrors||t.break()}))})),e.ok(i)}};t.default=s},70866(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(7083),o={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t.default=o},21085(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const n=r(93789),o=r(7083),s=r(66735),a=r(7083);function i(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:n._`Object.prototype.hasOwnProperty`})}function c(e,t,r){return n._`${i(e)}.call(${t}, ${r})`}function l(e,t,r,o){const s=n._`${t}${(0,n.getProperty)(r)} === undefined`;return o?(0,n.or)(s,(0,n.not)(c(e,t,r))):s}function u(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:o,it:s}=e;r.if(l(r,o,t,s.opts.ownProperties),(()=>{e.setParams({missingProperty:n._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},o,s){return(0,n.or)(...o.map((o=>(0,n.and)(l(e,t,o,r.ownProperties),n._`${s} = ${o}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=i,t.isOwnProperty=c,t.propertyInData=function(e,t,r,o){const s=n._`${t}${(0,n.getProperty)(r)} !== undefined`;return o?n._`${s} && ${c(e,t,r)}`:s},t.noPropertyInData=l,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter((r=>!(0,o.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:o,schemaPath:a,errorPath:i},it:c},l,u,d){const f=d?n._`${e}, ${t}, ${o}${a}`:t,h=[[s.default.instancePath,(0,n.strConcat)(s.default.instancePath,i)],[s.default.parentData,c.parentData],[s.default.parentDataProperty,c.parentDataProperty],[s.default.rootData,s.default.rootData]];c.opts.dynamicRef&&h.push([s.default.dynamicAnchors,s.default.dynamicAnchors]);const m=n._`${f}, ${r.object(...h)}`;return u!==n.nil?n._`${l}.call(${u}, ${m})`:n._`${l}(${m})`};const d=n._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const o=t.unicodeRegExp?"u":"",{regExp:s}=t.code,i=s(r,o);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:n._`${"new RegExp"===s.code?d:(0,a.useFunc)(e,s)}(${r}, ${o})`})},t.validateArray=function(e){const{gen:t,data:r,keyword:s,it:a}=e,i=t.name("valid");if(a.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(i,!0),c((()=>t.break())),i;function c(a){const c=t.const("len",n._`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:s,dataProp:r,dataPropType:o.Type.Num},i),t.if((0,n.not)(i),a)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:s,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,o.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const i=t.let("valid",!1),c=t.name("_valid");t.block((()=>r.forEach(((r,o)=>{const a=e.subschema({keyword:s,schemaProp:o,compositeRule:!0},c);t.assign(i,n._`${i} || ${c}`);e.mergeValidEvaluated(a,c)||t.if((0,n.not)(i))})))),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}},47103(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},90344(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(47103),o=r(29045),s=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,o.default];t.default=s},29045(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const n=r(70303),o=r(21085),s=r(93789),a=r(66735),i=r(65219),c=r(7083),l={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:o}=e,{baseId:a,schemaEnv:c,validateName:l,opts:f,self:h}=o,{root:m}=c;if(("#"===r||"#/"===r)&&a===m.baseId)return function(){if(c===m)return d(e,l,c,c.$async);const r=t.scopeValue("root",{ref:m});return d(e,s._`${r}.validate`,m,m.$async)}();const p=i.resolveRef.call(h,m,a,r);if(void 0===p)throw new n.default(o.opts.uriResolver,a,r);return p instanceof i.SchemaEnv?function(t){const r=u(e,t);d(e,r,t,t.$async)}(p):function(n){const o=t.scopeValue("schema",!0===f.code.source?{ref:n,code:(0,s.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:s.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(p)}};function u(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):s._`${r.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,r,n){const{gen:i,it:l}=e,{allErrors:u,schemaEnv:d,opts:f}=l,h=f.passContext?a.default.this:s.nil;function m(e){const t=s._`${e}.errors`;i.assign(a.default.vErrors,s._`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),i.assign(a.default.errors,s._`${a.default.vErrors}.length`)}function p(e){var t;if(!l.opts.unevaluated)return;const n=null===(t=null===r||void 0===r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==l.props)if(n&&!n.dynamicProps)void 0!==n.props&&(l.props=c.mergeEvaluated.props(i,n.props,l.props));else{const t=i.var("props",s._`${e}.evaluated.props`);l.props=c.mergeEvaluated.props(i,t,l.props,s.Name)}if(!0!==l.items)if(n&&!n.dynamicItems)void 0!==n.items&&(l.items=c.mergeEvaluated.items(i,n.items,l.items));else{const t=i.var("items",s._`${e}.evaluated.items`);l.items=c.mergeEvaluated.items(i,t,l.items,s.Name)}}n?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const r=i.let("valid");i.try((()=>{i.code(s._`await ${(0,o.callValidateCode)(e,t,h)}`),p(t),u||i.assign(r,!0)}),(e=>{i.if(s._`!(${e} instanceof ${l.ValidationError})`,(()=>i.throw(e))),m(e),u||i.assign(r,!1)})),e.ok(r)}():e.result((0,o.callValidateCode)(e,t,h),(()=>p(t)),(()=>m(t)))}t.getValidate=u,t.callRef=d,t.default=l},77013(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(27420),s=r(65219),a=r(70303),i=r(7083),c={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===o.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>n._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:c,parentSchema:l,it:u}=e,{oneOf:d}=l;if(!u.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=c.propertyName;if("string"!=typeof f)throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",!1),m=t.const("tag",n._`${r}${(0,n.getProperty)(f)}`);function p(r){const o=t.name("valid"),s=e.subschema({keyword:"oneOf",schemaProp:r},o);return e.mergeEvaluated(s,n.Name),o}t.if(n._`typeof ${m} == "string"`,(()=>function(){const r=function(){var e;const t={},r=o(l);let n=!0;for(let l=0;l<d.length;l++){let t=d[l];if((null===t||void 0===t?void 0:t.$ref)&&!(0,i.schemaHasRulesButRef)(t,u.self.RULES)){const e=t.$ref;if(t=s.resolveRef.call(u.self,u.schemaEnv.root,u.baseId,e),t instanceof s.SchemaEnv&&(t=t.schema),void 0===t)throw new a.default(u.opts.uriResolver,u.baseId,e)}const h=null===(e=null===t||void 0===t?void 0:t.properties)||void 0===e?void 0:e[f];if("object"!=typeof h)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);n=n&&(r||o(t)),c(h,l)}if(!n)throw new Error(`discriminator: "${f}" must be required`);return t;function o({required:e}){return Array.isArray(e)&&e.includes(f)}function c(e,t){if(e.const)h(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`);for(const r of e.enum)h(r,t)}}function h(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${f}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(n._`${m} === ${e}`),t.assign(h,p(r[e]));t.else(),e.error(!1,{discrError:o.DiscrError.Mapping,tag:m,tagName:f}),t.endIf()}()),(()=>e.error(!1,{discrError:o.DiscrError.Tag,tag:m,tagName:f}))),e.ok(h)}};t.default=c},27420(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(r||(t.DiscrError=r={}))},4824(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(90344),o=r(92348),s=r(52610),a=r(32884),i=r(73929),c=[n.default,o.default,(0,s.default)(),a.default,i.metadataVocabulary,i.contentVocabulary];t.default=c},40329(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`must match format "${e}"`,params:({schemaCode:e})=>n._`{format: ${e}}`},code(e,t){const{gen:r,data:o,$data:s,schema:a,schemaCode:i,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:d,self:f}=c;l.validateFormats&&(s?function(){const s=r.scopeValue("formats",{ref:f.formats,code:l.code.formats}),a=r.const("fDef",n._`${s}[${i}]`),c=r.let("fType"),u=r.let("format");r.if(n._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(c,n._`${a}.type || "string"`).assign(u,n._`${a}.validate`)),(()=>r.assign(c,n._`"string"`).assign(u,a))),e.fail$data((0,n.or)(!1===l.strictSchema?n.nil:n._`${i} && !${u}`,function(){const e=d.$async?n._`(${a}.async ? await ${u}(${o}) : ${u}(${o}))`:n._`${u}(${o})`,r=n._`(typeof ${u} == "function" ? ${e} : ${u}.test(${o}))`;return n._`${u} && ${u} !== true && ${c} === ${t} && !${r}`}()))}():function(){const s=f.formats[a];if(!s)return void function(){if(!1===l.strictSchema)return void f.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===s)return;const[i,c,h]=function(e){const t=e instanceof RegExp?(0,n.regexpCode)(e):l.code.formats?n._`${l.code.formats}${(0,n.getProperty)(a)}`:void 0,o=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,n._`${o}.validate`];return["string",e,o]}(s);i===t&&e.pass(function(){if("object"==typeof s&&!(s instanceof RegExp)&&s.async){if(!d.$async)throw new Error("async format in sync schema");return n._`await ${h}(${o})`}return"function"==typeof c?n._`${h}(${o})`:n._`${h}.test(${o})`}())}())}};t.default=o},32884(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=[r(40329).default];t.default=n},73929(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},3767(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),s=r(72482),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>n._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:a,schemaCode:i,schema:c}=e;a||c&&"object"==typeof c?e.fail$data(n._`!${(0,o.useFunc)(t,s.default)}(${r}, ${i})`):e.fail(n._`${c} !== ${r}`)}};t.default=a},64715(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),s=r(72482),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>n._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:a,schema:i,schemaCode:c,it:l}=e;if(!a&&0===i.length)throw new Error("enum must have non-empty array");const u=i.length>=l.opts.loopEnum;let d;const f=()=>null!==d&&void 0!==d?d:d=(0,o.useFunc)(t,s.default);let h;if(u||a)h=t.let("valid"),e.block$data(h,(function(){t.assign(h,!1),t.forOf("v",c,(e=>t.if(n._`${f()}(${r}, ${e})`,(()=>t.assign(h,!0).break()))))}));else{if(!Array.isArray(i))throw new Error("ajv implementation error");const e=t.const("vSchema",c);h=(0,n.or)(...i.map(((t,o)=>function(e,t){const o=i[t];return"object"===typeof o&&null!==o?n._`${f()}(${r}, ${e}[${t}])`:n._`${r} === ${o}`}(e,o))))}e.pass(h)}};t.default=a},92348(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(80450),o=r(56711),s=r(83875),a=r(50302),i=r(38094),c=r(4267),l=r(99347),u=r(42785),d=r(3767),f=r(64715),h=[n.default,o.default,s.default,a.default,i.default,c.default,l.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default];t.default=h},99347(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:o}=e,s="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`${r}.length ${s} ${o}`)}};t.default=o},83875(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),s=r(82261),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:a,it:i}=e,c="maxLength"===t?n.operators.GT:n.operators.LT,l=!1===i.opts.unicode?n._`${r}.length`:n._`${(0,o.useFunc)(e.gen,s.default)}(${r})`;e.fail$data(n._`${l} ${c} ${a}`)}};t.default=a},80450(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=n.operators,s={maximum:{okStr:"<=",ok:o.LTE,fail:o.GT},minimum:{okStr:">=",ok:o.GTE,fail:o.LT},exclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},exclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},a={message:({keyword:e,schemaCode:t})=>n.str`must be ${s[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${s[e].okStr}, limit: ${t}}`},i={keyword:Object.keys(s),type:"number",schemaType:"number",$data:!0,error:a,code(e){const{keyword:t,data:r,schemaCode:o}=e;e.fail$data(n._`${r} ${s[t].fail} ${o} || isNaN(${r})`)}};t.default=i},38094(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:o}=e,s="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`Object.keys(${r}).length ${s} ${o}`)}};t.default=o},56711(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>n.str`must be multiple of ${e}`,params:({schemaCode:e})=>n._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:o,it:s}=e,a=s.opts.multipleOfPrecision,i=t.let("res"),c=a?n._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:n._`${i} !== parseInt(${i})`;e.fail$data(n._`(${o} === 0 || (${i} = ${r}/${o}, ${c}))`)}};t.default=o},50302(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(21085),o=r(93789),s={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>o.str`must match pattern "${e}"`,params:({schemaCode:e})=>o._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:s,schemaCode:a,it:i}=e,c=i.opts.unicodeRegExp?"u":"",l=r?o._`(new RegExp(${a}, ${c}))`:(0,n.usePattern)(e,s);e.fail$data(o._`!${l}.test(${t})`)}};t.default=s},4267(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(21085),o=r(93789),s=r(7083),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>o.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>o._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:a,data:i,$data:c,it:l}=e,{opts:u}=l;if(!c&&0===r.length)return;const d=r.length>=u.loopRequired;if(l.allErrors?function(){if(d||c)e.block$data(o.nil,f);else for(const t of r)(0,n.checkReportMissingProp)(e,t)}():function(){const s=t.let("missing");if(d||c){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,s){e.setParams({missingProperty:r}),t.forOf(r,a,(()=>{t.assign(s,(0,n.propertyInData)(t,i,r,u.ownProperties)),t.if((0,o.not)(s),(()=>{e.error(),t.break()}))}),o.nil)}(s,r))),e.ok(r)}else t.if((0,n.checkMissingProp)(e,r,s)),(0,n.reportMissingProp)(e,s),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null===t||void 0===t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;(0,s.checkStrictMode)(l,t,l.opts.strictRequired)}}function f(){t.forOf("prop",a,(r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,i,r,u.ownProperties),(()=>e.error()))}))}}};t.default=a},42785(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(28840),o=r(93789),s=r(7083),a=r(72482),i={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>o.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>o._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:i,schema:c,parentSchema:l,schemaCode:u,it:d}=e;if(!i&&!c)return;const f=t.let("valid"),h=l.items?(0,n.getSchemaTypes)(l.items):[];function m(s,a){const i=t.name("item"),c=(0,n.checkDataTypes)(h,i,d.opts.strictNumbers,n.DataType.Wrong),l=t.const("indices",o._`{}`);t.for(o._`;${s}--;`,(()=>{t.let(i,o._`${r}[${s}]`),t.if(c,o._`continue`),h.length>1&&t.if(o._`typeof ${i} == "string"`,o._`${i} += "_"`),t.if(o._`typeof ${l}[${i}] == "number"`,(()=>{t.assign(a,o._`${l}[${i}]`),e.error(),t.assign(f,!1).break()})).code(o._`${l}[${i}] = ${s}`)}))}function p(n,i){const c=(0,s.useFunc)(t,a.default),l=t.name("outer");t.label(l).for(o._`;${n}--;`,(()=>t.for(o._`${i} = ${n}; ${i}--;`,(()=>t.if(o._`${c}(${r}[${n}], ${r}[${i}])`,(()=>{e.error(),t.assign(f,!1).break(l)}))))))}e.block$data(f,(function(){const n=t.let("i",o._`${r}.length`),s=t.let("j");e.setParams({i:n,j:s}),t.assign(f,!0),t.if(o._`${n} > 1`,(()=>(h.length>0&&!h.some((e=>"object"===e||"array"===e))?m:p)(n,s)))}),o._`${u} === false`),e.ok(f)}};t.default=i},32017(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,s;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!==o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(s=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(r,s[o]))return!1;for(o=n;0!==o--;){var a=s[o];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}},7106(e){"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,o,s,a,i,c,l,u,d){if(s&&"object"==typeof s&&!Array.isArray(s)){for(var f in n(s,a,i,c,l,u,d),s){var h=s[f];if(Array.isArray(h)){if(f in t.arrayKeywords)for(var m=0;m<h.length;m++)r(e,n,o,h[m],a+"/"+f+"/"+m,i,a,f,s,m)}else if(f in t.propsKeywords){if(h&&"object"==typeof h)for(var p in h)r(e,n,o,h[p],a+"/"+f+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),i,a,f,s,p)}else(f in t.keywords||e.allKeys&&!(f in t.skipKeywords))&&r(e,n,o,h,a+"/"+f,i,a,f,s)}o(s,a,i,c,l,u,d)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.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}},56239(e,t){var r=/~/,n=/~[01]/g;function o(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function s(e){return r.test(e)?e.replace(n,o):e}function a(e){if("string"===typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!==typeof t&&"number"!==typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function i(e,t){if("object"!==typeof e)throw new Error("Invalid input object.");var r=(t=a(t)).length;if(1===r)return e;for(var n=1;n<r;){if(e=e[s(t[n++])],r===n)return e;if("object"!==typeof e||null===e)return}}function c(e,t,r){if("object"!==typeof e)throw new Error("Invalid input object.");if(0===(t=a(t)).length)throw new Error("Invalid JSON pointer for set.");return function(e,t,r){for(var n,o,a=1,i=t.length;a<i;){if("constructor"===t[a]||"prototype"===t[a]||"__proto__"===t[a])return e;if(n=s(t[a++]),o=i>a,"undefined"===typeof e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),o&&(""!==t[a]&&t[a]<1/0||"-"===t[a]?e[n]=[]:e[n]={})),!o)break;e=e[n]}var c=e[n];return void 0===r?delete e[n]:e[n]=r,c}(e,t,r)}t.get=i,t.set=c,t.compile=function(e){var t=a(e);return{get:function(e){return i(e,t)},set:function(e,r){return c(e,t,r)}}}},48343(e,t,r){"use strict";const{normalizeIPv6:n,removeDotSegments:o,recomposeAuthority:s,normalizeComponentEncoding:a,isIPv4:i,nonSimpleDomain:c}=r(34834),{SCHEMES:l,getSchemeHandler:u}=r(343);function d(e,t,r,n){const s={};return n||(e=m(f(e,r),r),t=m(f(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(s.scheme=t.scheme,s.userinfo=t.userinfo,s.host=t.host,s.port=t.port,s.path=o(t.path||""),s.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(s.userinfo=t.userinfo,s.host=t.host,s.port=t.port,s.path=o(t.path||""),s.query=t.query):(t.path?("/"===t.path[0]?s.path=o(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?s.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:s.path=t.path:s.path="/"+t.path,s.path=o(s.path)),s.query=t.query):(s.path=e.path,void 0!==t.query?s.query=t.query:s.query=e.query),s.userinfo=e.userinfo,s.host=e.host,s.port=e.port),s.scheme=e.scheme),s.fragment=t.fragment,s}function f(e,t){const r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),a=[],i=u(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n),void 0!==r.path&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),void 0!==r.scheme&&(r.path=r.path.split("%3A").join(":")))),"suffix"!==n.reference&&r.scheme&&a.push(r.scheme,":");const c=s(r);if(void 0!==c&&("suffix"!==n.reference&&a.push("//"),a.push(c),r.path&&"/"!==r.path[0]&&a.push("/")),void 0!==r.path){let e=r.path;n.absolutePath||i&&i.absolutePath||(e=o(e)),void 0===c&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),a.push(e)}return void 0!==r.query&&a.push("?",r.query),void 0!==r.fragment&&a.push("#",r.fragment),a.join("")}const h=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function m(e,t){const r=Object.assign({},t),o={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let s=!1;"suffix"===r.reference&&(e=r.scheme?r.scheme+":"+e:"//"+e);const a=e.match(h);if(a){if(o.scheme=a[1],o.userinfo=a[3],o.host=a[4],o.port=parseInt(a[5],10),o.path=a[6]||"",o.query=a[7],o.fragment=a[8],isNaN(o.port)&&(o.port=a[5]),o.host){if(!1===i(o.host)){const e=n(o.host);o.host=e.host.toLowerCase(),s=e.isIPV6}else s=!0}void 0!==o.scheme||void 0!==o.userinfo||void 0!==o.host||void 0!==o.port||void 0!==o.query||o.path?void 0===o.scheme?o.reference="relative":void 0===o.fragment?o.reference="absolute":o.reference="uri":o.reference="same-document",r.reference&&"suffix"!==r.reference&&r.reference!==o.reference&&(o.error=o.error||"URI is not a "+r.reference+" reference.");const t=u(r.scheme||o.scheme);if(!r.unicodeSupport&&(!t||!t.unicodeSupport)&&o.host&&(r.domainHost||t&&t.domainHost)&&!1===s&&c(o.host))try{o.host=URL.domainToASCII(o.host.toLowerCase())}catch(l){o.error=o.error||"Host's domain name can not be converted to ASCII: "+l}(!t||t&&!t.skipNormalize)&&(-1!==e.indexOf("%")&&(void 0!==o.scheme&&(o.scheme=unescape(o.scheme)),void 0!==o.host&&(o.host=unescape(o.host))),o.path&&(o.path=escape(unescape(o.path))),o.fragment&&(o.fragment=encodeURI(decodeURIComponent(o.fragment)))),t&&t.parse&&t.parse(o,r)}else o.error=o.error||"URI can not be parsed.";return o}const p={SCHEMES:l,normalize:function(e,t){return"string"===typeof e?e=f(m(e,t),t):"object"===typeof e&&(e=m(f(e,t),t)),e},resolve:function(e,t,r){const n=r?Object.assign({scheme:"null"},r):{scheme:"null"},o=d(m(e,n),m(t,n),n,!0);return n.skipEscape=!0,f(o,n)},resolveComponent:d,equal:function(e,t,r){return"string"===typeof e?(e=unescape(e),e=f(a(m(e,r),!0),{...r,skipEscape:!0})):"object"===typeof e&&(e=f(a(e,!0),{...r,skipEscape:!0})),"string"===typeof t?(t=unescape(t),t=f(a(m(t,r),!0),{...r,skipEscape:!0})):"object"===typeof t&&(t=f(a(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:f,parse:m};e.exports=p,e.exports.default=p,e.exports.fastUri=p},343(e,t,r){"use strict";const{isUUID:n}=r(34834),o=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,s=["http","https","ws","wss","urn","urn:uuid"];function a(e){return!0===e.secure||!1!==e.secure&&(!!e.scheme&&(3===e.scheme.length&&("w"===e.scheme[0]||"W"===e.scheme[0])&&("s"===e.scheme[1]||"S"===e.scheme[1])&&("s"===e.scheme[2]||"S"===e.scheme[2])))}function i(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function c(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const l={scheme:"http",domainHost:!0,parse:i,serialize:c},u={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=a(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(a(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"===typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,r]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}},d={http:l,https:{scheme:"https",domainHost:l.domainHost,parse:i,serialize:c},ws:u,wss:{scheme:"wss",domainHost:u.domainHost,parse:u.parse,serialize:u.serialize},urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;const r=e.path.match(o);if(r){const n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];const o=f(`${n}:${t.nid||e.nid}`);e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),o=f(`${r}:${t.nid||n}`);o&&(e=o.serialize(e,t));const s=e,a=e.nss;return s.path=`${n||t.nid}:${a}`,t.skipEscape=!0,s},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,t){const r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&n(r.uuid)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};function f(e){return e&&(d[e]||d[e.toLowerCase()])||void 0}Object.setPrototypeOf(d,null),e.exports={wsIsSecure:a,SCHEMES:d,isValidSchemeName:function(e){return-1!==s.indexOf(e)},getSchemeHandler:f}},34834(e){"use strict";const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function n(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(r=e[n].charCodeAt(0),48!==r){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(r=e[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function s(e){return e.length=0,!0}function a(e,t,r){if(e.length){const o=n(e);if(""===o)return r.error=!0,!1;t.push(o),e.length=0}return!0}function i(e){if(function(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}(e,":")<2)return{host:e,isIPV6:!1};const t=function(e){let t=0;const r={error:!1,address:"",zone:""},o=[],i=[];let c=!1,l=!1,u=a;for(let n=0;n<e.length;n++){const a=e[n];if("["!==a&&"]"!==a)if(":"!==a)if("%"===a){if(!u(i,o,r))break;u=s}else i.push(a);else{if(!0===c&&(l=!0),!u(i,o,r))break;if(++t>7){r.error=!0;break}n>0&&":"===e[n-1]&&(c=!0),o.push(":")}}return i.length&&(u===s?r.zone=i.join(""):l?o.push(i.join("")):o.push(n(i))),r.address=o.join(""),r}(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,r=t.address;return t.zone&&(e+="%"+t.zone,r+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:r}}}e.exports={nonSimpleDomain:o,recomposeAuthority:function(e){const t=[];if(void 0!==e.userinfo&&(t.push(e.userinfo),t.push("@")),void 0!==e.host){let n=unescape(e.host);if(!r(n)){const t=i(n);n=!0===t.isIPV6?`[${t.escapedHost}]`:e.host}t.push(n)}return"number"!==typeof e.port&&"string"!==typeof e.port||(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0},normalizeComponentEncoding:function(e,t){const r=!0!==t?escape:unescape;return void 0!==e.scheme&&(e.scheme=r(e.scheme)),void 0!==e.userinfo&&(e.userinfo=r(e.userinfo)),void 0!==e.host&&(e.host=r(e.host)),void 0!==e.path&&(e.path=r(e.path)),void 0!==e.query&&(e.query=r(e.query)),void 0!==e.fragment&&(e.fragment=r(e.fragment)),e},removeDotSegments:function(e){let t=e;const r=[];let n=-1,o=0;for(;o=t.length;){if(1===o){if("."===t)break;if("/"===t){r.push("/");break}r.push(t);break}if(2===o){if("."===t[0]){if("."===t[1])break;if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){r.push("/");break}}else if(3===o&&"/.."===t){0!==r.length&&r.pop(),r.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==r.length&&r.pop();continue}}if(-1===(n=t.indexOf("/",1))){r.push(t);break}r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")},isIPv4:r,isUUID:t,normalizeIPv6:i,stringArrayToHexStripped:n}},564(e,t,r){"use strict";r.d(t,{Ay:()=>eo});var n=r(74848),o=r(96540),s=r(55780),a=r(20903),i=r(77500),c=r(66401),l=r(62315),u=r(35704),d=r(36904),f=r(34916);const h=function(e,t){return null==e||(0,f.A)(e,t)};var m=r(23149),p=r(5664);function y(){return(0,p.A)("rjsf-array-item-")}function g(e){return Array.isArray(e)?e.map((e=>({key:y(),item:e}))):[]}function v(e){return Array.isArray(e)?e.map((e=>e.item)):[]}function $(e){return Array.isArray(e.type)?!e.type.includes("null"):"null"!==e.type}function b(e,t,r,n){let{addable:o}=(0,s.$R)(n,e.globalUiOptions);return!1!==o&&(o=void 0===t.maxItems||r.length<t.maxItems),o}function _(e,t,r,n){if("function"!==typeof e.items)return e.items;try{return e.items(t,r,n)}catch(Ve){return void console.error(`Error executing dynamic uiSchema.items function for item at index ${r}:`,Ve)}}function w(e,t){const{schemaUtils:r,globalFormOptions:n}=e;let o=t.items;return n.useFallbackUiForUnsupportedType&&!o?o={}:(0,s.nQ)(t)&&(0,s.Hh)(t)&&(o=t.additionalItems),r.getDefaultFormState(o)}function A(e){const{schema:t,fieldPathId:r,uiSchema:o,formData:a=[],disabled:i=!1,readonly:c=!1,autofocus:l=!1,required:u=!1,placeholder:d,onBlur:f,onFocus:h,registry:m,rawErrors:p,name:y,onSelectChange:g}=e,{widgets:v,schemaUtils:$,globalFormOptions:b,globalUiOptions:_}=m,w=$.retrieveSchema(t.items,a),A=o?.items??{},S=(0,s.f9)(w,A),{widget:j="select",title:E,...P}=(0,s.$R)(o,_),x=(0,s.Bt)(t,j,v),k=E??t.title??y,O=$.getDisplayLabel(t,o,_),N=(0,s.lB)((0,s.Yg)("",b,r,!0));return(0,n.jsx)(x,{id:N[s.K0],name:y,multiple:!0,onChange:g,onBlur:f,onFocus:h,options:{...P,enumOptions:S},schema:t,uiSchema:o,registry:m,value:a,disabled:i,readonly:c,required:u,label:k,hideLabel:!O,placeholder:d,autofocus:l,rawErrors:p,htmlName:N.name})}function S(e){const{schema:t,fieldPathId:r,uiSchema:o,disabled:a=!1,readonly:i=!1,autofocus:c=!1,required:l=!1,hideError:u,placeholder:d,onBlur:f,onFocus:h,formData:m=[],registry:p,rawErrors:y,name:g,onSelectChange:v}=e,{widgets:$,schemaUtils:b,globalFormOptions:_,globalUiOptions:w}=p,{widget:A,title:S,...j}=(0,s.$R)(o,w),E=(0,s.Bt)(t,A,$),P=S??t.title??g,x=b.getDisplayLabel(t,o,w),k=(0,s.lB)((0,s.Yg)("",_,r,!0));return(0,n.jsx)(E,{id:k[s.K0],name:g,multiple:!0,onChange:v,onBlur:f,onFocus:h,options:j,schema:t,uiSchema:o,registry:p,value:m,disabled:a,readonly:i,hideError:u,required:l,label:P,hideLabel:!x,placeholder:d,autofocus:c,rawErrors:y,htmlName:k.name})}function j(e){const{schema:t,uiSchema:r,fieldPathId:o,name:a,disabled:i=!1,readonly:c=!1,autofocus:l=!1,required:u=!1,onBlur:d,onFocus:f,registry:h,formData:m=[],rawErrors:p,onSelectChange:y}=e,{widgets:g,schemaUtils:v,globalFormOptions:$,globalUiOptions:b}=h,{widget:_="files",title:w,...A}=(0,s.$R)(r,b),S=(0,s.Bt)(t,_,g),j=w??t.title??a,E=v.getDisplayLabel(t,r,b),P=(0,s.lB)((0,s.Yg)("",$,o,!0));return(0,n.jsx)(S,{options:A,id:P[s.K0],name:a,multiple:!0,onChange:y,onBlur:d,onFocus:f,schema:t,uiSchema:r,value:m,disabled:i,readonly:c,required:u,registry:h,autofocus:l,rawErrors:p,label:j,hideLabel:!E,htmlName:P.name})}function E(e){const{itemKey:t,index:r,name:a,disabled:i,hideError:c,readonly:l,registry:u,uiOptions:d,parentUiSchema:f,canAdd:h,canRemove:m=!0,canMoveUp:p,canMoveDown:y,itemSchema:g,itemData:v,itemUiSchema:b,itemFieldPathId:_,itemErrorSchema:w,autofocus:A,onBlur:S,onFocus:j,onChange:E,rawErrors:P,totalItems:x,title:k,handleAddItem:O,handleCopyItem:N,handleRemoveItem:C,handleReorderItems:I}=e,{schemaUtils:D,fields:{ArraySchemaField:R,SchemaField:T},globalUiOptions:F}=u,M=(0,s.lB)(_),U=R||T,V=(0,s.$F)("ArrayFieldItemTemplate",u,d),z=D.getDisplayLabel(g,b,F),{description:q}=(0,s.$R)(b),L=!!q||!!g.description,{orderable:B=!0,removable:K=!0,copyable:G=!1}=d,W={moveUp:B&&p,moveDown:B&&y,copy:G&&h,remove:K&&m,toolbar:!1};W.toolbar=Object.keys(W).some((e=>W[e]));const H=(0,o.useCallback)((e=>{O(e,r+1)}),[O,r]),J=(0,o.useCallback)((e=>{N(e,r)}),[N,r]),Z=(0,o.useCallback)((e=>{C(e,r)}),[C,r]),Y=(0,o.useCallback)((e=>{I(e,r,r-1)}),[I,r]),X=(0,o.useCallback)((e=>{I(e,r,r+1)}),[I,r]),Q={children:(0,n.jsx)(U,{name:a,title:k,index:r,schema:g,uiSchema:b,formData:v,errorSchema:w,fieldPathId:M,required:$(g),onChange:E,onBlur:S,onFocus:j,registry:u,disabled:i,readonly:l,hideError:c,autofocus:A,rawErrors:P}),buttonsProps:{fieldPathId:M,disabled:i,readonly:l,canAdd:h,hasCopy:W.copy,hasMoveUp:W.moveUp,hasMoveDown:W.moveDown,hasRemove:W.remove,index:r,totalItems:x,onAddItem:H,onCopyItem:J,onRemoveItem:Z,onMoveUpItem:Y,onMoveDownItem:X,registry:u,schema:g,uiSchema:b},itemKey:t,className:"rjsf-array-item",disabled:i,hasToolbar:W.toolbar,index:r,totalItems:x,readonly:l,registry:u,schema:g,uiSchema:b,parentUiSchema:f,displayLabel:z,hasDescription:L};return(0,n.jsx)(V,{...Q})}function P(e){const{schema:t,uiSchema:r={},errorSchema:o,fieldPathId:a,formData:i,name:c,title:l,disabled:u=!1,readonly:d=!1,autofocus:f=!1,required:h=!1,hideError:p=!1,registry:y,onBlur:g,onFocus:$,rawErrors:w,onChange:A,keyedFormData:S,handleAddItem:j,handleCopyItem:P,handleRemoveItem:x,handleReorderItems:k}=e,O=t.title||l||c,{schemaUtils:N,fields:C,formContext:I,globalFormOptions:D,globalUiOptions:R}=y,{OptionalDataControlsField:T}=C,F=(0,s.$R)(r,R),M=(0,m.A)(t.items)?t.items:{},U=N.retrieveSchema(M),V=v(S),z=(0,s.II)(y,t,h,r),q=(0,s.Uc)(i),L=b(y,t,V,r)&&(!z||q),B=q?S:[],K=z?" rjsf-optional-array-field":"",G=e.childFieldPathId??a,W=z?(0,n.jsx)(T,{...e,fieldPathId:G}):void 0,H={canAdd:L,items:B.map(((e,t)=>{const{key:a,item:i}=e,l=i,m=N.retrieveSchema(M,l),v=o?o[t]:void 0,b=(0,s.Yg)(t,D,G),C=_(r,i,t,I),R={itemKey:a,index:t,name:c&&`${c}-${t}`,registry:y,uiOptions:F,hideError:p,readonly:d,disabled:u,required:h,title:O?`${O}-${t+1}`:void 0,canAdd:L,canMoveUp:t>0,canMoveDown:t<V.length-1,itemSchema:m,itemFieldPathId:b,itemErrorSchema:v,itemData:l,itemUiSchema:C,autofocus:f&&0===t,onBlur:g,onFocus:$,rawErrors:w,totalItems:S.length,handleAddItem:j,handleCopyItem:P,handleRemoveItem:x,handleReorderItems:k,onChange:A};return(0,n.jsx)(E,{...R},a)})),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${U.type}${K}`,disabled:u,fieldPathId:a,uiSchema:r,onAddClick:j,readonly:d,required:h,schema:t,title:O,formData:V,rawErrors:w,registry:y,optionalDataControl:W},J=(0,s.$F)("ArrayFieldTemplate",y,F);return(0,n.jsx)(J,{...H})}function x(e){const{schema:t,uiSchema:r={},formData:o,errorSchema:a,fieldPathId:i,name:c,title:l,disabled:u=!1,readonly:d=!1,autofocus:f=!1,required:h=!1,hideError:p=!1,registry:y,onBlur:g,onFocus:v,rawErrors:$,keyedFormData:w,onChange:A,handleAddItem:S,handleCopyItem:j,handleRemoveItem:P,handleReorderItems:x}=e;let{formData:k=[]}=e;const O=t.title||l||c,{schemaUtils:N,fields:C,formContext:I,globalFormOptions:D,globalUiOptions:R}=y,T=(0,s.$R)(r,R),{OptionalDataControlsField:F}=C,M=(0,s.II)(y,t,h,r),U=(0,s.Uc)(o),V=((0,m.A)(t.items)?t.items:[]).map(((e,t)=>N.retrieveSchema(e,k[t]))),z=(0,m.A)(t.additionalItems)?N.retrieveSchema(t.additionalItems,o):null,q=e.childFieldPathId??i;k.length<V.length&&(k=k.concat(new Array(V.length-k.length)));const L=U?w:[],B=M?" rjsf-optional-array-field":"",K=M?(0,n.jsx)(F,{...e,fieldPathId:q}):void 0,G=b(y,t,k,r)&&!!z&&(!M||U),W={canAdd:G,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${B}`,disabled:u,fieldPathId:i,formData:o,items:L.map(((e,o)=>{const{key:i,item:l}=e,b=l,C=o>=V.length,R=(C&&(0,m.A)(t.additionalItems)?N.retrieveSchema(t.additionalItems,b):V[o])||{},F=(0,s.Yg)(o,D,q);let M;M=C?r.additionalItems:Array.isArray(r.items)?r.items[o]:_(r,l,o,I);const U=a?a[o]:void 0,z={index:o,itemKey:i,name:c&&`${c}-${o}`,registry:y,uiOptions:T,hideError:p,readonly:d,disabled:u,required:h,title:O?`${O}-${o+1}`:void 0,canAdd:G,canRemove:C,canMoveUp:o>=V.length+1,canMoveDown:C&&o<k.length-1,itemSchema:R,itemData:b,itemUiSchema:M,itemFieldPathId:F,itemErrorSchema:U,autofocus:f&&0===o,onBlur:g,onFocus:v,rawErrors:$,totalItems:w.length,onChange:A,handleAddItem:S,handleCopyItem:j,handleRemoveItem:P,handleReorderItems:x};return(0,n.jsx)(E,{...z},i)})),onAddClick:S,readonly:d,required:h,registry:y,schema:t,uiSchema:r,title:O,errorSchema:a,rawErrors:$,optionalDataControl:K},H=(0,s.$F)("ArrayFieldTemplate",y,T);return(0,n.jsx)(H,{...W})}function k(e){const{schema:t,uiSchema:r,errorSchema:i,fieldPathId:c,registry:l,formData:d,onChange:f}=e,{globalFormOptions:h,schemaUtils:m,translateString:p}=l,{keyedFormData:$,updateKeyedFormData:b}=function(e=[]){const t=(0,o.useMemo)((()=>(0,s.wM)(e)),[e]),[r,n]=(0,o.useState)((()=>({formDataHash:t,keyedFormData:g(e)})));let{keyedFormData:a,formDataHash:i}=r;if(t!==i){const r=Array.isArray(e)?e:[],o=a||[];a=r.length===o.length?o.map(((e,t)=>({key:e.key,item:r[t]}))):g(r),i=t,n({formDataHash:i,keyedFormData:a})}const c=(0,o.useCallback)((e=>{const t=v(e),r=(0,s.wM)(t);return n({formDataHash:r,keyedFormData:e}),t}),[]);return{keyedFormData:a,updateKeyedFormData:c}}(d),_=e.childFieldPathId??c,E=(0,o.useCallback)(((e,r)=>{let n;if(e&&e.preventDefault(),i){n={};for(const e in i){const t=parseInt(e);void 0===r||t<r?(0,u.A)(n,[t],i[e]):t>=r&&(0,u.A)(n,[t+1],i[e])}}const o={key:y(),item:w(l,t)},s=[...$];void 0!==r?s.splice(r,0,o):s.push(o),f(b(s),_.path,n)}),[$,l,t,f,b,i,_]),k=(0,o.useCallback)(((e,t)=>{let r;if(e&&e.preventDefault(),i){r={};for(const e in i){const n=parseInt(e);n<=t?(0,u.A)(r,[n],i[e]):n>t&&(0,u.A)(r,[n+1],i[e])}}const n={key:y(),item:(0,a.A)($[t].item)},o=[...$];void 0!==t?o.splice(t+1,0,n):o.push(n),f(b(o),_.path,r)}),[$,f,b,i,_]),O=(0,o.useCallback)(((e,t)=>{let r;if(e&&e.preventDefault(),i){r={};for(const e in i){const n=parseInt(e);n<t?(0,u.A)(r,[n],i[e]):n>t&&(0,u.A)(r,[n-1],i[e])}}const n=$.filter(((e,r)=>r!==t));f(b(n),_.path,r)}),[$,f,b,i,_]),N=(0,o.useCallback)(((e,t,r)=>{let n;if(e&&(e.preventDefault(),e.currentTarget.blur()),i){n={};for(const e in i){const o=parseInt(e);o==t?(0,u.A)(n,[r],i[t]):o==r?(0,u.A)(n,[t],i[r]):(0,u.A)(n,[e],i[o])}}const o=function(){const e=$.slice();return e.splice(t,1),e.splice(r,0,$[t]),e}();f(b(o),_.path,n)}),[$,f,b,i,_]),C=(0,o.useCallback)(((e,t,r,n)=>{f(void 0===e?null:e,t,r,n)}),[f]),I=(0,o.useCallback)((e=>{f(e,_.path,void 0,_?.[s.K0])}),[f,_]),D={...e,formData:d,fieldPathId:_,onSelectChange:I},R={...e,handleAddItem:E,handleCopyItem:k,handleRemoveItem:O,handleReorderItems:N,keyedFormData:$,onChange:C};if(!(s.ZN in t)){if(!h.useFallbackUiForUnsupportedType){const e=(0,s.$R)(r),o=(0,s.$F)("UnsupportedFieldTemplate",l,e);return(0,n.jsx)(o,{schema:t,fieldPathId:c,reason:p(s.Zl.MissingItems),registry:l})}const e={...t,[s.ZN]:{type:void 0}};D.schema=e,R.schema=e}return m.isMultiSelect(D.schema)?(0,n.jsx)(A,{...D}):(0,s.ar)(r)?(0,n.jsx)(S,{...D}):(0,s.nQ)(D.schema)?(0,n.jsx)(x,{...R}):m.isFilesArray(D.schema,r)?(0,n.jsx)(j,{...D}):(0,n.jsx)(P,{...R})}const O=function(e){const{schema:t,name:r,uiSchema:a,fieldPathId:i,formData:c,registry:l,required:u,disabled:d,readonly:f,hideError:h,autofocus:p,title:y,onChange:g,onFocus:v,onBlur:$,rawErrors:b}=e,{title:_}=t,{widgets:w,translateString:A,globalUiOptions:S}=l,{widget:j="checkbox",title:E,label:P=!0,enumNames:x,...k}=(0,s.$R)(a,S),O=(0,s.Bt)(t,j,w),N=A(s.Zl.YesLabel),C=A(s.Zl.NoLabel);let I;const D=E??_??y??r;if(Array.isArray(t.oneOf))I=(0,s.f9)({oneOf:t.oneOf.map((e=>{if((0,m.A)(e))return{...e,title:e.title||(!0===e.const?N:C)}})).filter((e=>e))},a);else{const e=t.enum??[!0,!1];I=!x&&2===e.length&&e.every((e=>"boolean"===typeof e))?[{value:e[0],label:e[0]?N:C},{value:e[1],label:e[1]?N:C}]:(0,s.f9)({enum:e},a)}const R=(0,o.useCallback)(((e,t,r)=>g(e,i.path,t,r)),[g,i]);return(0,n.jsx)(O,{options:{...k,enumOptions:I},schema:t,uiSchema:a,id:i.$id,name:r,onChange:R,onFocus:v,onBlur:$,label:D,hideLabel:!P,value:c,required:u,disabled:d,readonly:f,hideError:h,registry:l,autofocus:p,rawErrors:b,htmlName:i.name})};function N(e){const{id:t,formData:r,displayLabel:a=!0,schema:i,name:c,uiSchema:l,required:u,disabled:d=!1,readonly:f=!1,onBlur:h,onFocus:m,registry:p,fieldPathId:y,onChange:g,errorSchema:v}=e,{translateString:$,fields:b,globalFormOptions:_}=p,[w,A]=(0,o.useState)(function(e){const t=typeof e;return"string"===t||"number"===t||"boolean"===t?t:"object"===t?Array.isArray(e)?"array":"object":"string"}(r)),S=(0,s.$R)(l),j=(0,s.lB)((0,s.Yg)("__internal_type_selector",_,y)),E=$(s.Zl.Type),P=(0,o.useMemo)((()=>({type:"string",enum:["string","number","boolean","object","array"],default:"string",title:E})),[E]);if(!_.useFallbackUiForUnsupportedType){const{reason:t=$(s.Zl.UnknownFieldType,[String(i.type)])}=e,r=(0,s.$F)("UnsupportedFieldTemplate",p,S);return(0,n.jsx)(r,{schema:i,fieldPathId:y,reason:t,registry:p})}const x=(0,s.$F)("FallbackFieldTemplate",p,S),{SchemaField:k}=b;return(0,n.jsx)(x,{schema:i,registry:p,typeSelector:(0,n.jsx)(k,{fieldPathId:j,name:`${c}__fallback_type`,schema:P,formData:w,onChange:e=>{null!=e&&(A(e),g(function(e,t){switch(t){case"string":return String(e);case"number":{const t=Number(e);return isNaN(t)?0:t}case"boolean":return Boolean(e);default:return e}}(r,e),y.path,v,t))},onBlur:h,onFocus:m,registry:p,hideLabel:!a,disabled:d,readonly:f,required:u},r?(0,s.wM)(r):"__empty__"),schemaField:(0,n.jsx)(k,{...e,schema:{type:w,title:$(s.Zl.Value),..."object"===w&&{additionalProperties:!0}}})})}var C=r(72641),I=r(94288),D=r(99922),R=r(92049);const T=function(e,t){return((0,R.A)(e)?C.A:I.A)(e,(0,D.A)(t))};var F=r(34098),M=r(39622),U=r(63338),V=r(38446),z=r(9703),q=r(62250),L=r(45572);const B=function(e,t){return(0,L.A)(t,(function(t){return e[t]}))};var K=r(27422);const G=function(e){return null==e?[]:B(e,(0,K.A)(e))};var W=Math.max;const H=function(e,t,r,n){e=(0,V.A)(e)?e:G(e),r=r&&!n?(0,q.A)(r):0;var o=e.length;return r<0&&(r=W(o+r,0)),(0,z.A)(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&(0,U.A)(e,t,r)>-1};var J=r(8300),Z=r(83149),Y=r(87809),X=r(52789),Q=r(64099),ee=Math.min;const te=function(e,t,r){for(var n=r?Y.A:Z.A,o=e[0].length,s=e.length,a=s,i=Array(s),c=1/0,l=[];a--;){var u=e[a];a&&t&&(u=(0,L.A)(u,(0,X.A)(t))),c=ee(u.length,c),i[a]=!r&&(t||o>=120&&u.length>=120)?new J.A(a&&u):void 0}u=e[0];var d=-1,f=i[0];e:for(;++d<o&&l.length<c;){var h=u[d],m=t?t(h):h;if(h=r||0!==h?h:0,!(f?(0,Q.A)(f,m):n(l,m,r))){for(a=s;--a;){var p=i[a];if(!(p?(0,Q.A)(p,m):n(e[a],m,r)))continue e}f&&f.push(m),l.push(h)}}return l};var re=r(24326),ne=r(53533);const oe=function(e){return(0,ne.A)(e)?e:[]};const se=(0,re.A)((function(e){var t=(0,L.A)(e,oe);return t.length&&t[0]===e[0]?te(t):[]}));var ae=r(89610),ie=r(46996),ce=r(34963);const le=function(e){return void 0===e};var ue,de,fe=r(26666);!function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"}(ue||(ue={})),function(e){e.ALL="all",e.SOME="some",e.NONE="none"}(de||(de={}));const he=/^\$lookup=(.+)/,me="layoutGrid";function pe(e,t){return e??t}const ye=(0,s.cq)();function ge(e,t,r){let n={},o=e[t];if((0,ce.A)(o)){const{children:e,className:t,...a}=o;if(o=e,t){const e=t.split(" ").map((e=>(0,s.a6)(r,e,e))).join(" ");n={...a,className:e}}else n=a}if(!Array.isArray(o))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:o,gridProps:n}}function ve(e,t,r){let n;if(/^\d+?$/.test(r)&&e&&"array"===e?.type&&(0,M.A)(e,s.ZN)){const o=Number(r),a=e[s.ZN];n=Array.isArray(a)?o>a.length?(0,fe.A)(a):a[o]:a,t={[s.K0]:t[s.K0],path:[...t.path.slice(0,t.path.length-1),o]}}return{rawSchema:n,fieldPathId:t}}function $e(e,t){let r,o,a=null,i={};if((0,z.A)(t)||le(t))r=t??"";else{const{name:l="",render:u,...d}=t;r=l,i=d,(0,c.A)(i)||T(i,((t,r)=>{if((0,z.A)(t)){const n=he.exec(t);if(Array.isArray(n)&&n.length>1){const t=n[1];i[r]=(0,s.a6)(e,t,t)}}})),a=function(e,t){let r=e;return(0,z.A)(r)&&(r=(0,s.a6)(t,r)),(0,ae.A)(r)?r:null}(u,e),!l&&a&&(o=(0,n.jsx)(a,{...d,"data-testid":ye.uiComponent}))}return{name:r,UIComponent:a,uiProps:i,rendered:o}}function be(e){const{childrenLayoutGridSchemaId:t,...r}=e,{registry:n,schema:a,formData:i}=r,{schemaUtils:c}=n,l=c.retrieveSchema(a,i);return t.map((e=>(0,o.createElement)(Ee,{...r,key:`layoutGrid-${(0,s.wM)(e)}`,schema:l,layoutGridSchema:e})))}function _e(e){const{layoutGridSchema:t,...r}=e,{formData:o,registry:s}=r,{children:a,gridProps:c}=ge(t,ue.CONDITION,s),{operator:l,field:u="",value:d}=c;return function(e,t,r="$0m3tH1nG Un3xP3cT3d"){const n=(0,F.A)([t]).sort(),o=(0,F.A)([r]).sort();switch(e){case de.ALL:return(0,ie.A)(n,o);case de.SOME:return se(n,o).length>0;case de.NONE:return 0===se(n,o).length;default:return!1}}(l,(0,i.A)(o,u,null),d)?(0,n.jsx)(be,{...r,childrenLayoutGridSchemaId:a}):null}function we(e){const{layoutGridSchema:t,...r}=e,{registry:o,uiSchema:a}=r,{children:i,gridProps:c}=ge(t,ue.COLUMN,o),l=(0,s.$R)(a),u=(0,s.$F)("GridTemplate",o,l);return(0,n.jsx)(u,{column:!0,"data-testid":ye.col,...c,children:(0,n.jsx)(be,{...r,childrenLayoutGridSchemaId:i})})}function Ae(e){const{layoutGridSchema:t,...r}=e,{registry:o,uiSchema:a}=r,{children:i,gridProps:c}=ge(t,ue.COLUMNS,o),l=(0,s.$R)(a),u=(0,s.$F)("GridTemplate",o,l);return i.map((e=>(0,n.jsx)(u,{column:!0,"data-testid":ye.col,...c,children:(0,n.jsx)(be,{...r,childrenLayoutGridSchemaId:[e]})},`column-${(0,s.wM)(e)}`)))}function Se(e){const{layoutGridSchema:t,...r}=e,{registry:o,uiSchema:a}=r,{children:i,gridProps:c}=ge(t,ue.ROW,o),l=(0,s.$R)(a),u=(0,s.$F)("GridTemplate",o,l);return(0,n.jsx)(u,{...c,"data-testid":ye.row,children:(0,n.jsx)(be,{...r,childrenLayoutGridSchemaId:i})})}function je(e){const{gridSchema:t,schema:r,uiSchema:o,errorSchema:a,fieldPathId:l,onBlur:d,onFocus:f,formData:h,readonly:m,registry:p,layoutGridSchema:y,...g}=e,{onChange:v}=g,{fields:$}=p,{SchemaField:b,LayoutMultiSchemaField:_}=$,w=$e(p,t),{name:A,UIComponent:S,uiProps:j}=w,{schema:E,isRequired:P,isReadonly:x,optionsInfo:k,fieldPathId:O}=function(e,t,r,n,o){const{schemaUtils:a,globalFormOptions:l}=e;let u=r,d=o;const f=t.split("."),h=f.pop();let m,p=a.retrieveSchema(u,n),y=n,g=p.readOnly;f.forEach((e=>{if(d=(0,s.Yg)(e,l,d),(0,M.A)(p,s.s1))u=(0,i.A)(p,[s.s1,e],{});else if(p&&((0,M.A)(p,s.Ru)||(0,M.A)(p,s.Xo))){const t=(0,M.A)(p,s.Ru)?s.Ru:s.Xo,r=a.findSelectedOptionInXxxOf(p,e,t,y);u=(0,i.A)(r,[s.s1,e],{})}else{const t=ve(p,d,e);u=t.rawSchema??{},d=t.fieldPathId}y=(0,i.A)(y,e,{}),p=a.retrieveSchema(u,y),g=pe(p.readOnly,g)}));let v=!1;if((0,c.A)(p)&&(p=void 0),p&&h){if(p&&((0,M.A)(p,s.Ru)||(0,M.A)(p,s.Xo))){const e=(0,M.A)(p,s.Ru)?s.Ru:s.Xo;p=a.findSelectedOptionInXxxOf(p,h,e,y)}d=(0,s.Yg)(h,l,d),v=void 0!==p&&Array.isArray(p.required)&&H(p.required,h);const e=ve(p,d,h);if(e.rawSchema?(p=e.rawSchema,d=e.fieldPathId):(p=(0,i.A)(p,[s.s1,h]),p=p?a.retrieveSchema(p):p),g=pe(p?.readOnly,g),p&&((0,M.A)(p,s.Ru)||(0,M.A)(p,s.Xo))){const e=(0,M.A)(p,s.Ru)?s.Ru:s.Xo,t=(0,s.KU)(p);m={options:p[e],hasDiscriminator:!!t}}}return{schema:p,isRequired:v,isReadonly:g,optionsInfo:m,fieldPathId:d}}(p,A,r,h,l),N=(0,s.lB)(O);if(w.rendered)return w.rendered;if(E){const e=k?.hasDiscriminator?_:b,{fieldUiSchema:t,uiReadonly:r}=function(e,t,r,n,o){const a=(0,i.A)(r,[s.AK],{}),l=(0,i.A)(r,e),d={...(0,i.A)(l,[s.ce],{}),...t,...a},f={...l};(0,c.A)(d)||(0,u.A)(f,[s.ce],d),(0,c.A)(a)||(0,u.A)(f,[s.AK],a);let{readonly:h}=(0,s.$R)(f);return(!0===o||le(h)&&!0===n)&&(h=!0,(0,M.A)(d,s.jY)?(0,u.A)(f,[s.ce,s.jY],!0):(0,u.A)(f,`ui:${s.jY}`,!0)),{fieldUiSchema:f,uiReadonly:h}}(A,j,o,x,m);return(0,n.jsx)(e,{"data-testid":k?.hasDiscriminator?ye.layoutMultiSchemaField:ye.field,...g,name:A,required:P,readonly:r,schema:E,uiSchema:t,errorSchema:(0,i.A)(a,A),fieldPathId:N,formData:(0,i.A)(h,A),onChange:v,onBlur:d,onFocus:f,options:k?.options,registry:p})}return S?(0,n.jsx)(S,{"data-testid":ye.uiComponent,...g,name:A,required:P,formData:h,readOnly:!!x||m,errorSchema:a,uiSchema:o,schema:r,fieldPathId:l,onBlur:d,onFocus:f,registry:p,...j}):null}function Ee(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const o=(0,s.$R)(t);if(!r&&me in o&&(0,m.A)(o[me])&&(r=o[me]),(0,m.A)(r)){if(ue.ROW in r)return(0,n.jsx)(Se,{...e,layoutGridSchema:r});if(ue.COLUMN in r)return(0,n.jsx)(we,{...e,layoutGridSchema:r});if(ue.COLUMNS in r)return(0,n.jsx)(Ae,{...e,layoutGridSchema:r});if(ue.CONDITION in r)return(0,n.jsx)(_e,{...e,layoutGridSchema:r})}return(0,n.jsx)(je,{...e,gridSchema:r})}function Pe(e){const{fieldPathId:t,title:r,schema:o,uiSchema:a,required:i,registry:c,name:l}=e,u=(0,s.$R)(a,c.globalUiOptions),{title:d}=u,{title:f}=o,h=d||r||f||l;if(!h)return null;const m=(0,s.$F)("TitleFieldTemplate",c,u);return(0,n.jsx)(m,{id:(0,s.EH)(t),title:h,required:i,schema:o,uiSchema:a,registry:c})}Ee.TEST_IDS=ye;var xe=r(42302),ke=r(54930);function Oe(e,t,r){return e.map((({schema:e})=>e)).find((e=>{const n=(0,i.A)(e,[s.s1,t]);return(0,i.A)(n,s.uh,(0,i.A)(n,s.qC,"!@#!@$@#$!@$#"))===r}))}function Ne(e,t,r,n,o){const a=t.map((e=>r.retrieveSchema(e,o)));let i=e;(0,M.A)(e,s.Ru)?i={...e,[s.Ru]:a}:(0,M.A)(e,s.Xo)&&(i={...e,[s.Xo]:a});const c=(0,s.f9)(i,n);if(!c)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(i)}`);return c}function Ce(e){const{name:t,baseType:r,disabled:a=!1,formData:l,fieldPathId:d,onBlur:f,onChange:h,options:m,onFocus:p,registry:y,uiSchema:g,schema:v,autofocus:$,readonly:b,required:_,errorSchema:w,hideError:A=!1}=e,{widgets:S,schemaUtils:j,globalUiOptions:E}=y,[P,x]=(0,o.useState)(Ne(v,m,j,g,l)),k=(0,i.A)(d,s.K0),O=(0,s.KU)(v),N=(0,s.$F)("FieldErrorTemplate",y,m),C=(0,s.$F)("FieldTemplate",y,m),I=(0,s.wM)(v),D=(0,s.wM)(m),R=g?(0,s.wM)(g):"",T=l?(0,s.wM)(l):"";(0,o.useEffect)((()=>{x(Ne(v,m,j,g,l))}),[I,D,j,R,T]);const{widget:F=(O?"radio":"select"),title:M="",placeholder:U="",optionsSchemaSelector:V=O,hideError:z,...q}=(0,s.$R)(g);if(!V)throw new Error("No selector field provided for the LayoutMultiSchemaField");const L=(0,i.A)(l,V);let B=(0,i.A)(P[0]?.schema,[s.s1,V],{});const K=Oe(P,V,L);B=B?.type?B:{...B,type:K?.type||r};const G=(0,s.Bt)(B,F,S),W=void 0===z?A:Boolean(z),H=(0,i.A)(w,[s.s2],[]),J=(0,ke.A)(w,[s.s2]),Z=j.getDisplayLabel(v,g,E),Y={enumOptions:P,...q},X=!W&&H.length>0?(0,n.jsx)(N,{fieldPathId:d,schema:v,errors:H,registry:y}):void 0;return(0,n.jsx)(C,{fieldPathId:d,id:k,schema:v,label:(M||v.title)??"",disabled:a||Array.isArray(P)&&(0,c.A)(P),uiSchema:g,required:_,readonly:!!b,registry:y,displayLabel:Z,errors:X,onChange:h,onKeyRename:xe.A,onKeyRenameBlur:xe.A,onRemoveProperty:xe.A,children:(0,n.jsx)(G,{id:k,name:t,schema:v,label:(M||v.title)??"",disabled:a||Array.isArray(P)&&(0,c.A)(P),uiSchema:g,autofocus:$,readonly:b,required:_,registry:y,multiple:!1,rawErrors:H,hideError:W,hideLabel:!Z,errorSchema:J,placeholder:U,onChange:e=>{const t=Oe(P,V,e),r=Oe(P,V,L);let n=j.sanitizeDataForNewSchema(t,r,l);n&&t&&(n=j.getDefaultFormState(t,n,"excludeObjectChildren")),n&&(0,u.A)(n,V,e),h(n,d.path,void 0,k)},onBlur:f,onFocus:p,value:L,options:Y,htmlName:d.name})})}class Ie extends o.Component{constructor(e){super(e);const{formData:t,options:r,registry:{schemaUtils:n}}=this.props,o=r.map((e=>n.retrieveSchema(e,t)));this.state={retrievedOptions:o,selectedOption:this.getMatchingOption(0,t,o)}}componentDidUpdate(e,t){const{formData:r,options:n,fieldPathId:o}=this.props,{selectedOption:a}=this.state;let i=this.state;if(!(0,s.c2)(e.options,n)){const{registry:{schemaUtils:e}}=this.props;i={selectedOption:a,retrievedOptions:n.map((t=>e.retrieveSchema(t,r)))}}if(!(0,s.c2)(r,e.formData)&&o.$id===e.fieldPathId.$id){const{retrievedOptions:e}=i,n=this.getMatchingOption(a,r,e);t&&n!==a&&(i={selectedOption:n,retrievedOptions:e})}i!==this.state&&this.setState(i)}getMatchingOption(e,t,r){const{schema:n,registry:{schemaUtils:o}}=this.props,a=(0,s.KU)(n);return o.getClosestMatchingOption(t,r,e,a)}onOptionChange=e=>{const{selectedOption:t,retrievedOptions:r}=this.state,{formData:n,onChange:o,registry:s,fieldPathId:a}=this.props,{schemaUtils:i}=s,c=void 0!==e?parseInt(e,10):-1;if(c===t)return;const l=c>=0?r[c]:void 0,u=t>=0?r[t]:void 0;let d=i.sanitizeDataForNewSchema(l,u,n);l&&(d=i.getDefaultFormState(l,d,"excludeObjectChildren")),this.setState({selectedOption:c},(()=>{o(d,a.path,void 0,this.getFieldId())}))};getFieldId(){const{fieldPathId:e,schema:t}=this.props;return`${e.$id}${t.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:t=!1,errorSchema:r={},formData:o,onBlur:a,onFocus:l,readonly:u,required:d=!1,registry:f,schema:h,uiSchema:m}=this.props,{widgets:p,fields:y,translateString:g,globalUiOptions:v,schemaUtils:$}=f,{SchemaField:b}=y,_=(0,s.$F)("MultiSchemaFieldTemplate",f,v),w=(0,s.II)(f,h,d,m),A=(0,s.Uc)(o),{selectedOption:S,retrievedOptions:j}=this.state,{widget:E="select",placeholder:P,autofocus:x,autocomplete:k,title:O=h.title,...N}=(0,s.$R)(m,v),C=(0,s.Bt)({type:"number"},E,p),I=(0,i.A)(r,s.s2,[]),D=(0,ke.A)(r,[s.s2]),R=$.getDisplayLabel(h,m,v),T=S>=0&&j[S]||null;let F;if(T){const{required:e}=h;F=e?(0,s.dW)({required:e},T):T}let M=[];s.Ru in h&&m&&s.Ru in m?Array.isArray(m[s.Ru])?M=m[s.Ru]:console.warn(`uiSchema.oneOf is not an array for "${O||e}"`):s.Xo in h&&m&&s.Xo in m&&(Array.isArray(m[s.Xo])?M=m[s.Xo]:console.warn(`uiSchema.anyOf is not an array for "${O||e}"`));let U=m;S>=0&&M.length>S&&(U=M[S]);const V=O?s.Zl.TitleOptionPrefix:s.Zl.OptionPrefix,z=O?[O]:[],q=j.map(((e,t)=>{const{title:r=e.title}=(0,s.$R)(M[t]);return{label:r||g(V,z.concat(String(t+1))),value:t}})),L=!w||A?(0,n.jsx)(C,{id:this.getFieldId(),name:`${e}${h.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:a,onFocus:l,disabled:t||(0,c.A)(q),multiple:!1,rawErrors:I,errorSchema:D,value:S>=0?S:void 0,options:{enumOptions:q,...N},registry:f,placeholder:P,autocomplete:k,autofocus:x,label:O??e,hideLabel:!R,readonly:u}):void 0,B=F&&"null"!==F.type&&(0,n.jsx)(b,{...this.props,schema:F,uiSchema:U})||null;return(0,n.jsx)(_,{schema:h,registry:f,uiSchema:m,selector:L,optionSchemaField:B})}}const De=Ie,Re=/\.([0-9]*0)*$/,Te=/[0.]0*$/;const Fe=function(e){const{registry:t,onChange:r,formData:a,value:i}=e,[c,l]=(0,o.useState)(i),{StringField:u}=t.fields;let d=a;const f=(0,o.useCallback)(((e,t,n,o)=>{l(e),"."===`${e}`.charAt(0)&&(e=`0${e}`);const a="string"===typeof e&&e.match(Re)?(0,s.i)(e.replace(Te,"")):(0,s.i)(e);r(a,t,n,o)}),[r]);if("string"===typeof c&&"number"===typeof d){const e=new RegExp(`^(${String(d).replace(".","\\.")})?\\.?0*$`);c.match(e)&&(d=c)}return(0,n.jsx)(u,{...e,formData:d,onChange:f})};function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Me.apply(null,arguments)}const Ue=["strong","em","del","mark"],Ve=[["**",Ue[0]],["__",Ue[0]],["~~",Ue[2]],["==",Ue[3]],["*","em"],["_","em"]];function ze(e,t){for(var r=1,n=t+1;n<e.length&&r>0;)"\\"!==e[n]?("["===e[n]&&r++,"]"===e[n]&&r--,n++):n+=2;if(0===r&&n<e.length&&("("===e[n]||"["===e[n])){var o="("===e[n]?")":"]",s=1;for(n++;n<e.length&&s>0;)"\\"!==e[n]?("("===e[n]&&")"===o&&s++,e[n]===o&&s--,n++):n+=2;if(0===s)return n}return-1}function qe(e,t){if(!t||!t.inline&&!t.simple)return null;var r=e[0];if("*"!==r&&"_"!==r&&"~"!==r&&"="!==r)return null;for(var n="",o=0,s="",a=0;a<6;a++){var i=Ve[a][0];if(e.startsWith(i)&&e.length>=2*i.length){n=i,o=i.length,s=Ve[a][1];break}}if(!n)return null;for(var c=o,l=!1,u=!1,d="",f=0,h="",m=!1,p="";c<e.length;){var y=e[c];if(m)h+=y,m=!1,p=y,c++;else if("\\"!==y)if("`"!==y||0!==f){if("["===y&&!l&&0===f){var g=ze(e,c);if(-1!==g){h+=e.slice(c,g),c=g,p=e[g-1];continue}}if(u)h+=y,d?y===d&&(d=""):'"'===y||"'"===y?d=y:">"===y&&(u=!1),p=y,c++;else if("<"!==y||l){if("\n"===y&&"\n"===p&&!l&&0===f)return null;if(!l&&0===f){for(var v=0;c+v<e.length&&e[c+v]===n[0];)v++;if(v>=o&&(1!==o||"*"!==n&&"_"!==n||e[c-1]!==n&&e[c+1]!==n)){var $=[e.slice(0,c+v),s,h+e.slice(c+o,c+v)];return $.index=0,$.input=e,$}}h+=y,p=y,c++}else{var b=e[c+1],_=e.indexOf(">",c);if(-1!==_){var w=e.slice(c,_+1).endsWith("/>");"/"===b?f=Math.max(0,f-1):w||f++}u=!0,h+=y,p=y,c++}}else l=!l,h+=y,p=y,c++;else h+=y,m=!0,p=y,c++}return null}const Le=["children","options"],Be=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{class:"className",for:"htmlFor"}),Ke={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xa0",quot:"\u201c"},Ge=["style","script","pre"],We=["src","href","data","formAction","srcDoc","action"],He=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Je=/\n{2,}$/,Ze=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Ye=/^ *> ?/gm,Xe=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Qe=/^ {2,}\n/,et=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,tt=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,rt=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,nt=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,ot=/^(?:\n *)*\n/,st=/\r\n?/g,at=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,it=/^\[\^([^\]]+)]/,ct=/\f/g,lt=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,ut=/^\[(x|\s)\]/,dt=/^(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ft=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ht=/^([^\n]+)\n *(=|-)\2{2,} *\n/,mt=/^<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>/i;function pt(e){const t=mt.exec(e);if(!t)return null;const r=t[1],n=r.toLowerCase(),o=n.length+1;let s=t[0].length;"\n"===e[s]&&s++;const a=s;let i=s,c=1;const l=e.length;for(;c>0;){const t=e.indexOf("<",s);if(-1===t)return null;let a=-1,u=-1;if("/"===e[t+1])u=t;else if(e[t+1]===n[0]||e[t+1]===r[0]){let s=!0;for(let o=0;o<n.length;o++){const a=e[t+1+o];if(a!==n[o]&&a!==r[o]){s=!1;break}}!s||" "!==e[t+o]&&">"!==e[t+o]||(a=t)}if(-1!==a||-1!==u)if(-1!==a&&(-1===u||a<u))s=a+o+1,c++;else{let t=u+2;for(;t<l;){const r=e[t];if(" "!==r&&"\t"!==r&&"\n"!==r&&"\r"!==r)break;t++}if(t+n.length>l)return null;let o=!0;for(let s=0;s<n.length;s++){const a=e[t+s];if(a!==n[s]&&a!==r[s]){o=!1;break}}if(!o){s=t;continue}for(t+=n.length;t<l;){const r=e[t];if(" "!==r&&"\t"!==r&&"\n"!==r&&"\r"!==r)break;t++}if(t>=l||">"!==e[t]){s=t;continue}i=u,s=t+1,c--}else s=t+1}let u=0;for(;s+u<l&&"\n"===e[s+u];)u++;return[e.slice(0,s+u),r,t[2],e.slice(a,i)]}const yt=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,gt=/^<!--[\s\S]*?(?:-->)/,vt=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,$t=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,bt=/^\{.*\}$/,_t=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,wt=/^<([^ >]+[:@\/][^ >]+)>/,At=/-([a-z])?/gi,St=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,jt=/^[^\n]+(?: \n|\n{2,})/,Et=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Pt=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,xt=/^\[([^\]]*)\] ?\[([^\]]*)\]/,kt=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Ot=/\t/g,Nt=/(^ *\||\| *$)/g,Ct=/^ *:-+: *$/,It=/^ *:-+ *$/,Dt=/^ *-+: *$/,Rt=/^(:[a-zA-Z0-9-_]+:)/,Tt=/^\\([^0-9A-Za-z\s])/,Ft=/\\([^0-9A-Za-z\s])/g,Mt=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,Ut=/^\n+/,Vt=/^([ \t]*)/,zt=/(?:^|\n)( *)$/,qt="(?:\\d+\\.)",Lt="(?:[*+-])";function Bt(e){return"( *)("+(1===e?qt:Lt)+") +"}const Kt=Bt(1),Gt=Bt(2);function Wt(e){return RegExp("^"+(1===e?Kt:Gt))}const Ht=Wt(1),Jt=Wt(2);function Zt(e){return RegExp("^"+(1===e?Kt:Gt)+"[^\\n]*(?:\\n(?!\\1"+(1===e?qt:Lt)+" )[^\\n]*)*(\\n|$)","gm")}const Yt=Zt(1),Xt=Zt(2);function Qt(e){const t=1===e?qt:Lt;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const er=Qt(1),tr=Qt(2);function rr(e,t){const r=1===t,n=r?er:tr,o=r?Yt:Xt,s=r?Ht:Jt;return{t:e=>s.test(e),o:pr((function(e,t){const r=zt.exec(t.prevCapture);return r&&(t.list||!t.inline&&!t.simple)?n.exec(e=r[1]+e):null})),u:1,i(e,t,n){const a=r?+e[2]:void 0,i=e[0].replace(Je,"\n").match(o),c=s.exec(i[0]),l=RegExp("^ {1,"+(c?c[0].length:0)+"}","gm");let u=!1;return{items:i.map((function(e,r){const o=e.replace(l,"").replace(s,""),a=r===i.length-1,c=cr(o,"\n\n")||a&&u;u=c;const d=n.inline,f=n.list;let h;n.list=!0,c?(n.inline=!1,h=ar(o)+"\n\n"):(n.inline=!0,h=ar(o));const m=t(h,n);return n.inline=d,n.list=f,m})),ordered:r,start:a}}}}const nr=RegExp("^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),or=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function sr(e){return"string"==typeof e}function ar(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function ir(e,t){return e.startsWith(t)}function cr(e,t){return-1!==e.indexOf(t)}function lr(e,t,r){if(Array.isArray(r)){for(let t=0;t<r.length;t++)if(ir(e,r[t]))return!0;return!1}return r(e,t)}function ur(e){return e.replace(/[\xc0\xc1\xc2\xc3\xc4\xc5\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xc6]/g,"a").replace(/[\xe7\xc7]/g,"c").replace(/[\xf0\xd0]/g,"d").replace(/[\xc8\xc9\xca\xcb\xe9\xe8\xea\xeb]/g,"e").replace(/[\xcf\xef\xce\xee\xcd\xed\xcc\xec]/g,"i").replace(/[\xd1\xf1]/g,"n").replace(/[\xf8\xd8\u0153\u0152\xd5\xf5\xd4\xf4\xd3\xf3\xd2\xf2]/g,"o").replace(/[\xdc\xfc\xdb\xfb\xda\xfa\xd9\xf9]/g,"u").replace(/[\u0178\xff\xdd\xfd]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function dr(e){return Dt.test(e)?"right":Ct.test(e)?"center":It.test(e)?"left":null}function fr(e,t,r,n){const o=r.inTable;r.inTable=!0;let s=[[]],a="";function i(){if(!a)return;const e=s[s.length-1];e.push.apply(e,t(a,r)),a=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach(((e,t,r)=>{"|"===e.trim()&&(i(),n)?0!==t&&t!==r.length-1&&s.push([]):a+=e})),i(),r.inTable=o,s}function hr(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(Nt,"").split("|").map(dr):[],o=e[3]?function(e,t,r){return e.trim().split("\n").map((function(e){return fr(e,t,r,!0)}))}(e[3],t,r):[],s=fr(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:s,type:"25"}:{children:s,type:"21"}}function mr(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function pr(e){return e.inline=1,e}function yr(e){return pr((function(t,r){return r.inline?e.exec(t):null}))}function gr(e){return pr((function(t,r){return r.inline||r.simple?e.exec(t):null}))}function vr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function $r(e){return pr((function(t){return e.exec(t)}))}const br=/(javascript|vbscript|data(?!:image)):/i;function _r(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(br.test(t))return null}catch(e){return null}return e}function wr(e){return e?e.replace(Ft,"$1"):e}function Ar(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;const s=e(t,r);return r.inline=n,r.simple=o,s}function Sr(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;const s=e(t,r);return r.inline=n,r.simple=o,s}function jr(e,t,r){const n=r.inline||!1;r.inline=!1;const o=e(t,r);return r.inline=n,o}const Er=(e,t,r)=>({children:Ar(t,e[2],r)});function Pr(){return{}}function xr(...e){return e.filter(Boolean).join(" ")}function kr(e,t,r){let n=e;const o=t.split(".");for(;o.length&&(n=n[o[0]],void 0!==n);)o.shift();return n||r}function Or(e,t,r,n){if(!t||!t.trim())return null;const o=t.match(He);return o?o.reduce((function(t,o){const s=o.indexOf("=");if(-1!==s){const a=function(e){return-1!==e.indexOf("-")&&null===e.match(vt)&&(e=e.replace(At,(function(e,t){return t.toUpperCase()}))),e}(o.slice(0,s)).trim(),i=Be[a]||a;if("ref"===i)return t;const c=t[i]=function(e,t,r,n){return"style"===t?function(e){const t=[];if(!e)return t;let r="",n=0,o="";for(let a=0;a<e.length;a++){const s=e[a];if('"'===s||"'"===s)o?s===o&&(o="",n--):(o=s,n++);else if("("===s&&r.endsWith("url"))n++;else if(")"===s&&n>0)n--;else if(";"===s&&0===n){const e=r.indexOf(":");e>0&&t.push([r.slice(0,e).trim(),r.slice(e+1).trim()]),r="";continue}r+=s}const s=r.indexOf(":");return s>0&&t.push([r.slice(0,s).trim(),r.slice(s+1).trim()]),t}(r).reduce((function(t,[r,o]){return t[r.replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=n(o,e,r),t}),{}):-1!==We.indexOf(t)?n(wr(r),e,t):(r.match(bt)&&(r=wr(r.slice(1,r.length-1))),"true"===r||"false"!==r&&r)}(e,a,function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(o.slice(s+1).trim()),r);"string"==typeof c&&(mt.test(c)||$t.test(c))&&(t[i]=n(c.trim()))}else"style"!==o&&(t[Be[o]||o]=!0);return t}),{}):null}function Nr(e,t){for(let r=0;r<e.length;r++)if(e[r].test(t))return!0;return!1}const Cr=e=>{let{children:t,options:r}=e,n=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,Le);return function(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Me({},Ke,t.namedCodesToUnicode):Ke;const r=t.slugify||ur,n=t.sanitizer||_r,s=t.createElement||o.createElement,a=[Ze,tt,rt,t.enforceAtxHeadings?ft:dt,ht,St,er,tr],i=[...a,jt,mt,gt,$t];function c(e,r,...n){const o=kr(t.overrides,e+".props",{});return s(function(e,t){const r=kr(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:kr(t,e+".component",e):e}(e,t.overrides),Me({},r,o,{className:xr(null==r?void 0:r.className,o.className)||void 0}),...n)}function l(e){e=e.replace(lt,"");let n=!1;t.forceInline?n=!0:t.forceBlock||(n=!1===kt.test(e));const o=h(n?e:ar(e).replace(Ut,"")+"\n\n",{inline:n});if(t.ast)return o;const a=m(o);for(;sr(a[a.length-1])&&!a[a.length-1].trim();)a.pop();if(u.length&&a.push(c("footer",{key:"footer"},u.map((function(e){return c("div",{id:r(e.identifier,ur),key:e.identifier},e.identifier,m(h(e.footnote,{inline:!0})))})))),null===t.wrapper)return a;const i=t.wrapper||(n?"span":"div");let l;if(a.length>1||t.forceWrapper)l=a;else{if(1===a.length)return l=a[0],"string"==typeof l?c("span",{key:"outer"},l):l;l=null}return s(i,Me({key:"outer"},t.wrapperProps),l)}const u=[],d={},f={0:{t:[">"],o:vr(Ze),u:1,i(e,t,r){const[,n,o]=e[0].replace(Ye,"").match(Xe);return{alert:n,children:t(o,r)}}},1:{t:[" "],o:yr(Qe),u:1,i:Pr},2:{t:function(e,t){if(t.inline||t.simple)return!1;var r=e[0];return"-"===r||"*"===r||"_"===r},o:vr(et),u:1,i:Pr},3:{t:[" "],o:vr(rt),u:0,i:e=>({lang:void 0,text:wr(ar(e[0].replace(/^ {4}/gm,"")))})},4:{t:["```","~~~"],o:vr(tt),u:0,i:e=>({attrs:Or("code",e[3]||"",n,l),lang:e[2]||void 0,text:e[4],type:"3"})},5:{t:["`"],o:gr(nt),u:3,i:e=>({text:wr(e[2])})},6:{t:["[^"],o:vr(at),u:0,i:e=>(u.push({footnote:e[2],identifier:e[1]}),{})},7:{t:["[^"],o:yr(it),u:1,i:e=>({target:"#"+r(e[1],ur),text:e[1]})},8:{t:["[ ]","[x]"],o:yr(ut),u:1,i:e=>({completed:"x"===e[1].toLowerCase()})},9:{t:["#"],o:vr(t.enforceAtxHeadings?ft:dt),u:1,i:(e,t,n)=>({children:Ar(t,e[2],n),id:r(e[2],ur),level:e[1].length})},10:{t:e=>{const t=e.indexOf("\n");return t>0&&t<e.length-1&&("="===e[t+1]||"-"===e[t+1])},o:vr(ht),u:1,i:(e,t,r)=>({children:Ar(t,e[1],r),level:"="===e[2]?1:2,type:"9"})},11:{t:["<"],o:pr(pt),u:1,i(e,t,r){const[,o]=e[3].match(Vt),s=RegExp("^"+o,"gm"),a=e[3].replace(s,""),c=Nr(i,a)?jr:Ar,u=e[1].toLowerCase(),d=-1!==Ge.indexOf(u),f=(d?u:e[1]).trim(),h={attrs:Or(f,e[2],n,l),noInnerParse:d,tag:f};if(r.inAnchor=r.inAnchor||"a"===u,d)h.text=e[3];else{const e=r.inHTML;r.inHTML=!0,h.children=c(t,a,r),r.inHTML=e}return r.inAnchor=!1,h}},13:{t:["<"],o:$r($t),u:1,i(e){const t=e[1].trim();return{attrs:Or(t,e[2]||"",n,l),tag:t}}},12:{t:["\x3c!--"],o:$r(gt),u:1,i:()=>({})},14:{t:["!["],o:gr(or),u:1,i:e=>({alt:wr(e[1]),target:wr(e[2]),title:wr(e[3])})},15:{t:["["],o:yr(nr),u:3,i:(e,t,r)=>({children:Sr(t,e[1],r),target:wr(e[2]),title:wr(e[3])})},16:{t:function(e,t){return!(!t.inline||t.inAnchor)&&"<"===e[0]&&(cr(e,":")||cr(e,"@")||cr(e,"/"))},o:yr(wt),u:0,i(e){let t=e[1],r=!1;return cr(t,"@")&&!cr(t,"//")&&(r=!0,t=t.replace("mailto:","")),{children:[{text:t,type:"27"}],target:r?"mailto:"+t:t,type:"15"}}},17:{t:(e,r)=>!r.inAnchor&&!t.disableAutoLink&&ir(e,"http"),o:yr(_t),u:0,i:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},20:rr(0,1),30:rr(0,2),19:{t:["\n"],o:vr(ot),u:3,i:Pr},21:{t:function(e,t){return!t.inline&&!t.simple},o:pr((function(e,t){if(t.inline||t.simple||t.inHTML&&!cr(e,"\n\n")&&!cr(t.prevCapture,"\n\n"))return null;let r="",n=0;for(;;){const t=e.indexOf("\n",n),o=e.slice(n,-1===t?void 0:t+1),s=e[n];if((">"===s||"#"===s||"|"===s||"`"===s||"~"===s||"*"===s||"-"===s||"_"===s||" "===s)&&Nr(a,o))break;if(r+=o,-1===t||!o.trim())break;n=t+1}const o=ar(r);return""===o?null:[r,,o]})),u:3,i:Er},22:{t:["["],o:yr(Et),u:0,i:e=>(d[e[1]]={target:e[2],title:e[4]},{})},23:{t:["!["],o:gr(Pt),u:0,i:e=>({alt:e[1]?wr(e[1]):void 0,ref:e[2]})},24:{t:e=>"["===e[0]&&!cr(e,"]("),o:yr(xt),u:0,i:(e,t,r)=>({children:t(e[1],r),fallbackChildren:e[0],ref:e[2]})},25:{t:["|"],o:vr(St),u:1,i:hr},27:{o:pr((function(e,t){let r;return ir(e,":")&&(r=Rt.exec(e)),r||Mt.exec(e)})),u:4,i(e){const r=e[0];return{text:cr(r,"&")?r.replace(yt,((e,r)=>t.namedCodesToUnicode[r]||e)):r}}},34:{t:["*","_","~","="],o:pr(qe),u:2,i:(e,t,r)=>({children:t(e[2],r),tag:e[1]})},28:{t:["\\"],o:gr(Tt),u:1,i:e=>({text:e[1],type:"27"})}};!0===t.disableParsingRawHTML&&(delete f[11],delete f[13]);const h=function(e){var t=Object.keys(e);function r(n,o){var s=[];if(o.prevCapture=o.prevCapture||"",n.trim())for(;n;)for(var a=0;a<t.length;){var i=t[a],c=e[i];if(!c.t||lr(n,o,c.t)){var l=c.o(n,o);if(l&&l[0]){n=n.substring(l[0].length);var u=c.i(l,r,o);o.prevCapture+=l[0],u.type||(u.type=i),s.push(u);break}a++}else a++}return o.prevCapture="",s}return t.sort((function(t,r){return e[t].u-e[r].u||(t<r?-1:1)})),function(e,t){return r(function(e){return e.replace(st,"\n").replace(ct,"").replace(Ot," ")}(e),t)}}(f),m=function(e,t,r,n,o){function s(e){return Array.isArray(e)?e.map((e=>"text"in e?e.text:"")):"text"in e?e.text:""}return function a(i,c={}){const l=(c.renderDepth||0)+1;if(l>2500)return s(i);c.renderDepth=l;try{if(Array.isArray(i)){const e=c.key,t=[];let r=!1;for(let n=0;n<i.length;n++){c.key=n;const e=a(i[n],c),o=sr(e);o&&r?t[t.length-1]+=e:null!==e&&t.push(e),r=o}return c.key=e,c.renderDepth=l-1,t}const s=function(s,a,i){const c=()=>function(e,t,r,n,o,s,a){switch(e.type){case"0":{const o={key:r.key};return e.alert&&(o.className="markdown-alert-"+s(e.alert.toLowerCase(),ur),e.children.unshift({attrs:{},children:[{type:"27",text:e.alert}],noInnerParse:!0,type:"11",tag:"header"})),n("blockquote",o,t(e.children,r))}case"1":return n("br",{key:r.key});case"2":return n("hr",{key:r.key});case"3":return n("pre",{key:r.key},n("code",Me({},e.attrs,{className:e.lang?"lang-"+e.lang:""}),e.text));case"5":return n("code",{key:r.key},e.text);case"7":return n("a",{key:r.key,href:o(e.target,"a","href")},n("sup",{key:r.key},e.text));case"8":return n("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"});case"9":return n("h"+e.level,{id:e.id,key:r.key},t(e.children,r));case"11":return n(e.tag,Me({key:r.key},e.attrs),e.text||(e.children?t(e.children,r):""));case"13":return n(e.tag,Me({},e.attrs,{key:r.key}));case"14":return n("img",{key:r.key,alt:e.alt||void 0,title:e.title||void 0,src:o(e.target,"img","src")});case"15":return n("a",{key:r.key,href:o(e.target,"a","href"),title:e.title},t(e.children,r));case"23":return a[e.ref]?n("img",{key:r.key,alt:e.alt,src:o(a[e.ref].target,"img","src"),title:a[e.ref].title}):null;case"24":return a[e.ref]?n("a",{key:r.key,href:o(a[e.ref].target,"a","href"),title:a[e.ref].title},t(e.children,r)):n("span",{key:r.key},e.fallbackChildren);case"25":{const o=e;return n("table",{key:r.key},n("thead",null,n("tr",null,o.header.map((function(e,s){return n("th",{key:s,style:mr(o,s)},t(e,r))})))),n("tbody",null,o.cells.map((function(e,s){return n("tr",{key:s},e.map((function(e,s){return n("td",{key:s,style:mr(o,s)},t(e,r))})))}))))}case"27":return e.text;case"34":return n(e.tag,{key:r.key},t(e.children,r));case"20":case"30":return n(e.ordered?"ol":"ul",{key:r.key,start:"20"===e.type?e.start:void 0},e.items.map((function(e,o){return n("li",{key:o},t(e,r))})));case"19":return"\n";case"21":return n("p",{key:r.key},t(e.children,r));default:return null}}(s,a,i,t,r,n,o);return e?e(c,s,a,i):c()}(i,a,c);return c.renderDepth=l-1,s}catch(e){if(e instanceof RangeError&&e.message.includes("Maximum call stack"))return s(i);throw e}}}(t.renderRule,c,n,r,d);return l(e)}(null==t?"":t,Me({},r,{wrapperProps:Me({},null==r?void 0:r.wrapperProps,n)}))},Ir=Symbol("remove-this-key"),Dr=Symbol("reset");function Rr(e,t){return Array.isArray(e.required)&&-1!==e.required.indexOf(t)}function Tr(e){const{fieldPathId:t,schema:r,registry:a,uiSchema:i,errorSchema:c,formData:l,onChange:u,onBlur:d,onFocus:f,disabled:h,readonly:m,required:p,hideError:y,propertyName:g,handleKeyRename:v,handleRemoveProperty:$,addedByAdditionalProperties:b}=e,[_,w]=(0,o.useState)(!1),{globalFormOptions:A,fields:S}=a,{SchemaField:j}=S,E=(0,s.lB)((0,s.Yg)(g,A,t.path)),P=(0,o.useCallback)(((e,t,r,n)=>{void 0===e&&b&&(e=""),u(e,t,r,n)}),[u,b]),x=(0,o.useCallback)((e=>{g!==e&&w(!0),v(g,e)}),[g,v]),k=(0,o.useCallback)((e=>{const{target:{value:t}}=e;x(t)}),[x]),O=(0,o.useCallback)((()=>{$(g)}),[g,$]);return(0,n.jsx)(j,{name:g,required:p,schema:r,uiSchema:i,errorSchema:c,fieldPathId:E,formData:l,wasPropertyKeyModified:_,onKeyRename:x,onKeyRenameBlur:k,onRemoveProperty:O,onChange:P,onBlur:d,onFocus:f,registry:a,disabled:h,readonly:m,hideError:y})}function Fr(e){const{schema:t,uiSchema:r={},formData:a,errorSchema:c,fieldPathId:l,name:d,required:f=!1,disabled:h,readonly:p,hideError:y,onBlur:g,onFocus:v,onChange:$,registry:b,title:_}=e,{fields:w,schemaUtils:A,translateString:S,globalUiOptions:j}=b,{OptionalDataControlsField:E}=w,P=A.retrieveSchema(t,a,!0),x=(0,s.$R)(r,j),{properties:k={}}=P,O=e.childFieldPathId??l,N=x.title??P.title??_??d,C=x.description??P.description,I=(0,s.II)(b,P,f,r),D=(0,s.Uc)(a);let R=[];const T=(0,o.useCallback)(((e,t)=>{const{duplicateKeySuffixSeparator:n="-"}=(0,s.$R)(r,j);let o=0,a=e;for(;(0,M.A)(t,a);)a=`${e}${n}${++o}`;return a}),[r,j]),F=(0,o.useCallback)((()=>{if(!P.additionalProperties&&!P.patternProperties)return;const{translateString:e}=b,t={...a},r=T("newKey",t);if(P.patternProperties)(0,u.A)(t,r,null);else{let n,o,i;if((0,m.A)(P.additionalProperties)){n=P.additionalProperties.type,o=P.additionalProperties.const,i=P.additionalProperties.default;let e=P.additionalProperties;if(s.Es in e){const{schemaUtils:t}=b;e=t.retrieveSchema({[s.Es]:e[s.Es]},a),n=e.type,o=e.const,i=e.default}n||!(s.Xo in e)&&!(s.Ru in e)||(n="object")}const c=o??i??function(e,t){switch(t){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return e(s.Zl.NewStringDefault)}}(e,n);(0,u.A)(t,r,c)}$(t,O.path)}),[a,$,b,O,T,P]),U=(0,o.useCallback)(((e,t)=>{if(e!==t){const r=T(t,a),n={...a},o={[e]:r},s=Object.keys(n).map((e=>{const t=o[e]||e;return{[t]:n[e]}})),i=Object.assign({},...s);$(i,O.path)}}),[a,$,O,T]),V=(0,o.useCallback)((e=>{$(Ir,[...O.path,e])}),[$,O]);if(!I||D)try{const e=Object.keys(k);R=(0,s.UI)(e,x.order)}catch(B){return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"rjsf-config-error",style:{color:"red"},children:(0,n.jsx)(Cr,{options:{disableParsingRawHTML:!0},children:S(s.Zl.InvalidObjectField,[d||"root",B.message])})}),(0,n.jsx)("pre",{children:JSON.stringify(P)})]})}const z=(0,s.$F)("ObjectFieldTemplate",b,x),q=I?(0,n.jsx)(E,{...e,fieldPathId:O,schema:P}):void 0,L={title:!1===x.label?"":N,description:!1===x.label?void 0:C,properties:R.map((e=>{const t=(0,M.A)(P,[s.s1,e,s.Rr]),o=t?r.additionalProperties:r[e],l="hidden"===(0,s.$R)(o).widget;return{content:(0,n.jsx)(Tr,{propertyName:e,required:Rr(P,e),schema:(0,i.A)(P,[s.s1,e],{}),uiSchema:o,errorSchema:(0,i.A)(c,[e]),fieldPathId:O,formData:(0,i.A)(a,[e]),handleKeyRename:U,handleRemoveProperty:V,addedByAdditionalProperties:t,onChange:$,onBlur:g,onFocus:v,registry:b,disabled:h,readonly:p,hideError:y},e),name:e,readonly:p,disabled:h,required:f,hidden:l}})),readonly:p,disabled:h,required:f,fieldPathId:l,uiSchema:r,errorSchema:c,schema:P,formData:a,registry:b,optionalDataControl:q,className:I?"rjsf-optional-object-field":void 0};return(0,n.jsx)(z,{...L,onAddProperty:F})}function Mr(e){const{schema:t,uiSchema:r={},formData:o,disabled:a=!1,readonly:i=!1,onChange:c,errorSchema:l,fieldPathId:u,registry:d}=e,{globalUiOptions:f={},schemaUtils:h,translateString:m}=d,p=(0,s.$R)(r,f),y=(0,s.$F)("OptionalDataControlsTemplate",d,p),g=(0,s.Uc)(o);let v,$,b,_;if(a||i)v=(0,s.C1)(u,"Msg"),$=g?void 0:m(s.Zl.OptionalObjectEmptyMsg);else{$=m(g?s.Zl.OptionalObjectRemove:s.Zl.OptionalObjectAdd),g?(v=(0,s.C1)(u,"Remove"),_=()=>c(void 0,u.path,l)):(v=(0,s.C1)(u,"Add"),b=()=>{let e=h.getDefaultFormState(t,o,"excludeObjectChildren");void 0===e&&(e="array"===(0,s._I)(t)?[]:{}),c(e,u.path,l)})}return $&&(0,n.jsx)(y,{id:v,registry:d,schema:t,uiSchema:r,label:$,onAddClick:b,onRemoveClick:_})}const Ur={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Vr(e){const{schema:t,fieldPathId:r,uiSchema:a,formData:i,errorSchema:c,name:l,onChange:u,onKeyRename:d,onKeyRenameBlur:f,onRemoveProperty:h,required:p=!1,registry:y,wasPropertyKeyModified:g=!1}=e,{schemaUtils:v,globalFormOptions:$,globalUiOptions:b,fields:_}=y,{AnyOfField:w,OneOfField:A}=_,S=(0,s.Kt)(t,a,y),j=(0,s.$R)(S,b),E=(0,s.$F)("FieldTemplate",y,j),P=(0,s.$F)("DescriptionFieldTemplate",y,j),x=(0,s.$F)("FieldHelpTemplate",y,j),k=(0,s.$F)("FieldErrorTemplate",y,j),O=v.retrieveSchema(t,i),N=r[s.K0],C=(0,o.useCallback)(((e,t,r,n)=>u(e,t,r,n||N)),[N,u]),I=function(e,t,r){const n=t.field,{fields:o}=r;if("function"===typeof n)return n;if("string"===typeof n&&n in o)return o[n];const a=(0,s._I)(e),i=Array.isArray(a)?a[0]:a||"",c=e.$id;let l=Ur[i];return c&&c in o&&(l=c),l||!e.anyOf&&!e.oneOf?l in o?o[l]:o.FallbackField:()=>null}(O,j,y),D=Boolean(j.disabled??e.disabled),R=Boolean(j.readonly??(e.readonly||e.schema.readOnly||O.readOnly)),T=j.hideError,F=void 0===T?e.hideError:Boolean(T),M=Boolean(j.autofocus??e.autofocus);if(0===Object.keys(O).length)return null;let U=v.getDisplayLabel(O,S,b);const V=j.field&&!0===j.fieldReplacesAnyOrOneOf;let z,q,L={fieldPathId:r};if((s.Xo in O||s.Ru in O)&&!V&&!v.isSelect(O)){O[s.Xo]?(z=w,q=O[s.Xo].map((e=>v.retrieveSchema((0,m.A)(e)?e:{},i)))):O[s.Ru]&&(z=A,q=O[s.Ru].map((e=>v.retrieveSchema((0,m.A)(e)?e:{},i))));const e=(0,s.II)(y,O,p,S),t=(0,s.Uc)(i);U=U&&(!e||t),L={childFieldPathId:r,fieldPathId:(0,s.Yg)("XxxOf",$,r)}}const{__errors:B,...K}=c||{},G=(0,ke.A)(S,["ui:classNames","classNames","ui:style"]);s.ce in G&&(G[s.ce]=(0,ke.A)(G[s.ce],["classNames","style"]));const W=(0,n.jsx)(I,{...e,onChange:C,...L,schema:O,uiSchema:G,disabled:D,readonly:R,hideError:F,autofocus:M,errorSchema:K,rawErrors:B}),H=r[s.K0];let J;J=g||s.Rr in O?l:j.title||e.schema.title||O.title||e.title||l;const Z=j.description||e.schema.description||O.description||"",Y=j.help,X="hidden"===j.widget,Q=["rjsf-field",`rjsf-field-${(0,s._I)(O)}`];!F&&B&&B.length>0&&Q.push("rjsf-field-error"),j.classNames&&Q.push(j.classNames);const ee=(0,n.jsx)(x,{help:Y,fieldPathId:r,schema:O,uiSchema:S,hasErrors:!F&&B&&B.length>0,registry:y}),te=F||z&&!v.isSelect(O)?void 0:(0,n.jsx)(k,{errors:B,errorSchema:c,fieldPathId:r,schema:O,uiSchema:S,registry:y}),re={description:(0,n.jsx)(P,{id:(0,s.IR)(H),description:Z,schema:O,uiSchema:S,registry:y}),rawDescription:Z,help:ee,rawHelp:"string"===typeof Y?Y:void 0,errors:te,rawErrors:F?void 0:B,fieldPathId:r,id:H,label:J,hidden:X,onChange:u,onKeyRename:d,onKeyRenameBlur:f,onRemoveProperty:h,required:p,disabled:D,readonly:R,hideError:F,displayLabel:U,classNames:Q.join(" ").trim(),style:j.style,formData:i,schema:O,uiSchema:S,registry:y};return(0,n.jsx)(E,{...re,children:(0,n.jsxs)(n.Fragment,{children:[W,z&&(0,n.jsx)(z,{name:l,disabled:D,readonly:R,hideError:F,errorSchema:c,formData:i,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:q,registry:y,required:p,schema:O,uiSchema:S})]})})}class zr extends o.Component{shouldComponentUpdate(e){const{registry:{globalFormOptions:t}}=this.props,{experimental_componentUpdateStrategy:r="customDeep"}=t;return(0,s.F9)(this,e,this.state,r)}render(){return(0,n.jsx)(Vr,{...this.props})}}const qr=zr;const Lr=function(e){const{schema:t,name:r,uiSchema:a,fieldPathId:i,formData:c,required:l,disabled:u=!1,readonly:d=!1,autofocus:f=!1,onChange:h,onBlur:m,onFocus:p,registry:y,rawErrors:g,hideError:v,title:$}=e,{title:b,format:_}=t,{widgets:w,schemaUtils:A,globalUiOptions:S}=y,j=A.isSelect(t)?(0,s.f9)(t,a):void 0;let E=j?"select":"text";_&&(0,s.Lw)(t,_,w)&&(E=_);const{widget:P=E,placeholder:x="",title:k,...O}=(0,s.$R)(a),N=A.getDisplayLabel(t,a,S),C=k??$??b??r,I=(0,s.Bt)(t,P,w),D=(0,o.useCallback)(((e,t,r)=>h(e,i.path,t,r)),[h,i]);return(0,n.jsx)(I,{options:{...O,enumOptions:j},schema:t,uiSchema:a,id:i.$id,name:r,label:C,hideLabel:!N,hideError:v,value:c,onChange:D,onBlur:m,onFocus:p,required:l,disabled:u,readonly:d,autofocus:f,registry:y,placeholder:x,rawErrors:g,htmlName:i.name})};const Br=function(e){const{formData:t,onChange:r,fieldPathId:n}=e;return(0,o.useEffect)((()=>{void 0===t&&r(null,n.path)}),[n,t,r]),null};const Kr=function(){return{AnyOfField:De,ArrayField:k,BooleanField:O,FallbackField:N,LayoutGridField:Ee,LayoutHeaderField:Pe,LayoutMultiSchemaField:Ce,NumberField:Fe,ObjectField:Fr,OneOfField:De,OptionalDataControlsField:Mr,SchemaField:qr,StringField:Lr,NullField:Br}};function Gr(e){const{fieldPathId:t,description:r,registry:o,schema:a,uiSchema:i}=e,c=(0,s.$R)(i,o.globalUiOptions),{label:l=!0}=c;if(!r||!l)return null;const u=(0,s.$F)("DescriptionFieldTemplate",o,c);return(0,n.jsx)(u,{id:(0,s.IR)(t),description:r,schema:a,uiSchema:i,registry:o})}function Wr(e){const{children:t,className:r,buttonsProps:o,displayLabel:a,hasDescription:i,hasToolbar:c,registry:l,uiSchema:u}=e,d=(0,s.$R)(u),f=(0,s.$F)("ArrayFieldItemButtonsTemplate",l,d),h={display:"flex",alignItems:a?"center":"baseline"},m={display:"flex",justifyContent:"flex-end",marginTop:a?`${i?31:9}px`:0};return(0,n.jsxs)("div",{className:r,style:h,children:[(0,n.jsx)("div",{className:c?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),c&&(0,n.jsx)("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:(0,n.jsx)("div",{className:"btn-group",style:m,children:(0,n.jsx)(f,{...o,style:{flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"}})})})]})}function Hr(e){const{disabled:t,hasCopy:r,hasMoveDown:o,hasMoveUp:a,hasRemove:i,fieldPathId:c,onCopyItem:l,onRemoveItem:u,onMoveDownItem:d,onMoveUpItem:f,readonly:h,registry:m,uiSchema:p}=e,{CopyButton:y,MoveDownButton:g,MoveUpButton:v,RemoveButton:$}=m.templates.ButtonTemplates;return(0,n.jsxs)(n.Fragment,{children:[(a||o)&&(0,n.jsx)(v,{id:(0,s.aA)(c,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||h||!a,onClick:f,uiSchema:p,registry:m}),(a||o)&&(0,n.jsx)(g,{id:(0,s.aA)(c,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||h||!o,onClick:d,uiSchema:p,registry:m}),r&&(0,n.jsx)(y,{id:(0,s.aA)(c,"copy"),className:"rjsf-array-item-copy",disabled:t||h,onClick:l,uiSchema:p,registry:m}),i&&(0,n.jsx)($,{id:(0,s.aA)(c,"remove"),className:"rjsf-array-item-remove",disabled:t||h,onClick:u,uiSchema:p,registry:m})]})}function Jr(e){const{canAdd:t,className:r,disabled:o,fieldPathId:a,uiSchema:i,items:c,optionalDataControl:l,onAddClick:u,readonly:d,registry:f,required:h,schema:m,title:p}=e,y=(0,s.$R)(i),g=(0,s.$F)("ArrayFieldDescriptionTemplate",f,y),v=(0,s.$F)("ArrayFieldTitleTemplate",f,y),$=!d&&!o,{ButtonTemplates:{AddButton:b}}=f.templates;return(0,n.jsxs)("fieldset",{className:r,id:a.$id,children:[(0,n.jsx)(v,{fieldPathId:a,title:y.title||p,required:h,schema:m,uiSchema:i,registry:f,optionalDataControl:$?l:void 0}),(0,n.jsx)(g,{fieldPathId:a,description:y.description||m.description,schema:m,uiSchema:i,registry:f}),$?void 0:l,(0,n.jsx)("div",{className:"row array-item-list",children:c}),t&&(0,n.jsx)(b,{id:(0,s.aA)(a,"add"),className:"rjsf-array-item-add",onClick:u,disabled:o||d,uiSchema:i,registry:f})]})}function Zr(e){const{fieldPathId:t,title:r,schema:o,uiSchema:a,required:i,registry:c,optionalDataControl:l}=e,u=(0,s.$R)(a,c.globalUiOptions),{label:d=!0}=u;if(!r||!d)return null;const f=(0,s.$F)("TitleFieldTemplate",c,u);return(0,n.jsx)(f,{id:(0,s.EH)(t),title:r,required:i,schema:o,uiSchema:a,registry:c,optionalDataControl:l})}function Yr(e){const{id:t,schema:r}=e,{examples:o,default:a}=r;return Array.isArray(o)?(0,n.jsx)("datalist",{id:(0,s.$c)(t),children:o.concat(void 0===a||o.map(String).includes(String(a))?[]:[a]).map((e=>(0,n.jsx)("option",{value:e},String(e))))},`datalist_${t}`):null}function Xr(e){const{id:t,name:r,htmlName:a,value:i,readonly:c,disabled:l,autofocus:u,onBlur:d,onFocus:f,onChange:h,onChangeOverride:m,options:p,schema:y,uiSchema:g,registry:v,rawErrors:$,type:b,hideLabel:_,hideError:w,...A}=e,{ClearButton:S}=v.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const j={...A,...(0,s.ti)(y,b,p)};let E;E="number"===j.type||"integer"===j.type?i||0===i?i:"":null==i?"":i;const P=(0,o.useCallback)((({target:{value:e}})=>h(""===e?p.emptyValue:e)),[h,p]),x=(0,o.useCallback)((({target:e})=>d(t,e&&e.value)),[d,t]),k=(0,o.useCallback)((({target:e})=>f(t,e&&e.value)),[f,t]),O=(0,o.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),h(p.emptyValue??"")}),[h,p.emptyValue]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{id:t,name:a||t,className:"form-control",readOnly:c,disabled:l,autoFocus:u,value:E,...j,list:y.examples?(0,s.$c)(t):void 0,onChange:m||P,onBlur:x,onFocus:k,"aria-describedby":(0,s.eG)(t,!!y.examples)}),p.allowClearTextInputs&&!c&&!l&&E&&(0,n.jsx)(S,{registry:v,onClick:O}),(0,n.jsx)(Yr,{id:t,schema:y})]})}function Qr({uiSchema:e}){const{submitText:t,norender:r,props:o={}}=(0,s.Bj)(e);return r?null:(0,n.jsx)("div",{children:(0,n.jsx)("button",{type:"submit",...o,className:`btn btn-info ${o.className||""}`,children:t})})}function en(e){const{iconType:t="default",icon:r,className:o,uiSchema:s,registry:a,...i}=e;return(0,n.jsx)("button",{type:"button",className:`btn btn-${t} ${o}`,...i,children:(0,n.jsx)("i",{className:`glyphicon glyphicon-${r}`})})}function tn(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(en,{title:t(s.Zl.CopyButton),...e,icon:"copy"})}function rn(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(en,{title:t(s.Zl.MoveDownButton),...e,icon:"arrow-down"})}function nn(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(en,{title:t(s.Zl.MoveUpButton),...e,icon:"arrow-up"})}function on(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(en,{title:t(s.Zl.RemoveButton),...e,iconType:"danger",icon:"remove"})}function sn({id:e,className:t,onClick:r,disabled:o,registry:a,...i}){const{translateString:c}=a;return(0,n.jsx)(en,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:c(s.Zl.ClearButton),onClick:r,disabled:o,registry:a,...i})}function an({id:e,className:t,onClick:r,disabled:o,registry:a}){const{translateString:i}=a;return(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("p",{className:`col-xs-4 col-sm-2 col-lg-1 col-xs-offset-8 col-sm-offset-10 col-lg-offset-11 text-right ${t}`,children:(0,n.jsx)(en,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:i(s.Zl.AddButton),onClick:r,disabled:o,registry:a})})})}const cn=function(){return{SubmitButton:Qr,AddButton:an,CopyButton:tn,MoveDownButton:rn,MoveUpButton:nn,RemoveButton:on,ClearButton:sn}},ln=(0,s.cq)();function un({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:o}=t;return(0,s.$R)(r,o).enableMarkdownInDescription&&"string"===typeof e?(0,n.jsx)(Cr,{options:{disableParsingRawHTML:!0},"data-testid":ln.markdown,children:e}):e}function dn(e){const{id:t,description:r,registry:o,uiSchema:s}=e;return r?(0,n.jsx)("div",{id:t,className:"field-description",children:(0,n.jsx)(un,{description:r,registry:o,uiSchema:s})}):null}function fn({errors:e,registry:t}){const{translateString:r}=t;return(0,n.jsxs)("div",{className:"panel panel-danger errors",children:[(0,n.jsx)("div",{className:"panel-heading",children:(0,n.jsx)("h3",{className:"panel-title",children:r(s.Zl.ErrorsLabel)})}),(0,n.jsx)("ul",{className:"list-group",children:e.map(((e,t)=>(0,n.jsx)("li",{className:"list-group-item text-danger",children:e.stack},t)))})]})}function hn(e){const{schema:t,registry:r,typeSelector:o,schemaField:a}=e,i=(0,s.$F)("MultiSchemaFieldTemplate",r);return(0,n.jsx)(i,{selector:o,optionSchemaField:a,schema:t,registry:r})}un.TEST_IDS=ln;function mn(e){const{label:t,required:r,id:o}=e;return t?(0,n.jsxs)("label",{className:"control-label",htmlFor:o,children:[t,r&&(0,n.jsx)("span",{className:"required",children:"*"})]}):null}const pn=function(e){const{id:t,label:r,children:o,errors:a,help:i,description:c,hidden:l,required:u,displayLabel:d,registry:f,uiSchema:h}=e,m=(0,s.$R)(h),p=(0,s.$F)("WrapIfAdditionalTemplate",f,m);if(l)return(0,n.jsx)("div",{className:"hidden",children:o});const y="checkbox"===m.widget;return(0,n.jsxs)(p,{...e,children:[d&&!y&&(0,n.jsx)(mn,{label:r,required:u,id:t}),d&&c?c:null,o,a,i]})};function yn(e){const{errors:t=[],fieldPathId:r}=e;if(0===t.length)return null;const o=(0,s.rD)(r);return(0,n.jsx)("div",{children:(0,n.jsx)("ul",{id:o,className:"error-detail bs-callout bs-callout-info",children:t.filter((e=>!!e)).map(((e,t)=>(0,n.jsx)("li",{className:"text-danger",children:e},t)))})})}const gn=(0,s.cq)();function vn({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:o}=t;return(0,s.$R)(r,o).enableMarkdownInHelp&&"string"===typeof e?(0,n.jsx)(Cr,{options:{disableParsingRawHTML:!0},"data-testid":gn.markdown,children:e}):e}function $n(e){const{fieldPathId:t,help:r,uiSchema:o,registry:a}=e;return r?(0,n.jsx)("div",{id:(0,s.F5)(t),className:"help-block",children:(0,n.jsx)(vn,{help:r,registry:a,uiSchema:o})}):null}function bn(e){const{children:t,column:r,className:o,...s}=e;return(0,n.jsx)("div",{className:o,...s,children:t})}function _n(e){const{selector:t,optionSchemaField:r}=e;return(0,n.jsxs)("div",{className:"panel panel-default panel-body",children:[(0,n.jsx)("div",{className:"form-group",children:t}),r]})}function wn(e){const{className:t,description:r,disabled:o,formData:a,fieldPathId:i,onAddProperty:c,optionalDataControl:l,properties:u,readonly:d,registry:f,required:h,schema:m,title:p,uiSchema:y}=e,g=(0,s.$R)(y),v=(0,s.$F)("TitleFieldTemplate",f,g),$=(0,s.$F)("DescriptionFieldTemplate",f,g);if((m.oneOf||m.anyOf)&&!m.properties&&0===u.length)return null;const b=!d&&!o,{ButtonTemplates:{AddButton:_}}=f.templates;return(0,n.jsxs)("fieldset",{className:t,id:i.$id,children:[p&&(0,n.jsx)(v,{id:(0,s.EH)(i),title:p,required:h,schema:m,uiSchema:y,registry:f,optionalDataControl:b?l:void 0}),r&&(0,n.jsx)($,{id:(0,s.IR)(i),description:r,schema:m,uiSchema:y,registry:f}),b?void 0:l,u.map((e=>e.content)),(0,s.Xl)(m,y,a)&&(0,n.jsx)(_,{id:(0,s.aA)(i,"add"),className:"rjsf-object-property-expand",onClick:c,disabled:o||d,uiSchema:y,registry:f})]})}function An(e){const{id:t,registry:r,label:o,onAddClick:s,onRemoveClick:a}=e;return s?(0,n.jsx)(en,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:s,title:o}):a?(0,n.jsx)(en,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:a,title:o}):(0,n.jsx)("em",{id:t,children:o})}vn.TEST_IDS=gn;function Sn(e){const{id:t,title:r,required:o,optionalDataControl:s}=e;return(0,n.jsxs)("legend",{id:t,children:[r,o&&(0,n.jsx)("span",{className:"required",children:"*"}),s&&(0,n.jsx)("span",{className:"pull-right",style:{marginBottom:"2px"},children:s})]})}const jn=function(e){const{schema:t,fieldPathId:r,reason:o,registry:a}=e,{translateString:i}=a;let c=s.Zl.UnsupportedField;const l=[];return r&&r.$id&&(c=s.Zl.UnsupportedFieldWithId,l.push(r.$id)),o&&(c=c===s.Zl.UnsupportedField?s.Zl.UnsupportedFieldWithReason:s.Zl.UnsupportedFieldWithIdAndReason,l.push(o)),(0,n.jsxs)("div",{className:"unsupported-field",children:[(0,n.jsx)("p",{children:(0,n.jsx)(Cr,{options:{disableParsingRawHTML:!0},children:i(c,l)})}),t&&(0,n.jsx)("pre",{children:JSON.stringify(t,null,2)})]})};function En(e){const{id:t,classNames:r,style:o,disabled:a,displayLabel:i,label:c,onKeyRenameBlur:l,onRemoveProperty:u,rawDescription:d,readonly:f,required:h,schema:m,hideError:p,rawErrors:y,children:g,uiSchema:v,registry:$}=e,{templates:b,translateString:_}=$,{RemoveButton:w}=b.ButtonTemplates,A=_(s.Zl.KeyLabel,[c]),S=s.Rr in m,j=!!d,E=["form-group",r];!p&&y&&y.length>0&&E.push("has-error has-danger");const P=E.join(" ").trim();if(!S)return(0,n.jsx)("div",{className:P,style:o,children:g});const x=j?46:26;return(0,n.jsx)("div",{className:P,style:o,children:(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("div",{className:"col-xs-5 form-additional",children:(0,n.jsxs)("div",{className:"form-group",children:[i&&(0,n.jsx)(mn,{label:A,required:h,id:`${t}-key`}),i&&d&&(0,n.jsx)("div",{children:"\xa0"}),(0,n.jsx)("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:l,defaultValue:c})]})}),(0,n.jsx)("div",{className:"form-additional form-group col-xs-5",children:g}),(0,n.jsx)("div",{className:"col-xs-2",style:{marginTop:i?`${x}px`:void 0},children:(0,n.jsx)(w,{id:(0,s.aA)(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:a||f,onClick:u,uiSchema:v,registry:$})})]})})}const Pn=function(){return{ArrayFieldDescriptionTemplate:Gr,ArrayFieldItemTemplate:Wr,ArrayFieldItemButtonsTemplate:Hr,ArrayFieldTemplate:Jr,ArrayFieldTitleTemplate:Zr,ButtonTemplates:cn(),BaseInputTemplate:Xr,DescriptionFieldTemplate:dn,ErrorListTemplate:fn,FallbackFieldTemplate:hn,FieldTemplate:pn,FieldErrorTemplate:yn,FieldHelpTemplate:$n,GridTemplate:bn,MultiSchemaFieldTemplate:_n,ObjectFieldTemplate:wn,OptionalDataControlsTemplate:An,TitleFieldTemplate:Sn,UnsupportedFieldTemplate:jn,WrapIfAdditionalTemplate:En}};const xn=function(e){const{disabled:t=!1,readonly:r=!1,autofocus:o=!1,options:a,id:i,name:c,registry:l,onBlur:u,onFocus:d}=e,{translateString:f}=l,{elements:h,handleChange:m,handleClear:p,handleSetNow:y}=(0,s.qJ)(e);return(0,n.jsxs)("ul",{className:"list-inline",children:[h.map(((e,a)=>(0,n.jsx)("li",{className:"list-inline-item",children:(0,n.jsx)(s.Xq,{rootId:i,name:c,select:m,...e,disabled:t,readonly:r,registry:l,onBlur:u,onFocus:d,autofocus:o&&0===a})},a))),("undefined"===a.hideNowButton||!a.hideNowButton)&&(0,n.jsx)("li",{className:"list-inline-item",children:(0,n.jsx)("a",{href:"#",className:"btn btn-info btn-now",onClick:y,children:f(s.Zl.NowLabel)})}),("undefined"===a.hideClearButton||!a.hideClearButton)&&(0,n.jsx)("li",{className:"list-inline-item",children:(0,n.jsx)("a",{href:"#",className:"btn btn-warning btn-clear",onClick:p,children:f(s.Zl.ClearLabel)})})]})};const kn=function({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return(0,n.jsx)(r,{time:e,...t})};const On=function({schema:e,uiSchema:t,options:r,id:a,value:i,disabled:c,readonly:l,label:u,hideLabel:d,autofocus:f=!1,onBlur:h,onFocus:m,onChange:p,registry:y,htmlName:g}){const v=(0,s.$F)("DescriptionFieldTemplate",y,r),$=(0,s.l1)(e),b=(0,o.useCallback)((e=>p(e.target.checked)),[p]),_=(0,o.useCallback)((e=>h(a,e.target.checked)),[h,a]),w=(0,o.useCallback)((e=>m(a,e.target.checked)),[m,a]),A="checkbox"===(0,s.$R)(t).widget?void 0:r.description??e.description;return(0,n.jsxs)("div",{className:"checkbox "+(c||l?"disabled":""),children:[!d&&A&&(0,n.jsx)(v,{id:(0,s.IR)(a),description:A,schema:e,uiSchema:t,registry:y}),(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"checkbox",id:a,name:g||a,checked:"undefined"!==typeof i&&i,required:$,disabled:c||l,autoFocus:f,onChange:b,onBlur:_,onFocus:w,"aria-describedby":(0,s.eG)(a)}),(0,s.w)((0,n.jsx)("span",{children:u}),d)]})]})};const Nn=function({id:e,disabled:t,options:{inline:r=!1,enumOptions:a,enumDisabled:i,emptyValue:c},value:l,autofocus:u=!1,readonly:d,onChange:f,onBlur:h,onFocus:m,htmlName:p}){const y=Array.isArray(l)?l:[l],g=(0,o.useCallback)((({target:t})=>h(e,(0,s.Od)(t&&t.value,a,c))),[h,e,a,c]),v=(0,o.useCallback)((({target:t})=>m(e,(0,s.Od)(t&&t.value,a,c))),[m,e,a,c]);return(0,n.jsx)("div",{className:"checkboxes",id:e,children:Array.isArray(a)&&a.map(((o,c)=>{const l=(0,s.BH)(o.value,y),h=Array.isArray(i)&&-1!==i.indexOf(o.value),m=t||h||d?"disabled":"",$=(0,n.jsxs)("span",{children:[(0,n.jsx)("input",{type:"checkbox",id:(0,s.pk)(e,c),name:p||e,checked:l,value:String(c),disabled:t||h||d,autoFocus:u&&0===c,onChange:e=>{e.target.checked?f((0,s.L4)(c,y,a)):f((0,s.Uw)(c,y,a))},onBlur:g,onFocus:v,"aria-describedby":(0,s.eG)(e)}),(0,n.jsx)("span",{children:o.label})]});return r?(0,n.jsx)("label",{className:`checkbox-inline ${m}`,children:$},c):(0,n.jsx)("div",{className:`checkbox ${m}`,children:(0,n.jsx)("label",{children:$})},c)}))})};function Cn(e){const{disabled:t,readonly:r,options:o,registry:a}=e,i=(0,s.$F)("BaseInputTemplate",a,o);return(0,n.jsx)(i,{type:"color",...e,disabled:t||r})}function In(e){const{onChange:t,options:r,registry:a}=e,i=(0,s.$F)("BaseInputTemplate",a,r),c=(0,o.useCallback)((e=>t(e||void 0)),[t]);return(0,n.jsx)(i,{type:"date",...e,onChange:c})}function Dn(e){const{onChange:t,value:r,options:o,registry:a}=e,i=(0,s.$F)("BaseInputTemplate",a,o);return(0,n.jsx)(i,{type:"datetime-local",...e,value:(0,s.v4)(r),onChange:e=>t((0,s.z$)(e))})}function Rn(e){const{options:t,registry:r}=e,o=(0,s.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{type:"email",...e})}function Tn({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:o,type:a,name:i}=e;return o?["image/jpeg","image/png"].includes(a)?(0,n.jsx)("img",{src:o,style:{maxWidth:"100%"},className:"file-preview"}):(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsx)("a",{download:`preview-${i}`,href:o,className:"file-download",children:r(s.Zl.PreviewLabel)})]}):null}function Fn({filesInfo:e,registry:t,preview:r,onRemove:o,options:a}){if(0===e.length)return null;const{translateString:i}=t,{RemoveButton:c}=(0,s.$F)("ButtonTemplates",t,a);return(0,n.jsx)("ul",{className:"file-info",children:e.map(((e,a)=>{const{name:l,size:u,type:d}=e;return(0,n.jsxs)("li",{children:[(0,n.jsx)(Cr,{children:i(s.Zl.FilesInfo,[l,d,String(u)])}),r&&(0,n.jsx)(Tn,{fileInfo:e,registry:t}),(0,n.jsx)(c,{onClick:()=>o(a),registry:t})]},a)}))})}const Mn=function(e){const{disabled:t,readonly:r,required:o,multiple:a,onChange:i,value:c,options:l,registry:u}=e,{filesInfo:d,handleChange:f,handleRemove:h}=(0,s.uC)(c,i,a),m=(0,s.$F)("BaseInputTemplate",u,l);return(0,n.jsxs)("div",{children:[(0,n.jsx)(m,{...e,disabled:t||r,type:"file",required:!c&&o,onChangeOverride:e=>{e.target.files&&f(e.target.files)},value:"",accept:l.accept?String(l.accept):void 0}),(0,n.jsx)(Fn,{filesInfo:d,onRemove:h,registry:u,preview:l.filePreview,options:l})]})};const Un=function({id:e,value:t,htmlName:r}){return(0,n.jsx)("input",{type:"hidden",id:e,name:r||e,value:"undefined"===typeof t?"":t})};function Vn(e){const{options:t,registry:r}=e,o=(0,s.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{type:"password",...e})}const zn=function({options:e,value:t,required:r,disabled:a,readonly:i,autofocus:c=!1,onBlur:l,onFocus:u,onChange:d,id:f,htmlName:h}){const{enumOptions:m,enumDisabled:p,inline:y,emptyValue:g}=e,v=(0,o.useCallback)((({target:e})=>l(f,(0,s.Od)(e&&e.value,m,g))),[l,m,g,f]),$=(0,o.useCallback)((({target:e})=>u(f,(0,s.Od)(e&&e.value,m,g))),[u,m,g,f]);return(0,n.jsx)("div",{className:"field-radio-group",id:f,role:"radiogroup",children:Array.isArray(m)&&m.map(((e,o)=>{const l=(0,s.BH)(e.value,t),u=Array.isArray(p)&&-1!==p.indexOf(e.value),m=a||u||i?"disabled":"",g=(0,n.jsxs)("span",{children:[(0,n.jsx)("input",{type:"radio",id:(0,s.pk)(f,o),checked:l,name:h||f,required:r,value:String(o),disabled:a||u||i,autoFocus:c&&0===o,onChange:()=>d(e.value),onBlur:v,onFocus:$,"aria-describedby":(0,s.eG)(f)}),(0,n.jsx)("span",{children:e.label})]});return y?(0,n.jsx)("label",{className:`radio-inline ${m}`,children:g},o):(0,n.jsx)("div",{className:`radio ${m}`,children:(0,n.jsx)("label",{children:g})},o)}))})};function qn(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return(0,n.jsxs)("div",{className:"field-range-wrapper",children:[(0,n.jsx)(r,{type:"range",...e}),(0,n.jsx)("span",{className:"range-view",children:t})]})}function Ln({id:e,value:t,required:r,disabled:s,readonly:a,autofocus:i,onChange:c,onFocus:l,onBlur:u,schema:d,options:f,htmlName:h}){const{stars:m=5,shape:p="star"}=f,y=d.maximum?Math.min(d.maximum,5):Math.min(Math.max(m,1),5),g=d.minimum||0,v=(0,o.useCallback)((e=>{s||a||c(e)}),[c,s,a]),$=(0,o.useCallback)((t=>{if(l){const r=Number(t.target.dataset.value);l(e,r)}}),[l,e]),b=(0,o.useCallback)((t=>{if(u){const r=Number(t.target.dataset.value);u(e,r)}}),[u,e]),_=e=>"heart"===p?e?"\u2665":"\u2661":e?"\u2605":"\u2606";return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:s||a?"default":"pointer"},children:[[...Array(y)].map(((e,r)=>{const o=g+r,i=o<=t;return(0,n.jsx)("span",{onClick:()=>v(o),onFocus:$,onBlur:b,"data-value":o,tabIndex:s||a?-1:0,role:"radio","aria-checked":o===t,"aria-label":`${o} ${"heart"===p?"heart":"star"}${1===o?"":"s"}`,style:{color:i?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:_(i)},r)})),(0,n.jsx)("input",{type:"hidden",id:e,name:h||e,value:t||"",required:r,disabled:s||a,"aria-hidden":"true"})]})})}function Bn(e,t){return t?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}const Kn=function({schema:e,id:t,options:r,value:a,required:i,disabled:c,readonly:l,multiple:u=!1,autofocus:d=!1,onChange:f,onBlur:h,onFocus:m,placeholder:p,htmlName:y}){const{enumOptions:g,enumDisabled:v,emptyValue:$}=r,b=u?[]:"",_=(0,o.useCallback)((e=>{const r=Bn(e,u);return m(t,(0,s.Od)(r,g,$))}),[m,t,u,g,$]),w=(0,o.useCallback)((e=>{const r=Bn(e,u);return h(t,(0,s.Od)(r,g,$))}),[h,t,u,g,$]),A=(0,o.useCallback)((e=>{const t=Bn(e,u);return f((0,s.Od)(t,g,$))}),[f,u,g,$]),S=(0,s.Yu)(a,g,u),j=!u&&void 0===e.default;return(0,n.jsxs)("select",{id:t,name:y||t,multiple:u,role:"combobox",className:"form-control",value:"undefined"===typeof S?b:S,required:i,disabled:c||l,autoFocus:d,onBlur:w,onFocus:_,onChange:A,"aria-describedby":(0,s.eG)(t),children:[j&&(0,n.jsx)("option",{value:"",children:p}),Array.isArray(g)&&g.map((({value:e,label:t},r)=>{const o=v&&-1!==v.indexOf(e);return(0,n.jsx)("option",{value:String(r),disabled:o,children:t},r)}))]})};const Gn=function({id:e,options:t={},placeholder:r,value:a,required:i,disabled:c,readonly:l,autofocus:u=!1,onChange:d,onBlur:f,onFocus:h,htmlName:m}){const p=(0,o.useCallback)((({target:{value:e}})=>d(""===e?t.emptyValue:e)),[d,t.emptyValue]),y=(0,o.useCallback)((({target:t})=>f(e,t&&t.value)),[f,e]),g=(0,o.useCallback)((({target:t})=>h(e,t&&t.value)),[e,h]);return(0,n.jsx)("textarea",{id:e,name:m||e,className:"form-control",value:a||"",placeholder:r,required:i,disabled:c,readOnly:l,autoFocus:u,rows:t.rows,onBlur:y,onFocus:g,onChange:p,"aria-describedby":(0,s.eG)(e)})};function Wn(e){const{options:t,registry:r}=e,o=(0,s.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{...e})}function Hn(e){const{onChange:t,options:r,registry:a}=e,i=(0,s.$F)("BaseInputTemplate",a,r),c=(0,o.useCallback)((e=>t(e?`${e}:00`:void 0)),[t]);return(0,n.jsx)(i,{type:"time",...e,onChange:c})}function Jn(e){const{options:t,registry:r}=e,o=(0,s.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{type:"url",...e})}function Zn(e){const{options:t,registry:r}=e,o=(0,s.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{type:"number",...e})}const Yn=function(){return{AltDateWidget:xn,AltDateTimeWidget:kn,CheckboxWidget:On,CheckboxesWidget:Nn,ColorWidget:Cn,DateWidget:In,DateTimeWidget:Dn,EmailWidget:Rn,FileWidget:Mn,HiddenWidget:Un,PasswordWidget:Vn,RadioWidget:zn,RangeWidget:qn,RatingWidget:Ln,SelectWidget:Kn,TextWidget:Wn,TextareaWidget:Gn,TimeWidget:Hn,UpDownWidget:Zn,URLWidget:Jn}};function Xn(e,t){return{...(0,l.A)(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...void 0!==t&&{status:t}}}class Qn extends o.Component{formElement;pendingChanges=[];_isProcessingUserChange=!1;static getDerivedStateFromProps(e,t){if(e.extraErrors!==t._prevExtraErrors){const r={errors:t.schemaValidationErrors||[],errorSchema:t.schemaValidationErrorSchema||{}};let{errors:n,errorSchema:o}=r;return e.extraErrors&&({errors:n,errorSchema:o}=(0,s.k6)(r,e.extraErrors)),t.customErrors&&({errors:n,errorSchema:o}=(0,s.k6)({errors:n,errorSchema:o},t.customErrors.ErrorSchema,!0)),{_prevExtraErrors:e.extraErrors,errors:n,errorSchema:o}}return null}constructor(e){if(super(e),!e.validator)throw new Error("A validator is required for Form functionality to work");const{formData:t,initialFormData:r,onChange:n}=e,a=t??r;this.state={...this.getStateFromProps(e,a,void 0,void 0,void 0,!0),_prevExtraErrors:e.extraErrors},n&&!(0,s.c2)(this.state.formData,a)&&n(Xn(this.state)),this.formElement=(0,o.createRef)()}getSnapshotBeforeUpdate(e,t){if(!(0,s.c2)(this.props,e)){const r=(0,s.kp)(this.props.formData,e.formData),n=(0,s.kp)(this.props.formData,this.state.formData),o=!(0,s.c2)(e.schema,this.props.schema),a=r.length>0||!(0,s.c2)(e.formData,this.props.formData),i=n.length>0||!(0,s.c2)(this.state.formData,this.props.formData),c=this.getStateFromProps(this.props,this.props.formData,o||a?void 0:this.state.retrievedSchema,o,r,!i);return{nextState:c,shouldUpdate:!(0,s.c2)(c,t)}}return{shouldUpdate:!1}}componentDidUpdate(e,t,r){if(r.shouldUpdate){const{nextState:e}=r,n=!(0,s.c2)(e.formData,this.props.formData),o=this._isProcessingUserChange;if(this._isProcessingUserChange=!1,o&&n)return;n&&!(0,s.c2)(e.formData,t.formData)&&this.props.onChange&&this.props.onChange(Xn(e)),this.setState(e)}}getStateFromProps(e,t,r,n=!1,o=[],a=!1){const i=this.state||{},c="schema"in e?e.schema:this.props.schema,l="validator"in e?e.validator:this.props.validator,u=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},d=void 0===e.formData&&void 0===this.props.formData,f="undefined"!==typeof t,h="liveValidate"in e?e.liveValidate:this.props.liveValidate,m=f&&!e.noValidate&&h,p="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,y="experimental_customMergeAllOf"in e?e.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let g=i.schemaUtils;g&&!g.doesSchemaUtilsDiffer(l,c,p,y)||(g=(0,s.BP)(l,c,p,y));const v=g.getRootSchema();let $=t;t===Dr?$=void 0:void 0===t&&d&&($=i.formData);const b=g.getDefaultFormState(v,$,!1,i.initialDefaultsGenerated),_=this.updateRetrievedSchema(r??g.retrieveSchema(v,b));let w,A,S=i.schemaValidationErrors,j=i.schemaValidationErrorSchema;if(m&&!a){const e=this.liveValidate(v,g,i.errorSchema,b,void 0,i.customErrors,r,void 0!==r);w=e.errors,A=e.errorSchema,S=e.schemaValidationErrors,j=e.schemaValidationErrorSchema}else{const t=e.noValidate||n?{errors:[],errorSchema:{}}:e.liveValidate?{errors:i.errors||[],errorSchema:i.errorSchema||{}}:{errors:i.schemaValidationErrors||[],errorSchema:i.schemaValidationErrorSchema||{}};if(w=t.errors,A=t.errorSchema,o.length>0&&!m){const e=o.reduce(((e,t)=>(e[t]=void 0,e)),{});A=j=(0,s.rL)(t.errorSchema,e,"preventDuplicates")}const r=this.mergeErrors({errorSchema:A,errors:w},e.extraErrors,i.customErrors);w=r.errors,A=r.errorSchema}const E=this.getRegistry(e,v,g),P=(0,s.c2)(i.registry,E)?i.registry:E;return{schemaUtils:g,schema:v,uiSchema:P.uiSchemaDefinitions?(0,s.gQ)(v,u,P):u,fieldPathId:i.fieldPathId&&i.fieldPathId?.[s.K0]===P.globalFormOptions.idPrefix?i.fieldPathId:(0,s.Yg)("",P.globalFormOptions),formData:b,edit:f,errors:w,errorSchema:A,schemaValidationErrors:S,schemaValidationErrorSchema:j,retrievedSchema:_,initialDefaultsGenerated:!0,registry:P}}shouldComponentUpdate(e,t){const{experimental_componentUpdateStrategy:r="customDeep"}=this.props;return(0,s.F9)(this,e,t,r)}validate(e,t=this.state.schema,r,n){const o=r||this.state.schemaUtils,{customValidate:s,transformErrors:a,uiSchema:i}=this.props,c=n??o.retrieveSchema(t,e);return o.getValidator().validateFormData(e,c,s,a,i)}renderErrors(e){const{errors:t,errorSchema:r,schema:o,uiSchema:a}=this.state,i=(0,s.$R)(a),c=(0,s.$F)("ErrorListTemplate",e,i);return t&&t.length?(0,n.jsx)(c,{errors:t,errorSchema:r||{},schema:o,uiSchema:a,registry:e}):null}mergeErrors(e,t,r){let n=e.errorSchema,o=e.errors;if(t){const r=(0,s.k6)(e,t);n=r.errorSchema,o=r.errors}if(r){const t=(0,s.k6)(e,r.ErrorSchema,!0);n=t.errorSchema,o=t.errors}return{errors:o,errorSchema:n}}liveValidate(e,t,r,n,o,a,i,c=!1){const l=this.validate(n,e,t,i),u=l.errors;let d=l.errorSchema;c&&(d=(0,s.rL)(r,l.errorSchema,"preventDuplicates"));const f=u,h=d;return{...this.mergeErrors({errorSchema:d,errors:u},o,a),schemaValidationErrors:f,schemaValidationErrorSchema:h}}getUsedFormData=(e,t)=>(0,s.Qz)(e,t);getFieldNames=(e,t)=>(0,s.Vx)(e,t);omitExtraData=e=>{const{schema:t,schemaUtils:r}=this.state;return r.omitExtraData(t,e)};setFieldValue=(e,t)=>{const{registry:r}=this.state,n=Array.isArray(e)?e:e.split("."),o=(0,s.Yg)("",r.globalFormOptions,n);this.onChange(t,n,void 0,o[s.K0])};onChange=(e,t,r,n)=>{this.pendingChanges.push({newValue:e,path:t,newErrorSchema:r,id:n}),1===this.pendingChanges.length&&this.processPendingChange()};processPendingChange(){if(0===this.pendingChanges.length)return;this._isProcessingUserChange=!0;const{newValue:e,path:t,id:r}=this.pendingChanges[0],{newErrorSchema:n}=this.pendingChanges[0],{extraErrors:o,omitExtraData:l,liveOmit:d,noValidate:f,liveValidate:m,onChange:p}=this.props,{formData:y,schemaUtils:g,schema:v,fieldPathId:$,schemaValidationErrorSchema:b,errors:_}=this.state;let{customErrors:w,errorSchema:A}=this.state;const S=$.path[0]||"",j=!t||0===t.length||1===t.length&&t[0]===S;let E=this.state.retrievedSchema,P=j?e:(0,a.A)(y);const x=(0,s.Gv)(P)&&Object.keys(P).length>0&&Object.values(P).every((e=>void 0===e)),k=x&&(null===y||void 0===y)?void 0:P;if((0,s.Gv)(P)||Array.isArray(P)){e===Ir?h(P,t):j||(0,u.A)(P,t,e);const r=this.getStateFromProps(this.props,k,void 0,void 0,void 0,!0);P=r.formData,E=r.retrievedSchema}const O=!f&&(!0===m||"onChange"===m);let N={formData:P,schema:v},C=P;if(!0!==l||!0!==d&&"onChange"!==d||(C=this.omitExtraData(P),N={formData:C}),n){const e=j?b:(0,i.A)(b,t);if((0,c.A)(e))if(w||(w=new s.Ny),j){const e=(0,i.A)(n,s.s2);e&&w.setErrors(e)}else(0,u.A)(w.ErrorSchema,t,n);else j?A=n:(0,u.A)(A,t,n)}else w&&(0,i.A)(w.ErrorSchema,[...t,s.s2])&&w.clearErrors(t);if(O&&1===this.pendingChanges.length){const e=this.liveValidate(v,g,A,C,o,w,E);N={formData:C,...e,customErrors:w}}else if(!f&&n){const e=this.mergeErrors({errorSchema:A,errors:_},o,w);N={formData:C,...e,customErrors:w}}this.setState(N,(()=>{p&&p(Xn({...this.state,...N}),r),this.pendingChanges.shift(),this.processPendingChange()}))}updateRetrievedSchema(e){return(0,s.c2)(e,this.state?.retrievedSchema)?this.state.retrievedSchema:e}reset=()=>{const{formData:e,initialFormData:t=Dr,onChange:r}=this.props,n={formData:this.getStateFromProps(this.props,e??t,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(n,(()=>r&&r(Xn({...this.state,...n}))))};onBlur=(e,t)=>{const{onBlur:r,omitExtraData:n,liveOmit:o,liveValidate:a}=this.props;if(r&&r(e,t),!0===n&&"onBlur"===o||"onBlur"===a){const{onChange:t,extraErrors:r}=this.props,{formData:c}=this.state;let l=c,u={formData:l};if(!0===n&&"onBlur"===o&&(l=this.omitExtraData(c),u={formData:l}),"onBlur"===a){const{schema:e,schemaUtils:t,errorSchema:n,customErrors:o,retrievedSchema:s}=this.state,a=this.liveValidate(e,t,n,l,r,o,s);u={formData:l,...a,customErrors:o}}const d=Object.keys(u).filter((e=>!e.startsWith("schemaValidation"))).some((e=>{const t=(0,i.A)(this.state,e),r=(0,i.A)(u,e);return!(0,s.c2)(t,r)}));this.setState(u,(()=>{t&&d&&t(Xn({...this.state,...u}),e)}))}};onFocus=(e,t)=>{const{onFocus:r}=this.props;r&&r(e,t)};onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:t,extraErrors:r,noValidate:n,onSubmit:o}=this.props;let{formData:a}=this.state;if(!0===t&&(a=this.omitExtraData(a)),n||this.validateFormWithFormData(a)){const t=r||{},n=r?(0,s.SL)(r):[];this.setState({formData:a,errors:n,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{o&&o(Xn({...this.state,formData:a},"submitted"),e)}))}};getGlobalFormOptions(e){const{uiSchema:t={},experimental_componentUpdateStrategy:r,idSeparator:n=s.s0,idPrefix:o=s.De,nameGenerator:a,useFallbackUiForUnsupportedType:i=!1}=e;return{idPrefix:t["ui:rootFieldId"]||o,idSeparator:n,useFallbackUiForUnsupportedType:i,...void 0!==r&&{experimental_componentUpdateStrategy:r},...void 0!==a&&{nameGenerator:a}}}getRegistry(e,t,r){const{translateString:n,uiSchema:o={}}=e,{fields:a,templates:i,widgets:c,formContext:l,translateString:u}={fields:Kr(),templates:Pn(),widgets:Yn(),rootSchema:{},formContext:{},translateString:s.qe,globalFormOptions:{idPrefix:s.De,idSeparator:s.s0,useFallbackUiForUnsupportedType:!1}};return{fields:{...a,...e.fields},templates:{...i,...e.templates,ButtonTemplates:{...i.ButtonTemplates,...e.templates?.ButtonTemplates}},widgets:{...c,...e.widgets},rootSchema:t,formContext:e.formContext||l,schemaUtils:r,translateString:n||u,globalUiOptions:o[s.AK],globalFormOptions:this.getGlobalFormOptions(e),uiSchemaDefinitions:o[s.cu]??{}}}submit=()=>{if(this.formElement.current){const e=new CustomEvent("submit",{cancelable:!0});e.preventDefault(),this.formElement.current.dispatchEvent(e),this.formElement.current.requestSubmit()}};focusOnError(e){const{idPrefix:t="root",idSeparator:r="_"}=this.props,{property:n}=e,o=(0,d.A)(n);""===o[0]?o[0]=t:o.unshift(t);const s=o.join(r);let a=this.formElement.current.elements[s];a||(a=this.formElement.current.querySelector(`input[id^="${s}"`)),a&&a.length&&(a=a[0]),a&&a.focus()}validateFormWithFormData=e=>{const{extraErrors:t,extraErrorsBlockSubmit:r,focusOnFirstError:n,onError:o}=this.props,{errors:s}=this.state,a=this.validate(e),{errors:i,errorSchema:c}=t?this.mergeErrors(a,t):a,l=a.errors.length>0||t&&r;return l?(n&&("function"===typeof n?n(i[0]):this.focusOnError(i[0])),this.setState({errors:i,errorSchema:c,schemaValidationErrors:a.errors,schemaValidationErrorSchema:a.errorSchema},(()=>{o?o(i):console.error("Form validation failed",i)}))):i.length>0?this.setState({errors:i,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):s.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}}),!l};validateForm(){const{omitExtraData:e}=this.props;let{formData:t}=this.state;return!0===e&&(t=this.omitExtraData(t)),this.validateFormWithFormData(t)}render(){const{children:e,id:t,className:r="",tagName:o,name:a,method:i,target:c,action:l,autoComplete:u,enctype:d,acceptCharset:f,noHtml5Validate:h=!1,disabled:m,readonly:p,showErrorList:y="top",_internalFormWrapper:g}=this.props,{schema:v,uiSchema:$,formData:b,errorSchema:_,fieldPathId:w,registry:A}=this.state,{SchemaField:S}=A.fields,{SubmitButton:j}=A.templates.ButtonTemplates,E=g?o:void 0,P=g||o||"form";let{[s.xh]:x={}}=(0,s.$R)($);m&&(x={...x,props:{...x.props,disabled:!0}});const k={[s.ce]:{[s.xh]:x}};return(0,n.jsxs)(P,{className:r||"rjsf",id:t,name:a,method:i,target:c,action:l,autoComplete:u,encType:d,acceptCharset:f,noValidate:h,onSubmit:this.onSubmit,as:E,ref:this.formElement,children:["top"===y&&this.renderErrors(A),(0,n.jsx)(S,{name:"",schema:v,uiSchema:$,errorSchema:_,fieldPathId:w,formData:b,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:A,disabled:m,readonly:p}),e||(0,n.jsx)(j,{uiSchema:k,registry:A}),"bottom"===y&&this.renderErrors(A)]})}}r(44030);const eo=Qn},55780(e,t,r){"use strict";function n(e){return"object"===typeof e&&null!==e&&(!("number"===typeof e.lastModified&&"undefined"!==typeof File&&e instanceof File)&&(!("function"===typeof e.getMonth&&"undefined"!==typeof Date&&e instanceof Date)&&!Array.isArray(e)))}function o(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),n(e.additionalItems)}function s(e){if(""===e)return;if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;const t=Number(e);return"number"===typeof t&&!Number.isNaN(t)?t:e}r.d(t,{Rr:()=>a,Xo:()=>l,qC:()=>u,De:()=>P,s0:()=>x,uh:()=>d,Xq:()=>No,s2:()=>h,Ny:()=>En,K0:()=>m,ZN:()=>y,Ru:()=>v,s1:()=>b,jY:()=>_,Es:()=>S,FF:()=>N,at:()=>C,xh:()=>A,Zl:()=>wo,cu:()=>T,AK:()=>R,ce:()=>D,Hh:()=>o,eG:()=>ro,i:()=>s,aA:()=>oo,Xl:()=>U,JF:()=>z,BP:()=>yn,c2:()=>B,IR:()=>Yn,qe:()=>gn,Uw:()=>$n,Yu:()=>_n,BH:()=>bn,L4:()=>wn,Od:()=>vn,rD:()=>Xn,$c:()=>Qn,gQ:()=>mo,kp:()=>Dn,NV:()=>on,KU:()=>ar,Vx:()=>fn,ti:()=>Tn,_I:()=>lr,Bj:()=>Mn,$F:()=>Un,cq:()=>zn,$R:()=>M,Qz:()=>dn,Bt:()=>Gn,Lw:()=>Jn,$K:()=>Hn,wM:()=>Wn,F5:()=>eo,ar:()=>sn,nQ:()=>qr,Uc:()=>ao,Gv:()=>n,w:()=>io,z$:()=>co,a6:()=>lo,rL:()=>Kr,dW:()=>ur,pk:()=>no,C1:()=>so,f9:()=>Zr,UI:()=>uo,Kt:()=>po,l1:()=>yo,F9:()=>vo,II:()=>bo,EH:()=>to,SL:()=>_o,MD:()=>So,Yg:()=>jo,fV:()=>Eo,qJ:()=>Co,lB:()=>Io,uC:()=>Fo,v4:()=>Mo,k6:()=>Uo,vh:()=>Vo});const a="__additional_property",i="additionalProperties",c="allOf",l="anyOf",u="const",d="default",f="dependencies",h="__errors",m="$id",p="if",y="items",g="$name",v="oneOf",$="patternProperties",b="properties",_="readonly",w="required",A="submitButtonOptions",S="$ref",j="__rjsf_ref",E="$schema",P="root",x="_",k=["discriminator","propertyName"],O="formContext",N="__rjsf_additionalProperties",C="__rjsf_rootSchema",I="ui:widget",D="ui:options",R="ui:globalOptions",T="ui:definitions",F="https://json-schema.org/draft/2020-12/schema";function M(e={},t={}){return e?Object.keys(e).filter((e=>0===e.indexOf("ui:"))).reduce(((t,r)=>{const o=e[r];return r===I&&n(o)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),t):r===D&&n(o)?{...t,...o}:{...t,[r.substring(3)]:o}}),{...t}):{...t}}function U(e,t={},r){if(!e.additionalProperties&&!e.patternProperties)return!1;const{expandable:n=!0}=M(t);return!1===n?n:void 0===e.maxProperties||!r||Object.keys(r).length<e.maxProperties}var V=r(34963);function z(e){const t={[h]:[],addError(e){this[h].push(e)}};if(Array.isArray(e))return e.reduce(((e,t,r)=>({...e,[r]:z(t)})),t);if((0,V.A)(e)){const r=e;return Object.keys(r).reduce(((e,t)=>({...e,[t]:z(r[t])})),t)}return t}var q=r(22955);const L=function(e,t,r){var n=(r="function"==typeof r?r:void 0)?r(e,t):void 0;return void 0===n?(0,q.A)(e,t,void 0,r):!!n};function B(e,t){return L(e,t,((e,t)=>{if("function"===typeof e&&"function"===typeof t)return!0}))}var K=r(77500),G=r(39622),W=r(46996),H=r(35704),J=r(59520),Z=r(99922),Y=r(62250),X=4294967295,Q=Math.min;const ee=function(e,t){if((e=(0,Y.A)(e))<1||e>9007199254740991)return[];var r=X,n=Q(e,X);t=(0,Z.A)(t),e-=X;for(var o=(0,J.A)(n,t);++r<e;)t(r);return o};var te=r(72641),re=r(59712),ne=r(79841),oe=r(22080);const se=function(e,t,r,n){var o=r.length,s=o,a=!n;if(null==e)return!s;for(e=Object(e);o--;){var i=r[o];if(a&&i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<s;){var c=(i=r[o])[0],l=e[c],u=i[1];if(a&&i[2]){if(void 0===l&&!(c in e))return!1}else{var d=new oe.A;if(n)var f=n(l,u,c,e,t,d);if(!(void 0===f?(0,q.A)(u,l,3,n,d):f))return!1}}return!0};var ae=r(23149);const ie=function(e){return e===e&&!(0,ae.A)(e)};var ce=r(27422);const le=function(e){for(var t=(0,ce.A)(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,ie(o)]}return t};const ue=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}};const de=function(e){var t=le(e);return 1==t.length&&t[0][2]?ue(t[0][0],t[0][1]):function(r){return r===e||se(r,e,t)}};var fe=r(46964),he=r(86586),me=r(30901);const pe=function(e,t){return(0,he.A)(e)&&ie(t)?ue((0,me.A)(e),t):function(r){var n=(0,K.A)(r,e);return void 0===n&&n===t?(0,fe.A)(r,e):(0,q.A)(t,n,3)}};var ye=r(29008),ge=r(92049);const ve=function(e){return function(t){return null==t?void 0:t[e]}};var $e=r(66318);const be=function(e){return function(t){return(0,$e.A)(t,e)}};const _e=function(e){return(0,he.A)(e)?ve((0,me.A)(e)):be(e)};const we=function(e){return"function"==typeof e?e:null==e?ye.A:"object"==typeof e?(0,ge.A)(e)?pe(e[0],e[1]):de(e):_e(e)};var Ae=r(15647),Se=r(41200),je=r(89610),Ee=r(54749);const Pe=function(e,t,r){var n=(0,ge.A)(e),o=n||(0,Se.A)(e)||(0,Ee.A)(e);if(t=we(t,4),null==r){var s=e&&e.constructor;r=o?n?new s:[]:(0,ae.A)(e)&&(0,je.A)(s)?(0,re.A)((0,Ae.A)(e)):{}}return(o?te.A:ne.A)(e,(function(e,n,o){return t(r,e,n,o)})),r};var xe=r(52528),ke=r(66984);const Oe=function(e,t,r){(void 0!==r&&!(0,ke.A)(e[t],r)||void 0===r&&!(t in e))&&(0,xe.A)(e,t,r)};var Ne=r(97132),Ce=r(80154),Ie=r(1801),De=r(39759),Re=r(32729),Te=r(25175),Fe=r(53533);const Me=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]};var Ue=r(22031),Ve=r(79999);const ze=function(e){return(0,Ue.A)(e,(0,Ve.A)(e))};const qe=function(e,t,r,n,o,s,a){var i=Me(e,r),c=Me(t,r),l=a.get(c);if(l)Oe(e,r,l);else{var u=s?s(i,c,r+"",e,t,a):void 0,d=void 0===u;if(d){var f=(0,ge.A)(c),h=!f&&(0,Se.A)(c),m=!f&&!h&&(0,Ee.A)(c);u=c,f||h||m?(0,ge.A)(i)?u=i:(0,Fe.A)(i)?u=(0,De.A)(i):h?(d=!1,u=(0,Ce.A)(c,!0)):m?(d=!1,u=(0,Ie.A)(c,!0)):u=[]:(0,V.A)(c)||(0,Te.A)(c)?(u=i,(0,Te.A)(i)?u=ze(i):(0,ae.A)(i)&&!(0,je.A)(i)||(u=(0,Re.A)(c))):d=!1}d&&(a.set(c,u),o(u,c,n,s,a),a.delete(c)),Oe(e,r,u)}};const Le=function e(t,r,n,o,s){t!==r&&(0,Ne.A)(r,(function(a,i){if(s||(s=new oe.A),(0,ae.A)(a))qe(t,r,i,n,e,o,s);else{var c=o?o(Me(t,i),a,i+"",t,r,s):void 0;void 0===c&&(c=a),Oe(t,i,c)}}),Ve.A)};var Be=r(24326),Ke=r(38446),Ge=r(25353);const We=function(e,t,r){if(!(0,ae.A)(r))return!1;var n=typeof t;return!!("number"==n?(0,Ke.A)(r)&&(0,Ge.A)(t,r.length):"string"==n&&t in r)&&(0,ke.A)(r[t],e)};const He=function(e){return(0,Be.A)((function(t,r){var n=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,a&&We(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++n<o;){var i=r[n];i&&e(t,i,n,s)}return t}))}((function(e,t,r){Le(e,t,r)}));var Je=r(87671),Ze=1/0;const Ye=function(e){return(null==e?0:e.length)?(0,Je.A)(e,Ze):[]};var Xe=r(8300),Qe=r(83149),et=r(87809),tt=r(64099),rt=r(39857),nt=r(42302),ot=r(29959);const st=rt.A&&1/(0,ot.A)(new rt.A([,-0]))[1]==1/0?function(e){return new rt.A(e)}:nt.A;const at=function(e,t,r){var n=-1,o=Qe.A,s=e.length,a=!0,i=[],c=i;if(r)a=!1,o=et.A;else if(s>=200){var l=t?null:st(e);if(l)return(0,ot.A)(l);a=!1,o=tt.A,c=new Xe.A}else c=t?[]:i;e:for(;++n<s;){var u=e[n],d=t?t(u):u;if(u=r||0!==u?u:0,a&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),i.push(u)}else o(c,d,r)||(c!==i&&c.push(d),i.push(u))}return i};const it=function(e){return e&&e.length?at(e):[]};var ct=r(66401);const lt=Object.prototype;function ut(e){for(const t in e)if(lt.hasOwnProperty.call(e,t))return!1;return!0}new Set(["array","boolean","integer","null","number","object","string"]);const dt=["$defs","definitions","properties","patternProperties","dependencies"],ft=(new Set(dt),["items","allOf","oneOf","anyOf"]),ht=(new Set(ft),["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"]);new Set(ht);function mt(e){return"object"===typeof e}function pt(e){return mt(e)?ut(e):!0===e}function yt(e,t){return e<t?-1:e>t?1:0}function gt(e,t){const r=e.length;if(0===r)return t;let n=t.length;if(0===n)return e;if(r<n){const o=e;e=t,t=o,n=r}const o=new Set(e);for(let s=0;s<n;s++)o.add(t[s]);return Array.from(o)}function vt(e,t){const r=[];if(0===e.length||0===t.length)return r;if(e.length>t.length){const r=e;e=t,t=r}const n=new Set(t);for(let o=0;o<e.length&&n.size>0;o++){const t=e[o];n.delete(t)&&r.push(t)}return r}function $t(e){return 0===e.length}function bt(e){return(t,r)=>{const n=t.length-r.length;if(0!==n)return n;for(let o=0;o<t.length;o++)if(t[o]!==r[o]){const n=e(t[o],r[o]);if(0!==n)return n}return 0}}function _t(e,{threshold:t=12}={}){return r=>{const n=r.length;if(0===n)return r;if(n<=t){const t=[];let o=0;e:for(let s=0;s<n;s++){const n=r[s];for(let r=0;r<o;r++)if(0===e(n,t[r]))continue e;o=t.push(n)}return t}const o=r.slice().sort(e);let s=0;for(let t=1;t<n;t++)0!==e(o[s],o[t])&&++s!==t&&(o[s]=o[t]);return o.length=s+1,o}}const wt=function(e,t){return r=>{if(e.has(r))return e.get(r);const n=t(r);return e.set(r,n),n}},At=()=>0,St=e=>void 0===e,jt=e=>"object"!==typeof e,Et={boolean:0,number:1,string:2};function Pt(e,t){const r=typeof e,n=typeof t;return r===n?yt(e,t):Et[r]-Et[n]}function xt(e,t,r=At){return(n,o)=>e(n)?e(o)?r(n,o):-1:e(o)?1:t(n,o)}function kt(e){return xt(St,e)}function Ot(e,t){return xt((t=>void 0===t||e(t)),t)}function Nt(e,t){return xt(Array.isArray,e,t)}const Ct=kt(yt),It=Ot((e=>0===e),((e,t)=>e-t));function Dt(e){return e}const Rt=(e,t)=>e?Rt(t%e,e):t;function Tt(e,t){return e===t?e:`^(?=.*(?:${e}))(?=.*(?:${t})).*$`}function*Ft(e,t,r){const n=e.length,o=t.length;if(n>0&&o>0)for(let s=0;s<n;s++){const n=e[s];for(let e=0;e<o;e++)yield r(n,t[e])}}function Mt(e,t){return e||t}function Ut(e){return(t,r)=>{const n={...t},o=Object.keys(r),s=o.length;for(let a=0;a<s;a++){const s=o[a];n[s]=void 0===t[s]?r[s]:e(t[s],r[s])}return n}}function Vt(e,t,r){void 0===r||pt(r)?delete e[t]:e[t]=r}const zt=["properties","patternProperties","additionalProperties"];function qt(e){const t=Object.keys(e),r=t.length,n=[];for(let o=0;o<r;o++){const r=t[o];n.push({regExp:new RegExp(r),schema:e[r]})}return[n,t]}const Lt=[[],[]];function Bt(e,t,r){const n=r.length;for(let o=0;o<n;o++){const n=r[o];if(!n.regExp.test(t))continue;const s=n.schema;if(!1===s)return!0;e.push(s)}return!1}const Kt=["items","additionalItems"],Gt=["if","then","else"];function Wt(e,t){return void 0!==t.if&&(e.if=t.if),void 0!==t.then&&(e.then=t.then),void 0!==t.else&&(e.else=t.else),e}function Ht(e,t){if(e===t)return e;switch(e){case"number":if("integer"===t)return"integer";case"integer":if("number"===t)return"integer";default:return}}function Jt(e,t,r){return[e,t,r]}const Zt=[Jt("minimum","maximum",(e=>e.maximum>=e.minimum)),Jt("exclusiveMinimum","maximum",(e=>e.maximum>e.exclusiveMinimum)),Jt("minimum","exclusiveMaximum",(e=>e.exclusiveMaximum>e.minimum)),Jt("exclusiveMinimum","exclusiveMaximum",(e=>e.exclusiveMaximum>e.exclusiveMinimum)),Jt("minLength","maxLength",(e=>e.maxLength>=e.minLength)),Jt("minItems","maxItems",(e=>e.maxItems>=e.minItems)),Jt("minProperties","maxProperties",(e=>e.maxProperties>=e.minProperties))];var Yt=r(56239),Xt=r(54930),Qt=r(48343);function er(e,t){if(m in e&&Qt.equal(e[m],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const e of r)if((0,ae.A)(e)){const r=er(e,t);if(void 0!==r)return r}}else if((0,ae.A)(r)){const e=er(r,t);if(void 0!==e)return e}}function tr(e,t){const r=(0,K.A)(e,m,t);S in e&&(e={...e,[S]:Qt.resolve(r,e[S])});for(const[n,o]of Object.entries(e))Array.isArray(o)?e={...e,[n]:o.map((e=>(0,ae.A)(e)?tr(e,r):e))}:(0,ae.A)(o)&&(e={...e,[n]:tr(o,r)});return e}function rr(e,t){const r=t[e];return[(0,Xt.A)(t,[e]),r]}function nr(e,t={},r=[],n=(0,K.A)(t,[m])){const o=e||"";let s;if(o.startsWith("#")){const e=decodeURIComponent(o.substring(1));void 0===n||m in t&&t[m]===n?s=Yt.get(t,e):t[E]===F&&(s=er(t,n.replace(/\/$/,"")),void 0!==s&&(s=Yt.get(s,e)))}else if(t[E]===F){const e=n?Qt.resolve(n,o):o,[r,...a]=e.replace(/#\/?$/,"").split("#");s=er(t,r.replace(/\/$/,"")),void 0!==s&&(n=s[m],(0,ct.A)(a)||(s=Yt.get(s,decodeURIComponent(a.join("#")))))}if(void 0===s)throw new Error(`Could not find a definition for ${e}.`);const a=s[S];if(a){if(r.includes(a)){if(1===r.length)throw new Error(`Definition for ${e} is a circular reference`);const[t,...n]=r,s=[...n,o,t].join(" -> ");throw new Error(`Definition for ${t} contains a circular reference through ${s}`)}const[i,l]=rr(S,s),u=nr(l,t,[...r,o],n);return Object.keys(i).length>0?"https://json-schema.org/draft/2019-09/schema"===t[E]||t[E]===F?{[c]:[i,u]}:{...i,...u}:u}return s}function or(e,t={},r=(0,K.A)(t,[m])){return nr(e,t,[],r)}var sr=r(9703);function ar(e){let t;const r=(0,K.A)(e,k);return(0,sr.A)(r)?t=r:void 0!==r&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function ir(e){return Array.isArray(e)?"array":"string"===typeof e?"string":null==e?"null":"boolean"===typeof e?"boolean":isNaN(e)?"object"===typeof e?"object":"string":"number"}const cr=(0,Be.A)((function(e){return at((0,Je.A)(e,1,Fe.A,!0))}));function lr(e){let{type:t}=e;return!t&&e.const?ir(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties||e.patternProperties)?"object":(Array.isArray(t)&&(t=2===t.length&&t.includes("null")?t.find((e=>"null"!==e)):t[0]),t)}function ur(e,t){const r=Object.assign({},e);return Object.keys(t).reduce(((r,o)=>{const s=e?e[o]:{},a=t[o];return e&&o in e&&n(a)?r[o]=ur(s,a):e&&t&&("object"===lr(e)||"object"===lr(t))&&o===w&&Array.isArray(s)&&Array.isArray(a)?r[o]=cr(s,a):r[o]=a,r}),r)}var dr=r(2383),fr=r(53098);const hr=function(e){return"number"==typeof e||(0,fr.A)(e)&&"[object Number]"==(0,dr.A)(e)};function mr(e,t,r){var n;if(e&&r){const o=(0,K.A)(e,r);if(void 0===o)return;for(let e=0;e<t.length;e++){const s=t[e],a=(0,K.A)(s,[b,r],{});if("object"!==a.type&&"array"!==a.type){if(a.const===o)return e;if(null===(n=a.enum)||void 0===n?void 0:n.includes(o))return e}}}}function pr(e,t,r,n,o){if(void 0===t)return 0;const s=mr(t,r,o);if(hr(s))return s;for(let a=0;a<r.length;a++){const s=r[a];if(o&&(0,G.A)(s,[b,o])){const r=(0,K.A)(t,o),i=(0,K.A)(s,[b,o],{});if(e.isValid(i,r,n))return a}else if(s[b]){const r={anyOf:Object.keys(s[b]).map((e=>({required:[e]})))};let o;if(s.anyOf){const{...e}=s;e.allOf?e.allOf=e.allOf.slice():e.allOf=[],e.allOf.push(r),o=e}else o=Object.assign({},s,r);if(delete o.required,e.isValid(o,t,n))return a}else if(e.isValid(s,t,n))return a}return 0}function yr(e,t,r={},n,o,s=!1){return Er(e,t,r,n,void 0,void 0,o,s)[0]}function gr(e){return e.reduce(((e,t)=>t.length>1?t.flatMap((t=>ee(e.length,(r=>[...e[r]].concat(t))))):(e.forEach((e=>e.push(t[0]))),e)),[[]])}function vr(e,t){return Object.keys(e.patternProperties).filter((e=>RegExp(e).test(t))).reduce(((t,r)=>((0,H.A)(t,[r],e.patternProperties[r]),t)),{})}function $r(e,t,r,n,o,s,a,i){const c=br(t,r,o,void 0,i);return c!==t?Er(e,c,r,s,n,o,a,i):[t]}function br(e,t,r,o,s){if(!n(e))return e;let a=e;if(S in a){const{$ref:e,...n}=a;if(r.includes(e))return a;r.push(e);a={...or(e,t,o),...n,[j]:e},m in a&&(o=a[m])}if(b in a){const e=[],n=Pe(a[b],((n,a,i)=>{const c=[...r];n[i]=br(a,t,c,o,s),e.push(c)}),{});He(r,it(Ye(e))),a={...a,[b]:n}}if(y in a&&!Array.isArray(a.items)&&"boolean"!==typeof a.items&&(a={...a,items:br(a.items,t,r,o,s)}),s){let n,i;l in e&&Array.isArray(e[l])?(n=l,i=a[l]):v in e&&Array.isArray(e[v])&&(n=v,i=a[v]),n&&i&&(a={...a,[n]:i.map((e=>br(e,t,r,o,s)))})}return B(e,a)?e:a}const{compareSchemaDefinitions:_r,compareSchemaValues:wr}=function({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=wt(t,(e=>Object.keys(e).sort()));function n(e){return(t,n)=>{const o=r(t),s=r(n),a=Math.min(o.length,s.length);for(let e=0;e<a;e++){const t=yt(o[e],s[e]);if(0!==t)return t}if(o.length!==s.length)return o.length-s.length;for(let r=0;r<a;r++){const s=o[r],a=e(t[s],n[s]);if(0!==a)return a}return 0}}function o(t){const r=bt(t),n=wt(e,_t(t,{threshold:0}));return(e,t)=>r(n(e),n(t))}const s=o(yt);function a(e,t){if(mt(e)){if(mt(t)){const r=function(e,t){const r=e.length;if(0===r)return t;const n=t.length;if(0===n)return e;if(n>r){const r=e;e=t,t=r}const o=new Set(e),s=t.length;for(let a=0;a<s;a++){const r=t[a];o.has(r)||e.push(r)}return e}(Object.keys(e),Object.keys(t)),n=r.length;for(let o=0;o<n;o++){const n=r[o];if(e[n]===t[n])continue;const s=(m[n]??i)(e[n],t[n]);if(0!==s)return s}return 0}return!0===t&&ut(e)?0:1}return mt(t)?!0===e&&ut(t)?0:-1:yt(e,t)}const i=kt(l),c=xt(jt,Nt(n(i),bt(l)),Pt);function l(e,t){return null===e?-1:null===t?1:c(e,t)}const u=kt(a),d=Ot(ut,n(u)),f=kt(o(a)),h=Ot(pt,a),m={$id:Ct,$comment:Ct,$defs:d,$ref:Ct,$schema:Ct,const:i,contains:u,contentEncoding:Ct,contentMediaType:Ct,default:i,definitions:d,description:Ct,else:u,examples:i,exclusiveMaximum:Ct,exclusiveMinimum:Ct,format:Ct,if:u,maximum:Ct,maxItems:Ct,maxLength:Ct,maxProperties:Ct,minimum:Ct,multipleOf:Ct,not:u,pattern:Ct,propertyNames:u,readOnly:Ct,then:u,title:Ct,writeOnly:Ct,uniqueItems:Ot((e=>!1===e),At),minLength:It,minItems:It,minProperties:It,required:Ot($t,s),enum:Ot($t,o(l)),type:kt(((e,t)=>{const r=Array.isArray(e),n=Array.isArray(t);return r||n?s(r?e:[e],n?t:[t]):yt(e,t)})),items:Ot((e=>!Array.isArray(e)&&pt(e)),Nt(a,bt(a))),anyOf:f,allOf:f,oneOf:f,properties:d,patternProperties:d,additionalProperties:h,additionalItems:h,dependencies:Ot(ut,n(kt(Nt(a,s))))};return{compareSchemaValues:l,compareSchemaDefinitions:a}}(),{mergeArrayOfSchemaDefinitions:Ar}=function({mergePatterns:e=Tt,isSubRegExp:t=Object.is,intersectJson:r=vt,deduplicateJsonSchemaDef:n=Dt,defaultMerger:o=Dt,assigners:s=[],checks:a=Zt,mergers:i}={}){function c(e){const t=e.length;let r=e[0];for(let n=1;n<t;n++){const t=m(r,e[n]);if(!1===t)return!1;pt(t)||(r=t)}return r}function l(e,t,r,n,o,s,a){if(e.length=0,!1===r)return!1;e.push(r);if(void 0!==o){if(!1===o)return!1;e.push(o)}if(Bt(e,t,s))return!1;const i=e.length<2;if(!1===a){if(i)return;if(Bt(e,t,n))return!1}else i&&void 0!==a&&e.push(a);return 1===e.length?e[0]:c(e)}function u(e,t,r,n,o,s){const a=r.length;if(a>0&&!1!==o)if(s)Object.assign(e,t);else for(let i=0;i<a;i++){const s=r[i];n.has(s)||(e[s]=m(t[s],o))}return e}function d(e,t){return n(Array.from(Ft(e,t,m)))}const f=function(e){const t=new Map;for(const r of e)for(const e of r[0])t.set(e,r[1]);return t}([[zt,(r,{properties:n={},patternProperties:o,additionalProperties:s=!0},{properties:a={},patternProperties:i,additionalProperties:c=!0})=>{const d=pt(s),f=pt(c);if(d&&f)return Vt(r,"properties",p(n,a)),Vt(r,"patternProperties",o&&i?p(o,i):o??i),delete r.additionalProperties,r;Vt(r,"additionalProperties",m(s,c));const h={},y=Object.keys(n),g=y.length,[v,$]=o?qt(o):Lt,[b,_]=i?qt(i):Lt,w=[],A=new Set,S=f?void 0:c;for(let e=0;e<g;e++){const t=y[e];A.add(t);const r=l(w,t,n[t],v,a[t],b,S);void 0!==r&&(h[t]=r)}const j=Object.keys(a),E=j.length,P=d?void 0:s;for(let e=0;e<E;e++){const t=j[e];if(A.has(t))continue;const r=l(w,t,a[t],b,void 0,v,P);void 0!==r&&(h[t]=r)}Vt(r,"properties",h);let x={};const k=new Set;if($.length>0&&_.length>0){const r=Ft($,_,((r,n)=>{t(r,n)&&k.add(r),t(n,r)&&k.add(n),x[e(r,n)]=m(o[r],i[n])}));for(;!r.next().done;);}return x=u(x,o,$,k,c,f),x=u(x,i,_,k,s,d),Vt(r,"patternProperties",x),r}],[Kt,(e,{items:t=[],additionalItems:r},{items:n=[],additionalItems:o})=>{const s=Array.isArray(t),a=Array.isArray(n),i=[];if(e.items=i,s&&a){const[s,a,c]=t.length<n.length?[t.length,r,n]:[n.length,o,t];let l=0;for(;l<s;l++)i.push(m(t[l],n[l]));if(!1===a)e.additionalItems=!1;else{const t=void 0===a||pt(a);for(;l<c.length;l++)i.push(t?c[l]:m(c[l],a));Vt(e,"additionalItems",void 0!==r&&void 0!==o?m(r,o):r??o)}}else if(s||a){const[a,c,l]=s?[t,n,r]:[n,t,o];Vt(e,"additionalItems",l&&m(l,c));for(let e=0;e<a.length;e++)i.push(m(a[e],c))}else delete e.additionalItems,e.items=m(t,n);return e}],[Gt,(e,t,r)=>{Wt(e,t);const n=Wt({},r);return void 0===e.allOf?e.allOf=[n]:e.allOf=e.allOf.concat(n),e}],...s]),h=function(e){const t=new Map;for(const[r,n,o]of e){const e=e=>{if(!o(e))throw new Error(`Schema keys '${r}' and '${n}' are conflicting (${r}: ${JSON.stringify(e[r])}, ${n}: ${JSON.stringify(e[n])})`)};for(const o of[[r,n],[n,r]]){let r=t.get(o[0]);void 0===r&&(r=[],t.set(o[0],r)),r.push({oppositeKey:o[1],check:e})}}return t}(a);function m(e,t){if(!1===e||!1===t)return!1;if(pt(e))return!!pt(t)||t;if(pt(t))return e;let r={...e};const n=new Set,s=new Set,a=Object.keys(t),i=a.length;for(let c=0;c<i;c++){const i=a[c],l=t[i];if(void 0===l)continue;const u=h.get(i);if(void 0!==u){const t=u.length;for(let r=0;r<t;r++){const t=u[r];void 0!==e[t.oppositeKey]&&s.add(t.check)}}const d=e[i];if(void 0===d){r[i]=l;continue}const m=f.get(i);if(m){n.add(m);continue}const p=y[i]??o;r[i]=p(d,l)}for(const o of n)r=o(r,e,t);for(const o of s)o(r);return r}const p=Ut(m),y={$id:o,$ref:o,$schema:o,$comment:o,$defs:p,definitions:p,type:(e,t)=>{if(e===t)return e;const r=Array.isArray(e),n=Array.isArray(t);if(r||n){if(r||n){const o=new Set;if(r&&n)for(const r of Ft(e,t,Ht))void 0!==r&&o.add(r);else{const n=r?e:t,s=r?t:e,a=n.length;for(let e=0;e<a;e++){const t=Ht(s,n[e]);void 0!==t&&o.add(t)}}const s=o.size;if(1===s)return o.values().next().value;if(s>1)return Array.from(o)}}else{const r=Ht(e,t);if(void 0!==r)return r}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${e.toString()}, ${t.toString()}`)},default:o,description:o,title:o,const:o,format:o,contentEncoding:o,contentMediaType:o,not:(e,t)=>{const r=n([e,t]);return 1===r.length?r[0]:{anyOf:r}},pattern:e,readOnly:Mt,writeOnly:Mt,enum:(e,t)=>{const n=r(e,t);if(0===n.length)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(e)}", "${JSON.stringify(t)}"`);return n},anyOf:d,oneOf:d,allOf:(e,t)=>n(e.concat(t)),propertyNames:m,contains:m,dependencies:Ut(((e,t)=>Array.isArray(e)?Array.isArray(t)?gt(e,t):m(t,{required:e}):Array.isArray(t)?m(e,{required:t}):m(e,t))),examples:(e,t)=>{if(!Array.isArray(e)||!Array.isArray(t))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(e)}" and "${JSON.stringify(t)}"`);return gt(e,t)},multipleOf:(e,t)=>{let r=1;for(;!Number.isInteger(e)||!Number.isInteger(t);)r*=10,e*=10,t*=10;return((e,t)=>Math.abs(e*t)/Rt(e,t))(e,t)/r},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:Mt,required:gt,...i};return{mergeSchemaDefinitions:m,mergeArrayOfSchemaDefinitions:c}}({intersectJson:(Sr=wr,(e,t)=>{const r=[];let n=e.length,o=t.length;if(0===n||0===o)return r;if(n>o){const r=e;e=t,t=r;const s=n;n=o,o=s}const s=[...e].sort(Sr),a=[...t].sort(Sr);let i=0,c=0;for(;i<n&&c<o;){const e=Sr(s[i],a[c]);0===e?(0!==r.length&&0===Sr(r[r.length-1],s[i])||r.push(s[i]),i++,c++):e<0?i++:c++}return r}),deduplicateJsonSchemaDef:_t(_r)});var Sr;const jr=function(e){return t=>e(function(e){const t=[],r=[e];for(;r.length>0;){const e=r.pop();if("boolean"===typeof e||void 0===e.allOf){t.push(e);continue}const{allOf:n,...o}=e;t.push(o);for(let t=n.length-1;t>=0;t--)r.push(n[t])}return t}(t))}(Ar);function Er(e,t,r,o,s=!1,u=[],d,h){if(!n(t))return[{}];const m=function(e,t,r,n,o,s,a,i){const l=$r(e,t,r,n,o,s,a,i);if(l.length>1||l[0]!==t)return l;if(f in t)return Pr(e,t,r,n,o,s,a).flatMap((t=>Er(e,t,r,s,n,o,a)));if(c in t&&Array.isArray(t[c]))return gr(t.allOf.map((t=>Er(e,t,r,s,n,o,a)))).map((e=>({...t,allOf:e})));return[t]}(e,t,r,s,u,o,d,h);return m.flatMap((t=>{var f;let h=t;if(p in h)return function(e,t,r,n,o,s,a){const{if:i,then:c,else:l,...u}=t,d=e.isValid(i,s||{},r);let f=[u],h=[];if(n)c&&"boolean"!==typeof c&&(h=h.concat(Er(e,c,r,s,n,o,a))),l&&"boolean"!==typeof l&&(h=h.concat(Er(e,l,r,s,n,o,a)));else{const t=d?c:l;t&&"boolean"!==typeof t&&(h=h.concat(Er(e,t,r,s,n,o,a)))}return h.length&&(f=h.map((e=>ur(u,e)))),f.flatMap((t=>Er(e,t,r,s,n,o,a)))}(e,h,r,s,u,o,d);if(c in h){if(s){const{allOf:e,...t}=h;return[...e,t]}try{const e=[],t=[];null===(f=h.allOf)||void 0===f||f.forEach((r=>{"object"===typeof r&&r.contains?e.push(r):t.push(r)})),e.length&&(h={...h,allOf:t}),h=d?d(h):function(e){return jr(e)}(h),e.length&&(h.allOf=e)}catch(m){console.warn("could not merge subschemas in allOf:\n",m);const{allOf:e,...t}=h;return t}}b in h&&$ in h&&(h=Object.keys(h.properties).reduce(((t,n)=>{const s=vr(t,n);return(0,ct.A)(s)||(t.properties[n]=yr(e,{allOf:[t.properties[n],...Object.values(s)]},r,(0,K.A)(o,[n]),d)),t}),{...h,properties:{...h.properties}}));return $ in h||i in h&&!1!==h.additionalProperties?function(e,t,r,o,s){const u={...t,properties:{...t.properties}},d=o&&n(o)?o:{};return Object.keys(d).forEach((t=>{if(!(t in u.properties)){if($ in u){const n=vr(u,t);if(!(0,ct.A)(n))return u.properties[t]=yr(e,{[c]:Object.values(n)},r,(0,K.A)(d,[t]),s),void(0,H.A)(u.properties,[t,a],!0)}if(i in u&&!1!==u.additionalProperties){let n;n="boolean"!==typeof u.additionalProperties?S in u.additionalProperties?yr(e,{[S]:(0,K.A)(u.additionalProperties,[S])},r,d,s):"type"in u.additionalProperties?{...u.additionalProperties}:l in u.additionalProperties||v in u.additionalProperties?{type:"object",...u.additionalProperties}:{type:ir((0,K.A)(d,[t]))}:{type:ir((0,K.A)(d,[t]))},u.properties[t]=n,(0,H.A)(u.properties,[t,a],!0)}else u.properties[t]={type:"null"},(0,H.A)(u.properties,[t,a],!0)}})),u}(e,h,r,o,d):h}))}function Pr(e,t,r,n,o,s,a){const{dependencies:i,...c}=t,l=function(e,t,r,n,o){let s;const{oneOf:a,anyOf:i,...c}=t;if(Array.isArray(a)?s=a:Array.isArray(i)&&(s=i),s){const a=void 0===o&&n?{}:o,i=ar(t);s=s.map((e=>br(e,r,[])));const l=pr(e,a,s,r,i);if(n)return s.map((e=>ur(c,e)));t=ur(c,s[l])}return[t]}(e,c,r,n,s);return l.flatMap((t=>xr(e,i,t,r,n,o,s,a)))}function xr(e,t,r,o,s,a,i,c){let l=[r];for(const u in t){if(!s&&void 0===(0,K.A)(i,[u]))continue;if(r.properties&&!(u in r.properties))continue;const[d,f]=rr(u,t);return Array.isArray(f)?l[0]=kr(r,f):n(f)&&(l=Or(e,r,o,u,f,s,a,i,c)),l.flatMap((t=>xr(e,d,t,o,s,a,i,c)))}return l}function kr(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:r}}function Or(e,t,r,n,o,s,a,i,c){return Er(e,o,r,i,s,a,c).flatMap((o=>{const{oneOf:l,...u}=o;if(t=ur(t,u),void 0===l)return t;return gr(l.map((t=>"boolean"!==typeof t&&S in t?$r(e,t,r,s,a,i):[t]))).flatMap((o=>function(e,t,r,n,o,s,a,i,c){const l=o.filter((t=>{if("boolean"===typeof t||!t||!t.properties)return!1;const{[n]:o}=t.properties;if(o){const t={type:"object",properties:{[n]:o}};return e.isValid(t,i,r)||s}return!1}));if(!s&&1!==l.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t];return l.flatMap((o=>{const l=o,[u]=rr(n,l.properties),d={...l,properties:u};return Er(e,d,r,i,s,a,c).map((e=>ur(t,e)))}))}(e,t,r,n,o,s,a,i,c)))}))}function Nr(e,t,r,n,o,s={},a){if(Array.isArray(r[o])){const i=ar(r)||n,c=r[o].map((r=>yr(e,r,t,s,a))),l=(0,K.A)(s,i);if(void 0!==l)return c.find((e=>(0,W.A)((0,K.A)(e,[b,i,d],(0,K.A)(e,[b,i,u])),l)))}}function Cr(e,t,r,n,o){let s=r;if((0,G.A)(r,S)&&(s=yr(e,r,t,void 0,o)),(0,ct.A)(n))return s;const a=Array.isArray(n)?n:n.split("."),[i,...c]=a;return i&&(0,G.A)(s,i)?(s=(0,K.A)(s,i),Cr(e,t,s,c,o)):void 0}function Ir(e,t,r,n,o,s){const a=Cr(e,t,r,n,s);return void 0===a?o:a}const Dr={title:"!@#$_UNKNOWN_$#@!"};const Rr=function(e,t,r,n){var o=-1,s=null==e?0:e.length;for(n&&s&&(r=e[++o]);++o<s;)r=t(r,e[o],o,e);return r};var Tr=r(94288);const Fr=function(e,t,r,n,o){return o(e,(function(e,o,s){r=n?(n=!1,e):t(r,e,o,s)})),r};const Mr=function(e,t,r){var n=(0,ge.A)(e)?Rr:Fr,o=arguments.length<3;return n(e,we(t,4),r,o,Tr.A)},Ur={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function Vr(e,t,r,n,o){let s=0;return r&&((0,ae.A)(r.properties)?s+=Mr(r.properties,((r,s,a)=>{const i=(0,K.A)(n,a);if("boolean"===typeof s)return r;if((0,G.A)(s,S)){const n=yr(e,s,t,i,o);return r+Vr(e,t,n,i||{},o)}if(((0,G.A)(s,v)||(0,G.A)(s,l))&&i){const n=(0,G.A)(s,v)?v:l,a=ar(s);return r+zr(e,t,i,(0,K.A)(s,n),-1,a,o)}if("object"===s.type)return(0,ae.A)(i)&&(r+=1),r+Vr(e,t,s,i,o);if(s.type===ir(i)){let e=r+1;return s.default?e+=i===s.default?1:-1:s.const&&(e+=i===s.const?1:-1),e}return r}),0):(0,sr.A)(r.type)&&r.type===ir(n)&&(s+=1)),s}function zr(e,t,r,n,o=-1,s,a){const i=n.map((e=>br(e,t,[]))),c=mr(r,n,s);if(hr(c))return c;const l=i.reduce(((n,o,a)=>(1===pr(e,r,[Ur,o],t,s)&&n.push(a),n)),[]);if(1===l.length)return l[0];l.length||ee(i.length,(e=>l.push(e)));const u=new Set,{bestIndex:d}=l.reduce(((n,o)=>{const{bestScore:s}=n,c=i[o],l=Vr(e,t,c,r,a);return u.add(l),l>s?{bestIndex:o,bestScore:l}:n}),{bestIndex:o,bestScore:0});return 1===u.size&&o>=0?o:d}function qr(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>n(e)))}const Lr=function(e){return null==e};function Br(e,t,r=!1,o=!1,s=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],a=s?t:n,i=(s?n:t).map(((e,i)=>void 0!==a[i]?Br(n[i],t[i],r,o,s):e));return(r||s)&&i.length<a.length&&i.push(...a.slice(i.length)),i}if(n(t)){const a=Object.assign({},e);return Object.keys(t).reduce(((a,i)=>{var c;const l=(0,K.A)(t,i),u=n(e)&&i in e,d=i in t,f=null!==(c=(0,K.A)(e,i))&&void 0!==c?c:{},h=u&&Object.entries(f).some((([,e])=>n(e))),m=u&&n((0,K.A)(e,i)),p=d&&n(l);return m&&p&&!h?(a[i]={...(0,K.A)(e,i),...l},a):(a[i]=Br((0,K.A)(e,i),l,r,o,s&&(u||!d)),a)}),a)}return o&&(void 0!==e&&Lr(t)||"number"===typeof t&&isNaN(t))||s&&!Lr(t)?e:t}function Kr(e,t,r=!1){return Object.keys(t).reduce(((o,s)=>{const a=e?e[s]:{},i=t[s];if(e&&s in e&&n(i))o[s]=Kr(a,i,r);else if(r&&Array.isArray(a)&&Array.isArray(i)){let e=i;"preventDuplicates"===r&&(e=i.reduce(((e,t)=>(a.includes(t)||e.push(t),e)),[])),o[s]=a.concat(e)}else o[s]=i;return o}),Object.assign({},e))}function Gr(e){return Array.isArray(e.enum)&&1===e.enum.length||u in e}function Wr(e,t,r={},n){const o=yr(e,t,r,void 0,n),s=o.oneOf||o.anyOf;return!!Array.isArray(o.enum)||!!Array.isArray(s)&&s.every((e=>"boolean"!==typeof e&&Gr(e)))}function Hr(e,t,r,n){return!(!t.uniqueItems||!t.items||"boolean"===typeof t.items)&&Wr(e,t.items,r,n)}function Jr(e){const t=e[u],r=lr(e);return n(t)&&(0,sr.A)(null===t||void 0===t?void 0:t.$data)&&"object"!==r&&"array"!==r}function Zr(e,t){if(e.enum){let r,n;if(t){const{enumNames:e,enumOrder:o}=M(t);r=e,n=o}let o=e.enum.map(((e,t)=>({label:Array.isArray(r)?r[t]||String(e):(null===r||void 0===r?void 0:r[String(e)])||String(e),value:e})));return n&&(o=function(e,t){const r=new Map(e.map((e=>[String(e.value),e]))),n=new Set(t.filter((e=>"*"!==e)).map(String)),o=e.filter((e=>!n.has(String(e.value))));return t.flatMap((e=>{if("*"===e)return o;const t=r.get(String(e));return t?[t]:[]}))}(o,n)),o}let r,n;e.anyOf?(r=e.anyOf,n=null===t||void 0===t?void 0:t.anyOf):e.oneOf&&(r=e.oneOf,n=null===t||void 0===t?void 0:t.oneOf);let o=ar(e);if(t){const{optionsSchemaSelector:e=o}=M(t);o=e}return r&&r.map(((e,t)=>{const{title:r}=M(null===n||void 0===n?void 0:n[t]),s=e;let a,i=r;if(o){const e=(0,K.A)(s,[b,o],{});a=(0,K.A)(e,d,(0,K.A)(e,u)),i=i||(null===e||void 0===e?void 0:e.title)||s.title||String(a)}else a=function(e){if("enum"in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(u in e)return e.const;throw new Error("schema cannot be inferred as a constant")}(s),i=i||s.title||String(a);return{schema:s,label:i,value:a}}))}const Yr=["string","number","integer","boolean","null"];var Xr;function Qr(e,t=Xr.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const t=e.items[r];if("boolean"!==typeof t)return t}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!==typeof e.items)return e.items;return t!==Xr.Ignore&&n(e.additionalItems)?e.additionalItems:{}}function en(e,t){const{default:r,type:n}=e;return Array.isArray(n)&&n.includes("null")&&(0,ct.A)(t)&&null===r?null:t}function tn(e,t,r,o,s,a=[],i={},c=!1,l=!1){const{emptyObjectFields:u="populateAllDefaults"}=i;if(!0===o||c)e[t]=r;else if("excludeObjectChildren"===o)(l&&void 0!==r||!n(r)||!(0,ct.A)(r))&&(e[t]=r);else if("skipDefaults"!==u){const o=void 0===s?a.includes(t):s;n(r)?"skipEmptyDefaults"===u?(0,ct.A)(r)||(e[t]=r):(0,ct.A)(r)&&!a.includes(t)||!o&&"populateRequiredDefaults"===u||(e[t]=r):void 0!==r&&("populateAllDefaults"===u||"skipEmptyDefaults"===u||o&&a.includes(t))&&(e[t]=r)}}function rn(e,t,r={}){const{parentDefaults:o,rawFormData:s,rootSchema:a={},includeUndefinedValues:i=!1,_recurseList:h=[],experimental_defaultFormStateBehavior:m,experimental_customMergeAllOf:p,required:y,shouldMergeDefaultsIntoFormData:g=!1,initialDefaultsGenerated:$}=r;let b=n(s)?s:{};const _=n(t)?t:{};let w=o,A=null,j=m,E=h;if(void 0===_[u]||"never"===(null===m||void 0===m?void 0:m.constAsDefaults)||Jr(_))if(!n(w)||!n(_.default)||_[l]||_[v]||_[S])if(!(d in _)||_[l]||_[v]||_[S]){if(S in _){const e=_[S];h.includes(e)||(E=h.concat(e),A=or(e,a));const t=void 0===s||n(s)&&(0,ct.A)(s);A&&!w&&t&&(w=_.default),g&&A&&!n(s)&&(b=s)}else if(f in _){const t={...nn(e,_,r,w),...b};A=Pr(e,_,a,!1,[],t,p)[0]}else if(qr(_))w=_.items.map(((t,r)=>rn(e,t,{rootSchema:a,includeUndefinedValues:i,_recurseList:h,experimental_defaultFormStateBehavior:m,experimental_customMergeAllOf:p,parentDefaults:Array.isArray(o)?o[r]:void 0,rawFormData:b,required:y,shouldMergeDefaultsIntoFormData:g})));else if(v in _){const{oneOf:t,...r}=_;if(0===t.length)return;const n=ar(_),{type:o="null"}=r;!Array.isArray(o)&&Yr.includes(o)&&"skipOneOf"===(null===j||void 0===j?void 0:j.constAsDefaults)&&(j={...j,constAsDefaults:"never"}),A=t[zr(e,a,null!==s&&void 0!==s?s:_.default,t,0,n,p)],A=ur(r,A)}else if(l in _){const{anyOf:t,...r}=_;if(0===t.length)return;const n=ar(_);A=t[zr(e,a,null!==s&&void 0!==s?s:_.default,t,0,n,p)],A=ur(r,A)}}else w=_.default;else w=Kr(w,_.default);else w=_[u];if(A)return rn(e,A,{rootSchema:a,includeUndefinedValues:i,_recurseList:E,experimental_defaultFormStateBehavior:j,experimental_customMergeAllOf:p,parentDefaults:w,rawFormData:null!==s&&void 0!==s?s:b,required:y,shouldMergeDefaultsIntoFormData:g,initialDefaultsGenerated:$});void 0===w&&(w=_.default);const P=nn(e,_,r,w);let x=null!==P&&void 0!==P?P:w;if(g){const{arrayMinItems:t={}}=m||{},{mergeExtraDefaults:r}=t,o=function(e,t,r,n,o,s){const a=!Gr(t)&&Wr(e,t,r,s);let i=n;if(a){const e=Zr(t);i=(null===e||void 0===e?void 0:e.some((e=>B(e.value,n))))?n:void 0}const c=t[u]&&"always"===(null===o||void 0===o?void 0:o.constAsDefaults);c&&(i=t.const);return i}(e,_,a,s,m,p);n(s)&&!(c in _)||(x=Br(x,o,r,!0))}return x}function nn(e,t,r={},o){switch(lr(t)){case"object":return function(e,t,{rawFormData:r,rootSchema:o={},includeUndefinedValues:s=!1,_recurseList:a=[],experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:l,required:d,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:h}={},m){{const y=n(r)?r:{},g=t,v="populateDefaults"===(null===i||void 0===i?void 0:i.allOf)&&c in g||"skipEmptyDefaults"!==(null===i||void 0===i?void 0:i.emptyObjectFields)&&p in g?yr(e,g,o,y,l):g,$=v[u],_=Object.keys(v.properties||{}).reduce(((t,r)=>{var c;const p=(0,K.A)(v,[b,r],{}),g=n($)&&void 0!==$[r],_=(n(p)&&u in p||g)&&"never"!==(null===i||void 0===i?void 0:i.constAsDefaults)&&!Jr(p);return tn(t,r,rn(e,p,{rootSchema:o,_recurseList:a,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:l,includeUndefinedValues:!0===s,parentDefaults:(0,K.A)(m,[r]),rawFormData:(0,K.A)(y,[r]),required:null===(c=v.required)||void 0===c?void 0:c.includes(r),shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:h}),s,d,v.required,i,_,"null"===(null===p||void 0===p?void 0:p.type)),t}),{});if(v.additionalProperties&&!h){const t=n(v.additionalProperties)?v.additionalProperties:{},r=new Set;n(m)&&Object.keys(m).filter((e=>!v.properties||!v.properties[e])).forEach((e=>r.add(e)));const c=[];Object.keys(y).filter((e=>!v.properties||!v.properties[e])).forEach((e=>{r.add(e),c.push(e)})),r.forEach((r=>{var n;const u=rn(e,t,{rootSchema:o,_recurseList:a,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:l,includeUndefinedValues:!0===s,parentDefaults:(0,K.A)(m,[r]),rawFormData:(0,K.A)(y,[r]),required:null===(n=v.required)||void 0===n?void 0:n.includes(r),shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:h});tn(_,r,u,s,d,c)}))}return en(t,_)}}(e,t,r,o);case"array":return function(e,t,{rawFormData:r,rootSchema:o={},_recurseList:s=[],experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,required:c,requiredAsRoot:l=!1,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:f}={},h){var m,p;const y=t,g=null!==(m=null===a||void 0===a?void 0:a.arrayMinItems)&&void 0!==m?m:{},{populate:v,mergeExtraDefaults:$}=g,b="never"===v,_="requiredOnly"===v,w="all"===v||!b&&!_,A=null!==(p=null===g||void 0===g?void 0:g.computeSkipPopulate)&&void 0!==p?p:()=>!1,S="skipEmptyDefaults"===(null===a||void 0===a?void 0:a.emptyObjectFields)?void 0:[];if(Array.isArray(h)&&(h=h.map(((t,n)=>{const l=Qr(y,Xr.Fallback,n),u=Array.isArray(r)?r[n]:void 0;return rn(e,l,{rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,parentDefaults:t,rawFormData:u,required:c,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:f})}))),Array.isArray(r)){const t=Qr(y);if(b)h=r;else{const n=r.map(((r,n)=>rn(e,t,{rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,rawFormData:r,parentDefaults:(0,K.A)(h,[n]),required:c,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:f})));h=Br(h,n,(_&&c||w)&&$)}}if(!1===(n(y)&&u in y&&"never"!==(null===a||void 0===a?void 0:a.constAsDefaults))){if(b)return null!==h&&void 0!==h?h:S;if(_&&!c)return h||void 0}let j;const E=Array.isArray(h)?h.length:0;if(!y.minItems||Hr(e,y,o,i)||A(e,y,o)||y.minItems<=E)j=h||!c&&!l?h:S;else{const t=h||[],r=Qr(y,Xr.Invert),n=r.default,l=Array.from({length:y.minItems-E},(()=>rn(e,r,{parentDefaults:n,rootSchema:o,_recurseList:s,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,required:c,shouldMergeDefaultsIntoFormData:d})));j=t.concat(l)}return en(t,j)}(e,t,r,o)}}function on(e,t,r,o,s=!1,a,i,c){if(!n(t))throw new Error("Invalid schema: "+t);const l=yr(e,t,o,r,i),u=rn(e,l,{rootSchema:o,includeUndefinedValues:s,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:i,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:c,requiredAsRoot:!0});if("object"!==l.type&&n(l.default))return{...u,...r};if(n(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:e}=a||{};return Br(u,r,!0,"useDefaultIfFormDataUndefined"===e,!0)}return u}function sn(e={}){return"widget"in M(e)&&"hidden"!==M(e).widget}function an(e,t,r={},n,o){if("files"===r[I])return!0;if(t.items){const r=yr(e,t.items,n,void 0,o);return"string"===r.type&&"data-url"===r.format}return!1}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(Xr||(Xr={}));var cn=r(62315);function ln(e,t,r,n,o,s=[],a){if(S in t||f in t||c in t||p in t){const i=yr(e,t,n,o,a);if(-1===s.findIndex((e=>B(e,i))))return ln(e,i,r,n,o,s.concat(i),a)}let u={[g]:r.replace(/^\./,"")};if(v in t||l in t){const i=v in t?t.oneOf:t.anyOf,c=ar(t),l=i[zr(e,n,o,i,0,c,a)];u={...u,...ln(e,l,r,n,o,s,a)}}if(i in t&&!1!==t[i]){(0,H.A)(u,N,!0);const c=(0,ae.A)(t[i])?t[i]:{},l=(0,K.A)(t,b,{});for(const t of Object.keys(null!==o&&void 0!==o?o:{}))t in l||(u[t]=ln(e,c,`${r}.${t}`,n,(0,K.A)(o,[t]),s,a))}if(y in t&&Array.isArray(o)){const{items:i,additionalItems:c}=t;Array.isArray(i)?o.forEach(((t,o)=>{i[o]?u[o]=ln(e,i[o],`${r}.${o}`,n,t,s,a):c?u[o]=ln(e,c,`${r}.${o}`,n,t,s,a):console.warn(`Unable to generate path schema for "${r}.${o}". No schema defined for it`)})):o.forEach(((t,o)=>{u[o]=ln(e,i,`${r}.${o}`,n,t,s,a)}))}else if(b in t)for(const i in t.properties){const c=(0,K.A)(t,[b,i],{});u[i]=ln(e,c,`${r}.${i}`,n,(0,K.A)(o,[i]),s,a)}return u}function un(e,t,r="",n,o,s){return ln(e,t,r,n,o,void 0,s)}function dn(e,t){if(0===t.length&&"object"!==typeof e)return e;const r=(0,cn.A)(e,t);return Array.isArray(e)?Object.keys(r).map((e=>r[e])):r}function fn(e,t){const r=(e,t)=>"object"!==typeof e||(0,ct.A)(e)||t&&!(0,ct.A)(e),n=(e,o=[],s=[[]])=>{const a=Object.keys(e);return a.forEach((i=>{const c=e[i];if("object"===typeof c){const e=s.map((e=>[...e,i]));c[N]&&""!==c[g]?o.push(c[g]):n(c,o,e)}else i===g&&""!==c&&s.forEach((e=>{const n=(0,K.A)(t,e),s=1===a.length;(r(n,s)||Array.isArray(n)&&n.every((e=>r(e,s))))&&o.push(e)}))})),o};return n(e)}const hn=Symbol("no Value");function mn(e,t,r,n,o={},s){let a;if((0,G.A)(r,b)){const i={};if((0,G.A)(n,b)){const e=(0,K.A)(n,b,{});Object.keys(e).forEach((e=>{(0,G.A)(o,e)&&(i[e]=void 0)}))}const c=Object.keys((0,K.A)(r,b,{})),l={};c.forEach((a=>{const c=(0,K.A)(o,a);let u=(0,K.A)(n,[b,a],{}),d=(0,K.A)(r,[b,a],{});(0,G.A)(u,S)&&(u=yr(e,u,t,c,s)),(0,G.A)(d,S)&&(d=yr(e,d,t,c,s));const f=(0,K.A)(u,"type"),h=(0,K.A)(d,"type");if(!f||f===h)if((0,G.A)(i,a)&&delete i[a],"object"===h||"array"===h&&Array.isArray(c)){const r=mn(e,t,d,u,c,s);void 0===r&&"array"!==h||(l[a]=r)}else{const e=(0,K.A)(d,"default",hn),t=(0,K.A)(u,"default",hn);e!==hn&&e!==c&&(t===c?i[a]=e:!0===(0,K.A)(d,"readOnly")&&(i[a]=void 0));const r=(0,K.A)(d,"const",hn),n=(0,K.A)(u,"const",hn);r!==hn&&r!==c&&(i[a]=n===c?r:void 0)}})),a={..."string"==typeof o||Array.isArray(o)?void 0:o,...i,...l}}else if("array"===(0,K.A)(n,"type")&&"array"===(0,K.A)(r,"type")&&Array.isArray(o)){let i=(0,K.A)(n,"items"),c=(0,K.A)(r,"items");if("object"!==typeof i||"object"!==typeof c||Array.isArray(i)||Array.isArray(c))"boolean"===typeof i&&"boolean"===typeof c&&i===c&&(a=o);else{(0,G.A)(i,S)&&(i=yr(e,i,t,o,s)),(0,G.A)(c,S)&&(c=yr(e,c,t,o,s));const n=(0,K.A)(i,"type"),l=(0,K.A)(c,"type");if(!n||n===l){const n=(0,K.A)(r,"maxItems",-1);a="object"===l?o.reduce(((r,o)=>{const a=mn(e,t,c,i,o,s);return void 0!==a&&(n<0||r.length<n)&&r.push(a),r}),[]):n>0&&o.length>n?o.slice(0,n):o}}}return a}class pn{constructor(e,t,r,n){t&&t[E]===F?this.rootSchema=tr(t,(0,K.A)(t,m,"#")):this.rootSchema=t,this.validator=e,this.experimental_defaultFormStateBehavior=r,this.experimental_customMergeAllOf=n}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,t,r={},n){return!(!e||!t)&&(this.validator!==e||!B(this.rootSchema,t)||!B(this.experimental_defaultFormStateBehavior,r)||this.experimental_customMergeAllOf!==n)}findFieldInSchema(e,t,r){return function(e,t,r,n,o={},s){const a=Array.isArray(n)?[...n]:n.split(".");let i=r;const c=a.pop();a.length&&a.forEach((r=>{i=Ir(e,t,i,[b,r],{},s),(0,G.A)(i,v)?i=Nr(e,t,i,c,v,(0,K.A)(o,r),s):(0,G.A)(i,l)&&(i=Nr(e,t,i,c,l,(0,K.A)(o,r),s))})),(0,G.A)(i,v)?i=Nr(e,t,i,c,v,o,s):(0,G.A)(i,l)&&(i=Nr(e,t,i,c,l,o,s));let u=Ir(e,t,i,[b,c],Dr,s);u===Dr&&(u=void 0);const d=Ir(e,t,i,w,[],s);let f;return u&&Array.isArray(d)&&(f=d.includes(c)),{field:u,isRequired:f}}(this.validator,this.rootSchema,e,t,r,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(e,t,r,n){return Nr(this.validator,this.rootSchema,e,t,r,n,this.experimental_customMergeAllOf)}getDefaultFormState(e,t,r=!1,n){return on(this.validator,e,t,this.rootSchema,r,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,n)}getDisplayLabel(e,t,r){return function(e,t,r={},n,o,s){const i=M(r,o),{label:c=!0}=i;let l=Boolean(c);if(l){const o=lr(t),i=(0,K.A)(t,a,!1);"array"===o&&(l=i||Hr(e,t,n,s)||an(e,t,r,n,s)||sn(r)),"object"===o&&(l=i),"boolean"===o&&r&&!r[I]&&(l=!1),r&&r["ui:field"]&&(l=!1)}return l}(this.validator,e,t,this.rootSchema,r,this.experimental_customMergeAllOf)}getClosestMatchingOption(e,t,r,n){return zr(this.validator,this.rootSchema,e,t,r,n,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,t,r){return pr(this.validator,e,t,this.rootSchema,r)}getFromSchema(e,t,r){return Ir(this.validator,this.rootSchema,e,t,r,this.experimental_customMergeAllOf)}isFilesArray(e,t){return an(this.validator,e,t,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return Hr(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return Wr(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(e,t){return function(e,t,r={},n){return dn(n,fn(un(e,yr(e,t,r,n),"",r,n),n).map((e=>Array.isArray(e)?e.join("."):e)))}(this.validator,e,this.rootSchema,t)}retrieveSchema(e,t,r){return yr(this.validator,e,this.rootSchema,t,this.experimental_customMergeAllOf,r)}sanitizeDataForNewSchema(e,t,r){return mn(this.validator,this.rootSchema,e,t,r,this.experimental_customMergeAllOf)}toPathSchema(e,t,r){return un(this.validator,e,t,this.rootSchema,r,this.experimental_customMergeAllOf)}}function yn(e,t,r={},n){return new pn(e,t,r,n)}function gn(e,t){return function(e,t){let r=e;if(Array.isArray(t)){const e=r.split(/(%\d)/);t.forEach(((t,r)=>{const n=e.findIndex((e=>e===`%${r+1}`));n>=0&&(e[n]=t)})),r=e.join("")}return r}(e,t)}function vn(e,t=[],r){if(Array.isArray(e))return e.map((e=>vn(e,t))).filter((e=>e!==r));const n=""===e||null===e?-1:Number(e),o=t[n];return o?o.value:r}function $n(e,t,r=[]){const n=vn(e,r);return Array.isArray(t)?t.filter((e=>!B(e,n))):B(n,t)?void 0:t}function bn(e,t){return Array.isArray(t)?t.some((t=>B(t,e))):B(t,e)}function _n(e,t=[],r=!1){const n=t.map(((t,r)=>bn(t.value,e)?String(r):void 0)).filter((e=>"undefined"!==typeof e));return r?n:n[0]}function wn(e,t,r=[]){const n=vn(e,r);if(!Lr(n)){const e=r.findIndex((e=>n===e.value)),o=r.map((({value:e})=>e));return t.slice(0,e).concat(n,t.slice(e)).sort(((e,t)=>Number(o.indexOf(e)>o.indexOf(t))))}return t}var An=r(20903),Sn=r(37346);const jn=function(e,t,r,n){return n="function"==typeof n?n:void 0,null==e?e:(0,Sn.A)(e,t,r,n)};class En{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let t=Array.isArray(e)&&e.length>0||"string"===typeof e?(0,K.A)(this.errorSchema,e):this.errorSchema;return!t&&e&&(t={},jn(this.errorSchema,e,t,Object)),t}resetAllErrors(e){return this.errorSchema=e?(0,An.A)(e):{},this}addErrors(e,t){const r=this.getOrCreateErrorBlock(t);let n=(0,K.A)(r,h);return Array.isArray(n)||(n=[],r[h]=n),Array.isArray(e)?(0,H.A)(r,h,[...new Set([...n,...e])]):(0,H.A)(r,h,[...new Set([...n,e])]),this}setErrors(e,t){const r=this.getOrCreateErrorBlock(t),n=Array.isArray(e)?[...new Set([...e])]:[e];return(0,H.A)(r,h,n),this}clearErrors(e){const t=this.getOrCreateErrorBlock(e);return(0,H.A)(t,h,[]),this}}var Pn=r(45572),xn=r(69084),kn=r(83973);const On=function(e,t){if(null==e)return{};var r=(0,Pn.A)((0,kn.A)(e),(function(e){return[e]}));return t=we(t),(0,xn.A)(e,r,(function(e,r){return t(e,r[0])}))};var Nn=r(52789);const Cn=function(e,t,r,n){var o=-1,s=Qe.A,a=!0,i=e.length,c=[],l=t.length;if(!i)return c;r&&(t=(0,Pn.A)(t,(0,Nn.A)(r))),n?(s=et.A,a=!1):t.length>=200&&(s=tt.A,a=!1,t=new Xe.A(t));e:for(;++o<i;){var u=e[o],d=null==r?u:r(u);if(u=n||0!==u?u:0,a&&d===d){for(var f=l;f--;)if(t[f]===d)continue e;c.push(u)}else s(t,d,n)||c.push(u)}return c};const In=(0,Be.A)((function(e,t){return(0,Fe.A)(e)?Cn(e,(0,Je.A)(t,1,Fe.A,!0)):[]}));function Dn(e,t){const r=(0,V.A)(e),n=(0,V.A)(t);if(e===t||!r&&!n)return[];if(r&&!n)return(0,ce.A)(e);if(!r&&n)return(0,ce.A)(t);return[...(0,ce.A)(On(e,((e,r)=>!B(e,(0,K.A)(t,r))))),...In((0,ce.A)(t),(0,ce.A)(e))]}function Rn(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||0===e.minimum)&&(t.min=e.minimum),(e.maximum||0===e.maximum)&&(t.max=e.maximum),t}function Tn(e,t,r={},n=!0){const o={type:t||"text",...Rn(e)};return r.inputType?o.type=r.inputType:t||("number"===e.type?(o.type="number",n&&void 0===o.step&&(o.step="any")):"integer"===e.type&&(o.type="number",void 0===o.step&&(o.step=1))),r.autocomplete&&(o.autoComplete=r.autocomplete),r.accept&&(o.accept=r.accept),o}const Fn={props:{disabled:!1},submitText:"Submit",norender:!1};function Mn(e={}){const t=M(e);if(t&&t[A]){const e=t[A];return{...Fn,...e}}return Fn}function Un(e,t,r={}){const{templates:n}=t;if("ButtonTemplates"===e)return n[e];if(Object.hasOwn(r,e)&&"string"===typeof r[e]&&Object.hasOwn(n,r[e])){return n[r[e]]}return r[e]||n[e]}var Vn=r(5664);function zn(){if("undefined"===typeof process||"test"!==(0,K.A)(process,"env.NODE_ENV"))return{};const e=new Map;return new Proxy({},{get:(t,r)=>(e.has(r)||e.set(r,(0,Vn.A)("test-id-")),e.get(r))})}var qn=r(74848),Ln=r(96540),Bn=r(80782);const Kn={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function Gn(e,t,r={}){const n=lr(e);if("function"===typeof t||t&&Bn.isForwardRef((0,Ln.createElement)(t))||Bn.isMemo(t))return function(e){let t=(0,K.A)(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=({options:t,...n})=>(0,qn.jsx)(e,{options:{...r,...t},...n}),(0,H.A)(e,"MergedWidget",t)}return t}(t);if("string"!==typeof t)throw new Error(`Unsupported widget definition: ${typeof t} in schema: ${JSON.stringify(e)}`);if(t in r){return Gn(e,r[t],r)}if("string"===typeof n){if(!(n in Kn))throw new Error(`No widget for type '${n}' in schema: ${JSON.stringify(e)}`);if(t in Kn[n]){return Gn(e,r[Kn[n][t]],r)}}throw new Error(`No widget '${t}' for type '${n}' in schema: ${JSON.stringify(e)}`)}function Wn(e){return function(e){let t=0;for(let r=0;r<e.length;r+=1)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t.toString(16)}(function(e){const t=new Set;return JSON.stringify(e,((e,r)=>(t.add(e),r))),JSON.stringify(e,Array.from(t).sort())}(e))}function Hn(e){return Wn(e)}function Jn(e,t,r={}){try{return Gn(e,t,r),!0}catch(n){const e=n;if(e.message&&(e.message.startsWith("No widget")||e.message.startsWith("Unsupported widget")))return!1;throw n}}function Zn(e,t){return`${(0,sr.A)(e)?e:e[m]}__${t}`}function Yn(e){return Zn(e,"description")}function Xn(e){return Zn(e,"error")}function Qn(e){return Zn(e,"examples")}function eo(e){return Zn(e,"help")}function to(e){return Zn(e,"title")}function ro(e,t=!1){const r=t?` ${Qn(e)}`:"";return`${Xn(e)} ${Yn(e)} ${eo(e)}${r}`}function no(e,t){return`${e}-${t}`}function oo(e,t){return Zn(e,t)}function so(e,t){return Zn(e,`optional${t}`)}function ao(e){return!Lr(e)&&(!(0,ae.A)(e)||Array.isArray(e)||!(0,ct.A)(e))}function io(e,t,r){return t?r:e}function co(e){return e?new Date(e).toJSON():void 0}function lo(e,t,r){const n=["layoutGridLookupMap"];return(0,G.A)(e,O)&&n.unshift(O),(0,K.A)(e,[...n,t],r)}function uo(e,t){if(!Array.isArray(t))return e;const r=e=>e.reduce(((e,t)=>(e[t]=!0,e)),{}),n=r(e),o=t.filter((e=>"*"===e||n[e])),s=r(o),a=e.filter((e=>!s[e])),i=o.indexOf("*");if(-1===i){if(a.length)throw new Error("uiSchema order list does not contain "+((c=a).length>1?`properties '${c.join("', '")}'`:`property '${c[0]}'`));return o}var c;if(i!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const l=[...o];return l.splice(i,1,...a),l}const fo=[y,i],ho=[v,l,c];function mo(e,t,r,o=new Set){const{rootSchema:s,uiSchemaDefinitions:a}=r;let i={...t},c=e;const l=e[S],u=l&&o.has(l);if(l){if(o.add(l),a&&l in a&&(i=Kr(a[l],i)),u)return i;try{c=or(l,s)}catch(f){c=e}}const d=c[b];if(d&&n(d))for(const[n,h]of Object.entries(d)){const e=mo(h,i[n]||{},r,new Set(o));Object.keys(e).length>0&&(i[n]=e)}for(const h of fo){const e=c[h];if(e&&n(e)&&!Array.isArray(e)){const t=i[h];if("function"!==typeof t){const n=mo(e,t||{},r,new Set(o));Object.keys(n).length>0&&(i[h]=n)}}}for(const n of ho){const e=c[n];if(Array.isArray(e)&&e.length>0){const t=i[n],s=Array.isArray(t)?[...t]:[];let a=!1;for(let n=0;n<e.length;n++){const t=mo(e[n],s[n]||{},r,new Set(o));Object.keys(t).length>0&&(s[n]=t,a=!0)}a&&(i[n]=s)}}return i}function po(e,t,r){var n,o;const s=null!==(n=e[j])&&void 0!==n?n:e[S],a=s?null===(o=r.uiSchemaDefinitions)||void 0===o?void 0:o[s]:void 0;return a?t&&0!==Object.keys(t).length?Kr(a,t):{...a}:t||{}}function yo(e){if(e.const)return!0;if(e.enum&&1===e.enum.length&&!0===e.enum[0])return!0;if(e.anyOf&&1===e.anyOf.length)return yo(e.anyOf[0]);if(e.oneOf&&1===e.oneOf.length)return yo(e.oneOf[0]);if(e.allOf){const t=e=>yo(e);return e.allOf.some(t)}return!1}function go(e,t){if(Object.is(e,t))return!0;if(null==e||null==t)return!1;if("object"!==typeof e||"object"!==typeof t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const n=r[o];if(!Object.prototype.hasOwnProperty.call(t,n)||!Object.is(e[n],t[n]))return!1}return!0}function vo(e,t,r,n="customDeep"){if("always"===n)return!0;if("shallow"===n){const{props:n,state:o}=e;return!go(n,t)||!go(o,r)}const{props:o,state:s}=e;return!B(o,t)||!B(s,r)}function $o(e){const t=it(e.map((e=>(0,ae.A)(e)?lr(e):void 0)).flat().filter((e=>void 0!==e)));return 1===t.length?t[0]:t}function bo(e,t,r,n){const{enableOptionalDataFieldForType:o=[]}=M(n,e.globalUiOptions);let s;return s=l in t&&Array.isArray(t[l])?$o(t[l]):v in t&&Array.isArray(t[v])?$o(t[v]):lr(t),!function(e,t){const{rootSchema:r,schemaUtils:n}=e;if((0,W.A)(t,r))return!0;if(S in r){const e=n.retrieveSchema(r);return(0,W.A)(t,(0,Xt.A)(e,j))}return!1}(e,t)&&!r&&!!s&&!Array.isArray(s)&&!!o.find((e=>e===s))}function _o(e,t=[]){if(!e)return[];let r=[];return h in e&&(r=r.concat(e[h].map((e=>{const r=`.${t.join(".")}`;return{property:r,message:e,stack:`${r} ${e}`}})))),Object.keys(e).reduce(((r,n)=>{if(n!==h){const o=e[n];(0,V.A)(o)&&(r=r.concat(_o(o,[...t,n])))}return r}),r)}var wo,Ao=r(36904);function So(e){const t=new En;return e.length&&e.forEach((e=>{const{property:r,message:n}=e,o="."===r?[]:(0,Ao.A)(r);o.length>0&&""===o[0]&&o.splice(0,1),n&&t.addErrors(n,o)})),t.ErrorSchema}function jo(e,t,r,n){const o=Array.isArray(r)?r:null===r||void 0===r?void 0:r.path,s=""===e?[]:[e],a=o?o.concat(...s):s,i=[t.idPrefix,...a].join(t.idSeparator);let c;return t.nameGenerator&&a.length>0&&(c=t.nameGenerator(a,t.idPrefix,n)),{path:a,[m]:i,...void 0!==c&&{name:c}}}function Eo(e){return Object.keys(e).reduce(((t,r)=>{if("addError"===r)return t;{const n=e[r];return(0,V.A)(n)?{...t,[r]:Eo(n)}:{...t,[r]:n}}}),{})}function Po(e,t){let r=String(e);for(;r.length<t;)r="0"+r;return r}function xo(e,t){if(e<=0&&t<=0)e=(new Date).getFullYear()+e,t=(new Date).getFullYear()+t;else if(e<0||t<0)throw new Error(`Both start (${e}) and stop (${t}) must both be <= 0 or > 0, got one of each`);if(e>t)return xo(t,e).reverse();const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:Po(n,2)});return r}function ko(e,t=!0){if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};const r=new Date(e);if(Number.isNaN(r.getTime()))throw new Error("Unable to parse date "+e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:t?r.getUTCHours():0,minute:t?r.getUTCMinutes():0,second:t?r.getUTCSeconds():0}}function Oo(e,t=!0){const{year:r,month:n,day:o,hour:s=0,minute:a=0,second:i=0}=e,c=Date.UTC(r,n-1,o,s,a,i),l=new Date(c).toJSON();return t?l:l.slice(0,10)}function No(e){const{className:t="form-control",type:r,range:n,value:o,select:s,rootId:a,name:i,disabled:c,readonly:l,autofocus:u,registry:d,onBlur:f,onFocus:h}=e,m=`${a}_${r}`,{SelectWidget:p}=d.widgets,y=(0,Ln.useCallback)((e=>s(r,e)),[s,r]);return(0,qn.jsx)(p,{schema:{type:"integer"},id:m,name:i,className:t,options:{enumOptions:xo(n[0],n[1])},placeholder:r,value:o,disabled:c,readonly:l,autofocus:u,onChange:y,onBlur:f,onFocus:h,registry:d,label:"","aria-describedby":ro(a)})}function Co(e){const{time:t=!1,disabled:r=!1,readonly:n=!1,options:o,onChange:s,value:a}=e,[i,c]=(0,Ln.useState)(ko(a,t));(0,Ln.useEffect)((()=>{c(ko(a,t))}),[t,a]);const l=(0,Ln.useCallback)(((e,r)=>{const n={...i,[e]:"undefined"===typeof r?-1:r};!function(e){return Object.values(e).every((e=>-1!==e))}(n)?c(n):s(Oo(n,t))}),[i,s,t]),u=(0,Ln.useCallback)((e=>{e.preventDefault(),r||n||s(void 0)}),[r,n,s]),d=(0,Ln.useCallback)((e=>{if(e.preventDefault(),r||n)return;const o=ko((new Date).toJSON(),t);s(Oo(o,t))}),[r,n,t,s]);return{elements:(0,Ln.useMemo)((()=>function(e,t,r=[1900,(new Date).getFullYear()+2],n="YMD"){const{day:o,month:s,year:a,hour:i,minute:c,second:l}=e,u={type:"day",range:[1,31],value:o},d={type:"month",range:[1,12],value:s},f={type:"year",range:r,value:a},h=[];switch(n){case"MDY":h.push(d,u,f);break;case"DMY":h.push(u,d,f);break;default:h.push(f,d,u)}return t&&h.push({type:"hour",range:[0,23],value:i},{type:"minute",range:[0,59],value:c},{type:"second",range:[0,59],value:l}),h}(i,t,o.yearsRange,o.format)),[i,t,o.yearsRange,o.format]),handleChange:l,handleClear:u,handleSetNow:d}}function Io(e){const t=(0,Ln.useRef)(e);return(0,W.A)(e,t.current)||(t.current=e),t.current}function Do(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function Ro(e){const{name:t,size:r,type:n}=e;return new Promise(((o,s)=>{const a=new window.FileReader;a.onerror=s,a.onload=e=>{var s;"string"===typeof(null===(s=e.target)||void 0===s?void 0:s.result)?o({dataURL:Do(e.target.result,t),name:t,size:r,type:n}):o({dataURL:null,name:t,size:r,type:n})},a.readAsDataURL(e)}))}function To(e){return e.reduce(((e,t)=>{if(!t)return e;try{const{blob:r,name:n}=function(e){var t;if(-1===e.indexOf("data:"))throw new Error("File is invalid: URI must be a dataURI");const r=e.slice(5).split(";base64,");if(2!==r.length)throw new Error("File is invalid: dataURI must be base64");const[n,o]=r,[s,...a]=n.split(";"),i=s||"",c=decodeURI((null===(t=a.map((e=>e.split("="))).find((([e])=>"name"===e)))||void 0===t?void 0:t[1])||"unknown");try{const e=atob(o),t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return{blob:new window.Blob([new Uint8Array(t)],{type:i}),name:c}}catch(l){throw new Error("File is invalid: "+l.message)}}(t);return[...e,{dataURL:t,name:n,size:r.size,type:r.type}]}catch(r){return e}}),[])}function Fo(e,t,r=!1){const n=(0,Ln.useMemo)((()=>r&&e?Array.isArray(e)?e:[e]:[]),[e,r]);return{filesInfo:(0,Ln.useMemo)((()=>Array.isArray(e)?To(e):To([e||""])),[e]),handleChange:(0,Ln.useCallback)((e=>{(function(e){return Promise.all(Array.from(e).map(Ro))})(e).then((e=>{const o=e.map((e=>e.dataURL||null));t(r?n.concat(...o):o[0])}))}),[n,r,t]),handleRemove:(0,Ln.useCallback)((e=>{if(r){const r=n.filter(((t,r)=>r!==e));t(r)}else t(void 0)}),[n,r,t])}}function Mo(e){if(!e)return"";const t=new Date(e);return`${Po(t.getFullYear(),4)}-${Po(t.getMonth()+1,2)}-${Po(t.getDate(),2)}T${Po(t.getHours(),2)}:${Po(t.getMinutes(),2)}:${Po(t.getSeconds(),2)}.${Po(t.getMilliseconds(),3)}`}function Uo(e,t,r=!1){if(!t)return e;const{errors:n,errorSchema:o}=e;let s=_o(t),a=t;return(0,ct.A)(o)||(a=Kr(o,t,!r||"preventDuplicates"),s=[...n].concat(s)),{errorSchema:a,errors:s}}function Vo(e){return Array.isArray(e)?function(e){for(let t=0;t<e.length;t++)e[t]=Vo(e[t]);return e}([...e]):(0,ae.A)(e)?function(e){for(const t in e){const r=e,n=r[t];t===S&&"string"===typeof n&&n.startsWith("#")?r[t]=C+n:r[t]=Vo(n)}return e}({...e}):e}!function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.EmptyArray="No items yet. Use the button below to add some.",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.OptionalObjectAdd="Add data for optional field",e.OptionalObjectRemove="Remove data for optional field",e.OptionalObjectEmptyMsg="No data for optional field",e.Type="Type",e.Value="Value",e.ClearButton="clear input",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)"}(wo||(wo={}))},44030(e,t,r){"use strict";r.d(t,{Ay:()=>h});var n=r(55780),o=r(79756),s=r(68182),a=r(23149);const i={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},c=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,l=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;var u=r(77500);function d(e,t,r,o,s,a,i){const{validationError:c}=t;let l=function(e=[],t){return e.map((e=>{var r;const{instancePath:o,keyword:s,params:a,schemaPath:i,parentSchema:c,...l}=e;let{message:d=""}=l,f=o.replace(/\//g,"."),h=`${f} ${d}`.trim(),m="";const p=[...(null===(r=a.deps)||void 0===r?void 0:r.split(", "))||[],a.missingProperty,a.property].filter((e=>e));if(p.length>0)p.forEach((e=>{const r=f?`${f}.${e}`:e;let o=(0,n.$R)((0,u.A)(t,`${r.replace(/^\./,"")}`)).title;if(void 0===o){const r=i.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([e]);o=(0,n.$R)((0,u.A)(t,r)).title}if(o)d=d.replace(`'${e}'`,`'${o}'`),m=o;else{const t=(0,u.A)(c,[n.s1,e,"title"]);t&&(d=d.replace(`'${e}'`,`'${t}'`),m=t)}})),h=d;else{const e=(0,n.$R)((0,u.A)(t,`${f.replace(/^\./,"")}`)).title;if(e)h=`'${e}' ${d}`.trim(),m=e;else{const e=null===c||void 0===c?void 0:c.title;e&&(h=`'${e}' ${d}`.trim(),m=e)}}return"missingProperty"in a&&(f=f?`${f}.${a.missingProperty}`:a.missingProperty),{name:s,property:f,message:d,params:a,stack:h,schemaPath:i,title:m}})).reduce(((e,t)=>{const{message:r,schemaPath:o}=t,s=null===o||void 0===o?void 0:o.indexOf(`/${n.Xo}/`),a=null===o||void 0===o?void 0:o.indexOf(`/${n.Ru}/`);let i;return s&&s>=0?i=null===o||void 0===o?void 0:o.substring(0,s):a&&a>=0&&(i=null===o||void 0===o?void 0:o.substring(0,a)),(i?e.find((e=>{var t;return e.message===r&&(null===(t=e.schemaPath)||void 0===t?void 0:t.startsWith(i))})):void 0)||e.push(t),e}),[])}(t.errors,i);c&&(l=[...l,{stack:c.message}]),"function"===typeof a&&(l=a(l,i));let d=(0,n.MD)(l);if(c&&(d={...d,$schema:{__errors:[c.message]}}),"function"!==typeof s)return{errors:l,errorSchema:d};const f=(0,n.NV)(e,o,r,o,!0),h=s(f,(0,n.JF)(f),i,d),m=(0,n.fV)(h);return(0,n.k6)({errors:l,errorSchema:d},m)}class f{constructor(e,t){const{additionalMetaSchemas:r,customFormats:u,ajvOptionsOverrides:d,ajvFormatOptions:f,AjvClass:h,extenderFn:m}=e;this.ajv=function(e,t,r={},u,d=o,f){let h=new d({...i,...r});return u?s(h,u):!1!==u&&s(h),h.addFormat("data-url",l),h.addFormat("color",c),h.addKeyword(n.Rr),h.addKeyword(n.FF),Array.isArray(e)&&h.addMetaSchema(e),(0,a.A)(t)&&Object.keys(t).forEach((e=>{h.addFormat(e,t[e])})),f&&(h=f(h)),h}(r,u,d,f,h,m),this.localizer=t}reset(){this.ajv.removeSchema()}rawValidation(e,t){var r,o;let s,a,i;try{e[n.K0]&&(a=this.ajv.getSchema(e[n.K0])),void 0===a&&(a=this.ajv.compile(e)),a(t)}catch(c){s=c}return a&&("function"===typeof this.localizer&&((null!==(r=a.errors)&&void 0!==r?r:[]).forEach((e=>{var t;["missingProperty","property"].forEach((t=>{var r;(null===(r=e.params)||void 0===r?void 0:r[t])&&(e.params[t]=`'${e.params[t]}'`)})),(null===(t=e.params)||void 0===t?void 0:t.deps)&&(e.params.deps=e.params.deps.split(", ").map((e=>`'${e}'`)).join(", "))})),this.localizer(a.errors),(null!==(o=a.errors)&&void 0!==o?o:[]).forEach((e=>{var t;["missingProperty","property"].forEach((t=>{var r;(null===(r=e.params)||void 0===r?void 0:r[t])&&(e.params[t]=e.params[t].slice(1,-1))})),(null===(t=e.params)||void 0===t?void 0:t.deps)&&(e.params.deps=e.params.deps.split(", ").map((e=>e.slice(1,-1))).join(", "))}))),i=a.errors||void 0,a.errors=null),{errors:i,validationError:s}}validateFormData(e,t,r,n,o){return d(this,this.rawValidation(t,e),e,t,r,n,o)}handleSchemaUpdate(e){var t,r;const o=null!==(t=e[n.K0])&&void 0!==t?t:n.at;void 0===this.ajv.getSchema(o)?this.ajv.addSchema(e,o):(0,n.c2)(e,null===(r=this.ajv.getSchema(o))||void 0===r?void 0:r.schema)||(this.ajv.removeSchema(o),this.ajv.addSchema(e,o))}isValid(e,t,r){var o;try{this.handleSchemaUpdate(r);const s=(0,n.vh)(e),a=null!==(o=s[n.K0])&&void 0!==o?o:(0,n.$K)(s);let i;i=this.ajv.getSchema(a),void 0===i&&(i=this.ajv.addSchema(s,a).getSchema(a)||this.ajv.compile(s));return i(t)}catch(s){return console.warn("Error encountered compiling schema:",s),!1}}}const h=function(e={},t){return new f(e,t)}()},89469(e,t,r){"use strict";r.d(t,{A:()=>f});const n=function(){this.__data__=[],this.size=0};var o=r(66984);const s=function(e,t){for(var r=e.length;r--;)if((0,o.A)(e[r][0],t))return r;return-1};var a=Array.prototype.splice;const i=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():a.call(t,r,1),--this.size,!0)};const c=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]};const l=function(e){return s(this.__data__,e)>-1};const u=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function d(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}d.prototype.clear=n,d.prototype.delete=i,d.prototype.get=c,d.prototype.has=l,d.prototype.set=u;const f=d},68335(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(28562),o=r(41917);const s=(0,n.A)(o.A,"Map")},62050(e,t,r){"use strict";r.d(t,{A:()=>A});const n=(0,r(28562).A)(Object,"create");const o=function(){this.__data__=n?n(null):{},this.size=0};const s=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var a=Object.prototype.hasOwnProperty;const i=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return a.call(t,e)?t[e]:void 0};var c=Object.prototype.hasOwnProperty;const l=function(e){var t=this.__data__;return n?void 0!==t[e]:c.call(t,e)};const u=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this};function d(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}d.prototype.clear=o,d.prototype.delete=s,d.prototype.get=i,d.prototype.has=l,d.prototype.set=u;const f=d;var h=r(89469),m=r(68335);const p=function(){this.size=0,this.__data__={hash:new f,map:new(m.A||h.A),string:new f}};const y=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const g=function(e,t){var r=e.__data__;return y(t)?r["string"==typeof t?"string":"hash"]:r.map};const v=function(e){var t=g(this,e).delete(e);return this.size-=t?1:0,t};const $=function(e){return g(this,e).get(e)};const b=function(e){return g(this,e).has(e)};const _=function(e,t){var r=g(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function w(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}w.prototype.clear=p,w.prototype.delete=v,w.prototype.get=$,w.prototype.has=b,w.prototype.set=_;const A=w},39857(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(28562),o=r(41917);const s=(0,n.A)(o.A,"Set")},8300(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(62050);const o=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const s=function(e){return this.__data__.has(e)};function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n.A;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=s;const i=a},22080(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(89469);const o=function(){this.__data__=new n.A,this.size=0};const s=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};const a=function(e){return this.__data__.get(e)};const i=function(e){return this.__data__.has(e)};var c=r(68335),l=r(62050);const u=function(e,t){var r=this.__data__;if(r instanceof n.A){var o=r.__data__;if(!c.A||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new l.A(o)}return r.set(e,t),this.size=r.size,this};function d(e){var t=this.__data__=new n.A(e);this.size=t.size}d.prototype.clear=o,d.prototype.delete=s,d.prototype.get=a,d.prototype.has=i,d.prototype.set=u;const f=d},241(e,t,r){"use strict";r.d(t,{A:()=>n});const n=r(41917).A.Symbol},43988(e,t,r){"use strict";r.d(t,{A:()=>n});const n=r(41917).A.Uint8Array},72641(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},83149(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(63338);const o=function(e,t){return!!(null==e?0:e.length)&&(0,n.A)(e,t,0)>-1}},87809(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}},50423(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(59520),o=r(25175),s=r(92049),a=r(41200),i=r(25353),c=r(54749),l=Object.prototype.hasOwnProperty;const u=function(e,t){var r=(0,s.A)(e),u=!r&&(0,o.A)(e),d=!r&&!u&&(0,a.A)(e),f=!r&&!u&&!d&&(0,c.A)(e),h=r||u||d||f,m=h?(0,n.A)(e.length,String):[],p=m.length;for(var y in e)!t&&!l.call(e,y)||h&&("length"==y||d&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||(0,i.A)(y,p))||m.push(y);return m}},45572(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},76912(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},52851(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(52528),o=r(66984),s=Object.prototype.hasOwnProperty;const a=function(e,t,r){var a=e[t];s.call(e,t)&&(0,o.A)(a,r)&&(void 0!==r||t in e)||(0,n.A)(e,t,r)}},52528(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(84171);const o=function(e,t,r){"__proto__"==t&&n.A?(0,n.A)(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},94507(e,t,r){"use strict";r.d(t,{A:()=>J});var n=r(22080),o=r(72641),s=r(52851),a=r(22031),i=r(27422);const c=function(e,t){return e&&(0,a.A)(t,(0,i.A)(t),e)};var l=r(79999);const u=function(e,t){return e&&(0,a.A)(t,(0,l.A)(t),e)};var d=r(80154),f=r(39759),h=r(16489);const m=function(e,t){return(0,a.A)(e,(0,h.A)(e),t)};var p=r(83511);const y=function(e,t){return(0,a.A)(e,(0,p.A)(e),t)};var g=r(19042),v=r(83973),$=r(9137),b=Object.prototype.hasOwnProperty;const _=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&b.call(e,"index")&&(r.index=e.index,r.input=e.input),r};var w=r(90565);const A=function(e,t){var r=t?(0,w.A)(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)};var S=/\w*$/;const j=function(e){var t=new e.constructor(e.source,S.exec(e));return t.lastIndex=e.lastIndex,t};var E=r(241),P=E.A?E.A.prototype:void 0,x=P?P.valueOf:void 0;const k=function(e){return x?Object(x.call(e)):{}};var O=r(1801);const N=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return(0,w.A)(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return A(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,O.A)(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return j(e);case"[object Symbol]":return k(e)}};var C=r(32729),I=r(92049),D=r(41200),R=r(53098);const T=function(e){return(0,R.A)(e)&&"[object Map]"==(0,$.A)(e)};var F=r(52789),M=r(64841),U=M.A&&M.A.isMap;const V=U?(0,F.A)(U):T;var z=r(23149);const q=function(e){return(0,R.A)(e)&&"[object Set]"==(0,$.A)(e)};var L=M.A&&M.A.isSet;const B=L?(0,F.A)(L):q;var K="[object Arguments]",G="[object Function]",W="[object Object]",H={};H[K]=H["[object Array]"]=H["[object ArrayBuffer]"]=H["[object DataView]"]=H["[object Boolean]"]=H["[object Date]"]=H["[object Float32Array]"]=H["[object Float64Array]"]=H["[object Int8Array]"]=H["[object Int16Array]"]=H["[object Int32Array]"]=H["[object Map]"]=H["[object Number]"]=H[W]=H["[object RegExp]"]=H["[object Set]"]=H["[object String]"]=H["[object Symbol]"]=H["[object Uint8Array]"]=H["[object Uint8ClampedArray]"]=H["[object Uint16Array]"]=H["[object Uint32Array]"]=!0,H["[object Error]"]=H[G]=H["[object WeakMap]"]=!1;const J=function e(t,r,a,h,p,b){var w,A=1&r,S=2&r,j=4&r;if(a&&(w=p?a(t,h,p,b):a(t)),void 0!==w)return w;if(!(0,z.A)(t))return t;var E=(0,I.A)(t);if(E){if(w=_(t),!A)return(0,f.A)(t,w)}else{var P=(0,$.A)(t),x=P==G||"[object GeneratorFunction]"==P;if((0,D.A)(t))return(0,d.A)(t,A);if(P==W||P==K||x&&!p){if(w=S||x?{}:(0,C.A)(t),!A)return S?y(t,u(w,t)):m(t,c(w,t))}else{if(!H[P])return p?t:{};w=N(t,P,A)}}b||(b=new n.A);var k=b.get(t);if(k)return k;b.set(t,w),B(t)?t.forEach((function(n){w.add(e(n,r,a,n,t,b))})):V(t)&&t.forEach((function(n,o){w.set(o,e(n,r,a,o,t,b))}));var O=j?S?v.A:g.A:S?l.A:i.A,R=E?void 0:O(t);return(0,o.A)(R||t,(function(n,o){R&&(n=t[o=n]),(0,s.A)(w,o,e(n,r,a,o,t,b))})),w}},59712(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(23149),o=Object.create;const s=function(){function e(){}return function(t){if(!(0,n.A)(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}()},94288(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(79841),o=r(38446);const s=function(e,t){return function(r,n){if(null==r)return r;if(!(0,o.A)(r))return e(r,n);for(var s=r.length,a=t?s:-1,i=Object(r);(t?a--:++a<s)&&!1!==n(i[a],a,i););return r}}(n.A)},87671(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76912),o=r(241),s=r(25175),a=r(92049),i=o.A?o.A.isConcatSpreadable:void 0;const c=function(e){return(0,a.A)(e)||(0,s.A)(e)||!!(i&&e&&e[i])};const l=function e(t,r,o,s,a){var i=-1,l=t.length;for(o||(o=c),a||(a=[]);++i<l;){var u=t[i];r>0&&o(u)?r>1?e(u,r-1,o,s,a):(0,n.A)(a,u):s||(a[a.length]=u)}return a}},97132(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e){return function(t,r,n){for(var o=-1,s=Object(t),a=n(t),i=a.length;i--;){var c=a[e?i:++o];if(!1===r(s[c],c,s))break}return t}}()},79841(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(97132),o=r(27422);const s=function(e,t){return e&&(0,n.A)(e,t,o.A)}},66318(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(87465),o=r(30901);const s=function(e,t){for(var r=0,s=(t=(0,n.A)(t,e)).length;null!=e&&r<s;)e=e[(0,o.A)(t[r++])];return r&&r==s?e:void 0}},33831(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(76912),o=r(92049);const s=function(e,t,r){var s=t(e);return(0,o.A)(e)?s:(0,n.A)(s,r(e))}},2383(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(241),o=Object.prototype,s=o.hasOwnProperty,a=o.toString,i=n.A?n.A.toStringTag:void 0;const c=function(e){var t=s.call(e,i),r=e[i];try{e[i]=void 0;var n=!0}catch(c){}var o=a.call(e);return n&&(t?e[i]=r:delete e[i]),o};var l=Object.prototype.toString;const u=function(e){return l.call(e)};var d=n.A?n.A.toStringTag:void 0;const f=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":d&&d in Object(e)?c(e):u(e)}},63338(e,t,r){"use strict";r.d(t,{A:()=>a});const n=function(e,t,r,n){for(var o=e.length,s=r+(n?1:-1);n?s--:++s<o;)if(t(e[s],s,e))return s;return-1};const o=function(e){return e!==e};const s=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1};const a=function(e,t,r){return t===t?s(e,t,r):n(e,o,r)}},22955(e,t,r){"use strict";r.d(t,{A:()=>k});var n=r(22080),o=r(8300);const s=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var a=r(64099);const i=function(e,t,r,n,i,c){var l=1&r,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var f=c.get(e),h=c.get(t);if(f&&h)return f==t&&h==e;var m=-1,p=!0,y=2&r?new o.A:void 0;for(c.set(e,t),c.set(t,e);++m<u;){var g=e[m],v=t[m];if(n)var $=l?n(v,g,m,t,e,c):n(g,v,m,e,t,c);if(void 0!==$){if($)continue;p=!1;break}if(y){if(!s(t,(function(e,t){if(!(0,a.A)(y,t)&&(g===e||i(g,e,r,n,c)))return y.push(t)}))){p=!1;break}}else if(g!==v&&!i(g,v,r,n,c)){p=!1;break}}return c.delete(e),c.delete(t),p};var c=r(241),l=r(43988),u=r(66984);const d=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r};var f=r(29959),h=c.A?c.A.prototype:void 0,m=h?h.valueOf:void 0;const p=function(e,t,r,n,o,s,a){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new l.A(e),new l.A(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,u.A)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var c=d;case"[object Set]":var h=1&n;if(c||(c=f.A),e.size!=t.size&&!h)return!1;var p=a.get(e);if(p)return p==t;n|=2,a.set(e,t);var y=i(c(e),c(t),n,o,s,a);return a.delete(e),y;case"[object Symbol]":if(m)return m.call(e)==m.call(t)}return!1};var y=r(19042),g=Object.prototype.hasOwnProperty;const v=function(e,t,r,n,o,s){var a=1&r,i=(0,y.A)(e),c=i.length;if(c!=(0,y.A)(t).length&&!a)return!1;for(var l=c;l--;){var u=i[l];if(!(a?u in t:g.call(t,u)))return!1}var d=s.get(e),f=s.get(t);if(d&&f)return d==t&&f==e;var h=!0;s.set(e,t),s.set(t,e);for(var m=a;++l<c;){var p=e[u=i[l]],v=t[u];if(n)var $=a?n(v,p,u,t,e,s):n(p,v,u,e,t,s);if(!(void 0===$?p===v||o(p,v,r,n,s):$)){h=!1;break}m||(m="constructor"==u)}if(h&&!m){var b=e.constructor,_=t.constructor;b==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(h=!1)}return s.delete(e),s.delete(t),h};var $=r(9137),b=r(92049),_=r(41200),w=r(54749),A="[object Arguments]",S="[object Array]",j="[object Object]",E=Object.prototype.hasOwnProperty;const P=function(e,t,r,o,s,a){var c=(0,b.A)(e),l=(0,b.A)(t),u=c?S:(0,$.A)(e),d=l?S:(0,$.A)(t),f=(u=u==A?j:u)==j,h=(d=d==A?j:d)==j,m=u==d;if(m&&(0,_.A)(e)){if(!(0,_.A)(t))return!1;c=!0,f=!1}if(m&&!f)return a||(a=new n.A),c||(0,w.A)(e)?i(e,t,r,o,s,a):p(e,t,u,r,o,s,a);if(!(1&r)){var y=f&&E.call(e,"__wrapped__"),g=h&&E.call(t,"__wrapped__");if(y||g){var P=y?e.value():e,x=g?t.value():t;return a||(a=new n.A),s(P,x,r,o,a)}}return!!m&&(a||(a=new n.A),v(e,t,r,o,s,a))};var x=r(53098);const k=function e(t,r,n,o,s){return t===r||(null==t||null==r||!(0,x.A)(t)&&!(0,x.A)(r)?t!==t&&r!==r:P(t,r,n,o,e,s))}},14453(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(97271);const o=(0,r(40367).A)(Object.keys,Object);var s=Object.prototype.hasOwnProperty;const a=function(e){if(!(0,n.A)(e))return o(e);var t=[];for(var r in Object(e))s.call(e,r)&&"constructor"!=r&&t.push(r);return t}},69084(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(66318),o=r(37346),s=r(87465);const a=function(e,t,r){for(var a=-1,i=t.length,c={};++a<i;){var l=t[a],u=(0,n.A)(e,l);r(u,l)&&(0,o.A)(c,(0,s.A)(l,e),u)}return c}},24326(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(29008),o=r(65255),s=r(46778);const a=function(e,t){return(0,s.A)((0,o.A)(e,t,n.A),e+"")}},37346(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(52851),o=r(87465),s=r(25353),a=r(23149),i=r(30901);const c=function(e,t,r,c){if(!(0,a.A)(e))return e;for(var l=-1,u=(t=(0,o.A)(t,e)).length,d=u-1,f=e;null!=f&&++l<u;){var h=(0,i.A)(t[l]),m=r;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(l!=d){var p=f[h];void 0===(m=c?c(p,h,f):void 0)&&(m=(0,a.A)(p)?p:(0,s.A)(t[l+1])?[]:{})}(0,n.A)(f,h,m),f=f[h]}return e}},59520(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},52789(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e){return function(t){return e(t)}}},34916(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(87465),o=r(26666),s=r(66318);const a=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(o);++n<o;)s[n]=e[n+t];return s};const i=function(e,t){return t.length<2?e:(0,s.A)(e,a(t,0,-1))};var c=r(30901),l=Object.prototype.hasOwnProperty;const u=function(e,t){var r=-1,s=(t=(0,n.A)(t,e)).length;if(!s)return!0;for(var a=null==e||"object"!==typeof e&&"function"!==typeof e;++r<s;){var u=t[r];if("string"===typeof u){if("__proto__"===u&&!l.call(e,"__proto__"))return!1;if("constructor"===u&&r+1<s&&"string"===typeof t[r+1]&&"prototype"===t[r+1]){if(a&&0===r)continue;return!1}}}var d=i(e,t);return null==d||delete d[(0,c.A)((0,o.A)(t))]}},64099(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e,t){return e.has(t)}},99922(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(29008);const o=function(e){return"function"==typeof e?e:n.A}},87465(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(92049),o=r(86586),s=r(37216),a=r(3456);const i=function(e,t){return(0,n.A)(e)?e:(0,o.A)(e,t)?[e]:(0,s.A)((0,a.A)(e))}},90565(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(43988);const o=function(e){var t=new e.constructor(e.byteLength);return new n.A(t).set(new n.A(e)),t}},80154(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(41917),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===o?n.A.Buffer:void 0,i=a?a.allocUnsafe:void 0;const c=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}},1801(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(90565);const o=function(e,t){var r=t?(0,n.A)(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},39759(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},22031(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(52851),o=r(52528);const s=function(e,t,r,s){var a=!r;r||(r={});for(var i=-1,c=t.length;++i<c;){var l=t[i],u=s?s(r[l],e[l],l,r,e):void 0;void 0===u&&(u=e[l]),a?(0,o.A)(r,l,u):(0,n.A)(r,l,u)}return r}},84171(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(28562);const o=function(){try{var e=(0,n.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}()},50416(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(34098),o=r(65255),s=r(46778);const a=function(e){return(0,s.A)((0,o.A)(e,void 0,n.A),e+"")}},72136(e,t,r){"use strict";r.d(t,{A:()=>n});const n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},19042(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(33831),o=r(16489),s=r(27422);const a=function(e){return(0,n.A)(e,s.A,o.A)}},83973(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(33831),o=r(83511),s=r(79999);const a=function(e){return(0,n.A)(e,s.A,o.A)}},28562(e,t,r){"use strict";r.d(t,{A:()=>g});var n=r(89610);const o=r(41917).A["__core-js_shared__"];var s=function(){var e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();const a=function(e){return!!s&&s in e};var i=r(23149),c=r(81121),l=/^\[object .+?Constructor\]$/,u=Function.prototype,d=Object.prototype,f=u.toString,h=d.hasOwnProperty,m=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const p=function(e){return!(!(0,i.A)(e)||a(e))&&((0,n.A)(e)?m:l).test((0,c.A)(e))};const y=function(e,t){return null==e?void 0:e[t]};const g=function(e,t){var r=y(e,t);return p(r)?r:void 0}},15647(e,t,r){"use strict";r.d(t,{A:()=>n});const n=(0,r(40367).A)(Object.getPrototypeOf,Object)},16489(e,t,r){"use strict";r.d(t,{A:()=>i});const n=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[o++]=a)}return s};var o=r(13153),s=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;const i=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return s.call(e,t)})))}:o.A},83511(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(76912),o=r(15647),s=r(16489),a=r(13153);const i=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,n.A)(t,(0,s.A)(e)),e=(0,o.A)(e);return t}:a.A},9137(e,t,r){"use strict";r.d(t,{A:()=>A});var n=r(28562),o=r(41917);const s=(0,n.A)(o.A,"DataView");var a=r(68335);const i=(0,n.A)(o.A,"Promise");var c=r(39857);const l=(0,n.A)(o.A,"WeakMap");var u=r(2383),d=r(81121),f="[object Map]",h="[object Promise]",m="[object Set]",p="[object WeakMap]",y="[object DataView]",g=(0,d.A)(s),v=(0,d.A)(a.A),$=(0,d.A)(i),b=(0,d.A)(c.A),_=(0,d.A)(l),w=u.A;(s&&w(new s(new ArrayBuffer(1)))!=y||a.A&&w(new a.A)!=f||i&&w(i.resolve())!=h||c.A&&w(new c.A)!=m||l&&w(new l)!=p)&&(w=function(e){var t=(0,u.A)(e),r="[object Object]"==t?e.constructor:void 0,n=r?(0,d.A)(r):"";if(n)switch(n){case g:return y;case v:return f;case $:return h;case b:return m;case _:return p}return t});const A=w},85054(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(87465),o=r(25175),s=r(92049),a=r(25353),i=r(5254),c=r(30901);const l=function(e,t,r){for(var l=-1,u=(t=(0,n.A)(t,e)).length,d=!1;++l<u;){var f=(0,c.A)(t[l]);if(!(d=null!=e&&r(e,f)))break;e=e[f]}return d||++l!=u?d:!!(u=null==e?0:e.length)&&(0,i.A)(u)&&(0,a.A)(f,u)&&((0,s.A)(e)||(0,o.A)(e))}},32729(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(59712),o=r(15647),s=r(97271);const a=function(e){return"function"!=typeof e.constructor||(0,s.A)(e)?{}:(0,n.A)((0,o.A)(e))}},25353(e,t,r){"use strict";r.d(t,{A:()=>o});var n=/^(?:0|[1-9]\d*)$/;const o=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},86586(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(92049),o=r(61882),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;const i=function(e,t){if((0,n.A)(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!(0,o.A)(e))||(a.test(e)||!s.test(e)||null!=t&&e in Object(t))}},97271(e,t,r){"use strict";r.d(t,{A:()=>o});var n=Object.prototype;const o=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},64841(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(72136),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===o&&n.A.process;const i=function(){try{var e=s&&s.require&&s.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}()},40367(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e,t){return function(r){return e(t(r))}}},65255(e,t,r){"use strict";r.d(t,{A:()=>s});const n=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)};var o=Math.max;const s=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var s=arguments,a=-1,i=o(s.length-t,0),c=Array(i);++a<i;)c[a]=s[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=s[a];return l[t]=r(c),n(e,this,l)}}},41917(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(72136),o="object"==typeof self&&self&&self.Object===Object&&self;const s=n.A||o||Function("return this")()},29959(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},46778(e,t,r){"use strict";r.d(t,{A:()=>l});const n=function(e){return function(){return e}};var o=r(84171),s=r(29008);const a=o.A?function(e,t){return(0,o.A)(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:s.A;var i=Date.now;const c=function(e){var t=0,r=0;return function(){var n=i(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}};const l=c(a)},37216(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(62050);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var a=e.apply(this,n);return r.cache=s.set(o,a)||s,a};return r.cache=new(o.Cache||n.A),r}o.Cache=n.A;const s=o;var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;const c=function(e){var t=s(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}))},30901(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(61882);const o=function(e){if("string"==typeof e||(0,n.A)(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},81121(e,t,r){"use strict";r.d(t,{A:()=>o});var n=Function.prototype.toString;const o=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},20903(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(94507);const o=function(e){return(0,n.A)(e,5)}},66984(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e,t){return e===t||e!==e&&t!==t}},34098(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(87671);const o=function(e){return(null==e?0:e.length)?(0,n.A)(e,1):[]}},77500(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(66318);const o=function(e,t,r){var o=null==e?void 0:(0,n.A)(e,t);return void 0===o?r:o}},39622(e,t,r){"use strict";r.d(t,{A:()=>a});var n=Object.prototype.hasOwnProperty;const o=function(e,t){return null!=e&&n.call(e,t)};var s=r(85054);const a=function(e,t){return null!=e&&(0,s.A)(e,t,o)}},46964(e,t,r){"use strict";r.d(t,{A:()=>s});const n=function(e,t){return null!=e&&t in Object(e)};var o=r(85054);const s=function(e,t){return null!=e&&(0,o.A)(e,t,n)}},29008(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e){return e}},25175(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(2383),o=r(53098);const s=function(e){return(0,o.A)(e)&&"[object Arguments]"==(0,n.A)(e)};var a=Object.prototype,i=a.hasOwnProperty,c=a.propertyIsEnumerable,l=s(function(){return arguments}())?s:function(e){return(0,o.A)(e)&&i.call(e,"callee")&&!c.call(e,"callee")};const u=l},92049(e,t,r){"use strict";r.d(t,{A:()=>n});const n=Array.isArray},38446(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(89610),o=r(5254);const s=function(e){return null!=e&&(0,o.A)(e.length)&&!(0,n.A)(e)}},53533(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(38446),o=r(53098);const s=function(e){return(0,o.A)(e)&&(0,n.A)(e)}},41200(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(41917);const o=function(){return!1};var s="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=s&&"object"==typeof module&&module&&!module.nodeType&&module,i=a&&a.exports===s?n.A.Buffer:void 0;const c=(i?i.isBuffer:void 0)||o},66401(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(14453),o=r(9137),s=r(25175),a=r(92049),i=r(38446),c=r(41200),l=r(97271),u=r(54749),d=Object.prototype.hasOwnProperty;const f=function(e){if(null==e)return!0;if((0,i.A)(e)&&((0,a.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,c.A)(e)||(0,u.A)(e)||(0,s.A)(e)))return!e.length;var t=(0,o.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,l.A)(e))return!(0,n.A)(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},46996(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(22955);const o=function(e,t){return(0,n.A)(e,t)}},89610(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(2383),o=r(23149);const s=function(e){if(!(0,o.A)(e))return!1;var t=(0,n.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5254(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},23149(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},53098(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e){return null!=e&&"object"==typeof e}},34963(e,t,r){"use strict";r.d(t,{A:()=>d});var n=r(2383),o=r(15647),s=r(53098),a=Function.prototype,i=Object.prototype,c=a.toString,l=i.hasOwnProperty,u=c.call(Object);const d=function(e){if(!(0,s.A)(e)||"[object Object]"!=(0,n.A)(e))return!1;var t=(0,o.A)(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==u}},9703(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(2383),o=r(92049),s=r(53098);const a=function(e){return"string"==typeof e||!(0,o.A)(e)&&(0,s.A)(e)&&"[object String]"==(0,n.A)(e)}},61882(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(2383),o=r(53098);const s=function(e){return"symbol"==typeof e||(0,o.A)(e)&&"[object Symbol]"==(0,n.A)(e)}},54749(e,t,r){"use strict";r.d(t,{A:()=>d});var n=r(2383),o=r(5254),s=r(53098),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;const i=function(e){return(0,s.A)(e)&&(0,o.A)(e.length)&&!!a[(0,n.A)(e)]};var c=r(52789),l=r(64841),u=l.A&&l.A.isTypedArray;const d=u?(0,c.A)(u):i},27422(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(50423),o=r(14453),s=r(38446);const a=function(e){return(0,s.A)(e)?(0,n.A)(e):(0,o.A)(e)}},79999(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(50423),o=r(23149),s=r(97271);const a=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t};var i=Object.prototype.hasOwnProperty;const c=function(e){if(!(0,o.A)(e))return a(e);var t=(0,s.A)(e),r=[];for(var n in e)("constructor"!=n||!t&&i.call(e,n))&&r.push(n);return r};var l=r(38446);const u=function(e){return(0,l.A)(e)?(0,n.A)(e,!0):c(e)}},26666(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},42302(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(){}},54930(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(45572),o=r(94507),s=r(34916),a=r(87465),i=r(22031),c=r(34963);const l=function(e){return(0,c.A)(e)?void 0:e};var u=r(50416),d=r(83973);const f=(0,u.A)((function(e,t){var r={};if(null==e)return r;var c=!1;t=(0,n.A)(t,(function(t){return t=(0,a.A)(t,e),c||(c=t.length>1),t})),(0,i.A)(e,(0,d.A)(e),r),c&&(r=(0,o.A)(r,7,l));for(var u=t.length;u--;)(0,s.A)(r,t[u]);return r}))},62315(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(69084),o=r(46964);const s=function(e,t){return(0,n.A)(e,t,(function(t,r){return(0,o.A)(e,r)}))};const a=(0,r(50416).A)((function(e,t){return null==e?{}:s(e,t)}))},35704(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(37346);const o=function(e,t,r){return null==e?e:(0,n.A)(e,t,r)}},13153(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(){return[]}},62250(e,t,r){"use strict";r.d(t,{A:()=>y});var n=/\s/;const o=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t};var s=/^\s+/;const a=function(e){return e?e.slice(0,o(e)+1).replace(s,""):e};var i=r(23149),c=r(61882),l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt;const h=function(e){if("number"==typeof e)return e;if((0,c.A)(e))return NaN;if((0,i.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,i.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var r=u.test(e);return r||d.test(e)?f(e.slice(2),r?2:8):l.test(e)?NaN:+e};var m=1/0;const p=function(e){return e?(e=h(e))===m||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0};const y=function(e){var t=p(e),r=t%1;return t===t?r?t-r:t:0}},36904(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(45572),o=r(39759),s=r(92049),a=r(61882),i=r(37216),c=r(30901),l=r(3456);const u=function(e){return(0,s.A)(e)?(0,n.A)(e,c.A):(0,a.A)(e)?[e]:(0,o.A)((0,i.A)((0,l.A)(e)))}},3456(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(241),o=r(45572),s=r(92049),a=r(61882),i=n.A?n.A.prototype:void 0,c=i?i.toString:void 0;const l=function e(t){if("string"==typeof t)return t;if((0,s.A)(t))return(0,o.A)(t,e)+"";if((0,a.A)(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r};const u=function(e){return null==e?"":l(e)}},5664(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(3456),o=0;const s=function(e){var t=++o;return(0,n.A)(e)+t}},53983(e){"use strict";e.exports=JSON.parse('{"$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":false}')},37805(e){"use strict";e.exports=JSON.parse('{"$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":true,"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":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"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":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"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":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"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":true}')},37301(e){"use strict";e.exports=JSON.parse('{"$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":false}')},92455(e){"use strict";e.exports=JSON.parse('{"$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":true,"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":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"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":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"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":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"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":true}')}}]);