@factorialco/fcode-react-forms 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/fcode-form/fcode-form.d.ts +14 -2
- package/dist/components/fcode-form/fcode-form.test.d.ts +1 -1
- package/dist/components/fcode-form/fcode-form.utils.d.ts +11 -3
- package/dist/components/json-schema-form/default-theme/templates/field-template.d.ts +2 -5
- package/dist/components/json-schema-form/markdown-content.d.ts +6 -0
- package/dist/fcode-form.cjs.js +95 -82
- package/dist/fcode-form.cjs.js.map +1 -1
- package/dist/fcode-form.es.js +28532 -27401
- package/dist/fcode-form.es.js.map +1 -1
- package/dist/fcode-form.umd.js +95 -82
- package/dist/fcode-form.umd.js.map +1 -1
- package/dist/services/fcode.d.ts +2 -2
- package/dist/styles.css +121 -0
- package/dist/types.d.ts +12 -0
- package/dist/utils/index.d.ts +0 -1
- package/package.json +3 -3
- package/dist/utils/sanitize-html.d.ts +0 -8
- /package/dist/{utils/sanitize-html.test.d.ts → components/json-schema-form/markdown-content.twin.test.d.ts} +0 -0
package/dist/fcode-form.cjs.js
CHANGED
|
@@ -1,36 +1,62 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u1(e,t){return o1(e)||l1(e,t)||f1(e,t)||c1()}function f1(e,t){if(e){if(typeof e=="string")return Am(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Am(e,t):void 0}}const jv=Object.entries,_m=Object.setPrototypeOf,d1=Object.isFrozen,m1=Object.getPrototypeOf,p1=Object.getOwnPropertyDescriptor;let Qt=Object.freeze,tr=Object.seal,ki=Object.create,Dv=typeof Reflect<"u"&&Reflect,wf=Dv.apply,Sf=Dv.construct;Qt||(Qt=function(t){return t});tr||(tr=function(t){return t});wf||(wf=function(t,r){for(var a=arguments.length,i=new Array(a>2?a-2:0),n=2;n<a;n++)i[n-2]=arguments[n];return t.apply(r,i)});Sf||(Sf=function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return new t(...a)});const fi=$t(Array.prototype.forEach),h1=$t(Array.prototype.lastIndexOf),Om=$t(Array.prototype.pop),di=$t(Array.prototype.push),g1=$t(Array.prototype.splice),sa=Array.isArray,ks=$t(String.prototype.toLowerCase),jc=$t(String.prototype.toString),Tm=$t(String.prototype.match),ss=$t(String.prototype.replace),Pm=$t(String.prototype.indexOf),y1=$t(String.prototype.trim),v1=$t(Number.prototype.toString),b1=$t(Boolean.prototype.toString),Im=typeof BigInt>"u"?null:$t(BigInt.prototype.toString),Rm=typeof Symbol>"u"?null:$t(Symbol.prototype.toString),Yt=$t(Object.prototype.hasOwnProperty),os=$t(Object.prototype.toString),Jt=$t(RegExp.prototype.test),Ia=k1(TypeError);function $t(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return wf(e,t,a)}}function k1(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return Sf(e,r)}}function Ze(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ks;if(_m&&_m(e,null),!sa(t))return e;let a=t.length;for(;a--;){let i=t[a];if(typeof i=="string"){const n=r(i);n!==i&&(d1(t)||(t[a]=n),i=n)}e[i]=!0}return e}function w1(e){for(let t=0;t<e.length;t++)Yt(e,t)||(e[t]=null);return e}function ur(e){const t=ki(null);for(const a of jv(e)){var r=u1(a,2);const i=r[0],n=r[1];Yt(e,i)&&(sa(n)?t[i]=w1(n):n&&typeof n=="object"&&n.constructor===Object?t[i]=ur(n):t[i]=n)}return t}function S1(e){switch(typeof e){case"string":return e;case"number":return v1(e);case"boolean":return b1(e);case"bigint":return Im?Im(e):"0";case"symbol":return Rm?Rm(e):"Symbol()";case"undefined":return os(e);case"function":case"object":{if(e===null)return os(e);const t=e,r=vn(t,"toString");if(typeof r=="function"){const a=r(t);return typeof a=="string"?a:os(a)}return os(e)}default:return os(e)}}function vn(e,t){for(;e!==null;){const a=p1(e,t);if(a){if(a.get)return $t(a.get);if(typeof a.value=="function")return $t(a.value)}e=m1(e)}function r(){return null}return r}function E1(e){try{return Jt(e,""),!0}catch{return!1}}const Nm=Qt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Dc=Qt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Fc=Qt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),x1=Qt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Mc=Qt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),C1=Qt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),jm=Qt(["#text"]),Dm=Qt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Lc=Qt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Fm=Qt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),So=Qt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),A1=tr(/{{[\w\W]*|^[\w\W]*}}/g),_1=tr(/<%[\w\W]*|^[\w\W]*%>/g),O1=tr(/\${[\w\W]*/g),T1=tr(/^data-[\-\w.\u00B7-\uFFFF]+$/),P1=tr(/^aria-[\-\w]+$/),Mm=tr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),I1=tr(/^(?:\w+script|data):/i),R1=tr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),N1=tr(/^html$/i),j1=tr(/^[a-z][.\w]*(-[.\w]+)+$/i),Lm=tr(/<[/\w!]/g),qm=tr(/<[/\w]/g),D1=tr(/<\/no(script|embed|frames)/i),F1=tr(/\/>/i),_r={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},M1=function(){return typeof window>"u"?null:window},L1=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(a=r.getAttribute(i));const n="dompurify"+(a?"#"+a:"");try{return t.createPolicy(n,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+n+" could not be created."),null}},zm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Zn=function(t,r,a,i){return Yt(t,r)&&sa(t[r])?Ze(i.base?ur(i.base):{},t[r],i.transform):a};function Fv(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:M1();const t=fe=>Fv(fe);if(t.version="3.4.12",t.removed=[],!e||!e.document||e.document.nodeType!==_r.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const a=r,i=a.currentScript;e.DocumentFragment;const n=e.HTMLTemplateElement,s=e.Node,o=e.Element,c=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,f=e.trustedTypes,m=o.prototype,d=vn(m,"cloneNode"),h=vn(m,"remove"),k=vn(m,"nextSibling"),v=vn(m,"childNodes"),y=vn(m,"parentNode"),b=vn(m,"shadowRoot"),w=vn(m,"attributes"),E=s&&s.prototype?vn(s.prototype,"nodeType"):null,p=s&&s.prototype?vn(s.prototype,"nodeName"):null;if(typeof n=="function"){const fe=r.createElement("template");fe.content&&fe.content.ownerDocument&&(r=fe.content.ownerDocument)}let g,S="",C,O=!1,_=0;const x=function(){if(_>0)throw Ia('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},A=function(L){x(),_++;try{return g.createHTML(L)}finally{_--}},N=function(L){x(),_++;try{return g.createScriptURL(L)}finally{_--}},I=function(){return O||(C=L1(f,i),O=!0),C},F=r,$=F.implementation,Y=F.createNodeIterator,Z=F.createDocumentFragment,ie=F.getElementsByTagName,P=a.importNode;let D=zm();t.isSupported=typeof jv=="function"&&typeof y=="function"&&$&&$.createHTMLDocument!==void 0;const U=A1,T=_1,R=O1,M=T1,B=P1,V=I1,K=R1,J=j1;let Q=Mm,q=null;const z=Ze({},[...Nm,...Dc,...Fc,...Mc,...jm]);let H=null;const G=Ze({},[...Dm,...Lc,...Fm,...So]);let te=Object.seal(ki(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ae=null,me=null;const ve=Object.seal(ki(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ce=!0,Se=!0,Re=!1,he=!0,je=!1,Ve=!0,be=!1,ee=!1,re=null,ne=null,we=!1,pe=!1,tt=!1,De=!1,Ke=!0,wt=!1;const Ot="user-content-";let rt=!0,bt=!1,nt={},Ht=null;const jr=Ze({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let xt=null;const pn=Ze({},["audio","video","img","source","image","track"]);let Gn=null;const Dr=Ze({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Fr="http://www.w3.org/1998/Math/MathML",Cr="http://www.w3.org/2000/svg",Dt="http://www.w3.org/1999/xhtml";let Ft=Dt,gr=!1,hn=null;const Nn=Ze({},[Fr,Cr,Dt],jc),yr=Qt(["mi","mo","mn","ms","mtext"]);let es=Ze({},yr);const fo=Qt(["annotation-xml"]);let gn=Ze({},fo);const sr=Ze({},["title","style","font","a","script"]);let Mr=null;const Oc=["application/xhtml+xml","text/html"],Tc="text/html";let Ct=null,Jn=null;const mo=r.createElement("form"),ts=function(L){return L instanceof RegExp||L instanceof Function},Oa=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Jn&&Jn===L)return;(!L||typeof L!="object")&&(L={}),L=ur(L),Mr=Oc.indexOf(L.PARSER_MEDIA_TYPE)===-1?Tc:L.PARSER_MEDIA_TYPE,Ct=Mr==="application/xhtml+xml"?jc:ks,q=Zn(L,"ALLOWED_TAGS",z,{transform:Ct}),H=Zn(L,"ALLOWED_ATTR",G,{transform:Ct}),hn=Zn(L,"ALLOWED_NAMESPACES",Nn,{transform:jc}),Gn=Zn(L,"ADD_URI_SAFE_ATTR",Dr,{transform:Ct,base:Dr}),xt=Zn(L,"ADD_DATA_URI_TAGS",pn,{transform:Ct,base:pn}),Ht=Zn(L,"FORBID_CONTENTS",jr,{transform:Ct}),ae=Zn(L,"FORBID_TAGS",ur({}),{transform:Ct}),me=Zn(L,"FORBID_ATTR",ur({}),{transform:Ct}),nt=Yt(L,"USE_PROFILES")?L.USE_PROFILES&&typeof L.USE_PROFILES=="object"?ur(L.USE_PROFILES):L.USE_PROFILES:!1,Ce=L.ALLOW_ARIA_ATTR!==!1,Se=L.ALLOW_DATA_ATTR!==!1,Re=L.ALLOW_UNKNOWN_PROTOCOLS||!1,he=L.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=L.SAFE_FOR_TEMPLATES||!1,Ve=L.SAFE_FOR_XML!==!1,be=L.WHOLE_DOCUMENT||!1,pe=L.RETURN_DOM||!1,tt=L.RETURN_DOM_FRAGMENT||!1,De=L.RETURN_TRUSTED_TYPE||!1,we=L.FORCE_BODY||!1,Ke=L.SANITIZE_DOM!==!1,wt=L.SANITIZE_NAMED_PROPS||!1,rt=L.KEEP_CONTENT!==!1,bt=L.IN_PLACE||!1,Q=E1(L.ALLOWED_URI_REGEXP)?L.ALLOWED_URI_REGEXP:Mm,Ft=typeof L.NAMESPACE=="string"?L.NAMESPACE:Dt,es=Yt(L,"MATHML_TEXT_INTEGRATION_POINTS")&&L.MATHML_TEXT_INTEGRATION_POINTS&&typeof L.MATHML_TEXT_INTEGRATION_POINTS=="object"?ur(L.MATHML_TEXT_INTEGRATION_POINTS):Ze({},yr),gn=Yt(L,"HTML_INTEGRATION_POINTS")&&L.HTML_INTEGRATION_POINTS&&typeof L.HTML_INTEGRATION_POINTS=="object"?ur(L.HTML_INTEGRATION_POINTS):Ze({},fo);const X=Yt(L,"CUSTOM_ELEMENT_HANDLING")&&L.CUSTOM_ELEMENT_HANDLING&&typeof L.CUSTOM_ELEMENT_HANDLING=="object"?ur(L.CUSTOM_ELEMENT_HANDLING):ki(null);if(te=ki(null),Yt(X,"tagNameCheck")&&ts(X.tagNameCheck)&&(te.tagNameCheck=X.tagNameCheck),Yt(X,"attributeNameCheck")&&ts(X.attributeNameCheck)&&(te.attributeNameCheck=X.attributeNameCheck),Yt(X,"allowCustomizedBuiltInElements")&&typeof X.allowCustomizedBuiltInElements=="boolean"&&(te.allowCustomizedBuiltInElements=X.allowCustomizedBuiltInElements),tr(te),je&&(Se=!1),tt&&(pe=!0),nt&&(q=Ze({},jm),H=ki(null),nt.html===!0&&(Ze(q,Nm),Ze(H,Dm)),nt.svg===!0&&(Ze(q,Dc),Ze(H,Lc),Ze(H,So)),nt.svgFilters===!0&&(Ze(q,Fc),Ze(H,Lc),Ze(H,So)),nt.mathMl===!0&&(Ze(q,Mc),Ze(H,Fm),Ze(H,So))),ve.tagCheck=null,ve.attributeCheck=null,Yt(L,"ADD_TAGS")&&(typeof L.ADD_TAGS=="function"?ve.tagCheck=L.ADD_TAGS:sa(L.ADD_TAGS)&&(q===z&&(q=ur(q)),Ze(q,L.ADD_TAGS,Ct))),Yt(L,"ADD_ATTR")&&(typeof L.ADD_ATTR=="function"?ve.attributeCheck=L.ADD_ATTR:sa(L.ADD_ATTR)&&(H===G&&(H=ur(H)),Ze(H,L.ADD_ATTR,Ct))),Yt(L,"ADD_URI_SAFE_ATTR")&&sa(L.ADD_URI_SAFE_ATTR)&&Ze(Gn,L.ADD_URI_SAFE_ATTR,Ct),Yt(L,"FORBID_CONTENTS")&&sa(L.FORBID_CONTENTS)&&(Ht===jr&&(Ht=ur(Ht)),Ze(Ht,L.FORBID_CONTENTS,Ct)),Yt(L,"ADD_FORBID_CONTENTS")&&sa(L.ADD_FORBID_CONTENTS)&&(Ht===jr&&(Ht=ur(Ht)),Ze(Ht,L.ADD_FORBID_CONTENTS,Ct)),rt&&(q["#text"]=!0),be&&Ze(q,["html","head","body"]),q.table&&(Ze(q,["tbody"]),delete ae.tbody),L.TRUSTED_TYPES_POLICY){if(typeof L.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ia('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof L.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ia('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const le=g;g=L.TRUSTED_TYPES_POLICY;try{S=A("")}catch(ge){throw g=le,ge}}else L.TRUSTED_TYPES_POLICY===null?(g=void 0,S=""):(g===void 0&&(g=I()),g&&typeof S=="string"&&(S=A("")));Qt&&Qt(L),Jn=L},po=Ze({},[...Dc,...Fc,...x1]),ho=Ze({},[...Mc,...C1]),go=function(L,X,le){return X.namespaceURI===Dt?L==="svg":X.namespaceURI===Fr?L==="svg"&&(le==="annotation-xml"||es[le]):!!po[L]},Pc=function(L,X,le){return X.namespaceURI===Dt?L==="math":X.namespaceURI===Cr?L==="math"&&gn[le]:!!ho[L]},Ic=function(L,X,le){return X.namespaceURI===Cr&&!gn[le]||X.namespaceURI===Fr&&!es[le]?!1:!ho[L]&&(sr[L]||!po[L])},Rc=function(L){let X=y(L);(!X||!X.tagName)&&(X={namespaceURI:Ft,tagName:"template"});const le=ks(L.tagName),ge=ks(X.tagName);return hn[L.namespaceURI]?L.namespaceURI===Cr?go(le,X,ge):L.namespaceURI===Fr?Pc(le,X,ge):L.namespaceURI===Dt?Ic(le,X,ge):!!(Mr==="application/xhtml+xml"&&hn[L.namespaceURI]):!1},vr=function(L){di(t.removed,{element:L});try{y(L).removeChild(L)}catch{if(h(L),!y(L))throw Ia("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},or=function(L){Yn(L);const X=v(L);if(X){const ge=[];fi(X,Ee=>{di(ge,Ee)}),fi(ge,Ee=>{try{h(Ee)}catch{}})}const le=w(L);if(le)for(let ge=le.length-1;ge>=0;--ge){const Ee=le[ge],_e=Ee&&Ee.name;if(typeof _e=="string")try{L.removeAttribute(_e)}catch{}}},yn=function(L,X){try{di(t.removed,{attribute:X.getAttributeNode(L),from:X})}catch{di(t.removed,{attribute:null,from:X})}if(X.removeAttribute(L),L==="is")if(pe||tt)try{vr(X)}catch{}else try{X.setAttribute(L,"")}catch{}},yo=function(L){const X=w(L);if(X)for(let le=X.length-1;le>=0;--le){const ge=X[le],Ee=ge&&ge.name;if(!(typeof Ee!="string"||H[Ct(Ee)]))try{L.removeAttribute(Ee)}catch{}}},Yn=function(L){const X=[L];for(;X.length>0;){const le=X.pop();(E?E(le):le.nodeType)===_r.element&&yo(le);const Ee=v(le);if(Ee)for(let _e=Ee.length-1;_e>=0;--_e)X.push(Ee[_e])}},rs=function(L){if(!Ve)return;const X=[L];for(;X.length>0;){const le=X.pop(),ge=E?E(le):le.nodeType;if(ge===_r.processingInstruction||ge===_r.comment&&Jt(qm,le.data)){try{h(le)}catch{}continue}if(ge===_r.element){const _e=le,Tt=Ct(p?p(le):le.nodeName);try{_e.hasAttribute&&_e.hasAttribute("patchsrc")&&_e.removeAttribute("patchsrc"),_e.hasAttribute&&_e.hasAttribute("for")&&Tt!=="label"&&Tt!=="output"&&_e.removeAttribute("for")}catch{}}const Ee=v(le);if(Ee)for(let _e=Ee.length-1;_e>=0;--_e)X.push(Ee[_e])}},ns=function(L){let X=null,le=null;if(we)L="<remove></remove>"+L;else{const _e=Tm(L,/^[\r\n\t ]+/);le=_e&&_e[0]}Mr==="application/xhtml+xml"&&Ft===Dt&&(L='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+L+"</body></html>");const ge=g?A(L):L;if(Ft===Dt)try{X=new u().parseFromString(ge,Mr)}catch{}if(!X||!X.documentElement){X=$.createDocument(Ft,"template",null);try{X.documentElement.innerHTML=gr?S:ge}catch{}}const Ee=X.body||X.documentElement;return L&&le&&Ee.insertBefore(r.createTextNode(le),Ee.childNodes[0]||null),Ft===Dt?ie.call(X,be?"html":"body")[0]:be?X.documentElement:Ee},oi=function(L){return Y.call(L.ownerDocument||L,L,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ta=function(L){return L=ss(L,U," "),L=ss(L,T," "),L=ss(L,R," "),L},li=function(L){var X;L.normalize();const le=Y.call(L.ownerDocument||L,L,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let ge=le.nextNode();for(;ge;)ge.data=Ta(ge.data),ge=le.nextNode();const Ee=(X=L.querySelectorAll)===null||X===void 0?void 0:X.call(L,"template");Ee&&fi(Ee,_e=>{Xn(_e.content)&&li(_e.content)})},jn=function(L){const X=p?p(L):null;return typeof X!="string"||Ct(X)!=="form"?!1:typeof L.nodeName!="string"||typeof L.textContent!="string"||typeof L.removeChild!="function"||L.attributes!==w(L)||typeof L.removeAttribute!="function"||typeof L.setAttribute!="function"||typeof L.namespaceURI!="string"||typeof L.insertBefore!="function"||typeof L.hasChildNodes!="function"||L.nodeType!==E(L)||L.childNodes!==v(L)},Xn=function(L){if(!E||typeof L!="object"||L===null)return!1;try{return E(L)===_r.documentFragment}catch{return!1}},Dn=function(L){if(!E||typeof L!="object"||L===null)return!1;try{return typeof E(L)=="number"}catch{return!1}};function br(fe,L,X){fe.length!==0&&fi(fe,le=>{le.call(t,L,X,Jn)})}const vo=function(L,X){return!!(Ve&&L.hasChildNodes()&&!Dn(L.firstElementChild)&&Jt(Lm,L.textContent)&&Jt(Lm,L.innerHTML)||Ve&&L.namespaceURI===Dt&&X==="style"&&Dn(L.firstElementChild)||L.nodeType===_r.processingInstruction||Ve&&L.nodeType===_r.comment&&Jt(qm,L.data))},bo=function(L,X){if(!ae[X]&&Zr(X)&&(te.tagNameCheck instanceof RegExp&&Jt(te.tagNameCheck,X)||te.tagNameCheck instanceof Function&&te.tagNameCheck(X)))return!1;if(rt&&!Ht[X]){const le=y(L),ge=v(L);if(ge&&le){const Ee=ge.length;for(let _e=Ee-1;_e>=0;--_e){const Tt=bt?ge[_e]:d(ge[_e],!0);le.insertBefore(Tt,k(L))}}}return vr(L),!0},Pa=function(L,X){if(br(D.beforeSanitizeElements,L,null),L!==X&&y(L)===null)return!0;if(jn(L))return vr(L),!0;const le=Ct(p?p(L):L.nodeName);if(br(D.uponSanitizeElement,L,{tagName:le,allowedTags:q}),L!==X&&y(L)===null)return!0;if(vo(L,le))return vr(L),!0;if(ae[le]||!(ve.tagCheck instanceof Function&&ve.tagCheck(le))&&!q[le]){const Ee=bo(L,le);return Ee===!1&&br(D.afterSanitizeElements,L,null),Ee}if((E?E(L):L.nodeType)===_r.element&&!Rc(L)||(le==="noscript"||le==="noembed"||le==="noframes")&&Jt(D1,L.innerHTML))return vr(L),!0;if(je&&L.nodeType===_r.text){const Ee=Ta(L.textContent);L.textContent!==Ee&&(di(t.removed,{element:L.cloneNode()}),L.textContent=Ee)}return br(D.afterSanitizeElements,L,null),!1},ci=function(L,X,le){if(me[X]||Ve&&X==="patchsrc"||Ve&&X==="for"&&L!=="label"&&L!=="output"||Ke&&(X==="id"||X==="name")&&(le in r||le in mo))return!1;const ge=H[X]||ve.attributeCheck instanceof Function&&ve.attributeCheck(X,L);if(!(Se&&Jt(M,X))){if(!(Ce&&Jt(B,X))){if(ge){if(!Gn[X]){if(!Jt(Q,ss(le,K,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&L!=="script"&&Pm(le,"data:")===0&&xt[L])){if(!(Re&&!Jt(V,ss(le,K,"")))){if(le)return!1}}}}}else if(!(Zr(L)&&(te.tagNameCheck instanceof RegExp&&Jt(te.tagNameCheck,L)||te.tagNameCheck instanceof Function&&te.tagNameCheck(L))&&(te.attributeNameCheck instanceof RegExp&&Jt(te.attributeNameCheck,X)||te.attributeNameCheck instanceof Function&&te.attributeNameCheck(X,L))||X==="is"&&te.allowCustomizedBuiltInElements&&(te.tagNameCheck instanceof RegExp&&Jt(te.tagNameCheck,le)||te.tagNameCheck instanceof Function&&te.tagNameCheck(le))))return!1}}return!0},Wt=Ze({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Zr=function(L){return!Wt[ks(L)]&&Jt(J,L)},as=function(L,X,le,ge){if(g&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!le)switch(f.getAttributeType(L,X)){case"TrustedHTML":return A(ge);case"TrustedScriptURL":return N(ge)}return ge},ko=function(L,X,le,ge){try{le?L.setAttributeNS(le,X,ge):L.setAttribute(X,ge),jn(L)?vr(L):Om(t.removed)}catch{yn(X,L)}},ui=function(L){br(D.beforeSanitizeAttributes,L,null);const X=L.attributes;if(!X||jn(L))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H,forceKeepAttr:void 0};let ge=X.length;const Ee=Ct(L.nodeName);for(;ge--;){const _e=X[ge],Tt=_e.name,Kt=_e.namespaceURI,Ar=_e.value,rr=Ct(Tt),kr=Ar;let Gt=Tt==="value"?kr:y1(kr);if(le.attrName=rr,le.attrValue=Gt,le.keepAttr=!0,le.forceKeepAttr=void 0,br(D.uponSanitizeAttribute,L,le),Gt=le.attrValue,wt&&(rr==="id"||rr==="name")&&Pm(Gt,Ot)!==0&&(yn(Tt,L),Gt=Ot+Gt),Ve&&Jt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Gt)){yn(Tt,L);continue}if(rr==="attributename"&&Tm(Gt,"href")){yn(Tt,L);continue}if(!le.forceKeepAttr){if(!le.keepAttr){yn(Tt,L);continue}if(!he&&Jt(F1,Gt)){yn(Tt,L);continue}if(je&&(Gt=Ta(Gt)),!ci(Ee,rr,Gt)){yn(Tt,L);continue}Gt=as(Ee,rr,Kt,Gt),Gt!==kr&&ko(L,Tt,Kt,Gt)}}br(D.afterSanitizeAttributes,L,null)},Qr=function(L){let X=null;const le=oi(L);for(br(D.beforeSanitizeShadowDOM,L,null);X=le.nextNode();)if(br(D.uponSanitizeShadowNode,X,null),Pa(X,L),ui(X),Xn(X.content)&&Qr(X.content),(E?E(X):X.nodeType)===_r.element){const Ee=b(X);Xn(Ee)&&(Fn(Ee),Qr(Ee))}br(D.afterSanitizeShadowDOM,L,null)},Fn=function(L){const X=[{node:L,shadow:null}];for(;X.length>0;){const le=X.pop();if(le.shadow){Qr(le.shadow);continue}const ge=le.node,_e=(E?E(ge):ge.nodeType)===_r.element,Tt=v(ge);if(Tt)for(let Kt=Tt.length-1;Kt>=0;--Kt)X.push({node:Tt[Kt],shadow:null});if(_e){const Kt=p?p(ge):null;if(typeof Kt=="string"&&Ct(Kt)==="template"){const Ar=ge.content;Xn(Ar)&&X.push({node:Ar,shadow:null})}}if(_e){const Kt=b(ge);Xn(Kt)&&X.push({node:null,shadow:Kt},{node:Kt,shadow:null})}}};return t.sanitize=function(fe){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,le=null,ge=null,Ee=null;if(gr=!fe,gr&&(fe="<!-->"),typeof fe!="string"&&!Dn(fe)&&(fe=S1(fe),typeof fe!="string"))throw Ia("dirty is not a string, aborting");if(!t.isSupported)return fe;ee?(q=re,H=ne):Oa(L),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(q=ur(q)),D.uponSanitizeAttribute.length>0&&(H=ur(H)),t.removed=[];const _e=bt&&typeof fe!="string"&&Dn(fe);if(_e){rs(fe);const rr=p?p(fe):fe.nodeName;if(typeof rr=="string"){const kr=Ct(rr);if(!q[kr]||ae[kr])throw or(fe),Ia("root node is forbidden and cannot be sanitized in-place")}if(jn(fe))throw or(fe),Ia("root node is clobbered and cannot be sanitized in-place");try{Fn(fe)}catch(kr){throw or(fe),kr}}else if(Dn(fe))X=ns("<!---->"),le=X.ownerDocument.importNode(fe,!0),le.nodeType===_r.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?X=le:X.appendChild(le),Fn(le);else{if(!pe&&!je&&!be&&fe.indexOf("<")===-1)return g&&De?A(fe):fe;if(X=ns(fe),!X)return pe?null:De?S:""}X&&we&&vr(X.firstChild);const Tt=_e?fe:X,Kt=oi(Tt);try{for(;ge=Kt.nextNode();)Pa(ge,Tt),ui(ge),Xn(ge.content)&&Qr(ge.content)}catch(rr){throw _e&&(or(fe),fi(t.removed,kr=>{kr.element&&Yn(kr.element)})),rr}if(_e)return fi(t.removed,rr=>{rr.element&&Yn(rr.element)}),je&&li(fe),fe;if(pe){if(je&&li(X),tt)for(Ee=Z.call(X.ownerDocument);X.firstChild;)Ee.appendChild(X.firstChild);else Ee=X;return(H.shadowroot||H.shadowrootmode)&&(Ee=P.call(a,Ee,!0)),Ee}let Ar=be?X.outerHTML:X.innerHTML;return be&&q["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Jt(N1,X.ownerDocument.doctype.name)&&(Ar="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
|
|
3
|
-
`+Ar),je&&(Ar=Ta(Ar)),g&&De?A(Ar):Ar},t.setConfig=function(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Oa(fe),ee=!0,re=q,ne=H},t.clearConfig=function(){Jn=null,ee=!1,re=null,ne=null,g=C,S=""},t.isValidAttribute=function(fe,L,X){Jn||Oa({});const le=Ct(fe),ge=Ct(L);return ci(le,ge,X)},t.addHook=function(fe,L){typeof L=="function"&&Yt(D,fe)&&di(D[fe],L)},t.removeHook=function(fe,L){if(Yt(D,fe)){if(L!==void 0){const X=h1(D[fe],L);return X===-1?void 0:g1(D[fe],X,1)[0]}return Om(D[fe])}},t.removeHooks=function(fe){Yt(D,fe)&&(D[fe]=[])},t.removeAllHooks=function(){D=zm()},t}var jl=Fv();const q1=["script","iframe","object","embed","base","form"],z1=["srcdoc","formaction"];jl.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noreferrer")});const $1=(e,t)=>jl.removed.length>0||t===""&&e.trim()!=="";function gd(e){const t=jl.sanitize(e,{USE_PROFILES:{html:!0},FORBID_TAGS:q1,FORBID_ATTR:z1,ADD_ATTR:["target"]});return $1(e,t)&&console.warn("Factorial Code forms: removed unsafe HTML while rendering authored content. Scripts, event handlers and javascript: URLs are not executed — use the onSuccess/onNextStep/onError callbacks for behaviour.",jl.removed),t}const U1="Fcode-Version-Tag",B1="Fcode-Locale",Mv=e=>e?{[U1]:e}:{},Lv=e=>e?{[B1]:e}:{},V1=async({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n})=>{const s={...t,...Mv(i),...Lv(n)},o=await fetch(Rv(e,r,a),{cache:"force-cache",...Object.keys(s).length>0&&{headers:s}}),c=await o.json();if(o.status===404)throw new Error("Process form specs couldn't be loaded. Have you enabled the form? Review documentation at https://code.factorialhr.com/docs/forms/");if(o.ok)return c;throw c},H1=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,W1=e=>{const t=H1.exec(e);if(!t)return null;const[,r="application/octet-stream",a="file",i]=t,s=e.includes(";base64,")?Uint8Array.from(atob(i),o=>o.charCodeAt(0)):new TextEncoder().encode(decodeURIComponent(i));return{mime:r,name:a,blob:new Blob([s],{type:r})}},K1=e=>{const t={...e},r=[];for(const[a,i]of Object.entries(e))if(i instanceof File)r.push({key:a,file:i}),delete t[a];else if(typeof i=="string"&&i.startsWith("data:")){const n=W1(i);n&&(r.push({key:a,file:new File([n.blob],n.name,{type:n.mime})}),delete t[a])}return{sanitized:t,files:r}},G1=async({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,async:n,locale:s,formData:o})=>{const{sanitized:c,files:l}=K1(o),u=Rv(e,r,a),f={"Fcode-Async":n?"true":"false"},m=Mv(i),d=Lv(s);let h;if(l.length>0){const v=new globalThis.FormData;v.append("parameters",JSON.stringify(c));for(const{key:b,file:w}of l)v.append(b,w,w.name);const y={...t,...f,...m,...d};delete y["Content-Type"],delete y["content-type"],h=await fetch(u,{headers:y,method:"POST",body:v})}else h=await fetch(u,{headers:{...t,"Content-Type":"application/json",...f,...m,...d},method:"POST",body:JSON.stringify(o)});let k={};try{const v=await h.text();v.length&&(k=JSON.parse(v))}catch(v){throw console.error("Unexpected error parsing response",v),v}if(h.ok)return k;throw k},J1=({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n,async:s=!1})=>{const[o,c]=W.useState(!1),[l,u]=W.useState(void 0),[f,m]=W.useState(void 0),[d,h]=W.useState(void 0),k=W.useCallback(()=>{c(!1),u(void 0),h(void 0),m(void 0)},[]);return[W.useCallback(async y=>{try{m(y),c(!0);const b=await G1({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n,async:s,formData:y});return c(!1),u(b),b}catch(b){throw h(b),c(!1),b}},[e,t,r,a,i,n,s]),{loading:o,results:l,error:d,formData:f,reset:k}]},Y1=({hostUrl:e,headers:t,team:r,processId:a,processVersion:i,locale:n})=>{const[s,o]=W.useState(!0),[c,l]=W.useState(),[u,f]=W.useState(),m=JSON.stringify(t??null),d=W.useMemo(()=>t,[m]);return W.useEffect(()=>{let h=!1;return o(!0),f(void 0),V1({hostUrl:e,headers:d,team:r,processId:a,processVersion:i,locale:n}).then(k=>{h||l(k)}).catch(k=>{h||f(k)}).finally(()=>{h||o(!1)}),()=>{h=!0}},[e,d,r,a,i,n]),{loading:s,formSpecs:c,error:u}},X1=e=>s1(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),Z1=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},Q1=e=>{if(Z1(e))return;const t=document.createElement("link");return t.href=e,t.type="text/css",t.rel="stylesheet",t.media="screen,print",document.head.appendChild(t),t},ew=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function tw({stylesheets:e}){W.useEffect(()=>{const t=e.map(r=>X1(r)?Q1(r):ew(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function qv(e){const{stylesheet:t,stylesheetBaseUrl:r="https://code.factorialhr.com/sdk",theme:a,themeStylesheet:i}=e,n=W.useMemo(()=>{if(t)return[t];if(a==="none")return[];const s=[`${r}/styles.css`];return i?s.push(i):a&&s.push(`${r}/styles-theme-${a}.css`),s},[t,r,a,i]);tw({stylesheets:n})}function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},Dl.apply(null,arguments)}function zv(e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function Ef(e,t){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ef(e,t)}function $v(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ef(e,t)}function Pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eo={exports:{}},xo={exports:{}},ct={};/** @license React v16.13.1
|
|
1
|
+
"use strict";var f0=Object.defineProperty;var d0=(e,t,r)=>t in e?f0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var $t=(e,t,r)=>d0(e,typeof t!="symbol"?t+"":t,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const N=require("react/jsx-runtime"),V=require("react"),Os=require("react-dom");function m0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const tn=m0(V),Xy=(e,t,r)=>`${e}/api/${t}/forms/${r}`,Zy=()=>Math.random().toString(36).substring(2,10),p0=e=>!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e),h0="Fcode-Version-Tag",g0="Fcode-Locale",em="Fcode-Resolved-Files",Qy=e=>e?{[h0]:e}:{},ev=e=>e?{[g0]:e}:{},y0=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n})=>{const s={...t,...Qy(a),...ev(n)},o=await fetch(Xy(e,r,i),{cache:"force-cache",...Object.keys(s).length>0&&{headers:s}}),l=await o.json();if(o.status===404)throw new Error("Process form specs couldn't be loaded. Have you enabled the form? Review documentation at https://code.factorialhr.com/docs/forms/");if(o.ok)return l;throw l},v0=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,b0=e=>{const t=v0.exec(e);if(!t)return null;const[,r="application/octet-stream",i="file",a]=t,s=e.includes(";base64,")?Uint8Array.from(atob(a),o=>o.charCodeAt(0)):new TextEncoder().encode(decodeURIComponent(a));return{mime:r,name:i,blob:new Blob([s],{type:r})}},k0=e=>{const t={...e},r=[];for(const[i,a]of Object.entries(e))if(a instanceof File)r.push({key:i,file:a}),delete t[i];else if(typeof a=="string"&&a.startsWith("data:")){const n=b0(a);n&&(r.push({key:i,file:new File([n.blob],n.name,{type:n.mime})}),delete t[i])}return{sanitized:t,files:r}},w0=e=>{var r,i;const t=(i=(r=e.headers)==null?void 0:r.get)==null?void 0:i.call(r,em);if(t)try{const a=JSON.parse(t);if(a&&typeof a=="object"&&!Array.isArray(a))return a}catch(a){console.error(`Unexpected ${em} header`,a)}},x0=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,async:n,locale:s,formData:o})=>{const{sanitized:l,files:u}=k0(o),c=Xy(e,r,i),f={"Fcode-Async":n?"true":"false"},m=Qy(a),d=ev(s);let p;if(u.length>0){const k=new globalThis.FormData;k.append("parameters",JSON.stringify(l));for(const{key:v,file:w}of u)k.append(v,w,w.name);const g={...t,...f,...m,...d};delete g["Content-Type"],delete g["content-type"],p=await fetch(c,{headers:g,method:"POST",body:k})}else p=await fetch(c,{headers:{...t,"Content-Type":"application/json",...f,...m,...d},method:"POST",body:JSON.stringify(o)});let b={};try{const k=await p.text();k.length&&(b=JSON.parse(k))}catch(k){throw console.error("Unexpected error parsing response",k),k}if(p.ok)return{results:b,resolvedFiles:w0(p)};throw b},S0=({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:s=!1})=>{const[o,l]=V.useState(!1),[u,c]=V.useState(void 0),[f,m]=V.useState(void 0),[d,p]=V.useState(void 0),b=V.useCallback(()=>{l(!1),c(void 0),p(void 0),m(void 0)},[]);return[V.useCallback(async g=>{try{m(g),l(!0);const v=await x0({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:s,formData:g});return l(!1),c(v.results),v}catch(v){throw p(v),l(!1),v}},[e,t,r,i,a,n,s]),{loading:o,results:u,error:d,formData:f,reset:b}]},C0=({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n})=>{const[s,o]=V.useState(!0),[l,u]=V.useState(),[c,f]=V.useState(),m=JSON.stringify(t??null),d=V.useMemo(()=>t,[m]);return V.useEffect(()=>{let p=!1;return o(!0),f(void 0),y0({hostUrl:e,headers:d,team:r,processId:i,processVersion:a,locale:n}).then(b=>{p||u(b)}).catch(b=>{p||f(b)}).finally(()=>{p||o(!1)}),()=>{p=!0}},[e,d,r,i,a,n]),{loading:s,formSpecs:l,error:c}},E0=e=>p0(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),A0=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},O0=e=>{if(A0(e))return;const t=document.createElement("link");return t.href=e,t.type="text/css",t.rel="stylesheet",t.media="screen,print",document.head.appendChild(t),t},_0=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function P0({stylesheets:e}){V.useEffect(()=>{const t=e.map(r=>E0(r)?O0(r):_0(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function tv(e){const{stylesheet:t,stylesheetBaseUrl:r="https://code.factorialhr.com/sdk",theme:i,themeStylesheet:a}=e,n=V.useMemo(()=>{if(t)return[t];if(i==="none")return[];const s=[`${r}/styles.css`];return a?s.push(a):i&&s.push(`${r}/styles-theme-${i}.css`),s},[t,r,i,a]);P0({stylesheets:n})}function Uo(){return Uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Uo.apply(null,arguments)}function rv(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function Rc(e,t){return Rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Rc(e,t)}function nv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rc(e,t)}function Wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _s={exports:{}},Ps={exports:{}},Ze={};/** @license React v16.13.1
|
|
4
2
|
* react-is.production.min.js
|
|
5
3
|
*
|
|
6
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
5
|
*
|
|
8
6
|
* This source code is licensed under the MIT license found in the
|
|
9
7
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var
|
|
8
|
+
*/var tm;function I0(){if(tm)return Ze;tm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function w(h){if(typeof h=="object"&&h!==null){var y=h.$$typeof;switch(y){case t:switch(h=h.type,h){case l:case u:case i:case n:case a:case f:return h;default:switch(h=h&&h.$$typeof,h){case o:case c:case p:case d:case s:return h;default:return y}}case r:return y}}}function C(h){return w(h)===u}return Ze.AsyncMode=l,Ze.ConcurrentMode=u,Ze.ContextConsumer=o,Ze.ContextProvider=s,Ze.Element=t,Ze.ForwardRef=c,Ze.Fragment=i,Ze.Lazy=p,Ze.Memo=d,Ze.Portal=r,Ze.Profiler=n,Ze.StrictMode=a,Ze.Suspense=f,Ze.isAsyncMode=function(h){return C(h)||w(h)===l},Ze.isConcurrentMode=C,Ze.isContextConsumer=function(h){return w(h)===o},Ze.isContextProvider=function(h){return w(h)===s},Ze.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},Ze.isForwardRef=function(h){return w(h)===c},Ze.isFragment=function(h){return w(h)===i},Ze.isLazy=function(h){return w(h)===p},Ze.isMemo=function(h){return w(h)===d},Ze.isPortal=function(h){return w(h)===r},Ze.isProfiler=function(h){return w(h)===n},Ze.isStrictMode=function(h){return w(h)===a},Ze.isSuspense=function(h){return w(h)===f},Ze.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===i||h===u||h===n||h===a||h===f||h===m||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===d||h.$$typeof===s||h.$$typeof===o||h.$$typeof===c||h.$$typeof===k||h.$$typeof===g||h.$$typeof===v||h.$$typeof===b)},Ze.typeOf=w,Ze}var Qe={};/** @license React v16.13.1
|
|
11
9
|
* react-is.development.js
|
|
12
10
|
*
|
|
13
11
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
12
|
*
|
|
15
13
|
* This source code is licensed under the MIT license found in the
|
|
16
14
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
15
|
+
*/var rm;function T0(){return rm||(rm=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function w(L){return typeof L=="string"||typeof L=="function"||L===i||L===u||L===n||L===a||L===f||L===m||typeof L=="object"&&L!==null&&(L.$$typeof===p||L.$$typeof===d||L.$$typeof===s||L.$$typeof===o||L.$$typeof===c||L.$$typeof===k||L.$$typeof===g||L.$$typeof===v||L.$$typeof===b)}function C(L){if(typeof L=="object"&&L!==null){var W=L.$$typeof;switch(W){case t:var K=L.type;switch(K){case l:case u:case i:case n:case a:case f:return K;default:var ie=K&&K.$$typeof;switch(ie){case o:case c:case p:case d:case s:return ie;default:return W}}case r:return W}}}var h=l,y=u,S=o,A=s,_=t,x=c,E=i,O=p,j=d,T=r,F=n,q=a,J=f,Y=!1;function te(L){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),P(L)||C(L)===l}function P(L){return C(L)===u}function D(L){return C(L)===o}function U(L){return C(L)===s}function I(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function R(L){return C(L)===c}function M(L){return C(L)===i}function z(L){return C(L)===p}function B(L){return C(L)===d}function H(L){return C(L)===r}function G(L){return C(L)===n}function X(L){return C(L)===a}function $(L){return C(L)===f}Qe.AsyncMode=h,Qe.ConcurrentMode=y,Qe.ContextConsumer=S,Qe.ContextProvider=A,Qe.Element=_,Qe.ForwardRef=x,Qe.Fragment=E,Qe.Lazy=O,Qe.Memo=j,Qe.Portal=T,Qe.Profiler=F,Qe.StrictMode=q,Qe.Suspense=J,Qe.isAsyncMode=te,Qe.isConcurrentMode=P,Qe.isContextConsumer=D,Qe.isContextProvider=U,Qe.isElement=I,Qe.isForwardRef=R,Qe.isFragment=M,Qe.isLazy=z,Qe.isMemo=B,Qe.isPortal=H,Qe.isProfiler=G,Qe.isStrictMode=X,Qe.isSuspense=$,Qe.isValidElementType=w,Qe.typeOf=C})()),Qe}var nm;function iv(){return nm||(nm=1,process.env.NODE_ENV==="production"?Ps.exports=I0():Ps.exports=T0()),Ps.exports}/*
|
|
18
16
|
object-assign
|
|
19
17
|
(c) Sindre Sorhus
|
|
20
18
|
@license MIT
|
|
21
|
-
*/var
|
|
22
|
-
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=q(V,Q,R,M,B+"."+Q,r);if(z)return z}return null}return v(D)}function I(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(I);if(P===null||o(P))return!0;var D=f(P);if(D){var U=D.call(P),T;if(D!==P.entries){for(;!(T=U.next()).done;)if(!I(T.value))return!1}else for(;!(T=U.next()).done;){var R=T.value;if(R&&!I(R[1]))return!1}}else return!1;return!0;default:return!1}}function F(P,D){return P==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function $(P){var D=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":F(D,P)?"symbol":D}function Y(P){if(typeof P>"u"||P===null)return""+P;var D=$(P);if(D==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return D}function Z(P){var D=Y(P);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function ie(P){return!P.constructor||!P.constructor.name?m:P.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},Bc}var Vc,Jm;function ow(){if(Jm)return Vc;Jm=1;var e=yd();function t(){}function r(){}return r.resetWarningCache=t,Vc=function(){function a(s,o,c,l,u,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}a.isRequired=a;function i(){return a}var n={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:i,element:a,elementType:a,instanceOf:i,node:a,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return n.PropTypes=n,n},Vc}var Ym;function lw(){if(Ym)return Eo.exports;if(Ym=1,process.env.NODE_ENV!=="production"){var e=Uv(),t=!0;Eo.exports=sw()(e.isElement,t)}else Eo.exports=ow()();return Eo.exports}var cw=lw();const Ie=Pn(cw);function uw(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function fw(e,t){e.classList?e.classList.add(t):uw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Xm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function dw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Xm(e.className,t):e.setAttribute("class",Xm(e.className&&e.className.baseVal||"",t))}const Zm={disabled:!1};var mw=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.number,Ie.shape({enter:Ie.number,exit:Ie.number,appear:Ie.number}).isRequired]):null,pw=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.string,Ie.shape({enter:Ie.string,exit:Ie.string,active:Ie.string}),Ie.shape({enter:Ie.string,enterDone:Ie.string,enterActive:Ie.string,exit:Ie.string,exitDone:Ie.string,exitActive:Ie.string})]):null;const Vv=W.createContext(null);var Hv=function(t){return t.scrollTop},ws="unmounted",qa="exited",za="entering",wi="entered",xf="exiting",In=(function(e){$v(t,e);function t(a,i){var n;n=e.call(this,a,i)||this;var s=i,o=s&&!s.isMounting?a.enter:a.appear,c;return n.appearStatus=null,a.in?o?(c=qa,n.appearStatus=za):c=wi:a.unmountOnExit||a.mountOnEnter?c=ws:c=qa,n.state={status:c},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var s=i.in;return s&&n.status===ws?{status:qa}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var n=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==za&&s!==wi&&(n=za):(s===za||s===wi)&&(n=xf)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,n,s,o;return n=s=o=i,i!=null&&typeof i!="number"&&(n=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:n,enter:s,appear:o}},r.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===za){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:wo.findDOMNode(this);s&&Hv(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qa&&this.setState({status:ws})},r.performEnter=function(i){var n=this,s=this.props.enter,o=this.context?this.context.isMounting:i,c=this.props.nodeRef?[o]:[wo.findDOMNode(this),o],l=c[0],u=c[1],f=this.getTimeouts(),m=o?f.appear:f.enter;if(!i&&!s||Zm.disabled){this.safeSetState({status:wi},function(){n.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:za},function(){n.props.onEntering(l,u),n.onTransitionEnd(m,function(){n.safeSetState({status:wi},function(){n.props.onEntered(l,u)})})})},r.performExit=function(){var i=this,n=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:wo.findDOMNode(this);if(!n||Zm.disabled){this.safeSetState({status:qa},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:xf},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:qa},function(){i.props.onExited(o)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},r.setNextCallback=function(i){var n=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,n.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:wo.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ws)return null;var n=this.props,s=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var o=zv(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return W.createElement(Vv.Provider,{value:null},typeof s=="function"?s(i,o):W.cloneElement(W.Children.only(s),o))},t})(W.Component);In.contextType=Vv;In.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ie.shape({current:typeof Element>"u"?Ie.any:function(e,t,r,a,i,n){var s=e[t];return Ie.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,a,i,n)}}),children:Ie.oneOfType([Ie.func.isRequired,Ie.element.isRequired]).isRequired,in:Ie.bool,mountOnEnter:Ie.bool,unmountOnExit:Ie.bool,appear:Ie.bool,enter:Ie.bool,exit:Ie.bool,timeout:function(t){var r=mw;t.addEndListener||(r=r.isRequired);for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n<a;n++)i[n-1]=arguments[n];return r.apply(void 0,[t].concat(i))},addEndListener:Ie.func,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}:{};function mi(){}In.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mi,onEntering:mi,onEntered:mi,onExit:mi,onExiting:mi,onExited:mi};In.UNMOUNTED=ws;In.EXITED=qa;In.ENTERING=za;In.ENTERED=wi;In.EXITING=xf;var hw=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return fw(t,a)})},Hc=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return dw(t,a)})},vd=(function(e){$v(t,e);function t(){for(var a,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return a=e.call.apply(e,[this].concat(n))||this,a.appliedClasses={appear:{},enter:{},exit:{}},a.onEnter=function(o,c){var l=a.resolveArguments(o,c),u=l[0],f=l[1];a.removeClasses(u,"exit"),a.addClass(u,f?"appear":"enter","base"),a.props.onEnter&&a.props.onEnter(o,c)},a.onEntering=function(o,c){var l=a.resolveArguments(o,c),u=l[0],f=l[1],m=f?"appear":"enter";a.addClass(u,m,"active"),a.props.onEntering&&a.props.onEntering(o,c)},a.onEntered=function(o,c){var l=a.resolveArguments(o,c),u=l[0],f=l[1],m=f?"appear":"enter";a.removeClasses(u,m),a.addClass(u,m,"done"),a.props.onEntered&&a.props.onEntered(o,c)},a.onExit=function(o){var c=a.resolveArguments(o),l=c[0];a.removeClasses(l,"appear"),a.removeClasses(l,"enter"),a.addClass(l,"exit","base"),a.props.onExit&&a.props.onExit(o)},a.onExiting=function(o){var c=a.resolveArguments(o),l=c[0];a.addClass(l,"exit","active"),a.props.onExiting&&a.props.onExiting(o)},a.onExited=function(o){var c=a.resolveArguments(o),l=c[0];a.removeClasses(l,"exit"),a.addClass(l,"exit","done"),a.props.onExited&&a.props.onExited(o)},a.resolveArguments=function(o,c){return a.props.nodeRef?[a.props.nodeRef.current,o]:[o,c]},a.getClassNames=function(o){var c=a.props.classNames,l=typeof c=="string",u=l&&c?c+"-":"",f=l?""+u+o:c[o],m=l?f+"-active":c[o+"Active"],d=l?f+"-done":c[o+"Done"];return{baseClassName:f,activeClassName:m,doneClassName:d}},a}var r=t.prototype;return r.addClass=function(i,n,s){var o=this.getClassNames(n)[s+"ClassName"],c=this.getClassNames("enter"),l=c.doneClassName;n==="appear"&&s==="done"&&l&&(o+=" "+l),s==="active"&&i&&Hv(i),o&&(this.appliedClasses[n][s]=o,hw(i,o))},r.removeClasses=function(i,n){var s=this.appliedClasses[n],o=s.base,c=s.active,l=s.done;this.appliedClasses[n]={},o&&Hc(i,o),c&&Hc(i,c),l&&Hc(i,l)},r.render=function(){var i=this.props;i.classNames;var n=zv(i,["classNames"]);return W.createElement(In,Dl({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(W.Component);vd.defaultProps={classNames:""};vd.propTypes=process.env.NODE_ENV!=="production"?Dl({},In.propTypes,{classNames:pw,onEnter:Ie.func,onEntering:Ie.func,onEntered:Ie.func,onExit:Ie.func,onExiting:Ie.func,onExited:Ie.func}):{};const gw=vd,Qm=({active:e,children:t,content:r,disabled:a})=>{const i=W.useRef(null);return a?j.jsx(j.Fragment,{children:t}):j.jsxs("div",{className:"fcode-loading-overlay-root",children:[t,j.jsx(gw,{nodeRef:i,in:e,timeout:200,unmountOnExit:!0,classNames:"fcode-loading-overlay",children:j.jsx("div",{ref:i,"data-testid":"overlay",className:"fcode-loading-overlay",children:j.jsxs("div",{className:"fcode-loading-overlay-content-wrapper",children:[j.jsx("div",{"data-testid":"spinner",className:"fcode-loading-overlay-spinner",children:j.jsx("svg",{viewBox:"25 25 50 50",children:j.jsx("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})})}),r&&j.jsx("p",{"data-testid":"content",className:"fcode-loading-overlay-content",children:r})]})})})]})},yw=["first","second"],Wv=()=>j.jsxs("div",{className:"fcode-form-skeleton","data-testid":"fcode-form-skeleton","aria-hidden":"true",children:[j.jsx("div",{className:"fcode-form-skeleton-title"}),j.jsx("div",{className:"fcode-form-skeleton-description"}),yw.map(e=>j.jsxs("div",{className:"fcode-form-skeleton-group",children:[j.jsx("div",{className:"fcode-form-skeleton-label"}),j.jsx("div",{className:"fcode-form-skeleton-field"})]},e)),j.jsx("div",{className:"fcode-form-skeleton-button"})]});Wv.displayName="FormSkeleton";const bd=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},vw=(e,t)=>{const r=t.message||'<p class="fcode-form-success-message">The form has been successfully submitted</p>';document.getElementById(e).parentElement.innerHTML=gd(r)},bw=e=>{setTimeout(()=>{window.location.assign(e.url)},e.timeout||0)},kw=(e,t,r)=>{console.log(`Form ${e} has been successfully submitted.`),bd("fcode-forms-on-submit-success",{formId:e,formSubmittedData:r,processExecutionResult:t}),vw(e,t),t.redirect&&bw(t.redirect)},ww=(e,t)=>{bd("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},Sw=(e,t)=>{console.log(`There has been an error submitting the form ${e}`,t),bd("fcode-forms-on-submit-error",{formId:e,error:t});let r="There has been an error submitting the form";try{const i=JSON.parse(t.message);i.errorMessage&&(r=i.errorMessage)}catch{}const a=document.getElementById(e);!a||!a.parentElement||(a.parentElement.innerHTML=`<p class="fcode-form-error-message">${gd(r)}</p>`)},Ew="The form couldn't be loaded",xw=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:Ew},Kv=e=>{if(e!==null)switch(typeof e){case"string":e={__errors:[e]};break;case"object":if(e instanceof Array){e={__errors:[...e]};break}else for(const t in e)e[t]=Kv(e[t]);break}return e},Cw=e=>{let t={};return e.fields&&(t={...Kv(e.fields)}),e.global&&(t.__errors=[...e.global]),t};/*!
|
|
19
|
+
*/var Gl,im;function j0(){if(im)return Gl;im=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function a(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var s={},o=0;o<10;o++)s["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(s).map(function(c){return s[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Gl=a()?Object.assign:function(n,s){for(var o,l=i(n),u,c=1;c<arguments.length;c++){o=Object(arguments[c]);for(var f in o)t.call(o,f)&&(l[f]=o[f]);if(e){u=e(o);for(var m=0;m<u.length;m++)r.call(o,u[m])&&(l[u[m]]=o[u[m]])}}return l},Gl}var Jl,am;function Pf(){if(am)return Jl;am=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jl=e,Jl}var Yl,sm;function av(){return sm||(sm=1,Yl=Function.call.bind(Object.prototype.hasOwnProperty)),Yl}var Xl,om;function R0(){if(om)return Xl;om=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Pf(),r={},i=av();e=function(n){var s="Warning: "+n;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(n,s,o,l,u){if(process.env.NODE_ENV!=="production"){for(var c in n)if(i(n,c)){var f;try{if(typeof n[c]!="function"){var m=Error((l||"React class")+": "+o+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}f=n[c](s,c,l,o,null,t)}catch(p){f=p}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+o+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var d=u?u():"";e("Failed "+o+" type: "+f.message+(d??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Xl=a,Xl}var Zl,lm;function N0(){if(lm)return Zl;lm=1;var e=iv(),t=j0(),r=Pf(),i=av(),a=R0(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return Zl=function(o,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(P){var D=P&&(u&&P[u]||P[c]);if(typeof D=="function")return D}var m="<<anonymous>>",d={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:v(),arrayOf:w,element:C(),elementType:h(),instanceOf:y,node:x(),objectOf:A,oneOf:S,oneOfType:_,shape:O,exact:j};function p(P,D){return P===D?P!==0||1/P===1/D:P!==P&&D!==D}function b(P,D){this.message=P,this.data=D&&typeof D=="object"?D:{},this.stack=""}b.prototype=Error.prototype;function k(P){if(process.env.NODE_ENV!=="production")var D={},U=0;function I(M,z,B,H,G,X,$){if(H=H||m,X=X||B,$!==r){if(l){var L=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw L.name="Invariant Violation",L}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var W=H+":"+B;!D[W]&&U<3&&(n("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+H+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[W]=!0,U++)}}return z[B]==null?M?z[B]===null?new b("The "+G+" `"+X+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new b("The "+G+" `"+X+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:P(z,B,H,G,X)}var R=I.bind(null,!1);return R.isRequired=I.bind(null,!0),R}function g(P){function D(U,I,R,M,z,B){var H=U[I],G=q(H);if(G!==P){var X=J(H);return new b("Invalid "+M+" `"+z+"` of type "+("`"+X+"` supplied to `"+R+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return k(D)}function v(){return k(s)}function w(P){function D(U,I,R,M,z){if(typeof P!="function")return new b("Property `"+z+"` of component `"+R+"` has invalid PropType notation inside arrayOf.");var B=U[I];if(!Array.isArray(B)){var H=q(B);return new b("Invalid "+M+" `"+z+"` of type "+("`"+H+"` supplied to `"+R+"`, expected an array."))}for(var G=0;G<B.length;G++){var X=P(B,G,R,M,z+"["+G+"]",r);if(X instanceof Error)return X}return null}return k(D)}function C(){function P(D,U,I,R,M){var z=D[U];if(!o(z)){var B=q(z);return new b("Invalid "+R+" `"+M+"` of type "+("`"+B+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return k(P)}function h(){function P(D,U,I,R,M){var z=D[U];if(!e.isValidElementType(z)){var B=q(z);return new b("Invalid "+R+" `"+M+"` of type "+("`"+B+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return k(P)}function y(P){function D(U,I,R,M,z){if(!(U[I]instanceof P)){var B=P.name||m,H=te(U[I]);return new b("Invalid "+M+" `"+z+"` of type "+("`"+H+"` supplied to `"+R+"`, expected ")+("instance of `"+B+"`."))}return null}return k(D)}function S(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?n("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):n("Invalid argument supplied to oneOf, expected an array.")),s;function D(U,I,R,M,z){for(var B=U[I],H=0;H<P.length;H++)if(p(B,P[H]))return null;var G=JSON.stringify(P,function($,L){var W=J(L);return W==="symbol"?String(L):L});return new b("Invalid "+M+" `"+z+"` of value `"+String(B)+"` "+("supplied to `"+R+"`, expected one of "+G+"."))}return k(D)}function A(P){function D(U,I,R,M,z){if(typeof P!="function")return new b("Property `"+z+"` of component `"+R+"` has invalid PropType notation inside objectOf.");var B=U[I],H=q(B);if(H!=="object")return new b("Invalid "+M+" `"+z+"` of type "+("`"+H+"` supplied to `"+R+"`, expected an object."));for(var G in B)if(i(B,G)){var X=P(B,G,R,M,z+"."+G,r);if(X instanceof Error)return X}return null}return k(D)}function _(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&n("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var D=0;D<P.length;D++){var U=P[D];if(typeof U!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(U)+" at index "+D+"."),s}function I(R,M,z,B,H){for(var G=[],X=0;X<P.length;X++){var $=P[X],L=$(R,M,z,B,H,r);if(L==null)return null;L.data&&i(L.data,"expectedType")&&G.push(L.data.expectedType)}var W=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new b("Invalid "+B+" `"+H+"` supplied to "+("`"+z+"`"+W+"."))}return k(I)}function x(){function P(D,U,I,R,M){return T(D[U])?null:new b("Invalid "+R+" `"+M+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return k(P)}function E(P,D,U,I,R){return new b((P||"React class")+": "+D+" type `"+U+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+R+"`.")}function O(P){function D(U,I,R,M,z){var B=U[I],H=q(B);if(H!=="object")return new b("Invalid "+M+" `"+z+"` of type `"+H+"` "+("supplied to `"+R+"`, expected `object`."));for(var G in P){var X=P[G];if(typeof X!="function")return E(R,M,z,G,J(X));var $=X(B,G,R,M,z+"."+G,r);if($)return $}return null}return k(D)}function j(P){function D(U,I,R,M,z){var B=U[I],H=q(B);if(H!=="object")return new b("Invalid "+M+" `"+z+"` of type `"+H+"` "+("supplied to `"+R+"`, expected `object`."));var G=t({},U[I],P);for(var X in G){var $=P[X];if(i(P,X)&&typeof $!="function")return E(R,M,z,X,J($));if(!$)return new b("Invalid "+M+" `"+z+"` key `"+X+"` supplied to `"+R+"`.\nBad object: "+JSON.stringify(U[I],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var L=$(B,X,R,M,z+"."+X,r);if(L)return L}return null}return k(D)}function T(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(T);if(P===null||o(P))return!0;var D=f(P);if(D){var U=D.call(P),I;if(D!==P.entries){for(;!(I=U.next()).done;)if(!T(I.value))return!1}else for(;!(I=U.next()).done;){var R=I.value;if(R&&!T(R[1]))return!1}}else return!1;return!0;default:return!1}}function F(P,D){return P==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function q(P){var D=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":F(D,P)?"symbol":D}function J(P){if(typeof P>"u"||P===null)return""+P;var D=q(P);if(D==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return D}function Y(P){var D=J(P);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function te(P){return!P.constructor||!P.constructor.name?m:P.constructor.name}return d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d},Zl}var Ql,um;function F0(){if(um)return Ql;um=1;var e=Pf();function t(){}function r(){}return r.resetWarningCache=t,Ql=function(){function i(s,o,l,u,c,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}i.isRequired=i;function a(){return i}var n={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return n.PropTypes=n,n},Ql}var cm;function D0(){if(cm)return _s.exports;if(cm=1,process.env.NODE_ENV!=="production"){var e=iv(),t=!0;_s.exports=N0()(e.isElement,t)}else _s.exports=F0()();return _s.exports}var M0=D0();const Ce=Wr(M0);function L0(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function q0(e,t){e.classList?e.classList.add(t):L0(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function fm(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function z0(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=fm(e.className,t):e.setAttribute("class",fm(e.className&&e.className.baseVal||"",t))}const dm={disabled:!1};var $0=process.env.NODE_ENV!=="production"?Ce.oneOfType([Ce.number,Ce.shape({enter:Ce.number,exit:Ce.number,appear:Ce.number}).isRequired]):null,U0=process.env.NODE_ENV!=="production"?Ce.oneOfType([Ce.string,Ce.shape({enter:Ce.string,exit:Ce.string,active:Ce.string}),Ce.shape({enter:Ce.string,enterDone:Ce.string,enterActive:Ce.string,exit:Ce.string,exitDone:Ce.string,exitActive:Ce.string})]):null;const sv=V.createContext(null);var ov=function(t){return t.scrollTop},Pa="unmounted",ti="exited",ri="entering",Fi="entered",Nc="exiting",Gr=(function(e){nv(t,e);function t(i,a){var n;n=e.call(this,i,a)||this;var s=a,o=s&&!s.isMounting?i.enter:i.appear,l;return n.appearStatus=null,i.in?o?(l=ti,n.appearStatus=ri):l=Fi:i.unmountOnExit||i.mountOnEnter?l=Pa:l=ti,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(a,n){var s=a.in;return s&&n.status===Pa?{status:ti}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var n=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==ri&&s!==Fi&&(n=ri):(s===ri||s===Fi)&&(n=Nc)}this.updateStatus(!1,n)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,n,s,o;return n=s=o=a,a!=null&&typeof a!="number"&&(n=a.exit,s=a.enter,o=a.appear!==void 0?a.appear:s),{exit:n,enter:s,appear:o}},r.updateStatus=function(a,n){if(a===void 0&&(a=!1),n!==null)if(this.cancelNextCallback(),n===ri){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Os.findDOMNode(this);s&&ov(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ti&&this.setState({status:Pa})},r.performEnter=function(a){var n=this,s=this.props.enter,o=this.context?this.context.isMounting:a,l=this.props.nodeRef?[o]:[Os.findDOMNode(this),o],u=l[0],c=l[1],f=this.getTimeouts(),m=o?f.appear:f.enter;if(!a&&!s||dm.disabled){this.safeSetState({status:Fi},function(){n.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:ri},function(){n.props.onEntering(u,c),n.onTransitionEnd(m,function(){n.safeSetState({status:Fi},function(){n.props.onEntered(u,c)})})})},r.performExit=function(){var a=this,n=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:Os.findDOMNode(this);if(!n||dm.disabled){this.safeSetState({status:ti},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Nc},function(){a.props.onExiting(o),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:ti},function(){a.props.onExited(o)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,n){n=this.setNextCallback(n),this.setState(a,n)},r.setNextCallback=function(a){var n=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,n.nextCallback=null,a(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(a,n){this.setNextCallback(n);var s=this.props.nodeRef?this.props.nodeRef.current:Os.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===Pa)return null;var n=this.props,s=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var o=rv(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(sv.Provider,{value:null},typeof s=="function"?s(a,o):V.cloneElement(V.Children.only(s),o))},t})(V.Component);Gr.contextType=sv;Gr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ce.shape({current:typeof Element>"u"?Ce.any:function(e,t,r,i,a,n){var s=e[t];return Ce.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,i,a,n)}}),children:Ce.oneOfType([Ce.func.isRequired,Ce.element.isRequired]).isRequired,in:Ce.bool,mountOnEnter:Ce.bool,unmountOnExit:Ce.bool,appear:Ce.bool,enter:Ce.bool,exit:Ce.bool,timeout:function(t){var r=$0;t.addEndListener||(r=r.isRequired);for(var i=arguments.length,a=new Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];return r.apply(void 0,[t].concat(a))},addEndListener:Ce.func,onEnter:Ce.func,onEntering:Ce.func,onEntered:Ce.func,onExit:Ce.func,onExiting:Ce.func,onExited:Ce.func}:{};function _i(){}Gr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_i,onEntering:_i,onEntered:_i,onExit:_i,onExiting:_i,onExited:_i};Gr.UNMOUNTED=Pa;Gr.EXITED=ti;Gr.ENTERING=ri;Gr.ENTERED=Fi;Gr.EXITING=Nc;var B0=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return q0(t,i)})},eu=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return z0(t,i)})},If=(function(e){nv(t,e);function t(){for(var i,a=arguments.length,n=new Array(a),s=0;s<a;s++)n[s]=arguments[s];return i=e.call.apply(e,[this].concat(n))||this,i.appliedClasses={appear:{},enter:{},exit:{}},i.onEnter=function(o,l){var u=i.resolveArguments(o,l),c=u[0],f=u[1];i.removeClasses(c,"exit"),i.addClass(c,f?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(o,l)},i.onEntering=function(o,l){var u=i.resolveArguments(o,l),c=u[0],f=u[1],m=f?"appear":"enter";i.addClass(c,m,"active"),i.props.onEntering&&i.props.onEntering(o,l)},i.onEntered=function(o,l){var u=i.resolveArguments(o,l),c=u[0],f=u[1],m=f?"appear":"enter";i.removeClasses(c,m),i.addClass(c,m,"done"),i.props.onEntered&&i.props.onEntered(o,l)},i.onExit=function(o){var l=i.resolveArguments(o),u=l[0];i.removeClasses(u,"appear"),i.removeClasses(u,"enter"),i.addClass(u,"exit","base"),i.props.onExit&&i.props.onExit(o)},i.onExiting=function(o){var l=i.resolveArguments(o),u=l[0];i.addClass(u,"exit","active"),i.props.onExiting&&i.props.onExiting(o)},i.onExited=function(o){var l=i.resolveArguments(o),u=l[0];i.removeClasses(u,"exit"),i.addClass(u,"exit","done"),i.props.onExited&&i.props.onExited(o)},i.resolveArguments=function(o,l){return i.props.nodeRef?[i.props.nodeRef.current,o]:[o,l]},i.getClassNames=function(o){var l=i.props.classNames,u=typeof l=="string",c=u&&l?l+"-":"",f=u?""+c+o:l[o],m=u?f+"-active":l[o+"Active"],d=u?f+"-done":l[o+"Done"];return{baseClassName:f,activeClassName:m,doneClassName:d}},i}var r=t.prototype;return r.addClass=function(a,n,s){var o=this.getClassNames(n)[s+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;n==="appear"&&s==="done"&&u&&(o+=" "+u),s==="active"&&a&&ov(a),o&&(this.appliedClasses[n][s]=o,B0(a,o))},r.removeClasses=function(a,n){var s=this.appliedClasses[n],o=s.base,l=s.active,u=s.done;this.appliedClasses[n]={},o&&eu(a,o),l&&eu(a,l),u&&eu(a,u)},r.render=function(){var a=this.props;a.classNames;var n=rv(a,["classNames"]);return V.createElement(Gr,Uo({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(V.Component);If.defaultProps={classNames:""};If.propTypes=process.env.NODE_ENV!=="production"?Uo({},Gr.propTypes,{classNames:U0,onEnter:Ce.func,onEntering:Ce.func,onEntered:Ce.func,onExit:Ce.func,onExiting:Ce.func,onExited:Ce.func}):{};const V0=If,mm=({active:e,children:t,content:r,disabled:i})=>{const a=V.useRef(null);return i?N.jsx(N.Fragment,{children:t}):N.jsxs("div",{className:"fcode-loading-overlay-root",children:[t,N.jsx(V0,{nodeRef:a,in:e,timeout:200,unmountOnExit:!0,classNames:"fcode-loading-overlay",children:N.jsx("div",{ref:a,"data-testid":"overlay",className:"fcode-loading-overlay",children:N.jsxs("div",{className:"fcode-loading-overlay-content-wrapper",children:[N.jsx("div",{"data-testid":"spinner",className:"fcode-loading-overlay-spinner",children:N.jsx("svg",{viewBox:"25 25 50 50",children:N.jsx("circle",{cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})})}),r&&N.jsx("p",{"data-testid":"content",className:"fcode-loading-overlay-content",children:r})]})})})]})},H0=["first","second"],lv=()=>N.jsxs("div",{className:"fcode-form-skeleton","data-testid":"fcode-form-skeleton","aria-hidden":"true",children:[N.jsx("div",{className:"fcode-form-skeleton-title"}),N.jsx("div",{className:"fcode-form-skeleton-description"}),H0.map(e=>N.jsxs("div",{className:"fcode-form-skeleton-group",children:[N.jsx("div",{className:"fcode-form-skeleton-label"}),N.jsx("div",{className:"fcode-form-skeleton-field"})]},e)),N.jsx("div",{className:"fcode-form-skeleton-button"})]});lv.displayName="FormSkeleton";const Io=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},K0=e=>{setTimeout(()=>{window.location.assign(e.url)},e.timeout||0)},W0=(e,t)=>{Io("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},G0="The form has been successfully submitted",pm="There has been an error submitting the form",J0=e=>{if(e instanceof Error){try{const r=JSON.parse(e.message);if(typeof(r==null?void 0:r.errorMessage)=="string"&&r.errorMessage)return r.errorMessage}catch{}return pm}const t=e;return typeof(t==null?void 0:t.errorMessage)=="string"&&t.errorMessage?t.errorMessage:typeof(t==null?void 0:t.message)=="string"&&t.message?t.message:pm},Y0="The form couldn't be loaded",X0=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:Y0},uv=e=>{if(e!==null)switch(typeof e){case"string":e={__errors:[e]};break;case"object":if(e instanceof Array){e={__errors:[...e]};break}else for(const t in e)e[t]=uv(e[t]);break}return e},Z0=e=>{let t={};return e.fields&&(t={...uv(e.fields)}),e.global&&(t.__errors=[...e.global]),t};function Q0(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const ew=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rw={};function hm(e,t){return(rw.jsx?tw:ew).test(e)}const nw=/[ \t\n\f\r]/g;function iw(e){return typeof e=="object"?e.type==="text"?gm(e.value):!1:gm(e)}function gm(e){return e.replace(nw,"")===""}class ns{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}ns.prototype.normal={};ns.prototype.property={};ns.prototype.space=void 0;function cv(e,t){const r={},i={};for(const a of e)Object.assign(r,a.property),Object.assign(i,a.normal);return new ns(r,i,t)}function Fc(e){return e.toLowerCase()}class Zt{constructor(t,r){this.attribute=r,this.property=t}}Zt.prototype.attribute="";Zt.prototype.booleanish=!1;Zt.prototype.boolean=!1;Zt.prototype.commaOrSpaceSeparated=!1;Zt.prototype.commaSeparated=!1;Zt.prototype.defined=!1;Zt.prototype.mustUseProperty=!1;Zt.prototype.number=!1;Zt.prototype.overloadedBoolean=!1;Zt.prototype.property="";Zt.prototype.spaceSeparated=!1;Zt.prototype.space=void 0;let aw=0;const Se=vi(),Ot=vi(),Dc=vi(),oe=vi(),ft=vi(),ai=vi(),tr=vi();function vi(){return 2**++aw}const Mc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:Ot,commaOrSpaceSeparated:tr,commaSeparated:ai,number:oe,overloadedBoolean:Dc,spaceSeparated:ft},Symbol.toStringTag,{value:"Module"})),tu=Object.keys(Mc);class Tf extends Zt{constructor(t,r,i,a){let n=-1;if(super(t,r),ym(this,"space",a),typeof i=="number")for(;++n<tu.length;){const s=tu[n];ym(this,tu[n],(i&Mc[s])===Mc[s])}}}Tf.prototype.defined=!0;function ym(e,t,r){r&&(e[t]=r)}function na(e){const t={},r={};for(const[i,a]of Object.entries(e.properties)){const n=new Tf(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(n.mustUseProperty=!0),t[i]=n,r[Fc(i)]=i,r[Fc(n.attribute)]=i}return new ns(t,r,e.space)}const fv=na({properties:{ariaActiveDescendant:null,ariaAtomic:Ot,ariaAutoComplete:null,ariaBusy:Ot,ariaChecked:Ot,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,ariaControls:ft,ariaCurrent:null,ariaDescribedBy:ft,ariaDetails:null,ariaDisabled:Ot,ariaDropEffect:ft,ariaErrorMessage:null,ariaExpanded:Ot,ariaFlowTo:ft,ariaGrabbed:Ot,ariaHasPopup:null,ariaHidden:Ot,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ft,ariaLevel:oe,ariaLive:null,ariaModal:Ot,ariaMultiLine:Ot,ariaMultiSelectable:Ot,ariaOrientation:null,ariaOwns:ft,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:Ot,ariaReadOnly:Ot,ariaRelevant:null,ariaRequired:Ot,ariaRoleDescription:ft,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:Ot,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function dv(e,t){return t in e?e[t]:t}function mv(e,t){return dv(e,t.toLowerCase())}const sw=na({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ai,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alpha:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:ft,autoFocus:Se,autoPlay:Se,blocking:ft,capture:null,charSet:null,checked:Se,cite:null,className:ft,closedBy:null,colorSpace:null,cols:oe,colSpan:oe,command:null,commandFor:null,content:null,contentEditable:Ot,controls:Se,controlsList:ft,coords:oe|ai,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:Dc,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:ft,height:oe,hidden:Dc,high:oe,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:ft,itemRef:ft,itemScope:Se,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Se,optimum:oe,pattern:null,ping:ft,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:ft,required:Se,reversed:Se,rows:oe,rowSpan:oe,sandbox:ft,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootCustomElementRegistry:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shadowRootSerializable:Se,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:Ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:Ot,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ft,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:Ot,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Se,disablePictureInPicture:Se,disableRemotePlayback:Se,exportParts:ai,part:ft,prefix:null,property:null,results:oe,security:null,unselectable:null},space:"html",transform:mv}),ow=na({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:tr,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,className:ft,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ai,g2:ai,glyphName:ai,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:tr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:oe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ft,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tr,rev:tr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tr,requiredFeatures:tr,requiredFonts:tr,requiredFormats:tr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:tr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tr,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dv}),pv=na({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),hv=na({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:mv}),gv=na({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),lw={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},uw=/[A-Z]/g,vm=/-[a-z]/g,cw=/^data[-\w.:]+$/i;function fw(e,t){const r=Fc(t);let i=t,a=Zt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&cw.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(vm,mw);i="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!vm.test(n)){let s=n.replace(uw,dw);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=Tf}return new a(i,t)}function dw(e){return"-"+e.toLowerCase()}function mw(e){return e.charAt(1).toUpperCase()}const pw=cv([fv,sw,pv,hv,gv],"html"),jf=cv([fv,ow,pv,hv,gv],"svg");function hw(e){return e.join(" ").trim()}var Pi={},ru,bm;function gw(){if(bm)return ru;bm=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,n=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
|
|
21
|
+
`,u="/",c="*",f="",m="comment",d="declaration";function p(k,g){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];g=g||{};var v=1,w=1;function C(T){var F=T.match(t);F&&(v+=F.length);var q=T.lastIndexOf(l);w=~q?T.length-q:w+T.length}function h(){var T={line:v,column:w};return function(F){return F.position=new y(T),_(),F}}function y(T){this.start=T,this.end={line:v,column:w},this.source=g.source}y.prototype.content=k;function S(T){var F=new Error(g.source+":"+v+":"+w+": "+T);if(F.reason=T,F.filename=g.source,F.line=v,F.column=w,F.source=k,!g.silent)throw F}function A(T){var F=T.exec(k);if(F){var q=F[0];return C(q),k=k.slice(q.length),F}}function _(){A(r)}function x(T){var F;for(T=T||[];F=E();)F!==!1&&T.push(F);return T}function E(){var T=h();if(!(u!=k.charAt(0)||c!=k.charAt(1))){for(var F=2;f!=k.charAt(F)&&(c!=k.charAt(F)||u!=k.charAt(F+1));)++F;if(F+=2,f===k.charAt(F-1))return S("End of comment missing");var q=k.slice(2,F-2);return w+=2,C(q),k=k.slice(F),w+=2,T({type:m,comment:q})}}function O(){var T=h(),F=A(i);if(F){if(E(),!A(a))return S("property missing ':'");var q=A(n),J=T({type:d,property:b(F[0].replace(e,f)),value:q?b(q[0].replace(e,f)):f});return A(s),J}}function j(){var T=[];x(T);for(var F;F=O();)F!==!1&&(T.push(F),x(T));return T}return _(),j()}function b(k){return k?k.replace(o,f):f}return ru=p,ru}var km;function yw(){if(km)return Pi;km=1;var e=Pi&&Pi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.default=r;const t=e(gw());function r(i,a){let n=null;if(!i||typeof i!="string")return n;const s=(0,t.default)(i),o=typeof a=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;o?a(u,c,l):c&&(n=n||{},n[u]=c)}),n}return Pi}var ya={},wm;function vw(){if(wm)return ya;wm=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,n=function(u){return!u||r.test(u)||e.test(u)},s=function(u,c){return c.toUpperCase()},o=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),n(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(a,o):u=u.replace(i,o),u.replace(t,s))};return ya.camelCase=l,ya}var va,xm;function bw(){if(xm)return va;xm=1;var e=va&&va.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(yw()),r=vw();function i(a,n){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(o,l){o&&l&&(s[(0,r.camelCase)(o,n)]=l)}),s}return i.default=i,va=i,va}var kw=bw();const ww=Wr(kw),yv=vv("end"),Rf=vv("start");function vv(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function xw(e){const t=Rf(e),r=yv(e);if(t&&r)return{start:t,end:r}}function Da(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Sm(e.position):"start"in e||"end"in e?Sm(e):"line"in e||"column"in e?Lc(e):""}function Lc(e){return Cm(e&&e.line)+":"+Cm(e&&e.column)}function Sm(e){return Lc(e&&e.start)+"-"+Lc(e&&e.end)}function Cm(e){return e&&typeof e=="number"?e:1}class zt extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let a="",n={},s=!1;if(r&&("line"in r&&"column"in r?n={place:r}:"start"in r&&"end"in r?n={place:r}:"type"in r?n={ancestors:[r],place:r.position}:n={...r}),typeof t=="string"?a=t:!n.cause&&t&&(s=!0,a=t.message,n.cause=t),!n.ruleId&&!n.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?n.ruleId=i:(n.source=i.slice(0,l),n.ruleId=i.slice(l+1))}if(!n.place&&n.ancestors&&n.ancestors){const l=n.ancestors[n.ancestors.length-1];l&&(n.place=l.position)}const o=n.place&&"start"in n.place?n.place.start:n.place;this.ancestors=n.ancestors||void 0,this.cause=n.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=o?o.line:void 0,this.name=Da(n.place)||"1:1",this.place=n.place||void 0,this.reason=this.message,this.ruleId=n.ruleId||void 0,this.source=n.source||void 0,this.stack=s&&n.cause&&typeof n.cause.stack=="string"?n.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}zt.prototype.file="";zt.prototype.name="";zt.prototype.reason="";zt.prototype.message="";zt.prototype.stack="";zt.prototype.column=void 0;zt.prototype.line=void 0;zt.prototype.ancestors=void 0;zt.prototype.cause=void 0;zt.prototype.fatal=void 0;zt.prototype.place=void 0;zt.prototype.ruleId=void 0;zt.prototype.source=void 0;const Nf={}.hasOwnProperty,Sw=new Map,Cw=/[A-Z]/g,Ew=new Set(["table","tbody","thead","tfoot","tr"]),Aw=new Set(["td","th"]),bv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ow(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Fw(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Nw(r,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?jf:pw,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=kv(a,e,void 0);return n&&typeof n!="string"?n:a.create(e,a.Fragment,{children:n||void 0},void 0)}function kv(e,t,r){if(t.type==="element")return _w(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Pw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Tw(e,t,r);if(t.type==="mdxjsEsm")return Iw(e,t);if(t.type==="root")return jw(e,t,r);if(t.type==="text")return Rw(e,t)}function _w(e,t,r){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=jf,e.schema=a),e.ancestors.push(t);const n=xv(e,t.tagName,!1),s=Dw(e,t);let o=Df(e,t);return Ew.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!iw(l):!0})),wv(e,s,n,t),Ff(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function Pw(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Va(e,t.position)}function Iw(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Va(e,t.position)}function Tw(e,t,r){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=jf,e.schema=a),e.ancestors.push(t);const n=t.name===null?e.Fragment:xv(e,t.name,!0),s=Mw(e,t),o=Df(e,t);return wv(e,s,n,t),Ff(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function jw(e,t,r){const i={};return Ff(i,Df(e,t)),e.create(t,e.Fragment,i,r)}function Rw(e,t){return t.value}function wv(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function Ff(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Nw(e,t,r){return i;function i(a,n,s,o){const u=Array.isArray(s.children)?r:t;return o?u(n,s,o):u(n,s)}}function Fw(e,t){return r;function r(i,a,n,s){const o=Array.isArray(n.children),l=Rf(i);return t(a,n,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Dw(e,t){const r={};let i,a;for(a in t.properties)if(a!=="children"&&Nf.call(t.properties,a)){const n=Lw(e,a,t.properties[a]);if(n){const[s,o]=n;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&Aw.has(t.tagName)?i=o:r[s]=o}}if(i){const n=r.style||(r.style={});n[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function Mw(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const n=i.data.estree.body[0];n.type;const s=n.expression;s.type;const o=s.properties[0];o.type,Object.assign(r,e.evaluater.evaluateExpression(o.argument))}else Va(e,t.position);else{const a=i.name;let n;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const o=i.value.data.estree.body[0];o.type,n=e.evaluater.evaluateExpression(o.expression)}else Va(e,t.position);else n=i.value===null?!0:i.value;r[a]=n}return r}function Df(e,t){const r=[];let i=-1;const a=e.passKeys?new Map:Sw;for(;++i<t.children.length;){const n=t.children[i];let s;if(e.passKeys){const l=n.type==="element"?n.tagName:n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"?n.name:void 0;if(l){const u=a.get(l)||0;s=l+"-"+u,a.set(l,u+1)}}const o=kv(e,n,s);o!==void 0&&r.push(o)}return r}function Lw(e,t,r){const i=fw(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?Q0(r):hw(r)),i.property==="style"){let a=typeof r=="object"?r:qw(e,String(r));return e.stylePropertyNameCase==="css"&&(a=zw(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?lw[i.property]||i.property:i.attribute,r]}}function qw(e,t){try{return ww(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,a=new zt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=bv+"#cannot-parse-style-attribute",a}}function xv(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let n=-1,s;for(;++n<a.length;){const o=hm(a[n])?{type:"Identifier",name:a[n]}:{type:"Literal",value:a[n]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(n&&o.type==="Literal"),optional:!1}:o}i=s}else i=hm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return Nf.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);Va(e)}function Va(e,t){const r=new zt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=bv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function zw(e){const t={};let r;for(r in e)Nf.call(e,r)&&(t[$w(r)]=e[r]);return t}function $w(e){let t=e.replace(Cw,Uw);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Uw(e){return"-"+e.toLowerCase()}const nu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Bw={};function Mf(e,t){const r=Bw,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Sv(e,i,a)}function Sv(e,t,r){if(Vw(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Em(e.children,t,r)}return Array.isArray(e)?Em(e,t,r):""}function Em(e,t,r){const i=[];let a=-1;for(;++a<e.length;)i[a]=Sv(e[a],t,r);return i.join("")}function Vw(e){return!!(e&&typeof e=="object")}const Am=document.createElement("i");function Lf(e){const t="&"+e+";";Am.innerHTML=t;const r=Am.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ar(e,t,r,i){const a=e.length;let n=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,i.length<1e4)s=Array.from(i),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);n<i.length;)s=i.slice(n,n+1e4),s.unshift(t,0),e.splice(...s),n+=1e4,t+=1e4}function ur(e,t){return e.length>0?(ar(e,e.length,0,t),e):t}const Om={}.hasOwnProperty;function Cv(e){const t={};let r=-1;for(;++r<e.length;)Hw(t,e[r]);return t}function Hw(e,t){let r;for(r in t){const a=(Om.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let s;if(n)for(s in n){Om.call(a,s)||(a[s]=[]);const o=n[s];Kw(a[s],Array.isArray(o)?o:o?[o]:[])}}}function Kw(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);ar(e,0,0,i)}function Ev(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Ar(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Bt=zn(/[A-Za-z]/),Lt=zn(/[\dA-Za-z]/),Ww=zn(/[#-'*+\--9=?A-Z^-~]/);function Bo(e){return e!==null&&(e<32||e===127)}const qc=zn(/\d/),Gw=zn(/[\dA-Fa-f]/),Jw=zn(/[!-/:-@[-`{-~]/);function he(e){return e!==null&&e<-2}function dt(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}const fl=zn(new RegExp("\\p{P}|\\p{S}","u")),oi=zn(/\s/);function zn(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ia(e){const t=[];let r=-1,i=0,a=0;for(;++r<e.length;){const n=e.charCodeAt(r);let s="";if(n===37&&Lt(e.charCodeAt(r+1))&&Lt(e.charCodeAt(r+2)))a=2;else if(n<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(n))||(s=String.fromCharCode(n));else if(n>55295&&n<57344){const o=e.charCodeAt(r+1);n<56320&&o>56319&&o<57344?(s=String.fromCharCode(n,o),a=1):s="�"}else s=String.fromCharCode(n);s&&(t.push(e.slice(i,r),encodeURIComponent(s)),i=r+a+1,s=""),a&&(r+=a,a=0)}return t.join("")+e.slice(i)}function Be(e,t,r,i){const a=i?i-1:Number.POSITIVE_INFINITY;let n=0;return s;function s(l){return Me(l)?(e.enter(r),o(l)):t(l)}function o(l){return Me(l)&&n++<a?(e.consume(l),o):(e.exit(r),t(l))}}const Yw={tokenize:Xw};function Xw(e){const t=e.attempt(this.parser.constructs.contentInitial,i,a);let r;return t;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Be(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),n(o)}function n(o){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return he(o)?(e.consume(o),e.exit("chunkText"),n):(e.consume(o),s)}}const Zw={tokenize:Qw},_m={tokenize:ex};function Qw(e){const t=this,r=[];let i=0,a,n,s;return o;function o(w){if(i<r.length){const C=r[i];return t.containerState=C[1],e.attempt(C[0].continuation,l,u)(w)}return u(w)}function l(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&v();const C=t.events.length;let h=C,y;for(;h--;)if(t.events[h][0]==="exit"&&t.events[h][1].type==="chunkFlow"){y=t.events[h][1].end;break}g(i);let S=C;for(;S<t.events.length;)t.events[S][1].end={...y},S++;return ar(t.events,h+1,0,t.events.slice(C)),t.events.length=S,u(w)}return o(w)}function u(w){if(i===r.length){if(!a)return m(w);if(a.currentConstruct&&a.currentConstruct.concrete)return p(w);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(_m,c,f)(w)}function c(w){return a&&v(),g(i),m(w)}function f(w){return t.parser.lazy[t.now().line]=i!==r.length,s=t.now().offset,p(w)}function m(w){return t.containerState={},e.attempt(_m,d,p)(w)}function d(w){return i++,r.push([t.currentConstruct,t.containerState]),m(w)}function p(w){if(w===null){a&&v(),g(0),e.consume(w);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:n}),b(w)}function b(w){if(w===null){k(e.exit("chunkFlow"),!0),g(0),e.consume(w);return}return he(w)?(e.consume(w),k(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(w),b)}function k(w,C){const h=t.sliceStream(w);if(C&&h.push(null),w.previous=n,n&&(n.next=w),n=w,a.defineSkip(w.start),a.write(h),t.parser.lazy[w.start.line]){let y=a.events.length;for(;y--;)if(a.events[y][1].start.offset<s&&(!a.events[y][1].end||a.events[y][1].end.offset>s))return;const S=t.events.length;let A=S,_,x;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){if(_){x=t.events[A][1].end;break}_=!0}for(g(i),y=S;y<t.events.length;)t.events[y][1].end={...x},y++;ar(t.events,A+1,0,t.events.slice(S)),t.events.length=y}}function g(w){let C=r.length;for(;C-- >w;){const h=r[C];t.containerState=h[1],h[0].exit.call(t,e)}r.length=w}function v(){a.write([null]),n=void 0,a=void 0,t.containerState._closeFlow=void 0}}function ex(e,t,r){return Be(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ji(e){if(e===null||dt(e)||oi(e))return 1;if(fl(e))return 2}function dl(e,t,r){const i=[];let a=-1;for(;++a<e.length;){const n=e[a].resolveAll;n&&!i.includes(n)&&(t=n(t,r),i.push(n))}return t}const zc={name:"attention",resolveAll:tx,tokenize:rx};function tx(e,t){let r=-1,i,a,n,s,o,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f={...e[i][1].end},m={...e[r][1].start};Pm(f,-l),Pm(m,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:m},n={type:l>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},a={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[i][1].end={...s.start},e[r][1].start={...o.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=ur(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=ur(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",n,t]]),u=ur(u,dl(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),u=ur(u,[["exit",n,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=ur(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,ar(e,i-1,r-i+3,u),r=i+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function rx(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Ji(i);let n;return s;function s(l){return n=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===n)return e.consume(l),o;const u=e.exit("attentionSequence"),c=Ji(l),f=!c||c===2&&a||r.includes(l),m=!a||a===2&&c||r.includes(i);return u._open=!!(n===42?f:f&&(a||!m)),u._close=!!(n===42?m:m&&(c||!f)),t(l)}}function Pm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const nx={name:"autolink",tokenize:ix};function ix(e,t,r){let i=0;return a;function a(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),n}function n(d){return Bt(d)?(e.consume(d),s):d===64?r(d):u(d)}function s(d){return d===43||d===45||d===46||Lt(d)?(i=1,o(d)):u(d)}function o(d){return d===58?(e.consume(d),i=0,l):(d===43||d===45||d===46||Lt(d))&&i++<32?(e.consume(d),o):(i=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Bo(d)?r(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):Ww(d)?(e.consume(d),u):r(d)}function c(d){return Lt(d)?f(d):r(d)}function f(d){return d===46?(e.consume(d),i=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):m(d)}function m(d){if((d===45||Lt(d))&&i++<63){const p=d===45?m:f;return e.consume(d),p}return r(d)}}const is={partial:!0,tokenize:ax};function ax(e,t,r){return i;function i(n){return Me(n)?Be(e,a,"linePrefix")(n):a(n)}function a(n){return n===null||he(n)?t(n):r(n)}}const Av={continuation:{tokenize:ox},exit:lx,name:"blockQuote",tokenize:sx};function sx(e,t,r){const i=this;return a;function a(s){if(s===62){const o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),n}return r(s)}function n(s){return Me(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function ox(e,t,r){const i=this;return a;function a(s){return Me(s)?Be(e,n,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):n(s)}function n(s){return e.attempt(Av,t,r)(s)}}function lx(e){e.exit("blockQuote")}const Ov={name:"characterEscape",tokenize:ux};function ux(e,t,r){return i;function i(n){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(n),e.exit("escapeMarker"),a}function a(n){return Jw(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const _v={name:"characterReference",tokenize:cx};function cx(e,t,r){const i=this;let a=0,n,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),n=31,s=Lt,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,s=Gw,c):(e.enter("characterReferenceValue"),n=7,s=qc,c(f))}function c(f){if(f===59&&a){const m=e.exit("characterReferenceValue");return s===Lt&&!Lf(i.sliceSerialize(m))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&a++<n?(e.consume(f),c):r(f)}}const Im={partial:!0,tokenize:dx},Tm={concrete:!0,name:"codeFenced",tokenize:fx};function fx(e,t,r){const i=this,a={partial:!0,tokenize:h};let n=0,s=0,o;return l;function l(y){return u(y)}function u(y){const S=i.events[i.events.length-1];return n=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,o=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(y)}function c(y){return y===o?(s++,e.consume(y),c):s<3?r(y):(e.exit("codeFencedFenceSequence"),Me(y)?Be(e,f,"whitespace")(y):f(y))}function f(y){return y===null||he(y)?(e.exit("codeFencedFence"),i.interrupt?t(y):e.check(Im,b,C)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||he(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):Me(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Be(e,d,"whitespace")(y)):y===96&&y===o?r(y):(e.consume(y),m)}function d(y){return y===null||he(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||he(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?r(y):(e.consume(y),p)}function b(y){return e.attempt(a,C,k)(y)}function k(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),g}function g(y){return n>0&&Me(y)?Be(e,v,"linePrefix",n+1)(y):v(y)}function v(y){return y===null||he(y)?e.check(Im,b,C)(y):(e.enter("codeFlowValue"),w(y))}function w(y){return y===null||he(y)?(e.exit("codeFlowValue"),v(y)):(e.consume(y),w)}function C(y){return e.exit("codeFenced"),t(y)}function h(y,S,A){let _=0;return x;function x(F){return y.enter("lineEnding"),y.consume(F),y.exit("lineEnding"),E}function E(F){return y.enter("codeFencedFence"),Me(F)?Be(y,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):O(F)}function O(F){return F===o?(y.enter("codeFencedFenceSequence"),j(F)):A(F)}function j(F){return F===o?(_++,y.consume(F),j):_>=s?(y.exit("codeFencedFenceSequence"),Me(F)?Be(y,T,"whitespace")(F):T(F)):A(F)}function T(F){return F===null||he(F)?(y.exit("codeFencedFence"),S(F)):A(F)}}}function dx(e,t,r){const i=this;return a;function a(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n)}function n(s){return i.parser.lazy[i.now().line]?r(s):t(s)}}const iu={name:"codeIndented",tokenize:px},mx={partial:!0,tokenize:hx};function px(e,t,r){const i=this;return a;function a(u){return e.enter("codeIndented"),Be(e,n,"linePrefix",5)(u)}function n(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?l(u):he(u)?e.attempt(mx,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||he(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function hx(e,t,r){const i=this;return a;function a(s){return i.parser.lazy[i.now().line]?r(s):he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Be(e,n,"linePrefix",5)(s)}function n(s){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):he(s)?a(s):r(s)}}const gx={name:"codeText",previous:vx,resolve:yx,tokenize:bx};function yx(e){let t=e.length-4,r=3,i,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)a===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(a=i):(i===t||e[i][1].type==="lineEnding")&&(e[a][1].type="codeTextData",i!==a+2&&(e[a][1].end=e[i-1][1].end,e.splice(a+2,i-a-2),t-=i-a-2,i=a+2),a=void 0);return e}function vx(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function bx(e,t,r){let i=0,a,n;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),i++,o):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(n=e.enter("codeTextSequence"),a=0,c(f)):he(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||he(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),a++,c):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(n.type="codeTextData",u(f))}}class kx{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const a=r||0;this.setCursor(Math.trunc(t));const n=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return i&&ba(this.left,i),n.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ba(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ba(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);ba(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ba(this.left,r.reverse())}}}function ba(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Pv(e){const t={};let r=-1,i,a,n,s,o,l,u;const c=new kx(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(i=c.get(r),r&&i[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=i[1]._tokenizer.events,n=0,n<l.length&&l[n][1].type==="lineEndingBlank"&&(n+=2),n<l.length&&l[n][1].type==="content"))for(;++n<l.length&&l[n][1].type!=="content";)l[n][1].type==="chunkText"&&(l[n][1]._isInFirstContentOfListItem=!0,n++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,wx(c,r)),r=t[r],u=!0);else if(i[1]._container){for(n=r,a=void 0;n--;)if(s=c.get(n),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=n);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(i[1].end={...c.get(a)[1].start},o=c.slice(a,r),o.unshift(i),c.splice(a,r-a+1,o))}}return ar(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function wx(e,t){const r=e.get(t)[1],i=e.get(t)[2];let a=t-1;const n=[];let s=r._tokenizer;s||(s=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],u={};let c,f,m=-1,d=r,p=0,b=0;const k=[b];for(;d;){for(;e.get(++a)[1]!==d;);n.push(a),d._tokenizer||(c=i.sliceStream(d),d.next||c.push(null),f&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=r;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(b=m+1,k.push(b),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):k.pop(),m=k.length;m--;){const g=o.slice(k[m],k[m+1]),v=n.pop();l.push([v,v+g.length-1]),e.splice(v,2,g)}for(l.reverse(),m=-1;++m<l.length;)u[p+l[m][0]]=p+l[m][1],p+=l[m][1]-l[m][0]-1;return u}const xx={resolve:Cx,tokenize:Ex},Sx={partial:!0,tokenize:Ax};function Cx(e){return Pv(e),e}function Ex(e,t){let r;return i;function i(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?n(o):he(o)?e.check(Sx,s,n)(o):(e.consume(o),a)}function n(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}function Ax(e,t,r){const i=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Be(e,n,"linePrefix")}function n(s){if(s===null||he(s))return r(s);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,r,t)(s)}}function Iv(e,t,r,i,a,n,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(g){return g===60?(e.enter(i),e.enter(a),e.enter(n),e.consume(g),e.exit(n),m):g===null||g===32||g===41||Bo(g)?r(g):(e.enter(i),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(g))}function m(g){return g===62?(e.enter(n),e.consume(g),e.exit(n),e.exit(a),e.exit(i),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===62?(e.exit("chunkString"),e.exit(o),m(g)):g===null||g===60||he(g)?r(g):(e.consume(g),g===92?p:d)}function p(g){return g===60||g===62||g===92?(e.consume(g),d):d(g)}function b(g){return!c&&(g===null||g===41||dt(g))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(i),t(g)):c<u&&g===40?(e.consume(g),c++,b):g===41?(e.consume(g),c--,b):g===null||g===32||g===40||Bo(g)?r(g):(e.consume(g),g===92?k:b)}function k(g){return g===40||g===41||g===92?(e.consume(g),b):b(g)}}function Tv(e,t,r,i,a,n){const s=this;let o=0,l;return u;function u(d){return e.enter(i),e.enter(a),e.consume(d),e.exit(a),e.enter(n),c}function c(d){return o>999||d===null||d===91||d===93&&!l||d===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(d):d===93?(e.exit(n),e.enter(a),e.consume(d),e.exit(a),e.exit(i),t):he(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||he(d)||o++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!Me(d)),d===92?m:f)}function m(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function jv(e,t,r,i,a,n){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(i),e.enter(a),e.consume(m),e.exit(a),s=m===40?41:m,l):r(m)}function l(m){return m===s?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),t):(e.enter(n),u(m))}function u(m){return m===s?(e.exit(n),l(s)):m===null?r(m):he(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Be(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===s||m===null||he(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?f:c)}function f(m){return m===s||m===92?(e.consume(m),c):c(m)}}function Ma(e,t){let r;return i;function i(a){return he(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,i):Me(a)?Be(e,i,r?"linePrefix":"lineSuffix")(a):t(a)}}const Ox={name:"definition",tokenize:Px},_x={partial:!0,tokenize:Ix};function Px(e,t,r){const i=this;let a;return n;function n(d){return e.enter("definition"),s(d)}function s(d){return Tv.call(i,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return a=Ar(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):r(d)}function l(d){return dt(d)?Ma(e,u)(d):u(d)}function u(d){return Iv(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(_x,f,f)(d)}function f(d){return Me(d)?Be(e,m,"whitespace")(d):m(d)}function m(d){return d===null||he(d)?(e.exit("definition"),i.parser.defined.push(a),t(d)):r(d)}}function Ix(e,t,r){return i;function i(o){return dt(o)?Ma(e,a)(o):r(o)}function a(o){return jv(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function n(o){return Me(o)?Be(e,s,"whitespace")(o):s(o)}function s(o){return o===null||he(o)?t(o):r(o)}}const Tx={name:"hardBreakEscape",tokenize:jx};function jx(e,t,r){return i;function i(n){return e.enter("hardBreakEscape"),e.consume(n),a}function a(n){return he(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}const Rx={name:"headingAtx",resolve:Nx,tokenize:Fx};function Nx(e,t){let r=e.length-2,i=3,a,n;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(a={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},n={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},ar(e,i,r-i+1,[["enter",a,t],["enter",n,t],["exit",n,t],["exit",a,t]])),e}function Fx(e,t,r){let i=0;return a;function a(c){return e.enter("atxHeading"),n(c)}function n(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&i++<6?(e.consume(c),s):c===null||dt(c)?(e.exit("atxHeadingSequence"),o(c)):r(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Me(c)?Be(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||dt(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const Dx=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],jm=["pre","script","style","textarea"],Mx={concrete:!0,name:"htmlFlow",resolveTo:zx,tokenize:$x},Lx={partial:!0,tokenize:Bx},qx={partial:!0,tokenize:Ux};function zx(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function $x(e,t,r){const i=this;let a,n,s,o,l;return u;function u(I){return c(I)}function c(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),f}function f(I){return I===33?(e.consume(I),m):I===47?(e.consume(I),n=!0,b):I===63?(e.consume(I),a=3,i.interrupt?t:P):Bt(I)?(e.consume(I),s=String.fromCharCode(I),k):r(I)}function m(I){return I===45?(e.consume(I),a=2,d):I===91?(e.consume(I),a=5,o=0,p):Bt(I)?(e.consume(I),a=4,i.interrupt?t:P):r(I)}function d(I){return I===45?(e.consume(I),i.interrupt?t:P):r(I)}function p(I){const R="CDATA[";return I===R.charCodeAt(o++)?(e.consume(I),o===R.length?i.interrupt?t:O:p):r(I)}function b(I){return Bt(I)?(e.consume(I),s=String.fromCharCode(I),k):r(I)}function k(I){if(I===null||I===47||I===62||dt(I)){const R=I===47,M=s.toLowerCase();return!R&&!n&&jm.includes(M)?(a=1,i.interrupt?t(I):O(I)):Dx.includes(s.toLowerCase())?(a=6,R?(e.consume(I),g):i.interrupt?t(I):O(I)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(I):n?v(I):w(I))}return I===45||Lt(I)?(e.consume(I),s+=String.fromCharCode(I),k):r(I)}function g(I){return I===62?(e.consume(I),i.interrupt?t:O):r(I)}function v(I){return Me(I)?(e.consume(I),v):x(I)}function w(I){return I===47?(e.consume(I),x):I===58||I===95||Bt(I)?(e.consume(I),C):Me(I)?(e.consume(I),w):x(I)}function C(I){return I===45||I===46||I===58||I===95||Lt(I)?(e.consume(I),C):h(I)}function h(I){return I===61?(e.consume(I),y):Me(I)?(e.consume(I),h):w(I)}function y(I){return I===null||I===60||I===61||I===62||I===96?r(I):I===34||I===39?(e.consume(I),l=I,S):Me(I)?(e.consume(I),y):A(I)}function S(I){return I===l?(e.consume(I),l=null,_):I===null||he(I)?r(I):(e.consume(I),S)}function A(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||dt(I)?h(I):(e.consume(I),A)}function _(I){return I===47||I===62||Me(I)?w(I):r(I)}function x(I){return I===62?(e.consume(I),E):r(I)}function E(I){return I===null||he(I)?O(I):Me(I)?(e.consume(I),E):r(I)}function O(I){return I===45&&a===2?(e.consume(I),q):I===60&&a===1?(e.consume(I),J):I===62&&a===4?(e.consume(I),D):I===63&&a===3?(e.consume(I),P):I===93&&a===5?(e.consume(I),te):he(I)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Lx,U,j)(I)):I===null||he(I)?(e.exit("htmlFlowData"),j(I)):(e.consume(I),O)}function j(I){return e.check(qx,T,U)(I)}function T(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),F}function F(I){return I===null||he(I)?j(I):(e.enter("htmlFlowData"),O(I))}function q(I){return I===45?(e.consume(I),P):O(I)}function J(I){return I===47?(e.consume(I),s="",Y):O(I)}function Y(I){if(I===62){const R=s.toLowerCase();return jm.includes(R)?(e.consume(I),D):O(I)}return Bt(I)&&s.length<8?(e.consume(I),s+=String.fromCharCode(I),Y):O(I)}function te(I){return I===93?(e.consume(I),P):O(I)}function P(I){return I===62?(e.consume(I),D):I===45&&a===2?(e.consume(I),P):O(I)}function D(I){return I===null||he(I)?(e.exit("htmlFlowData"),U(I)):(e.consume(I),D)}function U(I){return e.exit("htmlFlow"),t(I)}}function Ux(e,t,r){const i=this;return a;function a(s){return he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n):r(s)}function n(s){return i.parser.lazy[i.now().line]?r(s):t(s)}}function Bx(e,t,r){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(is,t,r)}}const Vx={name:"htmlText",tokenize:Hx};function Hx(e,t,r){const i=this;let a,n,s;return o;function o(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),l}function l(P){return P===33?(e.consume(P),u):P===47?(e.consume(P),h):P===63?(e.consume(P),w):Bt(P)?(e.consume(P),A):r(P)}function u(P){return P===45?(e.consume(P),c):P===91?(e.consume(P),n=0,p):Bt(P)?(e.consume(P),v):r(P)}function c(P){return P===45?(e.consume(P),d):r(P)}function f(P){return P===null?r(P):P===45?(e.consume(P),m):he(P)?(s=f,J(P)):(e.consume(P),f)}function m(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?q(P):P===45?m(P):f(P)}function p(P){const D="CDATA[";return P===D.charCodeAt(n++)?(e.consume(P),n===D.length?b:p):r(P)}function b(P){return P===null?r(P):P===93?(e.consume(P),k):he(P)?(s=b,J(P)):(e.consume(P),b)}function k(P){return P===93?(e.consume(P),g):b(P)}function g(P){return P===62?q(P):P===93?(e.consume(P),g):b(P)}function v(P){return P===null||P===62?q(P):he(P)?(s=v,J(P)):(e.consume(P),v)}function w(P){return P===null?r(P):P===63?(e.consume(P),C):he(P)?(s=w,J(P)):(e.consume(P),w)}function C(P){return P===62?q(P):w(P)}function h(P){return Bt(P)?(e.consume(P),y):r(P)}function y(P){return P===45||Lt(P)?(e.consume(P),y):S(P)}function S(P){return he(P)?(s=S,J(P)):Me(P)?(e.consume(P),S):q(P)}function A(P){return P===45||Lt(P)?(e.consume(P),A):P===47||P===62||dt(P)?_(P):r(P)}function _(P){return P===47?(e.consume(P),q):P===58||P===95||Bt(P)?(e.consume(P),x):he(P)?(s=_,J(P)):Me(P)?(e.consume(P),_):q(P)}function x(P){return P===45||P===46||P===58||P===95||Lt(P)?(e.consume(P),x):E(P)}function E(P){return P===61?(e.consume(P),O):he(P)?(s=E,J(P)):Me(P)?(e.consume(P),E):_(P)}function O(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),a=P,j):he(P)?(s=O,J(P)):Me(P)?(e.consume(P),O):(e.consume(P),T)}function j(P){return P===a?(e.consume(P),a=void 0,F):P===null?r(P):he(P)?(s=j,J(P)):(e.consume(P),j)}function T(P){return P===null||P===34||P===39||P===60||P===61||P===96?r(P):P===47||P===62||dt(P)?_(P):(e.consume(P),T)}function F(P){return P===47||P===62||dt(P)?_(P):r(P)}function q(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):r(P)}function J(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),Y}function Y(P){return Me(P)?Be(e,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):te(P)}function te(P){return e.enter("htmlTextData"),s(P)}}const qf={name:"labelEnd",resolveAll:Jx,resolveTo:Yx,tokenize:Xx},Kx={tokenize:Zx},Wx={tokenize:Qx},Gx={tokenize:eS};function Jx(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const a=i.type==="labelImage"?4:2;i.type="data",t+=a}}return e.length!==r.length&&ar(e,0,e.length,r),e}function Yx(e,t){let r=e.length,i=0,a,n,s,o;for(;r--;)if(a=e[r][1],n){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[r][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(n=r,a.type!=="labelLink")){i=2;break}}else a.type==="labelEnd"&&(s=r);const l={type:e[n][1].type==="labelLink"?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[n][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[n+i+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=ur(o,e.slice(n+1,n+i+3)),o=ur(o,[["enter",c,t]]),o=ur(o,dl(t.parser.constructs.insideSpan.null,e.slice(n+i+4,s-3),t)),o=ur(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=ur(o,e.slice(s+1)),o=ur(o,[["exit",l,t]]),ar(e,n,e.length,o),e}function Xx(e,t,r){const i=this;let a=i.events.length,n,s;for(;a--;)if((i.events[a][1].type==="labelImage"||i.events[a][1].type==="labelLink")&&!i.events[a][1]._balanced){n=i.events[a][1];break}return o;function o(m){return n?n._inactive?f(m):(s=i.parser.defined.includes(Ar(i.sliceSerialize({start:n.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),l):r(m)}function l(m){return m===40?e.attempt(Kx,c,s?c:f)(m):m===91?e.attempt(Wx,c,s?u:f)(m):s?c(m):f(m)}function u(m){return e.attempt(Gx,c,f)(m)}function c(m){return t(m)}function f(m){return n._balanced=!0,r(m)}}function Zx(e,t,r){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),a}function a(f){return dt(f)?Ma(e,n)(f):n(f)}function n(f){return f===41?c(f):Iv(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return dt(f)?Ma(e,l)(f):c(f)}function o(f){return r(f)}function l(f){return f===34||f===39||f===40?jv(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return dt(f)?Ma(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function Qx(e,t,r){const i=this;return a;function a(o){return Tv.call(i,e,n,s,"reference","referenceMarker","referenceString")(o)}function n(o){return i.parser.defined.includes(Ar(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function eS(e,t,r){return i;function i(n){return e.enter("reference"),e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),a}function a(n){return n===93?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}const tS={name:"labelStartImage",resolveAll:qf.resolveAll,tokenize:rS};function rS(e,t,r){const i=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),n}function n(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(o):t(o)}}const nS={name:"labelStartLink",resolveAll:qf.resolveAll,tokenize:iS};function iS(e,t,r){const i=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),n}function n(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(s):t(s)}}const au={name:"lineEnding",tokenize:aS};function aS(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Be(e,t,"linePrefix")}}const To={name:"thematicBreak",tokenize:sS};function sS(e,t,r){let i=0,a;return n;function n(u){return e.enter("thematicBreak"),s(u)}function s(u){return a=u,o(u)}function o(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||he(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===a?(e.consume(u),i++,l):(e.exit("thematicBreakSequence"),Me(u)?Be(e,o,"whitespace")(u):o(u))}}const Yt={continuation:{tokenize:cS},exit:dS,name:"list",tokenize:uS},oS={partial:!0,tokenize:mS},lS={partial:!0,tokenize:fS};function uS(e,t,r){const i=this,a=i.events[i.events.length-1];let n=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return o;function o(d){const p=i.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!i.containerState.marker||d===i.containerState.marker:qc(d)){if(i.containerState.type||(i.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(To,r,u)(d):u(d);if(!i.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return r(d)}function l(d){return qc(d)&&++s<10?(e.consume(d),l):(!i.interrupt||s<2)&&(i.containerState.marker?d===i.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):r(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||d,e.check(is,i.interrupt?r:c,e.attempt(oS,m,f))}function c(d){return i.containerState.initialBlankLine=!0,n++,m(d)}function f(d){return Me(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),m):r(d)}function m(d){return i.containerState.size=n+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function cS(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(is,a,n);function a(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Be(e,t,"listItemIndent",i.containerState.size+1)(o)}function n(o){return i.containerState.furtherBlankLines||!Me(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(lS,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Be(e,e.attempt(Yt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function fS(e,t,r){const i=this;return Be(e,a,"listItemIndent",i.containerState.size+1);function a(n){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(n):r(n)}}function dS(e){e.exit(this.containerState.type)}function mS(e,t,r){const i=this;return Be(e,a,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(n){const s=i.events[i.events.length-1];return!Me(n)&&s&&s[1].type==="listItemPrefixWhitespace"?t(n):r(n)}}const Rm={name:"setextUnderline",resolveTo:pS,tokenize:hS};function pS(e,t){let r=e.length,i,a,n;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(a=r)}else e[r][1].type==="content"&&e.splice(r,1),!n&&e[r][1].type==="definition"&&(n=r);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",n?(e.splice(a,0,["enter",s,t]),e.splice(n+1,0,["exit",e[i][1],t]),e[i][1].end={...e[n][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function hS(e,t,r){const i=this;let a;return n;function n(u){let c=i.events.length,f;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){f=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),a=u,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===a?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),Me(u)?Be(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||he(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const gS={tokenize:yS};function yS(e){const t=this,r=e.attempt(is,i,e.attempt(this.parser.constructs.flowInitial,a,Be(e,e.attempt(this.parser.constructs.flow,a,e.attempt(xx,a)),"linePrefix")));return r;function i(n){if(n===null){e.consume(n);return}return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function a(n){if(n===null){e.consume(n);return}return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const vS={resolveAll:Nv()},bS=Rv("string"),kS=Rv("text");function Rv(e){return{resolveAll:Nv(e==="text"?wS:void 0),tokenize:t};function t(r){const i=this,a=this.parser.constructs[e],n=r.attempt(a,s,o);return s;function s(c){return u(c)?n(c):o(c)}function o(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),n(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=a[c];let m=-1;if(f)for(;++m<f.length;){const d=f[m];if(!d.previous||d.previous.call(i,i.previous))return!0}return!1}}}function Nv(e){return t;function t(r,i){let a=-1,n;for(;++a<=r.length;)n===void 0?r[a]&&r[a][1].type==="data"&&(n=a,a++):(!r[a]||r[a][1].type!=="data")&&(a!==n+2&&(r[n][1].end=r[a-1][1].end,r.splice(n+2,a-n-2),a=n+2),n=void 0);return e?e(r,i):r}}function wS(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],a=t.sliceStream(i);let n=a.length,s=-1,o=0,l;for(;n--;){const u=a[n];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){n++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){const u={type:r===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:n?s:i.start._bufferIndex+s,_index:i.start._index+n,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}const xS={42:Yt,43:Yt,45:Yt,48:Yt,49:Yt,50:Yt,51:Yt,52:Yt,53:Yt,54:Yt,55:Yt,56:Yt,57:Yt,62:Av},SS={91:Ox},CS={[-2]:iu,[-1]:iu,32:iu},ES={35:Rx,42:To,45:[Rm,To],60:Mx,61:Rm,95:To,96:Tm,126:Tm},AS={38:_v,92:Ov},OS={[-5]:au,[-4]:au,[-3]:au,33:tS,38:_v,42:zc,60:[nx,Vx],91:nS,92:[Tx,Ov],93:qf,95:zc,96:gx},_S={null:[zc,vS]},PS={null:[42,95]},IS={null:[]},TS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:PS,contentInitial:SS,disable:IS,document:xS,flow:ES,flowInitial:CS,insideSpan:_S,string:AS,text:OS},Symbol.toStringTag,{value:"Module"}));function jS(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const a={},n=[];let s=[],o=[];const l={attempt:S(h),check:S(y),consume:v,enter:w,exit:C,interrupt:S(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:p,parser:e,previous:null,sliceSerialize:m,sliceStream:d,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&n.push(t),u;function f(E){return s=ur(s,E),k(),s[s.length-1]!==null?[]:(A(t,0),u.events=dl(n,u.events,u),u.events)}function m(E,O){return NS(d(E),O)}function d(E){return RS(s,E)}function p(){const{_bufferIndex:E,_index:O,line:j,column:T,offset:F}=i;return{_bufferIndex:E,_index:O,line:j,column:T,offset:F}}function b(E){a[E.line]=E.column,x()}function k(){let E;for(;i._index<s.length;){const O=s[i._index];if(typeof O=="string")for(E=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===E&&i._bufferIndex<O.length;)g(O.charCodeAt(i._bufferIndex));else g(O)}}function g(E){c=c(E)}function v(E){he(E)?(i.line++,i.column=1,i.offset+=E===-3?2:1,x()):E!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=E}function w(E,O){const j=O||{};return j.type=E,j.start=p(),u.events.push(["enter",j,u]),o.push(j),j}function C(E){const O=o.pop();return O.end=p(),u.events.push(["exit",O,u]),O}function h(E,O){A(E,O.from)}function y(E,O){O.restore()}function S(E,O){return j;function j(T,F,q){let J,Y,te,P;return Array.isArray(T)?U(T):"tokenize"in T?U([T]):D(T);function D(z){return B;function B(H){const G=H!==null&&z[H],X=H!==null&&z.null,$=[...Array.isArray(G)?G:G?[G]:[],...Array.isArray(X)?X:X?[X]:[]];return U($)(H)}}function U(z){return J=z,Y=0,z.length===0?q:I(z[Y])}function I(z){return B;function B(H){return P=_(),te=z,z.partial||(u.currentConstruct=z),z.name&&u.parser.constructs.disable.null.includes(z.name)?M():z.tokenize.call(O?Object.assign(Object.create(u),O):u,l,R,M)(H)}}function R(z){return E(te,P),F}function M(z){return P.restore(),++Y<J.length?I(J[Y]):q}}}function A(E,O){E.resolveAll&&!n.includes(E)&&n.push(E),E.resolve&&ar(u.events,O,u.events.length-O,E.resolve(u.events.slice(O),u)),E.resolveTo&&(u.events=E.resolveTo(u.events,u))}function _(){const E=p(),O=u.previous,j=u.currentConstruct,T=u.events.length,F=Array.from(o);return{from:T,restore:q};function q(){i=E,u.previous=O,u.currentConstruct=j,u.events.length=T,o=F,x()}}function x(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function RS(e,t){const r=t.start._index,i=t.start._bufferIndex,a=t.end._index,n=t.end._bufferIndex;let s;if(r===a)s=[e[r].slice(i,n)];else{if(s=e.slice(r,a),i>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(i):s.shift()}n>0&&s.push(e[a].slice(0,n))}return s}function NS(e,t){let r=-1;const i=[];let a;for(;++r<e.length;){const n=e[r];let s;if(typeof n=="string")s=n;else switch(n){case-5:{s="\r";break}case-4:{s=`
|
|
22
|
+
`;break}case-3:{s=`\r
|
|
23
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(n)}a=n===-2,i.push(s)}return i.join("")}function FS(e){const i={constructs:Cv([TS,...(e||{}).extensions||[]]),content:a(Yw),defined:[],document:a(Zw),flow:a(gS),lazy:{},string:a(bS),text:a(kS)};return i;function a(n){return s;function s(o){return jS(i,n,o)}}}function DS(e){for(;!Pv(e););return e}const Nm=/[\0\t\n\r]/g;function MS(){let e=1,t="",r=!0,i;return a;function a(n,s,o){const l=[];let u,c,f,m,d;for(n=t+(typeof n=="string"?n.toString():new TextDecoder(s||void 0).decode(n)),f=0,t="",r&&(n.charCodeAt(0)===65279&&f++,r=void 0);f<n.length;){if(Nm.lastIndex=f,u=Nm.exec(n),m=u&&u.index!==void 0?u.index:n.length,d=n.charCodeAt(m),!u){t=n.slice(f);break}if(d===10&&f===m&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),f<m&&(l.push(n.slice(f,m)),e+=m-f),d){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:i=!0,e=1}f=m+1}return o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const LS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qS(e){return e.replace(LS,zS)}function zS(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),n=a===120||a===88;return Ev(r.slice(n?2:1),n?16:10)}return Lf(r)||e}const Fv={}.hasOwnProperty;function $S(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),US(r)(DS(FS(r).document().write(MS()(e,t,!0))))}function US(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(we),autolinkProtocol:_,autolinkEmail:_,atxHeading:n(ie),blockQuote:n(X),characterEscape:_,characterReference:_,codeFenced:n($),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:n($,s),codeText:n(L,s),codeTextData:_,data:_,codeFlowValue:_,definition:n(W),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:n(K),hardBreakEscape:n(re),hardBreakTrailing:n(re),htmlFlow:n(ue,s),htmlFlowData:_,htmlText:n(ue,s),htmlTextData:_,image:n(ge),label:s,link:n(we),listItem:n(Pe),listItemValue:m,listOrdered:n(ke,f),listUnordered:n(ke),paragraph:n(de),reference:I,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:n(ie),strong:n(Ve),thematicBreak:n(ve)},exit:{atxHeading:l(),atxHeadingSequence:h,autolink:l(),autolinkEmail:G,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:M,characterReferenceMarkerNumeric:M,characterReferenceValue:z,characterReference:B,codeFenced:l(k),codeFencedFence:b,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:x,codeIndented:l(g),codeText:l(F),codeTextData:x,data:x,definition:l(),definitionDestinationString:C,definitionLabelString:v,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(j),htmlFlowData:x,htmlText:l(T),htmlTextData:x,image:l(J),label:te,labelText:Y,lineEnding:E,link:l(q),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:R,resourceDestinationString:P,resourceTitleString:D,resource:U,setextHeading:l(A),setextHeadingLineSequence:S,setextHeadingText:y,strong:l(),thematicBreak:l()}};Dv(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(Z){let Q={type:"root",children:[]};const ee={stack:[Q],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:r},pe=[];let ce=-1;for(;++ce<Z.length;)if(Z[ce][1].type==="listOrdered"||Z[ce][1].type==="listUnordered")if(Z[ce][0]==="enter")pe.push(ce);else{const ct=pe.pop();ce=a(Z,ct,ce)}for(ce=-1;++ce<Z.length;){const ct=t[Z[ce][0]];Fv.call(ct,Z[ce][1].type)&&ct[Z[ce][1].type].call(Object.assign({sliceSerialize:Z[ce][2].sliceSerialize},ee),Z[ce][1])}if(ee.tokenStack.length>0){const ct=ee.tokenStack[ee.tokenStack.length-1];(ct[1]||Fm).call(ee,void 0,ct[0])}for(Q.position={start:pn(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:pn(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},ce=-1;++ce<t.transforms.length;)Q=t.transforms[ce](Q)||Q;return Q}function a(Z,Q,ee){let pe=Q-1,ce=-1,ct=!1,Fe,He,bt,Et;for(;++pe<=ee;){const ot=Z[pe];switch(ot[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ot[0]==="enter"?ce++:ce--,Et=void 0;break}case"lineEndingBlank":{ot[0]==="enter"&&(Fe&&!Et&&!ce&&!bt&&(bt=pe),Et=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Et=void 0}if(!ce&&ot[0]==="enter"&&ot[1].type==="listItemPrefix"||ce===-1&&ot[0]==="exit"&&(ot[1].type==="listUnordered"||ot[1].type==="listOrdered")){if(Fe){let kt=pe;for(He=void 0;kt--;){const pt=Z[kt];if(pt[1].type==="lineEnding"||pt[1].type==="lineEndingBlank"){if(pt[0]==="exit")continue;He&&(Z[He][1].type="lineEndingBlank",ct=!0),pt[1].type="lineEnding",He=kt}else if(!(pt[1].type==="linePrefix"||pt[1].type==="blockQuotePrefix"||pt[1].type==="blockQuotePrefixWhitespace"||pt[1].type==="blockQuoteMarker"||pt[1].type==="listItemIndent"))break}bt&&(!He||bt<He)&&(Fe._spread=!0),Fe.end=Object.assign({},He?Z[He][1].start:ot[1].end),Z.splice(He||pe,0,["exit",Fe,ot[2]]),pe++,ee++}if(ot[1].type==="listItemPrefix"){const kt={type:"listItem",_spread:!1,start:Object.assign({},ot[1].start),end:void 0};Fe=kt,Z.splice(pe,0,["enter",kt,ot[2]]),pe++,ee++,bt=void 0,Et=!0}}}return Z[Q][1]._spread=ct,ee}function n(Z,Q){return ee;function ee(pe){o.call(this,Z(pe),pe),Q&&Q.call(this,pe)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(Z,Q,ee){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([Q,ee||void 0]),Z.position={start:pn(Q.start),end:void 0}}function l(Z){return Q;function Q(ee){Z&&Z.call(this,ee),u.call(this,ee)}}function u(Z,Q){const ee=this.stack.pop(),pe=this.tokenStack.pop();if(pe)pe[0].type!==Z.type&&(Q?Q.call(this,Z,pe[0]):(pe[1]||Fm).call(this,Z,pe[0]));else throw new Error("Cannot close `"+Z.type+"` ("+Da({start:Z.start,end:Z.end})+"): it’s not open");ee.position.end=pn(Z.end)}function c(){return Mf(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(Z){if(this.data.expectingFirstListItemValue){const Q=this.stack[this.stack.length-2];Q.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function d(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.lang=Z}function p(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.meta=Z}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.value=Z.replace(/(\r?\n|\r)$/g,"")}function v(Z){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.label=Q,ee.identifier=Ar(this.sliceSerialize(Z)).toLowerCase()}function w(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.title=Z}function C(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.url=Z}function h(Z){const Q=this.stack[this.stack.length-1];if(!Q.depth){const ee=this.sliceSerialize(Z).length;Q.depth=ee}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function S(Z){const Q=this.stack[this.stack.length-1];Q.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function _(Z){const ee=this.stack[this.stack.length-1].children;let pe=ee[ee.length-1];(!pe||pe.type!=="text")&&(pe=st(),pe.position={start:pn(Z.start),end:void 0},ee.push(pe)),this.stack.push(pe)}function x(Z){const Q=this.stack.pop();Q.value+=this.sliceSerialize(Z),Q.position.end=pn(Z.end)}function E(Z){const Q=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ee=Q.children[Q.children.length-1];ee.position.end=pn(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Q.type)&&(_.call(this,Z),x.call(this,Z))}function O(){this.data.atHardBreak=!0}function j(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.value=Z}function T(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.value=Z}function F(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.value=Z}function q(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const Q=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=Q,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function J(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const Q=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=Q,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function Y(Z){const Q=this.sliceSerialize(Z),ee=this.stack[this.stack.length-2];ee.label=qS(Q),ee.identifier=Ar(Q).toLowerCase()}function te(){const Z=this.stack[this.stack.length-1],Q=this.resume(),ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,ee.type==="link"){const pe=Z.children;ee.children=pe}else ee.alt=Q}function P(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.url=Z}function D(){const Z=this.resume(),Q=this.stack[this.stack.length-1];Q.title=Z}function U(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function R(Z){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.label=Q,ee.identifier=Ar(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function M(Z){this.data.characterReferenceType=Z.type}function z(Z){const Q=this.sliceSerialize(Z),ee=this.data.characterReferenceType;let pe;ee?(pe=Ev(Q,ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):pe=Lf(Q);const ce=this.stack[this.stack.length-1];ce.value+=pe}function B(Z){const Q=this.stack.pop();Q.position.end=pn(Z.end)}function H(Z){x.call(this,Z);const Q=this.stack[this.stack.length-1];Q.url=this.sliceSerialize(Z)}function G(Z){x.call(this,Z);const Q=this.stack[this.stack.length-1];Q.url="mailto:"+this.sliceSerialize(Z)}function X(){return{type:"blockquote",children:[]}}function $(){return{type:"code",lang:null,meta:null,value:""}}function L(){return{type:"inlineCode",value:""}}function W(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function K(){return{type:"emphasis",children:[]}}function ie(){return{type:"heading",depth:0,children:[]}}function re(){return{type:"break"}}function ue(){return{type:"html",value:""}}function ge(){return{type:"image",title:null,url:"",alt:null}}function we(){return{type:"link",title:null,url:"",children:[]}}function ke(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Pe(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function de(){return{type:"paragraph",children:[]}}function Ve(){return{type:"strong",children:[]}}function st(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}function pn(e){return{line:e.line,column:e.column,offset:e.offset}}function Dv(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?Dv(e,i):BS(e,i)}}function BS(e,t){let r;for(r in t)if(Fv.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function Fm(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Da({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Da({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Da({start:t.start,end:t.end})+") is still open")}function VS(e){const t=this;t.parser=r;function r(i){return $S(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function HS(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function KS(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
24
|
+
`}]}function WS(e,t){const r=t.value?t.value+`
|
|
25
|
+
`:"",i={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(i.className=["language-"+a[0]]);let n={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(n.data={meta:t.meta}),e.patch(t,n),n=e.applyData(t,n),n={type:"element",tagName:"pre",properties:{},children:[n]},e.patch(t,n),n}function GS(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function JS(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function YS(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=ia(i.toLowerCase()),n=e.footnoteOrder.indexOf(i);let s,o=e.footnoteCounts.get(i);o===void 0?(o=0,e.footnoteOrder.push(i),s=e.footnoteOrder.length):s=n+1,o+=1,e.footnoteCounts.set(i,o);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function XS(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ZS(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Mv(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const a=e.all(t),n=a[0];n&&n.type==="text"?n.value="["+n.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=i:a.push({type:"text",value:i}),a}function QS(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return Mv(e,t);const a={src:ia(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(a.title=i.title);const n={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,n),e.applyData(t,n)}function eC(e,t){const r={src:ia(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function tC(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function rC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return Mv(e,t);const a={href:ia(i.url||"")};i.title!==null&&i.title!==void 0&&(a.title=i.title);const n={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nC(e,t){const r={href:ia(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function iC(e,t,r){const i=e.all(t),a=r?aC(r):Lv(t),n={},s=[];if(typeof t.checked=="boolean"){const c=i[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},i.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),n.className=["task-list-item"]}let o=-1;for(;++o<i.length;){const c=i[o];(a||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
26
|
+
`}),c.type==="element"&&c.tagName==="p"&&!a?s.push(...c.children):s.push(c)}const l=i[i.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
27
|
+
`});const u={type:"element",tagName:"li",properties:n,children:s};return e.patch(t,u),e.applyData(t,u)}function aC(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=Lv(r[i])}return t}function Lv(e){const t=e.spread;return t??e.children.length>1}function sC(e,t){const r={},i=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++a<i.length;){const s=i[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const n={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,n),e.applyData(t,n)}function oC(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lC(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function uC(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function cC(e,t){const r=e.all(t),i=r.shift(),a=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],s),a.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=Rf(t.children[1]),l=yv(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),a.push(s)}const n={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,n),e.applyData(t,n)}function fC(e,t,r){const i=r?r.children:void 0,n=(i?i.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<o;){const f=t.children[l],m={},d=s?s[l]:void 0;d&&(m.align=d);let p={type:"element",tagName:n,properties:m,children:[]};f&&(p.children=e.all(f),e.patch(f,p),p=e.applyData(f,p)),u.push(p)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function dC(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const Dm=9,Mm=32;function mC(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),a=0;const n=[];for(;i;)n.push(Lm(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=r.exec(t);return n.push(Lm(t.slice(a),a>0,!1)),n.join("")}function Lm(e,t,r){let i=0,a=e.length;if(t){let n=e.codePointAt(i);for(;n===Dm||n===Mm;)i++,n=e.codePointAt(i)}if(r){let n=e.codePointAt(a-1);for(;n===Dm||n===Mm;)a--,n=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function pC(e,t){const r={type:"text",value:mC(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function hC(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const gC={blockquote:HS,break:KS,code:WS,delete:GS,emphasis:JS,footnoteReference:YS,heading:XS,html:ZS,imageReference:QS,image:eC,inlineCode:tC,linkReference:rC,link:nC,listItem:iC,list:sC,paragraph:oC,root:lC,strong:uC,table:cC,tableCell:dC,tableRow:fC,text:pC,thematicBreak:hC,toml:Is,yaml:Is,definition:Is,footnoteDefinition:Is};function Is(){}const qv=-1,ml=0,La=1,Vo=2,zf=3,$f=4,Uf=5,Bf=6,zv=7,$v=8,yC=typeof self=="object"?self:globalThis,qm=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new yC[e](t)},vC=(e,t)=>{const r=(a,n)=>(e.set(n,a),a),i=a=>{if(e.has(a))return e.get(a);const[n,s]=t[a];switch(n){case ml:case qv:return r(s,a);case La:{const o=r([],a);for(const l of s)o.push(i(l));return o}case Vo:{const o=r({},a);for(const[l,u]of s)o[i(l)]=i(u);return o}case zf:return r(new Date(s),a);case $f:{const{source:o,flags:l}=s;return r(new RegExp(o,l),a)}case Uf:{const o=r(new Map,a);for(const[l,u]of s)o.set(i(l),i(u));return o}case Bf:{const o=r(new Set,a);for(const l of s)o.add(i(l));return o}case zv:{const{name:o,message:l}=s;return r(qm(o,l),a)}case $v:return r(BigInt(s),a);case"BigInt":return r(Object(BigInt(s)),a);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(qm(n,s),a)};return i},zm=e=>vC(new Map,e)(0),Ii="",{toString:bC}={},{keys:kC}=Object,ka=e=>{const t=typeof e;if(t!=="object"||!e)return[ml,t];const r=bC.call(e).slice(8,-1);switch(r){case"Array":return[La,Ii];case"Object":return[Vo,Ii];case"Date":return[zf,Ii];case"RegExp":return[$f,Ii];case"Map":return[Uf,Ii];case"Set":return[Bf,Ii];case"DataView":return[La,r]}return r.includes("Array")?[La,r]:r.includes("Error")?[zv,r]:[Vo,r]},Ts=([e,t])=>e===ml&&(t==="function"||t==="symbol"),wC=(e,t,r,i)=>{const a=(s,o)=>{const l=i.push(s)-1;return r.set(o,l),l},n=s=>{if(r.has(s))return r.get(s);let[o,l]=ka(s);switch(o){case ml:{let c=s;switch(l){case"bigint":o=$v,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([qv],s)}return a([o,c],s)}case La:{if(l){let m=s;return l==="DataView"?m=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(m=new Uint8Array(s)),a([l,[...m]],s)}const c=[],f=a([o,c],s);for(const m of s)c.push(n(m));return f}case Vo:{if(l)switch(l){case"BigInt":return a([l,s.toString()],s);case"Boolean":case"Number":case"String":return a([l,s.valueOf()],s)}if(t&&"toJSON"in s)return n(s.toJSON());const c=[],f=a([o,c],s);for(const m of kC(s))(e||!Ts(ka(s[m])))&&c.push([n(m),n(s[m])]);return f}case zf:return a([o,s.toISOString()],s);case $f:{const{source:c,flags:f}=s;return a([o,{source:c,flags:f}],s)}case Uf:{const c=[],f=a([o,c],s);for(const[m,d]of s)(e||!(Ts(ka(m))||Ts(ka(d))))&&c.push([n(m),n(d)]);return f}case Bf:{const c=[],f=a([o,c],s);for(const m of s)(e||!Ts(ka(m)))&&c.push(n(m));return f}}const{message:u}=s;return a([o,{name:l,message:u}],s)};return n},$m=(e,{json:t,lossy:r}={})=>{const i=[];return wC(!(t||r),!!t,new Map,i)(e),i},Ho=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?zm($m(e,t)):structuredClone(e):(e,t)=>zm($m(e,t));function xC(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function SC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function CC(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||xC,i=e.options.footnoteBackLabel||SC,a=e.options.footnoteLabel||"Footnotes",n=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),m=ia(f.toLowerCase());let d=0;const p=[],b=e.footnoteCounts.get(f);for(;b!==void 0&&++d<=b;){p.length>0&&p.push({type:"text",value:" "});let v=typeof r=="string"?r:r(l,d);typeof v=="string"&&(v={type:"text",value:v}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,d),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const k=c[c.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const v=k.children[k.children.length-1];v&&v.type==="text"?v.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...p)}else c.push(...p);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(c,!0)};e.patch(u,g),o.push(g)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n,properties:{...Ho(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
28
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
29
|
+
`}]}}const pl=(function(e){if(e==null)return _C;if(typeof e=="function")return hl(e);if(typeof e=="object")return Array.isArray(e)?EC(e):AC(e);if(typeof e=="string")return OC(e);throw new Error("Expected function, string, or object as test")});function EC(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=pl(e[r]);return hl(i);function i(...a){let n=-1;for(;++n<t.length;)if(t[n].apply(this,a))return!0;return!1}}function AC(e){const t=e;return hl(r);function r(i){const a=i;let n;for(n in e)if(a[n]!==t[n])return!1;return!0}}function OC(e){return hl(t);function t(r){return r&&r.type===e}}function hl(e){return t;function t(r,i,a){return!!(PC(r)&&e.call(this,r,typeof i=="number"?i:void 0,a||void 0))}}function _C(){return!0}function PC(e){return e!==null&&typeof e=="object"&&"type"in e}const Uv=[],IC=!0,$c=!1,TC="skip";function Bv(e,t,r,i){let a;typeof t=="function"&&typeof r!="function"?(i=r,r=t):a=t;const n=pl(a),s=i?-1:1;o(e,void 0,[])();function o(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return m;function m(){let d=Uv,p,b,k;if((!t||n(l,u,c[c.length-1]||void 0))&&(d=jC(r(l,c)),d[0]===$c))return d;if("children"in l&&l.children){const g=l;if(g.children&&d[0]!==TC)for(b=(i?g.children.length:-1)+s,k=c.concat(g);b>-1&&b<g.children.length;){const v=g.children[b];if(p=o(v,b,k)(),p[0]===$c)return p;b=typeof p[1]=="number"?p[1]:b+s}}return d}}}function jC(e){return Array.isArray(e)?e:typeof e=="number"?[IC,e]:e==null?Uv:[e]}function Vf(e,t,r,i){let a,n,s;typeof t=="function"&&typeof r!="function"?(n=void 0,s=t,a=r):(n=t,s=r,a=i),Bv(e,n,o,a);function o(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}const Uc={}.hasOwnProperty,RC={};function NC(e,t){const r=t||RC,i=new Map,a=new Map,n=new Map,s={...gC,...r.handlers},o={all:u,applyData:DC,definitionById:i,footnoteById:a,footnoteCounts:n,footnoteOrder:[],handlers:s,one:l,options:r,patch:FC,wrap:LC};return Vf(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?i:a,m=String(c.identifier).toUpperCase();f.has(m)||f.set(m,c)}}),o;function l(c,f){const m=c.type,d=o.handlers[m];if(Uc.call(o.handlers,m)&&d)return d(o,c,f);if(o.options.passThrough&&o.options.passThrough.includes(m)){if("children"in c){const{children:b,...k}=c,g=Ho(k);return g.children=o.all(c),g}return Ho(c)}return(o.options.unknownHandler||MC)(o,c,f)}function u(c){const f=[];if("children"in c){const m=c.children;let d=-1;for(;++d<m.length;){const p=o.one(m[d],c);if(p){if(d&&m[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=Um(p.value)),!Array.isArray(p)&&p.type==="element")){const b=p.children[0];b&&b.type==="text"&&(b.value=Um(b.value))}Array.isArray(p)?f.push(...p):f.push(p)}}}return f}}function FC(e,t){e.position&&(t.position=xw(e))}function DC(e,t){let r=t;if(e&&e.data){const i=e.data.hName,a=e.data.hChildren,n=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const s="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:s}}r.type==="element"&&n&&Object.assign(r.properties,Ho(n)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function MC(e,t){const r=t.data||{},i="value"in t&&!(Uc.call(r,"hProperties")||Uc.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function LC(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
|
|
30
|
+
`});++i<e.length;)i&&r.push({type:"text",value:`
|
|
31
|
+
`}),r.push(e[i]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
32
|
+
`}),r}function Um(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Bm(e,t){const r=NC(e,t),i=r.one(e,void 0),a=CC(r),n=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&n.children.push({type:"text",value:`
|
|
33
|
+
`},a),n}function qC(e,t){return e&&"run"in e?async function(r,i){const a=Bm(r,{file:i,...t});await e.run(a,i)}:function(r,i){return Bm(r,{file:i,...e||t})}}function Vm(e){if(e)throw e}var su,Hm;function zC(){if(Hm)return su;Hm=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},n=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var m;for(m in u);return typeof m>"u"||e.call(u,m)},s=function(u,c){r&&c.name==="__proto__"?r(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},o=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(i)return i(u,c).value}else return;return u[c]};return su=function l(){var u,c,f,m,d,p,b=arguments[0],k=1,g=arguments.length,v=!1;for(typeof b=="boolean"&&(v=b,b=arguments[1]||{},k=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});k<g;++k)if(u=arguments[k],u!=null)for(c in u)f=o(b,c),m=o(u,c),b!==m&&(v&&m&&(n(m)||(d=a(m)))?(d?(d=!1,p=f&&a(f)?f:[]):p=f&&n(f)?f:{},s(b,{name:c,newValue:l(v,p,m)})):typeof m<"u"&&s(b,{name:c,newValue:m}));return b},su}var $C=zC();const ou=Wr($C);function Bc(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function UC(){const e=[],t={run:r,use:i};return t;function r(...a){let n=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...a);function o(l,...u){const c=e[++n];let f=-1;if(l){s(l);return}for(;++f<a.length;)(u[f]===null||u[f]===void 0)&&(u[f]=a[f]);a=u,c?BC(c,o)(...u):s(null,...u)}}function i(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function BC(e,t){let r;return i;function i(...s){const o=e.length>s.length;let l;o&&s.push(a);try{l=e.apply(this,s)}catch(u){const c=u;if(o&&r)throw c;return a(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(n,a):l instanceof Error?a(l):n(l))}function a(s,...o){r||(r=!0,t(s,...o))}function n(s){a(null,s)}}const Lr={basename:VC,dirname:HC,extname:KC,join:WC,sep:"/"};function VC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');as(e);let r=0,i=-1,a=e.length,n;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(n){r=a+1;break}}else s<0&&(n=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(i=a):(o=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)}function HC(e){if(as(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function KC(e){as(e);let t=e.length,r=-1,i=0,a=-1,n=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){i=t+1;break}continue}r<0&&(s=!0,r=t+1),o===46?a<0?a=t:n!==1&&(n=1):a>-1&&(n=-1)}return a<0||r<0||n===0||n===1&&a===r-1&&a===i+1?"":e.slice(a,r)}function WC(...e){let t=-1,r;for(;++t<e.length;)as(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":GC(r)}function GC(e){as(e);const t=e.codePointAt(0)===47;let r=JC(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function JC(e,t){let r="",i=0,a=-1,n=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(a===s-1||n===1))if(a!==s-1&&n===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",i=0):(r=r.slice(0,l),i=r.length-1-r.lastIndexOf("/")),a=s,n=0;continue}}else if(r.length>0){r="",i=0,a=s,n=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,n=0}else o===46&&n>-1?n++:n=-1}return r}function as(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const YC={cwd:XC};function XC(){return"/"}function Vc(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ZC(e){if(typeof e=="string")e=new URL(e);else if(!Vc(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return QC(e)}function QC(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const lu=["history","path","basename","stem","extname","dirname"];class Vv{constructor(t){let r;t?Vc(t)?r={path:t}:typeof t=="string"||eE(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":YC.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<lu.length;){const n=lu[i];n in r&&r[n]!==void 0&&r[n]!==null&&(this[n]=n==="history"?[...r[n]]:r[n])}let a;for(a in r)lu.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?Lr.basename(this.path):void 0}set basename(t){cu(t,"basename"),uu(t,"basename"),this.path=Lr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Lr.dirname(this.path):void 0}set dirname(t){Km(this.basename,"dirname"),this.path=Lr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Lr.extname(this.path):void 0}set extname(t){if(uu(t,"extname"),Km(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Lr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Vc(t)&&(t=ZC(t)),cu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Lr.basename(this.path,this.extname):void 0}set stem(t){cu(t,"stem"),uu(t,"stem"),this.path=Lr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const a=this.message(t,r,i);throw a.fatal=!0,a}info(t,r,i){const a=this.message(t,r,i);return a.fatal=void 0,a}message(t,r,i){const a=new zt(t,r,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function uu(e,t){if(e&&e.includes(Lr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Lr.sep+"`")}function cu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Km(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function eE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const tE=(function(e){const i=this.constructor.prototype,a=i[e],n=function(){return a.apply(n,arguments)};return Object.setPrototypeOf(n,i),n}),rE={}.hasOwnProperty;class Hf extends tE{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=UC()}copy(){const t=new Hf;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(ou(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(mu("data",this.frozen),this.namespace[t]=r,this):rE.call(this.namespace,t)&&this.namespace[t]||void 0:t?(mu("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const a=r.call(t,...i);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=js(t),i=this.parser||this.Parser;return fu("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),fu("process",this.parser||this.Parser),du("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(n,s){const o=js(t),l=i.parse(o);i.run(l,o,function(c,f,m){if(c||!f||!m)return u(c);const d=f,p=i.stringify(d,m);aE(p)?m.value=p:m.result=p,u(c,m)});function u(c,f){c||!f?s(c):n?n(f):r(void 0,f)}}}processSync(t){let r=!1,i;return this.freeze(),fu("processSync",this.parser||this.Parser),du("processSync",this.compiler||this.Compiler),this.process(t,a),Gm("processSync","process",r),i;function a(n,s){r=!0,Vm(n),i=s}}run(t,r,i){Wm(t),this.freeze();const a=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?n(void 0,i):new Promise(n);function n(s,o){const l=js(r);a.run(t,l,u);function u(c,f,m){const d=f||t;c?o(c):s?s(d):i(void 0,d,m)}}}runSync(t,r){let i=!1,a;return this.run(t,r,n),Gm("runSync","run",i),a;function n(s,o){Vm(s),a=o,i=!0}}stringify(t,r){this.freeze();const i=js(r),a=this.compiler||this.Compiler;return du("stringify",a),Wm(t),a(t,i)}use(t,...r){const i=this.attachers,a=this.namespace;if(mu("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function n(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(a.settings=ou(!0,a.settings,u.settings))}function o(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];n(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,m=-1;for(;++f<i.length;)if(i[f][0]===u){m=f;break}if(m===-1)i.push([u,...c]);else if(c.length>0){let[d,...p]=c;const b=i[m][1];Bc(b)&&Bc(d)&&(d=ou(!0,b,d)),i[m]=[u,d,...p]}}}}const nE=new Hf().freeze();function fu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function du(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function mu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Wm(e){if(!Bc(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Gm(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function js(e){return iE(e)?e:new Vv(e)}function iE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function aE(e){return typeof e=="string"||sE(e)}function sE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const oE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Jm=[],Ym={allowDangerousHtml:!0},lE=/^(https?|ircs?|mailto|xmpp)$/i,uE=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function cE(e){const t=fE(e),r=dE(e);return mE(t.runSync(t.parse(r),r),e)}function fE(e){const t=e.rehypePlugins||Jm,r=e.remarkPlugins||Jm,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ym}:Ym;return nE().use(VS).use(r).use(qC,i).use(t)}function dE(e){const t=e.children||"",r=new Vv;return typeof t=="string"&&(r.value=t),r}function mE(e,t){const r=t.allowedElements,i=t.allowElement,a=t.components,n=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||pE;for(const c of uE)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+oE+c.id,void 0);return Vf(e,u),Ow(e,{Fragment:N.Fragment,components:a,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function u(c,f,m){if(c.type==="raw"&&m&&typeof f=="number")return s?m.children.splice(f,1):m.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let d;for(d in nu)if(Object.hasOwn(nu,d)&&Object.hasOwn(c.properties,d)){const p=c.properties[d],b=nu[d];(b===null||b.includes(c.tagName))&&(c.properties[d]=l(String(p||""),d,c))}}if(c.type==="element"){let d=r?!r.includes(c.tagName):n?n.includes(c.tagName):!1;if(!d&&i&&typeof f=="number"&&(d=!i(c,f,m)),d&&m&&typeof f=="number")return o&&c.children?m.children.splice(f,1,...c.children):m.children.splice(f,1),f}}}function pE(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||r!==-1&&t>r||i!==-1&&t>i||lE.test(e.slice(0,t))?e:""}function Xm(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,a=r.indexOf(t);for(;a!==-1;)i++,a=r.indexOf(t,a+t.length);return i}function hE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function gE(e,t,r){const a=pl((r||{}).ignore||[]),n=yE(t);let s=-1;for(;++s<n.length;)Bv(e,"text",o);function o(u,c){let f=-1,m;for(;++f<c.length;){const d=c[f],p=m?m.children:void 0;if(a(d,p?p.indexOf(d):void 0,m))return;m=d}if(m)return l(u,c)}function l(u,c){const f=c[c.length-1],m=n[s][0],d=n[s][1];let p=0;const k=f.children.indexOf(u);let g=!1,v=[];m.lastIndex=0;let w=m.exec(u.value);for(;w;){const C=w.index,h={index:w.index,input:w.input,stack:[...c,u]};let y=d(...w,h);if(typeof y=="string"&&(y=y.length>0?{type:"text",value:y}:void 0),y===!1?m.lastIndex=C+1:(p!==C&&v.push({type:"text",value:u.value.slice(p,C)}),Array.isArray(y)?v.push(...y):y&&v.push(y),p=C+w[0].length,g=!0),!m.global)break;w=m.exec(u.value)}return g?(p<u.value.length&&v.push({type:"text",value:u.value.slice(p)}),f.children.splice(k,1,...v)):v=[u],k+v.length}}function yE(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<r.length;){const a=r[i];t.push([vE(a[0]),bE(a[1])])}return t}function vE(e){return typeof e=="string"?new RegExp(hE(e),"g"):e}function bE(e){return typeof e=="function"?e:function(){return e}}const pu="phrasing",hu=["autolink","link","image","label"];function kE(){return{transforms:[OE],enter:{literalAutolink:xE,literalAutolinkEmail:gu,literalAutolinkHttp:gu,literalAutolinkWww:gu},exit:{literalAutolink:AE,literalAutolinkEmail:EE,literalAutolinkHttp:SE,literalAutolinkWww:CE}}}function wE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:pu,notInConstruct:hu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:pu,notInConstruct:hu},{character:":",before:"[ps]",after:"\\/",inConstruct:pu,notInConstruct:hu}]}}function xE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function gu(e){this.config.enter.autolinkProtocol.call(this,e)}function SE(e){this.config.exit.autolinkProtocol.call(this,e)}function CE(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function EE(e){this.config.exit.autolinkEmail.call(this,e)}function AE(e){this.exit(e)}function OE(e){gE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_E],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),PE]],{ignore:["link","linkReference"]})}function _E(e,t,r,i,a){let n="";if(!Hv(a)||(/^w/i.test(t)&&(r=t+r,t="",n="http://"),!IE(r)))return!1;const s=TE(r+i);if(!s[0])return!1;const o={type:"link",title:null,url:n+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function PE(e,t,r,i){return!Hv(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function IE(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function TE(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],i=r.indexOf(")");const a=Xm(e,"(");let n=Xm(e,")");for(;i!==-1&&a>n;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),n++;return[e,r]}function Hv(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||oi(r)||fl(r))&&(!t||r!==47)}Kv.peek=zE;function jE(){this.buffer()}function RE(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function NE(){this.buffer()}function FE(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function DE(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ar(this.sliceSerialize(e)).toLowerCase(),r.label=t}function ME(e){this.exit(e)}function LE(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Ar(this.sliceSerialize(e)).toLowerCase(),r.label=t}function qE(e){this.exit(e)}function zE(){return"["}function Kv(e,t,r,i){const a=r.createTracker(i);let n=a.move("[^");const s=r.enter("footnoteReference"),o=r.enter("reference");return n+=a.move(r.safe(r.associationId(e),{after:"]",before:n})),o(),s(),n+=a.move("]"),n}function $E(){return{enter:{gfmFootnoteCallString:jE,gfmFootnoteCall:RE,gfmFootnoteDefinitionLabelString:NE,gfmFootnoteDefinition:FE},exit:{gfmFootnoteCallString:DE,gfmFootnoteCall:ME,gfmFootnoteDefinitionLabelString:LE,gfmFootnoteDefinition:qE}}}function UE(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Kv},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,a,n,s){const o=n.createTracker(s);let l=o.move("[^");const u=n.enter("footnoteDefinition"),c=n.enter("label");return l+=o.move(n.safe(n.associationId(i),{before:l,after:"]"})),c(),l+=o.move("]:"),i.children&&i.children.length>0&&(o.shift(4),l+=o.move((t?`
|
|
34
|
+
`:" ")+n.indentLines(n.containerFlow(i,o.current()),t?Wv:BE))),u(),l}}function BE(e,t,r){return t===0?e:Wv(e,t,r)}function Wv(e,t,r){return(r?"":" ")+e}const VE=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Gv.peek=JE;function HE(){return{canContainEols:["delete"],enter:{strikethrough:WE},exit:{strikethrough:GE}}}function KE(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:VE}],handlers:{delete:Gv}}}function WE(e){this.enter({type:"delete",children:[]},e)}function GE(e){this.exit(e)}function Gv(e,t,r,i){const a=r.createTracker(i),n=r.enter("strikethrough");let s=a.move("~~");return s+=r.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),n(),s}function JE(){return"~"}function YE(e){return e.length}function XE(e,t){const r=t||{},i=(r.align||[]).concat(),a=r.stringLength||YE,n=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const b=[],k=[];let g=-1;for(e[c].length>u&&(u=e[c].length);++g<e[c].length;){const v=ZE(e[c][g]);if(r.alignDelimiters!==!1){const w=a(v);k[g]=w,(l[g]===void 0||w>l[g])&&(l[g]=w)}b.push(v)}s[c]=b,o[c]=k}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<u;)n[f]=Zm(i[f]);else{const b=Zm(i);for(;++f<u;)n[f]=b}f=-1;const m=[],d=[];for(;++f<u;){const b=n[f];let k="",g="";b===99?(k=":",g=":"):b===108?k=":":b===114&&(g=":");let v=r.alignDelimiters===!1?1:Math.max(1,l[f]-k.length-g.length);const w=k+"-".repeat(v)+g;r.alignDelimiters!==!1&&(v=k.length+v+g.length,v>l[f]&&(l[f]=v),d[f]=v),m[f]=w}s.splice(1,0,m),o.splice(1,0,d),c=-1;const p=[];for(;++c<s.length;){const b=s[c],k=o[c];f=-1;const g=[];for(;++f<u;){const v=b[f]||"";let w="",C="";if(r.alignDelimiters!==!1){const h=l[f]-(k[f]||0),y=n[f];y===114?w=" ".repeat(h):y===99?h%2?(w=" ".repeat(h/2+.5),C=" ".repeat(h/2-.5)):(w=" ".repeat(h/2),C=w):C=" ".repeat(h)}r.delimiterStart!==!1&&!f&&g.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&v==="")&&(r.delimiterStart!==!1||f)&&g.push(" "),r.alignDelimiters!==!1&&g.push(w),g.push(v),r.alignDelimiters!==!1&&g.push(C),r.padding!==!1&&g.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&g.push("|")}p.push(r.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return p.join(`
|
|
35
|
+
`)}function ZE(e){return e==null?"":String(e)}function Zm(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function QE(e,t,r,i){const a=r.enter("blockquote"),n=r.createTracker(i);n.move("> "),n.shift(2);const s=r.indentLines(r.containerFlow(e,n.current()),eA);return a(),s}function eA(e,t,r){return">"+(r?"":" ")+e}function tA(e,t){return Qm(e,t.inConstruct,!0)&&!Qm(e,t.notInConstruct,!1)}function Qm(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function ep(e,t,r,i){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
|
|
36
|
+
`&&tA(r.stack,r.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
37
|
+
`}function rA(e,t){const r=String(e);let i=r.indexOf(t),a=i,n=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===a?++n>s&&(s=n):n=1,a=i+t.length,i=r.indexOf(t,a);return s}function nA(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function iA(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function aA(e,t,r,i){const a=iA(r),n=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(nA(e,r)){const f=r.enter("codeIndented"),m=r.indentLines(n,sA);return f(),m}const o=r.createTracker(i),l=a.repeat(Math.max(rA(n,a)+1,3)),u=r.enter("codeFenced");let c=o.move(l);if(e.lang){const f=r.enter(`codeFencedLang${s}`);c+=o.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=r.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(r.safe(e.meta,{before:c,after:`
|
|
38
|
+
`,encode:["`"],...o.current()})),f()}return c+=o.move(`
|
|
39
|
+
`),n&&(c+=o.move(n+`
|
|
40
|
+
`)),c+=o.move(l),u(),c}function sA(e,t,r){return(r?"":" ")+e}function Kf(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function oA(e,t,r,i){const a=Kf(r),n=a==='"'?"Quote":"Apostrophe",s=r.enter("definition");let o=r.enter("label");const l=r.createTracker(i);let u=l.move("[");return u+=l.move(r.safe(r.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
|
|
41
|
+
`,...l.current()}))),o(),e.title&&(o=r.enter(`title${n}`),u+=l.move(" "+a),u+=l.move(r.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),o()),s(),u}function lA(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Ha(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ko(e,t,r){const i=Ji(e),a=Ji(t);return i===void 0?a===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Jv.peek=uA;function Jv(e,t,r,i){const a=lA(r),n=r.enter("emphasis"),s=r.createTracker(i),o=s.move(a);let l=s.move(r.containerPhrasing(e,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),c=Ko(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Ha(u)+l.slice(1));const f=l.charCodeAt(l.length-1),m=Ko(i.after.charCodeAt(0),f,a);m.inside&&(l=l.slice(0,-1)+Ha(f));const d=s.move(a);return n(),r.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+l+d}function uA(e,t,r){return r.options.emphasis||"*"}function cA(e,t){let r=!1;return Vf(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,$c}),!!((!e.depth||e.depth<3)&&Mf(e)&&(t.options.setext||r))}function fA(e,t,r,i){const a=Math.max(Math.min(6,e.depth||1),1),n=r.createTracker(i);if(cA(e,r)){const c=r.enter("headingSetext"),f=r.enter("phrasing"),m=r.containerPhrasing(e,{...n.current(),before:`
|
|
42
|
+
`,after:`
|
|
43
|
+
`});return f(),c(),m+`
|
|
44
|
+
`+(a===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
|
|
45
|
+
`))+1))}const s="#".repeat(a),o=r.enter("headingAtx"),l=r.enter("phrasing");n.move(s+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
|
|
46
|
+
`,...n.current()});return/^[\t ]/.test(u)&&(u=Ha(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),o(),u}Yv.peek=dA;function Yv(e){return e.value||""}function dA(){return"<"}Xv.peek=mA;function Xv(e,t,r,i){const a=Kf(r),n=a==='"'?"Quote":"Apostrophe",s=r.enter("image");let o=r.enter("label");const l=r.createTracker(i);let u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=r.enter(`title${n}`),u+=l.move(" "+a),u+=l.move(r.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),o()),u+=l.move(")"),s(),u}function mA(){return"!"}Zv.peek=pA;function Zv(e,t,r,i){const a=e.referenceType,n=r.enter("imageReference");let s=r.enter("label");const o=r.createTracker(i);let l=o.move("![");const u=r.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=c,n(),a==="full"||!u||u!==f?l+=o.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function pA(){return"!"}Qv.peek=hA;function Qv(e,t,r){let i=e.value||"",a="`",n=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(i);)a+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++n<r.unsafe.length;){const s=r.unsafe[n],o=r.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(i);){let u=l.index;i.charCodeAt(u)===10&&i.charCodeAt(u-1)===13&&u--,i=i.slice(0,u)+" "+i.slice(l.index+1)}}return a+i+a}function hA(){return"`"}function eb(e,t){const r=Mf(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}tb.peek=gA;function tb(e,t,r,i){const a=Kf(r),n=a==='"'?"Quote":"Apostrophe",s=r.createTracker(i);let o,l;if(eb(e,r)){const c=r.stack;r.stack=[],o=r.enter("autolink");let f=s.move("<");return f+=s.move(r.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),r.stack=c,f}o=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${n}`),u+=s.move(" "+a),u+=s.move(r.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),u+=s.move(")"),o(),u}function gA(e,t,r){return eb(e,r)?"<":"["}rb.peek=yA;function rb(e,t,r,i){const a=e.referenceType,n=r.enter("linkReference");let s=r.enter("label");const o=r.createTracker(i);let l=o.move("[");const u=r.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=c,n(),a==="full"||!u||u!==f?l+=o.move(f+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function yA(){return"["}function Wf(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function vA(e){const t=Wf(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function bA(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function nb(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function kA(e,t,r,i){const a=r.enter("list"),n=r.bulletCurrent;let s=e.ordered?bA(r):Wf(r);const o=e.ordered?s==="."?")":".":vA(r);let l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),nb(r)===s&&c){let f=-1;for(;++f<e.children.length;){const m=e.children[f];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),r.bulletCurrent=s;const u=r.containerFlow(e,i);return r.bulletLastUsed=s,r.bulletCurrent=n,a(),u}function wA(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function xA(e,t,r,i){const a=wA(r);let n=r.bulletCurrent||Wf(r);t&&t.type==="list"&&t.ordered&&(n=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+n);let s=n.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=r.createTracker(i);o.move(n+" ".repeat(s-n.length)),o.shift(s);const l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,o.current()),c);return l(),u;function c(f,m,d){return m?(d?"":" ".repeat(s))+f:(d?n:n+" ".repeat(s-n.length))+f}}function SA(e,t,r,i){const a=r.enter("paragraph"),n=r.enter("phrasing"),s=r.containerPhrasing(e,i);return n(),a(),s}const CA=pl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function EA(e,t,r,i){return(e.children.some(function(s){return CA(s)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function AA(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ib.peek=OA;function ib(e,t,r,i){const a=AA(r),n=r.enter("strong"),s=r.createTracker(i),o=s.move(a+a);let l=s.move(r.containerPhrasing(e,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),c=Ko(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Ha(u)+l.slice(1));const f=l.charCodeAt(l.length-1),m=Ko(i.after.charCodeAt(0),f,a);m.inside&&(l=l.slice(0,-1)+Ha(f));const d=s.move(a+a);return n(),r.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},o+l+d}function OA(e,t,r){return r.options.strong||"*"}function _A(e,t,r,i){return r.safe(e.value,i)}function PA(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function IA(e,t,r){const i=(nb(r)+(r.options.ruleSpaces?" ":"")).repeat(PA(r));return r.options.ruleSpaces?i.slice(0,-1):i}const ab={blockquote:QE,break:ep,code:aA,definition:oA,emphasis:Jv,hardBreak:ep,heading:fA,html:Yv,image:Xv,imageReference:Zv,inlineCode:Qv,link:tb,linkReference:rb,list:kA,listItem:xA,paragraph:SA,root:EA,strong:ib,text:_A,thematicBreak:IA};function TA(){return{enter:{table:jA,tableData:tp,tableHeader:tp,tableRow:NA},exit:{codeText:FA,table:RA,tableData:yu,tableHeader:yu,tableRow:yu}}}function jA(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function RA(e){this.exit(e),this.data.inTable=void 0}function NA(e){this.enter({type:"tableRow",children:[]},e)}function yu(e){this.exit(e)}function tp(e){this.enter({type:"tableCell",children:[]},e)}function FA(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,DA));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function DA(e,t){return t==="|"?t:e}function MA(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
47
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:s,tableCell:l,tableRow:o}};function s(d,p,b,k){return u(c(d,b,k),d.align)}function o(d,p,b,k){const g=f(d,b,k),v=u([g]);return v.slice(0,v.indexOf(`
|
|
48
|
+
`))}function l(d,p,b,k){const g=b.enter("tableCell"),v=b.enter("phrasing"),w=b.containerPhrasing(d,{...k,before:n,after:n});return v(),g(),w}function u(d,p){return XE(d,{align:p,alignDelimiters:i,padding:r,stringLength:a})}function c(d,p,b){const k=d.children;let g=-1;const v=[],w=p.enter("table");for(;++g<k.length;)v[g]=f(k[g],p,b);return w(),v}function f(d,p,b){const k=d.children;let g=-1;const v=[],w=p.enter("tableRow");for(;++g<k.length;)v[g]=l(k[g],d,p,b);return w(),v}function m(d,p,b){let k=ab.inlineCode(d,p,b);return b.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function LA(){return{exit:{taskListCheckValueChecked:rp,taskListCheckValueUnchecked:rp,paragraph:zA}}}function qA(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:$A}}}function rp(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function zA(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const i=r.children[0];if(i&&i.type==="text"){const a=t.children;let n=-1,s;for(;++n<a.length;){const o=a[n];if(o.type==="paragraph"){s=o;break}}s===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function $A(e,t,r,i){const a=e.children[0],n=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=r.createTracker(i);n&&o.move(s);let l=ab.listItem(e,t,r,{...i,...o.current()});return n&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function UA(){return[kE(),$E(),HE(),TA(),LA()]}function BA(e){return{extensions:[wE(),UE(e),KE(),MA(e),qA()]}}const VA={tokenize:YA,partial:!0},sb={tokenize:XA,partial:!0},ob={tokenize:ZA,partial:!0},lb={tokenize:QA,partial:!0},HA={tokenize:eO,partial:!0},ub={name:"wwwAutolink",tokenize:GA,previous:fb},cb={name:"protocolAutolink",tokenize:JA,previous:db},an={name:"emailAutolink",tokenize:WA,previous:mb},Jr={};function KA(){return{text:Jr}}let Wn=48;for(;Wn<123;)Jr[Wn]=an,Wn++,Wn===58?Wn=65:Wn===91&&(Wn=97);Jr[43]=an;Jr[45]=an;Jr[46]=an;Jr[95]=an;Jr[72]=[an,cb];Jr[104]=[an,cb];Jr[87]=[an,ub];Jr[119]=[an,ub];function WA(e,t,r){const i=this;let a,n;return s;function s(f){return!Hc(f)||!mb.call(i,i.previous)||Gf(i.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return Hc(f)?(e.consume(f),o):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(HA,c,u)(f):f===45||f===95||Lt(f)?(n=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),a=!0,l}function c(f){return n&&a&&Bt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function GA(e,t,r){const i=this;return a;function a(s){return s!==87&&s!==119||!fb.call(i,i.previous)||Gf(i.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(VA,e.attempt(sb,e.attempt(ob,n),r),r)(s))}function n(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function JA(e,t,r){const i=this;let a="",n=!1;return s;function s(f){return(f===72||f===104)&&db.call(i,i.previous)&&!Gf(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(f),e.consume(f),o):r(f)}function o(f){if(Bt(f)&&a.length<5)return a+=String.fromCodePoint(f),e.consume(f),o;if(f===58){const m=a.toLowerCase();if(m==="http"||m==="https")return e.consume(f),l}return r(f)}function l(f){return f===47?(e.consume(f),n?u:(n=!0,l)):r(f)}function u(f){return f===null||Bo(f)||dt(f)||oi(f)||fl(f)?r(f):e.attempt(sb,e.attempt(ob,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function YA(e,t,r){let i=0;return a;function a(s){return(s===87||s===119)&&i<3?(i++,e.consume(s),a):s===46&&i===3?(e.consume(s),n):r(s)}function n(s){return s===null?r(s):t(s)}}function XA(e,t,r){let i,a,n;return s;function s(u){return u===46||u===95?e.check(lb,l,o)(u):u===null||dt(u)||oi(u)||u!==45&&fl(u)?l(u):(n=!0,e.consume(u),s)}function o(u){return u===95?i=!0:(a=i,i=void 0),e.consume(u),s}function l(u){return a||i||!n?r(u):t(u)}}function ZA(e,t){let r=0,i=0;return a;function a(s){return s===40?(r++,e.consume(s),a):s===41&&i<r?n(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(lb,t,n)(s):s===null||dt(s)||oi(s)?t(s):(e.consume(s),a)}function n(s){return s===41&&i++,e.consume(s),a}}function QA(e,t,r){return i;function i(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),i):o===38?(e.consume(o),n):o===93?(e.consume(o),a):o===60||o===null||dt(o)||oi(o)?t(o):r(o)}function a(o){return o===null||o===40||o===91||dt(o)||oi(o)?t(o):i(o)}function n(o){return Bt(o)?s(o):r(o)}function s(o){return o===59?(e.consume(o),i):Bt(o)?(e.consume(o),s):r(o)}}function eO(e,t,r){return i;function i(n){return e.consume(n),a}function a(n){return Lt(n)?r(n):t(n)}}function fb(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||dt(e)}function db(e){return!Bt(e)}function mb(e){return!(e===47||Hc(e))}function Hc(e){return e===43||e===45||e===46||e===95||Lt(e)}function Gf(e){let t=e.length,r=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){r=!0;break}if(i._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const tO={tokenize:uO,partial:!0};function rO(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:sO,continuation:{tokenize:oO},exit:lO}},text:{91:{name:"gfmFootnoteCall",tokenize:aO},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:nO,resolveTo:iO}}}}function nO(e,t,r){const i=this;let a=i.events.length;const n=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;for(;a--;){const l=i.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return r(l);const u=Ar(i.sliceSerialize({start:s.end,end:i.now()}));return u.codePointAt(0)!==94||!n.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function iO(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const n={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},n.start),end:Object.assign({},n.end)},o=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",n,t],["enter",s,t],["exit",s,t],["exit",n,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...o),e}function aO(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?r(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(n>999||f===93&&!s||f===null||f===91||dt(f))return r(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return a.includes(Ar(i.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return dt(f)||(s=!0),n++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),n++,u):u(f)}}function sO(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n,s=0,o;return l;function l(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(p)}function c(p){if(s>999||p===93&&!o||p===null||p===91||dt(p))return r(p);if(p===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return n=Ar(i.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return dt(p)||(o=!0),s++,e.consume(p),p===92?f:c}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}function m(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a.includes(n)||a.push(n),Be(e,d,"gfmFootnoteDefinitionWhitespace")):r(p)}function d(p){return t(p)}}function oO(e,t,r){return e.check(is,t,e.attempt(tO,t,r))}function lO(e){e.exit("gfmFootnoteDefinition")}function uO(e,t,r){const i=this;return Be(e,a,"gfmFootnoteDefinitionIndent",5);function a(n){const s=i.events[i.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(n):r(n)}}function cO(e){let r=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:n,resolveAll:a};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function a(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},m=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",f,o]],d=o.parser.constructs.insideSpan.null;d&&ar(m,m.length,0,dl(d,s.slice(u+1,l),o)),ar(m,m.length,0,[["exit",f,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),ar(s,u-1,l-u+3,m),l=u+m.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function n(s,o,l){const u=this.previous,c=this.events;let f=0;return m;function m(p){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(p):(s.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const b=Ji(u);if(p===126)return f>1?l(p):(s.consume(p),f++,d);if(f<2&&!r)return l(p);const k=s.exit("strikethroughSequenceTemporary"),g=Ji(p);return k._open=!g||g===2&&!!b,k._close=!b||b===2&&!!g,o(p)}}}class fO{constructor(){this.map=[]}add(t,r,i){dO(this,t,r,i)}consume(t){if(this.map.sort(function(n,s){return n[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const i=[];for(;r>0;)r-=1,i.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];i.push(t.slice()),t.length=0;let a=i.pop();for(;a;){for(const n of a)t.push(n);a=i.pop()}this.map.length=0}}function dO(e,t,r,i){let a=0;if(!(r===0&&i.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=r,e.map[a][2].push(...i);return}a+=1}e.map.push([t,r,i])}}function mO(e,t){let r=!1;const i=[];for(;t<e.length;){const a=e[t];if(r){if(a[0]==="enter")a[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const n=i.length-1;i[n]=i[n]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return i}function pO(){return{flow:{null:{name:"table",tokenize:hO,resolveAll:gO}}}}function hO(e,t,r){const i=this;let a=0,n=0,s;return o;function o(x){let E=i.events.length-1;for(;E>-1;){const T=i.events[E][1].type;if(T==="lineEnding"||T==="linePrefix")E--;else break}const O=E>-1?i.events[E][1].type:null,j=O==="tableHead"||O==="tableRow"?y:l;return j===y&&i.parser.lazy[i.now().line]?r(x):j(x)}function l(x){return e.enter("tableHead"),e.enter("tableRow"),u(x)}function u(x){return x===124||(s=!0,n+=1),c(x)}function c(x){return x===null?r(x):he(x)?n>1?(n=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),d):r(x):Me(x)?Be(e,c,"whitespace")(x):(n+=1,s&&(s=!1,a+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(x)))}function f(x){return x===null||x===124||dt(x)?(e.exit("data"),c(x)):(e.consume(x),x===92?m:f)}function m(x){return x===92||x===124?(e.consume(x),f):f(x)}function d(x){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(x):(e.enter("tableDelimiterRow"),s=!1,Me(x)?Be(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):p(x))}function p(x){return x===45||x===58?k(x):x===124?(s=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),b):h(x)}function b(x){return Me(x)?Be(e,k,"whitespace")(x):k(x)}function k(x){return x===58?(n+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),g):x===45?(n+=1,g(x)):x===null||he(x)?C(x):h(x)}function g(x){return x===45?(e.enter("tableDelimiterFiller"),v(x)):h(x)}function v(x){return x===45?(e.consume(x),v):x===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(x))}function w(x){return Me(x)?Be(e,C,"whitespace")(x):C(x)}function C(x){return x===124?p(x):x===null||he(x)?!s||a!==n?h(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):h(x)}function h(x){return r(x)}function y(x){return e.enter("tableRow"),S(x)}function S(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),S):x===null||he(x)?(e.exit("tableRow"),t(x)):Me(x)?Be(e,S,"whitespace")(x):(e.enter("data"),A(x))}function A(x){return x===null||x===124||dt(x)?(e.exit("data"),S(x)):(e.consume(x),x===92?_:A)}function _(x){return x===92||x===124?(e.consume(x),A):A(x)}}function gO(e,t){let r=-1,i=!0,a=0,n=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,f;const m=new fO;for(;++r<e.length;){const d=e[r],p=d[1];d[0]==="enter"?p.type==="tableHead"?(o=!1,l!==0&&(np(m,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},m.add(r,0,[["enter",u,t]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(i=!0,f=void 0,n=[0,0,0,0],s=[0,r+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},m.add(r,0,[["enter",c,t]])),a=p.type==="tableDelimiterRow"?2:c?3:1):a&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(n[1]!==0&&(s[0]=s[1],f=Rs(m,t,n,a,void 0,f),n=[0,0,0,0]),s[2]=r)):p.type==="tableCellDivider"&&(i?i=!1:(n[1]!==0&&(s[0]=s[1],f=Rs(m,t,n,a,void 0,f)),n=s,s=[n[1],r,0,0])):p.type==="tableHead"?(o=!0,l=r):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=r,n[1]!==0?(s[0]=s[1],f=Rs(m,t,n,a,r,f)):s[1]!==0&&(f=Rs(m,t,s,a,r,f)),a=0):a&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&np(m,t,l,u,c),m.consume(t.events),r=-1;++r<t.events.length;){const d=t.events[r];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=mO(t.events,r))}return e}function Rs(e,t,r,i,a,n){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(n.end=Object.assign({},Di(t.events,r[0])),e.add(r[0],0,[["exit",n,t]]));const l=Di(t.events,r[1]);if(n={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",n,t]]),r[2]!==0){const u=Di(t.events,r[2]),c=Di(t.events,r[3]),f={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",f,t]]),i!==2){const m=t.events[r[2]],d=t.events[r[3]];if(m[1].end=Object.assign({},d[1].end),m[1].type="chunkText",m[1].contentType="text",r[3]>r[2]+1){const p=r[2]+1,b=r[3]-r[2]-1;e.add(p,b,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return a!==void 0&&(n.end=Object.assign({},Di(t.events,a)),e.add(a,0,[["exit",n,t]]),n=void 0),n}function np(e,t,r,i,a){const n=[],s=Di(t.events,r);a&&(a.end=Object.assign({},s),n.push(["exit",a,t])),i.end=Object.assign({},s),n.push(["exit",i,t]),e.add(r+1,0,n)}function Di(e,t){const r=e[t],i=r[0]==="enter"?"start":"end";return r[1][i]}const yO={name:"tasklistCheck",tokenize:bO};function vO(){return{text:{91:yO}}}function bO(e,t,r){const i=this;return a;function a(l){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),n)}function n(l){return dt(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(l)}function o(l){return he(l)?t(l):Me(l)?e.check({tokenize:kO},t,r)(l):r(l)}}function kO(e,t,r){return Be(e,i,"whitespace");function i(a){return a===null?r(a):t(a)}}function wO(e){return Cv([KA(),rO(),cO(e),pO(),vO()])}const xO={};function SO(e){const t=this,r=e||xO,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),n=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(wO(r)),n.push(UA()),s.push(BA(r))}const pb=cE,hb=e=>N.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function Ir(e){const t=e.components||{};return t.a||(t.a=hb),N.jsx(pb,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}const CO=["a","p","em","strong","img","ul","ol","li","h1","h2","h3","h4","h5","h6","table","thead","tbody","tr","th","td","code","pre","blockquote","hr","del","br","input"];function Kc(e){const t=e.components||{};return t.a||(t.a=hb),N.jsx(pb,{...e,remarkPlugins:[SO],components:t,allowedElements:CO})}/*!
|
|
23
49
|
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
24
50
|
* http://github.com/janl/mustache.js
|
|
25
|
-
*/var
|
|
26
|
-
`&&(
|
|
27
|
-
`),s=0;s<n.length;s++)n[s].length&&(s>0||!
|
|
28
|
-
`)};
|
|
51
|
+
*/var EO=Object.prototype.toString,aa=Array.isArray||function(t){return EO.call(t)==="[object Array]"};function Jf(e){return typeof e=="function"}function AO(e){return aa(e)?"array":typeof e}function vu(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function ip(e,t){return e!=null&&typeof e=="object"&&t in e}function OO(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var _O=RegExp.prototype.test;function PO(e,t){return _O.call(e,t)}var IO=/\S/;function TO(e){return!PO(IO,e)}var jO={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function RO(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return jO[r]})}var NO=/\s*/,FO=/\s+/,ap=/\s*=/,DO=/\s*\}/,MO=/#|\^|\/|>|\{|&|=|!/;function LO(e,t){if(!e)return[];var r=!1,i=[],a=[],n=[],s=!1,o=!1,l="",u=0;function c(){if(s&&!o)for(;n.length;)delete a[n.pop()];else n=[];s=!1,o=!1}var f,m,d;function p(A){if(typeof A=="string"&&(A=A.split(FO,2)),!aa(A)||A.length!==2)throw new Error("Invalid tags: "+A);f=new RegExp(vu(A[0])+"\\s*"),m=new RegExp("\\s*"+vu(A[1])),d=new RegExp("\\s*"+vu("}"+A[1]))}p(t||pr.tags);for(var b=new ss(e),k,g,v,w,C,h;!b.eos();){if(k=b.pos,v=b.scanUntil(f),v)for(var y=0,S=v.length;y<S;++y)w=v.charAt(y),TO(w)?(n.push(a.length),l+=w):(o=!0,r=!0,l+=" "),a.push(["text",w,k,k+1]),k+=1,w===`
|
|
52
|
+
`&&(c(),l="",u=0,r=!1);if(!b.scan(f))break;if(s=!0,g=b.scan(MO)||"name",b.scan(NO),g==="="?(v=b.scanUntil(ap),b.scan(ap),b.scanUntil(m)):g==="{"?(v=b.scanUntil(d),b.scan(DO),b.scanUntil(m),g="&"):v=b.scanUntil(m),!b.scan(m))throw new Error("Unclosed tag at "+b.pos);if(g==">"?C=[g,v,k,b.pos,l,u,r]:C=[g,v,k,b.pos],u++,a.push(C),g==="#"||g==="^")i.push(C);else if(g==="/"){if(h=i.pop(),!h)throw new Error('Unopened section "'+v+'" at '+k);if(h[1]!==v)throw new Error('Unclosed section "'+h[1]+'" at '+k)}else g==="name"||g==="{"||g==="&"?o=!0:g==="="&&p(v)}if(c(),h=i.pop(),h)throw new Error('Unclosed section "'+h[1]+'" at '+b.pos);return zO(qO(a))}function qO(e){for(var t=[],r,i,a=0,n=e.length;a<n;++a)r=e[a],r&&(r[0]==="text"&&i&&i[0]==="text"?(i[1]+=r[1],i[3]=r[3]):(t.push(r),i=r));return t}function zO(e){for(var t=[],r=t,i=[],a,n,s=0,o=e.length;s<o;++s)switch(a=e[s],a[0]){case"#":case"^":r.push(a),i.push(a),r=a[4]=[];break;case"/":n=i.pop(),n[5]=a[2],r=i.length>0?i[i.length-1][4]:t;break;default:r.push(a)}return t}function ss(e){this.string=e,this.tail=e,this.pos=0}ss.prototype.eos=function(){return this.tail===""};ss.prototype.scan=function(t){var r=this.tail.match(t);if(!r||r.index!==0)return"";var i=r[0];return this.tail=this.tail.substring(i.length),this.pos+=i.length,i};ss.prototype.scanUntil=function(t){var r=this.tail.search(t),i;switch(r){case-1:i=this.tail,this.tail="";break;case 0:i="";break;default:i=this.tail.substring(0,r),this.tail=this.tail.substring(r)}return this.pos+=i.length,i};function Yi(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Yi.prototype.push=function(t){return new Yi(t,this)};Yi.prototype.lookup=function(t){var r=this.cache,i;if(r.hasOwnProperty(t))i=r[t];else{for(var a=this,n,s,o,l=!1;a;){if(t.indexOf(".")>0)for(n=a.view,s=t.split("."),o=0;n!=null&&o<s.length;)o===s.length-1&&(l=ip(n,s[o])||OO(n,s[o])),n=n[s[o++]];else n=a.view[t],l=ip(a.view,t);if(l){i=n;break}a=a.parent}r[t]=i}return Jf(i)&&(i=i.call(this.view)),i};function Gt(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}Gt.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Gt.prototype.parse=function(t,r){var i=this.templateCache,a=t+":"+(r||pr.tags).join(":"),n=typeof i<"u",s=n?i.get(a):void 0;return s==null&&(s=LO(t,r),n&&i.set(a,s)),s};Gt.prototype.render=function(t,r,i,a){var n=this.getConfigTags(a),s=this.parse(t,n),o=r instanceof Yi?r:new Yi(r,void 0);return this.renderTokens(s,o,i,t,a)};Gt.prototype.renderTokens=function(t,r,i,a,n){for(var s="",o,l,u,c=0,f=t.length;c<f;++c)u=void 0,o=t[c],l=o[0],l==="#"?u=this.renderSection(o,r,i,a,n):l==="^"?u=this.renderInverted(o,r,i,a,n):l===">"?u=this.renderPartial(o,r,i,n):l==="&"?u=this.unescapedValue(o,r):l==="name"?u=this.escapedValue(o,r,n):l==="text"&&(u=this.rawValue(o)),u!==void 0&&(s+=u);return s};Gt.prototype.renderSection=function(t,r,i,a,n){var s=this,o="",l=r.lookup(t[1]);function u(m){return s.render(m,r,i,n)}if(l){if(aa(l))for(var c=0,f=l.length;c<f;++c)o+=this.renderTokens(t[4],r.push(l[c]),i,a,n);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")o+=this.renderTokens(t[4],r.push(l),i,a,n);else if(Jf(l)){if(typeof a!="string")throw new Error("Cannot use higher-order sections without the original template");l=l.call(r.view,a.slice(t[3],t[5]),u),l!=null&&(o+=l)}else o+=this.renderTokens(t[4],r,i,a,n);return o}};Gt.prototype.renderInverted=function(t,r,i,a,n){var s=r.lookup(t[1]);if(!s||aa(s)&&s.length===0)return this.renderTokens(t[4],r,i,a,n)};Gt.prototype.indentPartial=function(t,r,i){for(var a=r.replace(/[^ \t]/g,""),n=t.split(`
|
|
53
|
+
`),s=0;s<n.length;s++)n[s].length&&(s>0||!i)&&(n[s]=a+n[s]);return n.join(`
|
|
54
|
+
`)};Gt.prototype.renderPartial=function(t,r,i,a){if(i){var n=this.getConfigTags(a),s=Jf(i)?i(t[1]):i[t[1]];if(s!=null){var o=t[6],l=t[5],u=t[4],c=s;l==0&&u&&(c=this.indentPartial(s,u,o));var f=this.parse(c,n);return this.renderTokens(f,r,i,c,a)}}};Gt.prototype.unescapedValue=function(t,r){var i=r.lookup(t[1]);if(i!=null)return i};Gt.prototype.escapedValue=function(t,r,i){var a=this.getConfigEscape(i)||pr.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&a===pr.escape?String(n):a(n)};Gt.prototype.rawValue=function(t){return t[1]};Gt.prototype.getConfigTags=function(t){return aa(t)?t:t&&typeof t=="object"?t.tags:void 0};Gt.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!aa(t))return t.escape};var pr={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){Ka.templateCache=e},get templateCache(){return Ka.templateCache}},Ka=new Gt;pr.clearCache=function(){return Ka.clearCache()};pr.parse=function(t,r){return Ka.parse(t,r)};pr.render=function(t,r,i,a){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+AO(t)+'" was given as the first argument for mustache#render(template, view, partials)');return Ka.render(t,r,i,a)};pr.escape=RO;pr.Scanner=ss;pr.Context=Yi;pr.Writer=Gt;const bu=e=>e&&typeof e=="object"&&!Array.isArray(e),Wc=(e,...t)=>{if(!t.length)return e;const r=t.shift();if(bu(e)&&bu(r))for(const i in r)bu(r[i])?(e[i]||Object.assign(e,{[i]:{}}),Wc(e[i],r[i])):Object.assign(e,{[i]:r[i]});return Wc(e,...t)},$O=(e,t)=>{const r=t.type||"string",i=e["ui:classNames"]||"",a=e["ui:widget"]||"default",n=e["ui:field"]||"default";return`${i} fcode-type-${r} fcode-widget-${a} fcode-field-${n}`.trim()},UO=([e,t],r,i)=>{const{ui:a,uiSchema:n,["ui:schema"]:s}=t;return{...r===0&&i.focusOnFirst&&{"ui:autofocus":!0},...i.isSensitive&&{"ui:widget":"password"},...s,...n,...a,...t.properties&&{...Wo(t.properties,i.globalUiSchema)},...t.oneOf&&Wc({},...t.oneOf.map(o=>Wo(o.properties,i.globalUiSchema))),...i.globalUiSchema[e]}},Wo=(e,t,r=!1)=>Object.entries(e??{}).reduce((i,[a,n],s)=>{const o=UO([a,n],s,{focusOnFirst:r,isSensitive:n.isSensitive,globalUiSchema:t});return{...i,[a]:{...o,"ui:classNames":$O(o,n)}}},{}),Gc=(e,t)=>{if(typeof e!="object")return e;const r={};for(const i in e)if(e.hasOwnProperty(i)&&!t.includes(i)){const a=e[i];typeof a=="object"?Array.isArray(a)?r[i]=a.map(n=>Gc(n,t)):r[i]=Gc(a,t):r[i]=a}return r},BO=e=>{const{embedFormOptions:t,ui:r,uiSchema:i,...a}=e;return Gc(a,["ui","isSensitive","isTransient"])},VO=e=>{const t={...e.schema.ui,...e.schema.uiSchema};let r={};if(e.schema.dependencies){const i=Wo(e.schema.dependencies,t);for(const a in i){const n=i[a];delete n["ui:classNames"],r={...r,...n}}}return{...t,...r,...Wo(e.schema.properties,t)}},gb=e=>(Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"&&gb(r),r&&typeof r=="object"&&!Object.keys(r).length&&delete e[t]}),e),HO=(e,t)=>{let r=!1;const i=JSON.stringify(e).replace(/{\s*"\$ref"\s*:\s*"#\/variables\/(.+?)"\s*}/gm,(a,n)=>t[n]?JSON.stringify(t[n]):(r=!0,"{}"));return r?JSON.stringify(gb(JSON.parse(i))):i},KO=(e,t)=>{const r=(t==null?void 0:t.variables)??{};return JSON.parse(pr.render(HO(e,r),r))};function yb(e){const t=KO(e,e.schema.embedFormOptions);return{schema:BO(t.schema),uiSchema:VO(t),embedFormOptions:{...t.schema.embedFormOptions}}}var ku={exports:{}};/*!
|
|
29
55
|
Copyright (c) 2018 Jed Watson.
|
|
30
56
|
Licensed under the MIT License (MIT), see
|
|
31
57
|
http://jedwatson.github.io/classnames
|
|
32
|
-
*/var rp;function Gw(){return rp||(rp=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(n=i(n,a(o)))}return n}function a(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return r.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var s="";for(var o in n)t.call(n,o)&&n[o]&&(s=i(s,o));return s}function i(n,s){return s?n?n+" "+s:n+s:n}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Gc)),Gc.exports}var Jw=Gw();const Pi=Pn(Jw);function Ae(e){return typeof e!="object"||e===null||typeof e.lastModified=="number"&&typeof File<"u"&&e instanceof File||typeof e.getMonth=="function"&&typeof Date<"u"&&e instanceof Date?!1:!Array.isArray(e)}function Yw(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),Ae(e.additionalItems)}function Yv(e){var t;const r=typeof navigator<"u"?navigator.languages:void 0;if(r)try{return((t=new Intl.NumberFormat(r).formatToParts(1.1).find(n=>n.type==="decimal"))===null||t===void 0?void 0:t.value)||"."}catch{}return"."}function np(e){if(e==="")return;if(e===null)return null;const t=Yv(),r=typeof e=="string"&&t!=="."?e.replace(t,"."):e;if(/\.$/.test(r)||/\.0$/.test(r)||/\.\d*0$/.test(r))return e;const a=Number(r);return typeof a=="number"&&!Number.isNaN(a)?a:e}const la=Symbol("__additional_property"),xi="additionalProperties",_n="allOf",We="anyOf",mr="const",Ha="default",wd="dependencies",Xw="enum",Zt="__errors",pt="$id",Sd="if",Mi="items",Zw="_$junk_option_schema_id$_",El="$name",Fe="oneOf",_f="patternProperties",Ye="properties",Jc="readonly",Xv="required",Ml="submitButtonOptions",gt="$ref",xl=Symbol("__rjsf_ref"),Ed=Symbol("__rjsf_ref_cycle"),Ss="$schema",Zv="root",Qv="_",Qw=["discriminator","propertyName"],ap="formContext",eS="layoutGridLookupMap",eb="__rjsf",xd=`${eb}_additionalProperties`,tb=`${eb}_rootSchema`,tS="ui:field",Cd="ui:widget",ca="ui:options",Of="ui:globalOptions",rS="ui:definitions",nS="https://json-schema.org/draft/2019-09/schema",Cl="https://json-schema.org/draft/2020-12/schema";function ke(e={},t={}){return e?Object.keys(e).filter(r=>r.startsWith("ui:")).reduce((r,a)=>{const i=e[a];return a===Cd&&Ae(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):a===ca&&Ae(i)?{...r,...i}:{...r,[a.substring(3)]:i}},{...t}):{...t}}function rb(e,t={},r){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:a=!0}=ke(t);return a===!1?a:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var nb=typeof global=="object"&&global&&global.Object===Object&&global,aS=typeof self=="object"&&self&&self.Object===Object&&self,Rn=nb||aS||Function("return this")(),Kr=Rn.Symbol,ab=Object.prototype,iS=ab.hasOwnProperty,sS=ab.toString,ls=Kr?Kr.toStringTag:void 0;function oS(e){var t=iS.call(e,ls),r=e[ls];try{e[ls]=void 0;var a=!0}catch{}var i=sS.call(e);return a&&(t?e[ls]=r:delete e[ls]),i}var lS=Object.prototype,cS=lS.toString;function uS(e){return cS.call(e)}var fS="[object Null]",dS="[object Undefined]",ip=Kr?Kr.toStringTag:void 0;function Bn(e){return e==null?e===void 0?dS:fS:ip&&ip in Object(e)?oS(e):uS(e)}function ib(e,t){return function(r){return e(t(r))}}var rc=ib(Object.getPrototypeOf,Object);function Gr(e){return e!=null&&typeof e=="object"}var mS="[object Object]",pS=Function.prototype,hS=Object.prototype,sb=pS.toString,gS=hS.hasOwnProperty,yS=sb.call(Object);function ya(e){if(!Gr(e)||Bn(e)!=mS)return!1;var t=rc(e);if(t===null)return!0;var r=gS.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&sb.call(r)==yS}function Tf(e){const t={[Zt]:[],addError(r){this[Zt].push(r)}};if(Array.isArray(e))return e.reduce((r,a,i)=>({...r,[i]:Tf(a)}),t);if(ya(e)){const r=e;return Object.keys(r).reduce((a,i)=>({...a,[i]:Tf(r[i])}),t)}return t}var Vt=Array.isArray,vS="[object Symbol]";function Js(e){return typeof e=="symbol"||Gr(e)&&Bn(e)==vS}var bS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kS=/^\w*$/;function Ad(e,t){if(Vt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Js(e)?!0:kS.test(e)||!bS.test(e)||t!=null&&e in Object(t)}function Xe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wS="[object AsyncFunction]",SS="[object Function]",ES="[object GeneratorFunction]",xS="[object Proxy]";function Ys(e){if(!Xe(e))return!1;var t=Bn(e);return t==SS||t==ES||t==wS||t==xS}var Yc=Rn["__core-js_shared__"],sp=(function(){var e=/[^.]+$/.exec(Yc&&Yc.keys&&Yc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function CS(e){return!!sp&&sp in e}var AS=Function.prototype,_S=AS.toString;function ti(e){if(e!=null){try{return _S.call(e)}catch{}try{return e+""}catch{}}return""}var OS=/[\\^$.*+?()[\]{}|]/g,TS=/^\[object .+?Constructor\]$/,PS=Function.prototype,IS=Object.prototype,RS=PS.toString,NS=IS.hasOwnProperty,jS=RegExp("^"+RS.call(NS).replace(OS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function DS(e){if(!Xe(e)||CS(e))return!1;var t=Ys(e)?jS:TS;return t.test(ti(e))}function FS(e,t){return e==null?void 0:e[t]}function ri(e,t){var r=FS(e,t);return DS(r)?r:void 0}var Ms=ri(Object,"create");function MS(){this.__data__=Ms?Ms(null):{},this.size=0}function LS(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qS="__lodash_hash_undefined__",zS=Object.prototype,$S=zS.hasOwnProperty;function US(e){var t=this.__data__;if(Ms){var r=t[e];return r===qS?void 0:r}return $S.call(t,e)?t[e]:void 0}var BS=Object.prototype,VS=BS.hasOwnProperty;function HS(e){var t=this.__data__;return Ms?t[e]!==void 0:VS.call(t,e)}var WS="__lodash_hash_undefined__";function KS(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ms&&t===void 0?WS:t,this}function Wa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Wa.prototype.clear=MS;Wa.prototype.delete=LS;Wa.prototype.get=US;Wa.prototype.has=HS;Wa.prototype.set=KS;function GS(){this.__data__=[],this.size=0}function Xs(e,t){return e===t||e!==e&&t!==t}function nc(e,t){for(var r=e.length;r--;)if(Xs(e[r][0],t))return r;return-1}var JS=Array.prototype,YS=JS.splice;function XS(e){var t=this.__data__,r=nc(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():YS.call(t,r,1),--this.size,!0}function ZS(e){var t=this.__data__,r=nc(t,e);return r<0?void 0:t[r][1]}function QS(e){return nc(this.__data__,e)>-1}function eE(e,t){var r=this.__data__,a=nc(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function Vn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Vn.prototype.clear=GS;Vn.prototype.delete=XS;Vn.prototype.get=ZS;Vn.prototype.has=QS;Vn.prototype.set=eE;var Ls=ri(Rn,"Map");function tE(){this.size=0,this.__data__={hash:new Wa,map:new(Ls||Vn),string:new Wa}}function rE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ac(e,t){var r=e.__data__;return rE(t)?r[typeof t=="string"?"string":"hash"]:r.map}function nE(e){var t=ac(this,e).delete(e);return this.size-=t?1:0,t}function aE(e){return ac(this,e).get(e)}function iE(e){return ac(this,e).has(e)}function sE(e,t){var r=ac(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function Hn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Hn.prototype.clear=tE;Hn.prototype.delete=nE;Hn.prototype.get=aE;Hn.prototype.has=iE;Hn.prototype.set=sE;var oE="Expected a function";function _d(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(oE);var r=function(){var a=arguments,i=t?t.apply(this,a):a[0],n=r.cache;if(n.has(i))return n.get(i);var s=e.apply(this,a);return r.cache=n.set(i,s)||n,s};return r.cache=new(_d.Cache||Hn),r}_d.Cache=Hn;var lE=500;function cE(e){var t=_d(e,function(a){return r.size===lE&&r.clear(),a}),r=t.cache;return t}var uE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fE=/\\(\\)?/g,ob=cE(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(uE,function(r,a,i,n){t.push(i?n.replace(fE,"$1"):a||r)}),t});function Vi(e,t){for(var r=-1,a=e==null?0:e.length,i=Array(a);++r<a;)i[r]=t(e[r],r,e);return i}var op=Kr?Kr.prototype:void 0,lp=op?op.toString:void 0;function lb(e){if(typeof e=="string")return e;if(Vt(e))return Vi(e,lb)+"";if(Js(e))return lp?lp.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Od(e){return e==null?"":lb(e)}function Hi(e,t){return Vt(e)?e:Ad(e,t)?[e]:ob(Od(e))}function va(e){if(typeof e=="string"||Js(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ic(e,t){t=Hi(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[va(t[r++])];return r&&r==a?e:void 0}function oe(e,t,r){var a=e==null?void 0:ic(e,t);return a===void 0?r:a}const{getOwnPropertyNames:cp,getOwnPropertySymbols:dE}=Object,{hasOwnProperty:mE}=Object.prototype;function Xc(e,t){return function(a,i,n){return e(a,i,n)&&t(a,i,n)}}function Co(e){return function(r,a,i){if(!r||!a||typeof r!="object"||typeof a!="object")return e(r,a,i);const{cache:n}=i,s=n.get(r),o=n.get(a);if(s&&o)return s===a&&o===r;n.set(r,a),n.set(a,r);const c=e(r,a,i);return n.delete(r),n.delete(a),c}}function up(e){const t=dE(e);return t.length?cp(e).concat(t):cp(e)}const pE=Object.hasOwn||((e,t)=>mE.call(e,t)),hE="__v",gE="__o",yE="_owner",{getOwnPropertyDescriptor:fp,keys:dp}=Object,ni=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function vE(e,t){return e===t}function bE(e,t){return e.byteLength===t.byteLength&&Ll(new Uint8Array(e),new Uint8Array(t))}function kE(e,t,r){let a=e.length;if(t.length!==a)return!1;for(;a-- >0;)if(!r.equals(e[a],t[a],a,a,e,t,r))return!1;return!0}function wE(e,t){return e.byteLength===t.byteLength&&Ll(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function SE(e,t){return ni(e.getTime(),t.getTime())}function EE(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function mp(e,t,r){const a=e.size;if(a!==t.size)return!1;if(!a)return!0;const i=new Uint8Array(a),n=e.entries();let s,o,c=0;for(;(s=n.next())&&!s.done;){const l=t.entries();let u=0,f=0;for(;(o=l.next())&&!o.done;){if(i[f]){f++;continue}const m=s.value,d=o.value;if(r.equals(m[0],d[0],c,f,e,t,r)&&r.equals(m[1],d[1],m[0],d[0],e,t,r)){u=i[f]=1;break}f++}if(!u)return!1;c++}return!0}function xE(e,t,r){const a=dp(e);let i=a.length;if(dp(t).length!==i)return!1;for(;i-- >0;)if(!cb(e,t,r,a[i]))return!1;return!0}function cs(e,t,r){const a=up(e);let i=a.length;if(up(t).length!==i)return!1;let n,s,o;for(;i-- >0;)if(n=a[i],!cb(e,t,r,n)||(s=fp(e,n),o=fp(t,n),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function CE(e,t){return ni(e.valueOf(),t.valueOf())}function AE(e,t){return e.source===t.source&&e.flags===t.flags}function pp(e,t,r){const a=e.size;if(a!==t.size)return!1;if(!a)return!0;const i=new Uint8Array(a),n=e.values();let s,o;for(;(s=n.next())&&!s.done;){const c=t.values();let l=0,u=0;for(;(o=c.next())&&!o.done;){if(!i[u]&&r.equals(s.value,o.value,s.value,o.value,e,t,r)){l=i[u]=1;break}u++}if(!l)return!1}return!0}function Ll(e,t){let r=e.length;if(t.length!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function _E(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function cb(e,t,r,a){return(a===yE||a===gE||a===hE)&&(e.$$typeof||t.$$typeof)?!0:pE(t,a)&&r.equals(e[a],t[a],a,a,e,t,r)}const OE=Object.prototype.toString;function TE(e){const t=NE(e),{areArraysEqual:r,areDatesEqual:a,areFunctionsEqual:i,areMapsEqual:n,areNumbersEqual:s,areObjectsEqual:o,areRegExpsEqual:c,areSetsEqual:l,getUnsupportedCustomComparator:u}=e;return function(m,d,h){if(m===d)return!0;if(m==null||d==null)return!1;const k=typeof m;if(k!==typeof d)return!1;if(k!=="object")return k==="number"||k==="bigint"?s(m,d,h):k==="function"?i(m,d,h):!1;const v=m.constructor;if(v!==d.constructor)return!1;if(v===Object)return o(m,d,h);if(v===Array)return r(m,d,h);if(v===Date)return a(m,d,h);if(v===RegExp)return c(m,d,h);if(v===Map)return n(m,d,h);if(v===Set)return l(m,d,h);if(v===Promise)return!1;if(Array.isArray(m))return r(m,d,h);const y=OE.call(m),b=t[y];if(b)return b(m,d,h);const w=u&&u(m,d,h,y);return w?w(m,d,h):!1}}function PE({circular:e,createCustomConfig:t,strict:r}){let a={areArrayBuffersEqual:bE,areArraysEqual:r?cs:kE,areDataViewsEqual:wE,areDatesEqual:SE,areErrorsEqual:EE,areFunctionsEqual:vE,areMapsEqual:r?Xc(mp,cs):mp,areNumbersEqual:ni,areObjectsEqual:r?cs:xE,arePrimitiveWrappersEqual:CE,areRegExpsEqual:AE,areSetsEqual:r?Xc(pp,cs):pp,areTypedArraysEqual:r?Xc(Ll,cs):Ll,areUrlsEqual:_E,getUnsupportedCustomComparator:void 0};if(t&&(a=Object.assign({},a,t(a))),e){const i=Co(a.areArraysEqual),n=Co(a.areMapsEqual),s=Co(a.areObjectsEqual),o=Co(a.areSetsEqual);a=Object.assign({},a,{areArraysEqual:i,areMapsEqual:n,areObjectsEqual:s,areSetsEqual:o})}return a}function IE(e){return function(t,r,a,i,n,s,o){return e(t,r,o)}}function RE({circular:e,comparator:t,createState:r,equals:a,strict:i}){if(r)return function(o,c){const{cache:l=e?new WeakMap:void 0,meta:u}=r();return t(o,c,{cache:l,equals:a,meta:u,strict:i})};if(e)return function(o,c){return t(o,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};const n={cache:void 0,equals:a,meta:void 0,strict:i};return function(o,c){return t(o,c,n)}}function NE({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:a,areErrorsEqual:i,areFunctionsEqual:n,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:f,areTypedArraysEqual:m,areUrlsEqual:d}){return{"[object Arguments]":c,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":n,"[object BigInt]":o,"[object BigInt64Array]":m,"[object BigUint64Array]":m,"[object Boolean]":l,"[object DataView]":r,"[object Date]":a,"[object Error]":i,"[object Float16Array]":m,"[object Float32Array]":m,"[object Float64Array]":m,"[object Function]":n,"[object GeneratorFunction]":n,"[object Int8Array]":m,"[object Int16Array]":m,"[object Int32Array]":m,"[object Map]":s,"[object Number]":l,"[object Object]":(h,k,v)=>typeof h.then!="function"&&typeof k.then!="function"&&c(h,k,v),"[object RegExp]":u,"[object Set]":f,"[object String]":l,"[object URL]":d,"[object Uint8Array]":m,"[object Uint8ClampedArray]":m,"[object Uint16Array]":m,"[object Uint32Array]":m}}Wn();Wn({strict:!0});Wn({circular:!0});Wn({circular:!0,strict:!0});Wn({createInternalComparator:()=>ni});Wn({strict:!0,createInternalComparator:()=>ni});Wn({circular:!0,createInternalComparator:()=>ni});Wn({circular:!0,createInternalComparator:()=>ni,strict:!0});function Wn(e={}){const{circular:t=!1,createInternalComparator:r,createState:a,strict:i=!1}=e,n=PE(e),s=TE(n),o=r?r(s):IE(s);return RE({circular:t,comparator:s,createState:a,equals:o,strict:i})}const Je=Wn({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var us={exports:{}},Zc,hp;function ub(){if(hp)return Zc;hp=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu),n=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/?]$/iu);function s(_){let x="",A=0,N=0;for(N=0;N<_.length;N++)if(A=_[N].charCodeAt(0),A!==48){if(!(A>=48&&A<=57||A>=65&&A<=70||A>=97&&A<=102))return"";x+=_[N];break}for(N+=1;N<_.length;N++){if(A=_[N].charCodeAt(0),!(A>=48&&A<=57||A>=65&&A<=70||A>=97&&A<=102))return"";x+=_[N]}return x}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function c(_){return _.length=0,!0}function l(_,x,A){if(_.length){const N=s(_);if(N!=="")x.push(N);else return A.error=!0,!1;_.length=0}return!0}function u(_){let x=0;const A={error:!1,address:"",zone:""},N=[],I=[];let F=!1,$=!1,Y=l;for(let Z=0;Z<_.length;Z++){const ie=_[Z];if(!(ie==="["||ie==="]"))if(ie===":"){if(F===!0&&($=!0),!Y(I,N,A))break;if(++x>7){A.error=!0;break}Z>0&&_[Z-1]===":"&&(F=!0),N.push(":");continue}else if(ie==="%"){if(!Y(I,N,A))break;Y=c}else{I.push(ie);continue}}return I.length&&(Y===c?A.zone=I.join(""):$?N.push(I.join("")):N.push(s(I))),A.address=N.join(""),A}function f(_){if(m(_,":")<2)return{host:_,isIPV6:!1};const x=u(_);if(x.error)return{host:_,isIPV6:!1};{let A=x.address,N=x.address;return x.zone&&(A+="%"+x.zone,N+="%25"+x.zone),{host:A,isIPV6:!0,escapedHost:N}}}function m(_,x){let A=0;for(let N=0;N<_.length;N++)_[N]===x&&A++;return A}function d(_){let x=_;const A=[];let N=-1,I=0;for(;I=x.length;){if(I===1){if(x===".")break;if(x==="/"){A.push("/");break}else{A.push(x);break}}else if(I===2){if(x[0]==="."){if(x[1]===".")break;if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&x[1]==="."){A.push("/");break}}else if(I===3&&x==="/.."){A.length!==0&&A.pop(),A.push("/");break}if(x[0]==="."){if(x[1]==="."){if(x[2]==="/"){x=x.slice(3);continue}}else if(x[1]==="/"){x=x.slice(2);continue}}else if(x[0]==="/"&&x[1]==="."){if(x[2]==="/"){x=x.slice(2);continue}else if(x[2]==="."&&x[3]==="/"){x=x.slice(3),A.length!==0&&A.pop();continue}}if((N=x.indexOf("/",1))===-1){A.push(x);break}else A.push(x.slice(0,N)),x=x.slice(N)}return A.join("")}const h={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,v=/[@/?#]/g;function y(_,x){const A=x?v:k;return A.lastIndex=0,_.replace(A,N=>h[N])}function b(_,x=!1){if(_.indexOf("%")===-1)return _;let A="";for(let N=0;N<_.length;N++){if(_[N]==="%"&&N+2<_.length){const I=_.slice(N+1,N+3);if(r(I)){const F=I.toUpperCase(),$=String.fromCharCode(parseInt(F,16));x&&a($)?A+=$:A+="%"+F,N+=2;continue}}A+=_[N]}return A}const w=new Array(256);{const _="0123456789ABCDEF";for(let x=0;x<256;x++)w[x]="%"+_[x>>4]+_[x&15]}function E(_){return _>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||_===42||_===43||_===45||_===46||_===47||_===64||_===95}function p(_){return _<2048?w[192|_>>6]+w[128|_&63]:_<65536?w[224|_>>12]+w[128|_>>6&63]+w[128|_&63]:w[240|_>>18]+w[128|_>>12&63]+w[128|_>>6&63]+w[128|_&63]}function g(_){let x="";for(let A=0;A<_.length;A++){const N=_[A];if(N==="%"&&A+2<_.length){const I=_.slice(A+1,A+3);if(r(I)){const F=I.toUpperCase(),$=String.fromCharCode(parseInt(F,16));$!=="."&&a($)?x+=$:x+="%"+F,A+=2;continue}}if(i(N))x+=N;else{const I=_.charCodeAt(A);if(I<128)x+=E(I)?N:w[I];else if(I<55296||I>57343)x+=p(I);else if(I<=56319&&A+1<_.length){const F=_.charCodeAt(A+1);F>=56320&&F<=57343?(x+=p(65536+(I-55296<<10)+(F-56320)),A++):x+=p(65533)}else x+=p(65533)}}return x}function S(_){let x="";for(let A=0;A<_.length;A++){const N=_[A];if(N==="%"&&A+2<_.length){const I=_.slice(A+1,A+3);if(r(I)){const F=I.toUpperCase(),$=String.fromCharCode(parseInt(F,16));a($)?x+=$:x+="%"+F,A+=2;continue}}if(n(N))x+=N;else{const I=_.charCodeAt(A);if(I<128)x+=E(I)?N:w[I];else if(I<55296||I>57343)x+=p(I);else if(I<=56319&&A+1<_.length){const F=_.charCodeAt(A+1);F>=56320&&F<=57343?(x+=p(65536+(I-55296<<10)+(F-56320)),A++):x+=p(65533)}else x+=p(65533)}}return x}function C(_){let x="";for(let A=0;A<_.length;A++){const N=_[A];if(N==="%"&&A+2<_.length){const F=_.slice(A+1,A+3);if(r(F)){x+="%"+F.toUpperCase(),A+=2;continue}}const I=_.charCodeAt(A);if(I<128)x+=E(I)?N:w[I];else if(I<55296||I>57343)x+=p(I);else if(I<=56319&&A+1<_.length){const F=_.charCodeAt(A+1);F>=56320&&F<=57343?(x+=p(65536+(I-55296<<10)+(F-56320)),A++):x+=p(65533)}else x+=p(65533)}return x}function O(_){const x=[];if(_.userinfo!==void 0&&(x.push(_.userinfo),x.push("@")),_.host!==void 0){let A=unescape(_.host);if(!t(A)){const N=f(A);N.isIPV6===!0?A=`[${N.escapedHost}]`:A=y(A,!1)}x.push(A)}return(typeof _.port=="number"||typeof _.port=="string")&&(x.push(":"),x.push(String(_.port))),x.length?x.join(""):void 0}return Zc={nonSimpleDomain:o,recomposeAuthority:O,reescapeHostDelimiters:y,normalizePercentEncoding:b,normalizePathEncoding:g,normalizeQueryFragmentEncoding:S,escapePreservingEscapes:C,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:s},Zc}var Qc,gp;function jE(){if(gp)return Qc;gp=1;const{isUUID:e}=ub(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function a(p){return r.indexOf(p)!==-1}function i(p){return p.secure===!0?!0:p.secure===!1?!1:p.scheme?p.scheme.length===3&&(p.scheme[0]==="w"||p.scheme[0]==="W")&&(p.scheme[1]==="s"||p.scheme[1]==="S")&&(p.scheme[2]==="s"||p.scheme[2]==="S"):!1}function n(p){return p.host||(p.error=p.error||"HTTP URIs must have a host."),p}function s(p){const g=String(p.scheme).toLowerCase()==="https";return(p.port===(g?443:80)||p.port==="")&&(p.port=void 0),p.path||(p.path="/"),p}function o(p){return p.secure=i(p),p.resourceName=(p.path||"/")+(p.query?"?"+p.query:""),p.path=void 0,p.query=void 0,p}function c(p){if((p.port===(i(p)?443:80)||p.port==="")&&(p.port=void 0),typeof p.secure=="boolean"&&(p.scheme=p.secure?"wss":"ws",p.secure=void 0),p.resourceName){const[g,S]=p.resourceName.split("?");p.path=g&&g!=="/"?g:void 0,p.query=S,p.resourceName=void 0}return p.fragment=void 0,p}function l(p,g){if(!p.path)return p.error="URN can not be parsed",p;const S=p.path.match(t);if(S){const C=g.scheme||p.scheme||"urn";p.nid=S[1].toLowerCase(),p.nss=S[2];const O=`${C}:${g.nid||p.nid}`,_=E(O);p.path=void 0,_&&(p=_.parse(p,g))}else p.error=p.error||"URN can not be parsed.";return p}function u(p,g){if(p.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=g.scheme||p.scheme||"urn",C=p.nid.toLowerCase(),O=`${S}:${g.nid||C}`,_=E(O);_&&(p=_.serialize(p,g));const x=p,A=p.nss;return x.path=`${C||g.nid}:${A}`,g.skipEscape=!0,x}function f(p,g){const S=p;return S.uuid=S.nss,S.nss=void 0,!g.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function m(p){const g=p;return g.nss=(p.uuid||"").toLowerCase(),g}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},h={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,serialize:c},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:h,ws:k,wss:v,urn:{scheme:"urn",parse:l,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(p){return p&&(w[p]||w[p.toLowerCase()])||void 0}return Qc={wsIsSecure:i,SCHEMES:w,isValidSchemeName:a,getSchemeHandler:E},Qc}var yp;function DE(){if(yp)return us.exports;yp=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:a,normalizePathEncoding:i,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:c,nonSimpleDomain:l}=ub(),{SCHEMES:u,getSchemeHandler:f}=jE();function m(x,A){return typeof x=="string"?x=S(x,A):typeof x=="object"&&(x=g(v(x,A),A)),x}function d(x,A,N){const I=N?Object.assign({scheme:"null"},N):{scheme:"null"},{parsed:F,malformedAuthorityOrPort:$}=p(x,I),{parsed:Y,malformedAuthorityOrPort:Z}=p(A,I);if($||Z)throw new Error(F.error||Y.error||"URI is malformed.");const ie=h(F,Y,I,!0);return I.skipEscape=!0,v(ie,I)}function h(x,A,N,I){const F={};return I||(x=g(v(x,N),N),A=g(v(A,N),N)),N=N||{},!N.tolerant&&A.scheme?(F.scheme=A.scheme,F.userinfo=A.userinfo,F.host=A.host,F.port=A.port,F.path=t(A.path||""),F.query=A.query):(A.userinfo!==void 0||A.host!==void 0||A.port!==void 0?(F.userinfo=A.userinfo,F.host=A.host,F.port=A.port,F.path=t(A.path||""),F.query=A.query):(A.path?(A.path[0]==="/"?F.path=t(A.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?F.path="/"+A.path:x.path?F.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+A.path:F.path=A.path,F.path=t(F.path)),F.query=A.query):(F.path=x.path,A.query!==void 0?F.query=A.query:F.query=x.query),F.userinfo=x.userinfo,F.host=x.host,F.port=x.port),F.scheme=x.scheme),F.fragment=A.fragment,F}function k(x,A,N){const I=O(x,N),F=O(A,N);return I!==void 0&&F!==void 0&&I.toLowerCase()===F.toLowerCase()}function v(x,A){const N={host:x.host,scheme:x.scheme,userinfo:x.userinfo,port:x.port,path:x.path,query:x.query,nid:x.nid,nss:x.nss,uuid:x.uuid,fragment:x.fragment,reference:x.reference,resourceName:x.resourceName,secure:x.secure,error:""},I=Object.assign({},A),F=[],$=f(I.scheme||N.scheme);$&&$.serialize&&$.serialize(N,I),N.path!==void 0&&(I.skipEscape?N.path=a(N.path):(N.path=s(N.path),N.scheme!==void 0&&(N.path=N.path.split("%3A").join(":")))),I.reference!=="suffix"&&N.scheme&&F.push(N.scheme,":");const Y=r(N);if(Y!==void 0&&(I.reference!=="suffix"&&F.push("//"),F.push(Y),N.path&&N.path[0]!=="/"&&F.push("/")),N.path!==void 0){let Z=N.path;!I.absolutePath&&(!$||!$.absolutePath)&&(Z=t(Z)),Y===void 0&&Z[0]==="/"&&Z[1]==="/"&&(Z="/%2F"+Z.slice(2)),F.push(Z)}return N.query!==void 0&&F.push("?",N.query),N.fragment!==void 0&&F.push("#",N.fragment),F.join("")}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function E(x,A){if(A[2]!==void 0&&x.path&&x.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof x.port=="number"&&(x.port<0||x.port>65535))return"URI port is malformed."}function p(x,A){const N=Object.assign({},A),I={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let F=!1,$=!1;N.reference==="suffix"&&(N.scheme?x=N.scheme+":"+x:x="//"+x);const Y=x.match(b);Y!==null&&Y[1].indexOf("\\")!==-1&&(I.error="URI authority must not contain a literal backslash.",F=!0);const Z=x.match(w);if(Z!==null){const P=Z[1],D=P.replace(/[\t\n\r]/g,"");D.length>=2&&(D.slice(0,2)!=="//"?(I.error=I.error||"URI authority must not contain a literal backslash.",F=!0):P.length!==D.length&&(I.error=I.error||"URI authority introducer must not contain whitespace.",F=!0))}const ie=x.match(y);if(ie){I.scheme=ie[1]===void 0?void 0:ie[1].toLowerCase(),I.userinfo=ie[3],I.host=ie[4],I.port=parseInt(ie[5],10),I.path=ie[6]||"",I.query=ie[7],I.fragment=ie[8],isNaN(I.port)&&(I.port=ie[5]);const P=E(I,ie);if(P!==void 0&&(I.error=I.error||P,F=!0),I.host)if(c(I.host)===!1){const T=e(I.host);I.host=T.host.toLowerCase(),$=T.isIPV6}else $=!0;I.scheme===void 0&&I.userinfo===void 0&&I.host===void 0&&I.port===void 0&&I.query===void 0&&!I.path?I.reference="same-document":I.scheme===void 0?I.reference="relative":I.fragment===void 0?I.reference="absolute":I.reference="uri",N.reference&&N.reference!=="suffix"&&N.reference!==I.reference&&(I.error=I.error||"URI is not a "+N.reference+" reference.");const D=f(N.scheme||I.scheme);if(!N.unicodeSupport&&(!D||!D.unicodeSupport)&&I.host&&(N.domainHost||D&&D.domainHost)&&$===!1&&l(I.host))try{I.host=new URL("http://"+I.host).hostname}catch(U){I.error=I.error||"Host's domain name can not be converted to ASCII: "+U}(!D||D&&!D.skipNormalize)&&(x.indexOf("%")!==-1&&(I.scheme!==void 0&&(I.scheme=unescape(I.scheme)),I.host!==void 0&&(I.host=o(unescape(I.host),$))),I.path&&(I.path=i(I.path)),I.query&&(I.query=n(I.query)),I.fragment&&(I.fragment=n(I.fragment))),D&&D.parse&&D.parse(I,N)}else I.error=I.error||"URI can not be parsed.";return{parsed:I,malformedAuthorityOrPort:F}}function g(x,A){return p(x,A).parsed}function S(x,A){return C(x,A).normalized}function C(x,A){const{parsed:N,malformedAuthorityOrPort:I}=p(x,A);return{normalized:I?x:v(N,A),malformedAuthorityOrPort:I}}function O(x,A){if(typeof x=="string"){const{normalized:N,malformedAuthorityOrPort:I}=C(x,A);return I?void 0:N}if(typeof x=="object")return v(x,A)}const _={SCHEMES:u,normalize:m,resolve:d,resolveComponent:h,equal:k,serialize:v,parse:g};return us.exports=_,us.exports.default=_,us.exports.fastUri=_,us.exports}var FE=DE();const Td=Pn(FE);var fs={},vp;function ME(){if(vp)return fs;vp=1;var e=/~/,t=/~[01]/g;function r(l){switch(l){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+l)}function a(l){return e.test(l)?l.replace(t,r):l}function i(l,u,f){for(var m,d,h=1,k=u.length;h<k;){if(u[h]==="constructor"||u[h]==="prototype"||u[h]==="__proto__")return l;if(m=a(u[h++]),d=k>h,typeof l[m]>"u"&&(Array.isArray(l)&&m==="-"&&(m=l.length),d&&(u[h]!==""&&u[h]<1/0||u[h]==="-"?l[m]=[]:l[m]={})),!d)break;l=l[m]}var v=l[m];return f===void 0?delete l[m]:l[m]=f,v}function n(l){if(typeof l=="string"){if(l=l.split("/"),l[0]==="")return l;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(l)){for(const u of l)if(typeof u!="string"&&typeof u!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return l}throw new Error("Invalid JSON pointer.")}function s(l,u){if(typeof l!="object")throw new Error("Invalid input object.");u=n(u);var f=u.length;if(f===1)return l;for(var m=1;m<f;){if(l=l[a(u[m++])],f===m)return l;if(typeof l!="object"||l===null)return}}function o(l,u,f){if(typeof l!="object")throw new Error("Invalid input object.");if(u=n(u),u.length===0)throw new Error("Invalid JSON pointer for set.");return i(l,u,f)}function c(l){var u=n(l);return{get:function(f){return s(f,u)},set:function(f,m){return o(f,u,m)}}}return fs.get=s,fs.set=o,fs.compile=c,fs}var LE=ME();const eu=Pn(LE);var qE=Object.prototype;function sc(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||qE;return e===r}var zE=ib(Object.keys,Object),$E=Object.prototype,UE=$E.hasOwnProperty;function fb(e){if(!sc(e))return zE(e);var t=[];for(var r in Object(e))UE.call(e,r)&&r!="constructor"&&t.push(r);return t}var Pf=ri(Rn,"DataView"),If=ri(Rn,"Promise"),Ii=ri(Rn,"Set"),Rf=ri(Rn,"WeakMap"),bp="[object Map]",BE="[object Object]",kp="[object Promise]",wp="[object Set]",Sp="[object WeakMap]",Ep="[object DataView]",VE=ti(Pf),HE=ti(Ls),WE=ti(If),KE=ti(Ii),GE=ti(Rf),$r=Bn;(Pf&&$r(new Pf(new ArrayBuffer(1)))!=Ep||Ls&&$r(new Ls)!=bp||If&&$r(If.resolve())!=kp||Ii&&$r(new Ii)!=wp||Rf&&$r(new Rf)!=Sp)&&($r=function(e){var t=Bn(e),r=t==BE?e.constructor:void 0,a=r?ti(r):"";if(a)switch(a){case VE:return Ep;case HE:return bp;case WE:return kp;case KE:return wp;case GE:return Sp}return t});var JE="[object Arguments]";function xp(e){return Gr(e)&&Bn(e)==JE}var db=Object.prototype,YE=db.hasOwnProperty,XE=db.propertyIsEnumerable,Li=xp((function(){return arguments})())?xp:function(e){return Gr(e)&&YE.call(e,"callee")&&!XE.call(e,"callee")},ZE=9007199254740991;function Pd(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ZE}function ai(e){return e!=null&&Pd(e.length)&&!Ys(e)}function QE(){return!1}var mb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cp=mb&&typeof module=="object"&&module&&!module.nodeType&&module,ex=Cp&&Cp.exports===mb,Ap=ex?Rn.Buffer:void 0,tx=Ap?Ap.isBuffer:void 0,Ka=tx||QE,rx="[object Arguments]",nx="[object Array]",ax="[object Boolean]",ix="[object Date]",sx="[object Error]",ox="[object Function]",lx="[object Map]",cx="[object Number]",ux="[object Object]",fx="[object RegExp]",dx="[object Set]",mx="[object String]",px="[object WeakMap]",hx="[object ArrayBuffer]",gx="[object DataView]",yx="[object Float32Array]",vx="[object Float64Array]",bx="[object Int8Array]",kx="[object Int16Array]",wx="[object Int32Array]",Sx="[object Uint8Array]",Ex="[object Uint8ClampedArray]",xx="[object Uint16Array]",Cx="[object Uint32Array]",At={};At[yx]=At[vx]=At[bx]=At[kx]=At[wx]=At[Sx]=At[Ex]=At[xx]=At[Cx]=!0;At[rx]=At[nx]=At[hx]=At[ax]=At[gx]=At[ix]=At[sx]=At[ox]=At[lx]=At[cx]=At[ux]=At[fx]=At[dx]=At[mx]=At[px]=!1;function Ax(e){return Gr(e)&&Pd(e.length)&&!!At[Bn(e)]}function Id(e){return function(t){return e(t)}}var pb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Os=pb&&typeof module=="object"&&module&&!module.nodeType&&module,_x=Os&&Os.exports===pb,tu=_x&&nb.process,qi=(function(){try{var e=Os&&Os.require&&Os.require("util").types;return e||tu&&tu.binding&&tu.binding("util")}catch{}})(),_p=qi&&qi.isTypedArray,Zs=_p?Id(_p):Ax,Ox="[object Map]",Tx="[object Set]",Px=Object.prototype,Ix=Px.hasOwnProperty;function Rt(e){if(e==null)return!0;if(ai(e)&&(Vt(e)||typeof e=="string"||typeof e.splice=="function"||Ka(e)||Zs(e)||Li(e)))return!e.length;var t=$r(e);if(t==Ox||t==Tx)return!e.size;if(sc(e))return!fb(e).length;for(var r in e)if(Ix.call(e,r))return!1;return!0}function Rx(){this.__data__=new Vn,this.size=0}function Nx(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function jx(e){return this.__data__.get(e)}function Dx(e){return this.__data__.has(e)}var Fx=200;function Mx(e,t){var r=this.__data__;if(r instanceof Vn){var a=r.__data__;if(!Ls||a.length<Fx-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Hn(a)}return r.set(e,t),this.size=r.size,this}function sn(e){var t=this.__data__=new Vn(e);this.size=t.size}sn.prototype.clear=Rx;sn.prototype.delete=Nx;sn.prototype.get=jx;sn.prototype.has=Dx;sn.prototype.set=Mx;function Rd(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var ql=(function(){try{var e=ri(Object,"defineProperty");return e({},"",{}),e}catch{}})();function Nd(e,t,r){t=="__proto__"&&ql?ql(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Lx=Object.prototype,qx=Lx.hasOwnProperty;function jd(e,t,r){var a=e[t];(!(qx.call(e,t)&&Xs(a,r))||r===void 0&&!(t in e))&&Nd(e,t,r)}function Wi(e,t,r,a){var i=!r;r||(r={});for(var n=-1,s=t.length;++n<s;){var o=t[n],c=void 0;c===void 0&&(c=e[o]),i?Nd(r,o,c):jd(r,o,c)}return r}function hb(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var zx=9007199254740991,$x=/^(?:0|[1-9]\d*)$/;function oc(e,t){var r=typeof e;return t=t??zx,!!t&&(r=="number"||r!="symbol"&&$x.test(e))&&e>-1&&e%1==0&&e<t}var Ux=Object.prototype,Bx=Ux.hasOwnProperty;function gb(e,t){var r=Vt(e),a=!r&&Li(e),i=!r&&!a&&Ka(e),n=!r&&!a&&!i&&Zs(e),s=r||a||i||n,o=s?hb(e.length,String):[],c=o.length;for(var l in e)(t||Bx.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||n&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||oc(l,c)))&&o.push(l);return o}function nn(e){return ai(e)?gb(e):fb(e)}function Vx(e,t){return e&&Wi(t,nn(t),e)}function Hx(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Wx=Object.prototype,Kx=Wx.hasOwnProperty;function Gx(e){if(!Xe(e))return Hx(e);var t=sc(e),r=[];for(var a in e)a=="constructor"&&(t||!Kx.call(e,a))||r.push(a);return r}function Qs(e){return ai(e)?gb(e,!0):Gx(e)}function Jx(e,t){return e&&Wi(t,Qs(t),e)}var yb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Op=yb&&typeof module=="object"&&module&&!module.nodeType&&module,Yx=Op&&Op.exports===yb,Tp=Yx?Rn.Buffer:void 0,Pp=Tp?Tp.allocUnsafe:void 0;function vb(e,t){if(t)return e.slice();var r=e.length,a=Pp?Pp(r):new e.constructor(r);return e.copy(a),a}function Dd(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}function Xx(e,t){for(var r=-1,a=e==null?0:e.length,i=0,n=[];++r<a;){var s=e[r];t(s,r,e)&&(n[i++]=s)}return n}function bb(){return[]}var Zx=Object.prototype,Qx=Zx.propertyIsEnumerable,Ip=Object.getOwnPropertySymbols,Fd=Ip?function(e){return e==null?[]:(e=Object(e),Xx(Ip(e),function(t){return Qx.call(e,t)}))}:bb;function eC(e,t){return Wi(e,Fd(e),t)}function Md(e,t){for(var r=-1,a=t.length,i=e.length;++r<a;)e[i+r]=t[r];return e}var tC=Object.getOwnPropertySymbols,kb=tC?function(e){for(var t=[];e;)Md(t,Fd(e)),e=rc(e);return t}:bb;function rC(e,t){return Wi(e,kb(e),t)}function wb(e,t,r){var a=t(e);return Vt(e)?a:Md(a,r(e))}function Nf(e){return wb(e,nn,Fd)}function Ld(e){return wb(e,Qs,kb)}var nC=Object.prototype,aC=nC.hasOwnProperty;function iC(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&aC.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var zl=Rn.Uint8Array;function qd(e){var t=new e.constructor(e.byteLength);return new zl(t).set(new zl(e)),t}function sC(e,t){var r=t?qd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var oC=/\w*$/;function lC(e){var t=new e.constructor(e.source,oC.exec(e));return t.lastIndex=e.lastIndex,t}var Rp=Kr?Kr.prototype:void 0,Np=Rp?Rp.valueOf:void 0;function cC(e){return Np?Object(Np.call(e)):{}}function Sb(e,t){var r=t?qd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var uC="[object Boolean]",fC="[object Date]",dC="[object Map]",mC="[object Number]",pC="[object RegExp]",hC="[object Set]",gC="[object String]",yC="[object Symbol]",vC="[object ArrayBuffer]",bC="[object DataView]",kC="[object Float32Array]",wC="[object Float64Array]",SC="[object Int8Array]",EC="[object Int16Array]",xC="[object Int32Array]",CC="[object Uint8Array]",AC="[object Uint8ClampedArray]",_C="[object Uint16Array]",OC="[object Uint32Array]";function TC(e,t,r){var a=e.constructor;switch(t){case vC:return qd(e);case uC:case fC:return new a(+e);case bC:return sC(e,r);case kC:case wC:case SC:case EC:case xC:case CC:case AC:case _C:case OC:return Sb(e,r);case dC:return new a;case mC:case gC:return new a(e);case pC:return lC(e);case hC:return new a;case yC:return cC(e)}}var jp=Object.create,Eb=(function(){function e(){}return function(t){if(!Xe(t))return{};if(jp)return jp(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function xb(e){return typeof e.constructor=="function"&&!sc(e)?Eb(rc(e)):{}}var PC="[object Map]";function IC(e){return Gr(e)&&$r(e)==PC}var Dp=qi&&qi.isMap,RC=Dp?Id(Dp):IC,NC="[object Set]";function jC(e){return Gr(e)&&$r(e)==NC}var Fp=qi&&qi.isSet,DC=Fp?Id(Fp):jC,FC=1,MC=2,LC=4,Cb="[object Arguments]",qC="[object Array]",zC="[object Boolean]",$C="[object Date]",UC="[object Error]",Ab="[object Function]",BC="[object GeneratorFunction]",VC="[object Map]",HC="[object Number]",_b="[object Object]",WC="[object RegExp]",KC="[object Set]",GC="[object String]",JC="[object Symbol]",YC="[object WeakMap]",XC="[object ArrayBuffer]",ZC="[object DataView]",QC="[object Float32Array]",eA="[object Float64Array]",tA="[object Int8Array]",rA="[object Int16Array]",nA="[object Int32Array]",aA="[object Uint8Array]",iA="[object Uint8ClampedArray]",sA="[object Uint16Array]",oA="[object Uint32Array]",St={};St[Cb]=St[qC]=St[XC]=St[ZC]=St[zC]=St[$C]=St[QC]=St[eA]=St[tA]=St[rA]=St[nA]=St[VC]=St[HC]=St[_b]=St[WC]=St[KC]=St[GC]=St[JC]=St[aA]=St[iA]=St[sA]=St[oA]=!0;St[UC]=St[Ab]=St[YC]=!1;function Ts(e,t,r,a,i,n){var s,o=t&FC,c=t&MC,l=t&LC;if(r&&(s=i?r(e,a,i,n):r(e)),s!==void 0)return s;if(!Xe(e))return e;var u=Vt(e);if(u){if(s=iC(e),!o)return Dd(e,s)}else{var f=$r(e),m=f==Ab||f==BC;if(Ka(e))return vb(e,o);if(f==_b||f==Cb||m&&!i){if(s=c||m?{}:xb(e),!o)return c?rC(e,Jx(s,e)):eC(e,Vx(s,e))}else{if(!St[f])return i?e:{};s=TC(e,f,o)}}n||(n=new sn);var d=n.get(e);if(d)return d;n.set(e,s),DC(e)?e.forEach(function(v){s.add(Ts(v,t,r,v,e,n))}):RC(e)&&e.forEach(function(v,y){s.set(y,Ts(v,t,r,y,e,n))});var h=l?c?Ld:Nf:c?Qs:nn,k=u?void 0:h(e);return Rd(k||e,function(v,y){k&&(y=v,v=e[y]),jd(s,y,Ts(v,t,r,y,e,n))}),s}function Ob(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function lA(e,t,r){var a=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var n=Array(i);++a<i;)n[a]=e[a+t];return n}function cA(e,t){return t.length<2?e:ic(e,lA(t,0,-1))}var uA=Object.prototype,fA=uA.hasOwnProperty;function Tb(e,t){t=Hi(t,e);var r=-1,a=t.length;if(!a)return!0;for(;++r<a;){var i=va(t[r]);if(i==="__proto__"&&!fA.call(e,"__proto__")||(i==="constructor"||i==="prototype")&&r<a-1)return!1}var n=cA(e,t);return n==null||delete n[va(Ob(t))]}function dA(e){return ya(e)?void 0:e}var Mp=Kr?Kr.isConcatSpreadable:void 0;function mA(e){return Vt(e)||Li(e)||!!(Mp&&e&&e[Mp])}function eo(e,t,r,a,i){var n=-1,s=e.length;for(r||(r=mA),i||(i=[]);++n<s;){var o=e[n];t>0&&r(o)?t>1?eo(o,t-1,r,a,i):Md(i,o):a||(i[i.length]=o)}return i}function jf(e){var t=e==null?0:e.length;return t?eo(e,1):[]}function pA(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Lp=Math.max;function Pb(e,t,r){return t=Lp(t===void 0?e.length-1:t,0),function(){for(var a=arguments,i=-1,n=Lp(a.length-t,0),s=Array(n);++i<n;)s[i]=a[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=a[i];return o[t]=r(s),pA(e,this,o)}}function hA(e){return function(){return e}}function lc(e){return e}var gA=ql?function(e,t){return ql(e,"toString",{configurable:!0,enumerable:!1,value:hA(t),writable:!0})}:lc,yA=800,vA=16,bA=Date.now;function kA(e){var t=0,r=0;return function(){var a=bA(),i=vA-(a-r);if(r=a,i>0){if(++t>=yA)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ib=kA(gA);function Rb(e){return Ib(Pb(e,void 0,jf),e+"")}var wA=1,SA=2,EA=4,qs=Rb(function(e,t){var r={};if(e==null)return r;var a=!1;t=Vi(t,function(n){return n=Hi(n,e),a||(a=n.length>1),n}),Wi(e,Ld(e),r),a&&(r=Ts(r,wA|SA|EA,dA));for(var i=t.length;i--;)Tb(r,t[i]);return r});function $l(e,t){if(pt in e&&Td.equal(e[pt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const a of r)if(Xe(a)){const i=$l(a,t);if(i!==void 0)return i}}else if(Xe(r)){const a=$l(r,t);if(a!==void 0)return a}}function Df(e,t){const r=oe(e,pt,t);let a=e;gt in a&&(a={...a,[gt]:Td.resolve(r,a[gt])});for(const[i,n]of Object.entries(a))Array.isArray(n)?a={...a,[i]:n.map(s=>Xe(s)?Df(s,r):s)}:Xe(n)&&(a={...a,[i]:Df(n,r)});return a}function zd(e,t){const r=t[e];return[qs(t,[e]),r]}function Nb(e,t={},r=[],a=oe(t,[pt])){const i=e||"";let n,s=a;if(i.startsWith("#")){const c=decodeURIComponent(i.substring(1));s===void 0||pt in t&&t[pt]===s?n=eu.get(t,c):t[Ss]===Cl&&(n=$l(t,s.replace(/\/$/,"")),n!==void 0&&(n=eu.get(n,c)))}else if(t[Ss]===Cl){const c=s?Td.resolve(s,i):i,[l,...u]=c.replace(/#\/?$/,"").split("#");n=$l(t,l.replace(/\/$/,"")),n!==void 0&&(s=n[pt],Rt(u)||(n=eu.get(n,decodeURIComponent(u.join("#")))))}if(n===void 0)throw new Error(`Could not find a definition for ${e}.`);const o=n[gt];if(o){if(r.includes(o)){if(r.length===1)throw new Error(`Definition for ${e} is a circular reference`);const[f,...m]=r,d=[...m,i,f].join(" -> ");throw new Error(`Definition for ${f} contains a circular reference through ${d}`)}const[c,l]=zd(gt,n),u=Nb(l,t,[...r,i],s);return Object.keys(c).length>0?t[Ss]===nS||t[Ss]===Cl?{[_n]:[c,u]}:{...c,...u}:u}return n}function zs(e,t={},r=oe(t,[pt])){return Nb(e,t,[],r)}var xA=Object.prototype,CA=xA.hasOwnProperty;function AA(e,t){return e!=null&&CA.call(e,t)}function jb(e,t,r){t=Hi(t,e);for(var a=-1,i=t.length,n=!1;++a<i;){var s=va(t[a]);if(!(n=e!=null&&r(e,s)))break;e=e[s]}return n||++a!=i?n:(i=e==null?0:e.length,!!i&&Pd(i)&&oc(s,i)&&(Vt(e)||Li(e)))}function Ge(e,t){return e!=null&&jb(e,t,AA)}var _A="[object String]";function ba(e){return typeof e=="string"||!Vt(e)&&Gr(e)&&Bn(e)==_A}function Jr(e){let t;const r=oe(e,Qw);return ba(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var OA=1/0;function TA(e){var t=e==null?0:e.length;return t?eo(e,OA):[]}function Ff(e,t,r){(r!==void 0&&!Xs(e[t],r)||r===void 0&&!(t in e))&&Nd(e,t,r)}function PA(e){return function(t,r,a){for(var i=-1,n=Object(t),s=a(t),o=s.length;o--;){var c=s[++i];if(r(n[c],c,n)===!1)break}return t}}var Db=PA();function $s(e){return Gr(e)&&ai(e)}function Mf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function IA(e){return Wi(e,Qs(e))}function RA(e,t,r,a,i,n,s){var o=Mf(e,r),c=Mf(t,r),l=s.get(c);if(l){Ff(e,r,l);return}var u=n?n(o,c,r+"",e,t,s):void 0,f=u===void 0;if(f){var m=Vt(c),d=!m&&Ka(c),h=!m&&!d&&Zs(c);u=c,m||d||h?Vt(o)?u=o:$s(o)?u=Dd(o):d?(f=!1,u=vb(c,!0)):h?(f=!1,u=Sb(c,!0)):u=[]:ya(c)||Li(c)?(u=o,Li(o)?u=IA(o):(!Xe(o)||Ys(o))&&(u=xb(c))):f=!1}f&&(s.set(c,u),i(u,c,a,n,s),s.delete(c)),Ff(e,r,u)}function Fb(e,t,r,a,i){e!==t&&Db(t,function(n,s){if(i||(i=new sn),Xe(n))RA(e,t,s,r,Fb,a,i);else{var o=a?a(Mf(e,s),n,s+"",e,t,i):void 0;o===void 0&&(o=n),Ff(e,s,o)}},Qs)}function cc(e,t){return Ib(Pb(e,t,lc),e+"")}function NA(e,t,r){if(!Xe(r))return!1;var a=typeof t;return(a=="number"?ai(r)&&oc(t,r.length):a=="string"&&t in r)?Xs(r[t],e):!1}function jA(e){return cc(function(t,r){var a=-1,i=r.length,n=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(n=e.length>3&&typeof n=="function"?(i--,n):void 0,s&&NA(r[0],r[1],s)&&(n=i<3?void 0:n,i=1),t=Object(t);++a<i;){var o=r[a];o&&e(t,o,a,n)}return t})}var DA=jA(function(e,t,r){Fb(e,t,r)});function $d(e,t,r,a){if(!Xe(e))return e;t=Hi(t,e);for(var i=-1,n=t.length,s=n-1,o=e;o!=null&&++i<n;){var c=va(t[i]),l=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(i!=s){var u=o[c];l=a?a(u,c,o):void 0,l===void 0&&(l=Xe(u)?u:oc(t[i+1])?[]:{})}jd(o,c,l),o=o[c]}return e}function yt(e,t,r){return e==null?e:$d(e,t,r)}function Mb(e){return typeof e=="function"?e:lc}var FA=/\s/;function MA(e){for(var t=e.length;t--&&FA.test(e.charAt(t)););return t}var LA=/^\s+/;function qA(e){return e&&e.slice(0,MA(e)+1).replace(LA,"")}var qp=NaN,zA=/^[-+]0x[0-9a-f]+$/i,$A=/^0b[01]+$/i,UA=/^0o[0-7]+$/i,BA=parseInt;function VA(e){if(typeof e=="number")return e;if(Js(e))return qp;if(Xe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=qA(e);var r=$A.test(e);return r||UA.test(e)?BA(e.slice(2),r?2:8):zA.test(e)?qp:+e}var zp=1/0,HA=17976931348623157e292;function WA(e){if(!e)return e===0?e:0;if(e=VA(e),e===zp||e===-zp){var t=e<0?-1:1;return t*HA}return e===e?e:0}function Lb(e){var t=WA(e),r=t%1;return t===t?r?t-r:t:0}var KA=9007199254740991,ru=4294967295,GA=Math.min;function qb(e,t){if(e=Lb(e),e<1||e>KA)return[];var r=ru,a=GA(e,ru);t=Mb(t),e-=ru;for(var i=hb(a,t);++r<e;)t(r);return i}function zb(e,t){return e&&Db(e,t,nn)}var JA="__lodash_hash_undefined__";function YA(e){return this.__data__.set(e,JA),this}function XA(e){return this.__data__.has(e)}function Ga(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Hn;++t<r;)this.add(e[t])}Ga.prototype.add=Ga.prototype.push=YA;Ga.prototype.has=XA;function ZA(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}function Us(e,t){return e.has(t)}var QA=1,e_=2;function $b(e,t,r,a,i,n){var s=r&QA,o=e.length,c=t.length;if(o!=c&&!(s&&c>o))return!1;var l=n.get(e),u=n.get(t);if(l&&u)return l==t&&u==e;var f=-1,m=!0,d=r&e_?new Ga:void 0;for(n.set(e,t),n.set(t,e);++f<o;){var h=e[f],k=t[f];if(a)var v=s?a(k,h,f,t,e,n):a(h,k,f,e,t,n);if(v!==void 0){if(v)continue;m=!1;break}if(d){if(!ZA(t,function(y,b){if(!Us(d,b)&&(h===y||i(h,y,r,a,n)))return d.push(b)})){m=!1;break}}else if(!(h===k||i(h,k,r,a,n))){m=!1;break}}return n.delete(e),n.delete(t),m}function t_(e){var t=-1,r=Array(e.size);return e.forEach(function(a,i){r[++t]=[i,a]}),r}function Ud(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var r_=1,n_=2,a_="[object Boolean]",i_="[object Date]",s_="[object Error]",o_="[object Map]",l_="[object Number]",c_="[object RegExp]",u_="[object Set]",f_="[object String]",d_="[object Symbol]",m_="[object ArrayBuffer]",p_="[object DataView]",$p=Kr?Kr.prototype:void 0,nu=$p?$p.valueOf:void 0;function h_(e,t,r,a,i,n,s){switch(r){case p_:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m_:return!(e.byteLength!=t.byteLength||!n(new zl(e),new zl(t)));case a_:case i_:case l_:return Xs(+e,+t);case s_:return e.name==t.name&&e.message==t.message;case c_:case f_:return e==t+"";case o_:var o=t_;case u_:var c=a&r_;if(o||(o=Ud),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;a|=n_,s.set(e,t);var u=$b(o(e),o(t),a,i,n,s);return s.delete(e),u;case d_:if(nu)return nu.call(e)==nu.call(t)}return!1}var g_=1,y_=Object.prototype,v_=y_.hasOwnProperty;function b_(e,t,r,a,i,n){var s=r&g_,o=Nf(e),c=o.length,l=Nf(t),u=l.length;if(c!=u&&!s)return!1;for(var f=c;f--;){var m=o[f];if(!(s?m in t:v_.call(t,m)))return!1}var d=n.get(e),h=n.get(t);if(d&&h)return d==t&&h==e;var k=!0;n.set(e,t),n.set(t,e);for(var v=s;++f<c;){m=o[f];var y=e[m],b=t[m];if(a)var w=s?a(b,y,m,t,e,n):a(y,b,m,e,t,n);if(!(w===void 0?y===b||i(y,b,r,a,n):w)){k=!1;break}v||(v=m=="constructor")}if(k&&!v){var E=e.constructor,p=t.constructor;E!=p&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof p=="function"&&p instanceof p)&&(k=!1)}return n.delete(e),n.delete(t),k}var k_=1,Up="[object Arguments]",Bp="[object Array]",Ao="[object Object]",w_=Object.prototype,Vp=w_.hasOwnProperty;function S_(e,t,r,a,i,n){var s=Vt(e),o=Vt(t),c=s?Bp:$r(e),l=o?Bp:$r(t);c=c==Up?Ao:c,l=l==Up?Ao:l;var u=c==Ao,f=l==Ao,m=c==l;if(m&&Ka(e)){if(!Ka(t))return!1;s=!0,u=!1}if(m&&!u)return n||(n=new sn),s||Zs(e)?$b(e,t,r,a,i,n):h_(e,t,c,r,a,i,n);if(!(r&k_)){var d=u&&Vp.call(e,"__wrapped__"),h=f&&Vp.call(t,"__wrapped__");if(d||h){var k=d?e.value():e,v=h?t.value():t;return n||(n=new sn),i(k,v,r,a,n)}}return m?(n||(n=new sn),b_(e,t,r,a,i,n)):!1}function uc(e,t,r,a,i){return e===t?!0:e==null||t==null||!Gr(e)&&!Gr(t)?e!==e&&t!==t:S_(e,t,r,a,uc,i)}var E_=1,x_=2;function C_(e,t,r,a){var i=r.length,n=i;if(e==null)return!n;for(e=Object(e);i--;){var s=r[i];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<n;){s=r[i];var o=s[0],c=e[o],l=s[1];if(s[2]){if(c===void 0&&!(o in e))return!1}else{var u=new sn,f;if(!(f===void 0?uc(l,c,E_|x_,a,u):f))return!1}}return!0}function Ub(e){return e===e&&!Xe(e)}function A_(e){for(var t=nn(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,Ub(i)]}return t}function Bb(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function __(e){var t=A_(e);return t.length==1&&t[0][2]?Bb(t[0][0],t[0][1]):function(r){return r===e||C_(r,e,t)}}function O_(e,t){return e!=null&&t in Object(e)}function Vb(e,t){return e!=null&&jb(e,t,O_)}var T_=1,P_=2;function I_(e,t){return Ad(e)&&Ub(t)?Bb(va(e),t):function(r){var a=oe(r,e);return a===void 0&&a===t?Vb(r,e):uc(t,a,T_|P_)}}function R_(e){return function(t){return t==null?void 0:t[e]}}function N_(e){return function(t){return ic(t,e)}}function j_(e){return Ad(e)?R_(va(e)):N_(e)}function Bd(e){return typeof e=="function"?e:e==null?lc:typeof e=="object"?Vt(e)?I_(e[0],e[1]):__(e):j_(e)}function D_(e,t,r){var a=Vt(e),i=a||Ka(e)||Zs(e);if(t=Bd(t),r==null){var n=e&&e.constructor;i?r=a?new n:[]:Xe(e)?r=Ys(n)?Eb(rc(e)):{}:r={}}return(i?Rd:zb)(e,function(s,o,c){return t(r,s,o,c)}),r}function F_(e,t,r,a){for(var i=e.length,n=r+-1;++n<i;)if(t(e[n],n,e))return n;return-1}function M_(e){return e!==e}function L_(e,t,r){for(var a=r-1,i=e.length;++a<i;)if(e[a]===t)return a;return-1}function Hb(e,t,r){return t===t?L_(e,t,r):F_(e,M_,r)}function Vd(e,t){var r=e==null?0:e.length;return!!r&&Hb(e,t,0)>-1}function Al(){}var q_=1/0,z_=Ii&&1/Ud(new Ii([,-0]))[1]==q_?function(e){return new Ii(e)}:Al,$_=200;function Wb(e,t,r){var a=-1,i=Vd,n=e.length,s=!0,o=[],c=o;if(n>=$_){var l=z_(e);if(l)return Ud(l);s=!1,i=Us,c=new Ga}else c=o;e:for(;++a<n;){var u=e[a],f=u;if(u=u!==0?u:0,s&&f===f){for(var m=c.length;m--;)if(c[m]===f)continue e;o.push(u)}else i(c,f,r)||(c!==o&&c.push(f),o.push(u))}return o}function Kb(e){return e&&e.length?Wb(e):[]}function Bs(e){return Array.isArray(e)?"array":typeof e=="string"?"string":e==null?"null":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?"number":typeof e=="object"?"object":"string"}var U_=cc(function(e){return Wb(eo(e,1,$s,!0))});function Yr(e){let{type:t}=e;return!t&&e.const?Bs(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties||e.patternProperties)?"object":(Array.isArray(t)&&(t.length===2&&t.includes("null")?t=t.find(r=>r!=="null"):t=t[0]),t)}function Un(e,t){const r={...e},a=Object.keys(t).reduce((i,n)=>{const s=e?e[n]:{},o=t[n];return e&&n in e&&Ae(o)?i[n]=Un(s,o):e&&t&&(Yr(e)==="object"||Yr(t)==="object")&&n===Xv&&Array.isArray(s)&&Array.isArray(o)?i[n]=U_(s,o):i[n]=o,i},r);for(const i of Object.getOwnPropertySymbols(t))a[i]=t[i];return a}var B_="[object Number]";function Gb(e){return typeof e=="number"||Gr(e)&&Bn(e)==B_}function Jb(e,t,r){var a;if(e&&r){const i=oe(e,r);if(i===void 0)return;for(let n=0;n<t.length;n+=1){const s=t[n],o=oe(s,[Ye,r],{});if(o.type!=="object"&&o.type!=="array"&&(o.const===i||!((a=o.enum)===null||a===void 0)&&a.includes(i)))return n}}}function Ul(e,t,r,a,i){if(t===void 0)return 0;const n=Jb(t,r,i);if(Gb(n))return n;for(let s=0;s<r.length;s+=1){const o=r[s];if(i&&Ge(o,[Ye,i])){const c=oe(t,i),l=oe(o,[Ye,i],{});if(e.isValid(l,c,a))return s}else if(o[Ye]){const c={anyOf:Object.keys(o[Ye]).map(u=>({required:[u]}))};let l;if(o.anyOf){const{...u}=o;u.allOf?u.allOf=u.allOf.slice():u.allOf=[],u.allOf.push(c),l=u}else l={...o,...c};if(delete l.required,e.isValid(l,t,a))return s}else if(e.isValid(o,t,a))return s}return 0}const V_=Object.prototype;function Es(e){for(const t in e)if(V_.hasOwnProperty.call(e,t))return!1;return!0}const H_=["array","boolean","integer","null","number","object","string"];new Set(H_);const W_=["$defs","definitions","properties","patternProperties","dependencies"];new Set(W_);const K_=["items","allOf","oneOf","anyOf"];new Set(K_);const G_=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(G_);function _l(e){return typeof e=="object"}function kn(e){return _l(e)?Es(e):e===!0}function Ci(e,t){return e<t?-1:e>t?1:0}function au(e,t){const r=e.length;if(r===0)return t;let a=t.length;if(a===0)return e;if(r<a){const n=e;e=t,t=n,a=r}const i=new Set(e);for(let n=0;n<a;n++)i.add(t[n]);return Array.from(i)}function J_(e,t){const r=[];if(e.length===0||t.length===0)return r;if(e.length>t.length){const i=e;e=t,t=i}const a=new Set(t);for(let i=0;i<e.length&&a.size>0;i++){const n=e[i];a.delete(n)&&r.push(n)}return r}function Hp(e){return e.length===0}function iu(e){return(t,r)=>{const a=t.length-r.length;if(a!==0)return a;for(let i=0;i<t.length;i++)if(t[i]!==r[i]){const n=e(t[i],r[i]);if(n!==0)return n}return 0}}function Yb(e,{threshold:t=12}={}){return r=>{const a=r.length;if(a===0)return r;if(a<=t){const s=[];let o=0;e:for(let c=0;c<a;c++){const l=r[c];for(let u=0;u<o;u++)if(e(l,s[u])===0)continue e;o=s.push(l)}return s}const i=r.slice().sort(e);let n=0;for(let s=1;s<a;s++)e(i[n],i[s])!==0&&++n!==s&&(i[n]=i[s]);return i.length=n+1,i}}function Y_(e){return(t,r)=>{const a=[];let i=t.length,n=r.length;if(i===0||n===0)return a;if(i>n){const u=t;t=r,r=u;const f=i;i=n,n=f}const s=[...t].sort(e),o=[...r].sort(e);let c=0,l=0;for(;c<i&&l<n;){const u=e(s[c],o[l]);u===0?((a.length===0||e(a[a.length-1],s[c])!==0)&&a.push(s[c]),c++,l++):u<0?c++:l++}return a}}function X_(e,t){return r=>{if(e.has(r))return e.get(r);const a=t(r);return e.set(r,a),a}}const Wp=X_,Xb=()=>0,Z_=e=>e===void 0,Q_=e=>typeof e!="object",Kp={boolean:0,number:1,string:2};function eO(e,t){const r=typeof e,a=typeof t;return r===a?Ci(e,t):Kp[r]-Kp[a]}function tO(e,t){const r=e.length;if(r===0)return t;const a=t.length;if(a===0)return e;if(a>r){const s=e;e=t,t=s}const i=new Set(e),n=t.length;for(let s=0;s<n;s++){const o=t[s];i.has(o)||e.push(o)}return e}function fc(e,t,r=Xb){return(a,i)=>e(a)?e(i)?r(a,i):-1:e(i)?1:t(a,i)}function Si(e){return fc(Z_,e)}function na(e,t){return fc(r=>r===void 0||e(r),t)}function su(e,t){return fc(Array.isArray,e,t)}const Mt=Si(Ci),ou=na(e=>e===0,(e,t)=>e-t);function rO({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=Wp(t,k=>Object.keys(k).sort());function a(k){return(v,y)=>{const b=r(v),w=r(y),E=Math.min(b.length,w.length);for(let p=0;p<E;p++){const g=Ci(b[p],w[p]);if(g!==0)return g}if(b.length!==w.length)return b.length-w.length;for(let p=0;p<E;p++){const g=b[p],S=k(v[g],y[g]);if(S!==0)return S}return 0}}function i(k){const v=iu(k),y=Wp(e,Yb(k,{threshold:0}));return(b,w)=>v(y(b),y(w))}const n=i(Ci);function s(k,v){if(_l(k)){if(_l(v)){const y=Object.keys(k),b=Object.keys(v),w=tO(y,b),E=w.length;for(let p=0;p<E;p++){const g=w[p];if(k[g]===v[g])continue;const C=(h[g]??o)(k[g],v[g]);if(C!==0)return C}return 0}return v===!0&&Es(k)?0:1}return _l(v)?k===!0&&Es(v)?0:-1:Ci(k,v)}const o=Si(l),c=fc(Q_,su(a(o),iu(l)),eO);function l(k,v){return k===null?-1:v===null?1:c(k,v)}const u=Si(s),f=na(Es,a(u)),m=Si(i(s)),d=na(kn,s),h={$id:Mt,$comment:Mt,$defs:f,$ref:Mt,$schema:Mt,const:o,contains:u,contentEncoding:Mt,contentMediaType:Mt,default:o,definitions:f,description:Mt,else:u,examples:o,exclusiveMaximum:Mt,exclusiveMinimum:Mt,format:Mt,if:u,maximum:Mt,maxItems:Mt,maxLength:Mt,maxProperties:Mt,minimum:Mt,multipleOf:Mt,not:u,pattern:Mt,propertyNames:u,readOnly:Mt,then:u,title:Mt,writeOnly:Mt,uniqueItems:na(k=>k===!1,Xb),minLength:ou,minItems:ou,minProperties:ou,required:na(Hp,n),enum:na(Hp,i(l)),type:Si((k,v)=>{const y=Array.isArray(k),b=Array.isArray(v);return!y&&!b?Ci(k,v):n(y?k:[k],b?v:[v])}),items:na(k=>!Array.isArray(k)&&kn(k),su(s,iu(s))),anyOf:m,allOf:m,oneOf:m,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:na(Es,a(Si(su(s,n))))};return{compareSchemaValues:l,compareSchemaDefinitions:s}}function Gp(e){return e}const Zb=(e,t)=>e?Zb(t%e,e):t,nO=(e,t)=>Math.abs(e*t)/Zb(e,t);function aO(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function lu(e,t,r){const a=e.length,i=t.length;if(a>0&&i>0)for(let n=0;n<a;n++){const s=e[n];for(let o=0;o<i;o++)r(s,t[o])}}function cu(e,t){return e||t}function Jp(e){return(t,r)=>{const a={...t},i=Object.keys(r),n=i.length;for(let s=0;s<n;s++){const o=i[s];a[o]=t[o]===void 0?r[o]:e(t[o],r[o])}return a}}function iO(e){const t=new Map;for(const r of e)for(const a of r[0])t.set(a,r[1]);return t}function Ra(e,t,r){r===void 0||kn(r)?delete e[t]:e[t]=r}const sO=["properties","patternProperties","additionalProperties"];function Yp(e){const t=Object.keys(e),r=t.length,a=[];for(let i=0;i<r;i++){const n=t[i];a.push({regExp:new RegExp(n),schema:e[n]})}return[a,t]}const Xp=[[],[]];function Zp(e,t,r){const a=r.length;for(let i=0;i<a;i++){const n=r[i];if(!n.regExp.test(t))continue;const s=n.schema;if(s===!1)return!0;e.push(s)}return!1}const oO=["items","additionalItems"],lO=["if","then","else"];function Qp(e,t){return t.if!==void 0&&(e.if=t.if),t.then!==void 0&&(e.then=t.then),t.else!==void 0&&(e.else=t.else),e}function uu(e,t){if(e===t)return e;switch(e){case"number":if(t==="integer")return"integer";case"integer":if(t==="number")return"integer";default:return}}function Na(e,t,r){return[e,t,r]}function cO(e){const t=new Map;for(const[r,a,i]of e){const n=s=>{if(!i(s))throw new Error(`Schema keys '${r}' and '${a}' are conflicting (${r}: ${JSON.stringify(s[r])}, ${a}: ${JSON.stringify(s[a])})`)};for(const s of[[r,a],[a,r]]){let o=t.get(s[0]);o===void 0&&(o=[],t.set(s[0],o)),o.push({oppositeKey:s[1],check:n})}}return t}const uO=[Na("minimum","maximum",e=>e.maximum>=e.minimum),Na("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),Na("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),Na("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),Na("minLength","maxLength",e=>e.maxLength>=e.minLength),Na("minItems","maxItems",e=>e.maxItems>=e.minItems),Na("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function fO({mergePatterns:e=aO,isSubRegExp:t=Object.is,intersectJson:r=J_,deduplicateJsonSchemaDef:a=Gp,defaultMerger:i=Gp,assigners:n=[],checks:s=uO,mergers:o}={}){function c(E){const p=E.length;let g=E[0];for(let S=1;S<p;S++){const C=y(g,E[S]);if(C===!1)return!1;kn(C)||(g=C)}return g}function l(E,p,g,S,C,O,_){if(E.length=0,g===!1)return!1;if(E.push(g),C!==void 0){if(C===!1)return!1;E.push(C)}if(Zp(E,p,O))return!1;const A=E.length<2;if(_===!1){if(A)return;if(Zp(E,p,S))return!1}else A&&_!==void 0&&E.push(_);return E.length===1?E[0]:c(E)}function u(E,p,g,S,C,O){const _=g.length;if(_>0&&C!==!1)if(O)Object.assign(E,p);else for(let x=0;x<_;x++){const A=g[x];S.has(A)||(E[A]=y(p[A],C))}return E}const f=(E,{properties:p={},patternProperties:g,additionalProperties:S=!0},{properties:C={},patternProperties:O,additionalProperties:_=!0})=>{const x=kn(S),A=kn(_);if(x&&A)return Ra(E,"properties",b(p,C)),Ra(E,"patternProperties",g&&O?b(g,O):g??O),delete E.additionalProperties,E;const N=y(S,_);Ra(E,"additionalProperties",N);const I={},F=Object.keys(p),$=F.length,[Y,Z]=g?Yp(g):Xp,[ie,P]=O?Yp(O):Xp,D=[],U=new Set,T=A?void 0:_;for(let J=0;J<$;J++){const Q=F[J];U.add(Q);const q=l(D,Q,p[Q],Y,C[Q],ie,T);q!==void 0&&(I[Q]=q)}const R=Object.keys(C),M=R.length,B=x?void 0:S;for(let J=0;J<M;J++){const Q=R[J];if(U.has(Q))continue;const q=l(D,Q,C[Q],ie,void 0,Y,B);q!==void 0&&(I[Q]=q)}Ra(E,"properties",I);let V={};const K=new Set;return Z.length>0&&P.length>0&&lu(Z,P,(J,Q)=>{t(J,Q)&&K.add(J),t(Q,J)&&K.add(Q),V[e(J,Q)]=y(g[J],O[Q])}),V=u(V,g,Z,K,_,A),V=u(V,O,P,K,S,x),Ra(E,"patternProperties",V),E},m=(E,{items:p=[],additionalItems:g},{items:S=[],additionalItems:C})=>{const O=Array.isArray(p),_=Array.isArray(S),x=[];if(E.items=x,O&&_){const[A,N,I]=p.length<S.length?[p.length,g,S]:[S.length,C,p];let F=0;for(;F<A;F++)x.push(y(p[F],S[F]));if(N===!1)E.additionalItems=!1;else{const $=N===void 0||kn(N);for(;F<I.length;F++)x.push($?I[F]:y(I[F],N));Ra(E,"additionalItems",g!==void 0&&C!==void 0?y(g,C):g??C)}}else if(O||_){const[A,N,I]=O?[p,S,g]:[S,p,C];Ra(E,"additionalItems",I&&y(I,N));for(let F=0;F<A.length;F++)x.push(y(A[F],N))}else delete E.additionalItems,E.items=y(p,S);return E},d=(E,p,g)=>{Qp(E,p);const S=Qp({},g);return E.allOf===void 0?E.allOf=[S]:E.allOf=E.allOf.concat(S),E};function h(E,p){const g=[];if(lu(E,p,(S,C)=>{try{g.push(y(S,C))}catch{}}),g.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(E)}" and "${JSON.stringify(p)}"; the merged result is empty`);return a(g)}const k=iO([[sO,f],[oO,m],[lO,d],...n]),v=cO(s);function y(E,p){if(E===!1||p===!1)return!1;if(kn(E))return kn(p)?!0:p;if(kn(p))return E;let g={...E};const S=new Set,C=new Set,O=Reflect.ownKeys(p),_=O.length;for(let x=0;x<_;x++){const A=O[x],N=p[A];if(N===void 0)continue;const I=v.get(A);if(I!==void 0){const Z=I.length;for(let ie=0;ie<Z;ie++){const P=I[ie];E[P.oppositeKey]!==void 0&&C.add(P.check)}}const F=E[A];if(F===void 0){g[A]=N;continue}const $=k.get(A);if($){S.add($);continue}const Y=w[A]??i;g[A]=Y(F,N)}for(const x of S)g=x(g,E,p);for(const x of C)x(g);return g}const b=Jp(y),w={$id:i,$ref:i,$schema:i,$comment:i,$defs:b,definitions:b,type:(E,p)=>{if(E===p)return E;const g=Array.isArray(E),S=Array.isArray(p);if(!g&&!S){const C=uu(E,p);if(C!==void 0)return C}else if(g||S){const C=new Set;if(g&&S)lu(E,p,(_,x)=>{const A=uu(_,x);A!==void 0&&C.add(A)});else{const _=g?E:p,x=g?p:E,A=_.length;for(let N=0;N<A;N++){const I=uu(x,_[N]);I!==void 0&&C.add(I)}}const O=C.size;if(O===1)return C.values().next().value;if(O>1)return Array.from(C)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${E.toString()}, ${p.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(E,p)=>{const g=a([E,p]);return g.length===1?g[0]:{anyOf:g}},pattern:e,readOnly:cu,writeOnly:cu,enum:(E,p)=>{const g=r(E,p);if(g.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(E)}", "${JSON.stringify(p)}"`);return g},anyOf:h,oneOf:h,allOf:(E,p)=>a(E.concat(p)),propertyNames:y,contains:y,dependencies:Jp((E,p)=>Array.isArray(E)?Array.isArray(p)?au(E,p):y(p,{required:E}):Array.isArray(p)?y(E,{required:p}):y(E,p)),examples:(E,p)=>{if(!Array.isArray(E)||!Array.isArray(p))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(E)}" and "${JSON.stringify(p)}"`);return au(E,p)},multipleOf:(E,p)=>{let g=1;for(;!Number.isInteger(E)||!Number.isInteger(p);)g*=10,E*=10,p*=10;return nO(E,p)/g},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:cu,required:au,...o};return{mergeSchemaDefinitions:y,mergeArrayOfSchemaDefinitions:c}}function dO(e){const t=[],r=[e];for(;r.length>0;){const a=r.pop();if(typeof a=="boolean"||a.allOf===void 0){t.push(a);continue}const{allOf:i,...n}=a;t.push(n);for(let s=i.length-1;s>=0;s--)r.push(i[s])}return t}function mO(e){return t=>e(dO(t))}const{compareSchemaDefinitions:pO,compareSchemaValues:hO}=rO(),{mergeArrayOfSchemaDefinitions:gO}=fO({intersectJson:Y_(hO),deduplicateJsonSchemaDef:Yb(pO)}),Qb=mO(gO);function er(e,t,r={},a,i,n=!1){return xn(e,t,r,a,void 0,void 0,i,n)[0]}function ek(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function yO(e,t,r,a,i,n,s){const{if:o,then:c,else:l,...u}=t,f=e.isValid(o,n||{},r);let m=[u],d=[];if(a){if(c&&typeof c!="boolean"){const h=c;d=d.concat(xn(e,h,r,n,a,i,s))}if(l&&typeof l!="boolean"){const h=l;d=d.concat(xn(e,h,r,n,a,i,s))}}else{const h=f?c:l;if(h!==void 0){const k=ek(h);d=d.concat(xn(e,k,r,n,a,i,s))}}return d.length&&(m=d.map(h=>Un(u,h))),m.flatMap(h=>xn(e,h,r,n,a,i,s))}function tk(e){return e.reduce((r,a)=>a.length>1?a.flatMap(i=>qb(r.length,n=>[...r[n]].concat(i))):(r.forEach(i=>i.push(a[0])),r),[[]])}function rk(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,a)=>(yt(r,[a],e.patternProperties[a]),r),{})}function vO(e,t,r,a,i,n,s,o){const c=nk(e,t,r,a,i,n,s,o);if(c.length>1||c[0]!==t)return c;if(wd in t)return ik(e,t,r,a,i,n,s).flatMap(u=>xn(e,u,r,n,a,i,s));if(_n in t&&Array.isArray(t[_n])){const l=t.allOf.map(f=>xn(e,f,r,n,a,i,s));return tk(l).map(f=>({...t,allOf:f}))}return[t]}function nk(e,t,r,a,i,n,s,o){const c=ua(t,r,i,void 0,o);return c!==t?xn(e,c,r,n,a,i,s,o):[t]}function ua(e,t,r,a,i,n=!1){if(!Ae(e))return e;let s=e,o=a;if(gt in s){const{$ref:c,...l}=s;if(r.includes(c))return n?{...s,[Ed]:!0}:s;r.push(c),s={...zs(c,t,o),...l,[xl]:c},pt in s&&(o=s[pt])}if(Ye in s){const c=[],l=D_(s[Ye],(u,f,m)=>{const d=[...r];u[m]=ua(f,t,d,o,i,!i),c.push(d)},{});DA(r,Kb(TA(c))),s={...s,[Ye]:l}}if(Mi in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:ua(s.items,t,r,o,i)}),i){let c,l;We in e&&Array.isArray(e[We])?(c=We,l=s[We]):Fe in e&&Array.isArray(e[Fe])&&(c=Fe,l=s[Fe]),c&&l&&(s={...s,[c]:l.map(u=>ua(u,t,r,o,i))})}return Je(e,s)?e:s}function bO(e,t,r,a,i){const n={...t,properties:{...t.properties}},s=a&&Ae(a)?a:{};return Object.keys(s).forEach(o=>{if(!(o in n.properties)){if(_f in n){const c=rk(n,o);if(!Rt(c)){n.properties[o]=er(e,{[_n]:Object.values(c)},r,oe(s,[o]),i),n.properties[o][la]=!0;return}}if(xi in n&&n.additionalProperties!==!1){let c;typeof n.additionalProperties!="boolean"?gt in n.additionalProperties?c=er(e,{[gt]:oe(n.additionalProperties,[gt])},r,oe(s,[o]),i):"type"in n.additionalProperties?c={...n.additionalProperties}:We in n.additionalProperties||Fe in n.additionalProperties?c={type:"object",...n.additionalProperties}:c={type:Bs(oe(s,[o]))}:c={type:Bs(oe(s,[o]))},n.properties[o]=c,n.properties[o][la]=!0}else n.properties[o]={type:"null"},n.properties[o][la]=!0}}),n}function kO(e){return Qb(e)}function xn(e,t,r,a,i=!1,n=[],s,o){return Ae(t)?vO(e,t,r,i,n,a,s,o).flatMap(l=>{var u;let f=l;if(Sd in f)return yO(e,f,r,i,n,a,s);if(_n in f){if(i){const{allOf:d,...h}=f;return[...d,h]}try{const d=[],h=[],k={};(u=f.allOf)===null||u===void 0||u.forEach(v=>{if(typeof v=="object"&&v.contains)d.push(v);else{h.push(v);for(const y of Object.getOwnPropertySymbols(v))y in k||(k[y]=v[y])}}),d.length&&(f={...f,allOf:h}),f=s?s(f):kO(f);for(const v of Object.getOwnPropertySymbols(k))f[v]=k[v];d.length&&(f.allOf=d)}catch(d){console.warn(`could not merge subschemas in allOf:
|
|
33
|
-
`,d);const{allOf:h,...k}=f;return k}}return Ye in f&&_f in f&&(f=Object.keys(f.properties).reduce((d,h)=>{const k=rk(d,h);return Rt(k)||(d.properties[h]=er(e,{allOf:[d.properties[h],...Object.values(k)]},r,oe(a,[h]),s)),d},{...f,properties:{...f.properties}})),_f in f||xi in f&&f.additionalProperties!==!1?bO(e,f,r,a,s):f}):[{}]}function wO(e,t,r,a,i){let n;const{oneOf:s,anyOf:o,...c}=t;if(Array.isArray(s)?n=s:Array.isArray(o)&&(n=o),n){const l=i===void 0&&a?{}:i,u=Jr(t);n=n.map(m=>ua(m,r,[]));const f=Ul(e,l,n,r,u);if(a){const m=ak(n,!1,r);return Ul(e,l,m,r,u),n.map(d=>Un(c,d))}return[Un(c,n[f])]}return[t]}function ak(e,t=!1,r){return e.map(a=>{if(!Ae(a))return ek(a);const i=t&&r?ua(a,r,[]):a;return i.additionalProperties===!1?{...i,additionalProperties:!0}:i})}function ik(e,t,r,a,i,n,s){const{dependencies:o,...c}=t;return wO(e,c,r,a,n).flatMap(u=>sk(e,o,u,r,a,i,n,s))}function sk(e,t,r,a,i,n,s,o){let c=[r];for(const l in t)if((i||oe(s,[l])!==void 0)&&(!r.properties||l in r.properties)){const[u,f]=zd(l,t);return Array.isArray(f)?c[0]=SO(r,f):Ae(f)&&(c=EO(e,r,a,l,f,i,n,s,o)),c.flatMap(m=>sk(e,u,m,a,i,n,s,o))}return c}function SO(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 EO(e,t,r,a,i,n,s,o,c){return xn(e,i,r,o,n,s,c).flatMap(u=>{const{oneOf:f,...m}=u,d=Un(t,m);if(f===void 0)return d;const h=f.map(v=>typeof v=="boolean"||!(gt in v)?[v]:nk(e,v,r,n,s,o));return tk(h).flatMap(v=>xO(e,d,r,a,v,n,s,o,c))})}function xO(e,t,r,a,i,n,s,o,c){const l=i.filter(u=>{if(typeof u=="boolean"||!(u!=null&&u.properties))return!1;const{[a]:f}=u.properties;if(f){const m={type:"object",properties:{[a]:f}};return e.isValid(m,o,r)||n}return!1});return!n&&l.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):l.flatMap(u=>{const f=u,[m]=zd(a,f.properties),d={...f,properties:m};return xn(e,d,r,o,n,s,c).map(k=>Un(t,k))})}function xs(e,t,r,a,i,n={},s){if(Array.isArray(r[i])){const c=Jr(r)||a,l=r[i].map(f=>er(e,f,t,n,s)),u=oe(n,c);if(u!==void 0)return l.find(f=>Je(oe(f,[Ye,c,Ha],oe(f,[Ye,c,mr])),u))}}function ok(e,t,r,a,i){let n=r;if(Ge(r,gt)&&(n=er(e,r,t,void 0,i)),Rt(a))return n;const s=Array.isArray(a)?[...a]:a.split("."),[o,...c]=s;if(o!==void 0&&o!==""&&Ge(n,o))return n=oe(n,o),ok(e,t,n,c,i)}function Ol(e,t,r,a,i,n){const s=ok(e,t,r,a,n);return s===void 0?i:s}const eh={title:"!@#$_UNKNOWN_$#@!"};function CO(e,t,r,a,i={},n){const s=Array.isArray(a)?[...a]:a.split(".");let o=r;const c=s.pop(),l=String(c);s.length&&s.forEach(d=>{o=Ol(e,t,o,[Ye,d],{},n),Ge(o,Fe)?o=xs(e,t,o,l,Fe,oe(i,d),n):Ge(o,We)&&(o=xs(e,t,o,l,We,oe(i,d),n))}),Ge(o,Fe)?o=xs(e,t,o,l,Fe,i,n):Ge(o,We)&&(o=xs(e,t,o,l,We,i,n));let u=Ol(e,t,o,[Ye,c],eh,n);u===eh&&(u=void 0);const f=Ol(e,t,o,Xv,[],n);let m;return u&&Array.isArray(f)&&(m=f.includes(l)),{field:u,isRequired:m}}function AO(e,t,r,a){var i=-1,n=e==null?0:e.length;for(a&&n&&(r=e[++i]);++i<n;)r=t(r,e[i],i,e);return r}function _O(e,t){return function(r,a){if(r==null)return r;if(!ai(r))return e(r,a);for(var i=r.length,n=-1,s=Object(r);++n<i&&a(s[n],n,s)!==!1;);return r}}var lk=_O(zb);function OO(e,t,r,a,i){return i(e,function(n,s,o){r=a?(a=!1,n):t(r,n,s,o)}),r}function TO(e,t,r){var a=Vt(e)?AO:OO,i=arguments.length<3;return a(e,Bd(t),r,i,lk)}const PO={type:"object",$id:Zw,properties:{__not_really_there__:{type:"number"}}};function Lf(e,t,r,a,i){let n=0;return r&&(Xe(r.properties)?n+=TO(r.properties,(s,o,c)=>{const l=oe(a,c);if(typeof o=="boolean")return s;if(Ge(o,gt)){const u=er(e,o,t,l,i);return s+Lf(e,t,u,l||{},i)}if((Ge(o,Fe)||Ge(o,We))&&l){const u=Ge(o,Fe)?Fe:We,f=Jr(o);return s+zi(e,t,l,oe(o,u),-1,f,i)}if(o.type==="object"){const u=Xe(l)?1:0;return s+u+Lf(e,t,o,l,i)}if(o.type===Bs(l)){let u=s+1;return o.default?u+=l===o.default?1:-1:o.const&&(u+=l===o.const?1:-1),u}return s},0):ba(r.type)&&r.type===Bs(a)&&(n+=1)),n}function zi(e,t,r,a,i=-1,n,s){const o=a.map(m=>ua(m,t,[])),c=Jb(r,a,n);if(Gb(c))return c;const l=o.reduce((m,d,h)=>(Ul(e,r,[PO,d],t,n)===1&&m.push(h),m),[]);if(l.length===1)return l[0];l.length||qb(o.length,m=>l.push(m));const u=new Set,{bestIndex:f}=l.reduce((m,d)=>{const{bestScore:h}=m,k=o[d],v=Lf(e,t,k,r,s);return u.add(v),v>h?{bestIndex:d,bestScore:v}:m},{bestIndex:i,bestScore:0});return u.size===1&&i>=0?i:f}function ck(e){const t=e[mr],r=Yr(e);return Ae(t)&&ba(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function uk(e){return Array.isArray(e.enum)&&e.enum.length===1||mr in e}function Hd(e){return Array.isArray(e.items)&&e.items.every(t=>Ae(t))}function $i(e){return e==null}function Vs(e,t,r=!1,a=!1,i=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],s=i?n:t,o=i?t:n,c=s.map((l,u)=>o[u]!==void 0?Vs(n[u],t[u],r,a,i):l);return(r||i)&&c.length<o.length&&c.push(...o.slice(c.length)),c}if(Ae(t)){const n=Object.assign({},e);return Object.keys(t).reduce((s,o)=>{var c;const l=oe(t,o),u=Ae(e)&&o in e,f=o in t,m=(c=oe(e,o))!==null&&c!==void 0?c:{},d=u&&Ae(m)&&Object.values(m).some(v=>Ae(v)),h=u&&Ae(oe(e,o)),k=f&&Ae(l);return h&&k&&!d?(s[o]={...oe(e,o),...l},s):(s[o]=Vs(oe(e,o),l,r,a,i&&(u||!f)),n)},n)}return a&&(e!==void 0&&$i(t)||typeof t=="number"&&Number.isNaN(t))||i&&!$i(t)?e:t}function ka(e,t,r=!1){return Object.keys(t).reduce((a,i)=>{const n=e?e[i]:{},s=t[i];if(e&&i in e&&Ae(s))a[i]=ka(n,s,r);else if(r&&Array.isArray(n)&&Array.isArray(s)){let o=s;r==="preventDuplicates"&&(o=s.reduce((c,l)=>(n.includes(l)||c.push(l),c),[])),a[i]=n.concat(o)}else a[i]=s;return a},{...e})}function IO(e){if(Xw in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(mr in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function RO(e,t){const r=new Map(e.map(n=>[String(n.value),n])),a=new Set(t.filter(n=>n!=="*").map(String)),i=e.filter(n=>!a.has(String(n.value)));return t.flatMap(n=>{if(n==="*")return i;const s=r.get(String(n));return s?[s]:[]})}function Ja(e,t){if(e.enum){let n,s;if(t){const{enumNames:c,enumOrder:l}=ke(t);n=c,s=l}let o=e.enum.map((c,l)=>({label:Array.isArray(n)?n[l]||String(c):(n==null?void 0:n[String(c)])||String(c),value:c}));return s&&(o=RO(o,s)),o}let r,a;e.anyOf?(r=e.anyOf,a=t==null?void 0:t.anyOf):e.oneOf&&(r=e.oneOf,a=t==null?void 0:t.oneOf);let i=Jr(e);if(t){const{optionsSchemaSelector:n=i}=ke(t);i=n}return r==null?void 0:r.map((n,s)=>{var o,c,l;const{title:u}=ke(a==null?void 0:a[s]),f=n;let m,d=u;if(i){const h=oe(f,[Ye,i],{});m=oe(h,Ha,oe(h,mr)),d=(c=(o=d??(h==null?void 0:h.title))!==null&&o!==void 0?o:f.title)!==null&&c!==void 0?c:String(m)}else m=IO(f),d=(l=d??f.title)!==null&&l!==void 0?l:String(m);return{schema:f,label:d,value:m}})}function dc(e,t,r={},a){const i=er(e,t,r,void 0,a),n=i.oneOf||i.anyOf;return Array.isArray(i.enum)?!0:Array.isArray(n)?n.every(s=>typeof s!="boolean"&&uk(s)):!1}function Wd(e,t,r,a){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:dc(e,t.items,r,a)}const NO=["string","number","integer","boolean","null"];var Ui;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(Ui||(Ui={}));function fu(e,t=Ui.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const a=e.items[r];if(typeof a!="boolean")return a}}else if(e.items&&!Array.isArray(e.items)&&typeof e.items!="boolean")return e.items;return t!==Ui.Ignore&&Ae(e.additionalItems)?e.additionalItems:{}}function fk(e,t){const{default:r,type:a}=e;return Array.isArray(a)&&a.includes("null")&&Rt(t)&&r===null?null:t}function th(e,t,r,a,i,n=[],s={},o=!1,c=!1){const{emptyObjectFields:l="populateAllDefaults"}=s;if(a===!0||o)e[t]=r;else if(a==="excludeObjectChildren")(c&&r!==void 0||!Ae(r)||!Rt(r))&&(e[t]=r);else if(l!=="skipDefaults"){const u=i===void 0?n.includes(t):i;Ae(r)?l==="skipEmptyDefaults"?Rt(r)||(e[t]=r):(!Rt(r)||n.includes(t))&&(u||l!=="populateRequiredDefaults")&&(e[t]=r):r!==void 0&&(l==="populateAllDefaults"||l==="skipEmptyDefaults"||u&&n.includes(t))&&(e[t]=r)}}function fa(e,t,r={}){const{parentDefaults:a,rawFormData:i,rootSchema:n={},includeUndefinedValues:s=!1,_recurseList:o=[],experimental_defaultFormStateBehavior:c,experimental_customMergeAllOf:l,required:u,shouldMergeDefaultsIntoFormData:f=!1,initialDefaultsGenerated:m}=r;let d=Ae(i)?i:{};const h=Ae(t)?t:{};let k=a;const v=k&&(c==null?void 0:c.nestedDefaultsPrecedence)==="ancestorWins";let y=null,b=c,w=o;if(h[mr]!==void 0&&(c==null?void 0:c.constAsDefaults)!=="never"&&!ck(h))k=h[mr];else if(Ae(k)&&Ae(h.default)&&!h[We]&&!h[Fe]&&!h[gt])v?k=ka(h.default,k):k=ka(k,h.default);else if(Ha in h&&!v&&!h[We]&&!h[Fe]&&!h[gt])k=h.default;else if(gt in h){const g=h[gt];o.includes(g)||(w=o.concat(g),y=zs(g,n));const S=i===void 0||Ae(i)&&Rt(i);y&&!k&&S&&(k=h.default),f&&y&&!Ae(i)&&(d=i)}else if(wd in h){const g={...rh(e,h,r,k),...d};[y]=ik(e,h,n,!1,[],g,l)}else if(Hd(h)&&!v)k=h.items.map((g,S)=>fa(e,g,{rootSchema:n,includeUndefinedValues:s,_recurseList:o,experimental_defaultFormStateBehavior:c,experimental_customMergeAllOf:l,parentDefaults:Array.isArray(a)?a[S]:void 0,rawFormData:d,required:u,shouldMergeDefaultsIntoFormData:f}));else if(Fe in h){const{oneOf:g,...S}=h;if(g.length===0)return;const C=Jr(h),{type:O="null"}=S;!Array.isArray(O)&&NO.includes(O)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),y=g[zi(e,n,i??h.default,g,0,C,l)],y=Un(S,y)}else if(We in h){const{anyOf:g,...S}=h;if(g.length===0)return;const C=Jr(h);y=g[zi(e,n,i??h.default,g,0,C,l)],y=Un(S,y)}if(y)return fa(e,y,{rootSchema:n,includeUndefinedValues:s,_recurseList:w,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:l,parentDefaults:k,rawFormData:i??d,required:u,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:m});k===void 0&&(k=h.default);const E=rh(e,h,r,k);let p=E??k;if(f){const{arrayMinItems:g={}}=c||{},{mergeExtraDefaults:S}=g,C=Kd(e,h,n,i,c,l);(!Ae(i)||_n in h)&&(p=Vs(p,C,S,!0))}return p}function Kd(e,t,r,a,i,n){const s=(i==null?void 0:i.allOf)==="populateDefaults"&&_n in t,o=s?er(e,t,r,a,n):t,c=!uk(o)&&dc(e,o,r,n);let l=a;if(c){const f=Ja(o);l=(f==null?void 0:f.some(d=>Je(d.value,a)))?a:void 0}return o[mr]&&(i==null?void 0:i.constAsDefaults)==="always"?l=o.const:Ae(l)&&Ae(o.properties)&&(l=Object.keys(o.properties).reduce((f,m)=>{const d=oe(o,[Ye,m],{});return m in f&&(s||Ae(d)&&_n in d)&&(f[m]=Kd(e,d,r,oe(f,m),i,n)),f},{...l})),l}function jO(e,t,{rawFormData:r,rootSchema:a={},includeUndefinedValues:i=!1,_recurseList:n=[],experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,required:c,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u}={},f){{const m=Ae(r)?r:{},d=t,k=(s==null?void 0:s.allOf)==="populateDefaults"&&_n in d||(s==null?void 0:s.emptyObjectFields)!=="skipEmptyDefaults"&&Sd in d?er(e,d,a,m,o):d,v=k[mr],y=Object.keys(k.properties||{}).reduce((b,w)=>{var E;const p=oe(k,[Ye,w],{}),g=Ae(v)&&v[w]!==void 0,S=(Ae(p)&&mr in p||g)&&(s==null?void 0:s.constAsDefaults)!=="never"&&!ck(p),C=fa(e,p,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:i===!0,parentDefaults:oe(f,[w]),rawFormData:oe(m,[w]),required:(E=k.required)===null||E===void 0?void 0:E.includes(w),shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u});return th(b,w,C,i,c,k.required,s,S,(p==null?void 0:p.type)==="null"),b},{});if(k.additionalProperties&&!u){const b=Ae(k.additionalProperties)?k.additionalProperties:{},w=new Set,E=[];Object.keys(m).filter(p=>!k.properties||!k.properties[p]).forEach(p=>{w.add(p),E.push(p)}),Ae(f)&&E.length===0&&Object.keys(f).filter(p=>!k.properties||!k.properties[p]).forEach(p=>w.add(p)),w.forEach(p=>{var g;const S=fa(e,b,{rootSchema:a,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:i===!0,parentDefaults:oe(f,[p]),rawFormData:oe(m,[p]),required:(g=k.required)===null||g===void 0?void 0:g.includes(p),shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u});th(y,p,S,i,c,E)})}return fk(t,y)}}function DO(e,t,{rawFormData:r,rootSchema:a={},_recurseList:i=[],experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,requiredAsRoot:c=!1,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u}={},f){var m,d;let h=f;const k=t,v=(m=n==null?void 0:n.arrayMinItems)!==null&&m!==void 0?m:{},{populate:y,mergeExtraDefaults:b}=v,w=y==="never",E=y==="requiredOnly",p=y==="all"||!w&&!E,g=(d=v==null?void 0:v.computeSkipPopulate)!==null&&d!==void 0?d:(()=>!1),C=(n==null?void 0:n.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(h)&&(h=h.map((x,A)=>{const N=fu(k,Ui.Fallback,A),I=Array.isArray(r)?r[A]:void 0;return fa(e,N,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,parentDefaults:x,rawFormData:I,required:o,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u})})),Array.isArray(r)){const x=fu(k);if(w)h=r;else{const A=r.map((I,F)=>fa(e,x,{rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:I,parentDefaults:oe(h,[F]),required:o,shouldMergeDefaultsIntoFormData:l,initialDefaultsGenerated:u}));h=Vs(h,A,(E&&o||p)&&b)}}const O=Array.isArray(h)?h.length:0;if(w)return l&&!o?h:h??C;if(E&&!o)return h||void 0;let _;if(!k.minItems||Wd(e,k,a,s)||g(e,k,a)||k.minItems<=O)_=h||!o&&!c?h:C;else{const x=h||[],A=fu(k,Ui.Invert),N=A.default,I=Array.from({length:k.minItems-O},()=>fa(e,A,{parentDefaults:N,rootSchema:a,_recurseList:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,shouldMergeDefaultsIntoFormData:l}));_=x.concat(I)}return fk(t,_)}function rh(e,t,r={},a){switch(Yr(t)){case"object":return jO(e,t,r,a);case"array":return DO(e,t,r,a);default:return}}function dk(e,t,r,a,i=!1,n,s,o){if(!Ae(t))throw new Error(`Invalid schema: ${t}`);const c=er(e,t,a,r,s),l=fa(e,c,{rootSchema:a,includeUndefinedValues:i,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:o,requiredAsRoot:!0});if(c.type!=="object"&&Ae(c.default))return{...l,...r};if(Ae(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:u}=n||{},f=u==="useDefaultIfFormDataUndefined",m=Kd(e,c,a??c,r,n,s);return Vs(l,m,!0,f,!0)}return l}function mk(e={}){return"widget"in ke(e)&&ke(e).widget!=="hidden"}function pk(e,t,r={},a,i){if(r[Cd]==="files")return!0;if(t.items){const n=er(e,t.items,a,void 0,i);return n.type==="string"&&n.format==="data-url"}return!1}function FO(e,t,r={},a,i,n){const s=ke(r,i),{label:o=!0}=s;let c=!!o;if(c){const l=Yr(t),u=!!t[la];l==="array"&&(c=u||Wd(e,t,a,n)||pk(e,t,r,a,n)||mk(r)),l==="object"&&(c=u),l==="boolean"&&r&&!r[Cd]&&(c=!1),r!=null&&r[tS]&&(c=!1)}return c}function hk(e,t,r){for(var a=-1,i=t.length,n={};++a<i;){var s=t[a],o=ic(e,s);r(o,s)&&$d(n,Hi(s,e),o)}return n}function MO(e,t){return hk(e,t,function(r,a){return Vb(e,a)})}var gk=Rb(function(e,t){return e==null?{}:MO(e,t)});function LO(e,t){if(t.length===0&&typeof e!="object")return e;const r=gk(e,t);return Array.isArray(e)?Object.keys(r).map(a=>r[a]):r}function qO(e,t){const r=(i,n)=>typeof i!="object"||Rt(i)||n&&!Rt(i),a=(i,n=[],s=[[]])=>{const o=Object.keys(i);return o.forEach(c=>{const l=i[c];if(typeof l=="object"){const u=s.map(f=>[...f,c]);l[xd]&&l[El]!==""?n.push(l[El]):a(l,n,u)}else c===El&&l!==""&&s.forEach(u=>{const f=oe(t,u),m=o.length===1;(r(f,m)||Array.isArray(f)&&f.every(d=>r(d,m)))&&n.push(u)})}),n};return a(e)}function yk(e){return $i(e)||e===""?!0:Array.isArray(e)?e.length===0:Ae(e)?Object.values(e).every(yk):!1}function zO(e,t){return t?t(e):Qb(e)}function $O(e,t,r={},a,i){function n(h){return Ae(h)}function s(h){return Ae(h)}function o(h,k,v){var y;const{properties:b,additionalProperties:w,patternProperties:E,propertyNames:p}=h,g=new Set((y=h.required)!==null&&y!==void 0?y:[]);function S(O,_,x,A=!1){var N;const I=d(_,x,v[O]);if(!A&&Ae(I)){let F=s(_)?_:{};F.$ref!==void 0&&(F=zs(F.$ref,r));const $=new Set((N=F.required)!==null&&N!==void 0?N:[]);if(Object.entries(I).every(([Z,ie])=>!$.has(Z)&&yk(ie)))return}I!==void 0&&(v[O]=I)}if(b!==void 0)for(const[O,_]of Object.entries(b))S(O,_,k[O],g.has(O));let C;if(E!==void 0){C=[];const O=Object.entries(E).map(([x,A])=>[new RegExp(x),A]),_=new Set(Object.keys(b??{}));for(const[x,A]of Object.entries(k))if(!_.has(x)){const N=O.find(([I])=>I.test(x));N===void 0?C.push(x):S(x,N[1],A)}}if(w!==void 0&&w!==!1){const O=w;if(C!==void 0)for(const _ of C)S(_,O,k[_]);else{const _=new Set(Object.keys(b??{}));for(const[x,A]of Object.entries(k))_.has(x)||S(x,O,A)}}if(p!==void 0)for(const[O,_]of Object.entries(k))v[O]=_;return v}function c(h,k,v){const{items:y,additionalItems:b}=h;if(y!==void 0)if(Array.isArray(y))for(let w=0;w<y.length;w+=1)v.push(d(y[w],k[w]));else for(let w=0;w<k.length;w+=1)v.push(d(y,k[w]));if(b)for(let w=v.length;w<k.length;w+=1)v.push(d(b,k[w]));return v}function l(h,k,v){const{if:y,then:b,else:w}=h;if(y===void 0)return v;const p=(s(y)?e.isValid(y,k,r):y)?b:w;return p===void 0?v:d(p,k,v)}function u(h,k,v,y){if(!Array.isArray(h)||dc(e,k,r,i))return y;const b=ak(h,!0,r),w=zi(e,r,v,b,0,Jr(k),i),E=h[w],p=Ae(E)?ua(E,r,[]):b[w];return d(p,v,y)}function f(h,k,v){const{anyOf:y}=h;if(!Array.isArray(y))return v;if(k===void 0||Array.isArray(k)&&k.length===0||Ae(k)&&Object.keys(k).length===0){let b=v;for(const w of y)b=d(w,k,b);return b}return u(y,h,k,v)}function m(h,k,v){const{dependencies:y}=h;if(y===void 0||!n(k))return v;let b=v;for(const[w,E]of Object.entries(y))w in k&&!Array.isArray(E)&&(b=d(E,k,b));return b}function d(h,k,v){if(k===void 0||h===!1)return;if(h===!0||Rt(h))return k;let y=h;const{$ref:b,allOf:w}=y;if(b!==void 0)return d(zs(b,r),k,v);if(w){y=zO(y,i);const g=y.allOf;if(g)for(let S=0;S<g.length;S++)v=d(g[S],k,v)}let E=f(y,k,u(y.oneOf,y,k,v));const p=Yr(y);if(p==="object"){if(!n(k))return;E=o(y,k,n(E)?E:{})}else if(p==="array"){if(!Array.isArray(k))return;E=c(y,k,Array.isArray(E)?E:[])}else E===void 0&&(E=k);return m(y,k,l(y,k,E))}return d(t,a)}const qr=Symbol("no Value");function vk(e){if(Array.isArray(e.enum))return e.enum;const t=e.oneOf||e.anyOf;if(!Array.isArray(t))return;const r=t.map(a=>mr in a?a[mr]:Array.isArray(a.enum)&&a.enum.length===1?a.enum[0]:qr).filter(a=>a!==qr);return r.length>0?r:void 0}function UO(e,t){const r=vk(e);if(!r||r.some(i=>Je(i,t)))return qr;const a=oe(e,Ha,qr);return a!==qr&&r.some(i=>Je(i,a))?a:r.length===1?r[0]:void 0}function qf(e,t,r,a,i={},n){let s;if(Ge(r,Ye)){const o={};if(Ge(a,Ye)){const u=oe(a,Ye,{});Object.keys(u).forEach(f=>{Ge(i,f)&&(o[f]=void 0)})}const c=Object.keys(oe(r,Ye,{})),l={};c.forEach(u=>{const f=oe(i,u);let m=oe(a,[Ye,u],{}),d=oe(r,[Ye,u],{});Ge(m,gt)&&(m=er(e,m,t,f,n)),Ge(d,gt)&&(d=er(e,d,t,f,n));const h=oe(m,"type"),k=oe(d,"type");if(!h||h===k)if(Ge(o,u)&&delete o[u],k==="object"||k==="array"&&Array.isArray(f)){const v=qf(e,t,d,m,f,n);(v!==void 0||k==="array")&&(l[u]=v)}else{const v=oe(d,Ha,qr),y=oe(m,Ha,qr);v!==qr&&v!==f&&(y===f?o[u]=v:oe(d,"readOnly")===!0&&(o[u]=void 0));const b=oe(d,mr,qr),w=oe(m,mr,qr);if(b!==qr&&b!==f&&(o[u]=w===f?b:void 0),Ge(i,u)){const E=UO(d,f);E!==qr&&(o[u]=E)}}}),s={...typeof i=="string"||Array.isArray(i)?void 0:i,...o,...l}}else if(oe(a,"type")==="array"&&oe(r,"type")==="array"&&Array.isArray(i)){let o=oe(a,"items"),c=oe(r,"items");if(typeof o=="object"&&typeof c=="object"&&!Array.isArray(o)&&!Array.isArray(c)){Ge(o,gt)&&(o=er(e,o,t,i,n)),Ge(c,gt)&&(c=er(e,c,t,i,n));const l=oe(o,"type"),u=oe(c,"type");if(!l||l===u){const f=oe(r,"maxItems",-1);if(u==="object")s=i.reduce((m,d)=>{const h=qf(e,t,c,o,d,n);return h!==void 0&&(f<0||m.length<f)&&m.push(h),m},[]);else{const m=vk(c),d=m?i.filter(h=>m.some(k=>Je(k,h))):i;s=f>0&&d.length>f?d.slice(0,f):d}}}else typeof o=="boolean"&&typeof c=="boolean"&&o===c&&(s=i)}return s}function aa(e,t,r,a,i,n=[],s){if(gt in t||wd in t||_n in t||Sd in t){const c=er(e,t,a,i,s);if(n.findIndex(u=>Je(u,c))===-1)return aa(e,c,r,a,i,n.concat(c),s)}let o={[El]:r.replace(/^\./,"")};if(Fe in t||We in t){const c=Fe in t?t.oneOf:t.anyOf,l=Jr(t),u=zi(e,a,i,c,0,l,s),f=c[u];o={...o,...aa(e,f,r,a,i,n,s)}}if(xi in t&&t[xi]!==!1){yt(o,xd,!0);const c=Xe(t[xi])?t[xi]:{},l=oe(t,Ye,{});for(const u of Object.keys(i??{}))u in l||(o[u]=aa(e,c,`${r}.${u}`,a,oe(i,[u]),n,s))}if(Mi in t&&Array.isArray(i)){const{items:c,additionalItems:l}=t;Array.isArray(c)?i.forEach((u,f)=>{c[f]?o[f]=aa(e,c[f],`${r}.${f}`,a,u,n,s):l?o[f]=aa(e,l,`${r}.${f}`,a,u,n,s):console.warn(`Unable to generate path schema for "${r}.${f}". No schema defined for it`)}):i.forEach((u,f)=>{o[f]=aa(e,c,`${r}.${f}`,a,u,n,s)})}else if(Ye in t)for(const c in t.properties){const l=oe(t,[Ye,c],{});o[c]=aa(e,l,`${r}.${c}`,a,oe(i,[c]),n,s)}return o}function BO(e,t,r="",a,i,n){return aa(e,t,r,a,i,void 0,n)}class VO{constructor(t,r,a,i){(r==null?void 0:r[Ss])===Cl?this.rootSchema=Df(r,oe(r,pt,"#")):this.rootSchema=r,this.validator=t,this.experimental_defaultFormStateBehavior=a,this.experimental_customMergeAllOf=i}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,r,a={},i){return!t||!r?!1:this.validator!==t||!Je(this.rootSchema,r)||!Je(this.experimental_defaultFormStateBehavior,a)||this.experimental_customMergeAllOf!==i}findFieldInSchema(t,r,a){return CO(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,r,a,i){return xs(this.validator,this.rootSchema,t,r,a,i,this.experimental_customMergeAllOf)}getDefaultFormState(t,r,a=!1,i){return dk(this.validator,t,r,this.rootSchema,a,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,i)}getDisplayLabel(t,r,a){return FO(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,a,i){return zi(this.validator,this.rootSchema,t,r,a,i,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,a){return Ul(this.validator,t,r,this.rootSchema,a)}getFromSchema(t,r,a){return Ol(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}isFilesArray(t,r){return pk(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return Wd(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return dc(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return $O(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,a){return er(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,a)}sanitizeDataForNewSchema(t,r,a){return qf(this.validator,this.rootSchema,t,r,a,this.experimental_customMergeAllOf)}toPathSchema(t,r,a){return BO(this.validator,t,r,this.rootSchema,a,this.experimental_customMergeAllOf)}}function HO(e,t,r={},a){return new VO(e,t,r,a)}function WO(e){var t;if(!e.includes("data:"))throw new Error("File is invalid: URI must be a dataURI");const a=e.slice(5).split(";base64,");if(a.length!==2)throw new Error("File is invalid: dataURI must be base64");const[i,n]=a,[s,...o]=i.split(";"),c=s||"",l=decodeURI(((t=o.map(u=>u.split("=")).find(([u])=>u==="name"))===null||t===void 0?void 0:t[1])||"unknown");try{const u=atob(n),f=new Array(u.length);for(let d=0;d<u.length;d+=1)f[d]=u.charCodeAt(d);return{blob:new window.Blob([new Uint8Array(f)],{type:c}),name:l}}catch(u){throw new Error(`File is invalid: ${u.message}`)}}function ia(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function bk(e,t){const r=e<=0&&t<=0,a=e<0||t<0;if(!r&&a)throw new Error(`Both start (${e}) and stop (${t}) must both be <= 0 or > 0, got one of each`);const i=new Date().getFullYear(),n=r?i+e:e,s=r?i+t:t;if(n>s)return bk(t,e).reverse();const o=[];for(let c=n;c<=s;c+=1)o.push({value:c,label:ia(c,2)});return o}function KO(e,t){let r=e;if(Array.isArray(t)){const a=r.split(/(%\d)/);t.forEach((i,n)=>{const s=a.findIndex(o=>o===`%${n+1}`);s>=0&&(a[s]=i)}),r=a.join("")}return r}function GO(e,t){return KO(e,t)}function mc(e,t=[],r){if(Array.isArray(e))return e.map(n=>mc(n,t)).filter(n=>n!==void 0);const a=e===""||e===null?-1:Number(e),i=t[a];return i?i.value:r}function kk(e,t,r=[]){const a=mc(e,r);return Array.isArray(t)?t.filter(i=>!Je(i,a)):Je(a,t)?void 0:t}function Ki(e,t){return Array.isArray(t)?t.some(r=>Je(r,e)):Je(t,e)}function wk(e,t=[],r=!1){const a=t.map((i,n)=>Ki(i.value,e)?String(n):void 0).filter(i=>typeof i<"u");return r?a:a[0]}function JO(e,t,r,a="indexed",i){if(typeof e>"u"||r&&Array.isArray(e)&&e.length<1||!r&&e===i)return i;if(a==="realValue")return r?e.map(String):String(e);const s=wk(e,t,r);return typeof s>"u"?i:s}function Sk(e,t,r=[]){const a=mc(e,r);if(!$i(a)){const i=r.findIndex(o=>a===o.value),n=r.map(({value:o})=>o);return t.slice(0,i).concat(a,t.slice(i)).sort((o,c)=>+(n.indexOf(o)>n.indexOf(c)))}return t}function nh(e,t,r){if(e===""||!Array.isArray(t))return r;const a=t.find(n=>String(n.value)===e);if(a)return a.value;const i=Number(e);return!Number.isNaN(i)&&i>=0&&i<t.length?t[i].value:r}function on(e,t,r="indexed",a){return r!=="realValue"?mc(e,t,a):Array.isArray(e)?e.map(i=>nh(i,t,a)):nh(e,t,a)}function to(e,t,r="indexed"){return r!=="realValue"?String(t):$i(e)?"":String(typeof e=="object"?t:e)}var YO=1,XO=4;function Bl(e){return Ts(e,YO|XO)}function ZO(e,t,r,a){return a=typeof a=="function"?a:void 0,e==null?e:$d(e,t,r,a)}class Ek{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let a=Array.isArray(t)&&t.length>0||typeof t=="string"?oe(this.errorSchema,t):this.errorSchema;return!a&&t&&(a={},ZO(this.errorSchema,t,a,Object)),a}resetAllErrors(t){return this.errorSchema=t?Bl(t):{},this}addErrors(t,r){const a=this.getOrCreateErrorBlock(r);let i=oe(a,Zt);return Array.isArray(i)||(i=[],a[Zt]=i),Array.isArray(t)?yt(a,Zt,[...new Set([...i,...t])]):yt(a,Zt,[...new Set([...i,t])]),this}setErrors(t,r){const a=this.getOrCreateErrorBlock(r),i=Array.isArray(t)?[...new Set([...t])]:[t];return yt(a,Zt,i),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return yt(r,Zt,[]),this}}var QO=200;function eT(e,t,r,a){var i=-1,n=Vd,s=!0,o=e.length,c=[],l=t.length;if(!o)return c;t.length>=QO&&(n=Us,s=!1,t=new Ga(t));e:for(;++i<o;){var u=e[i],f=u;if(u=u!==0?u:0,s&&f===f){for(var m=l;m--;)if(t[m]===f)continue e;c.push(u)}else n(t,f,a)||c.push(u)}return c}var tT=cc(function(e,t){return $s(e)?eT(e,eo(t,1,$s,!0)):[]});function rT(e,t){if(e==null)return{};var r=Vi(Ld(e),function(a){return[a]});return t=Bd(t),hk(e,r,function(a,i){return t(a,i[0])})}function ah(e,t){const r=ya(e),a=ya(t);if(e===t||!r&&!a)return[];if(r&&!a)return nn(e);if(!r&&a)return nn(t);const i=nn(rT(e,(s,o)=>!Je(s,oe(t,o)))),n=tT(nn(t),nn(e));return[...i,...n]}function nT(e,t,r=[1900,new Date().getFullYear()+2],a="YMD"){const{day:i,month:n,year:s,hour:o,minute:c,second:l}=e,u={type:"day",range:[1,31],value:i},f={type:"month",range:[1,12],value:n},m={type:"year",range:r,value:s},d=[];switch(a){case"MDY":d.push(f,u,m);break;case"DMY":d.push(u,f,m);break;case"YMD":default:d.push(m,f,u)}return t&&d.push({type:"hour",range:[0,23],value:o},{type:"minute",range:[0,59],value:c},{type:"second",range:[0,59],value:l}),d}function aT(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||e.minimum===0)&&(t.min=e.minimum),(e.maximum||e.maximum===0)&&(t.max=e.maximum),t}function iT(e,t,r={},a=!0){const i={type:t||"text",...aT(e)};return r.inputType?i.type=r.inputType:t||(e.type==="number"?(i.type="number",a&&i.step===void 0&&(i.step="any")):e.type==="integer"&&(i.type="number",i.step===void 0&&(i.step=1))),["date","datetime-local","time","week","month"].includes(i.type)&&(e.formatMinimum!==void 0&&(i.min=e.formatMinimum),e.formatMaximum!==void 0&&(i.max=e.formatMaximum)),r.autocomplete&&(i.autoComplete=r.autocomplete),r.accept&&(i.accept=r.accept),i}function ro(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const ih={props:{disabled:!1},submitText:"Submit",norender:!1};function xk(e={}){const t=ke(e);if(t!=null&&t[Ml]){const r=t[Ml];return{...ih,...r}}return ih}function xe(e,t,r={}){const{templates:a}=t;if(e==="ButtonTemplates")return a[e];if(Object.hasOwn(r,e)&&typeof r[e]=="string"&&Object.hasOwn(a,r[e])){const i=r[e];return a[i]}return r[e]||a[e]}var sT=0;function Ck(e){var t=++sT;return Od(e)+t}function Gd(){if(oe(globalThis,"process.env.NODE_ENV")!=="test")return{};const e=new Map;return new Proxy({},{get(t,r){return e.has(r)||e.set(r,Ck("test-id-")),e.get(r)}})}var _o={exports:{}},ft={};/**
|
|
58
|
+
*/var sp;function WO(){return sp||(sp=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(n=a(n,i(o)))}return n}function i(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return r.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var s="";for(var o in n)t.call(n,o)&&n[o]&&(s=a(s,o));return s}function a(n,s){return s?n?n+" "+s:n+s:n}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(ku)),ku.exports}var GO=WO();const wn=Wr(GO);function be(e){return typeof e!="object"||e===null||typeof e.lastModified=="number"&&typeof File<"u"&&e instanceof File||typeof e.getMonth=="function"&&typeof Date<"u"&&e instanceof Date?!1:!Array.isArray(e)}function JO(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),be(e.additionalItems)}function vb(e){var t;const r=typeof navigator<"u"?navigator.languages:void 0;if(r)try{return((t=new Intl.NumberFormat(r).formatToParts(1.1).find(n=>n.type==="decimal"))===null||t===void 0?void 0:t.value)||"."}catch{}return"."}function op(e){if(e==="")return;if(e===null)return null;const t=vb(),r=typeof e=="string"&&t!=="."?e.replace(t,"."):e;if(/\.$/.test(r)||/\.0$/.test(r)||/\.\d*0$/.test(r))return e;const i=Number(r);return typeof i=="number"&&!Number.isNaN(i)?i:e}const Sn=Symbol("__additional_property"),qi="additionalProperties",Hr="allOf",Le="anyOf",Kt="const",li="default",Yf="dependencies",YO="enum",Nt="__errors",nt="$id",Xf="if",Xi="items",XO="_$junk_option_schema_id$_",jo="$name",Ae="oneOf",Jc="patternProperties",$e="properties",wu="readonly",bb="required",Go="submitButtonOptions",at="$ref",Ro=Symbol("__rjsf_ref"),Zf=Symbol("__rjsf_ref_cycle"),Ia="$schema",kb="root",wb="_",ZO=["discriminator","propertyName"],lp="formContext",QO="layoutGridLookupMap",xb="__rjsf",Qf=`${xb}_additionalProperties`,Sb=`${xb}_rootSchema`,e_="ui:field",ed="ui:widget",Cn="ui:options",Yc="ui:globalOptions",t_="ui:definitions",r_="https://json-schema.org/draft/2019-09/schema",No="https://json-schema.org/draft/2020-12/schema";function me(e={},t={}){return e?Object.keys(e).filter(r=>r.startsWith("ui:")).reduce((r,i)=>{const a=e[i];return i===ed&&be(a)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):i===Cn&&be(a)?{...r,...a}:{...r,[i.substring(3)]:a}},{...t}):{...t}}function Cb(e,t={},r){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:i=!0}=me(t);return i===!1?i:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var Eb=typeof global=="object"&&global&&global.Object===Object&&global,n_=typeof self=="object"&&self&&self.Object===Object&&self,Yr=Eb||n_||Function("return this")(),hr=Yr.Symbol,Ab=Object.prototype,i_=Ab.hasOwnProperty,a_=Ab.toString,wa=hr?hr.toStringTag:void 0;function s_(e){var t=i_.call(e,wa),r=e[wa];try{e[wa]=void 0;var i=!0}catch{}var a=a_.call(e);return i&&(t?e[wa]=r:delete e[wa]),a}var o_=Object.prototype,l_=o_.toString;function u_(e){return l_.call(e)}var c_="[object Null]",f_="[object Undefined]",up=hr?hr.toStringTag:void 0;function sn(e){return e==null?e===void 0?f_:c_:up&&up in Object(e)?s_(e):u_(e)}function Ob(e,t){return function(r){return e(t(r))}}var gl=Ob(Object.getPrototypeOf,Object);function gr(e){return e!=null&&typeof e=="object"}var d_="[object Object]",m_=Function.prototype,p_=Object.prototype,_b=m_.toString,h_=p_.hasOwnProperty,g_=_b.call(Object);function jn(e){if(!gr(e)||sn(e)!=d_)return!1;var t=gl(e);if(t===null)return!0;var r=h_.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&_b.call(r)==g_}function Xc(e){const t={[Nt]:[],addError(r){this[Nt].push(r)}};if(Array.isArray(e))return e.reduce((r,i,a)=>({...r,[a]:Xc(i)}),t);if(jn(e)){const r=e;return Object.keys(r).reduce((i,a)=>({...i,[a]:Xc(r[a])}),t)}return t}var jt=Array.isArray,y_="[object Symbol]";function os(e){return typeof e=="symbol"||gr(e)&&sn(e)==y_}var v_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b_=/^\w*$/;function td(e,t){if(jt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||os(e)?!0:b_.test(e)||!v_.test(e)||t!=null&&e in Object(t)}function Ue(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var k_="[object AsyncFunction]",w_="[object Function]",x_="[object GeneratorFunction]",S_="[object Proxy]";function ls(e){if(!Ue(e))return!1;var t=sn(e);return t==w_||t==x_||t==k_||t==S_}var xu=Yr["__core-js_shared__"],cp=(function(){var e=/[^.]+$/.exec(xu&&xu.keys&&xu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function C_(e){return!!cp&&cp in e}var E_=Function.prototype,A_=E_.toString;function bi(e){if(e!=null){try{return A_.call(e)}catch{}try{return e+""}catch{}}return""}var O_=/[\\^$.*+?()[\]{}|]/g,__=/^\[object .+?Constructor\]$/,P_=Function.prototype,I_=Object.prototype,T_=P_.toString,j_=I_.hasOwnProperty,R_=RegExp("^"+T_.call(j_).replace(O_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function N_(e){if(!Ue(e)||C_(e))return!1;var t=ls(e)?R_:__;return t.test(bi(e))}function F_(e,t){return e==null?void 0:e[t]}function ki(e,t){var r=F_(e,t);return N_(r)?r:void 0}var Wa=ki(Object,"create");function D_(){this.__data__=Wa?Wa(null):{},this.size=0}function M_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var L_="__lodash_hash_undefined__",q_=Object.prototype,z_=q_.hasOwnProperty;function $_(e){var t=this.__data__;if(Wa){var r=t[e];return r===L_?void 0:r}return z_.call(t,e)?t[e]:void 0}var U_=Object.prototype,B_=U_.hasOwnProperty;function V_(e){var t=this.__data__;return Wa?t[e]!==void 0:B_.call(t,e)}var H_="__lodash_hash_undefined__";function K_(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Wa&&t===void 0?H_:t,this}function ui(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ui.prototype.clear=D_;ui.prototype.delete=M_;ui.prototype.get=$_;ui.prototype.has=V_;ui.prototype.set=K_;function W_(){this.__data__=[],this.size=0}function us(e,t){return e===t||e!==e&&t!==t}function yl(e,t){for(var r=e.length;r--;)if(us(e[r][0],t))return r;return-1}var G_=Array.prototype,J_=G_.splice;function Y_(e){var t=this.__data__,r=yl(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():J_.call(t,r,1),--this.size,!0}function X_(e){var t=this.__data__,r=yl(t,e);return r<0?void 0:t[r][1]}function Z_(e){return yl(this.__data__,e)>-1}function Q_(e,t){var r=this.__data__,i=yl(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function on(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}on.prototype.clear=W_;on.prototype.delete=Y_;on.prototype.get=X_;on.prototype.has=Z_;on.prototype.set=Q_;var Ga=ki(Yr,"Map");function eP(){this.size=0,this.__data__={hash:new ui,map:new(Ga||on),string:new ui}}function tP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vl(e,t){var r=e.__data__;return tP(t)?r[typeof t=="string"?"string":"hash"]:r.map}function rP(e){var t=vl(this,e).delete(e);return this.size-=t?1:0,t}function nP(e){return vl(this,e).get(e)}function iP(e){return vl(this,e).has(e)}function aP(e,t){var r=vl(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function ln(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ln.prototype.clear=eP;ln.prototype.delete=rP;ln.prototype.get=nP;ln.prototype.has=iP;ln.prototype.set=aP;var sP="Expected a function";function rd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(sP);var r=function(){var i=arguments,a=t?t.apply(this,i):i[0],n=r.cache;if(n.has(a))return n.get(a);var s=e.apply(this,i);return r.cache=n.set(a,s)||n,s};return r.cache=new(rd.Cache||ln),r}rd.Cache=ln;var oP=500;function lP(e){var t=rd(e,function(i){return r.size===oP&&r.clear(),i}),r=t.cache;return t}var uP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cP=/\\(\\)?/g,Pb=lP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(uP,function(r,i,a,n){t.push(a?n.replace(cP,"$1"):i||r)}),t});function sa(e,t){for(var r=-1,i=e==null?0:e.length,a=Array(i);++r<i;)a[r]=t(e[r],r,e);return a}var fp=hr?hr.prototype:void 0,dp=fp?fp.toString:void 0;function Ib(e){if(typeof e=="string")return e;if(jt(e))return sa(e,Ib)+"";if(os(e))return dp?dp.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function nd(e){return e==null?"":Ib(e)}function oa(e,t){return jt(e)?e:td(e,t)?[e]:Pb(nd(e))}function Rn(e){if(typeof e=="string"||os(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function bl(e,t){t=oa(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Rn(t[r++])];return r&&r==i?e:void 0}function ae(e,t,r){var i=e==null?void 0:bl(e,t);return i===void 0?r:i}const{getOwnPropertyNames:mp,getOwnPropertySymbols:fP}=Object,{hasOwnProperty:dP}=Object.prototype;function Su(e,t){return function(i,a,n){return e(i,a,n)&&t(i,a,n)}}function Ns(e){return function(r,i,a){if(!r||!i||typeof r!="object"||typeof i!="object")return e(r,i,a);const{cache:n}=a,s=n.get(r),o=n.get(i);if(s&&o)return s===i&&o===r;n.set(r,i),n.set(i,r);const l=e(r,i,a);return n.delete(r),n.delete(i),l}}function pp(e){const t=fP(e);return t.length?mp(e).concat(t):mp(e)}const mP=Object.hasOwn||((e,t)=>dP.call(e,t)),pP="__v",hP="__o",gP="_owner",{getOwnPropertyDescriptor:hp,keys:gp}=Object,wi=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function yP(e,t){return e===t}function vP(e,t){return e.byteLength===t.byteLength&&Jo(new Uint8Array(e),new Uint8Array(t))}function bP(e,t,r){let i=e.length;if(t.length!==i)return!1;for(;i-- >0;)if(!r.equals(e[i],t[i],i,i,e,t,r))return!1;return!0}function kP(e,t){return e.byteLength===t.byteLength&&Jo(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function wP(e,t){return wi(e.getTime(),t.getTime())}function xP(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function yp(e,t,r){const i=e.size;if(i!==t.size)return!1;if(!i)return!0;const a=new Uint8Array(i),n=e.entries();let s,o,l=0;for(;(s=n.next())&&!s.done;){const u=t.entries();let c=0,f=0;for(;(o=u.next())&&!o.done;){if(a[f]){f++;continue}const m=s.value,d=o.value;if(r.equals(m[0],d[0],l,f,e,t,r)&&r.equals(m[1],d[1],m[0],d[0],e,t,r)){c=a[f]=1;break}f++}if(!c)return!1;l++}return!0}function SP(e,t,r){const i=gp(e);let a=i.length;if(gp(t).length!==a)return!1;for(;a-- >0;)if(!Tb(e,t,r,i[a]))return!1;return!0}function xa(e,t,r){const i=pp(e);let a=i.length;if(pp(t).length!==a)return!1;let n,s,o;for(;a-- >0;)if(n=i[a],!Tb(e,t,r,n)||(s=hp(e,n),o=hp(t,n),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function CP(e,t){return wi(e.valueOf(),t.valueOf())}function EP(e,t){return e.source===t.source&&e.flags===t.flags}function vp(e,t,r){const i=e.size;if(i!==t.size)return!1;if(!i)return!0;const a=new Uint8Array(i),n=e.values();let s,o;for(;(s=n.next())&&!s.done;){const l=t.values();let u=0,c=0;for(;(o=l.next())&&!o.done;){if(!a[c]&&r.equals(s.value,o.value,s.value,o.value,e,t,r)){u=a[c]=1;break}c++}if(!u)return!1}return!0}function Jo(e,t){let r=e.length;if(t.length!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function AP(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Tb(e,t,r,i){return(i===gP||i===hP||i===pP)&&(e.$$typeof||t.$$typeof)?!0:mP(t,i)&&r.equals(e[i],t[i],i,i,e,t,r)}const OP=Object.prototype.toString;function _P(e){const t=jP(e),{areArraysEqual:r,areDatesEqual:i,areFunctionsEqual:a,areMapsEqual:n,areNumbersEqual:s,areObjectsEqual:o,areRegExpsEqual:l,areSetsEqual:u,getUnsupportedCustomComparator:c}=e;return function(m,d,p){if(m===d)return!0;if(m==null||d==null)return!1;const b=typeof m;if(b!==typeof d)return!1;if(b!=="object")return b==="number"||b==="bigint"?s(m,d,p):b==="function"?a(m,d,p):!1;const k=m.constructor;if(k!==d.constructor)return!1;if(k===Object)return o(m,d,p);if(k===Array)return r(m,d,p);if(k===Date)return i(m,d,p);if(k===RegExp)return l(m,d,p);if(k===Map)return n(m,d,p);if(k===Set)return u(m,d,p);if(k===Promise)return!1;if(Array.isArray(m))return r(m,d,p);const g=OP.call(m),v=t[g];if(v)return v(m,d,p);const w=c&&c(m,d,p,g);return w?w(m,d,p):!1}}function PP({circular:e,createCustomConfig:t,strict:r}){let i={areArrayBuffersEqual:vP,areArraysEqual:r?xa:bP,areDataViewsEqual:kP,areDatesEqual:wP,areErrorsEqual:xP,areFunctionsEqual:yP,areMapsEqual:r?Su(yp,xa):yp,areNumbersEqual:wi,areObjectsEqual:r?xa:SP,arePrimitiveWrappersEqual:CP,areRegExpsEqual:EP,areSetsEqual:r?Su(vp,xa):vp,areTypedArraysEqual:r?Su(Jo,xa):Jo,areUrlsEqual:AP,getUnsupportedCustomComparator:void 0};if(t&&(i=Object.assign({},i,t(i))),e){const a=Ns(i.areArraysEqual),n=Ns(i.areMapsEqual),s=Ns(i.areObjectsEqual),o=Ns(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:a,areMapsEqual:n,areObjectsEqual:s,areSetsEqual:o})}return i}function IP(e){return function(t,r,i,a,n,s,o){return e(t,r,o)}}function TP({circular:e,comparator:t,createState:r,equals:i,strict:a}){if(r)return function(o,l){const{cache:u=e?new WeakMap:void 0,meta:c}=r();return t(o,l,{cache:u,equals:i,meta:c,strict:a})};if(e)return function(o,l){return t(o,l,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};const n={cache:void 0,equals:i,meta:void 0,strict:a};return function(o,l){return t(o,l,n)}}function jP({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:i,areErrorsEqual:a,areFunctionsEqual:n,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:f,areTypedArraysEqual:m,areUrlsEqual:d}){return{"[object Arguments]":l,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":n,"[object BigInt]":o,"[object BigInt64Array]":m,"[object BigUint64Array]":m,"[object Boolean]":u,"[object DataView]":r,"[object Date]":i,"[object Error]":a,"[object Float16Array]":m,"[object Float32Array]":m,"[object Float64Array]":m,"[object Function]":n,"[object GeneratorFunction]":n,"[object Int8Array]":m,"[object Int16Array]":m,"[object Int32Array]":m,"[object Map]":s,"[object Number]":u,"[object Object]":(p,b,k)=>typeof p.then!="function"&&typeof b.then!="function"&&l(p,b,k),"[object RegExp]":c,"[object Set]":f,"[object String]":u,"[object URL]":d,"[object Uint8Array]":m,"[object Uint8ClampedArray]":m,"[object Uint16Array]":m,"[object Uint32Array]":m}}un();un({strict:!0});un({circular:!0});un({circular:!0,strict:!0});un({createInternalComparator:()=>wi});un({strict:!0,createInternalComparator:()=>wi});un({circular:!0,createInternalComparator:()=>wi});un({circular:!0,createInternalComparator:()=>wi,strict:!0});function un(e={}){const{circular:t=!1,createInternalComparator:r,createState:i,strict:a=!1}=e,n=PP(e),s=_P(n),o=r?r(s):IP(s);return TP({circular:t,comparator:s,createState:i,equals:o,strict:a})}const ze=un({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var Sa={exports:{}},Cu,bp;function jb(){if(bp)return Cu;bp=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu),n=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/?]$/iu);function s(x){let E="",O=0,j=0;for(j=0;j<x.length;j++)if(O=x[j].charCodeAt(0),O!==48){if(!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";E+=x[j];break}for(j+=1;j<x.length;j++){if(O=x[j].charCodeAt(0),!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";E+=x[j]}return E}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(x){return x.length=0,!0}function u(x,E,O){if(x.length){const j=s(x);if(j!=="")E.push(j);else return O.error=!0,!1;x.length=0}return!0}function c(x){let E=0;const O={error:!1,address:"",zone:""},j=[],T=[];let F=!1,q=!1,J=u;for(let Y=0;Y<x.length;Y++){const te=x[Y];if(!(te==="["||te==="]"))if(te===":"){if(F===!0&&(q=!0),!J(T,j,O))break;if(++E>7){O.error=!0;break}Y>0&&x[Y-1]===":"&&(F=!0),j.push(":");continue}else if(te==="%"){if(!J(T,j,O))break;J=l}else{T.push(te);continue}}return T.length&&(J===l?O.zone=T.join(""):q?j.push(T.join("")):j.push(s(T))),O.address=j.join(""),O}function f(x){if(m(x,":")<2)return{host:x,isIPV6:!1};const E=c(x);if(E.error)return{host:x,isIPV6:!1};{let O=E.address,j=E.address;return E.zone&&(O+="%"+E.zone,j+="%25"+E.zone),{host:O,isIPV6:!0,escapedHost:j}}}function m(x,E){let O=0;for(let j=0;j<x.length;j++)x[j]===E&&O++;return O}function d(x){let E=x;const O=[];let j=-1,T=0;for(;T=E.length;){if(T===1){if(E===".")break;if(E==="/"){O.push("/");break}else{O.push(E);break}}else if(T===2){if(E[0]==="."){if(E[1]===".")break;if(E[1]==="/"){E=E.slice(2);continue}}else if(E[0]==="/"&&E[1]==="."){O.push("/");break}}else if(T===3&&E==="/.."){O.length!==0&&O.pop(),O.push("/");break}if(E[0]==="."){if(E[1]==="."){if(E[2]==="/"){E=E.slice(3);continue}}else if(E[1]==="/"){E=E.slice(2);continue}}else if(E[0]==="/"&&E[1]==="."){if(E[2]==="/"){E=E.slice(2);continue}else if(E[2]==="."&&E[3]==="/"){E=E.slice(3),O.length!==0&&O.pop();continue}}if((j=E.indexOf("/",1))===-1){O.push(E);break}else O.push(E.slice(0,j)),E=E.slice(j)}return O.join("")}const p={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},b=/[@/?#:]/g,k=/[@/?#]/g;function g(x,E){const O=E?k:b;return O.lastIndex=0,x.replace(O,j=>p[j])}function v(x,E=!1){if(x.indexOf("%")===-1)return x;let O="";for(let j=0;j<x.length;j++){if(x[j]==="%"&&j+2<x.length){const T=x.slice(j+1,j+3);if(r(T)){const F=T.toUpperCase(),q=String.fromCharCode(parseInt(F,16));E&&i(q)?O+=q:O+="%"+F,j+=2;continue}}O+=x[j]}return O}const w=new Array(256);{const x="0123456789ABCDEF";for(let E=0;E<256;E++)w[E]="%"+x[E>>4]+x[E&15]}function C(x){return x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122||x===42||x===43||x===45||x===46||x===47||x===64||x===95}function h(x){return x<2048?w[192|x>>6]+w[128|x&63]:x<65536?w[224|x>>12]+w[128|x>>6&63]+w[128|x&63]:w[240|x>>18]+w[128|x>>12&63]+w[128|x>>6&63]+w[128|x&63]}function y(x){let E="";for(let O=0;O<x.length;O++){const j=x[O];if(j==="%"&&O+2<x.length){const T=x.slice(O+1,O+3);if(r(T)){const F=T.toUpperCase(),q=String.fromCharCode(parseInt(F,16));q!=="."&&i(q)?E+=q:E+="%"+F,O+=2;continue}}if(a(j))E+=j;else{const T=x.charCodeAt(O);if(T<128)E+=C(T)?j:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<x.length){const F=x.charCodeAt(O+1);F>=56320&&F<=57343?(E+=h(65536+(T-55296<<10)+(F-56320)),O++):E+=h(65533)}else E+=h(65533)}}return E}function S(x){let E="";for(let O=0;O<x.length;O++){const j=x[O];if(j==="%"&&O+2<x.length){const T=x.slice(O+1,O+3);if(r(T)){const F=T.toUpperCase(),q=String.fromCharCode(parseInt(F,16));i(q)?E+=q:E+="%"+F,O+=2;continue}}if(n(j))E+=j;else{const T=x.charCodeAt(O);if(T<128)E+=C(T)?j:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<x.length){const F=x.charCodeAt(O+1);F>=56320&&F<=57343?(E+=h(65536+(T-55296<<10)+(F-56320)),O++):E+=h(65533)}else E+=h(65533)}}return E}function A(x){let E="";for(let O=0;O<x.length;O++){const j=x[O];if(j==="%"&&O+2<x.length){const F=x.slice(O+1,O+3);if(r(F)){E+="%"+F.toUpperCase(),O+=2;continue}}const T=x.charCodeAt(O);if(T<128)E+=C(T)?j:w[T];else if(T<55296||T>57343)E+=h(T);else if(T<=56319&&O+1<x.length){const F=x.charCodeAt(O+1);F>=56320&&F<=57343?(E+=h(65536+(T-55296<<10)+(F-56320)),O++):E+=h(65533)}else E+=h(65533)}return E}function _(x){const E=[];if(x.userinfo!==void 0&&(E.push(x.userinfo),E.push("@")),x.host!==void 0){let O=unescape(x.host);if(!t(O)){const j=f(O);j.isIPV6===!0?O=`[${j.escapedHost}]`:O=g(O,!1)}E.push(O)}return(typeof x.port=="number"||typeof x.port=="string")&&(E.push(":"),E.push(String(x.port))),E.length?E.join(""):void 0}return Cu={nonSimpleDomain:o,recomposeAuthority:_,reescapeHostDelimiters:g,normalizePercentEncoding:v,normalizePathEncoding:y,normalizeQueryFragmentEncoding:S,escapePreservingEscapes:A,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:s},Cu}var Eu,kp;function RP(){if(kp)return Eu;kp=1;const{isUUID:e}=jb(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function i(h){return r.indexOf(h)!==-1}function a(h){return h.secure===!0?!0:h.secure===!1?!1:h.scheme?h.scheme.length===3&&(h.scheme[0]==="w"||h.scheme[0]==="W")&&(h.scheme[1]==="s"||h.scheme[1]==="S")&&(h.scheme[2]==="s"||h.scheme[2]==="S"):!1}function n(h){return h.host||(h.error=h.error||"HTTP URIs must have a host."),h}function s(h){const y=String(h.scheme).toLowerCase()==="https";return(h.port===(y?443:80)||h.port==="")&&(h.port=void 0),h.path||(h.path="/"),h}function o(h){return h.secure=a(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h}function l(h){if((h.port===(a(h)?443:80)||h.port==="")&&(h.port=void 0),typeof h.secure=="boolean"&&(h.scheme=h.secure?"wss":"ws",h.secure=void 0),h.resourceName){const[y,S]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=S,h.resourceName=void 0}return h.fragment=void 0,h}function u(h,y){if(!h.path)return h.error="URN can not be parsed",h;const S=h.path.match(t);if(S){const A=y.scheme||h.scheme||"urn";h.nid=S[1].toLowerCase(),h.nss=S[2];const _=`${A}:${y.nid||h.nid}`,x=C(_);h.path=void 0,x&&(h=x.parse(h,y))}else h.error=h.error||"URN can not be parsed.";return h}function c(h,y){if(h.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=y.scheme||h.scheme||"urn",A=h.nid.toLowerCase(),_=`${S}:${y.nid||A}`,x=C(_);x&&(h=x.serialize(h,y));const E=h,O=h.nss;return E.path=`${A||y.nid}:${O}`,y.skipEscape=!0,E}function f(h,y){const S=h;return S.uuid=S.nss,S.nss=void 0,!y.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function m(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},p={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},b={scheme:"ws",domainHost:!0,parse:o,serialize:l},k={scheme:"wss",domainHost:b.domainHost,parse:b.parse,serialize:b.serialize},w={http:d,https:p,ws:b,wss:k,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(w,null);function C(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return Eu={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:C},Eu}var wp;function NP(){if(wp)return Sa.exports;wp=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:l,nonSimpleDomain:u}=jb(),{SCHEMES:c,getSchemeHandler:f}=RP();function m(E,O){return typeof E=="string"?E=S(E,O):typeof E=="object"&&(E=y(k(E,O),O)),E}function d(E,O,j){const T=j?Object.assign({scheme:"null"},j):{scheme:"null"},{parsed:F,malformedAuthorityOrPort:q}=h(E,T),{parsed:J,malformedAuthorityOrPort:Y}=h(O,T);if(q||Y)throw new Error(F.error||J.error||"URI is malformed.");const te=p(F,J,T,!0);return T.skipEscape=!0,k(te,T)}function p(E,O,j,T){const F={};return T||(E=y(k(E,j),j),O=y(k(O,j),j)),j=j||{},!j.tolerant&&O.scheme?(F.scheme=O.scheme,F.userinfo=O.userinfo,F.host=O.host,F.port=O.port,F.path=t(O.path||""),F.query=O.query):(O.userinfo!==void 0||O.host!==void 0||O.port!==void 0?(F.userinfo=O.userinfo,F.host=O.host,F.port=O.port,F.path=t(O.path||""),F.query=O.query):(O.path?(O.path[0]==="/"?F.path=t(O.path):((E.userinfo!==void 0||E.host!==void 0||E.port!==void 0)&&!E.path?F.path="/"+O.path:E.path?F.path=E.path.slice(0,E.path.lastIndexOf("/")+1)+O.path:F.path=O.path,F.path=t(F.path)),F.query=O.query):(F.path=E.path,O.query!==void 0?F.query=O.query:F.query=E.query),F.userinfo=E.userinfo,F.host=E.host,F.port=E.port),F.scheme=E.scheme),F.fragment=O.fragment,F}function b(E,O,j){const T=_(E,j),F=_(O,j);return T!==void 0&&F!==void 0&&T.toLowerCase()===F.toLowerCase()}function k(E,O){const j={host:E.host,scheme:E.scheme,userinfo:E.userinfo,port:E.port,path:E.path,query:E.query,nid:E.nid,nss:E.nss,uuid:E.uuid,fragment:E.fragment,reference:E.reference,resourceName:E.resourceName,secure:E.secure,error:""},T=Object.assign({},O),F=[],q=f(T.scheme||j.scheme);q&&q.serialize&&q.serialize(j,T),j.path!==void 0&&(T.skipEscape?j.path=i(j.path):(j.path=s(j.path),j.scheme!==void 0&&(j.path=j.path.split("%3A").join(":")))),T.reference!=="suffix"&&j.scheme&&F.push(j.scheme,":");const J=r(j);if(J!==void 0&&(T.reference!=="suffix"&&F.push("//"),F.push(J),j.path&&j.path[0]!=="/"&&F.push("/")),j.path!==void 0){let Y=j.path;!T.absolutePath&&(!q||!q.absolutePath)&&(Y=t(Y)),J===void 0&&Y[0]==="/"&&Y[1]==="/"&&(Y="/%2F"+Y.slice(2)),F.push(Y)}return j.query!==void 0&&F.push("?",j.query),j.fragment!==void 0&&F.push("#",j.fragment),F.join("")}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,v=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function C(E,O){if(O[2]!==void 0&&E.path&&E.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof E.port=="number"&&(E.port<0||E.port>65535))return"URI port is malformed."}function h(E,O){const j=Object.assign({},O),T={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let F=!1,q=!1;j.reference==="suffix"&&(j.scheme?E=j.scheme+":"+E:E="//"+E);const J=E.match(v);J!==null&&J[1].indexOf("\\")!==-1&&(T.error="URI authority must not contain a literal backslash.",F=!0);const Y=E.match(w);if(Y!==null){const P=Y[1],D=P.replace(/[\t\n\r]/g,"");D.length>=2&&(D.slice(0,2)!=="//"?(T.error=T.error||"URI authority must not contain a literal backslash.",F=!0):P.length!==D.length&&(T.error=T.error||"URI authority introducer must not contain whitespace.",F=!0))}const te=E.match(g);if(te){T.scheme=te[1]===void 0?void 0:te[1].toLowerCase(),T.userinfo=te[3],T.host=te[4],T.port=parseInt(te[5],10),T.path=te[6]||"",T.query=te[7],T.fragment=te[8],isNaN(T.port)&&(T.port=te[5]);const P=C(T,te);if(P!==void 0&&(T.error=T.error||P,F=!0),T.host)if(l(T.host)===!1){const I=e(T.host);T.host=I.host.toLowerCase(),q=I.isIPV6}else q=!0;T.scheme===void 0&&T.userinfo===void 0&&T.host===void 0&&T.port===void 0&&T.query===void 0&&!T.path?T.reference="same-document":T.scheme===void 0?T.reference="relative":T.fragment===void 0?T.reference="absolute":T.reference="uri",j.reference&&j.reference!=="suffix"&&j.reference!==T.reference&&(T.error=T.error||"URI is not a "+j.reference+" reference.");const D=f(j.scheme||T.scheme);if(!j.unicodeSupport&&(!D||!D.unicodeSupport)&&T.host&&(j.domainHost||D&&D.domainHost)&&q===!1&&u(T.host))try{T.host=new URL("http://"+T.host).hostname}catch(U){T.error=T.error||"Host's domain name can not be converted to ASCII: "+U}(!D||D&&!D.skipNormalize)&&(E.indexOf("%")!==-1&&(T.scheme!==void 0&&(T.scheme=unescape(T.scheme)),T.host!==void 0&&(T.host=o(unescape(T.host),q))),T.path&&(T.path=a(T.path)),T.query&&(T.query=n(T.query)),T.fragment&&(T.fragment=n(T.fragment))),D&&D.parse&&D.parse(T,j)}else T.error=T.error||"URI can not be parsed.";return{parsed:T,malformedAuthorityOrPort:F}}function y(E,O){return h(E,O).parsed}function S(E,O){return A(E,O).normalized}function A(E,O){const{parsed:j,malformedAuthorityOrPort:T}=h(E,O);return{normalized:T?E:k(j,O),malformedAuthorityOrPort:T}}function _(E,O){if(typeof E=="string"){const{normalized:j,malformedAuthorityOrPort:T}=A(E,O);return T?void 0:j}if(typeof E=="object")return k(E,O)}const x={SCHEMES:c,normalize:m,resolve:d,resolveComponent:p,equal:b,serialize:k,parse:y};return Sa.exports=x,Sa.exports.default=x,Sa.exports.fastUri=x,Sa.exports}var FP=NP();const id=Wr(FP);var Ca={},xp;function DP(){if(xp)return Ca;xp=1;var e=/~/,t=/~[01]/g;function r(u){switch(u){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+u)}function i(u){return e.test(u)?u.replace(t,r):u}function a(u,c,f){for(var m,d,p=1,b=c.length;p<b;){if(c[p]==="constructor"||c[p]==="prototype"||c[p]==="__proto__")return u;if(m=i(c[p++]),d=b>p,typeof u[m]>"u"&&(Array.isArray(u)&&m==="-"&&(m=u.length),d&&(c[p]!==""&&c[p]<1/0||c[p]==="-"?u[m]=[]:u[m]={})),!d)break;u=u[m]}var k=u[m];return f===void 0?delete u[m]:u[m]=f,k}function n(u){if(typeof u=="string"){if(u=u.split("/"),u[0]==="")return u;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(u)){for(const c of u)if(typeof c!="string"&&typeof c!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return u}throw new Error("Invalid JSON pointer.")}function s(u,c){if(typeof u!="object")throw new Error("Invalid input object.");c=n(c);var f=c.length;if(f===1)return u;for(var m=1;m<f;){if(u=u[i(c[m++])],f===m)return u;if(typeof u!="object"||u===null)return}}function o(u,c,f){if(typeof u!="object")throw new Error("Invalid input object.");if(c=n(c),c.length===0)throw new Error("Invalid JSON pointer for set.");return a(u,c,f)}function l(u){var c=n(u);return{get:function(f){return s(f,c)},set:function(f,m){return o(f,c,m)}}}return Ca.get=s,Ca.set=o,Ca.compile=l,Ca}var MP=DP();const Au=Wr(MP);var LP=Object.prototype;function kl(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||LP;return e===r}var qP=Ob(Object.keys,Object),zP=Object.prototype,$P=zP.hasOwnProperty;function Rb(e){if(!kl(e))return qP(e);var t=[];for(var r in Object(e))$P.call(e,r)&&r!="constructor"&&t.push(r);return t}var Zc=ki(Yr,"DataView"),Qc=ki(Yr,"Promise"),Hi=ki(Yr,"Set"),ef=ki(Yr,"WeakMap"),Sp="[object Map]",UP="[object Object]",Cp="[object Promise]",Ep="[object Set]",Ap="[object WeakMap]",Op="[object DataView]",BP=bi(Zc),VP=bi(Ga),HP=bi(Qc),KP=bi(Hi),WP=bi(ef),cr=sn;(Zc&&cr(new Zc(new ArrayBuffer(1)))!=Op||Ga&&cr(new Ga)!=Sp||Qc&&cr(Qc.resolve())!=Cp||Hi&&cr(new Hi)!=Ep||ef&&cr(new ef)!=Ap)&&(cr=function(e){var t=sn(e),r=t==UP?e.constructor:void 0,i=r?bi(r):"";if(i)switch(i){case BP:return Op;case VP:return Sp;case HP:return Cp;case KP:return Ep;case WP:return Ap}return t});var GP="[object Arguments]";function _p(e){return gr(e)&&sn(e)==GP}var Nb=Object.prototype,JP=Nb.hasOwnProperty,YP=Nb.propertyIsEnumerable,Zi=_p((function(){return arguments})())?_p:function(e){return gr(e)&&JP.call(e,"callee")&&!YP.call(e,"callee")},XP=9007199254740991;function ad(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=XP}function xi(e){return e!=null&&ad(e.length)&&!ls(e)}function ZP(){return!1}var Fb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pp=Fb&&typeof module=="object"&&module&&!module.nodeType&&module,QP=Pp&&Pp.exports===Fb,Ip=QP?Yr.Buffer:void 0,eI=Ip?Ip.isBuffer:void 0,ci=eI||ZP,tI="[object Arguments]",rI="[object Array]",nI="[object Boolean]",iI="[object Date]",aI="[object Error]",sI="[object Function]",oI="[object Map]",lI="[object Number]",uI="[object Object]",cI="[object RegExp]",fI="[object Set]",dI="[object String]",mI="[object WeakMap]",pI="[object ArrayBuffer]",hI="[object DataView]",gI="[object Float32Array]",yI="[object Float64Array]",vI="[object Int8Array]",bI="[object Int16Array]",kI="[object Int32Array]",wI="[object Uint8Array]",xI="[object Uint8ClampedArray]",SI="[object Uint16Array]",CI="[object Uint32Array]",ht={};ht[gI]=ht[yI]=ht[vI]=ht[bI]=ht[kI]=ht[wI]=ht[xI]=ht[SI]=ht[CI]=!0;ht[tI]=ht[rI]=ht[pI]=ht[nI]=ht[hI]=ht[iI]=ht[aI]=ht[sI]=ht[oI]=ht[lI]=ht[uI]=ht[cI]=ht[fI]=ht[dI]=ht[mI]=!1;function EI(e){return gr(e)&&ad(e.length)&&!!ht[sn(e)]}function sd(e){return function(t){return e(t)}}var Db=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qa=Db&&typeof module=="object"&&module&&!module.nodeType&&module,AI=qa&&qa.exports===Db,Ou=AI&&Eb.process,Qi=(function(){try{var e=qa&&qa.require&&qa.require("util").types;return e||Ou&&Ou.binding&&Ou.binding("util")}catch{}})(),Tp=Qi&&Qi.isTypedArray,cs=Tp?sd(Tp):EI,OI="[object Map]",_I="[object Set]",PI=Object.prototype,II=PI.hasOwnProperty;function wt(e){if(e==null)return!0;if(xi(e)&&(jt(e)||typeof e=="string"||typeof e.splice=="function"||ci(e)||cs(e)||Zi(e)))return!e.length;var t=cr(e);if(t==OI||t==_I)return!e.size;if(kl(e))return!Rb(e).length;for(var r in e)if(II.call(e,r))return!1;return!0}function TI(){this.__data__=new on,this.size=0}function jI(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function RI(e){return this.__data__.get(e)}function NI(e){return this.__data__.has(e)}var FI=200;function DI(e,t){var r=this.__data__;if(r instanceof on){var i=r.__data__;if(!Ga||i.length<FI-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new ln(i)}return r.set(e,t),this.size=r.size,this}function Or(e){var t=this.__data__=new on(e);this.size=t.size}Or.prototype.clear=TI;Or.prototype.delete=jI;Or.prototype.get=RI;Or.prototype.has=NI;Or.prototype.set=DI;function od(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var Yo=(function(){try{var e=ki(Object,"defineProperty");return e({},"",{}),e}catch{}})();function ld(e,t,r){t=="__proto__"&&Yo?Yo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var MI=Object.prototype,LI=MI.hasOwnProperty;function ud(e,t,r){var i=e[t];(!(LI.call(e,t)&&us(i,r))||r===void 0&&!(t in e))&&ld(e,t,r)}function la(e,t,r,i){var a=!r;r||(r={});for(var n=-1,s=t.length;++n<s;){var o=t[n],l=void 0;l===void 0&&(l=e[o]),a?ld(r,o,l):ud(r,o,l)}return r}function Mb(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var qI=9007199254740991,zI=/^(?:0|[1-9]\d*)$/;function wl(e,t){var r=typeof e;return t=t??qI,!!t&&(r=="number"||r!="symbol"&&zI.test(e))&&e>-1&&e%1==0&&e<t}var $I=Object.prototype,UI=$I.hasOwnProperty;function Lb(e,t){var r=jt(e),i=!r&&Zi(e),a=!r&&!i&&ci(e),n=!r&&!i&&!a&&cs(e),s=r||i||a||n,o=s?Mb(e.length,String):[],l=o.length;for(var u in e)(t||UI.call(e,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||n&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||wl(u,l)))&&o.push(u);return o}function Cr(e){return xi(e)?Lb(e):Rb(e)}function BI(e,t){return e&&la(t,Cr(t),e)}function VI(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var HI=Object.prototype,KI=HI.hasOwnProperty;function WI(e){if(!Ue(e))return VI(e);var t=kl(e),r=[];for(var i in e)i=="constructor"&&(t||!KI.call(e,i))||r.push(i);return r}function fs(e){return xi(e)?Lb(e,!0):WI(e)}function GI(e,t){return e&&la(t,fs(t),e)}var qb=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jp=qb&&typeof module=="object"&&module&&!module.nodeType&&module,JI=jp&&jp.exports===qb,Rp=JI?Yr.Buffer:void 0,Np=Rp?Rp.allocUnsafe:void 0;function zb(e,t){if(t)return e.slice();var r=e.length,i=Np?Np(r):new e.constructor(r);return e.copy(i),i}function cd(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function YI(e,t){for(var r=-1,i=e==null?0:e.length,a=0,n=[];++r<i;){var s=e[r];t(s,r,e)&&(n[a++]=s)}return n}function $b(){return[]}var XI=Object.prototype,ZI=XI.propertyIsEnumerable,Fp=Object.getOwnPropertySymbols,fd=Fp?function(e){return e==null?[]:(e=Object(e),YI(Fp(e),function(t){return ZI.call(e,t)}))}:$b;function QI(e,t){return la(e,fd(e),t)}function dd(e,t){for(var r=-1,i=t.length,a=e.length;++r<i;)e[a+r]=t[r];return e}var eT=Object.getOwnPropertySymbols,Ub=eT?function(e){for(var t=[];e;)dd(t,fd(e)),e=gl(e);return t}:$b;function tT(e,t){return la(e,Ub(e),t)}function Bb(e,t,r){var i=t(e);return jt(e)?i:dd(i,r(e))}function tf(e){return Bb(e,Cr,fd)}function md(e){return Bb(e,fs,Ub)}var rT=Object.prototype,nT=rT.hasOwnProperty;function iT(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&nT.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Xo=Yr.Uint8Array;function pd(e){var t=new e.constructor(e.byteLength);return new Xo(t).set(new Xo(e)),t}function aT(e,t){var r=t?pd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var sT=/\w*$/;function oT(e){var t=new e.constructor(e.source,sT.exec(e));return t.lastIndex=e.lastIndex,t}var Dp=hr?hr.prototype:void 0,Mp=Dp?Dp.valueOf:void 0;function lT(e){return Mp?Object(Mp.call(e)):{}}function Vb(e,t){var r=t?pd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var uT="[object Boolean]",cT="[object Date]",fT="[object Map]",dT="[object Number]",mT="[object RegExp]",pT="[object Set]",hT="[object String]",gT="[object Symbol]",yT="[object ArrayBuffer]",vT="[object DataView]",bT="[object Float32Array]",kT="[object Float64Array]",wT="[object Int8Array]",xT="[object Int16Array]",ST="[object Int32Array]",CT="[object Uint8Array]",ET="[object Uint8ClampedArray]",AT="[object Uint16Array]",OT="[object Uint32Array]";function _T(e,t,r){var i=e.constructor;switch(t){case yT:return pd(e);case uT:case cT:return new i(+e);case vT:return aT(e,r);case bT:case kT:case wT:case xT:case ST:case CT:case ET:case AT:case OT:return Vb(e,r);case fT:return new i;case dT:case hT:return new i(e);case mT:return oT(e);case pT:return new i;case gT:return lT(e)}}var Lp=Object.create,Hb=(function(){function e(){}return function(t){if(!Ue(t))return{};if(Lp)return Lp(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Kb(e){return typeof e.constructor=="function"&&!kl(e)?Hb(gl(e)):{}}var PT="[object Map]";function IT(e){return gr(e)&&cr(e)==PT}var qp=Qi&&Qi.isMap,TT=qp?sd(qp):IT,jT="[object Set]";function RT(e){return gr(e)&&cr(e)==jT}var zp=Qi&&Qi.isSet,NT=zp?sd(zp):RT,FT=1,DT=2,MT=4,Wb="[object Arguments]",LT="[object Array]",qT="[object Boolean]",zT="[object Date]",$T="[object Error]",Gb="[object Function]",UT="[object GeneratorFunction]",BT="[object Map]",VT="[object Number]",Jb="[object Object]",HT="[object RegExp]",KT="[object Set]",WT="[object String]",GT="[object Symbol]",JT="[object WeakMap]",YT="[object ArrayBuffer]",XT="[object DataView]",ZT="[object Float32Array]",QT="[object Float64Array]",ej="[object Int8Array]",tj="[object Int16Array]",rj="[object Int32Array]",nj="[object Uint8Array]",ij="[object Uint8ClampedArray]",aj="[object Uint16Array]",sj="[object Uint32Array]",mt={};mt[Wb]=mt[LT]=mt[YT]=mt[XT]=mt[qT]=mt[zT]=mt[ZT]=mt[QT]=mt[ej]=mt[tj]=mt[rj]=mt[BT]=mt[VT]=mt[Jb]=mt[HT]=mt[KT]=mt[WT]=mt[GT]=mt[nj]=mt[ij]=mt[aj]=mt[sj]=!0;mt[$T]=mt[Gb]=mt[JT]=!1;function za(e,t,r,i,a,n){var s,o=t&FT,l=t&DT,u=t&MT;if(r&&(s=a?r(e,i,a,n):r(e)),s!==void 0)return s;if(!Ue(e))return e;var c=jt(e);if(c){if(s=iT(e),!o)return cd(e,s)}else{var f=cr(e),m=f==Gb||f==UT;if(ci(e))return zb(e,o);if(f==Jb||f==Wb||m&&!a){if(s=l||m?{}:Kb(e),!o)return l?tT(e,GI(s,e)):QI(e,BI(s,e))}else{if(!mt[f])return a?e:{};s=_T(e,f,o)}}n||(n=new Or);var d=n.get(e);if(d)return d;n.set(e,s),NT(e)?e.forEach(function(k){s.add(za(k,t,r,k,e,n))}):TT(e)&&e.forEach(function(k,g){s.set(g,za(k,t,r,g,e,n))});var p=u?l?md:tf:l?fs:Cr,b=c?void 0:p(e);return od(b||e,function(k,g){b&&(g=k,k=e[g]),ud(s,g,za(k,t,r,g,e,n))}),s}function Yb(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function oj(e,t,r){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var n=Array(a);++i<a;)n[i]=e[i+t];return n}function lj(e,t){return t.length<2?e:bl(e,oj(t,0,-1))}var uj=Object.prototype,cj=uj.hasOwnProperty;function Xb(e,t){t=oa(t,e);var r=-1,i=t.length;if(!i)return!0;for(;++r<i;){var a=Rn(t[r]);if(a==="__proto__"&&!cj.call(e,"__proto__")||(a==="constructor"||a==="prototype")&&r<i-1)return!1}var n=lj(e,t);return n==null||delete n[Rn(Yb(t))]}function fj(e){return jn(e)?void 0:e}var $p=hr?hr.isConcatSpreadable:void 0;function dj(e){return jt(e)||Zi(e)||!!($p&&e&&e[$p])}function ds(e,t,r,i,a){var n=-1,s=e.length;for(r||(r=dj),a||(a=[]);++n<s;){var o=e[n];t>0&&r(o)?t>1?ds(o,t-1,r,i,a):dd(a,o):i||(a[a.length]=o)}return a}function rf(e){var t=e==null?0:e.length;return t?ds(e,1):[]}function mj(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Up=Math.max;function Zb(e,t,r){return t=Up(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,n=Up(i.length-t,0),s=Array(n);++a<n;)s[a]=i[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=i[a];return o[t]=r(s),mj(e,this,o)}}function pj(e){return function(){return e}}function xl(e){return e}var hj=Yo?function(e,t){return Yo(e,"toString",{configurable:!0,enumerable:!1,value:pj(t),writable:!0})}:xl,gj=800,yj=16,vj=Date.now;function bj(e){var t=0,r=0;return function(){var i=vj(),a=yj-(i-r);if(r=i,a>0){if(++t>=gj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Qb=bj(hj);function ek(e){return Qb(Zb(e,void 0,rf),e+"")}var kj=1,wj=2,xj=4,Ja=ek(function(e,t){var r={};if(e==null)return r;var i=!1;t=sa(t,function(n){return n=oa(n,e),i||(i=n.length>1),n}),la(e,md(e),r),i&&(r=za(r,kj|wj|xj,fj));for(var a=t.length;a--;)Xb(r,t[a]);return r});function Zo(e,t){if(nt in e&&id.equal(e[nt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const i of r)if(Ue(i)){const a=Zo(i,t);if(a!==void 0)return a}}else if(Ue(r)){const i=Zo(r,t);if(i!==void 0)return i}}function nf(e,t){const r=ae(e,nt,t);let i=e;at in i&&(i={...i,[at]:id.resolve(r,i[at])});for(const[a,n]of Object.entries(i))Array.isArray(n)?i={...i,[a]:n.map(s=>Ue(s)?nf(s,r):s)}:Ue(n)&&(i={...i,[a]:nf(n,r)});return i}function hd(e,t){const r=t[e];return[Ja(t,[e]),r]}function tk(e,t={},r=[],i=ae(t,[nt])){const a=e||"";let n,s=i;if(a.startsWith("#")){const l=decodeURIComponent(a.substring(1));s===void 0||nt in t&&t[nt]===s?n=Au.get(t,l):t[Ia]===No&&(n=Zo(t,s.replace(/\/$/,"")),n!==void 0&&(n=Au.get(n,l)))}else if(t[Ia]===No){const l=s?id.resolve(s,a):a,[u,...c]=l.replace(/#\/?$/,"").split("#");n=Zo(t,u.replace(/\/$/,"")),n!==void 0&&(s=n[nt],wt(c)||(n=Au.get(n,decodeURIComponent(c.join("#")))))}if(n===void 0)throw new Error(`Could not find a definition for ${e}.`);const o=n[at];if(o){if(r.includes(o)){if(r.length===1)throw new Error(`Definition for ${e} is a circular reference`);const[f,...m]=r,d=[...m,a,f].join(" -> ");throw new Error(`Definition for ${f} contains a circular reference through ${d}`)}const[l,u]=hd(at,n),c=tk(u,t,[...r,a],s);return Object.keys(l).length>0?t[Ia]===r_||t[Ia]===No?{[Hr]:[l,c]}:{...l,...c}:c}return n}function Ya(e,t={},r=ae(t,[nt])){return tk(e,t,[],r)}var Sj=Object.prototype,Cj=Sj.hasOwnProperty;function Ej(e,t){return e!=null&&Cj.call(e,t)}function rk(e,t,r){t=oa(t,e);for(var i=-1,a=t.length,n=!1;++i<a;){var s=Rn(t[i]);if(!(n=e!=null&&r(e,s)))break;e=e[s]}return n||++i!=a?n:(a=e==null?0:e.length,!!a&&ad(a)&&wl(s,a)&&(jt(e)||Zi(e)))}function qe(e,t){return e!=null&&rk(e,t,Ej)}var Aj="[object String]";function Nn(e){return typeof e=="string"||!jt(e)&&gr(e)&&sn(e)==Aj}function yr(e){let t;const r=ae(e,ZO);return Nn(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var Oj=1/0;function _j(e){var t=e==null?0:e.length;return t?ds(e,Oj):[]}function af(e,t,r){(r!==void 0&&!us(e[t],r)||r===void 0&&!(t in e))&&ld(e,t,r)}function Pj(e){return function(t,r,i){for(var a=-1,n=Object(t),s=i(t),o=s.length;o--;){var l=s[++a];if(r(n[l],l,n)===!1)break}return t}}var nk=Pj();function Xa(e){return gr(e)&&xi(e)}function sf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Ij(e){return la(e,fs(e))}function Tj(e,t,r,i,a,n,s){var o=sf(e,r),l=sf(t,r),u=s.get(l);if(u){af(e,r,u);return}var c=n?n(o,l,r+"",e,t,s):void 0,f=c===void 0;if(f){var m=jt(l),d=!m&&ci(l),p=!m&&!d&&cs(l);c=l,m||d||p?jt(o)?c=o:Xa(o)?c=cd(o):d?(f=!1,c=zb(l,!0)):p?(f=!1,c=Vb(l,!0)):c=[]:jn(l)||Zi(l)?(c=o,Zi(o)?c=Ij(o):(!Ue(o)||ls(o))&&(c=Kb(l))):f=!1}f&&(s.set(l,c),a(c,l,i,n,s),s.delete(l)),af(e,r,c)}function ik(e,t,r,i,a){e!==t&&nk(t,function(n,s){if(a||(a=new Or),Ue(n))Tj(e,t,s,r,ik,i,a);else{var o=i?i(sf(e,s),n,s+"",e,t,a):void 0;o===void 0&&(o=n),af(e,s,o)}},fs)}function Sl(e,t){return Qb(Zb(e,t,xl),e+"")}function jj(e,t,r){if(!Ue(r))return!1;var i=typeof t;return(i=="number"?xi(r)&&wl(t,r.length):i=="string"&&t in r)?us(r[t],e):!1}function Rj(e){return Sl(function(t,r){var i=-1,a=r.length,n=a>1?r[a-1]:void 0,s=a>2?r[2]:void 0;for(n=e.length>3&&typeof n=="function"?(a--,n):void 0,s&&jj(r[0],r[1],s)&&(n=a<3?void 0:n,a=1),t=Object(t);++i<a;){var o=r[i];o&&e(t,o,i,n)}return t})}var Nj=Rj(function(e,t,r){ik(e,t,r)});function gd(e,t,r,i){if(!Ue(e))return e;t=oa(t,e);for(var a=-1,n=t.length,s=n-1,o=e;o!=null&&++a<n;){var l=Rn(t[a]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=s){var c=o[l];u=i?i(c,l,o):void 0,u===void 0&&(u=Ue(c)?c:wl(t[a+1])?[]:{})}ud(o,l,u),o=o[l]}return e}function lt(e,t,r){return e==null?e:gd(e,t,r)}function ak(e){return typeof e=="function"?e:xl}var Fj=/\s/;function Dj(e){for(var t=e.length;t--&&Fj.test(e.charAt(t)););return t}var Mj=/^\s+/;function Lj(e){return e&&e.slice(0,Dj(e)+1).replace(Mj,"")}var Bp=NaN,qj=/^[-+]0x[0-9a-f]+$/i,zj=/^0b[01]+$/i,$j=/^0o[0-7]+$/i,Uj=parseInt;function Bj(e){if(typeof e=="number")return e;if(os(e))return Bp;if(Ue(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ue(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lj(e);var r=zj.test(e);return r||$j.test(e)?Uj(e.slice(2),r?2:8):qj.test(e)?Bp:+e}var Vp=1/0,Vj=17976931348623157e292;function Hj(e){if(!e)return e===0?e:0;if(e=Bj(e),e===Vp||e===-Vp){var t=e<0?-1:1;return t*Vj}return e===e?e:0}function sk(e){var t=Hj(e),r=t%1;return t===t?r?t-r:t:0}var Kj=9007199254740991,_u=4294967295,Wj=Math.min;function ok(e,t){if(e=sk(e),e<1||e>Kj)return[];var r=_u,i=Wj(e,_u);t=ak(t),e-=_u;for(var a=Mb(i,t);++r<e;)t(r);return a}function lk(e,t){return e&&nk(e,t,Cr)}var Gj="__lodash_hash_undefined__";function Jj(e){return this.__data__.set(e,Gj),this}function Yj(e){return this.__data__.has(e)}function fi(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ln;++t<r;)this.add(e[t])}fi.prototype.add=fi.prototype.push=Jj;fi.prototype.has=Yj;function Xj(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}function Za(e,t){return e.has(t)}var Zj=1,Qj=2;function uk(e,t,r,i,a,n){var s=r&Zj,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var u=n.get(e),c=n.get(t);if(u&&c)return u==t&&c==e;var f=-1,m=!0,d=r&Qj?new fi:void 0;for(n.set(e,t),n.set(t,e);++f<o;){var p=e[f],b=t[f];if(i)var k=s?i(b,p,f,t,e,n):i(p,b,f,e,t,n);if(k!==void 0){if(k)continue;m=!1;break}if(d){if(!Xj(t,function(g,v){if(!Za(d,v)&&(p===g||a(p,g,r,i,n)))return d.push(v)})){m=!1;break}}else if(!(p===b||a(p,b,r,i,n))){m=!1;break}}return n.delete(e),n.delete(t),m}function eR(e){var t=-1,r=Array(e.size);return e.forEach(function(i,a){r[++t]=[a,i]}),r}function yd(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var tR=1,rR=2,nR="[object Boolean]",iR="[object Date]",aR="[object Error]",sR="[object Map]",oR="[object Number]",lR="[object RegExp]",uR="[object Set]",cR="[object String]",fR="[object Symbol]",dR="[object ArrayBuffer]",mR="[object DataView]",Hp=hr?hr.prototype:void 0,Pu=Hp?Hp.valueOf:void 0;function pR(e,t,r,i,a,n,s){switch(r){case mR:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case dR:return!(e.byteLength!=t.byteLength||!n(new Xo(e),new Xo(t)));case nR:case iR:case oR:return us(+e,+t);case aR:return e.name==t.name&&e.message==t.message;case lR:case cR:return e==t+"";case sR:var o=eR;case uR:var l=i&tR;if(o||(o=yd),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;i|=rR,s.set(e,t);var c=uk(o(e),o(t),i,a,n,s);return s.delete(e),c;case fR:if(Pu)return Pu.call(e)==Pu.call(t)}return!1}var hR=1,gR=Object.prototype,yR=gR.hasOwnProperty;function vR(e,t,r,i,a,n){var s=r&hR,o=tf(e),l=o.length,u=tf(t),c=u.length;if(l!=c&&!s)return!1;for(var f=l;f--;){var m=o[f];if(!(s?m in t:yR.call(t,m)))return!1}var d=n.get(e),p=n.get(t);if(d&&p)return d==t&&p==e;var b=!0;n.set(e,t),n.set(t,e);for(var k=s;++f<l;){m=o[f];var g=e[m],v=t[m];if(i)var w=s?i(v,g,m,t,e,n):i(g,v,m,e,t,n);if(!(w===void 0?g===v||a(g,v,r,i,n):w)){b=!1;break}k||(k=m=="constructor")}if(b&&!k){var C=e.constructor,h=t.constructor;C!=h&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof h=="function"&&h instanceof h)&&(b=!1)}return n.delete(e),n.delete(t),b}var bR=1,Kp="[object Arguments]",Wp="[object Array]",Fs="[object Object]",kR=Object.prototype,Gp=kR.hasOwnProperty;function wR(e,t,r,i,a,n){var s=jt(e),o=jt(t),l=s?Wp:cr(e),u=o?Wp:cr(t);l=l==Kp?Fs:l,u=u==Kp?Fs:u;var c=l==Fs,f=u==Fs,m=l==u;if(m&&ci(e)){if(!ci(t))return!1;s=!0,c=!1}if(m&&!c)return n||(n=new Or),s||cs(e)?uk(e,t,r,i,a,n):pR(e,t,l,r,i,a,n);if(!(r&bR)){var d=c&&Gp.call(e,"__wrapped__"),p=f&&Gp.call(t,"__wrapped__");if(d||p){var b=d?e.value():e,k=p?t.value():t;return n||(n=new Or),a(b,k,r,i,n)}}return m?(n||(n=new Or),vR(e,t,r,i,a,n)):!1}function Cl(e,t,r,i,a){return e===t?!0:e==null||t==null||!gr(e)&&!gr(t)?e!==e&&t!==t:wR(e,t,r,i,Cl,a)}var xR=1,SR=2;function CR(e,t,r,i){var a=r.length,n=a;if(e==null)return!n;for(e=Object(e);a--;){var s=r[a];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<n;){s=r[a];var o=s[0],l=e[o],u=s[1];if(s[2]){if(l===void 0&&!(o in e))return!1}else{var c=new Or,f;if(!(f===void 0?Cl(u,l,xR|SR,i,c):f))return!1}}return!0}function ck(e){return e===e&&!Ue(e)}function ER(e){for(var t=Cr(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,ck(a)]}return t}function fk(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function AR(e){var t=ER(e);return t.length==1&&t[0][2]?fk(t[0][0],t[0][1]):function(r){return r===e||CR(r,e,t)}}function OR(e,t){return e!=null&&t in Object(e)}function dk(e,t){return e!=null&&rk(e,t,OR)}var _R=1,PR=2;function IR(e,t){return td(e)&&ck(t)?fk(Rn(e),t):function(r){var i=ae(r,e);return i===void 0&&i===t?dk(r,e):Cl(t,i,_R|PR)}}function TR(e){return function(t){return t==null?void 0:t[e]}}function jR(e){return function(t){return bl(t,e)}}function RR(e){return td(e)?TR(Rn(e)):jR(e)}function vd(e){return typeof e=="function"?e:e==null?xl:typeof e=="object"?jt(e)?IR(e[0],e[1]):AR(e):RR(e)}function NR(e,t,r){var i=jt(e),a=i||ci(e)||cs(e);if(t=vd(t),r==null){var n=e&&e.constructor;a?r=i?new n:[]:Ue(e)?r=ls(n)?Hb(gl(e)):{}:r={}}return(a?od:lk)(e,function(s,o,l){return t(r,s,o,l)}),r}function FR(e,t,r,i){for(var a=e.length,n=r+-1;++n<a;)if(t(e[n],n,e))return n;return-1}function DR(e){return e!==e}function MR(e,t,r){for(var i=r-1,a=e.length;++i<a;)if(e[i]===t)return i;return-1}function mk(e,t,r){return t===t?MR(e,t,r):FR(e,DR,r)}function bd(e,t){var r=e==null?0:e.length;return!!r&&mk(e,t,0)>-1}function Fo(){}var LR=1/0,qR=Hi&&1/yd(new Hi([,-0]))[1]==LR?function(e){return new Hi(e)}:Fo,zR=200;function pk(e,t,r){var i=-1,a=bd,n=e.length,s=!0,o=[],l=o;if(n>=zR){var u=qR(e);if(u)return yd(u);s=!1,a=Za,l=new fi}else l=o;e:for(;++i<n;){var c=e[i],f=c;if(c=c!==0?c:0,s&&f===f){for(var m=l.length;m--;)if(l[m]===f)continue e;o.push(c)}else a(l,f,r)||(l!==o&&l.push(f),o.push(c))}return o}function hk(e){return e&&e.length?pk(e):[]}function Qa(e){return Array.isArray(e)?"array":typeof e=="string"?"string":e==null?"null":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?"number":typeof e=="object"?"object":"string"}var $R=Sl(function(e){return pk(ds(e,1,Xa,!0))});function vr(e){let{type:t}=e;return!t&&e.const?Qa(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties||e.patternProperties)?"object":(Array.isArray(t)&&(t.length===2&&t.includes("null")?t=t.find(r=>r!=="null"):t=t[0]),t)}function nn(e,t){const r={...e},i=Object.keys(t).reduce((a,n)=>{const s=e?e[n]:{},o=t[n];return e&&n in e&&be(o)?a[n]=nn(s,o):e&&t&&(vr(e)==="object"||vr(t)==="object")&&n===bb&&Array.isArray(s)&&Array.isArray(o)?a[n]=$R(s,o):a[n]=o,a},r);for(const a of Object.getOwnPropertySymbols(t))i[a]=t[a];return i}var UR="[object Number]";function gk(e){return typeof e=="number"||gr(e)&&sn(e)==UR}function yk(e,t,r){var i;if(e&&r){const a=ae(e,r);if(a===void 0)return;for(let n=0;n<t.length;n+=1){const s=t[n],o=ae(s,[$e,r],{});if(o.type!=="object"&&o.type!=="array"&&(o.const===a||!((i=o.enum)===null||i===void 0)&&i.includes(a)))return n}}}function Qo(e,t,r,i,a){if(t===void 0)return 0;const n=yk(t,r,a);if(gk(n))return n;for(let s=0;s<r.length;s+=1){const o=r[s];if(a&&qe(o,[$e,a])){const l=ae(t,a),u=ae(o,[$e,a],{});if(e.isValid(u,l,i))return s}else if(o[$e]){const l={anyOf:Object.keys(o[$e]).map(c=>({required:[c]}))};let u;if(o.anyOf){const{...c}=o;c.allOf?c.allOf=c.allOf.slice():c.allOf=[],c.allOf.push(l),u=c}else u={...o,...l};if(delete u.required,e.isValid(u,t,i))return s}else if(e.isValid(o,t,i))return s}return 0}const BR=Object.prototype;function Ta(e){for(const t in e)if(BR.hasOwnProperty.call(e,t))return!1;return!0}const VR=["array","boolean","integer","null","number","object","string"];new Set(VR);const HR=["$defs","definitions","properties","patternProperties","dependencies"];new Set(HR);const KR=["items","allOf","oneOf","anyOf"];new Set(KR);const WR=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(WR);function Do(e){return typeof e=="object"}function qr(e){return Do(e)?Ta(e):e===!0}function zi(e,t){return e<t?-1:e>t?1:0}function Iu(e,t){const r=e.length;if(r===0)return t;let i=t.length;if(i===0)return e;if(r<i){const n=e;e=t,t=n,i=r}const a=new Set(e);for(let n=0;n<i;n++)a.add(t[n]);return Array.from(a)}function GR(e,t){const r=[];if(e.length===0||t.length===0)return r;if(e.length>t.length){const a=e;e=t,t=a}const i=new Set(t);for(let a=0;a<e.length&&i.size>0;a++){const n=e[a];i.delete(n)&&r.push(n)}return r}function Jp(e){return e.length===0}function Tu(e){return(t,r)=>{const i=t.length-r.length;if(i!==0)return i;for(let a=0;a<t.length;a++)if(t[a]!==r[a]){const n=e(t[a],r[a]);if(n!==0)return n}return 0}}function vk(e,{threshold:t=12}={}){return r=>{const i=r.length;if(i===0)return r;if(i<=t){const s=[];let o=0;e:for(let l=0;l<i;l++){const u=r[l];for(let c=0;c<o;c++)if(e(u,s[c])===0)continue e;o=s.push(u)}return s}const a=r.slice().sort(e);let n=0;for(let s=1;s<i;s++)e(a[n],a[s])!==0&&++n!==s&&(a[n]=a[s]);return a.length=n+1,a}}function JR(e){return(t,r)=>{const i=[];let a=t.length,n=r.length;if(a===0||n===0)return i;if(a>n){const c=t;t=r,r=c;const f=a;a=n,n=f}const s=[...t].sort(e),o=[...r].sort(e);let l=0,u=0;for(;l<a&&u<n;){const c=e(s[l],o[u]);c===0?((i.length===0||e(i[i.length-1],s[l])!==0)&&i.push(s[l]),l++,u++):c<0?l++:u++}return i}}function YR(e,t){return r=>{if(e.has(r))return e.get(r);const i=t(r);return e.set(r,i),i}}const Yp=YR,bk=()=>0,XR=e=>e===void 0,ZR=e=>typeof e!="object",Xp={boolean:0,number:1,string:2};function QR(e,t){const r=typeof e,i=typeof t;return r===i?zi(e,t):Xp[r]-Xp[i]}function eN(e,t){const r=e.length;if(r===0)return t;const i=t.length;if(i===0)return e;if(i>r){const s=e;e=t,t=s}const a=new Set(e),n=t.length;for(let s=0;s<n;s++){const o=t[s];a.has(o)||e.push(o)}return e}function El(e,t,r=bk){return(i,a)=>e(i)?e(a)?r(i,a):-1:e(a)?1:t(i,a)}function Mi(e){return El(XR,e)}function vn(e,t){return El(r=>r===void 0||e(r),t)}function ju(e,t){return El(Array.isArray,e,t)}const At=Mi(zi),Ru=vn(e=>e===0,(e,t)=>e-t);function tN({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=Yp(t,b=>Object.keys(b).sort());function i(b){return(k,g)=>{const v=r(k),w=r(g),C=Math.min(v.length,w.length);for(let h=0;h<C;h++){const y=zi(v[h],w[h]);if(y!==0)return y}if(v.length!==w.length)return v.length-w.length;for(let h=0;h<C;h++){const y=v[h],S=b(k[y],g[y]);if(S!==0)return S}return 0}}function a(b){const k=Tu(b),g=Yp(e,vk(b,{threshold:0}));return(v,w)=>k(g(v),g(w))}const n=a(zi);function s(b,k){if(Do(b)){if(Do(k)){const g=Object.keys(b),v=Object.keys(k),w=eN(g,v),C=w.length;for(let h=0;h<C;h++){const y=w[h];if(b[y]===k[y])continue;const A=(p[y]??o)(b[y],k[y]);if(A!==0)return A}return 0}return k===!0&&Ta(b)?0:1}return Do(k)?b===!0&&Ta(k)?0:-1:zi(b,k)}const o=Mi(u),l=El(ZR,ju(i(o),Tu(u)),QR);function u(b,k){return b===null?-1:k===null?1:l(b,k)}const c=Mi(s),f=vn(Ta,i(c)),m=Mi(a(s)),d=vn(qr,s),p={$id:At,$comment:At,$defs:f,$ref:At,$schema:At,const:o,contains:c,contentEncoding:At,contentMediaType:At,default:o,definitions:f,description:At,else:c,examples:o,exclusiveMaximum:At,exclusiveMinimum:At,format:At,if:c,maximum:At,maxItems:At,maxLength:At,maxProperties:At,minimum:At,multipleOf:At,not:c,pattern:At,propertyNames:c,readOnly:At,then:c,title:At,writeOnly:At,uniqueItems:vn(b=>b===!1,bk),minLength:Ru,minItems:Ru,minProperties:Ru,required:vn(Jp,n),enum:vn(Jp,a(u)),type:Mi((b,k)=>{const g=Array.isArray(b),v=Array.isArray(k);return!g&&!v?zi(b,k):n(g?b:[b],v?k:[k])}),items:vn(b=>!Array.isArray(b)&&qr(b),ju(s,Tu(s))),anyOf:m,allOf:m,oneOf:m,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:vn(Ta,i(Mi(ju(s,n))))};return{compareSchemaValues:u,compareSchemaDefinitions:s}}function Zp(e){return e}const kk=(e,t)=>e?kk(t%e,e):t,rN=(e,t)=>Math.abs(e*t)/kk(e,t);function nN(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function Nu(e,t,r){const i=e.length,a=t.length;if(i>0&&a>0)for(let n=0;n<i;n++){const s=e[n];for(let o=0;o<a;o++)r(s,t[o])}}function Fu(e,t){return e||t}function Qp(e){return(t,r)=>{const i={...t},a=Object.keys(r),n=a.length;for(let s=0;s<n;s++){const o=a[s];i[o]=t[o]===void 0?r[o]:e(t[o],r[o])}return i}}function iN(e){const t=new Map;for(const r of e)for(const i of r[0])t.set(i,r[1]);return t}function Gn(e,t,r){r===void 0||qr(r)?delete e[t]:e[t]=r}const aN=["properties","patternProperties","additionalProperties"];function eh(e){const t=Object.keys(e),r=t.length,i=[];for(let a=0;a<r;a++){const n=t[a];i.push({regExp:new RegExp(n),schema:e[n]})}return[i,t]}const th=[[],[]];function rh(e,t,r){const i=r.length;for(let a=0;a<i;a++){const n=r[a];if(!n.regExp.test(t))continue;const s=n.schema;if(s===!1)return!0;e.push(s)}return!1}const sN=["items","additionalItems"],oN=["if","then","else"];function nh(e,t){return t.if!==void 0&&(e.if=t.if),t.then!==void 0&&(e.then=t.then),t.else!==void 0&&(e.else=t.else),e}function Du(e,t){if(e===t)return e;switch(e){case"number":if(t==="integer")return"integer";case"integer":if(t==="number")return"integer";default:return}}function Jn(e,t,r){return[e,t,r]}function lN(e){const t=new Map;for(const[r,i,a]of e){const n=s=>{if(!a(s))throw new Error(`Schema keys '${r}' and '${i}' are conflicting (${r}: ${JSON.stringify(s[r])}, ${i}: ${JSON.stringify(s[i])})`)};for(const s of[[r,i],[i,r]]){let o=t.get(s[0]);o===void 0&&(o=[],t.set(s[0],o)),o.push({oppositeKey:s[1],check:n})}}return t}const uN=[Jn("minimum","maximum",e=>e.maximum>=e.minimum),Jn("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),Jn("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),Jn("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),Jn("minLength","maxLength",e=>e.maxLength>=e.minLength),Jn("minItems","maxItems",e=>e.maxItems>=e.minItems),Jn("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function cN({mergePatterns:e=nN,isSubRegExp:t=Object.is,intersectJson:r=GR,deduplicateJsonSchemaDef:i=Zp,defaultMerger:a=Zp,assigners:n=[],checks:s=uN,mergers:o}={}){function l(C){const h=C.length;let y=C[0];for(let S=1;S<h;S++){const A=g(y,C[S]);if(A===!1)return!1;qr(A)||(y=A)}return y}function u(C,h,y,S,A,_,x){if(C.length=0,y===!1)return!1;if(C.push(y),A!==void 0){if(A===!1)return!1;C.push(A)}if(rh(C,h,_))return!1;const O=C.length<2;if(x===!1){if(O)return;if(rh(C,h,S))return!1}else O&&x!==void 0&&C.push(x);return C.length===1?C[0]:l(C)}function c(C,h,y,S,A,_){const x=y.length;if(x>0&&A!==!1)if(_)Object.assign(C,h);else for(let E=0;E<x;E++){const O=y[E];S.has(O)||(C[O]=g(h[O],A))}return C}const f=(C,{properties:h={},patternProperties:y,additionalProperties:S=!0},{properties:A={},patternProperties:_,additionalProperties:x=!0})=>{const E=qr(S),O=qr(x);if(E&&O)return Gn(C,"properties",v(h,A)),Gn(C,"patternProperties",y&&_?v(y,_):y??_),delete C.additionalProperties,C;const j=g(S,x);Gn(C,"additionalProperties",j);const T={},F=Object.keys(h),q=F.length,[J,Y]=y?eh(y):th,[te,P]=_?eh(_):th,D=[],U=new Set,I=O?void 0:x;for(let G=0;G<q;G++){const X=F[G];U.add(X);const $=u(D,X,h[X],J,A[X],te,I);$!==void 0&&(T[X]=$)}const R=Object.keys(A),M=R.length,z=E?void 0:S;for(let G=0;G<M;G++){const X=R[G];if(U.has(X))continue;const $=u(D,X,A[X],te,void 0,J,z);$!==void 0&&(T[X]=$)}Gn(C,"properties",T);let B={};const H=new Set;return Y.length>0&&P.length>0&&Nu(Y,P,(G,X)=>{t(G,X)&&H.add(G),t(X,G)&&H.add(X),B[e(G,X)]=g(y[G],_[X])}),B=c(B,y,Y,H,x,O),B=c(B,_,P,H,S,E),Gn(C,"patternProperties",B),C},m=(C,{items:h=[],additionalItems:y},{items:S=[],additionalItems:A})=>{const _=Array.isArray(h),x=Array.isArray(S),E=[];if(C.items=E,_&&x){const[O,j,T]=h.length<S.length?[h.length,y,S]:[S.length,A,h];let F=0;for(;F<O;F++)E.push(g(h[F],S[F]));if(j===!1)C.additionalItems=!1;else{const q=j===void 0||qr(j);for(;F<T.length;F++)E.push(q?T[F]:g(T[F],j));Gn(C,"additionalItems",y!==void 0&&A!==void 0?g(y,A):y??A)}}else if(_||x){const[O,j,T]=_?[h,S,y]:[S,h,A];Gn(C,"additionalItems",T&&g(T,j));for(let F=0;F<O.length;F++)E.push(g(O[F],j))}else delete C.additionalItems,C.items=g(h,S);return C},d=(C,h,y)=>{nh(C,h);const S=nh({},y);return C.allOf===void 0?C.allOf=[S]:C.allOf=C.allOf.concat(S),C};function p(C,h){const y=[];if(Nu(C,h,(S,A)=>{try{y.push(g(S,A))}catch{}}),y.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(C)}" and "${JSON.stringify(h)}"; the merged result is empty`);return i(y)}const b=iN([[aN,f],[sN,m],[oN,d],...n]),k=lN(s);function g(C,h){if(C===!1||h===!1)return!1;if(qr(C))return qr(h)?!0:h;if(qr(h))return C;let y={...C};const S=new Set,A=new Set,_=Reflect.ownKeys(h),x=_.length;for(let E=0;E<x;E++){const O=_[E],j=h[O];if(j===void 0)continue;const T=k.get(O);if(T!==void 0){const Y=T.length;for(let te=0;te<Y;te++){const P=T[te];C[P.oppositeKey]!==void 0&&A.add(P.check)}}const F=C[O];if(F===void 0){y[O]=j;continue}const q=b.get(O);if(q){S.add(q);continue}const J=w[O]??a;y[O]=J(F,j)}for(const E of S)y=E(y,C,h);for(const E of A)E(y);return y}const v=Qp(g),w={$id:a,$ref:a,$schema:a,$comment:a,$defs:v,definitions:v,type:(C,h)=>{if(C===h)return C;const y=Array.isArray(C),S=Array.isArray(h);if(!y&&!S){const A=Du(C,h);if(A!==void 0)return A}else if(y||S){const A=new Set;if(y&&S)Nu(C,h,(x,E)=>{const O=Du(x,E);O!==void 0&&A.add(O)});else{const x=y?C:h,E=y?h:C,O=x.length;for(let j=0;j<O;j++){const T=Du(E,x[j]);T!==void 0&&A.add(T)}}const _=A.size;if(_===1)return A.values().next().value;if(_>1)return Array.from(A)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${C.toString()}, ${h.toString()}`)},default:a,description:a,title:a,const:a,format:a,contentEncoding:a,contentMediaType:a,not:(C,h)=>{const y=i([C,h]);return y.length===1?y[0]:{anyOf:y}},pattern:e,readOnly:Fu,writeOnly:Fu,enum:(C,h)=>{const y=r(C,h);if(y.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(C)}", "${JSON.stringify(h)}"`);return y},anyOf:p,oneOf:p,allOf:(C,h)=>i(C.concat(h)),propertyNames:g,contains:g,dependencies:Qp((C,h)=>Array.isArray(C)?Array.isArray(h)?Iu(C,h):g(h,{required:C}):Array.isArray(h)?g(C,{required:h}):g(C,h)),examples:(C,h)=>{if(!Array.isArray(C)||!Array.isArray(h))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(C)}" and "${JSON.stringify(h)}"`);return Iu(C,h)},multipleOf:(C,h)=>{let y=1;for(;!Number.isInteger(C)||!Number.isInteger(h);)y*=10,C*=10,h*=10;return rN(C,h)/y},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:Fu,required:Iu,...o};return{mergeSchemaDefinitions:g,mergeArrayOfSchemaDefinitions:l}}function fN(e){const t=[],r=[e];for(;r.length>0;){const i=r.pop();if(typeof i=="boolean"||i.allOf===void 0){t.push(i);continue}const{allOf:a,...n}=i;t.push(n);for(let s=a.length-1;s>=0;s--)r.push(a[s])}return t}function dN(e){return t=>e(fN(t))}const{compareSchemaDefinitions:mN,compareSchemaValues:pN}=tN(),{mergeArrayOfSchemaDefinitions:hN}=cN({intersectJson:JR(pN),deduplicateJsonSchemaDef:vk(mN)}),wk=dN(hN);function Ft(e,t,r={},i,a,n=!1){return Ur(e,t,r,i,void 0,void 0,a,n)[0]}function xk(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function gN(e,t,r,i,a,n,s){const{if:o,then:l,else:u,...c}=t,f=e.isValid(o,n||{},r);let m=[c],d=[];if(i){if(l&&typeof l!="boolean"){const p=l;d=d.concat(Ur(e,p,r,n,i,a,s))}if(u&&typeof u!="boolean"){const p=u;d=d.concat(Ur(e,p,r,n,i,a,s))}}else{const p=f?l:u;if(p!==void 0){const b=xk(p);d=d.concat(Ur(e,b,r,n,i,a,s))}}return d.length&&(m=d.map(p=>nn(c,p))),m.flatMap(p=>Ur(e,p,r,n,i,a,s))}function Sk(e){return e.reduce((r,i)=>i.length>1?i.flatMap(a=>ok(r.length,n=>[...r[n]].concat(a))):(r.forEach(a=>a.push(i[0])),r),[[]])}function Ck(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,i)=>(lt(r,[i],e.patternProperties[i]),r),{})}function yN(e,t,r,i,a,n,s,o){const l=Ek(e,t,r,i,a,n,s,o);if(l.length>1||l[0]!==t)return l;if(Yf in t)return Ok(e,t,r,i,a,n,s).flatMap(c=>Ur(e,c,r,n,i,a,s));if(Hr in t&&Array.isArray(t[Hr])){const u=t.allOf.map(f=>Ur(e,f,r,n,i,a,s));return Sk(u).map(f=>({...t,allOf:f}))}return[t]}function Ek(e,t,r,i,a,n,s,o){const l=En(t,r,a,void 0,o);return l!==t?Ur(e,l,r,n,i,a,s,o):[t]}function En(e,t,r,i,a,n=!1){if(!be(e))return e;let s=e,o=i;if(at in s){const{$ref:l,...u}=s;if(r.includes(l))return n?{...s,[Zf]:!0}:s;r.push(l),s={...Ya(l,t,o),...u,[Ro]:l},nt in s&&(o=s[nt])}if($e in s){const l=[],u=NR(s[$e],(c,f,m)=>{const d=[...r];c[m]=En(f,t,d,o,a,!a),l.push(d)},{});Nj(r,hk(_j(l))),s={...s,[$e]:u}}if(Xi in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:En(s.items,t,r,o,a)}),a){let l,u;Le in e&&Array.isArray(e[Le])?(l=Le,u=s[Le]):Ae in e&&Array.isArray(e[Ae])&&(l=Ae,u=s[Ae]),l&&u&&(s={...s,[l]:u.map(c=>En(c,t,r,o,a))})}return ze(e,s)?e:s}function vN(e,t,r,i,a){const n={...t,properties:{...t.properties}},s=i&&be(i)?i:{};return Object.keys(s).forEach(o=>{if(!(o in n.properties)){if(Jc in n){const l=Ck(n,o);if(!wt(l)){n.properties[o]=Ft(e,{[Hr]:Object.values(l)},r,ae(s,[o]),a),n.properties[o][Sn]=!0;return}}if(qi in n&&n.additionalProperties!==!1){let l;typeof n.additionalProperties!="boolean"?at in n.additionalProperties?l=Ft(e,{[at]:ae(n.additionalProperties,[at])},r,ae(s,[o]),a):"type"in n.additionalProperties?l={...n.additionalProperties}:Le in n.additionalProperties||Ae in n.additionalProperties?l={type:"object",...n.additionalProperties}:l={type:Qa(ae(s,[o]))}:l={type:Qa(ae(s,[o]))},n.properties[o]=l,n.properties[o][Sn]=!0}else n.properties[o]={type:"null"},n.properties[o][Sn]=!0}}),n}function bN(e){return wk(e)}function Ur(e,t,r,i,a=!1,n=[],s,o){return be(t)?yN(e,t,r,a,n,i,s,o).flatMap(u=>{var c;let f=u;if(Xf in f)return gN(e,f,r,a,n,i,s);if(Hr in f){if(a){const{allOf:d,...p}=f;return[...d,p]}try{const d=[],p=[],b={};(c=f.allOf)===null||c===void 0||c.forEach(k=>{if(typeof k=="object"&&k.contains)d.push(k);else{p.push(k);for(const g of Object.getOwnPropertySymbols(k))g in b||(b[g]=k[g])}}),d.length&&(f={...f,allOf:p}),f=s?s(f):bN(f);for(const k of Object.getOwnPropertySymbols(b))f[k]=b[k];d.length&&(f.allOf=d)}catch(d){console.warn(`could not merge subschemas in allOf:
|
|
59
|
+
`,d);const{allOf:p,...b}=f;return b}}return $e in f&&Jc in f&&(f=Object.keys(f.properties).reduce((d,p)=>{const b=Ck(d,p);return wt(b)||(d.properties[p]=Ft(e,{allOf:[d.properties[p],...Object.values(b)]},r,ae(i,[p]),s)),d},{...f,properties:{...f.properties}})),Jc in f||qi in f&&f.additionalProperties!==!1?vN(e,f,r,i,s):f}):[{}]}function kN(e,t,r,i,a){let n;const{oneOf:s,anyOf:o,...l}=t;if(Array.isArray(s)?n=s:Array.isArray(o)&&(n=o),n){const u=a===void 0&&i?{}:a,c=yr(t);n=n.map(m=>En(m,r,[]));const f=Qo(e,u,n,r,c);if(i){const m=Ak(n,!1,r);return Qo(e,u,m,r,c),n.map(d=>nn(l,d))}return[nn(l,n[f])]}return[t]}function Ak(e,t=!1,r){return e.map(i=>{if(!be(i))return xk(i);const a=t&&r?En(i,r,[]):i;return a.additionalProperties===!1?{...a,additionalProperties:!0}:a})}function Ok(e,t,r,i,a,n,s){const{dependencies:o,...l}=t;return kN(e,l,r,i,n).flatMap(c=>_k(e,o,c,r,i,a,n,s))}function _k(e,t,r,i,a,n,s,o){let l=[r];for(const u in t)if((a||ae(s,[u])!==void 0)&&(!r.properties||u in r.properties)){const[c,f]=hd(u,t);return Array.isArray(f)?l[0]=wN(r,f):be(f)&&(l=xN(e,r,i,u,f,a,n,s,o)),l.flatMap(m=>_k(e,c,m,i,a,n,s,o))}return l}function wN(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 xN(e,t,r,i,a,n,s,o,l){return Ur(e,a,r,o,n,s,l).flatMap(c=>{const{oneOf:f,...m}=c,d=nn(t,m);if(f===void 0)return d;const p=f.map(k=>typeof k=="boolean"||!(at in k)?[k]:Ek(e,k,r,n,s,o));return Sk(p).flatMap(k=>SN(e,d,r,i,k,n,s,o,l))})}function SN(e,t,r,i,a,n,s,o,l){const u=a.filter(c=>{if(typeof c=="boolean"||!(c!=null&&c.properties))return!1;const{[i]:f}=c.properties;if(f){const m={type:"object",properties:{[i]:f}};return e.isValid(m,o,r)||n}return!1});return!n&&u.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):u.flatMap(c=>{const f=c,[m]=hd(i,f.properties),d={...f,properties:m};return Ur(e,d,r,o,n,s,l).map(b=>nn(t,b))})}function ja(e,t,r,i,a,n={},s){if(Array.isArray(r[a])){const l=yr(r)||i,u=r[a].map(f=>Ft(e,f,t,n,s)),c=ae(n,l);if(c!==void 0)return u.find(f=>ze(ae(f,[$e,l,li],ae(f,[$e,l,Kt])),c))}}function Pk(e,t,r,i,a){let n=r;if(qe(r,at)&&(n=Ft(e,r,t,void 0,a)),wt(i))return n;const s=Array.isArray(i)?[...i]:i.split("."),[o,...l]=s;if(o!==void 0&&o!==""&&qe(n,o))return n=ae(n,o),Pk(e,t,n,l,a)}function Mo(e,t,r,i,a,n){const s=Pk(e,t,r,i,n);return s===void 0?a:s}const ih={title:"!@#$_UNKNOWN_$#@!"};function CN(e,t,r,i,a={},n){const s=Array.isArray(i)?[...i]:i.split(".");let o=r;const l=s.pop(),u=String(l);s.length&&s.forEach(d=>{o=Mo(e,t,o,[$e,d],{},n),qe(o,Ae)?o=ja(e,t,o,u,Ae,ae(a,d),n):qe(o,Le)&&(o=ja(e,t,o,u,Le,ae(a,d),n))}),qe(o,Ae)?o=ja(e,t,o,u,Ae,a,n):qe(o,Le)&&(o=ja(e,t,o,u,Le,a,n));let c=Mo(e,t,o,[$e,l],ih,n);c===ih&&(c=void 0);const f=Mo(e,t,o,bb,[],n);let m;return c&&Array.isArray(f)&&(m=f.includes(u)),{field:c,isRequired:m}}function EN(e,t,r,i){var a=-1,n=e==null?0:e.length;for(i&&n&&(r=e[++a]);++a<n;)r=t(r,e[a],a,e);return r}function AN(e,t){return function(r,i){if(r==null)return r;if(!xi(r))return e(r,i);for(var a=r.length,n=-1,s=Object(r);++n<a&&i(s[n],n,s)!==!1;);return r}}var Ik=AN(lk);function ON(e,t,r,i,a){return a(e,function(n,s,o){r=i?(i=!1,n):t(r,n,s,o)}),r}function _N(e,t,r){var i=jt(e)?EN:ON,a=arguments.length<3;return i(e,vd(t),r,a,Ik)}const PN={type:"object",$id:XO,properties:{__not_really_there__:{type:"number"}}};function of(e,t,r,i,a){let n=0;return r&&(Ue(r.properties)?n+=_N(r.properties,(s,o,l)=>{const u=ae(i,l);if(typeof o=="boolean")return s;if(qe(o,at)){const c=Ft(e,o,t,u,a);return s+of(e,t,c,u||{},a)}if((qe(o,Ae)||qe(o,Le))&&u){const c=qe(o,Ae)?Ae:Le,f=yr(o);return s+ea(e,t,u,ae(o,c),-1,f,a)}if(o.type==="object"){const c=Ue(u)?1:0;return s+c+of(e,t,o,u,a)}if(o.type===Qa(u)){let c=s+1;return o.default?c+=u===o.default?1:-1:o.const&&(c+=u===o.const?1:-1),c}return s},0):Nn(r.type)&&r.type===Qa(i)&&(n+=1)),n}function ea(e,t,r,i,a=-1,n,s){const o=i.map(m=>En(m,t,[])),l=yk(r,i,n);if(gk(l))return l;const u=o.reduce((m,d,p)=>(Qo(e,r,[PN,d],t,n)===1&&m.push(p),m),[]);if(u.length===1)return u[0];u.length||ok(o.length,m=>u.push(m));const c=new Set,{bestIndex:f}=u.reduce((m,d)=>{const{bestScore:p}=m,b=o[d],k=of(e,t,b,r,s);return c.add(k),k>p?{bestIndex:d,bestScore:k}:m},{bestIndex:a,bestScore:0});return c.size===1&&a>=0?a:f}function Tk(e){const t=e[Kt],r=vr(e);return be(t)&&Nn(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function jk(e){return Array.isArray(e.enum)&&e.enum.length===1||Kt in e}function kd(e){return Array.isArray(e.items)&&e.items.every(t=>be(t))}function ta(e){return e==null}function es(e,t,r=!1,i=!1,a=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],s=a?n:t,o=a?t:n,l=s.map((u,c)=>o[c]!==void 0?es(n[c],t[c],r,i,a):u);return(r||a)&&l.length<o.length&&l.push(...o.slice(l.length)),l}if(be(t)){const n=Object.assign({},e);return Object.keys(t).reduce((s,o)=>{var l;const u=ae(t,o),c=be(e)&&o in e,f=o in t,m=(l=ae(e,o))!==null&&l!==void 0?l:{},d=c&&be(m)&&Object.values(m).some(k=>be(k)),p=c&&be(ae(e,o)),b=f&&be(u);return p&&b&&!d?(s[o]={...ae(e,o),...u},s):(s[o]=es(ae(e,o),u,r,i,a&&(c||!f)),n)},n)}return i&&(e!==void 0&&ta(t)||typeof t=="number"&&Number.isNaN(t))||a&&!ta(t)?e:t}function Fn(e,t,r=!1){return Object.keys(t).reduce((i,a)=>{const n=e?e[a]:{},s=t[a];if(e&&a in e&&be(s))i[a]=Fn(n,s,r);else if(r&&Array.isArray(n)&&Array.isArray(s)){let o=s;r==="preventDuplicates"&&(o=s.reduce((l,u)=>(n.includes(u)||l.push(u),l),[])),i[a]=n.concat(o)}else i[a]=s;return i},{...e})}function IN(e){if(YO in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(Kt in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function TN(e,t){const r=new Map(e.map(n=>[String(n.value),n])),i=new Set(t.filter(n=>n!=="*").map(String)),a=e.filter(n=>!i.has(String(n.value)));return t.flatMap(n=>{if(n==="*")return a;const s=r.get(String(n));return s?[s]:[]})}function di(e,t){if(e.enum){let n,s;if(t){const{enumNames:l,enumOrder:u}=me(t);n=l,s=u}let o=e.enum.map((l,u)=>({label:Array.isArray(n)?n[u]||String(l):(n==null?void 0:n[String(l)])||String(l),value:l}));return s&&(o=TN(o,s)),o}let r,i;e.anyOf?(r=e.anyOf,i=t==null?void 0:t.anyOf):e.oneOf&&(r=e.oneOf,i=t==null?void 0:t.oneOf);let a=yr(e);if(t){const{optionsSchemaSelector:n=a}=me(t);a=n}return r==null?void 0:r.map((n,s)=>{var o,l,u;const{title:c}=me(i==null?void 0:i[s]),f=n;let m,d=c;if(a){const p=ae(f,[$e,a],{});m=ae(p,li,ae(p,Kt)),d=(l=(o=d??(p==null?void 0:p.title))!==null&&o!==void 0?o:f.title)!==null&&l!==void 0?l:String(m)}else m=IN(f),d=(u=d??f.title)!==null&&u!==void 0?u:String(m);return{schema:f,label:d,value:m}})}function Al(e,t,r={},i){const a=Ft(e,t,r,void 0,i),n=a.oneOf||a.anyOf;return Array.isArray(a.enum)?!0:Array.isArray(n)?n.every(s=>typeof s!="boolean"&&jk(s)):!1}function wd(e,t,r,i){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:Al(e,t.items,r,i)}const jN=["string","number","integer","boolean","null"];var ra;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(ra||(ra={}));function Mu(e,t=ra.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const i=e.items[r];if(typeof i!="boolean")return i}}else if(e.items&&!Array.isArray(e.items)&&typeof e.items!="boolean")return e.items;return t!==ra.Ignore&&be(e.additionalItems)?e.additionalItems:{}}function Rk(e,t){const{default:r,type:i}=e;return Array.isArray(i)&&i.includes("null")&&wt(t)&&r===null?null:t}function ah(e,t,r,i,a,n=[],s={},o=!1,l=!1){const{emptyObjectFields:u="populateAllDefaults"}=s;if(i===!0||o)e[t]=r;else if(i==="excludeObjectChildren")(l&&r!==void 0||!be(r)||!wt(r))&&(e[t]=r);else if(u!=="skipDefaults"){const c=a===void 0?n.includes(t):a;be(r)?u==="skipEmptyDefaults"?wt(r)||(e[t]=r):(!wt(r)||n.includes(t))&&(c||u!=="populateRequiredDefaults")&&(e[t]=r):r!==void 0&&(u==="populateAllDefaults"||u==="skipEmptyDefaults"||c&&n.includes(t))&&(e[t]=r)}}function An(e,t,r={}){const{parentDefaults:i,rawFormData:a,rootSchema:n={},includeUndefinedValues:s=!1,_recurseList:o=[],experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,required:c,shouldMergeDefaultsIntoFormData:f=!1,initialDefaultsGenerated:m}=r;let d=be(a)?a:{};const p=be(t)?t:{};let b=i;const k=b&&(l==null?void 0:l.nestedDefaultsPrecedence)==="ancestorWins";let g=null,v=l,w=o;if(p[Kt]!==void 0&&(l==null?void 0:l.constAsDefaults)!=="never"&&!Tk(p))b=p[Kt];else if(be(b)&&be(p.default)&&!p[Le]&&!p[Ae]&&!p[at])k?b=Fn(p.default,b):b=Fn(b,p.default);else if(li in p&&!k&&!p[Le]&&!p[Ae]&&!p[at])b=p.default;else if(at in p){const y=p[at];o.includes(y)||(w=o.concat(y),g=Ya(y,n));const S=a===void 0||be(a)&&wt(a);g&&!b&&S&&(b=p.default),f&&g&&!be(a)&&(d=a)}else if(Yf in p){const y={...sh(e,p,r,b),...d};[g]=Ok(e,p,n,!1,[],y,u)}else if(kd(p)&&!k)b=p.items.map((y,S)=>An(e,y,{rootSchema:n,includeUndefinedValues:s,_recurseList:o,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,parentDefaults:Array.isArray(i)?i[S]:void 0,rawFormData:d,required:c,shouldMergeDefaultsIntoFormData:f}));else if(Ae in p){const{oneOf:y,...S}=p;if(y.length===0)return;const A=yr(p),{type:_="null"}=S;!Array.isArray(_)&&jN.includes(_)&&(v==null?void 0:v.constAsDefaults)==="skipOneOf"&&(v={...v,constAsDefaults:"never"}),g=y[ea(e,n,a??p.default,y,0,A,u)],g=nn(S,g)}else if(Le in p){const{anyOf:y,...S}=p;if(y.length===0)return;const A=yr(p);g=y[ea(e,n,a??p.default,y,0,A,u)],g=nn(S,g)}if(g)return An(e,g,{rootSchema:n,includeUndefinedValues:s,_recurseList:w,experimental_defaultFormStateBehavior:v,experimental_customMergeAllOf:u,parentDefaults:b,rawFormData:a??d,required:c,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:m});b===void 0&&(b=p.default);const C=sh(e,p,r,b);let h=C??b;if(f){const{arrayMinItems:y={}}=l||{},{mergeExtraDefaults:S}=y,A=xd(e,p,n,a,l,u);(!be(a)||Hr in p)&&(h=es(h,A,S,!0))}return h}function xd(e,t,r,i,a,n){const s=(a==null?void 0:a.allOf)==="populateDefaults"&&Hr in t,o=s?Ft(e,t,r,i,n):t,l=!jk(o)&&Al(e,o,r,n);let u=i;if(l){const f=di(o);u=(f==null?void 0:f.some(d=>ze(d.value,i)))?i:void 0}return o[Kt]&&(a==null?void 0:a.constAsDefaults)==="always"?u=o.const:be(u)&&be(o.properties)&&(u=Object.keys(o.properties).reduce((f,m)=>{const d=ae(o,[$e,m],{});return m in f&&(s||be(d)&&Hr in d)&&(f[m]=xd(e,d,r,ae(f,m),a,n)),f},{...u})),u}function RN(e,t,{rawFormData:r,rootSchema:i={},includeUndefinedValues:a=!1,_recurseList:n=[],experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,required:l,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},f){{const m=be(r)?r:{},d=t,b=(s==null?void 0:s.allOf)==="populateDefaults"&&Hr in d||(s==null?void 0:s.emptyObjectFields)!=="skipEmptyDefaults"&&Xf in d?Ft(e,d,i,m,o):d,k=b[Kt],g=Object.keys(b.properties||{}).reduce((v,w)=>{var C;const h=ae(b,[$e,w],{}),y=be(k)&&k[w]!==void 0,S=(be(h)&&Kt in h||y)&&(s==null?void 0:s.constAsDefaults)!=="never"&&!Tk(h),A=An(e,h,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:a===!0,parentDefaults:ae(f,[w]),rawFormData:ae(m,[w]),required:(C=b.required)===null||C===void 0?void 0:C.includes(w),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});return ah(v,w,A,a,l,b.required,s,S,(h==null?void 0:h.type)==="null"),v},{});if(b.additionalProperties&&!c){const v=be(b.additionalProperties)?b.additionalProperties:{},w=new Set,C=[];Object.keys(m).filter(h=>!b.properties||!b.properties[h]).forEach(h=>{w.add(h),C.push(h)}),be(f)&&C.length===0&&Object.keys(f).filter(h=>!b.properties||!b.properties[h]).forEach(h=>w.add(h)),w.forEach(h=>{var y;const S=An(e,v,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:a===!0,parentDefaults:ae(f,[h]),rawFormData:ae(m,[h]),required:(y=b.required)===null||y===void 0?void 0:y.includes(h),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});ah(g,h,S,a,l,C)})}return Rk(t,g)}}function NN(e,t,{rawFormData:r,rootSchema:i={},_recurseList:a=[],experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,requiredAsRoot:l=!1,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}={},f){var m,d;let p=f;const b=t,k=(m=n==null?void 0:n.arrayMinItems)!==null&&m!==void 0?m:{},{populate:g,mergeExtraDefaults:v}=k,w=g==="never",C=g==="requiredOnly",h=g==="all"||!w&&!C,y=(d=k==null?void 0:k.computeSkipPopulate)!==null&&d!==void 0?d:(()=>!1),A=(n==null?void 0:n.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(p)&&(p=p.map((E,O)=>{const j=Mu(b,ra.Fallback,O),T=Array.isArray(r)?r[O]:void 0;return An(e,j,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,parentDefaults:E,rawFormData:T,required:o,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c})})),Array.isArray(r)){const E=Mu(b);if(w)p=r;else{const O=r.map((T,F)=>An(e,E,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:T,parentDefaults:ae(p,[F]),required:o,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}));p=es(p,O,(C&&o||h)&&v)}}const _=Array.isArray(p)?p.length:0;if(w)return u&&!o?p:p??A;if(C&&!o)return p||void 0;let x;if(!b.minItems||wd(e,b,i,s)||y(e,b,i)||b.minItems<=_)x=p||!o&&!l?p:A;else{const E=p||[],O=Mu(b,ra.Invert),j=O.default,T=Array.from({length:b.minItems-_},()=>An(e,O,{parentDefaults:j,rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,shouldMergeDefaultsIntoFormData:u}));x=E.concat(T)}return Rk(t,x)}function sh(e,t,r={},i){switch(vr(t)){case"object":return RN(e,t,r,i);case"array":return NN(e,t,r,i);default:return}}function Nk(e,t,r,i,a=!1,n,s,o){if(!be(t))throw new Error(`Invalid schema: ${t}`);const l=Ft(e,t,i,r,s),u=An(e,l,{rootSchema:i,includeUndefinedValues:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:r,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:o,requiredAsRoot:!0});if(l.type!=="object"&&be(l.default))return{...u,...r};if(be(r)||Array.isArray(r)){const{mergeDefaultsIntoFormData:c}=n||{},f=c==="useDefaultIfFormDataUndefined",m=xd(e,l,i??l,r,n,s);return es(u,m,!0,f,!0)}return u}function Fk(e={}){return"widget"in me(e)&&me(e).widget!=="hidden"}function Dk(e,t,r={},i,a){if(r[ed]==="files")return!0;if(t.items){const n=Ft(e,t.items,i,void 0,a);return n.type==="string"&&n.format==="data-url"}return!1}function FN(e,t,r={},i,a,n){const s=me(r,a),{label:o=!0}=s;let l=!!o;if(l){const u=vr(t),c=!!t[Sn];u==="array"&&(l=c||wd(e,t,i,n)||Dk(e,t,r,i,n)||Fk(r)),u==="object"&&(l=c),u==="boolean"&&r&&!r[ed]&&(l=!1),r!=null&&r[e_]&&(l=!1)}return l}function Mk(e,t,r){for(var i=-1,a=t.length,n={};++i<a;){var s=t[i],o=bl(e,s);r(o,s)&&gd(n,oa(s,e),o)}return n}function DN(e,t){return Mk(e,t,function(r,i){return dk(e,i)})}var Lk=ek(function(e,t){return e==null?{}:DN(e,t)});function MN(e,t){if(t.length===0&&typeof e!="object")return e;const r=Lk(e,t);return Array.isArray(e)?Object.keys(r).map(i=>r[i]):r}function LN(e,t){const r=(a,n)=>typeof a!="object"||wt(a)||n&&!wt(a),i=(a,n=[],s=[[]])=>{const o=Object.keys(a);return o.forEach(l=>{const u=a[l];if(typeof u=="object"){const c=s.map(f=>[...f,l]);u[Qf]&&u[jo]!==""?n.push(u[jo]):i(u,n,c)}else l===jo&&u!==""&&s.forEach(c=>{const f=ae(t,c),m=o.length===1;(r(f,m)||Array.isArray(f)&&f.every(d=>r(d,m)))&&n.push(c)})}),n};return i(e)}function qk(e){return ta(e)||e===""?!0:Array.isArray(e)?e.length===0:be(e)?Object.values(e).every(qk):!1}function qN(e,t){return t?t(e):wk(e)}function zN(e,t,r={},i,a){function n(p){return be(p)}function s(p){return be(p)}function o(p,b,k){var g;const{properties:v,additionalProperties:w,patternProperties:C,propertyNames:h}=p,y=new Set((g=p.required)!==null&&g!==void 0?g:[]);function S(_,x,E,O=!1){var j;const T=d(x,E,k[_]);if(!O&&be(T)){let F=s(x)?x:{};F.$ref!==void 0&&(F=Ya(F.$ref,r));const q=new Set((j=F.required)!==null&&j!==void 0?j:[]);if(Object.entries(T).every(([Y,te])=>!q.has(Y)&&qk(te)))return}T!==void 0&&(k[_]=T)}if(v!==void 0)for(const[_,x]of Object.entries(v))S(_,x,b[_],y.has(_));let A;if(C!==void 0){A=[];const _=Object.entries(C).map(([E,O])=>[new RegExp(E),O]),x=new Set(Object.keys(v??{}));for(const[E,O]of Object.entries(b))if(!x.has(E)){const j=_.find(([T])=>T.test(E));j===void 0?A.push(E):S(E,j[1],O)}}if(w!==void 0&&w!==!1){const _=w;if(A!==void 0)for(const x of A)S(x,_,b[x]);else{const x=new Set(Object.keys(v??{}));for(const[E,O]of Object.entries(b))x.has(E)||S(E,_,O)}}if(h!==void 0)for(const[_,x]of Object.entries(b))k[_]=x;return k}function l(p,b,k){const{items:g,additionalItems:v}=p;if(g!==void 0)if(Array.isArray(g))for(let w=0;w<g.length;w+=1)k.push(d(g[w],b[w]));else for(let w=0;w<b.length;w+=1)k.push(d(g,b[w]));if(v)for(let w=k.length;w<b.length;w+=1)k.push(d(v,b[w]));return k}function u(p,b,k){const{if:g,then:v,else:w}=p;if(g===void 0)return k;const h=(s(g)?e.isValid(g,b,r):g)?v:w;return h===void 0?k:d(h,b,k)}function c(p,b,k,g){if(!Array.isArray(p)||Al(e,b,r,a))return g;const v=Ak(p,!0,r),w=ea(e,r,k,v,0,yr(b),a),C=p[w],h=be(C)?En(C,r,[]):v[w];return d(h,k,g)}function f(p,b,k){const{anyOf:g}=p;if(!Array.isArray(g))return k;if(b===void 0||Array.isArray(b)&&b.length===0||be(b)&&Object.keys(b).length===0){let v=k;for(const w of g)v=d(w,b,v);return v}return c(g,p,b,k)}function m(p,b,k){const{dependencies:g}=p;if(g===void 0||!n(b))return k;let v=k;for(const[w,C]of Object.entries(g))w in b&&!Array.isArray(C)&&(v=d(C,b,v));return v}function d(p,b,k){if(b===void 0||p===!1)return;if(p===!0||wt(p))return b;let g=p;const{$ref:v,allOf:w}=g;if(v!==void 0)return d(Ya(v,r),b,k);if(w){g=qN(g,a);const y=g.allOf;if(y)for(let S=0;S<y.length;S++)k=d(y[S],b,k)}let C=f(g,b,c(g.oneOf,g,b,k));const h=vr(g);if(h==="object"){if(!n(b))return;C=o(g,b,n(C)?C:{})}else if(h==="array"){if(!Array.isArray(b))return;C=l(g,b,Array.isArray(C)?C:[])}else C===void 0&&(C=b);return m(g,b,u(g,b,C))}return d(t,i)}const or=Symbol("no Value");function zk(e){if(Array.isArray(e.enum))return e.enum;const t=e.oneOf||e.anyOf;if(!Array.isArray(t))return;const r=t.map(i=>Kt in i?i[Kt]:Array.isArray(i.enum)&&i.enum.length===1?i.enum[0]:or).filter(i=>i!==or);return r.length>0?r:void 0}function $N(e,t){const r=zk(e);if(!r||r.some(a=>ze(a,t)))return or;const i=ae(e,li,or);return i!==or&&r.some(a=>ze(a,i))?i:r.length===1?r[0]:void 0}function lf(e,t,r,i,a={},n){let s;if(qe(r,$e)){const o={};if(qe(i,$e)){const c=ae(i,$e,{});Object.keys(c).forEach(f=>{qe(a,f)&&(o[f]=void 0)})}const l=Object.keys(ae(r,$e,{})),u={};l.forEach(c=>{const f=ae(a,c);let m=ae(i,[$e,c],{}),d=ae(r,[$e,c],{});qe(m,at)&&(m=Ft(e,m,t,f,n)),qe(d,at)&&(d=Ft(e,d,t,f,n));const p=ae(m,"type"),b=ae(d,"type");if(!p||p===b)if(qe(o,c)&&delete o[c],b==="object"||b==="array"&&Array.isArray(f)){const k=lf(e,t,d,m,f,n);(k!==void 0||b==="array")&&(u[c]=k)}else{const k=ae(d,li,or),g=ae(m,li,or);k!==or&&k!==f&&(g===f?o[c]=k:ae(d,"readOnly")===!0&&(o[c]=void 0));const v=ae(d,Kt,or),w=ae(m,Kt,or);if(v!==or&&v!==f&&(o[c]=w===f?v:void 0),qe(a,c)){const C=$N(d,f);C!==or&&(o[c]=C)}}}),s={...typeof a=="string"||Array.isArray(a)?void 0:a,...o,...u}}else if(ae(i,"type")==="array"&&ae(r,"type")==="array"&&Array.isArray(a)){let o=ae(i,"items"),l=ae(r,"items");if(typeof o=="object"&&typeof l=="object"&&!Array.isArray(o)&&!Array.isArray(l)){qe(o,at)&&(o=Ft(e,o,t,a,n)),qe(l,at)&&(l=Ft(e,l,t,a,n));const u=ae(o,"type"),c=ae(l,"type");if(!u||u===c){const f=ae(r,"maxItems",-1);if(c==="object")s=a.reduce((m,d)=>{const p=lf(e,t,l,o,d,n);return p!==void 0&&(f<0||m.length<f)&&m.push(p),m},[]);else{const m=zk(l),d=m?a.filter(p=>m.some(b=>ze(b,p))):a;s=f>0&&d.length>f?d.slice(0,f):d}}}else typeof o=="boolean"&&typeof l=="boolean"&&o===l&&(s=a)}return s}function bn(e,t,r,i,a,n=[],s){if(at in t||Yf in t||Hr in t||Xf in t){const l=Ft(e,t,i,a,s);if(n.findIndex(c=>ze(c,l))===-1)return bn(e,l,r,i,a,n.concat(l),s)}let o={[jo]:r.replace(/^\./,"")};if(Ae in t||Le in t){const l=Ae in t?t.oneOf:t.anyOf,u=yr(t),c=ea(e,i,a,l,0,u,s),f=l[c];o={...o,...bn(e,f,r,i,a,n,s)}}if(qi in t&&t[qi]!==!1){lt(o,Qf,!0);const l=Ue(t[qi])?t[qi]:{},u=ae(t,$e,{});for(const c of Object.keys(a??{}))c in u||(o[c]=bn(e,l,`${r}.${c}`,i,ae(a,[c]),n,s))}if(Xi in t&&Array.isArray(a)){const{items:l,additionalItems:u}=t;Array.isArray(l)?a.forEach((c,f)=>{l[f]?o[f]=bn(e,l[f],`${r}.${f}`,i,c,n,s):u?o[f]=bn(e,u,`${r}.${f}`,i,c,n,s):console.warn(`Unable to generate path schema for "${r}.${f}". No schema defined for it`)}):a.forEach((c,f)=>{o[f]=bn(e,l,`${r}.${f}`,i,c,n,s)})}else if($e in t)for(const l in t.properties){const u=ae(t,[$e,l],{});o[l]=bn(e,u,`${r}.${l}`,i,ae(a,[l]),n,s)}return o}function UN(e,t,r="",i,a,n){return bn(e,t,r,i,a,void 0,n)}class BN{constructor(t,r,i,a){(r==null?void 0:r[Ia])===No?this.rootSchema=nf(r,ae(r,nt,"#")):this.rootSchema=r,this.validator=t,this.experimental_defaultFormStateBehavior=i,this.experimental_customMergeAllOf=a}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,r,i={},a){return!t||!r?!1:this.validator!==t||!ze(this.rootSchema,r)||!ze(this.experimental_defaultFormStateBehavior,i)||this.experimental_customMergeAllOf!==a}findFieldInSchema(t,r,i){return CN(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,r,i,a){return ja(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getDefaultFormState(t,r,i=!1,a){return Nk(this.validator,t,r,this.rootSchema,i,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,a)}getDisplayLabel(t,r,i){return FN(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,i,a){return ea(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,i){return Qo(this.validator,t,r,this.rootSchema,i)}getFromSchema(t,r,i){return Mo(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}isFilesArray(t,r){return Dk(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return wd(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return Al(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return zN(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,i){return Ft(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,i)}sanitizeDataForNewSchema(t,r,i){return lf(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}toPathSchema(t,r,i){return UN(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}}function VN(e,t,r={},i){return new BN(e,t,r,i)}function HN(e){var t;if(!e.includes("data:"))throw new Error("File is invalid: URI must be a dataURI");const i=e.slice(5).split(";base64,");if(i.length!==2)throw new Error("File is invalid: dataURI must be base64");const[a,n]=i,[s,...o]=a.split(";"),l=s||"",u=decodeURI(((t=o.map(c=>c.split("=")).find(([c])=>c==="name"))===null||t===void 0?void 0:t[1])||"unknown");try{const c=atob(n),f=new Array(c.length);for(let d=0;d<c.length;d+=1)f[d]=c.charCodeAt(d);return{blob:new window.Blob([new Uint8Array(f)],{type:l}),name:u}}catch(c){throw new Error(`File is invalid: ${c.message}`)}}function kn(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function $k(e,t){const r=e<=0&&t<=0,i=e<0||t<0;if(!r&&i)throw new Error(`Both start (${e}) and stop (${t}) must both be <= 0 or > 0, got one of each`);const a=new Date().getFullYear(),n=r?a+e:e,s=r?a+t:t;if(n>s)return $k(t,e).reverse();const o=[];for(let l=n;l<=s;l+=1)o.push({value:l,label:kn(l,2)});return o}function KN(e,t){let r=e;if(Array.isArray(t)){const i=r.split(/(%\d)/);t.forEach((a,n)=>{const s=i.findIndex(o=>o===`%${n+1}`);s>=0&&(i[s]=a)}),r=i.join("")}return r}function WN(e,t){return KN(e,t)}function Ol(e,t=[],r){if(Array.isArray(e))return e.map(n=>Ol(n,t)).filter(n=>n!==void 0);const i=e===""||e===null?-1:Number(e),a=t[i];return a?a.value:r}function Uk(e,t,r=[]){const i=Ol(e,r);return Array.isArray(t)?t.filter(a=>!ze(a,i)):ze(i,t)?void 0:t}function ua(e,t){return Array.isArray(t)?t.some(r=>ze(r,e)):ze(t,e)}function Bk(e,t=[],r=!1){const i=t.map((a,n)=>ua(a.value,e)?String(n):void 0).filter(a=>typeof a<"u");return r?i:i[0]}function GN(e,t,r,i="indexed",a){if(typeof e>"u"||r&&Array.isArray(e)&&e.length<1||!r&&e===a)return a;if(i==="realValue")return r?e.map(String):String(e);const s=Bk(e,t,r);return typeof s>"u"?a:s}function Vk(e,t,r=[]){const i=Ol(e,r);if(!ta(i)){const a=r.findIndex(o=>i===o.value),n=r.map(({value:o})=>o);return t.slice(0,a).concat(i,t.slice(a)).sort((o,l)=>+(n.indexOf(o)>n.indexOf(l)))}return t}function oh(e,t,r){if(e===""||!Array.isArray(t))return r;const i=t.find(n=>String(n.value)===e);if(i)return i.value;const a=Number(e);return!Number.isNaN(a)&&a>=0&&a<t.length?t[a].value:r}function _r(e,t,r="indexed",i){return r!=="realValue"?Ol(e,t,i):Array.isArray(e)?e.map(a=>oh(a,t,i)):oh(e,t,i)}function ms(e,t,r="indexed"){return r!=="realValue"?String(t):ta(e)?"":String(typeof e=="object"?t:e)}var JN=1,YN=4;function el(e){return za(e,JN|YN)}function XN(e,t,r,i){return i=typeof i=="function"?i:void 0,e==null?e:gd(e,t,r,i)}class Hk{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let i=Array.isArray(t)&&t.length>0||typeof t=="string"?ae(this.errorSchema,t):this.errorSchema;return!i&&t&&(i={},XN(this.errorSchema,t,i,Object)),i}resetAllErrors(t){return this.errorSchema=t?el(t):{},this}addErrors(t,r){const i=this.getOrCreateErrorBlock(r);let a=ae(i,Nt);return Array.isArray(a)||(a=[],i[Nt]=a),Array.isArray(t)?lt(i,Nt,[...new Set([...a,...t])]):lt(i,Nt,[...new Set([...a,t])]),this}setErrors(t,r){const i=this.getOrCreateErrorBlock(r),a=Array.isArray(t)?[...new Set([...t])]:[t];return lt(i,Nt,a),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return lt(r,Nt,[]),this}}var ZN=200;function QN(e,t,r,i){var a=-1,n=bd,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;t.length>=ZN&&(n=Za,s=!1,t=new fi(t));e:for(;++a<o;){var c=e[a],f=c;if(c=c!==0?c:0,s&&f===f){for(var m=u;m--;)if(t[m]===f)continue e;l.push(c)}else n(t,f,i)||l.push(c)}return l}var eF=Sl(function(e,t){return Xa(e)?QN(e,ds(t,1,Xa,!0)):[]});function tF(e,t){if(e==null)return{};var r=sa(md(e),function(i){return[i]});return t=vd(t),Mk(e,r,function(i,a){return t(i,a[0])})}function lh(e,t){const r=jn(e),i=jn(t);if(e===t||!r&&!i)return[];if(r&&!i)return Cr(e);if(!r&&i)return Cr(t);const a=Cr(tF(e,(s,o)=>!ze(s,ae(t,o)))),n=eF(Cr(t),Cr(e));return[...a,...n]}function rF(e,t,r=[1900,new Date().getFullYear()+2],i="YMD"){const{day:a,month:n,year:s,hour:o,minute:l,second:u}=e,c={type:"day",range:[1,31],value:a},f={type:"month",range:[1,12],value:n},m={type:"year",range:r,value:s},d=[];switch(i){case"MDY":d.push(f,c,m);break;case"DMY":d.push(c,f,m);break;case"YMD":default:d.push(m,f,c)}return t&&d.push({type:"hour",range:[0,23],value:o},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:u}),d}function nF(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||e.minimum===0)&&(t.min=e.minimum),(e.maximum||e.maximum===0)&&(t.max=e.maximum),t}function iF(e,t,r={},i=!0){const a={type:t||"text",...nF(e)};return r.inputType?a.type=r.inputType:t||(e.type==="number"?(a.type="number",i&&a.step===void 0&&(a.step="any")):e.type==="integer"&&(a.type="number",a.step===void 0&&(a.step=1))),["date","datetime-local","time","week","month"].includes(a.type)&&(e.formatMinimum!==void 0&&(a.min=e.formatMinimum),e.formatMaximum!==void 0&&(a.max=e.formatMaximum)),r.autocomplete&&(a.autoComplete=r.autocomplete),r.accept&&(a.accept=r.accept),a}function ps(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const uh={props:{disabled:!1},submitText:"Submit",norender:!1};function Kk(e={}){const t=me(e);if(t!=null&&t[Go]){const r=t[Go];return{...uh,...r}}return uh}function ye(e,t,r={}){const{templates:i}=t;if(e==="ButtonTemplates")return i[e];if(Object.hasOwn(r,e)&&typeof r[e]=="string"&&Object.hasOwn(i,r[e])){const a=r[e];return i[a]}return r[e]||i[e]}var aF=0;function Wk(e){var t=++aF;return nd(e)+t}function Sd(){if(ae(globalThis,"process.env.NODE_ENV")!=="test")return{};const e=new Map;return new Proxy({},{get(t,r){return e.has(r)||e.set(r,Wk("test-id-")),e.get(r)}})}var Ds={exports:{}},et={};/**
|
|
34
60
|
* @license React
|
|
35
61
|
* react-is.production.min.js
|
|
36
62
|
*
|
|
@@ -38,7 +64,7 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=q(V,Q,R,M,B+"."+Q,
|
|
|
38
64
|
*
|
|
39
65
|
* This source code is licensed under the MIT license found in the
|
|
40
66
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var
|
|
67
|
+
*/var ch;function sF(){if(ch)return et;ch=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),s=Symbol.for("react.context"),o=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),p;p=Symbol.for("react.module.reference");function b(k){if(typeof k=="object"&&k!==null){var g=k.$$typeof;switch(g){case e:switch(k=k.type,k){case r:case a:case i:case u:case c:return k;default:switch(k=k&&k.$$typeof,k){case o:case s:case l:case m:case f:case n:return k;default:return g}}case t:return g}}}return et.ContextConsumer=s,et.ContextProvider=n,et.Element=e,et.ForwardRef=l,et.Fragment=r,et.Lazy=m,et.Memo=f,et.Portal=t,et.Profiler=a,et.StrictMode=i,et.Suspense=u,et.SuspenseList=c,et.isAsyncMode=function(){return!1},et.isConcurrentMode=function(){return!1},et.isContextConsumer=function(k){return b(k)===s},et.isContextProvider=function(k){return b(k)===n},et.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===e},et.isForwardRef=function(k){return b(k)===l},et.isFragment=function(k){return b(k)===r},et.isLazy=function(k){return b(k)===m},et.isMemo=function(k){return b(k)===f},et.isPortal=function(k){return b(k)===t},et.isProfiler=function(k){return b(k)===a},et.isStrictMode=function(k){return b(k)===i},et.isSuspense=function(k){return b(k)===u},et.isSuspenseList=function(k){return b(k)===c},et.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===r||k===a||k===i||k===u||k===c||k===d||typeof k=="object"&&k!==null&&(k.$$typeof===m||k.$$typeof===f||k.$$typeof===n||k.$$typeof===s||k.$$typeof===l||k.$$typeof===p||k.getModuleId!==void 0)},et.typeOf=b,et}var tt={};/**
|
|
42
68
|
* @license React
|
|
43
69
|
* react-is.development.js
|
|
44
70
|
*
|
|
@@ -46,80 +72,67 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=q(V,Q,R,M,B+"."+Q,
|
|
|
46
72
|
*
|
|
47
73
|
* This source code is licensed under the MIT license found in the
|
|
48
74
|
* LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/var
|
|
50
|
-
`,u),c}for(const u of[Fe,We]){const f=l[u];if(Array.isArray(f)&&f.length>0){const m=c[u],d=Array.isArray(m)?[...m]:[];let h=!1;for(let k=0;k<f.length;k++){const v=f[k],y=(i=v==null?void 0:v[xl])!==null&&i!==void 0?i:v==null?void 0:v[gt];if(y&&y in s){const b=d[k]||{};d[k]=ka(s[y],b),h=!0}}h&&(c[u]=d)}}}return c}function Ps(e){var t,r,a;if(e.const||((t=e.enum)===null||t===void 0?void 0:t.length)===1&&e.enum[0]===!0)return!0;if(((r=e.anyOf)===null||r===void 0?void 0:r.length)===1)return Ps(e.anyOf[0]);if(((a=e.oneOf)===null||a===void 0?void 0:a.length)===1)return Ps(e.oneOf[0]);if(e.allOf){const i=n=>Ps(n);return e.allOf.some(i)}return!1}function kT({hideLabel:e,id:t,multiple:r,options:a,registry:i,uiSchema:n,value:s}){var o,c;if(r||e)return null;const{label:l=!0}=ke(n,i.globalUiOptions);if(!l)return null;const u=(o=a.enumOptions)===null||o===void 0?void 0:o.find(({value:d})=>Ki(d,s)),f=(c=u==null?void 0:u.schema)===null||c===void 0?void 0:c.description;if(!f)return null;const m=xe("DescriptionFieldTemplate",i,a);return j.jsx(m,{id:Ca(t),description:f,schema:u.schema,uiSchema:n,registry:i})}function zf(e,t){if(Object.is(e,t))return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i+=1){const n=r[i];if(!Object.hasOwn(t,n)||!Object.is(e[n],t[n]))return!1}return!0}function wT(e,t,r,a="customDeep"){if(a==="always")return!0;if(a==="shallow"){const{props:s,state:o}=e;return!zf(s,t)||!zf(o,r)}const{props:i,state:n}=e;return!Je(i,t)||!Je(n,r)}function uh(e){const t=Kb(e.map(r=>Xe(r)?Yr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function no(e,t,r,a){const{enableOptionalDataFieldForType:i=[]}=ke(a,e.globalUiOptions);let n;return We in t&&Array.isArray(t[We])?n=uh(t[We]):Fe in t&&Array.isArray(t[Fe])?n=uh(t[Fe]):n=Yr(t),!pT(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!i.find(s=>s===n)}function fh(e,t=!0){const{year:r,month:a,day:i,hour:n=0,minute:s=0,second:o=0}=e,c=Date.UTC(r,a-1,i,n,s,o),l=new Date(c).toJSON();return t?l:l.slice(0,10)}function Qd(e,t=[]){if(!e)return[];let r=[];return Zt in e&&(r=r.concat(e[Zt].map(a=>{const i=`.${t.join(".")}`;return{property:i,message:a,stack:`${i} ${a}`}}))),Object.keys(e).reduce((a,i)=>{if(i!==Zt){const n=e[i];if(ya(n))return a.concat(Qd(n,[...t,i]))}return a},r)}function Ok(e){return Vt(e)?Vi(e,va):Js(e)?[e]:Dd(ob(Od(e)))}function ST(e){const t=new Ek;return e.length&&e.forEach(r=>{const{property:a,message:i}=r,n=a==="."?[]:Ok(a);n.length>0&&n[0]===""&&n.splice(0,1),i&&t.addErrors(i,n)}),t.ErrorSchema}function cn(e,t,r,a){const i=Array.isArray(r)?r:r==null?void 0:r.path,n=e===""?[]:[e],s=i?i.concat(...n):n,o=[t.idPrefix,...s].join(t.idSeparator);let c;return t.nameGenerator&&s.length>0&&(c=t.nameGenerator(s,t.idPrefix,a)),{path:s,[pt]:o,...c!==void 0&&{name:c}}}function Tk(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const a=e[r];return ya(a)?{...t,[r]:Tk(a)}:{...t,[r]:a}},{})}function ET(e){return Object.values(e).every(t=>t!==-1)}function xT(e){const{className:t="form-control",type:r,range:a,value:i,select:n,rootId:s,name:o,disabled:c,readonly:l,autofocus:u,registry:f,onBlur:m,onFocus:d}=e,h=`${s}_${r}`,{SelectWidget:k}=f.widgets,v=W.useCallback(y=>n(r,y),[n,r]);return j.jsx(k,{schema:{type:"integer"},id:h,name:o,className:t,options:{enumOptions:bk(a[0],a[1])},placeholder:r,value:i,disabled:c,readonly:l,autofocus:u,onChange:v,onBlur:m,onFocus:d,registry:f,label:"","aria-describedby":dn(s)})}function CT(e){const{time:t=!1,disabled:r=!1,readonly:a=!1,options:i,onChange:n,value:s}=e,[o,c]=W.useState(pu(s,t));W.useEffect(()=>{c(pu(s,t))},[t,s]);const l=W.useCallback((d,h)=>{const k={...o,[d]:typeof h>"u"?-1:h};ET(k)?n(fh(k,t)):c(k)},[o,n,t]),u=W.useCallback(d=>{d.preventDefault(),!(r||a)&&n(void 0)},[r,a,n]),f=W.useCallback(d=>{if(d.preventDefault(),r||a)return;const h=pu(new Date().toJSON(),t);n(fh(h,t))},[r,a,t,n]);return{elements:W.useMemo(()=>nT(o,t,i.yearsRange,i.format),[o,t,i.yearsRange,i.format]),handleChange:l,handleClear:u,handleSetNow:f}}function Ji(e){const t=W.useRef(e);return Je(e,t.current)||(t.current=e),t.current}function AT(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function _T(e){const{name:t,size:r,type:a}=e;return new Promise((i,n)=>{const s=new window.FileReader;s.onerror=n,s.onload=o=>{var c;typeof((c=o.target)===null||c===void 0?void 0:c.result)=="string"?i({dataURL:AT(o.target.result,t),name:t,size:r,type:a}):i({dataURL:null,name:t,size:r,type:a})},s.readAsDataURL(e)})}async function OT(e){return Promise.all(Array.from(e).map(_T))}function dh(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:a,name:i}=WO(r);return[...t,{dataURL:r,name:i,size:a.size,type:a.type}]}catch{return t}},[])}function TT(e,t,r=!1){const a=W.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),i=W.useMemo(()=>Array.isArray(e)?dh(e):dh([e||""]),[e]),n=W.useCallback(async o=>{const l=(await OT(o)).map(u=>u.dataURL||null);t(r?a.concat(...l):l[0])},[a,r,t]),s=W.useCallback(o=>{if(r){const c=a.filter((l,u)=>u!==o);t(c)}else t(void 0)},[a,r,t]);return{filesInfo:i,handleChange:n,handleRemove:s}}function PT(e){if(!e)return"";const t=new Date(e),r=ia(t.getFullYear(),4),a=ia(t.getMonth()+1,2),i=ia(t.getDate(),2),n=ia(t.getHours(),2),s=ia(t.getMinutes(),2),o=ia(t.getSeconds(),2),c=ia(t.getMilliseconds(),3);return`${r}-${a}-${i}T${n}:${s}:${o}.${c}`}function Cs(e,t,r=!1){if(!t)return e;const{errors:a,errorSchema:i}=e;let n=Qd(t),s=t;return Rt(i)||(s=ka(i,t,r?"preventDuplicates":!0),n=[...a].concat(n)),{errorSchema:s,errors:n}}function IT(e){const t=e;for(const r in t)if(Object.hasOwn(t,r)){const a=t[r];r===gt&&typeof a=="string"&&a.startsWith("#")?t[r]=tb+a:t[r]=em(a)}return e}function RT(e){return e.map(t=>em(t))}function em(e){return Array.isArray(e)?RT([...e]):Xe(e)?IT({...e}):e}var Le;(function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.EmptyArray="No items yet. Use the button below to add some.",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.ExpandButton="Expand Cycle",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.OptionalObjectAdd="Add data for optional field",e.OptionalObjectRemove="Remove data for optional field",e.OptionalObjectEmptyMsg="No data for optional field",e.Type="Type",e.Value="Value",e.ClearButton="clear input",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.DeprecatedLabel="%1 (deprecated)",e.CycleDetected='Circular reference ($ref cycle) detected for field "%1". You may choose to expand to the next cycle break',e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)"})(Le||(Le={}));function NT(e,t){var r=Vt(e)?Rd:lk;return r(e,Mb(t))}function jT(e,t){return e==null?!0:Tb(e,t)}function $f(){return Ck("rjsf-array-item-")}function mh(e){return Array.isArray(e)?e.map(t=>({key:$f(),item:t})):[]}function Pk(e){return Array.isArray(e)?e.map(t=>t.item):[]}function DT(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function Ik(e,t,r,a){let{addable:i}=ke(a,e.globalUiOptions);return i!==!1&&(t.maxItems!==void 0?i=r.length<t.maxItems:i=!0),i}function Rk(e,t,r,a){if(typeof e.items=="function")try{return e.items(t,r,a)}catch(i){console.error(`Error executing dynamic uiSchema.items function for item at index ${r}:`,i);return}else return e.items}function FT(e,t){const{schemaUtils:r,globalFormOptions:a}=e;let i=t.items;return a.useFallbackUiForUnsupportedType&&!i?i={}:Hd(t)&&Yw(t)&&(i=t.additionalItems),r.getDefaultFormState(i)}function MT(e){const{schema:t,fieldPathId:r,uiSchema:a,formData:i=[],disabled:n=!1,readonly:s=!1,autofocus:o=!1,required:c=!1,placeholder:l,onBlur:u,onFocus:f,registry:m,rawErrors:d,name:h,onSelectChange:k}=e,{widgets:v,schemaUtils:y,globalFormOptions:b,globalUiOptions:w}=m,E=y.retrieveSchema(t.items,i),p=(a==null?void 0:a.items)??a,g=Ja(E,p),{widget:S="select",title:C,...O}=ke(a,w),_=On(t,S,v),x=C??t.title??h,A=y.getDisplayLabel(t,a,w),N=Ji(cn("",b,r,!0));return j.jsx(_,{id:N[pt],name:h,multiple:!0,onChange:k,onBlur:u,onFocus:f,options:{...O,enumOptions:g},schema:t,uiSchema:a,registry:m,value:i,disabled:n,readonly:s,required:c,label:x,hideLabel:!A,placeholder:l,autofocus:o,rawErrors:d,htmlName:N.name})}function LT(e){const{schema:t,fieldPathId:r,uiSchema:a,disabled:i=!1,readonly:n=!1,autofocus:s=!1,required:o=!1,hideError:c,placeholder:l,onBlur:u,onFocus:f,formData:m=[],registry:d,rawErrors:h,name:k,onSelectChange:v}=e,{widgets:y,schemaUtils:b,globalFormOptions:w,globalUiOptions:E}=d,{widget:p,title:g,...S}=ke(a,E),C=On(t,p,y),O=g??t.title??k,_=b.getDisplayLabel(t,a,E),x=Ji(cn("",w,r,!0));return j.jsx(C,{id:x[pt],name:k,multiple:!0,onChange:v,onBlur:u,onFocus:f,options:S,schema:t,uiSchema:a,registry:d,value:m,disabled:i,readonly:n,hideError:c,required:o,label:O,hideLabel:!_,placeholder:l,autofocus:s,rawErrors:h,htmlName:x.name})}function qT(e){const{schema:t,uiSchema:r,fieldPathId:a,name:i,disabled:n=!1,readonly:s=!1,autofocus:o=!1,required:c=!1,onBlur:l,onFocus:u,registry:f,formData:m=[],rawErrors:d,onSelectChange:h}=e,{widgets:k,schemaUtils:v,globalFormOptions:y,globalUiOptions:b}=f,{widget:w="files",title:E,...p}=ke(r,b),g=On(t,w,k),S=E??t.title??i,C=v.getDisplayLabel(t,r,b),O=Ji(cn("",y,a,!0));return j.jsx(g,{options:p,id:O[pt],name:i,multiple:!0,onChange:h,onBlur:l,onFocus:u,schema:t,uiSchema:r,value:m,disabled:n,readonly:s,required:c,registry:f,autofocus:o,rawErrors:d,label:S,hideLabel:!C,htmlName:O.name})}function zT(e){const{itemKey:t,index:r,name:a,disabled:i,hideError:n,readonly:s,registry:o,uiOptions:c,parentUiSchema:l,canAdd:u,canRemove:f=!0,canMoveUp:m,canMoveDown:d,rawItemSchema:h,itemData:k,itemUiSchema:v,parentFieldPathId:y,itemErrorSchema:b,autofocus:w,onBlur:E,onFocus:p,onChange:g,rawErrors:S,totalItems:C,title:O,handleAddItem:_,handleCopyItem:x,handleRemoveItem:A,handleReorderItems:N}=e,{schemaUtils:I,fields:{ArraySchemaField:F,SchemaField:$},globalUiOptions:Y,globalFormOptions:Z}=o,ie=W.useMemo(()=>I.retrieveSchema(h,k),[I,h,k]),P=W.useMemo(()=>cn(r,Z,y),[r,Z,y]),D=F||$,U=xe("ArrayFieldItemTemplate",o,c),T=I.getDisplayLabel(ie,v,Y),{description:R}=ke(v),M=!!R||!!ie.description,{orderable:B=!0,removable:V=!0,copyable:K=!1}=c,J={moveUp:B&&m,moveDown:B&&d,copy:K&&u,remove:V&&f,toolbar:!1};J.toolbar=Object.keys(J).some(ae=>J[ae]);const Q=W.useCallback(ae=>{_(ae,r+1)},[_,r]),q=W.useCallback(ae=>{x(ae,r)},[x,r]),z=W.useCallback(ae=>{A(ae,r)},[A,r]),H=W.useCallback(ae=>{N(ae,r,r-1)},[N,r]),G=W.useCallback(ae=>{N(ae,r,r+1)},[N,r]),te={children:j.jsx(D,{name:a,title:O,index:r,schema:ie,uiSchema:v,formData:k,errorSchema:b,fieldPathId:P,required:DT(ie),onChange:g,onBlur:E,onFocus:p,registry:o,disabled:i,readonly:s,hideError:n,autofocus:w,rawErrors:S}),buttonsProps:{fieldPathId:P,disabled:i,readonly:s,canAdd:u,hasCopy:J.copy,hasMoveUp:J.moveUp,hasMoveDown:J.moveDown,hasRemove:J.remove,index:r,totalItems:C,onAddItem:Q,onCopyItem:q,onRemoveItem:z,onMoveUpItem:H,onMoveDownItem:G,registry:o,schema:ie,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:i,hasToolbar:J.toolbar,index:r,totalItems:C,readonly:s,registry:o,schema:ie,uiSchema:v,parentUiSchema:l,displayLabel:T,hasDescription:M};return j.jsx(U,{...te})}const Nk=W.memo(zT);function $T(e){const{schema:t,uiSchema:r={},errorSchema:a,fieldPathId:i,formData:n,name:s,title:o,disabled:c=!1,readonly:l=!1,autofocus:u=!1,required:f=!1,hideError:m=!1,registry:d,onBlur:h,onFocus:k,rawErrors:v,onChange:y,keyedFormData:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:p,handleReorderItems:g}=e,S=t.title||o||s,{schemaUtils:C,fields:O,formContext:_,globalUiOptions:x}=d,{OptionalDataControlsField:A}=O,N=W.useMemo(()=>ke(r,x),[r,x]),I=W.useMemo(()=>Xe(t.items)?t.items:{},[t.items]),F=W.useMemo(()=>C.retrieveSchema(I),[C,I]),$=W.useMemo(()=>Pk(b),[b]),Y=no(d,t,f,r),Z=Gi(n),ie=W.useMemo(()=>Ik(d,t,$,r)&&(!Y||Z),[d,t,$,r,Y,Z]),P=Z?b:[],D=Y?" rjsf-optional-array-field":"",U=e.childFieldPathId??i,T=Y?j.jsx(A,{...e,fieldPathId:U}):void 0,R={canAdd:ie,items:P.map((B,V)=>{const{key:K,item:J}=B,Q=J,q=a?a[V]:void 0,z=Rk(r,J,V,_),H={itemKey:K,index:V,name:s&&`${s}-${V}`,registry:d,uiOptions:N,parentUiSchema:r,hideError:m,readonly:l,disabled:c,required:f,title:S?`${S}-${V+1}`:void 0,canAdd:ie,canMoveUp:V>0,canMoveDown:V<$.length-1,rawItemSchema:I,parentFieldPathId:U,itemErrorSchema:q,itemData:Q,itemUiSchema:z,autofocus:u&&V===0,onBlur:h,onFocus:k,rawErrors:v,totalItems:b.length,handleAddItem:w,handleCopyItem:E,handleRemoveItem:p,handleReorderItems:g,onChange:y};return j.jsx(Nk,{...H},K)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${F.type}${D}`,disabled:c,fieldPathId:i,uiSchema:r,onAddClick:w,readonly:l,required:f,schema:t,title:S,formData:$,rawErrors:v,registry:d,optionalDataControl:T},M=xe("ArrayFieldTemplate",d,N);return j.jsx(M,{...R})}function UT(e){const{schema:t,uiSchema:r={},formData:a,errorSchema:i,fieldPathId:n,name:s,title:o,disabled:c=!1,readonly:l=!1,autofocus:u=!1,required:f=!1,hideError:m=!1,registry:d,onBlur:h,onFocus:k,rawErrors:v,keyedFormData:y,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:p,handleReorderItems:g}=e;let{formData:S=[]}=e;const C=t.title||o||s,{fields:O,formContext:_,globalUiOptions:x}=d,A=W.useMemo(()=>ke(r,x),[r,x]),{OptionalDataControlsField:N}=O,I=no(d,t,f,r),F=Gi(a),$=W.useMemo(()=>Xe(t.items)?t.items:[],[t.items]),Y=Xe(t.additionalItems),Z=e.childFieldPathId??n;S.length<$.length&&(S=S.concat(new Array($.length-S.length)));const ie=F?y:[],P=I?" rjsf-optional-array-field":"",D=I?j.jsx(N,{...e,fieldPathId:Z}):void 0,U=Ik(d,t,S,r)&&Y&&(!I||F),T={canAdd:U,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:c,fieldPathId:n,formData:a,items:ie.map((M,B)=>{const{key:V,item:K}=M,J=K,Q=B>=$.length,q=(Q&&Xe(t.additionalItems)?t.additionalItems:$[B])||{};let z;Q?z=r.additionalItems:Array.isArray(r.items)?z=r.items[B]:z=Rk(r,K,B,_);const H=i?i[B]:void 0,G={index:B,itemKey:V,name:s&&`${s}-${B}`,registry:d,uiOptions:A,parentUiSchema:r,hideError:m,readonly:l,disabled:c,required:f,title:C?`${C}-${B+1}`:void 0,canAdd:U,canRemove:Q,canMoveUp:B>=$.length+1,canMoveDown:Q&&B<S.length-1,rawItemSchema:q,itemData:J,itemUiSchema:z,parentFieldPathId:Z,itemErrorSchema:H,autofocus:u&&B===0,onBlur:h,onFocus:k,rawErrors:v,totalItems:y.length,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:p,handleReorderItems:g};return j.jsx(Nk,{...G},V)}),onAddClick:w,readonly:l,required:f,registry:d,schema:t,uiSchema:r,title:C,errorSchema:i,rawErrors:v,optionalDataControl:D},R=xe("ArrayFieldTemplate",d,A);return j.jsx(R,{...T})}function BT(e=[]){const t=W.useMemo(()=>Br(e),[e]),[r,a]=W.useState(()=>({formDataHash:t,keyedFormData:mh(e)}));let{keyedFormData:i,formDataHash:n}=r;if(t!==n){const o=Array.isArray(e)?e:[],c=i||[];i=o.length===c.length?c.map((l,u)=>({key:l.key,item:o[u]})):mh(o),n=t,a({formDataHash:n,keyedFormData:i})}const s=W.useCallback(o=>{const c=Pk(o),l=Br(c);return a({formDataHash:l,keyedFormData:o}),c},[]);return{keyedFormData:i,updateKeyedFormData:s}}function VT(e){const{schema:t,uiSchema:r,errorSchema:a,fieldPathId:i,registry:n,formData:s,onChange:o}=e,{globalFormOptions:c,schemaUtils:l,translateString:u}=n,{keyedFormData:f,updateKeyedFormData:m}=BT(s),d=W.useRef(f);d.current=f;const h=W.useRef(a);h.current=a;const k=e.childFieldPathId??i,v=W.useCallback((C,O)=>{C&&C.preventDefault();let _;if(h.current){_={};for(const N of Object.keys(h.current)){const I=parseInt(N,10);O===void 0||I<O?yt(_,[I],h.current[I]):I>=O&&yt(_,[I+1],h.current[I])}}const x={key:$f(),item:FT(n,t)},A=[...d.current];O!==void 0?A.splice(O,0,x):A.push(x),o(m(A),k.path,_)},[n,t,o,m,k]),y=W.useCallback((C,O)=>{C&&C.preventDefault();let _;if(h.current){_={};for(const N of Object.keys(h.current)){const I=parseInt(N,10);I<=O?yt(_,[I],h.current[I]):I>O&&yt(_,[I+1],h.current[I])}}const x={key:$f(),item:Bl(d.current[O].item)},A=[...d.current];O!==void 0?A.splice(O+1,0,x):A.push(x),o(m(A),k.path,_)},[o,m,k]),b=W.useCallback((C,O)=>{C&&C.preventDefault();let _;if(h.current){_={};for(const A of Object.keys(h.current)){const N=parseInt(A,10);N<O?yt(_,[N],h.current[N]):N>O&&yt(_,[N-1],h.current[N])}}const x=d.current.filter((A,N)=>N!==O);o(m(x),k.path,_)},[o,m,k]),w=W.useCallback((C,O,_)=>{C&&(C.preventDefault(),C.currentTarget.blur());let x;if(h.current){x={};for(const I of Object.keys(h.current)){const F=parseInt(I,10);F===O?yt(x,[_],h.current[O]):F===_?yt(x,[O],h.current[_]):yt(x,[I],h.current[F])}}function A(){const I=d.current.slice();return I.splice(O,1),I.splice(_,0,d.current[O]),I}const N=A();o(m(N),k.path,x)},[o,m,k]),E=W.useCallback((C,O,_,x)=>{const A=typeof O.at(-1)=="number";o(A&&C===void 0?null:C,O,_,x)},[o]),p=W.useCallback(C=>{o(C,k.path,void 0,k==null?void 0:k[pt])},[o,k]),g={...e,formData:s,fieldPathId:k,onSelectChange:p},S={...e,handleAddItem:v,handleCopyItem:y,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:E};if(!(Mi in t)){if(!c.useFallbackUiForUnsupportedType){const O=ke(r),_=xe("UnsupportedFieldTemplate",n,O);return j.jsx(_,{schema:t,fieldPathId:i,reason:u(Le.MissingItems),registry:n})}const C={...t,[Mi]:{type:void 0}};g.schema=C,S.schema=C}return l.isMultiSelect(g.schema)?j.jsx(MT,{...g}):mk(r)?j.jsx(LT,{...g}):Hd(g.schema)?j.jsx(UT,{...S}):l.isFilesArray(g.schema,r)?j.jsx(qT,{...g}):j.jsx($T,{...S})}function HT(e){const{schema:t,name:r,uiSchema:a,fieldPathId:i,formData:n,registry:s,required:o,disabled:c,readonly:l,hideError:u,autofocus:f,title:m,onChange:d,onFocus:h,onBlur:k,rawErrors:v}=e,{title:y}=t,{widgets:b,translateString:w,globalUiOptions:E}=s,{widget:p="checkbox",title:g,label:S=!0,enumNames:C,...O}=ke(a,E),_=On(t,p,b),x=w(Le.YesLabel),A=w(Le.NoLabel);let N;const I=g??y??m??r;if(Array.isArray(t.oneOf))N=Ja({oneOf:t.oneOf.map($=>{if(Xe($))return{...$,title:$.title||($.const===!0?x:A)}}).filter($=>$)},a);else{const $=t.enum??[!0,!1];!C&&$.length===2&&$.every(Y=>typeof Y=="boolean")?N=[{value:$[0],label:$[0]?x:A},{value:$[1],label:$[1]?x:A}]:N=Ja({enum:$},a)}const F=W.useCallback(($,Y,Z)=>d($,i.path,Y,Z),[d,i]);return j.jsx(_,{options:{...O,enumOptions:N},schema:t,uiSchema:a,id:i.$id,name:r,onChange:F,onFocus:h,onBlur:k,label:I,hideLabel:!S,value:n,required:o,disabled:c,readonly:l,hideError:u,registry:s,autofocus:f,rawErrors:v,htmlName:i.name})}function WT(e){const[t,r]=W.useState(!1),{name:a,registry:i,schema:n,uiSchema:s,fieldPathId:o}=e,{globalUiOptions:c}=i,l=ke(s,c),u=xe("CyclicSchemaExpandTemplate",i,l);if(!t)return j.jsx(u,{registry:i,schema:n,uiSchema:s,name:a,fieldPathId:o,onExpand:()=>r(!0)});const{fields:f}=i,{SchemaField:m}=f;return j.jsx(m,{...e,schema:{...n,[Ed]:!1}})}function KT(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function GT(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function JT(e,t){switch(t){case"string":return String(e);case"number":{const r=Number(e);return Number.isNaN(r)?0:r}case"boolean":return!!e;default:return e}}function YT(e){const{id:t,formData:r,displayLabel:a=!0,schema:i,name:n,uiSchema:s,required:o,disabled:c=!1,readonly:l=!1,onBlur:u,onFocus:f,registry:m,fieldPathId:d,onChange:h,errorSchema:k}=e,{translateString:v,fields:y,globalFormOptions:b}=m,[w,E]=W.useState(GT(r)),p=ke(s),g=Ji(cn("__internal_type_selector",b,d)),S=v(Le.Type),C=W.useMemo(()=>KT(S),[S]),O=A=>{A!=null&&(E(A),h(JT(r,A),d.path,k,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:A=v(Le.UnknownFieldType,[String(i.type)])}=e,N=xe("UnsupportedFieldTemplate",m,p);return j.jsx(N,{schema:i,fieldPathId:d,reason:A,registry:m})}const _=xe("FallbackFieldTemplate",m,p),{SchemaField:x}=y;return j.jsx(_,{schema:i,registry:m,typeSelector:j.jsx(x,{fieldPathId:g,name:`${n}__fallback_type`,schema:C,formData:w,onChange:O,onBlur:u,onFocus:f,registry:m,hideLabel:!a,disabled:c,readonly:l,required:o},r?Br(r):"__empty__"),schemaField:j.jsx(x,{...e,schema:{type:w,title:v(Le.Value),...w==="object"&&{additionalProperties:!0}}})})}function XT(e,t){return Vi(t,function(r){return e[r]})}function ZT(e){return e==null?[]:XT(e,nn(e))}var QT=Math.max;function eP(e,t,r,a){e=ai(e)?e:ZT(e),r=r?Lb(r):0;var i=e.length;return r<0&&(r=QT(i+r,0)),ba(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Hb(e,t,r)>-1}var tP=Math.min;function rP(e,t,r){for(var a=Vd,i=e[0].length,n=e.length,s=n,o=Array(n),c=1/0,l=[];s--;){var u=e[s];c=tP(u.length,c),o[s]=i>=120&&u.length>=120?new Ga(s&&u):void 0}u=e[0];var f=-1,m=o[0];e:for(;++f<i&&l.length<c;){var d=u[f],h=d;if(d=d!==0?d:0,!(m?Us(m,h):a(l,h))){for(s=n;--s;){var k=o[s];if(!(k?Us(k,h):a(e[s],h)))continue e}m&&m.push(h),l.push(d)}}return l}function nP(e){return $s(e)?e:[]}var ph=cc(function(e){var t=Vi(e,nP);return t.length&&t[0]===e[0]?rP(t):[]});function aP(e,t){return uc(e,t)}function jk(e){return e===void 0}var Cn;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(Cn||(Cn={}));var Is;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(Is||(Is={}));const iP=/^\$lookup=(.+)/,hu="layoutGrid";function hh(e,t){return e??t}function sP(e){return/^\d+?$/.test(e)}const da=Gd();function oP(e,t,r,a,i){const n=oe(r,[Of],{}),s=oe(r,e),o={...oe(s,[ca],{}),...t,...n},c={...s};Rt(o)||yt(c,[ca],o),Rt(n)||yt(c,[Of],n);let{readonly:l}=ke(c);return(i===!0||jk(l)&&a===!0)&&(l=!0,Ge(o,Jc)?yt(c,[ca,Jc],!0):yt(c,`ui:${Jc}`,!0)),{fieldUiSchema:c,uiReadonly:l}}function lP(e,t,r="$0m3tH1nG Un3xP3cT3d"){const a=jf([t]).sort(),i=jf([r]).sort();switch(e){case Is.ALL:return aP(a,i);case Is.SOME:return ph(a,i).length>0;case Is.NONE:return ph(a,i).length===0;default:return!1}}function gc(e,t,r){let a={},i=e[t];if(ya(i)){const{children:n,className:s,...o}=i;if(i=n,s){const l=s.split(" ").map(u=>Zd(r,u,u)).join(" ");a={...o,className:l}}else a=o}if(!Array.isArray(i))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:i,gridProps:a}}function gh(e,t,r){let a,i=t;if(sP(r)&&e&&(e==null?void 0:e.type)==="array"&&Ge(e,Mi)){const n=Number(r),s=e[Mi];Array.isArray(s)?n>s.length?a=Ob(s):a=s[n]:a=s,i={[pt]:t[pt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:a,fieldPathId:i}}function cP(e,t,r,a,i){const{schemaUtils:n,globalFormOptions:s}=e;let o=r,c=i;const l=t.split("."),u=l.pop();let f=n.retrieveSchema(o,a),m=a,d=f.readOnly;l.forEach(v=>{if(c=cn(v,s,c),Ge(f,Ye))o=oe(f,[Ye,v],{});else if(f&&(Ge(f,Fe)||Ge(f,We))){const y=Ge(f,Fe)?Fe:We,b=n.findSelectedOptionInXxxOf(f,v,y,m);o=oe(b,[Ye,v],{})}else{const y=gh(f,c,v);o=y.rawSchema??{},c=y.fieldPathId}m=oe(m,v,{}),f=n.retrieveSchema(o,m),d=hh(f.readOnly,d)});let h,k=!1;if(Rt(f)&&(f=void 0),f&&u){if(f&&(Ge(f,Fe)||Ge(f,We))){const y=Ge(f,Fe)?Fe:We;f=n.findSelectedOptionInXxxOf(f,u,y,m)}c=cn(u,s,c),k=f!==void 0&&Array.isArray(f.required)&&eP(f.required,u);const v=gh(f,c,u);if(v.rawSchema?(f=v.rawSchema,c=v.fieldPathId):(f=oe(f,[Ye,u]),f=f&&n.retrieveSchema(f)),d=hh(f==null?void 0:f.readOnly,d),f&&(Ge(f,Fe)||Ge(f,We))){const y=Ge(f,Fe)?Fe:We,b=Jr(f);h={options:f[y],hasDiscriminator:!!b}}}return{schema:f,isRequired:k,isReadonly:d,optionsInfo:h,fieldPathId:c}}function uP(e,t){let r=e;return ba(r)&&(r=Zd(t,r)),Ys(r)?r:null}function fP(e,t){let r,a=null,i={},n;if(ba(t)||jk(t))r=t??"";else{const{name:s="",render:o,...c}=t;r=s,i=c,Rt(i)||NT(i,(l,u)=>{if(ba(l)){const f=iP.exec(l);if(Array.isArray(f)&&f.length>1){const m=f[1];i[u]=Zd(e,m,m)}}}),a=uP(o,e),!s&&a&&(n=j.jsx(a,{...c,"data-testid":da.uiComponent}))}return{name:r,UIComponent:a,uiProps:i,rendered:n}}function yc(e){const{childrenLayoutGridSchemaId:t,...r}=e,{registry:a,schema:i,formData:n}=r,{schemaUtils:s}=a,o=s.retrieveSchema(i,n);return t.map(c=>W.createElement(tm,{...r,key:`layoutGrid-${Br(c)}`,schema:o,layoutGridSchema:c}))}function dP(e){const{layoutGridSchema:t,...r}=e,{formData:a,registry:i}=r,{children:n,gridProps:s}=gc(t,Cn.CONDITION,i),{operator:o,field:c="",value:l}=s,u=oe(a,c,null);return lP(o,u,l)?j.jsx(yc,{...r,childrenLayoutGridSchemaId:n}):null}function mP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:s}=gc(t,Cn.COLUMN,a),o=ke(i),c=xe("GridTemplate",a,o);return j.jsx(c,{column:!0,"data-testid":da.col,...s,children:j.jsx(yc,{...r,childrenLayoutGridSchemaId:n})})}function pP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:s}=gc(t,Cn.COLUMNS,a),o=ke(i),c=xe("GridTemplate",a,o);return n.map(l=>j.jsx(c,{column:!0,"data-testid":da.col,...s,children:j.jsx(yc,{...r,childrenLayoutGridSchemaId:[l]})},`column-${Br(l)}`))}function hP(e){const{layoutGridSchema:t,...r}=e,{registry:a,uiSchema:i}=r,{children:n,gridProps:s}=gc(t,Cn.ROW,a),o=ke(i),c=xe("GridTemplate",a,o);return j.jsx(c,{...s,"data-testid":da.row,children:j.jsx(yc,{...r,childrenLayoutGridSchemaId:n})})}function gP(e){const{gridSchema:t,schema:r,uiSchema:a,errorSchema:i,fieldPathId:n,onBlur:s,onFocus:o,formData:c,readonly:l,registry:u,layoutGridSchema:f,...m}=e,{onChange:d}=m,{fields:h}=u,{SchemaField:k,LayoutMultiSchemaField:v}=h,y=fP(u,t),{name:b,UIComponent:w,uiProps:E}=y,{schema:p,isRequired:g,isReadonly:S,optionsInfo:C,fieldPathId:O}=cP(u,b,r,c,n),_=Ji(O);if(y.rendered)return y.rendered;if(p){const x=C!=null&&C.hasDiscriminator?v:k,{fieldUiSchema:A,uiReadonly:N}=oP(b,E,a,S,l);return j.jsx(x,{"data-testid":C!=null&&C.hasDiscriminator?da.layoutMultiSchemaField:da.field,...m,name:b,required:g,readonly:N,schema:p,uiSchema:A,errorSchema:oe(i,b),fieldPathId:_,formData:oe(c,b),onChange:d,onBlur:s,onFocus:o,options:C==null?void 0:C.options,registry:u})}return w?j.jsx(w,{"data-testid":da.uiComponent,...m,name:b,required:g,formData:c,readOnly:!!S||l,errorSchema:i,uiSchema:a,schema:r,fieldPathId:n,onBlur:s,onFocus:o,registry:u,...E}):null}function tm(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const a=ke(t);if(!r&&hu in a&&Xe(a[hu])&&(r=a[hu]),Xe(r)){if(Cn.ROW in r)return j.jsx(hP,{...e,layoutGridSchema:r});if(Cn.COLUMN in r)return j.jsx(mP,{...e,layoutGridSchema:r});if(Cn.COLUMNS in r)return j.jsx(pP,{...e,layoutGridSchema:r});if(Cn.CONDITION in r)return j.jsx(dP,{...e,layoutGridSchema:r})}return j.jsx(gP,{...e,gridSchema:r})}tm.TEST_IDS=da;function yP(e){const{fieldPathId:t,title:r,schema:a,uiSchema:i,required:n,registry:s,name:o}=e,c=ke(i,s.globalUiOptions),{title:l}=c,{title:u}=a,f=l||r||u||o;if(!f)return null;const m=xe("TitleFieldTemplate",s,c);return j.jsx(m,{id:pc(t),title:f,required:n,schema:a,uiSchema:i,registry:s})}function gu(e,t,r){const a="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const s=oe(n,[Ye,t]);return oe(s,Ha,oe(s,mr,a))===r})}function yh(e,t,r,a,i){const n=t.map(c=>r.retrieveSchema(c,i));let s=e;Ge(e,Fe)?s={...e,[Fe]:n}:Ge(e,We)&&(s={...e,[We]:n});const o=Ja(s,a);if(!o)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(s)}`);return o}function vP(e){var z;const{name:t,baseType:r,disabled:a=!1,formData:i,fieldPathId:n,onBlur:s,onChange:o,options:c,onFocus:l,registry:u,uiSchema:f,schema:m,autofocus:d,readonly:h,required:k,errorSchema:v,hideError:y=!1}=e,{widgets:b,schemaUtils:w,globalUiOptions:E}=u,[p,g]=W.useState(yh(m,c,w,f,i)),S=oe(n,pt),C=Jr(m),O=xe("FieldErrorTemplate",u,c),_=xe("FieldTemplate",u,c),x=Br(m),A=Br(c),N=f?Br(f):"",I=i?Br(i):"";W.useEffect(()=>{g(yh(m,c,w,f,i))},[x,A,w,N,I]);const{widget:F=C?"radio":"select",title:$="",placeholder:Y="",optionsSchemaSelector:Z=C,hideError:ie,...P}=ke(f);if(!Z)throw new Error("No selector field provided for the LayoutMultiSchemaField");const D=oe(i,Z);let U=oe((z=p[0])==null?void 0:z.schema,[Ye,Z],{});const T=gu(p,Z,D);U=U!=null&&U.type?U:{...U,type:(T==null?void 0:T.type)||r};const R=On(U,F,b),M=ie===void 0?y:!!ie,B=oe(v,[Zt],[]),V=qs(v,[Zt]),K=w.getDisplayLabel(m,f,E),J=H=>{if(a||h)return;const G=gu(p,Z,H),te=gu(p,Z,D);let ae=w.sanitizeDataForNewSchema(G,te,i);ae&&G&&(ae=w.getDefaultFormState(G,ae,"excludeObjectChildren")),ae&&yt(ae,Z,H),o(ae,n.path,void 0,S)},Q={enumOptions:p,...P},q=!M&&B.length>0?j.jsx(O,{fieldPathId:n,schema:m,errors:B,registry:u}):void 0;return j.jsx(_,{fieldPathId:n,id:S,schema:m,label:($||m.title)??"",disabled:a||Array.isArray(p)&&Rt(p),uiSchema:f,required:k,readonly:!!h,registry:u,displayLabel:K,errors:q,onChange:o,onKeyRename:Al,onKeyRenameBlur:Al,onRemoveProperty:Al,children:j.jsx(R,{id:S,name:t,schema:m,label:($||m.title)??"",disabled:a||Array.isArray(p)&&Rt(p),uiSchema:f,autofocus:d,readonly:h,required:k,registry:u,multiple:!1,rawErrors:B,hideError:M,hideLabel:!K,errorSchema:V,placeholder:Y,onChange:J,onBlur:s,onFocus:l,value:D,options:Q,htmlName:n.name})})}function vh(e){const{name:t,disabled:r=!1,errorSchema:a={},formData:i,fieldPathId:n,onBlur:s,onChange:o,onFocus:c,options:l,readonly:u,registry:f,required:m=!1,schema:d,uiSchema:h}=e,{schemaUtils:k}=f,v=Br(i??null),y=W.useMemo(()=>l.map(ae=>k.retrieveSchema(ae,i)),[l,k,v]),[b,w]=W.useState(()=>{const ae=Jr(d);return k.getClosestMatchingOption(i,y,0,ae)}),E=W.useRef(!1),p=W.useRef(i),g=W.useRef(n.$id);W.useEffect(()=>{const ae=p.current,me=g.current;if(p.current=i,g.current=n.$id,!Je(i,ae)&&n.$id===me){if(E.current){E.current=!1;return}const ve=Jr(d),Ce=k.getClosestMatchingOption(i,y,b,ve);Ce!==b&&w(Ce)}});const S=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,C=W.useCallback(ae=>{if(r||u)return;const me=ae!==void 0?parseInt(ae,10):-1;if(me===b)return;const ve=me>=0?y[me]:void 0,Ce=b>=0?y[b]:void 0;let Se=k.sanitizeDataForNewSchema(ve,Ce,i);ve&&(Se=k.getDefaultFormState(ve,Se,"excludeObjectChildren")),w(me),E.current=!0,o(Se,n.path,void 0,S)},[b,y,r,u,k,i,n,o,S]),{widgets:O,fields:_,translateString:x,globalUiOptions:A}=f,{SchemaField:N}=_,I=xe("MultiSchemaFieldTemplate",f,A),F=no(f,d,m,h),$=Gi(i),{widget:Y="select",placeholder:Z,autofocus:ie,autocomplete:P,title:D=d.title,...U}=ke(h,A),T=On({type:"number"},Y,O),R=oe(a,Zt,[]),M=qs(a,[Zt]),B=k.getDisplayLabel(d,h,A),V=b>=0&&y[b]||null;let K;if(V){const{required:ae,type:me}=d,ve={};ae&&(ve.required=ae),me!==void 0&&!("type"in V)&&(ve.type=me),K=Object.keys(ve).length>0?Un(ve,V):V}let J=[];Fe in d&&h&&Fe in h?Array.isArray(h[Fe])?J=h[Fe]:console.warn(`uiSchema.oneOf is not an array for "${D||t}"`):We in d&&h&&We in h&&(Array.isArray(h[We])?J=h[We]:console.warn(`uiSchema.anyOf is not an array for "${D||t}"`));let Q=h;b>=0&&J.length>b&&(Q=J[b]);const q=D?Le.TitleOptionPrefix:Le.OptionPrefix,z=D?[D]:[],H=y.map((ae,me)=>{const{title:ve=ae.title}=ke(J[me]);return{label:ve||x(q,z.concat(String(me+1))),value:me}}),G=!F||$?j.jsx(T,{id:S,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:C,onBlur:s,onFocus:c,disabled:r||Rt(H),multiple:!1,rawErrors:R,errorSchema:M,value:b>=0?b:void 0,options:{enumOptions:H,...U},registry:f,placeholder:Z,autocomplete:P,autofocus:ie,label:D??t,hideLabel:!B,readonly:u}):void 0,te=K&&K.type!=="null"&&j.jsx(N,{...e,schema:K,uiSchema:Q})||null;return j.jsx(I,{schema:d,registry:f,uiSchema:h,selector:G,optionSchemaField:te})}function bP(e){const{formData:t,onChange:r,fieldPathId:a}=e;return W.useEffect(()=>{t===void 0&&r(null,a.path)},[a,t,r]),null}const kP=/\.([0-9]*0)*$/,wP=/[0.]0*$/;function SP(e){const{registry:t,onChange:r,formData:a,value:i}=e,[n,s]=W.useState(i),{StringField:o}=t.fields,c=Yv(),l=c==="."?"\\.":c;let u=a;const f=W.useCallback((d,h,k,v)=>{s(d);const y=typeof d=="string"?d.replace(c,"."):d,b=`${y}`.startsWith(".")?`0${y}`:y,w=typeof b=="string"&&kP.exec(b)?np(b.replace(wP,"")):np(b);r(w,h,k,v)},[r,c]);if(typeof n=="string"&&typeof u=="number"){const d=new RegExp(`^(${String(u).replace(".",l)})?${l}?0*$`);n.match(d)&&(u=n)}let m=u;if(typeof u=="number"&&c!=="."){const{schema:d,uiSchema:h}=e,{schemaUtils:k}=t,y=(k.isSelect(d)?Ja(d,h):void 0)?"select":"text",{widget:b=y}=ke(h);b!=="radio"&&b!=="select"&&b!=="hidden"&&(m=String(u).replace(".",c))}return j.jsx(o,{...e,formData:m,onChange:f})}var Oo;function EP(e){if(!Oo){if(typeof document>"u")return;Oo=document.createElement("textarea")}var t=`&${e};`;Oo.innerHTML=t;var r=Oo.value;return r===t?void 0:r}var ce=32,de=9,wa=13,ye=10,it=96,qt=126,It=91,Kn=94,Ue=62,Xr=35,Uf=37,Me=45,Vr=61,Bt=92,Nt=42,_t=95,mt=60,Dk=64,un=93,pr=33,vc=38,ar=58,Bf=70,Ya=102,Vl=104,Ba=119,Ri=116,Vf=112,Fk=115,xP=160,CP=12,AP=44,Hl=59,Yi=63,Hr=46,Pt=47,Xa=39,Za=34,Sa=43,Ut=124,Qa=123,rm=125,an=40,ln=41,_P=78,OP=110,TP=79,PP=111,Mk=120,Lk=88,Hf=30,ze=48,$e=57,Te=65,Ne=90,lt=97,vt=122,bc=128,rn=32,IP={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},se=IP;function RP(e){if(!kh(e,"---"))return null;let t=3;for(;t<e.length&&(e[t]===" "||e[t]===" ");)t++;if(t<e.length&&e[t]==="\r"&&t++,t>=e.length||e[t]!==`
|
|
51
|
-
`)return null;t++;let r=!1;for(;t<e.length;){let
|
|
52
|
-
`&&e[t]!=="\r";)t++;if(t>=e.length)break;let
|
|
53
|
-
`&&t++,
|
|
54
|
-
`),
|
|
55
|
-
`||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(
|
|
75
|
+
*/var fh;function oF(){return fh||(fh=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),s=Symbol.for("react.context"),o=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),p=!1,b=!1,k=!1,g=!1,v=!1,w;w=Symbol.for("react.module.reference");function C(K){return!!(typeof K=="string"||typeof K=="function"||K===r||K===a||v||K===i||K===u||K===c||g||K===d||p||b||k||typeof K=="object"&&K!==null&&(K.$$typeof===m||K.$$typeof===f||K.$$typeof===n||K.$$typeof===s||K.$$typeof===l||K.$$typeof===w||K.getModuleId!==void 0))}function h(K){if(typeof K=="object"&&K!==null){var ie=K.$$typeof;switch(ie){case e:var re=K.type;switch(re){case r:case a:case i:case u:case c:return re;default:var ue=re&&re.$$typeof;switch(ue){case o:case s:case l:case m:case f:case n:return ue;default:return ie}}case t:return ie}}}var y=s,S=n,A=e,_=l,x=r,E=m,O=f,j=t,T=a,F=i,q=u,J=c,Y=!1,te=!1;function P(K){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(K){return te||(te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(K){return h(K)===s}function I(K){return h(K)===n}function R(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function M(K){return h(K)===l}function z(K){return h(K)===r}function B(K){return h(K)===m}function H(K){return h(K)===f}function G(K){return h(K)===t}function X(K){return h(K)===a}function $(K){return h(K)===i}function L(K){return h(K)===u}function W(K){return h(K)===c}tt.ContextConsumer=y,tt.ContextProvider=S,tt.Element=A,tt.ForwardRef=_,tt.Fragment=x,tt.Lazy=E,tt.Memo=O,tt.Portal=j,tt.Profiler=T,tt.StrictMode=F,tt.Suspense=q,tt.SuspenseList=J,tt.isAsyncMode=P,tt.isConcurrentMode=D,tt.isContextConsumer=U,tt.isContextProvider=I,tt.isElement=R,tt.isForwardRef=M,tt.isFragment=z,tt.isLazy=B,tt.isMemo=H,tt.isPortal=G,tt.isProfiler=X,tt.isStrictMode=$,tt.isSuspense=L,tt.isSuspenseList=W,tt.isValidElementType=C,tt.typeOf=h})()),tt}var dh;function lF(){return dh||(dh=1,process.env.NODE_ENV==="production"?Ds.exports=sF():Ds.exports=oF()),Ds.exports}var uF=lF();const mh=Wr(uF),Lu={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 cF(e){var t;let r=ae(e,"MergedWidget");if(!r){const i=((t=e.defaultProps)===null||t===void 0?void 0:t.options)||{};r=({options:a,...n})=>N.jsx(e,{options:{...i,...a},...n}),lt(e,"MergedWidget",r)}return r}function Kr(e,t,r={}){const i=vr(e);if(typeof t=="function"||t&&mh.isForwardRef(V.createElement(t))||mh.isMemo(t))return cF(t);if(typeof t!="string")throw new Error(`Unsupported widget definition: ${typeof t} in schema: ${JSON.stringify(e)}`);if(t in r){const a=r[t];return Kr(e,a,r)}if(typeof i=="string"){if(!(i in Lu))throw new Error(`No widget for type '${i}' in schema: ${JSON.stringify(e)}`);if(t in Lu[i]){const a=r[Lu[i][t]];return Kr(e,a,r)}}throw new Error(`No widget '${t}' for type '${i}' in schema: ${JSON.stringify(e)}`)}function Gk(e){let t=0;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);t=(t<<5)-t+i,t&=t}return t.toString(16)}function Jk(e){const t=new Set;return JSON.stringify(e,(r,i)=>(t.add(r),i)),JSON.stringify(e,Array.from(t).sort())}function fr(e){return Gk(Jk(e))}function fF(e){return Gk(Jk(e))}function dF(e,t,r={}){try{return Kr(e,t,r),!0}catch(i){const a=i;if(a.message&&(a.message.startsWith("No widget")||a.message.startsWith("Unsupported widget")))return!1;throw i}}function Si(e,t){return`${Nn(e)?e:e[nt]}__${t}`}function $n(e){return Si(e,"description")}function Cd(e){return Si(e,"error")}function Ed(e){return Si(e,"examples")}function Ad(e){return Si(e,"help")}function _l(e){return Si(e,"title")}function Rr(e,t=!1){const r=t?` ${Ed(e)}`:"";return`${Cd(e)} ${$n(e)} ${Ad(e)}${r}`}function Pl(e,t){return`${e}-${t}`}function ir(e,t){return Si(e,t)}function qu(e,t){return Si(e,`optional${t}`)}function ca(e){return!ta(e)&&(!Ue(e)||Array.isArray(e)||!wt(e))}function mF(e,t){const{rootSchema:r,schemaUtils:i}=e;if(ze(t,r))return!0;if(at in r){const a=i.retrieveSchema(r);return ze(t,a)}return!1}function pF(e,t,r){return t?r:e}function hF(e){return e?new Date(e).toJSON():void 0}function gF(e,t,r,i=!1){!i&&Array.isArray(r)&&t.default!==void 0&&Bk(t.default,r,i)===void 0&&console.error(`The schema default value "${t.default}" is not one of the values in the enum options for "${e}"`)}function Od(e,t,r){const i=[QO];return qe(e,lp)&&i.unshift(lp),ae(e,[...i,t],r)}function yF(e,t){if(!Array.isArray(t))return e;const r=c=>c.reduce((f,m)=>(f[m]=!0,f),{}),i=c=>c.length>1?`properties '${c.join("', '")}'`:`property '${c[0]}'`,a=r(e),n=t.filter(c=>c==="*"||a[c]),s=r(n),o=e.filter(c=>!s[c]),l=n.indexOf("*");if(l===-1){if(o.length)throw new Error(`uiSchema order list does not contain ${i(o)}`);return n}if(l!==n.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const u=[...n];return u.splice(l,1,...o),u}function zu(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 vF(e,t,r){var i,a;const n=(i=e[Ro])!==null&&i!==void 0?i:e[at],s=r.uiSchemaDefinitions,o=n&&s?s[n]:void 0;let l;if(o?!t||wt(t)?l={...o}:l=Fn(o,t):l=t||{},s){let u=e;if(n&&e[at]&&!e[Ro])try{u=Ya(n,r.rootSchema)}catch(c){return console.warn(`could not resolve $ref in resolveUiSchema:
|
|
76
|
+
`,c),l}for(const c of[Ae,Le]){const f=u[c];if(Array.isArray(f)&&f.length>0){const m=l[c],d=Array.isArray(m)?[...m]:[];let p=!1;for(let b=0;b<f.length;b++){const k=f[b],g=(a=k==null?void 0:k[Ro])!==null&&a!==void 0?a:k==null?void 0:k[at];if(g&&g in s){const v=d[b]||{};d[b]=Fn(s[g],v),p=!0}}p&&(l[c]=d)}}}return l}function $a(e){var t,r,i;if(e.const||((t=e.enum)===null||t===void 0?void 0:t.length)===1&&e.enum[0]===!0)return!0;if(((r=e.anyOf)===null||r===void 0?void 0:r.length)===1)return $a(e.anyOf[0]);if(((i=e.oneOf)===null||i===void 0?void 0:i.length)===1)return $a(e.oneOf[0]);if(e.allOf){const a=n=>$a(n);return e.allOf.some(a)}return!1}function bF({hideLabel:e,id:t,multiple:r,options:i,registry:a,uiSchema:n,value:s}){var o,l;if(r||e)return null;const{label:u=!0}=me(n,a.globalUiOptions);if(!u)return null;const c=(o=i.enumOptions)===null||o===void 0?void 0:o.find(({value:d})=>ua(d,s)),f=(l=c==null?void 0:c.schema)===null||l===void 0?void 0:l.description;if(!f)return null;const m=ye("DescriptionFieldTemplate",a,i);return N.jsx(m,{id:$n(t),description:f,schema:c.schema,uiSchema:n,registry:a})}function uf(e,t){if(Object.is(e,t))return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let a=0;a<r.length;a+=1){const n=r[a];if(!Object.hasOwn(t,n)||!Object.is(e[n],t[n]))return!1}return!0}function kF(e,t,r,i="customDeep"){if(i==="always")return!0;if(i==="shallow"){const{props:s,state:o}=e;return!uf(s,t)||!uf(o,r)}const{props:a,state:n}=e;return!ze(a,t)||!ze(n,r)}function ph(e){const t=hk(e.map(r=>Ue(r)?vr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function hs(e,t,r,i){const{enableOptionalDataFieldForType:a=[]}=me(i,e.globalUiOptions);let n;return Le in t&&Array.isArray(t[Le])?n=ph(t[Le]):Ae in t&&Array.isArray(t[Ae])?n=ph(t[Ae]):n=vr(t),!mF(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!a.find(s=>s===n)}function hh(e,t=!0){const{year:r,month:i,day:a,hour:n=0,minute:s=0,second:o=0}=e,l=Date.UTC(r,i-1,a,n,s,o),u=new Date(l).toJSON();return t?u:u.slice(0,10)}function _d(e,t=[]){if(!e)return[];let r=[];return Nt in e&&(r=r.concat(e[Nt].map(i=>{const a=`.${t.join(".")}`;return{property:a,message:i,stack:`${a} ${i}`}}))),Object.keys(e).reduce((i,a)=>{if(a!==Nt){const n=e[a];if(jn(n))return i.concat(_d(n,[...t,a]))}return i},r)}function Yk(e){return jt(e)?sa(e,Rn):os(e)?[e]:cd(Pb(nd(e)))}function wF(e){const t=new Hk;return e.length&&e.forEach(r=>{const{property:i,message:a}=r,n=i==="."?[]:Yk(i);n.length>0&&n[0]===""&&n.splice(0,1),a&&t.addErrors(a,n)}),t.ErrorSchema}function Tr(e,t,r,i){const a=Array.isArray(r)?r:r==null?void 0:r.path,n=e===""?[]:[e],s=a?a.concat(...n):n,o=[t.idPrefix,...s].join(t.idSeparator);let l;return t.nameGenerator&&s.length>0&&(l=t.nameGenerator(s,t.idPrefix,i)),{path:s,[nt]:o,...l!==void 0&&{name:l}}}function Xk(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const i=e[r];return jn(i)?{...t,[r]:Xk(i)}:{...t,[r]:i}},{})}function xF(e){return Object.values(e).every(t=>t!==-1)}function SF(e){const{className:t="form-control",type:r,range:i,value:a,select:n,rootId:s,name:o,disabled:l,readonly:u,autofocus:c,registry:f,onBlur:m,onFocus:d}=e,p=`${s}_${r}`,{SelectWidget:b}=f.widgets,k=V.useCallback(g=>n(r,g),[n,r]);return N.jsx(b,{schema:{type:"integer"},id:p,name:o,className:t,options:{enumOptions:$k(i[0],i[1])},placeholder:r,value:a,disabled:l,readonly:u,autofocus:c,onChange:k,onBlur:m,onFocus:d,registry:f,label:"","aria-describedby":Rr(s)})}function CF(e){const{time:t=!1,disabled:r=!1,readonly:i=!1,options:a,onChange:n,value:s}=e,[o,l]=V.useState(zu(s,t));V.useEffect(()=>{l(zu(s,t))},[t,s]);const u=V.useCallback((d,p)=>{const b={...o,[d]:typeof p>"u"?-1:p};xF(b)?n(hh(b,t)):l(b)},[o,n,t]),c=V.useCallback(d=>{d.preventDefault(),!(r||i)&&n(void 0)},[r,i,n]),f=V.useCallback(d=>{if(d.preventDefault(),r||i)return;const p=zu(new Date().toJSON(),t);n(hh(p,t))},[r,i,t,n]);return{elements:V.useMemo(()=>rF(o,t,a.yearsRange,a.format),[o,t,a.yearsRange,a.format]),handleChange:u,handleClear:c,handleSetNow:f}}function fa(e){const t=V.useRef(e);return ze(e,t.current)||(t.current=e),t.current}function EF(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function AF(e){const{name:t,size:r,type:i}=e;return new Promise((a,n)=>{const s=new window.FileReader;s.onerror=n,s.onload=o=>{var l;typeof((l=o.target)===null||l===void 0?void 0:l.result)=="string"?a({dataURL:EF(o.target.result,t),name:t,size:r,type:i}):a({dataURL:null,name:t,size:r,type:i})},s.readAsDataURL(e)})}async function OF(e){return Promise.all(Array.from(e).map(AF))}function gh(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:i,name:a}=HN(r);return[...t,{dataURL:r,name:a,size:i.size,type:i.type}]}catch{return t}},[])}function _F(e,t,r=!1){const i=V.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),a=V.useMemo(()=>Array.isArray(e)?gh(e):gh([e||""]),[e]),n=V.useCallback(async o=>{const u=(await OF(o)).map(c=>c.dataURL||null);t(r?i.concat(...u):u[0])},[i,r,t]),s=V.useCallback(o=>{if(r){const l=i.filter((u,c)=>c!==o);t(l)}else t(void 0)},[i,r,t]);return{filesInfo:a,handleChange:n,handleRemove:s}}function PF(e){if(!e)return"";const t=new Date(e),r=kn(t.getFullYear(),4),i=kn(t.getMonth()+1,2),a=kn(t.getDate(),2),n=kn(t.getHours(),2),s=kn(t.getMinutes(),2),o=kn(t.getSeconds(),2),l=kn(t.getMilliseconds(),3);return`${r}-${i}-${a}T${n}:${s}:${o}.${l}`}function Ra(e,t,r=!1){if(!t)return e;const{errors:i,errorSchema:a}=e;let n=_d(t),s=t;return wt(a)||(s=Fn(a,t,r?"preventDuplicates":!0),n=[...i].concat(n)),{errorSchema:s,errors:n}}function IF(e){const t=e;for(const r in t)if(Object.hasOwn(t,r)){const i=t[r];r===at&&typeof i=="string"&&i.startsWith("#")?t[r]=Sb+i:t[r]=Pd(i)}return e}function TF(e){return e.map(t=>Pd(t))}function Pd(e){return Array.isArray(e)?TF([...e]):Ue(e)?IF({...e}):e}var _e;(function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.EmptyArray="No items yet. Use the button below to add some.",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.ExpandButton="Expand Cycle",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.OptionalObjectAdd="Add data for optional field",e.OptionalObjectRemove="Remove data for optional field",e.OptionalObjectEmptyMsg="No data for optional field",e.Type="Type",e.Value="Value",e.ClearButton="clear input",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.DeprecatedLabel="%1 (deprecated)",e.CycleDetected='Circular reference ($ref cycle) detected for field "%1". You may choose to expand to the next cycle break',e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)"})(_e||(_e={}));function jF(e,t){var r=jt(e)?od:Ik;return r(e,ak(t))}function RF(e,t){return e==null?!0:Xb(e,t)}function cf(){return Wk("rjsf-array-item-")}function yh(e){return Array.isArray(e)?e.map(t=>({key:cf(),item:t})):[]}function Zk(e){return Array.isArray(e)?e.map(t=>t.item):[]}function NF(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function Qk(e,t,r,i){let{addable:a}=me(i,e.globalUiOptions);return a!==!1&&(t.maxItems!==void 0?a=r.length<t.maxItems:a=!0),a}function e1(e,t,r,i){if(typeof e.items=="function")try{return e.items(t,r,i)}catch(a){console.error(`Error executing dynamic uiSchema.items function for item at index ${r}:`,a);return}else return e.items}function FF(e,t){const{schemaUtils:r,globalFormOptions:i}=e;let a=t.items;return i.useFallbackUiForUnsupportedType&&!a?a={}:kd(t)&&JO(t)&&(a=t.additionalItems),r.getDefaultFormState(a)}function DF(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a=[],disabled:n=!1,readonly:s=!1,autofocus:o=!1,required:l=!1,placeholder:u,onBlur:c,onFocus:f,registry:m,rawErrors:d,name:p,onSelectChange:b}=e,{widgets:k,schemaUtils:g,globalFormOptions:v,globalUiOptions:w}=m,C=g.retrieveSchema(t.items,a),h=(i==null?void 0:i.items)??i,y=di(C,h),{widget:S="select",title:A,..._}=me(i,w),x=Kr(t,S,k),E=A??t.title??p,O=g.getDisplayLabel(t,i,w),j=fa(Tr("",v,r,!0));return N.jsx(x,{id:j[nt],name:p,multiple:!0,onChange:b,onBlur:c,onFocus:f,options:{..._,enumOptions:y},schema:t,uiSchema:i,registry:m,value:a,disabled:n,readonly:s,required:l,label:E,hideLabel:!O,placeholder:u,autofocus:o,rawErrors:d,htmlName:j.name})}function MF(e){const{schema:t,fieldPathId:r,uiSchema:i,disabled:a=!1,readonly:n=!1,autofocus:s=!1,required:o=!1,hideError:l,placeholder:u,onBlur:c,onFocus:f,formData:m=[],registry:d,rawErrors:p,name:b,onSelectChange:k}=e,{widgets:g,schemaUtils:v,globalFormOptions:w,globalUiOptions:C}=d,{widget:h,title:y,...S}=me(i,C),A=Kr(t,h,g),_=y??t.title??b,x=v.getDisplayLabel(t,i,C),E=fa(Tr("",w,r,!0));return N.jsx(A,{id:E[nt],name:b,multiple:!0,onChange:k,onBlur:c,onFocus:f,options:S,schema:t,uiSchema:i,registry:d,value:m,disabled:a,readonly:n,hideError:l,required:o,label:_,hideLabel:!x,placeholder:u,autofocus:s,rawErrors:p,htmlName:E.name})}function LF(e){const{schema:t,uiSchema:r,fieldPathId:i,name:a,disabled:n=!1,readonly:s=!1,autofocus:o=!1,required:l=!1,onBlur:u,onFocus:c,registry:f,formData:m=[],rawErrors:d,onSelectChange:p}=e,{widgets:b,schemaUtils:k,globalFormOptions:g,globalUiOptions:v}=f,{widget:w="files",title:C,...h}=me(r,v),y=Kr(t,w,b),S=C??t.title??a,A=k.getDisplayLabel(t,r,v),_=fa(Tr("",g,i,!0));return N.jsx(y,{options:h,id:_[nt],name:a,multiple:!0,onChange:p,onBlur:u,onFocus:c,schema:t,uiSchema:r,value:m,disabled:n,readonly:s,required:l,registry:f,autofocus:o,rawErrors:d,label:S,hideLabel:!A,htmlName:_.name})}function qF(e){const{itemKey:t,index:r,name:i,disabled:a,hideError:n,readonly:s,registry:o,uiOptions:l,parentUiSchema:u,canAdd:c,canRemove:f=!0,canMoveUp:m,canMoveDown:d,rawItemSchema:p,itemData:b,itemUiSchema:k,parentFieldPathId:g,itemErrorSchema:v,autofocus:w,onBlur:C,onFocus:h,onChange:y,rawErrors:S,totalItems:A,title:_,handleAddItem:x,handleCopyItem:E,handleRemoveItem:O,handleReorderItems:j}=e,{schemaUtils:T,fields:{ArraySchemaField:F,SchemaField:q},globalUiOptions:J,globalFormOptions:Y}=o,te=V.useMemo(()=>T.retrieveSchema(p,b),[T,p,b]),P=V.useMemo(()=>Tr(r,Y,g),[r,Y,g]),D=F||q,U=ye("ArrayFieldItemTemplate",o,l),I=T.getDisplayLabel(te,k,J),{description:R}=me(k),M=!!R||!!te.description,{orderable:z=!0,removable:B=!0,copyable:H=!1}=l,G={moveUp:z&&m,moveDown:z&&d,copy:H&&c,remove:B&&f,toolbar:!1};G.toolbar=Object.keys(G).some(re=>G[re]);const X=V.useCallback(re=>{x(re,r+1)},[x,r]),$=V.useCallback(re=>{E(re,r)},[E,r]),L=V.useCallback(re=>{O(re,r)},[O,r]),W=V.useCallback(re=>{j(re,r,r-1)},[j,r]),K=V.useCallback(re=>{j(re,r,r+1)},[j,r]),ie={children:N.jsx(D,{name:i,title:_,index:r,schema:te,uiSchema:k,formData:b,errorSchema:v,fieldPathId:P,required:NF(te),onChange:y,onBlur:C,onFocus:h,registry:o,disabled:a,readonly:s,hideError:n,autofocus:w,rawErrors:S}),buttonsProps:{fieldPathId:P,disabled:a,readonly:s,canAdd:c,hasCopy:G.copy,hasMoveUp:G.moveUp,hasMoveDown:G.moveDown,hasRemove:G.remove,index:r,totalItems:A,onAddItem:X,onCopyItem:$,onRemoveItem:L,onMoveUpItem:W,onMoveDownItem:K,registry:o,schema:te,uiSchema:k},itemKey:t,className:"rjsf-array-item",disabled:a,hasToolbar:G.toolbar,index:r,totalItems:A,readonly:s,registry:o,schema:te,uiSchema:k,parentUiSchema:u,displayLabel:I,hasDescription:M};return N.jsx(U,{...ie})}const t1=V.memo(qF);function zF(e){const{schema:t,uiSchema:r={},errorSchema:i,fieldPathId:a,formData:n,name:s,title:o,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:f=!1,hideError:m=!1,registry:d,onBlur:p,onFocus:b,rawErrors:k,onChange:g,keyedFormData:v,handleAddItem:w,handleCopyItem:C,handleRemoveItem:h,handleReorderItems:y}=e,S=t.title||o||s,{schemaUtils:A,fields:_,formContext:x,globalUiOptions:E}=d,{OptionalDataControlsField:O}=_,j=V.useMemo(()=>me(r,E),[r,E]),T=V.useMemo(()=>Ue(t.items)?t.items:{},[t.items]),F=V.useMemo(()=>A.retrieveSchema(T),[A,T]),q=V.useMemo(()=>Zk(v),[v]),J=hs(d,t,f,r),Y=ca(n),te=V.useMemo(()=>Qk(d,t,q,r)&&(!J||Y),[d,t,q,r,J,Y]),P=Y?v:[],D=J?" rjsf-optional-array-field":"",U=e.childFieldPathId??a,I=J?N.jsx(O,{...e,fieldPathId:U}):void 0,R={canAdd:te,items:P.map((z,B)=>{const{key:H,item:G}=z,X=G,$=i?i[B]:void 0,L=e1(r,G,B,x),W={itemKey:H,index:B,name:s&&`${s}-${B}`,registry:d,uiOptions:j,parentUiSchema:r,hideError:m,readonly:u,disabled:l,required:f,title:S?`${S}-${B+1}`:void 0,canAdd:te,canMoveUp:B>0,canMoveDown:B<q.length-1,rawItemSchema:T,parentFieldPathId:U,itemErrorSchema:$,itemData:X,itemUiSchema:L,autofocus:c&&B===0,onBlur:p,onFocus:b,rawErrors:k,totalItems:v.length,handleAddItem:w,handleCopyItem:C,handleRemoveItem:h,handleReorderItems:y,onChange:g};return N.jsx(t1,{...W},H)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${F.type}${D}`,disabled:l,fieldPathId:a,uiSchema:r,onAddClick:w,readonly:u,required:f,schema:t,title:S,formData:q,rawErrors:k,registry:d,optionalDataControl:I},M=ye("ArrayFieldTemplate",d,j);return N.jsx(M,{...R})}function $F(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:s,title:o,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:f=!1,hideError:m=!1,registry:d,onBlur:p,onFocus:b,rawErrors:k,keyedFormData:g,onChange:v,handleAddItem:w,handleCopyItem:C,handleRemoveItem:h,handleReorderItems:y}=e;let{formData:S=[]}=e;const A=t.title||o||s,{fields:_,formContext:x,globalUiOptions:E}=d,O=V.useMemo(()=>me(r,E),[r,E]),{OptionalDataControlsField:j}=_,T=hs(d,t,f,r),F=ca(i),q=V.useMemo(()=>Ue(t.items)?t.items:[],[t.items]),J=Ue(t.additionalItems),Y=e.childFieldPathId??n;S.length<q.length&&(S=S.concat(new Array(q.length-S.length)));const te=F?g:[],P=T?" rjsf-optional-array-field":"",D=T?N.jsx(j,{...e,fieldPathId:Y}):void 0,U=Qk(d,t,S,r)&&J&&(!T||F),I={canAdd:U,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:l,fieldPathId:n,formData:i,items:te.map((M,z)=>{const{key:B,item:H}=M,G=H,X=z>=q.length,$=(X&&Ue(t.additionalItems)?t.additionalItems:q[z])||{};let L;X?L=r.additionalItems:Array.isArray(r.items)?L=r.items[z]:L=e1(r,H,z,x);const W=a?a[z]:void 0,K={index:z,itemKey:B,name:s&&`${s}-${z}`,registry:d,uiOptions:O,parentUiSchema:r,hideError:m,readonly:u,disabled:l,required:f,title:A?`${A}-${z+1}`:void 0,canAdd:U,canRemove:X,canMoveUp:z>=q.length+1,canMoveDown:X&&z<S.length-1,rawItemSchema:$,itemData:G,itemUiSchema:L,parentFieldPathId:Y,itemErrorSchema:W,autofocus:c&&z===0,onBlur:p,onFocus:b,rawErrors:k,totalItems:g.length,onChange:v,handleAddItem:w,handleCopyItem:C,handleRemoveItem:h,handleReorderItems:y};return N.jsx(t1,{...K},B)}),onAddClick:w,readonly:u,required:f,registry:d,schema:t,uiSchema:r,title:A,errorSchema:a,rawErrors:k,optionalDataControl:D},R=ye("ArrayFieldTemplate",d,O);return N.jsx(R,{...I})}function UF(e=[]){const t=V.useMemo(()=>fr(e),[e]),[r,i]=V.useState(()=>({formDataHash:t,keyedFormData:yh(e)}));let{keyedFormData:a,formDataHash:n}=r;if(t!==n){const o=Array.isArray(e)?e:[],l=a||[];a=o.length===l.length?l.map((u,c)=>({key:u.key,item:o[c]})):yh(o),n=t,i({formDataHash:n,keyedFormData:a})}const s=V.useCallback(o=>{const l=Zk(o),u=fr(l);return i({formDataHash:u,keyedFormData:o}),l},[]);return{keyedFormData:a,updateKeyedFormData:s}}function BF(e){const{schema:t,uiSchema:r,errorSchema:i,fieldPathId:a,registry:n,formData:s,onChange:o}=e,{globalFormOptions:l,schemaUtils:u,translateString:c}=n,{keyedFormData:f,updateKeyedFormData:m}=UF(s),d=V.useRef(f);d.current=f;const p=V.useRef(i);p.current=i;const b=e.childFieldPathId??a,k=V.useCallback((A,_)=>{A&&A.preventDefault();let x;if(p.current){x={};for(const j of Object.keys(p.current)){const T=parseInt(j,10);_===void 0||T<_?lt(x,[T],p.current[T]):T>=_&<(x,[T+1],p.current[T])}}const E={key:cf(),item:FF(n,t)},O=[...d.current];_!==void 0?O.splice(_,0,E):O.push(E),o(m(O),b.path,x)},[n,t,o,m,b]),g=V.useCallback((A,_)=>{A&&A.preventDefault();let x;if(p.current){x={};for(const j of Object.keys(p.current)){const T=parseInt(j,10);T<=_?lt(x,[T],p.current[T]):T>_&<(x,[T+1],p.current[T])}}const E={key:cf(),item:el(d.current[_].item)},O=[...d.current];_!==void 0?O.splice(_+1,0,E):O.push(E),o(m(O),b.path,x)},[o,m,b]),v=V.useCallback((A,_)=>{A&&A.preventDefault();let x;if(p.current){x={};for(const O of Object.keys(p.current)){const j=parseInt(O,10);j<_?lt(x,[j],p.current[j]):j>_&<(x,[j-1],p.current[j])}}const E=d.current.filter((O,j)=>j!==_);o(m(E),b.path,x)},[o,m,b]),w=V.useCallback((A,_,x)=>{A&&(A.preventDefault(),A.currentTarget.blur());let E;if(p.current){E={};for(const T of Object.keys(p.current)){const F=parseInt(T,10);F===_?lt(E,[x],p.current[_]):F===x?lt(E,[_],p.current[x]):lt(E,[T],p.current[F])}}function O(){const T=d.current.slice();return T.splice(_,1),T.splice(x,0,d.current[_]),T}const j=O();o(m(j),b.path,E)},[o,m,b]),C=V.useCallback((A,_,x,E)=>{const O=typeof _.at(-1)=="number";o(O&&A===void 0?null:A,_,x,E)},[o]),h=V.useCallback(A=>{o(A,b.path,void 0,b==null?void 0:b[nt])},[o,b]),y={...e,formData:s,fieldPathId:b,onSelectChange:h},S={...e,handleAddItem:k,handleCopyItem:g,handleRemoveItem:v,handleReorderItems:w,keyedFormData:f,onChange:C};if(!(Xi in t)){if(!l.useFallbackUiForUnsupportedType){const _=me(r),x=ye("UnsupportedFieldTemplate",n,_);return N.jsx(x,{schema:t,fieldPathId:a,reason:c(_e.MissingItems),registry:n})}const A={...t,[Xi]:{type:void 0}};y.schema=A,S.schema=A}return u.isMultiSelect(y.schema)?N.jsx(DF,{...y}):Fk(r)?N.jsx(MF,{...y}):kd(y.schema)?N.jsx($F,{...S}):u.isFilesArray(y.schema,r)?N.jsx(LF,{...y}):N.jsx(zF,{...S})}function VF(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,registry:s,required:o,disabled:l,readonly:u,hideError:c,autofocus:f,title:m,onChange:d,onFocus:p,onBlur:b,rawErrors:k}=e,{title:g}=t,{widgets:v,translateString:w,globalUiOptions:C}=s,{widget:h="checkbox",title:y,label:S=!0,enumNames:A,..._}=me(i,C),x=Kr(t,h,v),E=w(_e.YesLabel),O=w(_e.NoLabel);let j;const T=y??g??m??r;if(Array.isArray(t.oneOf))j=di({oneOf:t.oneOf.map(q=>{if(Ue(q))return{...q,title:q.title||(q.const===!0?E:O)}}).filter(q=>q)},i);else{const q=t.enum??[!0,!1];!A&&q.length===2&&q.every(J=>typeof J=="boolean")?j=[{value:q[0],label:q[0]?E:O},{value:q[1],label:q[1]?E:O}]:j=di({enum:q},i)}const F=V.useCallback((q,J,Y)=>d(q,a.path,J,Y),[d,a]);return N.jsx(x,{options:{..._,enumOptions:j},schema:t,uiSchema:i,id:a.$id,name:r,onChange:F,onFocus:p,onBlur:b,label:T,hideLabel:!S,value:n,required:o,disabled:l,readonly:u,hideError:c,registry:s,autofocus:f,rawErrors:k,htmlName:a.name})}function HF(e){const[t,r]=V.useState(!1),{name:i,registry:a,schema:n,uiSchema:s,fieldPathId:o}=e,{globalUiOptions:l}=a,u=me(s,l),c=ye("CyclicSchemaExpandTemplate",a,u);if(!t)return N.jsx(c,{registry:a,schema:n,uiSchema:s,name:i,fieldPathId:o,onExpand:()=>r(!0)});const{fields:f}=a,{SchemaField:m}=f;return N.jsx(m,{...e,schema:{...n,[Zf]:!1}})}function KF(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function WF(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function GF(e,t){switch(t){case"string":return String(e);case"number":{const r=Number(e);return Number.isNaN(r)?0:r}case"boolean":return!!e;default:return e}}function JF(e){const{id:t,formData:r,displayLabel:i=!0,schema:a,name:n,uiSchema:s,required:o,disabled:l=!1,readonly:u=!1,onBlur:c,onFocus:f,registry:m,fieldPathId:d,onChange:p,errorSchema:b}=e,{translateString:k,fields:g,globalFormOptions:v}=m,[w,C]=V.useState(WF(r)),h=me(s),y=fa(Tr("__internal_type_selector",v,d)),S=k(_e.Type),A=V.useMemo(()=>KF(S),[S]),_=O=>{O!=null&&(C(O),p(GF(r,O),d.path,b,t))};if(!v.useFallbackUiForUnsupportedType){const{reason:O=k(_e.UnknownFieldType,[String(a.type)])}=e,j=ye("UnsupportedFieldTemplate",m,h);return N.jsx(j,{schema:a,fieldPathId:d,reason:O,registry:m})}const x=ye("FallbackFieldTemplate",m,h),{SchemaField:E}=g;return N.jsx(x,{schema:a,registry:m,typeSelector:N.jsx(E,{fieldPathId:y,name:`${n}__fallback_type`,schema:A,formData:w,onChange:_,onBlur:c,onFocus:f,registry:m,hideLabel:!i,disabled:l,readonly:u,required:o},r?fr(r):"__empty__"),schemaField:N.jsx(E,{...e,schema:{type:w,title:k(_e.Value),...w==="object"&&{additionalProperties:!0}}})})}function YF(e,t){return sa(t,function(r){return e[r]})}function XF(e){return e==null?[]:YF(e,Cr(e))}var ZF=Math.max;function QF(e,t,r,i){e=xi(e)?e:XF(e),r=r?sk(r):0;var a=e.length;return r<0&&(r=ZF(a+r,0)),Nn(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&mk(e,t,r)>-1}var eD=Math.min;function tD(e,t,r){for(var i=bd,a=e[0].length,n=e.length,s=n,o=Array(n),l=1/0,u=[];s--;){var c=e[s];l=eD(c.length,l),o[s]=a>=120&&c.length>=120?new fi(s&&c):void 0}c=e[0];var f=-1,m=o[0];e:for(;++f<a&&u.length<l;){var d=c[f],p=d;if(d=d!==0?d:0,!(m?Za(m,p):i(u,p))){for(s=n;--s;){var b=o[s];if(!(b?Za(b,p):i(e[s],p)))continue e}m&&m.push(p),u.push(d)}}return u}function rD(e){return Xa(e)?e:[]}var vh=Sl(function(e){var t=sa(e,rD);return t.length&&t[0]===e[0]?tD(t):[]});function nD(e,t){return Cl(e,t)}function r1(e){return e===void 0}var Br;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(Br||(Br={}));var Ua;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(Ua||(Ua={}));const iD=/^\$lookup=(.+)/,$u="layoutGrid";function bh(e,t){return e??t}function aD(e){return/^\d+?$/.test(e)}const On=Sd();function sD(e,t,r,i,a){const n=ae(r,[Yc],{}),s=ae(r,e),o={...ae(s,[Cn],{}),...t,...n},l={...s};wt(o)||lt(l,[Cn],o),wt(n)||lt(l,[Yc],n);let{readonly:u}=me(l);return(a===!0||r1(u)&&i===!0)&&(u=!0,qe(o,wu)?lt(l,[Cn,wu],!0):lt(l,`ui:${wu}`,!0)),{fieldUiSchema:l,uiReadonly:u}}function oD(e,t,r="$0m3tH1nG Un3xP3cT3d"){const i=rf([t]).sort(),a=rf([r]).sort();switch(e){case Ua.ALL:return nD(i,a);case Ua.SOME:return vh(i,a).length>0;case Ua.NONE:return vh(i,a).length===0;default:return!1}}function Il(e,t,r){let i={},a=e[t];if(jn(a)){const{children:n,className:s,...o}=a;if(a=n,s){const u=s.split(" ").map(c=>Od(r,c,c)).join(" ");i={...o,className:u}}else i=o}if(!Array.isArray(a))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:a,gridProps:i}}function kh(e,t,r){let i,a=t;if(aD(r)&&e&&(e==null?void 0:e.type)==="array"&&qe(e,Xi)){const n=Number(r),s=e[Xi];Array.isArray(s)?n>s.length?i=Yb(s):i=s[n]:i=s,a={[nt]:t[nt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:i,fieldPathId:a}}function lD(e,t,r,i,a){const{schemaUtils:n,globalFormOptions:s}=e;let o=r,l=a;const u=t.split("."),c=u.pop();let f=n.retrieveSchema(o,i),m=i,d=f.readOnly;u.forEach(k=>{if(l=Tr(k,s,l),qe(f,$e))o=ae(f,[$e,k],{});else if(f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le,v=n.findSelectedOptionInXxxOf(f,k,g,m);o=ae(v,[$e,k],{})}else{const g=kh(f,l,k);o=g.rawSchema??{},l=g.fieldPathId}m=ae(m,k,{}),f=n.retrieveSchema(o,m),d=bh(f.readOnly,d)});let p,b=!1;if(wt(f)&&(f=void 0),f&&c){if(f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le;f=n.findSelectedOptionInXxxOf(f,c,g,m)}l=Tr(c,s,l),b=f!==void 0&&Array.isArray(f.required)&&QF(f.required,c);const k=kh(f,l,c);if(k.rawSchema?(f=k.rawSchema,l=k.fieldPathId):(f=ae(f,[$e,c]),f=f&&n.retrieveSchema(f)),d=bh(f==null?void 0:f.readOnly,d),f&&(qe(f,Ae)||qe(f,Le))){const g=qe(f,Ae)?Ae:Le,v=yr(f);p={options:f[g],hasDiscriminator:!!v}}}return{schema:f,isRequired:b,isReadonly:d,optionsInfo:p,fieldPathId:l}}function uD(e,t){let r=e;return Nn(r)&&(r=Od(t,r)),ls(r)?r:null}function cD(e,t){let r,i=null,a={},n;if(Nn(t)||r1(t))r=t??"";else{const{name:s="",render:o,...l}=t;r=s,a=l,wt(a)||jF(a,(u,c)=>{if(Nn(u)){const f=iD.exec(u);if(Array.isArray(f)&&f.length>1){const m=f[1];a[c]=Od(e,m,m)}}}),i=uD(o,e),!s&&i&&(n=N.jsx(i,{...l,"data-testid":On.uiComponent}))}return{name:r,UIComponent:i,uiProps:a,rendered:n}}function Tl(e){const{childrenLayoutGridSchemaId:t,...r}=e,{registry:i,schema:a,formData:n}=r,{schemaUtils:s}=i,o=s.retrieveSchema(a,n);return t.map(l=>V.createElement(Id,{...r,key:`layoutGrid-${fr(l)}`,schema:o,layoutGridSchema:l}))}function fD(e){const{layoutGridSchema:t,...r}=e,{formData:i,registry:a}=r,{children:n,gridProps:s}=Il(t,Br.CONDITION,a),{operator:o,field:l="",value:u}=s,c=ae(i,l,null);return oD(o,c,u)?N.jsx(Tl,{...r,childrenLayoutGridSchemaId:n}):null}function dD(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Il(t,Br.COLUMN,i),o=me(a),l=ye("GridTemplate",i,o);return N.jsx(l,{column:!0,"data-testid":On.col,...s,children:N.jsx(Tl,{...r,childrenLayoutGridSchemaId:n})})}function mD(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Il(t,Br.COLUMNS,i),o=me(a),l=ye("GridTemplate",i,o);return n.map(u=>N.jsx(l,{column:!0,"data-testid":On.col,...s,children:N.jsx(Tl,{...r,childrenLayoutGridSchemaId:[u]})},`column-${fr(u)}`))}function pD(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=Il(t,Br.ROW,i),o=me(a),l=ye("GridTemplate",i,o);return N.jsx(l,{...s,"data-testid":On.row,children:N.jsx(Tl,{...r,childrenLayoutGridSchemaId:n})})}function hD(e){const{gridSchema:t,schema:r,uiSchema:i,errorSchema:a,fieldPathId:n,onBlur:s,onFocus:o,formData:l,readonly:u,registry:c,layoutGridSchema:f,...m}=e,{onChange:d}=m,{fields:p}=c,{SchemaField:b,LayoutMultiSchemaField:k}=p,g=cD(c,t),{name:v,UIComponent:w,uiProps:C}=g,{schema:h,isRequired:y,isReadonly:S,optionsInfo:A,fieldPathId:_}=lD(c,v,r,l,n),x=fa(_);if(g.rendered)return g.rendered;if(h){const E=A!=null&&A.hasDiscriminator?k:b,{fieldUiSchema:O,uiReadonly:j}=sD(v,C,i,S,u);return N.jsx(E,{"data-testid":A!=null&&A.hasDiscriminator?On.layoutMultiSchemaField:On.field,...m,name:v,required:y,readonly:j,schema:h,uiSchema:O,errorSchema:ae(a,v),fieldPathId:x,formData:ae(l,v),onChange:d,onBlur:s,onFocus:o,options:A==null?void 0:A.options,registry:c})}return w?N.jsx(w,{"data-testid":On.uiComponent,...m,name:v,required:y,formData:l,readOnly:!!S||u,errorSchema:a,uiSchema:i,schema:r,fieldPathId:n,onBlur:s,onFocus:o,registry:c,...C}):null}function Id(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const i=me(t);if(!r&&$u in i&&Ue(i[$u])&&(r=i[$u]),Ue(r)){if(Br.ROW in r)return N.jsx(pD,{...e,layoutGridSchema:r});if(Br.COLUMN in r)return N.jsx(dD,{...e,layoutGridSchema:r});if(Br.COLUMNS in r)return N.jsx(mD,{...e,layoutGridSchema:r});if(Br.CONDITION in r)return N.jsx(fD,{...e,layoutGridSchema:r})}return N.jsx(hD,{...e,gridSchema:r})}Id.TEST_IDS=On;function gD(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,name:o}=e,l=me(a,s.globalUiOptions),{title:u}=l,{title:c}=i,f=u||r||c||o;if(!f)return null;const m=ye("TitleFieldTemplate",s,l);return N.jsx(m,{id:_l(t),title:f,required:n,schema:i,uiSchema:a,registry:s})}function Uu(e,t,r){const i="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const s=ae(n,[$e,t]);return ae(s,li,ae(s,Kt,i))===r})}function wh(e,t,r,i,a){const n=t.map(l=>r.retrieveSchema(l,a));let s=e;qe(e,Ae)?s={...e,[Ae]:n}:qe(e,Le)&&(s={...e,[Le]:n});const o=di(s,i);if(!o)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(s)}`);return o}function yD(e){var L;const{name:t,baseType:r,disabled:i=!1,formData:a,fieldPathId:n,onBlur:s,onChange:o,options:l,onFocus:u,registry:c,uiSchema:f,schema:m,autofocus:d,readonly:p,required:b,errorSchema:k,hideError:g=!1}=e,{widgets:v,schemaUtils:w,globalUiOptions:C}=c,[h,y]=V.useState(wh(m,l,w,f,a)),S=ae(n,nt),A=yr(m),_=ye("FieldErrorTemplate",c,l),x=ye("FieldTemplate",c,l),E=fr(m),O=fr(l),j=f?fr(f):"",T=a?fr(a):"";V.useEffect(()=>{y(wh(m,l,w,f,a))},[E,O,w,j,T]);const{widget:F=A?"radio":"select",title:q="",placeholder:J="",optionsSchemaSelector:Y=A,hideError:te,...P}=me(f);if(!Y)throw new Error("No selector field provided for the LayoutMultiSchemaField");const D=ae(a,Y);let U=ae((L=h[0])==null?void 0:L.schema,[$e,Y],{});const I=Uu(h,Y,D);U=U!=null&&U.type?U:{...U,type:(I==null?void 0:I.type)||r};const R=Kr(U,F,v),M=te===void 0?g:!!te,z=ae(k,[Nt],[]),B=Ja(k,[Nt]),H=w.getDisplayLabel(m,f,C),G=W=>{if(i||p)return;const K=Uu(h,Y,W),ie=Uu(h,Y,D);let re=w.sanitizeDataForNewSchema(K,ie,a);re&&K&&(re=w.getDefaultFormState(K,re,"excludeObjectChildren")),re&<(re,Y,W),o(re,n.path,void 0,S)},X={enumOptions:h,...P},$=!M&&z.length>0?N.jsx(_,{fieldPathId:n,schema:m,errors:z,registry:c}):void 0;return N.jsx(x,{fieldPathId:n,id:S,schema:m,label:(q||m.title)??"",disabled:i||Array.isArray(h)&&wt(h),uiSchema:f,required:b,readonly:!!p,registry:c,displayLabel:H,errors:$,onChange:o,onKeyRename:Fo,onKeyRenameBlur:Fo,onRemoveProperty:Fo,children:N.jsx(R,{id:S,name:t,schema:m,label:(q||m.title)??"",disabled:i||Array.isArray(h)&&wt(h),uiSchema:f,autofocus:d,readonly:p,required:b,registry:c,multiple:!1,rawErrors:z,hideError:M,hideLabel:!H,errorSchema:B,placeholder:J,onChange:G,onBlur:s,onFocus:u,value:D,options:X,htmlName:n.name})})}function xh(e){const{name:t,disabled:r=!1,errorSchema:i={},formData:a,fieldPathId:n,onBlur:s,onChange:o,onFocus:l,options:u,readonly:c,registry:f,required:m=!1,schema:d,uiSchema:p}=e,{schemaUtils:b}=f,k=fr(a??null),g=V.useMemo(()=>u.map(re=>b.retrieveSchema(re,a)),[u,b,k]),[v,w]=V.useState(()=>{const re=yr(d);return b.getClosestMatchingOption(a,g,0,re)}),C=V.useRef(!1),h=V.useRef(a),y=V.useRef(n.$id);V.useEffect(()=>{const re=h.current,ue=y.current;if(h.current=a,y.current=n.$id,!ze(a,re)&&n.$id===ue){if(C.current){C.current=!1;return}const ge=yr(d),we=b.getClosestMatchingOption(a,g,v,ge);we!==v&&w(we)}});const S=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,A=V.useCallback(re=>{if(r||c)return;const ue=re!==void 0?parseInt(re,10):-1;if(ue===v)return;const ge=ue>=0?g[ue]:void 0,we=v>=0?g[v]:void 0;let ke=b.sanitizeDataForNewSchema(ge,we,a);ge&&(ke=b.getDefaultFormState(ge,ke,"excludeObjectChildren")),w(ue),C.current=!0,o(ke,n.path,void 0,S)},[v,g,r,c,b,a,n,o,S]),{widgets:_,fields:x,translateString:E,globalUiOptions:O}=f,{SchemaField:j}=x,T=ye("MultiSchemaFieldTemplate",f,O),F=hs(f,d,m,p),q=ca(a),{widget:J="select",placeholder:Y,autofocus:te,autocomplete:P,title:D=d.title,...U}=me(p,O),I=Kr({type:"number"},J,_),R=ae(i,Nt,[]),M=Ja(i,[Nt]),z=b.getDisplayLabel(d,p,O),B=v>=0&&g[v]||null;let H;if(B){const{required:re,type:ue}=d,ge={};re&&(ge.required=re),ue!==void 0&&!("type"in B)&&(ge.type=ue),H=Object.keys(ge).length>0?nn(ge,B):B}let G=[];Ae in d&&p&&Ae in p?Array.isArray(p[Ae])?G=p[Ae]:console.warn(`uiSchema.oneOf is not an array for "${D||t}"`):Le in d&&p&&Le in p&&(Array.isArray(p[Le])?G=p[Le]:console.warn(`uiSchema.anyOf is not an array for "${D||t}"`));let X=p;v>=0&&G.length>v&&(X=G[v]);const $=D?_e.TitleOptionPrefix:_e.OptionPrefix,L=D?[D]:[],W=g.map((re,ue)=>{const{title:ge=re.title}=me(G[ue]);return{label:ge||E($,L.concat(String(ue+1))),value:ue}}),K=!F||q?N.jsx(I,{id:S,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:A,onBlur:s,onFocus:l,disabled:r||wt(W),multiple:!1,rawErrors:R,errorSchema:M,value:v>=0?v:void 0,options:{enumOptions:W,...U},registry:f,placeholder:Y,autocomplete:P,autofocus:te,label:D??t,hideLabel:!z,readonly:c}):void 0,ie=H&&H.type!=="null"&&N.jsx(j,{...e,schema:H,uiSchema:X})||null;return N.jsx(T,{schema:d,registry:f,uiSchema:p,selector:K,optionSchemaField:ie})}function vD(e){const{formData:t,onChange:r,fieldPathId:i}=e;return V.useEffect(()=>{t===void 0&&r(null,i.path)},[i,t,r]),null}const bD=/\.([0-9]*0)*$/,kD=/[0.]0*$/;function wD(e){const{registry:t,onChange:r,formData:i,value:a}=e,[n,s]=V.useState(a),{StringField:o}=t.fields,l=vb(),u=l==="."?"\\.":l;let c=i;const f=V.useCallback((d,p,b,k)=>{s(d);const g=typeof d=="string"?d.replace(l,"."):d,v=`${g}`.startsWith(".")?`0${g}`:g,w=typeof v=="string"&&bD.exec(v)?op(v.replace(kD,"")):op(v);r(w,p,b,k)},[r,l]);if(typeof n=="string"&&typeof c=="number"){const d=new RegExp(`^(${String(c).replace(".",u)})?${u}?0*$`);n.match(d)&&(c=n)}let m=c;if(typeof c=="number"&&l!=="."){const{schema:d,uiSchema:p}=e,{schemaUtils:b}=t,g=(b.isSelect(d)?di(d,p):void 0)?"select":"text",{widget:v=g}=me(p);v!=="radio"&&v!=="select"&&v!=="hidden"&&(m=String(c).replace(".",l))}return N.jsx(o,{...e,formData:m,onChange:f})}var Ms;function xD(e){if(!Ms){if(typeof document>"u")return;Ms=document.createElement("textarea")}var t=`&${e};`;Ms.innerHTML=t;var r=Ms.value;return r===t?void 0:r}var se=32,le=9,Dn=13,fe=10,Je=96,_t=126,vt=91,cn=94,Re=62,br=35,ff=37,Oe=45,dr=61,Tt=92,xt=42,gt=95,rt=60,n1=64,jr=93,Wt=33,jl=38,qt=58,df=70,mi=102,tl=104,si=119,Ki=116,mf=112,i1=115,SD=160,CD=12,ED=44,rl=59,da=63,mr=46,yt=47,pi=39,hi=34,Mn=43,It=124,gi=123,Td=125,Er=40,Pr=41,AD=78,OD=110,_D=79,PD=111,a1=120,s1=88,pf=30,Te=48,je=57,xe=65,Ee=90,Xe=97,ut=122,Rl=128,Sr=32,ID={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},ne=ID;function TD(e){if(!Ch(e,"---"))return null;let t=3;for(;t<e.length&&(e[t]===" "||e[t]===" ");)t++;if(t<e.length&&e[t]==="\r"&&t++,t>=e.length||e[t]!==`
|
|
77
|
+
`)return null;t++;let r=!1;for(;t<e.length;){let i=t;for(;t<e.length&&e[t]!==`
|
|
78
|
+
`&&e[t]!=="\r";)t++;if(t>=e.length)break;let a=t;if(e[t]==="\r"&&t++,t<e.length&&e[t]===`
|
|
79
|
+
`&&t++,Ch(e,"---",i))return{endPos:t,hasValidYaml:r};if(!r){let n=UD(e,i,a);if(n<a){let s=e.charCodeAt(n);if(s>=Xe&&s<=ut||s>=xe&&s<=Ee||s>=Te&&s<=je||s===gt){for(n++;n<a&&(s=e.charCodeAt(n),s>=Xe&&s<=ut||s>=xe&&s<=Ee||s>=Te&&s<=je||s===gt||s===Oe||s===mr);)n++;n<a&&e.charCodeAt(n)===qt&&(n++,n>=a?r=!0:(s=e.charCodeAt(n),(s===se||s===le)&&(r=!0)))}}}}return null}var jD=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,RD={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap",viewbox:"viewBox"},ND={};function o1(e){if(!e)return ND;var t={};for(var r in e){var i=r.toLowerCase(),a=RD[i];if(a)t[a]=e[r];else{var n=r.indexOf(":");n===-1?t[r]=e[r]:t[r.slice(0,n)+r[n+1].toUpperCase()+r.slice(n+2)]=e[r]}}return t}var FD=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\b)/i;function _n(e){return e.indexOf("&")===-1?e:e.replace(jD,(t,r)=>{var i=xD(r);if(i)return i;if(r[0]==="#"){var a=r[1]==="x"||r[1]==="X"?Number.parseInt(r.slice(2),16):Number.parseInt(r.slice(1),10);return a===0||a>=55296&&a<=57343||a>1114111?"�":a<=65535?String.fromCharCode(a):String.fromCharCode(55296+(a-65536>>10),56320+(a-65536&1023))}return t})}var Sh=/(javascript|vbscript|data(?!:image)):/i;function rn(e){if(Sh.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Sh.test(t))return null}catch{return null}return e}var Mt={},Vt,Pt;for(Vt=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="a";for(Mt[231]=Mt[199]="c",Mt[240]=Mt[208]="d",Vt=[200,201,202,203,233,232,234,235],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="e";for(Vt=[207,239,206,238,205,237,204,236],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="i";for(Mt[209]=Mt[241]="n",Vt=[248,216,339,338,213,245,212,244,211,243,210,242],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="o";for(Vt=[220,252,219,251,218,250,217,249],Pt=0;Pt<Vt.length;Pt++)Mt[Vt[Pt]]="u";Mt[376]=Mt[255]=Mt[221]=Mt[253]="y";function yi(e){for(var t="",r=-1,i=e.length,a=0;a<i;a++){var n=e.charCodeAt(a);if(n>=Xe&&n<=ut||n>=Te&&n<=je){r<0&&(r=a);continue}if(n>=xe&&n<=Ee){r>=0&&(t+=e.slice(r,a),r=-1),t+=String.fromCharCode(n+Sr);continue}if(n===se||n===Oe){r>=0&&(t+=e.slice(r,a),r=-1),t+="-";continue}r>=0&&(t+=e.slice(r,a),r=-1);var s=Mt[n];s&&(t+=s)}return r>=0&&(t+=e.slice(r)),t}function Ch(e,t,r){return e.startsWith(t,r)}var Eh=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","set"]);function gs(e){let t=e.toLowerCase();if(Eh.has(t))return!0;let r=t.indexOf(":");return r!==-1?(t=t.slice(r+1),Eh.has(t)):!1}var ii=1,Ah=2,$i=4,Oh=8,DD=16,wr=32,hn=64,MD=(()=>{var e=new Uint8Array(128),t;for(e[le]=ii,e[fe]=ii|Ah,e[CD]=ii,e[Dn]=ii|Ah,e[se]=ii,t=Wt;t<=yt;t++)e[t]=$i;for(t=qt;t<=n1;t++)e[t]=$i;for(t=vt;t<=Je;t++)e[t]=$i;for(t=gi;t<=_t;t++)e[t]=$i;for(t=Te;t<=je;t++)e[t]=DD;for(t=xe;t<=Ee;t++)e[t]=Oh;for(t=Xe;t<=ut;t++)e[t]=Oh;return e})(),LD=/[\p{P}\p{S}]/u,qD=new RegExp("\\p{Zs}","u"),Yn=[];function zD(e){var t=e.indexOf("\r"),r=e.indexOf("\0");if(t===-1&&r===-1)return e;var i=e.length;Yn.length=0;var a=0,n=0;for(t===-1?n=r:r===-1?n=t:n=t<r?t:r;n<i;n++){var s=e.charCodeAt(n);s===Dn?(a<n&&Yn.push(e.slice(a,n)),n+1<i&&e.charCodeAt(n+1)===fe&&n++,Yn.push(`
|
|
80
|
+
`),a=n+1):s===0&&(a<n&&Yn.push(e.slice(a,n)),Yn.push("�"),a=n+1)}return a<i&&Yn.push(e.slice(a)),Yn.join("")}function $D(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}function UD(e,t,r){let i=r??e.length;for(;t<i&&(e[t]===" "||e[t]===" ");)t++;return t}function l1(e){if(!e)return!1;for(var t in e)return!0;return!1}function BD(e){return{attrs:{},children:[{type:ne.text,text:e}],c:!0,type:ne.htmlBlock,tag:"header"}}var VD=/^\n+/;function HD(e){for(var t=e.length;t>0&&(e[t-1]===`
|
|
81
|
+
`||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(VD,"")}
|
|
56
82
|
|
|
57
|
-
`}function
|
|
58
|
-
`,
|
|
59
|
-
`,n),
|
|
60
|
-
`,n),d=m<0?
|
|
61
|
-
`,n),
|
|
62
|
-
`,t),
|
|
63
|
-
`,
|
|
64
|
-
`,s=
|
|
65
|
-
`,s=
|
|
66
|
-
`,
|
|
67
|
-
`;var
|
|
68
|
-
`,
|
|
69
|
-
`}else
|
|
70
|
-
`}for(o=
|
|
71
|
-
`,o=
|
|
72
|
-
`}else
|
|
73
|
-
`;o=
|
|
74
|
-
`}else
|
|
75
|
-
`;o=
|
|
76
|
-
`,o=
|
|
77
|
-
`,
|
|
78
|
-
`)!==-1||
|
|
79
|
-
`)!==-1,
|
|
83
|
+
`}function Ui(e){var r,i;if((e.type===ne.htmlSelfClosing||e.type===ne.htmlBlock)&&e.a)return[];if(e.type===ne.paragraph){var t=e.children;return t?t.flatMap(Ui):[]}return e.type===ne.text?(r=e.text)!=null&&r.trim()?[e]:[]:e.type===ne.htmlBlock&&e.children?[{...e,children:(i=e.children)==null?void 0:i.flatMap(Ui)}]:[e]}function u1(e){for(var t=0;t<e.length;t++){if(e[t].type===ne.htmlBlock){var r=e[t],i=!1;if(r.c&&t===e.length-1){var a=r.j===void 0?r.a?r.e||"":(r.e||"")+(r.h||""):r.j,n=`</${String(r.tag).toLowerCase()}>`,s=a.toLowerCase().indexOf(n);if(s!==-1){var o=a.slice(s+n.length).replace(/<\/[a-z][a-z0-9-]*\s*>/gi,"");o.trim()&&(i=!0)}}i||(r.c=!1)}"children"in e[t]&&e[t].children&&u1(e[t].children)}}function KD(e,t){for(var r=0;r<e.length;r++){var i=e[r];if(i.type===ne.paragraph&&i.children)for(var a=i.children,n=0;n<a.length;n++){var s=a[n];if(s.type===ne.htmlSelfClosing&&s.a&&s.tag.toLowerCase()===t){var o=e.slice(0,r);n>0&&o.push({type:ne.paragraph,children:a.slice(0,n)});var l=[];if(n+1<a.length){var u=a.slice(n+1).filter(c=>!(c.type===ne.htmlSelfClosing&&c.a));u.length>0&&(l=u)}return l=l.concat(e.slice(r+1)),{found:!0,beforeClose:o,afterClose:l}}}if((i.type===ne.htmlSelfClosing||i.type===ne.htmlBlock)&&i.a&&i.tag.toLowerCase()===t)return{found:!0,beforeClose:e.slice(0,r),afterClose:e.slice(r+1)}}return{found:!1,beforeClose:e,afterClose:[]}}function WD(e){var t="";for(var r in e){var i=e[r];i===!0?t+=` ${r}`:i!==void 0&&i!=null&&i!==!1&&(t+=` ${r}="${String(i)}"`)}return t}function _h(e,t,r,i){var a;return t===void 0?a=WD(r):a=t.length>0&&t.charCodeAt(0)>se?` ${t}`:t,`<${e}${a}${i}`}function Ph(e){var t=e.tag,r=e.type===ne.htmlSelfClosing,i=e,a=i.b,n=`</${t}>`;if(!r&&i.a)return{kind:"literal",literal:(i.h||n)+(i.e||"")};if(r){var s=e;return s.a?{kind:"literal",literal:s.h||n}:s.m?{kind:"literal",literal:s.m}:{kind:"literal",literal:_h(t,a,e.attrs," />")}}var o=_h(t,a,e.attrs,">"),l=i.children,u=l!=null&&l.length>0;if(i.c&&i.j!==void 0)return u?{kind:"sandwich",open:o,close:n}:{kind:"literal",literal:i.j};if(i.c&&!u)return{kind:"literal",literal:o+(i.e||"")+(i.h||n)};if(l!=null&&l.length>0){for(var c="",f=0;f<l.length;f++){var m=l[f];if(m.type!==ne.text)return{kind:"sandwich",open:o,close:n};c+=m.text}return{kind:"literal",literal:o+c+n}}var d=i.e||"";return d&&d.indexOf(n)!==-1?{kind:"literal",literal:o+d}:{kind:"literal",literal:o+d+n}}function GD(e,t,r){var i=[],a=e,n=r;if(a&&i.push(a),Array.isArray(t))for(var s=0;s<t.length;s++)i.push(t[s]);else t!=null&&i.push(t);n&&i.push(n);for(var o=[],l=0;l<i.length;l++){var u=i[l];typeof u=="string"&&o.length>0&&typeof o.at(-1)=="string"?o[o.length-1]=o.at(-1)+u:o.push(u)}return o}function Li(e){return e==null||e.tagfilter!==!1}function JD(e,t,r,i){var a=t(e,r,i);return a===null?null:XD(a)}function YD(e){var t=[];if(!e)return t;for(var r in e)r.charCodeAt(0)===94&&t.push({identifier:r,footnote:e[r].target});return t}function hf(e,t,r){if(t.indexOf(".")===-1)return(e==null?void 0:e[t])||r;for(var i=e,a=t.split("."),n=0;n<a.length&&(i=i==null?void 0:i[a[n]],i!==void 0);)n++;return i||r}function XD(e){for(var t=!1,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i<=se||i===hi||i===ff||i===rt||i===Re||i===vt||i===Tt||i===jr||i===cn||i===Je||i>=123){t=!0;break}}if(!t)return e;for(var a="",r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i===ff&&r+2<e.length){var n=e.charCodeAt(r+1),s=e.charCodeAt(r+2);if((n>=Te&&n<=je||n>=xe&&n<=df||n>=Xe&&n<=mi)&&(s>=Te&&s<=je||s>=xe&&s<=df||s>=Xe&&s<=mi)){a+=e[r]+e[r+1]+e[r+2],r+=2;continue}}if(i>=55296&&i<=57343){if(i<=56319&&r+1<e.length){var o=e.charCodeAt(r+1);if(o>=56320&&o<=57343){a+=encodeURI(e[r]+e[r+1]),r++;continue}}a+=e[r];continue}a+=encodeURI(e[r])}return a}function ZD(...e){return e.filter(Boolean).join(" ")}var QD=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),nl=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function Ih(e){return QD.has(e.toLowerCase())}function eM(e){return nl.lastIndex=0,nl.test(e)}function Th(e){return nl.lastIndex=0,e.replace(nl,(t,r,i,a)=>`<${r}${i}${a}`)}function jd(e,t){var r=e||{},i=r.slugify,a;if(i){var n=i;a=s=>n(s,yi)}else a=yi;return{disableAutoLink:r.disableAutoLink,disableFrontmatter:r.disableFrontmatter,disableParsingRawHTML:r.disableParsingRawHTML,enforceAtxHeadings:r.enforceAtxHeadings,evalUnserializableExpressions:r.evalUnserializableExpressions,forceBlock:r.forceBlock,forceInline:t===void 0?r.forceInline:t,ignoreHTMLBlocks:r.ignoreHTMLBlocks,optimizeForStreaming:r.optimizeForStreaming,preserveFrontmatter:r.preserveFrontmatter,sanitizer:r.sanitizer||rn,slugify:a,tagfilter:Li(r)}}var tM=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,rM=/^<[A-Z]/,gf=["script","pre","style","textarea"],ys=new Set(gf),nM=/<(?:pre|script|style|textarea)\b/i,jh=/<(?:pre|script|style|textarea)\b/iy,Bu=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,Rh=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,c1=new Uint8Array(128);(()=>{for(var e=[Je,xt,gt,_t,dr,vt,Wt,rt,Tt,jl,fe,tl,si,mi],t=0;t<e.length;t++)c1[e[t]]=1})();var Nh=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function iM(e){return ys.has(e)}function aM(e){return nM.test(e)}function f1(e,t,r){for(var i=t,a=r;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i>=a)return!1;e.charCodeAt(i)===It&&i++;for(var n=0;i<a;){for(;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i>=a)break;if(e.charCodeAt(i)===It&&n>0){for(var s=i+1;s<a&&(e.charCodeAt(s)===se||e.charCodeAt(s)===le);)s++;if(s>=a)return!0}if(e.charCodeAt(i)===qt&&i++,i>=a||e.charCodeAt(i)!==Oe)return!1;for(;i<a&&e.charCodeAt(i)===Oe;)i++;for(i<a&&e.charCodeAt(i)===qt&&i++,n++;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i<a)if(e.charCodeAt(i)===It)i++;else return!1}return n>0}var sM=/[\u0000-\u001F\u007F]/g,oM={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},lM=/&#(x[0-9a-f]+|[0-9]+);?/gi;function uM(e){return e.indexOf("&#")===-1?e:e.replace(lM,(t,r)=>{var i=r.charCodeAt(0)===a1||r.charCodeAt(0)===s1?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return i>0&&i<=1114111?String.fromCodePoint(i):t})}function cM(e,t,r){if(r&&t.charCodeAt(0)===gi)return!1;var i=e.charCodeAt(0),a=e.charCodeAt(1);if((i===PD||i===_D)&&(a===OD||a===AD))return!(r&&t==="");var n=e.toLowerCase();if(n==="srcdoc")return!0;if(n==="style")return/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(t);if(oM[n]===1){var s=uM(_n(t));if(rn(s)===null)return!0;var o=s.replace(sM,"");return o!==s&&rn(o)===null}return!1}function yf(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function Fh(e,t,r,i){for(var a=[],n=t,s=0;s<i.length;s+=2){var o=i[s];if(o>n){var l=e.slice(n,o).trim();l&&a.push(l)}n=i[s+1]}if(n<r){var u=e.slice(n,r).trim();u&&a.push(u)}return a.join(" ")}function $r(e,t){if(e.charCodeAt(t)!==rt)return null;let r=t+1,i=e.length,a=!1;e.charCodeAt(r)===yt&&(r++,a=!0);let n=r,s=e.charCodeAt(r);if(!(s>=Xe&&s<=ut||s>=xe&&s<=Ee))return null;for(;r<i&&(e.charCodeAt(r)>=Xe&&e.charCodeAt(r)<=ut||e.charCodeAt(r)>=xe&&e.charCodeAt(r)<=Ee||e.charCodeAt(r)>=Te&&e.charCodeAt(r)<=je||e.charCodeAt(r)===Oe);)r++;let o=e.slice(n,r);if(!o)return null;let l=o.charCodeAt(0),u=l>=xe&&l<=Ee||o.indexOf("-")!==-1,c=r;for(;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le||e.charCodeAt(r)===fe);)r++;let f=e.slice(c,r);if(r===c&&r<i){var m=e.charCodeAt(r);if(m!==Re&&m!==yt)return null}let d=r,p={},b=!1;for(var k=null;r<i;){let j=e.charCodeAt(r);if(j===Re){let T=k?Fh(e,d,r,k):e.slice(d,r);return{r:b,u,f:a,b:T,q:k!=null,n:!1,g:f,attrs:p,end:r+1,tag:o}}if(j===se||j===le||j===fe){r++;continue}if(j===yt&&r+1<i&&e.charCodeAt(r+1)===Re){b=r>d&&e.charCodeAt(r-1)===se;let T=k?Fh(e,d,r,k):e.slice(d,r);return{r:b,u,f:a,b:T,q:k!=null,n:!0,g:f,attrs:p,end:r+2,tag:o}}var g=r,v=e.charCodeAt(r);if(!(v>=Xe&&v<=ut||v>=xe&&v<=Ee||v===gt||v===qt))return null;for(r++;r<i;){var w=e.charCodeAt(r);if(w>=Xe&&w<=ut||w>=xe&&w<=Ee||w>=Te&&w<=je||w===gt||w===mr||w===qt||w===Oe)r++;else break}for(var C=e.slice(g,r),h=r;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le);)r++;var y,S;if(e.charCodeAt(r)===dr){for(r++;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le);)r++;var A=e.charCodeAt(r);if(A===hi||A===pi){r++;for(var _=r;r<i&&e.charCodeAt(r)!==A;)r++;if(r>=i)return null;if(y=e.slice(_,r),r++,r<i){var x=e.charCodeAt(r);if(x!==se&&x!==le&&x!==fe&&x!==Re&&x!==yt)return null}S=r}else if(A===gi){var E=1,_=r;for(r++;r<i&&E>0;){var w=e.charCodeAt(r);w===gi?E++:w===Td&&E--,r++}y=e.slice(_,r),S=r}else{for(var _=r;r<i;){var O=e.charCodeAt(r);if(O===se||O===le||O===Re||O===fe||O===hi||O===pi||O===dr||O===rt||O===Je)break;r++}if(r===_)return null;y=e.slice(_,r),S=r}}else y="",S=h;cM(C,y,u)?(k===null&&(k=[]),k.push(g,S)):p[C]=y}return null}function rr(e){var t=e.indexOf("<");if(t===-1)return e;for(var r="",i=0,a=!1;t!==-1;){var n=$r(e,t);n?(n.q&&(r+=e.slice(i,t)+yf(n),i=n.end,a=!0),t=e.indexOf("<",n.end)):t=e.indexOf("<",t+1)}return a?r+e.slice(i):e}function fM(e,t,r){if(!r.optimizeForStreaming&&e.indexOf("[")===-1)return!1;for(var i=0,a=e.length,n=!1,s=!1;i<a;){for(var o=e.indexOf(`
|
|
84
|
+
`,i),l=o<0?a:o,u=i,c=0;u<l&&c<4;)if(e.charCodeAt(u)===se)c++,u++;else if(e.charCodeAt(u)===le)c+=4,u++;else break;if(u>=l){n=!1,i=o<0?a:o+1;continue}if(c<4){var f=e.charCodeAt(u);if(f===Je||f===_t){for(var m=f,d=0,p=u;p<l&&e.charCodeAt(p)===m;)d++,p++;if(d>=3){var b=!0;if(m===Je){for(var k=p;k<l;k++)if(e.charCodeAt(k)===Je){b=!1;break}}if(b){n=!1;for(var g=o<0?a:o+1;g<a;){for(var v=g,w=0;v<a&&w<4;){var C=e.charCodeAt(v);if(C===se)w++,v++;else if(C===le)w+=4,v++;else break}if(w<4&&v<a&&e.charCodeAt(v)===m){for(var h=0;v<a&&e.charCodeAt(v)===m;)h++,v++;if(h>=d){for(;v<a&&(e.charCodeAt(v)===se||e.charCodeAt(v)===le);)v++;if(v>=a||e.charCodeAt(v)===fe){i=v>=a?a:v+1;break}}}for(;g<a&&e.charCodeAt(g)!==fe;)g++;g<a&&g++}g>=a&&(i=a,s=!0);continue}}}}for(var y=u;y<l&&e.charCodeAt(y)===Re;){y++,y<l&&e.charCodeAt(y)===se&&y++;for(var S=0;y<l&&S<4;)if(e.charCodeAt(y)===se)S++,y++;else if(e.charCodeAt(y)===le)S+=4,y++;else break;if(S>=4)break;n=!1}if(!n&&c<4&&y<l&&e.charCodeAt(y)===vt&&!(y+1<a&&e.charCodeAt(y+1)===cn)){var A=d1(e,y,t);if(A){i=A,n=!1;continue}}var _=e.charCodeAt(u);if(_===br&&c<4)n=!1;else if(c<4&&(_===Oe||_===xt||_===gt)){for(var x=u,E=0;x<l;){var O=e.charCodeAt(x);if(O===_)E++;else if(O!==se&&O!==le)break;x++}n=!(E>=3&&x>=l)}else n=!0;i=o<0?a:o+1}return s}function d1(e,t,r){let i=e.length;if(e.charCodeAt(t)!==vt)return null;let a=t+1<i&&e.charCodeAt(t+1)===cn,n=t+1;for(;n<i;){var s=e.charCodeAt(n);if(s===jr){n++;break}if(s===vt)return null;s===Tt&&n+1<i&&n++,n++}if(n>i||e.charCodeAt(n-1)!==jr)return null;let o=e.slice(t+1,n-1);if(o.length>999)return null;let l=Lo(o);if(!l||n>=i||e.charCodeAt(n)!==qt)return null;n++;let u=!1;for(;n<i;){let j=e.charCodeAt(n);if(j===se||j===le)n++;else if(j===fe&&!u)u=!0,n++;else break}if(a){let j=e.indexOf(`
|
|
85
|
+
`,n),T=j<0?i:j,F=e.slice(n,T).trim();return r[l]={target:F,title:void 0},j<0?i:j+1}var c;if(n<i&&e.charCodeAt(n)===rt){n++;for(var f=n;n<i&&e.charCodeAt(n)!==Re&&e.charCodeAt(n)!==fe;)e.charCodeAt(n)===Tt&&n+1<i&&n++,n++;if(n>=i||e.charCodeAt(n)!==Re)return null;c=e.slice(f,n),n++;for(var m=e.indexOf(`
|
|
86
|
+
`,n),d=m<0?i:m,p=n;p<d&&(e.charCodeAt(p)===se||e.charCodeAt(p)===le);)p++;if(p<d){if(p===n)return null;var b=e.charCodeAt(p);if(b!==hi&&b!==pi&&b!==Er)return null}}else{for(var f=n,k=0;n<i;){var s=e.charCodeAt(n);if(s===Er)k++;else if(s===Pr){if(k===0)break;k--}else{if(s===se||s===le||s===fe)break;s===Tt&&n+1<i&&n++}n++}if(c=e.slice(f,n),!c)return null}for(;n<i&&(e.charCodeAt(n)===se||e.charCodeAt(n)===le);)n++;var g=e.indexOf(`
|
|
87
|
+
`,n),v=g<0?i:g,w,C=!1,h=n,y=n;if(n===v&&n<i)for(y=n+1;y<i&&(e.charCodeAt(y)===se||e.charCodeAt(y)===le);)y++;if(y<i){var S=e.charCodeAt(y);if(S===hi||S===pi||S===Er){for(var A=S===Er?41:S,_=y+1,x=_;_<i;){var E=e.charCodeAt(_);if(E===A){for(var O=_+1;O<i&&(e.charCodeAt(O)===se||e.charCodeAt(O)===le);)O++;(O>=i||e.charCodeAt(O)===fe)&&(w=e.slice(x,_),C=!0,h=O<i?O+1:i);break}if(E===Tt&&_+1<i){_+=2;continue}if(E===fe&&_+1<i&&e.charCodeAt(_+1)===fe)break;_++}if(!C&&y===n)return null}}if(C)return r[l]||(r[l]={target:_n(Wi(c)),title:w===void 0?w:_n(Wi(w))}),h;for(;n<v&&(e.charCodeAt(n)===se||e.charCodeAt(n)===le);)n++;return n<v?null:(r[l]||(r[l]={target:_n(Wi(c)),title:w}),g<0?i:g+1)}var Xt=new Uint8Array(MD);for(Xt[br]|=wr,Xt[Re]|=wr,Xt[Oe]|=wr|hn,Xt[Mn]|=wr,Xt[xt]|=wr|hn,Xt[gt]|=wr|hn,Xt[Je]|=wr|hn,Xt[_t]|=wr|hn,Xt[rt]|=wr|hn,Xt[vt]|=hn,Xt[Wt]|=hn,Xt[It]|=wr,Ls=Te;Ls<=je;Ls++)Xt[Ls]|=wr;var Ls;function Dh(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===Tt){t++;continue}if(e.charCodeAt(t)===vt||e.charCodeAt(t)===jr)return!0}return!1}function Lo(e){for(var t=e.length,r=!0,i=t>0,a=0;a<t;a++){var n=e.charCodeAt(a);if(n===se){if(r){i=!1;break}r=!0}else if(n<33||n>126||n>=xe&&n<=Ee){i=!1;break}else r=!1}if(i&&!r)return e;var s=e.replace(/\s+/g," ").trim();return s.indexOf("ẞ")!==-1?s.replace(/\u1E9E/g,"ss").toLowerCase():s.toLowerCase()}function Rd(e){return e<Rl?Xt[e]:e===SD?ii:0}function Wi(e){return e.indexOf("\\")===-1?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var vf=null,bf=-1,qo=-1;function Ye(e,t){if(t>=bf&&t<=qo&&e===vf)return qo;var r=e.indexOf(`
|
|
88
|
+
`,t),i=r<0?e.length:r;return vf=e,bf=t,qo=i,i}function De(e,t){let r=Ye(e,t);return r<e.length?r+1:r}function ts(e,t,r){for(;t<r;){let i=e.charCodeAt(t);if(i!==se&&i!==le)break;t++}return t}function Mh(e,t){let r=De(e,t);for(;r<e.length;){let i=Ye(e,r);if(Ht(e,r,i))return r;r=De(e,r)}return e.length}function Ln(e,t,r,i){let a=0;for(;t+a<r&&e.charCodeAt(t+a)===i;)a++;return a}var Ge=0,Ke=0;function Ct(e,t,r){for(Ge=0,Ke=0;t+Ke<r;){let i=e.charCodeAt(t+Ke);if(i===le)Ge+=4-Ge%4;else if(i===se)Ge++;else break;Ke++}}function Ht(e,t,r){return ts(e,t,r)>=r}function dM(e,t){if(!e)return e;var r=t.v||(t.v=Object.create(null)),i=r[e];if(i===void 0)return r[e]=0,e;for(var a=i+1,n=`${e}-${a}`;r[n]!==void 0;)a++,n=`${e}-${a}`;return r[e]=a,r[n]=0,n}function mM(e,t,r,i){let a=Ye(e,t);if(Ct(e,t,a),Ge>3)return null;let n=t+Ke;if(e.charCodeAt(n)!==br)return null;let s=Ln(e,n,a,35);if(s<1||s>6||(n+=s,n<a&&e.charCodeAt(n)!==se&&e.charCodeAt(n)!==le))return null;n=ts(e,n,a);for(var o=a;o>n&&e.charCodeAt(o-1)===se;)o--;for(var l=o;o>n&&e.charCodeAt(o-1)===br;)o--;if(o<l)if(o===n||e.charCodeAt(o-1)===se)for(;o>n&&e.charCodeAt(o-1)===se;)o--;else o=l;let u=e.slice(n,o),c=Gi(u,!1,r,i);return{node:{type:ne.heading,level:s,children:c,id:""},end:De(e,a)}}function pM(e,t,r){var i=e.charCodeAt(t);if(i!==dr&&i!==Oe)return!1;for(var a=t;a<r&&e.charCodeAt(a)===i;)a++;for(;a<r&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;return a>=r}function Pn(e,t){let r=Ye(e,t);if(Ct(e,t,r),Ge>3)return null;let i=t+Ke,a=e.charCodeAt(i);if(a!==Oe&&a!==xt&&a!==gt)return null;let n=0;for(;i<r;){let s=e.charCodeAt(i);if(s===a)n++;else if(s!==se&&s!==le)return null;i++}return n<3?null:{node:{type:ne.breakThematic},end:De(e,r)}}var Lh=0,qh=0,zh="";function hM(e,t,r){let i=Ye(e,t);if(Ct(e,t,i),Ge>3)return null;let a=Ge,n=t+Ke,s=e.charCodeAt(n);if(s!==Je&&s!==_t)return null;let o=Ln(e,n,i,s);if(o<3)return null;n+=o;let l=ts(e,n,i),u=i;if(s===Je){for(let T=l;T<i;T++)if(e.charCodeAt(T)===Je)return null}for(;u>l&&(e.charCodeAt(u-1)===se||e.charCodeAt(u-1)===le);)u--;let c=e.slice(l,u),f="",m="",d=c.indexOf(" ");d===-1?f=c:(f=c.slice(0,d),m=c.slice(d+1).trim()),f=Wi(f);var p;if(m){Nh.lastIndex=0;for(var b;(b=Nh.exec(m))!=null;)p||(p={}),p[b[1]]=b[2]===void 0?b[3]:b[2]}let k=De(e,i),g=e.length,v=e.length;var w;s===Lh&&o===qh?w=zh:(w=String.fromCharCode(s).repeat(o),Lh=s,qh=o,zh=w);for(var C=k;C<e.length;){var h=e.indexOf(w,C);if(h===-1)break;for(var y=h,S=0;y>0&&S<4&&e.charCodeAt(y-1)===se;)y--,S++;if(S<=3&&(y===0||e.charCodeAt(y-1)===fe)){for(var A=h+o;A<e.length&&e.charCodeAt(A)===s;)A++;var _=Ye(e,A);if(Ht(e,A,_)){g=y,v=De(e,_);break}}C=h+1}var x;if(a===0)x=g>k&&e.charCodeAt(g-1)===fe?e.slice(k,g-1):e.slice(k,g);else{x="";for(var E=k;E<g;){var O=Ye(e,E);Ct(e,E,O);var j=Math.min(Ke,a);x+=`${e.slice(E+j,O)}
|
|
89
|
+
`,E=De(e,O)}x.length>0&&x.charCodeAt(x.length-1)===fe&&(x=x.slice(0,-1))}return{node:{type:ne.codeBlock,lang:f||void 0,text:x,infoString:m||void 0,attrs:p},end:v}}function $h(e,t,r){for(var i=0,a=t;a<r&&i<4;)e.charCodeAt(a)===le?i+=4-i%4:i++,a++;if(i<4)return"";for(var n="",s=4;s<i;s++)n+=" ";return n+e.slice(a,r)}function gM(e,t){let r=Ye(e,t);if(Ct(e,t,r),Ge<4)return null;let i="",a=t;for(;a<e.length;){let m=Ye(e,a);if(Ct(e,a,m),Ht(e,a,m)){for(var n=`${$h(e,a,m)}
|
|
90
|
+
`,s=De(e,m);s<e.length;){var o=Ye(e,s);if(Ht(e,s,o)){n+=`${$h(e,s,o)}
|
|
91
|
+
`,s=De(e,o);continue}Ct(e,s,o),Ge>=4&&(i+=n,a=s);break}if(a!==s)break;continue}if(Ge<4)break;let d=0,p=0;var l=0;for(let b=a;b<m&&p<4;b++){if(e.charCodeAt(b)===le){var u=4-p%4;p+u>4&&(l=p+u-4),p+=u}else p++;d++}var c="";if(l>0)for(var f=0;f<l;f++)c+=" ";c+=e.slice(a+d,m),i+=`${c}
|
|
92
|
+
`,a=De(e,m)}for(;i.length>0&&i.charCodeAt(i.length-1)===fe;)i=i.slice(0,-1);return i?{node:{type:ne.codeBlock,lang:void 0,text:i,infoString:void 0,attrs:void 0},end:a}:null}function yM(e,t,r,i){let a=Ye(e,t);if(Ct(e,t,a),Ge>3)return null;let n=t+Ke;if(e.charCodeAt(n)!==Re)return null;let s="",o=t,l,u=!1,c=!1,f=!1;for(;o<e.length;){let q=Ye(e,o);Ct(e,o,q);let J=o+Ke;if(e.charCodeAt(J)===Re){let Y=J+1;var m=Ge+1,d=!1;if(Y<q){var p=e.charCodeAt(Y);p===se?(Y++,m++,d=!0):p===le&&(d=!0)}for(var b="",k=!1,g=Y;g<q;g++)if(e.charCodeAt(g)===le){k=!0;break}if(k){var v=m;if(d&&Y<q&&e.charCodeAt(Y)===le){for(var w=4-v%4,C=0;C<w-1;C++)b+=" ";v+=w,Y++}for(var h=Y;h<q;h++)if(e.charCodeAt(h)===le){for(var y=4-v%4,S=0;S<y;S++)b+=" ";v+=y}else b+=e[h],v++}else b=e.slice(Y,q);if(!(s||l)){let te=b.match(/^\[!([A-Za-z]+)\]\s*$/);if(te){l=te[1].toUpperCase(),o=De(e,q);continue}}s+=`${b}
|
|
93
|
+
`;var A=b.trimStart();A.startsWith("```")||A.startsWith("~~~")?f=!f:(b.startsWith(" ")||b.startsWith(" "))&&(f=!0),c=A.length>0,o=De(e,q)}else if(s&&!Ht(e,o,q)&&c){if(Ge<4){var _=o+Ke,x=_<q?e.charCodeAt(_):0;if(x===br||x===Re||x===Je||x===_t||x===rt||(x===Oe||x===xt||x===gt)&&Pn(e,o)||(x===Oe||x===xt||x===Mn)&&_+1<q&&(e.charCodeAt(_+1)===se||e.charCodeAt(_+1)===le))break;if(x>=Te&&x<=je){for(var E=_;E<q&&e.charCodeAt(E)>=Te&&e.charCodeAt(E)<=je;)E++;if(E<q&&(e.charCodeAt(E)===mr||e.charCodeAt(E)===Pr))break}}if(f)break;s+=`${e.slice(o,q)}
|
|
94
|
+
`,u=!0,o=De(e,q)}else break}if(!(s||l))return null;var{inBlockQuote:O,l:j}=r;r.inBlockQuote=!0,u&&(r.l=!0);var T=r.i;r.i=T||!Ht(e,o,e.length);let F=In(s||"",r,i);return r.i=T,r.inBlockQuote=O,r.l=j,{node:{type:ne.blockQuote,children:F,alert:l||void 0},end:o}}function m1(e,t,r){for(var i=0,a=t;a<r;a++)e.charCodeAt(a)===le?i+=4-i%4:i++;return i}function gn(e,t,r){if(Ct(e,t,r),Ge>3)return null;var i=t+Ke;if(i>=r)return null;var a=e.charCodeAt(i),n=Ge,s=i,o=i;if(a===Oe||a===xt||a===Mn){if(s=i+1,s<r&&e.charCodeAt(s)!==se&&e.charCodeAt(s)!==le&&e.charCodeAt(s)!==fe)return null}else if(a>=Te&&a<=je){for(;o<r&&o-i<9;){var l=e.charCodeAt(o);if(l<Te||l>je)break;o++}if(o>i&&o<r){var u=e.charCodeAt(o);if(u===mr||u===Pr){if(s=o+1,s<r&&e.charCodeAt(s)!==se&&e.charCodeAt(s)!==le&&e.charCodeAt(s)!==fe)return null}else return null}else return null}else return null;var c=s,f=m1(e,t,s),m=0,d=c,p=f;if(c>=r)return{ordered:a>=Te&&a<=je,marker:a>=Te&&a<=je?e[o]:e[i],start:a>=Te&&a<=je?Number.parseInt(e.slice(i,o),10):void 0,contentStart:c,contentCol:f+1,markerCol:n,isEmpty:!0};for(;d<r&&(e.charCodeAt(d)===se||e.charCodeAt(d)===le);){if(e.charCodeAt(d)===le){var b=4-p%4;p+=b}else p++;d++,m++}var k=d>=r,g=p-f;return k||g>4?(p=f+1,d=c+1,m=1):m===0&&(p=f+1,d=c,m=1),{ordered:a>=Te&&a<=je,marker:a>=Te&&a<=je?e[o]:e[i],start:a>=Te&&a<=je?Number.parseInt(e.slice(i,o),10):void 0,contentStart:d,contentCol:p,markerCol:n,isEmpty:k}}var Bi=0;function Uh(e,t,r,i){var a=0,n=t;for(Bi=0;n<r&&a<i;){var s=e.charCodeAt(n);if(s===le){var o=4-a%4;if(a+o>i){Bi=a+o-i,n++,a=i;break}a+=o}else if(s===se)a++;else break;n++}return n}function Bh(e,t,r,i){var a=Ye(e,t),n=gn(e,t,a);if(!n)return null;var s=[],o=t,l=n.contentCol,u="",c=n.isEmpty,f=!1,m=!1;if(!n.isEmpty){for(var d=!1,p=n.contentStart;p<a;p++)if(e.charCodeAt(p)===le){d=!0;break}if(d){var b="",k=m1(e,t,n.contentStart),g=k-n.contentCol;if(g>0)for(var v=0;v<g;v++)b+=" ";for(var w=n.contentStart;w<a;w++)if(e.charCodeAt(w)===le){for(var C=4-k%4,h=0;h<C;h++)b+=" ";k+=C}else b+=e[w],k++;u=`${b}
|
|
95
|
+
`}else u=`${e.slice(n.contentStart,a)}
|
|
96
|
+
`}for(o=De(e,a);o<e.length;){var y=Ye(e,o);Ct(e,o,y);var S=e.charCodeAt(o+Ke);if(Ge<l&&(S===Oe||S===xt||S===gt)&&Ge<=3&&Pn(e,o))break;var A=gn(e,o,y);if(A&&A.ordered===n.ordered&&A.marker===n.marker&&A.markerCol<l){s.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),f&&(m=!0),l=A.contentCol,c=A.isEmpty,f=!1,u=A.isEmpty?"":`${e.slice(A.contentStart,y)}
|
|
97
|
+
`,o=De(e,y);continue}if(Ht(e,o,y)){var _=Uh(e,o,y,l);if(Bi>0||_<y){for(var x="",E=0;E<Bi;E++)x+=" ";u+=`${x+e.slice(_,y)}
|
|
98
|
+
`}else u+=`
|
|
99
|
+
`;o=De(e,y);for(var O=!1,j=0;j<u.length;j++){var T=u.charCodeAt(j);if(T!==fe&&T!==Dn&&T!==se&&T!==le){O=!0;break}}if(c&&!O)if(o<e.length){var F=Ye(e,o),q=gn(e,o,F);if(!q||q.ordered!==n.ordered||q.marker!==n.marker)break;f=!0}else break;if(o<e.length){var J=Ye(e,o);Ct(e,o,J);var Y=e.charCodeAt(o+Ke);if((Y===Oe||Y===xt||Y===gt)&&Ge<=3&&Pn(e,o))break;var te=gn(e,o,J);if(te&&te.ordered===n.ordered&&te.marker===n.marker&&te.markerCol<l){f=!0;continue}if(!Ht(e,o,J)&&Ge<l)break}continue}if(Ge>=l){var P=Uh(e,o,y,l);if(Bi>0){for(var D="",U=l,I=0;I<Bi;I++)D+=" ",U++;for(var R=P;R<y;R++)if(e.charCodeAt(R)===le){for(var M=4-U%4,z=0;z<M;z++)D+=" ";U+=M}else D+=e[R],U++;u+=`${D}
|
|
100
|
+
`}else u+=`${e.slice(P,y)}
|
|
101
|
+
`;o=De(e,y);continue}for(var B=!1,H=0;H<u.length;H++){var G=u.charCodeAt(H);if(G!==fe&&G!==Dn&&G!==se&&G!==le){B=!0;break}}if(!f&&B&&!c){var X=o+Ke,$=e.charCodeAt(X),L=$===br||$===Re||$===rt||$===Je||$===_t||($===Oe||$===xt||$===gt||$===Mn)&&(Pn(e,o)!=null||gn(e,o,y)!=null)||$>=Te&&$<=je&&gn(e,o,y)!=null;if(!L){u+=`${e.slice(X,y)}
|
|
102
|
+
`,o=De(e,y);continue}}break}if(s.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),s.length===0)return null;var W=m;if(!W)for(var K=0;K<s.length;K++){if(s[K].hasBlankAfter&&K<s.length-1){W=!0;break}if(!s[K].isEmpty){for(var ie=s[K].raw,re=ie.length,ue=0,ge=!1,we=!1,ke=!1,Pe=!1,de=0,Ve=0,st=-1;ue<re;){var ve=ie.indexOf(`
|
|
103
|
+
`,ue);if(ve<0&&(ve=re),Pe){Ct(ie,ue,ve);for(var Z=ie.slice(ue+Ke,ve),Q=0;Q<Z.length&&Z.charCodeAt(Q)===de;)Q++;Q>=Ve&&Z.slice(Q).trim()===""&&(Pe=!1),ue=ve<re?ve+1:re;continue}if(Ht(ie,ue,ve)){st>=0?ke=!0:ge&&(we=!0),ue=ve<re?ve+1:re;continue}if(Ct(ie,ue,ve),st>=0){if(Ge>=st){ue=ve<re?ve+1:re;continue}var ee=gn(ie,ue,ve);if(ee&&ee.markerCol<st&&ee.contentCol<=st){ue=ve<re?ve+1:re;continue}if(ee){ue=ve<re?ve+1:re;continue}st=-1,ke&&(we=!0,ke=!1)}var pe=ie.slice(ue+Ke,ve),ce=pe.charCodeAt(0);if((ce===Je||ce===_t)&&Ge<=3){for(var ct=0;ct<pe.length&&pe.charCodeAt(ct)===ce;)ct++;if(ct>=3){if(we&&ge){W=!0;break}Pe=!0,de=ce,Ve=ct,ge=!0,ue=ve<re?ve+1:re;continue}}var Fe=Ge<=3?gn(ie,ue,ve):null;if(Fe&&ge){if(we){W=!0;break}st=Fe.contentCol,ke=!1,ue=ve<re?ve+1:re,ge=!0;continue}if(we){W=!0;break}ge=!0,ue=ve<re?ve+1:re}if(W)break}}for(var He=[],bt=0;bt<s.length;bt++){for(var Et=s[bt],ot=Et.raw,kt=ot.length;kt>0&&ot.charCodeAt(kt-1)===fe;)kt--;var pt=kt<ot.length?ot.slice(0,kt):ot,Bn=null;if(pt.length>=3&&pt.charCodeAt(0)===vt){var fn=pt[1];(fn===" "||fn==="x"||fn==="X")&&pt.charCodeAt(2)===jr&&(Bn={type:ne.gfmTask,completed:fn==="x"||fn==="X"},pt=pt.slice(3))}var St;if(Et.isEmpty&&pt.trim()==="")St=[];else if(W){var Vn=r.inList;r.inList=!0;var ws=r.i;r.i=ws||bt!==s.length-1,St=In(pt,r,i),r.i=ws,r.inList=Vn}else{var Xr=r.inList;r.inList=!0;var Hn=r.i;if(r.i=Hn||bt!==s.length-1,St=In(pt,r,i),r.i=Hn,r.inList=Xr,St.length===1&&St[0].type===ne.paragraph)St=St[0].children;else if(r.p){var dn=[];r.p.push({src:St,dest:dn,unwrap:!0}),St=dn}else{for(var Fr=[],Jt=0;Jt<St.length;Jt++)if(St[Jt].type===ne.paragraph)for(var Dr=St[Jt].children,Ci=0;Ci<Dr.length;Ci++)Fr.push(Dr[Ci]);else Fr.push(St[Jt]);St=Fr}}if(Bn){var Kn=[Bn,{type:ne.text,text:" "}];if(r.p)r.p.push({src:St,dest:Kn,unwrap:!1});else for(var kr=0;kr<St.length;kr++)Kn.push(St[kr]);He.push(Kn)}else He.push(St)}return{node:{type:n.ordered?ne.orderedList:ne.unorderedList,start:n.ordered?n.start:void 0,items:He},end:o}}var il=new Set(["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]);function zr(e,t,r){let i={};for(let[s,o]of Object.entries(e)){let l=s.toLowerCase();if(l==="style"&&typeof o=="string"){let u={},c=[],f=0,m=0;for(let p=0;p<o.length;p++){let b=o.charCodeAt(p);b===Er?f++:b===Pr?f--:b===rl&&f===0&&(c.push(o.slice(m,p)),m=p+1)}m<o.length&&c.push(o.slice(m));let d=!1;c.forEach(p=>{let b=p.indexOf(":");if(b===-1)return;let k=p.slice(0,b).trim(),g=p.slice(b+1).trim();if(k&&g){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(g)){d=!0;return}let v=k.indexOf("-")===-1?k:k.replace(/-([a-z])/g,(w,C)=>C.toUpperCase());u[v]=g}}),!d&&Object.keys(u).length>0&&(i[s]=u)}else if((l==="href"||l==="src")&&(r!=null&&r.sanitizer)){let u=r.sanitizer(o,t,l);u!=null&&(i[s]=u)}else if(o==="")i[s]=!0;else if(o.length>=2&&o.charCodeAt(0)===gi&&o.charCodeAt(o.length-1)===Td){var a=o.slice(1,-1);if(a.length>0){var n=a.charCodeAt(0);if(n===vt||n===gi)try{i[s]=JSON.parse(a);continue}catch{}}if(a==="true"){i[s]=!0;continue}if(a==="false"){i[s]=!1;continue}if(r!=null&&r.evalUnserializableExpressions)try{i[s]=(0,eval)(`(${a})`);continue}catch{}i[s]=a}else i[s]=o}return i}function xn(e,t,r){let i=t.length;if(i===0)return r;var a=t.charCodeAt(0),n=a>=xe&&a<=Ee||a>=Xe&&a<=ut;if(!n){for(var s=String.fromCharCode(a),o=e.length-i,l=r;l<=o;){var u=e.indexOf(s,l);if(u===-1||u>o)return-1;for(var c=!0,f=1;f<i;f++){var m=e.charCodeAt(u+f),d=t.charCodeAt(f);if(m>=xe&&m<=Ee&&(m+=Sr),d>=xe&&d<=Ee&&(d+=Sr),m!==d){c=!1;break}}if(c)return u;l=u+1}return-1}a>=xe&&a<=Ee&&(a+=Sr);for(let b=r;b<=e.length-i;b++){var p=e.charCodeAt(b);if(p>=xe&&p<=Ee&&(p+=Sr),p!==a)continue;let k=!0;for(let g=1;g<i;g++){let v=e.charCodeAt(b+g),w=t.charCodeAt(g);if(v>=xe&&v<=Ee&&(v+=Sr),w>=xe&&w<=Ee&&(w+=Sr),v!==w){k=!1;break}}if(k)return b}return-1}function vM(e,t,r){let i=t.length;var a=t.charCodeAt(0);a>=xe&&a<=Ee&&(a+=Sr);for(let s=Math.min(r,e.length-i);s>=0;s--){var n=e.charCodeAt(s);if(n>=xe&&n<=Ee&&(n+=Sr),n!==a)continue;let o=!0;for(let l=1;l<i;l++){let u=e.charCodeAt(s+l),c=t.charCodeAt(l);if(u>=xe&&u<=Ee&&(u+=Sr),c>=xe&&c<=Ee&&(c+=Sr),u!==c){o=!1;break}}if(o)return s}return-1}var al=-1;function kf(e,t,r){let i=r.toLowerCase(),a=`<${i}`,n=`</${i}`,s=1,o=t,l=e.length;for(al=-1;o<l&&s>0;){let f=xn(e,a,o),m=xn(e,n,o);if(m===-1)return-1;if(f!==-1&&f<m){let d=$r(e,f);d?(d.tag.toLowerCase()===i&&!d.f&&!d.n&&!gs(d.tag)&&s++,o=d.end):o=f+1}else{var u=m+n.length,c=u<l?e.charCodeAt(u):62;if((c===Re||c===se||c===le||c===fe)&&(s--,s===0)){al=m;let d=m+n.length;for(;d<l&&e.charCodeAt(d)!==Re;)d++;return d+1}o=m+1}}return-1}function p1(e,t,r,i){if(i.ignoreHTMLBlocks||i.disableParsingRawHTML)return null;var a=Ye(e,t);if(Ct(e,t,a),Ge>3&&!r.inHTML)return null;var n=t+Ke;if(e.charCodeAt(n)!==rt)return null;var s=e.indexOf(">",n+1);if(s!==-1&&s<a){var o=e.slice(n+1,s);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(o)||/^[^\s@]+@[^\s@]+$/.test(o))return null}var l=bM(e,n);if(l>=1&&l<=5){var u=e.length;if(l===1){for(var c=e.length,f=0;f<gf.length;f++){var m=xn(e,`</${gf[f]}>`,n);m>=0&&m<c&&(c=m)}if(c<e.length){var d=e.indexOf(">",c);u=d>=0?De(e,d+1):e.length}}else{var p=l===2?"-->":l===3?"?>":l===4?">":"]]>",b=e.indexOf(p,n);b>=0&&(u=De(e,b+p.length))}var k=e.slice(n,u);if(l>=2)return{node:{type:ne.htmlComment,text:k,s:!1,raw:!0},end:u};var g="div",v=k.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);v&&(g=v[1]);var w=$r(e,n),C={},h;w&&!w.f&&(C=zr(w.attrs,g,i),h=w.g+w.b);var y=[],S=g.toLowerCase(),A=`</${S}`,_=xn(k,A,0),x="",E,O,j;if(w!=null&&w.f){j=k.slice(0,w.end-n);for(var T=k.slice(w.end-n);T.length>0&&T.charCodeAt(T.length-1)===fe;)T=T.slice(0,-1);T&&(O=rr(T))}else if(w&&!w.f){var F=w.end-n;if(_===-1){for(var q=k;q.length>0&&q.charCodeAt(q.length-1)===fe;)q=q.slice(0,-1);E=rr(q)}else{var J=F;k.charCodeAt(J)===fe&&J++;for(var Y=_;Y>J;){var te=k.charCodeAt(Y-1);if(te!==se&&te!==le&&te!==fe&&te!==Dn)break;Y--}var P=k.slice(J,Y);P&&(O=rr(P));for(var D=k.slice(_);D.length>0&&D.charCodeAt(D.length-1)===fe;)D=D.slice(0,-1);j=rr(D),x=k.slice(F,_).trim()}}var U=w?w.f:!1;return{node:{type:ne.htmlBlock,tag:g,attrs:C,b:h,children:y,e:O,h:j,j:E,text:x,c:!0,a:U},end:u}}if(l===6||l===7){var I=Mh(e,t),R=I<e.length?I:e.length,M=e.slice(n,R),z=I<e.length?De(e,I):e.length,B=$r(e,n);if(B){var H=B.tag,G=H.toLowerCase(),X=B.f;if(X){var $=e.slice(B.end,R);return{node:{type:ne.htmlBlock,tag:H,attrs:{},children:[],h:e.slice(n,B.end),e:$?rr($):void 0,text:$,c:!0,a:!0},end:z}}if(B.n||gs(H))return{node:{type:ne.htmlBlock,tag:H,attrs:zr(B.attrs,H,i),b:B.g+B.b,children:[],text:"",c:!1,a:!1},end:B.end<e.length&&e.charCodeAt(B.end)===fe?B.end+1:B.end};var L=r.d||0,W=e.slice(n,R),K=-1,ie=-1,re=!1;if(L<10){for(var ue=`</${G}`,ge=B.end-n,we=1,ke=ge;ke<W.length&&we>0;){var Pe=xn(W,`<${G}`,ke),de=xn(W,ue,ke);if(de===-1)break;if(Pe!==-1&&Pe<de){var Ve=Pe+G.length+1;if(Ve<W.length){var st=W.charCodeAt(Ve);(st===se||st===le||st===fe||st===Re||st===yt)&&we++}ke=Pe+1}else{var ve=de+ue.length;if(ve<W.length){var Z=W.charCodeAt(ve);if((Z===Re||Z===se||Z===le||Z===fe)&&(we--,we===0)){K=de;for(var Q=ve;Q<W.length&&W.charCodeAt(Q)!==Re;)Q++;ie=Q+1;break}}else if(we--,we===0){K=de,ie=W.length;break}ke=de+1}}if(K===-1&&!B.f&&(l===6||B.u)){var ee=kf(e,B.end,G);if(ee!==-1){for(var pe=al,ce=B.end,ct=!1,Fe=!1,He=!1,bt=0,Et=!1,ot=!1,kt=ce;kt<pe;){var pt=e.charCodeAt(kt);if(pt===fe)ot&&(ct=!0),Et||bt++,ot=!0,kt++;else if(pt===se||pt===le)kt++;else{if(!Et&&(Et=!0,bt>=2&&pt===rt)){He=!0;break}if(ot=!1,pt===rt){var Bn=e.charCodeAt(kt+1)|32;if((Bn===mf||Bn===i1||Bn===Ki)&&(jh.lastIndex=kt,jh.test(e))){Fe=!0;break}}kt++}}if(ct&&!He&&!Fe){var fn=Ye(e,ee);R=fn,z=De(e,fn),W=e.slice(n,R),M=e.slice(n,R),K=pe-n,ie=ee-n,re=!0}}}}var St=B.b.indexOf(`
|
|
104
|
+
`)!==-1||B.g.indexOf(`
|
|
105
|
+
`)!==-1,Vn=!1;if(K!==-1){var ws=W.slice(ie).trim();Vn=ws.length===0}var Xr=!1,Hn=R,dn=z;if(K!==-1){var Fr=n+ie,Jt=Ye(e,Fr-1);if(Fr<Jt){for(var Dr=Fr;Dr<Jt&&(e.charCodeAt(Dr)===se||e.charCodeAt(Dr)===le);)Dr++;if(Dr<Jt&&e.charCodeAt(Dr)===rt){var Ci=$r(e,Dr);Ci&&!Ci.f&&(Xr=!0,Hn=Fr,dn=Fr,Vn=!0)}}if(!Xr){var Kn=De(e,Jt);if(Kn<R){for(var kr=Kn;kr<R&&(e.charCodeAt(kr)===se||e.charCodeAt(kr)===le);)kr++;if(kr<R&&e.charCodeAt(kr)===rt){var q1=$r(e,kr);q1&&(Xr=!0,Hn=Jt,dn=Kn,Vn=!0)}}}if(!Xr&&r.inHTML){Xr=!0,Hn=Jt,dn=De(e,Jt);var z1=e.slice(Fr,Jt).trim();Vn=z1.length===0}}var Ei=[],Qt="";if(K!==-1){Qt=W.slice(B.end-n,K);var Ai=Qt.trim();if(Ai){var{inline:$1,inHTML:U1,d:B1}=r;r.inHTML=!0,r.d=L+1;var V1=G==="p";if(V1)r.inline=!0,Ei=Gi(Ai,!1,r,i);else{var $d=Qt.indexOf(`
|
|
80
106
|
|
|
81
|
-
`)!==-1,
|
|
107
|
+
`)!==-1,Ud=Bu.test(Ai),ql=Rh.test(Ai),H1=$d||Ud||r.inHTML&&ql,K1=Qt.length>=2&&Qt.charCodeAt(0)===fe&&Qt.charCodeAt(Qt.length-1)===fe&&!$d;K1&&!Ud&&!ql?Ei=[{type:ne.text,text:Ai}]:H1||ql?(r.inline=!1,Ei=In(Qt,r,i)):(r.inline=!0,Ei=Gi(Ai,!1,r,i))}r.inline=$1,r.inHTML=U1,r.d=B1}}var Bd=!1;if(l===6&&K!==-1&&!r.inHTML&&!St){var W1=/<[a-zA-Z][^>]*>/.test(Qt),G1=Qt.indexOf(`
|
|
82
108
|
|
|
83
|
-
`)!==-1||
|
|
109
|
+
`)!==-1||Bu.test(Qt);W1&&!G1&&(Bd=!0)}var J1=!re&&(r.inHTML||l===7||St||!Vn||Bd);if(J1){var pa,Mr,Vd=!1;if(K!==-1&&Xr){var Hd=!1;if(r.inHTML&&ie<W.length){for(var xs=ie;xs<W.length&&W.charCodeAt(xs)!==fe;)xs++;var zl=W.slice(ie,xs).trim();Hd=zl.length>1&&zl.charCodeAt(0)===rt&&zl.charCodeAt(1)!==yt}Mr=Hd?W.slice(B.end-n):Qt,Vd=!0}else(l===7||r.inHTML)&&K!==-1?(Mr=W.slice(B.end-n),Mr.charCodeAt(0)===fe&&(Mr=Mr.slice(1))):Xr?pa=e.slice(n,Hn):St?pa=M:(Mr=W.slice(B.end-n),Mr.charCodeAt(0)===fe&&(Mr=Mr.slice(1)));var Kd=pa!==void 0,$l=rr(pa===void 0?Mr||"":pa),Wd={type:ne.htmlBlock,tag:H,attrs:zr(B.attrs,H,i),b:B.g+B.b,children:Ei,e:Kd?void 0:$l,j:Kd?$l:void 0,text:$l,c:!0,a:!1};return Vd&&(Wd.x=!0),{node:Wd,end:dn}}var Gd=rr(Qt);return{node:{type:ne.htmlBlock,tag:H,attrs:zr(B.attrs,H,i),b:B.g+B.b,children:Ei,e:re?void 0:Gd,text:Gd,c:!1,a:!1},end:dn}}var Ss=M.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),Y1=Ss?Ss[2]:"div",Ul=Ss?Ss[1]==="/":!1,Bl,Jd,Yd,Cs="";if(Ul){var Vl=M.indexOf(">");Vl===-1?Bl=M:(Bl=M.slice(0,Vl+1),Cs=M.slice(Vl+1),Cs&&(Jd=rr(Cs)))}else Yd=rr(M);return{node:{type:ne.htmlBlock,tag:Y1,attrs:{},children:[],e:Jd,h:Bl,j:Yd,text:Ul?Cs:M,c:!0,a:Ul},end:z}}var Dt=$r(e,n);if(!Dt)return null;var mn=Dt.tag,Hl=mn.toLowerCase(),Xd=mn.charCodeAt(0),Kl=Xd>=xe&&Xd<=Ee;if(!(Kl||il.has(Hl)||ys.has(Hl)||Hl.includes("-")))return null;if(Dt.f)return{node:{type:ne.htmlSelfClosing,tag:mn,attrs:{},h:e.slice(n,Dt.end),a:!0},end:Dt.end};var Oi=kf(e,Dt.end,mn),ha=[];if(Oi!==-1){var X1=al,Es=e.slice(Dt.end,X1),As=Es.trim();if(As){var Z1=Es.indexOf(`
|
|
84
110
|
|
|
85
|
-
`)!==-1,
|
|
86
|
-
`,
|
|
87
|
-
${e.slice(
|
|
88
|
-
`,
|
|
89
|
-
`)!==-1&&(o=o.replace(/\n/g," ")),o.length>0&&o[0]===" "&&o.at(-1)===" "&&o.trim().length>0&&(o=o.slice(1,-1)),{node:{type:se.codeInline,text:o},end:n+s}}i=n+s}return null}function im(e,t,r){if(e.charCodeAt(t)!==it)return t;let a=Ea(e,t,r,96),i=t+a;for(;i<r;){let n=e.indexOf("`",i);if(n<0||n>=r)return t;let s=Ea(e,n,r,96);if(s===a)return n+s;i=n+s}return t}function CI(e,t,r){if(e.charCodeAt(t)!==mt)return t;if(t+1<r&&e.charCodeAt(t+1)===Pt){let l=t+2;for(;l<r&&e.charCodeAt(l)!==Ue;)l++;return l<r?l+1:t}if(t+3<r&&e.charCodeAt(t+1)===pr&&e.charCodeAt(t+2)===Me&&e.charCodeAt(t+3)===Me){let l=e.indexOf("-->",t+4);return l>=0?l+3:t}let a=t+1,i=a;for(;a<r;){let l=e.charCodeAt(a);if(l>=Te&&l<=Ne||l>=lt&&l<=vt||l>=ze&&l<=$e||l===Me)a++;else break}if(a===i)return t;let n=e.slice(i,a).toLowerCase(),s=!1;for(;a<r;){let l=e.charCodeAt(a);if(l===Ue){a++;break}if(l===Pt&&a+1<r&&e.charCodeAt(a+1)===Ue){a+=2,s=!0;break}if(l===Za||l===Xa){var o=l;for(a++;a<r&&e.charCodeAt(a)!==o;)a++;a<r&&a++;continue}if(l===ye)return t;a++}if(s||ao(n))return a;let c=1;for(;a<r&&c>0;)if(e.charCodeAt(a)===mt)if(a+1<r&&e.charCodeAt(a+1)===Pt){let l=a+2,u=l;for(;u<r&&(e.charCodeAt(u)>=Te&&e.charCodeAt(u)<=Ne||e.charCodeAt(u)>=lt&&e.charCodeAt(u)<=vt);)u++;if(e.slice(l,u).toLowerCase()===n){for(;u<r&&e.charCodeAt(u)!==Ue;)u++;if(u<r&&u++,c--,c===0)return u}a=u}else{let l=a+1,u=l;for(;u<r&&(e.charCodeAt(u)>=Te&&e.charCodeAt(u)<=Ne||e.charCodeAt(u)>=lt&&e.charCodeAt(u)<=vt);)u++;e.slice(l,u).toLowerCase()===n&&c++,a++}else a++;return a}function AI(e,t,r,a,i){if(e.charCodeAt(t)!==qt||t+1>=r||e.charCodeAt(t+1)!==qt)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===it){let o=im(e,n,r);if(o>n){n=o;continue}}if(s===qt&&e.charCodeAt(n+1)===qt){let o=e.slice(t+2,n),c=An(o,0,o.length,a,i);return{node:{type:se.textFormatted,tag:"del",children:c},end:n+2}}s===Bt&&n+1<r&&n++,n++}return null}function _I(e,t,r,a,i){if(e.charCodeAt(t)!==Vr||t+1>=r||e.charCodeAt(t+1)!==Vr)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===it){let o=im(e,n,r);if(o>n){n=o;continue}}if(s===Vr&&e.charCodeAt(n+1)===Vr&&n>t+2){let o=e.slice(t+2,n),c=An(o,0,o.length,a,i);return{node:{type:se.textFormatted,tag:"mark",children:c},end:n+2}}s===Bt&&n+1<r&&n++,n++}return null}function Uh(e,t,r){return e<bc?!!(am(e)&Ai):qP.test(t[r])}function Bh(e,t,r){return e<bc?!!(am(e)&Ua):zP.test(t[r])}function OI(e,t,r){var a=e.charCodeAt(t);if(a!==Nt&&a!==_t)return null;var i=Ea(e,t,r,a);if(i===0)return null;var n=t>0?e.charCodeAt(t-1):32,s=t+i<r?e.charCodeAt(t+i):32,o=Bh(n,e,t-1),c=Bh(s,e,t+i),l=t>0?Uh(n,e,t-1):!1,u=t+i<r?Uh(s,e,t+i):!1,f=!c&&(!u||o||l),m=!o&&(!l||c||u),d,h;return a===Nt?(d=f,h=m):(d=f&&(!m||l),h=m&&(!f||u)),{len:i,canOpen:d,canClose:h}}function TI(e,t,r,a){if(t.length!==0){for(var i=e.length,n=Array(i),s=null,o=null,c=0;c<i;c++){var l={node:e[c],prev:o,next:null};o?o.next=l:s=l,n[c]=l,o=l}for(var u=Array(t.length),f=0;f<t.length;f++)u[f]=n[t[f].idx];for(var m=[],d=0;d<12;d++)m[d]=-1;for(var h=0;h<t.length;){var k=t[h];if(!(k.active&&k.canClose)){h++;continue}for(var v=k.ch===Nt?0:1,y=v*6+k.len%3*2+(k.canOpen?1:0),b=m[y]===void 0?-1:m[y],w=-1,E=h-1;E>b;E--){var p=t[E];if(!(!p.active||p.ch!==k.ch||!p.canOpen)&&!((k.canOpen||p.canClose)&&(p.len+k.len)%3===0&&p.len%3!==0)){w=E;break}}if(w<0){m[y]=h-1,!k.canOpen&&(k.active=!1),h++;continue}var g=t[w],S=g.len>=2&&k.len>=2,C=S?2:1;g.len-=C,k.len-=C;var O=u[w],_=u[h],x=O.node,A=_.node;x.text=x.text.slice(0,x.text.length-C),A.text=A.text.slice(C);for(var N=[],I=O.next;I&&I!==_;)N.push(I.node),I=I.next;var F={type:se.textFormatted,tag:S?"strong":"em",children:N},$={node:F,prev:O,next:_};O.next=$,_.prev=$;for(var Y=w+1;Y<h;Y++)t[Y].active=!1;if(g.len===0&&(g.active=!1,x.text==="")){var Z=O.prev;$.prev=Z,Z?Z.next=$:s=$}if(k.len===0){if(k.active=!1,A.text===""){var ie=_.next;$.next=ie,ie&&(ie.prev=$)}}else continue;h++}for(var P=0,D=s;D;){var U=D.node;if(U.type===se.text){var T=U;if(T.text===""){D=D.next;continue}if(P>0&&e[P-1].type===se.text){e[P-1].text+=T.text,D=D.next;continue}}e[P++]=U,D=D.next}e.length=P}}function Po(e,t,r,a){return t(e,r,a)===null?null:e}var Vh=0,Zf=0,Hh=0,Qf=0,Wh=0,ed=0,vu=0,zr=0;function PI(){return vu===2147483647&&(Zf=0,Qf=0,ed=0,Il=0,vu=0),++vu}var bu=null,Il=0,Io=[],ku=256;function Kh(e,t,r,a,i){var K;let n=e.charCodeAt(t)===pr,s=n?t+1:t;if(e.charCodeAt(s)!==It||Qf===zr&&s>=Hh)return null;var o=Il===zr?bu:null,c=o===null?0:o[s];if(c<0)return null;var l=c;if(c===0){var u=e.indexOf("]",s+1);if(u<0||u>=r)return Hh=s,Qf=zr,null;l=s+1;var f=0;Io[f++]=s;for(var m=r-s>=ku;l<r&&f>0;){var d=e.charCodeAt(l);if(d===Bt&&l+1<r){l+=2;continue}if(d===it){var h=im(e,l,r);if(h>l){l=h;continue}}if(d===mt){var k=Kk(e,l,r);if(k){l=k.end;continue}var v=CI(e,l,r);if(v>l){l=v;continue}}if(d===It)Io[f++]=l;else if(d===un){var y=Io[--f];o===null&&m&&l-s>=ku&&(o=bu=new Int32Array(r),Il=zr),o!==null&&(o[y]=l+1)}l++}if(f>0){if(o===null&&m&&l-s>=ku&&(o=bu=new Int32Array(r),Il=zr),o!==null)for(;f>0;)o[Io[--f]]=-1;return null}}var b=l-1,w=e.slice(s+1,b),E=l<r?e.charCodeAt(l):0,p=!1;if(E===an){var g=!0;for(l++;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;var S="",C=l;if(l<r&&e.charCodeAt(l)===mt){for(l++,C=l;C<r&&e.charCodeAt(C)!==Ue;){if(e.charCodeAt(C)===Bt&&C+1<r){C+=2;continue}if(e.charCodeAt(C)===ye){g=!1;break}C++}g&&(C>=r||e.charCodeAt(C)!==Ue)&&(g=!1),g&&(S=e.slice(l,C),C++)}else if(g){var O=Zf===zr?Vh:-1;if(O>=0&&l>=O)g=!1;else{for(var _=0,x=!1;C<r;){var A=e.charCodeAt(C);if(A===Bt&&C+1<r){C+=2;continue}if(A===an)_++;else if(A===ln){if(x=!0,_===0)break;_--}else if(A===ce||A===ye)break;C++}C>=r&&!x&&(O<0||l<O)&&(Vh=l,Zf=zr),S=e.slice(l,C)}}if(g){for(l=C;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;var N;if(l<r){var I=e.charCodeAt(l);if(I===Za||I===Xa||I===an){var F=I===an?41:I;l++;for(var $=l;l<r&&e.charCodeAt(l)!==F;)e.charCodeAt(l)===Bt&&l+1<r&&l++,l++;l>=r?g=!1:(N=e.slice($,l),l++)}}if(g){for(;l<r&&(e.charCodeAt(l)===ce||e.charCodeAt(l)===ye);)l++;(l>=r||e.charCodeAt(l)!==ln)&&(g=!1)}}if(g){if(l++,S=ma(Ni(S)),N!==void 0&&(N=ma(Ni(N))),n){var Y=An(w,0,w.length,a,i),Z=Jl(Y);return{node:{type:se.image,target:Po(S,(i==null?void 0:i.sanitizer)||$n,"img","src"),alt:Z,title:N},end:l}}var ie=a.inAnchor;a.inAnchor=!0;var V=ie?[{type:se.text,text:w}]:An(w,0,w.length,a,i);return a.inAnchor=ie,!a.inAnchor&&td(V)?null:{node:{type:se.link,target:Po(S,(i==null?void 0:i.sanitizer)||$n,"a","href"),title:N,children:V},end:l}}l=b+1,p=!0}var P="",D=l;if(!p&&E===It){var U=l+1;D=U;for(var T=!1;D<r&&e.charCodeAt(D)!==un;){if(e.charCodeAt(D)===Bt&&D+1<r){D+=2;continue}if(e.charCodeAt(D)===It){T=!0;break}D++}if(T||D>=r)return null;var R=e.slice(U,D);if(R.trim())P=Tl(R);else{if(Rh(w))return null;P=Tl(w)}D+=1}else{if(Rh(w))return null;P=Tl(w)}var M=(K=a.refs)==null?void 0:K[P];if(!M)return null;if(n)return{node:{type:se.image,target:Po(M.target,(i==null?void 0:i.sanitizer)||$n,"img","src"),alt:Jl(An(w,0,w.length,a,i)),title:M.title},end:D};var B=a.inAnchor;a.inAnchor=!0;var V=B?[{type:se.text,text:w}]:An(w,0,w.length,a,i);return a.inAnchor=B,!a.inAnchor&&td(V)?null:{node:{type:se.link,target:Po(M.target,(i==null?void 0:i.sanitizer)||$n,"a","href"),title:M.title,children:V},end:D}}function Kk(e,t,r){if(e.charCodeAt(t)!==mt)return null;for(var a=t+1;a<r;){var i=e.charCodeAt(a);if(i===Ue)break;if(i===ce||i===ye||i===wa||i===mt)return null;a++}if(a>=r||e.charCodeAt(a)!==Ue)return null;var n=e.slice(t+1,a),s=n.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return s?{node:{type:se.link,target:n,title:void 0,children:[{type:se.text,text:n}]},end:a+1}:n.indexOf("@")!==-1&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)?{node:{type:se.link,target:`mailto:${n}`,title:void 0,children:[{type:se.text,text:n}]},end:a+1}:null}function II(e,t,r,a){if(e.charCodeAt(t)!==It||t+1>=r||e.charCodeAt(t+1)!==Kn||ed===zr&&t>=Wh)return null;let i=t+2;for(;i<r&&e.charCodeAt(i)!==un&&e.charCodeAt(i)!==ye;)i++;if(i>=r)return Wh=t,ed=zr,null;if(e.charCodeAt(i)!==un)return null;let n=e.slice(t+2,i);return n?{node:{type:se.footnoteReference,target:`#${ei(n)}`,text:n},end:i+1}:null}function RI(e,t,r,a){if(a.disableBareUrls)return null;var i="",n=!1,s=e.charCodeAt(t);if(s===Vl||s===72?t+8<=r&&e.charCodeAt(t+1)===Ri&&e.charCodeAt(t+2)===Ri&&e.charCodeAt(t+3)===Vf&&(e.charCodeAt(t+4)===Fk&&e.charCodeAt(t+5)===ar&&e.charCodeAt(t+6)===Pt&&e.charCodeAt(t+7)===Pt?i="https://":e.charCodeAt(t+4)===ar&&e.charCodeAt(t+5)===Pt&&e.charCodeAt(t+6)===Pt&&(i="http://")):s===Ya||s===70?t+6<=r&&e.charCodeAt(t+1)===Ri&&e.charCodeAt(t+2)===Vf&&e.charCodeAt(t+3)===ar&&e.charCodeAt(t+4)===Pt&&e.charCodeAt(t+5)===Pt&&(i="ftp://"):(s===Ba||s===87)&&t+4<=r&&e.charCodeAt(t+1)===Ba&&e.charCodeAt(t+2)===Ba&&e.charCodeAt(t+3)===Hr&&(i="www.",n=!0),!i)return null;let o=t+i.length;for(;o<r;){let g=e.charCodeAt(o);if(g===ce||g===ye||g===de||g===wa||g===mt||g===Ue)break;o++}for(var c=0,l=0,u=t;u<o;u++){var f=e.charCodeAt(u);f===an?c++:f===ln&&l++}let m=o;for(;m>t+i.length;){let g=e.charCodeAt(m-1);if(g===Hr||g===AP||g===ar||g===pr||g===Yi||g===ln||g===Nt||g===_t||g===qt){if(g===ln){if(c>=l)break;l--}m--}else if(g===Hl){for(var d=m-2;d>t&&(e.charCodeAt(d)>=Te&&e.charCodeAt(d)<=Ne||e.charCodeAt(d)>=lt&&e.charCodeAt(d)<=vt||e.charCodeAt(d)>=ze&&e.charCodeAt(d)<=$e);)d--;d>=t&&e.charCodeAt(d)===vc?m=d:m--}else break}if(m<=t+i.length)return null;var h=t+(n?4:i.length),k=e.indexOf("/",h);if((k<0||k>m)&&(k=m),n&&e.indexOf(".",h)===-1)return null;for(var v=-1,y=-1,b=k-1;b>=h;b--)if(e.charCodeAt(b)===Hr)if(v<0)v=b;else{y=b;break}for(var w=y>=0?y+1:h,b=w;b<k;b++)if(e.charCodeAt(b)===_t)return null;var E=e.slice(t,m),p=n?`http://${E}`:E;return{node:{type:se.link,target:p,title:void 0,children:[{type:se.text,text:E}]},end:m}}function NI(e,t,r,a){if(a.disableBareUrls)return null;for(var i=t,n=i;i<r;){var s=e.charCodeAt(i);if(s>=Te&&s<=Ne||s>=lt&&s<=vt||s>=ze&&s<=$e||s===Hr||s===pr||s===Xr||s===36||s===Uf||s===vc||s===Xa||s===Nt||s===Sa||s===Pt||s===Vr||s===Yi||s===Kn||s===_t||s===it||s===Qa||s===Ut||s===rm||s===qt||s===Me)i++;else break}if(i===n||i>=r||e.charCodeAt(i)!==Dk)return null;i++;for(var o=i,c=-1,l=i;i<r;){var s=e.charCodeAt(i);if(s>=Te&&s<=Ne||s>=lt&&s<=vt||s>=ze&&s<=$e)i++;else if((s===Me||s===_t)&&i>o)i++;else if(s===Hr){if(i===o)break;var u=e.charCodeAt(i-1);if(u===Me||u===_t||i-l>63)break;if(i+1<r){var f=e.charCodeAt(i+1);if(f>=Te&&f<=Ne||f>=lt&&f<=vt||f>=ze&&f<=$e)c=i,l=i+1,i++;else break}else break}else break}if(i-l>63||c<0)return null;var m=e.charCodeAt(i-1);if(!(m>=Te&&m<=Ne||m>=lt&&m<=vt||m>=ze&&m<=$e)||i<=c+1)return null;for(var d=-1,h=c-1;h>=o;h--)if(e.charCodeAt(h)===Hr){d=h;break}for(var k=d>=0?d+1:o,h=k;h<i;h++)if(e.charCodeAt(h)===_t)return null;var v=e.slice(t,i);return{node:{type:se.link,target:`mailto:${v}`,title:void 0,children:[{type:se.text,text:v}]},end:i}}function td(e){for(var t=0;t<e.length;t++)if(e[t].type===se.link||"children"in e[t]&&Array.isArray(e[t].children)&&td(e[t].children))return!0;return!1}function Jl(e,t){for(var r="",a=0;a<e.length;a++){var i=e[a];i.type===se.text?r+=i.text:i.type===se.breakLine?r+=" ":i.type===se.codeInline||i.type===se.footnoteReference?r+=i.text:"children"in i&&Array.isArray(i.children)?r+=Jl(i.children,t):!t&&i.type===se.image&&(r+=i.alt||"")}return r}function rd(e,t,r){for(var a=0;a<e.length;a++){var i=e[a];if(i.type===se.heading){var n=i;n.id=mI(r(Jl(n.children,!0)),t)}if("children"in i){var s=i.children;Array.isArray(s)&&rd(s,t,r)}if((i.type===se.orderedList||i.type===se.unorderedList)&&Array.isArray(i.items))for(var o=i.items,c=0;c<o.length;c++)rd(o[c],t,r)}}function Da(e){return{type:se.text,text:e}}function jI(e,t,r){var a=t+1;if(a>=r)return-1;if(e.charCodeAt(a)===Xr){a++;var i=a<r&&(e.charCodeAt(a)===Mk||e.charCodeAt(a)===Lk);i&&a++;for(var n=a,s=i?6:7;a<r&&a-n<=s;){var o=e.charCodeAt(a),c=o>=ze&&o<=$e||i&&(o>=Te&&o<=Bf||o>=lt&&o<=Ya);if(!c)break;a++}return a===n||a-n>s?-1:a<r&&e.charCodeAt(a)===Hl?a+1:-1}for(var l=a;a<r&&a-l<48;){var u=e.charCodeAt(a);if(u>=Te&&u<=Ne||u>=lt&&u<=vt||u>=ze&&u<=$e){a++;continue}break}return a===l?-1:a<r&&e.charCodeAt(a)===Hl?a+1:-1}function DI(e,t,r,a,i){if(e.charCodeAt(t)!==mt)return null;var n=t+1;if(n>=r)return null;var s=e.charCodeAt(n);if(s===pr&&n+1<r&&e.charCodeAt(n+1)===Me&&n+2<r&&e.charCodeAt(n+2)===Me){var o=n+3;if(o<r&&e.charCodeAt(o)===Ue)return{node:{type:se.htmlComment,text:"",s:!0},end:o+1};if(o+1<r&&e.charCodeAt(o)===Me&&e.charCodeAt(o+1)===Ue)return{node:{type:se.htmlComment,text:"-",s:!0},end:o+2};var c=e.indexOf("-->",o);return c!==-1&&c<=r-3?{node:{type:se.htmlComment,text:e.slice(t+4,c),s:!1},end:c+3}:null}if(s===Yi){var l=e.indexOf("?>",n+1);return l!==-1&&l<r?{node:{type:se.htmlSelfClosing,tag:"?",attrs:{},m:e.slice(t,l+2),a:!1},end:l+2}:null}if(s===pr&&n+1<r){var u=e.charCodeAt(n+1);if(u===It&&e.slice(n+1,n+8)==="[CDATA["){var f=e.indexOf("]]>",n+8);return f!==-1&&f<r?{node:{type:se.htmlSelfClosing,tag:"![CDATA[",attrs:{},m:e.slice(t,f+3),a:!1},end:f+3}:null}if(u>=Te&&u<=Ne){var m=e.indexOf(">",n+2);return m!==-1&&m<r?{node:{type:se.htmlSelfClosing,tag:`!${e.slice(n+1,m)}`,attrs:{},m:e.slice(t,m+1),a:!1},end:m+1}:null}}if(s===Pt){var d=n+1;if(d>=r)return null;var h=e.charCodeAt(d);if(!(h>=Te&&h<=Ne||h>=lt&&h<=vt))return null;for(d++;d<r;){var k=e.charCodeAt(d);if(k>=Te&&k<=Ne||k>=lt&&k<=vt||k>=ze&&k<=$e||k===Me)d++;else break}for(;d<r&&(e.charCodeAt(d)===ce||e.charCodeAt(d)===de||e.charCodeAt(d)===ye);)d++;if(d<r&&e.charCodeAt(d)===Ue){var v=e.slice(n+1,d).trim();return{node:{type:se.htmlSelfClosing,tag:v,attrs:{},h:e.slice(t,d+1),a:!0},end:d+1}}return null}if(!(s>=Te&&s<=Ne||s>=lt&&s<=vt))return null;var y=Sn(e,t);if(!y)return null;var b=y.tag,w=b.toLowerCase(),E=y.n;if(E||ao(b))return{node:{type:se.htmlSelfClosing,tag:b,attrs:wn(y.attrs,b,i),m:y.q?Gf(y):e.slice(t,y.end),a:!1},end:y.end};var p=io.has(w),g=Xf(e.slice(0,r),y.end,b);if(g===-1)return{node:{type:se.htmlSelfClosing,tag:b,attrs:wn(y.attrs,b,i),m:y.q?Gf(y):e.slice(t,y.end),a:!1},end:y.end};var S=bI(e,`</${w}`,g),C=e.slice(y.end,S);if(p){var O=Pr(C);return{node:{type:se.htmlBlock,tag:b,attrs:wn(y.attrs,b,i),b:y.g+y.b,children:[],e:O||void 0,h:e.slice(S,g),text:O,c:!0,a:!1},end:g}}var _=[],x=C.trim();if(x){var{inAnchor:A,inline:N,k:I}=a;w==="a"&&(a.inAnchor=!0),a.k=!1;var F=x.indexOf(`
|
|
111
|
+
`)!==-1,Q1=Bu.test(As),e0=Rh.test(As),t0=r.inline,r0=r.inHTML,n0=r.d;r.inHTML=!0,r.d=(r.d||0)+1,Z1||Q1||e0?(r.inline=!1,ha=In(Es,r,i)):(r.inline=!0,ha=Gi(As,!1,r,i)),r.inline=t0,r.inHTML=r0,r.d=n0}var i0=Ye(e,Oi),a0=e.slice(Oi,i0).trim(),Zd=a0?Oi:De(e,Oi),Qd=Kl?e.slice(n,Oi):e.slice(n,Zd);return{node:{type:ne.htmlBlock,tag:mn,attrs:zr(Dt.attrs,mn,i),b:Dt.g+Dt.b,children:ha,j:rr(Qd),text:Kl?Es:Qd,c:!0,a:!1},end:Zd}}var ga=Mh(e,Dt.end),s0=ga<e.length?De(e,ga):ga,Wl=e.slice(Dt.end,ga);if(Wl.trim()){var{inline:o0,inHTML:l0,d:u0}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,ha=In(Wl,r,i),r.inline=o0,r.inHTML=l0,r.d=u0}var c0=e.slice(Dt.end,ga);return{node:{type:ne.htmlBlock,tag:mn,attrs:zr(Dt.attrs,mn,i),b:Dt.g+Dt.b,children:ha,e:rr(c0),text:Wl,c:!0,a:!1},end:s0}}function bM(e,t){if(e.charCodeAt(t)!==rt)return 0;var r=t+1,i=e.length;if(e.charCodeAt(r)===Wt&&e.charCodeAt(r+1)===Oe&&e.charCodeAt(r+2)===Oe)return 2;if(e.charCodeAt(r)===da)return 3;if(e.charCodeAt(r)===Wt){var a=e.charCodeAt(r+1);if(a>=xe&&a<=Ee)return 4;if(e.slice(r+1,r+8)==="[CDATA[")return 5}for(var n=e.charCodeAt(r)===yt,s=n?r+1:r,o=s;o<i;){var l=e.charCodeAt(o);if(l>=xe&&l<=Ee||l>=Xe&&l<=ut||l>=Te&&l<=je||l===Oe)o++;else break}if(o===s)return 0;var u=e.slice(s,o);if(ys.has(u.toLowerCase())){if(n)return 0;var c=e.charCodeAt(o);return c===se||c===le||c===Re||c===fe||o>=i?1:0}if(il.has(u.toLowerCase())){if(n){for(var f=o;f<i&&(e.charCodeAt(f)===se||e.charCodeAt(f)===le);)f++;return f<i&&e.charCodeAt(f)===Re?6:0}var m=o<i?e.charCodeAt(o):-1;return m===se||m===le||m===Re||m===fe||m===yt||m===-1?6:0}if(n){for(var d=o;d<i&&(e.charCodeAt(d)===se||e.charCodeAt(d)===le);)d++;if(d<i&&e.charCodeAt(d)===Re){var p=Ye(e,t),b=e.slice(d+1,p).trim();if(b==="")return 7}}else{var k=Ye(e,t),g=$r(e,t);if(g&&g.end<=k){var v=e.slice(g.end,k).trim();if(v==="")return 7}}return 0}function Vh(e,t,r){for(var i=0,a=e.length;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;for(;a>i&&(e.charCodeAt(a-1)===se||e.charCodeAt(a-1)===le);)a--;i<a&&e.charCodeAt(i)===It&&i++,a>i&&e.charCodeAt(a-1)===It&&(a-2<i||e.charCodeAt(a-2)!==Tt)&&a--;for(var n=[],s=i,o=!1,l=[],u=i;u<a;){var c=e.charCodeAt(u);if(c===Tt&&u+1<a){e.charCodeAt(u+1)===It?(o||(o=!0,l=[]),l.push(e.slice(s,u)),l.push("|"),u+=2,s=u):u+=2;continue}if(c===Je){for(var f=0;u<a&&e.charCodeAt(u)===Je;)f++,u++;for(var m=!1;u<a&&!m;){for(var d=0;u<a&&e.charCodeAt(u)===Je;)d++,u++;d===f?m=!0:d===0&&u++}continue}if(c===It){var p=o?(l.push(e.slice(s,u)),l.join("")):e.slice(s,u);n.push(p.trim()),u++,s=u,o=!1,l=[];continue}u++}var b=o?(l.push(e.slice(s,a)),l.join("")):e.slice(s,a);return n.push(b.trim()),n.map(k=>{var g=k.indexOf("\\|")===-1?k:k.replace(/\\\|/g,"|");return g?Gi(g,!1,t,r):[]})}function Hh(e,t,r,i){let a=Ye(e,t);var n=e.indexOf("|",t);if(n<0||n>=a)return null;let s=De(e,a);if(s>=e.length)return null;let o=Ye(e,s);if(!f1(e,s,o))return null;let l=e.slice(t,a),u=e.slice(s,o);for(var c=[],f=0,m=u.length;f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;for(f<m&&u.charCodeAt(f)===It&&f++;f<m;){for(;f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;if(f>=m||u.charCodeAt(f)===It)break;var d=u.charCodeAt(f)===qt;for(d&&f++;f<m&&u.charCodeAt(f)===Oe;)f++;var p=f<m&&u.charCodeAt(f)===qt;for(p&&f++,c.push(d&&p?"center":p?"right":d?"left":null);f<m&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;f<m&&u.charCodeAt(f)===It&&f++}let b=Vh(l,r,i);if(c.length!==b.length)return null;let k=[],g=De(e,o);for(;g<e.length;){let S=Ye(e,g),A=e.slice(g,S);if(Ht(e,g,S))break;if(Ct(e,g,S),Ge<4){var v=e.charCodeAt(g+Ke);if(v===Re||v===br||(v===Oe||v===xt||v===gt)&&Pn(e,g))break;if(v===Je||v===_t){for(var w=g+Ke,C=0;w<S&&e.charCodeAt(w)===v;)C++,w++;if(C>=3)break}}k.push(Vh(A,r,i)),g=De(e,S)}if(i.optimizeForStreaming&&k.length===0)return null;for(var h=b.length,y=0;y<k.length;y++)if(k[y].length<h)for(;k[y].length<h;)k[y].push([]);else k[y].length>h&&(k[y].length=h);return{node:{type:ne.table,header:b,cells:k,align:c},end:g}}function kM(e,t,r){var i=Ye(e,t);if(Ct(e,t,i),Ge>3)return null;var a=t+Ke;if(e.charCodeAt(a)!==vt)return null;if(a+1<e.length&&e.charCodeAt(a+1)===cn){var n=wM(e,a,r);return n||null}r.refs||(r.refs={});var s=d1(e,a,r.refs);return s===null?null:{node:{type:ne.refCollection},end:s}}function wM(e,t,r){var i=e.length;if(e.charCodeAt(t)!==vt||t+1>=i||e.charCodeAt(t+1)!==cn)return null;for(var a=t+2,n=a;a<i&&e.charCodeAt(a)!==jr;){if(e.charCodeAt(a)===fe)return null;a++}if(a>=i)return null;var s=`^${e.slice(n,a)}`.toLowerCase();if(a++,a>=i||e.charCodeAt(a)!==qt)return null;for(a++;a<i&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;if(a<i&&e.charCodeAt(a)===fe)for(a++;a<i&&(e.charCodeAt(a)===se||e.charCodeAt(a)===le);)a++;var o=e.indexOf(`
|
|
112
|
+
`,a);o<0&&(o=i);for(var l=e.slice(a,o).trim(),u=o<i?o+1:i;u<i;){var c=Ye(e,u);if(Ct(e,u,c),Ge>=2&&!Ht(e,u,c))l+=`
|
|
113
|
+
${e.slice(u,c)}`,u=De(e,c);else if(Ht(e,u,c)){var f=De(e,c);if(f<i){var m=Ye(e,f);if(Ct(e,f,m),Ge>=2){l+=`
|
|
114
|
+
`,u=De(e,c);continue}}break}else break}var d=r.refs;return d&&!d[s]&&(d[s]={target:l,title:void 0}),{node:{type:ne.footnote},end:u}}function xM(e,t,r,i){let a=t,n=0,s=0,o=-1;for(;a<e.length;){let j=o>=0?o:Ye(e,a);if(o=-1,Ht(e,a,j))break;if(Ct(e,a,j),Ge<4&&s>0&&!r.l){let F=e.charCodeAt(a+Ke);if(F===dr||F===Oe){let q=a+Ke;for(;q<j&&e.charCodeAt(q)===F;)q++;for(;q<j&&(e.charCodeAt(q)===se||e.charCodeAt(q)===le);)q++;if(q>=j){n=F===dr?1:2,a=De(e,j);break}}}s=j;let T=De(e,j);if(T<e.length){if(e.charCodeAt(T)===pf){var l=Ye(e,T);a=De(e,l),s=l;continue}let F=Ye(e,T);if(o=F,Ct(e,T,F),Ge<4){let q=e.charCodeAt(T+Ke);if(q===Re){a=T;break}if(q===br){for(var u=T+Ke,c=0;u<F&&e.charCodeAt(u)===br&&c<=6;)c++,u++;if(c>=1&&c<=6&&(u>=F||e.charCodeAt(u)===se||e.charCodeAt(u)===le)){a=T;break}}if(q===Je||q===_t){for(var f=T+Ke,m=0;f<F&&e.charCodeAt(f)===q;)m++,f++;if(m>=3){a=T;break}}if(q===rt){var d=T+Ke+1,p=d<F?e.charCodeAt(d):0,b=p===Wt||p===da;if(!b&&p===yt){for(var k=d+1,g=k;g<F&&(e.charCodeAt(g)>=xe&&e.charCodeAt(g)<=Ee||e.charCodeAt(g)>=Xe&&e.charCodeAt(g)<=ut||e.charCodeAt(g)>=Te&&e.charCodeAt(g)<=je||e.charCodeAt(g)===Oe);)g++;g>k&&(b=il.has(e.slice(k,g).toLowerCase()))}else if(!b){for(var v=d;v<F&&(e.charCodeAt(v)>=xe&&e.charCodeAt(v)<=Ee||e.charCodeAt(v)>=Xe&&e.charCodeAt(v)<=ut||e.charCodeAt(v)>=Te&&e.charCodeAt(v)<=je||e.charCodeAt(v)===Oe);)v++;if(v>d){var w=e.slice(d,v).toLowerCase();b=il.has(w)||ys.has(w)}}if(b&&p1(e,T,r,i)){a=T;break}}if(q===Oe||q===xt||q===Mn){let J=T+Ke+1;if(J<F&&(e.charCodeAt(J)===se||e.charCodeAt(J)===le)){var C=ts(e,J,F);if(C<F&&!Pn(e,T)){a=T;break}}}if(q>=Te&&q<=je){let J=T+Ke;for(;J<F&&e.charCodeAt(J)>=Te&&e.charCodeAt(J)<=je;)J++;if(J<F&&(e.charCodeAt(J)===mr||e.charCodeAt(J)===Pr)&&J-(T+Ke)===1&&e.charCodeAt(T+Ke)===49){var h=J+1;if(h<F&&(e.charCodeAt(h)===se||e.charCodeAt(h)===le)){var y=ts(e,h,F);if(y<F){a=T;break}}}}if(q===It){let J=De(e,F);if(J<e.length){let Y=Ye(e,J);if(f1(e,J,Y)){a=T;break}}}if((q===Oe||q===xt||q===gt)&&Pn(e,T)){if(q!==Oe){a=T;break}let J=T+Ke;for(;J<F&&e.charCodeAt(J)===Oe;)J++;for(;J<F&&(e.charCodeAt(J)===se||e.charCodeAt(J)===le);)J++;if(J<F){a=T;break}}}}a=De(e,j)}for(var S=n?s:a;S>t&&(e.charCodeAt(S-1)===fe||e.charCodeAt(S-1)===Dn||e.charCodeAt(S-1)===se||e.charCodeAt(S-1)===le);)S--;for(var A=t;A<S&&(e.charCodeAt(A)===se||e.charCodeAt(A)===le);)A++;if(A>=S)return null;for(var _=!1,x=A;x<S;x++)if(e.charCodeAt(x)===pf){_=!0;break}var E=_?e.slice(A,S).replace(/\u001E/g,""):e.slice(A,S);if(!E)return null;let O=Gi(E,!0,r,i);return n?{node:{type:ne.heading,level:n,children:O,id:""},end:a}:{node:{type:ne.paragraph,children:O},end:a}}function Gi(e,t,r,i){var a=r.t;if(!a){var n=r.k;r.k=t;var s=Vr(e,0,e.length,r,i);return r.k=n,s}var o=[];return a.push({dest:o,text:e,breaks:t,inline:r.inline,inAnchor:r.inAnchor,inHTML:r.inHTML,htmlDepth:r.d,inList:r.inList,inBlockQuote:r.inBlockQuote,noSetext:r.l,depth:r.o}),o}function SM(e,t,r){if(e.charCodeAt(t)!==Je)return null;let i=Ln(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return null;let s=Ln(e,n,r,96);if(s===i){let o=e.slice(t+i,n);return o.indexOf(`
|
|
115
|
+
`)!==-1&&(o=o.replace(/\n/g," ")),o.length>0&&o[0]===" "&&o.at(-1)===" "&&o.trim().length>0&&(o=o.slice(1,-1)),{node:{type:ne.codeInline,text:o},end:n+s}}a=n+s}return null}function Nd(e,t,r){if(e.charCodeAt(t)!==Je)return t;let i=Ln(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return t;let s=Ln(e,n,r,96);if(s===i)return n+s;a=n+s}return t}function CM(e,t,r){if(e.charCodeAt(t)!==rt)return t;if(t+1<r&&e.charCodeAt(t+1)===yt){let u=t+2;for(;u<r&&e.charCodeAt(u)!==Re;)u++;return u<r?u+1:t}if(t+3<r&&e.charCodeAt(t+1)===Wt&&e.charCodeAt(t+2)===Oe&&e.charCodeAt(t+3)===Oe){let u=e.indexOf("-->",t+4);return u>=0?u+3:t}let i=t+1,a=i;for(;i<r;){let u=e.charCodeAt(i);if(u>=xe&&u<=Ee||u>=Xe&&u<=ut||u>=Te&&u<=je||u===Oe)i++;else break}if(i===a)return t;let n=e.slice(a,i).toLowerCase(),s=!1;for(;i<r;){let u=e.charCodeAt(i);if(u===Re){i++;break}if(u===yt&&i+1<r&&e.charCodeAt(i+1)===Re){i+=2,s=!0;break}if(u===hi||u===pi){var o=u;for(i++;i<r&&e.charCodeAt(i)!==o;)i++;i<r&&i++;continue}if(u===fe)return t;i++}if(s||gs(n))return i;let l=1;for(;i<r&&l>0;)if(e.charCodeAt(i)===rt)if(i+1<r&&e.charCodeAt(i+1)===yt){let u=i+2,c=u;for(;c<r&&(e.charCodeAt(c)>=xe&&e.charCodeAt(c)<=Ee||e.charCodeAt(c)>=Xe&&e.charCodeAt(c)<=ut);)c++;if(e.slice(u,c).toLowerCase()===n){for(;c<r&&e.charCodeAt(c)!==Re;)c++;if(c<r&&c++,l--,l===0)return c}i=c}else{let u=i+1,c=u;for(;c<r&&(e.charCodeAt(c)>=xe&&e.charCodeAt(c)<=Ee||e.charCodeAt(c)>=Xe&&e.charCodeAt(c)<=ut);)c++;e.slice(u,c).toLowerCase()===n&&l++,i++}else i++;return i}function EM(e,t,r,i,a){if(e.charCodeAt(t)!==_t||t+1>=r||e.charCodeAt(t+1)!==_t)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===Je){let o=Nd(e,n,r);if(o>n){n=o;continue}}if(s===_t&&e.charCodeAt(n+1)===_t){let o=e.slice(t+2,n),l=Vr(o,0,o.length,i,a);return{node:{type:ne.textFormatted,tag:"del",children:l},end:n+2}}s===Tt&&n+1<r&&n++,n++}return null}function AM(e,t,r,i,a){if(e.charCodeAt(t)!==dr||t+1>=r||e.charCodeAt(t+1)!==dr)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===Je){let o=Nd(e,n,r);if(o>n){n=o;continue}}if(s===dr&&e.charCodeAt(n+1)===dr&&n>t+2){let o=e.slice(t+2,n),l=Vr(o,0,o.length,i,a);return{node:{type:ne.textFormatted,tag:"mark",children:l},end:n+2}}s===Tt&&n+1<r&&n++,n++}return null}function Kh(e,t,r){return e<Rl?!!(Rd(e)&$i):LD.test(t[r])}function Wh(e,t,r){return e<Rl?!!(Rd(e)&ii):qD.test(t[r])}function OM(e,t,r){var i=e.charCodeAt(t);if(i!==xt&&i!==gt)return null;var a=Ln(e,t,r,i);if(a===0)return null;var n=t>0?e.charCodeAt(t-1):32,s=t+a<r?e.charCodeAt(t+a):32,o=Wh(n,e,t-1),l=Wh(s,e,t+a),u=t>0?Kh(n,e,t-1):!1,c=t+a<r?Kh(s,e,t+a):!1,f=!l&&(!c||o||u),m=!o&&(!u||l||c),d,p;return i===xt?(d=f,p=m):(d=f&&(!m||u),p=m&&(!f||c)),{len:a,canOpen:d,canClose:p}}function _M(e,t,r,i){if(t.length!==0){for(var a=e.length,n=Array(a),s=null,o=null,l=0;l<a;l++){var u={node:e[l],prev:o,next:null};o?o.next=u:s=u,n[l]=u,o=u}for(var c=Array(t.length),f=0;f<t.length;f++)c[f]=n[t[f].idx];for(var m=[],d=0;d<12;d++)m[d]=-1;for(var p=0;p<t.length;){var b=t[p];if(!(b.active&&b.canClose)){p++;continue}for(var k=b.ch===xt?0:1,g=k*6+b.len%3*2+(b.canOpen?1:0),v=m[g]===void 0?-1:m[g],w=-1,C=p-1;C>v;C--){var h=t[C];if(!(!h.active||h.ch!==b.ch||!h.canOpen)&&!((b.canOpen||h.canClose)&&(h.len+b.len)%3===0&&h.len%3!==0)){w=C;break}}if(w<0){m[g]=p-1,!b.canOpen&&(b.active=!1),p++;continue}var y=t[w],S=y.len>=2&&b.len>=2,A=S?2:1;y.len-=A,b.len-=A;var _=c[w],x=c[p],E=_.node,O=x.node;E.text=E.text.slice(0,E.text.length-A),O.text=O.text.slice(A);for(var j=[],T=_.next;T&&T!==x;)j.push(T.node),T=T.next;var F={type:ne.textFormatted,tag:S?"strong":"em",children:j},q={node:F,prev:_,next:x};_.next=q,x.prev=q;for(var J=w+1;J<p;J++)t[J].active=!1;if(y.len===0&&(y.active=!1,E.text==="")){var Y=_.prev;q.prev=Y,Y?Y.next=q:s=q}if(b.len===0){if(b.active=!1,O.text===""){var te=x.next;q.next=te,te&&(te.prev=q)}}else continue;p++}for(var P=0,D=s;D;){var U=D.node;if(U.type===ne.text){var I=U;if(I.text===""){D=D.next;continue}if(P>0&&e[P-1].type===ne.text){e[P-1].text+=I.text,D=D.next;continue}}e[P++]=U,D=D.next}e.length=P}}function qs(e,t,r,i){return t(e,r,i)===null?null:e}var Gh=0,wf=0,Jh=0,xf=0,Yh=0,Sf=0,Vu=0,lr=0;function PM(){return Vu===2147483647&&(wf=0,xf=0,Sf=0,zo=0,Vu=0),++Vu}var Hu=null,zo=0,zs=[],Ku=256;function Xh(e,t,r,i,a){var H;let n=e.charCodeAt(t)===Wt,s=n?t+1:t;if(e.charCodeAt(s)!==vt||xf===lr&&s>=Jh)return null;var o=zo===lr?Hu:null,l=o===null?0:o[s];if(l<0)return null;var u=l;if(l===0){var c=e.indexOf("]",s+1);if(c<0||c>=r)return Jh=s,xf=lr,null;u=s+1;var f=0;zs[f++]=s;for(var m=r-s>=Ku;u<r&&f>0;){var d=e.charCodeAt(u);if(d===Tt&&u+1<r){u+=2;continue}if(d===Je){var p=Nd(e,u,r);if(p>u){u=p;continue}}if(d===rt){var b=h1(e,u,r);if(b){u=b.end;continue}var k=CM(e,u,r);if(k>u){u=k;continue}}if(d===vt)zs[f++]=u;else if(d===jr){var g=zs[--f];o===null&&m&&u-s>=Ku&&(o=Hu=new Int32Array(r),zo=lr),o!==null&&(o[g]=u+1)}u++}if(f>0){if(o===null&&m&&u-s>=Ku&&(o=Hu=new Int32Array(r),zo=lr),o!==null)for(;f>0;)o[zs[--f]]=-1;return null}}var v=u-1,w=e.slice(s+1,v),C=u<r?e.charCodeAt(u):0,h=!1;if(C===Er){var y=!0;for(u++;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;var S="",A=u;if(u<r&&e.charCodeAt(u)===rt){for(u++,A=u;A<r&&e.charCodeAt(A)!==Re;){if(e.charCodeAt(A)===Tt&&A+1<r){A+=2;continue}if(e.charCodeAt(A)===fe){y=!1;break}A++}y&&(A>=r||e.charCodeAt(A)!==Re)&&(y=!1),y&&(S=e.slice(u,A),A++)}else if(y){var _=wf===lr?Gh:-1;if(_>=0&&u>=_)y=!1;else{for(var x=0,E=!1;A<r;){var O=e.charCodeAt(A);if(O===Tt&&A+1<r){A+=2;continue}if(O===Er)x++;else if(O===Pr){if(E=!0,x===0)break;x--}else if(O===se||O===fe)break;A++}A>=r&&!E&&(_<0||u<_)&&(Gh=u,wf=lr),S=e.slice(u,A)}}if(y){for(u=A;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;var j;if(u<r){var T=e.charCodeAt(u);if(T===hi||T===pi||T===Er){var F=T===Er?41:T;u++;for(var q=u;u<r&&e.charCodeAt(u)!==F;)e.charCodeAt(u)===Tt&&u+1<r&&u++,u++;u>=r?y=!1:(j=e.slice(q,u),u++)}}if(y){for(;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;(u>=r||e.charCodeAt(u)!==Pr)&&(y=!1)}}if(y){if(u++,S=_n(Wi(S)),j!==void 0&&(j=_n(Wi(j))),n){var J=Vr(w,0,w.length,i,a),Y=sl(J);return{node:{type:ne.image,target:qs(S,(a==null?void 0:a.sanitizer)||rn,"img","src"),alt:Y,title:j},end:u}}var te=i.inAnchor;i.inAnchor=!0;var B=te?[{type:ne.text,text:w}]:Vr(w,0,w.length,i,a);return i.inAnchor=te,!i.inAnchor&&Cf(B)?null:{node:{type:ne.link,target:qs(S,(a==null?void 0:a.sanitizer)||rn,"a","href"),title:j,children:B},end:u}}u=v+1,h=!0}var P="",D=u;if(!h&&C===vt){var U=u+1;D=U;for(var I=!1;D<r&&e.charCodeAt(D)!==jr;){if(e.charCodeAt(D)===Tt&&D+1<r){D+=2;continue}if(e.charCodeAt(D)===vt){I=!0;break}D++}if(I||D>=r)return null;var R=e.slice(U,D);if(R.trim())P=Lo(R);else{if(Dh(w))return null;P=Lo(w)}D+=1}else{if(Dh(w))return null;P=Lo(w)}var M=(H=i.refs)==null?void 0:H[P];if(!M)return null;if(n)return{node:{type:ne.image,target:qs(M.target,(a==null?void 0:a.sanitizer)||rn,"img","src"),alt:sl(Vr(w,0,w.length,i,a)),title:M.title},end:D};var z=i.inAnchor;i.inAnchor=!0;var B=z?[{type:ne.text,text:w}]:Vr(w,0,w.length,i,a);return i.inAnchor=z,!i.inAnchor&&Cf(B)?null:{node:{type:ne.link,target:qs(M.target,(a==null?void 0:a.sanitizer)||rn,"a","href"),title:M.title,children:B},end:D}}function h1(e,t,r){if(e.charCodeAt(t)!==rt)return null;for(var i=t+1;i<r;){var a=e.charCodeAt(i);if(a===Re)break;if(a===se||a===fe||a===Dn||a===rt)return null;i++}if(i>=r||e.charCodeAt(i)!==Re)return null;var n=e.slice(t+1,i),s=n.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return s?{node:{type:ne.link,target:n,title:void 0,children:[{type:ne.text,text:n}]},end:i+1}:n.indexOf("@")!==-1&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)?{node:{type:ne.link,target:`mailto:${n}`,title:void 0,children:[{type:ne.text,text:n}]},end:i+1}:null}function IM(e,t,r,i){if(e.charCodeAt(t)!==vt||t+1>=r||e.charCodeAt(t+1)!==cn||Sf===lr&&t>=Yh)return null;let a=t+2;for(;a<r&&e.charCodeAt(a)!==jr&&e.charCodeAt(a)!==fe;)a++;if(a>=r)return Yh=t,Sf=lr,null;if(e.charCodeAt(a)!==jr)return null;let n=e.slice(t+2,a);return n?{node:{type:ne.footnoteReference,target:`#${yi(n)}`,text:n},end:a+1}:null}function TM(e,t,r,i){if(i.disableBareUrls)return null;var a="",n=!1,s=e.charCodeAt(t);if(s===tl||s===72?t+8<=r&&e.charCodeAt(t+1)===Ki&&e.charCodeAt(t+2)===Ki&&e.charCodeAt(t+3)===mf&&(e.charCodeAt(t+4)===i1&&e.charCodeAt(t+5)===qt&&e.charCodeAt(t+6)===yt&&e.charCodeAt(t+7)===yt?a="https://":e.charCodeAt(t+4)===qt&&e.charCodeAt(t+5)===yt&&e.charCodeAt(t+6)===yt&&(a="http://")):s===mi||s===70?t+6<=r&&e.charCodeAt(t+1)===Ki&&e.charCodeAt(t+2)===mf&&e.charCodeAt(t+3)===qt&&e.charCodeAt(t+4)===yt&&e.charCodeAt(t+5)===yt&&(a="ftp://"):(s===si||s===87)&&t+4<=r&&e.charCodeAt(t+1)===si&&e.charCodeAt(t+2)===si&&e.charCodeAt(t+3)===mr&&(a="www.",n=!0),!a)return null;let o=t+a.length;for(;o<r;){let y=e.charCodeAt(o);if(y===se||y===fe||y===le||y===Dn||y===rt||y===Re)break;o++}for(var l=0,u=0,c=t;c<o;c++){var f=e.charCodeAt(c);f===Er?l++:f===Pr&&u++}let m=o;for(;m>t+a.length;){let y=e.charCodeAt(m-1);if(y===mr||y===ED||y===qt||y===Wt||y===da||y===Pr||y===xt||y===gt||y===_t){if(y===Pr){if(l>=u)break;u--}m--}else if(y===rl){for(var d=m-2;d>t&&(e.charCodeAt(d)>=xe&&e.charCodeAt(d)<=Ee||e.charCodeAt(d)>=Xe&&e.charCodeAt(d)<=ut||e.charCodeAt(d)>=Te&&e.charCodeAt(d)<=je);)d--;d>=t&&e.charCodeAt(d)===jl?m=d:m--}else break}if(m<=t+a.length)return null;var p=t+(n?4:a.length),b=e.indexOf("/",p);if((b<0||b>m)&&(b=m),n&&e.indexOf(".",p)===-1)return null;for(var k=-1,g=-1,v=b-1;v>=p;v--)if(e.charCodeAt(v)===mr)if(k<0)k=v;else{g=v;break}for(var w=g>=0?g+1:p,v=w;v<b;v++)if(e.charCodeAt(v)===gt)return null;var C=e.slice(t,m),h=n?`http://${C}`:C;return{node:{type:ne.link,target:h,title:void 0,children:[{type:ne.text,text:C}]},end:m}}function jM(e,t,r,i){if(i.disableBareUrls)return null;for(var a=t,n=a;a<r;){var s=e.charCodeAt(a);if(s>=xe&&s<=Ee||s>=Xe&&s<=ut||s>=Te&&s<=je||s===mr||s===Wt||s===br||s===36||s===ff||s===jl||s===pi||s===xt||s===Mn||s===yt||s===dr||s===da||s===cn||s===gt||s===Je||s===gi||s===It||s===Td||s===_t||s===Oe)a++;else break}if(a===n||a>=r||e.charCodeAt(a)!==n1)return null;a++;for(var o=a,l=-1,u=a;a<r;){var s=e.charCodeAt(a);if(s>=xe&&s<=Ee||s>=Xe&&s<=ut||s>=Te&&s<=je)a++;else if((s===Oe||s===gt)&&a>o)a++;else if(s===mr){if(a===o)break;var c=e.charCodeAt(a-1);if(c===Oe||c===gt||a-u>63)break;if(a+1<r){var f=e.charCodeAt(a+1);if(f>=xe&&f<=Ee||f>=Xe&&f<=ut||f>=Te&&f<=je)l=a,u=a+1,a++;else break}else break}else break}if(a-u>63||l<0)return null;var m=e.charCodeAt(a-1);if(!(m>=xe&&m<=Ee||m>=Xe&&m<=ut||m>=Te&&m<=je)||a<=l+1)return null;for(var d=-1,p=l-1;p>=o;p--)if(e.charCodeAt(p)===mr){d=p;break}for(var b=d>=0?d+1:o,p=b;p<a;p++)if(e.charCodeAt(p)===gt)return null;var k=e.slice(t,a);return{node:{type:ne.link,target:`mailto:${k}`,title:void 0,children:[{type:ne.text,text:k}]},end:a}}function Cf(e){for(var t=0;t<e.length;t++)if(e[t].type===ne.link||"children"in e[t]&&Array.isArray(e[t].children)&&Cf(e[t].children))return!0;return!1}function sl(e,t){for(var r="",i=0;i<e.length;i++){var a=e[i];a.type===ne.text?r+=a.text:a.type===ne.breakLine?r+=" ":a.type===ne.codeInline||a.type===ne.footnoteReference?r+=a.text:"children"in a&&Array.isArray(a.children)?r+=sl(a.children,t):!t&&a.type===ne.image&&(r+=a.alt||"")}return r}function Ef(e,t,r){for(var i=0;i<e.length;i++){var a=e[i];if(a.type===ne.heading){var n=a;n.id=dM(r(sl(n.children,!0)),t)}if("children"in a){var s=a.children;Array.isArray(s)&&Ef(s,t,r)}if((a.type===ne.orderedList||a.type===ne.unorderedList)&&Array.isArray(a.items))for(var o=a.items,l=0;l<o.length;l++)Ef(o[l],t,r)}}function Xn(e){return{type:ne.text,text:e}}function RM(e,t,r){var i=t+1;if(i>=r)return-1;if(e.charCodeAt(i)===br){i++;var a=i<r&&(e.charCodeAt(i)===a1||e.charCodeAt(i)===s1);a&&i++;for(var n=i,s=a?6:7;i<r&&i-n<=s;){var o=e.charCodeAt(i),l=o>=Te&&o<=je||a&&(o>=xe&&o<=df||o>=Xe&&o<=mi);if(!l)break;i++}return i===n||i-n>s?-1:i<r&&e.charCodeAt(i)===rl?i+1:-1}for(var u=i;i<r&&i-u<48;){var c=e.charCodeAt(i);if(c>=xe&&c<=Ee||c>=Xe&&c<=ut||c>=Te&&c<=je){i++;continue}break}return i===u?-1:i<r&&e.charCodeAt(i)===rl?i+1:-1}function NM(e,t,r,i,a){if(e.charCodeAt(t)!==rt)return null;var n=t+1;if(n>=r)return null;var s=e.charCodeAt(n);if(s===Wt&&n+1<r&&e.charCodeAt(n+1)===Oe&&n+2<r&&e.charCodeAt(n+2)===Oe){var o=n+3;if(o<r&&e.charCodeAt(o)===Re)return{node:{type:ne.htmlComment,text:"",s:!0},end:o+1};if(o+1<r&&e.charCodeAt(o)===Oe&&e.charCodeAt(o+1)===Re)return{node:{type:ne.htmlComment,text:"-",s:!0},end:o+2};var l=e.indexOf("-->",o);return l!==-1&&l<=r-3?{node:{type:ne.htmlComment,text:e.slice(t+4,l),s:!1},end:l+3}:null}if(s===da){var u=e.indexOf("?>",n+1);return u!==-1&&u<r?{node:{type:ne.htmlSelfClosing,tag:"?",attrs:{},m:e.slice(t,u+2),a:!1},end:u+2}:null}if(s===Wt&&n+1<r){var c=e.charCodeAt(n+1);if(c===vt&&e.slice(n+1,n+8)==="[CDATA["){var f=e.indexOf("]]>",n+8);return f!==-1&&f<r?{node:{type:ne.htmlSelfClosing,tag:"![CDATA[",attrs:{},m:e.slice(t,f+3),a:!1},end:f+3}:null}if(c>=xe&&c<=Ee){var m=e.indexOf(">",n+2);return m!==-1&&m<r?{node:{type:ne.htmlSelfClosing,tag:`!${e.slice(n+1,m)}`,attrs:{},m:e.slice(t,m+1),a:!1},end:m+1}:null}}if(s===yt){var d=n+1;if(d>=r)return null;var p=e.charCodeAt(d);if(!(p>=xe&&p<=Ee||p>=Xe&&p<=ut))return null;for(d++;d<r;){var b=e.charCodeAt(d);if(b>=xe&&b<=Ee||b>=Xe&&b<=ut||b>=Te&&b<=je||b===Oe)d++;else break}for(;d<r&&(e.charCodeAt(d)===se||e.charCodeAt(d)===le||e.charCodeAt(d)===fe);)d++;if(d<r&&e.charCodeAt(d)===Re){var k=e.slice(n+1,d).trim();return{node:{type:ne.htmlSelfClosing,tag:k,attrs:{},h:e.slice(t,d+1),a:!0},end:d+1}}return null}if(!(s>=xe&&s<=Ee||s>=Xe&&s<=ut))return null;var g=$r(e,t);if(!g)return null;var v=g.tag,w=v.toLowerCase(),C=g.n;if(C||gs(v))return{node:{type:ne.htmlSelfClosing,tag:v,attrs:zr(g.attrs,v,a),m:g.q?yf(g):e.slice(t,g.end),a:!1},end:g.end};var h=ys.has(w),y=kf(e.slice(0,r),g.end,v);if(y===-1)return{node:{type:ne.htmlSelfClosing,tag:v,attrs:zr(g.attrs,v,a),m:g.q?yf(g):e.slice(t,g.end),a:!1},end:g.end};var S=vM(e,`</${w}`,y),A=e.slice(g.end,S);if(h){var _=rr(A);return{node:{type:ne.htmlBlock,tag:v,attrs:zr(g.attrs,v,a),b:g.g+g.b,children:[],e:_||void 0,h:e.slice(S,y),text:_,c:!0,a:!1},end:y}}var x=[],E=A.trim();if(E){var{inAnchor:O,inline:j,k:T}=i;w==="a"&&(i.inAnchor=!0),i.k=!1;var F=E.indexOf(`
|
|
90
116
|
|
|
91
|
-
`)!==-1||/^#{1,6}\s/.test(
|
|
92
|
-
`,t++;t<r&&e.charCodeAt(t)===
|
|
93
|
-
`),
|
|
94
|
-
`,
|
|
95
|
-
`,
|
|
96
|
-
`,
|
|
97
|
-
`)||
|
|
98
|
-
`),endPos:i.end}:null}function sm(e,t,r){As=0,e=$P(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=dI(e,t.refs,r));var a,i;t.t||(t.t=a=[],t.p=i=[]);let n=ha(e,t,r);if(a&&i){for(var s=a,o={inline:t.inline,inAnchor:t.inAnchor,inHTML:t.inHTML,htmlDepth:t.d,inList:t.inList,inBlockQuote:t.inBlockQuote,noSetext:t.l,depth:t.o},c=0;c<s.length;c++){var l=s[c];t.inline=l.inline,t.inAnchor=l.inAnchor,t.inHTML=l.inHTML,t.d=l.htmlDepth,t.inList=l.inList,t.inBlockQuote=l.inBlockQuote,t.l=l.noSetext,t.o=l.depth,t.k=l.breaks;var u=An(l.text,0,l.text.length,t,r);t.k=!1;for(var f=0;f<u.length;f++)l.dest.push(u[f])}t.inline=o.inline,t.inAnchor=o.inAnchor,t.inHTML=o.inHTML,t.d=o.htmlDepth,t.inList=o.inList,t.inBlockQuote=o.inBlockQuote,t.l=o.noSetext,t.o=o.depth;for(var m=i,d=0;d<m.length;d++)for(var h=m[d],k=0;k<h.src.length;k++){var v=h.src[k];if(h.unwrap&&v.type===se.paragraph)for(var y=v.children,b=0;b<y.length;b++)h.dest.push(y[b]);else h.dest.push(v)}t.t=void 0,t.p=void 0,rd(n,t,r.slugify)}return zk(t.refs)?[{type:se.refCollection,refs:t.refs},...n]:n}var nd;try{pi=zn.createElement("div"),nd=pi!=null&&typeof pi=="object"&&"$$typeof"in pi&&typeof pi.$$typeof=="symbol"?pi.$$typeof:Symbol.for("react.transitional.element")}catch{nd=Symbol.for("react.transitional.element")}var pi;function ad(e,t,r){return{$$typeof:nd,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function Lr(e,t){var r={key:e};if(t){var a=qk(t);for(var i in a)r[i]=a[i]}return r}var Gh=typeof zn.createContext>"u"?void 0:zn.createContext(void 0);function Jh(e,t,r,a,i,n,s,o,c){switch(e.type){case se.blockQuote:{let y={key:r.key};return e.alert&&(y.className=`markdown-alert-${n(e.alert.toLowerCase(),ei)}`,e.children.unshift(VP(e.alert))),a("blockquote",y,t(e.children,r))}case se.breakLine:return a("br",{key:r.key});case se.breakThematic:return a("hr",{key:r.key});case se.frontmatter:return o.preserveFrontmatter?a("pre",{key:r.key},e.text):null;case se.codeBlock:{let y=e.lang?ma(e.lang):"";var l=e.attrs?qk(e.attrs):{};return l.className=y?`language-${y} lang-${y}`:"",a("pre",{key:r.key},a("code",l,e.text))}case se.codeInline:return a("code",{key:r.key},e.text);case se.footnoteReference:return a("a",{key:r.key,href:i(e.target,"a","href")||void 0},a("sup",null,e.text));case se.gfmTask:return a("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"});case se.heading:return a(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r));case se.htmlBlock:{let y=e;if(Ei(o)&&Ah(y.tag)){var u=Ch(y);return u.kind==="literal"?a("span",{key:r.key},u.literal):a("span",{key:r.key},...JP(u.open,y.children?t(y.children,r):null,u.close))}let b=y.j,w=b!==void 0,E=w?b:y.a?y.e||"":(y.e||"")+(y.h||"");if(E&&y.c){let p=y.tag.toLowerCase(),g=iI(p),S=y.children,C=S!=null&&S.length>0;if(g){let F=w?b:y.e||"",$=Ei(o)?_h(F):F;if(/<[a-z][^>]{0,100}>/i.test(E)){var f=Lr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:$},c(e.tag,f)}return c(e.tag,Lr(r.key,e.attrs),$)}let O=new RegExp(`^<${y.tag}(\\s|>)`,"i");if(C&&!O.test(E)&&Ei(o)&&tI(E))return c(e.tag,Lr(r.key,e.attrs),t(S,r));if(sI(E)){let F=Ei(o)?_h(E):E;var m=Lr(r.key,e.attrs);return m.dangerouslySetInnerHTML={__html:F},c(e.tag,m)}let _=nm({slugify:o.slugify,sanitizer:i,tagfilter:!0}),x=UP(E);if(new RegExp(`^<${y.tag}(\\s[^>]*)?>(\\s*</${y.tag}>)?$`,"i").test(x))return y.children&&y.children.length>0?c(e.tag,Lr(r.key,e.attrs),t(y.children,r)):c(e.tag,Lr(r.key,e.attrs));let A=sm(x,{inline:!1,refs:s,inHTML:!1},_);$k(A);let N=y.tag.toLowerCase(),I=w;if(I&&C)return c(e.tag,Lr(r.key,e.attrs),t(S,r));if(I)return t(A.flatMap(_i),r);var d=KP(A,N);if(d.found&&d.afterClose.length>0){var h=d.beforeClose.flatMap(_i),k=d.afterClose.flatMap(_i);return ad(zn.Fragment,{children:[c(e.tag,Lr(r.key,e.attrs),t(h,r)),t(k,r)]},r.key)}return c(e.tag,Lr(r.key,e.attrs),t(A.flatMap(_i),r))}return ao(e.tag)?c(e.tag,Lr(r.key,e.attrs)):c(e.tag,Lr(r.key,e.attrs),e.children?t(e.children,r):"")}case se.htmlSelfClosing:{let y=e;if(Ei(o)&&Ah(y.tag)){var v=Ch(y);return a("span",{key:r.key},v.kind==="literal"?v.literal:v.open+(v.close||""))}return c(e.tag,Lr(r.key,e.attrs))}case se.image:{let y=e.target===null?null:i(e.target,"img","src");return a("img",{key:r.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:y||void 0})}case se.link:{let y={key:r.key};if(e.target!=null){let b=YP(e.target,i,"a","href");b!=null&&(y.href=b)}return e.title&&(y.title=e.title),a("a",y,t(e.children,r))}case se.table:{let y=e;return a("table",{key:r.key},a("thead",{key:"thead"},a("tr",null,y.header.map(function(b,w){return a("th",{key:w,style:y.align[w]===null?{}:{textAlign:y.align[w]}},t(b,r))}))),y.cells.length>0&&a("tbody",{key:"tbody"},y.cells.map(function(b,w){return a("tr",{key:w},b.map(function(E,p){return a("td",{key:p,style:y.align[p]===null?{}:{textAlign:y.align[p]}},t(E,r))}))})))}case se.text:return e.text;case se.textFormatted:return a(e.tag,{key:r.key},t(e.children,r));case se.orderedList:case se.unorderedList:{let y=e.type===se.orderedList?"ol":"ul";return a(y,{key:r.key,start:e.type===se.orderedList?e.start:void 0},e.items.map(function(b,w){return a("li",{key:w},t(b,r))}))}case se.paragraph:return a("p",{key:r.key},t(e.children,r));case se.ref:return null;default:return null}}var qI=(e,t,r,a,i,n,s)=>{var o=l=>l.map(u=>"text"in u?u.text:""),c=(l,u={})=>{var f=Array.isArray(l)?l:[l],m=(u.renderDepth||0)+1;if(m>2500)return o(f);u.renderDepth=m;for(var d=u.key,h=[],k=!1,v=0;v<f.length;v++){u.key=v;var y;if(e){var b=Jh.bind(null,f[v],c,u,t,r,a,i,n,s);y=e(b,f[v],c,u)}else y=Jh(f[v],c,u,t,r,a,i,n,s);var w=typeof y=="string";if(k&&typeof y=="string"){var E=h.at(-1);h[h.length-1]=(typeof E=="string"?E:"")+y}else if(y!=null)if(Array.isArray(y))for(var p=0;p<y.length;p++)h.push(y[p]);else h.push(y);k=w}return u.key=d,u.renderDepth=m-1,h};return c},zI=(e,t)=>{let r=Wf(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:Wf(t,`${e}.component`,e):e};function $I(e,t){let r={...t||{}};r.overrides=r.overrides||{};let a=r.slugify||ei,i=r.sanitizer||$n,n=r.createElement,s=zk(r.overrides),o=w=>id(w,{...r,wrapper:null});function c(w){for(var E in w){var p=w[E];if(typeof p=="string"&&p.length>0&&p.charCodeAt(0)===mt&&(rI.test(p)||nI.test(p)||LI(p,0))){var g=o(p.trim());w[E]=E==="innerHTML"&&Array.isArray(g)?g[0]:g}}}function l(w,E,...p){var g=E||{},S=w;if(s){var C=Wf(r.overrides,`${w}.props`,{});S=zI(w,r.overrides),g={...g,...C,className:QP(g.className,C.className)||void 0}}if(!n){var O=g.key;return O!=null&&delete g.key,p.length===1?g.children=p[0]:p.length>1&&(g.children=p),ad(S,g,O)}return n(S,g,...p)}function u(w,E,...p){return E&&c(E),l(w,E,...p)}let f=nm(r,r.forceInline),m=e[0]&&e[0].type===se.refCollection?e[0].refs:{},d=qI(r.renderRule,l,i,a,m,r,u),h=d(e,{inline:r.forceInline,refs:m}),k=XP(m);if(k.length>0&&h.push(l("footer",{key:"footer"},k.map(function(w){let E=w.identifier.charCodeAt(0)===Kn?w.identifier.slice(1):w.identifier,p=sm(w.footnote,{inline:!0,refs:m},f);return l("div",{id:a(E,ei),key:w.identifier},`${E}: `,d(p,{inline:!0,refs:m}))}))),r.wrapper===null)return h;let v=r.wrapper||(r.forceInline?"span":"div"),y;if(h.length>1||r.forceWrapper)y=h;else return h.length===1?h[0]:null;var b=r.wrapperProps?{...r.wrapperProps}:{};return b.children=y,ad(v,b,"outer")}function id(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function a(n){let s=r.forceInline||!(r.forceBlock||FP.test(n)),o=nm(r,s),c=s?n:WP(n),l=sm(c,{inline:s,refs:i},o);return $I(l,{...r,forceInline:s})}let i={};return a(e)}function UI(e){let t=zn.useRef(e),r=t.current;if(r!==e){var a=!0,i=0;for(var n in e)if(i++,!Object.is(r[n],e[n])){a=!1;break}if(a){var s=0;for(var o in r)s++;a=s===i}a||(t.current=e)}return t.current}var so=({children:e,options:t,...r})=>{if(!(typeof zn.useContext<"u")){let o={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return id(e??"",o)}let a=Gh?zn.useContext(Gh):void 0,i=UI(r),n=zn.useMemo(()=>({...a,...t,overrides:{...a==null?void 0:a.overrides,...t==null?void 0:t.overrides},wrapperProps:{...a==null?void 0:a.wrapperProps,...t==null?void 0:t.wrapperProps,...i}}),[a,t,i]),s=e??"";return zn.useMemo(()=>id(s,n),[s,n])};const Gk=Symbol("remove-this-key"),Yh=Symbol("reset");function BI(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function VI(e,t){switch(t){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};case"string":default:return e(Le.NewStringDefault)}}function Jk(e){return!!(e!=null&&e[la])}function Xh(e){return Object.keys(e).filter(t=>Jk(e[t]))}function HI(e){const{fieldPathId:t,schema:r,registry:a,uiSchema:i,errorSchema:n,formData:s,onChange:o,onBlur:c,onFocus:l,disabled:u,readonly:f,required:m,hideError:d,propertyName:h,handleKeyRename:k,handleRemoveProperty:v,addedByAdditionalProperties:y}=e,[b,w]=W.useState(!1),{globalFormOptions:E,fields:p}=a,{SchemaField:g}=p,S=Ji(cn(h,E,t.path)),C=W.useCallback((A,N,I,F)=>{let $=A;A===void 0&&y&&($=""),o($,N,I,F)},[o,y]),O=W.useCallback(A=>{h!==A&&w(!0),k(h,A)},[h,k]),_=W.useCallback(A=>{const{target:{value:N}}=A;O(N)},[O]),x=W.useCallback(()=>{v(h)},[h,v]);return j.jsx(g,{name:h,required:m,schema:r,uiSchema:i,errorSchema:n,fieldPathId:S,formData:s,wasPropertyKeyModified:b,onKeyRename:O,onKeyRenameBlur:_,onRemoveProperty:x,onChange:C,onBlur:c,onFocus:l,registry:a,disabled:u,readonly:f,hideError:d})}const WI=W.memo(HI);function KI(e){const{schema:t,uiSchema:r={},formData:a,errorSchema:i,fieldPathId:n,name:s,required:o=!1,disabled:c,readonly:l,hideError:u,onBlur:f,onFocus:m,onChange:d,registry:h,title:k}=e,{fields:v,schemaUtils:y,translateString:b,globalUiOptions:w}=h,{OptionalDataControlsField:E}=v,p=W.useRef(a);p.current=a;const g=W.useMemo(()=>y.retrieveSchema(t,a,!0),[y,t,a]),S=W.useMemo(()=>ke(r,w),[r,w]),C=W.useMemo(()=>g.properties??{},[g.properties]),O=e.childFieldPathId??n,_=W.useRef({previousKey:"",currentKey:void 0}),[x,A]=W.useState(()=>Xh(C)),N=W.useMemo(()=>{const V=new Set(Xh(C));return Object.keys(C).filter(K=>!V.has(K))},[C]),I=S.title??g.title??k??s,F=S.description??g.description,$=no(h,g,o,r),Y=Gi(a);let Z=[];const ie=W.useCallback((V,K)=>{const{duplicateKeySuffixSeparator:J="-"}=ke(r,w);let Q=0,q=V;for(;Ge(K,q);)Q+=1,q=`${V}${J}${Q}`;return q},[r,w]),P=W.useCallback(()=>{if(!(g.additionalProperties||g.patternProperties))return;const V={...a},K=ie("newKey",V);if(g.patternProperties)yt(V,K,null);else{let J,Q,q;if(Xe(g.additionalProperties)){J=g.additionalProperties.type,Q=g.additionalProperties.const,q=g.additionalProperties.default;let H=g.additionalProperties;gt in H&&(H=y.retrieveSchema({[gt]:H[gt]},a),J=H.type,Q=H.const,q=y.getDefaultFormState(H,q)),!J&&(We in H||Fe in H)&&(J="object")}const z=Q??q??VI(b,J);yt(V,K,z)}_.current.previousKey===K&&(_.current.currentKey=K,_.current.previousKey=ie(K,V)),A(J=>[...J,K]),d(V,O.path)},[a,d,b,y,O,ie,g]),D=W.useCallback((V,K)=>{if(V!==K){const J=p.current,Q=ie(K,J),q={...J},z={[V]:Q},H=Object.keys(q).map(te=>({[Object.hasOwn(z,te)?z[te]:te]:q[te]})),G=Object.assign({},...H);p.current=G,V!==_.current.currentKey&&(_.current.previousKey=V),_.current.currentKey=Q,A(te=>te.map(ae=>ae===V?Q:ae)),d(G,O.path)}},[d,O,ie]),U=W.useCallback(V=>{A(K=>K.filter(J=>J!==V)),d(Gk,[...O.path,V])},[d,O]),T=W.useCallback(V=>_.current.currentKey===V?_.current.previousKey:V,[]);if(!$||Y)try{const V=new Set(N),K=x.filter(J=>Object.hasOwn(C,J)&&!V.has(J));Z=vT([...N,...K],S.order)}catch(V){return j.jsxs("div",{children:[j.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:j.jsx(so,{options:{disableParsingRawHTML:!0},children:b(Le.InvalidObjectField,[s||"root",V.message])})}),j.jsx("pre",{children:JSON.stringify(g)})]})}const R=xe("ObjectFieldTemplate",h,S),M=$?j.jsx(E,{...e,fieldPathId:O,schema:g}):void 0,B={title:S.label===!1?"":I,description:S.label===!1?void 0:F,properties:Z.map(V=>{var z;const K=Jk((z=g.properties)==null?void 0:z[V]),J=K?r.additionalProperties:r[V],Q=ke(J).widget==="hidden";return{content:j.jsx(WI,{propertyName:V,required:BI(g,V),schema:oe(g,[Ye,V],{}),uiSchema:J,errorSchema:oe(i,[V]),fieldPathId:O,formData:oe(a,[V]),handleKeyRename:D,handleRemoveProperty:U,addedByAdditionalProperties:K,onChange:d,onBlur:f,onFocus:m,registry:h,disabled:c,readonly:l,hideError:u},T(V)),name:V,readonly:l,disabled:c,required:o,hidden:Q}}),readonly:l,disabled:c,required:o,fieldPathId:n,uiSchema:r,errorSchema:i,schema:g,formData:a,registry:h,optionalDataControl:M,className:$?"rjsf-optional-object-field":void 0};return j.jsx(R,{...B,onAddProperty:P})}function GI(e){const{schema:t,uiSchema:r={},formData:a,disabled:i=!1,readonly:n=!1,onChange:s,errorSchema:o,fieldPathId:c,registry:l}=e,{globalUiOptions:u={},schemaUtils:f,translateString:m}=l,d=ke(r,u),h=xe("OptionalDataControlsTemplate",l,d),k=Gi(a);let v,y,b,w;if(i||n)v=mu(c,"Msg"),y=k?void 0:m(Le.OptionalObjectEmptyMsg);else{const E=k?Le.OptionalObjectRemove:Le.OptionalObjectAdd;y=m(E),k?(v=mu(c,"Remove"),w=()=>s(void 0,c.path,o)):(v=mu(c,"Add"),b=()=>{let p=f.getDefaultFormState(t,a,"excludeObjectChildren");p===void 0&&(p=Yr(t)==="array"?[]:{}),s(p,c.path,o)})}return y&&j.jsx(h,{id:v,registry:l,schema:t,uiSchema:r,label:y,onAddClick:b,onRemoveClick:w})}const JI={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function YI(e,t,r){const{field:a}=t,{fields:i,schemaUtils:n}=r;if(typeof a=="function")return a;if(typeof a=="string"&&a in i)return i[a];const s=Yr(e),o=Array.isArray(s)?s[0]:s||"",c=e.$id;let l=JI[o];return c&&c in i&&(l=c),(e.anyOf||e.oneOf)&&!n.isSelect(e)&&l!=="ObjectField"?()=>null:l in i?i[l]:i.FallbackField}function XI(e){const{schema:t,fieldPathId:r,uiSchema:a,formData:i,errorSchema:n,name:s,onChange:o,onKeyRename:c,onKeyRenameBlur:l,onRemoveProperty:u,required:f=!1,registry:m,wasPropertyKeyModified:d=!1}=e,{schemaUtils:h,globalFormOptions:k,globalUiOptions:v,fields:y}=m,{AnyOfField:b,OneOfField:w,CyclicSchemaField:E}=y,p=r[pt],g=W.useCallback((Se,Re,he,je)=>o(Se,Re,he,je||p),[p,o]);if(t[Ed])return j.jsx(E,{...e});const S=bT(t,a,m),C=ke(S,v),O=xe("FieldTemplate",m,C),_=xe("DescriptionFieldTemplate",m,C),x=xe("FieldHelpTemplate",m,C),A=xe("FieldErrorTemplate",m,C),N=h.retrieveSchema(t,i),I=YI(N,C,m),$=!!N.deprecated?C.deprecatedHandling??"label":void 0,Y=!!(C.disabled??e.disabled)||$==="disable",Z=!!(C.readonly??(e.readonly||e.schema.readOnly||N.readOnly)),ie=C.hideError,P=ie===void 0?e.hideError:!!ie,D=!!(C.autofocus??e.autofocus);if(Object.keys(N).length===0)return null;let U=h.getDisplayLabel(N,S,v);const T=C.field&&C.fieldReplacesAnyOrOneOf===!0;let R,M,B={fieldPathId:r};if((We in N||Fe in N)&&!T&&!h.isSelect(N)){N[We]?(R=b,M=N[We].map(he=>h.retrieveSchema(Xe(he)?he:{},i))):N[Fe]&&(R=w,M=N[Fe].map(he=>h.retrieveSchema(Xe(he)?he:{},i)));const Se=no(m,N,f,S),Re=Gi(i);U=U&&(!Se||Re),B={childFieldPathId:r,fieldPathId:cn("XxxOf",k,r)}}const{__errors:V,...K}=n||{},J=qs(S,["ui:classNames","classNames","ui:style"]);ca in J&&(J[ca]=qs(J[ca],["classNames","style"]));const Q=j.jsx(I,{...e,onChange:g,...B,schema:N,uiSchema:J,disabled:Y,readonly:Z,hideError:P,autofocus:D,errorSchema:K,rawErrors:V}),q=r[pt];let z;d?z=s:z=la in N?s:C.title||e.schema.title||N.title||e.title||s,$==="label"&&(z=m.translateString(Le.DeprecatedLabel,[z]));const H=C.description||e.schema.description||N.description||"",{help:G}=C,te=C.widget==="hidden"||$==="hide",ae=["rjsf-field",`rjsf-field-${Yr(N)}`];!P&&V&&V.length>0&&ae.push("rjsf-field-error"),C.classNames&&ae.push(C.classNames);const me=j.jsx(x,{help:G,fieldPathId:r,schema:N,uiSchema:S,hasErrors:!P&&V&&V.length>0,registry:m}),ve=P||R&&!h.isSelect(N)?void 0:j.jsx(A,{errors:V,errorSchema:n,fieldPathId:r,schema:N,uiSchema:S,registry:m}),Ce={description:j.jsx(_,{id:Ca(q),description:H,schema:N,uiSchema:S,registry:m}),rawDescription:H,help:me,rawHelp:typeof G=="string"?G:void 0,errors:ve,rawErrors:P?void 0:V,fieldPathId:r,id:q,label:z,hidden:te,onChange:o,onKeyRename:c,onKeyRenameBlur:l,onRemoveProperty:u,required:f,disabled:Y,readonly:Z,hideError:P,displayLabel:U,classNames:ae.join(" ").trim(),style:C.style,formData:i,schema:N,uiSchema:S,registry:m};return j.jsx(O,{...Ce,children:j.jsxs(j.Fragment,{children:[Q,R&&j.jsx(R,{name:s,disabled:Y,readonly:Z,hideError:P,errorSchema:n,formData:i,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:M,registry:m,required:f,schema:N,uiSchema:S})]})})}const ZI=W.memo(XI,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?zf(e,t):Je(e,t)});function QI(e){const{schema:t,name:r,uiSchema:a,fieldPathId:i,formData:n,required:s,disabled:o=!1,readonly:c=!1,autofocus:l=!1,onChange:u,onBlur:f,onFocus:m,registry:d,rawErrors:h,hideError:k,title:v}=e,{title:y,format:b}=t,{widgets:w,schemaUtils:E,globalUiOptions:p}=d,g=E.isSelect(t)?Ja(t,a):void 0;let S=g?"select":"text";b&&mT(t,b,w)&&(S=b);const{widget:C=S,placeholder:O="",title:_,...x}=ke(a),A=E.getDisplayLabel(t,a,p),N=_??v??y??r,I=On(t,C,w),F=W.useCallback(($,Y,Z)=>u($,i.path,Y,Z),[u,i]);return j.jsx(I,{options:{...x,enumOptions:g},schema:t,uiSchema:a,id:i.$id,name:r,label:N,hideLabel:!A,hideError:k,value:n,onChange:F,onBlur:f,onFocus:m,required:s,disabled:o,readonly:c,autofocus:l,registry:d,placeholder:O,rawErrors:h,htmlName:i.name})}function eR(){return{AnyOfField:vh,ArrayField:VT,BooleanField:HT,CyclicSchemaField:WT,FallbackField:YT,LayoutGridField:tm,LayoutHeaderField:yP,LayoutMultiSchemaField:vP,NumberField:SP,ObjectField:KI,OneOfField:vh,OptionalDataControlsField:GI,SchemaField:ZI,StringField:QI,NullField:bP}}function tR(e){const{fieldPathId:t,description:r,registry:a,schema:i,uiSchema:n}=e,s=ke(n,a.globalUiOptions),{label:o=!0}=s;if(!r||!o)return null;const c=xe("DescriptionFieldTemplate",a,s);return j.jsx(c,{id:Ca(t),description:r,schema:i,uiSchema:n,registry:a})}function rR(e){const{disabled:t,hasCopy:r,hasMoveDown:a,hasMoveUp:i,hasRemove:n,fieldPathId:s,onCopyItem:o,onRemoveItem:c,onMoveDownItem:l,onMoveUpItem:u,readonly:f,registry:m,uiSchema:d}=e,{CopyButton:h,MoveDownButton:k,MoveUpButton:v,RemoveButton:y}=m.templates.ButtonTemplates;return j.jsxs(j.Fragment,{children:[(i||a)&&j.jsx(v,{id:Rr(s,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!i,onClick:u,uiSchema:d,registry:m}),(i||a)&&j.jsx(k,{id:Rr(s,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!a,onClick:l,uiSchema:d,registry:m}),r&&j.jsx(h,{id:Rr(s,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:o,uiSchema:d,registry:m}),n&&j.jsx(y,{id:Rr(s,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:c,uiSchema:d,registry:m})]})}function nR(e){const{children:t,className:r,buttonsProps:a,displayLabel:i,hasDescription:n,hasToolbar:s,registry:o,uiSchema:c}=e,l=ke(c),u=xe("ArrayFieldItemButtonsTemplate",o,l),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},m=n?31:9,d={display:"flex",alignItems:i?"center":"baseline"},h={display:"flex",justifyContent:"flex-end",marginTop:i?`${m}px`:0};return j.jsxs("div",{className:r,style:d,children:[j.jsx("div",{className:s?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),s&&j.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:j.jsx("div",{className:"btn-group",style:h,children:j.jsx(u,{...a,style:f})})})]})}function aR(e){const{canAdd:t,className:r,disabled:a,fieldPathId:i,uiSchema:n,items:s,optionalDataControl:o,onAddClick:c,readonly:l,registry:u,required:f,schema:m,title:d}=e,h=ke(n),k=xe("ArrayFieldDescriptionTemplate",u,h),v=xe("ArrayFieldTitleTemplate",u,h),y=!l&&!a,{ButtonTemplates:{AddButton:b}}=u.templates;return j.jsxs("fieldset",{className:r,id:i.$id,children:[j.jsx(v,{fieldPathId:i,title:h.title||d,required:f,schema:m,uiSchema:n,registry:u,optionalDataControl:y?o:void 0}),j.jsx(k,{fieldPathId:i,description:h.description||m.description,schema:m,uiSchema:n,registry:u}),y?void 0:o,j.jsx("div",{className:"row array-item-list",children:s}),t&&j.jsx(b,{id:Rr(i,"add"),className:"rjsf-array-item-add",onClick:c,disabled:a||l,uiSchema:n,registry:u})]})}function iR(e){const{fieldPathId:t,title:r,schema:a,uiSchema:i,required:n,registry:s,optionalDataControl:o}=e,c=ke(i,s.globalUiOptions),{label:l=!0}=c;if(!r||!l)return null;const u=xe("TitleFieldTemplate",s,c);return j.jsx(u,{id:pc(t),title:r,required:n,schema:a,uiSchema:i,registry:s,optionalDataControl:o})}function sR(e){const{id:t,schema:r}=e,{examples:a,default:i}=r;return Array.isArray(a)?j.jsx("datalist",{id:Yd(t),children:a.concat(i!==void 0&&!a.map(String).includes(String(i))?[i]:[]).map(n=>j.jsx("option",{value:n},String(n)))},`datalist_${t}`):null}function oR(e){const{id:t,name:r,htmlName:a,value:i,readonly:n,disabled:s,autofocus:o,onBlur:c,onFocus:l,onChange:u,onChangeOverride:f,options:m,schema:d,uiSchema:h,registry:k,rawErrors:v,type:y,hideLabel:b,hideError:w,...E}=e,{ClearButton:p}=k.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const g={...E,...iT(d,y,m)};let S;g.type==="number"||g.type==="integer"?S=i||i===0?i:"":S=i??"";const C=W.useCallback(({target:{value:A}})=>u(A===""?m.emptyValue:A),[u,m]),O=W.useCallback(({target:A})=>c(t,A==null?void 0:A.value),[c,t]),_=W.useCallback(({target:A})=>l(t,A==null?void 0:A.value),[l,t]),x=W.useCallback(A=>{A.preventDefault(),A.stopPropagation(),u(m.emptyValue??"")},[u,m.emptyValue]);return j.jsxs(j.Fragment,{children:[j.jsx("input",{id:t,name:a||t,className:"form-control",readOnly:n,disabled:s,autoFocus:o,value:S,...g,list:d.examples?Yd(t):void 0,onChange:f||C,onBlur:O,onFocus:_,"aria-describedby":dn(t,!!d.examples)}),m.allowClearTextInputs&&!n&&!s&&S&&j.jsx(p,{registry:k,onClick:x}),j.jsx(sR,{id:t,schema:d})]})}function lR(e){const{iconType:t="default",icon:r,className:a,uiSchema:i,registry:n,...s}=e;return j.jsx("button",{type:"button",className:`btn btn-${t} ${a}`,...s,children:j.jsx("i",{className:`glyphicon glyphicon-${r}`})})}const xa=W.memo(lR);function cR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.CopyButton),...e,icon:"copy"})}const uR=W.memo(cR);function fR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.MoveDownButton),...e,icon:"arrow-down"})}const dR=W.memo(fR);function mR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.MoveUpButton),...e,icon:"arrow-up"})}const pR=W.memo(mR);function hR(e){const{registry:{translateString:t}}=e;return j.jsx(xa,{title:t(Le.RemoveButton),...e,iconType:"danger",icon:"remove"})}const gR=W.memo(hR);function yR({id:e,className:t,onClick:r,disabled:a,registry:i,...n}){const{translateString:s}=i;return j.jsx(xa,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:s(Le.ClearButton),onClick:r,disabled:a,registry:i,...n})}const vR=W.memo(yR);function bR({id:e,className:t,onClick:r,disabled:a,registry:i}){const{translateString:n}=i;return j.jsx("div",{className:"row",children:j.jsx("p",{className:`col-xs-4 col-sm-2 col-lg-1 col-xs-offset-8 col-sm-offset-10 col-lg-offset-11 text-right ${t}`,children:j.jsx(xa,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(Le.AddButton),onClick:r,disabled:a,registry:i})})})}function kR({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=xk(e);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...a,className:`btn btn-info ${a.className||""}`,children:t})})}function wR(){return{SubmitButton:kR,AddButton:bR,CopyButton:uR,MoveDownButton:dR,MoveUpButton:pR,RemoveButton:gR,ClearButton:vR}}function SR(e){const{name:t,fieldPathId:r,registry:a,onExpand:i}=e,{translateString:n}=a,s=`${r[pt]}-button`;return j.jsxs("div",{style:{marginTop:"1rem"},children:[j.jsx("div",{className:"text-danger",children:n(Le.CycleDetected,[t])}),j.jsxs("div",{children:[j.jsx("button",{id:s,type:"button",className:"btn btn-sm btn-warning",onClick:()=>i(r[pt]),children:n(Le.ExpandButton)})," "]})]})}const Yk=Gd();function Xk({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:a}=t;return ke(r,a).enableMarkdownInDescription&&typeof e=="string"?j.jsx(so,{options:{disableParsingRawHTML:!0},"data-testid":Yk.markdown,children:e}):e}Xk.TEST_IDS=Yk;function ER(e){const{id:t,description:r,registry:a,uiSchema:i}=e;return r?j.jsx("div",{id:t,className:"field-description",children:j.jsx(Xk,{description:r,registry:a,uiSchema:i})}):null}function xR({errors:e,registry:t}){const{translateString:r}=t;return j.jsxs("div",{className:"panel panel-danger errors",children:[j.jsx("div",{className:"panel-heading",children:j.jsx("h3",{className:"panel-title",children:r(Le.ErrorsLabel)})}),j.jsx("ul",{className:"list-group",children:e.map((a,i)=>j.jsx("li",{className:"list-group-item text-danger",children:a.stack},i))})]})}function CR(e){const{schema:t,registry:r,typeSelector:a,schemaField:i}=e,n=xe("MultiSchemaFieldTemplate",r);return j.jsx(n,{selector:a,optionSchemaField:i,schema:t,registry:r})}function AR(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const a=Jd(r);return j.jsx("div",{children:j.jsx("ul",{id:a,className:"error-detail bs-callout bs-callout-info",children:t.filter(i=>!!i).map((i,n)=>j.jsx("li",{className:"text-danger",children:i},n))})})}const Zk=Gd();function Qk({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:a}=t;return ke(r,a).enableMarkdownInHelp&&typeof e=="string"?j.jsx(so,{options:{disableParsingRawHTML:!0},"data-testid":Zk.markdown,children:e}):e}Qk.TEST_IDS=Zk;function _R(e){const{fieldPathId:t,help:r,uiSchema:a,registry:i}=e;return r?j.jsx("div",{id:Xd(t),className:"help-block",children:j.jsx(Qk,{help:r,registry:i,uiSchema:a})}):null}const OR="*";function e0(e){const{label:t,required:r,id:a}=e;return t?j.jsxs("label",{className:"control-label",htmlFor:a,children:[t,r&&j.jsx("span",{className:"required",children:OR})]}):null}function TR(e){const{id:t,label:r,children:a,errors:i,help:n,description:s,hidden:o,required:c,displayLabel:l,registry:u,uiSchema:f}=e,m=ke(f),d=xe("WrapIfAdditionalTemplate",u,m);if(o)return j.jsx("div",{className:"hidden",children:a});const h=m.widget==="checkbox";return j.jsxs(d,{...e,children:[l&&!h&&j.jsx(e0,{label:r,required:c,id:t}),l&&s?s:null,a,i,n]})}function PR(e){const{children:t,column:r,className:a,...i}=e;return j.jsx("div",{className:a,...i,children:t})}function IR(e){const{selector:t,optionSchemaField:r}=e;return j.jsxs("div",{className:"panel panel-default panel-body",children:[j.jsx("div",{className:"form-group",children:t}),r]})}function RR(e){const{className:t,description:r,disabled:a,formData:i,fieldPathId:n,onAddProperty:s,optionalDataControl:o,properties:c,readonly:l,registry:u,required:f,schema:m,title:d,uiSchema:h}=e,k=ke(h),v=xe("TitleFieldTemplate",u,k),y=xe("DescriptionFieldTemplate",u,k);if((m.oneOf||m.anyOf)&&!m.properties&&c.length===0)return null;const w=!l&&!a,{ButtonTemplates:{AddButton:E}}=u.templates;return j.jsxs("fieldset",{className:t,id:n.$id,children:[d&&j.jsx(v,{id:pc(n),title:d,required:f,schema:m,uiSchema:h,registry:u,optionalDataControl:w?o:void 0}),r&&j.jsx(y,{id:Ca(n),description:r,schema:m,uiSchema:h,registry:u}),w?void 0:o,c.map(p=>p.content),rb(m,h,i)&&j.jsx(E,{id:Rr(n,"add"),className:"rjsf-object-property-expand",onClick:s,disabled:a||l,uiSchema:h,registry:u})]})}function NR(e){const{id:t,registry:r,label:a,onAddClick:i,onRemoveClick:n}=e;return i?j.jsx(xa,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:i,title:a}):n?j.jsx(xa,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:n,title:a}):j.jsx("em",{id:t,children:a})}const jR="*";function DR(e){const{id:t,title:r,required:a,optionalDataControl:i}=e;return j.jsxs("legend",{id:t,children:[r,a&&j.jsx("span",{className:"required",children:jR}),i&&j.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:i})]})}function FR(e){const{schema:t,fieldPathId:r,reason:a,registry:i}=e,{translateString:n}=i;let s=Le.UnsupportedField;const o=[];return r!=null&&r.$id&&(s=Le.UnsupportedFieldWithId,o.push(r.$id)),a&&(s=s===Le.UnsupportedField?Le.UnsupportedFieldWithReason:Le.UnsupportedFieldWithIdAndReason,o.push(a)),j.jsxs("div",{className:"unsupported-field",children:[j.jsx("p",{children:j.jsx(so,{options:{disableParsingRawHTML:!0},children:n(s,o)})}),t&&j.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function MR(e){const{id:t,classNames:r,style:a,disabled:i,displayLabel:n,label:s,onKeyRenameBlur:o,onRemoveProperty:c,rawDescription:l,readonly:u,required:f,schema:m,hideError:d,rawErrors:h,children:k,uiSchema:v,registry:y}=e,{templates:b,translateString:w}=y,{RemoveButton:E}=b.ButtonTemplates,p=w(Le.KeyLabel,[s]),g=la in m,S=!!l,C=["form-group",r];!d&&h&&h.length>0&&C.push("has-error has-danger");const O=C.join(" ").trim();if(!g)return j.jsx("div",{className:O,style:a,children:k});const _=S?46:26;return j.jsx("div",{className:O,style:a,children:j.jsxs("div",{className:"row",children:[j.jsx("div",{className:"col-xs-5 form-additional",children:j.jsxs("div",{className:"form-group",children:[n&&j.jsx(e0,{label:p,required:f,id:`${t}-key`}),n&&l&&j.jsx("div",{children:" "}),j.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:o,defaultValue:s},s)]})}),j.jsx("div",{className:"form-additional form-group col-xs-5",children:k}),j.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${_}px`:void 0},children:j.jsx(E,{id:Rr(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:i||u,onClick:c,uiSchema:v,registry:y})})]})})}function LR(){return{ArrayFieldDescriptionTemplate:tR,ArrayFieldItemTemplate:nR,ArrayFieldItemButtonsTemplate:rR,ArrayFieldTemplate:aR,ArrayFieldTitleTemplate:iR,ButtonTemplates:wR(),BaseInputTemplate:oR,CyclicSchemaExpandTemplate:SR,DescriptionFieldTemplate:ER,ErrorListTemplate:xR,FallbackFieldTemplate:CR,FieldTemplate:TR,FieldErrorTemplate:AR,FieldHelpTemplate:_R,GridTemplate:PR,MultiSchemaFieldTemplate:IR,ObjectFieldTemplate:RR,OptionalDataControlsTemplate:NR,TitleFieldTemplate:DR,UnsupportedFieldTemplate:FR,WrapIfAdditionalTemplate:MR}}function qR({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return j.jsx(r,{time:e,...t})}function zR(e){const{disabled:t=!1,readonly:r=!1,autofocus:a=!1,options:i,id:n,name:s,registry:o,onBlur:c,onFocus:l}=e,{translateString:u}=o,{elements:f,handleChange:m,handleClear:d,handleSetNow:h}=CT(e);return j.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>j.jsx("li",{className:"list-inline-item",children:j.jsx(xT,{rootId:n,name:s,select:m,...k,disabled:t,readonly:r,registry:o,onBlur:c,onFocus:l,autofocus:a&&v===0})},v)),(i.hideNowButton!=="undefined"?!i.hideNowButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:h,children:u(Le.NowLabel)})}),(i.hideClearButton!=="undefined"?!i.hideClearButton:!0)&&j.jsx("li",{className:"list-inline-item",children:j.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:d,children:u(Le.ClearLabel)})})]})}function $R({id:e,disabled:t,options:r,value:a,autofocus:i=!1,readonly:n,onChange:s,onBlur:o,onFocus:c,htmlName:l}){const{inline:u=!1,enumOptions:f,enumDisabled:m,emptyValue:d}=r,h=ro(r),k=Array.isArray(a)?a:[a],v=W.useCallback(({target:b})=>o(e,on(b==null?void 0:b.value,f,h,d)),[o,e,f,d,h]),y=W.useCallback(({target:b})=>c(e,on(b==null?void 0:b.value,f,h,d)),[c,e,f,d,h]);return j.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Ki(b.value,k),p=Array.isArray(m)&&m.includes(b.value),g=t||p||n?"disabled":"",S=O=>{O.target.checked?s(Sk(w,k,f)):s(kk(w,k,f))},C=j.jsxs("span",{children:[j.jsx("input",{type:"checkbox",id:hc(e,w),name:l||e,checked:E,value:to(b.value,w,h),disabled:t||p||n,autoFocus:i&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":dn(e)}),j.jsx("span",{children:b.label})]});return u?j.jsx("label",{className:`checkbox-inline ${g}`,children:C},String(b.value)):j.jsx("div",{className:`checkbox ${g}`,children:j.jsx("label",{children:C})},String(b.value))})})}function UR({schema:e,uiSchema:t,options:r,id:a,value:i,disabled:n,readonly:s,label:o,hideLabel:c,autofocus:l=!1,onBlur:u,onFocus:f,onChange:m,registry:d,htmlName:h}){const k=xe("DescriptionFieldTemplate",d,r),v=Ps(e),y=W.useCallback(S=>m(S.target.checked),[m]),b=W.useCallback(S=>u(a,S.target.checked),[u,a]),w=W.useCallback(S=>f(a,S.target.checked),[f,a]),g=ke(t).widget==="checkbox"?void 0:r.description??e.description;return j.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`,children:[!c&&g&&j.jsx(k,{id:Ca(a),description:g,schema:e,uiSchema:t,registry:d}),j.jsxs("label",{children:[j.jsx("input",{type:"checkbox",id:a,name:h||a,checked:typeof i>"u"?!1:i,required:v,disabled:n||s,autoFocus:l,onChange:y,onBlur:b,onFocus:w,"aria-describedby":dn(a)}),hT(j.jsx("span",{children:o}),c)]})]})}function BR(e){const{disabled:t,readonly:r,options:a,registry:i}=e,n=xe("BaseInputTemplate",i,a);return j.jsx(n,{type:"color",...e,disabled:t||r})}function VR(e){const{onChange:t,value:r,options:a,registry:i}=e,n=xe("BaseInputTemplate",i,a);return j.jsx(n,{type:"datetime-local",...e,value:PT(r),onChange:s=>t(gT(s))})}function HR(e){const{onChange:t,options:r,registry:a}=e,i=xe("BaseInputTemplate",a,r),n=W.useCallback(s=>t(s||void 0),[t]);return j.jsx(i,{type:"date",...e,onChange:n})}function WR(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"email",...e})}function KR({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:a,type:i,name:n}=e;if(!a)return null;const s=r(Le.PreviewLabel);return["image/jpeg","image/png"].includes(i)?j.jsx("img",{src:a,alt:s,style:{maxWidth:"100%"},className:"file-preview"}):j.jsxs(j.Fragment,{children:[" ",j.jsx("a",{download:`preview-${n}`,href:a,className:"file-download",children:s})]})}function GR({filesInfo:e,registry:t,preview:r,onRemove:a,options:i}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:s}=xe("ButtonTemplates",t,i);return j.jsx("ul",{className:"file-info",children:e.map((o,c)=>{const{name:l,size:u,type:f}=o,m=()=>a(c);return j.jsxs("li",{children:[j.jsx(so,{children:n(Le.FilesInfo,[l,f,String(u)])}),r&&j.jsx(KR,{fileInfo:o,registry:t}),j.jsx(s,{onClick:m,registry:t})]},c)})})}function JR(e){const{disabled:t,readonly:r,required:a,multiple:i,onChange:n,value:s,options:o,registry:c}=e,{filesInfo:l,handleChange:u,handleRemove:f}=TT(s,n,i),m=xe("BaseInputTemplate",c,o),d=h=>{h.target.files&&u(h.target.files)};return j.jsxs("div",{children:[j.jsx(m,{...e,disabled:t||r,type:"file",required:s?!1:a,onChangeOverride:d,value:"",accept:o.accept?String(o.accept):void 0}),j.jsx(GR,{filesInfo:l,onRemove:f,registry:c,preview:o.filePreview,options:o})]})}function YR({id:e,value:t,htmlName:r}){return j.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function XR(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"password",...e})}function ZR({options:e,value:t,required:r,disabled:a,readonly:i,autofocus:n=!1,onBlur:s,onFocus:o,onChange:c,id:l,htmlName:u}){const{enumOptions:f,enumDisabled:m,inline:d,emptyValue:h}=e,k=ro(e),v=W.useCallback(({target:b})=>s(l,on(b==null?void 0:b.value,f,k,h)),[s,f,h,l,k]),y=W.useCallback(({target:b})=>o(l,on(b==null?void 0:b.value,f,k,h)),[o,f,h,l,k]);return j.jsx("div",{className:"field-radio-group",id:l,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const E=Ki(b.value,t),p=Array.isArray(m)&&m.includes(b.value),g=a||p||i?"disabled":"",S=()=>c(b.value),C=j.jsxs("span",{children:[j.jsx("input",{type:"radio",id:hc(l,w),checked:E,name:u||l,required:r,value:to(b.value,w,k),disabled:a||p||i,autoFocus:n&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":dn(l)}),j.jsx("span",{children:b.label})]});return d?j.jsx("label",{className:`radio-inline ${g}`,children:C},String(b.value)):j.jsx("div",{className:`radio ${g}`,children:j.jsx("label",{children:C})},String(b.value))})})}function QR(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return j.jsxs("div",{className:"field-range-wrapper",children:[j.jsx(r,{type:"range",...e}),j.jsx("span",{className:"range-view",children:t})]})}function eN({id:e,value:t,required:r,disabled:a,readonly:i,autofocus:n,onChange:s,onFocus:o,onBlur:c,schema:l,options:u,htmlName:f}){const{stars:m=5,shape:d="star"}=u,h=l.maximum?Math.min(l.maximum,5):Math.min(Math.max(m,1),5),k=l.minimum||0,v=W.useCallback(E=>{!a&&!i&&s(E)},[s,a,i]),y=W.useCallback(E=>{if(o){const p=Number(E.target.dataset.value);o(e,p)}},[o,e]),b=W.useCallback(E=>{if(c){const p=Number(E.target.dataset.value);c(e,p)}},[c,e]),w=E=>d==="heart"?E?"♥":"♡":E?"★":"☆";return j.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:a||i?"default":"pointer"},children:[[...Array(h)].map((E,p)=>{const g=k+p,S=g<=t;return j.jsx("span",{onClick:()=>v(g),onKeyDown:C=>(C.key==="Enter"||C.key===" ")&&v(g),onFocus:y,onBlur:b,"data-value":g,tabIndex:a||i?-1:0,role:"radio","aria-checked":g===t,"aria-label":`${g} ${d==="heart"?"heart":"star"}${g===1?"":"s"}`,style:{color:S?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:w(S)},p)}),j.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:a||i,"aria-hidden":"true"})]})}function wu(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function tN({schema:e,id:t,options:r,value:a,required:i,disabled:n,readonly:s,multiple:o=!1,autofocus:c=!1,onChange:l,onBlur:u,onFocus:f,placeholder:m,htmlName:d,registry:h,uiSchema:k}){const{enumOptions:v,enumDisabled:y,emptyValue:b}=r,w=o?[]:"",E=ro(r),p=W.useCallback(_=>{const x=wu(_,o);return f(t,on(x,v,E,b))},[f,t,o,v,b,E]),g=W.useCallback(_=>{const x=wu(_,o);return u(t,on(x,v,E,b))},[u,t,o,v,b,E]),S=W.useCallback(_=>{const x=wu(_,o);return l(on(x,v,E,b))},[l,o,v,b,E]),C=JO(a,v,o,E,w),O=!o&&e.default===void 0;return yT(t,e,v,o),j.jsxs(j.Fragment,{children:[j.jsx(kT,{id:t,multiple:o,options:r,registry:h,uiSchema:k,value:a}),j.jsxs("select",{id:t,name:d||t,multiple:o,className:"form-control",value:C,required:i,disabled:n||s,autoFocus:c,onBlur:g,onFocus:p,onChange:S,"aria-describedby":dn(t),children:[O&&j.jsx("option",{value:"",children:m}),Array.isArray(v)&&v.map(({value:_,label:x},A)=>{const N=y&&y.includes(_);return j.jsx("option",{value:to(_,A,E),disabled:N,children:x},String(_))})]})]})}function rN({id:e,options:t,placeholder:r,value:a,required:i,disabled:n,readonly:s,autofocus:o=!1,onChange:c,onBlur:l,onFocus:u,htmlName:f}){const m=W.useCallback(({target:{value:k}})=>c(k===""?t.emptyValue:k),[c,t.emptyValue]),d=W.useCallback(({target:k})=>l(e,k==null?void 0:k.value),[l,e]),h=W.useCallback(({target:k})=>u(e,k==null?void 0:k.value),[e,u]);return j.jsx("textarea",{id:e,name:f||e,className:"form-control",value:a||"",placeholder:r,required:i,disabled:n,readOnly:s,autoFocus:o,rows:t.rows,onBlur:d,onFocus:h,onChange:m,"aria-describedby":dn(e)})}function nN(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{...e})}function aN(e){const{onChange:t,options:r,registry:a}=e,i=xe("BaseInputTemplate",a,r),n=W.useCallback(s=>t(s?`${s}:00`:void 0),[t]);return j.jsx(i,{type:"time",...e,onChange:n})}function iN(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"number",...e})}function sN(e){const{options:t,registry:r}=e,a=xe("BaseInputTemplate",r,t);return j.jsx(a,{type:"url",...e})}function oN(){return{AltDateWidget:zR,AltDateTimeWidget:qR,CheckboxWidget:UR,CheckboxesWidget:$R,ColorWidget:BR,DateWidget:HR,DateTimeWidget:VR,EmailWidget:WR,FileWidget:JR,HiddenWidget:YR,PasswordWidget:XR,RadioWidget:ZR,RangeWidget:QR,RatingWidget:eN,SelectWidget:tN,TextWidget:nN,TextareaWidget:rN,TimeWidget:aN,UpDownWidget:iN,URLWidget:sN}}function lN(){return{fields:eR(),templates:LR(),widgets:oN(),rootSchema:{},formContext:{},translateString:GO,globalFormOptions:{idPrefix:Zv,idSeparator:Qv,useFallbackUiForUnsupportedType:!1}}}function hi(e,t){return{...gk(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}let cN=class $a extends W.Component{constructor(r){super(r);lr(this,"formElement");lr(this,"pendingChanges",[]);lr(this,"isProcessingUserChange",!1);lr(this,"getUsedFormData",(r,a)=>LO(r,a));lr(this,"getFieldNames",(r,a)=>qO(r,a));lr(this,"omitExtraData",r=>{const{schema:a,schemaUtils:i}=this.state;return i.omitExtraData(a,r)});lr(this,"setFieldValue",(r,a)=>{const{registry:i}=this.state,n=Array.isArray(r)?r:r.split("."),s=cn("",i.globalFormOptions,n);this.onChange(a,n,void 0,s[pt])});lr(this,"onChange",(r,a,i,n)=>{this.pendingChanges.push({newValue:r,path:a,newErrorSchema:i,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});lr(this,"reset",()=>{const{formData:r,initialFormData:a=Yh,onChange:i}=this.props,o={formData:this.getStateFromProps(this.props,r??a,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(o,()=>i==null?void 0:i(hi({...this.state,...o})))});lr(this,"onBlur",(r,a)=>{const{onBlur:i,omitExtraData:n,liveOmit:s,liveValidate:o}=this.props;if(i&&i(r,a),n===!0&&s==="onBlur"||o==="onBlur"){const{onChange:c,extraErrors:l}=this.props,{formData:u}=this.state;let f=u,m={formData:f};if(n===!0&&s==="onBlur"&&(f=this.omitExtraData(u),m={formData:f}),o==="onBlur"){const{schema:h,schemaUtils:k,errorSchema:v,customErrors:y,retrievedSchema:b}=this.state,w=this.liveValidate(h,k,v,f,l,y,b);m={formData:f,...w,customErrors:y}}const d=Object.keys(m).filter(h=>!h.startsWith("schemaValidation")).some(h=>{const k=oe(this.state,h),v=oe(m,h);return!Je(k,v)});this.setState(m,()=>{c&&d&&c(hi({...this.state,...m}),r)})}});lr(this,"onFocus",(r,a)=>{const{onFocus:i}=this.props;i&&i(r,a)});lr(this,"onSubmit",r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:a,extraErrors:i,noValidate:n,onSubmit:s}=this.props;let{formData:o}=this.state;if(a===!0&&(o=this.omitExtraData(o)),n||this.validateFormWithFormData(o)){const c=i||{},l=i?Qd(i):[];this.setState({formData:o,errors:l,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(hi({...this.state,formData:o},"submitted"),r)})}});lr(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});lr(this,"validateFormWithFormData",r=>{const{extraErrors:a,extraErrorsBlockSubmit:i,focusOnFirstError:n,onError:s}=this.props,{errors:o}=this.state,c=this.validate(r),{errors:l,errorSchema:u}=a?$a.mergeErrors(c,a):c,f=c.errors.length>0||a&&i;return f?(n&&(typeof n=="function"?n(l[0]):this.focusOnError(l[0])),this.setState({errors:l,errorSchema:u,schemaValidationErrors:c.errors,schemaValidationErrorSchema:c.errorSchema},()=>{s?s(l):console.error("Form validation failed",l)})):l.length>0?this.setState({errors:l,errorSchema:u,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):o.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}}),!f});if(!r.validator)throw new Error("A validator is required for Form functionality to work");const{formData:a,initialFormData:i,onChange:n}=r,s=a??i;this.state={...this.getStateFromProps(r,s,void 0,void 0,void 0,!0),prevExtraErrors:r.extraErrors},n&&!Je(this.state.formData,s)&&n(hi(this.state)),this.formElement=W.createRef()}static getDerivedStateFromProps(r,a){if(r.extraErrors!==a.prevExtraErrors){const i={errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}};let{errors:n,errorSchema:s}=i;return r.extraErrors&&({errors:n,errorSchema:s}=Cs(i,r.extraErrors)),a.customErrors&&({errors:n,errorSchema:s}=Cs({errors:n,errorSchema:s},a.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:s}}return null}getSnapshotBeforeUpdate(r,a){if(!Je(this.props,r)){const i=ah(this.props.formData,r.formData),n=ah(this.props.formData,this.state.formData),s=!Je(r.schema,this.props.schema),o=i.length>0||!Je(r.formData,this.props.formData),c=n.length>0||!Je(this.state.formData,this.props.formData),l=this.getStateFromProps(this.props,this.props.formData,s||o?void 0:this.state.retrievedSchema,s,i,!c),u=!Je(l,a);return{nextState:l,shouldUpdate:u}}return{shouldUpdate:!1}}componentDidUpdate(r,a,i){if(i.shouldUpdate){const{nextState:n}=i,s=!Je(n.formData,this.props.formData),o=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,o&&s)return;s&&!Je(n.formData,a.formData)&&this.props.onChange&&this.props.onChange(hi(n)),this.setState(n)}}getStateFromProps(r,a,i,n=!1,s=[],o=!1,c=!1){var ie;const l=this.state||{},u="schema"in r?r.schema:this.props.schema,f="validator"in r?r.validator:this.props.validator,m=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},d=r.formData===void 0&&this.props.formData===void 0,h=typeof a<"u",k="liveValidate"in r?r.liveValidate:this.props.liveValidate,v=h&&!r.noValidate&&k,y="experimental_defaultFormStateBehavior"in r?r.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,b="experimental_customMergeAllOf"in r?r.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let{schemaUtils:w}=l;(!w||w.doesSchemaUtilsDiffer(f,u,y,b))&&(w=HO(f,u,y,b));const E=w.getRootSchema();let p=a;a===Yh?p=void 0:a===void 0&&d&&(p=l.formData);let g,S,C=!1;const O=[];do{g=w.getDefaultFormState(E,p,!1,l.initialDefaultsGenerated);const P=c?Br({formData:g}):"";if(S=this.updateRetrievedSchema(i??w.retrieveSchema(E,g)),c&&!O.includes(P)&&!Je(S,l.retrievedSchema)){const D=w.sanitizeDataForNewSchema(S,l.retrievedSchema,g);if(C=!Je(D,g),C){g=D,p=D;const U=Br({formData:D});C=!O.includes(U),O.push(U)}O.push(P)}else C=!1}while(C);const _=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:l.errors||[],errorSchema:l.errorSchema||{}}:{errors:l.schemaValidationErrors||[],errorSchema:l.schemaValidationErrorSchema||{}};let x,A,{schemaValidationErrors:N,schemaValidationErrorSchema:I}=l;if(v&&!o){const P=this.liveValidate(E,w,l.errorSchema,g,void 0,l.customErrors,i,i!==void 0);x=P.errors,A=P.errorSchema,N=P.schemaValidationErrors,I=P.schemaValidationErrorSchema}else{const P=_();if(x=P.errors,A=P.errorSchema,s.length>0&&!v){const U=s.reduce((T,R)=>(T[R]=void 0,T),{});I=ka(P.errorSchema,U,"preventDuplicates"),A=I}const D=$a.mergeErrors({errorSchema:A,errors:x},r.extraErrors,l.customErrors);x=D.errors,A=D.errorSchema}const F=$a.getRegistry(r,E,w),$=Je(l.registry,F)?l.registry:F,Y=l.fieldPathId&&((ie=l.fieldPathId)==null?void 0:ie[pt])===$.globalFormOptions.idPrefix?l.fieldPathId:cn("",$.globalFormOptions);return{schemaUtils:w,schema:E,uiSchema:m,fieldPathId:Y,formData:g,edit:h,errors:x,errorSchema:A,schemaValidationErrors:N,schemaValidationErrorSchema:I,retrievedSchema:S,initialDefaultsGenerated:!0,registry:$}}shouldComponentUpdate(r,a){const{experimental_componentUpdateStrategy:i="customDeep"}=this.props;return wT(this,r,a,i)}validate(r,a=this.state.schema,i,n){const s=i||this.state.schemaUtils,{customValidate:o,transformErrors:c,uiSchema:l}=this.props,u=n??a,f=r?JSON.parse(JSON.stringify(r)):void 0;return s.getValidator().validateFormData(f,u,o,c,l)}renderErrors(r){const{errors:a,errorSchema:i,schema:n,uiSchema:s}=this.state,o=ke(s),c=xe("ErrorListTemplate",r,o);return a!=null&&a.length?j.jsx(c,{errors:a,errorSchema:i||{},schema:n,uiSchema:s,registry:r}):null}static mergeErrors(r,a,i){let{errorSchema:n,errors:s}=r;if(a){const o=Cs(r,a);n=o.errorSchema,s=o.errors}if(i){const o=Cs({errors:s,errorSchema:n},i.ErrorSchema,!0);n=o.errorSchema,s=o.errors}return{errors:s,errorSchema:n}}liveValidate(r,a,i,n,s,o,c,l=!1){const u=this.validate(n,r,a,c),{errors:f}=u;let{errorSchema:m}=u;l&&(m=ka(i,u.errorSchema,"preventDuplicates"));const d=f,h=m;return{...$a.mergeErrors({errorSchema:m,errors:f},s,o),schemaValidationErrors:d,schemaValidationErrorSchema:h}}processPendingChange(){if(this.pendingChanges.length===0)return;this.isProcessingUserChange=!0;const{newValue:r,path:a,id:i}=this.pendingChanges[0],{newErrorSchema:n}=this.pendingChanges[0],{extraErrors:s,omitExtraData:o,liveOmit:c,noValidate:l,liveValidate:u,onChange:f,disabled:m,readonly:d}=this.props,{formData:h,schemaUtils:k,schema:v,fieldPathId:y,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:E,retrievedSchema:p}=this.state,g=b;const S=y.path[0]||"",C=!a||a.length===0||a.length===1&&a[0]===S;let O=C?r:Bl(h);const _=Ae(O)&&Object.keys(O).length>0&&Object.values(O).every($=>$===void 0),x=h==null,A=_&&x?void 0:O;if(Ae(O)||Array.isArray(O)){let $=!1;if(r===Gk)jT(O,a);else if(!C){let ie=r;if(r===void 0)if(typeof a[a.length-1]=="number")ie=null;else{const{field:D}=k.findFieldInSchema(v,a,h),U=D;!(U&&(Fe in U||We in U))&&U!==void 0&&($=!0)}$?yt(O,a,void 0):yt(O,a,ie)}const Y=p&&!C&&!Ae(r)&&!Array.isArray(r)&&!m&&!d,Z=this.getStateFromProps(this.props,A,void 0,void 0,void 0,!0,Y);O=Z.formData,p=Z.retrievedSchema,$&&O&&yt(O,a,void 0)}const N=!l&&(u===!0||u==="onChange");let I={formData:O,retrievedSchema:p},F=O;if(o===!0&&(c===!0||c==="onChange")&&(F=this.omitExtraData(O),I={...I,formData:F}),n){const $=C?b:oe(b,a);if(!Rt($))C?g=n:(g=Bl(b),yt(g,a,n));else if(E||(E=new Ek),C){const Y=oe(n,Zt);Y&&E.setErrors(Y)}else yt(E.ErrorSchema,a,n)}else E&&oe(E.ErrorSchema,[...a,Zt])&&E.clearErrors(a);if(N&&this.pendingChanges.length===1){const $=this.liveValidate(v,k,g,F,s,E,p);I={...I,formData:F,...$,customErrors:E}}else if(!l&&n){const $=$a.mergeErrors({errorSchema:g,errors:w},s,E);I={...I,formData:F,...$,customErrors:E}}this.setState(I,()=>{f&&f(hi({...this.state,...I}),i),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var i;return Je(r,(i=this.state)==null?void 0:i.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:a={},experimental_componentUpdateStrategy:i,idSeparator:n=Qv,idPrefix:s=Zv,nameGenerator:o,useFallbackUiForUnsupportedType:c=!1}=r;return{idPrefix:a["ui:rootFieldId"]||s,idSeparator:n,useFallbackUiForUnsupportedType:c,...i!==void 0&&{experimental_componentUpdateStrategy:i},...o!==void 0&&{nameGenerator:o}}}static getRegistry(r,a,i){var m;const{translateString:n,uiSchema:s={}}=r,{fields:o,templates:c,widgets:l,formContext:u,translateString:f}=lN();return{fields:{...o,...r.fields},templates:{...c,...r.templates,ButtonTemplates:{...c.ButtonTemplates,...(m=r.templates)==null?void 0:m.ButtonTemplates}},widgets:{...l,...r.widgets},rootSchema:a,formContext:r.formContext||u,schemaUtils:i,translateString:n||f,globalUiOptions:s[Of],globalFormOptions:$a.getGlobalFormOptions(r),uiSchemaDefinitions:s[rS]??{}}}focusOnError(r){const{idPrefix:a="root",idSeparator:i="_"}=this.props,{property:n}=r,s=Ok(n);s[0]===""?s[0]=a:s.unshift(a);const o=s.join(i);let c=this.formElement.current.elements[o];c||(c=this.formElement.current.querySelector(`input[id^="${o}"], button[id^="${o}"]`)),c!=null&&c.length&&(c=c[0]),c&&c.focus()}validateForm(){const{omitExtraData:r}=this.props;let{formData:a}=this.state;return r===!0&&(a=this.omitExtraData(a)),this.validateFormWithFormData(a)}render(){const{children:r,id:a,className:i="",tagName:n,name:s,method:o,target:c,action:l,autoComplete:u,enctype:f,acceptCharset:m,noHtml5Validate:d=!1,disabled:h,readonly:k,showErrorList:v="top",_internalFormWrapper:y}=this.props,{schema:b,uiSchema:w,formData:E,errorSchema:p,fieldPathId:g,registry:S}=this.state,{SchemaField:C}=S.fields,{SubmitButton:O}=S.templates.ButtonTemplates,_=y?n:void 0,x=y||n||"form";let{[Ml]:A={}}=ke(w);h&&(A={...A,props:{...A.props,disabled:!0}});const N={[ca]:{[Ml]:A}};return j.jsxs(x,{className:i||"rjsf",id:a,name:s,method:o,target:c,action:l,autoComplete:u,encType:f,acceptCharset:m,noValidate:d,onSubmit:this.onSubmit,as:_,ref:this.formElement,children:[v==="top"&&this.renderErrors(S),j.jsx(C,{name:"",schema:b,uiSchema:w,errorSchema:p,fieldPathId:g,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:S,disabled:h,readonly:k}),r||j.jsx(O,{uiSchema:N,registry:S}),v==="bottom"&&this.renderErrors(S)]})}};function uN(e,t="none"){return t==="all"?e:e.reduce((r,a)=>{const{message:i,schemaPath:n}=a,s=t!=="anyOf"?n==null?void 0:n.indexOf(`/${We}/`):void 0,o=t!=="oneOf"?n==null?void 0:n.indexOf(`/${Fe}/`):void 0;let c;return s&&s>=0?c=n==null?void 0:n.substring(0,s):o&&o>=0&&(c=n==null?void 0:n.substring(0,o)),(c?r.find(u=>{var f;return u.message===i&&((f=u.schemaPath)===null||f===void 0?void 0:f.startsWith(c))}):void 0)||r.push(a),r},[])}function fN(e=[],t,r,a){const i=e.map(n=>{var s;const{instancePath:o,keyword:c,params:l,schemaPath:u,parentSchema:f,...m}=n;let{message:d=""}=m,h=o.replace(/\//g,"."),k=`${h} ${d}`.trim(),v="";const y=[...((s=l.deps)===null||s===void 0?void 0:s.split(", "))||[],l.missingProperty,l.property].filter(b=>b);if(y.length>0)y.forEach(b=>{const w=h?`${h}.${b}`:b;let E=ke(oe(t,w.replace(/^\./,""))).title;if(E===void 0){const p=u.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);E=ke(oe(t,p)).title}if(E===void 0){const p=h.replace(/^\./,"").split(".").filter(Boolean);E=oe(t,[...p,b,"title"])}if(E)d=d.replace(`'${b}'`,`'${E}'`),v=E;else{const p=oe(f,[Ye,b,"title"]);if(p)d=d.replace(`'${b}'`,`'${p}'`),v=p;else if(a){const g=h.replace(/^\./,"").split(".").filter(Boolean),S=[];for(const O of g)S.push(Ye,O);S.push(Ye,b,"title");const C=oe(a,S);C&&(d=d.replace(`'${b}'`,`'${C}'`),v=C)}}}),k=d;else{const b=ke(oe(t,h.replace(/^\./,""))).title;if(b)k=`'${b}' ${d}`.trim(),v=b;else{const w=f==null?void 0:f.title;w&&(k=`'${w}' ${d}`.trim(),v=w)}}return"missingProperty"in l&&(h=h?`${h}.${l.missingProperty}`:l.missingProperty),{name:c,property:h,message:d,params:l,stack:k,schemaPath:u,title:v}});return uN(i,r)}function dN(e,t,r,a,i,n,s,o){const{validationError:c}=t;let l=fN(t.errors,s,o,a);c&&(l=[...l,{stack:c.message}]),typeof n=="function"&&(l=n(l,s));let u=ST(l);if(c&&(u={...u,$schema:{__errors:[c.message]}}),typeof i!="function")return{errors:l,errorSchema:u};const f=dk(e,a,r,a,!0),m=i(f,Tf(f),s,u),d=Tk(m);return Cs({errors:l,errorSchema:u},d)}var Ro={exports:{}},Su={},Mn={},Fa={},Eu={},xu={},Cu={},Zh;function Yl(){return Zh||(Zh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(b){if(super(),!e.IDENTIFIER.test(b))throw new Error("CodeGen: name must be a valid identifier");this.str=b}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class a extends t{constructor(b){super(),this._items=typeof b=="string"?[b]:b}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const b=this._items[0];return b===""||b==='""'}get str(){var b;return(b=this._str)!==null&&b!==void 0?b:this._str=this._items.reduce((w,E)=>`${w}${E}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((w,E)=>(E instanceof r&&(w[E.str]=(w[E.str]||0)+1),w),{})}}e._Code=a,e.nil=new a("");function i(y,...b){const w=[y[0]];let E=0;for(;E<b.length;)o(w,b[E]),w.push(y[++E]);return new a(w)}e._=i;const n=new a("+");function s(y,...b){const w=[d(y[0])];let E=0;for(;E<b.length;)w.push(n),o(w,b[E]),w.push(n,d(y[++E]));return c(w),new a(w)}e.str=s;function o(y,b){b instanceof a?y.push(...b._items):b instanceof r?y.push(b):y.push(f(b))}e.addCodeArg=o;function c(y){let b=1;for(;b<y.length-1;){if(y[b]===n){const w=l(y[b-1],y[b+1]);if(w!==void 0){y.splice(b-1,3,w);continue}y[b++]="+"}b++}}function l(y,b){if(b==='""')return y;if(y==='""')return b;if(typeof y=="string")return b instanceof r||y[y.length-1]!=='"'?void 0:typeof b!="string"?`${y.slice(0,-1)}${b}"`:b[0]==='"'?y.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(y instanceof r))return`"${y}${b.slice(1)}`}function u(y,b){return b.emptyStr()?y:y.emptyStr()?b:s`${y}${b}`}e.strConcat=u;function f(y){return typeof y=="number"||typeof y=="boolean"||y===null?y:d(Array.isArray(y)?y.join(","):y)}function m(y){return new a(d(y))}e.stringify=m;function d(y){return JSON.stringify(y).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function h(y){return typeof y=="string"&&e.IDENTIFIER.test(y)?new a(`.${y}`):i`[${y}]`}e.getProperty=h;function k(y){if(typeof y=="string"&&e.IDENTIFIER.test(y))return new a(`${y}`);throw new Error(`CodeGen: invalid export name: ${y}, use explicit $id name mapping`)}e.getEsmExportName=k;function v(y){return new a(y.toString())}e.regexpCode=v})(Cu)),Cu}var Au={},Qh;function eg(){return Qh||(Qh=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Yl();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var a;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(a||(e.UsedValueState=a={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:l,parent:u}={}){this._names={},this._prefixes=l,this._parent=u}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const u=this._names[l]||this._nameGroup(l);return`${l}${u.index++}`}_nameGroup(l){var u,f;if(!((f=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||f===void 0)&&f.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class n extends t.Name{constructor(l,u){super(u),this.prefix=l}setValue(l,{property:u,itemIndex:f}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(u)}[${f}]`}}e.ValueScopeName=n;const s=(0,t._)`\n`;class o extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?s:t.nil}}get(){return this._scope}name(l){return new n(l,this._newName(l))}value(l,u){var f;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const m=this.toName(l),{prefix:d}=m,h=(f=u.key)!==null&&f!==void 0?f:u.ref;let k=this._values[d];if(k){const b=k.get(h);if(b)return b}else k=this._values[d]=new Map;k.set(h,m);const v=this._scope[d]||(this._scope[d]=[]),y=v.length;return v[y]=u.ref,m.setValue(u,{property:d,itemIndex:y}),m}getValue(l,u){const f=this._values[l];if(f)return f.get(u)}scopeRefs(l,u=this._values){return this._reduceValues(u,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${l}${f.scopePath}`})}scopeCode(l=this._values,u,f){return this._reduceValues(l,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},u,f)}_reduceValues(l,u,f={},m){let d=t.nil;for(const h in l){const k=l[h];if(!k)continue;const v=f[h]=f[h]||new Map;k.forEach(y=>{if(v.has(y))return;v.set(y,a.Started);let b=u(y);if(b){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${w} ${y} = ${b};${this.opts._n}`}else if(b=m==null?void 0:m(y))d=(0,t._)`${d}${b}${this.opts._n}`;else throw new r(y);v.set(y,a.Completed)})}return d}}e.ValueScope=o})(Au)),Au}var tg;function Be(){return tg||(tg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Yl(),r=eg();var a=Yl();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return a.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return a.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return a.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return a.Name}});var i=eg();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class n{optimizeNodes(){return this}optimizeNames(R,M){return this}}class s extends n{constructor(R,M,B){super(),this.varKind=R,this.name=M,this.rhs=B}render({es5:R,_n:M}){const B=R?r.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${V};`+M}optimizeNames(R,M){if(R[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,R,M)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends n{constructor(R,M,B){super(),this.lhs=R,this.rhs=M,this.sideEffects=B}render({_n:R}){return`${this.lhs} = ${this.rhs};`+R}optimizeNames(R,M){if(!(this.lhs instanceof t.Name&&!R[this.lhs.str]&&!this.sideEffects))return this.rhs=I(this.rhs,R,M),this}get names(){const R=this.lhs instanceof t.Name?{}:{...this.lhs.names};return N(R,this.rhs)}}class c extends o{constructor(R,M,B,V){super(R,B,V),this.op=M}render({_n:R}){return`${this.lhs} ${this.op}= ${this.rhs};`+R}}class l extends n{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`${this.label}:`+R}}class u extends n{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`break${this.label?` ${this.label}`:""};`+R}}class f extends n{constructor(R){super(),this.error=R}render({_n:R}){return`throw ${this.error};`+R}get names(){return this.error.names}}class m extends n{constructor(R){super(),this.code=R}render({_n:R}){return`${this.code};`+R}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(R,M){return this.code=I(this.code,R,M),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends n{constructor(R=[]){super(),this.nodes=R}render(R){return this.nodes.reduce((M,B)=>M+B.render(R),"")}optimizeNodes(){const{nodes:R}=this;let M=R.length;for(;M--;){const B=R[M].optimizeNodes();Array.isArray(B)?R.splice(M,1,...B):B?R[M]=B:R.splice(M,1)}return R.length>0?this:void 0}optimizeNames(R,M){const{nodes:B}=this;let V=B.length;for(;V--;){const K=B[V];K.optimizeNames(R,M)||(F(R,K.names),B.splice(V,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((R,M)=>A(R,M.names),{})}}class h extends d{render(R){return"{"+R._n+super.render(R)+"}"+R._n}}class k extends d{}class v extends h{}v.kind="else";class y extends h{constructor(R,M){super(M),this.condition=R}render(R){let M=`if(${this.condition})`+super.render(R);return this.else&&(M+="else "+this.else.render(R)),M}optimizeNodes(){super.optimizeNodes();const R=this.condition;if(R===!0)return this.nodes;let M=this.else;if(M){const B=M.optimizeNodes();M=this.else=Array.isArray(B)?new v(B):B}if(M)return R===!1?M instanceof y?M:M.nodes:this.nodes.length?this:new y($(R),M instanceof y?[M]:M.nodes);if(!(R===!1||!this.nodes.length))return this}optimizeNames(R,M){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(R,M),!!(super.optimizeNames(R,M)||this.else))return this.condition=I(this.condition,R,M),this}get names(){const R=super.names;return N(R,this.condition),this.else&&A(R,this.else.names),R}}y.kind="if";class b extends h{}b.kind="for";class w extends b{constructor(R){super(),this.iteration=R}render(R){return`for(${this.iteration})`+super.render(R)}optimizeNames(R,M){if(super.optimizeNames(R,M))return this.iteration=I(this.iteration,R,M),this}get names(){return A(super.names,this.iteration.names)}}class E extends b{constructor(R,M,B,V){super(),this.varKind=R,this.name=M,this.from=B,this.to=V}render(R){const M=R.es5?r.varKinds.var:this.varKind,{name:B,from:V,to:K}=this;return`for(${M} ${B}=${V}; ${B}<${K}; ${B}++)`+super.render(R)}get names(){const R=N(super.names,this.from);return N(R,this.to)}}class p extends b{constructor(R,M,B,V){super(),this.loop=R,this.varKind=M,this.name=B,this.iterable=V}render(R){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(R)}optimizeNames(R,M){if(super.optimizeNames(R,M))return this.iterable=I(this.iterable,R,M),this}get names(){return A(super.names,this.iterable.names)}}class g extends h{constructor(R,M,B){super(),this.name=R,this.args=M,this.async=B}render(R){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(R)}}g.kind="func";class S extends d{render(R){return"return "+super.render(R)}}S.kind="return";class C extends h{render(R){let M="try"+super.render(R);return this.catch&&(M+=this.catch.render(R)),this.finally&&(M+=this.finally.render(R)),M}optimizeNodes(){var R,M;return super.optimizeNodes(),(R=this.catch)===null||R===void 0||R.optimizeNodes(),(M=this.finally)===null||M===void 0||M.optimizeNodes(),this}optimizeNames(R,M){var B,V;return super.optimizeNames(R,M),(B=this.catch)===null||B===void 0||B.optimizeNames(R,M),(V=this.finally)===null||V===void 0||V.optimizeNames(R,M),this}get names(){const R=super.names;return this.catch&&A(R,this.catch.names),this.finally&&A(R,this.finally.names),R}}class O extends h{constructor(R){super(),this.error=R}render(R){return`catch(${this.error})`+super.render(R)}}O.kind="catch";class _ extends h{render(R){return"finally"+super.render(R)}}_.kind="finally";class x{constructor(R,M={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...M,_n:M.lines?`
|
|
99
|
-
`:""},this._extScope=R,this._scope=new r.Scope({parent:R}),this._nodes=[new k]}toString(){return this._root.render(this.opts)}name(R){return this._scope.name(R)}scopeName(R){return this._extScope.name(R)}scopeValue(R,M){const B=this._extScope.value(R,M);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(R,M){return this._extScope.getValue(R,M)}scopeRefs(R){return this._extScope.scopeRefs(R,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(R,M,B,V){const K=this._scope.toName(M);return B!==void 0&&V&&(this._constants[K.str]=B),this._leafNode(new s(R,K,B)),K}const(R,M,B){return this._def(r.varKinds.const,R,M,B)}let(R,M,B){return this._def(r.varKinds.let,R,M,B)}var(R,M,B){return this._def(r.varKinds.var,R,M,B)}assign(R,M,B){return this._leafNode(new o(R,M,B))}add(R,M){return this._leafNode(new c(R,e.operators.ADD,M))}code(R){return typeof R=="function"?R():R!==t.nil&&this._leafNode(new m(R)),this}object(...R){const M=["{"];for(const[B,V]of R)M.length>1&&M.push(","),M.push(B),(B!==V||this.opts.es5)&&(M.push(":"),(0,t.addCodeArg)(M,V));return M.push("}"),new t._Code(M)}if(R,M,B){if(this._blockNode(new y(R)),M&&B)this.code(M).else().code(B).endIf();else if(M)this.code(M).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(R){return this._elseNode(new y(R))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(R,M){return this._blockNode(R),M&&this.code(M).endFor(),this}for(R,M){return this._for(new w(R),M)}forRange(R,M,B,V,K=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(R);return this._for(new E(K,J,M,B),()=>V(J))}forOf(R,M,B,V=r.varKinds.const){const K=this._scope.toName(R);if(this.opts.es5){const J=M instanceof t.Name?M:this.var("_arr",M);return this.forRange("_i",0,(0,t._)`${J}.length`,Q=>{this.var(K,(0,t._)`${J}[${Q}]`),B(K)})}return this._for(new p("of",V,K,M),()=>B(K))}forIn(R,M,B,V=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(R,(0,t._)`Object.keys(${M})`,B);const K=this._scope.toName(R);return this._for(new p("in",V,K,M),()=>B(K))}endFor(){return this._endBlockNode(b)}label(R){return this._leafNode(new l(R))}break(R){return this._leafNode(new u(R))}return(R){const M=new S;if(this._blockNode(M),this.code(R),M.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(R,M,B){if(!M&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const V=new C;if(this._blockNode(V),this.code(R),M){const K=this.name("e");this._currNode=V.catch=new O(K),M(K)}return B&&(this._currNode=V.finally=new _,this.code(B)),this._endBlockNode(O,_)}throw(R){return this._leafNode(new f(R))}block(R,M){return this._blockStarts.push(this._nodes.length),R&&this.code(R).endBlock(M),this}endBlock(R){const M=this._blockStarts.pop();if(M===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-M;if(B<0||R!==void 0&&B!==R)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${R} expected`);return this._nodes.length=M,this}func(R,M=t.nil,B,V){return this._blockNode(new g(R,M,B)),V&&this.code(V).endFunc(),this}endFunc(){return this._endBlockNode(g)}optimize(R=1){for(;R-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(R){return this._currNode.nodes.push(R),this}_blockNode(R){this._currNode.nodes.push(R),this._nodes.push(R)}_endBlockNode(R,M){const B=this._currNode;if(B instanceof R||M&&B instanceof M)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${M?`${R.kind}/${M.kind}`:R.kind}"`)}_elseNode(R){const M=this._currNode;if(!(M instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=M.else=R,this}get _root(){return this._nodes[0]}get _currNode(){const R=this._nodes;return R[R.length-1]}set _currNode(R){const M=this._nodes;M[M.length-1]=R}}e.CodeGen=x;function A(T,R){for(const M in R)T[M]=(T[M]||0)+(R[M]||0);return T}function N(T,R){return R instanceof t._CodeOrName?A(T,R.names):T}function I(T,R,M){if(T instanceof t.Name)return B(T);if(!V(T))return T;return new t._Code(T._items.reduce((K,J)=>(J instanceof t.Name&&(J=B(J)),J instanceof t._Code?K.push(...J._items):K.push(J),K),[]));function B(K){const J=M[K.str];return J===void 0||R[K.str]!==1?K:(delete R[K.str],J)}function V(K){return K instanceof t._Code&&K._items.some(J=>J instanceof t.Name&&R[J.str]===1&&M[J.str]!==void 0)}}function F(T,R){for(const M in R)T[M]=(T[M]||0)-(R[M]||0)}function $(T){return typeof T=="boolean"||typeof T=="number"||T===null?!T:(0,t._)`!${U(T)}`}e.not=$;const Y=D(e.operators.AND);function Z(...T){return T.reduce(Y)}e.and=Z;const ie=D(e.operators.OR);function P(...T){return T.reduce(ie)}e.or=P;function D(T){return(R,M)=>R===t.nil?M:M===t.nil?R:(0,t._)`${U(R)} ${T} ${U(M)}`}function U(T){return T instanceof t.Name?T:(0,t._)`(${T})`}})(xu)),xu}var qe={},rg;function et(){if(rg)return qe;rg=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.checkStrictMode=qe.getErrorPath=qe.Type=qe.useFunc=qe.setEvaluated=qe.evaluatedPropsToName=qe.mergeEvaluated=qe.eachItem=qe.unescapeJsonPointer=qe.escapeJsonPointer=qe.escapeFragment=qe.unescapeFragment=qe.schemaRefOrVal=qe.schemaHasRulesButRef=qe.schemaHasRules=qe.checkUnknownRules=qe.alwaysValidSchema=qe.toHash=void 0;const e=Be(),t=Yl();function r(p){const g={};for(const S of p)g[S]=!0;return g}qe.toHash=r;function a(p,g){return typeof g=="boolean"?g:Object.keys(g).length===0?!0:(i(p,g),!n(g,p.self.RULES.all))}qe.alwaysValidSchema=a;function i(p,g=p.schema){const{opts:S,self:C}=p;if(!S.strictSchema||typeof g=="boolean")return;const O=C.RULES.keywords;for(const _ in g)O[_]||E(p,`unknown keyword: "${_}"`)}qe.checkUnknownRules=i;function n(p,g){if(typeof p=="boolean")return!p;for(const S in p)if(g[S])return!0;return!1}qe.schemaHasRules=n;function s(p,g){if(typeof p=="boolean")return!p;for(const S in p)if(S!=="$ref"&&g.all[S])return!0;return!1}qe.schemaHasRulesButRef=s;function o({topSchemaRef:p,schemaPath:g},S,C,O){if(!O){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${p}${g}${(0,e.getProperty)(C)}`}qe.schemaRefOrVal=o;function c(p){return f(decodeURIComponent(p))}qe.unescapeFragment=c;function l(p){return encodeURIComponent(u(p))}qe.escapeFragment=l;function u(p){return typeof p=="number"?`${p}`:p.replace(/~/g,"~0").replace(/\//g,"~1")}qe.escapeJsonPointer=u;function f(p){return p.replace(/~1/g,"/").replace(/~0/g,"~")}qe.unescapeJsonPointer=f;function m(p,g){if(Array.isArray(p))for(const S of p)g(S);else g(p)}qe.eachItem=m;function d({mergeNames:p,mergeToName:g,mergeValues:S,resultToName:C}){return(O,_,x,A)=>{const N=x===void 0?_:x instanceof e.Name?(_ instanceof e.Name?p(O,_,x):g(O,_,x),x):_ instanceof e.Name?(g(O,x,_),_):S(_,x);return A===e.Name&&!(N instanceof e.Name)?C(O,N):N}}qe.mergeEvaluated={props:d({mergeNames:(p,g,S)=>p.if((0,e._)`${S} !== true && ${g} !== undefined`,()=>{p.if((0,e._)`${g} === true`,()=>p.assign(S,!0),()=>p.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${g})`))}),mergeToName:(p,g,S)=>p.if((0,e._)`${S} !== true`,()=>{g===!0?p.assign(S,!0):(p.assign(S,(0,e._)`${S} || {}`),k(p,S,g))}),mergeValues:(p,g)=>p===!0?!0:{...p,...g},resultToName:h}),items:d({mergeNames:(p,g,S)=>p.if((0,e._)`${S} !== true && ${g} !== undefined`,()=>p.assign(S,(0,e._)`${g} === true ? true : ${S} > ${g} ? ${S} : ${g}`)),mergeToName:(p,g,S)=>p.if((0,e._)`${S} !== true`,()=>p.assign(S,g===!0?!0:(0,e._)`${S} > ${g} ? ${S} : ${g}`)),mergeValues:(p,g)=>p===!0?!0:Math.max(p,g),resultToName:(p,g)=>p.var("items",g)})};function h(p,g){if(g===!0)return p.var("props",!0);const S=p.var("props",(0,e._)`{}`);return g!==void 0&&k(p,S,g),S}qe.evaluatedPropsToName=h;function k(p,g,S){Object.keys(S).forEach(C=>p.assign((0,e._)`${g}${(0,e.getProperty)(C)}`,!0))}qe.setEvaluated=k;const v={};function y(p,g){return p.scopeValue("func",{ref:g,code:v[g.code]||(v[g.code]=new t._Code(g.code))})}qe.useFunc=y;var b;(function(p){p[p.Num=0]="Num",p[p.Str=1]="Str"})(b||(qe.Type=b={}));function w(p,g,S){if(p instanceof e.Name){const C=g===b.Num;return S?C?(0,e._)`"[" + ${p} + "]"`:(0,e._)`"['" + ${p} + "']"`:C?(0,e._)`"/" + ${p}`:(0,e._)`"/" + ${p}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)(p).toString():"/"+u(p)}qe.getErrorPath=w;function E(p,g,S=p.opts.strictSchema){if(S){if(g=`strict mode: ${g}`,S===!0)throw new Error(g);p.self.logger.warn(g)}}return qe.checkStrictMode=E,qe}var No={},ng;function Aa(){if(ng)return No;ng=1,Object.defineProperty(No,"__esModule",{value:!0});const e=Be(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return No.default=t,No}var ag;function kc(){return ag||(ag=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Be(),r=et(),a=Aa();e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:y})=>y?(0,t.str)`"${v}" keyword must be ${y} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,y=e.keywordError,b,w){const{it:E}=v,{gen:p,compositeRule:g,allErrors:S}=E,C=f(v,y,b);w??(g||S)?c(p,C):l(E,(0,t._)`[${C}]`)}e.reportError=i;function n(v,y=e.keywordError,b){const{it:w}=v,{gen:E,compositeRule:p,allErrors:g}=w,S=f(v,y,b);c(E,S),p||g||l(w,a.default.vErrors)}e.reportExtraError=n;function s(v,y){v.assign(a.default.errors,y),v.if((0,t._)`${a.default.vErrors} !== null`,()=>v.if(y,()=>v.assign((0,t._)`${a.default.vErrors}.length`,y),()=>v.assign(a.default.vErrors,null)))}e.resetErrorsCount=s;function o({gen:v,keyword:y,schemaValue:b,data:w,errsCount:E,it:p}){if(E===void 0)throw new Error("ajv implementation error");const g=v.name("err");v.forRange("i",E,a.default.errors,S=>{v.const(g,(0,t._)`${a.default.vErrors}[${S}]`),v.if((0,t._)`${g}.instancePath === undefined`,()=>v.assign((0,t._)`${g}.instancePath`,(0,t.strConcat)(a.default.instancePath,p.errorPath))),v.assign((0,t._)`${g}.schemaPath`,(0,t.str)`${p.errSchemaPath}/${y}`),p.opts.verbose&&(v.assign((0,t._)`${g}.schema`,b),v.assign((0,t._)`${g}.data`,w))})}e.extendErrors=o;function c(v,y){const b=v.const("err",y);v.if((0,t._)`${a.default.vErrors} === null`,()=>v.assign(a.default.vErrors,(0,t._)`[${b}]`),(0,t._)`${a.default.vErrors}.push(${b})`),v.code((0,t._)`${a.default.errors}++`)}function l(v,y){const{gen:b,validateName:w,schemaEnv:E}=v;E.$async?b.throw((0,t._)`new ${v.ValidationError}(${y})`):(b.assign((0,t._)`${w}.errors`,y),b.return(!1))}const u={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(v,y,b){const{createErrors:w}=v.it;return w===!1?(0,t._)`{}`:m(v,y,b)}function m(v,y,b={}){const{gen:w,it:E}=v,p=[d(E,b),h(v,b)];return k(v,y,p),w.object(...p)}function d({errorPath:v},{instancePath:y}){const b=y?(0,t.str)`${v}${(0,r.getErrorPath)(y,r.Type.Str)}`:v;return[a.default.instancePath,(0,t.strConcat)(a.default.instancePath,b)]}function h({keyword:v,it:{errSchemaPath:y}},{schemaPath:b,parentSchema:w}){let E=w?y:(0,t.str)`${y}/${v}`;return b&&(E=(0,t.str)`${E}${(0,r.getErrorPath)(b,r.Type.Str)}`),[u.schemaPath,E]}function k(v,{params:y,message:b},w){const{keyword:E,data:p,schemaValue:g,it:S}=v,{opts:C,propertyName:O,topSchemaRef:_,schemaPath:x}=S;w.push([u.keyword,E],[u.params,typeof y=="function"?y(v):y||(0,t._)`{}`]),C.messages&&w.push([u.message,typeof b=="function"?b(v):b]),C.verbose&&w.push([u.schema,g],[u.parentSchema,(0,t._)`${_}${x}`],[a.default.data,p]),O&&w.push([u.propertyName,O])}})(Eu)),Eu}var ig;function mN(){if(ig)return Fa;ig=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.boolOrEmptySchema=Fa.topBoolOrEmptySchema=void 0;const e=kc(),t=Be(),r=Aa(),a={message:"boolean schema is false"};function i(o){const{gen:c,schema:l,validateName:u}=o;l===!1?s(o,!1):typeof l=="object"&&l.$async===!0?c.return(r.default.data):(c.assign((0,t._)`${u}.errors`,null),c.return(!0))}Fa.topBoolOrEmptySchema=i;function n(o,c){const{gen:l,schema:u}=o;u===!1?(l.var(c,!1),s(o)):l.var(c,!0)}Fa.boolOrEmptySchema=n;function s(o,c){const{gen:l,data:u}=o,f={gen:l,keyword:"false schema",data:u,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,e.reportError)(f,a,void 0,c)}return Fa}var Xt={},Ma={},sg;function t0(){if(sg)return Ma;sg=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.getRules=Ma.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(i){return typeof i=="string"&&t.has(i)}Ma.isJSONType=r;function a(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return Ma.getRules=a,Ma}var Ln={},og;function r0(){if(og)return Ln;og=1,Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.shouldUseRule=Ln.shouldUseGroup=Ln.schemaHasRulesForType=void 0;function e({schema:a,self:i},n){const s=i.RULES.types[n];return s&&s!==!0&&t(a,s)}Ln.schemaHasRulesForType=e;function t(a,i){return i.rules.some(n=>r(a,n))}Ln.shouldUseGroup=t;function r(a,i){var n;return a[i.keyword]!==void 0||((n=i.definition.implements)===null||n===void 0?void 0:n.some(s=>a[s]!==void 0))}return Ln.shouldUseRule=r,Ln}var lg;function Xl(){if(lg)return Xt;lg=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.reportTypeError=Xt.checkDataTypes=Xt.checkDataType=Xt.coerceAndCheckDataType=Xt.getJSONTypes=Xt.getSchemaTypes=Xt.DataType=void 0;const e=t0(),t=r0(),r=kc(),a=Be(),i=et();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(Xt.DataType=n={}));function s(b){const w=o(b.type);if(w.includes("null")){if(b.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&b.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');b.nullable===!0&&w.push("null")}return w}Xt.getSchemaTypes=s;function o(b){const w=Array.isArray(b)?b:b?[b]:[];if(w.every(e.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}Xt.getJSONTypes=o;function c(b,w){const{gen:E,data:p,opts:g}=b,S=u(w,g.coerceTypes),C=w.length>0&&!(S.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(C){const O=h(w,p,g.strictNumbers,n.Wrong);E.if(O,()=>{S.length?f(b,w,S):v(b)})}return C}Xt.coerceAndCheckDataType=c;const l=new Set(["string","number","integer","boolean","null"]);function u(b,w){return w?b.filter(E=>l.has(E)||w==="array"&&E==="array"):[]}function f(b,w,E){const{gen:p,data:g,opts:S}=b,C=p.let("dataType",(0,a._)`typeof ${g}`),O=p.let("coerced",(0,a._)`undefined`);S.coerceTypes==="array"&&p.if((0,a._)`${C} == 'object' && Array.isArray(${g}) && ${g}.length == 1`,()=>p.assign(g,(0,a._)`${g}[0]`).assign(C,(0,a._)`typeof ${g}`).if(h(w,g,S.strictNumbers),()=>p.assign(O,g))),p.if((0,a._)`${O} !== undefined`);for(const x of E)(l.has(x)||x==="array"&&S.coerceTypes==="array")&&_(x);p.else(),v(b),p.endIf(),p.if((0,a._)`${O} !== undefined`,()=>{p.assign(g,O),m(b,O)});function _(x){switch(x){case"string":p.elseIf((0,a._)`${C} == "number" || ${C} == "boolean"`).assign(O,(0,a._)`"" + ${g}`).elseIf((0,a._)`${g} === null`).assign(O,(0,a._)`""`);return;case"number":p.elseIf((0,a._)`${C} == "boolean" || ${g} === null
|
|
100
|
-
|| (${
|
|
101
|
-
|| (${
|
|
102
|
-
|| ${C} === "boolean" || ${g} === null`).assign(O,(0,a._)`[${g}]`)}}}function m({gen:b,parentData:w,parentDataProperty:E},p){b.if((0,a._)`${w} !== undefined`,()=>b.assign((0,a._)`${w}[${E}]`,p))}function d(b,w,E,p=n.Correct){const g=p===n.Correct?a.operators.EQ:a.operators.NEQ;let S;switch(b){case"null":return(0,a._)`${w} ${g} null`;case"array":S=(0,a._)`Array.isArray(${w})`;break;case"object":S=(0,a._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":S=C((0,a._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":S=C();break;default:return(0,a._)`typeof ${w} ${g} ${b}`}return p===n.Correct?S:(0,a.not)(S);function C(O=a.nil){return(0,a.and)((0,a._)`typeof ${w} == "number"`,O,E?(0,a._)`isFinite(${w})`:a.nil)}}Xt.checkDataType=d;function h(b,w,E,p){if(b.length===1)return d(b[0],w,E,p);let g;const S=(0,i.toHash)(b);if(S.array&&S.object){const C=(0,a._)`typeof ${w} != "object"`;g=S.null?C:(0,a._)`!${w} || ${C}`,delete S.null,delete S.array,delete S.object}else g=a.nil;S.number&&delete S.integer;for(const C in S)g=(0,a.and)(g,d(C,w,E,p));return g}Xt.checkDataTypes=h;const k={message:({schema:b})=>`must be ${b}`,params:({schema:b,schemaValue:w})=>typeof b=="string"?(0,a._)`{type: ${b}}`:(0,a._)`{type: ${w}}`};function v(b){const w=y(b);(0,r.reportError)(w,k)}Xt.reportTypeError=v;function y(b){const{gen:w,data:E,schema:p}=b,g=(0,i.schemaRefOrVal)(b,p,"type");return{gen:w,keyword:"type",data:E,schema:p.type,schemaCode:g,schemaValue:g,parentSchema:p,params:{},it:b}}return Xt}var ds={},cg;function pN(){if(cg)return ds;cg=1,Object.defineProperty(ds,"__esModule",{value:!0}),ds.assignDefaults=void 0;const e=Be(),t=et();function r(i,n){const{properties:s,items:o}=i.schema;if(n==="object"&&s)for(const c in s)a(i,c,s[c].default);else n==="array"&&Array.isArray(o)&&o.forEach((c,l)=>a(i,l,c.default))}ds.assignDefaults=r;function a(i,n,s){const{gen:o,compositeRule:c,data:l,opts:u}=i;if(s===void 0)return;const f=(0,e._)`${l}${(0,e.getProperty)(n)}`;if(c){(0,t.checkStrictMode)(i,`default is ignored for: ${f}`);return}let m=(0,e._)`${f} === undefined`;u.useDefaults==="empty"&&(m=(0,e._)`${m} || ${f} === null || ${f} === ""`),o.if(m,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return ds}var tn={},ht={},ug;function mn(){if(ug)return ht;ug=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.validateUnion=ht.validateArray=ht.usePattern=ht.callValidateCode=ht.schemaProperties=ht.allSchemaProperties=ht.noPropertyInData=ht.propertyInData=ht.isOwnProperty=ht.hasPropFunc=ht.reportMissingProp=ht.checkMissingProp=ht.checkReportMissingProp=void 0;const e=Be(),t=et(),r=Aa(),a=et();function i(b,w){const{gen:E,data:p,it:g}=b;E.if(u(E,p,w,g.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}ht.checkReportMissingProp=i;function n({gen:b,data:w,it:{opts:E}},p,g){return(0,e.or)(...p.map(S=>(0,e.and)(u(b,w,S,E.ownProperties),(0,e._)`${g} = ${S}`)))}ht.checkMissingProp=n;function s(b,w){b.setParams({missingProperty:w},!0),b.error()}ht.reportMissingProp=s;function o(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}ht.hasPropFunc=o;function c(b,w,E){return(0,e._)`${o(b)}.call(${w}, ${E})`}ht.isOwnProperty=c;function l(b,w,E,p){const g=(0,e._)`${w}${(0,e.getProperty)(E)} !== undefined`;return p?(0,e._)`${g} && ${c(b,w,E)}`:g}ht.propertyInData=l;function u(b,w,E,p){const g=(0,e._)`${w}${(0,e.getProperty)(E)} === undefined`;return p?(0,e.or)(g,(0,e.not)(c(b,w,E))):g}ht.noPropertyInData=u;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}ht.allSchemaProperties=f;function m(b,w){return f(w).filter(E=>!(0,t.alwaysValidSchema)(b,w[E]))}ht.schemaProperties=m;function d({schemaCode:b,data:w,it:{gen:E,topSchemaRef:p,schemaPath:g,errorPath:S},it:C},O,_,x){const A=x?(0,e._)`${b}, ${w}, ${p}${g}`:w,N=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,S)],[r.default.parentData,C.parentData],[r.default.parentDataProperty,C.parentDataProperty],[r.default.rootData,r.default.rootData]];C.opts.dynamicRef&&N.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const I=(0,e._)`${A}, ${E.object(...N)}`;return _!==e.nil?(0,e._)`${O}.call(${_}, ${I})`:(0,e._)`${O}(${I})`}ht.callValidateCode=d;const h=(0,e._)`new RegExp`;function k({gen:b,it:{opts:w}},E){const p=w.unicodeRegExp?"u":"",{regExp:g}=w.code,S=g(E,p);return b.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${g.code==="new RegExp"?h:(0,a.useFunc)(b,g)}(${E}, ${p})`})}ht.usePattern=k;function v(b){const{gen:w,data:E,keyword:p,it:g}=b,S=w.name("valid");if(g.allErrors){const O=w.let("valid",!0);return C(()=>w.assign(O,!1)),O}return w.var(S,!0),C(()=>w.break()),S;function C(O){const _=w.const("len",(0,e._)`${E}.length`);w.forRange("i",0,_,x=>{b.subschema({keyword:p,dataProp:x,dataPropType:t.Type.Num},S),w.if((0,e.not)(S),O)})}}ht.validateArray=v;function y(b){const{gen:w,schema:E,keyword:p,it:g}=b;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(_=>(0,t.alwaysValidSchema)(g,_))&&!g.opts.unevaluated)return;const C=w.let("valid",!1),O=w.name("_valid");w.block(()=>E.forEach((_,x)=>{const A=b.subschema({keyword:p,schemaProp:x,compositeRule:!0},O);w.assign(C,(0,e._)`${C} || ${O}`),b.mergeValidEvaluated(A,O)||w.if((0,e.not)(C))})),b.result(C,()=>b.reset(),()=>b.error(!0))}return ht.validateUnion=y,ht}var fg;function hN(){if(fg)return tn;fg=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.validateKeywordUsage=tn.validSchemaType=tn.funcKeywordCode=tn.macroKeywordCode=void 0;const e=Be(),t=Aa(),r=mn(),a=kc();function i(m,d){const{gen:h,keyword:k,schema:v,parentSchema:y,it:b}=m,w=d.macro.call(b.self,v,y,b),E=l(h,k,w);b.opts.validateSchema!==!1&&b.self.validateSchema(w,!0);const p=h.name("valid");m.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${b.errSchemaPath}/${k}`,topSchemaRef:E,compositeRule:!0},p),m.pass(p,()=>m.error(!0))}tn.macroKeywordCode=i;function n(m,d){var h;const{gen:k,keyword:v,schema:y,parentSchema:b,$data:w,it:E}=m;c(E,d);const p=!w&&d.compile?d.compile.call(E.self,y,b,E):d.validate,g=l(k,v,p),S=k.let("valid");m.block$data(S,C),m.ok((h=d.valid)!==null&&h!==void 0?h:S);function C(){if(d.errors===!1)x(),d.modifying&&s(m),A(()=>m.error());else{const N=d.async?O():_();d.modifying&&s(m),A(()=>o(m,N))}}function O(){const N=k.let("ruleErrs",null);return k.try(()=>x((0,e._)`await `),I=>k.assign(S,!1).if((0,e._)`${I} instanceof ${E.ValidationError}`,()=>k.assign(N,(0,e._)`${I}.errors`),()=>k.throw(I))),N}function _(){const N=(0,e._)`${g}.errors`;return k.assign(N,null),x(e.nil),N}function x(N=d.async?(0,e._)`await `:e.nil){const I=E.opts.passContext?t.default.this:t.default.self,F=!("compile"in d&&!w||d.schema===!1);k.assign(S,(0,e._)`${N}${(0,r.callValidateCode)(m,g,I,F)}`,d.modifying)}function A(N){var I;k.if((0,e.not)((I=d.valid)!==null&&I!==void 0?I:S),N)}}tn.funcKeywordCode=n;function s(m){const{gen:d,data:h,it:k}=m;d.if(k.parentData,()=>d.assign(h,(0,e._)`${k.parentData}[${k.parentDataProperty}]`))}function o(m,d){const{gen:h}=m;h.if((0,e._)`Array.isArray(${d})`,()=>{h.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${d} : ${t.default.vErrors}.concat(${d})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,a.extendErrors)(m)},()=>m.error())}function c({schemaEnv:m},d){if(d.async&&!m.$async)throw new Error("async keyword in sync schema")}function l(m,d,h){if(h===void 0)throw new Error(`keyword "${d}" failed to compile`);return m.scopeValue("keyword",typeof h=="function"?{ref:h}:{ref:h,code:(0,e.stringify)(h)})}function u(m,d,h=!1){return!d.length||d.some(k=>k==="array"?Array.isArray(m):k==="object"?m&&typeof m=="object"&&!Array.isArray(m):typeof m==k||h&&typeof m>"u")}tn.validSchemaType=u;function f({schema:m,opts:d,self:h,errSchemaPath:k},v,y){if(Array.isArray(v.keyword)?!v.keyword.includes(y):v.keyword!==y)throw new Error("ajv implementation error");const b=v.dependencies;if(b!=null&&b.some(w=>!Object.prototype.hasOwnProperty.call(m,w)))throw new Error(`parent schema must have dependencies of ${y}: ${b.join(",")}`);if(v.validateSchema&&!v.validateSchema(m[y])){const E=`keyword "${y}" value is invalid at path "${k}": `+h.errorsText(v.validateSchema.errors);if(d.validateSchema==="log")h.logger.error(E);else throw new Error(E)}}return tn.validateKeywordUsage=f,tn}var qn={},dg;function gN(){if(dg)return qn;dg=1,Object.defineProperty(qn,"__esModule",{value:!0}),qn.extendSubschemaMode=qn.extendSubschemaData=qn.getSubschema=void 0;const e=Be(),t=et();function r(n,{keyword:s,schemaProp:o,schema:c,schemaPath:l,errSchemaPath:u,topSchemaRef:f}){if(s!==void 0&&c!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const m=n.schema[s];return o===void 0?{schema:m,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${s}`}:{schema:m[o],schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${s}/${(0,t.escapeFragment)(o)}`}}if(c!==void 0){if(l===void 0||u===void 0||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:c,schemaPath:l,topSchemaRef:f,errSchemaPath:u}}throw new Error('either "keyword" or "schema" must be passed')}qn.getSubschema=r;function a(n,s,{dataProp:o,dataPropType:c,data:l,dataTypes:u,propertyName:f}){if(l!==void 0&&o!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:m}=s;if(o!==void 0){const{errorPath:h,dataPathArr:k,opts:v}=s,y=m.let("data",(0,e._)`${s.data}${(0,e.getProperty)(o)}`,!0);d(y),n.errorPath=(0,e.str)`${h}${(0,t.getErrorPath)(o,c,v.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${o}`,n.dataPathArr=[...k,n.parentDataProperty]}if(l!==void 0){const h=l instanceof e.Name?l:m.let("data",l,!0);d(h),f!==void 0&&(n.propertyName=f)}u&&(n.dataTypes=u);function d(h){n.data=h,n.dataLevel=s.dataLevel+1,n.dataTypes=[],s.definedProperties=new Set,n.parentData=s.data,n.dataNames=[...s.dataNames,h]}}qn.extendSubschemaData=a;function i(n,{jtdDiscriminator:s,jtdMetadata:o,compositeRule:c,createErrors:l,allErrors:u}){c!==void 0&&(n.compositeRule=c),l!==void 0&&(n.createErrors=l),u!==void 0&&(n.allErrors=u),n.jtdDiscriminator=s,n.jtdMetadata=o}return qn.extendSubschemaMode=i,qn}var cr={},_u,mg;function n0(){return mg||(mg=1,_u=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var a,i,n;if(Array.isArray(t)){if(a=t.length,a!=r.length)return!1;for(i=a;i--!==0;)if(!e(t[i],r[i]))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=Object.keys(t),a=n.length,a!==Object.keys(r).length)return!1;for(i=a;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[i]))return!1;for(i=a;i--!==0;){var s=n[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}),_u}var Ou={exports:{}},pg;function yN(){if(pg)return Ou.exports;pg=1;var e=Ou.exports=function(a,i,n){typeof i=="function"&&(n=i,i={}),n=i.cb||n;var s=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};t(i,s,o,a,"",a)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(a,i,n,s,o,c,l,u,f,m){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,o,c,l,u,f,m);for(var d in s){var h=s[d];if(Array.isArray(h)){if(d in e.arrayKeywords)for(var k=0;k<h.length;k++)t(a,i,n,h[k],o+"/"+d+"/"+k,c,o,d,s,k)}else if(d in e.propsKeywords){if(h&&typeof h=="object")for(var v in h)t(a,i,n,h[v],o+"/"+d+"/"+r(v),c,o,d,s,v)}else(d in e.keywords||a.allKeys&&!(d in e.skipKeywords))&&t(a,i,n,h,o+"/"+d,c,o,d,s)}n(s,o,c,l,u,f,m)}}function r(a){return a.replace(/~/g,"~0").replace(/\//g,"~1")}return Ou.exports}var hg;function wc(){if(hg)return cr;hg=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.getSchemaRefs=cr.resolveUrl=cr.normalizeId=cr._getFullPath=cr.getFullPath=cr.inlineRef=void 0;const e=et(),t=n0(),r=yN(),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(k,v=!0){return typeof k=="boolean"?!0:v===!0?!s(k):v?o(k)<=v:!1}cr.inlineRef=i;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(k){for(const v in k){if(n.has(v))return!0;const y=k[v];if(Array.isArray(y)&&y.some(s)||typeof y=="object"&&s(y))return!0}return!1}function o(k){let v=0;for(const y in k){if(y==="$ref")return 1/0;if(v++,!a.has(y)&&(typeof k[y]=="object"&&(0,e.eachItem)(k[y],b=>v+=o(b)),v===1/0))return 1/0}return v}function c(k,v="",y){y!==!1&&(v=f(v));const b=k.parse(v);return l(k,b)}cr.getFullPath=c;function l(k,v){return k.serialize(v).split("#")[0]+"#"}cr._getFullPath=l;const u=/#\/?$/;function f(k){return k?k.replace(u,""):""}cr.normalizeId=f;function m(k,v,y){return y=f(y),k.resolve(v,y)}cr.resolveUrl=m;const d=/^[a-z_][-a-z0-9._]*$/i;function h(k,v){if(typeof k=="boolean")return{};const{schemaId:y,uriResolver:b}=this.opts,w=f(k[y]||v),E={"":w},p=c(b,w,!1),g={},S=new Set;return r(k,{allKeys:!0},(_,x,A,N)=>{if(N===void 0)return;const I=p+x;let F=E[N];typeof _[y]=="string"&&(F=$.call(this,_[y])),Y.call(this,_.$anchor),Y.call(this,_.$dynamicAnchor),E[x]=F;function $(Z){const ie=this.opts.uriResolver.resolve;if(Z=f(F?ie(F,Z):Z),S.has(Z))throw O(Z);S.add(Z);let P=this.refs[Z];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?C(_,P.schema,Z):Z!==f(I)&&(Z[0]==="#"?(C(_,g[Z],Z),g[Z]=_):this.refs[Z]=I),Z}function Y(Z){if(typeof Z=="string"){if(!d.test(Z))throw new Error(`invalid anchor "${Z}"`);$.call(this,`#${Z}`)}}}),g;function C(_,x,A){if(x!==void 0&&!t(_,x))throw O(A)}function O(_){return new Error(`reference "${_}" resolves to more than one schema`)}}return cr.getSchemaRefs=h,cr}var gg;function Sc(){if(gg)return Mn;gg=1,Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.getData=Mn.KeywordCxt=Mn.validateFunctionCode=void 0;const e=mN(),t=Xl(),r=r0(),a=Xl(),i=pN(),n=hN(),s=gN(),o=Be(),c=Aa(),l=wc(),u=et(),f=kc();function m(q){if(p(q)&&(S(q),E(q))){v(q);return}d(q,()=>(0,e.topBoolOrEmptySchema)(q))}Mn.validateFunctionCode=m;function d({gen:q,validateName:z,schema:H,schemaEnv:G,opts:te},ae){te.code.es5?q.func(z,(0,o._)`${c.default.data}, ${c.default.valCxt}`,G.$async,()=>{q.code((0,o._)`"use strict"; ${b(H,te)}`),k(q,te),q.code(ae)}):q.func(z,(0,o._)`${c.default.data}, ${h(te)}`,G.$async,()=>q.code(b(H,te)).code(ae))}function h(q){return(0,o._)`{${c.default.instancePath}="", ${c.default.parentData}, ${c.default.parentDataProperty}, ${c.default.rootData}=${c.default.data}${q.dynamicRef?(0,o._)`, ${c.default.dynamicAnchors}={}`:o.nil}}={}`}function k(q,z){q.if(c.default.valCxt,()=>{q.var(c.default.instancePath,(0,o._)`${c.default.valCxt}.${c.default.instancePath}`),q.var(c.default.parentData,(0,o._)`${c.default.valCxt}.${c.default.parentData}`),q.var(c.default.parentDataProperty,(0,o._)`${c.default.valCxt}.${c.default.parentDataProperty}`),q.var(c.default.rootData,(0,o._)`${c.default.valCxt}.${c.default.rootData}`),z.dynamicRef&&q.var(c.default.dynamicAnchors,(0,o._)`${c.default.valCxt}.${c.default.dynamicAnchors}`)},()=>{q.var(c.default.instancePath,(0,o._)`""`),q.var(c.default.parentData,(0,o._)`undefined`),q.var(c.default.parentDataProperty,(0,o._)`undefined`),q.var(c.default.rootData,c.default.data),z.dynamicRef&&q.var(c.default.dynamicAnchors,(0,o._)`{}`)})}function v(q){const{schema:z,opts:H,gen:G}=q;d(q,()=>{H.$comment&&z.$comment&&N(q),_(q),G.let(c.default.vErrors,null),G.let(c.default.errors,0),H.unevaluated&&y(q),C(q),I(q)})}function y(q){const{gen:z,validateName:H}=q;q.evaluated=z.const("evaluated",(0,o._)`${H}.evaluated`),z.if((0,o._)`${q.evaluated}.dynamicProps`,()=>z.assign((0,o._)`${q.evaluated}.props`,(0,o._)`undefined`)),z.if((0,o._)`${q.evaluated}.dynamicItems`,()=>z.assign((0,o._)`${q.evaluated}.items`,(0,o._)`undefined`))}function b(q,z){const H=typeof q=="object"&&q[z.schemaId];return H&&(z.code.source||z.code.process)?(0,o._)`/*# sourceURL=${H} */`:o.nil}function w(q,z){if(p(q)&&(S(q),E(q))){g(q,z);return}(0,e.boolOrEmptySchema)(q,z)}function E({schema:q,self:z}){if(typeof q=="boolean")return!q;for(const H in q)if(z.RULES.all[H])return!0;return!1}function p(q){return typeof q.schema!="boolean"}function g(q,z){const{schema:H,gen:G,opts:te}=q;te.$comment&&H.$comment&&N(q),x(q),A(q);const ae=G.const("_errs",c.default.errors);C(q,ae),G.var(z,(0,o._)`${ae} === ${c.default.errors}`)}function S(q){(0,u.checkUnknownRules)(q),O(q)}function C(q,z){if(q.opts.jtd)return $(q,[],!1,z);const H=(0,t.getSchemaTypes)(q.schema),G=(0,t.coerceAndCheckDataType)(q,H);$(q,H,!G,z)}function O(q){const{schema:z,errSchemaPath:H,opts:G,self:te}=q;z.$ref&&G.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(z,te.RULES)&&te.logger.warn(`$ref: keywords ignored in schema at path "${H}"`)}function _(q){const{schema:z,opts:H}=q;z.default!==void 0&&H.useDefaults&&H.strictSchema&&(0,u.checkStrictMode)(q,"default is ignored in the schema root")}function x(q){const z=q.schema[q.opts.schemaId];z&&(q.baseId=(0,l.resolveUrl)(q.opts.uriResolver,q.baseId,z))}function A(q){if(q.schema.$async&&!q.schemaEnv.$async)throw new Error("async schema in sync schema")}function N({gen:q,schemaEnv:z,schema:H,errSchemaPath:G,opts:te}){const ae=H.$comment;if(te.$comment===!0)q.code((0,o._)`${c.default.self}.logger.log(${ae})`);else if(typeof te.$comment=="function"){const me=(0,o.str)`${G}/$comment`,ve=q.scopeValue("root",{ref:z.root});q.code((0,o._)`${c.default.self}.opts.$comment(${ae}, ${me}, ${ve}.schema)`)}}function I(q){const{gen:z,schemaEnv:H,validateName:G,ValidationError:te,opts:ae}=q;H.$async?z.if((0,o._)`${c.default.errors} === 0`,()=>z.return(c.default.data),()=>z.throw((0,o._)`new ${te}(${c.default.vErrors})`)):(z.assign((0,o._)`${G}.errors`,c.default.vErrors),ae.unevaluated&&F(q),z.return((0,o._)`${c.default.errors} === 0`))}function F({gen:q,evaluated:z,props:H,items:G}){H instanceof o.Name&&q.assign((0,o._)`${z}.props`,H),G instanceof o.Name&&q.assign((0,o._)`${z}.items`,G)}function $(q,z,H,G){const{gen:te,schema:ae,data:me,allErrors:ve,opts:Ce,self:Se}=q,{RULES:Re}=Se;if(ae.$ref&&(Ce.ignoreKeywordsWithRef||!(0,u.schemaHasRulesButRef)(ae,Re))){te.block(()=>V(q,"$ref",Re.all.$ref.definition));return}Ce.jtd||Z(q,z),te.block(()=>{for(const je of Re.rules)he(je);he(Re.post)});function he(je){(0,r.shouldUseGroup)(ae,je)&&(je.type?(te.if((0,a.checkDataType)(je.type,me,Ce.strictNumbers)),Y(q,je),z.length===1&&z[0]===je.type&&H&&(te.else(),(0,a.reportTypeError)(q)),te.endIf()):Y(q,je),ve||te.if((0,o._)`${c.default.errors} === ${G||0}`))}}function Y(q,z){const{gen:H,schema:G,opts:{useDefaults:te}}=q;te&&(0,i.assignDefaults)(q,z.type),H.block(()=>{for(const ae of z.rules)(0,r.shouldUseRule)(G,ae)&&V(q,ae.keyword,ae.definition,z.type)})}function Z(q,z){q.schemaEnv.meta||!q.opts.strictTypes||(ie(q,z),q.opts.allowUnionTypes||P(q,z),D(q,q.dataTypes))}function ie(q,z){if(z.length){if(!q.dataTypes.length){q.dataTypes=z;return}z.forEach(H=>{T(q.dataTypes,H)||M(q,`type "${H}" not allowed by context "${q.dataTypes.join(",")}"`)}),R(q,z)}}function P(q,z){z.length>1&&!(z.length===2&&z.includes("null"))&&M(q,"use allowUnionTypes to allow union type keyword")}function D(q,z){const H=q.self.RULES.all;for(const G in H){const te=H[G];if(typeof te=="object"&&(0,r.shouldUseRule)(q.schema,te)){const{type:ae}=te.definition;ae.length&&!ae.some(me=>U(z,me))&&M(q,`missing type "${ae.join(",")}" for keyword "${G}"`)}}}function U(q,z){return q.includes(z)||z==="number"&&q.includes("integer")}function T(q,z){return q.includes(z)||z==="integer"&&q.includes("number")}function R(q,z){const H=[];for(const G of q.dataTypes)T(z,G)?H.push(G):z.includes("integer")&&G==="number"&&H.push("integer");q.dataTypes=H}function M(q,z){const H=q.schemaEnv.baseId+q.errSchemaPath;z+=` at "${H}" (strictTypes)`,(0,u.checkStrictMode)(q,z,q.opts.strictTypes)}class B{constructor(z,H,G){if((0,n.validateKeywordUsage)(z,H,G),this.gen=z.gen,this.allErrors=z.allErrors,this.keyword=G,this.data=z.data,this.schema=z.schema[G],this.$data=H.$data&&z.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(z,this.schema,G,this.$data),this.schemaType=H.schemaType,this.parentSchema=z.schema,this.params={},this.it=z,this.def=H,this.$data)this.schemaCode=z.gen.const("vSchema",Q(this.$data,z));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,H.schemaType,H.allowUndefined))throw new Error(`${G} value must be ${JSON.stringify(H.schemaType)}`);("code"in H?H.trackErrors:H.errors!==!1)&&(this.errsCount=z.gen.const("_errs",c.default.errors))}result(z,H,G){this.failResult((0,o.not)(z),H,G)}failResult(z,H,G){this.gen.if(z),G?G():this.error(),H?(this.gen.else(),H(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(z,H){this.failResult((0,o.not)(z),void 0,H)}fail(z){if(z===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(z),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(z){if(!this.$data)return this.fail(z);const{schemaCode:H}=this;this.fail((0,o._)`${H} !== undefined && (${(0,o.or)(this.invalid$data(),z)})`)}error(z,H,G){if(H){this.setParams(H),this._error(z,G),this.setParams({});return}this._error(z,G)}_error(z,H){(z?f.reportExtraError:f.reportError)(this,this.def.error,H)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(z){this.allErrors||this.gen.if(z)}setParams(z,H){H?Object.assign(this.params,z):this.params=z}block$data(z,H,G=o.nil){this.gen.block(()=>{this.check$data(z,G),H()})}check$data(z=o.nil,H=o.nil){if(!this.$data)return;const{gen:G,schemaCode:te,schemaType:ae,def:me}=this;G.if((0,o.or)((0,o._)`${te} === undefined`,H)),z!==o.nil&&G.assign(z,!0),(ae.length||me.validateSchema)&&(G.elseIf(this.invalid$data()),this.$dataError(),z!==o.nil&&G.assign(z,!1)),G.else()}invalid$data(){const{gen:z,schemaCode:H,schemaType:G,def:te,it:ae}=this;return(0,o.or)(me(),ve());function me(){if(G.length){if(!(H instanceof o.Name))throw new Error("ajv implementation error");const Ce=Array.isArray(G)?G:[G];return(0,o._)`${(0,a.checkDataTypes)(Ce,H,ae.opts.strictNumbers,a.DataType.Wrong)}`}return o.nil}function ve(){if(te.validateSchema){const Ce=z.scopeValue("validate$data",{ref:te.validateSchema});return(0,o._)`!${Ce}(${H})`}return o.nil}}subschema(z,H){const G=(0,s.getSubschema)(this.it,z);(0,s.extendSubschemaData)(G,this.it,z),(0,s.extendSubschemaMode)(G,z);const te={...this.it,...G,items:void 0,props:void 0};return w(te,H),te}mergeEvaluated(z,H){const{it:G,gen:te}=this;G.opts.unevaluated&&(G.props!==!0&&z.props!==void 0&&(G.props=u.mergeEvaluated.props(te,z.props,G.props,H)),G.items!==!0&&z.items!==void 0&&(G.items=u.mergeEvaluated.items(te,z.items,G.items,H)))}mergeValidEvaluated(z,H){const{it:G,gen:te}=this;if(G.opts.unevaluated&&(G.props!==!0||G.items!==!0))return te.if(H,()=>this.mergeEvaluated(z,o.Name)),!0}}Mn.KeywordCxt=B;function V(q,z,H,G){const te=new B(q,H,z);"code"in H?H.code(te,G):te.$data&&H.validate?(0,n.funcKeywordCode)(te,H):"macro"in H?(0,n.macroKeywordCode)(te,H):(H.compile||H.validate)&&(0,n.funcKeywordCode)(te,H)}const K=/^\/(?:[^~]|~0|~1)*$/,J=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Q(q,{dataLevel:z,dataNames:H,dataPathArr:G}){let te,ae;if(q==="")return c.default.rootData;if(q[0]==="/"){if(!K.test(q))throw new Error(`Invalid JSON-pointer: ${q}`);te=q,ae=c.default.rootData}else{const Se=J.exec(q);if(!Se)throw new Error(`Invalid JSON-pointer: ${q}`);const Re=+Se[1];if(te=Se[2],te==="#"){if(Re>=z)throw new Error(Ce("property/index",Re));return G[z-Re]}if(Re>z)throw new Error(Ce("data",Re));if(ae=H[z-Re],!te)return ae}let me=ae;const ve=te.split("/");for(const Se of ve)Se&&(ae=(0,o._)`${ae}${(0,o.getProperty)((0,u.unescapeJsonPointer)(Se))}`,me=(0,o._)`${me} && ${ae}`);return me;function Ce(Se,Re){return`Cannot access ${Se} ${Re} levels up, current level is ${z}`}}return Mn.getData=Q,Mn}var jo={},yg;function om(){if(yg)return jo;yg=1,Object.defineProperty(jo,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return jo.default=e,jo}var Do={},vg;function Ec(){if(vg)return Do;vg=1,Object.defineProperty(Do,"__esModule",{value:!0});const e=wc();class t extends Error{constructor(a,i,n,s){super(s||`can't resolve reference ${n} from id ${i}`),this.missingRef=(0,e.resolveUrl)(a,i,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(a,this.missingRef))}}return Do.default=t,Do}var Or={},bg;function lm(){if(bg)return Or;bg=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.resolveSchema=Or.getCompilingSchema=Or.resolveRef=Or.compileSchema=Or.SchemaEnv=void 0;const e=Be(),t=om(),r=Aa(),a=wc(),i=et(),n=Sc();class s{constructor(y){var b;this.refs={},this.dynamicAnchors={};let w;typeof y.schema=="object"&&(w=y.schema),this.schema=y.schema,this.schemaId=y.schemaId,this.root=y.root||this,this.baseId=(b=y.baseId)!==null&&b!==void 0?b:(0,a.normalizeId)(w==null?void 0:w[y.schemaId||"$id"]),this.schemaPath=y.schemaPath,this.localRefs=y.localRefs,this.meta=y.meta,this.$async=w==null?void 0:w.$async,this.refs={}}}Or.SchemaEnv=s;function o(v){const y=u.call(this,v);if(y)return y;const b=(0,a.getFullPath)(this.opts.uriResolver,v.root.baseId),{es5:w,lines:E}=this.opts.code,{ownProperties:p}=this.opts,g=new e.CodeGen(this.scope,{es5:w,lines:E,ownProperties:p});let S;v.$async&&(S=g.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const C=g.scopeName("validate");v.validateName=C;const O={gen:g,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:g.scopeValue("schema",this.opts.code.source===!0?{ref:v.schema,code:(0,e.stringify)(v.schema)}:{ref:v.schema}),validateName:C,ValidationError:S,schema:v.schema,schemaEnv:v,rootId:b,baseId:v.baseId||b,schemaPath:e.nil,errSchemaPath:v.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let _;try{this._compilations.add(v),(0,n.validateFunctionCode)(O),g.optimize(this.opts.code.optimize);const x=g.toString();_=`${g.scopeRefs(r.default.scope)}return ${x}`,this.opts.code.process&&(_=this.opts.code.process(_,v));const N=new Function(`${r.default.self}`,`${r.default.scope}`,_)(this,this.scope.get());if(this.scope.value(C,{ref:N}),N.errors=null,N.schema=v.schema,N.schemaEnv=v,v.$async&&(N.$async=!0),this.opts.code.source===!0&&(N.source={validateName:C,validateCode:x,scopeValues:g._values}),this.opts.unevaluated){const{props:I,items:F}=O;N.evaluated={props:I instanceof e.Name?void 0:I,items:F instanceof e.Name?void 0:F,dynamicProps:I instanceof e.Name,dynamicItems:F instanceof e.Name},N.source&&(N.source.evaluated=(0,e.stringify)(N.evaluated))}return v.validate=N,v}catch(x){throw delete v.validate,delete v.validateName,_&&this.logger.error("Error compiling schema, function code:",_),x}finally{this._compilations.delete(v)}}Or.compileSchema=o;function c(v,y,b){var w;b=(0,a.resolveUrl)(this.opts.uriResolver,y,b);const E=v.refs[b];if(E)return E;let p=m.call(this,v,b);if(p===void 0){const g=(w=v.localRefs)===null||w===void 0?void 0:w[b],{schemaId:S}=this.opts;g&&(p=new s({schema:g,schemaId:S,root:v,baseId:y}))}if(p!==void 0)return v.refs[b]=l.call(this,p)}Or.resolveRef=c;function l(v){return(0,a.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:o.call(this,v)}function u(v){for(const y of this._compilations)if(f(y,v))return y}Or.getCompilingSchema=u;function f(v,y){return v.schema===y.schema&&v.root===y.root&&v.baseId===y.baseId}function m(v,y){let b;for(;typeof(b=this.refs[y])=="string";)y=b;return b||this.schemas[y]||d.call(this,v,y)}function d(v,y){const b=this.opts.uriResolver.parse(y),w=(0,a._getFullPath)(this.opts.uriResolver,b);let E=(0,a.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&w===E)return k.call(this,b,v);const p=(0,a.normalizeId)(w),g=this.refs[p]||this.schemas[p];if(typeof g=="string"){const S=d.call(this,v,g);return typeof(S==null?void 0:S.schema)!="object"?void 0:k.call(this,b,S)}if(typeof(g==null?void 0:g.schema)=="object"){if(g.validate||o.call(this,g),p===(0,a.normalizeId)(y)){const{schema:S}=g,{schemaId:C}=this.opts,O=S[C];return O&&(E=(0,a.resolveUrl)(this.opts.uriResolver,E,O)),new s({schema:S,schemaId:C,root:v,baseId:E})}return k.call(this,b,g)}}Or.resolveSchema=d;const h=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k(v,{baseId:y,schema:b,root:w}){var E;if(((E=v.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const S of v.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const C=b[(0,i.unescapeFragment)(S)];if(C===void 0)return;b=C;const O=typeof b=="object"&&b[this.opts.schemaId];!h.has(S)&&O&&(y=(0,a.resolveUrl)(this.opts.uriResolver,y,O))}let p;if(typeof b!="boolean"&&b.$ref&&!(0,i.schemaHasRulesButRef)(b,this.RULES)){const S=(0,a.resolveUrl)(this.opts.uriResolver,y,b.$ref);p=d.call(this,w,S)}const{schemaId:g}=this.opts;if(p=p||new s({schema:b,schemaId:g,root:w,baseId:y}),p.schema!==p.root.schema)return p}return Or}const vN="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",bN="Meta-schema for $data reference (JSON AnySchema extension proposal)",kN="object",wN=["$data"],SN={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},EN=!1,xN={$id:vN,description:bN,type:kN,required:wN,properties:SN,additionalProperties:EN};var Fo={},ms={exports:{}},Tu,kg;function a0(){if(kg)return Tu;kg=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function n(p){let g="",S=0,C=0;for(C=0;C<p.length;C++)if(S=p[C].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";g+=p[C];break}for(C+=1;C<p.length;C++){if(S=p[C].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";g+=p[C]}return g}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(p){return p.length=0,!0}function c(p,g,S){if(p.length){const C=n(p);if(C!=="")g.push(C);else return S.error=!0,!1;p.length=0}return!0}function l(p){let g=0;const S={error:!1,address:"",zone:""},C=[],O=[];let _=!1,x=!1,A=c;for(let N=0;N<p.length;N++){const I=p[N];if(!(I==="["||I==="]"))if(I===":"){if(_===!0&&(x=!0),!A(O,C,S))break;if(++g>7){S.error=!0;break}N>0&&p[N-1]===":"&&(_=!0),C.push(":");continue}else if(I==="%"){if(!A(O,C,S))break;A=o}else{O.push(I);continue}}return O.length&&(A===o?S.zone=O.join(""):x?C.push(O.join("")):C.push(n(O))),S.address=C.join(""),S}function u(p){if(f(p,":")<2)return{host:p,isIPV6:!1};const g=l(p);if(g.error)return{host:p,isIPV6:!1};{let S=g.address,C=g.address;return g.zone&&(S+="%"+g.zone,C+="%25"+g.zone),{host:S,isIPV6:!0,escapedHost:C}}}function f(p,g){let S=0;for(let C=0;C<p.length;C++)p[C]===g&&S++;return S}function m(p){let g=p;const S=[];let C=-1,O=0;for(;O=g.length;){if(O===1){if(g===".")break;if(g==="/"){S.push("/");break}else{S.push(g);break}}else if(O===2){if(g[0]==="."){if(g[1]===".")break;if(g[1]==="/"){g=g.slice(2);continue}}else if(g[0]==="/"&&(g[1]==="."||g[1]==="/")){S.push("/");break}}else if(O===3&&g==="/.."){S.length!==0&&S.pop(),S.push("/");break}if(g[0]==="."){if(g[1]==="."){if(g[2]==="/"){g=g.slice(3);continue}}else if(g[1]==="/"){g=g.slice(2);continue}}else if(g[0]==="/"&&g[1]==="."){if(g[2]==="/"){g=g.slice(2);continue}else if(g[2]==="."&&g[3]==="/"){g=g.slice(3),S.length!==0&&S.pop();continue}}if((C=g.indexOf("/",1))===-1){S.push(g);break}else S.push(g.slice(0,C)),g=g.slice(C)}return S.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},h=/[@/?#:]/g,k=/[@/?#]/g;function v(p,g){const S=g?k:h;return S.lastIndex=0,p.replace(S,C=>d[C])}function y(p,g=!1){if(p.indexOf("%")===-1)return p;let S="";for(let C=0;C<p.length;C++){if(p[C]==="%"&&C+2<p.length){const O=p.slice(C+1,C+3);if(r(O)){const _=O.toUpperCase(),x=String.fromCharCode(parseInt(_,16));g&&a(x)?S+=x:S+="%"+_,C+=2;continue}}S+=p[C]}return S}function b(p){let g="";for(let S=0;S<p.length;S++){if(p[S]==="%"&&S+2<p.length){const C=p.slice(S+1,S+3);if(r(C)){const O=C.toUpperCase(),_=String.fromCharCode(parseInt(O,16));_!=="."&&a(_)?g+=_:g+="%"+O,S+=2;continue}}i(p[S])?g+=p[S]:g+=escape(p[S])}return g}function w(p){let g="";for(let S=0;S<p.length;S++){if(p[S]==="%"&&S+2<p.length){const C=p.slice(S+1,S+3);if(r(C)){g+="%"+C.toUpperCase(),S+=2;continue}}g+=escape(p[S])}return g}function E(p){const g=[];if(p.userinfo!==void 0&&(g.push(p.userinfo),g.push("@")),p.host!==void 0){let S=unescape(p.host);if(!t(S)){const C=u(S);C.isIPV6===!0?S=`[${C.escapedHost}]`:S=v(S,!1)}g.push(S)}return(typeof p.port=="number"||typeof p.port=="string")&&(g.push(":"),g.push(String(p.port))),g.length?g.join(""):void 0}return Tu={nonSimpleDomain:s,recomposeAuthority:E,reescapeHostDelimiters:v,normalizePercentEncoding:y,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:m,isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:n},Tu}var Pu,wg;function CN(){if(wg)return Pu;wg=1;const{isUUID:e}=a0(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function a(p){return r.indexOf(p)!==-1}function i(p){return p.secure===!0?!0:p.secure===!1?!1:p.scheme?p.scheme.length===3&&(p.scheme[0]==="w"||p.scheme[0]==="W")&&(p.scheme[1]==="s"||p.scheme[1]==="S")&&(p.scheme[2]==="s"||p.scheme[2]==="S"):!1}function n(p){return p.host||(p.error=p.error||"HTTP URIs must have a host."),p}function s(p){const g=String(p.scheme).toLowerCase()==="https";return(p.port===(g?443:80)||p.port==="")&&(p.port=void 0),p.path||(p.path="/"),p}function o(p){return p.secure=i(p),p.resourceName=(p.path||"/")+(p.query?"?"+p.query:""),p.path=void 0,p.query=void 0,p}function c(p){if((p.port===(i(p)?443:80)||p.port==="")&&(p.port=void 0),typeof p.secure=="boolean"&&(p.scheme=p.secure?"wss":"ws",p.secure=void 0),p.resourceName){const[g,S]=p.resourceName.split("?");p.path=g&&g!=="/"?g:void 0,p.query=S,p.resourceName=void 0}return p.fragment=void 0,p}function l(p,g){if(!p.path)return p.error="URN can not be parsed",p;const S=p.path.match(t);if(S){const C=g.scheme||p.scheme||"urn";p.nid=S[1].toLowerCase(),p.nss=S[2];const O=`${C}:${g.nid||p.nid}`,_=E(O);p.path=void 0,_&&(p=_.parse(p,g))}else p.error=p.error||"URN can not be parsed.";return p}function u(p,g){if(p.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=g.scheme||p.scheme||"urn",C=p.nid.toLowerCase(),O=`${S}:${g.nid||C}`,_=E(O);_&&(p=_.serialize(p,g));const x=p,A=p.nss;return x.path=`${C||g.nid}:${A}`,g.skipEscape=!0,x}function f(p,g){const S=p;return S.uuid=S.nss,S.nss=void 0,!g.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function m(p){const g=p;return g.nss=(p.uuid||"").toLowerCase(),g}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},h={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,serialize:c},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:h,ws:k,wss:v,urn:{scheme:"urn",parse:l,serialize:u,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(p){return p&&(w[p]||w[p.toLowerCase()])||void 0}return Pu={wsIsSecure:i,SCHEMES:w,isValidSchemeName:a,getSchemeHandler:E},Pu}var Sg;function AN(){if(Sg)return ms.exports;Sg=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:a,normalizePathEncoding:i,escapePreservingEscapes:n,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:c}=a0(),{SCHEMES:l,getSchemeHandler:u}=CN();function f(C,O){return typeof C=="string"?C=E(C,O):typeof C=="object"&&(C=w(k(C,O),O)),C}function m(C,O,_){const x=_?Object.assign({scheme:"null"},_):{scheme:"null"},A=d(w(C,x),w(O,x),x,!0);return x.skipEscape=!0,k(A,x)}function d(C,O,_,x){const A={};return x||(C=w(k(C,_),_),O=w(k(O,_),_)),_=_||{},!_.tolerant&&O.scheme?(A.scheme=O.scheme,A.userinfo=O.userinfo,A.host=O.host,A.port=O.port,A.path=t(O.path||""),A.query=O.query):(O.userinfo!==void 0||O.host!==void 0||O.port!==void 0?(A.userinfo=O.userinfo,A.host=O.host,A.port=O.port,A.path=t(O.path||""),A.query=O.query):(O.path?(O.path[0]==="/"?A.path=t(O.path):((C.userinfo!==void 0||C.host!==void 0||C.port!==void 0)&&!C.path?A.path="/"+O.path:C.path?A.path=C.path.slice(0,C.path.lastIndexOf("/")+1)+O.path:A.path=O.path,A.path=t(A.path)),A.query=O.query):(A.path=C.path,O.query!==void 0?A.query=O.query:A.query=C.query),A.userinfo=C.userinfo,A.host=C.host,A.port=C.port),A.scheme=C.scheme),A.fragment=O.fragment,A}function h(C,O,_){const x=g(C,_),A=g(O,_);return x!==void 0&&A!==void 0&&x.toLowerCase()===A.toLowerCase()}function k(C,O){const _={host:C.host,scheme:C.scheme,userinfo:C.userinfo,port:C.port,path:C.path,query:C.query,nid:C.nid,nss:C.nss,uuid:C.uuid,fragment:C.fragment,reference:C.reference,resourceName:C.resourceName,secure:C.secure,error:""},x=Object.assign({},O),A=[],N=u(x.scheme||_.scheme);N&&N.serialize&&N.serialize(_,x),_.path!==void 0&&(x.skipEscape?_.path=a(_.path):(_.path=n(_.path),_.scheme!==void 0&&(_.path=_.path.split("%3A").join(":")))),x.reference!=="suffix"&&_.scheme&&A.push(_.scheme,":");const I=r(_);if(I!==void 0&&(x.reference!=="suffix"&&A.push("//"),A.push(I),_.path&&_.path[0]!=="/"&&A.push("/")),_.path!==void 0){let F=_.path;!x.absolutePath&&(!N||!N.absolutePath)&&(F=t(F)),I===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),A.push(F)}return _.query!==void 0&&A.push("?",_.query),_.fragment!==void 0&&A.push("#",_.fragment),A.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(C,O){if(O[2]!==void 0&&C.path&&C.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof C.port=="number"&&(C.port<0||C.port>65535))return"URI port is malformed."}function b(C,O){const _=Object.assign({},O),x={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let A=!1,N=!1;_.reference==="suffix"&&(_.scheme?C=_.scheme+":"+C:C="//"+C);const I=C.match(v);if(I){x.scheme=I[1],x.userinfo=I[3],x.host=I[4],x.port=parseInt(I[5],10),x.path=I[6]||"",x.query=I[7],x.fragment=I[8],isNaN(x.port)&&(x.port=I[5]);const F=y(x,I);if(F!==void 0&&(x.error=x.error||F,A=!0),x.host)if(o(x.host)===!1){const Z=e(x.host);x.host=Z.host.toLowerCase(),N=Z.isIPV6}else N=!0;x.scheme===void 0&&x.userinfo===void 0&&x.host===void 0&&x.port===void 0&&x.query===void 0&&!x.path?x.reference="same-document":x.scheme===void 0?x.reference="relative":x.fragment===void 0?x.reference="absolute":x.reference="uri",_.reference&&_.reference!=="suffix"&&_.reference!==x.reference&&(x.error=x.error||"URI is not a "+_.reference+" reference.");const $=u(_.scheme||x.scheme);if(!_.unicodeSupport&&(!$||!$.unicodeSupport)&&x.host&&(_.domainHost||$&&$.domainHost)&&N===!1&&c(x.host))try{x.host=URL.domainToASCII(x.host.toLowerCase())}catch(Y){x.error=x.error||"Host's domain name can not be converted to ASCII: "+Y}if((!$||$&&!$.skipNormalize)&&(C.indexOf("%")!==-1&&(x.scheme!==void 0&&(x.scheme=unescape(x.scheme)),x.host!==void 0&&(x.host=s(unescape(x.host),N))),x.path&&(x.path=i(x.path)),x.fragment))try{x.fragment=encodeURI(decodeURIComponent(x.fragment))}catch{x.error=x.error||"URI malformed"}$&&$.parse&&$.parse(x,_)}else x.error=x.error||"URI can not be parsed.";return{parsed:x,malformedAuthorityOrPort:A}}function w(C,O){return b(C,O).parsed}function E(C,O){return p(C,O).normalized}function p(C,O){const{parsed:_,malformedAuthorityOrPort:x}=b(C,O);return{normalized:x?C:k(_,O),malformedAuthorityOrPort:x}}function g(C,O){if(typeof C=="string"){const{normalized:_,malformedAuthorityOrPort:x}=p(C,O);return x?void 0:_}if(typeof C=="object")return k(C,O)}const S={SCHEMES:l,normalize:f,resolve:m,resolveComponent:d,equal:h,serialize:k,parse:w};return ms.exports=S,ms.exports.default=S,ms.exports.fastUri=S,ms.exports}var Eg;function _N(){if(Eg)return Fo;Eg=1,Object.defineProperty(Fo,"__esModule",{value:!0});const e=AN();return e.code='require("ajv/dist/runtime/uri").default',Fo.default=e,Fo}var xg;function ON(){return xg||(xg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Sc();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Be();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const a=om(),i=Ec(),n=t0(),s=lm(),o=Be(),c=wc(),l=Xl(),u=et(),f=xN,m=_N(),d=(P,D)=>new RegExp(P,D);d.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],k=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=200;function w(P){var D,U,T,R,M,B,V,K,J,Q,q,z,H,G,te,ae,me,ve,Ce,Se,Re,he,je,Ve,be;const ee=P.strict,re=(D=P.code)===null||D===void 0?void 0:D.optimize,ne=re===!0||re===void 0?1:re||0,we=(T=(U=P.code)===null||U===void 0?void 0:U.regExp)!==null&&T!==void 0?T:d,pe=(R=P.uriResolver)!==null&&R!==void 0?R:m.default;return{strictSchema:(B=(M=P.strictSchema)!==null&&M!==void 0?M:ee)!==null&&B!==void 0?B:!0,strictNumbers:(K=(V=P.strictNumbers)!==null&&V!==void 0?V:ee)!==null&&K!==void 0?K:!0,strictTypes:(Q=(J=P.strictTypes)!==null&&J!==void 0?J:ee)!==null&&Q!==void 0?Q:"log",strictTuples:(z=(q=P.strictTuples)!==null&&q!==void 0?q:ee)!==null&&z!==void 0?z:"log",strictRequired:(G=(H=P.strictRequired)!==null&&H!==void 0?H:ee)!==null&&G!==void 0?G:!1,code:P.code?{...P.code,optimize:ne,regExp:we}:{optimize:ne,regExp:we},loopRequired:(te=P.loopRequired)!==null&&te!==void 0?te:b,loopEnum:(ae=P.loopEnum)!==null&&ae!==void 0?ae:b,meta:(me=P.meta)!==null&&me!==void 0?me:!0,messages:(ve=P.messages)!==null&&ve!==void 0?ve:!0,inlineRefs:(Ce=P.inlineRefs)!==null&&Ce!==void 0?Ce:!0,schemaId:(Se=P.schemaId)!==null&&Se!==void 0?Se:"$id",addUsedSchema:(Re=P.addUsedSchema)!==null&&Re!==void 0?Re:!0,validateSchema:(he=P.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(je=P.validateFormats)!==null&&je!==void 0?je:!0,unicodeRegExp:(Ve=P.unicodeRegExp)!==null&&Ve!==void 0?Ve:!0,int32range:(be=P.int32range)!==null&&be!==void 0?be:!0,uriResolver:pe}}class E{constructor(D={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,D=this.opts={...D,...w(D)};const{es5:U,lines:T}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:k,es5:U,lines:T}),this.logger=A(D.logger);const R=D.validateFormats;D.validateFormats=!1,this.RULES=(0,n.getRules)(),p.call(this,v,D,"NOT SUPPORTED"),p.call(this,y,D,"DEPRECATED","warn"),this._metaOpts=_.call(this),D.formats&&C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),D.keywords&&O.call(this,D.keywords),typeof D.meta=="object"&&this.addMetaSchema(D.meta),S.call(this),D.validateFormats=R}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:D,meta:U,schemaId:T}=this.opts;let R=f;T==="id"&&(R={...f},R.id=R.$id,delete R.$id),U&&D&&this.addMetaSchema(R,R[T],!1)}defaultMeta(){const{meta:D,schemaId:U}=this.opts;return this.opts.defaultMeta=typeof D=="object"?D[U]||D:void 0}validate(D,U){let T;if(typeof D=="string"){if(T=this.getSchema(D),!T)throw new Error(`no schema with key or ref "${D}"`)}else T=this.compile(D);const R=T(U);return"$async"in T||(this.errors=T.errors),R}compile(D,U){const T=this._addSchema(D,U);return T.validate||this._compileSchemaEnv(T)}compileAsync(D,U){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:T}=this.opts;return R.call(this,D,U);async function R(Q,q){await M.call(this,Q.$schema);const z=this._addSchema(Q,q);return z.validate||B.call(this,z)}async function M(Q){Q&&!this.getSchema(Q)&&await R.call(this,{$ref:Q},!0)}async function B(Q){try{return this._compileSchemaEnv(Q)}catch(q){if(!(q instanceof i.default))throw q;return V.call(this,q),await K.call(this,q.missingSchema),B.call(this,Q)}}function V({missingSchema:Q,missingRef:q}){if(this.refs[Q])throw new Error(`AnySchema ${Q} is loaded but ${q} cannot be resolved`)}async function K(Q){const q=await J.call(this,Q);this.refs[Q]||await M.call(this,q.$schema),this.refs[Q]||this.addSchema(q,Q,U)}async function J(Q){const q=this._loading[Q];if(q)return q;try{return await(this._loading[Q]=T(Q))}finally{delete this._loading[Q]}}}addSchema(D,U,T,R=this.opts.validateSchema){if(Array.isArray(D)){for(const B of D)this.addSchema(B,void 0,T,R);return this}let M;if(typeof D=="object"){const{schemaId:B}=this.opts;if(M=D[B],M!==void 0&&typeof M!="string")throw new Error(`schema ${B} must be string`)}return U=(0,c.normalizeId)(U||M),this._checkUnique(U),this.schemas[U]=this._addSchema(D,T,U,R,!0),this}addMetaSchema(D,U,T=this.opts.validateSchema){return this.addSchema(D,U,!0,T),this}validateSchema(D,U){if(typeof D=="boolean")return!0;let T;if(T=D.$schema,T!==void 0&&typeof T!="string")throw new Error("$schema must be a string");if(T=T||this.opts.defaultMeta||this.defaultMeta(),!T)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const R=this.validate(T,D);if(!R&&U){const M="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(M);else throw new Error(M)}return R}getSchema(D){let U;for(;typeof(U=g.call(this,D))=="string";)D=U;if(U===void 0){const{schemaId:T}=this.opts,R=new s.SchemaEnv({schema:{},schemaId:T});if(U=s.resolveSchema.call(this,R,D),!U)return;this.refs[D]=U}return U.validate||this._compileSchemaEnv(U)}removeSchema(D){if(D instanceof RegExp)return this._removeAllSchemas(this.schemas,D),this._removeAllSchemas(this.refs,D),this;switch(typeof D){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const U=g.call(this,D);return typeof U=="object"&&this._cache.delete(U.schema),delete this.schemas[D],delete this.refs[D],this}case"object":{const U=D;this._cache.delete(U);let T=D[this.opts.schemaId];return T&&(T=(0,c.normalizeId)(T),delete this.schemas[T],delete this.refs[T]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(D){for(const U of D)this.addKeyword(U);return this}addKeyword(D,U){let T;if(typeof D=="string")T=D,typeof U=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),U.keyword=T);else if(typeof D=="object"&&U===void 0){if(U=D,T=U.keyword,Array.isArray(T)&&!T.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(I.call(this,T,U),!U)return(0,u.eachItem)(T,M=>F.call(this,M)),this;Y.call(this,U);const R={...U,type:(0,l.getJSONTypes)(U.type),schemaType:(0,l.getJSONTypes)(U.schemaType)};return(0,u.eachItem)(T,R.type.length===0?M=>F.call(this,M,R):M=>R.type.forEach(B=>F.call(this,M,R,B))),this}getKeyword(D){const U=this.RULES.all[D];return typeof U=="object"?U.definition:!!U}removeKeyword(D){const{RULES:U}=this;delete U.keywords[D],delete U.all[D];for(const T of U.rules){const R=T.rules.findIndex(M=>M.keyword===D);R>=0&&T.rules.splice(R,1)}return this}addFormat(D,U){return typeof U=="string"&&(U=new RegExp(U)),this.formats[D]=U,this}errorsText(D=this.errors,{separator:U=", ",dataVar:T="data"}={}){return!D||D.length===0?"No errors":D.map(R=>`${T}${R.instancePath} ${R.message}`).reduce((R,M)=>R+U+M)}$dataMetaSchema(D,U){const T=this.RULES.all;D=JSON.parse(JSON.stringify(D));for(const R of U){const M=R.split("/").slice(1);let B=D;for(const V of M)B=B[V];for(const V in T){const K=T[V];if(typeof K!="object")continue;const{$data:J}=K.definition,Q=B[V];J&&Q&&(B[V]=ie(Q))}}return D}_removeAllSchemas(D,U){for(const T in D){const R=D[T];(!U||U.test(T))&&(typeof R=="string"?delete D[T]:R&&!R.meta&&(this._cache.delete(R.schema),delete D[T]))}}_addSchema(D,U,T,R=this.opts.validateSchema,M=this.opts.addUsedSchema){let B;const{schemaId:V}=this.opts;if(typeof D=="object")B=D[V];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof D!="boolean")throw new Error("schema must be object or boolean")}let K=this._cache.get(D);if(K!==void 0)return K;T=(0,c.normalizeId)(B||T);const J=c.getSchemaRefs.call(this,D,T);return K=new s.SchemaEnv({schema:D,schemaId:V,meta:U,baseId:T,localRefs:J}),this._cache.set(K.schema,K),M&&!T.startsWith("#")&&(T&&this._checkUnique(T),this.refs[T]=K),R&&this.validateSchema(D,!0),K}_checkUnique(D){if(this.schemas[D]||this.refs[D])throw new Error(`schema with key or id "${D}" already exists`)}_compileSchemaEnv(D){if(D.meta?this._compileMetaSchema(D):s.compileSchema.call(this,D),!D.validate)throw new Error("ajv implementation error");return D.validate}_compileMetaSchema(D){const U=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,D)}finally{this.opts=U}}}E.ValidationError=a.default,E.MissingRefError=i.default,e.default=E;function p(P,D,U,T="error"){for(const R in P){const M=R;M in D&&this.logger[T](`${U}: option ${R}. ${P[M]}`)}}function g(P){return P=(0,c.normalizeId)(P),this.schemas[P]||this.refs[P]}function S(){const P=this.opts.schemas;if(P)if(Array.isArray(P))this.addSchema(P);else for(const D in P)this.addSchema(P[D],D)}function C(){for(const P in this.opts.formats){const D=this.opts.formats[P];D&&this.addFormat(P,D)}}function O(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const D in P){const U=P[D];U.keyword||(U.keyword=D),this.addKeyword(U)}}function _(){const P={...this.opts};for(const D of h)delete P[D];return P}const x={log(){},warn(){},error(){}};function A(P){if(P===!1)return x;if(P===void 0)return console;if(P.log&&P.warn&&P.error)return P;throw new Error("logger must implement log, warn and error methods")}const N=/^[a-z_$][a-z0-9_$:-]*$/i;function I(P,D){const{RULES:U}=this;if((0,u.eachItem)(P,T=>{if(U.keywords[T])throw new Error(`Keyword ${T} is already defined`);if(!N.test(T))throw new Error(`Keyword ${T} has invalid name`)}),!!D&&D.$data&&!("code"in D||"validate"in D))throw new Error('$data keyword must have "code" or "validate" function')}function F(P,D,U){var T;const R=D==null?void 0:D.post;if(U&&R)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:M}=this;let B=R?M.post:M.rules.find(({type:K})=>K===U);if(B||(B={type:U,rules:[]},M.rules.push(B)),M.keywords[P]=!0,!D)return;const V={keyword:P,definition:{...D,type:(0,l.getJSONTypes)(D.type),schemaType:(0,l.getJSONTypes)(D.schemaType)}};D.before?$.call(this,B,V,D.before):B.rules.push(V),M.all[P]=V,(T=D.implements)===null||T===void 0||T.forEach(K=>this.addKeyword(K))}function $(P,D,U){const T=P.rules.findIndex(R=>R.keyword===U);T>=0?P.rules.splice(T,0,D):(P.rules.push(D),this.logger.warn(`rule ${U} is not defined`))}function Y(P){let{metaSchema:D}=P;D!==void 0&&(P.$data&&this.opts.$data&&(D=ie(D)),P.validateSchema=this.compile(D,!0))}const Z={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ie(P){return{anyOf:[P,Z]}}})(Su)),Su}var Mo={},Lo={},qo={},Cg;function TN(){if(Cg)return qo;Cg=1,Object.defineProperty(qo,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return qo.default=e,qo}var ta={},Ag;function PN(){if(Ag)return ta;Ag=1,Object.defineProperty(ta,"__esModule",{value:!0}),ta.callRef=ta.getValidate=void 0;const e=Ec(),t=mn(),r=Be(),a=Aa(),i=lm(),n=et(),s={keyword:"$ref",schemaType:"string",code(l){const{gen:u,schema:f,it:m}=l,{baseId:d,schemaEnv:h,validateName:k,opts:v,self:y}=m,{root:b}=h;if((f==="#"||f==="#/")&&d===b.baseId)return E();const w=i.resolveRef.call(y,b,d,f);if(w===void 0)throw new e.default(m.opts.uriResolver,d,f);if(w instanceof i.SchemaEnv)return p(w);return g(w);function E(){if(h===b)return c(l,k,h,h.$async);const S=u.scopeValue("root",{ref:b});return c(l,(0,r._)`${S}.validate`,b,b.$async)}function p(S){const C=o(l,S);c(l,C,S,S.$async)}function g(S){const C=u.scopeValue("schema",v.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),O=u.name("valid"),_=l.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:C,errSchemaPath:f},O);l.mergeEvaluated(_),l.ok(O)}}};function o(l,u){const{gen:f}=l;return u.validate?f.scopeValue("validate",{ref:u.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:u})}.validate`}ta.getValidate=o;function c(l,u,f,m){const{gen:d,it:h}=l,{allErrors:k,schemaEnv:v,opts:y}=h,b=y.passContext?a.default.this:r.nil;m?w():E();function w(){if(!v.$async)throw new Error("async schema referenced by sync schema");const S=d.let("valid");d.try(()=>{d.code((0,r._)`await ${(0,t.callValidateCode)(l,u,b)}`),g(u),k||d.assign(S,!0)},C=>{d.if((0,r._)`!(${C} instanceof ${h.ValidationError})`,()=>d.throw(C)),p(C),k||d.assign(S,!1)}),l.ok(S)}function E(){l.result((0,t.callValidateCode)(l,u,b),()=>g(u),()=>p(u))}function p(S){const C=(0,r._)`${S}.errors`;d.assign(a.default.vErrors,(0,r._)`${a.default.vErrors} === null ? ${C} : ${a.default.vErrors}.concat(${C})`),d.assign(a.default.errors,(0,r._)`${a.default.vErrors}.length`)}function g(S){var C;if(!h.opts.unevaluated)return;const O=(C=f==null?void 0:f.validate)===null||C===void 0?void 0:C.evaluated;if(h.props!==!0)if(O&&!O.dynamicProps)O.props!==void 0&&(h.props=n.mergeEvaluated.props(d,O.props,h.props));else{const _=d.var("props",(0,r._)`${S}.evaluated.props`);h.props=n.mergeEvaluated.props(d,_,h.props,r.Name)}if(h.items!==!0)if(O&&!O.dynamicItems)O.items!==void 0&&(h.items=n.mergeEvaluated.items(d,O.items,h.items));else{const _=d.var("items",(0,r._)`${S}.evaluated.items`);h.items=n.mergeEvaluated.items(d,_,h.items,r.Name)}}}return ta.callRef=c,ta.default=s,ta}var _g;function IN(){if(_g)return Lo;_g=1,Object.defineProperty(Lo,"__esModule",{value:!0});const e=TN(),t=PN(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Lo.default=r,Lo}var zo={},$o={},Og;function RN(){if(Og)return $o;Og=1,Object.defineProperty($o,"__esModule",{value:!0});const e=Be(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},a={message:({keyword:n,schemaCode:s})=>(0,e.str)`must be ${r[n].okStr} ${s}`,params:({keyword:n,schemaCode:s})=>(0,e._)`{comparison: ${r[n].okStr}, limit: ${s}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:a,code(n){const{keyword:s,data:o,schemaCode:c}=n;n.fail$data((0,e._)`${o} ${r[s].fail} ${c} || isNaN(${o})`)}};return $o.default=i,$o}var Uo={},Tg;function NN(){if(Tg)return Uo;Tg=1,Object.defineProperty(Uo,"__esModule",{value:!0});const e=Be(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:a})=>(0,e.str)`must be multiple of ${a}`,params:({schemaCode:a})=>(0,e._)`{multipleOf: ${a}}`},code(a){const{gen:i,data:n,schemaCode:s,it:o}=a,c=o.opts.multipleOfPrecision,l=i.let("res"),u=c?(0,e._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${c}`:(0,e._)`${l} !== parseInt(${l})`;a.fail$data((0,e._)`(${s} === 0 || (${l} = ${n}/${s}, ${u}))`)}};return Uo.default=r,Uo}var Bo={},Vo={},Pg;function jN(){if(Pg)return Vo;Pg=1,Object.defineProperty(Vo,"__esModule",{value:!0});function e(t){const r=t.length;let a=0,i=0,n;for(;i<r;)a++,n=t.charCodeAt(i++),n>=55296&&n<=56319&&i<r&&(n=t.charCodeAt(i),(n&64512)===56320&&i++);return a}return Vo.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Vo}var Ig;function DN(){if(Ig)return Bo;Ig=1,Object.defineProperty(Bo,"__esModule",{value:!0});const e=Be(),t=et(),r=jN(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:s}){const o=n==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${s} characters`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:s,data:o,schemaCode:c,it:l}=n,u=s==="maxLength"?e.operators.GT:e.operators.LT,f=l.opts.unicode===!1?(0,e._)`${o}.length`:(0,e._)`${(0,t.useFunc)(n.gen,r.default)}(${o})`;n.fail$data((0,e._)`${f} ${u} ${c}`)}};return Bo.default=i,Bo}var Ho={},Rg;function FN(){if(Rg)return Ho;Rg=1,Object.defineProperty(Ho,"__esModule",{value:!0});const e=mn(),t=et(),r=Be(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,r.str)`must match pattern "${n}"`,params:({schemaCode:n})=>(0,r._)`{pattern: ${n}}`},code(n){const{gen:s,data:o,$data:c,schema:l,schemaCode:u,it:f}=n,m=f.opts.unicodeRegExp?"u":"";if(c){const{regExp:d}=f.opts.code,h=d.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,d),k=s.let("valid");s.try(()=>s.assign(k,(0,r._)`${h}(${u}, ${m}).test(${o})`),()=>s.assign(k,!1)),n.fail$data((0,r._)`!${k}`)}else{const d=(0,e.usePattern)(n,l);n.fail$data((0,r._)`!${d}.test(${o})`)}}};return Ho.default=i,Ho}var Wo={},Ng;function MN(){if(Ng)return Wo;Ng=1,Object.defineProperty(Wo,"__esModule",{value:!0});const e=Be(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:i}){const n=a==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${i} properties`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:i,data:n,schemaCode:s}=a,o=i==="maxProperties"?e.operators.GT:e.operators.LT;a.fail$data((0,e._)`Object.keys(${n}).length ${o} ${s}`)}};return Wo.default=r,Wo}var Ko={},jg;function LN(){if(jg)return Ko;jg=1,Object.defineProperty(Ko,"__esModule",{value:!0});const e=mn(),t=Be(),r=et(),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:n}})=>(0,t.str)`must have required property '${n}'`,params:({params:{missingProperty:n}})=>(0,t._)`{missingProperty: ${n}}`},code(n){const{gen:s,schema:o,schemaCode:c,data:l,$data:u,it:f}=n,{opts:m}=f;if(!u&&o.length===0)return;const d=o.length>=m.loopRequired;if(f.allErrors?h():k(),m.strictRequired){const b=n.parentSchema.properties,{definedProperties:w}=n.it;for(const E of o)if((b==null?void 0:b[E])===void 0&&!w.has(E)){const p=f.schemaEnv.baseId+f.errSchemaPath,g=`required property "${E}" is not defined at "${p}" (strictRequired)`;(0,r.checkStrictMode)(f,g,f.opts.strictRequired)}}function h(){if(d||u)n.block$data(t.nil,v);else for(const b of o)(0,e.checkReportMissingProp)(n,b)}function k(){const b=s.let("missing");if(d||u){const w=s.let("valid",!0);n.block$data(w,()=>y(b,w)),n.ok(w)}else s.if((0,e.checkMissingProp)(n,o,b)),(0,e.reportMissingProp)(n,b),s.else()}function v(){s.forOf("prop",c,b=>{n.setParams({missingProperty:b}),s.if((0,e.noPropertyInData)(s,l,b,m.ownProperties),()=>n.error())})}function y(b,w){n.setParams({missingProperty:b}),s.forOf(b,c,()=>{s.assign(w,(0,e.propertyInData)(s,l,b,m.ownProperties)),s.if((0,t.not)(w),()=>{n.error(),s.break()})},t.nil)}}};return Ko.default=i,Ko}var Go={},Dg;function qN(){if(Dg)return Go;Dg=1,Object.defineProperty(Go,"__esModule",{value:!0});const e=Be(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:i}){const n=a==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${i} items`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:i,data:n,schemaCode:s}=a,o=i==="maxItems"?e.operators.GT:e.operators.LT;a.fail$data((0,e._)`${n}.length ${o} ${s}`)}};return Go.default=r,Go}var Jo={},Yo={},Fg;function cm(){if(Fg)return Yo;Fg=1,Object.defineProperty(Yo,"__esModule",{value:!0});const e=n0();return e.code='require("ajv/dist/runtime/equal").default',Yo.default=e,Yo}var Mg;function zN(){if(Mg)return Jo;Mg=1,Object.defineProperty(Jo,"__esModule",{value:!0});const e=Xl(),t=Be(),r=et(),a=cm(),n={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:o}})=>(0,t.str)`must NOT have duplicate items (items ## ${o} and ${s} are identical)`,params:({params:{i:s,j:o}})=>(0,t._)`{i: ${s}, j: ${o}}`},code(s){const{gen:o,data:c,$data:l,schema:u,parentSchema:f,schemaCode:m,it:d}=s;if(!l&&!u)return;const h=o.let("valid"),k=f.items?(0,e.getSchemaTypes)(f.items):[];s.block$data(h,v,(0,t._)`${m} === false`),s.ok(h);function v(){const E=o.let("i",(0,t._)`${c}.length`),p=o.let("j");s.setParams({i:E,j:p}),o.assign(h,!0),o.if((0,t._)`${E} > 1`,()=>(y()?b:w)(E,p))}function y(){return k.length>0&&!k.some(E=>E==="object"||E==="array")}function b(E,p){const g=o.name("item"),S=(0,e.checkDataTypes)(k,g,d.opts.strictNumbers,e.DataType.Wrong),C=o.const("indices",(0,t._)`{}`);o.for((0,t._)`;${E}--;`,()=>{o.let(g,(0,t._)`${c}[${E}]`),o.if(S,(0,t._)`continue`),k.length>1&&o.if((0,t._)`typeof ${g} == "string"`,(0,t._)`${g} += "_"`),o.if((0,t._)`typeof ${C}[${g}] == "number"`,()=>{o.assign(p,(0,t._)`${C}[${g}]`),s.error(),o.assign(h,!1).break()}).code((0,t._)`${C}[${g}] = ${E}`)})}function w(E,p){const g=(0,r.useFunc)(o,a.default),S=o.name("outer");o.label(S).for((0,t._)`;${E}--;`,()=>o.for((0,t._)`${p} = ${E}; ${p}--;`,()=>o.if((0,t._)`${g}(${c}[${E}], ${c}[${p}])`,()=>{s.error(),o.assign(h,!1).break(S)})))}}};return Jo.default=n,Jo}var Xo={},Lg;function $N(){if(Lg)return Xo;Lg=1,Object.defineProperty(Xo,"__esModule",{value:!0});const e=Be(),t=et(),r=cm(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:n})=>(0,e._)`{allowedValue: ${n}}`},code(n){const{gen:s,data:o,$data:c,schemaCode:l,schema:u}=n;c||u&&typeof u=="object"?n.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${o}, ${l})`):n.fail((0,e._)`${u} !== ${o}`)}};return Xo.default=i,Xo}var Zo={},qg;function UN(){if(qg)return Zo;qg=1,Object.defineProperty(Zo,"__esModule",{value:!0});const e=Be(),t=et(),r=cm(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:n})=>(0,e._)`{allowedValues: ${n}}`},code(n){const{gen:s,data:o,$data:c,schema:l,schemaCode:u,it:f}=n;if(!c&&l.length===0)throw new Error("enum must have non-empty array");const m=l.length>=f.opts.loopEnum;let d;const h=()=>d??(d=(0,t.useFunc)(s,r.default));let k;if(m||c)k=s.let("valid"),n.block$data(k,v);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const b=s.const("vSchema",u);k=(0,e.or)(...l.map((w,E)=>y(b,E)))}n.pass(k);function v(){s.assign(k,!1),s.forOf("v",u,b=>s.if((0,e._)`${h()}(${o}, ${b})`,()=>s.assign(k,!0).break()))}function y(b,w){const E=l[w];return typeof E=="object"&&E!==null?(0,e._)`${h()}(${o}, ${b}[${w}])`:(0,e._)`${o} === ${E}`}}};return Zo.default=i,Zo}var zg;function BN(){if(zg)return zo;zg=1,Object.defineProperty(zo,"__esModule",{value:!0});const e=RN(),t=NN(),r=DN(),a=FN(),i=MN(),n=LN(),s=qN(),o=zN(),c=$N(),l=UN(),u=[e.default,t.default,r.default,a.default,i.default,n.default,s.default,o.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},c.default,l.default];return zo.default=u,zo}var Qo={},gi={},$g;function i0(){if($g)return gi;$g=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.validateAdditionalItems=void 0;const e=Be(),t=et(),a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:n}})=>(0,e.str)`must NOT have more than ${n} items`,params:({params:{len:n}})=>(0,e._)`{limit: ${n}}`},code(n){const{parentSchema:s,it:o}=n,{items:c}=s;if(!Array.isArray(c)){(0,t.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(n,c)}};function i(n,s){const{gen:o,schema:c,data:l,keyword:u,it:f}=n;f.items=!0;const m=o.const("len",(0,e._)`${l}.length`);if(c===!1)n.setParams({len:s.length}),n.pass((0,e._)`${m} <= ${s.length}`);else if(typeof c=="object"&&!(0,t.alwaysValidSchema)(f,c)){const h=o.var("valid",(0,e._)`${m} <= ${s.length}`);o.if((0,e.not)(h),()=>d(h)),n.ok(h)}function d(h){o.forRange("i",s.length,m,k=>{n.subschema({keyword:u,dataProp:k,dataPropType:t.Type.Num},h),f.allErrors||o.if((0,e.not)(h),()=>o.break())})}}return gi.validateAdditionalItems=i,gi.default=a,gi}var el={},yi={},Ug;function s0(){if(Ug)return yi;Ug=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.validateTuple=void 0;const e=Be(),t=et(),r=mn(),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(n){const{schema:s,it:o}=n;if(Array.isArray(s))return i(n,"additionalItems",s);o.items=!0,!(0,t.alwaysValidSchema)(o,s)&&n.ok((0,r.validateArray)(n))}};function i(n,s,o=n.schema){const{gen:c,parentSchema:l,data:u,keyword:f,it:m}=n;k(l),m.opts.unevaluated&&o.length&&m.items!==!0&&(m.items=t.mergeEvaluated.items(c,o.length,m.items));const d=c.name("valid"),h=c.const("len",(0,e._)`${u}.length`);o.forEach((v,y)=>{(0,t.alwaysValidSchema)(m,v)||(c.if((0,e._)`${h} > ${y}`,()=>n.subschema({keyword:f,schemaProp:y,dataProp:y},d)),n.ok(d))});function k(v){const{opts:y,errSchemaPath:b}=m,w=o.length,E=w===v.minItems&&(w===v.maxItems||v[s]===!1);if(y.strictTuples&&!E){const p=`"${f}" is ${w}-tuple, but minItems or maxItems/${s} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(m,p,y.strictTuples)}}}return yi.validateTuple=i,yi.default=a,yi}var Bg;function VN(){if(Bg)return el;Bg=1,Object.defineProperty(el,"__esModule",{value:!0});const e=s0(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return el.default=t,el}var tl={},Vg;function HN(){if(Vg)return tl;Vg=1,Object.defineProperty(tl,"__esModule",{value:!0});const e=Be(),t=et(),r=mn(),a=i0(),n={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:o,parentSchema:c,it:l}=s,{prefixItems:u}=c;l.items=!0,!(0,t.alwaysValidSchema)(l,o)&&(u?(0,a.validateAdditionalItems)(s,u):s.ok((0,r.validateArray)(s)))}};return tl.default=n,tl}var rl={},Hg;function WN(){if(Hg)return rl;Hg=1,Object.defineProperty(rl,"__esModule",{value:!0});const e=Be(),t=et(),a={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:n}})=>n===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${n} valid item(s)`,params:({params:{min:i,max:n}})=>n===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${n}}`},code(i){const{gen:n,schema:s,parentSchema:o,data:c,it:l}=i;let u,f;const{minContains:m,maxContains:d}=o;l.opts.next?(u=m===void 0?1:m,f=d):u=1;const h=n.const("len",(0,e._)`${c}.length`);if(i.setParams({min:u,max:f}),f===void 0&&u===0){(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&u>f){(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(l,s)){let w=(0,e._)`${h} >= ${u}`;f!==void 0&&(w=(0,e._)`${w} && ${h} <= ${f}`),i.pass(w);return}l.items=!0;const k=n.name("valid");f===void 0&&u===1?y(k,()=>n.if(k,()=>n.break())):u===0?(n.let(k,!0),f!==void 0&&n.if((0,e._)`${c}.length > 0`,v)):(n.let(k,!1),v()),i.result(k,()=>i.reset());function v(){const w=n.name("_valid"),E=n.let("count",0);y(w,()=>n.if(w,()=>b(E)))}function y(w,E){n.forRange("i",0,h,p=>{i.subschema({keyword:"contains",dataProp:p,dataPropType:t.Type.Num,compositeRule:!0},w),E()})}function b(w){n.code((0,e._)`${w}++`),f===void 0?n.if((0,e._)`${w} >= ${u}`,()=>n.assign(k,!0).break()):(n.if((0,e._)`${w} > ${f}`,()=>n.assign(k,!1).break()),u===1?n.assign(k,!0):n.if((0,e._)`${w} >= ${u}`,()=>n.assign(k,!0)))}}};return rl.default=a,rl}var Iu={},Wg;function KN(){return Wg||(Wg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Be(),r=et(),a=mn();e.error={message:({params:{property:c,depsCount:l,deps:u}})=>{const f=l===1?"property":"properties";return(0,t.str)`must have ${f} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:l,deps:u,missingProperty:f}})=>(0,t._)`{property: ${c},
|
|
117
|
+
`)!==-1||/^#{1,6}\s/.test(E);F?(i.inline=!1,x=In(E,i,a)):x=Vr(E,0,E.length,i,a),i.inAnchor=O,i.inline=j,i.k=T}return{node:{type:ne.htmlBlock,tag:v,attrs:zr(g.attrs,v,a),b:g.b,children:x,text:rr(A),c:!1,a:!1},end:y}}var FM=200,Na=0;function Vr(e,t,r,i,a){if(Na++,Na>FM)return Na--,[{type:ne.text,text:e.slice(t,r)}];var n=lr;lr=PM();let s=i;if(a.optimizeForStreaming){let Q=function(He,bt){for(var Et=1,ot=bt+1;ot<He.length;ot++){var kt=He.charCodeAt(ot);if(kt===vt)Et++;else if(kt===jr&&(Et--,Et===0))return ot}return-1},ee=e.slice(t,r),pe=ee;for(var o=0,l=0,u=0,c=0,f=0,m=-1,d=-1,p=-1,b=-1,k=-1,g=0;g<ee.length;g++){var v=ee.charCodeAt(g);v===xt?g+1<ee.length&&ee.charCodeAt(g+1)===xt?(o++,m=g,g++):(l++,d=g):v===gt?g+1<ee.length&&ee.charCodeAt(g+1)===gt?(u++,p=g,g++):(c++,b=g):v===_t&&g+1<ee.length&&ee.charCodeAt(g+1)===_t&&(f++,k=g,g++)}var w=[];f%2===1&&k>=0&&w.push([k,2]),u%2===1&&p>=0&&w.push([p,2]),c%2===1&&b>=0&&w.push([b,1]),o%2===1&&m>=0&&w.push([m,2]),l%2===1&&d>=0&&w.push([d,1]),w.sort((He,bt)=>bt[0]-He[0]);for(var C=0;C<w.length;C++){var h=w[C][0],y=w[C][1];ee=ee.slice(0,h)+ee.slice(h+y)}let ce=0,ct=-1;for(let He=0;He<ee.length;He++)ee.charCodeAt(He)===Je&&(ce++,ct=He);if(ce%2===1&&ct!==-1){let He=!1,bt=-1,Et=0;for(;Et<ee.length;)ee.charCodeAt(Et)===Je&&(He?(He=!1,bt=-1):(bt=Et,He=!0)),Et++;He&&bt!==-1&&(ee=ee.slice(0,bt))}for(var S=!0;S;){S=!1;for(var A=-1,_=-1,x=-1,E=!1,O=0;O<ee.length;O++){var j=ee.charCodeAt(O);if(j===vt&&(O===0||ee.charCodeAt(O-1)!==Tt)){var T=O>0&&ee.charCodeAt(O-1)===Wt,F=T?O-1:O,q=Q(ee,O);if(q===-1)A=F,E=T,_=O+1,x=ee.length;else{var J=q+1;if(J>=ee.length)A=F,E=T,_=O+1,x=q;else if(ee.charCodeAt(J)===Er){var Y=ee.indexOf(")",J+1);Y===-1?(A=F,E=T,_=O+1,x=q,O=ee.length):O=Y}else if(ee.charCodeAt(J)===vt){var te=ee.indexOf("]",J+1);te===-1?(A=F,E=T,_=O+1,x=q,O=ee.length):O=te}else O=q}}}if(A>=0){var P=E?"":ee.slice(_,x);ee=ee.slice(0,A)+P,S=!0}}let Fe=ee.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(Fe&&Fe.index!==void 0){var D=Fe[0].length-Fe[2].length,U=D>=2&&Fe[0].charCodeAt(D-2)===yt;if(!U){for(var I=!1,R=0,M=0;M<Fe.index;M++)ee.charCodeAt(M)===Je&&R++;if(I=R%2===1,!I){let He=Fe[1];xn(ee,`</${He}`,0)===-1&&(ee=ee.slice(0,Fe.index)+Fe[2])}}}ee!==pe&&(e=e.slice(0,t)+ee,r=t+ee.length)}let z=[];var B=[];let H=t;var G="",X=a.disableAutoLink||a.disableBareUrls||s.inAnchor?-1:e.indexOf("@",t);for(X>=r&&(X=-1);t<r;){let Q=e.charCodeAt(t),ee=null;if(Q===Je){if(ee=SM(e,t,r),!ee){var $=Ln(e,t,r,Je);t+=$-1}}else if(Q===xt||Q===gt){var L=OM(e,t,r);if(L){if(L.canOpen||L.canClose){(G||t>H)&&(z.push(Xn(G+e.slice(H,t))),G="");var W=e.slice(t,t+L.len),K=Xn(W);B.push({idx:z.length,ch:Q,len:L.len,canOpen:L.canOpen,canClose:L.canClose,active:!0}),z.push(K),t+=L.len,H=t;continue}t+=L.len-1}}else if(Q===_t)ee=EM(e,t,r,s,a);else if(Q===dr)ee=AM(e,t,r,s,a);else if(Q===vt)t+1<r&&e.charCodeAt(t+1)===cn&&(ee=IM(e,t,r)),ee||(ee=Xh(e,t,r,s,a));else if(Q===Wt&&t+1<r&&e.charCodeAt(t+1)===vt)ee=Xh(e,t,r,s,a);else if(Q===rt)ee=h1(e,t,r),!(ee||a.disableParsingRawHTML||a.ignoreHTMLBlocks)&&(ee=NM(e,t,r,s,a));else if(Q===jl){var ie=RM(e,t,r);if(ie!==-1){var re=e.slice(t,ie),ue=_n(re);if(ue!==re){G=G+e.slice(H,t)+ue,t=ie,H=ie;continue}}}else if((Q===tl||Q===si||Q===mi)&&!s.inAnchor&&!a.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==rt)){var ge=t+1<r?e.charCodeAt(t+1):0;(Q===tl&&ge===Ki||Q===mi&&ge===Ki||Q===si&&ge===si)&&(ee=TM(e,t,r,a))}if(!ee&&X>=0&&X-t<=64&&!s.inAnchor&&!a.disableAutoLink&&!a.disableBareUrls&&(Q>=xe&&Q<=Ee||Q>=Xe&&Q<=ut||Q>=Te&&Q<=je)&&(ee=jM(e,t,r,a),!ee&&t>=X&&(X=e.indexOf("@",t+1),X>=r&&(X=-1))),Q===fe&&s.k){var we=!1,ke=0;if(t>H&&e.charCodeAt(t-1)===Tt)we=!0,ke=1;else{for(var Pe=0,de=t-1;de>=H&&e.charCodeAt(de)===se;)Pe++,de--;Pe>=2&&(we=!0,ke=Pe)}if(we){for((G||t-ke>H)&&(z.push(Xn(G+e.slice(H,t-ke))),G=""),z.push({type:ne.breakLine}),t++;t<r&&e.charCodeAt(t)===se;)t++;H=t;continue}var Ve=t>H&&e.charCodeAt(t-1)===se,st=t+1<r&&e.charCodeAt(t+1)===se;if(Ve||st){for(var ve=t;ve>H&&e.charCodeAt(ve-1)===se;)ve--;for(G+=`${e.slice(H,ve)}
|
|
118
|
+
`,t++;t<r&&e.charCodeAt(t)===se;)t++;H=t;continue}}if(ee)(G||t>H)&&(z.push(Xn(G+e.slice(H,t))),G=""),z.push(ee.node),t=ee.end,H=t;else{if(Q===Tt&&t+1<r){let pe=e.charCodeAt(t+1);if(Rd(pe)&$i){(G||t>H)&&(z.push(Xn(G+e.slice(H,t))),G=""),z.push(Xn(e[t+1])),t+=2,H=t;continue}}if(t++,X<0||X-t>64)for(;t<r&&!(X>=0&&X-t<=64);){var Z=e.charCodeAt(t);if(Z<Rl&&!c1[Z])t++;else break}}}return(G||r>H)&&(z.push(Xn(G+e.slice(H,r))),G=""),B.length>0&&_M(z,B),lr=n,Na--,z}var DM=500;function In(e,t,r){var i=t.o||0;if(i>DM)return[{type:ne.text,text:e}];if(t.o=i+1,r.optimizeForStreaming&&!(t.i||t.w)){for(var a=e.length;a>0&&e.charCodeAt(a-1)===fe;)a--;for(var n=a;n>0&&e.charCodeAt(n-1)!==fe;)n--;if(a>n&&e.charCodeAt(n)===It){for(var s=!1,o=n+1;o<a;o++){var l=e.charCodeAt(o);if(l!==se&&l!==le&&l!==It&&l!==qt&&l!==Oe){s=!0;break}}for(var u=!1,c=!1,f=0,m=n,d=n-1;d>0;){for(var p=d;p>0&&e.charCodeAt(p-1)!==fe;)p--;if(e.charCodeAt(p)!==It)break;m=p;for(var b=!0,k=!1,g=p;g<d;g++){var v=e.charCodeAt(g);if(v===Oe)k=!0;else if(v!==se&&v!==le&&v!==qt&&v!==It){b=!1;break}}b&&k?(u=!0,c=!0):c||f++,d=p-1}s?u||(e=e.slice(0,n).trimEnd()):e=u&&f>0?e.slice(0,n).trimEnd():e.slice(0,m).trimEnd()}for(var w=-1,C=-1,h=-1,y=!1,S=e.length-1;S>=0;S--)if(e.charCodeAt(S)===rt){for(var A=S+1<e.length?e.charCodeAt(S+1):0,_=A>=xe&&A<=Ee||A>=Xe&&A<=ut,x=A===yt&&S+2<e.length&&(e.charCodeAt(S+2)>=xe&&e.charCodeAt(S+2)<=Ee||e.charCodeAt(S+2)>=Xe&&e.charCodeAt(S+2)<=ut),E=A===Wt||A===da,O=e.length;O>S+1&&e.charCodeAt(O-1)===fe;)O--;var j=S+1>=O;if(_||x||E||j){var T=S+1;if((x||_)&&(T=S+2),_||x)for(;T<e.length;){var F=e.charCodeAt(T);if(F>=xe&&F<=Ee||F>=Xe&&F<=ut||F>=Te&&F<=je)T++;else break}for(var q=_||x?T:S+2;q<e.length&&e.charCodeAt(q)!==Re;)q++;if(q>=e.length)w=S,y=!0;else if((_||x)&&e.charCodeAt(q-1)!==yt){for(var J=!1,Y=q+1;Y<e.length;Y++)if(e.charCodeAt(Y)===rt){J=!0;break}J||(w=S,C=T,h=q+1)}}break}if(w>=0){for(var te=0,P=0;P<w;P++)e.charCodeAt(P)===Je&&te++;if(te%2===0)if(y)e=e.slice(0,w);else{var D=e.slice(w+1,C);xn(e,`</${D}`,0)===-1&&(e=e.slice(0,w)+e.slice(h))}}for(var U=e.length;U>0&&e.charCodeAt(U-1)===fe;)U--;if(U>0){for(var I=U;I>0&&e.charCodeAt(I-1)!==fe;)I--;for(var R=I,M=0;R<U&&e.charCodeAt(R)===se&&M<3;)R++,M++;if(I>0&&R<U&&pM(e,R,U)){for(var z=I-1,B=z;B>0&&e.charCodeAt(B-1)!==fe;)B--;Ht(e,B,z)||(e=e.slice(0,I).trimEnd())}}var H=e.length;if(H>0){for(var G=e.lastIndexOf(`
|
|
119
|
+
`),X=G===-1?0:G+1,$=H,L=X,W=0;L<$&&e.charCodeAt(L)===se&&W<3;)L++,W++;if(L<$){var K=e.charCodeAt(L),ie=!1;if(K===xt||K===Oe||K===Mn){var re=L+1;if(re>=$||e.charCodeAt(re)===se||e.charCodeAt(re)===le){for(var ue=re;ue<$&&(e.charCodeAt(ue)===se||e.charCodeAt(ue)===le);)ue++;ue>=$&&(ie=!0)}}else if(K>=Te&&K<=je){for(var ge=L;ge<$&&e.charCodeAt(ge)>=Te&&e.charCodeAt(ge)<=je;)ge++;if(ge<$&&(e.charCodeAt(ge)===mr||e.charCodeAt(ge)===Pr)){var we=ge+1;if(we>=$||e.charCodeAt(we)===se||e.charCodeAt(we)===le){for(var ke=we;ke<$&&(e.charCodeAt(ke)===se||e.charCodeAt(ke)===le);)ke++;ke>=$&&(ie=!0)}}}ie&&(e=e.slice(0,X).trimEnd())}}}if(t.inline)return Vr(e,0,e.length,t,r);let Pe=[],de=0,Ve=e.length;if(de===0&&!r.disableFrontmatter&&e.startsWith("---")){let ce=TD(e);if(ce!=null&&ce.hasValidYaml){if(r.preserveFrontmatter!==!1){let ct=e.slice(0,ce.endPos).trimEnd();Pe.push({type:ne.frontmatter,text:ct})}de=ce.endPos}}for(;de<Ve;){for(var st=e.indexOf(`
|
|
120
|
+
`,de),ve=st<0?Ve:st;de<Ve&&Ht(e,de,ve);)de=ve<Ve?ve+1:ve,de<Ve&&(st=e.indexOf(`
|
|
121
|
+
`,de),ve=st<0?Ve:st);if(de>=Ve)break;var Z=e.charCodeAt(de)===pf;Ct(e,de,ve);let ce=null;if(vf=e,bf=de,qo=ve,!Z&&Ge>=4&&!t.inHTML)ce=gM(e,de);else if(!Z){let ct=de+Ke,Fe=e.charCodeAt(ct);Fe===br?ce=mM(e,de,t,r):Fe===Re?ce=yM(e,de,t,r):Fe===Je||Fe===_t?ce=hM(e,de):Fe===Oe||Fe===xt||Fe===gt?(ce=Pn(e,de),!ce&&(ce=Bh(e,de,t,r))):Fe===Mn||Fe>=Te&&Fe<=je?ce=Bh(e,de,t,r):Fe===rt?ce=p1(e,de,t,r):Fe===It?ce=Hh(e,de,t,r):Fe===vt&&(ce=kM(e,de,t))}if(!ce){for(var Q=!1,ee=de;ee<ve;ee++)if(e.charCodeAt(ee)===It){Q=!0;break}Q&&(ce=Hh(e,de,t,r))}if(ce||(ce=xM(e,de,t,r)),ce)ce.node.type!==ne.refCollection&&Pe.push(ce.node),de=ce.end;else{var pe=e.indexOf(`
|
|
122
|
+
`,de);de=pe<0?Ve:pe+1}}return t.o=i,Pe}function MM(e,t,r,i){var a=$r(e,t);return a?{tagName:a.tag,tagLower:a.tag.toLowerCase(),attrs:a.b,whitespaceBeforeAttrs:a.g,isSelfClosing:a.n,hasSpaceBeforeSlash:a.r,isClosing:a.f,hasNewline:a.g.includes(`
|
|
123
|
+
`)||a.b.includes(`
|
|
124
|
+
`),endPos:a.end}:null}function Fd(e,t,r){Na=0,e=zD(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=fM(e,t.refs,r));var i,a;t.t||(t.t=i=[],t.p=a=[]);let n=In(e,t,r);if(i&&a){for(var s=i,o={inline:t.inline,inAnchor:t.inAnchor,inHTML:t.inHTML,htmlDepth:t.d,inList:t.inList,inBlockQuote:t.inBlockQuote,noSetext:t.l,depth:t.o},l=0;l<s.length;l++){var u=s[l];t.inline=u.inline,t.inAnchor=u.inAnchor,t.inHTML=u.inHTML,t.d=u.htmlDepth,t.inList=u.inList,t.inBlockQuote=u.inBlockQuote,t.l=u.noSetext,t.o=u.depth,t.k=u.breaks;var c=Vr(u.text,0,u.text.length,t,r);t.k=!1;for(var f=0;f<c.length;f++)u.dest.push(c[f])}t.inline=o.inline,t.inAnchor=o.inAnchor,t.inHTML=o.inHTML,t.d=o.htmlDepth,t.inList=o.inList,t.inBlockQuote=o.inBlockQuote,t.l=o.noSetext,t.o=o.depth;for(var m=a,d=0;d<m.length;d++)for(var p=m[d],b=0;b<p.src.length;b++){var k=p.src[b];if(p.unwrap&&k.type===ne.paragraph)for(var g=k.children,v=0;v<g.length;v++)p.dest.push(g[v]);else p.dest.push(k)}t.t=void 0,t.p=void 0,Ef(n,t,r.slugify)}return l1(t.refs)?[{type:ne.refCollection,refs:t.refs},...n]:n}var Af;try{Ti=tn.createElement("div"),Af=Ti!=null&&typeof Ti=="object"&&"$$typeof"in Ti&&typeof Ti.$$typeof=="symbol"?Ti.$$typeof:Symbol.for("react.transitional.element")}catch{Af=Symbol.for("react.transitional.element")}var Ti;function Of(e,t,r){return{$$typeof:Af,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function sr(e,t){var r={key:e};if(t){var i=o1(t);for(var a in i)r[a]=i[a]}return r}var Zh=typeof tn.createContext>"u"?void 0:tn.createContext(void 0);function Qh(e,t,r,i,a,n,s,o,l){switch(e.type){case ne.blockQuote:{let g={key:r.key};return e.alert&&(g.className=`markdown-alert-${n(e.alert.toLowerCase(),yi)}`,e.children.unshift(BD(e.alert))),i("blockquote",g,t(e.children,r))}case ne.breakLine:return i("br",{key:r.key});case ne.breakThematic:return i("hr",{key:r.key});case ne.frontmatter:return o.preserveFrontmatter?i("pre",{key:r.key},e.text):null;case ne.codeBlock:{let g=e.lang?_n(e.lang):"";var u=e.attrs?o1(e.attrs):{};return u.className=g?`language-${g} lang-${g}`:"",i("pre",{key:r.key},i("code",u,e.text))}case ne.codeInline:return i("code",{key:r.key},e.text);case ne.footnoteReference:return i("a",{key:r.key,href:a(e.target,"a","href")||void 0},i("sup",null,e.text));case ne.gfmTask:return i("input",{checked:e.completed,key:r.key,readOnly:!0,type:"checkbox"});case ne.heading:return i(`h${e.level}`,{id:e.id,key:r.key},t(e.children,r));case ne.htmlBlock:{let g=e;if(Li(o)&&Ih(g.tag)){var c=Ph(g);return c.kind==="literal"?i("span",{key:r.key},c.literal):i("span",{key:r.key},...GD(c.open,g.children?t(g.children,r):null,c.close))}let v=g.j,w=v!==void 0,C=w?v:g.a?g.e||"":(g.e||"")+(g.h||"");if(C&&g.c){let h=g.tag.toLowerCase(),y=iM(h),S=g.children,A=S!=null&&S.length>0;if(y){let F=w?v:g.e||"",q=Li(o)?Th(F):F;if(/<[a-z][^>]{0,100}>/i.test(C)){var f=sr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:q},l(e.tag,f)}return l(e.tag,sr(r.key,e.attrs),q)}let _=new RegExp(`^<${g.tag}(\\s|>)`,"i");if(A&&!_.test(C)&&Li(o)&&eM(C))return l(e.tag,sr(r.key,e.attrs),t(S,r));if(aM(C)){let F=Li(o)?Th(C):C;var m=sr(r.key,e.attrs);return m.dangerouslySetInnerHTML={__html:F},l(e.tag,m)}let x=jd({slugify:o.slugify,sanitizer:a,tagfilter:!0}),E=$D(C);if(new RegExp(`^<${g.tag}(\\s[^>]*)?>(\\s*</${g.tag}>)?$`,"i").test(E))return g.children&&g.children.length>0?l(e.tag,sr(r.key,e.attrs),t(g.children,r)):l(e.tag,sr(r.key,e.attrs));let O=Fd(E,{inline:!1,refs:s,inHTML:!1},x);u1(O);let j=g.tag.toLowerCase(),T=w;if(T&&A)return l(e.tag,sr(r.key,e.attrs),t(S,r));if(T)return t(O.flatMap(Ui),r);var d=KD(O,j);if(d.found&&d.afterClose.length>0){var p=d.beforeClose.flatMap(Ui),b=d.afterClose.flatMap(Ui);return Of(tn.Fragment,{children:[l(e.tag,sr(r.key,e.attrs),t(p,r)),t(b,r)]},r.key)}return l(e.tag,sr(r.key,e.attrs),t(O.flatMap(Ui),r))}return gs(e.tag)?l(e.tag,sr(r.key,e.attrs)):l(e.tag,sr(r.key,e.attrs),e.children?t(e.children,r):"")}case ne.htmlSelfClosing:{let g=e;if(Li(o)&&Ih(g.tag)){var k=Ph(g);return i("span",{key:r.key},k.kind==="literal"?k.literal:k.open+(k.close||""))}return l(e.tag,sr(r.key,e.attrs))}case ne.image:{let g=e.target===null?null:a(e.target,"img","src");return i("img",{key:r.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:g||void 0})}case ne.link:{let g={key:r.key};if(e.target!=null){let v=JD(e.target,a,"a","href");v!=null&&(g.href=v)}return e.title&&(g.title=e.title),i("a",g,t(e.children,r))}case ne.table:{let g=e;return i("table",{key:r.key},i("thead",{key:"thead"},i("tr",null,g.header.map(function(v,w){return i("th",{key:w,style:g.align[w]===null?{}:{textAlign:g.align[w]}},t(v,r))}))),g.cells.length>0&&i("tbody",{key:"tbody"},g.cells.map(function(v,w){return i("tr",{key:w},v.map(function(C,h){return i("td",{key:h,style:g.align[h]===null?{}:{textAlign:g.align[h]}},t(C,r))}))})))}case ne.text:return e.text;case ne.textFormatted:return i(e.tag,{key:r.key},t(e.children,r));case ne.orderedList:case ne.unorderedList:{let g=e.type===ne.orderedList?"ol":"ul";return i(g,{key:r.key,start:e.type===ne.orderedList?e.start:void 0},e.items.map(function(v,w){return i("li",{key:w},t(v,r))}))}case ne.paragraph:return i("p",{key:r.key},t(e.children,r));case ne.ref:return null;default:return null}}var LM=(e,t,r,i,a,n,s)=>{var o=u=>u.map(c=>"text"in c?c.text:""),l=(u,c={})=>{var f=Array.isArray(u)?u:[u],m=(c.renderDepth||0)+1;if(m>2500)return o(f);c.renderDepth=m;for(var d=c.key,p=[],b=!1,k=0;k<f.length;k++){c.key=k;var g;if(e){var v=Qh.bind(null,f[k],l,c,t,r,i,a,n,s);g=e(v,f[k],l,c)}else g=Qh(f[k],l,c,t,r,i,a,n,s);var w=typeof g=="string";if(b&&typeof g=="string"){var C=p.at(-1);p[p.length-1]=(typeof C=="string"?C:"")+g}else if(g!=null)if(Array.isArray(g))for(var h=0;h<g.length;h++)p.push(g[h]);else p.push(g);b=w}return c.key=d,c.renderDepth=m-1,p};return l},qM=(e,t)=>{let r=hf(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:hf(t,`${e}.component`,e):e};function zM(e,t){let r={...t||{}};r.overrides=r.overrides||{};let i=r.slugify||yi,a=r.sanitizer||rn,n=r.createElement,s=l1(r.overrides),o=w=>_f(w,{...r,wrapper:null});function l(w){for(var C in w){var h=w[C];if(typeof h=="string"&&h.length>0&&h.charCodeAt(0)===rt&&(tM.test(h)||rM.test(h)||MM(h,0))){var y=o(h.trim());w[C]=C==="innerHTML"&&Array.isArray(y)?y[0]:y}}}function u(w,C,...h){var y=C||{},S=w;if(s){var A=hf(r.overrides,`${w}.props`,{});S=qM(w,r.overrides),y={...y,...A,className:ZD(y.className,A.className)||void 0}}if(!n){var _=y.key;return _!=null&&delete y.key,h.length===1?y.children=h[0]:h.length>1&&(y.children=h),Of(S,y,_)}return n(S,y,...h)}function c(w,C,...h){return C&&l(C),u(w,C,...h)}let f=jd(r,r.forceInline),m=e[0]&&e[0].type===ne.refCollection?e[0].refs:{},d=LM(r.renderRule,u,a,i,m,r,c),p=d(e,{inline:r.forceInline,refs:m}),b=YD(m);if(b.length>0&&p.push(u("footer",{key:"footer"},b.map(function(w){let C=w.identifier.charCodeAt(0)===cn?w.identifier.slice(1):w.identifier,h=Fd(w.footnote,{inline:!0,refs:m},f);return u("div",{id:i(C,yi),key:w.identifier},`${C}: `,d(h,{inline:!0,refs:m}))}))),r.wrapper===null)return p;let k=r.wrapper||(r.forceInline?"span":"div"),g;if(p.length>1||r.forceWrapper)g=p;else return p.length===1?p[0]:null;var v=r.wrapperProps?{...r.wrapperProps}:{};return v.children=g,Of(k,v,"outer")}function _f(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function i(n){let s=r.forceInline||!(r.forceBlock||FD.test(n)),o=jd(r,s),l=s?n:HD(n),u=Fd(l,{inline:s,refs:a},o);return zM(u,{...r,forceInline:s})}let a={};return i(e)}function $M(e){let t=tn.useRef(e),r=t.current;if(r!==e){var i=!0,a=0;for(var n in e)if(a++,!Object.is(r[n],e[n])){i=!1;break}if(i){var s=0;for(var o in r)s++;i=s===a}i||(t.current=e)}return t.current}var vs=({children:e,options:t,...r})=>{if(!(typeof tn.useContext<"u")){let o={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return _f(e??"",o)}let i=Zh?tn.useContext(Zh):void 0,a=$M(r),n=tn.useMemo(()=>({...i,...t,overrides:{...i==null?void 0:i.overrides,...t==null?void 0:t.overrides},wrapperProps:{...i==null?void 0:i.wrapperProps,...t==null?void 0:t.wrapperProps,...a}}),[i,t,a]),s=e??"";return tn.useMemo(()=>_f(s,n),[s,n])};const g1=Symbol("remove-this-key"),eg=Symbol("reset");function UM(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function BM(e,t){switch(t){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};case"string":default:return e(_e.NewStringDefault)}}function y1(e){return!!(e!=null&&e[Sn])}function tg(e){return Object.keys(e).filter(t=>y1(e[t]))}function VM(e){const{fieldPathId:t,schema:r,registry:i,uiSchema:a,errorSchema:n,formData:s,onChange:o,onBlur:l,onFocus:u,disabled:c,readonly:f,required:m,hideError:d,propertyName:p,handleKeyRename:b,handleRemoveProperty:k,addedByAdditionalProperties:g}=e,[v,w]=V.useState(!1),{globalFormOptions:C,fields:h}=i,{SchemaField:y}=h,S=fa(Tr(p,C,t.path)),A=V.useCallback((O,j,T,F)=>{let q=O;O===void 0&&g&&(q=""),o(q,j,T,F)},[o,g]),_=V.useCallback(O=>{p!==O&&w(!0),b(p,O)},[p,b]),x=V.useCallback(O=>{const{target:{value:j}}=O;_(j)},[_]),E=V.useCallback(()=>{k(p)},[p,k]);return N.jsx(y,{name:p,required:m,schema:r,uiSchema:a,errorSchema:n,fieldPathId:S,formData:s,wasPropertyKeyModified:v,onKeyRename:_,onKeyRenameBlur:x,onRemoveProperty:E,onChange:A,onBlur:l,onFocus:u,registry:i,disabled:c,readonly:f,hideError:d})}const HM=V.memo(VM);function KM(e){const{schema:t,uiSchema:r={},formData:i,errorSchema:a,fieldPathId:n,name:s,required:o=!1,disabled:l,readonly:u,hideError:c,onBlur:f,onFocus:m,onChange:d,registry:p,title:b}=e,{fields:k,schemaUtils:g,translateString:v,globalUiOptions:w}=p,{OptionalDataControlsField:C}=k,h=V.useRef(i);h.current=i;const y=V.useMemo(()=>g.retrieveSchema(t,i,!0),[g,t,i]),S=V.useMemo(()=>me(r,w),[r,w]),A=V.useMemo(()=>y.properties??{},[y.properties]),_=e.childFieldPathId??n,x=V.useRef({previousKey:"",currentKey:void 0}),[E,O]=V.useState(()=>tg(A)),j=V.useMemo(()=>{const B=new Set(tg(A));return Object.keys(A).filter(H=>!B.has(H))},[A]),T=S.title??y.title??b??s,F=S.description??y.description,q=hs(p,y,o,r),J=ca(i);let Y=[];const te=V.useCallback((B,H)=>{const{duplicateKeySuffixSeparator:G="-"}=me(r,w);let X=0,$=B;for(;qe(H,$);)X+=1,$=`${B}${G}${X}`;return $},[r,w]),P=V.useCallback(()=>{if(!(y.additionalProperties||y.patternProperties))return;const B={...i},H=te("newKey",B);if(y.patternProperties)lt(B,H,null);else{let G,X,$;if(Ue(y.additionalProperties)){G=y.additionalProperties.type,X=y.additionalProperties.const,$=y.additionalProperties.default;let W=y.additionalProperties;at in W&&(W=g.retrieveSchema({[at]:W[at]},i),G=W.type,X=W.const,$=g.getDefaultFormState(W,$)),!G&&(Le in W||Ae in W)&&(G="object")}const L=X??$??BM(v,G);lt(B,H,L)}x.current.previousKey===H&&(x.current.currentKey=H,x.current.previousKey=te(H,B)),O(G=>[...G,H]),d(B,_.path)},[i,d,v,g,_,te,y]),D=V.useCallback((B,H)=>{if(B!==H){const G=h.current,X=te(H,G),$={...G},L={[B]:X},W=Object.keys($).map(ie=>({[Object.hasOwn(L,ie)?L[ie]:ie]:$[ie]})),K=Object.assign({},...W);h.current=K,B!==x.current.currentKey&&(x.current.previousKey=B),x.current.currentKey=X,O(ie=>ie.map(re=>re===B?X:re)),d(K,_.path)}},[d,_,te]),U=V.useCallback(B=>{O(H=>H.filter(G=>G!==B)),d(g1,[..._.path,B])},[d,_]),I=V.useCallback(B=>x.current.currentKey===B?x.current.previousKey:B,[]);if(!q||J)try{const B=new Set(j),H=E.filter(G=>Object.hasOwn(A,G)&&!B.has(G));Y=yF([...j,...H],S.order)}catch(B){return N.jsxs("div",{children:[N.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:N.jsx(vs,{options:{disableParsingRawHTML:!0},children:v(_e.InvalidObjectField,[s||"root",B.message])})}),N.jsx("pre",{children:JSON.stringify(y)})]})}const R=ye("ObjectFieldTemplate",p,S),M=q?N.jsx(C,{...e,fieldPathId:_,schema:y}):void 0,z={title:S.label===!1?"":T,description:S.label===!1?void 0:F,properties:Y.map(B=>{var L;const H=y1((L=y.properties)==null?void 0:L[B]),G=H?r.additionalProperties:r[B],X=me(G).widget==="hidden";return{content:N.jsx(HM,{propertyName:B,required:UM(y,B),schema:ae(y,[$e,B],{}),uiSchema:G,errorSchema:ae(a,[B]),fieldPathId:_,formData:ae(i,[B]),handleKeyRename:D,handleRemoveProperty:U,addedByAdditionalProperties:H,onChange:d,onBlur:f,onFocus:m,registry:p,disabled:l,readonly:u,hideError:c},I(B)),name:B,readonly:u,disabled:l,required:o,hidden:X}}),readonly:u,disabled:l,required:o,fieldPathId:n,uiSchema:r,errorSchema:a,schema:y,formData:i,registry:p,optionalDataControl:M,className:q?"rjsf-optional-object-field":void 0};return N.jsx(R,{...z,onAddProperty:P})}function WM(e){const{schema:t,uiSchema:r={},formData:i,disabled:a=!1,readonly:n=!1,onChange:s,errorSchema:o,fieldPathId:l,registry:u}=e,{globalUiOptions:c={},schemaUtils:f,translateString:m}=u,d=me(r,c),p=ye("OptionalDataControlsTemplate",u,d),b=ca(i);let k,g,v,w;if(a||n)k=qu(l,"Msg"),g=b?void 0:m(_e.OptionalObjectEmptyMsg);else{const C=b?_e.OptionalObjectRemove:_e.OptionalObjectAdd;g=m(C),b?(k=qu(l,"Remove"),w=()=>s(void 0,l.path,o)):(k=qu(l,"Add"),v=()=>{let h=f.getDefaultFormState(t,i,"excludeObjectChildren");h===void 0&&(h=vr(t)==="array"?[]:{}),s(h,l.path,o)})}return g&&N.jsx(p,{id:k,registry:u,schema:t,uiSchema:r,label:g,onAddClick:v,onRemoveClick:w})}const GM={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function JM(e,t,r){const{field:i}=t,{fields:a,schemaUtils:n}=r;if(typeof i=="function")return i;if(typeof i=="string"&&i in a)return a[i];const s=vr(e),o=Array.isArray(s)?s[0]:s||"",l=e.$id;let u=GM[o];return l&&l in a&&(u=l),(e.anyOf||e.oneOf)&&!n.isSelect(e)&&u!=="ObjectField"?()=>null:u in a?a[u]:a.FallbackField}function YM(e){const{schema:t,fieldPathId:r,uiSchema:i,formData:a,errorSchema:n,name:s,onChange:o,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:f=!1,registry:m,wasPropertyKeyModified:d=!1}=e,{schemaUtils:p,globalFormOptions:b,globalUiOptions:k,fields:g}=m,{AnyOfField:v,OneOfField:w,CyclicSchemaField:C}=g,h=r[nt],y=V.useCallback((ke,Pe,de,Ve)=>o(ke,Pe,de,Ve||h),[h,o]);if(t[Zf])return N.jsx(C,{...e});const S=vF(t,i,m),A=me(S,k),_=ye("FieldTemplate",m,A),x=ye("DescriptionFieldTemplate",m,A),E=ye("FieldHelpTemplate",m,A),O=ye("FieldErrorTemplate",m,A),j=p.retrieveSchema(t,a),T=JM(j,A,m),q=!!j.deprecated?A.deprecatedHandling??"label":void 0,J=!!(A.disabled??e.disabled)||q==="disable",Y=!!(A.readonly??(e.readonly||e.schema.readOnly||j.readOnly)),te=A.hideError,P=te===void 0?e.hideError:!!te,D=!!(A.autofocus??e.autofocus);if(Object.keys(j).length===0)return null;let U=p.getDisplayLabel(j,S,k);const I=A.field&&A.fieldReplacesAnyOrOneOf===!0;let R,M,z={fieldPathId:r};if((Le in j||Ae in j)&&!I&&!p.isSelect(j)){j[Le]?(R=v,M=j[Le].map(de=>p.retrieveSchema(Ue(de)?de:{},a))):j[Ae]&&(R=w,M=j[Ae].map(de=>p.retrieveSchema(Ue(de)?de:{},a)));const ke=hs(m,j,f,S),Pe=ca(a);U=U&&(!ke||Pe),z={childFieldPathId:r,fieldPathId:Tr("XxxOf",b,r)}}const{__errors:B,...H}=n||{},G=Ja(S,["ui:classNames","classNames","ui:style"]);Cn in G&&(G[Cn]=Ja(G[Cn],["classNames","style"]));const X=N.jsx(T,{...e,onChange:y,...z,schema:j,uiSchema:G,disabled:J,readonly:Y,hideError:P,autofocus:D,errorSchema:H,rawErrors:B}),$=r[nt];let L;d?L=s:L=Sn in j?s:A.title||e.schema.title||j.title||e.title||s,q==="label"&&(L=m.translateString(_e.DeprecatedLabel,[L]));const W=A.description||e.schema.description||j.description||"",{help:K}=A,ie=A.widget==="hidden"||q==="hide",re=["rjsf-field",`rjsf-field-${vr(j)}`];!P&&B&&B.length>0&&re.push("rjsf-field-error"),A.classNames&&re.push(A.classNames);const ue=N.jsx(E,{help:K,fieldPathId:r,schema:j,uiSchema:S,hasErrors:!P&&B&&B.length>0,registry:m}),ge=P||R&&!p.isSelect(j)?void 0:N.jsx(O,{errors:B,errorSchema:n,fieldPathId:r,schema:j,uiSchema:S,registry:m}),we={description:N.jsx(x,{id:$n($),description:W,schema:j,uiSchema:S,registry:m}),rawDescription:W,help:ue,rawHelp:typeof K=="string"?K:void 0,errors:ge,rawErrors:P?void 0:B,fieldPathId:r,id:$,label:L,hidden:ie,onChange:o,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:f,disabled:J,readonly:Y,hideError:P,displayLabel:U,classNames:re.join(" ").trim(),style:A.style,formData:a,schema:j,uiSchema:S,registry:m};return N.jsx(_,{...we,children:N.jsxs(N.Fragment,{children:[X,R&&N.jsx(R,{name:s,disabled:J,readonly:Y,hideError:P,errorSchema:n,formData:a,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:M,registry:m,required:f,schema:j,uiSchema:S})]})})}const XM=V.memo(YM,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?uf(e,t):ze(e,t)});function ZM(e){const{schema:t,name:r,uiSchema:i,fieldPathId:a,formData:n,required:s,disabled:o=!1,readonly:l=!1,autofocus:u=!1,onChange:c,onBlur:f,onFocus:m,registry:d,rawErrors:p,hideError:b,title:k}=e,{title:g,format:v}=t,{widgets:w,schemaUtils:C,globalUiOptions:h}=d,y=C.isSelect(t)?di(t,i):void 0;let S=y?"select":"text";v&&dF(t,v,w)&&(S=v);const{widget:A=S,placeholder:_="",title:x,...E}=me(i),O=C.getDisplayLabel(t,i,h),j=x??k??g??r,T=Kr(t,A,w),F=V.useCallback((q,J,Y)=>c(q,a.path,J,Y),[c,a]);return N.jsx(T,{options:{...E,enumOptions:y},schema:t,uiSchema:i,id:a.$id,name:r,label:j,hideLabel:!O,hideError:b,value:n,onChange:F,onBlur:f,onFocus:m,required:s,disabled:o,readonly:l,autofocus:u,registry:d,placeholder:_,rawErrors:p,htmlName:a.name})}function QM(){return{AnyOfField:xh,ArrayField:BF,BooleanField:VF,CyclicSchemaField:HF,FallbackField:JF,LayoutGridField:Id,LayoutHeaderField:gD,LayoutMultiSchemaField:yD,NumberField:wD,ObjectField:KM,OneOfField:xh,OptionalDataControlsField:WM,SchemaField:XM,StringField:ZM,NullField:vD}}function e2(e){const{fieldPathId:t,description:r,registry:i,schema:a,uiSchema:n}=e,s=me(n,i.globalUiOptions),{label:o=!0}=s;if(!r||!o)return null;const l=ye("DescriptionFieldTemplate",i,s);return N.jsx(l,{id:$n(t),description:r,schema:a,uiSchema:n,registry:i})}function t2(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:s,onCopyItem:o,onRemoveItem:l,onMoveDownItem:u,onMoveUpItem:c,readonly:f,registry:m,uiSchema:d}=e,{CopyButton:p,MoveDownButton:b,MoveUpButton:k,RemoveButton:g}=m.templates.ButtonTemplates;return N.jsxs(N.Fragment,{children:[(a||i)&&N.jsx(k,{id:ir(s,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!a,onClick:c,uiSchema:d,registry:m}),(a||i)&&N.jsx(b,{id:ir(s,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!i,onClick:u,uiSchema:d,registry:m}),r&&N.jsx(p,{id:ir(s,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:o,uiSchema:d,registry:m}),n&&N.jsx(g,{id:ir(s,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:l,uiSchema:d,registry:m})]})}function r2(e){const{children:t,className:r,buttonsProps:i,displayLabel:a,hasDescription:n,hasToolbar:s,registry:o,uiSchema:l}=e,u=me(l),c=ye("ArrayFieldItemButtonsTemplate",o,u),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},m=n?31:9,d={display:"flex",alignItems:a?"center":"baseline"},p={display:"flex",justifyContent:"flex-end",marginTop:a?`${m}px`:0};return N.jsxs("div",{className:r,style:d,children:[N.jsx("div",{className:s?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:t}),s&&N.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:N.jsx("div",{className:"btn-group",style:p,children:N.jsx(c,{...i,style:f})})})]})}function n2(e){const{canAdd:t,className:r,disabled:i,fieldPathId:a,uiSchema:n,items:s,optionalDataControl:o,onAddClick:l,readonly:u,registry:c,required:f,schema:m,title:d}=e,p=me(n),b=ye("ArrayFieldDescriptionTemplate",c,p),k=ye("ArrayFieldTitleTemplate",c,p),g=!u&&!i,{ButtonTemplates:{AddButton:v}}=c.templates;return N.jsxs("fieldset",{className:r,id:a.$id,children:[N.jsx(k,{fieldPathId:a,title:p.title||d,required:f,schema:m,uiSchema:n,registry:c,optionalDataControl:g?o:void 0}),N.jsx(b,{fieldPathId:a,description:p.description||m.description,schema:m,uiSchema:n,registry:c}),g?void 0:o,N.jsx("div",{className:"row array-item-list",children:s}),t&&N.jsx(v,{id:ir(a,"add"),className:"rjsf-array-item-add",onClick:l,disabled:i||u,uiSchema:n,registry:c})]})}function i2(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,optionalDataControl:o}=e,l=me(a,s.globalUiOptions),{label:u=!0}=l;if(!r||!u)return null;const c=ye("TitleFieldTemplate",s,l);return N.jsx(c,{id:_l(t),title:r,required:n,schema:i,uiSchema:a,registry:s,optionalDataControl:o})}function a2(e){const{id:t,schema:r}=e,{examples:i,default:a}=r;return Array.isArray(i)?N.jsx("datalist",{id:Ed(t),children:i.concat(a!==void 0&&!i.map(String).includes(String(a))?[a]:[]).map(n=>N.jsx("option",{value:n},String(n)))},`datalist_${t}`):null}function s2(e){const{id:t,name:r,htmlName:i,value:a,readonly:n,disabled:s,autofocus:o,onBlur:l,onFocus:u,onChange:c,onChangeOverride:f,options:m,schema:d,uiSchema:p,registry:b,rawErrors:k,type:g,hideLabel:v,hideError:w,...C}=e,{ClearButton:h}=b.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const y={...C,...iF(d,g,m)};let S;y.type==="number"||y.type==="integer"?S=a||a===0?a:"":S=a??"";const A=V.useCallback(({target:{value:O}})=>c(O===""?m.emptyValue:O),[c,m]),_=V.useCallback(({target:O})=>l(t,O==null?void 0:O.value),[l,t]),x=V.useCallback(({target:O})=>u(t,O==null?void 0:O.value),[u,t]),E=V.useCallback(O=>{O.preventDefault(),O.stopPropagation(),c(m.emptyValue??"")},[c,m.emptyValue]);return N.jsxs(N.Fragment,{children:[N.jsx("input",{id:t,name:i||t,className:"form-control",readOnly:n,disabled:s,autoFocus:o,value:S,...y,list:d.examples?Ed(t):void 0,onChange:f||A,onBlur:_,onFocus:x,"aria-describedby":Rr(t,!!d.examples)}),m.allowClearTextInputs&&!n&&!s&&S&&N.jsx(h,{registry:b,onClick:E}),N.jsx(a2,{id:t,schema:d})]})}function o2(e){const{iconType:t="default",icon:r,className:i,uiSchema:a,registry:n,...s}=e;return N.jsx("button",{type:"button",className:`btn btn-${t} ${i}`,...s,children:N.jsx("i",{className:`glyphicon glyphicon-${r}`})})}const qn=V.memo(o2);function l2(e){const{registry:{translateString:t}}=e;return N.jsx(qn,{title:t(_e.CopyButton),...e,icon:"copy"})}const u2=V.memo(l2);function c2(e){const{registry:{translateString:t}}=e;return N.jsx(qn,{title:t(_e.MoveDownButton),...e,icon:"arrow-down"})}const f2=V.memo(c2);function d2(e){const{registry:{translateString:t}}=e;return N.jsx(qn,{title:t(_e.MoveUpButton),...e,icon:"arrow-up"})}const m2=V.memo(d2);function p2(e){const{registry:{translateString:t}}=e;return N.jsx(qn,{title:t(_e.RemoveButton),...e,iconType:"danger",icon:"remove"})}const h2=V.memo(p2);function g2({id:e,className:t,onClick:r,disabled:i,registry:a,...n}){const{translateString:s}=a;return N.jsx(qn,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:s(_e.ClearButton),onClick:r,disabled:i,registry:a,...n})}const y2=V.memo(g2);function v2({id:e,className:t,onClick:r,disabled:i,registry:a}){const{translateString:n}=a;return N.jsx("div",{className:"row",children:N.jsx("p",{className:`col-xs-4 col-sm-2 col-lg-1 col-xs-offset-8 col-sm-offset-10 col-lg-offset-11 text-right ${t}`,children:N.jsx(qn,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(_e.AddButton),onClick:r,disabled:i,registry:a})})})}function b2({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=Kk(e);return r?null:N.jsx("div",{children:N.jsx("button",{type:"submit",...i,className:`btn btn-info ${i.className||""}`,children:t})})}function k2(){return{SubmitButton:b2,AddButton:v2,CopyButton:u2,MoveDownButton:f2,MoveUpButton:m2,RemoveButton:h2,ClearButton:y2}}function w2(e){const{name:t,fieldPathId:r,registry:i,onExpand:a}=e,{translateString:n}=i,s=`${r[nt]}-button`;return N.jsxs("div",{style:{marginTop:"1rem"},children:[N.jsx("div",{className:"text-danger",children:n(_e.CycleDetected,[t])}),N.jsxs("div",{children:[N.jsx("button",{id:s,type:"button",className:"btn btn-sm btn-warning",onClick:()=>a(r[nt]),children:n(_e.ExpandButton)})," "]})]})}const v1=Sd();function b1({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return me(r,i).enableMarkdownInDescription&&typeof e=="string"?N.jsx(vs,{options:{disableParsingRawHTML:!0},"data-testid":v1.markdown,children:e}):e}b1.TEST_IDS=v1;function x2(e){const{id:t,description:r,registry:i,uiSchema:a}=e;return r?N.jsx("div",{id:t,className:"field-description",children:N.jsx(b1,{description:r,registry:i,uiSchema:a})}):null}function S2({errors:e,registry:t}){const{translateString:r}=t;return N.jsxs("div",{className:"panel panel-danger errors",children:[N.jsx("div",{className:"panel-heading",children:N.jsx("h3",{className:"panel-title",children:r(_e.ErrorsLabel)})}),N.jsx("ul",{className:"list-group",children:e.map((i,a)=>N.jsx("li",{className:"list-group-item text-danger",children:i.stack},a))})]})}function C2(e){const{schema:t,registry:r,typeSelector:i,schemaField:a}=e,n=ye("MultiSchemaFieldTemplate",r);return N.jsx(n,{selector:i,optionSchemaField:a,schema:t,registry:r})}function E2(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const i=Cd(r);return N.jsx("div",{children:N.jsx("ul",{id:i,className:"error-detail bs-callout bs-callout-info",children:t.filter(a=>!!a).map((a,n)=>N.jsx("li",{className:"text-danger",children:a},n))})})}const k1=Sd();function w1({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return me(r,i).enableMarkdownInHelp&&typeof e=="string"?N.jsx(vs,{options:{disableParsingRawHTML:!0},"data-testid":k1.markdown,children:e}):e}w1.TEST_IDS=k1;function A2(e){const{fieldPathId:t,help:r,uiSchema:i,registry:a}=e;return r?N.jsx("div",{id:Ad(t),className:"help-block",children:N.jsx(w1,{help:r,registry:a,uiSchema:i})}):null}const O2="*";function x1(e){const{label:t,required:r,id:i}=e;return t?N.jsxs("label",{className:"control-label",htmlFor:i,children:[t,r&&N.jsx("span",{className:"required",children:O2})]}):null}function _2(e){const{id:t,label:r,children:i,errors:a,help:n,description:s,hidden:o,required:l,displayLabel:u,registry:c,uiSchema:f}=e,m=me(f),d=ye("WrapIfAdditionalTemplate",c,m);if(o)return N.jsx("div",{className:"hidden",children:i});const p=m.widget==="checkbox";return N.jsxs(d,{...e,children:[u&&!p&&N.jsx(x1,{label:r,required:l,id:t}),u&&s?s:null,i,a,n]})}function P2(e){const{children:t,column:r,className:i,...a}=e;return N.jsx("div",{className:i,...a,children:t})}function I2(e){const{selector:t,optionSchemaField:r}=e;return N.jsxs("div",{className:"panel panel-default panel-body",children:[N.jsx("div",{className:"form-group",children:t}),r]})}function T2(e){const{className:t,description:r,disabled:i,formData:a,fieldPathId:n,onAddProperty:s,optionalDataControl:o,properties:l,readonly:u,registry:c,required:f,schema:m,title:d,uiSchema:p}=e,b=me(p),k=ye("TitleFieldTemplate",c,b),g=ye("DescriptionFieldTemplate",c,b);if((m.oneOf||m.anyOf)&&!m.properties&&l.length===0)return null;const w=!u&&!i,{ButtonTemplates:{AddButton:C}}=c.templates;return N.jsxs("fieldset",{className:t,id:n.$id,children:[d&&N.jsx(k,{id:_l(n),title:d,required:f,schema:m,uiSchema:p,registry:c,optionalDataControl:w?o:void 0}),r&&N.jsx(g,{id:$n(n),description:r,schema:m,uiSchema:p,registry:c}),w?void 0:o,l.map(h=>h.content),Cb(m,p,a)&&N.jsx(C,{id:ir(n,"add"),className:"rjsf-object-property-expand",onClick:s,disabled:i||u,uiSchema:p,registry:c})]})}function j2(e){const{id:t,registry:r,label:i,onAddClick:a,onRemoveClick:n}=e;return a?N.jsx(qn,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:a,title:i}):n?N.jsx(qn,{id:t,registry:r,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:n,title:i}):N.jsx("em",{id:t,children:i})}const R2="*";function N2(e){const{id:t,title:r,required:i,optionalDataControl:a}=e;return N.jsxs("legend",{id:t,children:[r,i&&N.jsx("span",{className:"required",children:R2}),a&&N.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:a})]})}function F2(e){const{schema:t,fieldPathId:r,reason:i,registry:a}=e,{translateString:n}=a;let s=_e.UnsupportedField;const o=[];return r!=null&&r.$id&&(s=_e.UnsupportedFieldWithId,o.push(r.$id)),i&&(s=s===_e.UnsupportedField?_e.UnsupportedFieldWithReason:_e.UnsupportedFieldWithIdAndReason,o.push(i)),N.jsxs("div",{className:"unsupported-field",children:[N.jsx("p",{children:N.jsx(vs,{options:{disableParsingRawHTML:!0},children:n(s,o)})}),t&&N.jsx("pre",{children:JSON.stringify(t,null,2)})]})}function D2(e){const{id:t,classNames:r,style:i,disabled:a,displayLabel:n,label:s,onKeyRenameBlur:o,onRemoveProperty:l,rawDescription:u,readonly:c,required:f,schema:m,hideError:d,rawErrors:p,children:b,uiSchema:k,registry:g}=e,{templates:v,translateString:w}=g,{RemoveButton:C}=v.ButtonTemplates,h=w(_e.KeyLabel,[s]),y=Sn in m,S=!!u,A=["form-group",r];!d&&p&&p.length>0&&A.push("has-error has-danger");const _=A.join(" ").trim();if(!y)return N.jsx("div",{className:_,style:i,children:b});const x=S?46:26;return N.jsx("div",{className:_,style:i,children:N.jsxs("div",{className:"row",children:[N.jsx("div",{className:"col-xs-5 form-additional",children:N.jsxs("div",{className:"form-group",children:[n&&N.jsx(x1,{label:h,required:f,id:`${t}-key`}),n&&u&&N.jsx("div",{children:" "}),N.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:o,defaultValue:s},s)]})}),N.jsx("div",{className:"form-additional form-group col-xs-5",children:b}),N.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${x}px`:void 0},children:N.jsx(C,{id:ir(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:a||c,onClick:l,uiSchema:k,registry:g})})]})})}function M2(){return{ArrayFieldDescriptionTemplate:e2,ArrayFieldItemTemplate:r2,ArrayFieldItemButtonsTemplate:t2,ArrayFieldTemplate:n2,ArrayFieldTitleTemplate:i2,ButtonTemplates:k2(),BaseInputTemplate:s2,CyclicSchemaExpandTemplate:w2,DescriptionFieldTemplate:x2,ErrorListTemplate:S2,FallbackFieldTemplate:C2,FieldTemplate:_2,FieldErrorTemplate:E2,FieldHelpTemplate:A2,GridTemplate:P2,MultiSchemaFieldTemplate:I2,ObjectFieldTemplate:T2,OptionalDataControlsTemplate:j2,TitleFieldTemplate:N2,UnsupportedFieldTemplate:F2,WrapIfAdditionalTemplate:D2}}function L2({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return N.jsx(r,{time:e,...t})}function q2(e){const{disabled:t=!1,readonly:r=!1,autofocus:i=!1,options:a,id:n,name:s,registry:o,onBlur:l,onFocus:u}=e,{translateString:c}=o,{elements:f,handleChange:m,handleClear:d,handleSetNow:p}=CF(e);return N.jsxs("ul",{className:"list-inline",children:[f.map((b,k)=>N.jsx("li",{className:"list-inline-item",children:N.jsx(SF,{rootId:n,name:s,select:m,...b,disabled:t,readonly:r,registry:o,onBlur:l,onFocus:u,autofocus:i&&k===0})},k)),(a.hideNowButton!=="undefined"?!a.hideNowButton:!0)&&N.jsx("li",{className:"list-inline-item",children:N.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:p,children:c(_e.NowLabel)})}),(a.hideClearButton!=="undefined"?!a.hideClearButton:!0)&&N.jsx("li",{className:"list-inline-item",children:N.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:d,children:c(_e.ClearLabel)})})]})}function z2({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,onChange:s,onBlur:o,onFocus:l,htmlName:u}){const{inline:c=!1,enumOptions:f,enumDisabled:m,emptyValue:d}=r,p=ps(r),b=Array.isArray(i)?i:[i],k=V.useCallback(({target:v})=>o(e,_r(v==null?void 0:v.value,f,p,d)),[o,e,f,d,p]),g=V.useCallback(({target:v})=>l(e,_r(v==null?void 0:v.value,f,p,d)),[l,e,f,d,p]);return N.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((v,w)=>{const C=ua(v.value,b),h=Array.isArray(m)&&m.includes(v.value),y=t||h||n?"disabled":"",S=_=>{_.target.checked?s(Vk(w,b,f)):s(Uk(w,b,f))},A=N.jsxs("span",{children:[N.jsx("input",{type:"checkbox",id:Pl(e,w),name:u||e,checked:C,value:ms(v.value,w,p),disabled:t||h||n,autoFocus:a&&w===0,onChange:S,onBlur:k,onFocus:g,"aria-describedby":Rr(e)}),N.jsx("span",{children:v.label})]});return c?N.jsx("label",{className:`checkbox-inline ${y}`,children:A},String(v.value)):N.jsx("div",{className:`checkbox ${y}`,children:N.jsx("label",{children:A})},String(v.value))})})}function $2({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:s,label:o,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:f,onChange:m,registry:d,htmlName:p}){const b=ye("DescriptionFieldTemplate",d,r),k=$a(e),g=V.useCallback(S=>m(S.target.checked),[m]),v=V.useCallback(S=>c(i,S.target.checked),[c,i]),w=V.useCallback(S=>f(i,S.target.checked),[f,i]),y=me(t).widget==="checkbox"?void 0:r.description??e.description;return N.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`,children:[!l&&y&&N.jsx(b,{id:$n(i),description:y,schema:e,uiSchema:t,registry:d}),N.jsxs("label",{children:[N.jsx("input",{type:"checkbox",id:i,name:p||i,checked:typeof a>"u"?!1:a,required:k,disabled:n||s,autoFocus:u,onChange:g,onBlur:v,onFocus:w,"aria-describedby":Rr(i)}),pF(N.jsx("span",{children:o}),l)]})]})}function U2(e){const{disabled:t,readonly:r,options:i,registry:a}=e,n=ye("BaseInputTemplate",a,i);return N.jsx(n,{type:"color",...e,disabled:t||r})}function B2(e){const{onChange:t,value:r,options:i,registry:a}=e,n=ye("BaseInputTemplate",a,i);return N.jsx(n,{type:"datetime-local",...e,value:PF(r),onChange:s=>t(hF(s))})}function V2(e){const{onChange:t,options:r,registry:i}=e,a=ye("BaseInputTemplate",i,r),n=V.useCallback(s=>t(s||void 0),[t]);return N.jsx(a,{type:"date",...e,onChange:n})}function H2(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return N.jsx(i,{type:"email",...e})}function K2({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:i,type:a,name:n}=e;if(!i)return null;const s=r(_e.PreviewLabel);return["image/jpeg","image/png"].includes(a)?N.jsx("img",{src:i,alt:s,style:{maxWidth:"100%"},className:"file-preview"}):N.jsxs(N.Fragment,{children:[" ",N.jsx("a",{download:`preview-${n}`,href:i,className:"file-download",children:s})]})}function W2({filesInfo:e,registry:t,preview:r,onRemove:i,options:a}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:s}=ye("ButtonTemplates",t,a);return N.jsx("ul",{className:"file-info",children:e.map((o,l)=>{const{name:u,size:c,type:f}=o,m=()=>i(l);return N.jsxs("li",{children:[N.jsx(vs,{children:n(_e.FilesInfo,[u,f,String(c)])}),r&&N.jsx(K2,{fileInfo:o,registry:t}),N.jsx(s,{onClick:m,registry:t})]},l)})})}function G2(e){const{disabled:t,readonly:r,required:i,multiple:a,onChange:n,value:s,options:o,registry:l}=e,{filesInfo:u,handleChange:c,handleRemove:f}=_F(s,n,a),m=ye("BaseInputTemplate",l,o),d=p=>{p.target.files&&c(p.target.files)};return N.jsxs("div",{children:[N.jsx(m,{...e,disabled:t||r,type:"file",required:s?!1:i,onChangeOverride:d,value:"",accept:o.accept?String(o.accept):void 0}),N.jsx(W2,{filesInfo:u,onRemove:f,registry:l,preview:o.filePreview,options:o})]})}function J2({id:e,value:t,htmlName:r}){return N.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function Y2(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return N.jsx(i,{type:"password",...e})}function X2({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:s,onFocus:o,onChange:l,id:u,htmlName:c}){const{enumOptions:f,enumDisabled:m,inline:d,emptyValue:p}=e,b=ps(e),k=V.useCallback(({target:v})=>s(u,_r(v==null?void 0:v.value,f,b,p)),[s,f,p,u,b]),g=V.useCallback(({target:v})=>o(u,_r(v==null?void 0:v.value,f,b,p)),[o,f,p,u,b]);return N.jsx("div",{className:"field-radio-group",id:u,role:"radiogroup",children:Array.isArray(f)&&f.map((v,w)=>{const C=ua(v.value,t),h=Array.isArray(m)&&m.includes(v.value),y=i||h||a?"disabled":"",S=()=>l(v.value),A=N.jsxs("span",{children:[N.jsx("input",{type:"radio",id:Pl(u,w),checked:C,name:c||u,required:r,value:ms(v.value,w,b),disabled:i||h||a,autoFocus:n&&w===0,onChange:S,onBlur:k,onFocus:g,"aria-describedby":Rr(u)}),N.jsx("span",{children:v.label})]});return d?N.jsx("label",{className:`radio-inline ${y}`,children:A},String(v.value)):N.jsx("div",{className:`radio ${y}`,children:N.jsx("label",{children:A})},String(v.value))})})}function Z2(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return N.jsxs("div",{className:"field-range-wrapper",children:[N.jsx(r,{type:"range",...e}),N.jsx("span",{className:"range-view",children:t})]})}function Q2({id:e,value:t,required:r,disabled:i,readonly:a,autofocus:n,onChange:s,onFocus:o,onBlur:l,schema:u,options:c,htmlName:f}){const{stars:m=5,shape:d="star"}=c,p=u.maximum?Math.min(u.maximum,5):Math.min(Math.max(m,1),5),b=u.minimum||0,k=V.useCallback(C=>{!i&&!a&&s(C)},[s,i,a]),g=V.useCallback(C=>{if(o){const h=Number(C.target.dataset.value);o(e,h)}},[o,e]),v=V.useCallback(C=>{if(l){const h=Number(C.target.dataset.value);l(e,h)}},[l,e]),w=C=>d==="heart"?C?"♥":"♡":C?"★":"☆";return N.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:i||a?"default":"pointer"},children:[[...Array(p)].map((C,h)=>{const y=b+h,S=y<=t;return N.jsx("span",{onClick:()=>k(y),onKeyDown:A=>(A.key==="Enter"||A.key===" ")&&k(y),onFocus:g,onBlur:v,"data-value":y,tabIndex:i||a?-1:0,role:"radio","aria-checked":y===t,"aria-label":`${y} ${d==="heart"?"heart":"star"}${y===1?"":"s"}`,style:{color:S?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:w(S)},h)}),N.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:i||a,"aria-hidden":"true"})]})}function Wu(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function eL({schema:e,id:t,options:r,value:i,required:a,disabled:n,readonly:s,multiple:o=!1,autofocus:l=!1,onChange:u,onBlur:c,onFocus:f,placeholder:m,htmlName:d,registry:p,uiSchema:b}){const{enumOptions:k,enumDisabled:g,emptyValue:v}=r,w=o?[]:"",C=ps(r),h=V.useCallback(x=>{const E=Wu(x,o);return f(t,_r(E,k,C,v))},[f,t,o,k,v,C]),y=V.useCallback(x=>{const E=Wu(x,o);return c(t,_r(E,k,C,v))},[c,t,o,k,v,C]),S=V.useCallback(x=>{const E=Wu(x,o);return u(_r(E,k,C,v))},[u,o,k,v,C]),A=GN(i,k,o,C,w),_=!o&&e.default===void 0;return gF(t,e,k,o),N.jsxs(N.Fragment,{children:[N.jsx(bF,{id:t,multiple:o,options:r,registry:p,uiSchema:b,value:i}),N.jsxs("select",{id:t,name:d||t,multiple:o,className:"form-control",value:A,required:a,disabled:n||s,autoFocus:l,onBlur:y,onFocus:h,onChange:S,"aria-describedby":Rr(t),children:[_&&N.jsx("option",{value:"",children:m}),Array.isArray(k)&&k.map(({value:x,label:E},O)=>{const j=g&&g.includes(x);return N.jsx("option",{value:ms(x,O,C),disabled:j,children:E},String(x))})]})]})}function tL({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:s,autofocus:o=!1,onChange:l,onBlur:u,onFocus:c,htmlName:f}){const m=V.useCallback(({target:{value:b}})=>l(b===""?t.emptyValue:b),[l,t.emptyValue]),d=V.useCallback(({target:b})=>u(e,b==null?void 0:b.value),[u,e]),p=V.useCallback(({target:b})=>c(e,b==null?void 0:b.value),[e,c]);return N.jsx("textarea",{id:e,name:f||e,className:"form-control",value:i||"",placeholder:r,required:a,disabled:n,readOnly:s,autoFocus:o,rows:t.rows,onBlur:d,onFocus:p,onChange:m,"aria-describedby":Rr(e)})}function rL(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return N.jsx(i,{...e})}function nL(e){const{onChange:t,options:r,registry:i}=e,a=ye("BaseInputTemplate",i,r),n=V.useCallback(s=>t(s?`${s}:00`:void 0),[t]);return N.jsx(a,{type:"time",...e,onChange:n})}function iL(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return N.jsx(i,{type:"number",...e})}function aL(e){const{options:t,registry:r}=e,i=ye("BaseInputTemplate",r,t);return N.jsx(i,{type:"url",...e})}function sL(){return{AltDateWidget:q2,AltDateTimeWidget:L2,CheckboxWidget:$2,CheckboxesWidget:z2,ColorWidget:U2,DateWidget:V2,DateTimeWidget:B2,EmailWidget:H2,FileWidget:G2,HiddenWidget:J2,PasswordWidget:Y2,RadioWidget:X2,RangeWidget:Z2,RatingWidget:Q2,SelectWidget:eL,TextWidget:rL,TextareaWidget:tL,TimeWidget:nL,UpDownWidget:iL,URLWidget:aL}}function oL(){return{fields:QM(),templates:M2(),widgets:sL(),rootSchema:{},formContext:{},translateString:WN,globalFormOptions:{idPrefix:kb,idSeparator:wb,useFallbackUiForUnsupportedType:!1}}}function ji(e,t){return{...Lk(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}let lL=class ni extends V.Component{constructor(r){super(r);$t(this,"formElement");$t(this,"pendingChanges",[]);$t(this,"isProcessingUserChange",!1);$t(this,"getUsedFormData",(r,i)=>MN(r,i));$t(this,"getFieldNames",(r,i)=>LN(r,i));$t(this,"omitExtraData",r=>{const{schema:i,schemaUtils:a}=this.state;return a.omitExtraData(i,r)});$t(this,"setFieldValue",(r,i)=>{const{registry:a}=this.state,n=Array.isArray(r)?r:r.split("."),s=Tr("",a.globalFormOptions,n);this.onChange(i,n,void 0,s[nt])});$t(this,"onChange",(r,i,a,n)=>{this.pendingChanges.push({newValue:r,path:i,newErrorSchema:a,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});$t(this,"reset",()=>{const{formData:r,initialFormData:i=eg,onChange:a}=this.props,o={formData:this.getStateFromProps(this.props,r??i,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(o,()=>a==null?void 0:a(ji({...this.state,...o})))});$t(this,"onBlur",(r,i)=>{const{onBlur:a,omitExtraData:n,liveOmit:s,liveValidate:o}=this.props;if(a&&a(r,i),n===!0&&s==="onBlur"||o==="onBlur"){const{onChange:l,extraErrors:u}=this.props,{formData:c}=this.state;let f=c,m={formData:f};if(n===!0&&s==="onBlur"&&(f=this.omitExtraData(c),m={formData:f}),o==="onBlur"){const{schema:p,schemaUtils:b,errorSchema:k,customErrors:g,retrievedSchema:v}=this.state,w=this.liveValidate(p,b,k,f,u,g,v);m={formData:f,...w,customErrors:g}}const d=Object.keys(m).filter(p=>!p.startsWith("schemaValidation")).some(p=>{const b=ae(this.state,p),k=ae(m,p);return!ze(b,k)});this.setState(m,()=>{l&&d&&l(ji({...this.state,...m}),r)})}});$t(this,"onFocus",(r,i)=>{const{onFocus:a}=this.props;a&&a(r,i)});$t(this,"onSubmit",r=>{if(r.preventDefault(),r.target!==r.currentTarget)return;r.persist();const{omitExtraData:i,extraErrors:a,noValidate:n,onSubmit:s}=this.props;let{formData:o}=this.state;if(i===!0&&(o=this.omitExtraData(o)),n||this.validateFormWithFormData(o)){const l=a||{},u=a?_d(a):[];this.setState({formData:o,errors:u,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(ji({...this.state,formData:o},"submitted"),r)})}});$t(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});$t(this,"validateFormWithFormData",r=>{const{extraErrors:i,extraErrorsBlockSubmit:a,focusOnFirstError:n,onError:s}=this.props,{errors:o}=this.state,l=this.validate(r),{errors:u,errorSchema:c}=i?ni.mergeErrors(l,i):l,f=l.errors.length>0||i&&a;return f?(n&&(typeof n=="function"?n(u[0]):this.focusOnError(u[0])),this.setState({errors:u,errorSchema:c,schemaValidationErrors:l.errors,schemaValidationErrorSchema:l.errorSchema},()=>{s?s(u):console.error("Form validation failed",u)})):u.length>0?this.setState({errors:u,errorSchema:c,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):o.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}}),!f});if(!r.validator)throw new Error("A validator is required for Form functionality to work");const{formData:i,initialFormData:a,onChange:n}=r,s=i??a;this.state={...this.getStateFromProps(r,s,void 0,void 0,void 0,!0),prevExtraErrors:r.extraErrors},n&&!ze(this.state.formData,s)&&n(ji(this.state)),this.formElement=V.createRef()}static getDerivedStateFromProps(r,i){if(r.extraErrors!==i.prevExtraErrors){const a={errors:i.schemaValidationErrors||[],errorSchema:i.schemaValidationErrorSchema||{}};let{errors:n,errorSchema:s}=a;return r.extraErrors&&({errors:n,errorSchema:s}=Ra(a,r.extraErrors)),i.customErrors&&({errors:n,errorSchema:s}=Ra({errors:n,errorSchema:s},i.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:s}}return null}getSnapshotBeforeUpdate(r,i){if(!ze(this.props,r)){const a=lh(this.props.formData,r.formData),n=lh(this.props.formData,this.state.formData),s=!ze(r.schema,this.props.schema),o=a.length>0||!ze(r.formData,this.props.formData),l=n.length>0||!ze(this.state.formData,this.props.formData),u=this.getStateFromProps(this.props,this.props.formData,s||o?void 0:this.state.retrievedSchema,s,a,!l),c=!ze(u,i);return{nextState:u,shouldUpdate:c}}return{shouldUpdate:!1}}componentDidUpdate(r,i,a){if(a.shouldUpdate){const{nextState:n}=a,s=!ze(n.formData,this.props.formData),o=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,o&&s)return;s&&!ze(n.formData,i.formData)&&this.props.onChange&&this.props.onChange(ji(n)),this.setState(n)}}getStateFromProps(r,i,a,n=!1,s=[],o=!1,l=!1){var te;const u=this.state||{},c="schema"in r?r.schema:this.props.schema,f="validator"in r?r.validator:this.props.validator,m=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},d=r.formData===void 0&&this.props.formData===void 0,p=typeof i<"u",b="liveValidate"in r?r.liveValidate:this.props.liveValidate,k=p&&!r.noValidate&&b,g="experimental_defaultFormStateBehavior"in r?r.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,v="experimental_customMergeAllOf"in r?r.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let{schemaUtils:w}=u;(!w||w.doesSchemaUtilsDiffer(f,c,g,v))&&(w=VN(f,c,g,v));const C=w.getRootSchema();let h=i;i===eg?h=void 0:i===void 0&&d&&(h=u.formData);let y,S,A=!1;const _=[];do{y=w.getDefaultFormState(C,h,!1,u.initialDefaultsGenerated);const P=l?fr({formData:y}):"";if(S=this.updateRetrievedSchema(a??w.retrieveSchema(C,y)),l&&!_.includes(P)&&!ze(S,u.retrievedSchema)){const D=w.sanitizeDataForNewSchema(S,u.retrievedSchema,y);if(A=!ze(D,y),A){y=D,h=D;const U=fr({formData:D});A=!_.includes(U),_.push(U)}_.push(P)}else A=!1}while(A);const x=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:u.errors||[],errorSchema:u.errorSchema||{}}:{errors:u.schemaValidationErrors||[],errorSchema:u.schemaValidationErrorSchema||{}};let E,O,{schemaValidationErrors:j,schemaValidationErrorSchema:T}=u;if(k&&!o){const P=this.liveValidate(C,w,u.errorSchema,y,void 0,u.customErrors,a,a!==void 0);E=P.errors,O=P.errorSchema,j=P.schemaValidationErrors,T=P.schemaValidationErrorSchema}else{const P=x();if(E=P.errors,O=P.errorSchema,s.length>0&&!k){const U=s.reduce((I,R)=>(I[R]=void 0,I),{});T=Fn(P.errorSchema,U,"preventDuplicates"),O=T}const D=ni.mergeErrors({errorSchema:O,errors:E},r.extraErrors,u.customErrors);E=D.errors,O=D.errorSchema}const F=ni.getRegistry(r,C,w),q=ze(u.registry,F)?u.registry:F,J=u.fieldPathId&&((te=u.fieldPathId)==null?void 0:te[nt])===q.globalFormOptions.idPrefix?u.fieldPathId:Tr("",q.globalFormOptions);return{schemaUtils:w,schema:C,uiSchema:m,fieldPathId:J,formData:y,edit:p,errors:E,errorSchema:O,schemaValidationErrors:j,schemaValidationErrorSchema:T,retrievedSchema:S,initialDefaultsGenerated:!0,registry:q}}shouldComponentUpdate(r,i){const{experimental_componentUpdateStrategy:a="customDeep"}=this.props;return kF(this,r,i,a)}validate(r,i=this.state.schema,a,n){const s=a||this.state.schemaUtils,{customValidate:o,transformErrors:l,uiSchema:u}=this.props,c=n??i,f=r?JSON.parse(JSON.stringify(r)):void 0;return s.getValidator().validateFormData(f,c,o,l,u)}renderErrors(r){const{errors:i,errorSchema:a,schema:n,uiSchema:s}=this.state,o=me(s),l=ye("ErrorListTemplate",r,o);return i!=null&&i.length?N.jsx(l,{errors:i,errorSchema:a||{},schema:n,uiSchema:s,registry:r}):null}static mergeErrors(r,i,a){let{errorSchema:n,errors:s}=r;if(i){const o=Ra(r,i);n=o.errorSchema,s=o.errors}if(a){const o=Ra({errors:s,errorSchema:n},a.ErrorSchema,!0);n=o.errorSchema,s=o.errors}return{errors:s,errorSchema:n}}liveValidate(r,i,a,n,s,o,l,u=!1){const c=this.validate(n,r,i,l),{errors:f}=c;let{errorSchema:m}=c;u&&(m=Fn(a,c.errorSchema,"preventDuplicates"));const d=f,p=m;return{...ni.mergeErrors({errorSchema:m,errors:f},s,o),schemaValidationErrors:d,schemaValidationErrorSchema:p}}processPendingChange(){if(this.pendingChanges.length===0)return;this.isProcessingUserChange=!0;const{newValue:r,path:i,id:a}=this.pendingChanges[0],{newErrorSchema:n}=this.pendingChanges[0],{extraErrors:s,omitExtraData:o,liveOmit:l,noValidate:u,liveValidate:c,onChange:f,disabled:m,readonly:d}=this.props,{formData:p,schemaUtils:b,schema:k,fieldPathId:g,schemaValidationErrorSchema:v,errors:w}=this.state;let{customErrors:C,retrievedSchema:h}=this.state,y=v;const S=g.path[0]||"",A=!i||i.length===0||i.length===1&&i[0]===S;let _=A?r:el(p);const x=be(_)&&Object.keys(_).length>0&&Object.values(_).every(q=>q===void 0),E=p==null,O=x&&E?void 0:_;if(be(_)||Array.isArray(_)){let q=!1;if(r===g1)RF(_,i);else if(!A){let te=r;if(r===void 0)if(typeof i[i.length-1]=="number")te=null;else{const{field:D}=b.findFieldInSchema(k,i,p),U=D;!(U&&(Ae in U||Le in U))&&U!==void 0&&(q=!0)}q?lt(_,i,void 0):lt(_,i,te)}const J=h&&!A&&!be(r)&&!Array.isArray(r)&&!m&&!d,Y=this.getStateFromProps(this.props,O,void 0,void 0,void 0,!0,J);_=Y.formData,h=Y.retrievedSchema,q&&_&<(_,i,void 0)}const j=!u&&(c===!0||c==="onChange");let T={formData:_,retrievedSchema:h},F=_;if(o===!0&&(l===!0||l==="onChange")&&(F=this.omitExtraData(_),T={...T,formData:F}),n){const q=A?v:ae(v,i);if(!wt(q))A?y=n:(y=el(v),lt(y,i,n));else if(C||(C=new Hk),A){const J=ae(n,Nt);J&&C.setErrors(J)}else lt(C.ErrorSchema,i,n)}else C&&ae(C.ErrorSchema,[...i,Nt])&&C.clearErrors(i);if(j&&this.pendingChanges.length===1){const q=this.liveValidate(k,b,y,F,s,C,h);T={...T,formData:F,...q,customErrors:C}}else if(!u&&n){const q=ni.mergeErrors({errorSchema:y,errors:w},s,C);T={...T,formData:F,...q,customErrors:C}}this.setState(T,()=>{f&&f(ji({...this.state,...T}),a),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var a;return ze(r,(a=this.state)==null?void 0:a.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:i={},experimental_componentUpdateStrategy:a,idSeparator:n=wb,idPrefix:s=kb,nameGenerator:o,useFallbackUiForUnsupportedType:l=!1}=r;return{idPrefix:i["ui:rootFieldId"]||s,idSeparator:n,useFallbackUiForUnsupportedType:l,...a!==void 0&&{experimental_componentUpdateStrategy:a},...o!==void 0&&{nameGenerator:o}}}static getRegistry(r,i,a){var m;const{translateString:n,uiSchema:s={}}=r,{fields:o,templates:l,widgets:u,formContext:c,translateString:f}=oL();return{fields:{...o,...r.fields},templates:{...l,...r.templates,ButtonTemplates:{...l.ButtonTemplates,...(m=r.templates)==null?void 0:m.ButtonTemplates}},widgets:{...u,...r.widgets},rootSchema:i,formContext:r.formContext||c,schemaUtils:a,translateString:n||f,globalUiOptions:s[Yc],globalFormOptions:ni.getGlobalFormOptions(r),uiSchemaDefinitions:s[t_]??{}}}focusOnError(r){const{idPrefix:i="root",idSeparator:a="_"}=this.props,{property:n}=r,s=Yk(n);s[0]===""?s[0]=i:s.unshift(i);const o=s.join(a);let l=this.formElement.current.elements[o];l||(l=this.formElement.current.querySelector(`input[id^="${o}"], button[id^="${o}"]`)),l!=null&&l.length&&(l=l[0]),l&&l.focus()}validateForm(){const{omitExtraData:r}=this.props;let{formData:i}=this.state;return r===!0&&(i=this.omitExtraData(i)),this.validateFormWithFormData(i)}render(){const{children:r,id:i,className:a="",tagName:n,name:s,method:o,target:l,action:u,autoComplete:c,enctype:f,acceptCharset:m,noHtml5Validate:d=!1,disabled:p,readonly:b,showErrorList:k="top",_internalFormWrapper:g}=this.props,{schema:v,uiSchema:w,formData:C,errorSchema:h,fieldPathId:y,registry:S}=this.state,{SchemaField:A}=S.fields,{SubmitButton:_}=S.templates.ButtonTemplates,x=g?n:void 0,E=g||n||"form";let{[Go]:O={}}=me(w);p&&(O={...O,props:{...O.props,disabled:!0}});const j={[Cn]:{[Go]:O}};return N.jsxs(E,{className:a||"rjsf",id:i,name:s,method:o,target:l,action:u,autoComplete:c,encType:f,acceptCharset:m,noValidate:d,onSubmit:this.onSubmit,as:x,ref:this.formElement,children:[k==="top"&&this.renderErrors(S),N.jsx(A,{name:"",schema:v,uiSchema:w,errorSchema:h,fieldPathId:y,formData:C,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:S,disabled:p,readonly:b}),r||N.jsx(_,{uiSchema:j,registry:S}),k==="bottom"&&this.renderErrors(S)]})}};function uL(e,t="none"){return t==="all"?e:e.reduce((r,i)=>{const{message:a,schemaPath:n}=i,s=t!=="anyOf"?n==null?void 0:n.indexOf(`/${Le}/`):void 0,o=t!=="oneOf"?n==null?void 0:n.indexOf(`/${Ae}/`):void 0;let l;return s&&s>=0?l=n==null?void 0:n.substring(0,s):o&&o>=0&&(l=n==null?void 0:n.substring(0,o)),(l?r.find(c=>{var f;return c.message===a&&((f=c.schemaPath)===null||f===void 0?void 0:f.startsWith(l))}):void 0)||r.push(i),r},[])}function cL(e=[],t,r,i){const a=e.map(n=>{var s;const{instancePath:o,keyword:l,params:u,schemaPath:c,parentSchema:f,...m}=n;let{message:d=""}=m,p=o.replace(/\//g,"."),b=`${p} ${d}`.trim(),k="";const g=[...((s=u.deps)===null||s===void 0?void 0:s.split(", "))||[],u.missingProperty,u.property].filter(v=>v);if(g.length>0)g.forEach(v=>{const w=p?`${p}.${v}`:v;let C=me(ae(t,w.replace(/^\./,""))).title;if(C===void 0){const h=c.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([v]);C=me(ae(t,h)).title}if(C===void 0){const h=p.replace(/^\./,"").split(".").filter(Boolean);C=ae(t,[...h,v,"title"])}if(C)d=d.replace(`'${v}'`,`'${C}'`),k=C;else{const h=ae(f,[$e,v,"title"]);if(h)d=d.replace(`'${v}'`,`'${h}'`),k=h;else if(i){const y=p.replace(/^\./,"").split(".").filter(Boolean),S=[];for(const _ of y)S.push($e,_);S.push($e,v,"title");const A=ae(i,S);A&&(d=d.replace(`'${v}'`,`'${A}'`),k=A)}}}),b=d;else{const v=me(ae(t,p.replace(/^\./,""))).title;if(v)b=`'${v}' ${d}`.trim(),k=v;else{const w=f==null?void 0:f.title;w&&(b=`'${w}' ${d}`.trim(),k=w)}}return"missingProperty"in u&&(p=p?`${p}.${u.missingProperty}`:u.missingProperty),{name:l,property:p,message:d,params:u,stack:b,schemaPath:c,title:k}});return uL(a,r)}function fL(e,t,r,i,a,n,s,o){const{validationError:l}=t;let u=cL(t.errors,s,o,i);l&&(u=[...u,{stack:l.message}]),typeof n=="function"&&(u=n(u,s));let c=wF(u);if(l&&(c={...c,$schema:{__errors:[l.message]}}),typeof a!="function")return{errors:u,errorSchema:c};const f=Nk(e,i,r,i,!0),m=a(f,Xc(f),s,c),d=Xk(m);return Ra({errors:u,errorSchema:c},d)}var $s={exports:{}},Gu={},Zr={},Zn={},Ju={},Yu={},Xu={},rg;function ol(){return rg||(rg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(v){if(super(),!e.IDENTIFIER.test(v))throw new Error("CodeGen: name must be a valid identifier");this.str=v}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class i extends t{constructor(v){super(),this._items=typeof v=="string"?[v]:v}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const v=this._items[0];return v===""||v==='""'}get str(){var v;return(v=this._str)!==null&&v!==void 0?v:this._str=this._items.reduce((w,C)=>`${w}${C}`,"")}get names(){var v;return(v=this._names)!==null&&v!==void 0?v:this._names=this._items.reduce((w,C)=>(C instanceof r&&(w[C.str]=(w[C.str]||0)+1),w),{})}}e._Code=i,e.nil=new i("");function a(g,...v){const w=[g[0]];let C=0;for(;C<v.length;)o(w,v[C]),w.push(g[++C]);return new i(w)}e._=a;const n=new i("+");function s(g,...v){const w=[d(g[0])];let C=0;for(;C<v.length;)w.push(n),o(w,v[C]),w.push(n,d(g[++C]));return l(w),new i(w)}e.str=s;function o(g,v){v instanceof i?g.push(...v._items):v instanceof r?g.push(v):g.push(f(v))}e.addCodeArg=o;function l(g){let v=1;for(;v<g.length-1;){if(g[v]===n){const w=u(g[v-1],g[v+1]);if(w!==void 0){g.splice(v-1,3,w);continue}g[v++]="+"}v++}}function u(g,v){if(v==='""')return g;if(g==='""')return v;if(typeof g=="string")return v instanceof r||g[g.length-1]!=='"'?void 0:typeof v!="string"?`${g.slice(0,-1)}${v}"`:v[0]==='"'?g.slice(0,-1)+v.slice(1):void 0;if(typeof v=="string"&&v[0]==='"'&&!(g instanceof r))return`"${g}${v.slice(1)}`}function c(g,v){return v.emptyStr()?g:g.emptyStr()?v:s`${g}${v}`}e.strConcat=c;function f(g){return typeof g=="number"||typeof g=="boolean"||g===null?g:d(Array.isArray(g)?g.join(","):g)}function m(g){return new i(d(g))}e.stringify=m;function d(g){return JSON.stringify(g).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function p(g){return typeof g=="string"&&e.IDENTIFIER.test(g)?new i(`.${g}`):a`[${g}]`}e.getProperty=p;function b(g){if(typeof g=="string"&&e.IDENTIFIER.test(g))return new i(`${g}`);throw new Error(`CodeGen: invalid export name: ${g}, use explicit $id name mapping`)}e.getEsmExportName=b;function k(g){return new i(g.toString())}e.regexpCode=k})(Xu)),Xu}var Zu={},ng;function ig(){return ng||(ng=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ol();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var i;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(i||(e.UsedValueState=i={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class a{constructor({prefixes:u,parent:c}={}){this._names={},this._prefixes=u,this._parent=c}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const c=this._names[u]||this._nameGroup(u);return`${u}${c.index++}`}_nameGroup(u){var c,f;if(!((f=(c=this._parent)===null||c===void 0?void 0:c._prefixes)===null||f===void 0)&&f.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=a;class n extends t.Name{constructor(u,c){super(c),this.prefix=u}setValue(u,{property:c,itemIndex:f}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(c)}[${f}]`}}e.ValueScopeName=n;const s=(0,t._)`\n`;class o extends a{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?s:t.nil}}get(){return this._scope}name(u){return new n(u,this._newName(u))}value(u,c){var f;if(c.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const m=this.toName(u),{prefix:d}=m,p=(f=c.key)!==null&&f!==void 0?f:c.ref;let b=this._values[d];if(b){const v=b.get(p);if(v)return v}else b=this._values[d]=new Map;b.set(p,m);const k=this._scope[d]||(this._scope[d]=[]),g=k.length;return k[g]=c.ref,m.setValue(c,{property:d,itemIndex:g}),m}getValue(u,c){const f=this._values[u];if(f)return f.get(c)}scopeRefs(u,c=this._values){return this._reduceValues(c,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${u}${f.scopePath}`})}scopeCode(u=this._values,c,f){return this._reduceValues(u,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},c,f)}_reduceValues(u,c,f={},m){let d=t.nil;for(const p in u){const b=u[p];if(!b)continue;const k=f[p]=f[p]||new Map;b.forEach(g=>{if(k.has(g))return;k.set(g,i.Started);let v=c(g);if(v){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${w} ${g} = ${v};${this.opts._n}`}else if(v=m==null?void 0:m(g))d=(0,t._)`${d}${v}${this.opts._n}`;else throw new r(g);k.set(g,i.Completed)})}return d}}e.ValueScope=o})(Zu)),Zu}var ag;function Ne(){return ag||(ag=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=ol(),r=ig();var i=ol();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return i.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return i.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return i.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return i.Name}});var a=ig();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class n{optimizeNodes(){return this}optimizeNames(R,M){return this}}class s extends n{constructor(R,M,z){super(),this.varKind=R,this.name=M,this.rhs=z}render({es5:R,_n:M}){const z=R?r.varKinds.var:this.varKind,B=this.rhs===void 0?"":` = ${this.rhs}`;return`${z} ${this.name}${B};`+M}optimizeNames(R,M){if(R[this.name.str])return this.rhs&&(this.rhs=T(this.rhs,R,M)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends n{constructor(R,M,z){super(),this.lhs=R,this.rhs=M,this.sideEffects=z}render({_n:R}){return`${this.lhs} = ${this.rhs};`+R}optimizeNames(R,M){if(!(this.lhs instanceof t.Name&&!R[this.lhs.str]&&!this.sideEffects))return this.rhs=T(this.rhs,R,M),this}get names(){const R=this.lhs instanceof t.Name?{}:{...this.lhs.names};return j(R,this.rhs)}}class l extends o{constructor(R,M,z,B){super(R,z,B),this.op=M}render({_n:R}){return`${this.lhs} ${this.op}= ${this.rhs};`+R}}class u extends n{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`${this.label}:`+R}}class c extends n{constructor(R){super(),this.label=R,this.names={}}render({_n:R}){return`break${this.label?` ${this.label}`:""};`+R}}class f extends n{constructor(R){super(),this.error=R}render({_n:R}){return`throw ${this.error};`+R}get names(){return this.error.names}}class m extends n{constructor(R){super(),this.code=R}render({_n:R}){return`${this.code};`+R}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(R,M){return this.code=T(this.code,R,M),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends n{constructor(R=[]){super(),this.nodes=R}render(R){return this.nodes.reduce((M,z)=>M+z.render(R),"")}optimizeNodes(){const{nodes:R}=this;let M=R.length;for(;M--;){const z=R[M].optimizeNodes();Array.isArray(z)?R.splice(M,1,...z):z?R[M]=z:R.splice(M,1)}return R.length>0?this:void 0}optimizeNames(R,M){const{nodes:z}=this;let B=z.length;for(;B--;){const H=z[B];H.optimizeNames(R,M)||(F(R,H.names),z.splice(B,1))}return z.length>0?this:void 0}get names(){return this.nodes.reduce((R,M)=>O(R,M.names),{})}}class p extends d{render(R){return"{"+R._n+super.render(R)+"}"+R._n}}class b extends d{}class k extends p{}k.kind="else";class g extends p{constructor(R,M){super(M),this.condition=R}render(R){let M=`if(${this.condition})`+super.render(R);return this.else&&(M+="else "+this.else.render(R)),M}optimizeNodes(){super.optimizeNodes();const R=this.condition;if(R===!0)return this.nodes;let M=this.else;if(M){const z=M.optimizeNodes();M=this.else=Array.isArray(z)?new k(z):z}if(M)return R===!1?M instanceof g?M:M.nodes:this.nodes.length?this:new g(q(R),M instanceof g?[M]:M.nodes);if(!(R===!1||!this.nodes.length))return this}optimizeNames(R,M){var z;if(this.else=(z=this.else)===null||z===void 0?void 0:z.optimizeNames(R,M),!!(super.optimizeNames(R,M)||this.else))return this.condition=T(this.condition,R,M),this}get names(){const R=super.names;return j(R,this.condition),this.else&&O(R,this.else.names),R}}g.kind="if";class v extends p{}v.kind="for";class w extends v{constructor(R){super(),this.iteration=R}render(R){return`for(${this.iteration})`+super.render(R)}optimizeNames(R,M){if(super.optimizeNames(R,M))return this.iteration=T(this.iteration,R,M),this}get names(){return O(super.names,this.iteration.names)}}class C extends v{constructor(R,M,z,B){super(),this.varKind=R,this.name=M,this.from=z,this.to=B}render(R){const M=R.es5?r.varKinds.var:this.varKind,{name:z,from:B,to:H}=this;return`for(${M} ${z}=${B}; ${z}<${H}; ${z}++)`+super.render(R)}get names(){const R=j(super.names,this.from);return j(R,this.to)}}class h extends v{constructor(R,M,z,B){super(),this.loop=R,this.varKind=M,this.name=z,this.iterable=B}render(R){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(R)}optimizeNames(R,M){if(super.optimizeNames(R,M))return this.iterable=T(this.iterable,R,M),this}get names(){return O(super.names,this.iterable.names)}}class y extends p{constructor(R,M,z){super(),this.name=R,this.args=M,this.async=z}render(R){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(R)}}y.kind="func";class S extends d{render(R){return"return "+super.render(R)}}S.kind="return";class A extends p{render(R){let M="try"+super.render(R);return this.catch&&(M+=this.catch.render(R)),this.finally&&(M+=this.finally.render(R)),M}optimizeNodes(){var R,M;return super.optimizeNodes(),(R=this.catch)===null||R===void 0||R.optimizeNodes(),(M=this.finally)===null||M===void 0||M.optimizeNodes(),this}optimizeNames(R,M){var z,B;return super.optimizeNames(R,M),(z=this.catch)===null||z===void 0||z.optimizeNames(R,M),(B=this.finally)===null||B===void 0||B.optimizeNames(R,M),this}get names(){const R=super.names;return this.catch&&O(R,this.catch.names),this.finally&&O(R,this.finally.names),R}}class _ extends p{constructor(R){super(),this.error=R}render(R){return`catch(${this.error})`+super.render(R)}}_.kind="catch";class x extends p{render(R){return"finally"+super.render(R)}}x.kind="finally";class E{constructor(R,M={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...M,_n:M.lines?`
|
|
125
|
+
`:""},this._extScope=R,this._scope=new r.Scope({parent:R}),this._nodes=[new b]}toString(){return this._root.render(this.opts)}name(R){return this._scope.name(R)}scopeName(R){return this._extScope.name(R)}scopeValue(R,M){const z=this._extScope.value(R,M);return(this._values[z.prefix]||(this._values[z.prefix]=new Set)).add(z),z}getScopeValue(R,M){return this._extScope.getValue(R,M)}scopeRefs(R){return this._extScope.scopeRefs(R,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(R,M,z,B){const H=this._scope.toName(M);return z!==void 0&&B&&(this._constants[H.str]=z),this._leafNode(new s(R,H,z)),H}const(R,M,z){return this._def(r.varKinds.const,R,M,z)}let(R,M,z){return this._def(r.varKinds.let,R,M,z)}var(R,M,z){return this._def(r.varKinds.var,R,M,z)}assign(R,M,z){return this._leafNode(new o(R,M,z))}add(R,M){return this._leafNode(new l(R,e.operators.ADD,M))}code(R){return typeof R=="function"?R():R!==t.nil&&this._leafNode(new m(R)),this}object(...R){const M=["{"];for(const[z,B]of R)M.length>1&&M.push(","),M.push(z),(z!==B||this.opts.es5)&&(M.push(":"),(0,t.addCodeArg)(M,B));return M.push("}"),new t._Code(M)}if(R,M,z){if(this._blockNode(new g(R)),M&&z)this.code(M).else().code(z).endIf();else if(M)this.code(M).endIf();else if(z)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(R){return this._elseNode(new g(R))}else(){return this._elseNode(new k)}endIf(){return this._endBlockNode(g,k)}_for(R,M){return this._blockNode(R),M&&this.code(M).endFor(),this}for(R,M){return this._for(new w(R),M)}forRange(R,M,z,B,H=this.opts.es5?r.varKinds.var:r.varKinds.let){const G=this._scope.toName(R);return this._for(new C(H,G,M,z),()=>B(G))}forOf(R,M,z,B=r.varKinds.const){const H=this._scope.toName(R);if(this.opts.es5){const G=M instanceof t.Name?M:this.var("_arr",M);return this.forRange("_i",0,(0,t._)`${G}.length`,X=>{this.var(H,(0,t._)`${G}[${X}]`),z(H)})}return this._for(new h("of",B,H,M),()=>z(H))}forIn(R,M,z,B=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(R,(0,t._)`Object.keys(${M})`,z);const H=this._scope.toName(R);return this._for(new h("in",B,H,M),()=>z(H))}endFor(){return this._endBlockNode(v)}label(R){return this._leafNode(new u(R))}break(R){return this._leafNode(new c(R))}return(R){const M=new S;if(this._blockNode(M),this.code(R),M.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(R,M,z){if(!M&&!z)throw new Error('CodeGen: "try" without "catch" and "finally"');const B=new A;if(this._blockNode(B),this.code(R),M){const H=this.name("e");this._currNode=B.catch=new _(H),M(H)}return z&&(this._currNode=B.finally=new x,this.code(z)),this._endBlockNode(_,x)}throw(R){return this._leafNode(new f(R))}block(R,M){return this._blockStarts.push(this._nodes.length),R&&this.code(R).endBlock(M),this}endBlock(R){const M=this._blockStarts.pop();if(M===void 0)throw new Error("CodeGen: not in self-balancing block");const z=this._nodes.length-M;if(z<0||R!==void 0&&z!==R)throw new Error(`CodeGen: wrong number of nodes: ${z} vs ${R} expected`);return this._nodes.length=M,this}func(R,M=t.nil,z,B){return this._blockNode(new y(R,M,z)),B&&this.code(B).endFunc(),this}endFunc(){return this._endBlockNode(y)}optimize(R=1){for(;R-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(R){return this._currNode.nodes.push(R),this}_blockNode(R){this._currNode.nodes.push(R),this._nodes.push(R)}_endBlockNode(R,M){const z=this._currNode;if(z instanceof R||M&&z instanceof M)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${M?`${R.kind}/${M.kind}`:R.kind}"`)}_elseNode(R){const M=this._currNode;if(!(M instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=M.else=R,this}get _root(){return this._nodes[0]}get _currNode(){const R=this._nodes;return R[R.length-1]}set _currNode(R){const M=this._nodes;M[M.length-1]=R}}e.CodeGen=E;function O(I,R){for(const M in R)I[M]=(I[M]||0)+(R[M]||0);return I}function j(I,R){return R instanceof t._CodeOrName?O(I,R.names):I}function T(I,R,M){if(I instanceof t.Name)return z(I);if(!B(I))return I;return new t._Code(I._items.reduce((H,G)=>(G instanceof t.Name&&(G=z(G)),G instanceof t._Code?H.push(...G._items):H.push(G),H),[]));function z(H){const G=M[H.str];return G===void 0||R[H.str]!==1?H:(delete R[H.str],G)}function B(H){return H instanceof t._Code&&H._items.some(G=>G instanceof t.Name&&R[G.str]===1&&M[G.str]!==void 0)}}function F(I,R){for(const M in R)I[M]=(I[M]||0)-(R[M]||0)}function q(I){return typeof I=="boolean"||typeof I=="number"||I===null?!I:(0,t._)`!${U(I)}`}e.not=q;const J=D(e.operators.AND);function Y(...I){return I.reduce(J)}e.and=Y;const te=D(e.operators.OR);function P(...I){return I.reduce(te)}e.or=P;function D(I){return(R,M)=>R===t.nil?M:M===t.nil?R:(0,t._)`${U(R)} ${I} ${U(M)}`}function U(I){return I instanceof t.Name?I:(0,t._)`(${I})`}})(Yu)),Yu}var Ie={},sg;function We(){if(sg)return Ie;sg=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.checkStrictMode=Ie.getErrorPath=Ie.Type=Ie.useFunc=Ie.setEvaluated=Ie.evaluatedPropsToName=Ie.mergeEvaluated=Ie.eachItem=Ie.unescapeJsonPointer=Ie.escapeJsonPointer=Ie.escapeFragment=Ie.unescapeFragment=Ie.schemaRefOrVal=Ie.schemaHasRulesButRef=Ie.schemaHasRules=Ie.checkUnknownRules=Ie.alwaysValidSchema=Ie.toHash=void 0;const e=Ne(),t=ol();function r(h){const y={};for(const S of h)y[S]=!0;return y}Ie.toHash=r;function i(h,y){return typeof y=="boolean"?y:Object.keys(y).length===0?!0:(a(h,y),!n(y,h.self.RULES.all))}Ie.alwaysValidSchema=i;function a(h,y=h.schema){const{opts:S,self:A}=h;if(!S.strictSchema||typeof y=="boolean")return;const _=A.RULES.keywords;for(const x in y)_[x]||C(h,`unknown keyword: "${x}"`)}Ie.checkUnknownRules=a;function n(h,y){if(typeof h=="boolean")return!h;for(const S in h)if(y[S])return!0;return!1}Ie.schemaHasRules=n;function s(h,y){if(typeof h=="boolean")return!h;for(const S in h)if(S!=="$ref"&&y.all[S])return!0;return!1}Ie.schemaHasRulesButRef=s;function o({topSchemaRef:h,schemaPath:y},S,A,_){if(!_){if(typeof S=="number"||typeof S=="boolean")return S;if(typeof S=="string")return(0,e._)`${S}`}return(0,e._)`${h}${y}${(0,e.getProperty)(A)}`}Ie.schemaRefOrVal=o;function l(h){return f(decodeURIComponent(h))}Ie.unescapeFragment=l;function u(h){return encodeURIComponent(c(h))}Ie.escapeFragment=u;function c(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}Ie.escapeJsonPointer=c;function f(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}Ie.unescapeJsonPointer=f;function m(h,y){if(Array.isArray(h))for(const S of h)y(S);else y(h)}Ie.eachItem=m;function d({mergeNames:h,mergeToName:y,mergeValues:S,resultToName:A}){return(_,x,E,O)=>{const j=E===void 0?x:E instanceof e.Name?(x instanceof e.Name?h(_,x,E):y(_,x,E),E):x instanceof e.Name?(y(_,E,x),x):S(x,E);return O===e.Name&&!(j instanceof e.Name)?A(_,j):j}}Ie.mergeEvaluated={props:d({mergeNames:(h,y,S)=>h.if((0,e._)`${S} !== true && ${y} !== undefined`,()=>{h.if((0,e._)`${y} === true`,()=>h.assign(S,!0),()=>h.assign(S,(0,e._)`${S} || {}`).code((0,e._)`Object.assign(${S}, ${y})`))}),mergeToName:(h,y,S)=>h.if((0,e._)`${S} !== true`,()=>{y===!0?h.assign(S,!0):(h.assign(S,(0,e._)`${S} || {}`),b(h,S,y))}),mergeValues:(h,y)=>h===!0?!0:{...h,...y},resultToName:p}),items:d({mergeNames:(h,y,S)=>h.if((0,e._)`${S} !== true && ${y} !== undefined`,()=>h.assign(S,(0,e._)`${y} === true ? true : ${S} > ${y} ? ${S} : ${y}`)),mergeToName:(h,y,S)=>h.if((0,e._)`${S} !== true`,()=>h.assign(S,y===!0?!0:(0,e._)`${S} > ${y} ? ${S} : ${y}`)),mergeValues:(h,y)=>h===!0?!0:Math.max(h,y),resultToName:(h,y)=>h.var("items",y)})};function p(h,y){if(y===!0)return h.var("props",!0);const S=h.var("props",(0,e._)`{}`);return y!==void 0&&b(h,S,y),S}Ie.evaluatedPropsToName=p;function b(h,y,S){Object.keys(S).forEach(A=>h.assign((0,e._)`${y}${(0,e.getProperty)(A)}`,!0))}Ie.setEvaluated=b;const k={};function g(h,y){return h.scopeValue("func",{ref:y,code:k[y.code]||(k[y.code]=new t._Code(y.code))})}Ie.useFunc=g;var v;(function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"})(v||(Ie.Type=v={}));function w(h,y,S){if(h instanceof e.Name){const A=y===v.Num;return S?A?(0,e._)`"[" + ${h} + "]"`:(0,e._)`"['" + ${h} + "']"`:A?(0,e._)`"/" + ${h}`:(0,e._)`"/" + ${h}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return S?(0,e.getProperty)(h).toString():"/"+c(h)}Ie.getErrorPath=w;function C(h,y,S=h.opts.strictSchema){if(S){if(y=`strict mode: ${y}`,S===!0)throw new Error(y);h.self.logger.warn(y)}}return Ie.checkStrictMode=C,Ie}var Us={},og;function Un(){if(og)return Us;og=1,Object.defineProperty(Us,"__esModule",{value:!0});const e=Ne(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Us.default=t,Us}var lg;function Nl(){return lg||(lg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Ne(),r=We(),i=Un();e.keywordError={message:({keyword:k})=>(0,t.str)`must pass "${k}" keyword validation`},e.keyword$DataError={message:({keyword:k,schemaType:g})=>g?(0,t.str)`"${k}" keyword must be ${g} ($data)`:(0,t.str)`"${k}" keyword is invalid ($data)`};function a(k,g=e.keywordError,v,w){const{it:C}=k,{gen:h,compositeRule:y,allErrors:S}=C,A=f(k,g,v);w??(y||S)?l(h,A):u(C,(0,t._)`[${A}]`)}e.reportError=a;function n(k,g=e.keywordError,v){const{it:w}=k,{gen:C,compositeRule:h,allErrors:y}=w,S=f(k,g,v);l(C,S),h||y||u(w,i.default.vErrors)}e.reportExtraError=n;function s(k,g){k.assign(i.default.errors,g),k.if((0,t._)`${i.default.vErrors} !== null`,()=>k.if(g,()=>k.assign((0,t._)`${i.default.vErrors}.length`,g),()=>k.assign(i.default.vErrors,null)))}e.resetErrorsCount=s;function o({gen:k,keyword:g,schemaValue:v,data:w,errsCount:C,it:h}){if(C===void 0)throw new Error("ajv implementation error");const y=k.name("err");k.forRange("i",C,i.default.errors,S=>{k.const(y,(0,t._)`${i.default.vErrors}[${S}]`),k.if((0,t._)`${y}.instancePath === undefined`,()=>k.assign((0,t._)`${y}.instancePath`,(0,t.strConcat)(i.default.instancePath,h.errorPath))),k.assign((0,t._)`${y}.schemaPath`,(0,t.str)`${h.errSchemaPath}/${g}`),h.opts.verbose&&(k.assign((0,t._)`${y}.schema`,v),k.assign((0,t._)`${y}.data`,w))})}e.extendErrors=o;function l(k,g){const v=k.const("err",g);k.if((0,t._)`${i.default.vErrors} === null`,()=>k.assign(i.default.vErrors,(0,t._)`[${v}]`),(0,t._)`${i.default.vErrors}.push(${v})`),k.code((0,t._)`${i.default.errors}++`)}function u(k,g){const{gen:v,validateName:w,schemaEnv:C}=k;C.$async?v.throw((0,t._)`new ${k.ValidationError}(${g})`):(v.assign((0,t._)`${w}.errors`,g),v.return(!1))}const c={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(k,g,v){const{createErrors:w}=k.it;return w===!1?(0,t._)`{}`:m(k,g,v)}function m(k,g,v={}){const{gen:w,it:C}=k,h=[d(C,v),p(k,v)];return b(k,g,h),w.object(...h)}function d({errorPath:k},{instancePath:g}){const v=g?(0,t.str)`${k}${(0,r.getErrorPath)(g,r.Type.Str)}`:k;return[i.default.instancePath,(0,t.strConcat)(i.default.instancePath,v)]}function p({keyword:k,it:{errSchemaPath:g}},{schemaPath:v,parentSchema:w}){let C=w?g:(0,t.str)`${g}/${k}`;return v&&(C=(0,t.str)`${C}${(0,r.getErrorPath)(v,r.Type.Str)}`),[c.schemaPath,C]}function b(k,{params:g,message:v},w){const{keyword:C,data:h,schemaValue:y,it:S}=k,{opts:A,propertyName:_,topSchemaRef:x,schemaPath:E}=S;w.push([c.keyword,C],[c.params,typeof g=="function"?g(k):g||(0,t._)`{}`]),A.messages&&w.push([c.message,typeof v=="function"?v(k):v]),A.verbose&&w.push([c.schema,y],[c.parentSchema,(0,t._)`${x}${E}`],[i.default.data,h]),_&&w.push([c.propertyName,_])}})(Ju)),Ju}var ug;function dL(){if(ug)return Zn;ug=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.boolOrEmptySchema=Zn.topBoolOrEmptySchema=void 0;const e=Nl(),t=Ne(),r=Un(),i={message:"boolean schema is false"};function a(o){const{gen:l,schema:u,validateName:c}=o;u===!1?s(o,!1):typeof u=="object"&&u.$async===!0?l.return(r.default.data):(l.assign((0,t._)`${c}.errors`,null),l.return(!0))}Zn.topBoolOrEmptySchema=a;function n(o,l){const{gen:u,schema:c}=o;c===!1?(u.var(l,!1),s(o)):u.var(l,!0)}Zn.boolOrEmptySchema=n;function s(o,l){const{gen:u,data:c}=o,f={gen:u,keyword:"false schema",data:c,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:o};(0,e.reportError)(f,i,void 0,l)}return Zn}var Rt={},Qn={},cg;function S1(){if(cg)return Qn;cg=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.getRules=Qn.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(a){return typeof a=="string"&&t.has(a)}Qn.isJSONType=r;function i(){const a={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...a,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},a.number,a.string,a.array,a.object],post:{rules:[]},all:{},keywords:{}}}return Qn.getRules=i,Qn}var Qr={},fg;function C1(){if(fg)return Qr;fg=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.shouldUseRule=Qr.shouldUseGroup=Qr.schemaHasRulesForType=void 0;function e({schema:i,self:a},n){const s=a.RULES.types[n];return s&&s!==!0&&t(i,s)}Qr.schemaHasRulesForType=e;function t(i,a){return a.rules.some(n=>r(i,n))}Qr.shouldUseGroup=t;function r(i,a){var n;return i[a.keyword]!==void 0||((n=a.definition.implements)===null||n===void 0?void 0:n.some(s=>i[s]!==void 0))}return Qr.shouldUseRule=r,Qr}var dg;function ll(){if(dg)return Rt;dg=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.reportTypeError=Rt.checkDataTypes=Rt.checkDataType=Rt.coerceAndCheckDataType=Rt.getJSONTypes=Rt.getSchemaTypes=Rt.DataType=void 0;const e=S1(),t=C1(),r=Nl(),i=Ne(),a=We();var n;(function(v){v[v.Correct=0]="Correct",v[v.Wrong=1]="Wrong"})(n||(Rt.DataType=n={}));function s(v){const w=o(v.type);if(w.includes("null")){if(v.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!w.length&&v.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');v.nullable===!0&&w.push("null")}return w}Rt.getSchemaTypes=s;function o(v){const w=Array.isArray(v)?v:v?[v]:[];if(w.every(e.isJSONType))return w;throw new Error("type must be JSONType or JSONType[]: "+w.join(","))}Rt.getJSONTypes=o;function l(v,w){const{gen:C,data:h,opts:y}=v,S=c(w,y.coerceTypes),A=w.length>0&&!(S.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(v,w[0]));if(A){const _=p(w,h,y.strictNumbers,n.Wrong);C.if(_,()=>{S.length?f(v,w,S):k(v)})}return A}Rt.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function c(v,w){return w?v.filter(C=>u.has(C)||w==="array"&&C==="array"):[]}function f(v,w,C){const{gen:h,data:y,opts:S}=v,A=h.let("dataType",(0,i._)`typeof ${y}`),_=h.let("coerced",(0,i._)`undefined`);S.coerceTypes==="array"&&h.if((0,i._)`${A} == 'object' && Array.isArray(${y}) && ${y}.length == 1`,()=>h.assign(y,(0,i._)`${y}[0]`).assign(A,(0,i._)`typeof ${y}`).if(p(w,y,S.strictNumbers),()=>h.assign(_,y))),h.if((0,i._)`${_} !== undefined`);for(const E of C)(u.has(E)||E==="array"&&S.coerceTypes==="array")&&x(E);h.else(),k(v),h.endIf(),h.if((0,i._)`${_} !== undefined`,()=>{h.assign(y,_),m(v,_)});function x(E){switch(E){case"string":h.elseIf((0,i._)`${A} == "number" || ${A} == "boolean"`).assign(_,(0,i._)`"" + ${y}`).elseIf((0,i._)`${y} === null`).assign(_,(0,i._)`""`);return;case"number":h.elseIf((0,i._)`${A} == "boolean" || ${y} === null
|
|
126
|
+
|| (${A} == "string" && ${y} && ${y} == +${y})`).assign(_,(0,i._)`+${y}`);return;case"integer":h.elseIf((0,i._)`${A} === "boolean" || ${y} === null
|
|
127
|
+
|| (${A} === "string" && ${y} && ${y} == +${y} && !(${y} % 1))`).assign(_,(0,i._)`+${y}`);return;case"boolean":h.elseIf((0,i._)`${y} === "false" || ${y} === 0 || ${y} === null`).assign(_,!1).elseIf((0,i._)`${y} === "true" || ${y} === 1`).assign(_,!0);return;case"null":h.elseIf((0,i._)`${y} === "" || ${y} === 0 || ${y} === false`),h.assign(_,null);return;case"array":h.elseIf((0,i._)`${A} === "string" || ${A} === "number"
|
|
128
|
+
|| ${A} === "boolean" || ${y} === null`).assign(_,(0,i._)`[${y}]`)}}}function m({gen:v,parentData:w,parentDataProperty:C},h){v.if((0,i._)`${w} !== undefined`,()=>v.assign((0,i._)`${w}[${C}]`,h))}function d(v,w,C,h=n.Correct){const y=h===n.Correct?i.operators.EQ:i.operators.NEQ;let S;switch(v){case"null":return(0,i._)`${w} ${y} null`;case"array":S=(0,i._)`Array.isArray(${w})`;break;case"object":S=(0,i._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":S=A((0,i._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":S=A();break;default:return(0,i._)`typeof ${w} ${y} ${v}`}return h===n.Correct?S:(0,i.not)(S);function A(_=i.nil){return(0,i.and)((0,i._)`typeof ${w} == "number"`,_,C?(0,i._)`isFinite(${w})`:i.nil)}}Rt.checkDataType=d;function p(v,w,C,h){if(v.length===1)return d(v[0],w,C,h);let y;const S=(0,a.toHash)(v);if(S.array&&S.object){const A=(0,i._)`typeof ${w} != "object"`;y=S.null?A:(0,i._)`!${w} || ${A}`,delete S.null,delete S.array,delete S.object}else y=i.nil;S.number&&delete S.integer;for(const A in S)y=(0,i.and)(y,d(A,w,C,h));return y}Rt.checkDataTypes=p;const b={message:({schema:v})=>`must be ${v}`,params:({schema:v,schemaValue:w})=>typeof v=="string"?(0,i._)`{type: ${v}}`:(0,i._)`{type: ${w}}`};function k(v){const w=g(v);(0,r.reportError)(w,b)}Rt.reportTypeError=k;function g(v){const{gen:w,data:C,schema:h}=v,y=(0,a.schemaRefOrVal)(v,h,"type");return{gen:w,keyword:"type",data:C,schema:h.type,schemaCode:y,schemaValue:y,parentSchema:h,params:{},it:v}}return Rt}var Ea={},mg;function mL(){if(mg)return Ea;mg=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.assignDefaults=void 0;const e=Ne(),t=We();function r(a,n){const{properties:s,items:o}=a.schema;if(n==="object"&&s)for(const l in s)i(a,l,s[l].default);else n==="array"&&Array.isArray(o)&&o.forEach((l,u)=>i(a,u,l.default))}Ea.assignDefaults=r;function i(a,n,s){const{gen:o,compositeRule:l,data:u,opts:c}=a;if(s===void 0)return;const f=(0,e._)`${u}${(0,e.getProperty)(n)}`;if(l){(0,t.checkStrictMode)(a,`default is ignored for: ${f}`);return}let m=(0,e._)`${f} === undefined`;c.useDefaults==="empty"&&(m=(0,e._)`${m} || ${f} === null || ${f} === ""`),o.if(m,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return Ea}var xr={},it={},pg;function Nr(){if(pg)return it;pg=1,Object.defineProperty(it,"__esModule",{value:!0}),it.validateUnion=it.validateArray=it.usePattern=it.callValidateCode=it.schemaProperties=it.allSchemaProperties=it.noPropertyInData=it.propertyInData=it.isOwnProperty=it.hasPropFunc=it.reportMissingProp=it.checkMissingProp=it.checkReportMissingProp=void 0;const e=Ne(),t=We(),r=Un(),i=We();function a(v,w){const{gen:C,data:h,it:y}=v;C.if(c(C,h,w,y.opts.ownProperties),()=>{v.setParams({missingProperty:(0,e._)`${w}`},!0),v.error()})}it.checkReportMissingProp=a;function n({gen:v,data:w,it:{opts:C}},h,y){return(0,e.or)(...h.map(S=>(0,e.and)(c(v,w,S,C.ownProperties),(0,e._)`${y} = ${S}`)))}it.checkMissingProp=n;function s(v,w){v.setParams({missingProperty:w},!0),v.error()}it.reportMissingProp=s;function o(v){return v.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}it.hasPropFunc=o;function l(v,w,C){return(0,e._)`${o(v)}.call(${w}, ${C})`}it.isOwnProperty=l;function u(v,w,C,h){const y=(0,e._)`${w}${(0,e.getProperty)(C)} !== undefined`;return h?(0,e._)`${y} && ${l(v,w,C)}`:y}it.propertyInData=u;function c(v,w,C,h){const y=(0,e._)`${w}${(0,e.getProperty)(C)} === undefined`;return h?(0,e.or)(y,(0,e.not)(l(v,w,C))):y}it.noPropertyInData=c;function f(v){return v?Object.keys(v).filter(w=>w!=="__proto__"):[]}it.allSchemaProperties=f;function m(v,w){return f(w).filter(C=>!(0,t.alwaysValidSchema)(v,w[C]))}it.schemaProperties=m;function d({schemaCode:v,data:w,it:{gen:C,topSchemaRef:h,schemaPath:y,errorPath:S},it:A},_,x,E){const O=E?(0,e._)`${v}, ${w}, ${h}${y}`:w,j=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,S)],[r.default.parentData,A.parentData],[r.default.parentDataProperty,A.parentDataProperty],[r.default.rootData,r.default.rootData]];A.opts.dynamicRef&&j.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const T=(0,e._)`${O}, ${C.object(...j)}`;return x!==e.nil?(0,e._)`${_}.call(${x}, ${T})`:(0,e._)`${_}(${T})`}it.callValidateCode=d;const p=(0,e._)`new RegExp`;function b({gen:v,it:{opts:w}},C){const h=w.unicodeRegExp?"u":"",{regExp:y}=w.code,S=y(C,h);return v.scopeValue("pattern",{key:S.toString(),ref:S,code:(0,e._)`${y.code==="new RegExp"?p:(0,i.useFunc)(v,y)}(${C}, ${h})`})}it.usePattern=b;function k(v){const{gen:w,data:C,keyword:h,it:y}=v,S=w.name("valid");if(y.allErrors){const _=w.let("valid",!0);return A(()=>w.assign(_,!1)),_}return w.var(S,!0),A(()=>w.break()),S;function A(_){const x=w.const("len",(0,e._)`${C}.length`);w.forRange("i",0,x,E=>{v.subschema({keyword:h,dataProp:E,dataPropType:t.Type.Num},S),w.if((0,e.not)(S),_)})}}it.validateArray=k;function g(v){const{gen:w,schema:C,keyword:h,it:y}=v;if(!Array.isArray(C))throw new Error("ajv implementation error");if(C.some(x=>(0,t.alwaysValidSchema)(y,x))&&!y.opts.unevaluated)return;const A=w.let("valid",!1),_=w.name("_valid");w.block(()=>C.forEach((x,E)=>{const O=v.subschema({keyword:h,schemaProp:E,compositeRule:!0},_);w.assign(A,(0,e._)`${A} || ${_}`),v.mergeValidEvaluated(O,_)||w.if((0,e.not)(A))})),v.result(A,()=>v.reset(),()=>v.error(!0))}return it.validateUnion=g,it}var hg;function pL(){if(hg)return xr;hg=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.validateKeywordUsage=xr.validSchemaType=xr.funcKeywordCode=xr.macroKeywordCode=void 0;const e=Ne(),t=Un(),r=Nr(),i=Nl();function a(m,d){const{gen:p,keyword:b,schema:k,parentSchema:g,it:v}=m,w=d.macro.call(v.self,k,g,v),C=u(p,b,w);v.opts.validateSchema!==!1&&v.self.validateSchema(w,!0);const h=p.name("valid");m.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${v.errSchemaPath}/${b}`,topSchemaRef:C,compositeRule:!0},h),m.pass(h,()=>m.error(!0))}xr.macroKeywordCode=a;function n(m,d){var p;const{gen:b,keyword:k,schema:g,parentSchema:v,$data:w,it:C}=m;l(C,d);const h=!w&&d.compile?d.compile.call(C.self,g,v,C):d.validate,y=u(b,k,h),S=b.let("valid");m.block$data(S,A),m.ok((p=d.valid)!==null&&p!==void 0?p:S);function A(){if(d.errors===!1)E(),d.modifying&&s(m),O(()=>m.error());else{const j=d.async?_():x();d.modifying&&s(m),O(()=>o(m,j))}}function _(){const j=b.let("ruleErrs",null);return b.try(()=>E((0,e._)`await `),T=>b.assign(S,!1).if((0,e._)`${T} instanceof ${C.ValidationError}`,()=>b.assign(j,(0,e._)`${T}.errors`),()=>b.throw(T))),j}function x(){const j=(0,e._)`${y}.errors`;return b.assign(j,null),E(e.nil),j}function E(j=d.async?(0,e._)`await `:e.nil){const T=C.opts.passContext?t.default.this:t.default.self,F=!("compile"in d&&!w||d.schema===!1);b.assign(S,(0,e._)`${j}${(0,r.callValidateCode)(m,y,T,F)}`,d.modifying)}function O(j){var T;b.if((0,e.not)((T=d.valid)!==null&&T!==void 0?T:S),j)}}xr.funcKeywordCode=n;function s(m){const{gen:d,data:p,it:b}=m;d.if(b.parentData,()=>d.assign(p,(0,e._)`${b.parentData}[${b.parentDataProperty}]`))}function o(m,d){const{gen:p}=m;p.if((0,e._)`Array.isArray(${d})`,()=>{p.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${d} : ${t.default.vErrors}.concat(${d})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,i.extendErrors)(m)},()=>m.error())}function l({schemaEnv:m},d){if(d.async&&!m.$async)throw new Error("async keyword in sync schema")}function u(m,d,p){if(p===void 0)throw new Error(`keyword "${d}" failed to compile`);return m.scopeValue("keyword",typeof p=="function"?{ref:p}:{ref:p,code:(0,e.stringify)(p)})}function c(m,d,p=!1){return!d.length||d.some(b=>b==="array"?Array.isArray(m):b==="object"?m&&typeof m=="object"&&!Array.isArray(m):typeof m==b||p&&typeof m>"u")}xr.validSchemaType=c;function f({schema:m,opts:d,self:p,errSchemaPath:b},k,g){if(Array.isArray(k.keyword)?!k.keyword.includes(g):k.keyword!==g)throw new Error("ajv implementation error");const v=k.dependencies;if(v!=null&&v.some(w=>!Object.prototype.hasOwnProperty.call(m,w)))throw new Error(`parent schema must have dependencies of ${g}: ${v.join(",")}`);if(k.validateSchema&&!k.validateSchema(m[g])){const C=`keyword "${g}" value is invalid at path "${b}": `+p.errorsText(k.validateSchema.errors);if(d.validateSchema==="log")p.logger.error(C);else throw new Error(C)}}return xr.validateKeywordUsage=f,xr}var en={},gg;function hL(){if(gg)return en;gg=1,Object.defineProperty(en,"__esModule",{value:!0}),en.extendSubschemaMode=en.extendSubschemaData=en.getSubschema=void 0;const e=Ne(),t=We();function r(n,{keyword:s,schemaProp:o,schema:l,schemaPath:u,errSchemaPath:c,topSchemaRef:f}){if(s!==void 0&&l!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const m=n.schema[s];return o===void 0?{schema:m,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${s}`}:{schema:m[o],schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(o)}`,errSchemaPath:`${n.errSchemaPath}/${s}/${(0,t.escapeFragment)(o)}`}}if(l!==void 0){if(u===void 0||c===void 0||f===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:u,topSchemaRef:f,errSchemaPath:c}}throw new Error('either "keyword" or "schema" must be passed')}en.getSubschema=r;function i(n,s,{dataProp:o,dataPropType:l,data:u,dataTypes:c,propertyName:f}){if(u!==void 0&&o!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:m}=s;if(o!==void 0){const{errorPath:p,dataPathArr:b,opts:k}=s,g=m.let("data",(0,e._)`${s.data}${(0,e.getProperty)(o)}`,!0);d(g),n.errorPath=(0,e.str)`${p}${(0,t.getErrorPath)(o,l,k.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${o}`,n.dataPathArr=[...b,n.parentDataProperty]}if(u!==void 0){const p=u instanceof e.Name?u:m.let("data",u,!0);d(p),f!==void 0&&(n.propertyName=f)}c&&(n.dataTypes=c);function d(p){n.data=p,n.dataLevel=s.dataLevel+1,n.dataTypes=[],s.definedProperties=new Set,n.parentData=s.data,n.dataNames=[...s.dataNames,p]}}en.extendSubschemaData=i;function a(n,{jtdDiscriminator:s,jtdMetadata:o,compositeRule:l,createErrors:u,allErrors:c}){l!==void 0&&(n.compositeRule=l),u!==void 0&&(n.createErrors=u),c!==void 0&&(n.allErrors=c),n.jtdDiscriminator=s,n.jtdMetadata=o}return en.extendSubschemaMode=a,en}var Ut={},Qu,yg;function E1(){return yg||(yg=1,Qu=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var i,a,n;if(Array.isArray(t)){if(i=t.length,i!=r.length)return!1;for(a=i;a--!==0;)if(!e(t[a],r[a]))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=Object.keys(t),i=n.length,i!==Object.keys(r).length)return!1;for(a=i;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[a]))return!1;for(a=i;a--!==0;){var s=n[a];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}),Qu}var ec={exports:{}},vg;function gL(){if(vg)return ec.exports;vg=1;var e=ec.exports=function(i,a,n){typeof a=="function"&&(n=a,a={}),n=a.cb||n;var s=typeof n=="function"?n:n.pre||function(){},o=n.post||function(){};t(a,s,o,i,"",i)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(i,a,n,s,o,l,u,c,f,m){if(s&&typeof s=="object"&&!Array.isArray(s)){a(s,o,l,u,c,f,m);for(var d in s){var p=s[d];if(Array.isArray(p)){if(d in e.arrayKeywords)for(var b=0;b<p.length;b++)t(i,a,n,p[b],o+"/"+d+"/"+b,l,o,d,s,b)}else if(d in e.propsKeywords){if(p&&typeof p=="object")for(var k in p)t(i,a,n,p[k],o+"/"+d+"/"+r(k),l,o,d,s,k)}else(d in e.keywords||i.allKeys&&!(d in e.skipKeywords))&&t(i,a,n,p,o+"/"+d,l,o,d,s)}n(s,o,l,u,c,f,m)}}function r(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}return ec.exports}var bg;function Fl(){if(bg)return Ut;bg=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.getSchemaRefs=Ut.resolveUrl=Ut.normalizeId=Ut._getFullPath=Ut.getFullPath=Ut.inlineRef=void 0;const e=We(),t=E1(),r=gL(),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function a(b,k=!0){return typeof b=="boolean"?!0:k===!0?!s(b):k?o(b)<=k:!1}Ut.inlineRef=a;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(b){for(const k in b){if(n.has(k))return!0;const g=b[k];if(Array.isArray(g)&&g.some(s)||typeof g=="object"&&s(g))return!0}return!1}function o(b){let k=0;for(const g in b){if(g==="$ref")return 1/0;if(k++,!i.has(g)&&(typeof b[g]=="object"&&(0,e.eachItem)(b[g],v=>k+=o(v)),k===1/0))return 1/0}return k}function l(b,k="",g){g!==!1&&(k=f(k));const v=b.parse(k);return u(b,v)}Ut.getFullPath=l;function u(b,k){return b.serialize(k).split("#")[0]+"#"}Ut._getFullPath=u;const c=/#\/?$/;function f(b){return b?b.replace(c,""):""}Ut.normalizeId=f;function m(b,k,g){return g=f(g),b.resolve(k,g)}Ut.resolveUrl=m;const d=/^[a-z_][-a-z0-9._]*$/i;function p(b,k){if(typeof b=="boolean")return{};const{schemaId:g,uriResolver:v}=this.opts,w=f(b[g]||k),C={"":w},h=l(v,w,!1),y={},S=new Set;return r(b,{allKeys:!0},(x,E,O,j)=>{if(j===void 0)return;const T=h+E;let F=C[j];typeof x[g]=="string"&&(F=q.call(this,x[g])),J.call(this,x.$anchor),J.call(this,x.$dynamicAnchor),C[E]=F;function q(Y){const te=this.opts.uriResolver.resolve;if(Y=f(F?te(F,Y):Y),S.has(Y))throw _(Y);S.add(Y);let P=this.refs[Y];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?A(x,P.schema,Y):Y!==f(T)&&(Y[0]==="#"?(A(x,y[Y],Y),y[Y]=x):this.refs[Y]=T),Y}function J(Y){if(typeof Y=="string"){if(!d.test(Y))throw new Error(`invalid anchor "${Y}"`);q.call(this,`#${Y}`)}}}),y;function A(x,E,O){if(E!==void 0&&!t(x,E))throw _(O)}function _(x){return new Error(`reference "${x}" resolves to more than one schema`)}}return Ut.getSchemaRefs=p,Ut}var kg;function Dl(){if(kg)return Zr;kg=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.getData=Zr.KeywordCxt=Zr.validateFunctionCode=void 0;const e=dL(),t=ll(),r=C1(),i=ll(),a=mL(),n=pL(),s=hL(),o=Ne(),l=Un(),u=Fl(),c=We(),f=Nl();function m($){if(h($)&&(S($),C($))){k($);return}d($,()=>(0,e.topBoolOrEmptySchema)($))}Zr.validateFunctionCode=m;function d({gen:$,validateName:L,schema:W,schemaEnv:K,opts:ie},re){ie.code.es5?$.func(L,(0,o._)`${l.default.data}, ${l.default.valCxt}`,K.$async,()=>{$.code((0,o._)`"use strict"; ${v(W,ie)}`),b($,ie),$.code(re)}):$.func(L,(0,o._)`${l.default.data}, ${p(ie)}`,K.$async,()=>$.code(v(W,ie)).code(re))}function p($){return(0,o._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${$.dynamicRef?(0,o._)`, ${l.default.dynamicAnchors}={}`:o.nil}}={}`}function b($,L){$.if(l.default.valCxt,()=>{$.var(l.default.instancePath,(0,o._)`${l.default.valCxt}.${l.default.instancePath}`),$.var(l.default.parentData,(0,o._)`${l.default.valCxt}.${l.default.parentData}`),$.var(l.default.parentDataProperty,(0,o._)`${l.default.valCxt}.${l.default.parentDataProperty}`),$.var(l.default.rootData,(0,o._)`${l.default.valCxt}.${l.default.rootData}`),L.dynamicRef&&$.var(l.default.dynamicAnchors,(0,o._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{$.var(l.default.instancePath,(0,o._)`""`),$.var(l.default.parentData,(0,o._)`undefined`),$.var(l.default.parentDataProperty,(0,o._)`undefined`),$.var(l.default.rootData,l.default.data),L.dynamicRef&&$.var(l.default.dynamicAnchors,(0,o._)`{}`)})}function k($){const{schema:L,opts:W,gen:K}=$;d($,()=>{W.$comment&&L.$comment&&j($),x($),K.let(l.default.vErrors,null),K.let(l.default.errors,0),W.unevaluated&&g($),A($),T($)})}function g($){const{gen:L,validateName:W}=$;$.evaluated=L.const("evaluated",(0,o._)`${W}.evaluated`),L.if((0,o._)`${$.evaluated}.dynamicProps`,()=>L.assign((0,o._)`${$.evaluated}.props`,(0,o._)`undefined`)),L.if((0,o._)`${$.evaluated}.dynamicItems`,()=>L.assign((0,o._)`${$.evaluated}.items`,(0,o._)`undefined`))}function v($,L){const W=typeof $=="object"&&$[L.schemaId];return W&&(L.code.source||L.code.process)?(0,o._)`/*# sourceURL=${W} */`:o.nil}function w($,L){if(h($)&&(S($),C($))){y($,L);return}(0,e.boolOrEmptySchema)($,L)}function C({schema:$,self:L}){if(typeof $=="boolean")return!$;for(const W in $)if(L.RULES.all[W])return!0;return!1}function h($){return typeof $.schema!="boolean"}function y($,L){const{schema:W,gen:K,opts:ie}=$;ie.$comment&&W.$comment&&j($),E($),O($);const re=K.const("_errs",l.default.errors);A($,re),K.var(L,(0,o._)`${re} === ${l.default.errors}`)}function S($){(0,c.checkUnknownRules)($),_($)}function A($,L){if($.opts.jtd)return q($,[],!1,L);const W=(0,t.getSchemaTypes)($.schema),K=(0,t.coerceAndCheckDataType)($,W);q($,W,!K,L)}function _($){const{schema:L,errSchemaPath:W,opts:K,self:ie}=$;L.$ref&&K.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(L,ie.RULES)&&ie.logger.warn(`$ref: keywords ignored in schema at path "${W}"`)}function x($){const{schema:L,opts:W}=$;L.default!==void 0&&W.useDefaults&&W.strictSchema&&(0,c.checkStrictMode)($,"default is ignored in the schema root")}function E($){const L=$.schema[$.opts.schemaId];L&&($.baseId=(0,u.resolveUrl)($.opts.uriResolver,$.baseId,L))}function O($){if($.schema.$async&&!$.schemaEnv.$async)throw new Error("async schema in sync schema")}function j({gen:$,schemaEnv:L,schema:W,errSchemaPath:K,opts:ie}){const re=W.$comment;if(ie.$comment===!0)$.code((0,o._)`${l.default.self}.logger.log(${re})`);else if(typeof ie.$comment=="function"){const ue=(0,o.str)`${K}/$comment`,ge=$.scopeValue("root",{ref:L.root});$.code((0,o._)`${l.default.self}.opts.$comment(${re}, ${ue}, ${ge}.schema)`)}}function T($){const{gen:L,schemaEnv:W,validateName:K,ValidationError:ie,opts:re}=$;W.$async?L.if((0,o._)`${l.default.errors} === 0`,()=>L.return(l.default.data),()=>L.throw((0,o._)`new ${ie}(${l.default.vErrors})`)):(L.assign((0,o._)`${K}.errors`,l.default.vErrors),re.unevaluated&&F($),L.return((0,o._)`${l.default.errors} === 0`))}function F({gen:$,evaluated:L,props:W,items:K}){W instanceof o.Name&&$.assign((0,o._)`${L}.props`,W),K instanceof o.Name&&$.assign((0,o._)`${L}.items`,K)}function q($,L,W,K){const{gen:ie,schema:re,data:ue,allErrors:ge,opts:we,self:ke}=$,{RULES:Pe}=ke;if(re.$ref&&(we.ignoreKeywordsWithRef||!(0,c.schemaHasRulesButRef)(re,Pe))){ie.block(()=>B($,"$ref",Pe.all.$ref.definition));return}we.jtd||Y($,L),ie.block(()=>{for(const Ve of Pe.rules)de(Ve);de(Pe.post)});function de(Ve){(0,r.shouldUseGroup)(re,Ve)&&(Ve.type?(ie.if((0,i.checkDataType)(Ve.type,ue,we.strictNumbers)),J($,Ve),L.length===1&&L[0]===Ve.type&&W&&(ie.else(),(0,i.reportTypeError)($)),ie.endIf()):J($,Ve),ge||ie.if((0,o._)`${l.default.errors} === ${K||0}`))}}function J($,L){const{gen:W,schema:K,opts:{useDefaults:ie}}=$;ie&&(0,a.assignDefaults)($,L.type),W.block(()=>{for(const re of L.rules)(0,r.shouldUseRule)(K,re)&&B($,re.keyword,re.definition,L.type)})}function Y($,L){$.schemaEnv.meta||!$.opts.strictTypes||(te($,L),$.opts.allowUnionTypes||P($,L),D($,$.dataTypes))}function te($,L){if(L.length){if(!$.dataTypes.length){$.dataTypes=L;return}L.forEach(W=>{I($.dataTypes,W)||M($,`type "${W}" not allowed by context "${$.dataTypes.join(",")}"`)}),R($,L)}}function P($,L){L.length>1&&!(L.length===2&&L.includes("null"))&&M($,"use allowUnionTypes to allow union type keyword")}function D($,L){const W=$.self.RULES.all;for(const K in W){const ie=W[K];if(typeof ie=="object"&&(0,r.shouldUseRule)($.schema,ie)){const{type:re}=ie.definition;re.length&&!re.some(ue=>U(L,ue))&&M($,`missing type "${re.join(",")}" for keyword "${K}"`)}}}function U($,L){return $.includes(L)||L==="number"&&$.includes("integer")}function I($,L){return $.includes(L)||L==="integer"&&$.includes("number")}function R($,L){const W=[];for(const K of $.dataTypes)I(L,K)?W.push(K):L.includes("integer")&&K==="number"&&W.push("integer");$.dataTypes=W}function M($,L){const W=$.schemaEnv.baseId+$.errSchemaPath;L+=` at "${W}" (strictTypes)`,(0,c.checkStrictMode)($,L,$.opts.strictTypes)}class z{constructor(L,W,K){if((0,n.validateKeywordUsage)(L,W,K),this.gen=L.gen,this.allErrors=L.allErrors,this.keyword=K,this.data=L.data,this.schema=L.schema[K],this.$data=W.$data&&L.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(L,this.schema,K,this.$data),this.schemaType=W.schemaType,this.parentSchema=L.schema,this.params={},this.it=L,this.def=W,this.$data)this.schemaCode=L.gen.const("vSchema",X(this.$data,L));else if(this.schemaCode=this.schemaValue,!(0,n.validSchemaType)(this.schema,W.schemaType,W.allowUndefined))throw new Error(`${K} value must be ${JSON.stringify(W.schemaType)}`);("code"in W?W.trackErrors:W.errors!==!1)&&(this.errsCount=L.gen.const("_errs",l.default.errors))}result(L,W,K){this.failResult((0,o.not)(L),W,K)}failResult(L,W,K){this.gen.if(L),K?K():this.error(),W?(this.gen.else(),W(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(L,W){this.failResult((0,o.not)(L),void 0,W)}fail(L){if(L===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(L),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(L){if(!this.$data)return this.fail(L);const{schemaCode:W}=this;this.fail((0,o._)`${W} !== undefined && (${(0,o.or)(this.invalid$data(),L)})`)}error(L,W,K){if(W){this.setParams(W),this._error(L,K),this.setParams({});return}this._error(L,K)}_error(L,W){(L?f.reportExtraError:f.reportError)(this,this.def.error,W)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(L){this.allErrors||this.gen.if(L)}setParams(L,W){W?Object.assign(this.params,L):this.params=L}block$data(L,W,K=o.nil){this.gen.block(()=>{this.check$data(L,K),W()})}check$data(L=o.nil,W=o.nil){if(!this.$data)return;const{gen:K,schemaCode:ie,schemaType:re,def:ue}=this;K.if((0,o.or)((0,o._)`${ie} === undefined`,W)),L!==o.nil&&K.assign(L,!0),(re.length||ue.validateSchema)&&(K.elseIf(this.invalid$data()),this.$dataError(),L!==o.nil&&K.assign(L,!1)),K.else()}invalid$data(){const{gen:L,schemaCode:W,schemaType:K,def:ie,it:re}=this;return(0,o.or)(ue(),ge());function ue(){if(K.length){if(!(W instanceof o.Name))throw new Error("ajv implementation error");const we=Array.isArray(K)?K:[K];return(0,o._)`${(0,i.checkDataTypes)(we,W,re.opts.strictNumbers,i.DataType.Wrong)}`}return o.nil}function ge(){if(ie.validateSchema){const we=L.scopeValue("validate$data",{ref:ie.validateSchema});return(0,o._)`!${we}(${W})`}return o.nil}}subschema(L,W){const K=(0,s.getSubschema)(this.it,L);(0,s.extendSubschemaData)(K,this.it,L),(0,s.extendSubschemaMode)(K,L);const ie={...this.it,...K,items:void 0,props:void 0};return w(ie,W),ie}mergeEvaluated(L,W){const{it:K,gen:ie}=this;K.opts.unevaluated&&(K.props!==!0&&L.props!==void 0&&(K.props=c.mergeEvaluated.props(ie,L.props,K.props,W)),K.items!==!0&&L.items!==void 0&&(K.items=c.mergeEvaluated.items(ie,L.items,K.items,W)))}mergeValidEvaluated(L,W){const{it:K,gen:ie}=this;if(K.opts.unevaluated&&(K.props!==!0||K.items!==!0))return ie.if(W,()=>this.mergeEvaluated(L,o.Name)),!0}}Zr.KeywordCxt=z;function B($,L,W,K){const ie=new z($,W,L);"code"in W?W.code(ie,K):ie.$data&&W.validate?(0,n.funcKeywordCode)(ie,W):"macro"in W?(0,n.macroKeywordCode)(ie,W):(W.compile||W.validate)&&(0,n.funcKeywordCode)(ie,W)}const H=/^\/(?:[^~]|~0|~1)*$/,G=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function X($,{dataLevel:L,dataNames:W,dataPathArr:K}){let ie,re;if($==="")return l.default.rootData;if($[0]==="/"){if(!H.test($))throw new Error(`Invalid JSON-pointer: ${$}`);ie=$,re=l.default.rootData}else{const ke=G.exec($);if(!ke)throw new Error(`Invalid JSON-pointer: ${$}`);const Pe=+ke[1];if(ie=ke[2],ie==="#"){if(Pe>=L)throw new Error(we("property/index",Pe));return K[L-Pe]}if(Pe>L)throw new Error(we("data",Pe));if(re=W[L-Pe],!ie)return re}let ue=re;const ge=ie.split("/");for(const ke of ge)ke&&(re=(0,o._)`${re}${(0,o.getProperty)((0,c.unescapeJsonPointer)(ke))}`,ue=(0,o._)`${ue} && ${re}`);return ue;function we(ke,Pe){return`Cannot access ${ke} ${Pe} levels up, current level is ${L}`}}return Zr.getData=X,Zr}var Bs={},wg;function Dd(){if(wg)return Bs;wg=1,Object.defineProperty(Bs,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return Bs.default=e,Bs}var Vs={},xg;function Ml(){if(xg)return Vs;xg=1,Object.defineProperty(Vs,"__esModule",{value:!0});const e=Fl();class t extends Error{constructor(i,a,n,s){super(s||`can't resolve reference ${n} from id ${a}`),this.missingRef=(0,e.resolveUrl)(i,a,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(i,this.missingRef))}}return Vs.default=t,Vs}var er={},Sg;function Md(){if(Sg)return er;Sg=1,Object.defineProperty(er,"__esModule",{value:!0}),er.resolveSchema=er.getCompilingSchema=er.resolveRef=er.compileSchema=er.SchemaEnv=void 0;const e=Ne(),t=Dd(),r=Un(),i=Fl(),a=We(),n=Dl();class s{constructor(g){var v;this.refs={},this.dynamicAnchors={};let w;typeof g.schema=="object"&&(w=g.schema),this.schema=g.schema,this.schemaId=g.schemaId,this.root=g.root||this,this.baseId=(v=g.baseId)!==null&&v!==void 0?v:(0,i.normalizeId)(w==null?void 0:w[g.schemaId||"$id"]),this.schemaPath=g.schemaPath,this.localRefs=g.localRefs,this.meta=g.meta,this.$async=w==null?void 0:w.$async,this.refs={}}}er.SchemaEnv=s;function o(k){const g=c.call(this,k);if(g)return g;const v=(0,i.getFullPath)(this.opts.uriResolver,k.root.baseId),{es5:w,lines:C}=this.opts.code,{ownProperties:h}=this.opts,y=new e.CodeGen(this.scope,{es5:w,lines:C,ownProperties:h});let S;k.$async&&(S=y.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const A=y.scopeName("validate");k.validateName=A;const _={gen:y,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:y.scopeValue("schema",this.opts.code.source===!0?{ref:k.schema,code:(0,e.stringify)(k.schema)}:{ref:k.schema}),validateName:A,ValidationError:S,schema:k.schema,schemaEnv:k,rootId:v,baseId:k.baseId||v,schemaPath:e.nil,errSchemaPath:k.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let x;try{this._compilations.add(k),(0,n.validateFunctionCode)(_),y.optimize(this.opts.code.optimize);const E=y.toString();x=`${y.scopeRefs(r.default.scope)}return ${E}`,this.opts.code.process&&(x=this.opts.code.process(x,k));const j=new Function(`${r.default.self}`,`${r.default.scope}`,x)(this,this.scope.get());if(this.scope.value(A,{ref:j}),j.errors=null,j.schema=k.schema,j.schemaEnv=k,k.$async&&(j.$async=!0),this.opts.code.source===!0&&(j.source={validateName:A,validateCode:E,scopeValues:y._values}),this.opts.unevaluated){const{props:T,items:F}=_;j.evaluated={props:T instanceof e.Name?void 0:T,items:F instanceof e.Name?void 0:F,dynamicProps:T instanceof e.Name,dynamicItems:F instanceof e.Name},j.source&&(j.source.evaluated=(0,e.stringify)(j.evaluated))}return k.validate=j,k}catch(E){throw delete k.validate,delete k.validateName,x&&this.logger.error("Error compiling schema, function code:",x),E}finally{this._compilations.delete(k)}}er.compileSchema=o;function l(k,g,v){var w;v=(0,i.resolveUrl)(this.opts.uriResolver,g,v);const C=k.refs[v];if(C)return C;let h=m.call(this,k,v);if(h===void 0){const y=(w=k.localRefs)===null||w===void 0?void 0:w[v],{schemaId:S}=this.opts;y&&(h=new s({schema:y,schemaId:S,root:k,baseId:g}))}if(h!==void 0)return k.refs[v]=u.call(this,h)}er.resolveRef=l;function u(k){return(0,i.inlineRef)(k.schema,this.opts.inlineRefs)?k.schema:k.validate?k:o.call(this,k)}function c(k){for(const g of this._compilations)if(f(g,k))return g}er.getCompilingSchema=c;function f(k,g){return k.schema===g.schema&&k.root===g.root&&k.baseId===g.baseId}function m(k,g){let v;for(;typeof(v=this.refs[g])=="string";)g=v;return v||this.schemas[g]||d.call(this,k,g)}function d(k,g){const v=this.opts.uriResolver.parse(g),w=(0,i._getFullPath)(this.opts.uriResolver,v);let C=(0,i.getFullPath)(this.opts.uriResolver,k.baseId,void 0);if(Object.keys(k.schema).length>0&&w===C)return b.call(this,v,k);const h=(0,i.normalizeId)(w),y=this.refs[h]||this.schemas[h];if(typeof y=="string"){const S=d.call(this,k,y);return typeof(S==null?void 0:S.schema)!="object"?void 0:b.call(this,v,S)}if(typeof(y==null?void 0:y.schema)=="object"){if(y.validate||o.call(this,y),h===(0,i.normalizeId)(g)){const{schema:S}=y,{schemaId:A}=this.opts,_=S[A];return _&&(C=(0,i.resolveUrl)(this.opts.uriResolver,C,_)),new s({schema:S,schemaId:A,root:k,baseId:C})}return b.call(this,v,y)}}er.resolveSchema=d;const p=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function b(k,{baseId:g,schema:v,root:w}){var C;if(((C=k.fragment)===null||C===void 0?void 0:C[0])!=="/")return;for(const S of k.fragment.slice(1).split("/")){if(typeof v=="boolean")return;const A=v[(0,a.unescapeFragment)(S)];if(A===void 0)return;v=A;const _=typeof v=="object"&&v[this.opts.schemaId];!p.has(S)&&_&&(g=(0,i.resolveUrl)(this.opts.uriResolver,g,_))}let h;if(typeof v!="boolean"&&v.$ref&&!(0,a.schemaHasRulesButRef)(v,this.RULES)){const S=(0,i.resolveUrl)(this.opts.uriResolver,g,v.$ref);h=d.call(this,w,S)}const{schemaId:y}=this.opts;if(h=h||new s({schema:v,schemaId:y,root:w,baseId:g}),h.schema!==h.root.schema)return h}return er}const yL="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",vL="Meta-schema for $data reference (JSON AnySchema extension proposal)",bL="object",kL=["$data"],wL={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},xL=!1,SL={$id:yL,description:vL,type:bL,required:kL,properties:wL,additionalProperties:xL};var Hs={},Aa={exports:{}},tc,Cg;function A1(){if(Cg)return tc;Cg=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function n(h){let y="",S=0,A=0;for(A=0;A<h.length;A++)if(S=h[A].charCodeAt(0),S!==48){if(!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";y+=h[A];break}for(A+=1;A<h.length;A++){if(S=h[A].charCodeAt(0),!(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102))return"";y+=h[A]}return y}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(h){return h.length=0,!0}function l(h,y,S){if(h.length){const A=n(h);if(A!=="")y.push(A);else return S.error=!0,!1;h.length=0}return!0}function u(h){let y=0;const S={error:!1,address:"",zone:""},A=[],_=[];let x=!1,E=!1,O=l;for(let j=0;j<h.length;j++){const T=h[j];if(!(T==="["||T==="]"))if(T===":"){if(x===!0&&(E=!0),!O(_,A,S))break;if(++y>7){S.error=!0;break}j>0&&h[j-1]===":"&&(x=!0),A.push(":");continue}else if(T==="%"){if(!O(_,A,S))break;O=o}else{_.push(T);continue}}return _.length&&(O===o?S.zone=_.join(""):E?A.push(_.join("")):A.push(n(_))),S.address=A.join(""),S}function c(h){if(f(h,":")<2)return{host:h,isIPV6:!1};const y=u(h);if(y.error)return{host:h,isIPV6:!1};{let S=y.address,A=y.address;return y.zone&&(S+="%"+y.zone,A+="%25"+y.zone),{host:S,isIPV6:!0,escapedHost:A}}}function f(h,y){let S=0;for(let A=0;A<h.length;A++)h[A]===y&&S++;return S}function m(h){let y=h;const S=[];let A=-1,_=0;for(;_=y.length;){if(_===1){if(y===".")break;if(y==="/"){S.push("/");break}else{S.push(y);break}}else if(_===2){if(y[0]==="."){if(y[1]===".")break;if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&(y[1]==="."||y[1]==="/")){S.push("/");break}}else if(_===3&&y==="/.."){S.length!==0&&S.pop(),S.push("/");break}if(y[0]==="."){if(y[1]==="."){if(y[2]==="/"){y=y.slice(3);continue}}else if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&y[1]==="."){if(y[2]==="/"){y=y.slice(2);continue}else if(y[2]==="."&&y[3]==="/"){y=y.slice(3),S.length!==0&&S.pop();continue}}if((A=y.indexOf("/",1))===-1){S.push(y);break}else S.push(y.slice(0,A)),y=y.slice(A)}return S.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},p=/[@/?#:]/g,b=/[@/?#]/g;function k(h,y){const S=y?b:p;return S.lastIndex=0,h.replace(S,A=>d[A])}function g(h,y=!1){if(h.indexOf("%")===-1)return h;let S="";for(let A=0;A<h.length;A++){if(h[A]==="%"&&A+2<h.length){const _=h.slice(A+1,A+3);if(r(_)){const x=_.toUpperCase(),E=String.fromCharCode(parseInt(x,16));y&&i(E)?S+=E:S+="%"+x,A+=2;continue}}S+=h[A]}return S}function v(h){let y="";for(let S=0;S<h.length;S++){if(h[S]==="%"&&S+2<h.length){const A=h.slice(S+1,S+3);if(r(A)){const _=A.toUpperCase(),x=String.fromCharCode(parseInt(_,16));x!=="."&&i(x)?y+=x:y+="%"+_,S+=2;continue}}a(h[S])?y+=h[S]:y+=escape(h[S])}return y}function w(h){let y="";for(let S=0;S<h.length;S++){if(h[S]==="%"&&S+2<h.length){const A=h.slice(S+1,S+3);if(r(A)){y+="%"+A.toUpperCase(),S+=2;continue}}y+=escape(h[S])}return y}function C(h){const y=[];if(h.userinfo!==void 0&&(y.push(h.userinfo),y.push("@")),h.host!==void 0){let S=unescape(h.host);if(!t(S)){const A=c(S);A.isIPV6===!0?S=`[${A.escapedHost}]`:S=k(S,!1)}y.push(S)}return(typeof h.port=="number"||typeof h.port=="string")&&(y.push(":"),y.push(String(h.port))),y.length?y.join(""):void 0}return tc={nonSimpleDomain:s,recomposeAuthority:C,reescapeHostDelimiters:k,normalizePercentEncoding:g,normalizePathEncoding:v,escapePreservingEscapes:w,removeDotSegments:m,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:n},tc}var rc,Eg;function CL(){if(Eg)return rc;Eg=1;const{isUUID:e}=A1(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,r=["http","https","ws","wss","urn","urn:uuid"];function i(h){return r.indexOf(h)!==-1}function a(h){return h.secure===!0?!0:h.secure===!1?!1:h.scheme?h.scheme.length===3&&(h.scheme[0]==="w"||h.scheme[0]==="W")&&(h.scheme[1]==="s"||h.scheme[1]==="S")&&(h.scheme[2]==="s"||h.scheme[2]==="S"):!1}function n(h){return h.host||(h.error=h.error||"HTTP URIs must have a host."),h}function s(h){const y=String(h.scheme).toLowerCase()==="https";return(h.port===(y?443:80)||h.port==="")&&(h.port=void 0),h.path||(h.path="/"),h}function o(h){return h.secure=a(h),h.resourceName=(h.path||"/")+(h.query?"?"+h.query:""),h.path=void 0,h.query=void 0,h}function l(h){if((h.port===(a(h)?443:80)||h.port==="")&&(h.port=void 0),typeof h.secure=="boolean"&&(h.scheme=h.secure?"wss":"ws",h.secure=void 0),h.resourceName){const[y,S]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=S,h.resourceName=void 0}return h.fragment=void 0,h}function u(h,y){if(!h.path)return h.error="URN can not be parsed",h;const S=h.path.match(t);if(S){const A=y.scheme||h.scheme||"urn";h.nid=S[1].toLowerCase(),h.nss=S[2];const _=`${A}:${y.nid||h.nid}`,x=C(_);h.path=void 0,x&&(h=x.parse(h,y))}else h.error=h.error||"URN can not be parsed.";return h}function c(h,y){if(h.nid===void 0)throw new Error("URN without nid cannot be serialized");const S=y.scheme||h.scheme||"urn",A=h.nid.toLowerCase(),_=`${S}:${y.nid||A}`,x=C(_);x&&(h=x.serialize(h,y));const E=h,O=h.nss;return E.path=`${A||y.nid}:${O}`,y.skipEscape=!0,E}function f(h,y){const S=h;return S.uuid=S.nss,S.nss=void 0,!y.tolerant&&(!S.uuid||!e(S.uuid))&&(S.error=S.error||"UUID is not valid."),S}function m(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},p={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},b={scheme:"ws",domainHost:!0,parse:o,serialize:l},k={scheme:"wss",domainHost:b.domainHost,parse:b.parse,serialize:b.serialize},w={http:d,https:p,ws:b,wss:k,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(w,null);function C(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return rc={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:C},rc}var Ag;function EL(){if(Ag)return Aa.exports;Ag=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,escapePreservingEscapes:n,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:l}=A1(),{SCHEMES:u,getSchemeHandler:c}=CL();function f(A,_){return typeof A=="string"?A=C(A,_):typeof A=="object"&&(A=w(b(A,_),_)),A}function m(A,_,x){const E=x?Object.assign({scheme:"null"},x):{scheme:"null"},O=d(w(A,E),w(_,E),E,!0);return E.skipEscape=!0,b(O,E)}function d(A,_,x,E){const O={};return E||(A=w(b(A,x),x),_=w(b(_,x),x)),x=x||{},!x.tolerant&&_.scheme?(O.scheme=_.scheme,O.userinfo=_.userinfo,O.host=_.host,O.port=_.port,O.path=t(_.path||""),O.query=_.query):(_.userinfo!==void 0||_.host!==void 0||_.port!==void 0?(O.userinfo=_.userinfo,O.host=_.host,O.port=_.port,O.path=t(_.path||""),O.query=_.query):(_.path?(_.path[0]==="/"?O.path=t(_.path):((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path?O.path="/"+_.path:A.path?O.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+_.path:O.path=_.path,O.path=t(O.path)),O.query=_.query):(O.path=A.path,_.query!==void 0?O.query=_.query:O.query=A.query),O.userinfo=A.userinfo,O.host=A.host,O.port=A.port),O.scheme=A.scheme),O.fragment=_.fragment,O}function p(A,_,x){const E=y(A,x),O=y(_,x);return E!==void 0&&O!==void 0&&E.toLowerCase()===O.toLowerCase()}function b(A,_){const x={host:A.host,scheme:A.scheme,userinfo:A.userinfo,port:A.port,path:A.path,query:A.query,nid:A.nid,nss:A.nss,uuid:A.uuid,fragment:A.fragment,reference:A.reference,resourceName:A.resourceName,secure:A.secure,error:""},E=Object.assign({},_),O=[],j=c(E.scheme||x.scheme);j&&j.serialize&&j.serialize(x,E),x.path!==void 0&&(E.skipEscape?x.path=i(x.path):(x.path=n(x.path),x.scheme!==void 0&&(x.path=x.path.split("%3A").join(":")))),E.reference!=="suffix"&&x.scheme&&O.push(x.scheme,":");const T=r(x);if(T!==void 0&&(E.reference!=="suffix"&&O.push("//"),O.push(T),x.path&&x.path[0]!=="/"&&O.push("/")),x.path!==void 0){let F=x.path;!E.absolutePath&&(!j||!j.absolutePath)&&(F=t(F)),T===void 0&&F[0]==="/"&&F[1]==="/"&&(F="/%2F"+F.slice(2)),O.push(F)}return x.query!==void 0&&O.push("?",x.query),x.fragment!==void 0&&O.push("#",x.fragment),O.join("")}const k=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(A,_){if(_[2]!==void 0&&A.path&&A.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof A.port=="number"&&(A.port<0||A.port>65535))return"URI port is malformed."}function v(A,_){const x=Object.assign({},_),E={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let O=!1,j=!1;x.reference==="suffix"&&(x.scheme?A=x.scheme+":"+A:A="//"+A);const T=A.match(k);if(T){E.scheme=T[1],E.userinfo=T[3],E.host=T[4],E.port=parseInt(T[5],10),E.path=T[6]||"",E.query=T[7],E.fragment=T[8],isNaN(E.port)&&(E.port=T[5]);const F=g(E,T);if(F!==void 0&&(E.error=E.error||F,O=!0),E.host)if(o(E.host)===!1){const Y=e(E.host);E.host=Y.host.toLowerCase(),j=Y.isIPV6}else j=!0;E.scheme===void 0&&E.userinfo===void 0&&E.host===void 0&&E.port===void 0&&E.query===void 0&&!E.path?E.reference="same-document":E.scheme===void 0?E.reference="relative":E.fragment===void 0?E.reference="absolute":E.reference="uri",x.reference&&x.reference!=="suffix"&&x.reference!==E.reference&&(E.error=E.error||"URI is not a "+x.reference+" reference.");const q=c(x.scheme||E.scheme);if(!x.unicodeSupport&&(!q||!q.unicodeSupport)&&E.host&&(x.domainHost||q&&q.domainHost)&&j===!1&&l(E.host))try{E.host=URL.domainToASCII(E.host.toLowerCase())}catch(J){E.error=E.error||"Host's domain name can not be converted to ASCII: "+J}if((!q||q&&!q.skipNormalize)&&(A.indexOf("%")!==-1&&(E.scheme!==void 0&&(E.scheme=unescape(E.scheme)),E.host!==void 0&&(E.host=s(unescape(E.host),j))),E.path&&(E.path=a(E.path)),E.fragment))try{E.fragment=encodeURI(decodeURIComponent(E.fragment))}catch{E.error=E.error||"URI malformed"}q&&q.parse&&q.parse(E,x)}else E.error=E.error||"URI can not be parsed.";return{parsed:E,malformedAuthorityOrPort:O}}function w(A,_){return v(A,_).parsed}function C(A,_){return h(A,_).normalized}function h(A,_){const{parsed:x,malformedAuthorityOrPort:E}=v(A,_);return{normalized:E?A:b(x,_),malformedAuthorityOrPort:E}}function y(A,_){if(typeof A=="string"){const{normalized:x,malformedAuthorityOrPort:E}=h(A,_);return E?void 0:x}if(typeof A=="object")return b(A,_)}const S={SCHEMES:u,normalize:f,resolve:m,resolveComponent:d,equal:p,serialize:b,parse:w};return Aa.exports=S,Aa.exports.default=S,Aa.exports.fastUri=S,Aa.exports}var Og;function AL(){if(Og)return Hs;Og=1,Object.defineProperty(Hs,"__esModule",{value:!0});const e=EL();return e.code='require("ajv/dist/runtime/uri").default',Hs.default=e,Hs}var _g;function OL(){return _g||(_g=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Dl();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ne();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const i=Dd(),a=Ml(),n=S1(),s=Md(),o=Ne(),l=Fl(),u=ll(),c=We(),f=SL,m=AL(),d=(P,D)=>new RegExp(P,D);d.code="new RegExp";const p=["removeAdditional","useDefaults","coerceTypes"],b=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),k={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."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},v=200;function w(P){var D,U,I,R,M,z,B,H,G,X,$,L,W,K,ie,re,ue,ge,we,ke,Pe,de,Ve,st,ve;const Z=P.strict,Q=(D=P.code)===null||D===void 0?void 0:D.optimize,ee=Q===!0||Q===void 0?1:Q||0,pe=(I=(U=P.code)===null||U===void 0?void 0:U.regExp)!==null&&I!==void 0?I:d,ce=(R=P.uriResolver)!==null&&R!==void 0?R:m.default;return{strictSchema:(z=(M=P.strictSchema)!==null&&M!==void 0?M:Z)!==null&&z!==void 0?z:!0,strictNumbers:(H=(B=P.strictNumbers)!==null&&B!==void 0?B:Z)!==null&&H!==void 0?H:!0,strictTypes:(X=(G=P.strictTypes)!==null&&G!==void 0?G:Z)!==null&&X!==void 0?X:"log",strictTuples:(L=($=P.strictTuples)!==null&&$!==void 0?$:Z)!==null&&L!==void 0?L:"log",strictRequired:(K=(W=P.strictRequired)!==null&&W!==void 0?W:Z)!==null&&K!==void 0?K:!1,code:P.code?{...P.code,optimize:ee,regExp:pe}:{optimize:ee,regExp:pe},loopRequired:(ie=P.loopRequired)!==null&&ie!==void 0?ie:v,loopEnum:(re=P.loopEnum)!==null&&re!==void 0?re:v,meta:(ue=P.meta)!==null&&ue!==void 0?ue:!0,messages:(ge=P.messages)!==null&&ge!==void 0?ge:!0,inlineRefs:(we=P.inlineRefs)!==null&&we!==void 0?we:!0,schemaId:(ke=P.schemaId)!==null&&ke!==void 0?ke:"$id",addUsedSchema:(Pe=P.addUsedSchema)!==null&&Pe!==void 0?Pe:!0,validateSchema:(de=P.validateSchema)!==null&&de!==void 0?de:!0,validateFormats:(Ve=P.validateFormats)!==null&&Ve!==void 0?Ve:!0,unicodeRegExp:(st=P.unicodeRegExp)!==null&&st!==void 0?st:!0,int32range:(ve=P.int32range)!==null&&ve!==void 0?ve:!0,uriResolver:ce}}class C{constructor(D={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,D=this.opts={...D,...w(D)};const{es5:U,lines:I}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:b,es5:U,lines:I}),this.logger=O(D.logger);const R=D.validateFormats;D.validateFormats=!1,this.RULES=(0,n.getRules)(),h.call(this,k,D,"NOT SUPPORTED"),h.call(this,g,D,"DEPRECATED","warn"),this._metaOpts=x.call(this),D.formats&&A.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),D.keywords&&_.call(this,D.keywords),typeof D.meta=="object"&&this.addMetaSchema(D.meta),S.call(this),D.validateFormats=R}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:D,meta:U,schemaId:I}=this.opts;let R=f;I==="id"&&(R={...f},R.id=R.$id,delete R.$id),U&&D&&this.addMetaSchema(R,R[I],!1)}defaultMeta(){const{meta:D,schemaId:U}=this.opts;return this.opts.defaultMeta=typeof D=="object"?D[U]||D:void 0}validate(D,U){let I;if(typeof D=="string"){if(I=this.getSchema(D),!I)throw new Error(`no schema with key or ref "${D}"`)}else I=this.compile(D);const R=I(U);return"$async"in I||(this.errors=I.errors),R}compile(D,U){const I=this._addSchema(D,U);return I.validate||this._compileSchemaEnv(I)}compileAsync(D,U){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:I}=this.opts;return R.call(this,D,U);async function R(X,$){await M.call(this,X.$schema);const L=this._addSchema(X,$);return L.validate||z.call(this,L)}async function M(X){X&&!this.getSchema(X)&&await R.call(this,{$ref:X},!0)}async function z(X){try{return this._compileSchemaEnv(X)}catch($){if(!($ instanceof a.default))throw $;return B.call(this,$),await H.call(this,$.missingSchema),z.call(this,X)}}function B({missingSchema:X,missingRef:$}){if(this.refs[X])throw new Error(`AnySchema ${X} is loaded but ${$} cannot be resolved`)}async function H(X){const $=await G.call(this,X);this.refs[X]||await M.call(this,$.$schema),this.refs[X]||this.addSchema($,X,U)}async function G(X){const $=this._loading[X];if($)return $;try{return await(this._loading[X]=I(X))}finally{delete this._loading[X]}}}addSchema(D,U,I,R=this.opts.validateSchema){if(Array.isArray(D)){for(const z of D)this.addSchema(z,void 0,I,R);return this}let M;if(typeof D=="object"){const{schemaId:z}=this.opts;if(M=D[z],M!==void 0&&typeof M!="string")throw new Error(`schema ${z} must be string`)}return U=(0,l.normalizeId)(U||M),this._checkUnique(U),this.schemas[U]=this._addSchema(D,I,U,R,!0),this}addMetaSchema(D,U,I=this.opts.validateSchema){return this.addSchema(D,U,!0,I),this}validateSchema(D,U){if(typeof D=="boolean")return!0;let I;if(I=D.$schema,I!==void 0&&typeof I!="string")throw new Error("$schema must be a string");if(I=I||this.opts.defaultMeta||this.defaultMeta(),!I)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const R=this.validate(I,D);if(!R&&U){const M="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(M);else throw new Error(M)}return R}getSchema(D){let U;for(;typeof(U=y.call(this,D))=="string";)D=U;if(U===void 0){const{schemaId:I}=this.opts,R=new s.SchemaEnv({schema:{},schemaId:I});if(U=s.resolveSchema.call(this,R,D),!U)return;this.refs[D]=U}return U.validate||this._compileSchemaEnv(U)}removeSchema(D){if(D instanceof RegExp)return this._removeAllSchemas(this.schemas,D),this._removeAllSchemas(this.refs,D),this;switch(typeof D){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const U=y.call(this,D);return typeof U=="object"&&this._cache.delete(U.schema),delete this.schemas[D],delete this.refs[D],this}case"object":{const U=D;this._cache.delete(U);let I=D[this.opts.schemaId];return I&&(I=(0,l.normalizeId)(I),delete this.schemas[I],delete this.refs[I]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(D){for(const U of D)this.addKeyword(U);return this}addKeyword(D,U){let I;if(typeof D=="string")I=D,typeof U=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),U.keyword=I);else if(typeof D=="object"&&U===void 0){if(U=D,I=U.keyword,Array.isArray(I)&&!I.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(T.call(this,I,U),!U)return(0,c.eachItem)(I,M=>F.call(this,M)),this;J.call(this,U);const R={...U,type:(0,u.getJSONTypes)(U.type),schemaType:(0,u.getJSONTypes)(U.schemaType)};return(0,c.eachItem)(I,R.type.length===0?M=>F.call(this,M,R):M=>R.type.forEach(z=>F.call(this,M,R,z))),this}getKeyword(D){const U=this.RULES.all[D];return typeof U=="object"?U.definition:!!U}removeKeyword(D){const{RULES:U}=this;delete U.keywords[D],delete U.all[D];for(const I of U.rules){const R=I.rules.findIndex(M=>M.keyword===D);R>=0&&I.rules.splice(R,1)}return this}addFormat(D,U){return typeof U=="string"&&(U=new RegExp(U)),this.formats[D]=U,this}errorsText(D=this.errors,{separator:U=", ",dataVar:I="data"}={}){return!D||D.length===0?"No errors":D.map(R=>`${I}${R.instancePath} ${R.message}`).reduce((R,M)=>R+U+M)}$dataMetaSchema(D,U){const I=this.RULES.all;D=JSON.parse(JSON.stringify(D));for(const R of U){const M=R.split("/").slice(1);let z=D;for(const B of M)z=z[B];for(const B in I){const H=I[B];if(typeof H!="object")continue;const{$data:G}=H.definition,X=z[B];G&&X&&(z[B]=te(X))}}return D}_removeAllSchemas(D,U){for(const I in D){const R=D[I];(!U||U.test(I))&&(typeof R=="string"?delete D[I]:R&&!R.meta&&(this._cache.delete(R.schema),delete D[I]))}}_addSchema(D,U,I,R=this.opts.validateSchema,M=this.opts.addUsedSchema){let z;const{schemaId:B}=this.opts;if(typeof D=="object")z=D[B];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof D!="boolean")throw new Error("schema must be object or boolean")}let H=this._cache.get(D);if(H!==void 0)return H;I=(0,l.normalizeId)(z||I);const G=l.getSchemaRefs.call(this,D,I);return H=new s.SchemaEnv({schema:D,schemaId:B,meta:U,baseId:I,localRefs:G}),this._cache.set(H.schema,H),M&&!I.startsWith("#")&&(I&&this._checkUnique(I),this.refs[I]=H),R&&this.validateSchema(D,!0),H}_checkUnique(D){if(this.schemas[D]||this.refs[D])throw new Error(`schema with key or id "${D}" already exists`)}_compileSchemaEnv(D){if(D.meta?this._compileMetaSchema(D):s.compileSchema.call(this,D),!D.validate)throw new Error("ajv implementation error");return D.validate}_compileMetaSchema(D){const U=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,D)}finally{this.opts=U}}}C.ValidationError=i.default,C.MissingRefError=a.default,e.default=C;function h(P,D,U,I="error"){for(const R in P){const M=R;M in D&&this.logger[I](`${U}: option ${R}. ${P[M]}`)}}function y(P){return P=(0,l.normalizeId)(P),this.schemas[P]||this.refs[P]}function S(){const P=this.opts.schemas;if(P)if(Array.isArray(P))this.addSchema(P);else for(const D in P)this.addSchema(P[D],D)}function A(){for(const P in this.opts.formats){const D=this.opts.formats[P];D&&this.addFormat(P,D)}}function _(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const D in P){const U=P[D];U.keyword||(U.keyword=D),this.addKeyword(U)}}function x(){const P={...this.opts};for(const D of p)delete P[D];return P}const E={log(){},warn(){},error(){}};function O(P){if(P===!1)return E;if(P===void 0)return console;if(P.log&&P.warn&&P.error)return P;throw new Error("logger must implement log, warn and error methods")}const j=/^[a-z_$][a-z0-9_$:-]*$/i;function T(P,D){const{RULES:U}=this;if((0,c.eachItem)(P,I=>{if(U.keywords[I])throw new Error(`Keyword ${I} is already defined`);if(!j.test(I))throw new Error(`Keyword ${I} has invalid name`)}),!!D&&D.$data&&!("code"in D||"validate"in D))throw new Error('$data keyword must have "code" or "validate" function')}function F(P,D,U){var I;const R=D==null?void 0:D.post;if(U&&R)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:M}=this;let z=R?M.post:M.rules.find(({type:H})=>H===U);if(z||(z={type:U,rules:[]},M.rules.push(z)),M.keywords[P]=!0,!D)return;const B={keyword:P,definition:{...D,type:(0,u.getJSONTypes)(D.type),schemaType:(0,u.getJSONTypes)(D.schemaType)}};D.before?q.call(this,z,B,D.before):z.rules.push(B),M.all[P]=B,(I=D.implements)===null||I===void 0||I.forEach(H=>this.addKeyword(H))}function q(P,D,U){const I=P.rules.findIndex(R=>R.keyword===U);I>=0?P.rules.splice(I,0,D):(P.rules.push(D),this.logger.warn(`rule ${U} is not defined`))}function J(P){let{metaSchema:D}=P;D!==void 0&&(P.$data&&this.opts.$data&&(D=te(D)),P.validateSchema=this.compile(D,!0))}const Y={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function te(P){return{anyOf:[P,Y]}}})(Gu)),Gu}var Ks={},Ws={},Gs={},Pg;function _L(){if(Pg)return Gs;Pg=1,Object.defineProperty(Gs,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Gs.default=e,Gs}var yn={},Ig;function PL(){if(Ig)return yn;Ig=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.callRef=yn.getValidate=void 0;const e=Ml(),t=Nr(),r=Ne(),i=Un(),a=Md(),n=We(),s={keyword:"$ref",schemaType:"string",code(u){const{gen:c,schema:f,it:m}=u,{baseId:d,schemaEnv:p,validateName:b,opts:k,self:g}=m,{root:v}=p;if((f==="#"||f==="#/")&&d===v.baseId)return C();const w=a.resolveRef.call(g,v,d,f);if(w===void 0)throw new e.default(m.opts.uriResolver,d,f);if(w instanceof a.SchemaEnv)return h(w);return y(w);function C(){if(p===v)return l(u,b,p,p.$async);const S=c.scopeValue("root",{ref:v});return l(u,(0,r._)`${S}.validate`,v,v.$async)}function h(S){const A=o(u,S);l(u,A,S,S.$async)}function y(S){const A=c.scopeValue("schema",k.code.source===!0?{ref:S,code:(0,r.stringify)(S)}:{ref:S}),_=c.name("valid"),x=u.subschema({schema:S,dataTypes:[],schemaPath:r.nil,topSchemaRef:A,errSchemaPath:f},_);u.mergeEvaluated(x),u.ok(_)}}};function o(u,c){const{gen:f}=u;return c.validate?f.scopeValue("validate",{ref:c.validate}):(0,r._)`${f.scopeValue("wrapper",{ref:c})}.validate`}yn.getValidate=o;function l(u,c,f,m){const{gen:d,it:p}=u,{allErrors:b,schemaEnv:k,opts:g}=p,v=g.passContext?i.default.this:r.nil;m?w():C();function w(){if(!k.$async)throw new Error("async schema referenced by sync schema");const S=d.let("valid");d.try(()=>{d.code((0,r._)`await ${(0,t.callValidateCode)(u,c,v)}`),y(c),b||d.assign(S,!0)},A=>{d.if((0,r._)`!(${A} instanceof ${p.ValidationError})`,()=>d.throw(A)),h(A),b||d.assign(S,!1)}),u.ok(S)}function C(){u.result((0,t.callValidateCode)(u,c,v),()=>y(c),()=>h(c))}function h(S){const A=(0,r._)`${S}.errors`;d.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${A} : ${i.default.vErrors}.concat(${A})`),d.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function y(S){var A;if(!p.opts.unevaluated)return;const _=(A=f==null?void 0:f.validate)===null||A===void 0?void 0:A.evaluated;if(p.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(p.props=n.mergeEvaluated.props(d,_.props,p.props));else{const x=d.var("props",(0,r._)`${S}.evaluated.props`);p.props=n.mergeEvaluated.props(d,x,p.props,r.Name)}if(p.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(p.items=n.mergeEvaluated.items(d,_.items,p.items));else{const x=d.var("items",(0,r._)`${S}.evaluated.items`);p.items=n.mergeEvaluated.items(d,x,p.items,r.Name)}}}return yn.callRef=l,yn.default=s,yn}var Tg;function IL(){if(Tg)return Ws;Tg=1,Object.defineProperty(Ws,"__esModule",{value:!0});const e=_L(),t=PL(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Ws.default=r,Ws}var Js={},Ys={},jg;function TL(){if(jg)return Ys;jg=1,Object.defineProperty(Ys,"__esModule",{value:!0});const e=Ne(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},i={message:({keyword:n,schemaCode:s})=>(0,e.str)`must be ${r[n].okStr} ${s}`,params:({keyword:n,schemaCode:s})=>(0,e._)`{comparison: ${r[n].okStr}, limit: ${s}}`},a={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:i,code(n){const{keyword:s,data:o,schemaCode:l}=n;n.fail$data((0,e._)`${o} ${r[s].fail} ${l} || isNaN(${o})`)}};return Ys.default=a,Ys}var Xs={},Rg;function jL(){if(Rg)return Xs;Rg=1,Object.defineProperty(Xs,"__esModule",{value:!0});const e=Ne(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:i})=>(0,e.str)`must be multiple of ${i}`,params:({schemaCode:i})=>(0,e._)`{multipleOf: ${i}}`},code(i){const{gen:a,data:n,schemaCode:s,it:o}=i,l=o.opts.multipleOfPrecision,u=a.let("res"),c=l?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${l}`:(0,e._)`${u} !== parseInt(${u})`;i.fail$data((0,e._)`(${s} === 0 || (${u} = ${n}/${s}, ${c}))`)}};return Xs.default=r,Xs}var Zs={},Qs={},Ng;function RL(){if(Ng)return Qs;Ng=1,Object.defineProperty(Qs,"__esModule",{value:!0});function e(t){const r=t.length;let i=0,a=0,n;for(;a<r;)i++,n=t.charCodeAt(a++),n>=55296&&n<=56319&&a<r&&(n=t.charCodeAt(a),(n&64512)===56320&&a++);return i}return Qs.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Qs}var Fg;function NL(){if(Fg)return Zs;Fg=1,Object.defineProperty(Zs,"__esModule",{value:!0});const e=Ne(),t=We(),r=RL(),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:s}){const o=n==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${s} characters`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:s,data:o,schemaCode:l,it:u}=n,c=s==="maxLength"?e.operators.GT:e.operators.LT,f=u.opts.unicode===!1?(0,e._)`${o}.length`:(0,e._)`${(0,t.useFunc)(n.gen,r.default)}(${o})`;n.fail$data((0,e._)`${f} ${c} ${l}`)}};return Zs.default=a,Zs}var eo={},Dg;function FL(){if(Dg)return eo;Dg=1,Object.defineProperty(eo,"__esModule",{value:!0});const e=Nr(),t=We(),r=Ne(),a={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,r.str)`must match pattern "${n}"`,params:({schemaCode:n})=>(0,r._)`{pattern: ${n}}`},code(n){const{gen:s,data:o,$data:l,schema:u,schemaCode:c,it:f}=n,m=f.opts.unicodeRegExp?"u":"";if(l){const{regExp:d}=f.opts.code,p=d.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,d),b=s.let("valid");s.try(()=>s.assign(b,(0,r._)`${p}(${c}, ${m}).test(${o})`),()=>s.assign(b,!1)),n.fail$data((0,r._)`!${b}`)}else{const d=(0,e.usePattern)(n,u);n.fail$data((0,r._)`!${d}.test(${o})`)}}};return eo.default=a,eo}var to={},Mg;function DL(){if(Mg)return to;Mg=1,Object.defineProperty(to,"__esModule",{value:!0});const e=Ne(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:a}){const n=i==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${a} properties`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},code(i){const{keyword:a,data:n,schemaCode:s}=i,o=a==="maxProperties"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`Object.keys(${n}).length ${o} ${s}`)}};return to.default=r,to}var ro={},Lg;function ML(){if(Lg)return ro;Lg=1,Object.defineProperty(ro,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=We(),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:n}})=>(0,t.str)`must have required property '${n}'`,params:({params:{missingProperty:n}})=>(0,t._)`{missingProperty: ${n}}`},code(n){const{gen:s,schema:o,schemaCode:l,data:u,$data:c,it:f}=n,{opts:m}=f;if(!c&&o.length===0)return;const d=o.length>=m.loopRequired;if(f.allErrors?p():b(),m.strictRequired){const v=n.parentSchema.properties,{definedProperties:w}=n.it;for(const C of o)if((v==null?void 0:v[C])===void 0&&!w.has(C)){const h=f.schemaEnv.baseId+f.errSchemaPath,y=`required property "${C}" is not defined at "${h}" (strictRequired)`;(0,r.checkStrictMode)(f,y,f.opts.strictRequired)}}function p(){if(d||c)n.block$data(t.nil,k);else for(const v of o)(0,e.checkReportMissingProp)(n,v)}function b(){const v=s.let("missing");if(d||c){const w=s.let("valid",!0);n.block$data(w,()=>g(v,w)),n.ok(w)}else s.if((0,e.checkMissingProp)(n,o,v)),(0,e.reportMissingProp)(n,v),s.else()}function k(){s.forOf("prop",l,v=>{n.setParams({missingProperty:v}),s.if((0,e.noPropertyInData)(s,u,v,m.ownProperties),()=>n.error())})}function g(v,w){n.setParams({missingProperty:v}),s.forOf(v,l,()=>{s.assign(w,(0,e.propertyInData)(s,u,v,m.ownProperties)),s.if((0,t.not)(w),()=>{n.error(),s.break()})},t.nil)}}};return ro.default=a,ro}var no={},qg;function LL(){if(qg)return no;qg=1,Object.defineProperty(no,"__esModule",{value:!0});const e=Ne(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:a}){const n=i==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${n} than ${a} items`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},code(i){const{keyword:a,data:n,schemaCode:s}=i,o=a==="maxItems"?e.operators.GT:e.operators.LT;i.fail$data((0,e._)`${n}.length ${o} ${s}`)}};return no.default=r,no}var io={},ao={},zg;function Ld(){if(zg)return ao;zg=1,Object.defineProperty(ao,"__esModule",{value:!0});const e=E1();return e.code='require("ajv/dist/runtime/equal").default',ao.default=e,ao}var $g;function qL(){if($g)return io;$g=1,Object.defineProperty(io,"__esModule",{value:!0});const e=ll(),t=Ne(),r=We(),i=Ld(),n={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:o}})=>(0,t.str)`must NOT have duplicate items (items ## ${o} and ${s} are identical)`,params:({params:{i:s,j:o}})=>(0,t._)`{i: ${s}, j: ${o}}`},code(s){const{gen:o,data:l,$data:u,schema:c,parentSchema:f,schemaCode:m,it:d}=s;if(!u&&!c)return;const p=o.let("valid"),b=f.items?(0,e.getSchemaTypes)(f.items):[];s.block$data(p,k,(0,t._)`${m} === false`),s.ok(p);function k(){const C=o.let("i",(0,t._)`${l}.length`),h=o.let("j");s.setParams({i:C,j:h}),o.assign(p,!0),o.if((0,t._)`${C} > 1`,()=>(g()?v:w)(C,h))}function g(){return b.length>0&&!b.some(C=>C==="object"||C==="array")}function v(C,h){const y=o.name("item"),S=(0,e.checkDataTypes)(b,y,d.opts.strictNumbers,e.DataType.Wrong),A=o.const("indices",(0,t._)`{}`);o.for((0,t._)`;${C}--;`,()=>{o.let(y,(0,t._)`${l}[${C}]`),o.if(S,(0,t._)`continue`),b.length>1&&o.if((0,t._)`typeof ${y} == "string"`,(0,t._)`${y} += "_"`),o.if((0,t._)`typeof ${A}[${y}] == "number"`,()=>{o.assign(h,(0,t._)`${A}[${y}]`),s.error(),o.assign(p,!1).break()}).code((0,t._)`${A}[${y}] = ${C}`)})}function w(C,h){const y=(0,r.useFunc)(o,i.default),S=o.name("outer");o.label(S).for((0,t._)`;${C}--;`,()=>o.for((0,t._)`${h} = ${C}; ${h}--;`,()=>o.if((0,t._)`${y}(${l}[${C}], ${l}[${h}])`,()=>{s.error(),o.assign(p,!1).break(S)})))}}};return io.default=n,io}var so={},Ug;function zL(){if(Ug)return so;Ug=1,Object.defineProperty(so,"__esModule",{value:!0});const e=Ne(),t=We(),r=Ld(),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:n})=>(0,e._)`{allowedValue: ${n}}`},code(n){const{gen:s,data:o,$data:l,schemaCode:u,schema:c}=n;l||c&&typeof c=="object"?n.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${o}, ${u})`):n.fail((0,e._)`${c} !== ${o}`)}};return so.default=a,so}var oo={},Bg;function $L(){if(Bg)return oo;Bg=1,Object.defineProperty(oo,"__esModule",{value:!0});const e=Ne(),t=We(),r=Ld(),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:n})=>(0,e._)`{allowedValues: ${n}}`},code(n){const{gen:s,data:o,$data:l,schema:u,schemaCode:c,it:f}=n;if(!l&&u.length===0)throw new Error("enum must have non-empty array");const m=u.length>=f.opts.loopEnum;let d;const p=()=>d??(d=(0,t.useFunc)(s,r.default));let b;if(m||l)b=s.let("valid"),n.block$data(b,k);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const v=s.const("vSchema",c);b=(0,e.or)(...u.map((w,C)=>g(v,C)))}n.pass(b);function k(){s.assign(b,!1),s.forOf("v",c,v=>s.if((0,e._)`${p()}(${o}, ${v})`,()=>s.assign(b,!0).break()))}function g(v,w){const C=u[w];return typeof C=="object"&&C!==null?(0,e._)`${p()}(${o}, ${v}[${w}])`:(0,e._)`${o} === ${C}`}}};return oo.default=a,oo}var Vg;function UL(){if(Vg)return Js;Vg=1,Object.defineProperty(Js,"__esModule",{value:!0});const e=TL(),t=jL(),r=NL(),i=FL(),a=DL(),n=ML(),s=LL(),o=qL(),l=zL(),u=$L(),c=[e.default,t.default,r.default,i.default,a.default,n.default,s.default,o.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,u.default];return Js.default=c,Js}var lo={},Ri={},Hg;function O1(){if(Hg)return Ri;Hg=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.validateAdditionalItems=void 0;const e=Ne(),t=We(),i={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:n}})=>(0,e.str)`must NOT have more than ${n} items`,params:({params:{len:n}})=>(0,e._)`{limit: ${n}}`},code(n){const{parentSchema:s,it:o}=n,{items:l}=s;if(!Array.isArray(l)){(0,t.checkStrictMode)(o,'"additionalItems" is ignored when "items" is not an array of schemas');return}a(n,l)}};function a(n,s){const{gen:o,schema:l,data:u,keyword:c,it:f}=n;f.items=!0;const m=o.const("len",(0,e._)`${u}.length`);if(l===!1)n.setParams({len:s.length}),n.pass((0,e._)`${m} <= ${s.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(f,l)){const p=o.var("valid",(0,e._)`${m} <= ${s.length}`);o.if((0,e.not)(p),()=>d(p)),n.ok(p)}function d(p){o.forRange("i",s.length,m,b=>{n.subschema({keyword:c,dataProp:b,dataPropType:t.Type.Num},p),f.allErrors||o.if((0,e.not)(p),()=>o.break())})}}return Ri.validateAdditionalItems=a,Ri.default=i,Ri}var uo={},Ni={},Kg;function _1(){if(Kg)return Ni;Kg=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.validateTuple=void 0;const e=Ne(),t=We(),r=Nr(),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(n){const{schema:s,it:o}=n;if(Array.isArray(s))return a(n,"additionalItems",s);o.items=!0,!(0,t.alwaysValidSchema)(o,s)&&n.ok((0,r.validateArray)(n))}};function a(n,s,o=n.schema){const{gen:l,parentSchema:u,data:c,keyword:f,it:m}=n;b(u),m.opts.unevaluated&&o.length&&m.items!==!0&&(m.items=t.mergeEvaluated.items(l,o.length,m.items));const d=l.name("valid"),p=l.const("len",(0,e._)`${c}.length`);o.forEach((k,g)=>{(0,t.alwaysValidSchema)(m,k)||(l.if((0,e._)`${p} > ${g}`,()=>n.subschema({keyword:f,schemaProp:g,dataProp:g},d)),n.ok(d))});function b(k){const{opts:g,errSchemaPath:v}=m,w=o.length,C=w===k.minItems&&(w===k.maxItems||k[s]===!1);if(g.strictTuples&&!C){const h=`"${f}" is ${w}-tuple, but minItems or maxItems/${s} are not specified or different at path "${v}"`;(0,t.checkStrictMode)(m,h,g.strictTuples)}}}return Ni.validateTuple=a,Ni.default=i,Ni}var Wg;function BL(){if(Wg)return uo;Wg=1,Object.defineProperty(uo,"__esModule",{value:!0});const e=_1(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return uo.default=t,uo}var co={},Gg;function VL(){if(Gg)return co;Gg=1,Object.defineProperty(co,"__esModule",{value:!0});const e=Ne(),t=We(),r=Nr(),i=O1(),n={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:o,parentSchema:l,it:u}=s,{prefixItems:c}=l;u.items=!0,!(0,t.alwaysValidSchema)(u,o)&&(c?(0,i.validateAdditionalItems)(s,c):s.ok((0,r.validateArray)(s)))}};return co.default=n,co}var fo={},Jg;function HL(){if(Jg)return fo;Jg=1,Object.defineProperty(fo,"__esModule",{value:!0});const e=Ne(),t=We(),i={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:a,max:n}})=>n===void 0?(0,e.str)`must contain at least ${a} valid item(s)`:(0,e.str)`must contain at least ${a} and no more than ${n} valid item(s)`,params:({params:{min:a,max:n}})=>n===void 0?(0,e._)`{minContains: ${a}}`:(0,e._)`{minContains: ${a}, maxContains: ${n}}`},code(a){const{gen:n,schema:s,parentSchema:o,data:l,it:u}=a;let c,f;const{minContains:m,maxContains:d}=o;u.opts.next?(c=m===void 0?1:m,f=d):c=1;const p=n.const("len",(0,e._)`${l}.length`);if(a.setParams({min:c,max:f}),f===void 0&&c===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&c>f){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),a.fail();return}if((0,t.alwaysValidSchema)(u,s)){let w=(0,e._)`${p} >= ${c}`;f!==void 0&&(w=(0,e._)`${w} && ${p} <= ${f}`),a.pass(w);return}u.items=!0;const b=n.name("valid");f===void 0&&c===1?g(b,()=>n.if(b,()=>n.break())):c===0?(n.let(b,!0),f!==void 0&&n.if((0,e._)`${l}.length > 0`,k)):(n.let(b,!1),k()),a.result(b,()=>a.reset());function k(){const w=n.name("_valid"),C=n.let("count",0);g(w,()=>n.if(w,()=>v(C)))}function g(w,C){n.forRange("i",0,p,h=>{a.subschema({keyword:"contains",dataProp:h,dataPropType:t.Type.Num,compositeRule:!0},w),C()})}function v(w){n.code((0,e._)`${w}++`),f===void 0?n.if((0,e._)`${w} >= ${c}`,()=>n.assign(b,!0).break()):(n.if((0,e._)`${w} > ${f}`,()=>n.assign(b,!1).break()),c===1?n.assign(b,!0):n.if((0,e._)`${w} >= ${c}`,()=>n.assign(b,!0)))}}};return fo.default=i,fo}var nc={},Yg;function KL(){return Yg||(Yg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ne(),r=We(),i=Nr();e.error={message:({params:{property:l,depsCount:u,deps:c}})=>{const f=u===1?"property":"properties";return(0,t.str)`must have ${f} ${c} when property ${l} is present`},params:({params:{property:l,depsCount:u,deps:c,missingProperty:f}})=>(0,t._)`{property: ${l},
|
|
103
129
|
missingProperty: ${f},
|
|
104
|
-
depsCount: ${
|
|
105
|
-
deps: ${u}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[l,u]=n(c);s(c,l),o(c,u)}};function n({schema:c}){const l={},u={};for(const f in c){if(f==="__proto__")continue;const m=Array.isArray(c[f])?l:u;m[f]=c[f]}return[l,u]}function s(c,l=c.schema){const{gen:u,data:f,it:m}=c;if(Object.keys(l).length===0)return;const d=u.let("missing");for(const h in l){const k=l[h];if(k.length===0)continue;const v=(0,a.propertyInData)(u,f,h,m.opts.ownProperties);c.setParams({property:h,depsCount:k.length,deps:k.join(", ")}),m.allErrors?u.if(v,()=>{for(const y of k)(0,a.checkReportMissingProp)(c,y)}):(u.if((0,t._)`${v} && (${(0,a.checkMissingProp)(c,k,d)})`),(0,a.reportMissingProp)(c,d),u.else())}}e.validatePropertyDeps=s;function o(c,l=c.schema){const{gen:u,data:f,keyword:m,it:d}=c,h=u.name("valid");for(const k in l)(0,r.alwaysValidSchema)(d,l[k])||(u.if((0,a.propertyInData)(u,f,k,d.opts.ownProperties),()=>{const v=c.subschema({keyword:m,schemaProp:k},h);c.mergeValidEvaluated(v,h)},()=>u.var(h,!0)),c.ok(h))}e.validateSchemaDeps=o,e.default=i})(Iu)),Iu}var nl={},Kg;function GN(){if(Kg)return nl;Kg=1,Object.defineProperty(nl,"__esModule",{value:!0});const e=Be(),t=et(),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:n,schema:s,data:o,it:c}=i;if((0,t.alwaysValidSchema)(c,s))return;const l=n.name("valid");n.forIn("key",o,u=>{i.setParams({propertyName:u}),i.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},l),n.if((0,e.not)(l),()=>{i.error(!0),c.allErrors||n.break()})}),i.ok(l)}};return nl.default=a,nl}var al={},Gg;function o0(){if(Gg)return al;Gg=1,Object.defineProperty(al,"__esModule",{value:!0});const e=mn(),t=Be(),r=Aa(),a=et(),n={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:o,schema:c,parentSchema:l,data:u,errsCount:f,it:m}=s;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:h}=m;if(m.props=!0,h.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(m,c))return;const k=(0,e.allSchemaProperties)(l.properties),v=(0,e.allSchemaProperties)(l.patternProperties);y(),s.ok((0,t._)`${f} === ${r.default.errors}`);function y(){o.forIn("key",u,g=>{!k.length&&!v.length?E(g):o.if(b(g),()=>E(g))})}function b(g){let S;if(k.length>8){const C=(0,a.schemaRefOrVal)(m,l.properties,"properties");S=(0,e.isOwnProperty)(o,C,g)}else k.length?S=(0,t.or)(...k.map(C=>(0,t._)`${g} === ${C}`)):S=t.nil;return v.length&&(S=(0,t.or)(S,...v.map(C=>(0,t._)`${(0,e.usePattern)(s,C)}.test(${g})`))),(0,t.not)(S)}function w(g){o.code((0,t._)`delete ${u}[${g}]`)}function E(g){if(h.removeAdditional==="all"||h.removeAdditional&&c===!1){w(g);return}if(c===!1){s.setParams({additionalProperty:g}),s.error(),d||o.break();return}if(typeof c=="object"&&!(0,a.alwaysValidSchema)(m,c)){const S=o.name("valid");h.removeAdditional==="failing"?(p(g,S,!1),o.if((0,t.not)(S),()=>{s.reset(),w(g)})):(p(g,S),d||o.if((0,t.not)(S),()=>o.break()))}}function p(g,S,C){const O={keyword:"additionalProperties",dataProp:g,dataPropType:a.Type.Str};C===!1&&Object.assign(O,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(O,S)}}};return al.default=n,al}var il={},Jg;function JN(){if(Jg)return il;Jg=1,Object.defineProperty(il,"__esModule",{value:!0});const e=Sc(),t=mn(),r=et(),a=o0(),i={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,parentSchema:c,data:l,it:u}=n;u.opts.removeAdditional==="all"&&c.additionalProperties===void 0&&a.default.code(new e.KeywordCxt(u,a.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(o);for(const v of f)u.definedProperties.add(v);u.opts.unevaluated&&f.length&&u.props!==!0&&(u.props=r.mergeEvaluated.props(s,(0,r.toHash)(f),u.props));const m=f.filter(v=>!(0,r.alwaysValidSchema)(u,o[v]));if(m.length===0)return;const d=s.name("valid");for(const v of m)h(v)?k(v):(s.if((0,t.propertyInData)(s,l,v,u.opts.ownProperties)),k(v),u.allErrors||s.else().var(d,!0),s.endIf()),n.it.definedProperties.add(v),n.ok(d);function h(v){return u.opts.useDefaults&&!u.compositeRule&&o[v].default!==void 0}function k(v){n.subschema({keyword:"properties",schemaProp:v,dataProp:v},d)}}};return il.default=i,il}var sl={},Yg;function YN(){if(Yg)return sl;Yg=1,Object.defineProperty(sl,"__esModule",{value:!0});const e=mn(),t=Be(),r=et(),a=et(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,data:c,parentSchema:l,it:u}=n,{opts:f}=u,m=(0,e.allSchemaProperties)(o),d=m.filter(E=>(0,r.alwaysValidSchema)(u,o[E]));if(m.length===0||d.length===m.length&&(!u.opts.unevaluated||u.props===!0))return;const h=f.strictSchema&&!f.allowMatchingProperties&&l.properties,k=s.name("valid");u.props!==!0&&!(u.props instanceof t.Name)&&(u.props=(0,a.evaluatedPropsToName)(s,u.props));const{props:v}=u;y();function y(){for(const E of m)h&&b(E),u.allErrors?w(E):(s.var(k,!0),w(E),s.if(k))}function b(E){for(const p in h)new RegExp(E).test(p)&&(0,r.checkStrictMode)(u,`property ${p} matches pattern ${E} (use allowMatchingProperties)`)}function w(E){s.forIn("key",c,p=>{s.if((0,t._)`${(0,e.usePattern)(n,E)}.test(${p})`,()=>{const g=d.includes(E);g||n.subschema({keyword:"patternProperties",schemaProp:E,dataProp:p,dataPropType:a.Type.Str},k),u.opts.unevaluated&&v!==!0?s.assign((0,t._)`${v}[${p}]`,!0):!g&&!u.allErrors&&s.if((0,t.not)(k),()=>s.break())})})}}};return sl.default=i,sl}var ol={},Xg;function XN(){if(Xg)return ol;Xg=1,Object.defineProperty(ol,"__esModule",{value:!0});const e=et(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:a,schema:i,it:n}=r;if((0,e.alwaysValidSchema)(n,i)){r.fail();return}const s=a.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return ol.default=t,ol}var ll={},Zg;function ZN(){if(Zg)return ll;Zg=1,Object.defineProperty(ll,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:mn().validateUnion,error:{message:"must match a schema in anyOf"}};return ll.default=t,ll}var cl={},Qg;function QN(){if(Qg)return cl;Qg=1,Object.defineProperty(cl,"__esModule",{value:!0});const e=Be(),t=et(),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:n,schema:s,parentSchema:o,it:c}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(c.opts.discriminator&&o.discriminator)return;const l=s,u=n.let("valid",!1),f=n.let("passing",null),m=n.name("_valid");i.setParams({passing:f}),n.block(d),i.result(u,()=>i.reset(),()=>i.error(!0));function d(){l.forEach((h,k)=>{let v;(0,t.alwaysValidSchema)(c,h)?n.var(m,!0):v=i.subschema({keyword:"oneOf",schemaProp:k,compositeRule:!0},m),k>0&&n.if((0,e._)`${m} && ${u}`).assign(u,!1).assign(f,(0,e._)`[${f}, ${k}]`).else(),n.if(m,()=>{n.assign(u,!0),n.assign(f,k),v&&i.mergeEvaluated(v,e.Name)})})}}};return cl.default=a,cl}var ul={},ey;function ej(){if(ey)return ul;ey=1,Object.defineProperty(ul,"__esModule",{value:!0});const e=et(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:a,schema:i,it:n}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const s=a.name("valid");i.forEach((o,c)=>{if((0,e.alwaysValidSchema)(n,o))return;const l=r.subschema({keyword:"allOf",schemaProp:c},s);r.ok(s),r.mergeEvaluated(l)})}};return ul.default=t,ul}var fl={},ty;function tj(){if(ty)return fl;ty=1,Object.defineProperty(fl,"__esModule",{value:!0});const e=Be(),t=et(),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:n})=>(0,e.str)`must match "${n.ifClause}" schema`,params:({params:n})=>(0,e._)`{failingKeyword: ${n.ifClause}}`},code(n){const{gen:s,parentSchema:o,it:c}=n;o.then===void 0&&o.else===void 0&&(0,t.checkStrictMode)(c,'"if" without "then" and "else" is ignored');const l=i(c,"then"),u=i(c,"else");if(!l&&!u)return;const f=s.let("valid",!0),m=s.name("_valid");if(d(),n.reset(),l&&u){const k=s.let("ifClause");n.setParams({ifClause:k}),s.if(m,h("then",k),h("else",k))}else l?s.if(m,h("then")):s.if((0,e.not)(m),h("else"));n.pass(f,()=>n.error(!0));function d(){const k=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},m);n.mergeEvaluated(k)}function h(k,v){return()=>{const y=n.subschema({keyword:k},m);s.assign(f,m),n.mergeValidEvaluated(y,f),v?s.assign(v,(0,e._)`${k}`):n.setParams({ifClause:k})}}}};function i(n,s){const o=n.schema[s];return o!==void 0&&!(0,t.alwaysValidSchema)(n,o)}return fl.default=a,fl}var dl={},ry;function rj(){if(ry)return dl;ry=1,Object.defineProperty(dl,"__esModule",{value:!0});const e=et(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:a,it:i}){a.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return dl.default=t,dl}var ny;function nj(){if(ny)return Qo;ny=1,Object.defineProperty(Qo,"__esModule",{value:!0});const e=i0(),t=VN(),r=s0(),a=HN(),i=WN(),n=KN(),s=GN(),o=o0(),c=JN(),l=YN(),u=XN(),f=ZN(),m=QN(),d=ej(),h=tj(),k=rj();function v(y=!1){const b=[u.default,f.default,m.default,d.default,h.default,k.default,s.default,o.default,n.default,c.default,l.default];return y?b.push(t.default,a.default):b.push(e.default,r.default),b.push(i.default),b}return Qo.default=v,Qo}var ml={},pl={},ay;function aj(){if(ay)return pl;ay=1,Object.defineProperty(pl,"__esModule",{value:!0});const e=Be(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,e.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,e._)`{format: ${a}}`},code(a,i){const{gen:n,data:s,$data:o,schema:c,schemaCode:l,it:u}=a,{opts:f,errSchemaPath:m,schemaEnv:d,self:h}=u;if(!f.validateFormats)return;o?k():v();function k(){const y=n.scopeValue("formats",{ref:h.formats,code:f.code.formats}),b=n.const("fDef",(0,e._)`${y}[${l}]`),w=n.let("fType"),E=n.let("format");n.if((0,e._)`typeof ${b} == "object" && !(${b} instanceof RegExp)`,()=>n.assign(w,(0,e._)`${b}.type || "string"`).assign(E,(0,e._)`${b}.validate`),()=>n.assign(w,(0,e._)`"string"`).assign(E,b)),a.fail$data((0,e.or)(p(),g()));function p(){return f.strictSchema===!1?e.nil:(0,e._)`${l} && !${E}`}function g(){const S=d.$async?(0,e._)`(${b}.async ? await ${E}(${s}) : ${E}(${s}))`:(0,e._)`${E}(${s})`,C=(0,e._)`(typeof ${E} == "function" ? ${S} : ${E}.test(${s}))`;return(0,e._)`${E} && ${E} !== true && ${w} === ${i} && !${C}`}}function v(){const y=h.formats[c];if(!y){p();return}if(y===!0)return;const[b,w,E]=g(y);b===i&&a.pass(S());function p(){if(f.strictSchema===!1){h.logger.warn(C());return}throw new Error(C());function C(){return`unknown format "${c}" ignored in schema at path "${m}"`}}function g(C){const O=C instanceof RegExp?(0,e.regexpCode)(C):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(c)}`:void 0,_=n.scopeValue("formats",{key:c,ref:C,code:O});return typeof C=="object"&&!(C instanceof RegExp)?[C.type||"string",C.validate,(0,e._)`${_}.validate`]:["string",C,_]}function S(){if(typeof y=="object"&&!(y instanceof RegExp)&&y.async){if(!d.$async)throw new Error("async format in sync schema");return(0,e._)`await ${E}(${s})`}return typeof w=="function"?(0,e._)`${E}(${s})`:(0,e._)`${E}.test(${s})`}}}};return pl.default=r,pl}var iy;function ij(){if(iy)return ml;iy=1,Object.defineProperty(ml,"__esModule",{value:!0});const t=[aj().default];return ml.default=t,ml}var La={},sy;function sj(){return sy||(sy=1,Object.defineProperty(La,"__esModule",{value:!0}),La.contentVocabulary=La.metadataVocabulary=void 0,La.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],La.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),La}var oy;function oj(){if(oy)return Mo;oy=1,Object.defineProperty(Mo,"__esModule",{value:!0});const e=IN(),t=BN(),r=nj(),a=ij(),i=sj(),n=[e.default,t.default,(0,r.default)(),a.default,i.metadataVocabulary,i.contentVocabulary];return Mo.default=n,Mo}var hl={},ps={},ly;function lj(){if(ly)return ps;ly=1,Object.defineProperty(ps,"__esModule",{value:!0}),ps.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(ps.DiscrError=e={})),ps}var cy;function cj(){if(cy)return hl;cy=1,Object.defineProperty(hl,"__esModule",{value:!0});const e=Be(),t=lj(),r=lm(),a=Ec(),i=et(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:o,tagName:c}})=>o===t.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:o,tag:c,tagName:l}})=>(0,e._)`{error: ${o}, tag: ${l}, tagValue: ${c}}`},code(o){const{gen:c,data:l,schema:u,parentSchema:f,it:m}=o,{oneOf:d}=f;if(!m.opts.discriminator)throw new Error("discriminator: requires discriminator option");const h=u.propertyName;if(typeof h!="string")throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const k=c.let("valid",!1),v=c.const("tag",(0,e._)`${l}${(0,e.getProperty)(h)}`);c.if((0,e._)`typeof ${v} == "string"`,()=>y(),()=>o.error(!1,{discrError:t.DiscrError.Tag,tag:v,tagName:h})),o.ok(k);function y(){const E=w();c.if(!1);for(const p in E)c.elseIf((0,e._)`${v} === ${p}`),c.assign(k,b(E[p]));c.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:h}),c.endIf()}function b(E){const p=c.name("valid"),g=o.subschema({keyword:"oneOf",schemaProp:E},p);return o.mergeEvaluated(g,e.Name),p}function w(){var E;const p={},g=C(f);let S=!0;for(let x=0;x<d.length;x++){let A=d[x];if(A!=null&&A.$ref&&!(0,i.schemaHasRulesButRef)(A,m.self.RULES)){const I=A.$ref;if(A=r.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,I),A instanceof r.SchemaEnv&&(A=A.schema),A===void 0)throw new a.default(m.opts.uriResolver,m.baseId,I)}const N=(E=A==null?void 0:A.properties)===null||E===void 0?void 0:E[h];if(typeof N!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${h}"`);S=S&&(g||C(A)),O(N,x)}if(!S)throw new Error(`discriminator: "${h}" must be required`);return p;function C({required:x}){return Array.isArray(x)&&x.includes(h)}function O(x,A){if(x.const)_(x.const,A);else if(x.enum)for(const N of x.enum)_(N,A);else throw new Error(`discriminator: "properties/${h}" must have "const" or "enum"`)}function _(x,A){if(typeof x!="string"||x in p)throw new Error(`discriminator: "${h}" values must be unique strings`);p[x]=A}}}};return hl.default=s,hl}const uj="http://json-schema.org/draft-07/schema#",fj="http://json-schema.org/draft-07/schema#",dj="Core schema meta-schema",mj={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},pj=["object","boolean"],hj={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},gj={$schema:uj,$id:fj,title:dj,definitions:mj,type:pj,properties:hj,default:!0};var uy;function l0(){return uy||(uy=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=ON(),a=oj(),i=cj(),n=gj,s=["/properties"],o="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),a.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const h=this.opts.$data?this.$dataMetaSchema(n,s):n;this.addMetaSchema(h,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var l=Sc();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var u=Be();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=om();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=Ec();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(Ro,Ro.exports)),Ro.exports}var yj=l0();const vj=Pn(yj);var gl={exports:{}},Ru={},fy;function bj(){return fy||(fy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(O,_){return{validate:O,compare:_}}e.fullFormats={date:t(n,s),time:t(c,l),"date-time":t(f,m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:k,"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:C,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:y,int32:{type:"number",validate:E},int64:{type:"number",validate:p},float:{type:"number",validate:g},double:{type:"number",validate:g},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(O){return O%4===0&&(O%100!==0||O%400===0)}const a=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function n(O){const _=a.exec(O);if(!_)return!1;const x=+_[1],A=+_[2],N=+_[3];return A>=1&&A<=12&&N>=1&&N<=(A===2&&r(x)?29:i[A])}function s(O,_){if(O&&_)return O>_?1:O<_?-1:0}const o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function c(O,_){const x=o.exec(O);if(!x)return!1;const A=+x[1],N=+x[2],I=+x[3],F=x[5];return(A<=23&&N<=59&&I<=59||A===23&&N===59&&I===60)&&(!_||F!=="")}function l(O,_){if(!(O&&_))return;const x=o.exec(O),A=o.exec(_);if(x&&A)return O=x[1]+x[2]+x[3]+(x[4]||""),_=A[1]+A[2]+A[3]+(A[4]||""),O>_?1:O<_?-1:0}const u=/t|\s/i;function f(O){const _=O.split(u);return _.length===2&&n(_[0])&&c(_[1],!0)}function m(O,_){if(!(O&&_))return;const[x,A]=O.split(u),[N,I]=_.split(u),F=s(x,N);if(F!==void 0)return F||l(A,I)}const d=/\/|:/,h=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function k(O){return d.test(O)&&h.test(O)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function y(O){return v.lastIndex=0,v.test(O)}const b=-2147483648,w=2**31-1;function E(O){return Number.isInteger(O)&&O<=w&&O>=b}function p(O){return Number.isInteger(O)}function g(){return!0}const S=/[^\\]\\Z/;function C(O){if(S.test(O))return!1;try{return new RegExp(O),!0}catch{return!1}}})(Ru)),Ru}var Nu={},dy;function kj(){return dy||(dy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=l0(),r=Be(),a=r.operators,i={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}},n={message:({keyword:o,schemaCode:c})=>r.str`should be ${i[o].okStr} ${c}`,params:({keyword:o,schemaCode:c})=>r._`{comparison: ${i[o].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:n,code(o){const{gen:c,data:l,schemaCode:u,keyword:f,it:m}=o,{opts:d,self:h}=m;if(!d.validateFormats)return;const k=new t.KeywordCxt(m,h.RULES.all.format.definition,"format");k.$data?v():y();function v(){const w=c.scopeValue("formats",{ref:h.formats,code:d.code.formats}),E=c.const("fmt",r._`${w}[${k.schemaCode}]`);o.fail$data(r.or(r._`typeof ${E} != "object"`,r._`${E} instanceof RegExp`,r._`typeof ${E}.compare != "function"`,b(E)))}function y(){const w=k.schema,E=h.formats[w];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const p=c.scopeValue("formats",{key:w,ref:E,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});o.fail$data(b(p))}function b(w){return r._`${w}.compare(${l}, ${u}) ${i[f].fail} 0`}},dependencies:["format"]};const s=o=>(o.addKeyword(e.formatLimitDefinition),o);e.default=s})(Nu)),Nu}var my;function wj(){return my||(my=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=bj(),a=kj(),i=Be(),n=new i.Name("fullFormats"),s=new i.Name("fastFormats"),o=(l,u={keywords:!0})=>{if(Array.isArray(u))return c(l,u,r.fullFormats,n),l;const[f,m]=u.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,n],d=u.formats||r.formatNames;return c(l,d,f,m),u.keywords&&a.default(l),l};o.get=(l,u="full")=>{const m=(u==="fast"?r.fastFormats:r.fullFormats)[l];if(!m)throw new Error(`Unknown format "${l}"`);return m};function c(l,u,f,m){var d,h;(d=(h=l.opts.code).formats)!==null&&d!==void 0||(h.formats=i._`require("ajv-formats/dist/formats").${m}`);for(const k of u)l.addFormat(k,f[k])}e.exports=t=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o})(gl,gl.exports)),gl.exports}var Sj=wj();const py=Pn(Sj),Ej={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},xj=/^(#?([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*\)))$/,Cj=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Aj(e,t,r={},a,i=vj,n){let s=new i({...Ej,...r});return a?py(s,a):a!==!1&&py(s),s.addFormat("data-url",Cj),s.addFormat("color",xj),s.addKeyword(xd),Array.isArray(e)&&s.addMetaSchema(e),Xe(t)&&Object.keys(t).forEach(o=>{s.addFormat(o,t[o])}),n&&(s=n(s)),s}class _j{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:a,customFormats:i,ajvOptionsOverrides:n,ajvFormatOptions:s,AjvClass:o,extenderFn:c,suppressDuplicateFiltering:l}=t;this.ajv=Aj(a,i,n,s,o,c),this.localizer=r,this.suppressDuplicateFiltering=l}reset(){this.ajv.removeSchema(),this.lastSeenRootSchema=void 0,this.hasRegisteredRootSchema=!1}rawValidation(t,r){var a,i;let n,s;try{t[pt]&&(s=this.ajv.getSchema(t[pt])),s===void 0&&(s=this.ajv.compile(t)),s(r)}catch(c){n=c}let o;return s&&(typeof this.localizer=="function"&&(((a=s.errors)!==null&&a!==void 0?a:[]).forEach(c=>{var l;["missingProperty","property"].forEach(u=>{var f;!((f=c.params)===null||f===void 0)&&f[u]&&(c.params[u]=`'${c.params[u]}'`)}),!((l=c.params)===null||l===void 0)&&l.deps&&(c.params.deps=c.params.deps.split(", ").map(u=>`'${u}'`).join(", "))}),this.localizer(s.errors),((i=s.errors)!==null&&i!==void 0?i:[]).forEach(c=>{var l;["missingProperty","property"].forEach(u=>{var f;!((f=c.params)===null||f===void 0)&&f[u]&&(c.params[u]=c.params[u].slice(1,-1))}),!((l=c.params)===null||l===void 0)&&l.deps&&(c.params.deps=c.params.deps.split(", ").map(u=>u.slice(1,-1)).join(", "))})),o=s.errors||void 0,s.errors=null),{errors:o,validationError:n}}validateFormData(t,r,a,i,n){const s=this.rawValidation(r,t);return dN(this,s,t,r,a,i,n,this.suppressDuplicateFiltering)}handleSchemaUpdate(t){var r,a;if(this.lastSeenRootSchema===t&&this.hasRegisteredRootSchema)return;const i=(r=t[pt])!==null&&r!==void 0?r:tb;this.ajv.getSchema(i)===void 0?this.ajv.addSchema(t,i):Je(t,(a=this.ajv.getSchema(i))===null||a===void 0?void 0:a.schema)||(this.ajv.removeSchema(i),this.ajv.addSchema(t,i)),this.lastSeenRootSchema=t,this.hasRegisteredRootSchema=!0}isValid(t,r,a){var i;try{this.handleSchemaUpdate(a);const n=em(t),s=(i=n[pt])!==null&&i!==void 0?i:dT(n);let o;return o=this.ajv.getSchema(s),o===void 0&&(o=this.ajv.addSchema(n,s).getSchema(s)||this.ajv.compile(n)),o(r)}catch(n){return console.warn("Error encountered compiling schema:",n),!1}}}function Rl(e={},t){return new _j(e,t)}Rl();var ju,hy;function Oj(){return hy||(hy=1,ju=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"additionalProperties":n="must NOT have additional properties";break;case"anyOf":n='must match a schema in "anyOf"';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="must have propert",a==1?n+="y":n+="ies",n+=" "+i.params.deps+" when property "+i.params.property+" is present";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="must be equal to one of the allowed values";break;case"false schema":n="boolean schema is false";break;case"format":n='must match format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"maxItems":n="";var a=i.params.limit;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="must NOT be longer than "+a+" character",a!=1&&(n+="s");break;case"maxProperties":n="";var a=i.params.limit;n+="must NOT have more than "+a+" propert",a==1?n+="y":n+="ies";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"minItems":n="";var a=i.params.limit;n+="must NOT have less than "+a+" item",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="must NOT be shorter than "+a+" character",a!=1&&(n+="s");break;case"minProperties":n="";var a=i.params.limit;n+="must NOT have less than "+a+" propert",a==1?n+="y":n+="ies";break;case"multipleOf":n="must be a multiple of "+i.params.multipleOf;break;case"not":n='must NOT be valid according to schema in "not"';break;case"oneOf":n='must match exactly one schema in "oneOf"';break;case"pattern":n='must match pattern "'+i.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="must have required property "+i.params.missingProperty;break;case"type":n="must be "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="must NOT have duplicate items (items ## "+i.params.j+" and "+i.params.i+" are identical)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}),ju}var Du,gy;function Tj(){return gy||(gy=1,Du=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" عنصر";break;case"additionalProperties":n="يجب أن لا يحوي خصائص إضافية";break;case"anyOf":n='يجب أن يوافق أحد المخططات الموجودة في "anyOf"';break;case"const":n="يجب أن يكون ثابتاً";break;case"contains":n="يجب أن يحوي عنصرا صحيح";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=" يجب أن يحوي الخصائص "+i.params.deps+" عندما تكون الخاصية "+i.params.property+" موجودة";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+i.keyword+'"'}break;case"enum":n="قيمة هذا الحقل يجب أن تكون مساوية لأحد القيم المعرفة مسبقاً";break;case"false schema":n="المخطط المنطقي غير صحيح";break;case"format":n='يجب أن يوافق الصيغة "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"if":n='يجب أن توافق المخطط "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"maxItems":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" عنصر";break;case"maxLength":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" محرف";break;case"maxProperties":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أكثر من "+a+" خصائص";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" يجب أن يكون "+r;break;case"minItems":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أقل من "+a+" عنصر";break;case"minLength":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أقل من "+a+" محرف";break;case"minProperties":n="";var a=i.params.limit;n+=" يجب أن لا يحوي أقل من "+a+" خصائص";break;case"multipleOf":n=" يجب أن يحوي أكثر من "+i.params.multipleOf;break;case"not":n='يجب أن يكون غير صحيح وفقاً للمخطط "not"';break;case"oneOf":n='يجب أن يوافق مخطط واحد فقط موجود في "oneOf"';break;case"pattern":n='يجب أن يوافق النمط "'+i.params.pattern+'"';break;case"patternRequired":n='يجب أن يحوي خاصية توافق النمط "'+i.params.missingPattern+'"';break;case"propertyNames":n="اسم الخاصية غير صالح";break;case"required":n="هذا الحقل إلزامي";break;case"type":n="قيمة هذا الحقل غير صالحة";break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="يجب أن لا يحوي عناصر مكررة (العنصر ## "+i.params.j+" و "+i.params.i+" متطابقة)";break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+i.keyword+'"'}i.message=n}}),Du}var Fu,yy;function Pj(){return yy||(yy=1,Fu=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="no ha de tenir més de "+a+" element",a!=1&&(n+="s");break;case"additionalProperties":n="no ha de tenir propietats addicionals";break;case"anyOf":n='ha de coincidir amb algun esquema definit a "anyOf"';break;case"const":n="ha de ser igual a la constant";break;case"contains":n="ha de contenir un ítem vàlid";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="ha de contenir la propietat",a!=1&&(n+="s"),n+=" "+i.params.deps+" quan la propietat "+i.params.property+" és present";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='ha de passar la validació de la clau "'+i.keyword+'"'}break;case"enum":n="ha de ser igual a un dels valors predefinits";break;case"false schema":n="l’esquema és fals";break;case"format":n='ha de coincidir amb el format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"if":n='ha de correspondre’s amb l’esquema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"maxItems":n="";var a=i.params.limit;n+="no ha de tenir més de "+a+" ítem",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="no pot contenir més de "+a+" caràcter",a!=1&&(n+="s");break;case"maxProperties":n="";var a=i.params.limit;n+="no pot contenir més de "+a+" propietat",a!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ha de ser "+r;break;case"minItems":n="";var a=i.params.limit;n+="no ha de tenir menys de "+a+" ítem",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="no pot contenir menys de "+a+" caràcter",a!=1&&(n+="s");break;case"minProperties":n="";var a=i.params.limit;n+="no pot contenir menys de "+a+" propietat",a!=1&&(n+="s");break;case"multipleOf":n="ha de ser múltiple de "+i.params.multipleOf;break;case"not":n='no ha de ser vàlid d’acord amb l’esquema definit a "not"';break;case"oneOf":n='ha de coincidir només amb un esquema definit a "oneOf"';break;case"pattern":n='ha de coincidir amb el patró "'+i.params.pattern+'"';break;case"patternRequired":n='la propietat ha de coincidir amb el patró "'+i.params.missingPattern+'"';break;case"propertyNames":n="la propietat no és vàlida";break;case"required":n="ha de tenir la propietat requerida "+i.params.missingProperty;break;case"type":n="ha de ser del tipus "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no ha de tenir ítems duplicats (els ítems ## "+i.params.j+" i "+i.params.i+" són idèntics)";break;default:n='ha de passar la validació de la clau "'+i.keyword+'"'}i.message=n}}),Fu}var Mu,vy;function Ij(){return vy||(vy=1,Mu=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nemůže mít víc, než "+a+" prv",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ků";break;case"additionalProperties":n="nemůže mít další položky";break;case"anyOf":n='musí vyhovět alespoň jednomu schématu v "anyOf"';break;case"const":n="musí být roven konstantě";break;case"contains":n="musí obsahovat prvek odpovídající schématu";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="musí mít polož",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ka",n+=": "+i.params.deps+", pokud obsahuje "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='musí vyhovět "'+i.keyword+'" validaci'}break;case"enum":n="musí být rovno jedné hodnotě z výčtu";break;case"false schema":n="schéma je false";break;case"format":n='musí být ve formátu "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"if":n='musí vyhovět "'+i.params.failingKeyword+'" schématu';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nesmí obsahovat víc než "+a+" prv",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ků";break;case"maxLength":n="";var a=i.params.limit;n+="nesmí být delší než "+a+" zna",a>=2&&a<=4?n+="ky":a!=1?n+="k":n+="ků";break;case"maxProperties":n="";var a=i.params.limit;n+="nesmí mít víc než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí být "+r;break;case"minItems":n="";var a=i.params.limit;n+="nesmí obsahovat méně než "+a+" prv",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ků";break;case"minLength":n="";var a=i.params.limit;n+="nesmí být kratší než "+a+" zna",a>=2&&a<=4?n+="ky":a!=1?n+="k":n+="ků";break;case"minProperties":n="";var a=i.params.limit;n+="nesmí mít méně než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="ek":n+="ka";break;case"multipleOf":n="musí být násobkem "+i.params.multipleOf;break;case"not":n='nesmí vyhovět schématu v "not"';break;case"oneOf":n='musí vyhovět právě jednomu schématu v "oneOf"';break;case"pattern":n='musí vyhovět regulárnímu výrazu "'+i.params.pattern+'"';break;case"patternRequired":n='musí obsahovat položku vyhovující regulárnímu výrazu "'+i.params.missingPattern+'"';break;case"propertyNames":n="název položky není platný";break;case"required":n="musí obsahovat požadovanou položku "+i.params.missingProperty;break;case"type":n="musí být "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmí obsahovat duplicitní prvky (prvky ## "+i.params.j+" a "+i.params.i+" jsou identické)";break;default:n='musí vyhovět "'+i.keyword+'" validaci'}i.message=n}}),Mu}var Lu,by;function Rj(){return by||(by=1,Lu=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="darf nicht mehr als "+a+" Element",a!=1&&(n+="e"),n+=" enthalten";break;case"additionalProperties":n="darf keine zusätzlichen Attribute haben";break;case"anyOf":n='muss einem der Schemata in "anyOf" entsprechen';break;case"const":n="muss gleich der Konstanten sein";break;case"contains":n="muss ein valides Element enthalten";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="muss Attribut",a!=1&&(n+="e"),n+=" "+i.params.deps+" aufweisen, wenn Attribut "+i.params.property+" gesetzt ist";break;case"discriminator":switch(i.params.error){case"tag":n='der Tag "'+i.params.tag+'" muss eine Zeichenkette sein';break;case"mapping":n='der Wert vom Tag "'+i.params.tag+'" muss im oneOf enthalten sein';break;default:n='muss die Validierung "'+i.keyword+'" bestehen'}break;case"enum":n="muss einem der vorgegebenen Werte entsprechen";break;case"false schema":n="boolesches Schema ist falsch";break;case"format":n='muss diesem Format entsprechen: "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"if":n='muss dem Schema "'+i.params.failingKeyword+'" entsprechen';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"maxItems":n="";var a=i.params.limit;n+="darf nicht mehr als "+a+" Element",a!=1&&(n+="e"),n+=" haben";break;case"maxLength":n="";var a=i.params.limit;n+="darf nicht länger als "+a+" Zeichen sein";break;case"maxProperties":n="";var a=i.params.limit;n+="darf nicht mehr als "+a+" Attribut",a!=1&&(n+="e"),n+=" haben";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="muss "+r+" sein";break;case"minItems":n="";var a=i.params.limit;n+="darf nicht weniger als "+a+" Element",a!=1&&(n+="e"),n+=" haben";break;case"minLength":n="";var a=i.params.limit;n+="darf nicht kürzer als "+a+" Zeichen sein";break;case"minProperties":n="";var a=i.params.limit;n+="darf nicht weniger als "+a+" Attribut",a!=1&&(n+="e"),n+=" haben";break;case"multipleOf":n="muss ein Vielfaches von "+i.params.multipleOf+" sein";break;case"not":n='muss dem in "not" angegebenen Schema widersprechen';break;case"oneOf":n='muss genau einem der Schemata in "oneOf" entsprechen';break;case"pattern":n='muss diesem Muster entsprechen: "'+i.params.pattern+'"';break;case"patternRequired":n='muss ein Attribut nach folgendem Muster haben "'+i.params.missingPattern+'"';break;case"propertyNames":n="Attributname ist ungültig";break;case"required":n="muss das erforderliche Attribut "+i.params.missingProperty+" enthalten";break;case"type":n="muss sein: "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="darf nicht mehr als "+a+" Element",a!=1&&(n+="e"),n+=" haben";break;case"unevaluatedProperties":n="darf keine unausgewerteten Attribute haben";break;case"uniqueItems":n="darf keine Duplikate enthalten (Elemente #"+i.params.j+" und #"+i.params.i+" sind gleich)";break;default:n='muss die Validierung "'+i.keyword+'" bestehen'}i.message=n}}),Lu}var qu,ky;function Nj(){return ky||(ky=1,qu=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="no debe tener más de "+a+" elemento",a!=1&&(n+="s");break;case"additionalProperties":n="no debe tener propiedades adicionales";break;case"anyOf":n='debe coincidir con algún esquema en "anyOf"';break;case"const":n="debe ser igual a la constante";break;case"contains":n="debe contener un elemento válido";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="debe contener la",a!=1&&(n+="s"),n+=" propiedad",a!=1&&(n+="es"),n+=" "+i.params.deps+" cuando la propiedad "+i.params.property+" se encuentra presente";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='debe pasar la validación de palabra clave "'+i.keyword+'"'}break;case"enum":n="deber ser igual a uno de los valores predefinidos";break;case"false schema":n="el esquema és falso";break;case"format":n='debe coincidir con el formato "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"if":n='debe corresponderse con el esquema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"maxItems":n="";var a=i.params.limit;n+="no debe contener más de "+a+" elemento",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="no debe contener más de "+a+" caracter",a!=1&&(n+="es");break;case"maxProperties":n="";var a=i.params.limit;n+="no debe contener más de "+a+" propiedad",a!=1&&(n+="es");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="debe ser "+r;break;case"minItems":n="";var a=i.params.limit;n+="no debe contener menos de "+a+" elemento",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="no debe contener menos de "+a+" caracter",a!=1&&(n+="es");break;case"minProperties":n="";var a=i.params.limit;n+="no debe contener menos de "+a+" propiedad",a!=1&&(n+="es");break;case"multipleOf":n="debe ser múltiplo de "+i.params.multipleOf;break;case"not":n='no debe ser válido según el esquema en "not"';break;case"oneOf":n='debe coincidir con un solo esquema en "oneOf"';break;case"pattern":n='debe coincidir con el patron "'+i.params.pattern+'"';break;case"patternRequired":n='la propiedad debe coincidir con el patrón "'+i.params.missingPattern+'"';break;case"propertyNames":n="la propiedad no és válida";break;case"required":n="debe tener la propiedad requerida "+i.params.missingProperty;break;case"type":n="debe ser "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no debe contener elementos duplicados, (los elementos ## "+i.params.j+" y "+i.params.i+" son idénticos)";break;default:n='debe pasar la validación de palabra clave "'+i.keyword+'"'}i.message=n}}),qu}var zu,wy;function jj(){return wy||(wy=1,zu=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var i=n.params.limit;s+="saa sisältää enintään "+i,i==1?s+=":n elementin":s+=" elementtiä";break;case"additionalProperties":s="ei saa sisältää ylimääräisiä ominaisuuksia";break;case"anyOf":s='täytyy vastata "anyOf" skeemaa';break;case"const":s="täytyy olla yhtä kuin vakio";break;case"contains":s="täytyy sisältää kelvollinen elementti";break;case"dependencies":case"dependentRequired":s="";var i=n.params.depsCount;s+="täytyy sisältää "+n.params.deps+" ominaisuu",i==1?s+="s":s+="det",s+=" kun "+n.params.property+"-ominaisuus on läsnä";break;case"discriminator":switch(n.params.error){case"tag":s='tunniste "'+n.params.tag+'" täytyy olla merkkijono';break;case"mapping":s='tunnisteen "'+n.params.tag+'" arvon muoto pitää olla oneOf';break;default:s='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}break;case"enum":s="täytyy olla yhtä kuin jokin sallituista arvoista";break;case"false schema":s="boolean skeema on väärä";break;case"format":s='täytyy vastata muotoa "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"if":s='täytyy vastata "'+n.params.failingKeyword+'" skeemaa';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"maxItems":s="";var i=n.params.limit;s+="tulee sisältää enintään "+i+" ",i==1?s+="elementti":s+="elementtiä";break;case"maxLength":s="";var i=n.params.limit;s+="ei saa olla pidempi kuin "+i+" merkki",i!=1&&(s+="ä");break;case"maxProperties":s="";var i=n.params.limit;s+="tulee sisältää enintään "+i+" ",i==1?s+="ominaisuus":s+="ominaisuutta";break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"minItems":s="";var i=n.params.limit;s+="tulee sisältää vähintään "+i+" ",i==1?s+="elementti":s+="elementtiä";break;case"minLength":s="";var i=n.params.limit;s+="ei saa olla lyhyempi kuin "+i+" merkki",i!=1&&(s+="ä");break;case"minProperties":s="";var i=n.params.limit;s+="tulee sisältää vähintään "+i+" ",i==1?s+="ominaisuus":s+="ominaisuutta";break;case"multipleOf":s="täytyy olla moninkertainen: "+n.params.multipleOf;break;case"not":s='ei saa olla hyväksytty skeeman "not" mukaan';break;case"oneOf":s='täytyy vastata täsmälleen yhtä "oneOf" -kohdassa määriteltyä skeemaa';break;case"pattern":s='täytyy vastata muotoa "'+n.params.pattern+'"';break;case"patternRequired":s='täytyy sisältää ominaisuus joka vastaa kaavaa "'+n.params.missingPattern+'"';break;case"propertyNames":s="ominaisuuden nimi on virheellinen";break;case"required":s="täytyy sisältää vaadittu ominaisuus "+n.params.missingProperty;break;case"type":s="";var a=n.params.type;s+="täytyy olla ",a=="number"?s+="numero":a=="integer"?s+="kokonaisluku":a=="string"?s+="merkkijono":a=="boolean"?s+="boolean":s+=a;break;case"unevaluatedItems":s="";var i=n.params.len;s+="ei saa olla enemmän kuin "+i+" elementti",i!=1&&(s+="ä");break;case"unevaluatedProperties":s="ei saa sisältää arvioimattomia ominaisuuksia";break;case"uniqueItems":s="ei saa sisältää duplikaatteja (elementit ## "+n.params.j+" ja "+n.params.i+" ovat identtiset)";break;default:s='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}n.message=s}}),zu}var $u,Sy;function Dj(){return Sy||(Sy=1,$u=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="ne doit pas contenir plus de "+a+" élémént",a!=1&&(n+="s");break;case"additionalProperties":n="ne doit pas contenir de propriétés additionnelles";break;case"anyOf":n='doit correspondre à un schéma de "anyOf"';break;case"const":n="doit être égal à la constante";break;case"contains":n="doit contenir un élément valide";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="doit avoir la propriété "+i.params.deps+" quand la propriété "+i.params.property+" est présente";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='doit être valide selon le critère "'+i.keyword+'"'}break;case"enum":n="doit être égal à une des valeurs prédéfinies";break;case"false schema":n='le schema est "false"';break;case"format":n='doit correspondre au format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"if":n='doit correspondre au schéma "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"maxItems":n="";var a=i.params.limit;n+="ne doit pas contenir plus de "+a+" élément",a!=1&&(n+="s");break;case"maxLength":n="";var a=i.params.limit;n+="ne doit pas dépasser "+a+" caractère",a!=1&&(n+="s");break;case"maxProperties":n="";var a=i.params.limit;n+="ne doit pas contenir plus de "+a+" propriété",a!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="doit être "+r;break;case"minItems":n="";var a=i.params.limit;n+="ne doit pas contenir moins de "+a+" élément",a!=1&&(n+="s");break;case"minLength":n="";var a=i.params.limit;n+="ne doit pas faire moins de "+a+" caractère",a!=1&&(n+="s");break;case"minProperties":n="";var a=i.params.limit;n+="ne doit pas contenir moins de "+a+" propriété",a!=1&&(n+="s");break;case"multipleOf":n="doit être un multiple de "+i.params.multipleOf;break;case"not":n='est invalide selon le schéma "not"';break;case"oneOf":n='doit correspondre à exactement un schéma de "oneOf"';break;case"pattern":n='doit correspondre au format "'+i.params.pattern+'"';break;case"patternRequired":n='la propriété doit correspondre au format "'+i.params.missingPattern+'"';break;case"propertyNames":n="le nom de propriété est invalide";break;case"required":n="requiert la propriété "+i.params.missingProperty;break;case"type":n="doit être de type "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="ne doit pas contenir de doublons (les éléments ## "+i.params.j+" et "+i.params.i+" sont identiques)";break;default:n='doit être valide selon le critère "'+i.keyword+'"'}i.message=n}}),$u}var Uu,Ey;function Fj(){return Ey||(Ey=1,Uu=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nem lehet több, mint "+a+" eleme";break;case"additionalProperties":n="nem lehetnek további elemei";break;case"anyOf":n='meg kell feleljen legalább egy "anyOf" alaknak';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="-nak kell legyen",a>1&&(n+="ek"),n+=" a következő tulajdonsága",a!=1&&(n+="i"),n+=": "+i.params.deps+", ha van "+i.params.property+" tulajdonsága";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="egyenlő kell legyen valamely előre meghatározott értékkel";break;case"false schema":n="boolean schema is false";break;case"format":n='meg kell feleljen a következő formátumnak: "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="kell legyen "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nem lehet több, mint "+a+" eleme";break;case"maxLength":n="";var a=i.params.limit;n+="nem lehet hosszabb, mint "+a+" szimbólum";break;case"maxProperties":n="";var a=i.params.limit;n+="nem lehet több, mint "+a+" tulajdonsága";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="kell legyen "+r;break;case"minItems":n="";var a=i.params.limit;n+="nem lehet kevesebb, mint "+a+" eleme";break;case"minLength":n="";var a=i.params.limit;n+="nem lehet rövidebb, mint "+a+" szimbólum";break;case"minProperties":n="";var a=i.params.limit;n+="nem lehet kevesebb, mint "+a+" tulajdonsága";break;case"multipleOf":n="a többszöröse kell legyen a következő számnak: "+i.params.multipleOf;break;case"not":n='nem lehet érvényes a "not" alaknak megfelelően';break;case"oneOf":n='meg kell feleljen pontosan egy "oneOf" alaknak';break;case"pattern":n='meg kell feleljen a következő mintának: "'+i.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="kell legyen "+i.params.missingProperty+" tulajdonsága";break;case"type":n=""+i.params.type+" kell legyen";break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nem lehetnek azonos elemei ("+i.params.j+" és "+i.params.i+" elemek azonosak)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}),Uu}var Bu,xy;function Mj(){return xy||(xy=1,Bu=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+=" tidak boleh memiliki lebih dari "+a+" item";break;case"additionalProperties":n="tidak boleh memiliki properti tambahan";break;case"anyOf":n='harus cocok dengan beberapa skema pada "anyOf"';break;case"const":n="harus sama dengan konstan";break;case"contains":n="harus berisi item yang valid";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=" harus memiliki properti "+i.params.deps+" ketika properti "+i.params.property+" hadir";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='harus lulus validasi kata kunci "'+i.keyword+'"'}break;case"enum":n="harus sama dengan salah satu dari nilai yang telah ditentukan";break;case"false schema":n="skema boolean salah";break;case"format":n='harus cocok dengan format "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"if":n='harus cocok dengan skema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"maxItems":n="";var a=i.params.limit;n+=" tidak boleh memiliki lebih dari "+a+" item";break;case"maxLength":n="";var a=i.params.limit;n+=" tidak boleh lebih dari "+a+" karakter";break;case"maxProperties":n="";var a=i.params.limit;n+=" tidak boleh memiliki lebih dari "+a+" properti";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="harus "+r;break;case"minItems":n="";var a=i.params.limit;n+=" tidak boleh kurang dari "+a+" item";break;case"minLength":n="";var a=i.params.limit;n+=" tidak boleh lebih pendek dari "+a+" karakter";break;case"minProperties":n="";var a=i.params.limit;n+=" tidak boleh kurang dari "+a+" properti";break;case"multipleOf":n="harus merupakan kelipatan dari "+i.params.multipleOf;break;case"not":n='tidak boleh valid sesuai dengan skema pada "not"';break;case"oneOf":n='harus sama persis dengan satu skema pada "oneOf"';break;case"pattern":n='harus cocok dengan pola "'+i.params.pattern+'"';break;case"patternRequired":n='harus memiliki pola pencocokan properti "'+i.params.missingPattern+'"';break;case"propertyNames":n="nama properti tidak valid";break;case"required":n="harus memiliki properti "+i.params.missingProperty;break;case"type":n="harus berupa "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="tidak boleh memiliki item duplikat (item ## "+i.params.j+" dan "+i.params.i+" identik)";break;default:n='harus lulus validasi kata kunci "'+i.keyword+'"'}i.message=n}}),Bu}var Vu,Cy;function Lj(){return Cy||(Cy=1,Vu=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="non dovrebbe avere più di "+a+" element",a==1?n+="o":n+="i";break;case"additionalProperties":n="non deve avere attributi aggiuntivi";break;case"anyOf":n='deve corrispondere ad uno degli schema in "anyOf"';break;case"const":n="deve essere uguale alla costante";break;case"contains":n="deve contentere un elemento valido";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="dovrebbe avere ",a==1?n+="l'":n+="gli ",n+="attribut",a==1?n+="o":n+="i",n+=" "+i.params.deps+" quando l'attributo "+i.params.property+" è presente";break;case"discriminator":switch(i.params.error){case"tag":n='il tag "'+i.params.tag+'" deve essere di tipo stringa';break;case"mapping":n='il valore del tag "'+i.params.tag+'" deve essere nei oneOf';break;default:n='deve essere valido secondo il criterio "'+i.keyword+'"'}break;case"enum":n="deve essere uguale ad uno dei valori consentiti";break;case"false schema":n="lo schema booleano è falso";break;case"format":n='deve corrispondere al formato "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"if":n='deve corrispondere allo schema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"maxItems":n="";var a=i.params.limit;n+="non deve avere più di "+a+" element",a==1?n+="o":n+="i";break;case"maxLength":n="";var a=i.params.limit;n+="non deve essere più lungo di "+a+" caratter",a==1?n+="e":n+="i";break;case"maxProperties":n="";var a=i.params.limit;n+="non deve avere più di "+a+" attribut",a==1?n+="o":n+="i";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="deve essere "+r;break;case"minItems":n="";var a=i.params.limit;n+="non deve avere meno di "+a+" element",a==1?n+="o":n+="i";break;case"minLength":n="";var a=i.params.limit;n+="non deve essere meno lungo di "+a+" caratter",a==1?n+="e":n+="i";break;case"minProperties":n="";var a=i.params.limit;n+="non deve avere meno di "+a+" attribut",a==1?n+="o":n+="i";break;case"multipleOf":n="deve essere un multiplo di "+i.params.multipleOf;break;case"not":n='non deve essere valido in base allo schema di "non"';break;case"oneOf":n='deve corrispondere esattamente ad uno degli schema in "oneOf"';break;case"pattern":n='deve corrispondere al formato "'+i.params.pattern+'"';break;case"patternRequired":n='deve avere un attributo che corrisponda al formato "'+i.params.missingPattern+'"';break;case"propertyNames":n="il nome dell'attritbuto non è valido";break;case"required":n="deve avere l'attributo obbligatorio "+i.params.missingProperty;break;case"type":n="deve essere di tipo "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="non deve avere più di "+a+" elementi",a==1?n+="o":n+="i";break;case"unevaluatedProperties":n="non deve avere attributi non valutati";break;case"uniqueItems":n="non deve avere duplicati (gli elementi ## "+i.params.j+" e "+i.params.i+" sono uguali)";break;default:n='deve essere valido secondo il criterio "'+i.keyword+'"'}i.message=n}}),Vu}var Hu,Ay;function qj(){return Ay||(Ay=1,Hu=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="は"+a+"以上あってはいけない";break;case"additionalProperties":n="追加してはいけない";break;case"anyOf":n='"anyOf"のスキーマとマッチしなくてはいけない';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n=""+i.params.property+"がある場合、";var a=i.params.depsCount;n+="は"+i.params.deps+"をつけなければいけない";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='must pass "'+i.keyword+'" keyword validation'}break;case"enum":n="事前に定義された値のいずれかに等しくなければいけない";break;case"false schema":n="boolean schema is false";break;case"format":n='"'+i.params.format+'"形式に揃えなければいけない';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="must be "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=r+"でなければいけない";break;case"maxItems":n="";var a=i.params.limit;n+="は"+a+"個以上であってはいけない";break;case"maxLength":n="";var a=i.params.limit;n+="は"+a+"文字以上であってはいけない";break;case"maxProperties":n="";var a=i.params.limit;n+="は"+a+"個以上のプロパティを有してはいけない";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=r+"でなければいけない";break;case"minItems":n="";var a=i.params.limit;n+="は"+a+"個以下であってはいけない";break;case"minLength":n="";var a=i.params.limit;n+="は"+a+"文字以下であってはいけない";break;case"minProperties":n="";var a=i.params.limit;n+="は"+a+"個以下のプロパティを有してはいけない";break;case"multipleOf":n=""+i.params.multipleOf+"の倍数でなければいけない";break;case"not":n='"not"のスキーマに従って有効としてはいけない';break;case"oneOf":n='"oneOf"のスキーマと完全に一致しなくてはいけない';break;case"pattern":n='"'+i.params.pattern+'"のパターンと一致しなければいけない';break;case"patternRequired":n='must have property matching pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="必要なプロパティ"+i.params.missingProperty+"がなければいけない";break;case"type":n=""+i.params.type+"でなければいけない";break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="重複するアイテムがあってはいけない("+i.params.j+"と"+i.params.i+"は同じである)";break;default:n='must pass "'+i.keyword+'" keyword validation'}i.message=n}}),Hu}var Wu,_y;function zj(){return _y||(_y=1,Wu=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+=" 항목은 아이템을 "+a+"개 이상 가질 수 없습니다";break;case"additionalProperties":n="추가적인 속성은 허용되지 않습니다";break;case"anyOf":n='"anyOf"의 스키마와 일치해야 합니다';break;case"const":n="상수와 같아야합니다";break;case"contains":n="올바른 아이템을 포함해야 합니다";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=i.params.property+"속성이 있는 경우, "+i.params.deps+" 속성이 있어야합니다";break;case"discriminator":switch(i.params.error){case"tag":n='"'+i.params.tag+'"태그는 반드시 문자열이여야 합니다';break;case"mapping":n='"'+i.params.tag+'"태그의 값은 반드시 oneOf에 있어야 합니다';break;default:n='"'+i.keyword+'"키워드 검사를 통과해야 합니다'}break;case"enum":n="미리 정의된 값중 하나여야 합니다";break;case"false schema":n="boolean 스키마는 올바르지 않습니다";break;case"format":n='"'+i.params.format+'" 포맷과 일치해야 합니다';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"if":n='"'+i.params.failingKeyword+'" 스키마와 일치해야 합니다';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"maxItems":n="";var a=i.params.limit;n+="아이템이 최대 "+a+"개이여야 합니다";break;case"maxLength":n="";var a=i.params.limit;n+="최대 "+a+"글자여야 합니다";break;case"maxProperties":n="";var a=i.params.limit;n+="속성은 최대 "+a+"개 이내여야 합니다";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+=" "+r+" 이여야 합니다";break;case"minItems":n="";var a=i.params.limit;n+="아이템이 최소 "+a+"개이여야 합니다";break;case"minLength":n="";var a=i.params.limit;n+="최소 "+a+"글자여야 합니다";break;case"minProperties":n="";var a=i.params.limit;n+="속성은 최소 "+a+"개 이상이여야 합니다";break;case"multipleOf":n=""+i.params.multipleOf+"의 배수여야 합니다";break;case"not":n='"not"스키마에 따라 유효하지 않아야 합니다';break;case"oneOf":n='"oneOf" 스키마중 하나와 정확하게 일치해야 합니다';break;case"pattern":n='"'+i.params.pattern+'"패턴과 일치해야 합니다';break;case"patternRequired":n='"'+i.params.missingPattern+'"패턴과 일치하는 속성을 가져야 합니다';break;case"propertyNames":n="속성명이 올바르지 않습니다";break;case"required":n=""+i.params.missingProperty+" 속성은 필수입니다";break;case"type":n=""+i.params.type+"이여야 합니다";break;case"unevaluatedItems":n="";var a=i.params.len;n+="항목이 "+a+"개 아이템을 초과하면 안됩니다";break;case"unevaluatedProperties":n="평가되지 않은 속성이 없어야합니다.";break;case"uniqueItems":n="중복 아이템이 없어야 합니다 (아이템"+i.params.j+"과 아이템"+i.params.i+"가 동일합니다)";break;default:n='"'+i.keyword+'"키워드 검사를 통과해야 합니다'}i.message=n}}),Wu}var Ku,Oy;function $j(){return Oy||(Oy=1,Ku=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var i=n.params.limit;s+="kan ikke ha mer enn "+i+" element",i!=1&&(s+="er");break;case"additionalProperties":s="kan ikke ha flere egenskaper";break;case"anyOf":s='må samsvare med et schema i "anyOf"';break;case"const":s="må være lik konstanten";break;case"contains":s="må inneholde et gyldig element";break;case"dependencies":case"dependentRequired":s="";var i=n.params.depsCount;s+="må ha egenskapen",i!=1&&(s+="e"),s+=" "+n.params.deps+" når egenskapen "+n.params.property+" er angitt";break;case"discriminator":switch(n.params.error){case"tag":s='tag "'+n.params.tag+'" must be string';break;case"mapping":s='value of tag "'+n.params.tag+'" must be in oneOf';break;default:s="må samsvare med valideringen for "+n.keyword}break;case"enum":s="må være lik en av de forhåndsdefinerte verdiene";break;case"false schema":s="boolsk schema er usannt";break;case"format":s='må stemme overens med formatet "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"if":s='must match "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"maxItems":s="";var i=n.params.limit;s+="kan ikke ha fler enn "+i+" element",i!=1&&(s+="er");break;case"maxLength":s="";var i=n.params.limit;s+="kan ikke være lengre enn "+i+" tegn";break;case"maxProperties":s="";var i=n.params.limit;s+="kan ikke ha mer enn "+i+" egenskap",i!=1&&(s+="er");break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"minItems":s="";var i=n.params.limit;s+="kan ikke ha færre enn "+i+" element",i!=1&&(s+="er");break;case"minLength":s="";var i=n.params.limit;s+="kan ikke være kortere enn "+i+" tegn";break;case"minProperties":s="";var i=n.params.limit;s+="kan ikke ha mindre enn "+i+" egenskap",i!=1&&(s+="er");break;case"multipleOf":s="må være et multiplum av "+n.params.multipleOf;break;case"not":s='kan ikke samsvare med schema i "not"';break;case"oneOf":s='må samsvare med nøyaktig ett schema i "oneOf"';break;case"pattern":s='må samsvare med mønsteret "'+n.params.pattern+'"';break;case"patternRequired":s='må ha en egenskap som samsvarer med mønsteret "'+n.params.missingPattern;break;case"propertyNames":s="egenskapen med navnet '",n.params.propertyNameout+="' er ugyldig";break;case"required":s="må ha den påkrevde egenskapen "+n.params.missingProperty;break;case"type":s="";var a=n.params.type;s+="må være ",a=="number"?s+="et tall":a=="integer"?s+="et heltall":a=="string"?s+="en streng":a=="boolean"?s+="ja eller nei":s+=a;break;case"unevaluatedItems":s="";var i=n.params.len;s+="must NOT have more than "+i+" item",i!=1&&(s+="s");break;case"unevaluatedProperties":s="must NOT have unevaluated properties";break;case"uniqueItems":s="kan ikke ha duplikate elemeneter (elementene ## "+n.params.j+" og "+n.params.i+" er identiske)";break;default:s="må samsvare med valideringen for "+n.keyword}n.message=s}}),Ku}var Gu,Ty;function Uj(){return Ty||(Ty=1,Gu=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var i=n.params.limit;s+="mag niet meer dan "+i+" item",i!=1&&(s+="s"),s+=" bevatten";break;case"additionalProperties":s="mag geen extra eigenschappen bevatten";break;case"anyOf":s='moet overeenkomen met een schema in "anyOf"';break;case"const":s="moet gelijk zijn aan constante";break;case"contains":s="moet een geldig item bevatten";break;case"dependencies":case"dependentRequired":s="";var i=n.params.depsCount;s+="moet de eigenschap",i!=1&&(s+="pen"),s+=" "+n.params.deps+" bevatten als "+n.params.property+" is gedefinieerd";break;case"discriminator":switch(n.params.error){case"tag":s='tag "'+n.params.tag+'" moet een tekenreeks zijn';break;case"mapping":s='de waarde van het veld "'+n.params.tag+'" moet voorkomen in de oneOf';break;default:s='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}break;case"enum":s="moet overeenkomen met één van de voorgedefinieerde waarden";break;case"false schema":s="boolean schema is fout";break;case"format":s='moet overeenkomen met het volgende formaat: "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"if":s='moet overeenkomen met "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"maxItems":s="";var i=n.params.limit;s+="mag niet meer dan "+i+" item",i!=1&&(s+="s"),s+=" bevatten";break;case"maxLength":s="";var i=n.params.limit;s+="mag niet langer dan "+i+" karakter",i!=1&&(s+="s"),s+=" zijn";break;case"maxProperties":s="";var i=n.params.limit;s+="mag niet meer dan "+i+" eigenschap",i!=1&&(s+="pen"),s+=" bevatten";break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"minItems":s="";var i=n.params.limit;s+="mag niet minder dan "+i+" item",i!=1&&(s+="s"),s+=" bevatten";break;case"minLength":s="";var i=n.params.limit;s+="mag niet korter dan "+i+" karakter",i!=1&&(s+="s"),s+=" zijn";break;case"minProperties":s="";var i=n.params.limit;s+="mag niet minder dan "+i+" eigenschap",i!=1&&(s+="pen"),s+=" bevatten";break;case"multipleOf":s="moet een veelvoud van "+n.params.multipleOf+" zijn";break;case"not":s='mag niet overeenkomen met een schema in "not"';break;case"oneOf":s='moet overeenkomen met één schema in "oneOf"';break;case"pattern":s='moet overeenkomen met het volgende patroon: "'+n.params.pattern+'"';break;case"patternRequired":s='moet een eigenschap bevatten die overeenkomt met het pattroon: "'+n.params.missingPattern+'"';break;case"propertyNames":s="eigenschapnaam is ongeldig";break;case"required":s="moet de eigenschap "+n.params.missingProperty+" bevatten";break;case"type":s="";var a=n.params.type;s+="moet een ",a=="number"?s+="nummer":a=="integer"?s+="geheel getal":a=="string"?s+="tekenreeks":a=="boolean"&&(s+="ja of nee waarde"),s+=" ("+a+") bevatten";break;case"unevaluatedItems":s="";var i=n.params.len;s+="mag niet meer dan "+i+" item",i!=1&&(s+="s"),s+=" bevatten";break;case"unevaluatedProperties":s="mag geen ongecontroleerde eigenschappen bevatten";break;case"uniqueItems":s="mag geen gedupliceerde items bevatten (items ## "+n.params.j+" en "+n.params.i+" zijn identiek)";break;default:s='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}n.message=s}}),Gu}var Ju,Py;function Bj(){return Py||(Py=1,Ju=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nie powinien mieć więcej niż "+a+" element",a==1?n+="u":n+="ów";break;case"additionalProperties":n="nie powinien zawierać dodatkowych pól";break;case"anyOf":n='powinien pasować do wzoru z sekcji "anyOf"';break;case"const":n="powinien być równy stałej";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="powinien zawierać pol",a==1?n+="e":n+="a",n+=" "+i.params.deps+" kiedy pole "+i.params.property+" jest obecne";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='powinien przejść walidację "'+i.keyword+'"'}break;case"enum":n="powinien być równy jednej z predefiniowanych wartości";break;case"false schema":n="boolean schema is false";break;case"format":n='powinien zgadzać się z formatem "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nie powinien mieć więcej niż "+a+" element",a==1?n+="u":n+="ów";break;case"maxLength":n="";var a=i.params.limit;n+="nie powinien być dłuższy niż "+a+" znak",a!=1&&(n+="ów");break;case"maxProperties":n="";var a=i.params.limit;n+="nie powinien zawierać więcej niż "+a+" ",a==1?n+="pole":n+="pól";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="powinien być "+r;break;case"minItems":n="";var a=i.params.limit;n+="nie powinien mieć mniej niż "+a+" element",a==1?n+="u":n+="ów";break;case"minLength":n="";var a=i.params.limit;n+="nie powinien być krótszy niż "+a+" znak",a!=1&&(n+="ów");break;case"minProperties":n="";var a=i.params.limit;n+="nie powinien zawierać mniej niż "+a+" ",a==1?n+="pole":n+="pól";break;case"multipleOf":n="powinien być wielokrotnością "+i.params.multipleOf;break;case"not":n='nie powinien pasować do wzoru z sekcji "not"';break;case"oneOf":n='powinien pasować do jednego wzoru z sekcji "oneOf"';break;case"pattern":n='powinien zgadzać się ze wzorem "'+i.params.pattern+'"';break;case"patternRequired":n='powinien mieć pole pasujące do wzorca "'+i.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="powinien zawierać wymagane pole "+i.params.missingProperty;break;case"type":n="powinien być "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nie powinien zawierać elementów które się powtarzają (elementy "+i.params.j+" i "+i.params.i+" są identyczne)";break;default:n='powinien przejść walidację "'+i.keyword+'"'}i.message=n}}),Ju}var Yu,Iy;function Vj(){return Iy||(Iy=1,Yu=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="não são permitidos itens adicionais (mais do que "+i+")";break;case"additionalProperties":s="não são permitidas propriedades adicionais";break;case"anyOf":s='os dados não correspondem a nenhum schema de "anyOf"';break;case"const":s="deve ser igual à constante";break;case"contains":s="deve conter um item válido";break;case"dependencies":case"dependentRequired":s="";var i=n.params.depsCount;s+=" deve ter propriedade",i!=1&&(s+="s"),s+=" "+n.params.deps+" quando a propriedade "+n.params.property+" estiver presente";break;case"discriminator":switch(n.params.error){case"tag":s='a tag "'+n.params.tag+'" deve ser uma string';break;case"mapping":s='o valor da tag "'+n.params.tag+'" deve estar no oneOf';break;default:s='deve passar a validação da keyword "'+n.keyword+'"'}break;case"enum":s="deve ser igual a um dos valores permitidos";break;case"false schema":s='o schema booleano é "false"';break;case"format":s='deve corresponder ao formato "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"if":s='deve corresponder ao schema "'+n.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"maxItems":s="";var i=n.params.limit;s+="não deve ter mais que "+i+" elemento",i!=1&&(s+="s");break;case"maxLength":s="";var i=n.params.limit;s+="não deve ser maior que "+i+" caracter",i!=1&&(s+="es");break;case"maxProperties":s="";var i=n.params.limit;s+="não deve ter mais que "+i+" propriedade",i!=1&&(s+="s");break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"minItems":s="";var i=n.params.limit;s+="não deve ter menos que "+i+" elemento",i!=1&&(s+="s");break;case"minLength":s="";var i=n.params.limit;s+="não deve ser mais curta que "+i+" caracter",i!=1&&(s+="es");break;case"minProperties":s="";var i=n.params.limit;s+="não deve ter menos que "+i+" propriedade",i!=1&&(s+="s");break;case"multipleOf":s="deve ser múltiplo de "+n.params.multipleOf;break;case"not":s='não deve ser valido segundo o schema em "not"';break;case"oneOf":s='deve corresponder exatamente com um schema em "oneOf"';break;case"pattern":s='deve corresponder ao padrão "'+n.params.pattern+'"';break;case"patternRequired":s='deve ter a propriedade correspondente ao padrão "'+n.params.missingPattern+'"';break;case"propertyNames":s="o nome da propriedade é inválido";break;case"required":s="deve ter a propriedade obrigatória "+n.params.missingProperty;break;case"type":s="";var a=n.params.type;s+="deve ser ",a=="number"?s+="um número":a=="integer"?s+="um número inteiro":a=="string"?s+="um texto":a=="boolean"?s+="um booleano":s+=a;break;case"unevaluatedItems":s="";var i=n.params.len;s+="não pode possuir mais que "+i+" ",i==1?s+="item":s+="itens";break;case"unevaluatedProperties":s="não pode possuir propridades não avaliadas";break;case"uniqueItems":s="não deve ter itens duplicados (os itens ## "+n.params.j+" e "+n.params.i+" são idênticos)";break;default:s='deve passar a validação da keyword "'+n.keyword+'"'}n.message=s}}),Yu}var Xu,Ry;function Hj(){return Ry||(Ry=1,Xu=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="должно иметь не более, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"additionalProperties":n="не должно иметь дополнительных полей";break;case"anyOf":n='должно соответствовать одной их схем в "anyOf"';break;case"const":n="должно быть равно заданному значению";break;case"contains":n="должно содержать значение соответствующее схеме";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="должно иметь пол",a==1?n+="е":n+="я",n+=" "+i.params.deps+", когда присутствует поле "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='поле "'+i.params.tag+'" должно быть строкой';break;case"mapping":n='значение поля "'+i.params.tag+'" должно быть в одной из oneOf схем ';break;default:n='должно соответствовать правилу "'+i.keyword+'"'}break;case"enum":n="должно быть равно одному из разрешенных значений";break;case"false schema":n="схема равна false";break;case"format":n='должно соответствовать формату "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"if":n='должно соответствовать схемe "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"maxItems":n="";var a=i.params.limit;n+="должно иметь не более, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"maxLength":n="";var a=i.params.limit;n+="должно быть не длиннее, чем "+a+" символ",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"maxProperties":n="";var a=i.params.limit;n+="должно иметь не более, чем "+a+" пол",a==1?n+="е":a>=2&&a<=4?n+="я":n+="ей";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="должно быть "+r;break;case"minItems":n="";var a=i.params.limit;n+="должно иметь не менее, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"minLength":n="";var a=i.params.limit;n+="должно быть не короче, чем "+a+" символ",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"minProperties":n="";var a=i.params.limit;n+="должно иметь не менее, чем "+a+" пол",a==1?n+="е":a>=2&&a<=4?n+="я":n+="ей";break;case"multipleOf":n="должно быть кратным "+i.params.multipleOf;break;case"not":n='должно не соответствовать схеме в "not"';break;case"oneOf":n='должно соответствовать в точности одной схемe в "oneOf"';break;case"pattern":n='должно соответствовать образцу "'+i.params.pattern+'"';break;case"patternRequired":n='должно иметь поле, соответствующее образцу "'+i.params.missingPattern+'"';break;case"propertyNames":n="имя поля не соответствует схеме";break;case"required":n="должно иметь обязательное поле "+i.params.missingProperty;break;case"type":n="должно быть "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="должно иметь не более, чем "+a+" элемент",a>=2&&a<=4?n+="а":a!=1&&(n+="ов");break;case"unevaluatedProperties":n="не должно иметь непроверенных полей";break;case"uniqueItems":n="не должно иметь повторяющихся элементов (элементы "+i.params.j+" и "+i.params.i+" идентичны)";break;default:n='должно соответствовать правилу "'+i.keyword+'"'}i.message=n}}),Xu}var Zu,Ny;function Wj(){return Ny||(Ny=1,Zu=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="nemôže obsahovať viac, než "+a+" prv",a==1?n+="ok":n+="kov";break;case"additionalProperties":n="nemôže obsahovať ďalšie položky";break;case"anyOf":n='musí splňovať aspoň jednu zo schém v "anyOf"';break;case"const":n="musí byť konštanta";break;case"contains":n="musí obsahovať prvok zodpovedajúci schéme";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+=" musí obsahovať polož",a>=2&&a<=4?n+="ky":a!=1?n+="iek":n+="ka",n+=": "+i.params.deps+", ak obsahuje "+i.params.property;break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='musí splniť "'+i.keyword+'" validáciu'}break;case"enum":n="musí byť jedna z definovaných hodnôt";break;case"false schema":n="schéma je false";break;case"format":n='musí obsahovať formát "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"maxItems":n="";var a=i.params.limit;n+="nesmie obsahovať viac než "+a+" prv",a==1?n+="ok":n+="kov";break;case"maxLength":n="";var a=i.params.limit;n+="nesmie byť dlhší než "+a+" znak",a!=1&&(n+="ov");break;case"maxProperties":n="";var a=i.params.limit;n+="nesmie obsahovať viac než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="iek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="musí byť "+r;break;case"minItems":n="";var a=i.params.limit;n+="nesmie obsahovať menej než "+a+" prv",a==1?n+="ok":n+="kov";break;case"minLength":n="";var a=i.params.limit;n+="nesmie byť kratší než "+a+" znak",a!=1&&(n+="ov");break;case"minProperties":n="";var a=i.params.limit;n+="nesmie obsahovať menej než "+a+" polož",a>=2&&a<=4?n+="ky":a!=1?n+="iek":n+="ka";break;case"multipleOf":n="musí byť násobkom "+i.params.multipleOf;break;case"not":n='nesmie splňovať schému v "not"';break;case"oneOf":n='musí splňovať práve jednu schému v "oneOf"';break;case"pattern":n='musí splňovať regulárny výraz "'+i.params.pattern+'"';break;case"patternRequired":n='musí obsahovať položku splňjúcu regulárny výraz "'+i.params.missingPattern+'"';break;case"propertyNames":n="názov položky nezodpovedá schéme";break;case"required":n="musí obsahovať požadovanú položku "+i.params.missingProperty;break;case"type":n="musí byť "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmie obsahovať duplicitné prvky (prvky ## "+i.params.j+" a "+i.params.i+" sú rovnaké)";break;default:n='musí splniť "'+i.keyword+'" validáciu'}i.message=n}}),Zu}var Qu,jy;function Kj(){return jy||(jy=1,Qu=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="borde ha fler än "+a+" sak",a!=1&&(n+="er");break;case"additionalProperties":n="borde inte ha fler egenskaper";break;case"anyOf":n='borde matcha något schema i "anyOf"';break;case"const":n="bör vara en konstant";break;case"contains":n="bör innehålla ett giltigt objekt";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="borde ha egenskap",a!=1&&(n+="er"),n+=" "+i.params.deps+" när egenskap "+i.params.property+" finns tillgängligt";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" must be string';break;case"mapping":n='value of tag "'+i.params.tag+'" must be in oneOf';break;default:n='bör passera "'+i.keyword+'" nyckelord validering'}break;case"enum":n="borde vara ekvivalent med en av dess fördefinierade värden";break;case"false schema":n="boolean schema är falskt";break;case"format":n='borde matcha formatet "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="bör vara "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="bör vara "+r;break;case"if":n='must match "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="borde vara "+r;break;case"maxItems":n="";var a=i.params.limit;n+="borde inte ha fler än "+a+" sak",a!=1&&(n+="er");break;case"maxLength":n="";var a=i.params.limit;n+="borde inte vara längre än "+a+" tecken";break;case"maxProperties":n="";var a=i.params.limit;n+="borde inte ha fler än "+a+" egenskap",a!=1&&(n+="er");break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="borde vara "+r;break;case"minItems":n="";var a=i.params.limit;n+="borde inte ha färre än "+a+" sak",a!=1&&(n+="er");break;case"minLength":n="";var a=i.params.limit;n+="borde inte vara kortare än "+a+" tecken";break;case"minProperties":n="";var a=i.params.limit;n+="borde inte ha färre än "+a+" egenskap",a!=1&&(n+="er");break;case"multipleOf":n="borde vara en multipel av "+i.params.multipleOf;break;case"not":n='borde inte vara giltigt enligt schema i "not"';break;case"oneOf":n='borde matcha exakt ett schema i "oneOf"';break;case"pattern":n='borde matcha mönstret "'+i.params.pattern+'"';break;case"patternRequired":n='bör ha en egenskap som matchar mönstret "'+i.params.missingPattern+'"';break;case"propertyNames":n="egenskap med namnet är inte giltig";break;case"required":n="borde ha den nödvändiga egenskapen "+i.params.missingProperty;break;case"type":n="borde vara "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="must NOT have more than "+a+" item",a!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="borde inte ha duplicerade saker (sakerna ## "+i.params.j+" och "+i.params.i+" är identiska)";break;default:n='bör passera "'+i.keyword+'" nyckelord validering'}i.message=n}}),Qu}var ef,Dy;function Gj(){return Dy||(Dy=1,ef=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+a+" ตัว";break;case"additionalProperties":n="ต้องไม่มี property อื่นๆ นอกเหนีอจากที่กำหนดไว้";break;case"anyOf":n='ต้องตรงกับหนึ่งใน schema ที่กำหนดไว้ใน "anyOf"';break;case"const":n="ต้องเท่ากับค่าคงที่";break;case"contains":n="ต้องมีสมาชิกที่ผ่านเงื่อนไขอยู่";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="เมื่อมี property "+i.params.property+" แล้วจะต้องมี property "+i.params.deps+" ด้วย";break;case"discriminator":switch(i.params.error){case"tag":n='tag "'+i.params.tag+'" ต้องเป็น string';break;case"mapping":n='ต้องมีค่าของ tag "'+i.params.tag+'" ใน oneOf';break;default:n='ต้องผ่านคีย์เวิร์ด "'+i.keyword+'"'}break;case"enum":n="ต้องตรงกับหนึ่งในค่าที่กำหนดไว้";break;case"false schema":n="schema เป็น false";break;case"format":n='ต้องเป็นรูปแบบ "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"if":n='ต้องตรงกับ schema "'+i.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"maxItems":n="";var a=i.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+a;break;case"maxLength":n="";var a=i.params.limit;n+="ต้องยาวไม่เกิน "+a+" ตัวอักษร";break;case"maxProperties":n="";var a=i.params.limit;n+="ต้องมี property ไม่เกิน "+a+" ตัว";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="ต้อง "+r;break;case"minItems":n="";var a=i.params.limit;n+="ควรมีสมาชิกไม่น้อยกว่า "+a;break;case"minLength":n="";var a=i.params.limit;n+="ต้องมีอย่างน้อย "+a+" ตัวอักษร";break;case"minProperties":n="";var a=i.params.limit;n+="ต้องมี property อย่างน้อย "+a+" ตัว";break;case"multipleOf":n="ต้องเป็นเลขที่หาร "+i.params.multipleOf+" ลงตัว";break;case"not":n='ต้องไม่ผ่าน schema ที่กำหนดไว้ใน "not"';break;case"oneOf":n='ต้องตรงกับ schema ตัวเดียวใน "oneOf" เท่านั้น';break;case"pattern":n='ต้องตรงตาม pattern "'+i.params.pattern+'"';break;case"patternRequired":n='ต้องมี property ที่มีชื่อตรงตาม pattern "'+i.params.missingPattern+'"';break;case"propertyNames":n="ชื่อ property ไม่ถูกต้อง";break;case"required":n="ต้องมี property "+i.params.missingProperty+" ด้วย";break;case"type":n="ต้องเป็น "+i.params.type;break;case"unevaluatedItems":n="";var a=i.params.len;n+="ต้องมีไม่เกิน "+a+" ตัว";break;case"unevaluatedProperties":n="ต้องไม่มี property ที่ยังไม่ได้ผ่านการตรวจสอบเงื่อนไขใดๆ";break;case"uniqueItems":n="ต้องมีสมาชิกไม่ซ้ำักัน (ลำดับที่ "+i.params.j+" กับ "+i.params.i+" ซ้ำกัน)";break;default:n='ต้องผ่านคีย์เวิร์ด "'+i.keyword+'"'}i.message=n}}),ef}var tf,Fy;function Jj(){return Fy||(Fy=1,tf=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="不允许超过"+a+"个元素";break;case"additionalProperties":n="不允许有额外的属性";break;case"anyOf":n="数据应为 anyOf 所指定的其中一个";break;case"const":n="应当等于常量";break;case"contains":n="应当包含一个有效项";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="应当拥有属性"+i.params.property+"的依赖属性"+i.params.deps;break;case"discriminator":switch(i.params.error){case"tag":n='标签 "'+i.params.tag+'" 的类型必须为字符串';break;case"mapping":n='标签 "'+i.params.tag+'" 的值必须在 oneOf 之中';break;default:n='应当通过 "'+i.keyword+' 关键词校验"'}break;case"enum":n="应当是预设定的枚举值之一";break;case"false schema":n="布尔模式出错";break;case"format":n='应当匹配格式 "'+i.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当是 "+r;break;case"if":n='应当匹配模式 "'+i.params.failingKeyword+'" ';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当为 "+r;break;case"maxItems":n="";var a=i.params.limit;n+="不应多于 "+a+" 个项";break;case"maxLength":n="";var a=i.params.limit;n+="不应多于 "+a+" 个字符";break;case"maxProperties":n="";var a=i.params.limit;n+="不应有多于 "+a+" 个属性";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="应当为 "+r;break;case"minItems":n="";var a=i.params.limit;n+="不应少于 "+a+" 个项";break;case"minLength":n="";var a=i.params.limit;n+="不应少于 "+a+" 个字符";break;case"minProperties":n="";var a=i.params.limit;n+="不应有少于 "+a+" 个属性";break;case"multipleOf":n="应当是 "+i.params.multipleOf+" 的整数倍";break;case"not":n='不应当匹配 "not" schema';break;case"oneOf":n='只能匹配一个 "oneOf" 中的 schema';break;case"pattern":n='应当匹配模式 "'+i.params.pattern+'"';break;case"patternRequired":n="应当有属性匹配模式 "+i.params.missingPattern;break;case"propertyNames":n="属性名 无效";break;case"required":n="应当有必需属性 "+i.params.missingProperty;break;case"type":n="应当是 "+i.params.type+" 类型";break;case"unevaluatedItems":n="";var a=i.params.len;n+=" 不允许有超过 "+a+" 个元素";break;case"unevaluatedProperties":n="不允许存在未求值的属性";break;case"uniqueItems":n="不应当含有重复项 (第 "+i.params.j+" 项与第 "+i.params.i+" 项是重复的)";break;default:n='应当通过 "'+i.keyword+' 关键词校验"'}i.message=n}}),tf}var rf,My;function Yj(){return My||(My=1,rf=function(t){if(t&&t.length)for(const i of t){let n;switch(i.keyword){case"additionalItems":case"items":n="";var a=i.params.limit;n+="不可以超過"+a+"個元素";break;case"additionalProperties":n="不可以有額外的屬性";break;case"anyOf":n="不符合 anyOf 指定的模式";break;case"const":n="應該等於常數";break;case"contains":n="應該包含一個有效元素";break;case"dependencies":case"dependentRequired":n="";var a=i.params.depsCount;n+="應該要有屬性"+i.params.property+"的依賴屬性"+i.params.deps;break;case"discriminator":switch(i.params.error){case"tag":n='標籤 "'+i.params.tag+'" 的類型必須是字串';break;case"mapping":n='標籤 "'+i.params.tag+'" 必須在 oneOf 其中之一';break;default:n='應該通過 "'+i.keyword+' 關鍵詞檢驗"'}break;case"enum":n="應該要在預設的值之中";break;case"false schema":n="布林模式不正確";break;case"format":n="應該要符合"+i.params.format+"格式";break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該是 "+r;break;case"if":n='應該符合 "'+i.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該要 "+r;break;case"maxItems":n="";var a=i.params.limit;n+="不應該多於 "+a+" 個";break;case"maxLength":n="";var a=i.params.limit;n+="不應該多於 "+a+" 個字元";break;case"maxProperties":n="";var a=i.params.limit;n+="不應該多於 "+a+" 個屬性";break;case"minimum":case"exclusiveMinimum":n="";var r=i.params.comparison+" "+i.params.limit;n+="應該要 "+r;break;case"minItems":n="";var a=i.params.limit;n+="不應該少於 "+a+" 個";break;case"minLength":n="";var a=i.params.limit;n+="不應該少於 "+a+" 個字元";break;case"minProperties":n="";var a=i.params.limit;n+="不應該少於 "+a+" 個屬性";break;case"multipleOf":n="應該是 "+i.params.multipleOf+" 的整數倍";break;case"not":n='不應該符合 "not" schema';break;case"oneOf":n='只能符合一個 "oneOf" 中的 schema';break;case"pattern":n='應該符合模式 "'+i.params.pattern+'"';break;case"patternRequired":n="應該有屬性對應模式 "+i.params.missingPattern;break;case"propertyNames":n="属性名 無效";break;case"required":n="應該有必須屬性 "+i.params.missingProperty;break;case"type":n="應該是 "+i.params.type+" 類型";break;case"unevaluatedItems":n="";var a=i.params.len;n+=" 的元素不可以超過 "+a+" 個";break;case"unevaluatedProperties":n="不應該有未驗證的屬性";break;case"uniqueItems":n="不應該有重複項目 (第 "+i.params.j+" 項和第 "+i.params.i+" 項是重複的)";break;default:n='應該通過 "'+i.keyword+' 關鍵詞檢驗"'}i.message=n}}),rf}var nf,Ly;function Xj(){return Ly||(Ly=1,nf={en:Oj(),ar:Tj(),ca:Pj(),cs:Ij(),de:Rj(),es:Nj(),fi:jj(),fr:Dj(),hu:Fj(),id:Mj(),it:Lj(),ja:qj(),ko:zj(),nb:$j(),nl:Uj(),pl:Bj(),"pt-BR":Vj(),ru:Hj(),sk:Wj(),sv:Kj(),th:Gj(),zh:Jj(),"zh-TW":Yj()}),nf}var Zj=Xj();const hs=Pn(Zj),yl={flex:1,paddingLeft:6,paddingRight:6};function Qj(e){const{disabled:t,hasCopy:r,hasMoveDown:a,hasMoveUp:i,hasRemove:n,fieldPathId:s,onCopyItem:o,onRemoveItem:c,onMoveDownItem:l,onMoveUpItem:u,readonly:f,registry:m,uiSchema:d}=e,{CopyButton:h,MoveDownButton:k,MoveUpButton:v,RemoveButton:y}=m.templates.ButtonTemplates;return j.jsxs("div",{className:"d-flex flex-row",children:[(i||a)&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(v,{id:Rr(s,"moveUp"),className:"rjsf-array-item-move-up",style:yl,disabled:t||f||!i,onClick:u,uiSchema:d,registry:m})}),(i||a)&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(k,{id:Rr(s,"moveDown"),className:"rjsf-array-item-move-down",style:yl,disabled:t||f||!a,onClick:l,uiSchema:d,registry:m})}),r&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(h,{id:Rr(s,"copy"),className:"rjsf-array-item-copy",style:yl,disabled:t||f,onClick:o,uiSchema:d,registry:m})}),n&&j.jsx("div",{className:"m-0 p-0",children:j.jsx(y,{id:Rr(s,"remove"),className:"rjsf-array-item-remove",style:yl,disabled:t||f,onClick:c,uiSchema:d,registry:m})})]})}function eD(e){const{children:t,buttonsProps:r,hasToolbar:a,registry:i,uiSchema:n}=e,s=ke(n),o=xe("ArrayFieldItemButtonsTemplate",i,s);return j.jsx("div",{children:j.jsxs("div",{className:"row mb-2 d-flex align-items-center",children:[j.jsx("div",{className:a?"col-9 col-lg-9":"col-12",children:t}),a&&j.jsx("div",{className:"col-3 col-lg-3 py-4",children:j.jsx(o,{...r})})]})})}function tD(e){const{canAdd:t,disabled:r,fieldPathId:a,items:i,optionalDataControl:n,onAddClick:s,readonly:o,registry:c,required:l,schema:u,title:f,uiSchema:m}=e,d=ke(m),h=xe("ArrayFieldTitleTemplate",c,d),k=xe("ArrayFieldDescriptionTemplate",c,d),{AddButton:v}=c.templates.ButtonTemplates,y=!o&&!r;return j.jsx("div",{children:j.jsx("div",{className:"row p-0 m-0",children:j.jsxs("div",{className:"col p-0 m-0",children:[j.jsx(h,{fieldPathId:a,title:d.title||f,required:l,schema:u,uiSchema:m,registry:c,optionalDataControl:y?n:void 0}),j.jsx(k,{fieldPathId:a,description:d.description||u.description,schema:u,uiSchema:m,registry:c}),y?void 0:n,j.jsxs("div",{className:"container-fluid p-0 m-0",children:[i,t&&j.jsxs("div",{className:"row mt-2",children:[j.jsx("div",{className:"col-9"}),j.jsx("div",{className:"col-3 py-4",children:j.jsx(v,{id:Rr(a,"add"),className:"rjsf-array-item-add",onClick:s,disabled:r||o,uiSchema:m,registry:c})})]})]})]})})})}const oo={width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1},rD=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),nD=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),aD=()=>j.jsxs("svg",{...oo,children:[j.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),j.jsx("path",{d:"M10.5 2.5h-7a1 1 0 0 0-1 1v7"})]}),c0=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M3.5 8h9"})}),iD=()=>j.jsx("svg",{...oo,children:j.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function Xi({iconType:e,icon:t,className:r,uiSchema:a,registry:i,variant:n="light",...s}){return j.jsx("button",{type:"button",className:`btn btn-${n} btn-sm ${r||""}`.trim(),...s,children:t})}function sD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.CopyButton),...e,icon:j.jsx(aD,{})})}function oD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.MoveUpButton),...e,icon:j.jsx(rD,{})})}function lD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.MoveDownButton),...e,icon:j.jsx(nD,{})})}function cD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.RemoveButton),...e,variant:"danger",icon:j.jsx(c0,{})})}function uD(e){const{translateString:t}=e.registry;return j.jsx(Xi,{title:t(Le.ClearButton),...e,icon:j.jsx(c0,{})})}function fD({className:e,...t}){const{translateString:r}=t.registry;return j.jsx(Xi,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(Le.AddItemButton),icon:j.jsx(iD,{})})}function dD({uiSchema:e}){const{submitText:t,norender:r,props:a={}}=xk(e);return r?null:j.jsx("div",{children:j.jsx("button",{type:"submit",...a,className:`btn btn-primary ${a.className||""}`.trim(),children:t})})}const mD={SubmitButton:dD,AddButton:fD,CopyButton:sD,MoveDownButton:lD,MoveUpButton:oD,RemoveButton:cD,ClearButton:uD};function pD(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const hD=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gD=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yD={};function qy(e,t){return(yD.jsx?gD:hD).test(e)}const vD=/[ \t\n\f\r]/g;function bD(e){return typeof e=="object"?e.type==="text"?zy(e.value):!1:zy(e)}function zy(e){return e.replace(vD,"")===""}class lo{constructor(t,r,a){this.normal=r,this.property=t,a&&(this.space=a)}}lo.prototype.normal={};lo.prototype.property={};lo.prototype.space=void 0;function u0(e,t){const r={},a={};for(const i of e)Object.assign(r,i.property),Object.assign(a,i.normal);return new lo(r,a,t)}function sd(e){return e.toLowerCase()}class xr{constructor(t,r){this.attribute=r,this.property=t}}xr.prototype.attribute="";xr.prototype.booleanish=!1;xr.prototype.boolean=!1;xr.prototype.commaOrSpaceSeparated=!1;xr.prototype.commaSeparated=!1;xr.prototype.defined=!1;xr.prototype.mustUseProperty=!1;xr.prototype.number=!1;xr.prototype.overloadedBoolean=!1;xr.prototype.property="";xr.prototype.spaceSeparated=!1;xr.prototype.space=void 0;let kD=0;const Pe=si(),Lt=si(),od=si(),ue=si(),kt=si(),Va=si(),Tr=si();function si(){return 2**++kD}const ld=Object.freeze(Object.defineProperty({__proto__:null,boolean:Pe,booleanish:Lt,commaOrSpaceSeparated:Tr,commaSeparated:Va,number:ue,overloadedBoolean:od,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),af=Object.keys(ld);class um extends xr{constructor(t,r,a,i){let n=-1;if(super(t,r),$y(this,"space",i),typeof a=="number")for(;++n<af.length;){const s=af[n];$y(this,af[n],(a&ld[s])===ld[s])}}}um.prototype.defined=!0;function $y(e,t,r){r&&(e[t]=r)}function Zi(e){const t={},r={};for(const[a,i]of Object.entries(e.properties)){const n=new um(a,e.transform(e.attributes||{},a),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(n.mustUseProperty=!0),t[a]=n,r[sd(a)]=a,r[sd(n.attribute)]=a}return new lo(t,r,e.space)}const f0=Zi({properties:{ariaActiveDescendant:null,ariaAtomic:Lt,ariaAutoComplete:null,ariaBusy:Lt,ariaChecked:Lt,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:kt,ariaCurrent:null,ariaDescribedBy:kt,ariaDetails:null,ariaDisabled:Lt,ariaDropEffect:kt,ariaErrorMessage:null,ariaExpanded:Lt,ariaFlowTo:kt,ariaGrabbed:Lt,ariaHasPopup:null,ariaHidden:Lt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kt,ariaLevel:ue,ariaLive:null,ariaModal:Lt,ariaMultiLine:Lt,ariaMultiSelectable:Lt,ariaOrientation:null,ariaOwns:kt,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:Lt,ariaReadOnly:Lt,ariaRelevant:null,ariaRequired:Lt,ariaRoleDescription:kt,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:Lt,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function d0(e,t){return t in e?e[t]:t}function m0(e,t){return d0(e,t.toLowerCase())}const wD=Zi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Va,acceptCharset:kt,accessKey:kt,action:null,allow:null,allowFullScreen:Pe,allowPaymentRequest:Pe,allowUserMedia:Pe,alpha:Pe,alt:null,as:null,async:Pe,autoCapitalize:null,autoComplete:kt,autoFocus:Pe,autoPlay:Pe,blocking:kt,capture:null,charSet:null,checked:Pe,cite:null,className:kt,closedBy:null,colorSpace:null,cols:ue,colSpan:ue,command:null,commandFor:null,content:null,contentEditable:Lt,controls:Pe,controlsList:kt,coords:ue|Va,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Pe,defer:Pe,dir:null,dirName:null,disabled:Pe,download:od,draggable:Lt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Pe,formTarget:null,headers:kt,height:ue,hidden:od,high:ue,href:null,hrefLang:null,htmlFor:kt,httpEquiv:kt,id:null,imageSizes:null,imageSrcSet:null,inert:Pe,inputMode:null,integrity:null,is:null,isMap:Pe,itemId:null,itemProp:kt,itemRef:kt,itemScope:Pe,itemType:kt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Pe,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:Pe,muted:Pe,name:null,nonce:null,noModule:Pe,noValidate:Pe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Pe,optimum:ue,pattern:null,ping:kt,placeholder:null,playsInline:Pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Pe,referrerPolicy:null,rel:kt,required:Pe,reversed:Pe,rows:ue,rowSpan:ue,sandbox:kt,scope:null,scoped:Pe,seamless:Pe,selected:Pe,shadowRootClonable:Pe,shadowRootCustomElementRegistry:Pe,shadowRootDelegatesFocus:Pe,shadowRootMode:null,shadowRootSerializable:Pe,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:Lt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:Pe,useMap:null,value:Lt,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:kt,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Pe,declare:Pe,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:Pe,noHref:Pe,noShade:Pe,noWrap:Pe,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:Lt,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Pe,disablePictureInPicture:Pe,disableRemotePlayback:Pe,exportParts:Va,part:kt,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:m0}),SD=Zi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Tr,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:kt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:Pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Va,g2:Va,glyphName:Va,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:Tr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ue,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Tr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Tr,rev:Tr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Tr,requiredFeatures:Tr,requiredFonts:Tr,requiredFormats:Tr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:Tr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Tr,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Tr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:d0}),p0=Zi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),h0=Zi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:m0}),g0=Zi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ED={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},xD=/[A-Z]/g,Uy=/-[a-z]/g,CD=/^data[-\w.:]+$/i;function AD(e,t){const r=sd(t);let a=t,i=xr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&CD.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(Uy,OD);a="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!Uy.test(n)){let s=n.replace(xD,_D);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=um}return new i(a,t)}function _D(e){return"-"+e.toLowerCase()}function OD(e){return e.charAt(1).toUpperCase()}const TD=u0([f0,wD,p0,h0,g0],"html"),fm=u0([f0,SD,p0,h0,g0],"svg");function PD(e){return e.join(" ").trim()}var vi={},sf,By;function ID(){if(By)return sf;By=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,n=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,c=`
|
|
106
|
-
`,l="/",u="*",f="",m="comment",d="declaration";function h(v,y){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];y=y||{};var b=1,w=1;function E(I){var F=I.match(t);F&&(b+=F.length);var $=I.lastIndexOf(c);w=~$?I.length-$:w+I.length}function p(){var I={line:b,column:w};return function(F){return F.position=new g(I),O(),F}}function g(I){this.start=I,this.end={line:b,column:w},this.source=y.source}g.prototype.content=v;function S(I){var F=new Error(y.source+":"+b+":"+w+": "+I);if(F.reason=I,F.filename=y.source,F.line=b,F.column=w,F.source=v,!y.silent)throw F}function C(I){var F=I.exec(v);if(F){var $=F[0];return E($),v=v.slice($.length),F}}function O(){C(r)}function _(I){var F;for(I=I||[];F=x();)F!==!1&&I.push(F);return I}function x(){var I=p();if(!(l!=v.charAt(0)||u!=v.charAt(1))){for(var F=2;f!=v.charAt(F)&&(u!=v.charAt(F)||l!=v.charAt(F+1));)++F;if(F+=2,f===v.charAt(F-1))return S("End of comment missing");var $=v.slice(2,F-2);return w+=2,E($),v=v.slice(F),w+=2,I({type:m,comment:$})}}function A(){var I=p(),F=C(a);if(F){if(x(),!C(i))return S("property missing ':'");var $=C(n),Y=I({type:d,property:k(F[0].replace(e,f)),value:$?k($[0].replace(e,f)):f});return C(s),Y}}function N(){var I=[];_(I);for(var F;F=A();)F!==!1&&(I.push(F),_(I));return I}return O(),N()}function k(v){return v?v.replace(o,f):f}return sf=h,sf}var Vy;function RD(){if(Vy)return vi;Vy=1;var e=vi&&vi.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(vi,"__esModule",{value:!0}),vi.default=r;const t=e(ID());function r(a,i){let n=null;if(!a||typeof a!="string")return n;const s=(0,t.default)(a),o=typeof i=="function";return s.forEach(c=>{if(c.type!=="declaration")return;const{property:l,value:u}=c;o?i(l,u,c):u&&(n=n||{},n[l]=u)}),n}return vi}var gs={},Hy;function ND(){if(Hy)return gs;Hy=1,Object.defineProperty(gs,"__esModule",{value:!0}),gs.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,n=function(l){return!l||r.test(l)||e.test(l)},s=function(l,u){return u.toUpperCase()},o=function(l,u){return"".concat(u,"-")},c=function(l,u){return u===void 0&&(u={}),n(l)?l:(l=l.toLowerCase(),u.reactCompat?l=l.replace(i,o):l=l.replace(a,o),l.replace(t,s))};return gs.camelCase=c,gs}var ys,Wy;function jD(){if(Wy)return ys;Wy=1;var e=ys&&ys.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(RD()),r=ND();function a(i,n){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,c){o&&c&&(s[(0,r.camelCase)(o,n)]=c)}),s}return a.default=a,ys=a,ys}var DD=jD();const FD=Pn(DD),y0=v0("end"),dm=v0("start");function v0(e){return t;function t(r){const a=r&&r.position&&r.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function MD(e){const t=dm(e),r=y0(e);if(t&&r)return{start:t,end:r}}function Rs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ky(e.position):"start"in e||"end"in e?Ky(e):"line"in e||"column"in e?cd(e):""}function cd(e){return Gy(e&&e.line)+":"+Gy(e&&e.column)}function Ky(e){return cd(e&&e.start)+"-"+cd(e&&e.end)}function Gy(e){return e&&typeof e=="number"?e:1}class ir extends Error{constructor(t,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let i="",n={},s=!1;if(r&&("line"in r&&"column"in r?n={place:r}:"start"in r&&"end"in r?n={place:r}:"type"in r?n={ancestors:[r],place:r.position}:n={...r}),typeof t=="string"?i=t:!n.cause&&t&&(s=!0,i=t.message,n.cause=t),!n.ruleId&&!n.source&&typeof a=="string"){const c=a.indexOf(":");c===-1?n.ruleId=a:(n.source=a.slice(0,c),n.ruleId=a.slice(c+1))}if(!n.place&&n.ancestors&&n.ancestors){const c=n.ancestors[n.ancestors.length-1];c&&(n.place=c.position)}const o=n.place&&"start"in n.place?n.place.start:n.place;this.ancestors=n.ancestors||void 0,this.cause=n.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=Rs(n.place)||"1:1",this.place=n.place||void 0,this.reason=this.message,this.ruleId=n.ruleId||void 0,this.source=n.source||void 0,this.stack=s&&n.cause&&typeof n.cause.stack=="string"?n.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ir.prototype.file="";ir.prototype.name="";ir.prototype.reason="";ir.prototype.message="";ir.prototype.stack="";ir.prototype.column=void 0;ir.prototype.line=void 0;ir.prototype.ancestors=void 0;ir.prototype.cause=void 0;ir.prototype.fatal=void 0;ir.prototype.place=void 0;ir.prototype.ruleId=void 0;ir.prototype.source=void 0;const mm={}.hasOwnProperty,LD=new Map,qD=/[A-Z]/g,zD=new Set(["table","tbody","thead","tfoot","tr"]),$D=new Set(["td","th"]),b0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function UD(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=YD(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=JD(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?fm:TD,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=k0(i,e,void 0);return n&&typeof n!="string"?n:i.create(e,i.Fragment,{children:n||void 0},void 0)}function k0(e,t,r){if(t.type==="element")return BD(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return VD(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return WD(e,t,r);if(t.type==="mdxjsEsm")return HD(e,t);if(t.type==="root")return KD(e,t,r);if(t.type==="text")return GD(e,t)}function BD(e,t,r){const a=e.schema;let i=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(i=fm,e.schema=i),e.ancestors.push(t);const n=S0(e,t.tagName,!1),s=XD(e,t);let o=hm(e,t);return zD.has(t.tagName)&&(o=o.filter(function(c){return typeof c=="string"?!bD(c):!0})),w0(e,s,n,t),pm(s,o),e.ancestors.pop(),e.schema=a,e.create(t,n,s,r)}function VD(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Ws(e,t.position)}function HD(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ws(e,t.position)}function WD(e,t,r){const a=e.schema;let i=a;t.name==="svg"&&a.space==="html"&&(i=fm,e.schema=i),e.ancestors.push(t);const n=t.name===null?e.Fragment:S0(e,t.name,!0),s=ZD(e,t),o=hm(e,t);return w0(e,s,n,t),pm(s,o),e.ancestors.pop(),e.schema=a,e.create(t,n,s,r)}function KD(e,t,r){const a={};return pm(a,hm(e,t)),e.create(t,e.Fragment,a,r)}function GD(e,t){return t.value}function w0(e,t,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=a)}function pm(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function JD(e,t,r){return a;function a(i,n,s,o){const l=Array.isArray(s.children)?r:t;return o?l(n,s,o):l(n,s)}}function YD(e,t){return r;function r(a,i,n,s){const o=Array.isArray(n.children),c=dm(a);return t(i,n,s,o,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function XD(e,t){const r={};let a,i;for(i in t.properties)if(i!=="children"&&mm.call(t.properties,i)){const n=QD(e,i,t.properties[i]);if(n){const[s,o]=n;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&$D.has(t.tagName)?a=o:r[s]=o}}if(a){const n=r.style||(r.style={});n[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function ZD(e,t){const r={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const n=a.data.estree.body[0];n.type;const s=n.expression;s.type;const o=s.properties[0];o.type,Object.assign(r,e.evaluater.evaluateExpression(o.argument))}else Ws(e,t.position);else{const i=a.name;let n;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const o=a.value.data.estree.body[0];o.type,n=e.evaluater.evaluateExpression(o.expression)}else Ws(e,t.position);else n=a.value===null?!0:a.value;r[i]=n}return r}function hm(e,t){const r=[];let a=-1;const i=e.passKeys?new Map:LD;for(;++a<t.children.length;){const n=t.children[a];let s;if(e.passKeys){const c=n.type==="element"?n.tagName:n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement"?n.name:void 0;if(c){const l=i.get(c)||0;s=c+"-"+l,i.set(c,l+1)}}const o=k0(e,n,s);o!==void 0&&r.push(o)}return r}function QD(e,t,r){const a=AD(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?pD(r):PD(r)),a.property==="style"){let i=typeof r=="object"?r:eF(e,String(r));return e.stylePropertyNameCase==="css"&&(i=tF(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&a.space?ED[a.property]||a.property:a.attribute,r]}}function eF(e,t){try{return FD(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const a=r,i=new ir("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=b0+"#cannot-parse-style-attribute",i}}function S0(e,t,r){let a;if(!r)a={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let n=-1,s;for(;++n<i.length;){const o=qy(i[n])?{type:"Identifier",name:i[n]}:{type:"Literal",value:i[n]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(n&&o.type==="Literal"),optional:!1}:o}a=s}else a=qy(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const i=a.value;return mm.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(a);Ws(e)}function Ws(e,t){const r=new ir("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=b0+"#cannot-handle-mdx-estrees-without-createevaluater",r}function tF(e){const t={};let r;for(r in e)mm.call(e,r)&&(t[rF(r)]=e[r]);return t}function rF(e){let t=e.replace(qD,nF);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function nF(e){return"-"+e.toLowerCase()}const of={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},aF={};function iF(e,t){const r=aF,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return E0(e,a,i)}function E0(e,t,r){if(sF(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Jy(e.children,t,r)}return Array.isArray(e)?Jy(e,t,r):""}function Jy(e,t,r){const a=[];let i=-1;for(;++i<e.length;)a[i]=E0(e[i],t,r);return a.join("")}function sF(e){return!!(e&&typeof e=="object")}const Yy=document.createElement("i");function gm(e){const t="&"+e+";";Yy.innerHTML=t;const r=Yy.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Tn(e,t,r,a){const i=e.length;let n=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,a.length<1e4)s=Array.from(a),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);n<a.length;)s=a.slice(n,n+1e4),s.unshift(t,0),e.splice(...s),n+=1e4,t+=1e4}function Ur(e,t){return e.length>0?(Tn(e,e.length,0,t),e):t}const Xy={}.hasOwnProperty;function oF(e){const t={};let r=-1;for(;++r<e.length;)lF(t,e[r]);return t}function lF(e,t){let r;for(r in t){const i=(Xy.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let s;if(n)for(s in n){Xy.call(i,s)||(i[s]=[]);const o=n[s];cF(i[s],Array.isArray(o)?o:o?[o]:[])}}}function cF(e,t){let r=-1;const a=[];for(;++r<t.length;)(t[r].add==="after"?e:a).push(t[r]);Tn(e,0,0,a)}function x0(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Di(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const En=_a(/[A-Za-z]/),Nr=_a(/[\dA-Za-z]/),uF=_a(/[#-'*+\--9=?A-Z^-~]/);function ud(e){return e!==null&&(e<32||e===127)}const fd=_a(/\d/),fF=_a(/[\dA-Fa-f]/),dF=_a(/[!-/:-@[-`{-~]/);function Oe(e){return e!==null&&e<-2}function Er(e){return e!==null&&(e<0||e===32)}function ot(e){return e===-2||e===-1||e===32}const mF=_a(new RegExp("\\p{P}|\\p{S}","u")),pF=_a(/\s/);function _a(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Qi(e){const t=[];let r=-1,a=0,i=0;for(;++r<e.length;){const n=e.charCodeAt(r);let s="";if(n===37&&Nr(e.charCodeAt(r+1))&&Nr(e.charCodeAt(r+2)))i=2;else if(n<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(n))||(s=String.fromCharCode(n));else if(n>55295&&n<57344){const o=e.charCodeAt(r+1);n<56320&&o>56319&&o<57344?(s=String.fromCharCode(n,o),i=1):s="�"}else s=String.fromCharCode(n);s&&(t.push(e.slice(a,r),encodeURIComponent(s)),a=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(a)}function Et(e,t,r,a){const i=a?a-1:Number.POSITIVE_INFINITY;let n=0;return s;function s(c){return ot(c)?(e.enter(r),o(c)):t(c)}function o(c){return ot(c)&&n++<i?(e.consume(c),o):(e.exit(r),t(c))}}const hF={tokenize:gF};function gF(e){const t=e.attempt(this.parser.constructs.contentInitial,a,i);let r;return t;function a(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Et(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),n(o)}function n(o){const c=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=c),r=c,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return Oe(o)?(e.consume(o),e.exit("chunkText"),n):(e.consume(o),s)}}const yF={tokenize:vF},Zy={tokenize:bF};function vF(e){const t=this,r=[];let a=0,i,n,s;return o;function o(w){if(a<r.length){const E=r[a];return t.containerState=E[1],e.attempt(E[0].continuation,c,l)(w)}return l(w)}function c(w){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const E=t.events.length;let p=E,g;for(;p--;)if(t.events[p][0]==="exit"&&t.events[p][1].type==="chunkFlow"){g=t.events[p][1].end;break}y(a);let S=E;for(;S<t.events.length;)t.events[S][1].end={...g},S++;return Tn(t.events,p+1,0,t.events.slice(E)),t.events.length=S,l(w)}return o(w)}function l(w){if(a===r.length){if(!i)return m(w);if(i.currentConstruct&&i.currentConstruct.concrete)return h(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Zy,u,f)(w)}function u(w){return i&&b(),y(a),m(w)}function f(w){return t.parser.lazy[t.now().line]=a!==r.length,s=t.now().offset,h(w)}function m(w){return t.containerState={},e.attempt(Zy,d,h)(w)}function d(w){return a++,r.push([t.currentConstruct,t.containerState]),m(w)}function h(w){if(w===null){i&&b(),y(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:n}),k(w)}function k(w){if(w===null){v(e.exit("chunkFlow"),!0),y(0),e.consume(w);return}return Oe(w)?(e.consume(w),v(e.exit("chunkFlow")),a=0,t.interrupt=void 0,o):(e.consume(w),k)}function v(w,E){const p=t.sliceStream(w);if(E&&p.push(null),w.previous=n,n&&(n.next=w),n=w,i.defineSkip(w.start),i.write(p),t.parser.lazy[w.start.line]){let g=i.events.length;for(;g--;)if(i.events[g][1].start.offset<s&&(!i.events[g][1].end||i.events[g][1].end.offset>s))return;const S=t.events.length;let C=S,O,_;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(O){_=t.events[C][1].end;break}O=!0}for(y(a),g=S;g<t.events.length;)t.events[g][1].end={..._},g++;Tn(t.events,C+1,0,t.events.slice(S)),t.events.length=g}}function y(w){let E=r.length;for(;E-- >w;){const p=r[E];t.containerState=p[1],p[0].exit.call(t,e)}r.length=w}function b(){i.write([null]),n=void 0,i=void 0,t.containerState._closeFlow=void 0}}function bF(e,t,r){return Et(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Qy(e){if(e===null||Er(e)||pF(e))return 1;if(mF(e))return 2}function ym(e,t,r){const a=[];let i=-1;for(;++i<e.length;){const n=e[i].resolveAll;n&&!a.includes(n)&&(t=n(t,r),a.push(n))}return t}const dd={name:"attention",resolveAll:kF,tokenize:wF};function kF(e,t){let r=-1,a,i,n,s,o,c,l,u;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;c=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f={...e[a][1].end},m={...e[r][1].start};ev(f,-c),ev(m,c),s={type:c>1?"strongSequence":"emphasisSequence",start:f,end:{...e[a][1].end}},o={type:c>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:m},n={type:c>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[r][1].start}},i={type:c>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[a][1].end={...s.start},e[r][1].start={...o.end},l=[],e[a][1].end.offset-e[a][1].start.offset&&(l=Ur(l,[["enter",e[a][1],t],["exit",e[a][1],t]])),l=Ur(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",n,t]]),l=Ur(l,ym(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),l=Ur(l,[["exit",n,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(u=2,l=Ur(l,[["enter",e[r][1],t],["exit",e[r][1],t]])):u=0,Tn(e,a-1,r-a+3,l),r=a+l.length-u-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function wF(e,t){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,i=Qy(a);let n;return s;function s(c){return n=c,e.enter("attentionSequence"),o(c)}function o(c){if(c===n)return e.consume(c),o;const l=e.exit("attentionSequence"),u=Qy(c),f=!u||u===2&&i||r.includes(c),m=!i||i===2&&u||r.includes(a);return l._open=!!(n===42?f:f&&(i||!m)),l._close=!!(n===42?m:m&&(u||!f)),t(c)}}function ev(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const SF={name:"autolink",tokenize:EF};function EF(e,t,r){let a=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),n}function n(d){return En(d)?(e.consume(d),s):d===64?r(d):l(d)}function s(d){return d===43||d===45||d===46||Nr(d)?(a=1,o(d)):l(d)}function o(d){return d===58?(e.consume(d),a=0,c):(d===43||d===45||d===46||Nr(d))&&a++<32?(e.consume(d),o):(a=0,l(d))}function c(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||ud(d)?r(d):(e.consume(d),c)}function l(d){return d===64?(e.consume(d),u):uF(d)?(e.consume(d),l):r(d)}function u(d){return Nr(d)?f(d):r(d)}function f(d){return d===46?(e.consume(d),a=0,u):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):m(d)}function m(d){if((d===45||Nr(d))&&a++<63){const h=d===45?m:f;return e.consume(d),h}return r(d)}}const xc={partial:!0,tokenize:xF};function xF(e,t,r){return a;function a(n){return ot(n)?Et(e,i,"linePrefix")(n):i(n)}function i(n){return n===null||Oe(n)?t(n):r(n)}}const C0={continuation:{tokenize:AF},exit:_F,name:"blockQuote",tokenize:CF};function CF(e,t,r){const a=this;return i;function i(s){if(s===62){const o=a.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),n}return r(s)}function n(s){return ot(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function AF(e,t,r){const a=this;return i;function i(s){return ot(s)?Et(e,n,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):n(s)}function n(s){return e.attempt(C0,t,r)(s)}}function _F(e){e.exit("blockQuote")}const A0={name:"characterEscape",tokenize:OF};function OF(e,t,r){return a;function a(n){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(n),e.exit("escapeMarker"),i}function i(n){return dF(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const _0={name:"characterReference",tokenize:TF};function TF(e,t,r){const a=this;let i=0,n,s;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),c}function c(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),n=31,s=Nr,u(f))}function l(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,s=fF,u):(e.enter("characterReferenceValue"),n=7,s=fd,u(f))}function u(f){if(f===59&&i){const m=e.exit("characterReferenceValue");return s===Nr&&!gm(a.sliceSerialize(m))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<n?(e.consume(f),u):r(f)}}const tv={partial:!0,tokenize:IF},rv={concrete:!0,name:"codeFenced",tokenize:PF};function PF(e,t,r){const a=this,i={partial:!0,tokenize:p};let n=0,s=0,o;return c;function c(g){return l(g)}function l(g){const S=a.events[a.events.length-1];return n=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,o=g,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(g)}function u(g){return g===o?(s++,e.consume(g),u):s<3?r(g):(e.exit("codeFencedFenceSequence"),ot(g)?Et(e,f,"whitespace")(g):f(g))}function f(g){return g===null||Oe(g)?(e.exit("codeFencedFence"),a.interrupt?t(g):e.check(tv,k,E)(g)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===null||Oe(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(g)):ot(g)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Et(e,d,"whitespace")(g)):g===96&&g===o?r(g):(e.consume(g),m)}function d(g){return g===null||Oe(g)?f(g):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===null||Oe(g)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(g)):g===96&&g===o?r(g):(e.consume(g),h)}function k(g){return e.attempt(i,E,v)(g)}function v(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),y}function y(g){return n>0&&ot(g)?Et(e,b,"linePrefix",n+1)(g):b(g)}function b(g){return g===null||Oe(g)?e.check(tv,k,E)(g):(e.enter("codeFlowValue"),w(g))}function w(g){return g===null||Oe(g)?(e.exit("codeFlowValue"),b(g)):(e.consume(g),w)}function E(g){return e.exit("codeFenced"),t(g)}function p(g,S,C){let O=0;return _;function _(F){return g.enter("lineEnding"),g.consume(F),g.exit("lineEnding"),x}function x(F){return g.enter("codeFencedFence"),ot(F)?Et(g,A,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):A(F)}function A(F){return F===o?(g.enter("codeFencedFenceSequence"),N(F)):C(F)}function N(F){return F===o?(O++,g.consume(F),N):O>=s?(g.exit("codeFencedFenceSequence"),ot(F)?Et(g,I,"whitespace")(F):I(F)):C(F)}function I(F){return F===null||Oe(F)?(g.exit("codeFencedFence"),S(F)):C(F)}}}function IF(e,t,r){const a=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n)}function n(s){return a.parser.lazy[a.now().line]?r(s):t(s)}}const lf={name:"codeIndented",tokenize:NF},RF={partial:!0,tokenize:jF};function NF(e,t,r){const a=this;return i;function i(l){return e.enter("codeIndented"),Et(e,n,"linePrefix",5)(l)}function n(l){const u=a.events[a.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(l):r(l)}function s(l){return l===null?c(l):Oe(l)?e.attempt(RF,s,c)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||Oe(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function c(l){return e.exit("codeIndented"),t(l)}}function jF(e,t,r){const a=this;return i;function i(s){return a.parser.lazy[a.now().line]?r(s):Oe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Et(e,n,"linePrefix",5)(s)}function n(s){const o=a.events[a.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Oe(s)?i(s):r(s)}}const DF={name:"codeText",previous:MF,resolve:FF,tokenize:LF};function FF(e){let t=e.length-4,r=3,a,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=r;++a<t;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(a=r-1,t++;++a<=t;)i===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(i=a):(a===t||e[a][1].type==="lineEnding")&&(e[i][1].type="codeTextData",a!==i+2&&(e[i][1].end=e[a-1][1].end,e.splice(i+2,a-i-2),t-=a-i-2,a=i+2),i=void 0);return e}function MF(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function LF(e,t,r){let a=0,i,n;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),a++,o):(e.exit("codeTextSequence"),c(f))}function c(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),c):f===96?(n=e.enter("codeTextSequence"),i=0,u(f)):Oe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("codeTextData"),l(f))}function l(f){return f===null||f===32||f===96||Oe(f)?(e.exit("codeTextData"),c(f)):(e.consume(f),l)}function u(f){return f===96?(e.consume(f),i++,u):i===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(n.type="codeTextData",l(f))}}class qF{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,r,a){const i=r||0;this.setCursor(Math.trunc(t));const n=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return a&&vs(this.left,a),n.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),vs(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),vs(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);vs(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);vs(this.left,r.reverse())}}}function vs(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function O0(e){const t={};let r=-1,a,i,n,s,o,c,l;const u=new qF(e);for(;++r<u.length;){for(;r in t;)r=t[r];if(a=u.get(r),r&&a[1].type==="chunkFlow"&&u.get(r-1)[1].type==="listItemPrefix"&&(c=a[1]._tokenizer.events,n=0,n<c.length&&c[n][1].type==="lineEndingBlank"&&(n+=2),n<c.length&&c[n][1].type==="content"))for(;++n<c.length&&c[n][1].type!=="content";)c[n][1].type==="chunkText"&&(c[n][1]._isInFirstContentOfListItem=!0,n++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,zF(u,r)),r=t[r],l=!0);else if(a[1]._container){for(n=r,i=void 0;n--;)if(s=u.get(n),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=n);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(a[1].end={...u.get(i)[1].start},o=u.slice(i,r),o.unshift(a),u.splice(i,r-i+1,o))}}return Tn(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function zF(e,t){const r=e.get(t)[1],a=e.get(t)[2];let i=t-1;const n=[];let s=r._tokenizer;s||(s=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,c=[],l={};let u,f,m=-1,d=r,h=0,k=0;const v=[k];for(;d;){for(;e.get(++i)[1]!==d;);n.push(i),d._tokenizer||(u=a.sliceStream(d),d.next||u.push(null),f&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=r;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(k=m+1,v.push(k),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):v.pop(),m=v.length;m--;){const y=o.slice(v[m],v[m+1]),b=n.pop();c.push([b,b+y.length-1]),e.splice(b,2,y)}for(c.reverse(),m=-1;++m<c.length;)l[h+c[m][0]]=h+c[m][1],h+=c[m][1]-c[m][0]-1;return l}const $F={resolve:BF,tokenize:VF},UF={partial:!0,tokenize:HF};function BF(e){return O0(e),e}function VF(e,t){let r;return a;function a(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?n(o):Oe(o)?e.check(UF,s,n)(o):(e.consume(o),i)}function n(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function HF(e,t,r){const a=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Et(e,n,"linePrefix")}function n(s){if(s===null||Oe(s))return r(s);const o=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(a.parser.constructs.flow,r,t)(s)}}function T0(e,t,r,a,i,n,s,o,c){const l=c||Number.POSITIVE_INFINITY;let u=0;return f;function f(y){return y===60?(e.enter(a),e.enter(i),e.enter(n),e.consume(y),e.exit(n),m):y===null||y===32||y===41||ud(y)?r(y):(e.enter(a),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),k(y))}function m(y){return y===62?(e.enter(n),e.consume(y),e.exit(n),e.exit(i),e.exit(a),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(e.exit("chunkString"),e.exit(o),m(y)):y===null||y===60||Oe(y)?r(y):(e.consume(y),y===92?h:d)}function h(y){return y===60||y===62||y===92?(e.consume(y),d):d(y)}function k(y){return!u&&(y===null||y===41||Er(y))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(a),t(y)):u<l&&y===40?(e.consume(y),u++,k):y===41?(e.consume(y),u--,k):y===null||y===32||y===40||ud(y)?r(y):(e.consume(y),y===92?v:k)}function v(y){return y===40||y===41||y===92?(e.consume(y),k):k(y)}}function P0(e,t,r,a,i,n){const s=this;let o=0,c;return l;function l(d){return e.enter(a),e.enter(i),e.consume(d),e.exit(i),e.enter(n),u}function u(d){return o>999||d===null||d===91||d===93&&!c||d===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(d):d===93?(e.exit(n),e.enter(i),e.consume(d),e.exit(i),e.exit(a),t):Oe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||Oe(d)||o++>999?(e.exit("chunkString"),u(d)):(e.consume(d),c||(c=!ot(d)),d===92?m:f)}function m(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function I0(e,t,r,a,i,n){let s;return o;function o(m){return m===34||m===39||m===40?(e.enter(a),e.enter(i),e.consume(m),e.exit(i),s=m===40?41:m,c):r(m)}function c(m){return m===s?(e.enter(i),e.consume(m),e.exit(i),e.exit(a),t):(e.enter(n),l(m))}function l(m){return m===s?(e.exit(n),c(s)):m===null?r(m):Oe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Et(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(m))}function u(m){return m===s||m===null||Oe(m)?(e.exit("chunkString"),l(m)):(e.consume(m),m===92?f:u)}function f(m){return m===s||m===92?(e.consume(m),u):u(m)}}function Ns(e,t){let r;return a;function a(i){return Oe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,a):ot(i)?Et(e,a,r?"linePrefix":"lineSuffix")(i):t(i)}}const WF={name:"definition",tokenize:GF},KF={partial:!0,tokenize:JF};function GF(e,t,r){const a=this;let i;return n;function n(d){return e.enter("definition"),s(d)}function s(d){return P0.call(a,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return i=Di(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),c):r(d)}function c(d){return Er(d)?Ns(e,l)(d):l(d)}function l(d){return T0(e,u,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function u(d){return e.attempt(KF,f,f)(d)}function f(d){return ot(d)?Et(e,m,"whitespace")(d):m(d)}function m(d){return d===null||Oe(d)?(e.exit("definition"),a.parser.defined.push(i),t(d)):r(d)}}function JF(e,t,r){return a;function a(o){return Er(o)?Ns(e,i)(o):r(o)}function i(o){return I0(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function n(o){return ot(o)?Et(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Oe(o)?t(o):r(o)}}const YF={name:"hardBreakEscape",tokenize:XF};function XF(e,t,r){return a;function a(n){return e.enter("hardBreakEscape"),e.consume(n),i}function i(n){return Oe(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}const ZF={name:"headingAtx",resolve:QF,tokenize:eM};function QF(e,t){let r=e.length-2,a=3,i,n;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(i={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},n={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},Tn(e,a,r-a+1,[["enter",i,t],["enter",n,t],["exit",n,t],["exit",i,t]])),e}function eM(e,t,r){let a=0;return i;function i(u){return e.enter("atxHeading"),n(u)}function n(u){return e.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&a++<6?(e.consume(u),s):u===null||Er(u)?(e.exit("atxHeadingSequence"),o(u)):r(u)}function o(u){return u===35?(e.enter("atxHeadingSequence"),c(u)):u===null||Oe(u)?(e.exit("atxHeading"),t(u)):ot(u)?Et(e,o,"whitespace")(u):(e.enter("atxHeadingText"),l(u))}function c(u){return u===35?(e.consume(u),c):(e.exit("atxHeadingSequence"),o(u))}function l(u){return u===null||u===35||Er(u)?(e.exit("atxHeadingText"),o(u)):(e.consume(u),l)}}const tM=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],nv=["pre","script","style","textarea"],rM={concrete:!0,name:"htmlFlow",resolveTo:iM,tokenize:sM},nM={partial:!0,tokenize:lM},aM={partial:!0,tokenize:oM};function iM(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function sM(e,t,r){const a=this;let i,n,s,o,c;return l;function l(T){return u(T)}function u(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),f}function f(T){return T===33?(e.consume(T),m):T===47?(e.consume(T),n=!0,k):T===63?(e.consume(T),i=3,a.interrupt?t:P):En(T)?(e.consume(T),s=String.fromCharCode(T),v):r(T)}function m(T){return T===45?(e.consume(T),i=2,d):T===91?(e.consume(T),i=5,o=0,h):En(T)?(e.consume(T),i=4,a.interrupt?t:P):r(T)}function d(T){return T===45?(e.consume(T),a.interrupt?t:P):r(T)}function h(T){const R="CDATA[";return T===R.charCodeAt(o++)?(e.consume(T),o===R.length?a.interrupt?t:A:h):r(T)}function k(T){return En(T)?(e.consume(T),s=String.fromCharCode(T),v):r(T)}function v(T){if(T===null||T===47||T===62||Er(T)){const R=T===47,M=s.toLowerCase();return!R&&!n&&nv.includes(M)?(i=1,a.interrupt?t(T):A(T)):tM.includes(s.toLowerCase())?(i=6,R?(e.consume(T),y):a.interrupt?t(T):A(T)):(i=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(T):n?b(T):w(T))}return T===45||Nr(T)?(e.consume(T),s+=String.fromCharCode(T),v):r(T)}function y(T){return T===62?(e.consume(T),a.interrupt?t:A):r(T)}function b(T){return ot(T)?(e.consume(T),b):_(T)}function w(T){return T===47?(e.consume(T),_):T===58||T===95||En(T)?(e.consume(T),E):ot(T)?(e.consume(T),w):_(T)}function E(T){return T===45||T===46||T===58||T===95||Nr(T)?(e.consume(T),E):p(T)}function p(T){return T===61?(e.consume(T),g):ot(T)?(e.consume(T),p):w(T)}function g(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(e.consume(T),c=T,S):ot(T)?(e.consume(T),g):C(T)}function S(T){return T===c?(e.consume(T),c=null,O):T===null||Oe(T)?r(T):(e.consume(T),S)}function C(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Er(T)?p(T):(e.consume(T),C)}function O(T){return T===47||T===62||ot(T)?w(T):r(T)}function _(T){return T===62?(e.consume(T),x):r(T)}function x(T){return T===null||Oe(T)?A(T):ot(T)?(e.consume(T),x):r(T)}function A(T){return T===45&&i===2?(e.consume(T),$):T===60&&i===1?(e.consume(T),Y):T===62&&i===4?(e.consume(T),D):T===63&&i===3?(e.consume(T),P):T===93&&i===5?(e.consume(T),ie):Oe(T)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(nM,U,N)(T)):T===null||Oe(T)?(e.exit("htmlFlowData"),N(T)):(e.consume(T),A)}function N(T){return e.check(aM,I,U)(T)}function I(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),F}function F(T){return T===null||Oe(T)?N(T):(e.enter("htmlFlowData"),A(T))}function $(T){return T===45?(e.consume(T),P):A(T)}function Y(T){return T===47?(e.consume(T),s="",Z):A(T)}function Z(T){if(T===62){const R=s.toLowerCase();return nv.includes(R)?(e.consume(T),D):A(T)}return En(T)&&s.length<8?(e.consume(T),s+=String.fromCharCode(T),Z):A(T)}function ie(T){return T===93?(e.consume(T),P):A(T)}function P(T){return T===62?(e.consume(T),D):T===45&&i===2?(e.consume(T),P):A(T)}function D(T){return T===null||Oe(T)?(e.exit("htmlFlowData"),U(T)):(e.consume(T),D)}function U(T){return e.exit("htmlFlow"),t(T)}}function oM(e,t,r){const a=this;return i;function i(s){return Oe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n):r(s)}function n(s){return a.parser.lazy[a.now().line]?r(s):t(s)}}function lM(e,t,r){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(xc,t,r)}}const cM={name:"htmlText",tokenize:uM};function uM(e,t,r){const a=this;let i,n,s;return o;function o(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),c}function c(P){return P===33?(e.consume(P),l):P===47?(e.consume(P),p):P===63?(e.consume(P),w):En(P)?(e.consume(P),C):r(P)}function l(P){return P===45?(e.consume(P),u):P===91?(e.consume(P),n=0,h):En(P)?(e.consume(P),b):r(P)}function u(P){return P===45?(e.consume(P),d):r(P)}function f(P){return P===null?r(P):P===45?(e.consume(P),m):Oe(P)?(s=f,Y(P)):(e.consume(P),f)}function m(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?$(P):P===45?m(P):f(P)}function h(P){const D="CDATA[";return P===D.charCodeAt(n++)?(e.consume(P),n===D.length?k:h):r(P)}function k(P){return P===null?r(P):P===93?(e.consume(P),v):Oe(P)?(s=k,Y(P)):(e.consume(P),k)}function v(P){return P===93?(e.consume(P),y):k(P)}function y(P){return P===62?$(P):P===93?(e.consume(P),y):k(P)}function b(P){return P===null||P===62?$(P):Oe(P)?(s=b,Y(P)):(e.consume(P),b)}function w(P){return P===null?r(P):P===63?(e.consume(P),E):Oe(P)?(s=w,Y(P)):(e.consume(P),w)}function E(P){return P===62?$(P):w(P)}function p(P){return En(P)?(e.consume(P),g):r(P)}function g(P){return P===45||Nr(P)?(e.consume(P),g):S(P)}function S(P){return Oe(P)?(s=S,Y(P)):ot(P)?(e.consume(P),S):$(P)}function C(P){return P===45||Nr(P)?(e.consume(P),C):P===47||P===62||Er(P)?O(P):r(P)}function O(P){return P===47?(e.consume(P),$):P===58||P===95||En(P)?(e.consume(P),_):Oe(P)?(s=O,Y(P)):ot(P)?(e.consume(P),O):$(P)}function _(P){return P===45||P===46||P===58||P===95||Nr(P)?(e.consume(P),_):x(P)}function x(P){return P===61?(e.consume(P),A):Oe(P)?(s=x,Y(P)):ot(P)?(e.consume(P),x):O(P)}function A(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),i=P,N):Oe(P)?(s=A,Y(P)):ot(P)?(e.consume(P),A):(e.consume(P),I)}function N(P){return P===i?(e.consume(P),i=void 0,F):P===null?r(P):Oe(P)?(s=N,Y(P)):(e.consume(P),N)}function I(P){return P===null||P===34||P===39||P===60||P===61||P===96?r(P):P===47||P===62||Er(P)?O(P):(e.consume(P),I)}function F(P){return P===47||P===62||Er(P)?O(P):r(P)}function $(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):r(P)}function Y(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),Z}function Z(P){return ot(P)?Et(e,ie,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ie(P)}function ie(P){return e.enter("htmlTextData"),s(P)}}const vm={name:"labelEnd",resolveAll:pM,resolveTo:hM,tokenize:gM},fM={tokenize:yM},dM={tokenize:vM},mM={tokenize:bM};function pM(e){let t=-1;const r=[];for(;++t<e.length;){const a=e[t][1];if(r.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const i=a.type==="labelImage"?4:2;a.type="data",t+=i}}return e.length!==r.length&&Tn(e,0,e.length,r),e}function hM(e,t){let r=e.length,a=0,i,n,s,o;for(;r--;)if(i=e[r][1],n){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(n=r,i.type!=="labelLink")){a=2;break}}else i.type==="labelEnd"&&(s=r);const c={type:e[n][1].type==="labelLink"?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[n][1].start},end:{...e[s][1].end}},u={type:"labelText",start:{...e[n+a+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",c,t],["enter",l,t]],o=Ur(o,e.slice(n+1,n+a+3)),o=Ur(o,[["enter",u,t]]),o=Ur(o,ym(t.parser.constructs.insideSpan.null,e.slice(n+a+4,s-3),t)),o=Ur(o,[["exit",u,t],e[s-2],e[s-1],["exit",l,t]]),o=Ur(o,e.slice(s+1)),o=Ur(o,[["exit",c,t]]),Tn(e,n,e.length,o),e}function gM(e,t,r){const a=this;let i=a.events.length,n,s;for(;i--;)if((a.events[i][1].type==="labelImage"||a.events[i][1].type==="labelLink")&&!a.events[i][1]._balanced){n=a.events[i][1];break}return o;function o(m){return n?n._inactive?f(m):(s=a.parser.defined.includes(Di(a.sliceSerialize({start:n.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):r(m)}function c(m){return m===40?e.attempt(fM,u,s?u:f)(m):m===91?e.attempt(dM,u,s?l:f)(m):s?u(m):f(m)}function l(m){return e.attempt(mM,u,f)(m)}function u(m){return t(m)}function f(m){return n._balanced=!0,r(m)}}function yM(e,t,r){return a;function a(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return Er(f)?Ns(e,n)(f):n(f)}function n(f){return f===41?u(f):T0(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Er(f)?Ns(e,c)(f):u(f)}function o(f){return r(f)}function c(f){return f===34||f===39||f===40?I0(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function l(f){return Er(f)?Ns(e,u)(f):u(f)}function u(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function vM(e,t,r){const a=this;return i;function i(o){return P0.call(a,e,n,s,"reference","referenceMarker","referenceString")(o)}function n(o){return a.parser.defined.includes(Di(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function bM(e,t,r){return a;function a(n){return e.enter("reference"),e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),i}function i(n){return n===93?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}const kM={name:"labelStartImage",resolveAll:vm.resolveAll,tokenize:wM};function wM(e,t,r){const a=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),n}function n(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(o):t(o)}}const SM={name:"labelStartLink",resolveAll:vm.resolveAll,tokenize:EM};function EM(e,t,r){const a=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),n}function n(s){return s===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(s):t(s)}}const cf={name:"lineEnding",tokenize:xM};function xM(e,t){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Et(e,t,"linePrefix")}}const Nl={name:"thematicBreak",tokenize:CM};function CM(e,t,r){let a=0,i;return n;function n(l){return e.enter("thematicBreak"),s(l)}function s(l){return i=l,o(l)}function o(l){return l===i?(e.enter("thematicBreakSequence"),c(l)):a>=3&&(l===null||Oe(l))?(e.exit("thematicBreak"),t(l)):r(l)}function c(l){return l===i?(e.consume(l),a++,c):(e.exit("thematicBreakSequence"),ot(l)?Et(e,o,"whitespace")(l):o(l))}}const Sr={continuation:{tokenize:TM},exit:IM,name:"list",tokenize:OM},AM={partial:!0,tokenize:RM},_M={partial:!0,tokenize:PM};function OM(e,t,r){const a=this,i=a.events[a.events.length-1];let n=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(d){const h=a.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!a.containerState.marker||d===a.containerState.marker:fd(d)){if(a.containerState.type||(a.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Nl,r,l)(d):l(d);if(!a.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(d)}return r(d)}function c(d){return fd(d)&&++s<10?(e.consume(d),c):(!a.interrupt||s<2)&&(a.containerState.marker?d===a.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),l(d)):r(d)}function l(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||d,e.check(xc,a.interrupt?r:u,e.attempt(AM,m,f))}function u(d){return a.containerState.initialBlankLine=!0,n++,m(d)}function f(d){return ot(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),m):r(d)}function m(d){return a.containerState.size=n+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function TM(e,t,r){const a=this;return a.containerState._closeFlow=void 0,e.check(xc,i,n);function i(o){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Et(e,t,"listItemIndent",a.containerState.size+1)(o)}function n(o){return a.containerState.furtherBlankLines||!ot(o)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,s(o)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(_M,t,s)(o))}function s(o){return a.containerState._closeFlow=!0,a.interrupt=void 0,Et(e,e.attempt(Sr,t,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function PM(e,t,r){const a=this;return Et(e,i,"listItemIndent",a.containerState.size+1);function i(n){const s=a.events[a.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===a.containerState.size?t(n):r(n)}}function IM(e){e.exit(this.containerState.type)}function RM(e,t,r){const a=this;return Et(e,i,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(n){const s=a.events[a.events.length-1];return!ot(n)&&s&&s[1].type==="listItemPrefixWhitespace"?t(n):r(n)}}const av={name:"setextUnderline",resolveTo:NM,tokenize:jM};function NM(e,t){let r=e.length,a,i,n;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!n&&e[r][1].type==="definition"&&(n=r);const s={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",n?(e.splice(i,0,["enter",s,t]),e.splice(n+1,0,["exit",e[a][1],t]),e[a][1].end={...e[n][1].end}):e[a][1]=s,e.push(["exit",s,t]),e}function jM(e,t,r){const a=this;let i;return n;function n(l){let u=a.events.length,f;for(;u--;)if(a.events[u][1].type!=="lineEnding"&&a.events[u][1].type!=="linePrefix"&&a.events[u][1].type!=="content"){f=a.events[u][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||f)?(e.enter("setextHeadingLine"),i=l,s(l)):r(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),ot(l)?Et(e,c,"lineSuffix")(l):c(l))}function c(l){return l===null||Oe(l)?(e.exit("setextHeadingLine"),t(l)):r(l)}}const DM={tokenize:FM};function FM(e){const t=this,r=e.attempt(xc,a,e.attempt(this.parser.constructs.flowInitial,i,Et(e,e.attempt(this.parser.constructs.flow,i,e.attempt($F,i)),"linePrefix")));return r;function a(n){if(n===null){e.consume(n);return}return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(n){if(n===null){e.consume(n);return}return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const MM={resolveAll:N0()},LM=R0("string"),qM=R0("text");function R0(e){return{resolveAll:N0(e==="text"?zM:void 0),tokenize:t};function t(r){const a=this,i=this.parser.constructs[e],n=r.attempt(i,s,o);return s;function s(u){return l(u)?n(u):o(u)}function o(u){if(u===null){r.consume(u);return}return r.enter("data"),r.consume(u),c}function c(u){return l(u)?(r.exit("data"),n(u)):(r.consume(u),c)}function l(u){if(u===null)return!0;const f=i[u];let m=-1;if(f)for(;++m<f.length;){const d=f[m];if(!d.previous||d.previous.call(a,a.previous))return!0}return!1}}}function N0(e){return t;function t(r,a){let i=-1,n;for(;++i<=r.length;)n===void 0?r[i]&&r[i][1].type==="data"&&(n=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==n+2&&(r[n][1].end=r[i-1][1].end,r.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(r,a):r}}function zM(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const a=e[r-1][1],i=t.sliceStream(a);let n=i.length,s=-1,o=0,c;for(;n--;){const l=i[n];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(l===-2)c=!0,o++;else if(l!==-1){n++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){const l={type:r===e.length||c||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:n?s:a.start._bufferIndex+s,_index:a.start._index+n,line:a.end.line,column:a.end.column-o,offset:a.end.offset-o},end:{...a.end}};a.end={...l.start},a.start.offset===a.end.offset?Object.assign(a,l):(e.splice(r,0,["enter",l,t],["exit",l,t]),r+=2)}r++}return e}const $M={42:Sr,43:Sr,45:Sr,48:Sr,49:Sr,50:Sr,51:Sr,52:Sr,53:Sr,54:Sr,55:Sr,56:Sr,57:Sr,62:C0},UM={91:WF},BM={[-2]:lf,[-1]:lf,32:lf},VM={35:ZF,42:Nl,45:[av,Nl],60:rM,61:av,95:Nl,96:rv,126:rv},HM={38:_0,92:A0},WM={[-5]:cf,[-4]:cf,[-3]:cf,33:kM,38:_0,42:dd,60:[SF,cM],91:SM,92:[YF,A0],93:vm,95:dd,96:DF},KM={null:[dd,MM]},GM={null:[42,95]},JM={null:[]},YM=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:GM,contentInitial:UM,disable:JM,document:$M,flow:VM,flowInitial:BM,insideSpan:KM,string:HM,text:WM},Symbol.toStringTag,{value:"Module"}));function XM(e,t,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},n=[];let s=[],o=[];const c={attempt:S(p),check:S(g),consume:b,enter:w,exit:E,interrupt:S(g,{interrupt:!0})},l={code:null,containerState:{},defineSkip:k,events:[],now:h,parser:e,previous:null,sliceSerialize:m,sliceStream:d,write:f};let u=t.tokenize.call(l,c);return t.resolveAll&&n.push(t),l;function f(x){return s=Ur(s,x),v(),s[s.length-1]!==null?[]:(C(t,0),l.events=ym(n,l.events,l),l.events)}function m(x,A){return QM(d(x),A)}function d(x){return ZM(s,x)}function h(){const{_bufferIndex:x,_index:A,line:N,column:I,offset:F}=a;return{_bufferIndex:x,_index:A,line:N,column:I,offset:F}}function k(x){i[x.line]=x.column,_()}function v(){let x;for(;a._index<s.length;){const A=s[a._index];if(typeof A=="string")for(x=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===x&&a._bufferIndex<A.length;)y(A.charCodeAt(a._bufferIndex));else y(A)}}function y(x){u=u(x)}function b(x){Oe(x)?(a.line++,a.column=1,a.offset+=x===-3?2:1,_()):x!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===s[a._index].length&&(a._bufferIndex=-1,a._index++)),l.previous=x}function w(x,A){const N=A||{};return N.type=x,N.start=h(),l.events.push(["enter",N,l]),o.push(N),N}function E(x){const A=o.pop();return A.end=h(),l.events.push(["exit",A,l]),A}function p(x,A){C(x,A.from)}function g(x,A){A.restore()}function S(x,A){return N;function N(I,F,$){let Y,Z,ie,P;return Array.isArray(I)?U(I):"tokenize"in I?U([I]):D(I);function D(B){return V;function V(K){const J=K!==null&&B[K],Q=K!==null&&B.null,q=[...Array.isArray(J)?J:J?[J]:[],...Array.isArray(Q)?Q:Q?[Q]:[]];return U(q)(K)}}function U(B){return Y=B,Z=0,B.length===0?$:T(B[Z])}function T(B){return V;function V(K){return P=O(),ie=B,B.partial||(l.currentConstruct=B),B.name&&l.parser.constructs.disable.null.includes(B.name)?M():B.tokenize.call(A?Object.assign(Object.create(l),A):l,c,R,M)(K)}}function R(B){return x(ie,P),F}function M(B){return P.restore(),++Z<Y.length?T(Y[Z]):$}}}function C(x,A){x.resolveAll&&!n.includes(x)&&n.push(x),x.resolve&&Tn(l.events,A,l.events.length-A,x.resolve(l.events.slice(A),l)),x.resolveTo&&(l.events=x.resolveTo(l.events,l))}function O(){const x=h(),A=l.previous,N=l.currentConstruct,I=l.events.length,F=Array.from(o);return{from:I,restore:$};function $(){a=x,l.previous=A,l.currentConstruct=N,l.events.length=I,o=F,_()}}function _(){a.line in i&&a.column<2&&(a.column=i[a.line],a.offset+=i[a.line]-1)}}function ZM(e,t){const r=t.start._index,a=t.start._bufferIndex,i=t.end._index,n=t.end._bufferIndex;let s;if(r===i)s=[e[r].slice(a,n)];else{if(s=e.slice(r,i),a>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(a):s.shift()}n>0&&s.push(e[i].slice(0,n))}return s}function QM(e,t){let r=-1;const a=[];let i;for(;++r<e.length;){const n=e[r];let s;if(typeof n=="string")s=n;else switch(n){case-5:{s="\r";break}case-4:{s=`
|
|
107
|
-
`;break}case-3:{s=`\r
|
|
108
|
-
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(n)}i=n===-2,a.push(s)}return a.join("")}function eL(e){const a={constructs:oF([YM,...(e||{}).extensions||[]]),content:i(hF),defined:[],document:i(yF),flow:i(DM),lazy:{},string:i(LM),text:i(qM)};return a;function i(n){return s;function s(o){return XM(a,n,o)}}}function tL(e){for(;!O0(e););return e}const iv=/[\0\t\n\r]/g;function rL(){let e=1,t="",r=!0,a;return i;function i(n,s,o){const c=[];let l,u,f,m,d;for(n=t+(typeof n=="string"?n.toString():new TextDecoder(s||void 0).decode(n)),f=0,t="",r&&(n.charCodeAt(0)===65279&&f++,r=void 0);f<n.length;){if(iv.lastIndex=f,l=iv.exec(n),m=l&&l.index!==void 0?l.index:n.length,d=n.charCodeAt(m),!l){t=n.slice(f);break}if(d===10&&f===m&&a)c.push(-3),a=void 0;else switch(a&&(c.push(-5),a=void 0),f<m&&(c.push(n.slice(f,m)),e+=m-f),d){case 0:{c.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,c.push(-2);e++<u;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:a=!0,e=1}f=m+1}return o&&(a&&c.push(-5),t&&c.push(t),c.push(null)),c}}const nL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function aL(e){return e.replace(nL,iL)}function iL(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),n=i===120||i===88;return x0(r.slice(n?2:1),n?16:10)}return gm(r)||e}const j0={}.hasOwnProperty;function sL(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),oL(r)(tL(eL(r).document().write(rL()(e,t,!0))))}function oL(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(Ce),autolinkProtocol:O,autolinkEmail:O,atxHeading:n(te),blockQuote:n(Q),characterEscape:O,characterReference:O,codeFenced:n(q),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:n(q,s),codeText:n(z,s),codeTextData:O,data:O,codeFlowValue:O,definition:n(H),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:n(G),hardBreakEscape:n(ae),hardBreakTrailing:n(ae),htmlFlow:n(me,s),htmlFlowData:O,htmlText:n(me,s),htmlTextData:O,image:n(ve),label:s,link:n(Ce),listItem:n(Re),listItemValue:m,listOrdered:n(Se,f),listUnordered:n(Se),paragraph:n(he),reference:T,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:n(te),strong:n(je),thematicBreak:n(be)},exit:{atxHeading:c(),atxHeadingSequence:p,autolink:c(),autolinkEmail:J,autolinkProtocol:K,blockQuote:c(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:M,characterReferenceMarkerNumeric:M,characterReferenceValue:B,characterReference:V,codeFenced:c(v),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:h,codeFlowValue:_,codeIndented:c(y),codeText:c(F),codeTextData:_,data:_,definition:c(),definitionDestinationString:E,definitionLabelString:b,definitionTitleString:w,emphasis:c(),hardBreakEscape:c(A),hardBreakTrailing:c(A),htmlFlow:c(N),htmlFlowData:_,htmlText:c(I),htmlTextData:_,image:c(Y),label:ie,labelText:Z,lineEnding:x,link:c($),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:R,resourceDestinationString:P,resourceTitleString:D,resource:U,setextHeading:c(C),setextHeadingLineSequence:S,setextHeadingText:g,strong:c(),thematicBreak:c()}};D0(t,(e||{}).mdastExtensions||[]);const r={};return a;function a(ee){let re={type:"root",children:[]};const ne={stack:[re],tokenStack:[],config:t,enter:o,exit:l,buffer:s,resume:u,data:r},we=[];let pe=-1;for(;++pe<ee.length;)if(ee[pe][1].type==="listOrdered"||ee[pe][1].type==="listUnordered")if(ee[pe][0]==="enter")we.push(pe);else{const tt=we.pop();pe=i(ee,tt,pe)}for(pe=-1;++pe<ee.length;){const tt=t[ee[pe][0]];j0.call(tt,ee[pe][1].type)&&tt[ee[pe][1].type].call(Object.assign({sliceSerialize:ee[pe][2].sliceSerialize},ne),ee[pe][1])}if(ne.tokenStack.length>0){const tt=ne.tokenStack[ne.tokenStack.length-1];(tt[1]||sv).call(ne,void 0,tt[0])}for(re.position={start:ra(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:ra(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe<t.transforms.length;)re=t.transforms[pe](re)||re;return re}function i(ee,re,ne){let we=re-1,pe=-1,tt=!1,De,Ke,wt,Ot;for(;++we<=ne;){const rt=ee[we];switch(rt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{rt[0]==="enter"?pe++:pe--,Ot=void 0;break}case"lineEndingBlank":{rt[0]==="enter"&&(De&&!Ot&&!pe&&!wt&&(wt=we),Ot=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ot=void 0}if(!pe&&rt[0]==="enter"&&rt[1].type==="listItemPrefix"||pe===-1&&rt[0]==="exit"&&(rt[1].type==="listUnordered"||rt[1].type==="listOrdered")){if(De){let bt=we;for(Ke=void 0;bt--;){const nt=ee[bt];if(nt[1].type==="lineEnding"||nt[1].type==="lineEndingBlank"){if(nt[0]==="exit")continue;Ke&&(ee[Ke][1].type="lineEndingBlank",tt=!0),nt[1].type="lineEnding",Ke=bt}else if(!(nt[1].type==="linePrefix"||nt[1].type==="blockQuotePrefix"||nt[1].type==="blockQuotePrefixWhitespace"||nt[1].type==="blockQuoteMarker"||nt[1].type==="listItemIndent"))break}wt&&(!Ke||wt<Ke)&&(De._spread=!0),De.end=Object.assign({},Ke?ee[Ke][1].start:rt[1].end),ee.splice(Ke||we,0,["exit",De,rt[2]]),we++,ne++}if(rt[1].type==="listItemPrefix"){const bt={type:"listItem",_spread:!1,start:Object.assign({},rt[1].start),end:void 0};De=bt,ee.splice(we,0,["enter",bt,rt[2]]),we++,ne++,wt=void 0,Ot=!0}}}return ee[re][1]._spread=tt,ne}function n(ee,re){return ne;function ne(we){o.call(this,ee(we),we),re&&re.call(this,we)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(ee,re,ne){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([re,ne||void 0]),ee.position={start:ra(re.start),end:void 0}}function c(ee){return re;function re(ne){ee&&ee.call(this,ne),l.call(this,ne)}}function l(ee,re){const ne=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==ee.type&&(re?re.call(this,ee,we[0]):(we[1]||sv).call(this,ee,we[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Rs({start:ee.start,end:ee.end})+"): it’s not open");ne.position.end=ra(ee.end)}function u(){return iF(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(ee){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function d(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.lang=ee}function h(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.meta=ee}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee.replace(/(\r?\n|\r)$/g,"")}function b(ee){const re=this.resume(),ne=this.stack[this.stack.length-1];ne.label=re,ne.identifier=Di(this.sliceSerialize(ee)).toLowerCase()}function w(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.title=ee}function E(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.url=ee}function p(ee){const re=this.stack[this.stack.length-1];if(!re.depth){const ne=this.sliceSerialize(ee).length;re.depth=ne}}function g(){this.data.setextHeadingSlurpLineEnding=!0}function S(ee){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function O(ee){const ne=this.stack[this.stack.length-1].children;let we=ne[ne.length-1];(!we||we.type!=="text")&&(we=Ve(),we.position={start:ra(ee.start),end:void 0},ne.push(we)),this.stack.push(we)}function _(ee){const re=this.stack.pop();re.value+=this.sliceSerialize(ee),re.position.end=ra(ee.end)}function x(ee){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ne=re.children[re.children.length-1];ne.position.end=ra(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(O.call(this,ee),_.call(this,ee))}function A(){this.data.atHardBreak=!0}function N(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee}function I(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee}function F(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.value=ee}function $(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=re,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function Y(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=re,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function Z(ee){const re=this.sliceSerialize(ee),ne=this.stack[this.stack.length-2];ne.label=aL(re),ne.identifier=Di(re).toLowerCase()}function ie(){const ee=this.stack[this.stack.length-1],re=this.resume(),ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,ne.type==="link"){const we=ee.children;ne.children=we}else ne.alt=re}function P(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.url=ee}function D(){const ee=this.resume(),re=this.stack[this.stack.length-1];re.title=ee}function U(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function R(ee){const re=this.resume(),ne=this.stack[this.stack.length-1];ne.label=re,ne.identifier=Di(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function M(ee){this.data.characterReferenceType=ee.type}function B(ee){const re=this.sliceSerialize(ee),ne=this.data.characterReferenceType;let we;ne?(we=x0(re,ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=gm(re);const pe=this.stack[this.stack.length-1];pe.value+=we}function V(ee){const re=this.stack.pop();re.position.end=ra(ee.end)}function K(ee){_.call(this,ee);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(ee)}function J(ee){_.call(this,ee);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(ee)}function Q(){return{type:"blockquote",children:[]}}function q(){return{type:"code",lang:null,meta:null,value:""}}function z(){return{type:"inlineCode",value:""}}function H(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function G(){return{type:"emphasis",children:[]}}function te(){return{type:"heading",depth:0,children:[]}}function ae(){return{type:"break"}}function me(){return{type:"html",value:""}}function ve(){return{type:"image",title:null,url:"",alt:null}}function Ce(){return{type:"link",title:null,url:"",children:[]}}function Se(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function Re(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function he(){return{type:"paragraph",children:[]}}function je(){return{type:"strong",children:[]}}function Ve(){return{type:"text",value:""}}function be(){return{type:"thematicBreak"}}}function ra(e){return{line:e.line,column:e.column,offset:e.offset}}function D0(e,t){let r=-1;for(;++r<t.length;){const a=t[r];Array.isArray(a)?D0(e,a):lL(e,a)}}function lL(e,t){let r;for(r in t)if(j0.call(t,r))switch(r){case"canContainEols":{const a=t[r];a&&e[r].push(...a);break}case"transforms":{const a=t[r];a&&e[r].push(...a);break}case"enter":case"exit":{const a=t[r];a&&Object.assign(e[r],a);break}}}function sv(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Rs({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Rs({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Rs({start:t.start,end:t.end})+") is still open")}function cL(e){const t=this;t.parser=r;function r(a){return sL(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function uL(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function fL(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
109
|
-
`}]}function dL(e,t){const r=t.value?t.value+`
|
|
110
|
-
`:"",a={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(a.className=["language-"+i[0]]);let n={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(n.data={meta:t.meta}),e.patch(t,n),n=e.applyData(t,n),n={type:"element",tagName:"pre",properties:{},children:[n]},e.patch(t,n),n}function mL(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function pL(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function hL(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),i=Qi(a.toLowerCase()),n=e.footnoteOrder.indexOf(a);let s,o=e.footnoteCounts.get(a);o===void 0?(o=0,e.footnoteOrder.push(a),s=e.footnoteOrder.length):s=n+1,o+=1,e.footnoteCounts.set(a,o);const c={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,c);const l={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function gL(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function yL(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function F0(e,t){const r=t.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const i=e.all(t),n=i[0];n&&n.type==="text"?n.value="["+n.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=a:i.push({type:"text",value:a}),i}function vL(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return F0(e,t);const i={src:Qi(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(i.title=a.title);const n={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,n),e.applyData(t,n)}function bL(e,t){const r={src:Qi(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)}function kL(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)}function wL(e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return F0(e,t);const i={href:Qi(a.url||"")};a.title!==null&&a.title!==void 0&&(i.title=a.title);const n={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function SL(e,t){const r={href:Qi(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function EL(e,t,r){const a=e.all(t),i=r?xL(r):M0(t),n={},s=[];if(typeof t.checked=="boolean"){const u=a[0];let f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},a.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),n.className=["task-list-item"]}let o=-1;for(;++o<a.length;){const u=a[o];(i||o!==0||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
|
111
|
-
`}),u.type==="element"&&u.tagName==="p"&&!i?s.push(...u.children):s.push(u)}const c=a[a.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
112
|
-
`});const l={type:"element",tagName:"li",properties:n,children:s};return e.patch(t,l),e.applyData(t,l)}function xL(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let a=-1;for(;!t&&++a<r.length;)t=M0(r[a])}return t}function M0(e){const t=e.spread;return t??e.children.length>1}function CL(e,t){const r={},a=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<a.length;){const s=a[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const n={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(t,n),e.applyData(t,n)}function AL(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _L(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function OL(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function TL(e,t){const r=e.all(t),a=r.shift(),i=[];if(a){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],s),i.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=dm(t.children[1]),c=y0(t.children[t.children.length-1]);o&&c&&(s.position={start:o,end:c}),i.push(s)}const n={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,n),e.applyData(t,n)}function PL(e,t,r){const a=r?r.children:void 0,n=(a?a.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:t.children.length;let c=-1;const l=[];for(;++c<o;){const f=t.children[c],m={},d=s?s[c]:void 0;d&&(m.align=d);let h={type:"element",tagName:n,properties:m,children:[]};f&&(h.children=e.all(f),e.patch(f,h),h=e.applyData(f,h)),l.push(h)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)}function IL(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const ov=9,lv=32;function RL(e){const t=String(e),r=/\r?\n|\r/g;let a=r.exec(t),i=0;const n=[];for(;a;)n.push(cv(t.slice(i,a.index),i>0,!0),a[0]),i=a.index+a[0].length,a=r.exec(t);return n.push(cv(t.slice(i),i>0,!1)),n.join("")}function cv(e,t,r){let a=0,i=e.length;if(t){let n=e.codePointAt(a);for(;n===ov||n===lv;)a++,n=e.codePointAt(a)}if(r){let n=e.codePointAt(i-1);for(;n===ov||n===lv;)i--,n=e.codePointAt(i-1)}return i>a?e.slice(a,i):""}function NL(e,t){const r={type:"text",value:RL(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function jL(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const DL={blockquote:uL,break:fL,code:dL,delete:mL,emphasis:pL,footnoteReference:hL,heading:gL,html:yL,imageReference:vL,image:bL,inlineCode:kL,linkReference:wL,link:SL,listItem:EL,list:CL,paragraph:AL,root:_L,strong:OL,table:TL,tableCell:IL,tableRow:PL,text:NL,thematicBreak:jL,toml:vl,yaml:vl,definition:vl,footnoteDefinition:vl};function vl(){}const L0=-1,Cc=0,js=1,Zl=2,bm=3,km=4,wm=5,Sm=6,q0=7,z0=8,FL=typeof self=="object"?self:globalThis,uv=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new FL[e](t)},ML=(e,t)=>{const r=(i,n)=>(e.set(n,i),i),a=i=>{if(e.has(i))return e.get(i);const[n,s]=t[i];switch(n){case Cc:case L0:return r(s,i);case js:{const o=r([],i);for(const c of s)o.push(a(c));return o}case Zl:{const o=r({},i);for(const[c,l]of s)o[a(c)]=a(l);return o}case bm:return r(new Date(s),i);case km:{const{source:o,flags:c}=s;return r(new RegExp(o,c),i)}case wm:{const o=r(new Map,i);for(const[c,l]of s)o.set(a(c),a(l));return o}case Sm:{const o=r(new Set,i);for(const c of s)o.add(a(c));return o}case q0:{const{name:o,message:c}=s;return r(uv(o,c),i)}case z0:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(uv(n,s),i)};return a},fv=e=>ML(new Map,e)(0),bi="",{toString:LL}={},{keys:qL}=Object,bs=e=>{const t=typeof e;if(t!=="object"||!e)return[Cc,t];const r=LL.call(e).slice(8,-1);switch(r){case"Array":return[js,bi];case"Object":return[Zl,bi];case"Date":return[bm,bi];case"RegExp":return[km,bi];case"Map":return[wm,bi];case"Set":return[Sm,bi];case"DataView":return[js,r]}return r.includes("Array")?[js,r]:r.includes("Error")?[q0,r]:[Zl,r]},bl=([e,t])=>e===Cc&&(t==="function"||t==="symbol"),zL=(e,t,r,a)=>{const i=(s,o)=>{const c=a.push(s)-1;return r.set(o,c),c},n=s=>{if(r.has(s))return r.get(s);let[o,c]=bs(s);switch(o){case Cc:{let u=s;switch(c){case"bigint":o=z0,u=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);u=null;break;case"undefined":return i([L0],s)}return i([o,u],s)}case js:{if(c){let m=s;return c==="DataView"?m=new Uint8Array(s.buffer):c==="ArrayBuffer"&&(m=new Uint8Array(s)),i([c,[...m]],s)}const u=[],f=i([o,u],s);for(const m of s)u.push(n(m));return f}case Zl:{if(c)switch(c){case"BigInt":return i([c,s.toString()],s);case"Boolean":case"Number":case"String":return i([c,s.valueOf()],s)}if(t&&"toJSON"in s)return n(s.toJSON());const u=[],f=i([o,u],s);for(const m of qL(s))(e||!bl(bs(s[m])))&&u.push([n(m),n(s[m])]);return f}case bm:return i([o,s.toISOString()],s);case km:{const{source:u,flags:f}=s;return i([o,{source:u,flags:f}],s)}case wm:{const u=[],f=i([o,u],s);for(const[m,d]of s)(e||!(bl(bs(m))||bl(bs(d))))&&u.push([n(m),n(d)]);return f}case Sm:{const u=[],f=i([o,u],s);for(const m of s)(e||!bl(bs(m)))&&u.push(n(m));return f}}const{message:l}=s;return i([o,{name:c,message:l}],s)};return n},dv=(e,{json:t,lossy:r}={})=>{const a=[];return zL(!(t||r),!!t,new Map,a)(e),a},Ql=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?fv(dv(e,t)):structuredClone(e):(e,t)=>fv(dv(e,t));function $L(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function UL(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function BL(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||$L,a=e.options.footnoteBackLabel||UL,i=e.options.footnoteLabel||"Footnotes",n=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let c=-1;for(;++c<e.footnoteOrder.length;){const l=e.footnoteById.get(e.footnoteOrder[c]);if(!l)continue;const u=e.all(l),f=String(l.identifier).toUpperCase(),m=Qi(f.toLowerCase());let d=0;const h=[],k=e.footnoteCounts.get(f);for(;k!==void 0&&++d<=k;){h.length>0&&h.push({type:"text",value:" "});let b=typeof r=="string"?r:r(c,d);typeof b=="string"&&(b={type:"text",value:b}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(c,d),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const v=u[u.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const b=v.children[v.children.length-1];b&&b.type==="text"?b.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...h)}else u.push(...h);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(u,!0)};e.patch(l,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n,properties:{...Ql(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
113
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
114
|
-
`}]}}const $0=(function(e){if(e==null)return KL;if(typeof e=="function")return Ac(e);if(typeof e=="object")return Array.isArray(e)?VL(e):HL(e);if(typeof e=="string")return WL(e);throw new Error("Expected function, string, or object as test")});function VL(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=$0(e[r]);return Ac(a);function a(...i){let n=-1;for(;++n<t.length;)if(t[n].apply(this,i))return!0;return!1}}function HL(e){const t=e;return Ac(r);function r(a){const i=a;let n;for(n in e)if(i[n]!==t[n])return!1;return!0}}function WL(e){return Ac(t);function t(r){return r&&r.type===e}}function Ac(e){return t;function t(r,a,i){return!!(GL(r)&&e.call(this,r,typeof a=="number"?a:void 0,i||void 0))}}function KL(){return!0}function GL(e){return e!==null&&typeof e=="object"&&"type"in e}const U0=[],JL=!0,mv=!1,YL="skip";function XL(e,t,r,a){let i;typeof t=="function"&&typeof r!="function"?(a=r,r=t):i=t;const n=$0(i),s=a?-1:1;o(e,void 0,[])();function o(c,l,u){const f=c&&typeof c=="object"?c:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(c.type+(d?"<"+d+">":""))+")"})}return m;function m(){let d=U0,h,k,v;if((!t||n(c,l,u[u.length-1]||void 0))&&(d=ZL(r(c,u)),d[0]===mv))return d;if("children"in c&&c.children){const y=c;if(y.children&&d[0]!==YL)for(k=(a?y.children.length:-1)+s,v=u.concat(y);k>-1&&k<y.children.length;){const b=y.children[k];if(h=o(b,k,v)(),h[0]===mv)return h;k=typeof h[1]=="number"?h[1]:k+s}}return d}}}function ZL(e){return Array.isArray(e)?e:typeof e=="number"?[JL,e]:e==null?U0:[e]}function B0(e,t,r,a){let i,n,s;typeof t=="function"&&typeof r!="function"?(n=void 0,s=t,i=r):(n=t,s=r,i=a),XL(e,n,o,i);function o(c,l){const u=l[l.length-1],f=u?u.children.indexOf(c):void 0;return s(c,f,u)}}const md={}.hasOwnProperty,QL={};function e2(e,t){const r=t||QL,a=new Map,i=new Map,n=new Map,s={...DL,...r.handlers},o={all:l,applyData:r2,definitionById:a,footnoteById:i,footnoteCounts:n,footnoteOrder:[],handlers:s,one:c,options:r,patch:t2,wrap:a2};return B0(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const f=u.type==="definition"?a:i,m=String(u.identifier).toUpperCase();f.has(m)||f.set(m,u)}}),o;function c(u,f){const m=u.type,d=o.handlers[m];if(md.call(o.handlers,m)&&d)return d(o,u,f);if(o.options.passThrough&&o.options.passThrough.includes(m)){if("children"in u){const{children:k,...v}=u,y=Ql(v);return y.children=o.all(u),y}return Ql(u)}return(o.options.unknownHandler||n2)(o,u,f)}function l(u){const f=[];if("children"in u){const m=u.children;let d=-1;for(;++d<m.length;){const h=o.one(m[d],u);if(h){if(d&&m[d-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=pv(h.value)),!Array.isArray(h)&&h.type==="element")){const k=h.children[0];k&&k.type==="text"&&(k.value=pv(k.value))}Array.isArray(h)?f.push(...h):f.push(h)}}}return f}}function t2(e,t){e.position&&(t.position=MD(e))}function r2(e,t){let r=t;if(e&&e.data){const a=e.data.hName,i=e.data.hChildren,n=e.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const s="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:s}}r.type==="element"&&n&&Object.assign(r.properties,Ql(n)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function n2(e,t){const r=t.data||{},a="value"in t&&!(md.call(r,"hProperties")||md.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function a2(e,t){const r=[];let a=-1;for(t&&r.push({type:"text",value:`
|
|
115
|
-
`});++a<e.length;)a&&r.push({type:"text",value:`
|
|
116
|
-
`}),r.push(e[a]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
117
|
-
`}),r}function pv(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function hv(e,t){const r=e2(e,t),a=r.one(e,void 0),i=BL(r),n=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return i&&n.children.push({type:"text",value:`
|
|
118
|
-
`},i),n}function i2(e,t){return e&&"run"in e?async function(r,a){const i=hv(r,{file:a,...t});await e.run(i,a)}:function(r,a){return hv(r,{file:a,...e||t})}}function gv(e){if(e)throw e}var uf,yv;function s2(){if(yv)return uf;yv=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=function(l){return typeof Array.isArray=="function"?Array.isArray(l):t.call(l)==="[object Array]"},n=function(l){if(!l||t.call(l)!=="[object Object]")return!1;var u=e.call(l,"constructor"),f=l.constructor&&l.constructor.prototype&&e.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!u&&!f)return!1;var m;for(m in l);return typeof m>"u"||e.call(l,m)},s=function(l,u){r&&u.name==="__proto__"?r(l,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):l[u.name]=u.newValue},o=function(l,u){if(u==="__proto__")if(e.call(l,u)){if(a)return a(l,u).value}else return;return l[u]};return uf=function c(){var l,u,f,m,d,h,k=arguments[0],v=1,y=arguments.length,b=!1;for(typeof k=="boolean"&&(b=k,k=arguments[1]||{},v=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});v<y;++v)if(l=arguments[v],l!=null)for(u in l)f=o(k,u),m=o(l,u),k!==m&&(b&&m&&(n(m)||(d=i(m)))?(d?(d=!1,h=f&&i(f)?f:[]):h=f&&n(f)?f:{},s(k,{name:u,newValue:c(b,h,m)})):typeof m<"u"&&s(k,{name:u,newValue:m}));return k},uf}var o2=s2();const ff=Pn(o2);function pd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function l2(){const e=[],t={run:r,use:a};return t;function r(...i){let n=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(c,...l){const u=e[++n];let f=-1;if(c){s(c);return}for(;++f<i.length;)(l[f]===null||l[f]===void 0)&&(l[f]=i[f]);i=l,u?c2(u,o)(...l):s(null,...l)}}function a(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function c2(e,t){let r;return a;function a(...s){const o=e.length>s.length;let c;o&&s.push(i);try{c=e.apply(this,s)}catch(l){const u=l;if(o&&r)throw u;return i(u)}o||(c&&c.then&&typeof c.then=="function"?c.then(n,i):c instanceof Error?i(c):n(c))}function i(s,...o){r||(r=!0,t(s,...o))}function n(s){i(null,s)}}const bn={basename:u2,dirname:f2,extname:d2,join:m2,sep:"/"};function u2(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');co(e);let r=0,a=-1,i=e.length,n;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(n){r=i+1;break}}else s<0&&(n=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(a=i):(o=-1,a=s));return r===a?a=s:a<0&&(a=e.length),e.slice(r,a)}function f2(e){if(co(e),e.length===0)return".";let t=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){t=r;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function d2(e){co(e);let t=e.length,r=-1,a=0,i=-1,n=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){a=t+1;break}continue}r<0&&(s=!0,r=t+1),o===46?i<0?i=t:n!==1&&(n=1):i>-1&&(n=-1)}return i<0||r<0||n===0||n===1&&i===r-1&&i===a+1?"":e.slice(i,r)}function m2(...e){let t=-1,r;for(;++t<e.length;)co(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":p2(r)}function p2(e){co(e);const t=e.codePointAt(0)===47;let r=h2(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function h2(e,t){let r="",a=0,i=-1,n=0,s=-1,o,c;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||n===1))if(i!==s-1&&n===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(c=r.lastIndexOf("/"),c!==r.length-1){c<0?(r="",a=0):(r=r.slice(0,c),a=r.length-1-r.lastIndexOf("/")),i=s,n=0;continue}}else if(r.length>0){r="",a=0,i=s,n=0;continue}}t&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),a=s-i-1;i=s,n=0}else o===46&&n>-1?n++:n=-1}return r}function co(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const g2={cwd:y2};function y2(){return"/"}function hd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function v2(e){if(typeof e=="string")e=new URL(e);else if(!hd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return b2(e)}function b2(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const a=t.codePointAt(r+2);if(a===70||a===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const df=["history","path","basename","stem","extname","dirname"];class V0{constructor(t){let r;t?hd(t)?r={path:t}:typeof t=="string"||k2(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":g2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<df.length;){const n=df[a];n in r&&r[n]!==void 0&&r[n]!==null&&(this[n]=n==="history"?[...r[n]]:r[n])}let i;for(i in r)df.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?bn.basename(this.path):void 0}set basename(t){pf(t,"basename"),mf(t,"basename"),this.path=bn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?bn.dirname(this.path):void 0}set dirname(t){vv(this.basename,"dirname"),this.path=bn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?bn.extname(this.path):void 0}set extname(t){if(mf(t,"extname"),vv(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=bn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){hd(t)&&(t=v2(t)),pf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?bn.basename(this.path,this.extname):void 0}set stem(t){pf(t,"stem"),mf(t,"stem"),this.path=bn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,a){const i=this.message(t,r,a);throw i.fatal=!0,i}info(t,r,a){const i=this.message(t,r,a);return i.fatal=void 0,i}message(t,r,a){const i=new ir(t,r,a);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function mf(e,t){if(e&&e.includes(bn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+bn.sep+"`")}function pf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function vv(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function k2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const w2=(function(e){const a=this.constructor.prototype,i=a[e],n=function(){return i.apply(n,arguments)};return Object.setPrototypeOf(n,a),n}),S2={}.hasOwnProperty;class Em extends w2{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=l2()}copy(){const t=new Em;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];t.use(...a)}return t.data(ff(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(yf("data",this.frozen),this.namespace[t]=r,this):S2.call(this.namespace,t)&&this.namespace[t]||void 0:t?(yf("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const i=r.call(t,...a);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=kl(t),a=this.parser||this.Parser;return hf("parse",a),a(String(r),r)}process(t,r){const a=this;return this.freeze(),hf("process",this.parser||this.Parser),gf("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(n,s){const o=kl(t),c=a.parse(o);a.run(c,o,function(u,f,m){if(u||!f||!m)return l(u);const d=f,h=a.stringify(d,m);C2(h)?m.value=h:m.result=h,l(u,m)});function l(u,f){u||!f?s(u):n?n(f):r(void 0,f)}}}processSync(t){let r=!1,a;return this.freeze(),hf("processSync",this.parser||this.Parser),gf("processSync",this.compiler||this.Compiler),this.process(t,i),kv("processSync","process",r),a;function i(n,s){r=!0,gv(n),a=s}}run(t,r,a){bv(t),this.freeze();const i=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?n(void 0,a):new Promise(n);function n(s,o){const c=kl(r);i.run(t,c,l);function l(u,f,m){const d=f||t;u?o(u):s?s(d):a(void 0,d,m)}}}runSync(t,r){let a=!1,i;return this.run(t,r,n),kv("runSync","run",a),i;function n(s,o){gv(s),i=o,a=!0}}stringify(t,r){this.freeze();const a=kl(r),i=this.compiler||this.Compiler;return gf("stringify",i),bv(t),i(t,a)}use(t,...r){const a=this.attachers,i=this.namespace;if(yf("use",this.frozen),t!=null)if(typeof t=="function")c(t,r);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function n(l){if(typeof l=="function")c(l,[]);else if(typeof l=="object")if(Array.isArray(l)){const[u,...f]=l;c(u,f)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(l.plugins),l.settings&&(i.settings=ff(!0,i.settings,l.settings))}function o(l){let u=-1;if(l!=null)if(Array.isArray(l))for(;++u<l.length;){const f=l[u];n(f)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function c(l,u){let f=-1,m=-1;for(;++f<a.length;)if(a[f][0]===l){m=f;break}if(m===-1)a.push([l,...u]);else if(u.length>0){let[d,...h]=u;const k=a[m][1];pd(k)&&pd(d)&&(d=ff(!0,k,d)),a[m]=[l,d,...h]}}}}const E2=new Em().freeze();function hf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function gf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function yf(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function bv(e){if(!pd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function kv(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function kl(e){return x2(e)?e:new V0(e)}function x2(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function C2(e){return typeof e=="string"||A2(e)}function A2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _2="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",wv=[],Sv={allowDangerousHtml:!0},O2=/^(https?|ircs?|mailto|xmpp)$/i,T2=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function P2(e){const t=I2(e),r=R2(e);return N2(t.runSync(t.parse(r),r),e)}function I2(e){const t=e.rehypePlugins||wv,r=e.remarkPlugins||wv,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Sv}:Sv;return E2().use(cL).use(r).use(i2,a).use(t)}function R2(e){const t=e.children||"",r=new V0;return typeof t=="string"&&(r.value=t),r}function N2(e,t){const r=t.allowedElements,a=t.allowElement,i=t.components,n=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,c=t.urlTransform||j2;for(const u of T2)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+_2+u.id,void 0);return B0(e,l),UD(e,{Fragment:j.Fragment,components:i,ignoreInvalidStyle:!0,jsx:j.jsx,jsxs:j.jsxs,passKeys:!0,passNode:!0});function l(u,f,m){if(u.type==="raw"&&m&&typeof f=="number")return s?m.children.splice(f,1):m.children[f]={type:"text",value:u.value},f;if(u.type==="element"){let d;for(d in of)if(Object.hasOwn(of,d)&&Object.hasOwn(u.properties,d)){const h=u.properties[d],k=of[d];(k===null||k.includes(u.tagName))&&(u.properties[d]=c(String(h||""),d,u))}}if(u.type==="element"){let d=r?!r.includes(u.tagName):n?n.includes(u.tagName):!1;if(!d&&a&&typeof f=="number"&&(d=!a(u,f,m)),d&&m&&typeof f=="number")return o&&u.children?m.children.splice(f,1,...u.children):m.children.splice(f,1),f}}}function j2(e){const t=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||a!==-1&&t>a||O2.test(e.slice(0,t))?e:""}const D2=P2,F2=e=>j.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function fn(e){const t=e.components||{};return t.a||(t.a=F2),j.jsx(D2,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}function M2({id:e,description:t}){return t?j.jsx("div",{children:j.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?j.jsx(fn,{children:t}):t})}):null}function L2({errors:e=[],fieldPathId:t}){return e.length===0?null:j.jsx("ul",{className:"list-group",id:Jd(t),children:e.filter(Boolean).map((r,a)=>j.jsx("li",{className:"list-group-item border-0 m-0 p-0",children:j.jsx("small",{className:"m-0 text-danger",children:typeof r=="string"?j.jsx(fn,{children:r}):r})},`${r}-${a}`))})}function q2({fieldPathId:e,help:t,hasErrors:r}){return t?j.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:Xd(e),children:t}):null}const Ev=({content:e})=>{const t=W.useMemo(()=>gd(e),[e]);return j.jsx("div",{dangerouslySetInnerHTML:{__html:t}})};function z2(e){var y,b;const{id:t,children:r,displayLabel:a,rawErrors:i=[],errors:n,help:s,rawDescription:o,hidden:c,label:l,required:u,schema:f,uiSchema:m,registry:d}=e,h=ke(m),k=xe("WrapIfAdditionalTemplate",d,h);if(c)return j.jsx("div",{className:"hidden",children:r});const v=i.length>0;return j.jsxs(j.Fragment,{children:[((y=f==null?void 0:f.rawHtml)==null?void 0:y.before)&&j.jsx(Ev,{content:f.rawHtml.before}),j.jsx(k,{...e,children:j.jsxs("div",{className:"form-group",children:[a&&j.jsxs("label",{className:`form-label${v?" text-danger":""}`,htmlFor:t,children:[j.jsx(fn,{components:{p:"span"},children:l}),u?"*":null]}),r,a&&o&&j.jsx("small",{className:`form-text ${v?"text-danger":"text-muted"}`,children:j.jsx(fn,{children:o})}),n,s]})}),((b=f==null?void 0:f.rawHtml)==null?void 0:b.after)&&j.jsx(Ev,{content:f.rawHtml.after})]})}function $2(e){const{description:t,disabled:r,formData:a,fieldPathId:i,onAddProperty:n,optionalDataControl:s,properties:o,readonly:c,registry:l,required:u,schema:f,title:m,uiSchema:d}=e,h=ke(d),k=xe("TitleFieldTemplate",l,h),v=xe("DescriptionFieldTemplate",l,h),{AddButton:y}=l.templates.ButtonTemplates;if((f.oneOf||f.anyOf)&&!f.properties&&o.length===0)return null;const w=!c&&!r;return j.jsxs(j.Fragment,{children:[m&&j.jsx(k,{id:pc(i),title:m,required:u,schema:f,uiSchema:d,registry:l,optionalDataControl:w?s:void 0}),t&&j.jsx(v,{id:Ca(i),description:t,schema:f,uiSchema:d,registry:l}),w?void 0:s,j.jsxs("div",{className:"container-fluid p-0",children:[o.map(E=>j.jsx("div",{className:`row mb-2${E.hidden?" d-none":""}`,children:j.jsx("div",{className:"col-12",children:E.content})},E.name)),rb(f,d,a)&&j.jsx("div",{className:"row",children:j.jsx("div",{className:"col-3 py-4",children:j.jsx(y,{id:Rr(i,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||c,uiSchema:d,registry:l})})})]})]})}function U2({id:e,title:t,uiSchema:r,optionalDataControl:a}){const i=ke(r);return j.jsxs("div",{id:e,className:"my-1",children:[j.jsx("h5",{children:j.jsx(fn,{children:i.title||t})}),j.jsx("hr",{className:"border-0",style:{height:"1px"}}),a]})}function B2(e){const{id:t,classNames:r,style:a,disabled:i,label:n,onKeyRenameBlur:s,onRemoveProperty:o,readonly:c,required:l,schema:u,hideError:f,rawErrors:m,children:d,uiSchema:h,registry:k}=e,{templates:v,translateString:y}=k,{RemoveButton:b}=v.ButtonTemplates,w=la in u,E=[r];!f&&m&&m.length>0&&E.push("has-error has-danger");const p=E.filter(Boolean).join(" ").trim();if(!w)return j.jsx("div",{className:p,style:a,children:d});const g=`${t}-key`;return j.jsx("div",{className:p,style:a,children:j.jsxs("div",{className:"row",children:[j.jsx("div",{className:"col",children:j.jsxs("div",{className:"form-group",children:[j.jsx("label",{className:"form-label",htmlFor:g,children:y(Le.KeyLabel,[n])}),j.jsx("input",{className:"form-control",type:"text",id:g,name:g,required:l,disabled:i||c,defaultValue:n,onBlur:c?void 0:s})]})}),j.jsx("div",{className:"col",children:d}),j.jsx("div",{className:"col-auto py-4",children:j.jsx(b,{disabled:i||c,onClick:o,uiSchema:h,registry:k})})]})})}const V2=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:Qj,ArrayFieldItemTemplate:eD,ArrayFieldTemplate:tD,ButtonTemplates:mD,DescriptionFieldTemplate:M2,FieldErrorTemplate:L2,FieldHelpTemplate:q2,FieldTemplate:z2,ObjectFieldTemplate:$2,TitleFieldTemplate:U2,WrapIfAdditionalTemplate:B2},Symbol.toStringTag,{value:"Module"}));function H2({schema:e,uiSchema:t,options:r,id:a,value:i,disabled:n,readonly:s,label:o,hideLabel:c,autofocus:l=!1,onBlur:u,onFocus:f,onChange:m,registry:d}){const h=xe("DescriptionFieldTemplate",d,r),k=Ps(e),v=W.useCallback(g=>m(g.target.checked),[m]),y=W.useCallback(g=>u(a,g.target.checked),[u,a]),b=W.useCallback(g=>f(a,g.target.checked),[f,a]),p=ke(t).widget==="checkbox"?void 0:r.description??e.description;return j.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`.trim(),children:[!c&&p&&j.jsx(h,{id:Ca(a),description:p,schema:e,uiSchema:t,registry:d}),j.jsxs("div",{className:"form-check",children:[j.jsx("input",{type:"checkbox",className:"form-check-input",id:a,name:a,checked:typeof i>"u"?!1:i,required:k,disabled:n||s,autoFocus:l,onChange:v,onBlur:y,onFocus:b,"aria-describedby":dn(a)}),!c&&!!o&&j.jsx("label",{className:"form-check-label",htmlFor:a,children:j.jsx(fn,{components:{p:"span"},children:o})})]})]})}function W2({id:e,disabled:t,options:r,value:a,autofocus:i=!1,readonly:n,required:s,onChange:o,onBlur:c,onFocus:l}){const{inline:u=!1,enumOptions:f,enumDisabled:m,emptyValue:d}=r,h=ro(r),k=Array.isArray(a)?a:[a],v=W.useCallback(({target:b})=>c(e,on(b==null?void 0:b.value,f,h,d)),[c,e,f,d,h]),y=W.useCallback(({target:b})=>l(e,on(b==null?void 0:b.value,f,h,d)),[l,e,f,d,h]);return j.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Ki(b.value,k),p=Array.isArray(m)&&m.includes(b.value),g=hc(e,w),S=C=>{C.target.checked?o(Sk(w,k,f)):o(kk(w,k,f))};return j.jsxs("div",{className:`custom-control custom-checkbox bg-transparent border-0${u?" custom-control-inline":""}`,children:[j.jsx("input",{type:"checkbox",className:"custom-control-input",id:g,name:e,checked:E,value:to(b.value,w,h),required:s,disabled:t||p||n,autoFocus:i&&w===0,onChange:S,onBlur:v,onFocus:y,"aria-describedby":dn(e)}),j.jsx("label",{className:"custom-control-label",htmlFor:g,children:j.jsx(fn,{components:{p:"span"},children:b.label})})]},String(b.value))})})}function K2({options:e,value:t,required:r,disabled:a,readonly:i,autofocus:n=!1,onBlur:s,onFocus:o,onChange:c,id:l}){const{enumOptions:u,enumDisabled:f,inline:m,emptyValue:d}=e,h=ro(e),k=W.useCallback(({target:y})=>s(l,on(y==null?void 0:y.value,u,h,d)),[s,u,d,l,h]),v=W.useCallback(({target:y})=>o(l,on(y==null?void 0:y.value,u,h,d)),[o,u,d,l,h]);return j.jsx("div",{id:l,role:"radiogroup",children:Array.isArray(u)&&u.map((y,b)=>{const w=Ki(y.value,t),E=Array.isArray(f)&&f.includes(y.value),p=hc(l,b);return j.jsxs("div",{className:`form-check${m?" form-check-inline":""}`,children:[j.jsx("input",{type:"radio",className:"form-check-input",id:p,name:l,checked:w,value:to(y.value,b,h),required:r,disabled:a||E||i,autoFocus:n&&b===0,onChange:()=>c(y.value),onBlur:k,onFocus:v,"aria-describedby":dn(l)}),j.jsx("label",{className:"form-check-label",htmlFor:p,children:j.jsx(fn,{components:{p:"span"},children:y.label})})]},String(y.value))})})}const G2=5;function J2({id:e,options:t,placeholder:r,value:a,required:i,disabled:n,readonly:s,autofocus:o=!1,onChange:c,onBlur:l,onFocus:u}){const f=W.useCallback(({target:{value:h}})=>c(h===""?t.emptyValue:h),[c,t.emptyValue]),m=W.useCallback(({target:h})=>l(e,h==null?void 0:h.value),[l,e]),d=W.useCallback(({target:h})=>u(e,h==null?void 0:h.value),[u,e]);return j.jsx("textarea",{id:e,name:e,className:"form-control",value:a??"",placeholder:r,required:i,disabled:n,readOnly:s,autoFocus:o,rows:t.rows||G2,onChange:f,onBlur:m,onFocus:d,"aria-describedby":dn(e)})}const Y2=Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:H2,CheckboxesWidget:W2,RadioWidget:K2,TextareaWidget:J2},Symbol.toStringTag,{value:"Module"})),xv={templates:V2,widgets:Y2},X2=e=>e==="{}"?`{
|
|
130
|
+
depsCount: ${u},
|
|
131
|
+
deps: ${c}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(l){const[u,c]=n(l);s(l,u),o(l,c)}};function n({schema:l}){const u={},c={};for(const f in l){if(f==="__proto__")continue;const m=Array.isArray(l[f])?u:c;m[f]=l[f]}return[u,c]}function s(l,u=l.schema){const{gen:c,data:f,it:m}=l;if(Object.keys(u).length===0)return;const d=c.let("missing");for(const p in u){const b=u[p];if(b.length===0)continue;const k=(0,i.propertyInData)(c,f,p,m.opts.ownProperties);l.setParams({property:p,depsCount:b.length,deps:b.join(", ")}),m.allErrors?c.if(k,()=>{for(const g of b)(0,i.checkReportMissingProp)(l,g)}):(c.if((0,t._)`${k} && (${(0,i.checkMissingProp)(l,b,d)})`),(0,i.reportMissingProp)(l,d),c.else())}}e.validatePropertyDeps=s;function o(l,u=l.schema){const{gen:c,data:f,keyword:m,it:d}=l,p=c.name("valid");for(const b in u)(0,r.alwaysValidSchema)(d,u[b])||(c.if((0,i.propertyInData)(c,f,b,d.opts.ownProperties),()=>{const k=l.subschema({keyword:m,schemaProp:b},p);l.mergeValidEvaluated(k,p)},()=>c.var(p,!0)),l.ok(p))}e.validateSchemaDeps=o,e.default=a})(nc)),nc}var mo={},Xg;function WL(){if(Xg)return mo;Xg=1,Object.defineProperty(mo,"__esModule",{value:!0});const e=Ne(),t=We(),i={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:a})=>(0,e._)`{propertyName: ${a.propertyName}}`},code(a){const{gen:n,schema:s,data:o,it:l}=a;if((0,t.alwaysValidSchema)(l,s))return;const u=n.name("valid");n.forIn("key",o,c=>{a.setParams({propertyName:c}),a.subschema({keyword:"propertyNames",data:c,dataTypes:["string"],propertyName:c,compositeRule:!0},u),n.if((0,e.not)(u),()=>{a.error(!0),l.allErrors||n.break()})}),a.ok(u)}};return mo.default=i,mo}var po={},Zg;function P1(){if(Zg)return po;Zg=1,Object.defineProperty(po,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=Un(),i=We(),n={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:o,schema:l,parentSchema:u,data:c,errsCount:f,it:m}=s;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:p}=m;if(m.props=!0,p.removeAdditional!=="all"&&(0,i.alwaysValidSchema)(m,l))return;const b=(0,e.allSchemaProperties)(u.properties),k=(0,e.allSchemaProperties)(u.patternProperties);g(),s.ok((0,t._)`${f} === ${r.default.errors}`);function g(){o.forIn("key",c,y=>{!b.length&&!k.length?C(y):o.if(v(y),()=>C(y))})}function v(y){let S;if(b.length>8){const A=(0,i.schemaRefOrVal)(m,u.properties,"properties");S=(0,e.isOwnProperty)(o,A,y)}else b.length?S=(0,t.or)(...b.map(A=>(0,t._)`${y} === ${A}`)):S=t.nil;return k.length&&(S=(0,t.or)(S,...k.map(A=>(0,t._)`${(0,e.usePattern)(s,A)}.test(${y})`))),(0,t.not)(S)}function w(y){o.code((0,t._)`delete ${c}[${y}]`)}function C(y){if(p.removeAdditional==="all"||p.removeAdditional&&l===!1){w(y);return}if(l===!1){s.setParams({additionalProperty:y}),s.error(),d||o.break();return}if(typeof l=="object"&&!(0,i.alwaysValidSchema)(m,l)){const S=o.name("valid");p.removeAdditional==="failing"?(h(y,S,!1),o.if((0,t.not)(S),()=>{s.reset(),w(y)})):(h(y,S),d||o.if((0,t.not)(S),()=>o.break()))}}function h(y,S,A){const _={keyword:"additionalProperties",dataProp:y,dataPropType:i.Type.Str};A===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(_,S)}}};return po.default=n,po}var ho={},Qg;function GL(){if(Qg)return ho;Qg=1,Object.defineProperty(ho,"__esModule",{value:!0});const e=Dl(),t=Nr(),r=We(),i=P1(),a={keyword:"properties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,parentSchema:l,data:u,it:c}=n;c.opts.removeAdditional==="all"&&l.additionalProperties===void 0&&i.default.code(new e.KeywordCxt(c,i.default,"additionalProperties"));const f=(0,t.allSchemaProperties)(o);for(const k of f)c.definedProperties.add(k);c.opts.unevaluated&&f.length&&c.props!==!0&&(c.props=r.mergeEvaluated.props(s,(0,r.toHash)(f),c.props));const m=f.filter(k=>!(0,r.alwaysValidSchema)(c,o[k]));if(m.length===0)return;const d=s.name("valid");for(const k of m)p(k)?b(k):(s.if((0,t.propertyInData)(s,u,k,c.opts.ownProperties)),b(k),c.allErrors||s.else().var(d,!0),s.endIf()),n.it.definedProperties.add(k),n.ok(d);function p(k){return c.opts.useDefaults&&!c.compositeRule&&o[k].default!==void 0}function b(k){n.subschema({keyword:"properties",schemaProp:k,dataProp:k},d)}}};return ho.default=a,ho}var go={},ey;function JL(){if(ey)return go;ey=1,Object.defineProperty(go,"__esModule",{value:!0});const e=Nr(),t=Ne(),r=We(),i=We(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,data:l,parentSchema:u,it:c}=n,{opts:f}=c,m=(0,e.allSchemaProperties)(o),d=m.filter(C=>(0,r.alwaysValidSchema)(c,o[C]));if(m.length===0||d.length===m.length&&(!c.opts.unevaluated||c.props===!0))return;const p=f.strictSchema&&!f.allowMatchingProperties&&u.properties,b=s.name("valid");c.props!==!0&&!(c.props instanceof t.Name)&&(c.props=(0,i.evaluatedPropsToName)(s,c.props));const{props:k}=c;g();function g(){for(const C of m)p&&v(C),c.allErrors?w(C):(s.var(b,!0),w(C),s.if(b))}function v(C){for(const h in p)new RegExp(C).test(h)&&(0,r.checkStrictMode)(c,`property ${h} matches pattern ${C} (use allowMatchingProperties)`)}function w(C){s.forIn("key",l,h=>{s.if((0,t._)`${(0,e.usePattern)(n,C)}.test(${h})`,()=>{const y=d.includes(C);y||n.subschema({keyword:"patternProperties",schemaProp:C,dataProp:h,dataPropType:i.Type.Str},b),c.opts.unevaluated&&k!==!0?s.assign((0,t._)`${k}[${h}]`,!0):!y&&!c.allErrors&&s.if((0,t.not)(b),()=>s.break())})})}}};return go.default=a,go}var yo={},ty;function YL(){if(ty)return yo;ty=1,Object.defineProperty(yo,"__esModule",{value:!0});const e=We(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:i,schema:a,it:n}=r;if((0,e.alwaysValidSchema)(n,a)){r.fail();return}const s=i.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return yo.default=t,yo}var vo={},ry;function XL(){if(ry)return vo;ry=1,Object.defineProperty(vo,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Nr().validateUnion,error:{message:"must match a schema in anyOf"}};return vo.default=t,vo}var bo={},ny;function ZL(){if(ny)return bo;ny=1,Object.defineProperty(bo,"__esModule",{value:!0});const e=Ne(),t=We(),i={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:a})=>(0,e._)`{passingSchemas: ${a.passing}}`},code(a){const{gen:n,schema:s,parentSchema:o,it:l}=a;if(!Array.isArray(s))throw new Error("ajv implementation error");if(l.opts.discriminator&&o.discriminator)return;const u=s,c=n.let("valid",!1),f=n.let("passing",null),m=n.name("_valid");a.setParams({passing:f}),n.block(d),a.result(c,()=>a.reset(),()=>a.error(!0));function d(){u.forEach((p,b)=>{let k;(0,t.alwaysValidSchema)(l,p)?n.var(m,!0):k=a.subschema({keyword:"oneOf",schemaProp:b,compositeRule:!0},m),b>0&&n.if((0,e._)`${m} && ${c}`).assign(c,!1).assign(f,(0,e._)`[${f}, ${b}]`).else(),n.if(m,()=>{n.assign(c,!0),n.assign(f,b),k&&a.mergeEvaluated(k,e.Name)})})}}};return bo.default=i,bo}var ko={},iy;function QL(){if(iy)return ko;iy=1,Object.defineProperty(ko,"__esModule",{value:!0});const e=We(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:i,schema:a,it:n}=r;if(!Array.isArray(a))throw new Error("ajv implementation error");const s=i.name("valid");a.forEach((o,l)=>{if((0,e.alwaysValidSchema)(n,o))return;const u=r.subschema({keyword:"allOf",schemaProp:l},s);r.ok(s),r.mergeEvaluated(u)})}};return ko.default=t,ko}var wo={},ay;function eq(){if(ay)return wo;ay=1,Object.defineProperty(wo,"__esModule",{value:!0});const e=Ne(),t=We(),i={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:n})=>(0,e.str)`must match "${n.ifClause}" schema`,params:({params:n})=>(0,e._)`{failingKeyword: ${n.ifClause}}`},code(n){const{gen:s,parentSchema:o,it:l}=n;o.then===void 0&&o.else===void 0&&(0,t.checkStrictMode)(l,'"if" without "then" and "else" is ignored');const u=a(l,"then"),c=a(l,"else");if(!u&&!c)return;const f=s.let("valid",!0),m=s.name("_valid");if(d(),n.reset(),u&&c){const b=s.let("ifClause");n.setParams({ifClause:b}),s.if(m,p("then",b),p("else",b))}else u?s.if(m,p("then")):s.if((0,e.not)(m),p("else"));n.pass(f,()=>n.error(!0));function d(){const b=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},m);n.mergeEvaluated(b)}function p(b,k){return()=>{const g=n.subschema({keyword:b},m);s.assign(f,m),n.mergeValidEvaluated(g,f),k?s.assign(k,(0,e._)`${b}`):n.setParams({ifClause:b})}}}};function a(n,s){const o=n.schema[s];return o!==void 0&&!(0,t.alwaysValidSchema)(n,o)}return wo.default=i,wo}var xo={},sy;function tq(){if(sy)return xo;sy=1,Object.defineProperty(xo,"__esModule",{value:!0});const e=We(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:i,it:a}){i.if===void 0&&(0,e.checkStrictMode)(a,`"${r}" without "if" is ignored`)}};return xo.default=t,xo}var oy;function rq(){if(oy)return lo;oy=1,Object.defineProperty(lo,"__esModule",{value:!0});const e=O1(),t=BL(),r=_1(),i=VL(),a=HL(),n=KL(),s=WL(),o=P1(),l=GL(),u=JL(),c=YL(),f=XL(),m=ZL(),d=QL(),p=eq(),b=tq();function k(g=!1){const v=[c.default,f.default,m.default,d.default,p.default,b.default,s.default,o.default,n.default,l.default,u.default];return g?v.push(t.default,i.default):v.push(e.default,r.default),v.push(a.default),v}return lo.default=k,lo}var So={},Co={},ly;function nq(){if(ly)return Co;ly=1,Object.defineProperty(Co,"__esModule",{value:!0});const e=Ne(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,e.str)`must match format "${i}"`,params:({schemaCode:i})=>(0,e._)`{format: ${i}}`},code(i,a){const{gen:n,data:s,$data:o,schema:l,schemaCode:u,it:c}=i,{opts:f,errSchemaPath:m,schemaEnv:d,self:p}=c;if(!f.validateFormats)return;o?b():k();function b(){const g=n.scopeValue("formats",{ref:p.formats,code:f.code.formats}),v=n.const("fDef",(0,e._)`${g}[${u}]`),w=n.let("fType"),C=n.let("format");n.if((0,e._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>n.assign(w,(0,e._)`${v}.type || "string"`).assign(C,(0,e._)`${v}.validate`),()=>n.assign(w,(0,e._)`"string"`).assign(C,v)),i.fail$data((0,e.or)(h(),y()));function h(){return f.strictSchema===!1?e.nil:(0,e._)`${u} && !${C}`}function y(){const S=d.$async?(0,e._)`(${v}.async ? await ${C}(${s}) : ${C}(${s}))`:(0,e._)`${C}(${s})`,A=(0,e._)`(typeof ${C} == "function" ? ${S} : ${C}.test(${s}))`;return(0,e._)`${C} && ${C} !== true && ${w} === ${a} && !${A}`}}function k(){const g=p.formats[l];if(!g){h();return}if(g===!0)return;const[v,w,C]=y(g);v===a&&i.pass(S());function h(){if(f.strictSchema===!1){p.logger.warn(A());return}throw new Error(A());function A(){return`unknown format "${l}" ignored in schema at path "${m}"`}}function y(A){const _=A instanceof RegExp?(0,e.regexpCode)(A):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(l)}`:void 0,x=n.scopeValue("formats",{key:l,ref:A,code:_});return typeof A=="object"&&!(A instanceof RegExp)?[A.type||"string",A.validate,(0,e._)`${x}.validate`]:["string",A,x]}function S(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!d.$async)throw new Error("async format in sync schema");return(0,e._)`await ${C}(${s})`}return typeof w=="function"?(0,e._)`${C}(${s})`:(0,e._)`${C}.test(${s})`}}}};return Co.default=r,Co}var uy;function iq(){if(uy)return So;uy=1,Object.defineProperty(So,"__esModule",{value:!0});const t=[nq().default];return So.default=t,So}var ei={},cy;function aq(){return cy||(cy=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.contentVocabulary=ei.metadataVocabulary=void 0,ei.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],ei.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),ei}var fy;function sq(){if(fy)return Ks;fy=1,Object.defineProperty(Ks,"__esModule",{value:!0});const e=IL(),t=UL(),r=rq(),i=iq(),a=aq(),n=[e.default,t.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];return Ks.default=n,Ks}var Eo={},Oa={},dy;function oq(){if(dy)return Oa;dy=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Oa.DiscrError=e={})),Oa}var my;function lq(){if(my)return Eo;my=1,Object.defineProperty(Eo,"__esModule",{value:!0});const e=Ne(),t=oq(),r=Md(),i=Ml(),a=We(),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:o,tagName:l}})=>o===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf`,params:({params:{discrError:o,tag:l,tagName:u}})=>(0,e._)`{error: ${o}, tag: ${u}, tagValue: ${l}}`},code(o){const{gen:l,data:u,schema:c,parentSchema:f,it:m}=o,{oneOf:d}=f;if(!m.opts.discriminator)throw new Error("discriminator: requires discriminator option");const p=c.propertyName;if(typeof p!="string")throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const b=l.let("valid",!1),k=l.const("tag",(0,e._)`${u}${(0,e.getProperty)(p)}`);l.if((0,e._)`typeof ${k} == "string"`,()=>g(),()=>o.error(!1,{discrError:t.DiscrError.Tag,tag:k,tagName:p})),o.ok(b);function g(){const C=w();l.if(!1);for(const h in C)l.elseIf((0,e._)`${k} === ${h}`),l.assign(b,v(C[h]));l.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:k,tagName:p}),l.endIf()}function v(C){const h=l.name("valid"),y=o.subschema({keyword:"oneOf",schemaProp:C},h);return o.mergeEvaluated(y,e.Name),h}function w(){var C;const h={},y=A(f);let S=!0;for(let E=0;E<d.length;E++){let O=d[E];if(O!=null&&O.$ref&&!(0,a.schemaHasRulesButRef)(O,m.self.RULES)){const T=O.$ref;if(O=r.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,T),O instanceof r.SchemaEnv&&(O=O.schema),O===void 0)throw new i.default(m.opts.uriResolver,m.baseId,T)}const j=(C=O==null?void 0:O.properties)===null||C===void 0?void 0:C[p];if(typeof j!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${p}"`);S=S&&(y||A(O)),_(j,E)}if(!S)throw new Error(`discriminator: "${p}" must be required`);return h;function A({required:E}){return Array.isArray(E)&&E.includes(p)}function _(E,O){if(E.const)x(E.const,O);else if(E.enum)for(const j of E.enum)x(j,O);else throw new Error(`discriminator: "properties/${p}" must have "const" or "enum"`)}function x(E,O){if(typeof E!="string"||E in h)throw new Error(`discriminator: "${p}" values must be unique strings`);h[E]=O}}}};return Eo.default=s,Eo}const uq="http://json-schema.org/draft-07/schema#",cq="http://json-schema.org/draft-07/schema#",fq="Core schema meta-schema",dq={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},mq=["object","boolean"],pq={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},hq={$schema:uq,$id:cq,title:fq,definitions:dq,type:mq,properties:pq,default:!0};var py;function I1(){return py||(py=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=OL(),i=sq(),a=lq(),n=hq,s=["/properties"],o="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const p=this.opts.$data?this.$dataMetaSchema(n,s):n;this.addMetaSchema(p,o,!1),this.refs["http://json-schema.org/schema"]=o}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(o)?o:void 0)}}t.Ajv=l,e.exports=t=l,e.exports.Ajv=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=Dl();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=Ne();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var f=Dd();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=Ml();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})($s,$s.exports)),$s.exports}var gq=I1();const yq=Wr(gq);var Ao={exports:{}},ic={},hy;function vq(){return hy||(hy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(_,x){return{validate:_,compare:x}}e.fullFormats={date:t(n,s),time:t(l,u),"date-time":t(f,m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:b,"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:A,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:g,int32:{type:"number",validate:C},int64:{type:"number",validate:h},float:{type:"number",validate:y},double:{type:"number",validate:y},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(_){return _%4===0&&(_%100!==0||_%400===0)}const i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31];function n(_){const x=i.exec(_);if(!x)return!1;const E=+x[1],O=+x[2],j=+x[3];return O>=1&&O<=12&&j>=1&&j<=(O===2&&r(E)?29:a[O])}function s(_,x){if(_&&x)return _>x?1:_<x?-1:0}const o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(_,x){const E=o.exec(_);if(!E)return!1;const O=+E[1],j=+E[2],T=+E[3],F=E[5];return(O<=23&&j<=59&&T<=59||O===23&&j===59&&T===60)&&(!x||F!=="")}function u(_,x){if(!(_&&x))return;const E=o.exec(_),O=o.exec(x);if(E&&O)return _=E[1]+E[2]+E[3]+(E[4]||""),x=O[1]+O[2]+O[3]+(O[4]||""),_>x?1:_<x?-1:0}const c=/t|\s/i;function f(_){const x=_.split(c);return x.length===2&&n(x[0])&&l(x[1],!0)}function m(_,x){if(!(_&&x))return;const[E,O]=_.split(c),[j,T]=x.split(c),F=s(E,j);if(F!==void 0)return F||u(O,T)}const d=/\/|:/,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;function b(_){return d.test(_)&&p.test(_)}const k=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function g(_){return k.lastIndex=0,k.test(_)}const v=-2147483648,w=2**31-1;function C(_){return Number.isInteger(_)&&_<=w&&_>=v}function h(_){return Number.isInteger(_)}function y(){return!0}const S=/[^\\]\\Z/;function A(_){if(S.test(_))return!1;try{return new RegExp(_),!0}catch{return!1}}})(ic)),ic}var ac={},gy;function bq(){return gy||(gy=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=I1(),r=Ne(),i=r.operators,a={formatMaximum:{okStr:"<=",ok:i.LTE,fail:i.GT},formatMinimum:{okStr:">=",ok:i.GTE,fail:i.LT},formatExclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},formatExclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},n={message:({keyword:o,schemaCode:l})=>r.str`should be ${a[o].okStr} ${l}`,params:({keyword:o,schemaCode:l})=>r._`{comparison: ${a[o].okStr}, limit: ${l}}`};e.formatLimitDefinition={keyword:Object.keys(a),type:"string",schemaType:"string",$data:!0,error:n,code(o){const{gen:l,data:u,schemaCode:c,keyword:f,it:m}=o,{opts:d,self:p}=m;if(!d.validateFormats)return;const b=new t.KeywordCxt(m,p.RULES.all.format.definition,"format");b.$data?k():g();function k(){const w=l.scopeValue("formats",{ref:p.formats,code:d.code.formats}),C=l.const("fmt",r._`${w}[${b.schemaCode}]`);o.fail$data(r.or(r._`typeof ${C} != "object"`,r._`${C} instanceof RegExp`,r._`typeof ${C}.compare != "function"`,v(C)))}function g(){const w=b.schema,C=p.formats[w];if(!C||C===!0)return;if(typeof C!="object"||C instanceof RegExp||typeof C.compare!="function")throw new Error(`"${f}": format "${w}" does not define "compare" function`);const h=l.scopeValue("formats",{key:w,ref:C,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});o.fail$data(v(h))}function v(w){return r._`${w}.compare(${u}, ${c}) ${a[f].fail} 0`}},dependencies:["format"]};const s=o=>(o.addKeyword(e.formatLimitDefinition),o);e.default=s})(ac)),ac}var yy;function kq(){return yy||(yy=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=vq(),i=bq(),a=Ne(),n=new a.Name("fullFormats"),s=new a.Name("fastFormats"),o=(u,c={keywords:!0})=>{if(Array.isArray(c))return l(u,c,r.fullFormats,n),u;const[f,m]=c.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,n],d=c.formats||r.formatNames;return l(u,d,f,m),c.keywords&&i.default(u),u};o.get=(u,c="full")=>{const m=(c==="fast"?r.fastFormats:r.fullFormats)[u];if(!m)throw new Error(`Unknown format "${u}"`);return m};function l(u,c,f,m){var d,p;(d=(p=u.opts.code).formats)!==null&&d!==void 0||(p.formats=a._`require("ajv-formats/dist/formats").${m}`);for(const b of c)u.addFormat(b,f[b])}e.exports=t=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o})(Ao,Ao.exports)),Ao.exports}var wq=kq();const vy=Wr(wq),xq={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},Sq=/^(#?([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*\)))$/,Cq=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Eq(e,t,r={},i,a=yq,n){let s=new a({...xq,...r});return i?vy(s,i):i!==!1&&vy(s),s.addFormat("data-url",Cq),s.addFormat("color",Sq),s.addKeyword(Qf),Array.isArray(e)&&s.addMetaSchema(e),Ue(t)&&Object.keys(t).forEach(o=>{s.addFormat(o,t[o])}),n&&(s=n(s)),s}class Aq{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:i,customFormats:a,ajvOptionsOverrides:n,ajvFormatOptions:s,AjvClass:o,extenderFn:l,suppressDuplicateFiltering:u}=t;this.ajv=Eq(i,a,n,s,o,l),this.localizer=r,this.suppressDuplicateFiltering=u}reset(){this.ajv.removeSchema(),this.lastSeenRootSchema=void 0,this.hasRegisteredRootSchema=!1}rawValidation(t,r){var i,a;let n,s;try{t[nt]&&(s=this.ajv.getSchema(t[nt])),s===void 0&&(s=this.ajv.compile(t)),s(r)}catch(l){n=l}let o;return s&&(typeof this.localizer=="function"&&(((i=s.errors)!==null&&i!==void 0?i:[]).forEach(l=>{var u;["missingProperty","property"].forEach(c=>{var f;!((f=l.params)===null||f===void 0)&&f[c]&&(l.params[c]=`'${l.params[c]}'`)}),!((u=l.params)===null||u===void 0)&&u.deps&&(l.params.deps=l.params.deps.split(", ").map(c=>`'${c}'`).join(", "))}),this.localizer(s.errors),((a=s.errors)!==null&&a!==void 0?a:[]).forEach(l=>{var u;["missingProperty","property"].forEach(c=>{var f;!((f=l.params)===null||f===void 0)&&f[c]&&(l.params[c]=l.params[c].slice(1,-1))}),!((u=l.params)===null||u===void 0)&&u.deps&&(l.params.deps=l.params.deps.split(", ").map(c=>c.slice(1,-1)).join(", "))})),o=s.errors||void 0,s.errors=null),{errors:o,validationError:n}}validateFormData(t,r,i,a,n){const s=this.rawValidation(r,t);return fL(this,s,t,r,i,a,n,this.suppressDuplicateFiltering)}handleSchemaUpdate(t){var r,i;if(this.lastSeenRootSchema===t&&this.hasRegisteredRootSchema)return;const a=(r=t[nt])!==null&&r!==void 0?r:Sb;this.ajv.getSchema(a)===void 0?this.ajv.addSchema(t,a):ze(t,(i=this.ajv.getSchema(a))===null||i===void 0?void 0:i.schema)||(this.ajv.removeSchema(a),this.ajv.addSchema(t,a)),this.lastSeenRootSchema=t,this.hasRegisteredRootSchema=!0}isValid(t,r,i){var a;try{this.handleSchemaUpdate(i);const n=Pd(t),s=(a=n[nt])!==null&&a!==void 0?a:fF(n);let o;return o=this.ajv.getSchema(s),o===void 0&&(o=this.ajv.addSchema(n,s).getSchema(s)||this.ajv.compile(n)),o(r)}catch(n){return console.warn("Error encountered compiling schema:",n),!1}}}function $o(e={},t){return new Aq(e,t)}$o();var sc,by;function Oq(){return by||(by=1,sc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"additionalProperties":n="must NOT have additional properties";break;case"anyOf":n='must match a schema in "anyOf"';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="must have propert",i==1?n+="y":n+="ies",n+=" "+a.params.deps+" when property "+a.params.property+" is present";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='must pass "'+a.keyword+'" keyword validation'}break;case"enum":n="must be equal to one of the allowed values";break;case"false schema":n="boolean schema is false";break;case"format":n='must match format "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"maxItems":n="";var i=a.params.limit;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="must NOT be longer than "+i+" character",i!=1&&(n+="s");break;case"maxProperties":n="";var i=a.params.limit;n+="must NOT have more than "+i+" propert",i==1?n+="y":n+="ies";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"minItems":n="";var i=a.params.limit;n+="must NOT have less than "+i+" item",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="must NOT be shorter than "+i+" character",i!=1&&(n+="s");break;case"minProperties":n="";var i=a.params.limit;n+="must NOT have less than "+i+" propert",i==1?n+="y":n+="ies";break;case"multipleOf":n="must be a multiple of "+a.params.multipleOf;break;case"not":n='must NOT be valid according to schema in "not"';break;case"oneOf":n='must match exactly one schema in "oneOf"';break;case"pattern":n='must match pattern "'+a.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="must have required property "+a.params.missingProperty;break;case"type":n="must be "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="must NOT have duplicate items (items ## "+a.params.j+" and "+a.params.i+" are identical)";break;default:n='must pass "'+a.keyword+'" keyword validation'}a.message=n}}),sc}var oc,ky;function _q(){return ky||(ky=1,oc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" عنصر";break;case"additionalProperties":n="يجب أن لا يحوي خصائص إضافية";break;case"anyOf":n='يجب أن يوافق أحد المخططات الموجودة في "anyOf"';break;case"const":n="يجب أن يكون ثابتاً";break;case"contains":n="يجب أن يحوي عنصرا صحيح";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+=" يجب أن يحوي الخصائص "+a.params.deps+" عندما تكون الخاصية "+a.params.property+" موجودة";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+a.keyword+'"'}break;case"enum":n="قيمة هذا الحقل يجب أن تكون مساوية لأحد القيم المعرفة مسبقاً";break;case"false schema":n="المخطط المنطقي غير صحيح";break;case"format":n='يجب أن يوافق الصيغة "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"if":n='يجب أن توافق المخطط "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"maxItems":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" عنصر";break;case"maxLength":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" محرف";break;case"maxProperties":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أكثر من "+i+" خصائص";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" يجب أن يكون "+r;break;case"minItems":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أقل من "+i+" عنصر";break;case"minLength":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أقل من "+i+" محرف";break;case"minProperties":n="";var i=a.params.limit;n+=" يجب أن لا يحوي أقل من "+i+" خصائص";break;case"multipleOf":n=" يجب أن يحوي أكثر من "+a.params.multipleOf;break;case"not":n='يجب أن يكون غير صحيح وفقاً للمخطط "not"';break;case"oneOf":n='يجب أن يوافق مخطط واحد فقط موجود في "oneOf"';break;case"pattern":n='يجب أن يوافق النمط "'+a.params.pattern+'"';break;case"patternRequired":n='يجب أن يحوي خاصية توافق النمط "'+a.params.missingPattern+'"';break;case"propertyNames":n="اسم الخاصية غير صالح";break;case"required":n="هذا الحقل إلزامي";break;case"type":n="قيمة هذا الحقل غير صالحة";break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="يجب أن لا يحوي عناصر مكررة (العنصر ## "+a.params.j+" و "+a.params.i+" متطابقة)";break;default:n='يجب أن تمرر كلمة التحقق المفتاحية "'+a.keyword+'"'}a.message=n}}),oc}var lc,wy;function Pq(){return wy||(wy=1,lc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="no ha de tenir més de "+i+" element",i!=1&&(n+="s");break;case"additionalProperties":n="no ha de tenir propietats addicionals";break;case"anyOf":n='ha de coincidir amb algun esquema definit a "anyOf"';break;case"const":n="ha de ser igual a la constant";break;case"contains":n="ha de contenir un ítem vàlid";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="ha de contenir la propietat",i!=1&&(n+="s"),n+=" "+a.params.deps+" quan la propietat "+a.params.property+" és present";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='ha de passar la validació de la clau "'+a.keyword+'"'}break;case"enum":n="ha de ser igual a un dels valors predefinits";break;case"false schema":n="l’esquema és fals";break;case"format":n='ha de coincidir amb el format "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"if":n='ha de correspondre’s amb l’esquema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"maxItems":n="";var i=a.params.limit;n+="no ha de tenir més de "+i+" ítem",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="no pot contenir més de "+i+" caràcter",i!=1&&(n+="s");break;case"maxProperties":n="";var i=a.params.limit;n+="no pot contenir més de "+i+" propietat",i!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ha de ser "+r;break;case"minItems":n="";var i=a.params.limit;n+="no ha de tenir menys de "+i+" ítem",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="no pot contenir menys de "+i+" caràcter",i!=1&&(n+="s");break;case"minProperties":n="";var i=a.params.limit;n+="no pot contenir menys de "+i+" propietat",i!=1&&(n+="s");break;case"multipleOf":n="ha de ser múltiple de "+a.params.multipleOf;break;case"not":n='no ha de ser vàlid d’acord amb l’esquema definit a "not"';break;case"oneOf":n='ha de coincidir només amb un esquema definit a "oneOf"';break;case"pattern":n='ha de coincidir amb el patró "'+a.params.pattern+'"';break;case"patternRequired":n='la propietat ha de coincidir amb el patró "'+a.params.missingPattern+'"';break;case"propertyNames":n="la propietat no és vàlida";break;case"required":n="ha de tenir la propietat requerida "+a.params.missingProperty;break;case"type":n="ha de ser del tipus "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no ha de tenir ítems duplicats (els ítems ## "+a.params.j+" i "+a.params.i+" són idèntics)";break;default:n='ha de passar la validació de la clau "'+a.keyword+'"'}a.message=n}}),lc}var uc,xy;function Iq(){return xy||(xy=1,uc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nemůže mít víc, než "+i+" prv",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ků";break;case"additionalProperties":n="nemůže mít další položky";break;case"anyOf":n='musí vyhovět alespoň jednomu schématu v "anyOf"';break;case"const":n="musí být roven konstantě";break;case"contains":n="musí obsahovat prvek odpovídající schématu";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="musí mít polož",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ka",n+=": "+a.params.deps+", pokud obsahuje "+a.params.property;break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='musí vyhovět "'+a.keyword+'" validaci'}break;case"enum":n="musí být rovno jedné hodnotě z výčtu";break;case"false schema":n="schéma je false";break;case"format":n='musí být ve formátu "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"if":n='musí vyhovět "'+a.params.failingKeyword+'" schématu';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nesmí obsahovat víc než "+i+" prv",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ků";break;case"maxLength":n="";var i=a.params.limit;n+="nesmí být delší než "+i+" zna",i>=2&&i<=4?n+="ky":i!=1?n+="k":n+="ků";break;case"maxProperties":n="";var i=a.params.limit;n+="nesmí mít víc než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí být "+r;break;case"minItems":n="";var i=a.params.limit;n+="nesmí obsahovat méně než "+i+" prv",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ků";break;case"minLength":n="";var i=a.params.limit;n+="nesmí být kratší než "+i+" zna",i>=2&&i<=4?n+="ky":i!=1?n+="k":n+="ků";break;case"minProperties":n="";var i=a.params.limit;n+="nesmí mít méně než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="ek":n+="ka";break;case"multipleOf":n="musí být násobkem "+a.params.multipleOf;break;case"not":n='nesmí vyhovět schématu v "not"';break;case"oneOf":n='musí vyhovět právě jednomu schématu v "oneOf"';break;case"pattern":n='musí vyhovět regulárnímu výrazu "'+a.params.pattern+'"';break;case"patternRequired":n='musí obsahovat položku vyhovující regulárnímu výrazu "'+a.params.missingPattern+'"';break;case"propertyNames":n="název položky není platný";break;case"required":n="musí obsahovat požadovanou položku "+a.params.missingProperty;break;case"type":n="musí být "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmí obsahovat duplicitní prvky (prvky ## "+a.params.j+" a "+a.params.i+" jsou identické)";break;default:n='musí vyhovět "'+a.keyword+'" validaci'}a.message=n}}),uc}var cc,Sy;function Tq(){return Sy||(Sy=1,cc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="darf nicht mehr als "+i+" Element",i!=1&&(n+="e"),n+=" enthalten";break;case"additionalProperties":n="darf keine zusätzlichen Attribute haben";break;case"anyOf":n='muss einem der Schemata in "anyOf" entsprechen';break;case"const":n="muss gleich der Konstanten sein";break;case"contains":n="muss ein valides Element enthalten";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="muss Attribut",i!=1&&(n+="e"),n+=" "+a.params.deps+" aufweisen, wenn Attribut "+a.params.property+" gesetzt ist";break;case"discriminator":switch(a.params.error){case"tag":n='der Tag "'+a.params.tag+'" muss eine Zeichenkette sein';break;case"mapping":n='der Wert vom Tag "'+a.params.tag+'" muss im oneOf enthalten sein';break;default:n='muss die Validierung "'+a.keyword+'" bestehen'}break;case"enum":n="muss einem der vorgegebenen Werte entsprechen";break;case"false schema":n="boolesches Schema ist falsch";break;case"format":n='muss diesem Format entsprechen: "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"if":n='muss dem Schema "'+a.params.failingKeyword+'" entsprechen';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"maxItems":n="";var i=a.params.limit;n+="darf nicht mehr als "+i+" Element",i!=1&&(n+="e"),n+=" haben";break;case"maxLength":n="";var i=a.params.limit;n+="darf nicht länger als "+i+" Zeichen sein";break;case"maxProperties":n="";var i=a.params.limit;n+="darf nicht mehr als "+i+" Attribut",i!=1&&(n+="e"),n+=" haben";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="muss "+r+" sein";break;case"minItems":n="";var i=a.params.limit;n+="darf nicht weniger als "+i+" Element",i!=1&&(n+="e"),n+=" haben";break;case"minLength":n="";var i=a.params.limit;n+="darf nicht kürzer als "+i+" Zeichen sein";break;case"minProperties":n="";var i=a.params.limit;n+="darf nicht weniger als "+i+" Attribut",i!=1&&(n+="e"),n+=" haben";break;case"multipleOf":n="muss ein Vielfaches von "+a.params.multipleOf+" sein";break;case"not":n='muss dem in "not" angegebenen Schema widersprechen';break;case"oneOf":n='muss genau einem der Schemata in "oneOf" entsprechen';break;case"pattern":n='muss diesem Muster entsprechen: "'+a.params.pattern+'"';break;case"patternRequired":n='muss ein Attribut nach folgendem Muster haben "'+a.params.missingPattern+'"';break;case"propertyNames":n="Attributname ist ungültig";break;case"required":n="muss das erforderliche Attribut "+a.params.missingProperty+" enthalten";break;case"type":n="muss sein: "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="darf nicht mehr als "+i+" Element",i!=1&&(n+="e"),n+=" haben";break;case"unevaluatedProperties":n="darf keine unausgewerteten Attribute haben";break;case"uniqueItems":n="darf keine Duplikate enthalten (Elemente #"+a.params.j+" und #"+a.params.i+" sind gleich)";break;default:n='muss die Validierung "'+a.keyword+'" bestehen'}a.message=n}}),cc}var fc,Cy;function jq(){return Cy||(Cy=1,fc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="no debe tener más de "+i+" elemento",i!=1&&(n+="s");break;case"additionalProperties":n="no debe tener propiedades adicionales";break;case"anyOf":n='debe coincidir con algún esquema en "anyOf"';break;case"const":n="debe ser igual a la constante";break;case"contains":n="debe contener un elemento válido";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="debe contener la",i!=1&&(n+="s"),n+=" propiedad",i!=1&&(n+="es"),n+=" "+a.params.deps+" cuando la propiedad "+a.params.property+" se encuentra presente";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='debe pasar la validación de palabra clave "'+a.keyword+'"'}break;case"enum":n="deber ser igual a uno de los valores predefinidos";break;case"false schema":n="el esquema és falso";break;case"format":n='debe coincidir con el formato "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"if":n='debe corresponderse con el esquema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"maxItems":n="";var i=a.params.limit;n+="no debe contener más de "+i+" elemento",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="no debe contener más de "+i+" caracter",i!=1&&(n+="es");break;case"maxProperties":n="";var i=a.params.limit;n+="no debe contener más de "+i+" propiedad",i!=1&&(n+="es");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="debe ser "+r;break;case"minItems":n="";var i=a.params.limit;n+="no debe contener menos de "+i+" elemento",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="no debe contener menos de "+i+" caracter",i!=1&&(n+="es");break;case"minProperties":n="";var i=a.params.limit;n+="no debe contener menos de "+i+" propiedad",i!=1&&(n+="es");break;case"multipleOf":n="debe ser múltiplo de "+a.params.multipleOf;break;case"not":n='no debe ser válido según el esquema en "not"';break;case"oneOf":n='debe coincidir con un solo esquema en "oneOf"';break;case"pattern":n='debe coincidir con el patron "'+a.params.pattern+'"';break;case"patternRequired":n='la propiedad debe coincidir con el patrón "'+a.params.missingPattern+'"';break;case"propertyNames":n="la propiedad no és válida";break;case"required":n="debe tener la propiedad requerida "+a.params.missingProperty;break;case"type":n="debe ser "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="no debe contener elementos duplicados, (los elementos ## "+a.params.j+" y "+a.params.i+" son idénticos)";break;default:n='debe pasar la validación de palabra clave "'+a.keyword+'"'}a.message=n}}),fc}var dc,Ey;function Rq(){return Ey||(Ey=1,dc=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var a=n.params.limit;s+="saa sisältää enintään "+a,a==1?s+=":n elementin":s+=" elementtiä";break;case"additionalProperties":s="ei saa sisältää ylimääräisiä ominaisuuksia";break;case"anyOf":s='täytyy vastata "anyOf" skeemaa';break;case"const":s="täytyy olla yhtä kuin vakio";break;case"contains":s="täytyy sisältää kelvollinen elementti";break;case"dependencies":case"dependentRequired":s="";var a=n.params.depsCount;s+="täytyy sisältää "+n.params.deps+" ominaisuu",a==1?s+="s":s+="det",s+=" kun "+n.params.property+"-ominaisuus on läsnä";break;case"discriminator":switch(n.params.error){case"tag":s='tunniste "'+n.params.tag+'" täytyy olla merkkijono';break;case"mapping":s='tunnisteen "'+n.params.tag+'" arvon muoto pitää olla oneOf';break;default:s='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}break;case"enum":s="täytyy olla yhtä kuin jokin sallituista arvoista";break;case"false schema":s="boolean skeema on väärä";break;case"format":s='täytyy vastata muotoa "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"if":s='täytyy vastata "'+n.params.failingKeyword+'" skeemaa';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"maxItems":s="";var a=n.params.limit;s+="tulee sisältää enintään "+a+" ",a==1?s+="elementti":s+="elementtiä";break;case"maxLength":s="";var a=n.params.limit;s+="ei saa olla pidempi kuin "+a+" merkki",a!=1&&(s+="ä");break;case"maxProperties":s="";var a=n.params.limit;s+="tulee sisältää enintään "+a+" ",a==1?s+="ominaisuus":s+="ominaisuutta";break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="täytyy olla "+r;break;case"minItems":s="";var a=n.params.limit;s+="tulee sisältää vähintään "+a+" ",a==1?s+="elementti":s+="elementtiä";break;case"minLength":s="";var a=n.params.limit;s+="ei saa olla lyhyempi kuin "+a+" merkki",a!=1&&(s+="ä");break;case"minProperties":s="";var a=n.params.limit;s+="tulee sisältää vähintään "+a+" ",a==1?s+="ominaisuus":s+="ominaisuutta";break;case"multipleOf":s="täytyy olla moninkertainen: "+n.params.multipleOf;break;case"not":s='ei saa olla hyväksytty skeeman "not" mukaan';break;case"oneOf":s='täytyy vastata täsmälleen yhtä "oneOf" -kohdassa määriteltyä skeemaa';break;case"pattern":s='täytyy vastata muotoa "'+n.params.pattern+'"';break;case"patternRequired":s='täytyy sisältää ominaisuus joka vastaa kaavaa "'+n.params.missingPattern+'"';break;case"propertyNames":s="ominaisuuden nimi on virheellinen";break;case"required":s="täytyy sisältää vaadittu ominaisuus "+n.params.missingProperty;break;case"type":s="";var i=n.params.type;s+="täytyy olla ",i=="number"?s+="numero":i=="integer"?s+="kokonaisluku":i=="string"?s+="merkkijono":i=="boolean"?s+="boolean":s+=i;break;case"unevaluatedItems":s="";var a=n.params.len;s+="ei saa olla enemmän kuin "+a+" elementti",a!=1&&(s+="ä");break;case"unevaluatedProperties":s="ei saa sisältää arvioimattomia ominaisuuksia";break;case"uniqueItems":s="ei saa sisältää duplikaatteja (elementit ## "+n.params.j+" ja "+n.params.i+" ovat identtiset)";break;default:s='täytyy läpäistä "'+n.keyword+'" avainsanatarkistus'}n.message=s}}),dc}var mc,Ay;function Nq(){return Ay||(Ay=1,mc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="ne doit pas contenir plus de "+i+" élémént",i!=1&&(n+="s");break;case"additionalProperties":n="ne doit pas contenir de propriétés additionnelles";break;case"anyOf":n='doit correspondre à un schéma de "anyOf"';break;case"const":n="doit être égal à la constante";break;case"contains":n="doit contenir un élément valide";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="doit avoir la propriété "+a.params.deps+" quand la propriété "+a.params.property+" est présente";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='doit être valide selon le critère "'+a.keyword+'"'}break;case"enum":n="doit être égal à une des valeurs prédéfinies";break;case"false schema":n='le schema est "false"';break;case"format":n='doit correspondre au format "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"if":n='doit correspondre au schéma "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"maxItems":n="";var i=a.params.limit;n+="ne doit pas contenir plus de "+i+" élément",i!=1&&(n+="s");break;case"maxLength":n="";var i=a.params.limit;n+="ne doit pas dépasser "+i+" caractère",i!=1&&(n+="s");break;case"maxProperties":n="";var i=a.params.limit;n+="ne doit pas contenir plus de "+i+" propriété",i!=1&&(n+="s");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="doit être "+r;break;case"minItems":n="";var i=a.params.limit;n+="ne doit pas contenir moins de "+i+" élément",i!=1&&(n+="s");break;case"minLength":n="";var i=a.params.limit;n+="ne doit pas faire moins de "+i+" caractère",i!=1&&(n+="s");break;case"minProperties":n="";var i=a.params.limit;n+="ne doit pas contenir moins de "+i+" propriété",i!=1&&(n+="s");break;case"multipleOf":n="doit être un multiple de "+a.params.multipleOf;break;case"not":n='est invalide selon le schéma "not"';break;case"oneOf":n='doit correspondre à exactement un schéma de "oneOf"';break;case"pattern":n='doit correspondre au format "'+a.params.pattern+'"';break;case"patternRequired":n='la propriété doit correspondre au format "'+a.params.missingPattern+'"';break;case"propertyNames":n="le nom de propriété est invalide";break;case"required":n="requiert la propriété "+a.params.missingProperty;break;case"type":n="doit être de type "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="ne doit pas contenir de doublons (les éléments ## "+a.params.j+" et "+a.params.i+" sont identiques)";break;default:n='doit être valide selon le critère "'+a.keyword+'"'}a.message=n}}),mc}var pc,Oy;function Fq(){return Oy||(Oy=1,pc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nem lehet több, mint "+i+" eleme";break;case"additionalProperties":n="nem lehetnek további elemei";break;case"anyOf":n='meg kell feleljen legalább egy "anyOf" alaknak';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="-nak kell legyen",i>1&&(n+="ek"),n+=" a következő tulajdonsága",i!=1&&(n+="i"),n+=": "+a.params.deps+", ha van "+a.params.property+" tulajdonsága";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='must pass "'+a.keyword+'" keyword validation'}break;case"enum":n="egyenlő kell legyen valamely előre meghatározott értékkel";break;case"false schema":n="boolean schema is false";break;case"format":n='meg kell feleljen a következő formátumnak: "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="kell legyen "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nem lehet több, mint "+i+" eleme";break;case"maxLength":n="";var i=a.params.limit;n+="nem lehet hosszabb, mint "+i+" szimbólum";break;case"maxProperties":n="";var i=a.params.limit;n+="nem lehet több, mint "+i+" tulajdonsága";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="kell legyen "+r;break;case"minItems":n="";var i=a.params.limit;n+="nem lehet kevesebb, mint "+i+" eleme";break;case"minLength":n="";var i=a.params.limit;n+="nem lehet rövidebb, mint "+i+" szimbólum";break;case"minProperties":n="";var i=a.params.limit;n+="nem lehet kevesebb, mint "+i+" tulajdonsága";break;case"multipleOf":n="a többszöröse kell legyen a következő számnak: "+a.params.multipleOf;break;case"not":n='nem lehet érvényes a "not" alaknak megfelelően';break;case"oneOf":n='meg kell feleljen pontosan egy "oneOf" alaknak';break;case"pattern":n='meg kell feleljen a következő mintának: "'+a.params.pattern+'"';break;case"patternRequired":n='must have property matching pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="kell legyen "+a.params.missingProperty+" tulajdonsága";break;case"type":n=""+a.params.type+" kell legyen";break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nem lehetnek azonos elemei ("+a.params.j+" és "+a.params.i+" elemek azonosak)";break;default:n='must pass "'+a.keyword+'" keyword validation'}a.message=n}}),pc}var hc,_y;function Dq(){return _y||(_y=1,hc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+=" tidak boleh memiliki lebih dari "+i+" item";break;case"additionalProperties":n="tidak boleh memiliki properti tambahan";break;case"anyOf":n='harus cocok dengan beberapa skema pada "anyOf"';break;case"const":n="harus sama dengan konstan";break;case"contains":n="harus berisi item yang valid";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+=" harus memiliki properti "+a.params.deps+" ketika properti "+a.params.property+" hadir";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='harus lulus validasi kata kunci "'+a.keyword+'"'}break;case"enum":n="harus sama dengan salah satu dari nilai yang telah ditentukan";break;case"false schema":n="skema boolean salah";break;case"format":n='harus cocok dengan format "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"if":n='harus cocok dengan skema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"maxItems":n="";var i=a.params.limit;n+=" tidak boleh memiliki lebih dari "+i+" item";break;case"maxLength":n="";var i=a.params.limit;n+=" tidak boleh lebih dari "+i+" karakter";break;case"maxProperties":n="";var i=a.params.limit;n+=" tidak boleh memiliki lebih dari "+i+" properti";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="harus "+r;break;case"minItems":n="";var i=a.params.limit;n+=" tidak boleh kurang dari "+i+" item";break;case"minLength":n="";var i=a.params.limit;n+=" tidak boleh lebih pendek dari "+i+" karakter";break;case"minProperties":n="";var i=a.params.limit;n+=" tidak boleh kurang dari "+i+" properti";break;case"multipleOf":n="harus merupakan kelipatan dari "+a.params.multipleOf;break;case"not":n='tidak boleh valid sesuai dengan skema pada "not"';break;case"oneOf":n='harus sama persis dengan satu skema pada "oneOf"';break;case"pattern":n='harus cocok dengan pola "'+a.params.pattern+'"';break;case"patternRequired":n='harus memiliki pola pencocokan properti "'+a.params.missingPattern+'"';break;case"propertyNames":n="nama properti tidak valid";break;case"required":n="harus memiliki properti "+a.params.missingProperty;break;case"type":n="harus berupa "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="tidak boleh memiliki item duplikat (item ## "+a.params.j+" dan "+a.params.i+" identik)";break;default:n='harus lulus validasi kata kunci "'+a.keyword+'"'}a.message=n}}),hc}var gc,Py;function Mq(){return Py||(Py=1,gc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="non dovrebbe avere più di "+i+" element",i==1?n+="o":n+="i";break;case"additionalProperties":n="non deve avere attributi aggiuntivi";break;case"anyOf":n='deve corrispondere ad uno degli schema in "anyOf"';break;case"const":n="deve essere uguale alla costante";break;case"contains":n="deve contentere un elemento valido";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="dovrebbe avere ",i==1?n+="l'":n+="gli ",n+="attribut",i==1?n+="o":n+="i",n+=" "+a.params.deps+" quando l'attributo "+a.params.property+" è presente";break;case"discriminator":switch(a.params.error){case"tag":n='il tag "'+a.params.tag+'" deve essere di tipo stringa';break;case"mapping":n='il valore del tag "'+a.params.tag+'" deve essere nei oneOf';break;default:n='deve essere valido secondo il criterio "'+a.keyword+'"'}break;case"enum":n="deve essere uguale ad uno dei valori consentiti";break;case"false schema":n="lo schema booleano è falso";break;case"format":n='deve corrispondere al formato "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"if":n='deve corrispondere allo schema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"maxItems":n="";var i=a.params.limit;n+="non deve avere più di "+i+" element",i==1?n+="o":n+="i";break;case"maxLength":n="";var i=a.params.limit;n+="non deve essere più lungo di "+i+" caratter",i==1?n+="e":n+="i";break;case"maxProperties":n="";var i=a.params.limit;n+="non deve avere più di "+i+" attribut",i==1?n+="o":n+="i";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="deve essere "+r;break;case"minItems":n="";var i=a.params.limit;n+="non deve avere meno di "+i+" element",i==1?n+="o":n+="i";break;case"minLength":n="";var i=a.params.limit;n+="non deve essere meno lungo di "+i+" caratter",i==1?n+="e":n+="i";break;case"minProperties":n="";var i=a.params.limit;n+="non deve avere meno di "+i+" attribut",i==1?n+="o":n+="i";break;case"multipleOf":n="deve essere un multiplo di "+a.params.multipleOf;break;case"not":n='non deve essere valido in base allo schema di "non"';break;case"oneOf":n='deve corrispondere esattamente ad uno degli schema in "oneOf"';break;case"pattern":n='deve corrispondere al formato "'+a.params.pattern+'"';break;case"patternRequired":n='deve avere un attributo che corrisponda al formato "'+a.params.missingPattern+'"';break;case"propertyNames":n="il nome dell'attritbuto non è valido";break;case"required":n="deve avere l'attributo obbligatorio "+a.params.missingProperty;break;case"type":n="deve essere di tipo "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="non deve avere più di "+i+" elementi",i==1?n+="o":n+="i";break;case"unevaluatedProperties":n="non deve avere attributi non valutati";break;case"uniqueItems":n="non deve avere duplicati (gli elementi ## "+a.params.j+" e "+a.params.i+" sono uguali)";break;default:n='deve essere valido secondo il criterio "'+a.keyword+'"'}a.message=n}}),gc}var yc,Iy;function Lq(){return Iy||(Iy=1,yc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="は"+i+"以上あってはいけない";break;case"additionalProperties":n="追加してはいけない";break;case"anyOf":n='"anyOf"のスキーマとマッチしなくてはいけない';break;case"const":n="must be equal to constant";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n=""+a.params.property+"がある場合、";var i=a.params.depsCount;n+="は"+a.params.deps+"をつけなければいけない";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='must pass "'+a.keyword+'" keyword validation'}break;case"enum":n="事前に定義された値のいずれかに等しくなければいけない";break;case"false schema":n="boolean schema is false";break;case"format":n='"'+a.params.format+'"形式に揃えなければいけない';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="must be "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=r+"でなければいけない";break;case"maxItems":n="";var i=a.params.limit;n+="は"+i+"個以上であってはいけない";break;case"maxLength":n="";var i=a.params.limit;n+="は"+i+"文字以上であってはいけない";break;case"maxProperties":n="";var i=a.params.limit;n+="は"+i+"個以上のプロパティを有してはいけない";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=r+"でなければいけない";break;case"minItems":n="";var i=a.params.limit;n+="は"+i+"個以下であってはいけない";break;case"minLength":n="";var i=a.params.limit;n+="は"+i+"文字以下であってはいけない";break;case"minProperties":n="";var i=a.params.limit;n+="は"+i+"個以下のプロパティを有してはいけない";break;case"multipleOf":n=""+a.params.multipleOf+"の倍数でなければいけない";break;case"not":n='"not"のスキーマに従って有効としてはいけない';break;case"oneOf":n='"oneOf"のスキーマと完全に一致しなくてはいけない';break;case"pattern":n='"'+a.params.pattern+'"のパターンと一致しなければいけない';break;case"patternRequired":n='must have property matching pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="必要なプロパティ"+a.params.missingProperty+"がなければいけない";break;case"type":n=""+a.params.type+"でなければいけない";break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="重複するアイテムがあってはいけない("+a.params.j+"と"+a.params.i+"は同じである)";break;default:n='must pass "'+a.keyword+'" keyword validation'}a.message=n}}),yc}var vc,Ty;function qq(){return Ty||(Ty=1,vc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+=" 항목은 아이템을 "+i+"개 이상 가질 수 없습니다";break;case"additionalProperties":n="추가적인 속성은 허용되지 않습니다";break;case"anyOf":n='"anyOf"의 스키마와 일치해야 합니다';break;case"const":n="상수와 같아야합니다";break;case"contains":n="올바른 아이템을 포함해야 합니다";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+=a.params.property+"속성이 있는 경우, "+a.params.deps+" 속성이 있어야합니다";break;case"discriminator":switch(a.params.error){case"tag":n='"'+a.params.tag+'"태그는 반드시 문자열이여야 합니다';break;case"mapping":n='"'+a.params.tag+'"태그의 값은 반드시 oneOf에 있어야 합니다';break;default:n='"'+a.keyword+'"키워드 검사를 통과해야 합니다'}break;case"enum":n="미리 정의된 값중 하나여야 합니다";break;case"false schema":n="boolean 스키마는 올바르지 않습니다";break;case"format":n='"'+a.params.format+'" 포맷과 일치해야 합니다';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"if":n='"'+a.params.failingKeyword+'" 스키마와 일치해야 합니다';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"maxItems":n="";var i=a.params.limit;n+="아이템이 최대 "+i+"개이여야 합니다";break;case"maxLength":n="";var i=a.params.limit;n+="최대 "+i+"글자여야 합니다";break;case"maxProperties":n="";var i=a.params.limit;n+="속성은 최대 "+i+"개 이내여야 합니다";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+=" "+r+" 이여야 합니다";break;case"minItems":n="";var i=a.params.limit;n+="아이템이 최소 "+i+"개이여야 합니다";break;case"minLength":n="";var i=a.params.limit;n+="최소 "+i+"글자여야 합니다";break;case"minProperties":n="";var i=a.params.limit;n+="속성은 최소 "+i+"개 이상이여야 합니다";break;case"multipleOf":n=""+a.params.multipleOf+"의 배수여야 합니다";break;case"not":n='"not"스키마에 따라 유효하지 않아야 합니다';break;case"oneOf":n='"oneOf" 스키마중 하나와 정확하게 일치해야 합니다';break;case"pattern":n='"'+a.params.pattern+'"패턴과 일치해야 합니다';break;case"patternRequired":n='"'+a.params.missingPattern+'"패턴과 일치하는 속성을 가져야 합니다';break;case"propertyNames":n="속성명이 올바르지 않습니다";break;case"required":n=""+a.params.missingProperty+" 속성은 필수입니다";break;case"type":n=""+a.params.type+"이여야 합니다";break;case"unevaluatedItems":n="";var i=a.params.len;n+="항목이 "+i+"개 아이템을 초과하면 안됩니다";break;case"unevaluatedProperties":n="평가되지 않은 속성이 없어야합니다.";break;case"uniqueItems":n="중복 아이템이 없어야 합니다 (아이템"+a.params.j+"과 아이템"+a.params.i+"가 동일합니다)";break;default:n='"'+a.keyword+'"키워드 검사를 통과해야 합니다'}a.message=n}}),vc}var bc,jy;function zq(){return jy||(jy=1,bc=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var a=n.params.limit;s+="kan ikke ha mer enn "+a+" element",a!=1&&(s+="er");break;case"additionalProperties":s="kan ikke ha flere egenskaper";break;case"anyOf":s='må samsvare med et schema i "anyOf"';break;case"const":s="må være lik konstanten";break;case"contains":s="må inneholde et gyldig element";break;case"dependencies":case"dependentRequired":s="";var a=n.params.depsCount;s+="må ha egenskapen",a!=1&&(s+="e"),s+=" "+n.params.deps+" når egenskapen "+n.params.property+" er angitt";break;case"discriminator":switch(n.params.error){case"tag":s='tag "'+n.params.tag+'" must be string';break;case"mapping":s='value of tag "'+n.params.tag+'" must be in oneOf';break;default:s="må samsvare med valideringen for "+n.keyword}break;case"enum":s="må være lik en av de forhåndsdefinerte verdiene";break;case"false schema":s="boolsk schema er usannt";break;case"format":s='må stemme overens med formatet "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"if":s='must match "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"maxItems":s="";var a=n.params.limit;s+="kan ikke ha fler enn "+a+" element",a!=1&&(s+="er");break;case"maxLength":s="";var a=n.params.limit;s+="kan ikke være lengre enn "+a+" tegn";break;case"maxProperties":s="";var a=n.params.limit;s+="kan ikke ha mer enn "+a+" egenskap",a!=1&&(s+="er");break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="må være "+r;break;case"minItems":s="";var a=n.params.limit;s+="kan ikke ha færre enn "+a+" element",a!=1&&(s+="er");break;case"minLength":s="";var a=n.params.limit;s+="kan ikke være kortere enn "+a+" tegn";break;case"minProperties":s="";var a=n.params.limit;s+="kan ikke ha mindre enn "+a+" egenskap",a!=1&&(s+="er");break;case"multipleOf":s="må være et multiplum av "+n.params.multipleOf;break;case"not":s='kan ikke samsvare med schema i "not"';break;case"oneOf":s='må samsvare med nøyaktig ett schema i "oneOf"';break;case"pattern":s='må samsvare med mønsteret "'+n.params.pattern+'"';break;case"patternRequired":s='må ha en egenskap som samsvarer med mønsteret "'+n.params.missingPattern;break;case"propertyNames":s="egenskapen med navnet '",n.params.propertyNameout+="' er ugyldig";break;case"required":s="må ha den påkrevde egenskapen "+n.params.missingProperty;break;case"type":s="";var i=n.params.type;s+="må være ",i=="number"?s+="et tall":i=="integer"?s+="et heltall":i=="string"?s+="en streng":i=="boolean"?s+="ja eller nei":s+=i;break;case"unevaluatedItems":s="";var a=n.params.len;s+="must NOT have more than "+a+" item",a!=1&&(s+="s");break;case"unevaluatedProperties":s="must NOT have unevaluated properties";break;case"uniqueItems":s="kan ikke ha duplikate elemeneter (elementene ## "+n.params.j+" og "+n.params.i+" er identiske)";break;default:s="må samsvare med valideringen for "+n.keyword}n.message=s}}),bc}var kc,Ry;function $q(){return Ry||(Ry=1,kc=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="";var a=n.params.limit;s+="mag niet meer dan "+a+" item",a!=1&&(s+="s"),s+=" bevatten";break;case"additionalProperties":s="mag geen extra eigenschappen bevatten";break;case"anyOf":s='moet overeenkomen met een schema in "anyOf"';break;case"const":s="moet gelijk zijn aan constante";break;case"contains":s="moet een geldig item bevatten";break;case"dependencies":case"dependentRequired":s="";var a=n.params.depsCount;s+="moet de eigenschap",a!=1&&(s+="pen"),s+=" "+n.params.deps+" bevatten als "+n.params.property+" is gedefinieerd";break;case"discriminator":switch(n.params.error){case"tag":s='tag "'+n.params.tag+'" moet een tekenreeks zijn';break;case"mapping":s='de waarde van het veld "'+n.params.tag+'" moet voorkomen in de oneOf';break;default:s='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}break;case"enum":s="moet overeenkomen met één van de voorgedefinieerde waarden";break;case"false schema":s="boolean schema is fout";break;case"format":s='moet overeenkomen met het volgende formaat: "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"if":s='moet overeenkomen met "'+n.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"maxItems":s="";var a=n.params.limit;s+="mag niet meer dan "+a+" item",a!=1&&(s+="s"),s+=" bevatten";break;case"maxLength":s="";var a=n.params.limit;s+="mag niet langer dan "+a+" karakter",a!=1&&(s+="s"),s+=" zijn";break;case"maxProperties":s="";var a=n.params.limit;s+="mag niet meer dan "+a+" eigenschap",a!=1&&(s+="pen"),s+=" bevatten";break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="moet "+r+" zijn";break;case"minItems":s="";var a=n.params.limit;s+="mag niet minder dan "+a+" item",a!=1&&(s+="s"),s+=" bevatten";break;case"minLength":s="";var a=n.params.limit;s+="mag niet korter dan "+a+" karakter",a!=1&&(s+="s"),s+=" zijn";break;case"minProperties":s="";var a=n.params.limit;s+="mag niet minder dan "+a+" eigenschap",a!=1&&(s+="pen"),s+=" bevatten";break;case"multipleOf":s="moet een veelvoud van "+n.params.multipleOf+" zijn";break;case"not":s='mag niet overeenkomen met een schema in "not"';break;case"oneOf":s='moet overeenkomen met één schema in "oneOf"';break;case"pattern":s='moet overeenkomen met het volgende patroon: "'+n.params.pattern+'"';break;case"patternRequired":s='moet een eigenschap bevatten die overeenkomt met het pattroon: "'+n.params.missingPattern+'"';break;case"propertyNames":s="eigenschapnaam is ongeldig";break;case"required":s="moet de eigenschap "+n.params.missingProperty+" bevatten";break;case"type":s="";var i=n.params.type;s+="moet een ",i=="number"?s+="nummer":i=="integer"?s+="geheel getal":i=="string"?s+="tekenreeks":i=="boolean"&&(s+="ja of nee waarde"),s+=" ("+i+") bevatten";break;case"unevaluatedItems":s="";var a=n.params.len;s+="mag niet meer dan "+a+" item",a!=1&&(s+="s"),s+=" bevatten";break;case"unevaluatedProperties":s="mag geen ongecontroleerde eigenschappen bevatten";break;case"uniqueItems":s="mag geen gedupliceerde items bevatten (items ## "+n.params.j+" en "+n.params.i+" zijn identiek)";break;default:s='moet sleutelwoord validatie "'+n.keyword+'" doorstaan'}n.message=s}}),kc}var wc,Ny;function Uq(){return Ny||(Ny=1,wc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nie powinien mieć więcej niż "+i+" element",i==1?n+="u":n+="ów";break;case"additionalProperties":n="nie powinien zawierać dodatkowych pól";break;case"anyOf":n='powinien pasować do wzoru z sekcji "anyOf"';break;case"const":n="powinien być równy stałej";break;case"contains":n="must contain a valid item";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="powinien zawierać pol",i==1?n+="e":n+="a",n+=" "+a.params.deps+" kiedy pole "+a.params.property+" jest obecne";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='powinien przejść walidację "'+a.keyword+'"'}break;case"enum":n="powinien być równy jednej z predefiniowanych wartości";break;case"false schema":n="boolean schema is false";break;case"format":n='powinien zgadzać się z formatem "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nie powinien mieć więcej niż "+i+" element",i==1?n+="u":n+="ów";break;case"maxLength":n="";var i=a.params.limit;n+="nie powinien być dłuższy niż "+i+" znak",i!=1&&(n+="ów");break;case"maxProperties":n="";var i=a.params.limit;n+="nie powinien zawierać więcej niż "+i+" ",i==1?n+="pole":n+="pól";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="powinien być "+r;break;case"minItems":n="";var i=a.params.limit;n+="nie powinien mieć mniej niż "+i+" element",i==1?n+="u":n+="ów";break;case"minLength":n="";var i=a.params.limit;n+="nie powinien być krótszy niż "+i+" znak",i!=1&&(n+="ów");break;case"minProperties":n="";var i=a.params.limit;n+="nie powinien zawierać mniej niż "+i+" ",i==1?n+="pole":n+="pól";break;case"multipleOf":n="powinien być wielokrotnością "+a.params.multipleOf;break;case"not":n='nie powinien pasować do wzoru z sekcji "not"';break;case"oneOf":n='powinien pasować do jednego wzoru z sekcji "oneOf"';break;case"pattern":n='powinien zgadzać się ze wzorem "'+a.params.pattern+'"';break;case"patternRequired":n='powinien mieć pole pasujące do wzorca "'+a.params.missingPattern+'"';break;case"propertyNames":n="property name is invalid";break;case"required":n="powinien zawierać wymagane pole "+a.params.missingProperty;break;case"type":n="powinien być "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nie powinien zawierać elementów które się powtarzają (elementy "+a.params.j+" i "+a.params.i+" są identyczne)";break;default:n='powinien przejść walidację "'+a.keyword+'"'}a.message=n}}),wc}var xc,Fy;function Bq(){return Fy||(Fy=1,xc=function(t){if(t&&t.length)for(const n of t){let s;switch(n.keyword){case"additionalItems":case"items":s="não são permitidos itens adicionais (mais do que "+a+")";break;case"additionalProperties":s="não são permitidas propriedades adicionais";break;case"anyOf":s='os dados não correspondem a nenhum schema de "anyOf"';break;case"const":s="deve ser igual à constante";break;case"contains":s="deve conter um item válido";break;case"dependencies":case"dependentRequired":s="";var a=n.params.depsCount;s+=" deve ter propriedade",a!=1&&(s+="s"),s+=" "+n.params.deps+" quando a propriedade "+n.params.property+" estiver presente";break;case"discriminator":switch(n.params.error){case"tag":s='a tag "'+n.params.tag+'" deve ser uma string';break;case"mapping":s='o valor da tag "'+n.params.tag+'" deve estar no oneOf';break;default:s='deve passar a validação da keyword "'+n.keyword+'"'}break;case"enum":s="deve ser igual a um dos valores permitidos";break;case"false schema":s='o schema booleano é "false"';break;case"format":s='deve corresponder ao formato "'+n.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"formatMinimum":case"formatExclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"if":s='deve corresponder ao schema "'+n.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"maxItems":s="";var a=n.params.limit;s+="não deve ter mais que "+a+" elemento",a!=1&&(s+="s");break;case"maxLength":s="";var a=n.params.limit;s+="não deve ser maior que "+a+" caracter",a!=1&&(s+="es");break;case"maxProperties":s="";var a=n.params.limit;s+="não deve ter mais que "+a+" propriedade",a!=1&&(s+="s");break;case"minimum":case"exclusiveMinimum":s="";var r=n.params.comparison+" "+n.params.limit;s+="deve ser "+r;break;case"minItems":s="";var a=n.params.limit;s+="não deve ter menos que "+a+" elemento",a!=1&&(s+="s");break;case"minLength":s="";var a=n.params.limit;s+="não deve ser mais curta que "+a+" caracter",a!=1&&(s+="es");break;case"minProperties":s="";var a=n.params.limit;s+="não deve ter menos que "+a+" propriedade",a!=1&&(s+="s");break;case"multipleOf":s="deve ser múltiplo de "+n.params.multipleOf;break;case"not":s='não deve ser valido segundo o schema em "not"';break;case"oneOf":s='deve corresponder exatamente com um schema em "oneOf"';break;case"pattern":s='deve corresponder ao padrão "'+n.params.pattern+'"';break;case"patternRequired":s='deve ter a propriedade correspondente ao padrão "'+n.params.missingPattern+'"';break;case"propertyNames":s="o nome da propriedade é inválido";break;case"required":s="deve ter a propriedade obrigatória "+n.params.missingProperty;break;case"type":s="";var i=n.params.type;s+="deve ser ",i=="number"?s+="um número":i=="integer"?s+="um número inteiro":i=="string"?s+="um texto":i=="boolean"?s+="um booleano":s+=i;break;case"unevaluatedItems":s="";var a=n.params.len;s+="não pode possuir mais que "+a+" ",a==1?s+="item":s+="itens";break;case"unevaluatedProperties":s="não pode possuir propridades não avaliadas";break;case"uniqueItems":s="não deve ter itens duplicados (os itens ## "+n.params.j+" e "+n.params.i+" são idênticos)";break;default:s='deve passar a validação da keyword "'+n.keyword+'"'}n.message=s}}),xc}var Sc,Dy;function Vq(){return Dy||(Dy=1,Sc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="должно иметь не более, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"additionalProperties":n="не должно иметь дополнительных полей";break;case"anyOf":n='должно соответствовать одной их схем в "anyOf"';break;case"const":n="должно быть равно заданному значению";break;case"contains":n="должно содержать значение соответствующее схеме";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="должно иметь пол",i==1?n+="е":n+="я",n+=" "+a.params.deps+", когда присутствует поле "+a.params.property;break;case"discriminator":switch(a.params.error){case"tag":n='поле "'+a.params.tag+'" должно быть строкой';break;case"mapping":n='значение поля "'+a.params.tag+'" должно быть в одной из oneOf схем ';break;default:n='должно соответствовать правилу "'+a.keyword+'"'}break;case"enum":n="должно быть равно одному из разрешенных значений";break;case"false schema":n="схема равна false";break;case"format":n='должно соответствовать формату "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"if":n='должно соответствовать схемe "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"maxItems":n="";var i=a.params.limit;n+="должно иметь не более, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"maxLength":n="";var i=a.params.limit;n+="должно быть не длиннее, чем "+i+" символ",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"maxProperties":n="";var i=a.params.limit;n+="должно иметь не более, чем "+i+" пол",i==1?n+="е":i>=2&&i<=4?n+="я":n+="ей";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="должно быть "+r;break;case"minItems":n="";var i=a.params.limit;n+="должно иметь не менее, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"minLength":n="";var i=a.params.limit;n+="должно быть не короче, чем "+i+" символ",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"minProperties":n="";var i=a.params.limit;n+="должно иметь не менее, чем "+i+" пол",i==1?n+="е":i>=2&&i<=4?n+="я":n+="ей";break;case"multipleOf":n="должно быть кратным "+a.params.multipleOf;break;case"not":n='должно не соответствовать схеме в "not"';break;case"oneOf":n='должно соответствовать в точности одной схемe в "oneOf"';break;case"pattern":n='должно соответствовать образцу "'+a.params.pattern+'"';break;case"patternRequired":n='должно иметь поле, соответствующее образцу "'+a.params.missingPattern+'"';break;case"propertyNames":n="имя поля не соответствует схеме";break;case"required":n="должно иметь обязательное поле "+a.params.missingProperty;break;case"type":n="должно быть "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="должно иметь не более, чем "+i+" элемент",i>=2&&i<=4?n+="а":i!=1&&(n+="ов");break;case"unevaluatedProperties":n="не должно иметь непроверенных полей";break;case"uniqueItems":n="не должно иметь повторяющихся элементов (элементы "+a.params.j+" и "+a.params.i+" идентичны)";break;default:n='должно соответствовать правилу "'+a.keyword+'"'}a.message=n}}),Sc}var Cc,My;function Hq(){return My||(My=1,Cc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="nemôže obsahovať viac, než "+i+" prv",i==1?n+="ok":n+="kov";break;case"additionalProperties":n="nemôže obsahovať ďalšie položky";break;case"anyOf":n='musí splňovať aspoň jednu zo schém v "anyOf"';break;case"const":n="musí byť konštanta";break;case"contains":n="musí obsahovať prvok zodpovedajúci schéme";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+=" musí obsahovať polož",i>=2&&i<=4?n+="ky":i!=1?n+="iek":n+="ka",n+=": "+a.params.deps+", ak obsahuje "+a.params.property;break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='musí splniť "'+a.keyword+'" validáciu'}break;case"enum":n="musí byť jedna z definovaných hodnôt";break;case"false schema":n="schéma je false";break;case"format":n='musí obsahovať formát "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"maxItems":n="";var i=a.params.limit;n+="nesmie obsahovať viac než "+i+" prv",i==1?n+="ok":n+="kov";break;case"maxLength":n="";var i=a.params.limit;n+="nesmie byť dlhší než "+i+" znak",i!=1&&(n+="ov");break;case"maxProperties":n="";var i=a.params.limit;n+="nesmie obsahovať viac než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="iek":n+="ka";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="musí byť "+r;break;case"minItems":n="";var i=a.params.limit;n+="nesmie obsahovať menej než "+i+" prv",i==1?n+="ok":n+="kov";break;case"minLength":n="";var i=a.params.limit;n+="nesmie byť kratší než "+i+" znak",i!=1&&(n+="ov");break;case"minProperties":n="";var i=a.params.limit;n+="nesmie obsahovať menej než "+i+" polož",i>=2&&i<=4?n+="ky":i!=1?n+="iek":n+="ka";break;case"multipleOf":n="musí byť násobkom "+a.params.multipleOf;break;case"not":n='nesmie splňovať schému v "not"';break;case"oneOf":n='musí splňovať práve jednu schému v "oneOf"';break;case"pattern":n='musí splňovať regulárny výraz "'+a.params.pattern+'"';break;case"patternRequired":n='musí obsahovať položku splňjúcu regulárny výraz "'+a.params.missingPattern+'"';break;case"propertyNames":n="názov položky nezodpovedá schéme";break;case"required":n="musí obsahovať požadovanú položku "+a.params.missingProperty;break;case"type":n="musí byť "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="nesmie obsahovať duplicitné prvky (prvky ## "+a.params.j+" a "+a.params.i+" sú rovnaké)";break;default:n='musí splniť "'+a.keyword+'" validáciu'}a.message=n}}),Cc}var Ec,Ly;function Kq(){return Ly||(Ly=1,Ec=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="borde ha fler än "+i+" sak",i!=1&&(n+="er");break;case"additionalProperties":n="borde inte ha fler egenskaper";break;case"anyOf":n='borde matcha något schema i "anyOf"';break;case"const":n="bör vara en konstant";break;case"contains":n="bör innehålla ett giltigt objekt";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="borde ha egenskap",i!=1&&(n+="er"),n+=" "+a.params.deps+" när egenskap "+a.params.property+" finns tillgängligt";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" must be string';break;case"mapping":n='value of tag "'+a.params.tag+'" must be in oneOf';break;default:n='bör passera "'+a.keyword+'" nyckelord validering'}break;case"enum":n="borde vara ekvivalent med en av dess fördefinierade värden";break;case"false schema":n="boolean schema är falskt";break;case"format":n='borde matcha formatet "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="bör vara "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="bör vara "+r;break;case"if":n='must match "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="borde vara "+r;break;case"maxItems":n="";var i=a.params.limit;n+="borde inte ha fler än "+i+" sak",i!=1&&(n+="er");break;case"maxLength":n="";var i=a.params.limit;n+="borde inte vara längre än "+i+" tecken";break;case"maxProperties":n="";var i=a.params.limit;n+="borde inte ha fler än "+i+" egenskap",i!=1&&(n+="er");break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="borde vara "+r;break;case"minItems":n="";var i=a.params.limit;n+="borde inte ha färre än "+i+" sak",i!=1&&(n+="er");break;case"minLength":n="";var i=a.params.limit;n+="borde inte vara kortare än "+i+" tecken";break;case"minProperties":n="";var i=a.params.limit;n+="borde inte ha färre än "+i+" egenskap",i!=1&&(n+="er");break;case"multipleOf":n="borde vara en multipel av "+a.params.multipleOf;break;case"not":n='borde inte vara giltigt enligt schema i "not"';break;case"oneOf":n='borde matcha exakt ett schema i "oneOf"';break;case"pattern":n='borde matcha mönstret "'+a.params.pattern+'"';break;case"patternRequired":n='bör ha en egenskap som matchar mönstret "'+a.params.missingPattern+'"';break;case"propertyNames":n="egenskap med namnet är inte giltig";break;case"required":n="borde ha den nödvändiga egenskapen "+a.params.missingProperty;break;case"type":n="borde vara "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="must NOT have more than "+i+" item",i!=1&&(n+="s");break;case"unevaluatedProperties":n="must NOT have unevaluated properties";break;case"uniqueItems":n="borde inte ha duplicerade saker (sakerna ## "+a.params.j+" och "+a.params.i+" är identiska)";break;default:n='bör passera "'+a.keyword+'" nyckelord validering'}a.message=n}}),Ec}var Ac,qy;function Wq(){return qy||(qy=1,Ac=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+i+" ตัว";break;case"additionalProperties":n="ต้องไม่มี property อื่นๆ นอกเหนีอจากที่กำหนดไว้";break;case"anyOf":n='ต้องตรงกับหนึ่งใน schema ที่กำหนดไว้ใน "anyOf"';break;case"const":n="ต้องเท่ากับค่าคงที่";break;case"contains":n="ต้องมีสมาชิกที่ผ่านเงื่อนไขอยู่";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="เมื่อมี property "+a.params.property+" แล้วจะต้องมี property "+a.params.deps+" ด้วย";break;case"discriminator":switch(a.params.error){case"tag":n='tag "'+a.params.tag+'" ต้องเป็น string';break;case"mapping":n='ต้องมีค่าของ tag "'+a.params.tag+'" ใน oneOf';break;default:n='ต้องผ่านคีย์เวิร์ด "'+a.keyword+'"'}break;case"enum":n="ต้องตรงกับหนึ่งในค่าที่กำหนดไว้";break;case"false schema":n="schema เป็น false";break;case"format":n='ต้องเป็นรูปแบบ "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"if":n='ต้องตรงกับ schema "'+a.params.failingKeyword+'"';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"maxItems":n="";var i=a.params.limit;n+="ต้องมีสมาชิกไม่เกิน "+i;break;case"maxLength":n="";var i=a.params.limit;n+="ต้องยาวไม่เกิน "+i+" ตัวอักษร";break;case"maxProperties":n="";var i=a.params.limit;n+="ต้องมี property ไม่เกิน "+i+" ตัว";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="ต้อง "+r;break;case"minItems":n="";var i=a.params.limit;n+="ควรมีสมาชิกไม่น้อยกว่า "+i;break;case"minLength":n="";var i=a.params.limit;n+="ต้องมีอย่างน้อย "+i+" ตัวอักษร";break;case"minProperties":n="";var i=a.params.limit;n+="ต้องมี property อย่างน้อย "+i+" ตัว";break;case"multipleOf":n="ต้องเป็นเลขที่หาร "+a.params.multipleOf+" ลงตัว";break;case"not":n='ต้องไม่ผ่าน schema ที่กำหนดไว้ใน "not"';break;case"oneOf":n='ต้องตรงกับ schema ตัวเดียวใน "oneOf" เท่านั้น';break;case"pattern":n='ต้องตรงตาม pattern "'+a.params.pattern+'"';break;case"patternRequired":n='ต้องมี property ที่มีชื่อตรงตาม pattern "'+a.params.missingPattern+'"';break;case"propertyNames":n="ชื่อ property ไม่ถูกต้อง";break;case"required":n="ต้องมี property "+a.params.missingProperty+" ด้วย";break;case"type":n="ต้องเป็น "+a.params.type;break;case"unevaluatedItems":n="";var i=a.params.len;n+="ต้องมีไม่เกิน "+i+" ตัว";break;case"unevaluatedProperties":n="ต้องไม่มี property ที่ยังไม่ได้ผ่านการตรวจสอบเงื่อนไขใดๆ";break;case"uniqueItems":n="ต้องมีสมาชิกไม่ซ้ำักัน (ลำดับที่ "+a.params.j+" กับ "+a.params.i+" ซ้ำกัน)";break;default:n='ต้องผ่านคีย์เวิร์ด "'+a.keyword+'"'}a.message=n}}),Ac}var Oc,zy;function Gq(){return zy||(zy=1,Oc=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="不允许超过"+i+"个元素";break;case"additionalProperties":n="不允许有额外的属性";break;case"anyOf":n="数据应为 anyOf 所指定的其中一个";break;case"const":n="应当等于常量";break;case"contains":n="应当包含一个有效项";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="应当拥有属性"+a.params.property+"的依赖属性"+a.params.deps;break;case"discriminator":switch(a.params.error){case"tag":n='标签 "'+a.params.tag+'" 的类型必须为字符串';break;case"mapping":n='标签 "'+a.params.tag+'" 的值必须在 oneOf 之中';break;default:n='应当通过 "'+a.keyword+' 关键词校验"'}break;case"enum":n="应当是预设定的枚举值之一";break;case"false schema":n="布尔模式出错";break;case"format":n='应当匹配格式 "'+a.params.format+'"';break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当是 "+r;break;case"if":n='应当匹配模式 "'+a.params.failingKeyword+'" ';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当为 "+r;break;case"maxItems":n="";var i=a.params.limit;n+="不应多于 "+i+" 个项";break;case"maxLength":n="";var i=a.params.limit;n+="不应多于 "+i+" 个字符";break;case"maxProperties":n="";var i=a.params.limit;n+="不应有多于 "+i+" 个属性";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="应当为 "+r;break;case"minItems":n="";var i=a.params.limit;n+="不应少于 "+i+" 个项";break;case"minLength":n="";var i=a.params.limit;n+="不应少于 "+i+" 个字符";break;case"minProperties":n="";var i=a.params.limit;n+="不应有少于 "+i+" 个属性";break;case"multipleOf":n="应当是 "+a.params.multipleOf+" 的整数倍";break;case"not":n='不应当匹配 "not" schema';break;case"oneOf":n='只能匹配一个 "oneOf" 中的 schema';break;case"pattern":n='应当匹配模式 "'+a.params.pattern+'"';break;case"patternRequired":n="应当有属性匹配模式 "+a.params.missingPattern;break;case"propertyNames":n="属性名 无效";break;case"required":n="应当有必需属性 "+a.params.missingProperty;break;case"type":n="应当是 "+a.params.type+" 类型";break;case"unevaluatedItems":n="";var i=a.params.len;n+=" 不允许有超过 "+i+" 个元素";break;case"unevaluatedProperties":n="不允许存在未求值的属性";break;case"uniqueItems":n="不应当含有重复项 (第 "+a.params.j+" 项与第 "+a.params.i+" 项是重复的)";break;default:n='应当通过 "'+a.keyword+' 关键词校验"'}a.message=n}}),Oc}var _c,$y;function Jq(){return $y||($y=1,_c=function(t){if(t&&t.length)for(const a of t){let n;switch(a.keyword){case"additionalItems":case"items":n="";var i=a.params.limit;n+="不可以超過"+i+"個元素";break;case"additionalProperties":n="不可以有額外的屬性";break;case"anyOf":n="不符合 anyOf 指定的模式";break;case"const":n="應該等於常數";break;case"contains":n="應該包含一個有效元素";break;case"dependencies":case"dependentRequired":n="";var i=a.params.depsCount;n+="應該要有屬性"+a.params.property+"的依賴屬性"+a.params.deps;break;case"discriminator":switch(a.params.error){case"tag":n='標籤 "'+a.params.tag+'" 的類型必須是字串';break;case"mapping":n='標籤 "'+a.params.tag+'" 必須在 oneOf 其中之一';break;default:n='應該通過 "'+a.keyword+' 關鍵詞檢驗"'}break;case"enum":n="應該要在預設的值之中";break;case"false schema":n="布林模式不正確";break;case"format":n="應該要符合"+a.params.format+"格式";break;case"formatMaximum":case"formatExclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該是 "+r;break;case"formatMinimum":case"formatExclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該是 "+r;break;case"if":n='應該符合 "'+a.params.failingKeyword+'" schema';break;case"maximum":case"exclusiveMaximum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該要 "+r;break;case"maxItems":n="";var i=a.params.limit;n+="不應該多於 "+i+" 個";break;case"maxLength":n="";var i=a.params.limit;n+="不應該多於 "+i+" 個字元";break;case"maxProperties":n="";var i=a.params.limit;n+="不應該多於 "+i+" 個屬性";break;case"minimum":case"exclusiveMinimum":n="";var r=a.params.comparison+" "+a.params.limit;n+="應該要 "+r;break;case"minItems":n="";var i=a.params.limit;n+="不應該少於 "+i+" 個";break;case"minLength":n="";var i=a.params.limit;n+="不應該少於 "+i+" 個字元";break;case"minProperties":n="";var i=a.params.limit;n+="不應該少於 "+i+" 個屬性";break;case"multipleOf":n="應該是 "+a.params.multipleOf+" 的整數倍";break;case"not":n='不應該符合 "not" schema';break;case"oneOf":n='只能符合一個 "oneOf" 中的 schema';break;case"pattern":n='應該符合模式 "'+a.params.pattern+'"';break;case"patternRequired":n="應該有屬性對應模式 "+a.params.missingPattern;break;case"propertyNames":n="属性名 無效";break;case"required":n="應該有必須屬性 "+a.params.missingProperty;break;case"type":n="應該是 "+a.params.type+" 類型";break;case"unevaluatedItems":n="";var i=a.params.len;n+=" 的元素不可以超過 "+i+" 個";break;case"unevaluatedProperties":n="不應該有未驗證的屬性";break;case"uniqueItems":n="不應該有重複項目 (第 "+a.params.j+" 項和第 "+a.params.i+" 項是重複的)";break;default:n='應該通過 "'+a.keyword+' 關鍵詞檢驗"'}a.message=n}}),_c}var Pc,Uy;function Yq(){return Uy||(Uy=1,Pc={en:Oq(),ar:_q(),ca:Pq(),cs:Iq(),de:Tq(),es:jq(),fi:Rq(),fr:Nq(),hu:Fq(),id:Dq(),it:Mq(),ja:Lq(),ko:qq(),nb:zq(),nl:$q(),pl:Uq(),"pt-BR":Bq(),ru:Vq(),sk:Hq(),sv:Kq(),th:Wq(),zh:Gq(),"zh-TW":Jq()}),Pc}var Xq=Yq();const _a=Wr(Xq),Oo={flex:1,paddingLeft:6,paddingRight:6};function Zq(e){const{disabled:t,hasCopy:r,hasMoveDown:i,hasMoveUp:a,hasRemove:n,fieldPathId:s,onCopyItem:o,onRemoveItem:l,onMoveDownItem:u,onMoveUpItem:c,readonly:f,registry:m,uiSchema:d}=e,{CopyButton:p,MoveDownButton:b,MoveUpButton:k,RemoveButton:g}=m.templates.ButtonTemplates;return N.jsxs("div",{className:"d-flex flex-row",children:[(a||i)&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(k,{id:ir(s,"moveUp"),className:"rjsf-array-item-move-up",style:Oo,disabled:t||f||!a,onClick:c,uiSchema:d,registry:m})}),(a||i)&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(b,{id:ir(s,"moveDown"),className:"rjsf-array-item-move-down",style:Oo,disabled:t||f||!i,onClick:u,uiSchema:d,registry:m})}),r&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(p,{id:ir(s,"copy"),className:"rjsf-array-item-copy",style:Oo,disabled:t||f,onClick:o,uiSchema:d,registry:m})}),n&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(g,{id:ir(s,"remove"),className:"rjsf-array-item-remove",style:Oo,disabled:t||f,onClick:l,uiSchema:d,registry:m})})]})}function Qq(e){const{children:t,buttonsProps:r,hasToolbar:i,registry:a,uiSchema:n}=e,s=me(n),o=ye("ArrayFieldItemButtonsTemplate",a,s);return N.jsx("div",{children:N.jsxs("div",{className:"row mb-2 d-flex align-items-center",children:[N.jsx("div",{className:i?"col-9 col-lg-9":"col-12",children:t}),i&&N.jsx("div",{className:"col-3 col-lg-3 py-4",children:N.jsx(o,{...r})})]})})}function ez(e){const{canAdd:t,disabled:r,fieldPathId:i,items:a,optionalDataControl:n,onAddClick:s,readonly:o,registry:l,required:u,schema:c,title:f,uiSchema:m}=e,d=me(m),p=ye("ArrayFieldTitleTemplate",l,d),b=ye("ArrayFieldDescriptionTemplate",l,d),{AddButton:k}=l.templates.ButtonTemplates,g=!o&&!r;return N.jsx("div",{children:N.jsx("div",{className:"row p-0 m-0",children:N.jsxs("div",{className:"col p-0 m-0",children:[N.jsx(p,{fieldPathId:i,title:d.title||f,required:u,schema:c,uiSchema:m,registry:l,optionalDataControl:g?n:void 0}),N.jsx(b,{fieldPathId:i,description:d.description||c.description,schema:c,uiSchema:m,registry:l}),g?void 0:n,N.jsxs("div",{className:"container-fluid p-0 m-0",children:[a,t&&N.jsxs("div",{className:"row mt-2",children:[N.jsx("div",{className:"col-9"}),N.jsx("div",{className:"col-3 py-4",children:N.jsx(k,{id:ir(i,"add"),className:"rjsf-array-item-add",onClick:s,disabled:r||o,uiSchema:m,registry:l})})]})]})]})})})}const bs={width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,focusable:!1},tz=()=>N.jsx("svg",{...bs,children:N.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),rz=()=>N.jsx("svg",{...bs,children:N.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),nz=()=>N.jsxs("svg",{...bs,children:[N.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),N.jsx("path",{d:"M10.5 2.5h-7a1 1 0 0 0-1 1v7"})]}),T1=()=>N.jsx("svg",{...bs,children:N.jsx("path",{d:"M3.5 8h9"})}),iz=()=>N.jsx("svg",{...bs,children:N.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function ma({iconType:e,icon:t,className:r,uiSchema:i,registry:a,variant:n="light",...s}){return N.jsx("button",{type:"button",className:`btn btn-${n} btn-sm ${r||""}`.trim(),...s,children:t})}function az(e){const{translateString:t}=e.registry;return N.jsx(ma,{title:t(_e.CopyButton),...e,icon:N.jsx(nz,{})})}function sz(e){const{translateString:t}=e.registry;return N.jsx(ma,{title:t(_e.MoveUpButton),...e,icon:N.jsx(tz,{})})}function oz(e){const{translateString:t}=e.registry;return N.jsx(ma,{title:t(_e.MoveDownButton),...e,icon:N.jsx(rz,{})})}function lz(e){const{translateString:t}=e.registry;return N.jsx(ma,{title:t(_e.RemoveButton),...e,variant:"danger",icon:N.jsx(T1,{})})}function uz(e){const{translateString:t}=e.registry;return N.jsx(ma,{title:t(_e.ClearButton),...e,icon:N.jsx(T1,{})})}function cz({className:e,...t}){const{translateString:r}=t.registry;return N.jsx(ma,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(_e.AddItemButton),icon:N.jsx(iz,{})})}function fz({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=Kk(e);return r?null:N.jsx("div",{children:N.jsx("button",{type:"submit",...i,className:`btn btn-primary ${i.className||""}`.trim(),children:t})})}const dz={SubmitButton:fz,AddButton:cz,CopyButton:az,MoveDownButton:oz,MoveUpButton:sz,RemoveButton:lz,ClearButton:uz};function mz({id:e,description:t}){return t?N.jsx("div",{children:N.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?N.jsx(Ir,{children:t}):t})}):null}function pz({errors:e=[],fieldPathId:t}){return e.length===0?null:N.jsx("ul",{className:"list-group",id:Cd(t),children:e.filter(Boolean).map((r,i)=>N.jsx("li",{className:"list-group-item border-0 m-0 p-0",children:N.jsx("small",{className:"m-0 text-danger",children:typeof r=="string"?N.jsx(Ir,{children:r}):r})},`${r}-${i}`))})}function hz({fieldPathId:e,help:t,hasErrors:r}){return t?N.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:Ad(e),children:t}):null}function gz(e){var g,v;const{id:t,children:r,displayLabel:i,rawErrors:a=[],errors:n,help:s,rawDescription:o,hidden:l,label:u,required:c,schema:f,uiSchema:m,registry:d}=e,p=me(m),b=ye("WrapIfAdditionalTemplate",d,p);if(l)return N.jsx("div",{className:"hidden",children:r});const k=a.length>0;return N.jsxs(N.Fragment,{children:[((g=f==null?void 0:f.markdown)==null?void 0:g.before)&&N.jsx("div",{className:"fcode-form-markdown",children:N.jsx(Kc,{children:f.markdown.before})}),N.jsx(b,{...e,children:N.jsxs("div",{className:"form-group",children:[i&&N.jsxs("label",{className:`form-label${k?" text-danger":""}`,htmlFor:t,children:[N.jsx(Ir,{components:{p:"span"},children:u}),c?"*":null]}),r,i&&o&&N.jsx("small",{className:`form-text ${k?"text-danger":"text-muted"}`,children:N.jsx(Ir,{children:o})}),n,s]})}),((v=f==null?void 0:f.markdown)==null?void 0:v.after)&&N.jsx("div",{className:"fcode-form-markdown",children:N.jsx(Kc,{children:f.markdown.after})})]})}function yz(e){const{description:t,disabled:r,formData:i,fieldPathId:a,onAddProperty:n,optionalDataControl:s,properties:o,readonly:l,registry:u,required:c,schema:f,title:m,uiSchema:d}=e,p=me(d),b=ye("TitleFieldTemplate",u,p),k=ye("DescriptionFieldTemplate",u,p),{AddButton:g}=u.templates.ButtonTemplates;if((f.oneOf||f.anyOf)&&!f.properties&&o.length===0)return null;const w=!l&&!r;return N.jsxs(N.Fragment,{children:[m&&N.jsx(b,{id:_l(a),title:m,required:c,schema:f,uiSchema:d,registry:u,optionalDataControl:w?s:void 0}),t&&N.jsx(k,{id:$n(a),description:t,schema:f,uiSchema:d,registry:u}),w?void 0:s,N.jsxs("div",{className:"container-fluid p-0",children:[o.map(C=>N.jsx("div",{className:`row mb-2${C.hidden?" d-none":""}`,children:N.jsx("div",{className:"col-12",children:C.content})},C.name)),Cb(f,d,i)&&N.jsx("div",{className:"row",children:N.jsx("div",{className:"col-3 py-4",children:N.jsx(g,{id:ir(a,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||l,uiSchema:d,registry:u})})})]})]})}function vz({id:e,title:t,uiSchema:r,optionalDataControl:i}){const a=me(r);return N.jsxs("div",{id:e,className:"my-1",children:[N.jsx("h5",{children:N.jsx(Ir,{children:a.title||t})}),N.jsx("hr",{className:"border-0",style:{height:"1px"}}),i]})}function bz(e){const{id:t,classNames:r,style:i,disabled:a,label:n,onKeyRenameBlur:s,onRemoveProperty:o,readonly:l,required:u,schema:c,hideError:f,rawErrors:m,children:d,uiSchema:p,registry:b}=e,{templates:k,translateString:g}=b,{RemoveButton:v}=k.ButtonTemplates,w=Sn in c,C=[r];!f&&m&&m.length>0&&C.push("has-error has-danger");const h=C.filter(Boolean).join(" ").trim();if(!w)return N.jsx("div",{className:h,style:i,children:d});const y=`${t}-key`;return N.jsx("div",{className:h,style:i,children:N.jsxs("div",{className:"row",children:[N.jsx("div",{className:"col",children:N.jsxs("div",{className:"form-group",children:[N.jsx("label",{className:"form-label",htmlFor:y,children:g(_e.KeyLabel,[n])}),N.jsx("input",{className:"form-control",type:"text",id:y,name:y,required:u,disabled:a||l,defaultValue:n,onBlur:l?void 0:s})]})}),N.jsx("div",{className:"col",children:d}),N.jsx("div",{className:"col-auto py-4",children:N.jsx(v,{disabled:a||l,onClick:o,uiSchema:p,registry:b})})]})})}const kz=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:Zq,ArrayFieldItemTemplate:Qq,ArrayFieldTemplate:ez,ButtonTemplates:dz,DescriptionFieldTemplate:mz,FieldErrorTemplate:pz,FieldHelpTemplate:hz,FieldTemplate:gz,ObjectFieldTemplate:yz,TitleFieldTemplate:vz,WrapIfAdditionalTemplate:bz},Symbol.toStringTag,{value:"Module"}));function wz({schema:e,uiSchema:t,options:r,id:i,value:a,disabled:n,readonly:s,label:o,hideLabel:l,autofocus:u=!1,onBlur:c,onFocus:f,onChange:m,registry:d}){const p=ye("DescriptionFieldTemplate",d,r),b=$a(e),k=V.useCallback(y=>m(y.target.checked),[m]),g=V.useCallback(y=>c(i,y.target.checked),[c,i]),v=V.useCallback(y=>f(i,y.target.checked),[f,i]),h=me(t).widget==="checkbox"?void 0:r.description??e.description;return N.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`.trim(),children:[!l&&h&&N.jsx(p,{id:$n(i),description:h,schema:e,uiSchema:t,registry:d}),N.jsxs("div",{className:"form-check",children:[N.jsx("input",{type:"checkbox",className:"form-check-input",id:i,name:i,checked:typeof a>"u"?!1:a,required:b,disabled:n||s,autoFocus:u,onChange:k,onBlur:g,onFocus:v,"aria-describedby":Rr(i)}),!l&&!!o&&N.jsx("label",{className:"form-check-label",htmlFor:i,children:N.jsx(Ir,{components:{p:"span"},children:o})})]})]})}function xz({id:e,disabled:t,options:r,value:i,autofocus:a=!1,readonly:n,required:s,onChange:o,onBlur:l,onFocus:u}){const{inline:c=!1,enumOptions:f,enumDisabled:m,emptyValue:d}=r,p=ps(r),b=Array.isArray(i)?i:[i],k=V.useCallback(({target:v})=>l(e,_r(v==null?void 0:v.value,f,p,d)),[l,e,f,d,p]),g=V.useCallback(({target:v})=>u(e,_r(v==null?void 0:v.value,f,p,d)),[u,e,f,d,p]);return N.jsx("div",{id:e,children:Array.isArray(f)&&f.map((v,w)=>{const C=ua(v.value,b),h=Array.isArray(m)&&m.includes(v.value),y=Pl(e,w),S=A=>{A.target.checked?o(Vk(w,b,f)):o(Uk(w,b,f))};return N.jsxs("div",{className:`custom-control custom-checkbox bg-transparent border-0${c?" custom-control-inline":""}`,children:[N.jsx("input",{type:"checkbox",className:"custom-control-input",id:y,name:e,checked:C,value:ms(v.value,w,p),required:s,disabled:t||h||n,autoFocus:a&&w===0,onChange:S,onBlur:k,onFocus:g,"aria-describedby":Rr(e)}),N.jsx("label",{className:"custom-control-label",htmlFor:y,children:N.jsx(Ir,{components:{p:"span"},children:v.label})})]},String(v.value))})})}function Sz({options:e,value:t,required:r,disabled:i,readonly:a,autofocus:n=!1,onBlur:s,onFocus:o,onChange:l,id:u}){const{enumOptions:c,enumDisabled:f,inline:m,emptyValue:d}=e,p=ps(e),b=V.useCallback(({target:g})=>s(u,_r(g==null?void 0:g.value,c,p,d)),[s,c,d,u,p]),k=V.useCallback(({target:g})=>o(u,_r(g==null?void 0:g.value,c,p,d)),[o,c,d,u,p]);return N.jsx("div",{id:u,role:"radiogroup",children:Array.isArray(c)&&c.map((g,v)=>{const w=ua(g.value,t),C=Array.isArray(f)&&f.includes(g.value),h=Pl(u,v);return N.jsxs("div",{className:`form-check${m?" form-check-inline":""}`,children:[N.jsx("input",{type:"radio",className:"form-check-input",id:h,name:u,checked:w,value:ms(g.value,v,p),required:r,disabled:i||C||a,autoFocus:n&&v===0,onChange:()=>l(g.value),onBlur:b,onFocus:k,"aria-describedby":Rr(u)}),N.jsx("label",{className:"form-check-label",htmlFor:h,children:N.jsx(Ir,{components:{p:"span"},children:g.label})})]},String(g.value))})})}const Cz=5;function Ez({id:e,options:t,placeholder:r,value:i,required:a,disabled:n,readonly:s,autofocus:o=!1,onChange:l,onBlur:u,onFocus:c}){const f=V.useCallback(({target:{value:p}})=>l(p===""?t.emptyValue:p),[l,t.emptyValue]),m=V.useCallback(({target:p})=>u(e,p==null?void 0:p.value),[u,e]),d=V.useCallback(({target:p})=>c(e,p==null?void 0:p.value),[c,e]);return N.jsx("textarea",{id:e,name:e,className:"form-control",value:i??"",placeholder:r,required:a,disabled:n,readOnly:s,autoFocus:o,rows:t.rows||Cz,onChange:f,onBlur:m,onFocus:d,"aria-describedby":Rr(e)})}const Az=Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:wz,CheckboxesWidget:xz,RadioWidget:Sz,TextareaWidget:Ez},Symbol.toStringTag,{value:"Module"})),By={templates:kz,widgets:Az},Oz=e=>e==="{}"?`{
|
|
119
132
|
|
|
120
|
-
}`:e,
|
|
121
|
-
`).length,value:
|
|
122
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
133
|
+
}`:e,_z=e=>{const{onChange:t,onBlur:r,onFocus:i,fieldPathId:a,schema:{title:n,description:s},formData:o,readonly:l,disabled:u}=e,c=V.useRef(null),[f,m]=V.useState(Oz(JSON.stringify(o||{},null,2))),d=V.useCallback(v=>{m(v.target.value)},[t]),p=V.useCallback(function(v){c.current&&v.key=="Tab"&&v.preventDefault()},[]),b=V.useCallback(()=>{try{const v=JSON.parse(f);t(v,a.path),r(a.$id,v)}catch{t(null,a.path,{__errors:["Invalid JSON"]}),r(a.$id,null)}},[f,r,t,a]),k=V.useCallback(v=>{i(a.$id,v.target.value)},[i,a]),g=f||JSON.stringify(o,null,2)||"{}";return N.jsxs("div",{className:"form-group",children:[n&&N.jsx("label",{className:"form-label",htmlFor:a.$id,children:n}),N.jsxs("div",{className:"wrapper",children:[N.jsx("textarea",{id:a.$id,ref:c,rows:g.split(`
|
|
134
|
+
`).length,value:g,className:wn(["form-control","textarea"]),onChange:d,onKeyDown:p,onFocus:k,onBlur:b,readOnly:l,disabled:u}),N.jsx("div",{className:"shadow",children:f})]}),N.jsx("small",{className:"text-muted form-text",children:N.jsx(Ir,{children:s})})]})},Pz=e=>{const{fieldPathId:t,onChange:r,schema:{title:i,description:a},disabled:n}=e;return N.jsxs("div",{className:"form-group",children:[N.jsx("div",{className:"wrapper",children:N.jsx("button",{id:t.$id,type:"submit",className:"btn btn-primary",onClick:()=>{r(!0,t.path)},disabled:n,children:i})}),N.jsx("small",{className:"text-muted form-text",children:N.jsx(Ir,{children:a})})]})};function Vy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function Iz(e){if(Array.isArray(e))return e}function Tz(e,t,r){return(t=Lz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jz(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,a,n,s,o=[],l=!0,u=!1;try{if(n=(r=r.call(e)).next,t!==0)for(;!(l=(i=n.call(r)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(c){u=!0,a=c}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function Rz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
135
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function Ky(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hy(Object(r),!0).forEach(function(i){Tz(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hy(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Nz(e,t){if(e==null)return{};var r,i,a=Fz(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)r=n[i],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Fz(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function Dz(e,t){return Iz(e)||jz(e,t)||qz(e,t)||Rz()}function Mz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lz(e){var t=Mz(e,"string");return typeof t=="symbol"?t:t+""}function qz(e,t){if(e){if(typeof e=="string")return Vy(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vy(e,t):void 0}}function zz(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function Gy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wy(Object(r),!0).forEach(function(i){zz(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wy(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function $z(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return t.reduceRight(function(a,n){return n(a)},i)}}function Fa(e){return function t(){for(var r=this,i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return a.length>=e.length?e.apply(this,a):function(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return t.apply(r,[].concat(a,o))}}}function ul(e){return{}.toString.call(e).includes("Object")}function Uz(e){return!Object.keys(e).length}function rs(e){return typeof e=="function"}function Bz(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Vz(e,t){return ul(t)||Tn("changeType"),Object.keys(t).some(function(r){return!Bz(e,r)})&&Tn("changeField"),t}function Hz(e){rs(e)||Tn("selectorType")}function Kz(e){rs(e)||ul(e)||Tn("handlerType"),ul(e)&&Object.values(e).some(function(t){return!rs(t)})&&Tn("handlersType")}function Wz(e){e||Tn("initialIsRequired"),ul(e)||Tn("initialType"),Uz(e)&&Tn("initialContent")}function Gz(e,t){throw new Error(e[t]||e.default)}var Jz={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Tn=Fa(Gz)(Jz),_o={changes:Vz,selector:Hz,handler:Kz,initial:Wz};function Yz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_o.initial(e),_o.handler(t);var r={current:e},i=Fa(Qz)(r,t),a=Fa(Zz)(r),n=Fa(_o.changes)(e),s=Fa(Xz)(r);function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return _o.selector(u),u(r.current)}function l(u){$z(i,a,n,s)(u)}return[o,l]}function Xz(e,t){return rs(t)?t(e.current):t}function Zz(e,t){return e.current=Gy(Gy({},e.current),t),t}function Qz(e,t,r){return rs(t)?t(e.current):Object.keys(r).forEach(function(i){var a;return(a=t[i])===null||a===void 0?void 0:a.call(t,e.current[i])}),r}var e$={create:Yz},t$={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function r$(e){return function t(){for(var r=this,i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];return a.length>=e.length?e.apply(this,a):function(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];return t.apply(r,[].concat(a,o))}}}function n$(e){return{}.toString.call(e).includes("Object")}function i$(e){return e||Jy("configIsRequired"),n$(e)||Jy("configType"),e.urls?(a$(),{paths:{vs:e.urls.monacoBase}}):e}function a$(){console.warn(j1.deprecation)}function s$(e,t){throw new Error(e[t]||e.default)}var j1={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
123
136
|
You are using deprecated way of configuration.
|
|
124
137
|
|
|
125
138
|
Instead of using
|
|
@@ -128,5 +141,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
128
141
|
monaco.config({ paths: { vs: '...' } })
|
|
129
142
|
|
|
130
143
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
131
|
-
`},Pv=Aq(Pq)(H0),Iq={config:Oq},Rq=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return function(i){return r.reduceRight(function(n,s){return s(n)},i)}};function W0(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],W0(e[r],t[r]))}),_v(_v({},e),t)}var Nq={type:"cancelation",msg:"operation is manually canceled"};function vf(e){var t=!1,r=new Promise(function(a,i){e.then(function(n){return t?i(Nq):a(n)}),e.catch(i)});return r.cancel=function(){return t=!0},r}var jq=["monaco"],Dq=xq.create({config:Cq,isInitialized:!1,resolve:null,reject:null,monaco:null}),K0=sq(Dq,2),uo=K0[0],_c=K0[1];function Fq(e){var t=Iq.config(e),r=t.monaco,a=aq(t,jq);_c(function(i){return{config:W0(i.config,a),monaco:r}})}function Mq(){var e=uo(function(t){var r=t.monaco,a=t.isInitialized,i=t.resolve;return{monaco:r,isInitialized:a,resolve:i}});if(!e.isInitialized){if(_c({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),vf(bf);if(window.monaco&&window.monaco.editor)return G0(window.monaco),e.resolve(window.monaco),vf(bf);Rq(Lq,zq)($q)}return vf(bf)}function Lq(e){return document.body.appendChild(e)}function qq(e){var t=document.createElement("script");return e&&(t.src=e),t}function zq(e){var t=uo(function(a){var i=a.config,n=a.reject;return{config:i,reject:n}}),r=qq("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function $q(){var e=uo(function(r){var a=r.config,i=r.resolve,n=r.reject;return{config:a,resolve:i,reject:n}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var a=r.m||r;G0(a),e.resolve(a)},function(r){e.reject(r)})}function G0(e){uo().monaco||_c({monaco:e})}function Uq(){return uo(function(e){var t=e.monaco;return t})}var bf=new Promise(function(e,t){return _c({resolve:e,reject:t})}),tc={config:Fq,init:Mq,__getMonacoInstance:Uq},Bq={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},kf=Bq,Vq={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Hq=Vq;function Wq({children:e}){return W.createElement("div",{style:Hq.container},e)}var Kq=Wq,Gq=Kq;function Jq({width:e,height:t,isEditorReady:r,loading:a,_ref:i,className:n,wrapperProps:s}){return W.createElement("section",{style:{...kf.wrapper,width:e,height:t},...s},!r&&W.createElement(Gq,null,a),W.createElement("div",{ref:i,style:{...kf.fullWidth,...!r&&kf.hide},className:n}))}var Yq=Jq,J0=W.memo(Yq);function Xq(e){W.useEffect(e,[])}var xm=Xq;function Zq(e,t,r=!0){let a=W.useRef(!0);W.useEffect(a.current||!r?()=>{a.current=!1}:e,t)}var Ir=Zq;function Ds(){}function Ti(e,t,r,a){return Qq(e,a)||ez(e,t,r,a)}function Qq(e,t){return e.editor.getModel(Y0(e,t))}function ez(e,t,r,a){return e.editor.createModel(t,r,a?Y0(e,a):void 0)}function Y0(e,t){return e.Uri.parse(t)}function tz({original:e,modified:t,language:r,originalLanguage:a,modifiedLanguage:i,originalModelPath:n,modifiedModelPath:s,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:c=!1,theme:l="light",loading:u="Loading...",options:f={},height:m="100%",width:d="100%",className:h,wrapperProps:k={},beforeMount:v=Ds,onMount:y=Ds}){let[b,w]=W.useState(!1),[E,p]=W.useState(!0),g=W.useRef(null),S=W.useRef(null),C=W.useRef(null),O=W.useRef(y),_=W.useRef(v),x=W.useRef(!1);xm(()=>{let F=tc.init();return F.then($=>(S.current=$)&&p(!1)).catch($=>($==null?void 0:$.type)!=="cancelation"&&console.error("Monaco initialization: error:",$)),()=>g.current?I():F.cancel()}),Ir(()=>{if(g.current&&S.current){let F=g.current.getOriginalEditor(),$=Ti(S.current,e||"",a||r||"text",n||"");$!==F.getModel()&&F.setModel($)}},[n],b),Ir(()=>{if(g.current&&S.current){let F=g.current.getModifiedEditor(),$=Ti(S.current,t||"",i||r||"text",s||"");$!==F.getModel()&&F.setModel($)}},[s],b),Ir(()=>{let F=g.current.getModifiedEditor();F.getOption(S.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],b),Ir(()=>{var F,$;($=(F=g.current)==null?void 0:F.getModel())==null||$.original.setValue(e||"")},[e],b),Ir(()=>{let{original:F,modified:$}=g.current.getModel();S.current.editor.setModelLanguage(F,a||r||"text"),S.current.editor.setModelLanguage($,i||r||"text")},[r,a,i],b),Ir(()=>{var F;(F=S.current)==null||F.editor.setTheme(l)},[l],b),Ir(()=>{var F;(F=g.current)==null||F.updateOptions(f)},[f],b);let A=W.useCallback(()=>{var Y;if(!S.current)return;_.current(S.current);let F=Ti(S.current,e||"",a||r||"text",n||""),$=Ti(S.current,t||"",i||r||"text",s||"");(Y=g.current)==null||Y.setModel({original:F,modified:$})},[r,t,i,e,a,n,s]),N=W.useCallback(()=>{var F;!x.current&&C.current&&(g.current=S.current.editor.createDiffEditor(C.current,{automaticLayout:!0,...f}),A(),(F=S.current)==null||F.editor.setTheme(l),w(!0),x.current=!0)},[f,l,A]);W.useEffect(()=>{b&&O.current(g.current,S.current)},[b]),W.useEffect(()=>{!E&&!b&&N()},[E,b,N]);function I(){var $,Y,Z,ie;let F=($=g.current)==null?void 0:$.getModel();o||((Y=F==null?void 0:F.original)==null||Y.dispose()),c||((Z=F==null?void 0:F.modified)==null||Z.dispose()),(ie=g.current)==null||ie.dispose()}return W.createElement(J0,{width:d,height:m,isEditorReady:b,loading:u,_ref:C,className:h,wrapperProps:k})}var rz=tz;W.memo(rz);function nz(){let[e,t]=W.useState(tc.__getMonacoInstance());return xm(()=>{let r;return e||(r=tc.init(),r.then(a=>{t(a)})),()=>r==null?void 0:r.cancel()}),e}var az=nz;function iz(e){let t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}var sz=iz,Sl=new Map;function oz({defaultValue:e,defaultLanguage:t,defaultPath:r,value:a,language:i,path:n,theme:s="light",line:o,loading:c="Loading...",options:l={},overrideServices:u={},saveViewState:f=!0,keepCurrentModel:m=!1,width:d="100%",height:h="100%",className:k,wrapperProps:v={},beforeMount:y=Ds,onMount:b=Ds,onChange:w,onValidate:E=Ds}){let[p,g]=W.useState(!1),[S,C]=W.useState(!0),O=W.useRef(null),_=W.useRef(null),x=W.useRef(null),A=W.useRef(b),N=W.useRef(y),I=W.useRef(),F=W.useRef(a),$=sz(n),Y=W.useRef(!1),Z=W.useRef(!1);xm(()=>{let D=tc.init();return D.then(U=>(O.current=U)&&C(!1)).catch(U=>(U==null?void 0:U.type)!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>_.current?P():D.cancel()}),Ir(()=>{var U,T,R,M;let D=Ti(O.current,e||a||"",t||i||"",n||r||"");D!==((U=_.current)==null?void 0:U.getModel())&&(f&&Sl.set($,(T=_.current)==null?void 0:T.saveViewState()),(R=_.current)==null||R.setModel(D),f&&((M=_.current)==null||M.restoreViewState(Sl.get(n))))},[n],p),Ir(()=>{var D;(D=_.current)==null||D.updateOptions(l)},[l],p),Ir(()=>{!_.current||a===void 0||(_.current.getOption(O.current.editor.EditorOption.readOnly)?_.current.setValue(a):a!==_.current.getValue()&&(Z.current=!0,_.current.executeEdits("",[{range:_.current.getModel().getFullModelRange(),text:a,forceMoveMarkers:!0}]),_.current.pushUndoStop(),Z.current=!1))},[a],p),Ir(()=>{var U,T;let D=(U=_.current)==null?void 0:U.getModel();D&&i&&((T=O.current)==null||T.editor.setModelLanguage(D,i))},[i],p),Ir(()=>{var D;o!==void 0&&((D=_.current)==null||D.revealLine(o))},[o],p),Ir(()=>{var D;(D=O.current)==null||D.editor.setTheme(s)},[s],p);let ie=W.useCallback(()=>{var D;if(!(!x.current||!O.current)&&!Y.current){N.current(O.current);let U=n||r,T=Ti(O.current,a||e||"",t||i||"",U||"");_.current=(D=O.current)==null?void 0:D.editor.create(x.current,{model:T,automaticLayout:!0,...l},u),f&&_.current.restoreViewState(Sl.get(U)),O.current.editor.setTheme(s),o!==void 0&&_.current.revealLine(o),g(!0),Y.current=!0}},[e,t,r,a,i,n,l,u,f,s,o]);W.useEffect(()=>{p&&A.current(_.current,O.current)},[p]),W.useEffect(()=>{!S&&!p&&ie()},[S,p,ie]),F.current=a,W.useEffect(()=>{var D,U;p&&w&&((D=I.current)==null||D.dispose(),I.current=(U=_.current)==null?void 0:U.onDidChangeModelContent(T=>{Z.current||w(_.current.getValue(),T)}))},[p,w]),W.useEffect(()=>{if(p){let D=O.current.editor.onDidChangeMarkers(U=>{var R;let T=(R=_.current.getModel())==null?void 0:R.uri;if(T&&U.find(M=>M.path===T.path)){let M=O.current.editor.getModelMarkers({resource:T});E==null||E(M)}});return()=>{D==null||D.dispose()}}return()=>{}},[p,E]);function P(){var D,U;(D=I.current)==null||D.dispose(),m?f&&Sl.set(n,_.current.saveViewState()):(U=_.current.getModel())==null||U.dispose(),_.current.dispose()}return W.createElement(J0,{width:d,height:h,isEditorReady:p,loading:c,_ref:x,className:k,wrapperProps:v})}var lz=oz,cz=W.memo(lz),uz=cz;const fz="vs-dark",dz=!0,mz=[{background:"282a36",token:""},{foreground:"6272a4",token:"comment"},{foreground:"ff79c6",token:"string"},{foreground:"bd93f9",token:"constant.numeric"},{foreground:"bd93f9",token:"constant.language"},{foreground:"bd93f9",token:"constant.character"},{foreground:"bd93f9",token:"constant.other"},{foreground:"ffb86c",token:"variable.other.readwrite.instance"},{foreground:"bd93f9",token:"constant.character.escaped"},{foreground:"bd93f9",token:"constant.character.escape"},{foreground:"bd93f9",token:"string source"},{foreground:"bd93f9",token:"string source.ruby"},{foreground:"bd93f9",token:"keyword"},{foreground:"bd93f9",token:"storage"},{foreground:"8be9fd",fontStyle:"italic",token:"storage.type"},{foreground:"50fa7b",fontStyle:"underline",token:"entity.name.class"},{foreground:"50fa7b",fontStyle:"italic underline",token:"entity.other.inherited-class"},{foreground:"50fa7b",token:"entity.name.function"},{foreground:"ffb86c",fontStyle:"italic",token:"variable.parameter"},{foreground:"bd93f9",token:"entity.name.tag"},{foreground:"50fa7b",token:"entity.other.attribute-name"},{foreground:"50fa7b",token:"support.function"},{foreground:"6be5fd",token:"support.constant"},{foreground:"66d9ef",fontStyle:" italic",token:"support.type"},{foreground:"66d9ef",fontStyle:" italic",token:"support.class"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid.deprecated"},{foreground:"cfcfc2",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"6272a4",token:"meta.diff"},{foreground:"6272a4",token:"meta.diff.header"},{foreground:"bd93f9",token:"markup.deleted"},{foreground:"50fa7b",token:"markup.inserted"},{foreground:"e6db74",token:"markup.changed"},{foreground:"bd93f9",token:"constant.numeric.line-number.find-in-files - match"},{foreground:"e6db74",token:"entity.name.filename"},{foreground:"f83333",token:"message.error"},{foreground:"eeeeee",token:"punctuation.definition.string.begin.json - meta.structure.dictionary.value.json"},{foreground:"eeeeee",token:"punctuation.definition.string.end.json - meta.structure.dictionary.value.json"},{foreground:"8be9fd",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"ff79c6",token:"meta.structure.dictionary.value.json string.quoted.double.json"},{foreground:"50fa7b",token:"meta meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta.structure.dictionary.value string"},{foreground:"50fa7b",token:"meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta.structure.dictionary.value string"},{foreground:"f8f8f2",token:"string.key.json"},{foreground:"ff79c6",token:"string.value.json"},{foreground:"b5cea8",token:"keyword.json"}],pz={"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"},hz={base:fz,inherit:dz,rules:mz,colors:pz},gz=e=>{const{fieldPathId:t,schema:{title:r,description:a},uiSchema:{"ui:options":i={}}={},formData:n,readonly:s,disabled:o,onChange:c,...l}=e,{language:u="html",height:f="20vh",width:m="100%",theme:d="dracula",...h}=i,k=az();W.useEffect(()=>{k&&k.editor.defineTheme("dracula",hz)});const v=W.useCallback(b=>{if(b!==void 0)if(u==="json")try{c(JSON.parse(b),t.path)}catch{c(null,t.path,{__errors:["Invalid JSON"]})}else c(b,t.path)},[c,t,u]),y=W.useMemo(()=>u==="json"?JSON.stringify(n,null,2):n,[n]);return j.jsxs("div",{className:"form-group",children:[r&&j.jsx("label",{className:"form-label",htmlFor:t.$id,children:r}),j.jsx("div",{className:"wrapper",children:j.jsx(uz,{id:t.$id,className:Pi(["form-control","source-code"]),theme:d,width:m,height:f,defaultLanguage:u,defaultValue:y,onChange:v,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:o||s,tabSize:2,minimap:{enabled:!1},...h},...l})}),j.jsx("small",{className:"text-muted form-text",children:j.jsx(fn,{children:a})})]})},yz=Object.freeze(Object.defineProperty({__proto__:null,button:Q2,json:Z2,sourceCode:gz},Symbol.toStringTag,{value:"Module"})),vz=cN,bz=(e,t)=>e&&e in hs?Rl({},hs[e]):t&&t in hs?Rl({},hs[t]):Rl({},hs.en),kz=(e,t)=>e.map(r=>{var n,s;const a=(n=r.property)==null?void 0:n.replace(/^\./,""),i=(s=t.properties)==null?void 0:s[a];return i!=null&&i.errorMessage&&i.errorMessage[r.name]&&(r.message=i.errorMessage[r.name]),r}),X0=({id:e,templates:t,widgets:r,fields:a,locale:i,fallbackLocale:n,validator:s,className:o,embedFormOptions:c={},rjsfTheme:l,...u})=>{const{theme:f}=c;qv(c);const m=W.useMemo(()=>bz(i,n),[i,n]),[d,h]=W.useState(u.formData);return j.jsx(vz,{id:e,idPrefix:`root_${e}`,validator:s||m,transformErrors:k=>kz(k,u.schema),className:Pi(["fcode-form",o,{[`theme-${f}`]:f}]),fields:{...yz,...l==null?void 0:l.fields,...a},templates:{...xv.templates,...l==null?void 0:l.templates,...t},widgets:{...xv.widgets,...l==null?void 0:l.widgets,...r},...u,formData:d,onChange:k=>{u.onChange&&u.onChange(k);const{schema:v,formData:y}=k;if(v!=null&&v.required&&Array.isArray(v.required))for(const b of v.required){const w=(v.properties||{})[b];w&&w.type==="boolean"&&y[b]===!1&&delete y[b]}h(y)}})},Iv={theme:"light",loadingOverlayDisabled:!1,loadingOverlayContent:"Sending information...",loadingContent:"Loading form...",locale:"en"},Cm=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,processId:a,processVersion:i,onNextStep:n=ww,onSuccess:s=kw,onError:o=Sw,defaultValues:c={},async:l=!1,disabled:u=!1,readonly:f=!1,options:m,...d})=>{const[h,k]=W.useState({processId:a,steps:[],variables:{...m&&m.variables}}),[v]=J1({hostUrl:e,headers:t,team:r,processId:h.processId,processVersion:i,locale:m==null?void 0:m.locale,async:l}),y=W.useMemo(()=>{const U=Nv();return console.log(`Building Factorial Code form with id ${U}`),U},[r,h]),b=W.useMemo(()=>{const U=c||{};return window.location.search?{...U,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:U},[c]),[w,E]=W.useState(!1),[p,g]=W.useState(b),[S,C]=W.useState({}),O=W.useCallback(U=>{C({}),E(!0),g(U.formData),v({metadata:{origin:{url:window.location.href,browser:{language:navigator.language,userAgent:navigator.userAgent}},...h.steps.length>0&&{steps:h.steps},...Object.keys(h.variables).length>0&&{variables:h.variables},...m&&m.locale&&{locale:m.locale}},...U.formData}).then(T=>{if(g(b),T.nextProcessId){const R=h.steps;R.push({processId:h.processId,data:U.formData,result:T}),k({processId:T.nextProcessId,steps:R,variables:{...h.variables,...T.variables}}),n(T.nextProcessId,T);return}s(y,T,U.formData)}).catch(T=>{T!=null&&T.formErrors?C(Cw(T==null?void 0:T.formErrors)):o(y,T,U.formData)}).finally(()=>E(!1))},[y,b,s,o,v,h]),{loading:_,formSpecs:x,error:A}=Y1({hostUrl:e,headers:t,team:r,processId:h.processId,processVersion:i,locale:m==null?void 0:m.locale}),N={...Iv,...m};qv(N),W.useEffect(()=>{A&&o(y,A,{})},[A]);const I=Pi(["fcode-form-wrapper",N.className]);if(_)return j.jsx("div",{className:Pi([I,"fcode-form-loading"]),"data-testid":"fcode-form",children:j.jsx(Qm,{active:!0,content:N.loadingContent,children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx(Wv,{})})})});if(A||!x)return j.jsx("div",{className:I,"data-testid":"fcode-form",children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx("p",{className:"fcode-form-error-message","data-testid":"fcode-form-error",children:xw(A)})})});x.schema.embedFormOptions={...Iv,...x.schema.embedFormOptions,...m,variables:{...x.schema.embedFormOptions&&x.schema.embedFormOptions.variables,...h.variables,...m&&m.variables}};const F=Jv(x),$=Object.keys(F.schema.properties||{}),Y=Object.fromEntries(Object.entries(p).filter(([U,T])=>$.includes(U))),{loadingOverlayDisabled:Z,loadingOverlayContent:ie,locale:P,fallbackLocale:D}=F.embedFormOptions;return j.jsx("div",{className:Pi(["fcode-form-wrapper",F.embedFormOptions.className]),"data-testid":"fcode-form",children:j.jsx(Qm,{active:w,content:ie,disabled:Z,children:j.jsx("div",{className:"fcode-form-outer",children:j.jsx(X0,{id:y,schema:F.schema,uiSchema:F.uiSchema,embedFormOptions:F.embedFormOptions,locale:P,fallbackLocale:D,formData:Y,onSubmit:O,noHtml5Validate:!0,disabled:u,readonly:f,showErrorList:!1,extraErrors:S,...d})})})})};Cm.displayName="FcodeForm";exports.FcodeForm=Cm;exports.FcodeJsonSchemaForm=X0;exports.buildId=Nv;exports.default=Cm;exports.processFormSpecs=Jv;
|
|
144
|
+
`},Jy=r$(s$)(j1),o$={config:i$},l$=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return function(a){return r.reduceRight(function(n,s){return s(n)},a)}};function R1(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],R1(e[r],t[r]))}),Ky(Ky({},e),t)}var u$={type:"cancelation",msg:"operation is manually canceled"};function Ic(e){var t=!1,r=new Promise(function(i,a){e.then(function(n){return t?a(u$):i(n)}),e.catch(a)});return r.cancel=function(){return t=!0},r}var c$=["monaco"],f$=e$.create({config:t$,isInitialized:!1,resolve:null,reject:null,monaco:null}),N1=Dz(f$,2),ks=N1[0],Ll=N1[1];function d$(e){var t=o$.config(e),r=t.monaco,i=Nz(t,c$);Ll(function(a){return{config:R1(a.config,i),monaco:r}})}function m$(){var e=ks(function(t){var r=t.monaco,i=t.isInitialized,a=t.resolve;return{monaco:r,isInitialized:i,resolve:a}});if(!e.isInitialized){if(Ll({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ic(Tc);if(window.monaco&&window.monaco.editor)return F1(window.monaco),e.resolve(window.monaco),Ic(Tc);l$(p$,g$)(y$)}return Ic(Tc)}function p$(e){return document.body.appendChild(e)}function h$(e){var t=document.createElement("script");return e&&(t.src=e),t}function g$(e){var t=ks(function(i){var a=i.config,n=i.reject;return{config:a,reject:n}}),r=h$("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function y$(){var e=ks(function(r){var i=r.config,a=r.resolve,n=r.reject;return{config:i,resolve:a,reject:n}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){var i=r.m||r;F1(i),e.resolve(i)},function(r){e.reject(r)})}function F1(e){ks().monaco||Ll({monaco:e})}function v$(){return ks(function(e){var t=e.monaco;return t})}var Tc=new Promise(function(e,t){return Ll({resolve:e,reject:t})}),cl={config:d$,init:m$,__getMonacoInstance:v$},b$={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},jc=b$,k$={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},w$=k$;function x$({children:e}){return V.createElement("div",{style:w$.container},e)}var S$=x$,C$=S$;function E$({width:e,height:t,isEditorReady:r,loading:i,_ref:a,className:n,wrapperProps:s}){return V.createElement("section",{style:{...jc.wrapper,width:e,height:t},...s},!r&&V.createElement(C$,null,i),V.createElement("div",{ref:a,style:{...jc.fullWidth,...!r&&jc.hide},className:n}))}var A$=E$,D1=V.memo(A$);function O$(e){V.useEffect(e,[])}var qd=O$;function _$(e,t,r=!0){let i=V.useRef(!0);V.useEffect(i.current||!r?()=>{i.current=!1}:e,t)}var nr=_$;function Ba(){}function Vi(e,t,r,i){return P$(e,i)||I$(e,t,r,i)}function P$(e,t){return e.editor.getModel(M1(e,t))}function I$(e,t,r,i){return e.editor.createModel(t,r,i?M1(e,i):void 0)}function M1(e,t){return e.Uri.parse(t)}function T$({original:e,modified:t,language:r,originalLanguage:i,modifiedLanguage:a,originalModelPath:n,modifiedModelPath:s,keepCurrentOriginalModel:o=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:c="Loading...",options:f={},height:m="100%",width:d="100%",className:p,wrapperProps:b={},beforeMount:k=Ba,onMount:g=Ba}){let[v,w]=V.useState(!1),[C,h]=V.useState(!0),y=V.useRef(null),S=V.useRef(null),A=V.useRef(null),_=V.useRef(g),x=V.useRef(k),E=V.useRef(!1);qd(()=>{let F=cl.init();return F.then(q=>(S.current=q)&&h(!1)).catch(q=>(q==null?void 0:q.type)!=="cancelation"&&console.error("Monaco initialization: error:",q)),()=>y.current?T():F.cancel()}),nr(()=>{if(y.current&&S.current){let F=y.current.getOriginalEditor(),q=Vi(S.current,e||"",i||r||"text",n||"");q!==F.getModel()&&F.setModel(q)}},[n],v),nr(()=>{if(y.current&&S.current){let F=y.current.getModifiedEditor(),q=Vi(S.current,t||"",a||r||"text",s||"");q!==F.getModel()&&F.setModel(q)}},[s],v),nr(()=>{let F=y.current.getModifiedEditor();F.getOption(S.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],v),nr(()=>{var F,q;(q=(F=y.current)==null?void 0:F.getModel())==null||q.original.setValue(e||"")},[e],v),nr(()=>{let{original:F,modified:q}=y.current.getModel();S.current.editor.setModelLanguage(F,i||r||"text"),S.current.editor.setModelLanguage(q,a||r||"text")},[r,i,a],v),nr(()=>{var F;(F=S.current)==null||F.editor.setTheme(u)},[u],v),nr(()=>{var F;(F=y.current)==null||F.updateOptions(f)},[f],v);let O=V.useCallback(()=>{var J;if(!S.current)return;x.current(S.current);let F=Vi(S.current,e||"",i||r||"text",n||""),q=Vi(S.current,t||"",a||r||"text",s||"");(J=y.current)==null||J.setModel({original:F,modified:q})},[r,t,a,e,i,n,s]),j=V.useCallback(()=>{var F;!E.current&&A.current&&(y.current=S.current.editor.createDiffEditor(A.current,{automaticLayout:!0,...f}),O(),(F=S.current)==null||F.editor.setTheme(u),w(!0),E.current=!0)},[f,u,O]);V.useEffect(()=>{v&&_.current(y.current,S.current)},[v]),V.useEffect(()=>{!C&&!v&&j()},[C,v,j]);function T(){var q,J,Y,te;let F=(q=y.current)==null?void 0:q.getModel();o||((J=F==null?void 0:F.original)==null||J.dispose()),l||((Y=F==null?void 0:F.modified)==null||Y.dispose()),(te=y.current)==null||te.dispose()}return V.createElement(D1,{width:d,height:m,isEditorReady:v,loading:c,_ref:A,className:p,wrapperProps:b})}var j$=T$;V.memo(j$);function R$(){let[e,t]=V.useState(cl.__getMonacoInstance());return qd(()=>{let r;return e||(r=cl.init(),r.then(i=>{t(i)})),()=>r==null?void 0:r.cancel()}),e}var N$=R$;function F$(e){let t=V.useRef();return V.useEffect(()=>{t.current=e},[e]),t.current}var D$=F$,Po=new Map;function M$({defaultValue:e,defaultLanguage:t,defaultPath:r,value:i,language:a,path:n,theme:s="light",line:o,loading:l="Loading...",options:u={},overrideServices:c={},saveViewState:f=!0,keepCurrentModel:m=!1,width:d="100%",height:p="100%",className:b,wrapperProps:k={},beforeMount:g=Ba,onMount:v=Ba,onChange:w,onValidate:C=Ba}){let[h,y]=V.useState(!1),[S,A]=V.useState(!0),_=V.useRef(null),x=V.useRef(null),E=V.useRef(null),O=V.useRef(v),j=V.useRef(g),T=V.useRef(),F=V.useRef(i),q=D$(n),J=V.useRef(!1),Y=V.useRef(!1);qd(()=>{let D=cl.init();return D.then(U=>(_.current=U)&&A(!1)).catch(U=>(U==null?void 0:U.type)!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>x.current?P():D.cancel()}),nr(()=>{var U,I,R,M;let D=Vi(_.current,e||i||"",t||a||"",n||r||"");D!==((U=x.current)==null?void 0:U.getModel())&&(f&&Po.set(q,(I=x.current)==null?void 0:I.saveViewState()),(R=x.current)==null||R.setModel(D),f&&((M=x.current)==null||M.restoreViewState(Po.get(n))))},[n],h),nr(()=>{var D;(D=x.current)==null||D.updateOptions(u)},[u],h),nr(()=>{!x.current||i===void 0||(x.current.getOption(_.current.editor.EditorOption.readOnly)?x.current.setValue(i):i!==x.current.getValue()&&(Y.current=!0,x.current.executeEdits("",[{range:x.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),x.current.pushUndoStop(),Y.current=!1))},[i],h),nr(()=>{var U,I;let D=(U=x.current)==null?void 0:U.getModel();D&&a&&((I=_.current)==null||I.editor.setModelLanguage(D,a))},[a],h),nr(()=>{var D;o!==void 0&&((D=x.current)==null||D.revealLine(o))},[o],h),nr(()=>{var D;(D=_.current)==null||D.editor.setTheme(s)},[s],h);let te=V.useCallback(()=>{var D;if(!(!E.current||!_.current)&&!J.current){j.current(_.current);let U=n||r,I=Vi(_.current,i||e||"",t||a||"",U||"");x.current=(D=_.current)==null?void 0:D.editor.create(E.current,{model:I,automaticLayout:!0,...u},c),f&&x.current.restoreViewState(Po.get(U)),_.current.editor.setTheme(s),o!==void 0&&x.current.revealLine(o),y(!0),J.current=!0}},[e,t,r,i,a,n,u,c,f,s,o]);V.useEffect(()=>{h&&O.current(x.current,_.current)},[h]),V.useEffect(()=>{!S&&!h&&te()},[S,h,te]),F.current=i,V.useEffect(()=>{var D,U;h&&w&&((D=T.current)==null||D.dispose(),T.current=(U=x.current)==null?void 0:U.onDidChangeModelContent(I=>{Y.current||w(x.current.getValue(),I)}))},[h,w]),V.useEffect(()=>{if(h){let D=_.current.editor.onDidChangeMarkers(U=>{var R;let I=(R=x.current.getModel())==null?void 0:R.uri;if(I&&U.find(M=>M.path===I.path)){let M=_.current.editor.getModelMarkers({resource:I});C==null||C(M)}});return()=>{D==null||D.dispose()}}return()=>{}},[h,C]);function P(){var D,U;(D=T.current)==null||D.dispose(),m?f&&Po.set(n,x.current.saveViewState()):(U=x.current.getModel())==null||U.dispose(),x.current.dispose()}return V.createElement(D1,{width:d,height:p,isEditorReady:h,loading:l,_ref:E,className:b,wrapperProps:k})}var L$=M$,q$=V.memo(L$),z$=q$;const $$="vs-dark",U$=!0,B$=[{background:"282a36",token:""},{foreground:"6272a4",token:"comment"},{foreground:"ff79c6",token:"string"},{foreground:"bd93f9",token:"constant.numeric"},{foreground:"bd93f9",token:"constant.language"},{foreground:"bd93f9",token:"constant.character"},{foreground:"bd93f9",token:"constant.other"},{foreground:"ffb86c",token:"variable.other.readwrite.instance"},{foreground:"bd93f9",token:"constant.character.escaped"},{foreground:"bd93f9",token:"constant.character.escape"},{foreground:"bd93f9",token:"string source"},{foreground:"bd93f9",token:"string source.ruby"},{foreground:"bd93f9",token:"keyword"},{foreground:"bd93f9",token:"storage"},{foreground:"8be9fd",fontStyle:"italic",token:"storage.type"},{foreground:"50fa7b",fontStyle:"underline",token:"entity.name.class"},{foreground:"50fa7b",fontStyle:"italic underline",token:"entity.other.inherited-class"},{foreground:"50fa7b",token:"entity.name.function"},{foreground:"ffb86c",fontStyle:"italic",token:"variable.parameter"},{foreground:"bd93f9",token:"entity.name.tag"},{foreground:"50fa7b",token:"entity.other.attribute-name"},{foreground:"50fa7b",token:"support.function"},{foreground:"6be5fd",token:"support.constant"},{foreground:"66d9ef",fontStyle:" italic",token:"support.type"},{foreground:"66d9ef",fontStyle:" italic",token:"support.class"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid.deprecated"},{foreground:"cfcfc2",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"6272a4",token:"meta.diff"},{foreground:"6272a4",token:"meta.diff.header"},{foreground:"bd93f9",token:"markup.deleted"},{foreground:"50fa7b",token:"markup.inserted"},{foreground:"e6db74",token:"markup.changed"},{foreground:"bd93f9",token:"constant.numeric.line-number.find-in-files - match"},{foreground:"e6db74",token:"entity.name.filename"},{foreground:"f83333",token:"message.error"},{foreground:"eeeeee",token:"punctuation.definition.string.begin.json - meta.structure.dictionary.value.json"},{foreground:"eeeeee",token:"punctuation.definition.string.end.json - meta.structure.dictionary.value.json"},{foreground:"8be9fd",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"ff79c6",token:"meta.structure.dictionary.value.json string.quoted.double.json"},{foreground:"50fa7b",token:"meta meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta.structure.dictionary.value string"},{foreground:"50fa7b",token:"meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta.structure.dictionary.value string"},{foreground:"f8f8f2",token:"string.key.json"},{foreground:"ff79c6",token:"string.value.json"},{foreground:"b5cea8",token:"keyword.json"}],V$={"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"},H$={base:$$,inherit:U$,rules:B$,colors:V$},K$=e=>{const{fieldPathId:t,schema:{title:r,description:i},uiSchema:{"ui:options":a={}}={},formData:n,readonly:s,disabled:o,onChange:l,...u}=e,{language:c="html",height:f="20vh",width:m="100%",theme:d="dracula",...p}=a,b=N$();V.useEffect(()=>{b&&b.editor.defineTheme("dracula",H$)});const k=V.useCallback(v=>{if(v!==void 0)if(c==="json")try{l(JSON.parse(v),t.path)}catch{l(null,t.path,{__errors:["Invalid JSON"]})}else l(v,t.path)},[l,t,c]),g=V.useMemo(()=>c==="json"?JSON.stringify(n,null,2):n,[n]);return N.jsxs("div",{className:"form-group",children:[r&&N.jsx("label",{className:"form-label",htmlFor:t.$id,children:r}),N.jsx("div",{className:"wrapper",children:N.jsx(z$,{id:t.$id,className:wn(["form-control","source-code"]),theme:d,width:m,height:f,defaultLanguage:c,defaultValue:g,onChange:k,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:o||s,tabSize:2,minimap:{enabled:!1},...p},...u})}),N.jsx("small",{className:"text-muted form-text",children:N.jsx(Ir,{children:i})})]})},W$=Object.freeze(Object.defineProperty({__proto__:null,button:Pz,json:_z,sourceCode:K$},Symbol.toStringTag,{value:"Module"})),G$=lL,J$=(e,t)=>e&&e in _a?$o({},_a[e]):t&&t in _a?$o({},_a[t]):$o({},_a.en),Y$=(e,t)=>e.map(r=>{var n,s;const i=(n=r.property)==null?void 0:n.replace(/^\./,""),a=(s=t.properties)==null?void 0:s[i];return a!=null&&a.errorMessage&&a.errorMessage[r.name]&&(r.message=a.errorMessage[r.name]),r}),L1=({id:e,templates:t,widgets:r,fields:i,locale:a,fallbackLocale:n,validator:s,className:o,embedFormOptions:l={},rjsfTheme:u,...c})=>{const{theme:f}=l;tv(l);const m=V.useMemo(()=>J$(a,n),[a,n]),[d,p]=V.useState(c.formData);return N.jsx(G$,{id:e,idPrefix:`root_${e}`,validator:s||m,transformErrors:b=>Y$(b,c.schema),className:wn(["fcode-form",o,{[`theme-${f}`]:f}]),fields:{...W$,...u==null?void 0:u.fields,...i},templates:{...By.templates,...u==null?void 0:u.templates,...t},widgets:{...By.widgets,...u==null?void 0:u.widgets,...r},...c,formData:d,onChange:b=>{c.onChange&&c.onChange(b);const{schema:k,formData:g}=b;if(k!=null&&k.required&&Array.isArray(k.required))for(const v of k.required){const w=(k.properties||{})[v];w&&w.type==="boolean"&&g[v]===!1&&delete g[v]}p(g)}})},Yy={theme:"light",loadingOverlayDisabled:!1,loadingOverlayContent:"Sending information...",loadingContent:"Loading form...",locale:"en"},zd=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,processId:i,processVersion:a,onNextStep:n=W0,onSuccess:s,onError:o,markdownComponents:l,defaultValues:u={},async:c=!1,disabled:f=!1,readonly:m=!1,options:d,...p})=>{const[b,k]=V.useState({processId:i,steps:[],variables:{...d&&d.variables}}),[g]=S0({hostUrl:e,headers:t,team:r,processId:b.processId,processVersion:a,locale:d==null?void 0:d.locale,async:c}),v=V.useMemo(()=>{const M=Zy();return console.log(`Building Factorial Code form with id ${M}`),M},[r,b]),w=V.useMemo(()=>{const M=u||{};return window.location.search?{...M,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:M},[u]),[C,h]=V.useState(!1),[y,S]=V.useState(w),[A,_]=V.useState({}),[x,E]=V.useState(null),O=V.useCallback(M=>{_({}),h(!0),S(M.formData),g({metadata:{origin:{url:window.location.href,browser:{language:navigator.language,userAgent:navigator.userAgent}},...b.steps.length>0&&{steps:b.steps},...Object.keys(b.variables).length>0&&{variables:b.variables},...d&&d.locale&&{locale:d.locale}},...M.formData}).then(({results:z,resolvedFiles:B})=>{if(S(w),z.nextProcessId){const H=b.steps;H.push({processId:b.processId,data:{...M.formData,...B},result:z}),k({processId:z.nextProcessId,steps:H,variables:{...b.variables,...z.variables}}),n(z.nextProcessId,z);return}if(s){s(v,z,M.formData);return}console.log(`Form ${v} has been successfully submitted.`),Io("fcode-forms-on-submit-success",{formId:v,formSubmittedData:M.formData,processExecutionResult:z}),E({kind:"success",message:z.message||G0}),z.redirect&&K0(z.redirect)}).catch(z=>{z!=null&&z.formErrors?_(Z0(z==null?void 0:z.formErrors)):o?o(v,z,M.formData):(console.log(`There has been an error submitting the form ${v}`,z),Io("fcode-forms-on-submit-error",{formId:v,error:z}),E({kind:"error",message:J0(z)}))}).finally(()=>h(!1))},[v,w,s,o,g,b]),{loading:j,formSpecs:T,error:F}=C0({hostUrl:e,headers:t,team:r,processId:b.processId,processVersion:a,locale:d==null?void 0:d.locale}),q={...Yy,...d};tv(q),V.useEffect(()=>{F&&(o?o(v,F,{}):(console.log(`There has been an error submitting the form ${v}`,F),Io("fcode-forms-on-submit-error",{formId:v,error:F})))},[F]);const J=wn(["fcode-form-wrapper",q.className]);if(j)return N.jsx("div",{className:wn([J,"fcode-form-loading"]),"data-testid":"fcode-form",children:N.jsx(mm,{active:!0,content:q.loadingContent,children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx(lv,{})})})});if(F||!T)return N.jsx("div",{className:J,"data-testid":"fcode-form",children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx("p",{className:"fcode-form-error-message","data-testid":"fcode-form-error",children:X0(F)})})});T.schema.embedFormOptions={...Yy,...T.schema.embedFormOptions,...d,variables:{...T.schema.embedFormOptions&&T.schema.embedFormOptions.variables,...b.variables,...d&&d.variables}};const Y=yb(T),te=Object.keys(Y.schema.properties||{}),P=Object.fromEntries(Object.entries(y).filter(([M,z])=>te.includes(M)));if(x)return N.jsx("div",{className:wn(["fcode-form-wrapper",Y.embedFormOptions.className]),"data-testid":"fcode-form",children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx("div",{className:wn(["fcode-form-markdown",x.kind==="success"?"fcode-form-success-message":"fcode-form-error-message"]),"data-testid":`fcode-form-${x.kind}-message`,children:N.jsx(Kc,{components:l,children:x.message})})})});const{loadingOverlayDisabled:D,loadingOverlayContent:U,locale:I,fallbackLocale:R}=Y.embedFormOptions;return N.jsx("div",{className:wn(["fcode-form-wrapper",Y.embedFormOptions.className]),"data-testid":"fcode-form",children:N.jsx(mm,{active:C,content:U,disabled:D,children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx(L1,{id:v,schema:Y.schema,uiSchema:Y.uiSchema,embedFormOptions:Y.embedFormOptions,locale:I,fallbackLocale:R,formData:P,onSubmit:O,noHtml5Validate:!0,disabled:f,readonly:m,showErrorList:!1,extraErrors:A,...p})})})})};zd.displayName="FcodeForm";exports.FcodeForm=zd;exports.FcodeJsonSchemaForm=L1;exports.buildId=Zy;exports.default=zd;exports.processFormSpecs=yb;
|
|
132
145
|
//# sourceMappingURL=fcode-form.cjs.js.map
|