@factorialco/fcode-react-forms 3.2.0 → 3.3.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.
@@ -1,62 +1,62 @@
1
- (function(Xe,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],N):(Xe=typeof globalThis<"u"?globalThis:Xe||self,N(Xe.FcodeForm={},Xe.jsxRuntime,Xe.React,Xe.ReactDOM))})(this,(function(Xe,N,V,Ss){"use strict";var DR=Object.defineProperty;var MR=(Xe,N,V)=>N in Xe?DR(Xe,N,{enumerable:!0,configurable:!0,writable:!0,value:V}):Xe[N]=V;var Jt=(Xe,N,V)=>MR(Xe,typeof N!="symbol"?N+"":N,V);function U1(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 Zr=U1(V),Vd=(e,t,r)=>`${e}/api/${t}/forms/${r}`,Hd=()=>Math.random().toString(36).substring(2,10),V1=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),H1="Fcode-Version-Tag",K1="Fcode-Locale",Kd="Fcode-Resolved-Files",Wd=e=>e?{[H1]:e}:{},Gd=e=>e?{[K1]:e}:{},W1=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n})=>{const s={...t,...Wd(a),...Gd(n)},o=await fetch(Vd(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},G1=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,J1=e=>{const t=G1.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})}},Y1=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=J1(a);n&&(r.push({key:i,file:new File([n.blob],n.name,{type:n.mime})}),delete t[i])}return{sanitized:t,files:r}},X1=e=>{var r,i;const t=(i=(r=e.headers)==null?void 0:r.get)==null?void 0:i.call(r,Kd);if(t)try{const a=JSON.parse(t);if(a&&typeof a=="object"&&!Array.isArray(a))return a}catch(a){console.error(`Unexpected ${Kd} header`,a)}},Z1=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,async:n,locale:s,formData:o})=>{const{sanitized:l,files:u}=Y1(o),c=Vd(e,r,i),f={"Fcode-Async":n?"true":"false"},p=Wd(a),d=Gd(s);let m;if(u.length>0){const v=new globalThis.FormData;v.append("parameters",JSON.stringify(l));for(const{key:b,file:w}of u)v.append(b,w,w.name);const g={...t,...f,...p,...d};delete g["Content-Type"],delete g["content-type"],m=await fetch(c,{headers:g,method:"POST",body:v})}else m=await fetch(c,{headers:{...t,"Content-Type":"application/json",...f,...p,...d},method:"POST",body:JSON.stringify(o)});let k={};try{const v=await m.text();v.length&&(k=JSON.parse(v))}catch(v){throw console.error("Unexpected error parsing response",v),v}if(m.ok)return{results:k,resolvedFiles:X1(m)};throw k},Q1=({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,p]=V.useState(void 0),[d,m]=V.useState(void 0),k=V.useCallback(()=>{l(!1),c(void 0),m(void 0),p(void 0)},[]);return[V.useCallback(async g=>{try{p(g),l(!0);const b=await Z1({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:s,formData:g});return l(!1),c(b.results),b}catch(b){throw m(b),l(!1),b}},[e,t,r,i,a,n,s]),{loading:o,results:u,error:d,formData:f,reset:k}]},e0=({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(),p=JSON.stringify(t??null),d=V.useMemo(()=>t,[p]);return V.useEffect(()=>{let m=!1;return o(!0),f(void 0),W1({hostUrl:e,headers:d,team:r,processId:i,processVersion:a,locale:n}).then(k=>{m||u(k)}).catch(k=>{m||f(k)}).finally(()=>{m||o(!1)}),()=>{m=!0}},[e,d,r,i,a,n]),{loading:s,formSpecs:l,error:c}},t0=e=>V1(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),r0=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},n0=e=>{if(r0(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},i0=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function a0({stylesheets:e}){V.useEffect(()=>{const t=e.map(r=>t0(r)?n0(r):i0(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function Jd(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]);a0({stylesheets:n})}function Cs(){return Cs=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},Cs.apply(null,arguments)}function Yd(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 Rl(e,t){return Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Rl(e,t)}function Xd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rl(e,t)}function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Es={exports:{}},As={exports:{}},Qe={};/** @license React v16.13.1
1
+ (function(Ge,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],N):(Ge=typeof globalThis<"u"?globalThis:Ge||self,N(Ge.FcodeForm={},Ge.jsxRuntime,Ge.React,Ge.ReactDOM))})(this,(function(Ge,N,V,Ss){"use strict";var MR=Object.defineProperty;var jR=(Ge,N,V)=>N in Ge?MR(Ge,N,{enumerable:!0,configurable:!0,writable:!0,value:V}):Ge[N]=V;var Jt=(Ge,N,V)=>jR(Ge,typeof N!="symbol"?N+"":N,V);function V1(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 Zr=V1(V),Vd=(e,t,r)=>`${e}/api/${t}/forms/${r}`,Hd=()=>Math.random().toString(36).substring(2,10),H1=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),K1="Fcode-Version-Tag",W1="Fcode-Locale",Kd="Fcode-Resolved-Files",Wd=e=>e?{[K1]:e}:{},Gd=e=>e?{[W1]:e}:{},G1=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n})=>{const s={...t,...Wd(a),...Gd(n)},o=await fetch(Vd(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},J1=/^data:([^;,]+)?(?:;name=([^;,]+))?(?:;base64)?,(.*)$/,Y1=e=>{const t=J1.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})}},X1=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=Y1(a);n&&(r.push({key:i,file:new File([n.blob],n.name,{type:n.mime})}),delete t[i])}return{sanitized:t,files:r}},Z1=e=>{var r,i;const t=(i=(r=e.headers)==null?void 0:r.get)==null?void 0:i.call(r,Kd);if(t)try{const a=JSON.parse(t);if(a&&typeof a=="object"&&!Array.isArray(a))return a}catch(a){console.error(`Unexpected ${Kd} header`,a)}},Q1=async({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,async:n,locale:s,formData:o})=>{const{sanitized:l,files:u}=X1(o),c=Vd(e,r,i),f={"Fcode-Async":n?"true":"false"},p=Wd(a),d=Gd(s);let m;if(u.length>0){const v=new globalThis.FormData;v.append("parameters",JSON.stringify(l));for(const{key:b,file:w}of u)v.append(b,w,w.name);const g={...t,...f,...p,...d};delete g["Content-Type"],delete g["content-type"],m=await fetch(c,{headers:g,method:"POST",body:v})}else m=await fetch(c,{headers:{...t,"Content-Type":"application/json",...f,...p,...d},method:"POST",body:JSON.stringify(o)});let k={};try{const v=await m.text();v.length&&(k=JSON.parse(v))}catch(v){throw console.error("Unexpected error parsing response",v),v}if(m.ok)return{results:k,resolvedFiles:Z1(m)};throw k},e0=({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,p]=V.useState(void 0),[d,m]=V.useState(void 0),k=V.useCallback(()=>{l(!1),c(void 0),m(void 0),p(void 0)},[]);return[V.useCallback(async g=>{try{p(g),l(!0);const b=await Q1({hostUrl:e,headers:t,team:r,processId:i,processVersion:a,locale:n,async:s,formData:g});return l(!1),c(b.results),b}catch(b){throw m(b),l(!1),b}},[e,t,r,i,a,n,s]),{loading:o,results:u,error:d,formData:f,reset:k}]},t0=({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(),p=JSON.stringify(t??null),d=V.useMemo(()=>t,[p]);return V.useEffect(()=>{let m=!1;return o(!0),f(void 0),G1({hostUrl:e,headers:d,team:r,processId:i,processVersion:a,locale:n}).then(k=>{m||u(k)}).catch(k=>{m||f(k)}).finally(()=>{m||o(!1)}),()=>{m=!0}},[e,d,r,i,a,n]),{loading:s,formSpecs:l,error:c}},r0=e=>H1(e)||/^\.{0,2}\//.test(e)&&!/[\s{]/.test(e),n0=e=>{const t=new URL(e,window.location.href).href;return Array.from(document.querySelectorAll('link[rel="stylesheet"]')).some(r=>r.href===t)},i0=e=>{if(n0(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},a0=e=>{const t=document.createElement("style");return t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t),t};function s0({stylesheets:e}){V.useEffect(()=>{const t=e.map(r=>r0(r)?i0(r):a0(r)).filter(r=>r!==void 0);return()=>{t.forEach(r=>{r.remove()})}},[])}function Jd(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]);s0({stylesheets:n})}function Cs(){return Cs=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},Cs.apply(null,arguments)}function Yd(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 Rl(e,t){return Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Rl(e,t)}function Xd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rl(e,t)}function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Es={exports:{}},As={exports:{}},Qe={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var Zd;function s0(){if(Zd)return Qe;Zd=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,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=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 m:case d:case s:return h;default:return y}}case r:return y}}}function E(h){return w(h)===u}return Qe.AsyncMode=l,Qe.ConcurrentMode=u,Qe.ContextConsumer=o,Qe.ContextProvider=s,Qe.Element=t,Qe.ForwardRef=c,Qe.Fragment=i,Qe.Lazy=m,Qe.Memo=d,Qe.Portal=r,Qe.Profiler=n,Qe.StrictMode=a,Qe.Suspense=f,Qe.isAsyncMode=function(h){return E(h)||w(h)===l},Qe.isConcurrentMode=E,Qe.isContextConsumer=function(h){return w(h)===o},Qe.isContextProvider=function(h){return w(h)===s},Qe.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},Qe.isForwardRef=function(h){return w(h)===c},Qe.isFragment=function(h){return w(h)===i},Qe.isLazy=function(h){return w(h)===m},Qe.isMemo=function(h){return w(h)===d},Qe.isPortal=function(h){return w(h)===r},Qe.isProfiler=function(h){return w(h)===n},Qe.isStrictMode=function(h){return w(h)===a},Qe.isSuspense=function(h){return w(h)===f},Qe.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===i||h===u||h===n||h===a||h===f||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===m||h.$$typeof===d||h.$$typeof===s||h.$$typeof===o||h.$$typeof===c||h.$$typeof===v||h.$$typeof===g||h.$$typeof===b||h.$$typeof===k)},Qe.typeOf=w,Qe}var et={};/** @license React v16.13.1
8
+ */var Zd;function o0(){if(Zd)return Qe;Zd=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,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=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 m:case d:case s:return h;default:return y}}case r:return y}}}function E(h){return w(h)===u}return Qe.AsyncMode=l,Qe.ConcurrentMode=u,Qe.ContextConsumer=o,Qe.ContextProvider=s,Qe.Element=t,Qe.ForwardRef=c,Qe.Fragment=i,Qe.Lazy=m,Qe.Memo=d,Qe.Portal=r,Qe.Profiler=n,Qe.StrictMode=a,Qe.Suspense=f,Qe.isAsyncMode=function(h){return E(h)||w(h)===l},Qe.isConcurrentMode=E,Qe.isContextConsumer=function(h){return w(h)===o},Qe.isContextProvider=function(h){return w(h)===s},Qe.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},Qe.isForwardRef=function(h){return w(h)===c},Qe.isFragment=function(h){return w(h)===i},Qe.isLazy=function(h){return w(h)===m},Qe.isMemo=function(h){return w(h)===d},Qe.isPortal=function(h){return w(h)===r},Qe.isProfiler=function(h){return w(h)===n},Qe.isStrictMode=function(h){return w(h)===a},Qe.isSuspense=function(h){return w(h)===f},Qe.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===i||h===u||h===n||h===a||h===f||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===m||h.$$typeof===d||h.$$typeof===s||h.$$typeof===o||h.$$typeof===c||h.$$typeof===v||h.$$typeof===g||h.$$typeof===b||h.$$typeof===k)},Qe.typeOf=w,Qe}var et={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var Qd;function o0(){return Qd||(Qd=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,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w($){return typeof $=="string"||typeof $=="function"||$===i||$===u||$===n||$===a||$===f||$===p||typeof $=="object"&&$!==null&&($.$$typeof===m||$.$$typeof===d||$.$$typeof===s||$.$$typeof===o||$.$$typeof===c||$.$$typeof===v||$.$$typeof===g||$.$$typeof===b||$.$$typeof===k)}function E($){if(typeof $=="object"&&$!==null){var W=$.$$typeof;switch(W){case t:var K=$.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 m:case d:case s:return ie;default:return W}}case r:return W}}}var h=l,y=u,C=o,x=s,_=t,S=c,A=i,O=m,F=d,T=r,j=n,q=a,J=f,Y=!1;function X($){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($)||E($)===l}function P($){return E($)===u}function M($){return E($)===o}function U($){return E($)===s}function I($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function D($){return E($)===c}function L($){return E($)===i}function B($){return E($)===m}function R($){return E($)===d}function H($){return E($)===r}function G($){return E($)===n}function Z($){return E($)===a}function z($){return E($)===f}et.AsyncMode=h,et.ConcurrentMode=y,et.ContextConsumer=C,et.ContextProvider=x,et.Element=_,et.ForwardRef=S,et.Fragment=A,et.Lazy=O,et.Memo=F,et.Portal=T,et.Profiler=j,et.StrictMode=q,et.Suspense=J,et.isAsyncMode=X,et.isConcurrentMode=P,et.isContextConsumer=M,et.isContextProvider=U,et.isElement=I,et.isForwardRef=D,et.isFragment=L,et.isLazy=B,et.isMemo=R,et.isPortal=H,et.isProfiler=G,et.isStrictMode=Z,et.isSuspense=z,et.isValidElementType=w,et.typeOf=E})()),et}var ep;function tp(){return ep||(ep=1,process.env.NODE_ENV==="production"?As.exports=s0():As.exports=o0()),As.exports}/*
15
+ */var Qd;function l0(){return Qd||(Qd=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,p=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w($){return typeof $=="string"||typeof $=="function"||$===i||$===u||$===n||$===a||$===f||$===p||typeof $=="object"&&$!==null&&($.$$typeof===m||$.$$typeof===d||$.$$typeof===s||$.$$typeof===o||$.$$typeof===c||$.$$typeof===v||$.$$typeof===g||$.$$typeof===b||$.$$typeof===k)}function E($){if(typeof $=="object"&&$!==null){var W=$.$$typeof;switch(W){case t:var K=$.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 m:case d:case s:return ie;default:return W}}case r:return W}}}var h=l,y=u,C=o,x=s,_=t,S=c,A=i,O=m,F=d,T=r,j=n,q=a,J=f,Y=!1;function X($){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($)||E($)===l}function P($){return E($)===u}function M($){return E($)===o}function B($){return E($)===s}function I($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function D($){return E($)===c}function L($){return E($)===i}function U($){return E($)===m}function R($){return E($)===d}function H($){return E($)===r}function G($){return E($)===n}function Z($){return E($)===a}function z($){return E($)===f}et.AsyncMode=h,et.ConcurrentMode=y,et.ContextConsumer=C,et.ContextProvider=x,et.Element=_,et.ForwardRef=S,et.Fragment=A,et.Lazy=O,et.Memo=F,et.Portal=T,et.Profiler=j,et.StrictMode=q,et.Suspense=J,et.isAsyncMode=X,et.isConcurrentMode=P,et.isContextConsumer=M,et.isContextProvider=B,et.isElement=I,et.isForwardRef=D,et.isFragment=L,et.isLazy=U,et.isMemo=R,et.isPortal=H,et.isProfiler=G,et.isStrictMode=Z,et.isSuspense=z,et.isValidElementType=w,et.typeOf=E})()),et}var ep;function tp(){return ep||(ep=1,process.env.NODE_ENV==="production"?As.exports=o0():As.exports=l0()),As.exports}/*
16
16
  object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
- */var Bl,rp;function l0(){if(rp)return Bl;rp=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 Bl=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 p=0;p<u.length;p++)r.call(o,u[p])&&(l[u[p]]=o[u[p]])}}return l},Bl}var Ul,np;function Vl(){if(np)return Ul;np=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ul=e,Ul}var Hl,ip;function ap(){return ip||(ip=1,Hl=Function.call.bind(Object.prototype.hasOwnProperty)),Hl}var Kl,sp;function u0(){if(sp)return Kl;sp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Vl(),r={},i=ap();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 p=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 p.name="Invariant Violation",p}f=n[c](s,c,l,o,null,t)}catch(m){f=m}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={})},Kl=a,Kl}var Wl,op;function c0(){if(op)return Wl;op=1;var e=tp(),t=l0(),r=Vl(),i=ap(),a=u0(),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 Wl=function(o,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(P){var M=P&&(u&&P[u]||P[c]);if(typeof M=="function")return M}var p="<<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:b(),arrayOf:w,element:E(),elementType:h(),instanceOf:y,node:S(),objectOf:x,oneOf:C,oneOfType:_,shape:O,exact:F};function m(P,M){return P===M?P!==0||1/P===1/M:P!==P&&M!==M}function k(P,M){this.message=P,this.data=M&&typeof M=="object"?M:{},this.stack=""}k.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var M={},U=0;function I(L,B,R,H,G,Z,z){if(H=H||p,Z=Z||R,z!==r){if(l){var $=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 $.name="Invariant Violation",$}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var W=H+":"+R;!M[W]&&U<3&&(n("You are manually calling a React.PropTypes validation function for the `"+Z+"` 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."),M[W]=!0,U++)}}return B[R]==null?L?B[R]===null?new k("The "+G+" `"+Z+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new k("The "+G+" `"+Z+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:P(B,R,H,G,Z)}var D=I.bind(null,!1);return D.isRequired=I.bind(null,!0),D}function g(P){function M(U,I,D,L,B,R){var H=U[I],G=q(H);if(G!==P){var Z=J(H);return new k("Invalid "+L+" `"+B+"` of type "+("`"+Z+"` supplied to `"+D+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(M)}function b(){return v(s)}function w(P){function M(U,I,D,L,B){if(typeof P!="function")return new k("Property `"+B+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var R=U[I];if(!Array.isArray(R)){var H=q(R);return new k("Invalid "+L+" `"+B+"` of type "+("`"+H+"` supplied to `"+D+"`, expected an array."))}for(var G=0;G<R.length;G++){var Z=P(R,G,D,L,B+"["+G+"]",r);if(Z instanceof Error)return Z}return null}return v(M)}function E(){function P(M,U,I,D,L){var B=M[U];if(!o(B)){var R=q(B);return new k("Invalid "+D+" `"+L+"` of type "+("`"+R+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return v(P)}function h(){function P(M,U,I,D,L){var B=M[U];if(!e.isValidElementType(B)){var R=q(B);return new k("Invalid "+D+" `"+L+"` of type "+("`"+R+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return v(P)}function y(P){function M(U,I,D,L,B){if(!(U[I]instanceof P)){var R=P.name||p,H=X(U[I]);return new k("Invalid "+L+" `"+B+"` of type "+("`"+H+"` supplied to `"+D+"`, expected ")+("instance of `"+R+"`."))}return null}return v(M)}function C(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 M(U,I,D,L,B){for(var R=U[I],H=0;H<P.length;H++)if(m(R,P[H]))return null;var G=JSON.stringify(P,function(z,$){var W=J($);return W==="symbol"?String($):$});return new k("Invalid "+L+" `"+B+"` of value `"+String(R)+"` "+("supplied to `"+D+"`, expected one of "+G+"."))}return v(M)}function x(P){function M(U,I,D,L,B){if(typeof P!="function")return new k("Property `"+B+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var R=U[I],H=q(R);if(H!=="object")return new k("Invalid "+L+" `"+B+"` of type "+("`"+H+"` supplied to `"+D+"`, expected an object."));for(var G in R)if(i(R,G)){var Z=P(R,G,D,L,B+"."+G,r);if(Z instanceof Error)return Z}return null}return v(M)}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 M=0;M<P.length;M++){var U=P[M];if(typeof U!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(U)+" at index "+M+"."),s}function I(D,L,B,R,H){for(var G=[],Z=0;Z<P.length;Z++){var z=P[Z],$=z(D,L,B,R,H,r);if($==null)return null;$.data&&i($.data,"expectedType")&&G.push($.data.expectedType)}var W=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new k("Invalid "+R+" `"+H+"` supplied to "+("`"+B+"`"+W+"."))}return v(I)}function S(){function P(M,U,I,D,L){return T(M[U])?null:new k("Invalid "+D+" `"+L+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return v(P)}function A(P,M,U,I,D){return new k((P||"React class")+": "+M+" type `"+U+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function O(P){function M(U,I,D,L,B){var R=U[I],H=q(R);if(H!=="object")return new k("Invalid "+L+" `"+B+"` of type `"+H+"` "+("supplied to `"+D+"`, expected `object`."));for(var G in P){var Z=P[G];if(typeof Z!="function")return A(D,L,B,G,J(Z));var z=Z(R,G,D,L,B+"."+G,r);if(z)return z}return null}return v(M)}function F(P){function M(U,I,D,L,B){var R=U[I],H=q(R);if(H!=="object")return new k("Invalid "+L+" `"+B+"` of type `"+H+"` "+("supplied to `"+D+"`, expected `object`."));var G=t({},U[I],P);for(var Z in G){var z=P[Z];if(i(P,Z)&&typeof z!="function")return A(D,L,B,Z,J(z));if(!z)return new k("Invalid "+L+" `"+B+"` key `"+Z+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(U[I],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(P),null," "));var $=z(R,Z,D,L,B+"."+Z,r);if($)return $}return null}return v(M)}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 M=f(P);if(M){var U=M.call(P),I;if(M!==P.entries){for(;!(I=U.next()).done;)if(!T(I.value))return!1}else for(;!(I=U.next()).done;){var D=I.value;if(D&&!T(D[1]))return!1}}else return!1;return!0;default:return!1}}function j(P,M){return P==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function q(P){var M=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":j(M,P)?"symbol":M}function J(P){if(typeof P>"u"||P===null)return""+P;var M=q(P);if(M==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return M}function Y(P){var M=J(P);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function X(P){return!P.constructor||!P.constructor.name?p:P.constructor.name}return d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d},Wl}var Gl,lp;function f0(){if(lp)return Gl;lp=1;var e=Vl();function t(){}function r(){}return r.resetWarningCache=t,Gl=function(){function i(s,o,l,u,c,f){if(f!==e){var p=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 p.name="Invariant Violation",p}}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},Gl}var up;function d0(){if(up)return Es.exports;if(up=1,process.env.NODE_ENV!=="production"){var e=tp(),t=!0;Es.exports=c0()(e.isElement,t)}else Es.exports=f0()();return Es.exports}var p0=d0();const Ee=jr(p0);function m0(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function h0(e,t){e.classList?e.classList.add(t):m0(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function cp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function g0(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=cp(e.className,t):e.setAttribute("class",cp(e.className&&e.className.baseVal||"",t))}const fp={disabled:!1};var y0=process.env.NODE_ENV!=="production"?Ee.oneOfType([Ee.number,Ee.shape({enter:Ee.number,exit:Ee.number,appear:Ee.number}).isRequired]):null,v0=process.env.NODE_ENV!=="production"?Ee.oneOfType([Ee.string,Ee.shape({enter:Ee.string,exit:Ee.string,active:Ee.string}),Ee.shape({enter:Ee.string,enterDone:Ee.string,enterActive:Ee.string,exit:Ee.string,exitDone:Ee.string,exitActive:Ee.string})]):null;const dp=V.createContext(null);var pp=function(t){return t.scrollTop},ha="unmounted",Vn="exited",Hn="entering",Ai="entered",Jl="exiting",Lr=(function(e){Xd(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=Vn,n.appearStatus=Hn):l=Ai:i.unmountOnExit||i.mountOnEnter?l=ha:l=Vn,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(a,n){var s=a.in;return s&&n.status===ha?{status:Vn}: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!==Hn&&s!==Ai&&(n=Hn):(s===Hn||s===Ai)&&(n=Jl)}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===Hn){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ss.findDOMNode(this);s&&pp(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Vn&&this.setState({status:ha})},r.performEnter=function(a){var n=this,s=this.props.enter,o=this.context?this.context.isMounting:a,l=this.props.nodeRef?[o]:[Ss.findDOMNode(this),o],u=l[0],c=l[1],f=this.getTimeouts(),p=o?f.appear:f.enter;if(!a&&!s||fp.disabled){this.safeSetState({status:Ai},function(){n.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Hn},function(){n.props.onEntering(u,c),n.onTransitionEnd(p,function(){n.safeSetState({status:Ai},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:Ss.findDOMNode(this);if(!n||fp.disabled){this.safeSetState({status:Vn},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Jl},function(){a.props.onExiting(o),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:Vn},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:Ss.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===ha)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=Yd(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(dp.Provider,{value:null},typeof s=="function"?s(a,o):V.cloneElement(V.Children.only(s),o))},t})(V.Component);Lr.contextType=dp,Lr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ee.shape({current:typeof Element>"u"?Ee.any:function(e,t,r,i,a,n){var s=e[t];return Ee.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,i,a,n)}}),children:Ee.oneOfType([Ee.func.isRequired,Ee.element.isRequired]).isRequired,in:Ee.bool,mountOnEnter:Ee.bool,unmountOnExit:Ee.bool,appear:Ee.bool,enter:Ee.bool,exit:Ee.bool,timeout:function(t){var r=y0;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:Ee.func,onEnter:Ee.func,onEntering:Ee.func,onEntered:Ee.func,onExit:Ee.func,onExiting:Ee.func,onExited:Ee.func}:{};function xi(){}Lr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xi,onEntering:xi,onEntered:xi,onExit:xi,onExiting:xi,onExited:xi},Lr.UNMOUNTED=ha,Lr.EXITED=Vn,Lr.ENTERING=Hn,Lr.ENTERED=Ai,Lr.EXITING=Jl;var b0=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return h0(t,i)})},Yl=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return g0(t,i)})},Xl=(function(e){Xd(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],p=f?"appear":"enter";i.addClass(c,p,"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],p=f?"appear":"enter";i.removeClasses(c,p),i.addClass(c,p,"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],p=u?f+"-active":l[o+"Active"],d=u?f+"-done":l[o+"Done"];return{baseClassName:f,activeClassName:p,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&&pp(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&&Yl(a,o),l&&Yl(a,l),u&&Yl(a,u)},r.render=function(){var a=this.props;a.classNames;var n=Yd(a,["classNames"]);return V.createElement(Lr,Cs({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(V.Component);Xl.defaultProps={classNames:""},Xl.propTypes=process.env.NODE_ENV!=="production"?Cs({},Lr.propTypes,{classNames:v0,onEnter:Ee.func,onEntering:Ee.func,onEntered:Ee.func,onExit:Ee.func,onExiting:Ee.func,onExited:Ee.func}):{};const k0=Xl,mp=({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(k0,{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})]})})})]})},w0=["first","second"],hp=()=>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"}),w0.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"})]});hp.displayName="FormSkeleton";const xs=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},S0=e=>{setTimeout(()=>{window.location.assign(e.url)},e.timeout||0)},C0=(e,t)=>{xs("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},E0="The form has been successfully submitted",gp="There has been an error submitting the form",A0=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 gp}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:gp},x0="The form couldn't be loaded",O0=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:x0},yp=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]=yp(e[t]);break}return e},_0=e=>{let t={};return e.fields&&(t={...yp(e.fields)}),e.global&&(t.__errors=[...e.global]),t};function jR(){}function LR(){}function P0(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const I0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,T0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,N0={};function vp(e,t){return(N0.jsx?T0:I0).test(e)}const F0=/[ \t\n\f\r]/g;function D0(e){return typeof e=="object"?e.type==="text"?bp(e.value):!1:bp(e)}function bp(e){return e.replace(F0,"")===""}class ga{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}ga.prototype.normal={},ga.prototype.property={},ga.prototype.space=void 0;function kp(e,t){const r={},i={};for(const a of e)Object.assign(r,a.property),Object.assign(i,a.normal);return new ga(r,i,t)}function Zl(e){return e.toLowerCase()}class Yt{constructor(t,r){this.attribute=r,this.property=t}}Yt.prototype.attribute="",Yt.prototype.booleanish=!1,Yt.prototype.boolean=!1,Yt.prototype.commaOrSpaceSeparated=!1,Yt.prototype.commaSeparated=!1,Yt.prototype.defined=!1,Yt.prototype.mustUseProperty=!1,Yt.prototype.number=!1,Yt.prototype.overloadedBoolean=!1,Yt.prototype.property="",Yt.prototype.spaceSeparated=!1,Yt.prototype.space=void 0;let M0=0;const Ce=Wn(),Ot=Wn(),Ql=Wn(),oe=Wn(),ft=Wn(),Kn=Wn(),er=Wn();function Wn(){return 2**++M0}const eu=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ce,booleanish:Ot,commaOrSpaceSeparated:er,commaSeparated:Kn,number:oe,overloadedBoolean:Ql,spaceSeparated:ft},Symbol.toStringTag,{value:"Module"})),tu=Object.keys(eu);class ru extends Yt{constructor(t,r,i,a){let n=-1;if(super(t,r),wp(this,"space",a),typeof i=="number")for(;++n<tu.length;){const s=tu[n];wp(this,tu[n],(i&eu[s])===eu[s])}}}ru.prototype.defined=!0;function wp(e,t,r){r&&(e[t]=r)}function Oi(e){const t={},r={};for(const[i,a]of Object.entries(e.properties)){const n=new ru(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(n.mustUseProperty=!0),t[i]=n,r[Zl(i)]=i,r[Zl(n.attribute)]=i}return new ga(t,r,e.space)}const Sp=Oi({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 Cp(e,t){return t in e?e[t]:t}function Ep(e,t){return Cp(e,t.toLowerCase())}const j0=Oi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kn,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:Ce,allowPaymentRequest:Ce,allowUserMedia:Ce,alpha:Ce,alt:null,as:null,async:Ce,autoCapitalize:null,autoComplete:ft,autoFocus:Ce,autoPlay:Ce,blocking:ft,capture:null,charSet:null,checked:Ce,cite:null,className:ft,closedBy:null,colorSpace:null,cols:oe,colSpan:oe,command:null,commandFor:null,content:null,contentEditable:Ot,controls:Ce,controlsList:ft,coords:oe|Kn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ce,defer:Ce,dir:null,dirName:null,disabled:Ce,download:Ql,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ce,formTarget:null,headers:ft,height:oe,hidden:Ql,high:oe,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inert:Ce,inputMode:null,integrity:null,is:null,isMap:Ce,itemId:null,itemProp:ft,itemRef:ft,itemScope:Ce,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ce,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Ce,muted:Ce,name:null,nonce:null,noModule:Ce,noValidate:Ce,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:Ce,optimum:oe,pattern:null,ping:ft,placeholder:null,playsInline:Ce,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ce,referrerPolicy:null,rel:ft,required:Ce,reversed:Ce,rows:oe,rowSpan:oe,sandbox:ft,scope:null,scoped:Ce,seamless:Ce,selected:Ce,shadowRootClonable:Ce,shadowRootCustomElementRegistry:Ce,shadowRootDelegatesFocus:Ce,shadowRootMode:null,shadowRootSerializable:Ce,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:Ce,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:Ce,declare:Ce,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Ce,noHref:Ce,noShade:Ce,noWrap:Ce,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:Ce,disablePictureInPicture:Ce,disableRemotePlayback:Ce,exportParts:Kn,part:ft,prefix:null,property:null,results:oe,security:null,unselectable:null},space:"html",transform:Ep}),L0=Oi({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:er,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:Ce,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:Kn,g2:Kn,glyphName:Kn,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:er,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:er,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:er,rev:er,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:er,requiredFeatures:er,requiredFonts:er,requiredFormats:er,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:er,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:er,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:er,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:Cp}),Ap=Oi({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()}}),xp=Oi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ep}),Op=Oi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),q0={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"},$0=/[A-Z]/g,_p=/-[a-z]/g,z0=/^data[-\w.:]+$/i;function R0(e,t){const r=Zl(t);let i=t,a=Yt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&z0.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(_p,U0);i="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!_p.test(n)){let s=n.replace($0,B0);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=ru}return new a(i,t)}function B0(e){return"-"+e.toLowerCase()}function U0(e){return e.charAt(1).toUpperCase()}const V0=kp([Sp,j0,Ap,xp,Op],"html"),nu=kp([Sp,L0,Ap,xp,Op],"svg");function H0(e){return e.join(" ").trim()}var _i={},iu,Pp;function K0(){if(Pp)return iu;Pp=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="",p="comment",d="declaration";function m(v,g){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];g=g||{};var b=1,w=1;function E(T){var j=T.match(t);j&&(b+=j.length);var q=T.lastIndexOf(l);w=~q?T.length-q:w+T.length}function h(){var T={line:b,column:w};return function(j){return j.position=new y(T),_(),j}}function y(T){this.start=T,this.end={line:b,column:w},this.source=g.source}y.prototype.content=v;function C(T){var j=new Error(g.source+":"+b+":"+w+": "+T);if(j.reason=T,j.filename=g.source,j.line=b,j.column=w,j.source=v,!g.silent)throw j}function x(T){var j=T.exec(v);if(j){var q=j[0];return E(q),v=v.slice(q.length),j}}function _(){x(r)}function S(T){var j;for(T=T||[];j=A();)j!==!1&&T.push(j);return T}function A(){var T=h();if(!(u!=v.charAt(0)||c!=v.charAt(1))){for(var j=2;f!=v.charAt(j)&&(c!=v.charAt(j)||u!=v.charAt(j+1));)++j;if(j+=2,f===v.charAt(j-1))return C("End of comment missing");var q=v.slice(2,j-2);return w+=2,E(q),v=v.slice(j),w+=2,T({type:p,comment:q})}}function O(){var T=h(),j=x(i);if(j){if(A(),!x(a))return C("property missing ':'");var q=x(n),J=T({type:d,property:k(j[0].replace(e,f)),value:q?k(q[0].replace(e,f)):f});return x(s),J}}function F(){var T=[];S(T);for(var j;j=O();)j!==!1&&(T.push(j),S(T));return T}return _(),F()}function k(v){return v?v.replace(o,f):f}return iu=m,iu}var Ip;function W0(){if(Ip)return _i;Ip=1;var e=_i&&_i.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(_i,"__esModule",{value:!0}),_i.default=r;const t=e(K0());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 _i}var ya={},Tp;function G0(){if(Tp)return ya;Tp=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,Np;function J0(){if(Np)return va;Np=1;var e=va&&va.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(W0()),r=G0();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 Y0=J0();const X0=jr(Y0),Fp=Dp("end"),au=Dp("start");function Dp(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 Z0(e){const t=au(e),r=Fp(e);if(t&&r)return{start:t,end:r}}function ba(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Mp(e.position):"start"in e||"end"in e?Mp(e):"line"in e||"column"in e?su(e):""}function su(e){return jp(e&&e.line)+":"+jp(e&&e.column)}function Mp(e){return su(e&&e.start)+"-"+su(e&&e.end)}function jp(e){return e&&typeof e=="number"?e:1}class Lt 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=ba(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}}Lt.prototype.file="",Lt.prototype.name="",Lt.prototype.reason="",Lt.prototype.message="",Lt.prototype.stack="",Lt.prototype.column=void 0,Lt.prototype.line=void 0,Lt.prototype.ancestors=void 0,Lt.prototype.cause=void 0,Lt.prototype.fatal=void 0,Lt.prototype.place=void 0,Lt.prototype.ruleId=void 0,Lt.prototype.source=void 0;const ou={}.hasOwnProperty,Q0=new Map,ew=/[A-Z]/g,tw=new Set(["table","tbody","thead","tfoot","tr"]),rw=new Set(["td","th"]),Lp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function nw(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=cw(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"?nu:V0,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=qp(a,e,void 0);return n&&typeof n!="string"?n:a.create(e,a.Fragment,{children:n||void 0},void 0)}function qp(e,t,r){if(t.type==="element")return iw(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return aw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ow(e,t,r);if(t.type==="mdxjsEsm")return sw(e,t);if(t.type==="root")return lw(e,t,r);if(t.type==="text")return uw(e,t)}function iw(e,t,r){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=nu,e.schema=a),e.ancestors.push(t);const n=zp(e,t.tagName,!1),s=dw(e,t);let o=uu(e,t);return tw.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!D0(l):!0})),$p(e,s,n,t),lu(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function aw(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)}ka(e,t.position)}function sw(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ka(e,t.position)}function ow(e,t,r){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=nu,e.schema=a),e.ancestors.push(t);const n=t.name===null?e.Fragment:zp(e,t.name,!0),s=pw(e,t),o=uu(e,t);return $p(e,s,n,t),lu(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function lw(e,t,r){const i={};return lu(i,uu(e,t)),e.create(t,e.Fragment,i,r)}function uw(e,t){return t.value}function $p(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function lu(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function cw(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=au(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"&&ou.call(t.properties,a)){const n=mw(e,a,t.properties[a]);if(n){const[s,o]=n;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&rw.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 pw(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 ka(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 ka(e,t.position);else n=i.value===null?!0:i.value;r[a]=n}return r}function uu(e,t){const r=[];let i=-1;const a=e.passKeys?new Map:Q0;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=qp(e,n,s);o!==void 0&&r.push(o)}return r}function mw(e,t,r){const i=R0(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?P0(r):H0(r)),i.property==="style"){let a=typeof r=="object"?r:hw(e,String(r));return e.stylePropertyNameCase==="css"&&(a=gw(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?q0[i.property]||i.property:i.attribute,r]}}function hw(e,t){try{return X0(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,a=new Lt("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=Lp+"#cannot-parse-style-attribute",a}}function zp(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=vp(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=vp(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return ou.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);ka(e)}function ka(e,t){const r=new Lt("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=Lp+"#cannot-handle-mdx-estrees-without-createevaluater",r}function gw(e){const t={};let r;for(r in e)ou.call(e,r)&&(t[yw(r)]=e[r]);return t}function yw(e){let t=e.replace(ew,vw);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function vw(e){return"-"+e.toLowerCase()}const cu={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 fu(e,t){const r=bw,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Rp(e,i,a)}function Rp(e,t,r){if(kw(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 Bp(e.children,t,r)}return Array.isArray(e)?Bp(e,t,r):""}function Bp(e,t,r){const i=[];let a=-1;for(;++a<e.length;)i[a]=Rp(e[a],t,r);return i.join("")}function kw(e){return!!(e&&typeof e=="object")}const Up=document.createElement("i");function du(e){const t="&"+e+";";Up.innerHTML=t;const r=Up.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function tr(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 or(e,t){return e.length>0?(tr(e,e.length,0,t),e):t}const Vp={}.hasOwnProperty;function Hp(e){const t={};let r=-1;for(;++r<e.length;)ww(t,e[r]);return t}function ww(e,t){let r;for(r in t){const a=(Vp.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let s;if(n)for(s in n){Vp.call(a,s)||(a[s]=[]);const o=n[s];Sw(a[s],Array.isArray(o)?o:o?[o]:[])}}}function Sw(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);tr(e,0,0,i)}function Kp(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 wr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Bt=pn(/[A-Za-z]/),qt=pn(/[\dA-Za-z]/),Cw=pn(/[#-'*+\--9=?A-Z^-~]/);function Os(e){return e!==null&&(e<32||e===127)}const pu=pn(/\d/),Ew=pn(/[\dA-Fa-f]/),Aw=pn(/[!-/:-@[-`{-~]/);function me(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 _s=pn(new RegExp("\\p{P}|\\p{S}","u")),Gn=pn(/\s/);function pn(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Pi(e){const t=[];let r=-1,i=0,a=0;for(;++r<e.length;){const n=e.charCodeAt(r);let s="";if(n===37&&qt(e.charCodeAt(r+1))&&qt(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 Ue(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 xw={tokenize:Ow};function Ow(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"),Ue(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 me(o)?(e.consume(o),e.exit("chunkText"),n):(e.consume(o),s)}}const _w={tokenize:Pw},Wp={tokenize:Iw};function Pw(e){const t=this,r=[];let i=0,a,n,s;return o;function o(w){if(i<r.length){const E=r[i];return t.containerState=E[1],e.attempt(E[0].continuation,l,u)(w)}return u(w)}function l(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&b();const E=t.events.length;let h=E,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 C=E;for(;C<t.events.length;)t.events[C][1].end={...y},C++;return tr(t.events,h+1,0,t.events.slice(E)),t.events.length=C,u(w)}return o(w)}function u(w){if(i===r.length){if(!a)return p(w);if(a.currentConstruct&&a.currentConstruct.concrete)return m(w);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wp,c,f)(w)}function c(w){return a&&b(),g(i),p(w)}function f(w){return t.parser.lazy[t.now().line]=i!==r.length,s=t.now().offset,m(w)}function p(w){return t.containerState={},e.attempt(Wp,d,m)(w)}function d(w){return i++,r.push([t.currentConstruct,t.containerState]),p(w)}function m(w){if(w===null){a&&b(),g(0),e.consume(w);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:n}),k(w)}function k(w){if(w===null){v(e.exit("chunkFlow"),!0),g(0),e.consume(w);return}return me(w)?(e.consume(w),v(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(w),k)}function v(w,E){const h=t.sliceStream(w);if(E&&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 C=t.events.length;let x=C,_,S;for(;x--;)if(t.events[x][0]==="exit"&&t.events[x][1].type==="chunkFlow"){if(_){S=t.events[x][1].end;break}_=!0}for(g(i),y=C;y<t.events.length;)t.events[y][1].end={...S},y++;tr(t.events,x+1,0,t.events.slice(C)),t.events.length=y}}function g(w){let E=r.length;for(;E-- >w;){const h=r[E];t.containerState=h[1],h[0].exit.call(t,e)}r.length=w}function b(){a.write([null]),n=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Iw(e,t,r){return Ue(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ii(e){if(e===null||dt(e)||Gn(e))return 1;if(_s(e))return 2}function Ps(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 mu={name:"attention",resolveAll:Tw,tokenize:Nw};function Tw(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},p={...e[r][1].start};Gp(f,-l),Gp(p,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:p},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=or(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=or(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",n,t]]),u=or(u,Ps(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),u=or(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=or(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,tr(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 Nw(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Ii(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=Ii(l),f=!c||c===2&&a||r.includes(l),p=!a||a===2&&c||r.includes(i);return u._open=!!(n===42?f:f&&(a||!p)),u._close=!!(n===42?p:p&&(c||!f)),t(l)}}function Gp(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Fw={name:"autolink",tokenize:Dw};function Dw(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||qt(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||qt(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||Os(d)?r(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):Cw(d)?(e.consume(d),u):r(d)}function c(d){return qt(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):p(d)}function p(d){if((d===45||qt(d))&&i++<63){const m=d===45?p:f;return e.consume(d),m}return r(d)}}const wa={partial:!0,tokenize:Mw};function Mw(e,t,r){return i;function i(n){return Me(n)?Ue(e,a,"linePrefix")(n):a(n)}function a(n){return n===null||me(n)?t(n):r(n)}}const Jp={continuation:{tokenize:Lw},exit:qw,name:"blockQuote",tokenize:jw};function jw(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 Lw(e,t,r){const i=this;return a;function a(s){return Me(s)?Ue(e,n,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):n(s)}function n(s){return e.attempt(Jp,t,r)(s)}}function qw(e){e.exit("blockQuote")}const Yp={name:"characterEscape",tokenize:$w};function $w(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 Aw(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const Xp={name:"characterReference",tokenize:zw};function zw(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=qt,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=Ew,c):(e.enter("characterReferenceValue"),n=7,s=pu,c(f))}function c(f){if(f===59&&a){const p=e.exit("characterReferenceValue");return s===qt&&!du(i.sliceSerialize(p))?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 Zp={partial:!0,tokenize:Bw},Qp={concrete:!0,name:"codeFenced",tokenize:Rw};function Rw(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 C=i.events[i.events.length-1];return n=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[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)?Ue(e,f,"whitespace")(y):f(y))}function f(y){return y===null||me(y)?(e.exit("codeFencedFence"),i.interrupt?t(y):e.check(Zp,k,E)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||me(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(y)):Me(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ue(e,d,"whitespace")(y)):y===96&&y===o?r(y):(e.consume(y),p)}function d(y){return y===null||me(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||me(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?r(y):(e.consume(y),m)}function k(y){return e.attempt(a,E,v)(y)}function v(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),g}function g(y){return n>0&&Me(y)?Ue(e,b,"linePrefix",n+1)(y):b(y)}function b(y){return y===null||me(y)?e.check(Zp,k,E)(y):(e.enter("codeFlowValue"),w(y))}function w(y){return y===null||me(y)?(e.exit("codeFlowValue"),b(y)):(e.consume(y),w)}function E(y){return e.exit("codeFenced"),t(y)}function h(y,C,x){let _=0;return S;function S(j){return y.enter("lineEnding"),y.consume(j),y.exit("lineEnding"),A}function A(j){return y.enter("codeFencedFence"),Me(j)?Ue(y,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):O(j)}function O(j){return j===o?(y.enter("codeFencedFenceSequence"),F(j)):x(j)}function F(j){return j===o?(_++,y.consume(j),F):_>=s?(y.exit("codeFencedFenceSequence"),Me(j)?Ue(y,T,"whitespace")(j):T(j)):x(j)}function T(j){return j===null||me(j)?(y.exit("codeFencedFence"),C(j)):x(j)}}}function Bw(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 hu={name:"codeIndented",tokenize:Vw},Uw={partial:!0,tokenize:Hw};function Vw(e,t,r){const i=this;return a;function a(u){return e.enter("codeIndented"),Ue(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):me(u)?e.attempt(Uw,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||me(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Hw(e,t,r){const i=this;return a;function a(s){return i.parser.lazy[i.now().line]?r(s):me(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Ue(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):me(s)?a(s):r(s)}}const Kw={name:"codeText",previous:Gw,resolve:Ww,tokenize:Jw};function Ww(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 Gw(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Jw(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)):me(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||me(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 Yw{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&&Sa(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),Sa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Sa(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);Sa(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Sa(this.left,r.reverse())}}}function Sa(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 em(e){const t={};let r=-1,i,a,n,s,o,l,u;const c=new Yw(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,Xw(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 tr(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Xw(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,p=-1,d=r,m=0,k=0;const v=[k];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;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(k=p+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(),p=v.length;p--;){const g=o.slice(v[p],v[p+1]),b=n.pop();l.push([b,b+g.length-1]),e.splice(b,2,g)}for(l.reverse(),p=-1;++p<l.length;)u[m+l[p][0]]=m+l[p][1],m+=l[p][1]-l[p][0]-1;return u}const Zw={resolve:eS,tokenize:tS},Qw={partial:!0,tokenize:rS};function eS(e){return em(e),e}function tS(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):me(o)?e.check(Qw,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 rS(e,t,r){const i=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Ue(e,n,"linePrefix")}function n(s){if(s===null||me(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 tm(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),p):g===null||g===32||g===41||Os(g)?r(g):(e.enter(i),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),k(g))}function p(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),p(g)):g===null||g===60||me(g)?r(g):(e.consume(g),g===92?m:d)}function m(g){return g===60||g===62||g===92?(e.consume(g),d):d(g)}function k(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++,k):g===41?(e.consume(g),c--,k):g===null||g===32||g===40||Os(g)?r(g):(e.consume(g),g===92?v:k)}function v(g){return g===40||g===41||g===92?(e.consume(g),k):k(g)}}function rm(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):me(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||me(d)||o++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!Me(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function nm(e,t,r,i,a,n){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(i),e.enter(a),e.consume(p),e.exit(a),s=p===40?41:p,l):r(p)}function l(p){return p===s?(e.enter(a),e.consume(p),e.exit(a),e.exit(i),t):(e.enter(n),u(p))}function u(p){return p===s?(e.exit(n),l(s)):p===null?r(p):me(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Ue(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||me(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===s||p===92?(e.consume(p),c):c(p)}}function Ca(e,t){let r;return i;function i(a){return me(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,i):Me(a)?Ue(e,i,r?"linePrefix":"lineSuffix")(a):t(a)}}const nS={name:"definition",tokenize:aS},iS={partial:!0,tokenize:sS};function aS(e,t,r){const i=this;let a;return n;function n(d){return e.enter("definition"),s(d)}function s(d){return rm.call(i,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return a=wr(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)?Ca(e,u)(d):u(d)}function u(d){return tm(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(iS,f,f)(d)}function f(d){return Me(d)?Ue(e,p,"whitespace")(d):p(d)}function p(d){return d===null||me(d)?(e.exit("definition"),i.parser.defined.push(a),t(d)):r(d)}}function sS(e,t,r){return i;function i(o){return dt(o)?Ca(e,a)(o):r(o)}function a(o){return nm(e,n,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function n(o){return Me(o)?Ue(e,s,"whitespace")(o):s(o)}function s(o){return o===null||me(o)?t(o):r(o)}}const oS={name:"hardBreakEscape",tokenize:lS};function lS(e,t,r){return i;function i(n){return e.enter("hardBreakEscape"),e.consume(n),a}function a(n){return me(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}const uS={name:"headingAtx",resolve:cS,tokenize:fS};function cS(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"},tr(e,i,r-i+1,[["enter",a,t],["enter",n,t],["exit",n,t],["exit",a,t]])),e}function fS(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||me(c)?(e.exit("atxHeading"),t(c)):Me(c)?Ue(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 dS=["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"],im=["pre","script","style","textarea"],pS={concrete:!0,name:"htmlFlow",resolveTo:gS,tokenize:yS},mS={partial:!0,tokenize:bS},hS={partial:!0,tokenize:vS};function gS(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 yS(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),p):I===47?(e.consume(I),n=!0,k):I===63?(e.consume(I),a=3,i.interrupt?t:P):Bt(I)?(e.consume(I),s=String.fromCharCode(I),v):r(I)}function p(I){return I===45?(e.consume(I),a=2,d):I===91?(e.consume(I),a=5,o=0,m):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 m(I){const D="CDATA[";return I===D.charCodeAt(o++)?(e.consume(I),o===D.length?i.interrupt?t:O:m):r(I)}function k(I){return Bt(I)?(e.consume(I),s=String.fromCharCode(I),v):r(I)}function v(I){if(I===null||I===47||I===62||dt(I)){const D=I===47,L=s.toLowerCase();return!D&&!n&&im.includes(L)?(a=1,i.interrupt?t(I):O(I)):dS.includes(s.toLowerCase())?(a=6,D?(e.consume(I),g):i.interrupt?t(I):O(I)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(I):n?b(I):w(I))}return I===45||qt(I)?(e.consume(I),s+=String.fromCharCode(I),v):r(I)}function g(I){return I===62?(e.consume(I),i.interrupt?t:O):r(I)}function b(I){return Me(I)?(e.consume(I),b):S(I)}function w(I){return I===47?(e.consume(I),S):I===58||I===95||Bt(I)?(e.consume(I),E):Me(I)?(e.consume(I),w):S(I)}function E(I){return I===45||I===46||I===58||I===95||qt(I)?(e.consume(I),E):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,C):Me(I)?(e.consume(I),y):x(I)}function C(I){return I===l?(e.consume(I),l=null,_):I===null||me(I)?r(I):(e.consume(I),C)}function x(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),x)}function _(I){return I===47||I===62||Me(I)?w(I):r(I)}function S(I){return I===62?(e.consume(I),A):r(I)}function A(I){return I===null||me(I)?O(I):Me(I)?(e.consume(I),A):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),M):I===63&&a===3?(e.consume(I),P):I===93&&a===5?(e.consume(I),X):me(I)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(mS,U,F)(I)):I===null||me(I)?(e.exit("htmlFlowData"),F(I)):(e.consume(I),O)}function F(I){return e.check(hS,T,U)(I)}function T(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),j}function j(I){return I===null||me(I)?F(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 D=s.toLowerCase();return im.includes(D)?(e.consume(I),M):O(I)}return Bt(I)&&s.length<8?(e.consume(I),s+=String.fromCharCode(I),Y):O(I)}function X(I){return I===93?(e.consume(I),P):O(I)}function P(I){return I===62?(e.consume(I),M):I===45&&a===2?(e.consume(I),P):O(I)}function M(I){return I===null||me(I)?(e.exit("htmlFlowData"),U(I)):(e.consume(I),M)}function U(I){return e.exit("htmlFlow"),t(I)}}function vS(e,t,r){const i=this;return a;function a(s){return me(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 bS(e,t,r){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(wa,t,r)}}const kS={name:"htmlText",tokenize:wS};function wS(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),x):r(P)}function u(P){return P===45?(e.consume(P),c):P===91?(e.consume(P),n=0,m):Bt(P)?(e.consume(P),b):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),p):me(P)?(s=f,J(P)):(e.consume(P),f)}function p(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?q(P):P===45?p(P):f(P)}function m(P){const M="CDATA[";return P===M.charCodeAt(n++)?(e.consume(P),n===M.length?k:m):r(P)}function k(P){return P===null?r(P):P===93?(e.consume(P),v):me(P)?(s=k,J(P)):(e.consume(P),k)}function v(P){return P===93?(e.consume(P),g):k(P)}function g(P){return P===62?q(P):P===93?(e.consume(P),g):k(P)}function b(P){return P===null||P===62?q(P):me(P)?(s=b,J(P)):(e.consume(P),b)}function w(P){return P===null?r(P):P===63?(e.consume(P),E):me(P)?(s=w,J(P)):(e.consume(P),w)}function E(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||qt(P)?(e.consume(P),y):C(P)}function C(P){return me(P)?(s=C,J(P)):Me(P)?(e.consume(P),C):q(P)}function x(P){return P===45||qt(P)?(e.consume(P),x):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),S):me(P)?(s=_,J(P)):Me(P)?(e.consume(P),_):q(P)}function S(P){return P===45||P===46||P===58||P===95||qt(P)?(e.consume(P),S):A(P)}function A(P){return P===61?(e.consume(P),O):me(P)?(s=A,J(P)):Me(P)?(e.consume(P),A):_(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,F):me(P)?(s=O,J(P)):Me(P)?(e.consume(P),O):(e.consume(P),T)}function F(P){return P===a?(e.consume(P),a=void 0,j):P===null?r(P):me(P)?(s=F,J(P)):(e.consume(P),F)}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 j(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)?Ue(e,X,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):X(P)}function X(P){return e.enter("htmlTextData"),s(P)}}const gu={name:"labelEnd",resolveAll:AS,resolveTo:xS,tokenize:OS},SS={tokenize:_S},CS={tokenize:PS},ES={tokenize:IS};function AS(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&&tr(e,0,e.length,r),e}function xS(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=or(o,e.slice(n+1,n+i+3)),o=or(o,[["enter",c,t]]),o=or(o,Ps(t.parser.constructs.insideSpan.null,e.slice(n+i+4,s-3),t)),o=or(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=or(o,e.slice(s+1)),o=or(o,[["exit",l,t]]),tr(e,n,e.length,o),e}function OS(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(p){return n?n._inactive?f(p):(s=i.parser.defined.includes(wr(i.sliceSerialize({start:n.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):r(p)}function l(p){return p===40?e.attempt(SS,c,s?c:f)(p):p===91?e.attempt(CS,c,s?u:f)(p):s?c(p):f(p)}function u(p){return e.attempt(ES,c,f)(p)}function c(p){return t(p)}function f(p){return n._balanced=!0,r(p)}}function _S(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)?Ca(e,n)(f):n(f)}function n(f){return f===41?c(f):tm(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return dt(f)?Ca(e,l)(f):c(f)}function o(f){return r(f)}function l(f){return f===34||f===39||f===40?nm(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return dt(f)?Ca(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 PS(e,t,r){const i=this;return a;function a(o){return rm.call(i,e,n,s,"reference","referenceMarker","referenceString")(o)}function n(o){return i.parser.defined.includes(wr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function IS(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:gu.resolveAll,tokenize:NS};function NS(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 FS={name:"labelStartLink",resolveAll:gu.resolveAll,tokenize:DS};function DS(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 yu={name:"lineEnding",tokenize:MS};function MS(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Ue(e,t,"linePrefix")}}const Is={name:"thematicBreak",tokenize:jS};function jS(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||me(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===a?(e.consume(u),i++,l):(e.exit("thematicBreakSequence"),Me(u)?Ue(e,o,"whitespace")(u):o(u))}}const Xt={continuation:{tokenize:zS},exit:BS,name:"list",tokenize:$S},LS={partial:!0,tokenize:US},qS={partial:!0,tokenize:RS};function $S(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 m=i.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!i.containerState.marker||d===i.containerState.marker:pu(d)){if(i.containerState.type||(i.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Is,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 pu(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(wa,i.interrupt?r:c,e.attempt(LS,p,f))}function c(d){return i.containerState.initialBlankLine=!0,n++,p(d)}function f(d){return Me(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):r(d)}function p(d){return i.containerState.size=n+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function zS(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(wa,a,n);function a(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Ue(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(qS,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Ue(e,e.attempt(Xt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function RS(e,t,r){const i=this;return Ue(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 BS(e){e.exit(this.containerState.type)}function US(e,t,r){const i=this;return Ue(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 am={name:"setextUnderline",resolveTo:VS,tokenize:HS};function VS(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)?Ue(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||me(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const KS={tokenize:WS};function WS(e){const t=this,r=e.attempt(wa,i,e.attempt(this.parser.constructs.flowInitial,a,Ue(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Zw,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 GS={resolveAll:om()},JS=sm("string"),YS=sm("text");function sm(e){return{resolveAll:om(e==="text"?XS: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 p=-1;if(f)for(;++p<f.length;){const d=f[p];if(!d.previous||d.previous.call(i,i.previous))return!0}return!1}}}function om(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 XS(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 ZS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:nS},disable:{null:[]},document:{42:Xt,43:Xt,45:Xt,48:Xt,49:Xt,50:Xt,51:Xt,52:Xt,53:Xt,54:Xt,55:Xt,56:Xt,57:Xt,62:Jp},flow:{35:uS,42:Is,45:[am,Is],60:pS,61:am,95:Is,96:Qp,126:Qp},flowInitial:{[-2]:hu,[-1]:hu,32:hu},insideSpan:{null:[mu,GS]},string:{38:Xp,92:Yp},text:{[-5]:yu,[-4]:yu,[-3]:yu,33:TS,38:Xp,42:mu,60:[Fw,kS],91:FS,92:[oS,Yp],93:gu,95:mu,96:Kw}},Symbol.toStringTag,{value:"Module"}));function QS(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:C(h),check:C(y),consume:b,enter:w,exit:E,interrupt:C(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:k,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&n.push(t),u;function f(A){return s=or(s,A),v(),s[s.length-1]!==null?[]:(x(t,0),u.events=Ps(n,u.events,u),u.events)}function p(A,O){return tC(d(A),O)}function d(A){return eC(s,A)}function m(){const{_bufferIndex:A,_index:O,line:F,column:T,offset:j}=i;return{_bufferIndex:A,_index:O,line:F,column:T,offset:j}}function k(A){a[A.line]=A.column,S()}function v(){let A;for(;i._index<s.length;){const O=s[i._index];if(typeof O=="string")for(A=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===A&&i._bufferIndex<O.length;)g(O.charCodeAt(i._bufferIndex));else g(O)}}function g(A){c=c(A)}function b(A){me(A)?(i.line++,i.column=1,i.offset+=A===-3?2:1,S()):A!==-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=A}function w(A,O){const F=O||{};return F.type=A,F.start=m(),u.events.push(["enter",F,u]),o.push(F),F}function E(A){const O=o.pop();return O.end=m(),u.events.push(["exit",O,u]),O}function h(A,O){x(A,O.from)}function y(A,O){O.restore()}function C(A,O){return F;function F(T,j,q){let J,Y,X,P;return Array.isArray(T)?U(T):"tokenize"in T?U([T]):M(T);function M(B){return R;function R(H){const G=H!==null&&B[H],Z=H!==null&&B.null,z=[...Array.isArray(G)?G:G?[G]:[],...Array.isArray(Z)?Z:Z?[Z]:[]];return U(z)(H)}}function U(B){return J=B,Y=0,B.length===0?q:I(B[Y])}function I(B){return R;function R(H){return P=_(),X=B,B.partial||(u.currentConstruct=B),B.name&&u.parser.constructs.disable.null.includes(B.name)?L():B.tokenize.call(O?Object.assign(Object.create(u),O):u,l,D,L)(H)}}function D(B){return A(X,P),j}function L(B){return P.restore(),++Y<J.length?I(J[Y]):q}}}function x(A,O){A.resolveAll&&!n.includes(A)&&n.push(A),A.resolve&&tr(u.events,O,u.events.length-O,A.resolve(u.events.slice(O),u)),A.resolveTo&&(u.events=A.resolveTo(u.events,u))}function _(){const A=m(),O=u.previous,F=u.currentConstruct,T=u.events.length,j=Array.from(o);return{from:T,restore:q};function q(){i=A,u.previous=O,u.currentConstruct=F,u.events.length=T,o=j,S()}}function S(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function eC(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 tC(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=`
19
+ */var Ul,rp;function u0(){if(rp)return Ul;rp=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 Ul=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 p=0;p<u.length;p++)r.call(o,u[p])&&(l[u[p]]=o[u[p]])}}return l},Ul}var Bl,np;function Vl(){if(np)return Bl;np=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Bl=e,Bl}var Hl,ip;function ap(){return ip||(ip=1,Hl=Function.call.bind(Object.prototype.hasOwnProperty)),Hl}var Kl,sp;function c0(){if(sp)return Kl;sp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Vl(),r={},i=ap();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 p=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 p.name="Invariant Violation",p}f=n[c](s,c,l,o,null,t)}catch(m){f=m}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={})},Kl=a,Kl}var Wl,op;function f0(){if(op)return Wl;op=1;var e=tp(),t=u0(),r=Vl(),i=ap(),a=c0(),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 Wl=function(o,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(P){var M=P&&(u&&P[u]||P[c]);if(typeof M=="function")return M}var p="<<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:b(),arrayOf:w,element:E(),elementType:h(),instanceOf:y,node:S(),objectOf:x,oneOf:C,oneOfType:_,shape:O,exact:F};function m(P,M){return P===M?P!==0||1/P===1/M:P!==P&&M!==M}function k(P,M){this.message=P,this.data=M&&typeof M=="object"?M:{},this.stack=""}k.prototype=Error.prototype;function v(P){if(process.env.NODE_ENV!=="production")var M={},B=0;function I(L,U,R,H,G,Z,z){if(H=H||p,Z=Z||R,z!==r){if(l){var $=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 $.name="Invariant Violation",$}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var W=H+":"+R;!M[W]&&B<3&&(n("You are manually calling a React.PropTypes validation function for the `"+Z+"` 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."),M[W]=!0,B++)}}return U[R]==null?L?U[R]===null?new k("The "+G+" `"+Z+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new k("The "+G+" `"+Z+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:P(U,R,H,G,Z)}var D=I.bind(null,!1);return D.isRequired=I.bind(null,!0),D}function g(P){function M(B,I,D,L,U,R){var H=B[I],G=q(H);if(G!==P){var Z=J(H);return new k("Invalid "+L+" `"+U+"` of type "+("`"+Z+"` supplied to `"+D+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return v(M)}function b(){return v(s)}function w(P){function M(B,I,D,L,U){if(typeof P!="function")return new k("Property `"+U+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var R=B[I];if(!Array.isArray(R)){var H=q(R);return new k("Invalid "+L+" `"+U+"` of type "+("`"+H+"` supplied to `"+D+"`, expected an array."))}for(var G=0;G<R.length;G++){var Z=P(R,G,D,L,U+"["+G+"]",r);if(Z instanceof Error)return Z}return null}return v(M)}function E(){function P(M,B,I,D,L){var U=M[B];if(!o(U)){var R=q(U);return new k("Invalid "+D+" `"+L+"` of type "+("`"+R+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return v(P)}function h(){function P(M,B,I,D,L){var U=M[B];if(!e.isValidElementType(U)){var R=q(U);return new k("Invalid "+D+" `"+L+"` of type "+("`"+R+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return v(P)}function y(P){function M(B,I,D,L,U){if(!(B[I]instanceof P)){var R=P.name||p,H=X(B[I]);return new k("Invalid "+L+" `"+U+"` of type "+("`"+H+"` supplied to `"+D+"`, expected ")+("instance of `"+R+"`."))}return null}return v(M)}function C(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 M(B,I,D,L,U){for(var R=B[I],H=0;H<P.length;H++)if(m(R,P[H]))return null;var G=JSON.stringify(P,function(z,$){var W=J($);return W==="symbol"?String($):$});return new k("Invalid "+L+" `"+U+"` of value `"+String(R)+"` "+("supplied to `"+D+"`, expected one of "+G+"."))}return v(M)}function x(P){function M(B,I,D,L,U){if(typeof P!="function")return new k("Property `"+U+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var R=B[I],H=q(R);if(H!=="object")return new k("Invalid "+L+" `"+U+"` of type "+("`"+H+"` supplied to `"+D+"`, expected an object."));for(var G in R)if(i(R,G)){var Z=P(R,G,D,L,U+"."+G,r);if(Z instanceof Error)return Z}return null}return v(M)}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 M=0;M<P.length;M++){var B=P[M];if(typeof B!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(B)+" at index "+M+"."),s}function I(D,L,U,R,H){for(var G=[],Z=0;Z<P.length;Z++){var z=P[Z],$=z(D,L,U,R,H,r);if($==null)return null;$.data&&i($.data,"expectedType")&&G.push($.data.expectedType)}var W=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new k("Invalid "+R+" `"+H+"` supplied to "+("`"+U+"`"+W+"."))}return v(I)}function S(){function P(M,B,I,D,L){return T(M[B])?null:new k("Invalid "+D+" `"+L+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return v(P)}function A(P,M,B,I,D){return new k((P||"React class")+": "+M+" type `"+B+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function O(P){function M(B,I,D,L,U){var R=B[I],H=q(R);if(H!=="object")return new k("Invalid "+L+" `"+U+"` of type `"+H+"` "+("supplied to `"+D+"`, expected `object`."));for(var G in P){var Z=P[G];if(typeof Z!="function")return A(D,L,U,G,J(Z));var z=Z(R,G,D,L,U+"."+G,r);if(z)return z}return null}return v(M)}function F(P){function M(B,I,D,L,U){var R=B[I],H=q(R);if(H!=="object")return new k("Invalid "+L+" `"+U+"` of type `"+H+"` "+("supplied to `"+D+"`, expected `object`."));var G=t({},B[I],P);for(var Z in G){var z=P[Z];if(i(P,Z)&&typeof z!="function")return A(D,L,U,Z,J(z));if(!z)return new k("Invalid "+L+" `"+U+"` key `"+Z+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(B[I],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var $=z(R,Z,D,L,U+"."+Z,r);if($)return $}return null}return v(M)}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 M=f(P);if(M){var B=M.call(P),I;if(M!==P.entries){for(;!(I=B.next()).done;)if(!T(I.value))return!1}else for(;!(I=B.next()).done;){var D=I.value;if(D&&!T(D[1]))return!1}}else return!1;return!0;default:return!1}}function j(P,M){return P==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function q(P){var M=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":j(M,P)?"symbol":M}function J(P){if(typeof P>"u"||P===null)return""+P;var M=q(P);if(M==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return M}function Y(P){var M=J(P);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function X(P){return!P.constructor||!P.constructor.name?p:P.constructor.name}return d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d},Wl}var Gl,lp;function d0(){if(lp)return Gl;lp=1;var e=Vl();function t(){}function r(){}return r.resetWarningCache=t,Gl=function(){function i(s,o,l,u,c,f){if(f!==e){var p=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 p.name="Invariant Violation",p}}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},Gl}var up;function p0(){if(up)return Es.exports;if(up=1,process.env.NODE_ENV!=="production"){var e=tp(),t=!0;Es.exports=f0()(e.isElement,t)}else Es.exports=d0()();return Es.exports}var m0=p0();const Ee=jr(m0);function h0(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function g0(e,t){e.classList?e.classList.add(t):h0(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function cp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function y0(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=cp(e.className,t):e.setAttribute("class",cp(e.className&&e.className.baseVal||"",t))}const fp={disabled:!1};var v0=process.env.NODE_ENV!=="production"?Ee.oneOfType([Ee.number,Ee.shape({enter:Ee.number,exit:Ee.number,appear:Ee.number}).isRequired]):null,b0=process.env.NODE_ENV!=="production"?Ee.oneOfType([Ee.string,Ee.shape({enter:Ee.string,exit:Ee.string,active:Ee.string}),Ee.shape({enter:Ee.string,enterDone:Ee.string,enterActive:Ee.string,exit:Ee.string,exitDone:Ee.string,exitActive:Ee.string})]):null;const dp=V.createContext(null);var pp=function(t){return t.scrollTop},ha="unmounted",Vn="exited",Hn="entering",Ai="entered",Jl="exiting",Lr=(function(e){Xd(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=Vn,n.appearStatus=Hn):l=Ai:i.unmountOnExit||i.mountOnEnter?l=ha:l=Vn,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(a,n){var s=a.in;return s&&n.status===ha?{status:Vn}: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!==Hn&&s!==Ai&&(n=Hn):(s===Hn||s===Ai)&&(n=Jl)}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===Hn){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ss.findDOMNode(this);s&&pp(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Vn&&this.setState({status:ha})},r.performEnter=function(a){var n=this,s=this.props.enter,o=this.context?this.context.isMounting:a,l=this.props.nodeRef?[o]:[Ss.findDOMNode(this),o],u=l[0],c=l[1],f=this.getTimeouts(),p=o?f.appear:f.enter;if(!a&&!s||fp.disabled){this.safeSetState({status:Ai},function(){n.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Hn},function(){n.props.onEntering(u,c),n.onTransitionEnd(p,function(){n.safeSetState({status:Ai},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:Ss.findDOMNode(this);if(!n||fp.disabled){this.safeSetState({status:Vn},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Jl},function(){a.props.onExiting(o),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:Vn},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:Ss.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===ha)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=Yd(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(dp.Provider,{value:null},typeof s=="function"?s(a,o):V.cloneElement(V.Children.only(s),o))},t})(V.Component);Lr.contextType=dp,Lr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Ee.shape({current:typeof Element>"u"?Ee.any:function(e,t,r,i,a,n){var s=e[t];return Ee.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,i,a,n)}}),children:Ee.oneOfType([Ee.func.isRequired,Ee.element.isRequired]).isRequired,in:Ee.bool,mountOnEnter:Ee.bool,unmountOnExit:Ee.bool,appear:Ee.bool,enter:Ee.bool,exit:Ee.bool,timeout:function(t){var r=v0;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:Ee.func,onEnter:Ee.func,onEntering:Ee.func,onEntered:Ee.func,onExit:Ee.func,onExiting:Ee.func,onExited:Ee.func}:{};function xi(){}Lr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xi,onEntering:xi,onEntered:xi,onExit:xi,onExiting:xi,onExited:xi},Lr.UNMOUNTED=ha,Lr.EXITED=Vn,Lr.ENTERING=Hn,Lr.ENTERED=Ai,Lr.EXITING=Jl;var k0=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return g0(t,i)})},Yl=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return y0(t,i)})},Xl=(function(e){Xd(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],p=f?"appear":"enter";i.addClass(c,p,"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],p=f?"appear":"enter";i.removeClasses(c,p),i.addClass(c,p,"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],p=u?f+"-active":l[o+"Active"],d=u?f+"-done":l[o+"Done"];return{baseClassName:f,activeClassName:p,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&&pp(a),o&&(this.appliedClasses[n][s]=o,k0(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&&Yl(a,o),l&&Yl(a,l),u&&Yl(a,u)},r.render=function(){var a=this.props;a.classNames;var n=Yd(a,["classNames"]);return V.createElement(Lr,Cs({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(V.Component);Xl.defaultProps={classNames:""},Xl.propTypes=process.env.NODE_ENV!=="production"?Cs({},Lr.propTypes,{classNames:b0,onEnter:Ee.func,onEntering:Ee.func,onEntered:Ee.func,onExit:Ee.func,onExiting:Ee.func,onExited:Ee.func}):{};const w0=Xl,mp=({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(w0,{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})]})})})]})},S0=["first","second"],hp=()=>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"}),S0.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"})]});hp.displayName="FormSkeleton";const xs=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},C0=e=>{try{const t=new URL(e,window.location.href);return t.protocol==="http:"||t.protocol==="https:"?t.href:null}catch{return null}},E0=(e,t=r=>window.location.assign(r))=>{const r=C0(e.url);if(r===null){console.warn(`Ignoring redirect to unsupported URL: ${e.url}`);return}setTimeout(()=>t(r),e.timeout||0)},A0=(e,t)=>{xs("fcode-forms-on-next-step",{formId:e,previousProcessExecutionResult:t})},x0="The form has been successfully submitted",gp="There has been an error submitting the form",yp=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 gp}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:gp},O0="The form couldn't be loaded",_0=e=>{if(typeof e=="string"&&e)return e;const t=e==null?void 0:e.message;return typeof t=="string"&&t?t:O0},vp=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]=vp(e[t]);break}return e},P0=e=>{let t={};return e.fields&&(t={...vp(e.fields)}),e.global&&(t.__errors=[...e.global]),t};function LR(){}function qR(){}function I0(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const T0=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,N0=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,F0={};function bp(e,t){return(F0.jsx?N0:T0).test(e)}const D0=/[ \t\n\f\r]/g;function M0(e){return typeof e=="object"?e.type==="text"?kp(e.value):!1:kp(e)}function kp(e){return e.replace(D0,"")===""}class ga{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}ga.prototype.normal={},ga.prototype.property={},ga.prototype.space=void 0;function wp(e,t){const r={},i={};for(const a of e)Object.assign(r,a.property),Object.assign(i,a.normal);return new ga(r,i,t)}function Zl(e){return e.toLowerCase()}class Yt{constructor(t,r){this.attribute=r,this.property=t}}Yt.prototype.attribute="",Yt.prototype.booleanish=!1,Yt.prototype.boolean=!1,Yt.prototype.commaOrSpaceSeparated=!1,Yt.prototype.commaSeparated=!1,Yt.prototype.defined=!1,Yt.prototype.mustUseProperty=!1,Yt.prototype.number=!1,Yt.prototype.overloadedBoolean=!1,Yt.prototype.property="",Yt.prototype.spaceSeparated=!1,Yt.prototype.space=void 0;let j0=0;const Ce=Wn(),Ot=Wn(),Ql=Wn(),oe=Wn(),ft=Wn(),Kn=Wn(),er=Wn();function Wn(){return 2**++j0}const eu=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ce,booleanish:Ot,commaOrSpaceSeparated:er,commaSeparated:Kn,number:oe,overloadedBoolean:Ql,spaceSeparated:ft},Symbol.toStringTag,{value:"Module"})),tu=Object.keys(eu);class ru extends Yt{constructor(t,r,i,a){let n=-1;if(super(t,r),Sp(this,"space",a),typeof i=="number")for(;++n<tu.length;){const s=tu[n];Sp(this,tu[n],(i&eu[s])===eu[s])}}}ru.prototype.defined=!0;function Sp(e,t,r){r&&(e[t]=r)}function Oi(e){const t={},r={};for(const[i,a]of Object.entries(e.properties)){const n=new ru(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(n.mustUseProperty=!0),t[i]=n,r[Zl(i)]=i,r[Zl(n.attribute)]=i}return new ga(t,r,e.space)}const Cp=Oi({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 Ep(e,t){return t in e?e[t]:t}function Ap(e,t){return Ep(e,t.toLowerCase())}const L0=Oi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Kn,acceptCharset:ft,accessKey:ft,action:null,allow:null,allowFullScreen:Ce,allowPaymentRequest:Ce,allowUserMedia:Ce,alpha:Ce,alt:null,as:null,async:Ce,autoCapitalize:null,autoComplete:ft,autoFocus:Ce,autoPlay:Ce,blocking:ft,capture:null,charSet:null,checked:Ce,cite:null,className:ft,closedBy:null,colorSpace:null,cols:oe,colSpan:oe,command:null,commandFor:null,content:null,contentEditable:Ot,controls:Ce,controlsList:ft,coords:oe|Kn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ce,defer:Ce,dir:null,dirName:null,disabled:Ce,download:Ql,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ce,formTarget:null,headers:ft,height:oe,hidden:Ql,high:oe,href:null,hrefLang:null,htmlFor:ft,httpEquiv:ft,id:null,imageSizes:null,imageSrcSet:null,inert:Ce,inputMode:null,integrity:null,is:null,isMap:Ce,itemId:null,itemProp:ft,itemRef:ft,itemScope:Ce,itemType:ft,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ce,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Ce,muted:Ce,name:null,nonce:null,noModule:Ce,noValidate:Ce,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:Ce,optimum:oe,pattern:null,ping:ft,placeholder:null,playsInline:Ce,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ce,referrerPolicy:null,rel:ft,required:Ce,reversed:Ce,rows:oe,rowSpan:oe,sandbox:ft,scope:null,scoped:Ce,seamless:Ce,selected:Ce,shadowRootClonable:Ce,shadowRootCustomElementRegistry:Ce,shadowRootDelegatesFocus:Ce,shadowRootMode:null,shadowRootSerializable:Ce,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:Ce,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:Ce,declare:Ce,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Ce,noHref:Ce,noShade:Ce,noWrap:Ce,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:Ce,disablePictureInPicture:Ce,disableRemotePlayback:Ce,exportParts:Kn,part:ft,prefix:null,property:null,results:oe,security:null,unselectable:null},space:"html",transform:Ap}),q0=Oi({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:er,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:Ce,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:Kn,g2:Kn,glyphName:Kn,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:er,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:er,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:er,rev:er,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:er,requiredFeatures:er,requiredFonts:er,requiredFormats:er,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:er,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:er,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:er,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:Ep}),xp=Oi({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()}}),Op=Oi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ap}),_p=Oi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),$0={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"},z0=/[A-Z]/g,Pp=/-[a-z]/g,R0=/^data[-\w.:]+$/i;function U0(e,t){const r=Zl(t);let i=t,a=Yt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&R0.test(t)){if(t.charAt(4)==="-"){const n=t.slice(5).replace(Pp,V0);i="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!Pp.test(n)){let s=n.replace(z0,B0);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=ru}return new a(i,t)}function B0(e){return"-"+e.toLowerCase()}function V0(e){return e.charAt(1).toUpperCase()}const H0=wp([Cp,L0,xp,Op,_p],"html"),nu=wp([Cp,q0,xp,Op,_p],"svg");function K0(e){return e.join(" ").trim()}var _i={},iu,Ip;function W0(){if(Ip)return iu;Ip=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="",p="comment",d="declaration";function m(v,g){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];g=g||{};var b=1,w=1;function E(T){var j=T.match(t);j&&(b+=j.length);var q=T.lastIndexOf(l);w=~q?T.length-q:w+T.length}function h(){var T={line:b,column:w};return function(j){return j.position=new y(T),_(),j}}function y(T){this.start=T,this.end={line:b,column:w},this.source=g.source}y.prototype.content=v;function C(T){var j=new Error(g.source+":"+b+":"+w+": "+T);if(j.reason=T,j.filename=g.source,j.line=b,j.column=w,j.source=v,!g.silent)throw j}function x(T){var j=T.exec(v);if(j){var q=j[0];return E(q),v=v.slice(q.length),j}}function _(){x(r)}function S(T){var j;for(T=T||[];j=A();)j!==!1&&T.push(j);return T}function A(){var T=h();if(!(u!=v.charAt(0)||c!=v.charAt(1))){for(var j=2;f!=v.charAt(j)&&(c!=v.charAt(j)||u!=v.charAt(j+1));)++j;if(j+=2,f===v.charAt(j-1))return C("End of comment missing");var q=v.slice(2,j-2);return w+=2,E(q),v=v.slice(j),w+=2,T({type:p,comment:q})}}function O(){var T=h(),j=x(i);if(j){if(A(),!x(a))return C("property missing ':'");var q=x(n),J=T({type:d,property:k(j[0].replace(e,f)),value:q?k(q[0].replace(e,f)):f});return x(s),J}}function F(){var T=[];S(T);for(var j;j=O();)j!==!1&&(T.push(j),S(T));return T}return _(),F()}function k(v){return v?v.replace(o,f):f}return iu=m,iu}var Tp;function G0(){if(Tp)return _i;Tp=1;var e=_i&&_i.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(_i,"__esModule",{value:!0}),_i.default=r;const t=e(W0());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 _i}var ya={},Np;function J0(){if(Np)return ya;Np=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,Fp;function Y0(){if(Fp)return va;Fp=1;var e=va&&va.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(G0()),r=J0();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 X0=Y0();const Z0=jr(X0),Dp=Mp("end"),au=Mp("start");function Mp(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 Q0(e){const t=au(e),r=Dp(e);if(t&&r)return{start:t,end:r}}function ba(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?jp(e.position):"start"in e||"end"in e?jp(e):"line"in e||"column"in e?su(e):""}function su(e){return Lp(e&&e.line)+":"+Lp(e&&e.column)}function jp(e){return su(e&&e.start)+"-"+su(e&&e.end)}function Lp(e){return e&&typeof e=="number"?e:1}class Lt 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=ba(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}}Lt.prototype.file="",Lt.prototype.name="",Lt.prototype.reason="",Lt.prototype.message="",Lt.prototype.stack="",Lt.prototype.column=void 0,Lt.prototype.line=void 0,Lt.prototype.ancestors=void 0,Lt.prototype.cause=void 0,Lt.prototype.fatal=void 0,Lt.prototype.place=void 0,Lt.prototype.ruleId=void 0,Lt.prototype.source=void 0;const ou={}.hasOwnProperty,ew=new Map,tw=/[A-Z]/g,rw=new Set(["table","tbody","thead","tfoot","tr"]),nw=new Set(["td","th"]),qp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function iw(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=dw(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=fw(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"?nu:H0,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},n=$p(a,e,void 0);return n&&typeof n!="string"?n:a.create(e,a.Fragment,{children:n||void 0},void 0)}function $p(e,t,r){if(t.type==="element")return aw(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return sw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return lw(e,t,r);if(t.type==="mdxjsEsm")return ow(e,t);if(t.type==="root")return uw(e,t,r);if(t.type==="text")return cw(e,t)}function aw(e,t,r){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=nu,e.schema=a),e.ancestors.push(t);const n=Rp(e,t.tagName,!1),s=pw(e,t);let o=uu(e,t);return rw.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!M0(l):!0})),zp(e,s,n,t),lu(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function sw(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)}ka(e,t.position)}function ow(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ka(e,t.position)}function lw(e,t,r){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=nu,e.schema=a),e.ancestors.push(t);const n=t.name===null?e.Fragment:Rp(e,t.name,!0),s=mw(e,t),o=uu(e,t);return zp(e,s,n,t),lu(s,o),e.ancestors.pop(),e.schema=i,e.create(t,n,s,r)}function uw(e,t,r){const i={};return lu(i,uu(e,t)),e.create(t,e.Fragment,i,r)}function cw(e,t){return t.value}function zp(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function lu(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function fw(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 dw(e,t){return r;function r(i,a,n,s){const o=Array.isArray(n.children),l=au(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 pw(e,t){const r={};let i,a;for(a in t.properties)if(a!=="children"&&ou.call(t.properties,a)){const n=hw(e,a,t.properties[a]);if(n){const[s,o]=n;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&nw.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 ka(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 ka(e,t.position);else n=i.value===null?!0:i.value;r[a]=n}return r}function uu(e,t){const r=[];let i=-1;const a=e.passKeys?new Map:ew;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=$p(e,n,s);o!==void 0&&r.push(o)}return r}function hw(e,t,r){const i=U0(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?I0(r):K0(r)),i.property==="style"){let a=typeof r=="object"?r:gw(e,String(r));return e.stylePropertyNameCase==="css"&&(a=yw(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?$0[i.property]||i.property:i.attribute,r]}}function gw(e,t){try{return Z0(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,a=new Lt("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=qp+"#cannot-parse-style-attribute",a}}function Rp(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=bp(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=bp(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return ou.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);ka(e)}function ka(e,t){const r=new Lt("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=qp+"#cannot-handle-mdx-estrees-without-createevaluater",r}function yw(e){const t={};let r;for(r in e)ou.call(e,r)&&(t[vw(r)]=e[r]);return t}function vw(e){let t=e.replace(tw,bw);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function bw(e){return"-"+e.toLowerCase()}const cu={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"]},kw={};function fu(e,t){const r=kw,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Up(e,i,a)}function Up(e,t,r){if(ww(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 Bp(e.children,t,r)}return Array.isArray(e)?Bp(e,t,r):""}function Bp(e,t,r){const i=[];let a=-1;for(;++a<e.length;)i[a]=Up(e[a],t,r);return i.join("")}function ww(e){return!!(e&&typeof e=="object")}const Vp=document.createElement("i");function du(e){const t="&"+e+";";Vp.innerHTML=t;const r=Vp.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function tr(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 or(e,t){return e.length>0?(tr(e,e.length,0,t),e):t}const Hp={}.hasOwnProperty;function Kp(e){const t={};let r=-1;for(;++r<e.length;)Sw(t,e[r]);return t}function Sw(e,t){let r;for(r in t){const a=(Hp.call(e,r)?e[r]:void 0)||(e[r]={}),n=t[r];let s;if(n)for(s in n){Hp.call(a,s)||(a[s]=[]);const o=n[s];Cw(a[s],Array.isArray(o)?o:o?[o]:[])}}}function Cw(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);tr(e,0,0,i)}function Wp(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 wr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ut=pn(/[A-Za-z]/),qt=pn(/[\dA-Za-z]/),Ew=pn(/[#-'*+\--9=?A-Z^-~]/);function Os(e){return e!==null&&(e<32||e===127)}const pu=pn(/\d/),Aw=pn(/[\dA-Fa-f]/),xw=pn(/[!-/:-@[-`{-~]/);function me(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 _s=pn(new RegExp("\\p{P}|\\p{S}","u")),Gn=pn(/\s/);function pn(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Pi(e){const t=[];let r=-1,i=0,a=0;for(;++r<e.length;){const n=e.charCodeAt(r);let s="";if(n===37&&qt(e.charCodeAt(r+1))&&qt(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 Ow={tokenize:_w};function _w(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 me(o)?(e.consume(o),e.exit("chunkText"),n):(e.consume(o),s)}}const Pw={tokenize:Iw},Gp={tokenize:Tw};function Iw(e){const t=this,r=[];let i=0,a,n,s;return o;function o(w){if(i<r.length){const E=r[i];return t.containerState=E[1],e.attempt(E[0].continuation,l,u)(w)}return u(w)}function l(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&b();const E=t.events.length;let h=E,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 C=E;for(;C<t.events.length;)t.events[C][1].end={...y},C++;return tr(t.events,h+1,0,t.events.slice(E)),t.events.length=C,u(w)}return o(w)}function u(w){if(i===r.length){if(!a)return p(w);if(a.currentConstruct&&a.currentConstruct.concrete)return m(w);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Gp,c,f)(w)}function c(w){return a&&b(),g(i),p(w)}function f(w){return t.parser.lazy[t.now().line]=i!==r.length,s=t.now().offset,m(w)}function p(w){return t.containerState={},e.attempt(Gp,d,m)(w)}function d(w){return i++,r.push([t.currentConstruct,t.containerState]),p(w)}function m(w){if(w===null){a&&b(),g(0),e.consume(w);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:n}),k(w)}function k(w){if(w===null){v(e.exit("chunkFlow"),!0),g(0),e.consume(w);return}return me(w)?(e.consume(w),v(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(w),k)}function v(w,E){const h=t.sliceStream(w);if(E&&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 C=t.events.length;let x=C,_,S;for(;x--;)if(t.events[x][0]==="exit"&&t.events[x][1].type==="chunkFlow"){if(_){S=t.events[x][1].end;break}_=!0}for(g(i),y=C;y<t.events.length;)t.events[y][1].end={...S},y++;tr(t.events,x+1,0,t.events.slice(C)),t.events.length=y}}function g(w){let E=r.length;for(;E-- >w;){const h=r[E];t.containerState=h[1],h[0].exit.call(t,e)}r.length=w}function b(){a.write([null]),n=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Tw(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 Ii(e){if(e===null||dt(e)||Gn(e))return 1;if(_s(e))return 2}function Ps(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 mu={name:"attention",resolveAll:Nw,tokenize:Fw};function Nw(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},p={...e[r][1].start};Jp(f,-l),Jp(p,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:p},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=or(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=or(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",n,t]]),u=or(u,Ps(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),u=or(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=or(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,tr(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 Fw(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Ii(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=Ii(l),f=!c||c===2&&a||r.includes(l),p=!a||a===2&&c||r.includes(i);return u._open=!!(n===42?f:f&&(a||!p)),u._close=!!(n===42?p:p&&(c||!f)),t(l)}}function Jp(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Dw={name:"autolink",tokenize:Mw};function Mw(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 Ut(d)?(e.consume(d),s):d===64?r(d):u(d)}function s(d){return d===43||d===45||d===46||qt(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||qt(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||Os(d)?r(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):Ew(d)?(e.consume(d),u):r(d)}function c(d){return qt(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):p(d)}function p(d){if((d===45||qt(d))&&i++<63){const m=d===45?p:f;return e.consume(d),m}return r(d)}}const wa={partial:!0,tokenize:jw};function jw(e,t,r){return i;function i(n){return Me(n)?Be(e,a,"linePrefix")(n):a(n)}function a(n){return n===null||me(n)?t(n):r(n)}}const Yp={continuation:{tokenize:qw},exit:$w,name:"blockQuote",tokenize:Lw};function Lw(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 qw(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(Yp,t,r)(s)}}function $w(e){e.exit("blockQuote")}const Xp={name:"characterEscape",tokenize:zw};function zw(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 xw(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}const Zp={name:"characterReference",tokenize:Rw};function Rw(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=qt,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=Aw,c):(e.enter("characterReferenceValue"),n=7,s=pu,c(f))}function c(f){if(f===59&&a){const p=e.exit("characterReferenceValue");return s===qt&&!du(i.sliceSerialize(p))?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 Qp={partial:!0,tokenize:Bw},em={concrete:!0,name:"codeFenced",tokenize:Uw};function Uw(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 C=i.events[i.events.length-1];return n=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[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||me(y)?(e.exit("codeFencedFence"),i.interrupt?t(y):e.check(Qp,k,E)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===null||me(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),p)}function d(y){return y===null||me(y)?f(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===null||me(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(y)):y===96&&y===o?r(y):(e.consume(y),m)}function k(y){return e.attempt(a,E,v)(y)}function v(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),g}function g(y){return n>0&&Me(y)?Be(e,b,"linePrefix",n+1)(y):b(y)}function b(y){return y===null||me(y)?e.check(Qp,k,E)(y):(e.enter("codeFlowValue"),w(y))}function w(y){return y===null||me(y)?(e.exit("codeFlowValue"),b(y)):(e.consume(y),w)}function E(y){return e.exit("codeFenced"),t(y)}function h(y,C,x){let _=0;return S;function S(j){return y.enter("lineEnding"),y.consume(j),y.exit("lineEnding"),A}function A(j){return y.enter("codeFencedFence"),Me(j)?Be(y,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):O(j)}function O(j){return j===o?(y.enter("codeFencedFenceSequence"),F(j)):x(j)}function F(j){return j===o?(_++,y.consume(j),F):_>=s?(y.exit("codeFencedFenceSequence"),Me(j)?Be(y,T,"whitespace")(j):T(j)):x(j)}function T(j){return j===null||me(j)?(y.exit("codeFencedFence"),C(j)):x(j)}}}function Bw(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 hu={name:"codeIndented",tokenize:Hw},Vw={partial:!0,tokenize:Kw};function Hw(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):me(u)?e.attempt(Vw,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||me(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Kw(e,t,r){const i=this;return a;function a(s){return i.parser.lazy[i.now().line]?r(s):me(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):me(s)?a(s):r(s)}}const Ww={name:"codeText",previous:Jw,resolve:Gw,tokenize:Yw};function Gw(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 Jw(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Yw(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)):me(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||me(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 Xw{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&&Sa(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),Sa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Sa(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);Sa(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Sa(this.left,r.reverse())}}}function Sa(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 tm(e){const t={};let r=-1,i,a,n,s,o,l,u;const c=new Xw(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,Zw(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 tr(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Zw(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,p=-1,d=r,m=0,k=0;const v=[k];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;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(k=p+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(),p=v.length;p--;){const g=o.slice(v[p],v[p+1]),b=n.pop();l.push([b,b+g.length-1]),e.splice(b,2,g)}for(l.reverse(),p=-1;++p<l.length;)u[m+l[p][0]]=m+l[p][1],m+=l[p][1]-l[p][0]-1;return u}const Qw={resolve:tS,tokenize:rS},eS={partial:!0,tokenize:nS};function tS(e){return tm(e),e}function rS(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):me(o)?e.check(eS,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 nS(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||me(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 rm(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),p):g===null||g===32||g===41||Os(g)?r(g):(e.enter(i),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),k(g))}function p(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),p(g)):g===null||g===60||me(g)?r(g):(e.consume(g),g===92?m:d)}function m(g){return g===60||g===62||g===92?(e.consume(g),d):d(g)}function k(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++,k):g===41?(e.consume(g),c--,k):g===null||g===32||g===40||Os(g)?r(g):(e.consume(g),g===92?v:k)}function v(g){return g===40||g===41||g===92?(e.consume(g),k):k(g)}}function nm(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):me(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||me(d)||o++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!Me(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}}function im(e,t,r,i,a,n){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(i),e.enter(a),e.consume(p),e.exit(a),s=p===40?41:p,l):r(p)}function l(p){return p===s?(e.enter(a),e.consume(p),e.exit(a),e.exit(i),t):(e.enter(n),u(p))}function u(p){return p===s?(e.exit(n),l(s)):p===null?r(p):me(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Be(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||me(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===s||p===92?(e.consume(p),c):c(p)}}function Ca(e,t){let r;return i;function i(a){return me(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 iS={name:"definition",tokenize:sS},aS={partial:!0,tokenize:oS};function sS(e,t,r){const i=this;let a;return n;function n(d){return e.enter("definition"),s(d)}function s(d){return nm.call(i,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return a=wr(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)?Ca(e,u)(d):u(d)}function u(d){return rm(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(aS,f,f)(d)}function f(d){return Me(d)?Be(e,p,"whitespace")(d):p(d)}function p(d){return d===null||me(d)?(e.exit("definition"),i.parser.defined.push(a),t(d)):r(d)}}function oS(e,t,r){return i;function i(o){return dt(o)?Ca(e,a)(o):r(o)}function a(o){return im(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||me(o)?t(o):r(o)}}const lS={name:"hardBreakEscape",tokenize:uS};function uS(e,t,r){return i;function i(n){return e.enter("hardBreakEscape"),e.consume(n),a}function a(n){return me(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}const cS={name:"headingAtx",resolve:fS,tokenize:dS};function fS(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"},tr(e,i,r-i+1,[["enter",a,t],["enter",n,t],["exit",n,t],["exit",a,t]])),e}function dS(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||me(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 pS=["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"],am=["pre","script","style","textarea"],mS={concrete:!0,name:"htmlFlow",resolveTo:yS,tokenize:vS},hS={partial:!0,tokenize:kS},gS={partial:!0,tokenize:bS};function yS(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 vS(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),p):I===47?(e.consume(I),n=!0,k):I===63?(e.consume(I),a=3,i.interrupt?t:P):Ut(I)?(e.consume(I),s=String.fromCharCode(I),v):r(I)}function p(I){return I===45?(e.consume(I),a=2,d):I===91?(e.consume(I),a=5,o=0,m):Ut(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 m(I){const D="CDATA[";return I===D.charCodeAt(o++)?(e.consume(I),o===D.length?i.interrupt?t:O:m):r(I)}function k(I){return Ut(I)?(e.consume(I),s=String.fromCharCode(I),v):r(I)}function v(I){if(I===null||I===47||I===62||dt(I)){const D=I===47,L=s.toLowerCase();return!D&&!n&&am.includes(L)?(a=1,i.interrupt?t(I):O(I)):pS.includes(s.toLowerCase())?(a=6,D?(e.consume(I),g):i.interrupt?t(I):O(I)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(I):n?b(I):w(I))}return I===45||qt(I)?(e.consume(I),s+=String.fromCharCode(I),v):r(I)}function g(I){return I===62?(e.consume(I),i.interrupt?t:O):r(I)}function b(I){return Me(I)?(e.consume(I),b):S(I)}function w(I){return I===47?(e.consume(I),S):I===58||I===95||Ut(I)?(e.consume(I),E):Me(I)?(e.consume(I),w):S(I)}function E(I){return I===45||I===46||I===58||I===95||qt(I)?(e.consume(I),E):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,C):Me(I)?(e.consume(I),y):x(I)}function C(I){return I===l?(e.consume(I),l=null,_):I===null||me(I)?r(I):(e.consume(I),C)}function x(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),x)}function _(I){return I===47||I===62||Me(I)?w(I):r(I)}function S(I){return I===62?(e.consume(I),A):r(I)}function A(I){return I===null||me(I)?O(I):Me(I)?(e.consume(I),A):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),M):I===63&&a===3?(e.consume(I),P):I===93&&a===5?(e.consume(I),X):me(I)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(hS,B,F)(I)):I===null||me(I)?(e.exit("htmlFlowData"),F(I)):(e.consume(I),O)}function F(I){return e.check(gS,T,B)(I)}function T(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),j}function j(I){return I===null||me(I)?F(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 D=s.toLowerCase();return am.includes(D)?(e.consume(I),M):O(I)}return Ut(I)&&s.length<8?(e.consume(I),s+=String.fromCharCode(I),Y):O(I)}function X(I){return I===93?(e.consume(I),P):O(I)}function P(I){return I===62?(e.consume(I),M):I===45&&a===2?(e.consume(I),P):O(I)}function M(I){return I===null||me(I)?(e.exit("htmlFlowData"),B(I)):(e.consume(I),M)}function B(I){return e.exit("htmlFlow"),t(I)}}function bS(e,t,r){const i=this;return a;function a(s){return me(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 kS(e,t,r){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(wa,t,r)}}const wS={name:"htmlText",tokenize:SS};function SS(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):Ut(P)?(e.consume(P),x):r(P)}function u(P){return P===45?(e.consume(P),c):P===91?(e.consume(P),n=0,m):Ut(P)?(e.consume(P),b):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),p):me(P)?(s=f,J(P)):(e.consume(P),f)}function p(P){return P===45?(e.consume(P),d):f(P)}function d(P){return P===62?q(P):P===45?p(P):f(P)}function m(P){const M="CDATA[";return P===M.charCodeAt(n++)?(e.consume(P),n===M.length?k:m):r(P)}function k(P){return P===null?r(P):P===93?(e.consume(P),v):me(P)?(s=k,J(P)):(e.consume(P),k)}function v(P){return P===93?(e.consume(P),g):k(P)}function g(P){return P===62?q(P):P===93?(e.consume(P),g):k(P)}function b(P){return P===null||P===62?q(P):me(P)?(s=b,J(P)):(e.consume(P),b)}function w(P){return P===null?r(P):P===63?(e.consume(P),E):me(P)?(s=w,J(P)):(e.consume(P),w)}function E(P){return P===62?q(P):w(P)}function h(P){return Ut(P)?(e.consume(P),y):r(P)}function y(P){return P===45||qt(P)?(e.consume(P),y):C(P)}function C(P){return me(P)?(s=C,J(P)):Me(P)?(e.consume(P),C):q(P)}function x(P){return P===45||qt(P)?(e.consume(P),x):P===47||P===62||dt(P)?_(P):r(P)}function _(P){return P===47?(e.consume(P),q):P===58||P===95||Ut(P)?(e.consume(P),S):me(P)?(s=_,J(P)):Me(P)?(e.consume(P),_):q(P)}function S(P){return P===45||P===46||P===58||P===95||qt(P)?(e.consume(P),S):A(P)}function A(P){return P===61?(e.consume(P),O):me(P)?(s=A,J(P)):Me(P)?(e.consume(P),A):_(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,F):me(P)?(s=O,J(P)):Me(P)?(e.consume(P),O):(e.consume(P),T)}function F(P){return P===a?(e.consume(P),a=void 0,j):P===null?r(P):me(P)?(s=F,J(P)):(e.consume(P),F)}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 j(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,X,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):X(P)}function X(P){return e.enter("htmlTextData"),s(P)}}const gu={name:"labelEnd",resolveAll:xS,resolveTo:OS,tokenize:_S},CS={tokenize:PS},ES={tokenize:IS},AS={tokenize:TS};function xS(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&&tr(e,0,e.length,r),e}function OS(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=or(o,e.slice(n+1,n+i+3)),o=or(o,[["enter",c,t]]),o=or(o,Ps(t.parser.constructs.insideSpan.null,e.slice(n+i+4,s-3),t)),o=or(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=or(o,e.slice(s+1)),o=or(o,[["exit",l,t]]),tr(e,n,e.length,o),e}function _S(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(p){return n?n._inactive?f(p):(s=i.parser.defined.includes(wr(i.sliceSerialize({start:n.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):r(p)}function l(p){return p===40?e.attempt(CS,c,s?c:f)(p):p===91?e.attempt(ES,c,s?u:f)(p):s?c(p):f(p)}function u(p){return e.attempt(AS,c,f)(p)}function c(p){return t(p)}function f(p){return n._balanced=!0,r(p)}}function PS(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)?Ca(e,n)(f):n(f)}function n(f){return f===41?c(f):rm(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return dt(f)?Ca(e,l)(f):c(f)}function o(f){return r(f)}function l(f){return f===34||f===39||f===40?im(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return dt(f)?Ca(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 IS(e,t,r){const i=this;return a;function a(o){return nm.call(i,e,n,s,"reference","referenceMarker","referenceString")(o)}function n(o){return i.parser.defined.includes(wr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function TS(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 NS={name:"labelStartImage",resolveAll:gu.resolveAll,tokenize:FS};function FS(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 DS={name:"labelStartLink",resolveAll:gu.resolveAll,tokenize:MS};function MS(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 yu={name:"lineEnding",tokenize:jS};function jS(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Be(e,t,"linePrefix")}}const Is={name:"thematicBreak",tokenize:LS};function LS(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||me(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 Xt={continuation:{tokenize:RS},exit:BS,name:"list",tokenize:zS},qS={partial:!0,tokenize:VS},$S={partial:!0,tokenize:US};function zS(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 m=i.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!i.containerState.marker||d===i.containerState.marker:pu(d)){if(i.containerState.type||(i.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Is,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 pu(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(wa,i.interrupt?r:c,e.attempt(qS,p,f))}function c(d){return i.containerState.initialBlankLine=!0,n++,p(d)}function f(d){return Me(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):r(d)}function p(d){return i.containerState.size=n+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function RS(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(wa,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($S,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Be(e,e.attempt(Xt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function US(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 BS(e){e.exit(this.containerState.type)}function VS(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 sm={name:"setextUnderline",resolveTo:HS,tokenize:KS};function HS(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 KS(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||me(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const WS={tokenize:GS};function GS(e){const t=this,r=e.attempt(wa,i,e.attempt(this.parser.constructs.flowInitial,a,Be(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Qw,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 JS={resolveAll:lm()},YS=om("string"),XS=om("text");function om(e){return{resolveAll:lm(e==="text"?ZS: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 p=-1;if(f)for(;++p<f.length;){const d=f[p];if(!d.previous||d.previous.call(i,i.previous))return!0}return!1}}}function lm(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 ZS(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 QS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:iS},disable:{null:[]},document:{42:Xt,43:Xt,45:Xt,48:Xt,49:Xt,50:Xt,51:Xt,52:Xt,53:Xt,54:Xt,55:Xt,56:Xt,57:Xt,62:Yp},flow:{35:cS,42:Is,45:[sm,Is],60:mS,61:sm,95:Is,96:em,126:em},flowInitial:{[-2]:hu,[-1]:hu,32:hu},insideSpan:{null:[mu,JS]},string:{38:Zp,92:Xp},text:{[-5]:yu,[-4]:yu,[-3]:yu,33:NS,38:Zp,42:mu,60:[Dw,wS],91:DS,92:[lS,Xp],93:gu,95:mu,96:Ww}},Symbol.toStringTag,{value:"Module"}));function eC(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:C(h),check:C(y),consume:b,enter:w,exit:E,interrupt:C(y,{interrupt:!0})},u={code:null,containerState:{},defineSkip:k,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&n.push(t),u;function f(A){return s=or(s,A),v(),s[s.length-1]!==null?[]:(x(t,0),u.events=Ps(n,u.events,u),u.events)}function p(A,O){return rC(d(A),O)}function d(A){return tC(s,A)}function m(){const{_bufferIndex:A,_index:O,line:F,column:T,offset:j}=i;return{_bufferIndex:A,_index:O,line:F,column:T,offset:j}}function k(A){a[A.line]=A.column,S()}function v(){let A;for(;i._index<s.length;){const O=s[i._index];if(typeof O=="string")for(A=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===A&&i._bufferIndex<O.length;)g(O.charCodeAt(i._bufferIndex));else g(O)}}function g(A){c=c(A)}function b(A){me(A)?(i.line++,i.column=1,i.offset+=A===-3?2:1,S()):A!==-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=A}function w(A,O){const F=O||{};return F.type=A,F.start=m(),u.events.push(["enter",F,u]),o.push(F),F}function E(A){const O=o.pop();return O.end=m(),u.events.push(["exit",O,u]),O}function h(A,O){x(A,O.from)}function y(A,O){O.restore()}function C(A,O){return F;function F(T,j,q){let J,Y,X,P;return Array.isArray(T)?B(T):"tokenize"in T?B([T]):M(T);function M(U){return R;function R(H){const G=H!==null&&U[H],Z=H!==null&&U.null,z=[...Array.isArray(G)?G:G?[G]:[],...Array.isArray(Z)?Z:Z?[Z]:[]];return B(z)(H)}}function B(U){return J=U,Y=0,U.length===0?q:I(U[Y])}function I(U){return R;function R(H){return P=_(),X=U,U.partial||(u.currentConstruct=U),U.name&&u.parser.constructs.disable.null.includes(U.name)?L():U.tokenize.call(O?Object.assign(Object.create(u),O):u,l,D,L)(H)}}function D(U){return A(X,P),j}function L(U){return P.restore(),++Y<J.length?I(J[Y]):q}}}function x(A,O){A.resolveAll&&!n.includes(A)&&n.push(A),A.resolve&&tr(u.events,O,u.events.length-O,A.resolve(u.events.slice(O),u)),A.resolveTo&&(u.events=A.resolveTo(u.events,u))}function _(){const A=m(),O=u.previous,F=u.currentConstruct,T=u.events.length,j=Array.from(o);return{from:T,restore:q};function q(){i=A,u.previous=O,u.currentConstruct=F,u.events.length=T,o=j,S()}}function S(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function tC(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 rC(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
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 rC(e){const i={constructs:Hp([ZS,...(e||{}).extensions||[]]),content:a(xw),defined:[],document:a(_w),flow:a(KS),lazy:{},string:a(JS),text:a(YS)};return i;function a(n){return s;function s(o){return QS(i,n,o)}}}function nC(e){for(;!em(e););return e}const lm=/[\0\t\n\r]/g;function iC(){let e=1,t="",r=!0,i;return a;function a(n,s,o){const l=[];let u,c,f,p,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(lm.lastIndex=f,u=lm.exec(n),p=u&&u.index!==void 0?u.index:n.length,d=n.charCodeAt(p),!u){t=n.slice(f);break}if(d===10&&f===p&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),f<p&&(l.push(n.slice(f,p)),e+=p-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=p+1}return o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const aC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function sC(e){return e.replace(aC,oC)}function oC(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),n=a===120||a===88;return Kp(r.slice(n?2:1),n?16:10)}return du(r)||e}const um={}.hasOwnProperty;function lC(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),uC(r)(nC(rC(r).document().write(iC()(e,t,!0))))}function uC(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(Se),autolinkProtocol:_,autolinkEmail:_,atxHeading:n(ie),blockQuote:n(Z),characterEscape:_,characterReference:_,codeFenced:n(z),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:n(z,s),codeText:n($,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(ye),label:s,link:n(Se),listItem:n(Pe),listItemValue:p,listOrdered:n(ke,f),listUnordered:n(ke),paragraph:n(de),reference:I,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:n(ie),strong:n(Ke),thematicBreak:n(ve)},exit:{atxHeading:l(),atxHeadingSequence:h,autolink:l(),autolinkEmail:G,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:L,characterReferenceMarkerNumeric:L,characterReferenceValue:B,characterReference:R,codeFenced:l(v),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:m,codeFlowValue:S,codeIndented:l(g),codeText:l(j),codeTextData:S,data:S,definition:l(),definitionDestinationString:E,definitionLabelString:b,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(F),htmlFlowData:S,htmlText:l(T),htmlTextData:S,image:l(J),label:X,labelText:Y,lineEnding:A,link:l(q),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:D,resourceDestinationString:P,resourceTitleString:M,resource:U,setextHeading:l(x),setextHeadingLineSequence:C,setextHeadingText:y,strong:l(),thematicBreak:l()}};cm(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(Q){let ee={type:"root",children:[]};const te={stack:[ee],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:r},he=[];let ce=-1;for(;++ce<Q.length;)if(Q[ce][1].type==="listOrdered"||Q[ce][1].type==="listUnordered")if(Q[ce][0]==="enter")he.push(ce);else{const pt=he.pop();ce=a(Q,pt,ce)}for(ce=-1;++ce<Q.length;){const pt=t[Q[ce][0]];um.call(pt,Q[ce][1].type)&&pt[Q[ce][1].type].call(Object.assign({sliceSerialize:Q[ce][2].sliceSerialize},te),Q[ce][1])}if(te.tokenStack.length>0){const pt=te.tokenStack[te.tokenStack.length-1];(pt[1]||fm).call(te,void 0,pt[0])}for(ee.position={start:mn(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:mn(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},ce=-1;++ce<t.transforms.length;)ee=t.transforms[ce](ee)||ee;return ee}function a(Q,ee,te){let he=ee-1,ce=-1,pt=!1,qe,We,St,xt;for(;++he<=te;){const ct=Q[he];switch(ct[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ct[0]==="enter"?ce++:ce--,xt=void 0;break}case"lineEndingBlank":{ct[0]==="enter"&&(qe&&!xt&&!ce&&!St&&(St=he),xt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xt=void 0}if(!ce&&ct[0]==="enter"&&ct[1].type==="listItemPrefix"||ce===-1&&ct[0]==="exit"&&(ct[1].type==="listUnordered"||ct[1].type==="listOrdered")){if(qe){let Ct=he;for(We=void 0;Ct--;){const yt=Q[Ct];if(yt[1].type==="lineEnding"||yt[1].type==="lineEndingBlank"){if(yt[0]==="exit")continue;We&&(Q[We][1].type="lineEndingBlank",pt=!0),yt[1].type="lineEnding",We=Ct}else if(!(yt[1].type==="linePrefix"||yt[1].type==="blockQuotePrefix"||yt[1].type==="blockQuotePrefixWhitespace"||yt[1].type==="blockQuoteMarker"||yt[1].type==="listItemIndent"))break}St&&(!We||St<We)&&(qe._spread=!0),qe.end=Object.assign({},We?Q[We][1].start:ct[1].end),Q.splice(We||he,0,["exit",qe,ct[2]]),he++,te++}if(ct[1].type==="listItemPrefix"){const Ct={type:"listItem",_spread:!1,start:Object.assign({},ct[1].start),end:void 0};qe=Ct,Q.splice(he,0,["enter",Ct,ct[2]]),he++,te++,St=void 0,xt=!0}}}return Q[ee][1]._spread=pt,te}function n(Q,ee){return te;function te(he){o.call(this,Q(he),he),ee&&ee.call(this,he)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(Q,ee,te){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([ee,te||void 0]),Q.position={start:mn(ee.start),end:void 0}}function l(Q){return ee;function ee(te){Q&&Q.call(this,te),u.call(this,te)}}function u(Q,ee){const te=this.stack.pop(),he=this.tokenStack.pop();if(he)he[0].type!==Q.type&&(ee?ee.call(this,Q,he[0]):(he[1]||fm).call(this,Q,he[0]));else throw new Error("Cannot close `"+Q.type+"` ("+ba({start:Q.start,end:Q.end})+"): it’s not open");te.position.end=mn(Q.end)}function c(){return fu(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(Q){if(this.data.expectingFirstListItemValue){const ee=this.stack[this.stack.length-2];ee.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function d(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.lang=Q}function m(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.meta=Q}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q.replace(/(\r?\n|\r)$/g,"")}function b(Q){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=wr(this.sliceSerialize(Q)).toLowerCase()}function w(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Q}function E(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Q}function h(Q){const ee=this.stack[this.stack.length-1];if(!ee.depth){const te=this.sliceSerialize(Q).length;ee.depth=te}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function C(Q){const ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function x(){this.data.setextHeadingSlurpLineEnding=void 0}function _(Q){const te=this.stack[this.stack.length-1].children;let he=te[te.length-1];(!he||he.type!=="text")&&(he=ut(),he.position={start:mn(Q.start),end:void 0},te.push(he)),this.stack.push(he)}function S(Q){const ee=this.stack.pop();ee.value+=this.sliceSerialize(Q),ee.position.end=mn(Q.end)}function A(Q){const ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=ee.children[ee.children.length-1];te.position.end=mn(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ee.type)&&(_.call(this,Q),S.call(this,Q))}function O(){this.data.atHardBreak=!0}function F(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function T(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function j(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function q(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=ee,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function J(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=ee,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function Y(Q){const ee=this.sliceSerialize(Q),te=this.stack[this.stack.length-2];te.label=sC(ee),te.identifier=wr(ee).toLowerCase()}function X(){const Q=this.stack[this.stack.length-1],ee=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){const he=Q.children;te.children=he}else te.alt=ee}function P(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Q}function M(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Q}function U(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function D(Q){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=wr(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function L(Q){this.data.characterReferenceType=Q.type}function B(Q){const ee=this.sliceSerialize(Q),te=this.data.characterReferenceType;let he;te?(he=Kp(ee,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):he=du(ee);const ce=this.stack[this.stack.length-1];ce.value+=he}function R(Q){const ee=this.stack.pop();ee.position.end=mn(Q.end)}function H(Q){S.call(this,Q);const ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(Q)}function G(Q){S.call(this,Q);const ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(Q)}function Z(){return{type:"blockquote",children:[]}}function z(){return{type:"code",lang:null,meta:null,value:""}}function $(){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 ye(){return{type:"image",title:null,url:"",alt:null}}function Se(){return{type:"link",title:null,url:"",children:[]}}function ke(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function Pe(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function de(){return{type:"paragraph",children:[]}}function Ke(){return{type:"strong",children:[]}}function ut(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}function mn(e){return{line:e.line,column:e.column,offset:e.offset}}function cm(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?cm(e,i):cC(e,i)}}function cC(e,t){let r;for(r in t)if(um.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+"` ("+ba({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ba({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ba({start:t.start,end:t.end})+") is still open")}function fC(e){const t=this;t.parser=r;function r(i){return lC(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function dC(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 pC(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
24
- `}]}function mC(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 hC(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function gC(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function yC(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=Pi(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 vC(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 bC(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function dm(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 kC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return dm(e,t);const a={src:Pi(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 wC(e,t){const r={src:Pi(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 SC(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 CC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return dm(e,t);const a={href:Pi(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 EC(e,t){const r={href:Pi(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 AC(e,t,r){const i=e.all(t),a=r?xC(r):pm(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:`
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 nC(e){const i={constructs:Kp([QS,...(e||{}).extensions||[]]),content:a(Ow),defined:[],document:a(Pw),flow:a(WS),lazy:{},string:a(YS),text:a(XS)};return i;function a(n){return s;function s(o){return eC(i,n,o)}}}function iC(e){for(;!tm(e););return e}const um=/[\0\t\n\r]/g;function aC(){let e=1,t="",r=!0,i;return a;function a(n,s,o){const l=[];let u,c,f,p,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(um.lastIndex=f,u=um.exec(n),p=u&&u.index!==void 0?u.index:n.length,d=n.charCodeAt(p),!u){t=n.slice(f);break}if(d===10&&f===p&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),f<p&&(l.push(n.slice(f,p)),e+=p-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=p+1}return o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const sC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function oC(e){return e.replace(sC,lC)}function lC(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),n=a===120||a===88;return Wp(r.slice(n?2:1),n?16:10)}return du(r)||e}const cm={}.hasOwnProperty;function uC(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),cC(r)(iC(nC(r).document().write(aC()(e,t,!0))))}function cC(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(Se),autolinkProtocol:_,autolinkEmail:_,atxHeading:n(ie),blockQuote:n(Z),characterEscape:_,characterReference:_,codeFenced:n(z),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:n(z,s),codeText:n($,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(ye),label:s,link:n(Se),listItem:n(Pe),listItemValue:p,listOrdered:n(ke,f),listUnordered:n(ke),paragraph:n(de),reference:I,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:n(ie),strong:n(Ke),thematicBreak:n(ve)},exit:{atxHeading:l(),atxHeadingSequence:h,autolink:l(),autolinkEmail:G,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:L,characterReferenceMarkerNumeric:L,characterReferenceValue:U,characterReference:R,codeFenced:l(v),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:m,codeFlowValue:S,codeIndented:l(g),codeText:l(j),codeTextData:S,data:S,definition:l(),definitionDestinationString:E,definitionLabelString:b,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(F),htmlFlowData:S,htmlText:l(T),htmlTextData:S,image:l(J),label:X,labelText:Y,lineEnding:A,link:l(q),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:D,resourceDestinationString:P,resourceTitleString:M,resource:B,setextHeading:l(x),setextHeadingLineSequence:C,setextHeadingText:y,strong:l(),thematicBreak:l()}};fm(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(Q){let ee={type:"root",children:[]};const te={stack:[ee],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:r},he=[];let ce=-1;for(;++ce<Q.length;)if(Q[ce][1].type==="listOrdered"||Q[ce][1].type==="listUnordered")if(Q[ce][0]==="enter")he.push(ce);else{const pt=he.pop();ce=a(Q,pt,ce)}for(ce=-1;++ce<Q.length;){const pt=t[Q[ce][0]];cm.call(pt,Q[ce][1].type)&&pt[Q[ce][1].type].call(Object.assign({sliceSerialize:Q[ce][2].sliceSerialize},te),Q[ce][1])}if(te.tokenStack.length>0){const pt=te.tokenStack[te.tokenStack.length-1];(pt[1]||dm).call(te,void 0,pt[0])}for(ee.position={start:mn(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:mn(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},ce=-1;++ce<t.transforms.length;)ee=t.transforms[ce](ee)||ee;return ee}function a(Q,ee,te){let he=ee-1,ce=-1,pt=!1,qe,We,St,xt;for(;++he<=te;){const ct=Q[he];switch(ct[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ct[0]==="enter"?ce++:ce--,xt=void 0;break}case"lineEndingBlank":{ct[0]==="enter"&&(qe&&!xt&&!ce&&!St&&(St=he),xt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xt=void 0}if(!ce&&ct[0]==="enter"&&ct[1].type==="listItemPrefix"||ce===-1&&ct[0]==="exit"&&(ct[1].type==="listUnordered"||ct[1].type==="listOrdered")){if(qe){let Ct=he;for(We=void 0;Ct--;){const yt=Q[Ct];if(yt[1].type==="lineEnding"||yt[1].type==="lineEndingBlank"){if(yt[0]==="exit")continue;We&&(Q[We][1].type="lineEndingBlank",pt=!0),yt[1].type="lineEnding",We=Ct}else if(!(yt[1].type==="linePrefix"||yt[1].type==="blockQuotePrefix"||yt[1].type==="blockQuotePrefixWhitespace"||yt[1].type==="blockQuoteMarker"||yt[1].type==="listItemIndent"))break}St&&(!We||St<We)&&(qe._spread=!0),qe.end=Object.assign({},We?Q[We][1].start:ct[1].end),Q.splice(We||he,0,["exit",qe,ct[2]]),he++,te++}if(ct[1].type==="listItemPrefix"){const Ct={type:"listItem",_spread:!1,start:Object.assign({},ct[1].start),end:void 0};qe=Ct,Q.splice(he,0,["enter",Ct,ct[2]]),he++,te++,St=void 0,xt=!0}}}return Q[ee][1]._spread=pt,te}function n(Q,ee){return te;function te(he){o.call(this,Q(he),he),ee&&ee.call(this,he)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(Q,ee,te){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([ee,te||void 0]),Q.position={start:mn(ee.start),end:void 0}}function l(Q){return ee;function ee(te){Q&&Q.call(this,te),u.call(this,te)}}function u(Q,ee){const te=this.stack.pop(),he=this.tokenStack.pop();if(he)he[0].type!==Q.type&&(ee?ee.call(this,Q,he[0]):(he[1]||dm).call(this,Q,he[0]));else throw new Error("Cannot close `"+Q.type+"` ("+ba({start:Q.start,end:Q.end})+"): it’s not open");te.position.end=mn(Q.end)}function c(){return fu(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(Q){if(this.data.expectingFirstListItemValue){const ee=this.stack[this.stack.length-2];ee.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function d(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.lang=Q}function m(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.meta=Q}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q.replace(/(\r?\n|\r)$/g,"")}function b(Q){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=wr(this.sliceSerialize(Q)).toLowerCase()}function w(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Q}function E(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Q}function h(Q){const ee=this.stack[this.stack.length-1];if(!ee.depth){const te=this.sliceSerialize(Q).length;ee.depth=te}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function C(Q){const ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function x(){this.data.setextHeadingSlurpLineEnding=void 0}function _(Q){const te=this.stack[this.stack.length-1].children;let he=te[te.length-1];(!he||he.type!=="text")&&(he=ut(),he.position={start:mn(Q.start),end:void 0},te.push(he)),this.stack.push(he)}function S(Q){const ee=this.stack.pop();ee.value+=this.sliceSerialize(Q),ee.position.end=mn(Q.end)}function A(Q){const ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=ee.children[ee.children.length-1];te.position.end=mn(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ee.type)&&(_.call(this,Q),S.call(this,Q))}function O(){this.data.atHardBreak=!0}function F(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function T(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function j(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function q(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=ee,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function J(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=ee,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function Y(Q){const ee=this.sliceSerialize(Q),te=this.stack[this.stack.length-2];te.label=oC(ee),te.identifier=wr(ee).toLowerCase()}function X(){const Q=this.stack[this.stack.length-1],ee=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){const he=Q.children;te.children=he}else te.alt=ee}function P(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Q}function M(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Q}function B(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function D(Q){const ee=this.resume(),te=this.stack[this.stack.length-1];te.label=ee,te.identifier=wr(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function L(Q){this.data.characterReferenceType=Q.type}function U(Q){const ee=this.sliceSerialize(Q),te=this.data.characterReferenceType;let he;te?(he=Wp(ee,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):he=du(ee);const ce=this.stack[this.stack.length-1];ce.value+=he}function R(Q){const ee=this.stack.pop();ee.position.end=mn(Q.end)}function H(Q){S.call(this,Q);const ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(Q)}function G(Q){S.call(this,Q);const ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(Q)}function Z(){return{type:"blockquote",children:[]}}function z(){return{type:"code",lang:null,meta:null,value:""}}function $(){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 ye(){return{type:"image",title:null,url:"",alt:null}}function Se(){return{type:"link",title:null,url:"",children:[]}}function ke(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function Pe(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function de(){return{type:"paragraph",children:[]}}function Ke(){return{type:"strong",children:[]}}function ut(){return{type:"text",value:""}}function ve(){return{type:"thematicBreak"}}}function mn(e){return{line:e.line,column:e.column,offset:e.offset}}function fm(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?fm(e,i):fC(e,i)}}function fC(e,t){let r;for(r in t)if(cm.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 dm(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ba({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ba({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ba({start:t.start,end:t.end})+") is still open")}function dC(e){const t=this;t.parser=r;function r(i){return uC(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function pC(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 mC(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
24
+ `}]}function hC(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 gC(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function yC(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function vC(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=Pi(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 bC(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 kC(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function pm(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 wC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return pm(e,t);const a={src:Pi(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 SC(e,t){const r={src:Pi(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 CC(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 EC(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return pm(e,t);const a={href:Pi(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 AC(e,t){const r={href:Pi(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 xC(e,t,r){const i=e.all(t),a=r?OC(r):mm(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
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 xC(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=pm(r[i])}return t}function pm(e){const t=e.spread;return t??e.children.length>1}function OC(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 _C(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function PC(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function IC(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function TC(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=au(t.children[1]),l=Fp(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 NC(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],p={},d=s?s[l]:void 0;d&&(p.align=d);let m={type:"element",tagName:n,properties:p,children:[]};f&&(m.children=e.all(f),e.patch(f,m),m=e.applyData(f,m)),u.push(m)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function FC(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const mm=9,hm=32;function DC(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),a=0;const n=[];for(;i;)n.push(gm(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=r.exec(t);return n.push(gm(t.slice(a),a>0,!1)),n.join("")}function gm(e,t,r){let i=0,a=e.length;if(t){let n=e.codePointAt(i);for(;n===mm||n===hm;)i++,n=e.codePointAt(i)}if(r){let n=e.codePointAt(a-1);for(;n===mm||n===hm;)a--,n=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function MC(e,t){const r={type:"text",value:DC(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function jC(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const LC={blockquote:dC,break:pC,code:mC,delete:hC,emphasis:gC,footnoteReference:yC,heading:vC,html:bC,imageReference:kC,image:wC,inlineCode:SC,linkReference:CC,link:EC,listItem:AC,list:OC,paragraph:_C,root:PC,strong:IC,table:TC,tableCell:FC,tableRow:NC,text:MC,thematicBreak:jC,toml:Ts,yaml:Ts,definition:Ts,footnoteDefinition:Ts};function Ts(){}const ym=-1,Ns=0,Ea=1,Fs=2,vu=3,bu=4,ku=5,wu=6,vm=7,bm=8,qC=typeof self=="object"?self:globalThis,km=(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 qC[e](t)},$C=(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 Ns:case ym:return r(s,a);case Ea:{const o=r([],a);for(const l of s)o.push(i(l));return o}case Fs:{const o=r({},a);for(const[l,u]of s)o[i(l)]=i(u);return o}case vu:return r(new Date(s),a);case bu:{const{source:o,flags:l}=s;return r(new RegExp(o,l),a)}case ku:{const o=r(new Map,a);for(const[l,u]of s)o.set(i(l),i(u));return o}case wu:{const o=r(new Set,a);for(const l of s)o.add(i(l));return o}case vm:{const{name:o,message:l}=s;return r(km(o,l),a)}case bm: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(km(n,s),a)};return i},wm=e=>$C(new Map,e)(0),Ti="",{toString:zC}={},{keys:RC}=Object,Aa=e=>{const t=typeof e;if(t!=="object"||!e)return[Ns,t];const r=zC.call(e).slice(8,-1);switch(r){case"Array":return[Ea,Ti];case"Object":return[Fs,Ti];case"Date":return[vu,Ti];case"RegExp":return[bu,Ti];case"Map":return[ku,Ti];case"Set":return[wu,Ti];case"DataView":return[Ea,r]}return r.includes("Array")?[Ea,r]:r.includes("Error")?[vm,r]:[Fs,r]},Ds=([e,t])=>e===Ns&&(t==="function"||t==="symbol"),BC=(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]=Aa(s);switch(o){case Ns:{let c=s;switch(l){case"bigint":o=bm,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([ym],s)}return a([o,c],s)}case Ea:{if(l){let p=s;return l==="DataView"?p=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(s)),a([l,[...p]],s)}const c=[],f=a([o,c],s);for(const p of s)c.push(n(p));return f}case Fs:{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 p of RC(s))(e||!Ds(Aa(s[p])))&&c.push([n(p),n(s[p])]);return f}case vu:return a([o,s.toISOString()],s);case bu:{const{source:c,flags:f}=s;return a([o,{source:c,flags:f}],s)}case ku:{const c=[],f=a([o,c],s);for(const[p,d]of s)(e||!(Ds(Aa(p))||Ds(Aa(d))))&&c.push([n(p),n(d)]);return f}case wu:{const c=[],f=a([o,c],s);for(const p of s)(e||!Ds(Aa(p)))&&c.push(n(p));return f}}const{message:u}=s;return a([o,{name:l,message:u}],s)};return n},Sm=(e,{json:t,lossy:r}={})=>{const i=[];return BC(!(t||r),!!t,new Map,i)(e),i},Ms=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?wm(Sm(e,t)):structuredClone(e):(e,t)=>wm(Sm(e,t));function UC(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 VC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function HC(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||UC,i=e.options.footnoteBackLabel||VC,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(),p=Pi(f.toLowerCase());let d=0;const m=[],k=e.footnoteCounts.get(f);for(;k!==void 0&&++d<=k;){m.length>0&&m.push({type:"text",value:" "});let b=typeof r=="string"?r:r(l,d);typeof b=="string"&&(b={type:"text",value:b}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,d),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const v=c[c.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(...m)}else c.push(...m);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+p},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:{...Ms(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
27
+ `});const u={type:"element",tagName:"li",properties:n,children:s};return e.patch(t,u),e.applyData(t,u)}function OC(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=mm(r[i])}return t}function mm(e){const t=e.spread;return t??e.children.length>1}function _C(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 PC(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function IC(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function TC(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function NC(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=au(t.children[1]),l=Dp(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],p={},d=s?s[l]:void 0;d&&(p.align=d);let m={type:"element",tagName:n,properties:p,children:[]};f&&(m.children=e.all(f),e.patch(f,m),m=e.applyData(f,m)),u.push(m)}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 hm=9,gm=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(ym(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=r.exec(t);return n.push(ym(t.slice(a),a>0,!1)),n.join("")}function ym(e,t,r){let i=0,a=e.length;if(t){let n=e.codePointAt(i);for(;n===hm||n===gm;)i++,n=e.codePointAt(i)}if(r){let n=e.codePointAt(a-1);for(;n===hm||n===gm;)a--,n=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function jC(e,t){const r={type:"text",value:MC(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function LC(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const qC={blockquote:pC,break:mC,code:hC,delete:gC,emphasis:yC,footnoteReference:vC,heading:bC,html:kC,imageReference:wC,image:SC,inlineCode:CC,linkReference:EC,link:AC,listItem:xC,list:_C,paragraph:PC,root:IC,strong:TC,table:NC,tableCell:DC,tableRow:FC,text:jC,thematicBreak:LC,toml:Ts,yaml:Ts,definition:Ts,footnoteDefinition:Ts};function Ts(){}const vm=-1,Ns=0,Ea=1,Fs=2,vu=3,bu=4,ku=5,wu=6,bm=7,km=8,$C=typeof self=="object"?self:globalThis,wm=(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 $C[e](t)},zC=(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 Ns:case vm:return r(s,a);case Ea:{const o=r([],a);for(const l of s)o.push(i(l));return o}case Fs:{const o=r({},a);for(const[l,u]of s)o[i(l)]=i(u);return o}case vu:return r(new Date(s),a);case bu:{const{source:o,flags:l}=s;return r(new RegExp(o,l),a)}case ku:{const o=r(new Map,a);for(const[l,u]of s)o.set(i(l),i(u));return o}case wu:{const o=r(new Set,a);for(const l of s)o.add(i(l));return o}case bm:{const{name:o,message:l}=s;return r(wm(o,l),a)}case km: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(wm(n,s),a)};return i},Sm=e=>zC(new Map,e)(0),Ti="",{toString:RC}={},{keys:UC}=Object,Aa=e=>{const t=typeof e;if(t!=="object"||!e)return[Ns,t];const r=RC.call(e).slice(8,-1);switch(r){case"Array":return[Ea,Ti];case"Object":return[Fs,Ti];case"Date":return[vu,Ti];case"RegExp":return[bu,Ti];case"Map":return[ku,Ti];case"Set":return[wu,Ti];case"DataView":return[Ea,r]}return r.includes("Array")?[Ea,r]:r.includes("Error")?[bm,r]:[Fs,r]},Ds=([e,t])=>e===Ns&&(t==="function"||t==="symbol"),BC=(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]=Aa(s);switch(o){case Ns:{let c=s;switch(l){case"bigint":o=km,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([vm],s)}return a([o,c],s)}case Ea:{if(l){let p=s;return l==="DataView"?p=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(s)),a([l,[...p]],s)}const c=[],f=a([o,c],s);for(const p of s)c.push(n(p));return f}case Fs:{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 p of UC(s))(e||!Ds(Aa(s[p])))&&c.push([n(p),n(s[p])]);return f}case vu:return a([o,s.toISOString()],s);case bu:{const{source:c,flags:f}=s;return a([o,{source:c,flags:f}],s)}case ku:{const c=[],f=a([o,c],s);for(const[p,d]of s)(e||!(Ds(Aa(p))||Ds(Aa(d))))&&c.push([n(p),n(d)]);return f}case wu:{const c=[],f=a([o,c],s);for(const p of s)(e||!Ds(Aa(p)))&&c.push(n(p));return f}}const{message:u}=s;return a([o,{name:l,message:u}],s)};return n},Cm=(e,{json:t,lossy:r}={})=>{const i=[];return BC(!(t||r),!!t,new Map,i)(e),i},Ms=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Sm(Cm(e,t)):structuredClone(e):(e,t)=>Sm(Cm(e,t));function VC(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 HC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function KC(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||VC,i=e.options.footnoteBackLabel||HC,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(),p=Pi(f.toLowerCase());let d=0;const m=[],k=e.footnoteCounts.get(f);for(;k!==void 0&&++d<=k;){m.length>0&&m.push({type:"text",value:" "});let b=typeof r=="string"?r:r(l,d);typeof b=="string"&&(b={type:"text",value:b}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,d),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const v=c[c.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(...m)}else c.push(...m);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+p},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:{...Ms(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
28
28
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
29
- `}]}}const js=(function(e){if(e==null)return JC;if(typeof e=="function")return Ls(e);if(typeof e=="object")return Array.isArray(e)?KC(e):WC(e);if(typeof e=="string")return GC(e);throw new Error("Expected function, string, or object as test")});function KC(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=js(e[r]);return Ls(i);function i(...a){let n=-1;for(;++n<t.length;)if(t[n].apply(this,a))return!0;return!1}}function WC(e){const t=e;return Ls(r);function r(i){const a=i;let n;for(n in e)if(a[n]!==t[n])return!1;return!0}}function GC(e){return Ls(t);function t(r){return r&&r.type===e}}function Ls(e){return t;function t(r,i,a){return!!(YC(r)&&e.call(this,r,typeof i=="number"?i:void 0,a||void 0))}}function JC(){return!0}function YC(e){return e!==null&&typeof e=="object"&&"type"in e}function WR(e){return e}const Cm=[],XC=!0,Su=!1,ZC="skip";function Em(e,t,r,i){let a;typeof t=="function"&&typeof r!="function"?(i=r,r=t):a=t;const n=js(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(p,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=Cm,m,k,v;if((!t||n(l,u,c[c.length-1]||void 0))&&(d=QC(r(l,c)),d[0]===Su))return d;if("children"in l&&l.children){const g=l;if(g.children&&d[0]!==ZC)for(k=(i?g.children.length:-1)+s,v=c.concat(g);k>-1&&k<g.children.length;){const b=g.children[k];if(m=o(b,k,v)(),m[0]===Su)return m;k=typeof m[1]=="number"?m[1]:k+s}}return d}}}function QC(e){return Array.isArray(e)?e:typeof e=="number"?[XC,e]:e==null?Cm:[e]}function Cu(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),Em(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 Eu={}.hasOwnProperty,eE={};function tE(e,t){const r=t||eE,i=new Map,a=new Map,n=new Map,s={...LC,...r.handlers},o={all:u,applyData:nE,definitionById:i,footnoteById:a,footnoteCounts:n,footnoteOrder:[],handlers:s,one:l,options:r,patch:rE,wrap:aE};return Cu(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?i:a,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),o;function l(c,f){const p=c.type,d=o.handlers[p];if(Eu.call(o.handlers,p)&&d)return d(o,c,f);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in c){const{children:k,...v}=c,g=Ms(v);return g.children=o.all(c),g}return Ms(c)}return(o.options.unknownHandler||iE)(o,c,f)}function u(c){const f=[];if("children"in c){const p=c.children;let d=-1;for(;++d<p.length;){const m=o.one(p[d],c);if(m){if(d&&p[d-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Am(m.value)),!Array.isArray(m)&&m.type==="element")){const k=m.children[0];k&&k.type==="text"&&(k.value=Am(k.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}}function rE(e,t){e.position&&(t.position=Z0(e))}function nE(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,Ms(n)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function iE(e,t){const r=t.data||{},i="value"in t&&!(Eu.call(r,"hProperties")||Eu.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 aE(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
29
+ `}]}}const js=(function(e){if(e==null)return YC;if(typeof e=="function")return Ls(e);if(typeof e=="object")return Array.isArray(e)?WC(e):GC(e);if(typeof e=="string")return JC(e);throw new Error("Expected function, string, or object as test")});function WC(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=js(e[r]);return Ls(i);function i(...a){let n=-1;for(;++n<t.length;)if(t[n].apply(this,a))return!0;return!1}}function GC(e){const t=e;return Ls(r);function r(i){const a=i;let n;for(n in e)if(a[n]!==t[n])return!1;return!0}}function JC(e){return Ls(t);function t(r){return r&&r.type===e}}function Ls(e){return t;function t(r,i,a){return!!(XC(r)&&e.call(this,r,typeof i=="number"?i:void 0,a||void 0))}}function YC(){return!0}function XC(e){return e!==null&&typeof e=="object"&&"type"in e}function GR(e){return e}const Em=[],ZC=!0,Su=!1,QC="skip";function Am(e,t,r,i){let a;typeof t=="function"&&typeof r!="function"?(i=r,r=t):a=t;const n=js(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(p,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=Em,m,k,v;if((!t||n(l,u,c[c.length-1]||void 0))&&(d=eE(r(l,c)),d[0]===Su))return d;if("children"in l&&l.children){const g=l;if(g.children&&d[0]!==QC)for(k=(i?g.children.length:-1)+s,v=c.concat(g);k>-1&&k<g.children.length;){const b=g.children[k];if(m=o(b,k,v)(),m[0]===Su)return m;k=typeof m[1]=="number"?m[1]:k+s}}return d}}}function eE(e){return Array.isArray(e)?e:typeof e=="number"?[ZC,e]:e==null?Em:[e]}function Cu(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),Am(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 Eu={}.hasOwnProperty,tE={};function rE(e,t){const r=t||tE,i=new Map,a=new Map,n=new Map,s={...qC,...r.handlers},o={all:u,applyData:iE,definitionById:i,footnoteById:a,footnoteCounts:n,footnoteOrder:[],handlers:s,one:l,options:r,patch:nE,wrap:sE};return Cu(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?i:a,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),o;function l(c,f){const p=c.type,d=o.handlers[p];if(Eu.call(o.handlers,p)&&d)return d(o,c,f);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in c){const{children:k,...v}=c,g=Ms(v);return g.children=o.all(c),g}return Ms(c)}return(o.options.unknownHandler||aE)(o,c,f)}function u(c){const f=[];if("children"in c){const p=c.children;let d=-1;for(;++d<p.length;){const m=o.one(p[d],c);if(m){if(d&&p[d-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=xm(m.value)),!Array.isArray(m)&&m.type==="element")){const k=m.children[0];k&&k.type==="text"&&(k.value=xm(k.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}}function nE(e,t){e.position&&(t.position=Q0(e))}function iE(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,Ms(n)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function aE(e,t){const r=t.data||{},i="value"in t&&!(Eu.call(r,"hProperties")||Eu.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 sE(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
30
30
  `});++i<e.length;)i&&r.push({type:"text",value:`
31
31
  `}),r.push(e[i]);return t&&e.length>0&&r.push({type:"text",value:`
32
- `}),r}function Am(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function xm(e,t){const r=tE(e,t),i=r.one(e,void 0),a=HC(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 sE(e,t){return e&&"run"in e?async function(r,i){const a=xm(r,{file:i,...t});await e.run(a,i)}:function(r,i){return xm(r,{file:i,...e||t})}}function Om(e){if(e)throw e}var Au,_m;function oE(){if(_m)return Au;_m=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 p;for(p in u);return typeof p>"u"||e.call(u,p)},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 Au=function l(){var u,c,f,p,d,m,k=arguments[0],v=1,g=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<g;++v)if(u=arguments[v],u!=null)for(c in u)f=o(k,c),p=o(u,c),k!==p&&(b&&p&&(n(p)||(d=a(p)))?(d?(d=!1,m=f&&a(f)?f:[]):m=f&&n(f)?f:{},s(k,{name:c,newValue:l(b,m,p)})):typeof p<"u"&&s(k,{name:c,newValue:p}));return k},Au}var lE=oE();const xu=jr(lE);function Ou(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 uE(){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?cE(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 cE(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 qr={basename:fE,dirname:dE,extname:pE,join:mE,sep:"/"};function fE(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xa(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 dE(e){if(xa(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 pE(e){xa(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 mE(...e){let t=-1,r;for(;++t<e.length;)xa(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":hE(r)}function hE(e){xa(e);const t=e.codePointAt(0)===47;let r=gE(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function gE(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 xa(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const yE={cwd:vE};function vE(){return"/"}function _u(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function bE(e){if(typeof e=="string")e=new URL(e);else if(!_u(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 kE(e)}function kE(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 Pu=["history","path","basename","stem","extname","dirname"];class Pm{constructor(t){let r;t?_u(t)?r={path:t}:typeof t=="string"||wE(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":yE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Pu.length;){const n=Pu[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)Pu.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?qr.basename(this.path):void 0}set basename(t){Tu(t,"basename"),Iu(t,"basename"),this.path=qr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?qr.dirname(this.path):void 0}set dirname(t){Im(this.basename,"dirname"),this.path=qr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?qr.extname(this.path):void 0}set extname(t){if(Iu(t,"extname"),Im(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=qr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){_u(t)&&(t=bE(t)),Tu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?qr.basename(this.path,this.extname):void 0}set stem(t){Tu(t,"stem"),Iu(t,"stem"),this.path=qr.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 Lt(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 Iu(e,t){if(e&&e.includes(qr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+qr.sep+"`")}function Tu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Im(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function wE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const SE=(function(e){const i=this.constructor.prototype,a=i[e],n=function(){return a.apply(n,arguments)};return Object.setPrototypeOf(n,i),n}),CE={}.hasOwnProperty;class Nu extends SE{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=uE()}copy(){const t=new Nu;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(xu(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Mu("data",this.frozen),this.namespace[t]=r,this):CE.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=qs(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=qs(t),l=i.parse(o);i.run(l,o,function(c,f,p){if(c||!f||!p)return u(c);const d=f,m=i.stringify(d,p);xE(m)?p.value=m:p.result=m,u(c,p)});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),Nm("processSync","process",r),i;function a(n,s){r=!0,Om(n),i=s}}run(t,r,i){Tm(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=qs(r);a.run(t,l,u);function u(c,f,p){const d=f||t;c?o(c):s?s(d):i(void 0,d,p)}}}runSync(t,r){let i=!1,a;return this.run(t,r,n),Nm("runSync","run",i),a;function n(s,o){Om(s),a=o,i=!0}}stringify(t,r){this.freeze();const i=qs(r),a=this.compiler||this.Compiler;return Du("stringify",a),Tm(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=xu(!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,p=-1;for(;++f<i.length;)if(i[f][0]===u){p=f;break}if(p===-1)i.push([u,...c]);else if(c.length>0){let[d,...m]=c;const k=i[p][1];Ou(k)&&Ou(d)&&(d=xu(!0,k,d)),i[p]=[u,d,...m]}}}}const EE=new Nu().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 Tm(e){if(!Ou(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Nm(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function qs(e){return AE(e)?e:new Pm(e)}function AE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function xE(e){return typeof e=="string"||OE(e)}function OE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _E="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Fm=[],Dm={allowDangerousHtml:!0},PE=/^(https?|ircs?|mailto|xmpp)$/i,IE=[{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 TE(e){const t=NE(e),r=FE(e);return DE(t.runSync(t.parse(r),r),e)}function NE(e){const t=e.rehypePlugins||Fm,r=e.remarkPlugins||Fm,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Dm}:Dm;return EE().use(fC).use(r).use(sE,i).use(t)}function FE(e){const t=e.children||"",r=new Pm;return typeof t=="string"&&(r.value=t),r}function DE(e,t){const r=t.allowedElements,i=t.allowElement,a=t.components,n=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||ME;for(const c of IE)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+_E+c.id,void 0);return Cu(e,u),nw(e,{Fragment:N.Fragment,components:a,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function u(c,f,p){if(c.type==="raw"&&p&&typeof f=="number")return s?p.children.splice(f,1):p.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let d;for(d in cu)if(Object.hasOwn(cu,d)&&Object.hasOwn(c.properties,d)){const m=c.properties[d],k=cu[d];(k===null||k.includes(c.tagName))&&(c.properties[d]=l(String(m||""),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,p)),d&&p&&typeof f=="number")return o&&c.children?p.children.splice(f,1,...c.children):p.children.splice(f,1),f}}}function ME(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||PE.test(e.slice(0,t))?e:""}function Mm(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 jE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function LE(e,t,r){const a=js((r||{}).ignore||[]),n=qE(t);let s=-1;for(;++s<n.length;)Em(e,"text",o);function o(u,c){let f=-1,p;for(;++f<c.length;){const d=c[f],m=p?p.children:void 0;if(a(d,m?m.indexOf(d):void 0,p))return;p=d}if(p)return l(u,c)}function l(u,c){const f=c[c.length-1],p=n[s][0],d=n[s][1];let m=0;const v=f.children.indexOf(u);let g=!1,b=[];p.lastIndex=0;let w=p.exec(u.value);for(;w;){const E=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?p.lastIndex=E+1:(m!==E&&b.push({type:"text",value:u.value.slice(m,E)}),Array.isArray(y)?b.push(...y):y&&b.push(y),m=E+w[0].length,g=!0),!p.global)break;w=p.exec(u.value)}return g?(m<u.value.length&&b.push({type:"text",value:u.value.slice(m)}),f.children.splice(v,1,...b)):b=[u],v+b.length}}function qE(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([$E(a[0]),zE(a[1])])}return t}function $E(e){return typeof e=="string"?new RegExp(jE(e),"g"):e}function zE(e){return typeof e=="function"?e:function(){return e}}const ju="phrasing",Lu=["autolink","link","image","label"];function RE(){return{transforms:[GE],enter:{literalAutolink:UE,literalAutolinkEmail:qu,literalAutolinkHttp:qu,literalAutolinkWww:qu},exit:{literalAutolink:WE,literalAutolinkEmail:KE,literalAutolinkHttp:VE,literalAutolinkWww:HE}}}function BE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ju,notInConstruct:Lu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ju,notInConstruct:Lu},{character:":",before:"[ps]",after:"\\/",inConstruct:ju,notInConstruct:Lu}]}}function UE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function qu(e){this.config.enter.autolinkProtocol.call(this,e)}function VE(e){this.config.exit.autolinkProtocol.call(this,e)}function HE(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 KE(e){this.config.exit.autolinkEmail.call(this,e)}function WE(e){this.exit(e)}function GE(e){LE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,JE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),YE]],{ignore:["link","linkReference"]})}function JE(e,t,r,i,a){let n="";if(!jm(a)||(/^w/i.test(t)&&(r=t+r,t="",n="http://"),!XE(r)))return!1;const s=ZE(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 YE(e,t,r,i){return!jm(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function XE(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 ZE(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=Mm(e,"(");let n=Mm(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 jm(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Gn(r)||_s(r))&&(!t||r!==47)}Lm.peek=oA;function QE(){this.buffer()}function eA(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function tA(){this.buffer()}function rA(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function nA(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=wr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function iA(e){this.exit(e)}function aA(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=wr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function sA(e){this.exit(e)}function oA(){return"["}function Lm(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 lA(){return{enter:{gfmFootnoteCallString:QE,gfmFootnoteCall:eA,gfmFootnoteDefinitionLabelString:tA,gfmFootnoteDefinition:rA},exit:{gfmFootnoteCallString:nA,gfmFootnoteCall:iA,gfmFootnoteDefinitionLabelString:aA,gfmFootnoteDefinition:sA}}}function uA(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:Lm},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?qm:cA))),u(),l}}function cA(e,t,r){return t===0?e:qm(e,t,r)}function qm(e,t,r){return(r?"":" ")+e}const fA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];$m.peek=gA;function dA(){return{canContainEols:["delete"],enter:{strikethrough:mA},exit:{strikethrough:hA}}}function pA(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:fA}],handlers:{delete:$m}}}function mA(e){this.enter({type:"delete",children:[]},e)}function hA(e){this.exit(e)}function $m(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 gA(){return"~"}function yA(e){return e.length}function vA(e,t){const r=t||{},i=(r.align||[]).concat(),a=r.stringLength||yA,n=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const k=[],v=[];let g=-1;for(e[c].length>u&&(u=e[c].length);++g<e[c].length;){const b=bA(e[c][g]);if(r.alignDelimiters!==!1){const w=a(b);v[g]=w,(l[g]===void 0||w>l[g])&&(l[g]=w)}k.push(b)}s[c]=k,o[c]=v}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<u;)n[f]=zm(i[f]);else{const k=zm(i);for(;++f<u;)n[f]=k}f=-1;const p=[],d=[];for(;++f<u;){const k=n[f];let v="",g="";k===99?(v=":",g=":"):k===108?v=":":k===114&&(g=":");let b=r.alignDelimiters===!1?1:Math.max(1,l[f]-v.length-g.length);const w=v+"-".repeat(b)+g;r.alignDelimiters!==!1&&(b=v.length+b+g.length,b>l[f]&&(l[f]=b),d[f]=b),p[f]=w}s.splice(1,0,p),o.splice(1,0,d),c=-1;const m=[];for(;++c<s.length;){const k=s[c],v=o[c];f=-1;const g=[];for(;++f<u;){const b=k[f]||"";let w="",E="";if(r.alignDelimiters!==!1){const h=l[f]-(v[f]||0),y=n[f];y===114?w=" ".repeat(h):y===99?h%2?(w=" ".repeat(h/2+.5),E=" ".repeat(h/2-.5)):(w=" ".repeat(h/2),E=w):E=" ".repeat(h)}r.delimiterStart!==!1&&!f&&g.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&b==="")&&(r.delimiterStart!==!1||f)&&g.push(" "),r.alignDelimiters!==!1&&g.push(w),g.push(b),r.alignDelimiters!==!1&&g.push(E),r.padding!==!1&&g.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&g.push("|")}m.push(r.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return m.join(`
35
- `)}function bA(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 kA(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()),wA);return a(),s}function wA(e,t,r){return">"+(r?"":" ")+e}function SA(e,t){return Rm(e,t.inConstruct,!0)&&!Rm(e,t.notInConstruct,!1)}function Rm(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 Bm(e,t,r,i){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
36
- `&&SA(r.stack,r.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
37
- `}function CA(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 EA(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 AA(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 xA(e,t,r,i){const a=AA(r),n=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(EA(e,r)){const f=r.enter("codeIndented"),p=r.indentLines(n,OA);return f(),p}const o=r.createTracker(i),l=a.repeat(Math.max(CA(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:`
32
+ `}),r}function xm(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Om(e,t){const r=rE(e,t),i=r.one(e,void 0),a=KC(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 oE(e,t){return e&&"run"in e?async function(r,i){const a=Om(r,{file:i,...t});await e.run(a,i)}:function(r,i){return Om(r,{file:i,...e||t})}}function _m(e){if(e)throw e}var Au,Pm;function lE(){if(Pm)return Au;Pm=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 p;for(p in u);return typeof p>"u"||e.call(u,p)},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 Au=function l(){var u,c,f,p,d,m,k=arguments[0],v=1,g=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<g;++v)if(u=arguments[v],u!=null)for(c in u)f=o(k,c),p=o(u,c),k!==p&&(b&&p&&(n(p)||(d=a(p)))?(d?(d=!1,m=f&&a(f)?f:[]):m=f&&n(f)?f:{},s(k,{name:c,newValue:l(b,m,p)})):typeof p<"u"&&s(k,{name:c,newValue:p}));return k},Au}var uE=lE();const xu=jr(uE);function Ou(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 cE(){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?fE(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 fE(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 qr={basename:dE,dirname:pE,extname:mE,join:hE,sep:"/"};function dE(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xa(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 pE(e){if(xa(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 mE(e){xa(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 hE(...e){let t=-1,r;for(;++t<e.length;)xa(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":gE(r)}function gE(e){xa(e);const t=e.codePointAt(0)===47;let r=yE(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function yE(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 xa(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const vE={cwd:bE};function bE(){return"/"}function _u(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kE(e){if(typeof e=="string")e=new URL(e);else if(!_u(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 wE(e)}function wE(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 Pu=["history","path","basename","stem","extname","dirname"];class Im{constructor(t){let r;t?_u(t)?r={path:t}:typeof t=="string"||SE(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":vE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Pu.length;){const n=Pu[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)Pu.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?qr.basename(this.path):void 0}set basename(t){Tu(t,"basename"),Iu(t,"basename"),this.path=qr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?qr.dirname(this.path):void 0}set dirname(t){Tm(this.basename,"dirname"),this.path=qr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?qr.extname(this.path):void 0}set extname(t){if(Iu(t,"extname"),Tm(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=qr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){_u(t)&&(t=kE(t)),Tu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?qr.basename(this.path,this.extname):void 0}set stem(t){Tu(t,"stem"),Iu(t,"stem"),this.path=qr.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 Lt(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 Iu(e,t){if(e&&e.includes(qr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+qr.sep+"`")}function Tu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Tm(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function SE(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const CE=(function(e){const i=this.constructor.prototype,a=i[e],n=function(){return a.apply(n,arguments)};return Object.setPrototypeOf(n,i),n}),EE={}.hasOwnProperty;class Nu extends CE{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=cE()}copy(){const t=new Nu;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(xu(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Mu("data",this.frozen),this.namespace[t]=r,this):EE.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=qs(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=qs(t),l=i.parse(o);i.run(l,o,function(c,f,p){if(c||!f||!p)return u(c);const d=f,m=i.stringify(d,p);OE(m)?p.value=m:p.result=m,u(c,p)});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),Fm("processSync","process",r),i;function a(n,s){r=!0,_m(n),i=s}}run(t,r,i){Nm(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=qs(r);a.run(t,l,u);function u(c,f,p){const d=f||t;c?o(c):s?s(d):i(void 0,d,p)}}}runSync(t,r){let i=!1,a;return this.run(t,r,n),Fm("runSync","run",i),a;function n(s,o){_m(s),a=o,i=!0}}stringify(t,r){this.freeze();const i=qs(r),a=this.compiler||this.Compiler;return Du("stringify",a),Nm(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=xu(!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,p=-1;for(;++f<i.length;)if(i[f][0]===u){p=f;break}if(p===-1)i.push([u,...c]);else if(c.length>0){let[d,...m]=c;const k=i[p][1];Ou(k)&&Ou(d)&&(d=xu(!0,k,d)),i[p]=[u,d,...m]}}}}const AE=new Nu().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 Nm(e){if(!Ou(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Fm(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function qs(e){return xE(e)?e:new Im(e)}function xE(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function OE(e){return typeof e=="string"||_E(e)}function _E(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const PE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Dm=[],Mm={allowDangerousHtml:!0},IE=/^(https?|ircs?|mailto|xmpp)$/i,TE=[{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 NE(e){const t=FE(e),r=DE(e);return ME(t.runSync(t.parse(r),r),e)}function FE(e){const t=e.rehypePlugins||Dm,r=e.remarkPlugins||Dm,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Mm}:Mm;return AE().use(dC).use(r).use(oE,i).use(t)}function DE(e){const t=e.children||"",r=new Im;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||jE;for(const c of TE)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+PE+c.id,void 0);return Cu(e,u),iw(e,{Fragment:N.Fragment,components:a,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function u(c,f,p){if(c.type==="raw"&&p&&typeof f=="number")return s?p.children.splice(f,1):p.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let d;for(d in cu)if(Object.hasOwn(cu,d)&&Object.hasOwn(c.properties,d)){const m=c.properties[d],k=cu[d];(k===null||k.includes(c.tagName))&&(c.properties[d]=l(String(m||""),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,p)),d&&p&&typeof f=="number")return o&&c.children?p.children.splice(f,1,...c.children):p.children.splice(f,1),f}}}function jE(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||IE.test(e.slice(0,t))?e:""}function jm(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 LE(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function qE(e,t,r){const a=js((r||{}).ignore||[]),n=$E(t);let s=-1;for(;++s<n.length;)Am(e,"text",o);function o(u,c){let f=-1,p;for(;++f<c.length;){const d=c[f],m=p?p.children:void 0;if(a(d,m?m.indexOf(d):void 0,p))return;p=d}if(p)return l(u,c)}function l(u,c){const f=c[c.length-1],p=n[s][0],d=n[s][1];let m=0;const v=f.children.indexOf(u);let g=!1,b=[];p.lastIndex=0;let w=p.exec(u.value);for(;w;){const E=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?p.lastIndex=E+1:(m!==E&&b.push({type:"text",value:u.value.slice(m,E)}),Array.isArray(y)?b.push(...y):y&&b.push(y),m=E+w[0].length,g=!0),!p.global)break;w=p.exec(u.value)}return g?(m<u.value.length&&b.push({type:"text",value:u.value.slice(m)}),f.children.splice(v,1,...b)):b=[u],v+b.length}}function $E(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([zE(a[0]),RE(a[1])])}return t}function zE(e){return typeof e=="string"?new RegExp(LE(e),"g"):e}function RE(e){return typeof e=="function"?e:function(){return e}}const ju="phrasing",Lu=["autolink","link","image","label"];function UE(){return{transforms:[JE],enter:{literalAutolink:VE,literalAutolinkEmail:qu,literalAutolinkHttp:qu,literalAutolinkWww:qu},exit:{literalAutolink:GE,literalAutolinkEmail:WE,literalAutolinkHttp:HE,literalAutolinkWww:KE}}}function BE(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ju,notInConstruct:Lu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ju,notInConstruct:Lu},{character:":",before:"[ps]",after:"\\/",inConstruct:ju,notInConstruct:Lu}]}}function VE(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function qu(e){this.config.enter.autolinkProtocol.call(this,e)}function HE(e){this.config.exit.autolinkProtocol.call(this,e)}function KE(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 WE(e){this.config.exit.autolinkEmail.call(this,e)}function GE(e){this.exit(e)}function JE(e){qE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,YE],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),XE]],{ignore:["link","linkReference"]})}function YE(e,t,r,i,a){let n="";if(!Lm(a)||(/^w/i.test(t)&&(r=t+r,t="",n="http://"),!ZE(r)))return!1;const s=QE(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 XE(e,t,r,i){return!Lm(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function ZE(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 QE(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=jm(e,"(");let n=jm(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 Lm(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Gn(r)||_s(r))&&(!t||r!==47)}qm.peek=lA;function eA(){this.buffer()}function tA(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function rA(){this.buffer()}function nA(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function iA(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=wr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function aA(e){this.exit(e)}function sA(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=wr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function oA(e){this.exit(e)}function lA(){return"["}function qm(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 uA(){return{enter:{gfmFootnoteCallString:eA,gfmFootnoteCall:tA,gfmFootnoteDefinitionLabelString:rA,gfmFootnoteDefinition:nA},exit:{gfmFootnoteCallString:iA,gfmFootnoteCall:aA,gfmFootnoteDefinitionLabelString:sA,gfmFootnoteDefinition:oA}}}function cA(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:qm},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?$m:fA))),u(),l}}function fA(e,t,r){return t===0?e:$m(e,t,r)}function $m(e,t,r){return(r?"":" ")+e}const dA=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];zm.peek=yA;function pA(){return{canContainEols:["delete"],enter:{strikethrough:hA},exit:{strikethrough:gA}}}function mA(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:dA}],handlers:{delete:zm}}}function hA(e){this.enter({type:"delete",children:[]},e)}function gA(e){this.exit(e)}function zm(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 yA(){return"~"}function vA(e){return e.length}function bA(e,t){const r=t||{},i=(r.align||[]).concat(),a=r.stringLength||vA,n=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const k=[],v=[];let g=-1;for(e[c].length>u&&(u=e[c].length);++g<e[c].length;){const b=kA(e[c][g]);if(r.alignDelimiters!==!1){const w=a(b);v[g]=w,(l[g]===void 0||w>l[g])&&(l[g]=w)}k.push(b)}s[c]=k,o[c]=v}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<u;)n[f]=Rm(i[f]);else{const k=Rm(i);for(;++f<u;)n[f]=k}f=-1;const p=[],d=[];for(;++f<u;){const k=n[f];let v="",g="";k===99?(v=":",g=":"):k===108?v=":":k===114&&(g=":");let b=r.alignDelimiters===!1?1:Math.max(1,l[f]-v.length-g.length);const w=v+"-".repeat(b)+g;r.alignDelimiters!==!1&&(b=v.length+b+g.length,b>l[f]&&(l[f]=b),d[f]=b),p[f]=w}s.splice(1,0,p),o.splice(1,0,d),c=-1;const m=[];for(;++c<s.length;){const k=s[c],v=o[c];f=-1;const g=[];for(;++f<u;){const b=k[f]||"";let w="",E="";if(r.alignDelimiters!==!1){const h=l[f]-(v[f]||0),y=n[f];y===114?w=" ".repeat(h):y===99?h%2?(w=" ".repeat(h/2+.5),E=" ".repeat(h/2-.5)):(w=" ".repeat(h/2),E=w):E=" ".repeat(h)}r.delimiterStart!==!1&&!f&&g.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&b==="")&&(r.delimiterStart!==!1||f)&&g.push(" "),r.alignDelimiters!==!1&&g.push(w),g.push(b),r.alignDelimiters!==!1&&g.push(E),r.padding!==!1&&g.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&g.push("|")}m.push(r.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return m.join(`
35
+ `)}function kA(e){return e==null?"":String(e)}function Rm(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 wA(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()),SA);return a(),s}function SA(e,t,r){return">"+(r?"":" ")+e}function CA(e,t){return Um(e,t.inConstruct,!0)&&!Um(e,t.notInConstruct,!1)}function Um(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 Bm(e,t,r,i){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
36
+ `&&CA(r.stack,r.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
37
+ `}function EA(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 AA(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 xA(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 OA(e,t,r,i){const a=xA(r),n=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(AA(e,r)){const f=r.enter("codeIndented"),p=r.indentLines(n,_A);return f(),p}const o=r.createTracker(i),l=a.repeat(Math.max(EA(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
38
  `,encode:["`"],...o.current()})),f()}return c+=o.move(`
39
39
  `),n&&(c+=o.move(n+`
40
- `)),c+=o.move(l),u(),c}function OA(e,t,r){return(r?"":" ")+e}function $u(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 _A(e,t,r,i){const a=$u(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 PA(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 Oa(e){return"&#x"+e.toString(16).toUpperCase()+";"}function $s(e,t,r){const i=Ii(e),a=Ii(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}}Um.peek=IA;function Um(e,t,r,i){const a=PA(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=$s(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Oa(u)+l.slice(1));const f=l.charCodeAt(l.length-1),p=$s(i.after.charCodeAt(0),f,a);p.inside&&(l=l.slice(0,-1)+Oa(f));const d=s.move(a);return n(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+l+d}function IA(e,t,r){return r.options.emphasis||"*"}function TA(e,t){let r=!1;return Cu(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,Su}),!!((!e.depth||e.depth<3)&&fu(e)&&(t.options.setext||r))}function NA(e,t,r,i){const a=Math.max(Math.min(6,e.depth||1),1),n=r.createTracker(i);if(TA(e,r)){const c=r.enter("headingSetext"),f=r.enter("phrasing"),p=r.containerPhrasing(e,{...n.current(),before:`
40
+ `)),c+=o.move(l),u(),c}function _A(e,t,r){return(r?"":" ")+e}function $u(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 PA(e,t,r,i){const a=$u(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 IA(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 Oa(e){return"&#x"+e.toString(16).toUpperCase()+";"}function $s(e,t,r){const i=Ii(e),a=Ii(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}}Vm.peek=TA;function Vm(e,t,r,i){const a=IA(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=$s(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Oa(u)+l.slice(1));const f=l.charCodeAt(l.length-1),p=$s(i.after.charCodeAt(0),f,a);p.inside&&(l=l.slice(0,-1)+Oa(f));const d=s.move(a);return n(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+l+d}function TA(e,t,r){return r.options.emphasis||"*"}function NA(e,t){let r=!1;return Cu(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,Su}),!!((!e.depth||e.depth<3)&&fu(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(NA(e,r)){const c=r.enter("headingSetext"),f=r.enter("phrasing"),p=r.containerPhrasing(e,{...n.current(),before:`
42
42
  `,after:`
43
43
  `});return f(),c(),p+`
44
44
  `+(a===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
45
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=Oa(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),o(),u}Vm.peek=FA;function Vm(e){return e.value||""}function FA(){return"<"}Hm.peek=DA;function Hm(e,t,r,i){const a=$u(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 DA(){return"!"}Km.peek=MA;function Km(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 MA(){return"!"}Wm.peek=jA;function Wm(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 jA(){return"`"}function Gm(e,t){const r=fu(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))}Jm.peek=LA;function Jm(e,t,r,i){const a=$u(r),n=a==='"'?"Quote":"Apostrophe",s=r.createTracker(i);let o,l;if(Gm(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 LA(e,t,r){return Gm(e,r)?"<":"["}Ym.peek=qA;function Ym(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 qA(){return"["}function zu(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 $A(e){const t=zu(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 zA(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 Xm(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 RA(e,t,r,i){const a=r.enter("list"),n=r.bulletCurrent;let s=e.ordered?zA(r):zu(r);const o=e.ordered?s==="."?")":".":$A(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),Xm(r)===s&&c){let f=-1;for(;++f<e.children.length;){const p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.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 BA(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 UA(e,t,r,i){const a=BA(r);let n=r.bulletCurrent||zu(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,p,d){return p?(d?"":" ".repeat(s))+f:(d?n:n+" ".repeat(s-n.length))+f}}function VA(e,t,r,i){const a=r.enter("paragraph"),n=r.enter("phrasing"),s=r.containerPhrasing(e,i);return n(),a(),s}const HA=js(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function KA(e,t,r,i){return(e.children.some(function(s){return HA(s)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function WA(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Zm.peek=GA;function Zm(e,t,r,i){const a=WA(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=$s(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Oa(u)+l.slice(1));const f=l.charCodeAt(l.length-1),p=$s(i.after.charCodeAt(0),f,a);p.inside&&(l=l.slice(0,-1)+Oa(f));const d=s.move(a+a);return n(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+l+d}function GA(e,t,r){return r.options.strong||"*"}function JA(e,t,r,i){return r.safe(e.value,i)}function YA(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 XA(e,t,r){const i=(Xm(r)+(r.options.ruleSpaces?" ":"")).repeat(YA(r));return r.options.ruleSpaces?i.slice(0,-1):i}const Qm={blockquote:kA,break:Bm,code:xA,definition:_A,emphasis:Um,hardBreak:Bm,heading:NA,html:Vm,image:Hm,imageReference:Km,inlineCode:Wm,link:Jm,linkReference:Ym,list:RA,listItem:UA,paragraph:VA,root:KA,strong:Zm,text:JA,thematicBreak:XA};function ZA(){return{enter:{table:QA,tableData:eh,tableHeader:eh,tableRow:tx},exit:{codeText:rx,table:ex,tableData:Ru,tableHeader:Ru,tableRow:Ru}}}function QA(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 ex(e){this.exit(e),this.data.inTable=void 0}function tx(e){this.enter({type:"tableRow",children:[]},e)}function Ru(e){this.exit(e)}function eh(e){this.enter({type:"tableCell",children:[]},e)}function rx(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,nx));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function nx(e,t){return t==="|"?t:e}function ix(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
46
+ `,...n.current()});return/^[\t ]/.test(u)&&(u=Oa(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),o(),u}Hm.peek=DA;function Hm(e){return e.value||""}function DA(){return"<"}Km.peek=MA;function Km(e,t,r,i){const a=$u(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"!"}Wm.peek=jA;function Wm(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 jA(){return"!"}Gm.peek=LA;function Gm(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 LA(){return"`"}function Jm(e,t){const r=fu(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))}Ym.peek=qA;function Ym(e,t,r,i){const a=$u(r),n=a==='"'?"Quote":"Apostrophe",s=r.createTracker(i);let o,l;if(Jm(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 qA(e,t,r){return Jm(e,r)?"<":"["}Xm.peek=$A;function Xm(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 $A(){return"["}function zu(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 zA(e){const t=zu(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 RA(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 Zm(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 UA(e,t,r,i){const a=r.enter("list"),n=r.bulletCurrent;let s=e.ordered?RA(r):zu(r);const o=e.ordered?s==="."?")":".":zA(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),Zm(r)===s&&c){let f=-1;for(;++f<e.children.length;){const p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.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 BA(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 VA(e,t,r,i){const a=BA(r);let n=r.bulletCurrent||zu(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,p,d){return p?(d?"":" ".repeat(s))+f:(d?n:n+" ".repeat(s-n.length))+f}}function HA(e,t,r,i){const a=r.enter("paragraph"),n=r.enter("phrasing"),s=r.containerPhrasing(e,i);return n(),a(),s}const KA=js(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function WA(e,t,r,i){return(e.children.some(function(s){return KA(s)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function GA(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Qm.peek=JA;function Qm(e,t,r,i){const a=GA(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=$s(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Oa(u)+l.slice(1));const f=l.charCodeAt(l.length-1),p=$s(i.after.charCodeAt(0),f,a);p.inside&&(l=l.slice(0,-1)+Oa(f));const d=s.move(a+a);return n(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+l+d}function JA(e,t,r){return r.options.strong||"*"}function YA(e,t,r,i){return r.safe(e.value,i)}function XA(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 ZA(e,t,r){const i=(Zm(r)+(r.options.ruleSpaces?" ":"")).repeat(XA(r));return r.options.ruleSpaces?i.slice(0,-1):i}const eh={blockquote:wA,break:Bm,code:OA,definition:PA,emphasis:Vm,hardBreak:Bm,heading:FA,html:Hm,image:Km,imageReference:Wm,inlineCode:Gm,link:Ym,linkReference:Xm,list:UA,listItem:VA,paragraph:HA,root:WA,strong:Qm,text:YA,thematicBreak:ZA};function QA(){return{enter:{table:ex,tableData:th,tableHeader:th,tableRow:rx},exit:{codeText:nx,table:tx,tableData:Ru,tableHeader:Ru,tableRow:Ru}}}function ex(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 tx(e){this.exit(e),this.data.inTable=void 0}function rx(e){this.enter({type:"tableRow",children:[]},e)}function Ru(e){this.exit(e)}function th(e){this.enter({type:"tableCell",children:[]},e)}function nx(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ix));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function ix(e,t){return t==="|"?t:e}function ax(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,n=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
47
47
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:o}};function s(d,m,k,v){return u(c(d,k,v),d.align)}function o(d,m,k,v){const g=f(d,k,v),b=u([g]);return b.slice(0,b.indexOf(`
48
- `))}function l(d,m,k,v){const g=k.enter("tableCell"),b=k.enter("phrasing"),w=k.containerPhrasing(d,{...v,before:n,after:n});return b(),g(),w}function u(d,m){return vA(d,{align:m,alignDelimiters:i,padding:r,stringLength:a})}function c(d,m,k){const v=d.children;let g=-1;const b=[],w=m.enter("table");for(;++g<v.length;)b[g]=f(v[g],m,k);return w(),b}function f(d,m,k){const v=d.children;let g=-1;const b=[],w=m.enter("tableRow");for(;++g<v.length;)b[g]=l(v[g],d,m,k);return w(),b}function p(d,m,k){let v=Qm.inlineCode(d,m,k);return k.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function ax(){return{exit:{taskListCheckValueChecked:th,taskListCheckValueUnchecked:th,paragraph:ox}}}function sx(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:lx}}}function th(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function ox(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 lx(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=Qm.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 ux(){return[RE(),lA(),dA(),ZA(),ax()]}function cx(e){return{extensions:[BE(),uA(e),pA(),ix(e),sx()]}}const fx={tokenize:yx,partial:!0},rh={tokenize:vx,partial:!0},nh={tokenize:bx,partial:!0},ih={tokenize:kx,partial:!0},dx={tokenize:wx,partial:!0},ah={name:"wwwAutolink",tokenize:hx,previous:oh},sh={name:"protocolAutolink",tokenize:gx,previous:lh},Qr={name:"emailAutolink",tokenize:mx,previous:uh},$r={};function px(){return{text:$r}}let Jn=48;for(;Jn<123;)$r[Jn]=Qr,Jn++,Jn===58?Jn=65:Jn===91&&(Jn=97);$r[43]=Qr,$r[45]=Qr,$r[46]=Qr,$r[95]=Qr,$r[72]=[Qr,sh],$r[104]=[Qr,sh],$r[87]=[Qr,ah],$r[119]=[Qr,ah];function mx(e,t,r){const i=this;let a,n;return s;function s(f){return!Bu(f)||!uh.call(i,i.previous)||Uu(i.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return Bu(f)?(e.consume(f),o):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(dx,c,u)(f):f===45||f===95||qt(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 hx(e,t,r){const i=this;return a;function a(s){return s!==87&&s!==119||!oh.call(i,i.previous)||Uu(i.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(fx,e.attempt(rh,e.attempt(nh,n),r),r)(s))}function n(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function gx(e,t,r){const i=this;let a="",n=!1;return s;function s(f){return(f===72||f===104)&&lh.call(i,i.previous)&&!Uu(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 p=a.toLowerCase();if(p==="http"||p==="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||Os(f)||dt(f)||Gn(f)||_s(f)?r(f):e.attempt(rh,e.attempt(nh,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function yx(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 vx(e,t,r){let i,a,n;return s;function s(u){return u===46||u===95?e.check(ih,l,o)(u):u===null||dt(u)||Gn(u)||u!==45&&_s(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 bx(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(ih,t,n)(s):s===null||dt(s)||Gn(s)?t(s):(e.consume(s),a)}function n(s){return s===41&&i++,e.consume(s),a}}function kx(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)||Gn(o)?t(o):r(o)}function a(o){return o===null||o===40||o===91||dt(o)||Gn(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 wx(e,t,r){return i;function i(n){return e.consume(n),a}function a(n){return qt(n)?r(n):t(n)}}function oh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||dt(e)}function lh(e){return!Bt(e)}function uh(e){return!(e===47||Bu(e))}function Bu(e){return e===43||e===45||e===46||e===95||qt(e)}function Uu(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 Sx={tokenize:Ix,partial:!0};function Cx(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Ox,continuation:{tokenize:_x},exit:Px}},text:{91:{name:"gfmFootnoteCall",tokenize:xx},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ex,resolveTo:Ax}}}}function Ex(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=wr(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 Ax(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 xx(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 p=e.exit("gfmFootnoteCallString");return a.includes(wr(i.sliceSerialize(p)))?(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 Ox(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n,s=0,o;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(m)}function c(m){if(s>999||m===93&&!o||m===null||m===91||dt(m))return r(m);if(m===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return n=wr(i.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return dt(m)||(o=!0),s++,e.consume(m),m===92?f:c}function f(m){return m===91||m===92||m===93?(e.consume(m),s++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),a.includes(n)||a.push(n),Ue(e,d,"gfmFootnoteDefinitionWhitespace")):r(m)}function d(m){return t(m)}}function _x(e,t,r){return e.check(wa,t,e.attempt(Sx,t,r))}function Px(e){e.exit("gfmFootnoteDefinition")}function Ix(e,t,r){const i=this;return Ue(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 Tx(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)},p=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",f,o]],d=o.parser.constructs.insideSpan.null;d&&tr(p,p.length,0,Ps(d,s.slice(u+1,l),o)),tr(p,p.length,0,[["exit",f,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),tr(s,u-1,l-u+3,p),l=u+p.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 p;function p(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(m):(s.enter("strikethroughSequenceTemporary"),d(m))}function d(m){const k=Ii(u);if(m===126)return f>1?l(m):(s.consume(m),f++,d);if(f<2&&!r)return l(m);const v=s.exit("strikethroughSequenceTemporary"),g=Ii(m);return v._open=!g||g===2&&!!k,v._close=!k||k===2&&!!g,o(m)}}}class Nx{constructor(){this.map=[]}add(t,r,i){Fx(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 Fx(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 Dx(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 Mx(){return{flow:{null:{name:"table",tokenize:jx,resolveAll:Lx}}}}function jx(e,t,r){const i=this;let a=0,n=0,s;return o;function o(S){let A=i.events.length-1;for(;A>-1;){const T=i.events[A][1].type;if(T==="lineEnding"||T==="linePrefix")A--;else break}const O=A>-1?i.events[A][1].type:null,F=O==="tableHead"||O==="tableRow"?y:l;return F===y&&i.parser.lazy[i.now().line]?r(S):F(S)}function l(S){return e.enter("tableHead"),e.enter("tableRow"),u(S)}function u(S){return S===124||(s=!0,n+=1),c(S)}function c(S){return S===null?r(S):me(S)?n>1?(n=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),d):r(S):Me(S)?Ue(e,c,"whitespace")(S):(n+=1,s&&(s=!1,a+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(S)))}function f(S){return S===null||S===124||dt(S)?(e.exit("data"),c(S)):(e.consume(S),S===92?p:f)}function p(S){return S===92||S===124?(e.consume(S),f):f(S)}function d(S){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(S):(e.enter("tableDelimiterRow"),s=!1,Me(S)?Ue(e,m,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):m(S))}function m(S){return S===45||S===58?v(S):S===124?(s=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),k):h(S)}function k(S){return Me(S)?Ue(e,v,"whitespace")(S):v(S)}function v(S){return S===58?(n+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),g):S===45?(n+=1,g(S)):S===null||me(S)?E(S):h(S)}function g(S){return S===45?(e.enter("tableDelimiterFiller"),b(S)):h(S)}function b(S){return S===45?(e.consume(S),b):S===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(S))}function w(S){return Me(S)?Ue(e,E,"whitespace")(S):E(S)}function E(S){return S===124?m(S):S===null||me(S)?!s||a!==n?h(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):h(S)}function h(S){return r(S)}function y(S){return e.enter("tableRow"),C(S)}function C(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),C):S===null||me(S)?(e.exit("tableRow"),t(S)):Me(S)?Ue(e,C,"whitespace")(S):(e.enter("data"),x(S))}function x(S){return S===null||S===124||dt(S)?(e.exit("data"),C(S)):(e.consume(S),S===92?_:x)}function _(S){return S===92||S===124?(e.consume(S),x):x(S)}}function Lx(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 p=new Nx;for(;++r<e.length;){const d=e[r],m=d[1];d[0]==="enter"?m.type==="tableHead"?(o=!1,l!==0&&(ch(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",u,t]])):m.type==="tableRow"||m.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({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",c,t]])),a=m.type==="tableDelimiterRow"?2:c?3:1):a&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(n[1]!==0&&(s[0]=s[1],f=zs(p,t,n,a,void 0,f),n=[0,0,0,0]),s[2]=r)):m.type==="tableCellDivider"&&(i?i=!1:(n[1]!==0&&(s[0]=s[1],f=zs(p,t,n,a,void 0,f)),n=s,s=[n[1],r,0,0])):m.type==="tableHead"?(o=!0,l=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=r,n[1]!==0?(s[0]=s[1],f=zs(p,t,n,a,r,f)):s[1]!==0&&(f=zs(p,t,s,a,r,f)),a=0):a&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&ch(p,t,l,u,c),p.consume(t.events),r=-1;++r<t.events.length;){const d=t.events[r];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=Dx(t.events,r))}return e}function zs(e,t,r,i,a,n){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(n.end=Object.assign({},Ni(t.events,r[0])),e.add(r[0],0,[["exit",n,t]]));const l=Ni(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=Ni(t.events,r[2]),c=Ni(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 p=t.events[r[2]],d=t.events[r[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",r[3]>r[2]+1){const m=r[2]+1,k=r[3]-r[2]-1;e.add(m,k,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return a!==void 0&&(n.end=Object.assign({},Ni(t.events,a)),e.add(a,0,[["exit",n,t]]),n=void 0),n}function ch(e,t,r,i,a){const n=[],s=Ni(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 Ni(e,t){const r=e[t],i=r[0]==="enter"?"start":"end";return r[1][i]}const qx={name:"tasklistCheck",tokenize:zx};function $x(){return{text:{91:qx}}}function zx(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 me(l)?t(l):Me(l)?e.check({tokenize:Rx},t,r)(l):r(l)}}function Rx(e,t,r){return Ue(e,i,"whitespace");function i(a){return a===null?r(a):t(a)}}function Bx(e){return Hp([px(),Cx(),Tx(e),Mx(),$x()])}const Ux={};function Vx(e){const t=this,r=e||Ux,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),n=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(Bx(r)),n.push(ux()),s.push(cx(r))}const fh=TE,dh=e=>N.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function Sr(e){const t=e.components||{};return t.a||(t.a=dh),N.jsx(fh,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}const Hx=["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 Vu(e){const t=e.components||{};return t.a||(t.a=dh),N.jsx(fh,{...e,remarkPlugins:[Vx],components:t,allowedElements:Hx})}/*!
48
+ `))}function l(d,m,k,v){const g=k.enter("tableCell"),b=k.enter("phrasing"),w=k.containerPhrasing(d,{...v,before:n,after:n});return b(),g(),w}function u(d,m){return bA(d,{align:m,alignDelimiters:i,padding:r,stringLength:a})}function c(d,m,k){const v=d.children;let g=-1;const b=[],w=m.enter("table");for(;++g<v.length;)b[g]=f(v[g],m,k);return w(),b}function f(d,m,k){const v=d.children;let g=-1;const b=[],w=m.enter("tableRow");for(;++g<v.length;)b[g]=l(v[g],d,m,k);return w(),b}function p(d,m,k){let v=eh.inlineCode(d,m,k);return k.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function sx(){return{exit:{taskListCheckValueChecked:rh,taskListCheckValueUnchecked:rh,paragraph:lx}}}function ox(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ux}}}function rh(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function lx(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 ux(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=eh.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 cx(){return[UE(),uA(),pA(),QA(),sx()]}function fx(e){return{extensions:[BE(),cA(e),mA(),ax(e),ox()]}}const dx={tokenize:vx,partial:!0},nh={tokenize:bx,partial:!0},ih={tokenize:kx,partial:!0},ah={tokenize:wx,partial:!0},px={tokenize:Sx,partial:!0},sh={name:"wwwAutolink",tokenize:gx,previous:lh},oh={name:"protocolAutolink",tokenize:yx,previous:uh},Qr={name:"emailAutolink",tokenize:hx,previous:ch},$r={};function mx(){return{text:$r}}let Jn=48;for(;Jn<123;)$r[Jn]=Qr,Jn++,Jn===58?Jn=65:Jn===91&&(Jn=97);$r[43]=Qr,$r[45]=Qr,$r[46]=Qr,$r[95]=Qr,$r[72]=[Qr,oh],$r[104]=[Qr,oh],$r[87]=[Qr,sh],$r[119]=[Qr,sh];function hx(e,t,r){const i=this;let a,n;return s;function s(f){return!Uu(f)||!ch.call(i,i.previous)||Bu(i.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(f))}function o(f){return Uu(f)?(e.consume(f),o):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(px,c,u)(f):f===45||f===95||qt(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&&Ut(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function gx(e,t,r){const i=this;return a;function a(s){return s!==87&&s!==119||!lh.call(i,i.previous)||Bu(i.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(dx,e.attempt(nh,e.attempt(ih,n),r),r)(s))}function n(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function yx(e,t,r){const i=this;let a="",n=!1;return s;function s(f){return(f===72||f===104)&&uh.call(i,i.previous)&&!Bu(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(f),e.consume(f),o):r(f)}function o(f){if(Ut(f)&&a.length<5)return a+=String.fromCodePoint(f),e.consume(f),o;if(f===58){const p=a.toLowerCase();if(p==="http"||p==="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||Os(f)||dt(f)||Gn(f)||_s(f)?r(f):e.attempt(nh,e.attempt(ih,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function vx(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 bx(e,t,r){let i,a,n;return s;function s(u){return u===46||u===95?e.check(ah,l,o)(u):u===null||dt(u)||Gn(u)||u!==45&&_s(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 kx(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(ah,t,n)(s):s===null||dt(s)||Gn(s)?t(s):(e.consume(s),a)}function n(s){return s===41&&i++,e.consume(s),a}}function wx(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)||Gn(o)?t(o):r(o)}function a(o){return o===null||o===40||o===91||dt(o)||Gn(o)?t(o):i(o)}function n(o){return Ut(o)?s(o):r(o)}function s(o){return o===59?(e.consume(o),i):Ut(o)?(e.consume(o),s):r(o)}}function Sx(e,t,r){return i;function i(n){return e.consume(n),a}function a(n){return qt(n)?r(n):t(n)}}function lh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||dt(e)}function uh(e){return!Ut(e)}function ch(e){return!(e===47||Uu(e))}function Uu(e){return e===43||e===45||e===46||e===95||qt(e)}function Bu(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 Cx={tokenize:Tx,partial:!0};function Ex(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:_x,continuation:{tokenize:Px},exit:Ix}},text:{91:{name:"gfmFootnoteCall",tokenize:Ox},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Ax,resolveTo:xx}}}}function Ax(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=wr(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 xx(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 Ox(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 p=e.exit("gfmFootnoteCallString");return a.includes(wr(i.sliceSerialize(p)))?(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 _x(e,t,r){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let n,s=0,o;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(m)}function c(m){if(s>999||m===93&&!o||m===null||m===91||dt(m))return r(m);if(m===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return n=wr(i.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return dt(m)||(o=!0),s++,e.consume(m),m===92?f:c}function f(m){return m===91||m===92||m===93?(e.consume(m),s++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),a.includes(n)||a.push(n),Be(e,d,"gfmFootnoteDefinitionWhitespace")):r(m)}function d(m){return t(m)}}function Px(e,t,r){return e.check(wa,t,e.attempt(Cx,t,r))}function Ix(e){e.exit("gfmFootnoteDefinition")}function Tx(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 Nx(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)},p=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",f,o]],d=o.parser.constructs.insideSpan.null;d&&tr(p,p.length,0,Ps(d,s.slice(u+1,l),o)),tr(p,p.length,0,[["exit",f,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),tr(s,u-1,l-u+3,p),l=u+p.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 p;function p(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(m):(s.enter("strikethroughSequenceTemporary"),d(m))}function d(m){const k=Ii(u);if(m===126)return f>1?l(m):(s.consume(m),f++,d);if(f<2&&!r)return l(m);const v=s.exit("strikethroughSequenceTemporary"),g=Ii(m);return v._open=!g||g===2&&!!k,v._close=!k||k===2&&!!g,o(m)}}}class Fx{constructor(){this.map=[]}add(t,r,i){Dx(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 Dx(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 Mx(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 jx(){return{flow:{null:{name:"table",tokenize:Lx,resolveAll:qx}}}}function Lx(e,t,r){const i=this;let a=0,n=0,s;return o;function o(S){let A=i.events.length-1;for(;A>-1;){const T=i.events[A][1].type;if(T==="lineEnding"||T==="linePrefix")A--;else break}const O=A>-1?i.events[A][1].type:null,F=O==="tableHead"||O==="tableRow"?y:l;return F===y&&i.parser.lazy[i.now().line]?r(S):F(S)}function l(S){return e.enter("tableHead"),e.enter("tableRow"),u(S)}function u(S){return S===124||(s=!0,n+=1),c(S)}function c(S){return S===null?r(S):me(S)?n>1?(n=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),d):r(S):Me(S)?Be(e,c,"whitespace")(S):(n+=1,s&&(s=!1,a+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(S)))}function f(S){return S===null||S===124||dt(S)?(e.exit("data"),c(S)):(e.consume(S),S===92?p:f)}function p(S){return S===92||S===124?(e.consume(S),f):f(S)}function d(S){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(S):(e.enter("tableDelimiterRow"),s=!1,Me(S)?Be(e,m,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):m(S))}function m(S){return S===45||S===58?v(S):S===124?(s=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),k):h(S)}function k(S){return Me(S)?Be(e,v,"whitespace")(S):v(S)}function v(S){return S===58?(n+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),g):S===45?(n+=1,g(S)):S===null||me(S)?E(S):h(S)}function g(S){return S===45?(e.enter("tableDelimiterFiller"),b(S)):h(S)}function b(S){return S===45?(e.consume(S),b):S===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(S))}function w(S){return Me(S)?Be(e,E,"whitespace")(S):E(S)}function E(S){return S===124?m(S):S===null||me(S)?!s||a!==n?h(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):h(S)}function h(S){return r(S)}function y(S){return e.enter("tableRow"),C(S)}function C(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),C):S===null||me(S)?(e.exit("tableRow"),t(S)):Me(S)?Be(e,C,"whitespace")(S):(e.enter("data"),x(S))}function x(S){return S===null||S===124||dt(S)?(e.exit("data"),C(S)):(e.consume(S),S===92?_:x)}function _(S){return S===92||S===124?(e.consume(S),x):x(S)}}function qx(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 p=new Fx;for(;++r<e.length;){const d=e[r],m=d[1];d[0]==="enter"?m.type==="tableHead"?(o=!1,l!==0&&(fh(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",u,t]])):m.type==="tableRow"||m.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({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",c,t]])),a=m.type==="tableDelimiterRow"?2:c?3:1):a&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(n[1]!==0&&(s[0]=s[1],f=zs(p,t,n,a,void 0,f),n=[0,0,0,0]),s[2]=r)):m.type==="tableCellDivider"&&(i?i=!1:(n[1]!==0&&(s[0]=s[1],f=zs(p,t,n,a,void 0,f)),n=s,s=[n[1],r,0,0])):m.type==="tableHead"?(o=!0,l=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=r,n[1]!==0?(s[0]=s[1],f=zs(p,t,n,a,r,f)):s[1]!==0&&(f=zs(p,t,s,a,r,f)),a=0):a&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&fh(p,t,l,u,c),p.consume(t.events),r=-1;++r<t.events.length;){const d=t.events[r];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=Mx(t.events,r))}return e}function zs(e,t,r,i,a,n){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(n.end=Object.assign({},Ni(t.events,r[0])),e.add(r[0],0,[["exit",n,t]]));const l=Ni(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=Ni(t.events,r[2]),c=Ni(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 p=t.events[r[2]],d=t.events[r[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",r[3]>r[2]+1){const m=r[2]+1,k=r[3]-r[2]-1;e.add(m,k,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return a!==void 0&&(n.end=Object.assign({},Ni(t.events,a)),e.add(a,0,[["exit",n,t]]),n=void 0),n}function fh(e,t,r,i,a){const n=[],s=Ni(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 Ni(e,t){const r=e[t],i=r[0]==="enter"?"start":"end";return r[1][i]}const $x={name:"tasklistCheck",tokenize:Rx};function zx(){return{text:{91:$x}}}function Rx(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 me(l)?t(l):Me(l)?e.check({tokenize:Ux},t,r)(l):r(l)}}function Ux(e,t,r){return Be(e,i,"whitespace");function i(a){return a===null?r(a):t(a)}}function Bx(e){return Kp([mx(),Ex(),Nx(e),jx(),zx()])}const Vx={};function Hx(e){const t=this,r=e||Vx,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),n=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(Bx(r)),n.push(cx()),s.push(fx(r))}const dh=NE,ph=e=>N.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function Sr(e){const t=e.components||{};return t.a||(t.a=ph),N.jsx(dh,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}const Kx=["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 Vu(e){const t=e.components||{};return t.a||(t.a=ph),N.jsx(dh,{...e,remarkPlugins:[Hx],components:t,allowedElements:Kx})}/*!
49
49
  * mustache.js - Logic-less {{mustache}} templates with JavaScript
50
50
  * http://github.com/janl/mustache.js
51
- */var Kx=Object.prototype.toString,Fi=Array.isArray||function(t){return Kx.call(t)==="[object Array]"};function Hu(e){return typeof e=="function"}function Wx(e){return Fi(e)?"array":typeof e}function Ku(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function ph(e,t){return e!=null&&typeof e=="object"&&t in e}function Gx(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Jx=RegExp.prototype.test;function Yx(e,t){return Jx.call(e,t)}var Xx=/\S/;function Zx(e){return!Yx(Xx,e)}var Qx={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function eO(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return Qx[r]})}var tO=/\s*/,rO=/\s+/,mh=/\s*=/,nO=/\s*\}/,iO=/#|\^|\/|>|\{|&|=|!/;function aO(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,p,d;function m(x){if(typeof x=="string"&&(x=x.split(rO,2)),!Fi(x)||x.length!==2)throw new Error("Invalid tags: "+x);f=new RegExp(Ku(x[0])+"\\s*"),p=new RegExp("\\s*"+Ku(x[1])),d=new RegExp("\\s*"+Ku("}"+x[1]))}m(t||lr.tags);for(var k=new _a(e),v,g,b,w,E,h;!k.eos();){if(v=k.pos,b=k.scanUntil(f),b)for(var y=0,C=b.length;y<C;++y)w=b.charAt(y),Zx(w)?(n.push(a.length),l+=w):(o=!0,r=!0,l+=" "),a.push(["text",w,v,v+1]),v+=1,w===`
52
- `&&(c(),l="",u=0,r=!1);if(!k.scan(f))break;if(s=!0,g=k.scan(iO)||"name",k.scan(tO),g==="="?(b=k.scanUntil(mh),k.scan(mh),k.scanUntil(p)):g==="{"?(b=k.scanUntil(d),k.scan(nO),k.scanUntil(p),g="&"):b=k.scanUntil(p),!k.scan(p))throw new Error("Unclosed tag at "+k.pos);if(g==">"?E=[g,b,v,k.pos,l,u,r]:E=[g,b,v,k.pos],u++,a.push(E),g==="#"||g==="^")i.push(E);else if(g==="/"){if(h=i.pop(),!h)throw new Error('Unopened section "'+b+'" at '+v);if(h[1]!==b)throw new Error('Unclosed section "'+h[1]+'" at '+v)}else g==="name"||g==="{"||g==="&"?o=!0:g==="="&&m(b)}if(c(),h=i.pop(),h)throw new Error('Unclosed section "'+h[1]+'" at '+k.pos);return oO(sO(a))}function sO(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 oO(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 _a(e){this.string=e,this.tail=e,this.pos=0}_a.prototype.eos=function(){return this.tail===""},_a.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},_a.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 Di(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Di.prototype.push=function(t){return new Di(t,this)},Di.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=ph(n,s[o])||Gx(n,s[o])),n=n[s[o++]];else n=a.view[t],l=ph(a.view,t);if(l){i=n;break}a=a.parent}r[t]=i}return Hu(i)&&(i=i.call(this.view)),i};function Ut(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}Ut.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()},Ut.prototype.parse=function(t,r){var i=this.templateCache,a=t+":"+(r||lr.tags).join(":"),n=typeof i<"u",s=n?i.get(a):void 0;return s==null&&(s=aO(t,r),n&&i.set(a,s)),s},Ut.prototype.render=function(t,r,i,a){var n=this.getConfigTags(a),s=this.parse(t,n),o=r instanceof Di?r:new Di(r,void 0);return this.renderTokens(s,o,i,t,a)},Ut.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},Ut.prototype.renderSection=function(t,r,i,a,n){var s=this,o="",l=r.lookup(t[1]);function u(p){return s.render(p,r,i,n)}if(l){if(Fi(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(Hu(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}},Ut.prototype.renderInverted=function(t,r,i,a,n){var s=r.lookup(t[1]);if(!s||Fi(s)&&s.length===0)return this.renderTokens(t[4],r,i,a,n)},Ut.prototype.indentPartial=function(t,r,i){for(var a=r.replace(/[^ \t]/g,""),n=t.split(`
51
+ */var Wx=Object.prototype.toString,Fi=Array.isArray||function(t){return Wx.call(t)==="[object Array]"};function Hu(e){return typeof e=="function"}function Gx(e){return Fi(e)?"array":typeof e}function Ku(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function mh(e,t){return e!=null&&typeof e=="object"&&t in e}function Jx(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Yx=RegExp.prototype.test;function Xx(e,t){return Yx.call(e,t)}var Zx=/\S/;function Qx(e){return!Xx(Zx,e)}var eO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function tO(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return eO[r]})}var rO=/\s*/,nO=/\s+/,hh=/\s*=/,iO=/\s*\}/,aO=/#|\^|\/|>|\{|&|=|!/;function sO(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,p,d;function m(x){if(typeof x=="string"&&(x=x.split(nO,2)),!Fi(x)||x.length!==2)throw new Error("Invalid tags: "+x);f=new RegExp(Ku(x[0])+"\\s*"),p=new RegExp("\\s*"+Ku(x[1])),d=new RegExp("\\s*"+Ku("}"+x[1]))}m(t||lr.tags);for(var k=new _a(e),v,g,b,w,E,h;!k.eos();){if(v=k.pos,b=k.scanUntil(f),b)for(var y=0,C=b.length;y<C;++y)w=b.charAt(y),Qx(w)?(n.push(a.length),l+=w):(o=!0,r=!0,l+=" "),a.push(["text",w,v,v+1]),v+=1,w===`
52
+ `&&(c(),l="",u=0,r=!1);if(!k.scan(f))break;if(s=!0,g=k.scan(aO)||"name",k.scan(rO),g==="="?(b=k.scanUntil(hh),k.scan(hh),k.scanUntil(p)):g==="{"?(b=k.scanUntil(d),k.scan(iO),k.scanUntil(p),g="&"):b=k.scanUntil(p),!k.scan(p))throw new Error("Unclosed tag at "+k.pos);if(g==">"?E=[g,b,v,k.pos,l,u,r]:E=[g,b,v,k.pos],u++,a.push(E),g==="#"||g==="^")i.push(E);else if(g==="/"){if(h=i.pop(),!h)throw new Error('Unopened section "'+b+'" at '+v);if(h[1]!==b)throw new Error('Unclosed section "'+h[1]+'" at '+v)}else g==="name"||g==="{"||g==="&"?o=!0:g==="="&&m(b)}if(c(),h=i.pop(),h)throw new Error('Unclosed section "'+h[1]+'" at '+k.pos);return lO(oO(a))}function oO(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 lO(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 _a(e){this.string=e,this.tail=e,this.pos=0}_a.prototype.eos=function(){return this.tail===""},_a.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},_a.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 Di(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Di.prototype.push=function(t){return new Di(t,this)},Di.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=mh(n,s[o])||Jx(n,s[o])),n=n[s[o++]];else n=a.view[t],l=mh(a.view,t);if(l){i=n;break}a=a.parent}r[t]=i}return Hu(i)&&(i=i.call(this.view)),i};function Bt(){this.templateCache={_cache:{},set:function(t,r){this._cache[t]=r},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}Bt.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()},Bt.prototype.parse=function(t,r){var i=this.templateCache,a=t+":"+(r||lr.tags).join(":"),n=typeof i<"u",s=n?i.get(a):void 0;return s==null&&(s=sO(t,r),n&&i.set(a,s)),s},Bt.prototype.render=function(t,r,i,a){var n=this.getConfigTags(a),s=this.parse(t,n),o=r instanceof Di?r:new Di(r,void 0);return this.renderTokens(s,o,i,t,a)},Bt.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},Bt.prototype.renderSection=function(t,r,i,a,n){var s=this,o="",l=r.lookup(t[1]);function u(p){return s.render(p,r,i,n)}if(l){if(Fi(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(Hu(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}},Bt.prototype.renderInverted=function(t,r,i,a,n){var s=r.lookup(t[1]);if(!s||Fi(s)&&s.length===0)return this.renderTokens(t[4],r,i,a,n)},Bt.prototype.indentPartial=function(t,r,i){for(var a=r.replace(/[^ \t]/g,""),n=t.split(`
53
53
  `),s=0;s<n.length;s++)n[s].length&&(s>0||!i)&&(n[s]=a+n[s]);return n.join(`
54
- `)},Ut.prototype.renderPartial=function(t,r,i,a){if(i){var n=this.getConfigTags(a),s=Hu(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)}}},Ut.prototype.unescapedValue=function(t,r){var i=r.lookup(t[1]);if(i!=null)return i},Ut.prototype.escapedValue=function(t,r,i){var a=this.getConfigEscape(i)||lr.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&a===lr.escape?String(n):a(n)},Ut.prototype.rawValue=function(t){return t[1]},Ut.prototype.getConfigTags=function(t){return Fi(t)?t:t&&typeof t=="object"?t.tags:void 0},Ut.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!Fi(t))return t.escape};var lr={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){Pa.templateCache=e},get templateCache(){return Pa.templateCache}},Pa=new Ut;lr.clearCache=function(){return Pa.clearCache()},lr.parse=function(t,r){return Pa.parse(t,r)},lr.render=function(t,r,i,a){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+Wx(t)+'" was given as the first argument for mustache#render(template, view, partials)');return Pa.render(t,r,i,a)},lr.escape=eO,lr.Scanner=_a,lr.Context=Di,lr.Writer=Ut;const Wu=e=>e&&typeof e=="object"&&!Array.isArray(e),Gu=(e,...t)=>{if(!t.length)return e;const r=t.shift();if(Wu(e)&&Wu(r))for(const i in r)Wu(r[i])?(e[i]||Object.assign(e,{[i]:{}}),Gu(e[i],r[i])):Object.assign(e,{[i]:r[i]});return Gu(e,...t)},lO=(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&&{...Rs(t.properties,i.globalUiSchema)},...t.oneOf&&Gu({},...t.oneOf.map(o=>Rs(o.properties,i.globalUiSchema))),...i.globalUiSchema[e]}},Rs=(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":lO(o,n)}}},{}),Ju=(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=>Ju(n,t)):r[i]=Ju(a,t):r[i]=a}return r},cO=e=>{const{embedFormOptions:t,ui:r,uiSchema:i,...a}=e;return Ju(a,["ui","isSensitive","isTransient"])},fO=e=>{const t={...e.schema.ui,...e.schema.uiSchema};let r={};if(e.schema.dependencies){const i=Rs(e.schema.dependencies,t);for(const a in i){const n=i[a];delete n["ui:classNames"],r={...r,...n}}}return{...t,...r,...Rs(e.schema.properties,t)}},hh=e=>(Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"&&hh(r),r&&typeof r=="object"&&!Object.keys(r).length&&delete e[t]}),e),dO=(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(hh(JSON.parse(i))):i},pO=(e,t)=>{const r=(t==null?void 0:t.variables)??{};return JSON.parse(lr.render(dO(e,r),r))};function gh(e){const t=pO(e,e.schema.embedFormOptions);return{schema:cO(t.schema),uiSchema:fO(t),embedFormOptions:{...t.schema.embedFormOptions}}}var Yu={exports:{}};/*!
54
+ `)},Bt.prototype.renderPartial=function(t,r,i,a){if(i){var n=this.getConfigTags(a),s=Hu(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)}}},Bt.prototype.unescapedValue=function(t,r){var i=r.lookup(t[1]);if(i!=null)return i},Bt.prototype.escapedValue=function(t,r,i){var a=this.getConfigEscape(i)||lr.escape,n=r.lookup(t[1]);if(n!=null)return typeof n=="number"&&a===lr.escape?String(n):a(n)},Bt.prototype.rawValue=function(t){return t[1]},Bt.prototype.getConfigTags=function(t){return Fi(t)?t:t&&typeof t=="object"?t.tags:void 0},Bt.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!Fi(t))return t.escape};var lr={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){Pa.templateCache=e},get templateCache(){return Pa.templateCache}},Pa=new Bt;lr.clearCache=function(){return Pa.clearCache()},lr.parse=function(t,r){return Pa.parse(t,r)},lr.render=function(t,r,i,a){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+Gx(t)+'" was given as the first argument for mustache#render(template, view, partials)');return Pa.render(t,r,i,a)},lr.escape=tO,lr.Scanner=_a,lr.Context=Di,lr.Writer=Bt;const Wu=e=>e&&typeof e=="object"&&!Array.isArray(e),Gu=(e,...t)=>{if(!t.length)return e;const r=t.shift();if(Wu(e)&&Wu(r))for(const i in r)Wu(r[i])?(e[i]||Object.assign(e,{[i]:{}}),Gu(e[i],r[i])):Object.assign(e,{[i]:r[i]});return Gu(e,...t)},uO=(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()},cO=([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&&{...Rs(t.properties,i.globalUiSchema)},...t.oneOf&&Gu({},...t.oneOf.map(o=>Rs(o.properties,i.globalUiSchema))),...i.globalUiSchema[e]}},Rs=(e,t,r=!1)=>Object.entries(e??{}).reduce((i,[a,n],s)=>{const o=cO([a,n],s,{focusOnFirst:r,isSensitive:n.isSensitive,globalUiSchema:t});return{...i,[a]:{...o,"ui:classNames":uO(o,n)}}},{}),Ju=(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=>Ju(n,t)):r[i]=Ju(a,t):r[i]=a}return r},fO=e=>{const{embedFormOptions:t,ui:r,uiSchema:i,...a}=e;return Ju(a,["ui","isSensitive","isTransient"])},dO=e=>{const t={...e.schema.ui,...e.schema.uiSchema};let r={};if(e.schema.dependencies){const i=Rs(e.schema.dependencies,t);for(const a in i){const n=i[a];delete n["ui:classNames"],r={...r,...n}}}return{...t,...r,...Rs(e.schema.properties,t)}},gh=e=>(Object.entries(e).forEach(([t,r])=>{r&&typeof r=="object"&&gh(r),r&&typeof r=="object"&&!Object.keys(r).length&&delete e[t]}),e),pO=(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(gh(JSON.parse(i))):i},mO=(e,t)=>{const r=(t==null?void 0:t.variables)??{};return JSON.parse(lr.render(pO(e,r),r))};function yh(e){const t=mO(e,e.schema.embedFormOptions);return{schema:fO(t.schema),uiSchema:dO(t),embedFormOptions:{...t.schema.embedFormOptions}}}var Yu={exports:{}};/*!
55
55
  Copyright (c) 2018 Jed Watson.
56
56
  Licensed under the MIT License (MIT), see
57
57
  http://jedwatson.github.io/classnames
58
- */var yh;function mO(){return yh||(yh=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})()})(Yu)),Yu.exports}var hO=mO();const en=jr(hO);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 gO(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),be(e.additionalItems)}function vh(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 bh(e){if(e==="")return;if(e===null)return null;const t=vh(),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 hn=Symbol("__additional_property"),Mi="additionalProperties",zr="allOf",je="anyOf",Vt="const",Yn="default",Xu="dependencies",yO="enum",Dt="__errors",tt="$id",Zu="if",ji="items",vO="_$junk_option_schema_id$_",Bs="$name",xe="oneOf",Qu="patternProperties",ze="properties",ec="readonly",kh="required",Us="submitButtonOptions",at="$ref",Vs=Symbol("__rjsf_ref"),tc=Symbol("__rjsf_ref_cycle"),Ia="$schema",wh="root",Sh="_",bO=["discriminator","propertyName"],Ch="formContext",kO="layoutGridLookupMap",Eh="__rjsf",rc=`${Eh}_additionalProperties`,Ah=`${Eh}_rootSchema`,wO="ui:field",nc="ui:widget",gn="ui:options",ic="ui:globalOptions",SO="ui:definitions",CO="https://json-schema.org/draft/2019-09/schema",Hs="https://json-schema.org/draft/2020-12/schema";function pe(e={},t={}){return e?Object.keys(e).filter(r=>r.startsWith("ui:")).reduce((r,i)=>{const a=e[i];return i===nc&&be(a)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):i===gn&&be(a)?{...r,...a}:{...r,[i.substring(3)]:a}},{...t}):{...t}}function xh(e,t={},r){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:i=!0}=pe(t);return i===!1?i:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var Oh=typeof global=="object"&&global&&global.Object===Object&&global,EO=typeof self=="object"&&self&&self.Object===Object&&self,Rr=Oh||EO||Function("return this")(),ur=Rr.Symbol,_h=Object.prototype,AO=_h.hasOwnProperty,xO=_h.toString,Ta=ur?ur.toStringTag:void 0;function OO(e){var t=AO.call(e,Ta),r=e[Ta];try{e[Ta]=void 0;var i=!0}catch{}var a=xO.call(e);return i&&(t?e[Ta]=r:delete e[Ta]),a}var _O=Object.prototype,PO=_O.toString;function IO(e){return PO.call(e)}var TO="[object Null]",NO="[object Undefined]",Ph=ur?ur.toStringTag:void 0;function tn(e){return e==null?e===void 0?NO:TO:Ph&&Ph in Object(e)?OO(e):IO(e)}function Ih(e,t){return function(r){return e(t(r))}}var Ks=Ih(Object.getPrototypeOf,Object);function cr(e){return e!=null&&typeof e=="object"}var FO="[object Object]",DO=Function.prototype,MO=Object.prototype,Th=DO.toString,jO=MO.hasOwnProperty,LO=Th.call(Object);function yn(e){if(!cr(e)||tn(e)!=FO)return!1;var t=Ks(e);if(t===null)return!0;var r=jO.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Th.call(r)==LO}function ac(e){const t={[Dt]:[],addError(r){this[Dt].push(r)}};if(Array.isArray(e))return e.reduce((r,i,a)=>({...r,[a]:ac(i)}),t);if(yn(e)){const r=e;return Object.keys(r).reduce((i,a)=>({...i,[a]:ac(r[a])}),t)}return t}var Tt=Array.isArray,qO="[object Symbol]";function Na(e){return typeof e=="symbol"||cr(e)&&tn(e)==qO}var $O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zO=/^\w*$/;function sc(e,t){if(Tt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Na(e)?!0:zO.test(e)||!$O.test(e)||t!=null&&e in Object(t)}function Re(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var RO="[object AsyncFunction]",BO="[object Function]",UO="[object GeneratorFunction]",VO="[object Proxy]";function Fa(e){if(!Re(e))return!1;var t=tn(e);return t==BO||t==UO||t==RO||t==VO}var oc=Rr["__core-js_shared__"],Nh=(function(){var e=/[^.]+$/.exec(oc&&oc.keys&&oc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function HO(e){return!!Nh&&Nh in e}var KO=Function.prototype,WO=KO.toString;function Xn(e){if(e!=null){try{return WO.call(e)}catch{}try{return e+""}catch{}}return""}var GO=/[\\^$.*+?()[\]{}|]/g,JO=/^\[object .+?Constructor\]$/,YO=Function.prototype,XO=Object.prototype,ZO=YO.toString,QO=XO.hasOwnProperty,e_=RegExp("^"+ZO.call(QO).replace(GO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function t_(e){if(!Re(e)||HO(e))return!1;var t=Fa(e)?e_:JO;return t.test(Xn(e))}function r_(e,t){return e==null?void 0:e[t]}function Zn(e,t){var r=r_(e,t);return t_(r)?r:void 0}var Da=Zn(Object,"create");function n_(){this.__data__=Da?Da(null):{},this.size=0}function i_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var a_="__lodash_hash_undefined__",s_=Object.prototype,o_=s_.hasOwnProperty;function l_(e){var t=this.__data__;if(Da){var r=t[e];return r===a_?void 0:r}return o_.call(t,e)?t[e]:void 0}var u_=Object.prototype,c_=u_.hasOwnProperty;function f_(e){var t=this.__data__;return Da?t[e]!==void 0:c_.call(t,e)}var d_="__lodash_hash_undefined__";function p_(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Da&&t===void 0?d_:t,this}function Qn(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])}}Qn.prototype.clear=n_,Qn.prototype.delete=i_,Qn.prototype.get=l_,Qn.prototype.has=f_,Qn.prototype.set=p_;function m_(){this.__data__=[],this.size=0}function Ma(e,t){return e===t||e!==e&&t!==t}function Ws(e,t){for(var r=e.length;r--;)if(Ma(e[r][0],t))return r;return-1}var h_=Array.prototype,g_=h_.splice;function y_(e){var t=this.__data__,r=Ws(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():g_.call(t,r,1),--this.size,!0}function v_(e){var t=this.__data__,r=Ws(t,e);return r<0?void 0:t[r][1]}function b_(e){return Ws(this.__data__,e)>-1}function k_(e,t){var r=this.__data__,i=Ws(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function rn(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])}}rn.prototype.clear=m_,rn.prototype.delete=y_,rn.prototype.get=v_,rn.prototype.has=b_,rn.prototype.set=k_;var ja=Zn(Rr,"Map");function w_(){this.size=0,this.__data__={hash:new Qn,map:new(ja||rn),string:new Qn}}function S_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Gs(e,t){var r=e.__data__;return S_(t)?r[typeof t=="string"?"string":"hash"]:r.map}function C_(e){var t=Gs(this,e).delete(e);return this.size-=t?1:0,t}function E_(e){return Gs(this,e).get(e)}function A_(e){return Gs(this,e).has(e)}function x_(e,t){var r=Gs(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function nn(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])}}nn.prototype.clear=w_,nn.prototype.delete=C_,nn.prototype.get=E_,nn.prototype.has=A_,nn.prototype.set=x_;var O_="Expected a function";function lc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(O_);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(lc.Cache||nn),r}lc.Cache=nn;var __=500;function P_(e){var t=lc(e,function(i){return r.size===__&&r.clear(),i}),r=t.cache;return t}var I_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,T_=/\\(\\)?/g,Fh=P_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(I_,function(r,i,a,n){t.push(a?n.replace(T_,"$1"):i||r)}),t});function Li(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 Dh=ur?ur.prototype:void 0,Mh=Dh?Dh.toString:void 0;function jh(e){if(typeof e=="string")return e;if(Tt(e))return Li(e,jh)+"";if(Na(e))return Mh?Mh.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function uc(e){return e==null?"":jh(e)}function qi(e,t){return Tt(e)?e:sc(e,t)?[e]:Fh(uc(e))}function vn(e){if(typeof e=="string"||Na(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Js(e,t){t=qi(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[vn(t[r++])];return r&&r==i?e:void 0}function ae(e,t,r){var i=e==null?void 0:Js(e,t);return i===void 0?r:i}const{getOwnPropertyNames:Lh,getOwnPropertySymbols:N_}=Object,{hasOwnProperty:F_}=Object.prototype;function cc(e,t){return function(i,a,n){return e(i,a,n)&&t(i,a,n)}}function Ys(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 qh(e){const t=N_(e);return t.length?Lh(e).concat(t):Lh(e)}const D_=Object.hasOwn||((e,t)=>F_.call(e,t)),M_="__v",j_="__o",L_="_owner",{getOwnPropertyDescriptor:$h,keys:zh}=Object,ei=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function q_(e,t){return e===t}function $_(e,t){return e.byteLength===t.byteLength&&Xs(new Uint8Array(e),new Uint8Array(t))}function z_(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 R_(e,t){return e.byteLength===t.byteLength&&Xs(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function B_(e,t){return ei(e.getTime(),t.getTime())}function U_(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Rh(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 p=s.value,d=o.value;if(r.equals(p[0],d[0],l,f,e,t,r)&&r.equals(p[1],d[1],p[0],d[0],e,t,r)){c=a[f]=1;break}f++}if(!c)return!1;l++}return!0}function V_(e,t,r){const i=zh(e);let a=i.length;if(zh(t).length!==a)return!1;for(;a-- >0;)if(!Uh(e,t,r,i[a]))return!1;return!0}function La(e,t,r){const i=qh(e);let a=i.length;if(qh(t).length!==a)return!1;let n,s,o;for(;a-- >0;)if(n=i[a],!Uh(e,t,r,n)||(s=$h(e,n),o=$h(t,n),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function H_(e,t){return ei(e.valueOf(),t.valueOf())}function K_(e,t){return e.source===t.source&&e.flags===t.flags}function Bh(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 Xs(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 W_(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 Uh(e,t,r,i){return(i===L_||i===j_||i===M_)&&(e.$$typeof||t.$$typeof)?!0:D_(t,i)&&r.equals(e[i],t[i],i,i,e,t,r)}const G_=Object.prototype.toString;function J_(e){const t=Q_(e),{areArraysEqual:r,areDatesEqual:i,areFunctionsEqual:a,areMapsEqual:n,areNumbersEqual:s,areObjectsEqual:o,areRegExpsEqual:l,areSetsEqual:u,getUnsupportedCustomComparator:c}=e;return function(p,d,m){if(p===d)return!0;if(p==null||d==null)return!1;const k=typeof p;if(k!==typeof d)return!1;if(k!=="object")return k==="number"||k==="bigint"?s(p,d,m):k==="function"?a(p,d,m):!1;const v=p.constructor;if(v!==d.constructor)return!1;if(v===Object)return o(p,d,m);if(v===Array)return r(p,d,m);if(v===Date)return i(p,d,m);if(v===RegExp)return l(p,d,m);if(v===Map)return n(p,d,m);if(v===Set)return u(p,d,m);if(v===Promise)return!1;if(Array.isArray(p))return r(p,d,m);const g=G_.call(p),b=t[g];if(b)return b(p,d,m);const w=c&&c(p,d,m,g);return w?w(p,d,m):!1}}function Y_({circular:e,createCustomConfig:t,strict:r}){let i={areArrayBuffersEqual:$_,areArraysEqual:r?La:z_,areDataViewsEqual:R_,areDatesEqual:B_,areErrorsEqual:U_,areFunctionsEqual:q_,areMapsEqual:r?cc(Rh,La):Rh,areNumbersEqual:ei,areObjectsEqual:r?La:V_,arePrimitiveWrappersEqual:H_,areRegExpsEqual:K_,areSetsEqual:r?cc(Bh,La):Bh,areTypedArraysEqual:r?cc(Xs,La):Xs,areUrlsEqual:W_,getUnsupportedCustomComparator:void 0};if(t&&(i=Object.assign({},i,t(i))),e){const a=Ys(i.areArraysEqual),n=Ys(i.areMapsEqual),s=Ys(i.areObjectsEqual),o=Ys(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:a,areMapsEqual:n,areObjectsEqual:s,areSetsEqual:o})}return i}function X_(e){return function(t,r,i,a,n,s,o){return e(t,r,o)}}function Z_({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 Q_({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:p,areUrlsEqual:d}){return{"[object Arguments]":l,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":n,"[object BigInt]":o,"[object BigInt64Array]":p,"[object BigUint64Array]":p,"[object Boolean]":u,"[object DataView]":r,"[object Date]":i,"[object Error]":a,"[object Float16Array]":p,"[object Float32Array]":p,"[object Float64Array]":p,"[object Function]":n,"[object GeneratorFunction]":n,"[object Int8Array]":p,"[object Int16Array]":p,"[object Int32Array]":p,"[object Map]":s,"[object Number]":u,"[object Object]":(m,k,v)=>typeof m.then!="function"&&typeof k.then!="function"&&l(m,k,v),"[object RegExp]":c,"[object Set]":f,"[object String]":u,"[object URL]":d,"[object Uint8Array]":p,"[object Uint8ClampedArray]":p,"[object Uint16Array]":p,"[object Uint32Array]":p}}an(),an({strict:!0}),an({circular:!0}),an({circular:!0,strict:!0}),an({createInternalComparator:()=>ei}),an({strict:!0,createInternalComparator:()=>ei}),an({circular:!0,createInternalComparator:()=>ei}),an({circular:!0,createInternalComparator:()=>ei,strict:!0});function an(e={}){const{circular:t=!1,createInternalComparator:r,createState:i,strict:a=!1}=e,n=Y_(e),s=J_(n),o=r?r(s):X_(s);return Z_({circular:t,comparator:s,createState:i,equals:o,strict:a})}const Be=an({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var qa={exports:{}},fc,Vh;function Hh(){if(Vh)return fc;Vh=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(S){let A="",O=0,F=0;for(F=0;F<S.length;F++)if(O=S[F].charCodeAt(0),O!==48){if(!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";A+=S[F];break}for(F+=1;F<S.length;F++){if(O=S[F].charCodeAt(0),!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";A+=S[F]}return A}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(S){return S.length=0,!0}function u(S,A,O){if(S.length){const F=s(S);if(F!=="")A.push(F);else return O.error=!0,!1;S.length=0}return!0}function c(S){let A=0;const O={error:!1,address:"",zone:""},F=[],T=[];let j=!1,q=!1,J=u;for(let Y=0;Y<S.length;Y++){const X=S[Y];if(!(X==="["||X==="]"))if(X===":"){if(j===!0&&(q=!0),!J(T,F,O))break;if(++A>7){O.error=!0;break}Y>0&&S[Y-1]===":"&&(j=!0),F.push(":");continue}else if(X==="%"){if(!J(T,F,O))break;J=l}else{T.push(X);continue}}return T.length&&(J===l?O.zone=T.join(""):q?F.push(T.join("")):F.push(s(T))),O.address=F.join(""),O}function f(S){if(p(S,":")<2)return{host:S,isIPV6:!1};const A=c(S);if(A.error)return{host:S,isIPV6:!1};{let O=A.address,F=A.address;return A.zone&&(O+="%"+A.zone,F+="%25"+A.zone),{host:O,isIPV6:!0,escapedHost:F}}}function p(S,A){let O=0;for(let F=0;F<S.length;F++)S[F]===A&&O++;return O}function d(S){let A=S;const O=[];let F=-1,T=0;for(;T=A.length;){if(T===1){if(A===".")break;if(A==="/"){O.push("/");break}else{O.push(A);break}}else if(T===2){if(A[0]==="."){if(A[1]===".")break;if(A[1]==="/"){A=A.slice(2);continue}}else if(A[0]==="/"&&A[1]==="."){O.push("/");break}}else if(T===3&&A==="/.."){O.length!==0&&O.pop(),O.push("/");break}if(A[0]==="."){if(A[1]==="."){if(A[2]==="/"){A=A.slice(3);continue}}else if(A[1]==="/"){A=A.slice(2);continue}}else if(A[0]==="/"&&A[1]==="."){if(A[2]==="/"){A=A.slice(2);continue}else if(A[2]==="."&&A[3]==="/"){A=A.slice(3),O.length!==0&&O.pop();continue}}if((F=A.indexOf("/",1))===-1){O.push(A);break}else O.push(A.slice(0,F)),A=A.slice(F)}return O.join("")}const m={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,v=/[@/?#]/g;function g(S,A){const O=A?v:k;return O.lastIndex=0,S.replace(O,F=>m[F])}function b(S,A=!1){if(S.indexOf("%")===-1)return S;let O="";for(let F=0;F<S.length;F++){if(S[F]==="%"&&F+2<S.length){const T=S.slice(F+1,F+3);if(r(T)){const j=T.toUpperCase(),q=String.fromCharCode(parseInt(j,16));A&&i(q)?O+=q:O+="%"+j,F+=2;continue}}O+=S[F]}return O}const w=new Array(256);{const S="0123456789ABCDEF";for(let A=0;A<256;A++)w[A]="%"+S[A>>4]+S[A&15]}function E(S){return S>=48&&S<=57||S>=65&&S<=90||S>=97&&S<=122||S===42||S===43||S===45||S===46||S===47||S===64||S===95}function h(S){return S<2048?w[192|S>>6]+w[128|S&63]:S<65536?w[224|S>>12]+w[128|S>>6&63]+w[128|S&63]:w[240|S>>18]+w[128|S>>12&63]+w[128|S>>6&63]+w[128|S&63]}function y(S){let A="";for(let O=0;O<S.length;O++){const F=S[O];if(F==="%"&&O+2<S.length){const T=S.slice(O+1,O+3);if(r(T)){const j=T.toUpperCase(),q=String.fromCharCode(parseInt(j,16));q!=="."&&i(q)?A+=q:A+="%"+j,O+=2;continue}}if(a(F))A+=F;else{const T=S.charCodeAt(O);if(T<128)A+=E(T)?F:w[T];else if(T<55296||T>57343)A+=h(T);else if(T<=56319&&O+1<S.length){const j=S.charCodeAt(O+1);j>=56320&&j<=57343?(A+=h(65536+(T-55296<<10)+(j-56320)),O++):A+=h(65533)}else A+=h(65533)}}return A}function C(S){let A="";for(let O=0;O<S.length;O++){const F=S[O];if(F==="%"&&O+2<S.length){const T=S.slice(O+1,O+3);if(r(T)){const j=T.toUpperCase(),q=String.fromCharCode(parseInt(j,16));i(q)?A+=q:A+="%"+j,O+=2;continue}}if(n(F))A+=F;else{const T=S.charCodeAt(O);if(T<128)A+=E(T)?F:w[T];else if(T<55296||T>57343)A+=h(T);else if(T<=56319&&O+1<S.length){const j=S.charCodeAt(O+1);j>=56320&&j<=57343?(A+=h(65536+(T-55296<<10)+(j-56320)),O++):A+=h(65533)}else A+=h(65533)}}return A}function x(S){let A="";for(let O=0;O<S.length;O++){const F=S[O];if(F==="%"&&O+2<S.length){const j=S.slice(O+1,O+3);if(r(j)){A+="%"+j.toUpperCase(),O+=2;continue}}const T=S.charCodeAt(O);if(T<128)A+=E(T)?F:w[T];else if(T<55296||T>57343)A+=h(T);else if(T<=56319&&O+1<S.length){const j=S.charCodeAt(O+1);j>=56320&&j<=57343?(A+=h(65536+(T-55296<<10)+(j-56320)),O++):A+=h(65533)}else A+=h(65533)}return A}function _(S){const A=[];if(S.userinfo!==void 0&&(A.push(S.userinfo),A.push("@")),S.host!==void 0){let O=unescape(S.host);if(!t(O)){const F=f(O);F.isIPV6===!0?O=`[${F.escapedHost}]`:O=g(O,!1)}A.push(O)}return(typeof S.port=="number"||typeof S.port=="string")&&(A.push(":"),A.push(String(S.port))),A.length?A.join(""):void 0}return fc={nonSimpleDomain:o,recomposeAuthority:_,reescapeHostDelimiters:g,normalizePercentEncoding:b,normalizePathEncoding:y,normalizeQueryFragmentEncoding:C,escapePreservingEscapes:x,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:s},fc}var dc,Kh;function eP(){if(Kh)return dc;Kh=1;const{isUUID:e}=Hh(),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,C]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=C,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 C=h.path.match(t);if(C){const x=y.scheme||h.scheme||"urn";h.nid=C[1].toLowerCase(),h.nss=C[2];const _=`${x}:${y.nid||h.nid}`,S=E(_);h.path=void 0,S&&(h=S.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 C=y.scheme||h.scheme||"urn",x=h.nid.toLowerCase(),_=`${C}:${y.nid||x}`,S=E(_);S&&(h=S.serialize(h,y));const A=h,O=h.nss;return A.path=`${x||y.nid}:${O}`,y.skipEscape=!0,A}function f(h,y){const C=h;return C.uuid=C.nss,C.nss=void 0,!y.tolerant&&(!C.uuid||!e(C.uuid))&&(C.error=C.error||"UUID is not valid."),C}function p(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},m={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,serialize:l},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:m,ws:k,wss:v,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:p,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return dc={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:E},dc}var Wh;function tP(){if(Wh)return qa.exports;Wh=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:l,nonSimpleDomain:u}=Hh(),{SCHEMES:c,getSchemeHandler:f}=eP();function p(A,O){return typeof A=="string"?A=C(A,O):typeof A=="object"&&(A=y(v(A,O),O)),A}function d(A,O,F){const T=F?Object.assign({scheme:"null"},F):{scheme:"null"},{parsed:j,malformedAuthorityOrPort:q}=h(A,T),{parsed:J,malformedAuthorityOrPort:Y}=h(O,T);if(q||Y)throw new Error(j.error||J.error||"URI is malformed.");const X=m(j,J,T,!0);return T.skipEscape=!0,v(X,T)}function m(A,O,F,T){const j={};return T||(A=y(v(A,F),F),O=y(v(O,F),F)),F=F||{},!F.tolerant&&O.scheme?(j.scheme=O.scheme,j.userinfo=O.userinfo,j.host=O.host,j.port=O.port,j.path=t(O.path||""),j.query=O.query):(O.userinfo!==void 0||O.host!==void 0||O.port!==void 0?(j.userinfo=O.userinfo,j.host=O.host,j.port=O.port,j.path=t(O.path||""),j.query=O.query):(O.path?(O.path[0]==="/"?j.path=t(O.path):((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path?j.path="/"+O.path:A.path?j.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+O.path:j.path=O.path,j.path=t(j.path)),j.query=O.query):(j.path=A.path,O.query!==void 0?j.query=O.query:j.query=A.query),j.userinfo=A.userinfo,j.host=A.host,j.port=A.port),j.scheme=A.scheme),j.fragment=O.fragment,j}function k(A,O,F){const T=_(A,F),j=_(O,F);return T!==void 0&&j!==void 0&&T.toLowerCase()===j.toLowerCase()}function v(A,O){const F={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:""},T=Object.assign({},O),j=[],q=f(T.scheme||F.scheme);q&&q.serialize&&q.serialize(F,T),F.path!==void 0&&(T.skipEscape?F.path=i(F.path):(F.path=s(F.path),F.scheme!==void 0&&(F.path=F.path.split("%3A").join(":")))),T.reference!=="suffix"&&F.scheme&&j.push(F.scheme,":");const J=r(F);if(J!==void 0&&(T.reference!=="suffix"&&j.push("//"),j.push(J),F.path&&F.path[0]!=="/"&&j.push("/")),F.path!==void 0){let Y=F.path;!T.absolutePath&&(!q||!q.absolutePath)&&(Y=t(Y)),J===void 0&&Y[0]==="/"&&Y[1]==="/"&&(Y="/%2F"+Y.slice(2)),j.push(Y)}return F.query!==void 0&&j.push("?",F.query),F.fragment!==void 0&&j.push("#",F.fragment),j.join("")}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function E(A,O){if(O[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 h(A,O){const F=Object.assign({},O),T={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let j=!1,q=!1;F.reference==="suffix"&&(F.scheme?A=F.scheme+":"+A:A="//"+A);const J=A.match(b);J!==null&&J[1].indexOf("\\")!==-1&&(T.error="URI authority must not contain a literal backslash.",j=!0);const Y=A.match(w);if(Y!==null){const P=Y[1],M=P.replace(/[\t\n\r]/g,"");M.length>=2&&(M.slice(0,2)!=="//"?(T.error=T.error||"URI authority must not contain a literal backslash.",j=!0):P.length!==M.length&&(T.error=T.error||"URI authority introducer must not contain whitespace.",j=!0))}const X=A.match(g);if(X){T.scheme=X[1]===void 0?void 0:X[1].toLowerCase(),T.userinfo=X[3],T.host=X[4],T.port=parseInt(X[5],10),T.path=X[6]||"",T.query=X[7],T.fragment=X[8],isNaN(T.port)&&(T.port=X[5]);const P=E(T,X);if(P!==void 0&&(T.error=T.error||P,j=!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",F.reference&&F.reference!=="suffix"&&F.reference!==T.reference&&(T.error=T.error||"URI is not a "+F.reference+" reference.");const M=f(F.scheme||T.scheme);if(!F.unicodeSupport&&(!M||!M.unicodeSupport)&&T.host&&(F.domainHost||M&&M.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}(!M||M&&!M.skipNormalize)&&(A.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))),M&&M.parse&&M.parse(T,F)}else T.error=T.error||"URI can not be parsed.";return{parsed:T,malformedAuthorityOrPort:j}}function y(A,O){return h(A,O).parsed}function C(A,O){return x(A,O).normalized}function x(A,O){const{parsed:F,malformedAuthorityOrPort:T}=h(A,O);return{normalized:T?A:v(F,O),malformedAuthorityOrPort:T}}function _(A,O){if(typeof A=="string"){const{normalized:F,malformedAuthorityOrPort:T}=x(A,O);return T?void 0:F}if(typeof A=="object")return v(A,O)}const S={SCHEMES:c,normalize:p,resolve:d,resolveComponent:m,equal:k,serialize:v,parse:y};return qa.exports=S,qa.exports.default=S,qa.exports.fastUri=S,qa.exports}var rP=tP();const pc=jr(rP);var $a={},Gh;function nP(){if(Gh)return $a;Gh=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 p,d,m=1,k=c.length;m<k;){if(c[m]==="constructor"||c[m]==="prototype"||c[m]==="__proto__")return u;if(p=i(c[m++]),d=k>m,typeof u[p]>"u"&&(Array.isArray(u)&&p==="-"&&(p=u.length),d&&(c[m]!==""&&c[m]<1/0||c[m]==="-"?u[p]=[]:u[p]={})),!d)break;u=u[p]}var v=u[p];return f===void 0?delete u[p]:u[p]=f,v}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 p=1;p<f;){if(u=u[i(c[p++])],f===p)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,p){return o(f,c,p)}}}return $a.get=s,$a.set=o,$a.compile=l,$a}var iP=nP();const mc=jr(iP);var aP=Object.prototype;function Zs(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||aP;return e===r}var sP=Ih(Object.keys,Object),oP=Object.prototype,lP=oP.hasOwnProperty;function Jh(e){if(!Zs(e))return sP(e);var t=[];for(var r in Object(e))lP.call(e,r)&&r!="constructor"&&t.push(r);return t}var hc=Zn(Rr,"DataView"),gc=Zn(Rr,"Promise"),$i=Zn(Rr,"Set"),yc=Zn(Rr,"WeakMap"),Yh="[object Map]",uP="[object Object]",Xh="[object Promise]",Zh="[object Set]",Qh="[object WeakMap]",eg="[object DataView]",cP=Xn(hc),fP=Xn(ja),dP=Xn(gc),pP=Xn($i),mP=Xn(yc),fr=tn;(hc&&fr(new hc(new ArrayBuffer(1)))!=eg||ja&&fr(new ja)!=Yh||gc&&fr(gc.resolve())!=Xh||$i&&fr(new $i)!=Zh||yc&&fr(new yc)!=Qh)&&(fr=function(e){var t=tn(e),r=t==uP?e.constructor:void 0,i=r?Xn(r):"";if(i)switch(i){case cP:return eg;case fP:return Yh;case dP:return Xh;case pP:return Zh;case mP:return Qh}return t});var hP="[object Arguments]";function tg(e){return cr(e)&&tn(e)==hP}var rg=Object.prototype,gP=rg.hasOwnProperty,yP=rg.propertyIsEnumerable,zi=tg((function(){return arguments})())?tg:function(e){return cr(e)&&gP.call(e,"callee")&&!yP.call(e,"callee")},vP=9007199254740991;function vc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vP}function ti(e){return e!=null&&vc(e.length)&&!Fa(e)}function bP(){return!1}var ng=typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,ig=ng&&typeof module=="object"&&module&&!module.nodeType&&module,kP=ig&&ig.exports===ng,ag=kP?Rr.Buffer:void 0,wP=ag?ag.isBuffer:void 0,ri=wP||bP,SP="[object Arguments]",CP="[object Array]",EP="[object Boolean]",AP="[object Date]",xP="[object Error]",OP="[object Function]",_P="[object Map]",PP="[object Number]",IP="[object Object]",TP="[object RegExp]",NP="[object Set]",FP="[object String]",DP="[object WeakMap]",MP="[object ArrayBuffer]",jP="[object DataView]",LP="[object Float32Array]",qP="[object Float64Array]",$P="[object Int8Array]",zP="[object Int16Array]",RP="[object Int32Array]",BP="[object Uint8Array]",UP="[object Uint8ClampedArray]",VP="[object Uint16Array]",HP="[object Uint32Array]",ht={};ht[LP]=ht[qP]=ht[$P]=ht[zP]=ht[RP]=ht[BP]=ht[UP]=ht[VP]=ht[HP]=!0,ht[SP]=ht[CP]=ht[MP]=ht[EP]=ht[jP]=ht[AP]=ht[xP]=ht[OP]=ht[_P]=ht[PP]=ht[IP]=ht[TP]=ht[NP]=ht[FP]=ht[DP]=!1;function KP(e){return cr(e)&&vc(e.length)&&!!ht[tn(e)]}function bc(e){return function(t){return e(t)}}var sg=typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,za=sg&&typeof module=="object"&&module&&!module.nodeType&&module,WP=za&&za.exports===sg,kc=WP&&Oh.process,Ri=(function(){try{var e=za&&za.require&&za.require("util").types;return e||kc&&kc.binding&&kc.binding("util")}catch{}})(),og=Ri&&Ri.isTypedArray,Ra=og?bc(og):KP,GP="[object Map]",JP="[object Set]",YP=Object.prototype,XP=YP.hasOwnProperty;function kt(e){if(e==null)return!0;if(ti(e)&&(Tt(e)||typeof e=="string"||typeof e.splice=="function"||ri(e)||Ra(e)||zi(e)))return!e.length;var t=fr(e);if(t==GP||t==JP)return!e.size;if(Zs(e))return!Jh(e).length;for(var r in e)if(XP.call(e,r))return!1;return!0}function ZP(){this.__data__=new rn,this.size=0}function QP(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function eI(e){return this.__data__.get(e)}function tI(e){return this.__data__.has(e)}var rI=200;function nI(e,t){var r=this.__data__;if(r instanceof rn){var i=r.__data__;if(!ja||i.length<rI-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new nn(i)}return r.set(e,t),this.size=r.size,this}function Cr(e){var t=this.__data__=new rn(e);this.size=t.size}Cr.prototype.clear=ZP,Cr.prototype.delete=QP,Cr.prototype.get=eI,Cr.prototype.has=tI,Cr.prototype.set=nI;function wc(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var Qs=(function(){try{var e=Zn(Object,"defineProperty");return e({},"",{}),e}catch{}})();function Sc(e,t,r){t=="__proto__"&&Qs?Qs(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var iI=Object.prototype,aI=iI.hasOwnProperty;function Cc(e,t,r){var i=e[t];(!(aI.call(e,t)&&Ma(i,r))||r===void 0&&!(t in e))&&Sc(e,t,r)}function Bi(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?Sc(r,o,l):Cc(r,o,l)}return r}function lg(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var sI=9007199254740991,oI=/^(?:0|[1-9]\d*)$/;function eo(e,t){var r=typeof e;return t=t??sI,!!t&&(r=="number"||r!="symbol"&&oI.test(e))&&e>-1&&e%1==0&&e<t}var lI=Object.prototype,uI=lI.hasOwnProperty;function ug(e,t){var r=Tt(e),i=!r&&zi(e),a=!r&&!i&&ri(e),n=!r&&!i&&!a&&Ra(e),s=r||i||a||n,o=s?lg(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")||eo(u,l)))&&o.push(u);return o}function Er(e){return ti(e)?ug(e):Jh(e)}function cI(e,t){return e&&Bi(t,Er(t),e)}function fI(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var dI=Object.prototype,pI=dI.hasOwnProperty;function mI(e){if(!Re(e))return fI(e);var t=Zs(e),r=[];for(var i in e)i=="constructor"&&(t||!pI.call(e,i))||r.push(i);return r}function Ba(e){return ti(e)?ug(e,!0):mI(e)}function hI(e,t){return e&&Bi(t,Ba(t),e)}var cg=typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,fg=cg&&typeof module=="object"&&module&&!module.nodeType&&module,gI=fg&&fg.exports===cg,dg=gI?Rr.Buffer:void 0,pg=dg?dg.allocUnsafe:void 0;function mg(e,t){if(t)return e.slice();var r=e.length,i=pg?pg(r):new e.constructor(r);return e.copy(i),i}function Ec(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 hg(){return[]}var vI=Object.prototype,bI=vI.propertyIsEnumerable,gg=Object.getOwnPropertySymbols,Ac=gg?function(e){return e==null?[]:(e=Object(e),yI(gg(e),function(t){return bI.call(e,t)}))}:hg;function kI(e,t){return Bi(e,Ac(e),t)}function xc(e,t){for(var r=-1,i=t.length,a=e.length;++r<i;)e[a+r]=t[r];return e}var wI=Object.getOwnPropertySymbols,yg=wI?function(e){for(var t=[];e;)xc(t,Ac(e)),e=Ks(e);return t}:hg;function SI(e,t){return Bi(e,yg(e),t)}function vg(e,t,r){var i=t(e);return Tt(e)?i:xc(i,r(e))}function Oc(e){return vg(e,Er,Ac)}function _c(e){return vg(e,Ba,yg)}var CI=Object.prototype,EI=CI.hasOwnProperty;function AI(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&EI.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var to=Rr.Uint8Array;function Pc(e){var t=new e.constructor(e.byteLength);return new to(t).set(new to(e)),t}function xI(e,t){var r=t?Pc(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var OI=/\w*$/;function _I(e){var t=new e.constructor(e.source,OI.exec(e));return t.lastIndex=e.lastIndex,t}var bg=ur?ur.prototype:void 0,kg=bg?bg.valueOf:void 0;function PI(e){return kg?Object(kg.call(e)):{}}function wg(e,t){var r=t?Pc(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var II="[object Boolean]",TI="[object Date]",NI="[object Map]",FI="[object Number]",DI="[object RegExp]",MI="[object Set]",jI="[object String]",LI="[object Symbol]",qI="[object ArrayBuffer]",$I="[object DataView]",zI="[object Float32Array]",RI="[object Float64Array]",BI="[object Int8Array]",UI="[object Int16Array]",VI="[object Int32Array]",HI="[object Uint8Array]",KI="[object Uint8ClampedArray]",WI="[object Uint16Array]",GI="[object Uint32Array]";function JI(e,t,r){var i=e.constructor;switch(t){case qI:return Pc(e);case II:case TI:return new i(+e);case $I:return xI(e,r);case zI:case RI:case BI:case UI:case VI:case HI:case KI:case WI:case GI:return wg(e,r);case NI:return new i;case FI:case jI:return new i(e);case DI:return _I(e);case MI:return new i;case LI:return PI(e)}}var Sg=Object.create,Cg=(function(){function e(){}return function(t){if(!Re(t))return{};if(Sg)return Sg(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Eg(e){return typeof e.constructor=="function"&&!Zs(e)?Cg(Ks(e)):{}}var YI="[object Map]";function XI(e){return cr(e)&&fr(e)==YI}var Ag=Ri&&Ri.isMap,ZI=Ag?bc(Ag):XI,QI="[object Set]";function eT(e){return cr(e)&&fr(e)==QI}var xg=Ri&&Ri.isSet,tT=xg?bc(xg):eT,rT=1,nT=2,iT=4,Og="[object Arguments]",aT="[object Array]",sT="[object Boolean]",oT="[object Date]",lT="[object Error]",_g="[object Function]",uT="[object GeneratorFunction]",cT="[object Map]",fT="[object Number]",Pg="[object Object]",dT="[object RegExp]",pT="[object Set]",mT="[object String]",hT="[object Symbol]",gT="[object WeakMap]",yT="[object ArrayBuffer]",vT="[object DataView]",bT="[object Float32Array]",kT="[object Float64Array]",wT="[object Int8Array]",ST="[object Int16Array]",CT="[object Int32Array]",ET="[object Uint8Array]",AT="[object Uint8ClampedArray]",xT="[object Uint16Array]",OT="[object Uint32Array]",mt={};mt[Og]=mt[aT]=mt[yT]=mt[vT]=mt[sT]=mt[oT]=mt[bT]=mt[kT]=mt[wT]=mt[ST]=mt[CT]=mt[cT]=mt[fT]=mt[Pg]=mt[dT]=mt[pT]=mt[mT]=mt[hT]=mt[ET]=mt[AT]=mt[xT]=mt[OT]=!0,mt[lT]=mt[_g]=mt[gT]=!1;function Ua(e,t,r,i,a,n){var s,o=t&rT,l=t&nT,u=t&iT;if(r&&(s=a?r(e,i,a,n):r(e)),s!==void 0)return s;if(!Re(e))return e;var c=Tt(e);if(c){if(s=AI(e),!o)return Ec(e,s)}else{var f=fr(e),p=f==_g||f==uT;if(ri(e))return mg(e,o);if(f==Pg||f==Og||p&&!a){if(s=l||p?{}:Eg(e),!o)return l?SI(e,hI(s,e)):kI(e,cI(s,e))}else{if(!mt[f])return a?e:{};s=JI(e,f,o)}}n||(n=new Cr);var d=n.get(e);if(d)return d;n.set(e,s),tT(e)?e.forEach(function(v){s.add(Ua(v,t,r,v,e,n))}):ZI(e)&&e.forEach(function(v,g){s.set(g,Ua(v,t,r,g,e,n))});var m=u?l?_c:Oc:l?Ba:Er,k=c?void 0:m(e);return wc(k||e,function(v,g){k&&(g=v,v=e[g]),Cc(s,g,Ua(v,t,r,g,e,n))}),s}function Ig(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function _T(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 PT(e,t){return t.length<2?e:Js(e,_T(t,0,-1))}var IT=Object.prototype,TT=IT.hasOwnProperty;function Tg(e,t){t=qi(t,e);var r=-1,i=t.length;if(!i)return!0;for(;++r<i;){var a=vn(t[r]);if(a==="__proto__"&&!TT.call(e,"__proto__")||(a==="constructor"||a==="prototype")&&r<i-1)return!1}var n=PT(e,t);return n==null||delete n[vn(Ig(t))]}function NT(e){return yn(e)?void 0:e}var Ng=ur?ur.isConcatSpreadable:void 0;function FT(e){return Tt(e)||zi(e)||!!(Ng&&e&&e[Ng])}function Va(e,t,r,i,a){var n=-1,s=e.length;for(r||(r=FT),a||(a=[]);++n<s;){var o=e[n];t>0&&r(o)?t>1?Va(o,t-1,r,i,a):xc(a,o):i||(a[a.length]=o)}return a}function Ic(e){var t=e==null?0:e.length;return t?Va(e,1):[]}function DT(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 Fg=Math.max;function Dg(e,t,r){return t=Fg(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,n=Fg(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),DT(e,this,o)}}function MT(e){return function(){return e}}function ro(e){return e}var jT=Qs?function(e,t){return Qs(e,"toString",{configurable:!0,enumerable:!1,value:MT(t),writable:!0})}:ro,LT=800,qT=16,$T=Date.now;function zT(e){var t=0,r=0;return function(){var i=$T(),a=qT-(i-r);if(r=i,a>0){if(++t>=LT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Mg=zT(jT);function jg(e){return Mg(Dg(e,void 0,Ic),e+"")}var RT=1,BT=2,UT=4,Ha=jg(function(e,t){var r={};if(e==null)return r;var i=!1;t=Li(t,function(n){return n=qi(n,e),i||(i=n.length>1),n}),Bi(e,_c(e),r),i&&(r=Ua(r,RT|BT|UT,NT));for(var a=t.length;a--;)Tg(r,t[a]);return r});function no(e,t){if(tt in e&&pc.equal(e[tt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const i of r)if(Re(i)){const a=no(i,t);if(a!==void 0)return a}}else if(Re(r)){const i=no(r,t);if(i!==void 0)return i}}function Tc(e,t){const r=ae(e,tt,t);let i=e;at in i&&(i={...i,[at]:pc.resolve(r,i[at])});for(const[a,n]of Object.entries(i))Array.isArray(n)?i={...i,[a]:n.map(s=>Re(s)?Tc(s,r):s)}:Re(n)&&(i={...i,[a]:Tc(n,r)});return i}function Nc(e,t){const r=t[e];return[Ha(t,[e]),r]}function Lg(e,t={},r=[],i=ae(t,[tt])){const a=e||"";let n,s=i;if(a.startsWith("#")){const l=decodeURIComponent(a.substring(1));s===void 0||tt in t&&t[tt]===s?n=mc.get(t,l):t[Ia]===Hs&&(n=no(t,s.replace(/\/$/,"")),n!==void 0&&(n=mc.get(n,l)))}else if(t[Ia]===Hs){const l=s?pc.resolve(s,a):a,[u,...c]=l.replace(/#\/?$/,"").split("#");n=no(t,u.replace(/\/$/,"")),n!==void 0&&(s=n[tt],kt(c)||(n=mc.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,...p]=r,d=[...p,a,f].join(" -> ");throw new Error(`Definition for ${f} contains a circular reference through ${d}`)}const[l,u]=Nc(at,n),c=Lg(u,t,[...r,a],s);return Object.keys(l).length>0?t[Ia]===CO||t[Ia]===Hs?{[zr]:[l,c]}:{...l,...c}:c}return n}function Ka(e,t={},r=ae(t,[tt])){return Lg(e,t,[],r)}var VT=Object.prototype,HT=VT.hasOwnProperty;function KT(e,t){return e!=null&&HT.call(e,t)}function qg(e,t,r){t=qi(t,e);for(var i=-1,a=t.length,n=!1;++i<a;){var s=vn(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&&vc(a)&&eo(s,a)&&(Tt(e)||zi(e)))}function $e(e,t){return e!=null&&qg(e,t,KT)}var WT="[object String]";function bn(e){return typeof e=="string"||!Tt(e)&&cr(e)&&tn(e)==WT}function dr(e){let t;const r=ae(e,bO);return bn(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var GT=1/0;function JT(e){var t=e==null?0:e.length;return t?Va(e,GT):[]}function Fc(e,t,r){(r!==void 0&&!Ma(e[t],r)||r===void 0&&!(t in e))&&Sc(e,t,r)}function YT(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 $g=YT();function Wa(e){return cr(e)&&ti(e)}function Dc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function XT(e){return Bi(e,Ba(e))}function ZT(e,t,r,i,a,n,s){var o=Dc(e,r),l=Dc(t,r),u=s.get(l);if(u){Fc(e,r,u);return}var c=n?n(o,l,r+"",e,t,s):void 0,f=c===void 0;if(f){var p=Tt(l),d=!p&&ri(l),m=!p&&!d&&Ra(l);c=l,p||d||m?Tt(o)?c=o:Wa(o)?c=Ec(o):d?(f=!1,c=mg(l,!0)):m?(f=!1,c=wg(l,!0)):c=[]:yn(l)||zi(l)?(c=o,zi(o)?c=XT(o):(!Re(o)||Fa(o))&&(c=Eg(l))):f=!1}f&&(s.set(l,c),a(c,l,i,n,s),s.delete(l)),Fc(e,r,c)}function zg(e,t,r,i,a){e!==t&&$g(t,function(n,s){if(a||(a=new Cr),Re(n))ZT(e,t,s,r,zg,i,a);else{var o=i?i(Dc(e,s),n,s+"",e,t,a):void 0;o===void 0&&(o=n),Fc(e,s,o)}},Ba)}function io(e,t){return Mg(Dg(e,t,ro),e+"")}function QT(e,t,r){if(!Re(r))return!1;var i=typeof t;return(i=="number"?ti(r)&&eo(t,r.length):i=="string"&&t in r)?Ma(r[t],e):!1}function eN(e){return io(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&&QT(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 tN=eN(function(e,t,r){zg(e,t,r)});function Mc(e,t,r,i){if(!Re(e))return e;t=qi(t,e);for(var a=-1,n=t.length,s=n-1,o=e;o!=null&&++a<n;){var l=vn(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=Re(c)?c:eo(t[a+1])?[]:{})}Cc(o,l,u),o=o[l]}return e}function ot(e,t,r){return e==null?e:Mc(e,t,r)}function Rg(e){return typeof e=="function"?e:ro}var rN=/\s/;function nN(e){for(var t=e.length;t--&&rN.test(e.charAt(t)););return t}var iN=/^\s+/;function aN(e){return e&&e.slice(0,nN(e)+1).replace(iN,"")}var Bg=NaN,sN=/^[-+]0x[0-9a-f]+$/i,oN=/^0b[01]+$/i,lN=/^0o[0-7]+$/i,uN=parseInt;function cN(e){if(typeof e=="number")return e;if(Na(e))return Bg;if(Re(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Re(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=aN(e);var r=oN.test(e);return r||lN.test(e)?uN(e.slice(2),r?2:8):sN.test(e)?Bg:+e}var Ug=1/0,fN=17976931348623157e292;function dN(e){if(!e)return e===0?e:0;if(e=cN(e),e===Ug||e===-Ug){var t=e<0?-1:1;return t*fN}return e===e?e:0}function Vg(e){var t=dN(e),r=t%1;return t===t?r?t-r:t:0}var pN=9007199254740991,jc=4294967295,mN=Math.min;function Hg(e,t){if(e=Vg(e),e<1||e>pN)return[];var r=jc,i=mN(e,jc);t=Rg(t),e-=jc;for(var a=lg(i,t);++r<e;)t(r);return a}function Kg(e,t){return e&&$g(e,t,Er)}var hN="__lodash_hash_undefined__";function gN(e){return this.__data__.set(e,hN),this}function yN(e){return this.__data__.has(e)}function ni(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new nn;++t<r;)this.add(e[t])}ni.prototype.add=ni.prototype.push=gN,ni.prototype.has=yN;function vN(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 Ga(e,t){return e.has(t)}var bN=1,kN=2;function Wg(e,t,r,i,a,n){var s=r&bN,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,p=!0,d=r&kN?new ni:void 0;for(n.set(e,t),n.set(t,e);++f<o;){var m=e[f],k=t[f];if(i)var v=s?i(k,m,f,t,e,n):i(m,k,f,e,t,n);if(v!==void 0){if(v)continue;p=!1;break}if(d){if(!vN(t,function(g,b){if(!Ga(d,b)&&(m===g||a(m,g,r,i,n)))return d.push(b)})){p=!1;break}}else if(!(m===k||a(m,k,r,i,n))){p=!1;break}}return n.delete(e),n.delete(t),p}function wN(e){var t=-1,r=Array(e.size);return e.forEach(function(i,a){r[++t]=[a,i]}),r}function Lc(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var SN=1,CN=2,EN="[object Boolean]",AN="[object Date]",xN="[object Error]",ON="[object Map]",_N="[object Number]",PN="[object RegExp]",IN="[object Set]",TN="[object String]",NN="[object Symbol]",FN="[object ArrayBuffer]",DN="[object DataView]",Gg=ur?ur.prototype:void 0,qc=Gg?Gg.valueOf:void 0;function MN(e,t,r,i,a,n,s){switch(r){case DN:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case FN:return!(e.byteLength!=t.byteLength||!n(new to(e),new to(t)));case EN:case AN:case _N:return Ma(+e,+t);case xN:return e.name==t.name&&e.message==t.message;case PN:case TN:return e==t+"";case ON:var o=wN;case IN:var l=i&SN;if(o||(o=Lc),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;i|=CN,s.set(e,t);var c=Wg(o(e),o(t),i,a,n,s);return s.delete(e),c;case NN:if(qc)return qc.call(e)==qc.call(t)}return!1}var jN=1,LN=Object.prototype,qN=LN.hasOwnProperty;function $N(e,t,r,i,a,n){var s=r&jN,o=Oc(e),l=o.length,u=Oc(t),c=u.length;if(l!=c&&!s)return!1;for(var f=l;f--;){var p=o[f];if(!(s?p in t:qN.call(t,p)))return!1}var d=n.get(e),m=n.get(t);if(d&&m)return d==t&&m==e;var k=!0;n.set(e,t),n.set(t,e);for(var v=s;++f<l;){p=o[f];var g=e[p],b=t[p];if(i)var w=s?i(b,g,p,t,e,n):i(g,b,p,e,t,n);if(!(w===void 0?g===b||a(g,b,r,i,n):w)){k=!1;break}v||(v=p=="constructor")}if(k&&!v){var E=e.constructor,h=t.constructor;E!=h&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof h=="function"&&h instanceof h)&&(k=!1)}return n.delete(e),n.delete(t),k}var zN=1,Jg="[object Arguments]",Yg="[object Array]",ao="[object Object]",RN=Object.prototype,Xg=RN.hasOwnProperty;function BN(e,t,r,i,a,n){var s=Tt(e),o=Tt(t),l=s?Yg:fr(e),u=o?Yg:fr(t);l=l==Jg?ao:l,u=u==Jg?ao:u;var c=l==ao,f=u==ao,p=l==u;if(p&&ri(e)){if(!ri(t))return!1;s=!0,c=!1}if(p&&!c)return n||(n=new Cr),s||Ra(e)?Wg(e,t,r,i,a,n):MN(e,t,l,r,i,a,n);if(!(r&zN)){var d=c&&Xg.call(e,"__wrapped__"),m=f&&Xg.call(t,"__wrapped__");if(d||m){var k=d?e.value():e,v=m?t.value():t;return n||(n=new Cr),a(k,v,r,i,n)}}return p?(n||(n=new Cr),$N(e,t,r,i,a,n)):!1}function so(e,t,r,i,a){return e===t?!0:e==null||t==null||!cr(e)&&!cr(t)?e!==e&&t!==t:BN(e,t,r,i,so,a)}var UN=1,VN=2;function HN(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 Cr,f;if(!(f===void 0?so(u,l,UN|VN,i,c):f))return!1}}return!0}function Zg(e){return e===e&&!Re(e)}function KN(e){for(var t=Er(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,Zg(a)]}return t}function Qg(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function WN(e){var t=KN(e);return t.length==1&&t[0][2]?Qg(t[0][0],t[0][1]):function(r){return r===e||HN(r,e,t)}}function GN(e,t){return e!=null&&t in Object(e)}function ey(e,t){return e!=null&&qg(e,t,GN)}var JN=1,YN=2;function XN(e,t){return sc(e)&&Zg(t)?Qg(vn(e),t):function(r){var i=ae(r,e);return i===void 0&&i===t?ey(r,e):so(t,i,JN|YN)}}function ZN(e){return function(t){return t==null?void 0:t[e]}}function QN(e){return function(t){return Js(t,e)}}function eF(e){return sc(e)?ZN(vn(e)):QN(e)}function $c(e){return typeof e=="function"?e:e==null?ro:typeof e=="object"?Tt(e)?XN(e[0],e[1]):WN(e):eF(e)}function tF(e,t,r){var i=Tt(e),a=i||ri(e)||Ra(e);if(t=$c(t),r==null){var n=e&&e.constructor;a?r=i?new n:[]:Re(e)?r=Fa(n)?Cg(Ks(e)):{}:r={}}return(a?wc:Kg)(e,function(s,o,l){return t(r,s,o,l)}),r}function rF(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 nF(e){return e!==e}function iF(e,t,r){for(var i=r-1,a=e.length;++i<a;)if(e[i]===t)return i;return-1}function ty(e,t,r){return t===t?iF(e,t,r):rF(e,nF,r)}function zc(e,t){var r=e==null?0:e.length;return!!r&&ty(e,t,0)>-1}function oo(){}var aF=1/0,sF=$i&&1/Lc(new $i([,-0]))[1]==aF?function(e){return new $i(e)}:oo,oF=200;function ry(e,t,r){var i=-1,a=zc,n=e.length,s=!0,o=[],l=o;if(n>=oF){var u=sF(e);if(u)return Lc(u);s=!1,a=Ga,l=new ni}else l=o;e:for(;++i<n;){var c=e[i],f=c;if(c=c!==0?c:0,s&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue e;o.push(c)}else a(l,f,r)||(l!==o&&l.push(f),o.push(c))}return o}function ny(e){return e&&e.length?ry(e):[]}function Ja(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 lF=io(function(e){return ry(Va(e,1,Wa,!0))});function pr(e){let{type:t}=e;return!t&&e.const?Ja(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 sn(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]=sn(s,o):e&&t&&(pr(e)==="object"||pr(t)==="object")&&n===kh&&Array.isArray(s)&&Array.isArray(o)?a[n]=lF(s,o):a[n]=o,a},r);for(const a of Object.getOwnPropertySymbols(t))i[a]=t[a];return i}var uF="[object Number]";function iy(e){return typeof e=="number"||cr(e)&&tn(e)==uF}function ay(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,[ze,r],{});if(o.type!=="object"&&o.type!=="array"&&(o.const===a||!((i=o.enum)===null||i===void 0)&&i.includes(a)))return n}}}function lo(e,t,r,i,a){if(t===void 0)return 0;const n=ay(t,r,a);if(iy(n))return n;for(let s=0;s<r.length;s+=1){const o=r[s];if(a&&$e(o,[ze,a])){const l=ae(t,a),u=ae(o,[ze,a],{});if(e.isValid(u,l,i))return s}else if(o[ze]){const l={anyOf:Object.keys(o[ze]).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 cF=Object.prototype;function Ya(e){for(const t in e)if(cF.hasOwnProperty.call(e,t))return!1;return!0}const fF=["array","boolean","integer","null","number","object","string"];new Set(fF);const dF=["$defs","definitions","properties","patternProperties","dependencies"];new Set(dF);const pF=["items","allOf","oneOf","anyOf"];new Set(pF);const mF=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(mF);function uo(e){return typeof e=="object"}function Br(e){return uo(e)?Ya(e):e===!0}function Ui(e,t){return e<t?-1:e>t?1:0}function Rc(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 hF(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 sy(e){return e.length===0}function Bc(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 oy(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 gF(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 yF(e,t){return r=>{if(e.has(r))return e.get(r);const i=t(r);return e.set(r,i),i}}const ly=yF,uy=()=>0,vF=e=>e===void 0,bF=e=>typeof e!="object",cy={boolean:0,number:1,string:2};function kF(e,t){const r=typeof e,i=typeof t;return r===i?Ui(e,t):cy[r]-cy[i]}function wF(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 co(e,t,r=uy){return(i,a)=>e(i)?e(a)?r(i,a):-1:e(a)?1:t(i,a)}function Vi(e){return co(vF,e)}function kn(e,t){return co(r=>r===void 0||e(r),t)}function Uc(e,t){return co(Array.isArray,e,t)}const _t=Vi(Ui),Vc=kn(e=>e===0,(e,t)=>e-t);function SF({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=ly(t,k=>Object.keys(k).sort());function i(k){return(v,g)=>{const b=r(v),w=r(g),E=Math.min(b.length,w.length);for(let h=0;h<E;h++){const y=Ui(b[h],w[h]);if(y!==0)return y}if(b.length!==w.length)return b.length-w.length;for(let h=0;h<E;h++){const y=b[h],C=k(v[y],g[y]);if(C!==0)return C}return 0}}function a(k){const v=Bc(k),g=ly(e,oy(k,{threshold:0}));return(b,w)=>v(g(b),g(w))}const n=a(Ui);function s(k,v){if(uo(k)){if(uo(v)){const g=Object.keys(k),b=Object.keys(v),w=wF(g,b),E=w.length;for(let h=0;h<E;h++){const y=w[h];if(k[y]===v[y])continue;const x=(m[y]??o)(k[y],v[y]);if(x!==0)return x}return 0}return v===!0&&Ya(k)?0:1}return uo(v)?k===!0&&Ya(v)?0:-1:Ui(k,v)}const o=Vi(u),l=co(bF,Uc(i(o),Bc(u)),kF);function u(k,v){return k===null?-1:v===null?1:l(k,v)}const c=Vi(s),f=kn(Ya,i(c)),p=Vi(a(s)),d=kn(Br,s),m={$id:_t,$comment:_t,$defs:f,$ref:_t,$schema:_t,const:o,contains:c,contentEncoding:_t,contentMediaType:_t,default:o,definitions:f,description:_t,else:c,examples:o,exclusiveMaximum:_t,exclusiveMinimum:_t,format:_t,if:c,maximum:_t,maxItems:_t,maxLength:_t,maxProperties:_t,minimum:_t,multipleOf:_t,not:c,pattern:_t,propertyNames:c,readOnly:_t,then:c,title:_t,writeOnly:_t,uniqueItems:kn(k=>k===!1,uy),minLength:Vc,minItems:Vc,minProperties:Vc,required:kn(sy,n),enum:kn(sy,a(u)),type:Vi((k,v)=>{const g=Array.isArray(k),b=Array.isArray(v);return!g&&!b?Ui(k,v):n(g?k:[k],b?v:[v])}),items:kn(k=>!Array.isArray(k)&&Br(k),Uc(s,Bc(s))),anyOf:p,allOf:p,oneOf:p,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:kn(Ya,i(Vi(Uc(s,n))))};return{compareSchemaValues:u,compareSchemaDefinitions:s}}function fy(e){return e}const dy=(e,t)=>e?dy(t%e,e):t,CF=(e,t)=>Math.abs(e*t)/dy(e,t);function EF(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function Hc(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 Kc(e,t){return e||t}function py(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 AF(e){const t=new Map;for(const r of e)for(const i of r[0])t.set(i,r[1]);return t}function ii(e,t,r){r===void 0||Br(r)?delete e[t]:e[t]=r}const xF=["properties","patternProperties","additionalProperties"];function my(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 hy=[[],[]];function gy(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 OF=["items","additionalItems"],_F=["if","then","else"];function yy(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 Wc(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 ai(e,t,r){return[e,t,r]}function PF(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 IF=[ai("minimum","maximum",e=>e.maximum>=e.minimum),ai("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),ai("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),ai("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),ai("minLength","maxLength",e=>e.maxLength>=e.minLength),ai("minItems","maxItems",e=>e.maxItems>=e.minItems),ai("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function TF({mergePatterns:e=EF,isSubRegExp:t=Object.is,intersectJson:r=hF,deduplicateJsonSchemaDef:i=fy,defaultMerger:a=fy,assigners:n=[],checks:s=IF,mergers:o}={}){function l(E){const h=E.length;let y=E[0];for(let C=1;C<h;C++){const x=g(y,E[C]);if(x===!1)return!1;Br(x)||(y=x)}return y}function u(E,h,y,C,x,_,S){if(E.length=0,y===!1)return!1;if(E.push(y),x!==void 0){if(x===!1)return!1;E.push(x)}if(gy(E,h,_))return!1;const O=E.length<2;if(S===!1){if(O)return;if(gy(E,h,C))return!1}else O&&S!==void 0&&E.push(S);return E.length===1?E[0]:l(E)}function c(E,h,y,C,x,_){const S=y.length;if(S>0&&x!==!1)if(_)Object.assign(E,h);else for(let A=0;A<S;A++){const O=y[A];C.has(O)||(E[O]=g(h[O],x))}return E}const f=(E,{properties:h={},patternProperties:y,additionalProperties:C=!0},{properties:x={},patternProperties:_,additionalProperties:S=!0})=>{const A=Br(C),O=Br(S);if(A&&O)return ii(E,"properties",b(h,x)),ii(E,"patternProperties",y&&_?b(y,_):y??_),delete E.additionalProperties,E;const F=g(C,S);ii(E,"additionalProperties",F);const T={},j=Object.keys(h),q=j.length,[J,Y]=y?my(y):hy,[X,P]=_?my(_):hy,M=[],U=new Set,I=O?void 0:S;for(let G=0;G<q;G++){const Z=j[G];U.add(Z);const z=u(M,Z,h[Z],J,x[Z],X,I);z!==void 0&&(T[Z]=z)}const D=Object.keys(x),L=D.length,B=A?void 0:C;for(let G=0;G<L;G++){const Z=D[G];if(U.has(Z))continue;const z=u(M,Z,x[Z],X,void 0,J,B);z!==void 0&&(T[Z]=z)}ii(E,"properties",T);let R={};const H=new Set;return Y.length>0&&P.length>0&&Hc(Y,P,(G,Z)=>{t(G,Z)&&H.add(G),t(Z,G)&&H.add(Z),R[e(G,Z)]=g(y[G],_[Z])}),R=c(R,y,Y,H,S,O),R=c(R,_,P,H,C,A),ii(E,"patternProperties",R),E},p=(E,{items:h=[],additionalItems:y},{items:C=[],additionalItems:x})=>{const _=Array.isArray(h),S=Array.isArray(C),A=[];if(E.items=A,_&&S){const[O,F,T]=h.length<C.length?[h.length,y,C]:[C.length,x,h];let j=0;for(;j<O;j++)A.push(g(h[j],C[j]));if(F===!1)E.additionalItems=!1;else{const q=F===void 0||Br(F);for(;j<T.length;j++)A.push(q?T[j]:g(T[j],F));ii(E,"additionalItems",y!==void 0&&x!==void 0?g(y,x):y??x)}}else if(_||S){const[O,F,T]=_?[h,C,y]:[C,h,x];ii(E,"additionalItems",T&&g(T,F));for(let j=0;j<O.length;j++)A.push(g(O[j],F))}else delete E.additionalItems,E.items=g(h,C);return E},d=(E,h,y)=>{yy(E,h);const C=yy({},y);return E.allOf===void 0?E.allOf=[C]:E.allOf=E.allOf.concat(C),E};function m(E,h){const y=[];if(Hc(E,h,(C,x)=>{try{y.push(g(C,x))}catch{}}),y.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(E)}" and "${JSON.stringify(h)}"; the merged result is empty`);return i(y)}const k=AF([[xF,f],[OF,p],[_F,d],...n]),v=PF(s);function g(E,h){if(E===!1||h===!1)return!1;if(Br(E))return Br(h)?!0:h;if(Br(h))return E;let y={...E};const C=new Set,x=new Set,_=Reflect.ownKeys(h),S=_.length;for(let A=0;A<S;A++){const O=_[A],F=h[O];if(F===void 0)continue;const T=v.get(O);if(T!==void 0){const Y=T.length;for(let X=0;X<Y;X++){const P=T[X];E[P.oppositeKey]!==void 0&&x.add(P.check)}}const j=E[O];if(j===void 0){y[O]=F;continue}const q=k.get(O);if(q){C.add(q);continue}const J=w[O]??a;y[O]=J(j,F)}for(const A of C)y=A(y,E,h);for(const A of x)A(y);return y}const b=py(g),w={$id:a,$ref:a,$schema:a,$comment:a,$defs:b,definitions:b,type:(E,h)=>{if(E===h)return E;const y=Array.isArray(E),C=Array.isArray(h);if(!y&&!C){const x=Wc(E,h);if(x!==void 0)return x}else if(y||C){const x=new Set;if(y&&C)Hc(E,h,(S,A)=>{const O=Wc(S,A);O!==void 0&&x.add(O)});else{const S=y?E:h,A=y?h:E,O=S.length;for(let F=0;F<O;F++){const T=Wc(A,S[F]);T!==void 0&&x.add(T)}}const _=x.size;if(_===1)return x.values().next().value;if(_>1)return Array.from(x)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${E.toString()}, ${h.toString()}`)},default:a,description:a,title:a,const:a,format:a,contentEncoding:a,contentMediaType:a,not:(E,h)=>{const y=i([E,h]);return y.length===1?y[0]:{anyOf:y}},pattern:e,readOnly:Kc,writeOnly:Kc,enum:(E,h)=>{const y=r(E,h);if(y.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(E)}", "${JSON.stringify(h)}"`);return y},anyOf:m,oneOf:m,allOf:(E,h)=>i(E.concat(h)),propertyNames:g,contains:g,dependencies:py((E,h)=>Array.isArray(E)?Array.isArray(h)?Rc(E,h):g(h,{required:E}):Array.isArray(h)?g(E,{required:h}):g(E,h)),examples:(E,h)=>{if(!Array.isArray(E)||!Array.isArray(h))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(E)}" and "${JSON.stringify(h)}"`);return Rc(E,h)},multipleOf:(E,h)=>{let y=1;for(;!Number.isInteger(E)||!Number.isInteger(h);)y*=10,E*=10,h*=10;return CF(E,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:Kc,required:Rc,...o};return{mergeSchemaDefinitions:g,mergeArrayOfSchemaDefinitions:l}}function NF(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 FF(e){return t=>e(NF(t))}const{compareSchemaDefinitions:DF,compareSchemaValues:MF}=SF(),{mergeArrayOfSchemaDefinitions:jF}=TF({intersectJson:gF(MF),deduplicateJsonSchemaDef:oy(DF)}),vy=FF(jF);function Mt(e,t,r={},i,a,n=!1){return Ur(e,t,r,i,void 0,void 0,a,n)[0]}function by(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function LF(e,t,r,i,a,n,s){const{if:o,then:l,else:u,...c}=t,f=e.isValid(o,n||{},r);let p=[c],d=[];if(i){if(l&&typeof l!="boolean"){const m=l;d=d.concat(Ur(e,m,r,n,i,a,s))}if(u&&typeof u!="boolean"){const m=u;d=d.concat(Ur(e,m,r,n,i,a,s))}}else{const m=f?l:u;if(m!==void 0){const k=by(m);d=d.concat(Ur(e,k,r,n,i,a,s))}}return d.length&&(p=d.map(m=>sn(c,m))),p.flatMap(m=>Ur(e,m,r,n,i,a,s))}function ky(e){return e.reduce((r,i)=>i.length>1?i.flatMap(a=>Hg(r.length,n=>[...r[n]].concat(a))):(r.forEach(a=>a.push(i[0])),r),[[]])}function wy(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,i)=>(ot(r,[i],e.patternProperties[i]),r),{})}function qF(e,t,r,i,a,n,s,o){const l=Sy(e,t,r,i,a,n,s,o);if(l.length>1||l[0]!==t)return l;if(Xu in t)return Ey(e,t,r,i,a,n,s).flatMap(c=>Ur(e,c,r,n,i,a,s));if(zr in t&&Array.isArray(t[zr])){const u=t.allOf.map(f=>Ur(e,f,r,n,i,a,s));return ky(u).map(f=>({...t,allOf:f}))}return[t]}function Sy(e,t,r,i,a,n,s,o){const l=wn(t,r,a,void 0,o);return l!==t?Ur(e,l,r,n,i,a,s,o):[t]}function wn(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,[tc]:!0}:s;r.push(l),s={...Ka(l,t,o),...u,[Vs]:l},tt in s&&(o=s[tt])}if(ze in s){const l=[],u=tF(s[ze],(c,f,p)=>{const d=[...r];c[p]=wn(f,t,d,o,a,!a),l.push(d)},{});tN(r,ny(JT(l))),s={...s,[ze]:u}}if(ji in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:wn(s.items,t,r,o,a)}),a){let l,u;je in e&&Array.isArray(e[je])?(l=je,u=s[je]):xe in e&&Array.isArray(e[xe])&&(l=xe,u=s[xe]),l&&u&&(s={...s,[l]:u.map(c=>wn(c,t,r,o,a))})}return Be(e,s)?e:s}function $F(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(Qu in n){const l=wy(n,o);if(!kt(l)){n.properties[o]=Mt(e,{[zr]:Object.values(l)},r,ae(s,[o]),a),n.properties[o][hn]=!0;return}}if(Mi in n&&n.additionalProperties!==!1){let l;typeof n.additionalProperties!="boolean"?at in n.additionalProperties?l=Mt(e,{[at]:ae(n.additionalProperties,[at])},r,ae(s,[o]),a):"type"in n.additionalProperties?l={...n.additionalProperties}:je in n.additionalProperties||xe in n.additionalProperties?l={type:"object",...n.additionalProperties}:l={type:Ja(ae(s,[o]))}:l={type:Ja(ae(s,[o]))},n.properties[o]=l,n.properties[o][hn]=!0}else n.properties[o]={type:"null"},n.properties[o][hn]=!0}}),n}function zF(e){return vy(e)}function Ur(e,t,r,i,a=!1,n=[],s,o){return be(t)?qF(e,t,r,a,n,i,s,o).flatMap(u=>{var c;let f=u;if(Zu in f)return LF(e,f,r,a,n,i,s);if(zr in f){if(a){const{allOf:d,...m}=f;return[...d,m]}try{const d=[],m=[],k={};(c=f.allOf)===null||c===void 0||c.forEach(v=>{if(typeof v=="object"&&v.contains)d.push(v);else{m.push(v);for(const g of Object.getOwnPropertySymbols(v))g in k||(k[g]=v[g])}}),d.length&&(f={...f,allOf:m}),f=s?s(f):zF(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:
59
- `,d);const{allOf:m,...k}=f;return k}}return ze in f&&Qu in f&&(f=Object.keys(f.properties).reduce((d,m)=>{const k=wy(d,m);return kt(k)||(d.properties[m]=Mt(e,{allOf:[d.properties[m],...Object.values(k)]},r,ae(i,[m]),s)),d},{...f,properties:{...f.properties}})),Qu in f||Mi in f&&f.additionalProperties!==!1?$F(e,f,r,i,s):f}):[{}]}function RF(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=dr(t);n=n.map(p=>wn(p,r,[]));const f=lo(e,u,n,r,c);if(i){const p=Cy(n,!1,r);return lo(e,u,p,r,c),n.map(d=>sn(l,d))}return[sn(l,n[f])]}return[t]}function Cy(e,t=!1,r){return e.map(i=>{if(!be(i))return by(i);const a=t&&r?wn(i,r,[]):i;return a.additionalProperties===!1?{...a,additionalProperties:!0}:a})}function Ey(e,t,r,i,a,n,s){const{dependencies:o,...l}=t;return RF(e,l,r,i,n).flatMap(c=>Ay(e,o,c,r,i,a,n,s))}function Ay(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]=Nc(u,t);return Array.isArray(f)?l[0]=BF(r,f):be(f)&&(l=UF(e,r,i,u,f,a,n,s,o)),l.flatMap(p=>Ay(e,c,p,i,a,n,s,o))}return l}function BF(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 UF(e,t,r,i,a,n,s,o,l){return Ur(e,a,r,o,n,s,l).flatMap(c=>{const{oneOf:f,...p}=c,d=sn(t,p);if(f===void 0)return d;const m=f.map(v=>typeof v=="boolean"||!(at in v)?[v]:Sy(e,v,r,n,s,o));return ky(m).flatMap(v=>VF(e,d,r,i,v,n,s,o,l))})}function VF(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 p={type:"object",properties:{[i]:f}};return e.isValid(p,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,[p]=Nc(i,f.properties),d={...f,properties:p};return Ur(e,d,r,o,n,s,l).map(k=>sn(t,k))})}function Xa(e,t,r,i,a,n={},s){if(Array.isArray(r[a])){const l=dr(r)||i,u=r[a].map(f=>Mt(e,f,t,n,s)),c=ae(n,l);if(c!==void 0)return u.find(f=>Be(ae(f,[ze,l,Yn],ae(f,[ze,l,Vt])),c))}}function xy(e,t,r,i,a){let n=r;if($e(r,at)&&(n=Mt(e,r,t,void 0,a)),kt(i))return n;const s=Array.isArray(i)?[...i]:i.split("."),[o,...l]=s;if(o!==void 0&&o!==""&&$e(n,o))return n=ae(n,o),xy(e,t,n,l,a)}function fo(e,t,r,i,a,n){const s=xy(e,t,r,i,n);return s===void 0?a:s}const Oy={title:"!@#$_UNKNOWN_$#@!"};function HF(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=fo(e,t,o,[ze,d],{},n),$e(o,xe)?o=Xa(e,t,o,u,xe,ae(a,d),n):$e(o,je)&&(o=Xa(e,t,o,u,je,ae(a,d),n))}),$e(o,xe)?o=Xa(e,t,o,u,xe,a,n):$e(o,je)&&(o=Xa(e,t,o,u,je,a,n));let c=fo(e,t,o,[ze,l],Oy,n);c===Oy&&(c=void 0);const f=fo(e,t,o,kh,[],n);let p;return c&&Array.isArray(f)&&(p=f.includes(u)),{field:c,isRequired:p}}function KF(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 WF(e,t){return function(r,i){if(r==null)return r;if(!ti(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 _y=WF(Kg);function GF(e,t,r,i,a){return a(e,function(n,s,o){r=i?(i=!1,n):t(r,n,s,o)}),r}function JF(e,t,r){var i=Tt(e)?KF:GF,a=arguments.length<3;return i(e,$c(t),r,a,_y)}const YF={type:"object",$id:vO,properties:{__not_really_there__:{type:"number"}}};function Gc(e,t,r,i,a){let n=0;return r&&(Re(r.properties)?n+=JF(r.properties,(s,o,l)=>{const u=ae(i,l);if(typeof o=="boolean")return s;if($e(o,at)){const c=Mt(e,o,t,u,a);return s+Gc(e,t,c,u||{},a)}if(($e(o,xe)||$e(o,je))&&u){const c=$e(o,xe)?xe:je,f=dr(o);return s+Hi(e,t,u,ae(o,c),-1,f,a)}if(o.type==="object"){const c=Re(u)?1:0;return s+c+Gc(e,t,o,u,a)}if(o.type===Ja(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):bn(r.type)&&r.type===Ja(i)&&(n+=1)),n}function Hi(e,t,r,i,a=-1,n,s){const o=i.map(p=>wn(p,t,[])),l=ay(r,i,n);if(iy(l))return l;const u=o.reduce((p,d,m)=>(lo(e,r,[YF,d],t,n)===1&&p.push(m),p),[]);if(u.length===1)return u[0];u.length||Hg(o.length,p=>u.push(p));const c=new Set,{bestIndex:f}=u.reduce((p,d)=>{const{bestScore:m}=p,k=o[d],v=Gc(e,t,k,r,s);return c.add(v),v>m?{bestIndex:d,bestScore:v}:p},{bestIndex:a,bestScore:0});return c.size===1&&a>=0?a:f}function Py(e){const t=e[Vt],r=pr(e);return be(t)&&bn(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function Iy(e){return Array.isArray(e.enum)&&e.enum.length===1||Vt in e}function Jc(e){return Array.isArray(e.items)&&e.items.every(t=>be(t))}function Ki(e){return e==null}function Za(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?Za(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,p=(l=ae(e,o))!==null&&l!==void 0?l:{},d=c&&be(p)&&Object.values(p).some(v=>be(v)),m=c&&be(ae(e,o)),k=f&&be(u);return m&&k&&!d?(s[o]={...ae(e,o),...u},s):(s[o]=Za(ae(e,o),u,r,i,a&&(c||!f)),n)},n)}return i&&(e!==void 0&&Ki(t)||typeof t=="number"&&Number.isNaN(t))||a&&!Ki(t)?e:t}function Sn(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]=Sn(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 XF(e){if(yO in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(Vt in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function ZF(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 si(e,t){if(e.enum){let n,s;if(t){const{enumNames:l,enumOrder:u}=pe(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=ZF(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=dr(e);if(t){const{optionsSchemaSelector:n=a}=pe(t);a=n}return r==null?void 0:r.map((n,s)=>{var o,l,u;const{title:c}=pe(i==null?void 0:i[s]),f=n;let p,d=c;if(a){const m=ae(f,[ze,a],{});p=ae(m,Yn,ae(m,Vt)),d=(l=(o=d??(m==null?void 0:m.title))!==null&&o!==void 0?o:f.title)!==null&&l!==void 0?l:String(p)}else p=XF(f),d=(u=d??f.title)!==null&&u!==void 0?u:String(p);return{schema:f,label:d,value:p}})}function po(e,t,r={},i){const a=Mt(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"&&Iy(s)):!1}function Yc(e,t,r,i){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:po(e,t.items,r,i)}const QF=["string","number","integer","boolean","null"];var Wi;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(Wi||(Wi={}));function Xc(e,t=Wi.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!==Wi.Ignore&&be(e.additionalItems)?e.additionalItems:{}}function Ty(e,t){const{default:r,type:i}=e;return Array.isArray(i)&&i.includes("null")&&kt(t)&&r===null?null:t}function Ny(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)||!kt(r))&&(e[t]=r);else if(u!=="skipDefaults"){const c=a===void 0?n.includes(t):a;be(r)?u==="skipEmptyDefaults"?kt(r)||(e[t]=r):(!kt(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 Cn(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:p}=r;let d=be(a)?a:{};const m=be(t)?t:{};let k=i;const v=k&&(l==null?void 0:l.nestedDefaultsPrecedence)==="ancestorWins";let g=null,b=l,w=o;if(m[Vt]!==void 0&&(l==null?void 0:l.constAsDefaults)!=="never"&&!Py(m))k=m[Vt];else if(be(k)&&be(m.default)&&!m[je]&&!m[xe]&&!m[at])v?k=Sn(m.default,k):k=Sn(k,m.default);else if(Yn in m&&!v&&!m[je]&&!m[xe]&&!m[at])k=m.default;else if(at in m){const y=m[at];o.includes(y)||(w=o.concat(y),g=Ka(y,n));const C=a===void 0||be(a)&&kt(a);g&&!k&&C&&(k=m.default),f&&g&&!be(a)&&(d=a)}else if(Xu in m){const y={...Fy(e,m,r,k),...d};[g]=Ey(e,m,n,!1,[],y,u)}else if(Jc(m)&&!v)k=m.items.map((y,C)=>Cn(e,y,{rootSchema:n,includeUndefinedValues:s,_recurseList:o,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,parentDefaults:Array.isArray(i)?i[C]:void 0,rawFormData:d,required:c,shouldMergeDefaultsIntoFormData:f}));else if(xe in m){const{oneOf:y,...C}=m;if(y.length===0)return;const x=dr(m),{type:_="null"}=C;!Array.isArray(_)&&QF.includes(_)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),g=y[Hi(e,n,a??m.default,y,0,x,u)],g=sn(C,g)}else if(je in m){const{anyOf:y,...C}=m;if(y.length===0)return;const x=dr(m);g=y[Hi(e,n,a??m.default,y,0,x,u)],g=sn(C,g)}if(g)return Cn(e,g,{rootSchema:n,includeUndefinedValues:s,_recurseList:w,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:u,parentDefaults:k,rawFormData:a??d,required:c,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:p});k===void 0&&(k=m.default);const E=Fy(e,m,r,k);let h=E??k;if(f){const{arrayMinItems:y={}}=l||{},{mergeExtraDefaults:C}=y,x=Zc(e,m,n,a,l,u);(!be(a)||zr in m)&&(h=Za(h,x,C,!0))}return h}function Zc(e,t,r,i,a,n){const s=(a==null?void 0:a.allOf)==="populateDefaults"&&zr in t,o=s?Mt(e,t,r,i,n):t,l=!Iy(o)&&po(e,o,r,n);let u=i;if(l){const f=si(o);u=(f==null?void 0:f.some(d=>Be(d.value,i)))?i:void 0}return o[Vt]&&(a==null?void 0:a.constAsDefaults)==="always"?u=o.const:be(u)&&be(o.properties)&&(u=Object.keys(o.properties).reduce((f,p)=>{const d=ae(o,[ze,p],{});return p in f&&(s||be(d)&&zr in d)&&(f[p]=Zc(e,d,r,ae(f,p),a,n)),f},{...u})),u}function eD(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 p=be(r)?r:{},d=t,k=(s==null?void 0:s.allOf)==="populateDefaults"&&zr in d||(s==null?void 0:s.emptyObjectFields)!=="skipEmptyDefaults"&&Zu in d?Mt(e,d,i,p,o):d,v=k[Vt],g=Object.keys(k.properties||{}).reduce((b,w)=>{var E;const h=ae(k,[ze,w],{}),y=be(v)&&v[w]!==void 0,C=(be(h)&&Vt in h||y)&&(s==null?void 0:s.constAsDefaults)!=="never"&&!Py(h),x=Cn(e,h,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:a===!0,parentDefaults:ae(f,[w]),rawFormData:ae(p,[w]),required:(E=k.required)===null||E===void 0?void 0:E.includes(w),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});return Ny(b,w,x,a,l,k.required,s,C,(h==null?void 0:h.type)==="null"),b},{});if(k.additionalProperties&&!c){const b=be(k.additionalProperties)?k.additionalProperties:{},w=new Set,E=[];Object.keys(p).filter(h=>!k.properties||!k.properties[h]).forEach(h=>{w.add(h),E.push(h)}),be(f)&&E.length===0&&Object.keys(f).filter(h=>!k.properties||!k.properties[h]).forEach(h=>w.add(h)),w.forEach(h=>{var y;const C=Cn(e,b,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:a===!0,parentDefaults:ae(f,[h]),rawFormData:ae(p,[h]),required:(y=k.required)===null||y===void 0?void 0:y.includes(h),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});Ny(g,h,C,a,l,E)})}return Ty(t,g)}}function tD(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 p,d;let m=f;const k=t,v=(p=n==null?void 0:n.arrayMinItems)!==null&&p!==void 0?p:{},{populate:g,mergeExtraDefaults:b}=v,w=g==="never",E=g==="requiredOnly",h=g==="all"||!w&&!E,y=(d=v==null?void 0:v.computeSkipPopulate)!==null&&d!==void 0?d:(()=>!1),x=(n==null?void 0:n.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(m)&&(m=m.map((A,O)=>{const F=Xc(k,Wi.Fallback,O),T=Array.isArray(r)?r[O]:void 0;return Cn(e,F,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,parentDefaults:A,rawFormData:T,required:o,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c})})),Array.isArray(r)){const A=Xc(k);if(w)m=r;else{const O=r.map((T,j)=>Cn(e,A,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:T,parentDefaults:ae(m,[j]),required:o,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}));m=Za(m,O,(E&&o||h)&&b)}}const _=Array.isArray(m)?m.length:0;if(w)return u&&!o?m:m??x;if(E&&!o)return m||void 0;let S;if(!k.minItems||Yc(e,k,i,s)||y(e,k,i)||k.minItems<=_)S=m||!o&&!l?m:x;else{const A=m||[],O=Xc(k,Wi.Invert),F=O.default,T=Array.from({length:k.minItems-_},()=>Cn(e,O,{parentDefaults:F,rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,shouldMergeDefaultsIntoFormData:u}));S=A.concat(T)}return Ty(t,S)}function Fy(e,t,r={},i){switch(pr(t)){case"object":return eD(e,t,r,i);case"array":return tD(e,t,r,i);default:return}}function Dy(e,t,r,i,a=!1,n,s,o){if(!be(t))throw new Error(`Invalid schema: ${t}`);const l=Mt(e,t,i,r,s),u=Cn(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",p=Zc(e,l,i??l,r,n,s);return Za(u,p,!0,f,!0)}return u}function My(e={}){return"widget"in pe(e)&&pe(e).widget!=="hidden"}function jy(e,t,r={},i,a){if(r[nc]==="files")return!0;if(t.items){const n=Mt(e,t.items,i,void 0,a);return n.type==="string"&&n.format==="data-url"}return!1}function rD(e,t,r={},i,a,n){const s=pe(r,a),{label:o=!0}=s;let l=!!o;if(l){const u=pr(t),c=!!t[hn];u==="array"&&(l=c||Yc(e,t,i,n)||jy(e,t,r,i,n)||My(r)),u==="object"&&(l=c),u==="boolean"&&r&&!r[nc]&&(l=!1),r!=null&&r[wO]&&(l=!1)}return l}function Ly(e,t,r){for(var i=-1,a=t.length,n={};++i<a;){var s=t[i],o=Js(e,s);r(o,s)&&Mc(n,qi(s,e),o)}return n}function nD(e,t){return Ly(e,t,function(r,i){return ey(e,i)})}var qy=jg(function(e,t){return e==null?{}:nD(e,t)});function iD(e,t){if(t.length===0&&typeof e!="object")return e;const r=qy(e,t);return Array.isArray(e)?Object.keys(r).map(i=>r[i]):r}function aD(e,t){const r=(a,n)=>typeof a!="object"||kt(a)||n&&!kt(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[rc]&&u[Bs]!==""?n.push(u[Bs]):i(u,n,c)}else l===Bs&&u!==""&&s.forEach(c=>{const f=ae(t,c),p=o.length===1;(r(f,p)||Array.isArray(f)&&f.every(d=>r(d,p)))&&n.push(c)})}),n};return i(e)}function $y(e){return Ki(e)||e===""?!0:Array.isArray(e)?e.length===0:be(e)?Object.values(e).every($y):!1}function sD(e,t){return t?t(e):vy(e)}function oD(e,t,r={},i,a){function n(m){return be(m)}function s(m){return be(m)}function o(m,k,v){var g;const{properties:b,additionalProperties:w,patternProperties:E,propertyNames:h}=m,y=new Set((g=m.required)!==null&&g!==void 0?g:[]);function C(_,S,A,O=!1){var F;const T=d(S,A,v[_]);if(!O&&be(T)){let j=s(S)?S:{};j.$ref!==void 0&&(j=Ka(j.$ref,r));const q=new Set((F=j.required)!==null&&F!==void 0?F:[]);if(Object.entries(T).every(([Y,X])=>!q.has(Y)&&$y(X)))return}T!==void 0&&(v[_]=T)}if(b!==void 0)for(const[_,S]of Object.entries(b))C(_,S,k[_],y.has(_));let x;if(E!==void 0){x=[];const _=Object.entries(E).map(([A,O])=>[new RegExp(A),O]),S=new Set(Object.keys(b??{}));for(const[A,O]of Object.entries(k))if(!S.has(A)){const F=_.find(([T])=>T.test(A));F===void 0?x.push(A):C(A,F[1],O)}}if(w!==void 0&&w!==!1){const _=w;if(x!==void 0)for(const S of x)C(S,_,k[S]);else{const S=new Set(Object.keys(b??{}));for(const[A,O]of Object.entries(k))S.has(A)||C(A,_,O)}}if(h!==void 0)for(const[_,S]of Object.entries(k))v[_]=S;return v}function l(m,k,v){const{items:g,additionalItems:b}=m;if(g!==void 0)if(Array.isArray(g))for(let w=0;w<g.length;w+=1)v.push(d(g[w],k[w]));else for(let w=0;w<k.length;w+=1)v.push(d(g,k[w]));if(b)for(let w=v.length;w<k.length;w+=1)v.push(d(b,k[w]));return v}function u(m,k,v){const{if:g,then:b,else:w}=m;if(g===void 0)return v;const h=(s(g)?e.isValid(g,k,r):g)?b:w;return h===void 0?v:d(h,k,v)}function c(m,k,v,g){if(!Array.isArray(m)||po(e,k,r,a))return g;const b=Cy(m,!0,r),w=Hi(e,r,v,b,0,dr(k),a),E=m[w],h=be(E)?wn(E,r,[]):b[w];return d(h,v,g)}function f(m,k,v){const{anyOf:g}=m;if(!Array.isArray(g))return v;if(k===void 0||Array.isArray(k)&&k.length===0||be(k)&&Object.keys(k).length===0){let b=v;for(const w of g)b=d(w,k,b);return b}return c(g,m,k,v)}function p(m,k,v){const{dependencies:g}=m;if(g===void 0||!n(k))return v;let b=v;for(const[w,E]of Object.entries(g))w in k&&!Array.isArray(E)&&(b=d(E,k,b));return b}function d(m,k,v){if(k===void 0||m===!1)return;if(m===!0||kt(m))return k;let g=m;const{$ref:b,allOf:w}=g;if(b!==void 0)return d(Ka(b,r),k,v);if(w){g=sD(g,a);const y=g.allOf;if(y)for(let C=0;C<y.length;C++)v=d(y[C],k,v)}let E=f(g,k,c(g.oneOf,g,k,v));const h=pr(g);if(h==="object"){if(!n(k))return;E=o(g,k,n(E)?E:{})}else if(h==="array"){if(!Array.isArray(k))return;E=l(g,k,Array.isArray(E)?E:[])}else E===void 0&&(E=k);return p(g,k,u(g,k,E))}return d(t,i)}const mr=Symbol("no Value");function zy(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=>Vt in i?i[Vt]:Array.isArray(i.enum)&&i.enum.length===1?i.enum[0]:mr).filter(i=>i!==mr);return r.length>0?r:void 0}function lD(e,t){const r=zy(e);if(!r||r.some(a=>Be(a,t)))return mr;const i=ae(e,Yn,mr);return i!==mr&&r.some(a=>Be(a,i))?i:r.length===1?r[0]:void 0}function Qc(e,t,r,i,a={},n){let s;if($e(r,ze)){const o={};if($e(i,ze)){const c=ae(i,ze,{});Object.keys(c).forEach(f=>{$e(a,f)&&(o[f]=void 0)})}const l=Object.keys(ae(r,ze,{})),u={};l.forEach(c=>{const f=ae(a,c);let p=ae(i,[ze,c],{}),d=ae(r,[ze,c],{});$e(p,at)&&(p=Mt(e,p,t,f,n)),$e(d,at)&&(d=Mt(e,d,t,f,n));const m=ae(p,"type"),k=ae(d,"type");if(!m||m===k)if($e(o,c)&&delete o[c],k==="object"||k==="array"&&Array.isArray(f)){const v=Qc(e,t,d,p,f,n);(v!==void 0||k==="array")&&(u[c]=v)}else{const v=ae(d,Yn,mr),g=ae(p,Yn,mr);v!==mr&&v!==f&&(g===f?o[c]=v:ae(d,"readOnly")===!0&&(o[c]=void 0));const b=ae(d,Vt,mr),w=ae(p,Vt,mr);if(b!==mr&&b!==f&&(o[c]=w===f?b:void 0),$e(a,c)){const E=lD(d,f);E!==mr&&(o[c]=E)}}}),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)){$e(o,at)&&(o=Mt(e,o,t,a,n)),$e(l,at)&&(l=Mt(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((p,d)=>{const m=Qc(e,t,l,o,d,n);return m!==void 0&&(f<0||p.length<f)&&p.push(m),p},[]);else{const p=zy(l),d=p?a.filter(m=>p.some(k=>Be(k,m))):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 En(e,t,r,i,a,n=[],s){if(at in t||Xu in t||zr in t||Zu in t){const l=Mt(e,t,i,a,s);if(n.findIndex(c=>Be(c,l))===-1)return En(e,l,r,i,a,n.concat(l),s)}let o={[Bs]:r.replace(/^\./,"")};if(xe in t||je in t){const l=xe in t?t.oneOf:t.anyOf,u=dr(t),c=Hi(e,i,a,l,0,u,s),f=l[c];o={...o,...En(e,f,r,i,a,n,s)}}if(Mi in t&&t[Mi]!==!1){ot(o,rc,!0);const l=Re(t[Mi])?t[Mi]:{},u=ae(t,ze,{});for(const c of Object.keys(a??{}))c in u||(o[c]=En(e,l,`${r}.${c}`,i,ae(a,[c]),n,s))}if(ji in t&&Array.isArray(a)){const{items:l,additionalItems:u}=t;Array.isArray(l)?a.forEach((c,f)=>{l[f]?o[f]=En(e,l[f],`${r}.${f}`,i,c,n,s):u?o[f]=En(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]=En(e,l,`${r}.${f}`,i,c,n,s)})}else if(ze in t)for(const l in t.properties){const u=ae(t,[ze,l],{});o[l]=En(e,u,`${r}.${l}`,i,ae(a,[l]),n,s)}return o}function uD(e,t,r="",i,a,n){return En(e,t,r,i,a,void 0,n)}class cD{constructor(t,r,i,a){(r==null?void 0:r[Ia])===Hs?this.rootSchema=Tc(r,ae(r,tt,"#")):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||!Be(this.rootSchema,r)||!Be(this.experimental_defaultFormStateBehavior,i)||this.experimental_customMergeAllOf!==a}findFieldInSchema(t,r,i){return HF(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,r,i,a){return Xa(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getDefaultFormState(t,r,i=!1,a){return Dy(this.validator,t,r,this.rootSchema,i,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,a)}getDisplayLabel(t,r,i){return rD(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,i,a){return Hi(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,i){return lo(this.validator,t,r,this.rootSchema,i)}getFromSchema(t,r,i){return fo(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}isFilesArray(t,r){return jy(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return Yc(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return po(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return oD(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,i){return Mt(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,i)}sanitizeDataForNewSchema(t,r,i){return Qc(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}toPathSchema(t,r,i){return uD(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}}function fD(e,t,r={},i){return new cD(e,t,r,i)}function dD(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 An(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function Ry(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 Ry(t,e).reverse();const o=[];for(let l=n;l<=s;l+=1)o.push({value:l,label:An(l,2)});return o}function pD(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 mD(e,t){return pD(e,t)}function mo(e,t=[],r){if(Array.isArray(e))return e.map(n=>mo(n,t)).filter(n=>n!==void 0);const i=e===""||e===null?-1:Number(e),a=t[i];return a?a.value:r}function By(e,t,r=[]){const i=mo(e,r);return Array.isArray(t)?t.filter(a=>!Be(a,i)):Be(i,t)?void 0:t}function Gi(e,t){return Array.isArray(t)?t.some(r=>Be(r,e)):Be(t,e)}function Uy(e,t=[],r=!1){const i=t.map((a,n)=>Gi(a.value,e)?String(n):void 0).filter(a=>typeof a<"u");return r?i:i[0]}function hD(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=Uy(e,t,r);return typeof s>"u"?a:s}function Vy(e,t,r=[]){const i=mo(e,r);if(!Ki(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 Hy(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 Ar(e,t,r="indexed",i){return r!=="realValue"?mo(e,t,i):Array.isArray(e)?e.map(a=>Hy(a,t,i)):Hy(e,t,i)}function Qa(e,t,r="indexed"){return r!=="realValue"?String(t):Ki(e)?"":String(typeof e=="object"?t:e)}var gD=1,yD=4;function ho(e){return Ua(e,gD|yD)}function vD(e,t,r,i){return i=typeof i=="function"?i:void 0,e==null?e:Mc(e,t,r,i)}class Ky{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={},vD(this.errorSchema,t,i,Object)),i}resetAllErrors(t){return this.errorSchema=t?ho(t):{},this}addErrors(t,r){const i=this.getOrCreateErrorBlock(r);let a=ae(i,Dt);return Array.isArray(a)||(a=[],i[Dt]=a),Array.isArray(t)?ot(i,Dt,[...new Set([...a,...t])]):ot(i,Dt,[...new Set([...a,t])]),this}setErrors(t,r){const i=this.getOrCreateErrorBlock(r),a=Array.isArray(t)?[...new Set([...t])]:[t];return ot(i,Dt,a),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return ot(r,Dt,[]),this}}var bD=200;function kD(e,t,r,i){var a=-1,n=zc,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;t.length>=bD&&(n=Ga,s=!1,t=new ni(t));e:for(;++a<o;){var c=e[a],f=c;if(c=c!==0?c:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue e;l.push(c)}else n(t,f,i)||l.push(c)}return l}var wD=io(function(e,t){return Wa(e)?kD(e,Va(t,1,Wa,!0)):[]});function SD(e,t){if(e==null)return{};var r=Li(_c(e),function(i){return[i]});return t=$c(t),Ly(e,r,function(i,a){return t(i,a[0])})}function Wy(e,t){const r=yn(e),i=yn(t);if(e===t||!r&&!i)return[];if(r&&!i)return Er(e);if(!r&&i)return Er(t);const a=Er(SD(e,(s,o)=>!Be(s,ae(t,o)))),n=wD(Er(t),Er(e));return[...a,...n]}function CD(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},p={type:"year",range:r,value:s},d=[];switch(i){case"MDY":d.push(f,c,p);break;case"DMY":d.push(c,f,p);break;case"YMD":default:d.push(p,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 ED(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 AD(e,t,r={},i=!0){const a={type:t||"text",...ED(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 es(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const Gy={props:{disabled:!1},submitText:"Submit",norender:!1};function ef(e={}){const t=pe(e);if(t!=null&&t[Us]){const r=t[Us];return{...Gy,...r}}return Gy}function ge(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 xD=0;function Jy(e){var t=++xD;return uc(e)+t}function tf(){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,Jy("test-id-")),e.get(r)}})}var go={exports:{}},rt={};/**
58
+ */var vh;function hO(){return vh||(vh=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})()})(Yu)),Yu.exports}var gO=hO();const en=jr(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 yO(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),be(e.additionalItems)}function bh(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 kh(e){if(e==="")return;if(e===null)return null;const t=bh(),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 hn=Symbol("__additional_property"),Mi="additionalProperties",zr="allOf",je="anyOf",Vt="const",Yn="default",Xu="dependencies",vO="enum",Dt="__errors",tt="$id",Zu="if",ji="items",bO="_$junk_option_schema_id$_",Us="$name",xe="oneOf",Qu="patternProperties",ze="properties",ec="readonly",wh="required",Bs="submitButtonOptions",at="$ref",Vs=Symbol("__rjsf_ref"),tc=Symbol("__rjsf_ref_cycle"),Ia="$schema",Sh="root",Ch="_",kO=["discriminator","propertyName"],Eh="formContext",wO="layoutGridLookupMap",Ah="__rjsf",rc=`${Ah}_additionalProperties`,xh=`${Ah}_rootSchema`,SO="ui:field",nc="ui:widget",gn="ui:options",ic="ui:globalOptions",CO="ui:definitions",EO="https://json-schema.org/draft/2019-09/schema",Hs="https://json-schema.org/draft/2020-12/schema";function pe(e={},t={}){return e?Object.keys(e).filter(r=>r.startsWith("ui:")).reduce((r,i)=>{const a=e[i];return i===nc&&be(a)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):i===gn&&be(a)?{...r,...a}:{...r,[i.substring(3)]:a}},{...t}):{...t}}function Oh(e,t={},r){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:i=!0}=pe(t);return i===!1?i:e.maxProperties!==void 0&&r?Object.keys(r).length<e.maxProperties:!0}var _h=typeof global=="object"&&global&&global.Object===Object&&global,AO=typeof self=="object"&&self&&self.Object===Object&&self,Rr=_h||AO||Function("return this")(),ur=Rr.Symbol,Ph=Object.prototype,xO=Ph.hasOwnProperty,OO=Ph.toString,Ta=ur?ur.toStringTag:void 0;function _O(e){var t=xO.call(e,Ta),r=e[Ta];try{e[Ta]=void 0;var i=!0}catch{}var a=OO.call(e);return i&&(t?e[Ta]=r:delete e[Ta]),a}var PO=Object.prototype,IO=PO.toString;function TO(e){return IO.call(e)}var NO="[object Null]",FO="[object Undefined]",Ih=ur?ur.toStringTag:void 0;function tn(e){return e==null?e===void 0?FO:NO:Ih&&Ih in Object(e)?_O(e):TO(e)}function Th(e,t){return function(r){return e(t(r))}}var Ks=Th(Object.getPrototypeOf,Object);function cr(e){return e!=null&&typeof e=="object"}var DO="[object Object]",MO=Function.prototype,jO=Object.prototype,Nh=MO.toString,LO=jO.hasOwnProperty,qO=Nh.call(Object);function yn(e){if(!cr(e)||tn(e)!=DO)return!1;var t=Ks(e);if(t===null)return!0;var r=LO.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Nh.call(r)==qO}function ac(e){const t={[Dt]:[],addError(r){this[Dt].push(r)}};if(Array.isArray(e))return e.reduce((r,i,a)=>({...r,[a]:ac(i)}),t);if(yn(e)){const r=e;return Object.keys(r).reduce((i,a)=>({...i,[a]:ac(r[a])}),t)}return t}var Tt=Array.isArray,$O="[object Symbol]";function Na(e){return typeof e=="symbol"||cr(e)&&tn(e)==$O}var zO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,RO=/^\w*$/;function sc(e,t){if(Tt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Na(e)?!0:RO.test(e)||!zO.test(e)||t!=null&&e in Object(t)}function Re(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var UO="[object AsyncFunction]",BO="[object Function]",VO="[object GeneratorFunction]",HO="[object Proxy]";function Fa(e){if(!Re(e))return!1;var t=tn(e);return t==BO||t==VO||t==UO||t==HO}var oc=Rr["__core-js_shared__"],Fh=(function(){var e=/[^.]+$/.exec(oc&&oc.keys&&oc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function KO(e){return!!Fh&&Fh in e}var WO=Function.prototype,GO=WO.toString;function Xn(e){if(e!=null){try{return GO.call(e)}catch{}try{return e+""}catch{}}return""}var JO=/[\\^$.*+?()[\]{}|]/g,YO=/^\[object .+?Constructor\]$/,XO=Function.prototype,ZO=Object.prototype,QO=XO.toString,e_=ZO.hasOwnProperty,t_=RegExp("^"+QO.call(e_).replace(JO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function r_(e){if(!Re(e)||KO(e))return!1;var t=Fa(e)?t_:YO;return t.test(Xn(e))}function n_(e,t){return e==null?void 0:e[t]}function Zn(e,t){var r=n_(e,t);return r_(r)?r:void 0}var Da=Zn(Object,"create");function i_(){this.__data__=Da?Da(null):{},this.size=0}function a_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var s_="__lodash_hash_undefined__",o_=Object.prototype,l_=o_.hasOwnProperty;function u_(e){var t=this.__data__;if(Da){var r=t[e];return r===s_?void 0:r}return l_.call(t,e)?t[e]:void 0}var c_=Object.prototype,f_=c_.hasOwnProperty;function d_(e){var t=this.__data__;return Da?t[e]!==void 0:f_.call(t,e)}var p_="__lodash_hash_undefined__";function m_(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Da&&t===void 0?p_:t,this}function Qn(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])}}Qn.prototype.clear=i_,Qn.prototype.delete=a_,Qn.prototype.get=u_,Qn.prototype.has=d_,Qn.prototype.set=m_;function h_(){this.__data__=[],this.size=0}function Ma(e,t){return e===t||e!==e&&t!==t}function Ws(e,t){for(var r=e.length;r--;)if(Ma(e[r][0],t))return r;return-1}var g_=Array.prototype,y_=g_.splice;function v_(e){var t=this.__data__,r=Ws(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():y_.call(t,r,1),--this.size,!0}function b_(e){var t=this.__data__,r=Ws(t,e);return r<0?void 0:t[r][1]}function k_(e){return Ws(this.__data__,e)>-1}function w_(e,t){var r=this.__data__,i=Ws(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function rn(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])}}rn.prototype.clear=h_,rn.prototype.delete=v_,rn.prototype.get=b_,rn.prototype.has=k_,rn.prototype.set=w_;var ja=Zn(Rr,"Map");function S_(){this.size=0,this.__data__={hash:new Qn,map:new(ja||rn),string:new Qn}}function C_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Gs(e,t){var r=e.__data__;return C_(t)?r[typeof t=="string"?"string":"hash"]:r.map}function E_(e){var t=Gs(this,e).delete(e);return this.size-=t?1:0,t}function A_(e){return Gs(this,e).get(e)}function x_(e){return Gs(this,e).has(e)}function O_(e,t){var r=Gs(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function nn(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])}}nn.prototype.clear=S_,nn.prototype.delete=E_,nn.prototype.get=A_,nn.prototype.has=x_,nn.prototype.set=O_;var __="Expected a function";function lc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(__);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(lc.Cache||nn),r}lc.Cache=nn;var P_=500;function I_(e){var t=lc(e,function(i){return r.size===P_&&r.clear(),i}),r=t.cache;return t}var T_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,N_=/\\(\\)?/g,Dh=I_(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(T_,function(r,i,a,n){t.push(a?n.replace(N_,"$1"):i||r)}),t});function Li(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 Mh=ur?ur.prototype:void 0,jh=Mh?Mh.toString:void 0;function Lh(e){if(typeof e=="string")return e;if(Tt(e))return Li(e,Lh)+"";if(Na(e))return jh?jh.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function uc(e){return e==null?"":Lh(e)}function qi(e,t){return Tt(e)?e:sc(e,t)?[e]:Dh(uc(e))}function vn(e){if(typeof e=="string"||Na(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Js(e,t){t=qi(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[vn(t[r++])];return r&&r==i?e:void 0}function ae(e,t,r){var i=e==null?void 0:Js(e,t);return i===void 0?r:i}const{getOwnPropertyNames:qh,getOwnPropertySymbols:F_}=Object,{hasOwnProperty:D_}=Object.prototype;function cc(e,t){return function(i,a,n){return e(i,a,n)&&t(i,a,n)}}function Ys(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 $h(e){const t=F_(e);return t.length?qh(e).concat(t):qh(e)}const M_=Object.hasOwn||((e,t)=>D_.call(e,t)),j_="__v",L_="__o",q_="_owner",{getOwnPropertyDescriptor:zh,keys:Rh}=Object,ei=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r};function $_(e,t){return e===t}function z_(e,t){return e.byteLength===t.byteLength&&Xs(new Uint8Array(e),new Uint8Array(t))}function R_(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 U_(e,t){return e.byteLength===t.byteLength&&Xs(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function B_(e,t){return ei(e.getTime(),t.getTime())}function V_(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Uh(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 p=s.value,d=o.value;if(r.equals(p[0],d[0],l,f,e,t,r)&&r.equals(p[1],d[1],p[0],d[0],e,t,r)){c=a[f]=1;break}f++}if(!c)return!1;l++}return!0}function H_(e,t,r){const i=Rh(e);let a=i.length;if(Rh(t).length!==a)return!1;for(;a-- >0;)if(!Vh(e,t,r,i[a]))return!1;return!0}function La(e,t,r){const i=$h(e);let a=i.length;if($h(t).length!==a)return!1;let n,s,o;for(;a-- >0;)if(n=i[a],!Vh(e,t,r,n)||(s=zh(e,n),o=zh(t,n),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function K_(e,t){return ei(e.valueOf(),t.valueOf())}function W_(e,t){return e.source===t.source&&e.flags===t.flags}function Bh(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 Xs(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 G_(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 Vh(e,t,r,i){return(i===q_||i===L_||i===j_)&&(e.$$typeof||t.$$typeof)?!0:M_(t,i)&&r.equals(e[i],t[i],i,i,e,t,r)}const J_=Object.prototype.toString;function Y_(e){const t=eP(e),{areArraysEqual:r,areDatesEqual:i,areFunctionsEqual:a,areMapsEqual:n,areNumbersEqual:s,areObjectsEqual:o,areRegExpsEqual:l,areSetsEqual:u,getUnsupportedCustomComparator:c}=e;return function(p,d,m){if(p===d)return!0;if(p==null||d==null)return!1;const k=typeof p;if(k!==typeof d)return!1;if(k!=="object")return k==="number"||k==="bigint"?s(p,d,m):k==="function"?a(p,d,m):!1;const v=p.constructor;if(v!==d.constructor)return!1;if(v===Object)return o(p,d,m);if(v===Array)return r(p,d,m);if(v===Date)return i(p,d,m);if(v===RegExp)return l(p,d,m);if(v===Map)return n(p,d,m);if(v===Set)return u(p,d,m);if(v===Promise)return!1;if(Array.isArray(p))return r(p,d,m);const g=J_.call(p),b=t[g];if(b)return b(p,d,m);const w=c&&c(p,d,m,g);return w?w(p,d,m):!1}}function X_({circular:e,createCustomConfig:t,strict:r}){let i={areArrayBuffersEqual:z_,areArraysEqual:r?La:R_,areDataViewsEqual:U_,areDatesEqual:B_,areErrorsEqual:V_,areFunctionsEqual:$_,areMapsEqual:r?cc(Uh,La):Uh,areNumbersEqual:ei,areObjectsEqual:r?La:H_,arePrimitiveWrappersEqual:K_,areRegExpsEqual:W_,areSetsEqual:r?cc(Bh,La):Bh,areTypedArraysEqual:r?cc(Xs,La):Xs,areUrlsEqual:G_,getUnsupportedCustomComparator:void 0};if(t&&(i=Object.assign({},i,t(i))),e){const a=Ys(i.areArraysEqual),n=Ys(i.areMapsEqual),s=Ys(i.areObjectsEqual),o=Ys(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:a,areMapsEqual:n,areObjectsEqual:s,areSetsEqual:o})}return i}function Z_(e){return function(t,r,i,a,n,s,o){return e(t,r,o)}}function Q_({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 eP({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:p,areUrlsEqual:d}){return{"[object Arguments]":l,"[object Array]":t,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":n,"[object BigInt]":o,"[object BigInt64Array]":p,"[object BigUint64Array]":p,"[object Boolean]":u,"[object DataView]":r,"[object Date]":i,"[object Error]":a,"[object Float16Array]":p,"[object Float32Array]":p,"[object Float64Array]":p,"[object Function]":n,"[object GeneratorFunction]":n,"[object Int8Array]":p,"[object Int16Array]":p,"[object Int32Array]":p,"[object Map]":s,"[object Number]":u,"[object Object]":(m,k,v)=>typeof m.then!="function"&&typeof k.then!="function"&&l(m,k,v),"[object RegExp]":c,"[object Set]":f,"[object String]":u,"[object URL]":d,"[object Uint8Array]":p,"[object Uint8ClampedArray]":p,"[object Uint16Array]":p,"[object Uint32Array]":p}}an(),an({strict:!0}),an({circular:!0}),an({circular:!0,strict:!0}),an({createInternalComparator:()=>ei}),an({strict:!0,createInternalComparator:()=>ei}),an({circular:!0,createInternalComparator:()=>ei}),an({circular:!0,createInternalComparator:()=>ei,strict:!0});function an(e={}){const{circular:t=!1,createInternalComparator:r,createState:i,strict:a=!1}=e,n=X_(e),s=Y_(n),o=r?r(s):Z_(s);return Q_({circular:t,comparator:s,createState:i,equals:o,strict:a})}const Ue=an({circular:!0,createCustomConfig:()=>({areFunctionsEqual(e,t){return typeof t=="function"}})});var qa={exports:{}},fc,Hh;function Kh(){if(Hh)return fc;Hh=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(S){let A="",O=0,F=0;for(F=0;F<S.length;F++)if(O=S[F].charCodeAt(0),O!==48){if(!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";A+=S[F];break}for(F+=1;F<S.length;F++){if(O=S[F].charCodeAt(0),!(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102))return"";A+=S[F]}return A}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(S){return S.length=0,!0}function u(S,A,O){if(S.length){const F=s(S);if(F!=="")A.push(F);else return O.error=!0,!1;S.length=0}return!0}function c(S){let A=0;const O={error:!1,address:"",zone:""},F=[],T=[];let j=!1,q=!1,J=u;for(let Y=0;Y<S.length;Y++){const X=S[Y];if(!(X==="["||X==="]"))if(X===":"){if(j===!0&&(q=!0),!J(T,F,O))break;if(++A>7){O.error=!0;break}Y>0&&S[Y-1]===":"&&(j=!0),F.push(":");continue}else if(X==="%"){if(!J(T,F,O))break;J=l}else{T.push(X);continue}}return T.length&&(J===l?O.zone=T.join(""):q?F.push(T.join("")):F.push(s(T))),O.address=F.join(""),O}function f(S){if(p(S,":")<2)return{host:S,isIPV6:!1};const A=c(S);if(A.error)return{host:S,isIPV6:!1};{let O=A.address,F=A.address;return A.zone&&(O+="%"+A.zone,F+="%25"+A.zone),{host:O,isIPV6:!0,escapedHost:F}}}function p(S,A){let O=0;for(let F=0;F<S.length;F++)S[F]===A&&O++;return O}function d(S){let A=S;const O=[];let F=-1,T=0;for(;T=A.length;){if(T===1){if(A===".")break;if(A==="/"){O.push("/");break}else{O.push(A);break}}else if(T===2){if(A[0]==="."){if(A[1]===".")break;if(A[1]==="/"){A=A.slice(2);continue}}else if(A[0]==="/"&&A[1]==="."){O.push("/");break}}else if(T===3&&A==="/.."){O.length!==0&&O.pop(),O.push("/");break}if(A[0]==="."){if(A[1]==="."){if(A[2]==="/"){A=A.slice(3);continue}}else if(A[1]==="/"){A=A.slice(2);continue}}else if(A[0]==="/"&&A[1]==="."){if(A[2]==="/"){A=A.slice(2);continue}else if(A[2]==="."&&A[3]==="/"){A=A.slice(3),O.length!==0&&O.pop();continue}}if((F=A.indexOf("/",1))===-1){O.push(A);break}else O.push(A.slice(0,F)),A=A.slice(F)}return O.join("")}const m={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,v=/[@/?#]/g;function g(S,A){const O=A?v:k;return O.lastIndex=0,S.replace(O,F=>m[F])}function b(S,A=!1){if(S.indexOf("%")===-1)return S;let O="";for(let F=0;F<S.length;F++){if(S[F]==="%"&&F+2<S.length){const T=S.slice(F+1,F+3);if(r(T)){const j=T.toUpperCase(),q=String.fromCharCode(parseInt(j,16));A&&i(q)?O+=q:O+="%"+j,F+=2;continue}}O+=S[F]}return O}const w=new Array(256);{const S="0123456789ABCDEF";for(let A=0;A<256;A++)w[A]="%"+S[A>>4]+S[A&15]}function E(S){return S>=48&&S<=57||S>=65&&S<=90||S>=97&&S<=122||S===42||S===43||S===45||S===46||S===47||S===64||S===95}function h(S){return S<2048?w[192|S>>6]+w[128|S&63]:S<65536?w[224|S>>12]+w[128|S>>6&63]+w[128|S&63]:w[240|S>>18]+w[128|S>>12&63]+w[128|S>>6&63]+w[128|S&63]}function y(S){let A="";for(let O=0;O<S.length;O++){const F=S[O];if(F==="%"&&O+2<S.length){const T=S.slice(O+1,O+3);if(r(T)){const j=T.toUpperCase(),q=String.fromCharCode(parseInt(j,16));q!=="."&&i(q)?A+=q:A+="%"+j,O+=2;continue}}if(a(F))A+=F;else{const T=S.charCodeAt(O);if(T<128)A+=E(T)?F:w[T];else if(T<55296||T>57343)A+=h(T);else if(T<=56319&&O+1<S.length){const j=S.charCodeAt(O+1);j>=56320&&j<=57343?(A+=h(65536+(T-55296<<10)+(j-56320)),O++):A+=h(65533)}else A+=h(65533)}}return A}function C(S){let A="";for(let O=0;O<S.length;O++){const F=S[O];if(F==="%"&&O+2<S.length){const T=S.slice(O+1,O+3);if(r(T)){const j=T.toUpperCase(),q=String.fromCharCode(parseInt(j,16));i(q)?A+=q:A+="%"+j,O+=2;continue}}if(n(F))A+=F;else{const T=S.charCodeAt(O);if(T<128)A+=E(T)?F:w[T];else if(T<55296||T>57343)A+=h(T);else if(T<=56319&&O+1<S.length){const j=S.charCodeAt(O+1);j>=56320&&j<=57343?(A+=h(65536+(T-55296<<10)+(j-56320)),O++):A+=h(65533)}else A+=h(65533)}}return A}function x(S){let A="";for(let O=0;O<S.length;O++){const F=S[O];if(F==="%"&&O+2<S.length){const j=S.slice(O+1,O+3);if(r(j)){A+="%"+j.toUpperCase(),O+=2;continue}}const T=S.charCodeAt(O);if(T<128)A+=E(T)?F:w[T];else if(T<55296||T>57343)A+=h(T);else if(T<=56319&&O+1<S.length){const j=S.charCodeAt(O+1);j>=56320&&j<=57343?(A+=h(65536+(T-55296<<10)+(j-56320)),O++):A+=h(65533)}else A+=h(65533)}return A}function _(S){const A=[];if(S.userinfo!==void 0&&(A.push(S.userinfo),A.push("@")),S.host!==void 0){let O=unescape(S.host);if(!t(O)){const F=f(O);F.isIPV6===!0?O=`[${F.escapedHost}]`:O=g(O,!1)}A.push(O)}return(typeof S.port=="number"||typeof S.port=="string")&&(A.push(":"),A.push(String(S.port))),A.length?A.join(""):void 0}return fc={nonSimpleDomain:o,recomposeAuthority:_,reescapeHostDelimiters:g,normalizePercentEncoding:b,normalizePathEncoding:y,normalizeQueryFragmentEncoding:C,escapePreservingEscapes:x,removeDotSegments:d,isIPv4:t,isUUID:e,normalizeIPv6:f,stringArrayToHexStripped:s},fc}var dc,Wh;function tP(){if(Wh)return dc;Wh=1;const{isUUID:e}=Kh(),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,C]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=C,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 C=h.path.match(t);if(C){const x=y.scheme||h.scheme||"urn";h.nid=C[1].toLowerCase(),h.nss=C[2];const _=`${x}:${y.nid||h.nid}`,S=E(_);h.path=void 0,S&&(h=S.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 C=y.scheme||h.scheme||"urn",x=h.nid.toLowerCase(),_=`${C}:${y.nid||x}`,S=E(_);S&&(h=S.serialize(h,y));const A=h,O=h.nss;return A.path=`${x||y.nid}:${O}`,y.skipEscape=!0,A}function f(h,y){const C=h;return C.uuid=C.nss,C.nss=void 0,!y.tolerant&&(!C.uuid||!e(C.uuid))&&(C.error=C.error||"UUID is not valid."),C}function p(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},m={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,serialize:l},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:m,ws:k,wss:v,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:p,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return dc={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:E},dc}var Gh;function rP(){if(Gh)return qa.exports;Gh=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,normalizeQueryFragmentEncoding:n,escapePreservingEscapes:s,reescapeHostDelimiters:o,isIPv4:l,nonSimpleDomain:u}=Kh(),{SCHEMES:c,getSchemeHandler:f}=tP();function p(A,O){return typeof A=="string"?A=C(A,O):typeof A=="object"&&(A=y(v(A,O),O)),A}function d(A,O,F){const T=F?Object.assign({scheme:"null"},F):{scheme:"null"},{parsed:j,malformedAuthorityOrPort:q}=h(A,T),{parsed:J,malformedAuthorityOrPort:Y}=h(O,T);if(q||Y)throw new Error(j.error||J.error||"URI is malformed.");const X=m(j,J,T,!0);return T.skipEscape=!0,v(X,T)}function m(A,O,F,T){const j={};return T||(A=y(v(A,F),F),O=y(v(O,F),F)),F=F||{},!F.tolerant&&O.scheme?(j.scheme=O.scheme,j.userinfo=O.userinfo,j.host=O.host,j.port=O.port,j.path=t(O.path||""),j.query=O.query):(O.userinfo!==void 0||O.host!==void 0||O.port!==void 0?(j.userinfo=O.userinfo,j.host=O.host,j.port=O.port,j.path=t(O.path||""),j.query=O.query):(O.path?(O.path[0]==="/"?j.path=t(O.path):((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path?j.path="/"+O.path:A.path?j.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+O.path:j.path=O.path,j.path=t(j.path)),j.query=O.query):(j.path=A.path,O.query!==void 0?j.query=O.query:j.query=A.query),j.userinfo=A.userinfo,j.host=A.host,j.port=A.port),j.scheme=A.scheme),j.fragment=O.fragment,j}function k(A,O,F){const T=_(A,F),j=_(O,F);return T!==void 0&&j!==void 0&&T.toLowerCase()===j.toLowerCase()}function v(A,O){const F={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:""},T=Object.assign({},O),j=[],q=f(T.scheme||F.scheme);q&&q.serialize&&q.serialize(F,T),F.path!==void 0&&(T.skipEscape?F.path=i(F.path):(F.path=s(F.path),F.scheme!==void 0&&(F.path=F.path.split("%3A").join(":")))),T.reference!=="suffix"&&F.scheme&&j.push(F.scheme,":");const J=r(F);if(J!==void 0&&(T.reference!=="suffix"&&j.push("//"),j.push(J),F.path&&F.path[0]!=="/"&&j.push("/")),F.path!==void 0){let Y=F.path;!T.absolutePath&&(!q||!q.absolutePath)&&(Y=t(Y)),J===void 0&&Y[0]==="/"&&Y[1]==="/"&&(Y="/%2F"+Y.slice(2)),j.push(Y)}return F.query!==void 0&&j.push("?",F.query),F.fragment!==void 0&&j.push("#",F.fragment),j.join("")}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,b=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,w=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function E(A,O){if(O[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 h(A,O){const F=Object.assign({},O),T={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let j=!1,q=!1;F.reference==="suffix"&&(F.scheme?A=F.scheme+":"+A:A="//"+A);const J=A.match(b);J!==null&&J[1].indexOf("\\")!==-1&&(T.error="URI authority must not contain a literal backslash.",j=!0);const Y=A.match(w);if(Y!==null){const P=Y[1],M=P.replace(/[\t\n\r]/g,"");M.length>=2&&(M.slice(0,2)!=="//"?(T.error=T.error||"URI authority must not contain a literal backslash.",j=!0):P.length!==M.length&&(T.error=T.error||"URI authority introducer must not contain whitespace.",j=!0))}const X=A.match(g);if(X){T.scheme=X[1]===void 0?void 0:X[1].toLowerCase(),T.userinfo=X[3],T.host=X[4],T.port=parseInt(X[5],10),T.path=X[6]||"",T.query=X[7],T.fragment=X[8],isNaN(T.port)&&(T.port=X[5]);const P=E(T,X);if(P!==void 0&&(T.error=T.error||P,j=!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",F.reference&&F.reference!=="suffix"&&F.reference!==T.reference&&(T.error=T.error||"URI is not a "+F.reference+" reference.");const M=f(F.scheme||T.scheme);if(!F.unicodeSupport&&(!M||!M.unicodeSupport)&&T.host&&(F.domainHost||M&&M.domainHost)&&q===!1&&u(T.host))try{T.host=new URL("http://"+T.host).hostname}catch(B){T.error=T.error||"Host's domain name can not be converted to ASCII: "+B}(!M||M&&!M.skipNormalize)&&(A.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))),M&&M.parse&&M.parse(T,F)}else T.error=T.error||"URI can not be parsed.";return{parsed:T,malformedAuthorityOrPort:j}}function y(A,O){return h(A,O).parsed}function C(A,O){return x(A,O).normalized}function x(A,O){const{parsed:F,malformedAuthorityOrPort:T}=h(A,O);return{normalized:T?A:v(F,O),malformedAuthorityOrPort:T}}function _(A,O){if(typeof A=="string"){const{normalized:F,malformedAuthorityOrPort:T}=x(A,O);return T?void 0:F}if(typeof A=="object")return v(A,O)}const S={SCHEMES:c,normalize:p,resolve:d,resolveComponent:m,equal:k,serialize:v,parse:y};return qa.exports=S,qa.exports.default=S,qa.exports.fastUri=S,qa.exports}var nP=rP();const pc=jr(nP);var $a={},Jh;function iP(){if(Jh)return $a;Jh=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 p,d,m=1,k=c.length;m<k;){if(c[m]==="constructor"||c[m]==="prototype"||c[m]==="__proto__")return u;if(p=i(c[m++]),d=k>m,typeof u[p]>"u"&&(Array.isArray(u)&&p==="-"&&(p=u.length),d&&(c[m]!==""&&c[m]<1/0||c[m]==="-"?u[p]=[]:u[p]={})),!d)break;u=u[p]}var v=u[p];return f===void 0?delete u[p]:u[p]=f,v}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 p=1;p<f;){if(u=u[i(c[p++])],f===p)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,p){return o(f,c,p)}}}return $a.get=s,$a.set=o,$a.compile=l,$a}var aP=iP();const mc=jr(aP);var sP=Object.prototype;function Zs(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||sP;return e===r}var oP=Th(Object.keys,Object),lP=Object.prototype,uP=lP.hasOwnProperty;function Yh(e){if(!Zs(e))return oP(e);var t=[];for(var r in Object(e))uP.call(e,r)&&r!="constructor"&&t.push(r);return t}var hc=Zn(Rr,"DataView"),gc=Zn(Rr,"Promise"),$i=Zn(Rr,"Set"),yc=Zn(Rr,"WeakMap"),Xh="[object Map]",cP="[object Object]",Zh="[object Promise]",Qh="[object Set]",eg="[object WeakMap]",tg="[object DataView]",fP=Xn(hc),dP=Xn(ja),pP=Xn(gc),mP=Xn($i),hP=Xn(yc),fr=tn;(hc&&fr(new hc(new ArrayBuffer(1)))!=tg||ja&&fr(new ja)!=Xh||gc&&fr(gc.resolve())!=Zh||$i&&fr(new $i)!=Qh||yc&&fr(new yc)!=eg)&&(fr=function(e){var t=tn(e),r=t==cP?e.constructor:void 0,i=r?Xn(r):"";if(i)switch(i){case fP:return tg;case dP:return Xh;case pP:return Zh;case mP:return Qh;case hP:return eg}return t});var gP="[object Arguments]";function rg(e){return cr(e)&&tn(e)==gP}var ng=Object.prototype,yP=ng.hasOwnProperty,vP=ng.propertyIsEnumerable,zi=rg((function(){return arguments})())?rg:function(e){return cr(e)&&yP.call(e,"callee")&&!vP.call(e,"callee")},bP=9007199254740991;function vc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bP}function ti(e){return e!=null&&vc(e.length)&&!Fa(e)}function kP(){return!1}var ig=typeof Ge=="object"&&Ge&&!Ge.nodeType&&Ge,ag=ig&&typeof module=="object"&&module&&!module.nodeType&&module,wP=ag&&ag.exports===ig,sg=wP?Rr.Buffer:void 0,SP=sg?sg.isBuffer:void 0,ri=SP||kP,CP="[object Arguments]",EP="[object Array]",AP="[object Boolean]",xP="[object Date]",OP="[object Error]",_P="[object Function]",PP="[object Map]",IP="[object Number]",TP="[object Object]",NP="[object RegExp]",FP="[object Set]",DP="[object String]",MP="[object WeakMap]",jP="[object ArrayBuffer]",LP="[object DataView]",qP="[object Float32Array]",$P="[object Float64Array]",zP="[object Int8Array]",RP="[object Int16Array]",UP="[object Int32Array]",BP="[object Uint8Array]",VP="[object Uint8ClampedArray]",HP="[object Uint16Array]",KP="[object Uint32Array]",ht={};ht[qP]=ht[$P]=ht[zP]=ht[RP]=ht[UP]=ht[BP]=ht[VP]=ht[HP]=ht[KP]=!0,ht[CP]=ht[EP]=ht[jP]=ht[AP]=ht[LP]=ht[xP]=ht[OP]=ht[_P]=ht[PP]=ht[IP]=ht[TP]=ht[NP]=ht[FP]=ht[DP]=ht[MP]=!1;function WP(e){return cr(e)&&vc(e.length)&&!!ht[tn(e)]}function bc(e){return function(t){return e(t)}}var og=typeof Ge=="object"&&Ge&&!Ge.nodeType&&Ge,za=og&&typeof module=="object"&&module&&!module.nodeType&&module,GP=za&&za.exports===og,kc=GP&&_h.process,Ri=(function(){try{var e=za&&za.require&&za.require("util").types;return e||kc&&kc.binding&&kc.binding("util")}catch{}})(),lg=Ri&&Ri.isTypedArray,Ra=lg?bc(lg):WP,JP="[object Map]",YP="[object Set]",XP=Object.prototype,ZP=XP.hasOwnProperty;function kt(e){if(e==null)return!0;if(ti(e)&&(Tt(e)||typeof e=="string"||typeof e.splice=="function"||ri(e)||Ra(e)||zi(e)))return!e.length;var t=fr(e);if(t==JP||t==YP)return!e.size;if(Zs(e))return!Yh(e).length;for(var r in e)if(ZP.call(e,r))return!1;return!0}function QP(){this.__data__=new rn,this.size=0}function eI(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function tI(e){return this.__data__.get(e)}function rI(e){return this.__data__.has(e)}var nI=200;function iI(e,t){var r=this.__data__;if(r instanceof rn){var i=r.__data__;if(!ja||i.length<nI-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new nn(i)}return r.set(e,t),this.size=r.size,this}function Cr(e){var t=this.__data__=new rn(e);this.size=t.size}Cr.prototype.clear=QP,Cr.prototype.delete=eI,Cr.prototype.get=tI,Cr.prototype.has=rI,Cr.prototype.set=iI;function wc(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var Qs=(function(){try{var e=Zn(Object,"defineProperty");return e({},"",{}),e}catch{}})();function Sc(e,t,r){t=="__proto__"&&Qs?Qs(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var aI=Object.prototype,sI=aI.hasOwnProperty;function Cc(e,t,r){var i=e[t];(!(sI.call(e,t)&&Ma(i,r))||r===void 0&&!(t in e))&&Sc(e,t,r)}function Ui(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?Sc(r,o,l):Cc(r,o,l)}return r}function ug(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var oI=9007199254740991,lI=/^(?:0|[1-9]\d*)$/;function eo(e,t){var r=typeof e;return t=t??oI,!!t&&(r=="number"||r!="symbol"&&lI.test(e))&&e>-1&&e%1==0&&e<t}var uI=Object.prototype,cI=uI.hasOwnProperty;function cg(e,t){var r=Tt(e),i=!r&&zi(e),a=!r&&!i&&ri(e),n=!r&&!i&&!a&&Ra(e),s=r||i||a||n,o=s?ug(e.length,String):[],l=o.length;for(var u in e)(t||cI.call(e,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||n&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||eo(u,l)))&&o.push(u);return o}function Er(e){return ti(e)?cg(e):Yh(e)}function fI(e,t){return e&&Ui(t,Er(t),e)}function dI(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var pI=Object.prototype,mI=pI.hasOwnProperty;function hI(e){if(!Re(e))return dI(e);var t=Zs(e),r=[];for(var i in e)i=="constructor"&&(t||!mI.call(e,i))||r.push(i);return r}function Ua(e){return ti(e)?cg(e,!0):hI(e)}function gI(e,t){return e&&Ui(t,Ua(t),e)}var fg=typeof Ge=="object"&&Ge&&!Ge.nodeType&&Ge,dg=fg&&typeof module=="object"&&module&&!module.nodeType&&module,yI=dg&&dg.exports===fg,pg=yI?Rr.Buffer:void 0,mg=pg?pg.allocUnsafe:void 0;function hg(e,t){if(t)return e.slice();var r=e.length,i=mg?mg(r):new e.constructor(r);return e.copy(i),i}function Ec(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function vI(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 gg(){return[]}var bI=Object.prototype,kI=bI.propertyIsEnumerable,yg=Object.getOwnPropertySymbols,Ac=yg?function(e){return e==null?[]:(e=Object(e),vI(yg(e),function(t){return kI.call(e,t)}))}:gg;function wI(e,t){return Ui(e,Ac(e),t)}function xc(e,t){for(var r=-1,i=t.length,a=e.length;++r<i;)e[a+r]=t[r];return e}var SI=Object.getOwnPropertySymbols,vg=SI?function(e){for(var t=[];e;)xc(t,Ac(e)),e=Ks(e);return t}:gg;function CI(e,t){return Ui(e,vg(e),t)}function bg(e,t,r){var i=t(e);return Tt(e)?i:xc(i,r(e))}function Oc(e){return bg(e,Er,Ac)}function _c(e){return bg(e,Ua,vg)}var EI=Object.prototype,AI=EI.hasOwnProperty;function xI(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&AI.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var to=Rr.Uint8Array;function Pc(e){var t=new e.constructor(e.byteLength);return new to(t).set(new to(e)),t}function OI(e,t){var r=t?Pc(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var _I=/\w*$/;function PI(e){var t=new e.constructor(e.source,_I.exec(e));return t.lastIndex=e.lastIndex,t}var kg=ur?ur.prototype:void 0,wg=kg?kg.valueOf:void 0;function II(e){return wg?Object(wg.call(e)):{}}function Sg(e,t){var r=t?Pc(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var TI="[object Boolean]",NI="[object Date]",FI="[object Map]",DI="[object Number]",MI="[object RegExp]",jI="[object Set]",LI="[object String]",qI="[object Symbol]",$I="[object ArrayBuffer]",zI="[object DataView]",RI="[object Float32Array]",UI="[object Float64Array]",BI="[object Int8Array]",VI="[object Int16Array]",HI="[object Int32Array]",KI="[object Uint8Array]",WI="[object Uint8ClampedArray]",GI="[object Uint16Array]",JI="[object Uint32Array]";function YI(e,t,r){var i=e.constructor;switch(t){case $I:return Pc(e);case TI:case NI:return new i(+e);case zI:return OI(e,r);case RI:case UI:case BI:case VI:case HI:case KI:case WI:case GI:case JI:return Sg(e,r);case FI:return new i;case DI:case LI:return new i(e);case MI:return PI(e);case jI:return new i;case qI:return II(e)}}var Cg=Object.create,Eg=(function(){function e(){}return function(t){if(!Re(t))return{};if(Cg)return Cg(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Ag(e){return typeof e.constructor=="function"&&!Zs(e)?Eg(Ks(e)):{}}var XI="[object Map]";function ZI(e){return cr(e)&&fr(e)==XI}var xg=Ri&&Ri.isMap,QI=xg?bc(xg):ZI,eT="[object Set]";function tT(e){return cr(e)&&fr(e)==eT}var Og=Ri&&Ri.isSet,rT=Og?bc(Og):tT,nT=1,iT=2,aT=4,_g="[object Arguments]",sT="[object Array]",oT="[object Boolean]",lT="[object Date]",uT="[object Error]",Pg="[object Function]",cT="[object GeneratorFunction]",fT="[object Map]",dT="[object Number]",Ig="[object Object]",pT="[object RegExp]",mT="[object Set]",hT="[object String]",gT="[object Symbol]",yT="[object WeakMap]",vT="[object ArrayBuffer]",bT="[object DataView]",kT="[object Float32Array]",wT="[object Float64Array]",ST="[object Int8Array]",CT="[object Int16Array]",ET="[object Int32Array]",AT="[object Uint8Array]",xT="[object Uint8ClampedArray]",OT="[object Uint16Array]",_T="[object Uint32Array]",mt={};mt[_g]=mt[sT]=mt[vT]=mt[bT]=mt[oT]=mt[lT]=mt[kT]=mt[wT]=mt[ST]=mt[CT]=mt[ET]=mt[fT]=mt[dT]=mt[Ig]=mt[pT]=mt[mT]=mt[hT]=mt[gT]=mt[AT]=mt[xT]=mt[OT]=mt[_T]=!0,mt[uT]=mt[Pg]=mt[yT]=!1;function Ba(e,t,r,i,a,n){var s,o=t&nT,l=t&iT,u=t&aT;if(r&&(s=a?r(e,i,a,n):r(e)),s!==void 0)return s;if(!Re(e))return e;var c=Tt(e);if(c){if(s=xI(e),!o)return Ec(e,s)}else{var f=fr(e),p=f==Pg||f==cT;if(ri(e))return hg(e,o);if(f==Ig||f==_g||p&&!a){if(s=l||p?{}:Ag(e),!o)return l?CI(e,gI(s,e)):wI(e,fI(s,e))}else{if(!mt[f])return a?e:{};s=YI(e,f,o)}}n||(n=new Cr);var d=n.get(e);if(d)return d;n.set(e,s),rT(e)?e.forEach(function(v){s.add(Ba(v,t,r,v,e,n))}):QI(e)&&e.forEach(function(v,g){s.set(g,Ba(v,t,r,g,e,n))});var m=u?l?_c:Oc:l?Ua:Er,k=c?void 0:m(e);return wc(k||e,function(v,g){k&&(g=v,v=e[g]),Cc(s,g,Ba(v,t,r,g,e,n))}),s}function Tg(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function PT(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 IT(e,t){return t.length<2?e:Js(e,PT(t,0,-1))}var TT=Object.prototype,NT=TT.hasOwnProperty;function Ng(e,t){t=qi(t,e);var r=-1,i=t.length;if(!i)return!0;for(;++r<i;){var a=vn(t[r]);if(a==="__proto__"&&!NT.call(e,"__proto__")||(a==="constructor"||a==="prototype")&&r<i-1)return!1}var n=IT(e,t);return n==null||delete n[vn(Tg(t))]}function FT(e){return yn(e)?void 0:e}var Fg=ur?ur.isConcatSpreadable:void 0;function DT(e){return Tt(e)||zi(e)||!!(Fg&&e&&e[Fg])}function Va(e,t,r,i,a){var n=-1,s=e.length;for(r||(r=DT),a||(a=[]);++n<s;){var o=e[n];t>0&&r(o)?t>1?Va(o,t-1,r,i,a):xc(a,o):i||(a[a.length]=o)}return a}function Ic(e){var t=e==null?0:e.length;return t?Va(e,1):[]}function MT(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 Dg=Math.max;function Mg(e,t,r){return t=Dg(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,n=Dg(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),MT(e,this,o)}}function jT(e){return function(){return e}}function ro(e){return e}var LT=Qs?function(e,t){return Qs(e,"toString",{configurable:!0,enumerable:!1,value:jT(t),writable:!0})}:ro,qT=800,$T=16,zT=Date.now;function RT(e){var t=0,r=0;return function(){var i=zT(),a=$T-(i-r);if(r=i,a>0){if(++t>=qT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var jg=RT(LT);function Lg(e){return jg(Mg(e,void 0,Ic),e+"")}var UT=1,BT=2,VT=4,Ha=Lg(function(e,t){var r={};if(e==null)return r;var i=!1;t=Li(t,function(n){return n=qi(n,e),i||(i=n.length>1),n}),Ui(e,_c(e),r),i&&(r=Ba(r,UT|BT|VT,FT));for(var a=t.length;a--;)Ng(r,t[a]);return r});function no(e,t){if(tt in e&&pc.equal(e[tt],t))return e;for(const r of Object.values(e))if(Array.isArray(r)){for(const i of r)if(Re(i)){const a=no(i,t);if(a!==void 0)return a}}else if(Re(r)){const i=no(r,t);if(i!==void 0)return i}}function Tc(e,t){const r=ae(e,tt,t);let i=e;at in i&&(i={...i,[at]:pc.resolve(r,i[at])});for(const[a,n]of Object.entries(i))Array.isArray(n)?i={...i,[a]:n.map(s=>Re(s)?Tc(s,r):s)}:Re(n)&&(i={...i,[a]:Tc(n,r)});return i}function Nc(e,t){const r=t[e];return[Ha(t,[e]),r]}function qg(e,t={},r=[],i=ae(t,[tt])){const a=e||"";let n,s=i;if(a.startsWith("#")){const l=decodeURIComponent(a.substring(1));s===void 0||tt in t&&t[tt]===s?n=mc.get(t,l):t[Ia]===Hs&&(n=no(t,s.replace(/\/$/,"")),n!==void 0&&(n=mc.get(n,l)))}else if(t[Ia]===Hs){const l=s?pc.resolve(s,a):a,[u,...c]=l.replace(/#\/?$/,"").split("#");n=no(t,u.replace(/\/$/,"")),n!==void 0&&(s=n[tt],kt(c)||(n=mc.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,...p]=r,d=[...p,a,f].join(" -> ");throw new Error(`Definition for ${f} contains a circular reference through ${d}`)}const[l,u]=Nc(at,n),c=qg(u,t,[...r,a],s);return Object.keys(l).length>0?t[Ia]===EO||t[Ia]===Hs?{[zr]:[l,c]}:{...l,...c}:c}return n}function Ka(e,t={},r=ae(t,[tt])){return qg(e,t,[],r)}var HT=Object.prototype,KT=HT.hasOwnProperty;function WT(e,t){return e!=null&&KT.call(e,t)}function $g(e,t,r){t=qi(t,e);for(var i=-1,a=t.length,n=!1;++i<a;){var s=vn(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&&vc(a)&&eo(s,a)&&(Tt(e)||zi(e)))}function $e(e,t){return e!=null&&$g(e,t,WT)}var GT="[object String]";function bn(e){return typeof e=="string"||!Tt(e)&&cr(e)&&tn(e)==GT}function dr(e){let t;const r=ae(e,kO);return bn(r)?t=r:r!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}var JT=1/0;function YT(e){var t=e==null?0:e.length;return t?Va(e,JT):[]}function Fc(e,t,r){(r!==void 0&&!Ma(e[t],r)||r===void 0&&!(t in e))&&Sc(e,t,r)}function XT(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 zg=XT();function Wa(e){return cr(e)&&ti(e)}function Dc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ZT(e){return Ui(e,Ua(e))}function QT(e,t,r,i,a,n,s){var o=Dc(e,r),l=Dc(t,r),u=s.get(l);if(u){Fc(e,r,u);return}var c=n?n(o,l,r+"",e,t,s):void 0,f=c===void 0;if(f){var p=Tt(l),d=!p&&ri(l),m=!p&&!d&&Ra(l);c=l,p||d||m?Tt(o)?c=o:Wa(o)?c=Ec(o):d?(f=!1,c=hg(l,!0)):m?(f=!1,c=Sg(l,!0)):c=[]:yn(l)||zi(l)?(c=o,zi(o)?c=ZT(o):(!Re(o)||Fa(o))&&(c=Ag(l))):f=!1}f&&(s.set(l,c),a(c,l,i,n,s),s.delete(l)),Fc(e,r,c)}function Rg(e,t,r,i,a){e!==t&&zg(t,function(n,s){if(a||(a=new Cr),Re(n))QT(e,t,s,r,Rg,i,a);else{var o=i?i(Dc(e,s),n,s+"",e,t,a):void 0;o===void 0&&(o=n),Fc(e,s,o)}},Ua)}function io(e,t){return jg(Mg(e,t,ro),e+"")}function eN(e,t,r){if(!Re(r))return!1;var i=typeof t;return(i=="number"?ti(r)&&eo(t,r.length):i=="string"&&t in r)?Ma(r[t],e):!1}function tN(e){return io(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&&eN(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 rN=tN(function(e,t,r){Rg(e,t,r)});function Mc(e,t,r,i){if(!Re(e))return e;t=qi(t,e);for(var a=-1,n=t.length,s=n-1,o=e;o!=null&&++a<n;){var l=vn(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=Re(c)?c:eo(t[a+1])?[]:{})}Cc(o,l,u),o=o[l]}return e}function ot(e,t,r){return e==null?e:Mc(e,t,r)}function Ug(e){return typeof e=="function"?e:ro}var nN=/\s/;function iN(e){for(var t=e.length;t--&&nN.test(e.charAt(t)););return t}var aN=/^\s+/;function sN(e){return e&&e.slice(0,iN(e)+1).replace(aN,"")}var Bg=NaN,oN=/^[-+]0x[0-9a-f]+$/i,lN=/^0b[01]+$/i,uN=/^0o[0-7]+$/i,cN=parseInt;function fN(e){if(typeof e=="number")return e;if(Na(e))return Bg;if(Re(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Re(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=sN(e);var r=lN.test(e);return r||uN.test(e)?cN(e.slice(2),r?2:8):oN.test(e)?Bg:+e}var Vg=1/0,dN=17976931348623157e292;function pN(e){if(!e)return e===0?e:0;if(e=fN(e),e===Vg||e===-Vg){var t=e<0?-1:1;return t*dN}return e===e?e:0}function Hg(e){var t=pN(e),r=t%1;return t===t?r?t-r:t:0}var mN=9007199254740991,jc=4294967295,hN=Math.min;function Kg(e,t){if(e=Hg(e),e<1||e>mN)return[];var r=jc,i=hN(e,jc);t=Ug(t),e-=jc;for(var a=ug(i,t);++r<e;)t(r);return a}function Wg(e,t){return e&&zg(e,t,Er)}var gN="__lodash_hash_undefined__";function yN(e){return this.__data__.set(e,gN),this}function vN(e){return this.__data__.has(e)}function ni(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new nn;++t<r;)this.add(e[t])}ni.prototype.add=ni.prototype.push=yN,ni.prototype.has=vN;function bN(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 Ga(e,t){return e.has(t)}var kN=1,wN=2;function Gg(e,t,r,i,a,n){var s=r&kN,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,p=!0,d=r&wN?new ni:void 0;for(n.set(e,t),n.set(t,e);++f<o;){var m=e[f],k=t[f];if(i)var v=s?i(k,m,f,t,e,n):i(m,k,f,e,t,n);if(v!==void 0){if(v)continue;p=!1;break}if(d){if(!bN(t,function(g,b){if(!Ga(d,b)&&(m===g||a(m,g,r,i,n)))return d.push(b)})){p=!1;break}}else if(!(m===k||a(m,k,r,i,n))){p=!1;break}}return n.delete(e),n.delete(t),p}function SN(e){var t=-1,r=Array(e.size);return e.forEach(function(i,a){r[++t]=[a,i]}),r}function Lc(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var CN=1,EN=2,AN="[object Boolean]",xN="[object Date]",ON="[object Error]",_N="[object Map]",PN="[object Number]",IN="[object RegExp]",TN="[object Set]",NN="[object String]",FN="[object Symbol]",DN="[object ArrayBuffer]",MN="[object DataView]",Jg=ur?ur.prototype:void 0,qc=Jg?Jg.valueOf:void 0;function jN(e,t,r,i,a,n,s){switch(r){case MN:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case DN:return!(e.byteLength!=t.byteLength||!n(new to(e),new to(t)));case AN:case xN:case PN:return Ma(+e,+t);case ON:return e.name==t.name&&e.message==t.message;case IN:case NN:return e==t+"";case _N:var o=SN;case TN:var l=i&CN;if(o||(o=Lc),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;i|=EN,s.set(e,t);var c=Gg(o(e),o(t),i,a,n,s);return s.delete(e),c;case FN:if(qc)return qc.call(e)==qc.call(t)}return!1}var LN=1,qN=Object.prototype,$N=qN.hasOwnProperty;function zN(e,t,r,i,a,n){var s=r&LN,o=Oc(e),l=o.length,u=Oc(t),c=u.length;if(l!=c&&!s)return!1;for(var f=l;f--;){var p=o[f];if(!(s?p in t:$N.call(t,p)))return!1}var d=n.get(e),m=n.get(t);if(d&&m)return d==t&&m==e;var k=!0;n.set(e,t),n.set(t,e);for(var v=s;++f<l;){p=o[f];var g=e[p],b=t[p];if(i)var w=s?i(b,g,p,t,e,n):i(g,b,p,e,t,n);if(!(w===void 0?g===b||a(g,b,r,i,n):w)){k=!1;break}v||(v=p=="constructor")}if(k&&!v){var E=e.constructor,h=t.constructor;E!=h&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof h=="function"&&h instanceof h)&&(k=!1)}return n.delete(e),n.delete(t),k}var RN=1,Yg="[object Arguments]",Xg="[object Array]",ao="[object Object]",UN=Object.prototype,Zg=UN.hasOwnProperty;function BN(e,t,r,i,a,n){var s=Tt(e),o=Tt(t),l=s?Xg:fr(e),u=o?Xg:fr(t);l=l==Yg?ao:l,u=u==Yg?ao:u;var c=l==ao,f=u==ao,p=l==u;if(p&&ri(e)){if(!ri(t))return!1;s=!0,c=!1}if(p&&!c)return n||(n=new Cr),s||Ra(e)?Gg(e,t,r,i,a,n):jN(e,t,l,r,i,a,n);if(!(r&RN)){var d=c&&Zg.call(e,"__wrapped__"),m=f&&Zg.call(t,"__wrapped__");if(d||m){var k=d?e.value():e,v=m?t.value():t;return n||(n=new Cr),a(k,v,r,i,n)}}return p?(n||(n=new Cr),zN(e,t,r,i,a,n)):!1}function so(e,t,r,i,a){return e===t?!0:e==null||t==null||!cr(e)&&!cr(t)?e!==e&&t!==t:BN(e,t,r,i,so,a)}var VN=1,HN=2;function KN(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 Cr,f;if(!(f===void 0?so(u,l,VN|HN,i,c):f))return!1}}return!0}function Qg(e){return e===e&&!Re(e)}function WN(e){for(var t=Er(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,Qg(a)]}return t}function ey(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function GN(e){var t=WN(e);return t.length==1&&t[0][2]?ey(t[0][0],t[0][1]):function(r){return r===e||KN(r,e,t)}}function JN(e,t){return e!=null&&t in Object(e)}function ty(e,t){return e!=null&&$g(e,t,JN)}var YN=1,XN=2;function ZN(e,t){return sc(e)&&Qg(t)?ey(vn(e),t):function(r){var i=ae(r,e);return i===void 0&&i===t?ty(r,e):so(t,i,YN|XN)}}function QN(e){return function(t){return t==null?void 0:t[e]}}function eF(e){return function(t){return Js(t,e)}}function tF(e){return sc(e)?QN(vn(e)):eF(e)}function $c(e){return typeof e=="function"?e:e==null?ro:typeof e=="object"?Tt(e)?ZN(e[0],e[1]):GN(e):tF(e)}function rF(e,t,r){var i=Tt(e),a=i||ri(e)||Ra(e);if(t=$c(t),r==null){var n=e&&e.constructor;a?r=i?new n:[]:Re(e)?r=Fa(n)?Eg(Ks(e)):{}:r={}}return(a?wc:Wg)(e,function(s,o,l){return t(r,s,o,l)}),r}function nF(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 iF(e){return e!==e}function aF(e,t,r){for(var i=r-1,a=e.length;++i<a;)if(e[i]===t)return i;return-1}function ry(e,t,r){return t===t?aF(e,t,r):nF(e,iF,r)}function zc(e,t){var r=e==null?0:e.length;return!!r&&ry(e,t,0)>-1}function oo(){}var sF=1/0,oF=$i&&1/Lc(new $i([,-0]))[1]==sF?function(e){return new $i(e)}:oo,lF=200;function ny(e,t,r){var i=-1,a=zc,n=e.length,s=!0,o=[],l=o;if(n>=lF){var u=oF(e);if(u)return Lc(u);s=!1,a=Ga,l=new ni}else l=o;e:for(;++i<n;){var c=e[i],f=c;if(c=c!==0?c:0,s&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue e;o.push(c)}else a(l,f,r)||(l!==o&&l.push(f),o.push(c))}return o}function iy(e){return e&&e.length?ny(e):[]}function Ja(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 uF=io(function(e){return ny(Va(e,1,Wa,!0))});function pr(e){let{type:t}=e;return!t&&e.const?Ja(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 sn(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]=sn(s,o):e&&t&&(pr(e)==="object"||pr(t)==="object")&&n===wh&&Array.isArray(s)&&Array.isArray(o)?a[n]=uF(s,o):a[n]=o,a},r);for(const a of Object.getOwnPropertySymbols(t))i[a]=t[a];return i}var cF="[object Number]";function ay(e){return typeof e=="number"||cr(e)&&tn(e)==cF}function sy(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,[ze,r],{});if(o.type!=="object"&&o.type!=="array"&&(o.const===a||!((i=o.enum)===null||i===void 0)&&i.includes(a)))return n}}}function lo(e,t,r,i,a){if(t===void 0)return 0;const n=sy(t,r,a);if(ay(n))return n;for(let s=0;s<r.length;s+=1){const o=r[s];if(a&&$e(o,[ze,a])){const l=ae(t,a),u=ae(o,[ze,a],{});if(e.isValid(u,l,i))return s}else if(o[ze]){const l={anyOf:Object.keys(o[ze]).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 fF=Object.prototype;function Ya(e){for(const t in e)if(fF.hasOwnProperty.call(e,t))return!1;return!0}const dF=["array","boolean","integer","null","number","object","string"];new Set(dF);const pF=["$defs","definitions","properties","patternProperties","dependencies"];new Set(pF);const mF=["items","allOf","oneOf","anyOf"];new Set(mF);const hF=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(hF);function uo(e){return typeof e=="object"}function Ur(e){return uo(e)?Ya(e):e===!0}function Bi(e,t){return e<t?-1:e>t?1:0}function Rc(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 gF(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 oy(e){return e.length===0}function Uc(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 ly(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 yF(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 vF(e,t){return r=>{if(e.has(r))return e.get(r);const i=t(r);return e.set(r,i),i}}const uy=vF,cy=()=>0,bF=e=>e===void 0,kF=e=>typeof e!="object",fy={boolean:0,number:1,string:2};function wF(e,t){const r=typeof e,i=typeof t;return r===i?Bi(e,t):fy[r]-fy[i]}function SF(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 co(e,t,r=cy){return(i,a)=>e(i)?e(a)?r(i,a):-1:e(a)?1:t(i,a)}function Vi(e){return co(bF,e)}function kn(e,t){return co(r=>r===void 0||e(r),t)}function Bc(e,t){return co(Array.isArray,e,t)}const _t=Vi(Bi),Vc=kn(e=>e===0,(e,t)=>e-t);function CF({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const r=uy(t,k=>Object.keys(k).sort());function i(k){return(v,g)=>{const b=r(v),w=r(g),E=Math.min(b.length,w.length);for(let h=0;h<E;h++){const y=Bi(b[h],w[h]);if(y!==0)return y}if(b.length!==w.length)return b.length-w.length;for(let h=0;h<E;h++){const y=b[h],C=k(v[y],g[y]);if(C!==0)return C}return 0}}function a(k){const v=Uc(k),g=uy(e,ly(k,{threshold:0}));return(b,w)=>v(g(b),g(w))}const n=a(Bi);function s(k,v){if(uo(k)){if(uo(v)){const g=Object.keys(k),b=Object.keys(v),w=SF(g,b),E=w.length;for(let h=0;h<E;h++){const y=w[h];if(k[y]===v[y])continue;const x=(m[y]??o)(k[y],v[y]);if(x!==0)return x}return 0}return v===!0&&Ya(k)?0:1}return uo(v)?k===!0&&Ya(v)?0:-1:Bi(k,v)}const o=Vi(u),l=co(kF,Bc(i(o),Uc(u)),wF);function u(k,v){return k===null?-1:v===null?1:l(k,v)}const c=Vi(s),f=kn(Ya,i(c)),p=Vi(a(s)),d=kn(Ur,s),m={$id:_t,$comment:_t,$defs:f,$ref:_t,$schema:_t,const:o,contains:c,contentEncoding:_t,contentMediaType:_t,default:o,definitions:f,description:_t,else:c,examples:o,exclusiveMaximum:_t,exclusiveMinimum:_t,format:_t,if:c,maximum:_t,maxItems:_t,maxLength:_t,maxProperties:_t,minimum:_t,multipleOf:_t,not:c,pattern:_t,propertyNames:c,readOnly:_t,then:c,title:_t,writeOnly:_t,uniqueItems:kn(k=>k===!1,cy),minLength:Vc,minItems:Vc,minProperties:Vc,required:kn(oy,n),enum:kn(oy,a(u)),type:Vi((k,v)=>{const g=Array.isArray(k),b=Array.isArray(v);return!g&&!b?Bi(k,v):n(g?k:[k],b?v:[v])}),items:kn(k=>!Array.isArray(k)&&Ur(k),Bc(s,Uc(s))),anyOf:p,allOf:p,oneOf:p,properties:f,patternProperties:f,additionalProperties:d,additionalItems:d,dependencies:kn(Ya,i(Vi(Bc(s,n))))};return{compareSchemaValues:u,compareSchemaDefinitions:s}}function dy(e){return e}const py=(e,t)=>e?py(t%e,e):t,EF=(e,t)=>Math.abs(e*t)/py(e,t);function AF(e,t){return e===t?e:`(?=.*(?:${e}))(?=.*(?:${t}))`}function Hc(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 Kc(e,t){return e||t}function my(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 xF(e){const t=new Map;for(const r of e)for(const i of r[0])t.set(i,r[1]);return t}function ii(e,t,r){r===void 0||Ur(r)?delete e[t]:e[t]=r}const OF=["properties","patternProperties","additionalProperties"];function hy(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 gy=[[],[]];function yy(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 _F=["items","additionalItems"],PF=["if","then","else"];function vy(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 Wc(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 ai(e,t,r){return[e,t,r]}function IF(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 TF=[ai("minimum","maximum",e=>e.maximum>=e.minimum),ai("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),ai("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),ai("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),ai("minLength","maxLength",e=>e.maxLength>=e.minLength),ai("minItems","maxItems",e=>e.maxItems>=e.minItems),ai("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function NF({mergePatterns:e=AF,isSubRegExp:t=Object.is,intersectJson:r=gF,deduplicateJsonSchemaDef:i=dy,defaultMerger:a=dy,assigners:n=[],checks:s=TF,mergers:o}={}){function l(E){const h=E.length;let y=E[0];for(let C=1;C<h;C++){const x=g(y,E[C]);if(x===!1)return!1;Ur(x)||(y=x)}return y}function u(E,h,y,C,x,_,S){if(E.length=0,y===!1)return!1;if(E.push(y),x!==void 0){if(x===!1)return!1;E.push(x)}if(yy(E,h,_))return!1;const O=E.length<2;if(S===!1){if(O)return;if(yy(E,h,C))return!1}else O&&S!==void 0&&E.push(S);return E.length===1?E[0]:l(E)}function c(E,h,y,C,x,_){const S=y.length;if(S>0&&x!==!1)if(_)Object.assign(E,h);else for(let A=0;A<S;A++){const O=y[A];C.has(O)||(E[O]=g(h[O],x))}return E}const f=(E,{properties:h={},patternProperties:y,additionalProperties:C=!0},{properties:x={},patternProperties:_,additionalProperties:S=!0})=>{const A=Ur(C),O=Ur(S);if(A&&O)return ii(E,"properties",b(h,x)),ii(E,"patternProperties",y&&_?b(y,_):y??_),delete E.additionalProperties,E;const F=g(C,S);ii(E,"additionalProperties",F);const T={},j=Object.keys(h),q=j.length,[J,Y]=y?hy(y):gy,[X,P]=_?hy(_):gy,M=[],B=new Set,I=O?void 0:S;for(let G=0;G<q;G++){const Z=j[G];B.add(Z);const z=u(M,Z,h[Z],J,x[Z],X,I);z!==void 0&&(T[Z]=z)}const D=Object.keys(x),L=D.length,U=A?void 0:C;for(let G=0;G<L;G++){const Z=D[G];if(B.has(Z))continue;const z=u(M,Z,x[Z],X,void 0,J,U);z!==void 0&&(T[Z]=z)}ii(E,"properties",T);let R={};const H=new Set;return Y.length>0&&P.length>0&&Hc(Y,P,(G,Z)=>{t(G,Z)&&H.add(G),t(Z,G)&&H.add(Z),R[e(G,Z)]=g(y[G],_[Z])}),R=c(R,y,Y,H,S,O),R=c(R,_,P,H,C,A),ii(E,"patternProperties",R),E},p=(E,{items:h=[],additionalItems:y},{items:C=[],additionalItems:x})=>{const _=Array.isArray(h),S=Array.isArray(C),A=[];if(E.items=A,_&&S){const[O,F,T]=h.length<C.length?[h.length,y,C]:[C.length,x,h];let j=0;for(;j<O;j++)A.push(g(h[j],C[j]));if(F===!1)E.additionalItems=!1;else{const q=F===void 0||Ur(F);for(;j<T.length;j++)A.push(q?T[j]:g(T[j],F));ii(E,"additionalItems",y!==void 0&&x!==void 0?g(y,x):y??x)}}else if(_||S){const[O,F,T]=_?[h,C,y]:[C,h,x];ii(E,"additionalItems",T&&g(T,F));for(let j=0;j<O.length;j++)A.push(g(O[j],F))}else delete E.additionalItems,E.items=g(h,C);return E},d=(E,h,y)=>{vy(E,h);const C=vy({},y);return E.allOf===void 0?E.allOf=[C]:E.allOf=E.allOf.concat(C),E};function m(E,h){const y=[];if(Hc(E,h,(C,x)=>{try{y.push(g(C,x))}catch{}}),y.length===0)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(E)}" and "${JSON.stringify(h)}"; the merged result is empty`);return i(y)}const k=xF([[OF,f],[_F,p],[PF,d],...n]),v=IF(s);function g(E,h){if(E===!1||h===!1)return!1;if(Ur(E))return Ur(h)?!0:h;if(Ur(h))return E;let y={...E};const C=new Set,x=new Set,_=Reflect.ownKeys(h),S=_.length;for(let A=0;A<S;A++){const O=_[A],F=h[O];if(F===void 0)continue;const T=v.get(O);if(T!==void 0){const Y=T.length;for(let X=0;X<Y;X++){const P=T[X];E[P.oppositeKey]!==void 0&&x.add(P.check)}}const j=E[O];if(j===void 0){y[O]=F;continue}const q=k.get(O);if(q){C.add(q);continue}const J=w[O]??a;y[O]=J(j,F)}for(const A of C)y=A(y,E,h);for(const A of x)A(y);return y}const b=my(g),w={$id:a,$ref:a,$schema:a,$comment:a,$defs:b,definitions:b,type:(E,h)=>{if(E===h)return E;const y=Array.isArray(E),C=Array.isArray(h);if(!y&&!C){const x=Wc(E,h);if(x!==void 0)return x}else if(y||C){const x=new Set;if(y&&C)Hc(E,h,(S,A)=>{const O=Wc(S,A);O!==void 0&&x.add(O)});else{const S=y?E:h,A=y?h:E,O=S.length;for(let F=0;F<O;F++){const T=Wc(A,S[F]);T!==void 0&&x.add(T)}}const _=x.size;if(_===1)return x.values().next().value;if(_>1)return Array.from(x)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${E.toString()}, ${h.toString()}`)},default:a,description:a,title:a,const:a,format:a,contentEncoding:a,contentMediaType:a,not:(E,h)=>{const y=i([E,h]);return y.length===1?y[0]:{anyOf:y}},pattern:e,readOnly:Kc,writeOnly:Kc,enum:(E,h)=>{const y=r(E,h);if(y.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(E)}", "${JSON.stringify(h)}"`);return y},anyOf:m,oneOf:m,allOf:(E,h)=>i(E.concat(h)),propertyNames:g,contains:g,dependencies:my((E,h)=>Array.isArray(E)?Array.isArray(h)?Rc(E,h):g(h,{required:E}):Array.isArray(h)?g(E,{required:h}):g(E,h)),examples:(E,h)=>{if(!Array.isArray(E)||!Array.isArray(h))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(E)}" and "${JSON.stringify(h)}"`);return Rc(E,h)},multipleOf:(E,h)=>{let y=1;for(;!Number.isInteger(E)||!Number.isInteger(h);)y*=10,E*=10,h*=10;return EF(E,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:Kc,required:Rc,...o};return{mergeSchemaDefinitions:g,mergeArrayOfSchemaDefinitions:l}}function FF(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 DF(e){return t=>e(FF(t))}const{compareSchemaDefinitions:MF,compareSchemaValues:jF}=CF(),{mergeArrayOfSchemaDefinitions:LF}=NF({intersectJson:yF(jF),deduplicateJsonSchemaDef:ly(MF)}),by=DF(LF);function Mt(e,t,r={},i,a,n=!1){return Br(e,t,r,i,void 0,void 0,a,n)[0]}function ky(e){return typeof e!="boolean"?e:e?{}:{not:{}}}function qF(e,t,r,i,a,n,s){const{if:o,then:l,else:u,...c}=t,f=e.isValid(o,n||{},r);let p=[c],d=[];if(i){if(l&&typeof l!="boolean"){const m=l;d=d.concat(Br(e,m,r,n,i,a,s))}if(u&&typeof u!="boolean"){const m=u;d=d.concat(Br(e,m,r,n,i,a,s))}}else{const m=f?l:u;if(m!==void 0){const k=ky(m);d=d.concat(Br(e,k,r,n,i,a,s))}}return d.length&&(p=d.map(m=>sn(c,m))),p.flatMap(m=>Br(e,m,r,n,i,a,s))}function wy(e){return e.reduce((r,i)=>i.length>1?i.flatMap(a=>Kg(r.length,n=>[...r[n]].concat(a))):(r.forEach(a=>a.push(i[0])),r),[[]])}function Sy(e,t){return Object.keys(e.patternProperties).filter(r=>RegExp(r).test(t)).reduce((r,i)=>(ot(r,[i],e.patternProperties[i]),r),{})}function $F(e,t,r,i,a,n,s,o){const l=Cy(e,t,r,i,a,n,s,o);if(l.length>1||l[0]!==t)return l;if(Xu in t)return Ay(e,t,r,i,a,n,s).flatMap(c=>Br(e,c,r,n,i,a,s));if(zr in t&&Array.isArray(t[zr])){const u=t.allOf.map(f=>Br(e,f,r,n,i,a,s));return wy(u).map(f=>({...t,allOf:f}))}return[t]}function Cy(e,t,r,i,a,n,s,o){const l=wn(t,r,a,void 0,o);return l!==t?Br(e,l,r,n,i,a,s,o):[t]}function wn(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,[tc]:!0}:s;r.push(l),s={...Ka(l,t,o),...u,[Vs]:l},tt in s&&(o=s[tt])}if(ze in s){const l=[],u=rF(s[ze],(c,f,p)=>{const d=[...r];c[p]=wn(f,t,d,o,a,!a),l.push(d)},{});rN(r,iy(YT(l))),s={...s,[ze]:u}}if(ji in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:wn(s.items,t,r,o,a)}),a){let l,u;je in e&&Array.isArray(e[je])?(l=je,u=s[je]):xe in e&&Array.isArray(e[xe])&&(l=xe,u=s[xe]),l&&u&&(s={...s,[l]:u.map(c=>wn(c,t,r,o,a))})}return Ue(e,s)?e:s}function zF(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(Qu in n){const l=Sy(n,o);if(!kt(l)){n.properties[o]=Mt(e,{[zr]:Object.values(l)},r,ae(s,[o]),a),n.properties[o][hn]=!0;return}}if(Mi in n&&n.additionalProperties!==!1){let l;typeof n.additionalProperties!="boolean"?at in n.additionalProperties?l=Mt(e,{[at]:ae(n.additionalProperties,[at])},r,ae(s,[o]),a):"type"in n.additionalProperties?l={...n.additionalProperties}:je in n.additionalProperties||xe in n.additionalProperties?l={type:"object",...n.additionalProperties}:l={type:Ja(ae(s,[o]))}:l={type:Ja(ae(s,[o]))},n.properties[o]=l,n.properties[o][hn]=!0}else n.properties[o]={type:"null"},n.properties[o][hn]=!0}}),n}function RF(e){return by(e)}function Br(e,t,r,i,a=!1,n=[],s,o){return be(t)?$F(e,t,r,a,n,i,s,o).flatMap(u=>{var c;let f=u;if(Zu in f)return qF(e,f,r,a,n,i,s);if(zr in f){if(a){const{allOf:d,...m}=f;return[...d,m]}try{const d=[],m=[],k={};(c=f.allOf)===null||c===void 0||c.forEach(v=>{if(typeof v=="object"&&v.contains)d.push(v);else{m.push(v);for(const g of Object.getOwnPropertySymbols(v))g in k||(k[g]=v[g])}}),d.length&&(f={...f,allOf:m}),f=s?s(f):RF(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:
59
+ `,d);const{allOf:m,...k}=f;return k}}return ze in f&&Qu in f&&(f=Object.keys(f.properties).reduce((d,m)=>{const k=Sy(d,m);return kt(k)||(d.properties[m]=Mt(e,{allOf:[d.properties[m],...Object.values(k)]},r,ae(i,[m]),s)),d},{...f,properties:{...f.properties}})),Qu in f||Mi in f&&f.additionalProperties!==!1?zF(e,f,r,i,s):f}):[{}]}function UF(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=dr(t);n=n.map(p=>wn(p,r,[]));const f=lo(e,u,n,r,c);if(i){const p=Ey(n,!1,r);return lo(e,u,p,r,c),n.map(d=>sn(l,d))}return[sn(l,n[f])]}return[t]}function Ey(e,t=!1,r){return e.map(i=>{if(!be(i))return ky(i);const a=t&&r?wn(i,r,[]):i;return a.additionalProperties===!1?{...a,additionalProperties:!0}:a})}function Ay(e,t,r,i,a,n,s){const{dependencies:o,...l}=t;return UF(e,l,r,i,n).flatMap(c=>xy(e,o,c,r,i,a,n,s))}function xy(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]=Nc(u,t);return Array.isArray(f)?l[0]=BF(r,f):be(f)&&(l=VF(e,r,i,u,f,a,n,s,o)),l.flatMap(p=>xy(e,c,p,i,a,n,s,o))}return l}function BF(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 VF(e,t,r,i,a,n,s,o,l){return Br(e,a,r,o,n,s,l).flatMap(c=>{const{oneOf:f,...p}=c,d=sn(t,p);if(f===void 0)return d;const m=f.map(v=>typeof v=="boolean"||!(at in v)?[v]:Cy(e,v,r,n,s,o));return wy(m).flatMap(v=>HF(e,d,r,i,v,n,s,o,l))})}function HF(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 p={type:"object",properties:{[i]:f}};return e.isValid(p,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,[p]=Nc(i,f.properties),d={...f,properties:p};return Br(e,d,r,o,n,s,l).map(k=>sn(t,k))})}function Xa(e,t,r,i,a,n={},s){if(Array.isArray(r[a])){const l=dr(r)||i,u=r[a].map(f=>Mt(e,f,t,n,s)),c=ae(n,l);if(c!==void 0)return u.find(f=>Ue(ae(f,[ze,l,Yn],ae(f,[ze,l,Vt])),c))}}function Oy(e,t,r,i,a){let n=r;if($e(r,at)&&(n=Mt(e,r,t,void 0,a)),kt(i))return n;const s=Array.isArray(i)?[...i]:i.split("."),[o,...l]=s;if(o!==void 0&&o!==""&&$e(n,o))return n=ae(n,o),Oy(e,t,n,l,a)}function fo(e,t,r,i,a,n){const s=Oy(e,t,r,i,n);return s===void 0?a:s}const _y={title:"!@#$_UNKNOWN_$#@!"};function KF(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=fo(e,t,o,[ze,d],{},n),$e(o,xe)?o=Xa(e,t,o,u,xe,ae(a,d),n):$e(o,je)&&(o=Xa(e,t,o,u,je,ae(a,d),n))}),$e(o,xe)?o=Xa(e,t,o,u,xe,a,n):$e(o,je)&&(o=Xa(e,t,o,u,je,a,n));let c=fo(e,t,o,[ze,l],_y,n);c===_y&&(c=void 0);const f=fo(e,t,o,wh,[],n);let p;return c&&Array.isArray(f)&&(p=f.includes(u)),{field:c,isRequired:p}}function WF(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 GF(e,t){return function(r,i){if(r==null)return r;if(!ti(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 Py=GF(Wg);function JF(e,t,r,i,a){return a(e,function(n,s,o){r=i?(i=!1,n):t(r,n,s,o)}),r}function YF(e,t,r){var i=Tt(e)?WF:JF,a=arguments.length<3;return i(e,$c(t),r,a,Py)}const XF={type:"object",$id:bO,properties:{__not_really_there__:{type:"number"}}};function Gc(e,t,r,i,a){let n=0;return r&&(Re(r.properties)?n+=YF(r.properties,(s,o,l)=>{const u=ae(i,l);if(typeof o=="boolean")return s;if($e(o,at)){const c=Mt(e,o,t,u,a);return s+Gc(e,t,c,u||{},a)}if(($e(o,xe)||$e(o,je))&&u){const c=$e(o,xe)?xe:je,f=dr(o);return s+Hi(e,t,u,ae(o,c),-1,f,a)}if(o.type==="object"){const c=Re(u)?1:0;return s+c+Gc(e,t,o,u,a)}if(o.type===Ja(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):bn(r.type)&&r.type===Ja(i)&&(n+=1)),n}function Hi(e,t,r,i,a=-1,n,s){const o=i.map(p=>wn(p,t,[])),l=sy(r,i,n);if(ay(l))return l;const u=o.reduce((p,d,m)=>(lo(e,r,[XF,d],t,n)===1&&p.push(m),p),[]);if(u.length===1)return u[0];u.length||Kg(o.length,p=>u.push(p));const c=new Set,{bestIndex:f}=u.reduce((p,d)=>{const{bestScore:m}=p,k=o[d],v=Gc(e,t,k,r,s);return c.add(v),v>m?{bestIndex:d,bestScore:v}:p},{bestIndex:a,bestScore:0});return c.size===1&&a>=0?a:f}function Iy(e){const t=e[Vt],r=pr(e);return be(t)&&bn(t==null?void 0:t.$data)&&r!=="object"&&r!=="array"}function Ty(e){return Array.isArray(e.enum)&&e.enum.length===1||Vt in e}function Jc(e){return Array.isArray(e.items)&&e.items.every(t=>be(t))}function Ki(e){return e==null}function Za(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?Za(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,p=(l=ae(e,o))!==null&&l!==void 0?l:{},d=c&&be(p)&&Object.values(p).some(v=>be(v)),m=c&&be(ae(e,o)),k=f&&be(u);return m&&k&&!d?(s[o]={...ae(e,o),...u},s):(s[o]=Za(ae(e,o),u,r,i,a&&(c||!f)),n)},n)}return i&&(e!==void 0&&Ki(t)||typeof t=="number"&&Number.isNaN(t))||a&&!Ki(t)?e:t}function Sn(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]=Sn(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 ZF(e){if(vO in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(Vt in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function QF(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 si(e,t){if(e.enum){let n,s;if(t){const{enumNames:l,enumOrder:u}=pe(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=QF(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=dr(e);if(t){const{optionsSchemaSelector:n=a}=pe(t);a=n}return r==null?void 0:r.map((n,s)=>{var o,l,u;const{title:c}=pe(i==null?void 0:i[s]),f=n;let p,d=c;if(a){const m=ae(f,[ze,a],{});p=ae(m,Yn,ae(m,Vt)),d=(l=(o=d??(m==null?void 0:m.title))!==null&&o!==void 0?o:f.title)!==null&&l!==void 0?l:String(p)}else p=ZF(f),d=(u=d??f.title)!==null&&u!==void 0?u:String(p);return{schema:f,label:d,value:p}})}function po(e,t,r={},i){const a=Mt(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"&&Ty(s)):!1}function Yc(e,t,r,i){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:po(e,t.items,r,i)}const eD=["string","number","integer","boolean","null"];var Wi;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(Wi||(Wi={}));function Xc(e,t=Wi.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!==Wi.Ignore&&be(e.additionalItems)?e.additionalItems:{}}function Ny(e,t){const{default:r,type:i}=e;return Array.isArray(i)&&i.includes("null")&&kt(t)&&r===null?null:t}function Fy(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)||!kt(r))&&(e[t]=r);else if(u!=="skipDefaults"){const c=a===void 0?n.includes(t):a;be(r)?u==="skipEmptyDefaults"?kt(r)||(e[t]=r):(!kt(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 Cn(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:p}=r;let d=be(a)?a:{};const m=be(t)?t:{};let k=i;const v=k&&(l==null?void 0:l.nestedDefaultsPrecedence)==="ancestorWins";let g=null,b=l,w=o;if(m[Vt]!==void 0&&(l==null?void 0:l.constAsDefaults)!=="never"&&!Iy(m))k=m[Vt];else if(be(k)&&be(m.default)&&!m[je]&&!m[xe]&&!m[at])v?k=Sn(m.default,k):k=Sn(k,m.default);else if(Yn in m&&!v&&!m[je]&&!m[xe]&&!m[at])k=m.default;else if(at in m){const y=m[at];o.includes(y)||(w=o.concat(y),g=Ka(y,n));const C=a===void 0||be(a)&&kt(a);g&&!k&&C&&(k=m.default),f&&g&&!be(a)&&(d=a)}else if(Xu in m){const y={...Dy(e,m,r,k),...d};[g]=Ay(e,m,n,!1,[],y,u)}else if(Jc(m)&&!v)k=m.items.map((y,C)=>Cn(e,y,{rootSchema:n,includeUndefinedValues:s,_recurseList:o,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:u,parentDefaults:Array.isArray(i)?i[C]:void 0,rawFormData:d,required:c,shouldMergeDefaultsIntoFormData:f}));else if(xe in m){const{oneOf:y,...C}=m;if(y.length===0)return;const x=dr(m),{type:_="null"}=C;!Array.isArray(_)&&eD.includes(_)&&(b==null?void 0:b.constAsDefaults)==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),g=y[Hi(e,n,a??m.default,y,0,x,u)],g=sn(C,g)}else if(je in m){const{anyOf:y,...C}=m;if(y.length===0)return;const x=dr(m);g=y[Hi(e,n,a??m.default,y,0,x,u)],g=sn(C,g)}if(g)return Cn(e,g,{rootSchema:n,includeUndefinedValues:s,_recurseList:w,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:u,parentDefaults:k,rawFormData:a??d,required:c,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:p});k===void 0&&(k=m.default);const E=Dy(e,m,r,k);let h=E??k;if(f){const{arrayMinItems:y={}}=l||{},{mergeExtraDefaults:C}=y,x=Zc(e,m,n,a,l,u);(!be(a)||zr in m)&&(h=Za(h,x,C,!0))}return h}function Zc(e,t,r,i,a,n){const s=(a==null?void 0:a.allOf)==="populateDefaults"&&zr in t,o=s?Mt(e,t,r,i,n):t,l=!Ty(o)&&po(e,o,r,n);let u=i;if(l){const f=si(o);u=(f==null?void 0:f.some(d=>Ue(d.value,i)))?i:void 0}return o[Vt]&&(a==null?void 0:a.constAsDefaults)==="always"?u=o.const:be(u)&&be(o.properties)&&(u=Object.keys(o.properties).reduce((f,p)=>{const d=ae(o,[ze,p],{});return p in f&&(s||be(d)&&zr in d)&&(f[p]=Zc(e,d,r,ae(f,p),a,n)),f},{...u})),u}function tD(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 p=be(r)?r:{},d=t,k=(s==null?void 0:s.allOf)==="populateDefaults"&&zr in d||(s==null?void 0:s.emptyObjectFields)!=="skipEmptyDefaults"&&Zu in d?Mt(e,d,i,p,o):d,v=k[Vt],g=Object.keys(k.properties||{}).reduce((b,w)=>{var E;const h=ae(k,[ze,w],{}),y=be(v)&&v[w]!==void 0,C=(be(h)&&Vt in h||y)&&(s==null?void 0:s.constAsDefaults)!=="never"&&!Iy(h),x=Cn(e,h,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:a===!0,parentDefaults:ae(f,[w]),rawFormData:ae(p,[w]),required:(E=k.required)===null||E===void 0?void 0:E.includes(w),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});return Fy(b,w,x,a,l,k.required,s,C,(h==null?void 0:h.type)==="null"),b},{});if(k.additionalProperties&&!c){const b=be(k.additionalProperties)?k.additionalProperties:{},w=new Set,E=[];Object.keys(p).filter(h=>!k.properties||!k.properties[h]).forEach(h=>{w.add(h),E.push(h)}),be(f)&&E.length===0&&Object.keys(f).filter(h=>!k.properties||!k.properties[h]).forEach(h=>w.add(h)),w.forEach(h=>{var y;const C=Cn(e,b,{rootSchema:i,_recurseList:n,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,includeUndefinedValues:a===!0,parentDefaults:ae(f,[h]),rawFormData:ae(p,[h]),required:(y=k.required)===null||y===void 0?void 0:y.includes(h),shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c});Fy(g,h,C,a,l,E)})}return Ny(t,g)}}function rD(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 p,d;let m=f;const k=t,v=(p=n==null?void 0:n.arrayMinItems)!==null&&p!==void 0?p:{},{populate:g,mergeExtraDefaults:b}=v,w=g==="never",E=g==="requiredOnly",h=g==="all"||!w&&!E,y=(d=v==null?void 0:v.computeSkipPopulate)!==null&&d!==void 0?d:(()=>!1),x=(n==null?void 0:n.emptyObjectFields)==="skipEmptyDefaults"?void 0:[];if(Array.isArray(m)&&(m=m.map((A,O)=>{const F=Xc(k,Wi.Fallback,O),T=Array.isArray(r)?r[O]:void 0;return Cn(e,F,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,parentDefaults:A,rawFormData:T,required:o,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c})})),Array.isArray(r)){const A=Xc(k);if(w)m=r;else{const O=r.map((T,j)=>Cn(e,A,{rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,rawFormData:T,parentDefaults:ae(m,[j]),required:o,shouldMergeDefaultsIntoFormData:u,initialDefaultsGenerated:c}));m=Za(m,O,(E&&o||h)&&b)}}const _=Array.isArray(m)?m.length:0;if(w)return u&&!o?m:m??x;if(E&&!o)return m||void 0;let S;if(!k.minItems||Yc(e,k,i,s)||y(e,k,i)||k.minItems<=_)S=m||!o&&!l?m:x;else{const A=m||[],O=Xc(k,Wi.Invert),F=O.default,T=Array.from({length:k.minItems-_},()=>Cn(e,O,{parentDefaults:F,rootSchema:i,_recurseList:a,experimental_defaultFormStateBehavior:n,experimental_customMergeAllOf:s,required:o,shouldMergeDefaultsIntoFormData:u}));S=A.concat(T)}return Ny(t,S)}function Dy(e,t,r={},i){switch(pr(t)){case"object":return tD(e,t,r,i);case"array":return rD(e,t,r,i);default:return}}function My(e,t,r,i,a=!1,n,s,o){if(!be(t))throw new Error(`Invalid schema: ${t}`);const l=Mt(e,t,i,r,s),u=Cn(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",p=Zc(e,l,i??l,r,n,s);return Za(u,p,!0,f,!0)}return u}function jy(e={}){return"widget"in pe(e)&&pe(e).widget!=="hidden"}function Ly(e,t,r={},i,a){if(r[nc]==="files")return!0;if(t.items){const n=Mt(e,t.items,i,void 0,a);return n.type==="string"&&n.format==="data-url"}return!1}function nD(e,t,r={},i,a,n){const s=pe(r,a),{label:o=!0}=s;let l=!!o;if(l){const u=pr(t),c=!!t[hn];u==="array"&&(l=c||Yc(e,t,i,n)||Ly(e,t,r,i,n)||jy(r)),u==="object"&&(l=c),u==="boolean"&&r&&!r[nc]&&(l=!1),r!=null&&r[SO]&&(l=!1)}return l}function qy(e,t,r){for(var i=-1,a=t.length,n={};++i<a;){var s=t[i],o=Js(e,s);r(o,s)&&Mc(n,qi(s,e),o)}return n}function iD(e,t){return qy(e,t,function(r,i){return ty(e,i)})}var $y=Lg(function(e,t){return e==null?{}:iD(e,t)});function aD(e,t){if(t.length===0&&typeof e!="object")return e;const r=$y(e,t);return Array.isArray(e)?Object.keys(r).map(i=>r[i]):r}function sD(e,t){const r=(a,n)=>typeof a!="object"||kt(a)||n&&!kt(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[rc]&&u[Us]!==""?n.push(u[Us]):i(u,n,c)}else l===Us&&u!==""&&s.forEach(c=>{const f=ae(t,c),p=o.length===1;(r(f,p)||Array.isArray(f)&&f.every(d=>r(d,p)))&&n.push(c)})}),n};return i(e)}function zy(e){return Ki(e)||e===""?!0:Array.isArray(e)?e.length===0:be(e)?Object.values(e).every(zy):!1}function oD(e,t){return t?t(e):by(e)}function lD(e,t,r={},i,a){function n(m){return be(m)}function s(m){return be(m)}function o(m,k,v){var g;const{properties:b,additionalProperties:w,patternProperties:E,propertyNames:h}=m,y=new Set((g=m.required)!==null&&g!==void 0?g:[]);function C(_,S,A,O=!1){var F;const T=d(S,A,v[_]);if(!O&&be(T)){let j=s(S)?S:{};j.$ref!==void 0&&(j=Ka(j.$ref,r));const q=new Set((F=j.required)!==null&&F!==void 0?F:[]);if(Object.entries(T).every(([Y,X])=>!q.has(Y)&&zy(X)))return}T!==void 0&&(v[_]=T)}if(b!==void 0)for(const[_,S]of Object.entries(b))C(_,S,k[_],y.has(_));let x;if(E!==void 0){x=[];const _=Object.entries(E).map(([A,O])=>[new RegExp(A),O]),S=new Set(Object.keys(b??{}));for(const[A,O]of Object.entries(k))if(!S.has(A)){const F=_.find(([T])=>T.test(A));F===void 0?x.push(A):C(A,F[1],O)}}if(w!==void 0&&w!==!1){const _=w;if(x!==void 0)for(const S of x)C(S,_,k[S]);else{const S=new Set(Object.keys(b??{}));for(const[A,O]of Object.entries(k))S.has(A)||C(A,_,O)}}if(h!==void 0)for(const[_,S]of Object.entries(k))v[_]=S;return v}function l(m,k,v){const{items:g,additionalItems:b}=m;if(g!==void 0)if(Array.isArray(g))for(let w=0;w<g.length;w+=1)v.push(d(g[w],k[w]));else for(let w=0;w<k.length;w+=1)v.push(d(g,k[w]));if(b)for(let w=v.length;w<k.length;w+=1)v.push(d(b,k[w]));return v}function u(m,k,v){const{if:g,then:b,else:w}=m;if(g===void 0)return v;const h=(s(g)?e.isValid(g,k,r):g)?b:w;return h===void 0?v:d(h,k,v)}function c(m,k,v,g){if(!Array.isArray(m)||po(e,k,r,a))return g;const b=Ey(m,!0,r),w=Hi(e,r,v,b,0,dr(k),a),E=m[w],h=be(E)?wn(E,r,[]):b[w];return d(h,v,g)}function f(m,k,v){const{anyOf:g}=m;if(!Array.isArray(g))return v;if(k===void 0||Array.isArray(k)&&k.length===0||be(k)&&Object.keys(k).length===0){let b=v;for(const w of g)b=d(w,k,b);return b}return c(g,m,k,v)}function p(m,k,v){const{dependencies:g}=m;if(g===void 0||!n(k))return v;let b=v;for(const[w,E]of Object.entries(g))w in k&&!Array.isArray(E)&&(b=d(E,k,b));return b}function d(m,k,v){if(k===void 0||m===!1)return;if(m===!0||kt(m))return k;let g=m;const{$ref:b,allOf:w}=g;if(b!==void 0)return d(Ka(b,r),k,v);if(w){g=oD(g,a);const y=g.allOf;if(y)for(let C=0;C<y.length;C++)v=d(y[C],k,v)}let E=f(g,k,c(g.oneOf,g,k,v));const h=pr(g);if(h==="object"){if(!n(k))return;E=o(g,k,n(E)?E:{})}else if(h==="array"){if(!Array.isArray(k))return;E=l(g,k,Array.isArray(E)?E:[])}else E===void 0&&(E=k);return p(g,k,u(g,k,E))}return d(t,i)}const mr=Symbol("no Value");function Ry(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=>Vt in i?i[Vt]:Array.isArray(i.enum)&&i.enum.length===1?i.enum[0]:mr).filter(i=>i!==mr);return r.length>0?r:void 0}function uD(e,t){const r=Ry(e);if(!r||r.some(a=>Ue(a,t)))return mr;const i=ae(e,Yn,mr);return i!==mr&&r.some(a=>Ue(a,i))?i:r.length===1?r[0]:void 0}function Qc(e,t,r,i,a={},n){let s;if($e(r,ze)){const o={};if($e(i,ze)){const c=ae(i,ze,{});Object.keys(c).forEach(f=>{$e(a,f)&&(o[f]=void 0)})}const l=Object.keys(ae(r,ze,{})),u={};l.forEach(c=>{const f=ae(a,c);let p=ae(i,[ze,c],{}),d=ae(r,[ze,c],{});$e(p,at)&&(p=Mt(e,p,t,f,n)),$e(d,at)&&(d=Mt(e,d,t,f,n));const m=ae(p,"type"),k=ae(d,"type");if(!m||m===k)if($e(o,c)&&delete o[c],k==="object"||k==="array"&&Array.isArray(f)){const v=Qc(e,t,d,p,f,n);(v!==void 0||k==="array")&&(u[c]=v)}else{const v=ae(d,Yn,mr),g=ae(p,Yn,mr);v!==mr&&v!==f&&(g===f?o[c]=v:ae(d,"readOnly")===!0&&(o[c]=void 0));const b=ae(d,Vt,mr),w=ae(p,Vt,mr);if(b!==mr&&b!==f&&(o[c]=w===f?b:void 0),$e(a,c)){const E=uD(d,f);E!==mr&&(o[c]=E)}}}),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)){$e(o,at)&&(o=Mt(e,o,t,a,n)),$e(l,at)&&(l=Mt(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((p,d)=>{const m=Qc(e,t,l,o,d,n);return m!==void 0&&(f<0||p.length<f)&&p.push(m),p},[]);else{const p=Ry(l),d=p?a.filter(m=>p.some(k=>Ue(k,m))):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 En(e,t,r,i,a,n=[],s){if(at in t||Xu in t||zr in t||Zu in t){const l=Mt(e,t,i,a,s);if(n.findIndex(c=>Ue(c,l))===-1)return En(e,l,r,i,a,n.concat(l),s)}let o={[Us]:r.replace(/^\./,"")};if(xe in t||je in t){const l=xe in t?t.oneOf:t.anyOf,u=dr(t),c=Hi(e,i,a,l,0,u,s),f=l[c];o={...o,...En(e,f,r,i,a,n,s)}}if(Mi in t&&t[Mi]!==!1){ot(o,rc,!0);const l=Re(t[Mi])?t[Mi]:{},u=ae(t,ze,{});for(const c of Object.keys(a??{}))c in u||(o[c]=En(e,l,`${r}.${c}`,i,ae(a,[c]),n,s))}if(ji in t&&Array.isArray(a)){const{items:l,additionalItems:u}=t;Array.isArray(l)?a.forEach((c,f)=>{l[f]?o[f]=En(e,l[f],`${r}.${f}`,i,c,n,s):u?o[f]=En(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]=En(e,l,`${r}.${f}`,i,c,n,s)})}else if(ze in t)for(const l in t.properties){const u=ae(t,[ze,l],{});o[l]=En(e,u,`${r}.${l}`,i,ae(a,[l]),n,s)}return o}function cD(e,t,r="",i,a,n){return En(e,t,r,i,a,void 0,n)}class fD{constructor(t,r,i,a){(r==null?void 0:r[Ia])===Hs?this.rootSchema=Tc(r,ae(r,tt,"#")):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||!Ue(this.rootSchema,r)||!Ue(this.experimental_defaultFormStateBehavior,i)||this.experimental_customMergeAllOf!==a}findFieldInSchema(t,r,i){return KF(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,r,i,a){return Xa(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getDefaultFormState(t,r,i=!1,a){return My(this.validator,t,r,this.rootSchema,i,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,a)}getDisplayLabel(t,r,i){return nD(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,r,i,a){return Hi(this.validator,this.rootSchema,t,r,i,a,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,r,i){return lo(this.validator,t,r,this.rootSchema,i)}getFromSchema(t,r,i){return fo(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}isFilesArray(t,r){return Ly(this.validator,t,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return Yc(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return po(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,r){return lD(this.validator,t,this.rootSchema,r)}retrieveSchema(t,r,i){return Mt(this.validator,t,this.rootSchema,r,this.experimental_customMergeAllOf,i)}sanitizeDataForNewSchema(t,r,i){return Qc(this.validator,this.rootSchema,t,r,i,this.experimental_customMergeAllOf)}toPathSchema(t,r,i){return cD(this.validator,t,r,this.rootSchema,i,this.experimental_customMergeAllOf)}}function dD(e,t,r={},i){return new fD(e,t,r,i)}function pD(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 An(e,t){let r=String(e);for(;r.length<t;)r=`0${r}`;return r}function Uy(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 Uy(t,e).reverse();const o=[];for(let l=n;l<=s;l+=1)o.push({value:l,label:An(l,2)});return o}function mD(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 hD(e,t){return mD(e,t)}function mo(e,t=[],r){if(Array.isArray(e))return e.map(n=>mo(n,t)).filter(n=>n!==void 0);const i=e===""||e===null?-1:Number(e),a=t[i];return a?a.value:r}function By(e,t,r=[]){const i=mo(e,r);return Array.isArray(t)?t.filter(a=>!Ue(a,i)):Ue(i,t)?void 0:t}function Gi(e,t){return Array.isArray(t)?t.some(r=>Ue(r,e)):Ue(t,e)}function Vy(e,t=[],r=!1){const i=t.map((a,n)=>Gi(a.value,e)?String(n):void 0).filter(a=>typeof a<"u");return r?i:i[0]}function gD(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=Vy(e,t,r);return typeof s>"u"?a:s}function Hy(e,t,r=[]){const i=mo(e,r);if(!Ki(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 Ky(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 Ar(e,t,r="indexed",i){return r!=="realValue"?mo(e,t,i):Array.isArray(e)?e.map(a=>Ky(a,t,i)):Ky(e,t,i)}function Qa(e,t,r="indexed"){return r!=="realValue"?String(t):Ki(e)?"":String(typeof e=="object"?t:e)}var yD=1,vD=4;function ho(e){return Ba(e,yD|vD)}function bD(e,t,r,i){return i=typeof i=="function"?i:void 0,e==null?e:Mc(e,t,r,i)}class Wy{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={},bD(this.errorSchema,t,i,Object)),i}resetAllErrors(t){return this.errorSchema=t?ho(t):{},this}addErrors(t,r){const i=this.getOrCreateErrorBlock(r);let a=ae(i,Dt);return Array.isArray(a)||(a=[],i[Dt]=a),Array.isArray(t)?ot(i,Dt,[...new Set([...a,...t])]):ot(i,Dt,[...new Set([...a,t])]),this}setErrors(t,r){const i=this.getOrCreateErrorBlock(r),a=Array.isArray(t)?[...new Set([...t])]:[t];return ot(i,Dt,a),this}clearErrors(t){const r=this.getOrCreateErrorBlock(t);return ot(r,Dt,[]),this}}var kD=200;function wD(e,t,r,i){var a=-1,n=zc,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;t.length>=kD&&(n=Ga,s=!1,t=new ni(t));e:for(;++a<o;){var c=e[a],f=c;if(c=c!==0?c:0,s&&f===f){for(var p=u;p--;)if(t[p]===f)continue e;l.push(c)}else n(t,f,i)||l.push(c)}return l}var SD=io(function(e,t){return Wa(e)?wD(e,Va(t,1,Wa,!0)):[]});function CD(e,t){if(e==null)return{};var r=Li(_c(e),function(i){return[i]});return t=$c(t),qy(e,r,function(i,a){return t(i,a[0])})}function Gy(e,t){const r=yn(e),i=yn(t);if(e===t||!r&&!i)return[];if(r&&!i)return Er(e);if(!r&&i)return Er(t);const a=Er(CD(e,(s,o)=>!Ue(s,ae(t,o)))),n=SD(Er(t),Er(e));return[...a,...n]}function ED(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},p={type:"year",range:r,value:s},d=[];switch(i){case"MDY":d.push(f,c,p);break;case"DMY":d.push(c,f,p);break;case"YMD":default:d.push(p,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 AD(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 xD(e,t,r={},i=!0){const a={type:t||"text",...AD(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 es(e){var t;return(t=e==null?void 0:e.optionValueFormat)!==null&&t!==void 0?t:"indexed"}const Jy={props:{disabled:!1},submitText:"Submit",norender:!1};function ef(e={}){const t=pe(e);if(t!=null&&t[Bs]){const r=t[Bs];return{...Jy,...r}}return Jy}function ge(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 OD=0;function Yy(e){var t=++OD;return uc(e)+t}function tf(){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,Yy("test-id-")),e.get(r)}})}var go={exports:{}},rt={};/**
60
60
  * @license React
61
61
  * react-is.production.min.js
62
62
  *
@@ -64,7 +64,7 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var $=z(R,Z,D,L,B+"."+Z,
64
64
  *
65
65
  * This source code is licensed under the MIT license found in the
66
66
  * LICENSE file in the root directory of this source tree.
67
- */var Yy;function OD(){if(Yy)return rt;Yy=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"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function k(v){if(typeof v=="object"&&v!==null){var g=v.$$typeof;switch(g){case e:switch(v=v.type,v){case r:case a:case i:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case o:case s:case l:case p:case f:case n:return v;default:return g}}case t:return g}}}return rt.ContextConsumer=s,rt.ContextProvider=n,rt.Element=e,rt.ForwardRef=l,rt.Fragment=r,rt.Lazy=p,rt.Memo=f,rt.Portal=t,rt.Profiler=a,rt.StrictMode=i,rt.Suspense=u,rt.SuspenseList=c,rt.isAsyncMode=function(){return!1},rt.isConcurrentMode=function(){return!1},rt.isContextConsumer=function(v){return k(v)===s},rt.isContextProvider=function(v){return k(v)===n},rt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},rt.isForwardRef=function(v){return k(v)===l},rt.isFragment=function(v){return k(v)===r},rt.isLazy=function(v){return k(v)===p},rt.isMemo=function(v){return k(v)===f},rt.isPortal=function(v){return k(v)===t},rt.isProfiler=function(v){return k(v)===a},rt.isStrictMode=function(v){return k(v)===i},rt.isSuspense=function(v){return k(v)===u},rt.isSuspenseList=function(v){return k(v)===c},rt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===a||v===i||v===u||v===c||v===d||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===f||v.$$typeof===n||v.$$typeof===s||v.$$typeof===l||v.$$typeof===m||v.getModuleId!==void 0)},rt.typeOf=k,rt}var nt={};/**
67
+ */var Xy;function _D(){if(Xy)return rt;Xy=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"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function k(v){if(typeof v=="object"&&v!==null){var g=v.$$typeof;switch(g){case e:switch(v=v.type,v){case r:case a:case i:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case o:case s:case l:case p:case f:case n:return v;default:return g}}case t:return g}}}return rt.ContextConsumer=s,rt.ContextProvider=n,rt.Element=e,rt.ForwardRef=l,rt.Fragment=r,rt.Lazy=p,rt.Memo=f,rt.Portal=t,rt.Profiler=a,rt.StrictMode=i,rt.Suspense=u,rt.SuspenseList=c,rt.isAsyncMode=function(){return!1},rt.isConcurrentMode=function(){return!1},rt.isContextConsumer=function(v){return k(v)===s},rt.isContextProvider=function(v){return k(v)===n},rt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},rt.isForwardRef=function(v){return k(v)===l},rt.isFragment=function(v){return k(v)===r},rt.isLazy=function(v){return k(v)===p},rt.isMemo=function(v){return k(v)===f},rt.isPortal=function(v){return k(v)===t},rt.isProfiler=function(v){return k(v)===a},rt.isStrictMode=function(v){return k(v)===i},rt.isSuspense=function(v){return k(v)===u},rt.isSuspenseList=function(v){return k(v)===c},rt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===a||v===i||v===u||v===c||v===d||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===f||v.$$typeof===n||v.$$typeof===s||v.$$typeof===l||v.$$typeof===m||v.getModuleId!==void 0)},rt.typeOf=k,rt}var nt={};/**
68
68
  * @license React
69
69
  * react-is.development.js
70
70
  *
@@ -72,19 +72,19 @@ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var $=z(R,Z,D,L,B+"."+Z,
72
72
  *
73
73
  * This source code is licensed under the MIT license found in the
74
74
  * LICENSE file in the root directory of this source tree.
75
- */var Xy;function _D(){return Xy||(Xy=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"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),m=!1,k=!1,v=!1,g=!1,b=!1,w;w=Symbol.for("react.module.reference");function E(K){return!!(typeof K=="string"||typeof K=="function"||K===r||K===a||b||K===i||K===u||K===c||g||K===d||m||k||v||typeof K=="object"&&K!==null&&(K.$$typeof===p||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 p:case f:case n:return ue;default:return ie}}case t:return ie}}}var y=s,C=n,x=e,_=l,S=r,A=p,O=f,F=t,T=a,j=i,q=u,J=c,Y=!1,X=!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 M(K){return X||(X=!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 D(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function L(K){return h(K)===l}function B(K){return h(K)===r}function R(K){return h(K)===p}function H(K){return h(K)===f}function G(K){return h(K)===t}function Z(K){return h(K)===a}function z(K){return h(K)===i}function $(K){return h(K)===u}function W(K){return h(K)===c}nt.ContextConsumer=y,nt.ContextProvider=C,nt.Element=x,nt.ForwardRef=_,nt.Fragment=S,nt.Lazy=A,nt.Memo=O,nt.Portal=F,nt.Profiler=T,nt.StrictMode=j,nt.Suspense=q,nt.SuspenseList=J,nt.isAsyncMode=P,nt.isConcurrentMode=M,nt.isContextConsumer=U,nt.isContextProvider=I,nt.isElement=D,nt.isForwardRef=L,nt.isFragment=B,nt.isLazy=R,nt.isMemo=H,nt.isPortal=G,nt.isProfiler=Z,nt.isStrictMode=z,nt.isSuspense=$,nt.isSuspenseList=W,nt.isValidElementType=E,nt.typeOf=h})()),nt}var Zy;function PD(){return Zy||(Zy=1,process.env.NODE_ENV==="production"?go.exports=OD():go.exports=_D()),go.exports}var ID=PD();const Qy=jr(ID),rf={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 TD(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}),ot(e,"MergedWidget",r)}return r}function Vr(e,t,r={}){const i=pr(e);if(typeof t=="function"||t&&Qy.isForwardRef(V.createElement(t))||Qy.isMemo(t))return TD(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 Vr(e,a,r)}if(typeof i=="string"){if(!(i in rf))throw new Error(`No widget for type '${i}' in schema: ${JSON.stringify(e)}`);if(t in rf[i]){const a=r[rf[i][t]];return Vr(e,a,r)}}throw new Error(`No widget '${t}' for type '${i}' in schema: ${JSON.stringify(e)}`)}function ev(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 tv(e){const t=new Set;return JSON.stringify(e,(r,i)=>(t.add(r),i)),JSON.stringify(e,Array.from(t).sort())}function hr(e){return ev(tv(e))}function ND(e){return ev(tv(e))}function FD(e,t,r={}){try{return Vr(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 oi(e,t){return`${bn(e)?e:e[tt]}__${t}`}function xn(e){return oi(e,"description")}function nf(e){return oi(e,"error")}function af(e){return oi(e,"examples")}function sf(e){return oi(e,"help")}function yo(e){return oi(e,"title")}function xr(e,t=!1){const r=t?` ${af(e)}`:"";return`${nf(e)} ${xn(e)} ${sf(e)}${r}`}function vo(e,t){return`${e}-${t}`}function rr(e,t){return oi(e,t)}function of(e,t){return oi(e,`optional${t}`)}function Ji(e){return!Ki(e)&&(!Re(e)||Array.isArray(e)||!kt(e))}function DD(e,t){const{rootSchema:r,schemaUtils:i}=e;if(Be(t,r))return!0;if(at in r){const a=i.retrieveSchema(r);return Be(t,a)}return!1}function MD(e,t,r){return t?r:e}function jD(e){return e?new Date(e).toJSON():void 0}function LD(e,t,r,i=!1){!i&&Array.isArray(r)&&t.default!==void 0&&Uy(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 lf(e,t,r){const i=[kO];return $e(e,Ch)&&i.unshift(Ch),ae(e,[...i,t],r)}function qD(e,t){if(!Array.isArray(t))return e;const r=c=>c.reduce((f,p)=>(f[p]=!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 uf(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 $D(e,t,r){var i,a;const n=(i=e[Vs])!==null&&i!==void 0?i:e[at],s=r.uiSchemaDefinitions,o=n&&s?s[n]:void 0;let l;if(o?!t||kt(t)?l={...o}:l=Sn(o,t):l=t||{},s){let u=e;if(n&&e[at]&&!e[Vs])try{u=Ka(n,r.rootSchema)}catch(c){return console.warn(`could not resolve $ref in resolveUiSchema:
76
- `,c),l}for(const c of[xe,je]){const f=u[c];if(Array.isArray(f)&&f.length>0){const p=l[c],d=Array.isArray(p)?[...p]:[];let m=!1;for(let k=0;k<f.length;k++){const v=f[k],g=(a=v==null?void 0:v[Vs])!==null&&a!==void 0?a:v==null?void 0:v[at];if(g&&g in s){const b=d[k]||{};d[k]=Sn(s[g],b),m=!0}}m&&(l[c]=d)}}}return l}function ts(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 ts(e.anyOf[0]);if(((i=e.oneOf)===null||i===void 0?void 0:i.length)===1)return ts(e.oneOf[0]);if(e.allOf){const a=n=>ts(n);return e.allOf.some(a)}return!1}function zD({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}=pe(n,a.globalUiOptions);if(!u)return null;const c=(o=i.enumOptions)===null||o===void 0?void 0:o.find(({value:d})=>Gi(d,s)),f=(l=c==null?void 0:c.schema)===null||l===void 0?void 0:l.description;if(!f)return null;const p=ge("DescriptionFieldTemplate",a,i);return N.jsx(p,{id:xn(t),description:f,schema:c.schema,uiSchema:n,registry:a})}function cf(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 RD(e,t,r,i="customDeep"){if(i==="always")return!0;if(i==="shallow"){const{props:s,state:o}=e;return!cf(s,t)||!cf(o,r)}const{props:a,state:n}=e;return!Be(a,t)||!Be(n,r)}function rv(e){const t=ny(e.map(r=>Re(r)?pr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function rs(e,t,r,i){const{enableOptionalDataFieldForType:a=[]}=pe(i,e.globalUiOptions);let n;return je in t&&Array.isArray(t[je])?n=rv(t[je]):xe in t&&Array.isArray(t[xe])?n=rv(t[xe]):n=pr(t),!DD(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!a.find(s=>s===n)}function nv(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 ff(e,t=[]){if(!e)return[];let r=[];return Dt in e&&(r=r.concat(e[Dt].map(i=>{const a=`.${t.join(".")}`;return{property:a,message:i,stack:`${a} ${i}`}}))),Object.keys(e).reduce((i,a)=>{if(a!==Dt){const n=e[a];if(yn(n))return i.concat(ff(n,[...t,a]))}return i},r)}function iv(e){return Tt(e)?Li(e,vn):Na(e)?[e]:Ec(Fh(uc(e)))}function BD(e){const t=new Ky;return e.length&&e.forEach(r=>{const{property:i,message:a}=r,n=i==="."?[]:iv(i);n.length>0&&n[0]===""&&n.splice(0,1),a&&t.addErrors(a,n)}),t.ErrorSchema}function Or(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,[tt]:o,...l!==void 0&&{name:l}}}function av(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const i=e[r];return yn(i)?{...t,[r]:av(i)}:{...t,[r]:i}},{})}function UD(e){return Object.values(e).every(t=>t!==-1)}function VD(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:p,onFocus:d}=e,m=`${s}_${r}`,{SelectWidget:k}=f.widgets,v=V.useCallback(g=>n(r,g),[n,r]);return N.jsx(k,{schema:{type:"integer"},id:m,name:o,className:t,options:{enumOptions:Ry(i[0],i[1])},placeholder:r,value:a,disabled:l,readonly:u,autofocus:c,onChange:v,onBlur:p,onFocus:d,registry:f,label:"","aria-describedby":xr(s)})}function HD(e){const{time:t=!1,disabled:r=!1,readonly:i=!1,options:a,onChange:n,value:s}=e,[o,l]=V.useState(uf(s,t));V.useEffect(()=>{l(uf(s,t))},[t,s]);const u=V.useCallback((d,m)=>{const k={...o,[d]:typeof m>"u"?-1:m};UD(k)?n(nv(k,t)):l(k)},[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 m=uf(new Date().toJSON(),t);n(nv(m,t))},[r,i,t,n]);return{elements:V.useMemo(()=>CD(o,t,a.yearsRange,a.format),[o,t,a.yearsRange,a.format]),handleChange:u,handleClear:c,handleSetNow:f}}function Yi(e){const t=V.useRef(e);return Be(e,t.current)||(t.current=e),t.current}function KD(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function WD(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:KD(o.target.result,t),name:t,size:r,type:i}):a({dataURL:null,name:t,size:r,type:i})},s.readAsDataURL(e)})}async function GD(e){return Promise.all(Array.from(e).map(WD))}function sv(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:i,name:a}=dD(r);return[...t,{dataURL:r,name:a,size:i.size,type:i.type}]}catch{return t}},[])}function JD(e,t,r=!1){const i=V.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),a=V.useMemo(()=>Array.isArray(e)?sv(e):sv([e||""]),[e]),n=V.useCallback(async o=>{const u=(await GD(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 YD(e){if(!e)return"";const t=new Date(e),r=An(t.getFullYear(),4),i=An(t.getMonth()+1,2),a=An(t.getDate(),2),n=An(t.getHours(),2),s=An(t.getMinutes(),2),o=An(t.getSeconds(),2),l=An(t.getMilliseconds(),3);return`${r}-${i}-${a}T${n}:${s}:${o}.${l}`}function ns(e,t,r=!1){if(!t)return e;const{errors:i,errorSchema:a}=e;let n=ff(t),s=t;return kt(a)||(s=Sn(a,t,r?"preventDuplicates":!0),n=[...i].concat(n)),{errorSchema:s,errors:n}}function XD(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]=Ah+i:t[r]=df(i)}return e}function ZD(e){return e.map(t=>df(t))}function df(e){return Array.isArray(e)?ZD([...e]):Re(e)?XD({...e}):e}var Oe;(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)"})(Oe||(Oe={}));function QD(e,t){var r=Tt(e)?wc:_y;return r(e,Rg(t))}function eM(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(`/${je}/`):void 0,o=t!=="oneOf"?n==null?void 0:n.indexOf(`/${xe}/`):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 tM(e=[],t,r,i){const a=e.map(n=>{var s;const{instancePath:o,keyword:l,params:u,schemaPath:c,parentSchema:f,...p}=n;let{message:d=""}=p,m=o.replace(/\//g,"."),k=`${m} ${d}`.trim(),v="";const g=[...((s=u.deps)===null||s===void 0?void 0:s.split(", "))||[],u.missingProperty,u.property].filter(b=>b);if(g.length>0)g.forEach(b=>{const w=m?`${m}.${b}`:b;let E=pe(ae(t,w.replace(/^\./,""))).title;if(E===void 0){const h=c.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);E=pe(ae(t,h)).title}if(E===void 0){const h=m.replace(/^\./,"").split(".").filter(Boolean);E=ae(t,[...h,b,"title"])}if(E)d=d.replace(`'${b}'`,`'${E}'`),v=E;else{const h=ae(f,[ze,b,"title"]);if(h)d=d.replace(`'${b}'`,`'${h}'`),v=h;else if(i){const y=m.replace(/^\./,"").split(".").filter(Boolean),C=[];for(const _ of y)C.push(ze,_);C.push(ze,b,"title");const x=ae(i,C);x&&(d=d.replace(`'${b}'`,`'${x}'`),v=x)}}}),k=d;else{const b=pe(ae(t,m.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 u&&(m=m?`${m}.${u.missingProperty}`:u.missingProperty),{name:l,property:m,message:d,params:u,stack:k,schemaPath:c,title:v}});return eM(a,r)}function rM(e,t,r,i,a,n,s,o){const{validationError:l}=t;let u=tM(t.errors,s,o,i);l&&(u=[...u,{stack:l.message}]),typeof n=="function"&&(u=n(u,s));let c=BD(u);if(l&&(c={...c,$schema:{__errors:[l.message]}}),typeof a!="function")return{errors:u,errorSchema:c};const f=Dy(e,i,r,i,!0),p=a(f,ac(f),s,c),d=av(p);return ns({errors:u,errorSchema:c},d)}var bo={exports:{}},pf={},on={},li={},mf={},hf={},gf={},ov;function ko(){return ov||(ov=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 i 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=i,e.nil=new i("");function a(g,...b){const w=[g[0]];let E=0;for(;E<b.length;)o(w,b[E]),w.push(g[++E]);return new i(w)}e._=a;const n=new i("+");function s(g,...b){const w=[d(g[0])];let E=0;for(;E<b.length;)w.push(n),o(w,b[E]),w.push(n,d(g[++E]));return l(w),new i(w)}e.str=s;function o(g,b){b instanceof i?g.push(...b._items):b instanceof r?g.push(b):g.push(f(b))}e.addCodeArg=o;function l(g){let b=1;for(;b<g.length-1;){if(g[b]===n){const w=u(g[b-1],g[b+1]);if(w!==void 0){g.splice(b-1,3,w);continue}g[b++]="+"}b++}}function u(g,b){if(b==='""')return g;if(g==='""')return b;if(typeof g=="string")return b instanceof r||g[g.length-1]!=='"'?void 0:typeof b!="string"?`${g.slice(0,-1)}${b}"`:b[0]==='"'?g.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(g instanceof r))return`"${g}${b.slice(1)}`}function c(g,b){return b.emptyStr()?g:g.emptyStr()?b:s`${g}${b}`}e.strConcat=c;function f(g){return typeof g=="number"||typeof g=="boolean"||g===null?g:d(Array.isArray(g)?g.join(","):g)}function p(g){return new i(d(g))}e.stringify=p;function d(g){return JSON.stringify(g).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function m(g){return typeof g=="string"&&e.IDENTIFIER.test(g)?new i(`.${g}`):a`[${g}]`}e.getProperty=m;function k(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=k;function v(g){return new i(g.toString())}e.regexpCode=v})(gf)),gf}var yf={},lv;function uv(){return lv||(lv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ko();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 p=this.toName(u),{prefix:d}=p,m=(f=c.key)!==null&&f!==void 0?f:c.ref;let k=this._values[d];if(k){const b=k.get(m);if(b)return b}else k=this._values[d]=new Map;k.set(m,p);const v=this._scope[d]||(this._scope[d]=[]),g=v.length;return v[g]=c.ref,p.setValue(c,{property:d,itemIndex:g}),p}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,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},c,f)}_reduceValues(u,c,f={},p){let d=t.nil;for(const m in u){const k=u[m];if(!k)continue;const v=f[m]=f[m]||new Map;k.forEach(g=>{if(v.has(g))return;v.set(g,i.Started);let b=c(g);if(b){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${w} ${g} = ${b};${this.opts._n}`}else if(b=p==null?void 0:p(g))d=(0,t._)`${d}${b}${this.opts._n}`;else throw new r(g);v.set(g,i.Completed)})}return d}}e.ValueScope=o})(yf)),yf}var cv;function Ie(){return cv||(cv=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=ko(),r=uv();var i=ko();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=uv();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(D,L){return this}}class s extends n{constructor(D,L,B){super(),this.varKind=D,this.name=L,this.rhs=B}render({es5:D,_n:L}){const B=D?r.varKinds.var:this.varKind,R=this.rhs===void 0?"":` = ${this.rhs}`;return`${B} ${this.name}${R};`+L}optimizeNames(D,L){if(D[this.name.str])return this.rhs&&(this.rhs=T(this.rhs,D,L)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends n{constructor(D,L,B){super(),this.lhs=D,this.rhs=L,this.sideEffects=B}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,L){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=T(this.rhs,D,L),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return F(D,this.rhs)}}class l extends o{constructor(D,L,B,R){super(D,B,R),this.op=L}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class u extends n{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class c extends n{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends n{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends n{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,L){return this.code=T(this.code,D,L),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends n{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((L,B)=>L+B.render(D),"")}optimizeNodes(){const{nodes:D}=this;let L=D.length;for(;L--;){const B=D[L].optimizeNodes();Array.isArray(B)?D.splice(L,1,...B):B?D[L]=B:D.splice(L,1)}return D.length>0?this:void 0}optimizeNames(D,L){const{nodes:B}=this;let R=B.length;for(;R--;){const H=B[R];H.optimizeNames(D,L)||(j(D,H.names),B.splice(R,1))}return B.length>0?this:void 0}get names(){return this.nodes.reduce((D,L)=>O(D,L.names),{})}}class m extends d{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class k extends d{}class v extends m{}v.kind="else";class g extends m{constructor(D,L){super(L),this.condition=D}render(D){let L=`if(${this.condition})`+super.render(D);return this.else&&(L+="else "+this.else.render(D)),L}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let L=this.else;if(L){const B=L.optimizeNodes();L=this.else=Array.isArray(B)?new v(B):B}if(L)return D===!1?L instanceof g?L:L.nodes:this.nodes.length?this:new g(q(D),L instanceof g?[L]:L.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,L){var B;if(this.else=(B=this.else)===null||B===void 0?void 0:B.optimizeNames(D,L),!!(super.optimizeNames(D,L)||this.else))return this.condition=T(this.condition,D,L),this}get names(){const D=super.names;return F(D,this.condition),this.else&&O(D,this.else.names),D}}g.kind="if";class b extends m{}b.kind="for";class w extends b{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,L){if(super.optimizeNames(D,L))return this.iteration=T(this.iteration,D,L),this}get names(){return O(super.names,this.iteration.names)}}class E extends b{constructor(D,L,B,R){super(),this.varKind=D,this.name=L,this.from=B,this.to=R}render(D){const L=D.es5?r.varKinds.var:this.varKind,{name:B,from:R,to:H}=this;return`for(${L} ${B}=${R}; ${B}<${H}; ${B}++)`+super.render(D)}get names(){const D=F(super.names,this.from);return F(D,this.to)}}class h extends b{constructor(D,L,B,R){super(),this.loop=D,this.varKind=L,this.name=B,this.iterable=R}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,L){if(super.optimizeNames(D,L))return this.iterable=T(this.iterable,D,L),this}get names(){return O(super.names,this.iterable.names)}}class y extends m{constructor(D,L,B){super(),this.name=D,this.args=L,this.async=B}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}y.kind="func";class C extends d{render(D){return"return "+super.render(D)}}C.kind="return";class x extends m{render(D){let L="try"+super.render(D);return this.catch&&(L+=this.catch.render(D)),this.finally&&(L+=this.finally.render(D)),L}optimizeNodes(){var D,L;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(L=this.finally)===null||L===void 0||L.optimizeNodes(),this}optimizeNames(D,L){var B,R;return super.optimizeNames(D,L),(B=this.catch)===null||B===void 0||B.optimizeNames(D,L),(R=this.finally)===null||R===void 0||R.optimizeNames(D,L),this}get names(){const D=super.names;return this.catch&&O(D,this.catch.names),this.finally&&O(D,this.finally.names),D}}class _ extends m{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}_.kind="catch";class S extends m{render(D){return"finally"+super.render(D)}}S.kind="finally";class A{constructor(D,L={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...L,_n:L.lines?`
77
- `:""},this._extScope=D,this._scope=new r.Scope({parent:D}),this._nodes=[new k]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,L){const B=this._extScope.value(D,L);return(this._values[B.prefix]||(this._values[B.prefix]=new Set)).add(B),B}getScopeValue(D,L){return this._extScope.getValue(D,L)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,L,B,R){const H=this._scope.toName(L);return B!==void 0&&R&&(this._constants[H.str]=B),this._leafNode(new s(D,H,B)),H}const(D,L,B){return this._def(r.varKinds.const,D,L,B)}let(D,L,B){return this._def(r.varKinds.let,D,L,B)}var(D,L,B){return this._def(r.varKinds.var,D,L,B)}assign(D,L,B){return this._leafNode(new o(D,L,B))}add(D,L){return this._leafNode(new l(D,e.operators.ADD,L))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const L=["{"];for(const[B,R]of D)L.length>1&&L.push(","),L.push(B),(B!==R||this.opts.es5)&&(L.push(":"),(0,t.addCodeArg)(L,R));return L.push("}"),new t._Code(L)}if(D,L,B){if(this._blockNode(new g(D)),L&&B)this.code(L).else().code(B).endIf();else if(L)this.code(L).endIf();else if(B)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(D,L){return this._blockNode(D),L&&this.code(L).endFor(),this}for(D,L){return this._for(new w(D),L)}forRange(D,L,B,R,H=this.opts.es5?r.varKinds.var:r.varKinds.let){const G=this._scope.toName(D);return this._for(new E(H,G,L,B),()=>R(G))}forOf(D,L,B,R=r.varKinds.const){const H=this._scope.toName(D);if(this.opts.es5){const G=L instanceof t.Name?L:this.var("_arr",L);return this.forRange("_i",0,(0,t._)`${G}.length`,Z=>{this.var(H,(0,t._)`${G}[${Z}]`),B(H)})}return this._for(new h("of",R,H,L),()=>B(H))}forIn(D,L,B,R=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${L})`,B);const H=this._scope.toName(D);return this._for(new h("in",R,H,L),()=>B(H))}endFor(){return this._endBlockNode(b)}label(D){return this._leafNode(new u(D))}break(D){return this._leafNode(new c(D))}return(D){const L=new C;if(this._blockNode(L),this.code(D),L.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try(D,L,B){if(!L&&!B)throw new Error('CodeGen: "try" without "catch" and "finally"');const R=new x;if(this._blockNode(R),this.code(D),L){const H=this.name("e");this._currNode=R.catch=new _(H),L(H)}return B&&(this._currNode=R.finally=new S,this.code(B)),this._endBlockNode(_,S)}throw(D){return this._leafNode(new f(D))}block(D,L){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(L),this}endBlock(D){const L=this._blockStarts.pop();if(L===void 0)throw new Error("CodeGen: not in self-balancing block");const B=this._nodes.length-L;if(B<0||D!==void 0&&B!==D)throw new Error(`CodeGen: wrong number of nodes: ${B} vs ${D} expected`);return this._nodes.length=L,this}func(D,L=t.nil,B,R){return this._blockNode(new y(D,L,B)),R&&this.code(R).endFunc(),this}endFunc(){return this._endBlockNode(y)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,L){const B=this._currNode;if(B instanceof D||L&&B instanceof L)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${L?`${D.kind}/${L.kind}`:D.kind}"`)}_elseNode(D){const L=this._currNode;if(!(L instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=L.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const L=this._nodes;L[L.length-1]=D}}e.CodeGen=A;function O(I,D){for(const L in D)I[L]=(I[L]||0)+(D[L]||0);return I}function F(I,D){return D instanceof t._CodeOrName?O(I,D.names):I}function T(I,D,L){if(I instanceof t.Name)return B(I);if(!R(I))return I;return new t._Code(I._items.reduce((H,G)=>(G instanceof t.Name&&(G=B(G)),G instanceof t._Code?H.push(...G._items):H.push(G),H),[]));function B(H){const G=L[H.str];return G===void 0||D[H.str]!==1?H:(delete D[H.str],G)}function R(H){return H instanceof t._Code&&H._items.some(G=>G instanceof t.Name&&D[G.str]===1&&L[G.str]!==void 0)}}function j(I,D){for(const L in D)I[L]=(I[L]||0)-(D[L]||0)}function q(I){return typeof I=="boolean"||typeof I=="number"||I===null?!I:(0,t._)`!${U(I)}`}e.not=q;const J=M(e.operators.AND);function Y(...I){return I.reduce(J)}e.and=Y;const X=M(e.operators.OR);function P(...I){return I.reduce(X)}e.or=P;function M(I){return(D,L)=>D===t.nil?L:L===t.nil?D:(0,t._)`${U(D)} ${I} ${U(L)}`}function U(I){return I instanceof t.Name?I:(0,t._)`(${I})`}})(hf)),hf}var Te={},fv;function Ve(){if(fv)return Te;fv=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.checkStrictMode=Te.getErrorPath=Te.Type=Te.useFunc=Te.setEvaluated=Te.evaluatedPropsToName=Te.mergeEvaluated=Te.eachItem=Te.unescapeJsonPointer=Te.escapeJsonPointer=Te.escapeFragment=Te.unescapeFragment=Te.schemaRefOrVal=Te.schemaHasRulesButRef=Te.schemaHasRules=Te.checkUnknownRules=Te.alwaysValidSchema=Te.toHash=void 0;const e=Ie(),t=ko();function r(h){const y={};for(const C of h)y[C]=!0;return y}Te.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))}Te.alwaysValidSchema=i;function a(h,y=h.schema){const{opts:C,self:x}=h;if(!C.strictSchema||typeof y=="boolean")return;const _=x.RULES.keywords;for(const S in y)_[S]||E(h,`unknown keyword: "${S}"`)}Te.checkUnknownRules=a;function n(h,y){if(typeof h=="boolean")return!h;for(const C in h)if(y[C])return!0;return!1}Te.schemaHasRules=n;function s(h,y){if(typeof h=="boolean")return!h;for(const C in h)if(C!=="$ref"&&y.all[C])return!0;return!1}Te.schemaHasRulesButRef=s;function o({topSchemaRef:h,schemaPath:y},C,x,_){if(!_){if(typeof C=="number"||typeof C=="boolean")return C;if(typeof C=="string")return(0,e._)`${C}`}return(0,e._)`${h}${y}${(0,e.getProperty)(x)}`}Te.schemaRefOrVal=o;function l(h){return f(decodeURIComponent(h))}Te.unescapeFragment=l;function u(h){return encodeURIComponent(c(h))}Te.escapeFragment=u;function c(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}Te.escapeJsonPointer=c;function f(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}Te.unescapeJsonPointer=f;function p(h,y){if(Array.isArray(h))for(const C of h)y(C);else y(h)}Te.eachItem=p;function d({mergeNames:h,mergeToName:y,mergeValues:C,resultToName:x}){return(_,S,A,O)=>{const F=A===void 0?S:A instanceof e.Name?(S instanceof e.Name?h(_,S,A):y(_,S,A),A):S instanceof e.Name?(y(_,A,S),S):C(S,A);return O===e.Name&&!(F instanceof e.Name)?x(_,F):F}}Te.mergeEvaluated={props:d({mergeNames:(h,y,C)=>h.if((0,e._)`${C} !== true && ${y} !== undefined`,()=>{h.if((0,e._)`${y} === true`,()=>h.assign(C,!0),()=>h.assign(C,(0,e._)`${C} || {}`).code((0,e._)`Object.assign(${C}, ${y})`))}),mergeToName:(h,y,C)=>h.if((0,e._)`${C} !== true`,()=>{y===!0?h.assign(C,!0):(h.assign(C,(0,e._)`${C} || {}`),k(h,C,y))}),mergeValues:(h,y)=>h===!0?!0:{...h,...y},resultToName:m}),items:d({mergeNames:(h,y,C)=>h.if((0,e._)`${C} !== true && ${y} !== undefined`,()=>h.assign(C,(0,e._)`${y} === true ? true : ${C} > ${y} ? ${C} : ${y}`)),mergeToName:(h,y,C)=>h.if((0,e._)`${C} !== true`,()=>h.assign(C,y===!0?!0:(0,e._)`${C} > ${y} ? ${C} : ${y}`)),mergeValues:(h,y)=>h===!0?!0:Math.max(h,y),resultToName:(h,y)=>h.var("items",y)})};function m(h,y){if(y===!0)return h.var("props",!0);const C=h.var("props",(0,e._)`{}`);return y!==void 0&&k(h,C,y),C}Te.evaluatedPropsToName=m;function k(h,y,C){Object.keys(C).forEach(x=>h.assign((0,e._)`${y}${(0,e.getProperty)(x)}`,!0))}Te.setEvaluated=k;const v={};function g(h,y){return h.scopeValue("func",{ref:y,code:v[y.code]||(v[y.code]=new t._Code(y.code))})}Te.useFunc=g;var b;(function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"})(b||(Te.Type=b={}));function w(h,y,C){if(h instanceof e.Name){const x=y===b.Num;return C?x?(0,e._)`"[" + ${h} + "]"`:(0,e._)`"['" + ${h} + "']"`:x?(0,e._)`"/" + ${h}`:(0,e._)`"/" + ${h}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return C?(0,e.getProperty)(h).toString():"/"+c(h)}Te.getErrorPath=w;function E(h,y,C=h.opts.strictSchema){if(C){if(y=`strict mode: ${y}`,C===!0)throw new Error(y);h.self.logger.warn(y)}}return Te.checkStrictMode=E,Te}var wo={},dv;function On(){if(dv)return wo;dv=1,Object.defineProperty(wo,"__esModule",{value:!0});const e=Ie(),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 wo.default=t,wo}var pv;function So(){return pv||(pv=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=Ie(),r=Ve(),i=On();e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:g})=>g?(0,t.str)`"${v}" keyword must be ${g} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function a(v,g=e.keywordError,b,w){const{it:E}=v,{gen:h,compositeRule:y,allErrors:C}=E,x=f(v,g,b);w??(y||C)?l(h,x):u(E,(0,t._)`[${x}]`)}e.reportError=a;function n(v,g=e.keywordError,b){const{it:w}=v,{gen:E,compositeRule:h,allErrors:y}=w,C=f(v,g,b);l(E,C),h||y||u(w,i.default.vErrors)}e.reportExtraError=n;function s(v,g){v.assign(i.default.errors,g),v.if((0,t._)`${i.default.vErrors} !== null`,()=>v.if(g,()=>v.assign((0,t._)`${i.default.vErrors}.length`,g),()=>v.assign(i.default.vErrors,null)))}e.resetErrorsCount=s;function o({gen:v,keyword:g,schemaValue:b,data:w,errsCount:E,it:h}){if(E===void 0)throw new Error("ajv implementation error");const y=v.name("err");v.forRange("i",E,i.default.errors,C=>{v.const(y,(0,t._)`${i.default.vErrors}[${C}]`),v.if((0,t._)`${y}.instancePath === undefined`,()=>v.assign((0,t._)`${y}.instancePath`,(0,t.strConcat)(i.default.instancePath,h.errorPath))),v.assign((0,t._)`${y}.schemaPath`,(0,t.str)`${h.errSchemaPath}/${g}`),h.opts.verbose&&(v.assign((0,t._)`${y}.schema`,b),v.assign((0,t._)`${y}.data`,w))})}e.extendErrors=o;function l(v,g){const b=v.const("err",g);v.if((0,t._)`${i.default.vErrors} === null`,()=>v.assign(i.default.vErrors,(0,t._)`[${b}]`),(0,t._)`${i.default.vErrors}.push(${b})`),v.code((0,t._)`${i.default.errors}++`)}function u(v,g){const{gen:b,validateName:w,schemaEnv:E}=v;E.$async?b.throw((0,t._)`new ${v.ValidationError}(${g})`):(b.assign((0,t._)`${w}.errors`,g),b.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(v,g,b){const{createErrors:w}=v.it;return w===!1?(0,t._)`{}`:p(v,g,b)}function p(v,g,b={}){const{gen:w,it:E}=v,h=[d(E,b),m(v,b)];return k(v,g,h),w.object(...h)}function d({errorPath:v},{instancePath:g}){const b=g?(0,t.str)`${v}${(0,r.getErrorPath)(g,r.Type.Str)}`:v;return[i.default.instancePath,(0,t.strConcat)(i.default.instancePath,b)]}function m({keyword:v,it:{errSchemaPath:g}},{schemaPath:b,parentSchema:w}){let E=w?g:(0,t.str)`${g}/${v}`;return b&&(E=(0,t.str)`${E}${(0,r.getErrorPath)(b,r.Type.Str)}`),[c.schemaPath,E]}function k(v,{params:g,message:b},w){const{keyword:E,data:h,schemaValue:y,it:C}=v,{opts:x,propertyName:_,topSchemaRef:S,schemaPath:A}=C;w.push([c.keyword,E],[c.params,typeof g=="function"?g(v):g||(0,t._)`{}`]),x.messages&&w.push([c.message,typeof b=="function"?b(v):b]),x.verbose&&w.push([c.schema,y],[c.parentSchema,(0,t._)`${S}${A}`],[i.default.data,h]),_&&w.push([c.propertyName,_])}})(mf)),mf}var mv;function nM(){if(mv)return li;mv=1,Object.defineProperty(li,"__esModule",{value:!0}),li.boolOrEmptySchema=li.topBoolOrEmptySchema=void 0;const e=So(),t=Ie(),r=On(),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))}li.topBoolOrEmptySchema=a;function n(o,l){const{gen:u,schema:c}=o;c===!1?(u.var(l,!1),s(o)):u.var(l,!0)}li.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 li}var jt={},ui={},hv;function gv(){if(hv)return ui;hv=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.getRules=ui.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)}ui.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 ui.getRules=i,ui}var ln={},yv;function vv(){if(yv)return ln;yv=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.shouldUseRule=ln.shouldUseGroup=ln.schemaHasRulesForType=void 0;function e({schema:i,self:a},n){const s=a.RULES.types[n];return s&&s!==!0&&t(i,s)}ln.schemaHasRulesForType=e;function t(i,a){return a.rules.some(n=>r(i,n))}ln.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 ln.shouldUseRule=r,ln}var bv;function Co(){if(bv)return jt;bv=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.reportTypeError=jt.checkDataTypes=jt.checkDataType=jt.coerceAndCheckDataType=jt.getJSONTypes=jt.getSchemaTypes=jt.DataType=void 0;const e=gv(),t=vv(),r=So(),i=Ie(),a=Ve();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(jt.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}jt.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(","))}jt.getJSONTypes=o;function l(b,w){const{gen:E,data:h,opts:y}=b,C=c(w,y.coerceTypes),x=w.length>0&&!(C.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(x){const _=m(w,h,y.strictNumbers,n.Wrong);E.if(_,()=>{C.length?f(b,w,C):v(b)})}return x}jt.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function c(b,w){return w?b.filter(E=>u.has(E)||w==="array"&&E==="array"):[]}function f(b,w,E){const{gen:h,data:y,opts:C}=b,x=h.let("dataType",(0,i._)`typeof ${y}`),_=h.let("coerced",(0,i._)`undefined`);C.coerceTypes==="array"&&h.if((0,i._)`${x} == 'object' && Array.isArray(${y}) && ${y}.length == 1`,()=>h.assign(y,(0,i._)`${y}[0]`).assign(x,(0,i._)`typeof ${y}`).if(m(w,y,C.strictNumbers),()=>h.assign(_,y))),h.if((0,i._)`${_} !== undefined`);for(const A of E)(u.has(A)||A==="array"&&C.coerceTypes==="array")&&S(A);h.else(),v(b),h.endIf(),h.if((0,i._)`${_} !== undefined`,()=>{h.assign(y,_),p(b,_)});function S(A){switch(A){case"string":h.elseIf((0,i._)`${x} == "number" || ${x} == "boolean"`).assign(_,(0,i._)`"" + ${y}`).elseIf((0,i._)`${y} === null`).assign(_,(0,i._)`""`);return;case"number":h.elseIf((0,i._)`${x} == "boolean" || ${y} === null
75
+ */var Zy;function PD(){return Zy||(Zy=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"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),m=!1,k=!1,v=!1,g=!1,b=!1,w;w=Symbol.for("react.module.reference");function E(K){return!!(typeof K=="string"||typeof K=="function"||K===r||K===a||b||K===i||K===u||K===c||g||K===d||m||k||v||typeof K=="object"&&K!==null&&(K.$$typeof===p||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 p:case f:case n:return ue;default:return ie}}case t:return ie}}}var y=s,C=n,x=e,_=l,S=r,A=p,O=f,F=t,T=a,j=i,q=u,J=c,Y=!1,X=!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 M(K){return X||(X=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(K){return h(K)===s}function I(K){return h(K)===n}function D(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function L(K){return h(K)===l}function U(K){return h(K)===r}function R(K){return h(K)===p}function H(K){return h(K)===f}function G(K){return h(K)===t}function Z(K){return h(K)===a}function z(K){return h(K)===i}function $(K){return h(K)===u}function W(K){return h(K)===c}nt.ContextConsumer=y,nt.ContextProvider=C,nt.Element=x,nt.ForwardRef=_,nt.Fragment=S,nt.Lazy=A,nt.Memo=O,nt.Portal=F,nt.Profiler=T,nt.StrictMode=j,nt.Suspense=q,nt.SuspenseList=J,nt.isAsyncMode=P,nt.isConcurrentMode=M,nt.isContextConsumer=B,nt.isContextProvider=I,nt.isElement=D,nt.isForwardRef=L,nt.isFragment=U,nt.isLazy=R,nt.isMemo=H,nt.isPortal=G,nt.isProfiler=Z,nt.isStrictMode=z,nt.isSuspense=$,nt.isSuspenseList=W,nt.isValidElementType=E,nt.typeOf=h})()),nt}var Qy;function ID(){return Qy||(Qy=1,process.env.NODE_ENV==="production"?go.exports=_D():go.exports=PD()),go.exports}var TD=ID();const ev=jr(TD),rf={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 ND(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}),ot(e,"MergedWidget",r)}return r}function Vr(e,t,r={}){const i=pr(e);if(typeof t=="function"||t&&ev.isForwardRef(V.createElement(t))||ev.isMemo(t))return ND(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 Vr(e,a,r)}if(typeof i=="string"){if(!(i in rf))throw new Error(`No widget for type '${i}' in schema: ${JSON.stringify(e)}`);if(t in rf[i]){const a=r[rf[i][t]];return Vr(e,a,r)}}throw new Error(`No widget '${t}' for type '${i}' in schema: ${JSON.stringify(e)}`)}function tv(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 rv(e){const t=new Set;return JSON.stringify(e,(r,i)=>(t.add(r),i)),JSON.stringify(e,Array.from(t).sort())}function hr(e){return tv(rv(e))}function FD(e){return tv(rv(e))}function DD(e,t,r={}){try{return Vr(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 oi(e,t){return`${bn(e)?e:e[tt]}__${t}`}function xn(e){return oi(e,"description")}function nf(e){return oi(e,"error")}function af(e){return oi(e,"examples")}function sf(e){return oi(e,"help")}function yo(e){return oi(e,"title")}function xr(e,t=!1){const r=t?` ${af(e)}`:"";return`${nf(e)} ${xn(e)} ${sf(e)}${r}`}function vo(e,t){return`${e}-${t}`}function rr(e,t){return oi(e,t)}function of(e,t){return oi(e,`optional${t}`)}function Ji(e){return!Ki(e)&&(!Re(e)||Array.isArray(e)||!kt(e))}function MD(e,t){const{rootSchema:r,schemaUtils:i}=e;if(Ue(t,r))return!0;if(at in r){const a=i.retrieveSchema(r);return Ue(t,a)}return!1}function jD(e,t,r){return t?r:e}function LD(e){return e?new Date(e).toJSON():void 0}function qD(e,t,r,i=!1){!i&&Array.isArray(r)&&t.default!==void 0&&Vy(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 lf(e,t,r){const i=[wO];return $e(e,Eh)&&i.unshift(Eh),ae(e,[...i,t],r)}function $D(e,t){if(!Array.isArray(t))return e;const r=c=>c.reduce((f,p)=>(f[p]=!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 uf(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 zD(e,t,r){var i,a;const n=(i=e[Vs])!==null&&i!==void 0?i:e[at],s=r.uiSchemaDefinitions,o=n&&s?s[n]:void 0;let l;if(o?!t||kt(t)?l={...o}:l=Sn(o,t):l=t||{},s){let u=e;if(n&&e[at]&&!e[Vs])try{u=Ka(n,r.rootSchema)}catch(c){return console.warn(`could not resolve $ref in resolveUiSchema:
76
+ `,c),l}for(const c of[xe,je]){const f=u[c];if(Array.isArray(f)&&f.length>0){const p=l[c],d=Array.isArray(p)?[...p]:[];let m=!1;for(let k=0;k<f.length;k++){const v=f[k],g=(a=v==null?void 0:v[Vs])!==null&&a!==void 0?a:v==null?void 0:v[at];if(g&&g in s){const b=d[k]||{};d[k]=Sn(s[g],b),m=!0}}m&&(l[c]=d)}}}return l}function ts(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 ts(e.anyOf[0]);if(((i=e.oneOf)===null||i===void 0?void 0:i.length)===1)return ts(e.oneOf[0]);if(e.allOf){const a=n=>ts(n);return e.allOf.some(a)}return!1}function RD({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}=pe(n,a.globalUiOptions);if(!u)return null;const c=(o=i.enumOptions)===null||o===void 0?void 0:o.find(({value:d})=>Gi(d,s)),f=(l=c==null?void 0:c.schema)===null||l===void 0?void 0:l.description;if(!f)return null;const p=ge("DescriptionFieldTemplate",a,i);return N.jsx(p,{id:xn(t),description:f,schema:c.schema,uiSchema:n,registry:a})}function cf(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 UD(e,t,r,i="customDeep"){if(i==="always")return!0;if(i==="shallow"){const{props:s,state:o}=e;return!cf(s,t)||!cf(o,r)}const{props:a,state:n}=e;return!Ue(a,t)||!Ue(n,r)}function nv(e){const t=iy(e.map(r=>Re(r)?pr(r):void 0).flat().filter(r=>r!==void 0));return t.length===1?t[0]:t}function rs(e,t,r,i){const{enableOptionalDataFieldForType:a=[]}=pe(i,e.globalUiOptions);let n;return je in t&&Array.isArray(t[je])?n=nv(t[je]):xe in t&&Array.isArray(t[xe])?n=nv(t[xe]):n=pr(t),!MD(e,t)&&!r&&!!n&&!Array.isArray(n)&&!!a.find(s=>s===n)}function iv(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 ff(e,t=[]){if(!e)return[];let r=[];return Dt in e&&(r=r.concat(e[Dt].map(i=>{const a=`.${t.join(".")}`;return{property:a,message:i,stack:`${a} ${i}`}}))),Object.keys(e).reduce((i,a)=>{if(a!==Dt){const n=e[a];if(yn(n))return i.concat(ff(n,[...t,a]))}return i},r)}function av(e){return Tt(e)?Li(e,vn):Na(e)?[e]:Ec(Dh(uc(e)))}function BD(e){const t=new Wy;return e.length&&e.forEach(r=>{const{property:i,message:a}=r,n=i==="."?[]:av(i);n.length>0&&n[0]===""&&n.splice(0,1),a&&t.addErrors(a,n)}),t.ErrorSchema}function Or(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,[tt]:o,...l!==void 0&&{name:l}}}function sv(e){return Object.keys(e).reduce((t,r)=>{if(r==="addError")return t;const i=e[r];return yn(i)?{...t,[r]:sv(i)}:{...t,[r]:i}},{})}function VD(e){return Object.values(e).every(t=>t!==-1)}function HD(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:p,onFocus:d}=e,m=`${s}_${r}`,{SelectWidget:k}=f.widgets,v=V.useCallback(g=>n(r,g),[n,r]);return N.jsx(k,{schema:{type:"integer"},id:m,name:o,className:t,options:{enumOptions:Uy(i[0],i[1])},placeholder:r,value:a,disabled:l,readonly:u,autofocus:c,onChange:v,onBlur:p,onFocus:d,registry:f,label:"","aria-describedby":xr(s)})}function KD(e){const{time:t=!1,disabled:r=!1,readonly:i=!1,options:a,onChange:n,value:s}=e,[o,l]=V.useState(uf(s,t));V.useEffect(()=>{l(uf(s,t))},[t,s]);const u=V.useCallback((d,m)=>{const k={...o,[d]:typeof m>"u"?-1:m};VD(k)?n(iv(k,t)):l(k)},[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 m=uf(new Date().toJSON(),t);n(iv(m,t))},[r,i,t,n]);return{elements:V.useMemo(()=>ED(o,t,a.yearsRange,a.format),[o,t,a.yearsRange,a.format]),handleChange:u,handleClear:c,handleSetNow:f}}function Yi(e){const t=V.useRef(e);return Ue(e,t.current)||(t.current=e),t.current}function WD(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}async function GD(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:WD(o.target.result,t),name:t,size:r,type:i}):a({dataURL:null,name:t,size:r,type:i})},s.readAsDataURL(e)})}async function JD(e){return Promise.all(Array.from(e).map(GD))}function ov(e){return e.reduce((t,r)=>{if(!r)return t;try{const{blob:i,name:a}=pD(r);return[...t,{dataURL:r,name:a,size:i.size,type:i.type}]}catch{return t}},[])}function YD(e,t,r=!1){const i=V.useMemo(()=>r&&e?Array.isArray(e)?e:[e]:[],[e,r]),a=V.useMemo(()=>Array.isArray(e)?ov(e):ov([e||""]),[e]),n=V.useCallback(async o=>{const u=(await JD(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 XD(e){if(!e)return"";const t=new Date(e),r=An(t.getFullYear(),4),i=An(t.getMonth()+1,2),a=An(t.getDate(),2),n=An(t.getHours(),2),s=An(t.getMinutes(),2),o=An(t.getSeconds(),2),l=An(t.getMilliseconds(),3);return`${r}-${i}-${a}T${n}:${s}:${o}.${l}`}function ns(e,t,r=!1){if(!t)return e;const{errors:i,errorSchema:a}=e;let n=ff(t),s=t;return kt(a)||(s=Sn(a,t,r?"preventDuplicates":!0),n=[...i].concat(n)),{errorSchema:s,errors:n}}function ZD(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]=xh+i:t[r]=df(i)}return e}function QD(e){return e.map(t=>df(t))}function df(e){return Array.isArray(e)?QD([...e]):Re(e)?ZD({...e}):e}var Oe;(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)"})(Oe||(Oe={}));function eM(e,t){var r=Tt(e)?wc:Py;return r(e,Ug(t))}function tM(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(`/${je}/`):void 0,o=t!=="oneOf"?n==null?void 0:n.indexOf(`/${xe}/`):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 rM(e=[],t,r,i){const a=e.map(n=>{var s;const{instancePath:o,keyword:l,params:u,schemaPath:c,parentSchema:f,...p}=n;let{message:d=""}=p,m=o.replace(/\//g,"."),k=`${m} ${d}`.trim(),v="";const g=[...((s=u.deps)===null||s===void 0?void 0:s.split(", "))||[],u.missingProperty,u.property].filter(b=>b);if(g.length>0)g.forEach(b=>{const w=m?`${m}.${b}`:b;let E=pe(ae(t,w.replace(/^\./,""))).title;if(E===void 0){const h=c.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([b]);E=pe(ae(t,h)).title}if(E===void 0){const h=m.replace(/^\./,"").split(".").filter(Boolean);E=ae(t,[...h,b,"title"])}if(E)d=d.replace(`'${b}'`,`'${E}'`),v=E;else{const h=ae(f,[ze,b,"title"]);if(h)d=d.replace(`'${b}'`,`'${h}'`),v=h;else if(i){const y=m.replace(/^\./,"").split(".").filter(Boolean),C=[];for(const _ of y)C.push(ze,_);C.push(ze,b,"title");const x=ae(i,C);x&&(d=d.replace(`'${b}'`,`'${x}'`),v=x)}}}),k=d;else{const b=pe(ae(t,m.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 u&&(m=m?`${m}.${u.missingProperty}`:u.missingProperty),{name:l,property:m,message:d,params:u,stack:k,schemaPath:c,title:v}});return tM(a,r)}function nM(e,t,r,i,a,n,s,o){const{validationError:l}=t;let u=rM(t.errors,s,o,i);l&&(u=[...u,{stack:l.message}]),typeof n=="function"&&(u=n(u,s));let c=BD(u);if(l&&(c={...c,$schema:{__errors:[l.message]}}),typeof a!="function")return{errors:u,errorSchema:c};const f=My(e,i,r,i,!0),p=a(f,ac(f),s,c),d=sv(p);return ns({errors:u,errorSchema:c},d)}var bo={exports:{}},pf={},on={},li={},mf={},hf={},gf={},lv;function ko(){return lv||(lv=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 i 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=i,e.nil=new i("");function a(g,...b){const w=[g[0]];let E=0;for(;E<b.length;)o(w,b[E]),w.push(g[++E]);return new i(w)}e._=a;const n=new i("+");function s(g,...b){const w=[d(g[0])];let E=0;for(;E<b.length;)w.push(n),o(w,b[E]),w.push(n,d(g[++E]));return l(w),new i(w)}e.str=s;function o(g,b){b instanceof i?g.push(...b._items):b instanceof r?g.push(b):g.push(f(b))}e.addCodeArg=o;function l(g){let b=1;for(;b<g.length-1;){if(g[b]===n){const w=u(g[b-1],g[b+1]);if(w!==void 0){g.splice(b-1,3,w);continue}g[b++]="+"}b++}}function u(g,b){if(b==='""')return g;if(g==='""')return b;if(typeof g=="string")return b instanceof r||g[g.length-1]!=='"'?void 0:typeof b!="string"?`${g.slice(0,-1)}${b}"`:b[0]==='"'?g.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(g instanceof r))return`"${g}${b.slice(1)}`}function c(g,b){return b.emptyStr()?g:g.emptyStr()?b:s`${g}${b}`}e.strConcat=c;function f(g){return typeof g=="number"||typeof g=="boolean"||g===null?g:d(Array.isArray(g)?g.join(","):g)}function p(g){return new i(d(g))}e.stringify=p;function d(g){return JSON.stringify(g).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=d;function m(g){return typeof g=="string"&&e.IDENTIFIER.test(g)?new i(`.${g}`):a`[${g}]`}e.getProperty=m;function k(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=k;function v(g){return new i(g.toString())}e.regexpCode=v})(gf)),gf}var yf={},uv;function cv(){return uv||(uv=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=ko();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 p=this.toName(u),{prefix:d}=p,m=(f=c.key)!==null&&f!==void 0?f:c.ref;let k=this._values[d];if(k){const b=k.get(m);if(b)return b}else k=this._values[d]=new Map;k.set(m,p);const v=this._scope[d]||(this._scope[d]=[]),g=v.length;return v[g]=c.ref,p.setValue(c,{property:d,itemIndex:g}),p}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,p=>{if(p.value===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return p.value.code},c,f)}_reduceValues(u,c,f={},p){let d=t.nil;for(const m in u){const k=u[m];if(!k)continue;const v=f[m]=f[m]||new Map;k.forEach(g=>{if(v.has(g))return;v.set(g,i.Started);let b=c(g);if(b){const w=this.opts.es5?e.varKinds.var:e.varKinds.const;d=(0,t._)`${d}${w} ${g} = ${b};${this.opts._n}`}else if(b=p==null?void 0:p(g))d=(0,t._)`${d}${b}${this.opts._n}`;else throw new r(g);v.set(g,i.Completed)})}return d}}e.ValueScope=o})(yf)),yf}var fv;function Ie(){return fv||(fv=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=ko(),r=cv();var i=ko();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=cv();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(D,L){return this}}class s extends n{constructor(D,L,U){super(),this.varKind=D,this.name=L,this.rhs=U}render({es5:D,_n:L}){const U=D?r.varKinds.var:this.varKind,R=this.rhs===void 0?"":` = ${this.rhs}`;return`${U} ${this.name}${R};`+L}optimizeNames(D,L){if(D[this.name.str])return this.rhs&&(this.rhs=T(this.rhs,D,L)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class o extends n{constructor(D,L,U){super(),this.lhs=D,this.rhs=L,this.sideEffects=U}render({_n:D}){return`${this.lhs} = ${this.rhs};`+D}optimizeNames(D,L){if(!(this.lhs instanceof t.Name&&!D[this.lhs.str]&&!this.sideEffects))return this.rhs=T(this.rhs,D,L),this}get names(){const D=this.lhs instanceof t.Name?{}:{...this.lhs.names};return F(D,this.rhs)}}class l extends o{constructor(D,L,U,R){super(D,U,R),this.op=L}render({_n:D}){return`${this.lhs} ${this.op}= ${this.rhs};`+D}}class u extends n{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`${this.label}:`+D}}class c extends n{constructor(D){super(),this.label=D,this.names={}}render({_n:D}){return`break${this.label?` ${this.label}`:""};`+D}}class f extends n{constructor(D){super(),this.error=D}render({_n:D}){return`throw ${this.error};`+D}get names(){return this.error.names}}class p extends n{constructor(D){super(),this.code=D}render({_n:D}){return`${this.code};`+D}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(D,L){return this.code=T(this.code,D,L),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class d extends n{constructor(D=[]){super(),this.nodes=D}render(D){return this.nodes.reduce((L,U)=>L+U.render(D),"")}optimizeNodes(){const{nodes:D}=this;let L=D.length;for(;L--;){const U=D[L].optimizeNodes();Array.isArray(U)?D.splice(L,1,...U):U?D[L]=U:D.splice(L,1)}return D.length>0?this:void 0}optimizeNames(D,L){const{nodes:U}=this;let R=U.length;for(;R--;){const H=U[R];H.optimizeNames(D,L)||(j(D,H.names),U.splice(R,1))}return U.length>0?this:void 0}get names(){return this.nodes.reduce((D,L)=>O(D,L.names),{})}}class m extends d{render(D){return"{"+D._n+super.render(D)+"}"+D._n}}class k extends d{}class v extends m{}v.kind="else";class g extends m{constructor(D,L){super(L),this.condition=D}render(D){let L=`if(${this.condition})`+super.render(D);return this.else&&(L+="else "+this.else.render(D)),L}optimizeNodes(){super.optimizeNodes();const D=this.condition;if(D===!0)return this.nodes;let L=this.else;if(L){const U=L.optimizeNodes();L=this.else=Array.isArray(U)?new v(U):U}if(L)return D===!1?L instanceof g?L:L.nodes:this.nodes.length?this:new g(q(D),L instanceof g?[L]:L.nodes);if(!(D===!1||!this.nodes.length))return this}optimizeNames(D,L){var U;if(this.else=(U=this.else)===null||U===void 0?void 0:U.optimizeNames(D,L),!!(super.optimizeNames(D,L)||this.else))return this.condition=T(this.condition,D,L),this}get names(){const D=super.names;return F(D,this.condition),this.else&&O(D,this.else.names),D}}g.kind="if";class b extends m{}b.kind="for";class w extends b{constructor(D){super(),this.iteration=D}render(D){return`for(${this.iteration})`+super.render(D)}optimizeNames(D,L){if(super.optimizeNames(D,L))return this.iteration=T(this.iteration,D,L),this}get names(){return O(super.names,this.iteration.names)}}class E extends b{constructor(D,L,U,R){super(),this.varKind=D,this.name=L,this.from=U,this.to=R}render(D){const L=D.es5?r.varKinds.var:this.varKind,{name:U,from:R,to:H}=this;return`for(${L} ${U}=${R}; ${U}<${H}; ${U}++)`+super.render(D)}get names(){const D=F(super.names,this.from);return F(D,this.to)}}class h extends b{constructor(D,L,U,R){super(),this.loop=D,this.varKind=L,this.name=U,this.iterable=R}render(D){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(D)}optimizeNames(D,L){if(super.optimizeNames(D,L))return this.iterable=T(this.iterable,D,L),this}get names(){return O(super.names,this.iterable.names)}}class y extends m{constructor(D,L,U){super(),this.name=D,this.args=L,this.async=U}render(D){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(D)}}y.kind="func";class C extends d{render(D){return"return "+super.render(D)}}C.kind="return";class x extends m{render(D){let L="try"+super.render(D);return this.catch&&(L+=this.catch.render(D)),this.finally&&(L+=this.finally.render(D)),L}optimizeNodes(){var D,L;return super.optimizeNodes(),(D=this.catch)===null||D===void 0||D.optimizeNodes(),(L=this.finally)===null||L===void 0||L.optimizeNodes(),this}optimizeNames(D,L){var U,R;return super.optimizeNames(D,L),(U=this.catch)===null||U===void 0||U.optimizeNames(D,L),(R=this.finally)===null||R===void 0||R.optimizeNames(D,L),this}get names(){const D=super.names;return this.catch&&O(D,this.catch.names),this.finally&&O(D,this.finally.names),D}}class _ extends m{constructor(D){super(),this.error=D}render(D){return`catch(${this.error})`+super.render(D)}}_.kind="catch";class S extends m{render(D){return"finally"+super.render(D)}}S.kind="finally";class A{constructor(D,L={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...L,_n:L.lines?`
77
+ `:""},this._extScope=D,this._scope=new r.Scope({parent:D}),this._nodes=[new k]}toString(){return this._root.render(this.opts)}name(D){return this._scope.name(D)}scopeName(D){return this._extScope.name(D)}scopeValue(D,L){const U=this._extScope.value(D,L);return(this._values[U.prefix]||(this._values[U.prefix]=new Set)).add(U),U}getScopeValue(D,L){return this._extScope.getValue(D,L)}scopeRefs(D){return this._extScope.scopeRefs(D,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(D,L,U,R){const H=this._scope.toName(L);return U!==void 0&&R&&(this._constants[H.str]=U),this._leafNode(new s(D,H,U)),H}const(D,L,U){return this._def(r.varKinds.const,D,L,U)}let(D,L,U){return this._def(r.varKinds.let,D,L,U)}var(D,L,U){return this._def(r.varKinds.var,D,L,U)}assign(D,L,U){return this._leafNode(new o(D,L,U))}add(D,L){return this._leafNode(new l(D,e.operators.ADD,L))}code(D){return typeof D=="function"?D():D!==t.nil&&this._leafNode(new p(D)),this}object(...D){const L=["{"];for(const[U,R]of D)L.length>1&&L.push(","),L.push(U),(U!==R||this.opts.es5)&&(L.push(":"),(0,t.addCodeArg)(L,R));return L.push("}"),new t._Code(L)}if(D,L,U){if(this._blockNode(new g(D)),L&&U)this.code(L).else().code(U).endIf();else if(L)this.code(L).endIf();else if(U)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(D){return this._elseNode(new g(D))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(D,L){return this._blockNode(D),L&&this.code(L).endFor(),this}for(D,L){return this._for(new w(D),L)}forRange(D,L,U,R,H=this.opts.es5?r.varKinds.var:r.varKinds.let){const G=this._scope.toName(D);return this._for(new E(H,G,L,U),()=>R(G))}forOf(D,L,U,R=r.varKinds.const){const H=this._scope.toName(D);if(this.opts.es5){const G=L instanceof t.Name?L:this.var("_arr",L);return this.forRange("_i",0,(0,t._)`${G}.length`,Z=>{this.var(H,(0,t._)`${G}[${Z}]`),U(H)})}return this._for(new h("of",R,H,L),()=>U(H))}forIn(D,L,U,R=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(D,(0,t._)`Object.keys(${L})`,U);const H=this._scope.toName(D);return this._for(new h("in",R,H,L),()=>U(H))}endFor(){return this._endBlockNode(b)}label(D){return this._leafNode(new u(D))}break(D){return this._leafNode(new c(D))}return(D){const L=new C;if(this._blockNode(L),this.code(D),L.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try(D,L,U){if(!L&&!U)throw new Error('CodeGen: "try" without "catch" and "finally"');const R=new x;if(this._blockNode(R),this.code(D),L){const H=this.name("e");this._currNode=R.catch=new _(H),L(H)}return U&&(this._currNode=R.finally=new S,this.code(U)),this._endBlockNode(_,S)}throw(D){return this._leafNode(new f(D))}block(D,L){return this._blockStarts.push(this._nodes.length),D&&this.code(D).endBlock(L),this}endBlock(D){const L=this._blockStarts.pop();if(L===void 0)throw new Error("CodeGen: not in self-balancing block");const U=this._nodes.length-L;if(U<0||D!==void 0&&U!==D)throw new Error(`CodeGen: wrong number of nodes: ${U} vs ${D} expected`);return this._nodes.length=L,this}func(D,L=t.nil,U,R){return this._blockNode(new y(D,L,U)),R&&this.code(R).endFunc(),this}endFunc(){return this._endBlockNode(y)}optimize(D=1){for(;D-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(D){return this._currNode.nodes.push(D),this}_blockNode(D){this._currNode.nodes.push(D),this._nodes.push(D)}_endBlockNode(D,L){const U=this._currNode;if(U instanceof D||L&&U instanceof L)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${L?`${D.kind}/${L.kind}`:D.kind}"`)}_elseNode(D){const L=this._currNode;if(!(L instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=L.else=D,this}get _root(){return this._nodes[0]}get _currNode(){const D=this._nodes;return D[D.length-1]}set _currNode(D){const L=this._nodes;L[L.length-1]=D}}e.CodeGen=A;function O(I,D){for(const L in D)I[L]=(I[L]||0)+(D[L]||0);return I}function F(I,D){return D instanceof t._CodeOrName?O(I,D.names):I}function T(I,D,L){if(I instanceof t.Name)return U(I);if(!R(I))return I;return new t._Code(I._items.reduce((H,G)=>(G instanceof t.Name&&(G=U(G)),G instanceof t._Code?H.push(...G._items):H.push(G),H),[]));function U(H){const G=L[H.str];return G===void 0||D[H.str]!==1?H:(delete D[H.str],G)}function R(H){return H instanceof t._Code&&H._items.some(G=>G instanceof t.Name&&D[G.str]===1&&L[G.str]!==void 0)}}function j(I,D){for(const L in D)I[L]=(I[L]||0)-(D[L]||0)}function q(I){return typeof I=="boolean"||typeof I=="number"||I===null?!I:(0,t._)`!${B(I)}`}e.not=q;const J=M(e.operators.AND);function Y(...I){return I.reduce(J)}e.and=Y;const X=M(e.operators.OR);function P(...I){return I.reduce(X)}e.or=P;function M(I){return(D,L)=>D===t.nil?L:L===t.nil?D:(0,t._)`${B(D)} ${I} ${B(L)}`}function B(I){return I instanceof t.Name?I:(0,t._)`(${I})`}})(hf)),hf}var Te={},dv;function Ve(){if(dv)return Te;dv=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.checkStrictMode=Te.getErrorPath=Te.Type=Te.useFunc=Te.setEvaluated=Te.evaluatedPropsToName=Te.mergeEvaluated=Te.eachItem=Te.unescapeJsonPointer=Te.escapeJsonPointer=Te.escapeFragment=Te.unescapeFragment=Te.schemaRefOrVal=Te.schemaHasRulesButRef=Te.schemaHasRules=Te.checkUnknownRules=Te.alwaysValidSchema=Te.toHash=void 0;const e=Ie(),t=ko();function r(h){const y={};for(const C of h)y[C]=!0;return y}Te.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))}Te.alwaysValidSchema=i;function a(h,y=h.schema){const{opts:C,self:x}=h;if(!C.strictSchema||typeof y=="boolean")return;const _=x.RULES.keywords;for(const S in y)_[S]||E(h,`unknown keyword: "${S}"`)}Te.checkUnknownRules=a;function n(h,y){if(typeof h=="boolean")return!h;for(const C in h)if(y[C])return!0;return!1}Te.schemaHasRules=n;function s(h,y){if(typeof h=="boolean")return!h;for(const C in h)if(C!=="$ref"&&y.all[C])return!0;return!1}Te.schemaHasRulesButRef=s;function o({topSchemaRef:h,schemaPath:y},C,x,_){if(!_){if(typeof C=="number"||typeof C=="boolean")return C;if(typeof C=="string")return(0,e._)`${C}`}return(0,e._)`${h}${y}${(0,e.getProperty)(x)}`}Te.schemaRefOrVal=o;function l(h){return f(decodeURIComponent(h))}Te.unescapeFragment=l;function u(h){return encodeURIComponent(c(h))}Te.escapeFragment=u;function c(h){return typeof h=="number"?`${h}`:h.replace(/~/g,"~0").replace(/\//g,"~1")}Te.escapeJsonPointer=c;function f(h){return h.replace(/~1/g,"/").replace(/~0/g,"~")}Te.unescapeJsonPointer=f;function p(h,y){if(Array.isArray(h))for(const C of h)y(C);else y(h)}Te.eachItem=p;function d({mergeNames:h,mergeToName:y,mergeValues:C,resultToName:x}){return(_,S,A,O)=>{const F=A===void 0?S:A instanceof e.Name?(S instanceof e.Name?h(_,S,A):y(_,S,A),A):S instanceof e.Name?(y(_,A,S),S):C(S,A);return O===e.Name&&!(F instanceof e.Name)?x(_,F):F}}Te.mergeEvaluated={props:d({mergeNames:(h,y,C)=>h.if((0,e._)`${C} !== true && ${y} !== undefined`,()=>{h.if((0,e._)`${y} === true`,()=>h.assign(C,!0),()=>h.assign(C,(0,e._)`${C} || {}`).code((0,e._)`Object.assign(${C}, ${y})`))}),mergeToName:(h,y,C)=>h.if((0,e._)`${C} !== true`,()=>{y===!0?h.assign(C,!0):(h.assign(C,(0,e._)`${C} || {}`),k(h,C,y))}),mergeValues:(h,y)=>h===!0?!0:{...h,...y},resultToName:m}),items:d({mergeNames:(h,y,C)=>h.if((0,e._)`${C} !== true && ${y} !== undefined`,()=>h.assign(C,(0,e._)`${y} === true ? true : ${C} > ${y} ? ${C} : ${y}`)),mergeToName:(h,y,C)=>h.if((0,e._)`${C} !== true`,()=>h.assign(C,y===!0?!0:(0,e._)`${C} > ${y} ? ${C} : ${y}`)),mergeValues:(h,y)=>h===!0?!0:Math.max(h,y),resultToName:(h,y)=>h.var("items",y)})};function m(h,y){if(y===!0)return h.var("props",!0);const C=h.var("props",(0,e._)`{}`);return y!==void 0&&k(h,C,y),C}Te.evaluatedPropsToName=m;function k(h,y,C){Object.keys(C).forEach(x=>h.assign((0,e._)`${y}${(0,e.getProperty)(x)}`,!0))}Te.setEvaluated=k;const v={};function g(h,y){return h.scopeValue("func",{ref:y,code:v[y.code]||(v[y.code]=new t._Code(y.code))})}Te.useFunc=g;var b;(function(h){h[h.Num=0]="Num",h[h.Str=1]="Str"})(b||(Te.Type=b={}));function w(h,y,C){if(h instanceof e.Name){const x=y===b.Num;return C?x?(0,e._)`"[" + ${h} + "]"`:(0,e._)`"['" + ${h} + "']"`:x?(0,e._)`"/" + ${h}`:(0,e._)`"/" + ${h}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return C?(0,e.getProperty)(h).toString():"/"+c(h)}Te.getErrorPath=w;function E(h,y,C=h.opts.strictSchema){if(C){if(y=`strict mode: ${y}`,C===!0)throw new Error(y);h.self.logger.warn(y)}}return Te.checkStrictMode=E,Te}var wo={},pv;function On(){if(pv)return wo;pv=1,Object.defineProperty(wo,"__esModule",{value:!0});const e=Ie(),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 wo.default=t,wo}var mv;function So(){return mv||(mv=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=Ie(),r=Ve(),i=On();e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:g})=>g?(0,t.str)`"${v}" keyword must be ${g} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function a(v,g=e.keywordError,b,w){const{it:E}=v,{gen:h,compositeRule:y,allErrors:C}=E,x=f(v,g,b);w??(y||C)?l(h,x):u(E,(0,t._)`[${x}]`)}e.reportError=a;function n(v,g=e.keywordError,b){const{it:w}=v,{gen:E,compositeRule:h,allErrors:y}=w,C=f(v,g,b);l(E,C),h||y||u(w,i.default.vErrors)}e.reportExtraError=n;function s(v,g){v.assign(i.default.errors,g),v.if((0,t._)`${i.default.vErrors} !== null`,()=>v.if(g,()=>v.assign((0,t._)`${i.default.vErrors}.length`,g),()=>v.assign(i.default.vErrors,null)))}e.resetErrorsCount=s;function o({gen:v,keyword:g,schemaValue:b,data:w,errsCount:E,it:h}){if(E===void 0)throw new Error("ajv implementation error");const y=v.name("err");v.forRange("i",E,i.default.errors,C=>{v.const(y,(0,t._)`${i.default.vErrors}[${C}]`),v.if((0,t._)`${y}.instancePath === undefined`,()=>v.assign((0,t._)`${y}.instancePath`,(0,t.strConcat)(i.default.instancePath,h.errorPath))),v.assign((0,t._)`${y}.schemaPath`,(0,t.str)`${h.errSchemaPath}/${g}`),h.opts.verbose&&(v.assign((0,t._)`${y}.schema`,b),v.assign((0,t._)`${y}.data`,w))})}e.extendErrors=o;function l(v,g){const b=v.const("err",g);v.if((0,t._)`${i.default.vErrors} === null`,()=>v.assign(i.default.vErrors,(0,t._)`[${b}]`),(0,t._)`${i.default.vErrors}.push(${b})`),v.code((0,t._)`${i.default.errors}++`)}function u(v,g){const{gen:b,validateName:w,schemaEnv:E}=v;E.$async?b.throw((0,t._)`new ${v.ValidationError}(${g})`):(b.assign((0,t._)`${w}.errors`,g),b.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(v,g,b){const{createErrors:w}=v.it;return w===!1?(0,t._)`{}`:p(v,g,b)}function p(v,g,b={}){const{gen:w,it:E}=v,h=[d(E,b),m(v,b)];return k(v,g,h),w.object(...h)}function d({errorPath:v},{instancePath:g}){const b=g?(0,t.str)`${v}${(0,r.getErrorPath)(g,r.Type.Str)}`:v;return[i.default.instancePath,(0,t.strConcat)(i.default.instancePath,b)]}function m({keyword:v,it:{errSchemaPath:g}},{schemaPath:b,parentSchema:w}){let E=w?g:(0,t.str)`${g}/${v}`;return b&&(E=(0,t.str)`${E}${(0,r.getErrorPath)(b,r.Type.Str)}`),[c.schemaPath,E]}function k(v,{params:g,message:b},w){const{keyword:E,data:h,schemaValue:y,it:C}=v,{opts:x,propertyName:_,topSchemaRef:S,schemaPath:A}=C;w.push([c.keyword,E],[c.params,typeof g=="function"?g(v):g||(0,t._)`{}`]),x.messages&&w.push([c.message,typeof b=="function"?b(v):b]),x.verbose&&w.push([c.schema,y],[c.parentSchema,(0,t._)`${S}${A}`],[i.default.data,h]),_&&w.push([c.propertyName,_])}})(mf)),mf}var hv;function iM(){if(hv)return li;hv=1,Object.defineProperty(li,"__esModule",{value:!0}),li.boolOrEmptySchema=li.topBoolOrEmptySchema=void 0;const e=So(),t=Ie(),r=On(),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))}li.topBoolOrEmptySchema=a;function n(o,l){const{gen:u,schema:c}=o;c===!1?(u.var(l,!1),s(o)):u.var(l,!0)}li.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 li}var jt={},ui={},gv;function yv(){if(gv)return ui;gv=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.getRules=ui.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)}ui.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 ui.getRules=i,ui}var ln={},vv;function bv(){if(vv)return ln;vv=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.shouldUseRule=ln.shouldUseGroup=ln.schemaHasRulesForType=void 0;function e({schema:i,self:a},n){const s=a.RULES.types[n];return s&&s!==!0&&t(i,s)}ln.schemaHasRulesForType=e;function t(i,a){return a.rules.some(n=>r(i,n))}ln.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 ln.shouldUseRule=r,ln}var kv;function Co(){if(kv)return jt;kv=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.reportTypeError=jt.checkDataTypes=jt.checkDataType=jt.coerceAndCheckDataType=jt.getJSONTypes=jt.getSchemaTypes=jt.DataType=void 0;const e=yv(),t=bv(),r=So(),i=Ie(),a=Ve();var n;(function(b){b[b.Correct=0]="Correct",b[b.Wrong=1]="Wrong"})(n||(jt.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}jt.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(","))}jt.getJSONTypes=o;function l(b,w){const{gen:E,data:h,opts:y}=b,C=c(w,y.coerceTypes),x=w.length>0&&!(C.length===0&&w.length===1&&(0,t.schemaHasRulesForType)(b,w[0]));if(x){const _=m(w,h,y.strictNumbers,n.Wrong);E.if(_,()=>{C.length?f(b,w,C):v(b)})}return x}jt.coerceAndCheckDataType=l;const u=new Set(["string","number","integer","boolean","null"]);function c(b,w){return w?b.filter(E=>u.has(E)||w==="array"&&E==="array"):[]}function f(b,w,E){const{gen:h,data:y,opts:C}=b,x=h.let("dataType",(0,i._)`typeof ${y}`),_=h.let("coerced",(0,i._)`undefined`);C.coerceTypes==="array"&&h.if((0,i._)`${x} == 'object' && Array.isArray(${y}) && ${y}.length == 1`,()=>h.assign(y,(0,i._)`${y}[0]`).assign(x,(0,i._)`typeof ${y}`).if(m(w,y,C.strictNumbers),()=>h.assign(_,y))),h.if((0,i._)`${_} !== undefined`);for(const A of E)(u.has(A)||A==="array"&&C.coerceTypes==="array")&&S(A);h.else(),v(b),h.endIf(),h.if((0,i._)`${_} !== undefined`,()=>{h.assign(y,_),p(b,_)});function S(A){switch(A){case"string":h.elseIf((0,i._)`${x} == "number" || ${x} == "boolean"`).assign(_,(0,i._)`"" + ${y}`).elseIf((0,i._)`${y} === null`).assign(_,(0,i._)`""`);return;case"number":h.elseIf((0,i._)`${x} == "boolean" || ${y} === null
78
78
  || (${x} == "string" && ${y} && ${y} == +${y})`).assign(_,(0,i._)`+${y}`);return;case"integer":h.elseIf((0,i._)`${x} === "boolean" || ${y} === null
79
79
  || (${x} === "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._)`${x} === "string" || ${x} === "number"
80
- || ${x} === "boolean" || ${y} === null`).assign(_,(0,i._)`[${y}]`)}}}function p({gen:b,parentData:w,parentDataProperty:E},h){b.if((0,i._)`${w} !== undefined`,()=>b.assign((0,i._)`${w}[${E}]`,h))}function d(b,w,E,h=n.Correct){const y=h===n.Correct?i.operators.EQ:i.operators.NEQ;let C;switch(b){case"null":return(0,i._)`${w} ${y} null`;case"array":C=(0,i._)`Array.isArray(${w})`;break;case"object":C=(0,i._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":C=x((0,i._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":C=x();break;default:return(0,i._)`typeof ${w} ${y} ${b}`}return h===n.Correct?C:(0,i.not)(C);function x(_=i.nil){return(0,i.and)((0,i._)`typeof ${w} == "number"`,_,E?(0,i._)`isFinite(${w})`:i.nil)}}jt.checkDataType=d;function m(b,w,E,h){if(b.length===1)return d(b[0],w,E,h);let y;const C=(0,a.toHash)(b);if(C.array&&C.object){const x=(0,i._)`typeof ${w} != "object"`;y=C.null?x:(0,i._)`!${w} || ${x}`,delete C.null,delete C.array,delete C.object}else y=i.nil;C.number&&delete C.integer;for(const x in C)y=(0,i.and)(y,d(x,w,E,h));return y}jt.checkDataTypes=m;const k={message:({schema:b})=>`must be ${b}`,params:({schema:b,schemaValue:w})=>typeof b=="string"?(0,i._)`{type: ${b}}`:(0,i._)`{type: ${w}}`};function v(b){const w=g(b);(0,r.reportError)(w,k)}jt.reportTypeError=v;function g(b){const{gen:w,data:E,schema:h}=b,y=(0,a.schemaRefOrVal)(b,h,"type");return{gen:w,keyword:"type",data:E,schema:h.type,schemaCode:y,schemaValue:y,parentSchema:h,params:{},it:b}}return jt}var is={},kv;function iM(){if(kv)return is;kv=1,Object.defineProperty(is,"__esModule",{value:!0}),is.assignDefaults=void 0;const e=Ie(),t=Ve();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))}is.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 p=(0,e._)`${f} === undefined`;c.useDefaults==="empty"&&(p=(0,e._)`${p} || ${f} === null || ${f} === ""`),o.if(p,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return is}var _r={},st={},wv;function Pr(){if(wv)return st;wv=1,Object.defineProperty(st,"__esModule",{value:!0}),st.validateUnion=st.validateArray=st.usePattern=st.callValidateCode=st.schemaProperties=st.allSchemaProperties=st.noPropertyInData=st.propertyInData=st.isOwnProperty=st.hasPropFunc=st.reportMissingProp=st.checkMissingProp=st.checkReportMissingProp=void 0;const e=Ie(),t=Ve(),r=On(),i=Ve();function a(b,w){const{gen:E,data:h,it:y}=b;E.if(c(E,h,w,y.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}st.checkReportMissingProp=a;function n({gen:b,data:w,it:{opts:E}},h,y){return(0,e.or)(...h.map(C=>(0,e.and)(c(b,w,C,E.ownProperties),(0,e._)`${y} = ${C}`)))}st.checkMissingProp=n;function s(b,w){b.setParams({missingProperty:w},!0),b.error()}st.reportMissingProp=s;function o(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}st.hasPropFunc=o;function l(b,w,E){return(0,e._)`${o(b)}.call(${w}, ${E})`}st.isOwnProperty=l;function u(b,w,E,h){const y=(0,e._)`${w}${(0,e.getProperty)(E)} !== undefined`;return h?(0,e._)`${y} && ${l(b,w,E)}`:y}st.propertyInData=u;function c(b,w,E,h){const y=(0,e._)`${w}${(0,e.getProperty)(E)} === undefined`;return h?(0,e.or)(y,(0,e.not)(l(b,w,E))):y}st.noPropertyInData=c;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}st.allSchemaProperties=f;function p(b,w){return f(w).filter(E=>!(0,t.alwaysValidSchema)(b,w[E]))}st.schemaProperties=p;function d({schemaCode:b,data:w,it:{gen:E,topSchemaRef:h,schemaPath:y,errorPath:C},it:x},_,S,A){const O=A?(0,e._)`${b}, ${w}, ${h}${y}`:w,F=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,C)],[r.default.parentData,x.parentData],[r.default.parentDataProperty,x.parentDataProperty],[r.default.rootData,r.default.rootData]];x.opts.dynamicRef&&F.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const T=(0,e._)`${O}, ${E.object(...F)}`;return S!==e.nil?(0,e._)`${_}.call(${S}, ${T})`:(0,e._)`${_}(${T})`}st.callValidateCode=d;const m=(0,e._)`new RegExp`;function k({gen:b,it:{opts:w}},E){const h=w.unicodeRegExp?"u":"",{regExp:y}=w.code,C=y(E,h);return b.scopeValue("pattern",{key:C.toString(),ref:C,code:(0,e._)`${y.code==="new RegExp"?m:(0,i.useFunc)(b,y)}(${E}, ${h})`})}st.usePattern=k;function v(b){const{gen:w,data:E,keyword:h,it:y}=b,C=w.name("valid");if(y.allErrors){const _=w.let("valid",!0);return x(()=>w.assign(_,!1)),_}return w.var(C,!0),x(()=>w.break()),C;function x(_){const S=w.const("len",(0,e._)`${E}.length`);w.forRange("i",0,S,A=>{b.subschema({keyword:h,dataProp:A,dataPropType:t.Type.Num},C),w.if((0,e.not)(C),_)})}}st.validateArray=v;function g(b){const{gen:w,schema:E,keyword:h,it:y}=b;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(S=>(0,t.alwaysValidSchema)(y,S))&&!y.opts.unevaluated)return;const x=w.let("valid",!1),_=w.name("_valid");w.block(()=>E.forEach((S,A)=>{const O=b.subschema({keyword:h,schemaProp:A,compositeRule:!0},_);w.assign(x,(0,e._)`${x} || ${_}`),b.mergeValidEvaluated(O,_)||w.if((0,e.not)(x))})),b.result(x,()=>b.reset(),()=>b.error(!0))}return st.validateUnion=g,st}var Sv;function aM(){if(Sv)return _r;Sv=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.validateKeywordUsage=_r.validSchemaType=_r.funcKeywordCode=_r.macroKeywordCode=void 0;const e=Ie(),t=On(),r=Pr(),i=So();function a(p,d){const{gen:m,keyword:k,schema:v,parentSchema:g,it:b}=p,w=d.macro.call(b.self,v,g,b),E=u(m,k,w);b.opts.validateSchema!==!1&&b.self.validateSchema(w,!0);const h=m.name("valid");p.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${b.errSchemaPath}/${k}`,topSchemaRef:E,compositeRule:!0},h),p.pass(h,()=>p.error(!0))}_r.macroKeywordCode=a;function n(p,d){var m;const{gen:k,keyword:v,schema:g,parentSchema:b,$data:w,it:E}=p;l(E,d);const h=!w&&d.compile?d.compile.call(E.self,g,b,E):d.validate,y=u(k,v,h),C=k.let("valid");p.block$data(C,x),p.ok((m=d.valid)!==null&&m!==void 0?m:C);function x(){if(d.errors===!1)A(),d.modifying&&s(p),O(()=>p.error());else{const F=d.async?_():S();d.modifying&&s(p),O(()=>o(p,F))}}function _(){const F=k.let("ruleErrs",null);return k.try(()=>A((0,e._)`await `),T=>k.assign(C,!1).if((0,e._)`${T} instanceof ${E.ValidationError}`,()=>k.assign(F,(0,e._)`${T}.errors`),()=>k.throw(T))),F}function S(){const F=(0,e._)`${y}.errors`;return k.assign(F,null),A(e.nil),F}function A(F=d.async?(0,e._)`await `:e.nil){const T=E.opts.passContext?t.default.this:t.default.self,j=!("compile"in d&&!w||d.schema===!1);k.assign(C,(0,e._)`${F}${(0,r.callValidateCode)(p,y,T,j)}`,d.modifying)}function O(F){var T;k.if((0,e.not)((T=d.valid)!==null&&T!==void 0?T:C),F)}}_r.funcKeywordCode=n;function s(p){const{gen:d,data:m,it:k}=p;d.if(k.parentData,()=>d.assign(m,(0,e._)`${k.parentData}[${k.parentDataProperty}]`))}function o(p,d){const{gen:m}=p;m.if((0,e._)`Array.isArray(${d})`,()=>{m.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)(p)},()=>p.error())}function l({schemaEnv:p},d){if(d.async&&!p.$async)throw new Error("async keyword in sync schema")}function u(p,d,m){if(m===void 0)throw new Error(`keyword "${d}" failed to compile`);return p.scopeValue("keyword",typeof m=="function"?{ref:m}:{ref:m,code:(0,e.stringify)(m)})}function c(p,d,m=!1){return!d.length||d.some(k=>k==="array"?Array.isArray(p):k==="object"?p&&typeof p=="object"&&!Array.isArray(p):typeof p==k||m&&typeof p>"u")}_r.validSchemaType=c;function f({schema:p,opts:d,self:m,errSchemaPath:k},v,g){if(Array.isArray(v.keyword)?!v.keyword.includes(g):v.keyword!==g)throw new Error("ajv implementation error");const b=v.dependencies;if(b!=null&&b.some(w=>!Object.prototype.hasOwnProperty.call(p,w)))throw new Error(`parent schema must have dependencies of ${g}: ${b.join(",")}`);if(v.validateSchema&&!v.validateSchema(p[g])){const E=`keyword "${g}" value is invalid at path "${k}": `+m.errorsText(v.validateSchema.errors);if(d.validateSchema==="log")m.logger.error(E);else throw new Error(E)}}return _r.validateKeywordUsage=f,_r}var un={},Cv;function sM(){if(Cv)return un;Cv=1,Object.defineProperty(un,"__esModule",{value:!0}),un.extendSubschemaMode=un.extendSubschemaData=un.getSubschema=void 0;const e=Ie(),t=Ve();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 p=n.schema[s];return o===void 0?{schema:p,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${s}`}:{schema:p[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')}un.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:p}=s;if(o!==void 0){const{errorPath:m,dataPathArr:k,opts:v}=s,g=p.let("data",(0,e._)`${s.data}${(0,e.getProperty)(o)}`,!0);d(g),n.errorPath=(0,e.str)`${m}${(0,t.getErrorPath)(o,l,v.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${o}`,n.dataPathArr=[...k,n.parentDataProperty]}if(u!==void 0){const m=u instanceof e.Name?u:p.let("data",u,!0);d(m),f!==void 0&&(n.propertyName=f)}c&&(n.dataTypes=c);function d(m){n.data=m,n.dataLevel=s.dataLevel+1,n.dataTypes=[],s.definedProperties=new Set,n.parentData=s.data,n.dataNames=[...s.dataNames,m]}}un.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 un.extendSubschemaMode=a,un}var Ht={},vf,Ev;function Av(){return Ev||(Ev=1,vf=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}),vf}var bf={exports:{}},xv;function oM(){if(xv)return bf.exports;xv=1;var e=bf.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,p){if(s&&typeof s=="object"&&!Array.isArray(s)){a(s,o,l,u,c,f,p);for(var d in s){var m=s[d];if(Array.isArray(m)){if(d in e.arrayKeywords)for(var k=0;k<m.length;k++)t(i,a,n,m[k],o+"/"+d+"/"+k,l,o,d,s,k)}else if(d in e.propsKeywords){if(m&&typeof m=="object")for(var v in m)t(i,a,n,m[v],o+"/"+d+"/"+r(v),l,o,d,s,v)}else(d in e.keywords||i.allKeys&&!(d in e.skipKeywords))&&t(i,a,n,m,o+"/"+d,l,o,d,s)}n(s,o,l,u,c,f,p)}}function r(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}return bf.exports}var Ov;function Eo(){if(Ov)return Ht;Ov=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.getSchemaRefs=Ht.resolveUrl=Ht.normalizeId=Ht._getFullPath=Ht.getFullPath=Ht.inlineRef=void 0;const e=Ve(),t=Av(),r=oM(),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function a(k,v=!0){return typeof k=="boolean"?!0:v===!0?!s(k):v?o(k)<=v:!1}Ht.inlineRef=a;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(k){for(const v in k){if(n.has(v))return!0;const g=k[v];if(Array.isArray(g)&&g.some(s)||typeof g=="object"&&s(g))return!0}return!1}function o(k){let v=0;for(const g in k){if(g==="$ref")return 1/0;if(v++,!i.has(g)&&(typeof k[g]=="object"&&(0,e.eachItem)(k[g],b=>v+=o(b)),v===1/0))return 1/0}return v}function l(k,v="",g){g!==!1&&(v=f(v));const b=k.parse(v);return u(k,b)}Ht.getFullPath=l;function u(k,v){return k.serialize(v).split("#")[0]+"#"}Ht._getFullPath=u;const c=/#\/?$/;function f(k){return k?k.replace(c,""):""}Ht.normalizeId=f;function p(k,v,g){return g=f(g),k.resolve(v,g)}Ht.resolveUrl=p;const d=/^[a-z_][-a-z0-9._]*$/i;function m(k,v){if(typeof k=="boolean")return{};const{schemaId:g,uriResolver:b}=this.opts,w=f(k[g]||v),E={"":w},h=l(b,w,!1),y={},C=new Set;return r(k,{allKeys:!0},(S,A,O,F)=>{if(F===void 0)return;const T=h+A;let j=E[F];typeof S[g]=="string"&&(j=q.call(this,S[g])),J.call(this,S.$anchor),J.call(this,S.$dynamicAnchor),E[A]=j;function q(Y){const X=this.opts.uriResolver.resolve;if(Y=f(j?X(j,Y):Y),C.has(Y))throw _(Y);C.add(Y);let P=this.refs[Y];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?x(S,P.schema,Y):Y!==f(T)&&(Y[0]==="#"?(x(S,y[Y],Y),y[Y]=S):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 x(S,A,O){if(A!==void 0&&!t(S,A))throw _(O)}function _(S){return new Error(`reference "${S}" resolves to more than one schema`)}}return Ht.getSchemaRefs=m,Ht}var _v;function Ao(){if(_v)return on;_v=1,Object.defineProperty(on,"__esModule",{value:!0}),on.getData=on.KeywordCxt=on.validateFunctionCode=void 0;const e=nM(),t=Co(),r=vv(),i=Co(),a=iM(),n=aM(),s=sM(),o=Ie(),l=On(),u=Eo(),c=Ve(),f=So();function p(z){if(h(z)&&(C(z),E(z))){v(z);return}d(z,()=>(0,e.topBoolOrEmptySchema)(z))}on.validateFunctionCode=p;function d({gen:z,validateName:$,schema:W,schemaEnv:K,opts:ie},re){ie.code.es5?z.func($,(0,o._)`${l.default.data}, ${l.default.valCxt}`,K.$async,()=>{z.code((0,o._)`"use strict"; ${b(W,ie)}`),k(z,ie),z.code(re)}):z.func($,(0,o._)`${l.default.data}, ${m(ie)}`,K.$async,()=>z.code(b(W,ie)).code(re))}function m(z){return(0,o._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${z.dynamicRef?(0,o._)`, ${l.default.dynamicAnchors}={}`:o.nil}}={}`}function k(z,$){z.if(l.default.valCxt,()=>{z.var(l.default.instancePath,(0,o._)`${l.default.valCxt}.${l.default.instancePath}`),z.var(l.default.parentData,(0,o._)`${l.default.valCxt}.${l.default.parentData}`),z.var(l.default.parentDataProperty,(0,o._)`${l.default.valCxt}.${l.default.parentDataProperty}`),z.var(l.default.rootData,(0,o._)`${l.default.valCxt}.${l.default.rootData}`),$.dynamicRef&&z.var(l.default.dynamicAnchors,(0,o._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{z.var(l.default.instancePath,(0,o._)`""`),z.var(l.default.parentData,(0,o._)`undefined`),z.var(l.default.parentDataProperty,(0,o._)`undefined`),z.var(l.default.rootData,l.default.data),$.dynamicRef&&z.var(l.default.dynamicAnchors,(0,o._)`{}`)})}function v(z){const{schema:$,opts:W,gen:K}=z;d(z,()=>{W.$comment&&$.$comment&&F(z),S(z),K.let(l.default.vErrors,null),K.let(l.default.errors,0),W.unevaluated&&g(z),x(z),T(z)})}function g(z){const{gen:$,validateName:W}=z;z.evaluated=$.const("evaluated",(0,o._)`${W}.evaluated`),$.if((0,o._)`${z.evaluated}.dynamicProps`,()=>$.assign((0,o._)`${z.evaluated}.props`,(0,o._)`undefined`)),$.if((0,o._)`${z.evaluated}.dynamicItems`,()=>$.assign((0,o._)`${z.evaluated}.items`,(0,o._)`undefined`))}function b(z,$){const W=typeof z=="object"&&z[$.schemaId];return W&&($.code.source||$.code.process)?(0,o._)`/*# sourceURL=${W} */`:o.nil}function w(z,$){if(h(z)&&(C(z),E(z))){y(z,$);return}(0,e.boolOrEmptySchema)(z,$)}function E({schema:z,self:$}){if(typeof z=="boolean")return!z;for(const W in z)if($.RULES.all[W])return!0;return!1}function h(z){return typeof z.schema!="boolean"}function y(z,$){const{schema:W,gen:K,opts:ie}=z;ie.$comment&&W.$comment&&F(z),A(z),O(z);const re=K.const("_errs",l.default.errors);x(z,re),K.var($,(0,o._)`${re} === ${l.default.errors}`)}function C(z){(0,c.checkUnknownRules)(z),_(z)}function x(z,$){if(z.opts.jtd)return q(z,[],!1,$);const W=(0,t.getSchemaTypes)(z.schema),K=(0,t.coerceAndCheckDataType)(z,W);q(z,W,!K,$)}function _(z){const{schema:$,errSchemaPath:W,opts:K,self:ie}=z;$.$ref&&K.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)($,ie.RULES)&&ie.logger.warn(`$ref: keywords ignored in schema at path "${W}"`)}function S(z){const{schema:$,opts:W}=z;$.default!==void 0&&W.useDefaults&&W.strictSchema&&(0,c.checkStrictMode)(z,"default is ignored in the schema root")}function A(z){const $=z.schema[z.opts.schemaId];$&&(z.baseId=(0,u.resolveUrl)(z.opts.uriResolver,z.baseId,$))}function O(z){if(z.schema.$async&&!z.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:z,schemaEnv:$,schema:W,errSchemaPath:K,opts:ie}){const re=W.$comment;if(ie.$comment===!0)z.code((0,o._)`${l.default.self}.logger.log(${re})`);else if(typeof ie.$comment=="function"){const ue=(0,o.str)`${K}/$comment`,ye=z.scopeValue("root",{ref:$.root});z.code((0,o._)`${l.default.self}.opts.$comment(${re}, ${ue}, ${ye}.schema)`)}}function T(z){const{gen:$,schemaEnv:W,validateName:K,ValidationError:ie,opts:re}=z;W.$async?$.if((0,o._)`${l.default.errors} === 0`,()=>$.return(l.default.data),()=>$.throw((0,o._)`new ${ie}(${l.default.vErrors})`)):($.assign((0,o._)`${K}.errors`,l.default.vErrors),re.unevaluated&&j(z),$.return((0,o._)`${l.default.errors} === 0`))}function j({gen:z,evaluated:$,props:W,items:K}){W instanceof o.Name&&z.assign((0,o._)`${$}.props`,W),K instanceof o.Name&&z.assign((0,o._)`${$}.items`,K)}function q(z,$,W,K){const{gen:ie,schema:re,data:ue,allErrors:ye,opts:Se,self:ke}=z,{RULES:Pe}=ke;if(re.$ref&&(Se.ignoreKeywordsWithRef||!(0,c.schemaHasRulesButRef)(re,Pe))){ie.block(()=>R(z,"$ref",Pe.all.$ref.definition));return}Se.jtd||Y(z,$),ie.block(()=>{for(const Ke of Pe.rules)de(Ke);de(Pe.post)});function de(Ke){(0,r.shouldUseGroup)(re,Ke)&&(Ke.type?(ie.if((0,i.checkDataType)(Ke.type,ue,Se.strictNumbers)),J(z,Ke),$.length===1&&$[0]===Ke.type&&W&&(ie.else(),(0,i.reportTypeError)(z)),ie.endIf()):J(z,Ke),ye||ie.if((0,o._)`${l.default.errors} === ${K||0}`))}}function J(z,$){const{gen:W,schema:K,opts:{useDefaults:ie}}=z;ie&&(0,a.assignDefaults)(z,$.type),W.block(()=>{for(const re of $.rules)(0,r.shouldUseRule)(K,re)&&R(z,re.keyword,re.definition,$.type)})}function Y(z,$){z.schemaEnv.meta||!z.opts.strictTypes||(X(z,$),z.opts.allowUnionTypes||P(z,$),M(z,z.dataTypes))}function X(z,$){if($.length){if(!z.dataTypes.length){z.dataTypes=$;return}$.forEach(W=>{I(z.dataTypes,W)||L(z,`type "${W}" not allowed by context "${z.dataTypes.join(",")}"`)}),D(z,$)}}function P(z,$){$.length>1&&!($.length===2&&$.includes("null"))&&L(z,"use allowUnionTypes to allow union type keyword")}function M(z,$){const W=z.self.RULES.all;for(const K in W){const ie=W[K];if(typeof ie=="object"&&(0,r.shouldUseRule)(z.schema,ie)){const{type:re}=ie.definition;re.length&&!re.some(ue=>U($,ue))&&L(z,`missing type "${re.join(",")}" for keyword "${K}"`)}}}function U(z,$){return z.includes($)||$==="number"&&z.includes("integer")}function I(z,$){return z.includes($)||$==="integer"&&z.includes("number")}function D(z,$){const W=[];for(const K of z.dataTypes)I($,K)?W.push(K):$.includes("integer")&&K==="number"&&W.push("integer");z.dataTypes=W}function L(z,$){const W=z.schemaEnv.baseId+z.errSchemaPath;$+=` at "${W}" (strictTypes)`,(0,c.checkStrictMode)(z,$,z.opts.strictTypes)}class B{constructor($,W,K){if((0,n.validateKeywordUsage)($,W,K),this.gen=$.gen,this.allErrors=$.allErrors,this.keyword=K,this.data=$.data,this.schema=$.schema[K],this.$data=W.$data&&$.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)($,this.schema,K,this.$data),this.schemaType=W.schemaType,this.parentSchema=$.schema,this.params={},this.it=$,this.def=W,this.$data)this.schemaCode=$.gen.const("vSchema",Z(this.$data,$));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=$.gen.const("_errs",l.default.errors))}result($,W,K){this.failResult((0,o.not)($),W,K)}failResult($,W,K){this.gen.if($),K?K():this.error(),W?(this.gen.else(),W(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass($,W){this.failResult((0,o.not)($),void 0,W)}fail($){if($===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if($),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data($){if(!this.$data)return this.fail($);const{schemaCode:W}=this;this.fail((0,o._)`${W} !== undefined && (${(0,o.or)(this.invalid$data(),$)})`)}error($,W,K){if(W){this.setParams(W),this._error($,K),this.setParams({});return}this._error($,K)}_error($,W){($?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($){this.allErrors||this.gen.if($)}setParams($,W){W?Object.assign(this.params,$):this.params=$}block$data($,W,K=o.nil){this.gen.block(()=>{this.check$data($,K),W()})}check$data($=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)),$!==o.nil&&K.assign($,!0),(re.length||ue.validateSchema)&&(K.elseIf(this.invalid$data()),this.$dataError(),$!==o.nil&&K.assign($,!1)),K.else()}invalid$data(){const{gen:$,schemaCode:W,schemaType:K,def:ie,it:re}=this;return(0,o.or)(ue(),ye());function ue(){if(K.length){if(!(W instanceof o.Name))throw new Error("ajv implementation error");const Se=Array.isArray(K)?K:[K];return(0,o._)`${(0,i.checkDataTypes)(Se,W,re.opts.strictNumbers,i.DataType.Wrong)}`}return o.nil}function ye(){if(ie.validateSchema){const Se=$.scopeValue("validate$data",{ref:ie.validateSchema});return(0,o._)`!${Se}(${W})`}return o.nil}}subschema($,W){const K=(0,s.getSubschema)(this.it,$);(0,s.extendSubschemaData)(K,this.it,$),(0,s.extendSubschemaMode)(K,$);const ie={...this.it,...K,items:void 0,props:void 0};return w(ie,W),ie}mergeEvaluated($,W){const{it:K,gen:ie}=this;K.opts.unevaluated&&(K.props!==!0&&$.props!==void 0&&(K.props=c.mergeEvaluated.props(ie,$.props,K.props,W)),K.items!==!0&&$.items!==void 0&&(K.items=c.mergeEvaluated.items(ie,$.items,K.items,W)))}mergeValidEvaluated($,W){const{it:K,gen:ie}=this;if(K.opts.unevaluated&&(K.props!==!0||K.items!==!0))return ie.if(W,()=>this.mergeEvaluated($,o.Name)),!0}}on.KeywordCxt=B;function R(z,$,W,K){const ie=new B(z,W,$);"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 Z(z,{dataLevel:$,dataNames:W,dataPathArr:K}){let ie,re;if(z==="")return l.default.rootData;if(z[0]==="/"){if(!H.test(z))throw new Error(`Invalid JSON-pointer: ${z}`);ie=z,re=l.default.rootData}else{const ke=G.exec(z);if(!ke)throw new Error(`Invalid JSON-pointer: ${z}`);const Pe=+ke[1];if(ie=ke[2],ie==="#"){if(Pe>=$)throw new Error(Se("property/index",Pe));return K[$-Pe]}if(Pe>$)throw new Error(Se("data",Pe));if(re=W[$-Pe],!ie)return re}let ue=re;const ye=ie.split("/");for(const ke of ye)ke&&(re=(0,o._)`${re}${(0,o.getProperty)((0,c.unescapeJsonPointer)(ke))}`,ue=(0,o._)`${ue} && ${re}`);return ue;function Se(ke,Pe){return`Cannot access ${ke} ${Pe} levels up, current level is ${$}`}}return on.getData=Z,on}var xo={},Pv;function kf(){if(Pv)return xo;Pv=1,Object.defineProperty(xo,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return xo.default=e,xo}var Oo={},Iv;function _o(){if(Iv)return Oo;Iv=1,Object.defineProperty(Oo,"__esModule",{value:!0});const e=Eo();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 Oo.default=t,Oo}var nr={},Tv;function wf(){if(Tv)return nr;Tv=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.resolveSchema=nr.getCompilingSchema=nr.resolveRef=nr.compileSchema=nr.SchemaEnv=void 0;const e=Ie(),t=kf(),r=On(),i=Eo(),a=Ve(),n=Ao();class s{constructor(g){var b;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=(b=g.baseId)!==null&&b!==void 0?b:(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={}}}nr.SchemaEnv=s;function o(v){const g=c.call(this,v);if(g)return g;const b=(0,i.getFullPath)(this.opts.uriResolver,v.root.baseId),{es5:w,lines:E}=this.opts.code,{ownProperties:h}=this.opts,y=new e.CodeGen(this.scope,{es5:w,lines:E,ownProperties:h});let C;v.$async&&(C=y.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const x=y.scopeName("validate");v.validateName=x;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:v.schema,code:(0,e.stringify)(v.schema)}:{ref:v.schema}),validateName:x,ValidationError:C,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 S;try{this._compilations.add(v),(0,n.validateFunctionCode)(_),y.optimize(this.opts.code.optimize);const A=y.toString();S=`${y.scopeRefs(r.default.scope)}return ${A}`,this.opts.code.process&&(S=this.opts.code.process(S,v));const F=new Function(`${r.default.self}`,`${r.default.scope}`,S)(this,this.scope.get());if(this.scope.value(x,{ref:F}),F.errors=null,F.schema=v.schema,F.schemaEnv=v,v.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:x,validateCode:A,scopeValues:y._values}),this.opts.unevaluated){const{props:T,items:j}=_;F.evaluated={props:T instanceof e.Name?void 0:T,items:j instanceof e.Name?void 0:j,dynamicProps:T instanceof e.Name,dynamicItems:j instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return v.validate=F,v}catch(A){throw delete v.validate,delete v.validateName,S&&this.logger.error("Error compiling schema, function code:",S),A}finally{this._compilations.delete(v)}}nr.compileSchema=o;function l(v,g,b){var w;b=(0,i.resolveUrl)(this.opts.uriResolver,g,b);const E=v.refs[b];if(E)return E;let h=p.call(this,v,b);if(h===void 0){const y=(w=v.localRefs)===null||w===void 0?void 0:w[b],{schemaId:C}=this.opts;y&&(h=new s({schema:y,schemaId:C,root:v,baseId:g}))}if(h!==void 0)return v.refs[b]=u.call(this,h)}nr.resolveRef=l;function u(v){return(0,i.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:o.call(this,v)}function c(v){for(const g of this._compilations)if(f(g,v))return g}nr.getCompilingSchema=c;function f(v,g){return v.schema===g.schema&&v.root===g.root&&v.baseId===g.baseId}function p(v,g){let b;for(;typeof(b=this.refs[g])=="string";)g=b;return b||this.schemas[g]||d.call(this,v,g)}function d(v,g){const b=this.opts.uriResolver.parse(g),w=(0,i._getFullPath)(this.opts.uriResolver,b);let E=(0,i.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&w===E)return k.call(this,b,v);const h=(0,i.normalizeId)(w),y=this.refs[h]||this.schemas[h];if(typeof y=="string"){const C=d.call(this,v,y);return typeof(C==null?void 0:C.schema)!="object"?void 0:k.call(this,b,C)}if(typeof(y==null?void 0:y.schema)=="object"){if(y.validate||o.call(this,y),h===(0,i.normalizeId)(g)){const{schema:C}=y,{schemaId:x}=this.opts,_=C[x];return _&&(E=(0,i.resolveUrl)(this.opts.uriResolver,E,_)),new s({schema:C,schemaId:x,root:v,baseId:E})}return k.call(this,b,y)}}nr.resolveSchema=d;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k(v,{baseId:g,schema:b,root:w}){var E;if(((E=v.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const C of v.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const x=b[(0,a.unescapeFragment)(C)];if(x===void 0)return;b=x;const _=typeof b=="object"&&b[this.opts.schemaId];!m.has(C)&&_&&(g=(0,i.resolveUrl)(this.opts.uriResolver,g,_))}let h;if(typeof b!="boolean"&&b.$ref&&!(0,a.schemaHasRulesButRef)(b,this.RULES)){const C=(0,i.resolveUrl)(this.opts.uriResolver,g,b.$ref);h=d.call(this,w,C)}const{schemaId:y}=this.opts;if(h=h||new s({schema:b,schemaId:y,root:w,baseId:g}),h.schema!==h.root.schema)return h}return nr}const lM={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var Po={},as={exports:{}},Sf,Nv;function Fv(){if(Nv)return Sf;Nv=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="",C=0,x=0;for(x=0;x<h.length;x++)if(C=h[x].charCodeAt(0),C!==48){if(!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";y+=h[x];break}for(x+=1;x<h.length;x++){if(C=h[x].charCodeAt(0),!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";y+=h[x]}return y}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(h){return h.length=0,!0}function l(h,y,C){if(h.length){const x=n(h);if(x!=="")y.push(x);else return C.error=!0,!1;h.length=0}return!0}function u(h){let y=0;const C={error:!1,address:"",zone:""},x=[],_=[];let S=!1,A=!1,O=l;for(let F=0;F<h.length;F++){const T=h[F];if(!(T==="["||T==="]"))if(T===":"){if(S===!0&&(A=!0),!O(_,x,C))break;if(++y>7){C.error=!0;break}F>0&&h[F-1]===":"&&(S=!0),x.push(":");continue}else if(T==="%"){if(!O(_,x,C))break;O=o}else{_.push(T);continue}}return _.length&&(O===o?C.zone=_.join(""):A?x.push(_.join("")):x.push(n(_))),C.address=x.join(""),C}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 C=y.address,x=y.address;return y.zone&&(C+="%"+y.zone,x+="%25"+y.zone),{host:C,isIPV6:!0,escapedHost:x}}}function f(h,y){let C=0;for(let x=0;x<h.length;x++)h[x]===y&&C++;return C}function p(h){let y=h;const C=[];let x=-1,_=0;for(;_=y.length;){if(_===1){if(y===".")break;if(y==="/"){C.push("/");break}else{C.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]==="/")){C.push("/");break}}else if(_===3&&y==="/.."){C.length!==0&&C.pop(),C.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),C.length!==0&&C.pop();continue}}if((x=y.indexOf("/",1))===-1){C.push(y);break}else C.push(y.slice(0,x)),y=y.slice(x)}return C.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},m=/[@/?#:]/g,k=/[@/?#]/g;function v(h,y){const C=y?k:m;return C.lastIndex=0,h.replace(C,x=>d[x])}function g(h,y=!1){if(h.indexOf("%")===-1)return h;let C="";for(let x=0;x<h.length;x++){if(h[x]==="%"&&x+2<h.length){const _=h.slice(x+1,x+3);if(r(_)){const S=_.toUpperCase(),A=String.fromCharCode(parseInt(S,16));y&&i(A)?C+=A:C+="%"+S,x+=2;continue}}C+=h[x]}return C}function b(h){let y="";for(let C=0;C<h.length;C++){if(h[C]==="%"&&C+2<h.length){const x=h.slice(C+1,C+3);if(r(x)){const _=x.toUpperCase(),S=String.fromCharCode(parseInt(_,16));S!=="."&&i(S)?y+=S:y+="%"+_,C+=2;continue}}a(h[C])?y+=h[C]:y+=escape(h[C])}return y}function w(h){let y="";for(let C=0;C<h.length;C++){if(h[C]==="%"&&C+2<h.length){const x=h.slice(C+1,C+3);if(r(x)){y+="%"+x.toUpperCase(),C+=2;continue}}y+=escape(h[C])}return y}function E(h){const y=[];if(h.userinfo!==void 0&&(y.push(h.userinfo),y.push("@")),h.host!==void 0){let C=unescape(h.host);if(!t(C)){const x=c(C);x.isIPV6===!0?C=`[${x.escapedHost}]`:C=v(C,!1)}y.push(C)}return(typeof h.port=="number"||typeof h.port=="string")&&(y.push(":"),y.push(String(h.port))),y.length?y.join(""):void 0}return Sf={nonSimpleDomain:s,recomposeAuthority:E,reescapeHostDelimiters:v,normalizePercentEncoding:g,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:p,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:n},Sf}var Cf,Dv;function uM(){if(Dv)return Cf;Dv=1;const{isUUID:e}=Fv(),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,C]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=C,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 C=h.path.match(t);if(C){const x=y.scheme||h.scheme||"urn";h.nid=C[1].toLowerCase(),h.nss=C[2];const _=`${x}:${y.nid||h.nid}`,S=E(_);h.path=void 0,S&&(h=S.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 C=y.scheme||h.scheme||"urn",x=h.nid.toLowerCase(),_=`${C}:${y.nid||x}`,S=E(_);S&&(h=S.serialize(h,y));const A=h,O=h.nss;return A.path=`${x||y.nid}:${O}`,y.skipEscape=!0,A}function f(h,y){const C=h;return C.uuid=C.nss,C.nss=void 0,!y.tolerant&&(!C.uuid||!e(C.uuid))&&(C.error=C.error||"UUID is not valid."),C}function p(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},m={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,serialize:l},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:m,ws:k,wss:v,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:p,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return Cf={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:E},Cf}var Mv;function cM(){if(Mv)return as.exports;Mv=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,escapePreservingEscapes:n,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:l}=Fv(),{SCHEMES:u,getSchemeHandler:c}=uM();function f(x,_){return typeof x=="string"?x=E(x,_):typeof x=="object"&&(x=w(k(x,_),_)),x}function p(x,_,S){const A=S?Object.assign({scheme:"null"},S):{scheme:"null"},O=d(w(x,A),w(_,A),A,!0);return A.skipEscape=!0,k(O,A)}function d(x,_,S,A){const O={};return A||(x=w(k(x,S),S),_=w(k(_,S),S)),S=S||{},!S.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):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?O.path="/"+_.path:x.path?O.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+_.path:O.path=_.path,O.path=t(O.path)),O.query=_.query):(O.path=x.path,_.query!==void 0?O.query=_.query:O.query=x.query),O.userinfo=x.userinfo,O.host=x.host,O.port=x.port),O.scheme=x.scheme),O.fragment=_.fragment,O}function m(x,_,S){const A=y(x,S),O=y(_,S);return A!==void 0&&O!==void 0&&A.toLowerCase()===O.toLowerCase()}function k(x,_){const S={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:""},A=Object.assign({},_),O=[],F=c(A.scheme||S.scheme);F&&F.serialize&&F.serialize(S,A),S.path!==void 0&&(A.skipEscape?S.path=i(S.path):(S.path=n(S.path),S.scheme!==void 0&&(S.path=S.path.split("%3A").join(":")))),A.reference!=="suffix"&&S.scheme&&O.push(S.scheme,":");const T=r(S);if(T!==void 0&&(A.reference!=="suffix"&&O.push("//"),O.push(T),S.path&&S.path[0]!=="/"&&O.push("/")),S.path!==void 0){let j=S.path;!A.absolutePath&&(!F||!F.absolutePath)&&(j=t(j)),T===void 0&&j[0]==="/"&&j[1]==="/"&&(j="/%2F"+j.slice(2)),O.push(j)}return S.query!==void 0&&O.push("?",S.query),S.fragment!==void 0&&O.push("#",S.fragment),O.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(x,_){if(_[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 b(x,_){const S=Object.assign({},_),A={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let O=!1,F=!1;S.reference==="suffix"&&(S.scheme?x=S.scheme+":"+x:x="//"+x);const T=x.match(v);if(T){A.scheme=T[1],A.userinfo=T[3],A.host=T[4],A.port=parseInt(T[5],10),A.path=T[6]||"",A.query=T[7],A.fragment=T[8],isNaN(A.port)&&(A.port=T[5]);const j=g(A,T);if(j!==void 0&&(A.error=A.error||j,O=!0),A.host)if(o(A.host)===!1){const Y=e(A.host);A.host=Y.host.toLowerCase(),F=Y.isIPV6}else F=!0;A.scheme===void 0&&A.userinfo===void 0&&A.host===void 0&&A.port===void 0&&A.query===void 0&&!A.path?A.reference="same-document":A.scheme===void 0?A.reference="relative":A.fragment===void 0?A.reference="absolute":A.reference="uri",S.reference&&S.reference!=="suffix"&&S.reference!==A.reference&&(A.error=A.error||"URI is not a "+S.reference+" reference.");const q=c(S.scheme||A.scheme);if(!S.unicodeSupport&&(!q||!q.unicodeSupport)&&A.host&&(S.domainHost||q&&q.domainHost)&&F===!1&&l(A.host))try{A.host=URL.domainToASCII(A.host.toLowerCase())}catch(J){A.error=A.error||"Host's domain name can not be converted to ASCII: "+J}if((!q||q&&!q.skipNormalize)&&(x.indexOf("%")!==-1&&(A.scheme!==void 0&&(A.scheme=unescape(A.scheme)),A.host!==void 0&&(A.host=s(unescape(A.host),F))),A.path&&(A.path=a(A.path)),A.fragment))try{A.fragment=encodeURI(decodeURIComponent(A.fragment))}catch{A.error=A.error||"URI malformed"}q&&q.parse&&q.parse(A,S)}else A.error=A.error||"URI can not be parsed.";return{parsed:A,malformedAuthorityOrPort:O}}function w(x,_){return b(x,_).parsed}function E(x,_){return h(x,_).normalized}function h(x,_){const{parsed:S,malformedAuthorityOrPort:A}=b(x,_);return{normalized:A?x:k(S,_),malformedAuthorityOrPort:A}}function y(x,_){if(typeof x=="string"){const{normalized:S,malformedAuthorityOrPort:A}=h(x,_);return A?void 0:S}if(typeof x=="object")return k(x,_)}const C={SCHEMES:u,normalize:f,resolve:p,resolveComponent:d,equal:m,serialize:k,parse:w};return as.exports=C,as.exports.default=C,as.exports.fastUri=C,as.exports}var jv;function fM(){if(jv)return Po;jv=1,Object.defineProperty(Po,"__esModule",{value:!0});const e=cM();return e.code='require("ajv/dist/runtime/uri").default',Po.default=e,Po}var Lv;function dM(){return Lv||(Lv=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=Ao();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ie();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=kf(),a=_o(),n=gv(),s=wf(),o=Ie(),l=Eo(),u=Co(),c=Ve(),f=lM,p=fM(),d=(P,M)=>new RegExp(P,M);d.code="new RegExp";const m=["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."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=200;function w(P){var M,U,I,D,L,B,R,H,G,Z,z,$,W,K,ie,re,ue,ye,Se,ke,Pe,de,Ke,ut,ve;const Q=P.strict,ee=(M=P.code)===null||M===void 0?void 0:M.optimize,te=ee===!0||ee===void 0?1:ee||0,he=(I=(U=P.code)===null||U===void 0?void 0:U.regExp)!==null&&I!==void 0?I:d,ce=(D=P.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(B=(L=P.strictSchema)!==null&&L!==void 0?L:Q)!==null&&B!==void 0?B:!0,strictNumbers:(H=(R=P.strictNumbers)!==null&&R!==void 0?R:Q)!==null&&H!==void 0?H:!0,strictTypes:(Z=(G=P.strictTypes)!==null&&G!==void 0?G:Q)!==null&&Z!==void 0?Z:"log",strictTuples:($=(z=P.strictTuples)!==null&&z!==void 0?z:Q)!==null&&$!==void 0?$:"log",strictRequired:(K=(W=P.strictRequired)!==null&&W!==void 0?W:Q)!==null&&K!==void 0?K:!1,code:P.code?{...P.code,optimize:te,regExp:he}:{optimize:te,regExp:he},loopRequired:(ie=P.loopRequired)!==null&&ie!==void 0?ie:b,loopEnum:(re=P.loopEnum)!==null&&re!==void 0?re:b,meta:(ue=P.meta)!==null&&ue!==void 0?ue:!0,messages:(ye=P.messages)!==null&&ye!==void 0?ye:!0,inlineRefs:(Se=P.inlineRefs)!==null&&Se!==void 0?Se:!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:(Ke=P.validateFormats)!==null&&Ke!==void 0?Ke:!0,unicodeRegExp:(ut=P.unicodeRegExp)!==null&&ut!==void 0?ut:!0,int32range:(ve=P.int32range)!==null&&ve!==void 0?ve:!0,uriResolver:ce}}class E{constructor(M={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,M=this.opts={...M,...w(M)};const{es5:U,lines:I}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:k,es5:U,lines:I}),this.logger=O(M.logger);const D=M.validateFormats;M.validateFormats=!1,this.RULES=(0,n.getRules)(),h.call(this,v,M,"NOT SUPPORTED"),h.call(this,g,M,"DEPRECATED","warn"),this._metaOpts=S.call(this),M.formats&&x.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&_.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),C.call(this),M.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:U,schemaId:I}=this.opts;let D=f;I==="id"&&(D={...f},D.id=D.$id,delete D.$id),U&&M&&this.addMetaSchema(D,D[I],!1)}defaultMeta(){const{meta:M,schemaId:U}=this.opts;return this.opts.defaultMeta=typeof M=="object"?M[U]||M:void 0}validate(M,U){let I;if(typeof M=="string"){if(I=this.getSchema(M),!I)throw new Error(`no schema with key or ref "${M}"`)}else I=this.compile(M);const D=I(U);return"$async"in I||(this.errors=I.errors),D}compile(M,U){const I=this._addSchema(M,U);return I.validate||this._compileSchemaEnv(I)}compileAsync(M,U){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:I}=this.opts;return D.call(this,M,U);async function D(Z,z){await L.call(this,Z.$schema);const $=this._addSchema(Z,z);return $.validate||B.call(this,$)}async function L(Z){Z&&!this.getSchema(Z)&&await D.call(this,{$ref:Z},!0)}async function B(Z){try{return this._compileSchemaEnv(Z)}catch(z){if(!(z instanceof a.default))throw z;return R.call(this,z),await H.call(this,z.missingSchema),B.call(this,Z)}}function R({missingSchema:Z,missingRef:z}){if(this.refs[Z])throw new Error(`AnySchema ${Z} is loaded but ${z} cannot be resolved`)}async function H(Z){const z=await G.call(this,Z);this.refs[Z]||await L.call(this,z.$schema),this.refs[Z]||this.addSchema(z,Z,U)}async function G(Z){const z=this._loading[Z];if(z)return z;try{return await(this._loading[Z]=I(Z))}finally{delete this._loading[Z]}}}addSchema(M,U,I,D=this.opts.validateSchema){if(Array.isArray(M)){for(const B of M)this.addSchema(B,void 0,I,D);return this}let L;if(typeof M=="object"){const{schemaId:B}=this.opts;if(L=M[B],L!==void 0&&typeof L!="string")throw new Error(`schema ${B} must be string`)}return U=(0,l.normalizeId)(U||L),this._checkUnique(U),this.schemas[U]=this._addSchema(M,I,U,D,!0),this}addMetaSchema(M,U,I=this.opts.validateSchema){return this.addSchema(M,U,!0,I),this}validateSchema(M,U){if(typeof M=="boolean")return!0;let I;if(I=M.$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 D=this.validate(I,M);if(!D&&U){const L="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(L);else throw new Error(L)}return D}getSchema(M){let U;for(;typeof(U=y.call(this,M))=="string";)M=U;if(U===void 0){const{schemaId:I}=this.opts,D=new s.SchemaEnv({schema:{},schemaId:I});if(U=s.resolveSchema.call(this,D,M),!U)return;this.refs[M]=U}return U.validate||this._compileSchemaEnv(U)}removeSchema(M){if(M instanceof RegExp)return this._removeAllSchemas(this.schemas,M),this._removeAllSchemas(this.refs,M),this;switch(typeof M){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const U=y.call(this,M);return typeof U=="object"&&this._cache.delete(U.schema),delete this.schemas[M],delete this.refs[M],this}case"object":{const U=M;this._cache.delete(U);let I=M[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(M){for(const U of M)this.addKeyword(U);return this}addKeyword(M,U){let I;if(typeof M=="string")I=M,typeof U=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),U.keyword=I);else if(typeof M=="object"&&U===void 0){if(U=M,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,L=>j.call(this,L)),this;J.call(this,U);const D={...U,type:(0,u.getJSONTypes)(U.type),schemaType:(0,u.getJSONTypes)(U.schemaType)};return(0,c.eachItem)(I,D.type.length===0?L=>j.call(this,L,D):L=>D.type.forEach(B=>j.call(this,L,D,B))),this}getKeyword(M){const U=this.RULES.all[M];return typeof U=="object"?U.definition:!!U}removeKeyword(M){const{RULES:U}=this;delete U.keywords[M],delete U.all[M];for(const I of U.rules){const D=I.rules.findIndex(L=>L.keyword===M);D>=0&&I.rules.splice(D,1)}return this}addFormat(M,U){return typeof U=="string"&&(U=new RegExp(U)),this.formats[M]=U,this}errorsText(M=this.errors,{separator:U=", ",dataVar:I="data"}={}){return!M||M.length===0?"No errors":M.map(D=>`${I}${D.instancePath} ${D.message}`).reduce((D,L)=>D+U+L)}$dataMetaSchema(M,U){const I=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const D of U){const L=D.split("/").slice(1);let B=M;for(const R of L)B=B[R];for(const R in I){const H=I[R];if(typeof H!="object")continue;const{$data:G}=H.definition,Z=B[R];G&&Z&&(B[R]=X(Z))}}return M}_removeAllSchemas(M,U){for(const I in M){const D=M[I];(!U||U.test(I))&&(typeof D=="string"?delete M[I]:D&&!D.meta&&(this._cache.delete(D.schema),delete M[I]))}}_addSchema(M,U,I,D=this.opts.validateSchema,L=this.opts.addUsedSchema){let B;const{schemaId:R}=this.opts;if(typeof M=="object")B=M[R];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof M!="boolean")throw new Error("schema must be object or boolean")}let H=this._cache.get(M);if(H!==void 0)return H;I=(0,l.normalizeId)(B||I);const G=l.getSchemaRefs.call(this,M,I);return H=new s.SchemaEnv({schema:M,schemaId:R,meta:U,baseId:I,localRefs:G}),this._cache.set(H.schema,H),L&&!I.startsWith("#")&&(I&&this._checkUnique(I),this.refs[I]=H),D&&this.validateSchema(M,!0),H}_checkUnique(M){if(this.schemas[M]||this.refs[M])throw new Error(`schema with key or id "${M}" already exists`)}_compileSchemaEnv(M){if(M.meta?this._compileMetaSchema(M):s.compileSchema.call(this,M),!M.validate)throw new Error("ajv implementation error");return M.validate}_compileMetaSchema(M){const U=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,M)}finally{this.opts=U}}}E.ValidationError=i.default,E.MissingRefError=a.default,e.default=E;function h(P,M,U,I="error"){for(const D in P){const L=D;L in M&&this.logger[I](`${U}: option ${D}. ${P[L]}`)}}function y(P){return P=(0,l.normalizeId)(P),this.schemas[P]||this.refs[P]}function C(){const P=this.opts.schemas;if(P)if(Array.isArray(P))this.addSchema(P);else for(const M in P)this.addSchema(P[M],M)}function x(){for(const P in this.opts.formats){const M=this.opts.formats[P];M&&this.addFormat(P,M)}}function _(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in P){const U=P[M];U.keyword||(U.keyword=M),this.addKeyword(U)}}function S(){const P={...this.opts};for(const M of m)delete P[M];return P}const A={log(){},warn(){},error(){}};function O(P){if(P===!1)return A;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 F=/^[a-z_$][a-z0-9_$:-]*$/i;function T(P,M){const{RULES:U}=this;if((0,c.eachItem)(P,I=>{if(U.keywords[I])throw new Error(`Keyword ${I} is already defined`);if(!F.test(I))throw new Error(`Keyword ${I} has invalid name`)}),!!M&&M.$data&&!("code"in M||"validate"in M))throw new Error('$data keyword must have "code" or "validate" function')}function j(P,M,U){var I;const D=M==null?void 0:M.post;if(U&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:L}=this;let B=D?L.post:L.rules.find(({type:H})=>H===U);if(B||(B={type:U,rules:[]},L.rules.push(B)),L.keywords[P]=!0,!M)return;const R={keyword:P,definition:{...M,type:(0,u.getJSONTypes)(M.type),schemaType:(0,u.getJSONTypes)(M.schemaType)}};M.before?q.call(this,B,R,M.before):B.rules.push(R),L.all[P]=R,(I=M.implements)===null||I===void 0||I.forEach(H=>this.addKeyword(H))}function q(P,M,U){const I=P.rules.findIndex(D=>D.keyword===U);I>=0?P.rules.splice(I,0,M):(P.rules.push(M),this.logger.warn(`rule ${U} is not defined`))}function J(P){let{metaSchema:M}=P;M!==void 0&&(P.$data&&this.opts.$data&&(M=X(M)),P.validateSchema=this.compile(M,!0))}const Y={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function X(P){return{anyOf:[P,Y]}}})(pf)),pf}var Io={},To={},No={},qv;function pM(){if(qv)return No;qv=1,Object.defineProperty(No,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return No.default=e,No}var _n={},$v;function mM(){if($v)return _n;$v=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.callRef=_n.getValidate=void 0;const e=_o(),t=Pr(),r=Ie(),i=On(),a=wf(),n=Ve(),s={keyword:"$ref",schemaType:"string",code(u){const{gen:c,schema:f,it:p}=u,{baseId:d,schemaEnv:m,validateName:k,opts:v,self:g}=p,{root:b}=m;if((f==="#"||f==="#/")&&d===b.baseId)return E();const w=a.resolveRef.call(g,b,d,f);if(w===void 0)throw new e.default(p.opts.uriResolver,d,f);if(w instanceof a.SchemaEnv)return h(w);return y(w);function E(){if(m===b)return l(u,k,m,m.$async);const C=c.scopeValue("root",{ref:b});return l(u,(0,r._)`${C}.validate`,b,b.$async)}function h(C){const x=o(u,C);l(u,x,C,C.$async)}function y(C){const x=c.scopeValue("schema",v.code.source===!0?{ref:C,code:(0,r.stringify)(C)}:{ref:C}),_=c.name("valid"),S=u.subschema({schema:C,dataTypes:[],schemaPath:r.nil,topSchemaRef:x,errSchemaPath:f},_);u.mergeEvaluated(S),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`}_n.getValidate=o;function l(u,c,f,p){const{gen:d,it:m}=u,{allErrors:k,schemaEnv:v,opts:g}=m,b=g.passContext?i.default.this:r.nil;p?w():E();function w(){if(!v.$async)throw new Error("async schema referenced by sync schema");const C=d.let("valid");d.try(()=>{d.code((0,r._)`await ${(0,t.callValidateCode)(u,c,b)}`),y(c),k||d.assign(C,!0)},x=>{d.if((0,r._)`!(${x} instanceof ${m.ValidationError})`,()=>d.throw(x)),h(x),k||d.assign(C,!1)}),u.ok(C)}function E(){u.result((0,t.callValidateCode)(u,c,b),()=>y(c),()=>h(c))}function h(C){const x=(0,r._)`${C}.errors`;d.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${x} : ${i.default.vErrors}.concat(${x})`),d.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function y(C){var x;if(!m.opts.unevaluated)return;const _=(x=f==null?void 0:f.validate)===null||x===void 0?void 0:x.evaluated;if(m.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(m.props=n.mergeEvaluated.props(d,_.props,m.props));else{const S=d.var("props",(0,r._)`${C}.evaluated.props`);m.props=n.mergeEvaluated.props(d,S,m.props,r.Name)}if(m.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(m.items=n.mergeEvaluated.items(d,_.items,m.items));else{const S=d.var("items",(0,r._)`${C}.evaluated.items`);m.items=n.mergeEvaluated.items(d,S,m.items,r.Name)}}}return _n.callRef=l,_n.default=s,_n}var zv;function hM(){if(zv)return To;zv=1,Object.defineProperty(To,"__esModule",{value:!0});const e=pM(),t=mM(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return To.default=r,To}var Fo={},Do={},Rv;function gM(){if(Rv)return Do;Rv=1,Object.defineProperty(Do,"__esModule",{value:!0});const e=Ie(),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 Do.default=a,Do}var Mo={},Bv;function yM(){if(Bv)return Mo;Bv=1,Object.defineProperty(Mo,"__esModule",{value:!0});const e=Ie(),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 Mo.default=r,Mo}var jo={},Lo={},Uv;function vM(){if(Uv)return Lo;Uv=1,Object.defineProperty(Lo,"__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 Lo.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Lo}var Vv;function bM(){if(Vv)return jo;Vv=1,Object.defineProperty(jo,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=vM(),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 jo.default=a,jo}var qo={},Hv;function kM(){if(Hv)return qo;Hv=1,Object.defineProperty(qo,"__esModule",{value:!0});const e=Pr(),t=Ve(),r=Ie(),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,p=f.opts.unicodeRegExp?"u":"";if(l){const{regExp:d}=f.opts.code,m=d.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,d),k=s.let("valid");s.try(()=>s.assign(k,(0,r._)`${m}(${c}, ${p}).test(${o})`),()=>s.assign(k,!1)),n.fail$data((0,r._)`!${k}`)}else{const d=(0,e.usePattern)(n,u);n.fail$data((0,r._)`!${d}.test(${o})`)}}};return qo.default=a,qo}var $o={},Kv;function wM(){if(Kv)return $o;Kv=1,Object.defineProperty($o,"__esModule",{value:!0});const e=Ie(),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 $o.default=r,$o}var zo={},Wv;function SM(){if(Wv)return zo;Wv=1,Object.defineProperty(zo,"__esModule",{value:!0});const e=Pr(),t=Ie(),r=Ve(),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:p}=f;if(!c&&o.length===0)return;const d=o.length>=p.loopRequired;if(f.allErrors?m():k(),p.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 h=f.schemaEnv.baseId+f.errSchemaPath,y=`required property "${E}" is not defined at "${h}" (strictRequired)`;(0,r.checkStrictMode)(f,y,f.opts.strictRequired)}}function m(){if(d||c)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||c){const w=s.let("valid",!0);n.block$data(w,()=>g(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",l,b=>{n.setParams({missingProperty:b}),s.if((0,e.noPropertyInData)(s,u,b,p.ownProperties),()=>n.error())})}function g(b,w){n.setParams({missingProperty:b}),s.forOf(b,l,()=>{s.assign(w,(0,e.propertyInData)(s,u,b,p.ownProperties)),s.if((0,t.not)(w),()=>{n.error(),s.break()})},t.nil)}}};return zo.default=a,zo}var Ro={},Gv;function CM(){if(Gv)return Ro;Gv=1,Object.defineProperty(Ro,"__esModule",{value:!0});const e=Ie(),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 Ro.default=r,Ro}var Bo={},Uo={},Jv;function Ef(){if(Jv)return Uo;Jv=1,Object.defineProperty(Uo,"__esModule",{value:!0});const e=Av();return e.code='require("ajv/dist/runtime/equal").default',Uo.default=e,Uo}var Yv;function EM(){if(Yv)return Bo;Yv=1,Object.defineProperty(Bo,"__esModule",{value:!0});const e=Co(),t=Ie(),r=Ve(),i=Ef(),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:p,it:d}=s;if(!u&&!c)return;const m=o.let("valid"),k=f.items?(0,e.getSchemaTypes)(f.items):[];s.block$data(m,v,(0,t._)`${p} === false`),s.ok(m);function v(){const E=o.let("i",(0,t._)`${l}.length`),h=o.let("j");s.setParams({i:E,j:h}),o.assign(m,!0),o.if((0,t._)`${E} > 1`,()=>(g()?b:w)(E,h))}function g(){return k.length>0&&!k.some(E=>E==="object"||E==="array")}function b(E,h){const y=o.name("item"),C=(0,e.checkDataTypes)(k,y,d.opts.strictNumbers,e.DataType.Wrong),x=o.const("indices",(0,t._)`{}`);o.for((0,t._)`;${E}--;`,()=>{o.let(y,(0,t._)`${l}[${E}]`),o.if(C,(0,t._)`continue`),k.length>1&&o.if((0,t._)`typeof ${y} == "string"`,(0,t._)`${y} += "_"`),o.if((0,t._)`typeof ${x}[${y}] == "number"`,()=>{o.assign(h,(0,t._)`${x}[${y}]`),s.error(),o.assign(m,!1).break()}).code((0,t._)`${x}[${y}] = ${E}`)})}function w(E,h){const y=(0,r.useFunc)(o,i.default),C=o.name("outer");o.label(C).for((0,t._)`;${E}--;`,()=>o.for((0,t._)`${h} = ${E}; ${h}--;`,()=>o.if((0,t._)`${y}(${l}[${E}], ${l}[${h}])`,()=>{s.error(),o.assign(m,!1).break(C)})))}}};return Bo.default=n,Bo}var Vo={},Xv;function AM(){if(Xv)return Vo;Xv=1,Object.defineProperty(Vo,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=Ef(),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 Vo.default=a,Vo}var Ho={},Zv;function xM(){if(Zv)return Ho;Zv=1,Object.defineProperty(Ho,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=Ef(),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 p=u.length>=f.opts.loopEnum;let d;const m=()=>d??(d=(0,t.useFunc)(s,r.default));let k;if(p||l)k=s.let("valid"),n.block$data(k,v);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const b=s.const("vSchema",c);k=(0,e.or)(...u.map((w,E)=>g(b,E)))}n.pass(k);function v(){s.assign(k,!1),s.forOf("v",c,b=>s.if((0,e._)`${m()}(${o}, ${b})`,()=>s.assign(k,!0).break()))}function g(b,w){const E=u[w];return typeof E=="object"&&E!==null?(0,e._)`${m()}(${o}, ${b}[${w}])`:(0,e._)`${o} === ${E}`}}};return Ho.default=a,Ho}var Qv;function OM(){if(Qv)return Fo;Qv=1,Object.defineProperty(Fo,"__esModule",{value:!0});const e=gM(),t=yM(),r=bM(),i=kM(),a=wM(),n=SM(),s=CM(),o=EM(),l=AM(),u=xM(),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 Fo.default=c,Fo}var Ko={},Xi={},eb;function tb(){if(eb)return Xi;eb=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.validateAdditionalItems=void 0;const e=Ie(),t=Ve(),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 p=o.const("len",(0,e._)`${u}.length`);if(l===!1)n.setParams({len:s.length}),n.pass((0,e._)`${p} <= ${s.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(f,l)){const m=o.var("valid",(0,e._)`${p} <= ${s.length}`);o.if((0,e.not)(m),()=>d(m)),n.ok(m)}function d(m){o.forRange("i",s.length,p,k=>{n.subschema({keyword:c,dataProp:k,dataPropType:t.Type.Num},m),f.allErrors||o.if((0,e.not)(m),()=>o.break())})}}return Xi.validateAdditionalItems=a,Xi.default=i,Xi}var Wo={},Zi={},rb;function nb(){if(rb)return Zi;rb=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.validateTuple=void 0;const e=Ie(),t=Ve(),r=Pr(),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:p}=n;k(u),p.opts.unevaluated&&o.length&&p.items!==!0&&(p.items=t.mergeEvaluated.items(l,o.length,p.items));const d=l.name("valid"),m=l.const("len",(0,e._)`${c}.length`);o.forEach((v,g)=>{(0,t.alwaysValidSchema)(p,v)||(l.if((0,e._)`${m} > ${g}`,()=>n.subschema({keyword:f,schemaProp:g,dataProp:g},d)),n.ok(d))});function k(v){const{opts:g,errSchemaPath:b}=p,w=o.length,E=w===v.minItems&&(w===v.maxItems||v[s]===!1);if(g.strictTuples&&!E){const h=`"${f}" is ${w}-tuple, but minItems or maxItems/${s} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(p,h,g.strictTuples)}}}return Zi.validateTuple=a,Zi.default=i,Zi}var ib;function _M(){if(ib)return Wo;ib=1,Object.defineProperty(Wo,"__esModule",{value:!0});const e=nb(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Wo.default=t,Wo}var Go={},ab;function PM(){if(ab)return Go;ab=1,Object.defineProperty(Go,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=Pr(),i=tb(),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 Go.default=n,Go}var Jo={},sb;function IM(){if(sb)return Jo;sb=1,Object.defineProperty(Jo,"__esModule",{value:!0});const e=Ie(),t=Ve(),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:p,maxContains:d}=o;u.opts.next?(c=p===void 0?1:p,f=d):c=1;const m=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._)`${m} >= ${c}`;f!==void 0&&(w=(0,e._)`${w} && ${m} <= ${f}`),a.pass(w);return}u.items=!0;const k=n.name("valid");f===void 0&&c===1?g(k,()=>n.if(k,()=>n.break())):c===0?(n.let(k,!0),f!==void 0&&n.if((0,e._)`${l}.length > 0`,v)):(n.let(k,!1),v()),a.result(k,()=>a.reset());function v(){const w=n.name("_valid"),E=n.let("count",0);g(w,()=>n.if(w,()=>b(E)))}function g(w,E){n.forRange("i",0,m,h=>{a.subschema({keyword:"contains",dataProp:h,dataPropType:t.Type.Num,compositeRule:!0},w),E()})}function b(w){n.code((0,e._)`${w}++`),f===void 0?n.if((0,e._)`${w} >= ${c}`,()=>n.assign(k,!0).break()):(n.if((0,e._)`${w} > ${f}`,()=>n.assign(k,!1).break()),c===1?n.assign(k,!0):n.if((0,e._)`${w} >= ${c}`,()=>n.assign(k,!0)))}}};return Jo.default=i,Jo}var Af={},ob;function TM(){return ob||(ob=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ie(),r=Ve(),i=Pr();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},
80
+ || ${x} === "boolean" || ${y} === null`).assign(_,(0,i._)`[${y}]`)}}}function p({gen:b,parentData:w,parentDataProperty:E},h){b.if((0,i._)`${w} !== undefined`,()=>b.assign((0,i._)`${w}[${E}]`,h))}function d(b,w,E,h=n.Correct){const y=h===n.Correct?i.operators.EQ:i.operators.NEQ;let C;switch(b){case"null":return(0,i._)`${w} ${y} null`;case"array":C=(0,i._)`Array.isArray(${w})`;break;case"object":C=(0,i._)`${w} && typeof ${w} == "object" && !Array.isArray(${w})`;break;case"integer":C=x((0,i._)`!(${w} % 1) && !isNaN(${w})`);break;case"number":C=x();break;default:return(0,i._)`typeof ${w} ${y} ${b}`}return h===n.Correct?C:(0,i.not)(C);function x(_=i.nil){return(0,i.and)((0,i._)`typeof ${w} == "number"`,_,E?(0,i._)`isFinite(${w})`:i.nil)}}jt.checkDataType=d;function m(b,w,E,h){if(b.length===1)return d(b[0],w,E,h);let y;const C=(0,a.toHash)(b);if(C.array&&C.object){const x=(0,i._)`typeof ${w} != "object"`;y=C.null?x:(0,i._)`!${w} || ${x}`,delete C.null,delete C.array,delete C.object}else y=i.nil;C.number&&delete C.integer;for(const x in C)y=(0,i.and)(y,d(x,w,E,h));return y}jt.checkDataTypes=m;const k={message:({schema:b})=>`must be ${b}`,params:({schema:b,schemaValue:w})=>typeof b=="string"?(0,i._)`{type: ${b}}`:(0,i._)`{type: ${w}}`};function v(b){const w=g(b);(0,r.reportError)(w,k)}jt.reportTypeError=v;function g(b){const{gen:w,data:E,schema:h}=b,y=(0,a.schemaRefOrVal)(b,h,"type");return{gen:w,keyword:"type",data:E,schema:h.type,schemaCode:y,schemaValue:y,parentSchema:h,params:{},it:b}}return jt}var is={},wv;function aM(){if(wv)return is;wv=1,Object.defineProperty(is,"__esModule",{value:!0}),is.assignDefaults=void 0;const e=Ie(),t=Ve();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))}is.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 p=(0,e._)`${f} === undefined`;c.useDefaults==="empty"&&(p=(0,e._)`${p} || ${f} === null || ${f} === ""`),o.if(p,(0,e._)`${f} = ${(0,e.stringify)(s)}`)}return is}var _r={},st={},Sv;function Pr(){if(Sv)return st;Sv=1,Object.defineProperty(st,"__esModule",{value:!0}),st.validateUnion=st.validateArray=st.usePattern=st.callValidateCode=st.schemaProperties=st.allSchemaProperties=st.noPropertyInData=st.propertyInData=st.isOwnProperty=st.hasPropFunc=st.reportMissingProp=st.checkMissingProp=st.checkReportMissingProp=void 0;const e=Ie(),t=Ve(),r=On(),i=Ve();function a(b,w){const{gen:E,data:h,it:y}=b;E.if(c(E,h,w,y.opts.ownProperties),()=>{b.setParams({missingProperty:(0,e._)`${w}`},!0),b.error()})}st.checkReportMissingProp=a;function n({gen:b,data:w,it:{opts:E}},h,y){return(0,e.or)(...h.map(C=>(0,e.and)(c(b,w,C,E.ownProperties),(0,e._)`${y} = ${C}`)))}st.checkMissingProp=n;function s(b,w){b.setParams({missingProperty:w},!0),b.error()}st.reportMissingProp=s;function o(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}st.hasPropFunc=o;function l(b,w,E){return(0,e._)`${o(b)}.call(${w}, ${E})`}st.isOwnProperty=l;function u(b,w,E,h){const y=(0,e._)`${w}${(0,e.getProperty)(E)} !== undefined`;return h?(0,e._)`${y} && ${l(b,w,E)}`:y}st.propertyInData=u;function c(b,w,E,h){const y=(0,e._)`${w}${(0,e.getProperty)(E)} === undefined`;return h?(0,e.or)(y,(0,e.not)(l(b,w,E))):y}st.noPropertyInData=c;function f(b){return b?Object.keys(b).filter(w=>w!=="__proto__"):[]}st.allSchemaProperties=f;function p(b,w){return f(w).filter(E=>!(0,t.alwaysValidSchema)(b,w[E]))}st.schemaProperties=p;function d({schemaCode:b,data:w,it:{gen:E,topSchemaRef:h,schemaPath:y,errorPath:C},it:x},_,S,A){const O=A?(0,e._)`${b}, ${w}, ${h}${y}`:w,F=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,C)],[r.default.parentData,x.parentData],[r.default.parentDataProperty,x.parentDataProperty],[r.default.rootData,r.default.rootData]];x.opts.dynamicRef&&F.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const T=(0,e._)`${O}, ${E.object(...F)}`;return S!==e.nil?(0,e._)`${_}.call(${S}, ${T})`:(0,e._)`${_}(${T})`}st.callValidateCode=d;const m=(0,e._)`new RegExp`;function k({gen:b,it:{opts:w}},E){const h=w.unicodeRegExp?"u":"",{regExp:y}=w.code,C=y(E,h);return b.scopeValue("pattern",{key:C.toString(),ref:C,code:(0,e._)`${y.code==="new RegExp"?m:(0,i.useFunc)(b,y)}(${E}, ${h})`})}st.usePattern=k;function v(b){const{gen:w,data:E,keyword:h,it:y}=b,C=w.name("valid");if(y.allErrors){const _=w.let("valid",!0);return x(()=>w.assign(_,!1)),_}return w.var(C,!0),x(()=>w.break()),C;function x(_){const S=w.const("len",(0,e._)`${E}.length`);w.forRange("i",0,S,A=>{b.subschema({keyword:h,dataProp:A,dataPropType:t.Type.Num},C),w.if((0,e.not)(C),_)})}}st.validateArray=v;function g(b){const{gen:w,schema:E,keyword:h,it:y}=b;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(S=>(0,t.alwaysValidSchema)(y,S))&&!y.opts.unevaluated)return;const x=w.let("valid",!1),_=w.name("_valid");w.block(()=>E.forEach((S,A)=>{const O=b.subschema({keyword:h,schemaProp:A,compositeRule:!0},_);w.assign(x,(0,e._)`${x} || ${_}`),b.mergeValidEvaluated(O,_)||w.if((0,e.not)(x))})),b.result(x,()=>b.reset(),()=>b.error(!0))}return st.validateUnion=g,st}var Cv;function sM(){if(Cv)return _r;Cv=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.validateKeywordUsage=_r.validSchemaType=_r.funcKeywordCode=_r.macroKeywordCode=void 0;const e=Ie(),t=On(),r=Pr(),i=So();function a(p,d){const{gen:m,keyword:k,schema:v,parentSchema:g,it:b}=p,w=d.macro.call(b.self,v,g,b),E=u(m,k,w);b.opts.validateSchema!==!1&&b.self.validateSchema(w,!0);const h=m.name("valid");p.subschema({schema:w,schemaPath:e.nil,errSchemaPath:`${b.errSchemaPath}/${k}`,topSchemaRef:E,compositeRule:!0},h),p.pass(h,()=>p.error(!0))}_r.macroKeywordCode=a;function n(p,d){var m;const{gen:k,keyword:v,schema:g,parentSchema:b,$data:w,it:E}=p;l(E,d);const h=!w&&d.compile?d.compile.call(E.self,g,b,E):d.validate,y=u(k,v,h),C=k.let("valid");p.block$data(C,x),p.ok((m=d.valid)!==null&&m!==void 0?m:C);function x(){if(d.errors===!1)A(),d.modifying&&s(p),O(()=>p.error());else{const F=d.async?_():S();d.modifying&&s(p),O(()=>o(p,F))}}function _(){const F=k.let("ruleErrs",null);return k.try(()=>A((0,e._)`await `),T=>k.assign(C,!1).if((0,e._)`${T} instanceof ${E.ValidationError}`,()=>k.assign(F,(0,e._)`${T}.errors`),()=>k.throw(T))),F}function S(){const F=(0,e._)`${y}.errors`;return k.assign(F,null),A(e.nil),F}function A(F=d.async?(0,e._)`await `:e.nil){const T=E.opts.passContext?t.default.this:t.default.self,j=!("compile"in d&&!w||d.schema===!1);k.assign(C,(0,e._)`${F}${(0,r.callValidateCode)(p,y,T,j)}`,d.modifying)}function O(F){var T;k.if((0,e.not)((T=d.valid)!==null&&T!==void 0?T:C),F)}}_r.funcKeywordCode=n;function s(p){const{gen:d,data:m,it:k}=p;d.if(k.parentData,()=>d.assign(m,(0,e._)`${k.parentData}[${k.parentDataProperty}]`))}function o(p,d){const{gen:m}=p;m.if((0,e._)`Array.isArray(${d})`,()=>{m.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)(p)},()=>p.error())}function l({schemaEnv:p},d){if(d.async&&!p.$async)throw new Error("async keyword in sync schema")}function u(p,d,m){if(m===void 0)throw new Error(`keyword "${d}" failed to compile`);return p.scopeValue("keyword",typeof m=="function"?{ref:m}:{ref:m,code:(0,e.stringify)(m)})}function c(p,d,m=!1){return!d.length||d.some(k=>k==="array"?Array.isArray(p):k==="object"?p&&typeof p=="object"&&!Array.isArray(p):typeof p==k||m&&typeof p>"u")}_r.validSchemaType=c;function f({schema:p,opts:d,self:m,errSchemaPath:k},v,g){if(Array.isArray(v.keyword)?!v.keyword.includes(g):v.keyword!==g)throw new Error("ajv implementation error");const b=v.dependencies;if(b!=null&&b.some(w=>!Object.prototype.hasOwnProperty.call(p,w)))throw new Error(`parent schema must have dependencies of ${g}: ${b.join(",")}`);if(v.validateSchema&&!v.validateSchema(p[g])){const E=`keyword "${g}" value is invalid at path "${k}": `+m.errorsText(v.validateSchema.errors);if(d.validateSchema==="log")m.logger.error(E);else throw new Error(E)}}return _r.validateKeywordUsage=f,_r}var un={},Ev;function oM(){if(Ev)return un;Ev=1,Object.defineProperty(un,"__esModule",{value:!0}),un.extendSubschemaMode=un.extendSubschemaData=un.getSubschema=void 0;const e=Ie(),t=Ve();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 p=n.schema[s];return o===void 0?{schema:p,schemaPath:(0,e._)`${n.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${n.errSchemaPath}/${s}`}:{schema:p[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')}un.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:p}=s;if(o!==void 0){const{errorPath:m,dataPathArr:k,opts:v}=s,g=p.let("data",(0,e._)`${s.data}${(0,e.getProperty)(o)}`,!0);d(g),n.errorPath=(0,e.str)`${m}${(0,t.getErrorPath)(o,l,v.jsPropertySyntax)}`,n.parentDataProperty=(0,e._)`${o}`,n.dataPathArr=[...k,n.parentDataProperty]}if(u!==void 0){const m=u instanceof e.Name?u:p.let("data",u,!0);d(m),f!==void 0&&(n.propertyName=f)}c&&(n.dataTypes=c);function d(m){n.data=m,n.dataLevel=s.dataLevel+1,n.dataTypes=[],s.definedProperties=new Set,n.parentData=s.data,n.dataNames=[...s.dataNames,m]}}un.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 un.extendSubschemaMode=a,un}var Ht={},vf,Av;function xv(){return Av||(Av=1,vf=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}),vf}var bf={exports:{}},Ov;function lM(){if(Ov)return bf.exports;Ov=1;var e=bf.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,p){if(s&&typeof s=="object"&&!Array.isArray(s)){a(s,o,l,u,c,f,p);for(var d in s){var m=s[d];if(Array.isArray(m)){if(d in e.arrayKeywords)for(var k=0;k<m.length;k++)t(i,a,n,m[k],o+"/"+d+"/"+k,l,o,d,s,k)}else if(d in e.propsKeywords){if(m&&typeof m=="object")for(var v in m)t(i,a,n,m[v],o+"/"+d+"/"+r(v),l,o,d,s,v)}else(d in e.keywords||i.allKeys&&!(d in e.skipKeywords))&&t(i,a,n,m,o+"/"+d,l,o,d,s)}n(s,o,l,u,c,f,p)}}function r(i){return i.replace(/~/g,"~0").replace(/\//g,"~1")}return bf.exports}var _v;function Eo(){if(_v)return Ht;_v=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.getSchemaRefs=Ht.resolveUrl=Ht.normalizeId=Ht._getFullPath=Ht.getFullPath=Ht.inlineRef=void 0;const e=Ve(),t=xv(),r=lM(),i=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function a(k,v=!0){return typeof k=="boolean"?!0:v===!0?!s(k):v?o(k)<=v:!1}Ht.inlineRef=a;const n=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(k){for(const v in k){if(n.has(v))return!0;const g=k[v];if(Array.isArray(g)&&g.some(s)||typeof g=="object"&&s(g))return!0}return!1}function o(k){let v=0;for(const g in k){if(g==="$ref")return 1/0;if(v++,!i.has(g)&&(typeof k[g]=="object"&&(0,e.eachItem)(k[g],b=>v+=o(b)),v===1/0))return 1/0}return v}function l(k,v="",g){g!==!1&&(v=f(v));const b=k.parse(v);return u(k,b)}Ht.getFullPath=l;function u(k,v){return k.serialize(v).split("#")[0]+"#"}Ht._getFullPath=u;const c=/#\/?$/;function f(k){return k?k.replace(c,""):""}Ht.normalizeId=f;function p(k,v,g){return g=f(g),k.resolve(v,g)}Ht.resolveUrl=p;const d=/^[a-z_][-a-z0-9._]*$/i;function m(k,v){if(typeof k=="boolean")return{};const{schemaId:g,uriResolver:b}=this.opts,w=f(k[g]||v),E={"":w},h=l(b,w,!1),y={},C=new Set;return r(k,{allKeys:!0},(S,A,O,F)=>{if(F===void 0)return;const T=h+A;let j=E[F];typeof S[g]=="string"&&(j=q.call(this,S[g])),J.call(this,S.$anchor),J.call(this,S.$dynamicAnchor),E[A]=j;function q(Y){const X=this.opts.uriResolver.resolve;if(Y=f(j?X(j,Y):Y),C.has(Y))throw _(Y);C.add(Y);let P=this.refs[Y];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?x(S,P.schema,Y):Y!==f(T)&&(Y[0]==="#"?(x(S,y[Y],Y),y[Y]=S):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 x(S,A,O){if(A!==void 0&&!t(S,A))throw _(O)}function _(S){return new Error(`reference "${S}" resolves to more than one schema`)}}return Ht.getSchemaRefs=m,Ht}var Pv;function Ao(){if(Pv)return on;Pv=1,Object.defineProperty(on,"__esModule",{value:!0}),on.getData=on.KeywordCxt=on.validateFunctionCode=void 0;const e=iM(),t=Co(),r=bv(),i=Co(),a=aM(),n=sM(),s=oM(),o=Ie(),l=On(),u=Eo(),c=Ve(),f=So();function p(z){if(h(z)&&(C(z),E(z))){v(z);return}d(z,()=>(0,e.topBoolOrEmptySchema)(z))}on.validateFunctionCode=p;function d({gen:z,validateName:$,schema:W,schemaEnv:K,opts:ie},re){ie.code.es5?z.func($,(0,o._)`${l.default.data}, ${l.default.valCxt}`,K.$async,()=>{z.code((0,o._)`"use strict"; ${b(W,ie)}`),k(z,ie),z.code(re)}):z.func($,(0,o._)`${l.default.data}, ${m(ie)}`,K.$async,()=>z.code(b(W,ie)).code(re))}function m(z){return(0,o._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${z.dynamicRef?(0,o._)`, ${l.default.dynamicAnchors}={}`:o.nil}}={}`}function k(z,$){z.if(l.default.valCxt,()=>{z.var(l.default.instancePath,(0,o._)`${l.default.valCxt}.${l.default.instancePath}`),z.var(l.default.parentData,(0,o._)`${l.default.valCxt}.${l.default.parentData}`),z.var(l.default.parentDataProperty,(0,o._)`${l.default.valCxt}.${l.default.parentDataProperty}`),z.var(l.default.rootData,(0,o._)`${l.default.valCxt}.${l.default.rootData}`),$.dynamicRef&&z.var(l.default.dynamicAnchors,(0,o._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{z.var(l.default.instancePath,(0,o._)`""`),z.var(l.default.parentData,(0,o._)`undefined`),z.var(l.default.parentDataProperty,(0,o._)`undefined`),z.var(l.default.rootData,l.default.data),$.dynamicRef&&z.var(l.default.dynamicAnchors,(0,o._)`{}`)})}function v(z){const{schema:$,opts:W,gen:K}=z;d(z,()=>{W.$comment&&$.$comment&&F(z),S(z),K.let(l.default.vErrors,null),K.let(l.default.errors,0),W.unevaluated&&g(z),x(z),T(z)})}function g(z){const{gen:$,validateName:W}=z;z.evaluated=$.const("evaluated",(0,o._)`${W}.evaluated`),$.if((0,o._)`${z.evaluated}.dynamicProps`,()=>$.assign((0,o._)`${z.evaluated}.props`,(0,o._)`undefined`)),$.if((0,o._)`${z.evaluated}.dynamicItems`,()=>$.assign((0,o._)`${z.evaluated}.items`,(0,o._)`undefined`))}function b(z,$){const W=typeof z=="object"&&z[$.schemaId];return W&&($.code.source||$.code.process)?(0,o._)`/*# sourceURL=${W} */`:o.nil}function w(z,$){if(h(z)&&(C(z),E(z))){y(z,$);return}(0,e.boolOrEmptySchema)(z,$)}function E({schema:z,self:$}){if(typeof z=="boolean")return!z;for(const W in z)if($.RULES.all[W])return!0;return!1}function h(z){return typeof z.schema!="boolean"}function y(z,$){const{schema:W,gen:K,opts:ie}=z;ie.$comment&&W.$comment&&F(z),A(z),O(z);const re=K.const("_errs",l.default.errors);x(z,re),K.var($,(0,o._)`${re} === ${l.default.errors}`)}function C(z){(0,c.checkUnknownRules)(z),_(z)}function x(z,$){if(z.opts.jtd)return q(z,[],!1,$);const W=(0,t.getSchemaTypes)(z.schema),K=(0,t.coerceAndCheckDataType)(z,W);q(z,W,!K,$)}function _(z){const{schema:$,errSchemaPath:W,opts:K,self:ie}=z;$.$ref&&K.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)($,ie.RULES)&&ie.logger.warn(`$ref: keywords ignored in schema at path "${W}"`)}function S(z){const{schema:$,opts:W}=z;$.default!==void 0&&W.useDefaults&&W.strictSchema&&(0,c.checkStrictMode)(z,"default is ignored in the schema root")}function A(z){const $=z.schema[z.opts.schemaId];$&&(z.baseId=(0,u.resolveUrl)(z.opts.uriResolver,z.baseId,$))}function O(z){if(z.schema.$async&&!z.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:z,schemaEnv:$,schema:W,errSchemaPath:K,opts:ie}){const re=W.$comment;if(ie.$comment===!0)z.code((0,o._)`${l.default.self}.logger.log(${re})`);else if(typeof ie.$comment=="function"){const ue=(0,o.str)`${K}/$comment`,ye=z.scopeValue("root",{ref:$.root});z.code((0,o._)`${l.default.self}.opts.$comment(${re}, ${ue}, ${ye}.schema)`)}}function T(z){const{gen:$,schemaEnv:W,validateName:K,ValidationError:ie,opts:re}=z;W.$async?$.if((0,o._)`${l.default.errors} === 0`,()=>$.return(l.default.data),()=>$.throw((0,o._)`new ${ie}(${l.default.vErrors})`)):($.assign((0,o._)`${K}.errors`,l.default.vErrors),re.unevaluated&&j(z),$.return((0,o._)`${l.default.errors} === 0`))}function j({gen:z,evaluated:$,props:W,items:K}){W instanceof o.Name&&z.assign((0,o._)`${$}.props`,W),K instanceof o.Name&&z.assign((0,o._)`${$}.items`,K)}function q(z,$,W,K){const{gen:ie,schema:re,data:ue,allErrors:ye,opts:Se,self:ke}=z,{RULES:Pe}=ke;if(re.$ref&&(Se.ignoreKeywordsWithRef||!(0,c.schemaHasRulesButRef)(re,Pe))){ie.block(()=>R(z,"$ref",Pe.all.$ref.definition));return}Se.jtd||Y(z,$),ie.block(()=>{for(const Ke of Pe.rules)de(Ke);de(Pe.post)});function de(Ke){(0,r.shouldUseGroup)(re,Ke)&&(Ke.type?(ie.if((0,i.checkDataType)(Ke.type,ue,Se.strictNumbers)),J(z,Ke),$.length===1&&$[0]===Ke.type&&W&&(ie.else(),(0,i.reportTypeError)(z)),ie.endIf()):J(z,Ke),ye||ie.if((0,o._)`${l.default.errors} === ${K||0}`))}}function J(z,$){const{gen:W,schema:K,opts:{useDefaults:ie}}=z;ie&&(0,a.assignDefaults)(z,$.type),W.block(()=>{for(const re of $.rules)(0,r.shouldUseRule)(K,re)&&R(z,re.keyword,re.definition,$.type)})}function Y(z,$){z.schemaEnv.meta||!z.opts.strictTypes||(X(z,$),z.opts.allowUnionTypes||P(z,$),M(z,z.dataTypes))}function X(z,$){if($.length){if(!z.dataTypes.length){z.dataTypes=$;return}$.forEach(W=>{I(z.dataTypes,W)||L(z,`type "${W}" not allowed by context "${z.dataTypes.join(",")}"`)}),D(z,$)}}function P(z,$){$.length>1&&!($.length===2&&$.includes("null"))&&L(z,"use allowUnionTypes to allow union type keyword")}function M(z,$){const W=z.self.RULES.all;for(const K in W){const ie=W[K];if(typeof ie=="object"&&(0,r.shouldUseRule)(z.schema,ie)){const{type:re}=ie.definition;re.length&&!re.some(ue=>B($,ue))&&L(z,`missing type "${re.join(",")}" for keyword "${K}"`)}}}function B(z,$){return z.includes($)||$==="number"&&z.includes("integer")}function I(z,$){return z.includes($)||$==="integer"&&z.includes("number")}function D(z,$){const W=[];for(const K of z.dataTypes)I($,K)?W.push(K):$.includes("integer")&&K==="number"&&W.push("integer");z.dataTypes=W}function L(z,$){const W=z.schemaEnv.baseId+z.errSchemaPath;$+=` at "${W}" (strictTypes)`,(0,c.checkStrictMode)(z,$,z.opts.strictTypes)}class U{constructor($,W,K){if((0,n.validateKeywordUsage)($,W,K),this.gen=$.gen,this.allErrors=$.allErrors,this.keyword=K,this.data=$.data,this.schema=$.schema[K],this.$data=W.$data&&$.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)($,this.schema,K,this.$data),this.schemaType=W.schemaType,this.parentSchema=$.schema,this.params={},this.it=$,this.def=W,this.$data)this.schemaCode=$.gen.const("vSchema",Z(this.$data,$));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=$.gen.const("_errs",l.default.errors))}result($,W,K){this.failResult((0,o.not)($),W,K)}failResult($,W,K){this.gen.if($),K?K():this.error(),W?(this.gen.else(),W(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass($,W){this.failResult((0,o.not)($),void 0,W)}fail($){if($===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if($),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data($){if(!this.$data)return this.fail($);const{schemaCode:W}=this;this.fail((0,o._)`${W} !== undefined && (${(0,o.or)(this.invalid$data(),$)})`)}error($,W,K){if(W){this.setParams(W),this._error($,K),this.setParams({});return}this._error($,K)}_error($,W){($?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($){this.allErrors||this.gen.if($)}setParams($,W){W?Object.assign(this.params,$):this.params=$}block$data($,W,K=o.nil){this.gen.block(()=>{this.check$data($,K),W()})}check$data($=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)),$!==o.nil&&K.assign($,!0),(re.length||ue.validateSchema)&&(K.elseIf(this.invalid$data()),this.$dataError(),$!==o.nil&&K.assign($,!1)),K.else()}invalid$data(){const{gen:$,schemaCode:W,schemaType:K,def:ie,it:re}=this;return(0,o.or)(ue(),ye());function ue(){if(K.length){if(!(W instanceof o.Name))throw new Error("ajv implementation error");const Se=Array.isArray(K)?K:[K];return(0,o._)`${(0,i.checkDataTypes)(Se,W,re.opts.strictNumbers,i.DataType.Wrong)}`}return o.nil}function ye(){if(ie.validateSchema){const Se=$.scopeValue("validate$data",{ref:ie.validateSchema});return(0,o._)`!${Se}(${W})`}return o.nil}}subschema($,W){const K=(0,s.getSubschema)(this.it,$);(0,s.extendSubschemaData)(K,this.it,$),(0,s.extendSubschemaMode)(K,$);const ie={...this.it,...K,items:void 0,props:void 0};return w(ie,W),ie}mergeEvaluated($,W){const{it:K,gen:ie}=this;K.opts.unevaluated&&(K.props!==!0&&$.props!==void 0&&(K.props=c.mergeEvaluated.props(ie,$.props,K.props,W)),K.items!==!0&&$.items!==void 0&&(K.items=c.mergeEvaluated.items(ie,$.items,K.items,W)))}mergeValidEvaluated($,W){const{it:K,gen:ie}=this;if(K.opts.unevaluated&&(K.props!==!0||K.items!==!0))return ie.if(W,()=>this.mergeEvaluated($,o.Name)),!0}}on.KeywordCxt=U;function R(z,$,W,K){const ie=new U(z,W,$);"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 Z(z,{dataLevel:$,dataNames:W,dataPathArr:K}){let ie,re;if(z==="")return l.default.rootData;if(z[0]==="/"){if(!H.test(z))throw new Error(`Invalid JSON-pointer: ${z}`);ie=z,re=l.default.rootData}else{const ke=G.exec(z);if(!ke)throw new Error(`Invalid JSON-pointer: ${z}`);const Pe=+ke[1];if(ie=ke[2],ie==="#"){if(Pe>=$)throw new Error(Se("property/index",Pe));return K[$-Pe]}if(Pe>$)throw new Error(Se("data",Pe));if(re=W[$-Pe],!ie)return re}let ue=re;const ye=ie.split("/");for(const ke of ye)ke&&(re=(0,o._)`${re}${(0,o.getProperty)((0,c.unescapeJsonPointer)(ke))}`,ue=(0,o._)`${ue} && ${re}`);return ue;function Se(ke,Pe){return`Cannot access ${ke} ${Pe} levels up, current level is ${$}`}}return on.getData=Z,on}var xo={},Iv;function kf(){if(Iv)return xo;Iv=1,Object.defineProperty(xo,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return xo.default=e,xo}var Oo={},Tv;function _o(){if(Tv)return Oo;Tv=1,Object.defineProperty(Oo,"__esModule",{value:!0});const e=Eo();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 Oo.default=t,Oo}var nr={},Nv;function wf(){if(Nv)return nr;Nv=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.resolveSchema=nr.getCompilingSchema=nr.resolveRef=nr.compileSchema=nr.SchemaEnv=void 0;const e=Ie(),t=kf(),r=On(),i=Eo(),a=Ve(),n=Ao();class s{constructor(g){var b;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=(b=g.baseId)!==null&&b!==void 0?b:(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={}}}nr.SchemaEnv=s;function o(v){const g=c.call(this,v);if(g)return g;const b=(0,i.getFullPath)(this.opts.uriResolver,v.root.baseId),{es5:w,lines:E}=this.opts.code,{ownProperties:h}=this.opts,y=new e.CodeGen(this.scope,{es5:w,lines:E,ownProperties:h});let C;v.$async&&(C=y.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const x=y.scopeName("validate");v.validateName=x;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:v.schema,code:(0,e.stringify)(v.schema)}:{ref:v.schema}),validateName:x,ValidationError:C,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 S;try{this._compilations.add(v),(0,n.validateFunctionCode)(_),y.optimize(this.opts.code.optimize);const A=y.toString();S=`${y.scopeRefs(r.default.scope)}return ${A}`,this.opts.code.process&&(S=this.opts.code.process(S,v));const F=new Function(`${r.default.self}`,`${r.default.scope}`,S)(this,this.scope.get());if(this.scope.value(x,{ref:F}),F.errors=null,F.schema=v.schema,F.schemaEnv=v,v.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:x,validateCode:A,scopeValues:y._values}),this.opts.unevaluated){const{props:T,items:j}=_;F.evaluated={props:T instanceof e.Name?void 0:T,items:j instanceof e.Name?void 0:j,dynamicProps:T instanceof e.Name,dynamicItems:j instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return v.validate=F,v}catch(A){throw delete v.validate,delete v.validateName,S&&this.logger.error("Error compiling schema, function code:",S),A}finally{this._compilations.delete(v)}}nr.compileSchema=o;function l(v,g,b){var w;b=(0,i.resolveUrl)(this.opts.uriResolver,g,b);const E=v.refs[b];if(E)return E;let h=p.call(this,v,b);if(h===void 0){const y=(w=v.localRefs)===null||w===void 0?void 0:w[b],{schemaId:C}=this.opts;y&&(h=new s({schema:y,schemaId:C,root:v,baseId:g}))}if(h!==void 0)return v.refs[b]=u.call(this,h)}nr.resolveRef=l;function u(v){return(0,i.inlineRef)(v.schema,this.opts.inlineRefs)?v.schema:v.validate?v:o.call(this,v)}function c(v){for(const g of this._compilations)if(f(g,v))return g}nr.getCompilingSchema=c;function f(v,g){return v.schema===g.schema&&v.root===g.root&&v.baseId===g.baseId}function p(v,g){let b;for(;typeof(b=this.refs[g])=="string";)g=b;return b||this.schemas[g]||d.call(this,v,g)}function d(v,g){const b=this.opts.uriResolver.parse(g),w=(0,i._getFullPath)(this.opts.uriResolver,b);let E=(0,i.getFullPath)(this.opts.uriResolver,v.baseId,void 0);if(Object.keys(v.schema).length>0&&w===E)return k.call(this,b,v);const h=(0,i.normalizeId)(w),y=this.refs[h]||this.schemas[h];if(typeof y=="string"){const C=d.call(this,v,y);return typeof(C==null?void 0:C.schema)!="object"?void 0:k.call(this,b,C)}if(typeof(y==null?void 0:y.schema)=="object"){if(y.validate||o.call(this,y),h===(0,i.normalizeId)(g)){const{schema:C}=y,{schemaId:x}=this.opts,_=C[x];return _&&(E=(0,i.resolveUrl)(this.opts.uriResolver,E,_)),new s({schema:C,schemaId:x,root:v,baseId:E})}return k.call(this,b,y)}}nr.resolveSchema=d;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function k(v,{baseId:g,schema:b,root:w}){var E;if(((E=v.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const C of v.fragment.slice(1).split("/")){if(typeof b=="boolean")return;const x=b[(0,a.unescapeFragment)(C)];if(x===void 0)return;b=x;const _=typeof b=="object"&&b[this.opts.schemaId];!m.has(C)&&_&&(g=(0,i.resolveUrl)(this.opts.uriResolver,g,_))}let h;if(typeof b!="boolean"&&b.$ref&&!(0,a.schemaHasRulesButRef)(b,this.RULES)){const C=(0,i.resolveUrl)(this.opts.uriResolver,g,b.$ref);h=d.call(this,w,C)}const{schemaId:y}=this.opts;if(h=h||new s({schema:b,schemaId:y,root:w,baseId:g}),h.schema!==h.root.schema)return h}return nr}const uM={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};var Po={},as={exports:{}},Sf,Fv;function Dv(){if(Fv)return Sf;Fv=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="",C=0,x=0;for(x=0;x<h.length;x++)if(C=h[x].charCodeAt(0),C!==48){if(!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";y+=h[x];break}for(x+=1;x<h.length;x++){if(C=h[x].charCodeAt(0),!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";y+=h[x]}return y}const s=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(h){return h.length=0,!0}function l(h,y,C){if(h.length){const x=n(h);if(x!=="")y.push(x);else return C.error=!0,!1;h.length=0}return!0}function u(h){let y=0;const C={error:!1,address:"",zone:""},x=[],_=[];let S=!1,A=!1,O=l;for(let F=0;F<h.length;F++){const T=h[F];if(!(T==="["||T==="]"))if(T===":"){if(S===!0&&(A=!0),!O(_,x,C))break;if(++y>7){C.error=!0;break}F>0&&h[F-1]===":"&&(S=!0),x.push(":");continue}else if(T==="%"){if(!O(_,x,C))break;O=o}else{_.push(T);continue}}return _.length&&(O===o?C.zone=_.join(""):A?x.push(_.join("")):x.push(n(_))),C.address=x.join(""),C}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 C=y.address,x=y.address;return y.zone&&(C+="%"+y.zone,x+="%25"+y.zone),{host:C,isIPV6:!0,escapedHost:x}}}function f(h,y){let C=0;for(let x=0;x<h.length;x++)h[x]===y&&C++;return C}function p(h){let y=h;const C=[];let x=-1,_=0;for(;_=y.length;){if(_===1){if(y===".")break;if(y==="/"){C.push("/");break}else{C.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]==="/")){C.push("/");break}}else if(_===3&&y==="/.."){C.length!==0&&C.pop(),C.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),C.length!==0&&C.pop();continue}}if((x=y.indexOf("/",1))===-1){C.push(y);break}else C.push(y.slice(0,x)),y=y.slice(x)}return C.join("")}const d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},m=/[@/?#:]/g,k=/[@/?#]/g;function v(h,y){const C=y?k:m;return C.lastIndex=0,h.replace(C,x=>d[x])}function g(h,y=!1){if(h.indexOf("%")===-1)return h;let C="";for(let x=0;x<h.length;x++){if(h[x]==="%"&&x+2<h.length){const _=h.slice(x+1,x+3);if(r(_)){const S=_.toUpperCase(),A=String.fromCharCode(parseInt(S,16));y&&i(A)?C+=A:C+="%"+S,x+=2;continue}}C+=h[x]}return C}function b(h){let y="";for(let C=0;C<h.length;C++){if(h[C]==="%"&&C+2<h.length){const x=h.slice(C+1,C+3);if(r(x)){const _=x.toUpperCase(),S=String.fromCharCode(parseInt(_,16));S!=="."&&i(S)?y+=S:y+="%"+_,C+=2;continue}}a(h[C])?y+=h[C]:y+=escape(h[C])}return y}function w(h){let y="";for(let C=0;C<h.length;C++){if(h[C]==="%"&&C+2<h.length){const x=h.slice(C+1,C+3);if(r(x)){y+="%"+x.toUpperCase(),C+=2;continue}}y+=escape(h[C])}return y}function E(h){const y=[];if(h.userinfo!==void 0&&(y.push(h.userinfo),y.push("@")),h.host!==void 0){let C=unescape(h.host);if(!t(C)){const x=c(C);x.isIPV6===!0?C=`[${x.escapedHost}]`:C=v(C,!1)}y.push(C)}return(typeof h.port=="number"||typeof h.port=="string")&&(y.push(":"),y.push(String(h.port))),y.length?y.join(""):void 0}return Sf={nonSimpleDomain:s,recomposeAuthority:E,reescapeHostDelimiters:v,normalizePercentEncoding:g,normalizePathEncoding:b,escapePreservingEscapes:w,removeDotSegments:p,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:n},Sf}var Cf,Mv;function cM(){if(Mv)return Cf;Mv=1;const{isUUID:e}=Dv(),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,C]=h.resourceName.split("?");h.path=y&&y!=="/"?y:void 0,h.query=C,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 C=h.path.match(t);if(C){const x=y.scheme||h.scheme||"urn";h.nid=C[1].toLowerCase(),h.nss=C[2];const _=`${x}:${y.nid||h.nid}`,S=E(_);h.path=void 0,S&&(h=S.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 C=y.scheme||h.scheme||"urn",x=h.nid.toLowerCase(),_=`${C}:${y.nid||x}`,S=E(_);S&&(h=S.serialize(h,y));const A=h,O=h.nss;return A.path=`${x||y.nid}:${O}`,y.skipEscape=!0,A}function f(h,y){const C=h;return C.uuid=C.nss,C.nss=void 0,!y.tolerant&&(!C.uuid||!e(C.uuid))&&(C.error=C.error||"UUID is not valid."),C}function p(h){const y=h;return y.nss=(h.uuid||"").toLowerCase(),y}const d={scheme:"http",domainHost:!0,parse:n,serialize:s},m={scheme:"https",domainHost:d.domainHost,parse:n,serialize:s},k={scheme:"ws",domainHost:!0,parse:o,serialize:l},v={scheme:"wss",domainHost:k.domainHost,parse:k.parse,serialize:k.serialize},w={http:d,https:m,ws:k,wss:v,urn:{scheme:"urn",parse:u,serialize:c,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:f,serialize:p,skipNormalize:!0}};Object.setPrototypeOf(w,null);function E(h){return h&&(w[h]||w[h.toLowerCase()])||void 0}return Cf={wsIsSecure:a,SCHEMES:w,isValidSchemeName:i,getSchemeHandler:E},Cf}var jv;function fM(){if(jv)return as.exports;jv=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:i,normalizePathEncoding:a,escapePreservingEscapes:n,reescapeHostDelimiters:s,isIPv4:o,nonSimpleDomain:l}=Dv(),{SCHEMES:u,getSchemeHandler:c}=cM();function f(x,_){return typeof x=="string"?x=E(x,_):typeof x=="object"&&(x=w(k(x,_),_)),x}function p(x,_,S){const A=S?Object.assign({scheme:"null"},S):{scheme:"null"},O=d(w(x,A),w(_,A),A,!0);return A.skipEscape=!0,k(O,A)}function d(x,_,S,A){const O={};return A||(x=w(k(x,S),S),_=w(k(_,S),S)),S=S||{},!S.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):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?O.path="/"+_.path:x.path?O.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+_.path:O.path=_.path,O.path=t(O.path)),O.query=_.query):(O.path=x.path,_.query!==void 0?O.query=_.query:O.query=x.query),O.userinfo=x.userinfo,O.host=x.host,O.port=x.port),O.scheme=x.scheme),O.fragment=_.fragment,O}function m(x,_,S){const A=y(x,S),O=y(_,S);return A!==void 0&&O!==void 0&&A.toLowerCase()===O.toLowerCase()}function k(x,_){const S={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:""},A=Object.assign({},_),O=[],F=c(A.scheme||S.scheme);F&&F.serialize&&F.serialize(S,A),S.path!==void 0&&(A.skipEscape?S.path=i(S.path):(S.path=n(S.path),S.scheme!==void 0&&(S.path=S.path.split("%3A").join(":")))),A.reference!=="suffix"&&S.scheme&&O.push(S.scheme,":");const T=r(S);if(T!==void 0&&(A.reference!=="suffix"&&O.push("//"),O.push(T),S.path&&S.path[0]!=="/"&&O.push("/")),S.path!==void 0){let j=S.path;!A.absolutePath&&(!F||!F.absolutePath)&&(j=t(j)),T===void 0&&j[0]==="/"&&j[1]==="/"&&(j="/%2F"+j.slice(2)),O.push(j)}return S.query!==void 0&&O.push("?",S.query),S.fragment!==void 0&&O.push("#",S.fragment),O.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(x,_){if(_[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 b(x,_){const S=Object.assign({},_),A={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let O=!1,F=!1;S.reference==="suffix"&&(S.scheme?x=S.scheme+":"+x:x="//"+x);const T=x.match(v);if(T){A.scheme=T[1],A.userinfo=T[3],A.host=T[4],A.port=parseInt(T[5],10),A.path=T[6]||"",A.query=T[7],A.fragment=T[8],isNaN(A.port)&&(A.port=T[5]);const j=g(A,T);if(j!==void 0&&(A.error=A.error||j,O=!0),A.host)if(o(A.host)===!1){const Y=e(A.host);A.host=Y.host.toLowerCase(),F=Y.isIPV6}else F=!0;A.scheme===void 0&&A.userinfo===void 0&&A.host===void 0&&A.port===void 0&&A.query===void 0&&!A.path?A.reference="same-document":A.scheme===void 0?A.reference="relative":A.fragment===void 0?A.reference="absolute":A.reference="uri",S.reference&&S.reference!=="suffix"&&S.reference!==A.reference&&(A.error=A.error||"URI is not a "+S.reference+" reference.");const q=c(S.scheme||A.scheme);if(!S.unicodeSupport&&(!q||!q.unicodeSupport)&&A.host&&(S.domainHost||q&&q.domainHost)&&F===!1&&l(A.host))try{A.host=URL.domainToASCII(A.host.toLowerCase())}catch(J){A.error=A.error||"Host's domain name can not be converted to ASCII: "+J}if((!q||q&&!q.skipNormalize)&&(x.indexOf("%")!==-1&&(A.scheme!==void 0&&(A.scheme=unescape(A.scheme)),A.host!==void 0&&(A.host=s(unescape(A.host),F))),A.path&&(A.path=a(A.path)),A.fragment))try{A.fragment=encodeURI(decodeURIComponent(A.fragment))}catch{A.error=A.error||"URI malformed"}q&&q.parse&&q.parse(A,S)}else A.error=A.error||"URI can not be parsed.";return{parsed:A,malformedAuthorityOrPort:O}}function w(x,_){return b(x,_).parsed}function E(x,_){return h(x,_).normalized}function h(x,_){const{parsed:S,malformedAuthorityOrPort:A}=b(x,_);return{normalized:A?x:k(S,_),malformedAuthorityOrPort:A}}function y(x,_){if(typeof x=="string"){const{normalized:S,malformedAuthorityOrPort:A}=h(x,_);return A?void 0:S}if(typeof x=="object")return k(x,_)}const C={SCHEMES:u,normalize:f,resolve:p,resolveComponent:d,equal:m,serialize:k,parse:w};return as.exports=C,as.exports.default=C,as.exports.fastUri=C,as.exports}var Lv;function dM(){if(Lv)return Po;Lv=1,Object.defineProperty(Po,"__esModule",{value:!0});const e=fM();return e.code='require("ajv/dist/runtime/uri").default',Po.default=e,Po}var qv;function pM(){return qv||(qv=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=Ao();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ie();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=kf(),a=_o(),n=yv(),s=wf(),o=Ie(),l=Eo(),u=Co(),c=Ve(),f=uM,p=dM(),d=(P,M)=>new RegExp(P,M);d.code="new RegExp";const m=["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."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=200;function w(P){var M,B,I,D,L,U,R,H,G,Z,z,$,W,K,ie,re,ue,ye,Se,ke,Pe,de,Ke,ut,ve;const Q=P.strict,ee=(M=P.code)===null||M===void 0?void 0:M.optimize,te=ee===!0||ee===void 0?1:ee||0,he=(I=(B=P.code)===null||B===void 0?void 0:B.regExp)!==null&&I!==void 0?I:d,ce=(D=P.uriResolver)!==null&&D!==void 0?D:p.default;return{strictSchema:(U=(L=P.strictSchema)!==null&&L!==void 0?L:Q)!==null&&U!==void 0?U:!0,strictNumbers:(H=(R=P.strictNumbers)!==null&&R!==void 0?R:Q)!==null&&H!==void 0?H:!0,strictTypes:(Z=(G=P.strictTypes)!==null&&G!==void 0?G:Q)!==null&&Z!==void 0?Z:"log",strictTuples:($=(z=P.strictTuples)!==null&&z!==void 0?z:Q)!==null&&$!==void 0?$:"log",strictRequired:(K=(W=P.strictRequired)!==null&&W!==void 0?W:Q)!==null&&K!==void 0?K:!1,code:P.code?{...P.code,optimize:te,regExp:he}:{optimize:te,regExp:he},loopRequired:(ie=P.loopRequired)!==null&&ie!==void 0?ie:b,loopEnum:(re=P.loopEnum)!==null&&re!==void 0?re:b,meta:(ue=P.meta)!==null&&ue!==void 0?ue:!0,messages:(ye=P.messages)!==null&&ye!==void 0?ye:!0,inlineRefs:(Se=P.inlineRefs)!==null&&Se!==void 0?Se:!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:(Ke=P.validateFormats)!==null&&Ke!==void 0?Ke:!0,unicodeRegExp:(ut=P.unicodeRegExp)!==null&&ut!==void 0?ut:!0,int32range:(ve=P.int32range)!==null&&ve!==void 0?ve:!0,uriResolver:ce}}class E{constructor(M={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,M=this.opts={...M,...w(M)};const{es5:B,lines:I}=this.opts.code;this.scope=new o.ValueScope({scope:{},prefixes:k,es5:B,lines:I}),this.logger=O(M.logger);const D=M.validateFormats;M.validateFormats=!1,this.RULES=(0,n.getRules)(),h.call(this,v,M,"NOT SUPPORTED"),h.call(this,g,M,"DEPRECATED","warn"),this._metaOpts=S.call(this),M.formats&&x.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&_.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),C.call(this),M.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:B,schemaId:I}=this.opts;let D=f;I==="id"&&(D={...f},D.id=D.$id,delete D.$id),B&&M&&this.addMetaSchema(D,D[I],!1)}defaultMeta(){const{meta:M,schemaId:B}=this.opts;return this.opts.defaultMeta=typeof M=="object"?M[B]||M:void 0}validate(M,B){let I;if(typeof M=="string"){if(I=this.getSchema(M),!I)throw new Error(`no schema with key or ref "${M}"`)}else I=this.compile(M);const D=I(B);return"$async"in I||(this.errors=I.errors),D}compile(M,B){const I=this._addSchema(M,B);return I.validate||this._compileSchemaEnv(I)}compileAsync(M,B){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:I}=this.opts;return D.call(this,M,B);async function D(Z,z){await L.call(this,Z.$schema);const $=this._addSchema(Z,z);return $.validate||U.call(this,$)}async function L(Z){Z&&!this.getSchema(Z)&&await D.call(this,{$ref:Z},!0)}async function U(Z){try{return this._compileSchemaEnv(Z)}catch(z){if(!(z instanceof a.default))throw z;return R.call(this,z),await H.call(this,z.missingSchema),U.call(this,Z)}}function R({missingSchema:Z,missingRef:z}){if(this.refs[Z])throw new Error(`AnySchema ${Z} is loaded but ${z} cannot be resolved`)}async function H(Z){const z=await G.call(this,Z);this.refs[Z]||await L.call(this,z.$schema),this.refs[Z]||this.addSchema(z,Z,B)}async function G(Z){const z=this._loading[Z];if(z)return z;try{return await(this._loading[Z]=I(Z))}finally{delete this._loading[Z]}}}addSchema(M,B,I,D=this.opts.validateSchema){if(Array.isArray(M)){for(const U of M)this.addSchema(U,void 0,I,D);return this}let L;if(typeof M=="object"){const{schemaId:U}=this.opts;if(L=M[U],L!==void 0&&typeof L!="string")throw new Error(`schema ${U} must be string`)}return B=(0,l.normalizeId)(B||L),this._checkUnique(B),this.schemas[B]=this._addSchema(M,I,B,D,!0),this}addMetaSchema(M,B,I=this.opts.validateSchema){return this.addSchema(M,B,!0,I),this}validateSchema(M,B){if(typeof M=="boolean")return!0;let I;if(I=M.$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 D=this.validate(I,M);if(!D&&B){const L="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(L);else throw new Error(L)}return D}getSchema(M){let B;for(;typeof(B=y.call(this,M))=="string";)M=B;if(B===void 0){const{schemaId:I}=this.opts,D=new s.SchemaEnv({schema:{},schemaId:I});if(B=s.resolveSchema.call(this,D,M),!B)return;this.refs[M]=B}return B.validate||this._compileSchemaEnv(B)}removeSchema(M){if(M instanceof RegExp)return this._removeAllSchemas(this.schemas,M),this._removeAllSchemas(this.refs,M),this;switch(typeof M){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const B=y.call(this,M);return typeof B=="object"&&this._cache.delete(B.schema),delete this.schemas[M],delete this.refs[M],this}case"object":{const B=M;this._cache.delete(B);let I=M[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(M){for(const B of M)this.addKeyword(B);return this}addKeyword(M,B){let I;if(typeof M=="string")I=M,typeof B=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),B.keyword=I);else if(typeof M=="object"&&B===void 0){if(B=M,I=B.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,B),!B)return(0,c.eachItem)(I,L=>j.call(this,L)),this;J.call(this,B);const D={...B,type:(0,u.getJSONTypes)(B.type),schemaType:(0,u.getJSONTypes)(B.schemaType)};return(0,c.eachItem)(I,D.type.length===0?L=>j.call(this,L,D):L=>D.type.forEach(U=>j.call(this,L,D,U))),this}getKeyword(M){const B=this.RULES.all[M];return typeof B=="object"?B.definition:!!B}removeKeyword(M){const{RULES:B}=this;delete B.keywords[M],delete B.all[M];for(const I of B.rules){const D=I.rules.findIndex(L=>L.keyword===M);D>=0&&I.rules.splice(D,1)}return this}addFormat(M,B){return typeof B=="string"&&(B=new RegExp(B)),this.formats[M]=B,this}errorsText(M=this.errors,{separator:B=", ",dataVar:I="data"}={}){return!M||M.length===0?"No errors":M.map(D=>`${I}${D.instancePath} ${D.message}`).reduce((D,L)=>D+B+L)}$dataMetaSchema(M,B){const I=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const D of B){const L=D.split("/").slice(1);let U=M;for(const R of L)U=U[R];for(const R in I){const H=I[R];if(typeof H!="object")continue;const{$data:G}=H.definition,Z=U[R];G&&Z&&(U[R]=X(Z))}}return M}_removeAllSchemas(M,B){for(const I in M){const D=M[I];(!B||B.test(I))&&(typeof D=="string"?delete M[I]:D&&!D.meta&&(this._cache.delete(D.schema),delete M[I]))}}_addSchema(M,B,I,D=this.opts.validateSchema,L=this.opts.addUsedSchema){let U;const{schemaId:R}=this.opts;if(typeof M=="object")U=M[R];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof M!="boolean")throw new Error("schema must be object or boolean")}let H=this._cache.get(M);if(H!==void 0)return H;I=(0,l.normalizeId)(U||I);const G=l.getSchemaRefs.call(this,M,I);return H=new s.SchemaEnv({schema:M,schemaId:R,meta:B,baseId:I,localRefs:G}),this._cache.set(H.schema,H),L&&!I.startsWith("#")&&(I&&this._checkUnique(I),this.refs[I]=H),D&&this.validateSchema(M,!0),H}_checkUnique(M){if(this.schemas[M]||this.refs[M])throw new Error(`schema with key or id "${M}" already exists`)}_compileSchemaEnv(M){if(M.meta?this._compileMetaSchema(M):s.compileSchema.call(this,M),!M.validate)throw new Error("ajv implementation error");return M.validate}_compileMetaSchema(M){const B=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,M)}finally{this.opts=B}}}E.ValidationError=i.default,E.MissingRefError=a.default,e.default=E;function h(P,M,B,I="error"){for(const D in P){const L=D;L in M&&this.logger[I](`${B}: option ${D}. ${P[L]}`)}}function y(P){return P=(0,l.normalizeId)(P),this.schemas[P]||this.refs[P]}function C(){const P=this.opts.schemas;if(P)if(Array.isArray(P))this.addSchema(P);else for(const M in P)this.addSchema(P[M],M)}function x(){for(const P in this.opts.formats){const M=this.opts.formats[P];M&&this.addFormat(P,M)}}function _(P){if(Array.isArray(P)){this.addVocabulary(P);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in P){const B=P[M];B.keyword||(B.keyword=M),this.addKeyword(B)}}function S(){const P={...this.opts};for(const M of m)delete P[M];return P}const A={log(){},warn(){},error(){}};function O(P){if(P===!1)return A;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 F=/^[a-z_$][a-z0-9_$:-]*$/i;function T(P,M){const{RULES:B}=this;if((0,c.eachItem)(P,I=>{if(B.keywords[I])throw new Error(`Keyword ${I} is already defined`);if(!F.test(I))throw new Error(`Keyword ${I} has invalid name`)}),!!M&&M.$data&&!("code"in M||"validate"in M))throw new Error('$data keyword must have "code" or "validate" function')}function j(P,M,B){var I;const D=M==null?void 0:M.post;if(B&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:L}=this;let U=D?L.post:L.rules.find(({type:H})=>H===B);if(U||(U={type:B,rules:[]},L.rules.push(U)),L.keywords[P]=!0,!M)return;const R={keyword:P,definition:{...M,type:(0,u.getJSONTypes)(M.type),schemaType:(0,u.getJSONTypes)(M.schemaType)}};M.before?q.call(this,U,R,M.before):U.rules.push(R),L.all[P]=R,(I=M.implements)===null||I===void 0||I.forEach(H=>this.addKeyword(H))}function q(P,M,B){const I=P.rules.findIndex(D=>D.keyword===B);I>=0?P.rules.splice(I,0,M):(P.rules.push(M),this.logger.warn(`rule ${B} is not defined`))}function J(P){let{metaSchema:M}=P;M!==void 0&&(P.$data&&this.opts.$data&&(M=X(M)),P.validateSchema=this.compile(M,!0))}const Y={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function X(P){return{anyOf:[P,Y]}}})(pf)),pf}var Io={},To={},No={},$v;function mM(){if($v)return No;$v=1,Object.defineProperty(No,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return No.default=e,No}var _n={},zv;function hM(){if(zv)return _n;zv=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.callRef=_n.getValidate=void 0;const e=_o(),t=Pr(),r=Ie(),i=On(),a=wf(),n=Ve(),s={keyword:"$ref",schemaType:"string",code(u){const{gen:c,schema:f,it:p}=u,{baseId:d,schemaEnv:m,validateName:k,opts:v,self:g}=p,{root:b}=m;if((f==="#"||f==="#/")&&d===b.baseId)return E();const w=a.resolveRef.call(g,b,d,f);if(w===void 0)throw new e.default(p.opts.uriResolver,d,f);if(w instanceof a.SchemaEnv)return h(w);return y(w);function E(){if(m===b)return l(u,k,m,m.$async);const C=c.scopeValue("root",{ref:b});return l(u,(0,r._)`${C}.validate`,b,b.$async)}function h(C){const x=o(u,C);l(u,x,C,C.$async)}function y(C){const x=c.scopeValue("schema",v.code.source===!0?{ref:C,code:(0,r.stringify)(C)}:{ref:C}),_=c.name("valid"),S=u.subschema({schema:C,dataTypes:[],schemaPath:r.nil,topSchemaRef:x,errSchemaPath:f},_);u.mergeEvaluated(S),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`}_n.getValidate=o;function l(u,c,f,p){const{gen:d,it:m}=u,{allErrors:k,schemaEnv:v,opts:g}=m,b=g.passContext?i.default.this:r.nil;p?w():E();function w(){if(!v.$async)throw new Error("async schema referenced by sync schema");const C=d.let("valid");d.try(()=>{d.code((0,r._)`await ${(0,t.callValidateCode)(u,c,b)}`),y(c),k||d.assign(C,!0)},x=>{d.if((0,r._)`!(${x} instanceof ${m.ValidationError})`,()=>d.throw(x)),h(x),k||d.assign(C,!1)}),u.ok(C)}function E(){u.result((0,t.callValidateCode)(u,c,b),()=>y(c),()=>h(c))}function h(C){const x=(0,r._)`${C}.errors`;d.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${x} : ${i.default.vErrors}.concat(${x})`),d.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function y(C){var x;if(!m.opts.unevaluated)return;const _=(x=f==null?void 0:f.validate)===null||x===void 0?void 0:x.evaluated;if(m.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(m.props=n.mergeEvaluated.props(d,_.props,m.props));else{const S=d.var("props",(0,r._)`${C}.evaluated.props`);m.props=n.mergeEvaluated.props(d,S,m.props,r.Name)}if(m.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(m.items=n.mergeEvaluated.items(d,_.items,m.items));else{const S=d.var("items",(0,r._)`${C}.evaluated.items`);m.items=n.mergeEvaluated.items(d,S,m.items,r.Name)}}}return _n.callRef=l,_n.default=s,_n}var Rv;function gM(){if(Rv)return To;Rv=1,Object.defineProperty(To,"__esModule",{value:!0});const e=mM(),t=hM(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return To.default=r,To}var Fo={},Do={},Uv;function yM(){if(Uv)return Do;Uv=1,Object.defineProperty(Do,"__esModule",{value:!0});const e=Ie(),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 Do.default=a,Do}var Mo={},Bv;function vM(){if(Bv)return Mo;Bv=1,Object.defineProperty(Mo,"__esModule",{value:!0});const e=Ie(),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 Mo.default=r,Mo}var jo={},Lo={},Vv;function bM(){if(Vv)return Lo;Vv=1,Object.defineProperty(Lo,"__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 Lo.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Lo}var Hv;function kM(){if(Hv)return jo;Hv=1,Object.defineProperty(jo,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=bM(),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 jo.default=a,jo}var qo={},Kv;function wM(){if(Kv)return qo;Kv=1,Object.defineProperty(qo,"__esModule",{value:!0});const e=Pr(),t=Ve(),r=Ie(),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,p=f.opts.unicodeRegExp?"u":"";if(l){const{regExp:d}=f.opts.code,m=d.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,d),k=s.let("valid");s.try(()=>s.assign(k,(0,r._)`${m}(${c}, ${p}).test(${o})`),()=>s.assign(k,!1)),n.fail$data((0,r._)`!${k}`)}else{const d=(0,e.usePattern)(n,u);n.fail$data((0,r._)`!${d}.test(${o})`)}}};return qo.default=a,qo}var $o={},Wv;function SM(){if(Wv)return $o;Wv=1,Object.defineProperty($o,"__esModule",{value:!0});const e=Ie(),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 $o.default=r,$o}var zo={},Gv;function CM(){if(Gv)return zo;Gv=1,Object.defineProperty(zo,"__esModule",{value:!0});const e=Pr(),t=Ie(),r=Ve(),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:p}=f;if(!c&&o.length===0)return;const d=o.length>=p.loopRequired;if(f.allErrors?m():k(),p.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 h=f.schemaEnv.baseId+f.errSchemaPath,y=`required property "${E}" is not defined at "${h}" (strictRequired)`;(0,r.checkStrictMode)(f,y,f.opts.strictRequired)}}function m(){if(d||c)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||c){const w=s.let("valid",!0);n.block$data(w,()=>g(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",l,b=>{n.setParams({missingProperty:b}),s.if((0,e.noPropertyInData)(s,u,b,p.ownProperties),()=>n.error())})}function g(b,w){n.setParams({missingProperty:b}),s.forOf(b,l,()=>{s.assign(w,(0,e.propertyInData)(s,u,b,p.ownProperties)),s.if((0,t.not)(w),()=>{n.error(),s.break()})},t.nil)}}};return zo.default=a,zo}var Ro={},Jv;function EM(){if(Jv)return Ro;Jv=1,Object.defineProperty(Ro,"__esModule",{value:!0});const e=Ie(),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 Ro.default=r,Ro}var Uo={},Bo={},Yv;function Ef(){if(Yv)return Bo;Yv=1,Object.defineProperty(Bo,"__esModule",{value:!0});const e=xv();return e.code='require("ajv/dist/runtime/equal").default',Bo.default=e,Bo}var Xv;function AM(){if(Xv)return Uo;Xv=1,Object.defineProperty(Uo,"__esModule",{value:!0});const e=Co(),t=Ie(),r=Ve(),i=Ef(),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:p,it:d}=s;if(!u&&!c)return;const m=o.let("valid"),k=f.items?(0,e.getSchemaTypes)(f.items):[];s.block$data(m,v,(0,t._)`${p} === false`),s.ok(m);function v(){const E=o.let("i",(0,t._)`${l}.length`),h=o.let("j");s.setParams({i:E,j:h}),o.assign(m,!0),o.if((0,t._)`${E} > 1`,()=>(g()?b:w)(E,h))}function g(){return k.length>0&&!k.some(E=>E==="object"||E==="array")}function b(E,h){const y=o.name("item"),C=(0,e.checkDataTypes)(k,y,d.opts.strictNumbers,e.DataType.Wrong),x=o.const("indices",(0,t._)`{}`);o.for((0,t._)`;${E}--;`,()=>{o.let(y,(0,t._)`${l}[${E}]`),o.if(C,(0,t._)`continue`),k.length>1&&o.if((0,t._)`typeof ${y} == "string"`,(0,t._)`${y} += "_"`),o.if((0,t._)`typeof ${x}[${y}] == "number"`,()=>{o.assign(h,(0,t._)`${x}[${y}]`),s.error(),o.assign(m,!1).break()}).code((0,t._)`${x}[${y}] = ${E}`)})}function w(E,h){const y=(0,r.useFunc)(o,i.default),C=o.name("outer");o.label(C).for((0,t._)`;${E}--;`,()=>o.for((0,t._)`${h} = ${E}; ${h}--;`,()=>o.if((0,t._)`${y}(${l}[${E}], ${l}[${h}])`,()=>{s.error(),o.assign(m,!1).break(C)})))}}};return Uo.default=n,Uo}var Vo={},Zv;function xM(){if(Zv)return Vo;Zv=1,Object.defineProperty(Vo,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=Ef(),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 Vo.default=a,Vo}var Ho={},Qv;function OM(){if(Qv)return Ho;Qv=1,Object.defineProperty(Ho,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=Ef(),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 p=u.length>=f.opts.loopEnum;let d;const m=()=>d??(d=(0,t.useFunc)(s,r.default));let k;if(p||l)k=s.let("valid"),n.block$data(k,v);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const b=s.const("vSchema",c);k=(0,e.or)(...u.map((w,E)=>g(b,E)))}n.pass(k);function v(){s.assign(k,!1),s.forOf("v",c,b=>s.if((0,e._)`${m()}(${o}, ${b})`,()=>s.assign(k,!0).break()))}function g(b,w){const E=u[w];return typeof E=="object"&&E!==null?(0,e._)`${m()}(${o}, ${b}[${w}])`:(0,e._)`${o} === ${E}`}}};return Ho.default=a,Ho}var eb;function _M(){if(eb)return Fo;eb=1,Object.defineProperty(Fo,"__esModule",{value:!0});const e=yM(),t=vM(),r=kM(),i=wM(),a=SM(),n=CM(),s=EM(),o=AM(),l=xM(),u=OM(),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 Fo.default=c,Fo}var Ko={},Xi={},tb;function rb(){if(tb)return Xi;tb=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.validateAdditionalItems=void 0;const e=Ie(),t=Ve(),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 p=o.const("len",(0,e._)`${u}.length`);if(l===!1)n.setParams({len:s.length}),n.pass((0,e._)`${p} <= ${s.length}`);else if(typeof l=="object"&&!(0,t.alwaysValidSchema)(f,l)){const m=o.var("valid",(0,e._)`${p} <= ${s.length}`);o.if((0,e.not)(m),()=>d(m)),n.ok(m)}function d(m){o.forRange("i",s.length,p,k=>{n.subschema({keyword:c,dataProp:k,dataPropType:t.Type.Num},m),f.allErrors||o.if((0,e.not)(m),()=>o.break())})}}return Xi.validateAdditionalItems=a,Xi.default=i,Xi}var Wo={},Zi={},nb;function ib(){if(nb)return Zi;nb=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.validateTuple=void 0;const e=Ie(),t=Ve(),r=Pr(),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:p}=n;k(u),p.opts.unevaluated&&o.length&&p.items!==!0&&(p.items=t.mergeEvaluated.items(l,o.length,p.items));const d=l.name("valid"),m=l.const("len",(0,e._)`${c}.length`);o.forEach((v,g)=>{(0,t.alwaysValidSchema)(p,v)||(l.if((0,e._)`${m} > ${g}`,()=>n.subschema({keyword:f,schemaProp:g,dataProp:g},d)),n.ok(d))});function k(v){const{opts:g,errSchemaPath:b}=p,w=o.length,E=w===v.minItems&&(w===v.maxItems||v[s]===!1);if(g.strictTuples&&!E){const h=`"${f}" is ${w}-tuple, but minItems or maxItems/${s} are not specified or different at path "${b}"`;(0,t.checkStrictMode)(p,h,g.strictTuples)}}}return Zi.validateTuple=a,Zi.default=i,Zi}var ab;function PM(){if(ab)return Wo;ab=1,Object.defineProperty(Wo,"__esModule",{value:!0});const e=ib(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Wo.default=t,Wo}var Go={},sb;function IM(){if(sb)return Go;sb=1,Object.defineProperty(Go,"__esModule",{value:!0});const e=Ie(),t=Ve(),r=Pr(),i=rb(),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 Go.default=n,Go}var Jo={},ob;function TM(){if(ob)return Jo;ob=1,Object.defineProperty(Jo,"__esModule",{value:!0});const e=Ie(),t=Ve(),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:p,maxContains:d}=o;u.opts.next?(c=p===void 0?1:p,f=d):c=1;const m=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._)`${m} >= ${c}`;f!==void 0&&(w=(0,e._)`${w} && ${m} <= ${f}`),a.pass(w);return}u.items=!0;const k=n.name("valid");f===void 0&&c===1?g(k,()=>n.if(k,()=>n.break())):c===0?(n.let(k,!0),f!==void 0&&n.if((0,e._)`${l}.length > 0`,v)):(n.let(k,!1),v()),a.result(k,()=>a.reset());function v(){const w=n.name("_valid"),E=n.let("count",0);g(w,()=>n.if(w,()=>b(E)))}function g(w,E){n.forRange("i",0,m,h=>{a.subschema({keyword:"contains",dataProp:h,dataPropType:t.Type.Num,compositeRule:!0},w),E()})}function b(w){n.code((0,e._)`${w}++`),f===void 0?n.if((0,e._)`${w} >= ${c}`,()=>n.assign(k,!0).break()):(n.if((0,e._)`${w} > ${f}`,()=>n.assign(k,!1).break()),c===1?n.assign(k,!0):n.if((0,e._)`${w} >= ${c}`,()=>n.assign(k,!0)))}}};return Jo.default=i,Jo}var Af={},lb;function NM(){return lb||(lb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ie(),r=Ve(),i=Pr();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},
81
81
  missingProperty: ${f},
82
82
  depsCount: ${u},
83
- 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 p=Array.isArray(l[f])?u:c;p[f]=l[f]}return[u,c]}function s(l,u=l.schema){const{gen:c,data:f,it:p}=l;if(Object.keys(u).length===0)return;const d=c.let("missing");for(const m in u){const k=u[m];if(k.length===0)continue;const v=(0,i.propertyInData)(c,f,m,p.opts.ownProperties);l.setParams({property:m,depsCount:k.length,deps:k.join(", ")}),p.allErrors?c.if(v,()=>{for(const g of k)(0,i.checkReportMissingProp)(l,g)}):(c.if((0,t._)`${v} && (${(0,i.checkMissingProp)(l,k,d)})`),(0,i.reportMissingProp)(l,d),c.else())}}e.validatePropertyDeps=s;function o(l,u=l.schema){const{gen:c,data:f,keyword:p,it:d}=l,m=c.name("valid");for(const k in u)(0,r.alwaysValidSchema)(d,u[k])||(c.if((0,i.propertyInData)(c,f,k,d.opts.ownProperties),()=>{const v=l.subschema({keyword:p,schemaProp:k},m);l.mergeValidEvaluated(v,m)},()=>c.var(m,!0)),l.ok(m))}e.validateSchemaDeps=o,e.default=a})(Af)),Af}var Yo={},lb;function NM(){if(lb)return Yo;lb=1,Object.defineProperty(Yo,"__esModule",{value:!0});const e=Ie(),t=Ve(),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 Yo.default=i,Yo}var Xo={},ub;function cb(){if(ub)return Xo;ub=1,Object.defineProperty(Xo,"__esModule",{value:!0});const e=Pr(),t=Ie(),r=On(),i=Ve(),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:p}=s;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:m}=p;if(p.props=!0,m.removeAdditional!=="all"&&(0,i.alwaysValidSchema)(p,l))return;const k=(0,e.allSchemaProperties)(u.properties),v=(0,e.allSchemaProperties)(u.patternProperties);g(),s.ok((0,t._)`${f} === ${r.default.errors}`);function g(){o.forIn("key",c,y=>{!k.length&&!v.length?E(y):o.if(b(y),()=>E(y))})}function b(y){let C;if(k.length>8){const x=(0,i.schemaRefOrVal)(p,u.properties,"properties");C=(0,e.isOwnProperty)(o,x,y)}else k.length?C=(0,t.or)(...k.map(x=>(0,t._)`${y} === ${x}`)):C=t.nil;return v.length&&(C=(0,t.or)(C,...v.map(x=>(0,t._)`${(0,e.usePattern)(s,x)}.test(${y})`))),(0,t.not)(C)}function w(y){o.code((0,t._)`delete ${c}[${y}]`)}function E(y){if(m.removeAdditional==="all"||m.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)(p,l)){const C=o.name("valid");m.removeAdditional==="failing"?(h(y,C,!1),o.if((0,t.not)(C),()=>{s.reset(),w(y)})):(h(y,C),d||o.if((0,t.not)(C),()=>o.break()))}}function h(y,C,x){const _={keyword:"additionalProperties",dataProp:y,dataPropType:i.Type.Str};x===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(_,C)}}};return Xo.default=n,Xo}var Zo={},fb;function FM(){if(fb)return Zo;fb=1,Object.defineProperty(Zo,"__esModule",{value:!0});const e=Ao(),t=Pr(),r=Ve(),i=cb(),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 v of f)c.definedProperties.add(v);c.opts.unevaluated&&f.length&&c.props!==!0&&(c.props=r.mergeEvaluated.props(s,(0,r.toHash)(f),c.props));const p=f.filter(v=>!(0,r.alwaysValidSchema)(c,o[v]));if(p.length===0)return;const d=s.name("valid");for(const v of p)m(v)?k(v):(s.if((0,t.propertyInData)(s,u,v,c.opts.ownProperties)),k(v),c.allErrors||s.else().var(d,!0),s.endIf()),n.it.definedProperties.add(v),n.ok(d);function m(v){return c.opts.useDefaults&&!c.compositeRule&&o[v].default!==void 0}function k(v){n.subschema({keyword:"properties",schemaProp:v,dataProp:v},d)}}};return Zo.default=a,Zo}var Qo={},db;function DM(){if(db)return Qo;db=1,Object.defineProperty(Qo,"__esModule",{value:!0});const e=Pr(),t=Ie(),r=Ve(),i=Ve(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,data:l,parentSchema:u,it:c}=n,{opts:f}=c,p=(0,e.allSchemaProperties)(o),d=p.filter(E=>(0,r.alwaysValidSchema)(c,o[E]));if(p.length===0||d.length===p.length&&(!c.opts.unevaluated||c.props===!0))return;const m=f.strictSchema&&!f.allowMatchingProperties&&u.properties,k=s.name("valid");c.props!==!0&&!(c.props instanceof t.Name)&&(c.props=(0,i.evaluatedPropsToName)(s,c.props));const{props:v}=c;g();function g(){for(const E of p)m&&b(E),c.allErrors?w(E):(s.var(k,!0),w(E),s.if(k))}function b(E){for(const h in m)new RegExp(E).test(h)&&(0,r.checkStrictMode)(c,`property ${h} matches pattern ${E} (use allowMatchingProperties)`)}function w(E){s.forIn("key",l,h=>{s.if((0,t._)`${(0,e.usePattern)(n,E)}.test(${h})`,()=>{const y=d.includes(E);y||n.subschema({keyword:"patternProperties",schemaProp:E,dataProp:h,dataPropType:i.Type.Str},k),c.opts.unevaluated&&v!==!0?s.assign((0,t._)`${v}[${h}]`,!0):!y&&!c.allErrors&&s.if((0,t.not)(k),()=>s.break())})})}}};return Qo.default=a,Qo}var el={},pb;function MM(){if(pb)return el;pb=1,Object.defineProperty(el,"__esModule",{value:!0});const e=Ve(),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 el.default=t,el}var tl={},mb;function jM(){if(mb)return tl;mb=1,Object.defineProperty(tl,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Pr().validateUnion,error:{message:"must match a schema in anyOf"}};return tl.default=t,tl}var rl={},hb;function LM(){if(hb)return rl;hb=1,Object.defineProperty(rl,"__esModule",{value:!0});const e=Ie(),t=Ve(),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),p=n.name("_valid");a.setParams({passing:f}),n.block(d),a.result(c,()=>a.reset(),()=>a.error(!0));function d(){u.forEach((m,k)=>{let v;(0,t.alwaysValidSchema)(l,m)?n.var(p,!0):v=a.subschema({keyword:"oneOf",schemaProp:k,compositeRule:!0},p),k>0&&n.if((0,e._)`${p} && ${c}`).assign(c,!1).assign(f,(0,e._)`[${f}, ${k}]`).else(),n.if(p,()=>{n.assign(c,!0),n.assign(f,k),v&&a.mergeEvaluated(v,e.Name)})})}}};return rl.default=i,rl}var nl={},gb;function qM(){if(gb)return nl;gb=1,Object.defineProperty(nl,"__esModule",{value:!0});const e=Ve(),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 nl.default=t,nl}var il={},yb;function $M(){if(yb)return il;yb=1,Object.defineProperty(il,"__esModule",{value:!0});const e=Ie(),t=Ve(),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),p=s.name("_valid");if(d(),n.reset(),u&&c){const k=s.let("ifClause");n.setParams({ifClause:k}),s.if(p,m("then",k),m("else",k))}else u?s.if(p,m("then")):s.if((0,e.not)(p),m("else"));n.pass(f,()=>n.error(!0));function d(){const k=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},p);n.mergeEvaluated(k)}function m(k,v){return()=>{const g=n.subschema({keyword:k},p);s.assign(f,p),n.mergeValidEvaluated(g,f),v?s.assign(v,(0,e._)`${k}`):n.setParams({ifClause:k})}}}};function a(n,s){const o=n.schema[s];return o!==void 0&&!(0,t.alwaysValidSchema)(n,o)}return il.default=i,il}var al={},vb;function zM(){if(vb)return al;vb=1,Object.defineProperty(al,"__esModule",{value:!0});const e=Ve(),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 al.default=t,al}var bb;function RM(){if(bb)return Ko;bb=1,Object.defineProperty(Ko,"__esModule",{value:!0});const e=tb(),t=_M(),r=nb(),i=PM(),a=IM(),n=TM(),s=NM(),o=cb(),l=FM(),u=DM(),c=MM(),f=jM(),p=LM(),d=qM(),m=$M(),k=zM();function v(g=!1){const b=[c.default,f.default,p.default,d.default,m.default,k.default,s.default,o.default,n.default,l.default,u.default];return g?b.push(t.default,i.default):b.push(e.default,r.default),b.push(a.default),b}return Ko.default=v,Ko}var sl={},ol={},kb;function BM(){if(kb)return ol;kb=1,Object.defineProperty(ol,"__esModule",{value:!0});const e=Ie(),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:p,schemaEnv:d,self:m}=c;if(!f.validateFormats)return;o?k():v();function k(){const g=n.scopeValue("formats",{ref:m.formats,code:f.code.formats}),b=n.const("fDef",(0,e._)`${g}[${u}]`),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)),i.fail$data((0,e.or)(h(),y()));function h(){return f.strictSchema===!1?e.nil:(0,e._)`${u} && !${E}`}function y(){const C=d.$async?(0,e._)`(${b}.async ? await ${E}(${s}) : ${E}(${s}))`:(0,e._)`${E}(${s})`,x=(0,e._)`(typeof ${E} == "function" ? ${C} : ${E}.test(${s}))`;return(0,e._)`${E} && ${E} !== true && ${w} === ${a} && !${x}`}}function v(){const g=m.formats[l];if(!g){h();return}if(g===!0)return;const[b,w,E]=y(g);b===a&&i.pass(C());function h(){if(f.strictSchema===!1){m.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${l}" ignored in schema at path "${p}"`}}function y(x){const _=x instanceof RegExp?(0,e.regexpCode)(x):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(l)}`:void 0,S=n.scopeValue("formats",{key:l,ref:x,code:_});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,e._)`${S}.validate`]:["string",x,S]}function C(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.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 ol.default=r,ol}var wb;function UM(){if(wb)return sl;wb=1,Object.defineProperty(sl,"__esModule",{value:!0});const t=[BM().default];return sl.default=t,sl}var ci={},Sb;function VM(){return Sb||(Sb=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.contentVocabulary=ci.metadataVocabulary=void 0,ci.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],ci.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),ci}var Cb;function HM(){if(Cb)return Io;Cb=1,Object.defineProperty(Io,"__esModule",{value:!0});const e=hM(),t=OM(),r=RM(),i=UM(),a=VM(),n=[e.default,t.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];return Io.default=n,Io}var ll={},ss={},Eb;function KM(){if(Eb)return ss;Eb=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(ss.DiscrError=e={})),ss}var Ab;function WM(){if(Ab)return ll;Ab=1,Object.defineProperty(ll,"__esModule",{value:!0});const e=Ie(),t=KM(),r=wf(),i=_o(),a=Ve(),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:p}=o,{oneOf:d}=f;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const m=c.propertyName;if(typeof m!="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 k=l.let("valid",!1),v=l.const("tag",(0,e._)`${u}${(0,e.getProperty)(m)}`);l.if((0,e._)`typeof ${v} == "string"`,()=>g(),()=>o.error(!1,{discrError:t.DiscrError.Tag,tag:v,tagName:m})),o.ok(k);function g(){const E=w();l.if(!1);for(const h in E)l.elseIf((0,e._)`${v} === ${h}`),l.assign(k,b(E[h]));l.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:m}),l.endIf()}function b(E){const h=l.name("valid"),y=o.subschema({keyword:"oneOf",schemaProp:E},h);return o.mergeEvaluated(y,e.Name),h}function w(){var E;const h={},y=x(f);let C=!0;for(let A=0;A<d.length;A++){let O=d[A];if(O!=null&&O.$ref&&!(0,a.schemaHasRulesButRef)(O,p.self.RULES)){const T=O.$ref;if(O=r.resolveRef.call(p.self,p.schemaEnv.root,p.baseId,T),O instanceof r.SchemaEnv&&(O=O.schema),O===void 0)throw new i.default(p.opts.uriResolver,p.baseId,T)}const F=(E=O==null?void 0:O.properties)===null||E===void 0?void 0:E[m];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${m}"`);C=C&&(y||x(O)),_(F,A)}if(!C)throw new Error(`discriminator: "${m}" must be required`);return h;function x({required:A}){return Array.isArray(A)&&A.includes(m)}function _(A,O){if(A.const)S(A.const,O);else if(A.enum)for(const F of A.enum)S(F,O);else throw new Error(`discriminator: "properties/${m}" must have "const" or "enum"`)}function S(A,O){if(typeof A!="string"||A in h)throw new Error(`discriminator: "${m}" values must be unique strings`);h[A]=O}}}};return ll.default=s,ll}const GM={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var xb;function Ob(){return xb||(xb=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=dM(),i=HM(),a=WM(),n=GM,s=["/properties"],o="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(n,s):n;this.addMetaSchema(m,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=Ao();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=Ie();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=kf();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=_o();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(bo,bo.exports)),bo.exports}var JM=Ob();const YM=jr(JM);var ul={exports:{}},xf={},_b;function XM(){return _b||(_b=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(_,S){return{validate:_,compare:S}}e.fullFormats={date:t(n,s),time:t(l,u),"date-time":t(f,p),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:x,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:E},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,p),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 S=i.exec(_);if(!S)return!1;const A=+S[1],O=+S[2],F=+S[3];return O>=1&&O<=12&&F>=1&&F<=(O===2&&r(A)?29:a[O])}function s(_,S){if(_&&S)return _>S?1:_<S?-1:0}const o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(_,S){const A=o.exec(_);if(!A)return!1;const O=+A[1],F=+A[2],T=+A[3],j=A[5];return(O<=23&&F<=59&&T<=59||O===23&&F===59&&T===60)&&(!S||j!=="")}function u(_,S){if(!(_&&S))return;const A=o.exec(_),O=o.exec(S);if(A&&O)return _=A[1]+A[2]+A[3]+(A[4]||""),S=O[1]+O[2]+O[3]+(O[4]||""),_>S?1:_<S?-1:0}const c=/t|\s/i;function f(_){const S=_.split(c);return S.length===2&&n(S[0])&&l(S[1],!0)}function p(_,S){if(!(_&&S))return;const[A,O]=_.split(c),[F,T]=S.split(c),j=s(A,F);if(j!==void 0)return j||u(O,T)}const d=/\/|:/,m=/^(?:[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(_){return d.test(_)&&m.test(_)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function g(_){return v.lastIndex=0,v.test(_)}const b=-2147483648,w=2**31-1;function E(_){return Number.isInteger(_)&&_<=w&&_>=b}function h(_){return Number.isInteger(_)}function y(){return!0}const C=/[^\\]\\Z/;function x(_){if(C.test(_))return!1;try{return new RegExp(_),!0}catch{return!1}}})(xf)),xf}var Of={},Pb;function ZM(){return Pb||(Pb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Ob(),r=Ie(),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:p}=o,{opts:d,self:m}=p;if(!d.validateFormats)return;const k=new t.KeywordCxt(p,m.RULES.all.format.definition,"format");k.$data?v():g();function v(){const w=l.scopeValue("formats",{ref:m.formats,code:d.code.formats}),E=l.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 g(){const w=k.schema,E=m.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 h=l.scopeValue("formats",{key:w,ref:E,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});o.fail$data(b(h))}function b(w){return r._`${w}.compare(${u}, ${c}) ${a[f].fail} 0`}},dependencies:["format"]};const s=o=>(o.addKeyword(e.formatLimitDefinition),o);e.default=s})(Of)),Of}var Ib;function QM(){return Ib||(Ib=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=XM(),i=ZM(),a=Ie(),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,p]=c.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,n],d=c.formats||r.formatNames;return l(u,d,f,p),c.keywords&&i.default(u),u};o.get=(u,c="full")=>{const p=(c==="fast"?r.fastFormats:r.fullFormats)[u];if(!p)throw new Error(`Unknown format "${u}"`);return p};function l(u,c,f,p){var d,m;(d=(m=u.opts.code).formats)!==null&&d!==void 0||(m.formats=a._`require("ajv-formats/dist/formats").${p}`);for(const k of c)u.addFormat(k,f[k])}e.exports=t=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o})(ul,ul.exports)),ul.exports}var ej=QM();const Tb=jr(ej),tj={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},rj=/^(#?([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*\)))$/,nj=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function ij(e,t,r={},i,a=YM,n){let s=new a({...tj,...r});return i?Tb(s,i):i!==!1&&Tb(s),s.addFormat("data-url",nj),s.addFormat("color",rj),s.addKeyword(rc),Array.isArray(e)&&s.addMetaSchema(e),Re(t)&&Object.keys(t).forEach(o=>{s.addFormat(o,t[o])}),n&&(s=n(s)),s}class aj{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:i,customFormats:a,ajvOptionsOverrides:n,ajvFormatOptions:s,AjvClass:o,extenderFn:l,suppressDuplicateFiltering:u}=t;this.ajv=ij(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[tt]&&(s=this.ajv.getSchema(t[tt])),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 rM(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[tt])!==null&&r!==void 0?r:Ah;this.ajv.getSchema(a)===void 0?this.ajv.addSchema(t,a):Be(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=df(t),s=(a=n[tt])!==null&&a!==void 0?a:ND(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 cl(e={},t){return new aj(e,t)}cl();var _f,Nb;function sj(){return Nb||(Nb=1,_f=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}}),_f}var Pf,Fb;function oj(){return Fb||(Fb=1,Pf=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}}),Pf}var If,Db;function lj(){return Db||(Db=1,If=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}}),If}var Tf,Mb;function uj(){return Mb||(Mb=1,Tf=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}}),Tf}var Nf,jb;function cj(){return jb||(jb=1,Nf=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}}),Nf}var Ff,Lb;function fj(){return Lb||(Lb=1,Ff=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}}),Ff}var Df,qb;function dj(){return qb||(qb=1,Df=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}}),Df}var Mf,$b;function pj(){return $b||($b=1,Mf=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}}),Mf}var jf,zb;function mj(){return zb||(zb=1,jf=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}}),jf}var Lf,Rb;function hj(){return Rb||(Rb=1,Lf=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}}),Lf}var qf,Bb;function gj(){return Bb||(Bb=1,qf=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}}),qf}var $f,Ub;function yj(){return Ub||(Ub=1,$f=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}}),$f}var zf,Vb;function vj(){return Vb||(Vb=1,zf=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}}),zf}var Rf,Hb;function bj(){return Hb||(Hb=1,Rf=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}}),Rf}var Bf,Kb;function kj(){return Kb||(Kb=1,Bf=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}}),Bf}var Uf,Wb;function wj(){return Wb||(Wb=1,Uf=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}}),Uf}var Vf,Gb;function Sj(){return Gb||(Gb=1,Vf=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}}),Vf}var Hf,Jb;function Cj(){return Jb||(Jb=1,Hf=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}}),Hf}var Kf,Yb;function Ej(){return Yb||(Yb=1,Kf=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}}),Kf}var Wf,Xb;function Aj(){return Xb||(Xb=1,Wf=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}}),Wf}var Gf,Zb;function xj(){return Zb||(Zb=1,Gf=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}}),Gf}var Jf,Qb;function Oj(){return Qb||(Qb=1,Jf=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}}),Jf}var Yf,ek;function _j(){return ek||(ek=1,Yf=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}}),Yf}var Xf,tk;function Pj(){return tk||(tk=1,Xf={en:sj(),ar:oj(),ca:lj(),cs:uj(),de:cj(),es:fj(),fi:dj(),fr:pj(),hu:mj(),id:hj(),it:gj(),ja:yj(),ko:vj(),nb:bj(),nl:kj(),pl:wj(),"pt-BR":Sj(),ru:Cj(),sk:Ej(),sv:Aj(),th:xj(),zh:Oj(),"zh-TW":_j()}),Xf}var Ij=Pj();const os=jr(Ij),fl={flex:1,paddingLeft:6,paddingRight:6};function Tj(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:p,uiSchema:d}=e,{CopyButton:m,MoveDownButton:k,MoveUpButton:v,RemoveButton:g}=p.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(v,{id:rr(s,"moveUp"),className:"rjsf-array-item-move-up",style:fl,disabled:t||f||!a,onClick:c,uiSchema:d,registry:p})}),(a||i)&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(k,{id:rr(s,"moveDown"),className:"rjsf-array-item-move-down",style:fl,disabled:t||f||!i,onClick:u,uiSchema:d,registry:p})}),r&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(m,{id:rr(s,"copy"),className:"rjsf-array-item-copy",style:fl,disabled:t||f,onClick:o,uiSchema:d,registry:p})}),n&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(g,{id:rr(s,"remove"),className:"rjsf-array-item-remove",style:fl,disabled:t||f,onClick:l,uiSchema:d,registry:p})})]})}function Nj(e){const{children:t,buttonsProps:r,hasToolbar:i,registry:a,uiSchema:n}=e,s=pe(n),o=ge("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 Fj(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:p}=e,d=pe(p),m=ge("ArrayFieldTitleTemplate",l,d),k=ge("ArrayFieldDescriptionTemplate",l,d),{AddButton:v}=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(m,{fieldPathId:i,title:d.title||f,required:u,schema:c,uiSchema:p,registry:l,optionalDataControl:g?n:void 0}),N.jsx(k,{fieldPathId:i,description:d.description||c.description,schema:c,uiSchema:p,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(v,{id:rr(i,"add"),className:"rjsf-array-item-add",onClick:s,disabled:r||o,uiSchema:p,registry:l})})]})]})]})})})}const ls={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},Dj=()=>N.jsx("svg",{...ls,children:N.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),Mj=()=>N.jsx("svg",{...ls,children:N.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),jj=()=>N.jsxs("svg",{...ls,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"})]}),rk=()=>N.jsx("svg",{...ls,children:N.jsx("path",{d:"M3.5 8h9"})}),Lj=()=>N.jsx("svg",{...ls,children:N.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function Qi({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 qj(e){const{translateString:t}=e.registry;return N.jsx(Qi,{title:t(Oe.CopyButton),...e,icon:N.jsx(jj,{})})}function $j(e){const{translateString:t}=e.registry;return N.jsx(Qi,{title:t(Oe.MoveUpButton),...e,icon:N.jsx(Dj,{})})}function zj(e){const{translateString:t}=e.registry;return N.jsx(Qi,{title:t(Oe.MoveDownButton),...e,icon:N.jsx(Mj,{})})}function Rj(e){const{translateString:t}=e.registry;return N.jsx(Qi,{title:t(Oe.RemoveButton),...e,variant:"danger",icon:N.jsx(rk,{})})}function Bj(e){const{translateString:t}=e.registry;return N.jsx(Qi,{title:t(Oe.ClearButton),...e,icon:N.jsx(rk,{})})}function Uj({className:e,...t}){const{translateString:r}=t.registry;return N.jsx(Qi,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(Oe.AddItemButton),icon:N.jsx(Lj,{})})}function Vj({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=ef(e);return r?null:N.jsx("div",{children:N.jsx("button",{type:"submit",...i,className:`btn btn-primary ${i.className||""}`.trim(),children:t})})}const Hj={SubmitButton:Vj,AddButton:Uj,CopyButton:qj,MoveDownButton:zj,MoveUpButton:$j,RemoveButton:Rj,ClearButton:Bj};function Kj({id:e,description:t}){return t?N.jsx("div",{children:N.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?N.jsx(Sr,{children:t}):t})}):null}function Wj({errors:e=[],fieldPathId:t}){return e.length===0?null:N.jsx("ul",{className:"list-group",id:nf(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(Sr,{children:r}):r})},`${r}-${i}`))})}function Gj({fieldPathId:e,help:t,hasErrors:r}){return t?N.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:sf(e),children:t}):null}function Jj(e){var g,b;const{id:t,children:r,displayLabel:i,rawErrors:a=[],errors:n,help:s,rawDescription:o,hidden:l,label:u,required:c,schema:f,uiSchema:p,registry:d}=e,m=pe(p),k=ge("WrapIfAdditionalTemplate",d,m);if(l)return N.jsx("div",{className:"hidden",children:r});const v=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(Vu,{children:f.markdown.before})}),N.jsx(k,{...e,children:N.jsxs("div",{className:"form-group",children:[i&&N.jsxs("label",{className:`form-label${v?" text-danger":""}`,htmlFor:t,children:[N.jsx(Sr,{components:{p:"span"},children:u}),c?"*":null]}),r,i&&o&&N.jsx("small",{className:`form-text ${v?"text-danger":"text-muted"}`,children:N.jsx(Sr,{children:o})}),n,s]})}),((b=f==null?void 0:f.markdown)==null?void 0:b.after)&&N.jsx("div",{className:"fcode-form-markdown",children:N.jsx(Vu,{children:f.markdown.after})})]})}function Yj(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:p,uiSchema:d}=e,m=pe(d),k=ge("TitleFieldTemplate",u,m),v=ge("DescriptionFieldTemplate",u,m),{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:[p&&N.jsx(k,{id:yo(a),title:p,required:c,schema:f,uiSchema:d,registry:u,optionalDataControl:w?s:void 0}),t&&N.jsx(v,{id:xn(a),description:t,schema:f,uiSchema:d,registry:u}),w?void 0:s,N.jsxs("div",{className:"container-fluid p-0",children:[o.map(E=>N.jsx("div",{className:`row mb-2${E.hidden?" d-none":""}`,children:N.jsx("div",{className:"col-12",children:E.content})},E.name)),xh(f,d,i)&&N.jsx("div",{className:"row",children:N.jsx("div",{className:"col-3 py-4",children:N.jsx(g,{id:rr(a,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||l,uiSchema:d,registry:u})})})]})]})}function Xj({id:e,title:t,uiSchema:r,optionalDataControl:i}){const a=pe(r);return N.jsxs("div",{id:e,className:"my-1",children:[N.jsx("h5",{children:N.jsx(Sr,{children:a.title||t})}),N.jsx("hr",{className:"border-0",style:{height:"1px"}}),i]})}function Zj(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:p,children:d,uiSchema:m,registry:k}=e,{templates:v,translateString:g}=k,{RemoveButton:b}=v.ButtonTemplates,w=hn in c,E=[r];!f&&p&&p.length>0&&E.push("has-error has-danger");const h=E.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(Oe.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(b,{disabled:a||l,onClick:o,uiSchema:m,registry:k})})]})})}const Qj=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:Tj,ArrayFieldItemTemplate:Nj,ArrayFieldTemplate:Fj,ButtonTemplates:Hj,DescriptionFieldTemplate:Kj,FieldErrorTemplate:Wj,FieldHelpTemplate:Gj,FieldTemplate:Jj,ObjectFieldTemplate:Yj,TitleFieldTemplate:Xj,WrapIfAdditionalTemplate:Zj},Symbol.toStringTag,{value:"Module"}));function e2({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:p,registry:d}){const m=ge("DescriptionFieldTemplate",d,r),k=ts(e),v=V.useCallback(y=>p(y.target.checked),[p]),g=V.useCallback(y=>c(i,y.target.checked),[c,i]),b=V.useCallback(y=>f(i,y.target.checked),[f,i]),h=pe(t).widget==="checkbox"?void 0:r.description??e.description;return N.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`.trim(),children:[!l&&h&&N.jsx(m,{id:xn(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:k,disabled:n||s,autoFocus:u,onChange:v,onBlur:g,onFocus:b,"aria-describedby":xr(i)}),!l&&!!o&&N.jsx("label",{className:"form-check-label",htmlFor:i,children:N.jsx(Sr,{components:{p:"span"},children:o})})]})]})}function t2({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:p,emptyValue:d}=r,m=es(r),k=Array.isArray(i)?i:[i],v=V.useCallback(({target:b})=>l(e,Ar(b==null?void 0:b.value,f,m,d)),[l,e,f,d,m]),g=V.useCallback(({target:b})=>u(e,Ar(b==null?void 0:b.value,f,m,d)),[u,e,f,d,m]);return N.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Gi(b.value,k),h=Array.isArray(p)&&p.includes(b.value),y=vo(e,w),C=x=>{x.target.checked?o(Vy(w,k,f)):o(By(w,k,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:E,value:Qa(b.value,w,m),required:s,disabled:t||h||n,autoFocus:a&&w===0,onChange:C,onBlur:v,onFocus:g,"aria-describedby":xr(e)}),N.jsx("label",{className:"custom-control-label",htmlFor:y,children:N.jsx(Sr,{components:{p:"span"},children:b.label})})]},String(b.value))})})}function r2({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:p,emptyValue:d}=e,m=es(e),k=V.useCallback(({target:g})=>s(u,Ar(g==null?void 0:g.value,c,m,d)),[s,c,d,u,m]),v=V.useCallback(({target:g})=>o(u,Ar(g==null?void 0:g.value,c,m,d)),[o,c,d,u,m]);return N.jsx("div",{id:u,role:"radiogroup",children:Array.isArray(c)&&c.map((g,b)=>{const w=Gi(g.value,t),E=Array.isArray(f)&&f.includes(g.value),h=vo(u,b);return N.jsxs("div",{className:`form-check${p?" form-check-inline":""}`,children:[N.jsx("input",{type:"radio",className:"form-check-input",id:h,name:u,checked:w,value:Qa(g.value,b,m),required:r,disabled:i||E||a,autoFocus:n&&b===0,onChange:()=>l(g.value),onBlur:k,onFocus:v,"aria-describedby":xr(u)}),N.jsx("label",{className:"form-check-label",htmlFor:h,children:N.jsx(Sr,{components:{p:"span"},children:g.label})})]},String(g.value))})})}const n2=5;function i2({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:m}})=>l(m===""?t.emptyValue:m),[l,t.emptyValue]),p=V.useCallback(({target:m})=>u(e,m==null?void 0:m.value),[u,e]),d=V.useCallback(({target:m})=>c(e,m==null?void 0:m.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||n2,onChange:f,onBlur:p,onFocus:d,"aria-describedby":xr(e)})}const nk={templates:Qj,widgets:Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:e2,CheckboxesWidget:t2,RadioWidget:r2,TextareaWidget:i2},Symbol.toStringTag,{value:"Module"}))},a2=e=>e==="{}"?`{
83
+ 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 p=Array.isArray(l[f])?u:c;p[f]=l[f]}return[u,c]}function s(l,u=l.schema){const{gen:c,data:f,it:p}=l;if(Object.keys(u).length===0)return;const d=c.let("missing");for(const m in u){const k=u[m];if(k.length===0)continue;const v=(0,i.propertyInData)(c,f,m,p.opts.ownProperties);l.setParams({property:m,depsCount:k.length,deps:k.join(", ")}),p.allErrors?c.if(v,()=>{for(const g of k)(0,i.checkReportMissingProp)(l,g)}):(c.if((0,t._)`${v} && (${(0,i.checkMissingProp)(l,k,d)})`),(0,i.reportMissingProp)(l,d),c.else())}}e.validatePropertyDeps=s;function o(l,u=l.schema){const{gen:c,data:f,keyword:p,it:d}=l,m=c.name("valid");for(const k in u)(0,r.alwaysValidSchema)(d,u[k])||(c.if((0,i.propertyInData)(c,f,k,d.opts.ownProperties),()=>{const v=l.subschema({keyword:p,schemaProp:k},m);l.mergeValidEvaluated(v,m)},()=>c.var(m,!0)),l.ok(m))}e.validateSchemaDeps=o,e.default=a})(Af)),Af}var Yo={},ub;function FM(){if(ub)return Yo;ub=1,Object.defineProperty(Yo,"__esModule",{value:!0});const e=Ie(),t=Ve(),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 Yo.default=i,Yo}var Xo={},cb;function fb(){if(cb)return Xo;cb=1,Object.defineProperty(Xo,"__esModule",{value:!0});const e=Pr(),t=Ie(),r=On(),i=Ve(),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:p}=s;if(!f)throw new Error("ajv implementation error");const{allErrors:d,opts:m}=p;if(p.props=!0,m.removeAdditional!=="all"&&(0,i.alwaysValidSchema)(p,l))return;const k=(0,e.allSchemaProperties)(u.properties),v=(0,e.allSchemaProperties)(u.patternProperties);g(),s.ok((0,t._)`${f} === ${r.default.errors}`);function g(){o.forIn("key",c,y=>{!k.length&&!v.length?E(y):o.if(b(y),()=>E(y))})}function b(y){let C;if(k.length>8){const x=(0,i.schemaRefOrVal)(p,u.properties,"properties");C=(0,e.isOwnProperty)(o,x,y)}else k.length?C=(0,t.or)(...k.map(x=>(0,t._)`${y} === ${x}`)):C=t.nil;return v.length&&(C=(0,t.or)(C,...v.map(x=>(0,t._)`${(0,e.usePattern)(s,x)}.test(${y})`))),(0,t.not)(C)}function w(y){o.code((0,t._)`delete ${c}[${y}]`)}function E(y){if(m.removeAdditional==="all"||m.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)(p,l)){const C=o.name("valid");m.removeAdditional==="failing"?(h(y,C,!1),o.if((0,t.not)(C),()=>{s.reset(),w(y)})):(h(y,C),d||o.if((0,t.not)(C),()=>o.break()))}}function h(y,C,x){const _={keyword:"additionalProperties",dataProp:y,dataPropType:i.Type.Str};x===!1&&Object.assign(_,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(_,C)}}};return Xo.default=n,Xo}var Zo={},db;function DM(){if(db)return Zo;db=1,Object.defineProperty(Zo,"__esModule",{value:!0});const e=Ao(),t=Pr(),r=Ve(),i=fb(),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 v of f)c.definedProperties.add(v);c.opts.unevaluated&&f.length&&c.props!==!0&&(c.props=r.mergeEvaluated.props(s,(0,r.toHash)(f),c.props));const p=f.filter(v=>!(0,r.alwaysValidSchema)(c,o[v]));if(p.length===0)return;const d=s.name("valid");for(const v of p)m(v)?k(v):(s.if((0,t.propertyInData)(s,u,v,c.opts.ownProperties)),k(v),c.allErrors||s.else().var(d,!0),s.endIf()),n.it.definedProperties.add(v),n.ok(d);function m(v){return c.opts.useDefaults&&!c.compositeRule&&o[v].default!==void 0}function k(v){n.subschema({keyword:"properties",schemaProp:v,dataProp:v},d)}}};return Zo.default=a,Zo}var Qo={},pb;function MM(){if(pb)return Qo;pb=1,Object.defineProperty(Qo,"__esModule",{value:!0});const e=Pr(),t=Ie(),r=Ve(),i=Ve(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(n){const{gen:s,schema:o,data:l,parentSchema:u,it:c}=n,{opts:f}=c,p=(0,e.allSchemaProperties)(o),d=p.filter(E=>(0,r.alwaysValidSchema)(c,o[E]));if(p.length===0||d.length===p.length&&(!c.opts.unevaluated||c.props===!0))return;const m=f.strictSchema&&!f.allowMatchingProperties&&u.properties,k=s.name("valid");c.props!==!0&&!(c.props instanceof t.Name)&&(c.props=(0,i.evaluatedPropsToName)(s,c.props));const{props:v}=c;g();function g(){for(const E of p)m&&b(E),c.allErrors?w(E):(s.var(k,!0),w(E),s.if(k))}function b(E){for(const h in m)new RegExp(E).test(h)&&(0,r.checkStrictMode)(c,`property ${h} matches pattern ${E} (use allowMatchingProperties)`)}function w(E){s.forIn("key",l,h=>{s.if((0,t._)`${(0,e.usePattern)(n,E)}.test(${h})`,()=>{const y=d.includes(E);y||n.subschema({keyword:"patternProperties",schemaProp:E,dataProp:h,dataPropType:i.Type.Str},k),c.opts.unevaluated&&v!==!0?s.assign((0,t._)`${v}[${h}]`,!0):!y&&!c.allErrors&&s.if((0,t.not)(k),()=>s.break())})})}}};return Qo.default=a,Qo}var el={},mb;function jM(){if(mb)return el;mb=1,Object.defineProperty(el,"__esModule",{value:!0});const e=Ve(),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 el.default=t,el}var tl={},hb;function LM(){if(hb)return tl;hb=1,Object.defineProperty(tl,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Pr().validateUnion,error:{message:"must match a schema in anyOf"}};return tl.default=t,tl}var rl={},gb;function qM(){if(gb)return rl;gb=1,Object.defineProperty(rl,"__esModule",{value:!0});const e=Ie(),t=Ve(),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),p=n.name("_valid");a.setParams({passing:f}),n.block(d),a.result(c,()=>a.reset(),()=>a.error(!0));function d(){u.forEach((m,k)=>{let v;(0,t.alwaysValidSchema)(l,m)?n.var(p,!0):v=a.subschema({keyword:"oneOf",schemaProp:k,compositeRule:!0},p),k>0&&n.if((0,e._)`${p} && ${c}`).assign(c,!1).assign(f,(0,e._)`[${f}, ${k}]`).else(),n.if(p,()=>{n.assign(c,!0),n.assign(f,k),v&&a.mergeEvaluated(v,e.Name)})})}}};return rl.default=i,rl}var nl={},yb;function $M(){if(yb)return nl;yb=1,Object.defineProperty(nl,"__esModule",{value:!0});const e=Ve(),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 nl.default=t,nl}var il={},vb;function zM(){if(vb)return il;vb=1,Object.defineProperty(il,"__esModule",{value:!0});const e=Ie(),t=Ve(),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),p=s.name("_valid");if(d(),n.reset(),u&&c){const k=s.let("ifClause");n.setParams({ifClause:k}),s.if(p,m("then",k),m("else",k))}else u?s.if(p,m("then")):s.if((0,e.not)(p),m("else"));n.pass(f,()=>n.error(!0));function d(){const k=n.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},p);n.mergeEvaluated(k)}function m(k,v){return()=>{const g=n.subschema({keyword:k},p);s.assign(f,p),n.mergeValidEvaluated(g,f),v?s.assign(v,(0,e._)`${k}`):n.setParams({ifClause:k})}}}};function a(n,s){const o=n.schema[s];return o!==void 0&&!(0,t.alwaysValidSchema)(n,o)}return il.default=i,il}var al={},bb;function RM(){if(bb)return al;bb=1,Object.defineProperty(al,"__esModule",{value:!0});const e=Ve(),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 al.default=t,al}var kb;function UM(){if(kb)return Ko;kb=1,Object.defineProperty(Ko,"__esModule",{value:!0});const e=rb(),t=PM(),r=ib(),i=IM(),a=TM(),n=NM(),s=FM(),o=fb(),l=DM(),u=MM(),c=jM(),f=LM(),p=qM(),d=$M(),m=zM(),k=RM();function v(g=!1){const b=[c.default,f.default,p.default,d.default,m.default,k.default,s.default,o.default,n.default,l.default,u.default];return g?b.push(t.default,i.default):b.push(e.default,r.default),b.push(a.default),b}return Ko.default=v,Ko}var sl={},ol={},wb;function BM(){if(wb)return ol;wb=1,Object.defineProperty(ol,"__esModule",{value:!0});const e=Ie(),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:p,schemaEnv:d,self:m}=c;if(!f.validateFormats)return;o?k():v();function k(){const g=n.scopeValue("formats",{ref:m.formats,code:f.code.formats}),b=n.const("fDef",(0,e._)`${g}[${u}]`),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)),i.fail$data((0,e.or)(h(),y()));function h(){return f.strictSchema===!1?e.nil:(0,e._)`${u} && !${E}`}function y(){const C=d.$async?(0,e._)`(${b}.async ? await ${E}(${s}) : ${E}(${s}))`:(0,e._)`${E}(${s})`,x=(0,e._)`(typeof ${E} == "function" ? ${C} : ${E}.test(${s}))`;return(0,e._)`${E} && ${E} !== true && ${w} === ${a} && !${x}`}}function v(){const g=m.formats[l];if(!g){h();return}if(g===!0)return;const[b,w,E]=y(g);b===a&&i.pass(C());function h(){if(f.strictSchema===!1){m.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${l}" ignored in schema at path "${p}"`}}function y(x){const _=x instanceof RegExp?(0,e.regexpCode)(x):f.code.formats?(0,e._)`${f.code.formats}${(0,e.getProperty)(l)}`:void 0,S=n.scopeValue("formats",{key:l,ref:x,code:_});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,e._)`${S}.validate`]:["string",x,S]}function C(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.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 ol.default=r,ol}var Sb;function VM(){if(Sb)return sl;Sb=1,Object.defineProperty(sl,"__esModule",{value:!0});const t=[BM().default];return sl.default=t,sl}var ci={},Cb;function HM(){return Cb||(Cb=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.contentVocabulary=ci.metadataVocabulary=void 0,ci.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],ci.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),ci}var Eb;function KM(){if(Eb)return Io;Eb=1,Object.defineProperty(Io,"__esModule",{value:!0});const e=gM(),t=_M(),r=UM(),i=VM(),a=HM(),n=[e.default,t.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary];return Io.default=n,Io}var ll={},ss={},Ab;function WM(){if(Ab)return ss;Ab=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(ss.DiscrError=e={})),ss}var xb;function GM(){if(xb)return ll;xb=1,Object.defineProperty(ll,"__esModule",{value:!0});const e=Ie(),t=WM(),r=wf(),i=_o(),a=Ve(),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:p}=o,{oneOf:d}=f;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const m=c.propertyName;if(typeof m!="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 k=l.let("valid",!1),v=l.const("tag",(0,e._)`${u}${(0,e.getProperty)(m)}`);l.if((0,e._)`typeof ${v} == "string"`,()=>g(),()=>o.error(!1,{discrError:t.DiscrError.Tag,tag:v,tagName:m})),o.ok(k);function g(){const E=w();l.if(!1);for(const h in E)l.elseIf((0,e._)`${v} === ${h}`),l.assign(k,b(E[h]));l.else(),o.error(!1,{discrError:t.DiscrError.Mapping,tag:v,tagName:m}),l.endIf()}function b(E){const h=l.name("valid"),y=o.subschema({keyword:"oneOf",schemaProp:E},h);return o.mergeEvaluated(y,e.Name),h}function w(){var E;const h={},y=x(f);let C=!0;for(let A=0;A<d.length;A++){let O=d[A];if(O!=null&&O.$ref&&!(0,a.schemaHasRulesButRef)(O,p.self.RULES)){const T=O.$ref;if(O=r.resolveRef.call(p.self,p.schemaEnv.root,p.baseId,T),O instanceof r.SchemaEnv&&(O=O.schema),O===void 0)throw new i.default(p.opts.uriResolver,p.baseId,T)}const F=(E=O==null?void 0:O.properties)===null||E===void 0?void 0:E[m];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${m}"`);C=C&&(y||x(O)),_(F,A)}if(!C)throw new Error(`discriminator: "${m}" must be required`);return h;function x({required:A}){return Array.isArray(A)&&A.includes(m)}function _(A,O){if(A.const)S(A.const,O);else if(A.enum)for(const F of A.enum)S(F,O);else throw new Error(`discriminator: "properties/${m}" must have "const" or "enum"`)}function S(A,O){if(typeof A!="string"||A in h)throw new Error(`discriminator: "${m}" values must be unique strings`);h[A]=O}}}};return ll.default=s,ll}const JM={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};var Ob;function _b(){return Ob||(Ob=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=pM(),i=KM(),a=GM(),n=JM,s=["/properties"],o="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(n,s):n;this.addMetaSchema(m,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=Ao();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=Ie();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=kf();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=_o();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})(bo,bo.exports)),bo.exports}var YM=_b();const XM=jr(YM);var ul={exports:{}},xf={},Pb;function ZM(){return Pb||(Pb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(_,S){return{validate:_,compare:S}}e.fullFormats={date:t(n,s),time:t(l,u),"date-time":t(f,p),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:x,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:E},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,p),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 S=i.exec(_);if(!S)return!1;const A=+S[1],O=+S[2],F=+S[3];return O>=1&&O<=12&&F>=1&&F<=(O===2&&r(A)?29:a[O])}function s(_,S){if(_&&S)return _>S?1:_<S?-1:0}const o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(_,S){const A=o.exec(_);if(!A)return!1;const O=+A[1],F=+A[2],T=+A[3],j=A[5];return(O<=23&&F<=59&&T<=59||O===23&&F===59&&T===60)&&(!S||j!=="")}function u(_,S){if(!(_&&S))return;const A=o.exec(_),O=o.exec(S);if(A&&O)return _=A[1]+A[2]+A[3]+(A[4]||""),S=O[1]+O[2]+O[3]+(O[4]||""),_>S?1:_<S?-1:0}const c=/t|\s/i;function f(_){const S=_.split(c);return S.length===2&&n(S[0])&&l(S[1],!0)}function p(_,S){if(!(_&&S))return;const[A,O]=_.split(c),[F,T]=S.split(c),j=s(A,F);if(j!==void 0)return j||u(O,T)}const d=/\/|:/,m=/^(?:[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(_){return d.test(_)&&m.test(_)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function g(_){return v.lastIndex=0,v.test(_)}const b=-2147483648,w=2**31-1;function E(_){return Number.isInteger(_)&&_<=w&&_>=b}function h(_){return Number.isInteger(_)}function y(){return!0}const C=/[^\\]\\Z/;function x(_){if(C.test(_))return!1;try{return new RegExp(_),!0}catch{return!1}}})(xf)),xf}var Of={},Ib;function QM(){return Ib||(Ib=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=_b(),r=Ie(),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:p}=o,{opts:d,self:m}=p;if(!d.validateFormats)return;const k=new t.KeywordCxt(p,m.RULES.all.format.definition,"format");k.$data?v():g();function v(){const w=l.scopeValue("formats",{ref:m.formats,code:d.code.formats}),E=l.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 g(){const w=k.schema,E=m.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 h=l.scopeValue("formats",{key:w,ref:E,code:d.code.formats?r._`${d.code.formats}${r.getProperty(w)}`:void 0});o.fail$data(b(h))}function b(w){return r._`${w}.compare(${u}, ${c}) ${a[f].fail} 0`}},dependencies:["format"]};const s=o=>(o.addKeyword(e.formatLimitDefinition),o);e.default=s})(Of)),Of}var Tb;function ej(){return Tb||(Tb=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=ZM(),i=QM(),a=Ie(),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,p]=c.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,n],d=c.formats||r.formatNames;return l(u,d,f,p),c.keywords&&i.default(u),u};o.get=(u,c="full")=>{const p=(c==="fast"?r.fastFormats:r.fullFormats)[u];if(!p)throw new Error(`Unknown format "${u}"`);return p};function l(u,c,f,p){var d,m;(d=(m=u.opts.code).formats)!==null&&d!==void 0||(m.formats=a._`require("ajv-formats/dist/formats").${p}`);for(const k of c)u.addFormat(k,f[k])}e.exports=t=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o})(ul,ul.exports)),ul.exports}var tj=ej();const Nb=jr(tj),rj={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},nj=/^(#?([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*\)))$/,ij=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function aj(e,t,r={},i,a=XM,n){let s=new a({...rj,...r});return i?Nb(s,i):i!==!1&&Nb(s),s.addFormat("data-url",ij),s.addFormat("color",nj),s.addKeyword(rc),Array.isArray(e)&&s.addMetaSchema(e),Re(t)&&Object.keys(t).forEach(o=>{s.addFormat(o,t[o])}),n&&(s=n(s)),s}class sj{constructor(t,r){this.hasRegisteredRootSchema=!1;const{additionalMetaSchemas:i,customFormats:a,ajvOptionsOverrides:n,ajvFormatOptions:s,AjvClass:o,extenderFn:l,suppressDuplicateFiltering:u}=t;this.ajv=aj(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[tt]&&(s=this.ajv.getSchema(t[tt])),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 nM(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[tt])!==null&&r!==void 0?r:xh;this.ajv.getSchema(a)===void 0?this.ajv.addSchema(t,a):Ue(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=df(t),s=(a=n[tt])!==null&&a!==void 0?a:FD(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 cl(e={},t){return new sj(e,t)}cl();var _f,Fb;function oj(){return Fb||(Fb=1,_f=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}}),_f}var Pf,Db;function lj(){return Db||(Db=1,Pf=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}}),Pf}var If,Mb;function uj(){return Mb||(Mb=1,If=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}}),If}var Tf,jb;function cj(){return jb||(jb=1,Tf=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}}),Tf}var Nf,Lb;function fj(){return Lb||(Lb=1,Nf=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}}),Nf}var Ff,qb;function dj(){return qb||(qb=1,Ff=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}}),Ff}var Df,$b;function pj(){return $b||($b=1,Df=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}}),Df}var Mf,zb;function mj(){return zb||(zb=1,Mf=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}}),Mf}var jf,Rb;function hj(){return Rb||(Rb=1,jf=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}}),jf}var Lf,Ub;function gj(){return Ub||(Ub=1,Lf=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}}),Lf}var qf,Bb;function yj(){return Bb||(Bb=1,qf=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}}),qf}var $f,Vb;function vj(){return Vb||(Vb=1,$f=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}}),$f}var zf,Hb;function bj(){return Hb||(Hb=1,zf=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}}),zf}var Rf,Kb;function kj(){return Kb||(Kb=1,Rf=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}}),Rf}var Uf,Wb;function wj(){return Wb||(Wb=1,Uf=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}}),Uf}var Bf,Gb;function Sj(){return Gb||(Gb=1,Bf=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}}),Bf}var Vf,Jb;function Cj(){return Jb||(Jb=1,Vf=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}}),Vf}var Hf,Yb;function Ej(){return Yb||(Yb=1,Hf=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}}),Hf}var Kf,Xb;function Aj(){return Xb||(Xb=1,Kf=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}}),Kf}var Wf,Zb;function xj(){return Zb||(Zb=1,Wf=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}}),Wf}var Gf,Qb;function Oj(){return Qb||(Qb=1,Gf=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}}),Gf}var Jf,ek;function _j(){return ek||(ek=1,Jf=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}}),Jf}var Yf,tk;function Pj(){return tk||(tk=1,Yf=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}}),Yf}var Xf,rk;function Ij(){return rk||(rk=1,Xf={en:oj(),ar:lj(),ca:uj(),cs:cj(),de:fj(),es:dj(),fi:pj(),fr:mj(),hu:hj(),id:gj(),it:yj(),ja:vj(),ko:bj(),nb:kj(),nl:wj(),pl:Sj(),"pt-BR":Cj(),ru:Ej(),sk:Aj(),sv:xj(),th:Oj(),zh:_j(),"zh-TW":Pj()}),Xf}var Tj=Ij();const os=jr(Tj),fl={flex:1,paddingLeft:6,paddingRight:6};function Nj(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:p,uiSchema:d}=e,{CopyButton:m,MoveDownButton:k,MoveUpButton:v,RemoveButton:g}=p.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(v,{id:rr(s,"moveUp"),className:"rjsf-array-item-move-up",style:fl,disabled:t||f||!a,onClick:c,uiSchema:d,registry:p})}),(a||i)&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(k,{id:rr(s,"moveDown"),className:"rjsf-array-item-move-down",style:fl,disabled:t||f||!i,onClick:u,uiSchema:d,registry:p})}),r&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(m,{id:rr(s,"copy"),className:"rjsf-array-item-copy",style:fl,disabled:t||f,onClick:o,uiSchema:d,registry:p})}),n&&N.jsx("div",{className:"m-0 p-0",children:N.jsx(g,{id:rr(s,"remove"),className:"rjsf-array-item-remove",style:fl,disabled:t||f,onClick:l,uiSchema:d,registry:p})})]})}function Fj(e){const{children:t,buttonsProps:r,hasToolbar:i,registry:a,uiSchema:n}=e,s=pe(n),o=ge("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 Dj(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:p}=e,d=pe(p),m=ge("ArrayFieldTitleTemplate",l,d),k=ge("ArrayFieldDescriptionTemplate",l,d),{AddButton:v}=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(m,{fieldPathId:i,title:d.title||f,required:u,schema:c,uiSchema:p,registry:l,optionalDataControl:g?n:void 0}),N.jsx(k,{fieldPathId:i,description:d.description||c.description,schema:c,uiSchema:p,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(v,{id:rr(i,"add"),className:"rjsf-array-item-add",onClick:s,disabled:r||o,uiSchema:p,registry:l})})]})]})]})})})}const ls={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},Mj=()=>N.jsx("svg",{...ls,children:N.jsx("path",{d:"M8 13V3M3.5 7.5L8 3l4.5 4.5"})}),jj=()=>N.jsx("svg",{...ls,children:N.jsx("path",{d:"M8 3v10M3.5 8.5L8 13l4.5-4.5"})}),Lj=()=>N.jsxs("svg",{...ls,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"})]}),nk=()=>N.jsx("svg",{...ls,children:N.jsx("path",{d:"M3.5 8h9"})}),qj=()=>N.jsx("svg",{...ls,children:N.jsx("path",{d:"M8 3.5v9M3.5 8h9"})});function Qi({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 $j(e){const{translateString:t}=e.registry;return N.jsx(Qi,{title:t(Oe.CopyButton),...e,icon:N.jsx(Lj,{})})}function zj(e){const{translateString:t}=e.registry;return N.jsx(Qi,{title:t(Oe.MoveUpButton),...e,icon:N.jsx(Mj,{})})}function Rj(e){const{translateString:t}=e.registry;return N.jsx(Qi,{title:t(Oe.MoveDownButton),...e,icon:N.jsx(jj,{})})}function Uj(e){const{translateString:t}=e.registry;return N.jsx(Qi,{title:t(Oe.RemoveButton),...e,variant:"danger",icon:N.jsx(nk,{})})}function Bj(e){const{translateString:t}=e.registry;return N.jsx(Qi,{title:t(Oe.ClearButton),...e,icon:N.jsx(nk,{})})}function Vj({className:e,...t}){const{translateString:r}=t.registry;return N.jsx(Qi,{...t,variant:"primary",className:`ml-1 ${e||""}`.trim(),style:{width:"100%"},title:r(Oe.AddItemButton),icon:N.jsx(qj,{})})}function Hj({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=ef(e);return r?null:N.jsx("div",{children:N.jsx("button",{type:"submit",...i,className:`btn btn-primary ${i.className||""}`.trim(),children:t})})}const Kj={SubmitButton:Hj,AddButton:Vj,CopyButton:$j,MoveDownButton:Rj,MoveUpButton:zj,RemoveButton:Uj,ClearButton:Bj};function Wj({id:e,description:t}){return t?N.jsx("div",{children:N.jsx("div",{id:e,className:"mb-3",children:typeof t=="string"?N.jsx(Sr,{children:t}):t})}):null}function Gj({errors:e=[],fieldPathId:t}){return e.length===0?null:N.jsx("ul",{className:"list-group",id:nf(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(Sr,{children:r}):r})},`${r}-${i}`))})}function Jj({fieldPathId:e,help:t,hasErrors:r}){return t?N.jsx("small",{className:`form-text ${r?"text-danger":"text-muted"}`,id:sf(e),children:t}):null}function Yj(e){var g,b;const{id:t,children:r,displayLabel:i,rawErrors:a=[],errors:n,help:s,rawDescription:o,hidden:l,label:u,required:c,schema:f,uiSchema:p,registry:d}=e,m=pe(p),k=ge("WrapIfAdditionalTemplate",d,m);if(l)return N.jsx("div",{className:"hidden",children:r});const v=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(Vu,{children:f.markdown.before})}),N.jsx(k,{...e,children:N.jsxs("div",{className:"form-group",children:[i&&N.jsxs("label",{className:`form-label${v?" text-danger":""}`,htmlFor:t,children:[N.jsx(Sr,{components:{p:"span"},children:u}),c?"*":null]}),r,i&&o&&N.jsx("small",{className:`form-text ${v?"text-danger":"text-muted"}`,children:N.jsx(Sr,{children:o})}),n,s]})}),((b=f==null?void 0:f.markdown)==null?void 0:b.after)&&N.jsx("div",{className:"fcode-form-markdown",children:N.jsx(Vu,{children:f.markdown.after})})]})}function Xj(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:p,uiSchema:d}=e,m=pe(d),k=ge("TitleFieldTemplate",u,m),v=ge("DescriptionFieldTemplate",u,m),{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:[p&&N.jsx(k,{id:yo(a),title:p,required:c,schema:f,uiSchema:d,registry:u,optionalDataControl:w?s:void 0}),t&&N.jsx(v,{id:xn(a),description:t,schema:f,uiSchema:d,registry:u}),w?void 0:s,N.jsxs("div",{className:"container-fluid p-0",children:[o.map(E=>N.jsx("div",{className:`row mb-2${E.hidden?" d-none":""}`,children:N.jsx("div",{className:"col-12",children:E.content})},E.name)),Oh(f,d,i)&&N.jsx("div",{className:"row",children:N.jsx("div",{className:"col-3 py-4",children:N.jsx(g,{id:rr(a,"add"),className:"rjsf-object-property-expand",onClick:n,disabled:r||l,uiSchema:d,registry:u})})})]})]})}function Zj({id:e,title:t,uiSchema:r,optionalDataControl:i}){const a=pe(r);return N.jsxs("div",{id:e,className:"my-1",children:[N.jsx("h5",{children:N.jsx(Sr,{children:a.title||t})}),N.jsx("hr",{className:"border-0",style:{height:"1px"}}),i]})}function Qj(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:p,children:d,uiSchema:m,registry:k}=e,{templates:v,translateString:g}=k,{RemoveButton:b}=v.ButtonTemplates,w=hn in c,E=[r];!f&&p&&p.length>0&&E.push("has-error has-danger");const h=E.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(Oe.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(b,{disabled:a||l,onClick:o,uiSchema:m,registry:k})})]})})}const e2=Object.freeze(Object.defineProperty({__proto__:null,ArrayFieldItemButtonsTemplate:Nj,ArrayFieldItemTemplate:Fj,ArrayFieldTemplate:Dj,ButtonTemplates:Kj,DescriptionFieldTemplate:Wj,FieldErrorTemplate:Gj,FieldHelpTemplate:Jj,FieldTemplate:Yj,ObjectFieldTemplate:Xj,TitleFieldTemplate:Zj,WrapIfAdditionalTemplate:Qj},Symbol.toStringTag,{value:"Module"}));function t2({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:p,registry:d}){const m=ge("DescriptionFieldTemplate",d,r),k=ts(e),v=V.useCallback(y=>p(y.target.checked),[p]),g=V.useCallback(y=>c(i,y.target.checked),[c,i]),b=V.useCallback(y=>f(i,y.target.checked),[f,i]),h=pe(t).widget==="checkbox"?void 0:r.description??e.description;return N.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`.trim(),children:[!l&&h&&N.jsx(m,{id:xn(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:k,disabled:n||s,autoFocus:u,onChange:v,onBlur:g,onFocus:b,"aria-describedby":xr(i)}),!l&&!!o&&N.jsx("label",{className:"form-check-label",htmlFor:i,children:N.jsx(Sr,{components:{p:"span"},children:o})})]})]})}function r2({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:p,emptyValue:d}=r,m=es(r),k=Array.isArray(i)?i:[i],v=V.useCallback(({target:b})=>l(e,Ar(b==null?void 0:b.value,f,m,d)),[l,e,f,d,m]),g=V.useCallback(({target:b})=>u(e,Ar(b==null?void 0:b.value,f,m,d)),[u,e,f,d,m]);return N.jsx("div",{id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Gi(b.value,k),h=Array.isArray(p)&&p.includes(b.value),y=vo(e,w),C=x=>{x.target.checked?o(Hy(w,k,f)):o(By(w,k,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:E,value:Qa(b.value,w,m),required:s,disabled:t||h||n,autoFocus:a&&w===0,onChange:C,onBlur:v,onFocus:g,"aria-describedby":xr(e)}),N.jsx("label",{className:"custom-control-label",htmlFor:y,children:N.jsx(Sr,{components:{p:"span"},children:b.label})})]},String(b.value))})})}function n2({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:p,emptyValue:d}=e,m=es(e),k=V.useCallback(({target:g})=>s(u,Ar(g==null?void 0:g.value,c,m,d)),[s,c,d,u,m]),v=V.useCallback(({target:g})=>o(u,Ar(g==null?void 0:g.value,c,m,d)),[o,c,d,u,m]);return N.jsx("div",{id:u,role:"radiogroup",children:Array.isArray(c)&&c.map((g,b)=>{const w=Gi(g.value,t),E=Array.isArray(f)&&f.includes(g.value),h=vo(u,b);return N.jsxs("div",{className:`form-check${p?" form-check-inline":""}`,children:[N.jsx("input",{type:"radio",className:"form-check-input",id:h,name:u,checked:w,value:Qa(g.value,b,m),required:r,disabled:i||E||a,autoFocus:n&&b===0,onChange:()=>l(g.value),onBlur:k,onFocus:v,"aria-describedby":xr(u)}),N.jsx("label",{className:"form-check-label",htmlFor:h,children:N.jsx(Sr,{components:{p:"span"},children:g.label})})]},String(g.value))})})}const i2=5;function a2({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:m}})=>l(m===""?t.emptyValue:m),[l,t.emptyValue]),p=V.useCallback(({target:m})=>u(e,m==null?void 0:m.value),[u,e]),d=V.useCallback(({target:m})=>c(e,m==null?void 0:m.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||i2,onChange:f,onBlur:p,onFocus:d,"aria-describedby":xr(e)})}const ik={templates:e2,widgets:Object.freeze(Object.defineProperty({__proto__:null,CheckboxWidget:t2,CheckboxesWidget:r2,RadioWidget:n2,TextareaWidget:a2},Symbol.toStringTag,{value:"Module"}))},s2=e=>e==="{}"?`{
84
84
 
85
- }`:e,s2=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,p]=V.useState(a2(JSON.stringify(o||{},null,2))),d=V.useCallback(b=>{p(b.target.value)},[t]),m=V.useCallback(function(b){c.current&&b.key=="Tab"&&b.preventDefault()},[]),k=V.useCallback(()=>{try{const b=JSON.parse(f);t(b,a.path),r(a.$id,b)}catch{t(null,a.path,{__errors:["Invalid JSON"]}),r(a.$id,null)}},[f,r,t,a]),v=V.useCallback(b=>{i(a.$id,b.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(`
86
- `).length,value:g,className:en(["form-control","textarea"]),onChange:d,onKeyDown:m,onFocus:v,onBlur:k,readOnly:l,disabled:u}),N.jsx("div",{className:"shadow",children:f})]}),N.jsx("small",{className:"text-muted form-text",children:N.jsx(Sr,{children:s})})]})},o2=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(Sr,{children:a})})]})};function ik(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 l2(e){if(Array.isArray(e))return e}function u2(e,t,r){return(t=g2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c2(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 f2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
87
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ak(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 sk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ak(Object(r),!0).forEach(function(i){u2(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ak(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function d2(e,t){if(e==null)return{};var r,i,a=p2(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 p2(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 m2(e,t){return l2(e)||c2(e,t)||y2(e,t)||f2()}function h2(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 g2(e){var t=h2(e,"string");return typeof t=="symbol"?t:t+""}function y2(e,t){if(e){if(typeof e=="string")return ik(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)?ik(e,t):void 0}}function v2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ok(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 lk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ok(Object(r),!0).forEach(function(i){v2(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ok(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function b2(){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 us(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 dl(e){return{}.toString.call(e).includes("Object")}function k2(e){return!Object.keys(e).length}function cs(e){return typeof e=="function"}function w2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function S2(e,t){return dl(t)||Pn("changeType"),Object.keys(t).some(function(r){return!w2(e,r)})&&Pn("changeField"),t}function C2(e){cs(e)||Pn("selectorType")}function E2(e){cs(e)||dl(e)||Pn("handlerType"),dl(e)&&Object.values(e).some(function(t){return!cs(t)})&&Pn("handlersType")}function A2(e){e||Pn("initialIsRequired"),dl(e)||Pn("initialType"),k2(e)&&Pn("initialContent")}function x2(e,t){throw new Error(e[t]||e.default)}var O2={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"},Pn=us(x2)(O2),pl={changes:S2,selector:C2,handler:E2,initial:A2};function _2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pl.initial(e),pl.handler(t);var r={current:e},i=us(T2)(r,t),a=us(I2)(r),n=us(pl.changes)(e),s=us(P2)(r);function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return pl.selector(u),u(r.current)}function l(u){b2(i,a,n,s)(u)}return[o,l]}function P2(e,t){return cs(t)?t(e.current):t}function I2(e,t){return e.current=lk(lk({},e.current),t),t}function T2(e,t,r){return cs(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 N2={create:_2},F2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function D2(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 M2(e){return{}.toString.call(e).includes("Object")}function j2(e){return e||ck("configIsRequired"),M2(e)||ck("configType"),e.urls?(L2(),{paths:{vs:e.urls.monacoBase}}):e}function L2(){console.warn(uk.deprecation)}function q2(e,t){throw new Error(e[t]||e.default)}var uk={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!
85
+ }`:e,o2=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,p]=V.useState(s2(JSON.stringify(o||{},null,2))),d=V.useCallback(b=>{p(b.target.value)},[t]),m=V.useCallback(function(b){c.current&&b.key=="Tab"&&b.preventDefault()},[]),k=V.useCallback(()=>{try{const b=JSON.parse(f);t(b,a.path),r(a.$id,b)}catch{t(null,a.path,{__errors:["Invalid JSON"]}),r(a.$id,null)}},[f,r,t,a]),v=V.useCallback(b=>{i(a.$id,b.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(`
86
+ `).length,value:g,className:en(["form-control","textarea"]),onChange:d,onKeyDown:m,onFocus:v,onBlur:k,readOnly:l,disabled:u}),N.jsx("div",{className:"shadow",children:f})]}),N.jsx("small",{className:"text-muted form-text",children:N.jsx(Sr,{children:s})})]})},l2=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(Sr,{children:a})})]})};function ak(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 u2(e){if(Array.isArray(e))return e}function c2(e,t,r){return(t=y2(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f2(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 d2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
87
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sk(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 ok(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sk(Object(r),!0).forEach(function(i){c2(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sk(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function p2(e,t){if(e==null)return{};var r,i,a=m2(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 m2(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 h2(e,t){return u2(e)||f2(e,t)||v2(e,t)||d2()}function g2(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 y2(e){var t=g2(e,"string");return typeof t=="symbol"?t:t+""}function v2(e,t){if(e){if(typeof e=="string")return ak(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)?ak(e,t):void 0}}function b2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lk(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 uk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lk(Object(r),!0).forEach(function(i){b2(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lk(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function k2(){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 us(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 dl(e){return{}.toString.call(e).includes("Object")}function w2(e){return!Object.keys(e).length}function cs(e){return typeof e=="function"}function S2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function C2(e,t){return dl(t)||Pn("changeType"),Object.keys(t).some(function(r){return!S2(e,r)})&&Pn("changeField"),t}function E2(e){cs(e)||Pn("selectorType")}function A2(e){cs(e)||dl(e)||Pn("handlerType"),dl(e)&&Object.values(e).some(function(t){return!cs(t)})&&Pn("handlersType")}function x2(e){e||Pn("initialIsRequired"),dl(e)||Pn("initialType"),w2(e)&&Pn("initialContent")}function O2(e,t){throw new Error(e[t]||e.default)}var _2={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"},Pn=us(O2)(_2),pl={changes:C2,selector:E2,handler:A2,initial:x2};function P2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pl.initial(e),pl.handler(t);var r={current:e},i=us(N2)(r,t),a=us(T2)(r),n=us(pl.changes)(e),s=us(I2)(r);function o(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return pl.selector(u),u(r.current)}function l(u){k2(i,a,n,s)(u)}return[o,l]}function I2(e,t){return cs(t)?t(e.current):t}function T2(e,t){return e.current=uk(uk({},e.current),t),t}function N2(e,t,r){return cs(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 F2={create:P2},D2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function M2(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 j2(e){return{}.toString.call(e).includes("Object")}function L2(e){return e||fk("configIsRequired"),j2(e)||fk("configType"),e.urls?(q2(),{paths:{vs:e.urls.monacoBase}}):e}function q2(){console.warn(ck.deprecation)}function $2(e,t){throw new Error(e[t]||e.default)}var ck={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!
88
88
  You are using deprecated way of configuration.
89
89
 
90
90
  Instead of using
@@ -93,53 +93,53 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
93
93
  monaco.config({ paths: { vs: '...' } })
94
94
 
95
95
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
96
- `},ck=D2(q2)(uk),$2={config:j2},z2=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 fk(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],fk(e[r],t[r]))}),sk(sk({},e),t)}var R2={type:"cancelation",msg:"operation is manually canceled"};function Zf(e){var t=!1,r=new Promise(function(i,a){e.then(function(n){return t?a(R2):i(n)}),e.catch(a)});return r.cancel=function(){return t=!0},r}var B2=["monaco"],U2=N2.create({config:F2,isInitialized:!1,resolve:null,reject:null,monaco:null}),dk=m2(U2,2),fs=dk[0],ml=dk[1];function V2(e){var t=$2.config(e),r=t.monaco,i=d2(t,B2);ml(function(a){return{config:fk(a.config,i),monaco:r}})}function H2(){var e=fs(function(t){var r=t.monaco,i=t.isInitialized,a=t.resolve;return{monaco:r,isInitialized:i,resolve:a}});if(!e.isInitialized){if(ml({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Zf(Qf);if(window.monaco&&window.monaco.editor)return pk(window.monaco),e.resolve(window.monaco),Zf(Qf);z2(K2,G2)(J2)}return Zf(Qf)}function K2(e){return document.body.appendChild(e)}function W2(e){var t=document.createElement("script");return e&&(t.src=e),t}function G2(e){var t=fs(function(i){var a=i.config,n=i.reject;return{config:a,reject:n}}),r=W2("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function J2(){var e=fs(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;pk(i),e.resolve(i)},function(r){e.reject(r)})}function pk(e){fs().monaco||ml({monaco:e})}function Y2(){return fs(function(e){var t=e.monaco;return t})}var Qf=new Promise(function(e,t){return ml({resolve:e,reject:t})}),hl={config:V2,init:H2,__getMonacoInstance:Y2},X2={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ed=X2,Z2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Q2=Z2;function eL({children:e}){return V.createElement("div",{style:Q2.container},e)}var tL=eL,rL=tL;function nL({width:e,height:t,isEditorReady:r,loading:i,_ref:a,className:n,wrapperProps:s}){return V.createElement("section",{style:{...ed.wrapper,width:e,height:t},...s},!r&&V.createElement(rL,null,i),V.createElement("div",{ref:a,style:{...ed.fullWidth,...!r&&ed.hide},className:n}))}var iL=nL,mk=V.memo(iL);function aL(e){V.useEffect(e,[])}var td=aL;function sL(e,t,r=!0){let i=V.useRef(!0);V.useEffect(i.current||!r?()=>{i.current=!1}:e,t)}var ir=sL;function ds(){}function ea(e,t,r,i){return oL(e,i)||lL(e,t,r,i)}function oL(e,t){return e.editor.getModel(hk(e,t))}function lL(e,t,r,i){return e.editor.createModel(t,r,i?hk(e,i):void 0)}function hk(e,t){return e.Uri.parse(t)}function uL({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:p="100%",width:d="100%",className:m,wrapperProps:k={},beforeMount:v=ds,onMount:g=ds}){let[b,w]=V.useState(!1),[E,h]=V.useState(!0),y=V.useRef(null),C=V.useRef(null),x=V.useRef(null),_=V.useRef(g),S=V.useRef(v),A=V.useRef(!1);td(()=>{let j=hl.init();return j.then(q=>(C.current=q)&&h(!1)).catch(q=>(q==null?void 0:q.type)!=="cancelation"&&console.error("Monaco initialization: error:",q)),()=>y.current?T():j.cancel()}),ir(()=>{if(y.current&&C.current){let j=y.current.getOriginalEditor(),q=ea(C.current,e||"",i||r||"text",n||"");q!==j.getModel()&&j.setModel(q)}},[n],b),ir(()=>{if(y.current&&C.current){let j=y.current.getModifiedEditor(),q=ea(C.current,t||"",a||r||"text",s||"");q!==j.getModel()&&j.setModel(q)}},[s],b),ir(()=>{let j=y.current.getModifiedEditor();j.getOption(C.current.editor.EditorOption.readOnly)?j.setValue(t||""):t!==j.getValue()&&(j.executeEdits("",[{range:j.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),j.pushUndoStop())},[t],b),ir(()=>{var j,q;(q=(j=y.current)==null?void 0:j.getModel())==null||q.original.setValue(e||"")},[e],b),ir(()=>{let{original:j,modified:q}=y.current.getModel();C.current.editor.setModelLanguage(j,i||r||"text"),C.current.editor.setModelLanguage(q,a||r||"text")},[r,i,a],b),ir(()=>{var j;(j=C.current)==null||j.editor.setTheme(u)},[u],b),ir(()=>{var j;(j=y.current)==null||j.updateOptions(f)},[f],b);let O=V.useCallback(()=>{var J;if(!C.current)return;S.current(C.current);let j=ea(C.current,e||"",i||r||"text",n||""),q=ea(C.current,t||"",a||r||"text",s||"");(J=y.current)==null||J.setModel({original:j,modified:q})},[r,t,a,e,i,n,s]),F=V.useCallback(()=>{var j;!A.current&&x.current&&(y.current=C.current.editor.createDiffEditor(x.current,{automaticLayout:!0,...f}),O(),(j=C.current)==null||j.editor.setTheme(u),w(!0),A.current=!0)},[f,u,O]);V.useEffect(()=>{b&&_.current(y.current,C.current)},[b]),V.useEffect(()=>{!E&&!b&&F()},[E,b,F]);function T(){var q,J,Y,X;let j=(q=y.current)==null?void 0:q.getModel();o||((J=j==null?void 0:j.original)==null||J.dispose()),l||((Y=j==null?void 0:j.modified)==null||Y.dispose()),(X=y.current)==null||X.dispose()}return V.createElement(mk,{width:d,height:p,isEditorReady:b,loading:c,_ref:x,className:m,wrapperProps:k})}var cL=uL;V.memo(cL);function fL(){let[e,t]=V.useState(hl.__getMonacoInstance());return td(()=>{let r;return e||(r=hl.init(),r.then(i=>{t(i)})),()=>r==null?void 0:r.cancel()}),e}var dL=fL;function pL(e){let t=V.useRef();return V.useEffect(()=>{t.current=e},[e]),t.current}var mL=pL,gl=new Map;function hL({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:p=!1,width:d="100%",height:m="100%",className:k,wrapperProps:v={},beforeMount:g=ds,onMount:b=ds,onChange:w,onValidate:E=ds}){let[h,y]=V.useState(!1),[C,x]=V.useState(!0),_=V.useRef(null),S=V.useRef(null),A=V.useRef(null),O=V.useRef(b),F=V.useRef(g),T=V.useRef(),j=V.useRef(i),q=mL(n),J=V.useRef(!1),Y=V.useRef(!1);td(()=>{let M=hl.init();return M.then(U=>(_.current=U)&&x(!1)).catch(U=>(U==null?void 0:U.type)!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>S.current?P():M.cancel()}),ir(()=>{var U,I,D,L;let M=ea(_.current,e||i||"",t||a||"",n||r||"");M!==((U=S.current)==null?void 0:U.getModel())&&(f&&gl.set(q,(I=S.current)==null?void 0:I.saveViewState()),(D=S.current)==null||D.setModel(M),f&&((L=S.current)==null||L.restoreViewState(gl.get(n))))},[n],h),ir(()=>{var M;(M=S.current)==null||M.updateOptions(u)},[u],h),ir(()=>{!S.current||i===void 0||(S.current.getOption(_.current.editor.EditorOption.readOnly)?S.current.setValue(i):i!==S.current.getValue()&&(Y.current=!0,S.current.executeEdits("",[{range:S.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),S.current.pushUndoStop(),Y.current=!1))},[i],h),ir(()=>{var U,I;let M=(U=S.current)==null?void 0:U.getModel();M&&a&&((I=_.current)==null||I.editor.setModelLanguage(M,a))},[a],h),ir(()=>{var M;o!==void 0&&((M=S.current)==null||M.revealLine(o))},[o],h),ir(()=>{var M;(M=_.current)==null||M.editor.setTheme(s)},[s],h);let X=V.useCallback(()=>{var M;if(!(!A.current||!_.current)&&!J.current){F.current(_.current);let U=n||r,I=ea(_.current,i||e||"",t||a||"",U||"");S.current=(M=_.current)==null?void 0:M.editor.create(A.current,{model:I,automaticLayout:!0,...u},c),f&&S.current.restoreViewState(gl.get(U)),_.current.editor.setTheme(s),o!==void 0&&S.current.revealLine(o),y(!0),J.current=!0}},[e,t,r,i,a,n,u,c,f,s,o]);V.useEffect(()=>{h&&O.current(S.current,_.current)},[h]),V.useEffect(()=>{!C&&!h&&X()},[C,h,X]),j.current=i,V.useEffect(()=>{var M,U;h&&w&&((M=T.current)==null||M.dispose(),T.current=(U=S.current)==null?void 0:U.onDidChangeModelContent(I=>{Y.current||w(S.current.getValue(),I)}))},[h,w]),V.useEffect(()=>{if(h){let M=_.current.editor.onDidChangeMarkers(U=>{var D;let I=(D=S.current.getModel())==null?void 0:D.uri;if(I&&U.find(L=>L.path===I.path)){let L=_.current.editor.getModelMarkers({resource:I});E==null||E(L)}});return()=>{M==null||M.dispose()}}return()=>{}},[h,E]);function P(){var M,U;(M=T.current)==null||M.dispose(),p?f&&gl.set(n,S.current.saveViewState()):(U=S.current.getModel())==null||U.dispose(),S.current.dispose()}return V.createElement(mk,{width:d,height:m,isEditorReady:h,loading:l,_ref:A,className:k,wrapperProps:v})}var gL=hL,yL=V.memo(gL),vL=yL;const bL={base:"vs-dark",inherit:!0,rules:[{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"}],colors:{"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}},kL=Object.freeze(Object.defineProperty({__proto__:null,button:o2,json:s2,sourceCode: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:p="100%",theme:d="dracula",...m}=a,k=dL();V.useEffect(()=>{k&&k.editor.defineTheme("dracula",bL)});const v=V.useCallback(b=>{if(b!==void 0)if(c==="json")try{l(JSON.parse(b),t.path)}catch{l(null,t.path,{__errors:["Invalid JSON"]})}else l(b,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(vL,{id:t.$id,className:en(["form-control","source-code"]),theme:d,width:p,height:f,defaultLanguage:c,defaultValue:g,onChange:v,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:o||s,tabSize:2,minimap:{enabled:!1},...m},...u})}),N.jsx("small",{className:"text-muted form-text",children:N.jsx(Sr,{children:i})})]})}},Symbol.toStringTag,{value:"Module"}));function wL(e,t){return e==null?!0:Tg(e,t)}function rd(){return Jy("rjsf-array-item-")}function gk(e){return Array.isArray(e)?e.map(t=>({key:rd(),item:t})):[]}function yk(e){return Array.isArray(e)?e.map(t=>t.item):[]}function SL(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function vk(e,t,r,i){let{addable:a}=pe(i,e.globalUiOptions);return a!==!1&&(t.maxItems!==void 0?a=r.length<t.maxItems:a=!0),a}function bk(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 CL(e,t){const{schemaUtils:r,globalFormOptions:i}=e;let a=t.items;return i.useFallbackUiForUnsupportedType&&!a?a={}:Jc(t)&&gO(t)&&(a=t.additionalItems),r.getDefaultFormState(a)}function EL(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:p,rawErrors:d,name:m,onSelectChange:k}=e,{widgets:v,schemaUtils:g,globalFormOptions:b,globalUiOptions:w}=p,E=g.retrieveSchema(t.items,a),h=(i==null?void 0:i.items)??i,y=si(E,h),{widget:C="select",title:x,..._}=pe(i,w),S=Vr(t,C,v),A=x??t.title??m,O=g.getDisplayLabel(t,i,w),F=Yi(Or("",b,r,!0));return N.jsx(S,{id:F[tt],name:m,multiple:!0,onChange:k,onBlur:c,onFocus:f,options:{..._,enumOptions:y},schema:t,uiSchema:i,registry:p,value:a,disabled:n,readonly:s,required:l,label:A,hideLabel:!O,placeholder:u,autofocus:o,rawErrors:d,htmlName:F.name})}function AL(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:p=[],registry:d,rawErrors:m,name:k,onSelectChange:v}=e,{widgets:g,schemaUtils:b,globalFormOptions:w,globalUiOptions:E}=d,{widget:h,title:y,...C}=pe(i,E),x=Vr(t,h,g),_=y??t.title??k,S=b.getDisplayLabel(t,i,E),A=Yi(Or("",w,r,!0));return N.jsx(x,{id:A[tt],name:k,multiple:!0,onChange:v,onBlur:c,onFocus:f,options:C,schema:t,uiSchema:i,registry:d,value:p,disabled:a,readonly:n,hideError:l,required:o,label:_,hideLabel:!S,placeholder:u,autofocus:s,rawErrors:m,htmlName:A.name})}function xL(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:p=[],rawErrors:d,onSelectChange:m}=e,{widgets:k,schemaUtils:v,globalFormOptions:g,globalUiOptions:b}=f,{widget:w="files",title:E,...h}=pe(r,b),y=Vr(t,w,k),C=E??t.title??a,x=v.getDisplayLabel(t,r,b),_=Yi(Or("",g,i,!0));return N.jsx(y,{options:h,id:_[tt],name:a,multiple:!0,onChange:m,onBlur:u,onFocus:c,schema:t,uiSchema:r,value:p,disabled:n,readonly:s,required:l,registry:f,autofocus:o,rawErrors:d,label:C,hideLabel:!x,htmlName:_.name})}function OL(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:p,canMoveDown:d,rawItemSchema:m,itemData:k,itemUiSchema:v,parentFieldPathId:g,itemErrorSchema:b,autofocus:w,onBlur:E,onFocus:h,onChange:y,rawErrors:C,totalItems:x,title:_,handleAddItem:S,handleCopyItem:A,handleRemoveItem:O,handleReorderItems:F}=e,{schemaUtils:T,fields:{ArraySchemaField:j,SchemaField:q},globalUiOptions:J,globalFormOptions:Y}=o,X=V.useMemo(()=>T.retrieveSchema(m,k),[T,m,k]),P=V.useMemo(()=>Or(r,Y,g),[r,Y,g]),M=j||q,U=ge("ArrayFieldItemTemplate",o,l),I=T.getDisplayLabel(X,v,J),{description:D}=pe(v),L=!!D||!!X.description,{orderable:B=!0,removable:R=!0,copyable:H=!1}=l,G={moveUp:B&&p,moveDown:B&&d,copy:H&&c,remove:R&&f,toolbar:!1};G.toolbar=Object.keys(G).some(re=>G[re]);const Z=V.useCallback(re=>{S(re,r+1)},[S,r]),z=V.useCallback(re=>{A(re,r)},[A,r]),$=V.useCallback(re=>{O(re,r)},[O,r]),W=V.useCallback(re=>{F(re,r,r-1)},[F,r]),K=V.useCallback(re=>{F(re,r,r+1)},[F,r]),ie={children:N.jsx(M,{name:i,title:_,index:r,schema:X,uiSchema:v,formData:k,errorSchema:b,fieldPathId:P,required:SL(X),onChange:y,onBlur:E,onFocus:h,registry:o,disabled:a,readonly:s,hideError:n,autofocus:w,rawErrors:C}),buttonsProps:{fieldPathId:P,disabled:a,readonly:s,canAdd:c,hasCopy:G.copy,hasMoveUp:G.moveUp,hasMoveDown:G.moveDown,hasRemove:G.remove,index:r,totalItems:x,onAddItem:Z,onCopyItem:z,onRemoveItem:$,onMoveUpItem:W,onMoveDownItem:K,registry:o,schema:X,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:a,hasToolbar:G.toolbar,index:r,totalItems:x,readonly:s,registry:o,schema:X,uiSchema:v,parentUiSchema:u,displayLabel:I,hasDescription:L};return N.jsx(U,{...ie})}const kk=V.memo(OL);function _L(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:p=!1,registry:d,onBlur:m,onFocus:k,rawErrors:v,onChange:g,keyedFormData:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:h,handleReorderItems:y}=e,C=t.title||o||s,{schemaUtils:x,fields:_,formContext:S,globalUiOptions:A}=d,{OptionalDataControlsField:O}=_,F=V.useMemo(()=>pe(r,A),[r,A]),T=V.useMemo(()=>Re(t.items)?t.items:{},[t.items]),j=V.useMemo(()=>x.retrieveSchema(T),[x,T]),q=V.useMemo(()=>yk(b),[b]),J=rs(d,t,f,r),Y=Ji(n),X=V.useMemo(()=>vk(d,t,q,r)&&(!J||Y),[d,t,q,r,J,Y]),P=Y?b:[],M=J?" rjsf-optional-array-field":"",U=e.childFieldPathId??a,I=J?N.jsx(O,{...e,fieldPathId:U}):void 0,D={canAdd:X,items:P.map((B,R)=>{const{key:H,item:G}=B,Z=G,z=i?i[R]:void 0,$=bk(r,G,R,S),W={itemKey:H,index:R,name:s&&`${s}-${R}`,registry:d,uiOptions:F,parentUiSchema:r,hideError:p,readonly:u,disabled:l,required:f,title:C?`${C}-${R+1}`:void 0,canAdd:X,canMoveUp:R>0,canMoveDown:R<q.length-1,rawItemSchema:T,parentFieldPathId:U,itemErrorSchema:z,itemData:Z,itemUiSchema:$,autofocus:c&&R===0,onBlur:m,onFocus:k,rawErrors:v,totalItems:b.length,handleAddItem:w,handleCopyItem:E,handleRemoveItem:h,handleReorderItems:y,onChange:g};return N.jsx(kk,{...W},H)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${j.type}${M}`,disabled:l,fieldPathId:a,uiSchema:r,onAddClick:w,readonly:u,required:f,schema:t,title:C,formData:q,rawErrors:v,registry:d,optionalDataControl:I},L=ge("ArrayFieldTemplate",d,F);return N.jsx(L,{...D})}function PL(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:p=!1,registry:d,onBlur:m,onFocus:k,rawErrors:v,keyedFormData:g,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:h,handleReorderItems:y}=e;let{formData:C=[]}=e;const x=t.title||o||s,{fields:_,formContext:S,globalUiOptions:A}=d,O=V.useMemo(()=>pe(r,A),[r,A]),{OptionalDataControlsField:F}=_,T=rs(d,t,f,r),j=Ji(i),q=V.useMemo(()=>Re(t.items)?t.items:[],[t.items]),J=Re(t.additionalItems),Y=e.childFieldPathId??n;C.length<q.length&&(C=C.concat(new Array(q.length-C.length)));const X=j?g:[],P=T?" rjsf-optional-array-field":"",M=T?N.jsx(F,{...e,fieldPathId:Y}):void 0,U=vk(d,t,C,r)&&J&&(!T||j),I={canAdd:U,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:l,fieldPathId:n,formData:i,items:X.map((L,B)=>{const{key:R,item:H}=L,G=H,Z=B>=q.length,z=(Z&&Re(t.additionalItems)?t.additionalItems:q[B])||{};let $;Z?$=r.additionalItems:Array.isArray(r.items)?$=r.items[B]:$=bk(r,H,B,S);const W=a?a[B]:void 0,K={index:B,itemKey:R,name:s&&`${s}-${B}`,registry:d,uiOptions:O,parentUiSchema:r,hideError:p,readonly:u,disabled:l,required:f,title:x?`${x}-${B+1}`:void 0,canAdd:U,canRemove:Z,canMoveUp:B>=q.length+1,canMoveDown:Z&&B<C.length-1,rawItemSchema:z,itemData:G,itemUiSchema:$,parentFieldPathId:Y,itemErrorSchema:W,autofocus:c&&B===0,onBlur:m,onFocus:k,rawErrors:v,totalItems:g.length,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:h,handleReorderItems:y};return N.jsx(kk,{...K},R)}),onAddClick:w,readonly:u,required:f,registry:d,schema:t,uiSchema:r,title:x,errorSchema:a,rawErrors:v,optionalDataControl:M},D=ge("ArrayFieldTemplate",d,O);return N.jsx(D,{...I})}function IL(e=[]){const t=V.useMemo(()=>hr(e),[e]),[r,i]=V.useState(()=>({formDataHash:t,keyedFormData:gk(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]})):gk(o),n=t,i({formDataHash:n,keyedFormData:a})}const s=V.useCallback(o=>{const l=yk(o),u=hr(l);return i({formDataHash:u,keyedFormData:o}),l},[]);return{keyedFormData:a,updateKeyedFormData:s}}function TL(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:p}=IL(s),d=V.useRef(f);d.current=f;const m=V.useRef(i);m.current=i;const k=e.childFieldPathId??a,v=V.useCallback((x,_)=>{x&&x.preventDefault();let S;if(m.current){S={};for(const F of Object.keys(m.current)){const T=parseInt(F,10);_===void 0||T<_?ot(S,[T],m.current[T]):T>=_&&ot(S,[T+1],m.current[T])}}const A={key:rd(),item:CL(n,t)},O=[...d.current];_!==void 0?O.splice(_,0,A):O.push(A),o(p(O),k.path,S)},[n,t,o,p,k]),g=V.useCallback((x,_)=>{x&&x.preventDefault();let S;if(m.current){S={};for(const F of Object.keys(m.current)){const T=parseInt(F,10);T<=_?ot(S,[T],m.current[T]):T>_&&ot(S,[T+1],m.current[T])}}const A={key:rd(),item:ho(d.current[_].item)},O=[...d.current];_!==void 0?O.splice(_+1,0,A):O.push(A),o(p(O),k.path,S)},[o,p,k]),b=V.useCallback((x,_)=>{x&&x.preventDefault();let S;if(m.current){S={};for(const O of Object.keys(m.current)){const F=parseInt(O,10);F<_?ot(S,[F],m.current[F]):F>_&&ot(S,[F-1],m.current[F])}}const A=d.current.filter((O,F)=>F!==_);o(p(A),k.path,S)},[o,p,k]),w=V.useCallback((x,_,S)=>{x&&(x.preventDefault(),x.currentTarget.blur());let A;if(m.current){A={};for(const T of Object.keys(m.current)){const j=parseInt(T,10);j===_?ot(A,[S],m.current[_]):j===S?ot(A,[_],m.current[S]):ot(A,[T],m.current[j])}}function O(){const T=d.current.slice();return T.splice(_,1),T.splice(S,0,d.current[_]),T}const F=O();o(p(F),k.path,A)},[o,p,k]),E=V.useCallback((x,_,S,A)=>{const O=typeof _.at(-1)=="number";o(O&&x===void 0?null:x,_,S,A)},[o]),h=V.useCallback(x=>{o(x,k.path,void 0,k==null?void 0:k[tt])},[o,k]),y={...e,formData:s,fieldPathId:k,onSelectChange:h},C={...e,handleAddItem:v,handleCopyItem:g,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:E};if(!(ji in t)){if(!l.useFallbackUiForUnsupportedType){const _=pe(r),S=ge("UnsupportedFieldTemplate",n,_);return N.jsx(S,{schema:t,fieldPathId:a,reason:c(Oe.MissingItems),registry:n})}const x={...t,[ji]:{type:void 0}};y.schema=x,C.schema=x}return u.isMultiSelect(y.schema)?N.jsx(EL,{...y}):My(r)?N.jsx(AL,{...y}):Jc(y.schema)?N.jsx(PL,{...C}):u.isFilesArray(y.schema,r)?N.jsx(xL,{...y}):N.jsx(_L,{...C})}function NL(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:p,onChange:d,onFocus:m,onBlur:k,rawErrors:v}=e,{title:g}=t,{widgets:b,translateString:w,globalUiOptions:E}=s,{widget:h="checkbox",title:y,label:C=!0,enumNames:x,..._}=pe(i,E),S=Vr(t,h,b),A=w(Oe.YesLabel),O=w(Oe.NoLabel);let F;const T=y??g??p??r;if(Array.isArray(t.oneOf))F=si({oneOf:t.oneOf.map(q=>{if(Re(q))return{...q,title:q.title||(q.const===!0?A:O)}}).filter(q=>q)},i);else{const q=t.enum??[!0,!1];!x&&q.length===2&&q.every(J=>typeof J=="boolean")?F=[{value:q[0],label:q[0]?A:O},{value:q[1],label:q[1]?A:O}]:F=si({enum:q},i)}const j=V.useCallback((q,J,Y)=>d(q,a.path,J,Y),[d,a]);return N.jsx(S,{options:{..._,enumOptions:F},schema:t,uiSchema:i,id:a.$id,name:r,onChange:j,onFocus:m,onBlur:k,label:T,hideLabel:!C,value:n,required:o,disabled:l,readonly:u,hideError:c,registry:s,autofocus:f,rawErrors:v,htmlName:a.name})}function FL(e){const[t,r]=V.useState(!1),{name:i,registry:a,schema:n,uiSchema:s,fieldPathId:o}=e,{globalUiOptions:l}=a,u=pe(s,l),c=ge("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:p}=f;return N.jsx(p,{...e,schema:{...n,[tc]:!1}})}function DL(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function ML(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function jL(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 LL(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:p,fieldPathId:d,onChange:m,errorSchema:k}=e,{translateString:v,fields:g,globalFormOptions:b}=p,[w,E]=V.useState(ML(r)),h=pe(s),y=Yi(Or("__internal_type_selector",b,d)),C=v(Oe.Type),x=V.useMemo(()=>DL(C),[C]),_=O=>{O!=null&&(E(O),m(jL(r,O),d.path,k,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:O=v(Oe.UnknownFieldType,[String(a.type)])}=e,F=ge("UnsupportedFieldTemplate",p,h);return N.jsx(F,{schema:a,fieldPathId:d,reason:O,registry:p})}const S=ge("FallbackFieldTemplate",p,h),{SchemaField:A}=g;return N.jsx(S,{schema:a,registry:p,typeSelector:N.jsx(A,{fieldPathId:y,name:`${n}__fallback_type`,schema:x,formData:w,onChange:_,onBlur:c,onFocus:f,registry:p,hideLabel:!i,disabled:l,readonly:u,required:o},r?hr(r):"__empty__"),schemaField:N.jsx(A,{...e,schema:{type:w,title:v(Oe.Value),...w==="object"&&{additionalProperties:!0}}})})}function qL(e,t){return Li(t,function(r){return e[r]})}function $L(e){return e==null?[]:qL(e,Er(e))}var zL=Math.max;function RL(e,t,r,i){e=ti(e)?e:$L(e),r=r?Vg(r):0;var a=e.length;return r<0&&(r=zL(a+r,0)),bn(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&ty(e,t,r)>-1}var BL=Math.min;function UL(e,t,r){for(var i=zc,a=e[0].length,n=e.length,s=n,o=Array(n),l=1/0,u=[];s--;){var c=e[s];l=BL(c.length,l),o[s]=a>=120&&c.length>=120?new ni(s&&c):void 0}c=e[0];var f=-1,p=o[0];e:for(;++f<a&&u.length<l;){var d=c[f],m=d;if(d=d!==0?d:0,!(p?Ga(p,m):i(u,m))){for(s=n;--s;){var k=o[s];if(!(k?Ga(k,m):i(e[s],m)))continue e}p&&p.push(m),u.push(d)}}return u}function VL(e){return Wa(e)?e:[]}var wk=io(function(e){var t=Li(e,VL);return t.length&&t[0]===e[0]?UL(t):[]});function HL(e,t){return so(e,t)}function Sk(e){return e===void 0}var Hr;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(Hr||(Hr={}));var ps;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(ps||(ps={}));const KL=/^\$lookup=(.+)/,nd="layoutGrid";function Ck(e,t){return e??t}function WL(e){return/^\d+?$/.test(e)}const In=tf();function GL(e,t,r,i,a){const n=ae(r,[ic],{}),s=ae(r,e),o={...ae(s,[gn],{}),...t,...n},l={...s};kt(o)||ot(l,[gn],o),kt(n)||ot(l,[ic],n);let{readonly:u}=pe(l);return(a===!0||Sk(u)&&i===!0)&&(u=!0,$e(o,ec)?ot(l,[gn,ec],!0):ot(l,`ui:${ec}`,!0)),{fieldUiSchema:l,uiReadonly:u}}function JL(e,t,r="$0m3tH1nG Un3xP3cT3d"){const i=Ic([t]).sort(),a=Ic([r]).sort();switch(e){case ps.ALL:return HL(i,a);case ps.SOME:return wk(i,a).length>0;case ps.NONE:return wk(i,a).length===0;default:return!1}}function yl(e,t,r){let i={},a=e[t];if(yn(a)){const{children:n,className:s,...o}=a;if(a=n,s){const u=s.split(" ").map(c=>lf(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 Ek(e,t,r){let i,a=t;if(WL(r)&&e&&(e==null?void 0:e.type)==="array"&&$e(e,ji)){const n=Number(r),s=e[ji];Array.isArray(s)?n>s.length?i=Ig(s):i=s[n]:i=s,a={[tt]:t[tt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:i,fieldPathId:a}}function YL(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),p=i,d=f.readOnly;u.forEach(v=>{if(l=Or(v,s,l),$e(f,ze))o=ae(f,[ze,v],{});else if(f&&($e(f,xe)||$e(f,je))){const g=$e(f,xe)?xe:je,b=n.findSelectedOptionInXxxOf(f,v,g,p);o=ae(b,[ze,v],{})}else{const g=Ek(f,l,v);o=g.rawSchema??{},l=g.fieldPathId}p=ae(p,v,{}),f=n.retrieveSchema(o,p),d=Ck(f.readOnly,d)});let m,k=!1;if(kt(f)&&(f=void 0),f&&c){if(f&&($e(f,xe)||$e(f,je))){const g=$e(f,xe)?xe:je;f=n.findSelectedOptionInXxxOf(f,c,g,p)}l=Or(c,s,l),k=f!==void 0&&Array.isArray(f.required)&&RL(f.required,c);const v=Ek(f,l,c);if(v.rawSchema?(f=v.rawSchema,l=v.fieldPathId):(f=ae(f,[ze,c]),f=f&&n.retrieveSchema(f)),d=Ck(f==null?void 0:f.readOnly,d),f&&($e(f,xe)||$e(f,je))){const g=$e(f,xe)?xe:je,b=dr(f);m={options:f[g],hasDiscriminator:!!b}}}return{schema:f,isRequired:k,isReadonly:d,optionsInfo:m,fieldPathId:l}}function XL(e,t){let r=e;return bn(r)&&(r=lf(t,r)),Fa(r)?r:null}function ZL(e,t){let r,i=null,a={},n;if(bn(t)||Sk(t))r=t??"";else{const{name:s="",render:o,...l}=t;r=s,a=l,kt(a)||QD(a,(u,c)=>{if(bn(u)){const f=KL.exec(u);if(Array.isArray(f)&&f.length>1){const p=f[1];a[c]=lf(e,p,p)}}}),i=XL(o,e),!s&&i&&(n=N.jsx(i,{...l,"data-testid":In.uiComponent}))}return{name:r,UIComponent:i,uiProps:a,rendered:n}}function vl(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-${hr(l)}`,schema:o,layoutGridSchema:l}))}function QL(e){const{layoutGridSchema:t,...r}=e,{formData:i,registry:a}=r,{children:n,gridProps:s}=yl(t,Hr.CONDITION,a),{operator:o,field:l="",value:u}=s,c=ae(i,l,null);return JL(o,c,u)?N.jsx(vl,{...r,childrenLayoutGridSchemaId:n}):null}function eq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=yl(t,Hr.COLUMN,i),o=pe(a),l=ge("GridTemplate",i,o);return N.jsx(l,{column:!0,"data-testid":In.col,...s,children:N.jsx(vl,{...r,childrenLayoutGridSchemaId:n})})}function tq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=yl(t,Hr.COLUMNS,i),o=pe(a),l=ge("GridTemplate",i,o);return n.map(u=>N.jsx(l,{column:!0,"data-testid":In.col,...s,children:N.jsx(vl,{...r,childrenLayoutGridSchemaId:[u]})},`column-${hr(u)}`))}function rq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=yl(t,Hr.ROW,i),o=pe(a),l=ge("GridTemplate",i,o);return N.jsx(l,{...s,"data-testid":In.row,children:N.jsx(vl,{...r,childrenLayoutGridSchemaId:n})})}function nq(e){const{gridSchema:t,schema:r,uiSchema:i,errorSchema:a,fieldPathId:n,onBlur:s,onFocus:o,formData:l,readonly:u,registry:c,layoutGridSchema:f,...p}=e,{onChange:d}=p,{fields:m}=c,{SchemaField:k,LayoutMultiSchemaField:v}=m,g=ZL(c,t),{name:b,UIComponent:w,uiProps:E}=g,{schema:h,isRequired:y,isReadonly:C,optionsInfo:x,fieldPathId:_}=YL(c,b,r,l,n),S=Yi(_);if(g.rendered)return g.rendered;if(h){const A=x!=null&&x.hasDiscriminator?v:k,{fieldUiSchema:O,uiReadonly:F}=GL(b,E,i,C,u);return N.jsx(A,{"data-testid":x!=null&&x.hasDiscriminator?In.layoutMultiSchemaField:In.field,...p,name:b,required:y,readonly:F,schema:h,uiSchema:O,errorSchema:ae(a,b),fieldPathId:S,formData:ae(l,b),onChange:d,onBlur:s,onFocus:o,options:x==null?void 0:x.options,registry:c})}return w?N.jsx(w,{"data-testid":In.uiComponent,...p,name:b,required:y,formData:l,readOnly:!!C||u,errorSchema:a,uiSchema:i,schema:r,fieldPathId:n,onBlur:s,onFocus:o,registry:c,...E}):null}function id(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const i=pe(t);if(!r&&nd in i&&Re(i[nd])&&(r=i[nd]),Re(r)){if(Hr.ROW in r)return N.jsx(rq,{...e,layoutGridSchema:r});if(Hr.COLUMN in r)return N.jsx(eq,{...e,layoutGridSchema:r});if(Hr.COLUMNS in r)return N.jsx(tq,{...e,layoutGridSchema:r});if(Hr.CONDITION in r)return N.jsx(QL,{...e,layoutGridSchema:r})}return N.jsx(nq,{...e,gridSchema:r})}id.TEST_IDS=In;function iq(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,name:o}=e,l=pe(a,s.globalUiOptions),{title:u}=l,{title:c}=i,f=u||r||c||o;if(!f)return null;const p=ge("TitleFieldTemplate",s,l);return N.jsx(p,{id:yo(t),title:f,required:n,schema:i,uiSchema:a,registry:s})}function ad(e,t,r){const i="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const s=ae(n,[ze,t]);return ae(s,Yn,ae(s,Vt,i))===r})}function Ak(e,t,r,i,a){const n=t.map(l=>r.retrieveSchema(l,a));let s=e;$e(e,xe)?s={...e,[xe]:n}:$e(e,je)&&(s={...e,[je]:n});const o=si(s,i);if(!o)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(s)}`);return o}function aq(e){var $;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:p,autofocus:d,readonly:m,required:k,errorSchema:v,hideError:g=!1}=e,{widgets:b,schemaUtils:w,globalUiOptions:E}=c,[h,y]=V.useState(Ak(p,l,w,f,a)),C=ae(n,tt),x=dr(p),_=ge("FieldErrorTemplate",c,l),S=ge("FieldTemplate",c,l),A=hr(p),O=hr(l),F=f?hr(f):"",T=a?hr(a):"";V.useEffect(()=>{y(Ak(p,l,w,f,a))},[A,O,w,F,T]);const{widget:j=x?"radio":"select",title:q="",placeholder:J="",optionsSchemaSelector:Y=x,hideError:X,...P}=pe(f);if(!Y)throw new Error("No selector field provided for the LayoutMultiSchemaField");const M=ae(a,Y);let U=ae(($=h[0])==null?void 0:$.schema,[ze,Y],{});const I=ad(h,Y,M);U=U!=null&&U.type?U:{...U,type:(I==null?void 0:I.type)||r};const D=Vr(U,j,b),L=X===void 0?g:!!X,B=ae(v,[Dt],[]),R=Ha(v,[Dt]),H=w.getDisplayLabel(p,f,E),G=W=>{if(i||m)return;const K=ad(h,Y,W),ie=ad(h,Y,M);let re=w.sanitizeDataForNewSchema(K,ie,a);re&&K&&(re=w.getDefaultFormState(K,re,"excludeObjectChildren")),re&&ot(re,Y,W),o(re,n.path,void 0,C)},Z={enumOptions:h,...P},z=!L&&B.length>0?N.jsx(_,{fieldPathId:n,schema:p,errors:B,registry:c}):void 0;return N.jsx(S,{fieldPathId:n,id:C,schema:p,label:(q||p.title)??"",disabled:i||Array.isArray(h)&&kt(h),uiSchema:f,required:k,readonly:!!m,registry:c,displayLabel:H,errors:z,onChange:o,onKeyRename:oo,onKeyRenameBlur:oo,onRemoveProperty:oo,children:N.jsx(D,{id:C,name:t,schema:p,label:(q||p.title)??"",disabled:i||Array.isArray(h)&&kt(h),uiSchema:f,autofocus:d,readonly:m,required:k,registry:c,multiple:!1,rawErrors:B,hideError:L,hideLabel:!H,errorSchema:R,placeholder:J,onChange:G,onBlur:s,onFocus:u,value:M,options:Z,htmlName:n.name})})}function xk(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:p=!1,schema:d,uiSchema:m}=e,{schemaUtils:k}=f,v=hr(a??null),g=V.useMemo(()=>u.map(re=>k.retrieveSchema(re,a)),[u,k,v]),[b,w]=V.useState(()=>{const re=dr(d);return k.getClosestMatchingOption(a,g,0,re)}),E=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,!Be(a,re)&&n.$id===ue){if(E.current){E.current=!1;return}const ye=dr(d),Se=k.getClosestMatchingOption(a,g,b,ye);Se!==b&&w(Se)}});const C=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,x=V.useCallback(re=>{if(r||c)return;const ue=re!==void 0?parseInt(re,10):-1;if(ue===b)return;const ye=ue>=0?g[ue]:void 0,Se=b>=0?g[b]:void 0;let ke=k.sanitizeDataForNewSchema(ye,Se,a);ye&&(ke=k.getDefaultFormState(ye,ke,"excludeObjectChildren")),w(ue),E.current=!0,o(ke,n.path,void 0,C)},[b,g,r,c,k,a,n,o,C]),{widgets:_,fields:S,translateString:A,globalUiOptions:O}=f,{SchemaField:F}=S,T=ge("MultiSchemaFieldTemplate",f,O),j=rs(f,d,p,m),q=Ji(a),{widget:J="select",placeholder:Y,autofocus:X,autocomplete:P,title:M=d.title,...U}=pe(m,O),I=Vr({type:"number"},J,_),D=ae(i,Dt,[]),L=Ha(i,[Dt]),B=k.getDisplayLabel(d,m,O),R=b>=0&&g[b]||null;let H;if(R){const{required:re,type:ue}=d,ye={};re&&(ye.required=re),ue!==void 0&&!("type"in R)&&(ye.type=ue),H=Object.keys(ye).length>0?sn(ye,R):R}let G=[];xe in d&&m&&xe in m?Array.isArray(m[xe])?G=m[xe]:console.warn(`uiSchema.oneOf is not an array for "${M||t}"`):je in d&&m&&je in m&&(Array.isArray(m[je])?G=m[je]:console.warn(`uiSchema.anyOf is not an array for "${M||t}"`));let Z=m;b>=0&&G.length>b&&(Z=G[b]);const z=M?Oe.TitleOptionPrefix:Oe.OptionPrefix,$=M?[M]:[],W=g.map((re,ue)=>{const{title:ye=re.title}=pe(G[ue]);return{label:ye||A(z,$.concat(String(ue+1))),value:ue}}),K=!j||q?N.jsx(I,{id:C,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:x,onBlur:s,onFocus:l,disabled:r||kt(W),multiple:!1,rawErrors:D,errorSchema:L,value:b>=0?b:void 0,options:{enumOptions:W,...U},registry:f,placeholder:Y,autocomplete:P,autofocus:X,label:M??t,hideLabel:!B,readonly:c}):void 0,ie=H&&H.type!=="null"&&N.jsx(F,{...e,schema:H,uiSchema:Z})||null;return N.jsx(T,{schema:d,registry:f,uiSchema:m,selector:K,optionSchemaField:ie})}function sq(e){const{formData:t,onChange:r,fieldPathId:i}=e;return V.useEffect(()=>{t===void 0&&r(null,i.path)},[i,t,r]),null}const oq=/\.([0-9]*0)*$/,lq=/[0.]0*$/;function uq(e){const{registry:t,onChange:r,formData:i,value:a}=e,[n,s]=V.useState(a),{StringField:o}=t.fields,l=vh(),u=l==="."?"\\.":l;let c=i;const f=V.useCallback((d,m,k,v)=>{s(d);const g=typeof d=="string"?d.replace(l,"."):d,b=`${g}`.startsWith(".")?`0${g}`:g,w=typeof b=="string"&&oq.exec(b)?bh(b.replace(lq,"")):bh(b);r(w,m,k,v)},[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 p=c;if(typeof c=="number"&&l!=="."){const{schema:d,uiSchema:m}=e,{schemaUtils:k}=t,g=(k.isSelect(d)?si(d,m):void 0)?"select":"text",{widget:b=g}=pe(m);b!=="radio"&&b!=="select"&&b!=="hidden"&&(p=String(c).replace(".",l))}return N.jsx(o,{...e,formData:p,onChange:f})}var bl;function cq(e){if(!bl){if(typeof document>"u")return;bl=document.createElement("textarea")}var t=`&${e};`;bl.innerHTML=t;var r=bl.value;return r===t?void 0:r}var se=32,le=9,Tn=13,fe=10,Ge=96,Pt=126,vt=91,cn=94,Ne=62,gr=35,sd=37,_e=45,yr=61,Nt=92,wt=42,gt=95,it=60,Ok=64,Ir=93,Kt=33,kl=38,$t=58,od=70,fi=102,wl=104,di=119,ta=116,ld=112,_k=115,fq=160,dq=12,pq=44,Sl=59,ra=63,vr=46,bt=47,pi=39,mi=34,Nn=43,Ft=124,hi=123,ud=125,Tr=40,Nr=41,mq=78,hq=110,gq=79,yq=111,Pk=120,Ik=88,cd=30,Fe=48,De=57,we=65,Ae=90,Ze=97,lt=122,Cl=128,Fr=32,vq={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=vq;function bq(e){if(!Fk(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]!==`
96
+ `},fk=M2($2)(ck),z2={config:L2},R2=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 dk(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],dk(e[r],t[r]))}),ok(ok({},e),t)}var U2={type:"cancelation",msg:"operation is manually canceled"};function Zf(e){var t=!1,r=new Promise(function(i,a){e.then(function(n){return t?a(U2):i(n)}),e.catch(a)});return r.cancel=function(){return t=!0},r}var B2=["monaco"],V2=F2.create({config:D2,isInitialized:!1,resolve:null,reject:null,monaco:null}),pk=h2(V2,2),fs=pk[0],ml=pk[1];function H2(e){var t=z2.config(e),r=t.monaco,i=p2(t,B2);ml(function(a){return{config:dk(a.config,i),monaco:r}})}function K2(){var e=fs(function(t){var r=t.monaco,i=t.isInitialized,a=t.resolve;return{monaco:r,isInitialized:i,resolve:a}});if(!e.isInitialized){if(ml({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Zf(Qf);if(window.monaco&&window.monaco.editor)return mk(window.monaco),e.resolve(window.monaco),Zf(Qf);R2(W2,J2)(Y2)}return Zf(Qf)}function W2(e){return document.body.appendChild(e)}function G2(e){var t=document.createElement("script");return e&&(t.src=e),t}function J2(e){var t=fs(function(i){var a=i.config,n=i.reject;return{config:a,reject:n}}),r=G2("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Y2(){var e=fs(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;mk(i),e.resolve(i)},function(r){e.reject(r)})}function mk(e){fs().monaco||ml({monaco:e})}function X2(){return fs(function(e){var t=e.monaco;return t})}var Qf=new Promise(function(e,t){return ml({resolve:e,reject:t})}),hl={config:H2,init:K2,__getMonacoInstance:X2},Z2={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ed=Z2,Q2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},eL=Q2;function tL({children:e}){return V.createElement("div",{style:eL.container},e)}var rL=tL,nL=rL;function iL({width:e,height:t,isEditorReady:r,loading:i,_ref:a,className:n,wrapperProps:s}){return V.createElement("section",{style:{...ed.wrapper,width:e,height:t},...s},!r&&V.createElement(nL,null,i),V.createElement("div",{ref:a,style:{...ed.fullWidth,...!r&&ed.hide},className:n}))}var aL=iL,hk=V.memo(aL);function sL(e){V.useEffect(e,[])}var td=sL;function oL(e,t,r=!0){let i=V.useRef(!0);V.useEffect(i.current||!r?()=>{i.current=!1}:e,t)}var ir=oL;function ds(){}function ea(e,t,r,i){return lL(e,i)||uL(e,t,r,i)}function lL(e,t){return e.editor.getModel(gk(e,t))}function uL(e,t,r,i){return e.editor.createModel(t,r,i?gk(e,i):void 0)}function gk(e,t){return e.Uri.parse(t)}function cL({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:p="100%",width:d="100%",className:m,wrapperProps:k={},beforeMount:v=ds,onMount:g=ds}){let[b,w]=V.useState(!1),[E,h]=V.useState(!0),y=V.useRef(null),C=V.useRef(null),x=V.useRef(null),_=V.useRef(g),S=V.useRef(v),A=V.useRef(!1);td(()=>{let j=hl.init();return j.then(q=>(C.current=q)&&h(!1)).catch(q=>(q==null?void 0:q.type)!=="cancelation"&&console.error("Monaco initialization: error:",q)),()=>y.current?T():j.cancel()}),ir(()=>{if(y.current&&C.current){let j=y.current.getOriginalEditor(),q=ea(C.current,e||"",i||r||"text",n||"");q!==j.getModel()&&j.setModel(q)}},[n],b),ir(()=>{if(y.current&&C.current){let j=y.current.getModifiedEditor(),q=ea(C.current,t||"",a||r||"text",s||"");q!==j.getModel()&&j.setModel(q)}},[s],b),ir(()=>{let j=y.current.getModifiedEditor();j.getOption(C.current.editor.EditorOption.readOnly)?j.setValue(t||""):t!==j.getValue()&&(j.executeEdits("",[{range:j.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),j.pushUndoStop())},[t],b),ir(()=>{var j,q;(q=(j=y.current)==null?void 0:j.getModel())==null||q.original.setValue(e||"")},[e],b),ir(()=>{let{original:j,modified:q}=y.current.getModel();C.current.editor.setModelLanguage(j,i||r||"text"),C.current.editor.setModelLanguage(q,a||r||"text")},[r,i,a],b),ir(()=>{var j;(j=C.current)==null||j.editor.setTheme(u)},[u],b),ir(()=>{var j;(j=y.current)==null||j.updateOptions(f)},[f],b);let O=V.useCallback(()=>{var J;if(!C.current)return;S.current(C.current);let j=ea(C.current,e||"",i||r||"text",n||""),q=ea(C.current,t||"",a||r||"text",s||"");(J=y.current)==null||J.setModel({original:j,modified:q})},[r,t,a,e,i,n,s]),F=V.useCallback(()=>{var j;!A.current&&x.current&&(y.current=C.current.editor.createDiffEditor(x.current,{automaticLayout:!0,...f}),O(),(j=C.current)==null||j.editor.setTheme(u),w(!0),A.current=!0)},[f,u,O]);V.useEffect(()=>{b&&_.current(y.current,C.current)},[b]),V.useEffect(()=>{!E&&!b&&F()},[E,b,F]);function T(){var q,J,Y,X;let j=(q=y.current)==null?void 0:q.getModel();o||((J=j==null?void 0:j.original)==null||J.dispose()),l||((Y=j==null?void 0:j.modified)==null||Y.dispose()),(X=y.current)==null||X.dispose()}return V.createElement(hk,{width:d,height:p,isEditorReady:b,loading:c,_ref:x,className:m,wrapperProps:k})}var fL=cL;V.memo(fL);function dL(){let[e,t]=V.useState(hl.__getMonacoInstance());return td(()=>{let r;return e||(r=hl.init(),r.then(i=>{t(i)})),()=>r==null?void 0:r.cancel()}),e}var pL=dL;function mL(e){let t=V.useRef();return V.useEffect(()=>{t.current=e},[e]),t.current}var hL=mL,gl=new Map;function gL({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:p=!1,width:d="100%",height:m="100%",className:k,wrapperProps:v={},beforeMount:g=ds,onMount:b=ds,onChange:w,onValidate:E=ds}){let[h,y]=V.useState(!1),[C,x]=V.useState(!0),_=V.useRef(null),S=V.useRef(null),A=V.useRef(null),O=V.useRef(b),F=V.useRef(g),T=V.useRef(),j=V.useRef(i),q=hL(n),J=V.useRef(!1),Y=V.useRef(!1);td(()=>{let M=hl.init();return M.then(B=>(_.current=B)&&x(!1)).catch(B=>(B==null?void 0:B.type)!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>S.current?P():M.cancel()}),ir(()=>{var B,I,D,L;let M=ea(_.current,e||i||"",t||a||"",n||r||"");M!==((B=S.current)==null?void 0:B.getModel())&&(f&&gl.set(q,(I=S.current)==null?void 0:I.saveViewState()),(D=S.current)==null||D.setModel(M),f&&((L=S.current)==null||L.restoreViewState(gl.get(n))))},[n],h),ir(()=>{var M;(M=S.current)==null||M.updateOptions(u)},[u],h),ir(()=>{!S.current||i===void 0||(S.current.getOption(_.current.editor.EditorOption.readOnly)?S.current.setValue(i):i!==S.current.getValue()&&(Y.current=!0,S.current.executeEdits("",[{range:S.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),S.current.pushUndoStop(),Y.current=!1))},[i],h),ir(()=>{var B,I;let M=(B=S.current)==null?void 0:B.getModel();M&&a&&((I=_.current)==null||I.editor.setModelLanguage(M,a))},[a],h),ir(()=>{var M;o!==void 0&&((M=S.current)==null||M.revealLine(o))},[o],h),ir(()=>{var M;(M=_.current)==null||M.editor.setTheme(s)},[s],h);let X=V.useCallback(()=>{var M;if(!(!A.current||!_.current)&&!J.current){F.current(_.current);let B=n||r,I=ea(_.current,i||e||"",t||a||"",B||"");S.current=(M=_.current)==null?void 0:M.editor.create(A.current,{model:I,automaticLayout:!0,...u},c),f&&S.current.restoreViewState(gl.get(B)),_.current.editor.setTheme(s),o!==void 0&&S.current.revealLine(o),y(!0),J.current=!0}},[e,t,r,i,a,n,u,c,f,s,o]);V.useEffect(()=>{h&&O.current(S.current,_.current)},[h]),V.useEffect(()=>{!C&&!h&&X()},[C,h,X]),j.current=i,V.useEffect(()=>{var M,B;h&&w&&((M=T.current)==null||M.dispose(),T.current=(B=S.current)==null?void 0:B.onDidChangeModelContent(I=>{Y.current||w(S.current.getValue(),I)}))},[h,w]),V.useEffect(()=>{if(h){let M=_.current.editor.onDidChangeMarkers(B=>{var D;let I=(D=S.current.getModel())==null?void 0:D.uri;if(I&&B.find(L=>L.path===I.path)){let L=_.current.editor.getModelMarkers({resource:I});E==null||E(L)}});return()=>{M==null||M.dispose()}}return()=>{}},[h,E]);function P(){var M,B;(M=T.current)==null||M.dispose(),p?f&&gl.set(n,S.current.saveViewState()):(B=S.current.getModel())==null||B.dispose(),S.current.dispose()}return V.createElement(hk,{width:d,height:m,isEditorReady:h,loading:l,_ref:A,className:k,wrapperProps:v})}var yL=gL,vL=V.memo(yL),bL=vL;const kL={base:"vs-dark",inherit:!0,rules:[{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"}],colors:{"editor.foreground":"#f8f8f2","editor.background":"#282a36","editor.selectionBackground":"#2c303c","editor.lineHighlightBackground":"#2c303c","editorCursor.foreground":"#f8f8f0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}},wL=Object.freeze(Object.defineProperty({__proto__:null,button:l2,json:o2,sourceCode: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:p="100%",theme:d="dracula",...m}=a,k=pL();V.useEffect(()=>{k&&k.editor.defineTheme("dracula",kL)});const v=V.useCallback(b=>{if(b!==void 0)if(c==="json")try{l(JSON.parse(b),t.path)}catch{l(null,t.path,{__errors:["Invalid JSON"]})}else l(b,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(bL,{id:t.$id,className:en(["form-control","source-code"]),theme:d,width:p,height:f,defaultLanguage:c,defaultValue:g,onChange:v,options:{fontFamily:"JetBrains Mono",fontLigatures:!0,readOnly:o||s,tabSize:2,minimap:{enabled:!1},...m},...u})}),N.jsx("small",{className:"text-muted form-text",children:N.jsx(Sr,{children:i})})]})}},Symbol.toStringTag,{value:"Module"}));function SL(e,t){return e==null?!0:Ng(e,t)}function rd(){return Yy("rjsf-array-item-")}function yk(e){return Array.isArray(e)?e.map(t=>({key:rd(),item:t})):[]}function vk(e){return Array.isArray(e)?e.map(t=>t.item):[]}function CL(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function bk(e,t,r,i){let{addable:a}=pe(i,e.globalUiOptions);return a!==!1&&(t.maxItems!==void 0?a=r.length<t.maxItems:a=!0),a}function kk(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 EL(e,t){const{schemaUtils:r,globalFormOptions:i}=e;let a=t.items;return i.useFallbackUiForUnsupportedType&&!a?a={}:Jc(t)&&yO(t)&&(a=t.additionalItems),r.getDefaultFormState(a)}function AL(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:p,rawErrors:d,name:m,onSelectChange:k}=e,{widgets:v,schemaUtils:g,globalFormOptions:b,globalUiOptions:w}=p,E=g.retrieveSchema(t.items,a),h=(i==null?void 0:i.items)??i,y=si(E,h),{widget:C="select",title:x,..._}=pe(i,w),S=Vr(t,C,v),A=x??t.title??m,O=g.getDisplayLabel(t,i,w),F=Yi(Or("",b,r,!0));return N.jsx(S,{id:F[tt],name:m,multiple:!0,onChange:k,onBlur:c,onFocus:f,options:{..._,enumOptions:y},schema:t,uiSchema:i,registry:p,value:a,disabled:n,readonly:s,required:l,label:A,hideLabel:!O,placeholder:u,autofocus:o,rawErrors:d,htmlName:F.name})}function xL(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:p=[],registry:d,rawErrors:m,name:k,onSelectChange:v}=e,{widgets:g,schemaUtils:b,globalFormOptions:w,globalUiOptions:E}=d,{widget:h,title:y,...C}=pe(i,E),x=Vr(t,h,g),_=y??t.title??k,S=b.getDisplayLabel(t,i,E),A=Yi(Or("",w,r,!0));return N.jsx(x,{id:A[tt],name:k,multiple:!0,onChange:v,onBlur:c,onFocus:f,options:C,schema:t,uiSchema:i,registry:d,value:p,disabled:a,readonly:n,hideError:l,required:o,label:_,hideLabel:!S,placeholder:u,autofocus:s,rawErrors:m,htmlName:A.name})}function OL(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:p=[],rawErrors:d,onSelectChange:m}=e,{widgets:k,schemaUtils:v,globalFormOptions:g,globalUiOptions:b}=f,{widget:w="files",title:E,...h}=pe(r,b),y=Vr(t,w,k),C=E??t.title??a,x=v.getDisplayLabel(t,r,b),_=Yi(Or("",g,i,!0));return N.jsx(y,{options:h,id:_[tt],name:a,multiple:!0,onChange:m,onBlur:u,onFocus:c,schema:t,uiSchema:r,value:p,disabled:n,readonly:s,required:l,registry:f,autofocus:o,rawErrors:d,label:C,hideLabel:!x,htmlName:_.name})}function _L(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:p,canMoveDown:d,rawItemSchema:m,itemData:k,itemUiSchema:v,parentFieldPathId:g,itemErrorSchema:b,autofocus:w,onBlur:E,onFocus:h,onChange:y,rawErrors:C,totalItems:x,title:_,handleAddItem:S,handleCopyItem:A,handleRemoveItem:O,handleReorderItems:F}=e,{schemaUtils:T,fields:{ArraySchemaField:j,SchemaField:q},globalUiOptions:J,globalFormOptions:Y}=o,X=V.useMemo(()=>T.retrieveSchema(m,k),[T,m,k]),P=V.useMemo(()=>Or(r,Y,g),[r,Y,g]),M=j||q,B=ge("ArrayFieldItemTemplate",o,l),I=T.getDisplayLabel(X,v,J),{description:D}=pe(v),L=!!D||!!X.description,{orderable:U=!0,removable:R=!0,copyable:H=!1}=l,G={moveUp:U&&p,moveDown:U&&d,copy:H&&c,remove:R&&f,toolbar:!1};G.toolbar=Object.keys(G).some(re=>G[re]);const Z=V.useCallback(re=>{S(re,r+1)},[S,r]),z=V.useCallback(re=>{A(re,r)},[A,r]),$=V.useCallback(re=>{O(re,r)},[O,r]),W=V.useCallback(re=>{F(re,r,r-1)},[F,r]),K=V.useCallback(re=>{F(re,r,r+1)},[F,r]),ie={children:N.jsx(M,{name:i,title:_,index:r,schema:X,uiSchema:v,formData:k,errorSchema:b,fieldPathId:P,required:CL(X),onChange:y,onBlur:E,onFocus:h,registry:o,disabled:a,readonly:s,hideError:n,autofocus:w,rawErrors:C}),buttonsProps:{fieldPathId:P,disabled:a,readonly:s,canAdd:c,hasCopy:G.copy,hasMoveUp:G.moveUp,hasMoveDown:G.moveDown,hasRemove:G.remove,index:r,totalItems:x,onAddItem:Z,onCopyItem:z,onRemoveItem:$,onMoveUpItem:W,onMoveDownItem:K,registry:o,schema:X,uiSchema:v},itemKey:t,className:"rjsf-array-item",disabled:a,hasToolbar:G.toolbar,index:r,totalItems:x,readonly:s,registry:o,schema:X,uiSchema:v,parentUiSchema:u,displayLabel:I,hasDescription:L};return N.jsx(B,{...ie})}const wk=V.memo(_L);function PL(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:p=!1,registry:d,onBlur:m,onFocus:k,rawErrors:v,onChange:g,keyedFormData:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:h,handleReorderItems:y}=e,C=t.title||o||s,{schemaUtils:x,fields:_,formContext:S,globalUiOptions:A}=d,{OptionalDataControlsField:O}=_,F=V.useMemo(()=>pe(r,A),[r,A]),T=V.useMemo(()=>Re(t.items)?t.items:{},[t.items]),j=V.useMemo(()=>x.retrieveSchema(T),[x,T]),q=V.useMemo(()=>vk(b),[b]),J=rs(d,t,f,r),Y=Ji(n),X=V.useMemo(()=>bk(d,t,q,r)&&(!J||Y),[d,t,q,r,J,Y]),P=Y?b:[],M=J?" rjsf-optional-array-field":"",B=e.childFieldPathId??a,I=J?N.jsx(O,{...e,fieldPathId:B}):void 0,D={canAdd:X,items:P.map((U,R)=>{const{key:H,item:G}=U,Z=G,z=i?i[R]:void 0,$=kk(r,G,R,S),W={itemKey:H,index:R,name:s&&`${s}-${R}`,registry:d,uiOptions:F,parentUiSchema:r,hideError:p,readonly:u,disabled:l,required:f,title:C?`${C}-${R+1}`:void 0,canAdd:X,canMoveUp:R>0,canMoveDown:R<q.length-1,rawItemSchema:T,parentFieldPathId:B,itemErrorSchema:z,itemData:Z,itemUiSchema:$,autofocus:c&&R===0,onBlur:m,onFocus:k,rawErrors:v,totalItems:b.length,handleAddItem:w,handleCopyItem:E,handleRemoveItem:h,handleReorderItems:y,onChange:g};return N.jsx(wk,{...W},H)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${j.type}${M}`,disabled:l,fieldPathId:a,uiSchema:r,onAddClick:w,readonly:u,required:f,schema:t,title:C,formData:q,rawErrors:v,registry:d,optionalDataControl:I},L=ge("ArrayFieldTemplate",d,F);return N.jsx(L,{...D})}function IL(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:p=!1,registry:d,onBlur:m,onFocus:k,rawErrors:v,keyedFormData:g,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:h,handleReorderItems:y}=e;let{formData:C=[]}=e;const x=t.title||o||s,{fields:_,formContext:S,globalUiOptions:A}=d,O=V.useMemo(()=>pe(r,A),[r,A]),{OptionalDataControlsField:F}=_,T=rs(d,t,f,r),j=Ji(i),q=V.useMemo(()=>Re(t.items)?t.items:[],[t.items]),J=Re(t.additionalItems),Y=e.childFieldPathId??n;C.length<q.length&&(C=C.concat(new Array(q.length-C.length)));const X=j?g:[],P=T?" rjsf-optional-array-field":"",M=T?N.jsx(F,{...e,fieldPathId:Y}):void 0,B=bk(d,t,C,r)&&J&&(!T||j),I={canAdd:B,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${P}`,disabled:l,fieldPathId:n,formData:i,items:X.map((L,U)=>{const{key:R,item:H}=L,G=H,Z=U>=q.length,z=(Z&&Re(t.additionalItems)?t.additionalItems:q[U])||{};let $;Z?$=r.additionalItems:Array.isArray(r.items)?$=r.items[U]:$=kk(r,H,U,S);const W=a?a[U]:void 0,K={index:U,itemKey:R,name:s&&`${s}-${U}`,registry:d,uiOptions:O,parentUiSchema:r,hideError:p,readonly:u,disabled:l,required:f,title:x?`${x}-${U+1}`:void 0,canAdd:B,canRemove:Z,canMoveUp:U>=q.length+1,canMoveDown:Z&&U<C.length-1,rawItemSchema:z,itemData:G,itemUiSchema:$,parentFieldPathId:Y,itemErrorSchema:W,autofocus:c&&U===0,onBlur:m,onFocus:k,rawErrors:v,totalItems:g.length,onChange:b,handleAddItem:w,handleCopyItem:E,handleRemoveItem:h,handleReorderItems:y};return N.jsx(wk,{...K},R)}),onAddClick:w,readonly:u,required:f,registry:d,schema:t,uiSchema:r,title:x,errorSchema:a,rawErrors:v,optionalDataControl:M},D=ge("ArrayFieldTemplate",d,O);return N.jsx(D,{...I})}function TL(e=[]){const t=V.useMemo(()=>hr(e),[e]),[r,i]=V.useState(()=>({formDataHash:t,keyedFormData:yk(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]})):yk(o),n=t,i({formDataHash:n,keyedFormData:a})}const s=V.useCallback(o=>{const l=vk(o),u=hr(l);return i({formDataHash:u,keyedFormData:o}),l},[]);return{keyedFormData:a,updateKeyedFormData:s}}function NL(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:p}=TL(s),d=V.useRef(f);d.current=f;const m=V.useRef(i);m.current=i;const k=e.childFieldPathId??a,v=V.useCallback((x,_)=>{x&&x.preventDefault();let S;if(m.current){S={};for(const F of Object.keys(m.current)){const T=parseInt(F,10);_===void 0||T<_?ot(S,[T],m.current[T]):T>=_&&ot(S,[T+1],m.current[T])}}const A={key:rd(),item:EL(n,t)},O=[...d.current];_!==void 0?O.splice(_,0,A):O.push(A),o(p(O),k.path,S)},[n,t,o,p,k]),g=V.useCallback((x,_)=>{x&&x.preventDefault();let S;if(m.current){S={};for(const F of Object.keys(m.current)){const T=parseInt(F,10);T<=_?ot(S,[T],m.current[T]):T>_&&ot(S,[T+1],m.current[T])}}const A={key:rd(),item:ho(d.current[_].item)},O=[...d.current];_!==void 0?O.splice(_+1,0,A):O.push(A),o(p(O),k.path,S)},[o,p,k]),b=V.useCallback((x,_)=>{x&&x.preventDefault();let S;if(m.current){S={};for(const O of Object.keys(m.current)){const F=parseInt(O,10);F<_?ot(S,[F],m.current[F]):F>_&&ot(S,[F-1],m.current[F])}}const A=d.current.filter((O,F)=>F!==_);o(p(A),k.path,S)},[o,p,k]),w=V.useCallback((x,_,S)=>{x&&(x.preventDefault(),x.currentTarget.blur());let A;if(m.current){A={};for(const T of Object.keys(m.current)){const j=parseInt(T,10);j===_?ot(A,[S],m.current[_]):j===S?ot(A,[_],m.current[S]):ot(A,[T],m.current[j])}}function O(){const T=d.current.slice();return T.splice(_,1),T.splice(S,0,d.current[_]),T}const F=O();o(p(F),k.path,A)},[o,p,k]),E=V.useCallback((x,_,S,A)=>{const O=typeof _.at(-1)=="number";o(O&&x===void 0?null:x,_,S,A)},[o]),h=V.useCallback(x=>{o(x,k.path,void 0,k==null?void 0:k[tt])},[o,k]),y={...e,formData:s,fieldPathId:k,onSelectChange:h},C={...e,handleAddItem:v,handleCopyItem:g,handleRemoveItem:b,handleReorderItems:w,keyedFormData:f,onChange:E};if(!(ji in t)){if(!l.useFallbackUiForUnsupportedType){const _=pe(r),S=ge("UnsupportedFieldTemplate",n,_);return N.jsx(S,{schema:t,fieldPathId:a,reason:c(Oe.MissingItems),registry:n})}const x={...t,[ji]:{type:void 0}};y.schema=x,C.schema=x}return u.isMultiSelect(y.schema)?N.jsx(AL,{...y}):jy(r)?N.jsx(xL,{...y}):Jc(y.schema)?N.jsx(IL,{...C}):u.isFilesArray(y.schema,r)?N.jsx(OL,{...y}):N.jsx(PL,{...C})}function FL(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:p,onChange:d,onFocus:m,onBlur:k,rawErrors:v}=e,{title:g}=t,{widgets:b,translateString:w,globalUiOptions:E}=s,{widget:h="checkbox",title:y,label:C=!0,enumNames:x,..._}=pe(i,E),S=Vr(t,h,b),A=w(Oe.YesLabel),O=w(Oe.NoLabel);let F;const T=y??g??p??r;if(Array.isArray(t.oneOf))F=si({oneOf:t.oneOf.map(q=>{if(Re(q))return{...q,title:q.title||(q.const===!0?A:O)}}).filter(q=>q)},i);else{const q=t.enum??[!0,!1];!x&&q.length===2&&q.every(J=>typeof J=="boolean")?F=[{value:q[0],label:q[0]?A:O},{value:q[1],label:q[1]?A:O}]:F=si({enum:q},i)}const j=V.useCallback((q,J,Y)=>d(q,a.path,J,Y),[d,a]);return N.jsx(S,{options:{..._,enumOptions:F},schema:t,uiSchema:i,id:a.$id,name:r,onChange:j,onFocus:m,onBlur:k,label:T,hideLabel:!C,value:n,required:o,disabled:l,readonly:u,hideError:c,registry:s,autofocus:f,rawErrors:v,htmlName:a.name})}function DL(e){const[t,r]=V.useState(!1),{name:i,registry:a,schema:n,uiSchema:s,fieldPathId:o}=e,{globalUiOptions:l}=a,u=pe(s,l),c=ge("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:p}=f;return N.jsx(p,{...e,schema:{...n,[tc]:!1}})}function ML(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function jL(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function LL(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 qL(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:p,fieldPathId:d,onChange:m,errorSchema:k}=e,{translateString:v,fields:g,globalFormOptions:b}=p,[w,E]=V.useState(jL(r)),h=pe(s),y=Yi(Or("__internal_type_selector",b,d)),C=v(Oe.Type),x=V.useMemo(()=>ML(C),[C]),_=O=>{O!=null&&(E(O),m(LL(r,O),d.path,k,t))};if(!b.useFallbackUiForUnsupportedType){const{reason:O=v(Oe.UnknownFieldType,[String(a.type)])}=e,F=ge("UnsupportedFieldTemplate",p,h);return N.jsx(F,{schema:a,fieldPathId:d,reason:O,registry:p})}const S=ge("FallbackFieldTemplate",p,h),{SchemaField:A}=g;return N.jsx(S,{schema:a,registry:p,typeSelector:N.jsx(A,{fieldPathId:y,name:`${n}__fallback_type`,schema:x,formData:w,onChange:_,onBlur:c,onFocus:f,registry:p,hideLabel:!i,disabled:l,readonly:u,required:o},r?hr(r):"__empty__"),schemaField:N.jsx(A,{...e,schema:{type:w,title:v(Oe.Value),...w==="object"&&{additionalProperties:!0}}})})}function $L(e,t){return Li(t,function(r){return e[r]})}function zL(e){return e==null?[]:$L(e,Er(e))}var RL=Math.max;function UL(e,t,r,i){e=ti(e)?e:zL(e),r=r?Hg(r):0;var a=e.length;return r<0&&(r=RL(a+r,0)),bn(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&ry(e,t,r)>-1}var BL=Math.min;function VL(e,t,r){for(var i=zc,a=e[0].length,n=e.length,s=n,o=Array(n),l=1/0,u=[];s--;){var c=e[s];l=BL(c.length,l),o[s]=a>=120&&c.length>=120?new ni(s&&c):void 0}c=e[0];var f=-1,p=o[0];e:for(;++f<a&&u.length<l;){var d=c[f],m=d;if(d=d!==0?d:0,!(p?Ga(p,m):i(u,m))){for(s=n;--s;){var k=o[s];if(!(k?Ga(k,m):i(e[s],m)))continue e}p&&p.push(m),u.push(d)}}return u}function HL(e){return Wa(e)?e:[]}var Sk=io(function(e){var t=Li(e,HL);return t.length&&t[0]===e[0]?VL(t):[]});function KL(e,t){return so(e,t)}function Ck(e){return e===void 0}var Hr;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(Hr||(Hr={}));var ps;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(ps||(ps={}));const WL=/^\$lookup=(.+)/,nd="layoutGrid";function Ek(e,t){return e??t}function GL(e){return/^\d+?$/.test(e)}const In=tf();function JL(e,t,r,i,a){const n=ae(r,[ic],{}),s=ae(r,e),o={...ae(s,[gn],{}),...t,...n},l={...s};kt(o)||ot(l,[gn],o),kt(n)||ot(l,[ic],n);let{readonly:u}=pe(l);return(a===!0||Ck(u)&&i===!0)&&(u=!0,$e(o,ec)?ot(l,[gn,ec],!0):ot(l,`ui:${ec}`,!0)),{fieldUiSchema:l,uiReadonly:u}}function YL(e,t,r="$0m3tH1nG Un3xP3cT3d"){const i=Ic([t]).sort(),a=Ic([r]).sort();switch(e){case ps.ALL:return KL(i,a);case ps.SOME:return Sk(i,a).length>0;case ps.NONE:return Sk(i,a).length===0;default:return!1}}function yl(e,t,r){let i={},a=e[t];if(yn(a)){const{children:n,className:s,...o}=a;if(a=n,s){const u=s.split(" ").map(c=>lf(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 Ak(e,t,r){let i,a=t;if(GL(r)&&e&&(e==null?void 0:e.type)==="array"&&$e(e,ji)){const n=Number(r),s=e[ji];Array.isArray(s)?n>s.length?i=Tg(s):i=s[n]:i=s,a={[tt]:t[tt],path:[...t.path.slice(0,t.path.length-1),n]}}return{rawSchema:i,fieldPathId:a}}function XL(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),p=i,d=f.readOnly;u.forEach(v=>{if(l=Or(v,s,l),$e(f,ze))o=ae(f,[ze,v],{});else if(f&&($e(f,xe)||$e(f,je))){const g=$e(f,xe)?xe:je,b=n.findSelectedOptionInXxxOf(f,v,g,p);o=ae(b,[ze,v],{})}else{const g=Ak(f,l,v);o=g.rawSchema??{},l=g.fieldPathId}p=ae(p,v,{}),f=n.retrieveSchema(o,p),d=Ek(f.readOnly,d)});let m,k=!1;if(kt(f)&&(f=void 0),f&&c){if(f&&($e(f,xe)||$e(f,je))){const g=$e(f,xe)?xe:je;f=n.findSelectedOptionInXxxOf(f,c,g,p)}l=Or(c,s,l),k=f!==void 0&&Array.isArray(f.required)&&UL(f.required,c);const v=Ak(f,l,c);if(v.rawSchema?(f=v.rawSchema,l=v.fieldPathId):(f=ae(f,[ze,c]),f=f&&n.retrieveSchema(f)),d=Ek(f==null?void 0:f.readOnly,d),f&&($e(f,xe)||$e(f,je))){const g=$e(f,xe)?xe:je,b=dr(f);m={options:f[g],hasDiscriminator:!!b}}}return{schema:f,isRequired:k,isReadonly:d,optionsInfo:m,fieldPathId:l}}function ZL(e,t){let r=e;return bn(r)&&(r=lf(t,r)),Fa(r)?r:null}function QL(e,t){let r,i=null,a={},n;if(bn(t)||Ck(t))r=t??"";else{const{name:s="",render:o,...l}=t;r=s,a=l,kt(a)||eM(a,(u,c)=>{if(bn(u)){const f=WL.exec(u);if(Array.isArray(f)&&f.length>1){const p=f[1];a[c]=lf(e,p,p)}}}),i=ZL(o,e),!s&&i&&(n=N.jsx(i,{...l,"data-testid":In.uiComponent}))}return{name:r,UIComponent:i,uiProps:a,rendered:n}}function vl(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-${hr(l)}`,schema:o,layoutGridSchema:l}))}function eq(e){const{layoutGridSchema:t,...r}=e,{formData:i,registry:a}=r,{children:n,gridProps:s}=yl(t,Hr.CONDITION,a),{operator:o,field:l="",value:u}=s,c=ae(i,l,null);return YL(o,c,u)?N.jsx(vl,{...r,childrenLayoutGridSchemaId:n}):null}function tq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=yl(t,Hr.COLUMN,i),o=pe(a),l=ge("GridTemplate",i,o);return N.jsx(l,{column:!0,"data-testid":In.col,...s,children:N.jsx(vl,{...r,childrenLayoutGridSchemaId:n})})}function rq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=yl(t,Hr.COLUMNS,i),o=pe(a),l=ge("GridTemplate",i,o);return n.map(u=>N.jsx(l,{column:!0,"data-testid":In.col,...s,children:N.jsx(vl,{...r,childrenLayoutGridSchemaId:[u]})},`column-${hr(u)}`))}function nq(e){const{layoutGridSchema:t,...r}=e,{registry:i,uiSchema:a}=r,{children:n,gridProps:s}=yl(t,Hr.ROW,i),o=pe(a),l=ge("GridTemplate",i,o);return N.jsx(l,{...s,"data-testid":In.row,children:N.jsx(vl,{...r,childrenLayoutGridSchemaId:n})})}function iq(e){const{gridSchema:t,schema:r,uiSchema:i,errorSchema:a,fieldPathId:n,onBlur:s,onFocus:o,formData:l,readonly:u,registry:c,layoutGridSchema:f,...p}=e,{onChange:d}=p,{fields:m}=c,{SchemaField:k,LayoutMultiSchemaField:v}=m,g=QL(c,t),{name:b,UIComponent:w,uiProps:E}=g,{schema:h,isRequired:y,isReadonly:C,optionsInfo:x,fieldPathId:_}=XL(c,b,r,l,n),S=Yi(_);if(g.rendered)return g.rendered;if(h){const A=x!=null&&x.hasDiscriminator?v:k,{fieldUiSchema:O,uiReadonly:F}=JL(b,E,i,C,u);return N.jsx(A,{"data-testid":x!=null&&x.hasDiscriminator?In.layoutMultiSchemaField:In.field,...p,name:b,required:y,readonly:F,schema:h,uiSchema:O,errorSchema:ae(a,b),fieldPathId:S,formData:ae(l,b),onChange:d,onBlur:s,onFocus:o,options:x==null?void 0:x.options,registry:c})}return w?N.jsx(w,{"data-testid":In.uiComponent,...p,name:b,required:y,formData:l,readOnly:!!C||u,errorSchema:a,uiSchema:i,schema:r,fieldPathId:n,onBlur:s,onFocus:o,registry:c,...E}):null}function id(e){const{uiSchema:t}=e;let{layoutGridSchema:r}=e;const i=pe(t);if(!r&&nd in i&&Re(i[nd])&&(r=i[nd]),Re(r)){if(Hr.ROW in r)return N.jsx(nq,{...e,layoutGridSchema:r});if(Hr.COLUMN in r)return N.jsx(tq,{...e,layoutGridSchema:r});if(Hr.COLUMNS in r)return N.jsx(rq,{...e,layoutGridSchema:r});if(Hr.CONDITION in r)return N.jsx(eq,{...e,layoutGridSchema:r})}return N.jsx(iq,{...e,gridSchema:r})}id.TEST_IDS=In;function aq(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,name:o}=e,l=pe(a,s.globalUiOptions),{title:u}=l,{title:c}=i,f=u||r||c||o;if(!f)return null;const p=ge("TitleFieldTemplate",s,l);return N.jsx(p,{id:yo(t),title:f,required:n,schema:i,uiSchema:a,registry:s})}function ad(e,t,r){const i="!@#!@$@#$!@$#";return e.map(({schema:n})=>n).find(n=>{const s=ae(n,[ze,t]);return ae(s,Yn,ae(s,Vt,i))===r})}function xk(e,t,r,i,a){const n=t.map(l=>r.retrieveSchema(l,a));let s=e;$e(e,xe)?s={...e,[xe]:n}:$e(e,je)&&(s={...e,[je]:n});const o=si(s,i);if(!o)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(s)}`);return o}function sq(e){var $;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:p,autofocus:d,readonly:m,required:k,errorSchema:v,hideError:g=!1}=e,{widgets:b,schemaUtils:w,globalUiOptions:E}=c,[h,y]=V.useState(xk(p,l,w,f,a)),C=ae(n,tt),x=dr(p),_=ge("FieldErrorTemplate",c,l),S=ge("FieldTemplate",c,l),A=hr(p),O=hr(l),F=f?hr(f):"",T=a?hr(a):"";V.useEffect(()=>{y(xk(p,l,w,f,a))},[A,O,w,F,T]);const{widget:j=x?"radio":"select",title:q="",placeholder:J="",optionsSchemaSelector:Y=x,hideError:X,...P}=pe(f);if(!Y)throw new Error("No selector field provided for the LayoutMultiSchemaField");const M=ae(a,Y);let B=ae(($=h[0])==null?void 0:$.schema,[ze,Y],{});const I=ad(h,Y,M);B=B!=null&&B.type?B:{...B,type:(I==null?void 0:I.type)||r};const D=Vr(B,j,b),L=X===void 0?g:!!X,U=ae(v,[Dt],[]),R=Ha(v,[Dt]),H=w.getDisplayLabel(p,f,E),G=W=>{if(i||m)return;const K=ad(h,Y,W),ie=ad(h,Y,M);let re=w.sanitizeDataForNewSchema(K,ie,a);re&&K&&(re=w.getDefaultFormState(K,re,"excludeObjectChildren")),re&&ot(re,Y,W),o(re,n.path,void 0,C)},Z={enumOptions:h,...P},z=!L&&U.length>0?N.jsx(_,{fieldPathId:n,schema:p,errors:U,registry:c}):void 0;return N.jsx(S,{fieldPathId:n,id:C,schema:p,label:(q||p.title)??"",disabled:i||Array.isArray(h)&&kt(h),uiSchema:f,required:k,readonly:!!m,registry:c,displayLabel:H,errors:z,onChange:o,onKeyRename:oo,onKeyRenameBlur:oo,onRemoveProperty:oo,children:N.jsx(D,{id:C,name:t,schema:p,label:(q||p.title)??"",disabled:i||Array.isArray(h)&&kt(h),uiSchema:f,autofocus:d,readonly:m,required:k,registry:c,multiple:!1,rawErrors:U,hideError:L,hideLabel:!H,errorSchema:R,placeholder:J,onChange:G,onBlur:s,onFocus:u,value:M,options:Z,htmlName:n.name})})}function Ok(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:p=!1,schema:d,uiSchema:m}=e,{schemaUtils:k}=f,v=hr(a??null),g=V.useMemo(()=>u.map(re=>k.retrieveSchema(re,a)),[u,k,v]),[b,w]=V.useState(()=>{const re=dr(d);return k.getClosestMatchingOption(a,g,0,re)}),E=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,!Ue(a,re)&&n.$id===ue){if(E.current){E.current=!1;return}const ye=dr(d),Se=k.getClosestMatchingOption(a,g,b,ye);Se!==b&&w(Se)}});const C=`${n.$id}${d.oneOf?"__oneof_select":"__anyof_select"}`,x=V.useCallback(re=>{if(r||c)return;const ue=re!==void 0?parseInt(re,10):-1;if(ue===b)return;const ye=ue>=0?g[ue]:void 0,Se=b>=0?g[b]:void 0;let ke=k.sanitizeDataForNewSchema(ye,Se,a);ye&&(ke=k.getDefaultFormState(ye,ke,"excludeObjectChildren")),w(ue),E.current=!0,o(ke,n.path,void 0,C)},[b,g,r,c,k,a,n,o,C]),{widgets:_,fields:S,translateString:A,globalUiOptions:O}=f,{SchemaField:F}=S,T=ge("MultiSchemaFieldTemplate",f,O),j=rs(f,d,p,m),q=Ji(a),{widget:J="select",placeholder:Y,autofocus:X,autocomplete:P,title:M=d.title,...B}=pe(m,O),I=Vr({type:"number"},J,_),D=ae(i,Dt,[]),L=Ha(i,[Dt]),U=k.getDisplayLabel(d,m,O),R=b>=0&&g[b]||null;let H;if(R){const{required:re,type:ue}=d,ye={};re&&(ye.required=re),ue!==void 0&&!("type"in R)&&(ye.type=ue),H=Object.keys(ye).length>0?sn(ye,R):R}let G=[];xe in d&&m&&xe in m?Array.isArray(m[xe])?G=m[xe]:console.warn(`uiSchema.oneOf is not an array for "${M||t}"`):je in d&&m&&je in m&&(Array.isArray(m[je])?G=m[je]:console.warn(`uiSchema.anyOf is not an array for "${M||t}"`));let Z=m;b>=0&&G.length>b&&(Z=G[b]);const z=M?Oe.TitleOptionPrefix:Oe.OptionPrefix,$=M?[M]:[],W=g.map((re,ue)=>{const{title:ye=re.title}=pe(G[ue]);return{label:ye||A(z,$.concat(String(ue+1))),value:ue}}),K=!j||q?N.jsx(I,{id:C,name:`${t}${d.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:x,onBlur:s,onFocus:l,disabled:r||kt(W),multiple:!1,rawErrors:D,errorSchema:L,value:b>=0?b:void 0,options:{enumOptions:W,...B},registry:f,placeholder:Y,autocomplete:P,autofocus:X,label:M??t,hideLabel:!U,readonly:c}):void 0,ie=H&&H.type!=="null"&&N.jsx(F,{...e,schema:H,uiSchema:Z})||null;return N.jsx(T,{schema:d,registry:f,uiSchema:m,selector:K,optionSchemaField:ie})}function oq(e){const{formData:t,onChange:r,fieldPathId:i}=e;return V.useEffect(()=>{t===void 0&&r(null,i.path)},[i,t,r]),null}const lq=/\.([0-9]*0)*$/,uq=/[0.]0*$/;function cq(e){const{registry:t,onChange:r,formData:i,value:a}=e,[n,s]=V.useState(a),{StringField:o}=t.fields,l=bh(),u=l==="."?"\\.":l;let c=i;const f=V.useCallback((d,m,k,v)=>{s(d);const g=typeof d=="string"?d.replace(l,"."):d,b=`${g}`.startsWith(".")?`0${g}`:g,w=typeof b=="string"&&lq.exec(b)?kh(b.replace(uq,"")):kh(b);r(w,m,k,v)},[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 p=c;if(typeof c=="number"&&l!=="."){const{schema:d,uiSchema:m}=e,{schemaUtils:k}=t,g=(k.isSelect(d)?si(d,m):void 0)?"select":"text",{widget:b=g}=pe(m);b!=="radio"&&b!=="select"&&b!=="hidden"&&(p=String(c).replace(".",l))}return N.jsx(o,{...e,formData:p,onChange:f})}var bl;function fq(e){if(!bl){if(typeof document>"u")return;bl=document.createElement("textarea")}var t=`&${e};`;bl.innerHTML=t;var r=bl.value;return r===t?void 0:r}var se=32,le=9,Tn=13,fe=10,Je=96,Pt=126,vt=91,cn=94,Ne=62,gr=35,sd=37,_e=45,yr=61,Nt=92,wt=42,gt=95,it=60,_k=64,Ir=93,Kt=33,kl=38,$t=58,od=70,fi=102,wl=104,di=119,ta=116,ld=112,Pk=115,dq=160,pq=12,mq=44,Sl=59,ra=63,vr=46,bt=47,pi=39,mi=34,Nn=43,Ft=124,hi=123,ud=125,Tr=40,Nr=41,hq=78,gq=110,yq=79,vq=111,Ik=120,Tk=88,cd=30,Fe=48,De=57,we=65,Ae=90,Ze=97,lt=122,Cl=128,Fr=32,bq={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=bq;function kq(e){if(!Dk(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]!==`
97
97
  `)return null;t++;let r=!1;for(;t<e.length;){let i=t;for(;t<e.length&&e[t]!==`
98
98
  `&&e[t]!=="\r";)t++;if(t>=e.length)break;let a=t;if(e[t]==="\r"&&t++,t<e.length&&e[t]===`
99
- `&&t++,Fk(e,"---",i))return{endPos:t,hasValidYaml:r};if(!r){let n=Iq(e,i,a);if(n<a){let s=e.charCodeAt(n);if(s>=Ze&&s<=lt||s>=we&&s<=Ae||s>=Fe&&s<=De||s===gt){for(n++;n<a&&(s=e.charCodeAt(n),s>=Ze&&s<=lt||s>=we&&s<=Ae||s>=Fe&&s<=De||s===gt||s===_e||s===vr);)n++;n<a&&e.charCodeAt(n)===$t&&(n++,n>=a?r=!0:(s=e.charCodeAt(n),(s===se||s===le)&&(r=!0)))}}}}return null}var kq=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,wq={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"},Sq={};function Tk(e){if(!e)return Sq;var t={};for(var r in e){var i=r.toLowerCase(),a=wq[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 Cq=/(\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 Fn(e){return e.indexOf("&")===-1?e:e.replace(kq,(t,r)=>{var i=cq(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 Nk=/(javascript|vbscript|data(?!:image)):/i;function fn(e){if(Nk.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Nk.test(t))return null}catch{return null}return e}var zt={},Wt,It;for(Wt=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],It=0;It<Wt.length;It++)zt[Wt[It]]="a";for(zt[231]=zt[199]="c",zt[240]=zt[208]="d",Wt=[200,201,202,203,233,232,234,235],It=0;It<Wt.length;It++)zt[Wt[It]]="e";for(Wt=[207,239,206,238,205,237,204,236],It=0;It<Wt.length;It++)zt[Wt[It]]="i";for(zt[209]=zt[241]="n",Wt=[248,216,339,338,213,245,212,244,211,243,210,242],It=0;It<Wt.length;It++)zt[Wt[It]]="o";for(Wt=[220,252,219,251,218,250,217,249],It=0;It<Wt.length;It++)zt[Wt[It]]="u";zt[376]=zt[255]=zt[221]=zt[253]="y";function gi(e){for(var t="",r=-1,i=e.length,a=0;a<i;a++){var n=e.charCodeAt(a);if(n>=Ze&&n<=lt||n>=Fe&&n<=De){r<0&&(r=a);continue}if(n>=we&&n<=Ae){r>=0&&(t+=e.slice(r,a),r=-1),t+=String.fromCharCode(n+Fr);continue}if(n===se||n===_e){r>=0&&(t+=e.slice(r,a),r=-1),t+="-";continue}r>=0&&(t+=e.slice(r,a),r=-1);var s=zt[n];s&&(t+=s)}return r>=0&&(t+=e.slice(r)),t}function Fk(e,t,r){return e.startsWith(t,r)}var Dk=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 ms(e){let t=e.toLowerCase();if(Dk.has(t))return!0;let r=t.indexOf(":");return r!==-1?(t=t.slice(r+1),Dk.has(t)):!1}var yi=1,Mk=2,na=4,jk=8,Eq=16,Dr=32,Dn=64,Aq=(()=>{var e=new Uint8Array(128),t;for(e[le]=yi,e[fe]=yi|Mk,e[dq]=yi,e[Tn]=yi|Mk,e[se]=yi,t=Kt;t<=bt;t++)e[t]=na;for(t=$t;t<=Ok;t++)e[t]=na;for(t=vt;t<=Ge;t++)e[t]=na;for(t=hi;t<=Pt;t++)e[t]=na;for(t=Fe;t<=De;t++)e[t]=Eq;for(t=we;t<=Ae;t++)e[t]=jk;for(t=Ze;t<=lt;t++)e[t]=jk;return e})(),xq=/[\p{P}\p{S}]/u,Oq=new RegExp("\\p{Zs}","u"),vi=[];function _q(e){var t=e.indexOf("\r"),r=e.indexOf("\0");if(t===-1&&r===-1)return e;var i=e.length;vi.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===Tn?(a<n&&vi.push(e.slice(a,n)),n+1<i&&e.charCodeAt(n+1)===fe&&n++,vi.push(`
100
- `),a=n+1):s===0&&(a<n&&vi.push(e.slice(a,n)),vi.push("�"),a=n+1)}return a<i&&vi.push(e.slice(a)),vi.join("")}function Pq(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}function Iq(e,t,r){let i=r??e.length;for(;t<i&&(e[t]===" "||e[t]===" ");)t++;return t}function Lk(e){if(!e)return!1;for(var t in e)return!0;return!1}function Tq(e){return{attrs:{},children:[{type:ne.text,text:e}],c:!0,type:ne.htmlBlock,tag:"header"}}var Nq=/^\n+/;function Fq(e){for(var t=e.length;t>0&&(e[t-1]===`
101
- `||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(Nq,"")}
99
+ `&&t++,Dk(e,"---",i))return{endPos:t,hasValidYaml:r};if(!r){let n=Tq(e,i,a);if(n<a){let s=e.charCodeAt(n);if(s>=Ze&&s<=lt||s>=we&&s<=Ae||s>=Fe&&s<=De||s===gt){for(n++;n<a&&(s=e.charCodeAt(n),s>=Ze&&s<=lt||s>=we&&s<=Ae||s>=Fe&&s<=De||s===gt||s===_e||s===vr);)n++;n<a&&e.charCodeAt(n)===$t&&(n++,n>=a?r=!0:(s=e.charCodeAt(n),(s===se||s===le)&&(r=!0)))}}}}return null}var wq=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,Sq={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"},Cq={};function Nk(e){if(!e)return Cq;var t={};for(var r in e){var i=r.toLowerCase(),a=Sq[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 Eq=/(\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 Fn(e){return e.indexOf("&")===-1?e:e.replace(wq,(t,r)=>{var i=fq(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 Fk=/(javascript|vbscript|data(?!:image)):/i;function fn(e){if(Fk.test(e))return null;if(e.indexOf("%")===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Fk.test(t))return null}catch{return null}return e}var zt={},Wt,It;for(Wt=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],It=0;It<Wt.length;It++)zt[Wt[It]]="a";for(zt[231]=zt[199]="c",zt[240]=zt[208]="d",Wt=[200,201,202,203,233,232,234,235],It=0;It<Wt.length;It++)zt[Wt[It]]="e";for(Wt=[207,239,206,238,205,237,204,236],It=0;It<Wt.length;It++)zt[Wt[It]]="i";for(zt[209]=zt[241]="n",Wt=[248,216,339,338,213,245,212,244,211,243,210,242],It=0;It<Wt.length;It++)zt[Wt[It]]="o";for(Wt=[220,252,219,251,218,250,217,249],It=0;It<Wt.length;It++)zt[Wt[It]]="u";zt[376]=zt[255]=zt[221]=zt[253]="y";function gi(e){for(var t="",r=-1,i=e.length,a=0;a<i;a++){var n=e.charCodeAt(a);if(n>=Ze&&n<=lt||n>=Fe&&n<=De){r<0&&(r=a);continue}if(n>=we&&n<=Ae){r>=0&&(t+=e.slice(r,a),r=-1),t+=String.fromCharCode(n+Fr);continue}if(n===se||n===_e){r>=0&&(t+=e.slice(r,a),r=-1),t+="-";continue}r>=0&&(t+=e.slice(r,a),r=-1);var s=zt[n];s&&(t+=s)}return r>=0&&(t+=e.slice(r)),t}function Dk(e,t,r){return e.startsWith(t,r)}var Mk=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 ms(e){let t=e.toLowerCase();if(Mk.has(t))return!0;let r=t.indexOf(":");return r!==-1?(t=t.slice(r+1),Mk.has(t)):!1}var yi=1,jk=2,na=4,Lk=8,Aq=16,Dr=32,Dn=64,xq=(()=>{var e=new Uint8Array(128),t;for(e[le]=yi,e[fe]=yi|jk,e[pq]=yi,e[Tn]=yi|jk,e[se]=yi,t=Kt;t<=bt;t++)e[t]=na;for(t=$t;t<=_k;t++)e[t]=na;for(t=vt;t<=Je;t++)e[t]=na;for(t=hi;t<=Pt;t++)e[t]=na;for(t=Fe;t<=De;t++)e[t]=Aq;for(t=we;t<=Ae;t++)e[t]=Lk;for(t=Ze;t<=lt;t++)e[t]=Lk;return e})(),Oq=/[\p{P}\p{S}]/u,_q=new RegExp("\\p{Zs}","u"),vi=[];function Pq(e){var t=e.indexOf("\r"),r=e.indexOf("\0");if(t===-1&&r===-1)return e;var i=e.length;vi.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===Tn?(a<n&&vi.push(e.slice(a,n)),n+1<i&&e.charCodeAt(n+1)===fe&&n++,vi.push(`
100
+ `),a=n+1):s===0&&(a<n&&vi.push(e.slice(a,n)),vi.push("�"),a=n+1)}return a<i&&vi.push(e.slice(a)),vi.join("")}function Iq(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}function Tq(e,t,r){let i=r??e.length;for(;t<i&&(e[t]===" "||e[t]===" ");)t++;return t}function qk(e){if(!e)return!1;for(var t in e)return!0;return!1}function Nq(e){return{attrs:{},children:[{type:ne.text,text:e}],c:!0,type:ne.htmlBlock,tag:"header"}}var Fq=/^\n+/;function Dq(e){for(var t=e.length;t>0&&(e[t-1]===`
101
+ `||e[t-1]==="\r");)t--;return`${e.slice(0,t).replace(Fq,"")}
102
102
 
103
- `}function ia(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(ia):[]}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(ia)}]:[e]}function qk(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&&qk(e[t].children)}}function Dq(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 Mq(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 $k(e,t,r,i){var a;return t===void 0?a=Mq(r):a=t.length>0&&t.charCodeAt(0)>se?` ${t}`:t,`<${e}${a}${i}`}function zk(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:$k(t,a,e.attrs," />")}}var o=$k(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 p=l[f];if(p.type!==ne.text)return{kind:"sandwich",open:o,close:n};c+=p.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 jq(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 aa(e){return e==null||e.tagfilter!==!1}function Lq(e,t,r,i){var a=t(e,r,i);return a===null?null:$q(a)}function qq(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 fd(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 $q(e){for(var t=!1,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i<=se||i===mi||i===sd||i===it||i===Ne||i===vt||i===Nt||i===Ir||i===cn||i===Ge||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===sd&&r+2<e.length){var n=e.charCodeAt(r+1),s=e.charCodeAt(r+2);if((n>=Fe&&n<=De||n>=we&&n<=od||n>=Ze&&n<=fi)&&(s>=Fe&&s<=De||s>=we&&s<=od||s>=Ze&&s<=fi)){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 zq(...e){return e.filter(Boolean).join(" ")}var Rq=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),El=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function Rk(e){return Rq.has(e.toLowerCase())}function Bq(e){return El.lastIndex=0,El.test(e)}function Bk(e){return El.lastIndex=0,e.replace(El,(t,r,i,a)=>`&lt;${r}${i}${a}`)}function dd(e,t){var r=e||{},i=r.slugify,a;if(i){var n=i;a=s=>n(s,gi)}else a=gi;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||fn,slugify:a,tagfilter:aa(r)}}var Uq=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,Vq=/^<[A-Z]/,pd=["script","pre","style","textarea"],hs=new Set(pd),Hq=/<(?:pre|script|style|textarea)\b/i,Uk=/<(?:pre|script|style|textarea)\b/iy,md=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,Vk=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,Hk=new Uint8Array(128);(()=>{for(var e=[Ge,wt,gt,Pt,yr,vt,Kt,it,Nt,kl,fe,wl,di,fi],t=0;t<e.length;t++)Hk[e[t]]=1})();var Kk=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function Kq(e){return hs.has(e)}function Wq(e){return Hq.test(e)}function Wk(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)===Ft&&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)===Ft&&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)===$t&&i++,i>=a||e.charCodeAt(i)!==_e)return!1;for(;i<a&&e.charCodeAt(i)===_e;)i++;for(i<a&&e.charCodeAt(i)===$t&&i++,n++;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i<a)if(e.charCodeAt(i)===Ft)i++;else return!1}return n>0}var Gq=/[\u0000-\u001F\u007F]/g,Jq={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},Yq=/&#(x[0-9a-f]+|[0-9]+);?/gi;function Xq(e){return e.indexOf("&#")===-1?e:e.replace(Yq,(t,r)=>{var i=r.charCodeAt(0)===Pk||r.charCodeAt(0)===Ik?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return i>0&&i<=1114111?String.fromCodePoint(i):t})}function Zq(e,t,r){if(r&&t.charCodeAt(0)===hi)return!1;var i=e.charCodeAt(0),a=e.charCodeAt(1);if((i===yq||i===gq)&&(a===hq||a===mq))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(Jq[n]===1){var s=Xq(Fn(t));if(fn(s)===null)return!0;var o=s.replace(Gq,"");return o!==s&&fn(o)===null}return!1}function hd(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function Gk(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 Kr(e,t){if(e.charCodeAt(t)!==it)return null;let r=t+1,i=e.length,a=!1;e.charCodeAt(r)===bt&&(r++,a=!0);let n=r,s=e.charCodeAt(r);if(!(s>=Ze&&s<=lt||s>=we&&s<=Ae))return null;for(;r<i&&(e.charCodeAt(r)>=Ze&&e.charCodeAt(r)<=lt||e.charCodeAt(r)>=we&&e.charCodeAt(r)<=Ae||e.charCodeAt(r)>=Fe&&e.charCodeAt(r)<=De||e.charCodeAt(r)===_e);)r++;let o=e.slice(n,r);if(!o)return null;let l=o.charCodeAt(0),u=l>=we&&l<=Ae||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 p=e.charCodeAt(r);if(p!==Ne&&p!==bt)return null}let d=r,m={},k=!1;for(var v=null;r<i;){let F=e.charCodeAt(r);if(F===Ne){let T=v?Gk(e,d,r,v):e.slice(d,r);return{r:k,u,f:a,b:T,q:v!=null,n:!1,g:f,attrs:m,end:r+1,tag:o}}if(F===se||F===le||F===fe){r++;continue}if(F===bt&&r+1<i&&e.charCodeAt(r+1)===Ne){k=r>d&&e.charCodeAt(r-1)===se;let T=v?Gk(e,d,r,v):e.slice(d,r);return{r:k,u,f:a,b:T,q:v!=null,n:!0,g:f,attrs:m,end:r+2,tag:o}}var g=r,b=e.charCodeAt(r);if(!(b>=Ze&&b<=lt||b>=we&&b<=Ae||b===gt||b===$t))return null;for(r++;r<i;){var w=e.charCodeAt(r);if(w>=Ze&&w<=lt||w>=we&&w<=Ae||w>=Fe&&w<=De||w===gt||w===vr||w===$t||w===_e)r++;else break}for(var E=e.slice(g,r),h=r;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le);)r++;var y,C;if(e.charCodeAt(r)===yr){for(r++;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le);)r++;var x=e.charCodeAt(r);if(x===mi||x===pi){r++;for(var _=r;r<i&&e.charCodeAt(r)!==x;)r++;if(r>=i)return null;if(y=e.slice(_,r),r++,r<i){var S=e.charCodeAt(r);if(S!==se&&S!==le&&S!==fe&&S!==Ne&&S!==bt)return null}C=r}else if(x===hi){var A=1,_=r;for(r++;r<i&&A>0;){var w=e.charCodeAt(r);w===hi?A++:w===ud&&A--,r++}y=e.slice(_,r),C=r}else{for(var _=r;r<i;){var O=e.charCodeAt(r);if(O===se||O===le||O===Ne||O===fe||O===mi||O===pi||O===yr||O===it||O===Ge)break;r++}if(r===_)return null;y=e.slice(_,r),C=r}}else y="",C=h;Zq(E,y,u)?(v===null&&(v=[]),v.push(g,C)):m[E]=y}return null}function ar(e){var t=e.indexOf("<");if(t===-1)return e;for(var r="",i=0,a=!1;t!==-1;){var n=Kr(e,t);n?(n.q&&(r+=e.slice(i,t)+hd(n),i=n.end,a=!0),t=e.indexOf("<",n.end)):t=e.indexOf("<",t+1)}return a?r+e.slice(i):e}function Qq(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(`
104
- `,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===Ge||f===Pt){for(var p=f,d=0,m=u;m<l&&e.charCodeAt(m)===p;)d++,m++;if(d>=3){var k=!0;if(p===Ge){for(var v=m;v<l;v++)if(e.charCodeAt(v)===Ge){k=!1;break}}if(k){n=!1;for(var g=o<0?a:o+1;g<a;){for(var b=g,w=0;b<a&&w<4;){var E=e.charCodeAt(b);if(E===se)w++,b++;else if(E===le)w+=4,b++;else break}if(w<4&&b<a&&e.charCodeAt(b)===p){for(var h=0;b<a&&e.charCodeAt(b)===p;)h++,b++;if(h>=d){for(;b<a&&(e.charCodeAt(b)===se||e.charCodeAt(b)===le);)b++;if(b>=a||e.charCodeAt(b)===fe){i=b>=a?a:b+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)===Ne;){y++,y<l&&e.charCodeAt(y)===se&&y++;for(var C=0;y<l&&C<4;)if(e.charCodeAt(y)===se)C++,y++;else if(e.charCodeAt(y)===le)C+=4,y++;else break;if(C>=4)break;n=!1}if(!n&&c<4&&y<l&&e.charCodeAt(y)===vt&&!(y+1<a&&e.charCodeAt(y+1)===cn)){var x=Jk(e,y,t);if(x){i=x,n=!1;continue}}var _=e.charCodeAt(u);if(_===gr&&c<4)n=!1;else if(c<4&&(_===_e||_===wt||_===gt)){for(var S=u,A=0;S<l;){var O=e.charCodeAt(S);if(O===_)A++;else if(O!==se&&O!==le)break;S++}n=!(A>=3&&S>=l)}else n=!0;i=o<0?a:o+1}return s}function Jk(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===Ir){n++;break}if(s===vt)return null;s===Nt&&n+1<i&&n++,n++}if(n>i||e.charCodeAt(n-1)!==Ir)return null;let o=e.slice(t+1,n-1);if(o.length>999)return null;let l=xl(o);if(!l||n>=i||e.charCodeAt(n)!==$t)return null;n++;let u=!1;for(;n<i;){let F=e.charCodeAt(n);if(F===se||F===le)n++;else if(F===fe&&!u)u=!0,n++;else break}if(a){let F=e.indexOf(`
103
+ `}function ia(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(ia):[]}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(ia)}]:[e]}function $k(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&&$k(e[t].children)}}function Mq(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 jq(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 zk(e,t,r,i){var a;return t===void 0?a=jq(r):a=t.length>0&&t.charCodeAt(0)>se?` ${t}`:t,`<${e}${a}${i}`}function Rk(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:zk(t,a,e.attrs," />")}}var o=zk(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 p=l[f];if(p.type!==ne.text)return{kind:"sandwich",open:o,close:n};c+=p.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 Lq(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 aa(e){return e==null||e.tagfilter!==!1}function qq(e,t,r,i){var a=t(e,r,i);return a===null?null:zq(a)}function $q(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 fd(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 zq(e){for(var t=!1,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i<=se||i===mi||i===sd||i===it||i===Ne||i===vt||i===Nt||i===Ir||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===sd&&r+2<e.length){var n=e.charCodeAt(r+1),s=e.charCodeAt(r+2);if((n>=Fe&&n<=De||n>=we&&n<=od||n>=Ze&&n<=fi)&&(s>=Fe&&s<=De||s>=we&&s<=od||s>=Ze&&s<=fi)){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 Rq(...e){return e.filter(Boolean).join(" ")}var Uq=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),El=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function Uk(e){return Uq.has(e.toLowerCase())}function Bq(e){return El.lastIndex=0,El.test(e)}function Bk(e){return El.lastIndex=0,e.replace(El,(t,r,i,a)=>`&lt;${r}${i}${a}`)}function dd(e,t){var r=e||{},i=r.slugify,a;if(i){var n=i;a=s=>n(s,gi)}else a=gi;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||fn,slugify:a,tagfilter:aa(r)}}var Vq=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,Hq=/^<[A-Z]/,pd=["script","pre","style","textarea"],hs=new Set(pd),Kq=/<(?:pre|script|style|textarea)\b/i,Vk=/<(?:pre|script|style|textarea)\b/iy,md=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,Hk=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,Kk=new Uint8Array(128);(()=>{for(var e=[Je,wt,gt,Pt,yr,vt,Kt,it,Nt,kl,fe,wl,di,fi],t=0;t<e.length;t++)Kk[e[t]]=1})();var Wk=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function Wq(e){return hs.has(e)}function Gq(e){return Kq.test(e)}function Gk(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)===Ft&&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)===Ft&&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)===$t&&i++,i>=a||e.charCodeAt(i)!==_e)return!1;for(;i<a&&e.charCodeAt(i)===_e;)i++;for(i<a&&e.charCodeAt(i)===$t&&i++,n++;i<a&&(e.charCodeAt(i)===se||e.charCodeAt(i)===le);)i++;if(i<a)if(e.charCodeAt(i)===Ft)i++;else return!1}return n>0}var Jq=/[\u0000-\u001F\u007F]/g,Yq={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},Xq=/&#(x[0-9a-f]+|[0-9]+);?/gi;function Zq(e){return e.indexOf("&#")===-1?e:e.replace(Xq,(t,r)=>{var i=r.charCodeAt(0)===Ik||r.charCodeAt(0)===Tk?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return i>0&&i<=1114111?String.fromCodePoint(i):t})}function Qq(e,t,r){if(r&&t.charCodeAt(0)===hi)return!1;var i=e.charCodeAt(0),a=e.charCodeAt(1);if((i===vq||i===yq)&&(a===gq||a===hq))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(Yq[n]===1){var s=Zq(Fn(t));if(fn(s)===null)return!0;var o=s.replace(Jq,"");return o!==s&&fn(o)===null}return!1}function hd(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function Jk(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 Kr(e,t){if(e.charCodeAt(t)!==it)return null;let r=t+1,i=e.length,a=!1;e.charCodeAt(r)===bt&&(r++,a=!0);let n=r,s=e.charCodeAt(r);if(!(s>=Ze&&s<=lt||s>=we&&s<=Ae))return null;for(;r<i&&(e.charCodeAt(r)>=Ze&&e.charCodeAt(r)<=lt||e.charCodeAt(r)>=we&&e.charCodeAt(r)<=Ae||e.charCodeAt(r)>=Fe&&e.charCodeAt(r)<=De||e.charCodeAt(r)===_e);)r++;let o=e.slice(n,r);if(!o)return null;let l=o.charCodeAt(0),u=l>=we&&l<=Ae||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 p=e.charCodeAt(r);if(p!==Ne&&p!==bt)return null}let d=r,m={},k=!1;for(var v=null;r<i;){let F=e.charCodeAt(r);if(F===Ne){let T=v?Jk(e,d,r,v):e.slice(d,r);return{r:k,u,f:a,b:T,q:v!=null,n:!1,g:f,attrs:m,end:r+1,tag:o}}if(F===se||F===le||F===fe){r++;continue}if(F===bt&&r+1<i&&e.charCodeAt(r+1)===Ne){k=r>d&&e.charCodeAt(r-1)===se;let T=v?Jk(e,d,r,v):e.slice(d,r);return{r:k,u,f:a,b:T,q:v!=null,n:!0,g:f,attrs:m,end:r+2,tag:o}}var g=r,b=e.charCodeAt(r);if(!(b>=Ze&&b<=lt||b>=we&&b<=Ae||b===gt||b===$t))return null;for(r++;r<i;){var w=e.charCodeAt(r);if(w>=Ze&&w<=lt||w>=we&&w<=Ae||w>=Fe&&w<=De||w===gt||w===vr||w===$t||w===_e)r++;else break}for(var E=e.slice(g,r),h=r;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le);)r++;var y,C;if(e.charCodeAt(r)===yr){for(r++;r<i&&(e.charCodeAt(r)===se||e.charCodeAt(r)===le);)r++;var x=e.charCodeAt(r);if(x===mi||x===pi){r++;for(var _=r;r<i&&e.charCodeAt(r)!==x;)r++;if(r>=i)return null;if(y=e.slice(_,r),r++,r<i){var S=e.charCodeAt(r);if(S!==se&&S!==le&&S!==fe&&S!==Ne&&S!==bt)return null}C=r}else if(x===hi){var A=1,_=r;for(r++;r<i&&A>0;){var w=e.charCodeAt(r);w===hi?A++:w===ud&&A--,r++}y=e.slice(_,r),C=r}else{for(var _=r;r<i;){var O=e.charCodeAt(r);if(O===se||O===le||O===Ne||O===fe||O===mi||O===pi||O===yr||O===it||O===Je)break;r++}if(r===_)return null;y=e.slice(_,r),C=r}}else y="",C=h;Qq(E,y,u)?(v===null&&(v=[]),v.push(g,C)):m[E]=y}return null}function ar(e){var t=e.indexOf("<");if(t===-1)return e;for(var r="",i=0,a=!1;t!==-1;){var n=Kr(e,t);n?(n.q&&(r+=e.slice(i,t)+hd(n),i=n.end,a=!0),t=e.indexOf("<",n.end)):t=e.indexOf("<",t+1)}return a?r+e.slice(i):e}function e$(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(`
104
+ `,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===Pt){for(var p=f,d=0,m=u;m<l&&e.charCodeAt(m)===p;)d++,m++;if(d>=3){var k=!0;if(p===Je){for(var v=m;v<l;v++)if(e.charCodeAt(v)===Je){k=!1;break}}if(k){n=!1;for(var g=o<0?a:o+1;g<a;){for(var b=g,w=0;b<a&&w<4;){var E=e.charCodeAt(b);if(E===se)w++,b++;else if(E===le)w+=4,b++;else break}if(w<4&&b<a&&e.charCodeAt(b)===p){for(var h=0;b<a&&e.charCodeAt(b)===p;)h++,b++;if(h>=d){for(;b<a&&(e.charCodeAt(b)===se||e.charCodeAt(b)===le);)b++;if(b>=a||e.charCodeAt(b)===fe){i=b>=a?a:b+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)===Ne;){y++,y<l&&e.charCodeAt(y)===se&&y++;for(var C=0;y<l&&C<4;)if(e.charCodeAt(y)===se)C++,y++;else if(e.charCodeAt(y)===le)C+=4,y++;else break;if(C>=4)break;n=!1}if(!n&&c<4&&y<l&&e.charCodeAt(y)===vt&&!(y+1<a&&e.charCodeAt(y+1)===cn)){var x=Yk(e,y,t);if(x){i=x,n=!1;continue}}var _=e.charCodeAt(u);if(_===gr&&c<4)n=!1;else if(c<4&&(_===_e||_===wt||_===gt)){for(var S=u,A=0;S<l;){var O=e.charCodeAt(S);if(O===_)A++;else if(O!==se&&O!==le)break;S++}n=!(A>=3&&S>=l)}else n=!0;i=o<0?a:o+1}return s}function Yk(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===Ir){n++;break}if(s===vt)return null;s===Nt&&n+1<i&&n++,n++}if(n>i||e.charCodeAt(n-1)!==Ir)return null;let o=e.slice(t+1,n-1);if(o.length>999)return null;let l=xl(o);if(!l||n>=i||e.charCodeAt(n)!==$t)return null;n++;let u=!1;for(;n<i;){let F=e.charCodeAt(n);if(F===se||F===le)n++;else if(F===fe&&!u)u=!0,n++;else break}if(a){let F=e.indexOf(`
105
105
  `,n),T=F<0?i:F,j=e.slice(n,T).trim();return r[l]={target:j,title:void 0},F<0?i:F+1}var c;if(n<i&&e.charCodeAt(n)===it){n++;for(var f=n;n<i&&e.charCodeAt(n)!==Ne&&e.charCodeAt(n)!==fe;)e.charCodeAt(n)===Nt&&n+1<i&&n++,n++;if(n>=i||e.charCodeAt(n)!==Ne)return null;c=e.slice(f,n),n++;for(var p=e.indexOf(`
106
106
  `,n),d=p<0?i:p,m=n;m<d&&(e.charCodeAt(m)===se||e.charCodeAt(m)===le);)m++;if(m<d){if(m===n)return null;var k=e.charCodeAt(m);if(k!==mi&&k!==pi&&k!==Tr)return null}}else{for(var f=n,v=0;n<i;){var s=e.charCodeAt(n);if(s===Tr)v++;else if(s===Nr){if(v===0)break;v--}else{if(s===se||s===le||s===fe)break;s===Nt&&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(`
107
- `,n),b=g<0?i:g,w,E=!1,h=n,y=n;if(n===b&&n<i)for(y=n+1;y<i&&(e.charCodeAt(y)===se||e.charCodeAt(y)===le);)y++;if(y<i){var C=e.charCodeAt(y);if(C===mi||C===pi||C===Tr){for(var x=C===Tr?41:C,_=y+1,S=_;_<i;){var A=e.charCodeAt(_);if(A===x){for(var O=_+1;O<i&&(e.charCodeAt(O)===se||e.charCodeAt(O)===le);)O++;(O>=i||e.charCodeAt(O)===fe)&&(w=e.slice(S,_),E=!0,h=O<i?O+1:i);break}if(A===Nt&&_+1<i){_+=2;continue}if(A===fe&&_+1<i&&e.charCodeAt(_+1)===fe)break;_++}if(!E&&y===n)return null}}if(E)return r[l]||(r[l]={target:Fn(sa(c)),title:w===void 0?w:Fn(sa(w))}),h;for(;n<b&&(e.charCodeAt(n)===se||e.charCodeAt(n)===le);)n++;return n<b?null:(r[l]||(r[l]={target:Fn(sa(c)),title:w}),g<0?i:g+1)}var Zt=new Uint8Array(Aq);for(Zt[gr]|=Dr,Zt[Ne]|=Dr,Zt[_e]|=Dr|Dn,Zt[Nn]|=Dr,Zt[wt]|=Dr|Dn,Zt[gt]|=Dr|Dn,Zt[Ge]|=Dr|Dn,Zt[Pt]|=Dr|Dn,Zt[it]|=Dr|Dn,Zt[vt]|=Dn,Zt[Kt]|=Dn,Zt[Ft]|=Dr,Al=Fe;Al<=De;Al++)Zt[Al]|=Dr;var Al;function Yk(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===Nt){t++;continue}if(e.charCodeAt(t)===vt||e.charCodeAt(t)===Ir)return!0}return!1}function xl(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>=we&&n<=Ae){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 gd(e){return e<Cl?Zt[e]:e===fq?yi:0}function sa(e){return e.indexOf("\\")===-1?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var yd=null,vd=-1,Ol=-1;function Je(e,t){if(t>=vd&&t<=Ol&&e===yd)return Ol;var r=e.indexOf(`
108
- `,t),i=r<0?e.length:r;return yd=e,vd=t,Ol=i,i}function Le(e,t){let r=Je(e,t);return r<e.length?r+1:r}function gs(e,t,r){for(;t<r;){let i=e.charCodeAt(t);if(i!==se&&i!==le)break;t++}return t}function Xk(e,t){let r=Le(e,t);for(;r<e.length;){let i=Je(e,r);if(Gt(e,r,i))return r;r=Le(e,r)}return e.length}function Mn(e,t,r,i){let a=0;for(;t+a<r&&e.charCodeAt(t+a)===i;)a++;return a}var Ye=0,He=0;function Et(e,t,r){for(Ye=0,He=0;t+He<r;){let i=e.charCodeAt(t+He);if(i===le)Ye+=4-Ye%4;else if(i===se)Ye++;else break;He++}}function Gt(e,t,r){return gs(e,t,r)>=r}function e$(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 t$(e,t,r,i){let a=Je(e,t);if(Et(e,t,a),Ye>3)return null;let n=t+He;if(e.charCodeAt(n)!==gr)return null;let s=Mn(e,n,a,35);if(s<1||s>6||(n+=s,n<a&&e.charCodeAt(n)!==se&&e.charCodeAt(n)!==le))return null;n=gs(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)===gr;)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=la(u,!1,r,i);return{node:{type:ne.heading,level:s,children:c,id:""},end:Le(e,a)}}function r$(e,t,r){var i=e.charCodeAt(t);if(i!==yr&&i!==_e)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 jn(e,t){let r=Je(e,t);if(Et(e,t,r),Ye>3)return null;let i=t+He,a=e.charCodeAt(i);if(a!==_e&&a!==wt&&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:Le(e,r)}}var Zk=0,Qk=0,e1="";function n$(e,t,r){let i=Je(e,t);if(Et(e,t,i),Ye>3)return null;let a=Ye,n=t+He,s=e.charCodeAt(n);if(s!==Ge&&s!==Pt)return null;let o=Mn(e,n,i,s);if(o<3)return null;n+=o;let l=gs(e,n,i),u=i;if(s===Ge){for(let T=l;T<i;T++)if(e.charCodeAt(T)===Ge)return null}for(;u>l&&(e.charCodeAt(u-1)===se||e.charCodeAt(u-1)===le);)u--;let c=e.slice(l,u),f="",p="",d=c.indexOf(" ");d===-1?f=c:(f=c.slice(0,d),p=c.slice(d+1).trim()),f=sa(f);var m;if(p){Kk.lastIndex=0;for(var k;(k=Kk.exec(p))!=null;)m||(m={}),m[k[1]]=k[2]===void 0?k[3]:k[2]}let v=Le(e,i),g=e.length,b=e.length;var w;s===Zk&&o===Qk?w=e1:(w=String.fromCharCode(s).repeat(o),Zk=s,Qk=o,e1=w);for(var E=v;E<e.length;){var h=e.indexOf(w,E);if(h===-1)break;for(var y=h,C=0;y>0&&C<4&&e.charCodeAt(y-1)===se;)y--,C++;if(C<=3&&(y===0||e.charCodeAt(y-1)===fe)){for(var x=h+o;x<e.length&&e.charCodeAt(x)===s;)x++;var _=Je(e,x);if(Gt(e,x,_)){g=y,b=Le(e,_);break}}E=h+1}var S;if(a===0)S=g>v&&e.charCodeAt(g-1)===fe?e.slice(v,g-1):e.slice(v,g);else{S="";for(var A=v;A<g;){var O=Je(e,A);Et(e,A,O);var F=Math.min(He,a);S+=`${e.slice(A+F,O)}
109
- `,A=Le(e,O)}S.length>0&&S.charCodeAt(S.length-1)===fe&&(S=S.slice(0,-1))}return{node:{type:ne.codeBlock,lang:f||void 0,text:S,infoString:p||void 0,attrs:m},end:b}}function t1(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 i$(e,t){let r=Je(e,t);if(Et(e,t,r),Ye<4)return null;let i="",a=t;for(;a<e.length;){let p=Je(e,a);if(Et(e,a,p),Gt(e,a,p)){for(var n=`${t1(e,a,p)}
110
- `,s=Le(e,p);s<e.length;){var o=Je(e,s);if(Gt(e,s,o)){n+=`${t1(e,s,o)}
111
- `,s=Le(e,o);continue}Et(e,s,o),Ye>=4&&(i+=n,a=s);break}if(a!==s)break;continue}if(Ye<4)break;let d=0,m=0;var l=0;for(let k=a;k<p&&m<4;k++){if(e.charCodeAt(k)===le){var u=4-m%4;m+u>4&&(l=m+u-4),m+=u}else m++;d++}var c="";if(l>0)for(var f=0;f<l;f++)c+=" ";c+=e.slice(a+d,p),i+=`${c}
112
- `,a=Le(e,p)}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 a$(e,t,r,i){let a=Je(e,t);if(Et(e,t,a),Ye>3)return null;let n=t+He;if(e.charCodeAt(n)!==Ne)return null;let s="",o=t,l,u=!1,c=!1,f=!1;for(;o<e.length;){let q=Je(e,o);Et(e,o,q);let J=o+He;if(e.charCodeAt(J)===Ne){let Y=J+1;var p=Ye+1,d=!1;if(Y<q){var m=e.charCodeAt(Y);m===se?(Y++,p++,d=!0):m===le&&(d=!0)}for(var k="",v=!1,g=Y;g<q;g++)if(e.charCodeAt(g)===le){v=!0;break}if(v){var b=p;if(d&&Y<q&&e.charCodeAt(Y)===le){for(var w=4-b%4,E=0;E<w-1;E++)k+=" ";b+=w,Y++}for(var h=Y;h<q;h++)if(e.charCodeAt(h)===le){for(var y=4-b%4,C=0;C<y;C++)k+=" ";b+=y}else k+=e[h],b++}else k=e.slice(Y,q);if(!(s||l)){let X=k.match(/^\[!([A-Za-z]+)\]\s*$/);if(X){l=X[1].toUpperCase(),o=Le(e,q);continue}}s+=`${k}
113
- `;var x=k.trimStart();x.startsWith("```")||x.startsWith("~~~")?f=!f:(k.startsWith(" ")||k.startsWith(" "))&&(f=!0),c=x.length>0,o=Le(e,q)}else if(s&&!Gt(e,o,q)&&c){if(Ye<4){var _=o+He,S=_<q?e.charCodeAt(_):0;if(S===gr||S===Ne||S===Ge||S===Pt||S===it||(S===_e||S===wt||S===gt)&&jn(e,o)||(S===_e||S===wt||S===Nn)&&_+1<q&&(e.charCodeAt(_+1)===se||e.charCodeAt(_+1)===le))break;if(S>=Fe&&S<=De){for(var A=_;A<q&&e.charCodeAt(A)>=Fe&&e.charCodeAt(A)<=De;)A++;if(A<q&&(e.charCodeAt(A)===vr||e.charCodeAt(A)===Nr))break}}if(f)break;s+=`${e.slice(o,q)}
114
- `,u=!0,o=Le(e,q)}else break}if(!(s||l))return null;var{inBlockQuote:O,l:F}=r;r.inBlockQuote=!0,u&&(r.l=!0);var T=r.i;r.i=T||!Gt(e,o,e.length);let j=$n(s||"",r,i);return r.i=T,r.inBlockQuote=O,r.l=F,{node:{type:ne.blockQuote,children:j,alert:l||void 0},end:o}}function r1(e,t,r){for(var i=0,a=t;a<r;a++)e.charCodeAt(a)===le?i+=4-i%4:i++;return i}function Ln(e,t,r){if(Et(e,t,r),Ye>3)return null;var i=t+He;if(i>=r)return null;var a=e.charCodeAt(i),n=Ye,s=i,o=i;if(a===_e||a===wt||a===Nn){if(s=i+1,s<r&&e.charCodeAt(s)!==se&&e.charCodeAt(s)!==le&&e.charCodeAt(s)!==fe)return null}else if(a>=Fe&&a<=De){for(;o<r&&o-i<9;){var l=e.charCodeAt(o);if(l<Fe||l>De)break;o++}if(o>i&&o<r){var u=e.charCodeAt(o);if(u===vr||u===Nr){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=r1(e,t,s),p=0,d=c,m=f;if(c>=r)return{ordered:a>=Fe&&a<=De,marker:a>=Fe&&a<=De?e[o]:e[i],start:a>=Fe&&a<=De?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 k=4-m%4;m+=k}else m++;d++,p++}var v=d>=r,g=m-f;return v||g>4?(m=f+1,d=c+1,p=1):p===0&&(m=f+1,d=c,p=1),{ordered:a>=Fe&&a<=De,marker:a>=Fe&&a<=De?e[o]:e[i],start:a>=Fe&&a<=De?Number.parseInt(e.slice(i,o),10):void 0,contentStart:d,contentCol:m,markerCol:n,isEmpty:v}}var oa=0;function n1(e,t,r,i){var a=0,n=t;for(oa=0;n<r&&a<i;){var s=e.charCodeAt(n);if(s===le){var o=4-a%4;if(a+o>i){oa=a+o-i,n++,a=i;break}a+=o}else if(s===se)a++;else break;n++}return n}function i1(e,t,r,i){var a=Je(e,t),n=Ln(e,t,a);if(!n)return null;var s=[],o=t,l=n.contentCol,u="",c=n.isEmpty,f=!1,p=!1;if(!n.isEmpty){for(var d=!1,m=n.contentStart;m<a;m++)if(e.charCodeAt(m)===le){d=!0;break}if(d){var k="",v=r1(e,t,n.contentStart),g=v-n.contentCol;if(g>0)for(var b=0;b<g;b++)k+=" ";for(var w=n.contentStart;w<a;w++)if(e.charCodeAt(w)===le){for(var E=4-v%4,h=0;h<E;h++)k+=" ";v+=E}else k+=e[w],v++;u=`${k}
107
+ `,n),b=g<0?i:g,w,E=!1,h=n,y=n;if(n===b&&n<i)for(y=n+1;y<i&&(e.charCodeAt(y)===se||e.charCodeAt(y)===le);)y++;if(y<i){var C=e.charCodeAt(y);if(C===mi||C===pi||C===Tr){for(var x=C===Tr?41:C,_=y+1,S=_;_<i;){var A=e.charCodeAt(_);if(A===x){for(var O=_+1;O<i&&(e.charCodeAt(O)===se||e.charCodeAt(O)===le);)O++;(O>=i||e.charCodeAt(O)===fe)&&(w=e.slice(S,_),E=!0,h=O<i?O+1:i);break}if(A===Nt&&_+1<i){_+=2;continue}if(A===fe&&_+1<i&&e.charCodeAt(_+1)===fe)break;_++}if(!E&&y===n)return null}}if(E)return r[l]||(r[l]={target:Fn(sa(c)),title:w===void 0?w:Fn(sa(w))}),h;for(;n<b&&(e.charCodeAt(n)===se||e.charCodeAt(n)===le);)n++;return n<b?null:(r[l]||(r[l]={target:Fn(sa(c)),title:w}),g<0?i:g+1)}var Zt=new Uint8Array(xq);for(Zt[gr]|=Dr,Zt[Ne]|=Dr,Zt[_e]|=Dr|Dn,Zt[Nn]|=Dr,Zt[wt]|=Dr|Dn,Zt[gt]|=Dr|Dn,Zt[Je]|=Dr|Dn,Zt[Pt]|=Dr|Dn,Zt[it]|=Dr|Dn,Zt[vt]|=Dn,Zt[Kt]|=Dn,Zt[Ft]|=Dr,Al=Fe;Al<=De;Al++)Zt[Al]|=Dr;var Al;function Xk(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===Nt){t++;continue}if(e.charCodeAt(t)===vt||e.charCodeAt(t)===Ir)return!0}return!1}function xl(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>=we&&n<=Ae){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 gd(e){return e<Cl?Zt[e]:e===dq?yi:0}function sa(e){return e.indexOf("\\")===-1?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var yd=null,vd=-1,Ol=-1;function Ye(e,t){if(t>=vd&&t<=Ol&&e===yd)return Ol;var r=e.indexOf(`
108
+ `,t),i=r<0?e.length:r;return yd=e,vd=t,Ol=i,i}function Le(e,t){let r=Ye(e,t);return r<e.length?r+1:r}function gs(e,t,r){for(;t<r;){let i=e.charCodeAt(t);if(i!==se&&i!==le)break;t++}return t}function Zk(e,t){let r=Le(e,t);for(;r<e.length;){let i=Ye(e,r);if(Gt(e,r,i))return r;r=Le(e,r)}return e.length}function Mn(e,t,r,i){let a=0;for(;t+a<r&&e.charCodeAt(t+a)===i;)a++;return a}var Xe=0,He=0;function Et(e,t,r){for(Xe=0,He=0;t+He<r;){let i=e.charCodeAt(t+He);if(i===le)Xe+=4-Xe%4;else if(i===se)Xe++;else break;He++}}function Gt(e,t,r){return gs(e,t,r)>=r}function t$(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 r$(e,t,r,i){let a=Ye(e,t);if(Et(e,t,a),Xe>3)return null;let n=t+He;if(e.charCodeAt(n)!==gr)return null;let s=Mn(e,n,a,35);if(s<1||s>6||(n+=s,n<a&&e.charCodeAt(n)!==se&&e.charCodeAt(n)!==le))return null;n=gs(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)===gr;)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=la(u,!1,r,i);return{node:{type:ne.heading,level:s,children:c,id:""},end:Le(e,a)}}function n$(e,t,r){var i=e.charCodeAt(t);if(i!==yr&&i!==_e)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 jn(e,t){let r=Ye(e,t);if(Et(e,t,r),Xe>3)return null;let i=t+He,a=e.charCodeAt(i);if(a!==_e&&a!==wt&&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:Le(e,r)}}var Qk=0,e1=0,t1="";function i$(e,t,r){let i=Ye(e,t);if(Et(e,t,i),Xe>3)return null;let a=Xe,n=t+He,s=e.charCodeAt(n);if(s!==Je&&s!==Pt)return null;let o=Mn(e,n,i,s);if(o<3)return null;n+=o;let l=gs(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="",p="",d=c.indexOf(" ");d===-1?f=c:(f=c.slice(0,d),p=c.slice(d+1).trim()),f=sa(f);var m;if(p){Wk.lastIndex=0;for(var k;(k=Wk.exec(p))!=null;)m||(m={}),m[k[1]]=k[2]===void 0?k[3]:k[2]}let v=Le(e,i),g=e.length,b=e.length;var w;s===Qk&&o===e1?w=t1:(w=String.fromCharCode(s).repeat(o),Qk=s,e1=o,t1=w);for(var E=v;E<e.length;){var h=e.indexOf(w,E);if(h===-1)break;for(var y=h,C=0;y>0&&C<4&&e.charCodeAt(y-1)===se;)y--,C++;if(C<=3&&(y===0||e.charCodeAt(y-1)===fe)){for(var x=h+o;x<e.length&&e.charCodeAt(x)===s;)x++;var _=Ye(e,x);if(Gt(e,x,_)){g=y,b=Le(e,_);break}}E=h+1}var S;if(a===0)S=g>v&&e.charCodeAt(g-1)===fe?e.slice(v,g-1):e.slice(v,g);else{S="";for(var A=v;A<g;){var O=Ye(e,A);Et(e,A,O);var F=Math.min(He,a);S+=`${e.slice(A+F,O)}
109
+ `,A=Le(e,O)}S.length>0&&S.charCodeAt(S.length-1)===fe&&(S=S.slice(0,-1))}return{node:{type:ne.codeBlock,lang:f||void 0,text:S,infoString:p||void 0,attrs:m},end:b}}function r1(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 a$(e,t){let r=Ye(e,t);if(Et(e,t,r),Xe<4)return null;let i="",a=t;for(;a<e.length;){let p=Ye(e,a);if(Et(e,a,p),Gt(e,a,p)){for(var n=`${r1(e,a,p)}
110
+ `,s=Le(e,p);s<e.length;){var o=Ye(e,s);if(Gt(e,s,o)){n+=`${r1(e,s,o)}
111
+ `,s=Le(e,o);continue}Et(e,s,o),Xe>=4&&(i+=n,a=s);break}if(a!==s)break;continue}if(Xe<4)break;let d=0,m=0;var l=0;for(let k=a;k<p&&m<4;k++){if(e.charCodeAt(k)===le){var u=4-m%4;m+u>4&&(l=m+u-4),m+=u}else m++;d++}var c="";if(l>0)for(var f=0;f<l;f++)c+=" ";c+=e.slice(a+d,p),i+=`${c}
112
+ `,a=Le(e,p)}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 s$(e,t,r,i){let a=Ye(e,t);if(Et(e,t,a),Xe>3)return null;let n=t+He;if(e.charCodeAt(n)!==Ne)return null;let s="",o=t,l,u=!1,c=!1,f=!1;for(;o<e.length;){let q=Ye(e,o);Et(e,o,q);let J=o+He;if(e.charCodeAt(J)===Ne){let Y=J+1;var p=Xe+1,d=!1;if(Y<q){var m=e.charCodeAt(Y);m===se?(Y++,p++,d=!0):m===le&&(d=!0)}for(var k="",v=!1,g=Y;g<q;g++)if(e.charCodeAt(g)===le){v=!0;break}if(v){var b=p;if(d&&Y<q&&e.charCodeAt(Y)===le){for(var w=4-b%4,E=0;E<w-1;E++)k+=" ";b+=w,Y++}for(var h=Y;h<q;h++)if(e.charCodeAt(h)===le){for(var y=4-b%4,C=0;C<y;C++)k+=" ";b+=y}else k+=e[h],b++}else k=e.slice(Y,q);if(!(s||l)){let X=k.match(/^\[!([A-Za-z]+)\]\s*$/);if(X){l=X[1].toUpperCase(),o=Le(e,q);continue}}s+=`${k}
113
+ `;var x=k.trimStart();x.startsWith("```")||x.startsWith("~~~")?f=!f:(k.startsWith(" ")||k.startsWith(" "))&&(f=!0),c=x.length>0,o=Le(e,q)}else if(s&&!Gt(e,o,q)&&c){if(Xe<4){var _=o+He,S=_<q?e.charCodeAt(_):0;if(S===gr||S===Ne||S===Je||S===Pt||S===it||(S===_e||S===wt||S===gt)&&jn(e,o)||(S===_e||S===wt||S===Nn)&&_+1<q&&(e.charCodeAt(_+1)===se||e.charCodeAt(_+1)===le))break;if(S>=Fe&&S<=De){for(var A=_;A<q&&e.charCodeAt(A)>=Fe&&e.charCodeAt(A)<=De;)A++;if(A<q&&(e.charCodeAt(A)===vr||e.charCodeAt(A)===Nr))break}}if(f)break;s+=`${e.slice(o,q)}
114
+ `,u=!0,o=Le(e,q)}else break}if(!(s||l))return null;var{inBlockQuote:O,l:F}=r;r.inBlockQuote=!0,u&&(r.l=!0);var T=r.i;r.i=T||!Gt(e,o,e.length);let j=$n(s||"",r,i);return r.i=T,r.inBlockQuote=O,r.l=F,{node:{type:ne.blockQuote,children:j,alert:l||void 0},end:o}}function n1(e,t,r){for(var i=0,a=t;a<r;a++)e.charCodeAt(a)===le?i+=4-i%4:i++;return i}function Ln(e,t,r){if(Et(e,t,r),Xe>3)return null;var i=t+He;if(i>=r)return null;var a=e.charCodeAt(i),n=Xe,s=i,o=i;if(a===_e||a===wt||a===Nn){if(s=i+1,s<r&&e.charCodeAt(s)!==se&&e.charCodeAt(s)!==le&&e.charCodeAt(s)!==fe)return null}else if(a>=Fe&&a<=De){for(;o<r&&o-i<9;){var l=e.charCodeAt(o);if(l<Fe||l>De)break;o++}if(o>i&&o<r){var u=e.charCodeAt(o);if(u===vr||u===Nr){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=n1(e,t,s),p=0,d=c,m=f;if(c>=r)return{ordered:a>=Fe&&a<=De,marker:a>=Fe&&a<=De?e[o]:e[i],start:a>=Fe&&a<=De?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 k=4-m%4;m+=k}else m++;d++,p++}var v=d>=r,g=m-f;return v||g>4?(m=f+1,d=c+1,p=1):p===0&&(m=f+1,d=c,p=1),{ordered:a>=Fe&&a<=De,marker:a>=Fe&&a<=De?e[o]:e[i],start:a>=Fe&&a<=De?Number.parseInt(e.slice(i,o),10):void 0,contentStart:d,contentCol:m,markerCol:n,isEmpty:v}}var oa=0;function i1(e,t,r,i){var a=0,n=t;for(oa=0;n<r&&a<i;){var s=e.charCodeAt(n);if(s===le){var o=4-a%4;if(a+o>i){oa=a+o-i,n++,a=i;break}a+=o}else if(s===se)a++;else break;n++}return n}function a1(e,t,r,i){var a=Ye(e,t),n=Ln(e,t,a);if(!n)return null;var s=[],o=t,l=n.contentCol,u="",c=n.isEmpty,f=!1,p=!1;if(!n.isEmpty){for(var d=!1,m=n.contentStart;m<a;m++)if(e.charCodeAt(m)===le){d=!0;break}if(d){var k="",v=n1(e,t,n.contentStart),g=v-n.contentCol;if(g>0)for(var b=0;b<g;b++)k+=" ";for(var w=n.contentStart;w<a;w++)if(e.charCodeAt(w)===le){for(var E=4-v%4,h=0;h<E;h++)k+=" ";v+=E}else k+=e[w],v++;u=`${k}
115
115
  `}else u=`${e.slice(n.contentStart,a)}
116
- `}for(o=Le(e,a);o<e.length;){var y=Je(e,o);Et(e,o,y);var C=e.charCodeAt(o+He);if(Ye<l&&(C===_e||C===wt||C===gt)&&Ye<=3&&jn(e,o))break;var x=Ln(e,o,y);if(x&&x.ordered===n.ordered&&x.marker===n.marker&&x.markerCol<l){s.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),f&&(p=!0),l=x.contentCol,c=x.isEmpty,f=!1,u=x.isEmpty?"":`${e.slice(x.contentStart,y)}
117
- `,o=Le(e,y);continue}if(Gt(e,o,y)){var _=n1(e,o,y,l);if(oa>0||_<y){for(var S="",A=0;A<oa;A++)S+=" ";u+=`${S+e.slice(_,y)}
116
+ `}for(o=Le(e,a);o<e.length;){var y=Ye(e,o);Et(e,o,y);var C=e.charCodeAt(o+He);if(Xe<l&&(C===_e||C===wt||C===gt)&&Xe<=3&&jn(e,o))break;var x=Ln(e,o,y);if(x&&x.ordered===n.ordered&&x.marker===n.marker&&x.markerCol<l){s.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),f&&(p=!0),l=x.contentCol,c=x.isEmpty,f=!1,u=x.isEmpty?"":`${e.slice(x.contentStart,y)}
117
+ `,o=Le(e,y);continue}if(Gt(e,o,y)){var _=i1(e,o,y,l);if(oa>0||_<y){for(var S="",A=0;A<oa;A++)S+=" ";u+=`${S+e.slice(_,y)}
118
118
  `}else u+=`
119
- `;o=Le(e,y);for(var O=!1,F=0;F<u.length;F++){var T=u.charCodeAt(F);if(T!==fe&&T!==Tn&&T!==se&&T!==le){O=!0;break}}if(c&&!O)if(o<e.length){var j=Je(e,o),q=Ln(e,o,j);if(!q||q.ordered!==n.ordered||q.marker!==n.marker)break;f=!0}else break;if(o<e.length){var J=Je(e,o);Et(e,o,J);var Y=e.charCodeAt(o+He);if((Y===_e||Y===wt||Y===gt)&&Ye<=3&&jn(e,o))break;var X=Ln(e,o,J);if(X&&X.ordered===n.ordered&&X.marker===n.marker&&X.markerCol<l){f=!0;continue}if(!Gt(e,o,J)&&Ye<l)break}continue}if(Ye>=l){var P=n1(e,o,y,l);if(oa>0){for(var M="",U=l,I=0;I<oa;I++)M+=" ",U++;for(var D=P;D<y;D++)if(e.charCodeAt(D)===le){for(var L=4-U%4,B=0;B<L;B++)M+=" ";U+=L}else M+=e[D],U++;u+=`${M}
119
+ `;o=Le(e,y);for(var O=!1,F=0;F<u.length;F++){var T=u.charCodeAt(F);if(T!==fe&&T!==Tn&&T!==se&&T!==le){O=!0;break}}if(c&&!O)if(o<e.length){var j=Ye(e,o),q=Ln(e,o,j);if(!q||q.ordered!==n.ordered||q.marker!==n.marker)break;f=!0}else break;if(o<e.length){var J=Ye(e,o);Et(e,o,J);var Y=e.charCodeAt(o+He);if((Y===_e||Y===wt||Y===gt)&&Xe<=3&&jn(e,o))break;var X=Ln(e,o,J);if(X&&X.ordered===n.ordered&&X.marker===n.marker&&X.markerCol<l){f=!0;continue}if(!Gt(e,o,J)&&Xe<l)break}continue}if(Xe>=l){var P=i1(e,o,y,l);if(oa>0){for(var M="",B=l,I=0;I<oa;I++)M+=" ",B++;for(var D=P;D<y;D++)if(e.charCodeAt(D)===le){for(var L=4-B%4,U=0;U<L;U++)M+=" ";B+=L}else M+=e[D],B++;u+=`${M}
120
120
  `}else u+=`${e.slice(P,y)}
121
- `;o=Le(e,y);continue}for(var R=!1,H=0;H<u.length;H++){var G=u.charCodeAt(H);if(G!==fe&&G!==Tn&&G!==se&&G!==le){R=!0;break}}if(!f&&R&&!c){var Z=o+He,z=e.charCodeAt(Z),$=z===gr||z===Ne||z===it||z===Ge||z===Pt||(z===_e||z===wt||z===gt||z===Nn)&&(jn(e,o)!=null||Ln(e,o,y)!=null)||z>=Fe&&z<=De&&Ln(e,o,y)!=null;if(!$){u+=`${e.slice(Z,y)}
121
+ `;o=Le(e,y);continue}for(var R=!1,H=0;H<u.length;H++){var G=u.charCodeAt(H);if(G!==fe&&G!==Tn&&G!==se&&G!==le){R=!0;break}}if(!f&&R&&!c){var Z=o+He,z=e.charCodeAt(Z),$=z===gr||z===Ne||z===it||z===Je||z===Pt||(z===_e||z===wt||z===gt||z===Nn)&&(jn(e,o)!=null||Ln(e,o,y)!=null)||z>=Fe&&z<=De&&Ln(e,o,y)!=null;if(!$){u+=`${e.slice(Z,y)}
122
122
  `,o=Le(e,y);continue}}break}if(s.push({contentCol:l,raw:u,hasBlankAfter:f,isEmpty:c}),s.length===0)return null;var W=p;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,ye=!1,Se=!1,ke=!1,Pe=!1,de=0,Ke=0,ut=-1;ue<re;){var ve=ie.indexOf(`
123
- `,ue);if(ve<0&&(ve=re),Pe){Et(ie,ue,ve);for(var Q=ie.slice(ue+He,ve),ee=0;ee<Q.length&&Q.charCodeAt(ee)===de;)ee++;ee>=Ke&&Q.slice(ee).trim()===""&&(Pe=!1),ue=ve<re?ve+1:re;continue}if(Gt(ie,ue,ve)){ut>=0?ke=!0:ye&&(Se=!0),ue=ve<re?ve+1:re;continue}if(Et(ie,ue,ve),ut>=0){if(Ye>=ut){ue=ve<re?ve+1:re;continue}var te=Ln(ie,ue,ve);if(te&&te.markerCol<ut&&te.contentCol<=ut){ue=ve<re?ve+1:re;continue}if(te){ue=ve<re?ve+1:re;continue}ut=-1,ke&&(Se=!0,ke=!1)}var he=ie.slice(ue+He,ve),ce=he.charCodeAt(0);if((ce===Ge||ce===Pt)&&Ye<=3){for(var pt=0;pt<he.length&&he.charCodeAt(pt)===ce;)pt++;if(pt>=3){if(Se&&ye){W=!0;break}Pe=!0,de=ce,Ke=pt,ye=!0,ue=ve<re?ve+1:re;continue}}var qe=Ye<=3?Ln(ie,ue,ve):null;if(qe&&ye){if(Se){W=!0;break}ut=qe.contentCol,ke=!1,ue=ve<re?ve+1:re,ye=!0;continue}if(Se){W=!0;break}ye=!0,ue=ve<re?ve+1:re}if(W)break}}for(var We=[],St=0;St<s.length;St++){for(var xt=s[St],ct=xt.raw,Ct=ct.length;Ct>0&&ct.charCodeAt(Ct-1)===fe;)Ct--;var yt=Ct<ct.length?ct.slice(0,Ct):ct,ki=null;if(yt.length>=3&&yt.charCodeAt(0)===vt){var Rn=yt[1];(Rn===" "||Rn==="x"||Rn==="X")&&yt.charCodeAt(2)===Ir&&(ki={type:ne.gfmTask,completed:Rn==="x"||Rn==="X"},yt=yt.slice(3))}var At;if(xt.isEmpty&&yt.trim()==="")At=[];else if(W){var wi=r.inList;r.inList=!0;var Ml=r.i;r.i=Ml||St!==s.length-1,At=$n(yt,r,i),r.i=Ml,r.inList=wi}else{var dn=r.inList;r.inList=!0;var Si=r.i;if(r.i=Si||St!==s.length-1,At=$n(yt,r,i),r.i=Si,r.inList=dn,At.length===1&&At[0].type===ne.paragraph)At=At[0].children;else if(r.p){var Bn=[];r.p.push({src:At,dest:Bn,unwrap:!0}),At=Bn}else{for(var Jr=[],Qt=0;Qt<At.length;Qt++)if(At[Qt].type===ne.paragraph)for(var Yr=At[Qt].children,fa=0;fa<Yr.length;fa++)Jr.push(Yr[fa]);else Jr.push(At[Qt]);At=Jr}}if(ki){var Ci=[ki,{type:ne.text,text:" "}];if(r.p)r.p.push({src:At,dest:Ci,unwrap:!1});else for(var Mr=0;Mr<At.length;Mr++)Ci.push(At[Mr]);We.push(Ci)}else We.push(At)}return{node:{type:n.ordered?ne.orderedList:ne.unorderedList,start:n.ordered?n.start:void 0,items:We},end:o}}var _l=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 Wr(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,p=0;for(let m=0;m<o.length;m++){let k=o.charCodeAt(m);k===Tr?f++:k===Nr?f--:k===Sl&&f===0&&(c.push(o.slice(p,m)),p=m+1)}p<o.length&&c.push(o.slice(p));let d=!1;c.forEach(m=>{let k=m.indexOf(":");if(k===-1)return;let v=m.slice(0,k).trim(),g=m.slice(k+1).trim();if(v&&g){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(g)){d=!0;return}let b=v.indexOf("-")===-1?v:v.replace(/-([a-z])/g,(w,E)=>E.toUpperCase());u[b]=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)===hi&&o.charCodeAt(o.length-1)===ud){var a=o.slice(1,-1);if(a.length>0){var n=a.charCodeAt(0);if(n===vt||n===hi)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 qn(e,t,r){let i=t.length;if(i===0)return r;var a=t.charCodeAt(0),n=a>=we&&a<=Ae||a>=Ze&&a<=lt;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 p=e.charCodeAt(u+f),d=t.charCodeAt(f);if(p>=we&&p<=Ae&&(p+=Fr),d>=we&&d<=Ae&&(d+=Fr),p!==d){c=!1;break}}if(c)return u;l=u+1}return-1}a>=we&&a<=Ae&&(a+=Fr);for(let k=r;k<=e.length-i;k++){var m=e.charCodeAt(k);if(m>=we&&m<=Ae&&(m+=Fr),m!==a)continue;let v=!0;for(let g=1;g<i;g++){let b=e.charCodeAt(k+g),w=t.charCodeAt(g);if(b>=we&&b<=Ae&&(b+=Fr),w>=we&&w<=Ae&&(w+=Fr),b!==w){v=!1;break}}if(v)return k}return-1}function s$(e,t,r){let i=t.length;var a=t.charCodeAt(0);a>=we&&a<=Ae&&(a+=Fr);for(let s=Math.min(r,e.length-i);s>=0;s--){var n=e.charCodeAt(s);if(n>=we&&n<=Ae&&(n+=Fr),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>=we&&u<=Ae&&(u+=Fr),c>=we&&c<=Ae&&(c+=Fr),u!==c){o=!1;break}}if(o)return s}return-1}var Pl=-1;function bd(e,t,r){let i=r.toLowerCase(),a=`<${i}`,n=`</${i}`,s=1,o=t,l=e.length;for(Pl=-1;o<l&&s>0;){let f=qn(e,a,o),p=qn(e,n,o);if(p===-1)return-1;if(f!==-1&&f<p){let d=Kr(e,f);d?(d.tag.toLowerCase()===i&&!d.f&&!d.n&&!ms(d.tag)&&s++,o=d.end):o=f+1}else{var u=p+n.length,c=u<l?e.charCodeAt(u):62;if((c===Ne||c===se||c===le||c===fe)&&(s--,s===0)){Pl=p;let d=p+n.length;for(;d<l&&e.charCodeAt(d)!==Ne;)d++;return d+1}o=p+1}}return-1}function a1(e,t,r,i){if(i.ignoreHTMLBlocks||i.disableParsingRawHTML)return null;var a=Je(e,t);if(Et(e,t,a),Ye>3&&!r.inHTML)return null;var n=t+He;if(e.charCodeAt(n)!==it)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=o$(e,n);if(l>=1&&l<=5){var u=e.length;if(l===1){for(var c=e.length,f=0;f<pd.length;f++){var p=qn(e,`</${pd[f]}>`,n);p>=0&&p<c&&(c=p)}if(c<e.length){var d=e.indexOf(">",c);u=d>=0?Le(e,d+1):e.length}}else{var m=l===2?"-->":l===3?"?>":l===4?">":"]]>",k=e.indexOf(m,n);k>=0&&(u=Le(e,k+m.length))}var v=e.slice(n,u);if(l>=2)return{node:{type:ne.htmlComment,text:v,s:!1,raw:!0},end:u};var g="div",b=v.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);b&&(g=b[1]);var w=Kr(e,n),E={},h;w&&!w.f&&(E=Wr(w.attrs,g,i),h=w.g+w.b);var y=[],C=g.toLowerCase(),x=`</${C}`,_=qn(v,x,0),S="",A,O,F;if(w!=null&&w.f){F=v.slice(0,w.end-n);for(var T=v.slice(w.end-n);T.length>0&&T.charCodeAt(T.length-1)===fe;)T=T.slice(0,-1);T&&(O=ar(T))}else if(w&&!w.f){var j=w.end-n;if(_===-1){for(var q=v;q.length>0&&q.charCodeAt(q.length-1)===fe;)q=q.slice(0,-1);A=ar(q)}else{var J=j;v.charCodeAt(J)===fe&&J++;for(var Y=_;Y>J;){var X=v.charCodeAt(Y-1);if(X!==se&&X!==le&&X!==fe&&X!==Tn)break;Y--}var P=v.slice(J,Y);P&&(O=ar(P));for(var M=v.slice(_);M.length>0&&M.charCodeAt(M.length-1)===fe;)M=M.slice(0,-1);F=ar(M),S=v.slice(j,_).trim()}}var U=w?w.f:!1;return{node:{type:ne.htmlBlock,tag:g,attrs:E,b:h,children:y,e:O,h:F,j:A,text:S,c:!0,a:U},end:u}}if(l===6||l===7){var I=Xk(e,t),D=I<e.length?I:e.length,L=e.slice(n,D),B=I<e.length?Le(e,I):e.length,R=Kr(e,n);if(R){var H=R.tag,G=H.toLowerCase(),Z=R.f;if(Z){var z=e.slice(R.end,D);return{node:{type:ne.htmlBlock,tag:H,attrs:{},children:[],h:e.slice(n,R.end),e:z?ar(z):void 0,text:z,c:!0,a:!0},end:B}}if(R.n||ms(H))return{node:{type:ne.htmlBlock,tag:H,attrs:Wr(R.attrs,H,i),b:R.g+R.b,children:[],text:"",c:!1,a:!1},end:R.end<e.length&&e.charCodeAt(R.end)===fe?R.end+1:R.end};var $=r.d||0,W=e.slice(n,D),K=-1,ie=-1,re=!1;if($<10){for(var ue=`</${G}`,ye=R.end-n,Se=1,ke=ye;ke<W.length&&Se>0;){var Pe=qn(W,`<${G}`,ke),de=qn(W,ue,ke);if(de===-1)break;if(Pe!==-1&&Pe<de){var Ke=Pe+G.length+1;if(Ke<W.length){var ut=W.charCodeAt(Ke);(ut===se||ut===le||ut===fe||ut===Ne||ut===bt)&&Se++}ke=Pe+1}else{var ve=de+ue.length;if(ve<W.length){var Q=W.charCodeAt(ve);if((Q===Ne||Q===se||Q===le||Q===fe)&&(Se--,Se===0)){K=de;for(var ee=ve;ee<W.length&&W.charCodeAt(ee)!==Ne;)ee++;ie=ee+1;break}}else if(Se--,Se===0){K=de,ie=W.length;break}ke=de+1}}if(K===-1&&!R.f&&(l===6||R.u)){var te=bd(e,R.end,G);if(te!==-1){for(var he=Pl,ce=R.end,pt=!1,qe=!1,We=!1,St=0,xt=!1,ct=!1,Ct=ce;Ct<he;){var yt=e.charCodeAt(Ct);if(yt===fe)ct&&(pt=!0),xt||St++,ct=!0,Ct++;else if(yt===se||yt===le)Ct++;else{if(!xt&&(xt=!0,St>=2&&yt===it)){We=!0;break}if(ct=!1,yt===it){var ki=e.charCodeAt(Ct+1)|32;if((ki===ld||ki===_k||ki===ta)&&(Uk.lastIndex=Ct,Uk.test(e))){qe=!0;break}}Ct++}}if(pt&&!We&&!qe){var Rn=Je(e,te);D=Rn,B=Le(e,Rn),W=e.slice(n,D),L=e.slice(n,D),K=he-n,ie=te-n,re=!0}}}}var At=R.b.indexOf(`
123
+ `,ue);if(ve<0&&(ve=re),Pe){Et(ie,ue,ve);for(var Q=ie.slice(ue+He,ve),ee=0;ee<Q.length&&Q.charCodeAt(ee)===de;)ee++;ee>=Ke&&Q.slice(ee).trim()===""&&(Pe=!1),ue=ve<re?ve+1:re;continue}if(Gt(ie,ue,ve)){ut>=0?ke=!0:ye&&(Se=!0),ue=ve<re?ve+1:re;continue}if(Et(ie,ue,ve),ut>=0){if(Xe>=ut){ue=ve<re?ve+1:re;continue}var te=Ln(ie,ue,ve);if(te&&te.markerCol<ut&&te.contentCol<=ut){ue=ve<re?ve+1:re;continue}if(te){ue=ve<re?ve+1:re;continue}ut=-1,ke&&(Se=!0,ke=!1)}var he=ie.slice(ue+He,ve),ce=he.charCodeAt(0);if((ce===Je||ce===Pt)&&Xe<=3){for(var pt=0;pt<he.length&&he.charCodeAt(pt)===ce;)pt++;if(pt>=3){if(Se&&ye){W=!0;break}Pe=!0,de=ce,Ke=pt,ye=!0,ue=ve<re?ve+1:re;continue}}var qe=Xe<=3?Ln(ie,ue,ve):null;if(qe&&ye){if(Se){W=!0;break}ut=qe.contentCol,ke=!1,ue=ve<re?ve+1:re,ye=!0;continue}if(Se){W=!0;break}ye=!0,ue=ve<re?ve+1:re}if(W)break}}for(var We=[],St=0;St<s.length;St++){for(var xt=s[St],ct=xt.raw,Ct=ct.length;Ct>0&&ct.charCodeAt(Ct-1)===fe;)Ct--;var yt=Ct<ct.length?ct.slice(0,Ct):ct,ki=null;if(yt.length>=3&&yt.charCodeAt(0)===vt){var Rn=yt[1];(Rn===" "||Rn==="x"||Rn==="X")&&yt.charCodeAt(2)===Ir&&(ki={type:ne.gfmTask,completed:Rn==="x"||Rn==="X"},yt=yt.slice(3))}var At;if(xt.isEmpty&&yt.trim()==="")At=[];else if(W){var wi=r.inList;r.inList=!0;var Ml=r.i;r.i=Ml||St!==s.length-1,At=$n(yt,r,i),r.i=Ml,r.inList=wi}else{var dn=r.inList;r.inList=!0;var Si=r.i;if(r.i=Si||St!==s.length-1,At=$n(yt,r,i),r.i=Si,r.inList=dn,At.length===1&&At[0].type===ne.paragraph)At=At[0].children;else if(r.p){var Un=[];r.p.push({src:At,dest:Un,unwrap:!0}),At=Un}else{for(var Jr=[],Qt=0;Qt<At.length;Qt++)if(At[Qt].type===ne.paragraph)for(var Yr=At[Qt].children,fa=0;fa<Yr.length;fa++)Jr.push(Yr[fa]);else Jr.push(At[Qt]);At=Jr}}if(ki){var Ci=[ki,{type:ne.text,text:" "}];if(r.p)r.p.push({src:At,dest:Ci,unwrap:!1});else for(var Mr=0;Mr<At.length;Mr++)Ci.push(At[Mr]);We.push(Ci)}else We.push(At)}return{node:{type:n.ordered?ne.orderedList:ne.unorderedList,start:n.ordered?n.start:void 0,items:We},end:o}}var _l=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 Wr(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,p=0;for(let m=0;m<o.length;m++){let k=o.charCodeAt(m);k===Tr?f++:k===Nr?f--:k===Sl&&f===0&&(c.push(o.slice(p,m)),p=m+1)}p<o.length&&c.push(o.slice(p));let d=!1;c.forEach(m=>{let k=m.indexOf(":");if(k===-1)return;let v=m.slice(0,k).trim(),g=m.slice(k+1).trim();if(v&&g){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(g)){d=!0;return}let b=v.indexOf("-")===-1?v:v.replace(/-([a-z])/g,(w,E)=>E.toUpperCase());u[b]=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)===hi&&o.charCodeAt(o.length-1)===ud){var a=o.slice(1,-1);if(a.length>0){var n=a.charCodeAt(0);if(n===vt||n===hi)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 qn(e,t,r){let i=t.length;if(i===0)return r;var a=t.charCodeAt(0),n=a>=we&&a<=Ae||a>=Ze&&a<=lt;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 p=e.charCodeAt(u+f),d=t.charCodeAt(f);if(p>=we&&p<=Ae&&(p+=Fr),d>=we&&d<=Ae&&(d+=Fr),p!==d){c=!1;break}}if(c)return u;l=u+1}return-1}a>=we&&a<=Ae&&(a+=Fr);for(let k=r;k<=e.length-i;k++){var m=e.charCodeAt(k);if(m>=we&&m<=Ae&&(m+=Fr),m!==a)continue;let v=!0;for(let g=1;g<i;g++){let b=e.charCodeAt(k+g),w=t.charCodeAt(g);if(b>=we&&b<=Ae&&(b+=Fr),w>=we&&w<=Ae&&(w+=Fr),b!==w){v=!1;break}}if(v)return k}return-1}function o$(e,t,r){let i=t.length;var a=t.charCodeAt(0);a>=we&&a<=Ae&&(a+=Fr);for(let s=Math.min(r,e.length-i);s>=0;s--){var n=e.charCodeAt(s);if(n>=we&&n<=Ae&&(n+=Fr),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>=we&&u<=Ae&&(u+=Fr),c>=we&&c<=Ae&&(c+=Fr),u!==c){o=!1;break}}if(o)return s}return-1}var Pl=-1;function bd(e,t,r){let i=r.toLowerCase(),a=`<${i}`,n=`</${i}`,s=1,o=t,l=e.length;for(Pl=-1;o<l&&s>0;){let f=qn(e,a,o),p=qn(e,n,o);if(p===-1)return-1;if(f!==-1&&f<p){let d=Kr(e,f);d?(d.tag.toLowerCase()===i&&!d.f&&!d.n&&!ms(d.tag)&&s++,o=d.end):o=f+1}else{var u=p+n.length,c=u<l?e.charCodeAt(u):62;if((c===Ne||c===se||c===le||c===fe)&&(s--,s===0)){Pl=p;let d=p+n.length;for(;d<l&&e.charCodeAt(d)!==Ne;)d++;return d+1}o=p+1}}return-1}function s1(e,t,r,i){if(i.ignoreHTMLBlocks||i.disableParsingRawHTML)return null;var a=Ye(e,t);if(Et(e,t,a),Xe>3&&!r.inHTML)return null;var n=t+He;if(e.charCodeAt(n)!==it)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=l$(e,n);if(l>=1&&l<=5){var u=e.length;if(l===1){for(var c=e.length,f=0;f<pd.length;f++){var p=qn(e,`</${pd[f]}>`,n);p>=0&&p<c&&(c=p)}if(c<e.length){var d=e.indexOf(">",c);u=d>=0?Le(e,d+1):e.length}}else{var m=l===2?"-->":l===3?"?>":l===4?">":"]]>",k=e.indexOf(m,n);k>=0&&(u=Le(e,k+m.length))}var v=e.slice(n,u);if(l>=2)return{node:{type:ne.htmlComment,text:v,s:!1,raw:!0},end:u};var g="div",b=v.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);b&&(g=b[1]);var w=Kr(e,n),E={},h;w&&!w.f&&(E=Wr(w.attrs,g,i),h=w.g+w.b);var y=[],C=g.toLowerCase(),x=`</${C}`,_=qn(v,x,0),S="",A,O,F;if(w!=null&&w.f){F=v.slice(0,w.end-n);for(var T=v.slice(w.end-n);T.length>0&&T.charCodeAt(T.length-1)===fe;)T=T.slice(0,-1);T&&(O=ar(T))}else if(w&&!w.f){var j=w.end-n;if(_===-1){for(var q=v;q.length>0&&q.charCodeAt(q.length-1)===fe;)q=q.slice(0,-1);A=ar(q)}else{var J=j;v.charCodeAt(J)===fe&&J++;for(var Y=_;Y>J;){var X=v.charCodeAt(Y-1);if(X!==se&&X!==le&&X!==fe&&X!==Tn)break;Y--}var P=v.slice(J,Y);P&&(O=ar(P));for(var M=v.slice(_);M.length>0&&M.charCodeAt(M.length-1)===fe;)M=M.slice(0,-1);F=ar(M),S=v.slice(j,_).trim()}}var B=w?w.f:!1;return{node:{type:ne.htmlBlock,tag:g,attrs:E,b:h,children:y,e:O,h:F,j:A,text:S,c:!0,a:B},end:u}}if(l===6||l===7){var I=Zk(e,t),D=I<e.length?I:e.length,L=e.slice(n,D),U=I<e.length?Le(e,I):e.length,R=Kr(e,n);if(R){var H=R.tag,G=H.toLowerCase(),Z=R.f;if(Z){var z=e.slice(R.end,D);return{node:{type:ne.htmlBlock,tag:H,attrs:{},children:[],h:e.slice(n,R.end),e:z?ar(z):void 0,text:z,c:!0,a:!0},end:U}}if(R.n||ms(H))return{node:{type:ne.htmlBlock,tag:H,attrs:Wr(R.attrs,H,i),b:R.g+R.b,children:[],text:"",c:!1,a:!1},end:R.end<e.length&&e.charCodeAt(R.end)===fe?R.end+1:R.end};var $=r.d||0,W=e.slice(n,D),K=-1,ie=-1,re=!1;if($<10){for(var ue=`</${G}`,ye=R.end-n,Se=1,ke=ye;ke<W.length&&Se>0;){var Pe=qn(W,`<${G}`,ke),de=qn(W,ue,ke);if(de===-1)break;if(Pe!==-1&&Pe<de){var Ke=Pe+G.length+1;if(Ke<W.length){var ut=W.charCodeAt(Ke);(ut===se||ut===le||ut===fe||ut===Ne||ut===bt)&&Se++}ke=Pe+1}else{var ve=de+ue.length;if(ve<W.length){var Q=W.charCodeAt(ve);if((Q===Ne||Q===se||Q===le||Q===fe)&&(Se--,Se===0)){K=de;for(var ee=ve;ee<W.length&&W.charCodeAt(ee)!==Ne;)ee++;ie=ee+1;break}}else if(Se--,Se===0){K=de,ie=W.length;break}ke=de+1}}if(K===-1&&!R.f&&(l===6||R.u)){var te=bd(e,R.end,G);if(te!==-1){for(var he=Pl,ce=R.end,pt=!1,qe=!1,We=!1,St=0,xt=!1,ct=!1,Ct=ce;Ct<he;){var yt=e.charCodeAt(Ct);if(yt===fe)ct&&(pt=!0),xt||St++,ct=!0,Ct++;else if(yt===se||yt===le)Ct++;else{if(!xt&&(xt=!0,St>=2&&yt===it)){We=!0;break}if(ct=!1,yt===it){var ki=e.charCodeAt(Ct+1)|32;if((ki===ld||ki===Pk||ki===ta)&&(Vk.lastIndex=Ct,Vk.test(e))){qe=!0;break}}Ct++}}if(pt&&!We&&!qe){var Rn=Ye(e,te);D=Rn,U=Le(e,Rn),W=e.slice(n,D),L=e.slice(n,D),K=he-n,ie=te-n,re=!0}}}}var At=R.b.indexOf(`
124
124
  `)!==-1||R.g.indexOf(`
125
- `)!==-1,wi=!1;if(K!==-1){var Ml=W.slice(ie).trim();wi=Ml.length===0}var dn=!1,Si=D,Bn=B;if(K!==-1){var Jr=n+ie,Qt=Je(e,Jr-1);if(Jr<Qt){for(var Yr=Jr;Yr<Qt&&(e.charCodeAt(Yr)===se||e.charCodeAt(Yr)===le);)Yr++;if(Yr<Qt&&e.charCodeAt(Yr)===it){var fa=Kr(e,Yr);fa&&!fa.f&&(dn=!0,Si=Jr,Bn=Jr,wi=!0)}}if(!dn){var Ci=Le(e,Qt);if(Ci<D){for(var Mr=Ci;Mr<D&&(e.charCodeAt(Mr)===se||e.charCodeAt(Mr)===le);)Mr++;if(Mr<D&&e.charCodeAt(Mr)===it){var lR=Kr(e,Mr);lR&&(dn=!0,Si=Qt,Bn=Ci,wi=!0)}}}if(!dn&&r.inHTML){dn=!0,Si=Qt,Bn=Le(e,Qt);var uR=e.slice(Jr,Qt).trim();wi=uR.length===0}}var da=[],sr="";if(K!==-1){sr=W.slice(R.end-n,K);var pa=sr.trim();if(pa){var{inline:cR,inHTML:fR,d:dR}=r;r.inHTML=!0,r.d=$+1;var pR=G==="p";if(pR)r.inline=!0,da=la(pa,!1,r,i);else{var I1=sr.indexOf(`
125
+ `)!==-1,wi=!1;if(K!==-1){var Ml=W.slice(ie).trim();wi=Ml.length===0}var dn=!1,Si=D,Un=U;if(K!==-1){var Jr=n+ie,Qt=Ye(e,Jr-1);if(Jr<Qt){for(var Yr=Jr;Yr<Qt&&(e.charCodeAt(Yr)===se||e.charCodeAt(Yr)===le);)Yr++;if(Yr<Qt&&e.charCodeAt(Yr)===it){var fa=Kr(e,Yr);fa&&!fa.f&&(dn=!0,Si=Jr,Un=Jr,wi=!0)}}if(!dn){var Ci=Le(e,Qt);if(Ci<D){for(var Mr=Ci;Mr<D&&(e.charCodeAt(Mr)===se||e.charCodeAt(Mr)===le);)Mr++;if(Mr<D&&e.charCodeAt(Mr)===it){var uR=Kr(e,Mr);uR&&(dn=!0,Si=Qt,Un=Ci,wi=!0)}}}if(!dn&&r.inHTML){dn=!0,Si=Qt,Un=Le(e,Qt);var cR=e.slice(Jr,Qt).trim();wi=cR.length===0}}var da=[],sr="";if(K!==-1){sr=W.slice(R.end-n,K);var pa=sr.trim();if(pa){var{inline:fR,inHTML:dR,d:pR}=r;r.inHTML=!0,r.d=$+1;var mR=G==="p";if(mR)r.inline=!0,da=la(pa,!1,r,i);else{var T1=sr.indexOf(`
126
126
 
127
- `)!==-1,T1=md.test(pa),Md=Vk.test(pa),mR=I1||T1||r.inHTML&&Md,hR=sr.length>=2&&sr.charCodeAt(0)===fe&&sr.charCodeAt(sr.length-1)===fe&&!I1;hR&&!T1&&!Md?da=[{type:ne.text,text:pa}]:mR||Md?(r.inline=!1,da=$n(sr,r,i)):(r.inline=!0,da=la(pa,!1,r,i))}r.inline=cR,r.inHTML=fR,r.d=dR}}var N1=!1;if(l===6&&K!==-1&&!r.inHTML&&!At){var gR=/<[a-zA-Z][^>]*>/.test(sr),yR=sr.indexOf(`
127
+ `)!==-1,N1=md.test(pa),Md=Hk.test(pa),hR=T1||N1||r.inHTML&&Md,gR=sr.length>=2&&sr.charCodeAt(0)===fe&&sr.charCodeAt(sr.length-1)===fe&&!T1;gR&&!N1&&!Md?da=[{type:ne.text,text:pa}]:hR||Md?(r.inline=!1,da=$n(sr,r,i)):(r.inline=!0,da=la(pa,!1,r,i))}r.inline=fR,r.inHTML=dR,r.d=pR}}var F1=!1;if(l===6&&K!==-1&&!r.inHTML&&!At){var yR=/<[a-zA-Z][^>]*>/.test(sr),vR=sr.indexOf(`
128
128
 
129
- `)!==-1||md.test(sr);gR&&!yR&&(N1=!0)}var vR=!re&&(r.inHTML||l===7||At||!wi||N1);if(vR){var bs,Xr,F1=!1;if(K!==-1&&dn){var D1=!1;if(r.inHTML&&ie<W.length){for(var jl=ie;jl<W.length&&W.charCodeAt(jl)!==fe;)jl++;var jd=W.slice(ie,jl).trim();D1=jd.length>1&&jd.charCodeAt(0)===it&&jd.charCodeAt(1)!==bt}Xr=D1?W.slice(R.end-n):sr,F1=!0}else(l===7||r.inHTML)&&K!==-1?(Xr=W.slice(R.end-n),Xr.charCodeAt(0)===fe&&(Xr=Xr.slice(1))):dn?bs=e.slice(n,Si):At?bs=L:(Xr=W.slice(R.end-n),Xr.charCodeAt(0)===fe&&(Xr=Xr.slice(1)));var M1=bs!==void 0,Ld=ar(bs===void 0?Xr||"":bs),j1={type:ne.htmlBlock,tag:H,attrs:Wr(R.attrs,H,i),b:R.g+R.b,children:da,e:M1?void 0:Ld,j:M1?Ld:void 0,text:Ld,c:!0,a:!1};return F1&&(j1.x=!0),{node:j1,end:Bn}}var L1=ar(sr);return{node:{type:ne.htmlBlock,tag:H,attrs:Wr(R.attrs,H,i),b:R.g+R.b,children:da,e:re?void 0:L1,text:L1,c:!1,a:!1},end:Bn}}var Ll=L.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),bR=Ll?Ll[2]:"div",qd=Ll?Ll[1]==="/":!1,$d,q1,$1,ql="";if(qd){var zd=L.indexOf(">");zd===-1?$d=L:($d=L.slice(0,zd+1),ql=L.slice(zd+1),ql&&(q1=ar(ql)))}else $1=ar(L);return{node:{type:ne.htmlBlock,tag:bR,attrs:{},children:[],e:q1,h:$d,j:$1,text:qd?ql:L,c:!0,a:qd},end:B}}var Rt=Kr(e,n);if(!Rt)return null;var Un=Rt.tag,Rd=Un.toLowerCase(),z1=Un.charCodeAt(0),Bd=z1>=we&&z1<=Ae;if(!(Bd||_l.has(Rd)||hs.has(Rd)||Rd.includes("-")))return null;if(Rt.f)return{node:{type:ne.htmlSelfClosing,tag:Un,attrs:{},h:e.slice(n,Rt.end),a:!0},end:Rt.end};var ma=bd(e,Rt.end,Un),ks=[];if(ma!==-1){var kR=Pl,$l=e.slice(Rt.end,kR),zl=$l.trim();if(zl){var wR=$l.indexOf(`
129
+ `)!==-1||md.test(sr);yR&&!vR&&(F1=!0)}var bR=!re&&(r.inHTML||l===7||At||!wi||F1);if(bR){var bs,Xr,D1=!1;if(K!==-1&&dn){var M1=!1;if(r.inHTML&&ie<W.length){for(var jl=ie;jl<W.length&&W.charCodeAt(jl)!==fe;)jl++;var jd=W.slice(ie,jl).trim();M1=jd.length>1&&jd.charCodeAt(0)===it&&jd.charCodeAt(1)!==bt}Xr=M1?W.slice(R.end-n):sr,D1=!0}else(l===7||r.inHTML)&&K!==-1?(Xr=W.slice(R.end-n),Xr.charCodeAt(0)===fe&&(Xr=Xr.slice(1))):dn?bs=e.slice(n,Si):At?bs=L:(Xr=W.slice(R.end-n),Xr.charCodeAt(0)===fe&&(Xr=Xr.slice(1)));var j1=bs!==void 0,Ld=ar(bs===void 0?Xr||"":bs),L1={type:ne.htmlBlock,tag:H,attrs:Wr(R.attrs,H,i),b:R.g+R.b,children:da,e:j1?void 0:Ld,j:j1?Ld:void 0,text:Ld,c:!0,a:!1};return D1&&(L1.x=!0),{node:L1,end:Un}}var q1=ar(sr);return{node:{type:ne.htmlBlock,tag:H,attrs:Wr(R.attrs,H,i),b:R.g+R.b,children:da,e:re?void 0:q1,text:q1,c:!1,a:!1},end:Un}}var Ll=L.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),kR=Ll?Ll[2]:"div",qd=Ll?Ll[1]==="/":!1,$d,$1,z1,ql="";if(qd){var zd=L.indexOf(">");zd===-1?$d=L:($d=L.slice(0,zd+1),ql=L.slice(zd+1),ql&&($1=ar(ql)))}else z1=ar(L);return{node:{type:ne.htmlBlock,tag:kR,attrs:{},children:[],e:$1,h:$d,j:z1,text:qd?ql:L,c:!0,a:qd},end:U}}var Rt=Kr(e,n);if(!Rt)return null;var Bn=Rt.tag,Rd=Bn.toLowerCase(),R1=Bn.charCodeAt(0),Ud=R1>=we&&R1<=Ae;if(!(Ud||_l.has(Rd)||hs.has(Rd)||Rd.includes("-")))return null;if(Rt.f)return{node:{type:ne.htmlSelfClosing,tag:Bn,attrs:{},h:e.slice(n,Rt.end),a:!0},end:Rt.end};var ma=bd(e,Rt.end,Bn),ks=[];if(ma!==-1){var wR=Pl,$l=e.slice(Rt.end,wR),zl=$l.trim();if(zl){var SR=$l.indexOf(`
130
130
 
131
- `)!==-1,SR=md.test(zl),CR=Vk.test(zl),ER=r.inline,AR=r.inHTML,xR=r.d;r.inHTML=!0,r.d=(r.d||0)+1,wR||SR||CR?(r.inline=!1,ks=$n($l,r,i)):(r.inline=!0,ks=la(zl,!1,r,i)),r.inline=ER,r.inHTML=AR,r.d=xR}var OR=Je(e,ma),_R=e.slice(ma,OR).trim(),R1=_R?ma:Le(e,ma),B1=Bd?e.slice(n,ma):e.slice(n,R1);return{node:{type:ne.htmlBlock,tag:Un,attrs:Wr(Rt.attrs,Un,i),b:Rt.g+Rt.b,children:ks,j:ar(B1),text:Bd?$l:B1,c:!0,a:!1},end:R1}}var ws=Xk(e,Rt.end),PR=ws<e.length?Le(e,ws):ws,Ud=e.slice(Rt.end,ws);if(Ud.trim()){var{inline:IR,inHTML:TR,d:NR}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,ks=$n(Ud,r,i),r.inline=IR,r.inHTML=TR,r.d=NR}var FR=e.slice(Rt.end,ws);return{node:{type:ne.htmlBlock,tag:Un,attrs:Wr(Rt.attrs,Un,i),b:Rt.g+Rt.b,children:ks,e:ar(FR),text:Ud,c:!0,a:!1},end:PR}}function o$(e,t){if(e.charCodeAt(t)!==it)return 0;var r=t+1,i=e.length;if(e.charCodeAt(r)===Kt&&e.charCodeAt(r+1)===_e&&e.charCodeAt(r+2)===_e)return 2;if(e.charCodeAt(r)===ra)return 3;if(e.charCodeAt(r)===Kt){var a=e.charCodeAt(r+1);if(a>=we&&a<=Ae)return 4;if(e.slice(r+1,r+8)==="[CDATA[")return 5}for(var n=e.charCodeAt(r)===bt,s=n?r+1:r,o=s;o<i;){var l=e.charCodeAt(o);if(l>=we&&l<=Ae||l>=Ze&&l<=lt||l>=Fe&&l<=De||l===_e)o++;else break}if(o===s)return 0;var u=e.slice(s,o);if(hs.has(u.toLowerCase())){if(n)return 0;var c=e.charCodeAt(o);return c===se||c===le||c===Ne||c===fe||o>=i?1:0}if(_l.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)===Ne?6:0}var p=o<i?e.charCodeAt(o):-1;return p===se||p===le||p===Ne||p===fe||p===bt||p===-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)===Ne){var m=Je(e,t),k=e.slice(d+1,m).trim();if(k==="")return 7}}else{var v=Je(e,t),g=Kr(e,t);if(g&&g.end<=v){var b=e.slice(g.end,v).trim();if(b==="")return 7}}return 0}function s1(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)===Ft&&i++,a>i&&e.charCodeAt(a-1)===Ft&&(a-2<i||e.charCodeAt(a-2)!==Nt)&&a--;for(var n=[],s=i,o=!1,l=[],u=i;u<a;){var c=e.charCodeAt(u);if(c===Nt&&u+1<a){e.charCodeAt(u+1)===Ft?(o||(o=!0,l=[]),l.push(e.slice(s,u)),l.push("|"),u+=2,s=u):u+=2;continue}if(c===Ge){for(var f=0;u<a&&e.charCodeAt(u)===Ge;)f++,u++;for(var p=!1;u<a&&!p;){for(var d=0;u<a&&e.charCodeAt(u)===Ge;)d++,u++;d===f?p=!0:d===0&&u++}continue}if(c===Ft){var m=o?(l.push(e.slice(s,u)),l.join("")):e.slice(s,u);n.push(m.trim()),u++,s=u,o=!1,l=[];continue}u++}var k=o?(l.push(e.slice(s,a)),l.join("")):e.slice(s,a);return n.push(k.trim()),n.map(v=>{var g=v.indexOf("\\|")===-1?v:v.replace(/\\\|/g,"|");return g?la(g,!1,t,r):[]})}function o1(e,t,r,i){let a=Je(e,t);var n=e.indexOf("|",t);if(n<0||n>=a)return null;let s=Le(e,a);if(s>=e.length)return null;let o=Je(e,s);if(!Wk(e,s,o))return null;let l=e.slice(t,a),u=e.slice(s,o);for(var c=[],f=0,p=u.length;f<p&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;for(f<p&&u.charCodeAt(f)===Ft&&f++;f<p;){for(;f<p&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;if(f>=p||u.charCodeAt(f)===Ft)break;var d=u.charCodeAt(f)===$t;for(d&&f++;f<p&&u.charCodeAt(f)===_e;)f++;var m=f<p&&u.charCodeAt(f)===$t;for(m&&f++,c.push(d&&m?"center":m?"right":d?"left":null);f<p&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;f<p&&u.charCodeAt(f)===Ft&&f++}let k=s1(l,r,i);if(c.length!==k.length)return null;let v=[],g=Le(e,o);for(;g<e.length;){let C=Je(e,g),x=e.slice(g,C);if(Gt(e,g,C))break;if(Et(e,g,C),Ye<4){var b=e.charCodeAt(g+He);if(b===Ne||b===gr||(b===_e||b===wt||b===gt)&&jn(e,g))break;if(b===Ge||b===Pt){for(var w=g+He,E=0;w<C&&e.charCodeAt(w)===b;)E++,w++;if(E>=3)break}}v.push(s1(x,r,i)),g=Le(e,C)}if(i.optimizeForStreaming&&v.length===0)return null;for(var h=k.length,y=0;y<v.length;y++)if(v[y].length<h)for(;v[y].length<h;)v[y].push([]);else v[y].length>h&&(v[y].length=h);return{node:{type:ne.table,header:k,cells:v,align:c},end:g}}function l$(e,t,r){var i=Je(e,t);if(Et(e,t,i),Ye>3)return null;var a=t+He;if(e.charCodeAt(a)!==vt)return null;if(a+1<e.length&&e.charCodeAt(a+1)===cn){var n=u$(e,a,r);return n||null}r.refs||(r.refs={});var s=Jk(e,a,r.refs);return s===null?null:{node:{type:ne.refCollection},end:s}}function u$(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)!==Ir;){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)!==$t)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(`
132
- `,a);o<0&&(o=i);for(var l=e.slice(a,o).trim(),u=o<i?o+1:i;u<i;){var c=Je(e,u);if(Et(e,u,c),Ye>=2&&!Gt(e,u,c))l+=`
133
- ${e.slice(u,c)}`,u=Le(e,c);else if(Gt(e,u,c)){var f=Le(e,c);if(f<i){var p=Je(e,f);if(Et(e,f,p),Ye>=2){l+=`
134
- `,u=Le(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 c$(e,t,r,i){let a=t,n=0,s=0,o=-1;for(;a<e.length;){let F=o>=0?o:Je(e,a);if(o=-1,Gt(e,a,F))break;if(Et(e,a,F),Ye<4&&s>0&&!r.l){let j=e.charCodeAt(a+He);if(j===yr||j===_e){let q=a+He;for(;q<F&&e.charCodeAt(q)===j;)q++;for(;q<F&&(e.charCodeAt(q)===se||e.charCodeAt(q)===le);)q++;if(q>=F){n=j===yr?1:2,a=Le(e,F);break}}}s=F;let T=Le(e,F);if(T<e.length){if(e.charCodeAt(T)===cd){var l=Je(e,T);a=Le(e,l),s=l;continue}let j=Je(e,T);if(o=j,Et(e,T,j),Ye<4){let q=e.charCodeAt(T+He);if(q===Ne){a=T;break}if(q===gr){for(var u=T+He,c=0;u<j&&e.charCodeAt(u)===gr&&c<=6;)c++,u++;if(c>=1&&c<=6&&(u>=j||e.charCodeAt(u)===se||e.charCodeAt(u)===le)){a=T;break}}if(q===Ge||q===Pt){for(var f=T+He,p=0;f<j&&e.charCodeAt(f)===q;)p++,f++;if(p>=3){a=T;break}}if(q===it){var d=T+He+1,m=d<j?e.charCodeAt(d):0,k=m===Kt||m===ra;if(!k&&m===bt){for(var v=d+1,g=v;g<j&&(e.charCodeAt(g)>=we&&e.charCodeAt(g)<=Ae||e.charCodeAt(g)>=Ze&&e.charCodeAt(g)<=lt||e.charCodeAt(g)>=Fe&&e.charCodeAt(g)<=De||e.charCodeAt(g)===_e);)g++;g>v&&(k=_l.has(e.slice(v,g).toLowerCase()))}else if(!k){for(var b=d;b<j&&(e.charCodeAt(b)>=we&&e.charCodeAt(b)<=Ae||e.charCodeAt(b)>=Ze&&e.charCodeAt(b)<=lt||e.charCodeAt(b)>=Fe&&e.charCodeAt(b)<=De||e.charCodeAt(b)===_e);)b++;if(b>d){var w=e.slice(d,b).toLowerCase();k=_l.has(w)||hs.has(w)}}if(k&&a1(e,T,r,i)){a=T;break}}if(q===_e||q===wt||q===Nn){let J=T+He+1;if(J<j&&(e.charCodeAt(J)===se||e.charCodeAt(J)===le)){var E=gs(e,J,j);if(E<j&&!jn(e,T)){a=T;break}}}if(q>=Fe&&q<=De){let J=T+He;for(;J<j&&e.charCodeAt(J)>=Fe&&e.charCodeAt(J)<=De;)J++;if(J<j&&(e.charCodeAt(J)===vr||e.charCodeAt(J)===Nr)&&J-(T+He)===1&&e.charCodeAt(T+He)===49){var h=J+1;if(h<j&&(e.charCodeAt(h)===se||e.charCodeAt(h)===le)){var y=gs(e,h,j);if(y<j){a=T;break}}}}if(q===Ft){let J=Le(e,j);if(J<e.length){let Y=Je(e,J);if(Wk(e,J,Y)){a=T;break}}}if((q===_e||q===wt||q===gt)&&jn(e,T)){if(q!==_e){a=T;break}let J=T+He;for(;J<j&&e.charCodeAt(J)===_e;)J++;for(;J<j&&(e.charCodeAt(J)===se||e.charCodeAt(J)===le);)J++;if(J<j){a=T;break}}}}a=Le(e,F)}for(var C=n?s:a;C>t&&(e.charCodeAt(C-1)===fe||e.charCodeAt(C-1)===Tn||e.charCodeAt(C-1)===se||e.charCodeAt(C-1)===le);)C--;for(var x=t;x<C&&(e.charCodeAt(x)===se||e.charCodeAt(x)===le);)x++;if(x>=C)return null;for(var _=!1,S=x;S<C;S++)if(e.charCodeAt(S)===cd){_=!0;break}var A=_?e.slice(x,C).replace(/\u001E/g,""):e.slice(x,C);if(!A)return null;let O=la(A,!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 la(e,t,r,i){var a=r.t;if(!a){var n=r.k;r.k=t;var s=Gr(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 f$(e,t,r){if(e.charCodeAt(t)!==Ge)return null;let i=Mn(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return null;let s=Mn(e,n,r,96);if(s===i){let o=e.slice(t+i,n);return o.indexOf(`
135
- `)!==-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 kd(e,t,r){if(e.charCodeAt(t)!==Ge)return t;let i=Mn(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return t;let s=Mn(e,n,r,96);if(s===i)return n+s;a=n+s}return t}function d$(e,t,r){if(e.charCodeAt(t)!==it)return t;if(t+1<r&&e.charCodeAt(t+1)===bt){let u=t+2;for(;u<r&&e.charCodeAt(u)!==Ne;)u++;return u<r?u+1:t}if(t+3<r&&e.charCodeAt(t+1)===Kt&&e.charCodeAt(t+2)===_e&&e.charCodeAt(t+3)===_e){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>=we&&u<=Ae||u>=Ze&&u<=lt||u>=Fe&&u<=De||u===_e)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===Ne){i++;break}if(u===bt&&i+1<r&&e.charCodeAt(i+1)===Ne){i+=2,s=!0;break}if(u===mi||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||ms(n))return i;let l=1;for(;i<r&&l>0;)if(e.charCodeAt(i)===it)if(i+1<r&&e.charCodeAt(i+1)===bt){let u=i+2,c=u;for(;c<r&&(e.charCodeAt(c)>=we&&e.charCodeAt(c)<=Ae||e.charCodeAt(c)>=Ze&&e.charCodeAt(c)<=lt);)c++;if(e.slice(u,c).toLowerCase()===n){for(;c<r&&e.charCodeAt(c)!==Ne;)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)>=we&&e.charCodeAt(c)<=Ae||e.charCodeAt(c)>=Ze&&e.charCodeAt(c)<=lt);)c++;e.slice(u,c).toLowerCase()===n&&l++,i++}else i++;return i}function p$(e,t,r,i,a){if(e.charCodeAt(t)!==Pt||t+1>=r||e.charCodeAt(t+1)!==Pt)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===Ge){let o=kd(e,n,r);if(o>n){n=o;continue}}if(s===Pt&&e.charCodeAt(n+1)===Pt){let o=e.slice(t+2,n),l=Gr(o,0,o.length,i,a);return{node:{type:ne.textFormatted,tag:"del",children:l},end:n+2}}s===Nt&&n+1<r&&n++,n++}return null}function m$(e,t,r,i,a){if(e.charCodeAt(t)!==yr||t+1>=r||e.charCodeAt(t+1)!==yr)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===Ge){let o=kd(e,n,r);if(o>n){n=o;continue}}if(s===yr&&e.charCodeAt(n+1)===yr&&n>t+2){let o=e.slice(t+2,n),l=Gr(o,0,o.length,i,a);return{node:{type:ne.textFormatted,tag:"mark",children:l},end:n+2}}s===Nt&&n+1<r&&n++,n++}return null}function l1(e,t,r){return e<Cl?!!(gd(e)&na):xq.test(t[r])}function u1(e,t,r){return e<Cl?!!(gd(e)&yi):Oq.test(t[r])}function h$(e,t,r){var i=e.charCodeAt(t);if(i!==wt&&i!==gt)return null;var a=Mn(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=u1(n,e,t-1),l=u1(s,e,t+a),u=t>0?l1(n,e,t-1):!1,c=t+a<r?l1(s,e,t+a):!1,f=!l&&(!c||o||u),p=!o&&(!u||l||c),d,m;return i===wt?(d=f,m=p):(d=f&&(!p||u),m=p&&(!f||c)),{len:a,canOpen:d,canClose:m}}function g$(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 p=[],d=0;d<12;d++)p[d]=-1;for(var m=0;m<t.length;){var k=t[m];if(!(k.active&&k.canClose)){m++;continue}for(var v=k.ch===wt?0:1,g=v*6+k.len%3*2+(k.canOpen?1:0),b=p[g]===void 0?-1:p[g],w=-1,E=m-1;E>b;E--){var h=t[E];if(!(!h.active||h.ch!==k.ch||!h.canOpen)&&!((k.canOpen||h.canClose)&&(h.len+k.len)%3===0&&h.len%3!==0)){w=E;break}}if(w<0){p[g]=m-1,!k.canOpen&&(k.active=!1),m++;continue}var y=t[w],C=y.len>=2&&k.len>=2,x=C?2:1;y.len-=x,k.len-=x;var _=c[w],S=c[m],A=_.node,O=S.node;A.text=A.text.slice(0,A.text.length-x),O.text=O.text.slice(x);for(var F=[],T=_.next;T&&T!==S;)F.push(T.node),T=T.next;var j={type:ne.textFormatted,tag:C?"strong":"em",children:F},q={node:j,prev:_,next:S};_.next=q,S.prev=q;for(var J=w+1;J<m;J++)t[J].active=!1;if(y.len===0&&(y.active=!1,A.text==="")){var Y=_.prev;q.prev=Y,Y?Y.next=q:s=q}if(k.len===0){if(k.active=!1,O.text===""){var X=S.next;q.next=X,X&&(X.prev=q)}}else continue;m++}for(var P=0,M=s;M;){var U=M.node;if(U.type===ne.text){var I=U;if(I.text===""){M=M.next;continue}if(P>0&&e[P-1].type===ne.text){e[P-1].text+=I.text,M=M.next;continue}}e[P++]=U,M=M.next}e.length=P}}function Il(e,t,r,i){return t(e,r,i)===null?null:e}var c1=0,wd=0,f1=0,Sd=0,d1=0,Cd=0,Ed=0,br=0;function y$(){return Ed===2147483647&&(wd=0,Sd=0,Cd=0,Tl=0,Ed=0),++Ed}var Ad=null,Tl=0,Nl=[],xd=256;function p1(e,t,r,i,a){var H;let n=e.charCodeAt(t)===Kt,s=n?t+1:t;if(e.charCodeAt(s)!==vt||Sd===br&&s>=f1)return null;var o=Tl===br?Ad: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 f1=s,Sd=br,null;u=s+1;var f=0;Nl[f++]=s;for(var p=r-s>=xd;u<r&&f>0;){var d=e.charCodeAt(u);if(d===Nt&&u+1<r){u+=2;continue}if(d===Ge){var m=kd(e,u,r);if(m>u){u=m;continue}}if(d===it){var k=m1(e,u,r);if(k){u=k.end;continue}var v=d$(e,u,r);if(v>u){u=v;continue}}if(d===vt)Nl[f++]=u;else if(d===Ir){var g=Nl[--f];o===null&&p&&u-s>=xd&&(o=Ad=new Int32Array(r),Tl=br),o!==null&&(o[g]=u+1)}u++}if(f>0){if(o===null&&p&&u-s>=xd&&(o=Ad=new Int32Array(r),Tl=br),o!==null)for(;f>0;)o[Nl[--f]]=-1;return null}}var b=u-1,w=e.slice(s+1,b),E=u<r?e.charCodeAt(u):0,h=!1;if(E===Tr){var y=!0;for(u++;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;var C="",x=u;if(u<r&&e.charCodeAt(u)===it){for(u++,x=u;x<r&&e.charCodeAt(x)!==Ne;){if(e.charCodeAt(x)===Nt&&x+1<r){x+=2;continue}if(e.charCodeAt(x)===fe){y=!1;break}x++}y&&(x>=r||e.charCodeAt(x)!==Ne)&&(y=!1),y&&(C=e.slice(u,x),x++)}else if(y){var _=wd===br?c1:-1;if(_>=0&&u>=_)y=!1;else{for(var S=0,A=!1;x<r;){var O=e.charCodeAt(x);if(O===Nt&&x+1<r){x+=2;continue}if(O===Tr)S++;else if(O===Nr){if(A=!0,S===0)break;S--}else if(O===se||O===fe)break;x++}x>=r&&!A&&(_<0||u<_)&&(c1=u,wd=br),C=e.slice(u,x)}}if(y){for(u=x;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;var F;if(u<r){var T=e.charCodeAt(u);if(T===mi||T===pi||T===Tr){var j=T===Tr?41:T;u++;for(var q=u;u<r&&e.charCodeAt(u)!==j;)e.charCodeAt(u)===Nt&&u+1<r&&u++,u++;u>=r?y=!1:(F=e.slice(q,u),u++)}}if(y){for(;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;(u>=r||e.charCodeAt(u)!==Nr)&&(y=!1)}}if(y){if(u++,C=Fn(sa(C)),F!==void 0&&(F=Fn(sa(F))),n){var J=Gr(w,0,w.length,i,a),Y=Fl(J);return{node:{type:ne.image,target:Il(C,(a==null?void 0:a.sanitizer)||fn,"img","src"),alt:Y,title:F},end:u}}var X=i.inAnchor;i.inAnchor=!0;var R=X?[{type:ne.text,text:w}]:Gr(w,0,w.length,i,a);return i.inAnchor=X,!i.inAnchor&&Od(R)?null:{node:{type:ne.link,target:Il(C,(a==null?void 0:a.sanitizer)||fn,"a","href"),title:F,children:R},end:u}}u=b+1,h=!0}var P="",M=u;if(!h&&E===vt){var U=u+1;M=U;for(var I=!1;M<r&&e.charCodeAt(M)!==Ir;){if(e.charCodeAt(M)===Nt&&M+1<r){M+=2;continue}if(e.charCodeAt(M)===vt){I=!0;break}M++}if(I||M>=r)return null;var D=e.slice(U,M);if(D.trim())P=xl(D);else{if(Yk(w))return null;P=xl(w)}M+=1}else{if(Yk(w))return null;P=xl(w)}var L=(H=i.refs)==null?void 0:H[P];if(!L)return null;if(n)return{node:{type:ne.image,target:Il(L.target,(a==null?void 0:a.sanitizer)||fn,"img","src"),alt:Fl(Gr(w,0,w.length,i,a)),title:L.title},end:M};var B=i.inAnchor;i.inAnchor=!0;var R=B?[{type:ne.text,text:w}]:Gr(w,0,w.length,i,a);return i.inAnchor=B,!i.inAnchor&&Od(R)?null:{node:{type:ne.link,target:Il(L.target,(a==null?void 0:a.sanitizer)||fn,"a","href"),title:L.title,children:R},end:M}}function m1(e,t,r){if(e.charCodeAt(t)!==it)return null;for(var i=t+1;i<r;){var a=e.charCodeAt(i);if(a===Ne)break;if(a===se||a===fe||a===Tn||a===it)return null;i++}if(i>=r||e.charCodeAt(i)!==Ne)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 v$(e,t,r,i){if(e.charCodeAt(t)!==vt||t+1>=r||e.charCodeAt(t+1)!==cn||Cd===br&&t>=d1)return null;let a=t+2;for(;a<r&&e.charCodeAt(a)!==Ir&&e.charCodeAt(a)!==fe;)a++;if(a>=r)return d1=t,Cd=br,null;if(e.charCodeAt(a)!==Ir)return null;let n=e.slice(t+2,a);return n?{node:{type:ne.footnoteReference,target:`#${gi(n)}`,text:n},end:a+1}:null}function b$(e,t,r,i){if(i.disableBareUrls)return null;var a="",n=!1,s=e.charCodeAt(t);if(s===wl||s===72?t+8<=r&&e.charCodeAt(t+1)===ta&&e.charCodeAt(t+2)===ta&&e.charCodeAt(t+3)===ld&&(e.charCodeAt(t+4)===_k&&e.charCodeAt(t+5)===$t&&e.charCodeAt(t+6)===bt&&e.charCodeAt(t+7)===bt?a="https://":e.charCodeAt(t+4)===$t&&e.charCodeAt(t+5)===bt&&e.charCodeAt(t+6)===bt&&(a="http://")):s===fi||s===70?t+6<=r&&e.charCodeAt(t+1)===ta&&e.charCodeAt(t+2)===ld&&e.charCodeAt(t+3)===$t&&e.charCodeAt(t+4)===bt&&e.charCodeAt(t+5)===bt&&(a="ftp://"):(s===di||s===87)&&t+4<=r&&e.charCodeAt(t+1)===di&&e.charCodeAt(t+2)===di&&e.charCodeAt(t+3)===vr&&(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===Tn||y===it||y===Ne)break;o++}for(var l=0,u=0,c=t;c<o;c++){var f=e.charCodeAt(c);f===Tr?l++:f===Nr&&u++}let p=o;for(;p>t+a.length;){let y=e.charCodeAt(p-1);if(y===vr||y===pq||y===$t||y===Kt||y===ra||y===Nr||y===wt||y===gt||y===Pt){if(y===Nr){if(l>=u)break;u--}p--}else if(y===Sl){for(var d=p-2;d>t&&(e.charCodeAt(d)>=we&&e.charCodeAt(d)<=Ae||e.charCodeAt(d)>=Ze&&e.charCodeAt(d)<=lt||e.charCodeAt(d)>=Fe&&e.charCodeAt(d)<=De);)d--;d>=t&&e.charCodeAt(d)===kl?p=d:p--}else break}if(p<=t+a.length)return null;var m=t+(n?4:a.length),k=e.indexOf("/",m);if((k<0||k>p)&&(k=p),n&&e.indexOf(".",m)===-1)return null;for(var v=-1,g=-1,b=k-1;b>=m;b--)if(e.charCodeAt(b)===vr)if(v<0)v=b;else{g=b;break}for(var w=g>=0?g+1:m,b=w;b<k;b++)if(e.charCodeAt(b)===gt)return null;var E=e.slice(t,p),h=n?`http://${E}`:E;return{node:{type:ne.link,target:h,title:void 0,children:[{type:ne.text,text:E}]},end:p}}function k$(e,t,r,i){if(i.disableBareUrls)return null;for(var a=t,n=a;a<r;){var s=e.charCodeAt(a);if(s>=we&&s<=Ae||s>=Ze&&s<=lt||s>=Fe&&s<=De||s===vr||s===Kt||s===gr||s===36||s===sd||s===kl||s===pi||s===wt||s===Nn||s===bt||s===yr||s===ra||s===cn||s===gt||s===Ge||s===hi||s===Ft||s===ud||s===Pt||s===_e)a++;else break}if(a===n||a>=r||e.charCodeAt(a)!==Ok)return null;a++;for(var o=a,l=-1,u=a;a<r;){var s=e.charCodeAt(a);if(s>=we&&s<=Ae||s>=Ze&&s<=lt||s>=Fe&&s<=De)a++;else if((s===_e||s===gt)&&a>o)a++;else if(s===vr){if(a===o)break;var c=e.charCodeAt(a-1);if(c===_e||c===gt||a-u>63)break;if(a+1<r){var f=e.charCodeAt(a+1);if(f>=we&&f<=Ae||f>=Ze&&f<=lt||f>=Fe&&f<=De)l=a,u=a+1,a++;else break}else break}else break}if(a-u>63||l<0)return null;var p=e.charCodeAt(a-1);if(!(p>=we&&p<=Ae||p>=Ze&&p<=lt||p>=Fe&&p<=De)||a<=l+1)return null;for(var d=-1,m=l-1;m>=o;m--)if(e.charCodeAt(m)===vr){d=m;break}for(var k=d>=0?d+1:o,m=k;m<a;m++)if(e.charCodeAt(m)===gt)return null;var v=e.slice(t,a);return{node:{type:ne.link,target:`mailto:${v}`,title:void 0,children:[{type:ne.text,text:v}]},end:a}}function Od(e){for(var t=0;t<e.length;t++)if(e[t].type===ne.link||"children"in e[t]&&Array.isArray(e[t].children)&&Od(e[t].children))return!0;return!1}function Fl(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+=Fl(a.children,t):!t&&a.type===ne.image&&(r+=a.alt||"")}return r}function _d(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=e$(r(Fl(n.children,!0)),t)}if("children"in a){var s=a.children;Array.isArray(s)&&_d(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++)_d(o[l],t,r)}}function bi(e){return{type:ne.text,text:e}}function w$(e,t,r){var i=t+1;if(i>=r)return-1;if(e.charCodeAt(i)===gr){i++;var a=i<r&&(e.charCodeAt(i)===Pk||e.charCodeAt(i)===Ik);a&&i++;for(var n=i,s=a?6:7;i<r&&i-n<=s;){var o=e.charCodeAt(i),l=o>=Fe&&o<=De||a&&(o>=we&&o<=od||o>=Ze&&o<=fi);if(!l)break;i++}return i===n||i-n>s?-1:i<r&&e.charCodeAt(i)===Sl?i+1:-1}for(var u=i;i<r&&i-u<48;){var c=e.charCodeAt(i);if(c>=we&&c<=Ae||c>=Ze&&c<=lt||c>=Fe&&c<=De){i++;continue}break}return i===u?-1:i<r&&e.charCodeAt(i)===Sl?i+1:-1}function S$(e,t,r,i,a){if(e.charCodeAt(t)!==it)return null;var n=t+1;if(n>=r)return null;var s=e.charCodeAt(n);if(s===Kt&&n+1<r&&e.charCodeAt(n+1)===_e&&n+2<r&&e.charCodeAt(n+2)===_e){var o=n+3;if(o<r&&e.charCodeAt(o)===Ne)return{node:{type:ne.htmlComment,text:"",s:!0},end:o+1};if(o+1<r&&e.charCodeAt(o)===_e&&e.charCodeAt(o+1)===Ne)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===ra){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===Kt&&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>=we&&c<=Ae){var p=e.indexOf(">",n+2);return p!==-1&&p<r?{node:{type:ne.htmlSelfClosing,tag:`!${e.slice(n+1,p)}`,attrs:{},m:e.slice(t,p+1),a:!1},end:p+1}:null}}if(s===bt){var d=n+1;if(d>=r)return null;var m=e.charCodeAt(d);if(!(m>=we&&m<=Ae||m>=Ze&&m<=lt))return null;for(d++;d<r;){var k=e.charCodeAt(d);if(k>=we&&k<=Ae||k>=Ze&&k<=lt||k>=Fe&&k<=De||k===_e)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)===Ne){var v=e.slice(n+1,d).trim();return{node:{type:ne.htmlSelfClosing,tag:v,attrs:{},h:e.slice(t,d+1),a:!0},end:d+1}}return null}if(!(s>=we&&s<=Ae||s>=Ze&&s<=lt))return null;var g=Kr(e,t);if(!g)return null;var b=g.tag,w=b.toLowerCase(),E=g.n;if(E||ms(b))return{node:{type:ne.htmlSelfClosing,tag:b,attrs:Wr(g.attrs,b,a),m:g.q?hd(g):e.slice(t,g.end),a:!1},end:g.end};var h=hs.has(w),y=bd(e.slice(0,r),g.end,b);if(y===-1)return{node:{type:ne.htmlSelfClosing,tag:b,attrs:Wr(g.attrs,b,a),m:g.q?hd(g):e.slice(t,g.end),a:!1},end:g.end};var C=s$(e,`</${w}`,y),x=e.slice(g.end,C);if(h){var _=ar(x);return{node:{type:ne.htmlBlock,tag:b,attrs:Wr(g.attrs,b,a),b:g.g+g.b,children:[],e:_||void 0,h:e.slice(C,y),text:_,c:!0,a:!1},end:y}}var S=[],A=x.trim();if(A){var{inAnchor:O,inline:F,k:T}=i;w==="a"&&(i.inAnchor=!0),i.k=!1;var j=A.indexOf(`
131
+ `)!==-1,CR=md.test(zl),ER=Hk.test(zl),AR=r.inline,xR=r.inHTML,OR=r.d;r.inHTML=!0,r.d=(r.d||0)+1,SR||CR||ER?(r.inline=!1,ks=$n($l,r,i)):(r.inline=!0,ks=la(zl,!1,r,i)),r.inline=AR,r.inHTML=xR,r.d=OR}var _R=Ye(e,ma),PR=e.slice(ma,_R).trim(),U1=PR?ma:Le(e,ma),B1=Ud?e.slice(n,ma):e.slice(n,U1);return{node:{type:ne.htmlBlock,tag:Bn,attrs:Wr(Rt.attrs,Bn,i),b:Rt.g+Rt.b,children:ks,j:ar(B1),text:Ud?$l:B1,c:!0,a:!1},end:U1}}var ws=Zk(e,Rt.end),IR=ws<e.length?Le(e,ws):ws,Bd=e.slice(Rt.end,ws);if(Bd.trim()){var{inline:TR,inHTML:NR,d:FR}=r;r.inline=!1,r.inHTML=!0,r.d=(r.d||0)+1,ks=$n(Bd,r,i),r.inline=TR,r.inHTML=NR,r.d=FR}var DR=e.slice(Rt.end,ws);return{node:{type:ne.htmlBlock,tag:Bn,attrs:Wr(Rt.attrs,Bn,i),b:Rt.g+Rt.b,children:ks,e:ar(DR),text:Bd,c:!0,a:!1},end:IR}}function l$(e,t){if(e.charCodeAt(t)!==it)return 0;var r=t+1,i=e.length;if(e.charCodeAt(r)===Kt&&e.charCodeAt(r+1)===_e&&e.charCodeAt(r+2)===_e)return 2;if(e.charCodeAt(r)===ra)return 3;if(e.charCodeAt(r)===Kt){var a=e.charCodeAt(r+1);if(a>=we&&a<=Ae)return 4;if(e.slice(r+1,r+8)==="[CDATA[")return 5}for(var n=e.charCodeAt(r)===bt,s=n?r+1:r,o=s;o<i;){var l=e.charCodeAt(o);if(l>=we&&l<=Ae||l>=Ze&&l<=lt||l>=Fe&&l<=De||l===_e)o++;else break}if(o===s)return 0;var u=e.slice(s,o);if(hs.has(u.toLowerCase())){if(n)return 0;var c=e.charCodeAt(o);return c===se||c===le||c===Ne||c===fe||o>=i?1:0}if(_l.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)===Ne?6:0}var p=o<i?e.charCodeAt(o):-1;return p===se||p===le||p===Ne||p===fe||p===bt||p===-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)===Ne){var m=Ye(e,t),k=e.slice(d+1,m).trim();if(k==="")return 7}}else{var v=Ye(e,t),g=Kr(e,t);if(g&&g.end<=v){var b=e.slice(g.end,v).trim();if(b==="")return 7}}return 0}function o1(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)===Ft&&i++,a>i&&e.charCodeAt(a-1)===Ft&&(a-2<i||e.charCodeAt(a-2)!==Nt)&&a--;for(var n=[],s=i,o=!1,l=[],u=i;u<a;){var c=e.charCodeAt(u);if(c===Nt&&u+1<a){e.charCodeAt(u+1)===Ft?(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 p=!1;u<a&&!p;){for(var d=0;u<a&&e.charCodeAt(u)===Je;)d++,u++;d===f?p=!0:d===0&&u++}continue}if(c===Ft){var m=o?(l.push(e.slice(s,u)),l.join("")):e.slice(s,u);n.push(m.trim()),u++,s=u,o=!1,l=[];continue}u++}var k=o?(l.push(e.slice(s,a)),l.join("")):e.slice(s,a);return n.push(k.trim()),n.map(v=>{var g=v.indexOf("\\|")===-1?v:v.replace(/\\\|/g,"|");return g?la(g,!1,t,r):[]})}function l1(e,t,r,i){let a=Ye(e,t);var n=e.indexOf("|",t);if(n<0||n>=a)return null;let s=Le(e,a);if(s>=e.length)return null;let o=Ye(e,s);if(!Gk(e,s,o))return null;let l=e.slice(t,a),u=e.slice(s,o);for(var c=[],f=0,p=u.length;f<p&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;for(f<p&&u.charCodeAt(f)===Ft&&f++;f<p;){for(;f<p&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;if(f>=p||u.charCodeAt(f)===Ft)break;var d=u.charCodeAt(f)===$t;for(d&&f++;f<p&&u.charCodeAt(f)===_e;)f++;var m=f<p&&u.charCodeAt(f)===$t;for(m&&f++,c.push(d&&m?"center":m?"right":d?"left":null);f<p&&(u.charCodeAt(f)===se||u.charCodeAt(f)===le);)f++;f<p&&u.charCodeAt(f)===Ft&&f++}let k=o1(l,r,i);if(c.length!==k.length)return null;let v=[],g=Le(e,o);for(;g<e.length;){let C=Ye(e,g),x=e.slice(g,C);if(Gt(e,g,C))break;if(Et(e,g,C),Xe<4){var b=e.charCodeAt(g+He);if(b===Ne||b===gr||(b===_e||b===wt||b===gt)&&jn(e,g))break;if(b===Je||b===Pt){for(var w=g+He,E=0;w<C&&e.charCodeAt(w)===b;)E++,w++;if(E>=3)break}}v.push(o1(x,r,i)),g=Le(e,C)}if(i.optimizeForStreaming&&v.length===0)return null;for(var h=k.length,y=0;y<v.length;y++)if(v[y].length<h)for(;v[y].length<h;)v[y].push([]);else v[y].length>h&&(v[y].length=h);return{node:{type:ne.table,header:k,cells:v,align:c},end:g}}function u$(e,t,r){var i=Ye(e,t);if(Et(e,t,i),Xe>3)return null;var a=t+He;if(e.charCodeAt(a)!==vt)return null;if(a+1<e.length&&e.charCodeAt(a+1)===cn){var n=c$(e,a,r);return n||null}r.refs||(r.refs={});var s=Yk(e,a,r.refs);return s===null?null:{node:{type:ne.refCollection},end:s}}function c$(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)!==Ir;){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)!==$t)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(`
132
+ `,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(Et(e,u,c),Xe>=2&&!Gt(e,u,c))l+=`
133
+ ${e.slice(u,c)}`,u=Le(e,c);else if(Gt(e,u,c)){var f=Le(e,c);if(f<i){var p=Ye(e,f);if(Et(e,f,p),Xe>=2){l+=`
134
+ `,u=Le(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 f$(e,t,r,i){let a=t,n=0,s=0,o=-1;for(;a<e.length;){let F=o>=0?o:Ye(e,a);if(o=-1,Gt(e,a,F))break;if(Et(e,a,F),Xe<4&&s>0&&!r.l){let j=e.charCodeAt(a+He);if(j===yr||j===_e){let q=a+He;for(;q<F&&e.charCodeAt(q)===j;)q++;for(;q<F&&(e.charCodeAt(q)===se||e.charCodeAt(q)===le);)q++;if(q>=F){n=j===yr?1:2,a=Le(e,F);break}}}s=F;let T=Le(e,F);if(T<e.length){if(e.charCodeAt(T)===cd){var l=Ye(e,T);a=Le(e,l),s=l;continue}let j=Ye(e,T);if(o=j,Et(e,T,j),Xe<4){let q=e.charCodeAt(T+He);if(q===Ne){a=T;break}if(q===gr){for(var u=T+He,c=0;u<j&&e.charCodeAt(u)===gr&&c<=6;)c++,u++;if(c>=1&&c<=6&&(u>=j||e.charCodeAt(u)===se||e.charCodeAt(u)===le)){a=T;break}}if(q===Je||q===Pt){for(var f=T+He,p=0;f<j&&e.charCodeAt(f)===q;)p++,f++;if(p>=3){a=T;break}}if(q===it){var d=T+He+1,m=d<j?e.charCodeAt(d):0,k=m===Kt||m===ra;if(!k&&m===bt){for(var v=d+1,g=v;g<j&&(e.charCodeAt(g)>=we&&e.charCodeAt(g)<=Ae||e.charCodeAt(g)>=Ze&&e.charCodeAt(g)<=lt||e.charCodeAt(g)>=Fe&&e.charCodeAt(g)<=De||e.charCodeAt(g)===_e);)g++;g>v&&(k=_l.has(e.slice(v,g).toLowerCase()))}else if(!k){for(var b=d;b<j&&(e.charCodeAt(b)>=we&&e.charCodeAt(b)<=Ae||e.charCodeAt(b)>=Ze&&e.charCodeAt(b)<=lt||e.charCodeAt(b)>=Fe&&e.charCodeAt(b)<=De||e.charCodeAt(b)===_e);)b++;if(b>d){var w=e.slice(d,b).toLowerCase();k=_l.has(w)||hs.has(w)}}if(k&&s1(e,T,r,i)){a=T;break}}if(q===_e||q===wt||q===Nn){let J=T+He+1;if(J<j&&(e.charCodeAt(J)===se||e.charCodeAt(J)===le)){var E=gs(e,J,j);if(E<j&&!jn(e,T)){a=T;break}}}if(q>=Fe&&q<=De){let J=T+He;for(;J<j&&e.charCodeAt(J)>=Fe&&e.charCodeAt(J)<=De;)J++;if(J<j&&(e.charCodeAt(J)===vr||e.charCodeAt(J)===Nr)&&J-(T+He)===1&&e.charCodeAt(T+He)===49){var h=J+1;if(h<j&&(e.charCodeAt(h)===se||e.charCodeAt(h)===le)){var y=gs(e,h,j);if(y<j){a=T;break}}}}if(q===Ft){let J=Le(e,j);if(J<e.length){let Y=Ye(e,J);if(Gk(e,J,Y)){a=T;break}}}if((q===_e||q===wt||q===gt)&&jn(e,T)){if(q!==_e){a=T;break}let J=T+He;for(;J<j&&e.charCodeAt(J)===_e;)J++;for(;J<j&&(e.charCodeAt(J)===se||e.charCodeAt(J)===le);)J++;if(J<j){a=T;break}}}}a=Le(e,F)}for(var C=n?s:a;C>t&&(e.charCodeAt(C-1)===fe||e.charCodeAt(C-1)===Tn||e.charCodeAt(C-1)===se||e.charCodeAt(C-1)===le);)C--;for(var x=t;x<C&&(e.charCodeAt(x)===se||e.charCodeAt(x)===le);)x++;if(x>=C)return null;for(var _=!1,S=x;S<C;S++)if(e.charCodeAt(S)===cd){_=!0;break}var A=_?e.slice(x,C).replace(/\u001E/g,""):e.slice(x,C);if(!A)return null;let O=la(A,!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 la(e,t,r,i){var a=r.t;if(!a){var n=r.k;r.k=t;var s=Gr(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 d$(e,t,r){if(e.charCodeAt(t)!==Je)return null;let i=Mn(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return null;let s=Mn(e,n,r,96);if(s===i){let o=e.slice(t+i,n);return o.indexOf(`
135
+ `)!==-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 kd(e,t,r){if(e.charCodeAt(t)!==Je)return t;let i=Mn(e,t,r,96),a=t+i;for(;a<r;){let n=e.indexOf("`",a);if(n<0||n>=r)return t;let s=Mn(e,n,r,96);if(s===i)return n+s;a=n+s}return t}function p$(e,t,r){if(e.charCodeAt(t)!==it)return t;if(t+1<r&&e.charCodeAt(t+1)===bt){let u=t+2;for(;u<r&&e.charCodeAt(u)!==Ne;)u++;return u<r?u+1:t}if(t+3<r&&e.charCodeAt(t+1)===Kt&&e.charCodeAt(t+2)===_e&&e.charCodeAt(t+3)===_e){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>=we&&u<=Ae||u>=Ze&&u<=lt||u>=Fe&&u<=De||u===_e)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===Ne){i++;break}if(u===bt&&i+1<r&&e.charCodeAt(i+1)===Ne){i+=2,s=!0;break}if(u===mi||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||ms(n))return i;let l=1;for(;i<r&&l>0;)if(e.charCodeAt(i)===it)if(i+1<r&&e.charCodeAt(i+1)===bt){let u=i+2,c=u;for(;c<r&&(e.charCodeAt(c)>=we&&e.charCodeAt(c)<=Ae||e.charCodeAt(c)>=Ze&&e.charCodeAt(c)<=lt);)c++;if(e.slice(u,c).toLowerCase()===n){for(;c<r&&e.charCodeAt(c)!==Ne;)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)>=we&&e.charCodeAt(c)<=Ae||e.charCodeAt(c)>=Ze&&e.charCodeAt(c)<=lt);)c++;e.slice(u,c).toLowerCase()===n&&l++,i++}else i++;return i}function m$(e,t,r,i,a){if(e.charCodeAt(t)!==Pt||t+1>=r||e.charCodeAt(t+1)!==Pt)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===Je){let o=kd(e,n,r);if(o>n){n=o;continue}}if(s===Pt&&e.charCodeAt(n+1)===Pt){let o=e.slice(t+2,n),l=Gr(o,0,o.length,i,a);return{node:{type:ne.textFormatted,tag:"del",children:l},end:n+2}}s===Nt&&n+1<r&&n++,n++}return null}function h$(e,t,r,i,a){if(e.charCodeAt(t)!==yr||t+1>=r||e.charCodeAt(t+1)!==yr)return null;let n=t+2;for(;n+1<r;){let s=e.charCodeAt(n);if(s===Je){let o=kd(e,n,r);if(o>n){n=o;continue}}if(s===yr&&e.charCodeAt(n+1)===yr&&n>t+2){let o=e.slice(t+2,n),l=Gr(o,0,o.length,i,a);return{node:{type:ne.textFormatted,tag:"mark",children:l},end:n+2}}s===Nt&&n+1<r&&n++,n++}return null}function u1(e,t,r){return e<Cl?!!(gd(e)&na):Oq.test(t[r])}function c1(e,t,r){return e<Cl?!!(gd(e)&yi):_q.test(t[r])}function g$(e,t,r){var i=e.charCodeAt(t);if(i!==wt&&i!==gt)return null;var a=Mn(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=c1(n,e,t-1),l=c1(s,e,t+a),u=t>0?u1(n,e,t-1):!1,c=t+a<r?u1(s,e,t+a):!1,f=!l&&(!c||o||u),p=!o&&(!u||l||c),d,m;return i===wt?(d=f,m=p):(d=f&&(!p||u),m=p&&(!f||c)),{len:a,canOpen:d,canClose:m}}function y$(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 p=[],d=0;d<12;d++)p[d]=-1;for(var m=0;m<t.length;){var k=t[m];if(!(k.active&&k.canClose)){m++;continue}for(var v=k.ch===wt?0:1,g=v*6+k.len%3*2+(k.canOpen?1:0),b=p[g]===void 0?-1:p[g],w=-1,E=m-1;E>b;E--){var h=t[E];if(!(!h.active||h.ch!==k.ch||!h.canOpen)&&!((k.canOpen||h.canClose)&&(h.len+k.len)%3===0&&h.len%3!==0)){w=E;break}}if(w<0){p[g]=m-1,!k.canOpen&&(k.active=!1),m++;continue}var y=t[w],C=y.len>=2&&k.len>=2,x=C?2:1;y.len-=x,k.len-=x;var _=c[w],S=c[m],A=_.node,O=S.node;A.text=A.text.slice(0,A.text.length-x),O.text=O.text.slice(x);for(var F=[],T=_.next;T&&T!==S;)F.push(T.node),T=T.next;var j={type:ne.textFormatted,tag:C?"strong":"em",children:F},q={node:j,prev:_,next:S};_.next=q,S.prev=q;for(var J=w+1;J<m;J++)t[J].active=!1;if(y.len===0&&(y.active=!1,A.text==="")){var Y=_.prev;q.prev=Y,Y?Y.next=q:s=q}if(k.len===0){if(k.active=!1,O.text===""){var X=S.next;q.next=X,X&&(X.prev=q)}}else continue;m++}for(var P=0,M=s;M;){var B=M.node;if(B.type===ne.text){var I=B;if(I.text===""){M=M.next;continue}if(P>0&&e[P-1].type===ne.text){e[P-1].text+=I.text,M=M.next;continue}}e[P++]=B,M=M.next}e.length=P}}function Il(e,t,r,i){return t(e,r,i)===null?null:e}var f1=0,wd=0,d1=0,Sd=0,p1=0,Cd=0,Ed=0,br=0;function v$(){return Ed===2147483647&&(wd=0,Sd=0,Cd=0,Tl=0,Ed=0),++Ed}var Ad=null,Tl=0,Nl=[],xd=256;function m1(e,t,r,i,a){var H;let n=e.charCodeAt(t)===Kt,s=n?t+1:t;if(e.charCodeAt(s)!==vt||Sd===br&&s>=d1)return null;var o=Tl===br?Ad: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 d1=s,Sd=br,null;u=s+1;var f=0;Nl[f++]=s;for(var p=r-s>=xd;u<r&&f>0;){var d=e.charCodeAt(u);if(d===Nt&&u+1<r){u+=2;continue}if(d===Je){var m=kd(e,u,r);if(m>u){u=m;continue}}if(d===it){var k=h1(e,u,r);if(k){u=k.end;continue}var v=p$(e,u,r);if(v>u){u=v;continue}}if(d===vt)Nl[f++]=u;else if(d===Ir){var g=Nl[--f];o===null&&p&&u-s>=xd&&(o=Ad=new Int32Array(r),Tl=br),o!==null&&(o[g]=u+1)}u++}if(f>0){if(o===null&&p&&u-s>=xd&&(o=Ad=new Int32Array(r),Tl=br),o!==null)for(;f>0;)o[Nl[--f]]=-1;return null}}var b=u-1,w=e.slice(s+1,b),E=u<r?e.charCodeAt(u):0,h=!1;if(E===Tr){var y=!0;for(u++;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;var C="",x=u;if(u<r&&e.charCodeAt(u)===it){for(u++,x=u;x<r&&e.charCodeAt(x)!==Ne;){if(e.charCodeAt(x)===Nt&&x+1<r){x+=2;continue}if(e.charCodeAt(x)===fe){y=!1;break}x++}y&&(x>=r||e.charCodeAt(x)!==Ne)&&(y=!1),y&&(C=e.slice(u,x),x++)}else if(y){var _=wd===br?f1:-1;if(_>=0&&u>=_)y=!1;else{for(var S=0,A=!1;x<r;){var O=e.charCodeAt(x);if(O===Nt&&x+1<r){x+=2;continue}if(O===Tr)S++;else if(O===Nr){if(A=!0,S===0)break;S--}else if(O===se||O===fe)break;x++}x>=r&&!A&&(_<0||u<_)&&(f1=u,wd=br),C=e.slice(u,x)}}if(y){for(u=x;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;var F;if(u<r){var T=e.charCodeAt(u);if(T===mi||T===pi||T===Tr){var j=T===Tr?41:T;u++;for(var q=u;u<r&&e.charCodeAt(u)!==j;)e.charCodeAt(u)===Nt&&u+1<r&&u++,u++;u>=r?y=!1:(F=e.slice(q,u),u++)}}if(y){for(;u<r&&(e.charCodeAt(u)===se||e.charCodeAt(u)===fe);)u++;(u>=r||e.charCodeAt(u)!==Nr)&&(y=!1)}}if(y){if(u++,C=Fn(sa(C)),F!==void 0&&(F=Fn(sa(F))),n){var J=Gr(w,0,w.length,i,a),Y=Fl(J);return{node:{type:ne.image,target:Il(C,(a==null?void 0:a.sanitizer)||fn,"img","src"),alt:Y,title:F},end:u}}var X=i.inAnchor;i.inAnchor=!0;var R=X?[{type:ne.text,text:w}]:Gr(w,0,w.length,i,a);return i.inAnchor=X,!i.inAnchor&&Od(R)?null:{node:{type:ne.link,target:Il(C,(a==null?void 0:a.sanitizer)||fn,"a","href"),title:F,children:R},end:u}}u=b+1,h=!0}var P="",M=u;if(!h&&E===vt){var B=u+1;M=B;for(var I=!1;M<r&&e.charCodeAt(M)!==Ir;){if(e.charCodeAt(M)===Nt&&M+1<r){M+=2;continue}if(e.charCodeAt(M)===vt){I=!0;break}M++}if(I||M>=r)return null;var D=e.slice(B,M);if(D.trim())P=xl(D);else{if(Xk(w))return null;P=xl(w)}M+=1}else{if(Xk(w))return null;P=xl(w)}var L=(H=i.refs)==null?void 0:H[P];if(!L)return null;if(n)return{node:{type:ne.image,target:Il(L.target,(a==null?void 0:a.sanitizer)||fn,"img","src"),alt:Fl(Gr(w,0,w.length,i,a)),title:L.title},end:M};var U=i.inAnchor;i.inAnchor=!0;var R=U?[{type:ne.text,text:w}]:Gr(w,0,w.length,i,a);return i.inAnchor=U,!i.inAnchor&&Od(R)?null:{node:{type:ne.link,target:Il(L.target,(a==null?void 0:a.sanitizer)||fn,"a","href"),title:L.title,children:R},end:M}}function h1(e,t,r){if(e.charCodeAt(t)!==it)return null;for(var i=t+1;i<r;){var a=e.charCodeAt(i);if(a===Ne)break;if(a===se||a===fe||a===Tn||a===it)return null;i++}if(i>=r||e.charCodeAt(i)!==Ne)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 b$(e,t,r,i){if(e.charCodeAt(t)!==vt||t+1>=r||e.charCodeAt(t+1)!==cn||Cd===br&&t>=p1)return null;let a=t+2;for(;a<r&&e.charCodeAt(a)!==Ir&&e.charCodeAt(a)!==fe;)a++;if(a>=r)return p1=t,Cd=br,null;if(e.charCodeAt(a)!==Ir)return null;let n=e.slice(t+2,a);return n?{node:{type:ne.footnoteReference,target:`#${gi(n)}`,text:n},end:a+1}:null}function k$(e,t,r,i){if(i.disableBareUrls)return null;var a="",n=!1,s=e.charCodeAt(t);if(s===wl||s===72?t+8<=r&&e.charCodeAt(t+1)===ta&&e.charCodeAt(t+2)===ta&&e.charCodeAt(t+3)===ld&&(e.charCodeAt(t+4)===Pk&&e.charCodeAt(t+5)===$t&&e.charCodeAt(t+6)===bt&&e.charCodeAt(t+7)===bt?a="https://":e.charCodeAt(t+4)===$t&&e.charCodeAt(t+5)===bt&&e.charCodeAt(t+6)===bt&&(a="http://")):s===fi||s===70?t+6<=r&&e.charCodeAt(t+1)===ta&&e.charCodeAt(t+2)===ld&&e.charCodeAt(t+3)===$t&&e.charCodeAt(t+4)===bt&&e.charCodeAt(t+5)===bt&&(a="ftp://"):(s===di||s===87)&&t+4<=r&&e.charCodeAt(t+1)===di&&e.charCodeAt(t+2)===di&&e.charCodeAt(t+3)===vr&&(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===Tn||y===it||y===Ne)break;o++}for(var l=0,u=0,c=t;c<o;c++){var f=e.charCodeAt(c);f===Tr?l++:f===Nr&&u++}let p=o;for(;p>t+a.length;){let y=e.charCodeAt(p-1);if(y===vr||y===mq||y===$t||y===Kt||y===ra||y===Nr||y===wt||y===gt||y===Pt){if(y===Nr){if(l>=u)break;u--}p--}else if(y===Sl){for(var d=p-2;d>t&&(e.charCodeAt(d)>=we&&e.charCodeAt(d)<=Ae||e.charCodeAt(d)>=Ze&&e.charCodeAt(d)<=lt||e.charCodeAt(d)>=Fe&&e.charCodeAt(d)<=De);)d--;d>=t&&e.charCodeAt(d)===kl?p=d:p--}else break}if(p<=t+a.length)return null;var m=t+(n?4:a.length),k=e.indexOf("/",m);if((k<0||k>p)&&(k=p),n&&e.indexOf(".",m)===-1)return null;for(var v=-1,g=-1,b=k-1;b>=m;b--)if(e.charCodeAt(b)===vr)if(v<0)v=b;else{g=b;break}for(var w=g>=0?g+1:m,b=w;b<k;b++)if(e.charCodeAt(b)===gt)return null;var E=e.slice(t,p),h=n?`http://${E}`:E;return{node:{type:ne.link,target:h,title:void 0,children:[{type:ne.text,text:E}]},end:p}}function w$(e,t,r,i){if(i.disableBareUrls)return null;for(var a=t,n=a;a<r;){var s=e.charCodeAt(a);if(s>=we&&s<=Ae||s>=Ze&&s<=lt||s>=Fe&&s<=De||s===vr||s===Kt||s===gr||s===36||s===sd||s===kl||s===pi||s===wt||s===Nn||s===bt||s===yr||s===ra||s===cn||s===gt||s===Je||s===hi||s===Ft||s===ud||s===Pt||s===_e)a++;else break}if(a===n||a>=r||e.charCodeAt(a)!==_k)return null;a++;for(var o=a,l=-1,u=a;a<r;){var s=e.charCodeAt(a);if(s>=we&&s<=Ae||s>=Ze&&s<=lt||s>=Fe&&s<=De)a++;else if((s===_e||s===gt)&&a>o)a++;else if(s===vr){if(a===o)break;var c=e.charCodeAt(a-1);if(c===_e||c===gt||a-u>63)break;if(a+1<r){var f=e.charCodeAt(a+1);if(f>=we&&f<=Ae||f>=Ze&&f<=lt||f>=Fe&&f<=De)l=a,u=a+1,a++;else break}else break}else break}if(a-u>63||l<0)return null;var p=e.charCodeAt(a-1);if(!(p>=we&&p<=Ae||p>=Ze&&p<=lt||p>=Fe&&p<=De)||a<=l+1)return null;for(var d=-1,m=l-1;m>=o;m--)if(e.charCodeAt(m)===vr){d=m;break}for(var k=d>=0?d+1:o,m=k;m<a;m++)if(e.charCodeAt(m)===gt)return null;var v=e.slice(t,a);return{node:{type:ne.link,target:`mailto:${v}`,title:void 0,children:[{type:ne.text,text:v}]},end:a}}function Od(e){for(var t=0;t<e.length;t++)if(e[t].type===ne.link||"children"in e[t]&&Array.isArray(e[t].children)&&Od(e[t].children))return!0;return!1}function Fl(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+=Fl(a.children,t):!t&&a.type===ne.image&&(r+=a.alt||"")}return r}function _d(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=t$(r(Fl(n.children,!0)),t)}if("children"in a){var s=a.children;Array.isArray(s)&&_d(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++)_d(o[l],t,r)}}function bi(e){return{type:ne.text,text:e}}function S$(e,t,r){var i=t+1;if(i>=r)return-1;if(e.charCodeAt(i)===gr){i++;var a=i<r&&(e.charCodeAt(i)===Ik||e.charCodeAt(i)===Tk);a&&i++;for(var n=i,s=a?6:7;i<r&&i-n<=s;){var o=e.charCodeAt(i),l=o>=Fe&&o<=De||a&&(o>=we&&o<=od||o>=Ze&&o<=fi);if(!l)break;i++}return i===n||i-n>s?-1:i<r&&e.charCodeAt(i)===Sl?i+1:-1}for(var u=i;i<r&&i-u<48;){var c=e.charCodeAt(i);if(c>=we&&c<=Ae||c>=Ze&&c<=lt||c>=Fe&&c<=De){i++;continue}break}return i===u?-1:i<r&&e.charCodeAt(i)===Sl?i+1:-1}function C$(e,t,r,i,a){if(e.charCodeAt(t)!==it)return null;var n=t+1;if(n>=r)return null;var s=e.charCodeAt(n);if(s===Kt&&n+1<r&&e.charCodeAt(n+1)===_e&&n+2<r&&e.charCodeAt(n+2)===_e){var o=n+3;if(o<r&&e.charCodeAt(o)===Ne)return{node:{type:ne.htmlComment,text:"",s:!0},end:o+1};if(o+1<r&&e.charCodeAt(o)===_e&&e.charCodeAt(o+1)===Ne)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===ra){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===Kt&&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>=we&&c<=Ae){var p=e.indexOf(">",n+2);return p!==-1&&p<r?{node:{type:ne.htmlSelfClosing,tag:`!${e.slice(n+1,p)}`,attrs:{},m:e.slice(t,p+1),a:!1},end:p+1}:null}}if(s===bt){var d=n+1;if(d>=r)return null;var m=e.charCodeAt(d);if(!(m>=we&&m<=Ae||m>=Ze&&m<=lt))return null;for(d++;d<r;){var k=e.charCodeAt(d);if(k>=we&&k<=Ae||k>=Ze&&k<=lt||k>=Fe&&k<=De||k===_e)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)===Ne){var v=e.slice(n+1,d).trim();return{node:{type:ne.htmlSelfClosing,tag:v,attrs:{},h:e.slice(t,d+1),a:!0},end:d+1}}return null}if(!(s>=we&&s<=Ae||s>=Ze&&s<=lt))return null;var g=Kr(e,t);if(!g)return null;var b=g.tag,w=b.toLowerCase(),E=g.n;if(E||ms(b))return{node:{type:ne.htmlSelfClosing,tag:b,attrs:Wr(g.attrs,b,a),m:g.q?hd(g):e.slice(t,g.end),a:!1},end:g.end};var h=hs.has(w),y=bd(e.slice(0,r),g.end,b);if(y===-1)return{node:{type:ne.htmlSelfClosing,tag:b,attrs:Wr(g.attrs,b,a),m:g.q?hd(g):e.slice(t,g.end),a:!1},end:g.end};var C=o$(e,`</${w}`,y),x=e.slice(g.end,C);if(h){var _=ar(x);return{node:{type:ne.htmlBlock,tag:b,attrs:Wr(g.attrs,b,a),b:g.g+g.b,children:[],e:_||void 0,h:e.slice(C,y),text:_,c:!0,a:!1},end:y}}var S=[],A=x.trim();if(A){var{inAnchor:O,inline:F,k:T}=i;w==="a"&&(i.inAnchor=!0),i.k=!1;var j=A.indexOf(`
136
136
 
137
- `)!==-1||/^#{1,6}\s/.test(A);j?(i.inline=!1,S=$n(A,i,a)):S=Gr(A,0,A.length,i,a),i.inAnchor=O,i.inline=F,i.k=T}return{node:{type:ne.htmlBlock,tag:b,attrs:Wr(g.attrs,b,a),b:g.b,children:S,text:ar(x),c:!1,a:!1},end:y}}var C$=200,ys=0;function Gr(e,t,r,i,a){if(ys++,ys>C$)return ys--,[{type:ne.text,text:e.slice(t,r)}];var n=br;br=y$();let s=i;if(a.optimizeForStreaming){let ee=function(We,St){for(var xt=1,ct=St+1;ct<We.length;ct++){var Ct=We.charCodeAt(ct);if(Ct===vt)xt++;else if(Ct===Ir&&(xt--,xt===0))return ct}return-1},te=e.slice(t,r),he=te;for(var o=0,l=0,u=0,c=0,f=0,p=-1,d=-1,m=-1,k=-1,v=-1,g=0;g<te.length;g++){var b=te.charCodeAt(g);b===wt?g+1<te.length&&te.charCodeAt(g+1)===wt?(o++,p=g,g++):(l++,d=g):b===gt?g+1<te.length&&te.charCodeAt(g+1)===gt?(u++,m=g,g++):(c++,k=g):b===Pt&&g+1<te.length&&te.charCodeAt(g+1)===Pt&&(f++,v=g,g++)}var w=[];f%2===1&&v>=0&&w.push([v,2]),u%2===1&&m>=0&&w.push([m,2]),c%2===1&&k>=0&&w.push([k,1]),o%2===1&&p>=0&&w.push([p,2]),l%2===1&&d>=0&&w.push([d,1]),w.sort((We,St)=>St[0]-We[0]);for(var E=0;E<w.length;E++){var h=w[E][0],y=w[E][1];te=te.slice(0,h)+te.slice(h+y)}let ce=0,pt=-1;for(let We=0;We<te.length;We++)te.charCodeAt(We)===Ge&&(ce++,pt=We);if(ce%2===1&&pt!==-1){let We=!1,St=-1,xt=0;for(;xt<te.length;)te.charCodeAt(xt)===Ge&&(We?(We=!1,St=-1):(St=xt,We=!0)),xt++;We&&St!==-1&&(te=te.slice(0,St))}for(var C=!0;C;){C=!1;for(var x=-1,_=-1,S=-1,A=!1,O=0;O<te.length;O++){var F=te.charCodeAt(O);if(F===vt&&(O===0||te.charCodeAt(O-1)!==Nt)){var T=O>0&&te.charCodeAt(O-1)===Kt,j=T?O-1:O,q=ee(te,O);if(q===-1)x=j,A=T,_=O+1,S=te.length;else{var J=q+1;if(J>=te.length)x=j,A=T,_=O+1,S=q;else if(te.charCodeAt(J)===Tr){var Y=te.indexOf(")",J+1);Y===-1?(x=j,A=T,_=O+1,S=q,O=te.length):O=Y}else if(te.charCodeAt(J)===vt){var X=te.indexOf("]",J+1);X===-1?(x=j,A=T,_=O+1,S=q,O=te.length):O=X}else O=q}}}if(x>=0){var P=A?"":te.slice(_,S);te=te.slice(0,x)+P,C=!0}}let qe=te.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(qe&&qe.index!==void 0){var M=qe[0].length-qe[2].length,U=M>=2&&qe[0].charCodeAt(M-2)===bt;if(!U){for(var I=!1,D=0,L=0;L<qe.index;L++)te.charCodeAt(L)===Ge&&D++;if(I=D%2===1,!I){let We=qe[1];qn(te,`</${We}`,0)===-1&&(te=te.slice(0,qe.index)+qe[2])}}}te!==he&&(e=e.slice(0,t)+te,r=t+te.length)}let B=[];var R=[];let H=t;var G="",Z=a.disableAutoLink||a.disableBareUrls||s.inAnchor?-1:e.indexOf("@",t);for(Z>=r&&(Z=-1);t<r;){let ee=e.charCodeAt(t),te=null;if(ee===Ge){if(te=f$(e,t,r),!te){var z=Mn(e,t,r,Ge);t+=z-1}}else if(ee===wt||ee===gt){var $=h$(e,t,r);if($){if($.canOpen||$.canClose){(G||t>H)&&(B.push(bi(G+e.slice(H,t))),G="");var W=e.slice(t,t+$.len),K=bi(W);R.push({idx:B.length,ch:ee,len:$.len,canOpen:$.canOpen,canClose:$.canClose,active:!0}),B.push(K),t+=$.len,H=t;continue}t+=$.len-1}}else if(ee===Pt)te=p$(e,t,r,s,a);else if(ee===yr)te=m$(e,t,r,s,a);else if(ee===vt)t+1<r&&e.charCodeAt(t+1)===cn&&(te=v$(e,t,r)),te||(te=p1(e,t,r,s,a));else if(ee===Kt&&t+1<r&&e.charCodeAt(t+1)===vt)te=p1(e,t,r,s,a);else if(ee===it)te=m1(e,t,r),!(te||a.disableParsingRawHTML||a.ignoreHTMLBlocks)&&(te=S$(e,t,r,s,a));else if(ee===kl){var ie=w$(e,t,r);if(ie!==-1){var re=e.slice(t,ie),ue=Fn(re);if(ue!==re){G=G+e.slice(H,t)+ue,t=ie,H=ie;continue}}}else if((ee===wl||ee===di||ee===fi)&&!s.inAnchor&&!a.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==it)){var ye=t+1<r?e.charCodeAt(t+1):0;(ee===wl&&ye===ta||ee===fi&&ye===ta||ee===di&&ye===di)&&(te=b$(e,t,r,a))}if(!te&&Z>=0&&Z-t<=64&&!s.inAnchor&&!a.disableAutoLink&&!a.disableBareUrls&&(ee>=we&&ee<=Ae||ee>=Ze&&ee<=lt||ee>=Fe&&ee<=De)&&(te=k$(e,t,r,a),!te&&t>=Z&&(Z=e.indexOf("@",t+1),Z>=r&&(Z=-1))),ee===fe&&s.k){var Se=!1,ke=0;if(t>H&&e.charCodeAt(t-1)===Nt)Se=!0,ke=1;else{for(var Pe=0,de=t-1;de>=H&&e.charCodeAt(de)===se;)Pe++,de--;Pe>=2&&(Se=!0,ke=Pe)}if(Se){for((G||t-ke>H)&&(B.push(bi(G+e.slice(H,t-ke))),G=""),B.push({type:ne.breakLine}),t++;t<r&&e.charCodeAt(t)===se;)t++;H=t;continue}var Ke=t>H&&e.charCodeAt(t-1)===se,ut=t+1<r&&e.charCodeAt(t+1)===se;if(Ke||ut){for(var ve=t;ve>H&&e.charCodeAt(ve-1)===se;)ve--;for(G+=`${e.slice(H,ve)}
138
- `,t++;t<r&&e.charCodeAt(t)===se;)t++;H=t;continue}}if(te)(G||t>H)&&(B.push(bi(G+e.slice(H,t))),G=""),B.push(te.node),t=te.end,H=t;else{if(ee===Nt&&t+1<r){let he=e.charCodeAt(t+1);if(gd(he)&na){(G||t>H)&&(B.push(bi(G+e.slice(H,t))),G=""),B.push(bi(e[t+1])),t+=2,H=t;continue}}if(t++,Z<0||Z-t>64)for(;t<r&&!(Z>=0&&Z-t<=64);){var Q=e.charCodeAt(t);if(Q<Cl&&!Hk[Q])t++;else break}}}return(G||r>H)&&(B.push(bi(G+e.slice(H,r))),G=""),R.length>0&&g$(B,R),br=n,ys--,B}var E$=500;function $n(e,t,r){var i=t.o||0;if(i>E$)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)===Ft){for(var s=!1,o=n+1;o<a;o++){var l=e.charCodeAt(o);if(l!==se&&l!==le&&l!==Ft&&l!==$t&&l!==_e){s=!0;break}}for(var u=!1,c=!1,f=0,p=n,d=n-1;d>0;){for(var m=d;m>0&&e.charCodeAt(m-1)!==fe;)m--;if(e.charCodeAt(m)!==Ft)break;p=m;for(var k=!0,v=!1,g=m;g<d;g++){var b=e.charCodeAt(g);if(b===_e)v=!0;else if(b!==se&&b!==le&&b!==$t&&b!==Ft){k=!1;break}}k&&v?(u=!0,c=!0):c||f++,d=m-1}s?u||(e=e.slice(0,n).trimEnd()):e=u&&f>0?e.slice(0,n).trimEnd():e.slice(0,p).trimEnd()}for(var w=-1,E=-1,h=-1,y=!1,C=e.length-1;C>=0;C--)if(e.charCodeAt(C)===it){for(var x=C+1<e.length?e.charCodeAt(C+1):0,_=x>=we&&x<=Ae||x>=Ze&&x<=lt,S=x===bt&&C+2<e.length&&(e.charCodeAt(C+2)>=we&&e.charCodeAt(C+2)<=Ae||e.charCodeAt(C+2)>=Ze&&e.charCodeAt(C+2)<=lt),A=x===Kt||x===ra,O=e.length;O>C+1&&e.charCodeAt(O-1)===fe;)O--;var F=C+1>=O;if(_||S||A||F){var T=C+1;if((S||_)&&(T=C+2),_||S)for(;T<e.length;){var j=e.charCodeAt(T);if(j>=we&&j<=Ae||j>=Ze&&j<=lt||j>=Fe&&j<=De)T++;else break}for(var q=_||S?T:C+2;q<e.length&&e.charCodeAt(q)!==Ne;)q++;if(q>=e.length)w=C,y=!0;else if((_||S)&&e.charCodeAt(q-1)!==bt){for(var J=!1,Y=q+1;Y<e.length;Y++)if(e.charCodeAt(Y)===it){J=!0;break}J||(w=C,E=T,h=q+1)}}break}if(w>=0){for(var X=0,P=0;P<w;P++)e.charCodeAt(P)===Ge&&X++;if(X%2===0)if(y)e=e.slice(0,w);else{var M=e.slice(w+1,E);qn(e,`</${M}`,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 D=I,L=0;D<U&&e.charCodeAt(D)===se&&L<3;)D++,L++;if(I>0&&D<U&&r$(e,D,U)){for(var B=I-1,R=B;R>0&&e.charCodeAt(R-1)!==fe;)R--;Gt(e,R,B)||(e=e.slice(0,I).trimEnd())}}var H=e.length;if(H>0){for(var G=e.lastIndexOf(`
139
- `),Z=G===-1?0:G+1,z=H,$=Z,W=0;$<z&&e.charCodeAt($)===se&&W<3;)$++,W++;if($<z){var K=e.charCodeAt($),ie=!1;if(K===wt||K===_e||K===Nn){var re=$+1;if(re>=z||e.charCodeAt(re)===se||e.charCodeAt(re)===le){for(var ue=re;ue<z&&(e.charCodeAt(ue)===se||e.charCodeAt(ue)===le);)ue++;ue>=z&&(ie=!0)}}else if(K>=Fe&&K<=De){for(var ye=$;ye<z&&e.charCodeAt(ye)>=Fe&&e.charCodeAt(ye)<=De;)ye++;if(ye<z&&(e.charCodeAt(ye)===vr||e.charCodeAt(ye)===Nr)){var Se=ye+1;if(Se>=z||e.charCodeAt(Se)===se||e.charCodeAt(Se)===le){for(var ke=Se;ke<z&&(e.charCodeAt(ke)===se||e.charCodeAt(ke)===le);)ke++;ke>=z&&(ie=!0)}}}ie&&(e=e.slice(0,Z).trimEnd())}}}if(t.inline)return Gr(e,0,e.length,t,r);let Pe=[],de=0,Ke=e.length;if(de===0&&!r.disableFrontmatter&&e.startsWith("---")){let ce=bq(e);if(ce!=null&&ce.hasValidYaml){if(r.preserveFrontmatter!==!1){let pt=e.slice(0,ce.endPos).trimEnd();Pe.push({type:ne.frontmatter,text:pt})}de=ce.endPos}}for(;de<Ke;){for(var ut=e.indexOf(`
137
+ `)!==-1||/^#{1,6}\s/.test(A);j?(i.inline=!1,S=$n(A,i,a)):S=Gr(A,0,A.length,i,a),i.inAnchor=O,i.inline=F,i.k=T}return{node:{type:ne.htmlBlock,tag:b,attrs:Wr(g.attrs,b,a),b:g.b,children:S,text:ar(x),c:!1,a:!1},end:y}}var E$=200,ys=0;function Gr(e,t,r,i,a){if(ys++,ys>E$)return ys--,[{type:ne.text,text:e.slice(t,r)}];var n=br;br=v$();let s=i;if(a.optimizeForStreaming){let ee=function(We,St){for(var xt=1,ct=St+1;ct<We.length;ct++){var Ct=We.charCodeAt(ct);if(Ct===vt)xt++;else if(Ct===Ir&&(xt--,xt===0))return ct}return-1},te=e.slice(t,r),he=te;for(var o=0,l=0,u=0,c=0,f=0,p=-1,d=-1,m=-1,k=-1,v=-1,g=0;g<te.length;g++){var b=te.charCodeAt(g);b===wt?g+1<te.length&&te.charCodeAt(g+1)===wt?(o++,p=g,g++):(l++,d=g):b===gt?g+1<te.length&&te.charCodeAt(g+1)===gt?(u++,m=g,g++):(c++,k=g):b===Pt&&g+1<te.length&&te.charCodeAt(g+1)===Pt&&(f++,v=g,g++)}var w=[];f%2===1&&v>=0&&w.push([v,2]),u%2===1&&m>=0&&w.push([m,2]),c%2===1&&k>=0&&w.push([k,1]),o%2===1&&p>=0&&w.push([p,2]),l%2===1&&d>=0&&w.push([d,1]),w.sort((We,St)=>St[0]-We[0]);for(var E=0;E<w.length;E++){var h=w[E][0],y=w[E][1];te=te.slice(0,h)+te.slice(h+y)}let ce=0,pt=-1;for(let We=0;We<te.length;We++)te.charCodeAt(We)===Je&&(ce++,pt=We);if(ce%2===1&&pt!==-1){let We=!1,St=-1,xt=0;for(;xt<te.length;)te.charCodeAt(xt)===Je&&(We?(We=!1,St=-1):(St=xt,We=!0)),xt++;We&&St!==-1&&(te=te.slice(0,St))}for(var C=!0;C;){C=!1;for(var x=-1,_=-1,S=-1,A=!1,O=0;O<te.length;O++){var F=te.charCodeAt(O);if(F===vt&&(O===0||te.charCodeAt(O-1)!==Nt)){var T=O>0&&te.charCodeAt(O-1)===Kt,j=T?O-1:O,q=ee(te,O);if(q===-1)x=j,A=T,_=O+1,S=te.length;else{var J=q+1;if(J>=te.length)x=j,A=T,_=O+1,S=q;else if(te.charCodeAt(J)===Tr){var Y=te.indexOf(")",J+1);Y===-1?(x=j,A=T,_=O+1,S=q,O=te.length):O=Y}else if(te.charCodeAt(J)===vt){var X=te.indexOf("]",J+1);X===-1?(x=j,A=T,_=O+1,S=q,O=te.length):O=X}else O=q}}}if(x>=0){var P=A?"":te.slice(_,S);te=te.slice(0,x)+P,C=!0}}let qe=te.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(qe&&qe.index!==void 0){var M=qe[0].length-qe[2].length,B=M>=2&&qe[0].charCodeAt(M-2)===bt;if(!B){for(var I=!1,D=0,L=0;L<qe.index;L++)te.charCodeAt(L)===Je&&D++;if(I=D%2===1,!I){let We=qe[1];qn(te,`</${We}`,0)===-1&&(te=te.slice(0,qe.index)+qe[2])}}}te!==he&&(e=e.slice(0,t)+te,r=t+te.length)}let U=[];var R=[];let H=t;var G="",Z=a.disableAutoLink||a.disableBareUrls||s.inAnchor?-1:e.indexOf("@",t);for(Z>=r&&(Z=-1);t<r;){let ee=e.charCodeAt(t),te=null;if(ee===Je){if(te=d$(e,t,r),!te){var z=Mn(e,t,r,Je);t+=z-1}}else if(ee===wt||ee===gt){var $=g$(e,t,r);if($){if($.canOpen||$.canClose){(G||t>H)&&(U.push(bi(G+e.slice(H,t))),G="");var W=e.slice(t,t+$.len),K=bi(W);R.push({idx:U.length,ch:ee,len:$.len,canOpen:$.canOpen,canClose:$.canClose,active:!0}),U.push(K),t+=$.len,H=t;continue}t+=$.len-1}}else if(ee===Pt)te=m$(e,t,r,s,a);else if(ee===yr)te=h$(e,t,r,s,a);else if(ee===vt)t+1<r&&e.charCodeAt(t+1)===cn&&(te=b$(e,t,r)),te||(te=m1(e,t,r,s,a));else if(ee===Kt&&t+1<r&&e.charCodeAt(t+1)===vt)te=m1(e,t,r,s,a);else if(ee===it)te=h1(e,t,r),!(te||a.disableParsingRawHTML||a.ignoreHTMLBlocks)&&(te=C$(e,t,r,s,a));else if(ee===kl){var ie=S$(e,t,r);if(ie!==-1){var re=e.slice(t,ie),ue=Fn(re);if(ue!==re){G=G+e.slice(H,t)+ue,t=ie,H=ie;continue}}}else if((ee===wl||ee===di||ee===fi)&&!s.inAnchor&&!a.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==it)){var ye=t+1<r?e.charCodeAt(t+1):0;(ee===wl&&ye===ta||ee===fi&&ye===ta||ee===di&&ye===di)&&(te=k$(e,t,r,a))}if(!te&&Z>=0&&Z-t<=64&&!s.inAnchor&&!a.disableAutoLink&&!a.disableBareUrls&&(ee>=we&&ee<=Ae||ee>=Ze&&ee<=lt||ee>=Fe&&ee<=De)&&(te=w$(e,t,r,a),!te&&t>=Z&&(Z=e.indexOf("@",t+1),Z>=r&&(Z=-1))),ee===fe&&s.k){var Se=!1,ke=0;if(t>H&&e.charCodeAt(t-1)===Nt)Se=!0,ke=1;else{for(var Pe=0,de=t-1;de>=H&&e.charCodeAt(de)===se;)Pe++,de--;Pe>=2&&(Se=!0,ke=Pe)}if(Se){for((G||t-ke>H)&&(U.push(bi(G+e.slice(H,t-ke))),G=""),U.push({type:ne.breakLine}),t++;t<r&&e.charCodeAt(t)===se;)t++;H=t;continue}var Ke=t>H&&e.charCodeAt(t-1)===se,ut=t+1<r&&e.charCodeAt(t+1)===se;if(Ke||ut){for(var ve=t;ve>H&&e.charCodeAt(ve-1)===se;)ve--;for(G+=`${e.slice(H,ve)}
138
+ `,t++;t<r&&e.charCodeAt(t)===se;)t++;H=t;continue}}if(te)(G||t>H)&&(U.push(bi(G+e.slice(H,t))),G=""),U.push(te.node),t=te.end,H=t;else{if(ee===Nt&&t+1<r){let he=e.charCodeAt(t+1);if(gd(he)&na){(G||t>H)&&(U.push(bi(G+e.slice(H,t))),G=""),U.push(bi(e[t+1])),t+=2,H=t;continue}}if(t++,Z<0||Z-t>64)for(;t<r&&!(Z>=0&&Z-t<=64);){var Q=e.charCodeAt(t);if(Q<Cl&&!Kk[Q])t++;else break}}}return(G||r>H)&&(U.push(bi(G+e.slice(H,r))),G=""),R.length>0&&y$(U,R),br=n,ys--,U}var A$=500;function $n(e,t,r){var i=t.o||0;if(i>A$)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)===Ft){for(var s=!1,o=n+1;o<a;o++){var l=e.charCodeAt(o);if(l!==se&&l!==le&&l!==Ft&&l!==$t&&l!==_e){s=!0;break}}for(var u=!1,c=!1,f=0,p=n,d=n-1;d>0;){for(var m=d;m>0&&e.charCodeAt(m-1)!==fe;)m--;if(e.charCodeAt(m)!==Ft)break;p=m;for(var k=!0,v=!1,g=m;g<d;g++){var b=e.charCodeAt(g);if(b===_e)v=!0;else if(b!==se&&b!==le&&b!==$t&&b!==Ft){k=!1;break}}k&&v?(u=!0,c=!0):c||f++,d=m-1}s?u||(e=e.slice(0,n).trimEnd()):e=u&&f>0?e.slice(0,n).trimEnd():e.slice(0,p).trimEnd()}for(var w=-1,E=-1,h=-1,y=!1,C=e.length-1;C>=0;C--)if(e.charCodeAt(C)===it){for(var x=C+1<e.length?e.charCodeAt(C+1):0,_=x>=we&&x<=Ae||x>=Ze&&x<=lt,S=x===bt&&C+2<e.length&&(e.charCodeAt(C+2)>=we&&e.charCodeAt(C+2)<=Ae||e.charCodeAt(C+2)>=Ze&&e.charCodeAt(C+2)<=lt),A=x===Kt||x===ra,O=e.length;O>C+1&&e.charCodeAt(O-1)===fe;)O--;var F=C+1>=O;if(_||S||A||F){var T=C+1;if((S||_)&&(T=C+2),_||S)for(;T<e.length;){var j=e.charCodeAt(T);if(j>=we&&j<=Ae||j>=Ze&&j<=lt||j>=Fe&&j<=De)T++;else break}for(var q=_||S?T:C+2;q<e.length&&e.charCodeAt(q)!==Ne;)q++;if(q>=e.length)w=C,y=!0;else if((_||S)&&e.charCodeAt(q-1)!==bt){for(var J=!1,Y=q+1;Y<e.length;Y++)if(e.charCodeAt(Y)===it){J=!0;break}J||(w=C,E=T,h=q+1)}}break}if(w>=0){for(var X=0,P=0;P<w;P++)e.charCodeAt(P)===Je&&X++;if(X%2===0)if(y)e=e.slice(0,w);else{var M=e.slice(w+1,E);qn(e,`</${M}`,0)===-1&&(e=e.slice(0,w)+e.slice(h))}}for(var B=e.length;B>0&&e.charCodeAt(B-1)===fe;)B--;if(B>0){for(var I=B;I>0&&e.charCodeAt(I-1)!==fe;)I--;for(var D=I,L=0;D<B&&e.charCodeAt(D)===se&&L<3;)D++,L++;if(I>0&&D<B&&n$(e,D,B)){for(var U=I-1,R=U;R>0&&e.charCodeAt(R-1)!==fe;)R--;Gt(e,R,U)||(e=e.slice(0,I).trimEnd())}}var H=e.length;if(H>0){for(var G=e.lastIndexOf(`
139
+ `),Z=G===-1?0:G+1,z=H,$=Z,W=0;$<z&&e.charCodeAt($)===se&&W<3;)$++,W++;if($<z){var K=e.charCodeAt($),ie=!1;if(K===wt||K===_e||K===Nn){var re=$+1;if(re>=z||e.charCodeAt(re)===se||e.charCodeAt(re)===le){for(var ue=re;ue<z&&(e.charCodeAt(ue)===se||e.charCodeAt(ue)===le);)ue++;ue>=z&&(ie=!0)}}else if(K>=Fe&&K<=De){for(var ye=$;ye<z&&e.charCodeAt(ye)>=Fe&&e.charCodeAt(ye)<=De;)ye++;if(ye<z&&(e.charCodeAt(ye)===vr||e.charCodeAt(ye)===Nr)){var Se=ye+1;if(Se>=z||e.charCodeAt(Se)===se||e.charCodeAt(Se)===le){for(var ke=Se;ke<z&&(e.charCodeAt(ke)===se||e.charCodeAt(ke)===le);)ke++;ke>=z&&(ie=!0)}}}ie&&(e=e.slice(0,Z).trimEnd())}}}if(t.inline)return Gr(e,0,e.length,t,r);let Pe=[],de=0,Ke=e.length;if(de===0&&!r.disableFrontmatter&&e.startsWith("---")){let ce=kq(e);if(ce!=null&&ce.hasValidYaml){if(r.preserveFrontmatter!==!1){let pt=e.slice(0,ce.endPos).trimEnd();Pe.push({type:ne.frontmatter,text:pt})}de=ce.endPos}}for(;de<Ke;){for(var ut=e.indexOf(`
140
140
  `,de),ve=ut<0?Ke:ut;de<Ke&&Gt(e,de,ve);)de=ve<Ke?ve+1:ve,de<Ke&&(ut=e.indexOf(`
141
- `,de),ve=ut<0?Ke:ut);if(de>=Ke)break;var Q=e.charCodeAt(de)===cd;Et(e,de,ve);let ce=null;if(yd=e,vd=de,Ol=ve,!Q&&Ye>=4&&!t.inHTML)ce=i$(e,de);else if(!Q){let pt=de+He,qe=e.charCodeAt(pt);qe===gr?ce=t$(e,de,t,r):qe===Ne?ce=a$(e,de,t,r):qe===Ge||qe===Pt?ce=n$(e,de):qe===_e||qe===wt||qe===gt?(ce=jn(e,de),!ce&&(ce=i1(e,de,t,r))):qe===Nn||qe>=Fe&&qe<=De?ce=i1(e,de,t,r):qe===it?ce=a1(e,de,t,r):qe===Ft?ce=o1(e,de,t,r):qe===vt&&(ce=l$(e,de,t))}if(!ce){for(var ee=!1,te=de;te<ve;te++)if(e.charCodeAt(te)===Ft){ee=!0;break}ee&&(ce=o1(e,de,t,r))}if(ce||(ce=c$(e,de,t,r)),ce)ce.node.type!==ne.refCollection&&Pe.push(ce.node),de=ce.end;else{var he=e.indexOf(`
142
- `,de);de=he<0?Ke:he+1}}return t.o=i,Pe}function A$(e,t,r,i){var a=Kr(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(`
141
+ `,de),ve=ut<0?Ke:ut);if(de>=Ke)break;var Q=e.charCodeAt(de)===cd;Et(e,de,ve);let ce=null;if(yd=e,vd=de,Ol=ve,!Q&&Xe>=4&&!t.inHTML)ce=a$(e,de);else if(!Q){let pt=de+He,qe=e.charCodeAt(pt);qe===gr?ce=r$(e,de,t,r):qe===Ne?ce=s$(e,de,t,r):qe===Je||qe===Pt?ce=i$(e,de):qe===_e||qe===wt||qe===gt?(ce=jn(e,de),!ce&&(ce=a1(e,de,t,r))):qe===Nn||qe>=Fe&&qe<=De?ce=a1(e,de,t,r):qe===it?ce=s1(e,de,t,r):qe===Ft?ce=l1(e,de,t,r):qe===vt&&(ce=u$(e,de,t))}if(!ce){for(var ee=!1,te=de;te<ve;te++)if(e.charCodeAt(te)===Ft){ee=!0;break}ee&&(ce=l1(e,de,t,r))}if(ce||(ce=f$(e,de,t,r)),ce)ce.node.type!==ne.refCollection&&Pe.push(ce.node),de=ce.end;else{var he=e.indexOf(`
142
+ `,de);de=he<0?Ke:he+1}}return t.o=i,Pe}function x$(e,t,r,i){var a=Kr(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(`
143
143
  `)||a.b.includes(`
144
- `),endPos:a.end}:null}function Pd(e,t,r){ys=0,e=_q(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=Qq(e,t.refs,r));var i,a;t.t||(t.t=i=[],t.p=a=[]);let n=$n(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=Gr(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 p=a,d=0;d<p.length;d++)for(var m=p[d],k=0;k<m.src.length;k++){var v=m.src[k];if(m.unwrap&&v.type===ne.paragraph)for(var g=v.children,b=0;b<g.length;b++)m.dest.push(g[b]);else m.dest.push(v)}t.t=void 0,t.p=void 0,_d(n,t,r.slugify)}return Lk(t.refs)?[{type:ne.refCollection,refs:t.refs},...n]:n}var Id;try{ua=Zr.createElement("div"),Id=ua!=null&&typeof ua=="object"&&"$$typeof"in ua&&typeof ua.$$typeof=="symbol"?ua.$$typeof:Symbol.for("react.transitional.element")}catch{Id=Symbol.for("react.transitional.element")}var ua;function Td(e,t,r){return{$$typeof:Id,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function kr(e,t){var r={key:e};if(t){var i=Tk(t);for(var a in i)r[a]=i[a]}return r}var h1=typeof Zr.createContext>"u"?void 0:Zr.createContext(void 0);function g1(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(),gi)}`,e.children.unshift(Tq(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?Fn(e.lang):"";var u=e.attrs?Tk(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(aa(o)&&Rk(g.tag)){var c=zk(g);return c.kind==="literal"?i("span",{key:r.key},c.literal):i("span",{key:r.key},...jq(c.open,g.children?t(g.children,r):null,c.close))}let b=g.j,w=b!==void 0,E=w?b:g.a?g.e||"":(g.e||"")+(g.h||"");if(E&&g.c){let h=g.tag.toLowerCase(),y=Kq(h),C=g.children,x=C!=null&&C.length>0;if(y){let j=w?b:g.e||"",q=aa(o)?Bk(j):j;if(/<[a-z][^>]{0,100}>/i.test(E)){var f=kr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:q},l(e.tag,f)}return l(e.tag,kr(r.key,e.attrs),q)}let _=new RegExp(`^<${g.tag}(\\s|>)`,"i");if(x&&!_.test(E)&&aa(o)&&Bq(E))return l(e.tag,kr(r.key,e.attrs),t(C,r));if(Wq(E)){let j=aa(o)?Bk(E):E;var p=kr(r.key,e.attrs);return p.dangerouslySetInnerHTML={__html:j},l(e.tag,p)}let S=dd({slugify:o.slugify,sanitizer:a,tagfilter:!0}),A=Pq(E);if(new RegExp(`^<${g.tag}(\\s[^>]*)?>(\\s*</${g.tag}>)?$`,"i").test(A))return g.children&&g.children.length>0?l(e.tag,kr(r.key,e.attrs),t(g.children,r)):l(e.tag,kr(r.key,e.attrs));let O=Pd(A,{inline:!1,refs:s,inHTML:!1},S);qk(O);let F=g.tag.toLowerCase(),T=w;if(T&&x)return l(e.tag,kr(r.key,e.attrs),t(C,r));if(T)return t(O.flatMap(ia),r);var d=Dq(O,F);if(d.found&&d.afterClose.length>0){var m=d.beforeClose.flatMap(ia),k=d.afterClose.flatMap(ia);return Td(Zr.Fragment,{children:[l(e.tag,kr(r.key,e.attrs),t(m,r)),t(k,r)]},r.key)}return l(e.tag,kr(r.key,e.attrs),t(O.flatMap(ia),r))}return ms(e.tag)?l(e.tag,kr(r.key,e.attrs)):l(e.tag,kr(r.key,e.attrs),e.children?t(e.children,r):"")}case ne.htmlSelfClosing:{let g=e;if(aa(o)&&Rk(g.tag)){var v=zk(g);return i("span",{key:r.key},v.kind==="literal"?v.literal:v.open+(v.close||""))}return l(e.tag,kr(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 b=Lq(e.target,a,"a","href");b!=null&&(g.href=b)}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(b,w){return i("th",{key:w,style:g.align[w]===null?{}:{textAlign:g.align[w]}},t(b,r))}))),g.cells.length>0&&i("tbody",{key:"tbody"},g.cells.map(function(b,w){return i("tr",{key:w},b.map(function(E,h){return i("td",{key:h,style:g.align[h]===null?{}:{textAlign:g.align[h]}},t(E,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(b,w){return i("li",{key:w},t(b,r))}))}case ne.paragraph:return i("p",{key:r.key},t(e.children,r));case ne.ref:return null;default:return null}}var x$=(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],p=(c.renderDepth||0)+1;if(p>2500)return o(f);c.renderDepth=p;for(var d=c.key,m=[],k=!1,v=0;v<f.length;v++){c.key=v;var g;if(e){var b=g1.bind(null,f[v],l,c,t,r,i,a,n,s);g=e(b,f[v],l,c)}else g=g1(f[v],l,c,t,r,i,a,n,s);var w=typeof g=="string";if(k&&typeof g=="string"){var E=m.at(-1);m[m.length-1]=(typeof E=="string"?E:"")+g}else if(g!=null)if(Array.isArray(g))for(var h=0;h<g.length;h++)m.push(g[h]);else m.push(g);k=w}return c.key=d,c.renderDepth=p-1,m};return l},O$=(e,t)=>{let r=fd(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:fd(t,`${e}.component`,e):e};function _$(e,t){let r={...t||{}};r.overrides=r.overrides||{};let i=r.slugify||gi,a=r.sanitizer||fn,n=r.createElement,s=Lk(r.overrides),o=w=>Nd(w,{...r,wrapper:null});function l(w){for(var E in w){var h=w[E];if(typeof h=="string"&&h.length>0&&h.charCodeAt(0)===it&&(Uq.test(h)||Vq.test(h)||A$(h,0))){var y=o(h.trim());w[E]=E==="innerHTML"&&Array.isArray(y)?y[0]:y}}}function u(w,E,...h){var y=E||{},C=w;if(s){var x=fd(r.overrides,`${w}.props`,{});C=O$(w,r.overrides),y={...y,...x,className:zq(y.className,x.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),Td(C,y,_)}return n(C,y,...h)}function c(w,E,...h){return E&&l(E),u(w,E,...h)}let f=dd(r,r.forceInline),p=e[0]&&e[0].type===ne.refCollection?e[0].refs:{},d=x$(r.renderRule,u,a,i,p,r,c),m=d(e,{inline:r.forceInline,refs:p}),k=qq(p);if(k.length>0&&m.push(u("footer",{key:"footer"},k.map(function(w){let E=w.identifier.charCodeAt(0)===cn?w.identifier.slice(1):w.identifier,h=Pd(w.footnote,{inline:!0,refs:p},f);return u("div",{id:i(E,gi),key:w.identifier},`${E}: `,d(h,{inline:!0,refs:p}))}))),r.wrapper===null)return m;let v=r.wrapper||(r.forceInline?"span":"div"),g;if(m.length>1||r.forceWrapper)g=m;else return m.length===1?m[0]:null;var b=r.wrapperProps?{...r.wrapperProps}:{};return b.children=g,Td(v,b,"outer")}function Nd(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function i(n){let s=r.forceInline||!(r.forceBlock||Cq.test(n)),o=dd(r,s),l=s?n:Fq(n),u=Pd(l,{inline:s,refs:a},o);return _$(u,{...r,forceInline:s})}let a={};return i(e)}function P$(e){let t=Zr.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 Zr.useContext<"u")){let o={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return Nd(e??"",o)}let i=h1?Zr.useContext(h1):void 0,a=P$(r),n=Zr.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 Zr.useMemo(()=>Nd(s,n),[s,n])};const y1=Symbol("remove-this-key"),v1=Symbol("reset");function I$(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function T$(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(Oe.NewStringDefault)}}function b1(e){return!!(e!=null&&e[hn])}function k1(e){return Object.keys(e).filter(t=>b1(e[t]))}function N$(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:p,hideError:d,propertyName:m,handleKeyRename:k,handleRemoveProperty:v,addedByAdditionalProperties:g}=e,[b,w]=V.useState(!1),{globalFormOptions:E,fields:h}=i,{SchemaField:y}=h,C=Yi(Or(m,E,t.path)),x=V.useCallback((O,F,T,j)=>{let q=O;O===void 0&&g&&(q=""),o(q,F,T,j)},[o,g]),_=V.useCallback(O=>{m!==O&&w(!0),k(m,O)},[m,k]),S=V.useCallback(O=>{const{target:{value:F}}=O;_(F)},[_]),A=V.useCallback(()=>{v(m)},[m,v]);return N.jsx(y,{name:m,required:p,schema:r,uiSchema:a,errorSchema:n,fieldPathId:C,formData:s,wasPropertyKeyModified:b,onKeyRename:_,onKeyRenameBlur:S,onRemoveProperty:A,onChange:x,onBlur:l,onFocus:u,registry:i,disabled:c,readonly:f,hideError:d})}const F$=V.memo(N$);function D$(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:p,onChange:d,registry:m,title:k}=e,{fields:v,schemaUtils:g,translateString:b,globalUiOptions:w}=m,{OptionalDataControlsField:E}=v,h=V.useRef(i);h.current=i;const y=V.useMemo(()=>g.retrieveSchema(t,i,!0),[g,t,i]),C=V.useMemo(()=>pe(r,w),[r,w]),x=V.useMemo(()=>y.properties??{},[y.properties]),_=e.childFieldPathId??n,S=V.useRef({previousKey:"",currentKey:void 0}),[A,O]=V.useState(()=>k1(x)),F=V.useMemo(()=>{const R=new Set(k1(x));return Object.keys(x).filter(H=>!R.has(H))},[x]),T=C.title??y.title??k??s,j=C.description??y.description,q=rs(m,y,o,r),J=Ji(i);let Y=[];const X=V.useCallback((R,H)=>{const{duplicateKeySuffixSeparator:G="-"}=pe(r,w);let Z=0,z=R;for(;$e(H,z);)Z+=1,z=`${R}${G}${Z}`;return z},[r,w]),P=V.useCallback(()=>{if(!(y.additionalProperties||y.patternProperties))return;const R={...i},H=X("newKey",R);if(y.patternProperties)ot(R,H,null);else{let G,Z,z;if(Re(y.additionalProperties)){G=y.additionalProperties.type,Z=y.additionalProperties.const,z=y.additionalProperties.default;let W=y.additionalProperties;at in W&&(W=g.retrieveSchema({[at]:W[at]},i),G=W.type,Z=W.const,z=g.getDefaultFormState(W,z)),!G&&(je in W||xe in W)&&(G="object")}const $=Z??z??T$(b,G);ot(R,H,$)}S.current.previousKey===H&&(S.current.currentKey=H,S.current.previousKey=X(H,R)),O(G=>[...G,H]),d(R,_.path)},[i,d,b,g,_,X,y]),M=V.useCallback((R,H)=>{if(R!==H){const G=h.current,Z=X(H,G),z={...G},$={[R]:Z},W=Object.keys(z).map(ie=>({[Object.hasOwn($,ie)?$[ie]:ie]:z[ie]})),K=Object.assign({},...W);h.current=K,R!==S.current.currentKey&&(S.current.previousKey=R),S.current.currentKey=Z,O(ie=>ie.map(re=>re===R?Z:re)),d(K,_.path)}},[d,_,X]),U=V.useCallback(R=>{O(H=>H.filter(G=>G!==R)),d(y1,[..._.path,R])},[d,_]),I=V.useCallback(R=>S.current.currentKey===R?S.current.previousKey:R,[]);if(!q||J)try{const R=new Set(F),H=A.filter(G=>Object.hasOwn(x,G)&&!R.has(G));Y=qD([...F,...H],C.order)}catch(R){return N.jsxs("div",{children:[N.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:N.jsx(vs,{options:{disableParsingRawHTML:!0},children:b(Oe.InvalidObjectField,[s||"root",R.message])})}),N.jsx("pre",{children:JSON.stringify(y)})]})}const D=ge("ObjectFieldTemplate",m,C),L=q?N.jsx(E,{...e,fieldPathId:_,schema:y}):void 0,B={title:C.label===!1?"":T,description:C.label===!1?void 0:j,properties:Y.map(R=>{var $;const H=b1(($=y.properties)==null?void 0:$[R]),G=H?r.additionalProperties:r[R],Z=pe(G).widget==="hidden";return{content:N.jsx(F$,{propertyName:R,required:I$(y,R),schema:ae(y,[ze,R],{}),uiSchema:G,errorSchema:ae(a,[R]),fieldPathId:_,formData:ae(i,[R]),handleKeyRename:M,handleRemoveProperty:U,addedByAdditionalProperties:H,onChange:d,onBlur:f,onFocus:p,registry:m,disabled:l,readonly:u,hideError:c},I(R)),name:R,readonly:u,disabled:l,required:o,hidden:Z}}),readonly:u,disabled:l,required:o,fieldPathId:n,uiSchema:r,errorSchema:a,schema:y,formData:i,registry:m,optionalDataControl:L,className:q?"rjsf-optional-object-field":void 0};return N.jsx(D,{...B,onAddProperty:P})}function M$(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:p}=u,d=pe(r,c),m=ge("OptionalDataControlsTemplate",u,d),k=Ji(i);let v,g,b,w;if(a||n)v=of(l,"Msg"),g=k?void 0:p(Oe.OptionalObjectEmptyMsg);else{const E=k?Oe.OptionalObjectRemove:Oe.OptionalObjectAdd;g=p(E),k?(v=of(l,"Remove"),w=()=>s(void 0,l.path,o)):(v=of(l,"Add"),b=()=>{let h=f.getDefaultFormState(t,i,"excludeObjectChildren");h===void 0&&(h=pr(t)==="array"?[]:{}),s(h,l.path,o)})}return g&&N.jsx(m,{id:v,registry:u,schema:t,uiSchema:r,label:g,onAddClick:b,onRemoveClick:w})}const j$={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function L$(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=pr(e),o=Array.isArray(s)?s[0]:s||"",l=e.$id;let u=j$[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 q$(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:p,wasPropertyKeyModified:d=!1}=e,{schemaUtils:m,globalFormOptions:k,globalUiOptions:v,fields:g}=p,{AnyOfField:b,OneOfField:w,CyclicSchemaField:E}=g,h=r[tt],y=V.useCallback((ke,Pe,de,Ke)=>o(ke,Pe,de,Ke||h),[h,o]);if(t[tc])return N.jsx(E,{...e});const C=$D(t,i,p),x=pe(C,v),_=ge("FieldTemplate",p,x),S=ge("DescriptionFieldTemplate",p,x),A=ge("FieldHelpTemplate",p,x),O=ge("FieldErrorTemplate",p,x),F=m.retrieveSchema(t,a),T=L$(F,x,p),q=!!F.deprecated?x.deprecatedHandling??"label":void 0,J=!!(x.disabled??e.disabled)||q==="disable",Y=!!(x.readonly??(e.readonly||e.schema.readOnly||F.readOnly)),X=x.hideError,P=X===void 0?e.hideError:!!X,M=!!(x.autofocus??e.autofocus);if(Object.keys(F).length===0)return null;let U=m.getDisplayLabel(F,C,v);const I=x.field&&x.fieldReplacesAnyOrOneOf===!0;let D,L,B={fieldPathId:r};if((je in F||xe in F)&&!I&&!m.isSelect(F)){F[je]?(D=b,L=F[je].map(de=>m.retrieveSchema(Re(de)?de:{},a))):F[xe]&&(D=w,L=F[xe].map(de=>m.retrieveSchema(Re(de)?de:{},a)));const ke=rs(p,F,f,C),Pe=Ji(a);U=U&&(!ke||Pe),B={childFieldPathId:r,fieldPathId:Or("XxxOf",k,r)}}const{__errors:R,...H}=n||{},G=Ha(C,["ui:classNames","classNames","ui:style"]);gn in G&&(G[gn]=Ha(G[gn],["classNames","style"]));const Z=N.jsx(T,{...e,onChange:y,...B,schema:F,uiSchema:G,disabled:J,readonly:Y,hideError:P,autofocus:M,errorSchema:H,rawErrors:R}),z=r[tt];let $;d?$=s:$=hn in F?s:x.title||e.schema.title||F.title||e.title||s,q==="label"&&($=p.translateString(Oe.DeprecatedLabel,[$]));const W=x.description||e.schema.description||F.description||"",{help:K}=x,ie=x.widget==="hidden"||q==="hide",re=["rjsf-field",`rjsf-field-${pr(F)}`];!P&&R&&R.length>0&&re.push("rjsf-field-error"),x.classNames&&re.push(x.classNames);const ue=N.jsx(A,{help:K,fieldPathId:r,schema:F,uiSchema:C,hasErrors:!P&&R&&R.length>0,registry:p}),ye=P||D&&!m.isSelect(F)?void 0:N.jsx(O,{errors:R,errorSchema:n,fieldPathId:r,schema:F,uiSchema:C,registry:p}),Se={description:N.jsx(S,{id:xn(z),description:W,schema:F,uiSchema:C,registry:p}),rawDescription:W,help:ue,rawHelp:typeof K=="string"?K:void 0,errors:ye,rawErrors:P?void 0:R,fieldPathId:r,id:z,label:$,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:x.style,formData:a,schema:F,uiSchema:C,registry:p};return N.jsx(_,{...Se,children:N.jsxs(N.Fragment,{children:[Z,D&&N.jsx(D,{name:s,disabled:J,readonly:Y,hideError:P,errorSchema:n,formData:a,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:L,registry:p,required:f,schema:F,uiSchema:C})]})})}const $$=V.memo(q$,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?cf(e,t):Be(e,t)});function z$(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:p,registry:d,rawErrors:m,hideError:k,title:v}=e,{title:g,format:b}=t,{widgets:w,schemaUtils:E,globalUiOptions:h}=d,y=E.isSelect(t)?si(t,i):void 0;let C=y?"select":"text";b&&FD(t,b,w)&&(C=b);const{widget:x=C,placeholder:_="",title:S,...A}=pe(i),O=E.getDisplayLabel(t,i,h),F=S??v??g??r,T=Vr(t,x,w),j=V.useCallback((q,J,Y)=>c(q,a.path,J,Y),[c,a]);return N.jsx(T,{options:{...A,enumOptions:y},schema:t,uiSchema:i,id:a.$id,name:r,label:F,hideLabel:!O,hideError:k,value:n,onChange:j,onBlur:f,onFocus:p,required:s,disabled:o,readonly:l,autofocus:u,registry:d,placeholder:_,rawErrors:m,htmlName:a.name})}function R$(){return{AnyOfField:xk,ArrayField:TL,BooleanField:NL,CyclicSchemaField:FL,FallbackField:LL,LayoutGridField:id,LayoutHeaderField:iq,LayoutMultiSchemaField:aq,NumberField:uq,ObjectField:D$,OneOfField:xk,OptionalDataControlsField:M$,SchemaField:$$,StringField:z$,NullField:sq}}function B$(e){const{fieldPathId:t,description:r,registry:i,schema:a,uiSchema:n}=e,s=pe(n,i.globalUiOptions),{label:o=!0}=s;if(!r||!o)return null;const l=ge("DescriptionFieldTemplate",i,s);return N.jsx(l,{id:xn(t),description:r,schema:a,uiSchema:n,registry:i})}function U$(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:p,uiSchema:d}=e,{CopyButton:m,MoveDownButton:k,MoveUpButton:v,RemoveButton:g}=p.templates.ButtonTemplates;return N.jsxs(N.Fragment,{children:[(a||i)&&N.jsx(v,{id:rr(s,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!a,onClick:c,uiSchema:d,registry:p}),(a||i)&&N.jsx(k,{id:rr(s,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!i,onClick:u,uiSchema:d,registry:p}),r&&N.jsx(m,{id:rr(s,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:o,uiSchema:d,registry:p}),n&&N.jsx(g,{id:rr(s,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:l,uiSchema:d,registry:p})]})}function V$(e){const{children:t,className:r,buttonsProps:i,displayLabel:a,hasDescription:n,hasToolbar:s,registry:o,uiSchema:l}=e,u=pe(l),c=ge("ArrayFieldItemButtonsTemplate",o,u),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},p=n?31:9,d={display:"flex",alignItems:a?"center":"baseline"},m={display:"flex",justifyContent:"flex-end",marginTop:a?`${p}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:m,children:N.jsx(c,{...i,style:f})})})]})}function H$(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:p,title:d}=e,m=pe(n),k=ge("ArrayFieldDescriptionTemplate",c,m),v=ge("ArrayFieldTitleTemplate",c,m),g=!u&&!i,{ButtonTemplates:{AddButton:b}}=c.templates;return N.jsxs("fieldset",{className:r,id:a.$id,children:[N.jsx(v,{fieldPathId:a,title:m.title||d,required:f,schema:p,uiSchema:n,registry:c,optionalDataControl:g?o:void 0}),N.jsx(k,{fieldPathId:a,description:m.description||p.description,schema:p,uiSchema:n,registry:c}),g?void 0:o,N.jsx("div",{className:"row array-item-list",children:s}),t&&N.jsx(b,{id:rr(a,"add"),className:"rjsf-array-item-add",onClick:l,disabled:i||u,uiSchema:n,registry:c})]})}function K$(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,optionalDataControl:o}=e,l=pe(a,s.globalUiOptions),{label:u=!0}=l;if(!r||!u)return null;const c=ge("TitleFieldTemplate",s,l);return N.jsx(c,{id:yo(t),title:r,required:n,schema:i,uiSchema:a,registry:s,optionalDataControl:o})}function W$(e){const{id:t,schema:r}=e,{examples:i,default:a}=r;return Array.isArray(i)?N.jsx("datalist",{id:af(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 G$(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:p,schema:d,uiSchema:m,registry:k,rawErrors:v,type:g,hideLabel:b,hideError:w,...E}=e,{ClearButton:h}=k.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const y={...E,...AD(d,g,p)};let C;y.type==="number"||y.type==="integer"?C=a||a===0?a:"":C=a??"";const x=V.useCallback(({target:{value:O}})=>c(O===""?p.emptyValue:O),[c,p]),_=V.useCallback(({target:O})=>l(t,O==null?void 0:O.value),[l,t]),S=V.useCallback(({target:O})=>u(t,O==null?void 0:O.value),[u,t]),A=V.useCallback(O=>{O.preventDefault(),O.stopPropagation(),c(p.emptyValue??"")},[c,p.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:C,...y,list:d.examples?af(t):void 0,onChange:f||x,onBlur:_,onFocus:S,"aria-describedby":xr(t,!!d.examples)}),p.allowClearTextInputs&&!n&&!s&&C&&N.jsx(h,{registry:k,onClick:A}),N.jsx(W$,{id:t,schema:d})]})}function J$(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 zn=V.memo(J$);function Y$(e){const{registry:{translateString:t}}=e;return N.jsx(zn,{title:t(Oe.CopyButton),...e,icon:"copy"})}const X$=V.memo(Y$);function Z$(e){const{registry:{translateString:t}}=e;return N.jsx(zn,{title:t(Oe.MoveDownButton),...e,icon:"arrow-down"})}const Q$=V.memo(Z$);function ez(e){const{registry:{translateString:t}}=e;return N.jsx(zn,{title:t(Oe.MoveUpButton),...e,icon:"arrow-up"})}const tz=V.memo(ez);function rz(e){const{registry:{translateString:t}}=e;return N.jsx(zn,{title:t(Oe.RemoveButton),...e,iconType:"danger",icon:"remove"})}const nz=V.memo(rz);function iz({id:e,className:t,onClick:r,disabled:i,registry:a,...n}){const{translateString:s}=a;return N.jsx(zn,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:s(Oe.ClearButton),onClick:r,disabled:i,registry:a,...n})}const az=V.memo(iz);function sz({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(zn,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(Oe.AddButton),onClick:r,disabled:i,registry:a})})})}function oz({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=ef(e);return r?null:N.jsx("div",{children:N.jsx("button",{type:"submit",...i,className:`btn btn-info ${i.className||""}`,children:t})})}function lz(){return{SubmitButton:oz,AddButton:sz,CopyButton:X$,MoveDownButton:Q$,MoveUpButton:tz,RemoveButton:nz,ClearButton:az}}function uz(e){const{name:t,fieldPathId:r,registry:i,onExpand:a}=e,{translateString:n}=i,s=`${r[tt]}-button`;return N.jsxs("div",{style:{marginTop:"1rem"},children:[N.jsx("div",{className:"text-danger",children:n(Oe.CycleDetected,[t])}),N.jsxs("div",{children:[N.jsx("button",{id:s,type:"button",className:"btn btn-sm btn-warning",onClick:()=>a(r[tt]),children:n(Oe.ExpandButton)})," "]})]})}const w1=tf();function S1({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return pe(r,i).enableMarkdownInDescription&&typeof e=="string"?N.jsx(vs,{options:{disableParsingRawHTML:!0},"data-testid":w1.markdown,children:e}):e}S1.TEST_IDS=w1;function cz(e){const{id:t,description:r,registry:i,uiSchema:a}=e;return r?N.jsx("div",{id:t,className:"field-description",children:N.jsx(S1,{description:r,registry:i,uiSchema:a})}):null}function fz({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(Oe.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 dz(e){const{schema:t,registry:r,typeSelector:i,schemaField:a}=e,n=ge("MultiSchemaFieldTemplate",r);return N.jsx(n,{selector:i,optionSchemaField:a,schema:t,registry:r})}function pz(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const i=nf(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 C1=tf();function E1({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return pe(r,i).enableMarkdownInHelp&&typeof e=="string"?N.jsx(vs,{options:{disableParsingRawHTML:!0},"data-testid":C1.markdown,children:e}):e}E1.TEST_IDS=C1;function mz(e){const{fieldPathId:t,help:r,uiSchema:i,registry:a}=e;return r?N.jsx("div",{id:sf(t),className:"help-block",children:N.jsx(E1,{help:r,registry:a,uiSchema:i})}):null}const hz="*";function A1(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:hz})]}):null}function gz(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,p=pe(f),d=ge("WrapIfAdditionalTemplate",c,p);if(o)return N.jsx("div",{className:"hidden",children:i});const m=p.widget==="checkbox";return N.jsxs(d,{...e,children:[u&&!m&&N.jsx(A1,{label:r,required:l,id:t}),u&&s?s:null,i,a,n]})}function yz(e){const{children:t,column:r,className:i,...a}=e;return N.jsx("div",{className:i,...a,children:t})}function vz(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 bz(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:p,title:d,uiSchema:m}=e,k=pe(m),v=ge("TitleFieldTemplate",c,k),g=ge("DescriptionFieldTemplate",c,k);if((p.oneOf||p.anyOf)&&!p.properties&&l.length===0)return null;const w=!u&&!i,{ButtonTemplates:{AddButton:E}}=c.templates;return N.jsxs("fieldset",{className:t,id:n.$id,children:[d&&N.jsx(v,{id:yo(n),title:d,required:f,schema:p,uiSchema:m,registry:c,optionalDataControl:w?o:void 0}),r&&N.jsx(g,{id:xn(n),description:r,schema:p,uiSchema:m,registry:c}),w?void 0:o,l.map(h=>h.content),xh(p,m,a)&&N.jsx(E,{id:rr(n,"add"),className:"rjsf-object-property-expand",onClick:s,disabled:i||u,uiSchema:m,registry:c})]})}function kz(e){const{id:t,registry:r,label:i,onAddClick:a,onRemoveClick:n}=e;return a?N.jsx(zn,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:a,title:i}):n?N.jsx(zn,{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 wz="*";function Sz(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:wz}),a&&N.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:a})]})}function Cz(e){const{schema:t,fieldPathId:r,reason:i,registry:a}=e,{translateString:n}=a;let s=Oe.UnsupportedField;const o=[];return r!=null&&r.$id&&(s=Oe.UnsupportedFieldWithId,o.push(r.$id)),i&&(s=s===Oe.UnsupportedField?Oe.UnsupportedFieldWithReason:Oe.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 Ez(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:p,hideError:d,rawErrors:m,children:k,uiSchema:v,registry:g}=e,{templates:b,translateString:w}=g,{RemoveButton:E}=b.ButtonTemplates,h=w(Oe.KeyLabel,[s]),y=hn in p,C=!!u,x=["form-group",r];!d&&m&&m.length>0&&x.push("has-error has-danger");const _=x.join(" ").trim();if(!y)return N.jsx("div",{className:_,style:i,children:k});const S=C?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(A1,{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:k}),N.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${S}px`:void 0},children:N.jsx(E,{id:rr(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:a||c,onClick:l,uiSchema:v,registry:g})})]})})}function Az(){return{ArrayFieldDescriptionTemplate:B$,ArrayFieldItemTemplate:V$,ArrayFieldItemButtonsTemplate:U$,ArrayFieldTemplate:H$,ArrayFieldTitleTemplate:K$,ButtonTemplates:lz(),BaseInputTemplate:G$,CyclicSchemaExpandTemplate:uz,DescriptionFieldTemplate:cz,ErrorListTemplate:fz,FallbackFieldTemplate:dz,FieldTemplate:gz,FieldErrorTemplate:pz,FieldHelpTemplate:mz,GridTemplate:yz,MultiSchemaFieldTemplate:vz,ObjectFieldTemplate:bz,OptionalDataControlsTemplate:kz,TitleFieldTemplate:Sz,UnsupportedFieldTemplate:Cz,WrapIfAdditionalTemplate:Ez}}function xz({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return N.jsx(r,{time:e,...t})}function Oz(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:p,handleClear:d,handleSetNow:m}=HD(e);return N.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>N.jsx("li",{className:"list-inline-item",children:N.jsx(VD,{rootId:n,name:s,select:p,...k,disabled:t,readonly:r,registry:o,onBlur:l,onFocus:u,autofocus:i&&v===0})},v)),(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:m,children:c(Oe.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(Oe.ClearLabel)})})]})}function _z({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:p,emptyValue:d}=r,m=es(r),k=Array.isArray(i)?i:[i],v=V.useCallback(({target:b})=>o(e,Ar(b==null?void 0:b.value,f,m,d)),[o,e,f,d,m]),g=V.useCallback(({target:b})=>l(e,Ar(b==null?void 0:b.value,f,m,d)),[l,e,f,d,m]);return N.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Gi(b.value,k),h=Array.isArray(p)&&p.includes(b.value),y=t||h||n?"disabled":"",C=_=>{_.target.checked?s(Vy(w,k,f)):s(By(w,k,f))},x=N.jsxs("span",{children:[N.jsx("input",{type:"checkbox",id:vo(e,w),name:u||e,checked:E,value:Qa(b.value,w,m),disabled:t||h||n,autoFocus:a&&w===0,onChange:C,onBlur:v,onFocus:g,"aria-describedby":xr(e)}),N.jsx("span",{children:b.label})]});return c?N.jsx("label",{className:`checkbox-inline ${y}`,children:x},String(b.value)):N.jsx("div",{className:`checkbox ${y}`,children:N.jsx("label",{children:x})},String(b.value))})})}function Pz({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:p,registry:d,htmlName:m}){const k=ge("DescriptionFieldTemplate",d,r),v=ts(e),g=V.useCallback(C=>p(C.target.checked),[p]),b=V.useCallback(C=>c(i,C.target.checked),[c,i]),w=V.useCallback(C=>f(i,C.target.checked),[f,i]),y=pe(t).widget==="checkbox"?void 0:r.description??e.description;return N.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`,children:[!l&&y&&N.jsx(k,{id:xn(i),description:y,schema:e,uiSchema:t,registry:d}),N.jsxs("label",{children:[N.jsx("input",{type:"checkbox",id:i,name:m||i,checked:typeof a>"u"?!1:a,required:v,disabled:n||s,autoFocus:u,onChange:g,onBlur:b,onFocus:w,"aria-describedby":xr(i)}),MD(N.jsx("span",{children:o}),l)]})]})}function Iz(e){const{disabled:t,readonly:r,options:i,registry:a}=e,n=ge("BaseInputTemplate",a,i);return N.jsx(n,{type:"color",...e,disabled:t||r})}function Tz(e){const{onChange:t,value:r,options:i,registry:a}=e,n=ge("BaseInputTemplate",a,i);return N.jsx(n,{type:"datetime-local",...e,value:YD(r),onChange:s=>t(jD(s))})}function Nz(e){const{onChange:t,options:r,registry:i}=e,a=ge("BaseInputTemplate",i,r),n=V.useCallback(s=>t(s||void 0),[t]);return N.jsx(a,{type:"date",...e,onChange:n})}function Fz(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{type:"email",...e})}function Dz({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:i,type:a,name:n}=e;if(!i)return null;const s=r(Oe.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 Mz({filesInfo:e,registry:t,preview:r,onRemove:i,options:a}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:s}=ge("ButtonTemplates",t,a);return N.jsx("ul",{className:"file-info",children:e.map((o,l)=>{const{name:u,size:c,type:f}=o,p=()=>i(l);return N.jsxs("li",{children:[N.jsx(vs,{children:n(Oe.FilesInfo,[u,f,String(c)])}),r&&N.jsx(Dz,{fileInfo:o,registry:t}),N.jsx(s,{onClick:p,registry:t})]},l)})})}function jz(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}=JD(s,n,a),p=ge("BaseInputTemplate",l,o),d=m=>{m.target.files&&c(m.target.files)};return N.jsxs("div",{children:[N.jsx(p,{...e,disabled:t||r,type:"file",required:s?!1:i,onChangeOverride:d,value:"",accept:o.accept?String(o.accept):void 0}),N.jsx(Mz,{filesInfo:u,onRemove:f,registry:l,preview:o.filePreview,options:o})]})}function Lz({id:e,value:t,htmlName:r}){return N.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function qz(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{type:"password",...e})}function $z({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:p,inline:d,emptyValue:m}=e,k=es(e),v=V.useCallback(({target:b})=>s(u,Ar(b==null?void 0:b.value,f,k,m)),[s,f,m,u,k]),g=V.useCallback(({target:b})=>o(u,Ar(b==null?void 0:b.value,f,k,m)),[o,f,m,u,k]);return N.jsx("div",{className:"field-radio-group",id:u,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const E=Gi(b.value,t),h=Array.isArray(p)&&p.includes(b.value),y=i||h||a?"disabled":"",C=()=>l(b.value),x=N.jsxs("span",{children:[N.jsx("input",{type:"radio",id:vo(u,w),checked:E,name:c||u,required:r,value:Qa(b.value,w,k),disabled:i||h||a,autoFocus:n&&w===0,onChange:C,onBlur:v,onFocus:g,"aria-describedby":xr(u)}),N.jsx("span",{children:b.label})]});return d?N.jsx("label",{className:`radio-inline ${y}`,children:x},String(b.value)):N.jsx("div",{className:`radio ${y}`,children:N.jsx("label",{children:x})},String(b.value))})})}function zz(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 Rz({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:p=5,shape:d="star"}=c,m=u.maximum?Math.min(u.maximum,5):Math.min(Math.max(p,1),5),k=u.minimum||0,v=V.useCallback(E=>{!i&&!a&&s(E)},[s,i,a]),g=V.useCallback(E=>{if(o){const h=Number(E.target.dataset.value);o(e,h)}},[o,e]),b=V.useCallback(E=>{if(l){const h=Number(E.target.dataset.value);l(e,h)}},[l,e]),w=E=>d==="heart"?E?"♥":"♡":E?"★":"☆";return N.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:i||a?"default":"pointer"},children:[[...Array(m)].map((E,h)=>{const y=k+h,C=y<=t;return N.jsx("span",{onClick:()=>v(y),onKeyDown:x=>(x.key==="Enter"||x.key===" ")&&v(y),onFocus:g,onBlur:b,"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:C?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:w(C)},h)}),N.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:i||a,"aria-hidden":"true"})]})}function Fd(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function Bz({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:p,htmlName:d,registry:m,uiSchema:k}){const{enumOptions:v,enumDisabled:g,emptyValue:b}=r,w=o?[]:"",E=es(r),h=V.useCallback(S=>{const A=Fd(S,o);return f(t,Ar(A,v,E,b))},[f,t,o,v,b,E]),y=V.useCallback(S=>{const A=Fd(S,o);return c(t,Ar(A,v,E,b))},[c,t,o,v,b,E]),C=V.useCallback(S=>{const A=Fd(S,o);return u(Ar(A,v,E,b))},[u,o,v,b,E]),x=hD(i,v,o,E,w),_=!o&&e.default===void 0;return LD(t,e,v,o),N.jsxs(N.Fragment,{children:[N.jsx(zD,{id:t,multiple:o,options:r,registry:m,uiSchema:k,value:i}),N.jsxs("select",{id:t,name:d||t,multiple:o,className:"form-control",value:x,required:a,disabled:n||s,autoFocus:l,onBlur:y,onFocus:h,onChange:C,"aria-describedby":xr(t),children:[_&&N.jsx("option",{value:"",children:p}),Array.isArray(v)&&v.map(({value:S,label:A},O)=>{const F=g&&g.includes(S);return N.jsx("option",{value:Qa(S,O,E),disabled:F,children:A},String(S))})]})]})}function Uz({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 p=V.useCallback(({target:{value:k}})=>l(k===""?t.emptyValue:k),[l,t.emptyValue]),d=V.useCallback(({target:k})=>u(e,k==null?void 0:k.value),[u,e]),m=V.useCallback(({target:k})=>c(e,k==null?void 0:k.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:m,onChange:p,"aria-describedby":xr(e)})}function Vz(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{...e})}function Hz(e){const{onChange:t,options:r,registry:i}=e,a=ge("BaseInputTemplate",i,r),n=V.useCallback(s=>t(s?`${s}:00`:void 0),[t]);return N.jsx(a,{type:"time",...e,onChange:n})}function Kz(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{type:"number",...e})}function Wz(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{type:"url",...e})}function Gz(){return{AltDateWidget:Oz,AltDateTimeWidget:xz,CheckboxWidget:Pz,CheckboxesWidget:_z,ColorWidget:Iz,DateWidget:Nz,DateTimeWidget:Tz,EmailWidget:Fz,FileWidget:jz,HiddenWidget:Lz,PasswordWidget:qz,RadioWidget:$z,RangeWidget:zz,RatingWidget:Rz,SelectWidget:Bz,TextWidget:Vz,TextareaWidget:Uz,TimeWidget:Hz,UpDownWidget:Kz,URLWidget:Wz}}function Jz(){return{fields:R$(),templates:Az(),widgets:Gz(),rootSchema:{},formContext:{},translateString:mD,globalFormOptions:{idPrefix:wh,idSeparator:Sh,useFallbackUiForUnsupportedType:!1}}}function ca(e,t){return{...qy(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}const Yz=class Ei extends V.Component{constructor(r){super(r);Jt(this,"formElement");Jt(this,"pendingChanges",[]);Jt(this,"isProcessingUserChange",!1);Jt(this,"getUsedFormData",(r,i)=>iD(r,i));Jt(this,"getFieldNames",(r,i)=>aD(r,i));Jt(this,"omitExtraData",r=>{const{schema:i,schemaUtils:a}=this.state;return a.omitExtraData(i,r)});Jt(this,"setFieldValue",(r,i)=>{const{registry:a}=this.state,n=Array.isArray(r)?r:r.split("."),s=Or("",a.globalFormOptions,n);this.onChange(i,n,void 0,s[tt])});Jt(this,"onChange",(r,i,a,n)=>{this.pendingChanges.push({newValue:r,path:i,newErrorSchema:a,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});Jt(this,"reset",()=>{const{formData:r,initialFormData:i=v1,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(ca({...this.state,...o})))});Jt(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,p={formData:f};if(n===!0&&s==="onBlur"&&(f=this.omitExtraData(c),p={formData:f}),o==="onBlur"){const{schema:m,schemaUtils:k,errorSchema:v,customErrors:g,retrievedSchema:b}=this.state,w=this.liveValidate(m,k,v,f,u,g,b);p={formData:f,...w,customErrors:g}}const d=Object.keys(p).filter(m=>!m.startsWith("schemaValidation")).some(m=>{const k=ae(this.state,m),v=ae(p,m);return!Be(k,v)});this.setState(p,()=>{l&&d&&l(ca({...this.state,...p}),r)})}});Jt(this,"onFocus",(r,i)=>{const{onFocus:a}=this.props;a&&a(r,i)});Jt(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?ff(a):[];this.setState({formData:o,errors:u,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(ca({...this.state,formData:o},"submitted"),r)})}});Jt(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});Jt(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?Ei.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&&!Be(this.state.formData,s)&&n(ca(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}=ns(a,r.extraErrors)),i.customErrors&&({errors:n,errorSchema:s}=ns({errors:n,errorSchema:s},i.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:s}}return null}getSnapshotBeforeUpdate(r,i){if(!Be(this.props,r)){const a=Wy(this.props.formData,r.formData),n=Wy(this.props.formData,this.state.formData),s=!Be(r.schema,this.props.schema),o=a.length>0||!Be(r.formData,this.props.formData),l=n.length>0||!Be(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=!Be(u,i);return{nextState:u,shouldUpdate:c}}return{shouldUpdate:!1}}componentDidUpdate(r,i,a){if(a.shouldUpdate){const{nextState:n}=a,s=!Be(n.formData,this.props.formData),o=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,o&&s)return;s&&!Be(n.formData,i.formData)&&this.props.onChange&&this.props.onChange(ca(n)),this.setState(n)}}getStateFromProps(r,i,a,n=!1,s=[],o=!1,l=!1){var X;const u=this.state||{},c="schema"in r?r.schema:this.props.schema,f="validator"in r?r.validator:this.props.validator,p=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},d=r.formData===void 0&&this.props.formData===void 0,m=typeof i<"u",k="liveValidate"in r?r.liveValidate:this.props.liveValidate,v=m&&!r.noValidate&&k,g="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}=u;(!w||w.doesSchemaUtilsDiffer(f,c,g,b))&&(w=fD(f,c,g,b));const E=w.getRootSchema();let h=i;i===v1?h=void 0:i===void 0&&d&&(h=u.formData);let y,C,x=!1;const _=[];do{y=w.getDefaultFormState(E,h,!1,u.initialDefaultsGenerated);const P=l?hr({formData:y}):"";if(C=this.updateRetrievedSchema(a??w.retrieveSchema(E,y)),l&&!_.includes(P)&&!Be(C,u.retrievedSchema)){const M=w.sanitizeDataForNewSchema(C,u.retrievedSchema,y);if(x=!Be(M,y),x){y=M,h=M;const U=hr({formData:M});x=!_.includes(U),_.push(U)}_.push(P)}else x=!1}while(x);const S=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:u.errors||[],errorSchema:u.errorSchema||{}}:{errors:u.schemaValidationErrors||[],errorSchema:u.schemaValidationErrorSchema||{}};let A,O,{schemaValidationErrors:F,schemaValidationErrorSchema:T}=u;if(v&&!o){const P=this.liveValidate(E,w,u.errorSchema,y,void 0,u.customErrors,a,a!==void 0);A=P.errors,O=P.errorSchema,F=P.schemaValidationErrors,T=P.schemaValidationErrorSchema}else{const P=S();if(A=P.errors,O=P.errorSchema,s.length>0&&!v){const U=s.reduce((I,D)=>(I[D]=void 0,I),{});T=Sn(P.errorSchema,U,"preventDuplicates"),O=T}const M=Ei.mergeErrors({errorSchema:O,errors:A},r.extraErrors,u.customErrors);A=M.errors,O=M.errorSchema}const j=Ei.getRegistry(r,E,w),q=Be(u.registry,j)?u.registry:j,J=u.fieldPathId&&((X=u.fieldPathId)==null?void 0:X[tt])===q.globalFormOptions.idPrefix?u.fieldPathId:Or("",q.globalFormOptions);return{schemaUtils:w,schema:E,uiSchema:p,fieldPathId:J,formData:y,edit:m,errors:A,errorSchema:O,schemaValidationErrors:F,schemaValidationErrorSchema:T,retrievedSchema:C,initialDefaultsGenerated:!0,registry:q}}shouldComponentUpdate(r,i){const{experimental_componentUpdateStrategy:a="customDeep"}=this.props;return RD(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=pe(s),l=ge("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=ns(r,i);n=o.errorSchema,s=o.errors}if(a){const o=ns({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:p}=c;u&&(p=Sn(a,c.errorSchema,"preventDuplicates"));const d=f,m=p;return{...Ei.mergeErrors({errorSchema:p,errors:f},s,o),schemaValidationErrors:d,schemaValidationErrorSchema:m}}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:p,readonly:d}=this.props,{formData:m,schemaUtils:k,schema:v,fieldPathId:g,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:E,retrievedSchema:h}=this.state,y=b;const C=g.path[0]||"",x=!i||i.length===0||i.length===1&&i[0]===C;let _=x?r:ho(m);const S=be(_)&&Object.keys(_).length>0&&Object.values(_).every(q=>q===void 0),A=m==null,O=S&&A?void 0:_;if(be(_)||Array.isArray(_)){let q=!1;if(r===y1)wL(_,i);else if(!x){let X=r;if(r===void 0)if(typeof i[i.length-1]=="number")X=null;else{const{field:M}=k.findFieldInSchema(v,i,m),U=M;!(U&&(xe in U||je in U))&&U!==void 0&&(q=!0)}q?ot(_,i,void 0):ot(_,i,X)}const J=h&&!x&&!be(r)&&!Array.isArray(r)&&!p&&!d,Y=this.getStateFromProps(this.props,O,void 0,void 0,void 0,!0,J);_=Y.formData,h=Y.retrievedSchema,q&&_&&ot(_,i,void 0)}const F=!u&&(c===!0||c==="onChange");let T={formData:_,retrievedSchema:h},j=_;if(o===!0&&(l===!0||l==="onChange")&&(j=this.omitExtraData(_),T={...T,formData:j}),n){const q=x?b:ae(b,i);if(!kt(q))x?y=n:(y=ho(b),ot(y,i,n));else if(E||(E=new Ky),x){const J=ae(n,Dt);J&&E.setErrors(J)}else ot(E.ErrorSchema,i,n)}else E&&ae(E.ErrorSchema,[...i,Dt])&&E.clearErrors(i);if(F&&this.pendingChanges.length===1){const q=this.liveValidate(v,k,y,j,s,E,h);T={...T,formData:j,...q,customErrors:E}}else if(!u&&n){const q=Ei.mergeErrors({errorSchema:y,errors:w},s,E);T={...T,formData:j,...q,customErrors:E}}this.setState(T,()=>{f&&f(ca({...this.state,...T}),a),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var a;return Be(r,(a=this.state)==null?void 0:a.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:i={},experimental_componentUpdateStrategy:a,idSeparator:n=Sh,idPrefix:s=wh,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 p;const{translateString:n,uiSchema:s={}}=r,{fields:o,templates:l,widgets:u,formContext:c,translateString:f}=Jz();return{fields:{...o,...r.fields},templates:{...l,...r.templates,ButtonTemplates:{...l.ButtonTemplates,...(p=r.templates)==null?void 0:p.ButtonTemplates}},widgets:{...u,...r.widgets},rootSchema:i,formContext:r.formContext||c,schemaUtils:a,translateString:n||f,globalUiOptions:s[ic],globalFormOptions:Ei.getGlobalFormOptions(r),uiSchemaDefinitions:s[SO]??{}}}focusOnError(r){const{idPrefix:i="root",idSeparator:a="_"}=this.props,{property:n}=r,s=iv(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:p,noHtml5Validate:d=!1,disabled:m,readonly:k,showErrorList:v="top",_internalFormWrapper:g}=this.props,{schema:b,uiSchema:w,formData:E,errorSchema:h,fieldPathId:y,registry:C}=this.state,{SchemaField:x}=C.fields,{SubmitButton:_}=C.templates.ButtonTemplates,S=g?n:void 0,A=g||n||"form";let{[Us]:O={}}=pe(w);m&&(O={...O,props:{...O.props,disabled:!0}});const F={[gn]:{[Us]:O}};return N.jsxs(A,{className:a||"rjsf",id:i,name:s,method:o,target:l,action:u,autoComplete:c,encType:f,acceptCharset:p,noValidate:d,onSubmit:this.onSubmit,as:S,ref:this.formElement,children:[v==="top"&&this.renderErrors(C),N.jsx(x,{name:"",schema:b,uiSchema:w,errorSchema:h,fieldPathId:y,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:C,disabled:m,readonly:k}),r||N.jsx(_,{uiSchema:F,registry:C}),v==="bottom"&&this.renderErrors(C)]})}},Xz=(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}),x1=({id:e,...t})=>{const[r,i]=V.useState(t.formData);return N.jsx(Yz,{id:e,idPrefix:`root_${e}`,transformErrors:a=>Xz(a,t.schema),...t,formData:r,onChange:a=>{t.onChange&&t.onChange(a);const{schema:n,formData:s}=a;if(n!=null&&n.required&&Array.isArray(n.required))for(const o of n.required){const l=(n.properties||{})[o];l&&l.type==="boolean"&&s[o]===!1&&delete s[o]}i(s)}})},Zz=["tabs","sidebar"],O1=e=>console.warn(`Ignoring "ui:steps": ${e}. Rendering a single-page form.`),Qz=e=>{const t=e??{};return{layout:Zz.includes(t.layout)?t.layout:"tabs",nextLabel:typeof t.nextLabel=="string"?t.nextLabel:"Next",backLabel:typeof t.backLabel=="string"?t.backLabel:"Back"}},eR=(e,t,r,i)=>{const a=e??{};if(!Array.isArray(a.fields))return console.warn(`"ui:steps" step ${t+1} has no "fields" array; dropped.`),null;const n=a.fields.filter(s=>typeof s!="string"||!r.includes(s)?(console.warn(`"ui:steps" step ${t+1} names unknown field "${s}"; dropped.`),!1):i.has(s)?(console.warn(`"ui:steps" step ${t+1} repeats field "${s}"; keeping its first occurrence.`),!1):(i.add(s),!0));return n.length===0?(console.warn(`"ui:steps" step ${t+1} has no usable fields; dropped.`),null):{title:typeof a.title=="string"&&a.title?a.title:`Step ${t+1}`,...typeof a.description=="string"&&a.description&&{description:a.description},fields:n}},tR=(e,t)=>{const r=e==null?void 0:e["ui:steps"];if(!r)return null;if(typeof r!="object"||!Array.isArray(r.steps))return O1('"steps" must be an array'),null;const i=Object.keys(t.properties??{}),a=new Set,n=r.steps.map((o,l)=>eR(o,l,i,a)).filter(o=>!!o);if(n.length<2)return O1("fewer than two usable steps"),null;const s=i.filter(o=>!a.has(o));return s.length>0&&(console.warn(`"ui:steps" leaves fields unassigned (${s.join(", ")}); appending them to the last step.`),n[n.length-1].fields.push(...s)),{config:Qz(r.config),steps:n}},rR={StepsNavigation:({layout:e,items:t,currentIndex:r,onNavigate:i,children:a})=>{const n=t[r];return N.jsxs("div",{className:`fcode-steps fcode-steps-layout-${e}`,children:[N.jsx("ol",{className:"fcode-steps-nav","aria-label":"Form steps",children:t.map(s=>N.jsx("li",{className:"fcode-steps-nav-item",children:N.jsxs("button",{type:"button",className:en("fcode-steps-item",{"is-completed":s.status==="completed","is-current":s.status==="current","is-upcoming":s.status==="upcoming","has-errors":s.hasErrors}),disabled:!s.clickable,"aria-current":s.status==="current"?"step":void 0,onClick:()=>i(s.index),children:[N.jsx("span",{className:"fcode-steps-item-counter","aria-hidden":"true",children:s.index+1}),N.jsx("span",{className:"fcode-steps-item-title",children:s.title})]})},s.index))}),N.jsxs("div",{className:"fcode-steps-main",children:[n&&N.jsxs("div",{className:"fcode-steps-header",children:[N.jsx("h3",{className:"fcode-steps-title",children:n.title}),n.description&&N.jsx("p",{className:"fcode-steps-description",children:n.description})]}),N.jsx("div",{className:"fcode-steps-panel",children:a})]})]})},BackButton:({label:e,onClick:t,disabled:r})=>N.jsx("button",{type:"button",className:"btn btn-light fcode-steps-back",disabled:r,onClick:t,children:e})},Dl=(e,t)=>Object.fromEntries(Object.entries(e??{}).filter(([r])=>t.includes(r))),nR=(e,t)=>{const r=e.dependencies??{},i=new Set,a=n=>{Object.keys(n.properties??{}).forEach(s=>i.add(s)),(n.oneOf??[]).forEach(s=>Object.keys((s==null?void 0:s.properties)??{}).forEach(o=>i.add(o)))};for(const n of t){const s=r[n];s&&typeof s=="object"&&!Array.isArray(s)&&a(s)}return t.forEach(n=>i.delete(n)),[...i]},iR=(e,t)=>{const r=e,i=Object.entries(Dl(r.dependencies,t)).reduce((a,[n,s])=>{if(Array.isArray(s)){const o=s.filter(l=>t.includes(l));o.length>0&&(a[n]=o)}else a[n]=s;return a},{});return{...e,properties:Dl(r.properties,t),...Array.isArray(r.required)&&{required:r.required.filter(a=>t.includes(a))},...r.dependencies&&{dependencies:i}}},aR=(e,t)=>Object.fromEntries(Object.entries(e??{}).filter(([r])=>t.includes(r)||r.startsWith("ui:")&&r!=="ui:steps"&&r!=="ui:submitButtonOptions")),sR=({parsed:e,components:t,...r})=>{var J,Y;const{steps:i,config:a}=e,n=r.schema,s=r.uiSchema,[o,l]=V.useState(0),[u,c]=V.useState(0),[f,p]=V.useState({...r.formData??{}}),d=V.useRef({}),m=V.useMemo(()=>i.map(X=>[...X.fields,...nR(n,X.fields)]),[i,n]),k=V.useMemo(()=>i.map((X,P)=>({schema:iR(n,X.fields),uiSchema:aR(s,m[P])})),[i,n,s,m]),v=r.extraErrors,g=V.useMemo(()=>m.map(X=>X.some(P=>!!v&&P in v)),[m,v]);V.useEffect(()=>{const X=g.findIndex(Boolean);X>=0&&l(X)},[v]),V.useEffect(()=>{d.current=Dl(f,m[o])},[o]);const b=(X,P,M)=>({...Object.fromEntries(Object.entries(X).filter(([U])=>!m[M].includes(U))),...P}),w=X=>{p(P=>b(P,d.current,o)),l(X)},E=r.readonly===!0||r.disabled===!0||(s==null?void 0:s["ui:readonly"])===!0,h=X=>X!==o&&(E||X<=u),y=X=>{h(X)&&w(X)},C=o===i.length-1,x=(X,P)=>{const M=b(f,X.formData??{},o);if(p(M),C){r.onSubmit&&r.onSubmit({...X,formData:M},P);return}l(o+1),c(U=>Math.max(U,o+1))},_=X=>{d.current=X.formData??{},r.onChange&&r.onChange(X)},S=i.map((X,P)=>({index:P,title:X.title,description:X.description,status:P<o?"completed":P===o?"current":"upcoming",clickable:h(P),hasErrors:g[P]})),{StepsNavigation:A,BackButton:O}=t,F=(Y=(J=r.templates)==null?void 0:J.ButtonTemplates)==null?void 0:Y.SubmitButton,T=ef(s??{}),j={"ui:submitButtonOptions":C?T:{...T,submitText:a.nextLabel,norender:!1}},q={translateString:X=>X};return N.jsx(A,{layout:a.layout,items:S,currentIndex:o,onNavigate:y,children:N.jsx(x1,{...r,schema:k[o].schema,uiSchema:k[o].uiSchema,formData:Dl(f,m[o]),onChange:_,onSubmit:x,children:N.jsxs("div",{className:"fcode-steps-actions",children:[o>0&&N.jsx(O,{label:a.backLabel,onClick:()=>w(o-1)}),F&&N.jsx(F,{uiSchema:j,registry:q})]})},o)})},oR=(e,t)=>e&&e in os?cl({},os[e]):t&&t in os?cl({},os[t]):cl({},os.en),_1=({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;Jd(l);const p=V.useMemo(()=>oR(a,n),[a,n]),d=V.useMemo(()=>tR(c.uiSchema,c.schema),[c.uiSchema,c.schema]),m={id:e,validator:s||p,className:en(["fcode-form",o,{[`theme-${f}`]:f}]),fields:{...kL,...u==null?void 0:u.fields,...i},templates:{...nk.templates,...u==null?void 0:u.templates,...t},widgets:{...nk.widgets,...u==null?void 0:u.widgets,...r},...c};return d?N.jsx(sR,{parsed:d,components:(u==null?void 0:u.multistep)??rR,...m}):N.jsx(x1,{...m})},P1={theme:"light",loadingOverlayDisabled:!1,loadingOverlayContent:"Sending information...",loadingContent:"Loading form...",locale:"en"},Dd=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,processId:i,processVersion:a,onNextStep:n=C0,onSuccess:s,keepSuccessView:o=!1,onError:l,markdownComponents:u,defaultValues:c={},async:f=!1,disabled:p=!1,readonly:d=!1,options:m,...k})=>{const[v,g]=V.useState({processId:i,steps:[],variables:{...m&&m.variables}}),[b]=Q1({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:m==null?void 0:m.locale,async:f}),w=V.useMemo(()=>{const B=Hd();return console.log(`Building Factorial Code form with id ${B}`),B},[r,v]),E=V.useMemo(()=>{const B=c||{};return window.location.search?{...B,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:B},[c]),[h,y]=V.useState(!1),[C,x]=V.useState(E),[_,S]=V.useState({}),[A,O]=V.useState(null),F=V.useCallback(B=>{S({}),y(!0),x(B.formData),b({metadata:{origin:{url:window.location.href,browser:{language:navigator.language,userAgent:navigator.userAgent}},...v.steps.length>0&&{steps:v.steps},...Object.keys(v.variables).length>0&&{variables:v.variables},...m&&m.locale&&{locale:m.locale}},...B.formData}).then(({results:R,resolvedFiles:H})=>{if(x(E),R.nextProcessId){const G=v.steps;G.push({processId:v.processId,data:{...B.formData,...H},result:R}),g({processId:R.nextProcessId,steps:G,variables:{...v.variables,...R.variables}}),n(R.nextProcessId,R);return}s?s(w,R,B.formData):(console.log(`Form ${w} has been successfully submitted.`),xs("fcode-forms-on-submit-success",{formId:w,formSubmittedData:B.formData,processExecutionResult:R})),(!s||o)&&O({kind:"success",message:R.message||E0}),!s&&R.redirect&&S0(R.redirect)}).catch(R=>{R!=null&&R.formErrors?S(_0(R==null?void 0:R.formErrors)):l?l(w,R,B.formData):(console.log(`There has been an error submitting the form ${w}`,R),xs("fcode-forms-on-submit-error",{formId:w,error:R}),O({kind:"error",message:A0(R)}))}).finally(()=>y(!1))},[w,E,s,o,l,b,v]),{loading:T,formSpecs:j,error:q}=e0({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:m==null?void 0:m.locale}),J={...P1,...m};Jd(J),V.useEffect(()=>{q&&(l?l(w,q,{}):(console.log(`There has been an error submitting the form ${w}`,q),xs("fcode-forms-on-submit-error",{formId:w,error:q})))},[q]);const Y=en(["fcode-form-wrapper",J.className]);if(T)return N.jsx("div",{className:en([Y,"fcode-form-loading"]),"data-testid":"fcode-form",children:N.jsx(mp,{active:!0,content:J.loadingContent,children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx(hp,{})})})});if(q||!j)return N.jsx("div",{className:Y,"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:O0(q)})})});j.schema.embedFormOptions={...P1,...j.schema.embedFormOptions,...m,variables:{...j.schema.embedFormOptions&&j.schema.embedFormOptions.variables,...v.variables,...m&&m.variables}};const X=gh(j),P=Object.keys(X.schema.properties||{}),M=Object.fromEntries(Object.entries(C).filter(([B,R])=>P.includes(B)));if(A)return N.jsx("div",{className:en(["fcode-form-wrapper",X.embedFormOptions.className]),"data-testid":"fcode-form",children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx("div",{className:en(["fcode-form-markdown",A.kind==="success"?"fcode-form-success-message":"fcode-form-error-message"]),"data-testid":`fcode-form-${A.kind}-message`,children:N.jsx(Vu,{components:u,children:A.message})})})});const{loadingOverlayDisabled:U,loadingOverlayContent:I,locale:D,fallbackLocale:L}=X.embedFormOptions;return N.jsx("div",{className:en(["fcode-form-wrapper",X.embedFormOptions.className]),"data-testid":"fcode-form",children:N.jsx(mp,{active:h,content:I,disabled:U,children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx(_1,{id:w,schema:X.schema,uiSchema:X.uiSchema,embedFormOptions:X.embedFormOptions,locale:D,fallbackLocale:L,formData:M,onSubmit:F,noHtml5Validate:!0,disabled:p,readonly:d,showErrorList:!1,extraErrors:_,...k},w)})})})};Dd.displayName="FcodeForm",Xe.FcodeForm=Dd,Xe.FcodeJsonSchemaForm=_1,Xe.buildId=Hd,Xe.default=Dd,Xe.processFormSpecs=gh,Object.defineProperties(Xe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
144
+ `),endPos:a.end}:null}function Pd(e,t,r){ys=0,e=Pq(e),!t.refs&&(t.refs={}),(r.optimizeForStreaming||t.inline)&&(t.w=e$(e,t.refs,r));var i,a;t.t||(t.t=i=[],t.p=a=[]);let n=$n(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=Gr(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 p=a,d=0;d<p.length;d++)for(var m=p[d],k=0;k<m.src.length;k++){var v=m.src[k];if(m.unwrap&&v.type===ne.paragraph)for(var g=v.children,b=0;b<g.length;b++)m.dest.push(g[b]);else m.dest.push(v)}t.t=void 0,t.p=void 0,_d(n,t,r.slugify)}return qk(t.refs)?[{type:ne.refCollection,refs:t.refs},...n]:n}var Id;try{ua=Zr.createElement("div"),Id=ua!=null&&typeof ua=="object"&&"$$typeof"in ua&&typeof ua.$$typeof=="symbol"?ua.$$typeof:Symbol.for("react.transitional.element")}catch{Id=Symbol.for("react.transitional.element")}var ua;function Td(e,t,r){return{$$typeof:Id,type:e,key:r==null?null:String(r),ref:null,props:t,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function kr(e,t){var r={key:e};if(t){var i=Nk(t);for(var a in i)r[a]=i[a]}return r}var g1=typeof Zr.createContext>"u"?void 0:Zr.createContext(void 0);function y1(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(),gi)}`,e.children.unshift(Nq(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?Fn(e.lang):"";var u=e.attrs?Nk(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(aa(o)&&Uk(g.tag)){var c=Rk(g);return c.kind==="literal"?i("span",{key:r.key},c.literal):i("span",{key:r.key},...Lq(c.open,g.children?t(g.children,r):null,c.close))}let b=g.j,w=b!==void 0,E=w?b:g.a?g.e||"":(g.e||"")+(g.h||"");if(E&&g.c){let h=g.tag.toLowerCase(),y=Wq(h),C=g.children,x=C!=null&&C.length>0;if(y){let j=w?b:g.e||"",q=aa(o)?Bk(j):j;if(/<[a-z][^>]{0,100}>/i.test(E)){var f=kr(r.key,e.attrs);return f.dangerouslySetInnerHTML={__html:q},l(e.tag,f)}return l(e.tag,kr(r.key,e.attrs),q)}let _=new RegExp(`^<${g.tag}(\\s|>)`,"i");if(x&&!_.test(E)&&aa(o)&&Bq(E))return l(e.tag,kr(r.key,e.attrs),t(C,r));if(Gq(E)){let j=aa(o)?Bk(E):E;var p=kr(r.key,e.attrs);return p.dangerouslySetInnerHTML={__html:j},l(e.tag,p)}let S=dd({slugify:o.slugify,sanitizer:a,tagfilter:!0}),A=Iq(E);if(new RegExp(`^<${g.tag}(\\s[^>]*)?>(\\s*</${g.tag}>)?$`,"i").test(A))return g.children&&g.children.length>0?l(e.tag,kr(r.key,e.attrs),t(g.children,r)):l(e.tag,kr(r.key,e.attrs));let O=Pd(A,{inline:!1,refs:s,inHTML:!1},S);$k(O);let F=g.tag.toLowerCase(),T=w;if(T&&x)return l(e.tag,kr(r.key,e.attrs),t(C,r));if(T)return t(O.flatMap(ia),r);var d=Mq(O,F);if(d.found&&d.afterClose.length>0){var m=d.beforeClose.flatMap(ia),k=d.afterClose.flatMap(ia);return Td(Zr.Fragment,{children:[l(e.tag,kr(r.key,e.attrs),t(m,r)),t(k,r)]},r.key)}return l(e.tag,kr(r.key,e.attrs),t(O.flatMap(ia),r))}return ms(e.tag)?l(e.tag,kr(r.key,e.attrs)):l(e.tag,kr(r.key,e.attrs),e.children?t(e.children,r):"")}case ne.htmlSelfClosing:{let g=e;if(aa(o)&&Uk(g.tag)){var v=Rk(g);return i("span",{key:r.key},v.kind==="literal"?v.literal:v.open+(v.close||""))}return l(e.tag,kr(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 b=qq(e.target,a,"a","href");b!=null&&(g.href=b)}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(b,w){return i("th",{key:w,style:g.align[w]===null?{}:{textAlign:g.align[w]}},t(b,r))}))),g.cells.length>0&&i("tbody",{key:"tbody"},g.cells.map(function(b,w){return i("tr",{key:w},b.map(function(E,h){return i("td",{key:h,style:g.align[h]===null?{}:{textAlign:g.align[h]}},t(E,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(b,w){return i("li",{key:w},t(b,r))}))}case ne.paragraph:return i("p",{key:r.key},t(e.children,r));case ne.ref:return null;default:return null}}var O$=(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],p=(c.renderDepth||0)+1;if(p>2500)return o(f);c.renderDepth=p;for(var d=c.key,m=[],k=!1,v=0;v<f.length;v++){c.key=v;var g;if(e){var b=y1.bind(null,f[v],l,c,t,r,i,a,n,s);g=e(b,f[v],l,c)}else g=y1(f[v],l,c,t,r,i,a,n,s);var w=typeof g=="string";if(k&&typeof g=="string"){var E=m.at(-1);m[m.length-1]=(typeof E=="string"?E:"")+g}else if(g!=null)if(Array.isArray(g))for(var h=0;h<g.length;h++)m.push(g[h]);else m.push(g);k=w}return c.key=d,c.renderDepth=p-1,m};return l},_$=(e,t)=>{let r=fd(t,e,void 0);return r?typeof r=="function"||typeof r=="object"&&"render"in r?r:fd(t,`${e}.component`,e):e};function P$(e,t){let r={...t||{}};r.overrides=r.overrides||{};let i=r.slugify||gi,a=r.sanitizer||fn,n=r.createElement,s=qk(r.overrides),o=w=>Nd(w,{...r,wrapper:null});function l(w){for(var E in w){var h=w[E];if(typeof h=="string"&&h.length>0&&h.charCodeAt(0)===it&&(Vq.test(h)||Hq.test(h)||x$(h,0))){var y=o(h.trim());w[E]=E==="innerHTML"&&Array.isArray(y)?y[0]:y}}}function u(w,E,...h){var y=E||{},C=w;if(s){var x=fd(r.overrides,`${w}.props`,{});C=_$(w,r.overrides),y={...y,...x,className:Rq(y.className,x.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),Td(C,y,_)}return n(C,y,...h)}function c(w,E,...h){return E&&l(E),u(w,E,...h)}let f=dd(r,r.forceInline),p=e[0]&&e[0].type===ne.refCollection?e[0].refs:{},d=O$(r.renderRule,u,a,i,p,r,c),m=d(e,{inline:r.forceInline,refs:p}),k=$q(p);if(k.length>0&&m.push(u("footer",{key:"footer"},k.map(function(w){let E=w.identifier.charCodeAt(0)===cn?w.identifier.slice(1):w.identifier,h=Pd(w.footnote,{inline:!0,refs:p},f);return u("div",{id:i(E,gi),key:w.identifier},`${E}: `,d(h,{inline:!0,refs:p}))}))),r.wrapper===null)return m;let v=r.wrapper||(r.forceInline?"span":"div"),g;if(m.length>1||r.forceWrapper)g=m;else return m.length===1?m[0]:null;var b=r.wrapperProps?{...r.wrapperProps}:{};return b.children=g,Td(v,b,"outer")}function Nd(e="",t={}){let r={...t||{}};r.overrides=r.overrides||{},r.slugify,r.sanitizer;function i(n){let s=r.forceInline||!(r.forceBlock||Eq.test(n)),o=dd(r,s),l=s?n:Dq(n),u=Pd(l,{inline:s,refs:a},o);return P$(u,{...r,forceInline:s})}let a={};return i(e)}function I$(e){let t=Zr.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 Zr.useContext<"u")){let o={...t,overrides:{...t==null?void 0:t.overrides},wrapperProps:{...t==null?void 0:t.wrapperProps,...r}};return Nd(e??"",o)}let i=g1?Zr.useContext(g1):void 0,a=I$(r),n=Zr.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 Zr.useMemo(()=>Nd(s,n),[s,n])};const v1=Symbol("remove-this-key"),b1=Symbol("reset");function T$(e,t){return Array.isArray(e.required)&&e.required.includes(t)}function N$(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(Oe.NewStringDefault)}}function k1(e){return!!(e!=null&&e[hn])}function w1(e){return Object.keys(e).filter(t=>k1(e[t]))}function F$(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:p,hideError:d,propertyName:m,handleKeyRename:k,handleRemoveProperty:v,addedByAdditionalProperties:g}=e,[b,w]=V.useState(!1),{globalFormOptions:E,fields:h}=i,{SchemaField:y}=h,C=Yi(Or(m,E,t.path)),x=V.useCallback((O,F,T,j)=>{let q=O;O===void 0&&g&&(q=""),o(q,F,T,j)},[o,g]),_=V.useCallback(O=>{m!==O&&w(!0),k(m,O)},[m,k]),S=V.useCallback(O=>{const{target:{value:F}}=O;_(F)},[_]),A=V.useCallback(()=>{v(m)},[m,v]);return N.jsx(y,{name:m,required:p,schema:r,uiSchema:a,errorSchema:n,fieldPathId:C,formData:s,wasPropertyKeyModified:b,onKeyRename:_,onKeyRenameBlur:S,onRemoveProperty:A,onChange:x,onBlur:l,onFocus:u,registry:i,disabled:c,readonly:f,hideError:d})}const D$=V.memo(F$);function M$(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:p,onChange:d,registry:m,title:k}=e,{fields:v,schemaUtils:g,translateString:b,globalUiOptions:w}=m,{OptionalDataControlsField:E}=v,h=V.useRef(i);h.current=i;const y=V.useMemo(()=>g.retrieveSchema(t,i,!0),[g,t,i]),C=V.useMemo(()=>pe(r,w),[r,w]),x=V.useMemo(()=>y.properties??{},[y.properties]),_=e.childFieldPathId??n,S=V.useRef({previousKey:"",currentKey:void 0}),[A,O]=V.useState(()=>w1(x)),F=V.useMemo(()=>{const R=new Set(w1(x));return Object.keys(x).filter(H=>!R.has(H))},[x]),T=C.title??y.title??k??s,j=C.description??y.description,q=rs(m,y,o,r),J=Ji(i);let Y=[];const X=V.useCallback((R,H)=>{const{duplicateKeySuffixSeparator:G="-"}=pe(r,w);let Z=0,z=R;for(;$e(H,z);)Z+=1,z=`${R}${G}${Z}`;return z},[r,w]),P=V.useCallback(()=>{if(!(y.additionalProperties||y.patternProperties))return;const R={...i},H=X("newKey",R);if(y.patternProperties)ot(R,H,null);else{let G,Z,z;if(Re(y.additionalProperties)){G=y.additionalProperties.type,Z=y.additionalProperties.const,z=y.additionalProperties.default;let W=y.additionalProperties;at in W&&(W=g.retrieveSchema({[at]:W[at]},i),G=W.type,Z=W.const,z=g.getDefaultFormState(W,z)),!G&&(je in W||xe in W)&&(G="object")}const $=Z??z??N$(b,G);ot(R,H,$)}S.current.previousKey===H&&(S.current.currentKey=H,S.current.previousKey=X(H,R)),O(G=>[...G,H]),d(R,_.path)},[i,d,b,g,_,X,y]),M=V.useCallback((R,H)=>{if(R!==H){const G=h.current,Z=X(H,G),z={...G},$={[R]:Z},W=Object.keys(z).map(ie=>({[Object.hasOwn($,ie)?$[ie]:ie]:z[ie]})),K=Object.assign({},...W);h.current=K,R!==S.current.currentKey&&(S.current.previousKey=R),S.current.currentKey=Z,O(ie=>ie.map(re=>re===R?Z:re)),d(K,_.path)}},[d,_,X]),B=V.useCallback(R=>{O(H=>H.filter(G=>G!==R)),d(v1,[..._.path,R])},[d,_]),I=V.useCallback(R=>S.current.currentKey===R?S.current.previousKey:R,[]);if(!q||J)try{const R=new Set(F),H=A.filter(G=>Object.hasOwn(x,G)&&!R.has(G));Y=$D([...F,...H],C.order)}catch(R){return N.jsxs("div",{children:[N.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:N.jsx(vs,{options:{disableParsingRawHTML:!0},children:b(Oe.InvalidObjectField,[s||"root",R.message])})}),N.jsx("pre",{children:JSON.stringify(y)})]})}const D=ge("ObjectFieldTemplate",m,C),L=q?N.jsx(E,{...e,fieldPathId:_,schema:y}):void 0,U={title:C.label===!1?"":T,description:C.label===!1?void 0:j,properties:Y.map(R=>{var $;const H=k1(($=y.properties)==null?void 0:$[R]),G=H?r.additionalProperties:r[R],Z=pe(G).widget==="hidden";return{content:N.jsx(D$,{propertyName:R,required:T$(y,R),schema:ae(y,[ze,R],{}),uiSchema:G,errorSchema:ae(a,[R]),fieldPathId:_,formData:ae(i,[R]),handleKeyRename:M,handleRemoveProperty:B,addedByAdditionalProperties:H,onChange:d,onBlur:f,onFocus:p,registry:m,disabled:l,readonly:u,hideError:c},I(R)),name:R,readonly:u,disabled:l,required:o,hidden:Z}}),readonly:u,disabled:l,required:o,fieldPathId:n,uiSchema:r,errorSchema:a,schema:y,formData:i,registry:m,optionalDataControl:L,className:q?"rjsf-optional-object-field":void 0};return N.jsx(D,{...U,onAddProperty:P})}function j$(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:p}=u,d=pe(r,c),m=ge("OptionalDataControlsTemplate",u,d),k=Ji(i);let v,g,b,w;if(a||n)v=of(l,"Msg"),g=k?void 0:p(Oe.OptionalObjectEmptyMsg);else{const E=k?Oe.OptionalObjectRemove:Oe.OptionalObjectAdd;g=p(E),k?(v=of(l,"Remove"),w=()=>s(void 0,l.path,o)):(v=of(l,"Add"),b=()=>{let h=f.getDefaultFormState(t,i,"excludeObjectChildren");h===void 0&&(h=pr(t)==="array"?[]:{}),s(h,l.path,o)})}return g&&N.jsx(m,{id:v,registry:u,schema:t,uiSchema:r,label:g,onAddClick:b,onRemoveClick:w})}const L$={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function q$(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=pr(e),o=Array.isArray(s)?s[0]:s||"",l=e.$id;let u=L$[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 $$(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:p,wasPropertyKeyModified:d=!1}=e,{schemaUtils:m,globalFormOptions:k,globalUiOptions:v,fields:g}=p,{AnyOfField:b,OneOfField:w,CyclicSchemaField:E}=g,h=r[tt],y=V.useCallback((ke,Pe,de,Ke)=>o(ke,Pe,de,Ke||h),[h,o]);if(t[tc])return N.jsx(E,{...e});const C=zD(t,i,p),x=pe(C,v),_=ge("FieldTemplate",p,x),S=ge("DescriptionFieldTemplate",p,x),A=ge("FieldHelpTemplate",p,x),O=ge("FieldErrorTemplate",p,x),F=m.retrieveSchema(t,a),T=q$(F,x,p),q=!!F.deprecated?x.deprecatedHandling??"label":void 0,J=!!(x.disabled??e.disabled)||q==="disable",Y=!!(x.readonly??(e.readonly||e.schema.readOnly||F.readOnly)),X=x.hideError,P=X===void 0?e.hideError:!!X,M=!!(x.autofocus??e.autofocus);if(Object.keys(F).length===0)return null;let B=m.getDisplayLabel(F,C,v);const I=x.field&&x.fieldReplacesAnyOrOneOf===!0;let D,L,U={fieldPathId:r};if((je in F||xe in F)&&!I&&!m.isSelect(F)){F[je]?(D=b,L=F[je].map(de=>m.retrieveSchema(Re(de)?de:{},a))):F[xe]&&(D=w,L=F[xe].map(de=>m.retrieveSchema(Re(de)?de:{},a)));const ke=rs(p,F,f,C),Pe=Ji(a);B=B&&(!ke||Pe),U={childFieldPathId:r,fieldPathId:Or("XxxOf",k,r)}}const{__errors:R,...H}=n||{},G=Ha(C,["ui:classNames","classNames","ui:style"]);gn in G&&(G[gn]=Ha(G[gn],["classNames","style"]));const Z=N.jsx(T,{...e,onChange:y,...U,schema:F,uiSchema:G,disabled:J,readonly:Y,hideError:P,autofocus:M,errorSchema:H,rawErrors:R}),z=r[tt];let $;d?$=s:$=hn in F?s:x.title||e.schema.title||F.title||e.title||s,q==="label"&&($=p.translateString(Oe.DeprecatedLabel,[$]));const W=x.description||e.schema.description||F.description||"",{help:K}=x,ie=x.widget==="hidden"||q==="hide",re=["rjsf-field",`rjsf-field-${pr(F)}`];!P&&R&&R.length>0&&re.push("rjsf-field-error"),x.classNames&&re.push(x.classNames);const ue=N.jsx(A,{help:K,fieldPathId:r,schema:F,uiSchema:C,hasErrors:!P&&R&&R.length>0,registry:p}),ye=P||D&&!m.isSelect(F)?void 0:N.jsx(O,{errors:R,errorSchema:n,fieldPathId:r,schema:F,uiSchema:C,registry:p}),Se={description:N.jsx(S,{id:xn(z),description:W,schema:F,uiSchema:C,registry:p}),rawDescription:W,help:ue,rawHelp:typeof K=="string"?K:void 0,errors:ye,rawErrors:P?void 0:R,fieldPathId:r,id:z,label:$,hidden:ie,onChange:o,onKeyRename:l,onKeyRenameBlur:u,onRemoveProperty:c,required:f,disabled:J,readonly:Y,hideError:P,displayLabel:B,classNames:re.join(" ").trim(),style:x.style,formData:a,schema:F,uiSchema:C,registry:p};return N.jsx(_,{...Se,children:N.jsxs(N.Fragment,{children:[Z,D&&N.jsx(D,{name:s,disabled:J,readonly:Y,hideError:P,errorSchema:n,formData:a,fieldPathId:r,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:L,registry:p,required:f,schema:F,uiSchema:C})]})})}const z$=V.memo($$,(e,t)=>{const{experimental_componentUpdateStrategy:r="customDeep"}=t.registry.globalFormOptions;return r==="always"?!1:r==="shallow"?cf(e,t):Ue(e,t)});function R$(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:p,registry:d,rawErrors:m,hideError:k,title:v}=e,{title:g,format:b}=t,{widgets:w,schemaUtils:E,globalUiOptions:h}=d,y=E.isSelect(t)?si(t,i):void 0;let C=y?"select":"text";b&&DD(t,b,w)&&(C=b);const{widget:x=C,placeholder:_="",title:S,...A}=pe(i),O=E.getDisplayLabel(t,i,h),F=S??v??g??r,T=Vr(t,x,w),j=V.useCallback((q,J,Y)=>c(q,a.path,J,Y),[c,a]);return N.jsx(T,{options:{...A,enumOptions:y},schema:t,uiSchema:i,id:a.$id,name:r,label:F,hideLabel:!O,hideError:k,value:n,onChange:j,onBlur:f,onFocus:p,required:s,disabled:o,readonly:l,autofocus:u,registry:d,placeholder:_,rawErrors:m,htmlName:a.name})}function U$(){return{AnyOfField:Ok,ArrayField:NL,BooleanField:FL,CyclicSchemaField:DL,FallbackField:qL,LayoutGridField:id,LayoutHeaderField:aq,LayoutMultiSchemaField:sq,NumberField:cq,ObjectField:M$,OneOfField:Ok,OptionalDataControlsField:j$,SchemaField:z$,StringField:R$,NullField:oq}}function B$(e){const{fieldPathId:t,description:r,registry:i,schema:a,uiSchema:n}=e,s=pe(n,i.globalUiOptions),{label:o=!0}=s;if(!r||!o)return null;const l=ge("DescriptionFieldTemplate",i,s);return N.jsx(l,{id:xn(t),description:r,schema:a,uiSchema:n,registry:i})}function V$(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:p,uiSchema:d}=e,{CopyButton:m,MoveDownButton:k,MoveUpButton:v,RemoveButton:g}=p.templates.ButtonTemplates;return N.jsxs(N.Fragment,{children:[(a||i)&&N.jsx(v,{id:rr(s,"moveUp"),className:"rjsf-array-item-move-up",disabled:t||f||!a,onClick:c,uiSchema:d,registry:p}),(a||i)&&N.jsx(k,{id:rr(s,"moveDown"),className:"rjsf-array-item-move-down",disabled:t||f||!i,onClick:u,uiSchema:d,registry:p}),r&&N.jsx(m,{id:rr(s,"copy"),className:"rjsf-array-item-copy",disabled:t||f,onClick:o,uiSchema:d,registry:p}),n&&N.jsx(g,{id:rr(s,"remove"),className:"rjsf-array-item-remove",disabled:t||f,onClick:l,uiSchema:d,registry:p})]})}function H$(e){const{children:t,className:r,buttonsProps:i,displayLabel:a,hasDescription:n,hasToolbar:s,registry:o,uiSchema:l}=e,u=pe(l),c=ge("ArrayFieldItemButtonsTemplate",o,u),f={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},p=n?31:9,d={display:"flex",alignItems:a?"center":"baseline"},m={display:"flex",justifyContent:"flex-end",marginTop:a?`${p}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:m,children:N.jsx(c,{...i,style:f})})})]})}function K$(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:p,title:d}=e,m=pe(n),k=ge("ArrayFieldDescriptionTemplate",c,m),v=ge("ArrayFieldTitleTemplate",c,m),g=!u&&!i,{ButtonTemplates:{AddButton:b}}=c.templates;return N.jsxs("fieldset",{className:r,id:a.$id,children:[N.jsx(v,{fieldPathId:a,title:m.title||d,required:f,schema:p,uiSchema:n,registry:c,optionalDataControl:g?o:void 0}),N.jsx(k,{fieldPathId:a,description:m.description||p.description,schema:p,uiSchema:n,registry:c}),g?void 0:o,N.jsx("div",{className:"row array-item-list",children:s}),t&&N.jsx(b,{id:rr(a,"add"),className:"rjsf-array-item-add",onClick:l,disabled:i||u,uiSchema:n,registry:c})]})}function W$(e){const{fieldPathId:t,title:r,schema:i,uiSchema:a,required:n,registry:s,optionalDataControl:o}=e,l=pe(a,s.globalUiOptions),{label:u=!0}=l;if(!r||!u)return null;const c=ge("TitleFieldTemplate",s,l);return N.jsx(c,{id:yo(t),title:r,required:n,schema:i,uiSchema:a,registry:s,optionalDataControl:o})}function G$(e){const{id:t,schema:r}=e,{examples:i,default:a}=r;return Array.isArray(i)?N.jsx("datalist",{id:af(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 J$(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:p,schema:d,uiSchema:m,registry:k,rawErrors:v,type:g,hideLabel:b,hideError:w,...E}=e,{ClearButton:h}=k.templates.ButtonTemplates;if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const y={...E,...xD(d,g,p)};let C;y.type==="number"||y.type==="integer"?C=a||a===0?a:"":C=a??"";const x=V.useCallback(({target:{value:O}})=>c(O===""?p.emptyValue:O),[c,p]),_=V.useCallback(({target:O})=>l(t,O==null?void 0:O.value),[l,t]),S=V.useCallback(({target:O})=>u(t,O==null?void 0:O.value),[u,t]),A=V.useCallback(O=>{O.preventDefault(),O.stopPropagation(),c(p.emptyValue??"")},[c,p.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:C,...y,list:d.examples?af(t):void 0,onChange:f||x,onBlur:_,onFocus:S,"aria-describedby":xr(t,!!d.examples)}),p.allowClearTextInputs&&!n&&!s&&C&&N.jsx(h,{registry:k,onClick:A}),N.jsx(G$,{id:t,schema:d})]})}function Y$(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 zn=V.memo(Y$);function X$(e){const{registry:{translateString:t}}=e;return N.jsx(zn,{title:t(Oe.CopyButton),...e,icon:"copy"})}const Z$=V.memo(X$);function Q$(e){const{registry:{translateString:t}}=e;return N.jsx(zn,{title:t(Oe.MoveDownButton),...e,icon:"arrow-down"})}const ez=V.memo(Q$);function tz(e){const{registry:{translateString:t}}=e;return N.jsx(zn,{title:t(Oe.MoveUpButton),...e,icon:"arrow-up"})}const rz=V.memo(tz);function nz(e){const{registry:{translateString:t}}=e;return N.jsx(zn,{title:t(Oe.RemoveButton),...e,iconType:"danger",icon:"remove"})}const iz=V.memo(nz);function az({id:e,className:t,onClick:r,disabled:i,registry:a,...n}){const{translateString:s}=a;return N.jsx(zn,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:s(Oe.ClearButton),onClick:r,disabled:i,registry:a,...n})}const sz=V.memo(az);function oz({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(zn,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:n(Oe.AddButton),onClick:r,disabled:i,registry:a})})})}function lz({uiSchema:e}){const{submitText:t,norender:r,props:i={}}=ef(e);return r?null:N.jsx("div",{children:N.jsx("button",{type:"submit",...i,className:`btn btn-info ${i.className||""}`,children:t})})}function uz(){return{SubmitButton:lz,AddButton:oz,CopyButton:Z$,MoveDownButton:ez,MoveUpButton:rz,RemoveButton:iz,ClearButton:sz}}function cz(e){const{name:t,fieldPathId:r,registry:i,onExpand:a}=e,{translateString:n}=i,s=`${r[tt]}-button`;return N.jsxs("div",{style:{marginTop:"1rem"},children:[N.jsx("div",{className:"text-danger",children:n(Oe.CycleDetected,[t])}),N.jsxs("div",{children:[N.jsx("button",{id:s,type:"button",className:"btn btn-sm btn-warning",onClick:()=>a(r[tt]),children:n(Oe.ExpandButton)})," "]})]})}const S1=tf();function C1({description:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return pe(r,i).enableMarkdownInDescription&&typeof e=="string"?N.jsx(vs,{options:{disableParsingRawHTML:!0},"data-testid":S1.markdown,children:e}):e}C1.TEST_IDS=S1;function fz(e){const{id:t,description:r,registry:i,uiSchema:a}=e;return r?N.jsx("div",{id:t,className:"field-description",children:N.jsx(C1,{description:r,registry:i,uiSchema:a})}):null}function dz({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(Oe.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 pz(e){const{schema:t,registry:r,typeSelector:i,schemaField:a}=e,n=ge("MultiSchemaFieldTemplate",r);return N.jsx(n,{selector:i,optionSchemaField:a,schema:t,registry:r})}function mz(e){const{errors:t=[],fieldPathId:r}=e;if(t.length===0)return null;const i=nf(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 E1=tf();function A1({help:e,registry:t,uiSchema:r={}}){const{globalUiOptions:i}=t;return pe(r,i).enableMarkdownInHelp&&typeof e=="string"?N.jsx(vs,{options:{disableParsingRawHTML:!0},"data-testid":E1.markdown,children:e}):e}A1.TEST_IDS=E1;function hz(e){const{fieldPathId:t,help:r,uiSchema:i,registry:a}=e;return r?N.jsx("div",{id:sf(t),className:"help-block",children:N.jsx(A1,{help:r,registry:a,uiSchema:i})}):null}const gz="*";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:gz})]}):null}function yz(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,p=pe(f),d=ge("WrapIfAdditionalTemplate",c,p);if(o)return N.jsx("div",{className:"hidden",children:i});const m=p.widget==="checkbox";return N.jsxs(d,{...e,children:[u&&!m&&N.jsx(x1,{label:r,required:l,id:t}),u&&s?s:null,i,a,n]})}function vz(e){const{children:t,column:r,className:i,...a}=e;return N.jsx("div",{className:i,...a,children:t})}function bz(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 kz(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:p,title:d,uiSchema:m}=e,k=pe(m),v=ge("TitleFieldTemplate",c,k),g=ge("DescriptionFieldTemplate",c,k);if((p.oneOf||p.anyOf)&&!p.properties&&l.length===0)return null;const w=!u&&!i,{ButtonTemplates:{AddButton:E}}=c.templates;return N.jsxs("fieldset",{className:t,id:n.$id,children:[d&&N.jsx(v,{id:yo(n),title:d,required:f,schema:p,uiSchema:m,registry:c,optionalDataControl:w?o:void 0}),r&&N.jsx(g,{id:xn(n),description:r,schema:p,uiSchema:m,registry:c}),w?void 0:o,l.map(h=>h.content),Oh(p,m,a)&&N.jsx(E,{id:rr(n,"add"),className:"rjsf-object-property-expand",onClick:s,disabled:i||u,uiSchema:m,registry:c})]})}function wz(e){const{id:t,registry:r,label:i,onAddClick:a,onRemoveClick:n}=e;return a?N.jsx(zn,{id:t,registry:r,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:a,title:i}):n?N.jsx(zn,{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 Sz="*";function Cz(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:Sz}),a&&N.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:a})]})}function Ez(e){const{schema:t,fieldPathId:r,reason:i,registry:a}=e,{translateString:n}=a;let s=Oe.UnsupportedField;const o=[];return r!=null&&r.$id&&(s=Oe.UnsupportedFieldWithId,o.push(r.$id)),i&&(s=s===Oe.UnsupportedField?Oe.UnsupportedFieldWithReason:Oe.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 Az(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:p,hideError:d,rawErrors:m,children:k,uiSchema:v,registry:g}=e,{templates:b,translateString:w}=g,{RemoveButton:E}=b.ButtonTemplates,h=w(Oe.KeyLabel,[s]),y=hn in p,C=!!u,x=["form-group",r];!d&&m&&m.length>0&&x.push("has-error has-danger");const _=x.join(" ").trim();if(!y)return N.jsx("div",{className:_,style:i,children:k});const S=C?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:k}),N.jsx("div",{className:"col-xs-2",style:{marginTop:n?`${S}px`:void 0},children:N.jsx(E,{id:rr(t,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:a||c,onClick:l,uiSchema:v,registry:g})})]})})}function xz(){return{ArrayFieldDescriptionTemplate:B$,ArrayFieldItemTemplate:H$,ArrayFieldItemButtonsTemplate:V$,ArrayFieldTemplate:K$,ArrayFieldTitleTemplate:W$,ButtonTemplates:uz(),BaseInputTemplate:J$,CyclicSchemaExpandTemplate:cz,DescriptionFieldTemplate:fz,ErrorListTemplate:dz,FallbackFieldTemplate:pz,FieldTemplate:yz,FieldErrorTemplate:mz,FieldHelpTemplate:hz,GridTemplate:vz,MultiSchemaFieldTemplate:bz,ObjectFieldTemplate:kz,OptionalDataControlsTemplate:wz,TitleFieldTemplate:Cz,UnsupportedFieldTemplate:Ez,WrapIfAdditionalTemplate:Az}}function Oz({time:e=!0,...t}){const{AltDateWidget:r}=t.registry.widgets;return N.jsx(r,{time:e,...t})}function _z(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:p,handleClear:d,handleSetNow:m}=KD(e);return N.jsxs("ul",{className:"list-inline",children:[f.map((k,v)=>N.jsx("li",{className:"list-inline-item",children:N.jsx(HD,{rootId:n,name:s,select:p,...k,disabled:t,readonly:r,registry:o,onBlur:l,onFocus:u,autofocus:i&&v===0})},v)),(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:m,children:c(Oe.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(Oe.ClearLabel)})})]})}function Pz({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:p,emptyValue:d}=r,m=es(r),k=Array.isArray(i)?i:[i],v=V.useCallback(({target:b})=>o(e,Ar(b==null?void 0:b.value,f,m,d)),[o,e,f,d,m]),g=V.useCallback(({target:b})=>l(e,Ar(b==null?void 0:b.value,f,m,d)),[l,e,f,d,m]);return N.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map((b,w)=>{const E=Gi(b.value,k),h=Array.isArray(p)&&p.includes(b.value),y=t||h||n?"disabled":"",C=_=>{_.target.checked?s(Hy(w,k,f)):s(By(w,k,f))},x=N.jsxs("span",{children:[N.jsx("input",{type:"checkbox",id:vo(e,w),name:u||e,checked:E,value:Qa(b.value,w,m),disabled:t||h||n,autoFocus:a&&w===0,onChange:C,onBlur:v,onFocus:g,"aria-describedby":xr(e)}),N.jsx("span",{children:b.label})]});return c?N.jsx("label",{className:`checkbox-inline ${y}`,children:x},String(b.value)):N.jsx("div",{className:`checkbox ${y}`,children:N.jsx("label",{children:x})},String(b.value))})})}function Iz({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:p,registry:d,htmlName:m}){const k=ge("DescriptionFieldTemplate",d,r),v=ts(e),g=V.useCallback(C=>p(C.target.checked),[p]),b=V.useCallback(C=>c(i,C.target.checked),[c,i]),w=V.useCallback(C=>f(i,C.target.checked),[f,i]),y=pe(t).widget==="checkbox"?void 0:r.description??e.description;return N.jsxs("div",{className:`checkbox ${n||s?"disabled":""}`,children:[!l&&y&&N.jsx(k,{id:xn(i),description:y,schema:e,uiSchema:t,registry:d}),N.jsxs("label",{children:[N.jsx("input",{type:"checkbox",id:i,name:m||i,checked:typeof a>"u"?!1:a,required:v,disabled:n||s,autoFocus:u,onChange:g,onBlur:b,onFocus:w,"aria-describedby":xr(i)}),jD(N.jsx("span",{children:o}),l)]})]})}function Tz(e){const{disabled:t,readonly:r,options:i,registry:a}=e,n=ge("BaseInputTemplate",a,i);return N.jsx(n,{type:"color",...e,disabled:t||r})}function Nz(e){const{onChange:t,value:r,options:i,registry:a}=e,n=ge("BaseInputTemplate",a,i);return N.jsx(n,{type:"datetime-local",...e,value:XD(r),onChange:s=>t(LD(s))})}function Fz(e){const{onChange:t,options:r,registry:i}=e,a=ge("BaseInputTemplate",i,r),n=V.useCallback(s=>t(s||void 0),[t]);return N.jsx(a,{type:"date",...e,onChange:n})}function Dz(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{type:"email",...e})}function Mz({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:i,type:a,name:n}=e;if(!i)return null;const s=r(Oe.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 jz({filesInfo:e,registry:t,preview:r,onRemove:i,options:a}){if(e.length===0)return null;const{translateString:n}=t,{RemoveButton:s}=ge("ButtonTemplates",t,a);return N.jsx("ul",{className:"file-info",children:e.map((o,l)=>{const{name:u,size:c,type:f}=o,p=()=>i(l);return N.jsxs("li",{children:[N.jsx(vs,{children:n(Oe.FilesInfo,[u,f,String(c)])}),r&&N.jsx(Mz,{fileInfo:o,registry:t}),N.jsx(s,{onClick:p,registry:t})]},l)})})}function Lz(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}=YD(s,n,a),p=ge("BaseInputTemplate",l,o),d=m=>{m.target.files&&c(m.target.files)};return N.jsxs("div",{children:[N.jsx(p,{...e,disabled:t||r,type:"file",required:s?!1:i,onChangeOverride:d,value:"",accept:o.accept?String(o.accept):void 0}),N.jsx(jz,{filesInfo:u,onRemove:f,registry:l,preview:o.filePreview,options:o})]})}function qz({id:e,value:t,htmlName:r}){return N.jsx("input",{type:"hidden",id:e,name:r||e,value:typeof t>"u"?"":t})}function $z(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{type:"password",...e})}function zz({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:p,inline:d,emptyValue:m}=e,k=es(e),v=V.useCallback(({target:b})=>s(u,Ar(b==null?void 0:b.value,f,k,m)),[s,f,m,u,k]),g=V.useCallback(({target:b})=>o(u,Ar(b==null?void 0:b.value,f,k,m)),[o,f,m,u,k]);return N.jsx("div",{className:"field-radio-group",id:u,role:"radiogroup",children:Array.isArray(f)&&f.map((b,w)=>{const E=Gi(b.value,t),h=Array.isArray(p)&&p.includes(b.value),y=i||h||a?"disabled":"",C=()=>l(b.value),x=N.jsxs("span",{children:[N.jsx("input",{type:"radio",id:vo(u,w),checked:E,name:c||u,required:r,value:Qa(b.value,w,k),disabled:i||h||a,autoFocus:n&&w===0,onChange:C,onBlur:v,onFocus:g,"aria-describedby":xr(u)}),N.jsx("span",{children:b.label})]});return d?N.jsx("label",{className:`radio-inline ${y}`,children:x},String(b.value)):N.jsx("div",{className:`radio ${y}`,children:N.jsx("label",{children:x})},String(b.value))})})}function Rz(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 Uz({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:p=5,shape:d="star"}=c,m=u.maximum?Math.min(u.maximum,5):Math.min(Math.max(p,1),5),k=u.minimum||0,v=V.useCallback(E=>{!i&&!a&&s(E)},[s,i,a]),g=V.useCallback(E=>{if(o){const h=Number(E.target.dataset.value);o(e,h)}},[o,e]),b=V.useCallback(E=>{if(l){const h=Number(E.target.dataset.value);l(e,h)}},[l,e]),w=E=>d==="heart"?E?"♥":"♡":E?"★":"☆";return N.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:i||a?"default":"pointer"},children:[[...Array(m)].map((E,h)=>{const y=k+h,C=y<=t;return N.jsx("span",{onClick:()=>v(y),onKeyDown:x=>(x.key==="Enter"||x.key===" ")&&v(y),onFocus:g,onBlur:b,"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:C?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:w(C)},h)}),N.jsx("input",{type:"hidden",id:e,name:f||e,value:t||"",required:r,disabled:i||a,"aria-hidden":"true"})]})}function Fd(e,t){return t?Array.from(e.target.options).slice().filter(r=>r.selected).map(r=>r.value):e.target.value}function Bz({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:p,htmlName:d,registry:m,uiSchema:k}){const{enumOptions:v,enumDisabled:g,emptyValue:b}=r,w=o?[]:"",E=es(r),h=V.useCallback(S=>{const A=Fd(S,o);return f(t,Ar(A,v,E,b))},[f,t,o,v,b,E]),y=V.useCallback(S=>{const A=Fd(S,o);return c(t,Ar(A,v,E,b))},[c,t,o,v,b,E]),C=V.useCallback(S=>{const A=Fd(S,o);return u(Ar(A,v,E,b))},[u,o,v,b,E]),x=gD(i,v,o,E,w),_=!o&&e.default===void 0;return qD(t,e,v,o),N.jsxs(N.Fragment,{children:[N.jsx(RD,{id:t,multiple:o,options:r,registry:m,uiSchema:k,value:i}),N.jsxs("select",{id:t,name:d||t,multiple:o,className:"form-control",value:x,required:a,disabled:n||s,autoFocus:l,onBlur:y,onFocus:h,onChange:C,"aria-describedby":xr(t),children:[_&&N.jsx("option",{value:"",children:p}),Array.isArray(v)&&v.map(({value:S,label:A},O)=>{const F=g&&g.includes(S);return N.jsx("option",{value:Qa(S,O,E),disabled:F,children:A},String(S))})]})]})}function Vz({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 p=V.useCallback(({target:{value:k}})=>l(k===""?t.emptyValue:k),[l,t.emptyValue]),d=V.useCallback(({target:k})=>u(e,k==null?void 0:k.value),[u,e]),m=V.useCallback(({target:k})=>c(e,k==null?void 0:k.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:m,onChange:p,"aria-describedby":xr(e)})}function Hz(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{...e})}function Kz(e){const{onChange:t,options:r,registry:i}=e,a=ge("BaseInputTemplate",i,r),n=V.useCallback(s=>t(s?`${s}:00`:void 0),[t]);return N.jsx(a,{type:"time",...e,onChange:n})}function Wz(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{type:"number",...e})}function Gz(e){const{options:t,registry:r}=e,i=ge("BaseInputTemplate",r,t);return N.jsx(i,{type:"url",...e})}function Jz(){return{AltDateWidget:_z,AltDateTimeWidget:Oz,CheckboxWidget:Iz,CheckboxesWidget:Pz,ColorWidget:Tz,DateWidget:Fz,DateTimeWidget:Nz,EmailWidget:Dz,FileWidget:Lz,HiddenWidget:qz,PasswordWidget:$z,RadioWidget:zz,RangeWidget:Rz,RatingWidget:Uz,SelectWidget:Bz,TextWidget:Hz,TextareaWidget:Vz,TimeWidget:Kz,UpDownWidget:Wz,URLWidget:Gz}}function Yz(){return{fields:U$(),templates:xz(),widgets:Jz(),rootSchema:{},formContext:{},translateString:hD,globalFormOptions:{idPrefix:Sh,idSeparator:Ch,useFallbackUiForUnsupportedType:!1}}}function ca(e,t){return{...$y(e,["schema","uiSchema","fieldPathId","schemaUtils","formData","edit","errors","errorSchema"]),...t!==void 0&&{status:t}}}const Xz=class Ei extends V.Component{constructor(r){super(r);Jt(this,"formElement");Jt(this,"pendingChanges",[]);Jt(this,"isProcessingUserChange",!1);Jt(this,"getUsedFormData",(r,i)=>aD(r,i));Jt(this,"getFieldNames",(r,i)=>sD(r,i));Jt(this,"omitExtraData",r=>{const{schema:i,schemaUtils:a}=this.state;return a.omitExtraData(i,r)});Jt(this,"setFieldValue",(r,i)=>{const{registry:a}=this.state,n=Array.isArray(r)?r:r.split("."),s=Or("",a.globalFormOptions,n);this.onChange(i,n,void 0,s[tt])});Jt(this,"onChange",(r,i,a,n)=>{this.pendingChanges.push({newValue:r,path:i,newErrorSchema:a,id:n}),this.pendingChanges.length===1&&this.processPendingChange()});Jt(this,"reset",()=>{const{formData:r,initialFormData:i=b1,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(ca({...this.state,...o})))});Jt(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,p={formData:f};if(n===!0&&s==="onBlur"&&(f=this.omitExtraData(c),p={formData:f}),o==="onBlur"){const{schema:m,schemaUtils:k,errorSchema:v,customErrors:g,retrievedSchema:b}=this.state,w=this.liveValidate(m,k,v,f,u,g,b);p={formData:f,...w,customErrors:g}}const d=Object.keys(p).filter(m=>!m.startsWith("schemaValidation")).some(m=>{const k=ae(this.state,m),v=ae(p,m);return!Ue(k,v)});this.setState(p,()=>{l&&d&&l(ca({...this.state,...p}),r)})}});Jt(this,"onFocus",(r,i)=>{const{onFocus:a}=this.props;a&&a(r,i)});Jt(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?ff(a):[];this.setState({formData:o,errors:u,errorSchema:l,schemaValidationErrors:[],schemaValidationErrorSchema:{}},()=>{s&&s(ca({...this.state,formData:o},"submitted"),r)})}});Jt(this,"submit",()=>{if(this.formElement.current){const r=new CustomEvent("submit",{cancelable:!0});r.preventDefault(),this.formElement.current.dispatchEvent(r),this.formElement.current.requestSubmit()}});Jt(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?Ei.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&&!Ue(this.state.formData,s)&&n(ca(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}=ns(a,r.extraErrors)),i.customErrors&&({errors:n,errorSchema:s}=ns({errors:n,errorSchema:s},i.customErrors.ErrorSchema,!0)),{prevExtraErrors:r.extraErrors,errors:n,errorSchema:s}}return null}getSnapshotBeforeUpdate(r,i){if(!Ue(this.props,r)){const a=Gy(this.props.formData,r.formData),n=Gy(this.props.formData,this.state.formData),s=!Ue(r.schema,this.props.schema),o=a.length>0||!Ue(r.formData,this.props.formData),l=n.length>0||!Ue(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=!Ue(u,i);return{nextState:u,shouldUpdate:c}}return{shouldUpdate:!1}}componentDidUpdate(r,i,a){if(a.shouldUpdate){const{nextState:n}=a,s=!Ue(n.formData,this.props.formData),o=this.isProcessingUserChange;if(this.isProcessingUserChange=!1,o&&s)return;s&&!Ue(n.formData,i.formData)&&this.props.onChange&&this.props.onChange(ca(n)),this.setState(n)}}getStateFromProps(r,i,a,n=!1,s=[],o=!1,l=!1){var X;const u=this.state||{},c="schema"in r?r.schema:this.props.schema,f="validator"in r?r.validator:this.props.validator,p=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},d=r.formData===void 0&&this.props.formData===void 0,m=typeof i<"u",k="liveValidate"in r?r.liveValidate:this.props.liveValidate,v=m&&!r.noValidate&&k,g="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}=u;(!w||w.doesSchemaUtilsDiffer(f,c,g,b))&&(w=dD(f,c,g,b));const E=w.getRootSchema();let h=i;i===b1?h=void 0:i===void 0&&d&&(h=u.formData);let y,C,x=!1;const _=[];do{y=w.getDefaultFormState(E,h,!1,u.initialDefaultsGenerated);const P=l?hr({formData:y}):"";if(C=this.updateRetrievedSchema(a??w.retrieveSchema(E,y)),l&&!_.includes(P)&&!Ue(C,u.retrievedSchema)){const M=w.sanitizeDataForNewSchema(C,u.retrievedSchema,y);if(x=!Ue(M,y),x){y=M,h=M;const B=hr({formData:M});x=!_.includes(B),_.push(B)}_.push(P)}else x=!1}while(x);const S=()=>r.noValidate||n?{errors:[],errorSchema:{}}:r.liveValidate?{errors:u.errors||[],errorSchema:u.errorSchema||{}}:{errors:u.schemaValidationErrors||[],errorSchema:u.schemaValidationErrorSchema||{}};let A,O,{schemaValidationErrors:F,schemaValidationErrorSchema:T}=u;if(v&&!o){const P=this.liveValidate(E,w,u.errorSchema,y,void 0,u.customErrors,a,a!==void 0);A=P.errors,O=P.errorSchema,F=P.schemaValidationErrors,T=P.schemaValidationErrorSchema}else{const P=S();if(A=P.errors,O=P.errorSchema,s.length>0&&!v){const B=s.reduce((I,D)=>(I[D]=void 0,I),{});T=Sn(P.errorSchema,B,"preventDuplicates"),O=T}const M=Ei.mergeErrors({errorSchema:O,errors:A},r.extraErrors,u.customErrors);A=M.errors,O=M.errorSchema}const j=Ei.getRegistry(r,E,w),q=Ue(u.registry,j)?u.registry:j,J=u.fieldPathId&&((X=u.fieldPathId)==null?void 0:X[tt])===q.globalFormOptions.idPrefix?u.fieldPathId:Or("",q.globalFormOptions);return{schemaUtils:w,schema:E,uiSchema:p,fieldPathId:J,formData:y,edit:m,errors:A,errorSchema:O,schemaValidationErrors:F,schemaValidationErrorSchema:T,retrievedSchema:C,initialDefaultsGenerated:!0,registry:q}}shouldComponentUpdate(r,i){const{experimental_componentUpdateStrategy:a="customDeep"}=this.props;return UD(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=pe(s),l=ge("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=ns(r,i);n=o.errorSchema,s=o.errors}if(a){const o=ns({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:p}=c;u&&(p=Sn(a,c.errorSchema,"preventDuplicates"));const d=f,m=p;return{...Ei.mergeErrors({errorSchema:p,errors:f},s,o),schemaValidationErrors:d,schemaValidationErrorSchema:m}}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:p,readonly:d}=this.props,{formData:m,schemaUtils:k,schema:v,fieldPathId:g,schemaValidationErrorSchema:b,errors:w}=this.state;let{customErrors:E,retrievedSchema:h}=this.state,y=b;const C=g.path[0]||"",x=!i||i.length===0||i.length===1&&i[0]===C;let _=x?r:ho(m);const S=be(_)&&Object.keys(_).length>0&&Object.values(_).every(q=>q===void 0),A=m==null,O=S&&A?void 0:_;if(be(_)||Array.isArray(_)){let q=!1;if(r===v1)SL(_,i);else if(!x){let X=r;if(r===void 0)if(typeof i[i.length-1]=="number")X=null;else{const{field:M}=k.findFieldInSchema(v,i,m),B=M;!(B&&(xe in B||je in B))&&B!==void 0&&(q=!0)}q?ot(_,i,void 0):ot(_,i,X)}const J=h&&!x&&!be(r)&&!Array.isArray(r)&&!p&&!d,Y=this.getStateFromProps(this.props,O,void 0,void 0,void 0,!0,J);_=Y.formData,h=Y.retrievedSchema,q&&_&&ot(_,i,void 0)}const F=!u&&(c===!0||c==="onChange");let T={formData:_,retrievedSchema:h},j=_;if(o===!0&&(l===!0||l==="onChange")&&(j=this.omitExtraData(_),T={...T,formData:j}),n){const q=x?b:ae(b,i);if(!kt(q))x?y=n:(y=ho(b),ot(y,i,n));else if(E||(E=new Wy),x){const J=ae(n,Dt);J&&E.setErrors(J)}else ot(E.ErrorSchema,i,n)}else E&&ae(E.ErrorSchema,[...i,Dt])&&E.clearErrors(i);if(F&&this.pendingChanges.length===1){const q=this.liveValidate(v,k,y,j,s,E,h);T={...T,formData:j,...q,customErrors:E}}else if(!u&&n){const q=Ei.mergeErrors({errorSchema:y,errors:w},s,E);T={...T,formData:j,...q,customErrors:E}}this.setState(T,()=>{f&&f(ca({...this.state,...T}),a),this.pendingChanges.shift(),this.processPendingChange()})}updateRetrievedSchema(r){var a;return Ue(r,(a=this.state)==null?void 0:a.retrievedSchema)?this.state.retrievedSchema:r}static getGlobalFormOptions(r){const{uiSchema:i={},experimental_componentUpdateStrategy:a,idSeparator:n=Ch,idPrefix:s=Sh,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 p;const{translateString:n,uiSchema:s={}}=r,{fields:o,templates:l,widgets:u,formContext:c,translateString:f}=Yz();return{fields:{...o,...r.fields},templates:{...l,...r.templates,ButtonTemplates:{...l.ButtonTemplates,...(p=r.templates)==null?void 0:p.ButtonTemplates}},widgets:{...u,...r.widgets},rootSchema:i,formContext:r.formContext||c,schemaUtils:a,translateString:n||f,globalUiOptions:s[ic],globalFormOptions:Ei.getGlobalFormOptions(r),uiSchemaDefinitions:s[CO]??{}}}focusOnError(r){const{idPrefix:i="root",idSeparator:a="_"}=this.props,{property:n}=r,s=av(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:p,noHtml5Validate:d=!1,disabled:m,readonly:k,showErrorList:v="top",_internalFormWrapper:g}=this.props,{schema:b,uiSchema:w,formData:E,errorSchema:h,fieldPathId:y,registry:C}=this.state,{SchemaField:x}=C.fields,{SubmitButton:_}=C.templates.ButtonTemplates,S=g?n:void 0,A=g||n||"form";let{[Bs]:O={}}=pe(w);m&&(O={...O,props:{...O.props,disabled:!0}});const F={[gn]:{[Bs]:O}};return N.jsxs(A,{className:a||"rjsf",id:i,name:s,method:o,target:l,action:u,autoComplete:c,encType:f,acceptCharset:p,noValidate:d,onSubmit:this.onSubmit,as:S,ref:this.formElement,children:[v==="top"&&this.renderErrors(C),N.jsx(x,{name:"",schema:b,uiSchema:w,errorSchema:h,fieldPathId:y,formData:E,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:C,disabled:m,readonly:k}),r||N.jsx(_,{uiSchema:F,registry:C}),v==="bottom"&&this.renderErrors(C)]})}},Zz=(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}),O1=({id:e,...t})=>{const[r,i]=V.useState(t.formData);return N.jsx(Xz,{id:e,idPrefix:`root_${e}`,transformErrors:a=>Zz(a,t.schema),...t,formData:r,onChange:a=>{t.onChange&&t.onChange(a);const{schema:n,formData:s}=a;if(n!=null&&n.required&&Array.isArray(n.required))for(const o of n.required){const l=(n.properties||{})[o];l&&l.type==="boolean"&&s[o]===!1&&delete s[o]}i(s)}})},Qz=["tabs","sidebar"],_1=e=>console.warn(`Ignoring "ui:steps": ${e}. Rendering a single-page form.`),eR=e=>{const t=e??{};return{layout:Qz.includes(t.layout)?t.layout:"tabs",nextLabel:typeof t.nextLabel=="string"?t.nextLabel:"Next",backLabel:typeof t.backLabel=="string"?t.backLabel:"Back"}},tR=(e,t,r,i)=>{const a=e??{};if(!Array.isArray(a.fields))return console.warn(`"ui:steps" step ${t+1} has no "fields" array; dropped.`),null;const n=a.fields.filter(s=>typeof s!="string"||!r.includes(s)?(console.warn(`"ui:steps" step ${t+1} names unknown field "${s}"; dropped.`),!1):i.has(s)?(console.warn(`"ui:steps" step ${t+1} repeats field "${s}"; keeping its first occurrence.`),!1):(i.add(s),!0));return n.length===0?(console.warn(`"ui:steps" step ${t+1} has no usable fields; dropped.`),null):{title:typeof a.title=="string"&&a.title?a.title:`Step ${t+1}`,...typeof a.description=="string"&&a.description&&{description:a.description},fields:n}},rR=(e,t)=>{const r=e==null?void 0:e["ui:steps"];if(!r)return null;if(typeof r!="object"||!Array.isArray(r.steps))return _1('"steps" must be an array'),null;const i=Object.keys(t.properties??{}),a=new Set,n=r.steps.map((o,l)=>tR(o,l,i,a)).filter(o=>!!o);if(n.length<2)return _1("fewer than two usable steps"),null;const s=i.filter(o=>!a.has(o));return s.length>0&&(console.warn(`"ui:steps" leaves fields unassigned (${s.join(", ")}); appending them to the last step.`),n[n.length-1].fields.push(...s)),{config:eR(r.config),steps:n}},nR={StepsNavigation:({layout:e,items:t,currentIndex:r,onNavigate:i,children:a})=>{const n=t[r];return N.jsxs("div",{className:`fcode-steps fcode-steps-layout-${e}`,children:[N.jsx("ol",{className:"fcode-steps-nav","aria-label":"Form steps",children:t.map(s=>N.jsx("li",{className:"fcode-steps-nav-item",children:N.jsxs("button",{type:"button",className:en("fcode-steps-item",{"is-completed":s.status==="completed","is-current":s.status==="current","is-upcoming":s.status==="upcoming","has-errors":s.hasErrors}),disabled:!s.clickable,"aria-current":s.status==="current"?"step":void 0,onClick:()=>i(s.index),children:[N.jsx("span",{className:"fcode-steps-item-counter","aria-hidden":"true",children:s.index+1}),N.jsx("span",{className:"fcode-steps-item-title",children:s.title})]})},s.index))}),N.jsxs("div",{className:"fcode-steps-main",children:[n&&N.jsxs("div",{className:"fcode-steps-header",children:[N.jsx("h3",{className:"fcode-steps-title",children:n.title}),n.description&&N.jsx("p",{className:"fcode-steps-description",children:n.description})]}),N.jsx("div",{className:"fcode-steps-panel",children:a})]})]})},BackButton:({label:e,onClick:t,disabled:r})=>N.jsx("button",{type:"button",className:"btn btn-light fcode-steps-back",disabled:r,onClick:t,children:e})},Dl=(e,t)=>Object.fromEntries(Object.entries(e??{}).filter(([r])=>t.includes(r))),iR=(e,t)=>{const r=e.dependencies??{},i=new Set,a=n=>{Object.keys(n.properties??{}).forEach(s=>i.add(s)),(n.oneOf??[]).forEach(s=>Object.keys((s==null?void 0:s.properties)??{}).forEach(o=>i.add(o)))};for(const n of t){const s=r[n];s&&typeof s=="object"&&!Array.isArray(s)&&a(s)}return t.forEach(n=>i.delete(n)),[...i]},aR=(e,t)=>{const r=e,i=Object.entries(Dl(r.dependencies,t)).reduce((a,[n,s])=>{if(Array.isArray(s)){const o=s.filter(l=>t.includes(l));o.length>0&&(a[n]=o)}else a[n]=s;return a},{});return{...e,properties:Dl(r.properties,t),...Array.isArray(r.required)&&{required:r.required.filter(a=>t.includes(a))},...r.dependencies&&{dependencies:i}}},sR=(e,t)=>Object.fromEntries(Object.entries(e??{}).filter(([r])=>t.includes(r)||r.startsWith("ui:")&&r!=="ui:steps"&&r!=="ui:submitButtonOptions")),oR=({parsed:e,components:t,...r})=>{var J,Y;const{steps:i,config:a}=e,n=r.schema,s=r.uiSchema,[o,l]=V.useState(0),[u,c]=V.useState(0),[f,p]=V.useState({...r.formData??{}}),d=V.useRef({}),m=V.useMemo(()=>i.map(X=>[...X.fields,...iR(n,X.fields)]),[i,n]),k=V.useMemo(()=>i.map((X,P)=>({schema:aR(n,X.fields),uiSchema:sR(s,m[P])})),[i,n,s,m]),v=r.extraErrors,g=V.useMemo(()=>m.map(X=>X.some(P=>!!v&&P in v)),[m,v]);V.useEffect(()=>{const X=g.findIndex(Boolean);X>=0&&l(X)},[v]),V.useEffect(()=>{d.current=Dl(f,m[o])},[o]);const b=(X,P,M)=>({...Object.fromEntries(Object.entries(X).filter(([B])=>!m[M].includes(B))),...P}),w=X=>{p(P=>b(P,d.current,o)),l(X)},E=r.readonly===!0||r.disabled===!0||(s==null?void 0:s["ui:readonly"])===!0,h=X=>X!==o&&(E||X<=u),y=X=>{h(X)&&w(X)},C=o===i.length-1,x=(X,P)=>{const M=b(f,X.formData??{},o);if(p(M),C){r.onSubmit&&r.onSubmit({...X,formData:M},P);return}l(o+1),c(B=>Math.max(B,o+1))},_=X=>{d.current=X.formData??{},r.onChange&&r.onChange(X)},S=i.map((X,P)=>({index:P,title:X.title,description:X.description,status:P<o?"completed":P===o?"current":"upcoming",clickable:h(P),hasErrors:g[P]})),{StepsNavigation:A,BackButton:O}=t,F=(Y=(J=r.templates)==null?void 0:J.ButtonTemplates)==null?void 0:Y.SubmitButton,T=ef(s??{}),j={"ui:submitButtonOptions":C?T:{...T,submitText:a.nextLabel,norender:!1}},q={translateString:X=>X};return N.jsx(A,{layout:a.layout,items:S,currentIndex:o,onNavigate:y,children:N.jsx(O1,{...r,schema:k[o].schema,uiSchema:k[o].uiSchema,formData:Dl(f,m[o]),onChange:_,onSubmit:x,children:N.jsxs("div",{className:"fcode-steps-actions",children:[o>0&&N.jsx(O,{label:a.backLabel,onClick:()=>w(o-1)}),F&&N.jsx(F,{uiSchema:j,registry:q})]})},o)})},lR=(e,t)=>e&&e in os?cl({},os[e]):t&&t in os?cl({},os[t]):cl({},os.en),P1=({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;Jd(l);const p=V.useMemo(()=>lR(a,n),[a,n]),d=V.useMemo(()=>rR(c.uiSchema,c.schema),[c.uiSchema,c.schema]),m={id:e,validator:s||p,className:en(["fcode-form",o,{[`theme-${f}`]:f}]),fields:{...wL,...u==null?void 0:u.fields,...i},templates:{...ik.templates,...u==null?void 0:u.templates,...t},widgets:{...ik.widgets,...u==null?void 0:u.widgets,...r},...c};return d?N.jsx(oR,{parsed:d,components:(u==null?void 0:u.multistep)??nR,...m}):N.jsx(O1,{...m})},I1={theme:"light",loadingOverlayDisabled:!1,loadingOverlayContent:"Sending information...",loadingContent:"Loading form...",locale:"en"},Dd=({hostUrl:e="https://code.factorialhr.com/platform",headers:t,team:r,processId:i,processVersion:a,onNextStep:n=A0,onSuccess:s,keepSuccessView:o=!1,onError:l,markdownComponents:u,defaultValues:c={},async:f=!1,disabled:p=!1,readonly:d=!1,options:m,...k})=>{const[v,g]=V.useState({processId:i,steps:[],variables:{...m&&m.variables}}),[b]=e0({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:m==null?void 0:m.locale,async:f}),w=V.useMemo(()=>{const U=Hd();return console.log(`Building Factorial Code form with id ${U}`),U},[r,v]),E=V.useMemo(()=>{const U=c||{};return window.location.search?{...U,...Object.fromEntries(new URLSearchParams(window.location.search).entries())}:U},[c]),[h,y]=V.useState(!1),[C,x]=V.useState(E),[_,S]=V.useState({}),[A,O]=V.useState(null),F=V.useCallback(U=>{S({}),y(!0),x(U.formData),b({metadata:{origin:{url:window.location.href,browser:{language:navigator.language,userAgent:navigator.userAgent}},...v.steps.length>0&&{steps:v.steps},...Object.keys(v.variables).length>0&&{variables:v.variables},...m&&m.locale&&{locale:m.locale}},...U.formData}).then(({results:R,resolvedFiles:H})=>{if(x(E),R.nextProcessId){const G=v.steps;G.push({processId:v.processId,data:{...U.formData,...H},result:R}),g({processId:R.nextProcessId,steps:G,variables:{...v.variables,...R.variables}}),n(R.nextProcessId,R);return}R.redirect&&E0(R.redirect),s?s(w,R,U.formData):(console.log(`Form ${w} has been successfully submitted.`),xs("fcode-forms-on-submit-success",{formId:w,formSubmittedData:U.formData,processExecutionResult:R})),(!s||o)&&O({kind:"success",message:R.message||x0})}).catch(R=>{R!=null&&R.formErrors?S(P0(R==null?void 0:R.formErrors)):l?l(w,R,U.formData):(console.log(`There has been an error submitting the form ${w}`,R),xs("fcode-forms-on-submit-error",{formId:w,error:R}),O({kind:"error",message:yp(R)}))}).finally(()=>y(!1))},[w,E,s,o,l,b,v]),{loading:T,formSpecs:j,error:q}=t0({hostUrl:e,headers:t,team:r,processId:v.processId,processVersion:a,locale:m==null?void 0:m.locale}),J={...I1,...m};Jd(J),V.useEffect(()=>{q&&(l?l(w,q,{}):(console.log(`There has been an error submitting the form ${w}`,q),xs("fcode-forms-on-submit-error",{formId:w,error:q})))},[q]);const Y=en(["fcode-form-wrapper",J.className]);if(T)return N.jsx("div",{className:en([Y,"fcode-form-loading"]),"data-testid":"fcode-form",children:N.jsx(mp,{active:!0,content:J.loadingContent,children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx(hp,{})})})});if(q||!j)return N.jsx("div",{className:Y,"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:_0(q)})})});j.schema.embedFormOptions={...I1,...j.schema.embedFormOptions,...m,variables:{...j.schema.embedFormOptions&&j.schema.embedFormOptions.variables,...v.variables,...m&&m.variables}};const X=yh(j),P=Object.keys(X.schema.properties||{}),M=Object.fromEntries(Object.entries(C).filter(([U,R])=>P.includes(U)));if(A)return N.jsx("div",{className:en(["fcode-form-wrapper",X.embedFormOptions.className]),"data-testid":"fcode-form",children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx("div",{className:en(["fcode-form-markdown",A.kind==="success"?"fcode-form-success-message":"fcode-form-error-message"]),"data-testid":`fcode-form-${A.kind}-message`,children:N.jsx(Vu,{components:u,children:A.message})})})});const{loadingOverlayDisabled:B,loadingOverlayContent:I,locale:D,fallbackLocale:L}=X.embedFormOptions;return N.jsx("div",{className:en(["fcode-form-wrapper",X.embedFormOptions.className]),"data-testid":"fcode-form",children:N.jsx(mp,{active:h,content:I,disabled:B,children:N.jsx("div",{className:"fcode-form-outer",children:N.jsx(P1,{id:w,schema:X.schema,uiSchema:X.uiSchema,embedFormOptions:X.embedFormOptions,locale:D,fallbackLocale:L,formData:M,onSubmit:F,noHtml5Validate:!0,disabled:p,readonly:d,showErrorList:!1,extraErrors:_,...k},w)})})})};Dd.displayName="FcodeForm",Ge.FcodeForm=Dd,Ge.FcodeJsonSchemaForm=P1,Ge.buildId=Hd,Ge.default=Dd,Ge.processFormSpecs=yh,Ge.resolveErrorMessage=yp,Object.defineProperties(Ge,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
145
145
  //# sourceMappingURL=fcode-form.umd.js.map