summaryrefslogtreecommitdiffstats
path: root/src/web/gui/v2/749.e44087ac3a2e3a994318.chunk.js
blob: 947158cf8fd88866054f52495d7250c3992d9d79 (plain)
1
2
3
4
5
6
7
8
/*! For license information please see 749.e44087ac3a2e3a994318.chunk.js.LICENSE.txt */
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4bf97f13-07c0-41ff-9338-3957dbae62d6",e._sentryDebugIdIdentifier="sentry-dbid-4bf97f13-07c0-41ff-9338-3957dbae62d6")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"30b1ba65cc8722be7e184f4a401fb43e6b21634d"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[749],{22086:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>Lr});var n=r(74848),o=r(96540),a=r(78239),s=r(58156),i=r.n(s),c=r(62193),l=r.n(c),d=r(44383),u=r.n(d),f=r(42072),p=r.n(f),m=r(88055),h=r.n(m),y=r(23805),g=r.n(y),v=r(63560),$=r.n(v);let b=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"");function w(){return b()}function S(e){return Array.isArray(e)?e.map((e=>({key:w(),item:e}))):[]}function _(e){return Array.isArray(e)?e.map((e=>e.item)):[]}class x extends o.Component{constructor(e){super(e),this._getNewFormDataRow=()=>{const{schema:e,registry:t}=this.props,{schemaUtils:r}=t;let n=e.items;return(0,a.nQ)(e)&&(0,a.Hh)(e)&&(n=e.additionalItems),r.getDefaultFormState(n)},this.onAddClick=e=>{this._handleAddClick(e)},this.onAddIndexClick=e=>t=>{this._handleAddClick(t,e)},this.onCopyIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r<=e?$()(a,[r],n[t]):r>e&&$()(a,[r+1],n[t])}}const s={key:w(),item:h()(o[e].item)},i=[...o];void 0!==e?i.splice(e+1,0,s):i.push(s),this.setState({keyedFormData:i,updatedKeyedFormData:!0},(()=>r(_(i),a)))},this.onDropIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r<e?$()(a,[r],n[t]):r>e&&$()(a,[r-1],n[t])}}const s=o.filter(((t,r)=>r!==e));this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(_(s),a)))},this.onReorderClick=(e,t)=>r=>{r&&(r.preventDefault(),r.currentTarget.blur());const{onChange:n,errorSchema:o}=this.props;let a;if(o){a={};for(const r in o){const n=parseInt(r);n==e?$()(a,[t],o[e]):n==t?$()(a,[e],o[t]):$()(a,[r],o[n])}}const{keyedFormData:s}=this.state;const i=function(){const r=s.slice();return r.splice(e,1),r.splice(t,0,s[e]),r}();this.setState({keyedFormData:i},(()=>n(_(i),a)))},this.onChangeForIndex=e=>(t,r,n)=>{const{formData:o,onChange:a,errorSchema:s}=this.props,i=(Array.isArray(o)?o:[]).map(((r,n)=>e===n?"undefined"===typeof t?null:t:r));a(i,s&&s&&{...s,[e]:r},n)},this.onSelectChange=e=>{const{onChange:t,idSchema:r}=this.props;t(e,void 0,r&&r.$id)};const{formData:t=[]}=e,r=S(t);this.state={keyedFormData:r,updatedKeyedFormData:!1}}static getDerivedStateFromProps(e,t){if(t.updatedKeyedFormData)return{updatedKeyedFormData:!1};const r=Array.isArray(e.formData)?e.formData:[],n=t.keyedFormData||[];return{keyedFormData:r.length===n.length?n.map(((e,t)=>({key:e.key,item:r[t]}))):S(r)}}get itemTitle(){const{schema:e,registry:t}=this.props,{translateString:r}=t;return i()(e,[a.ZN,"title"],i()(e,[a.ZN,"description"],r(a.Zl.ArrayItemTitle)))}isItemRequired(e){return Array.isArray(e.type)?!e.type.includes("null"):"null"!==e.type}canAddItem(e){const{schema:t,uiSchema:r,registry:n}=this.props;let{addable:o}=(0,a.$R)(r,n.globalUiOptions);return!1!==o&&(o=void 0===t.maxItems||e.length<t.maxItems),o}_handleAddClick(e,t){e&&e.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const e in n){const r=parseInt(e);void 0===t||r<t?$()(a,[r],n[e]):r>=t&&$()(a,[r+1],n[e])}}const s={key:w(),item:this._getNewFormDataRow()},i=[...o];void 0!==t?i.splice(t,0,s):i.push(s),this.setState({keyedFormData:i,updatedKeyedFormData:!0},(()=>r(_(i),a)))}render(){const{schema:e,uiSchema:t,idSchema:r,registry:o}=this.props,{schemaUtils:s,translateString:i}=o;if(!(a.ZN in e)){const s=(0,a.$R)(t),c=(0,a.$F)("UnsupportedFieldTemplate",o,s);return(0,n.jsx)(c,{schema:e,idSchema:r,reason:i(a.Zl.MissingItems),registry:o})}return s.isMultiSelect(e)?this.renderMultiSelect():(0,a.ar)(t)?this.renderCustomWidget():(0,a.nQ)(e)?this.renderFixedArray():s.isFilesArray(e,t)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:e,uiSchema:t={},errorSchema:r,idSchema:o,name:s,title:i,disabled:c=!1,readonly:l=!1,autofocus:d=!1,required:u=!1,registry:f,onBlur:p,onFocus:m,idPrefix:h,idSeparator:y="_",rawErrors:v}=this.props,{keyedFormData:$}=this.state,b=e.title||i||s,{schemaUtils:w,formContext:S}=f,x=(0,a.$R)(t),E=g()(e.items)?e.items:{},k=w.retrieveSchema(E),j=_(this.state.keyedFormData),C=this.canAddItem(j),P={canAdd:C,items:$.map(((e,n)=>{const{key:a,item:i}=e,c=i,l=w.retrieveSchema(E,c),u=r?r[n]:void 0,f=o.$id+y+n,g=w.toIdSchema(l,f,c,h,y);return this.renderArrayFieldItem({key:a,index:n,name:s&&`${s}-${n}`,title:b?`${b}-${n+1}`:void 0,canAdd:C,canMoveUp:n>0,canMoveDown:n<j.length-1,itemSchema:l,itemIdSchema:g,itemErrorSchema:u,itemData:c,itemUiSchema:t.items,autofocus:d&&0===n,onBlur:p,onFocus:m,rawErrors:v,totalItems:$.length})})),className:`field field-array field-array-of-${k.type}`,disabled:c,idSchema:o,uiSchema:t,onAddClick:this.onAddClick,readonly:l,required:u,schema:e,title:b,formContext:S,formData:j,rawErrors:v,registry:f},O=(0,a.$F)("ArrayFieldTemplate",f,x);return(0,n.jsx)(O,{...P})}renderCustomWidget(){var e;const{schema:t,idSchema:r,uiSchema:o,disabled:s=!1,readonly:i=!1,autofocus:c=!1,required:l=!1,hideError:d,placeholder:u,onBlur:f,onFocus:p,formData:m=[],registry:h,rawErrors:y,name:g}=this.props,{widgets:v,formContext:$,globalUiOptions:b,schemaUtils:w}=h,{widget:S,title:_,...x}=(0,a.$R)(o,b),E=(0,a.Bt)(t,S,v),k=null!==(e=null!==_&&void 0!==_?_:t.title)&&void 0!==e?e:g,j=w.getDisplayLabel(t,o,b);return(0,n.jsx)(E,{id:r.$id,name:g,multiple:!0,onChange:this.onSelectChange,onBlur:f,onFocus:p,options:x,schema:t,uiSchema:o,registry:h,value:m,disabled:s,readonly:i,hideError:d,required:l,label:k,hideLabel:!j,placeholder:u,formContext:$,autofocus:c,rawErrors:y})}renderMultiSelect(){var e;const{schema:t,idSchema:r,uiSchema:o,formData:s=[],disabled:i=!1,readonly:c=!1,autofocus:l=!1,required:d=!1,placeholder:u,onBlur:f,onFocus:p,registry:m,rawErrors:h,name:y}=this.props,{widgets:g,schemaUtils:v,formContext:$,globalUiOptions:b}=m,w=v.retrieveSchema(t.items,s),S=(0,a.f9)(w),{widget:_="select",title:x,...E}=(0,a.$R)(o,b),k=(0,a.Bt)(t,_,g),j=null!==(e=null!==x&&void 0!==x?x:t.title)&&void 0!==e?e:y,C=v.getDisplayLabel(t,o,b);return(0,n.jsx)(k,{id:r.$id,name:y,multiple:!0,onChange:this.onSelectChange,onBlur:f,onFocus:p,options:{...E,enumOptions:S},schema:t,uiSchema:o,registry:m,value:s,disabled:i,readonly:c,required:d,label:j,hideLabel:!C,placeholder:u,formContext:$,autofocus:l,rawErrors:h})}renderFiles(){var e;const{schema:t,uiSchema:r,idSchema:o,name:s,disabled:i=!1,readonly:c=!1,autofocus:l=!1,required:d=!1,onBlur:u,onFocus:f,registry:p,formData:m=[],rawErrors:h}=this.props,{widgets:y,formContext:g,globalUiOptions:v,schemaUtils:$}=p,{widget:b="files",title:w,...S}=(0,a.$R)(r,v),_=(0,a.Bt)(t,b,y),x=null!==(e=null!==w&&void 0!==w?w:t.title)&&void 0!==e?e:s,E=$.getDisplayLabel(t,r,v);return(0,n.jsx)(_,{options:S,id:o.$id,name:s,multiple:!0,onChange:this.onSelectChange,onBlur:u,onFocus:f,schema:t,uiSchema:r,value:m,disabled:i,readonly:c,required:d,registry:p,formContext:g,autofocus:l,rawErrors:h,label:x,hideLabel:!E})}renderFixedArray(){const{schema:e,uiSchema:t={},formData:r=[],errorSchema:o,idPrefix:s,idSeparator:i="_",idSchema:c,name:l,title:d,disabled:u=!1,readonly:f=!1,autofocus:p=!1,required:m=!1,registry:h,onBlur:y,onFocus:v,rawErrors:$}=this.props,{keyedFormData:b}=this.state;let{formData:w=[]}=this.props;const S=e.title||d||l,_=(0,a.$R)(t),{schemaUtils:x,formContext:E}=h,k=(g()(e.items)?e.items:[]).map(((e,t)=>x.retrieveSchema(e,r[t]))),j=g()(e.additionalItems)?x.retrieveSchema(e.additionalItems,r):null;(!w||w.length<k.length)&&(w=w||[],w=w.concat(new Array(k.length-w.length)));const C=this.canAddItem(w)&&!!j,P={canAdd:C,className:"field field-array field-array-fixed-items",disabled:u,idSchema:c,formData:r,items:b.map(((r,n)=>{const{key:a,item:d}=r,u=d,f=n>=k.length,m=(f&&g()(e.additionalItems)?x.retrieveSchema(e.additionalItems,u):k[n])||{},h=c.$id+i+n,_=x.toIdSchema(m,h,u,s,i),E=f?t.additionalItems||{}:Array.isArray(t.items)?t.items[n]:t.items||{},j=o?o[n]:void 0;return this.renderArrayFieldItem({key:a,index:n,name:l&&`${l}-${n}`,title:S?`${S}-${n+1}`:void 0,canAdd:C,canRemove:f,canMoveUp:n>=k.length+1,canMoveDown:f&&n<w.length-1,itemSchema:m,itemData:u,itemUiSchema:E,itemIdSchema:_,itemErrorSchema:j,autofocus:p&&0===n,onBlur:y,onFocus:v,rawErrors:$,totalItems:b.length})})),onAddClick:this.onAddClick,readonly:f,required:m,registry:h,schema:e,uiSchema:t,title:S,formContext:E,errorSchema:o,rawErrors:$},O=(0,a.$F)("ArrayFieldTemplate",h,_);return(0,n.jsx)(O,{...P})}renderArrayFieldItem(e){const{key:t,index:r,name:o,canAdd:s,canRemove:i=!0,canMoveUp:c,canMoveDown:l,itemSchema:d,itemData:u,itemUiSchema:f,itemIdSchema:p,itemErrorSchema:m,autofocus:h,onBlur:y,onFocus:g,rawErrors:v,totalItems:$,title:b}=e,{disabled:w,hideError:S,idPrefix:_,idSeparator:x,readonly:E,uiSchema:k,registry:j,formContext:C}=this.props,{fields:{ArraySchemaField:P,SchemaField:O},globalUiOptions:N}=j,A=P||O,{orderable:D=!0,removable:I=!0,copyable:F=!1}=(0,a.$R)(k,N),T={moveUp:D&&c,moveDown:D&&l,copy:F&&s,remove:I&&i,toolbar:!1};return T.toolbar=Object.keys(T).some((e=>T[e])),{children:(0,n.jsx)(A,{name:o,title:b,index:r,schema:d,uiSchema:f,formData:u,formContext:C,errorSchema:m,idPrefix:_,idSeparator:x,idSchema:p,required:this.isItemRequired(d),onChange:this.onChangeForIndex(r),onBlur:y,onFocus:g,registry:j,disabled:w,readonly:E,hideError:S,autofocus:h,rawErrors:v}),className:"array-item",disabled:w,canAdd:s,hasCopy:T.copy,hasToolbar:T.toolbar,hasMoveUp:T.moveUp,hasMoveDown:T.moveDown,hasRemove:T.remove,index:r,totalItems:$,key:t,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:E,registry:j,schema:d,uiSchema:f}}}const E=x;const k=function(e){var t,r,o;const{schema:s,name:i,uiSchema:c,idSchema:l,formData:d,registry:u,required:f,disabled:p,readonly:m,hideError:h,autofocus:y,title:v,onChange:$,onFocus:b,onBlur:w,rawErrors:S}=e,{title:_}=s,{widgets:x,formContext:E,translateString:k,globalUiOptions:j}=u,{widget:C="checkbox",title:P,label:O=!0,...N}=(0,a.$R)(c,j),A=(0,a.Bt)(s,C,x),D=k(a.Zl.YesLabel),I=k(a.Zl.NoLabel);let F;const T=null!==(r=null!==(t=null!==P&&void 0!==P?P:_)&&void 0!==t?t:v)&&void 0!==r?r:i;if(Array.isArray(s.oneOf))F=(0,a.f9)({oneOf:s.oneOf.map((e=>{if(g()(e))return{...e,title:e.title||(!0===e.const?D:I)}})).filter((e=>e))});else{const e=s,t=null!==(o=s.enum)&&void 0!==o?o:[!0,!1];F=!e.enumNames&&2===t.length&&t.every((e=>"boolean"===typeof e))?[{value:t[0],label:t[0]?D:I},{value:t[1],label:t[1]?D:I}]:(0,a.f9)({enum:t,enumNames:e.enumNames})}return(0,n.jsx)(A,{options:{...N,enumOptions:F},schema:s,uiSchema:c,id:l.$id,name:i,onChange:$,onFocus:b,onBlur:w,label:T,hideLabel:!O,value:d,required:f,disabled:p,readonly:m,hideError:h,registry:u,formContext:E,autofocus:y,rawErrors:S})};var j=r(90179),C=r.n(j);class P extends o.Component{constructor(e){super(e),this.onOptionChange=e=>{const{selectedOption:t,retrievedOptions:r}=this.state,{formData:n,onChange:o,registry:a}=this.props,{schemaUtils:s}=a,i=void 0!==e?parseInt(e,10):-1;if(i===t)return;const c=i>=0?r[i]:void 0,l=t>=0?r[t]:void 0;let d=s.sanitizeDataForNewSchema(c,l,n);d&&c&&(d=s.getDefaultFormState(c,d,"excludeObjectChildren")),o(d,void 0,this.getFieldId()),this.setState({selectedOption:i})};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,idSchema: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.idSchema.$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)}getFieldId(){const{idSchema:e,schema:t}=this.props;return`${e.$id}${t.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:t=!1,errorSchema:r={},formContext:o,onBlur:s,onFocus:c,registry:d,schema:u,uiSchema:f}=this.props,{widgets:p,fields:m,translateString:h,globalUiOptions:y,schemaUtils:g}=d,{SchemaField:v}=m,{selectedOption:$,retrievedOptions:b}=this.state,{widget:w="select",placeholder:S,autofocus:_,autocomplete:x,title:E=u.title,...k}=(0,a.$R)(f,y),j=(0,a.Bt)({type:"number"},w,p),P=i()(r,a.s2,[]),O=C()(r,[a.s2]),N=g.getDisplayLabel(u,f,y),A=$>=0&&b[$]||null;let D;if(A){const{required:e}=u;D=e?(0,a.dW)({required:e},A):A}let I=[];a.Ru in u&&f&&a.Ru in f?Array.isArray(f[a.Ru])?I=f[a.Ru]:console.warn(`uiSchema.oneOf is not an array for "${E||e}"`):a.Xo in u&&f&&a.Xo in f&&(Array.isArray(f[a.Xo])?I=f[a.Xo]:console.warn(`uiSchema.anyOf is not an array for "${E||e}"`));let F=f;$>=0&&I.length>$&&(F=I[$]);const T=E?a.Zl.TitleOptionPrefix:a.Zl.OptionPrefix,R=E?[E]:[],M=b.map(((e,t)=>{const{title:r=e.title}=(0,a.$R)(I[t]);return{label:r||h(T,R.concat(String(t+1))),value:t}}));return(0,n.jsxs)("div",{className:"panel panel-default panel-body",children:[(0,n.jsx)("div",{className:"form-group",children:(0,n.jsx)(j,{id:this.getFieldId(),name:`${e}${u.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:s,onFocus:c,disabled:t||l()(M),multiple:!1,rawErrors:P,errorSchema:O,value:$>=0?$:void 0,options:{enumOptions:M,...k},registry:d,formContext:o,placeholder:S,autocomplete:x,autofocus:_,label:null!==E&&void 0!==E?E:e,hideLabel:!N})}),D&&(0,n.jsx)(v,{...this.props,schema:D,uiSchema:F})]})}}const O=P,N=/\.([0-9]*0)*$/,A=/[0.]0*$/;const D=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=>{l(e),"."===`${e}`.charAt(0)&&(e=`0${e}`);const t="string"===typeof e&&e.match(N)?(0,a.i)(e.replace(A,"")):(0,a.i)(e);r(t)}),[r]);if("string"===typeof c&&"number"===typeof u){const e=new RegExp(`${u}`.replace(".","\\.")+"\\.?0*$");c.match(e)&&(u=c)}return(0,n.jsx)(d,{...e,formData:u,onChange:f})};function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},I.apply(this,arguments)}const F=["children","options"];var T,R,M;(M=T||(T={})).blockQuote="0",M.breakLine="1",M.breakThematic="2",M.codeBlock="3",M.codeFenced="4",M.codeInline="5",M.footnote="6",M.footnoteReference="7",M.gfmTask="8",M.heading="9",M.headingSetext="10",M.htmlBlock="11",M.htmlComment="12",M.htmlSelfClosing="13",M.image="14",M.link="15",M.linkAngleBraceStyleDetector="16",M.linkBareUrlDetector="17",M.linkMailtoDetector="18",M.newlineCoalescer="19",M.orderedList="20",M.paragraph="21",M.ref="22",M.refImage="23",M.refLink="24",M.table="25",M.tableSeparator="26",M.text="27",M.textBolded="28",M.textEmphasized="29",M.textEscaped="30",M.textMarked="31",M.textStrikethroughed="32",M.unorderedList="33",function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(R||(R={}));const U=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","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)),{for:"htmlFor"}),V={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xa0",quot:"\u201c"},B=["style","script"],q=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,z=/mailto:/i,L=/\n{2,}$/,K=/^(\s*>[\s\S]*?)(?=\n{2,})/,W=/^ *> ?/gm,H=/^ {2,}\n/,G=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Z=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,J=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Y=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,Q=/^(?:\n *)*\n/,X=/\r\n?/g,ee=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,te=/^\[\^([^\]]+)]/,re=/\f/g,ne=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,oe=/^\s*?\[(x|\s)\]/,ae=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,se=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ie=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,ce=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,le=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,de=/^<!--[\s\S]*?(?:-->)/,ue=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,fe=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,pe=/^\{.*\}$/,me=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,he=/^<([^ >]+@[^ >]+)>/,ye=/^<([^ >]+:\/[^ >]+)>/,ge=/-([a-z])?/gi,ve=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,$e=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,be=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,we=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Se=/(\[|\])/g,_e=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,xe=/\t/g,Ee=/^ *\| */,ke=/(^ *\||\| *$)/g,je=/ *$/,Ce=/^ *:-+: *$/,Pe=/^ *:-+ *$/,Oe=/^ *-+: *$/,Ne="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",Ae=new RegExp(`^([*_])\\1${Ne}\\1\\1(?!\\1)`),De=new RegExp(`^([*_])${Ne}\\1(?!\\1|\\w)`),Ie=new RegExp(`^==${Ne}==`),Fe=new RegExp(`^~~${Ne}~~`),Te=/^\\([^0-9A-Za-z\s])/,Re=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Me=/^\n+/,Ue=/^([ \t]*)/,Ve=/\\([^\\])/g,Be=/ *\n+$/,qe=/(?:^|\n)( *)$/,ze="(?:\\d+\\.)",Le="(?:[*+-])";function Ke(e){return"( *)("+(1===e?ze:Le)+") +"}const We=Ke(1),He=Ke(2);function Ge(e){return new RegExp("^"+(1===e?We:He))}const Ze=Ge(1),Je=Ge(2);function Ye(e){return new RegExp("^"+(1===e?We:He)+"[^\\n]*(?:\\n(?!\\1"+(1===e?ze:Le)+" )[^\\n]*)*(\\n|$)","gm")}const Qe=Ye(1),Xe=Ye(2);function et(e){const t=1===e?ze:Le;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const tt=et(1),rt=et(2);function nt(e,t){const r=1===t,n=r?tt:rt,o=r?Qe:Xe,a=r?Ze:Je;return{match(e,t,r){const o=qe.exec(r);return o&&(t.list||!t.inline&&!t.simple)?n.exec(e=o[1]+e):null},order:1,parse(e,t,n){const s=r?+e[2]:void 0,i=e[0].replace(L,"\n").match(o);let c=!1;return{items:i.map((function(e,r){const o=a.exec(e)[0].length,s=new RegExp("^ {1,"+o+"}","gm"),l=e.replace(s,"").replace(a,""),d=r===i.length-1,u=-1!==l.indexOf("\n\n")||d&&c;c=u;const f=n.inline,p=n.list;let m;n.list=!0,u?(n.inline=!1,m=l.replace(Be,"\n\n")):(n.inline=!0,m=l.replace(Be,""));const h=t(m,n);return n.inline=f,n.list=p,h})),ordered:r,start:s}},render:(t,r,n)=>e(t.ordered?"ol":"ul",{key:n.key,start:"20"===t.type?t.start:void 0},t.items.map((function(t,o){return e("li",{key:o},r(t,n))})))}}const ot=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),at=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,st=[K,Z,J,ae,ie,se,de,ve,Qe,tt,Xe,rt],it=[...st,/^[^\n]+(?:  \n|\n{2,})/,ce,fe];function ct(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 lt(e){return Oe.test(e)?"right":Ce.test(e)?"center":Pe.test(e)?"left":null}function dt(e,t,r){const n=r.inTable;r.inTable=!0;const o=t(e.trim(),r);r.inTable=n;let a=[[]];return o.forEach((function(e,t){"26"===e.type?0!==t&&t!==o.length-1&&a.push([]):("27"!==e.type||null!=o[t+1]&&"26"!==o[t+1].type||(e.text=e.text.replace(je,"")),a[a.length-1].push(e))})),a}function ut(e,t,r){r.inline=!0;const n=dt(e[1],t,r),o=e[2].replace(ke,"").split("|").map(lt),a=function(e,t,r){return e.trim().split("\n").map((function(e){return dt(e,t,r)}))}(e[3],t,r);return r.inline=!1,{align:o,cells:a,header:n,type:"25"}}function ft(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function pt(e){return function(t,r){return r.inline?e.exec(t):null}}function mt(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function ht(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function yt(e){return function(t){return e.exec(t)}}function gt(e,t,r){if(t.inline||t.simple)return null;if(r&&!r.endsWith("\n"))return null;let n="";e.split("\n").every((e=>!st.some((t=>t.test(e)))&&(n+=e+"\n",e.trim())));const o=n.trimEnd();return""==o?null:[n,o]}function vt(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function $t(e){return e.replace(Ve,"$1")}function bt(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 wt(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 St(e,t,r){return r.inline=!1,e(t,r)}const _t=(e,t,r)=>({children:bt(t,e[1],r)});function xt(){return{}}function Et(){return null}function kt(...e){return e.filter(Boolean).join(" ")}function jt(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 Ct(e="",t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||ct,t.namedCodesToUnicode=t.namedCodesToUnicode?I({},V,t.namedCodesToUnicode):V;const r=t.createElement||o.createElement;function n(e,n,...o){const a=jt(t.overrides,`${e}.props`,{});return r(function(e,t){const r=jt(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:jt(t,`${e}.component`,e):e}(e,t.overrides),I({},n,a,{className:kt(null==n?void 0:n.className,a.className)||void 0}),...o)}function a(e){e=e.replace(ne,"");let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===_e.test(e));const a=u(d(r?e:`${e.trimEnd().replace(Me,"")}\n\n`,{inline:r}));for(;"string"==typeof a[a.length-1]&&!a[a.length-1].trim();)a.pop();if(null===t.wrapper)return a;const s=t.wrapper||(r?"span":"div");let i;if(a.length>1||t.forceWrapper)i=a;else{if(1===a.length)return i=a[0],"string"==typeof i?n("span",{key:"outer"},i):i;i=null}return o.createElement(s,{key:"outer"},i)}function s(e){const t=e.match(q);return t?t.reduce((function(e,t,r){const n=t.indexOf("=");if(-1!==n){const s=function(e){return-1!==e.indexOf("-")&&null===e.match(ue)&&(e=e.replace(ge,(function(e,t){return t.toUpperCase()}))),e}(t.slice(0,n)).trim(),i=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(t.slice(n+1).trim()),c=U[s]||s,l=e[c]=function(e,t){return"style"===e?t.split(/;\s?/).reduce((function(e,t){const r=t.slice(0,t.indexOf(":"));return e[r.trim().replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(r.length+1).trim(),e}),{}):"href"===e||"src"===e?vt(t):(t.match(pe)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(s,i);"string"==typeof l&&(ce.test(l)||fe.test(l))&&(e[c]=o.cloneElement(a(l.trim()),{key:r}))}else"style"!==t&&(e[U[t]||t]=!0);return e}),{}):null}const i=[],c={},l={0:{match:ht(K),order:1,parse:(e,t,r)=>({children:t(e[0].replace(W,""),r)}),render:(e,t,r)=>n("blockquote",{key:r.key},t(e.children,r))},1:{match:yt(H),order:1,parse:xt,render:(e,t,r)=>n("br",{key:r.key})},2:{match:ht(G),order:1,parse:xt,render:(e,t,r)=>n("hr",{key:r.key})},3:{match:ht(J),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,r)=>n("pre",{key:r.key},n("code",I({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},4:{match:ht(Z),order:0,parse:e=>({attrs:s(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"})},5:{match:mt(Y),order:3,parse:e=>({text:e[2]}),render:(e,t,r)=>n("code",{key:r.key},e.text)},6:{match:ht(ee),order:0,parse:e=>(i.push({footnote:e[2],identifier:e[1]}),{}),render:Et},7:{match:pt(te),order:1,parse:e=>({target:`#${t.slugify(e[1])}`,text:e[1]}),render:(e,t,r)=>n("a",{key:r.key,href:vt(e.target)},n("sup",{key:r.key},e.text))},8:{match:pt(oe),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,r)=>n("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"})},9:{match:ht(t.enforceAtxHeadings?se:ae),order:1,parse:(e,r,n)=>({children:bt(r,e[2],n),id:t.slugify(e[2]),level:e[1].length}),render:(e,t,r)=>n(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r))},10:{match:ht(ie),order:0,parse:(e,t,r)=>({children:bt(t,e[1],r),level:"="===e[2]?1:2,type:"9"})},11:{match:yt(ce),order:1,parse(e,t,r){const[,n]=e[3].match(Ue),o=new RegExp(`^${n}`,"gm"),a=e[3].replace(o,""),i=(c=a,it.some((e=>e.test(c)))?St:bt);var c;const l=e[1].toLowerCase(),d=-1!==B.indexOf(l),u={attrs:s(e[2]),noInnerParse:d,tag:(d?l:e[1]).trim()};return r.inAnchor=r.inAnchor||"a"===l,d?u.text=e[3]:u.children=i(t,a,r),r.inAnchor=!1,u},render:(e,t,r)=>n(e.tag,I({key:r.key},e.attrs),e.text||t(e.children,r))},13:{match:yt(fe),order:1,parse:e=>({attrs:s(e[2]||""),tag:e[1].trim()}),render:(e,t,r)=>n(e.tag,I({},e.attrs,{key:r.key}))},12:{match:yt(de),order:1,parse:()=>({}),render:Et},14:{match:mt(at),order:1,parse:e=>({alt:e[1],target:$t(e[2]),title:e[3]}),render:(e,t,r)=>n("img",{key:r.key,alt:e.alt||void 0,title:e.title||void 0,src:vt(e.target)})},15:{match:pt(ot),order:3,parse:(e,t,r)=>({children:wt(t,e[1],r),target:$t(e[2]),title:e[3]}),render:(e,t,r)=>n("a",{key:r.key,href:vt(e.target),title:e.title},t(e.children,r))},16:{match:pt(ye),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],type:"15"})},17:{match:(e,t)=>t.inAnchor?null:pt(me)(e,t),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},18:{match:pt(he),order:0,parse(e){let t=e[1],r=e[1];return z.test(r)||(r="mailto:"+r),{children:[{text:t.replace("mailto:",""),type:"27"}],target:r,type:"15"}}},20:nt(n,1),33:nt(n,2),19:{match:ht(Q),order:3,parse:xt,render:()=>"\n"},21:{match:gt,order:3,parse:_t,render:(e,t,r)=>n("p",{key:r.key},t(e.children,r))},22:{match:pt($e),order:0,parse:e=>(c[e[1]]={target:e[2],title:e[4]},{}),render:Et},23:{match:mt(be),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,t,r)=>c[e.ref]?n("img",{key:r.key,alt:e.alt,src:vt(c[e.ref].target),title:c[e.ref].title}):null},24:{match:pt(we),order:0,parse:(e,t,r)=>({children:t(e[1],r),fallbackChildren:t(e[0].replace(Se,"\\$1"),r),ref:e[2]}),render:(e,t,r)=>c[e.ref]?n("a",{key:r.key,href:vt(c[e.ref].target),title:c[e.ref].title},t(e.children,r)):n("span",{key:r.key},t(e.fallbackChildren,r))},25:{match:ht(ve),order:1,parse:ut,render:(e,t,r)=>n("table",{key:r.key},n("thead",null,n("tr",null,e.header.map((function(o,a){return n("th",{key:a,style:ft(e,a)},t(o,r))})))),n("tbody",null,e.cells.map((function(o,a){return n("tr",{key:a},o.map((function(o,a){return n("td",{key:a,style:ft(e,a)},t(o,r))})))}))))},26:{match:function(e,t){return t.inTable?(t.inline=!0,Ee.exec(e)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:yt(Re),order:4,parse:e=>({text:e[0].replace(le,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),render:e=>e.text},28:{match:mt(Ae),order:2,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,r)=>n("strong",{key:r.key},t(e.children,r))},29:{match:mt(De),order:3,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,r)=>n("em",{key:r.key},t(e.children,r))},30:{match:mt(Te),order:1,parse:e=>({text:e[1],type:"27"})},31:{match:mt(Ie),order:3,parse:_t,render:(e,t,r)=>n("mark",{key:r.key},t(e.children,r))},32:{match:mt(Fe),order:3,parse:_t,render:(e,t,r)=>n("del",{key:r.key},t(e.children,r))}};!0===t.disableParsingRawHTML&&(delete l[11],delete l[13]);const d=function(e){let t=Object.keys(e);function r(n,o){let a=[],s="";for(;n;){let i=0;for(;i<t.length;){const c=t[i],l=e[c],d=l.match(n,o,s);if(d){const e=d[0];n=n.substring(e.length);const t=l.parse(d,r,o);null==t.type&&(t.type=c),a.push(t),s=e;break}i++}}return a}return t.sort((function(t,r){let n=e[t].order,o=e[r].order;return n!==o?n-o:t<r?-1:1})),function(e,t){return r(function(e){return e.replace(X,"\n").replace(re,"").replace(xe,"    ")}(e),t)}}(l),u=(f=function(e,t){return function(r,n,o){const a=e[r.type].render;return t?t((()=>a(r,n,o)),r,n,o):a(r,n,o)}}(l,t.renderRule),function e(t,r={}){if(Array.isArray(t)){const n=r.key,o=[];let a=!1;for(let s=0;s<t.length;s++){r.key=s;const n=e(t[s],r),i="string"==typeof n;i&&a?o[o.length-1]+=n:null!==n&&o.push(n),a=i}return r.key=n,o}return f(t,e,r)});var f;const p=a(e);return i.length?n("div",null,p,n("footer",{key:"footer"},i.map((function(e){return n("div",{id:t.slugify(e.identifier),key:e.identifier},e.identifier,u(d(e.footnote,{inline:!0})))})))):p}const Pt=e=>{let{children:t="",options:r}=e,n=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(e,F);return o.cloneElement(Ct(t,r),n)};var Ot=r(61448),Nt=r.n(Ot),At=r(73357),Dt=r.n(At);class It extends o.Component{constructor(){super(...arguments),this.state={wasPropertyKeyModified:!1,additionalProperties:{}},this.onPropertyChange=(e,t=!1)=>(r,n,o)=>{const{formData:a,onChange:s,errorSchema:i}=this.props;void 0===r&&t&&(r="");s({...a,[e]:r},i&&i&&{...i,[e]:n},o)},this.onDropPropertyClick=e=>t=>{t.preventDefault();const{onChange:r,formData:n}=this.props,o={...n};Dt()(o,e),r(o)},this.getAvailableKey=(e,t)=>{const{uiSchema:r,registry:n}=this.props,{duplicateKeySuffixSeparator:o="-"}=(0,a.$R)(r,n.globalUiOptions);let s=0,i=e;for(;Nt()(t,i);)i=`${e}${o}${++s}`;return i},this.onKeyChange=e=>(t,r)=>{if(e===t)return;const{formData:n,onChange:o,errorSchema:a}=this.props;t=this.getAvailableKey(t,n);const s={...n},i={[e]:t},c=Object.keys(s).map((e=>({[i[e]||e]:s[e]}))),l=Object.assign({},...c);this.setState({wasPropertyKeyModified:!0}),o(l,a&&a&&{...a,[t]:r})},this.handleAddClick=e=>()=>{if(!e.additionalProperties)return;const{formData:t,onChange:r,registry:n}=this.props,o={...t};let s;if(g()(e.additionalProperties)){s=e.additionalProperties.type;let r=e.additionalProperties;if(a.Es in r){const{schemaUtils:e}=n;r=e.retrieveSchema({$ref:r[a.Es]},t),s=r.type}s||!(a.Xo in r)&&!(a.Ru in r)||(s="object")}const i=this.getAvailableKey("newKey",o);$()(o,i,this.getDefaultValue(s)),r(o)}}isRequired(e){const{schema:t}=this.props;return Array.isArray(t.required)&&-1!==t.required.indexOf(e)}getDefaultValue(e){const{registry:{translateString:t}}=this.props;switch(e){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return t(a.Zl.NewStringDefault)}}render(){var e,t,r,o;const{schema:s,uiSchema:c={},formData:l,errorSchema:d,idSchema:u,name:f,required:p=!1,disabled:m=!1,readonly:h=!1,hideError:y,idPrefix:g,idSeparator:v,onBlur:$,onFocus:b,registry:w,title:S}=this.props,{fields:_,formContext:x,schemaUtils:E,translateString:k,globalUiOptions:j}=w,{SchemaField:C}=_,P=E.retrieveSchema(s,l),O=(0,a.$R)(c,j),{properties:N={}}=P,A=null!==(r=null!==(t=null!==(e=O.title)&&void 0!==e?e:P.title)&&void 0!==t?t:S)&&void 0!==r?r:f,D=null!==(o=O.description)&&void 0!==o?o:P.description;let I;try{const e=Object.keys(N);I=(0,a.UI)(e,O.order)}catch(R){return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"config-error",style:{color:"red"},children:(0,n.jsx)(Pt,{children:k(a.Zl.InvalidObjectField,[f||"root",R.message])})}),(0,n.jsx)("pre",{children:JSON.stringify(P)})]})}const F=(0,a.$F)("ObjectFieldTemplate",w,O),T={title:!1===O.label?"":A,description:!1===O.label?void 0:D,properties:I.map((e=>{const t=Nt()(P,[a.s1,e,a.Rr]),r=t?c.additionalProperties:c[e],o="hidden"===(0,a.$R)(r).widget,s=i()(u,[e],{});return{content:(0,n.jsx)(C,{name:e,required:this.isRequired(e),schema:i()(P,[a.s1,e],{}),uiSchema:r,errorSchema:i()(d,e),idSchema:s,idPrefix:g,idSeparator:v,formData:i()(l,e),formContext:x,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(e),onChange:this.onPropertyChange(e,t),onBlur:$,onFocus:b,registry:w,disabled:m,readonly:h,hideError:y,onDropPropertyClick:this.onDropPropertyClick},e),name:e,readonly:h,disabled:m,required:p,hidden:o}})),readonly:h,disabled:m,required:p,idSchema:u,uiSchema:c,errorSchema:d,schema:P,formData:l,formContext:x,registry:w};return(0,n.jsx)(F,{...T,onAddClick:this.handleAddClick})}}const Ft=It,Tt={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Rt(e){const{schema:t,idSchema:r,uiSchema:s,formData:i,errorSchema:c,idPrefix:l,idSeparator:d,name:u,onChange:f,onKeyChange:p,onDropPropertyClick:m,required:h,registry:y,wasPropertyKeyModified:v=!1}=e,{formContext:$,schemaUtils:b,globalUiOptions:w}=y,S=(0,a.$R)(s,w),_=(0,a.$F)("FieldTemplate",y,S),x=(0,a.$F)("DescriptionFieldTemplate",y,S),E=(0,a.$F)("FieldHelpTemplate",y,S),k=(0,a.$F)("FieldErrorTemplate",y,S),j=b.retrieveSchema(t,i),P=r[a.K0],O=(0,a.rL)(b.toIdSchema(j,P,i,l,d),r),N=(0,o.useCallback)(((e,t,r)=>f(e,t,r||P)),[P,f]),A=function(e,t,r,o){const s=t.field,{fields:i,translateString:c}=o;if("function"===typeof s)return s;if("string"===typeof s&&s in i)return i[s];const l=(0,a._I)(e),d=Array.isArray(l)?l[0]:l||"",u=e.$id;let f=Tt[d];return u&&u in i&&(f=u),f||!e.anyOf&&!e.oneOf?f in i?i[f]:()=>{const s=(0,a.$F)("UnsupportedFieldTemplate",o,t);return(0,n.jsx)(s,{schema:e,idSchema:r,reason:c(a.Zl.UnknownFieldType,[String(e.type)]),registry:o})}:()=>null}(j,S,O,y),D=Boolean(e.disabled||S.disabled),I=Boolean(e.readonly||S.readonly||e.schema.readOnly||j.readOnly),F=S.hideError,T=void 0===F?e.hideError:Boolean(F),R=Boolean(e.autofocus||S.autofocus);if(0===Object.keys(j).length)return null;const M=b.getDisplayLabel(j,s,w),{__errors:U,...V}=c||{},B=C()(s,["ui:classNames","classNames","ui:style"]);a.ce in B&&(B[a.ce]=C()(B[a.ce],["classNames","style"]));const q=(0,n.jsx)(A,{...e,onChange:N,idSchema:O,schema:j,uiSchema:B,disabled:D,readonly:I,hideError:T,autofocus:R,errorSchema:V,formContext:$,rawErrors:U}),z=O[a.K0];let L;L=v||a.Rr in j?u:S.title||e.schema.title||j.title||e.title||u;const K=S.description||e.schema.description||j.description||"",W=S.enableMarkdownInDescription?(0,n.jsx)(Pt,{children:K}):K,H=S.help,G="hidden"===S.widget,Z=["form-group","field",`field-${(0,a._I)(j)}`];!T&&U&&U.length>0&&Z.push("field-error has-error has-danger"),(null===s||void 0===s?void 0:s.classNames)&&Z.push(s.classNames),S.classNames&&Z.push(S.classNames);const J=(0,n.jsx)(E,{help:H,idSchema:O,schema:j,uiSchema:s,hasErrors:!T&&U&&U.length>0,registry:y}),Y=T||(j.anyOf||j.oneOf)&&!b.isSelect(j)?void 0:(0,n.jsx)(k,{errors:U,errorSchema:c,idSchema:O,schema:j,uiSchema:s,registry:y}),Q={description:(0,n.jsx)(x,{id:(0,a.IR)(z),description:W,schema:j,uiSchema:s,registry:y}),rawDescription:K,help:J,rawHelp:"string"===typeof H?H:void 0,errors:Y,rawErrors:T?void 0:U,id:z,label:L,hidden:G,onChange:f,onKeyChange:p,onDropPropertyClick:m,required:h,disabled:D,readonly:I,hideError:T,displayLabel:M,classNames:Z.join(" ").trim(),style:S.style,formContext:$,formData:i,schema:j,uiSchema:s,registry:y},X=y.fields.AnyOfField,ee=y.fields.OneOfField,te=(null===s||void 0===s?void 0:s["ui:field"])&&!0===(null===s||void 0===s?void 0:s["ui:fieldReplacesAnyOrOneOf"]);return(0,n.jsx)(_,{...Q,children:(0,n.jsxs)(n.Fragment,{children:[q,j.anyOf&&!te&&!b.isSelect(j)&&(0,n.jsx)(X,{name:u,disabled:D,readonly:I,hideError:T,errorSchema:c,formData:i,formContext:$,idPrefix:l,idSchema:O,idSeparator:d,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:j.anyOf.map((e=>b.retrieveSchema(g()(e)?e:{},i))),registry:y,schema:j,uiSchema:s}),j.oneOf&&!te&&!b.isSelect(j)&&(0,n.jsx)(ee,{name:u,disabled:D,readonly:I,hideError:T,errorSchema:c,formData:i,formContext:$,idPrefix:l,idSchema:O,idSeparator:d,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:j.oneOf.map((e=>b.retrieveSchema(g()(e)?e:{},i))),registry:y,schema:j,uiSchema:s})]})})}class Mt extends o.Component{shouldComponentUpdate(e){return!(0,a.c2)(this.props,e)}render(){return(0,n.jsx)(Rt,{...this.props})}}const Ut=Mt;const Vt=function(e){var t;const{schema:r,name:o,uiSchema:s,idSchema:i,formData:c,required:l,disabled:d=!1,readonly:u=!1,autofocus:f=!1,onChange:p,onBlur:m,onFocus:h,registry:y,rawErrors:g,hideError:v}=e,{title:$,format:b}=r,{widgets:w,formContext:S,schemaUtils:_,globalUiOptions:x}=y,E=_.isSelect(r)?(0,a.f9)(r):void 0;let k=E?"select":"text";b&&(0,a.Lw)(r,b,w)&&(k=b);const{widget:j=k,placeholder:C="",title:P,...O}=(0,a.$R)(s),N=_.getDisplayLabel(r,s,x),A=null!==(t=null!==P&&void 0!==P?P:$)&&void 0!==t?t:o,D=(0,a.Bt)(r,j,w);return(0,n.jsx)(D,{options:{...O,enumOptions:E},schema:r,uiSchema:s,id:i.$id,name:o,label:A,hideLabel:!N,hideError:v,value:c,onChange:p,onBlur:m,onFocus:h,required:l,disabled:d,readonly:u,formContext:S,autofocus:f,registry:y,placeholder:C,rawErrors:g})};const Bt=function(e){const{formData:t,onChange:r}=e;return(0,o.useEffect)((()=>{void 0===t&&r(null)}),[t,r]),null};const qt=function(){return{AnyOfField:O,ArrayField:E,BooleanField:k,NumberField:D,ObjectField:Ft,OneOfField:O,SchemaField:Ut,StringField:Vt,NullField:Bt}};function zt(e){const{idSchema: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 Lt(e){const{children:t,className:r,disabled:o,hasToolbar:a,hasMoveDown:s,hasMoveUp:i,hasRemove:c,hasCopy:l,index:d,onCopyIndexClick:u,onDropIndexClick:f,onReorderClick:p,readonly:m,registry:h,uiSchema:y}=e,{CopyButton:g,MoveDownButton:v,MoveUpButton:$,RemoveButton:b}=h.templates.ButtonTemplates,w={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return(0,n.jsxs)("div",{className:r,children:[(0,n.jsx)("div",{className:a?"col-xs-9":"col-xs-12",children:t}),a&&(0,n.jsx)("div",{className:"col-xs-3 array-item-toolbox",children:(0,n.jsxs)("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(i||s)&&(0,n.jsx)($,{style:w,disabled:o||m||!i,onClick:p(d,d-1),uiSchema:y,registry:h}),(i||s)&&(0,n.jsx)(v,{style:w,disabled:o||m||!s,onClick:p(d,d+1),uiSchema:y,registry:h}),l&&(0,n.jsx)(g,{style:w,disabled:o||m,onClick:u(d),uiSchema:y,registry:h}),c&&(0,n.jsx)(b,{style:w,disabled:o||m,onClick:f(d),uiSchema:y,registry:h})]})})]})}function Kt(e){const{canAdd:t,className:r,disabled:o,idSchema:s,uiSchema:i,items:c,onAddClick:l,readonly:d,registry:u,required:f,schema:p,title:m}=e,h=(0,a.$R)(i),y=(0,a.$F)("ArrayFieldDescriptionTemplate",u,h),g=(0,a.$F)("ArrayFieldItemTemplate",u,h),v=(0,a.$F)("ArrayFieldTitleTemplate",u,h),{ButtonTemplates:{AddButton:$}}=u.templates;return(0,n.jsxs)("fieldset",{className:r,id:s.$id,children:[(0,n.jsx)(v,{idSchema:s,title:h.title||m,required:f,schema:p,uiSchema:i,registry:u}),(0,n.jsx)(y,{idSchema:s,description:h.description||p.description,schema:p,uiSchema:i,registry:u}),(0,n.jsx)("div",{className:"row array-item-list",children:c&&c.map((({key:e,...t})=>(0,n.jsx)(g,{...t},e)))}),t&&(0,n.jsx)($,{className:"array-item-add",onClick:l,disabled:o||d,uiSchema:i,registry:u})]})}function Wt(e){const{idSchema:t,title:r,schema:o,uiSchema:s,required:i,registry:c}=e,l=(0,a.$R)(s,c.globalUiOptions),{label:d=!0}=l;if(!r||!d)return null;const u=(0,a.$F)("TitleFieldTemplate",c,l);return(0,n.jsx)(u,{id:(0,a.EH)(t),title:r,required:i,schema:o,uiSchema:s,registry:c})}function Ht(e){const{id:t,name:r,value:s,readonly:i,disabled:c,autofocus:l,onBlur:d,onFocus:u,onChange:f,onChangeOverride:p,options:m,schema:h,uiSchema:y,formContext: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 x={..._,...(0,a.ti)(h,b,m)};let E;E="number"===x.type||"integer"===x.type?s||0===s?s:"":null==s?"":s;const k=(0,o.useCallback)((({target:{value:e}})=>f(""===e?m.emptyValue:e)),[f,m]),j=(0,o.useCallback)((({target:{value:e}})=>d(t,e)),[d,t]),C=(0,o.useCallback)((({target:{value:e}})=>u(t,e)),[u,t]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{id:t,name:t,className:"form-control",readOnly:i,disabled:c,autoFocus:l,value:E,...x,list:h.examples?(0,a.$c)(t):void 0,onChange:p||k,onBlur:j,onFocus:C,"aria-describedby":(0,a.eG)(t,!!h.examples)}),Array.isArray(h.examples)&&(0,n.jsx)("datalist",{id:(0,a.$c)(t),children:h.examples.concat(h.default&&!h.examples.includes(h.default)?[h.default]:[]).map((e=>(0,n.jsx)("option",{value:e},e)))},`datalist_${t}`)]})}function Gt({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 Zt(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 Jt(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(Zt,{title:t(a.Zl.CopyButton),className:"array-item-copy",...e,icon:"copy"})}function Yt(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(Zt,{title:t(a.Zl.MoveDownButton),className:"array-item-move-down",...e,icon:"arrow-down"})}function Qt(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(Zt,{title:t(a.Zl.MoveUpButton),className:"array-item-move-up",...e,icon:"arrow-up"})}function Xt(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(Zt,{title:t(a.Zl.RemoveButton),className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function er({className:e,onClick:t,disabled:r,registry:o}){const{translateString:s}=o;return(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`,children:(0,n.jsx)(Zt,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:s(a.Zl.AddButton),onClick:t,disabled:r,registry:o})})})}const tr=function(){return{SubmitButton:Gt,AddButton:er,CopyButton:Jt,MoveDownButton:Yt,MoveUpButton:Qt,RemoveButton:Xt}};function rr(e){const{id:t,description:r}=e;return r?"string"===typeof r?(0,n.jsx)("p",{id:t,className:"field-description",children:r}):(0,n.jsx)("div",{id:t,className:"field-description",children:r}):null}function nr({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)))})]})}const or="*";function ar(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:or})]}):null}const sr=function(e){const{id:t,label:r,children:o,errors:s,help:i,description:c,hidden:l,required:d,displayLabel:u,registry:f,uiSchema:p}=e,m=(0,a.$R)(p),h=(0,a.$F)("WrapIfAdditionalTemplate",f,m);return l?(0,n.jsx)("div",{className:"hidden",children:o}):(0,n.jsxs)(h,{...e,children:[u&&(0,n.jsx)(ar,{label:r,required:d,id:t}),u&&c?c:null,o,s,i]})};function ir(e){const{errors:t=[],idSchema: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)))})})}function cr(e){const{idSchema:t,help:r}=e;if(!r)return null;const o=(0,a.F5)(t);return"string"===typeof r?(0,n.jsx)("p",{id:o,className:"help-block",children:r}):(0,n.jsx)("div",{id:o,className:"help-block",children:r})}function lr(e){const{description:t,disabled:r,formData:o,idSchema:s,onAddClick:i,properties:c,readonly:l,registry:d,required:u,schema:f,title:p,uiSchema:m}=e,h=(0,a.$R)(m),y=(0,a.$F)("TitleFieldTemplate",d,h),g=(0,a.$F)("DescriptionFieldTemplate",d,h),{ButtonTemplates:{AddButton:v}}=d.templates;return(0,n.jsxs)("fieldset",{id:s.$id,children:[p&&(0,n.jsx)(y,{id:(0,a.EH)(s),title:p,required:u,schema:f,uiSchema:m,registry:d}),t&&(0,n.jsx)(g,{id:(0,a.IR)(s),description:t,schema:f,uiSchema:m,registry:d}),c.map((e=>e.content)),(0,a.Xl)(f,m,o)&&(0,n.jsx)(v,{className:"object-property-expand",onClick:i(f),disabled:r||l,uiSchema:m,registry:d})]})}const dr="*";function ur(e){const{id:t,title:r,required:o}=e;return(0,n.jsxs)("legend",{id:t,children:[r,o&&(0,n.jsx)("span",{className:"required",children:dr})]})}const fr=function(e){const{schema:t,idSchema: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)(Pt,{children:i(c,l)})}),t&&(0,n.jsx)("pre",{children:JSON.stringify(t,null,2)})]})};function pr(e){const{id:t,classNames:r,style:o,disabled:s,label:i,onKeyChange:c,onDropPropertyClick:l,readonly:d,required:u,schema:f,children:p,uiSchema:m,registry:h}=e,{templates:y,translateString:g}=h,{RemoveButton:v}=y.ButtonTemplates,$=g(a.Zl.KeyLabel,[i]);return a.Rr in f?(0,n.jsx)("div",{className:r,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:[(0,n.jsx)(ar,{label:$,required:u,id:`${t}-key`}),(0,n.jsx)("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:e=>c(e.target.value),defaultValue:i})]})}),(0,n.jsx)("div",{className:"form-additional form-group col-xs-5",children:p}),(0,n.jsx)("div",{className:"col-xs-2",children:(0,n.jsx)(v,{className:"array-item-remove btn-block",style:{border:"0"},disabled:s||d,onClick:l(i),uiSchema:m,registry:h})})]})}):(0,n.jsx)("div",{className:r,style:o,children:p})}const mr=function(){return{ArrayFieldDescriptionTemplate:zt,ArrayFieldItemTemplate:Lt,ArrayFieldTemplate:Kt,ArrayFieldTitleTemplate:Wt,ButtonTemplates:tr(),BaseInputTemplate:Ht,DescriptionFieldTemplate:rr,ErrorListTemplate:nr,FieldTemplate:sr,FieldErrorTemplate:ir,FieldHelpTemplate:cr,ObjectFieldTemplate:lr,TitleFieldTemplate:ur,UnsupportedFieldTemplate:fr,WrapIfAdditionalTemplate:pr}};function hr(e,t){const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:(0,a.eV)(n,2)});return r}function yr({type:e,range:t,value:r,select:o,rootId:s,name:i,disabled:c,readonly:l,autofocus:d,registry:u,onBlur:f,onFocus:p}){const m=s+"_"+e,{SelectWidget:h}=u.widgets;return(0,n.jsx)(h,{schema:{type:"integer"},id:m,name:i,className:"form-control",options:{enumOptions:hr(t[0],t[1])},placeholder:e,value:r,disabled:c,readonly:l,autofocus:d,onChange:t=>o(e,t),onBlur:f,onFocus:p,registry:u,label:"","aria-describedby":(0,a.eG)(s)})}const gr=function({time:e=!1,disabled:t=!1,readonly:r=!1,autofocus:s=!1,options:i,id:c,name:l,registry:d,onBlur:u,onFocus:f,onChange:p,value:m}){const{translateString:h}=d,[y,g]=(0,o.useState)(m),[v,$]=(0,o.useReducer)(((e,t)=>({...e,...t})),(0,a.Rm)(m,e));(0,o.useEffect)((()=>{const t=(0,a.HN)(v,e);!function(e){return Object.values(e).every((e=>-1!==e))}(v)||t===m?y!==m&&(g(m),$((0,a.Rm)(m,e))):p(t)}),[e,m,p,v,y]);const b=(0,o.useCallback)(((e,t)=>{$({[e]:t})}),[]),w=(0,o.useCallback)((n=>{if(n.preventDefault(),t||r)return;const o=(0,a.Rm)((new Date).toJSON(),e);p((0,a.HN)(o,e))}),[t,r,e]),S=(0,o.useCallback)((e=>{e.preventDefault(),t||r||p(void 0)}),[t,r,p]);return(0,n.jsxs)("ul",{className:"list-inline",children:[(0,a.dO)(v,e,i.yearsRange,i.format).map(((e,o)=>(0,n.jsx)("li",{className:"list-inline-item",children:(0,n.jsx)(yr,{rootId:c,name:l,select:b,...e,disabled:t,readonly:r,registry:d,onBlur:u,onFocus:f,autofocus:s&&0===o})},o))),("undefined"===i.hideNowButton||!i.hideNowButton)&&(0,n.jsx)("li",{className:"list-inline-item",children:(0,n.jsx)("a",{href:"#",className:"btn btn-info btn-now",onClick:w,children:h(a.Zl.NowLabel)})}),("undefined"===i.hideClearButton||!i.hideClearButton)&&(0,n.jsx)("li",{className:"list-inline-item",children:(0,n.jsx)("a",{href:"#",className:"btn btn-warning btn-clear",onClick:S,children:h(a.Zl.ClearLabel)})})]})};const vr=function({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return(0,n.jsx)(r,{time:e,...t})};const $r=function({schema:e,uiSchema:t,options:r,id:s,value:i,disabled:c,readonly:l,label:d,hideLabel:u,autofocus:f=!1,onBlur:p,onFocus:m,onChange:h,registry:y}){var g;const v=(0,a.$F)("DescriptionFieldTemplate",y,r),$=(0,a.l1)(e),b=(0,o.useCallback)((e=>h(e.target.checked)),[h]),w=(0,o.useCallback)((e=>p(s,e.target.checked)),[p,s]),S=(0,o.useCallback)((e=>m(s,e.target.checked)),[m,s]),_=null!==(g=r.description)&&void 0!==g?g:e.description;return(0,n.jsxs)("div",{className:"checkbox "+(c||l?"disabled":""),children:[!u&&!!_&&(0,n.jsx)(v,{id:(0,a.IR)(s),description:_,schema:e,uiSchema:t,registry:y}),(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"checkbox",id:s,name:s,checked:"undefined"!==typeof i&&i,required:$,disabled:c||l,autoFocus:f,onChange:b,onBlur:w,onFocus:S,"aria-describedby":(0,a.eG)(s)}),(0,a.w)((0,n.jsx)("span",{children:d}),u)]})]})};const br=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:p,onFocus:m}){const h=Array.isArray(l)?l:[l],y=(0,o.useCallback)((({target:{value:t}})=>p(e,(0,a.Od)(t,s,c))),[p,e]),g=(0,o.useCallback)((({target:{value:t}})=>m(e,(0,a.Od)(t,s,c))),[m,e]);return(0,n.jsx)("div",{className:"checkboxes",id:e,children:Array.isArray(s)&&s.map(((o,c)=>{const l=(0,a.BH)(o.value,h),p=Array.isArray(i)&&-1!==i.indexOf(o.value),m=t||p||u?"disabled":"",v=(0,n.jsxs)("span",{children:[(0,n.jsx)("input",{type:"checkbox",id:(0,a.pk)(e,c),name:e,checked:l,value:String(c),disabled:t||p||u,autoFocus:d&&0===c,onChange:e=>{e.target.checked?f((0,a.L4)(c,h,s)):f((0,a.Uw)(c,h,s))},onBlur:y,onFocus:g,"aria-describedby":(0,a.eG)(e)}),(0,n.jsx)("span",{children:o.label})]});return r?(0,n.jsx)("label",{className:`checkbox-inline ${m}`,children:v},c):(0,n.jsx)("div",{className:`checkbox ${m}`,children:(0,n.jsx)("label",{children:v})},c)}))})};function wr(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 Sr(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 _r(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 xr(e){const{options:t,registry:r}=e,o=(0,a.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{type:"email",...e})}function Er(e,t){return null===e?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function kr(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:Er(e.target.result,t),name:t,size:r,type:n}):o({dataURL:null,name:t,size:r,type:n})},s.readAsDataURL(e)}))}function jr({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 Cr({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)(Pt,{children:i(a.Zl.FilesInfo,[l,u,String(d)])}),r&&(0,n.jsx)(jr,{fileInfo:e,registry:t}),(0,n.jsx)(c,{onClick:()=>o(s),registry:t})]},s)}))})}const Pr=function(e){const{disabled:t,readonly:r,required:s,multiple:i,onChange:c,value:l,options:d,registry:u}=e,f=(0,a.$F)("BaseInputTemplate",u,d),p=(0,o.useCallback)((e=>{var t;e.target.files&&(t=e.target.files,Promise.all(Array.from(t).map(kr))).then((e=>{const t=e.map((e=>e.dataURL));c(i?l.concat(t[0]):t[0])}))}),[i,l,c]),m=(0,o.useMemo)((()=>(Array.isArray(l)?l:[l]).reduce(((e,t)=>{if(!t)return e;try{const{blob:r,name:n}=(0,a.zM)(t);return[...e,{dataURL:t,name:n,size:r.size,type:r.type}]}catch(M){return e}}),[])),[l]),h=(0,o.useCallback)((e=>{if(i){const t=l.filter(((t,r)=>r!==e));c(t)}else c(void 0)}),[i,l,c]);return(0,n.jsxs)("div",{children:[(0,n.jsx)(f,{...e,disabled:t||r,type:"file",required:!l&&s,onChangeOverride:p,value:"",accept:d.accept?String(d.accept):void 0}),(0,n.jsx)(Cr,{filesInfo:m,onRemove:h,registry:u,preview:d.filePreview,options:d})]})};const Or=function({id:e,value:t}){return(0,n.jsx)("input",{type:"hidden",id:e,name:e,value:"undefined"===typeof t?"":t})};function Nr(e){const{options:t,registry:r}=e,o=(0,a.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{type:"password",...e})}const Ar=function({options:e,value:t,required:r,disabled:s,readonly:i,autofocus:c=!1,onBlur:l,onFocus:d,onChange:u,id:f}){const{enumOptions:p,enumDisabled:m,inline:h,emptyValue:y}=e,g=(0,o.useCallback)((({target:{value:e}})=>l(f,(0,a.Od)(e,p,y))),[l,f]),v=(0,o.useCallback)((({target:{value:e}})=>d(f,(0,a.Od)(e,p,y))),[d,f]);return(0,n.jsx)("div",{className:"field-radio-group",id:f,children:Array.isArray(p)&&p.map(((e,o)=>{const l=(0,a.BH)(e.value,t),d=Array.isArray(m)&&-1!==m.indexOf(e.value),p=s||d||i?"disabled":"",y=(0,n.jsxs)("span",{children:[(0,n.jsx)("input",{type:"radio",id:(0,a.pk)(f,o),checked:l,name:f,required:r,value:String(o),disabled:s||d||i,autoFocus:c&&0===o,onChange:()=>u(e.value),onBlur:g,onFocus:v,"aria-describedby":(0,a.eG)(f)}),(0,n.jsx)("span",{children:e.label})]});return h?(0,n.jsx)("label",{className:`radio-inline ${p}`,children:y},o):(0,n.jsx)("div",{className:`radio ${p}`,children:(0,n.jsx)("label",{children:y})},o)}))})};function Dr(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 Ir(e,t){return t?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}const Fr=function({schema:e,id:t,options:r,value:s,required:i,disabled:c,readonly:l,multiple:d=!1,autofocus:u=!1,onChange:f,onBlur:p,onFocus:m,placeholder:h}){const{enumOptions:y,enumDisabled:g,emptyValue:v}=r,$=d?[]:"",b=(0,o.useCallback)((e=>{const r=Ir(e,d);return m(t,(0,a.Od)(r,y,v))}),[m,t,e,d,r]),w=(0,o.useCallback)((e=>{const r=Ir(e,d);return p(t,(0,a.Od)(r,y,v))}),[p,t,e,d,r]),S=(0,o.useCallback)((e=>{const t=Ir(e,d);return f((0,a.Od)(t,y,v))}),[f,e,d,r]),_=(0,a.Yu)(s,y,d);return(0,n.jsxs)("select",{id:t,name:t,multiple:d,className:"form-control",value:"undefined"===typeof _?$:_,required:i,disabled:c||l,autoFocus:u,onBlur:w,onFocus:b,onChange:S,"aria-describedby":(0,a.eG)(t),children:[!d&&void 0===e.default&&(0,n.jsx)("option",{value:"",children:h}),Array.isArray(y)&&y.map((({value:e,label:t},r)=>{const o=g&&-1!==g.indexOf(e);return(0,n.jsx)("option",{value:String(r),disabled:o,children:t},r)}))]})};function Tr({id:e,options:t={},placeholder:r,value:s,required:i,disabled:c,readonly:l,autofocus:d=!1,onChange:u,onBlur:f,onFocus:p}){const m=(0,o.useCallback)((({target:{value:e}})=>u(""===e?t.emptyValue:e)),[u,t.emptyValue]),h=(0,o.useCallback)((({target:{value:t}})=>f(e,t)),[f,e]),y=(0,o.useCallback)((({target:{value:t}})=>p(e,t)),[e,p]);return(0,n.jsx)("textarea",{id:e,name:e,className:"form-control",value:s||"",placeholder:r,required:i,disabled:c,readOnly:l,autoFocus:d,rows:t.rows,onBlur:h,onFocus:y,onChange:m,"aria-describedby":(0,a.eG)(e)})}Tr.defaultProps={autofocus:!1,options:{}};const Rr=Tr;function Mr(e){const{options:t,registry:r}=e,o=(0,a.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{...e})}function Ur(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 Vr(e){const{options:t,registry:r}=e,o=(0,a.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{type:"url",...e})}function Br(e){const{options:t,registry:r}=e,o=(0,a.$F)("BaseInputTemplate",r,t);return(0,n.jsx)(o,{type:"number",...e})}const qr=function(){return{AltDateWidget:gr,AltDateTimeWidget:vr,CheckboxWidget:$r,CheckboxesWidget:br,ColorWidget:wr,DateWidget:Sr,DateTimeWidget:_r,EmailWidget:xr,FileWidget:Pr,HiddenWidget:Or,PasswordWidget:Nr,RadioWidget:Ar,RangeWidget:Dr,SelectWidget:Fr,TextWidget:Mr,TextareaWidget:Rr,TimeWidget:Ur,UpDownWidget:Br,URLWidget:Vr}};class zr extends o.Component{constructor(e){if(super(e),this.getUsedFormData=(e,t)=>{if(0===t.length&&"object"!==typeof e)return e;const r=u()(e,t);return Array.isArray(e)?Object.keys(r).map((e=>r[e])):r},this.getFieldNames=(e,t)=>{const r=(e,n=[],o=[[]])=>(Object.keys(e).forEach((s=>{if("object"===typeof e[s]){const t=o.map((e=>[...e,s]));e[s][a.yB]&&""!==e[s][a.oS]?n.push(e[s][a.oS]):r(e[s],n,t)}else s===a.oS&&""!==e[s]&&o.forEach((e=>{const r=i()(t,e);("object"!==typeof r||l()(r)||Array.isArray(r)&&r.every((e=>"object"!==typeof e)))&&n.push(e)}))})),n);return r(e)},this.onChange=(e,t,r)=>{const{extraErrors:n,omitExtraData:o,liveOmit:s,noValidate:i,liveValidate:c,onChange:l}=this.props,{schemaUtils:d,schema:u,retrievedSchema:f}=this.state;if((0,a.Gv)(e)||Array.isArray(e)){e=this.getStateFromProps(this.props,e,f).formData}const p=!i&&c;let m,h={formData:e,schema:u},y=e;if(!0===o&&!0===s){m=d.retrieveSchema(u,e);const t=d.toPathSchema(m,"",e),r=this.getFieldNames(t,e);y=this.getUsedFormData(e,r),h={formData:y}}if(p){const e=this.validate(y,u,d,f);let t=e.errors,r=e.errorSchema;const o=t,s=r;if(n){const o=(0,a.k6)(e,n);r=o.errorSchema,t=o.errors}h={formData:y,errors:t,errorSchema:r,schemaValidationErrors:o,schemaValidationErrorSchema:s}}else if(!i&&t){const e=n?(0,a.rL)(t,n,"preventDuplicates"):t;h={formData:y,errorSchema:e,errors:(0,a.SL)(e)}}m&&(h.retrievedSchema=m),this.setState(h,(()=>l&&l({...this.state,...h},r)))},this.reset=()=>{const{onChange:e}=this.props,t={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(t,(()=>e&&e({...this.state,...t})))},this.onBlur=(e,t)=>{const{onBlur:r}=this.props;r&&r(e,t)},this.onFocus=(e,t)=>{const{onFocus:r}=this.props;r&&r(e,t)},this.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;const{schema:i,schemaUtils:c}=this.state;if(!0===t){const e=c.retrieveSchema(i,s),t=c.toPathSchema(e,"",s),r=this.getFieldNames(t,s);s=this.getUsedFormData(s,r)}if(n||this.validateForm()){const t=r||{},n=r?(0,a.SL)(r):[];this.setState({formData:s,errors:n,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{o&&o({...this.state,formData:s,status:"submitted"},e)}))}},this.submit=()=>{if(this.formElement.current){const e=new CustomEvent("submit",{cancelable:!0});e.preventDefault(),this.formElement.current.dispatchEvent(e),this.formElement.current.requestSubmit()}},!e.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(e,e.formData),this.props.onChange&&!(0,a.c2)(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=(0,o.createRef)()}getSnapshotBeforeUpdate(e,t){if(!(0,a.c2)(this.props,e)){const r=!(0,a.c2)(e.schema,this.props.schema),n=!(0,a.c2)(e.formData,this.props.formData),o=this.getStateFromProps(this.props,this.props.formData,r||n?void 0:this.state.retrievedSchema,r);return{nextState:o,shouldUpdate:!(0,a.c2)(o,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(e),this.setState(e)}}getStateFromProps(e,t,r,n=!1){const o=this.state||{},s="schema"in e?e.schema:this.props.schema,i=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},c="undefined"!==typeof t,l="liveValidate"in e?e.liveValidate:this.props.liveValidate,d=c&&!e.noValidate&&l,u=s,f="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior;let p=o.schemaUtils;p&&!p.doesSchemaUtilsDiffer(e.validator,u,f)||(p=(0,a.BP)(e.validator,u,f));const m=p.getDefaultFormState(s,t),h=null!==r&&void 0!==r?r:p.retrieveSchema(s,m);let y,g,v=o.schemaValidationErrors,$=o.schemaValidationErrorSchema;if(d){const e=this.validate(m,s,p,h);y=e.errors,g=e.errorSchema,v=y,$=g}else{const t=e.noValidate||n?{errors:[],errorSchema:{}}:e.liveValidate?{errors:o.errors||[],errorSchema:o.errorSchema||{}}:{errors:o.schemaValidationErrors||[],errorSchema:o.schemaValidationErrorSchema||{}};y=t.errors,g=t.errorSchema}if(e.extraErrors){const t=(0,a.k6)({errorSchema:g,errors:y},e.extraErrors);g=t.errorSchema,y=t.errors}const b=p.toIdSchema(h,i["ui:rootFieldId"],m,e.idPrefix,e.idSeparator);return{schemaUtils:p,schema:s,uiSchema:i,idSchema:b,formData:m,edit:c,errors:y,errorSchema:g,schemaValidationErrors:v,schemaValidationErrorSchema:$,retrievedSchema:h}}shouldComponentUpdate(e,t){return(0,a.F9)(this,e,t)}validate(e,t=this.props.schema,r,n){const o=r||this.state.schemaUtils,{customValidate:a,transformErrors:s,uiSchema:i}=this.props,c=null!==n&&void 0!==n?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,{formContext:i}=this.props,c=(0,a.$R)(s),l=(0,a.$F)("ErrorListTemplate",e,c);return t&&t.length?(0,n.jsx)(l,{errors:t,errorSchema:r||{},schema:o,uiSchema:s,formContext:i,registry:e}):null}getRegistry(){var e;const{translateString:t,uiSchema:r={}}=this.props,{schemaUtils:n}=this.state,{fields:o,templates:s,widgets:i,formContext:c,translateString:l}={fields:qt(),templates:mr(),widgets:qr(),rootSchema:{},formContext:{},translateString:a.qe};return{fields:{...o,...this.props.fields},templates:{...s,...this.props.templates,ButtonTemplates:{...s.ButtonTemplates,...null===(e=this.props.templates)||void 0===e?void 0:e.ButtonTemplates}},widgets:{...i,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||c,schemaUtils:n,translateString:t||l,globalUiOptions:r[a.AK]}}focusOnError(e){const{idPrefix:t="root",idSeparator:r="_"}=this.props,{property:n}=e,o=p()(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()}validateForm(){const{extraErrors:e,extraErrorsBlockSubmit:t,focusOnFirstError:r,onError:n}=this.props,{formData:o,errors:s}=this.state,i=this.validate(o);let c=i.errors,l=i.errorSchema;const d=c,u=l,f=c.length>0||e&&t;if(f){if(e){const t=(0,a.k6)(i,e);l=t.errorSchema,c=t.errors}r&&("function"===typeof r?r(c[0]):this.focusOnError(c[0])),this.setState({errors:c,errorSchema:l,schemaValidationErrors:d,schemaValidationErrorSchema:u},(()=>{n?n(c):console.error("Form validation failed",c)}))}else s.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!f}render(){const{children:e,id:t,idPrefix:r,idSeparator:o,className:s="",tagName:i,name:c,method:l,target:d,action:u,autoComplete:f,enctype:p,acceptcharset:m,noHtml5Validate:h=!1,disabled:y=!1,readonly:g=!1,formContext:v,showErrorList:$="top",_internalFormWrapper:b}=this.props,{schema:w,uiSchema:S,formData:_,errorSchema:x,idSchema:E}=this.state,k=this.getRegistry(),{SchemaField:j}=k.fields,{SubmitButton:C}=k.templates.ButtonTemplates,P=b?i:void 0,O=b||i||"form";let{[a.xh]:N={}}=(0,a.$R)(S);y&&(N={...N,props:{...N.props,disabled:!0}});const A={[a.ce]:{[a.xh]:N}};return(0,n.jsxs)(O,{className:s||"rjsf",id:t,name:c,method:l,target:d,action:u,autoComplete:f,encType:p,acceptCharset:m,noValidate:h,onSubmit:this.onSubmit,as:P,ref:this.formElement,children:["top"===$&&this.renderErrors(k),(0,n.jsx)(j,{name:"",schema:w,uiSchema:S,errorSchema:x,idSchema:E,idPrefix:r,idSeparator:o,formContext:v,formData:_,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:k,disabled:y,readonly:g}),e||(0,n.jsx)(C,{uiSchema:A,registry:k}),"bottom"===$&&this.renderErrors(k)]})}}const Lr=zr},78239:(e,t,r)=>{"use strict";function n(e){return!("undefined"!==typeof File&&e instanceof File)&&(!("undefined"!==typeof Date&&e instanceof Date)&&("object"===typeof e&&null!==e&&!Array.isArray(e)))}function o(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),n(e.additionalItems)}function a(e){if(""===e)return;if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;const t=Number(e);return"number"===typeof t&&!Number.isNaN(t)?t:e}r.d(t,{Rr:()=>s,Xo:()=>l,s2:()=>m,K0:()=>h,ZN:()=>g,oS:()=>v,Ru:()=>$,s1:()=>b,Es:()=>_,yB:()=>x,at:()=>E,xh:()=>S,Zl:()=>Zt,AK:()=>C,ce:()=>j,Hh:()=>o,eG:()=>Rt,i:()=>a,Xl:()=>O,JF:()=>D,BP:()=>at,zM:()=>st,c2:()=>T,IR:()=>At,qe:()=>it,Uw:()=>lt,Yu:()=>ut,BH:()=>dt,L4:()=>mt,Od:()=>ct,rD:()=>Dt,$c:()=>It,dO:()=>vt,NV:()=>Ze,KU:()=>Se,ti:()=>bt,_I:()=>ke,Bj:()=>St,$F:()=>_t,$R:()=>P,Bt:()=>Ct,Lw:()=>Ot,$K:()=>Pt,F5:()=>Ft,ar:()=>Je,nQ:()=>Ve,Gv:()=>n,w:()=>Ut,z$:()=>Vt,rL:()=>qe,dW:()=>je,pk:()=>Mt,f9:()=>Bt,UI:()=>qt,eV:()=>zt,Rm:()=>Lt,l1:()=>Kt,F9:()=>Wt,EH:()=>Tt,HN:()=>Ht,SL:()=>Gt,MD:()=>Qt,fV:()=>Xt,v4:()=>er,k6:()=>tr,vh:()=>rr});const s="__additional_property",i="additionalProperties",c="allOf",l="anyOf",d="const",u="default",f="dependencies",p="enum",m="__errors",h="$id",y="if",g="items",v="$name",$="oneOf",b="properties",w="required",S="submitButtonOptions",_="$ref",x="__rjsf_additionalProperties",E="__rjsf_rootSchema",k="ui:widget",j="ui:options",C="ui:globalOptions";function P(e={},t={}){return Object.keys(e).filter((e=>0===e.indexOf("ui:"))).reduce(((t,r)=>{const o=e[r];return r===k&&n(o)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),t):r===j&&n(o)?{...t,...o}:{...t,[r.substring(3)]:o}}),{...t})}function O(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:n=!0}=P(t);return!1===n?n:void 0===e.maxProperties||!r||Object.keys(r).length<e.maxProperties}var N=r(11331),A=r.n(N);function D(e){const t={[m]:[],addError(e){this[m].push(e)}};if(Array.isArray(e))return e.reduce(((e,t,r)=>({...e,[r]:D(t)})),t);if(A()(e)){const r=e;return Object.keys(r).reduce(((e,t)=>({...e,[t]:D(r[t])})),t)}return t}var I=r(29132),F=r.n(I);function T(e,t){return F()(e,t,((e,t)=>{if("function"===typeof e&&"function"===typeof t)return!0}))}var R=r(58156),M=r.n(R),U=r(62193),V=r.n(U),B=r(56239),q=r(90179),z=r.n(q);function L(e,t){const r=t[e];return[z()(t,[e]),r]}function K(e,t={},r=[]){const n=e||"";let o;if(!n.startsWith("#"))throw new Error(`Could not find a definition for ${e}.`);o=decodeURIComponent(n.substring(1));const a=B.get(t,o);if(void 0===a)throw new Error(`Could not find a definition for ${e}.`);const s=a[_];if(s){if(r.includes(s)){if(1===r.length)throw new Error(`Definition for ${e} is a circular reference`);const[t,...o]=r,a=[...o,n,t].join(" -> ");throw new Error(`Definition for ${t} contains a circular reference through ${a}`)}const[o,i]=L(_,a),c=K(i,t,[...r,n]);return Object.keys(o).length>0?{...o,...c}:c}return a}function W(e,t={}){return K(e,t,[])}var H=r(61448),G=r.n(H),Z=r(98023),J=r.n(Z),Y=r(23805),Q=r.n(Y),X=r(85015),ee=r.n(X),te=r(40860),re=r.n(te),ne=r(6638),oe=r.n(ne);function ae(e,t,r){var n;if(e&&r){const o=M()(e,r);if(void 0===o)return;for(let e=0;e<t.length;e++){const a=t[e],s=M()(a,[b,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 se(e,t,r,n,o){if(void 0===t)return 0;const a=ae(t,r,o);if(J()(a))return a;for(let s=0;s<r.length;s++){const a=r[s];if(o&&G()(a,[b,o])){const r=M()(t,o),i=M()(a,[b,o],{});if(e.isValid(i,r,n))return s}else if(a[b]){const r={anyOf:Object.keys(a[b]).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 ie(e,t,r,n,o){return se(e,t,r,n,o)}var ce=r(2404),le=r.n(ce),de=r(63560),ue=r.n(de),fe=r(69752),pe=r.n(fe),me=r(55364),he=r.n(me),ye=r(3176),ge=r.n(ye),ve=r(63375),$e=r.n(ve),be=r(33978),we=r.n(be);function Se(e){let t;const r=M()(e,"discriminator.propertyName",void 0);return ee()(r)?t=r:void 0!==r&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function _e(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 xe=r(80299),Ee=r.n(xe);function ke(e){let{type:t}=e;return!t&&e.const?_e(e.const):!t&&e.enum?"string":t||!e.properties&&!e.additionalProperties?(Array.isArray(t)&&(t=2===t.length&&t.includes("null")?t.find((e=>"null"!==e)):t[0]),t):"object"}function je(e,t){const r=Object.assign({},e);return Object.keys(t).reduce(((r,o)=>{const a=e?e[o]:{},s=t[o];return e&&o in e&&n(s)?r[o]=je(a,s):e&&t&&("object"===ke(e)||"object"===ke(t))&&o===w&&Array.isArray(a)&&Array.isArray(s)?r[o]=Ee()(a,s):r[o]=s,r}),r)}function Ce(e,t,r={},n){return Ae(e,t,r,n)[0]}function Pe(e){return e.reduce(((e,t)=>t.length>1?t.flatMap((t=>oe()(e.length,(r=>[...e[r]].concat(t))))):(e.forEach((e=>e.push(t[0]))),e)),[[]])}function Oe(e,t,r,n,o,a){const s=Ne(t,r,o);return s!==t?Ae(e,s,r,a,n,o):[t]}function Ne(e,t,r){if(!n(e))return e;let o=e;if(_ in o){const{$ref:e,...n}=o;if(r.includes(e))return o;r.push(e);o={...W(e,t),...n}}if(b in o){const e=[],n=pe()(o[b],((n,o,a)=>{const s=[...r];n[a]=Ne(o,t,s),e.push(s)}),{});he()(r,$e()(ge()(e))),o={...o,[b]:n}}return g in o&&!Array.isArray(o.items)&&"boolean"!==typeof o.items&&(o={...o,items:Ne(o.items,t,r)}),le()(e,o)?e:o}function Ae(e,t,r,o,a=!1,d=[]){if(!n(t))return[{}];const u=function(e,t,r,n,o,a){const s=Oe(e,t,r,n,o,a);if(s.length>1||s[0]!==t)return s;if(f in t)return De(e,t,r,n,o,a).flatMap((t=>Ae(e,t,r,a,n,o)));if(c in t&&Array.isArray(t.allOf))return Pe(t.allOf.map((t=>Ae(e,t,r,a,n,o)))).map((e=>({...t,allOf:e})));return[t]}(e,t,r,a,d,o);return u.flatMap((t=>{let u=t;if(y in u)return function(e,t,r,n,o,a){const{if:s,then:i,else:c,...l}=t,d=e.isValid(s,a||{},r);let u=[l],f=[];if(n)i&&"boolean"!==typeof i&&(f=f.concat(Ae(e,i,r,a,n,o))),c&&"boolean"!==typeof c&&(f=f.concat(Ae(e,c,r,a,n,o)));else{const t=d?i:c;t&&"boolean"!==typeof t&&(f=f.concat(Ae(e,t,r,a,n,o)))}return f.length&&(u=f.map((e=>je(l,e)))),u.flatMap((t=>Ae(e,t,r,a,n,o)))}(e,u,r,a,d,o);if(c in u){if(a){const{allOf:e,...t}=u;return[...e,t]}try{u=we()(u,{deep:!1})}catch(f){console.warn("could not merge subschemas in allOf:\n",f);const{allOf:e,...t}=u;return t}}return i in u&&!1!==u.additionalProperties?function(e,t,r,o){const a={...t,properties:{...t.properties}},i=o&&n(o)?o:{};return Object.keys(i).forEach((t=>{if(t in a.properties)return;let n={};n="boolean"!==typeof a.additionalProperties?_ in a.additionalProperties?Ce(e,{$ref:M()(a.additionalProperties,[_])},r,i):"type"in a.additionalProperties?{...a.additionalProperties}:l in a.additionalProperties||$ in a.additionalProperties?{type:"object",...a.additionalProperties}:{type:_e(M()(i,[t]))}:{type:_e(M()(i,[t]))},a.properties[t]=n,ue()(a.properties,[t,s],!0)})),a}(e,u,r,o):u}))}function De(e,t,r,n,o,a){const{dependencies:s,...i}=t,c=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=Se(t);a=a.map((e=>Ne(e,r,[])));const l=ie(e,s,a,r,i);if(n)return a.map((e=>je(c,e)));t=je(c,a[l])}return[t]}(e,i,r,n,a);return c.flatMap((t=>Ie(e,s,t,r,n,o,a)))}function Ie(e,t,r,o,a,s,i){let c=[r];for(const l in t){if(!a&&void 0===M()(i,[l]))continue;if(r.properties&&!(l in r.properties))continue;const[d,u]=L(l,t);return Array.isArray(u)?c[0]=Fe(r,u):n(u)&&(c=Te(e,r,o,l,u,a,s,i)),c.flatMap((t=>Ie(e,d,t,o,a,s,i)))}return c}function Fe(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 Te(e,t,r,n,o,a,s,i){return Ae(e,o,r,i,a,s).flatMap((o=>{const{oneOf:c,...l}=o;if(t=je(t,l),void 0===c)return t;return Pe(c.map((t=>"boolean"!==typeof t&&_ in t?Oe(e,t,r,a,s,i):[t]))).flatMap((o=>function(e,t,r,n,o,a,s,i){const c=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!==c.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t];return c.flatMap((o=>{const c=o,[l]=L(n,c.properties),d={...c,properties:l};return Ae(e,d,r,i,a,s).map((e=>je(t,e)))}))}(e,t,r,n,o,a,s,i)))}))}const Re={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function Me(e,t,r,n={}){let o=0;return r&&(Q()(r.properties)?o+=re()(r.properties,((r,o,a)=>{const s=M()(n,a);if("boolean"===typeof o)return r;if(G()(o,_)){const n=Ce(e,o,t,s);return r+Me(e,t,n,s||{})}if((G()(o,$)||G()(o,l))&&s){const n=G()(o,$)?$:l,a=Se(o);return r+Ue(e,t,s,M()(o,n),-1,a)}if("object"===o.type)return r+Me(e,t,o,s||{});if(o.type===_e(s)){let e=r+1;return o.default?e+=s===o.default?1:-1:o.const&&(e+=s===o.const?1:-1),e}return r}),0):ee()(r.type)&&r.type===_e(n)&&(o+=1)),o}function Ue(e,t,r,n,o=-1,a){const s=n.map((e=>Ne(e,t,[]))),i=ae(r,n,a);if(J()(i))return i;const c=s.reduce(((n,o,s)=>(1===ie(e,r,[Re,o],t,a)&&n.push(s),n)),[]);if(1===c.length)return c[0];c.length||oe()(s.length,(e=>c.push(e)));const l=new Set,{bestIndex:d}=c.reduce(((n,o)=>{const{bestScore:a}=n,i=s[o],c=Me(e,t,i,r);return l.add(c),c>a?{bestIndex:o,bestScore:c}:n}),{bestIndex:o,bestScore:0});return 1===l.size&&o>=0?o:d}function Ve(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>n(e)))}function Be(e,t,r=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],o=t.map(((e,t)=>n[t]?Be(n[t],e,r):e));return r&&o.length<n.length&&o.push(...n.slice(o.length)),o}if(n(t)){const n=Object.assign({},e);return Object.keys(t).reduce(((n,o)=>(n[o]=Be(e?M()(e,o):{},M()(t,o),r),n)),n)}return t}function qe(e,t,r=!1){return Object.keys(t).reduce(((o,a)=>{const s=e?e[a]:{},i=t[a];if(e&&a in e&&n(i))o[a]=qe(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)),[])),o[a]=s.concat(e)}else o[a]=i;return o}),Object.assign({},e))}function ze(e,t,r={}){const n=Ce(e,t,r,void 0),o=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(o)&&o.every((e=>"boolean"!==typeof e&&function(e){return Array.isArray(e.enum)&&1===e.enum.length||d in e}(e)))}function Le(e,t,r){return!(!t.uniqueItems||!t.items||"boolean"===typeof t.items)&&ze(e,t.items,r)}var Ke;function We(e,t=Ke.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!==Ke.Ignore&&n(e.additionalItems)?e.additionalItems:{}}function He(e,t,r,o,a,s=[],i={}){const{emptyObjectFields:c="populateAllDefaults"}=i;if(o)e[t]=r;else if("skipDefaults"!==c)if(n(r)){const n=void 0===a?s.includes(t):a;"skipEmptyDefaults"===c?V()(r)||(e[t]=r):V()(r)&&!s.includes(t)||!n&&"populateRequiredDefaults"===c||(e[t]=r)}else void 0===r||"populateAllDefaults"!==c&&"skipEmptyDefaults"!==c&&!s.includes(t)||(e[t]=r)}function Ge(e,t,{parentDefaults:r,rawFormData:o,rootSchema:a={},includeUndefinedValues:s=!1,_recurseList:i=[],experimental_defaultFormStateBehavior:d,required:p}={}){var m,h,y,g;const v=n(o)?o:{},w=n(t)?t:{};let S=r,x=null,E=i;if(n(S)&&n(w.default))S=qe(S,w.default);else if(u in w)S=w.default;else if(_ in w){const e=w[_];i.includes(e)||(E=i.concat(e),x=W(e,a))}else if(f in w){x=De(e,w,a,!1,[],v)[0]}else if(Ve(w))S=w.items.map(((t,n)=>Ge(e,t,{rootSchema:a,includeUndefinedValues:s,_recurseList:i,experimental_defaultFormStateBehavior:d,parentDefaults:Array.isArray(r)?r[n]:void 0,rawFormData:v,required:p})));else if($ in w){const{oneOf:t,...r}=w;if(0===t.length)return;const n=Se(w);x=t[Ue(e,a,V()(v)?void 0:v,t,0,n)],x=je(r,x)}else if(l in w){const{anyOf:t,...r}=w;if(0===t.length)return;const n=Se(w);x=t[Ue(e,a,V()(v)?void 0:v,t,0,n)],x=je(r,x)}if(x)return Ge(e,x,{rootSchema:a,includeUndefinedValues:s,_recurseList:E,experimental_defaultFormStateBehavior:d,parentDefaults:S,rawFormData:v,required:p});switch(void 0===S&&(S=w.default),ke(w)){case"object":{const t="populateDefaults"===(null===d||void 0===d?void 0:d.allOf)&&c in w?Ce(e,w,a,v):w,r=Object.keys(t.properties||{}).reduce(((r,n)=>{var o;return He(r,n,Ge(e,M()(t,[b,n]),{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:d,includeUndefinedValues:!0===s,parentDefaults:M()(S,[n]),rawFormData:M()(v,[n]),required:null===(o=t.required)||void 0===o?void 0:o.includes(n)}),s,p,t.required,d),r}),{});if(t.additionalProperties){const o=n(t.additionalProperties)?t.additionalProperties:{},c=new Set;n(S)&&Object.keys(S).filter((e=>!t.properties||!t.properties[e])).forEach((e=>c.add(e)));const l=[];Object.keys(v).filter((e=>!t.properties||!t.properties[e])).forEach((e=>{c.add(e),l.push(e)})),c.forEach((n=>{var c;const u=Ge(e,o,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:d,includeUndefinedValues:!0===s,parentDefaults:M()(S,[n]),rawFormData:M()(v,[n]),required:null===(c=t.required)||void 0===c?void 0:c.includes(n)});He(r,n,u,s,p,l)}))}return r}case"array":{const t="never"===(null===(m=null===d||void 0===d?void 0:d.arrayMinItems)||void 0===m?void 0:m.populate),r="requiredOnly"===(null===(h=null===d||void 0===d?void 0:d.arrayMinItems)||void 0===h?void 0:h.populate),n="skipEmptyDefaults"===(null===d||void 0===d?void 0:d.emptyObjectFields),s=null!==(g=null===(y=null===d||void 0===d?void 0:d.arrayMinItems)||void 0===y?void 0:y.computeSkipPopulate)&&void 0!==g?g:()=>!1,c=n?void 0:[];if(Array.isArray(S)&&(S=S.map(((t,r)=>{const n=We(w,Ke.Fallback,r);return Ge(e,n,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:d,parentDefaults:t,required:p})}))),Array.isArray(o)){const r=We(w);S=t?o:o.map(((t,n)=>Ge(e,r,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:d,rawFormData:t,parentDefaults:M()(S,[n]),required:p})))}if(t)return null!==S&&void 0!==S?S:c;if(r&&!p)return S||void 0;const l=Array.isArray(S)?S.length:0;if(!w.minItems||Le(e,w,a)||s(e,w,a)||w.minItems<=l)return S||c;const u=S||[],f=We(w,Ke.Invert),v=f.default,$=new Array(w.minItems-l).fill(Ge(e,f,{parentDefaults:v,rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:d,required:p}));return u.concat($)}}return S}function Ze(e,t,r,o,a=!1,s){if(!n(t))throw new Error("Invalid schema: "+t);const i=Ge(e,Ce(e,t,o,r),{rootSchema:o,includeUndefinedValues:a,experimental_defaultFormStateBehavior:s,rawFormData:r});if(void 0===r||null===r||"number"===typeof r&&isNaN(r))return i;const{mergeExtraDefaults:c}=(null===s||void 0===s?void 0:s.arrayMinItems)||{};return n(r)||Array.isArray(r)?Be(i,r,c):r}function Je(e={}){return"widget"in P(e)&&"hidden"!==P(e).widget}function Ye(e,t,r={},n){if("files"===r[k])return!0;if(t.items){const r=Ce(e,t.items,n);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"}(Ke||(Ke={}));const Qe=Symbol("no Value");function Xe(e,t,r,n,o={}){let a;if(G()(r,b)){const s={};if(G()(n,b)){const e=M()(n,b,{});Object.keys(e).forEach((e=>{G()(o,e)&&(s[e]=void 0)}))}const i=Object.keys(M()(r,b,{})),c={};i.forEach((a=>{const i=M()(o,a);let l=M()(n,[b,a],{}),d=M()(r,[b,a],{});G()(l,_)&&(l=Ce(e,l,t,i)),G()(d,_)&&(d=Ce(e,d,t,i));const u=M()(l,"type"),f=M()(d,"type");if(!u||u===f)if(G()(s,a)&&delete s[a],"object"===f||"array"===f&&Array.isArray(i)){const r=Xe(e,t,d,l,i);void 0===r&&"array"!==f||(c[a]=r)}else{const e=M()(d,"default",Qe),t=M()(l,"default",Qe);e!==Qe&&e!==i&&(t===i?s[a]=e:!0===M()(d,"readOnly")&&(s[a]=void 0));const r=M()(d,"const",Qe),n=M()(l,"const",Qe);r!==Qe&&r!==i&&(s[a]=n===i?r:void 0)}})),a={..."string"==typeof o||Array.isArray(o)?void 0:o,...s,...c}}else if("array"===M()(n,"type")&&"array"===M()(r,"type")&&Array.isArray(o)){let s=M()(n,"items"),i=M()(r,"items");if("object"!==typeof s||"object"!==typeof i||Array.isArray(s)||Array.isArray(i))"boolean"===typeof s&&"boolean"===typeof i&&s===i&&(a=o);else{G()(s,_)&&(s=Ce(e,s,t,o)),G()(i,_)&&(i=Ce(e,i,t,o));const n=M()(s,"type"),c=M()(i,"type");if(!n||n===c){const n=M()(r,"maxItems",-1);a="object"===c?o.reduce(((r,o)=>{const a=Xe(e,t,i,s,o);return void 0!==a&&(n<0||r.length<n)&&r.push(a),r}),[]):n>0&&o.length>n?o.slice(0,n):o}}}return a}function et(e,t,r,o,a,s,i,l=[]){if(_ in t||f in t||c in t){const n=Ce(e,t,s,i);if(-1===l.findIndex((e=>le()(e,n))))return et(e,n,r,o,a,s,i,l.concat(n))}if(g in t&&!M()(t,[g,_]))return et(e,M()(t,g),r,o,a,s,i,l);const d={$id:a||r};if("object"===ke(t)&&b in t)for(const c in t.properties){const a=M()(t,[b,c]),u=d[h]+o+c;d[c]=et(e,n(a)?a:{},r,o,u,s,M()(i,[c]),l)}return d}function tt(e,t,r,n,o,a="root",s="_"){return et(e,t,a,s,r,n,o)}function rt(e,t,r,n,o,a=[]){if(_ in t||f in t||c in t){const s=Ce(e,t,n,o);if(-1===a.findIndex((e=>le()(e,s))))return rt(e,s,r,n,o,a.concat(s))}let s={[v]:r.replace(/^\./,"")};if($ in t||l in t){const i=$ in t?t.oneOf:t.anyOf,c=Se(t),l=i[Ue(e,n,o,i,0,c)];s={...s,...rt(e,l,r,n,o,a)}}if(i in t&&!1!==t[i]&&ue()(s,x,!0),g in t&&Array.isArray(o)){const{items:i,additionalItems:c}=t;Array.isArray(i)?o.forEach(((t,o)=>{i[o]?s[o]=rt(e,i[o],`${r}.${o}`,n,t,a):c?s[o]=rt(e,c,`${r}.${o}`,n,t,a):console.warn(`Unable to generate path schema for "${r}.${o}". No schema defined for it`)})):o.forEach(((t,o)=>{s[o]=rt(e,i,`${r}.${o}`,n,t,a)}))}else if(b in t)for(const i in t.properties){const c=M()(t,[b,i]);s[i]=rt(e,c,`${r}.${i}`,n,M()(o,[i]),a)}return s}function nt(e,t,r="",n,o){return rt(e,t,r,n,o)}class ot{constructor(e,t,r){this.rootSchema=t,this.validator=e,this.experimental_defaultFormStateBehavior=r}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,t,r={}){return!(!e||!t)&&(this.validator!==e||!T(this.rootSchema,t)||!T(this.experimental_defaultFormStateBehavior,r))}getDefaultFormState(e,t,r=!1){return Ze(this.validator,e,t,this.rootSchema,r,this.experimental_defaultFormStateBehavior)}getDisplayLabel(e,t,r){return function(e,t,r={},n,o){const a=P(r,o),{label:s=!0}=a;let i=!!s;const c=ke(t);return"array"===c&&(i=Le(e,t,n)||Ye(e,t,r,n)||Je(r)),"object"===c&&(i=!1),"boolean"!==c||r[k]||(i=!1),r["ui:field"]&&(i=!1),i}(this.validator,e,t,this.rootSchema,r)}getClosestMatchingOption(e,t,r,n){return Ue(this.validator,this.rootSchema,e,t,r,n)}getFirstMatchingOption(e,t,r){return ie(this.validator,e,t,this.rootSchema,r)}getMatchingOption(e,t,r){return se(this.validator,e,t,this.rootSchema,r)}isFilesArray(e,t){return Ye(this.validator,e,t,this.rootSchema)}isMultiSelect(e){return Le(this.validator,e,this.rootSchema)}isSelect(e){return ze(this.validator,e,this.rootSchema)}mergeValidationData(e,t){return function(e,t,r){if(!r)return t;const{errors:n,errorSchema:o}=t;let a=e.toErrorList(r),s=r;return V()(o)||(s=qe(o,r,!0),a=[...n].concat(a)),{errorSchema:s,errors:a}}(this.validator,e,t)}retrieveSchema(e,t){return Ce(this.validator,e,this.rootSchema,t)}sanitizeDataForNewSchema(e,t,r){return Xe(this.validator,this.rootSchema,e,t,r)}toIdSchema(e,t,r,n="root",o="_"){return tt(this.validator,e,t,this.rootSchema,r,n,o)}toPathSchema(e,t,r){return nt(this.validator,e,t,this.rootSchema,r)}}function at(e,t,r={}){return new ot(e,t,r)}function st(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)}}function it(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 ct(e,t=[],r){if(Array.isArray(e))return e.map((e=>ct(e,t))).filter((e=>e!==r));const n=""===e||null===e?-1:Number(e),o=t[n];return o?o.value:r}function lt(e,t,r=[]){const n=ct(e,r);return Array.isArray(t)?t.filter((e=>!le()(e,n))):le()(n,t)?void 0:t}function dt(e,t){return Array.isArray(t)?t.some((t=>le()(t,e))):le()(t,e)}function ut(e,t=[],r=!1){const n=t.map(((t,r)=>dt(t.value,e)?String(r):void 0)).filter((e=>"undefined"!==typeof e));return r?n:n[0]}var ft=r(69843),pt=r.n(ft);function mt(e,t,r=[]){const n=ct(e,r);if(!pt()(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 ht=r(88055),yt=r.n(ht);class gt{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?M()(this.errorSchema,e):this.errorSchema;return!t&&e&&(t={},ue()(this.errorSchema,e,t)),t}resetAllErrors(e){return this.errorSchema=e?yt()(e):{},this}addErrors(e,t){const r=this.getOrCreateErrorBlock(t);let n=M()(r,m);return Array.isArray(n)||(n=[],r[m]=n),Array.isArray(e)?n.push(...e):n.push(e),this}setErrors(e,t){const r=this.getOrCreateErrorBlock(t),n=Array.isArray(e)?[...e]:[e];return ue()(r,m,n),this}clearErrors(e){const t=this.getOrCreateErrorBlock(e);return ue()(t,m,[]),this}}function vt(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},p=[];switch(n){case"MDY":p.push(u,d,f);break;case"DMY":p.push(d,u,f);break;default:p.push(f,u,d)}return t&&p.push({type:"hour",range:[0,23],value:i},{type:"minute",range:[0,59],value:c},{type:"second",range:[0,59],value:l}),p}function $t(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 bt(e,t,r={},n=!0){const o={type:t||"text",...$t(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),o}const wt={props:{disabled:!1},submitText:"Submit",norender:!1};function St(e={}){const t=P(e);if(t&&t[S]){const e=t[S];return{...wt,...e}}return wt}function _t(e,t,r={}){const{templates:n}=t;return"ButtonTemplates"===e?n[e]:r[e]||n[e]}var xt=r(74848),Et=r(96540),kt=r(44363);const jt={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 Ct(e,t,r={}){const n=ke(e);if("function"===typeof t||t&&kt.isForwardRef((0,Et.createElement)(t))||kt.isMemo(t))return function(e){let t=M()(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=({options:t,...n})=>(0,xt.jsx)(e,{options:{...r,...t},...n}),ue()(e,"MergedWidget",t)}return t}(t);if("string"!==typeof t)throw new Error("Unsupported widget definition: "+typeof t);if(t in r){return Ct(e,r[t],r)}if("string"===typeof n){if(!(n in jt))throw new Error(`No widget for type '${n}'`);if(t in jt[n]){return Ct(e,r[jt[n][t]],r)}}throw new Error(`No widget '${t}' for type '${n}'`)}function Pt(e){const t=new Set;return JSON.stringify(e,((e,r)=>(t.add(e),r))),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)}(JSON.stringify(e,Array.from(t).sort()))}function Ot(e,t,r={}){try{return Ct(e,t,r),!0}catch(n){const e=n;if(e.message&&(e.message.startsWith("No widget")||e.message.startsWith("Unsupported widget")))return!1;throw n}}function Nt(e,t){return`${ee()(e)?e:e[h]}__${t}`}function At(e){return Nt(e,"description")}function Dt(e){return Nt(e,"error")}function It(e){return Nt(e,"examples")}function Ft(e){return Nt(e,"help")}function Tt(e){return Nt(e,"title")}function Rt(e,t=!1){const r=t?` ${It(e)}`:"";return`${Dt(e)} ${At(e)} ${Ft(e)}${r}`}function Mt(e,t){return`${e}-${t}`}function Ut(e,t,r){return t?r:e}function Vt(e){return e?new Date(e).toJSON():void 0}function Bt(e){const t=e;if(t.enumNames,e.enum)return e.enum.map(((e,r)=>({label:t.enumNames&&t.enumNames[r]||String(e),value:e})));const r=e.oneOf||e.anyOf;return r&&r.map((e=>{const t=e,r=function(e){if(p in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(d in e)return e.const;throw new Error("schema cannot be inferred as a constant")}(t);return{schema:t,label:t.title||String(r),value:r}}))}function qt(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 zt(e,t){let r=String(e);for(;r.length<t;)r="0"+r;return r}function Lt(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 Kt(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 Kt(e.anyOf[0]);if(e.oneOf&&1===e.oneOf.length)return Kt(e.oneOf[0]);if(e.allOf){const t=e=>Kt(e);return e.allOf.some(t)}return!1}function Wt(e,t,r){const{props:n,state:o}=e;return!T(n,t)||!T(o,r)}function Ht(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 Gt(e,t=[]){if(!e)return[];let r=[];return m in e&&(r=r.concat(e[m].map((e=>{const r=`.${t.join(".")}`;return{property:r,message:e,stack:`${r} ${e}`}})))),Object.keys(e).reduce(((r,n)=>{if(n!==m){const o=e[n];A()(o)&&(r=r.concat(Gt(o,[...t,n])))}return r}),r)}var Zt,Jt=r(42072),Yt=r.n(Jt);function Qt(e){const t=new gt;return e.length&&e.forEach((e=>{const{property:r,message:n}=e,o="."===r?[]:Yt()(r);o.length>0&&""===o[0]&&o.splice(0,1),n&&t.addErrors(n,o)})),t.ErrorSchema}function Xt(e){return Object.keys(e).reduce(((t,r)=>{if("addError"===r)return t;{const n=e[r];return A()(n)?{...t,[r]:Xt(n)}:{...t,[r]:n}}}),{})}function er(e){if(!e)return"";const t=new Date(e);return`${zt(t.getFullYear(),4)}-${zt(t.getMonth()+1,2)}-${zt(t.getDate(),2)}T${zt(t.getHours(),2)}:${zt(t.getMinutes(),2)}:${zt(t.getSeconds(),2)}.${zt(t.getMilliseconds(),3)}`}function tr(e,t){if(!t)return e;const{errors:r,errorSchema:n}=e;let o=Gt(t),a=t;return V()(n)||(a=qe(n,t,!0),o=[...r].concat(o)),{errorSchema:a,errors:o}}function rr(e){return Array.isArray(e)?function(e){for(let t=0;t<e.length;t++)e[t]=rr(e[t]);return e}([...e]):Q()(e)?function(e){for(const t in e){const r=e,n=r[t];t===_&&"string"===typeof n&&n.startsWith("#")?r[t]=E+n:r[t]=rr(n)}return e}({...e}):e}!function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",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.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: <em>%2</em>.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",e.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",e.FilesInfo="**%1** (%2, %3 bytes)"}(Zt||(Zt={}));r(39754)},74810:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>g});var n=r(78239),o=r(63282),a=r.n(o),s=r(68182),i=r.n(s),c=r(23805),l=r.n(c);const d={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0},u=/^(#?([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*\)))$/,f=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;var p=r(58156),m=r.n(p);function h(e,t,r,o,a,s,i){const{validationError:c}=t;let l=function(e=[],t){return e.map((e=>{const{instancePath:r,keyword:o,params:a,schemaPath:s,parentSchema:i,...c}=e;let{message:l=""}=c,d=r.replace(/\//g,"."),u=`${d} ${l}`.trim();if("missingProperty"in a){d=d?`${d}.${a.missingProperty}`:a.missingProperty;const e=a.missingProperty,r=(0,n.$R)(m()(t,`${d.replace(/^\./,"")}`)).title;if(r)l=l.replace(e,r);else{const t=m()(i,[n.s1,e,"title"]);t&&(l=l.replace(e,t))}u=l}else{const e=(0,n.$R)(m()(t,`${d.replace(/^\./,"")}`)).title;if(e)u=`'${e}' ${l}`.trim();else{const e=null===i||void 0===i?void 0:i.title;e&&(u=`'${e}' ${l}`.trim())}}return{name:o,property:d,message:l,params:a,stack:u,schemaPath:s}}))}(t.errors,i);c&&(l=[...l,{stack:c.message}]),"function"===typeof s&&(l=s(l,i));let d=(0,n.MD)(l);if(c&&(d={...d,$schema:{__errors:[c.message]}}),"function"!==typeof a)return{errors:l,errorSchema:d};const u=(0,n.NV)(e,o,r,o,!0),f=a(u,(0,n.JF)(u),i),p=(0,n.fV)(f);return(0,n.k6)({errors:l,errorSchema:d},p)}class y{constructor(e,t){const{additionalMetaSchemas:r,customFormats:o,ajvOptionsOverrides:s,ajvFormatOptions:c,AjvClass:p}=e;this.ajv=function(e,t,r={},o,s=a()){const c=new s({...d,...r});return o?i()(c,o):!1!==o&&i()(c),c.addFormat("data-url",f),c.addFormat("color",u),c.addKeyword(n.Rr),c.addKeyword(n.yB),Array.isArray(e)&&c.addMetaSchema(e),l()(t)&&Object.keys(t).forEach((e=>{c.addFormat(e,t[e])})),c}(r,o,s,c,p),this.localizer=t}toErrorList(e,t=[]){return(0,n.SL)(e,t)}rawValidation(e,t){let r,o,a;e[n.K0]&&(o=this.ajv.getSchema(e[n.K0]));try{void 0===o&&(o=this.ajv.compile(e)),o(t)}catch(s){r=s}return o&&("function"===typeof this.localizer&&this.localizer(o.errors),a=o.errors||void 0,o.errors=null),{errors:a,validationError:r}}validateFormData(e,t,r,n,o){return h(this,this.rawValidation(t,e),e,t,r,n,o)}isValid(e,t,r){var o,a;const s=null!==(o=r[n.K0])&&void 0!==o?o:n.at;try{this.ajv.addSchema(r,s);const o=(0,n.vh)(e),i=null!==(a=o[n.K0])&&void 0!==a?a:(0,n.$K)(o);let c;c=this.ajv.getSchema(i),void 0===c&&(c=this.ajv.addSchema(o,i).getSchema(i)||this.ajv.compile(o));return c(t)}catch(i){return console.warn("Error encountered compiling schema:",i),!1}finally{this.ajv.removeSchema(s)}}}r(2404);const g=function(e={},t){return new y(e,t)}()},14018:(e,t)=>{"use strict";function r(e,t){return{validate:e,compare:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0,t.fullFormats={date:r(a,s),time:r(c,l),"date-time":r((function(e){const t=e.split(d);return 2===t.length&&a(t[0])&&c(t[1],!0)}),u),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return f.test(e)&&p.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(v.test(e))return!1;try{return new RegExp(e),!0}catch(t){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return m.lastIndex=0,m.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=y&&e>=h}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:g},double:{type:"number",validate:g},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:r(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:r(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":r(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(e){const t=n.exec(e);if(!t)return!1;const r=+t[1],a=+t[2],s=+t[3];return a>=1&&a<=12&&s>=1&&s<=(2===a&&function(e){return e%4===0&&(e%100!==0||e%400===0)}(r)?29:o[a])}function s(e,t){if(e&&t)return e>t?1:e<t?-1:0}const i=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function c(e,t){const r=i.exec(e);if(!r)return!1;const n=+r[1],o=+r[2],a=+r[3],s=r[5];return(n<=23&&o<=59&&a<=59||23===n&&59===o&&60===a)&&(!t||""!==s)}function l(e,t){if(!e||!t)return;const r=i.exec(e),n=i.exec(t);return r&&n?(e=r[1]+r[2]+r[3]+(r[4]||""))>(t=n[1]+n[2]+n[3]+(n[4]||""))?1:e<t?-1:0:void 0}const d=/t|\s/i;function u(e,t){if(!e||!t)return;const[r,n]=e.split(d),[o,a]=t.split(d),i=s(r,o);return void 0!==i?i||l(n,a):void 0}const f=/\/|:/,p=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;const m=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;const h=-(2**31),y=2**31-1;function g(){return!0}const v=/[^\\]\\Z/},68182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(14018),o=r(26461),a=r(99029),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},26461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const n=r(63282),o=r(99029),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)},63282:(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=void 0;const n=r(4042),o=r(86144),a=r(36653),s=r(72079),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)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var d=r(62586);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var u=r(99029);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(13558);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=r(34551);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})},41520:(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())}},99029:(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(41520),o=r(57845);var a=r(41520);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(57845);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 p extends i{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class m extends i{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=N(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class h 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)||(A(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>P(e,t.names)),{})}}class y extends h{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends h{}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 $(D(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&&P(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 P(super.names,this.iteration.names)}}class S 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 _ 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 P(super.names,this.iterable.names)}}class x 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)}}x.kind="func";class E extends h{render(e){return"return "+super.render(e)}}E.kind="return";class k 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&&P(e,this.catch.names),this.finally&&P(e,this.finally.names),e}}class j extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}j.kind="catch";class C extends y{render(e){return"finally"+super.render(e)}}C.kind="finally";function P(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?P(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 A(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function D(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:n._`!${R(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 m(e)),this}object(...e){const t=["{"];for(const[r,o]of e)t.length>1&&t.push(","),t.push(r),(r!==o||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,o));return t.push("}"),new n._Code(t)}if(e,t,r){if(this._blockNode(new $(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new $(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode($,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new 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 S(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 _("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 _("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 E;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new k;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new j(e),t(e)}return r&&(this._currNode=n.finally=new C,this.code(r)),this._endBlockNode(j,C)}throw(e){return this._leafNode(new p(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 x(e,t,r)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(x)}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=D;const I=T(t.operators.AND);t.and=function(...e){return e.reduce(I)};const F=T(t.operators.OR);function T(e){return(t,r)=>t===n.nil?r:r===n.nil?t:n._`${R(t)} ${e} ${R(r)}`}function R(e){return e instanceof n.Name?e:n._`(${e})`}t.or=function(...e){return e.reduce(F)}},57845:(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(41520);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||(t.UsedValueState={})),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}}},48708:(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(99029),o=r(94227),a=r(42023);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,p=l(e,r,o);(null!==a&&void 0!==a?a:u||f)?s(d,p):i(c,n._`[${p}]`)},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:p,schemaPath:m}=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._`${p}${m}`],[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]}},73835:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=r(99029),o=r(13558),a=r(42023),s=r(66939),i=r(94227),c=r(62586);class l{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,s.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 d(e){const t=f.call(this,e);if(t)return t;const r=(0,s.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:i,lines:l}=this.opts.code,{ownProperties:d}=this.opts,u=new n.CodeGen(this.scope,{es5:i,lines:l,ownProperties:d});let p;e.$async&&(p=u.scopeValue("Error",{ref:o.default,code:n._`require("ajv/dist/runtime/validation_error").default`}));const m=u.scopeName("validate");e.validateName=m;const h={gen:u,allErrors:this.opts.allErrors,data:a.default.data,parentData:a.default.parentData,parentDataProperty:a.default.parentDataProperty,dataNames:[a.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:u.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:p,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:n._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e),(0,c.validateFunctionCode)(h),u.optimize(this.opts.code.optimize);const t=u.toString();y=`${u.scopeRefs(a.default.scope)}return ${t}`,this.opts.code.process&&(y=this.opts.code.process(y,e));const r=new Function(`${a.default.self}`,`${a.default.scope}`,y)(this,this.scope.get());if(this.scope.value(m,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:m,validateCode:t,scopeValues:u._values}),this.opts.unevaluated){const{props:e,items:t}=h;r.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},r.source&&(r.source.evaluated=(0,n.stringify)(r.evaluated))}return e.validate=r,e}catch(g){throw delete e.validate,delete e.validateName,y&&this.logger.error("Error compiling schema, function code:",y),g}finally{this._compilations.delete(e)}}function u(e){return(0,s.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:d.call(this,e)}function f(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function p(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||m.call(this,e,t)}function m(e,t){const r=this.opts.uriResolver.parse(t),n=(0,s._getFullPath)(this.opts.uriResolver,r);let o=(0,s.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return y.call(this,r,e);const a=(0,s.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=m.call(this,e,i);if("object"!==typeof(null===t||void 0===t?void 0:t.schema))return;return y.call(this,r,t)}if("object"===typeof(null===i||void 0===i?void 0:i.schema)){if(i.validate||d.call(this,i),a===(0,s.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,s.resolveUrl)(this.opts.uriResolver,o,n)),new l({schema:t,schemaId:r,root:e,baseId:o})}return y.call(this,r,i)}}t.SchemaEnv=l,t.compileSchema=d,t.resolveRef=function(e,t,r){var n;r=(0,s.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=p.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 l({schema:o,schemaId:s,root:e,baseId:t}))}return void 0!==a?e.refs[r]=u.call(this,a):void 0},t.getCompilingSchema=f,t.resolveSchema=m;const h=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const l of e.fragment.slice(1).split("/")){if("boolean"===typeof r)return;const e=r[(0,i.unescapeFragment)(l)];if(void 0===e)return;const n="object"===typeof(r=e)&&r[this.opts.schemaId];!h.has(l)&&n&&(t=(0,s.resolveUrl)(this.opts.uriResolver,t,n))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,i.schemaHasRulesButRef)(r,this.RULES)){const e=(0,s.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=m.call(this,n,e)}const{schemaId:c}=this.opts;return a=a||new l({schema:r,schemaId:c,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}},42023:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),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},34551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(66939);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},66939:(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(94227),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=p(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 p(e){return e?e.replace(f,""):""}t.normalizeId=p,t.resolveUrl=function(e,t,r){return r=p(r),e.resolve(t,r)};const m=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,s=p(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=p(s?r(s,t):t),u.has(t))throw h(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!==p(a)&&("#"===t[0]?(f(e,l[t],t),l[t]=e):this.refs[t]=a),t}function y(e){if("string"==typeof e){if(!m.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 h(r)}function h(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},10396:(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:{}}}},94227:(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(99029),o=r(41520);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]||m(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 p;function m(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:f[t.code]||(f[t.code]=new o._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(p=t.Type||(t.Type={})),t.getErrorPath=function(e,t,r){if(e instanceof n.Name){const o=t===p.Num;return r?o?n._`"[" + ${e} + "]"`:n._`"['" + ${e} + "']"`:o?n._`"/" + ${e}`:n._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,n.getProperty)(e).toString():"/"+i(e)},t.checkStrictMode=m},7887:(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},28727:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=r(48708),o=r(99029),a=r(42023),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)}},10208:(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(10396),o=r(7887),a=r(48708),s=r(99029),i=r(94227);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||(t.DataType={})),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(),m(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):m(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 p={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function m(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,i.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,a.reportError)(t,p)}t.reportTypeError=m},7870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const n=r(99029),o=r(94227);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)))}},62586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=r(28727),o=r(10208),a=r(7887),s=r(10208),i=r(7870),c=r(33673),l=r(24495),d=r(99029),u=r(42023),f=r(66939),p=r(94227),m=r(48708);function h({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&&S(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,p.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,p.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 _(e,[],!1,t);const r=(0,o.getSchemaTypes)(e.schema);_(e,r,!(0,o.coerceAndCheckDataType)(e,r),t)}function S({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 _(e,t,r,n){const{gen:o,schema:i,data:c,allErrors:l,opts:f,self:m}=e,{RULES:h}=m;function y(p){(0,a.shouldUseGroup)(i,p)&&(p.type?(o.if((0,s.checkDataType)(p.type,c,f.strictNumbers)),x(e,p),1===t.length&&t[0]===p.type&&r&&(o.else(),(0,s.reportTypeError)(e)),o.endIf()):x(e,p),l||o.if(d._`${u.default.errors} === ${n||0}`))}!i.$ref||!f.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(i,h)?(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=>{k(e.dataTypes,t)||j(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)k(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"))&&j(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=>E(t,e)))&&j(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes)}(e,t),o.block((()=>{for(const e of h.rules)y(e);y(h.post)}))):o.block((()=>P(e,"$ref",h.all.$ref.definition)))}function x(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)&&P(e,r.keyword,r.definition,t.type)}))}function E(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function k(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function j(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,p.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;h(e,(()=>{r.$comment&&t.$comment&&S(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,p.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):h(e,(()=>(0,n.topBoolOrEmptySchema)(e)))};class C{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,p.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",A(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?m.reportExtraError:m.reportError)(this,this.def.error,t)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=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=p.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=p.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 P(e,t,r,n){const o=new C(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=C;const O=/^\/(?:[^~]|~0|~1)*$/,N=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function A(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,p.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=A},33673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=r(99029),o=r(42023),a=r(15765),s=r(48708);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:p,it:m}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,t);const h=!p&&t.compile?t.compile.call(m.self,u,f,m):t.validate,y=c(l,d,h),g=l.let("valid");function v(r=(t.async?n._`await `:n.nil)){const s=m.opts.passContext?o.default.this:o.default.self,i=!("compile"in t&&!p||!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 ${m.ValidationError}`,(()=>l.assign(e,n._`${t}.errors`)),(()=>l.throw(t))))),e}():function(){const e=n._`${y}.errors`;return l.assign(e,null),v(n.nil),e}();t.modifying&&i(e),$((()=>function(e,t){const{gen:r}=e;r.if(n._`Array.isArray(${t})`,(()=>{r.assign(o.default.vErrors,n._`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`).assign(o.default.errors,n._`${o.default.vErrors}.length`),(0,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)}}}},24495:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=r(99029),o=r(94227);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}},4042:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(62586);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var o=r(99029);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const a=r(13558),s=r(34551),i=r(10396),c=r(73835),l=r(99029),d=r(66939),u=r(10208),f=r(94227),p=r(63837),m=r(55944),h=(e,t)=>new RegExp(e,t);h.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},$={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function b(e){var t,r,n,o,a,s,i,c,l,d,u,f,p,y,g,v,$,b,w,S,_,x,E,k,j;const C=e.strict,P=null===(t=e.code)||void 0===t?void 0:t.optimize,O=!0===P||void 0===P?1:P||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:h,A=null!==(o=e.uriResolver)&&void 0!==o?o:m.default;return{strictSchema:null===(s=null!==(a=e.strictSchema)&&void 0!==a?a:C)||void 0===s||s,strictNumbers:null===(c=null!==(i=e.strictNumbers)&&void 0!==i?i:C)||void 0===c||c,strictTypes:null!==(d=null!==(l=e.strictTypes)&&void 0!==l?l:C)&&void 0!==d?d:"log",strictTuples:null!==(f=null!==(u=e.strictTuples)&&void 0!==u?u:C)&&void 0!==f?f:"log",strictRequired:null!==(y=null!==(p=e.strictRequired)&&void 0!==p?p:C)&&void 0!==y&&y,code:e.code?{...e.code,optimize:O,regExp:N}:{optimize:O,regExp:N},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===($=e.meta)||void 0===$||$,messages:null===(b=e.messages)||void 0===b||b,inlineRefs:null===(w=e.inlineRefs)||void 0===w||w,schemaId:null!==(S=e.schemaId)&&void 0!==S?S:"$id",addUsedSchema:null===(_=e.addUsedSchema)||void 0===_||_,validateSchema:null===(x=e.validateSchema)||void 0===x||x,validateFormats:null===(E=e.validateFormats)||void 0===E||E,unicodeRegExp:null===(k=e.unicodeRegExp)||void 0===k||k,int32range:null===(j=e.int32range)||void 0===j||j,uriResolver:A}}class w{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:g,es5:t,lines:r}),this.logger=function(e){if(!1===e)return C;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,i.getRules)(),S.call(this,v,e,"NOT SUPPORTED"),S.call(this,$,e,"DEPRECATED","warn"),this._metaOpts=j.call(this),e.formats&&E.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&k.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=p;"id"===r&&(n={...p},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await o.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||a.call(this,r)}async function o(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof s.default))throw t;return i.call(this,t),await c.call(this,t.missingSchema),a.call(this,e)}}function i({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await l.call(this,e);this.refs[e]||await o.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function l(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"===typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,d.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=_.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new c.SchemaEnv({schema:{},schemaId:r});if(t=c.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=_.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,d.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(O.call(this,r,t),!t)return(0,f.eachItem)(r,(e=>N.call(this,e))),this;D.call(this,t);const n={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(r,0===n.type.length?e=>N.call(this,e,n):e=>n.type.forEach((t=>N.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=F(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,d.normalizeId)(a||r);const l=d.getSchemaRefs.call(this,e,r);return i=new c.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:l}),this._cache.set(i.schema,i),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=i),n&&this.validateSchema(e,!0),i}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function 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 _(e){return e=(0,d.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){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 k(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 j(){const e={...this.opts};for(const t of y)delete e[t];return e}t.default=w,w.ValidationError=a.default,w.MissingRefError=s.default;const C={log(){},warn(){},error(){}};const P=/^[a-z_$][a-z0-9_$:-]*$/i;function O(e,t){const{RULES:r}=this;if((0,f.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!P.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function N(e,t,r){var n;const o=null===t||void 0===t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES: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,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?A.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 A(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=F(t)),e.validateSchema=this.compile(t,!0))}const I={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function F(e){return{anyOf:[e,I]}}},76250:(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},53853:(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'},55944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(46579);n.code='require("ajv/dist/runtime/uri").default',t.default=n},13558:(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},15457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const n=r(99029),o=r(94227),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},38660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(15765),o=r(99029),a=r(42023),s=r(94227),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 p=(0,n.allSchemaProperties)(i.properties),m=(0,n.allSchemaProperties)(i.patternProperties);function h(e){t.code(o._`delete ${c}[${e}]`)}function y(n){if("all"===f.removeAdditional||f.removeAdditional&&!1===r)h(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(),h(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=>{p.length||m.length?t.if(function(r){let a;if(p.length>8){const e=(0,s.schemaRefOrVal)(d,i.properties,"properties");a=(0,n.isOwnProperty)(t,e,r)}else a=p.length?(0,o.or)(...p.map((e=>o._`${r} === ${e}`))):o.nil;return m.length&&(a=(0,o.or)(a,...m.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},15844:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(94227),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},16505:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(15765).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=n},12661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),o=r(94227),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 p=t.name("valid");function m(){const e=t.name("_valid"),r=t.let("count",0);h(e,(()=>t.if(e,(()=>function(e){t.code(n._`${e}++`),void 0===l?t.if(n._`${e} >= ${c}`,(()=>t.assign(p,!0).break())):(t.if(n._`${e} > ${l}`,(()=>t.assign(p,!1).break())),1===c?t.assign(p,!0):t.if(n._`${e} >= ${c}`,(()=>t.assign(p,!0))))}(r)))))}function h(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?h(p,(()=>t.if(p,(()=>t.break())))):0===c?(t.let(p,!0),void 0!==l&&t.if(n._`${s}.length > 0`,m)):(t.let(p,!1),m()),e.result(p,(()=>e.reset()))}};t.default=a},83025:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=r(99029),o=r(94227),a=r(15765);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},23620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),o=r(94227),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},56378:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(15457),o=r(65354),a=r(20494),s=r(93966),i=r(12661),c=r(83025),l=r(19713),d=r(38660),u=r(40117),f=r(45333),p=r(57923),m=r(16505),h=r(96163),y=r(15844),g=r(23620),v=r(14426);t.default=function(e=!1){const t=[p.default,m.default,h.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}},20494:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const n=r(99029),o=r(94227),a=r(15765),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},93966:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),o=r(94227),a=r(15765),s=r(15457),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},57923:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(94227),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},96163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),o=r(94227),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},45333:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(15765),o=r(99029),a=r(94227),s=r(94227),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 p=d.strictSchema&&!d.allowMatchingProperties&&c.properties,m=t.name("valid");!0===l.props||l.props instanceof o.Name||(l.props=(0,s.evaluatedPropsToName)(t,l.props));const{props:h}=l;function y(e){for(const t in p)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},m),l.opts.unevaluated&&!0!==h?t.assign(o._`${h}[${a}]`,!0):n||l.allErrors||t.if((0,o.not)(m),(()=>t.break()))}))}))}!function(){for(const e of u)p&&y(e),l.allErrors?g(e):(t.var(m,!0),g(e),t.if(m))}()}};t.default=i},65354:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(20494),o={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t.default=o},40117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(62586),o=r(15765),a=r(94227),s=r(38660),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)p(n)?m(n):(t.if((0,o.propertyInData)(t,c,n,l.opts.ownProperties)),m(n),l.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function p(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==r[e].default}function m(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=i},19713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),o=r(94227),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},14426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(94227),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},15765:(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(99029),o=r(94227),a=r(42023),s=r(94227);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,p=[[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&&p.push([a.default.dynamicAnchors,a.default.dynamicAnchors]);const m=n._`${f}, ${r.object(...p)}`;return d!==n.nil?n._`${l}.call(${d}, ${m})`:n._`${l}(${m})`};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)))}},83463:(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},72128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(83463),o=r(13693),a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,o.default];t.default=a},13693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const n=r(34551),o=r(15765),a=r(99029),s=r(42023),i=r(73835),c=r(94227),l={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:o}=e,{baseId:s,schemaEnv:c,validateName:l,opts:f,self:p}=o,{root:m}=c;if(("#"===r||"#/"===r)&&s===m.baseId)return function(){if(c===m)return u(e,l,c,c.$async);const r=t.scopeValue("root",{ref:m});return u(e,a._`${r}.validate`,m,m.$async)}();const h=i.resolveRef.call(p,m,s,r);if(void 0===h)throw new n.default(o.opts.uriResolver,s,r);return h instanceof i.SchemaEnv?function(t){const r=d(e,t);u(e,r,t,t.$async)}(h):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)}(h)}};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,p=f.passContext?s.default.this:a.nil;function m(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 h(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,p)}`),h(t),d||i.assign(r,!0)}),(e=>{i.if(a._`!(${e} instanceof ${l.ValidationError})`,(()=>i.throw(e))),m(e),d||i.assign(r,!1)})),e.ok(r)}():e.result((0,o.callValidateCode)(e,t,p),(()=>h(t)),(()=>m(t)))}t.getValidate=d,t.callRef=u,t.default=l},36653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),o=r(97652),a=r(73835),s=r(94227),i={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:i,parentSchema:c,it:l}=e,{oneOf:d}=c;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");const u=i.propertyName;if("string"!=typeof u)throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const f=t.let("valid",!1),p=t.const("tag",n._`${r}${(0,n.getProperty)(u)}`);function m(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 ${p} == "string"`,(()=>function(){const r=function(){var e;const t={},r=o(c);let n=!0;for(let c=0;c<d.length;c++){let t=d[c];(null===t||void 0===t?void 0:t.$ref)&&!(0,s.schemaHasRulesButRef)(t,l.self.RULES)&&(t=a.resolveRef.call(l.self,l.schemaEnv.root,l.baseId,null===t||void 0===t?void 0:t.$ref),t instanceof a.SchemaEnv&&(t=t.schema));const f=null===(e=null===t||void 0===t?void 0:t.properties)||void 0===e?void 0:e[u];if("object"!=typeof f)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${u}"`);n=n&&(r||o(t)),i(f,c)}if(!n)throw new Error(`discriminator: "${u}" must be required`);return t;function o({required:e}){return Array.isArray(e)&&e.includes(u)}function i(e,t){if(e.const)f(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${u}" must have "const" or "enum"`);for(const r of e.enum)f(r,t)}}function f(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${u}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(n._`${p} === ${e}`),t.assign(f,m(r[e]));t.else(),e.error(!1,{discrError:o.DiscrError.Mapping,tag:p,tagName:u}),t.endIf()}()),(()=>e.error(!1,{discrError:o.DiscrError.Tag,tag:p,tagName:u}))),e.ok(f)}};t.default=i},97652:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(t.DiscrError||(t.DiscrError={}))},86144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(72128),o=r(67060),a=r(56378),s=r(97532),i=r(69857),c=[n.default,o.default,(0,a.default)(),s.default,i.metadataVocabulary,i.contentVocabulary];t.default=c},94737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),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,p]=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 ${p}(${o})`}return"function"==typeof c?n._`${p}(${o})`:n._`${p}.test(${o})`}())}())}};t.default=o},97532:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=[r(94737).default];t.default=n},69857:(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"]},27935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),o=r(94227),a=r(76250),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},28643:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),o=r(94227),a=r(76250),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 p;if(d||s)p=t.let("valid"),e.block$data(p,(function(){t.assign(p,!1),t.forOf("v",c,(e=>t.if(n._`${f()}(${r}, ${e})`,(()=>t.assign(p,!0).break()))))}));else{if(!Array.isArray(i))throw new Error("ajv implementation error");const e=t.const("vSchema",c);p=(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(p)}};t.default=s},67060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(75882),o=r(63439),a=r(77307),s=r(90422),i=r(34486),c=r(34003),l=r(61163),d=r(60617),u=r(27935),f=r(28643),p=[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=p},61163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),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},77307:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),o=r(94227),a=r(53853),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},75882:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),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},34486:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),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},63439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(99029),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},90422:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(15765),o=r(99029),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},34003:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(15765),o=r(99029),a=r(94227),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},60617:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(10208),o=r(99029),a=r(94227),s=r(76250),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"),p=l.items?(0,n.getSchemaTypes)(l.items):[];function m(a,s){const i=t.name("item"),c=(0,n.checkDataTypes)(p,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`),p.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 h(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`,(()=>(p.length>0&&!p.some((e=>"object"===e||"array"===e))?m:h)(n,a)))}),o._`${d} === false`),e.ok(f)}};t.default=i},6641:(e,t,r)=>{"use strict";var n=r(7800),o=r(96552),a=r(82986),s=Math.pow(2,31)-1;function i(e,t){var r,n=1;if(0===e)return t;if(0===t)return e;for(;e%2===0&&t%2===0;)e/=2,t/=2,n*=2;for(;e%2===0;)e/=2;for(;t;){for(;t%2===0;)t/=2;e>t&&(r=t,t=e,e=r),t-=e}return n*e}function c(e,t){var r,n=0;if(0===e)return t;if(0===t)return e;for(;0===(1&e)&&0===(1&t);)e>>>=1,t>>>=1,n++;for(;0===(1&e);)e>>>=1;for(;t;){for(;0===(1&t);)t>>>=1;e>t&&(r=t,t=e,e=r),t-=e}return e<<n}e.exports=function(){var e,t,r,l,d,u,f,p=arguments.length;for(e=new Array(p),f=0;f<p;f++)e[f]=arguments[f];if(o(e)){if(2===p)return(d=e[0])<0&&(d=-d),(u=e[1])<0&&(u=-u),d<=s&&u<=s?c(d,u):i(d,u);r=e}else{if(!n(e[0]))throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(p>1){if(r=e[0],t=e[1],!a(t))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((l=r.length)<2)return null;if(t){for(d=new Array(l),f=0;f<l;f++)d[f]=t(r[f],f);r=d}if(p<3&&!o(r))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(f=0;f<l;f++)(d=r[f])<0&&(r[f]=-d);for(d=r[0],f=1;f<l;f++)d=(u=r[f])<=s&&d<=s?c(d,u):i(d,u);return d}},78867:(e,t,r)=>{"use strict";var n=r(6641),o=r(7800),a=r(96552),s=r(82986);e.exports=function(){var e,t,r,i,c,l,d,u=arguments.length;for(e=new Array(u),d=0;d<u;d++)e[d]=arguments[d];if(a(e)){if(2===u)return(c=e[0])<0&&(c=-c),(l=e[1])<0&&(l=-l),0===c||0===l?0:c/n(c,l)*l;r=e}else{if(!o(e[0]))throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(u>1){if(r=e[0],t=e[1],!s(t))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((i=r.length)<2)return null;if(t){for(c=new Array(i),d=0;d<i;d++)c[d]=t(r[d],d);r=c}if(u<3&&!a(r))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(d=0;d<i;d++)(c=r[d])<0&&(r[d]=-c);for(c=r[0],d=1;d<i;d++){if(l=r[d],0===c||0===l)return 0;c=c/n(c,l)*l}return c}},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}},90370:(e,t,r)=>{var n=r(2404),o=r(33031),a=r(63375),s=r(9063),i=r(84684),c=r(80191),l=r(11331),d=r(53812),u=e=>Array.isArray(e)?e:[e],f=e=>void 0===e,p=e=>l(e)||Array.isArray(e)?Object.keys(e):[],m=(e,t)=>e.hasOwnProperty(t),h=e=>o(a(e)),y=e=>f(e)||Array.isArray(e)&&0===e.length,g=(e,t,r,n)=>t&&m(t,r)&&e&&m(e,r)&&n(e[r],t[r]),v=(e,t)=>f(e)&&0===t||f(t)&&0===e||n(e,t),$=e=>f(e)||n(e,{})||!0===e,b=e=>f(e)||n(e,{}),w=e=>f(e)||l(e)||!0===e||!1===e;function S(e,t){return!(!y(e)||!y(t))||n(h(e),h(t))}function _(e,t,r,o){var s=a(p(e).concat(p(t)));return!(!b(e)||!b(t))||(!b(e)||!p(t).length)&&((!b(t)||!p(e).length)&&s.every((function(r){var a=e[r],s=t[r];return Array.isArray(a)&&Array.isArray(s)?n(h(e),h(t)):!(Array.isArray(a)&&!Array.isArray(s))&&(!(Array.isArray(s)&&!Array.isArray(a))&&g(e,t,r,o))})))}function x(e,t,r,n){var o=s(e,n),a=s(t,n);return c(o,a,n).length===Math.max(o.length,a.length)}var E={title:n,uniqueItems:(e,t)=>f(e)&&!1===t||f(t)&&!1===e||n(e,t),minLength:v,minItems:v,minProperties:v,required:S,enum:S,type:function(e,t){return e=u(e),t=u(t),n(h(e),h(t))},items:function(e,t,r,o){return l(e)&&l(t)?o(e,t):Array.isArray(e)&&Array.isArray(t)?_(e,t,0,o):n(e,t)},anyOf:x,allOf:x,oneOf:x,properties:_,patternProperties:_,dependencies:_},k=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],j=["additionalProperties","additionalItems","contains","propertyNames","not"];e.exports=function e(t,r,o){if(o=i(o,{ignore:[]}),$(t)&&$(r))return!0;if(!w(t)||!w(r))throw new Error("Either of the values are not a JSON schema.");if(t===r)return!0;if(d(t)&&d(r))return t===r;if(void 0===t&&!1===r||void 0===r&&!1===t)return!1;if(f(t)&&!f(r)||!f(t)&&f(r))return!1;var s=a(Object.keys(t).concat(Object.keys(r)));if(o.ignore.length&&(s=s.filter((e=>-1===o.ignore.indexOf(e)))),!s.length)return!0;function c(t,r){return e(t,r,o)}return s.every((function(a){var s=t[a],i=r[a];if(-1!==j.indexOf(a))return e(s,i,o);var l=E[a];if(l||(l=n),n(s,i))return!0;if(-1===k.indexOf(a)&&(!m(t,a)&&m(r,a)||m(t,a)&&!m(r,a)))return s===i;var u=l(s,i,a,c);if(!d(u))throw new Error("Comparer must return true or false");return u}))}},5109:(e,t,r)=>{const n=r(35970),o=r(3176),a=r(11331),s=r(63375),i=r(9063),c=r(91648);const l=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d=e=>a(e)||Array.isArray(e)?Object.keys(e):[],u=e=>!d(e).length&&!1!==e&&!0!==e;e.exports={allUniqueKeys:e=>s(o(e.map(d))),deleteUndefinedProps:function(e){for(const t in e)l(e,t)&&u(e[t])&&delete e[t];return e},getValues:(e,t)=>e.map((e=>e&&e[t])),has:l,isEmptySchema:u,isSchema:e=>a(e)||!0===e||!1===e,keys:d,notUndefined:e=>void 0!==e,uniqWith:i,withoutArr:(e,...t)=>c.apply(null,[e].concat(n(t)))}},11051:(e,t,r)=>{const n=r(90370),o=r(39754),{allUniqueKeys:a,deleteUndefinedProps:s,has:i,isSchema:c,notUndefined:l,uniqWith:d}=r(5109);function u(e,t,r){return a(r).reduce((function(r,o){const a=function(e,t){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;{const r=e.items[t];if(c(r))return r;if(i(e,"additionalItems"))return e.additionalItems}}}))}(e,o),s=d(a.filter(l),n);return r[o]=t(s,o),r}),[])}e.exports={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map((e=>e.items)),a=n.filter(l),i={};let d;var f;return a.every(c)?i.items=r.items(n):i.items=u(e,r.items,n),a.every(Array.isArray)?d=e.map((e=>e.additionalItems)):a.some(Array.isArray)&&(d=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),d&&(i.additionalItems=r.additionalItems(d)),!1===i.additionalItems&&Array.isArray(i.items)&&(f=i.items,o(f,(function(e,t){!1===e&&f.splice(t,1)}))),s(i)}}},7894:(e,t,r)=>{const n=r(90370),o=r(39754),{allUniqueKeys:a,deleteUndefinedProps:s,getValues:i,keys:c,notUndefined:l,uniqWith:d,withoutArr:u}=r(5109);function f(e,t){return a(e).reduce((function(r,o){const a=i(e,o),s=d(a.filter(l),n);return r[o]=t(s,o),r}),{})}e.exports={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach((function(t){const n=e.filter((e=>e!==t)),o=c(t.properties),a=c(t.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){const n=c(e.properties),s=n.filter((e=>a.some((t=>t.test(e)))));u(n,o,s).forEach((function(n){e.properties[n]=r.properties([e.properties[n],t.additionalProperties],n)}))}))})),e.forEach((function(t){const r=e.filter((e=>e!==t)),n=c(t.patternProperties);!1===t.additionalProperties&&r.forEach((function(e){const t=c(e.patternProperties);u(t,n).forEach((t=>delete e.patternProperties[t]))}))})));const a={additionalProperties:r.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:f(e.map((e=>e.patternProperties)),r.patternProperties),properties:f(e.map((e=>e.properties)),r.properties)};var i;return!1===a.additionalProperties&&o(i=a.properties,(function(e,t){!1===e&&delete i[t]})),s(a)}}},33978:(e,t,r)=>{const n=r(88055),o=r(90370),a=r(78867),s=r(74354),i=r(35970),c=r(3176),l=r(5287),d=r(80191),u=r(2404),f=r(11331),p=r(12358),m=r(33031),h=r(63375),y=r(9063),g=r(7894),v=r(11051),$=(e,t)=>-1!==e.indexOf(t),b=e=>f(e)||!0===e||!1===e,w=e=>!1===e,S=e=>!0===e,_=(e,t,r)=>r(e),x=e=>m(h(c(e))),E=e=>void 0!==e,k=e=>h(c(e.map(A))),j=e=>e[0],C=e=>Math.max.apply(Math,e),P=e=>Math.min.apply(Math,e);function O(e){let{allOf:t=[],...r}=e;return r=f(e)?r:e,[r,...t.map(O)]}function N(e,t){return e.map((e=>e&&e[t]))}function A(e){return f(e)||Array.isArray(e)?Object.keys(e):[]}function D(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?D(n,i(t.map((e=>r.map((t=>[t].concat(e))))))):D(n,r.map((e=>e)))}function I(e,t){let r;try{r=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(n){r=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+'". They are probably incompatible. Values: \n'+r)}function F(e,t,r,n,a,s){if(e.length){const i=a.complexResolvers[t];if(!i||!i.resolver)throw new Error("No resolver found for "+t);const c=r.map((t=>e.reduce(((e,r)=>(void 0!==t[r]&&(e[r]=t[r]),e)),{}))),l=y(c,o),d=i.keywords.reduce(((e,t)=>({...e,[t]:(e,r=[])=>n(e,null,s.concat(t,r))})),{}),u=i.resolver(l,s.concat(t),d,a);return f(u)||I(l,s.concat(t)),u}}function T(e){return{required:e}}const R=["properties","patternProperties","definitions","dependencies"],M=["anyOf","oneOf"],U=["additionalProperties","additionalItems","contains","propertyNames","not","items"],V={type(e){if(e.some(Array.isArray)){const t=e.map((function(e){return Array.isArray(e)?e:[e]})),r=l.apply(null,t);if(1===r.length)return r[0];if(r.length>1)return h(r)}},dependencies:(e,t,r)=>k(e).reduce((function(t,n){const a=N(e,n);let s=y(a.filter(E),u);const i=s.filter(Array.isArray);if(i.length){if(i.length===s.length)t[n]=x(s);else{const e=s.filter(b),o=i.map(T);t[n]=r(e.concat(o),n)}return t}return s=y(s,o),t[n]=r(s,n),t}),{}),oneOf(e,t,r){const a=function(e,t){return e.map((function(e,r){try{return t(e,r)}catch(n){return}})).filter(E)}(D(n(e)),r),s=y(a,o);if(s.length)return s},not:e=>({anyOf:e}),pattern:e=>e.map((e=>"(?="+e+")")).join(""),multipleOf(e){let t=e.slice(0),r=1;for(;t.some((e=>!Number.isInteger(e)));)t=t.map((e=>10*e)),r*=10;return a(t)/r},enum(e){const t=d.apply(null,e.concat(u));if(t.length)return m(t)}};V.$id=j,V.$ref=j,V.$schema=j,V.additionalItems=_,V.additionalProperties=_,V.anyOf=V.oneOf,V.contains=_,V.default=j,V.definitions=V.dependencies,V.description=j,V.examples=e=>y(i(e),u),V.exclusiveMaximum=P,V.exclusiveMinimum=C,V.items=v,V.maximum=P,V.maxItems=P,V.maxLength=P,V.maxProperties=P,V.minimum=C,V.minItems=C,V.minLength=C,V.minProperties=C,V.properties=g,V.propertyNames=_,V.required=e=>x(e),V.title=j,V.uniqueItems=e=>e.some(S);const B={properties:g,items:v};function q(e,t,r){r=r||[],t=s(t,{ignoreAdditionalProperties:!1,resolvers:V,complexResolvers:B,deep:!0});const a=Object.entries(t.complexResolvers);const i=function e(s,i,c){s=n(s.filter(E)),c=c||[];const l=f(i)?i:{};if(!s.length)return;if(s.some(w))return!1;if(s.every(S))return!0;s=s.filter(f);const d=k(s);if(t.deep&&$(d,"allOf"))return q({allOf:s},t,r);const u=a.map((([e,t])=>d.filter((e=>t.keywords.includes(e)))));return u.forEach((e=>p(d,e))),d.forEach((function(r){const n=N(s,r),a=y(n.filter(E),function(e){return function(t,r){return o({[e]:t},{[e]:r})}}(r));if(1===a.length&&$(M,r))l[r]=a[0].map((t=>e([t],t)));else if(1!==a.length||$(R,r)||$(U,r)){const n=t.resolvers[r]||t.resolvers.defaultResolver;if(!n)throw new Error("No resolver found for key "+r+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const o=(t,n=[])=>e(t,null,c.concat(r,n));l[r]=n(a,c.concat(r),o,t),void 0===l[r]?I(a,c.concat(r)):void 0===l[r]&&delete l[r]}else l[r]=a[0]})),a.reduce(((r,[n,o],a)=>({...r,...F(u[a],n,s,e,t,c)})),l)}(c(O(e)));return i}q.options={resolvers:V},e.exports=q},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 p=a[f];if(Array.isArray(p)){if(f in t.arrayKeywords)for(var m=0;m<p.length;m++)r(e,n,o,p[m],s+"/"+f+"/"+m,i,s,f,a,m)}else if(f in t.propsKeywords){if(p&&"object"==typeof p)for(var h in p)r(e,n,o,p[h],s+"/"+f+"/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),i,s,f,a,h)}else(f in t.keywords||e.allKeys&&!(f in t.skipKeywords))&&r(e,n,o,p,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}},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)}}}},40882:e=>{e.exports=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}},20426:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&t.call(e,r)}},12027:e=>{e.exports=function(e,t,r,n){for(var o=r-1,a=e.length;++o<a;)if(n(e[o],t))return o;return-1}},27185:(e,t,r)=>{var n=r(38859),o=r(15325),a=r(29905),s=r(34932),i=r(27301),c=r(19219),l=Math.min;e.exports=function(e,t,r){for(var d=r?a:o,u=e[0].length,f=e.length,p=f,m=Array(f),h=1/0,y=[];p--;){var g=e[p];p&&t&&(g=s(g,i(t))),h=l(g.length,h),m[p]=!r&&(t||u>=120&&g.length>=120)?new n(p&&g):void 0}g=e[0];var v=-1,$=m[0];e:for(;++v<u&&y.length<h;){var b=g[v],w=t?t(b):b;if(b=r||0!==b?b:0,!($?c($,w):d(y,w,r))){for(p=f;--p;){var S=m[p];if(!(S?c(S,w):d(e[p],w,r)))continue e}$&&$.push(w),y.push(b)}}return y}},46155:(e,t,r)=>{var n=r(34932),o=r(47422),a=r(15389),s=r(5128),i=r(73937),c=r(27301),l=r(43714),d=r(83488),u=r(56449);e.exports=function(e,t,r){t=t.length?n(t,(function(e){return u(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[d];var f=-1;t=n(t,c(a));var p=s(e,(function(e,r,o){return{criteria:n(t,(function(t){return t(e)})),index:++f,value:e}}));return i(p,(function(e,t){return l(e,t,r)}))}},76001:(e,t,r)=>{var n=r(97420),o=r(80631);e.exports=function(e,t){return n(e,t,(function(t,r){return o(e,r)}))}},97420:(e,t,r)=>{var n=r(47422),o=r(73170),a=r(31769);e.exports=function(e,t,r){for(var s=-1,i=t.length,c={};++s<i;){var l=t[s],d=n(e,l);r(d,l)&&o(c,a(l,e),d)}return c}},21988:(e,t,r)=>{var n=r(34932),o=r(96131),a=r(12027),s=r(27301),i=r(23007),c=Array.prototype.splice;e.exports=function(e,t,r,l){var d=l?a:o,u=-1,f=t.length,p=e;for(e===t&&(t=i(t)),r&&(p=n(e,s(r)));++u<f;)for(var m=0,h=t[u],y=r?r(h):h;(m=d(p,y,m,l))>-1;)p!==e&&c.call(p,m,1),c.call(e,m,1);return e}},85558:e=>{e.exports=function(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r}},73170:(e,t,r)=>{var n=r(16547),o=r(31769),a=r(30361),s=r(23805),i=r(77797);e.exports=function(e,t,r,c){if(!s(e))return e;for(var l=-1,d=(t=o(t,e)).length,u=d-1,f=e;null!=f&&++l<d;){var p=i(t[l]),m=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(l!=u){var h=f[p];void 0===(m=c?c(h,p,f):void 0)&&(m=s(h)?h:a(t[l+1])?[]:{})}n(f,p,m),f=f[p]}return e}},73937:e=>{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},3122:(e,t,r)=>{var n=r(83693);e.exports=function(e){return n(e)?e:[]}},53730:(e,t,r)=>{var n=r(44394);e.exports=function(e,t){if(e!==t){var r=void 0!==e,o=null===e,a=e===e,s=n(e),i=void 0!==t,c=null===t,l=t===t,d=n(t);if(!c&&!d&&!s&&e>t||s&&i&&l&&!c&&!d||o&&i&&l||!r&&l||!a)return 1;if(!o&&!s&&!d&&e<t||d&&r&&a&&!o&&!s||c&&r&&a||!i&&a||!l)return-1}return 0}},43714:(e,t,r)=>{var n=r(53730);e.exports=function(e,t,r){for(var o=-1,a=e.criteria,s=t.criteria,i=a.length,c=r.length;++o<i;){var l=n(a[o],s[o]);if(l)return o>=c?l:l*("desc"==r[o]?-1:1)}return e.index-t.index}},52606:(e,t,r)=>{var n=r(85250),o=r(23805);e.exports=function e(t,r,a,s,i,c){return o(t)&&o(r)&&(c.set(r,t),n(t,r,void 0,e,c),c.delete(r)),t}},84684:(e,t,r)=>{var n=r(69302),o=r(75288),a=r(36800),s=r(37241),i=Object.prototype,c=i.hasOwnProperty,l=n((function(e,t){e=Object(e);var r=-1,n=t.length,l=n>2?t[2]:void 0;for(l&&a(t[0],t[1],l)&&(n=1);++r<n;)for(var d=t[r],u=s(d),f=-1,p=u.length;++f<p;){var m=u[f],h=e[m];(void 0===h||o(h,i[m])&&!c.call(e,m))&&(e[m]=d[m])}return e}));e.exports=l},74354:(e,t,r)=>{var n=r(91033),o=r(69302),a=r(52606),s=r(6924),i=o((function(e){return e.push(void 0,a),n(s,void 0,e)}));e.exports=i},3176:(e,t,r)=>{var n=r(83120),o=1/0;e.exports=function(e){return(null==e?0:e.length)?n(e,o):[]}},39754:(e,t,r)=>{var n=r(83729),o=r(80909),a=r(24066),s=r(56449);e.exports=function(e,t){return(s(e)?n:o)(e,a(t))}},61448:(e,t,r)=>{var n=r(20426),o=r(49326);e.exports=function(e,t){return null!=e&&o(e,t,n)}},5287:(e,t,r)=>{var n=r(34932),o=r(27185),a=r(69302),s=r(3122),i=a((function(e){var t=n(e,s);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=i},80191:(e,t,r)=>{var n=r(34932),o=r(27185),a=r(69302),s=r(3122),i=r(68090),c=a((function(e){var t=i(e),r=n(e,s);return(t="function"==typeof t?t:void 0)&&r.pop(),r.length&&r[0]===e[0]?o(r,void 0,t):[]}));e.exports=c},53812:(e,t,r)=>{var n=r(72552),o=r(40346);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==n(e)}},29132:(e,t,r)=>{var n=r(60270);e.exports=function(e,t,r){var o=(r="function"==typeof r?r:void 0)?r(e,t):void 0;return void 0===o?n(e,t,void 0,r):!!o}},69843:e=>{e.exports=function(e){return null==e}},98023:(e,t,r)=>{var n=r(72552),o=r(40346);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==n(e)}},6924:(e,t,r)=>{var n=r(85250),o=r(20999)((function(e,t,r,o){n(e,t,r,o)}));e.exports=o},44383:(e,t,r)=>{var n=r(76001),o=r(38816)((function(e,t){return null==e?{}:n(e,t)}));e.exports=o},12358:(e,t,r)=>{var n=r(21988);e.exports=function(e,t){return e&&e.length&&t&&t.length?n(e,t):e}},40860:(e,t,r)=>{var n=r(40882),o=r(80909),a=r(15389),s=r(85558),i=r(56449);e.exports=function(e,t,r){var c=i(e)?n:s,l=arguments.length<3;return c(e,a(t,4),r,l,o)}},63560:(e,t,r)=>{var n=r(73170);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},33031:(e,t,r)=>{var n=r(83120),o=r(46155),a=r(69302),s=r(36800),i=a((function(e,t){if(null==e)return[];var r=t.length;return r>1&&s(e,t[0],t[1])?t=[]:r>2&&s(t[0],t[1],t[2])&&(t=[t[0]]),o(e,n(t,1),[])}));e.exports=i},6638:(e,t,r)=>{var n=r(78096),o=r(24066),a=r(61489),s=4294967295,i=Math.min;e.exports=function(e,t){if((e=a(e))<1||e>9007199254740991)return[];var r=s,c=i(e,s);t=o(t),e-=s;for(var l=n(c,t);++r<e;)t(r);return l}},17400:(e,t,r)=>{var n=r(99374),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},61489:(e,t,r)=>{var n=r(17400);e.exports=function(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}},42072:(e,t,r)=>{var n=r(34932),o=r(23007),a=r(56449),s=r(44394),i=r(61802),c=r(77797),l=r(13222);e.exports=function(e){return a(e)?n(e,c):s(e)?[e]:o(i(l(e)))}},69752:(e,t,r)=>{var n=r(83729),o=r(39344),a=r(30641),s=r(15389),i=r(28879),c=r(56449),l=r(3656),d=r(1882),u=r(23805),f=r(37167);e.exports=function(e,t,r){var p=c(e),m=p||l(e)||f(e);if(t=s(t,4),null==r){var h=e&&e.constructor;r=m?p?new h:[]:u(e)&&d(h)?o(i(e)):{}}return(m?n:a)(e,(function(e,n,o){return t(r,e,n,o)})),r}},80299:(e,t,r)=>{var n=r(83120),o=r(69302),a=r(55765),s=r(83693),i=o((function(e){return a(n(e,1,s,!0))}));e.exports=i},63375:(e,t,r)=>{var n=r(55765);e.exports=function(e){return e&&e.length?n(e):[]}},9063:(e,t,r)=>{var n=r(55765);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?n(e,void 0,t):[]}},73357:(e,t,r)=>{var n=r(19931);e.exports=function(e,t){return null==e||n(e,t)}},91648:(e,t,r)=>{var n=r(83915),o=r(69302),a=r(83693),s=o((function(e,t){return a(e)?n(e,t):[]}));e.exports=s},21020:(e,t,r)=>{"use strict";var n=r(96540),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,a={},l=null,d=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(d=t.ref),t)s.call(t,n)&&!c.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:d,props:a,_owner:i.current}}t.Fragment=a,t.jsx=l,t.jsxs=l},74848:(e,t,r)=>{"use strict";e.exports=r(21020)},46579:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,o=1;o<n;++o)t[o]=t[o].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function a(e){return void 0!==e&&null!==e?e instanceof Array?e:"number"!==typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function s(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function i(e){var n="[A-Za-z]",o="[0-9]",a=t(o,"[A-Fa-f]"),s=r(r("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+r("%[89A-Fa-f]"+a+"%"+a+a)+"|"+r("%"+a+a)),i="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",i),l=e?"[\\uE000-\\uF8FF]":"[]",d=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),u=r(n+t(n,o,"[\\+\\-\\.]")+"*"),f=r(r(s+"|"+t(d,i,"[\\:]"))+"*"),p=(r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("[1-9]"+o)+"|"+o),r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o)),m=r(p+"\\."+p+"\\."+p+"\\."+p),h=r(a+"{1,4}"),y=r(r(h+"\\:"+h)+"|"+m),g=r(r(h+"\\:")+"{6}"+y),v=r("\\:\\:"+r(h+"\\:")+"{5}"+y),$=r(r(h)+"?\\:\\:"+r(h+"\\:")+"{4}"+y),b=r(r(r(h+"\\:")+"{0,1}"+h)+"?\\:\\:"+r(h+"\\:")+"{3}"+y),w=r(r(r(h+"\\:")+"{0,2}"+h)+"?\\:\\:"+r(h+"\\:")+"{2}"+y),S=r(r(r(h+"\\:")+"{0,3}"+h)+"?\\:\\:"+h+"\\:"+y),_=r(r(r(h+"\\:")+"{0,4}"+h)+"?\\:\\:"+y),x=r(r(r(h+"\\:")+"{0,5}"+h)+"?\\:\\:"+h),E=r(r(r(h+"\\:")+"{0,6}"+h)+"?\\:\\:"),k=r([g,v,$,b,w,S,_,x,E].join("|")),j=r(r(d+"|"+s)+"+"),C=(r(k+"\\%25"+j),r(k+r("\\%25|\\%(?!"+a+"{2})")+j)),P=r("[vV]"+a+"+\\."+t(d,i,"[\\:]")+"+"),O=r("\\["+r(C+"|"+k+"|"+P)+"\\]"),N=r(r(s+"|"+t(d,i))+"*"),A=r(O+"|"+m+"(?!"+N+")|"+N),D=r(o+"*"),I=r(r(f+"@")+"?"+A+r("\\:"+D)+"?"),F=r(s+"|"+t(d,i,"[\\:\\@]")),T=r(F+"*"),R=r(F+"+"),M=r(r(s+"|"+t(d,i,"[\\@]"))+"+"),U=r(r("\\/"+T)+"*"),V=r("\\/"+r(R+U)+"?"),B=r(M+U),q=r(R+U),z="(?!"+F+")",L=(r(U+"|"+V+"|"+B+"|"+q+"|"+z),r(r(F+"|"+t("[\\/\\?]",l))+"*")),K=r(r(F+"|[\\/\\?]")+"*"),W=r(r("\\/\\/"+I+U)+"|"+V+"|"+q+"|"+z),H=r(u+"\\:"+W+r("\\?"+L)+"?"+r("\\#"+K)+"?"),G=r(r("\\/\\/"+I+U)+"|"+V+"|"+B+"|"+z),Z=r(G+r("\\?"+L)+"?"+r("\\#"+K)+"?");return r(H+"|"+Z),r(u+"\\:"+W+r("\\?"+L)+"?"),r(r("\\/\\/("+r("("+f+")@")+"?("+A+")"+r("\\:("+D+")")+"?)")+"?("+U+"|"+V+"|"+q+"|"+z+")"),r("\\?("+L+")"),r("\\#("+K+")"),r(r("\\/\\/("+r("("+f+")@")+"?("+A+")"+r("\\:("+D+")")+"?)")+"?("+U+"|"+V+"|"+B+"|"+z+")"),r("\\?("+L+")"),r("\\#("+K+")"),r(r("\\/\\/("+r("("+f+")@")+"?("+A+")"+r("\\:("+D+")")+"?)")+"?("+U+"|"+V+"|"+q+"|"+z+")"),r("\\?("+L+")"),r("\\#("+K+")"),r("("+f+")@"),r("\\:("+D+")"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",d,i),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",d,i),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",d,i),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",d,i),"g"),NOT_QUERY:new RegExp(t("[^\\%]",d,i,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",d,i,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",d,i),"g"),UNRESERVED:new RegExp(d,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",d,c),"g"),PCT_ENCODED:new RegExp(s,"g"),IPV4ADDRESS:new RegExp("^("+m+")$"),IPV6ADDRESS:new RegExp("^\\[?("+k+")"+r(r("\\%25|\\%(?!"+a+"{2})")+"("+j+")")+"?\\]?$")}}var c=i(!1),l=i(!0),d=function(){function e(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var s,i=e[Symbol.iterator]();!(n=(s=i.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(c){o=!0,a=c}finally{try{!n&&i.return&&i.return()}finally{if(o)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},f=2147483647,p=36,m=1,h=26,y=38,g=700,v=72,$=128,b="-",w=/^xn--/,S=/[^\0-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=p-m,k=Math.floor,j=String.fromCharCode;function C(e){throw new RangeError(x[e])}function P(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function O(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+P((e=e.replace(_,".")).split("."),t).join(".")}function N(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),r--)}else t.push(o)}return t}var A=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},D=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},I=function(e,t,r){var n=0;for(e=r?k(e/g):e>>1,e+=k(e/t);e>E*h>>1;n+=p)e=k(e/E);return k(n+(E+1)*e/(e+y))},F=function(e){var t=[],r=e.length,n=0,o=$,a=v,s=e.lastIndexOf(b);s<0&&(s=0);for(var i=0;i<s;++i)e.charCodeAt(i)>=128&&C("not-basic"),t.push(e.charCodeAt(i));for(var c=s>0?s+1:0;c<r;){for(var l=n,d=1,u=p;;u+=p){c>=r&&C("invalid-input");var y=A(e.charCodeAt(c++));(y>=p||y>k((f-n)/d))&&C("overflow"),n+=y*d;var g=u<=a?m:u>=a+h?h:u-a;if(y<g)break;var w=p-g;d>k(f/w)&&C("overflow"),d*=w}var S=t.length+1;a=I(n-l,S,0==l),k(n/S)>f-o&&C("overflow"),o+=k(n/S),n%=S,t.splice(n++,0,o)}return String.fromCodePoint.apply(String,t)},T=function(e){var t=[],r=(e=N(e)).length,n=$,o=0,a=v,s=!0,i=!1,c=void 0;try{for(var l,d=e[Symbol.iterator]();!(s=(l=d.next()).done);s=!0){var u=l.value;u<128&&t.push(j(u))}}catch(W){i=!0,c=W}finally{try{!s&&d.return&&d.return()}finally{if(i)throw c}}var y=t.length,g=y;for(y&&t.push(b);g<r;){var w=f,S=!0,_=!1,x=void 0;try{for(var E,P=e[Symbol.iterator]();!(S=(E=P.next()).done);S=!0){var O=E.value;O>=n&&O<w&&(w=O)}}catch(W){_=!0,x=W}finally{try{!S&&P.return&&P.return()}finally{if(_)throw x}}var A=g+1;w-n>k((f-o)/A)&&C("overflow"),o+=(w-n)*A,n=w;var F=!0,T=!1,R=void 0;try{for(var M,U=e[Symbol.iterator]();!(F=(M=U.next()).done);F=!0){var V=M.value;if(V<n&&++o>f&&C("overflow"),V==n){for(var B=o,q=p;;q+=p){var z=q<=a?m:q>=a+h?h:q-a;if(B<z)break;var L=B-z,K=p-z;t.push(j(D(z+L%K,0))),B=k(L/K)}t.push(j(D(B,0))),a=I(o,A,g==y),o=0,++g}}}catch(W){T=!0,R=W}finally{try{!F&&U.return&&U.return()}finally{if(T)throw R}}++o,++n}return t.join("")},R=function(e){return O(e,(function(e){return w.test(e)?F(e.slice(4).toLowerCase()):e}))},M=function(e){return O(e,(function(e){return S.test(e)?"xn--"+T(e):e}))},U={version:"2.1.0",ucs2:{decode:N,encode:function(e){return String.fromCodePoint.apply(String,u(e))}},decode:F,encode:T,toASCII:M,toUnicode:R},V={};function B(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function q(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&a)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var s=parseInt(e.substr(r+4,2),16),i=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&s)<<6|63&i)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function z(e,t){function r(e){var r=q(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,B).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,B).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,B).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,B).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,B).replace(t.PCT_ENCODED,o)),e}function L(e){return e.replace(/^0*(.*)/,"$1")||"0"}function K(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=d(r,2)[1];return n?n.split(".").map(L).join("."):e}function W(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=d(r,3),o=n[1],a=n[2];if(o){for(var s=o.toLowerCase().split("::").reverse(),i=d(s,2),c=i[0],l=i[1],u=l?l.split(":").map(L):[],f=c.split(":").map(L),p=t.IPV4ADDRESS.test(f[f.length-1]),m=p?7:8,h=f.length-m,y=Array(m),g=0;g<m;++g)y[g]=u[g]||f[h+g]||"";p&&(y[m-1]=K(y[m-1],t));var v=y.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],$=void 0;if(v&&v.length>1){var b=y.slice(0,v.index),w=y.slice(v.index+v.length);$=b.join(":")+"::"+w.join(":")}else $=y.join(":");return a&&($+="%"+a),$}return e}var H=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,G=void 0==="".match(/(){0}/)[1];function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?l:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(H);if(o){G?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=W(K(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=V[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)z(r,n);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=U.toASCII(r.host.replace(n.PCT_ENCODED,q).toLowerCase())}catch(s){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+s}z(r,c)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function J(e,t){var r=!1!==t.iri?l:c,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(W(K(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!==typeof e.port&&"string"!==typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var Y=/^\.\.?\//,Q=/^\/\.(\/|$)/,X=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(Y))e=e.replace(Y,"");else if(e.match(Q))e=e.replace(Q,"/");else if(e.match(X))e=e.replace(X,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?l:c,n=[],o=V[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?U.toUnicode(e.host):U.toASCII(e.host.replace(r.PCT_ENCODED,q).toLowerCase())}catch(i){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+i}z(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var a=J(e,t);if(void 0!==a&&("suffix"!==t.reference&&n.push("//"),n.push(a),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var s=e.path;t.absolutePath||o&&o.absolutePath||(s=te(s)),void 0===a&&(s=s.replace(/^\/\//,"/%2F")),n.push(s)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=Z(re(e,r),r),t=Z(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function oe(e,t,r){var n=s({scheme:"null"},r);return re(ne(Z(e,n),Z(t,n),n,!0),n)}function ae(e,t){return"string"===typeof e?e=re(Z(e,t),t):"object"===n(e)&&(e=Z(re(e,t),t)),e}function se(e,t,r){return"string"===typeof e?e=re(Z(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"===typeof t?t=re(Z(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function ie(e,t){return e&&e.toString().replace(t&&t.iri?l.ESCAPE:c.ESCAPE,B)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?l.PCT_ENCODED:c.PCT_ENCODED,q)}var le={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},de={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function ue(e){return"boolean"===typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var fe={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=ue(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(ue(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){var r=e.resourceName.split("?"),n=d(r,2),o=n[0],a=n[1];e.path=o&&"/"!==o?o:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},pe={scheme:"wss",domainHost:fe.domainHost,parse:fe.parse,serialize:fe.serialize},me={},he="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ye="[0-9A-Fa-f]",ge=r(r("%[EFef]"+ye+"%"+ye+ye+"%"+ye+ye)+"|"+r("%[89A-Fa-f]"+ye+"%"+ye+ye)+"|"+r("%"+ye+ye)),ve="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",$e=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),be="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",we=new RegExp(he,"g"),Se=new RegExp(ge,"g"),_e=new RegExp(t("[^]",ve,"[\\.]",'[\\"]',$e),"g"),xe=new RegExp(t("[^]",he,be),"g"),Ee=xe;function ke(e){var t=q(e);return t.match(we)?t:e}var je={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var o=!1,a={},s=r.query.split("&"),i=0,c=s.length;i<c;++i){var l=s[i].split("=");switch(l[0]){case"to":for(var d=l[1].split(","),u=0,f=d.length;u<f;++u)n.push(d[u]);break;case"subject":r.subject=ce(l[1],t);break;case"body":r.body=ce(l[1],t);break;default:o=!0,a[ce(l[0],t)]=ce(l[1],t)}}o&&(r.headers=a)}r.query=void 0;for(var p=0,m=n.length;p<m;++p){var h=n[p].split("@");if(h[0]=ce(h[0]),t.unicodeSupport)h[1]=ce(h[1],t).toLowerCase();else try{h[1]=U.toASCII(ce(h[1],t).toLowerCase())}catch(y){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+y}n[p]=h.join("@")}return r},serialize:function(e,t){var r=e,n=a(e.to);if(n){for(var s=0,i=n.length;s<i;++s){var c=String(n[s]),l=c.lastIndexOf("@"),d=c.slice(0,l).replace(Se,ke).replace(Se,o).replace(_e,B),u=c.slice(l+1);try{u=t.iri?U.toUnicode(u):U.toASCII(ce(u,t).toLowerCase())}catch(h){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+h}n[s]=d+"@"+u}r.path=n.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var m in f)f[m]!==me[m]&&p.push(m.replace(Se,ke).replace(Se,o).replace(xe,B)+"="+f[m].replace(Se,ke).replace(Se,o).replace(Ee,B));return p.length&&(r.query=p.join("&")),r}},Ce=/^([^\:]+)\:(.*)/,Pe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Ce),n=e;if(r){var o=t.scheme||n.scheme||"urn",a=r[1].toLowerCase(),s=r[2],i=o+":"+(t.nid||a),c=V[i];n.nid=a,n.nss=s,n.path=void 0,c&&(n=c.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,o=r+":"+(t.nid||n),a=V[o];a&&(e=a.serialize(e,t));var s=e,i=e.nss;return s.path=(n||t.nid)+":"+i,s}},Oe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ne={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Oe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};V[le.scheme]=le,V[de.scheme]=de,V[fe.scheme]=fe,V[pe.scheme]=pe,V[je.scheme]=je,V[Pe.scheme]=Pe,V[Ne.scheme]=Ne,e.SCHEMES=V,e.pctEncChar=B,e.pctDecChars=q,e.parse=Z,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=oe,e.normalize=ae,e.equal=se,e.escapeComponent=ie,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(t)},7800:e=>{"use strict";e.exports=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},82986:e=>{"use strict";e.exports=function(e){return"function"===typeof e}},96552:(e,t,r)=>{"use strict";var n=r(7800),o=r(84356);e.exports=function(e){var t;if(!n(e))return!1;if(!(t=e.length))return!1;for(var r=0;r<t;r++)if(!o(e[r]))return!1;return!0}},84356:(e,t,r)=>{"use strict";var n=r(66415);e.exports=function(e){return n(e)&&e%1===0}},66415:e=>{"use strict";e.exports=function(e){return("number"===typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()===e.valueOf()}},63837: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}')},72079: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}')}}]);