File: //opt/netdata/usr/share/netdata/web/v3/3860.19703f40a716c6c3281e.chunk.js
/*! For license information please see 3860.19703f40a716c6c3281e.chunk.js.LICENSE.txt */
try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7d491a8b-34fc-431e-addc-6f5e9b6a6299",e._sentryDebugIdIdentifier="sentry-dbid-7d491a8b-34fc-431e-addc-6f5e9b6a6299")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"429f5763d5247afc6c9cc40929cfac6204d0b42a"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[3860],{343:(e,t,r)=>{"use strict";const{isUUID:n}=r(34834),o=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,a=["http","https","ws","wss","urn","urn:uuid"];function s(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},d={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=s(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(s(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}},u={http:l,https:{scheme:"https",domainHost:l.domainHost,parse:i,serialize:c},ws:d,wss:{scheme:"wss",domainHost:d.domainHost,parse:d.parse,serialize:d.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 a=e,s=e.nss;return a.path=`${n||t.nid}:${s}`,t.skipEscape=!0,a},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&&(u[e]||u[e.toLowerCase()])||void 0}Object.setPrototypeOf(u,null),e.exports={wsIsSecure:s,SCHEMES:u,isValidSchemeName:function(e){return-1!==a.indexOf(e)},getSchemeHandler:f}},900:(e,t)=>{"use strict";var r=[128065],n="f06e",o="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z";t.mw={prefix:"fas",iconName:"eye",icon:[576,512,r,n,o]},t.pS=t.mw},1096:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const n=r(56699),o=r(19205),a=r(62235),s={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,a.validateArray)(e))}};function i(e,t,r=e.schema){const{gen:a,parentSchema:s,data:i,keyword:c,it:l}=e;!function(e){const{opts:n,errSchemaPath:a}=l,s=r.length,i=s===e.minItems&&(s===e.maxItems||!1===e[t]);if(n.strictTuples&&!i){const e=`"${c}" is ${s}-tuple, but minItems or maxItems/${t} are not specified or different at path "${a}"`;(0,o.checkStrictMode)(l,e,n.strictTuples)}}(s),l.opts.unevaluated&&r.length&&!0!==l.items&&(l.items=o.mergeEvaluated.items(a,r.length,l.items));const d=a.name("valid"),u=a.const("len",n._`${i}.length`);r.forEach(((t,r)=>{(0,o.alwaysValidSchema)(l,t)||(a.if(n._`${u} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},d))),e.ok(d))}))}t.validateTuple=i,t.default=s},1937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),a={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:a,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(s.opts.discriminator&&a.discriminator)return;const i=r,c=t.let("valid",!1),l=t.let("passing",null),d=t.name("_valid");e.setParams({passing:l}),t.block((function(){i.forEach(((r,a)=>{let i;(0,o.alwaysValidSchema)(s,r)?t.var(d,!0):i=e.subschema({keyword:"oneOf",schemaProp:a,compositeRule:!0},d),a>0&&t.if(n._`${d} && ${c}`).assign(c,!1).assign(l,n._`[${l}, ${a}]`).else(),t.if(d,(()=>{t.assign(c,!0),t.assign(l,a),i&&e.mergeEvaluated(i,n.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=a},3767:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),a=r(72482),s={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:s,schemaCode:i,schema:c}=e;s||c&&"object"==typeof c?e.fail$data(n._`!${(0,o.useFunc)(t,a.default)}(${r}, ${i})`):e.fail(n._`${c} !== ${r}`)}};t.default=s},4267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(21085),o=r(93789),a=r(7083),s={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:s,data:i,$data:c,it:l}=e,{opts:d}=l;if(!c&&0===r.length)return;const u=r.length>=d.loopRequired;if(l.allErrors?function(){if(u||c)e.block$data(o.nil,f);else for(const t of r)(0,n.checkReportMissingProp)(e,t)}():function(){const a=t.let("missing");if(u||c){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,s,(()=>{t.assign(a,(0,n.propertyInData)(t,i,r,d.ownProperties)),t.if((0,o.not)(a),(()=>{e.error(),t.break()}))}),o.nil)}(a,r))),e.ok(r)}else t.if((0,n.checkMissingProp)(e,r,a)),(0,n.reportMissingProp)(e,a),t.else()}(),d.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,a.checkStrictMode)(l,t,l.opts.strictRequired)}}function f(){t.forOf("prop",s,(r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,i,r,d.ownProperties),(()=>e.error()))}))}}};t.default=s},4824:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(90344),o=r(92348),a=r(52610),s=r(32884),i=r(73929),c=[n.default,o.default,(0,a.default)(),s.default,i.metadataVocabulary,i.contentVocabulary];t.default=c},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:{}}}},5664:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(3456),o=0;const a=function(e){var t=++o;return(0,n.A)(e)+t}},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 a(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 a in t)o[a]||h(e,`unknown keyword: "${a}"`)}function s(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(a,s,i,c)=>{const l=void 0===i?s:i instanceof n.Name?(s instanceof n.Name?e(a,s,i):t(a,s,i),i):s instanceof n.Name?(t(a,i,s),s):r(s,i);return c!==n.Name||l instanceof n.Name?l:o(a,l)}}function d(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",n._`{}`);return void 0!==t&&u(e,r,t),r}function u(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||(a(e,t),!s(t,e.self.RULES.all))},t.checkUnknownRules=a,t.schemaHasRules=s,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,a){if(!a){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} || {}`),u(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:d}),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=d,t.setEvaluated=u;const f={};var m;function h(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"}(m||(t.Type=m={})),t.getErrorPath=function(e,t,r){if(e instanceof n.Name){const o=t===m.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=h},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,a,s,i,c,l,d,u){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var f in n(a,s,i,c,l,d,u),a){var m=a[f];if(Array.isArray(m)){if(f in t.arrayKeywords)for(var h=0;h<m.length;h++)r(e,n,o,m[h],s+"/"+f+"/"+h,i,s,f,a,h)}else if(f in t.propsKeywords){if(m&&"object"==typeof m)for(var p in m)r(e,n,o,m[p],s+"/"+f+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),i,s,f,a,p)}else(f in t.keywords||e.allKeys&&!(f in t.skipKeywords))&&r(e,n,o,m,s+"/"+f,i,s,f,a)}o(a,s,i,c,l,d,u)}}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}},7567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),a={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:a}=e;void 0===r.then&&void 0===r.else&&(0,o.checkStrictMode)(a,'"if" without "then" and "else" is ignored');const i=s(a,"then"),c=s(a,"else");if(!i&&!c)return;const l=t.let("valid",!0),d=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},d);e.mergeEvaluated(t)}(),e.reset(),i&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(d,u("then",r),u("else",r))}else i?t.if(d,u("then")):t.if((0,n.not)(d),u("else"));function u(r,o){return()=>{const a=e.subschema({keyword:r},d);t.assign(l,d),e.mergeValidEvaluated(a,l),o?t.assign(o,n._`${r}`):e.setParams({ifClause:r})}}e.pass(l,(()=>e.error(!0)))}};function s(e,t){const r=e.schema[t];return void 0!==r&&!(0,o.alwaysValidSchema)(e,r)}t.default=a},7705:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),a={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:a,it:s}=e;if((0,o.alwaysValidSchema)(s,r))return;const i=t.name("valid");t.forIn("key",a,(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),s.allErrors||t.break()}))})),e.ok(i)}};t.default=a},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 a=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,(()=>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),a={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:a,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(s.opts.discriminator&&a.discriminator)return;const i=r,c=t.let("valid",!1),l=t.let("passing",null),d=t.name("_valid");e.setParams({passing:l}),t.block((function(){i.forEach(((r,a)=>{let i;(0,o.alwaysValidSchema)(s,r)?t.var(d,!0):i=e.subschema({keyword:"oneOf",schemaProp:a,compositeRule:!0},d),a>0&&t.if(n._`${d} && ${c}`).assign(c,!1).assign(l,n._`[${l}, ${a}]`).else(),t.if(d,(()=>{t.assign(c,!0),t.assign(l,a),i&&e.mergeEvaluated(i,n.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=a},9703:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(2383),o=r(92049),a=r(53098);const s=function(e){return"string"==typeof e||!(0,o.A)(e)&&(0,a.A)(e)&&"[object String]"==(0,n.A)(e)}},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),a=r(7106),s=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++,!s.has(r)&&("object"==typeof e[r]&&(0,n.eachItem)(e[r],(e=>t+=l(e))),t===1/0))return 1/0}return t}function d(e,t="",r){!1!==r&&(t=m(t));const n=e.parse(t);return u(e,n)}function u(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=d,t._getFullPath=u;const f=/#\/?$/;function m(e){return e?e.replace(f,""):""}t.normalizeId=m,t.resolveUrl=function(e,t,r){return r=m(r),e.resolve(t,r)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,s=m(e[r]||t),i={"":s},c=d(n,s,!1),l={},u=new Set;return a(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const a=c+t;let s=i[o];function d(t){const r=this.opts.uriResolver.resolve;if(t=m(s?r(s,t):t),u.has(t))throw p(t);u.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?f(e,n.schema,t):t!==m(a)&&("#"===t[0]?(f(e,l[t],t),l[t]=e):this.refs[t]=a),t}function y(e){if("string"==typeof e){if(!h.test(e))throw new Error(`invalid anchor "${e}"`);d.call(this,`#${e}`)}}"string"==typeof e[r]&&(s=d.call(this,e[r])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),i[t]=s})),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`)}}},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,a="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`Object.keys(${r}).length ${a} ${o}`)}};t.default=o},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'},14018:(t,r)=>{"use strict";function n(e,t){return{validate:e,compare:t}}Object.defineProperty(r,"__esModule",{value:!0}),r.formatNames=r.fastFormats=r.fullFormats=void 0,r.fullFormats={date:n(s,i),time:n(l,d),"date-time":n((function(e){const t=e.split(u);return 2===t.length&&s(t[0])&&l(t[1],!0)}),f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return m.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(t){if($.test(t))return!1;try{return new RegExp(t),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return p.lastIndex=0,p.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=g&&e>=y}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:v},double:{type:"number",validate:v},password:!0,binary:!0},r.fastFormats={...r.fullFormats,date:n(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:n(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d),"date-time":n(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},r.formatNames=Object.keys(r.fullFormats);const o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(e){const t=o.exec(e);if(!t)return!1;const r=+t[1],n=+t[2],s=+t[3];return n>=1&&n<=12&&s>=1&&s<=(2===n&&function(e){return e%4===0&&(e%100!==0||e%400===0)}(r)?29:a[n])}function i(e,t){if(e&&t)return e>t?1:e<t?-1:0}const c=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(e,t){const r=c.exec(e);if(!r)return!1;const n=+r[1],o=+r[2],a=+r[3],s=r[5];return(n<=23&&o<=59&&a<=59||23===n&&59===o&&60===a)&&(!t||""!==s)}function d(e,t){if(!e||!t)return;const r=c.exec(e),n=c.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 f(e,t){if(!e||!t)return;const[r,n]=e.split(u),[o,a]=t.split(u),s=i(r,o);return void 0!==s?s||d(n,a):void 0}const m=/\/|:/,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 p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;const y=-(2**31),g=2**31-1;function v(){return!0}const $=/[^\\]\\Z/},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),a=r(66735),s={message:"boolean schema is false"};function i(e,t){const{gen:r,data:o}=e,a={gen:r,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,n.reportError)(a,s,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(a.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)}},16245:(t,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resolveSchema=r.getCompilingSchema=r.resolveRef=r.compileSchema=r.SchemaEnv=void 0;const o=n(56699),a=n(36024),s=n(65373),i=n(9737),c=n(19205),l=n(79888);class d{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,i.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(t){const r=m.call(this,t);if(r)return r;const n=(0,i.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:c,lines:d}=this.opts.code,{ownProperties:u}=this.opts,f=new o.CodeGen(this.scope,{es5:c,lines:d,ownProperties:u});let h;t.$async&&(h=f.scopeValue("Error",{ref:a.default,code:o._`require("ajv/dist/runtime/validation_error").default`}));const p=f.scopeName("validate");t.validateName=p;const y={gen:f,allErrors:this.opts.allErrors,data:s.default.data,parentData:s.default.parentData,parentDataProperty:s.default.parentDataProperty,dataNames:[s.default.data],dataPathArr:[o.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:f.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,o.stringify)(t.schema)}:{ref:t.schema}),validateName:p,ValidationError:h,schema:t.schema,schemaEnv:t,rootId:n,baseId:t.baseId||n,schemaPath:o.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:o._`""`,opts:this.opts,self:this};let g;try{this._compilations.add(t),(0,l.validateFunctionCode)(y),f.optimize(this.opts.code.optimize);const e=f.toString();g=`${f.scopeRefs(s.default.scope)}return ${e}`,this.opts.code.process&&(g=this.opts.code.process(g,t));const r=new Function(`${s.default.self}`,`${s.default.scope}`,g)(this,this.scope.get());if(this.scope.value(p,{ref:r}),r.errors=null,r.schema=t.schema,r.schemaEnv=t,t.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:p,validateCode:e,scopeValues:f._values}),this.opts.unevaluated){const{props:e,items:t}=y;r.evaluated={props:e instanceof o.Name?void 0:e,items:t instanceof o.Name?void 0:t,dynamicProps:e instanceof o.Name,dynamicItems:t instanceof o.Name},r.source&&(r.source.evaluated=(0,o.stringify)(r.evaluated))}return t.validate=r,t}catch(e){throw delete t.validate,delete t.validateName,g&&this.logger.error("Error compiling schema, function code:",g),e}finally{this._compilations.delete(t)}}function f(e){return(0,i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function m(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]||p.call(this,e,t)}function p(e,t){const r=this.opts.uriResolver.parse(t),n=(0,i._getFullPath)(this.opts.uriResolver,r);let o=(0,i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return g.call(this,r,e);const a=(0,i.normalizeId)(n),s=this.refs[a]||this.schemas[a];if("string"==typeof s){const t=p.call(this,e,s);if("object"!==typeof(null===t||void 0===t?void 0:t.schema))return;return g.call(this,r,t)}if("object"===typeof(null===s||void 0===s?void 0:s.schema)){if(s.validate||u.call(this,s),a===(0,i.normalizeId)(t)){const{schema:t}=s,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,i.resolveUrl)(this.opts.uriResolver,o,n)),new d({schema:t,schemaId:r,root:e,baseId:o})}return g.call(this,r,s)}}r.SchemaEnv=d,r.compileSchema=u,r.resolveRef=function(e,t,r){var n;r=(0,i.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=h.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:s}=this.opts;o&&(a=new d({schema:o,schemaId:s,root:e,baseId:t}))}return void 0!==a?e.refs[r]=f.call(this,a):void 0},r.getCompilingSchema=m,r.resolveSchema=p;const y=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(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,c.unescapeFragment)(l)];if(void 0===e)return;const n="object"===typeof(r=e)&&r[this.opts.schemaId];!y.has(l)&&n&&(t=(0,i.resolveUrl)(this.opts.uriResolver,t,n))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,c.schemaHasRulesButRef)(r,this.RULES)){const e=(0,i.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=p.call(this,n,e)}const{schemaId:s}=this.opts;return a=a||new d({schema:r,schemaId:s,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}},16699:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(62235),o=r(56699),a=r(19205),s=r(19205),i={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:i,parentSchema:c,it:l}=e,{opts:d}=l,u=(0,n.allSchemaProperties)(r),f=u.filter((e=>(0,a.alwaysValidSchema)(l,r[e])));if(0===u.length||f.length===u.length&&(!l.opts.unevaluated||!0===l.props))return;const m=d.strictSchema&&!d.allowMatchingProperties&&c.properties,h=t.name("valid");!0===l.props||l.props instanceof o.Name||(l.props=(0,s.evaluatedPropsToName)(t,l.props));const{props:p}=l;function y(e){for(const t in m)new RegExp(e).test(t)&&(0,a.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(r){t.forIn("key",i,(a=>{t.if(o._`${(0,n.usePattern)(e,r)}.test(${a})`,(()=>{const n=f.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:a,dataPropType:s.Type.Str},h),l.opts.unevaluated&&!0!==p?t.assign(o._`${p}[${a}]`,!0):n||l.allErrors||t.if((0,o.not)(h),(()=>t.break()))}))}))}!function(){for(const e of u)m&&y(e),l.allErrors?g(e):(t.var(h,!0),g(e),t.if(h))}()}};t.default=i},17666:(t,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=void 0;var o=n(69810);Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return o.KeywordCxt}});var a=n(93789);Object.defineProperty(r,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return a.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return a.CodeGen}});const s=n(99598),i=n(70303),c=n(5095),l=n(65219),d=n(93789),u=n(63043),f=n(28840),m=n(7083),h=n(37301),p=n(76976),y=(e,t)=>new RegExp(e,t);y.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),$={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."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(e){var t,r,n,o,a,s,i,c,l,d,u,f,m,h,g,v,$,b,w,_,S,A,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:y,C=null!==(o=e.uriResolver)&&void 0!==o?o:p.default;return{strictSchema:null===(s=null!==(a=e.strictSchema)&&void 0!==a?a:x)||void 0===s||s,strictNumbers:null===(c=null!==(i=e.strictNumbers)&&void 0!==i?i:x)||void 0===c||c,strictTypes:null!==(d=null!==(l=e.strictTypes)&&void 0!==l?l:x)&&void 0!==d?d:"log",strictTuples:null!==(f=null!==(u=e.strictTuples)&&void 0!==u?u:x)&&void 0!==f?f:"log",strictRequired:null!==(h=null!==(m=e.strictRequired)&&void 0!==m?m:x)&&void 0!==h&&h,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===(w=e.inlineRefs)||void 0===w||w,schemaId:null!==(_=e.schemaId)&&void 0!==_?_:"$id",addUsedSchema:null===(S=e.addUsedSchema)||void 0===S||S,validateSchema:null===(A=e.validateSchema)||void 0===A||A,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,...w(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new d.ValueScope({scope:{},prefixes:v,es5:t,lines:r}),this.logger=function(e){if(!1===e)return k;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,c.getRules)(),S.call(this,$,e,"NOT SUPPORTED"),S.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=x.call(this),e.formats&&E.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&P.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),j.call(this),e.validateFormats=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(t,r){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||s.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await o.call(this,{$ref:e},!0)}async function s(t){try{return this._compileSchemaEnv(t)}catch(e){if(!(e instanceof i.default))throw e;return c.call(this,e),await l.call(this,e.missingSchema),s.call(this,t)}}function c({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const t=await d.call(this,e);this.refs[e]||await a.call(this,t.$schema),this.refs[e]||this.addSchema(t,e,r)}async function d(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,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 l.SchemaEnv({schema:{},schemaId:r});if(t=l.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(N.call(this,r,t),!t)return(0,m.eachItem)(r,(e=>C.call(this,e))),this;D.call(this,t);const n={...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)};return(0,m.eachItem)(r,0===n.type.length?e=>C.call(this,e,n):e=>n.type.forEach((t=>C.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,a=o[e];n&&a&&(o[e]=T(a))}}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 a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let i=this._cache.get(e);if(void 0!==i)return i;r=(0,u.normalizeId)(a||r);const c=u.getSchemaRefs.call(this,e,r);return i=new l.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:c}),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):l.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{l.compileSchema.call(this,e)}finally{this.opts=t}}}function S(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function A(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function j(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function E(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function P(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function x(){const e={...this.opts};for(const t of g)delete e[t];return e}_.ValidationError=s.default,_.MissingRefError=i.default,r.default=_;const k={log(){},warn(){},error(){}};const O=/^[a-z_$][a-z0-9_$:-]*$/i;function N(e,t){const{RULES:r}=this;if((0,m.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.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 C(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:a}=this;let s=o?a.post:a.rules.find((({type:e})=>e===r));if(s||(s={type:r,rules:[]},a.rules.push(s)),a.keywords[e]=!0,!t)return;const i={keyword:e,definition:{...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)}};t.before?I.call(this,s,i,t.before):s.rules.push(i),a.all[e]=i,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function I(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 D(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,R]}}},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 a(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 a in t)o[a]||h(e,`unknown keyword: "${a}"`)}function s(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(a,s,i,c)=>{const l=void 0===i?s:i instanceof n.Name?(s instanceof n.Name?e(a,s,i):t(a,s,i),i):s instanceof n.Name?(t(a,i,s),s):r(s,i);return c!==n.Name||l instanceof n.Name?l:o(a,l)}}function d(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",n._`{}`);return void 0!==t&&u(e,r,t),r}function u(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||(a(e,t),!s(t,e.self.RULES.all))},t.checkUnknownRules=a,t.schemaHasRules=s,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,a){if(!a){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} || {}`),u(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:d}),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=d,t.setEvaluated=u;const f={};var m;function h(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"}(m||(t.Type=m={})),t.getErrorPath=function(e,t,r){if(e instanceof n.Name){const o=t===m.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=h},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)}},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),a=r(66735),s=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 a=n._`${t}${(0,n.getProperty)(r)} === undefined`;return o?(0,n.or)(a,(0,n.not)(c(e,t,r))):a}function d(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:o,it:a}=e;r.if(l(r,o,t,a.opts.ownProperties),(()=>{e.setParams({missingProperty:n._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},o,a){return(0,n.or)(...o.map((o=>(0,n.and)(l(e,t,o,r.ownProperties),n._`${a} = ${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 a=n._`${t}${(0,n.getProperty)(r)} !== undefined`;return o?n._`${a} && ${c(e,t,r)}`:a},t.noPropertyInData=l,t.allSchemaProperties=d,t.schemaProperties=function(e,t){return d(t).filter((r=>!(0,o.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:o,schemaPath:s,errorPath:i},it:c},l,d,u){const f=u?n._`${e}, ${t}, ${o}${s}`:t,m=[[a.default.instancePath,(0,n.strConcat)(a.default.instancePath,i)],[a.default.parentData,c.parentData],[a.default.parentDataProperty,c.parentDataProperty],[a.default.rootData,a.default.rootData]];c.opts.dynamicRef&&m.push([a.default.dynamicAnchors,a.default.dynamicAnchors]);const h=n._`${f}, ${r.object(...m)}`;return d!==n.nil?n._`${l}.call(${d}, ${h})`:n._`${l}(${h})`};const u=n._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const o=t.unicodeRegExp?"u":"",{regExp:a}=t.code,i=a(r,o);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:n._`${"new RegExp"===a.code?u:(0,s.useFunc)(e,a)}(${r}, ${o})`})},t.validateArray=function(e){const{gen:t,data:r,keyword:a,it:s}=e,i=t.name("valid");if(s.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(s){const c=t.const("len",n._`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:a,dataProp:r,dataPropType:o.Type.Num},i),t.if((0,n.not)(i),s)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:a,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,o.alwaysValidSchema)(s,e)))&&!s.opts.unevaluated)return;const i=t.let("valid",!1),c=t.name("_valid");t.block((()=>r.forEach(((r,o)=>{const s=e.subschema({keyword:a,schemaProp:o,compositeRule:!0},c);t.assign(i,n._`${i} || ${c}`);e.mergeValidEvaluated(s,c)||t.if((0,n.not)(i))})))),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}},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),a=r(77013),s=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(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,i):s;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 d=r(69810);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var u=r(93789);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=r(99598);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=r(70303);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})},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),a=r(66735);function s(e,t){const r=e.const("err",t);e.if(n._`${a.default.vErrors} === null`,(()=>e.assign(a.default.vErrors,n._`[${r}]`)),n._`${a.default.vErrors}.push(${r})`),e.code(n._`${a.default.errors}++`)}function i(e,t){const{gen:r,validateName:o,schemaEnv:a}=e;a.$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,a){const{it:c}=e,{gen:d,compositeRule:u,allErrors:f}=c,m=l(e,r,o);(null!==a&&void 0!==a?a:u||f)?s(d,m):i(c,n._`[${m}]`)},t.reportExtraError=function(e,r=t.keywordError,n){const{it:o}=e,{gen:c,compositeRule:d,allErrors:u}=o;s(c,l(e,r,n)),d||u||i(o,a.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(a.default.errors,t),e.if(n._`${a.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(n._`${a.default.vErrors}.length`,t)),(()=>e.assign(a.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:o,errsCount:s,it:i}){if(void 0===s)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",s,a.default.errors,(s=>{e.const(c,n._`${a.default.vErrors}[${s}]`),e.if(n._`${c}.instancePath === undefined`,(()=>e.assign(n._`${c}.instancePath`,(0,n.strConcat)(a.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:s}=e,i=[d(s,r),u(e,r)];return function(e,{params:t,message:r},o){const{keyword:s,data:i,schemaValue:l,it:d}=e,{opts:u,propertyName:f,topSchemaRef:m,schemaPath:h}=d;o.push([c.keyword,s],[c.params,"function"==typeof t?t(e):t||n._`{}`]),u.messages&&o.push([c.message,"function"==typeof r?r(e):r]);u.verbose&&o.push([c.schema,l],[c.parentSchema,n._`${m}${h}`],[a.default.data,i]);f&&o.push([c.propertyName,f])}(e,t,i),o.object(...i)}(e,t,r)}function d({errorPath:e},{instancePath:t}){const r=t?n.str`${e}${(0,o.getErrorPath)(t,o.Type.Str)}`:e;return[a.default.instancePath,(0,n.strConcat)(a.default.instancePath,r)]}function u({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:a}){let s=a?t:n.str`${t}/${e}`;return r&&(s=n.str`${s}${(0,o.getErrorPath)(r,o.Type.Str)}`),[c.schemaPath,s]}},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={}))},22891:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const n=r(56699),o=r(19205),a={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)?s(e,n):(0,o.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function s(e,t){const{gen:r,schema:a,data:s,keyword:i,it:c}=e;c.items=!0;const l=r.const("len",n._`${s}.length`);if(!1===a)e.setParams({len:t.length}),e.pass(n._`${l} <= ${t.length}`);else if("object"==typeof a&&!(0,o.alwaysValidSchema)(c,a)){const a=r.var("valid",n._`${l} <= ${t.length}`);r.if((0,n.not)(a),(()=>function(a){r.forRange("i",t.length,l,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:o.Type.Num},a),c.allErrors||r.if((0,n.not)(a),(()=>r.break()))}))}(a))),e.ok(a)}}t.validateAdditionalItems=s,t.default=a},23036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=n.operators,a={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}},s={message:({keyword:e,schemaCode:t})=>n.str`must be ${a[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${a[e].okStr}, limit: ${t}}`},i={keyword:Object.keys(a),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{keyword:t,data:r,schemaCode:o}=e;e.fail$data(n._`${r} ${a[t].fail} ${o} || isNaN(${r})`)}};t.default=i},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 a;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(a||(t.UsedValueState=a={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class s{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=s;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 s{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,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let s=this._values[o];if(s){const e=s.get(a);if(e)return e}else s=this._values[o]=new Map;s.set(a,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,s={},i){let c=n.nil;for(const l in e){const d=e[l];if(!d)continue;const u=s[l]=s[l]||new Map;d.forEach((e=>{if(u.has(e))return;u.set(e,a.Started);let s=r(e);if(s){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=n._`${c}${r} ${e} = ${s};${this.opts._n}`}else{if(!(s=null===i||void 0===i?void 0:i(e)))throw new o(e);c=n._`${c}${s}${this.opts._n}`}u.set(e,a.Completed)}))}return c}}},26461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const n=r(22394),o=r(93789),a=o.operators,s={formatMaximum:{okStr:"<=",ok:a.LTE,fail:a.GT},formatMinimum:{okStr:">=",ok:a.GTE,fail:a.LT},formatExclusiveMaximum:{okStr:"<",ok:a.LT,fail:a.GTE},formatExclusiveMinimum:{okStr:">",ok:a.GT,fail:a.LTE}},i={message:({keyword:e,schemaCode:t})=>o.str`should be ${s[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>o._`{comparison: ${s[e].okStr}, limit: ${t}}`};t.formatLimitDefinition={keyword:Object.keys(s),type:"string",schemaType:"string",$data:!0,error:i,code(e){const{gen:t,data:r,schemaCode:a,keyword:i,it:c}=e,{opts:l,self:d}=c;if(!l.validateFormats)return;const u=new n.KeywordCxt(c,d.RULES.all.format.definition,"format");function f(e){return o._`${e}.compare(${r}, ${a}) ${s[i].fail} 0`}u.$data?function(){const r=t.scopeValue("formats",{ref:d.formats,code:l.code.formats}),n=t.const("fmt",o._`${r}[${u.schemaCode}]`);e.fail$data(o.or(o._`typeof ${n} != "object"`,o._`${n} instanceof RegExp`,o._`typeof ${n}.compare != "function"`,f(n)))}():function(){const r=u.schema,n=d.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 a=t.scopeValue("formats",{key:r,ref:n,code:l.code.formats?o._`${l.code.formats}${o.getProperty(r)}`:void 0});e.fail$data(f(a))}()},dependencies:["format"]};t.default=e=>(e.addKeyword(t.formatLimitDefinition),e)},26594:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(63418),o=r(33742),a=r(53308),s=r(53478),i=r(53727),c=[n.default,o.default,(0,a.default)(),s.default,i.metadataVocabulary,i.contentVocabulary];t.default=c},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}},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={}))},27711:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(79888),o=r(62235),a=r(19205),s=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&&s.default.code(new n.KeywordCxt(l,s.default,"additionalProperties"));const d=(0,o.allSchemaProperties)(r);for(const n of d)l.definedProperties.add(n);l.opts.unevaluated&&d.length&&!0!==l.props&&(l.props=a.mergeEvaluated.props(t,(0,a.toHash)(d),l.props));const u=d.filter((e=>!(0,a.alwaysValidSchema)(l,r[e])));if(0===u.length)return;const f=t.name("valid");for(const n of u)m(n)?h(n):(t.if((0,o.propertyInData)(t,c,n,l.opts.ownProperties)),h(n),l.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function m(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==r[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=i},28085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),a=r(37464),s={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:s,schemaCode:i,schema:c}=e;s||c&&"object"==typeof c?e.fail$data(n._`!${(0,o.useFunc)(t,a.default)}(${r}, ${i})`):e.fail(n._`${c} !== ${r}`)}};t.default=s},28132:(t,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=void 0;var o=n(79888);Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return o.KeywordCxt}});var a=n(56699);Object.defineProperty(r,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return a.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return a.CodeGen}});const s=n(36024),i=n(39889),c=n(43402),l=n(16245),d=n(56699),u=n(9737),f=n(66542),m=n(19205),h=n(53983),p=n(86122),y=(e,t)=>new RegExp(e,t);y.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),$={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."},b={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function w(e){var t,r,n,o,a,s,i,c,l,d,u,f,m,h,g,v,$,b,w,_,S,A,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:y,C=null!==(o=e.uriResolver)&&void 0!==o?o:p.default;return{strictSchema:null===(s=null!==(a=e.strictSchema)&&void 0!==a?a:x)||void 0===s||s,strictNumbers:null===(c=null!==(i=e.strictNumbers)&&void 0!==i?i:x)||void 0===c||c,strictTypes:null!==(d=null!==(l=e.strictTypes)&&void 0!==l?l:x)&&void 0!==d?d:"log",strictTuples:null!==(f=null!==(u=e.strictTuples)&&void 0!==u?u:x)&&void 0!==f?f:"log",strictRequired:null!==(h=null!==(m=e.strictRequired)&&void 0!==m?m:x)&&void 0!==h&&h,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===(w=e.inlineRefs)||void 0===w||w,schemaId:null!==(_=e.schemaId)&&void 0!==_?_:"$id",addUsedSchema:null===(S=e.addUsedSchema)||void 0===S||S,validateSchema:null===(A=e.validateSchema)||void 0===A||A,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,...w(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new d.ValueScope({scope:{},prefixes:v,es5:t,lines:r}),this.logger=function(e){if(!1===e)return k;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,c.getRules)(),S.call(this,$,e,"NOT SUPPORTED"),S.call(this,b,e,"DEPRECATED","warn"),this._metaOpts=x.call(this),e.formats&&E.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&P.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),j.call(this),e.validateFormats=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(t,r){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||s.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await o.call(this,{$ref:e},!0)}async function s(t){try{return this._compileSchemaEnv(t)}catch(e){if(!(e instanceof i.default))throw e;return c.call(this,e),await l.call(this,e.missingSchema),s.call(this,t)}}function c({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const t=await d.call(this,e);this.refs[e]||await a.call(this,t.$schema),this.refs[e]||this.addSchema(t,e,r)}async function d(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,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 l.SchemaEnv({schema:{},schemaId:r});if(t=l.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(N.call(this,r,t),!t)return(0,m.eachItem)(r,(e=>C.call(this,e))),this;D.call(this,t);const n={...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)};return(0,m.eachItem)(r,0===n.type.length?e=>C.call(this,e,n):e=>n.type.forEach((t=>C.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,a=o[e];n&&a&&(o[e]=T(a))}}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 a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let i=this._cache.get(e);if(void 0!==i)return i;r=(0,u.normalizeId)(a||r);const c=u.getSchemaRefs.call(this,e,r);return i=new l.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:c}),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):l.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{l.compileSchema.call(this,e)}finally{this.opts=t}}}function S(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function A(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function j(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function E(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function P(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function x(){const e={...this.opts};for(const t of g)delete e[t];return e}_.ValidationError=s.default,_.MissingRefError=i.default,r.default=_;const k={log(){},warn(){},error(){}};const O=/^[a-z_$][a-z0-9_$:-]*$/i;function N(e,t){const{RULES:r}=this;if((0,m.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.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 C(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:a}=this;let s=o?a.post:a.rules.find((({type:e})=>e===r));if(s||(s={type:r,rules:[]},a.rules.push(s)),a.keywords[e]=!0,!t)return;const i={keyword:e,definition:{...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)}};t.before?I.call(this,s,i,t.before):s.rules.push(i),a.all[e]=i,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function I(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 D(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,R]}}},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),a=r(22796),s=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:a}=e,i=function(e,t){return t?e.filter((e=>d.has(e)||"array"===t&&"array"===e)):[]}(t,a.coerceTypes),l=t.length>0&&!(0===i.length&&1===t.length&&(0,o.schemaHasRulesForType)(e,t[0]));if(l){const o=f(t,n,a.strictNumbers,c.Wrong);r.if(o,(()=>{i.length?function(e,t,r){const{gen:n,data:o,opts:a}=e,i=n.let("dataType",s._`typeof ${o}`),c=n.let("coerced",s._`undefined`);"array"===a.coerceTypes&&n.if(s._`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>n.assign(o,s._`${o}[0]`).assign(i,s._`typeof ${o}`).if(f(t,o,a.strictNumbers),(()=>n.assign(c,o)))));n.if(s._`${c} !== undefined`);for(const s of r)(d.has(s)||"array"===s&&"array"===a.coerceTypes)&&l(s);function l(e){switch(e){case"string":return void n.elseIf(s._`${i} == "number" || ${i} == "boolean"`).assign(c,s._`"" + ${o}`).elseIf(s._`${o} === null`).assign(c,s._`""`);case"number":return void n.elseIf(s._`${i} == "boolean" || ${o} === null
|| (${i} == "string" && ${o} && ${o} == +${o})`).assign(c,s._`+${o}`);case"integer":return void n.elseIf(s._`${i} === "boolean" || ${o} === null
|| (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(c,s._`+${o}`);case"boolean":return void n.elseIf(s._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(c,!1).elseIf(s._`${o} === "true" || ${o} === 1`).assign(c,!0);case"null":return n.elseIf(s._`${o} === "" || ${o} === 0 || ${o} === false`),void n.assign(c,null);case"array":n.elseIf(s._`${i} === "string" || ${i} === "number"
|| ${i} === "boolean" || ${o} === null`).assign(c,s._`[${o}]`)}}n.else(),h(e),n.endIf(),n.if(s._`${c} !== undefined`,(()=>{n.assign(o,c),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(s._`${t} !== undefined`,(()=>e.assign(s._`${t}[${r}]`,n)))}(e,c)}))}(e,t,i):h(e)}))}return l};const d=new Set(["string","number","integer","boolean","null"]);function u(e,t,r,n=c.Correct){const o=n===c.Correct?s.operators.EQ:s.operators.NEQ;let a;switch(e){case"null":return s._`${t} ${o} null`;case"array":a=s._`Array.isArray(${t})`;break;case"object":a=s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=i(s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=i();break;default:return s._`typeof ${t} ${o} ${e}`}return n===c.Correct?a:(0,s.not)(a);function i(e=s.nil){return(0,s.and)(s._`typeof ${t} == "number"`,e,r?s._`isFinite(${t})`:s.nil)}}function f(e,t,r,n){if(1===e.length)return u(e[0],t,r,n);let o;const a=(0,i.toHash)(e);if(a.array&&a.object){const e=s._`typeof ${t} != "object"`;o=a.null?e:s._`!${t} || ${e}`,delete a.null,delete a.array,delete a.object}else o=s.nil;a.number&&delete a.integer;for(const i in a)o=(0,s.and)(o,u(i,t,r,n));return o}t.checkDataType=u,t.checkDataTypes=f;const m={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function h(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,a.reportError)(t,m)}t.reportTypeError=h},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),a=r(93789),s=r(66735),i=r(65219),c=r(7083),l={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:o}=e,{baseId:s,schemaEnv:c,validateName:l,opts:f,self:m}=o,{root:h}=c;if(("#"===r||"#/"===r)&&s===h.baseId)return function(){if(c===h)return u(e,l,c,c.$async);const r=t.scopeValue("root",{ref:h});return u(e,a._`${r}.validate`,h,h.$async)}();const p=i.resolveRef.call(m,h,s,r);if(void 0===p)throw new n.default(o.opts.uriResolver,s,r);return p instanceof i.SchemaEnv?function(t){const r=d(e,t);u(e,r,t,t.$async)}(p):function(n){const o=t.scopeValue("schema",!0===f.code.source?{ref:n,code:(0,a.stringify)(n)}:{ref:n}),s=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:a.nil,topSchemaRef:o,errSchemaPath:r},s);e.mergeEvaluated(i),e.ok(s)}(p)}};function d(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):a._`${r.scopeValue("wrapper",{ref:t})}.validate`}function u(e,t,r,n){const{gen:i,it:l}=e,{allErrors:d,schemaEnv:u,opts:f}=l,m=f.passContext?s.default.this:a.nil;function h(e){const t=a._`${e}.errors`;i.assign(s.default.vErrors,a._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`),i.assign(s.default.errors,a._`${s.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",a._`${e}.evaluated.props`);l.props=c.mergeEvaluated.props(i,t,l.props,a.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",a._`${e}.evaluated.items`);l.items=c.mergeEvaluated.items(i,t,l.items,a.Name)}}n?function(){if(!u.$async)throw new Error("async schema referenced by sync schema");const r=i.let("valid");i.try((()=>{i.code(a._`await ${(0,o.callValidateCode)(e,t,m)}`),p(t),d||i.assign(r,!0)}),(e=>{i.if(a._`!(${e} instanceof ${l.ValidationError})`,(()=>i.throw(e))),h(e),d||i.assign(r,!1)})),e.ok(r)}():e.result((0,o.callValidateCode)(e,t,m),(()=>p(t)),(()=>h(t)))}t.getValidate=d,t.callRef=u,t.default=l},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},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 a=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=o},30423:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(66542),o=r(56699),a=r(19205),s=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:d,it:u}=e;if(!i&&!c)return;const f=t.let("valid"),m=l.items?(0,n.getSchemaTypes)(l.items):[];function h(a,s){const i=t.name("item"),c=(0,n.checkDataTypes)(m,i,u.opts.strictNumbers,n.DataType.Wrong),l=t.const("indices",o._`{}`);t.for(o._`;${a}--;`,(()=>{t.let(i,o._`${r}[${a}]`),t.if(c,o._`continue`),m.length>1&&t.if(o._`typeof ${i} == "string"`,o._`${i} += "_"`),t.if(o._`typeof ${l}[${i}] == "number"`,(()=>{t.assign(s,o._`${l}[${i}]`),e.error(),t.assign(f,!1).break()})).code(o._`${l}[${i}] = ${a}`)}))}function p(n,i){const c=(0,a.useFunc)(t,s.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`),a=t.let("j");e.setParams({i:n,j:a}),t.assign(f,!0),t.if(o._`${n} > 1`,(()=>(m.length>0&&!m.some((e=>"object"===e||"array"===e))?h:p)(n,a)))}),o._`${d} === 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,a;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=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!==o--;){var s=a[o];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}},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:a}=e,s=a.opts.multipleOfPrecision,i=t.let("res"),c=s?n._`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:n._`${i} !== parseInt(${i})`;e.fail$data(n._`(${o} === 0 || (${i} = ${r}/${o}, ${c}))`)}};t.default=o},32884:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=[r(40329).default];t.default=n},33742:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(23036),o=r(32785),a=r(83513),s=r(50556),i=r(10844),c=r(34757),l=r(58153),d=r(30423),u=r(28085),f=r(40377),m=[n.default,o.default,a.default,s.default,i.default,c.default,l.default,d.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},u.default,f.default];t.default=m},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):[]}},34757:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(62235),o=r(56699),a=r(19205),s={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:s,data:i,$data:c,it:l}=e,{opts:d}=l;if(!c&&0===r.length)return;const u=r.length>=d.loopRequired;if(l.allErrors?function(){if(u||c)e.block$data(o.nil,f);else for(const t of r)(0,n.checkReportMissingProp)(e,t)}():function(){const a=t.let("missing");if(u||c){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,s,(()=>{t.assign(a,(0,n.propertyInData)(t,i,r,d.ownProperties)),t.if((0,o.not)(a),(()=>{e.error(),t.break()}))}),o.nil)}(a,r))),e.ok(r)}else t.if((0,n.checkMissingProp)(e,r,a)),(0,n.reportMissingProp)(e,a),t.else()}(),d.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,a.checkStrictMode)(l,t,l.opts.strictRequired)}}function f(){t.forOf("prop",s,(r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,i,r,d.ownProperties),(()=>e.error()))}))}}};t.default=s},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 a(e){return e.length=0,!0}function s(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,d=s;for(let n=0;n<e.length;n++){const s=e[n];if("["!==s&&"]"!==s)if(":"!==s)if("%"===s){if(!d(i,o,r))break;d=a}else i.push(s);else{if(!0===c&&(l=!0),!d(i,o,r))break;if(++t>7){r.error=!0;break}n>0&&":"===e[n-1]&&(c=!0),o.push(":")}}return i.length&&(d===a?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}},34916:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(87465),o=r(26666),a=r(66318);const s=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 a=Array(o);++n<o;)a[n]=e[n+t];return a};const i=function(e,t){return t.length<2?e:(0,a.A)(e,s(t,0,-1))};var c=r(30901);const l=function(e,t){return t=(0,n.A)(t,e),null==(e=i(e,t))||delete e[(0,c.A)((0,o.A)(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)}},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},36904:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(45572),o=r(39759),a=r(92049),s=r(61882),i=r(37216),c=r(30901),l=r(3456);const d=function(e){return(0,a.A)(e)?(0,n.A)(e,c.A):(0,s.A)(e)?[e]:(0,o.A)((0,i.A)((0,l.A)(e)))}},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}')},37346:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(52851),o=r(87465),a=r(25353),s=r(23149),i=r(30901);const c=function(e,t,r,c){if(!(0,s.A)(e))return e;for(var l=-1,d=(t=(0,o.A)(t,e)).length,u=d-1,f=e;null!=f&&++l<d;){var m=(0,i.A)(t[l]),h=r;if("__proto__"===m||"constructor"===m||"prototype"===m)return e;if(l!=u){var p=f[m];void 0===(h=c?c(p,m,f):void 0)&&(h=(0,s.A)(p)?p:(0,a.A)(t[l+1])?[]:{})}(0,n.A)(f,m,h),f=f[m]}return e}},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},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 a(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._=a;const s=new o("+");function i(e,...t){const r=[d(e[0])];let n=0;for(;n<t.length;)r.push(s),c(r,t[n]),r.push(s,d(e[++n]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===s){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:d(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 d(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(d(e))},t.safeStringify=d,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new o(`.${e}`):a`[${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())}},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}')},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,a="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`Object.keys(${r}).length ${a} ${o}`)}};t.default=o},39622:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=Object.prototype.hasOwnProperty;const o=function(e,t){return null!=e&&n.call(e,t)};var a=r(85054);const s=function(e,t){return null!=e&&(0,a.A)(e,t,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},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),a=r(65373);function s(e,t){const r=e.const("err",t);e.if(n._`${a.default.vErrors} === null`,(()=>e.assign(a.default.vErrors,n._`[${r}]`)),n._`${a.default.vErrors}.push(${r})`),e.code(n._`${a.default.errors}++`)}function i(e,t){const{gen:r,validateName:o,schemaEnv:a}=e;a.$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,a){const{it:c}=e,{gen:d,compositeRule:u,allErrors:f}=c,m=l(e,r,o);(null!==a&&void 0!==a?a:u||f)?s(d,m):i(c,n._`[${m}]`)},t.reportExtraError=function(e,r=t.keywordError,n){const{it:o}=e,{gen:c,compositeRule:d,allErrors:u}=o;s(c,l(e,r,n)),d||u||i(o,a.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(a.default.errors,t),e.if(n._`${a.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(n._`${a.default.vErrors}.length`,t)),(()=>e.assign(a.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:o,errsCount:s,it:i}){if(void 0===s)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",s,a.default.errors,(s=>{e.const(c,n._`${a.default.vErrors}[${s}]`),e.if(n._`${c}.instancePath === undefined`,(()=>e.assign(n._`${c}.instancePath`,(0,n.strConcat)(a.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:s}=e,i=[d(s,r),u(e,r)];return function(e,{params:t,message:r},o){const{keyword:s,data:i,schemaValue:l,it:d}=e,{opts:u,propertyName:f,topSchemaRef:m,schemaPath:h}=d;o.push([c.keyword,s],[c.params,"function"==typeof t?t(e):t||n._`{}`]),u.messages&&o.push([c.message,"function"==typeof r?r(e):r]);u.verbose&&o.push([c.schema,l],[c.parentSchema,n._`${m}${h}`],[a.default.data,i]);f&&o.push([c.propertyName,f])}(e,t,i),o.object(...i)}(e,t,r)}function d({errorPath:e},{instancePath:t}){const r=t?n.str`${e}${(0,o.getErrorPath)(t,o.Type.Str)}`:e;return[a.default.instancePath,(0,n.strConcat)(a.default.instancePath,r)]}function u({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:a}){let s=a?t:n.str`${t}/${e}`;return r&&(s=n.str`${s}${(0,o.getErrorPath)(r,o.Type.Str)}`),[c.schemaPath,s]}},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:a,schema:s,schemaCode:i,it:c}=e,{opts:l,errSchemaPath:d,schemaEnv:u,self:f}=c;l.validateFormats&&(a?function(){const a=r.scopeValue("formats",{ref:f.formats,code:l.code.formats}),s=r.const("fDef",n._`${a}[${i}]`),c=r.let("fType"),d=r.let("format");r.if(n._`typeof ${s} == "object" && !(${s} instanceof RegExp)`,(()=>r.assign(c,n._`${s}.type || "string"`).assign(d,n._`${s}.validate`)),(()=>r.assign(c,n._`"string"`).assign(d,s))),e.fail$data((0,n.or)(!1===l.strictSchema?n.nil:n._`${i} && !${d}`,function(){const e=u.$async?n._`(${s}.async ? await ${d}(${o}) : ${d}(${o}))`:n._`${d}(${o})`,r=n._`(typeof ${d} == "function" ? ${e} : ${d}.test(${o}))`;return n._`${d} && ${d} !== true && ${c} === ${t} && !${r}`}()))}():function(){const a=f.formats[s];if(!a)return void function(){if(!1===l.strictSchema)return void f.logger.warn(e());throw new Error(e());function e(){return`unknown format "${s}" ignored in schema at path "${d}"`}}();if(!0===a)return;const[i,c,m]=function(e){const t=e instanceof RegExp?(0,n.regexpCode)(e):l.code.formats?n._`${l.code.formats}${(0,n.getProperty)(s)}`:void 0,o=r.scopeValue("formats",{key:s,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,n._`${o}.validate`];return["string",e,o]}(a);i===t&&e.pass(function(){if("object"==typeof a&&!(a instanceof RegExp)&&a.async){if(!u.$async)throw new Error("async format in sync schema");return n._`await ${m}(${o})`}return"function"==typeof c?n._`${m}(${o})`:n._`${m}.test(${o})`}())}())}};t.default=o},40377:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),a=r(37464),s={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:s,schema:i,schemaCode:c,it:l}=e;if(!s&&0===i.length)throw new Error("enum must have non-empty array");const d=i.length>=l.opts.loopEnum;let u;const f=()=>null!==u&&void 0!==u?u:u=(0,o.useFunc)(t,a.default);let m;if(d||s)m=t.let("valid"),e.block$data(m,(function(){t.assign(m,!1),t.forOf("v",c,(e=>t.if(n._`${f()}(${r}, ${e})`,(()=>t.assign(m,!0).break()))))}));else{if(!Array.isArray(i))throw new Error("ajv implementation error");const e=t.const("vSchema",c);m=(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(m)}};t.default=s},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},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:a,schemaPath:s,errSchemaPath:i,topSchemaRef:c}){if(void 0!==t&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const a=e.schema[t];return void 0===r?{schema:a,schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,o.escapeFragment)(r)}`}}if(void 0!==a){if(void 0===s||void 0===i||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:s,topSchemaRef:c,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:a,data:s,dataTypes:i,propertyName:c}){if(void 0!==s&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=t;if(void 0!==r){const{errorPath:s,dataPathArr:i,opts:c}=t;d(l.let("data",n._`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=n.str`${s}${(0,o.getErrorPath)(r,a,c.jsPropertySyntax)}`,e.parentDataProperty=n._`${r}`,e.dataPathArr=[...i,e.parentDataProperty]}if(void 0!==s){d(s instanceof n.Name?s:l.let("data",s,!0)),void 0!==c&&(e.propertyName=c)}function d(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:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r}},42302:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(){}},42785:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(28840),o=r(93789),a=r(7083),s=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:d,it:u}=e;if(!i&&!c)return;const f=t.let("valid"),m=l.items?(0,n.getSchemaTypes)(l.items):[];function h(a,s){const i=t.name("item"),c=(0,n.checkDataTypes)(m,i,u.opts.strictNumbers,n.DataType.Wrong),l=t.const("indices",o._`{}`);t.for(o._`;${a}--;`,(()=>{t.let(i,o._`${r}[${a}]`),t.if(c,o._`continue`),m.length>1&&t.if(o._`typeof ${i} == "string"`,o._`${i} += "_"`),t.if(o._`typeof ${l}[${i}] == "number"`,(()=>{t.assign(s,o._`${l}[${i}]`),e.error(),t.assign(f,!1).break()})).code(o._`${l}[${i}] = ${a}`)}))}function p(n,i){const c=(0,a.useFunc)(t,s.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`),a=t.let("j");e.setParams({i:n,j:a}),t.assign(f,!0),t.if(o._`${n} > 1`,(()=>(m.length>0&&!m.some((e=>"object"===e||"array"===e))?h:p)(n,a)))}),o._`${d} === false`),e.ok(f)}};t.default=i},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:{}}}},44030:(t,r,n)=>{"use strict";n.d(r,{Ay:()=>h});var o=n(71787),a=n(79756),s=n(68182),i=n(23149);const c={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},l=/^(#?([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*\)))$/,d=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;var u=n(77500);function f(e,t,r,n,a,s,i){const{validationError:c}=t;let l=function(e=[],t){return e.map((e=>{var r;const{instancePath:n,keyword:a,params:s,schemaPath:i,parentSchema:c,...l}=e;let{message:d=""}=l,f=n.replace(/\//g,"."),m=`${f} ${d}`.trim(),h="";const p=[...(null===(r=s.deps)||void 0===r?void 0:r.split(", "))||[],s.missingProperty,s.property].filter((e=>e));if(p.length>0)p.forEach((e=>{const r=f?`${f}.${e}`:e;let n=(0,o.$R)((0,u.A)(t,`${r.replace(/^\./,"")}`)).title;if(void 0===n){const r=i.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([e]);n=(0,o.$R)((0,u.A)(t,r)).title}if(n)d=d.replace(`'${e}'`,`'${n}'`),h=n;else{const t=(0,u.A)(c,[o.s1,e,"title"]);t&&(d=d.replace(`'${e}'`,`'${t}'`),h=t)}})),m=d;else{const e=(0,o.$R)((0,u.A)(t,`${f.replace(/^\./,"")}`)).title;if(e)m=`'${e}' ${d}`.trim(),h=e;else{const e=null===c||void 0===c?void 0:c.title;e&&(m=`'${e}' ${d}`.trim(),h=e)}}return"missingProperty"in s&&(f=f?`${f}.${s.missingProperty}`:s.missingProperty),{name:a,property:f,message:d,params:s,stack:m,schemaPath:i,title:h}})).reduce(((e,t)=>{const{message:r,schemaPath:n}=t,a=null===n||void 0===n?void 0:n.indexOf(`/${o.Xo}/`),s=null===n||void 0===n?void 0:n.indexOf(`/${o.Ru}/`);let i;return a&&a>=0?i=null===n||void 0===n?void 0:n.substring(0,a):s&&s>=0&&(i=null===n||void 0===n?void 0:n.substring(0,s)),(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 s&&(l=s(l,i));let d=(0,o.MD)(l);if(c&&(d={...d,$schema:{__errors:[c.message]}}),"function"!==typeof a)return{errors:l,errorSchema:d};const f=(0,o.NV)(e,n,r,n,!0),m=a(f,(0,o.JF)(f),i),h=(0,o.fV)(m);return(0,o.k6)({errors:l,errorSchema:d},h)}class m{constructor(e,t){const{additionalMetaSchemas:r,customFormats:n,ajvOptionsOverrides:u,ajvFormatOptions:f,AjvClass:m,extenderFn:h}=e;this.ajv=function(e,t,r={},n,u=a,f){let m=new u({...c,...r});return n?s(m,n):!1!==n&&s(m),m.addFormat("data-url",d),m.addFormat("color",l),m.addKeyword(o.Rr),m.addKeyword(o.FF),Array.isArray(e)&&m.addMetaSchema(e),(0,i.A)(t)&&Object.keys(t).forEach((e=>{m.addFormat(e,t[e])})),f&&(m=f(m)),m}(r,n,u,f,m,h),this.localizer=t}reset(){this.ajv.removeSchema()}rawValidation(e,t){var r,n;let a,s,i;try{e[o.K0]&&(s=this.ajv.getSchema(e[o.K0])),void 0===s&&(s=this.ajv.compile(e)),s(t)}catch(c){a=c}return s&&("function"===typeof this.localizer&&((null!==(r=s.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(s.errors),(null!==(n=s.errors)&&void 0!==n?n:[]).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=s.errors||void 0,s.errors=null),{errors:i,validationError:a}}validateFormData(e,t,r,n,o){return f(this,this.rawValidation(t,e),e,t,r,n,o)}handleSchemaUpdate(e){var t,r;const n=null!==(t=e[o.K0])&&void 0!==t?t:o.at;void 0===this.ajv.getSchema(n)?this.ajv.addSchema(e,n):(0,o.c2)(e,null===(r=this.ajv.getSchema(n))||void 0===r?void 0:r.schema)||(this.ajv.removeSchema(n),this.ajv.addSchema(e,n))}isValid(t,r,n){var a;try{this.handleSchemaUpdate(n);const e=(0,o.vh)(t),s=null!==(a=e[o.K0])&&void 0!==a?a:(0,o.$K)(e);let i;i=this.ajv.getSchema(s),void 0===i&&(i=this.ajv.addSchema(e,s).getSchema(s)||this.ajv.compile(e));return i(r)}catch(e){return console.warn("Error encountered compiling schema:",e),!1}}}const h=function(e={},t){return new m(e,t)}()},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 a;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(a||(t.UsedValueState=a={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class s{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=s;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 s{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,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let s=this._values[o];if(s){const e=s.get(a);if(e)return e}else s=this._values[o]=new Map;s.set(a,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,s={},i){let c=n.nil;for(const l in e){const d=e[l];if(!d)continue;const u=s[l]=s[l]||new Map;d.forEach((e=>{if(u.has(e))return;u.set(e,a.Started);let s=r(e);if(s){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=n._`${c}${r} ${e} = ${s};${this.opts._n}`}else{if(!(s=null===i||void 0===i?void 0:i(e)))throw new o(e);c=n._`${c}${s}${this.opts._n}`}u.set(e,a.Completed)}))}return c}}},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)}},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},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},48343:(t,r,n)=>{"use strict";const{normalizeIPv6:o,removeDotSegments:a,recomposeAuthority:s,normalizeComponentEncoding:i,isIPv4:c,nonSimpleDomain:l}=n(34834),{SCHEMES:d,getSchemeHandler:u}=n(343);function f(e,t,r,n){const o={};return n||(e=p(m(e,r),r),t=p(m(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=a(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=a(t.path||""),o.query=t.query):(t.path?("/"===t.path[0]?o.path=a(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path:o.path="/"+t.path,o.path=a(o.path)),o.query=t.query):(o.path=e.path,void 0!==t.query?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function m(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),o=[],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&&o.push(r.scheme,":");const c=s(r);if(void 0!==c&&("suffix"!==n.reference&&o.push("//"),o.push(c),r.path&&"/"!==r.path[0]&&o.push("/")),void 0!==r.path){let e=r.path;n.absolutePath||i&&i.absolutePath||(e=a(e)),void 0===c&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),o.push(e)}return void 0!==r.query&&o.push("?",r.query),void 0!==r.fragment&&o.push("#",r.fragment),o.join("")}const h=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function p(t,r){const n=Object.assign({},r),a={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let s=!1;"suffix"===n.reference&&(t=n.scheme?n.scheme+":"+t:"//"+t);const i=t.match(h);if(i){if(a.scheme=i[1],a.userinfo=i[3],a.host=i[4],a.port=parseInt(i[5],10),a.path=i[6]||"",a.query=i[7],a.fragment=i[8],isNaN(a.port)&&(a.port=i[5]),a.host){if(!1===c(a.host)){const e=o(a.host);a.host=e.host.toLowerCase(),s=e.isIPV6}else s=!0}void 0!==a.scheme||void 0!==a.userinfo||void 0!==a.host||void 0!==a.port||void 0!==a.query||a.path?void 0===a.scheme?a.reference="relative":void 0===a.fragment?a.reference="absolute":a.reference="uri":a.reference="same-document",n.reference&&"suffix"!==n.reference&&n.reference!==a.reference&&(a.error=a.error||"URI is not a "+n.reference+" reference.");const r=u(n.scheme||a.scheme);if(!n.unicodeSupport&&(!r||!r.unicodeSupport)&&a.host&&(n.domainHost||r&&r.domainHost)&&!1===s&&l(a.host))try{a.host=URL.domainToASCII(a.host.toLowerCase())}catch(e){a.error=a.error||"Host's domain name can not be converted to ASCII: "+e}(!r||r&&!r.skipNormalize)&&(-1!==t.indexOf("%")&&(void 0!==a.scheme&&(a.scheme=unescape(a.scheme)),void 0!==a.host&&(a.host=unescape(a.host))),a.path&&(a.path=escape(unescape(a.path))),a.fragment&&(a.fragment=encodeURI(decodeURIComponent(a.fragment)))),r&&r.parse&&r.parse(a,n)}else a.error=a.error||"URI can not be parsed.";return a}const y={SCHEMES:d,normalize:function(e,t){return"string"===typeof e?e=m(p(e,t),t):"object"===typeof e&&(e=p(m(e,t),t)),e},resolve:function(e,t,r){const n=r?Object.assign({scheme:"null"},r):{scheme:"null"},o=f(p(e,n),p(t,n),n,!0);return n.skipEscape=!0,m(o,n)},resolveComponent:f,equal:function(e,t,r){return"string"===typeof e?(e=unescape(e),e=m(i(p(e,r),!0),{...r,skipEscape:!0})):"object"===typeof e&&(e=m(i(e,!0),{...r,skipEscape:!0})),"string"===typeof t?(t=unescape(t),t=m(i(p(t,r),!0),{...r,skipEscape:!0})):"object"===typeof t&&(t=m(i(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:m,parse:p};t.exports=y,t.exports.default=y,t.exports.fastUri=y},50302:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(21085),o=r(93789),a={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:a,schemaCode:s,it:i}=e,c=i.opts.unicodeRegExp?"u":"",l=r?o._`(new RegExp(${s}, ${c}))`:(0,n.usePattern)(e,a);e.fail$data(o._`!${l}.test(${t})`)}};t.default=a},50416:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(34098),o=r(65255),a=r(46778);const s=function(e){return(0,a.A)((0,o.A)(e,void 0,n.A),e+"")}},50556:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(62235),o=r(56699),a={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:a,schemaCode:s,it:i}=e,c=i.opts.unicodeRegExp?"u":"",l=r?o._`(new RegExp(${s}, ${c}))`:(0,n.usePattern)(e,a);e.fail$data(o._`!${l}.test(${t})`)}};t.default=a},50575:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(22886),a=r(16245),s=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:d}=e,{oneOf:u}=l;if(!d.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(!u)throw new Error("discriminator: requires oneOf keyword");const m=t.let("valid",!1),h=t.const("tag",n._`${r}${(0,n.getProperty)(f)}`);function p(r){const o=t.name("valid"),a=e.subschema({keyword:"oneOf",schemaProp:r},o);return e.mergeEvaluated(a,n.Name),o}t.if(n._`typeof ${h} == "string"`,(()=>function(){const r=function(){var e;const t={},r=o(l);let n=!0;for(let l=0;l<u.length;l++){let t=u[l];if((null===t||void 0===t?void 0:t.$ref)&&!(0,i.schemaHasRulesButRef)(t,d.self.RULES)){const e=t.$ref;if(t=a.resolveRef.call(d.self,d.schemaEnv.root,d.baseId,e),t instanceof a.SchemaEnv&&(t=t.schema),void 0===t)throw new s.default(d.opts.uriResolver,d.baseId,e)}const m=null===(e=null===t||void 0===t?void 0:t.properties)||void 0===e?void 0:e[f];if("object"!=typeof m)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);n=n&&(r||o(t)),c(m,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)m(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`);for(const r of e.enum)m(r,t)}}function m(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._`${h} === ${e}`),t.assign(m,p(r[e]));t.else(),e.error(!1,{discrError:o.DiscrError.Mapping,tag:h,tagName:f}),t.endIf()}()),(()=>e.error(!1,{discrError:o.DiscrError.Tag,tag:h,tagName:f}))),e.ok(m)}};t.default=c},52610:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(57065),o=r(47394),a=r(67366),s=r(56166),i=r(96925),c=r(71273),l=r(7705),d=r(90396),u=r(55581),f=r(78013),m=r(29320),h=r(41665),p=r(9259),y=r(66636),g=r(7567),v=r(70866);t.default=function(e=!1){const t=[m.default,h.default,p.default,y.default,g.default,v.default,l.default,d.default,c.default,u.default,f.default];return e?t.push(o.default,s.default):t.push(n.default,a.default),t.push(i.default),t}},53308:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(22891),o=r(29236),a=r(1096),s=r(67208),i=r(95011),c=r(81451),l=r(97267),d=r(85622),u=r(27711),f=r(16699),m=r(8265),h=r(86027),p=r(1937),y=r(54866),g=r(58445),v=r(67908);t.default=function(e=!1){const t=[m.default,h.default,p.default,y.default,g.default,v.default,l.default,d.default,c.default,u.default,f.default];return e?t.push(o.default,s.default):t.push(n.default,a.default),t.push(i.default),t}},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"]},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}')},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 a=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(o,t))return;const s=e.subschema({keyword:"allOf",schemaProp:r},a);e.ok(a),e.mergeEvaluated(s)}))}};t.default=o},54930:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(45572),o=r(94507),a=r(34916),s=r(87465),i=r(22031),c=r(34963);const l=function(e){return(0,c.A)(e)?void 0:e};var d=r(50416),u=r(83973);const f=(0,d.A)((function(e,t){var r={};if(null==e)return r;var c=!1;t=(0,n.A)(t,(function(t){return t=(0,s.A)(t,e),c||(c=t.length>1),t})),(0,i.A)(e,(0,u.A)(e),r),c&&(r=(0,o.A)(r,7,l));for(var d=t.length;d--;)(0,a.A)(r,t[d]);return r}))},55581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(69810),o=r(21085),a=r(7083),s=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&&s.default.code(new n.KeywordCxt(l,s.default,"additionalProperties"));const d=(0,o.allSchemaProperties)(r);for(const n of d)l.definedProperties.add(n);l.opts.unevaluated&&d.length&&!0!==l.props&&(l.props=a.mergeEvaluated.props(t,(0,a.toHash)(d),l.props));const u=d.filter((e=>!(0,a.alwaysValidSchema)(l,r[e])));if(0===u.length)return;const f=t.name("valid");for(const n of u)m(n)?h(n):(t.if((0,o.propertyInData)(t,c,n,l.opts.ownProperties)),h(n),l.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function m(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==r[e].default}function h(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=i},56166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),a=r(21085),s=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,s.validateAdditionalItems)(e,i):e.ok((0,a.validateArray)(e)))}};t.default=i},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 a(e){return r.test(e)?e.replace(n,o):e}function s(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=s(t)).length;if(1===r)return e;for(var n=1;n<r;){if(e=e[a(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=s(t)).length)throw new Error("Invalid JSON pointer for set.");return function(e,t,r){for(var n,o,s=1,i=t.length;s<i;){if("constructor"===t[s]||"prototype"===t[s]||"__proto__"===t[s])return e;if(n=a(t[s++]),o=i>s,"undefined"===typeof e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),o&&(""!==t[s]&&t[s]<1/0||"-"===t[s]?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=s(e);return{get:function(e){return i(e,t)},set:function(e,r){return c(e,t,r)}}}},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 a=r(37622);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return a.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return a.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return a.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return a.Name}});var s=r(23643);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.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 d 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 u 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 m extends i{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h 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 w 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 _ 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:a}=this;return`for(${t} ${r}=${n}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){const e=O(super.names,this.from);return O(e,this.to)}}class S 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 A 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)}}A.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?a(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=a(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e)),[])):e;var o;function a(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 d(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new h(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 w(e),t)}forRange(e,t,r,n,a=(this.opts.es5?o.varKinds.var:o.varKinds.let)){const s=this._scope.toName(e);return this._for(new _(a,s,t,r),(()=>n(s)))}forOf(e,t,r,a=o.varKinds.const){const s=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(s,n._`${e}[${t}]`),r(s)}))}return this._for(new S("of",a,s,t),(()=>r(s)))}forIn(e,t,r,a=(this.opts.es5?o.varKinds.var:o.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,n._`Object.keys(${t})`,r);const s=this._scope.toName(e);return this._for(new S("in",a,s,t),(()=>r(s)))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new u(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 m(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 A(e,t,r)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(A)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const 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)}},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:a}=e,s=a.opts.multipleOfPrecision,i=t.let("res"),c=s?n._`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:n._`${i} !== parseInt(${i})`;e.fail$data(n._`(${o} === 0 || (${i} = ${r}/${o}, ${c}))`)}};t.default=o},56967:(e,t)=>{"use strict";var r="eye-slash",n=[],o="f070",a="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z";t.mw={prefix:"fas",iconName:r,icon:[640,512,n,o,a]},t.k6=t.mw},57065:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const n=r(93789),o=r(7083),a={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)?s(e,n):(0,o.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function s(e,t){const{gen:r,schema:a,data:s,keyword:i,it:c}=e;c.items=!0;const l=r.const("len",n._`${s}.length`);if(!1===a)e.setParams({len:t.length}),e.pass(n._`${l} <= ${t.length}`);else if("object"==typeof a&&!(0,o.alwaysValidSchema)(c,a)){const a=r.var("valid",n._`${l} <= ${t.length}`);r.if((0,n.not)(a),(()=>function(a){r.forRange("i",t.length,l,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:o.Type.Num},a),c.allErrors||r.if((0,n.not)(a),(()=>r.break()))}))}(a))),e.ok(a)}}t.validateAdditionalItems=s,t.default=a},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,a="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`${r}.length ${a} ${o}`)}};t.default=o},58445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),a={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:a}=e;void 0===r.then&&void 0===r.else&&(0,o.checkStrictMode)(a,'"if" without "then" and "else" is ignored');const i=s(a,"then"),c=s(a,"else");if(!i&&!c)return;const l=t.let("valid",!0),d=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},d);e.mergeEvaluated(t)}(),e.reset(),i&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(d,u("then",r),u("else",r))}else i?t.if(d,u("then")):t.if((0,n.not)(d),u("else"));function u(r,o){return()=>{const a=e.subschema({keyword:r},d);t.assign(l,d),e.mergeValidEvaluated(a,l),o?t.assign(o,n._`${r}`):e.setParams({ifClause:r})}}e.pass(l,(()=>e.error(!0)))}};function s(e,t){const r=e.schema[t];return void 0!==r&&!(0,o.alwaysValidSchema)(e,r)}t.default=a},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),a=r(56699),s=r(65373),i=r(16245),c=r(19205),l={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:o}=e,{baseId:s,schemaEnv:c,validateName:l,opts:f,self:m}=o,{root:h}=c;if(("#"===r||"#/"===r)&&s===h.baseId)return function(){if(c===h)return u(e,l,c,c.$async);const r=t.scopeValue("root",{ref:h});return u(e,a._`${r}.validate`,h,h.$async)}();const p=i.resolveRef.call(m,h,s,r);if(void 0===p)throw new n.default(o.opts.uriResolver,s,r);return p instanceof i.SchemaEnv?function(t){const r=d(e,t);u(e,r,t,t.$async)}(p):function(n){const o=t.scopeValue("schema",!0===f.code.source?{ref:n,code:(0,a.stringify)(n)}:{ref:n}),s=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:a.nil,topSchemaRef:o,errSchemaPath:r},s);e.mergeEvaluated(i),e.ok(s)}(p)}};function d(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):a._`${r.scopeValue("wrapper",{ref:t})}.validate`}function u(e,t,r,n){const{gen:i,it:l}=e,{allErrors:d,schemaEnv:u,opts:f}=l,m=f.passContext?s.default.this:a.nil;function h(e){const t=a._`${e}.errors`;i.assign(s.default.vErrors,a._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`),i.assign(s.default.errors,a._`${s.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",a._`${e}.evaluated.props`);l.props=c.mergeEvaluated.props(i,t,l.props,a.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",a._`${e}.evaluated.items`);l.items=c.mergeEvaluated.items(i,t,l.items,a.Name)}}n?function(){if(!u.$async)throw new Error("async schema referenced by sync schema");const r=i.let("valid");i.try((()=>{i.code(a._`await ${(0,o.callValidateCode)(e,t,m)}`),p(t),d||i.assign(r,!0)}),(e=>{i.if(a._`!(${e} instanceof ${l.ValidationError})`,(()=>i.throw(e))),h(e),d||i.assign(r,!1)})),e.ok(r)}():e.result((0,o.callValidateCode)(e,t,m),(()=>p(t)),(()=>h(t)))}t.getValidate=d,t.callRef=u,t.default=l},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),a=r(65373),s=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 a=n._`${t}${(0,n.getProperty)(r)} === undefined`;return o?(0,n.or)(a,(0,n.not)(c(e,t,r))):a}function d(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:o,it:a}=e;r.if(l(r,o,t,a.opts.ownProperties),(()=>{e.setParams({missingProperty:n._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},o,a){return(0,n.or)(...o.map((o=>(0,n.and)(l(e,t,o,r.ownProperties),n._`${a} = ${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 a=n._`${t}${(0,n.getProperty)(r)} !== undefined`;return o?n._`${a} && ${c(e,t,r)}`:a},t.noPropertyInData=l,t.allSchemaProperties=d,t.schemaProperties=function(e,t){return d(t).filter((r=>!(0,o.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:o,schemaPath:s,errorPath:i},it:c},l,d,u){const f=u?n._`${e}, ${t}, ${o}${s}`:t,m=[[a.default.instancePath,(0,n.strConcat)(a.default.instancePath,i)],[a.default.parentData,c.parentData],[a.default.parentDataProperty,c.parentDataProperty],[a.default.rootData,a.default.rootData]];c.opts.dynamicRef&&m.push([a.default.dynamicAnchors,a.default.dynamicAnchors]);const h=n._`${f}, ${r.object(...m)}`;return d!==n.nil?n._`${l}.call(${d}, ${h})`:n._`${l}(${h})`};const u=n._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const o=t.unicodeRegExp?"u":"",{regExp:a}=t.code,i=a(r,o);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:n._`${"new RegExp"===a.code?u:(0,s.useFunc)(e,a)}(${r}, ${o})`})},t.validateArray=function(e){const{gen:t,data:r,keyword:a,it:s}=e,i=t.name("valid");if(s.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(s){const c=t.const("len",n._`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:a,dataProp:r,dataPropType:o.Type.Num},i),t.if((0,n.not)(i),s)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:a,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,o.alwaysValidSchema)(s,e)))&&!s.opts.unevaluated)return;const i=t.let("valid",!1),c=t.name("_valid");t.block((()=>r.forEach(((r,o)=>{const s=e.subschema({keyword:a,schemaProp:o,compositeRule:!0},c);t.assign(i,n._`${i} || ${c}`);e.mergeValidEvaluated(s,c)||t.if((0,n.not)(i))})))),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}},62514:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=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 a:case i:case s:case f:case m:return e;default:switch(e=e&&e.$$typeof){case d:case l:case u:case p:case h: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=u,t.Fragment=a,t.Lazy=p,t.Memo=h,t.Portal=o,t.Profiler=i,t.StrictMode=s,t.Suspense=f,t.SuspenseList=m,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)===u},t.isFragment=function(e){return g(e)===a},t.isLazy=function(e){return g(e)===p},t.isMemo=function(e){return g(e)===h},t.isPortal=function(e){return g(e)===o},t.isProfiler=function(e){return g(e)===i},t.isStrictMode=function(e){return g(e)===s},t.isSuspense=function(e){return g(e)===f},t.isSuspenseList=function(e){return g(e)===m},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===i||e===s||e===f||e===m||e===y||"object"===typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===u||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=g},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),a=r(21085),s=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:a,parentSchema:s,it:i}=e,l=t.macro.call(i.self,a,s,i),d=c(r,o,l);!1!==i.opts.validateSchema&&i.self.validateSchema(l,!0);const u=r.name("valid");e.subschema({schema:l,schemaPath:n.nil,errSchemaPath:`${i.errSchemaPath}/${o}`,topSchemaRef:d,compositeRule:!0},u),e.pass(u,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var r;const{gen:l,keyword:d,schema:u,parentSchema:f,$data:m,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const p=!m&&t.compile?t.compile.call(h.self,u,f,h):t.validate,y=c(l,d,p),g=l.let("valid");function v(r=(t.async?n._`await `:n.nil)){const s=h.opts.passContext?o.default.this:o.default.self,i=!("compile"in t&&!m||!1===t.schema);l.assign(g,n._`${r}${(0,a.callValidateCode)(e,y,s,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 ${h.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,s.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,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const s=o.dependencies;if(null===s||void 0===s?void 0:s.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${s.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}}},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),a=r(7106),s=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++,!s.has(r)&&("object"==typeof e[r]&&(0,n.eachItem)(e[r],(e=>t+=l(e))),t===1/0))return 1/0}return t}function d(e,t="",r){!1!==r&&(t=m(t));const n=e.parse(t);return u(e,n)}function u(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=d,t._getFullPath=u;const f=/#\/?$/;function m(e){return e?e.replace(f,""):""}t.normalizeId=m,t.resolveUrl=function(e,t,r){return r=m(r),e.resolve(t,r)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,s=m(e[r]||t),i={"":s},c=d(n,s,!1),l={},u=new Set;return a(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const a=c+t;let s=i[o];function d(t){const r=this.opts.uriResolver.resolve;if(t=m(s?r(s,t):t),u.has(t))throw p(t);u.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?f(e,n.schema,t):t!==m(a)&&("#"===t[0]?(f(e,l[t],t),l[t]=e):this.refs[t]=a),t}function y(e){if("string"==typeof e){if(!h.test(e))throw new Error(`invalid anchor "${e}"`);d.call(this,`#${e}`)}}"string"==typeof e[r]&&(s=d.call(this,e[r])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),i[t]=s})),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`)}}},63338:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});const n=function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1};const o=function(e){return e!==e};const a=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1};const s=function(e,t,r){return t===t?a(e,t,r):n(e,o,r)}},63418:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(68729),o=r(61475),a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,o.default];t.default=a},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),a=r(62235),s=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:a,parentSchema:s,it:i}=e,l=t.macro.call(i.self,a,s,i),d=c(r,o,l);!1!==i.opts.validateSchema&&i.self.validateSchema(l,!0);const u=r.name("valid");e.subschema({schema:l,schemaPath:n.nil,errSchemaPath:`${i.errSchemaPath}/${o}`,topSchemaRef:d,compositeRule:!0},u),e.pass(u,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var r;const{gen:l,keyword:d,schema:u,parentSchema:f,$data:m,it:h}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,t);const p=!m&&t.compile?t.compile.call(h.self,u,f,h):t.validate,y=c(l,d,p),g=l.let("valid");function v(r=(t.async?n._`await `:n.nil)){const s=h.opts.passContext?o.default.this:o.default.self,i=!("compile"in t&&!m||!1===t.schema);l.assign(g,n._`${r}${(0,a.callValidateCode)(e,y,s,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 ${h.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,s.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,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const s=o.dependencies;if(null===s||void 0===s?void 0:s.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${s.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}}},64715:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),a=r(72482),s={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:s,schema:i,schemaCode:c,it:l}=e;if(!s&&0===i.length)throw new Error("enum must have non-empty array");const d=i.length>=l.opts.loopEnum;let u;const f=()=>null!==u&&void 0!==u?u:u=(0,o.useFunc)(t,a.default);let m;if(d||s)m=t.let("valid"),e.block$data(m,(function(){t.assign(m,!1),t.forOf("v",c,(e=>t.if(n._`${f()}(${r}, ${e})`,(()=>t.assign(m,!0).break()))))}));else{if(!Array.isArray(i))throw new Error("ajv implementation error");const e=t.const("vSchema",c);m=(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(m)}};t.default=s},65219:(t,r,n)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.resolveSchema=r.getCompilingSchema=r.resolveRef=r.compileSchema=r.SchemaEnv=void 0;const o=n(93789),a=n(99598),s=n(66735),i=n(63043),c=n(7083),l=n(69810);class d{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,i.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(t){const r=m.call(this,t);if(r)return r;const n=(0,i.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:c,lines:d}=this.opts.code,{ownProperties:u}=this.opts,f=new o.CodeGen(this.scope,{es5:c,lines:d,ownProperties:u});let h;t.$async&&(h=f.scopeValue("Error",{ref:a.default,code:o._`require("ajv/dist/runtime/validation_error").default`}));const p=f.scopeName("validate");t.validateName=p;const y={gen:f,allErrors:this.opts.allErrors,data:s.default.data,parentData:s.default.parentData,parentDataProperty:s.default.parentDataProperty,dataNames:[s.default.data],dataPathArr:[o.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:f.scopeValue("schema",!0===this.opts.code.source?{ref:t.schema,code:(0,o.stringify)(t.schema)}:{ref:t.schema}),validateName:p,ValidationError:h,schema:t.schema,schemaEnv:t,rootId:n,baseId:t.baseId||n,schemaPath:o.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:o._`""`,opts:this.opts,self:this};let g;try{this._compilations.add(t),(0,l.validateFunctionCode)(y),f.optimize(this.opts.code.optimize);const e=f.toString();g=`${f.scopeRefs(s.default.scope)}return ${e}`,this.opts.code.process&&(g=this.opts.code.process(g,t));const r=new Function(`${s.default.self}`,`${s.default.scope}`,g)(this,this.scope.get());if(this.scope.value(p,{ref:r}),r.errors=null,r.schema=t.schema,r.schemaEnv=t,t.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:p,validateCode:e,scopeValues:f._values}),this.opts.unevaluated){const{props:e,items:t}=y;r.evaluated={props:e instanceof o.Name?void 0:e,items:t instanceof o.Name?void 0:t,dynamicProps:e instanceof o.Name,dynamicItems:t instanceof o.Name},r.source&&(r.source.evaluated=(0,o.stringify)(r.evaluated))}return t.validate=r,t}catch(e){throw delete t.validate,delete t.validateName,g&&this.logger.error("Error compiling schema, function code:",g),e}finally{this._compilations.delete(t)}}function f(e){return(0,i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function m(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]||p.call(this,e,t)}function p(e,t){const r=this.opts.uriResolver.parse(t),n=(0,i._getFullPath)(this.opts.uriResolver,r);let o=(0,i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return g.call(this,r,e);const a=(0,i.normalizeId)(n),s=this.refs[a]||this.schemas[a];if("string"==typeof s){const t=p.call(this,e,s);if("object"!==typeof(null===t||void 0===t?void 0:t.schema))return;return g.call(this,r,t)}if("object"===typeof(null===s||void 0===s?void 0:s.schema)){if(s.validate||u.call(this,s),a===(0,i.normalizeId)(t)){const{schema:t}=s,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,i.resolveUrl)(this.opts.uriResolver,o,n)),new d({schema:t,schemaId:r,root:e,baseId:o})}return g.call(this,r,s)}}r.SchemaEnv=d,r.compileSchema=u,r.resolveRef=function(e,t,r){var n;r=(0,i.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=h.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:s}=this.opts;o&&(a=new d({schema:o,schemaId:s,root:e,baseId:t}))}return void 0!==a?e.refs[r]=f.call(this,a):void 0},r.getCompilingSchema=m,r.resolveSchema=p;const y=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(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,c.unescapeFragment)(l)];if(void 0===e)return;const n="object"===typeof(r=e)&&r[this.opts.schemaId];!y.has(l)&&n&&(t=(0,i.resolveUrl)(this.opts.uriResolver,t,n))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,c.schemaHasRulesButRef)(r,this.RULES)){const e=(0,i.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=p.call(this,n,e)}const{schemaId:s}=this.opts;return a=a||new d({schema:r,schemaId:s,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}},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},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},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:a,schemaPath:s,errSchemaPath:i,topSchemaRef:c}){if(void 0!==t&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const a=e.schema[t];return void 0===r?{schema:a,schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,o.escapeFragment)(r)}`}}if(void 0!==a){if(void 0===s||void 0===i||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:s,topSchemaRef:c,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:a,data:s,dataTypes:i,propertyName:c}){if(void 0!==s&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=t;if(void 0!==r){const{errorPath:s,dataPathArr:i,opts:c}=t;d(l.let("data",n._`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=n.str`${s}${(0,o.getErrorPath)(r,a,c.jsPropertySyntax)}`,e.parentDataProperty=n._`${r}`,e.dataPathArr=[...i,e.parentDataProperty]}if(void 0!==s){d(s instanceof n.Name?s:l.let("data",s,!0)),void 0!==c&&(e.propertyName=c)}function d(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:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r}},66401:(e,t,r)=>{"use strict";r.d(t,{A:()=>f});var n=r(14453),o=r(9137),a=r(25175),s=r(92049),i=r(38446),c=r(41200),l=r(97271),d=r(54749),u=Object.prototype.hasOwnProperty;const f=function(e){if(null==e)return!0;if((0,i.A)(e)&&((0,s.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,c.A)(e)||(0,d.A)(e)||(0,a.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(u.call(e,r))return!1;return!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(97193),a=r(40154),s=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:a}=e,i=function(e,t){return t?e.filter((e=>d.has(e)||"array"===t&&"array"===e)):[]}(t,a.coerceTypes),l=t.length>0&&!(0===i.length&&1===t.length&&(0,o.schemaHasRulesForType)(e,t[0]));if(l){const o=f(t,n,a.strictNumbers,c.Wrong);r.if(o,(()=>{i.length?function(e,t,r){const{gen:n,data:o,opts:a}=e,i=n.let("dataType",s._`typeof ${o}`),c=n.let("coerced",s._`undefined`);"array"===a.coerceTypes&&n.if(s._`${i} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>n.assign(o,s._`${o}[0]`).assign(i,s._`typeof ${o}`).if(f(t,o,a.strictNumbers),(()=>n.assign(c,o)))));n.if(s._`${c} !== undefined`);for(const s of r)(d.has(s)||"array"===s&&"array"===a.coerceTypes)&&l(s);function l(e){switch(e){case"string":return void n.elseIf(s._`${i} == "number" || ${i} == "boolean"`).assign(c,s._`"" + ${o}`).elseIf(s._`${o} === null`).assign(c,s._`""`);case"number":return void n.elseIf(s._`${i} == "boolean" || ${o} === null
|| (${i} == "string" && ${o} && ${o} == +${o})`).assign(c,s._`+${o}`);case"integer":return void n.elseIf(s._`${i} === "boolean" || ${o} === null
|| (${i} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(c,s._`+${o}`);case"boolean":return void n.elseIf(s._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(c,!1).elseIf(s._`${o} === "true" || ${o} === 1`).assign(c,!0);case"null":return n.elseIf(s._`${o} === "" || ${o} === 0 || ${o} === false`),void n.assign(c,null);case"array":n.elseIf(s._`${i} === "string" || ${i} === "number"
|| ${i} === "boolean" || ${o} === null`).assign(c,s._`[${o}]`)}}n.else(),h(e),n.endIf(),n.if(s._`${c} !== undefined`,(()=>{n.assign(o,c),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(s._`${t} !== undefined`,(()=>e.assign(s._`${t}[${r}]`,n)))}(e,c)}))}(e,t,i):h(e)}))}return l};const d=new Set(["string","number","integer","boolean","null"]);function u(e,t,r,n=c.Correct){const o=n===c.Correct?s.operators.EQ:s.operators.NEQ;let a;switch(e){case"null":return s._`${t} ${o} null`;case"array":a=s._`Array.isArray(${t})`;break;case"object":a=s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=i(s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=i();break;default:return s._`typeof ${t} ${o} ${e}`}return n===c.Correct?a:(0,s.not)(a);function i(e=s.nil){return(0,s.and)(s._`typeof ${t} == "number"`,e,r?s._`isFinite(${t})`:s.nil)}}function f(e,t,r,n){if(1===e.length)return u(e[0],t,r,n);let o;const a=(0,i.toHash)(e);if(a.array&&a.object){const e=s._`typeof ${t} != "object"`;o=a.null?e:s._`!${t} || ${e}`,delete a.null,delete a.array,delete a.object}else o=s.nil;a.number&&delete a.integer;for(const i in a)o=(0,s.and)(o,u(i,t,r,n));return o}t.checkDataType=u,t.checkDataTypes=f;const m={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function h(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,a.reportError)(t,m)}t.reportTypeError=h},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 a=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(o,t))return;const s=e.subschema({keyword:"allOf",schemaProp:r},a);e.ok(a),e.mergeEvaluated(s)}))}};t.default=o},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},67208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),a=r(62235),s=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,s.validateAdditionalItems)(e,i):e.ok((0,a.validateArray)(e)))}};t.default=i},67366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const n=r(93789),o=r(7083),a=r(21085),s={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,a.validateArray)(e))}};function i(e,t,r=e.schema){const{gen:a,parentSchema:s,data:i,keyword:c,it:l}=e;!function(e){const{opts:n,errSchemaPath:a}=l,s=r.length,i=s===e.minItems&&(s===e.maxItems||!1===e[t]);if(n.strictTuples&&!i){const e=`"${c}" is ${s}-tuple, but minItems or maxItems/${t} are not specified or different at path "${a}"`;(0,o.checkStrictMode)(l,e,n.strictTuples)}}(s),l.opts.unevaluated&&r.length&&!0!==l.items&&(l.items=o.mergeEvaluated.items(a,r.length,l.items));const d=a.name("valid"),u=a.const("len",n._`${i}.length`);r.forEach(((t,r)=>{(0,o.alwaysValidSchema)(l,t)||(a.if(n._`${u} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},d))),e.ok(d))}))}t.validateTuple=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},68182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(14018),o=r(26461),a=r(93789),s=new a.Name("fullFormats"),i=new a.Name("fastFormats"),c=(e,t={keywords:!0})=>{if(Array.isArray(t))return l(e,t,n.fullFormats,s),e;const[r,a]="fast"===t.mode?[n.fastFormats,i]:[n.fullFormats,s];return l(e,t.formats||n.formatNames,r,a),t.keywords&&o.default(e),e};function l(e,t,r,n){var o,s;null!==(o=(s=e.opts.code).formats)&&void 0!==o||(s.formats=a._`require("ajv-formats/dist/formats").${n}`);for(const a of t)e.addFormat(a,r[a])}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},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},69084:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(66318),o=r(37346),a=r(87465);const s=function(e,t,r){for(var s=-1,i=t.length,c={};++s<i;){var l=t[s],d=(0,n.A)(e,l);r(d,l)&&(0,o.A)(c,(0,a.A)(l,e),d)}return c}},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),a=r(65335),s=r(28840),i=r(75590),c=r(62657),l=r(41924),d=r(93789),u=r(66735),f=r(63043),m=r(7083),h=r(22796);function p({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,d._`${u.default.data}, ${u.default.valCxt}`,n.$async,(()=>{e.code(d._`"use strict"; ${y(r,o)}`),function(e,t){e.if(u.default.valCxt,(()=>{e.var(u.default.instancePath,d._`${u.default.valCxt}.${u.default.instancePath}`),e.var(u.default.parentData,d._`${u.default.valCxt}.${u.default.parentData}`),e.var(u.default.parentDataProperty,d._`${u.default.valCxt}.${u.default.parentDataProperty}`),e.var(u.default.rootData,d._`${u.default.valCxt}.${u.default.rootData}`),t.dynamicRef&&e.var(u.default.dynamicAnchors,d._`${u.default.valCxt}.${u.default.dynamicAnchors}`)}),(()=>{e.var(u.default.instancePath,d._`""`),e.var(u.default.parentData,d._`undefined`),e.var(u.default.parentDataProperty,d._`undefined`),e.var(u.default.rootData,u.default.data),t.dynamicRef&&e.var(u.default.dynamicAnchors,d._`{}`)}))}(e,o),e.code(a)})):e.func(t,d._`${u.default.data}, ${function(e){return d._`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${e.dynamicRef?d._`, ${u.default.dynamicAnchors}={}`:d.nil}}={}`}(o)}`,n.$async,(()=>e.code(y(r,o)).code(a)))}function y(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?d._`/*# sourceURL=${r} */`:d.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&&_(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 a=n.const("_errs",u.default.errors);w(e,a),n.var(t,d._`${a} === ${u.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,m.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,m.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function w(e,t){if(e.opts.jtd)return S(e,[],!1,t);const r=(0,o.getSchemaTypes)(e.schema);S(e,r,!(0,o.coerceAndCheckDataType)(e,r),t)}function _({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(d._`${u.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=d.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(d._`${u.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function S(e,t,r,n){const{gen:o,schema:i,data:c,allErrors:l,opts:f,self:h}=e,{RULES:p}=h;function y(m){(0,a.shouldUseGroup)(i,m)&&(m.type?(o.if((0,s.checkDataType)(m.type,c,f.strictNumbers)),A(e,m),1===t.length&&t[0]===m.type&&r&&(o.else(),(0,s.reportTypeError)(e)),o.endIf()):A(e,m),l||o.if(d._`${u.default.errors} === ${n||0}`))}!i.$ref||!f.ignoreKeywordsWithRef&&(0,m.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,a.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 A(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,a.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,m.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&&_(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,m.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(u.default.vErrors,null),n.let(u.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",d._`${r}.evaluated`),t.if(d._`${e.evaluated}.dynamicProps`,(()=>t.assign(d._`${e.evaluated}.props`,d._`undefined`))),t.if(d._`${e.evaluated}.dynamicItems`,(()=>t.assign(d._`${e.evaluated}.items`,d._`undefined`)))}(e),w(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(d._`${u.default.errors} === 0`,(()=>t.return(u.default.data)),(()=>t.throw(d._`new ${o}(${u.default.vErrors})`))):(t.assign(d._`${n}.errors`,u.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof d.Name&&e.assign(d._`${t}.props`,r);n instanceof d.Name&&e.assign(d._`${t}.items`,n)}(e),t.return(d._`${u.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,m.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",u.default.errors))}result(e,t,r){this.failResult((0,d.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,d.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(d._`${t} !== undefined && (${(0,d.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?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.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=d.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=d.nil,t=d.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,d.or)(d._`${n} === undefined`,t)),e!==d.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==d.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:o}=this;return(0,d.or)(function(){if(r.length){if(!(t instanceof d.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return d._`${(0,s.checkDataTypes)(e,t,o.opts.strictNumbers,s.DataType.Wrong)}`}return d.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return d._`!${r}(${t})`}return d.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=m.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=m.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,d.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,a;if(""===e)return u.default.rootData;if("/"===e[0]){if(!O.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=u.default.rootData}else{const s=N.exec(e);if(!s)throw new Error(`Invalid JSON-pointer: ${e}`);const i=+s[1];if(o=s[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(a=r[t-i],!o)return a}let s=a;const i=o.split("/");for(const l of i)l&&(a=d._`${a}${(0,d.getProperty)((0,m.unescapeJsonPointer)(l))}`,s=d._`${s} && ${a}`);return s;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=C},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},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},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),a=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 s={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:s}=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 d=(0,a.propertyInData)(r,o,c,s.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(", ")}),s.allErrors?r.if(d,(()=>{for(const t of l)(0,a.checkReportMissingProp)(e,t)})):(r.if(n._`${d} && (${(0,a.checkMissingProp)(e,l,i)})`),(0,a.reportMissingProp)(e,i),r.else())}}function c(e,t=e.schema){const{gen:r,data:n,keyword:s,it:i}=e,c=r.name("valid");for(const l in t)(0,o.alwaysValidSchema)(i,t[l])||(r.if((0,a.propertyInData)(r,n,l,i.opts.ownProperties),(()=>{const t=e.subschema({keyword:s,schemaProp:l},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,!0))),e.ok(c))}t.validatePropertyDeps=i,t.validateSchemaDeps=c,t.default=s},71787:(t,r,n)=>{"use strict";function o(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 a(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),o(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}n.d(r,{Rr:()=>i,Xo:()=>d,qC:()=>u,De:()=>x,s0:()=>k,uh:()=>f,Xq:()=>Gn,s2:()=>p,Ny:()=>Br,K0:()=>y,ZN:()=>v,oS:()=>$,Ru:()=>b,s1:()=>_,jY:()=>S,Es:()=>E,FF:()=>I,at:()=>D,xh:()=>j,Zl:()=>Fn,AK:()=>F,ce:()=>T,Hh:()=>a,eG:()=>_n,i:()=>s,aA:()=>An,Xl:()=>z,JF:()=>q,BP:()=>Dr,c2:()=>G,IR:()=>gn,qe:()=>Rr,Uw:()=>Fr,Yu:()=>Ur,BH:()=>Mr,L4:()=>Vr,Od:()=>Tr,rD:()=>vn,$c:()=>$n,kp:()=>Qr,NV:()=>Er,KU:()=>Et,ti:()=>tn,_I:()=>Nt,Bj:()=>nn,$F:()=>on,cq:()=>sn,$R:()=>V,Bt:()=>fn,Lw:()=>pn,$K:()=>hn,wM:()=>mn,F5:()=>bn,ar:()=>Pr,nQ:()=>dr,Uc:()=>En,Gv:()=>o,w:()=>Pn,z$:()=>xn,a6:()=>kn,rL:()=>mr,dW:()=>Ct,pk:()=>Sn,C1:()=>jn,f9:()=>vr,UI:()=>On,l1:()=>Nn,F9:()=>In,II:()=>Rn,EH:()=>wn,SL:()=>Tn,MD:()=>Un,Yg:()=>Vn,fV:()=>zn,qJ:()=>Wn,lB:()=>Hn,uC:()=>Xn,v4:()=>Qn,k6:()=>eo,vh:()=>to});const i="__additional_property",c="additionalProperties",l="allOf",d="anyOf",u="const",f="default",m="dependencies",h="enum",p="__errors",y="$id",g="if",v="items",$="$name",b="oneOf",w="patternProperties",_="properties",S="readonly",A="required",j="submitButtonOptions",E="$ref",P="$schema",x="root",k="_",O=["discriminator","propertyName"],N="formContext",C="layoutGridLookupMap",I="__rjsf_additionalProperties",D="__rjsf_rootSchema",R="ui:widget",T="ui:options",F="ui:globalOptions",M="https://json-schema.org/draft/2019-09/schema",U="https://json-schema.org/draft/2020-12/schema";function V(e={},t={}){return e?Object.keys(e).filter((e=>0===e.indexOf("ui:"))).reduce(((t,r)=>{const n=e[r];return r===R&&o(n)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),t):r===T&&o(n)?{...t,...n}:{...t,[r.substring(3)]:n}}),{...t}):{...t}}function z(e,t={},r){if(!e.additionalProperties&&!e.patternProperties)return!1;const{expandable:n=!0}=V(t);return!1===n?n:void 0===e.maxProperties||!r||Object.keys(r).length<e.maxProperties}var L=n(34963);function q(e){const t={[p]:[],addError(e){this[p].push(e)}};if(Array.isArray(e))return e.reduce(((e,t,r)=>({...e,[r]:q(t)})),t);if((0,L.A)(e)){const r=e;return Object.keys(r).reduce(((e,t)=>({...e,[t]:q(r[t])})),t)}return t}var B=n(22955);const K=function(e,t,r){var n=(r="function"==typeof r?r:void 0)?r(e,t):void 0;return void 0===n?(0,B.A)(e,t,void 0,r):!!n};function G(e,t){return K(e,t,((e,t)=>{if("function"===typeof e&&"function"===typeof t)return!0}))}var W=n(77500),H=n(39622),J=n(46996),Z=n(35704),Y=n(59520),X=n(99922),Q=n(77127),ee=4294967295,te=Math.min;const re=function(e,t){if((e=(0,Q.A)(e))<1||e>9007199254740991)return[];var r=ee,n=te(e,ee);t=(0,X.A)(t),e-=ee;for(var o=(0,Y.A)(n,t);++r<e;)t(r);return o};var ne=n(72641),oe=n(59712),ae=n(79841),se=n(8471),ie=n(15647),ce=n(92049),le=n(41200),de=n(89610),ue=n(23149),fe=n(54749);const me=function(e,t,r){var n=(0,ce.A)(e),o=n||(0,le.A)(e)||(0,fe.A)(e);if(t=(0,se.A)(t,4),null==r){var a=e&&e.constructor;r=o?n?new a:[]:(0,ue.A)(e)&&(0,de.A)(a)?(0,oe.A)((0,ie.A)(e)):{}}return(o?ne.A:ae.A)(e,(function(e,n,o){return t(r,e,n,o)})),r};var he=n(4334),pe=n(87671),ye=1/0;const ge=function(e){return(null==e?0:e.length)?(0,pe.A)(e,ye):[]};var ve=n(8300),$e=n(83149),be=n(87809),we=n(64099),_e=n(39857),Se=n(42302),Ae=n(29959);const je=_e.A&&1/(0,Ae.A)(new _e.A([,-0]))[1]==1/0?function(e){return new _e.A(e)}:Se.A;const Ee=function(e,t,r){var n=-1,o=$e.A,a=e.length,s=!0,i=[],c=i;if(r)s=!1,o=be.A;else if(a>=200){var l=t?null:je(e);if(l)return(0,Ae.A)(l);s=!1,o=we.A,c=new ve.A}else c=t?[]:i;e:for(;++n<a;){var d=e[n],u=t?t(d):d;if(d=r||0!==d?d:0,s&&u===u){for(var f=c.length;f--;)if(c[f]===u)continue e;t&&c.push(u),i.push(d)}else o(c,u,r)||(c!==i&&c.push(u),i.push(d))}return i};const Pe=function(e){return e&&e.length?Ee(e):[]};var xe=n(66401);const ke=Object.prototype;function Oe(e){for(const t in e)if(ke.hasOwnProperty.call(e,t))return!1;return!0}new Set(["array","boolean","integer","null","number","object","string"]);const Ne=["$defs","definitions","properties","patternProperties","dependencies"],Ce=(new Set(Ne),["items","allOf","oneOf","anyOf"]),Ie=(new Set(Ce),["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"]);new Set(Ie);function De(e){return"object"===typeof e}function Re(e){return De(e)?Oe(e):!0===e}function Te(e,t){return e<t?-1:e>t?1:0}function Fe(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 a=0;a<n;a++)o.add(t[a]);return Array.from(o)}function Me(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 Ue(e){return 0===e.length}function Ve(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 ze(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 a=0;a<n;a++){const n=r[a];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 a=0;for(let t=1;t<n;t++)0!==e(o[a],o[t])&&++a!==t&&(o[a]=o[t]);return o.length=a+1,o}}const Le=function(e,t){return r=>{if(e.has(r))return e.get(r);const n=t(r);return e.set(r,n),n}},qe=()=>0,Be=e=>void 0===e,Ke=e=>"object"!==typeof e,Ge={boolean:0,number:1,string:2};function We(e,t){const r=typeof e,n=typeof t;return r===n?Te(e,t):Ge[r]-Ge[n]}function He(e,t,r=qe){return(n,o)=>e(n)?e(o)?r(n,o):-1:e(o)?1:t(n,o)}function Je(e){return He(Be,e)}function Ze(e,t){return He((t=>void 0===t||e(t)),t)}function Ye(e,t){return He(Array.isArray,e,t)}const Xe=Je(Te),Qe=Ze((e=>0===e),((e,t)=>e-t));function et(e){return e}const tt=(e,t)=>e?tt(t%e,e):t;function rt(e,t){return e===t?e:`^(?=.*(?:${e}))(?=.*(?:${t})).*$`}function*nt(e,t,r){const n=e.length,o=t.length;if(n>0&&o>0)for(let a=0;a<n;a++){const n=e[a];for(let e=0;e<o;e++)yield r(n,t[e])}}function ot(e,t){return e||t}function at(e){return(t,r)=>{const n={...t},o=Object.keys(r),a=o.length;for(let s=0;s<a;s++){const a=o[s];n[a]=void 0===t[a]?r[a]:e(t[a],r[a])}return n}}function st(e,t,r){void 0===r||Re(r)?delete e[t]:e[t]=r}const it=["properties","patternProperties","additionalProperties"];function ct(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 dt(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 a=n.schema;if(!1===a)return!0;e.push(a)}return!1}const ut=["items","additionalItems"],ft=["if","then","else"];function mt(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 pt(e,t,r){return[e,t,r]}const yt=[pt("minimum","maximum",(e=>e.maximum>=e.minimum)),pt("exclusiveMinimum","maximum",(e=>e.maximum>e.exclusiveMinimum)),pt("minimum","exclusiveMaximum",(e=>e.exclusiveMaximum>e.minimum)),pt("exclusiveMinimum","exclusiveMaximum",(e=>e.exclusiveMaximum>e.exclusiveMinimum)),pt("minLength","maxLength",(e=>e.maxLength>=e.minLength)),pt("minItems","maxItems",(e=>e.maxItems>=e.minItems)),pt("minProperties","maxProperties",(e=>e.maxProperties>=e.minProperties))];var gt=n(56239),vt=n(54930),$t=n(48343);function bt(e,t){if(y in e&&$t.equal(e[y],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const e of r)if((0,ue.A)(e)){const r=bt(e,t);if(void 0!==r)return r}}else if((0,ue.A)(r)){const e=bt(r,t);if(void 0!==e)return e}}function wt(e,t){const r=(0,W.A)(e,y,t);E in e&&(e={...e,[E]:$t.resolve(r,e[E])});for(const[n,o]of Object.entries(e))Array.isArray(o)?e={...e,[n]:o.map((e=>(0,ue.A)(e)?wt(e,r):e))}:(0,ue.A)(o)&&(e={...e,[n]:wt(o,r)});return e}function _t(e,t){const r=t[e];return[(0,vt.A)(t,[e]),r]}function St(e,t={},r=[],n=(0,W.A)(t,[y])){const o=e||"";let a;if(o.startsWith("#")){const e=decodeURIComponent(o.substring(1));void 0===n||y in t&&t[y]===n?a=gt.get(t,e):t[P]===U&&(a=bt(t,n.replace(/\/$/,"")),void 0!==a&&(a=gt.get(a,e)))}else if(t[P]===U){const e=n?$t.resolve(n,o):o,[r,...s]=e.replace(/#\/?$/,"").split("#");a=bt(t,r.replace(/\/$/,"")),void 0!==a&&(n=a[y],(0,xe.A)(s)||(a=gt.get(a,decodeURIComponent(s.join("#")))))}if(void 0===a)throw new Error(`Could not find a definition for ${e}.`);const s=a[E];if(s){if(r.includes(s)){if(1===r.length)throw new Error(`Definition for ${e} is a circular reference`);const[t,...n]=r,a=[...n,o,t].join(" -> ");throw new Error(`Definition for ${t} contains a circular reference through ${a}`)}const[i,c]=_t(E,a),d=St(c,t,[...r,o],n);return Object.keys(i).length>0?t[P]===M||t[P]===U?{[l]:[i,d]}:{...i,...d}:d}return a}function At(e,t={},r=(0,W.A)(t,[y])){return St(e,t,[],r)}var jt=n(9703);function Et(e){let t;const r=(0,W.A)(e,O);return(0,jt.A)(r)?t=r:void 0!==r&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function Pt(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"}var xt=n(24326),kt=n(53533);const Ot=(0,xt.A)((function(e){return Ee((0,pe.A)(e,1,kt.A,!0))}));function Nt(e){let{type:t}=e;return!t&&e.const?Pt(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 Ct(e,t){const r=Object.assign({},e);return Object.keys(t).reduce(((r,n)=>{const a=e?e[n]:{},s=t[n];return e&&n in e&&o(s)?r[n]=Ct(a,s):e&&t&&("object"===Nt(e)||"object"===Nt(t))&&n===A&&Array.isArray(a)&&Array.isArray(s)?r[n]=Ot(a,s):r[n]=s,r}),r)}var It=n(2383),Dt=n(53098);const Rt=function(e){return"number"==typeof e||(0,Dt.A)(e)&&"[object Number]"==(0,It.A)(e)};function Tt(e,t,r){var n;if(e&&r){const o=(0,W.A)(e,r);if(void 0===o)return;for(let e=0;e<t.length;e++){const a=t[e],s=(0,W.A)(a,[_,r],{});if("object"!==s.type&&"array"!==s.type){if(s.const===o)return e;if(null===(n=s.enum)||void 0===n?void 0:n.includes(o))return e}}}}function Ft(e,t,r,n,o){if(void 0===t)return 0;const a=Tt(t,r,o);if(Rt(a))return a;for(let s=0;s<r.length;s++){const a=r[s];if(o&&(0,H.A)(a,[_,o])){const r=(0,W.A)(t,o),i=(0,W.A)(a,[_,o],{});if(e.isValid(i,r,n))return s}else if(a[_]){const r={anyOf:Object.keys(a[_]).map((e=>({required:[e]})))};let o;if(a.anyOf){const{...e}=a;e.allOf?e.allOf=e.allOf.slice():e.allOf=[],e.allOf.push(r),o=e}else o=Object.assign({},a,r);if(delete o.required,e.isValid(o,t,n))return s}else if(e.isValid(a,t,n))return s}return 0}function Mt(e,t,r={},n,o,a=!1){return Ht(e,t,r,n,void 0,void 0,o,a)[0]}function Ut(e){return e.reduce(((e,t)=>t.length>1?t.flatMap((t=>re(e.length,(r=>[...e[r]].concat(t))))):(e.forEach((e=>e.push(t[0]))),e)),[[]])}function Vt(e,t){return Object.keys(e.patternProperties).filter((e=>RegExp(e).test(t))).reduce(((t,r)=>((0,Z.A)(t,[r],e.patternProperties[r]),t)),{})}function zt(e,t,r,n,o,a,s,i){const c=Lt(t,r,o,void 0,i);return c!==t?Ht(e,c,r,a,n,o,s,i):[t]}function Lt(e,t,r,n,a){if(!o(e))return e;let s=e;if(E in s){const{$ref:e,...o}=s;if(r.includes(e))return s;r.push(e);s={...At(e,t,n),...o},y in s&&(n=s[y])}if(_ in s){const e=[],o=me(s[_],((o,s,i)=>{const c=[...r];o[i]=Lt(s,t,c,n,a),e.push(c)}),{});(0,he.A)(r,Pe(ge(e))),s={...s,[_]:o}}if(v in s&&!Array.isArray(s.items)&&"boolean"!==typeof s.items&&(s={...s,items:Lt(s.items,t,r,n,a)}),a){let o,i;d in e&&Array.isArray(e[d])?(o=d,i=s[d]):b in e&&Array.isArray(e[b])&&(o=b,i=s[b]),o&&i&&(s={...s,[o]:i.map((e=>Lt(e,t,r,n,a)))})}return G(e,s)?e:s}const{compareSchemaDefinitions:qt,compareSchemaValues:Bt}=function({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=Le(t,(e=>Object.keys(e).sort()));function n(e){return(t,n)=>{const o=r(t),a=r(n),s=Math.min(o.length,a.length);for(let e=0;e<s;e++){const t=Te(o[e],a[e]);if(0!==t)return t}if(o.length!==a.length)return o.length-a.length;for(let r=0;r<s;r++){const a=o[r],s=e(t[a],n[a]);if(0!==s)return s}return 0}}function o(t){const r=Ve(t),n=Le(e,ze(t,{threshold:0}));return(e,t)=>r(n(e),n(t))}const a=o(Te);function s(e,t){if(De(e)){if(De(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),a=t.length;for(let s=0;s<a;s++){const r=t[s];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 a=(h[n]??i)(e[n],t[n]);if(0!==a)return a}return 0}return!0===t&&Oe(e)?0:1}return De(t)?!0===e&&Oe(t)?0:-1:Te(e,t)}const i=Je(l),c=He(Ke,Ye(n(i),Ve(l)),We);function l(e,t){return null===e?-1:null===t?1:c(e,t)}const d=Je(s),u=Ze(Oe,n(d)),f=Je(o(s)),m=Ze(Re,s),h={$id:Xe,$comment:Xe,$defs:u,$ref:Xe,$schema:Xe,const:i,contains:d,contentEncoding:Xe,contentMediaType:Xe,default:i,definitions:u,description:Xe,else:d,examples:i,exclusiveMaximum:Xe,exclusiveMinimum:Xe,format:Xe,if:d,maximum:Xe,maxItems:Xe,maxLength:Xe,maxProperties:Xe,minimum:Xe,multipleOf:Xe,not:d,pattern:Xe,propertyNames:d,readOnly:Xe,then:d,title:Xe,writeOnly:Xe,uniqueItems:Ze((e=>!1===e),qe),minLength:Qe,minItems:Qe,minProperties:Qe,required:Ze(Ue,a),enum:Ze(Ue,o(l)),type:Je(((e,t)=>{const r=Array.isArray(e),n=Array.isArray(t);return r||n?a(r?e:[e],n?t:[t]):Te(e,t)})),items:Ze((e=>!Array.isArray(e)&&Re(e)),Ye(s,Ve(s))),anyOf:f,allOf:f,oneOf:f,properties:u,patternProperties:u,additionalProperties:m,additionalItems:m,dependencies:Ze(Oe,n(Je(Ye(s,a))))};return{compareSchemaValues:l,compareSchemaDefinitions:s}}(),{mergeArrayOfSchemaDefinitions:Kt}=function({mergePatterns:e=rt,isSubRegExp:t=Object.is,intersectJson:r=Me,deduplicateJsonSchemaDef:n=et,defaultMerger:o=et,assigners:a=[],checks:s=yt,mergers:i}={}){function c(e){const t=e.length;let r=e[0];for(let n=1;n<t;n++){const t=h(r,e[n]);if(!1===t)return!1;Re(t)||(r=t)}return r}function l(e,t,r,n,o,a,s){if(e.length=0,!1===r)return!1;e.push(r);if(void 0!==o){if(!1===o)return!1;e.push(o)}if(dt(e,t,a))return!1;const i=e.length<2;if(!1===s){if(i)return;if(dt(e,t,n))return!1}else i&&void 0!==s&&e.push(s);return 1===e.length?e[0]:c(e)}function d(e,t,r,n,o,a){const s=r.length;if(s>0&&!1!==o)if(a)Object.assign(e,t);else for(let i=0;i<s;i++){const a=r[i];n.has(a)||(e[a]=h(t[a],o))}return e}function u(e,t){return n(Array.from(nt(e,t,h)))}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}([[it,(r,{properties:n={},patternProperties:o,additionalProperties:a=!0},{properties:s={},patternProperties:i,additionalProperties:c=!0})=>{const u=Re(a),f=Re(c);if(u&&f)return st(r,"properties",p(n,s)),st(r,"patternProperties",o&&i?p(o,i):o??i),delete r.additionalProperties,r;st(r,"additionalProperties",h(a,c));const m={},y=Object.keys(n),g=y.length,[v,$]=o?ct(o):lt,[b,w]=i?ct(i):lt,_=[],S=new Set,A=f?void 0:c;for(let e=0;e<g;e++){const t=y[e];S.add(t);const r=l(_,t,n[t],v,s[t],b,A);void 0!==r&&(m[t]=r)}const j=Object.keys(s),E=j.length,P=u?void 0:a;for(let e=0;e<E;e++){const t=j[e];if(S.has(t))continue;const r=l(_,t,s[t],b,void 0,v,P);void 0!==r&&(m[t]=r)}st(r,"properties",m);let x={};const k=new Set;if($.length>0&&w.length>0){const r=nt($,w,((r,n)=>{t(r,n)&&k.add(r),t(n,r)&&k.add(n),x[e(r,n)]=h(o[r],i[n])}));for(;!r.next().done;);}return x=d(x,o,$,k,c,f),x=d(x,i,w,k,a,u),st(r,"patternProperties",x),r}],[ut,(e,{items:t=[],additionalItems:r},{items:n=[],additionalItems:o})=>{const a=Array.isArray(t),s=Array.isArray(n),i=[];if(e.items=i,a&&s){const[a,s,c]=t.length<n.length?[t.length,r,n]:[n.length,o,t];let l=0;for(;l<a;l++)i.push(h(t[l],n[l]));if(!1===s)e.additionalItems=!1;else{const t=void 0===s||Re(s);for(;l<c.length;l++)i.push(t?c[l]:h(c[l],s));st(e,"additionalItems",void 0!==r&&void 0!==o?h(r,o):r??o)}}else if(a||s){const[s,c,l]=a?[t,n,r]:[n,t,o];st(e,"additionalItems",l&&h(l,c));for(let e=0;e<s.length;e++)i.push(h(s[e],c))}else delete e.additionalItems,e.items=h(t,n);return e}],[ft,(e,t,r)=>{mt(e,t);const n=mt({},r);return void 0===e.allOf?e.allOf=[n]:e.allOf=e.allOf.concat(n),e}],...a]),m=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}(s);function h(e,t){if(!1===e||!1===t)return!1;if(Re(e))return!!Re(t)||t;if(Re(t))return e;let r={...e};const n=new Set,a=new Set,s=Object.keys(t),i=s.length;for(let c=0;c<i;c++){const i=s[c],l=t[i];if(void 0===l)continue;const d=m.get(i);if(void 0!==d){const t=d.length;for(let r=0;r<t;r++){const t=d[r];void 0!==e[t.oppositeKey]&&a.add(t.check)}}const u=e[i];if(void 0===u){r[i]=l;continue}const h=f.get(i);if(h){n.add(h);continue}const p=y[i]??o;r[i]=p(u,l)}for(const o of n)r=o(r,e,t);for(const o of a)o(r);return r}const p=at(h),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 nt(e,t,ht))void 0!==r&&o.add(r);else{const n=r?e:t,a=r?t:e,s=n.length;for(let e=0;e<s;e++){const t=ht(a,n[e]);void 0!==t&&o.add(t)}}const a=o.size;if(1===a)return o.values().next().value;if(a>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:ot,writeOnly:ot,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:u,oneOf:u,allOf:(e,t)=>n(e.concat(t)),propertyNames:h,contains:h,dependencies:at(((e,t)=>Array.isArray(e)?Array.isArray(t)?Fe(e,t):h(t,{required:e}):Array.isArray(t)?h(e,{required:t}):h(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 Fe(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)/tt(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:ot,required:Fe,...i};return{mergeSchemaDefinitions:h,mergeArrayOfSchemaDefinitions:c}}({intersectJson:(Gt=Bt,(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 a=n;n=o,o=a}const a=[...e].sort(Gt),s=[...t].sort(Gt);let i=0,c=0;for(;i<n&&c<o;){const e=Gt(a[i],s[c]);0===e?(0!==r.length&&0===Gt(r[r.length-1],a[i])||r.push(a[i]),i++,c++):e<0?i++:c++}return r}),deduplicateJsonSchemaDef:ze(qt)});var Gt;const Wt=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))}(Kt);function Ht(t,r,n,a,s=!1,u=[],f,h){if(!o(r))return[{}];const p=function(e,t,r,n,o,a,s,i){const c=zt(e,t,r,n,o,a,s,i);if(c.length>1||c[0]!==t)return c;if(m in t)return Jt(e,t,r,n,o,a,s).flatMap((t=>Ht(e,t,r,a,n,o,s)));if(l in t&&Array.isArray(t[l]))return Ut(t.allOf.map((t=>Ht(e,t,r,a,n,o,s)))).map((e=>({...t,allOf:e})));return[t]}(t,r,n,s,u,a,f,h);return p.flatMap((r=>{var m;let h=r;if(g in h)return function(e,t,r,n,o,a,s){const{if:i,then:c,else:l,...d}=t,u=e.isValid(i,a||{},r);let f=[d],m=[];if(n)c&&"boolean"!==typeof c&&(m=m.concat(Ht(e,c,r,a,n,o,s))),l&&"boolean"!==typeof l&&(m=m.concat(Ht(e,l,r,a,n,o,s)));else{const t=u?c:l;t&&"boolean"!==typeof t&&(m=m.concat(Ht(e,t,r,a,n,o,s)))}return m.length&&(f=m.map((e=>Ct(d,e)))),f.flatMap((t=>Ht(e,t,r,a,n,o,s)))}(t,h,n,s,u,a,f);if(l in h){if(s){const{allOf:e,...t}=h;return[...e,t]}try{const e=[],t=[];null===(m=h.allOf)||void 0===m||m.forEach((r=>{"object"===typeof r&&r.contains?e.push(r):t.push(r)})),e.length&&(h={...h,allOf:t}),h=f?f(h):function(e){return Wt(e)}(h),e.length&&(h.allOf=e)}catch(e){console.warn("could not merge subschemas in allOf:\n",e);const{allOf:r,...n}=h;return n}}_ in h&&w in h&&(h=Object.keys(h.properties).reduce(((e,r)=>{const o=Vt(e,r);return(0,xe.A)(o)||(e.properties[r]=Mt(t,{allOf:[e.properties[r],...Object.values(o)]},n,(0,W.A)(a,[r]),f)),e}),{...h,properties:{...h.properties}}));return w in h||c in h&&!1!==h.additionalProperties?function(e,t,r,n,a){const s={...t,properties:{...t.properties}},u=n&&o(n)?n:{};return Object.keys(u).forEach((t=>{if(!(t in s.properties)){if(w in s){const n=Vt(s,t);if(!(0,xe.A)(n))return s.properties[t]=Mt(e,{[l]:Object.values(n)},r,(0,W.A)(u,[t]),a),void(0,Z.A)(s.properties,[t,i],!0)}if(c in s&&!1!==s.additionalProperties){let n;n="boolean"!==typeof s.additionalProperties?E in s.additionalProperties?Mt(e,{[E]:(0,W.A)(s.additionalProperties,[E])},r,u,a):"type"in s.additionalProperties?{...s.additionalProperties}:d in s.additionalProperties||b in s.additionalProperties?{type:"object",...s.additionalProperties}:{type:Pt((0,W.A)(u,[t]))}:{type:Pt((0,W.A)(u,[t]))},s.properties[t]=n,(0,Z.A)(s.properties,[t,i],!0)}else s.properties[t]={type:"null"},(0,Z.A)(s.properties,[t,i],!0)}})),s}(t,h,n,a,f):h}))}function Jt(e,t,r,n,o,a,s){const{dependencies:i,...c}=t,l=function(e,t,r,n,o){let a;const{oneOf:s,anyOf:i,...c}=t;if(Array.isArray(s)?a=s:Array.isArray(i)&&(a=i),a){const s=void 0===o&&n?{}:o,i=Et(t);a=a.map((e=>Lt(e,r,[])));const l=Ft(e,s,a,r,i);if(n)return a.map((e=>Ct(c,e)));t=Ct(c,a[l])}return[t]}(e,c,r,n,a);return l.flatMap((t=>Zt(e,i,t,r,n,o,a,s)))}function Zt(e,t,r,n,a,s,i,c){let l=[r];for(const d in t){if(!a&&void 0===(0,W.A)(i,[d]))continue;if(r.properties&&!(d in r.properties))continue;const[u,f]=_t(d,t);return Array.isArray(f)?l[0]=Yt(r,f):o(f)&&(l=Xt(e,r,n,d,f,a,s,i,c)),l.flatMap((t=>Zt(e,u,t,n,a,s,i,c)))}return l}function Yt(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 Xt(e,t,r,n,o,a,s,i,c){return Ht(e,o,r,i,a,s,c).flatMap((o=>{const{oneOf:l,...d}=o;if(t=Ct(t,d),void 0===l)return t;return Ut(l.map((t=>"boolean"!==typeof t&&E in t?zt(e,t,r,a,s,i):[t]))).flatMap((o=>function(e,t,r,n,o,a,s,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)||a}return!1}));if(!a&&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,[d]=_t(n,l.properties),u={...l,properties:d};return Ht(e,u,r,i,a,s,c).map((e=>Ct(t,e)))}))}(e,t,r,n,o,a,s,i,c)))}))}function Qt(e,t,r,n,o,a={},s){if(Array.isArray(r[o])){const i=Et(r)||n,c=r[o].map((r=>Mt(e,r,t,a,s))),l=(0,W.A)(a,i);if(void 0!==l)return c.find((e=>(0,J.A)((0,W.A)(e,[_,i,f],(0,W.A)(e,[_,i,u])),l)))}}function er(e,t,r,n,o){let a=r;if((0,H.A)(r,E)&&(a=Mt(e,r,t,void 0,o)),(0,xe.A)(n))return a;const s=Array.isArray(n)?n:n.split("."),[i,...c]=s;return i&&(0,H.A)(a,i)?(a=(0,W.A)(a,i),er(e,t,a,c,o)):void 0}function tr(e,t,r,n,o,a){const s=er(e,t,r,n,a);return void 0===s?o:s}const rr={title:"!@#$_UNKNOWN_$#@!"};const nr=function(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r};var or=n(94288);const ar=function(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r};const sr=function(e,t,r){var n=(0,ce.A)(e)?nr:ar,o=arguments.length<3;return n(e,(0,se.A)(t,4),r,o,or.A)},ir={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function cr(e,t,r,n,o){let a=0;return r&&((0,ue.A)(r.properties)?a+=sr(r.properties,((r,a,s)=>{const i=(0,W.A)(n,s);if("boolean"===typeof a)return r;if((0,H.A)(a,E)){const n=Mt(e,a,t,i,o);return r+cr(e,t,n,i||{},o)}if(((0,H.A)(a,b)||(0,H.A)(a,d))&&i){const n=(0,H.A)(a,b)?b:d,s=Et(a);return r+lr(e,t,i,(0,W.A)(a,n),-1,s,o)}if("object"===a.type)return(0,ue.A)(i)&&(r+=1),r+cr(e,t,a,i,o);if(a.type===Pt(i)){let e=r+1;return a.default?e+=i===a.default?1:-1:a.const&&(e+=i===a.const?1:-1),e}return r}),0):(0,jt.A)(r.type)&&r.type===Pt(n)&&(a+=1)),a}function lr(e,t,r,n,o=-1,a,s){const i=n.map((e=>Lt(e,t,[]))),c=Tt(r,n,a);if(Rt(c))return c;const l=i.reduce(((n,o,s)=>(1===Ft(e,r,[ir,o],t,a)&&n.push(s),n)),[]);if(1===l.length)return l[0];l.length||re(i.length,(e=>l.push(e)));const d=new Set,{bestIndex:u}=l.reduce(((n,o)=>{const{bestScore:a}=n,c=i[o],l=cr(e,t,c,r,s);return d.add(l),l>a?{bestIndex:o,bestScore:l}:n}),{bestIndex:o,bestScore:0});return 1===d.size&&o>=0?o:u}function dr(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>o(e)))}const ur=function(e){return null==e};function fr(e,t,r=!1,n=!1,a=!1){if(Array.isArray(t)){const o=Array.isArray(e)?e:[],s=a?t:o,i=(a?o:t).map(((e,i)=>void 0!==s[i]?fr(o[i],t[i],r,n,a):e));return(r||a)&&i.length<s.length&&i.push(...s.slice(i.length)),i}if(o(t)){const s=Object.assign({},e);return Object.keys(t).reduce(((s,i)=>{var c;const l=(0,W.A)(t,i),d=o(e)&&i in e,u=i in t,f=null!==(c=(0,W.A)(e,i))&&void 0!==c?c:{},m=d&&Object.entries(f).some((([,e])=>o(e))),h=d&&o((0,W.A)(e,i)),p=u&&o(l);return h&&p&&!m?(s[i]={...(0,W.A)(e,i),...l},s):(s[i]=fr((0,W.A)(e,i),l,r,n,a&&(d||!u)),s)}),s)}return n&&(void 0!==e&&ur(t)||"number"===typeof t&&isNaN(t))||a&&!ur(t)?e:t}function mr(e,t,r=!1){return Object.keys(t).reduce(((n,a)=>{const s=e?e[a]:{},i=t[a];if(e&&a in e&&o(i))n[a]=mr(s,i,r);else if(r&&Array.isArray(s)&&Array.isArray(i)){let e=i;"preventDuplicates"===r&&(e=i.reduce(((e,t)=>(s.includes(t)||e.push(t),e)),[])),n[a]=s.concat(e)}else n[a]=i;return n}),Object.assign({},e))}function hr(e){return Array.isArray(e.enum)&&1===e.enum.length||u in e}function pr(e,t,r={},n){const o=Mt(e,t,r,void 0,n),a=o.oneOf||o.anyOf;return!!Array.isArray(o.enum)||!!Array.isArray(a)&&a.every((e=>"boolean"!==typeof e&&hr(e)))}function yr(e,t,r,n){return!(!t.uniqueItems||!t.items||"boolean"===typeof t.items)&&pr(e,t.items,r,n)}function gr(e){const t=e[u],r=Nt(e);return o(t)&&(0,jt.A)(null===t||void 0===t?void 0:t.$data)&&"object"!==r&&"array"!==r}function vr(e,t){if(e.enum){let r;if(t){const{enumNames:e}=V(t);r=e}return e.enum.map(((e,t)=>({label:(null===r||void 0===r?void 0:r[t])||String(e),value:e})))}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=Et(e);if(t){const{optionsSchemaSelector:e=o}=V(t);o=e}return r&&r.map(((e,t)=>{const{title:r}=V(null===n||void 0===n?void 0:n[t]),a=e;let s,i=r;if(o){const e=(0,W.A)(a,[_,o],{});s=(0,W.A)(e,f,(0,W.A)(e,u)),i=i||(null===e||void 0===e?void 0:e.title)||a.title||String(s)}else s=function(e){if(h 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")}(a),i=i||a.title||String(s);return{schema:a,label:i,value:s}}))}const $r=["string","number","integer","boolean","null"];var br;function wr(e,t=br.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!==br.Ignore&&o(e.additionalItems)?e.additionalItems:{}}function _r(e,t){const{default:r,type:n}=e;return Array.isArray(n)&&n.includes("null")&&(0,xe.A)(t)&&null===r?null:t}function Sr(e,t,r,n,a,s=[],i={},c=!1,l=!1){const{emptyObjectFields:d="populateAllDefaults"}=i;if(!0===n||c)e[t]=r;else if("excludeObjectChildren"===n)(l&&void 0!==r||!o(r)||!(0,xe.A)(r))&&(e[t]=r);else if("skipDefaults"!==d){const n=void 0===a?s.includes(t):a;o(r)?"skipEmptyDefaults"===d?(0,xe.A)(r)||(e[t]=r):(0,xe.A)(r)&&!s.includes(t)||!n&&"populateRequiredDefaults"===d||(e[t]=r):void 0!==r&&("populateAllDefaults"===d||"skipEmptyDefaults"===d||n&&s.includes(t))&&(e[t]=r)}}function Ar(e,t,r={}){const{parentDefaults:n,rawFormData:a,rootSchema:s={},includeUndefinedValues:i=!1,_recurseList:c=[],experimental_defaultFormStateBehavior:h,experimental_customMergeAllOf:p,required:y,shouldMergeDefaultsIntoFormData:g=!1,initialDefaultsGenerated:v}=r;let $=o(a)?a:{};const w=o(t)?t:{};let _=n,S=null,A=h,j=c;if(void 0===w[u]||"never"===(null===h||void 0===h?void 0:h.constAsDefaults)||gr(w))if(o(_)&&o(w.default))_=mr(_,w.default);else if(!(f in w)||w[d]||w[b]||w[E]){if(E in w){const e=w[E];c.includes(e)||(j=c.concat(e),S=At(e,s)),S&&!_&&(_=w.default),g&&S&&!o(a)&&($=a)}else if(m in w){const t={...jr(e,w,r,_),...$};S=Jt(e,w,s,!1,[],t,p)[0]}else if(dr(w))_=w.items.map(((t,r)=>Ar(e,t,{rootSchema:s,includeUndefinedValues:i,_recurseList:c,experimental_defaultFormStateBehavior:h,experimental_customMergeAllOf:p,parentDefaults:Array.isArray(n)?n[r]:void 0,rawFormData:$,required:y,shouldMergeDefaultsIntoFormData:g})));else if(b in w){const{oneOf:t,...r}=w;if(0===t.length)return;const n=Et(w),{type:o="null"}=r;!Array.isArray(o)&&$r.includes(o)&&"skipOneOf"===(null===A||void 0===A?void 0:A.constAsDefaults)&&(A={...A,constAsDefaults:"never"}),S=t[lr(e,s,null!==a&&void 0!==a?a:w.default,t,0,n,p)],S=Ct(r,S)}else if(d in w){const{anyOf:t,...r}=w;if(0===t.length)return;const n=Et(w);S=t[lr(e,s,null!==a&&void 0!==a?a:w.default,t,0,n,p)],S=Ct(r,S)}}else _=w.default;else _=w[u];if(S)return Ar(e,S,{rootSchema:s,includeUndefinedValues:i,_recurseList:j,experimental_defaultFormStateBehavior:A,experimental_customMergeAllOf:p,parentDefaults:_,rawFormData:null!==a&&void 0!==a?a:$,required:y,shouldMergeDefaultsIntoFormData:g,initialDefaultsGenerated:v});void 0===_&&(_=w.default);const P=jr(e,w,r,_);let x=null!==P&&void 0!==P?P:_;if(g){const{arrayMinItems:t={}}=h||{},{mergeExtraDefaults:r}=t,n=function(e,t,r,n,o,a){const s=!hr(t)&&pr(e,t,r,a);let i=n;if(s){const e=vr(t);i=(null===e||void 0===e?void 0:e.some((e=>G(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,w,s,a,h,p);o(a)&&!(l in w)||(x=fr(x,n,r,!0))}return x}function jr(e,t,r={},n){switch(Nt(t)){case"object":return function(e,t,{rawFormData:r,rootSchema:n={},includeUndefinedValues:a=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:c,required:d,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:m}={},h){{const p=o(r)?r:{},y=t,g="populateDefaults"===(null===i||void 0===i?void 0:i.allOf)&&l in y?Mt(e,y,n,p,c):y,v=g[u],$=Object.keys(g.properties||{}).reduce(((t,r)=>{var l;const y=(0,W.A)(g,[_,r],{}),$=o(v)&&void 0!==v[r],b=(o(y)&&u in y||$)&&"never"!==(null===i||void 0===i?void 0:i.constAsDefaults)&&!gr(y);return Sr(t,r,Ar(e,y,{rootSchema:n,_recurseList:s,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:c,includeUndefinedValues:!0===a,parentDefaults:(0,W.A)(h,[r]),rawFormData:(0,W.A)(p,[r]),required:null===(l=g.required)||void 0===l?void 0:l.includes(r),shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:m}),a,d,g.required,i,b,"null"===(null===y||void 0===y?void 0:y.type)),t}),{});if(g.additionalProperties&&!m){const t=o(g.additionalProperties)?g.additionalProperties:{},r=new Set;o(h)&&Object.keys(h).filter((e=>!g.properties||!g.properties[e])).forEach((e=>r.add(e)));const l=[];Object.keys(p).filter((e=>!g.properties||!g.properties[e])).forEach((e=>{r.add(e),l.push(e)})),r.forEach((r=>{var o;const u=Ar(e,t,{rootSchema:n,_recurseList:s,experimental_defaultFormStateBehavior:i,experimental_customMergeAllOf:c,includeUndefinedValues:!0===a,parentDefaults:(0,W.A)(h,[r]),rawFormData:(0,W.A)(p,[r]),required:null===(o=g.required)||void 0===o?void 0:o.includes(r),shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:m});Sr($,r,u,a,d,l)}))}return _r(t,$)}}(e,t,r,n);case"array":return function(e,t,{rawFormData:r,rootSchema:n={},_recurseList:a=[],experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:i,required:c,requiredAsRoot:l=!1,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:f}={},m){var h,p;const y=t,g=null!==(h=null===s||void 0===s?void 0:s.arrayMinItems)&&void 0!==h?h:{},{populate:v,mergeExtraDefaults:$}=g,b="never"===v,w="requiredOnly"===v,_="all"===v||!b&&!w,S=null!==(p=null===g||void 0===g?void 0:g.computeSkipPopulate)&&void 0!==p?p:()=>!1,A="skipEmptyDefaults"===(null===s||void 0===s?void 0:s.emptyObjectFields)?void 0:[];if(Array.isArray(m)&&(m=m.map(((t,r)=>{const o=wr(y,br.Fallback,r);return Ar(e,o,{rootSchema:n,_recurseList:a,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:i,parentDefaults:t,required:c,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:f})}))),Array.isArray(r)){const t=wr(y);if(b)m=r;else{const o=r.map(((r,o)=>Ar(e,t,{rootSchema:n,_recurseList:a,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:i,rawFormData:r,parentDefaults:(0,W.A)(m,[o]),required:c,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:f})));m=fr(m,o,(w&&c||_)&&$)}}if(!1===(o(y)&&u in y&&"never"!==(null===s||void 0===s?void 0:s.constAsDefaults))){if(b)return null!==m&&void 0!==m?m:A;if(w&&!c)return m||void 0}let j;const E=Array.isArray(m)?m.length:0;if(!y.minItems||yr(e,y,n,i)||S(e,y,n)||y.minItems<=E)j=m||!c&&!l?m:A;else{const t=m||[],r=wr(y,br.Invert),o=r.default,l=Array.from({length:y.minItems-E},(()=>Ar(e,r,{parentDefaults:o,rootSchema:n,_recurseList:a,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:i,required:c,shouldMergeDefaultsIntoFormData:d})));j=t.concat(l)}return _r(t,j)}(e,t,r,n)}}function Er(e,t,r,n,a=!1,s,i,c){if(!o(t))throw new Error("Invalid schema: "+t);const l=Mt(e,t,n,r,i),d=Ar(e,l,{rootSchema:n,includeUndefinedValues:a,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:i,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:c,requiredAsRoot:!0});if("object"!==l.type&&o(l.default))return{...d,...r};if(o(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:e}=s||{};return fr(d,r,!0,"useDefaultIfFormDataUndefined"===e,!0)}return d}function Pr(e={}){return"widget"in V(e)&&"hidden"!==V(e).widget}function xr(e,t,r={},n,o){if("files"===r[R])return!0;if(t.items){const r=Mt(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"}(br||(br={}));const kr=Symbol("no Value");function Or(e,t,r,n,o={},a){let s;if((0,H.A)(r,_)){const i={};if((0,H.A)(n,_)){const e=(0,W.A)(n,_,{});Object.keys(e).forEach((e=>{(0,H.A)(o,e)&&(i[e]=void 0)}))}const c=Object.keys((0,W.A)(r,_,{})),l={};c.forEach((s=>{const c=(0,W.A)(o,s);let d=(0,W.A)(n,[_,s],{}),u=(0,W.A)(r,[_,s],{});(0,H.A)(d,E)&&(d=Mt(e,d,t,c,a)),(0,H.A)(u,E)&&(u=Mt(e,u,t,c,a));const f=(0,W.A)(d,"type"),m=(0,W.A)(u,"type");if(!f||f===m)if((0,H.A)(i,s)&&delete i[s],"object"===m||"array"===m&&Array.isArray(c)){const r=Or(e,t,u,d,c,a);void 0===r&&"array"!==m||(l[s]=r)}else{const e=(0,W.A)(u,"default",kr),t=(0,W.A)(d,"default",kr);e!==kr&&e!==c&&(t===c?i[s]=e:!0===(0,W.A)(u,"readOnly")&&(i[s]=void 0));const r=(0,W.A)(u,"const",kr),n=(0,W.A)(d,"const",kr);r!==kr&&r!==c&&(i[s]=n===c?r:void 0)}})),s={..."string"==typeof o||Array.isArray(o)?void 0:o,...i,...l}}else if("array"===(0,W.A)(n,"type")&&"array"===(0,W.A)(r,"type")&&Array.isArray(o)){let i=(0,W.A)(n,"items"),c=(0,W.A)(r,"items");if("object"!==typeof i||"object"!==typeof c||Array.isArray(i)||Array.isArray(c))"boolean"===typeof i&&"boolean"===typeof c&&i===c&&(s=o);else{(0,H.A)(i,E)&&(i=Mt(e,i,t,o,a)),(0,H.A)(c,E)&&(c=Mt(e,c,t,o,a));const n=(0,W.A)(i,"type"),l=(0,W.A)(c,"type");if(!n||n===l){const n=(0,W.A)(r,"maxItems",-1);s="object"===l?o.reduce(((r,o)=>{const s=Or(e,t,c,i,o,a);return void 0!==s&&(n<0||r.length<n)&&r.push(s),r}),[]):n>0&&o.length>n?o.slice(0,n):o}}}return s}function Nr(e,t,r,n,o,a=[],s){if(E in t||m in t||l in t){const i=Mt(e,t,n,o,s);if(-1===a.findIndex((e=>G(e,i))))return Nr(e,i,r,n,o,a.concat(i),s)}let i={[$]:r.replace(/^\./,"")};if(b in t||d in t){const c=b in t?t.oneOf:t.anyOf,l=Et(t),d=c[lr(e,n,o,c,0,l,s)];i={...i,...Nr(e,d,r,n,o,a,s)}}if(c in t&&!1!==t[c]&&(0,Z.A)(i,I,!0),v in t&&Array.isArray(o)){const{items:c,additionalItems:l}=t;Array.isArray(c)?o.forEach(((t,o)=>{c[o]?i[o]=Nr(e,c[o],`${r}.${o}`,n,t,a,s):l?i[o]=Nr(e,l,`${r}.${o}`,n,t,a,s):console.warn(`Unable to generate path schema for "${r}.${o}". No schema defined for it`)})):o.forEach(((t,o)=>{i[o]=Nr(e,c,`${r}.${o}`,n,t,a,s)}))}else if(_ in t)for(const c in t.properties){const l=(0,W.A)(t,[_,c],{});i[c]=Nr(e,l,`${r}.${c}`,n,(0,W.A)(o,[c]),a,s)}return i}function Cr(e,t,r="",n,o,a){return Nr(e,t,r,n,o,void 0,a)}class Ir{constructor(e,t,r,n){t&&t[P]===U?this.rootSchema=wt(t,(0,W.A)(t,y,"#")):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||!G(this.rootSchema,t)||!G(this.experimental_defaultFormStateBehavior,r)||this.experimental_customMergeAllOf!==n)}findFieldInSchema(e,t,r){return function(e,t,r,n,o={},a){const s=Array.isArray(n)?[...n]:n.split(".");let i=r;const c=s.pop();s.length&&s.forEach((r=>{i=tr(e,t,i,[_,r],{},a),(0,H.A)(i,b)?i=Qt(e,t,i,c,b,(0,W.A)(o,r),a):(0,H.A)(i,d)&&(i=Qt(e,t,i,c,d,(0,W.A)(o,r),a))})),(0,H.A)(i,b)?i=Qt(e,t,i,c,b,o,a):(0,H.A)(i,d)&&(i=Qt(e,t,i,c,d,o,a));let l=tr(e,t,i,[_,c],rr,a);l===rr&&(l=void 0);const u=tr(e,t,i,A,[],a);let f;return l&&Array.isArray(u)&&(f=u.includes(c)),{field:l,isRequired:f}}(this.validator,this.rootSchema,e,t,r,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(e,t,r,n){return Qt(this.validator,this.rootSchema,e,t,r,n,this.experimental_customMergeAllOf)}getDefaultFormState(e,t,r=!1,n){return Er(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,a){const s=V(r,o),{label:c=!0}=s;let l=Boolean(c);if(l){const o=Nt(t),s=(0,W.A)(t,i,!1);"array"===o&&(l=s||yr(e,t,n,a)||xr(e,t,r,n,a)||Pr(r)),"object"===o&&(l=s),"boolean"===o&&r&&!r[R]&&(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 lr(this.validator,this.rootSchema,e,t,r,n,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,t,r){return Ft(this.validator,e,t,this.rootSchema,r)}getFromSchema(e,t,r){return tr(this.validator,this.rootSchema,e,t,r,this.experimental_customMergeAllOf)}isFilesArray(e,t){return xr(this.validator,e,t,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return yr(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return pr(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}retrieveSchema(e,t,r){return Mt(this.validator,e,this.rootSchema,t,this.experimental_customMergeAllOf,r)}sanitizeDataForNewSchema(e,t,r){return Or(this.validator,this.rootSchema,e,t,r,this.experimental_customMergeAllOf)}toPathSchema(e,t,r){return Cr(this.validator,e,t,this.rootSchema,r,this.experimental_customMergeAllOf)}}function Dr(e,t,r={},n){return new Ir(e,t,r,n)}function Rr(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 Tr(e,t=[],r){if(Array.isArray(e))return e.map((e=>Tr(e,t))).filter((e=>e!==r));const n=""===e||null===e?-1:Number(e),o=t[n];return o?o.value:r}function Fr(e,t,r=[]){const n=Tr(e,r);return Array.isArray(t)?t.filter((e=>!G(e,n))):G(n,t)?void 0:t}function Mr(e,t){return Array.isArray(t)?t.some((t=>G(t,e))):G(t,e)}function Ur(e,t=[],r=!1){const n=t.map(((t,r)=>Mr(t.value,e)?String(r):void 0)).filter((e=>"undefined"!==typeof e));return r?n:n[0]}function Vr(e,t,r=[]){const n=Tr(e,r);if(!ur(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 zr=n(20903),Lr=n(37346);const qr=function(e,t,r,n){return n="function"==typeof n?n:void 0,null==e?e:(0,Lr.A)(e,t,r,n)};class Br{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,W.A)(this.errorSchema,e):this.errorSchema;return!t&&e&&(t={},qr(this.errorSchema,e,t,Object)),t}resetAllErrors(e){return this.errorSchema=e?(0,zr.A)(e):{},this}addErrors(e,t){const r=this.getOrCreateErrorBlock(t);let n=(0,W.A)(r,p);return Array.isArray(n)||(n=[],r[p]=n),Array.isArray(e)?(0,Z.A)(r,p,[...new Set([...n,...e])]):(0,Z.A)(r,p,[...new Set([...n,e])]),this}setErrors(e,t){const r=this.getOrCreateErrorBlock(t),n=Array.isArray(e)?[...new Set([...e])]:[e];return(0,Z.A)(r,p,n),this}clearErrors(e){const t=this.getOrCreateErrorBlock(e);return(0,Z.A)(t,p,[]),this}}var Kr=n(27422),Gr=n(45572),Wr=n(69084),Hr=n(83973);const Jr=function(e,t){if(null==e)return{};var r=(0,Gr.A)((0,Hr.A)(e),(function(e){return[e]}));return t=(0,se.A)(t),(0,Wr.A)(e,r,(function(e,r){return t(e,r[0])}))};var Zr=n(52789);const Yr=function(e,t,r,n){var o=-1,a=$e.A,s=!0,i=e.length,c=[],l=t.length;if(!i)return c;r&&(t=(0,Gr.A)(t,(0,Zr.A)(r))),n?(a=be.A,s=!1):t.length>=200&&(a=we.A,s=!1,t=new ve.A(t));e:for(;++o<i;){var d=e[o],u=null==r?d:r(d);if(d=n||0!==d?d:0,s&&u===u){for(var f=l;f--;)if(t[f]===u)continue e;c.push(d)}else a(t,u,n)||c.push(d)}return c};const Xr=(0,xt.A)((function(e,t){return(0,kt.A)(e)?Yr(e,(0,pe.A)(t,1,kt.A,!0)):[]}));function Qr(e,t){const r=(0,L.A)(e),n=(0,L.A)(t);if(e===t||!r&&!n)return[];if(r&&!n)return(0,Kr.A)(e);if(!r&&n)return(0,Kr.A)(t);return[...(0,Kr.A)(Jr(e,((e,r)=>!G(e,(0,W.A)(t,r))))),...Xr((0,Kr.A)(t),(0,Kr.A)(e))]}function en(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",...en(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 rn={props:{disabled:!1},submitText:"Submit",norender:!1};function nn(e={}){const t=V(e);if(t&&t[j]){const e=t[j];return{...rn,...e}}return rn}function on(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 an=n(5664);function sn(){if("undefined"===typeof process||"test"!==(0,W.A)(process,"env.NODE_ENV"))return{};const e=new Map;return new Proxy({},{get:(t,r)=>(e.has(r)||e.set(r,(0,an.A)("test-id-")),e.get(r))})}var cn=n(74848),ln=n(96540),dn=n(80782);const un={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 fn(e,t,r={}){const n=Nt(e);if("function"===typeof t||t&&dn.isForwardRef((0,ln.createElement)(t))||dn.isMemo(t))return function(e){let t=(0,W.A)(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=({options:t,...n})=>(0,cn.jsx)(e,{options:{...r,...t},...n}),(0,Z.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 fn(e,r[t],r)}if("string"===typeof n){if(!(n in un))throw new Error(`No widget for type '${n}' in schema: ${JSON.stringify(e)}`);if(t in un[n]){return fn(e,r[un[n][t]],r)}}throw new Error(`No widget '${t}' for type '${n}' in schema: ${JSON.stringify(e)}`)}function mn(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 mn(e)}function pn(t,r,n={}){try{return fn(t,r,n),!0}catch(e){const r=e;if(r.message&&(r.message.startsWith("No widget")||r.message.startsWith("Unsupported widget")))return!1;throw e}}function yn(e,t){return`${(0,jt.A)(e)?e:e[y]}__${t}`}function gn(e){return yn(e,"description")}function vn(e){return yn(e,"error")}function $n(e){return yn(e,"examples")}function bn(e){return yn(e,"help")}function wn(e){return yn(e,"title")}function _n(e,t=!1){const r=t?` ${$n(e)}`:"";return`${vn(e)} ${gn(e)} ${bn(e)}${r}`}function Sn(e,t){return`${e}-${t}`}function An(e,t){return yn(e,t)}function jn(e,t){return yn(e,`optional${t}`)}function En(e){return!ur(e)&&(!(0,ue.A)(e)||Array.isArray(e)||!(0,xe.A)(e))}function Pn(e,t,r){return t?r:e}function xn(e){return e?new Date(e).toJSON():void 0}function kn(e,t,r){const n=[C];return(0,H.A)(e,N)&&n.unshift(N),(0,W.A)(e,[...n,t],r)}function On(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])),a=r(o),s=e.filter((e=>!a[e])),i=o.indexOf("*");if(-1===i){if(s.length)throw new Error("uiSchema order list does not contain "+((c=s).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,...s),l}function Nn(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 Nn(e.anyOf[0]);if(e.oneOf&&1===e.oneOf.length)return Nn(e.oneOf[0]);if(e.allOf){const t=e=>Nn(e);return e.allOf.some(t)}return!1}function Cn(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 In(e,t,r,n="customDeep"){if("always"===n)return!0;if("shallow"===n){const{props:n,state:o}=e;return!Cn(n,t)||!Cn(o,r)}const{props:o,state:a}=e;return!G(o,t)||!G(a,r)}function Dn(e){const t=Pe(e.map((e=>(0,ue.A)(e)?Nt(e):void 0)).flat().filter((e=>void 0!==e)));return 1===t.length?t[0]:t}function Rn(e,t,r,n){const{enableOptionalDataFieldForType:o=[]}=V(n,e.globalUiOptions);let a;return a=d in t&&Array.isArray(t[d])?Dn(t[d]):b in t&&Array.isArray(t[b])?Dn(t[b]):Nt(t),!function(e,t){const{rootSchema:r,schemaUtils:n}=e;if((0,J.A)(t,r))return!0;if(E in r){const e=n.retrieveSchema(r);return(0,J.A)(t,e)}return!1}(e,t)&&!r&&!!a&&!Array.isArray(a)&&!!o.find((e=>e===a))}function Tn(e,t=[]){if(!e)return[];let r=[];return p in e&&(r=r.concat(e[p].map((e=>{const r=`.${t.join(".")}`;return{property:r,message:e,stack:`${r} ${e}`}})))),Object.keys(e).reduce(((r,n)=>{if(n!==p){const o=e[n];(0,L.A)(o)&&(r=r.concat(Tn(o,[...t,n])))}return r}),r)}var Fn,Mn=n(36904);function Un(e){const t=new Br;return e.length&&e.forEach((e=>{const{property:r,message:n}=e,o="."===r?[]:(0,Mn.A)(r);o.length>0&&""===o[0]&&o.splice(0,1),n&&t.addErrors(n,o)})),t.ErrorSchema}function Vn(e,t,r,n){const o=Array.isArray(r)?r:null===r||void 0===r?void 0:r.path,a=""===e?[]:[e],s=o?o.concat(...a):a,i=[t.idPrefix,...s].join(t.idSeparator);let c;return t.nameGenerator&&s.length>0&&(c=t.nameGenerator(s,t.idPrefix,n)),{path:s,[y]:i,...void 0!==c&&{name:c}}}function zn(e){return Object.keys(e).reduce(((t,r)=>{if("addError"===r)return t;{const n=e[r];return(0,L.A)(n)?{...t,[r]:zn(n)}:{...t,[r]:n}}}),{})}function Ln(e,t){let r=String(e);for(;r.length<t;)r="0"+r;return r}function qn(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 qn(t,e).reverse();const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:Ln(n,2)});return r}function Bn(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 Kn(e,t=!0){const{year:r,month:n,day:o,hour:a=0,minute:s=0,second:i=0}=e,c=Date.UTC(r,n-1,o,a,s,i),l=new Date(c).toJSON();return t?l:l.slice(0,10)}function Gn(e){const{className:t="form-control",type:r,range:n,value:o,select:a,rootId:s,name:i,disabled:c,readonly:l,autofocus:d,registry:u,onBlur:f,onFocus:m}=e,h=`${s}_${r}`,{SelectWidget:p}=u.widgets,y=(0,ln.useCallback)((e=>a(r,e)),[a,r]);return(0,cn.jsx)(p,{schema:{type:"integer"},id:h,name:i,className:t,options:{enumOptions:qn(n[0],n[1])},placeholder:r,value:o,disabled:c,readonly:l,autofocus:d,onChange:y,onBlur:f,onFocus:m,registry:u,label:"","aria-describedby":_n(s)})}function Wn(e){const{time:t=!1,disabled:r=!1,readonly:n=!1,options:o,onChange:a,value:s}=e,[i,c]=(0,ln.useState)(Bn(s,t));(0,ln.useEffect)((()=>{c(Bn(s,t))}),[t,s]);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):a(Kn(n,t))}),[i,a,t]),d=(0,ln.useCallback)((e=>{e.preventDefault(),r||n||a(void 0)}),[r,n,a]),u=(0,ln.useCallback)((e=>{if(e.preventDefault(),r||n)return;const o=Bn((new Date).toJSON(),t);a(Kn(o,t))}),[r,n,t,a]);return{elements:(0,ln.useMemo)((()=>function(e,t,r=[1900,(new Date).getFullYear()+2],n="YMD"){const{day:o,month:a,year:s,hour:i,minute:c,second:l}=e,d={type:"day",range:[1,31],value:o},u={type:"month",range:[1,12],value:a},f={type:"year",range:r,value:s},m=[];switch(n){case"MDY":m.push(u,d,f);break;case"DMY":m.push(d,u,f);break;default:m.push(f,u,d)}return t&&m.push({type:"hour",range:[0,23],value:i},{type:"minute",range:[0,59],value:c},{type:"second",range:[0,59],value:l}),m}(i,t,o.yearsRange,o.format)),[i,t,o.yearsRange,o.format]),handleChange:l,handleClear:d,handleSetNow:u}}function Hn(e){const t=(0,ln.useRef)(e);return(0,J.A)(e,t.current)||(t.current=e),t.current}function Jn(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function Zn(e){const{name:t,size:r,type:n}=e;return new Promise(((o,a)=>{const s=new window.FileReader;s.onerror=a,s.onload=e=>{var a;"string"===typeof(null===(a=e.target)||void 0===a?void 0:a.result)?o({dataURL:Jn(e.target.result,t),name:t,size:r,type:n}):o({dataURL:null,name:t,size:r,type:n})},s.readAsDataURL(e)}))}function Yn(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,[a,...s]=n.split(";"),i=a||"",c=decodeURI((null===(t=s.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 Xn(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)?Yn(e):Yn([e||""])),[e]),handleChange:(0,ln.useCallback)((e=>{(function(e){return Promise.all(Array.from(e).map(Zn))})(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 Qn(e){if(!e)return"";const t=new Date(e);return`${Ln(t.getFullYear(),4)}-${Ln(t.getMonth()+1,2)}-${Ln(t.getDate(),2)}T${Ln(t.getHours(),2)}:${Ln(t.getMinutes(),2)}:${Ln(t.getSeconds(),2)}.${Ln(t.getMilliseconds(),3)}`}function eo(e,t,r=!1){if(!t)return e;const{errors:n,errorSchema:o}=e;let a=Tn(t),s=t;return(0,xe.A)(o)||(s=mr(o,t,!r||"preventDuplicates"),a=[...n].concat(a)),{errorSchema:s,errors:a}}function to(e){return Array.isArray(e)?function(e){for(let t=0;t<e.length;t++)e[t]=to(e[t]);return e}([...e]):(0,ue.A)(e)?function(e){for(const t in e){const r=e,n=r[t];t===E&&"string"===typeof n&&n.startsWith("#")?r[t]=D+n:r[t]=to(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.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)"}(Fn||(Fn={}))},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 a(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._=a;const s=new o("+");function i(e,...t){const r=[d(e[0])];let n=0;for(;n<t.length;)r.push(s),c(r,t[n]),r.push(s,d(e[++n]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===s){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:d(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 d(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(d(e))},t.safeStringify=d,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new o(`.${e}`):a`[${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())}},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),a=r(65373),s={message:"boolean schema is false"};function i(e,t){const{gen:r,data:o}=e,a={gen:r,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,n.reportError)(a,s,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(a.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)}},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},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"]},75590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const n=r(93789),o=r(7083);function a(e,t,r){const{gen:a,compositeRule:s,data:i,opts:c}=e;if(void 0===r)return;const l=n._`${i}${(0,n.getProperty)(t)}`;if(s)return void(0,o.checkStrictMode)(e,`default is ignored for: ${l}`);let d=n._`${l} === undefined`;"empty"===c.useDefaults&&(d=n._`${d} || ${l} === null || ${l} === ""`),a.if(d,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)a(e,o,r[o].default);else"array"===t&&Array.isArray(n)&&n.forEach(((t,r)=>a(e,r,t.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},77013:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(27420),a=r(65219),s=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:d}=e,{oneOf:u}=l;if(!d.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(!u)throw new Error("discriminator: requires oneOf keyword");const m=t.let("valid",!1),h=t.const("tag",n._`${r}${(0,n.getProperty)(f)}`);function p(r){const o=t.name("valid"),a=e.subschema({keyword:"oneOf",schemaProp:r},o);return e.mergeEvaluated(a,n.Name),o}t.if(n._`typeof ${h} == "string"`,(()=>function(){const r=function(){var e;const t={},r=o(l);let n=!0;for(let l=0;l<u.length;l++){let t=u[l];if((null===t||void 0===t?void 0:t.$ref)&&!(0,i.schemaHasRulesButRef)(t,d.self.RULES)){const e=t.$ref;if(t=a.resolveRef.call(d.self,d.schemaEnv.root,d.baseId,e),t instanceof a.SchemaEnv&&(t=t.schema),void 0===t)throw new s.default(d.opts.uriResolver,d.baseId,e)}const m=null===(e=null===t||void 0===t?void 0:t.properties)||void 0===e?void 0:e[f];if("object"!=typeof m)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);n=n&&(r||o(t)),c(m,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)m(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${f}" must have "const" or "enum"`);for(const r of e.enum)m(r,t)}}function m(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._`${h} === ${e}`),t.assign(m,p(r[e]));t.else(),e.error(!1,{discrError:o.DiscrError.Mapping,tag:h,tagName:f}),t.endIf()}()),(()=>e.error(!1,{discrError:o.DiscrError.Tag,tag:h,tagName:f}))),e.ok(m)}};t.default=c},77127:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(50751),o=1/0;const a=function(e){return e?(e=(0,n.A)(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0};const s=function(e){var t=a(e),r=t%1;return t===t?r?t-r:t:0}},78013:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(21085),o=r(93789),a=r(7083),s=r(7083),i={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:i,parentSchema:c,it:l}=e,{opts:d}=l,u=(0,n.allSchemaProperties)(r),f=u.filter((e=>(0,a.alwaysValidSchema)(l,r[e])));if(0===u.length||f.length===u.length&&(!l.opts.unevaluated||!0===l.props))return;const m=d.strictSchema&&!d.allowMatchingProperties&&c.properties,h=t.name("valid");!0===l.props||l.props instanceof o.Name||(l.props=(0,s.evaluatedPropsToName)(t,l.props));const{props:p}=l;function y(e){for(const t in m)new RegExp(e).test(t)&&(0,a.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(r){t.forIn("key",i,(a=>{t.if(o._`${(0,n.usePattern)(e,r)}.test(${a})`,(()=>{const n=f.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:a,dataPropType:s.Type.Str},h),l.opts.unevaluated&&!0!==p?t.assign(o._`${p}[${a}]`,!0):n||l.allErrors||t.if((0,o.not)(h),(()=>t.break()))}))}))}!function(){for(const e of u)m&&y(e),l.allErrors?g(e):(t.var(h,!0),g(e),t.if(h))}()}};t.default=i},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),a=r(50575),s=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(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,i):s;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 d=r(79888);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var u=r(56699);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=r(36024);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=r(39889);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.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),a=r(97193),s=r(66542),i=r(99524),c=r(64147),l=r(65633),d=r(56699),u=r(65373),f=r(9737),m=r(19205),h=r(40154);function p({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,d._`${u.default.data}, ${u.default.valCxt}`,n.$async,(()=>{e.code(d._`"use strict"; ${y(r,o)}`),function(e,t){e.if(u.default.valCxt,(()=>{e.var(u.default.instancePath,d._`${u.default.valCxt}.${u.default.instancePath}`),e.var(u.default.parentData,d._`${u.default.valCxt}.${u.default.parentData}`),e.var(u.default.parentDataProperty,d._`${u.default.valCxt}.${u.default.parentDataProperty}`),e.var(u.default.rootData,d._`${u.default.valCxt}.${u.default.rootData}`),t.dynamicRef&&e.var(u.default.dynamicAnchors,d._`${u.default.valCxt}.${u.default.dynamicAnchors}`)}),(()=>{e.var(u.default.instancePath,d._`""`),e.var(u.default.parentData,d._`undefined`),e.var(u.default.parentDataProperty,d._`undefined`),e.var(u.default.rootData,u.default.data),t.dynamicRef&&e.var(u.default.dynamicAnchors,d._`{}`)}))}(e,o),e.code(a)})):e.func(t,d._`${u.default.data}, ${function(e){return d._`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${e.dynamicRef?d._`, ${u.default.dynamicAnchors}={}`:d.nil}}={}`}(o)}`,n.$async,(()=>e.code(y(r,o)).code(a)))}function y(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?d._`/*# sourceURL=${r} */`:d.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&&_(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 a=n.const("_errs",u.default.errors);w(e,a),n.var(t,d._`${a} === ${u.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,m.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,m.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function w(e,t){if(e.opts.jtd)return S(e,[],!1,t);const r=(0,o.getSchemaTypes)(e.schema);S(e,r,!(0,o.coerceAndCheckDataType)(e,r),t)}function _({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(d._`${u.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=d.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(d._`${u.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function S(e,t,r,n){const{gen:o,schema:i,data:c,allErrors:l,opts:f,self:h}=e,{RULES:p}=h;function y(m){(0,a.shouldUseGroup)(i,m)&&(m.type?(o.if((0,s.checkDataType)(m.type,c,f.strictNumbers)),A(e,m),1===t.length&&t[0]===m.type&&r&&(o.else(),(0,s.reportTypeError)(e)),o.endIf()):A(e,m),l||o.if(d._`${u.default.errors} === ${n||0}`))}!i.$ref||!f.ignoreKeywordsWithRef&&(0,m.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,a.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 A(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,a.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,m.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&&_(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,m.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(u.default.vErrors,null),n.let(u.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",d._`${r}.evaluated`),t.if(d._`${e.evaluated}.dynamicProps`,(()=>t.assign(d._`${e.evaluated}.props`,d._`undefined`))),t.if(d._`${e.evaluated}.dynamicItems`,(()=>t.assign(d._`${e.evaluated}.items`,d._`undefined`)))}(e),w(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(d._`${u.default.errors} === 0`,(()=>t.return(u.default.data)),(()=>t.throw(d._`new ${o}(${u.default.vErrors})`))):(t.assign(d._`${n}.errors`,u.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof d.Name&&e.assign(d._`${t}.props`,r);n instanceof d.Name&&e.assign(d._`${t}.items`,n)}(e),t.return(d._`${u.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,m.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",u.default.errors))}result(e,t,r){this.failResult((0,d.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,d.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(d._`${t} !== undefined && (${(0,d.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?h.reportExtraError:h.reportError)(this,this.def.error,t)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,h.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=d.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=d.nil,t=d.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,d.or)(d._`${n} === undefined`,t)),e!==d.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==d.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:o}=this;return(0,d.or)(function(){if(r.length){if(!(t instanceof d.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return d._`${(0,s.checkDataTypes)(e,t,o.opts.strictNumbers,s.DataType.Wrong)}`}return d.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return d._`!${r}(${t})`}return d.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=m.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=m.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,d.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,a;if(""===e)return u.default.rootData;if("/"===e[0]){if(!O.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=u.default.rootData}else{const s=N.exec(e);if(!s)throw new Error(`Invalid JSON-pointer: ${e}`);const i=+s[1];if(o=s[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(a=r[t-i],!o)return a}let s=a;const i=o.split("/");for(const l of i)l&&(a=d._`${a}${(0,d.getProperty)((0,m.unescapeJsonPointer)(l))}`,s=d._`${s} && ${a}`);return s;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=C},80450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=n.operators,a={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}},s={message:({keyword:e,schemaCode:t})=>n.str`must be ${a[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${a[e].okStr}, limit: ${t}}`},i={keyword:Object.keys(a),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{keyword:t,data:r,schemaCode:o}=e;e.fail$data(n._`${r} ${a[t].fail} ${o} || isNaN(${r})`)}};t.default=i},80782:(e,t,r)=>{"use strict";e.exports=r(62514)},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),a=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 s={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:s}=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 d=(0,a.propertyInData)(r,o,c,s.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(", ")}),s.allErrors?r.if(d,(()=>{for(const t of l)(0,a.checkReportMissingProp)(e,t)})):(r.if(n._`${d} && (${(0,a.checkMissingProp)(e,l,i)})`),(0,a.reportMissingProp)(e,i),r.else())}}function c(e,t=e.schema){const{gen:r,data:n,keyword:s,it:i}=e,c=r.name("valid");for(const l in t)(0,o.alwaysValidSchema)(i,t[l])||(r.if((0,a.propertyInData)(r,n,l,i.opts.ownProperties),(()=>{const t=e.subschema({keyword:s,schemaProp:l},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,!0))),e.ok(c))}t.validatePropertyDeps=i,t.validateSchemaDeps=c,t.default=s},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'},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}},83511:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(76912),o=r(15647),a=r(16489),s=r(13153);const i=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,n.A)(t,(0,a.A)(e)),e=(0,o.A)(e);return t}:s.A},83513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),a=r(12403),s={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:s,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,a.default)}(${r})`;e.fail$data(n._`${l} ${c} ${s}`)}};t.default=s},83875:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),a=r(82261),s={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:s,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,a.default)}(${r})`;e.fail$data(n._`${l} ${c} ${s}`)}};t.default=s},83973:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(33831),o=r(83511),a=r(79999);const s=function(e){return(0,n.A)(e,a.A,o.A)}},85622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(62235),o=r(56699),a=r(65373),s=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:d}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:u,opts:f}=d;if(d.props=!0,"all"!==f.removeAdditional&&(0,s.alwaysValidSchema)(d,r))return;const m=(0,n.allSchemaProperties)(i.properties),h=(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(u||t.break());if("object"==typeof r&&!(0,s.alwaysValidSchema)(d,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),u||t.if((0,o.not)(r),(()=>t.break())))}}}function g(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:s.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",c,(r=>{m.length||h.length?t.if(function(r){let a;if(m.length>8){const e=(0,s.schemaRefOrVal)(d,i.properties,"properties");a=(0,n.isOwnProperty)(t,e,r)}else a=m.length?(0,o.or)(...m.map((e=>o._`${r} === ${e}`))):o.nil;return h.length&&(a=(0,o.or)(a,...h.map((t=>o._`${(0,n.usePattern)(e,t)}.test(${r})`)))),(0,o.not)(a)}(r),(()=>y(r))):y(r)})),e.ok(o._`${l} === ${a.default.errors}`)}};t.default=i},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},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},87671:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(76912),o=r(241),a=r(25175),s=r(92049),i=o.A?o.A.isConcatSpreadable:void 0;const c=function(e){return(0,s.A)(e)||(0,a.A)(e)||!!(i&&e&&e[i])};const l=function e(t,r,o,a,s){var i=-1,l=t.length;for(o||(o=c),s||(s=[]);++i<l;){var d=t[i];r>0&&o(d)?r>1?e(d,r-1,o,a,s):(0,n.A)(s,d):a||(s[s.length]=d)}return s}},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}},90344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(47103),o=r(29045),a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,o.default];t.default=a},90396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(21085),o=r(93789),a=r(66735),s=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:d}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:u,opts:f}=d;if(d.props=!0,"all"!==f.removeAdditional&&(0,s.alwaysValidSchema)(d,r))return;const m=(0,n.allSchemaProperties)(i.properties),h=(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(u||t.break());if("object"==typeof r&&!(0,s.alwaysValidSchema)(d,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),u||t.if((0,o.not)(r),(()=>t.break())))}}}function g(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:s.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",c,(r=>{m.length||h.length?t.if(function(r){let a;if(m.length>8){const e=(0,s.schemaRefOrVal)(d,i.properties,"properties");a=(0,n.isOwnProperty)(t,e,r)}else a=m.length?(0,o.or)(...m.map((e=>o._`${r} === ${e}`))):o.nil;return h.length&&(a=(0,o.or)(a,...h.map((t=>o._`${(0,n.usePattern)(e,t)}.test(${r})`)))),(0,o.not)(a)}(r),(()=>y(r))):y(r)})),e.ok(o._`${l} === ${a.default.errors}`)}};t.default=i},91351:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>Xn});var n=r(74848),o=r(96540),a=r(71787),s=r(20903),i=r(77500),c=r(66401),l=r(69084),d=r(46964);const u=function(e,t){return(0,l.A)(e,t,(function(t,r){return(0,d.A)(e,r)}))};const f=(0,r(50416).A)((function(e,t){return null==e?{}:u(e,t)}));var m=r(35704),h=r(36904),p=r(34916);const y=function(e,t){return null==e||(0,p.A)(e,t)};var g=r(23149),v=r(5664);function $(){return(0,v.A)("rjsf-array-item-")}function b(e){return Array.isArray(e)?e.map((e=>({key:$(),item:e}))):[]}function w(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 S(e,t,r,n){let{addable:o}=(0,a.$R)(n,e.globalUiOptions);return!1!==o&&(o=void 0===t.maxItems||r.length<t.maxItems),o}function A(e,t,r,n){if("function"!==typeof e.items)return e.items;try{return e.items(t,r,n)}catch(Ue){return void console.error(`Error executing dynamic uiSchema.items function for item at index ${r}:`,Ue)}}function j(e,t){const{schemaUtils:r,globalFormOptions:n}=e;let o=t.items;return n.useFallbackUiForUnsupportedType&&!o?o={}:(0,a.nQ)(t)&&(0,a.Hh)(t)&&(o=t.additionalItems),r.getDefaultFormState(o)}function E(e){const{schema:t,fieldPathId:r,uiSchema:o,formData:s=[],disabled:i=!1,readonly:c=!1,autofocus:l=!1,required:d=!1,placeholder:u,onBlur:f,onFocus:m,registry:h,rawErrors:p,name:y,onSelectChange:g}=e,{widgets:v,schemaUtils:$,globalFormOptions:b,globalUiOptions:w}=h,_=$.retrieveSchema(t.items,s),S=(0,a.f9)(_,o),{widget:A="select",title:j,...E}=(0,a.$R)(o,w),P=(0,a.Bt)(t,A,v),x=j??t.title??y,k=$.getDisplayLabel(t,o,w),O=(0,a.lB)((0,a.Yg)("",b,r,!0));return(0,n.jsx)(P,{id:O[a.K0],name:y,multiple:!0,onChange:g,onBlur:f,onFocus:m,options:{...E,enumOptions:S},schema:t,uiSchema:o,registry:h,value:s,disabled:i,readonly:c,required:d,label:x,hideLabel:!k,placeholder:u,autofocus:l,rawErrors:p,htmlName:O.name})}function P(e){const{schema:t,fieldPathId:r,uiSchema:o,disabled:s=!1,readonly:i=!1,autofocus:c=!1,required:l=!1,hideError:d,placeholder:u,onBlur:f,onFocus:m,formData:h=[],registry:p,rawErrors:y,name:g,onSelectChange:v}=e,{widgets:$,schemaUtils:b,globalFormOptions:w,globalUiOptions:_}=p,{widget:S,title:A,...j}=(0,a.$R)(o,_),E=(0,a.Bt)(t,S,$),P=A??t.title??g,x=b.getDisplayLabel(t,o,_),k=(0,a.lB)((0,a.Yg)("",w,r,!0));return(0,n.jsx)(E,{id:k[a.K0],name:g,multiple:!0,onChange:v,onBlur:f,onFocus:m,options:j,schema:t,uiSchema:o,registry:p,value:h,disabled:s,readonly:i,hideError:d,required:l,label:P,hideLabel:!x,placeholder:u,autofocus:c,rawErrors:y,htmlName:k.name})}function x(e){const{schema:t,uiSchema:r,fieldPathId:o,name:s,disabled:i=!1,readonly:c=!1,autofocus:l=!1,required:d=!1,onBlur:u,onFocus:f,registry:m,formData:h=[],rawErrors:p,onSelectChange:y}=e,{widgets:g,schemaUtils:v,globalFormOptions:$,globalUiOptions:b}=m,{widget:w="files",title:_,...S}=(0,a.$R)(r,b),A=(0,a.Bt)(t,w,g),j=_??t.title??s,E=v.getDisplayLabel(t,r,b),P=(0,a.lB)((0,a.Yg)("",$,o,!0));return(0,n.jsx)(A,{options:S,id:P[a.K0],name:s,multiple:!0,onChange:y,onBlur:u,onFocus:f,schema:t,uiSchema:r,value:h,disabled:i,readonly:c,required:d,registry:m,autofocus:l,rawErrors:p,label:j,hideLabel:!E,htmlName:P.name})}function k(e){const{itemKey:t,index:r,name:s,disabled:i,hideError:c,readonly:l,registry:d,uiOptions:u,parentUiSchema:f,canAdd:m,canRemove:h=!0,canMoveUp:p,canMoveDown:y,itemSchema:g,itemData:v,itemUiSchema:$,itemFieldPathId:b,itemErrorSchema:w,autofocus:S,onBlur:A,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}=d,M=(0,a.lB)(b),U=R||T,V=(0,a.$F)("ArrayFieldItemTemplate",d,u),z=D.getDisplayLabel(g,$,F),{description:L}=(0,a.$R)($),q=!!L||!!g.description,{orderable:B=!0,removable:K=!0,copyable:G=!1}=u,W={moveUp:B&&p,moveDown:B&&y,copy:G&&m,remove:K&&h,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:s,title:k,index:r,schema:g,uiSchema:$,formData:v,errorSchema:w,fieldPathId:M,required:_(g),onChange:E,onBlur:A,onFocus:j,registry:d,disabled:i,readonly:l,hideError:c,autofocus:S,rawErrors:P}),buttonsProps:{fieldPathId:M,disabled:i,readonly:l,canAdd:m,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:d,schema:g,uiSchema:$},itemKey:t,className:"rjsf-array-item",disabled:i,hasToolbar:W.toolbar,index:r,totalItems:x,readonly:l,registry:d,schema:g,uiSchema:$,parentUiSchema:f,displayLabel:z,hasDescription:q};return(0,n.jsx)(V,{...Q})}function O(e){const{schema:t,uiSchema:r={},errorSchema:o,fieldPathId:s,formData:i,name:c,title:l,disabled:d=!1,readonly:u=!1,autofocus:f=!1,required:m=!1,hideError:h=!1,registry:p,onBlur:y,onFocus:v,rawErrors:$,onChange:b,keyedFormData:_,handleAddItem:j,handleCopyItem:E,handleRemoveItem:P,handleReorderItems:x}=e,O=t.title||l||c,{schemaUtils:N,fields:C,formContext:I,globalFormOptions:D,globalUiOptions:R}=p,{OptionalDataControlsField:T}=C,F=(0,a.$R)(r,R),M=(0,g.A)(t.items)?t.items:{},U=N.retrieveSchema(M),V=w(_),z=(0,a.II)(p,t,m,r),L=(0,a.Uc)(i),q=S(p,t,V,r)&&(!z||L),B=L?_:[],K=z?" rjsf-optional-array-field":"",G=e.childFieldPathId??s,W=z?(0,n.jsx)(T,{...e,fieldPathId:G}):void 0,H={canAdd:q,items:B.map(((e,t)=>{const{key:s,item:i}=e,l=i,g=N.retrieveSchema(M,l),w=o?o[t]:void 0,S=(0,a.Yg)(t,D,G),C=A(r,i,t,I),R={itemKey:s,index:t,name:c&&`${c}-${t}`,registry:p,uiOptions:F,hideError:h,readonly:u,disabled:d,required:m,title:O?`${O}-${t+1}`:void 0,canAdd:q,canMoveUp:t>0,canMoveDown:t<V.length-1,itemSchema:g,itemFieldPathId:S,itemErrorSchema:w,itemData:l,itemUiSchema:C,autofocus:f&&0===t,onBlur:y,onFocus:v,rawErrors:$,totalItems:_.length,handleAddItem:j,handleCopyItem:E,handleRemoveItem:P,handleReorderItems:x,onChange:b};return(0,n.jsx)(k,{...R},s)})),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${U.type}${K}`,disabled:d,fieldPathId:s,uiSchema:r,onAddClick:j,readonly:u,required:m,schema:t,title:O,formData:V,rawErrors:$,registry:p,optionalDataControl:W},J=(0,a.$F)("ArrayFieldTemplate",p,F);return(0,n.jsx)(J,{...H})}function N(e){const{schema:t,uiSchema:r={},formData:o,errorSchema:s,fieldPathId:i,name:c,title:l,disabled:d=!1,readonly:u=!1,autofocus:f=!1,required:m=!1,hideError:h=!1,registry:p,onBlur:y,onFocus:v,rawErrors:$,keyedFormData:b,onChange:w,handleAddItem:_,handleCopyItem:j,handleRemoveItem:E,handleReorderItems:P}=e;let{formData:x=[]}=e;const O=t.title||l||c,{schemaUtils:N,fields:C,formContext:I,globalFormOptions:D,globalUiOptions:R}=p,T=(0,a.$R)(r,R),{OptionalDataControlsField:F}=C,M=(0,a.II)(p,t,m,r),U=(0,a.Uc)(o),V=((0,g.A)(t.items)?t.items:[]).map(((e,t)=>N.retrieveSchema(e,x[t]))),z=(0,g.A)(t.additionalItems)?N.retrieveSchema(t.additionalItems,o):null,L=e.childFieldPathId??i;x.length<V.length&&(x=x.concat(new Array(V.length-x.length)));const q=U?b:[],B=M?" rjsf-optional-array-field":"",K=M?(0,n.jsx)(F,{...e,fieldPathId:L}):void 0,G=S(p,t,x,r)&&!!z&&(!M||U),W={canAdd:G,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${B}`,disabled:d,fieldPathId:i,formData:o,items:q.map(((e,o)=>{const{key:i,item:l}=e,S=l,C=o>=V.length,R=(C&&(0,g.A)(t.additionalItems)?N.retrieveSchema(t.additionalItems,S):V[o])||{},F=(0,a.Yg)(o,D,L);let M;M=C?r.additionalItems:Array.isArray(r.items)?r.items[o]:A(r,l,o,I);const U=s?s[o]:void 0,z={index:o,itemKey:i,name:c&&`${c}-${o}`,registry:p,uiOptions:T,hideError:h,readonly:u,disabled:d,required:m,title:O?`${O}-${o+1}`:void 0,canAdd:G,canRemove:C,canMoveUp:o>=V.length+1,canMoveDown:C&&o<x.length-1,itemSchema:R,itemData:S,itemUiSchema:M,itemFieldPathId:F,itemErrorSchema:U,autofocus:f&&0===o,onBlur:y,onFocus:v,rawErrors:$,totalItems:b.length,onChange:w,handleAddItem:_,handleCopyItem:j,handleRemoveItem:E,handleReorderItems:P};return(0,n.jsx)(k,{...z},i)})),onAddClick:_,readonly:u,required:m,registry:p,schema:t,uiSchema:r,title:O,errorSchema:s,rawErrors:$,optionalDataControl:K},H=(0,a.$F)("ArrayFieldTemplate",p,T);return(0,n.jsx)(H,{...W})}function C(e){const{schema:t,uiSchema:r,errorSchema:i,fieldPathId:c,registry:l,formData:d,onChange:u}=e,{globalFormOptions:f,schemaUtils:h,translateString:p}=l,{keyedFormData:y,updateKeyedFormData:g}=function(e=[]){const t=(0,o.useMemo)((()=>(0,a.wM)(e)),[e]),[r,n]=(0,o.useState)((()=>({formDataHash:t,keyedFormData:b(e)})));let{keyedFormData:s,formDataHash:i}=r;if(t!==i){const r=Array.isArray(e)?e:[],o=s||[];s=r.length===o.length?o.map(((e,t)=>({key:e.key,item:r[t]}))):b(r),i=t,n({formDataHash:i,keyedFormData:s})}const c=(0,o.useCallback)((e=>{const t=w(e),r=(0,a.wM)(t);return n({formDataHash:r,keyedFormData:e}),t}),[]);return{keyedFormData:s,updateKeyedFormData:c}}(d),v=e.childFieldPathId??c,_=(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,m.A)(n,[t],i[e]):t>=r&&(0,m.A)(n,[t+1],i[e])}}const o={key:$(),item:j(l,t)},a=[...y];void 0!==r?a.splice(r,0,o):a.push(o),u(g(a),v.path,n)}),[y,l,t,u,g,i,v]),S=(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,m.A)(r,[n],i[e]):n>t&&(0,m.A)(r,[n+1],i[e])}}const n={key:$(),item:(0,s.A)(y[t].item)},o=[...y];void 0!==t?o.splice(t+1,0,n):o.push(n),u(g(o),v.path,r)}),[y,u,g,i,v]),A=(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,m.A)(r,[n],i[e]):n>t&&(0,m.A)(r,[n-1],i[e])}}const n=y.filter(((e,r)=>r!==t));u(g(n),v.path,r)}),[y,u,g,i,v]),k=(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,m.A)(n,[r],i[t]):o==r?(0,m.A)(n,[t],i[r]):(0,m.A)(n,[e],i[o])}}const o=function(){const e=y.slice();return e.splice(t,1),e.splice(r,0,y[t]),e}();u(g(o),v.path,n)}),[y,u,g,i,v]),C=(0,o.useCallback)(((e,t,r,n)=>{u(void 0===e?null:e,t,r,n)}),[u]),I=(0,o.useCallback)((e=>{u(e,v.path,void 0,v?.[a.K0])}),[u,v]),D={...e,formData:d,fieldPathId:v,onSelectChange:I},R={...e,handleAddItem:_,handleCopyItem:S,handleRemoveItem:A,handleReorderItems:k,keyedFormData:y,onChange:C};if(!(a.ZN in t)){if(!f.useFallbackUiForUnsupportedType){const e=(0,a.$R)(r),o=(0,a.$F)("UnsupportedFieldTemplate",l,e);return(0,n.jsx)(o,{schema:t,fieldPathId:c,reason:p(a.Zl.MissingItems),registry:l})}const e={...t,[a.ZN]:{type:void 0}};D.schema=e,R.schema=e}return h.isMultiSelect(D.schema)?(0,n.jsx)(E,{...D}):(0,a.ar)(r)?(0,n.jsx)(P,{...D}):(0,a.nQ)(D.schema)?(0,n.jsx)(N,{...R}):h.isFilesArray(D.schema,r)?(0,n.jsx)(x,{...D}):(0,n.jsx)(O,{...R})}const I=function(e){const{schema:t,name:r,uiSchema:s,fieldPathId:i,formData:c,registry:l,required:d,disabled:u,readonly:f,hideError:m,autofocus:h,title:p,onChange:y,onFocus:v,onBlur:$,rawErrors:b}=e,{title:w}=t,{widgets:_,translateString:S,globalUiOptions:A}=l,{widget:j="checkbox",title:E,label:P=!0,enumNames:x,...k}=(0,a.$R)(s,A),O=(0,a.Bt)(t,j,_),N=S(a.Zl.YesLabel),C=S(a.Zl.NoLabel);let I;const D=E??w??p??r;if(Array.isArray(t.oneOf))I=(0,a.f9)({oneOf:t.oneOf.map((e=>{if((0,g.A)(e))return{...e,title:e.title||(!0===e.const?N:C)}})).filter((e=>e))},s);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,a.f9)({enum:e},s)}const R=(0,o.useCallback)(((e,t,r)=>y(e,i.path,t,r)),[y,i]);return(0,n.jsx)(O,{options:{...k,enumOptions:I},schema:t,uiSchema:s,id:i.$id,name:r,onChange:R,onFocus:v,onBlur:$,label:D,hideLabel:!P,value:c,required:d,disabled:u,readonly:f,hideError:m,registry:l,autofocus:h,rawErrors:b,htmlName:i.name})};function D(e){const{id:t,formData:r,displayLabel:s=!0,schema:i,name:c,uiSchema:l,required:d,disabled:u=!1,readonly:f=!1,onBlur:m,onFocus:h,registry:p,fieldPathId:y,onChange:g,errorSchema:v}=e,{translateString:$,fields:b,globalFormOptions:w}=p,[_,S]=(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)),A=(0,a.$R)(l),j=(0,a.lB)((0,a.Yg)("__internal_type_selector",w,y)),E=$(a.Zl.Type),P=(0,o.useMemo)((()=>({type:"string",enum:["string","number","boolean","object","array"],default:"string",title:E})),[E]);if(!w.useFallbackUiForUnsupportedType){const{reason:t=$(a.Zl.UnknownFieldType,[String(i.type)])}=e,r=(0,a.$F)("UnsupportedFieldTemplate",p,A);return(0,n.jsx)(r,{schema:i,fieldPathId:y,reason:t,registry:p})}const x=(0,a.$F)("FallbackFieldTemplate",p,A),{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:_,onChange:e=>{null!=e&&(S(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:m,onFocus:h,registry:p,hideLabel:!s,disabled:u,readonly:f,required:d},r?(0,a.wM)(r):"__empty__"),schemaField:(0,n.jsx)(k,{...e,schema:{type:_,title:$(a.Zl.Value),..."object"===_&&{additionalProperties:!0}}})})}var R=r(8058),T=r(34098),F=r(39622),M=r(63338),U=r(38446),V=r(9703),z=r(77127),L=r(45572);const q=function(e,t){return(0,L.A)(t,(function(t){return e[t]}))};var B=r(27422);const K=function(e){return null==e?[]:q(e,(0,B.A)(e))};var G=Math.max;const W=function(e,t,r,n){e=(0,U.A)(e)?e:K(e),r=r&&!n?(0,z.A)(r):0;var o=e.length;return r<0&&(r=G(o+r,0)),(0,V.A)(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&(0,M.A)(e,t,r)>-1};var H=r(8300),J=r(83149),Z=r(87809),Y=r(52789),X=r(64099),Q=Math.min;const ee=function(e,t,r){for(var n=r?Z.A:J.A,o=e[0].length,a=e.length,s=a,i=Array(a),c=1/0,l=[];s--;){var d=e[s];s&&t&&(d=(0,L.A)(d,(0,Y.A)(t))),c=Q(d.length,c),i[s]=!r&&(t||o>=120&&d.length>=120)?new H.A(s&&d):void 0}d=e[0];var u=-1,f=i[0];e:for(;++u<o&&l.length<c;){var m=d[u],h=t?t(m):m;if(m=r||0!==m?m:0,!(f?(0,X.A)(f,h):n(l,h,r))){for(s=a;--s;){var p=i[s];if(!(p?(0,X.A)(p,h):n(e[s],h,r)))continue e}f&&f.push(h),l.push(m)}}return l};var te=r(24326),re=r(53533);const ne=function(e){return(0,re.A)(e)?e:[]};const oe=(0,te.A)((function(e){var t=(0,L.A)(e,ne);return t.length&&t[0]===e[0]?ee(t):[]}));var ae,se,ie=r(89610),ce=r(46996),le=r(34963),de=r(69592),ue=r(26666);!function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"}(ae||(ae={})),function(e){e.ALL="all",e.SOME="some",e.NONE="none"}(se||(se={}));const fe=/^\$lookup=(.+)/,me="layoutGrid";function he(e,t){return e??t}const pe=(0,a.cq)();function ye(e,t,r){let n={},o=e[t];if((0,le.A)(o)){const{children:e,className:t,...s}=o;if(o=e,t){const e=t.split(" ").map((e=>(0,a.a6)(r,e,e))).join(" ");n={...s,className:e}}else n=s}if(!Array.isArray(o))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:o,gridProps:n}}function ge(e,t,r){let n;if(/^\d+?$/.test(r)&&e&&"array"===e?.type&&(0,F.A)(e,a.ZN)){const o=Number(r),s=e[a.ZN];n=Array.isArray(s)?o>s.length?(0,ue.A)(s):s[o]:s,t={[a.K0]:t[a.K0],path:[...t.path.slice(0,t.path.length-1),o]}}return{rawSchema:n,fieldPathId:t}}function ve(e,t){let r,o,s=null,i={};if((0,V.A)(t)||(0,de.A)(t))r=t??"";else{const{name:l="",render:d,...u}=t;r=l,i=u,(0,c.A)(i)||(0,R.A)(i,((t,r)=>{if((0,V.A)(t)){const n=fe.exec(t);if(Array.isArray(n)&&n.length>1){const t=n[1];i[r]=(0,a.a6)(e,t,t)}}})),s=function(e,t){let r=e;return(0,V.A)(r)&&(r=(0,a.a6)(t,r)),(0,ie.A)(r)?r:null}(d,e),!l&&s&&(o=(0,n.jsx)(s,{...u,"data-testid":pe.uiComponent}))}return{name:r,UIComponent:s,uiProps:i,rendered:o}}function $e(e){const{childrenLayoutGridSchemaId:t,...r}=e,{registry:n,schema:s,formData:i}=r,{schemaUtils:c}=n,l=c.retrieveSchema(s,i);return t.map((e=>(0,o.createElement)(je,{...r,key:`layoutGrid-${(0,a.wM)(e)}`,schema:l,layoutGridSchema:e})))}function be(e){const{layoutGridSchema:t,...r}=e,{formData:o,registry:a}=r,{children:s,gridProps:c}=ye(t,ae.CONDITION,a),{operator:l,field:d="",value:u}=c;return function(e,t,r="$0m3tH1nG Un3xP3cT3d"){const n=(0,T.A)([t]).sort(),o=(0,T.A)([r]).sort();switch(e){case se.ALL:return(0,ce.A)(n,o);case se.SOME:return oe(n,o).length>0;case se.NONE:return 0===oe(n,o).length;default:return!1}}(l,(0,i.A)(o,d,null),u)?(0,n.jsx)($e,{...r,childrenLayoutGridSchemaId:s}):null}function we(e){const{layoutGridSchema:t,...r}=e,{registry:o,uiSchema:s}=r,{children:i,gridProps:c}=ye(t,ae.COLUMN,o),l=(0,a.$R)(s),d=(0,a.$F)("GridTemplate",o,l);return(0,n.jsx)(d,{column:!0,"data-testid":pe.col,...c,children:(0,n.jsx)($e,{...r,childrenLayoutGridSchemaId:i})})}function _e(e){const{layoutGridSchema:t,...r}=e,{registry:o,uiSchema:s}=r,{children:i,gridProps:c}=ye(t,ae.COLUMNS,o),l=(0,a.$R)(s),d=(0,a.$F)("GridTemplate",o,l);return i.map((e=>(0,n.jsx)(d,{column:!0,"data-testid":pe.col,...c,children:(0,n.jsx)($e,{...r,childrenLayoutGridSchemaId:[e]})},`column-${(0,a.wM)(e)}`)))}function Se(e){const{layoutGridSchema:t,...r}=e,{registry:o,uiSchema:s}=r,{children:i,gridProps:c}=ye(t,ae.ROW,o),l=(0,a.$R)(s),d=(0,a.$F)("GridTemplate",o,l);return(0,n.jsx)(d,{...c,"data-testid":pe.row,children:(0,n.jsx)($e,{...r,childrenLayoutGridSchemaId:i})})}function Ae(e){const{gridSchema:t,schema:r,uiSchema:o,errorSchema:s,fieldPathId:l,onBlur:d,onFocus:u,formData:f,readonly:h,registry:p,layoutGridSchema:y,...g}=e,{onChange:v}=g,{fields:$}=p,{SchemaField:b,LayoutMultiSchemaField:w}=$,_=ve(p,t),{name:S,UIComponent:A,uiProps:j}=_,{schema:E,isRequired:P,isReadonly:x,optionsInfo:k,fieldPathId:O}=function(e,t,r,n,o){const{schemaUtils:s,globalFormOptions:l}=e;let d=r,u=o;const f=t.split("."),m=f.pop();let h,p=s.retrieveSchema(d,n),y=n,g=p.readOnly;f.forEach((e=>{if(u=(0,a.Yg)(e,l,u),(0,F.A)(p,a.s1))d=(0,i.A)(p,[a.s1,e],{});else if(p&&((0,F.A)(p,a.Ru)||(0,F.A)(p,a.Xo))){const t=(0,F.A)(p,a.Ru)?a.Ru:a.Xo,r=s.findSelectedOptionInXxxOf(p,e,t,y);d=(0,i.A)(r,[a.s1,e],{})}else{const t=ge(p,u,e);d=t.rawSchema??{},u=t.fieldPathId}y=(0,i.A)(y,e,{}),p=s.retrieveSchema(d,y),g=he(p.readOnly,g)}));let v=!1;if((0,c.A)(p)&&(p=void 0),p&&m){if(p&&((0,F.A)(p,a.Ru)||(0,F.A)(p,a.Xo))){const e=(0,F.A)(p,a.Ru)?a.Ru:a.Xo;p=s.findSelectedOptionInXxxOf(p,m,e,y)}u=(0,a.Yg)(m,l,u),v=void 0!==p&&Array.isArray(p.required)&&W(p.required,m);const e=ge(p,u,m);if(e.rawSchema?(p=e.rawSchema,u=e.fieldPathId):(p=(0,i.A)(p,[a.s1,m]),p=p?s.retrieveSchema(p):p),g=he(p?.readOnly,g),p&&((0,F.A)(p,a.Ru)||(0,F.A)(p,a.Xo))){const e=(0,F.A)(p,a.Ru)?a.Ru:a.Xo,t=(0,a.KU)(p);h={options:p[e],hasDiscriminator:!!t}}}return{schema:p,isRequired:v,isReadonly:g,optionsInfo:h,fieldPathId:u}}(p,S,r,f,l),N=(0,a.lB)(O);if(_.rendered)return _.rendered;if(E){const e=k?.hasDiscriminator?w:b,{fieldUiSchema:t,uiReadonly:r}=function(e,t,r,n,o){const s=(0,i.A)(r,[a.AK],{}),l=(0,i.A)(r,e),d={...(0,i.A)(l,[a.ce],{}),...t,...s},u={...l};(0,c.A)(d)||(0,m.A)(u,[a.ce],d),(0,c.A)(s)||(0,m.A)(u,[a.AK],s);let{readonly:f}=(0,a.$R)(u);return(!0===o||(0,de.A)(f)&&!0===n)&&(f=!0,(0,F.A)(d,a.jY)?(0,m.A)(u,[a.ce,a.jY],!0):(0,m.A)(u,`ui:${a.jY}`,!0)),{fieldUiSchema:u,uiReadonly:f}}(S,j,o,x,h);return(0,n.jsx)(e,{"data-testid":k?.hasDiscriminator?pe.layoutMultiSchemaField:pe.field,...g,name:S,required:P,readonly:r,schema:E,uiSchema:t,errorSchema:(0,i.A)(s,S),fieldPathId:N,formData:(0,i.A)(f,S),onChange:v,onBlur:d,onFocus:u,options:k?.options,registry:p})}return A?(0,n.jsx)(A,{"data-testid":pe.uiComponent,...g,name:S,required:P,formData:f,readOnly:!!x||h,errorSchema:s,uiSchema:o,schema:r,fieldPathId:l,onBlur:d,onFocus:u,registry:p,...j}):null}function je(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const o=(0,a.$R)(t);if(!r&&me in o&&(0,g.A)(o[me])&&(r=o[me]),(0,g.A)(r)){if(ae.ROW in r)return(0,n.jsx)(Se,{...e,layoutGridSchema:r});if(ae.COLUMN in r)return(0,n.jsx)(we,{...e,layoutGridSchema:r});if(ae.COLUMNS in r)return(0,n.jsx)(_e,{...e,layoutGridSchema:r});if(ae.CONDITION in r)return(0,n.jsx)(be,{...e,layoutGridSchema:r})}return(0,n.jsx)(Ae,{...e,gridSchema:r})}function Ee(e){const{fieldPathId:t,title:r,schema:o,uiSchema:s,required:i,registry:c,name:l}=e,d=(0,a.$R)(s,c.globalUiOptions),{title:u}=d,{title:f}=o,m=u||r||f||l;if(!m)return null;const h=(0,a.$F)("TitleFieldTemplate",c,d);return(0,n.jsx)(h,{id:(0,a.EH)(t),title:m,required:i,schema:o,uiSchema:s,registry:c})}je.TEST_IDS=pe;var Pe=r(42302),xe=r(54930);function ke(e,t,r){return e.map((({schema:e})=>e)).find((e=>{const n=(0,i.A)(e,[a.s1,t]);return(0,i.A)(n,a.uh,(0,i.A)(n,a.qC,"!@#!@$@#$!@$#"))===r}))}function Oe(e,t,r,n,o){const s=t.map((e=>r.retrieveSchema(e,o)));let i=e;(0,F.A)(e,a.Ru)?i={...e,[a.Ru]:s}:(0,F.A)(e,a.Xo)&&(i={...e,[a.Xo]:s});const c=(0,a.f9)(i,n);if(!c)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(i)}`);return c}function Ne(e){const{name:t,baseType:r,disabled:s=!1,formData:l,fieldPathId:d,onBlur:u,onChange:f,options:h,onFocus:p,registry:y,uiSchema:g,schema:v,autofocus:$,readonly:b,required:w,errorSchema:_,hideError:S=!1}=e,{widgets:A,schemaUtils:j,globalUiOptions:E}=y,[P,x]=(0,o.useState)(Oe(v,h,j,g,l)),k=(0,i.A)(d,a.K0),O=(0,a.KU)(v),N=(0,a.$F)("FieldErrorTemplate",y,h),C=(0,a.$F)("FieldTemplate",y,h),I=(0,a.wM)(v),D=(0,a.wM)(h),R=g?(0,a.wM)(g):"",T=l?(0,a.wM)(l):"";(0,o.useEffect)((()=>{x(Oe(v,h,j,g,l))}),[I,D,j,R,T]);const{widget:F=(O?"radio":"select"),title:M="",placeholder:U="",optionsSchemaSelector:V=O,hideError:z,...L}=(0,a.$R)(g);if(!V)throw new Error("No selector field provided for the LayoutMultiSchemaField");const q=(0,i.A)(l,V);let B=(0,i.A)(P[0]?.schema,[a.s1,V],{});const K=ke(P,V,q);B=B?.type?B:{...B,type:K?.type||r};const G=(0,a.Bt)(B,F,A),W=void 0===z?S:Boolean(z),H=(0,i.A)(_,[a.s2],[]),J=(0,xe.A)(_,[a.s2]),Z=j.getDisplayLabel(v,g,E),Y={enumOptions:P,...L},X=!W&&H.length>0?(0,n.jsx)(N,{fieldPathId:d,schema:v,errors:H,registry:y}):void 0;return(0,n.jsx)(C,{id:k,schema:v,label:(M||v.title)??"",disabled:s||Array.isArray(P)&&(0,c.A)(P),uiSchema:g,required:w,readonly:!!b,registry:y,displayLabel:Z,errors:X,onChange:f,onKeyRename:Pe.A,onKeyRenameBlur:Pe.A,onRemoveProperty:Pe.A,children:(0,n.jsx)(G,{id:k,name:t,schema:v,label:(M||v.title)??"",disabled:s||Array.isArray(P)&&(0,c.A)(P),uiSchema:g,autofocus:$,readonly:b,required:w,registry:y,multiple:!1,rawErrors:H,hideError:W,hideLabel:!Z,errorSchema:J,placeholder:U,onChange:e=>{const t=ke(P,V,e),r=ke(P,V,q);let n=j.sanitizeDataForNewSchema(t,r,l);n&&t&&(n=j.getDefaultFormState(t,n,"excludeObjectChildren")),n&&(0,m.A)(n,V,e),f(n,d.path,void 0,k)},onBlur:u,onFocus:p,value:q,options:Y,htmlName:d.name})})}class Ce 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:s}=this.state;let i=this.state;if(!(0,a.c2)(e.options,n)){const{registry:{schemaUtils:e}}=this.props;i={selectedOption:s,retrievedOptions:n.map((t=>e.retrieveSchema(t,r)))}}if(!(0,a.c2)(r,e.formData)&&o.$id===e.fieldPathId.$id){const{retrievedOptions:e}=i,n=this.getMatchingOption(s,r,e);t&&n!==s&&(i={selectedOption:n,retrievedOptions:e})}i!==this.state&&this.setState(i)}getMatchingOption(e,t,r){const{schema:n,registry:{schemaUtils:o}}=this.props,s=(0,a.KU)(n);return o.getClosestMatchingOption(t,r,e,s)}onOptionChange=e=>{const{selectedOption:t,retrievedOptions:r}=this.state,{formData:n,onChange:o,registry:a,fieldPathId:s}=this.props,{schemaUtils:i}=a,c=void 0!==e?parseInt(e,10):-1;if(c===t)return;const l=c>=0?r[c]:void 0,d=t>=0?r[t]:void 0;let u=i.sanitizeDataForNewSchema(l,d,n);l&&(u=i.getDefaultFormState(l,u,"excludeObjectChildren")),this.setState({selectedOption:c},(()=>{o(u,s.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:s,onFocus:l,readonly:d,required:u=!1,registry:f,schema:m,uiSchema:h}=this.props,{widgets:p,fields:y,translateString:g,globalUiOptions:v,schemaUtils:$}=f,{SchemaField:b}=y,w=(0,a.$F)("MultiSchemaFieldTemplate",f,v),_=(0,a.II)(f,m,u,h),S=(0,a.Uc)(o),{selectedOption:A,retrievedOptions:j}=this.state,{widget:E="select",placeholder:P,autofocus:x,autocomplete:k,title:O=m.title,...N}=(0,a.$R)(h,v),C=(0,a.Bt)({type:"number"},E,p),I=(0,i.A)(r,a.s2,[]),D=(0,xe.A)(r,[a.s2]),R=$.getDisplayLabel(m,h,v),T=A>=0&&j[A]||null;let F;if(T){const{required:e}=m;F=e?(0,a.dW)({required:e},T):T}let M=[];a.Ru in m&&h&&a.Ru in h?Array.isArray(h[a.Ru])?M=h[a.Ru]:console.warn(`uiSchema.oneOf is not an array for "${O||e}"`):a.Xo in m&&h&&a.Xo in h&&(Array.isArray(h[a.Xo])?M=h[a.Xo]:console.warn(`uiSchema.anyOf is not an array for "${O||e}"`));let U=h;A>=0&&M.length>A&&(U=M[A]);const V=O?a.Zl.TitleOptionPrefix:a.Zl.OptionPrefix,z=O?[O]:[],L=j.map(((e,t)=>{const{title:r=e.title}=(0,a.$R)(M[t]);return{label:r||g(V,z.concat(String(t+1))),value:t}})),q=!_||S?(0,n.jsx)(C,{id:this.getFieldId(),name:`${e}${m.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:s,onFocus:l,disabled:t||(0,c.A)(L),multiple:!1,rawErrors:I,errorSchema:D,value:A>=0?A:void 0,options:{enumOptions:L,...N},registry:f,placeholder:P,autocomplete:k,autofocus:x,label:O??e,hideLabel:!R,readonly:d}):void 0,B=F&&"null"!==F.type&&(0,n.jsx)(b,{...this.props,schema:F,uiSchema:U})||null;return(0,n.jsx)(w,{schema:m,registry:f,uiSchema:h,selector:q,optionSchemaField:B})}}const Ie=Ce,De=/\.([0-9]*0)*$/,Re=/[0.]0*$/;const Te=function(e){const{registry:t,onChange:r,formData:s,value:i}=e,[c,l]=(0,o.useState)(i),{StringField:d}=t.fields;let u=s;const f=(0,o.useCallback)(((e,t,n,o)=>{l(e),"."===`${e}`.charAt(0)&&(e=`0${e}`);const s="string"===typeof e&&e.match(De)?(0,a.i)(e.replace(Re,"")):(0,a.i)(e);r(s,t,n,o)}),[r]);if("string"===typeof c&&"number"===typeof u){const e=new RegExp(`^(${String(u).replace(".","\\.")})?\\.?0*$`);c.match(e)&&(u=c)}return(0,n.jsx)(d,{...e,formData:u,onChange:f})};function Fe(){return Fe=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},Fe.apply(null,arguments)}const Me=["strong","em","del","mark"],Ue=[["**",Me[0]],["__",Me[0]],["~~",Me[2]],["==",Me[3]],["*","em"],["_","em"]];function Ve(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]?")":"]",a=1;for(n++;n<e.length&&a>0;)"\\"!==e[n]?("("===e[n]&&")"===o&&a++,e[n]===o&&a--,n++):n+=2;if(0===a)return n}return-1}function ze(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,a="",s=0;s<6;s++){var i=Ue[s][0];if(e.startsWith(i)&&e.length>=2*i.length){n=i,o=i.length,a=Ue[s][1];break}}if(!n)return null;for(var c=o,l=!1,d=!1,u="",f=0,m="",h=!1,p="";c<e.length;){var y=e[c];if(h)m+=y,h=!1,p=y,c++;else if("\\"!==y)if("`"!==y||0!==f){if("["===y&&!l&&0===f){var g=Ve(e,c);if(-1!==g){m+=e.slice(c,g),c=g,p=e[g-1];continue}}if(d)m+=y,u?y===u&&(u=""):'"'===y||"'"===y?u=y:">"===y&&(d=!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),a,m+e.slice(c+o,c+v)];return $.index=0,$.input=e,$}}m+=y,p=y,c++}else{var b=e[c+1],w=e.indexOf(">",c);if(-1!==w){var _=e.slice(c,w+1).endsWith("/>");"/"===b?f=Math.max(0,f-1):_||f++}d=!0,m+=y,p=y,c++}}else l=!l,m+=y,p=y,c++;else m+=y,h=!0,p=y,c++}return null}const Le=["children","options"],qe=["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"}),Be={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xa0",quot:"\u201c"},Ke=["style","script","pre"],Ge=["src","href","data","formAction","srcDoc","action"],We=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,He=/\n{2,}$/,Je=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Ze=/^ *> ?/gm,Ye=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Xe=/^ {2,}\n/,Qe=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,et=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,tt=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,rt=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,nt=/^(?:\n *)*\n/,ot=/\r\n?/g,at=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,st=/^\[\^([^\]]+)]/,it=/\f/g,ct=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,lt=/^\[(x|\s)\]/,dt=/^(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ut=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ft=/^([^\n]+)\n *(=|-)\2{2,} *\n/,mt=/^<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>/i;function ht(e){const t=mt.exec(e);if(!t)return null;const r=t[1],n=r.toLowerCase(),o=n.length+1;let a=t[0].length;"\n"===e[a]&&a++;const s=a;let i=a,c=1;const l=e.length;for(;c>0;){const t=e.indexOf("<",a);if(-1===t)return null;let s=-1,d=-1;if("/"===e[t+1])d=t;else if(e[t+1]===n[0]||e[t+1]===r[0]){let a=!0;for(let o=0;o<n.length;o++){const s=e[t+1+o];if(s!==n[o]&&s!==r[o]){a=!1;break}}!a||" "!==e[t+o]&&">"!==e[t+o]||(s=t)}if(-1!==s||-1!==d)if(-1!==s&&(-1===d||s<d))a=s+o+1,c++;else{let t=d+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 a=0;a<n.length;a++){const s=e[t+a];if(s!==n[a]&&s!==r[a]){o=!1;break}}if(!o){a=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]){a=t;continue}i=d,a=t+1,c--}else a=t+1}let d=0;for(;a+d<l&&"\n"===e[a+d];)d++;return[e.slice(0,a+d),r,t[2],e.slice(s,i)]}const pt=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,yt=/^<!--[\s\S]*?(?:-->)/,gt=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,vt=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,$t=/^\{.*\}$/,bt=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,wt=/^<([^ >]+[:@\/][^ >]+)>/,_t=/-([a-z])?/gi,St=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,At=/^[^\n]+(?: \n|\n{2,})/,jt=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Et=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Pt=/^\[([^\]]*)\] ?\[([^\]]*)\]/,xt=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,kt=/\t/g,Ot=/(^ *\||\| *$)/g,Nt=/^ *:-+: *$/,Ct=/^ *:-+ *$/,It=/^ *-+: *$/,Dt=/^(:[a-zA-Z0-9-_]+:)/,Rt=/^\\([^0-9A-Za-z\s])/,Tt=/\\([^0-9A-Za-z\s])/g,Ft=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,Mt=/^\n+/,Ut=/^([ \t]*)/,Vt=/(?:^|\n)( *)$/,zt="(?:\\d+\\.)",Lt="(?:[*+-])";function qt(e){return"( *)("+(1===e?zt:Lt)+") +"}const Bt=qt(1),Kt=qt(2);function Gt(e){return RegExp("^"+(1===e?Bt:Kt))}const Wt=Gt(1),Ht=Gt(2);function Jt(e){return RegExp("^"+(1===e?Bt:Kt)+"[^\\n]*(?:\\n(?!\\1"+(1===e?zt:Lt)+" )[^\\n]*)*(\\n|$)","gm")}const Zt=Jt(1),Yt=Jt(2);function Xt(e){const t=1===e?zt:Lt;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Qt=Xt(1),er=Xt(2);function tr(e,t){const r=1===t,n=r?Qt:er,o=r?Zt:Yt,a=r?Wt:Ht;return{t:e=>a.test(e),o:hr((function(e,t){const r=Vt.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 s=r?+e[2]:void 0,i=e[0].replace(He,"\n").match(o),c=a.exec(i[0]),l=RegExp("^ {1,"+(c?c[0].length:0)+"}","gm");let d=!1;return{items:i.map((function(e,r){const o=e.replace(l,"").replace(a,""),s=r===i.length-1,c=ir(o,"\n\n")||s&&d;d=c;const u=n.inline,f=n.list;let m;n.list=!0,c?(n.inline=!1,m=ar(o)+"\n\n"):(n.inline=!0,m=ar(o));const h=t(m,n);return n.inline=u,n.list=f,h})),ordered:r,start:s}}}}const rr=RegExp("^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),nr=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function or(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 sr(e,t){return e.startsWith(t)}function ir(e,t){return-1!==e.indexOf(t)}function cr(e,t,r){if(Array.isArray(r)){for(let t=0;t<r.length;t++)if(sr(e,r[t]))return!0;return!1}return r(e,t)}function lr(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 It.test(e)?"right":Nt.test(e)?"center":Ct.test(e)?"left":null}function ur(e,t,r,n){const o=r.inTable;r.inTable=!0;let a=[[]],s="";function i(){if(!s)return;const e=a[a.length-1];e.push.apply(e,t(s,r)),s=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach(((e,t,r)=>{"|"===e.trim()&&(i(),n)?0!==t&&t!==r.length-1&&a.push([]):s+=e})),i(),r.inTable=o,a}function fr(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(Ot,"").split("|").map(dr):[],o=e[3]?function(e,t,r){return e.trim().split("\n").map((function(e){return ur(e,t,r,!0)}))}(e[3],t,r):[],a=ur(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:a,type:"25"}:{children:a,type:"21"}}function mr(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function hr(e){return e.inline=1,e}function pr(e){return hr((function(t,r){return r.inline?e.exec(t):null}))}function yr(e){return hr((function(t,r){return r.inline||r.simple?e.exec(t):null}))}function gr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function vr(e){return hr((function(t){return e.exec(t)}))}const $r=/(javascript|vbscript|data(?!:image)):/i;function br(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if($r.test(t))return null}catch(e){return null}return e}function wr(e){return e?e.replace(Tt,"$1"):e}function _r(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function Sr(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function Ar(e,t,r){const n=r.inline||!1;r.inline=!1;const o=e(t,r);return r.inline=n,o}const jr=(e,t,r)=>({children:_r(t,e[2],r)});function Er(){return{}}function Pr(...e){return e.filter(Boolean).join(" ")}function xr(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 kr(e,t,r,n){if(!t||!t.trim())return null;const o=t.match(We);return o?o.reduce((function(t,o){const a=o.indexOf("=");if(-1!==a){const s=function(e){return-1!==e.indexOf("-")&&null===e.match(gt)&&(e=e.replace(_t,(function(e,t){return t.toUpperCase()}))),e}(o.slice(0,a)).trim(),i=qe[s]||s;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 s=0;s<e.length;s++){const a=e[s];if('"'===a||"'"===a)o?a===o&&(o="",n--):(o=a,n++);else if("("===a&&r.endsWith("url"))n++;else if(")"===a&&n>0)n--;else if(";"===a&&0===n){const e=r.indexOf(":");e>0&&t.push([r.slice(0,e).trim(),r.slice(e+1).trim()]),r="";continue}r+=a}const a=r.indexOf(":");return a>0&&t.push([r.slice(0,a).trim(),r.slice(a+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!==Ge.indexOf(t)?n(wr(r),e,t):(r.match($t)&&(r=wr(r.slice(1,r.length-1))),"true"===r||"false"!==r&&r)}(e,s,function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(o.slice(a+1).trim()),r);"string"==typeof c&&(mt.test(c)||vt.test(c))&&(t[i]=n(c.trim()))}else"style"!==o&&(t[qe[o]||o]=!0);return t}),{}):null}function Or(e,t){for(let r=0;r<e.length;r++)if(e[r].test(t))return!0;return!1}const Nr=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?Fe({},Be,t.namedCodesToUnicode):Be;const r=t.slugify||lr,n=t.sanitizer||br,a=t.createElement||o.createElement,s=[Je,et,tt,t.enforceAtxHeadings?ut:dt,ft,St,Qt,er],i=[...s,At,mt,yt,vt];function c(e,r,...n){const o=xr(t.overrides,e+".props",{});return a(function(e,t){const r=xr(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:xr(t,e+".component",e):e}(e,t.overrides),Fe({},r,o,{className:Pr(null==r?void 0:r.className,o.className)||void 0}),...n)}function l(e){e=e.replace(ct,"");let n=!1;t.forceInline?n=!0:t.forceBlock||(n=!1===xt.test(e));const o=m(n?e:ar(e).replace(Mt,"")+"\n\n",{inline:n});if(t.ast)return o;const s=h(o);for(;or(s[s.length-1])&&!s[s.length-1].trim();)s.pop();if(d.length&&s.push(c("footer",{key:"footer"},d.map((function(e){return c("div",{id:r(e.identifier,lr),key:e.identifier},e.identifier,h(m(e.footnote,{inline:!0})))})))),null===t.wrapper)return s;const i=t.wrapper||(n?"span":"div");let l;if(s.length>1||t.forceWrapper)l=s;else{if(1===s.length)return l=s[0],"string"==typeof l?c("span",{key:"outer"},l):l;l=null}return a(i,Fe({key:"outer"},t.wrapperProps),l)}const d=[],u={},f={0:{t:[">"],o:gr(Je),u:1,i(e,t,r){const[,n,o]=e[0].replace(Ze,"").match(Ye);return{alert:n,children:t(o,r)}}},1:{t:[" "],o:pr(Xe),u:1,i:Er},2:{t:function(e,t){if(t.inline||t.simple)return!1;var r=e[0];return"-"===r||"*"===r||"_"===r},o:gr(Qe),u:1,i:Er},3:{t:[" "],o:gr(tt),u:0,i:e=>({lang:void 0,text:wr(ar(e[0].replace(/^ {4}/gm,"")))})},4:{t:["```","~~~"],o:gr(et),u:0,i:e=>({attrs:kr("code",e[3]||"",n,l),lang:e[2]||void 0,text:e[4],type:"3"})},5:{t:["`"],o:yr(rt),u:3,i:e=>({text:wr(e[2])})},6:{t:["[^"],o:gr(at),u:0,i:e=>(d.push({footnote:e[2],identifier:e[1]}),{})},7:{t:["[^"],o:pr(st),u:1,i:e=>({target:"#"+r(e[1],lr),text:e[1]})},8:{t:["[ ]","[x]"],o:pr(lt),u:1,i:e=>({completed:"x"===e[1].toLowerCase()})},9:{t:["#"],o:gr(t.enforceAtxHeadings?ut:dt),u:1,i:(e,t,n)=>({children:_r(t,e[2],n),id:r(e[2],lr),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:gr(ft),u:1,i:(e,t,r)=>({children:_r(t,e[1],r),level:"="===e[2]?1:2,type:"9"})},11:{t:["<"],o:hr(ht),u:1,i(e,t,r){const[,o]=e[3].match(Ut),a=RegExp("^"+o,"gm"),s=e[3].replace(a,""),c=Or(i,s)?Ar:_r,d=e[1].toLowerCase(),u=-1!==Ke.indexOf(d),f=(u?d:e[1]).trim(),m={attrs:kr(f,e[2],n,l),noInnerParse:u,tag:f};if(r.inAnchor=r.inAnchor||"a"===d,u)m.text=e[3];else{const e=r.inHTML;r.inHTML=!0,m.children=c(t,s,r),r.inHTML=e}return r.inAnchor=!1,m}},13:{t:["<"],o:vr(vt),u:1,i(e){const t=e[1].trim();return{attrs:kr(t,e[2]||"",n,l),tag:t}}},12:{t:["\x3c!--"],o:vr(yt),u:1,i:()=>({})},14:{t:["!["],o:yr(nr),u:1,i:e=>({alt:wr(e[1]),target:wr(e[2]),title:wr(e[3])})},15:{t:["["],o:pr(rr),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]&&(ir(e,":")||ir(e,"@")||ir(e,"/"))},o:pr(wt),u:0,i(e){let t=e[1],r=!1;return ir(t,"@")&&!ir(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&&sr(e,"http"),o:pr(bt),u:0,i:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},20:tr(0,1),30:tr(0,2),19:{t:["\n"],o:gr(nt),u:3,i:Er},21:{t:function(e,t){return!t.inline&&!t.simple},o:hr((function(e,t){if(t.inline||t.simple||t.inHTML&&!ir(e,"\n\n")&&!ir(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),a=e[n];if((">"===a||"#"===a||"|"===a||"`"===a||"~"===a||"*"===a||"-"===a||"_"===a||" "===a)&&Or(s,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:jr},22:{t:["["],o:pr(jt),u:0,i:e=>(u[e[1]]={target:e[2],title:e[4]},{})},23:{t:["!["],o:yr(Et),u:0,i:e=>({alt:e[1]?wr(e[1]):void 0,ref:e[2]})},24:{t:e=>"["===e[0]&&!ir(e,"]("),o:pr(Pt),u:0,i:(e,t,r)=>({children:t(e[1],r),fallbackChildren:e[0],ref:e[2]})},25:{t:["|"],o:gr(St),u:1,i:fr},27:{o:hr((function(e,t){let r;return sr(e,":")&&(r=Dt.exec(e)),r||Ft.exec(e)})),u:4,i(e){const r=e[0];return{text:ir(r,"&")?r.replace(pt,((e,r)=>t.namedCodesToUnicode[r]||e)):r}}},34:{t:["*","_","~","="],o:hr(ze),u:2,i:(e,t,r)=>({children:t(e[2],r),tag:e[1]})},28:{t:["\\"],o:yr(Rt),u:1,i:e=>({text:e[1],type:"27"})}};!0===t.disableParsingRawHTML&&(delete f[11],delete f[13]);const m=function(e){var t=Object.keys(e);function r(n,o){var a=[];if(o.prevCapture=o.prevCapture||"",n.trim())for(;n;)for(var s=0;s<t.length;){var i=t[s],c=e[i];if(!c.t||cr(n,o,c.t)){var l=c.o(n,o);if(l&&l[0]){n=n.substring(l[0].length);var d=c.i(l,r,o);o.prevCapture+=l[0],d.type||(d.type=i),a.push(d);break}s++}else s++}return o.prevCapture="",a}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(ot,"\n").replace(it,"").replace(kt," ")}(e),t)}}(f),h=function(e,t,r,n,o){function a(e){return Array.isArray(e)?e.map((e=>"text"in e?e.text:"")):"text"in e?e.text:""}return function s(i,c={}){const l=(c.renderDepth||0)+1;if(l>2500)return a(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=s(i[n],c),o=or(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 a=function(a,s,i){const c=()=>function(e,t,r,n,o,a,s){switch(e.type){case"0":{const o={key:r.key};return e.alert&&(o.className="markdown-alert-"+a(e.alert.toLowerCase(),lr),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",Fe({},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,Fe({key:r.key},e.attrs),e.text||(e.children?t(e.children,r):""));case"13":return n(e.tag,Fe({},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 s[e.ref]?n("img",{key:r.key,alt:e.alt,src:o(s[e.ref].target,"img","src"),title:s[e.ref].title}):null;case"24":return s[e.ref]?n("a",{key:r.key,href:o(s[e.ref].target,"a","href"),title:s[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,a){return n("th",{key:a,style:mr(o,a)},t(e,r))})))),n("tbody",null,o.cells.map((function(e,a){return n("tr",{key:a},e.map((function(e,a){return n("td",{key:a,style:mr(o,a)},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}}(a,s,i,t,r,n,o);return e?e(c,a,s,i):c()}(i,s,c);return c.renderDepth=l-1,a}catch(e){if(e instanceof RangeError&&e.message.includes("Maximum call stack"))return a(i);throw e}}}(t.renderRule,c,n,r,u);return l(e)}(null==t?"":t,Fe({},r,{wrapperProps:Fe({},null==r?void 0:r.wrapperProps,n)}))},Cr=Symbol("remove-this-key"),Ir=Symbol("reset");function Dr(e,t){return Array.isArray(e.required)&&-1!==e.required.indexOf(t)}function Rr(e){const{fieldPathId:t,schema:r,registry:s,uiSchema:i,errorSchema:c,formData:l,onChange:d,onBlur:u,onFocus:f,disabled:m,readonly:h,required:p,hideError:y,propertyName:g,handleKeyRename:v,handleRemoveProperty:$,addedByAdditionalProperties:b}=e,[w,_]=(0,o.useState)(!1),{globalFormOptions:S,fields:A}=s,{SchemaField:j}=A,E=(0,a.lB)((0,a.Yg)(g,S,t.path)),P=(0,o.useCallback)(((e,t,r,n)=>{void 0===e&&b&&(e=""),d(e,t,r,n)}),[d,b]),x=(0,o.useCallback)((e=>{g!==e&&_(!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:w,onKeyRename:x,onKeyRenameBlur:k,onRemoveProperty:O,onChange:P,onBlur:u,onFocus:f,registry:s,disabled:m,readonly:h,hideError:y})}function Tr(e){const{schema:t,uiSchema:r={},formData:s,errorSchema:c,fieldPathId:l,name:d,required:u=!1,disabled:f,readonly:h,hideError:p,onBlur:y,onFocus:v,onChange:$,registry:b,title:w}=e,{fields:_,schemaUtils:S,translateString:A,globalUiOptions:j}=b,{OptionalDataControlsField:E}=_,P=S.retrieveSchema(t,s,!0),x=(0,a.$R)(r,j),{properties:k={}}=P,O=e.childFieldPathId??l,N=x.title??P.title??w??d,C=x.description??P.description,I=(0,a.II)(b,P,u,r),D=(0,a.Uc)(s);let R=[];const T=(0,o.useCallback)(((e,t)=>{const{duplicateKeySuffixSeparator:n="-"}=(0,a.$R)(r,j);let o=0,s=e;for(;(0,F.A)(t,s);)s=`${e}${n}${++o}`;return s}),[r,j]),M=(0,o.useCallback)((()=>{if(!P.additionalProperties&&!P.patternProperties)return;const{translateString:e}=b,t={...s},r=T("newKey",t);if(P.patternProperties)(0,m.A)(t,r,null);else{let n,o,i;if((0,g.A)(P.additionalProperties)){n=P.additionalProperties.type,o=P.additionalProperties.const,i=P.additionalProperties.default;let e=P.additionalProperties;if(a.Es in e){const{schemaUtils:t}=b;e=t.retrieveSchema({[a.Es]:e[a.Es]},s),n=e.type,o=e.const,i=e.default}n||!(a.Xo in e)&&!(a.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(a.Zl.NewStringDefault)}}(e,n);(0,m.A)(t,r,c)}$(t,O.path)}),[s,$,b,O,T,P]),U=(0,o.useCallback)(((e,t)=>{if(e!==t){const r=T(t,s),n={...s},o={[e]:r},a=Object.keys(n).map((e=>{const t=o[e]||e;return{[t]:n[e]}})),i=Object.assign({},...a);$(i,O.path)}}),[s,$,O,T]),V=(0,o.useCallback)((e=>{$(Cr,[...O.path,e])}),[$,O]);if(!I||D)try{const e=Object.keys(k);R=(0,a.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)(Nr,{options:{disableParsingRawHTML:!0},children:A(a.Zl.InvalidObjectField,[d||"root",B.message])})}),(0,n.jsx)("pre",{children:JSON.stringify(P)})]})}const z=(0,a.$F)("ObjectFieldTemplate",b,x),L=I?(0,n.jsx)(E,{...e,fieldPathId:O,schema:P}):void 0,q={title:!1===x.label?"":N,description:!1===x.label?void 0:C,properties:R.map((e=>{const t=(0,F.A)(P,[a.s1,e,a.Rr]),o=t?r.additionalProperties:r[e],l="hidden"===(0,a.$R)(o).widget;return{content:(0,n.jsx)(Rr,{propertyName:e,required:Dr(P,e),schema:(0,i.A)(P,[a.s1,e],{}),uiSchema:o,errorSchema:(0,i.A)(c,[e]),fieldPathId:O,formData:(0,i.A)(s,[e]),handleKeyRename:U,handleRemoveProperty:V,addedByAdditionalProperties:t,onChange:$,onBlur:y,onFocus:v,registry:b,disabled:f,readonly:h,hideError:p},e),name:e,readonly:h,disabled:f,required:u,hidden:l}})),readonly:h,disabled:f,required:u,fieldPathId:l,uiSchema:r,errorSchema:c,schema:P,formData:s,registry:b,optionalDataControl:L,className:I?"rjsf-optional-object-field":void 0};return(0,n.jsx)(z,{...q,onAddProperty:M})}function Fr(e){const{schema:t,uiSchema:r={},formData:o,disabled:s=!1,readonly:i=!1,onChange:c,errorSchema:l,fieldPathId:d,registry:u}=e,{globalUiOptions:f={},schemaUtils:m,translateString:h}=u,p=(0,a.$R)(r,f),y=(0,a.$F)("OptionalDataControlsTemplate",u,p),g=(0,a.Uc)(o);let v,$,b,w;if(s||i)v=(0,a.C1)(d,"Msg"),$=g?void 0:h(a.Zl.OptionalObjectEmptyMsg);else{$=h(g?a.Zl.OptionalObjectRemove:a.Zl.OptionalObjectAdd),g?(v=(0,a.C1)(d,"Remove"),w=()=>c(void 0,d.path,l)):(v=(0,a.C1)(d,"Add"),b=()=>{let e=m.getDefaultFormState(t,o,"excludeObjectChildren");void 0===e&&(e="array"===(0,a._I)(t)?[]:{}),c(e,d.path,l)})}return $&&(0,n.jsx)(y,{id:v,registry:u,schema:t,uiSchema:r,label:$,onAddClick:b,onRemoveClick:w})}const Mr={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Ur(e){const{schema:t,fieldPathId:r,uiSchema:s,formData:i,errorSchema:c,name:l,onChange:d,onKeyRename:u,onKeyRenameBlur:f,onRemoveProperty:m,required:h=!1,registry:p,wasPropertyKeyModified:y=!1}=e,{schemaUtils:v,globalFormOptions:$,globalUiOptions:b,fields:w}=p,{AnyOfField:_,OneOfField:S}=w,A=(0,a.$R)(s,b),j=(0,a.$F)("FieldTemplate",p,A),E=(0,a.$F)("DescriptionFieldTemplate",p,A),P=(0,a.$F)("FieldHelpTemplate",p,A),x=(0,a.$F)("FieldErrorTemplate",p,A),k=v.retrieveSchema(t,i),O=r[a.K0],N=(0,o.useCallback)(((e,t,r,n)=>d(e,t,r,n||O)),[O,d]),C=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 s=(0,a._I)(e),i=Array.isArray(s)?s[0]:s||"",c=e.$id;let l=Mr[i];return c&&c in o&&(l=c),l||!e.anyOf&&!e.oneOf?l in o?o[l]:o.FallbackField:()=>null}(k,A,p),I=Boolean(A.disabled??e.disabled),D=Boolean(A.readonly??(e.readonly||e.schema.readOnly||k.readOnly)),R=A.hideError,T=void 0===R?e.hideError:Boolean(R),F=Boolean(A.autofocus??e.autofocus);if(0===Object.keys(k).length)return null;let M=v.getDisplayLabel(k,s,b);const U=A.field&&!0===A.fieldReplacesAnyOrOneOf;let V,z,L={fieldPathId:r};if((a.Xo in k||a.Ru in k)&&!U&&!v.isSelect(k)){k[a.Xo]?(V=_,z=k[a.Xo].map((e=>v.retrieveSchema((0,g.A)(e)?e:{},i)))):k[a.Ru]&&(V=S,z=k[a.Ru].map((e=>v.retrieveSchema((0,g.A)(e)?e:{},i))));const e=(0,a.II)(p,k,h,s),t=(0,a.Uc)(i);M=M&&(!e||t),L={childFieldPathId:r,fieldPathId:(0,a.Yg)("XxxOf",$,r)}}const{__errors:q,...B}=c||{},K=(0,xe.A)(s,["ui:classNames","classNames","ui:style"]);a.ce in K&&(K[a.ce]=(0,xe.A)(K[a.ce],["classNames","style"]));const G=(0,n.jsx)(C,{...e,onChange:N,...L,schema:k,uiSchema:K,disabled:I,readonly:D,hideError:T,autofocus:F,errorSchema:B,rawErrors:q}),W=r[a.K0];let H;H=y||a.Rr in k?l:A.title||e.schema.title||k.title||e.title||l;const J=A.description||e.schema.description||k.description||"",Z=A.help,Y="hidden"===A.widget,X=["rjsf-field",`rjsf-field-${(0,a._I)(k)}`];!T&&q&&q.length>0&&X.push("rjsf-field-error"),A.classNames&&X.push(A.classNames);const Q=(0,n.jsx)(P,{help:Z,fieldPathId:r,schema:k,uiSchema:s,hasErrors:!T&&q&&q.length>0,registry:p}),ee=T||V&&!v.isSelect(k)?void 0:(0,n.jsx)(x,{errors:q,errorSchema:c,fieldPathId:r,schema:k,uiSchema:s,registry:p}),te={description:(0,n.jsx)(E,{id:(0,a.IR)(W),description:J,schema:k,uiSchema:s,registry:p}),rawDescription:J,help:Q,rawHelp:"string"===typeof Z?Z:void 0,errors:ee,rawErrors:T?void 0:q,id:W,label:H,hidden:Y,onChange:d,onKeyRename:u,onKeyRenameBlur:f,onRemoveProperty:m,required:h,disabled:I,readonly:D,hideError:T,displayLabel:M,classNames:X.join(" ").trim(),style:A.style,formData:i,schema:k,uiSchema:s,registry:p};return(0,n.jsx)(j,{...te,children:(0,n.jsxs)(n.Fragment,{children:[G,V&&(0,n.jsx)(V,{name:l,disabled:I,readonly:D,hideError:T,errorSchema:c,formData:i,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:z,registry:p,required:h,schema:k,uiSchema:s})]})})}class Vr extends o.Component{shouldComponentUpdate(e){const{registry:{globalFormOptions:t}}=this.props,{experimental_componentUpdateStrategy:r="customDeep"}=t;return(0,a.F9)(this,e,this.state,r)}render(){return(0,n.jsx)(Ur,{...this.props})}}const zr=Vr;const Lr=function(e){const{schema:t,name:r,uiSchema:s,fieldPathId:i,formData:c,required:l,disabled:d=!1,readonly:u=!1,autofocus:f=!1,onChange:m,onBlur:h,onFocus:p,registry:y,rawErrors:g,hideError:v,title:$}=e,{title:b,format:w}=t,{widgets:_,schemaUtils:S,globalUiOptions:A}=y,j=S.isSelect(t)?(0,a.f9)(t,s):void 0;let E=j?"select":"text";w&&(0,a.Lw)(t,w,_)&&(E=w);const{widget:P=E,placeholder:x="",title:k,...O}=(0,a.$R)(s),N=S.getDisplayLabel(t,s,A),C=k??$??b??r,I=(0,a.Bt)(t,P,_),D=(0,o.useCallback)(((e,t,r)=>m(e,i.path,t,r)),[m,i]);return(0,n.jsx)(I,{options:{...O,enumOptions:j},schema:t,uiSchema:s,id:i.$id,name:r,label:C,hideLabel:!N,hideError:v,value:c,onChange:D,onBlur:h,onFocus:p,required:l,disabled:d,readonly:u,autofocus:f,registry:y,placeholder:x,rawErrors:g,htmlName:i.name})};const qr=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 Br=function(){return{AnyOfField:Ie,ArrayField:C,BooleanField:I,FallbackField:D,LayoutGridField:je,LayoutHeaderField:Ee,LayoutMultiSchemaField:Ne,NumberField:Te,ObjectField:Tr,OneOfField:Ie,OptionalDataControlsField:Fr,SchemaField:zr,StringField:Lr,NullField:qr}};function Kr(e){const{fieldPathId:t,description:r,registry:o,schema:s,uiSchema:i}=e,c=(0,a.$R)(i,o.globalUiOptions),{label:l=!0}=c;if(!r||!l)return null;const d=(0,a.$F)("DescriptionFieldTemplate",o,c);return(0,n.jsx)(d,{id:(0,a.IR)(t),description:r,schema:s,uiSchema:i,registry:o})}function Gr(e){const{children:t,className:r,buttonsProps:o,displayLabel:s,hasDescription:i,hasToolbar:c,registry:l,uiSchema:d}=e,u=(0,a.$R)(d),f=(0,a.$F)("ArrayFieldItemButtonsTemplate",l,u),m={display:"flex",alignItems:s?"center":"baseline"},h={display:"flex",justifyContent:"flex-end",marginTop:s?`${i?31:9}px`:0};return(0,n.jsxs)("div",{className:r,style:m,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:h,children:(0,n.jsx)(f,{...o,style:{flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"}})})})]})}function Wr(e){const{disabled:t,hasCopy:r,hasMoveDown:o,hasMoveUp:s,hasRemove:i,fieldPathId:c,onCopyItem:l,onRemoveItem:d,onMoveDownItem:u,onMoveUpItem:f,readonly:m,registry:h,uiSchema:p}=e,{CopyButton:y,MoveDownButton:g,MoveUpButton:v,RemoveButton:$}=h.templates.ButtonTemplates;return(0,n.jsxs)(n.Fragment,{children:[(s||o)&&(0,n.jsx)(v,{id:(0,a.aA)(c,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||m||!s,onClick:f,uiSchema:p,registry:h}),(s||o)&&(0,n.jsx)(g,{id:(0,a.aA)(c,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||m||!o,onClick:u,uiSchema:p,registry:h}),r&&(0,n.jsx)(y,{id:(0,a.aA)(c,"copy"),className:"rjsf-array-item-copy",disabled:t||m,onClick:l,uiSchema:p,registry:h}),i&&(0,n.jsx)($,{id:(0,a.aA)(c,"remove"),className:"rjsf-array-item-remove",disabled:t||m,onClick:d,uiSchema:p,registry:h})]})}function Hr(e){const{canAdd:t,className:r,disabled:o,fieldPathId:s,uiSchema:i,items:c,optionalDataControl:l,onAddClick:d,readonly:u,registry:f,required:m,schema:h,title:p}=e,y=(0,a.$R)(i),g=(0,a.$F)("ArrayFieldDescriptionTemplate",f,y),v=(0,a.$F)("ArrayFieldTitleTemplate",f,y),$=!u&&!o,{ButtonTemplates:{AddButton:b}}=f.templates;return(0,n.jsxs)("fieldset",{className:r,id:s.$id,children:[(0,n.jsx)(v,{fieldPathId:s,title:y.title||p,required:m,schema:h,uiSchema:i,registry:f,optionalDataControl:$?l:void 0}),(0,n.jsx)(g,{fieldPathId:s,description:y.description||h.description,schema:h,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,a.aA)(s,"add"),className:"rjsf-array-item-add",onClick:d,disabled:o||u,uiSchema:i,registry:f})]})}function Jr(e){const{fieldPathId:t,title:r,schema:o,uiSchema:s,required:i,registry:c,optionalDataControl:l}=e,d=(0,a.$R)(s,c.globalUiOptions),{label:u=!0}=d;if(!r||!u)return null;const f=(0,a.$F)("TitleFieldTemplate",c,d);return(0,n.jsx)(f,{id:(0,a.EH)(t),title:r,required:i,schema:o,uiSchema:s,registry:c,optionalDataControl:l})}function Zr(e){const{id:t,name:r,htmlName:s,value:i,readonly:c,disabled:l,autofocus:d,onBlur:u,onFocus:f,onChange:m,onChangeOverride:h,options:p,schema:y,uiSchema:g,registry:v,rawErrors:$,type:b,hideLabel:w,hideError:_,...S}=e;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const A={...S,...(0,a.ti)(y,b,p)};let j;j="number"===A.type||"integer"===A.type?i||0===i?i:"":null==i?"":i;const E=(0,o.useCallback)((({target:{value:e}})=>m(""===e?p.emptyValue:e)),[m,p]),P=(0,o.useCallback)((({target:e})=>u(t,e&&e.value)),[u,t]),x=(0,o.useCallback)((({target:e})=>f(t,e&&e.value)),[f,t]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{id:t,name:s||t,className:"form-control",readOnly:c,disabled:l,autoFocus:d,value:j,...A,list:y.examples?(0,a.$c)(t):void 0,onChange:h||E,onBlur:P,onFocus:x,"aria-describedby":(0,a.eG)(t,!!y.examples)}),Array.isArray(y.examples)&&(0,n.jsx)("datalist",{id:(0,a.$c)(t),children:y.examples.concat(y.default&&!y.examples.includes(y.default)?[y.default]:[]).map((e=>(0,n.jsx)("option",{value:e},e)))},`datalist_${t}`)]})}function Yr({uiSchema:e}){const{submitText:t,norender:r,props:o={}}=(0,a.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 Xr(e){const{iconType:t="default",icon:r,className:o,uiSchema:a,registry:s,...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 Qr(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(Xr,{title:t(a.Zl.CopyButton),...e,icon:"copy"})}function en(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(Xr,{title:t(a.Zl.MoveDownButton),...e,icon:"arrow-down"})}function tn(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(Xr,{title:t(a.Zl.MoveUpButton),...e,icon:"arrow-up"})}function rn(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(Xr,{title:t(a.Zl.RemoveButton),...e,iconType:"danger",icon:"remove"})}function nn({id:e,className:t,onClick:r,disabled:o,registry:s}){const{translateString:i}=s;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)(Xr,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:i(a.Zl.AddButton),onClick:r,disabled:o,registry:s})})})}const on=function(){return{SubmitButton:Yr,AddButton:nn,CopyButton:Qr,MoveDownButton:en,MoveUpButton:tn,RemoveButton:rn}},an=(0,a.cq)();function sn({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:o}=t;return(0,a.$R)(r,o).enableMarkdownInDescription&&"string"===typeof e?(0,n.jsx)(Nr,{options:{disableParsingRawHTML:!0},"data-testid":an.markdown,children:e}):e}function cn(e){const{id:t,description:r,registry:o,uiSchema:a}=e;return r?(0,n.jsx)("div",{id:t,className:"field-description",children:(0,n.jsx)(sn,{description:r,registry:o,uiSchema:a})}):null}function ln({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(a.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 dn(e){const{schema:t,registry:r,typeSelector:o,schemaField:s}=e,i=(0,a.$F)("MultiSchemaFieldTemplate",r);return(0,n.jsx)(i,{selector:o,optionSchemaField:s,schema:t,registry:r})}sn.TEST_IDS=an;function un(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 fn=function(e){const{id:t,label:r,children:o,errors:s,help:i,description:c,hidden:l,required:d,displayLabel:u,registry:f,uiSchema:m}=e,h=(0,a.$R)(m),p=(0,a.$F)("WrapIfAdditionalTemplate",f,h);if(l)return(0,n.jsx)("div",{className:"hidden",children:o});const y="checkbox"===h.widget;return(0,n.jsxs)(p,{...e,children:[u&&!y&&(0,n.jsx)(un,{label:r,required:d,id:t}),u&&c?c:null,o,s,i]})};function mn(e){const{errors:t=[],fieldPathId:r}=e;if(0===t.length)return null;const o=(0,a.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 hn=(0,a.cq)();function pn({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:o}=t;return(0,a.$R)(r,o).enableMarkdownInHelp&&"string"===typeof e?(0,n.jsx)(Nr,{options:{disableParsingRawHTML:!0},"data-testid":hn.markdown,children:e}):e}function yn(e){const{fieldPathId:t,help:r,uiSchema:o,registry:s}=e;return r?(0,n.jsx)("div",{id:(0,a.F5)(t),className:"help-block",children:(0,n.jsx)(pn,{help:r,registry:s,uiSchema:o})}):null}function gn(e){const{children:t,column:r,className:o,...a}=e;return(0,n.jsx)("div",{className:o,...a,children:t})}function vn(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 $n(e){const{className:t,description:r,disabled:o,formData:s,fieldPathId:i,onAddProperty:c,optionalDataControl:l,properties:d,readonly:u,registry:f,required:m,schema:h,title:p,uiSchema:y}=e,g=(0,a.$R)(y),v=(0,a.$F)("TitleFieldTemplate",f,g),$=(0,a.$F)("DescriptionFieldTemplate",f,g),b=!u&&!o,{ButtonTemplates:{AddButton:w}}=f.templates;return(0,n.jsxs)("fieldset",{className:t,id:i.$id,children:[p&&(0,n.jsx)(v,{id:(0,a.EH)(i),title:p,required:m,schema:h,uiSchema:y,registry:f,optionalDataControl:b?l:void 0}),r&&(0,n.jsx)($,{id:(0,a.IR)(i),description:r,schema:h,uiSchema:y,registry:f}),b?void 0:l,d.map((e=>e.content)),(0,a.Xl)(h,y,s)&&(0,n.jsx)(w,{id:(0,a.aA)(i,"add"),className:"rjsf-object-property-expand",onClick:c,disabled:o||u,uiSchema:y,registry:f})]})}function bn(e){const{id:t,registry:r,label:o,onAddClick:a,onRemoveClick:s}=e;return a?(0,n.jsx)(Xr,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:a,title:o}):s?(0,n.jsx)(Xr,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:s,title:o}):(0,n.jsx)("em",{id:t,children:o})}pn.TEST_IDS=hn;function wn(e){const{id:t,title:r,required:o,optionalDataControl:a}=e;return(0,n.jsxs)("legend",{id:t,children:[r,o&&(0,n.jsx)("span",{className:"required",children:"*"}),a&&(0,n.jsx)("span",{className:"pull-right",style:{marginBottom:"2px"},children:a})]})}const _n=function(e){const{schema:t,fieldPathId:r,reason:o,registry:s}=e,{translateString:i}=s;let c=a.Zl.UnsupportedField;const l=[];return r&&r.$id&&(c=a.Zl.UnsupportedFieldWithId,l.push(r.$id)),o&&(c=c===a.Zl.UnsupportedField?a.Zl.UnsupportedFieldWithReason:a.Zl.UnsupportedFieldWithIdAndReason,l.push(o)),(0,n.jsxs)("div",{className:"unsupported-field",children:[(0,n.jsx)("p",{children:(0,n.jsx)(Nr,{options:{disableParsingRawHTML:!0},children:i(c,l)})}),t&&(0,n.jsx)("pre",{children:JSON.stringify(t,null,2)})]})};function Sn(e){const{id:t,classNames:r,style:o,disabled:s,displayLabel:i,label:c,onKeyRenameBlur:l,onRemoveProperty:d,rawDescription:u,readonly:f,required:m,schema:h,hideError:p,rawErrors:y,children:g,uiSchema:v,registry:$}=e,{templates:b,translateString:w}=$,{RemoveButton:_}=b.ButtonTemplates,S=w(a.Zl.KeyLabel,[c]),A=a.Rr in h,j=!!u,E=["form-group",r];!p&&y&&y.length>0&&E.push("has-error has-danger");const P=E.join(" ").trim();if(!A)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)(un,{label:S,required:m,id:`${t}-key`}),i&&u&&(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)(_,{id:(0,a.aA)(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:s||f,onClick:d,uiSchema:v,registry:$})})]})})}const An=function(){return{ArrayFieldDescriptionTemplate:Kr,ArrayFieldItemTemplate:Gr,ArrayFieldItemButtonsTemplate:Wr,ArrayFieldTemplate:Hr,ArrayFieldTitleTemplate:Jr,ButtonTemplates:on(),BaseInputTemplate:Zr,DescriptionFieldTemplate:cn,ErrorListTemplate:ln,FallbackFieldTemplate:dn,FieldTemplate:fn,FieldErrorTemplate:mn,FieldHelpTemplate:yn,GridTemplate:gn,MultiSchemaFieldTemplate:vn,ObjectFieldTemplate:$n,OptionalDataControlsTemplate:bn,TitleFieldTemplate:wn,UnsupportedFieldTemplate:_n,WrapIfAdditionalTemplate:Sn}};const jn=function(e){const{disabled:t=!1,readonly:r=!1,autofocus:o=!1,options:s,id:i,name:c,registry:l,onBlur:d,onFocus:u}=e,{translateString:f}=l,{elements:m,handleChange:h,handleClear:p,handleSetNow:y}=(0,a.qJ)(e);return(0,n.jsxs)("ul",{className:"list-inline",children:[m.map(((e,s)=>(0,n.jsx)("li",{className:"list-inline-item",children:(0,n.jsx)(a.Xq,{rootId:i,name:c,select:h,...e,disabled:t,readonly:r,registry:l,onBlur:d,onFocus:u,autofocus:o&&0===s})},s))),("undefined"===s.hideNowButton||!s.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(a.Zl.NowLabel)})}),("undefined"===s.hideClearButton||!s.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(a.Zl.ClearLabel)})})]})};const En=function({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return(0,n.jsx)(r,{time:e,...t})};const Pn=function({schema:e,uiSchema:t,options:r,id:s,value:i,disabled:c,readonly:l,label:d,hideLabel:u,autofocus:f=!1,onBlur:m,onFocus:h,onChange:p,registry:y,htmlName:g}){const v=(0,a.$F)("DescriptionFieldTemplate",y,r),$=(0,a.l1)(e),b=(0,o.useCallback)((e=>p(e.target.checked)),[p]),w=(0,o.useCallback)((e=>m(s,e.target.checked)),[m,s]),_=(0,o.useCallback)((e=>h(s,e.target.checked)),[h,s]),S="checkbox"===(0,a.$R)(t).widget?void 0:r.description??e.description;return(0,n.jsxs)("div",{className:"checkbox "+(c||l?"disabled":""),children:[!u&&S&&(0,n.jsx)(v,{id:(0,a.IR)(s),description:S,schema:e,uiSchema:t,registry:y}),(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"checkbox",id:s,name:g||s,checked:"undefined"!==typeof i&&i,required:$,disabled:c||l,autoFocus:f,onChange:b,onBlur:w,onFocus:_,"aria-describedby":(0,a.eG)(s)}),(0,a.w)((0,n.jsx)("span",{children:d}),u)]})]})};const xn=function({id:e,disabled:t,options:{inline:r=!1,enumOptions:s,enumDisabled:i,emptyValue:c},value:l,autofocus:d=!1,readonly:u,onChange:f,onBlur:m,onFocus:h,htmlName:p}){const y=Array.isArray(l)?l:[l],g=(0,o.useCallback)((({target:t})=>m(e,(0,a.Od)(t&&t.value,s,c))),[m,e,s,c]),v=(0,o.useCallback)((({target:t})=>h(e,(0,a.Od)(t&&t.value,s,c))),[h,e,s,c]);return(0,n.jsx)("div",{className:"checkboxes",id:e,children:Array.isArray(s)&&s.map(((o,c)=>{const l=(0,a.BH)(o.value,y),m=Array.isArray(i)&&-1!==i.indexOf(o.value),h=t||m||u?"disabled":"",$=(0,n.jsxs)("span",{children:[(0,n.jsx)("input",{type:"checkbox",id:(0,a.pk)(e,c),name:p||e,checked:l,value:String(c),disabled:t||m||u,autoFocus:d&&0===c,onChange:e=>{e.target.checked?f((0,a.L4)(c,y,s)):f((0,a.Uw)(c,y,s))},onBlur:g,onFocus:v,"aria-describedby":(0,a.eG)(e)}),(0,n.jsx)("span",{children:o.label})]});return r?(0,n.jsx)("label",{className:`checkbox-inline ${h}`,children:$},c):(0,n.jsx)("div",{className:`checkbox ${h}`,children:(0,n.jsx)("label",{children:$})},c)}))})};function kn(e){const{disabled:t,readonly:r,options:o,registry:s}=e,i=(0,a.$F)("BaseInputTemplate",s,o);return(0,n.jsx)(i,{type:"color",...e,disabled:t||r})}function On(e){const{onChange:t,options:r,registry:s}=e,i=(0,a.$F)("BaseInputTemplate",s,r),c=(0,o.useCallback)((e=>t(e||void 0)),[t]);return(0,n.jsx)(i,{type:"date",...e,onChange:c})}function Nn(e){const{onChange:t,value:r,options:o,registry:s}=e,i=(0,a.$F)("BaseInputTemplate",s,o);return(0,n.jsx)(i,{type:"datetime-local",...e,value:(0,a.v4)(r),onChange:e=>t((0,a.z$)(e))})}function Cn(e){const{options:t,registry:r}=e,o=(0,a.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{type:"email",...e})}function In({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:o,type:s,name:i}=e;return o?["image/jpeg","image/png"].includes(s)?(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(a.Zl.PreviewLabel)})]}):null}function Dn({filesInfo:e,registry:t,preview:r,onRemove:o,options:s}){if(0===e.length)return null;const{translateString:i}=t,{RemoveButton:c}=(0,a.$F)("ButtonTemplates",t,s);return(0,n.jsx)("ul",{className:"file-info",children:e.map(((e,s)=>{const{name:l,size:d,type:u}=e;return(0,n.jsxs)("li",{children:[(0,n.jsx)(Nr,{children:i(a.Zl.FilesInfo,[l,u,String(d)])}),r&&(0,n.jsx)(In,{fileInfo:e,registry:t}),(0,n.jsx)(c,{onClick:()=>o(s),registry:t})]},s)}))})}const Rn=function(e){const{disabled:t,readonly:r,required:o,multiple:s,onChange:i,value:c,options:l,registry:d}=e,{filesInfo:u,handleChange:f,handleRemove:m}=(0,a.uC)(c,i,s),h=(0,a.$F)("BaseInputTemplate",d,l);return(0,n.jsxs)("div",{children:[(0,n.jsx)(h,{...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)(Dn,{filesInfo:u,onRemove:m,registry:d,preview:l.filePreview,options:l})]})};const Tn=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 Fn(e){const{options:t,registry:r}=e,o=(0,a.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{type:"password",...e})}const Mn=function({options:e,value:t,required:r,disabled:s,readonly:i,autofocus:c=!1,onBlur:l,onFocus:d,onChange:u,id:f,htmlName:m}){const{enumOptions:h,enumDisabled:p,inline:y,emptyValue:g}=e,v=(0,o.useCallback)((({target:e})=>l(f,(0,a.Od)(e&&e.value,h,g))),[l,h,g,f]),$=(0,o.useCallback)((({target:e})=>d(f,(0,a.Od)(e&&e.value,h,g))),[d,h,g,f]);return(0,n.jsx)("div",{className:"field-radio-group",id:f,role:"radiogroup",children:Array.isArray(h)&&h.map(((e,o)=>{const l=(0,a.BH)(e.value,t),d=Array.isArray(p)&&-1!==p.indexOf(e.value),h=s||d||i?"disabled":"",g=(0,n.jsxs)("span",{children:[(0,n.jsx)("input",{type:"radio",id:(0,a.pk)(f,o),checked:l,name:m||f,required:r,value:String(o),disabled:s||d||i,autoFocus:c&&0===o,onChange:()=>u(e.value),onBlur:v,onFocus:$,"aria-describedby":(0,a.eG)(f)}),(0,n.jsx)("span",{children:e.label})]});return y?(0,n.jsx)("label",{className:`radio-inline ${h}`,children:g},o):(0,n.jsx)("div",{className:`radio ${h}`,children:(0,n.jsx)("label",{children:g})},o)}))})};function Un(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 Vn({id:e,value:t,required:r,disabled:a,readonly:s,autofocus:i,onChange:c,onFocus:l,onBlur:d,schema:u,options:f,htmlName:m}){const{stars:h=5,shape:p="star"}=f,y=u.maximum?Math.min(u.maximum,5):Math.min(Math.max(h,1),5),g=u.minimum||0,v=(0,o.useCallback)((e=>{a||s||c(e)}),[c,a,s]),$=(0,o.useCallback)((t=>{if(l){const r=Number(t.target.dataset.value);l(e,r)}}),[l,e]),b=(0,o.useCallback)((t=>{if(d){const r=Number(t.target.dataset.value);d(e,r)}}),[d,e]),w=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:a||s?"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:a||s?-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:w(i)},r)})),(0,n.jsx)("input",{type:"hidden",id:e,name:m||e,value:t||"",required:r,disabled:a||s,"aria-hidden":"true"})]})})}function zn(e,t){return t?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}const Ln=function({schema:e,id:t,options:r,value:s,required:i,disabled:c,readonly:l,multiple:d=!1,autofocus:u=!1,onChange:f,onBlur:m,onFocus:h,placeholder:p,htmlName:y}){const{enumOptions:g,enumDisabled:v,emptyValue:$}=r,b=d?[]:"",w=(0,o.useCallback)((e=>{const r=zn(e,d);return h(t,(0,a.Od)(r,g,$))}),[h,t,d,g,$]),_=(0,o.useCallback)((e=>{const r=zn(e,d);return m(t,(0,a.Od)(r,g,$))}),[m,t,d,g,$]),S=(0,o.useCallback)((e=>{const t=zn(e,d);return f((0,a.Od)(t,g,$))}),[f,d,g,$]),A=(0,a.Yu)(s,g,d),j=!d&&void 0===e.default;return(0,n.jsxs)("select",{id:t,name:y||t,multiple:d,role:"combobox",className:"form-control",value:"undefined"===typeof A?b:A,required:i,disabled:c||l,autoFocus:u,onBlur:_,onFocus:w,onChange:S,"aria-describedby":(0,a.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)}))]})};function qn({id:e,options:t={},placeholder:r,value:s,required:i,disabled:c,readonly:l,autofocus:d=!1,onChange:u,onBlur:f,onFocus:m,htmlName:h}){const p=(0,o.useCallback)((({target:{value:e}})=>u(""===e?t.emptyValue:e)),[u,t.emptyValue]),y=(0,o.useCallback)((({target:t})=>f(e,t&&t.value)),[f,e]),g=(0,o.useCallback)((({target:t})=>m(e,t&&t.value)),[e,m]);return(0,n.jsx)("textarea",{id:e,name:h||e,className:"form-control",value:s||"",placeholder:r,required:i,disabled:c,readOnly:l,autoFocus:d,rows:t.rows,onBlur:y,onFocus:g,onChange:p,"aria-describedby":(0,a.eG)(e)})}qn.defaultProps={autofocus:!1,options:{}};const Bn=qn;function Kn(e){const{options:t,registry:r}=e,o=(0,a.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{...e})}function Gn(e){const{onChange:t,options:r,registry:s}=e,i=(0,a.$F)("BaseInputTemplate",s,r),c=(0,o.useCallback)((e=>t(e?`${e}:00`:void 0)),[t]);return(0,n.jsx)(i,{type:"time",...e,onChange:c})}function Wn(e){const{options:t,registry:r}=e,o=(0,a.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{type:"url",...e})}function Hn(e){const{options:t,registry:r}=e,o=(0,a.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{type:"number",...e})}const Jn=function(){return{AltDateWidget:jn,AltDateTimeWidget:En,CheckboxWidget:Pn,CheckboxesWidget:xn,ColorWidget:kn,DateWidget:On,DateTimeWidget:Nn,EmailWidget:Cn,FileWidget:Rn,HiddenWidget:Tn,PasswordWidget:Fn,RadioWidget:Mn,RangeWidget:Un,RatingWidget:Vn,SelectWidget:Ln,TextWidget:Kn,TextareaWidget:Bn,TimeWidget:Gn,UpDownWidget:Hn,URLWidget:Wn}};function Zn(e,t){return{...f(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...void 0!==t&&{status:t}}}class Yn extends o.Component{formElement;pendingChanges=[];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,s=t??r;this.state=this.getStateFromProps(e,s,void 0,void 0,void 0,!0),n&&!(0,a.c2)(this.state.formData,s)&&n(Zn(this.state)),this.formElement=(0,o.createRef)()}getSnapshotBeforeUpdate(e,t){if(!(0,a.c2)(this.props,e)){const r=(0,a.kp)(this.props.formData,e.formData),n=(0,a.kp)(this.props.formData,this.state.formData),o=!(0,a.c2)(e.schema,this.props.schema),s=r.length>0||!(0,a.c2)(e.formData,this.props.formData),i=n.length>0||!(0,a.c2)(this.state.formData,this.props.formData),c=this.getStateFromProps(this.props,this.props.formData,o||s?void 0:this.state.retrievedSchema,o,r,!i);return{nextState:c,shouldUpdate:!(0,a.c2)(c,t)}}return{shouldUpdate:!1}}componentDidUpdate(e,t,r){if(r.shouldUpdate){const{nextState:e}=r;(0,a.c2)(e.formData,this.props.formData)||(0,a.c2)(e.formData,t.formData)||!this.props.onChange||this.props.onChange(Zn(e)),this.setState(e)}}getStateFromProps(e,t,r,n=!1,o=[],s=!1){const i=this.state||{},c="schema"in e?e.schema:this.props.schema,l="validator"in e?e.validator:this.props.validator,d=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},u=void 0===e.formData&&void 0===this.props.formData,f="undefined"!==typeof t,m="liveValidate"in e?e.liveValidate:this.props.liveValidate,h=f&&!e.noValidate&&m,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,a.BP)(l,c,p,y));const v=g.getRootSchema();let $=t;t===Ir?$=void 0:void 0===t&&u&&($=i.formData);const b=g.getDefaultFormState(v,$,!1,i.initialDefaultsGenerated),w=this.updateRetrievedSchema(r??g.retrieveSchema(v,b));let _,S,A=i.schemaValidationErrors,j=i.schemaValidationErrorSchema;if(h&&!s){const e=this.liveValidate(v,g,i.errorSchema,b,void 0,i.customErrors,r,void 0!==r);_=e.errors,S=e.errorSchema,A=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(_=t.errors,S=t.errorSchema,o.length>0&&!h){const e=o.reduce(((e,t)=>(e[t]=void 0,e)),{});S=j=(0,a.rL)(t.errorSchema,e,"preventDuplicates")}const r=this.mergeErrors({errorSchema:S,errors:_},e.extraErrors,i.customErrors);_=r.errors,S=r.errorSchema}const E=this.getRegistry(e,v,g),P=(0,a.c2)(i.registry,E)?i.registry:E;return{schemaUtils:g,schema:v,uiSchema:d,fieldPathId:i.fieldPathId&&i.fieldPathId?.[a.K0]===P.globalFormOptions.idPrefix?i.fieldPathId:(0,a.Yg)("",P.globalFormOptions),formData:b,edit:f,errors:_,errorSchema:S,schemaValidationErrors:A,schemaValidationErrorSchema:j,retrievedSchema:w,initialDefaultsGenerated:!0,registry:P}}shouldComponentUpdate(e,t){const{experimental_componentUpdateStrategy:r="customDeep"}=this.props;return(0,a.F9)(this,e,t,r)}validate(e,t=this.state.schema,r,n){const o=r||this.state.schemaUtils,{customValidate:a,transformErrors:s,uiSchema:i}=this.props,c=n??o.retrieveSchema(t,e);return o.getValidator().validateFormData(e,c,a,s,i)}renderErrors(e){const{errors:t,errorSchema:r,schema:o,uiSchema:s}=this.state,i=(0,a.$R)(s),c=(0,a.$F)("ErrorListTemplate",e,i);return t&&t.length?(0,n.jsx)(c,{errors:t,errorSchema:r||{},schema:o,uiSchema:s,registry:e}):null}mergeErrors(e,t,r){let n=e.errorSchema,o=e.errors;if(t){const r=(0,a.k6)(e,t);n=r.errorSchema,o=r.errors}if(r){const t=(0,a.k6)(e,r.ErrorSchema,!0);n=t.errorSchema,o=t.errors}return{errors:o,errorSchema:n}}liveValidate(e,t,r,n,o,s,i,c=!1){const l=this.validate(n,e,t,i),d=l.errors;let u=l.errorSchema;c&&(u=(0,a.rL)(r,l.errorSchema,"preventDuplicates"));const f=d,m=u;return{...this.mergeErrors({errorSchema:u,errors:d},o,s),schemaValidationErrors:f,schemaValidationErrorSchema:m}}getUsedFormData=(e,t)=>{if(0===t.length&&"object"!==typeof e)return e;const r=f(e,t);return Array.isArray(e)?Object.keys(r).map((e=>r[e])):r};getFieldNames=(e,t)=>{const r=(e,t)=>"object"!==typeof e||(0,c.A)(e)||t&&!(0,c.A)(e),n=(e,o=[],s=[[]])=>{const c=Object.keys(e);return c.forEach((l=>{const d=e[l];if("object"===typeof d){const e=s.map((e=>[...e,l]));d[a.FF]&&""!==d[a.oS]?o.push(d[a.oS]):n(d,o,e)}else l===a.oS&&""!==d&&s.forEach((e=>{const n=(0,i.A)(t,e),a=1===c.length;(r(n,a)||Array.isArray(n)&&n.every((e=>r(e,a))))&&o.push(e)}))})),o};return n(e)};omitExtraData=e=>{const{schema:t,schemaUtils:r}=this.state,n=r.retrieveSchema(t,e),o=r.toPathSchema(n,"",e),a=this.getFieldNames(o,e);return this.getUsedFormData(e,a)};setFieldValue=(e,t)=>{const{registry:r}=this.state,n=Array.isArray(e)?e:e.split("."),o=(0,a.Yg)("",r.globalFormOptions,n);this.onChange(t,n,void 0,o[a.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;const{newValue:e,path:t,id:r}=this.pendingChanges[0],{newErrorSchema:n}=this.pendingChanges[0],{extraErrors:o,omitExtraData:l,liveOmit:d,noValidate:u,liveValidate:f,onChange:h}=this.props,{formData:p,schemaUtils:g,schema:v,fieldPathId:$,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:_,errorSchema:S}=this.state;const A=$.path[0]||"",j=!t||0===t.length||1===t.length&&t[0]===A;let E=this.state.retrievedSchema,P=j?e:(0,s.A)(p);if((0,a.Gv)(P)||Array.isArray(P)){e===Cr?y(P,t):j||(0,m.A)(P,t,e);const r=this.getStateFromProps(this.props,P,void 0,void 0,void 0,!0);P=r.formData,E=r.retrievedSchema}const x=!u&&(!0===f||"onChange"===f);let k={formData:P,schema:v},O=P;if(!0!==l||!0!==d&&"onChange"!==d||(O=this.omitExtraData(P),k={formData:O}),n){const e=j?b:(0,i.A)(b,t);if((0,c.A)(e))if(_||(_=new a.Ny),j){const e=(0,i.A)(n,a.s2);e&&_.setErrors(e)}else(0,m.A)(_.ErrorSchema,t,n);else j?S=n:(0,m.A)(S,t,n)}else _&&(0,i.A)(_.ErrorSchema,[...t,a.s2])&&_.clearErrors(t);if(x&&1===this.pendingChanges.length){const e=this.liveValidate(v,g,S,O,o,_,E);k={formData:O,...e,customErrors:_}}else if(!u&&n){const e=this.mergeErrors({errorSchema:S,errors:w},o,_);k={formData:O,...e,customErrors:_}}this.setState(k,(()=>{h&&h(Zn({...this.state,...k}),r),this.pendingChanges.shift(),this.processPendingChange()}))}updateRetrievedSchema(e){return(0,a.c2)(e,this.state?.retrievedSchema)?this.state.retrievedSchema:e}reset=()=>{const{formData:e,initialFormData:t=Ir,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(Zn({...this.state,...n}))))};onBlur=(e,t)=>{const{onBlur:r,omitExtraData:n,liveOmit:o,liveValidate:s}=this.props;if(r&&r(e,t),!0===n&&"onBlur"===o||"onBlur"===s){const{onChange:t,extraErrors:r}=this.props,{formData:c}=this.state;let l=c,d={formData:l};if(!0===n&&"onBlur"===o&&(l=this.omitExtraData(c),d={formData:l}),"onBlur"===s){const{schema:e,schemaUtils:t,errorSchema:n,customErrors:o,retrievedSchema:a}=this.state,s=this.liveValidate(e,t,n,l,r,o,a);d={formData:l,...s,customErrors:o}}const u=Object.keys(d).filter((e=>!e.startsWith("schemaValidation"))).some((e=>{const t=(0,i.A)(this.state,e),r=(0,i.A)(d,e);return!(0,a.c2)(t,r)}));this.setState(d,(()=>{t&&u&&t(Zn({...this.state,...d}),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:s}=this.state;if(!0===t&&(s=this.omitExtraData(s)),n||this.validateFormWithFormData(s)){const t=r||{},n=r?(0,a.SL)(r):[];this.setState({formData:s,errors:n,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{o&&o(Zn({...this.state,formData:s},"submitted"),e)}))}};getGlobalFormOptions(e){const{uiSchema:t={},experimental_componentUpdateStrategy:r,idSeparator:n=a.s0,idPrefix:o=a.De,nameGenerator:s,useFallbackUiForUnsupportedType:i=!1}=e;return{idPrefix:t["ui:rootFieldId"]||o,idSeparator:n,useFallbackUiForUnsupportedType:i,...void 0!==r&&{experimental_componentUpdateStrategy:r},...void 0!==s&&{nameGenerator:s}}}getRegistry(e,t,r){const{translateString:n,uiSchema:o={}}=e,{fields:s,templates:i,widgets:c,formContext:l,translateString:d}={fields:Br(),templates:An(),widgets:Jn(),rootSchema:{},formContext:{},translateString:a.qe,globalFormOptions:{idPrefix:a.De,idSeparator:a.s0,useFallbackUiForUnsupportedType:!1}};return{fields:{...s,...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||d,globalUiOptions:o[a.AK],globalFormOptions:this.getGlobalFormOptions(e)}}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,h.A)(n);""===o[0]?o[0]=t:o.unshift(t);const a=o.join(r);let s=this.formElement.current.elements[a];s||(s=this.formElement.current.querySelector(`input[id^="${a}"`)),s&&s.length&&(s=s[0]),s&&s.focus()}validateFormWithFormData=e=>{const{extraErrors:t,extraErrorsBlockSubmit:r,focusOnFirstError:n,onError:o}=this.props,{errors:s}=this.state,i=this.validate(e);let c=i.errors,l=i.errorSchema;const d=c,u=l,f=c.length>0||t&&r;if(f){if(t){const e=(0,a.k6)(i,t);l=e.errorSchema,c=e.errors}n&&("function"===typeof n?n(c[0]):this.focusOnError(c[0])),this.setState({errors:c,errorSchema:l,schemaValidationErrors:d,schemaValidationErrorSchema:u},(()=>{o?o(c):console.error("Form validation failed",c)}))}else s.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!f};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:s,method:i,target:c,action:l,autoComplete:d,enctype:u,acceptCharset:f,noHtml5Validate:m=!1,disabled:h,readonly:p,showErrorList:y="top",_internalFormWrapper:g}=this.props,{schema:v,uiSchema:$,formData:b,errorSchema:w,fieldPathId:_,registry:S}=this.state,{SchemaField:A}=S.fields,{SubmitButton:j}=S.templates.ButtonTemplates,E=g?o:void 0,P=g||o||"form";let{[a.xh]:x={}}=(0,a.$R)($);h&&(x={...x,props:{...x.props,disabled:!0}});const k={[a.ce]:{[a.xh]:x}};return(0,n.jsxs)(P,{className:r||"rjsf",id:t,name:s,method:i,target:c,action:l,autoComplete:d,encType:u,acceptCharset:f,noValidate:m,onSubmit:this.onSubmit,as:E,ref:this.formElement,children:["top"===y&&this.renderErrors(S),(0,n.jsx)(A,{name:"",schema:v,uiSchema:$,errorSchema:w,fieldPathId:_,formData:b,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:S,disabled:h,readonly:p}),e||(0,n.jsx)(j,{uiSchema:k,registry:S}),"bottom"===y&&this.renderErrors(S)]})}}r(44030);const Xn=Yn},92348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(80450),o=r(56711),a=r(83875),s=r(50302),i=r(38094),c=r(4267),l=r(99347),d=r(42785),u=r(3767),f=r(64715),m=[n.default,o.default,a.default,s.default,i.default,c.default,l.default,d.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},u.default,f.default];t.default=m},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}')},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 a=r(72104);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return a.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return a.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return a.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return a.Name}});var s=r(45885);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.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 d 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 u 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 m extends i{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class h 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 w 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 _ 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:a}=this;return`for(${t} ${r}=${n}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){const e=O(super.names,this.from);return O(e,this.to)}}class S 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 A 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)}}A.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?a(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=a(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e)),[])):e;var o;function a(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 d(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new h(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 w(e),t)}forRange(e,t,r,n,a=(this.opts.es5?o.varKinds.var:o.varKinds.let)){const s=this._scope.toName(e);return this._for(new _(a,s,t,r),(()=>n(s)))}forOf(e,t,r,a=o.varKinds.const){const s=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(s,n._`${e}[${t}]`),r(s)}))}return this._for(new S("of",a,s,t),(()=>r(s)))}forIn(e,t,r,a=(this.opts.es5?o.varKinds.var:o.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,n._`Object.keys(${t})`,r);const s=this._scope.toName(e);return this._for(new S("in",a,s,t),(()=>r(s)))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new u(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 m(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 A(e,t,r)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(A)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const 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)}},94507:(e,t,r)=>{"use strict";r.d(t,{A:()=>J});var n=r(22080),o=r(72641),a=r(52851),s=r(22031),i=r(27422);const c=function(e,t){return e&&(0,s.A)(t,(0,i.A)(t),e)};var l=r(79999);const d=function(e,t){return e&&(0,s.A)(t,(0,l.A)(t),e)};var u=r(80154),f=r(39759),m=r(16489);const h=function(e,t){return(0,s.A)(e,(0,m.A)(e),t)};var p=r(83511);const y=function(e,t){return(0,s.A)(e,(0,p.A)(e),t)};var g=r(19042),v=r(83973),$=r(9137),b=Object.prototype.hasOwnProperty;const w=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 _=r(90565);const S=function(e,t){var r=t?(0,_.A)(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)};var A=/\w*$/;const j=function(e){var t=new e.constructor(e.source,A.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,_.A)(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return S(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 L=function(e){return(0,R.A)(e)&&"[object Set]"==(0,$.A)(e)};var q=M.A&&M.A.isSet;const B=q?(0,F.A)(q):L;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,s,m,p,b){var _,S=1&r,A=2&r,j=4&r;if(s&&(_=p?s(t,m,p,b):s(t)),void 0!==_)return _;if(!(0,z.A)(t))return t;var E=(0,I.A)(t);if(E){if(_=w(t),!S)return(0,f.A)(t,_)}else{var P=(0,$.A)(t),x=P==G||"[object GeneratorFunction]"==P;if((0,D.A)(t))return(0,u.A)(t,S);if(P==W||P==K||x&&!p){if(_=A||x?{}:(0,C.A)(t),!S)return A?y(t,d(_,t)):h(t,c(_,t))}else{if(!H[P])return p?t:{};_=N(t,P,S)}}b||(b=new n.A);var k=b.get(t);if(k)return k;b.set(t,_),B(t)?t.forEach((function(n){_.add(e(n,r,s,n,t,b))})):V(t)&&t.forEach((function(n,o){_.set(o,e(n,r,s,o,t,b))}));var O=j?A?v.A:g.A:A?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,a.A)(_,o,e(n,r,s,o,t,b))})),_}},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:a,schema:s,schemaCode:i,it:c}=e,{opts:l,errSchemaPath:d,schemaEnv:u,self:f}=c;l.validateFormats&&(a?function(){const a=r.scopeValue("formats",{ref:f.formats,code:l.code.formats}),s=r.const("fDef",n._`${a}[${i}]`),c=r.let("fType"),d=r.let("format");r.if(n._`typeof ${s} == "object" && !(${s} instanceof RegExp)`,(()=>r.assign(c,n._`${s}.type || "string"`).assign(d,n._`${s}.validate`)),(()=>r.assign(c,n._`"string"`).assign(d,s))),e.fail$data((0,n.or)(!1===l.strictSchema?n.nil:n._`${i} && !${d}`,function(){const e=u.$async?n._`(${s}.async ? await ${d}(${o}) : ${d}(${o}))`:n._`${d}(${o})`,r=n._`(typeof ${d} == "function" ? ${e} : ${d}.test(${o}))`;return n._`${d} && ${d} !== true && ${c} === ${t} && !${r}`}()))}():function(){const a=f.formats[s];if(!a)return void function(){if(!1===l.strictSchema)return void f.logger.warn(e());throw new Error(e());function e(){return`unknown format "${s}" ignored in schema at path "${d}"`}}();if(!0===a)return;const[i,c,m]=function(e){const t=e instanceof RegExp?(0,n.regexpCode)(e):l.code.formats?n._`${l.code.formats}${(0,n.getProperty)(s)}`:void 0,o=r.scopeValue("formats",{key:s,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,n._`${o}.validate`];return["string",e,o]}(a);i===t&&e.pass(function(){if("object"==typeof a&&!(a instanceof RegExp)&&a.async){if(!u.$async)throw new Error("async format in sync schema");return n._`await ${m}(${o})`}return"function"==typeof c?n._`${m}(${o})`:n._`${m}.test(${o})`}())}())}};t.default=o},95011:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),a={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:a,data:s,it:i}=e;let c,l;const{minContains:d,maxContains:u}=a;i.opts.next?(c=void 0===d?1:d,l=u):c=1;const f=t.const("len",n._`${s}.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 m=t.name("valid");function h(){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(m,!0).break())):(t.if(n._`${e} > ${l}`,(()=>t.assign(m,!1).break())),1===c?t.assign(m,!0):t.if(n._`${e} >= ${c}`,(()=>t.assign(m,!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(m,(()=>t.if(m,(()=>t.break())))):0===c?(t.let(m,!0),void 0!==l&&t.if(n._`${s}.length > 0`,h)):(t.let(m,!1),h()),e.result(m,(()=>e.reset()))}};t.default=a},96925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(93789),o=r(7083),a={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:a,data:s,it:i}=e;let c,l;const{minContains:d,maxContains:u}=a;i.opts.next?(c=void 0===d?1:d,l=u):c=1;const f=t.const("len",n._`${s}.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 m=t.name("valid");function h(){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(m,!0).break())):(t.if(n._`${e} > ${l}`,(()=>t.assign(m,!1).break())),1===c?t.assign(m,!0):t.if(n._`${e} >= ${c}`,(()=>t.assign(m,!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(m,(()=>t.if(m,(()=>t.break())))):0===c?(t.let(m,!0),void 0!==l&&t.if(n._`${s}.length > 0`,h)):(t.let(m,!1),h()),e.result(m,(()=>e.reset()))}};t.default=a},97193:(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},97267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(56699),o=r(19205),a={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:a,it:s}=e;if((0,o.alwaysValidSchema)(s,r))return;const i=t.name("valid");t.forIn("key",a,(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),s.allErrors||t.break()}))})),e.ok(i)}};t.default=a},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,a="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`${r}.length ${a} ${o}`)}};t.default=o},99524:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const n=r(56699),o=r(19205);function a(e,t,r){const{gen:a,compositeRule:s,data:i,opts:c}=e;if(void 0===r)return;const l=n._`${i}${(0,n.getProperty)(t)}`;if(s)return void(0,o.checkStrictMode)(e,`default is ignored for: ${l}`);let d=n._`${l} === undefined`;"empty"===c.useDefaults&&(d=n._`${d} || ${l} === null || ${l} === ""`),a.if(d,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)a(e,o,r[o].default);else"array"===t&&Array.isArray(n)&&n.forEach(((t,r)=>a(e,r,t.default)))}},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}}]);