@crowdin/app-project-module 0.35.0 → 0.36.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.
@@ -18,7 +18,7 @@
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
20
  */
21
- var J=a,Y=H;function X(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Z=new Set,ee={};function te(e,t){re(e,t),re(e+"Capture",t)}function re(e,t){for(ee[e]=t,e=0;e<t.length;e++)Z.add(t[e])}var ne=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),oe=Object.prototype.hasOwnProperty,ae=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ie={},se={};function le(e,t,r,n,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ue[e]=new le(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ue[t]=new le(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ue[e]=new le(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ue[e]=new le(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){ue[e]=new le(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ue[e]=new le(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){ue[e]=new le(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){ue[e]=new le(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){ue[e]=new le(e,5,!1,e.toLowerCase(),null,!1,!1)}));var ce=/[\-:]([a-z])/g;function de(e){return e[1].toUpperCase()}function fe(e,t,r,n){var o=ue.hasOwnProperty(t)?ue[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!oe.call(se,e)||!oe.call(ie,e)&&(ae.test(e)?se[e]=!0:(ie[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ce,de);ue[t]=new le(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ce,de);ue[t]=new le(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ce,de);ue[t]=new le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){ue[e]=new le(e,1,!1,e.toLowerCase(),null,!1,!1)})),ue.xlinkHref=new le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){ue[e]=new le(e,1,!1,e.toLowerCase(),null,!0,!0)}));var pe=J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,he=Symbol.for("react.element"),me=Symbol.for("react.portal"),ve=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),ye=Symbol.for("react.profiler"),be=Symbol.for("react.provider"),we=Symbol.for("react.context"),Se=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),_e=Symbol.for("react.suspense_list"),$e=Symbol.for("react.memo"),ke=Symbol.for("react.lazy"),Ee=Symbol.for("react.offscreen"),je=Symbol.iterator;function Ce(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=je&&e[je]||e["@@iterator"])?e:null}var Oe,Pe=Object.assign;function Ne(e){if(void 0===Oe)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Oe=t&&t[1]||""}return"\n"+Oe+e}var Re=!1;function Te(e,t){if(!e||Re)return"";Re=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=n.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{Re=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ne(e):""}function Ae(e){switch(e.tag){case 5:return Ne(e.type);case 16:return Ne("Lazy");case 13:return Ne("Suspense");case 19:return Ne("SuspenseList");case 0:case 2:case 15:return e=Te(e.type,!1);case 11:return e=Te(e.type.render,!1);case 1:return e=Te(e.type,!0);default:return""}}function Ie(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ve:return"Fragment";case me:return"Portal";case ye:return"Profiler";case ge:return"StrictMode";case xe:return"Suspense";case _e:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case we:return(e.displayName||"Context")+".Consumer";case be:return(e._context.displayName||"Context")+".Provider";case Se:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case $e:return null!==(t=e.displayName||null)?t:Ie(e.type)||"Memo";case ke:t=e._payload,e=e._init;try{return Ie(e(t))}catch(e){}}return null}function Me(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ie(t);case 8:return t===ge?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Fe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ze(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function De(e){e._valueTracker||(e._valueTracker=function(e){var t=ze(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Le(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ze(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Be(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ve(e,t){var r=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Ue(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=Fe(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function We(e,t){null!=(t=t.checked)&&fe(e,"checked",t,!1)}function qe(e,t){We(e,t);var r=Fe(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?He(e,t.type,r):t.hasOwnProperty("defaultValue")&&He(e,t.type,Fe(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ke(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function He(e,t,r){"number"===t&&Be(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ge=Array.isArray;function Qe(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Fe(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Je(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(X(91));return Pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ye(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(X(92));if(Ge(r)){if(1<r.length)throw Error(X(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:Fe(r)}}function Xe(e,t){var r=Fe(t.value),n=Fe(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function Ze(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function et(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function tt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?et(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var rt,nt=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction((function(){return e(t,r)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((rt=rt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=rt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ot(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var at={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},it=["Webkit","ms","Moz","O"];function st(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||at.hasOwnProperty(e)&&at[e]?(""+t).trim():t+"px"}function lt(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=st(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(at).forEach((function(e){it.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),at[t]=at[e]}))}));var ut=Pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ct(e,t){if(t){if(ut[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(X(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(X(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(X(62))}}function dt(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ft=null;function pt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ht=null,mt=null,vt=null;function gt(e){if(e=fa(e)){if("function"!=typeof ht)throw Error(X(280));var t=e.stateNode;t&&(t=ha(t),ht(e.stateNode,e.type,t))}}function yt(e){mt?vt?vt.push(e):vt=[e]:mt=e}function bt(){if(mt){var e=mt,t=vt;if(vt=mt=null,gt(e),t)for(e=0;e<t.length;e++)gt(t[e])}}function wt(e,t){return e(t)}function St(){}var xt=!1;function _t(e,t,r){if(xt)return e(t,r);xt=!0;try{return wt(e,t,r)}finally{xt=!1,(null!==mt||null!==vt)&&(St(),bt())}}function $t(e,t){var r=e.stateNode;if(null===r)return null;var n=ha(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(X(231,t,typeof r));return r}var kt=!1;if(ne)try{var Et={};Object.defineProperty(Et,"passive",{get:function(){kt=!0}}),window.addEventListener("test",Et,Et),window.removeEventListener("test",Et,Et)}catch(bD){kt=!1}function jt(e,t,r,n,o,a,i,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(e){this.onError(e)}}var Ct=!1,Ot=null,Pt=!1,Nt=null,Rt={onError:function(e){Ct=!0,Ot=e}};function Tt(e,t,r,n,o,a,i,s,l){Ct=!1,Ot=null,jt.apply(Rt,arguments)}function At(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function It(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Mt(e){if(At(e)!==e)throw Error(X(188))}function Ft(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=At(e)))throw Error(X(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(n=o.return)){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Mt(o),e;if(a===n)return Mt(o),t;a=a.sibling}throw Error(X(188))}if(r.return!==n.return)r=o,n=a;else{for(var i=!1,s=o.child;s;){if(s===r){i=!0,r=o,n=a;break}if(s===n){i=!0,n=o,r=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===r){i=!0,r=a,n=o;break}if(s===n){i=!0,n=a,r=o;break}s=s.sibling}if(!i)throw Error(X(189))}}if(r.alternate!==n)throw Error(X(190))}if(3!==r.tag)throw Error(X(188));return r.stateNode.current===r?e:t}(e),null!==e?zt(e):null}function zt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=zt(e);if(null!==t)return t;e=e.sibling}return null}var Dt=Y.unstable_scheduleCallback,Lt=Y.unstable_cancelCallback,Bt=Y.unstable_shouldYield,Vt=Y.unstable_requestPaint,Ut=Y.unstable_now,Wt=Y.unstable_getCurrentPriorityLevel,qt=Y.unstable_ImmediatePriority,Kt=Y.unstable_UserBlockingPriority,Ht=Y.unstable_NormalPriority,Gt=Y.unstable_LowPriority,Qt=Y.unstable_IdlePriority,Jt=null,Yt=null;var Xt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Zt(e)/er|0)|0},Zt=Math.log,er=Math.LN2;var tr=64,rr=4194304;function nr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function or(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&r;if(0!==i){var s=i&~o;0!==s?n=nr(s):0!==(a&=i)&&(n=nr(a))}else 0!==(i=r&~o)?n=nr(i):0!==a&&(n=nr(a));if(0===n)return 0;if(0!==t&&t!==n&&0==(t&o)&&((o=n&-n)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-Xt(t)),n|=e[r],t&=~o;return n}function ar(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ir(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function sr(){var e=tr;return 0==(4194240&(tr<<=1))&&(tr=64),e}function lr(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ur(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Xt(t)]=r}function cr(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Xt(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var dr=0;function fr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var pr,hr,mr,vr,gr,yr=!1,br=[],wr=null,Sr=null,xr=null,_r=new Map,$r=new Map,kr=[],Er="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jr(e,t){switch(e){case"focusin":case"focusout":wr=null;break;case"dragenter":case"dragleave":Sr=null;break;case"mouseover":case"mouseout":xr=null;break;case"pointerover":case"pointerout":_r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$r.delete(t.pointerId)}}function Cr(e,t,r,n,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=fa(t))&&hr(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Or(e){var t=da(e.target);if(null!==t){var r=At(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=It(r)))return e.blockedOn=t,void gr(e.priority,(function(){mr(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Pr(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Br(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=fa(r))&&hr(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);ft=n,r.target.dispatchEvent(n),ft=null,t.shift()}return!0}function Nr(e,t,r){Pr(e)&&r.delete(t)}function Rr(){yr=!1,null!==wr&&Pr(wr)&&(wr=null),null!==Sr&&Pr(Sr)&&(Sr=null),null!==xr&&Pr(xr)&&(xr=null),_r.forEach(Nr),$r.forEach(Nr)}function Tr(e,t){e.blockedOn===t&&(e.blockedOn=null,yr||(yr=!0,Y.unstable_scheduleCallback(Y.unstable_NormalPriority,Rr)))}function Ar(e){function t(t){return Tr(t,e)}if(0<br.length){Tr(br[0],e);for(var r=1;r<br.length;r++){var n=br[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==wr&&Tr(wr,e),null!==Sr&&Tr(Sr,e),null!==xr&&Tr(xr,e),_r.forEach(t),$r.forEach(t),r=0;r<kr.length;r++)(n=kr[r]).blockedOn===e&&(n.blockedOn=null);for(;0<kr.length&&null===(r=kr[0]).blockedOn;)Or(r),null===r.blockedOn&&kr.shift()}var Ir=pe.ReactCurrentBatchConfig,Mr=!0;function Fr(e,t,r,n){var o=dr,a=Ir.transition;Ir.transition=null;try{dr=1,Dr(e,t,r,n)}finally{dr=o,Ir.transition=a}}function zr(e,t,r,n){var o=dr,a=Ir.transition;Ir.transition=null;try{dr=4,Dr(e,t,r,n)}finally{dr=o,Ir.transition=a}}function Dr(e,t,r,n){if(Mr){var o=Br(e,t,r,n);if(null===o)Fo(e,t,n,Lr,r),jr(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return wr=Cr(wr,e,t,r,n,o),!0;case"dragenter":return Sr=Cr(Sr,e,t,r,n,o),!0;case"mouseover":return xr=Cr(xr,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return _r.set(a,Cr(_r.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,$r.set(a,Cr($r.get(a)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(jr(e,n),4&t&&-1<Er.indexOf(e)){for(;null!==o;){var a=fa(o);if(null!==a&&pr(a),null===(a=Br(e,t,r,n))&&Fo(e,t,n,Lr,r),a===o)break;o=a}null!==o&&n.stopPropagation()}else Fo(e,t,n,null,r)}}var Lr=null;function Br(e,t,r,n){if(Lr=null,null!==(e=da(e=pt(n))))if(null===(t=At(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=It(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Lr=e,null}function Vr(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Wt()){case qt:return 1;case Kt:return 4;case Ht:case Gt:return 16;case Qt:return 536870912;default:return 16}default:return 16}}var Ur=null,Wr=null,qr=null;function Kr(){if(qr)return qr;var e,t,r=Wr,n=r.length,o="value"in Ur?Ur.value:Ur.textContent,a=o.length;for(e=0;e<n&&r[e]===o[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===o[a-t];t++);return qr=o.slice(e,1<t?1-t:void 0)}function Hr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Gr(){return!0}function Qr(){return!1}function Jr(e){function t(t,r,n,o,a){for(var i in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Gr:Qr,this.isPropagationStopped=Qr,this}return Pe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Gr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Gr)},persist:function(){},isPersistent:Gr}),t}var Yr,Xr,Zr,en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tn=Jr(en),rn=Pe({},en,{view:0,detail:0}),nn=Jr(rn),on=Pe({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zr&&(Zr&&"mousemove"===e.type?(Yr=e.screenX-Zr.screenX,Xr=e.screenY-Zr.screenY):Xr=Yr=0,Zr=e),Yr)},movementY:function(e){return"movementY"in e?e.movementY:Xr}}),an=Jr(on),sn=Jr(Pe({},on,{dataTransfer:0})),ln=Jr(Pe({},rn,{relatedTarget:0})),un=Jr(Pe({},en,{animationName:0,elapsedTime:0,pseudoElement:0})),cn=Pe({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dn=Jr(cn),fn=Jr(Pe({},en,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=mn[e])&&!!t[e]}function gn(){return vn}var yn=Pe({},rn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Hr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gn,charCode:function(e){return"keypress"===e.type?Hr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Hr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),bn=Jr(yn),wn=Jr(Pe({},on,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Sn=Jr(Pe({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),xn=Jr(Pe({},en,{propertyName:0,elapsedTime:0,pseudoElement:0})),_n=Pe({},on,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),$n=Jr(_n),kn=[9,13,27,32],En=ne&&"CompositionEvent"in window,jn=null;ne&&"documentMode"in document&&(jn=document.documentMode);var Cn=ne&&"TextEvent"in window&&!jn,On=ne&&(!En||jn&&8<jn&&11>=jn),Pn=String.fromCharCode(32),Nn=!1;function Rn(e,t){switch(e){case"keyup":return-1!==kn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var An=!1;var In={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!In[e.type]:"textarea"===t}function Fn(e,t,r,n){yt(n),0<(t=Do(t,"onChange")).length&&(r=new tn("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var zn=null,Dn=null;function Ln(e){No(e,0)}function Bn(e){if(Le(pa(e)))return e}function Vn(e,t){if("change"===e)return t}var Un=!1;if(ne){var Wn;if(ne){var qn="oninput"in document;if(!qn){var Kn=document.createElement("div");Kn.setAttribute("oninput","return;"),qn="function"==typeof Kn.oninput}Wn=qn}else Wn=!1;Un=Wn&&(!document.documentMode||9<document.documentMode)}function Hn(){zn&&(zn.detachEvent("onpropertychange",Gn),Dn=zn=null)}function Gn(e){if("value"===e.propertyName&&Bn(Dn)){var t=[];Fn(t,Dn,e,pt(e)),_t(Ln,t)}}function Qn(e,t,r){"focusin"===e?(Hn(),Dn=r,(zn=t).attachEvent("onpropertychange",Gn)):"focusout"===e&&Hn()}function Jn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Bn(Dn)}function Yn(e,t){if("click"===e)return Bn(t)}function Xn(e,t){if("input"===e||"change"===e)return Bn(t)}var Zn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function eo(e,t){if(Zn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!oe.call(t,o)||!Zn(e[o],t[o]))return!1}return!0}function to(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ro(e,t){var r,n=to(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=to(n)}}function no(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?no(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function oo(){for(var e=window,t=Be();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Be((e=t.contentWindow).document)}return t}function ao(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function io(e){var t=oo(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&no(r.ownerDocument.documentElement,r)){if(null!==n&&ao(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=void 0===n.end?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=ro(r,a);var i=ro(r,n);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var so=ne&&"documentMode"in document&&11>=document.documentMode,lo=null,uo=null,co=null,fo=!1;function po(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;fo||null==lo||lo!==Be(n)||("selectionStart"in(n=lo)&&ao(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},co&&eo(co,n)||(co=n,0<(n=Do(uo,"onSelect")).length&&(t=new tn("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=lo)))}function ho(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var mo={animationend:ho("Animation","AnimationEnd"),animationiteration:ho("Animation","AnimationIteration"),animationstart:ho("Animation","AnimationStart"),transitionend:ho("Transition","TransitionEnd")},vo={},go={};function yo(e){if(vo[e])return vo[e];if(!mo[e])return e;var t,r=mo[e];for(t in r)if(r.hasOwnProperty(t)&&t in go)return vo[e]=r[t];return e}ne&&(go=document.createElement("div").style,"AnimationEvent"in window||(delete mo.animationend.animation,delete mo.animationiteration.animation,delete mo.animationstart.animation),"TransitionEvent"in window||delete mo.transitionend.transition);var bo=yo("animationend"),wo=yo("animationiteration"),So=yo("animationstart"),xo=yo("transitionend"),_o=new Map,$o="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ko(e,t){_o.set(e,t),te(t,[e])}for(var Eo=0;Eo<$o.length;Eo++){var jo=$o[Eo];ko(jo.toLowerCase(),"on"+(jo[0].toUpperCase()+jo.slice(1)))}ko(bo,"onAnimationEnd"),ko(wo,"onAnimationIteration"),ko(So,"onAnimationStart"),ko("dblclick","onDoubleClick"),ko("focusin","onFocus"),ko("focusout","onBlur"),ko(xo,"onTransitionEnd"),re("onMouseEnter",["mouseout","mouseover"]),re("onMouseLeave",["mouseout","mouseover"]),re("onPointerEnter",["pointerout","pointerover"]),re("onPointerLeave",["pointerout","pointerover"]),te("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),te("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),te("onBeforeInput",["compositionend","keypress","textInput","paste"]),te("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),te("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),te("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Co="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Oo=new Set("cancel close invalid load scroll toggle".split(" ").concat(Co));function Po(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,a,i,s,l){if(Tt.apply(this,arguments),Ct){if(!Ct)throw Error(X(198));var u=Ot;Ct=!1,Ot=null,Pt||(Pt=!0,Nt=u)}}(n,t,void 0,e),e.currentTarget=null}function No(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;Po(o,s,u),a=l}else for(i=0;i<n.length;i++){if(l=(s=n[i]).instance,u=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;Po(o,s,u),a=l}}}if(Pt)throw e=Nt,Pt=!1,Nt=null,e}function Ro(e,t){var r=t[la];void 0===r&&(r=t[la]=new Set);var n=e+"__bubble";r.has(n)||(Mo(t,e,2,!1),r.add(n))}function To(e,t,r){var n=0;t&&(n|=4),Mo(r,e,n,t)}var Ao="_reactListening"+Math.random().toString(36).slice(2);function Io(e){if(!e[Ao]){e[Ao]=!0,Z.forEach((function(t){"selectionchange"!==t&&(Oo.has(t)||To(t,!1,e),To(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ao]||(t[Ao]=!0,To("selectionchange",!1,t))}}function Mo(e,t,r,n){switch(Vr(t)){case 1:var o=Fr;break;case 4:o=zr;break;default:o=Dr}r=o.bind(null,t,r,e),o=void 0,!kt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Fo(e,t,r,n,o){var a=n;if(0==(1&t)&&0==(2&t)&&null!==n)e:for(;;){if(null===n)return;var i=n.tag;if(3===i||4===i){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=n.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=da(s)))return;if(5===(l=i.tag)||6===l){n=a=i;continue e}s=s.parentNode}}n=n.return}_t((function(){var n=a,o=pt(r),i=[];e:{var s=_o.get(e);if(void 0!==s){var l=tn,u=e;switch(e){case"keypress":if(0===Hr(r))break e;case"keydown":case"keyup":l=bn;break;case"focusin":u="focus",l=ln;break;case"focusout":u="blur",l=ln;break;case"beforeblur":case"afterblur":l=ln;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=an;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=sn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Sn;break;case bo:case wo:case So:l=un;break;case xo:l=xn;break;case"scroll":l=nn;break;case"wheel":l=$n;break;case"copy":case"cut":case"paste":l=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=wn}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=n;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=$t(h,f))&&c.push(zo(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,r,o),i.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===ft||!(u=r.relatedTarget||r.fromElement)||!da(u)&&!u[sa])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(u=(u=r.relatedTarget||r.toElement)?da(u):null)&&(u!==(d=At(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=n),l!==u)){if(c=an,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=wn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:pa(l),p=null==u?s:pa(u),(s=new c(m,h+"leave",l,r,o)).target=d,s.relatedTarget=p,m=null,da(o)===n&&((c=new c(f,h+"enter",u,r,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Lo(p))h++;for(p=0,m=f;m;m=Lo(m))p++;for(;0<h-p;)c=Lo(c),h--;for(;0<p-h;)f=Lo(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Lo(c),f=Lo(f)}c=null}else c=null;null!==l&&Bo(i,s,l,c,!1),null!==u&&null!==d&&Bo(i,d,u,c,!0)}if("select"===(l=(s=n?pa(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Vn;else if(Mn(s))if(Un)v=Xn;else{v=Jn;var g=Qn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=Yn);switch(v&&(v=v(e,n))?Fn(i,v,r,o):(g&&g(e,s,n),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&He(s,"number",s.value)),g=n?pa(n):window,e){case"focusin":(Mn(g)||"true"===g.contentEditable)&&(lo=g,uo=n,co=null);break;case"focusout":co=uo=lo=null;break;case"mousedown":fo=!0;break;case"contextmenu":case"mouseup":case"dragend":fo=!1,po(i,r,o);break;case"selectionchange":if(so)break;case"keydown":case"keyup":po(i,r,o)}var y;if(En)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else An?Rn(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(On&&"ko"!==r.locale&&(An||"onCompositionStart"!==b?"onCompositionEnd"===b&&An&&(y=Kr()):(Wr="value"in(Ur=o)?Ur.value:Ur.textContent,An=!0)),0<(g=Do(n,b)).length&&(b=new fn(b,e,null,r,o),i.push({event:b,listeners:g}),y?b.data=y:null!==(y=Tn(r))&&(b.data=y))),(y=Cn?function(e,t){switch(e){case"compositionend":return Tn(t);case"keypress":return 32!==t.which?null:(Nn=!0,Pn);case"textInput":return(e=t.data)===Pn&&Nn?null:e;default:return null}}(e,r):function(e,t){if(An)return"compositionend"===e||!En&&Rn(e,t)?(e=Kr(),qr=Wr=Ur=null,An=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return On&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Do(n,"onBeforeInput")).length&&(o=new fn("onBeforeInput","beforeinput",null,r,o),i.push({event:o,listeners:n}),o.data=y))}No(i,t)}))}function zo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Do(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=$t(e,r))&&n.unshift(zo(e,a,o)),null!=(a=$t(e,t))&&n.push(zo(e,a,o))),e=e.return}return n}function Lo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Bo(e,t,r,n,o){for(var a=t._reactName,i=[];null!==r&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=$t(r,a))&&i.unshift(zo(r,l,s)):o||null!=(l=$t(r,a))&&i.push(zo(r,l,s))),r=r.return}0!==i.length&&e.push({event:t,listeners:i})}var Vo=/\r\n?/g,Uo=/\u0000|\uFFFD/g;function Wo(e){return("string"==typeof e?e:""+e).replace(Vo,"\n").replace(Uo,"")}function qo(e,t,r){if(t=Wo(t),Wo(e)!==t&&r)throw Error(X(425))}function Ko(){}var Ho=null,Go=null;function Qo(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Jo="function"==typeof setTimeout?setTimeout:void 0,Yo="function"==typeof clearTimeout?clearTimeout:void 0,Xo="function"==typeof Promise?Promise:void 0,Zo="function"==typeof queueMicrotask?queueMicrotask:void 0!==Xo?function(e){return Xo.resolve(null).then(e).catch(ea)}:Jo;function ea(e){setTimeout((function(){throw e}))}function ta(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void Ar(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);Ar(t)}function ra(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function na(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var oa=Math.random().toString(36).slice(2),aa="__reactFiber$"+oa,ia="__reactProps$"+oa,sa="__reactContainer$"+oa,la="__reactEvents$"+oa,ua="__reactListeners$"+oa,ca="__reactHandles$"+oa;function da(e){var t=e[aa];if(t)return t;for(var r=e.parentNode;r;){if(t=r[sa]||r[aa]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=na(e);null!==e;){if(r=e[aa])return r;e=na(e)}return t}r=(e=r).parentNode}return null}function fa(e){return!(e=e[aa]||e[sa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function pa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(X(33))}function ha(e){return e[ia]||null}var ma=[],va=-1;function ga(e){return{current:e}}function ya(e){0>va||(e.current=ma[va],ma[va]=null,va--)}function ba(e,t){va++,ma[va]=e.current,e.current=t}var wa={},Sa=ga(wa),xa=ga(!1),_a=wa;function $a(e,t){var r=e.type.contextTypes;if(!r)return wa;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ka(e){return null!=(e=e.childContextTypes)}function Ea(){ya(xa),ya(Sa)}function ja(e,t,r){if(Sa.current!==wa)throw Error(X(168));ba(Sa,t),ba(xa,r)}function Ca(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(X(108,Me(e)||"Unknown",o));return Pe({},r,n)}function Oa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wa,_a=Sa.current,ba(Sa,e),ba(xa,xa.current),!0}function Pa(e,t,r){var n=e.stateNode;if(!n)throw Error(X(169));r?(e=Ca(e,t,_a),n.__reactInternalMemoizedMergedChildContext=e,ya(xa),ya(Sa),ba(Sa,e)):ya(xa),ba(xa,r)}var Na=null,Ra=!1,Ta=!1;function Aa(e){null===Na?Na=[e]:Na.push(e)}function Ia(){if(!Ta&&null!==Na){Ta=!0;var e=0,t=dr;try{var r=Na;for(dr=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Na=null,Ra=!1}catch(t){throw null!==Na&&(Na=Na.slice(e+1)),Dt(qt,Ia),t}finally{dr=t,Ta=!1}}return null}var Ma=[],Fa=0,za=null,Da=0,La=[],Ba=0,Va=null,Ua=1,Wa="";function qa(e,t){Ma[Fa++]=Da,Ma[Fa++]=za,za=e,Da=t}function Ka(e,t,r){La[Ba++]=Ua,La[Ba++]=Wa,La[Ba++]=Va,Va=e;var n=Ua;e=Wa;var o=32-Xt(n)-1;n&=~(1<<o),r+=1;var a=32-Xt(t)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Ua=1<<32-Xt(t)+o|r<<o|n,Wa=a+e}else Ua=1<<a|r<<o|n,Wa=e}function Ha(e){null!==e.return&&(qa(e,1),Ka(e,1,0))}function Ga(e){for(;e===za;)za=Ma[--Fa],Ma[Fa]=null,Da=Ma[--Fa],Ma[Fa]=null;for(;e===Va;)Va=La[--Ba],La[Ba]=null,Wa=La[--Ba],La[Ba]=null,Ua=La[--Ba],La[Ba]=null}var Qa=null,Ja=null,Ya=!1,Xa=null;function Za(e,t){var r=$c(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function ei(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Qa=e,Ja=ra(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Qa=e,Ja=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Va?{id:Ua,overflow:Wa}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=$c(18,null,null,0)).stateNode=t,r.return=e,e.child=r,Qa=e,Ja=null,!0);default:return!1}}function ti(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ri(e){if(Ya){var t=Ja;if(t){var r=t;if(!ei(e,t)){if(ti(e))throw Error(X(418));t=ra(r.nextSibling);var n=Qa;t&&ei(e,t)?Za(n,r):(e.flags=-4097&e.flags|2,Ya=!1,Qa=e)}}else{if(ti(e))throw Error(X(418));e.flags=-4097&e.flags|2,Ya=!1,Qa=e}}}function ni(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Qa=e}function oi(e){if(e!==Qa)return!1;if(!Ya)return ni(e),Ya=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Qo(e.type,e.memoizedProps)),t&&(t=Ja)){if(ti(e))throw ai(),Error(X(418));for(;t;)Za(e,t),t=ra(t.nextSibling)}if(ni(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(X(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Ja=ra(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Ja=null}}else Ja=Qa?ra(e.stateNode.nextSibling):null;return!0}function ai(){for(var e=Ja;e;)e=ra(e.nextSibling)}function ii(){Ja=Qa=null,Ya=!1}function si(e){null===Xa?Xa=[e]:Xa.push(e)}var li=pe.ReactCurrentBatchConfig;function ui(e,t){if(e&&e.defaultProps){for(var r in t=Pe({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var ci=ga(null),di=null,fi=null,pi=null;function hi(){pi=fi=di=null}function mi(e){var t=ci.current;ya(ci),e._currentValue=t}function vi(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function gi(e,t){di=e,pi=fi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(fl=!0),e.firstContext=null)}function yi(e){var t=e._currentValue;if(pi!==e)if(e={context:e,memoizedValue:t,next:null},null===fi){if(null===di)throw Error(X(308));fi=e,di.dependencies={lanes:0,firstContext:e}}else fi=fi.next=e;return t}var bi=null;function wi(e){null===bi?bi=[e]:bi.push(e)}function Si(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,wi(t)):(r.next=o.next,o.next=r),t.interleaved=r,xi(e,n)}function xi(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var _i=!1;function $i(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ki(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ei(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ji(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!=(2&Su)){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,xi(e,r)}return null===(o=n.interleaved)?(t.next=t,wi(n)):(t.next=o.next,o.next=t),n.interleaved=t,xi(e,r)}function Ci(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,cr(e,r)}}function Oi(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?o=a=i:a=a.next=i,r=r.next}while(null!==r);null===a?o=a=t:a=a.next=t}else o=a=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Pi(e,t,r,n){var o=e.updateQueue;_i=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===i?a=u:i.next=u,i=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,c=u=l=null,s=a;;){var f=s.lane,p=s.eventTime;if((n&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=r,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=Pe({},d,f);break e;case 2:_i=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,i|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Ou|=i,e.lanes=i,e.memoizedState=d}}function Ni(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(X(191,o));o.call(n)}}}var Ri=(new J.Component).refs;function Ti(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:Pe({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Ai={isMounted:function(e){return!!(e=e._reactInternals)&&At(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Hu(),o=Gu(e),a=Ei(n,o);a.payload=t,null!=r&&(a.callback=r),null!==(t=ji(e,a,o))&&(Qu(t,e,o,n),Ci(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Hu(),o=Gu(e),a=Ei(n,o);a.tag=1,a.payload=t,null!=r&&(a.callback=r),null!==(t=ji(e,a,o))&&(Qu(t,e,o,n),Ci(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Hu(),n=Gu(e),o=Ei(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=ji(e,o,n))&&(Qu(t,e,n,r),Ci(t,e,n))}};function Ii(e,t,r,n,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!eo(r,n)||!eo(o,a))}function Mi(e,t,r){var n=!1,o=wa,a=t.contextType;return"object"==typeof a&&null!==a?a=yi(a):(o=ka(t)?_a:Sa.current,a=(n=null!=(n=t.contextTypes))?$a(e,o):wa),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ai,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Fi(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Ai.enqueueReplaceState(t,t.state,null)}function zi(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=Ri,$i(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=yi(a):(a=ka(t)?_a:Sa.current,o.context=$a(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Ti(e,t,a,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ai.enqueueReplaceState(o,o.state,null),Pi(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Di(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(X(309));var n=r.stateNode}if(!n)throw Error(X(147,e));var o=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Ri&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(X(284));if(!r._owner)throw Error(X(290,e))}return e}function Li(e,t){throw e=Object.prototype.toString.call(t),Error(X(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Bi(e){return(0,e._init)(e._payload)}function Vi(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ec(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=Pc(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function l(e,t,r,n){var a=r.type;return a===ve?c(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===ke&&Bi(a)===t.type)?((n=o(t,r.props)).ref=Di(e,t,r),n.return=e,n):((n=jc(r.type,r.key,r.props,null,e.mode,n)).ref=Di(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Nc(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function c(e,t,r,n,a){return null===t||7!==t.tag?((t=Cc(r,e.mode,n,a)).return=e,t):((t=o(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Pc(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case he:return(r=jc(t.type,t.key,t.props,null,e.mode,r)).ref=Di(e,null,t),r.return=e,r;case me:return(t=Nc(t,e.mode,r)).return=e,t;case ke:return d(e,(0,t._init)(t._payload),r)}if(Ge(t)||Ce(t))return(t=Cc(t,e.mode,r,null)).return=e,t;Li(e,t)}return null}function f(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case he:return r.key===o?l(e,t,r,n):null;case me:return r.key===o?u(e,t,r,n):null;case ke:return f(e,t,(o=r._init)(r._payload),n)}if(Ge(r)||Ce(r))return null!==o?null:c(e,t,r,n,null);Li(e,r)}return null}function p(e,t,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case he:return l(t,e=e.get(null===n.key?r:n.key)||null,n,o);case me:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o);case ke:return p(e,t,r,(0,n._init)(n._payload),o)}if(Ge(n)||Ce(n))return c(t,e=e.get(r)||null,n,o,null);Li(t,n)}return null}function h(o,i,s,l){for(var u=null,c=null,h=i,m=i=0,v=null;null!==h&&m<s.length;m++){h.index>m?(v=h,h=null):v=h.sibling;var g=f(o,h,s[m],l);if(null===g){null===h&&(h=v);break}e&&h&&null===g.alternate&&t(o,h),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g,h=v}if(m===s.length)return r(o,h),Ya&&qa(o,m),u;if(null===h){for(;m<s.length;m++)null!==(h=d(o,s[m],l))&&(i=a(h,i,m),null===c?u=h:c.sibling=h,c=h);return Ya&&qa(o,m),u}for(h=n(o,h);m<s.length;m++)null!==(v=p(h,o,m,s[m],l))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return t(o,e)})),Ya&&qa(o,m),u}function m(o,i,s,l){var u=Ce(s);if("function"!=typeof u)throw Error(X(150));if(null==(s=u.call(s)))throw Error(X(151));for(var c=u=null,h=i,m=i=0,v=null,g=s.next();null!==h&&!g.done;m++,g=s.next()){h.index>m?(v=h,h=null):v=h.sibling;var y=f(o,h,g.value,l);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(o,h),i=a(y,i,m),null===c?u=y:c.sibling=y,c=y,h=v}if(g.done)return r(o,h),Ya&&qa(o,m),u;if(null===h){for(;!g.done;m++,g=s.next())null!==(g=d(o,g.value,l))&&(i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return Ya&&qa(o,m),u}for(h=n(o,h);!g.done;m++,g=s.next())null!==(g=p(h,o,m,g.value,l))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach((function(e){return t(o,e)})),Ya&&qa(o,m),u}return function e(n,a,s,l){if("object"==typeof s&&null!==s&&s.type===ve&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case he:e:{for(var u=s.key,c=a;null!==c;){if(c.key===u){if((u=s.type)===ve){if(7===c.tag){r(n,c.sibling),(a=o(c,s.props.children)).return=n,n=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===ke&&Bi(u)===c.type){r(n,c.sibling),(a=o(c,s.props)).ref=Di(n,c,s),a.return=n,n=a;break e}r(n,c);break}t(n,c),c=c.sibling}s.type===ve?((a=Cc(s.props.children,n.mode,l,s.key)).return=n,n=a):((l=jc(s.type,s.key,s.props,null,n.mode,l)).ref=Di(n,a,s),l.return=n,n=l)}return i(n);case me:e:{for(c=s.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){r(n,a.sibling),(a=o(a,s.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Nc(s,n.mode,l)).return=n,n=a}return i(n);case ke:return e(n,a,(c=s._init)(s._payload),l)}if(Ge(s))return h(n,a,s,l);if(Ce(s))return m(n,a,s,l);Li(n,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,s)).return=n,n=a):(r(n,a),(a=Pc(s,n.mode,l)).return=n,n=a),i(n)):r(n,a)}}var Ui=Vi(!0),Wi=Vi(!1),qi={},Ki=ga(qi),Hi=ga(qi),Gi=ga(qi);function Qi(e){if(e===qi)throw Error(X(174));return e}function Ji(e,t){switch(ba(Gi,t),ba(Hi,e),ba(Ki,qi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tt(null,"");break;default:t=tt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ya(Ki),ba(Ki,t)}function Yi(){ya(Ki),ya(Hi),ya(Gi)}function Xi(e){Qi(Gi.current);var t=Qi(Ki.current),r=tt(t,e.type);t!==r&&(ba(Hi,e),ba(Ki,r))}function Zi(e){Hi.current===e&&(ya(Ki),ya(Hi))}var es=ga(0);function ts(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rs=[];function ns(){for(var e=0;e<rs.length;e++)rs[e]._workInProgressVersionPrimary=null;rs.length=0}var os=pe.ReactCurrentDispatcher,as=pe.ReactCurrentBatchConfig,is=0,ss=null,ls=null,us=null,cs=!1,ds=!1,fs=0,ps=0;function hs(){throw Error(X(321))}function ms(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Zn(e[r],t[r]))return!1;return!0}function vs(e,t,r,n,o,a){if(is=a,ss=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,os.current=null===e||null===e.memoizedState?Zs:el,e=r(n,o),ds){a=0;do{if(ds=!1,fs=0,25<=a)throw Error(X(301));a+=1,us=ls=null,t.updateQueue=null,os.current=tl,e=r(n,o)}while(ds)}if(os.current=Xs,t=null!==ls&&null!==ls.next,is=0,us=ls=ss=null,cs=!1,t)throw Error(X(300));return e}function gs(){var e=0!==fs;return fs=0,e}function ys(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===us?ss.memoizedState=us=e:us=us.next=e,us}function bs(){if(null===ls){var e=ss.alternate;e=null!==e?e.memoizedState:null}else e=ls.next;var t=null===us?ss.memoizedState:us.next;if(null!==t)us=t,ls=e;else{if(null===e)throw Error(X(310));e={memoizedState:(ls=e).memoizedState,baseState:ls.baseState,baseQueue:ls.baseQueue,queue:ls.queue,next:null},null===us?ss.memoizedState=us=e:us=us.next=e}return us}function ws(e,t){return"function"==typeof t?t(e):t}function Ss(e){var t=bs(),r=t.queue;if(null===r)throw Error(X(311));r.lastRenderedReducer=e;var n=ls,o=n.baseQueue,a=r.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}n.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,n=n.baseState;var s=i=null,l=null,u=a;do{var c=u.lane;if((is&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,i=n):l=l.next=d,ss.lanes|=c,Ou|=c}u=u.next}while(null!==u&&u!==a);null===l?i=n:l.next=s,Zn(n,t.memoizedState)||(fl=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=l,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,ss.lanes|=a,Ou|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function xs(e){var t=bs(),r=t.queue;if(null===r)throw Error(X(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Zn(a,t.memoizedState)||(fl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function _s(){}function $s(e,t){var r=ss,n=bs(),o=t(),a=!Zn(n.memoizedState,o);if(a&&(n.memoizedState=o,fl=!0),n=n.queue,Ms(js.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==us&&1&us.memoizedState.tag){if(r.flags|=2048,Ns(9,Es.bind(null,r,n,o,t),void 0,null),null===xu)throw Error(X(349));0!=(30&is)||ks(r,t,o)}return o}function ks(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=ss.updateQueue)?(t={lastEffect:null,stores:null},ss.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Es(e,t,r,n){t.value=r,t.getSnapshot=n,Cs(t)&&Os(e)}function js(e,t,r){return r((function(){Cs(t)&&Os(e)}))}function Cs(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Zn(e,r)}catch(e){return!0}}function Os(e){var t=xi(e,1);null!==t&&Qu(t,e,1,-1)}function Ps(e){var t=ys();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ws,lastRenderedState:e},t.queue=e,e=e.dispatch=Gs.bind(null,ss,e),[t.memoizedState,e]}function Ns(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=ss.updateQueue)?(t={lastEffect:null,stores:null},ss.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Rs(){return bs().memoizedState}function Ts(e,t,r,n){var o=ys();ss.flags|=e,o.memoizedState=Ns(1|t,r,void 0,void 0===n?null:n)}function As(e,t,r,n){var o=bs();n=void 0===n?null:n;var a=void 0;if(null!==ls){var i=ls.memoizedState;if(a=i.destroy,null!==n&&ms(n,i.deps))return void(o.memoizedState=Ns(t,r,a,n))}ss.flags|=e,o.memoizedState=Ns(1|t,r,a,n)}function Is(e,t){return Ts(8390656,8,e,t)}function Ms(e,t){return As(2048,8,e,t)}function Fs(e,t){return As(4,2,e,t)}function zs(e,t){return As(4,4,e,t)}function Ds(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ls(e,t,r){return r=null!=r?r.concat([e]):null,As(4,4,Ds.bind(null,t,e),r)}function Bs(){}function Vs(e,t){var r=bs();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ms(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Us(e,t){var r=bs();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ms(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Ws(e,t,r){return 0==(21&is)?(e.baseState&&(e.baseState=!1,fl=!0),e.memoizedState=r):(Zn(r,t)||(r=sr(),ss.lanes|=r,Ou|=r,e.baseState=!0),t)}function qs(e,t){var r=dr;dr=0!==r&&4>r?r:4,e(!0);var n=as.transition;as.transition={};try{e(!1),t()}finally{dr=r,as.transition=n}}function Ks(){return bs().memoizedState}function Hs(e,t,r){var n=Gu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Qs(e))Js(t,r);else if(null!==(r=Si(e,t,r,n))){Qu(r,e,n,Hu()),Ys(r,t,n)}}function Gs(e,t,r){var n=Gu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Qs(e))Js(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,Zn(s,i)){var l=t.interleaved;return null===l?(o.next=o,wi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(r=Si(e,t,o,n))&&(Qu(r,e,n,o=Hu()),Ys(r,t,n))}}function Qs(e){var t=e.alternate;return e===ss||null!==t&&t===ss}function Js(e,t){ds=cs=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ys(e,t,r){if(0!=(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,cr(e,r)}}var Xs={readContext:yi,useCallback:hs,useContext:hs,useEffect:hs,useImperativeHandle:hs,useInsertionEffect:hs,useLayoutEffect:hs,useMemo:hs,useReducer:hs,useRef:hs,useState:hs,useDebugValue:hs,useDeferredValue:hs,useTransition:hs,useMutableSource:hs,useSyncExternalStore:hs,useId:hs,unstable_isNewReconciler:!1},Zs={readContext:yi,useCallback:function(e,t){return ys().memoizedState=[e,void 0===t?null:t],e},useContext:yi,useEffect:Is,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Ts(4194308,4,Ds.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ts(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ts(4,2,e,t)},useMemo:function(e,t){var r=ys();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ys();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Hs.bind(null,ss,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},ys().memoizedState=e},useState:Ps,useDebugValue:Bs,useDeferredValue:function(e){return ys().memoizedState=e},useTransition:function(){var e=Ps(!1),t=e[0];return e=qs.bind(null,e[1]),ys().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ss,o=ys();if(Ya){if(void 0===r)throw Error(X(407));r=r()}else{if(r=t(),null===xu)throw Error(X(349));0!=(30&is)||ks(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Is(js.bind(null,n,a,e),[e]),n.flags|=2048,Ns(9,Es.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ys(),t=xu.identifierPrefix;if(Ya){var r=Wa;t=":"+t+"R"+(r=(Ua&~(1<<32-Xt(Ua)-1)).toString(32)+r),0<(r=fs++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=ps++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:yi,useCallback:Vs,useContext:yi,useEffect:Ms,useImperativeHandle:Ls,useInsertionEffect:Fs,useLayoutEffect:zs,useMemo:Us,useReducer:Ss,useRef:Rs,useState:function(){return Ss(ws)},useDebugValue:Bs,useDeferredValue:function(e){return Ws(bs(),ls.memoizedState,e)},useTransition:function(){return[Ss(ws)[0],bs().memoizedState]},useMutableSource:_s,useSyncExternalStore:$s,useId:Ks,unstable_isNewReconciler:!1},tl={readContext:yi,useCallback:Vs,useContext:yi,useEffect:Ms,useImperativeHandle:Ls,useInsertionEffect:Fs,useLayoutEffect:zs,useMemo:Us,useReducer:xs,useRef:Rs,useState:function(){return xs(ws)},useDebugValue:Bs,useDeferredValue:function(e){var t=bs();return null===ls?t.memoizedState=e:Ws(t,ls.memoizedState,e)},useTransition:function(){return[xs(ws)[0],bs().memoizedState]},useMutableSource:_s,useSyncExternalStore:$s,useId:Ks,unstable_isNewReconciler:!1};function rl(e,t){try{var r="",n=t;do{r+=Ae(n),n=n.return}while(n);var o=r}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function nl(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var al="function"==typeof WeakMap?WeakMap:Map;function il(e,t,r){(r=Ei(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Fu||(Fu=!0,zu=n),ol(0,t)},r}function sl(e,t,r){(r=Ei(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){ol(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){ol(0,t),"function"!=typeof n&&(null===Du?Du=new Set([this]):Du.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ll(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new al;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=yc.bind(null,e,t,r),t.then(e,e))}function ul(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function cl(e,t,r,n,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Ei(-1,1)).tag=2,ji(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var dl=pe.ReactCurrentOwner,fl=!1;function pl(e,t,r,n){t.child=null===e?Wi(t,null,r,n):Ui(t,e.child,r,n)}function hl(e,t,r,n,o){r=r.render;var a=t.ref;return gi(t,o),n=vs(e,t,r,n,a,o),r=gs(),null===e||fl?(Ya&&r&&Ha(t),t.flags|=1,pl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fl(e,t,o))}function ml(e,t,r,n,o){if(null===e){var a=r.type;return"function"!=typeof a||kc(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=jc(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,vl(e,t,a,n,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((r=null!==(r=r.compare)?r:eo)(i,n)&&e.ref===t.ref)return Fl(e,t,o)}return t.flags|=1,(e=Ec(a,n)).ref=t.ref,e.return=t,t.child=e}function vl(e,t,r,n,o){if(null!==e){var a=e.memoizedProps;if(eo(a,n)&&e.ref===t.ref){if(fl=!1,t.pendingProps=n=a,0==(e.lanes&o))return t.lanes=e.lanes,Fl(e,t,o);0!=(131072&e.flags)&&(fl=!0)}}return bl(e,t,r,n,o)}function gl(e,t,r){var n=t.pendingProps,o=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ba(Eu,ku),ku|=r;else{if(0==(1073741824&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ba(Eu,ku),ku|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,ba(Eu,ku),ku|=n}else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,ba(Eu,ku),ku|=n;return pl(e,t,o,r),t.child}function yl(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function bl(e,t,r,n,o){var a=ka(r)?_a:Sa.current;return a=$a(t,a),gi(t,o),r=vs(e,t,r,n,a,o),n=gs(),null===e||fl?(Ya&&n&&Ha(t),t.flags|=1,pl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fl(e,t,o))}function wl(e,t,r,n,o){if(ka(r)){var a=!0;Oa(t)}else a=!1;if(gi(t,o),null===t.stateNode)Ml(e,t),Mi(t,r,n),zi(t,r,n,o),n=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,u=r.contextType;"object"==typeof u&&null!==u?u=yi(u):u=$a(t,u=ka(r)?_a:Sa.current);var c=r.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==n||l!==u)&&Fi(t,i,n,u),_i=!1;var f=t.memoizedState;i.state=f,Pi(t,n,i,o),l=t.memoizedState,s!==n||f!==l||xa.current||_i?("function"==typeof c&&(Ti(t,r,c,n),l=t.memoizedState),(s=_i||Ii(t,r,s,n,f,l,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=u,n=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,ki(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ui(t.type,s),i.props=u,d=t.pendingProps,f=i.context,"object"==typeof(l=r.contextType)&&null!==l?l=yi(l):l=$a(t,l=ka(r)?_a:Sa.current);var p=r.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||f!==l)&&Fi(t,i,n,l),_i=!1,f=t.memoizedState,i.state=f,Pi(t,n,i,o);var h=t.memoizedState;s!==d||f!==h||xa.current||_i?("function"==typeof p&&(Ti(t,r,p,n),h=t.memoizedState),(u=_i||Ii(t,r,u,n,f,h,l)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(n,h,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,h,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),i.props=n,i.state=h,i.context=l,n=u):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return Sl(e,t,r,n,a,o)}function Sl(e,t,r,n,o,a){yl(e,t);var i=0!=(128&t.flags);if(!n&&!i)return o&&Pa(t,r,!1),Fl(e,t,a);n=t.stateNode,dl.current=t;var s=i&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&i?(t.child=Ui(t,e.child,null,a),t.child=Ui(t,null,s,a)):pl(e,t,s,a),t.memoizedState=n.state,o&&Pa(t,r,!0),t.child}function xl(e){var t=e.stateNode;t.pendingContext?ja(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ja(0,t.context,!1),Ji(e,t.containerInfo)}function _l(e,t,r,n,o){return ii(),si(o),t.flags|=256,pl(e,t,r,n),t.child}var $l,kl,El,jl,Cl={dehydrated:null,treeContext:null,retryLane:0};function Ol(e){return{baseLanes:e,cachePool:null,transitions:null}}function Pl(e,t,r){var n,o=t.pendingProps,a=es.current,i=!1,s=0!=(128&t.flags);if((n=s)||(n=(null===e||null!==e.memoizedState)&&0!=(2&a)),n?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ba(es,1&a),null===e)return ri(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,i?(o=t.mode,i=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=s):i=Oc(s,o,0,null),e=Cc(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ol(r),t.memoizedState=Cl,e):Nl(t,s));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,o,a,i){if(r)return 256&t.flags?(t.flags&=-257,Rl(e,t,i,n=nl(Error(X(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=Oc({mode:"visible",children:n.children},o,0,null),(a=Cc(a,o,i,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!=(1&t.mode)&&Ui(t,e.child,null,i),t.child.memoizedState=Ol(i),t.memoizedState=Cl,a);if(0==(1&t.mode))return Rl(e,t,i,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var s=n.dgst;return n=s,Rl(e,t,i,n=nl(a=Error(X(419)),n,void 0))}if(s=0!=(i&e.childLanes),fl||s){if(null!==(n=xu)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(n.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,xi(e,o),Qu(n,e,o,-1))}return lc(),Rl(e,t,i,n=nl(Error(X(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=wc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,Ja=ra(o.nextSibling),Qa=t,Ya=!0,Xa=null,null!==e&&(La[Ba++]=Ua,La[Ba++]=Wa,La[Ba++]=Va,Ua=e.id,Wa=e.overflow,Va=t),t=Nl(t,n.children),t.flags|=4096,t)}(e,t,s,o,n,a,r);if(i){i=o.fallback,s=t.mode,n=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=Ec(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==n?i=Ec(n,i):(i=Cc(i,s,r,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,s=null===(s=e.child.memoizedState)?Ol(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=Cl,o}return e=(i=e.child).sibling,o=Ec(i,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Nl(e,t){return(t=Oc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Rl(e,t,r,n){return null!==n&&si(n),Ui(t,e.child,null,r),(e=Nl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Tl(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),vi(e.return,t,r)}function Al(e,t,r,n,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function Il(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(pl(e,t,n.children,r),0!=(2&(n=es.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Tl(e,r,t);else if(19===e.tag)Tl(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ba(es,n),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===ts(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Al(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ts(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Al(t,!0,r,null,a);break;case"together":Al(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ml(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ou|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(X(153));if(null!==t.child){for(r=Ec(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ec(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function zl(e,t){if(!Ya)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Dl(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ll(e,t,r){var n=t.pendingProps;switch(Ga(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dl(t),null;case 1:case 17:return ka(t.type)&&Ea(),Dl(t),null;case 3:return n=t.stateNode,Yi(),ya(xa),ya(Sa),ns(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(oi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Xa&&(Zu(Xa),Xa=null))),kl(e,t),Dl(t),null;case 5:Zi(t);var o=Qi(Gi.current);if(r=t.type,null!==e&&null!=t.stateNode)El(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(X(166));return Dl(t),null}if(e=Qi(Ki.current),oi(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[aa]=t,n[ia]=a,e=0!=(1&t.mode),r){case"dialog":Ro("cancel",n),Ro("close",n);break;case"iframe":case"object":case"embed":Ro("load",n);break;case"video":case"audio":for(o=0;o<Co.length;o++)Ro(Co[o],n);break;case"source":Ro("error",n);break;case"img":case"image":case"link":Ro("error",n),Ro("load",n);break;case"details":Ro("toggle",n);break;case"input":Ue(n,a),Ro("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ro("invalid",n);break;case"textarea":Ye(n,a),Ro("invalid",n)}for(var i in ct(r,a),o=null,a)if(a.hasOwnProperty(i)){var s=a[i];"children"===i?"string"==typeof s?n.textContent!==s&&(!0!==a.suppressHydrationWarning&&qo(n.textContent,s,e),o=["children",s]):"number"==typeof s&&n.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&qo(n.textContent,s,e),o=["children",""+s]):ee.hasOwnProperty(i)&&null!=s&&"onScroll"===i&&Ro("scroll",n)}switch(r){case"input":De(n),Ke(n,a,!0);break;case"textarea":De(n),Ze(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Ko)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=et(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),"select"===r&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[aa]=t,e[ia]=n,$l(e,t,!1,!1),t.stateNode=e;e:{switch(i=dt(r,n),r){case"dialog":Ro("cancel",e),Ro("close",e),o=n;break;case"iframe":case"object":case"embed":Ro("load",e),o=n;break;case"video":case"audio":for(o=0;o<Co.length;o++)Ro(Co[o],e);o=n;break;case"source":Ro("error",e),o=n;break;case"img":case"image":case"link":Ro("error",e),Ro("load",e),o=n;break;case"details":Ro("toggle",e),o=n;break;case"input":Ue(e,n),o=Ve(e,n),Ro("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Pe({},n,{value:void 0}),Ro("invalid",e);break;case"textarea":Ye(e,n),o=Je(e,n),Ro("invalid",e)}for(a in ct(r,o),s=o)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?lt(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&nt(e,l):"children"===a?"string"==typeof l?("textarea"!==r||""!==l)&&ot(e,l):"number"==typeof l&&ot(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(ee.hasOwnProperty(a)?null!=l&&"onScroll"===a&&Ro("scroll",e):null!=l&&fe(e,a,l,i))}switch(r){case"input":De(e),Ke(e,n,!1);break;case"textarea":De(e),Ze(e);break;case"option":null!=n.value&&e.setAttribute("value",""+Fe(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?Qe(e,!!n.multiple,a,!1):null!=n.defaultValue&&Qe(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Ko)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Dl(t),null;case 6:if(e&&null!=t.stateNode)jl(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(X(166));if(r=Qi(Gi.current),Qi(Ki.current),oi(t)){if(n=t.stateNode,r=t.memoizedProps,n[aa]=t,(a=n.nodeValue!==r)&&null!==(e=Qa))switch(e.tag){case 3:qo(n.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&qo(n.nodeValue,r,0!=(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[aa]=t,t.stateNode=n}return Dl(t),null;case 13:if(ya(es),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Ya&&null!==Ja&&0!=(1&t.mode)&&0==(128&t.flags))ai(),ii(),t.flags|=98560,a=!1;else if(a=oi(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(X(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(X(317));a[aa]=t}else ii(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Dl(t),a=!1}else null!==Xa&&(Zu(Xa),Xa=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&es.current)?0===ju&&(ju=3):lc())),null!==t.updateQueue&&(t.flags|=4),Dl(t),null);case 4:return Yi(),kl(e,t),null===e&&Io(t.stateNode.containerInfo),Dl(t),null;case 10:return mi(t.type._context),Dl(t),null;case 19:if(ya(es),null===(a=t.memoizedState))return Dl(t),null;if(n=0!=(128&t.flags),null===(i=a.rendering))if(n)zl(a,!1);else{if(0!==ju||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=ts(e))){for(t.flags|=128,zl(a,!1),null!==(n=i.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ba(es,1&es.current|2),t.child}e=e.sibling}null!==a.tail&&Ut()>Iu&&(t.flags|=128,n=!0,zl(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ts(i))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),zl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!Ya)return Dl(t),null}else 2*Ut()-a.renderingStartTime>Iu&&1073741824!==r&&(t.flags|=128,n=!0,zl(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(r=a.last)?r.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ut(),t.sibling=null,r=es.current,ba(es,n?1&r|2:1&r),t):(Dl(t),null);case 22:case 23:return oc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&ku)&&(Dl(t),6&t.subtreeFlags&&(t.flags|=8192)):Dl(t),null;case 24:case 25:return null}throw Error(X(156,t.tag))}function Bl(e,t){switch(Ga(t),t.tag){case 1:return ka(t.type)&&Ea(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Yi(),ya(xa),ya(Sa),ns(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(ya(es),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(X(340));ii()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ya(es),null;case 4:return Yi(),null;case 10:return mi(t.type._context),null;case 22:case 23:return oc(),null;default:return null}}$l=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},kl=function(){},El=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Qi(Ki.current);var a,i=null;switch(r){case"input":o=Ve(e,o),n=Ve(e,n),i=[];break;case"select":o=Pe({},o,{value:void 0}),n=Pe({},n,{value:void 0}),i=[];break;case"textarea":o=Je(e,o),n=Je(e,n),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=Ko)}for(u in ct(r,n),r=null,o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(ee.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var l=n[u];if(s=null!=o?o[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(u,r)),r=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(i=i||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(i=i||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(ee.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Ro("scroll",e),i||s===l||(i=[])):(i=i||[]).push(u,l))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},jl=function(e,t,r,n){r!==n&&(t.flags|=4)};var Vl=!1,Ul=!1,Wl="function"==typeof WeakSet?WeakSet:Set,ql=null;function Kl(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){gc(e,t,r)}else r.current=null}function Hl(e,t,r){try{r()}catch(r){gc(e,t,r)}}var Gl=!1;function Ql(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&Hl(t,r,a)}o=o.next}while(o!==n)}}function Jl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Yl(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function Xl(e){var t=e.alternate;null!==t&&(e.alternate=null,Xl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[aa],delete t[ia],delete t[la],delete t[ua],delete t[ca])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zl(e){return 5===e.tag||3===e.tag||4===e.tag}function eu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Zl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function tu(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Ko));else if(4!==n&&null!==(e=e.child))for(tu(e,t,r),e=e.sibling;null!==e;)tu(e,t,r),e=e.sibling}function ru(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(ru(e,t,r),e=e.sibling;null!==e;)ru(e,t,r),e=e.sibling}var nu=null,ou=!1;function au(e,t,r){for(r=r.child;null!==r;)iu(e,t,r),r=r.sibling}function iu(e,t,r){if(Yt&&"function"==typeof Yt.onCommitFiberUnmount)try{Yt.onCommitFiberUnmount(Jt,r)}catch(e){}switch(r.tag){case 5:Ul||Kl(r,t);case 6:var n=nu,o=ou;nu=null,au(e,t,r),ou=o,null!==(nu=n)&&(ou?(e=nu,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):nu.removeChild(r.stateNode));break;case 18:null!==nu&&(ou?(e=nu,r=r.stateNode,8===e.nodeType?ta(e.parentNode,r):1===e.nodeType&&ta(e,r),Ar(e)):ta(nu,r.stateNode));break;case 4:n=nu,o=ou,nu=r.stateNode.containerInfo,ou=!0,au(e,t,r),nu=n,ou=o;break;case 0:case 11:case 14:case 15:if(!Ul&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&Hl(r,t,i),o=o.next}while(o!==n)}au(e,t,r);break;case 1:if(!Ul&&(Kl(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){gc(r,t,e)}au(e,t,r);break;case 21:au(e,t,r);break;case 22:1&r.mode?(Ul=(n=Ul)||null!==r.memoizedState,au(e,t,r),Ul=n):au(e,t,r);break;default:au(e,t,r)}}function su(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Wl),t.forEach((function(t){var n=Sc.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function lu(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var a=e,i=t,s=i;e:for(;null!==s;){switch(s.tag){case 5:nu=s.stateNode,ou=!1;break e;case 3:case 4:nu=s.stateNode.containerInfo,ou=!0;break e}s=s.return}if(null===nu)throw Error(X(160));iu(a,i,o),nu=null,ou=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){gc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)uu(t,e),t=t.sibling}function uu(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(lu(t,e),cu(e),4&n){try{Ql(3,e,e.return),Jl(3,e)}catch(t){gc(e,e.return,t)}try{Ql(5,e,e.return)}catch(t){gc(e,e.return,t)}}break;case 1:lu(t,e),cu(e),512&n&&null!==r&&Kl(r,r.return);break;case 5:if(lu(t,e),cu(e),512&n&&null!==r&&Kl(r,r.return),32&e.flags){var o=e.stateNode;try{ot(o,"")}catch(t){gc(e,e.return,t)}}if(4&n&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==r?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&We(o,a),dt(s,i);var u=dt(s,a);for(i=0;i<l.length;i+=2){var c=l[i],d=l[i+1];"style"===c?lt(o,d):"dangerouslySetInnerHTML"===c?nt(o,d):"children"===c?ot(o,d):fe(o,c,d,u)}switch(s){case"input":qe(o,a);break;case"textarea":Xe(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?Qe(o,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?Qe(o,!!a.multiple,a.defaultValue,!0):Qe(o,!!a.multiple,a.multiple?[]:"",!1))}o[ia]=a}catch(t){gc(e,e.return,t)}}break;case 6:if(lu(t,e),cu(e),4&n){if(null===e.stateNode)throw Error(X(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){gc(e,e.return,t)}}break;case 3:if(lu(t,e),cu(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Ar(t.containerInfo)}catch(t){gc(e,e.return,t)}break;case 4:default:lu(t,e),cu(e);break;case 13:lu(t,e),cu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Au=Ut())),4&n&&su(e);break;case 22:if(c=null!==r&&null!==r.memoizedState,1&e.mode?(Ul=(u=Ul)||c,lu(t,e),Ul=u):lu(t,e),cu(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(ql=e,c=e.child;null!==c;){for(d=ql=c;null!==ql;){switch(p=(f=ql).child,f.tag){case 0:case 11:case 14:case 15:Ql(4,f,f.return);break;case 1:Kl(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){n=f,r=f.return;try{t=n,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){gc(n,r,e)}}break;case 5:Kl(f,f.return);break;case 22:if(null!==f.memoizedState){hu(d);continue}}null!==p?(p.return=f,ql=p):hu(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=d.stateNode,i=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=st("display",i))}catch(t){gc(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){gc(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:lu(t,e),cu(e),4&n&&su(e);case 21:}}function cu(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(Zl(r)){var n=r;break e}r=r.return}throw Error(X(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(ot(o,""),n.flags&=-33),ru(e,eu(e),o);break;case 3:case 4:var a=n.stateNode.containerInfo;tu(e,eu(e),a);break;default:throw Error(X(161))}}catch(t){gc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function du(e,t,r){ql=e,fu(e)}function fu(e,t,r){for(var n=0!=(1&e.mode);null!==ql;){var o=ql,a=o.child;if(22===o.tag&&n){var i=null!==o.memoizedState||Vl;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ul;s=Vl;var u=Ul;if(Vl=i,(Ul=l)&&!u)for(ql=o;null!==ql;)l=(i=ql).child,22===i.tag&&null!==i.memoizedState?mu(o):null!==l?(l.return=i,ql=l):mu(o);for(;null!==a;)ql=a,fu(a),a=a.sibling;ql=o,Vl=s,Ul=u}pu(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,ql=a):pu(e)}}function pu(e){for(;null!==ql;){var t=ql;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ul||Jl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Ul)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:ui(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ni(t,a,n);break;case 3:var i=t.updateQueue;if(null!==i){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ni(t,i,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Ar(d)}}}break;default:throw Error(X(163))}Ul||512&t.flags&&Yl(t)}catch(e){gc(t,t.return,e)}}if(t===e){ql=null;break}if(null!==(r=t.sibling)){r.return=t.return,ql=r;break}ql=t.return}}function hu(e){for(;null!==ql;){var t=ql;if(t===e){ql=null;break}var r=t.sibling;if(null!==r){r.return=t.return,ql=r;break}ql=t.return}}function mu(e){for(;null!==ql;){var t=ql;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Jl(4,t)}catch(e){gc(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(e){gc(t,o,e)}}var a=t.return;try{Yl(t)}catch(e){gc(t,a,e)}break;case 5:var i=t.return;try{Yl(t)}catch(e){gc(t,i,e)}}}catch(e){gc(t,t.return,e)}if(t===e){ql=null;break}var s=t.sibling;if(null!==s){s.return=t.return,ql=s;break}ql=t.return}}var vu,gu=Math.ceil,yu=pe.ReactCurrentDispatcher,bu=pe.ReactCurrentOwner,wu=pe.ReactCurrentBatchConfig,Su=0,xu=null,_u=null,$u=0,ku=0,Eu=ga(0),ju=0,Cu=null,Ou=0,Pu=0,Nu=0,Ru=null,Tu=null,Au=0,Iu=1/0,Mu=null,Fu=!1,zu=null,Du=null,Lu=!1,Bu=null,Vu=0,Uu=0,Wu=null,qu=-1,Ku=0;function Hu(){return 0!=(6&Su)?Ut():-1!==qu?qu:qu=Ut()}function Gu(e){return 0==(1&e.mode)?1:0!=(2&Su)&&0!==$u?$u&-$u:null!==li.transition?(0===Ku&&(Ku=sr()),Ku):0!==(e=dr)?e:e=void 0===(e=window.event)?16:Vr(e.type)}function Qu(e,t,r,n){if(50<Uu)throw Uu=0,Wu=null,Error(X(185));ur(e,r,n),0!=(2&Su)&&e===xu||(e===xu&&(0==(2&Su)&&(Pu|=r),4===ju&&ec(e,$u)),Ju(e,n),1===r&&0===Su&&0==(1&t.mode)&&(Iu=Ut()+500,Ra&&Ia()))}function Ju(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Xt(a),s=1<<i,l=o[i];-1===l?0!=(s&r)&&0==(s&n)||(o[i]=ar(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var n=or(e,e===xu?$u:0);if(0===n)null!==r&&Lt(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Lt(r),1===t)0===e.tag?function(e){Ra=!0,Aa(e)}(tc.bind(null,e)):Aa(tc.bind(null,e)),Zo((function(){0==(6&Su)&&Ia()})),r=null;else{switch(fr(n)){case 1:r=qt;break;case 4:r=Kt;break;case 16:default:r=Ht;break;case 536870912:r=Qt}r=xc(r,Yu.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Yu(e,t){if(qu=-1,Ku=0,0!=(6&Su))throw Error(X(327));var r=e.callbackNode;if(mc()&&e.callbackNode!==r)return null;var n=or(e,e===xu?$u:0);if(0===n)return null;if(0!=(30&n)||0!=(n&e.expiredLanes)||t)t=uc(e,n);else{t=n;var o=Su;Su|=2;var a=sc();for(xu===e&&$u===t||(Mu=null,Iu=Ut()+500,ac(e,t));;)try{dc();break}catch(t){ic(e,t)}hi(),yu.current=a,Su=o,null!==_u?t=0:(xu=null,$u=0,t=ju)}if(0!==t){if(2===t&&(0!==(o=ir(e))&&(n=o,t=Xu(e,o))),1===t)throw r=Cu,ac(e,0),ec(e,n),Ju(e,Ut()),r;if(6===t)ec(e,n);else{if(o=e.current.alternate,0==(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!Zn(a(),o))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=uc(e,n))&&(0!==(a=ir(e))&&(n=a,t=Xu(e,a))),1===t))throw r=Cu,ac(e,0),ec(e,n),Ju(e,Ut()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(X(345));case 2:case 5:hc(e,Tu,Mu);break;case 3:if(ec(e,n),(130023424&n)===n&&10<(t=Au+500-Ut())){if(0!==or(e,0))break;if(((o=e.suspendedLanes)&n)!==n){Hu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Jo(hc.bind(null,e,Tu,Mu),t);break}hc(e,Tu,Mu);break;case 4:if(ec(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var i=31-Xt(n);a=1<<i,(i=t[i])>o&&(o=i),n&=~a}if(n=o,10<(n=(120>(n=Ut()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*gu(n/1960))-n)){e.timeoutHandle=Jo(hc.bind(null,e,Tu,Mu),n);break}hc(e,Tu,Mu);break;default:throw Error(X(329))}}}return Ju(e,Ut()),e.callbackNode===r?Yu.bind(null,e):null}function Xu(e,t){var r=Ru;return e.current.memoizedState.isDehydrated&&(ac(e,t).flags|=256),2!==(e=uc(e,t))&&(t=Tu,Tu=r,null!==t&&Zu(t)),e}function Zu(e){null===Tu?Tu=e:Tu.push.apply(Tu,e)}function ec(e,t){for(t&=~Nu,t&=~Pu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Xt(t),n=1<<r;e[r]=-1,t&=~n}}function tc(e){if(0!=(6&Su))throw Error(X(327));mc();var t=or(e,0);if(0==(1&t))return Ju(e,Ut()),null;var r=uc(e,t);if(0!==e.tag&&2===r){var n=ir(e);0!==n&&(t=n,r=Xu(e,n))}if(1===r)throw r=Cu,ac(e,0),ec(e,t),Ju(e,Ut()),r;if(6===r)throw Error(X(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,hc(e,Tu,Mu),Ju(e,Ut()),null}function rc(e,t){var r=Su;Su|=1;try{return e(t)}finally{0===(Su=r)&&(Iu=Ut()+500,Ra&&Ia())}}function nc(e){null!==Bu&&0===Bu.tag&&0==(6&Su)&&mc();var t=Su;Su|=1;var r=wu.transition,n=dr;try{if(wu.transition=null,dr=1,e)return e()}finally{dr=n,wu.transition=r,0==(6&(Su=t))&&Ia()}}function oc(){ku=Eu.current,ya(Eu)}function ac(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Yo(r)),null!==_u)for(r=_u.return;null!==r;){var n=r;switch(Ga(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Ea();break;case 3:Yi(),ya(xa),ya(Sa),ns();break;case 5:Zi(n);break;case 4:Yi();break;case 13:case 19:ya(es);break;case 10:mi(n.type._context);break;case 22:case 23:oc()}r=r.return}if(xu=e,_u=e=Ec(e.current,null),$u=ku=t,ju=0,Cu=null,Nu=Pu=Ou=0,Tu=Ru=null,null!==bi){for(t=0;t<bi.length;t++)if(null!==(n=(r=bi[t]).interleaved)){r.interleaved=null;var o=n.next,a=r.pending;if(null!==a){var i=a.next;a.next=o,n.next=i}r.pending=n}bi=null}return e}function ic(e,t){for(;;){var r=_u;try{if(hi(),os.current=Xs,cs){for(var n=ss.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}cs=!1}if(is=0,us=ls=ss=null,ds=!1,fs=0,bu.current=null,null===r||null===r.return){ju=1,Cu=t,_u=null;break}e:{var a=e,i=r.return,s=r,l=t;if(t=$u,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=ul(i);if(null!==p){p.flags&=-257,cl(p,i,s,0,t),1&p.mode&&ll(a,u,t),l=u;var h=(t=p).updateQueue;if(null===h){var m=new Set;m.add(l),t.updateQueue=m}else h.add(l);break e}if(0==(1&t)){ll(a,u,t),lc();break e}l=Error(X(426))}else if(Ya&&1&s.mode){var v=ul(i);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),cl(v,i,s,0,t),si(rl(l,s));break e}}a=l=rl(l,s),4!==ju&&(ju=2),null===Ru?Ru=[a]:Ru.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Oi(a,il(0,l,t));break e;case 1:s=l;var g=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof g.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Du||!Du.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Oi(a,sl(a,s,t));break e}}a=a.return}while(null!==a)}pc(r)}catch(e){t=e,_u===r&&null!==r&&(_u=r=r.return);continue}break}}function sc(){var e=yu.current;return yu.current=Xs,null===e?Xs:e}function lc(){0!==ju&&3!==ju&&2!==ju||(ju=4),null===xu||0==(268435455&Ou)&&0==(268435455&Pu)||ec(xu,$u)}function uc(e,t){var r=Su;Su|=2;var n=sc();for(xu===e&&$u===t||(Mu=null,ac(e,t));;)try{cc();break}catch(t){ic(e,t)}if(hi(),Su=r,yu.current=n,null!==_u)throw Error(X(261));return xu=null,$u=0,ju}function cc(){for(;null!==_u;)fc(_u)}function dc(){for(;null!==_u&&!Bt();)fc(_u)}function fc(e){var t=vu(e.alternate,e,ku);e.memoizedProps=e.pendingProps,null===t?pc(e):_u=t,bu.current=null}function pc(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(r=Ll(r,t,ku)))return void(_u=r)}else{if(null!==(r=Bl(r,t)))return r.flags&=32767,void(_u=r);if(null===e)return ju=6,void(_u=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(_u=t);_u=t=e}while(null!==t);0===ju&&(ju=5)}function hc(e,t,r){var n=dr,o=wu.transition;try{wu.transition=null,dr=1,function(e,t,r,n){do{mc()}while(null!==Bu);if(0!=(6&Su))throw Error(X(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(X(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Xt(r),a=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~a}}(e,a),e===xu&&(_u=xu=null,$u=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Lu||(Lu=!0,xc(Ht,(function(){return mc(),null}))),a=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||a){a=wu.transition,wu.transition=null;var i=dr;dr=1;var s=Su;Su|=4,bu.current=null,function(e,t){if(Ho=Mr,ao(e=oo())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var i=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==r||0!==o&&3!==d.nodeType||(s=i+o),d!==a||0!==n&&3!==d.nodeType||(l=i+n),3===d.nodeType&&(i+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===o&&(s=i),f===a&&++c===n&&(l=i),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}r=-1===s||-1===l?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Go={focusedElem:e,selectionRange:r},Mr=!1,ql=t;null!==ql;)if(e=(t=ql).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,ql=e;else for(;null!==ql;){t=ql;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,v=h.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:ui(t.type,m),v);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(X(163))}}catch(e){gc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,ql=e;break}ql=t.return}h=Gl,Gl=!1}(e,r),uu(r,e),io(Go),Mr=!!Ho,Go=Ho=null,e.current=r,du(r),Vt(),Su=s,dr=i,wu.transition=a}else e.current=r;if(Lu&&(Lu=!1,Bu=e,Vu=o),a=e.pendingLanes,0===a&&(Du=null),function(e){if(Yt&&"function"==typeof Yt.onCommitFiberRoot)try{Yt.onCommitFiberRoot(Jt,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),Ju(e,Ut()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Fu)throw Fu=!1,e=zu,zu=null,e;0!=(1&Vu)&&0!==e.tag&&mc(),a=e.pendingLanes,0!=(1&a)?e===Wu?Uu++:(Uu=0,Wu=e):Uu=0,Ia()}(e,t,r,n)}finally{wu.transition=o,dr=n}return null}function mc(){if(null!==Bu){var e=fr(Vu),t=wu.transition,r=dr;try{if(wu.transition=null,dr=16>e?16:e,null===Bu)var n=!1;else{if(e=Bu,Bu=null,Vu=0,0!=(6&Su))throw Error(X(331));var o=Su;for(Su|=4,ql=e.current;null!==ql;){var a=ql,i=a.child;if(0!=(16&ql.flags)){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(ql=u;null!==ql;){var c=ql;switch(c.tag){case 0:case 11:case 15:Ql(8,c,a)}var d=c.child;if(null!==d)d.return=c,ql=d;else for(;null!==ql;){var f=(c=ql).sibling,p=c.return;if(Xl(c),c===u){ql=null;break}if(null!==f){f.return=p,ql=f;break}ql=p}}}var h=a.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}ql=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,ql=i;else e:for(;null!==ql;){if(0!=(2048&(a=ql).flags))switch(a.tag){case 0:case 11:case 15:Ql(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,ql=g;break e}ql=a.return}}var y=e.current;for(ql=y;null!==ql;){var b=(i=ql).child;if(0!=(2064&i.subtreeFlags)&&null!==b)b.return=i,ql=b;else e:for(i=y;null!==ql;){if(0!=(2048&(s=ql).flags))try{switch(s.tag){case 0:case 11:case 15:Jl(9,s)}}catch(e){gc(s,s.return,e)}if(s===i){ql=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,ql=w;break e}ql=s.return}}if(Su=o,Ia(),Yt&&"function"==typeof Yt.onPostCommitFiberRoot)try{Yt.onPostCommitFiberRoot(Jt,e)}catch(e){}n=!0}return n}finally{dr=r,wu.transition=t}}return!1}function vc(e,t,r){e=ji(e,t=il(0,t=rl(r,t),1),1),t=Hu(),null!==e&&(ur(e,1,t),Ju(e,t))}function gc(e,t,r){if(3===e.tag)vc(e,e,r);else for(;null!==t;){if(3===t.tag){vc(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Du||!Du.has(n))){t=ji(t,e=sl(t,e=rl(r,e),1),1),e=Hu(),null!==t&&(ur(t,1,e),Ju(t,e));break}}t=t.return}}function yc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=Hu(),e.pingedLanes|=e.suspendedLanes&r,xu===e&&($u&r)===r&&(4===ju||3===ju&&(130023424&$u)===$u&&500>Ut()-Au?ac(e,0):Nu|=r),Ju(e,t)}function bc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=rr,0==(130023424&(rr<<=1))&&(rr=4194304)));var r=Hu();null!==(e=xi(e,t))&&(ur(e,t,r),Ju(e,r))}function wc(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),bc(e,r)}function Sc(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(X(314))}null!==n&&n.delete(t),bc(e,r)}function xc(e,t){return Dt(e,t)}function _c(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $c(e,t,r,n){return new _c(e,t,r,n)}function kc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ec(e,t){var r=e.alternate;return null===r?((r=$c(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function jc(e,t,r,n,o,a){var i=2;if(n=e,"function"==typeof e)kc(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case ve:return Cc(r.children,o,a,t);case ge:i=8,o|=8;break;case ye:return(e=$c(12,r,t,2|o)).elementType=ye,e.lanes=a,e;case xe:return(e=$c(13,r,t,o)).elementType=xe,e.lanes=a,e;case _e:return(e=$c(19,r,t,o)).elementType=_e,e.lanes=a,e;case Ee:return Oc(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case be:i=10;break e;case we:i=9;break e;case Se:i=11;break e;case $e:i=14;break e;case ke:i=16,n=null;break e}throw Error(X(130,null==e?e:typeof e,""))}return(t=$c(i,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function Cc(e,t,r,n){return(e=$c(7,e,n,t)).lanes=r,e}function Oc(e,t,r,n){return(e=$c(22,e,n,t)).elementType=Ee,e.lanes=r,e.stateNode={isHidden:!1},e}function Pc(e,t,r){return(e=$c(6,e,null,t)).lanes=r,e}function Nc(e,t,r){return(t=$c(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rc(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=lr(0),this.expirationTimes=lr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lr(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Tc(e,t,r,n,o,a,i,s,l){return e=new Rc(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=$c(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},$i(a),e}function Ac(e){if(!e)return wa;e:{if(At(e=e._reactInternals)!==e||1!==e.tag)throw Error(X(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ka(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(X(171))}if(1===e.tag){var r=e.type;if(ka(r))return Ca(e,r,t)}return t}function Ic(e,t,r,n,o,a,i,s,l){return(e=Tc(r,n,!0,e,0,a,0,s,l)).context=Ac(null),r=e.current,(a=Ei(n=Hu(),o=Gu(r))).callback=null!=t?t:null,ji(r,a,o),e.current.lanes=o,ur(e,o,n),Ju(e,n),e}function Mc(e,t,r,n){var o=t.current,a=Hu(),i=Gu(o);return r=Ac(r),null===t.context?t.context=r:t.pendingContext=r,(t=Ei(a,i)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=ji(o,t,i))&&(Qu(e,o,i,a),Ci(e,o,i)),i}function Fc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function zc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Dc(e,t){zc(e,t),(e=e.alternate)&&zc(e,t)}vu=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||xa.current)fl=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return fl=!1,function(e,t,r){switch(t.tag){case 3:xl(t),ii();break;case 5:Xi(t);break;case 1:ka(t.type)&&Oa(t);break;case 4:Ji(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;ba(ci,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(ba(es,1&es.current),t.flags|=128,null):0!=(r&t.child.childLanes)?Pl(e,t,r):(ba(es,1&es.current),null!==(e=Fl(e,t,r))?e.sibling:null);ba(es,1&es.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(128&e.flags)){if(n)return Il(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),ba(es,es.current),n)break;return null;case 22:case 23:return t.lanes=0,gl(e,t,r)}return Fl(e,t,r)}(e,t,r);fl=0!=(131072&e.flags)}else fl=!1,Ya&&0!=(1048576&t.flags)&&Ka(t,Da,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ml(e,t),e=t.pendingProps;var o=$a(t,Sa.current);gi(t,r),o=vs(null,t,n,e,o,r);var a=gs();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ka(n)?(a=!0,Oa(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,$i(t),o.updater=Ai,t.stateNode=o,o._reactInternals=t,zi(t,n,e,r),t=Sl(null,t,n,!0,a,r)):(t.tag=0,Ya&&a&&Ha(t),pl(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ml(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"==typeof e)return kc(e)?1:0;if(null!=e){if((e=e.$$typeof)===Se)return 11;if(e===$e)return 14}return 2}(n),e=ui(n,e),o){case 0:t=bl(null,t,n,e,r);break e;case 1:t=wl(null,t,n,e,r);break e;case 11:t=hl(null,t,n,e,r);break e;case 14:t=ml(null,t,n,ui(n.type,e),r);break e}throw Error(X(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,bl(e,t,n,o=t.elementType===n?o:ui(n,o),r);case 1:return n=t.type,o=t.pendingProps,wl(e,t,n,o=t.elementType===n?o:ui(n,o),r);case 3:e:{if(xl(t),null===e)throw Error(X(387));n=t.pendingProps,o=(a=t.memoizedState).element,ki(e,t),Pi(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=_l(e,t,n,r,o=rl(Error(X(423)),t));break e}if(n!==o){t=_l(e,t,n,r,o=rl(Error(X(424)),t));break e}for(Ja=ra(t.stateNode.containerInfo.firstChild),Qa=t,Ya=!0,Xa=null,r=Wi(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ii(),n===o){t=Fl(e,t,r);break e}pl(e,t,n,r)}t=t.child}return t;case 5:return Xi(t),null===e&&ri(t),n=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,Qo(n,o)?i=null:null!==a&&Qo(n,a)&&(t.flags|=32),yl(e,t),pl(e,t,i,r),t.child;case 6:return null===e&&ri(t),null;case 13:return Pl(e,t,r);case 4:return Ji(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ui(t,null,n,r):pl(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,hl(e,t,n,o=t.elementType===n?o:ui(n,o),r);case 7:return pl(e,t,t.pendingProps,r),t.child;case 8:case 12:return pl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,ba(ci,n._currentValue),n._currentValue=i,null!==a)if(Zn(a.value,i)){if(a.children===o.children&&!xa.current){t=Fl(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){i=a.child;for(var l=s.firstContext;null!==l;){if(l.context===n){if(1===a.tag){(l=Ei(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,null!==(l=a.alternate)&&(l.lanes|=r),vi(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(X(341));i.lanes|=r,null!==(s=i.alternate)&&(s.lanes|=r),vi(i,r,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}pl(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,gi(t,r),n=n(o=yi(o)),t.flags|=1,pl(e,t,n,r),t.child;case 14:return o=ui(n=t.type,t.pendingProps),ml(e,t,n,o=ui(n.type,o),r);case 15:return vl(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ui(n,o),Ml(e,t),t.tag=1,ka(n)?(e=!0,Oa(t)):e=!1,gi(t,r),Mi(t,n,o),zi(t,n,o,r),Sl(null,t,n,!0,e,r);case 19:return Il(e,t,r);case 22:return gl(e,t,r)}throw Error(X(156,t.tag))};var Lc="function"==typeof reportError?reportError:function(e){console.error(e)};function Bc(e){this._internalRoot=e}function Vc(e){this._internalRoot=e}function Uc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Wc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function qc(){}function Kc(e,t,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=Fc(i);s.call(e)}}Mc(t,i,e,o)}else i=function(e,t,r,n,o){if(o){if("function"==typeof n){var a=n;n=function(){var e=Fc(i);a.call(e)}}var i=Ic(t,n,e,0,null,!1,0,"",qc);return e._reactRootContainer=i,e[sa]=i.current,Io(8===e.nodeType?e.parentNode:e),nc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof n){var s=n;n=function(){var e=Fc(l);s.call(e)}}var l=Tc(e,0,!1,null,0,!1,0,"",qc);return e._reactRootContainer=l,e[sa]=l.current,Io(8===e.nodeType?e.parentNode:e),nc((function(){Mc(t,l,r,n)})),l}(r,t,e,o,n);return Fc(i)}Vc.prototype.render=Bc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(X(409));Mc(e,t,null,null)},Vc.prototype.unmount=Bc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;nc((function(){Mc(null,e,null,null)})),t[sa]=null}},Vc.prototype.unstable_scheduleHydration=function(e){if(e){var t=vr();e={blockedOn:null,target:e,priority:t};for(var r=0;r<kr.length&&0!==t&&t<kr[r].priority;r++);kr.splice(r,0,e),0===r&&Or(e)}},pr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=nr(t.pendingLanes);0!==r&&(cr(t,1|r),Ju(t,Ut()),0==(6&Su)&&(Iu=Ut()+500,Ia()))}break;case 13:nc((function(){var t=xi(e,1);if(null!==t){var r=Hu();Qu(t,e,1,r)}})),Dc(e,1)}},hr=function(e){if(13===e.tag){var t=xi(e,134217728);if(null!==t)Qu(t,e,134217728,Hu());Dc(e,134217728)}},mr=function(e){if(13===e.tag){var t=Gu(e),r=xi(e,t);if(null!==r)Qu(r,e,t,Hu());Dc(e,t)}},vr=function(){return dr},gr=function(e,t){var r=dr;try{return dr=e,t()}finally{dr=r}},ht=function(e,t,r){switch(t){case"input":if(qe(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=ha(n);if(!o)throw Error(X(90));Le(n),qe(n,o)}}}break;case"textarea":Xe(e,r);break;case"select":null!=(t=r.value)&&Qe(e,!!r.multiple,t,!1)}},wt=rc,St=nc;var Hc={usingClientEntryPoint:!1,Events:[fa,pa,ha,yt,bt,rc]},Gc={findFiberByHostInstance:da,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Qc={bundleType:Gc.bundleType,version:Gc.version,rendererPackageName:Gc.rendererPackageName,rendererConfig:Gc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ft(e))?null:e.stateNode},findFiberByHostInstance:Gc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jc.isDisabled&&Jc.supportsFiber)try{Jt=Jc.inject(Qc),Yt=Jc}catch(bD){}}K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hc,K.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Uc(t))throw Error(X(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:me,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},K.createRoot=function(e,t){if(!Uc(e))throw Error(X(299));var r=!1,n="",o=Lc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Tc(e,1,!1,null,0,r,0,n,o),e[sa]=t.current,Io(8===e.nodeType?e.parentNode:e),new Bc(t)},K.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(X(188));throw e=Object.keys(e).join(","),Error(X(268,e))}return e=null===(e=Ft(t))?null:e.stateNode},K.flushSync=function(e){return nc(e)},K.hydrate=function(e,t,r){if(!Wc(t))throw Error(X(200));return Kc(null,e,t,!0,r)},K.hydrateRoot=function(e,t,r){if(!Uc(e))throw Error(X(405));var n=null!=r&&r.hydratedSources||null,o=!1,a="",i=Lc;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(i=r.onRecoverableError)),t=Ic(t,null,e,1,null!=r?r:null,o,0,a,i),e[sa]=t.current,Io(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Vc(t)},K.render=function(e,t,r){if(!Wc(t))throw Error(X(200));return Kc(null,e,t,!1,r)},K.unmountComponentAtNode=function(e){if(!Wc(e))throw Error(X(40));return!!e._reactRootContainer&&(nc((function(){Kc(null,null,e,!1,(function(){e._reactRootContainer=null,e[sa]=null}))})),!0)},K.unstable_batchedUpdates=rc,K.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Wc(r))throw Error(X(200));if(null==e||void 0===e._reactInternals)throw Error(X(38));return Kc(e,t,r,!1,n)},K.version="18.2.0-next-9e3b772b8-20220608",function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=K}(q);var Yc=n(W),Xc=W;function Zc(e){return!("undefined"!=typeof File&&e instanceof File)&&(!("undefined"!=typeof Date&&e instanceof Date)&&("object"==typeof e&&null!==e&&!Array.isArray(e)))}function ed(e){if(""===e)return;if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;const t=Number(e);return"number"==typeof t&&!Number.isNaN(t)?t:e}U.createRoot=Xc.createRoot,U.hydrateRoot=Xc.hydrateRoot;const td="__additional_property",rd="additionalProperties",nd="allOf",od="anyOf",ad="const",id="default",sd="dependencies",ld="enum",ud="__errors",cd="$id",dd="if",fd="items",pd="$name",hd="oneOf",md="properties",vd="required",gd="submitButtonOptions",yd="$ref",bd="__rjsf_additionalProperties",wd="__rjsf_rootSchema",Sd="ui:widget",xd="ui:options";function _d(e={},t={}){return Object.keys(e).filter((e=>0===e.indexOf("ui:"))).reduce(((t,r)=>{const n=e[r];return r===Sd&&Zc(n)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),t):r===xd&&Zc(n)?Object.assign(Object.assign({},t),n):Object.assign(Object.assign({},t),{[r.substring(3)]:n})}),Object.assign({},t))}function $d(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:n=!0}=_d(t);return!1===n?n:void 0===e.maxProperties||!r||Object.keys(r).length<e.maxProperties}var kd="object"==typeof r&&r&&r.Object===Object&&r,Ed=kd,jd="object"==typeof self&&self&&self.Object===Object&&self,Cd=Ed||jd||Function("return this")(),Od=Cd.Symbol,Pd=Od,Nd=Object.prototype,Rd=Nd.hasOwnProperty,Td=Nd.toString,Ad=Pd?Pd.toStringTag:void 0;var Id=function(e){var t=Rd.call(e,Ad),r=e[Ad];try{e[Ad]=void 0;var n=!0}catch(e){}var o=Td.call(e);return n&&(t?e[Ad]=r:delete e[Ad]),o},Md=Object.prototype.toString;var Fd=Id,zd=function(e){return Md.call(e)},Dd=Od?Od.toStringTag:void 0;var Ld=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Dd&&Dd in Object(e)?Fd(e):zd(e)};var Bd=function(e,t){return function(r){return e(t(r))}},Vd=Bd(Object.getPrototypeOf,Object);var Ud=function(e){return null!=e&&"object"==typeof e},Wd=Ld,qd=Vd,Kd=Ud,Hd=Function.prototype,Gd=Object.prototype,Qd=Hd.toString,Jd=Gd.hasOwnProperty,Yd=Qd.call(Object);var Xd=function(e){if(!Kd(e)||"[object Object]"!=Wd(e))return!1;var t=qd(e);if(null===t)return!0;var r=Jd.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Qd.call(r)==Yd};function Zd(e){const t={[ud]:[],addError(e){this[ud].push(e)}};if(Array.isArray(e))return e.reduce(((e,t,r)=>Object.assign(Object.assign({},e),{[r]:Zd(t)})),t);if(Xd(e)){const r=e;return Object.keys(r).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:Zd(r[t])})),t)}return t}var ef=function(){this.__data__=[],this.size=0};var tf=function(e,t){return e===t||e!=e&&t!=t},rf=tf;var nf=function(e,t){for(var r=e.length;r--;)if(rf(e[r][0],t))return r;return-1},of=nf,af=Array.prototype.splice;var sf=nf;var lf=nf;var uf=nf;var cf=ef,df=function(e){var t=this.__data__,r=of(t,e);return!(r<0)&&(r==t.length-1?t.pop():af.call(t,r,1),--this.size,!0)},ff=function(e){var t=this.__data__,r=sf(t,e);return r<0?void 0:t[r][1]},pf=function(e){return lf(this.__data__,e)>-1},hf=function(e,t){var r=this.__data__,n=uf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function mf(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}mf.prototype.clear=cf,mf.prototype.delete=df,mf.prototype.get=ff,mf.prototype.has=pf,mf.prototype.set=hf;var vf=mf,gf=vf;var yf=function(){this.__data__=new gf,this.size=0};var bf=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var wf=function(e){return this.__data__.get(e)};var Sf=function(e){return this.__data__.has(e)};var xf=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},_f=Ld,$f=xf;var kf,Ef=function(e){if(!$f(e))return!1;var t=_f(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},jf=Cd["__core-js_shared__"],Cf=(kf=/[^.]+$/.exec(jf&&jf.keys&&jf.keys.IE_PROTO||""))?"Symbol(src)_1."+kf:"";var Of=function(e){return!!Cf&&Cf in e},Pf=Function.prototype.toString;var Nf=function(e){if(null!=e){try{return Pf.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Rf=Ef,Tf=Of,Af=xf,If=Nf,Mf=/^\[object .+?Constructor\]$/,Ff=Function.prototype,zf=Object.prototype,Df=Ff.toString,Lf=zf.hasOwnProperty,Bf=RegExp("^"+Df.call(Lf).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Vf=function(e){return!(!Af(e)||Tf(e))&&(Rf(e)?Bf:Mf).test(If(e))},Uf=function(e,t){return null==e?void 0:e[t]};var Wf=function(e,t){var r=Uf(e,t);return Vf(r)?r:void 0},qf=Wf(Cd,"Map"),Kf=Wf(Object,"create"),Hf=Kf;var Gf=function(){this.__data__=Hf?Hf(null):{},this.size=0};var Qf=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Jf=Kf,Yf=Object.prototype.hasOwnProperty;var Xf=function(e){var t=this.__data__;if(Jf){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Yf.call(t,e)?t[e]:void 0},Zf=Kf,ep=Object.prototype.hasOwnProperty;var tp=Kf;var rp=Gf,np=Qf,op=Xf,ap=function(e){var t=this.__data__;return Zf?void 0!==t[e]:ep.call(t,e)},ip=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=tp&&void 0===t?"__lodash_hash_undefined__":t,this};function sp(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}sp.prototype.clear=rp,sp.prototype.delete=np,sp.prototype.get=op,sp.prototype.has=ap,sp.prototype.set=ip;var lp=sp,up=vf,cp=qf;var dp=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},fp=dp;var pp=function(e,t){var r=e.__data__;return fp(t)?r["string"==typeof t?"string":"hash"]:r.map},hp=pp;var mp=pp;var vp=pp;var gp=pp;var yp=function(){this.size=0,this.__data__={hash:new lp,map:new(cp||up),string:new lp}},bp=function(e){var t=hp(this,e).delete(e);return this.size-=t?1:0,t},wp=function(e){return mp(this,e).get(e)},Sp=function(e){return vp(this,e).has(e)},xp=function(e,t){var r=gp(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function _p(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_p.prototype.clear=yp,_p.prototype.delete=bp,_p.prototype.get=wp,_p.prototype.has=Sp,_p.prototype.set=xp;var $p=_p,kp=vf,Ep=qf,jp=$p;var Cp=vf,Op=yf,Pp=bf,Np=wf,Rp=Sf,Tp=function(e,t){var r=this.__data__;if(r instanceof kp){var n=r.__data__;if(!Ep||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new jp(n)}return r.set(e,t),this.size=r.size,this};function Ap(e){var t=this.__data__=new Cp(e);this.size=t.size}Ap.prototype.clear=Op,Ap.prototype.delete=Pp,Ap.prototype.get=Np,Ap.prototype.has=Rp,Ap.prototype.set=Tp;var Ip=Ap;var Mp=$p,Fp=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},zp=function(e){return this.__data__.has(e)};function Dp(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Mp;++t<r;)this.add(e[t])}Dp.prototype.add=Dp.prototype.push=Fp,Dp.prototype.has=zp;var Lp=Dp;var Bp=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var Vp=function(e,t){return e.has(t)},Up=Lp,Wp=Bp,qp=Vp;var Kp=function(e,t,r,n,o,a){var i=1&r,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&r?new Up:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var h=e[d],m=t[d];if(n)var v=i?n(m,h,d,t,e,a):n(h,m,d,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(p){if(!Wp(t,(function(e,t){if(!qp(p,t)&&(h===e||o(h,e,r,n,a)))return p.push(t)}))){f=!1;break}}else if(h!==m&&!o(h,m,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f},Hp=Cd.Uint8Array;var Gp=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Qp=Hp,Jp=tf,Yp=Kp,Xp=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},Zp=Gp,eh=Od?Od.prototype:void 0,th=eh?eh.valueOf:void 0;var rh=function(e,t,r,n,o,a,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new Qp(e),new Qp(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Jp(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Xp;case"[object Set]":var l=1&n;if(s||(s=Zp),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=2,i.set(e,t);var c=Yp(s(e),s(t),n,o,a,i);return i.delete(e),c;case"[object Symbol]":if(th)return th.call(e)==th.call(t)}return!1};var nh=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},oh=Array.isArray,ah=nh,ih=oh;var sh=function(e,t,r){var n=t(e);return ih(e)?n:ah(n,r(e))};var lh=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a};var uh=function(){return[]},ch=lh,dh=uh,fh=Object.prototype.propertyIsEnumerable,ph=Object.getOwnPropertySymbols,hh=ph?function(e){return null==e?[]:(e=Object(e),ch(ph(e),(function(t){return fh.call(e,t)})))}:dh;var mh=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},vh=Ld,gh=Ud;var yh=function(e){return gh(e)&&"[object Arguments]"==vh(e)},bh=Ud,wh=Object.prototype,Sh=wh.hasOwnProperty,xh=wh.propertyIsEnumerable,_h=yh(function(){return arguments}())?yh:function(e){return bh(e)&&Sh.call(e,"callee")&&!xh.call(e,"callee")},$h=_h,kh={},Eh={get exports(){return kh},set exports(e){kh=e}};var jh=function(){return!1};!function(e,t){var r=Cd,n=jh,o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,s=(i?i.isBuffer:void 0)||n;e.exports=s}(Eh,kh);var Ch=/^(?:0|[1-9]\d*)$/;var Oh=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Ch.test(e))&&e>-1&&e%1==0&&e<t};var Ph=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Nh=Ld,Rh=Ph,Th=Ud,Ah={};Ah["[object Float32Array]"]=Ah["[object Float64Array]"]=Ah["[object Int8Array]"]=Ah["[object Int16Array]"]=Ah["[object Int32Array]"]=Ah["[object Uint8Array]"]=Ah["[object Uint8ClampedArray]"]=Ah["[object Uint16Array]"]=Ah["[object Uint32Array]"]=!0,Ah["[object Arguments]"]=Ah["[object Array]"]=Ah["[object ArrayBuffer]"]=Ah["[object Boolean]"]=Ah["[object DataView]"]=Ah["[object Date]"]=Ah["[object Error]"]=Ah["[object Function]"]=Ah["[object Map]"]=Ah["[object Number]"]=Ah["[object Object]"]=Ah["[object RegExp]"]=Ah["[object Set]"]=Ah["[object String]"]=Ah["[object WeakMap]"]=!1;var Ih=function(e){return Th(e)&&Rh(e.length)&&!!Ah[Nh(e)]};var Mh=function(e){return function(t){return e(t)}},Fh={},zh={get exports(){return Fh},set exports(e){Fh=e}};!function(e,t){var r=kd,n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,a=o&&o.exports===n&&r.process,i=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i}(zh,Fh);var Dh=Ih,Lh=Mh,Bh=Fh&&Fh.isTypedArray,Vh=Bh?Lh(Bh):Dh,Uh=mh,Wh=$h,qh=oh,Kh=kh,Hh=Oh,Gh=Vh,Qh=Object.prototype.hasOwnProperty;var Jh=function(e,t){var r=qh(e),n=!r&&Wh(e),o=!r&&!n&&Kh(e),a=!r&&!n&&!o&&Gh(e),i=r||n||o||a,s=i?Uh(e.length,String):[],l=s.length;for(var u in e)!t&&!Qh.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Hh(u,l))||s.push(u);return s},Yh=Object.prototype;var Xh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Yh)},Zh=Bd(Object.keys,Object),em=Xh,tm=Zh,rm=Object.prototype.hasOwnProperty;var nm=function(e){if(!em(e))return tm(e);var t=[];for(var r in Object(e))rm.call(e,r)&&"constructor"!=r&&t.push(r);return t},om=Ef,am=Ph;var im=function(e){return null!=e&&am(e.length)&&!om(e)},sm=Jh,lm=nm,um=im;var cm=function(e){return um(e)?sm(e):lm(e)},dm=sh,fm=hh,pm=cm;var hm=function(e){return dm(e,pm,fm)},mm=hm,vm=Object.prototype.hasOwnProperty;var gm=function(e,t,r,n,o,a){var i=1&r,s=mm(e),l=s.length;if(l!=mm(t).length&&!i)return!1;for(var u=l;u--;){var c=s[u];if(!(i?c in t:vm.call(t,c)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var h=i;++u<l;){var m=e[c=s[u]],v=t[c];if(n)var g=i?n(v,m,c,t,e,a):n(m,v,c,e,t,a);if(!(void 0===g?m===v||o(m,v,r,n,a):g)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p},ym=Wf(Cd,"DataView"),bm=Wf(Cd,"Promise"),wm=Wf(Cd,"Set"),Sm=ym,xm=qf,_m=bm,$m=wm,km=Wf(Cd,"WeakMap"),Em=Ld,jm=Nf,Cm="[object Map]",Om="[object Promise]",Pm="[object Set]",Nm="[object WeakMap]",Rm="[object DataView]",Tm=jm(Sm),Am=jm(xm),Im=jm(_m),Mm=jm($m),Fm=jm(km),zm=Em;(Sm&&zm(new Sm(new ArrayBuffer(1)))!=Rm||xm&&zm(new xm)!=Cm||_m&&zm(_m.resolve())!=Om||$m&&zm(new $m)!=Pm||km&&zm(new km)!=Nm)&&(zm=function(e){var t=Em(e),r="[object Object]"==t?e.constructor:void 0,n=r?jm(r):"";if(n)switch(n){case Tm:return Rm;case Am:return Cm;case Im:return Om;case Mm:return Pm;case Fm:return Nm}return t});var Dm=zm,Lm=Ip,Bm=Kp,Vm=rh,Um=gm,Wm=Dm,qm=oh,Km=kh,Hm=Vh,Gm="[object Arguments]",Qm="[object Array]",Jm="[object Object]",Ym=Object.prototype.hasOwnProperty;var Xm=function(e,t,r,n,o,a){var i=qm(e),s=qm(t),l=i?Qm:Wm(e),u=s?Qm:Wm(t),c=(l=l==Gm?Jm:l)==Jm,d=(u=u==Gm?Jm:u)==Jm,f=l==u;if(f&&Km(e)){if(!Km(t))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new Lm),i||Hm(e)?Bm(e,t,r,n,o,a):Vm(e,t,l,r,n,o,a);if(!(1&r)){var p=c&&Ym.call(e,"__wrapped__"),h=d&&Ym.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,v=h?t.value():t;return a||(a=new Lm),o(m,v,r,n,a)}}return!!f&&(a||(a=new Lm),Um(e,t,r,n,o,a))},Zm=Ud;var ev=function e(t,r,n,o,a){return t===r||(null==t||null==r||!Zm(t)&&!Zm(r)?t!=t&&r!=r:Xm(t,r,n,o,e,a))},tv=ev;var rv=function(e,t,r){var n=(r="function"==typeof r?r:void 0)?r(e,t):void 0;return void 0===n?tv(e,t,void 0,r):!!n};function nv(e,t){return rv(e,t,((e,t)=>{if("function"==typeof e&&"function"==typeof t)return!0}))}
21
+ var J=a,Y=H;function X(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Z=new Set,ee={};function te(e,t){re(e,t),re(e+"Capture",t)}function re(e,t){for(ee[e]=t,e=0;e<t.length;e++)Z.add(t[e])}var ne=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),oe=Object.prototype.hasOwnProperty,ae=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ie={},se={};function le(e,t,r,n,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var ue={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ue[e]=new le(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ue[t]=new le(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ue[e]=new le(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ue[e]=new le(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){ue[e]=new le(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ue[e]=new le(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){ue[e]=new le(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){ue[e]=new le(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){ue[e]=new le(e,5,!1,e.toLowerCase(),null,!1,!1)}));var ce=/[\-:]([a-z])/g;function de(e){return e[1].toUpperCase()}function fe(e,t,r,n){var o=ue.hasOwnProperty(t)?ue[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!oe.call(se,e)||!oe.call(ie,e)&&(ae.test(e)?se[e]=!0:(ie[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ce,de);ue[t]=new le(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ce,de);ue[t]=new le(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ce,de);ue[t]=new le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){ue[e]=new le(e,1,!1,e.toLowerCase(),null,!1,!1)})),ue.xlinkHref=new le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){ue[e]=new le(e,1,!1,e.toLowerCase(),null,!0,!0)}));var pe=J.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,he=Symbol.for("react.element"),me=Symbol.for("react.portal"),ve=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),ye=Symbol.for("react.profiler"),be=Symbol.for("react.provider"),we=Symbol.for("react.context"),Se=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),_e=Symbol.for("react.suspense_list"),$e=Symbol.for("react.memo"),ke=Symbol.for("react.lazy"),Ee=Symbol.for("react.offscreen"),je=Symbol.iterator;function Ce(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=je&&e[je]||e["@@iterator"])?e:null}var Oe,Pe=Object.assign;function Ne(e){if(void 0===Oe)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Oe=t&&t[1]||""}return"\n"+Oe+e}var Re=!1;function Te(e,t){if(!e||Re)return"";Re=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=n.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{Re=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ne(e):""}function Ae(e){switch(e.tag){case 5:return Ne(e.type);case 16:return Ne("Lazy");case 13:return Ne("Suspense");case 19:return Ne("SuspenseList");case 0:case 2:case 15:return e=Te(e.type,!1);case 11:return e=Te(e.type.render,!1);case 1:return e=Te(e.type,!0);default:return""}}function Ie(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ve:return"Fragment";case me:return"Portal";case ye:return"Profiler";case ge:return"StrictMode";case xe:return"Suspense";case _e:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case we:return(e.displayName||"Context")+".Consumer";case be:return(e._context.displayName||"Context")+".Provider";case Se:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case $e:return null!==(t=e.displayName||null)?t:Ie(e.type)||"Memo";case ke:t=e._payload,e=e._init;try{return Ie(e(t))}catch(e){}}return null}function Me(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ie(t);case 8:return t===ge?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Fe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ze(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function De(e){e._valueTracker||(e._valueTracker=function(e){var t=ze(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Le(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ze(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Be(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ve(e,t){var r=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Ue(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=Fe(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function We(e,t){null!=(t=t.checked)&&fe(e,"checked",t,!1)}function qe(e,t){We(e,t);var r=Fe(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?He(e,t.type,r):t.hasOwnProperty("defaultValue")&&He(e,t.type,Fe(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ke(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function He(e,t,r){"number"===t&&Be(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ge=Array.isArray;function Qe(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Fe(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Je(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(X(91));return Pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ye(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(X(92));if(Ge(r)){if(1<r.length)throw Error(X(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:Fe(r)}}function Xe(e,t){var r=Fe(t.value),n=Fe(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function Ze(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function et(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function tt(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?et(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var rt,nt=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction((function(){return e(t,r)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((rt=rt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=rt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ot(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var at={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},it=["Webkit","ms","Moz","O"];function st(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||at.hasOwnProperty(e)&&at[e]?(""+t).trim():t+"px"}function lt(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=st(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(at).forEach((function(e){it.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),at[t]=at[e]}))}));var ut=Pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ct(e,t){if(t){if(ut[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(X(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(X(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(X(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(X(62))}}function dt(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ft=null;function pt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ht=null,mt=null,vt=null;function gt(e){if(e=fa(e)){if("function"!=typeof ht)throw Error(X(280));var t=e.stateNode;t&&(t=ha(t),ht(e.stateNode,e.type,t))}}function yt(e){mt?vt?vt.push(e):vt=[e]:mt=e}function bt(){if(mt){var e=mt,t=vt;if(vt=mt=null,gt(e),t)for(e=0;e<t.length;e++)gt(t[e])}}function wt(e,t){return e(t)}function St(){}var xt=!1;function _t(e,t,r){if(xt)return e(t,r);xt=!0;try{return wt(e,t,r)}finally{xt=!1,(null!==mt||null!==vt)&&(St(),bt())}}function $t(e,t){var r=e.stateNode;if(null===r)return null;var n=ha(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(X(231,t,typeof r));return r}var kt=!1;if(ne)try{var Et={};Object.defineProperty(Et,"passive",{get:function(){kt=!0}}),window.addEventListener("test",Et,Et),window.removeEventListener("test",Et,Et)}catch(_D){kt=!1}function jt(e,t,r,n,o,a,i,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(e){this.onError(e)}}var Ct=!1,Ot=null,Pt=!1,Nt=null,Rt={onError:function(e){Ct=!0,Ot=e}};function Tt(e,t,r,n,o,a,i,s,l){Ct=!1,Ot=null,jt.apply(Rt,arguments)}function At(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function It(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Mt(e){if(At(e)!==e)throw Error(X(188))}function Ft(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=At(e)))throw Error(X(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(n=o.return)){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Mt(o),e;if(a===n)return Mt(o),t;a=a.sibling}throw Error(X(188))}if(r.return!==n.return)r=o,n=a;else{for(var i=!1,s=o.child;s;){if(s===r){i=!0,r=o,n=a;break}if(s===n){i=!0,n=o,r=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===r){i=!0,r=a,n=o;break}if(s===n){i=!0,n=a,r=o;break}s=s.sibling}if(!i)throw Error(X(189))}}if(r.alternate!==n)throw Error(X(190))}if(3!==r.tag)throw Error(X(188));return r.stateNode.current===r?e:t}(e),null!==e?zt(e):null}function zt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=zt(e);if(null!==t)return t;e=e.sibling}return null}var Dt=Y.unstable_scheduleCallback,Lt=Y.unstable_cancelCallback,Bt=Y.unstable_shouldYield,Vt=Y.unstable_requestPaint,Ut=Y.unstable_now,Wt=Y.unstable_getCurrentPriorityLevel,qt=Y.unstable_ImmediatePriority,Kt=Y.unstable_UserBlockingPriority,Ht=Y.unstable_NormalPriority,Gt=Y.unstable_LowPriority,Qt=Y.unstable_IdlePriority,Jt=null,Yt=null;var Xt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Zt(e)/er|0)|0},Zt=Math.log,er=Math.LN2;var tr=64,rr=4194304;function nr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function or(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&r;if(0!==i){var s=i&~o;0!==s?n=nr(s):0!==(a&=i)&&(n=nr(a))}else 0!==(i=r&~o)?n=nr(i):0!==a&&(n=nr(a));if(0===n)return 0;if(0!==t&&t!==n&&0==(t&o)&&((o=n&-n)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-Xt(t)),n|=e[r],t&=~o;return n}function ar(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ir(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function sr(){var e=tr;return 0==(4194240&(tr<<=1))&&(tr=64),e}function lr(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ur(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Xt(t)]=r}function cr(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Xt(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var dr=0;function fr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var pr,hr,mr,vr,gr,yr=!1,br=[],wr=null,Sr=null,xr=null,_r=new Map,$r=new Map,kr=[],Er="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jr(e,t){switch(e){case"focusin":case"focusout":wr=null;break;case"dragenter":case"dragleave":Sr=null;break;case"mouseover":case"mouseout":xr=null;break;case"pointerover":case"pointerout":_r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$r.delete(t.pointerId)}}function Cr(e,t,r,n,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=fa(t))&&hr(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Or(e){var t=da(e.target);if(null!==t){var r=At(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=It(r)))return e.blockedOn=t,void gr(e.priority,(function(){mr(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Pr(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Br(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=fa(r))&&hr(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);ft=n,r.target.dispatchEvent(n),ft=null,t.shift()}return!0}function Nr(e,t,r){Pr(e)&&r.delete(t)}function Rr(){yr=!1,null!==wr&&Pr(wr)&&(wr=null),null!==Sr&&Pr(Sr)&&(Sr=null),null!==xr&&Pr(xr)&&(xr=null),_r.forEach(Nr),$r.forEach(Nr)}function Tr(e,t){e.blockedOn===t&&(e.blockedOn=null,yr||(yr=!0,Y.unstable_scheduleCallback(Y.unstable_NormalPriority,Rr)))}function Ar(e){function t(t){return Tr(t,e)}if(0<br.length){Tr(br[0],e);for(var r=1;r<br.length;r++){var n=br[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==wr&&Tr(wr,e),null!==Sr&&Tr(Sr,e),null!==xr&&Tr(xr,e),_r.forEach(t),$r.forEach(t),r=0;r<kr.length;r++)(n=kr[r]).blockedOn===e&&(n.blockedOn=null);for(;0<kr.length&&null===(r=kr[0]).blockedOn;)Or(r),null===r.blockedOn&&kr.shift()}var Ir=pe.ReactCurrentBatchConfig,Mr=!0;function Fr(e,t,r,n){var o=dr,a=Ir.transition;Ir.transition=null;try{dr=1,Dr(e,t,r,n)}finally{dr=o,Ir.transition=a}}function zr(e,t,r,n){var o=dr,a=Ir.transition;Ir.transition=null;try{dr=4,Dr(e,t,r,n)}finally{dr=o,Ir.transition=a}}function Dr(e,t,r,n){if(Mr){var o=Br(e,t,r,n);if(null===o)Fo(e,t,n,Lr,r),jr(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return wr=Cr(wr,e,t,r,n,o),!0;case"dragenter":return Sr=Cr(Sr,e,t,r,n,o),!0;case"mouseover":return xr=Cr(xr,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return _r.set(a,Cr(_r.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,$r.set(a,Cr($r.get(a)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(jr(e,n),4&t&&-1<Er.indexOf(e)){for(;null!==o;){var a=fa(o);if(null!==a&&pr(a),null===(a=Br(e,t,r,n))&&Fo(e,t,n,Lr,r),a===o)break;o=a}null!==o&&n.stopPropagation()}else Fo(e,t,n,null,r)}}var Lr=null;function Br(e,t,r,n){if(Lr=null,null!==(e=da(e=pt(n))))if(null===(t=At(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=It(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Lr=e,null}function Vr(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Wt()){case qt:return 1;case Kt:return 4;case Ht:case Gt:return 16;case Qt:return 536870912;default:return 16}default:return 16}}var Ur=null,Wr=null,qr=null;function Kr(){if(qr)return qr;var e,t,r=Wr,n=r.length,o="value"in Ur?Ur.value:Ur.textContent,a=o.length;for(e=0;e<n&&r[e]===o[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===o[a-t];t++);return qr=o.slice(e,1<t?1-t:void 0)}function Hr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Gr(){return!0}function Qr(){return!1}function Jr(e){function t(t,r,n,o,a){for(var i in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Gr:Qr,this.isPropagationStopped=Qr,this}return Pe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Gr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Gr)},persist:function(){},isPersistent:Gr}),t}var Yr,Xr,Zr,en={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tn=Jr(en),rn=Pe({},en,{view:0,detail:0}),nn=Jr(rn),on=Pe({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zr&&(Zr&&"mousemove"===e.type?(Yr=e.screenX-Zr.screenX,Xr=e.screenY-Zr.screenY):Xr=Yr=0,Zr=e),Yr)},movementY:function(e){return"movementY"in e?e.movementY:Xr}}),an=Jr(on),sn=Jr(Pe({},on,{dataTransfer:0})),ln=Jr(Pe({},rn,{relatedTarget:0})),un=Jr(Pe({},en,{animationName:0,elapsedTime:0,pseudoElement:0})),cn=Pe({},en,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dn=Jr(cn),fn=Jr(Pe({},en,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=mn[e])&&!!t[e]}function gn(){return vn}var yn=Pe({},rn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Hr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gn,charCode:function(e){return"keypress"===e.type?Hr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Hr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),bn=Jr(yn),wn=Jr(Pe({},on,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Sn=Jr(Pe({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),xn=Jr(Pe({},en,{propertyName:0,elapsedTime:0,pseudoElement:0})),_n=Pe({},on,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),$n=Jr(_n),kn=[9,13,27,32],En=ne&&"CompositionEvent"in window,jn=null;ne&&"documentMode"in document&&(jn=document.documentMode);var Cn=ne&&"TextEvent"in window&&!jn,On=ne&&(!En||jn&&8<jn&&11>=jn),Pn=String.fromCharCode(32),Nn=!1;function Rn(e,t){switch(e){case"keyup":return-1!==kn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var An=!1;var In={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!In[e.type]:"textarea"===t}function Fn(e,t,r,n){yt(n),0<(t=Do(t,"onChange")).length&&(r=new tn("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var zn=null,Dn=null;function Ln(e){No(e,0)}function Bn(e){if(Le(pa(e)))return e}function Vn(e,t){if("change"===e)return t}var Un=!1;if(ne){var Wn;if(ne){var qn="oninput"in document;if(!qn){var Kn=document.createElement("div");Kn.setAttribute("oninput","return;"),qn="function"==typeof Kn.oninput}Wn=qn}else Wn=!1;Un=Wn&&(!document.documentMode||9<document.documentMode)}function Hn(){zn&&(zn.detachEvent("onpropertychange",Gn),Dn=zn=null)}function Gn(e){if("value"===e.propertyName&&Bn(Dn)){var t=[];Fn(t,Dn,e,pt(e)),_t(Ln,t)}}function Qn(e,t,r){"focusin"===e?(Hn(),Dn=r,(zn=t).attachEvent("onpropertychange",Gn)):"focusout"===e&&Hn()}function Jn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Bn(Dn)}function Yn(e,t){if("click"===e)return Bn(t)}function Xn(e,t){if("input"===e||"change"===e)return Bn(t)}var Zn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function eo(e,t){if(Zn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!oe.call(t,o)||!Zn(e[o],t[o]))return!1}return!0}function to(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ro(e,t){var r,n=to(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=to(n)}}function no(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?no(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function oo(){for(var e=window,t=Be();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Be((e=t.contentWindow).document)}return t}function ao(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function io(e){var t=oo(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&no(r.ownerDocument.documentElement,r)){if(null!==n&&ao(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=void 0===n.end?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=ro(r,a);var i=ro(r,n);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var so=ne&&"documentMode"in document&&11>=document.documentMode,lo=null,uo=null,co=null,fo=!1;function po(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;fo||null==lo||lo!==Be(n)||("selectionStart"in(n=lo)&&ao(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},co&&eo(co,n)||(co=n,0<(n=Do(uo,"onSelect")).length&&(t=new tn("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=lo)))}function ho(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var mo={animationend:ho("Animation","AnimationEnd"),animationiteration:ho("Animation","AnimationIteration"),animationstart:ho("Animation","AnimationStart"),transitionend:ho("Transition","TransitionEnd")},vo={},go={};function yo(e){if(vo[e])return vo[e];if(!mo[e])return e;var t,r=mo[e];for(t in r)if(r.hasOwnProperty(t)&&t in go)return vo[e]=r[t];return e}ne&&(go=document.createElement("div").style,"AnimationEvent"in window||(delete mo.animationend.animation,delete mo.animationiteration.animation,delete mo.animationstart.animation),"TransitionEvent"in window||delete mo.transitionend.transition);var bo=yo("animationend"),wo=yo("animationiteration"),So=yo("animationstart"),xo=yo("transitionend"),_o=new Map,$o="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ko(e,t){_o.set(e,t),te(t,[e])}for(var Eo=0;Eo<$o.length;Eo++){var jo=$o[Eo];ko(jo.toLowerCase(),"on"+(jo[0].toUpperCase()+jo.slice(1)))}ko(bo,"onAnimationEnd"),ko(wo,"onAnimationIteration"),ko(So,"onAnimationStart"),ko("dblclick","onDoubleClick"),ko("focusin","onFocus"),ko("focusout","onBlur"),ko(xo,"onTransitionEnd"),re("onMouseEnter",["mouseout","mouseover"]),re("onMouseLeave",["mouseout","mouseover"]),re("onPointerEnter",["pointerout","pointerover"]),re("onPointerLeave",["pointerout","pointerover"]),te("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),te("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),te("onBeforeInput",["compositionend","keypress","textInput","paste"]),te("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),te("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),te("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Co="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Oo=new Set("cancel close invalid load scroll toggle".split(" ").concat(Co));function Po(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,a,i,s,l){if(Tt.apply(this,arguments),Ct){if(!Ct)throw Error(X(198));var u=Ot;Ct=!1,Ot=null,Pt||(Pt=!0,Nt=u)}}(n,t,void 0,e),e.currentTarget=null}function No(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;Po(o,s,u),a=l}else for(i=0;i<n.length;i++){if(l=(s=n[i]).instance,u=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;Po(o,s,u),a=l}}}if(Pt)throw e=Nt,Pt=!1,Nt=null,e}function Ro(e,t){var r=t[la];void 0===r&&(r=t[la]=new Set);var n=e+"__bubble";r.has(n)||(Mo(t,e,2,!1),r.add(n))}function To(e,t,r){var n=0;t&&(n|=4),Mo(r,e,n,t)}var Ao="_reactListening"+Math.random().toString(36).slice(2);function Io(e){if(!e[Ao]){e[Ao]=!0,Z.forEach((function(t){"selectionchange"!==t&&(Oo.has(t)||To(t,!1,e),To(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ao]||(t[Ao]=!0,To("selectionchange",!1,t))}}function Mo(e,t,r,n){switch(Vr(t)){case 1:var o=Fr;break;case 4:o=zr;break;default:o=Dr}r=o.bind(null,t,r,e),o=void 0,!kt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Fo(e,t,r,n,o){var a=n;if(0==(1&t)&&0==(2&t)&&null!==n)e:for(;;){if(null===n)return;var i=n.tag;if(3===i||4===i){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=n.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=da(s)))return;if(5===(l=i.tag)||6===l){n=a=i;continue e}s=s.parentNode}}n=n.return}_t((function(){var n=a,o=pt(r),i=[];e:{var s=_o.get(e);if(void 0!==s){var l=tn,u=e;switch(e){case"keypress":if(0===Hr(r))break e;case"keydown":case"keyup":l=bn;break;case"focusin":u="focus",l=ln;break;case"focusout":u="blur",l=ln;break;case"beforeblur":case"afterblur":l=ln;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=an;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=sn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Sn;break;case bo:case wo:case So:l=un;break;case xo:l=xn;break;case"scroll":l=nn;break;case"wheel":l=$n;break;case"copy":case"cut":case"paste":l=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=wn}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=n;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=$t(h,f))&&c.push(zo(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,r,o),i.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===ft||!(u=r.relatedTarget||r.fromElement)||!da(u)&&!u[sa])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(u=(u=r.relatedTarget||r.toElement)?da(u):null)&&(u!==(d=At(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=n),l!==u)){if(c=an,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=wn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:pa(l),p=null==u?s:pa(u),(s=new c(m,h+"leave",l,r,o)).target=d,s.relatedTarget=p,m=null,da(o)===n&&((c=new c(f,h+"enter",u,r,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Lo(p))h++;for(p=0,m=f;m;m=Lo(m))p++;for(;0<h-p;)c=Lo(c),h--;for(;0<p-h;)f=Lo(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Lo(c),f=Lo(f)}c=null}else c=null;null!==l&&Bo(i,s,l,c,!1),null!==u&&null!==d&&Bo(i,d,u,c,!0)}if("select"===(l=(s=n?pa(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Vn;else if(Mn(s))if(Un)v=Xn;else{v=Jn;var g=Qn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=Yn);switch(v&&(v=v(e,n))?Fn(i,v,r,o):(g&&g(e,s,n),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&He(s,"number",s.value)),g=n?pa(n):window,e){case"focusin":(Mn(g)||"true"===g.contentEditable)&&(lo=g,uo=n,co=null);break;case"focusout":co=uo=lo=null;break;case"mousedown":fo=!0;break;case"contextmenu":case"mouseup":case"dragend":fo=!1,po(i,r,o);break;case"selectionchange":if(so)break;case"keydown":case"keyup":po(i,r,o)}var y;if(En)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else An?Rn(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(On&&"ko"!==r.locale&&(An||"onCompositionStart"!==b?"onCompositionEnd"===b&&An&&(y=Kr()):(Wr="value"in(Ur=o)?Ur.value:Ur.textContent,An=!0)),0<(g=Do(n,b)).length&&(b=new fn(b,e,null,r,o),i.push({event:b,listeners:g}),y?b.data=y:null!==(y=Tn(r))&&(b.data=y))),(y=Cn?function(e,t){switch(e){case"compositionend":return Tn(t);case"keypress":return 32!==t.which?null:(Nn=!0,Pn);case"textInput":return(e=t.data)===Pn&&Nn?null:e;default:return null}}(e,r):function(e,t){if(An)return"compositionend"===e||!En&&Rn(e,t)?(e=Kr(),qr=Wr=Ur=null,An=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return On&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Do(n,"onBeforeInput")).length&&(o=new fn("onBeforeInput","beforeinput",null,r,o),i.push({event:o,listeners:n}),o.data=y))}No(i,t)}))}function zo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Do(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=$t(e,r))&&n.unshift(zo(e,a,o)),null!=(a=$t(e,t))&&n.push(zo(e,a,o))),e=e.return}return n}function Lo(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Bo(e,t,r,n,o){for(var a=t._reactName,i=[];null!==r&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=$t(r,a))&&i.unshift(zo(r,l,s)):o||null!=(l=$t(r,a))&&i.push(zo(r,l,s))),r=r.return}0!==i.length&&e.push({event:t,listeners:i})}var Vo=/\r\n?/g,Uo=/\u0000|\uFFFD/g;function Wo(e){return("string"==typeof e?e:""+e).replace(Vo,"\n").replace(Uo,"")}function qo(e,t,r){if(t=Wo(t),Wo(e)!==t&&r)throw Error(X(425))}function Ko(){}var Ho=null,Go=null;function Qo(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Jo="function"==typeof setTimeout?setTimeout:void 0,Yo="function"==typeof clearTimeout?clearTimeout:void 0,Xo="function"==typeof Promise?Promise:void 0,Zo="function"==typeof queueMicrotask?queueMicrotask:void 0!==Xo?function(e){return Xo.resolve(null).then(e).catch(ea)}:Jo;function ea(e){setTimeout((function(){throw e}))}function ta(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void Ar(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);Ar(t)}function ra(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function na(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var oa=Math.random().toString(36).slice(2),aa="__reactFiber$"+oa,ia="__reactProps$"+oa,sa="__reactContainer$"+oa,la="__reactEvents$"+oa,ua="__reactListeners$"+oa,ca="__reactHandles$"+oa;function da(e){var t=e[aa];if(t)return t;for(var r=e.parentNode;r;){if(t=r[sa]||r[aa]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=na(e);null!==e;){if(r=e[aa])return r;e=na(e)}return t}r=(e=r).parentNode}return null}function fa(e){return!(e=e[aa]||e[sa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function pa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(X(33))}function ha(e){return e[ia]||null}var ma=[],va=-1;function ga(e){return{current:e}}function ya(e){0>va||(e.current=ma[va],ma[va]=null,va--)}function ba(e,t){va++,ma[va]=e.current,e.current=t}var wa={},Sa=ga(wa),xa=ga(!1),_a=wa;function $a(e,t){var r=e.type.contextTypes;if(!r)return wa;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ka(e){return null!=(e=e.childContextTypes)}function Ea(){ya(xa),ya(Sa)}function ja(e,t,r){if(Sa.current!==wa)throw Error(X(168));ba(Sa,t),ba(xa,r)}function Ca(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(X(108,Me(e)||"Unknown",o));return Pe({},r,n)}function Oa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wa,_a=Sa.current,ba(Sa,e),ba(xa,xa.current),!0}function Pa(e,t,r){var n=e.stateNode;if(!n)throw Error(X(169));r?(e=Ca(e,t,_a),n.__reactInternalMemoizedMergedChildContext=e,ya(xa),ya(Sa),ba(Sa,e)):ya(xa),ba(xa,r)}var Na=null,Ra=!1,Ta=!1;function Aa(e){null===Na?Na=[e]:Na.push(e)}function Ia(){if(!Ta&&null!==Na){Ta=!0;var e=0,t=dr;try{var r=Na;for(dr=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Na=null,Ra=!1}catch(t){throw null!==Na&&(Na=Na.slice(e+1)),Dt(qt,Ia),t}finally{dr=t,Ta=!1}}return null}var Ma=[],Fa=0,za=null,Da=0,La=[],Ba=0,Va=null,Ua=1,Wa="";function qa(e,t){Ma[Fa++]=Da,Ma[Fa++]=za,za=e,Da=t}function Ka(e,t,r){La[Ba++]=Ua,La[Ba++]=Wa,La[Ba++]=Va,Va=e;var n=Ua;e=Wa;var o=32-Xt(n)-1;n&=~(1<<o),r+=1;var a=32-Xt(t)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Ua=1<<32-Xt(t)+o|r<<o|n,Wa=a+e}else Ua=1<<a|r<<o|n,Wa=e}function Ha(e){null!==e.return&&(qa(e,1),Ka(e,1,0))}function Ga(e){for(;e===za;)za=Ma[--Fa],Ma[Fa]=null,Da=Ma[--Fa],Ma[Fa]=null;for(;e===Va;)Va=La[--Ba],La[Ba]=null,Wa=La[--Ba],La[Ba]=null,Ua=La[--Ba],La[Ba]=null}var Qa=null,Ja=null,Ya=!1,Xa=null;function Za(e,t){var r=$c(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function ei(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Qa=e,Ja=ra(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Qa=e,Ja=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Va?{id:Ua,overflow:Wa}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=$c(18,null,null,0)).stateNode=t,r.return=e,e.child=r,Qa=e,Ja=null,!0);default:return!1}}function ti(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ri(e){if(Ya){var t=Ja;if(t){var r=t;if(!ei(e,t)){if(ti(e))throw Error(X(418));t=ra(r.nextSibling);var n=Qa;t&&ei(e,t)?Za(n,r):(e.flags=-4097&e.flags|2,Ya=!1,Qa=e)}}else{if(ti(e))throw Error(X(418));e.flags=-4097&e.flags|2,Ya=!1,Qa=e}}}function ni(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Qa=e}function oi(e){if(e!==Qa)return!1;if(!Ya)return ni(e),Ya=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Qo(e.type,e.memoizedProps)),t&&(t=Ja)){if(ti(e))throw ai(),Error(X(418));for(;t;)Za(e,t),t=ra(t.nextSibling)}if(ni(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(X(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Ja=ra(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Ja=null}}else Ja=Qa?ra(e.stateNode.nextSibling):null;return!0}function ai(){for(var e=Ja;e;)e=ra(e.nextSibling)}function ii(){Ja=Qa=null,Ya=!1}function si(e){null===Xa?Xa=[e]:Xa.push(e)}var li=pe.ReactCurrentBatchConfig;function ui(e,t){if(e&&e.defaultProps){for(var r in t=Pe({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var ci=ga(null),di=null,fi=null,pi=null;function hi(){pi=fi=di=null}function mi(e){var t=ci.current;ya(ci),e._currentValue=t}function vi(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function gi(e,t){di=e,pi=fi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(fl=!0),e.firstContext=null)}function yi(e){var t=e._currentValue;if(pi!==e)if(e={context:e,memoizedValue:t,next:null},null===fi){if(null===di)throw Error(X(308));fi=e,di.dependencies={lanes:0,firstContext:e}}else fi=fi.next=e;return t}var bi=null;function wi(e){null===bi?bi=[e]:bi.push(e)}function Si(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,wi(t)):(r.next=o.next,o.next=r),t.interleaved=r,xi(e,n)}function xi(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var _i=!1;function $i(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ki(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ei(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ji(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!=(2&Su)){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,xi(e,r)}return null===(o=n.interleaved)?(t.next=t,wi(n)):(t.next=o.next,o.next=t),n.interleaved=t,xi(e,r)}function Ci(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,cr(e,r)}}function Oi(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?o=a=i:a=a.next=i,r=r.next}while(null!==r);null===a?o=a=t:a=a.next=t}else o=a=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Pi(e,t,r,n){var o=e.updateQueue;_i=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===i?a=u:i.next=u,i=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,c=u=l=null,s=a;;){var f=s.lane,p=s.eventTime;if((n&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=r,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=Pe({},d,f);break e;case 2:_i=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,i|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Ou|=i,e.lanes=i,e.memoizedState=d}}function Ni(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(X(191,o));o.call(n)}}}var Ri=(new J.Component).refs;function Ti(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:Pe({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Ai={isMounted:function(e){return!!(e=e._reactInternals)&&At(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Hu(),o=Gu(e),a=Ei(n,o);a.payload=t,null!=r&&(a.callback=r),null!==(t=ji(e,a,o))&&(Qu(t,e,o,n),Ci(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Hu(),o=Gu(e),a=Ei(n,o);a.tag=1,a.payload=t,null!=r&&(a.callback=r),null!==(t=ji(e,a,o))&&(Qu(t,e,o,n),Ci(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Hu(),n=Gu(e),o=Ei(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=ji(e,o,n))&&(Qu(t,e,n,r),Ci(t,e,n))}};function Ii(e,t,r,n,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!eo(r,n)||!eo(o,a))}function Mi(e,t,r){var n=!1,o=wa,a=t.contextType;return"object"==typeof a&&null!==a?a=yi(a):(o=ka(t)?_a:Sa.current,a=(n=null!=(n=t.contextTypes))?$a(e,o):wa),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ai,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Fi(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Ai.enqueueReplaceState(t,t.state,null)}function zi(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=Ri,$i(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=yi(a):(a=ka(t)?_a:Sa.current,o.context=$a(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Ti(e,t,a,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ai.enqueueReplaceState(o,o.state,null),Pi(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Di(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(X(309));var n=r.stateNode}if(!n)throw Error(X(147,e));var o=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Ri&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(X(284));if(!r._owner)throw Error(X(290,e))}return e}function Li(e,t){throw e=Object.prototype.toString.call(t),Error(X(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Bi(e){return(0,e._init)(e._payload)}function Vi(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ec(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=Pc(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function l(e,t,r,n){var a=r.type;return a===ve?c(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===ke&&Bi(a)===t.type)?((n=o(t,r.props)).ref=Di(e,t,r),n.return=e,n):((n=jc(r.type,r.key,r.props,null,e.mode,n)).ref=Di(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Nc(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function c(e,t,r,n,a){return null===t||7!==t.tag?((t=Cc(r,e.mode,n,a)).return=e,t):((t=o(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Pc(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case he:return(r=jc(t.type,t.key,t.props,null,e.mode,r)).ref=Di(e,null,t),r.return=e,r;case me:return(t=Nc(t,e.mode,r)).return=e,t;case ke:return d(e,(0,t._init)(t._payload),r)}if(Ge(t)||Ce(t))return(t=Cc(t,e.mode,r,null)).return=e,t;Li(e,t)}return null}function f(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case he:return r.key===o?l(e,t,r,n):null;case me:return r.key===o?u(e,t,r,n):null;case ke:return f(e,t,(o=r._init)(r._payload),n)}if(Ge(r)||Ce(r))return null!==o?null:c(e,t,r,n,null);Li(e,r)}return null}function p(e,t,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case he:return l(t,e=e.get(null===n.key?r:n.key)||null,n,o);case me:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o);case ke:return p(e,t,r,(0,n._init)(n._payload),o)}if(Ge(n)||Ce(n))return c(t,e=e.get(r)||null,n,o,null);Li(t,n)}return null}function h(o,i,s,l){for(var u=null,c=null,h=i,m=i=0,v=null;null!==h&&m<s.length;m++){h.index>m?(v=h,h=null):v=h.sibling;var g=f(o,h,s[m],l);if(null===g){null===h&&(h=v);break}e&&h&&null===g.alternate&&t(o,h),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g,h=v}if(m===s.length)return r(o,h),Ya&&qa(o,m),u;if(null===h){for(;m<s.length;m++)null!==(h=d(o,s[m],l))&&(i=a(h,i,m),null===c?u=h:c.sibling=h,c=h);return Ya&&qa(o,m),u}for(h=n(o,h);m<s.length;m++)null!==(v=p(h,o,m,s[m],l))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return t(o,e)})),Ya&&qa(o,m),u}function m(o,i,s,l){var u=Ce(s);if("function"!=typeof u)throw Error(X(150));if(null==(s=u.call(s)))throw Error(X(151));for(var c=u=null,h=i,m=i=0,v=null,g=s.next();null!==h&&!g.done;m++,g=s.next()){h.index>m?(v=h,h=null):v=h.sibling;var y=f(o,h,g.value,l);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(o,h),i=a(y,i,m),null===c?u=y:c.sibling=y,c=y,h=v}if(g.done)return r(o,h),Ya&&qa(o,m),u;if(null===h){for(;!g.done;m++,g=s.next())null!==(g=d(o,g.value,l))&&(i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return Ya&&qa(o,m),u}for(h=n(o,h);!g.done;m++,g=s.next())null!==(g=p(h,o,m,g.value,l))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&h.forEach((function(e){return t(o,e)})),Ya&&qa(o,m),u}return function e(n,a,s,l){if("object"==typeof s&&null!==s&&s.type===ve&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case he:e:{for(var u=s.key,c=a;null!==c;){if(c.key===u){if((u=s.type)===ve){if(7===c.tag){r(n,c.sibling),(a=o(c,s.props.children)).return=n,n=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===ke&&Bi(u)===c.type){r(n,c.sibling),(a=o(c,s.props)).ref=Di(n,c,s),a.return=n,n=a;break e}r(n,c);break}t(n,c),c=c.sibling}s.type===ve?((a=Cc(s.props.children,n.mode,l,s.key)).return=n,n=a):((l=jc(s.type,s.key,s.props,null,n.mode,l)).ref=Di(n,a,s),l.return=n,n=l)}return i(n);case me:e:{for(c=s.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){r(n,a.sibling),(a=o(a,s.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Nc(s,n.mode,l)).return=n,n=a}return i(n);case ke:return e(n,a,(c=s._init)(s._payload),l)}if(Ge(s))return h(n,a,s,l);if(Ce(s))return m(n,a,s,l);Li(n,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,s)).return=n,n=a):(r(n,a),(a=Pc(s,n.mode,l)).return=n,n=a),i(n)):r(n,a)}}var Ui=Vi(!0),Wi=Vi(!1),qi={},Ki=ga(qi),Hi=ga(qi),Gi=ga(qi);function Qi(e){if(e===qi)throw Error(X(174));return e}function Ji(e,t){switch(ba(Gi,t),ba(Hi,e),ba(Ki,qi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tt(null,"");break;default:t=tt(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ya(Ki),ba(Ki,t)}function Yi(){ya(Ki),ya(Hi),ya(Gi)}function Xi(e){Qi(Gi.current);var t=Qi(Ki.current),r=tt(t,e.type);t!==r&&(ba(Hi,e),ba(Ki,r))}function Zi(e){Hi.current===e&&(ya(Ki),ya(Hi))}var es=ga(0);function ts(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rs=[];function ns(){for(var e=0;e<rs.length;e++)rs[e]._workInProgressVersionPrimary=null;rs.length=0}var os=pe.ReactCurrentDispatcher,as=pe.ReactCurrentBatchConfig,is=0,ss=null,ls=null,us=null,cs=!1,ds=!1,fs=0,ps=0;function hs(){throw Error(X(321))}function ms(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Zn(e[r],t[r]))return!1;return!0}function vs(e,t,r,n,o,a){if(is=a,ss=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,os.current=null===e||null===e.memoizedState?Zs:el,e=r(n,o),ds){a=0;do{if(ds=!1,fs=0,25<=a)throw Error(X(301));a+=1,us=ls=null,t.updateQueue=null,os.current=tl,e=r(n,o)}while(ds)}if(os.current=Xs,t=null!==ls&&null!==ls.next,is=0,us=ls=ss=null,cs=!1,t)throw Error(X(300));return e}function gs(){var e=0!==fs;return fs=0,e}function ys(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===us?ss.memoizedState=us=e:us=us.next=e,us}function bs(){if(null===ls){var e=ss.alternate;e=null!==e?e.memoizedState:null}else e=ls.next;var t=null===us?ss.memoizedState:us.next;if(null!==t)us=t,ls=e;else{if(null===e)throw Error(X(310));e={memoizedState:(ls=e).memoizedState,baseState:ls.baseState,baseQueue:ls.baseQueue,queue:ls.queue,next:null},null===us?ss.memoizedState=us=e:us=us.next=e}return us}function ws(e,t){return"function"==typeof t?t(e):t}function Ss(e){var t=bs(),r=t.queue;if(null===r)throw Error(X(311));r.lastRenderedReducer=e;var n=ls,o=n.baseQueue,a=r.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}n.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,n=n.baseState;var s=i=null,l=null,u=a;do{var c=u.lane;if((is&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,i=n):l=l.next=d,ss.lanes|=c,Ou|=c}u=u.next}while(null!==u&&u!==a);null===l?i=n:l.next=s,Zn(n,t.memoizedState)||(fl=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=l,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,ss.lanes|=a,Ou|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function xs(e){var t=bs(),r=t.queue;if(null===r)throw Error(X(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Zn(a,t.memoizedState)||(fl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function _s(){}function $s(e,t){var r=ss,n=bs(),o=t(),a=!Zn(n.memoizedState,o);if(a&&(n.memoizedState=o,fl=!0),n=n.queue,Ms(js.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==us&&1&us.memoizedState.tag){if(r.flags|=2048,Ns(9,Es.bind(null,r,n,o,t),void 0,null),null===xu)throw Error(X(349));0!=(30&is)||ks(r,t,o)}return o}function ks(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=ss.updateQueue)?(t={lastEffect:null,stores:null},ss.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Es(e,t,r,n){t.value=r,t.getSnapshot=n,Cs(t)&&Os(e)}function js(e,t,r){return r((function(){Cs(t)&&Os(e)}))}function Cs(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Zn(e,r)}catch(e){return!0}}function Os(e){var t=xi(e,1);null!==t&&Qu(t,e,1,-1)}function Ps(e){var t=ys();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ws,lastRenderedState:e},t.queue=e,e=e.dispatch=Gs.bind(null,ss,e),[t.memoizedState,e]}function Ns(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=ss.updateQueue)?(t={lastEffect:null,stores:null},ss.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Rs(){return bs().memoizedState}function Ts(e,t,r,n){var o=ys();ss.flags|=e,o.memoizedState=Ns(1|t,r,void 0,void 0===n?null:n)}function As(e,t,r,n){var o=bs();n=void 0===n?null:n;var a=void 0;if(null!==ls){var i=ls.memoizedState;if(a=i.destroy,null!==n&&ms(n,i.deps))return void(o.memoizedState=Ns(t,r,a,n))}ss.flags|=e,o.memoizedState=Ns(1|t,r,a,n)}function Is(e,t){return Ts(8390656,8,e,t)}function Ms(e,t){return As(2048,8,e,t)}function Fs(e,t){return As(4,2,e,t)}function zs(e,t){return As(4,4,e,t)}function Ds(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ls(e,t,r){return r=null!=r?r.concat([e]):null,As(4,4,Ds.bind(null,t,e),r)}function Bs(){}function Vs(e,t){var r=bs();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ms(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Us(e,t){var r=bs();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ms(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Ws(e,t,r){return 0==(21&is)?(e.baseState&&(e.baseState=!1,fl=!0),e.memoizedState=r):(Zn(r,t)||(r=sr(),ss.lanes|=r,Ou|=r,e.baseState=!0),t)}function qs(e,t){var r=dr;dr=0!==r&&4>r?r:4,e(!0);var n=as.transition;as.transition={};try{e(!1),t()}finally{dr=r,as.transition=n}}function Ks(){return bs().memoizedState}function Hs(e,t,r){var n=Gu(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Qs(e))Js(t,r);else if(null!==(r=Si(e,t,r,n))){Qu(r,e,n,Hu()),Ys(r,t,n)}}function Gs(e,t,r){var n=Gu(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Qs(e))Js(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,Zn(s,i)){var l=t.interleaved;return null===l?(o.next=o,wi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(r=Si(e,t,o,n))&&(Qu(r,e,n,o=Hu()),Ys(r,t,n))}}function Qs(e){var t=e.alternate;return e===ss||null!==t&&t===ss}function Js(e,t){ds=cs=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ys(e,t,r){if(0!=(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,cr(e,r)}}var Xs={readContext:yi,useCallback:hs,useContext:hs,useEffect:hs,useImperativeHandle:hs,useInsertionEffect:hs,useLayoutEffect:hs,useMemo:hs,useReducer:hs,useRef:hs,useState:hs,useDebugValue:hs,useDeferredValue:hs,useTransition:hs,useMutableSource:hs,useSyncExternalStore:hs,useId:hs,unstable_isNewReconciler:!1},Zs={readContext:yi,useCallback:function(e,t){return ys().memoizedState=[e,void 0===t?null:t],e},useContext:yi,useEffect:Is,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Ts(4194308,4,Ds.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ts(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ts(4,2,e,t)},useMemo:function(e,t){var r=ys();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ys();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Hs.bind(null,ss,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},ys().memoizedState=e},useState:Ps,useDebugValue:Bs,useDeferredValue:function(e){return ys().memoizedState=e},useTransition:function(){var e=Ps(!1),t=e[0];return e=qs.bind(null,e[1]),ys().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ss,o=ys();if(Ya){if(void 0===r)throw Error(X(407));r=r()}else{if(r=t(),null===xu)throw Error(X(349));0!=(30&is)||ks(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Is(js.bind(null,n,a,e),[e]),n.flags|=2048,Ns(9,Es.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=ys(),t=xu.identifierPrefix;if(Ya){var r=Wa;t=":"+t+"R"+(r=(Ua&~(1<<32-Xt(Ua)-1)).toString(32)+r),0<(r=fs++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=ps++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:yi,useCallback:Vs,useContext:yi,useEffect:Ms,useImperativeHandle:Ls,useInsertionEffect:Fs,useLayoutEffect:zs,useMemo:Us,useReducer:Ss,useRef:Rs,useState:function(){return Ss(ws)},useDebugValue:Bs,useDeferredValue:function(e){return Ws(bs(),ls.memoizedState,e)},useTransition:function(){return[Ss(ws)[0],bs().memoizedState]},useMutableSource:_s,useSyncExternalStore:$s,useId:Ks,unstable_isNewReconciler:!1},tl={readContext:yi,useCallback:Vs,useContext:yi,useEffect:Ms,useImperativeHandle:Ls,useInsertionEffect:Fs,useLayoutEffect:zs,useMemo:Us,useReducer:xs,useRef:Rs,useState:function(){return xs(ws)},useDebugValue:Bs,useDeferredValue:function(e){var t=bs();return null===ls?t.memoizedState=e:Ws(t,ls.memoizedState,e)},useTransition:function(){return[xs(ws)[0],bs().memoizedState]},useMutableSource:_s,useSyncExternalStore:$s,useId:Ks,unstable_isNewReconciler:!1};function rl(e,t){try{var r="",n=t;do{r+=Ae(n),n=n.return}while(n);var o=r}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function nl(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var al="function"==typeof WeakMap?WeakMap:Map;function il(e,t,r){(r=Ei(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Fu||(Fu=!0,zu=n),ol(0,t)},r}function sl(e,t,r){(r=Ei(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){ol(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){ol(0,t),"function"!=typeof n&&(null===Du?Du=new Set([this]):Du.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ll(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new al;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=yc.bind(null,e,t,r),t.then(e,e))}function ul(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function cl(e,t,r,n,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Ei(-1,1)).tag=2,ji(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var dl=pe.ReactCurrentOwner,fl=!1;function pl(e,t,r,n){t.child=null===e?Wi(t,null,r,n):Ui(t,e.child,r,n)}function hl(e,t,r,n,o){r=r.render;var a=t.ref;return gi(t,o),n=vs(e,t,r,n,a,o),r=gs(),null===e||fl?(Ya&&r&&Ha(t),t.flags|=1,pl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fl(e,t,o))}function ml(e,t,r,n,o){if(null===e){var a=r.type;return"function"!=typeof a||kc(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=jc(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,vl(e,t,a,n,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((r=null!==(r=r.compare)?r:eo)(i,n)&&e.ref===t.ref)return Fl(e,t,o)}return t.flags|=1,(e=Ec(a,n)).ref=t.ref,e.return=t,t.child=e}function vl(e,t,r,n,o){if(null!==e){var a=e.memoizedProps;if(eo(a,n)&&e.ref===t.ref){if(fl=!1,t.pendingProps=n=a,0==(e.lanes&o))return t.lanes=e.lanes,Fl(e,t,o);0!=(131072&e.flags)&&(fl=!0)}}return bl(e,t,r,n,o)}function gl(e,t,r){var n=t.pendingProps,o=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ba(Eu,ku),ku|=r;else{if(0==(1073741824&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ba(Eu,ku),ku|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,ba(Eu,ku),ku|=n}else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,ba(Eu,ku),ku|=n;return pl(e,t,o,r),t.child}function yl(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function bl(e,t,r,n,o){var a=ka(r)?_a:Sa.current;return a=$a(t,a),gi(t,o),r=vs(e,t,r,n,a,o),n=gs(),null===e||fl?(Ya&&n&&Ha(t),t.flags|=1,pl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Fl(e,t,o))}function wl(e,t,r,n,o){if(ka(r)){var a=!0;Oa(t)}else a=!1;if(gi(t,o),null===t.stateNode)Ml(e,t),Mi(t,r,n),zi(t,r,n,o),n=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,u=r.contextType;"object"==typeof u&&null!==u?u=yi(u):u=$a(t,u=ka(r)?_a:Sa.current);var c=r.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==n||l!==u)&&Fi(t,i,n,u),_i=!1;var f=t.memoizedState;i.state=f,Pi(t,n,i,o),l=t.memoizedState,s!==n||f!==l||xa.current||_i?("function"==typeof c&&(Ti(t,r,c,n),l=t.memoizedState),(s=_i||Ii(t,r,s,n,f,l,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=u,n=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,ki(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ui(t.type,s),i.props=u,d=t.pendingProps,f=i.context,"object"==typeof(l=r.contextType)&&null!==l?l=yi(l):l=$a(t,l=ka(r)?_a:Sa.current);var p=r.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||f!==l)&&Fi(t,i,n,l),_i=!1,f=t.memoizedState,i.state=f,Pi(t,n,i,o);var h=t.memoizedState;s!==d||f!==h||xa.current||_i?("function"==typeof p&&(Ti(t,r,p,n),h=t.memoizedState),(u=_i||Ii(t,r,u,n,f,h,l)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(n,h,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,h,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),i.props=n,i.state=h,i.context=l,n=u):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return Sl(e,t,r,n,a,o)}function Sl(e,t,r,n,o,a){yl(e,t);var i=0!=(128&t.flags);if(!n&&!i)return o&&Pa(t,r,!1),Fl(e,t,a);n=t.stateNode,dl.current=t;var s=i&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&i?(t.child=Ui(t,e.child,null,a),t.child=Ui(t,null,s,a)):pl(e,t,s,a),t.memoizedState=n.state,o&&Pa(t,r,!0),t.child}function xl(e){var t=e.stateNode;t.pendingContext?ja(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ja(0,t.context,!1),Ji(e,t.containerInfo)}function _l(e,t,r,n,o){return ii(),si(o),t.flags|=256,pl(e,t,r,n),t.child}var $l,kl,El,jl,Cl={dehydrated:null,treeContext:null,retryLane:0};function Ol(e){return{baseLanes:e,cachePool:null,transitions:null}}function Pl(e,t,r){var n,o=t.pendingProps,a=es.current,i=!1,s=0!=(128&t.flags);if((n=s)||(n=(null===e||null!==e.memoizedState)&&0!=(2&a)),n?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),ba(es,1&a),null===e)return ri(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,i?(o=t.mode,i=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=s):i=Oc(s,o,0,null),e=Cc(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ol(r),t.memoizedState=Cl,e):Nl(t,s));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,o,a,i){if(r)return 256&t.flags?(t.flags&=-257,Rl(e,t,i,n=nl(Error(X(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=Oc({mode:"visible",children:n.children},o,0,null),(a=Cc(a,o,i,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!=(1&t.mode)&&Ui(t,e.child,null,i),t.child.memoizedState=Ol(i),t.memoizedState=Cl,a);if(0==(1&t.mode))return Rl(e,t,i,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var s=n.dgst;return n=s,Rl(e,t,i,n=nl(a=Error(X(419)),n,void 0))}if(s=0!=(i&e.childLanes),fl||s){if(null!==(n=xu)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(n.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,xi(e,o),Qu(n,e,o,-1))}return lc(),Rl(e,t,i,n=nl(Error(X(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=wc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,Ja=ra(o.nextSibling),Qa=t,Ya=!0,Xa=null,null!==e&&(La[Ba++]=Ua,La[Ba++]=Wa,La[Ba++]=Va,Ua=e.id,Wa=e.overflow,Va=t),t=Nl(t,n.children),t.flags|=4096,t)}(e,t,s,o,n,a,r);if(i){i=o.fallback,s=t.mode,n=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null):(o=Ec(a,l)).subtreeFlags=14680064&a.subtreeFlags,null!==n?i=Ec(n,i):(i=Cc(i,s,r,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,s=null===(s=e.child.memoizedState)?Ol(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=Cl,o}return e=(i=e.child).sibling,o=Ec(i,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Nl(e,t){return(t=Oc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Rl(e,t,r,n){return null!==n&&si(n),Ui(t,e.child,null,r),(e=Nl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Tl(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),vi(e.return,t,r)}function Al(e,t,r,n,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function Il(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(pl(e,t,n.children,r),0!=(2&(n=es.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Tl(e,r,t);else if(19===e.tag)Tl(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ba(es,n),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===ts(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Al(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ts(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Al(t,!0,r,null,a);break;case"together":Al(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ml(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ou|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(X(153));if(null!==t.child){for(r=Ec(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ec(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function zl(e,t){if(!Ya)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Dl(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ll(e,t,r){var n=t.pendingProps;switch(Ga(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dl(t),null;case 1:case 17:return ka(t.type)&&Ea(),Dl(t),null;case 3:return n=t.stateNode,Yi(),ya(xa),ya(Sa),ns(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(oi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Xa&&(Zu(Xa),Xa=null))),kl(e,t),Dl(t),null;case 5:Zi(t);var o=Qi(Gi.current);if(r=t.type,null!==e&&null!=t.stateNode)El(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(X(166));return Dl(t),null}if(e=Qi(Ki.current),oi(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[aa]=t,n[ia]=a,e=0!=(1&t.mode),r){case"dialog":Ro("cancel",n),Ro("close",n);break;case"iframe":case"object":case"embed":Ro("load",n);break;case"video":case"audio":for(o=0;o<Co.length;o++)Ro(Co[o],n);break;case"source":Ro("error",n);break;case"img":case"image":case"link":Ro("error",n),Ro("load",n);break;case"details":Ro("toggle",n);break;case"input":Ue(n,a),Ro("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ro("invalid",n);break;case"textarea":Ye(n,a),Ro("invalid",n)}for(var i in ct(r,a),o=null,a)if(a.hasOwnProperty(i)){var s=a[i];"children"===i?"string"==typeof s?n.textContent!==s&&(!0!==a.suppressHydrationWarning&&qo(n.textContent,s,e),o=["children",s]):"number"==typeof s&&n.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&qo(n.textContent,s,e),o=["children",""+s]):ee.hasOwnProperty(i)&&null!=s&&"onScroll"===i&&Ro("scroll",n)}switch(r){case"input":De(n),Ke(n,a,!0);break;case"textarea":De(n),Ze(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Ko)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=et(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),"select"===r&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[aa]=t,e[ia]=n,$l(e,t,!1,!1),t.stateNode=e;e:{switch(i=dt(r,n),r){case"dialog":Ro("cancel",e),Ro("close",e),o=n;break;case"iframe":case"object":case"embed":Ro("load",e),o=n;break;case"video":case"audio":for(o=0;o<Co.length;o++)Ro(Co[o],e);o=n;break;case"source":Ro("error",e),o=n;break;case"img":case"image":case"link":Ro("error",e),Ro("load",e),o=n;break;case"details":Ro("toggle",e),o=n;break;case"input":Ue(e,n),o=Ve(e,n),Ro("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Pe({},n,{value:void 0}),Ro("invalid",e);break;case"textarea":Ye(e,n),o=Je(e,n),Ro("invalid",e)}for(a in ct(r,o),s=o)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?lt(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&nt(e,l):"children"===a?"string"==typeof l?("textarea"!==r||""!==l)&&ot(e,l):"number"==typeof l&&ot(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(ee.hasOwnProperty(a)?null!=l&&"onScroll"===a&&Ro("scroll",e):null!=l&&fe(e,a,l,i))}switch(r){case"input":De(e),Ke(e,n,!1);break;case"textarea":De(e),Ze(e);break;case"option":null!=n.value&&e.setAttribute("value",""+Fe(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?Qe(e,!!n.multiple,a,!1):null!=n.defaultValue&&Qe(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Ko)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Dl(t),null;case 6:if(e&&null!=t.stateNode)jl(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(X(166));if(r=Qi(Gi.current),Qi(Ki.current),oi(t)){if(n=t.stateNode,r=t.memoizedProps,n[aa]=t,(a=n.nodeValue!==r)&&null!==(e=Qa))switch(e.tag){case 3:qo(n.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&qo(n.nodeValue,r,0!=(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[aa]=t,t.stateNode=n}return Dl(t),null;case 13:if(ya(es),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Ya&&null!==Ja&&0!=(1&t.mode)&&0==(128&t.flags))ai(),ii(),t.flags|=98560,a=!1;else if(a=oi(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(X(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(X(317));a[aa]=t}else ii(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Dl(t),a=!1}else null!==Xa&&(Zu(Xa),Xa=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&es.current)?0===ju&&(ju=3):lc())),null!==t.updateQueue&&(t.flags|=4),Dl(t),null);case 4:return Yi(),kl(e,t),null===e&&Io(t.stateNode.containerInfo),Dl(t),null;case 10:return mi(t.type._context),Dl(t),null;case 19:if(ya(es),null===(a=t.memoizedState))return Dl(t),null;if(n=0!=(128&t.flags),null===(i=a.rendering))if(n)zl(a,!1);else{if(0!==ju||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=ts(e))){for(t.flags|=128,zl(a,!1),null!==(n=i.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ba(es,1&es.current|2),t.child}e=e.sibling}null!==a.tail&&Ut()>Iu&&(t.flags|=128,n=!0,zl(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ts(i))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),zl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!Ya)return Dl(t),null}else 2*Ut()-a.renderingStartTime>Iu&&1073741824!==r&&(t.flags|=128,n=!0,zl(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(r=a.last)?r.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ut(),t.sibling=null,r=es.current,ba(es,n?1&r|2:1&r),t):(Dl(t),null);case 22:case 23:return oc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(1073741824&ku)&&(Dl(t),6&t.subtreeFlags&&(t.flags|=8192)):Dl(t),null;case 24:case 25:return null}throw Error(X(156,t.tag))}function Bl(e,t){switch(Ga(t),t.tag){case 1:return ka(t.type)&&Ea(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Yi(),ya(xa),ya(Sa),ns(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zi(t),null;case 13:if(ya(es),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(X(340));ii()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ya(es),null;case 4:return Yi(),null;case 10:return mi(t.type._context),null;case 22:case 23:return oc(),null;default:return null}}$l=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},kl=function(){},El=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Qi(Ki.current);var a,i=null;switch(r){case"input":o=Ve(e,o),n=Ve(e,n),i=[];break;case"select":o=Pe({},o,{value:void 0}),n=Pe({},n,{value:void 0}),i=[];break;case"textarea":o=Je(e,o),n=Je(e,n),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=Ko)}for(u in ct(r,n),r=null,o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(ee.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var l=n[u];if(s=null!=o?o[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(u,r)),r=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(i=i||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(i=i||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(ee.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&Ro("scroll",e),i||s===l||(i=[])):(i=i||[]).push(u,l))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},jl=function(e,t,r,n){r!==n&&(t.flags|=4)};var Vl=!1,Ul=!1,Wl="function"==typeof WeakSet?WeakSet:Set,ql=null;function Kl(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){gc(e,t,r)}else r.current=null}function Hl(e,t,r){try{r()}catch(r){gc(e,t,r)}}var Gl=!1;function Ql(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&Hl(t,r,a)}o=o.next}while(o!==n)}}function Jl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Yl(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function Xl(e){var t=e.alternate;null!==t&&(e.alternate=null,Xl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[aa],delete t[ia],delete t[la],delete t[ua],delete t[ca])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zl(e){return 5===e.tag||3===e.tag||4===e.tag}function eu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Zl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function tu(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Ko));else if(4!==n&&null!==(e=e.child))for(tu(e,t,r),e=e.sibling;null!==e;)tu(e,t,r),e=e.sibling}function ru(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(ru(e,t,r),e=e.sibling;null!==e;)ru(e,t,r),e=e.sibling}var nu=null,ou=!1;function au(e,t,r){for(r=r.child;null!==r;)iu(e,t,r),r=r.sibling}function iu(e,t,r){if(Yt&&"function"==typeof Yt.onCommitFiberUnmount)try{Yt.onCommitFiberUnmount(Jt,r)}catch(e){}switch(r.tag){case 5:Ul||Kl(r,t);case 6:var n=nu,o=ou;nu=null,au(e,t,r),ou=o,null!==(nu=n)&&(ou?(e=nu,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):nu.removeChild(r.stateNode));break;case 18:null!==nu&&(ou?(e=nu,r=r.stateNode,8===e.nodeType?ta(e.parentNode,r):1===e.nodeType&&ta(e,r),Ar(e)):ta(nu,r.stateNode));break;case 4:n=nu,o=ou,nu=r.stateNode.containerInfo,ou=!0,au(e,t,r),nu=n,ou=o;break;case 0:case 11:case 14:case 15:if(!Ul&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&Hl(r,t,i),o=o.next}while(o!==n)}au(e,t,r);break;case 1:if(!Ul&&(Kl(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){gc(r,t,e)}au(e,t,r);break;case 21:au(e,t,r);break;case 22:1&r.mode?(Ul=(n=Ul)||null!==r.memoizedState,au(e,t,r),Ul=n):au(e,t,r);break;default:au(e,t,r)}}function su(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Wl),t.forEach((function(t){var n=Sc.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function lu(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var a=e,i=t,s=i;e:for(;null!==s;){switch(s.tag){case 5:nu=s.stateNode,ou=!1;break e;case 3:case 4:nu=s.stateNode.containerInfo,ou=!0;break e}s=s.return}if(null===nu)throw Error(X(160));iu(a,i,o),nu=null,ou=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){gc(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)uu(t,e),t=t.sibling}function uu(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(lu(t,e),cu(e),4&n){try{Ql(3,e,e.return),Jl(3,e)}catch(t){gc(e,e.return,t)}try{Ql(5,e,e.return)}catch(t){gc(e,e.return,t)}}break;case 1:lu(t,e),cu(e),512&n&&null!==r&&Kl(r,r.return);break;case 5:if(lu(t,e),cu(e),512&n&&null!==r&&Kl(r,r.return),32&e.flags){var o=e.stateNode;try{ot(o,"")}catch(t){gc(e,e.return,t)}}if(4&n&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==r?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&We(o,a),dt(s,i);var u=dt(s,a);for(i=0;i<l.length;i+=2){var c=l[i],d=l[i+1];"style"===c?lt(o,d):"dangerouslySetInnerHTML"===c?nt(o,d):"children"===c?ot(o,d):fe(o,c,d,u)}switch(s){case"input":qe(o,a);break;case"textarea":Xe(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?Qe(o,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?Qe(o,!!a.multiple,a.defaultValue,!0):Qe(o,!!a.multiple,a.multiple?[]:"",!1))}o[ia]=a}catch(t){gc(e,e.return,t)}}break;case 6:if(lu(t,e),cu(e),4&n){if(null===e.stateNode)throw Error(X(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){gc(e,e.return,t)}}break;case 3:if(lu(t,e),cu(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Ar(t.containerInfo)}catch(t){gc(e,e.return,t)}break;case 4:default:lu(t,e),cu(e);break;case 13:lu(t,e),cu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Au=Ut())),4&n&&su(e);break;case 22:if(c=null!==r&&null!==r.memoizedState,1&e.mode?(Ul=(u=Ul)||c,lu(t,e),Ul=u):lu(t,e),cu(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(ql=e,c=e.child;null!==c;){for(d=ql=c;null!==ql;){switch(p=(f=ql).child,f.tag){case 0:case 11:case 14:case 15:Ql(4,f,f.return);break;case 1:Kl(f,f.return);var h=f.stateNode;if("function"==typeof h.componentWillUnmount){n=f,r=f.return;try{t=n,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){gc(n,r,e)}}break;case 5:Kl(f,f.return);break;case 22:if(null!==f.memoizedState){hu(d);continue}}null!==p?(p.return=f,ql=p):hu(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=d.stateNode,i=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=st("display",i))}catch(t){gc(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){gc(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:lu(t,e),cu(e),4&n&&su(e);case 21:}}function cu(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(Zl(r)){var n=r;break e}r=r.return}throw Error(X(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(ot(o,""),n.flags&=-33),ru(e,eu(e),o);break;case 3:case 4:var a=n.stateNode.containerInfo;tu(e,eu(e),a);break;default:throw Error(X(161))}}catch(t){gc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function du(e,t,r){ql=e,fu(e)}function fu(e,t,r){for(var n=0!=(1&e.mode);null!==ql;){var o=ql,a=o.child;if(22===o.tag&&n){var i=null!==o.memoizedState||Vl;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ul;s=Vl;var u=Ul;if(Vl=i,(Ul=l)&&!u)for(ql=o;null!==ql;)l=(i=ql).child,22===i.tag&&null!==i.memoizedState?mu(o):null!==l?(l.return=i,ql=l):mu(o);for(;null!==a;)ql=a,fu(a),a=a.sibling;ql=o,Vl=s,Ul=u}pu(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,ql=a):pu(e)}}function pu(e){for(;null!==ql;){var t=ql;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ul||Jl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Ul)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:ui(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ni(t,a,n);break;case 3:var i=t.updateQueue;if(null!==i){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ni(t,i,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Ar(d)}}}break;default:throw Error(X(163))}Ul||512&t.flags&&Yl(t)}catch(e){gc(t,t.return,e)}}if(t===e){ql=null;break}if(null!==(r=t.sibling)){r.return=t.return,ql=r;break}ql=t.return}}function hu(e){for(;null!==ql;){var t=ql;if(t===e){ql=null;break}var r=t.sibling;if(null!==r){r.return=t.return,ql=r;break}ql=t.return}}function mu(e){for(;null!==ql;){var t=ql;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Jl(4,t)}catch(e){gc(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(e){gc(t,o,e)}}var a=t.return;try{Yl(t)}catch(e){gc(t,a,e)}break;case 5:var i=t.return;try{Yl(t)}catch(e){gc(t,i,e)}}}catch(e){gc(t,t.return,e)}if(t===e){ql=null;break}var s=t.sibling;if(null!==s){s.return=t.return,ql=s;break}ql=t.return}}var vu,gu=Math.ceil,yu=pe.ReactCurrentDispatcher,bu=pe.ReactCurrentOwner,wu=pe.ReactCurrentBatchConfig,Su=0,xu=null,_u=null,$u=0,ku=0,Eu=ga(0),ju=0,Cu=null,Ou=0,Pu=0,Nu=0,Ru=null,Tu=null,Au=0,Iu=1/0,Mu=null,Fu=!1,zu=null,Du=null,Lu=!1,Bu=null,Vu=0,Uu=0,Wu=null,qu=-1,Ku=0;function Hu(){return 0!=(6&Su)?Ut():-1!==qu?qu:qu=Ut()}function Gu(e){return 0==(1&e.mode)?1:0!=(2&Su)&&0!==$u?$u&-$u:null!==li.transition?(0===Ku&&(Ku=sr()),Ku):0!==(e=dr)?e:e=void 0===(e=window.event)?16:Vr(e.type)}function Qu(e,t,r,n){if(50<Uu)throw Uu=0,Wu=null,Error(X(185));ur(e,r,n),0!=(2&Su)&&e===xu||(e===xu&&(0==(2&Su)&&(Pu|=r),4===ju&&ec(e,$u)),Ju(e,n),1===r&&0===Su&&0==(1&t.mode)&&(Iu=Ut()+500,Ra&&Ia()))}function Ju(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Xt(a),s=1<<i,l=o[i];-1===l?0!=(s&r)&&0==(s&n)||(o[i]=ar(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var n=or(e,e===xu?$u:0);if(0===n)null!==r&&Lt(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Lt(r),1===t)0===e.tag?function(e){Ra=!0,Aa(e)}(tc.bind(null,e)):Aa(tc.bind(null,e)),Zo((function(){0==(6&Su)&&Ia()})),r=null;else{switch(fr(n)){case 1:r=qt;break;case 4:r=Kt;break;case 16:default:r=Ht;break;case 536870912:r=Qt}r=xc(r,Yu.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Yu(e,t){if(qu=-1,Ku=0,0!=(6&Su))throw Error(X(327));var r=e.callbackNode;if(mc()&&e.callbackNode!==r)return null;var n=or(e,e===xu?$u:0);if(0===n)return null;if(0!=(30&n)||0!=(n&e.expiredLanes)||t)t=uc(e,n);else{t=n;var o=Su;Su|=2;var a=sc();for(xu===e&&$u===t||(Mu=null,Iu=Ut()+500,ac(e,t));;)try{dc();break}catch(t){ic(e,t)}hi(),yu.current=a,Su=o,null!==_u?t=0:(xu=null,$u=0,t=ju)}if(0!==t){if(2===t&&(0!==(o=ir(e))&&(n=o,t=Xu(e,o))),1===t)throw r=Cu,ac(e,0),ec(e,n),Ju(e,Ut()),r;if(6===t)ec(e,n);else{if(o=e.current.alternate,0==(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!Zn(a(),o))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=uc(e,n))&&(0!==(a=ir(e))&&(n=a,t=Xu(e,a))),1===t))throw r=Cu,ac(e,0),ec(e,n),Ju(e,Ut()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(X(345));case 2:case 5:hc(e,Tu,Mu);break;case 3:if(ec(e,n),(130023424&n)===n&&10<(t=Au+500-Ut())){if(0!==or(e,0))break;if(((o=e.suspendedLanes)&n)!==n){Hu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Jo(hc.bind(null,e,Tu,Mu),t);break}hc(e,Tu,Mu);break;case 4:if(ec(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var i=31-Xt(n);a=1<<i,(i=t[i])>o&&(o=i),n&=~a}if(n=o,10<(n=(120>(n=Ut()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*gu(n/1960))-n)){e.timeoutHandle=Jo(hc.bind(null,e,Tu,Mu),n);break}hc(e,Tu,Mu);break;default:throw Error(X(329))}}}return Ju(e,Ut()),e.callbackNode===r?Yu.bind(null,e):null}function Xu(e,t){var r=Ru;return e.current.memoizedState.isDehydrated&&(ac(e,t).flags|=256),2!==(e=uc(e,t))&&(t=Tu,Tu=r,null!==t&&Zu(t)),e}function Zu(e){null===Tu?Tu=e:Tu.push.apply(Tu,e)}function ec(e,t){for(t&=~Nu,t&=~Pu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Xt(t),n=1<<r;e[r]=-1,t&=~n}}function tc(e){if(0!=(6&Su))throw Error(X(327));mc();var t=or(e,0);if(0==(1&t))return Ju(e,Ut()),null;var r=uc(e,t);if(0!==e.tag&&2===r){var n=ir(e);0!==n&&(t=n,r=Xu(e,n))}if(1===r)throw r=Cu,ac(e,0),ec(e,t),Ju(e,Ut()),r;if(6===r)throw Error(X(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,hc(e,Tu,Mu),Ju(e,Ut()),null}function rc(e,t){var r=Su;Su|=1;try{return e(t)}finally{0===(Su=r)&&(Iu=Ut()+500,Ra&&Ia())}}function nc(e){null!==Bu&&0===Bu.tag&&0==(6&Su)&&mc();var t=Su;Su|=1;var r=wu.transition,n=dr;try{if(wu.transition=null,dr=1,e)return e()}finally{dr=n,wu.transition=r,0==(6&(Su=t))&&Ia()}}function oc(){ku=Eu.current,ya(Eu)}function ac(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,Yo(r)),null!==_u)for(r=_u.return;null!==r;){var n=r;switch(Ga(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Ea();break;case 3:Yi(),ya(xa),ya(Sa),ns();break;case 5:Zi(n);break;case 4:Yi();break;case 13:case 19:ya(es);break;case 10:mi(n.type._context);break;case 22:case 23:oc()}r=r.return}if(xu=e,_u=e=Ec(e.current,null),$u=ku=t,ju=0,Cu=null,Nu=Pu=Ou=0,Tu=Ru=null,null!==bi){for(t=0;t<bi.length;t++)if(null!==(n=(r=bi[t]).interleaved)){r.interleaved=null;var o=n.next,a=r.pending;if(null!==a){var i=a.next;a.next=o,n.next=i}r.pending=n}bi=null}return e}function ic(e,t){for(;;){var r=_u;try{if(hi(),os.current=Xs,cs){for(var n=ss.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}cs=!1}if(is=0,us=ls=ss=null,ds=!1,fs=0,bu.current=null,null===r||null===r.return){ju=1,Cu=t,_u=null;break}e:{var a=e,i=r.return,s=r,l=t;if(t=$u,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=ul(i);if(null!==p){p.flags&=-257,cl(p,i,s,0,t),1&p.mode&&ll(a,u,t),l=u;var h=(t=p).updateQueue;if(null===h){var m=new Set;m.add(l),t.updateQueue=m}else h.add(l);break e}if(0==(1&t)){ll(a,u,t),lc();break e}l=Error(X(426))}else if(Ya&&1&s.mode){var v=ul(i);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),cl(v,i,s,0,t),si(rl(l,s));break e}}a=l=rl(l,s),4!==ju&&(ju=2),null===Ru?Ru=[a]:Ru.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Oi(a,il(0,l,t));break e;case 1:s=l;var g=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof g.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Du||!Du.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,Oi(a,sl(a,s,t));break e}}a=a.return}while(null!==a)}pc(r)}catch(e){t=e,_u===r&&null!==r&&(_u=r=r.return);continue}break}}function sc(){var e=yu.current;return yu.current=Xs,null===e?Xs:e}function lc(){0!==ju&&3!==ju&&2!==ju||(ju=4),null===xu||0==(268435455&Ou)&&0==(268435455&Pu)||ec(xu,$u)}function uc(e,t){var r=Su;Su|=2;var n=sc();for(xu===e&&$u===t||(Mu=null,ac(e,t));;)try{cc();break}catch(t){ic(e,t)}if(hi(),Su=r,yu.current=n,null!==_u)throw Error(X(261));return xu=null,$u=0,ju}function cc(){for(;null!==_u;)fc(_u)}function dc(){for(;null!==_u&&!Bt();)fc(_u)}function fc(e){var t=vu(e.alternate,e,ku);e.memoizedProps=e.pendingProps,null===t?pc(e):_u=t,bu.current=null}function pc(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(r=Ll(r,t,ku)))return void(_u=r)}else{if(null!==(r=Bl(r,t)))return r.flags&=32767,void(_u=r);if(null===e)return ju=6,void(_u=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(_u=t);_u=t=e}while(null!==t);0===ju&&(ju=5)}function hc(e,t,r){var n=dr,o=wu.transition;try{wu.transition=null,dr=1,function(e,t,r,n){do{mc()}while(null!==Bu);if(0!=(6&Su))throw Error(X(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(X(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Xt(r),a=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~a}}(e,a),e===xu&&(_u=xu=null,$u=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Lu||(Lu=!0,xc(Ht,(function(){return mc(),null}))),a=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||a){a=wu.transition,wu.transition=null;var i=dr;dr=1;var s=Su;Su|=4,bu.current=null,function(e,t){if(Ho=Mr,ao(e=oo())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var i=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==r||0!==o&&3!==d.nodeType||(s=i+o),d!==a||0!==n&&3!==d.nodeType||(l=i+n),3===d.nodeType&&(i+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===o&&(s=i),f===a&&++c===n&&(l=i),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}r=-1===s||-1===l?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Go={focusedElem:e,selectionRange:r},Mr=!1,ql=t;null!==ql;)if(e=(t=ql).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,ql=e;else for(;null!==ql;){t=ql;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,v=h.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:ui(t.type,m),v);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(X(163))}}catch(e){gc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,ql=e;break}ql=t.return}h=Gl,Gl=!1}(e,r),uu(r,e),io(Go),Mr=!!Ho,Go=Ho=null,e.current=r,du(r),Vt(),Su=s,dr=i,wu.transition=a}else e.current=r;if(Lu&&(Lu=!1,Bu=e,Vu=o),a=e.pendingLanes,0===a&&(Du=null),function(e){if(Yt&&"function"==typeof Yt.onCommitFiberRoot)try{Yt.onCommitFiberRoot(Jt,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),Ju(e,Ut()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Fu)throw Fu=!1,e=zu,zu=null,e;0!=(1&Vu)&&0!==e.tag&&mc(),a=e.pendingLanes,0!=(1&a)?e===Wu?Uu++:(Uu=0,Wu=e):Uu=0,Ia()}(e,t,r,n)}finally{wu.transition=o,dr=n}return null}function mc(){if(null!==Bu){var e=fr(Vu),t=wu.transition,r=dr;try{if(wu.transition=null,dr=16>e?16:e,null===Bu)var n=!1;else{if(e=Bu,Bu=null,Vu=0,0!=(6&Su))throw Error(X(331));var o=Su;for(Su|=4,ql=e.current;null!==ql;){var a=ql,i=a.child;if(0!=(16&ql.flags)){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(ql=u;null!==ql;){var c=ql;switch(c.tag){case 0:case 11:case 15:Ql(8,c,a)}var d=c.child;if(null!==d)d.return=c,ql=d;else for(;null!==ql;){var f=(c=ql).sibling,p=c.return;if(Xl(c),c===u){ql=null;break}if(null!==f){f.return=p,ql=f;break}ql=p}}}var h=a.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}ql=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,ql=i;else e:for(;null!==ql;){if(0!=(2048&(a=ql).flags))switch(a.tag){case 0:case 11:case 15:Ql(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,ql=g;break e}ql=a.return}}var y=e.current;for(ql=y;null!==ql;){var b=(i=ql).child;if(0!=(2064&i.subtreeFlags)&&null!==b)b.return=i,ql=b;else e:for(i=y;null!==ql;){if(0!=(2048&(s=ql).flags))try{switch(s.tag){case 0:case 11:case 15:Jl(9,s)}}catch(e){gc(s,s.return,e)}if(s===i){ql=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,ql=w;break e}ql=s.return}}if(Su=o,Ia(),Yt&&"function"==typeof Yt.onPostCommitFiberRoot)try{Yt.onPostCommitFiberRoot(Jt,e)}catch(e){}n=!0}return n}finally{dr=r,wu.transition=t}}return!1}function vc(e,t,r){e=ji(e,t=il(0,t=rl(r,t),1),1),t=Hu(),null!==e&&(ur(e,1,t),Ju(e,t))}function gc(e,t,r){if(3===e.tag)vc(e,e,r);else for(;null!==t;){if(3===t.tag){vc(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Du||!Du.has(n))){t=ji(t,e=sl(t,e=rl(r,e),1),1),e=Hu(),null!==t&&(ur(t,1,e),Ju(t,e));break}}t=t.return}}function yc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=Hu(),e.pingedLanes|=e.suspendedLanes&r,xu===e&&($u&r)===r&&(4===ju||3===ju&&(130023424&$u)===$u&&500>Ut()-Au?ac(e,0):Nu|=r),Ju(e,t)}function bc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=rr,0==(130023424&(rr<<=1))&&(rr=4194304)));var r=Hu();null!==(e=xi(e,t))&&(ur(e,t,r),Ju(e,r))}function wc(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),bc(e,r)}function Sc(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(X(314))}null!==n&&n.delete(t),bc(e,r)}function xc(e,t){return Dt(e,t)}function _c(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $c(e,t,r,n){return new _c(e,t,r,n)}function kc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ec(e,t){var r=e.alternate;return null===r?((r=$c(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function jc(e,t,r,n,o,a){var i=2;if(n=e,"function"==typeof e)kc(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case ve:return Cc(r.children,o,a,t);case ge:i=8,o|=8;break;case ye:return(e=$c(12,r,t,2|o)).elementType=ye,e.lanes=a,e;case xe:return(e=$c(13,r,t,o)).elementType=xe,e.lanes=a,e;case _e:return(e=$c(19,r,t,o)).elementType=_e,e.lanes=a,e;case Ee:return Oc(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case be:i=10;break e;case we:i=9;break e;case Se:i=11;break e;case $e:i=14;break e;case ke:i=16,n=null;break e}throw Error(X(130,null==e?e:typeof e,""))}return(t=$c(i,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function Cc(e,t,r,n){return(e=$c(7,e,n,t)).lanes=r,e}function Oc(e,t,r,n){return(e=$c(22,e,n,t)).elementType=Ee,e.lanes=r,e.stateNode={isHidden:!1},e}function Pc(e,t,r){return(e=$c(6,e,null,t)).lanes=r,e}function Nc(e,t,r){return(t=$c(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rc(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=lr(0),this.expirationTimes=lr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lr(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Tc(e,t,r,n,o,a,i,s,l){return e=new Rc(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=$c(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},$i(a),e}function Ac(e){if(!e)return wa;e:{if(At(e=e._reactInternals)!==e||1!==e.tag)throw Error(X(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ka(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(X(171))}if(1===e.tag){var r=e.type;if(ka(r))return Ca(e,r,t)}return t}function Ic(e,t,r,n,o,a,i,s,l){return(e=Tc(r,n,!0,e,0,a,0,s,l)).context=Ac(null),r=e.current,(a=Ei(n=Hu(),o=Gu(r))).callback=null!=t?t:null,ji(r,a,o),e.current.lanes=o,ur(e,o,n),Ju(e,n),e}function Mc(e,t,r,n){var o=t.current,a=Hu(),i=Gu(o);return r=Ac(r),null===t.context?t.context=r:t.pendingContext=r,(t=Ei(a,i)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=ji(o,t,i))&&(Qu(e,o,i,a),Ci(e,o,i)),i}function Fc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function zc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Dc(e,t){zc(e,t),(e=e.alternate)&&zc(e,t)}vu=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||xa.current)fl=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return fl=!1,function(e,t,r){switch(t.tag){case 3:xl(t),ii();break;case 5:Xi(t);break;case 1:ka(t.type)&&Oa(t);break;case 4:Ji(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;ba(ci,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(ba(es,1&es.current),t.flags|=128,null):0!=(r&t.child.childLanes)?Pl(e,t,r):(ba(es,1&es.current),null!==(e=Fl(e,t,r))?e.sibling:null);ba(es,1&es.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(128&e.flags)){if(n)return Il(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),ba(es,es.current),n)break;return null;case 22:case 23:return t.lanes=0,gl(e,t,r)}return Fl(e,t,r)}(e,t,r);fl=0!=(131072&e.flags)}else fl=!1,Ya&&0!=(1048576&t.flags)&&Ka(t,Da,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ml(e,t),e=t.pendingProps;var o=$a(t,Sa.current);gi(t,r),o=vs(null,t,n,e,o,r);var a=gs();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ka(n)?(a=!0,Oa(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,$i(t),o.updater=Ai,t.stateNode=o,o._reactInternals=t,zi(t,n,e,r),t=Sl(null,t,n,!0,a,r)):(t.tag=0,Ya&&a&&Ha(t),pl(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ml(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"==typeof e)return kc(e)?1:0;if(null!=e){if((e=e.$$typeof)===Se)return 11;if(e===$e)return 14}return 2}(n),e=ui(n,e),o){case 0:t=bl(null,t,n,e,r);break e;case 1:t=wl(null,t,n,e,r);break e;case 11:t=hl(null,t,n,e,r);break e;case 14:t=ml(null,t,n,ui(n.type,e),r);break e}throw Error(X(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,bl(e,t,n,o=t.elementType===n?o:ui(n,o),r);case 1:return n=t.type,o=t.pendingProps,wl(e,t,n,o=t.elementType===n?o:ui(n,o),r);case 3:e:{if(xl(t),null===e)throw Error(X(387));n=t.pendingProps,o=(a=t.memoizedState).element,ki(e,t),Pi(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=_l(e,t,n,r,o=rl(Error(X(423)),t));break e}if(n!==o){t=_l(e,t,n,r,o=rl(Error(X(424)),t));break e}for(Ja=ra(t.stateNode.containerInfo.firstChild),Qa=t,Ya=!0,Xa=null,r=Wi(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ii(),n===o){t=Fl(e,t,r);break e}pl(e,t,n,r)}t=t.child}return t;case 5:return Xi(t),null===e&&ri(t),n=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,Qo(n,o)?i=null:null!==a&&Qo(n,a)&&(t.flags|=32),yl(e,t),pl(e,t,i,r),t.child;case 6:return null===e&&ri(t),null;case 13:return Pl(e,t,r);case 4:return Ji(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ui(t,null,n,r):pl(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,hl(e,t,n,o=t.elementType===n?o:ui(n,o),r);case 7:return pl(e,t,t.pendingProps,r),t.child;case 8:case 12:return pl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,ba(ci,n._currentValue),n._currentValue=i,null!==a)if(Zn(a.value,i)){if(a.children===o.children&&!xa.current){t=Fl(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){i=a.child;for(var l=s.firstContext;null!==l;){if(l.context===n){if(1===a.tag){(l=Ei(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,null!==(l=a.alternate)&&(l.lanes|=r),vi(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(X(341));i.lanes|=r,null!==(s=i.alternate)&&(s.lanes|=r),vi(i,r,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}pl(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,gi(t,r),n=n(o=yi(o)),t.flags|=1,pl(e,t,n,r),t.child;case 14:return o=ui(n=t.type,t.pendingProps),ml(e,t,n,o=ui(n.type,o),r);case 15:return vl(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:ui(n,o),Ml(e,t),t.tag=1,ka(n)?(e=!0,Oa(t)):e=!1,gi(t,r),Mi(t,n,o),zi(t,n,o,r),Sl(null,t,n,!0,e,r);case 19:return Il(e,t,r);case 22:return gl(e,t,r)}throw Error(X(156,t.tag))};var Lc="function"==typeof reportError?reportError:function(e){console.error(e)};function Bc(e){this._internalRoot=e}function Vc(e){this._internalRoot=e}function Uc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Wc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function qc(){}function Kc(e,t,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=Fc(i);s.call(e)}}Mc(t,i,e,o)}else i=function(e,t,r,n,o){if(o){if("function"==typeof n){var a=n;n=function(){var e=Fc(i);a.call(e)}}var i=Ic(t,n,e,0,null,!1,0,"",qc);return e._reactRootContainer=i,e[sa]=i.current,Io(8===e.nodeType?e.parentNode:e),nc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof n){var s=n;n=function(){var e=Fc(l);s.call(e)}}var l=Tc(e,0,!1,null,0,!1,0,"",qc);return e._reactRootContainer=l,e[sa]=l.current,Io(8===e.nodeType?e.parentNode:e),nc((function(){Mc(t,l,r,n)})),l}(r,t,e,o,n);return Fc(i)}Vc.prototype.render=Bc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(X(409));Mc(e,t,null,null)},Vc.prototype.unmount=Bc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;nc((function(){Mc(null,e,null,null)})),t[sa]=null}},Vc.prototype.unstable_scheduleHydration=function(e){if(e){var t=vr();e={blockedOn:null,target:e,priority:t};for(var r=0;r<kr.length&&0!==t&&t<kr[r].priority;r++);kr.splice(r,0,e),0===r&&Or(e)}},pr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=nr(t.pendingLanes);0!==r&&(cr(t,1|r),Ju(t,Ut()),0==(6&Su)&&(Iu=Ut()+500,Ia()))}break;case 13:nc((function(){var t=xi(e,1);if(null!==t){var r=Hu();Qu(t,e,1,r)}})),Dc(e,1)}},hr=function(e){if(13===e.tag){var t=xi(e,134217728);if(null!==t)Qu(t,e,134217728,Hu());Dc(e,134217728)}},mr=function(e){if(13===e.tag){var t=Gu(e),r=xi(e,t);if(null!==r)Qu(r,e,t,Hu());Dc(e,t)}},vr=function(){return dr},gr=function(e,t){var r=dr;try{return dr=e,t()}finally{dr=r}},ht=function(e,t,r){switch(t){case"input":if(qe(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=ha(n);if(!o)throw Error(X(90));Le(n),qe(n,o)}}}break;case"textarea":Xe(e,r);break;case"select":null!=(t=r.value)&&Qe(e,!!r.multiple,t,!1)}},wt=rc,St=nc;var Hc={usingClientEntryPoint:!1,Events:[fa,pa,ha,yt,bt,rc]},Gc={findFiberByHostInstance:da,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Qc={bundleType:Gc.bundleType,version:Gc.version,rendererPackageName:Gc.rendererPackageName,rendererConfig:Gc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ft(e))?null:e.stateNode},findFiberByHostInstance:Gc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Jc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jc.isDisabled&&Jc.supportsFiber)try{Jt=Jc.inject(Qc),Yt=Jc}catch(_D){}}K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hc,K.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Uc(t))throw Error(X(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:me,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},K.createRoot=function(e,t){if(!Uc(e))throw Error(X(299));var r=!1,n="",o=Lc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Tc(e,1,!1,null,0,r,0,n,o),e[sa]=t.current,Io(8===e.nodeType?e.parentNode:e),new Bc(t)},K.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(X(188));throw e=Object.keys(e).join(","),Error(X(268,e))}return e=null===(e=Ft(t))?null:e.stateNode},K.flushSync=function(e){return nc(e)},K.hydrate=function(e,t,r){if(!Wc(t))throw Error(X(200));return Kc(null,e,t,!0,r)},K.hydrateRoot=function(e,t,r){if(!Uc(e))throw Error(X(405));var n=null!=r&&r.hydratedSources||null,o=!1,a="",i=Lc;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(i=r.onRecoverableError)),t=Ic(t,null,e,1,null!=r?r:null,o,0,a,i),e[sa]=t.current,Io(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Vc(t)},K.render=function(e,t,r){if(!Wc(t))throw Error(X(200));return Kc(null,e,t,!1,r)},K.unmountComponentAtNode=function(e){if(!Wc(e))throw Error(X(40));return!!e._reactRootContainer&&(nc((function(){Kc(null,null,e,!1,(function(){e._reactRootContainer=null,e[sa]=null}))})),!0)},K.unstable_batchedUpdates=rc,K.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Wc(r))throw Error(X(200));if(null==e||void 0===e._reactInternals)throw Error(X(38));return Kc(e,t,r,!1,n)},K.version="18.2.0-next-9e3b772b8-20220608",function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=K}(q);var Yc=n(W),Xc=W;function Zc(e){return!("undefined"!=typeof File&&e instanceof File)&&(!("undefined"!=typeof Date&&e instanceof Date)&&("object"==typeof e&&null!==e&&!Array.isArray(e)))}function ed(e){if(""===e)return;if(null===e)return null;if(/\.$/.test(e))return e;if(/\.0$/.test(e))return e;if(/\.\d*0$/.test(e))return e;const t=Number(e);return"number"==typeof t&&!Number.isNaN(t)?t:e}U.createRoot=Xc.createRoot,U.hydrateRoot=Xc.hydrateRoot;const td="__additional_property",rd="additionalProperties",nd="allOf",od="anyOf",ad="const",id="default",sd="dependencies",ld="enum",ud="__errors",cd="$id",dd="if",fd="items",pd="$name",hd="oneOf",md="properties",vd="required",gd="submitButtonOptions",yd="$ref",bd="__rjsf_additionalProperties",wd="__rjsf_rootSchema",Sd="ui:widget",xd="ui:options";function _d(e={},t={}){return Object.keys(e).filter((e=>0===e.indexOf("ui:"))).reduce(((t,r)=>{const n=e[r];return r===Sd&&Zc(n)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),t):r===xd&&Zc(n)?Object.assign(Object.assign({},t),n):Object.assign(Object.assign({},t),{[r.substring(3)]:n})}),Object.assign({},t))}function $d(e,t={},r){if(!e.additionalProperties)return!1;const{expandable:n=!0}=_d(t);return!1===n?n:void 0===e.maxProperties||!r||Object.keys(r).length<e.maxProperties}var kd="object"==typeof r&&r&&r.Object===Object&&r,Ed=kd,jd="object"==typeof self&&self&&self.Object===Object&&self,Cd=Ed||jd||Function("return this")(),Od=Cd.Symbol,Pd=Od,Nd=Object.prototype,Rd=Nd.hasOwnProperty,Td=Nd.toString,Ad=Pd?Pd.toStringTag:void 0;var Id=function(e){var t=Rd.call(e,Ad),r=e[Ad];try{e[Ad]=void 0;var n=!0}catch(e){}var o=Td.call(e);return n&&(t?e[Ad]=r:delete e[Ad]),o},Md=Object.prototype.toString;var Fd=Id,zd=function(e){return Md.call(e)},Dd=Od?Od.toStringTag:void 0;var Ld=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Dd&&Dd in Object(e)?Fd(e):zd(e)};var Bd=function(e,t){return function(r){return e(t(r))}},Vd=Bd(Object.getPrototypeOf,Object);var Ud=function(e){return null!=e&&"object"==typeof e},Wd=Ld,qd=Vd,Kd=Ud,Hd=Function.prototype,Gd=Object.prototype,Qd=Hd.toString,Jd=Gd.hasOwnProperty,Yd=Qd.call(Object);var Xd=function(e){if(!Kd(e)||"[object Object]"!=Wd(e))return!1;var t=qd(e);if(null===t)return!0;var r=Jd.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Qd.call(r)==Yd};function Zd(e){const t={[ud]:[],addError(e){this[ud].push(e)}};if(Array.isArray(e))return e.reduce(((e,t,r)=>Object.assign(Object.assign({},e),{[r]:Zd(t)})),t);if(Xd(e)){const r=e;return Object.keys(r).reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:Zd(r[t])})),t)}return t}var ef=function(){this.__data__=[],this.size=0};var tf=function(e,t){return e===t||e!=e&&t!=t},rf=tf;var nf=function(e,t){for(var r=e.length;r--;)if(rf(e[r][0],t))return r;return-1},of=nf,af=Array.prototype.splice;var sf=nf;var lf=nf;var uf=nf;var cf=ef,df=function(e){var t=this.__data__,r=of(t,e);return!(r<0)&&(r==t.length-1?t.pop():af.call(t,r,1),--this.size,!0)},ff=function(e){var t=this.__data__,r=sf(t,e);return r<0?void 0:t[r][1]},pf=function(e){return lf(this.__data__,e)>-1},hf=function(e,t){var r=this.__data__,n=uf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function mf(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}mf.prototype.clear=cf,mf.prototype.delete=df,mf.prototype.get=ff,mf.prototype.has=pf,mf.prototype.set=hf;var vf=mf,gf=vf;var yf=function(){this.__data__=new gf,this.size=0};var bf=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var wf=function(e){return this.__data__.get(e)};var Sf=function(e){return this.__data__.has(e)};var xf=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},_f=Ld,$f=xf;var kf,Ef=function(e){if(!$f(e))return!1;var t=_f(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},jf=Cd["__core-js_shared__"],Cf=(kf=/[^.]+$/.exec(jf&&jf.keys&&jf.keys.IE_PROTO||""))?"Symbol(src)_1."+kf:"";var Of=function(e){return!!Cf&&Cf in e},Pf=Function.prototype.toString;var Nf=function(e){if(null!=e){try{return Pf.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Rf=Ef,Tf=Of,Af=xf,If=Nf,Mf=/^\[object .+?Constructor\]$/,Ff=Function.prototype,zf=Object.prototype,Df=Ff.toString,Lf=zf.hasOwnProperty,Bf=RegExp("^"+Df.call(Lf).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Vf=function(e){return!(!Af(e)||Tf(e))&&(Rf(e)?Bf:Mf).test(If(e))},Uf=function(e,t){return null==e?void 0:e[t]};var Wf=function(e,t){var r=Uf(e,t);return Vf(r)?r:void 0},qf=Wf(Cd,"Map"),Kf=Wf(Object,"create"),Hf=Kf;var Gf=function(){this.__data__=Hf?Hf(null):{},this.size=0};var Qf=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Jf=Kf,Yf=Object.prototype.hasOwnProperty;var Xf=function(e){var t=this.__data__;if(Jf){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Yf.call(t,e)?t[e]:void 0},Zf=Kf,ep=Object.prototype.hasOwnProperty;var tp=Kf;var rp=Gf,np=Qf,op=Xf,ap=function(e){var t=this.__data__;return Zf?void 0!==t[e]:ep.call(t,e)},ip=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=tp&&void 0===t?"__lodash_hash_undefined__":t,this};function sp(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}sp.prototype.clear=rp,sp.prototype.delete=np,sp.prototype.get=op,sp.prototype.has=ap,sp.prototype.set=ip;var lp=sp,up=vf,cp=qf;var dp=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},fp=dp;var pp=function(e,t){var r=e.__data__;return fp(t)?r["string"==typeof t?"string":"hash"]:r.map},hp=pp;var mp=pp;var vp=pp;var gp=pp;var yp=function(){this.size=0,this.__data__={hash:new lp,map:new(cp||up),string:new lp}},bp=function(e){var t=hp(this,e).delete(e);return this.size-=t?1:0,t},wp=function(e){return mp(this,e).get(e)},Sp=function(e){return vp(this,e).has(e)},xp=function(e,t){var r=gp(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function _p(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_p.prototype.clear=yp,_p.prototype.delete=bp,_p.prototype.get=wp,_p.prototype.has=Sp,_p.prototype.set=xp;var $p=_p,kp=vf,Ep=qf,jp=$p;var Cp=vf,Op=yf,Pp=bf,Np=wf,Rp=Sf,Tp=function(e,t){var r=this.__data__;if(r instanceof kp){var n=r.__data__;if(!Ep||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new jp(n)}return r.set(e,t),this.size=r.size,this};function Ap(e){var t=this.__data__=new Cp(e);this.size=t.size}Ap.prototype.clear=Op,Ap.prototype.delete=Pp,Ap.prototype.get=Np,Ap.prototype.has=Rp,Ap.prototype.set=Tp;var Ip=Ap;var Mp=$p,Fp=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},zp=function(e){return this.__data__.has(e)};function Dp(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Mp;++t<r;)this.add(e[t])}Dp.prototype.add=Dp.prototype.push=Fp,Dp.prototype.has=zp;var Lp=Dp;var Bp=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var Vp=function(e,t){return e.has(t)},Up=Lp,Wp=Bp,qp=Vp;var Kp=function(e,t,r,n,o,a){var i=1&r,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&r?new Up:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var h=e[d],m=t[d];if(n)var v=i?n(m,h,d,t,e,a):n(h,m,d,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(p){if(!Wp(t,(function(e,t){if(!qp(p,t)&&(h===e||o(h,e,r,n,a)))return p.push(t)}))){f=!1;break}}else if(h!==m&&!o(h,m,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f},Hp=Cd.Uint8Array;var Gp=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Qp=Hp,Jp=tf,Yp=Kp,Xp=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},Zp=Gp,eh=Od?Od.prototype:void 0,th=eh?eh.valueOf:void 0;var rh=function(e,t,r,n,o,a,i){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new Qp(e),new Qp(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Jp(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Xp;case"[object Set]":var l=1&n;if(s||(s=Zp),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=2,i.set(e,t);var c=Yp(s(e),s(t),n,o,a,i);return i.delete(e),c;case"[object Symbol]":if(th)return th.call(e)==th.call(t)}return!1};var nh=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e},oh=Array.isArray,ah=nh,ih=oh;var sh=function(e,t,r){var n=t(e);return ih(e)?n:ah(n,r(e))};var lh=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a};var uh=function(){return[]},ch=lh,dh=uh,fh=Object.prototype.propertyIsEnumerable,ph=Object.getOwnPropertySymbols,hh=ph?function(e){return null==e?[]:(e=Object(e),ch(ph(e),(function(t){return fh.call(e,t)})))}:dh;var mh=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},vh=Ld,gh=Ud;var yh=function(e){return gh(e)&&"[object Arguments]"==vh(e)},bh=Ud,wh=Object.prototype,Sh=wh.hasOwnProperty,xh=wh.propertyIsEnumerable,_h=yh(function(){return arguments}())?yh:function(e){return bh(e)&&Sh.call(e,"callee")&&!xh.call(e,"callee")},$h=_h,kh={},Eh={get exports(){return kh},set exports(e){kh=e}};var jh=function(){return!1};!function(e,t){var r=Cd,n=jh,o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,s=(i?i.isBuffer:void 0)||n;e.exports=s}(Eh,kh);var Ch=/^(?:0|[1-9]\d*)$/;var Oh=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Ch.test(e))&&e>-1&&e%1==0&&e<t};var Ph=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Nh=Ld,Rh=Ph,Th=Ud,Ah={};Ah["[object Float32Array]"]=Ah["[object Float64Array]"]=Ah["[object Int8Array]"]=Ah["[object Int16Array]"]=Ah["[object Int32Array]"]=Ah["[object Uint8Array]"]=Ah["[object Uint8ClampedArray]"]=Ah["[object Uint16Array]"]=Ah["[object Uint32Array]"]=!0,Ah["[object Arguments]"]=Ah["[object Array]"]=Ah["[object ArrayBuffer]"]=Ah["[object Boolean]"]=Ah["[object DataView]"]=Ah["[object Date]"]=Ah["[object Error]"]=Ah["[object Function]"]=Ah["[object Map]"]=Ah["[object Number]"]=Ah["[object Object]"]=Ah["[object RegExp]"]=Ah["[object Set]"]=Ah["[object String]"]=Ah["[object WeakMap]"]=!1;var Ih=function(e){return Th(e)&&Rh(e.length)&&!!Ah[Nh(e)]};var Mh=function(e){return function(t){return e(t)}},Fh={},zh={get exports(){return Fh},set exports(e){Fh=e}};!function(e,t){var r=kd,n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,a=o&&o.exports===n&&r.process,i=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i}(zh,Fh);var Dh=Ih,Lh=Mh,Bh=Fh&&Fh.isTypedArray,Vh=Bh?Lh(Bh):Dh,Uh=mh,Wh=$h,qh=oh,Kh=kh,Hh=Oh,Gh=Vh,Qh=Object.prototype.hasOwnProperty;var Jh=function(e,t){var r=qh(e),n=!r&&Wh(e),o=!r&&!n&&Kh(e),a=!r&&!n&&!o&&Gh(e),i=r||n||o||a,s=i?Uh(e.length,String):[],l=s.length;for(var u in e)!t&&!Qh.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Hh(u,l))||s.push(u);return s},Yh=Object.prototype;var Xh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Yh)},Zh=Bd(Object.keys,Object),em=Xh,tm=Zh,rm=Object.prototype.hasOwnProperty;var nm=function(e){if(!em(e))return tm(e);var t=[];for(var r in Object(e))rm.call(e,r)&&"constructor"!=r&&t.push(r);return t},om=Ef,am=Ph;var im=function(e){return null!=e&&am(e.length)&&!om(e)},sm=Jh,lm=nm,um=im;var cm=function(e){return um(e)?sm(e):lm(e)},dm=sh,fm=hh,pm=cm;var hm=function(e){return dm(e,pm,fm)},mm=hm,vm=Object.prototype.hasOwnProperty;var gm=function(e,t,r,n,o,a){var i=1&r,s=mm(e),l=s.length;if(l!=mm(t).length&&!i)return!1;for(var u=l;u--;){var c=s[u];if(!(i?c in t:vm.call(t,c)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var h=i;++u<l;){var m=e[c=s[u]],v=t[c];if(n)var g=i?n(v,m,c,t,e,a):n(m,v,c,e,t,a);if(!(void 0===g?m===v||o(m,v,r,n,a):g)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return a.delete(e),a.delete(t),p},ym=Wf(Cd,"DataView"),bm=Wf(Cd,"Promise"),wm=Wf(Cd,"Set"),Sm=ym,xm=qf,_m=bm,$m=wm,km=Wf(Cd,"WeakMap"),Em=Ld,jm=Nf,Cm="[object Map]",Om="[object Promise]",Pm="[object Set]",Nm="[object WeakMap]",Rm="[object DataView]",Tm=jm(Sm),Am=jm(xm),Im=jm(_m),Mm=jm($m),Fm=jm(km),zm=Em;(Sm&&zm(new Sm(new ArrayBuffer(1)))!=Rm||xm&&zm(new xm)!=Cm||_m&&zm(_m.resolve())!=Om||$m&&zm(new $m)!=Pm||km&&zm(new km)!=Nm)&&(zm=function(e){var t=Em(e),r="[object Object]"==t?e.constructor:void 0,n=r?jm(r):"";if(n)switch(n){case Tm:return Rm;case Am:return Cm;case Im:return Om;case Mm:return Pm;case Fm:return Nm}return t});var Dm=zm,Lm=Ip,Bm=Kp,Vm=rh,Um=gm,Wm=Dm,qm=oh,Km=kh,Hm=Vh,Gm="[object Arguments]",Qm="[object Array]",Jm="[object Object]",Ym=Object.prototype.hasOwnProperty;var Xm=function(e,t,r,n,o,a){var i=qm(e),s=qm(t),l=i?Qm:Wm(e),u=s?Qm:Wm(t),c=(l=l==Gm?Jm:l)==Jm,d=(u=u==Gm?Jm:u)==Jm,f=l==u;if(f&&Km(e)){if(!Km(t))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new Lm),i||Hm(e)?Bm(e,t,r,n,o,a):Vm(e,t,l,r,n,o,a);if(!(1&r)){var p=c&&Ym.call(e,"__wrapped__"),h=d&&Ym.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,v=h?t.value():t;return a||(a=new Lm),o(m,v,r,n,a)}}return!!f&&(a||(a=new Lm),Um(e,t,r,n,o,a))},Zm=Ud;var ev=function e(t,r,n,o,a){return t===r||(null==t||null==r||!Zm(t)&&!Zm(r)?t!=t&&r!=r:Xm(t,r,n,o,e,a))},tv=ev;var rv=function(e,t,r){var n=(r="function"==typeof r?r:void 0)?r(e,t):void 0;return void 0===n?tv(e,t,void 0,r):!!n};function nv(e,t){return rv(e,t,((e,t)=>{if("function"==typeof e&&"function"==typeof t)return!0}))}
22
22
  /*! *****************************************************************************
23
23
  Copyright (c) Microsoft Corporation.
24
24
 
@@ -32,7 +32,7 @@ var J=a,Y=H;function X(e){for(var t="https://reactjs.org/docs/error-decoder.html
32
32
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
33
33
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
34
34
  PERFORMANCE OF THIS SOFTWARE.
35
- ***************************************************************************** */function ov(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}var av=Ld,iv=Ud;var sv=function(e){return"symbol"==typeof e||iv(e)&&"[object Symbol]"==av(e)},lv=oh,uv=sv,cv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dv=/^\w*$/;var fv=function(e,t){if(lv(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!uv(e))||(dv.test(e)||!cv.test(e)||null!=t&&e in Object(t))},pv=$p;function hv(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(hv.Cache||pv),r}hv.Cache=pv;var mv=hv;var vv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gv=/\\(\\)?/g,yv=function(e){var t=mv(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(vv,(function(e,r,n,o){t.push(n?o.replace(gv,"$1"):r||e)})),t})),bv=yv;var wv=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Sv=wv,xv=oh,_v=sv,$v=Od?Od.prototype:void 0,kv=$v?$v.toString:void 0;var Ev=function e(t){if("string"==typeof t)return t;if(xv(t))return Sv(t,e)+"";if(_v(t))return kv?kv.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},jv=Ev;var Cv=function(e){return null==e?"":jv(e)},Ov=oh,Pv=fv,Nv=bv,Rv=Cv;var Tv=function(e,t){return Ov(e)?e:Pv(e,t)?[e]:Nv(Rv(e))},Av=sv;var Iv=function(e){if("string"==typeof e||Av(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Mv=Tv,Fv=Iv;var zv=function(e,t){for(var r=0,n=(t=Mv(t,e)).length;null!=e&&r<n;)e=e[Fv(t[r++])];return r&&r==n?e:void 0},Dv=zv;var Lv=function(e,t,r){var n=null==e?void 0:Dv(e,t);return void 0===n?r:n},Bv=nm,Vv=Dm,Uv=$h,Wv=oh,qv=im,Kv=kh,Hv=Xh,Gv=Vh,Qv=Object.prototype.hasOwnProperty;var Jv=function(e){if(null==e)return!0;if(qv(e)&&(Wv(e)||"string"==typeof e||"function"==typeof e.splice||Kv(e)||Gv(e)||Uv(e)))return!e.length;var t=Vv(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Hv(e))return!Bv(e).length;for(var r in e)if(Qv.call(e,r))return!1;return!0},Yv={},Xv=/~/,Zv=/~[01]/g;function eg(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function tg(e){return Xv.test(e)?e.replace(Zv,eg):e}function rg(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!=typeof t&&"number"!=typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function ng(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var r=(t=rg(t)).length;if(1===r)return e;for(var n=1;n<r;){if(e=e[tg(t[n++])],r===n)return e;if("object"!=typeof e||null===e)return}}function og(e,t,r){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(t=rg(t)).length)throw new Error("Invalid JSON pointer for set.");return function(e,t,r){for(var n,o,a=1,i=t.length;a<i;){if("constructor"===t[a]||"prototype"===t[a]||"__proto__"===t[a])return e;if(n=tg(t[a++]),o=i>a,void 0===e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),o&&(""!==t[a]&&t[a]<1/0||"-"===t[a]?e[n]=[]:e[n]={})),!o)break;e=e[n]}var s=e[n];return void 0===r?delete e[n]:e[n]=r,s}(e,t,r)}Yv.get=ng,Yv.set=og,Yv.compile=function(e){var t=rg(e);return{get:function(e){return ng(e,t)},set:function(e,r){return og(e,t,r)}}};var ag=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},ig=Wf,sg=function(){try{var e=ig(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),lg=sg;var ug=function(e,t,r){"__proto__"==t&&lg?lg(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},cg=ug,dg=tf,fg=Object.prototype.hasOwnProperty;var pg=function(e,t,r){var n=e[t];fg.call(e,t)&&dg(n,r)&&(void 0!==r||t in e)||cg(e,t,r)},hg=pg,mg=ug;var vg=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),o?mg(r,s,l):hg(r,s,l)}return r},gg=vg,yg=cm;var bg=function(e,t){return e&&gg(t,yg(t),e)};var wg=xf,Sg=Xh,xg=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},_g=Object.prototype.hasOwnProperty;var $g=Jh,kg=function(e){if(!wg(e))return xg(e);var t=Sg(e),r=[];for(var n in e)("constructor"!=n||!t&&_g.call(e,n))&&r.push(n);return r},Eg=im;var jg=function(e){return Eg(e)?$g(e,!0):kg(e)},Cg=vg,Og=jg;var Pg=function(e,t){return e&&Cg(t,Og(t),e)},Ng={},Rg={get exports(){return Ng},set exports(e){Ng=e}};!function(e,t){var r=Cd,n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,a=o&&o.exports===n?r.Buffer:void 0,i=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}}(Rg,Ng);var Tg=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},Ag=vg,Ig=hh;var Mg=function(e,t){return Ag(e,Ig(e),t)},Fg=nh,zg=Vd,Dg=hh,Lg=uh,Bg=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Fg(t,Dg(e)),e=zg(e);return t}:Lg,Vg=vg,Ug=Bg;var Wg=function(e,t){return Vg(e,Ug(e),t)},qg=sh,Kg=Bg,Hg=jg;var Gg=function(e){return qg(e,Hg,Kg)},Qg=Object.prototype.hasOwnProperty;var Jg=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Qg.call(e,"index")&&(r.index=e.index,r.input=e.input),r},Yg=Hp;var Xg=function(e){var t=new e.constructor(e.byteLength);return new Yg(t).set(new Yg(e)),t},Zg=Xg;var ey=function(e,t){var r=t?Zg(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},ty=/\w*$/;var ry=function(e){var t=new e.constructor(e.source,ty.exec(e));return t.lastIndex=e.lastIndex,t},ny=Od?Od.prototype:void 0,oy=ny?ny.valueOf:void 0;var ay=Xg;var iy=function(e,t){var r=t?ay(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},sy=Xg,ly=ey,uy=ry,cy=function(e){return oy?Object(oy.call(e)):{}},dy=iy;var fy=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return sy(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return ly(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return dy(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return uy(e);case"[object Symbol]":return cy(e)}},py=xf,hy=Object.create,my=function(){function e(){}return function(t){if(!py(t))return{};if(hy)return hy(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),vy=my,gy=Vd,yy=Xh;var by=function(e){return"function"!=typeof e.constructor||yy(e)?{}:vy(gy(e))},wy=Dm,Sy=Ud;var xy=function(e){return Sy(e)&&"[object Map]"==wy(e)},_y=Mh,$y=Fh&&Fh.isMap,ky=$y?_y($y):xy,Ey=Dm,jy=Ud;var Cy=function(e){return jy(e)&&"[object Set]"==Ey(e)},Oy=Mh,Py=Fh&&Fh.isSet,Ny=Py?Oy(Py):Cy,Ry=Ip,Ty=ag,Ay=pg,Iy=bg,My=Pg,Fy=Ng,zy=Tg,Dy=Mg,Ly=Wg,By=hm,Vy=Gg,Uy=Dm,Wy=Jg,qy=fy,Ky=by,Hy=oh,Gy=kh,Qy=ky,Jy=xf,Yy=Ny,Xy=cm,Zy=jg,eb="[object Arguments]",tb="[object Function]",rb="[object Object]",nb={};nb[eb]=nb["[object Array]"]=nb["[object ArrayBuffer]"]=nb["[object DataView]"]=nb["[object Boolean]"]=nb["[object Date]"]=nb["[object Float32Array]"]=nb["[object Float64Array]"]=nb["[object Int8Array]"]=nb["[object Int16Array]"]=nb["[object Int32Array]"]=nb["[object Map]"]=nb["[object Number]"]=nb[rb]=nb["[object RegExp]"]=nb["[object Set]"]=nb["[object String]"]=nb["[object Symbol]"]=nb["[object Uint8Array]"]=nb["[object Uint8ClampedArray]"]=nb["[object Uint16Array]"]=nb["[object Uint32Array]"]=!0,nb["[object Error]"]=nb[tb]=nb["[object WeakMap]"]=!1;var ob=function e(t,r,n,o,a,i){var s,l=1&r,u=2&r,c=4&r;if(n&&(s=a?n(t,o,a,i):n(t)),void 0!==s)return s;if(!Jy(t))return t;var d=Hy(t);if(d){if(s=Wy(t),!l)return zy(t,s)}else{var f=Uy(t),p=f==tb||"[object GeneratorFunction]"==f;if(Gy(t))return Fy(t,l);if(f==rb||f==eb||p&&!a){if(s=u||p?{}:Ky(t),!l)return u?Ly(t,My(s,t)):Dy(t,Iy(s,t))}else{if(!nb[f])return a?t:{};s=qy(t,f,l)}}i||(i=new Ry);var h=i.get(t);if(h)return h;i.set(t,s),Yy(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,i))})):Qy(t)&&t.forEach((function(o,a){s.set(a,e(o,r,n,a,t,i))}));var m=d?void 0:(c?u?Vy:By:u?Zy:Xy)(t);return Ty(m||t,(function(o,a){m&&(o=t[a=o]),Ay(s,a,e(o,r,n,a,t,i))})),s};var ab=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var ib=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a},sb=zv,lb=ib;var ub=Tv,cb=ab,db=function(e,t){return t.length<2?e:sb(e,lb(t,0,-1))},fb=Iv;var pb=function(e,t){return t=ub(t,e),null==(e=db(e,t))||delete e[fb(cb(t))]},hb=Xd;var mb=function(e){return hb(e)?void 0:e},vb=$h,gb=oh,yb=Od?Od.isConcatSpreadable:void 0;var bb=nh,wb=function(e){return gb(e)||vb(e)||!!(yb&&e&&e[yb])};var Sb=function e(t,r,n,o,a){var i=-1,s=t.length;for(n||(n=wb),a||(a=[]);++i<s;){var l=t[i];r>0&&n(l)?r>1?e(l,r-1,n,o,a):bb(a,l):o||(a[a.length]=l)}return a},xb=Sb;var _b=function(e){return(null==e?0:e.length)?xb(e,1):[]};var $b=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},kb=$b,Eb=Math.max;var jb=function(e,t,r){return t=Eb(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Eb(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),kb(e,this,s)}};var Cb=function(e){return e},Ob=function(e){return function(){return e}},Pb=sg,Nb=Pb?function(e,t){return Pb(e,"toString",{configurable:!0,enumerable:!1,value:Ob(t),writable:!0})}:Cb,Rb=Date.now;var Tb=function(e){var t=0,r=0;return function(){var n=Rb(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Ab=Tb(Nb),Ib=_b,Mb=jb,Fb=Ab;var zb=function(e){return Fb(Mb(e,void 0,Ib),e+"")},Db=wv,Lb=ob,Bb=pb,Vb=Tv,Ub=vg,Wb=mb,qb=Gg,Kb=zb((function(e,t){var r={};if(null==e)return r;var n=!1;t=Db(t,(function(t){return t=Vb(t,e),n||(n=t.length>1),t})),Ub(e,qb(e),r),n&&(r=Lb(r,7,Wb));for(var o=t.length;o--;)Bb(r,t[o]);return r})),Hb=Kb;function Gb(e,t){const r=t[e];return[Hb(t,[e]),r]}function Qb(e,t={}){let r=e||"";if(!r.startsWith("#"))throw new Error(`Could not find a definition for ${e}.`);r=decodeURIComponent(r.substring(1));const n=Yv.get(t,r);if(void 0===n)throw new Error(`Could not find a definition for ${e}.`);if(n[yd]){const[e,r]=Gb(yd,n),o=Qb(r,t);return Object.keys(e).length>0?Object.assign(Object.assign({},e),o):o}return n}var Jb=Object.prototype.hasOwnProperty;var Yb=Tv,Xb=$h,Zb=oh,ew=Oh,tw=Ph,rw=Iv;var nw=function(e,t,r){for(var n=-1,o=(t=Yb(t,e)).length,a=!1;++n<o;){var i=rw(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&tw(o)&&ew(i,o)&&(Zb(e)||Xb(e))},ow=function(e,t){return null!=e&&Jb.call(e,t)},aw=nw;var iw=function(e,t){return null!=e&&aw(e,t,ow)},sw=Ld,lw=oh,uw=Ud;var cw=function(e){return"string"==typeof e||!lw(e)&&uw(e)&&"[object String]"==sw(e)};var dw=function(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r};var fw=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}},pw=fw(),hw=pw,mw=cm;var vw=function(e,t){return e&&hw(e,t,mw)},gw=im;var yw=function(e,t){return function(r,n){if(null==r)return r;if(!gw(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++a<o)&&!1!==n(i[a],a,i););return r}},bw=yw(vw),ww=Ip,Sw=ev;var xw=function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var l=(s=r[o])[0],u=e[l],c=s[1];if(i&&s[2]){if(void 0===u&&!(l in e))return!1}else{var d=new ww;if(n)var f=n(u,c,l,e,t,d);if(!(void 0===f?Sw(c,u,3,n,d):f))return!1}}return!0},_w=xf;var $w=function(e){return e==e&&!_w(e)},kw=$w,Ew=cm;var jw=function(e){for(var t=Ew(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,kw(o)]}return t};var Cw=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},Ow=xw,Pw=jw,Nw=Cw;var Rw=function(e,t){return null!=e&&t in Object(e)},Tw=nw;var Aw=function(e,t){return null!=e&&Tw(e,t,Rw)},Iw=ev,Mw=Lv,Fw=Aw,zw=fv,Dw=$w,Lw=Cw,Bw=Iv;var Vw=zv;var Uw=function(e){return function(t){return null==t?void 0:t[e]}},Ww=function(e){return function(t){return Vw(t,e)}},qw=fv,Kw=Iv;var Hw=function(e){var t=Pw(e);return 1==t.length&&t[0][2]?Nw(t[0][0],t[0][1]):function(r){return r===e||Ow(r,e,t)}},Gw=function(e,t){return zw(e)&&Dw(t)?Lw(Bw(e),t):function(r){var n=Mw(r,e);return void 0===n&&n===t?Fw(r,e):Iw(t,n,3)}},Qw=Cb,Jw=oh,Yw=function(e){return qw(e)?Uw(Kw(e)):Ww(e)};var Xw=function(e){return"function"==typeof e?e:null==e?Qw:"object"==typeof e?Jw(e)?Gw(e[0],e[1]):Hw(e):Yw(e)};var Zw=dw,eS=bw,tS=Xw,rS=function(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r},nS=oh;var oS=function(e,t,r){var n=nS(e)?Zw:rS,o=arguments.length<3;return n(e,tS(t),r,o,eS)},aS=Cb;var iS=function(e){return"function"==typeof e?e:aS},sS=/\s/;var lS=function(e){for(var t=e.length;t--&&sS.test(e.charAt(t)););return t},uS=/^\s+/;var cS=function(e){return e?e.slice(0,lS(e)+1).replace(uS,""):e},dS=xf,fS=sv,pS=/^[-+]0x[0-9a-f]+$/i,hS=/^0b[01]+$/i,mS=/^0o[0-7]+$/i,vS=parseInt;var gS=function(e){if("number"==typeof e)return e;if(fS(e))return NaN;if(dS(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=dS(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=cS(e);var r=hS.test(e);return r||mS.test(e)?vS(e.slice(2),r?2:8):pS.test(e)?NaN:+e},yS=1/0;var bS=function(e){return e?(e=gS(e))===yS||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var wS=mh,SS=iS,xS=function(e){var t=bS(e),r=t%1;return t==t?r?t-r:t:0},_S=4294967295,$S=Math.min;var kS=function(e,t){if((e=xS(e))<1||e>9007199254740991)return[];var r=_S,n=$S(e,_S);t=SS(t),e-=_S;for(var o=wS(n,t);++r<e;)t(r);return o};function ES(e,t,r,n,o){if(void 0===t)return 0;for(let a=0;a<r.length;a++){const i=r[a];if(o&&iw(i,[md,o])){const r=Lv(t,o),s=Lv(i,[md,o],{});if(e.isValid(s,r,n))return a}else if(i[md]){const r={anyOf:Object.keys(i[md]).map((e=>({required:[e]})))};let o;if(i.anyOf){const e=ov(i,[]);e.allOf?e.allOf=e.allOf.slice():e.allOf=[],e.allOf.push(r),o=e}else o=Object.assign({},i,r);if(delete o.required,e.isValid(o,t,n))return a}else if(e.isValid(i,t,n))return a}return 0}function jS(e,t,r,n,o){return ES(e,t,r,n,o)}var CS=pg,OS=Tv,PS=Oh,NS=xf,RS=Iv;var TS=function(e,t,r,n){if(!NS(e))return e;for(var o=-1,a=(t=OS(t,e)).length,i=a-1,s=e;null!=s&&++o<a;){var l=RS(t[o]),u=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=i){var c=s[l];void 0===(u=n?n(c,l,s):void 0)&&(u=NS(c)?c:PS(t[o+1])?[]:{})}CS(s,l,u),s=s[l]}return e},AS=TS;var IS=function(e,t,r){return null==e?e:AS(e,t,r)},MS=ag,FS=my,zS=vw,DS=Xw,LS=Vd,BS=oh,VS=kh,US=Ef,WS=xf,qS=Vh;var KS=function(e,t,r){var n=BS(e),o=n||VS(e)||qS(e);if(t=DS(t),null==r){var a=e&&e.constructor;r=o?n?new a:[]:WS(e)&&US(a)?FS(LS(e)):{}}return(o?MS:zS)(e,(function(e,n,o){return t(r,e,n,o)})),r},HS=ob;var GS=function(e){return HS(e,5)},QS=ev;var JS=function(e,t){return QS(e,t)},YS=bw,XS=im;var ZS=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e},ex=sv;var tx=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,a=ex(e),i=void 0!==t,s=null===t,l=t==t,u=ex(t);if(!s&&!u&&!a&&e>t||a&&i&&l&&!s&&!u||n&&i&&l||!r&&l||!o)return 1;if(!n&&!a&&!u&&e<t||u&&r&&o&&!n&&!a||s&&r&&o||!i&&o||!l)return-1}return 0};var rx=function(e,t,r){for(var n=-1,o=e.criteria,a=t.criteria,i=o.length,s=r.length;++n<i;){var l=tx(o[n],a[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index},nx=wv,ox=zv,ax=Xw,ix=function(e,t){var r=-1,n=XS(e)?Array(e.length):[];return YS(e,(function(e,o,a){n[++r]=t(e,o,a)})),n},sx=ZS,lx=Mh,ux=rx,cx=Cb,dx=oh;var fx=Cb,px=jb,hx=Ab;var mx=function(e,t){return hx(px(e,t,fx),e+"")},vx=tf,gx=im,yx=Oh,bx=xf;var wx=function(e,t,r){if(!bx(r))return!1;var n=typeof t;return!!("number"==n?gx(r)&&yx(t,r.length):"string"==n&&t in r)&&vx(r[t],e)},Sx=Sb,xx=function(e,t,r){t=t.length?nx(t,(function(e){return dx(e)?function(t){return ox(t,1===e.length?e[0]:e)}:e})):[cx];var n=-1;t=nx(t,lx(ax));var o=ix(e,(function(e,r,o){return{criteria:nx(t,(function(t){return t(e)})),index:++n,value:e}}));return sx(o,(function(e,t){return ux(e,t,r)}))},_x=wx,$x=mx((function(e,t){if(null==e)return[];var r=t.length;return r>1&&_x(e,t[0],t[1])?t=[]:r>2&&_x(t[0],t[1],t[2])&&(t=[t[0]]),xx(e,Sx(t,1),[])})),kx=$x;var Ex=function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1};var jx=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1},Cx=Ex,Ox=function(e){return e!=e},Px=jx;var Nx=function(e,t,r){return t==t?Px(e,t,r):Cx(e,Ox,r)},Rx=Nx;var Tx=function(e,t){return!!(null==e?0:e.length)&&Rx(e,t,0)>-1};var Ax=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1};var Ix=wm,Mx=function(){},Fx=Ix&&1/Gp(new Ix([,-0]))[1]==1/0?function(e){return new Ix(e)}:Mx,zx=Lp,Dx=Tx,Lx=Ax,Bx=Vp,Vx=Fx,Ux=Gp;var Wx=function(e,t,r){var n=-1,o=Dx,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=Lx;else if(a>=200){var u=t?null:Vx(e);if(u)return Ux(u);i=!1,o=Bx,l=new zx}else l=t?[]:s;e:for(;++n<a;){var c=e[n],d=t?t(c):c;if(c=r||0!==c?c:0,i&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,r)||(l!==s&&l.push(d),s.push(c))}return s},qx=Wx;var Kx=function(e){return e&&e.length?qx(e):[]},Hx=Wx;var Gx=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Hx(e,void 0,t):[]},Qx=mx,Jx=tf,Yx=wx,Xx=jg,Zx=Object.prototype,e_=Zx.hasOwnProperty,t_=Qx((function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&Yx(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],i=Xx(a),s=-1,l=i.length;++s<l;){var u=i[s],c=e[u];(void 0===c||Jx(c,Zx[u])&&!e_.call(e,u))&&(e[u]=a[u])}return e})),r_=t_,n_=Lp,o_=Tx,a_=Ax,i_=wv,s_=Mh,l_=Vp,u_=Math.min;var c_=function(e,t,r){for(var n=r?a_:o_,o=e[0].length,a=e.length,i=a,s=Array(a),l=1/0,u=[];i--;){var c=e[i];i&&t&&(c=i_(c,s_(t))),l=u_(c.length,l),s[i]=!r&&(t||o>=120&&c.length>=120)?new n_(i&&c):void 0}c=e[0];var d=-1,f=s[0];e:for(;++d<o&&u.length<l;){var p=c[d],h=t?t(p):p;if(p=r||0!==p?p:0,!(f?l_(f,h):n(u,h,r))){for(i=a;--i;){var m=s[i];if(!(m?l_(m,h):n(e[i],h,r)))continue e}f&&f.push(h),u.push(p)}}return u},d_=im,f_=Ud;var p_=function(e){return f_(e)&&d_(e)},h_=p_;var m_=function(e){return h_(e)?e:[]},v_=wv,g_=c_,y_=m_,b_=ab,w_=mx((function(e){var t=b_(e),r=v_(e,y_);return(t="function"==typeof t?t:void 0)&&r.pop(),r.length&&r[0]===e[0]?g_(r,void 0,t):[]})),S_=Ld,x_=Ud;var __=JS,$_=kx,k_=Kx,E_=Gx,j_=r_,C_=w_,O_=Xd,P_=function(e){return!0===e||!1===e||x_(e)&&"[object Boolean]"==S_(e)},N_=e=>Array.isArray(e)?e:[e],R_=e=>void 0===e,T_=e=>O_(e)||Array.isArray(e)?Object.keys(e):[],A_=(e,t)=>e.hasOwnProperty(t),I_=e=>$_(k_(e)),M_=e=>R_(e)||Array.isArray(e)&&0===e.length,F_=(e,t,r,n)=>t&&A_(t,r)&&e&&A_(e,r)&&n(e[r],t[r]),z_=(e,t)=>R_(e)&&0===t||R_(t)&&0===e||__(e,t),D_=e=>R_(e)||__(e,{})||!0===e,L_=e=>R_(e)||__(e,{}),B_=e=>R_(e)||O_(e)||!0===e||!1===e;function V_(e,t){return!(!M_(e)||!M_(t))||__(I_(e),I_(t))}function U_(e,t,r,n){var o=k_(T_(e).concat(T_(t)));return!(!L_(e)||!L_(t))||(!L_(e)||!T_(t).length)&&((!L_(t)||!T_(e).length)&&o.every((function(r){var o=e[r],a=t[r];return Array.isArray(o)&&Array.isArray(a)?__(I_(e),I_(t)):!(Array.isArray(o)&&!Array.isArray(a))&&(!(Array.isArray(a)&&!Array.isArray(o))&&F_(e,t,r,n))})))}function W_(e,t,r,n){var o=E_(e,n),a=E_(t,n);return C_(o,a,n).length===Math.max(o.length,a.length)}var q_={title:__,uniqueItems:(e,t)=>R_(e)&&!1===t||R_(t)&&!1===e||__(e,t),minLength:z_,minItems:z_,minProperties:z_,required:V_,enum:V_,type:function(e,t){return e=N_(e),t=N_(t),__(I_(e),I_(t))},items:function(e,t,r,n){return O_(e)&&O_(t)?n(e,t):Array.isArray(e)&&Array.isArray(t)?U_(e,t,0,n):__(e,t)},anyOf:W_,allOf:W_,oneOf:W_,properties:U_,patternProperties:U_,dependencies:U_},K_=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],H_=["additionalProperties","additionalItems","contains","propertyNames","not"];var G_=function e(t,r,n){if(n=j_(n,{ignore:[]}),D_(t)&&D_(r))return!0;if(!B_(t)||!B_(r))throw new Error("Either of the values are not a JSON schema.");if(t===r)return!0;if(P_(t)&&P_(r))return t===r;if(void 0===t&&!1===r||void 0===r&&!1===t)return!1;if(R_(t)&&!R_(r)||!R_(t)&&R_(r))return!1;var o=k_(Object.keys(t).concat(Object.keys(r)));if(n.ignore.length&&(o=o.filter((e=>-1===n.ignore.indexOf(e)))),!o.length)return!0;function a(t,r){return e(t,r,n)}return o.every((function(o){var i=t[o],s=r[o];if(-1!==H_.indexOf(o))return e(i,s,n);var l=q_[o];if(l||(l=__),__(i,s))return!0;if(-1===K_.indexOf(o)&&(!A_(t,o)&&A_(r,o)||A_(t,o)&&!A_(r,o)))return i===s;var u=l(i,s,o,a);if(!P_(u))throw new Error("Comparer must return true or false");return u}))};var Q_=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var J_=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()};var Y_=Q_,X_=function(e){return J_(e)&&e%1==0};var Z_=function(e){var t;if(!Y_(e))return!1;if(!(t=e.length))return!1;for(var r=0;r<t;r++)if(!X_(e[r]))return!1;return!0};var e$=function(e){return"function"==typeof e},t$=Q_,r$=Z_,n$=e$,o$=Math.pow(2,31)-1;function a$(e,t){var r,n=1;if(0===e)return t;if(0===t)return e;for(;e%2==0&&t%2==0;)e/=2,t/=2,n*=2;for(;e%2==0;)e/=2;for(;t;){for(;t%2==0;)t/=2;e>t&&(r=t,t=e,e=r),t-=e}return n*e}function i$(e,t){var r,n=0;if(0===e)return t;if(0===t)return e;for(;0==(1&e)&&0==(1&t);)e>>>=1,t>>>=1,n++;for(;0==(1&e);)e>>>=1;for(;t;){for(;0==(1&t);)t>>>=1;e>t&&(r=t,t=e,e=r),t-=e}return e<<n}var s$=function(){var e,t,r,n,o,a,i,s=arguments.length;for(e=new Array(s),i=0;i<s;i++)e[i]=arguments[i];if(r$(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),o<=o$&&a<=o$?i$(o,a):a$(o,a);r=e}else{if(!t$(e[0]))throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(s>1){if(r=e[0],t=e[1],!n$(t))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((n=r.length)<2)return null;if(t){for(o=new Array(n),i=0;i<n;i++)o[i]=t(r[i],i);r=o}if(s<3&&!r$(r))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(i=0;i<n;i++)(o=r[i])<0&&(r[i]=-o);for(o=r[0],i=1;i<n;i++)o=(a=r[i])<=o$&&o<=o$?i$(o,a):a$(o,a);return o},l$=s$,u$=Q_,c$=Z_,d$=e$;var f$=function(){var e,t,r,n,o,a,i,s=arguments.length;for(e=new Array(s),i=0;i<s;i++)e[i]=arguments[i];if(c$(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),0===o||0===a?0:o/l$(o,a)*a;r=e}else{if(!u$(e[0]))throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(s>1){if(r=e[0],t=e[1],!d$(t))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((n=r.length)<2)return null;if(t){for(o=new Array(n),i=0;i<n;i++)o[i]=t(r[i],i);r=o}if(s<3&&!c$(r))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(i=0;i<n;i++)(o=r[i])<0&&(r[i]=-o);for(o=r[0],i=1;i<n;i++){if(a=r[i],0===o||0===a)return 0;o=o/l$(o,a)*a}return o},p$=ug,h$=tf;var m$=function(e,t,r){(void 0!==r&&!h$(e[t],r)||void 0===r&&!(t in e))&&p$(e,t,r)};var v$=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},g$=vg,y$=jg;var b$=m$,w$=Ng,S$=iy,x$=Tg,_$=by,$$=$h,k$=oh,E$=p_,j$=kh,C$=Ef,O$=xf,P$=Xd,N$=Vh,R$=v$,T$=function(e){return g$(e,y$(e))};var A$=Ip,I$=m$,M$=pw,F$=function(e,t,r,n,o,a,i){var s=R$(e,r),l=R$(t,r),u=i.get(l);if(u)b$(e,r,u);else{var c=a?a(s,l,r+"",e,t,i):void 0,d=void 0===c;if(d){var f=k$(l),p=!f&&j$(l),h=!f&&!p&&N$(l);c=l,f||p||h?k$(s)?c=s:E$(s)?c=x$(s):p?(d=!1,c=w$(l,!0)):h?(d=!1,c=S$(l,!0)):c=[]:P$(l)||$$(l)?(c=s,$$(s)?c=T$(s):O$(s)&&!C$(s)||(c=_$(l))):d=!1}d&&(i.set(l,c),o(c,l,n,a,i),i.delete(l)),b$(e,r,c)}},z$=xf,D$=jg,L$=v$;var B$=function e(t,r,n,o,a){t!==r&&M$(r,(function(i,s){if(a||(a=new A$),z$(i))F$(t,r,s,n,e,o,a);else{var l=o?o(L$(t,s),i,s+"",t,r,a):void 0;void 0===l&&(l=i),I$(t,s,l)}}),D$)},V$=B$,U$=xf;var W$=function e(t,r,n,o,a,i){return U$(t)&&U$(r)&&(i.set(r,t),V$(t,r,void 0,e,i),i.delete(r)),t},q$=mx,K$=wx;var H$=function(e){return q$((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&K$(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t}))},G$=B$,Q$=H$((function(e,t,r,n){G$(e,t,r,n)})),J$=$b,Y$=W$,X$=Q$,Z$=mx((function(e){return e.push(void 0,Y$),J$(X$,void 0,e)})),ek=Sb;var tk=function(e){return(null==e?0:e.length)?ek(e,Infinity):[]},rk=wv,nk=c_,ok=m_,ak=mx((function(e){var t=rk(e,ok);return t.length&&t[0]===e[0]?nk(t):[]}));var ik=function(e,t,r,n){for(var o=r-1,a=e.length;++o<a;)if(n(e[o],t))return o;return-1},sk=wv,lk=Nx,uk=ik,ck=Mh,dk=Tg,fk=Array.prototype.splice;var pk=function(e,t,r,n){var o=n?uk:lk,a=-1,i=t.length,s=e;for(e===t&&(t=dk(t)),r&&(s=sk(e,ck(r)));++a<i;)for(var l=0,u=t[a],c=r?r(u):u;(l=o(s,c,l,n))>-1;)s!==e&&fk.call(s,l,1),fk.call(e,l,1);return e},hk=pk;var mk=function(e,t){return e&&e.length&&t&&t.length?hk(e,t):e},vk=ag,gk=bw,yk=iS,bk=oh;var wk=function(e,t){return(bk(e)?vk:gk)(e,yk(t))},Sk=Lp,xk=Tx,_k=Ax,$k=wv,kk=Mh,Ek=Vp;var jk=function(e,t,r,n){var o=-1,a=xk,i=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=$k(t,kk(r))),n?(a=_k,i=!1):t.length>=200&&(a=Ek,i=!1,t=new Sk(t));e:for(;++o<s;){var c=e[o],d=null==r?c:r(c);if(c=n||0!==c?c:0,i&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else a(t,d,n)||l.push(c)}return l},Ck=jk,Ok=p_,Pk=mx((function(e,t){return Ok(e)?Ck(e,t):[]}));const Nk=_b,Rk=tk,Tk=Xd,Ak=Kx,Ik=Pk;const Mk=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Fk=e=>Tk(e)||Array.isArray(e)?Object.keys(e):[],zk=e=>!Fk(e).length&&!1!==e&&!0!==e;var Dk={allUniqueKeys:e=>Ak(Rk(e.map(Fk))),deleteUndefinedProps:function(e){for(const t in e)Mk(e,t)&&zk(e[t])&&delete e[t];return e},getValues:(e,t)=>e.map((e=>e&&e[t])),has:Mk,isEmptySchema:zk,isSchema:e=>Tk(e)||!0===e||!1===e,keys:Fk,notUndefined:e=>void 0!==e,uniqWith:Gx,withoutArr:(e,...t)=>Ik.apply(null,[e].concat(Nk(t)))};const Lk=G_,Bk=wk,{allUniqueKeys:Vk,deleteUndefinedProps:Uk,getValues:Wk,keys:qk,notUndefined:Kk,uniqWith:Hk,withoutArr:Gk}=Dk;function Qk(e,t){return Vk(e).reduce((function(r,n){const o=Wk(e,n),a=Hk(o.filter(Kk),Lk);return r[n]=t(a,n),r}),{})}var Jk={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach((function(t){const n=e.filter((e=>e!==t)),o=qk(t.properties),a=qk(t.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){const n=qk(e.properties),i=n.filter((e=>a.some((t=>t.test(e)))));Gk(n,o,i).forEach((function(n){e.properties[n]=r.properties([e.properties[n],t.additionalProperties],n)}))}))})),e.forEach((function(t){const r=e.filter((e=>e!==t)),n=qk(t.patternProperties);!1===t.additionalProperties&&r.forEach((function(e){const t=qk(e.patternProperties);Gk(t,n).forEach((t=>delete e.patternProperties[t]))}))})));const o={additionalProperties:r.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:Qk(e.map((e=>e.patternProperties)),r.patternProperties),properties:Qk(e.map((e=>e.properties)),r.properties)};var a;return!1===o.additionalProperties&&Bk(a=o.properties,(function(e,t){!1===e&&delete a[t]})),Uk(o)}};const Yk=G_,Xk=wk,{allUniqueKeys:Zk,deleteUndefinedProps:eE,has:tE,isSchema:rE,notUndefined:nE,uniqWith:oE}=Dk;function aE(e,t,r){return Zk(r).reduce((function(r,n){const o=function(e,t){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;{const r=e.items[t];if(rE(r))return r;if(tE(e,"additionalItems"))return e.additionalItems}}}))}(e,n),a=oE(o.filter(nE),Yk);return r[n]=t(a,n),r}),[])}var iE={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map((e=>e.items)),o=n.filter(nE),a={};let i;var s;return o.every(rE)?a.items=r.items(n):a.items=aE(e,r.items,n),o.every(Array.isArray)?i=e.map((e=>e.additionalItems)):o.some(Array.isArray)&&(i=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),i&&(a.additionalItems=r.additionalItems(i)),!1===a.additionalItems&&Array.isArray(a.items)&&(s=a.items,Xk(s,(function(e,t){!1===e&&s.splice(t,1)}))),eE(a)}};const sE=GS,lE=G_,uE=f$,cE=Z$,dE=_b,fE=tk,pE=ak,hE=w_,mE=JS,vE=Xd,gE=mk,yE=kx,bE=Kx,wE=Gx,SE=Jk,xE=iE,_E=(e,t)=>-1!==e.indexOf(t),$E=e=>vE(e)||!0===e||!1===e,kE=e=>!1===e,EE=e=>!0===e,jE=(e,t,r)=>r(e),CE=e=>yE(bE(fE(e))),OE=e=>void 0!==e,PE=e=>bE(fE(e.map(ME))),NE=e=>e[0],RE=e=>Math.max.apply(Math,e),TE=e=>Math.min.apply(Math,e);function AE(e){let{allOf:t=[],...r}=e;return r=vE(e)?r:e,[r,...t.map(AE)]}function IE(e,t){return e.map((e=>e&&e[t]))}function ME(e){return vE(e)||Array.isArray(e)?Object.keys(e):[]}function FE(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?FE(n,dE(t.map((e=>r.map((t=>[t].concat(e))))))):FE(n,r.map((e=>e)))}function zE(e,t){let r;try{r=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(t){r=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+'". They are probably incompatible. Values: \n'+r)}function DE(e,t,r,n,o,a){if(e.length){const i=o.complexResolvers[t];if(!i||!i.resolver)throw new Error("No resolver found for "+t);const s=r.map((t=>e.reduce(((e,r)=>(void 0!==t[r]&&(e[r]=t[r]),e)),{}))),l=wE(s,lE),u=i.keywords.reduce(((e,t)=>({...e,[t]:(e,r=[])=>n(e,null,a.concat(t,r))})),{}),c=i.resolver(l,a.concat(t),u,o);return vE(c)||zE(l,a.concat(t)),c}}function LE(e){return{required:e}}const BE=["properties","patternProperties","definitions","dependencies"],VE=["anyOf","oneOf"],UE=["additionalProperties","additionalItems","contains","propertyNames","not","items"],WE={type(e){if(e.some(Array.isArray)){const t=e.map((function(e){return Array.isArray(e)?e:[e]})),r=pE.apply(null,t);if(1===r.length)return r[0];if(r.length>1)return bE(r)}},dependencies:(e,t,r)=>PE(e).reduce((function(t,n){const o=IE(e,n);let a=wE(o.filter(OE),mE);const i=a.filter(Array.isArray);if(i.length){if(i.length===a.length)t[n]=CE(a);else{const e=a.filter($E),o=i.map(LE);t[n]=r(e.concat(o),n)}return t}return a=wE(a,lE),t[n]=r(a,n),t}),{}),oneOf(e,t,r){const n=function(e,t){return e.map((function(e,r){try{return t(e,r)}catch(e){return}})).filter(OE)}(FE(sE(e)),r),o=wE(n,lE);if(o.length)return o},not:e=>({anyOf:e}),pattern:e=>e.map((e=>"(?="+e+")")).join(""),multipleOf(e){let t=e.slice(0),r=1;for(;t.some((e=>!Number.isInteger(e)));)t=t.map((e=>10*e)),r*=10;return uE(t)/r},enum(e){const t=hE.apply(null,e.concat(mE));if(t.length)return yE(t)}};WE.$id=NE,WE.$ref=NE,WE.$schema=NE,WE.additionalItems=jE,WE.additionalProperties=jE,WE.anyOf=WE.oneOf,WE.contains=jE,WE.default=NE,WE.definitions=WE.dependencies,WE.description=NE,WE.examples=e=>wE(dE(e),mE),WE.exclusiveMaximum=TE,WE.exclusiveMinimum=RE,WE.items=xE,WE.maximum=TE,WE.maxItems=TE,WE.maxLength=TE,WE.maxProperties=TE,WE.minimum=RE,WE.minItems=RE,WE.minLength=RE,WE.minProperties=RE,WE.properties=SE,WE.propertyNames=jE,WE.required=e=>CE(e),WE.title=NE,WE.uniqueItems=e=>e.some(EE);const qE={properties:SE,items:xE};function KE(e,t,r){t=cE(t,{ignoreAdditionalProperties:!1,resolvers:WE,complexResolvers:qE,deep:!0});const n=Object.entries(t.complexResolvers);const o=function e(r,o,a){r=sE(r.filter(OE)),a=a||[];const i=vE(o)?o:{};if(!r.length)return;if(r.some(kE))return!1;if(r.every(EE))return!0;r=r.filter(vE);const s=PE(r);if(t.deep&&_E(s,"allOf"))return KE({allOf:r},t);const l=n.map((([e,t])=>s.filter((e=>t.keywords.includes(e)))));return l.forEach((e=>gE(s,e))),s.forEach((function(n){const o=IE(r,n),s=wE(o.filter(OE),function(e){return function(t,r){return lE({[e]:t},{[e]:r})}}(n));if(1===s.length&&_E(VE,n))i[n]=s[0].map((t=>e([t],t)));else if(1!==s.length||_E(BE,n)||_E(UE,n)){const r=t.resolvers[n]||t.resolvers.defaultResolver;if(!r)throw new Error("No resolver found for key "+n+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const o=(t,r=[])=>e(t,null,a.concat(n,r));i[n]=r(s,a.concat(n),o,t),void 0===i[n]?zE(s,a.concat(n)):void 0===i[n]&&delete i[n]}else i[n]=s[0]})),n.reduce(((n,[o,i],s)=>({...n,...DE(l[s],o,r,e,t,a)})),i)}(fE(AE(e)));return o}KE.options={resolvers:WE};var HE=KE;function GE(e){let t;const r=Lv(e,"discriminator.propertyName",void 0);return cw(r)?t=r:void 0!==r&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function QE(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}var JE=Sb,YE=Wx,XE=p_,ZE=mx((function(e){return YE(JE(e,1,XE,!0))}));function ej(e){let{type:t}=e;return!t&&e.const?QE(e.const):!t&&e.enum?"string":t||!e.properties&&!e.additionalProperties?(Array.isArray(t)&&2===t.length&&t.includes("null")&&(t=t.find((e=>"null"!==e))),t):"object"}function tj(e,t){const r=Object.assign({},e);return Object.keys(t).reduce(((r,n)=>{const o=e?e[n]:{},a=t[n];return e&&n in e&&Zc(a)?r[n]=tj(o,a):e&&t&&("object"===ej(e)||"object"===ej(t))&&n===vd&&Array.isArray(o)&&Array.isArray(a)?r[n]=ZE(o,a):r[n]=a,r}),r)}function rj(e,t,r={},n){return ij(e,t,r,n)[0]}function nj(e){const t=e.reduce(((e,t)=>t.length>1?t.flatMap((t=>kS(e.length,(r=>[...e[r]].concat(t))))):(e.forEach((e=>e.push(t[0]))),e)),[[]]);return t}function oj(e,t,r,n,o){const{$ref:a}=t,i=ov(t,["$ref"]),s=Qb(a,r);return ij(e,Object.assign(Object.assign({},s),i),r,o,n)}function aj(e,t){let r=e;if(yd in r){const{$ref:e}=r,n=ov(r,["$ref"]),o=Qb(e,t);r=Object.assign(Object.assign({},o),n)}if(md in r){const e=KS(r[md],((e,r,n)=>{e[n]=aj(r,t)}),{});r=Object.assign(Object.assign({},r),{[md]:e})}return fd in r&&!Array.isArray(r.items)&&"boolean"!=typeof r.items&&(r=Object.assign(Object.assign({},r),{items:aj(r.items,t)})),r}function ij(e,t,r,n,o=!1){if(!Zc(t))return[{}];const a=function(e,t,r,n,o){if(yd in t)return oj(e,t,r,n,o);if(sd in t)return sj(e,t,r,n,o).flatMap((t=>ij(e,t,r,o,n)));if(nd in t&&Array.isArray(t.allOf))return nj(t.allOf.map((t=>ij(e,t,r,o,n)))).map((e=>Object.assign(Object.assign({},t),{allOf:e})));return[t]}(e,t,r,o,n);return a.flatMap((t=>{let a=t;if(dd in a)return function(e,t,r,n,o){const{if:a,then:i,else:s}=t,l=ov(t,["if","then","else"]),u=e.isValid(a,o||{},r);let c=[l],d=[];if(n)i&&"boolean"!=typeof i&&(d=d.concat(ij(e,i,r,o,n))),s&&"boolean"!=typeof s&&(d=d.concat(ij(e,s,r,o,n)));else{const t=u?i:s;t&&"boolean"!=typeof t&&(d=d.concat(ij(e,t,r,o,n)))}return d.length&&(c=d.map((e=>tj(l,e)))),c.flatMap((t=>ij(e,t,r,o,n)))}(e,a,r,o,n);if(nd in a){if(o){const{allOf:e}=a;return[...e,ov(a,["allOf"])]}try{a=HE(a,{deep:!1})}catch(e){console.warn("could not merge subschemas in allOf:\n",e);return ov(a,["allOf"])}}return rd in a&&!1!==a.additionalProperties?function(e,t,r,n){const o=Object.assign(Object.assign({},t),{properties:Object.assign({},t.properties)}),a=n&&Zc(n)?n:{};return Object.keys(a).forEach((t=>{if(t in o.properties)return;let n={};n="boolean"!=typeof o.additionalProperties?yd in o.additionalProperties?rj(e,{$ref:Lv(o.additionalProperties,[yd])},r,a):"type"in o.additionalProperties?Object.assign({},o.additionalProperties):od in o.additionalProperties||hd in o.additionalProperties?Object.assign({type:"object"},o.additionalProperties):{type:QE(Lv(a,[t]))}:{type:QE(Lv(a,[t]))},o.properties[t]=n,IS(o.properties,[t,td],!0)})),o}(e,a,r,n):a}))}function sj(e,t,r,n,o){const{dependencies:a}=t,i=ov(t,["dependencies"]),s=function(e,t,r,n,o){let a;const{oneOf:i,anyOf:s}=t,l=ov(t,["oneOf","anyOf"]);if(Array.isArray(i)?a=i:Array.isArray(s)&&(a=s),a){const i=void 0===o&&n?{}:o,s=GE(t);a=a.map((e=>aj(e,r)));const u=jS(e,i,a,r,s);if(n)return a.map((e=>tj(l,e)));t=tj(l,a[u])}return[t]}(e,i,r,n,o);return s.flatMap((t=>lj(e,a,t,r,n,o)))}function lj(e,t,r,n,o,a){let i=[r];for(const s in t){if(!o&&void 0===Lv(a,[s]))continue;if(r.properties&&!(s in r.properties))continue;const[l,u]=Gb(s,t);return Array.isArray(u)?i[0]=uj(r,u):Zc(u)&&(i=cj(e,r,n,s,u,o,a)),i.flatMap((t=>lj(e,l,t,n,o,a)))}return i}function uj(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return Object.assign(Object.assign({},e),{required:r})}function cj(e,t,r,n,o,a,i){return ij(e,o,r,i,a).flatMap((o=>{const{oneOf:s}=o,l=ov(o,["oneOf"]);if(t=tj(t,l),void 0===s)return t;const u=s.map((t=>"boolean"!=typeof t&&yd in t?oj(e,t,r,a,i):[t]));return nj(u).flatMap((o=>function(e,t,r,n,o,a,i){const s=o.filter((t=>{if("boolean"==typeof t||!t||!t.properties)return!1;const{[n]:o}=t.properties;if(o){const t={type:"object",properties:{[n]:o}};return e.isValid(t,i,r)||a}return!1}));if(!a&&1!==s.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t];return s.flatMap((o=>{const s=o,[l]=Gb(n,s.properties),u=Object.assign(Object.assign({},s),{properties:l});return ij(e,u,r,i,a).map((e=>tj(t,e)))}))}(e,t,r,n,o,a,i)))}))}const dj={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function fj(e,t,r,n={}){let o=0;return r&&(xf(r.properties)?o+=oS(r.properties,((r,o,a)=>{const i=Lv(n,a);if("boolean"==typeof o)return r;if(iw(o,yd)){const n=rj(e,o,t,i);return r+fj(e,t,n,i||{})}if((iw(o,hd)||iw(o,od))&&i){const n=iw(o,hd)?hd:od,a=GE(o);return r+pj(e,t,i,Lv(o,n),-1,a)}if("object"===o.type)return r+fj(e,t,o,i||{});if(o.type===QE(i)){let e=r+1;return o.default?e+=i===o.default?1:-1:o.const&&(e+=i===o.const?1:-1),e}return r}),0):cw(r.type)&&r.type===QE(n)&&(o+=1)),o}function pj(e,t,r,n,o=-1,a){const i=n.map((e=>aj(e,t))),s=i.reduce(((n,o,i)=>(1===jS(e,r,[dj,o],t,a)&&n.push(i),n)),[]);if(1===s.length)return s[0];s.length||kS(i.length,(e=>s.push(e)));const l=new Set,{bestIndex:u}=s.reduce(((n,o)=>{const{bestScore:a}=n,s=i[o],u=fj(e,t,s,r);return l.add(u),u>a?{bestIndex:o,bestScore:u}:n}),{bestIndex:o,bestScore:0});return 1===l.size&&o>=0?o:u}function hj(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>Zc(e)))}function mj(e,t,r=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],o=t.map(((e,t)=>n[t]?mj(n[t],e,r):e));return r&&o.length<n.length&&o.push(...n.slice(o.length)),o}if(Zc(t)){const n=Object.assign({},e);return Object.keys(t).reduce(((n,o)=>(n[o]=mj(e?Lv(e,o):{},Lv(t,o),r),n)),n)}return t}function vj(e,t,r=!1){return Object.keys(t).reduce(((n,o)=>{const a=e?e[o]:{},i=t[o];if(e&&o in e&&Zc(i))n[o]=vj(a,i,r);else if(r&&Array.isArray(a)&&Array.isArray(i)){let e=i;"preventDuplicates"===r&&(e=i.reduce(((e,t)=>(a.includes(t)||e.push(t),e)),[])),n[o]=a.concat(e)}else n[o]=i;return n}),Object.assign({},e))}function gj(e,t,r={}){const n=rj(e,t,r,void 0),o=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(o)&&o.every((e=>"boolean"!=typeof e&&function(e){return Array.isArray(e.enum)&&1===e.enum.length||ad in e}(e)))}function yj(e,t,r){return!(!t.uniqueItems||!t.items||"boolean"==typeof t.items)&&gj(e,t.items,r)}var bj;function wj(e,t=bj.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const t=e.items[r];if("boolean"!=typeof t)return t}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return t!==bj.Ignore&&Zc(e.additionalItems)?e.additionalItems:{}}function Sj(e,t,r,n,o,a=[],i={}){const{emptyObjectFields:s="populateAllDefaults"}=i;if(n)e[t]=r;else if("skipDefaults"!==s)if(Zc(r)){const n=void 0===o?a.includes(t):o;Jv(r)&&!a.includes(t)||!n&&"populateRequiredDefaults"===s||(e[t]=r)}else void 0===r||"populateAllDefaults"!==s&&!a.includes(t)||(e[t]=r)}function xj(e,t,{parentDefaults:r,rawFormData:n,rootSchema:o={},includeUndefinedValues:a=!1,_recurseList:i=[],experimental_defaultFormStateBehavior:s,required:l}={}){var u,c;const d=Zc(n)?n:{},f=Zc(t)?t:{};let p=r,h=null,m=i;if(Zc(p)&&Zc(f.default))p=vj(p,f.default);else if(id in f)p=f.default;else if(yd in f){const e=f[yd];i.includes(e)||(m=i.concat(e),h=Qb(e,o))}else if(sd in f){h=sj(e,f,o,!1,d)[0]}else if(hj(f))p=f.items.map(((t,n)=>xj(e,t,{rootSchema:o,includeUndefinedValues:a,_recurseList:i,experimental_defaultFormStateBehavior:s,parentDefaults:Array.isArray(r)?r[n]:void 0,rawFormData:d,required:l})));else if(hd in f){const{oneOf:t}=f,r=ov(f,["oneOf"]);if(0===t.length)return;const n=GE(f);h=t[pj(e,o,Jv(d)?void 0:d,t,0,n)],h=tj(r,h)}else if(od in f){const{anyOf:t}=f,r=ov(f,["anyOf"]);if(0===t.length)return;const n=GE(f);h=t[pj(e,o,Jv(d)?void 0:d,t,0,n)],h=tj(r,h)}if(h)return xj(e,h,{rootSchema:o,includeUndefinedValues:a,_recurseList:m,experimental_defaultFormStateBehavior:s,parentDefaults:p,rawFormData:d,required:l});switch(void 0===p&&(p=f.default),ej(f)){case"object":{const t=Object.keys(f.properties||{}).reduce(((t,r)=>{var n;return Sj(t,r,xj(e,Lv(f,[md,r]),{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,includeUndefinedValues:!0===a,parentDefaults:Lv(p,[r]),rawFormData:Lv(d,[r]),required:null===(n=f.required)||void 0===n?void 0:n.includes(r)}),a,l,f.required,s),t}),{});if(f.additionalProperties){const r=Zc(f.additionalProperties)?f.additionalProperties:{},n=new Set;let u;Zc(p)&&Object.keys(p).filter((e=>!f.properties||!f.properties[e])).forEach((e=>n.add(e))),Zc(d)&&(u=[],Object.keys(d).filter((e=>!f.properties||!f.properties[e])).forEach((e=>{n.add(e),u.push(e)}))),n.forEach((n=>{var c;const h=xj(e,r,{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,includeUndefinedValues:!0===a,parentDefaults:Lv(p,[n]),rawFormData:Lv(d,[n]),required:null===(c=f.required)||void 0===c?void 0:c.includes(n)});Sj(t,n,h,a,l,u)}))}return t}case"array":{const t="never"===(null===(u=null==s?void 0:s.arrayMinItems)||void 0===u?void 0:u.populate),r="requiredOnly"===(null===(c=null==s?void 0:s.arrayMinItems)||void 0===c?void 0:c.populate);if(Array.isArray(p)&&(p=p.map(((t,r)=>{const n=wj(f,bj.Fallback,r);return xj(e,n,{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,parentDefaults:t,required:l})}))),Array.isArray(n)){const r=wj(f);p=t?n:n.map(((t,n)=>xj(e,r,{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,rawFormData:t,parentDefaults:Lv(p,[n]),required:l})))}if(t)return null!=p?p:[];if(r&&!l)return p||void 0;const a=Array.isArray(p)?p.length:0;if(!f.minItems||yj(e,f,o)||f.minItems<=a)return p||[];const d=p||[],h=wj(f,bj.Invert),m=h.default,v=new Array(f.minItems-a).fill(xj(e,h,{parentDefaults:m,rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,required:l}));return d.concat(v)}}return p}function _j(e,t,r,n,o=!1,a){if(!Zc(t))throw new Error("Invalid schema: "+t);const i=xj(e,rj(e,t,n,r),{rootSchema:n,includeUndefinedValues:o,experimental_defaultFormStateBehavior:a,rawFormData:r});if(null==r||"number"==typeof r&&isNaN(r))return i;const{mergeExtraDefaults:s}=(null==a?void 0:a.arrayMinItems)||{};return Zc(r)||Array.isArray(r)?mj(i,r,s):r}function $j(e={}){return"widget"in _d(e)&&"hidden"!==_d(e).widget}function kj(e,t,r={},n){if("files"===r[Sd])return!0;if(t.items){const r=rj(e,t.items,n);return"string"===r.type&&"data-url"===r.format}return!1}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(bj||(bj={}));const Ej=Symbol("no Value");function jj(e,t,r,n,o={}){let a;if(iw(r,md)){const i={};if(iw(n,md)){const e=Lv(n,md,{});Object.keys(e).forEach((e=>{iw(o,e)&&(i[e]=void 0)}))}const s=Object.keys(Lv(r,md,{})),l={};s.forEach((a=>{const s=Lv(o,a);let u=Lv(n,[md,a],{}),c=Lv(r,[md,a],{});iw(u,yd)&&(u=rj(e,u,t,s)),iw(c,yd)&&(c=rj(e,c,t,s));const d=Lv(u,"type"),f=Lv(c,"type");if(!d||d===f)if(iw(i,a)&&delete i[a],"object"===f||"array"===f&&Array.isArray(s)){const r=jj(e,t,c,u,s);void 0===r&&"array"!==f||(l[a]=r)}else{const e=Lv(c,"default",Ej),t=Lv(u,"default",Ej);e!==Ej&&e!==s&&(t===s?i[a]=e:!0===Lv(c,"readOnly")&&(i[a]=void 0));const r=Lv(c,"const",Ej),n=Lv(u,"const",Ej);r!==Ej&&r!==s&&(i[a]=n===s?r:void 0)}})),a=Object.assign(Object.assign(Object.assign({},o),i),l)}else if("array"===Lv(n,"type")&&"array"===Lv(r,"type")&&Array.isArray(o)){let i=Lv(n,"items"),s=Lv(r,"items");if("object"!=typeof i||"object"!=typeof s||Array.isArray(i)||Array.isArray(s))"boolean"==typeof i&&"boolean"==typeof s&&i===s&&(a=o);else{iw(i,yd)&&(i=rj(e,i,t,o)),iw(s,yd)&&(s=rj(e,s,t,o));const n=Lv(i,"type"),l=Lv(s,"type");if(!n||n===l){const n=Lv(r,"maxItems",-1);a="object"===l?o.reduce(((r,o)=>{const a=jj(e,t,s,i,o);return void 0!==a&&(n<0||r.length<n)&&r.push(a),r}),[]):n>0&&o.length>n?o.slice(0,n):o}}}return a}function Cj(e,t,r,n,o,a,i,s=[]){if(yd in t||sd in t||nd in t){const l=rj(e,t,a,i);if(-1===s.findIndex((e=>JS(e,l))))return Cj(e,l,r,n,o,a,i,s.concat(l))}if(fd in t&&!Lv(t,[fd,yd]))return Cj(e,Lv(t,fd),r,n,o,a,i,s);const l={$id:o||r};if("object"===ej(t)&&md in t)for(const o in t.properties){const u=Lv(t,[md,o]),c=l[cd]+n+o;l[o]=Cj(e,Zc(u)?u:{},r,n,c,a,Lv(i,[o]),s)}return l}function Oj(e,t,r,n,o,a="root",i="_"){return Cj(e,t,a,i,r,n,o)}function Pj(e,t,r,n,o,a=[]){if(yd in t||sd in t||nd in t){const i=rj(e,t,n,o);if(-1===a.findIndex((e=>JS(e,i))))return Pj(e,i,r,n,o,a.concat(i))}let i={[pd]:r.replace(/^\./,"")};if(hd in t||od in t){const s=hd in t?t.oneOf:t.anyOf,l=GE(t),u=s[pj(e,n,o,s,0,l)];i=Object.assign(Object.assign({},i),Pj(e,u,r,n,o,a))}if(rd in t&&!1!==t[rd]&&IS(i,bd,!0),fd in t&&Array.isArray(o))o.forEach(((o,s)=>{i[s]=Pj(e,t.items,`${r}.${s}`,n,o,a)}));else if(md in t)for(const s in t.properties){const l=Lv(t,[md,s]);i[s]=Pj(e,l,`${r}.${s}`,n,Lv(o,[s]),a)}return i}function Nj(e,t,r="",n,o){return Pj(e,t,r,n,o)}class Rj{constructor(e,t,r){this.rootSchema=t,this.validator=e,this.experimental_defaultFormStateBehavior=r}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,t,r={}){return!(!e||!t)&&(this.validator!==e||!nv(this.rootSchema,t)||!nv(this.experimental_defaultFormStateBehavior,r))}getDefaultFormState(e,t,r=!1){return _j(this.validator,e,t,this.rootSchema,r,this.experimental_defaultFormStateBehavior)}getDisplayLabel(e,t,r){return function(e,t,r={},n,o){const a=_d(r,o),{label:i=!0}=a;let s=!!i;const l=ej(t);return"array"===l&&(s=yj(e,t,n)||kj(e,t,r,n)||$j(r)),"object"===l&&(s=!1),"boolean"!==l||r[Sd]||(s=!1),r["ui:field"]&&(s=!1),s}(this.validator,e,t,this.rootSchema,r)}getClosestMatchingOption(e,t,r,n){return pj(this.validator,this.rootSchema,e,t,r,n)}getFirstMatchingOption(e,t,r){return jS(this.validator,e,t,this.rootSchema,r)}getMatchingOption(e,t,r){return ES(this.validator,e,t,this.rootSchema,r)}isFilesArray(e,t){return kj(this.validator,e,t,this.rootSchema)}isMultiSelect(e){return yj(this.validator,e,this.rootSchema)}isSelect(e){return gj(this.validator,e,this.rootSchema)}mergeValidationData(e,t){return function(e,t,r){if(!r)return t;const{errors:n,errorSchema:o}=t;let a=e.toErrorList(r),i=r;return Jv(o)||(i=vj(o,r,!0),a=[...n].concat(a)),{errorSchema:i,errors:a}}(this.validator,e,t)}retrieveSchema(e,t){return rj(this.validator,e,this.rootSchema,t)}sanitizeDataForNewSchema(e,t,r){return jj(this.validator,this.rootSchema,e,t,r)}toIdSchema(e,t,r,n="root",o="_"){return Oj(this.validator,e,t,this.rootSchema,r,n,o)}toPathSchema(e,t,r){return Nj(this.validator,e,t,this.rootSchema,r)}}function Tj(e,t){return function(e,t){let r=e;if(Array.isArray(t)){const e=r.split(/(%\d)/);t.forEach(((t,r)=>{const n=e.findIndex((e=>e===`%${r+1}`));n>=0&&(e[n]=t)})),r=e.join("")}return r}(e,t)}function Aj(e,t=[],r){if(Array.isArray(e))return e.map((e=>Aj(e,t))).filter((e=>e));const n=""===e||null===e?-1:Number(e),o=t[n];return o?o.value:r}function Ij(e,t,r=[]){const n=Aj(e,r);return Array.isArray(t)?t.filter((e=>!JS(e,n))):JS(n,t)?void 0:t}function Mj(e,t){return Array.isArray(t)?t.some((t=>JS(t,e))):JS(t,e)}function Fj(e,t=[],r=!1){const n=t.map(((t,r)=>Mj(t.value,e)?String(r):void 0)).filter((e=>void 0!==e));return r?n:n[0]}var zj={},Dj={get exports(){return zj},set exports(e){zj=e}};function Lj(e,t,r=[]){const n=Aj(e,r);if(!zj.isNil(n)){const e=r.findIndex((e=>n===e.value)),o=r.map((({value:e})=>e));return t.slice(0,e).concat(n,t.slice(e)).sort(((e,t)=>Number(o.indexOf(e)>o.indexOf(t))))}return t}
35
+ ***************************************************************************** */function ov(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}var av=Ld,iv=Ud;var sv=function(e){return"symbol"==typeof e||iv(e)&&"[object Symbol]"==av(e)},lv=oh,uv=sv,cv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dv=/^\w*$/;var fv=function(e,t){if(lv(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!uv(e))||(dv.test(e)||!cv.test(e)||null!=t&&e in Object(t))},pv=$p;function hv(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(hv.Cache||pv),r}hv.Cache=pv;var mv=hv;var vv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gv=/\\(\\)?/g,yv=function(e){var t=mv(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(vv,(function(e,r,n,o){t.push(n?o.replace(gv,"$1"):r||e)})),t})),bv=yv;var wv=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},Sv=wv,xv=oh,_v=sv,$v=Od?Od.prototype:void 0,kv=$v?$v.toString:void 0;var Ev=function e(t){if("string"==typeof t)return t;if(xv(t))return Sv(t,e)+"";if(_v(t))return kv?kv.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},jv=Ev;var Cv=function(e){return null==e?"":jv(e)},Ov=oh,Pv=fv,Nv=bv,Rv=Cv;var Tv=function(e,t){return Ov(e)?e:Pv(e,t)?[e]:Nv(Rv(e))},Av=sv;var Iv=function(e){if("string"==typeof e||Av(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Mv=Tv,Fv=Iv;var zv=function(e,t){for(var r=0,n=(t=Mv(t,e)).length;null!=e&&r<n;)e=e[Fv(t[r++])];return r&&r==n?e:void 0},Dv=zv;var Lv=function(e,t,r){var n=null==e?void 0:Dv(e,t);return void 0===n?r:n},Bv=nm,Vv=Dm,Uv=$h,Wv=oh,qv=im,Kv=kh,Hv=Xh,Gv=Vh,Qv=Object.prototype.hasOwnProperty;var Jv=function(e){if(null==e)return!0;if(qv(e)&&(Wv(e)||"string"==typeof e||"function"==typeof e.splice||Kv(e)||Gv(e)||Uv(e)))return!e.length;var t=Vv(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Hv(e))return!Bv(e).length;for(var r in e)if(Qv.call(e,r))return!1;return!0},Yv={},Xv=/~/,Zv=/~[01]/g;function eg(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function tg(e){return Xv.test(e)?e.replace(Zv,eg):e}function rg(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const t of e)if("string"!=typeof t&&"number"!=typeof t)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function ng(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var r=(t=rg(t)).length;if(1===r)return e;for(var n=1;n<r;){if(e=e[tg(t[n++])],r===n)return e;if("object"!=typeof e||null===e)return}}function og(e,t,r){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(t=rg(t)).length)throw new Error("Invalid JSON pointer for set.");return function(e,t,r){for(var n,o,a=1,i=t.length;a<i;){if("constructor"===t[a]||"prototype"===t[a]||"__proto__"===t[a])return e;if(n=tg(t[a++]),o=i>a,void 0===e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),o&&(""!==t[a]&&t[a]<1/0||"-"===t[a]?e[n]=[]:e[n]={})),!o)break;e=e[n]}var s=e[n];return void 0===r?delete e[n]:e[n]=r,s}(e,t,r)}Yv.get=ng,Yv.set=og,Yv.compile=function(e){var t=rg(e);return{get:function(e){return ng(e,t)},set:function(e,r){return og(e,t,r)}}};var ag=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e},ig=Wf,sg=function(){try{var e=ig(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),lg=sg;var ug=function(e,t,r){"__proto__"==t&&lg?lg(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},cg=ug,dg=tf,fg=Object.prototype.hasOwnProperty;var pg=function(e,t,r){var n=e[t];fg.call(e,t)&&dg(n,r)&&(void 0!==r||t in e)||cg(e,t,r)},hg=pg,mg=ug;var vg=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),o?mg(r,s,l):hg(r,s,l)}return r},gg=vg,yg=cm;var bg=function(e,t){return e&&gg(t,yg(t),e)};var wg=xf,Sg=Xh,xg=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},_g=Object.prototype.hasOwnProperty;var $g=Jh,kg=function(e){if(!wg(e))return xg(e);var t=Sg(e),r=[];for(var n in e)("constructor"!=n||!t&&_g.call(e,n))&&r.push(n);return r},Eg=im;var jg=function(e){return Eg(e)?$g(e,!0):kg(e)},Cg=vg,Og=jg;var Pg=function(e,t){return e&&Cg(t,Og(t),e)},Ng={},Rg={get exports(){return Ng},set exports(e){Ng=e}};!function(e,t){var r=Cd,n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,a=o&&o.exports===n?r.Buffer:void 0,i=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=i?i(r):new e.constructor(r);return e.copy(n),n}}(Rg,Ng);var Tg=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},Ag=vg,Ig=hh;var Mg=function(e,t){return Ag(e,Ig(e),t)},Fg=nh,zg=Vd,Dg=hh,Lg=uh,Bg=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Fg(t,Dg(e)),e=zg(e);return t}:Lg,Vg=vg,Ug=Bg;var Wg=function(e,t){return Vg(e,Ug(e),t)},qg=sh,Kg=Bg,Hg=jg;var Gg=function(e){return qg(e,Hg,Kg)},Qg=Object.prototype.hasOwnProperty;var Jg=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Qg.call(e,"index")&&(r.index=e.index,r.input=e.input),r},Yg=Hp;var Xg=function(e){var t=new e.constructor(e.byteLength);return new Yg(t).set(new Yg(e)),t},Zg=Xg;var ey=function(e,t){var r=t?Zg(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)},ty=/\w*$/;var ry=function(e){var t=new e.constructor(e.source,ty.exec(e));return t.lastIndex=e.lastIndex,t},ny=Od?Od.prototype:void 0,oy=ny?ny.valueOf:void 0;var ay=Xg;var iy=function(e,t){var r=t?ay(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},sy=Xg,ly=ey,uy=ry,cy=function(e){return oy?Object(oy.call(e)):{}},dy=iy;var fy=function(e,t,r){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return sy(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return ly(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return dy(e,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return uy(e);case"[object Symbol]":return cy(e)}},py=xf,hy=Object.create,my=function(){function e(){}return function(t){if(!py(t))return{};if(hy)return hy(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),vy=my,gy=Vd,yy=Xh;var by=function(e){return"function"!=typeof e.constructor||yy(e)?{}:vy(gy(e))},wy=Dm,Sy=Ud;var xy=function(e){return Sy(e)&&"[object Map]"==wy(e)},_y=Mh,$y=Fh&&Fh.isMap,ky=$y?_y($y):xy,Ey=Dm,jy=Ud;var Cy=function(e){return jy(e)&&"[object Set]"==Ey(e)},Oy=Mh,Py=Fh&&Fh.isSet,Ny=Py?Oy(Py):Cy,Ry=Ip,Ty=ag,Ay=pg,Iy=bg,My=Pg,Fy=Ng,zy=Tg,Dy=Mg,Ly=Wg,By=hm,Vy=Gg,Uy=Dm,Wy=Jg,qy=fy,Ky=by,Hy=oh,Gy=kh,Qy=ky,Jy=xf,Yy=Ny,Xy=cm,Zy=jg,eb="[object Arguments]",tb="[object Function]",rb="[object Object]",nb={};nb[eb]=nb["[object Array]"]=nb["[object ArrayBuffer]"]=nb["[object DataView]"]=nb["[object Boolean]"]=nb["[object Date]"]=nb["[object Float32Array]"]=nb["[object Float64Array]"]=nb["[object Int8Array]"]=nb["[object Int16Array]"]=nb["[object Int32Array]"]=nb["[object Map]"]=nb["[object Number]"]=nb[rb]=nb["[object RegExp]"]=nb["[object Set]"]=nb["[object String]"]=nb["[object Symbol]"]=nb["[object Uint8Array]"]=nb["[object Uint8ClampedArray]"]=nb["[object Uint16Array]"]=nb["[object Uint32Array]"]=!0,nb["[object Error]"]=nb[tb]=nb["[object WeakMap]"]=!1;var ob=function e(t,r,n,o,a,i){var s,l=1&r,u=2&r,c=4&r;if(n&&(s=a?n(t,o,a,i):n(t)),void 0!==s)return s;if(!Jy(t))return t;var d=Hy(t);if(d){if(s=Wy(t),!l)return zy(t,s)}else{var f=Uy(t),p=f==tb||"[object GeneratorFunction]"==f;if(Gy(t))return Fy(t,l);if(f==rb||f==eb||p&&!a){if(s=u||p?{}:Ky(t),!l)return u?Ly(t,My(s,t)):Dy(t,Iy(s,t))}else{if(!nb[f])return a?t:{};s=qy(t,f,l)}}i||(i=new Ry);var h=i.get(t);if(h)return h;i.set(t,s),Yy(t)?t.forEach((function(o){s.add(e(o,r,n,o,t,i))})):Qy(t)&&t.forEach((function(o,a){s.set(a,e(o,r,n,a,t,i))}));var m=d?void 0:(c?u?Vy:By:u?Zy:Xy)(t);return Ty(m||t,(function(o,a){m&&(o=t[a=o]),Ay(s,a,e(o,r,n,a,t,i))})),s};var ab=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var ib=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a},sb=zv,lb=ib;var ub=Tv,cb=ab,db=function(e,t){return t.length<2?e:sb(e,lb(t,0,-1))},fb=Iv;var pb=function(e,t){return t=ub(t,e),null==(e=db(e,t))||delete e[fb(cb(t))]},hb=Xd;var mb=function(e){return hb(e)?void 0:e},vb=$h,gb=oh,yb=Od?Od.isConcatSpreadable:void 0;var bb=nh,wb=function(e){return gb(e)||vb(e)||!!(yb&&e&&e[yb])};var Sb=function e(t,r,n,o,a){var i=-1,s=t.length;for(n||(n=wb),a||(a=[]);++i<s;){var l=t[i];r>0&&n(l)?r>1?e(l,r-1,n,o,a):bb(a,l):o||(a[a.length]=l)}return a},xb=Sb;var _b=function(e){return(null==e?0:e.length)?xb(e,1):[]};var $b=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},kb=$b,Eb=Math.max;var jb=function(e,t,r){return t=Eb(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Eb(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),kb(e,this,s)}};var Cb=function(e){return e},Ob=function(e){return function(){return e}},Pb=sg,Nb=Pb?function(e,t){return Pb(e,"toString",{configurable:!0,enumerable:!1,value:Ob(t),writable:!0})}:Cb,Rb=Date.now;var Tb=function(e){var t=0,r=0;return function(){var n=Rb(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Ab=Tb(Nb),Ib=_b,Mb=jb,Fb=Ab;var zb=function(e){return Fb(Mb(e,void 0,Ib),e+"")},Db=wv,Lb=ob,Bb=pb,Vb=Tv,Ub=vg,Wb=mb,qb=Gg,Kb=zb((function(e,t){var r={};if(null==e)return r;var n=!1;t=Db(t,(function(t){return t=Vb(t,e),n||(n=t.length>1),t})),Ub(e,qb(e),r),n&&(r=Lb(r,7,Wb));for(var o=t.length;o--;)Bb(r,t[o]);return r})),Hb=Kb;function Gb(e,t){const r=t[e];return[Hb(t,[e]),r]}function Qb(e,t={}){let r=e||"";if(!r.startsWith("#"))throw new Error(`Could not find a definition for ${e}.`);r=decodeURIComponent(r.substring(1));const n=Yv.get(t,r);if(void 0===n)throw new Error(`Could not find a definition for ${e}.`);if(n[yd]){const[e,r]=Gb(yd,n),o=Qb(r,t);return Object.keys(e).length>0?Object.assign(Object.assign({},e),o):o}return n}var Jb=Object.prototype.hasOwnProperty;var Yb=Tv,Xb=$h,Zb=oh,ew=Oh,tw=Ph,rw=Iv;var nw=function(e,t,r){for(var n=-1,o=(t=Yb(t,e)).length,a=!1;++n<o;){var i=rw(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&tw(o)&&ew(i,o)&&(Zb(e)||Xb(e))},ow=function(e,t){return null!=e&&Jb.call(e,t)},aw=nw;var iw=function(e,t){return null!=e&&aw(e,t,ow)},sw=Ld,lw=Ud;var uw=function(e){return"number"==typeof e||lw(e)&&"[object Number]"==sw(e)},cw=Ld,dw=oh,fw=Ud;var pw=function(e){return"string"==typeof e||!dw(e)&&fw(e)&&"[object String]"==cw(e)};var hw=function(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r};var mw=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}},vw=mw(),gw=vw,yw=cm;var bw=function(e,t){return e&&gw(e,t,yw)},ww=im;var Sw=function(e,t){return function(r,n){if(null==r)return r;if(!ww(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++a<o)&&!1!==n(i[a],a,i););return r}},xw=Sw(bw),_w=Ip,$w=ev;var kw=function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var l=(s=r[o])[0],u=e[l],c=s[1];if(i&&s[2]){if(void 0===u&&!(l in e))return!1}else{var d=new _w;if(n)var f=n(u,c,l,e,t,d);if(!(void 0===f?$w(c,u,3,n,d):f))return!1}}return!0},Ew=xf;var jw=function(e){return e==e&&!Ew(e)},Cw=jw,Ow=cm;var Pw=function(e){for(var t=Ow(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Cw(o)]}return t};var Nw=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},Rw=kw,Tw=Pw,Aw=Nw;var Iw=function(e,t){return null!=e&&t in Object(e)},Mw=nw;var Fw=function(e,t){return null!=e&&Mw(e,t,Iw)},zw=ev,Dw=Lv,Lw=Fw,Bw=fv,Vw=jw,Uw=Nw,Ww=Iv;var qw=zv;var Kw=function(e){return function(t){return null==t?void 0:t[e]}},Hw=function(e){return function(t){return qw(t,e)}},Gw=fv,Qw=Iv;var Jw=function(e){var t=Tw(e);return 1==t.length&&t[0][2]?Aw(t[0][0],t[0][1]):function(r){return r===e||Rw(r,e,t)}},Yw=function(e,t){return Bw(e)&&Vw(t)?Uw(Ww(e),t):function(r){var n=Dw(r,e);return void 0===n&&n===t?Lw(r,e):zw(t,n,3)}},Xw=Cb,Zw=oh,eS=function(e){return Gw(e)?Kw(Qw(e)):Hw(e)};var tS=function(e){return"function"==typeof e?e:null==e?Xw:"object"==typeof e?Zw(e)?Yw(e[0],e[1]):Jw(e):eS(e)};var rS=hw,nS=xw,oS=tS,aS=function(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r},iS=oh;var sS=function(e,t,r){var n=iS(e)?rS:aS,o=arguments.length<3;return n(e,oS(t),r,o,nS)},lS=Cb;var uS=function(e){return"function"==typeof e?e:lS},cS=/\s/;var dS=function(e){for(var t=e.length;t--&&cS.test(e.charAt(t)););return t},fS=/^\s+/;var pS=function(e){return e?e.slice(0,dS(e)+1).replace(fS,""):e},hS=xf,mS=sv,vS=/^[-+]0x[0-9a-f]+$/i,gS=/^0b[01]+$/i,yS=/^0o[0-7]+$/i,bS=parseInt;var wS=function(e){if("number"==typeof e)return e;if(mS(e))return NaN;if(hS(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=hS(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=pS(e);var r=gS.test(e);return r||yS.test(e)?bS(e.slice(2),r?2:8):vS.test(e)?NaN:+e},SS=1/0;var xS=function(e){return e?(e=wS(e))===SS||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var _S=mh,$S=uS,kS=function(e){var t=xS(e),r=t%1;return t==t?r?t-r:t:0},ES=4294967295,jS=Math.min;var CS=function(e,t){if((e=kS(e))<1||e>9007199254740991)return[];var r=ES,n=jS(e,ES);t=$S(t),e-=ES;for(var o=_S(n,t);++r<e;)t(r);return o};function OS(e,t,r){var n;if(e&&r){const o=Lv(e,r);if(void 0===o)return;for(let e=0;e<t.length;e++){const a=t[e],i=Lv(a,[md,r],{});if("object"!==i.type&&"array"!==i.type){if(i.const===o)return e;if(null===(n=i.enum)||void 0===n?void 0:n.includes(o))return e}}}}function PS(e,t,r,n,o){if(void 0===t)return 0;const a=OS(t,r,o);if(uw(a))return a;for(let a=0;a<r.length;a++){const i=r[a];if(o&&iw(i,[md,o])){const r=Lv(t,o),s=Lv(i,[md,o],{});if(e.isValid(s,r,n))return a}else if(i[md]){const r={anyOf:Object.keys(i[md]).map((e=>({required:[e]})))};let o;if(i.anyOf){const e=ov(i,[]);e.allOf?e.allOf=e.allOf.slice():e.allOf=[],e.allOf.push(r),o=e}else o=Object.assign({},i,r);if(delete o.required,e.isValid(o,t,n))return a}else if(e.isValid(i,t,n))return a}return 0}function NS(e,t,r,n,o){return PS(e,t,r,n,o)}var RS=ev;var TS=function(e,t){return RS(e,t)},AS=pg,IS=Tv,MS=Oh,FS=xf,zS=Iv;var DS=function(e,t,r,n){if(!FS(e))return e;for(var o=-1,a=(t=IS(t,e)).length,i=a-1,s=e;null!=s&&++o<a;){var l=zS(t[o]),u=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=i){var c=s[l];void 0===(u=n?n(c,l,s):void 0)&&(u=FS(c)?c:MS(t[o+1])?[]:{})}AS(s,l,u),s=s[l]}return e},LS=DS;var BS=function(e,t,r){return null==e?e:LS(e,t,r)},VS=ag,US=my,WS=bw,qS=tS,KS=Vd,HS=oh,GS=kh,QS=Ef,JS=xf,YS=Vh;var XS=function(e,t,r){var n=HS(e),o=n||GS(e)||YS(e);if(t=qS(t),null==r){var a=e&&e.constructor;r=o?n?new a:[]:JS(e)&&QS(a)?US(KS(e)):{}}return(o?VS:WS)(e,(function(e,n,o){return t(r,e,n,o)})),r},ZS=ob;var ex=function(e){return ZS(e,5)},tx=xw,rx=im;var nx=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e},ox=sv;var ax=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,a=ox(e),i=void 0!==t,s=null===t,l=t==t,u=ox(t);if(!s&&!u&&!a&&e>t||a&&i&&l&&!s&&!u||n&&i&&l||!r&&l||!o)return 1;if(!n&&!a&&!u&&e<t||u&&r&&o&&!n&&!a||s&&r&&o||!i&&o||!l)return-1}return 0};var ix=function(e,t,r){for(var n=-1,o=e.criteria,a=t.criteria,i=o.length,s=r.length;++n<i;){var l=ax(o[n],a[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index},sx=wv,lx=zv,ux=tS,cx=function(e,t){var r=-1,n=rx(e)?Array(e.length):[];return tx(e,(function(e,o,a){n[++r]=t(e,o,a)})),n},dx=nx,fx=Mh,px=ix,hx=Cb,mx=oh;var vx=Cb,gx=jb,yx=Ab;var bx=function(e,t){return yx(gx(e,t,vx),e+"")},wx=tf,Sx=im,xx=Oh,_x=xf;var $x=function(e,t,r){if(!_x(r))return!1;var n=typeof t;return!!("number"==n?Sx(r)&&xx(t,r.length):"string"==n&&t in r)&&wx(r[t],e)},kx=Sb,Ex=function(e,t,r){t=t.length?sx(t,(function(e){return mx(e)?function(t){return lx(t,1===e.length?e[0]:e)}:e})):[hx];var n=-1;t=sx(t,fx(ux));var o=cx(e,(function(e,r,o){return{criteria:sx(t,(function(t){return t(e)})),index:++n,value:e}}));return dx(o,(function(e,t){return px(e,t,r)}))},jx=$x,Cx=bx((function(e,t){if(null==e)return[];var r=t.length;return r>1&&jx(e,t[0],t[1])?t=[]:r>2&&jx(t[0],t[1],t[2])&&(t=[t[0]]),Ex(e,kx(t,1),[])})),Ox=Cx;var Px=function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1};var Nx=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1},Rx=Px,Tx=function(e){return e!=e},Ax=Nx;var Ix=function(e,t,r){return t==t?Ax(e,t,r):Rx(e,Tx,r)},Mx=Ix;var Fx=function(e,t){return!!(null==e?0:e.length)&&Mx(e,t,0)>-1};var zx=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1};var Dx=wm,Lx=function(){},Bx=Dx&&1/Gp(new Dx([,-0]))[1]==1/0?function(e){return new Dx(e)}:Lx,Vx=Lp,Ux=Fx,Wx=zx,qx=Vp,Kx=Bx,Hx=Gp;var Gx=function(e,t,r){var n=-1,o=Ux,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=Wx;else if(a>=200){var u=t?null:Kx(e);if(u)return Hx(u);i=!1,o=qx,l=new Vx}else l=t?[]:s;e:for(;++n<a;){var c=e[n],d=t?t(c):c;if(c=r||0!==c?c:0,i&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,r)||(l!==s&&l.push(d),s.push(c))}return s},Qx=Gx;var Jx=function(e){return e&&e.length?Qx(e):[]},Yx=Gx;var Xx=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Yx(e,void 0,t):[]},Zx=bx,e_=tf,t_=$x,r_=jg,n_=Object.prototype,o_=n_.hasOwnProperty,a_=Zx((function(e,t){e=Object(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&t_(t[0],t[1],o)&&(n=1);++r<n;)for(var a=t[r],i=r_(a),s=-1,l=i.length;++s<l;){var u=i[s],c=e[u];(void 0===c||e_(c,n_[u])&&!o_.call(e,u))&&(e[u]=a[u])}return e})),i_=a_,s_=Lp,l_=Fx,u_=zx,c_=wv,d_=Mh,f_=Vp,p_=Math.min;var h_=function(e,t,r){for(var n=r?u_:l_,o=e[0].length,a=e.length,i=a,s=Array(a),l=1/0,u=[];i--;){var c=e[i];i&&t&&(c=c_(c,d_(t))),l=p_(c.length,l),s[i]=!r&&(t||o>=120&&c.length>=120)?new s_(i&&c):void 0}c=e[0];var d=-1,f=s[0];e:for(;++d<o&&u.length<l;){var p=c[d],h=t?t(p):p;if(p=r||0!==p?p:0,!(f?f_(f,h):n(u,h,r))){for(i=a;--i;){var m=s[i];if(!(m?f_(m,h):n(e[i],h,r)))continue e}f&&f.push(h),u.push(p)}}return u},m_=im,v_=Ud;var g_=function(e){return v_(e)&&m_(e)},y_=g_;var b_=function(e){return y_(e)?e:[]},w_=wv,S_=h_,x_=b_,__=ab,$_=bx((function(e){var t=__(e),r=w_(e,x_);return(t="function"==typeof t?t:void 0)&&r.pop(),r.length&&r[0]===e[0]?S_(r,void 0,t):[]})),k_=Ld,E_=Ud;var j_=TS,C_=Ox,O_=Jx,P_=Xx,N_=i_,R_=$_,T_=Xd,A_=function(e){return!0===e||!1===e||E_(e)&&"[object Boolean]"==k_(e)},I_=e=>Array.isArray(e)?e:[e],M_=e=>void 0===e,F_=e=>T_(e)||Array.isArray(e)?Object.keys(e):[],z_=(e,t)=>e.hasOwnProperty(t),D_=e=>C_(O_(e)),L_=e=>M_(e)||Array.isArray(e)&&0===e.length,B_=(e,t,r,n)=>t&&z_(t,r)&&e&&z_(e,r)&&n(e[r],t[r]),V_=(e,t)=>M_(e)&&0===t||M_(t)&&0===e||j_(e,t),U_=e=>M_(e)||j_(e,{})||!0===e,W_=e=>M_(e)||j_(e,{}),q_=e=>M_(e)||T_(e)||!0===e||!1===e;function K_(e,t){return!(!L_(e)||!L_(t))||j_(D_(e),D_(t))}function H_(e,t,r,n){var o=O_(F_(e).concat(F_(t)));return!(!W_(e)||!W_(t))||(!W_(e)||!F_(t).length)&&((!W_(t)||!F_(e).length)&&o.every((function(r){var o=e[r],a=t[r];return Array.isArray(o)&&Array.isArray(a)?j_(D_(e),D_(t)):!(Array.isArray(o)&&!Array.isArray(a))&&(!(Array.isArray(a)&&!Array.isArray(o))&&B_(e,t,r,n))})))}function G_(e,t,r,n){var o=P_(e,n),a=P_(t,n);return R_(o,a,n).length===Math.max(o.length,a.length)}var Q_={title:j_,uniqueItems:(e,t)=>M_(e)&&!1===t||M_(t)&&!1===e||j_(e,t),minLength:V_,minItems:V_,minProperties:V_,required:K_,enum:K_,type:function(e,t){return e=I_(e),t=I_(t),j_(D_(e),D_(t))},items:function(e,t,r,n){return T_(e)&&T_(t)?n(e,t):Array.isArray(e)&&Array.isArray(t)?H_(e,t,0,n):j_(e,t)},anyOf:G_,allOf:G_,oneOf:G_,properties:H_,patternProperties:H_,dependencies:H_},J_=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],Y_=["additionalProperties","additionalItems","contains","propertyNames","not"];var X_=function e(t,r,n){if(n=N_(n,{ignore:[]}),U_(t)&&U_(r))return!0;if(!q_(t)||!q_(r))throw new Error("Either of the values are not a JSON schema.");if(t===r)return!0;if(A_(t)&&A_(r))return t===r;if(void 0===t&&!1===r||void 0===r&&!1===t)return!1;if(M_(t)&&!M_(r)||!M_(t)&&M_(r))return!1;var o=O_(Object.keys(t).concat(Object.keys(r)));if(n.ignore.length&&(o=o.filter((e=>-1===n.ignore.indexOf(e)))),!o.length)return!0;function a(t,r){return e(t,r,n)}return o.every((function(o){var i=t[o],s=r[o];if(-1!==Y_.indexOf(o))return e(i,s,n);var l=Q_[o];if(l||(l=j_),j_(i,s))return!0;if(-1===J_.indexOf(o)&&(!z_(t,o)&&z_(r,o)||z_(t,o)&&!z_(r,o)))return i===s;var u=l(i,s,o,a);if(!A_(u))throw new Error("Comparer must return true or false");return u}))};var Z_=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var e$=function(e){return("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))&&e.valueOf()==e.valueOf()};var t$=Z_,r$=function(e){return e$(e)&&e%1==0};var n$=function(e){var t;if(!t$(e))return!1;if(!(t=e.length))return!1;for(var r=0;r<t;r++)if(!r$(e[r]))return!1;return!0};var o$=function(e){return"function"==typeof e},a$=Z_,i$=n$,s$=o$,l$=Math.pow(2,31)-1;function u$(e,t){var r,n=1;if(0===e)return t;if(0===t)return e;for(;e%2==0&&t%2==0;)e/=2,t/=2,n*=2;for(;e%2==0;)e/=2;for(;t;){for(;t%2==0;)t/=2;e>t&&(r=t,t=e,e=r),t-=e}return n*e}function c$(e,t){var r,n=0;if(0===e)return t;if(0===t)return e;for(;0==(1&e)&&0==(1&t);)e>>>=1,t>>>=1,n++;for(;0==(1&e);)e>>>=1;for(;t;){for(;0==(1&t);)t>>>=1;e>t&&(r=t,t=e,e=r),t-=e}return e<<n}var d$=function(){var e,t,r,n,o,a,i,s=arguments.length;for(e=new Array(s),i=0;i<s;i++)e[i]=arguments[i];if(i$(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),o<=l$&&a<=l$?c$(o,a):u$(o,a);r=e}else{if(!a$(e[0]))throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(s>1){if(r=e[0],t=e[1],!s$(t))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((n=r.length)<2)return null;if(t){for(o=new Array(n),i=0;i<n;i++)o[i]=t(r[i],i);r=o}if(s<3&&!i$(r))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(i=0;i<n;i++)(o=r[i])<0&&(r[i]=-o);for(o=r[0],i=1;i<n;i++)o=(a=r[i])<=l$&&o<=l$?c$(o,a):u$(o,a);return o},f$=d$,p$=Z_,h$=n$,m$=o$;var v$=function(){var e,t,r,n,o,a,i,s=arguments.length;for(e=new Array(s),i=0;i<s;i++)e[i]=arguments[i];if(h$(e)){if(2===s)return(o=e[0])<0&&(o=-o),(a=e[1])<0&&(a=-a),0===o||0===a?0:o/f$(o,a)*a;r=e}else{if(!p$(e[0]))throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(s>1){if(r=e[0],t=e[1],!m$(t))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0]}if((n=r.length)<2)return null;if(t){for(o=new Array(n),i=0;i<n;i++)o[i]=t(r[i],i);r=o}if(s<3&&!h$(r))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(i=0;i<n;i++)(o=r[i])<0&&(r[i]=-o);for(o=r[0],i=1;i<n;i++){if(a=r[i],0===o||0===a)return 0;o=o/f$(o,a)*a}return o},g$=ug,y$=tf;var b$=function(e,t,r){(void 0!==r&&!y$(e[t],r)||void 0===r&&!(t in e))&&g$(e,t,r)};var w$=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},S$=vg,x$=jg;var _$=b$,$$=Ng,k$=iy,E$=Tg,j$=by,C$=$h,O$=oh,P$=g_,N$=kh,R$=Ef,T$=xf,A$=Xd,I$=Vh,M$=w$,F$=function(e){return S$(e,x$(e))};var z$=Ip,D$=b$,L$=vw,B$=function(e,t,r,n,o,a,i){var s=M$(e,r),l=M$(t,r),u=i.get(l);if(u)_$(e,r,u);else{var c=a?a(s,l,r+"",e,t,i):void 0,d=void 0===c;if(d){var f=O$(l),p=!f&&N$(l),h=!f&&!p&&I$(l);c=l,f||p||h?O$(s)?c=s:P$(s)?c=E$(s):p?(d=!1,c=$$(l,!0)):h?(d=!1,c=k$(l,!0)):c=[]:A$(l)||C$(l)?(c=s,C$(s)?c=F$(s):T$(s)&&!R$(s)||(c=j$(l))):d=!1}d&&(i.set(l,c),o(c,l,n,a,i),i.delete(l)),_$(e,r,c)}},V$=xf,U$=jg,W$=w$;var q$=function e(t,r,n,o,a){t!==r&&L$(r,(function(i,s){if(a||(a=new z$),V$(i))B$(t,r,s,n,e,o,a);else{var l=o?o(W$(t,s),i,s+"",t,r,a):void 0;void 0===l&&(l=i),D$(t,s,l)}}),U$)},K$=q$,H$=xf;var G$=function e(t,r,n,o,a,i){return H$(t)&&H$(r)&&(i.set(r,t),K$(t,r,void 0,e,i),i.delete(r)),t},Q$=bx,J$=$x;var Y$=function(e){return Q$((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&J$(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t}))},X$=q$,Z$=Y$((function(e,t,r,n){X$(e,t,r,n)})),ek=$b,tk=G$,rk=Z$,nk=bx((function(e){return e.push(void 0,tk),ek(rk,void 0,e)})),ok=Sb;var ak=function(e){return(null==e?0:e.length)?ok(e,Infinity):[]},ik=wv,sk=h_,lk=b_,uk=bx((function(e){var t=ik(e,lk);return t.length&&t[0]===e[0]?sk(t):[]}));var ck=function(e,t,r,n){for(var o=r-1,a=e.length;++o<a;)if(n(e[o],t))return o;return-1},dk=wv,fk=Ix,pk=ck,hk=Mh,mk=Tg,vk=Array.prototype.splice;var gk=function(e,t,r,n){var o=n?pk:fk,a=-1,i=t.length,s=e;for(e===t&&(t=mk(t)),r&&(s=dk(e,hk(r)));++a<i;)for(var l=0,u=t[a],c=r?r(u):u;(l=o(s,c,l,n))>-1;)s!==e&&vk.call(s,l,1),vk.call(e,l,1);return e},yk=gk;var bk=function(e,t){return e&&e.length&&t&&t.length?yk(e,t):e},wk=ag,Sk=xw,xk=uS,_k=oh;var $k=function(e,t){return(_k(e)?wk:Sk)(e,xk(t))},kk=Lp,Ek=Fx,jk=zx,Ck=wv,Ok=Mh,Pk=Vp;var Nk=function(e,t,r,n){var o=-1,a=Ek,i=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=Ck(t,Ok(r))),n?(a=jk,i=!1):t.length>=200&&(a=Pk,i=!1,t=new kk(t));e:for(;++o<s;){var c=e[o],d=null==r?c:r(c);if(c=n||0!==c?c:0,i&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else a(t,d,n)||l.push(c)}return l},Rk=Nk,Tk=g_,Ak=bx((function(e,t){return Tk(e)?Rk(e,t):[]}));const Ik=_b,Mk=ak,Fk=Xd,zk=Jx,Dk=Ak;const Lk=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Bk=e=>Fk(e)||Array.isArray(e)?Object.keys(e):[],Vk=e=>!Bk(e).length&&!1!==e&&!0!==e;var Uk={allUniqueKeys:e=>zk(Mk(e.map(Bk))),deleteUndefinedProps:function(e){for(const t in e)Lk(e,t)&&Vk(e[t])&&delete e[t];return e},getValues:(e,t)=>e.map((e=>e&&e[t])),has:Lk,isEmptySchema:Vk,isSchema:e=>Fk(e)||!0===e||!1===e,keys:Bk,notUndefined:e=>void 0!==e,uniqWith:Xx,withoutArr:(e,...t)=>Dk.apply(null,[e].concat(Ik(t)))};const Wk=X_,qk=$k,{allUniqueKeys:Kk,deleteUndefinedProps:Hk,getValues:Gk,keys:Qk,notUndefined:Jk,uniqWith:Yk,withoutArr:Xk}=Uk;function Zk(e,t){return Kk(e).reduce((function(r,n){const o=Gk(e,n),a=Yk(o.filter(Jk),Wk);return r[n]=t(a,n),r}),{})}var eE={keywords:["properties","patternProperties","additionalProperties"],resolver(e,t,r,n){n.ignoreAdditionalProperties||(e.forEach((function(t){const n=e.filter((e=>e!==t)),o=Qk(t.properties),a=Qk(t.patternProperties).map((e=>new RegExp(e)));n.forEach((function(e){const n=Qk(e.properties),i=n.filter((e=>a.some((t=>t.test(e)))));Xk(n,o,i).forEach((function(n){e.properties[n]=r.properties([e.properties[n],t.additionalProperties],n)}))}))})),e.forEach((function(t){const r=e.filter((e=>e!==t)),n=Qk(t.patternProperties);!1===t.additionalProperties&&r.forEach((function(e){const t=Qk(e.patternProperties);Xk(t,n).forEach((t=>delete e.patternProperties[t]))}))})));const o={additionalProperties:r.additionalProperties(e.map((e=>e.additionalProperties))),patternProperties:Zk(e.map((e=>e.patternProperties)),r.patternProperties),properties:Zk(e.map((e=>e.properties)),r.properties)};var a;return!1===o.additionalProperties&&qk(a=o.properties,(function(e,t){!1===e&&delete a[t]})),Hk(o)}};const tE=X_,rE=$k,{allUniqueKeys:nE,deleteUndefinedProps:oE,has:aE,isSchema:iE,notUndefined:sE,uniqWith:lE}=Uk;function uE(e,t,r){return nE(r).reduce((function(r,n){const o=function(e,t){return e.map((function(e){if(e){if(!Array.isArray(e.items))return e.items;{const r=e.items[t];if(iE(r))return r;if(aE(e,"additionalItems"))return e.additionalItems}}}))}(e,n),a=lE(o.filter(sE),tE);return r[n]=t(a,n),r}),[])}var cE={keywords:["items","additionalItems"],resolver(e,t,r){const n=e.map((e=>e.items)),o=n.filter(sE),a={};let i;var s;return o.every(iE)?a.items=r.items(n):a.items=uE(e,r.items,n),o.every(Array.isArray)?i=e.map((e=>e.additionalItems)):o.some(Array.isArray)&&(i=e.map((function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items}))),i&&(a.additionalItems=r.additionalItems(i)),!1===a.additionalItems&&Array.isArray(a.items)&&(s=a.items,rE(s,(function(e,t){!1===e&&s.splice(t,1)}))),oE(a)}};const dE=ex,fE=X_,pE=v$,hE=nk,mE=_b,vE=ak,gE=uk,yE=$_,bE=TS,wE=Xd,SE=bk,xE=Ox,_E=Jx,$E=Xx,kE=eE,EE=cE,jE=(e,t)=>-1!==e.indexOf(t),CE=e=>wE(e)||!0===e||!1===e,OE=e=>!1===e,PE=e=>!0===e,NE=(e,t,r)=>r(e),RE=e=>xE(_E(vE(e))),TE=e=>void 0!==e,AE=e=>_E(vE(e.map(LE))),IE=e=>e[0],ME=e=>Math.max.apply(Math,e),FE=e=>Math.min.apply(Math,e);function zE(e){let{allOf:t=[],...r}=e;return r=wE(e)?r:e,[r,...t.map(zE)]}function DE(e,t){return e.map((e=>e&&e[t]))}function LE(e){return wE(e)||Array.isArray(e)?Object.keys(e):[]}function BE(e,t){if(t=t||[],!e.length)return t;const r=e.slice(0).shift(),n=e.slice(1);return t.length?BE(n,mE(t.map((e=>r.map((t=>[t].concat(e))))))):BE(n,r.map((e=>e)))}function VE(e,t){let r;try{r=e.map((function(e){return JSON.stringify(e,null,2)})).join("\n")}catch(t){r=e.join(", ")}throw new Error('Could not resolve values for path:"'+t.join(".")+'". They are probably incompatible. Values: \n'+r)}function UE(e,t,r,n,o,a){if(e.length){const i=o.complexResolvers[t];if(!i||!i.resolver)throw new Error("No resolver found for "+t);const s=r.map((t=>e.reduce(((e,r)=>(void 0!==t[r]&&(e[r]=t[r]),e)),{}))),l=$E(s,fE),u=i.keywords.reduce(((e,t)=>({...e,[t]:(e,r=[])=>n(e,null,a.concat(t,r))})),{}),c=i.resolver(l,a.concat(t),u,o);return wE(c)||VE(l,a.concat(t)),c}}function WE(e){return{required:e}}const qE=["properties","patternProperties","definitions","dependencies"],KE=["anyOf","oneOf"],HE=["additionalProperties","additionalItems","contains","propertyNames","not","items"],GE={type(e){if(e.some(Array.isArray)){const t=e.map((function(e){return Array.isArray(e)?e:[e]})),r=gE.apply(null,t);if(1===r.length)return r[0];if(r.length>1)return _E(r)}},dependencies:(e,t,r)=>AE(e).reduce((function(t,n){const o=DE(e,n);let a=$E(o.filter(TE),bE);const i=a.filter(Array.isArray);if(i.length){if(i.length===a.length)t[n]=RE(a);else{const e=a.filter(CE),o=i.map(WE);t[n]=r(e.concat(o),n)}return t}return a=$E(a,fE),t[n]=r(a,n),t}),{}),oneOf(e,t,r){const n=function(e,t){return e.map((function(e,r){try{return t(e,r)}catch(e){return}})).filter(TE)}(BE(dE(e)),r),o=$E(n,fE);if(o.length)return o},not:e=>({anyOf:e}),pattern:e=>e.map((e=>"(?="+e+")")).join(""),multipleOf(e){let t=e.slice(0),r=1;for(;t.some((e=>!Number.isInteger(e)));)t=t.map((e=>10*e)),r*=10;return pE(t)/r},enum(e){const t=yE.apply(null,e.concat(bE));if(t.length)return xE(t)}};GE.$id=IE,GE.$ref=IE,GE.$schema=IE,GE.additionalItems=NE,GE.additionalProperties=NE,GE.anyOf=GE.oneOf,GE.contains=NE,GE.default=IE,GE.definitions=GE.dependencies,GE.description=IE,GE.examples=e=>$E(mE(e),bE),GE.exclusiveMaximum=FE,GE.exclusiveMinimum=ME,GE.items=EE,GE.maximum=FE,GE.maxItems=FE,GE.maxLength=FE,GE.maxProperties=FE,GE.minimum=ME,GE.minItems=ME,GE.minLength=ME,GE.minProperties=ME,GE.properties=kE,GE.propertyNames=NE,GE.required=e=>RE(e),GE.title=IE,GE.uniqueItems=e=>e.some(PE);const QE={properties:kE,items:EE};function JE(e,t,r){t=hE(t,{ignoreAdditionalProperties:!1,resolvers:GE,complexResolvers:QE,deep:!0});const n=Object.entries(t.complexResolvers);const o=function e(r,o,a){r=dE(r.filter(TE)),a=a||[];const i=wE(o)?o:{};if(!r.length)return;if(r.some(OE))return!1;if(r.every(PE))return!0;r=r.filter(wE);const s=AE(r);if(t.deep&&jE(s,"allOf"))return JE({allOf:r},t);const l=n.map((([e,t])=>s.filter((e=>t.keywords.includes(e)))));return l.forEach((e=>SE(s,e))),s.forEach((function(n){const o=DE(r,n),s=$E(o.filter(TE),function(e){return function(t,r){return fE({[e]:t},{[e]:r})}}(n));if(1===s.length&&jE(KE,n))i[n]=s[0].map((t=>e([t],t)));else if(1!==s.length||jE(qE,n)||jE(HE,n)){const r=t.resolvers[n]||t.resolvers.defaultResolver;if(!r)throw new Error("No resolver found for key "+n+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const o=(t,r=[])=>e(t,null,a.concat(n,r));i[n]=r(s,a.concat(n),o,t),void 0===i[n]?VE(s,a.concat(n)):void 0===i[n]&&delete i[n]}else i[n]=s[0]})),n.reduce(((n,[o,i],s)=>({...n,...UE(l[s],o,r,e,t,a)})),i)}(vE(zE(e)));return o}JE.options={resolvers:GE};var YE=JE;function XE(e){let t;const r=Lv(e,"discriminator.propertyName",void 0);return pw(r)?t=r:void 0!==r&&console.warn(`Expecting discriminator to be a string, got "${typeof r}" instead`),t}function ZE(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":isNaN(e)?"object"==typeof e?"object":"string":"number"}var ej=Sb,tj=Gx,rj=g_,nj=bx((function(e){return tj(ej(e,1,rj,!0))}));function oj(e){let{type:t}=e;return!t&&e.const?ZE(e.const):!t&&e.enum?"string":t||!e.properties&&!e.additionalProperties?(Array.isArray(t)&&(t=2===t.length&&t.includes("null")?t.find((e=>"null"!==e)):t[0]),t):"object"}function aj(e,t){const r=Object.assign({},e);return Object.keys(t).reduce(((r,n)=>{const o=e?e[n]:{},a=t[n];return e&&n in e&&Zc(a)?r[n]=aj(o,a):e&&t&&("object"===oj(e)||"object"===oj(t))&&n===vd&&Array.isArray(o)&&Array.isArray(a)?r[n]=nj(o,a):r[n]=a,r}),r)}function ij(e,t,r={},n){return cj(e,t,r,n)[0]}function sj(e){const t=e.reduce(((e,t)=>t.length>1?t.flatMap((t=>CS(e.length,(r=>[...e[r]].concat(t))))):(e.forEach((e=>e.push(t[0]))),e)),[[]]);return t}function lj(e,t,r,n,o,a){const i=uj(t,r,o);return i!==t?cj(e,i,r,a,n,o):[t]}function uj(e,t,r){if(!Zc(e))return e;let n=e;if(yd in n){const{$ref:e}=n,o=ov(n,["$ref"]);if(r.includes(e))return n;r.push(e);const a=Qb(e,t);n=Object.assign(Object.assign({},a),o)}if(md in n){const e=XS(n[md],((e,n,o)=>{e[o]=uj(n,t,r)}),{});n=Object.assign(Object.assign({},n),{[md]:e})}return fd in n&&!Array.isArray(n.items)&&"boolean"!=typeof n.items&&(n=Object.assign(Object.assign({},n),{items:uj(n.items,t,r)})),TS(e,n)?e:n}function cj(e,t,r,n,o=!1,a=[]){if(!Zc(t))return[{}];const i=function(e,t,r,n,o,a){const i=lj(e,t,r,n,o,a);if(i.length>1||i[0]!==t)return i;if(sd in t)return dj(e,t,r,n,o,a).flatMap((t=>cj(e,t,r,a,n,o)));if(nd in t&&Array.isArray(t.allOf))return sj(t.allOf.map((t=>cj(e,t,r,a,n,o)))).map((e=>Object.assign(Object.assign({},t),{allOf:e})));return[t]}(e,t,r,o,a,n);return i.flatMap((t=>{let i=t;if(dd in i)return function(e,t,r,n,o,a){const{if:i,then:s,else:l}=t,u=ov(t,["if","then","else"]),c=e.isValid(i,a||{},r);let d=[u],f=[];if(n)s&&"boolean"!=typeof s&&(f=f.concat(cj(e,s,r,a,n,o))),l&&"boolean"!=typeof l&&(f=f.concat(cj(e,l,r,a,n,o)));else{const t=c?s:l;t&&"boolean"!=typeof t&&(f=f.concat(cj(e,t,r,a,n,o)))}return f.length&&(d=f.map((e=>aj(u,e)))),d.flatMap((t=>cj(e,t,r,a,n,o)))}(e,i,r,o,a,n);if(nd in i){if(o){const{allOf:e}=i;return[...e,ov(i,["allOf"])]}try{i=YE(i,{deep:!1})}catch(e){console.warn("could not merge subschemas in allOf:\n",e);return ov(i,["allOf"])}}return rd in i&&!1!==i.additionalProperties?function(e,t,r,n){const o=Object.assign(Object.assign({},t),{properties:Object.assign({},t.properties)}),a=n&&Zc(n)?n:{};return Object.keys(a).forEach((t=>{if(t in o.properties)return;let n={};n="boolean"!=typeof o.additionalProperties?yd in o.additionalProperties?ij(e,{$ref:Lv(o.additionalProperties,[yd])},r,a):"type"in o.additionalProperties?Object.assign({},o.additionalProperties):od in o.additionalProperties||hd in o.additionalProperties?Object.assign({type:"object"},o.additionalProperties):{type:ZE(Lv(a,[t]))}:{type:ZE(Lv(a,[t]))},o.properties[t]=n,BS(o.properties,[t,td],!0)})),o}(e,i,r,n):i}))}function dj(e,t,r,n,o,a){const{dependencies:i}=t,s=ov(t,["dependencies"]),l=function(e,t,r,n,o){let a;const{oneOf:i,anyOf:s}=t,l=ov(t,["oneOf","anyOf"]);if(Array.isArray(i)?a=i:Array.isArray(s)&&(a=s),a){const i=void 0===o&&n?{}:o,s=XE(t);a=a.map((e=>uj(e,r,[])));const u=NS(e,i,a,r,s);if(n)return a.map((e=>aj(l,e)));t=aj(l,a[u])}return[t]}(e,s,r,n,a);return l.flatMap((t=>fj(e,i,t,r,n,o,a)))}function fj(e,t,r,n,o,a,i){let s=[r];for(const l in t){if(!o&&void 0===Lv(i,[l]))continue;if(r.properties&&!(l in r.properties))continue;const[u,c]=Gb(l,t);return Array.isArray(c)?s[0]=pj(r,c):Zc(c)&&(s=hj(e,r,n,l,c,o,a,i)),s.flatMap((t=>fj(e,u,t,n,o,a,i)))}return s}function pj(e,t){if(!t)return e;const r=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return Object.assign(Object.assign({},e),{required:r})}function hj(e,t,r,n,o,a,i,s){return cj(e,o,r,s,a,i).flatMap((o=>{const{oneOf:l}=o,u=ov(o,["oneOf"]);if(t=aj(t,u),void 0===l)return t;const c=l.map((t=>"boolean"!=typeof t&&yd in t?lj(e,t,r,a,i,s):[t]));return sj(c).flatMap((o=>function(e,t,r,n,o,a,i,s){const l=o.filter((t=>{if("boolean"==typeof t||!t||!t.properties)return!1;const{[n]:o}=t.properties;if(o){const t={type:"object",properties:{[n]:o}};return e.isValid(t,s,r)||a}return!1}));if(!a&&1!==l.length)return console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t];return l.flatMap((o=>{const l=o,[u]=Gb(n,l.properties),c=Object.assign(Object.assign({},l),{properties:u});return cj(e,c,r,s,a,i).map((e=>aj(t,e)))}))}(e,t,r,n,o,a,i,s)))}))}const mj={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function vj(e,t,r,n={}){let o=0;return r&&(xf(r.properties)?o+=sS(r.properties,((r,o,a)=>{const i=Lv(n,a);if("boolean"==typeof o)return r;if(iw(o,yd)){const n=ij(e,o,t,i);return r+vj(e,t,n,i||{})}if((iw(o,hd)||iw(o,od))&&i){const n=iw(o,hd)?hd:od,a=XE(o);return r+gj(e,t,i,Lv(o,n),-1,a)}if("object"===o.type)return r+vj(e,t,o,i||{});if(o.type===ZE(i)){let e=r+1;return o.default?e+=i===o.default?1:-1:o.const&&(e+=i===o.const?1:-1),e}return r}),0):pw(r.type)&&r.type===ZE(n)&&(o+=1)),o}function gj(e,t,r,n,o=-1,a){const i=n.map((e=>uj(e,t,[]))),s=OS(r,n,a);if(uw(s))return s;const l=i.reduce(((n,o,i)=>(1===NS(e,r,[mj,o],t,a)&&n.push(i),n)),[]);if(1===l.length)return l[0];l.length||CS(i.length,(e=>l.push(e)));const u=new Set,{bestIndex:c}=l.reduce(((n,o)=>{const{bestScore:a}=n,s=i[o],l=vj(e,t,s,r);return u.add(l),l>a?{bestIndex:o,bestScore:l}:n}),{bestIndex:o,bestScore:0});return 1===u.size&&o>=0?o:c}function yj(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every((e=>Zc(e)))}function bj(e,t,r=!1){if(Array.isArray(t)){const n=Array.isArray(e)?e:[],o=t.map(((e,t)=>n[t]?bj(n[t],e,r):e));return r&&o.length<n.length&&o.push(...n.slice(o.length)),o}if(Zc(t)){const n=Object.assign({},e);return Object.keys(t).reduce(((n,o)=>(n[o]=bj(e?Lv(e,o):{},Lv(t,o),r),n)),n)}return t}function wj(e,t,r=!1){return Object.keys(t).reduce(((n,o)=>{const a=e?e[o]:{},i=t[o];if(e&&o in e&&Zc(i))n[o]=wj(a,i,r);else if(r&&Array.isArray(a)&&Array.isArray(i)){let e=i;"preventDuplicates"===r&&(e=i.reduce(((e,t)=>(a.includes(t)||e.push(t),e)),[])),n[o]=a.concat(e)}else n[o]=i;return n}),Object.assign({},e))}function Sj(e,t,r={}){const n=ij(e,t,r,void 0),o=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(o)&&o.every((e=>"boolean"!=typeof e&&function(e){return Array.isArray(e.enum)&&1===e.enum.length||ad in e}(e)))}function xj(e,t,r){return!(!t.uniqueItems||!t.items||"boolean"==typeof t.items)&&Sj(e,t.items,r)}var _j;function $j(e,t=_j.Ignore,r=-1){if(r>=0){if(Array.isArray(e.items)&&r<e.items.length){const t=e.items[r];if("boolean"!=typeof t)return t}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return t!==_j.Ignore&&Zc(e.additionalItems)?e.additionalItems:{}}function kj(e,t,r,n,o,a=[],i={}){const{emptyObjectFields:s="populateAllDefaults"}=i;if(n)e[t]=r;else if("skipDefaults"!==s)if(Zc(r)){const n=void 0===o?a.includes(t):o;Jv(r)&&!a.includes(t)||!n&&"populateRequiredDefaults"===s||(e[t]=r)}else void 0===r||"populateAllDefaults"!==s&&!a.includes(t)||(e[t]=r)}function Ej(e,t,{parentDefaults:r,rawFormData:n,rootSchema:o={},includeUndefinedValues:a=!1,_recurseList:i=[],experimental_defaultFormStateBehavior:s,required:l}={}){var u,c;const d=Zc(n)?n:{},f=Zc(t)?t:{};let p=r,h=null,m=i;if(Zc(p)&&Zc(f.default))p=wj(p,f.default);else if(id in f)p=f.default;else if(yd in f){const e=f[yd];i.includes(e)||(m=i.concat(e),h=Qb(e,o))}else if(sd in f){h=dj(e,f,o,!1,[],d)[0]}else if(yj(f))p=f.items.map(((t,n)=>Ej(e,t,{rootSchema:o,includeUndefinedValues:a,_recurseList:i,experimental_defaultFormStateBehavior:s,parentDefaults:Array.isArray(r)?r[n]:void 0,rawFormData:d,required:l})));else if(hd in f){const{oneOf:t}=f,r=ov(f,["oneOf"]);if(0===t.length)return;const n=XE(f);h=t[gj(e,o,Jv(d)?void 0:d,t,0,n)],h=aj(r,h)}else if(od in f){const{anyOf:t}=f,r=ov(f,["anyOf"]);if(0===t.length)return;const n=XE(f);h=t[gj(e,o,Jv(d)?void 0:d,t,0,n)],h=aj(r,h)}if(h)return Ej(e,h,{rootSchema:o,includeUndefinedValues:a,_recurseList:m,experimental_defaultFormStateBehavior:s,parentDefaults:p,rawFormData:d,required:l});switch(void 0===p&&(p=f.default),oj(f)){case"object":{const t=Object.keys(f.properties||{}).reduce(((t,r)=>{var n;return kj(t,r,Ej(e,Lv(f,[md,r]),{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,includeUndefinedValues:!0===a,parentDefaults:Lv(p,[r]),rawFormData:Lv(d,[r]),required:null===(n=f.required)||void 0===n?void 0:n.includes(r)}),a,l,f.required,s),t}),{});if(f.additionalProperties){const r=Zc(f.additionalProperties)?f.additionalProperties:{},n=new Set;Zc(p)&&Object.keys(p).filter((e=>!f.properties||!f.properties[e])).forEach((e=>n.add(e)));const u=[];Object.keys(d).filter((e=>!f.properties||!f.properties[e])).forEach((e=>{n.add(e),u.push(e)})),n.forEach((n=>{var c;const h=Ej(e,r,{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,includeUndefinedValues:!0===a,parentDefaults:Lv(p,[n]),rawFormData:Lv(d,[n]),required:null===(c=f.required)||void 0===c?void 0:c.includes(n)});kj(t,n,h,a,l,u)}))}return t}case"array":{const t="never"===(null===(u=null==s?void 0:s.arrayMinItems)||void 0===u?void 0:u.populate),r="requiredOnly"===(null===(c=null==s?void 0:s.arrayMinItems)||void 0===c?void 0:c.populate);if(Array.isArray(p)&&(p=p.map(((t,r)=>{const n=$j(f,_j.Fallback,r);return Ej(e,n,{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,parentDefaults:t,required:l})}))),Array.isArray(n)){const r=$j(f);p=t?n:n.map(((t,n)=>Ej(e,r,{rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,rawFormData:t,parentDefaults:Lv(p,[n]),required:l})))}if(t)return null!=p?p:[];if(r&&!l)return p||void 0;const a=Array.isArray(p)?p.length:0;if(!f.minItems||xj(e,f,o)||f.minItems<=a)return p||[];const d=p||[],h=$j(f,_j.Invert),m=h.default,v=new Array(f.minItems-a).fill(Ej(e,h,{parentDefaults:m,rootSchema:o,_recurseList:i,experimental_defaultFormStateBehavior:s,required:l}));return d.concat(v)}}return p}function jj(e,t,r,n,o=!1,a){if(!Zc(t))throw new Error("Invalid schema: "+t);const i=Ej(e,ij(e,t,n,r),{rootSchema:n,includeUndefinedValues:o,experimental_defaultFormStateBehavior:a,rawFormData:r});if(null==r||"number"==typeof r&&isNaN(r))return i;const{mergeExtraDefaults:s}=(null==a?void 0:a.arrayMinItems)||{};return Zc(r)||Array.isArray(r)?bj(i,r,s):r}function Cj(e={}){return"widget"in _d(e)&&"hidden"!==_d(e).widget}function Oj(e,t,r={},n){if("files"===r[Sd])return!0;if(t.items){const r=ij(e,t.items,n);return"string"===r.type&&"data-url"===r.format}return!1}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(_j||(_j={}));const Pj=Symbol("no Value");function Nj(e,t,r,n,o={}){let a;if(iw(r,md)){const i={};if(iw(n,md)){const e=Lv(n,md,{});Object.keys(e).forEach((e=>{iw(o,e)&&(i[e]=void 0)}))}const s=Object.keys(Lv(r,md,{})),l={};s.forEach((a=>{const s=Lv(o,a);let u=Lv(n,[md,a],{}),c=Lv(r,[md,a],{});iw(u,yd)&&(u=ij(e,u,t,s)),iw(c,yd)&&(c=ij(e,c,t,s));const d=Lv(u,"type"),f=Lv(c,"type");if(!d||d===f)if(iw(i,a)&&delete i[a],"object"===f||"array"===f&&Array.isArray(s)){const r=Nj(e,t,c,u,s);void 0===r&&"array"!==f||(l[a]=r)}else{const e=Lv(c,"default",Pj),t=Lv(u,"default",Pj);e!==Pj&&e!==s&&(t===s?i[a]=e:!0===Lv(c,"readOnly")&&(i[a]=void 0));const r=Lv(c,"const",Pj),n=Lv(u,"const",Pj);r!==Pj&&r!==s&&(i[a]=n===s?r:void 0)}})),a=Object.assign(Object.assign(Object.assign({},o),i),l)}else if("array"===Lv(n,"type")&&"array"===Lv(r,"type")&&Array.isArray(o)){let i=Lv(n,"items"),s=Lv(r,"items");if("object"!=typeof i||"object"!=typeof s||Array.isArray(i)||Array.isArray(s))"boolean"==typeof i&&"boolean"==typeof s&&i===s&&(a=o);else{iw(i,yd)&&(i=ij(e,i,t,o)),iw(s,yd)&&(s=ij(e,s,t,o));const n=Lv(i,"type"),l=Lv(s,"type");if(!n||n===l){const n=Lv(r,"maxItems",-1);a="object"===l?o.reduce(((r,o)=>{const a=Nj(e,t,s,i,o);return void 0!==a&&(n<0||r.length<n)&&r.push(a),r}),[]):n>0&&o.length>n?o.slice(0,n):o}}}return a}function Rj(e,t,r,n,o,a,i,s=[]){if(yd in t||sd in t||nd in t){const l=ij(e,t,a,i);if(-1===s.findIndex((e=>TS(e,l))))return Rj(e,l,r,n,o,a,i,s.concat(l))}if(fd in t&&!Lv(t,[fd,yd]))return Rj(e,Lv(t,fd),r,n,o,a,i,s);const l={$id:o||r};if("object"===oj(t)&&md in t)for(const o in t.properties){const u=Lv(t,[md,o]),c=l[cd]+n+o;l[o]=Rj(e,Zc(u)?u:{},r,n,c,a,Lv(i,[o]),s)}return l}function Tj(e,t,r,n,o,a="root",i="_"){return Rj(e,t,a,i,r,n,o)}function Aj(e,t,r,n,o,a=[]){if(yd in t||sd in t||nd in t){const i=ij(e,t,n,o);if(-1===a.findIndex((e=>TS(e,i))))return Aj(e,i,r,n,o,a.concat(i))}let i={[pd]:r.replace(/^\./,"")};if(hd in t||od in t){const s=hd in t?t.oneOf:t.anyOf,l=XE(t),u=s[gj(e,n,o,s,0,l)];i=Object.assign(Object.assign({},i),Aj(e,u,r,n,o,a))}if(rd in t&&!1!==t[rd]&&BS(i,bd,!0),fd in t&&Array.isArray(o)){const{items:s,additionalItems:l}=t;Array.isArray(s)?o.forEach(((t,o)=>{s[o]?i[o]=Aj(e,s[o],`${r}.${o}`,n,t,a):l?i[o]=Aj(e,l,`${r}.${o}`,n,t,a):console.warn(`Unable to generate path schema for "${r}.${o}". No schema defined for it`)})):o.forEach(((t,o)=>{i[o]=Aj(e,s,`${r}.${o}`,n,t,a)}))}else if(md in t)for(const s in t.properties){const l=Lv(t,[md,s]);i[s]=Aj(e,l,`${r}.${s}`,n,Lv(o,[s]),a)}return i}function Ij(e,t,r="",n,o){return Aj(e,t,r,n,o)}class Mj{constructor(e,t,r){this.rootSchema=t,this.validator=e,this.experimental_defaultFormStateBehavior=r}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,t,r={}){return!(!e||!t)&&(this.validator!==e||!nv(this.rootSchema,t)||!nv(this.experimental_defaultFormStateBehavior,r))}getDefaultFormState(e,t,r=!1){return jj(this.validator,e,t,this.rootSchema,r,this.experimental_defaultFormStateBehavior)}getDisplayLabel(e,t,r){return function(e,t,r={},n,o){const a=_d(r,o),{label:i=!0}=a;let s=!!i;const l=oj(t);return"array"===l&&(s=xj(e,t,n)||Oj(e,t,r,n)||Cj(r)),"object"===l&&(s=!1),"boolean"!==l||r[Sd]||(s=!1),r["ui:field"]&&(s=!1),s}(this.validator,e,t,this.rootSchema,r)}getClosestMatchingOption(e,t,r,n){return gj(this.validator,this.rootSchema,e,t,r,n)}getFirstMatchingOption(e,t,r){return NS(this.validator,e,t,this.rootSchema,r)}getMatchingOption(e,t,r){return PS(this.validator,e,t,this.rootSchema,r)}isFilesArray(e,t){return Oj(this.validator,e,t,this.rootSchema)}isMultiSelect(e){return xj(this.validator,e,this.rootSchema)}isSelect(e){return Sj(this.validator,e,this.rootSchema)}mergeValidationData(e,t){return function(e,t,r){if(!r)return t;const{errors:n,errorSchema:o}=t;let a=e.toErrorList(r),i=r;return Jv(o)||(i=wj(o,r,!0),a=[...n].concat(a)),{errorSchema:i,errors:a}}(this.validator,e,t)}retrieveSchema(e,t){return ij(this.validator,e,this.rootSchema,t)}sanitizeDataForNewSchema(e,t,r){return Nj(this.validator,this.rootSchema,e,t,r)}toIdSchema(e,t,r,n="root",o="_"){return Tj(this.validator,e,t,this.rootSchema,r,n,o)}toPathSchema(e,t,r){return Ij(this.validator,e,t,this.rootSchema,r)}}function Fj(e,t){return function(e,t){let r=e;if(Array.isArray(t)){const e=r.split(/(%\d)/);t.forEach(((t,r)=>{const n=e.findIndex((e=>e===`%${r+1}`));n>=0&&(e[n]=t)})),r=e.join("")}return r}(e,t)}function zj(e,t=[],r){if(Array.isArray(e))return e.map((e=>zj(e,t))).filter((e=>e));const n=""===e||null===e?-1:Number(e),o=t[n];return o?o.value:r}function Dj(e,t,r=[]){const n=zj(e,r);return Array.isArray(t)?t.filter((e=>!TS(e,n))):TS(n,t)?void 0:t}function Lj(e,t){return Array.isArray(t)?t.some((t=>TS(t,e))):TS(t,e)}function Bj(e,t=[],r=!1){const n=t.map(((t,r)=>Lj(t.value,e)?String(r):void 0)).filter((e=>void 0!==e));return r?n:n[0]}var Vj={},Uj={get exports(){return Vj},set exports(e){Vj=e}};function Wj(e,t,r=[]){const n=zj(e,r);if(!Vj.isNil(n)){const e=r.findIndex((e=>n===e.value)),o=r.map((({value:e})=>e));return t.slice(0,e).concat(n,t.slice(e)).sort(((e,t)=>Number(o.indexOf(e)>o.indexOf(t))))}return t}
36
36
  /**
37
37
  * @license
38
38
  * Lodash <https://lodash.com/>
@@ -41,26 +41,26 @@ var J=a,Y=H;function X(e){for(var t="https://reactjs.org/docs/error-decoder.html
41
41
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
42
42
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
43
43
  */
44
- !function(e,t){(function(){var n,o="Expected a function",a="__lodash_hash_undefined__",i="__lodash_placeholder__",s=16,l=32,u=64,c=128,d=256,f=1/0,p=9007199254740991,h=NaN,m=4294967295,v=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",l],["partialRight",u],["rearg",d]],g="[object Arguments]",y="[object Array]",b="[object Boolean]",w="[object Date]",S="[object Error]",x="[object Function]",_="[object GeneratorFunction]",$="[object Map]",k="[object Number]",E="[object Object]",j="[object Promise]",C="[object RegExp]",O="[object Set]",P="[object String]",N="[object Symbol]",R="[object WeakMap]",T="[object ArrayBuffer]",A="[object DataView]",I="[object Float32Array]",M="[object Float64Array]",F="[object Int8Array]",z="[object Int16Array]",D="[object Int32Array]",L="[object Uint8Array]",B="[object Uint8ClampedArray]",V="[object Uint16Array]",U="[object Uint32Array]",W=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,Q=RegExp(H.source),J=RegExp(G.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ne.source),ae=/^\s+/,ie=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",je="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Oe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['’]",Ne="["+_e+"]",Re="["+Oe+"]",Te="["+$e+"]",Ae="\\d+",Ie="["+ke+"]",Me="["+Ee+"]",Fe="[^"+_e+Oe+Ae+ke+Ee+je+"]",ze="\\ud83c[\\udffb-\\udfff]",De="[^"+_e+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+je+"]",Ue="\\u200d",We="(?:"+Me+"|"+Fe+")",qe="(?:"+Ve+"|"+Fe+")",Ke="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Te+"|"+ze+")"+"?",Qe="["+Ce+"]?",Je=Qe+Ge+("(?:"+Ue+"(?:"+[De,Le,Be].join("|")+")"+Qe+Ge+")*"),Ye="(?:"+[Ie,Le,Be].join("|")+")"+Je,Xe="(?:"+[De+Te+"?",Te,Le,Be,Ne].join("|")+")",Ze=RegExp(Pe,"g"),et=RegExp(Te,"g"),tt=RegExp(ze+"(?="+ze+")|"+Xe+Je,"g"),rt=RegExp([Ve+"?"+Me+"+"+Ke+"(?="+[Re,Ve,"$"].join("|")+")",qe+"+"+He+"(?="+[Re,Ve+We,"$"].join("|")+")",Ve+"?"+We+"+"+Ke,Ve+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Ye].join("|"),"g"),nt=RegExp("["+Ue+_e+$e+Ce+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,st={};st[I]=st[M]=st[F]=st[z]=st[D]=st[L]=st[B]=st[V]=st[U]=!0,st[g]=st[y]=st[T]=st[b]=st[A]=st[w]=st[S]=st[x]=st[$]=st[k]=st[E]=st[C]=st[O]=st[P]=st[R]=!1;var lt={};lt[g]=lt[y]=lt[T]=lt[A]=lt[b]=lt[w]=lt[I]=lt[M]=lt[F]=lt[z]=lt[D]=lt[$]=lt[k]=lt[E]=lt[C]=lt[O]=lt[P]=lt[N]=lt[L]=lt[B]=lt[V]=lt[U]=!0,lt[S]=lt[x]=lt[R]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,dt=parseInt,ft="object"==typeof r&&r&&r.Object===Object&&r,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=ft||pt||Function("return this")(),mt=t&&!t.nodeType&&t,vt=mt&&e&&!e.nodeType&&e,gt=vt&&vt.exports===mt,yt=gt&&ft.process,bt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),wt=bt&&bt.isArrayBuffer,St=bt&&bt.isDate,xt=bt&&bt.isMap,_t=bt&&bt.isRegExp,$t=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Et(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)}function jt(e,t,r,n){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function Ct(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Ot(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Pt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Nt(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function Rt(e,t){return!!(null==e?0:e.length)&&Vt(e,t,0)>-1}function Tt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function At(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function It(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Mt(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r}function Ft(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function zt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Dt=Kt("length");function Lt(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function Bt(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}function Vt(e,t,r){return t==t?function(e,t,r){var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):Bt(e,Wt,r)}function Ut(e,t,r,n){for(var o=r-1,a=e.length;++o<a;)if(n(e[o],t))return o;return-1}function Wt(e){return e!=e}function qt(e,t){var r=null==e?0:e.length;return r?Qt(e,t)/r:h}function Kt(e){return function(t){return null==t?n:t[e]}}function Ht(e){return function(t){return null==e?n:e[t]}}function Gt(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r}function Qt(e,t){for(var r,o=-1,a=e.length;++o<a;){var i=t(e[o]);i!==n&&(r=r===n?i:r+i)}return r}function Jt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Yt(e){return e?e.slice(0,hr(e)+1).replace(ae,""):e}function Xt(e){return function(t){return e(t)}}function Zt(e,t){return At(t,(function(t){return e[t]}))}function er(e,t){return e.has(t)}function tr(e,t){for(var r=-1,n=e.length;++r<n&&Vt(t,e[r],0)>-1;);return r}function rr(e,t){for(var r=e.length;r--&&Vt(t,e[r],0)>-1;);return r}var nr=Ht({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),or=Ht({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ar(e){return"\\"+ut[e]}function ir(e){return nt.test(e)}function sr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function lr(e,t){return function(r){return e(t(r))}}function ur(e,t){for(var r=-1,n=e.length,o=0,a=[];++r<n;){var s=e[r];s!==t&&s!==i||(e[r]=i,a[o++]=r)}return a}function cr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function dr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function fr(e){return ir(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Dt(e)}function pr(e){return ir(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function hr(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var mr=Ht({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vr=function e(t){var r=(t=null==t?ht:vr.defaults(ht.Object(),t,vr.pick(ht,at))).Array,ie=t.Date,_e=t.Error,$e=t.Function,ke=t.Math,Ee=t.Object,je=t.RegExp,Ce=t.String,Oe=t.TypeError,Pe=r.prototype,Ne=$e.prototype,Re=Ee.prototype,Te=t["__core-js_shared__"],Ae=Ne.toString,Ie=Re.hasOwnProperty,Me=0,Fe=function(){var e=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ze=Re.toString,De=Ae.call(Ee),Le=ht._,Be=je("^"+Ae.call(Ie).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=gt?t.Buffer:n,Ue=t.Symbol,We=t.Uint8Array,qe=Ve?Ve.allocUnsafe:n,Ke=lr(Ee.getPrototypeOf,Ee),He=Ee.create,Ge=Re.propertyIsEnumerable,Qe=Pe.splice,Je=Ue?Ue.isConcatSpreadable:n,Ye=Ue?Ue.iterator:n,Xe=Ue?Ue.toStringTag:n,tt=function(){try{var e=fa(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),nt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,ut=ie&&ie.now!==ht.Date.now&&ie.now,ft=t.setTimeout!==ht.setTimeout&&t.setTimeout,pt=ke.ceil,mt=ke.floor,vt=Ee.getOwnPropertySymbols,yt=Ve?Ve.isBuffer:n,bt=t.isFinite,Dt=Pe.join,Ht=lr(Ee.keys,Ee),gr=ke.max,yr=ke.min,br=ie.now,wr=t.parseInt,Sr=ke.random,xr=Pe.reverse,_r=fa(t,"DataView"),$r=fa(t,"Map"),kr=fa(t,"Promise"),Er=fa(t,"Set"),jr=fa(t,"WeakMap"),Cr=fa(Ee,"create"),Or=jr&&new jr,Pr={},Nr=za(_r),Rr=za($r),Tr=za(kr),Ar=za(Er),Ir=za(jr),Mr=Ue?Ue.prototype:n,Fr=Mr?Mr.valueOf:n,zr=Mr?Mr.toString:n;function Dr(e){if(ts(e)&&!Wi(e)&&!(e instanceof Ur)){if(e instanceof Vr)return e;if(Ie.call(e,"__wrapped__"))return Da(e)}return new Vr(e)}var Lr=function(){function e(){}return function(t){if(!es(t))return{};if(He)return He(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Br(){}function Vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Ur(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Wr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function qr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Kr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Hr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Kr;++t<r;)this.add(e[t])}function Gr(e){var t=this.__data__=new qr(e);this.size=t.size}function Qr(e,t){var r=Wi(e),n=!r&&Ui(e),o=!r&&!n&&Gi(e),a=!r&&!n&&!o&&us(e),i=r||n||o||a,s=i?Jt(e.length,Ce):[],l=s.length;for(var u in e)!t&&!Ie.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ba(u,l))||s.push(u);return s}function Jr(e){var t=e.length;return t?e[Gn(0,t-1)]:n}function Yr(e,t){return Ia(Po(e),sn(t,0,e.length))}function Xr(e){return Ia(Po(e))}function Zr(e,t,r){(r!==n&&!Li(e[t],r)||r===n&&!(t in e))&&on(e,t,r)}function en(e,t,r){var o=e[t];Ie.call(e,t)&&Li(o,r)&&(r!==n||t in e)||on(e,t,r)}function tn(e,t){for(var r=e.length;r--;)if(Li(e[r][0],t))return r;return-1}function rn(e,t,r,n){return fn(e,(function(e,o,a){t(n,e,r(e),a)})),n}function nn(e,t){return e&&No(t,Ns(t),e)}function on(e,t,r){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function an(e,t){for(var o=-1,a=t.length,i=r(a),s=null==e;++o<a;)i[o]=s?n:Es(e,t[o]);return i}function sn(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ln(e,t,r,o,a,i){var s,l=1&t,u=2&t,c=4&t;if(r&&(s=a?r(e,o,a,i):r(e)),s!==n)return s;if(!es(e))return e;var d=Wi(e);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!l)return Po(e,s)}else{var f=ma(e),p=f==x||f==_;if(Gi(e))return $o(e,l);if(f==E||f==g||p&&!a){if(s=u||p?{}:ga(e),!l)return u?function(e,t){return No(e,ha(e),t)}(e,function(e,t){return e&&No(t,Rs(t),e)}(s,e)):function(e,t){return No(e,pa(e),t)}(e,nn(s,e))}else{if(!lt[f])return a?e:{};s=function(e,t,r){var n=e.constructor;switch(t){case T:return ko(e);case b:case w:return new n(+e);case A:return function(e,t){var r=t?ko(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case I:case M:case F:case z:case D:case L:case B:case V:case U:return Eo(e,r);case $:return new n;case k:case P:return new n(e);case C:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new n;case N:return o=e,Fr?Ee(Fr.call(o)):{}}var o}(e,f,l)}}i||(i=new Gr);var h=i.get(e);if(h)return h;i.set(e,s),is(e)?e.forEach((function(n){s.add(ln(n,t,r,n,e,i))})):rs(e)&&e.forEach((function(n,o){s.set(o,ln(n,t,r,o,e,i))}));var m=d?n:(c?u?aa:oa:u?Rs:Ns)(e);return Ct(m||e,(function(n,o){m&&(n=e[o=n]),en(s,o,ln(n,t,r,o,e,i))})),s}function un(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ee(e);o--;){var a=r[o],i=t[a],s=e[a];if(s===n&&!(a in e)||!i(s))return!1}return!0}function cn(e,t,r){if("function"!=typeof e)throw new Oe(o);return Na((function(){e.apply(n,r)}),t)}function dn(e,t,r,n){var o=-1,a=Rt,i=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=At(t,Xt(r))),n?(a=Tt,i=!1):t.length>=200&&(a=er,i=!1,t=new Hr(t));e:for(;++o<s;){var c=e[o],d=null==r?c:r(c);if(c=n||0!==c?c:0,i&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else a(t,d,n)||l.push(c)}return l}Dr.templateSettings={escape:Y,evaluate:X,interpolate:Z,variable:"",imports:{_:Dr}},Dr.prototype=Br.prototype,Dr.prototype.constructor=Dr,Vr.prototype=Lr(Br.prototype),Vr.prototype.constructor=Vr,Ur.prototype=Lr(Br.prototype),Ur.prototype.constructor=Ur,Wr.prototype.clear=function(){this.__data__=Cr?Cr(null):{},this.size=0},Wr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wr.prototype.get=function(e){var t=this.__data__;if(Cr){var r=t[e];return r===a?n:r}return Ie.call(t,e)?t[e]:n},Wr.prototype.has=function(e){var t=this.__data__;return Cr?t[e]!==n:Ie.call(t,e)},Wr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Cr&&t===n?a:t,this},qr.prototype.clear=function(){this.__data__=[],this.size=0},qr.prototype.delete=function(e){var t=this.__data__,r=tn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Qe.call(t,r,1),--this.size,!0)},qr.prototype.get=function(e){var t=this.__data__,r=tn(t,e);return r<0?n:t[r][1]},qr.prototype.has=function(e){return tn(this.__data__,e)>-1},qr.prototype.set=function(e,t){var r=this.__data__,n=tn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Kr.prototype.clear=function(){this.size=0,this.__data__={hash:new Wr,map:new($r||qr),string:new Wr}},Kr.prototype.delete=function(e){var t=ca(this,e).delete(e);return this.size-=t?1:0,t},Kr.prototype.get=function(e){return ca(this,e).get(e)},Kr.prototype.has=function(e){return ca(this,e).has(e)},Kr.prototype.set=function(e,t){var r=ca(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Hr.prototype.add=Hr.prototype.push=function(e){return this.__data__.set(e,a),this},Hr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.clear=function(){this.__data__=new qr,this.size=0},Gr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Gr.prototype.get=function(e){return this.__data__.get(e)},Gr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof qr){var n=r.__data__;if(!$r||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kr(n)}return r.set(e,t),this.size=r.size,this};var fn=Ao(wn),pn=Ao(Sn,!0);function hn(e,t){var r=!0;return fn(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function mn(e,t,r){for(var o=-1,a=e.length;++o<a;){var i=e[o],s=t(i);if(null!=s&&(l===n?s==s&&!ls(s):r(s,l)))var l=s,u=i}return u}function vn(e,t){var r=[];return fn(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function gn(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=ya),o||(o=[]);++a<i;){var s=e[a];t>0&&r(s)?t>1?gn(s,t-1,r,n,o):It(o,s):n||(o[o.length]=s)}return o}var yn=Io(),bn=Io(!0);function wn(e,t){return e&&yn(e,t,Ns)}function Sn(e,t){return e&&bn(e,t,Ns)}function xn(e,t){return Nt(t,(function(t){return Yi(e[t])}))}function _n(e,t){for(var r=0,o=(t=wo(t,e)).length;null!=e&&r<o;)e=e[Fa(t[r++])];return r&&r==o?e:n}function $n(e,t,r){var n=t(e);return Wi(e)?n:It(n,r(e))}function kn(e){return null==e?e===n?"[object Undefined]":"[object Null]":Xe&&Xe in Ee(e)?function(e){var t=Ie.call(e,Xe),r=e[Xe];try{e[Xe]=n;var o=!0}catch(e){}var a=ze.call(e);o&&(t?e[Xe]=r:delete e[Xe]);return a}(e):function(e){return ze.call(e)}(e)}function En(e,t){return e>t}function jn(e,t){return null!=e&&Ie.call(e,t)}function Cn(e,t){return null!=e&&t in Ee(e)}function On(e,t,o){for(var a=o?Tt:Rt,i=e[0].length,s=e.length,l=s,u=r(s),c=1/0,d=[];l--;){var f=e[l];l&&t&&(f=At(f,Xt(t))),c=yr(f.length,c),u[l]=!o&&(t||i>=120&&f.length>=120)?new Hr(l&&f):n}f=e[0];var p=-1,h=u[0];e:for(;++p<i&&d.length<c;){var m=f[p],v=t?t(m):m;if(m=o||0!==m?m:0,!(h?er(h,v):a(d,v,o))){for(l=s;--l;){var g=u[l];if(!(g?er(g,v):a(e[l],v,o)))continue e}h&&h.push(v),d.push(m)}}return d}function Pn(e,t,r){var o=null==(e=Ca(e,t=wo(t,e)))?e:e[Fa(Ja(t))];return null==o?n:Et(o,e,r)}function Nn(e){return ts(e)&&kn(e)==g}function Rn(e,t,r,o,a){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!=e&&t!=t:function(e,t,r,o,a,i){var s=Wi(e),l=Wi(t),u=s?y:ma(e),c=l?y:ma(t),d=(u=u==g?E:u)==E,f=(c=c==g?E:c)==E,p=u==c;if(p&&Gi(e)){if(!Gi(t))return!1;s=!0,d=!1}if(p&&!d)return i||(i=new Gr),s||us(e)?ra(e,t,r,o,a,i):function(e,t,r,n,o,a,i){switch(r){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!a(new We(e),new We(t)));case b:case w:case k:return Li(+e,+t);case S:return e.name==t.name&&e.message==t.message;case C:case P:return e==t+"";case $:var s=sr;case O:var l=1&n;if(s||(s=cr),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=2,i.set(e,t);var c=ra(s(e),s(t),n,o,a,i);return i.delete(e),c;case N:if(Fr)return Fr.call(e)==Fr.call(t)}return!1}(e,t,u,r,o,a,i);if(!(1&r)){var h=d&&Ie.call(e,"__wrapped__"),m=f&&Ie.call(t,"__wrapped__");if(h||m){var v=h?e.value():e,x=m?t.value():t;return i||(i=new Gr),a(v,x,r,o,i)}}if(!p)return!1;return i||(i=new Gr),function(e,t,r,o,a,i){var s=1&r,l=oa(e),u=l.length,c=oa(t),d=c.length;if(u!=d&&!s)return!1;var f=u;for(;f--;){var p=l[f];if(!(s?p in t:Ie.call(t,p)))return!1}var h=i.get(e),m=i.get(t);if(h&&m)return h==t&&m==e;var v=!0;i.set(e,t),i.set(t,e);var g=s;for(;++f<u;){var y=e[p=l[f]],b=t[p];if(o)var w=s?o(b,y,p,t,e,i):o(y,b,p,e,t,i);if(!(w===n?y===b||a(y,b,r,o,i):w)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var S=e.constructor,x=t.constructor;S==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof x&&x instanceof x||(v=!1)}return i.delete(e),i.delete(t),v}(e,t,r,o,a,i)}(e,t,r,o,Rn,a))}function Tn(e,t,r,o){var a=r.length,i=a,s=!o;if(null==e)return!i;for(e=Ee(e);a--;){var l=r[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){var u=(l=r[a])[0],c=e[u],d=l[1];if(s&&l[2]){if(c===n&&!(u in e))return!1}else{var f=new Gr;if(o)var p=o(c,d,u,e,t,f);if(!(p===n?Rn(d,c,3,o,f):p))return!1}}return!0}function An(e){return!(!es(e)||(t=e,Fe&&Fe in t))&&(Yi(e)?Be:ge).test(za(e));var t}function In(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?Wi(e)?Bn(e[0],e[1]):Ln(e):fl(e)}function Mn(e){if(!$a(e))return Ht(e);var t=[];for(var r in Ee(e))Ie.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Fn(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var r in Ee(e))t.push(r);return t}(e);var t=$a(e),r=[];for(var n in e)("constructor"!=n||!t&&Ie.call(e,n))&&r.push(n);return r}function zn(e,t){return e<t}function Dn(e,t){var n=-1,o=Ki(e)?r(e.length):[];return fn(e,(function(e,r,a){o[++n]=t(e,r,a)})),o}function Ln(e){var t=da(e);return 1==t.length&&t[0][2]?Ea(t[0][0],t[0][1]):function(r){return r===e||Tn(r,e,t)}}function Bn(e,t){return Sa(e)&&ka(t)?Ea(Fa(e),t):function(r){var o=Es(r,e);return o===n&&o===t?js(r,e):Rn(t,o,3)}}function Vn(e,t,r,o,a){e!==t&&yn(t,(function(i,s){if(a||(a=new Gr),es(i))!function(e,t,r,o,a,i,s){var l=Oa(e,r),u=Oa(t,r),c=s.get(u);if(c)return void Zr(e,r,c);var d=i?i(l,u,r+"",e,t,s):n,f=d===n;if(f){var p=Wi(u),h=!p&&Gi(u),m=!p&&!h&&us(u);d=u,p||h||m?Wi(l)?d=l:Hi(l)?d=Po(l):h?(f=!1,d=$o(u,!0)):m?(f=!1,d=Eo(u,!0)):d=[]:os(u)||Ui(u)?(d=l,Ui(l)?d=gs(l):es(l)&&!Yi(l)||(d=ga(u))):f=!1}f&&(s.set(u,d),a(d,u,o,i,s),s.delete(u));Zr(e,r,d)}(e,t,s,r,Vn,o,a);else{var l=o?o(Oa(e,s),i,s+"",e,t,a):n;l===n&&(l=i),Zr(e,s,l)}}),Rs)}function Un(e,t){var r=e.length;if(r)return ba(t+=t<0?r:0,r)?e[t]:n}function Wn(e,t,r){t=t.length?At(t,(function(e){return Wi(e)?function(t){return _n(t,1===e.length?e[0]:e)}:e})):[nl];var n=-1;t=At(t,Xt(ua()));var o=Dn(e,(function(e,r,o){var a=At(t,(function(t){return t(e)}));return{criteria:a,index:++n,value:e}}));return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(o,(function(e,t){return function(e,t,r){var n=-1,o=e.criteria,a=t.criteria,i=o.length,s=r.length;for(;++n<i;){var l=jo(o[n],a[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function qn(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],s=_n(e,i);r(s,i)&&Zn(a,wo(i,e),s)}return a}function Kn(e,t,r,n){var o=n?Ut:Vt,a=-1,i=t.length,s=e;for(e===t&&(t=Po(t)),r&&(s=At(e,Xt(r)));++a<i;)for(var l=0,u=t[a],c=r?r(u):u;(l=o(s,c,l,n))>-1;)s!==e&&Qe.call(s,l,1),Qe.call(e,l,1);return e}function Hn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==a){var a=o;ba(o)?Qe.call(e,o,1):fo(e,o)}}return e}function Gn(e,t){return e+mt(Sr()*(t-e+1))}function Qn(e,t){var r="";if(!e||t<1||t>p)return r;do{t%2&&(r+=e),(t=mt(t/2))&&(e+=e)}while(t);return r}function Jn(e,t){return Ra(ja(e,t,nl),e+"")}function Yn(e){return Jr(Ls(e))}function Xn(e,t){var r=Ls(e);return Ia(r,sn(t,0,r.length))}function Zn(e,t,r,o){if(!es(e))return e;for(var a=-1,i=(t=wo(t,e)).length,s=i-1,l=e;null!=l&&++a<i;){var u=Fa(t[a]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(a!=s){var d=l[u];(c=o?o(d,u,l):n)===n&&(c=es(d)?d:ba(t[a+1])?[]:{})}en(l,u,c),l=l[u]}return e}var eo=Or?function(e,t){return Or.set(e,t),e}:nl,to=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:nl;function ro(e){return Ia(Ls(e))}function no(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=r(a);++o<a;)i[o]=e[o+t];return i}function oo(e,t){var r;return fn(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function ao(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var a=n+o>>>1,i=e[a];null!==i&&!ls(i)&&(r?i<=t:i<t)?n=a+1:o=a}return o}return io(e,t,nl,r)}function io(e,t,r,o){var a=0,i=null==e?0:e.length;if(0===i)return 0;for(var s=(t=r(t))!=t,l=null===t,u=ls(t),c=t===n;a<i;){var d=mt((a+i)/2),f=r(e[d]),p=f!==n,h=null===f,m=f==f,v=ls(f);if(s)var g=o||m;else g=c?m&&(o||p):l?m&&p&&(o||!h):u?m&&p&&!h&&(o||!v):!h&&!v&&(o?f<=t:f<t);g?a=d+1:i=d}return yr(i,4294967294)}function so(e,t){for(var r=-1,n=e.length,o=0,a=[];++r<n;){var i=e[r],s=t?t(i):i;if(!r||!Li(s,l)){var l=s;a[o++]=0===i?0:i}}return a}function lo(e){return"number"==typeof e?e:ls(e)?h:+e}function uo(e){if("string"==typeof e)return e;if(Wi(e))return At(e,uo)+"";if(ls(e))return zr?zr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function co(e,t,r){var n=-1,o=Rt,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=Tt;else if(a>=200){var u=t?null:Jo(e);if(u)return cr(u);i=!1,o=er,l=new Hr}else l=t?[]:s;e:for(;++n<a;){var c=e[n],d=t?t(c):c;if(c=r||0!==c?c:0,i&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,r)||(l!==s&&l.push(d),s.push(c))}return s}function fo(e,t){return null==(e=Ca(e,t=wo(t,e)))||delete e[Fa(Ja(t))]}function po(e,t,r,n){return Zn(e,t,r(_n(e,t)),n)}function ho(e,t,r,n){for(var o=e.length,a=n?o:-1;(n?a--:++a<o)&&t(e[a],a,e););return r?no(e,n?0:a,n?a+1:o):no(e,n?a+1:0,n?o:a)}function mo(e,t){var r=e;return r instanceof Ur&&(r=r.value()),Mt(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),r)}function vo(e,t,n){var o=e.length;if(o<2)return o?co(e[0]):[];for(var a=-1,i=r(o);++a<o;)for(var s=e[a],l=-1;++l<o;)l!=a&&(i[a]=dn(i[a]||s,e[l],t,n));return co(gn(i,1),t,n)}function go(e,t,r){for(var o=-1,a=e.length,i=t.length,s={};++o<a;){var l=o<i?t[o]:n;r(s,e[o],l)}return s}function yo(e){return Hi(e)?e:[]}function bo(e){return"function"==typeof e?e:nl}function wo(e,t){return Wi(e)?e:Sa(e,t)?[e]:Ma(ys(e))}var So=Jn;function xo(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:no(e,t,r)}var _o=nt||function(e){return ht.clearTimeout(e)};function $o(e,t){if(t)return e.slice();var r=e.length,n=qe?qe(r):new e.constructor(r);return e.copy(n),n}function ko(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Eo(e,t){var r=t?ko(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function jo(e,t){if(e!==t){var r=e!==n,o=null===e,a=e==e,i=ls(e),s=t!==n,l=null===t,u=t==t,c=ls(t);if(!l&&!c&&!i&&e>t||i&&s&&u&&!l&&!c||o&&s&&u||!r&&u||!a)return 1;if(!o&&!i&&!c&&e<t||c&&r&&a&&!o&&!i||l&&r&&a||!s&&a||!u)return-1}return 0}function Co(e,t,n,o){for(var a=-1,i=e.length,s=n.length,l=-1,u=t.length,c=gr(i-s,0),d=r(u+c),f=!o;++l<u;)d[l]=t[l];for(;++a<s;)(f||a<i)&&(d[n[a]]=e[a]);for(;c--;)d[l++]=e[a++];return d}function Oo(e,t,n,o){for(var a=-1,i=e.length,s=-1,l=n.length,u=-1,c=t.length,d=gr(i-l,0),f=r(d+c),p=!o;++a<d;)f[a]=e[a];for(var h=a;++u<c;)f[h+u]=t[u];for(;++s<l;)(p||a<i)&&(f[h+n[s]]=e[a++]);return f}function Po(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function No(e,t,r,o){var a=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var l=t[i],u=o?o(r[l],e[l],l,r,e):n;u===n&&(u=e[l]),a?on(r,l,u):en(r,l,u)}return r}function Ro(e,t){return function(r,n){var o=Wi(r)?jt:rn,a=t?t():{};return o(r,e,ua(n,2),a)}}function To(e){return Jn((function(t,r){var o=-1,a=r.length,i=a>1?r[a-1]:n,s=a>2?r[2]:n;for(i=e.length>3&&"function"==typeof i?(a--,i):n,s&&wa(r[0],r[1],s)&&(i=a<3?n:i,a=1),t=Ee(t);++o<a;){var l=r[o];l&&e(t,l,o,i)}return t}))}function Ao(e,t){return function(r,n){if(null==r)return r;if(!Ki(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Ee(r);(t?a--:++a<o)&&!1!==n(i[a],a,i););return r}}function Io(e){return function(t,r,n){for(var o=-1,a=Ee(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}}function Mo(e){return function(t){var r=ir(t=ys(t))?pr(t):n,o=r?r[0]:t.charAt(0),a=r?xo(r,1).join(""):t.slice(1);return o[e]()+a}}function Fo(e){return function(t){return Mt(Ys(Us(t).replace(Ze,"")),e,"")}}function zo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Lr(e.prototype),n=e.apply(r,t);return es(n)?n:r}}function Do(e){return function(t,r,o){var a=Ee(t);if(!Ki(t)){var i=ua(r,3);t=Ns(t),r=function(e){return i(a[e],e,a)}}var s=e(t,r,o);return s>-1?a[i?t[s]:s]:n}}function Lo(e){return na((function(t){var r=t.length,a=r,i=Vr.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new Oe(o);if(i&&!l&&"wrapper"==sa(s))var l=new Vr([],!0)}for(a=l?a:r;++a<r;){var u=sa(s=t[a]),c="wrapper"==u?ia(s):n;l=c&&xa(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[sa(c[0])].apply(l,c[3]):1==s.length&&xa(s)?l[u]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Wi(n))return l.plant(n).value();for(var o=0,a=r?t[o].apply(this,e):n;++o<r;)a=t[o].call(this,a);return a}}))}function Bo(e,t,o,a,i,s,l,u,d,f){var p=t&c,h=1&t,m=2&t,v=24&t,g=512&t,y=m?n:zo(e);return function c(){for(var b=arguments.length,w=r(b),S=b;S--;)w[S]=arguments[S];if(v)var x=la(c),_=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(w,x);if(a&&(w=Co(w,a,i,v)),s&&(w=Oo(w,s,l,v)),b-=_,v&&b<f){var $=ur(w,x);return Go(e,t,Bo,c.placeholder,o,w,$,u,d,f-b)}var k=h?o:this,E=m?k[e]:e;return b=w.length,u?w=function(e,t){var r=e.length,o=yr(t.length,r),a=Po(e);for(;o--;){var i=t[o];e[o]=ba(i,r)?a[i]:n}return e}(w,u):g&&b>1&&w.reverse(),p&&d<b&&(w.length=d),this&&this!==ht&&this instanceof c&&(E=y||zo(E)),E.apply(k,w)}}function Vo(e,t){return function(r,n){return function(e,t,r,n){return wn(e,(function(e,o,a){t(n,r(e),o,a)})),n}(r,e,t(n),{})}}function Uo(e,t){return function(r,o){var a;if(r===n&&o===n)return t;if(r!==n&&(a=r),o!==n){if(a===n)return o;"string"==typeof r||"string"==typeof o?(r=uo(r),o=uo(o)):(r=lo(r),o=lo(o)),a=e(r,o)}return a}}function Wo(e){return na((function(t){return t=At(t,Xt(ua())),Jn((function(r){var n=this;return e(t,(function(e){return Et(e,n,r)}))}))}))}function qo(e,t){var r=(t=t===n?" ":uo(t)).length;if(r<2)return r?Qn(t,e):t;var o=Qn(t,pt(e/fr(t)));return ir(t)?xo(pr(o),0,e).join(""):o.slice(0,e)}function Ko(e){return function(t,o,a){return a&&"number"!=typeof a&&wa(t,o,a)&&(o=a=n),t=ps(t),o===n?(o=t,t=0):o=ps(o),function(e,t,n,o){for(var a=-1,i=gr(pt((t-e)/(n||1)),0),s=r(i);i--;)s[o?i:++a]=e,e+=n;return s}(t,o,a=a===n?t<o?1:-1:ps(a),e)}}function Ho(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=vs(t),r=vs(r)),e(t,r)}}function Go(e,t,r,o,a,i,s,c,d,f){var p=8&t;t|=p?l:u,4&(t&=~(p?u:l))||(t&=-4);var h=[e,t,a,p?i:n,p?s:n,p?n:i,p?n:s,c,d,f],m=r.apply(n,h);return xa(e)&&Pa(m,h),m.placeholder=o,Ta(m,e,t)}function Qo(e){var t=ke[e];return function(e,r){if(e=vs(e),(r=null==r?0:yr(hs(r),292))&&bt(e)){var n=(ys(e)+"e").split("e");return+((n=(ys(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Jo=Er&&1/cr(new Er([,-0]))[1]==f?function(e){return new Er(e)}:ll;function Yo(e){return function(t){var r=ma(t);return r==$?sr(t):r==O?dr(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xo(e,t,a,f,p,h,m,v){var g=2&t;if(!g&&"function"!=typeof e)throw new Oe(o);var y=f?f.length:0;if(y||(t&=-97,f=p=n),m=m===n?m:gr(hs(m),0),v=v===n?v:hs(v),y-=p?p.length:0,t&u){var b=f,w=p;f=p=n}var S=g?n:ia(e),x=[e,t,a,f,p,b,w,h,m,v];if(S&&function(e,t){var r=e[1],n=t[1],o=r|n,a=o<131,s=n==c&&8==r||n==c&&r==d&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!a&&!s)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Co(u,l,t[4]):l,e[4]=u?ur(e[3],i):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Oo(u,l,t[6]):l,e[6]=u?ur(e[5],i):t[6]);(l=t[7])&&(e[7]=l);n&c&&(e[8]=null==e[8]?t[8]:yr(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(x,S),e=x[0],t=x[1],a=x[2],f=x[3],p=x[4],!(v=x[9]=x[9]===n?g?0:e.length:gr(x[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==s?function(e,t,o){var a=zo(e);return function i(){for(var s=arguments.length,l=r(s),u=s,c=la(i);u--;)l[u]=arguments[u];var d=s<3&&l[0]!==c&&l[s-1]!==c?[]:ur(l,c);return(s-=d.length)<o?Go(e,t,Bo,i.placeholder,n,l,d,n,n,o-s):Et(this&&this!==ht&&this instanceof i?a:e,this,l)}}(e,t,v):t!=l&&33!=t||p.length?Bo.apply(n,x):function(e,t,n,o){var a=1&t,i=zo(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=o.length,d=r(c+l),f=this&&this!==ht&&this instanceof t?i:e;++u<c;)d[u]=o[u];for(;l--;)d[u++]=arguments[++s];return Et(f,a?n:this,d)}}(e,t,a,f);else var _=function(e,t,r){var n=1&t,o=zo(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,a);return Ta((S?eo:Pa)(_,x),e,t)}function Zo(e,t,r,o){return e===n||Li(e,Re[r])&&!Ie.call(o,r)?t:e}function ea(e,t,r,o,a,i){return es(e)&&es(t)&&(i.set(t,e),Vn(e,t,n,ea,i),i.delete(t)),e}function ta(e){return os(e)?n:e}function ra(e,t,r,o,a,i){var s=1&r,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,h=2&r?new Hr:n;for(i.set(e,t),i.set(t,e);++f<l;){var m=e[f],v=t[f];if(o)var g=s?o(v,m,f,t,e,i):o(m,v,f,e,t,i);if(g!==n){if(g)continue;p=!1;break}if(h){if(!zt(t,(function(e,t){if(!er(h,t)&&(m===e||a(m,e,r,o,i)))return h.push(t)}))){p=!1;break}}else if(m!==v&&!a(m,v,r,o,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function na(e){return Ra(ja(e,n,qa),e+"")}function oa(e){return $n(e,Ns,pa)}function aa(e){return $n(e,Rs,ha)}var ia=Or?function(e){return Or.get(e)}:ll;function sa(e){for(var t=e.name+"",r=Pr[t],n=Ie.call(Pr,t)?r.length:0;n--;){var o=r[n],a=o.func;if(null==a||a==e)return o.name}return t}function la(e){return(Ie.call(Dr,"placeholder")?Dr:e).placeholder}function ua(){var e=Dr.iteratee||ol;return e=e===ol?In:e,arguments.length?e(arguments[0],arguments[1]):e}function ca(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function da(e){for(var t=Ns(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,ka(o)]}return t}function fa(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return An(r)?r:n}var pa=vt?function(e){return null==e?[]:(e=Ee(e),Nt(vt(e),(function(t){return Ge.call(e,t)})))}:ml,ha=vt?function(e){for(var t=[];e;)It(t,pa(e)),e=Ke(e);return t}:ml,ma=kn;function va(e,t,r){for(var n=-1,o=(t=wo(t,e)).length,a=!1;++n<o;){var i=Fa(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&Zi(o)&&ba(i,o)&&(Wi(e)||Ui(e))}function ga(e){return"function"!=typeof e.constructor||$a(e)?{}:Lr(Ke(e))}function ya(e){return Wi(e)||Ui(e)||!!(Je&&e&&e[Je])}function ba(e,t){var r=typeof e;return!!(t=null==t?p:t)&&("number"==r||"symbol"!=r&&be.test(e))&&e>-1&&e%1==0&&e<t}function wa(e,t,r){if(!es(r))return!1;var n=typeof t;return!!("number"==n?Ki(r)&&ba(t,r.length):"string"==n&&t in r)&&Li(r[t],e)}function Sa(e,t){if(Wi(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ls(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ee(t))}function xa(e){var t=sa(e),r=Dr[t];if("function"!=typeof r||!(t in Ur.prototype))return!1;if(e===r)return!0;var n=ia(r);return!!n&&e===n[0]}(_r&&ma(new _r(new ArrayBuffer(1)))!=A||$r&&ma(new $r)!=$||kr&&ma(kr.resolve())!=j||Er&&ma(new Er)!=O||jr&&ma(new jr)!=R)&&(ma=function(e){var t=kn(e),r=t==E?e.constructor:n,o=r?za(r):"";if(o)switch(o){case Nr:return A;case Rr:return $;case Tr:return j;case Ar:return O;case Ir:return R}return t});var _a=Te?Yi:vl;function $a(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function ka(e){return e==e&&!es(e)}function Ea(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in Ee(r)))}}function ja(e,t,o){return t=gr(t===n?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=gr(n.length-t,0),s=r(i);++a<i;)s[a]=n[t+a];a=-1;for(var l=r(t+1);++a<t;)l[a]=n[a];return l[t]=o(s),Et(e,this,l)}}function Ca(e,t){return t.length<2?e:_n(e,no(t,0,-1))}function Oa(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pa=Aa(eo),Na=ft||function(e,t){return ht.setTimeout(e,t)},Ra=Aa(to);function Ta(e,t,r){var n=t+"";return Ra(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Ct(v,(function(r){var n="_."+r[0];t&r[1]&&!Rt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ue):[]}(n),r)))}function Aa(e){var t=0,r=0;return function(){var o=br(),a=16-(o-r);if(r=o,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ia(e,t){var r=-1,o=e.length,a=o-1;for(t=t===n?o:t;++r<t;){var i=Gn(r,a),s=e[i];e[i]=e[r],e[r]=s}return e.length=t,e}var Ma=function(e){var t=Ai(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,r,n,o){t.push(n?o.replace(fe,"$1"):r||e)})),t}));function Fa(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function za(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Da(e){if(e instanceof Ur)return e.clone();var t=new Vr(e.__wrapped__,e.__chain__);return t.__actions__=Po(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var La=Jn((function(e,t){return Hi(e)?dn(e,gn(t,1,Hi,!0)):[]})),Ba=Jn((function(e,t){var r=Ja(t);return Hi(r)&&(r=n),Hi(e)?dn(e,gn(t,1,Hi,!0),ua(r,2)):[]})),Va=Jn((function(e,t){var r=Ja(t);return Hi(r)&&(r=n),Hi(e)?dn(e,gn(t,1,Hi,!0),n,r):[]}));function Ua(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:hs(r);return o<0&&(o=gr(n+o,0)),Bt(e,ua(t,3),o)}function Wa(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var a=o-1;return r!==n&&(a=hs(r),a=r<0?gr(o+a,0):yr(a,o-1)),Bt(e,ua(t,3),a,!0)}function qa(e){return(null==e?0:e.length)?gn(e,1):[]}function Ka(e){return e&&e.length?e[0]:n}var Ha=Jn((function(e){var t=At(e,yo);return t.length&&t[0]===e[0]?On(t):[]})),Ga=Jn((function(e){var t=Ja(e),r=At(e,yo);return t===Ja(r)?t=n:r.pop(),r.length&&r[0]===e[0]?On(r,ua(t,2)):[]})),Qa=Jn((function(e){var t=Ja(e),r=At(e,yo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?On(r,n,t):[]}));function Ja(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ya=Jn(Xa);function Xa(e,t){return e&&e.length&&t&&t.length?Kn(e,t):e}var Za=na((function(e,t){var r=null==e?0:e.length,n=an(e,t);return Hn(e,At(t,(function(e){return ba(e,r)?+e:e})).sort(jo)),n}));function ei(e){return null==e?e:xr.call(e)}var ti=Jn((function(e){return co(gn(e,1,Hi,!0))})),ri=Jn((function(e){var t=Ja(e);return Hi(t)&&(t=n),co(gn(e,1,Hi,!0),ua(t,2))})),ni=Jn((function(e){var t=Ja(e);return t="function"==typeof t?t:n,co(gn(e,1,Hi,!0),n,t)}));function oi(e){if(!e||!e.length)return[];var t=0;return e=Nt(e,(function(e){if(Hi(e))return t=gr(e.length,t),!0})),Jt(t,(function(t){return At(e,Kt(t))}))}function ai(e,t){if(!e||!e.length)return[];var r=oi(e);return null==t?r:At(r,(function(e){return Et(t,n,e)}))}var ii=Jn((function(e,t){return Hi(e)?dn(e,t):[]})),si=Jn((function(e){return vo(Nt(e,Hi))})),li=Jn((function(e){var t=Ja(e);return Hi(t)&&(t=n),vo(Nt(e,Hi),ua(t,2))})),ui=Jn((function(e){var t=Ja(e);return t="function"==typeof t?t:n,vo(Nt(e,Hi),n,t)})),ci=Jn(oi);var di=Jn((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ai(e,r)}));function fi(e){var t=Dr(e);return t.__chain__=!0,t}function pi(e,t){return t(e)}var hi=na((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,a=function(t){return an(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Ur&&ba(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:pi,args:[a],thisArg:n}),new Vr(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(a)}));var mi=Ro((function(e,t,r){Ie.call(e,r)?++e[r]:on(e,r,1)}));var vi=Do(Ua),gi=Do(Wa);function yi(e,t){return(Wi(e)?Ct:fn)(e,ua(t,3))}function bi(e,t){return(Wi(e)?Ot:pn)(e,ua(t,3))}var wi=Ro((function(e,t,r){Ie.call(e,r)?e[r].push(t):on(e,r,[t])}));var Si=Jn((function(e,t,n){var o=-1,a="function"==typeof t,i=Ki(e)?r(e.length):[];return fn(e,(function(e){i[++o]=a?Et(t,e,n):Pn(e,t,n)})),i})),xi=Ro((function(e,t,r){on(e,r,t)}));function _i(e,t){return(Wi(e)?At:Dn)(e,ua(t,3))}var $i=Ro((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var ki=Jn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&wa(e,t[0],t[1])?t=[]:r>2&&wa(t[0],t[1],t[2])&&(t=[t[0]]),Wn(e,gn(t,1),[])})),Ei=ut||function(){return ht.Date.now()};function ji(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Xo(e,c,n,n,n,n,t)}function Ci(e,t){var r;if("function"!=typeof t)throw new Oe(o);return e=hs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Oi=Jn((function(e,t,r){var n=1;if(r.length){var o=ur(r,la(Oi));n|=l}return Xo(e,n,t,r,o)})),Pi=Jn((function(e,t,r){var n=3;if(r.length){var o=ur(r,la(Pi));n|=l}return Xo(t,n,e,r,o)}));function Ni(e,t,r){var a,i,s,l,u,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Oe(o);function m(t){var r=a,o=i;return a=i=n,d=t,l=e.apply(o,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||p&&e-d>=s}function g(){var e=Ei();if(v(e))return y(e);u=Na(g,function(e){var r=t-(e-c);return p?yr(r,s-(e-d)):r}(e))}function y(e){return u=n,h&&a?m(e):(a=i=n,l)}function b(){var e=Ei(),r=v(e);if(a=arguments,i=this,c=e,r){if(u===n)return function(e){return d=e,u=Na(g,t),f?m(e):l}(c);if(p)return _o(u),u=Na(g,t),m(c)}return u===n&&(u=Na(g,t)),l}return t=vs(t)||0,es(r)&&(f=!!r.leading,s=(p="maxWait"in r)?gr(vs(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h),b.cancel=function(){u!==n&&_o(u),d=0,a=c=i=u=n},b.flush=function(){return u===n?l:y(Ei())},b}var Ri=Jn((function(e,t){return cn(e,1,t)})),Ti=Jn((function(e,t,r){return cn(e,vs(t)||0,r)}));function Ai(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(o);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Ai.Cache||Kr),r}function Ii(e){if("function"!=typeof e)throw new Oe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ai.Cache=Kr;var Mi=So((function(e,t){var r=(t=1==t.length&&Wi(t[0])?At(t[0],Xt(ua())):At(gn(t,1),Xt(ua()))).length;return Jn((function(n){for(var o=-1,a=yr(n.length,r);++o<a;)n[o]=t[o].call(this,n[o]);return Et(e,this,n)}))})),Fi=Jn((function(e,t){var r=ur(t,la(Fi));return Xo(e,l,n,t,r)})),zi=Jn((function(e,t){var r=ur(t,la(zi));return Xo(e,u,n,t,r)})),Di=na((function(e,t){return Xo(e,d,n,n,n,t)}));function Li(e,t){return e===t||e!=e&&t!=t}var Bi=Ho(En),Vi=Ho((function(e,t){return e>=t})),Ui=Nn(function(){return arguments}())?Nn:function(e){return ts(e)&&Ie.call(e,"callee")&&!Ge.call(e,"callee")},Wi=r.isArray,qi=wt?Xt(wt):function(e){return ts(e)&&kn(e)==T};function Ki(e){return null!=e&&Zi(e.length)&&!Yi(e)}function Hi(e){return ts(e)&&Ki(e)}var Gi=yt||vl,Qi=St?Xt(St):function(e){return ts(e)&&kn(e)==w};function Ji(e){if(!ts(e))return!1;var t=kn(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Yi(e){if(!es(e))return!1;var t=kn(e);return t==x||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xi(e){return"number"==typeof e&&e==hs(e)}function Zi(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var rs=xt?Xt(xt):function(e){return ts(e)&&ma(e)==$};function ns(e){return"number"==typeof e||ts(e)&&kn(e)==k}function os(e){if(!ts(e)||kn(e)!=E)return!1;var t=Ke(e);if(null===t)return!0;var r=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ae.call(r)==De}var as=_t?Xt(_t):function(e){return ts(e)&&kn(e)==C};var is=$t?Xt($t):function(e){return ts(e)&&ma(e)==O};function ss(e){return"string"==typeof e||!Wi(e)&&ts(e)&&kn(e)==P}function ls(e){return"symbol"==typeof e||ts(e)&&kn(e)==N}var us=kt?Xt(kt):function(e){return ts(e)&&Zi(e.length)&&!!st[kn(e)]};var cs=Ho(zn),ds=Ho((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ki(e))return ss(e)?pr(e):Po(e);if(Ye&&e[Ye])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ye]());var t=ma(e);return(t==$?sr:t==O?cr:Ls)(e)}function ps(e){return e?(e=vs(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=ps(e),r=t%1;return t==t?r?t-r:t:0}function ms(e){return e?sn(hs(e),0,m):0}function vs(e){if("number"==typeof e)return e;if(ls(e))return h;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var r=ve.test(e);return r||ye.test(e)?dt(e.slice(2),r?2:8):me.test(e)?h:+e}function gs(e){return No(e,Rs(e))}function ys(e){return null==e?"":uo(e)}var bs=To((function(e,t){if($a(t)||Ki(t))No(t,Ns(t),e);else for(var r in t)Ie.call(t,r)&&en(e,r,t[r])})),ws=To((function(e,t){No(t,Rs(t),e)})),Ss=To((function(e,t,r,n){No(t,Rs(t),e,n)})),xs=To((function(e,t,r,n){No(t,Ns(t),e,n)})),_s=na(an);var $s=Jn((function(e,t){e=Ee(e);var r=-1,o=t.length,a=o>2?t[2]:n;for(a&&wa(t[0],t[1],a)&&(o=1);++r<o;)for(var i=t[r],s=Rs(i),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(d===n||Li(d,Re[c])&&!Ie.call(e,c))&&(e[c]=i[c])}return e})),ks=Jn((function(e){return e.push(n,ea),Et(As,n,e)}));function Es(e,t,r){var o=null==e?n:_n(e,t);return o===n?r:o}function js(e,t){return null!=e&&va(e,t,Cn)}var Cs=Vo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),e[t]=r}),el(nl)),Os=Vo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),Ie.call(e,t)?e[t].push(r):e[t]=[r]}),ua),Ps=Jn(Pn);function Ns(e){return Ki(e)?Qr(e):Mn(e)}function Rs(e){return Ki(e)?Qr(e,!0):Fn(e)}var Ts=To((function(e,t,r){Vn(e,t,r)})),As=To((function(e,t,r,n){Vn(e,t,r,n)})),Is=na((function(e,t){var r={};if(null==e)return r;var n=!1;t=At(t,(function(t){return t=wo(t,e),n||(n=t.length>1),t})),No(e,aa(e),r),n&&(r=ln(r,7,ta));for(var o=t.length;o--;)fo(r,t[o]);return r}));var Ms=na((function(e,t){return null==e?{}:function(e,t){return qn(e,t,(function(t,r){return js(e,r)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var r=At(aa(e),(function(e){return[e]}));return t=ua(t),qn(e,r,(function(e,r){return t(e,r[0])}))}var zs=Yo(Ns),Ds=Yo(Rs);function Ls(e){return null==e?[]:Zt(e,Ns(e))}var Bs=Fo((function(e,t,r){return t=t.toLowerCase(),e+(r?Vs(t):t)}));function Vs(e){return Js(ys(e).toLowerCase())}function Us(e){return(e=ys(e))&&e.replace(we,nr).replace(et,"")}var Ws=Fo((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),qs=Fo((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ks=Mo("toLowerCase");var Hs=Fo((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Gs=Fo((function(e,t,r){return e+(r?" ":"")+Js(t)}));var Qs=Fo((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Js=Mo("toUpperCase");function Ys(e,t,r){return e=ys(e),(t=r?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Xs=Jn((function(e,t){try{return Et(e,n,t)}catch(e){return Ji(e)?e:new _e(e)}})),Zs=na((function(e,t){return Ct(t,(function(t){t=Fa(t),on(e,t,Oi(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Lo(),rl=Lo(!0);function nl(e){return e}function ol(e){return In("function"==typeof e?e:ln(e,1))}var al=Jn((function(e,t){return function(r){return Pn(r,e,t)}})),il=Jn((function(e,t){return function(r){return Pn(e,r,t)}}));function sl(e,t,r){var n=Ns(t),o=xn(t,n);null!=r||es(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=xn(t,Ns(t)));var a=!(es(r)&&"chain"in r&&!r.chain),i=Yi(e);return Ct(o,(function(r){var n=t[r];e[r]=n,i&&(e.prototype[r]=function(){var t=this.__chain__;if(a||t){var r=e(this.__wrapped__);return(r.__actions__=Po(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,It([this.value()],arguments))})})),e}function ll(){}var ul=Wo(At),cl=Wo(Pt),dl=Wo(zt);function fl(e){return Sa(e)?Kt(Fa(e)):function(e){return function(t){return _n(t,e)}}(e)}var pl=Ko(),hl=Ko(!0);function ml(){return[]}function vl(){return!1}var gl=Uo((function(e,t){return e+t}),0),yl=Qo("ceil"),bl=Uo((function(e,t){return e/t}),1),wl=Qo("floor");var Sl,xl=Uo((function(e,t){return e*t}),1),_l=Qo("round"),$l=Uo((function(e,t){return e-t}),0);return Dr.after=function(e,t){if("function"!=typeof t)throw new Oe(o);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Dr.ary=ji,Dr.assign=bs,Dr.assignIn=ws,Dr.assignInWith=Ss,Dr.assignWith=xs,Dr.at=_s,Dr.before=Ci,Dr.bind=Oi,Dr.bindAll=Zs,Dr.bindKey=Pi,Dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wi(e)?e:[e]},Dr.chain=fi,Dr.chunk=function(e,t,o){t=(o?wa(e,t,o):t===n)?1:gr(hs(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var i=0,s=0,l=r(pt(a/t));i<a;)l[s++]=no(e,i,i+=t);return l},Dr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var a=e[t];a&&(o[n++]=a)}return o},Dr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return It(Wi(n)?Po(n):[n],gn(t,1))},Dr.cond=function(e){var t=null==e?0:e.length,r=ua();return e=t?At(e,(function(e){if("function"!=typeof e[1])throw new Oe(o);return[r(e[0]),e[1]]})):[],Jn((function(r){for(var n=-1;++n<t;){var o=e[n];if(Et(o[0],this,r))return Et(o[1],this,r)}}))},Dr.conforms=function(e){return function(e){var t=Ns(e);return function(r){return un(r,e,t)}}(ln(e,1))},Dr.constant=el,Dr.countBy=mi,Dr.create=function(e,t){var r=Lr(e);return null==t?r:nn(r,t)},Dr.curry=function e(t,r,o){var a=Xo(t,8,n,n,n,n,n,r=o?n:r);return a.placeholder=e.placeholder,a},Dr.curryRight=function e(t,r,o){var a=Xo(t,s,n,n,n,n,n,r=o?n:r);return a.placeholder=e.placeholder,a},Dr.debounce=Ni,Dr.defaults=$s,Dr.defaultsDeep=ks,Dr.defer=Ri,Dr.delay=Ti,Dr.difference=La,Dr.differenceBy=Ba,Dr.differenceWith=Va,Dr.drop=function(e,t,r){var o=null==e?0:e.length;return o?no(e,(t=r||t===n?1:hs(t))<0?0:t,o):[]},Dr.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?no(e,0,(t=o-(t=r||t===n?1:hs(t)))<0?0:t):[]},Dr.dropRightWhile=function(e,t){return e&&e.length?ho(e,ua(t,3),!0,!0):[]},Dr.dropWhile=function(e,t){return e&&e.length?ho(e,ua(t,3),!0):[]},Dr.fill=function(e,t,r,o){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&wa(e,t,r)&&(r=0,o=a),function(e,t,r,o){var a=e.length;for((r=hs(r))<0&&(r=-r>a?0:a+r),(o=o===n||o>a?a:hs(o))<0&&(o+=a),o=r>o?0:ms(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Dr.filter=function(e,t){return(Wi(e)?Nt:vn)(e,ua(t,3))},Dr.flatMap=function(e,t){return gn(_i(e,t),1)},Dr.flatMapDeep=function(e,t){return gn(_i(e,t),f)},Dr.flatMapDepth=function(e,t,r){return r=r===n?1:hs(r),gn(_i(e,t),r)},Dr.flatten=qa,Dr.flattenDeep=function(e){return(null==e?0:e.length)?gn(e,f):[]},Dr.flattenDepth=function(e,t){return(null==e?0:e.length)?gn(e,t=t===n?1:hs(t)):[]},Dr.flip=function(e){return Xo(e,512)},Dr.flow=tl,Dr.flowRight=rl,Dr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Dr.functions=function(e){return null==e?[]:xn(e,Ns(e))},Dr.functionsIn=function(e){return null==e?[]:xn(e,Rs(e))},Dr.groupBy=wi,Dr.initial=function(e){return(null==e?0:e.length)?no(e,0,-1):[]},Dr.intersection=Ha,Dr.intersectionBy=Ga,Dr.intersectionWith=Qa,Dr.invert=Cs,Dr.invertBy=Os,Dr.invokeMap=Si,Dr.iteratee=ol,Dr.keyBy=xi,Dr.keys=Ns,Dr.keysIn=Rs,Dr.map=_i,Dr.mapKeys=function(e,t){var r={};return t=ua(t,3),wn(e,(function(e,n,o){on(r,t(e,n,o),e)})),r},Dr.mapValues=function(e,t){var r={};return t=ua(t,3),wn(e,(function(e,n,o){on(r,n,t(e,n,o))})),r},Dr.matches=function(e){return Ln(ln(e,1))},Dr.matchesProperty=function(e,t){return Bn(e,ln(t,1))},Dr.memoize=Ai,Dr.merge=Ts,Dr.mergeWith=As,Dr.method=al,Dr.methodOf=il,Dr.mixin=sl,Dr.negate=Ii,Dr.nthArg=function(e){return e=hs(e),Jn((function(t){return Un(t,e)}))},Dr.omit=Is,Dr.omitBy=function(e,t){return Fs(e,Ii(ua(t)))},Dr.once=function(e){return Ci(2,e)},Dr.orderBy=function(e,t,r,o){return null==e?[]:(Wi(t)||(t=null==t?[]:[t]),Wi(r=o?n:r)||(r=null==r?[]:[r]),Wn(e,t,r))},Dr.over=ul,Dr.overArgs=Mi,Dr.overEvery=cl,Dr.overSome=dl,Dr.partial=Fi,Dr.partialRight=zi,Dr.partition=$i,Dr.pick=Ms,Dr.pickBy=Fs,Dr.property=fl,Dr.propertyOf=function(e){return function(t){return null==e?n:_n(e,t)}},Dr.pull=Ya,Dr.pullAll=Xa,Dr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Kn(e,t,ua(r,2)):e},Dr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Kn(e,t,n,r):e},Dr.pullAt=Za,Dr.range=pl,Dr.rangeRight=hl,Dr.rearg=Di,Dr.reject=function(e,t){return(Wi(e)?Nt:vn)(e,Ii(ua(t,3)))},Dr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],a=e.length;for(t=ua(t,3);++n<a;){var i=e[n];t(i,n,e)&&(r.push(i),o.push(n))}return Hn(e,o),r},Dr.rest=function(e,t){if("function"!=typeof e)throw new Oe(o);return Jn(e,t=t===n?t:hs(t))},Dr.reverse=ei,Dr.sampleSize=function(e,t,r){return t=(r?wa(e,t,r):t===n)?1:hs(t),(Wi(e)?Yr:Xn)(e,t)},Dr.set=function(e,t,r){return null==e?e:Zn(e,t,r)},Dr.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:Zn(e,t,r,o)},Dr.shuffle=function(e){return(Wi(e)?Xr:ro)(e)},Dr.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&wa(e,t,r)?(t=0,r=o):(t=null==t?0:hs(t),r=r===n?o:hs(r)),no(e,t,r)):[]},Dr.sortBy=ki,Dr.sortedUniq=function(e){return e&&e.length?so(e):[]},Dr.sortedUniqBy=function(e,t){return e&&e.length?so(e,ua(t,2)):[]},Dr.split=function(e,t,r){return r&&"number"!=typeof r&&wa(e,t,r)&&(t=r=n),(r=r===n?m:r>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=uo(t))&&ir(e)?xo(pr(e),0,r):e.split(t,r):[]},Dr.spread=function(e,t){if("function"!=typeof e)throw new Oe(o);return t=null==t?0:gr(hs(t),0),Jn((function(r){var n=r[t],o=xo(r,0,t);return n&&It(o,n),Et(e,this,o)}))},Dr.tail=function(e){var t=null==e?0:e.length;return t?no(e,1,t):[]},Dr.take=function(e,t,r){return e&&e.length?no(e,0,(t=r||t===n?1:hs(t))<0?0:t):[]},Dr.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?no(e,(t=o-(t=r||t===n?1:hs(t)))<0?0:t,o):[]},Dr.takeRightWhile=function(e,t){return e&&e.length?ho(e,ua(t,3),!1,!0):[]},Dr.takeWhile=function(e,t){return e&&e.length?ho(e,ua(t,3)):[]},Dr.tap=function(e,t){return t(e),e},Dr.throttle=function(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new Oe(o);return es(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Ni(e,t,{leading:n,maxWait:t,trailing:a})},Dr.thru=pi,Dr.toArray=fs,Dr.toPairs=zs,Dr.toPairsIn=Ds,Dr.toPath=function(e){return Wi(e)?At(e,Fa):ls(e)?[e]:Po(Ma(ys(e)))},Dr.toPlainObject=gs,Dr.transform=function(e,t,r){var n=Wi(e),o=n||Gi(e)||us(e);if(t=ua(t,4),null==r){var a=e&&e.constructor;r=o?n?new a:[]:es(e)&&Yi(a)?Lr(Ke(e)):{}}return(o?Ct:wn)(e,(function(e,n,o){return t(r,e,n,o)})),r},Dr.unary=function(e){return ji(e,1)},Dr.union=ti,Dr.unionBy=ri,Dr.unionWith=ni,Dr.uniq=function(e){return e&&e.length?co(e):[]},Dr.uniqBy=function(e,t){return e&&e.length?co(e,ua(t,2)):[]},Dr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?co(e,n,t):[]},Dr.unset=function(e,t){return null==e||fo(e,t)},Dr.unzip=oi,Dr.unzipWith=ai,Dr.update=function(e,t,r){return null==e?e:po(e,t,bo(r))},Dr.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:po(e,t,bo(r),o)},Dr.values=Ls,Dr.valuesIn=function(e){return null==e?[]:Zt(e,Rs(e))},Dr.without=ii,Dr.words=Ys,Dr.wrap=function(e,t){return Fi(bo(t),e)},Dr.xor=si,Dr.xorBy=li,Dr.xorWith=ui,Dr.zip=ci,Dr.zipObject=function(e,t){return go(e||[],t||[],en)},Dr.zipObjectDeep=function(e,t){return go(e||[],t||[],Zn)},Dr.zipWith=di,Dr.entries=zs,Dr.entriesIn=Ds,Dr.extend=ws,Dr.extendWith=Ss,sl(Dr,Dr),Dr.add=gl,Dr.attempt=Xs,Dr.camelCase=Bs,Dr.capitalize=Vs,Dr.ceil=yl,Dr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=vs(r))==r?r:0),t!==n&&(t=(t=vs(t))==t?t:0),sn(vs(e),t,r)},Dr.clone=function(e){return ln(e,4)},Dr.cloneDeep=function(e){return ln(e,5)},Dr.cloneDeepWith=function(e,t){return ln(e,5,t="function"==typeof t?t:n)},Dr.cloneWith=function(e,t){return ln(e,4,t="function"==typeof t?t:n)},Dr.conformsTo=function(e,t){return null==t||un(e,t,Ns(t))},Dr.deburr=Us,Dr.defaultTo=function(e,t){return null==e||e!=e?t:e},Dr.divide=bl,Dr.endsWith=function(e,t,r){e=ys(e),t=uo(t);var o=e.length,a=r=r===n?o:sn(hs(r),0,o);return(r-=t.length)>=0&&e.slice(r,a)==t},Dr.eq=Li,Dr.escape=function(e){return(e=ys(e))&&J.test(e)?e.replace(G,or):e},Dr.escapeRegExp=function(e){return(e=ys(e))&&oe.test(e)?e.replace(ne,"\\$&"):e},Dr.every=function(e,t,r){var o=Wi(e)?Pt:hn;return r&&wa(e,t,r)&&(t=n),o(e,ua(t,3))},Dr.find=vi,Dr.findIndex=Ua,Dr.findKey=function(e,t){return Lt(e,ua(t,3),wn)},Dr.findLast=gi,Dr.findLastIndex=Wa,Dr.findLastKey=function(e,t){return Lt(e,ua(t,3),Sn)},Dr.floor=wl,Dr.forEach=yi,Dr.forEachRight=bi,Dr.forIn=function(e,t){return null==e?e:yn(e,ua(t,3),Rs)},Dr.forInRight=function(e,t){return null==e?e:bn(e,ua(t,3),Rs)},Dr.forOwn=function(e,t){return e&&wn(e,ua(t,3))},Dr.forOwnRight=function(e,t){return e&&Sn(e,ua(t,3))},Dr.get=Es,Dr.gt=Bi,Dr.gte=Vi,Dr.has=function(e,t){return null!=e&&va(e,t,jn)},Dr.hasIn=js,Dr.head=Ka,Dr.identity=nl,Dr.includes=function(e,t,r,n){e=Ki(e)?e:Ls(e),r=r&&!n?hs(r):0;var o=e.length;return r<0&&(r=gr(o+r,0)),ss(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Vt(e,t,r)>-1},Dr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:hs(r);return o<0&&(o=gr(n+o,0)),Vt(e,t,o)},Dr.inRange=function(e,t,r){return t=ps(t),r===n?(r=t,t=0):r=ps(r),function(e,t,r){return e>=yr(t,r)&&e<gr(t,r)}(e=vs(e),t,r)},Dr.invoke=Ps,Dr.isArguments=Ui,Dr.isArray=Wi,Dr.isArrayBuffer=qi,Dr.isArrayLike=Ki,Dr.isArrayLikeObject=Hi,Dr.isBoolean=function(e){return!0===e||!1===e||ts(e)&&kn(e)==b},Dr.isBuffer=Gi,Dr.isDate=Qi,Dr.isElement=function(e){return ts(e)&&1===e.nodeType&&!os(e)},Dr.isEmpty=function(e){if(null==e)return!0;if(Ki(e)&&(Wi(e)||"string"==typeof e||"function"==typeof e.splice||Gi(e)||us(e)||Ui(e)))return!e.length;var t=ma(e);if(t==$||t==O)return!e.size;if($a(e))return!Mn(e).length;for(var r in e)if(Ie.call(e,r))return!1;return!0},Dr.isEqual=function(e,t){return Rn(e,t)},Dr.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Rn(e,t,n,r):!!o},Dr.isError=Ji,Dr.isFinite=function(e){return"number"==typeof e&&bt(e)},Dr.isFunction=Yi,Dr.isInteger=Xi,Dr.isLength=Zi,Dr.isMap=rs,Dr.isMatch=function(e,t){return e===t||Tn(e,t,da(t))},Dr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Tn(e,t,da(t),r)},Dr.isNaN=function(e){return ns(e)&&e!=+e},Dr.isNative=function(e){if(_a(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return An(e)},Dr.isNil=function(e){return null==e},Dr.isNull=function(e){return null===e},Dr.isNumber=ns,Dr.isObject=es,Dr.isObjectLike=ts,Dr.isPlainObject=os,Dr.isRegExp=as,Dr.isSafeInteger=function(e){return Xi(e)&&e>=-9007199254740991&&e<=p},Dr.isSet=is,Dr.isString=ss,Dr.isSymbol=ls,Dr.isTypedArray=us,Dr.isUndefined=function(e){return e===n},Dr.isWeakMap=function(e){return ts(e)&&ma(e)==R},Dr.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==kn(e)},Dr.join=function(e,t){return null==e?"":Dt.call(e,t)},Dr.kebabCase=Ws,Dr.last=Ja,Dr.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var a=o;return r!==n&&(a=(a=hs(r))<0?gr(o+a,0):yr(a,o-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,a):Bt(e,Wt,a,!0)},Dr.lowerCase=qs,Dr.lowerFirst=Ks,Dr.lt=cs,Dr.lte=ds,Dr.max=function(e){return e&&e.length?mn(e,nl,En):n},Dr.maxBy=function(e,t){return e&&e.length?mn(e,ua(t,2),En):n},Dr.mean=function(e){return qt(e,nl)},Dr.meanBy=function(e,t){return qt(e,ua(t,2))},Dr.min=function(e){return e&&e.length?mn(e,nl,zn):n},Dr.minBy=function(e,t){return e&&e.length?mn(e,ua(t,2),zn):n},Dr.stubArray=ml,Dr.stubFalse=vl,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=xl,Dr.nth=function(e,t){return e&&e.length?Un(e,hs(t)):n},Dr.noConflict=function(){return ht._===this&&(ht._=Le),this},Dr.noop=ll,Dr.now=Ei,Dr.pad=function(e,t,r){e=ys(e);var n=(t=hs(t))?fr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return qo(mt(o),r)+e+qo(pt(o),r)},Dr.padEnd=function(e,t,r){e=ys(e);var n=(t=hs(t))?fr(e):0;return t&&n<t?e+qo(t-n,r):e},Dr.padStart=function(e,t,r){e=ys(e);var n=(t=hs(t))?fr(e):0;return t&&n<t?qo(t-n,r)+e:e},Dr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),wr(ys(e).replace(ae,""),t||0)},Dr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&wa(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ps(e),t===n?(t=e,e=0):t=ps(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var a=Sr();return yr(e+a*(t-e+ct("1e-"+((a+"").length-1))),t)}return Gn(e,t)},Dr.reduce=function(e,t,r){var n=Wi(e)?Mt:Gt,o=arguments.length<3;return n(e,ua(t,4),r,o,fn)},Dr.reduceRight=function(e,t,r){var n=Wi(e)?Ft:Gt,o=arguments.length<3;return n(e,ua(t,4),r,o,pn)},Dr.repeat=function(e,t,r){return t=(r?wa(e,t,r):t===n)?1:hs(t),Qn(ys(e),t)},Dr.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dr.result=function(e,t,r){var o=-1,a=(t=wo(t,e)).length;for(a||(a=1,e=n);++o<a;){var i=null==e?n:e[Fa(t[o])];i===n&&(o=a,i=r),e=Yi(i)?i.call(e):i}return e},Dr.round=_l,Dr.runInContext=e,Dr.sample=function(e){return(Wi(e)?Jr:Yn)(e)},Dr.size=function(e){if(null==e)return 0;if(Ki(e))return ss(e)?fr(e):e.length;var t=ma(e);return t==$||t==O?e.size:Mn(e).length},Dr.snakeCase=Hs,Dr.some=function(e,t,r){var o=Wi(e)?zt:oo;return r&&wa(e,t,r)&&(t=n),o(e,ua(t,3))},Dr.sortedIndex=function(e,t){return ao(e,t)},Dr.sortedIndexBy=function(e,t,r){return io(e,t,ua(r,2))},Dr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ao(e,t);if(n<r&&Li(e[n],t))return n}return-1},Dr.sortedLastIndex=function(e,t){return ao(e,t,!0)},Dr.sortedLastIndexBy=function(e,t,r){return io(e,t,ua(r,2),!0)},Dr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=ao(e,t,!0)-1;if(Li(e[r],t))return r}return-1},Dr.startCase=Gs,Dr.startsWith=function(e,t,r){return e=ys(e),r=null==r?0:sn(hs(r),0,e.length),t=uo(t),e.slice(r,r+t.length)==t},Dr.subtract=$l,Dr.sum=function(e){return e&&e.length?Qt(e,nl):0},Dr.sumBy=function(e,t){return e&&e.length?Qt(e,ua(t,2)):0},Dr.template=function(e,t,r){var o=Dr.templateSettings;r&&wa(e,t,r)&&(t=n),e=ys(e),t=Ss({},t,o,Zo);var a,i,s=Ss({},t.imports,o.imports,Zo),l=Ns(s),u=Zt(s,l),c=0,d=t.interpolate||Se,f="__p += '",p=je((t.escape||Se).source+"|"+d.source+"|"+(d===Z?pe:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),h="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(p,(function(t,r,n,o,s,l){return n||(n=o),f+=e.slice(c,l).replace(xe,ar),r&&(a=!0,f+="' +\n__e("+r+") +\n'"),s&&(i=!0,f+="';\n"+s+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),f+="';\n";var m=Ie.call(t,"variable")&&t.variable;if(m){if(de.test(m))throw new _e("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(W,""):f).replace(q,"$1").replace(K,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Xs((function(){return $e(l,h+"return "+f).apply(n,u)}));if(v.source=f,Ji(v))throw v;return v},Dr.times=function(e,t){if((e=hs(e))<1||e>p)return[];var r=m,n=yr(e,m);t=ua(t),e-=m;for(var o=Jt(n,t);++r<e;)t(r);return o},Dr.toFinite=ps,Dr.toInteger=hs,Dr.toLength=ms,Dr.toLower=function(e){return ys(e).toLowerCase()},Dr.toNumber=vs,Dr.toSafeInteger=function(e){return e?sn(hs(e),-9007199254740991,p):0===e?e:0},Dr.toString=ys,Dr.toUpper=function(e){return ys(e).toUpperCase()},Dr.trim=function(e,t,r){if((e=ys(e))&&(r||t===n))return Yt(e);if(!e||!(t=uo(t)))return e;var o=pr(e),a=pr(t);return xo(o,tr(o,a),rr(o,a)+1).join("")},Dr.trimEnd=function(e,t,r){if((e=ys(e))&&(r||t===n))return e.slice(0,hr(e)+1);if(!e||!(t=uo(t)))return e;var o=pr(e);return xo(o,0,rr(o,pr(t))+1).join("")},Dr.trimStart=function(e,t,r){if((e=ys(e))&&(r||t===n))return e.replace(ae,"");if(!e||!(t=uo(t)))return e;var o=pr(e);return xo(o,tr(o,pr(t))).join("")},Dr.truncate=function(e,t){var r=30,o="...";if(es(t)){var a="separator"in t?t.separator:a;r="length"in t?hs(t.length):r,o="omission"in t?uo(t.omission):o}var i=(e=ys(e)).length;if(ir(e)){var s=pr(e);i=s.length}if(r>=i)return e;var l=r-fr(o);if(l<1)return o;var u=s?xo(s,0,l).join(""):e.slice(0,l);if(a===n)return u+o;if(s&&(l+=u.length-l),as(a)){if(e.slice(l).search(a)){var c,d=u;for(a.global||(a=je(a.source,ys(he.exec(a))+"g")),a.lastIndex=0;c=a.exec(d);)var f=c.index;u=u.slice(0,f===n?l:f)}}else if(e.indexOf(uo(a),l)!=l){var p=u.lastIndexOf(a);p>-1&&(u=u.slice(0,p))}return u+o},Dr.unescape=function(e){return(e=ys(e))&&Q.test(e)?e.replace(H,mr):e},Dr.uniqueId=function(e){var t=++Me;return ys(e)+t},Dr.upperCase=Qs,Dr.upperFirst=Js,Dr.each=yi,Dr.eachRight=bi,Dr.first=Ka,sl(Dr,(Sl={},wn(Dr,(function(e,t){Ie.call(Dr.prototype,t)||(Sl[t]=e)})),Sl),{chain:!1}),Dr.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Dr[e].placeholder=Dr})),Ct(["drop","take"],(function(e,t){Ur.prototype[e]=function(r){r=r===n?1:gr(hs(r),0);var o=this.__filtered__&&!t?new Ur(this):this.clone();return o.__filtered__?o.__takeCount__=yr(r,o.__takeCount__):o.__views__.push({size:yr(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Ur.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Ur.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ua(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Ct(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Ur.prototype[e]=function(){return this[r](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Ur.prototype[e]=function(){return this.__filtered__?new Ur(this):this[r](1)}})),Ur.prototype.compact=function(){return this.filter(nl)},Ur.prototype.find=function(e){return this.filter(e).head()},Ur.prototype.findLast=function(e){return this.reverse().find(e)},Ur.prototype.invokeMap=Jn((function(e,t){return"function"==typeof e?new Ur(this):this.map((function(r){return Pn(r,e,t)}))})),Ur.prototype.reject=function(e){return this.filter(Ii(ua(e)))},Ur.prototype.slice=function(e,t){e=hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Ur(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Ur.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ur.prototype.toArray=function(){return this.take(m)},wn(Ur.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=Dr[o?"take"+("last"==t?"Right":""):t],i=o||/^find/.test(t);a&&(Dr.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,l=t instanceof Ur,u=s[0],c=l||Wi(t),d=function(e){var t=a.apply(Dr,It([e],s));return o&&f?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,p=!!this.__actions__.length,h=i&&!f,m=l&&!p;if(!i&&c){t=m?t:new Ur(this);var v=e.apply(t,s);return v.__actions__.push({func:pi,args:[d],thisArg:n}),new Vr(v,f)}return h&&m?e.apply(this,s):(v=this.thru(d),h?o?v.value()[0]:v.value():v)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Dr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(Wi(o)?o:[],e)}return this[r]((function(r){return t.apply(Wi(r)?r:[],e)}))}})),wn(Ur.prototype,(function(e,t){var r=Dr[t];if(r){var n=r.name+"";Ie.call(Pr,n)||(Pr[n]=[]),Pr[n].push({name:t,func:r})}})),Pr[Bo(n,2).name]=[{name:"wrapper",func:n}],Ur.prototype.clone=function(){var e=new Ur(this.__wrapped__);return e.__actions__=Po(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Po(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Po(this.__views__),e},Ur.prototype.reverse=function(){if(this.__filtered__){var e=new Ur(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Ur.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Wi(e),n=t<0,o=r?e.length:0,a=function(e,t,r){var n=-1,o=r.length;for(;++n<o;){var a=r[n],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=yr(t,e+i);break;case"takeRight":e=gr(e,t-i)}}return{start:e,end:t}}(0,o,this.__views__),i=a.start,s=a.end,l=s-i,u=n?s:i-1,c=this.__iteratees__,d=c.length,f=0,p=yr(l,this.__takeCount__);if(!r||!n&&o==l&&p==l)return mo(e,this.__actions__);var h=[];e:for(;l--&&f<p;){for(var m=-1,v=e[u+=t];++m<d;){var g=c[m],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}h[f++]=v}return h},Dr.prototype.at=hi,Dr.prototype.chain=function(){return fi(this)},Dr.prototype.commit=function(){return new Vr(this.value(),this.__chain__)},Dr.prototype.next=function(){this.__values__===n&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Dr.prototype.plant=function(e){for(var t,r=this;r instanceof Br;){var o=Da(r);o.__index__=0,o.__values__=n,t?a.__wrapped__=o:t=o;var a=o;r=r.__wrapped__}return a.__wrapped__=e,t},Dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Ur){var t=e;return this.__actions__.length&&(t=new Ur(this)),(t=t.reverse()).__actions__.push({func:pi,args:[ei],thisArg:n}),new Vr(t,this.__chain__)}return this.thru(ei)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Ye&&(Dr.prototype[Ye]=function(){return this}),Dr}();vt?((vt.exports=vr)._=vr,mt._=vr):ht._=vr}).call(r)}(Dj,zj);class Bj{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let t=Array.isArray(e)&&e.length>0||"string"==typeof e?Lv(this.errorSchema,e):this.errorSchema;return!t&&e&&(t={},IS(this.errorSchema,e,t)),t}resetAllErrors(e){return this.errorSchema=e?GS(e):{},this}addErrors(e,t){const r=this.getOrCreateErrorBlock(t);let n=Lv(r,ud);return Array.isArray(n)||(n=[],r[ud]=n),Array.isArray(e)?n.push(...e):n.push(e),this}setErrors(e,t){const r=this.getOrCreateErrorBlock(t),n=Array.isArray(e)?[...e]:[e];return IS(r,ud,n),this}clearErrors(e){const t=this.getOrCreateErrorBlock(e);return IS(t,ud,[]),this}}function Vj(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||0===e.minimum)&&(t.min=e.minimum),(e.maximum||0===e.maximum)&&(t.max=e.maximum),t}function Uj(e,t,r={},n=!0){const o=Object.assign({type:t||"text"},Vj(e));return r.inputType?o.type=r.inputType:t||("number"===e.type?(o.type="number",n&&void 0===o.step&&(o.step="any")):"integer"===e.type&&(o.type="number",void 0===o.step&&(o.step=1))),r.autocomplete&&(o.autoComplete=r.autocomplete),o}const Wj={props:{disabled:!1},submitText:"Submit",norender:!1};function qj(e={}){const t=_d(e);if(t&&t[gd]){const e=t[gd];return Object.assign(Object.assign({},Wj),e)}return Wj}function Kj(e,t,r={}){const{templates:n}=t;return"ButtonTemplates"===e?n[e]:r[e]||n[e]}var Hj={},Gj={get exports(){return Hj},set exports(e){Hj=e}},Qj={},Jj=a,Yj=Symbol.for("react.element"),Xj=Symbol.for("react.fragment"),Zj=Object.prototype.hasOwnProperty,eC=Jj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tC={key:!0,ref:!0,__self:!0,__source:!0};function rC(e,t,r){var n,o={},a=null,i=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)Zj.call(t,n)&&!tC.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Yj,type:e,key:a,ref:i,props:o,_owner:eC.current}}Qj.Fragment=Xj,Qj.jsx=rC,Qj.jsxs=rC,function(e){e.exports=Qj}(Gj);var nC,oC={},aC={get exports(){return oC},set exports(e){oC=e}},iC={},sC=Symbol.for("react.element"),lC=Symbol.for("react.portal"),uC=Symbol.for("react.fragment"),cC=Symbol.for("react.strict_mode"),dC=Symbol.for("react.profiler"),fC=Symbol.for("react.provider"),pC=Symbol.for("react.context"),hC=Symbol.for("react.server_context"),mC=Symbol.for("react.forward_ref"),vC=Symbol.for("react.suspense"),gC=Symbol.for("react.suspense_list"),yC=Symbol.for("react.memo"),bC=Symbol.for("react.lazy"),wC=Symbol.for("react.offscreen");function SC(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case sC:switch(e=e.type){case uC:case dC:case cC:case vC:case gC:return e;default:switch(e=e&&e.$$typeof){case hC:case pC:case mC:case bC:case yC:case fC:return e;default:return t}}case lC:return t}}}nC=Symbol.for("react.module.reference"),iC.ContextConsumer=pC,iC.ContextProvider=fC,iC.Element=sC,iC.ForwardRef=mC,iC.Fragment=uC,iC.Lazy=bC,iC.Memo=yC,iC.Portal=lC,iC.Profiler=dC,iC.StrictMode=cC,iC.Suspense=vC,iC.SuspenseList=gC,iC.isAsyncMode=function(){return!1},iC.isConcurrentMode=function(){return!1},iC.isContextConsumer=function(e){return SC(e)===pC},iC.isContextProvider=function(e){return SC(e)===fC},iC.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===sC},iC.isForwardRef=function(e){return SC(e)===mC},iC.isFragment=function(e){return SC(e)===uC},iC.isLazy=function(e){return SC(e)===bC},iC.isMemo=function(e){return SC(e)===yC},iC.isPortal=function(e){return SC(e)===lC},iC.isProfiler=function(e){return SC(e)===dC},iC.isStrictMode=function(e){return SC(e)===cC},iC.isSuspense=function(e){return SC(e)===vC},iC.isSuspenseList=function(e){return SC(e)===gC},iC.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===uC||e===dC||e===cC||e===vC||e===gC||e===wC||"object"==typeof e&&null!==e&&(e.$$typeof===bC||e.$$typeof===yC||e.$$typeof===fC||e.$$typeof===pC||e.$$typeof===mC||e.$$typeof===nC||void 0!==e.getModuleId)},iC.typeOf=SC,function(e){e.exports=iC}(aC);var xC=n(oC);const _C={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 $C(e,t,r={}){const n=ej(e);if("function"==typeof t||t&&xC.isForwardRef(a.createElement(t))||xC.isMemo(t))return function(e){let t=Lv(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=t=>{var{options:n}=t,o=ov(t,["options"]);return Hj.jsx(e,Object.assign({options:Object.assign(Object.assign({},r),n)},o))},IS(e,"MergedWidget",t)}return t}(t);if("string"!=typeof t)throw new Error("Unsupported widget definition: "+typeof t);if(t in r){return $C(e,r[t],r)}if("string"==typeof n){if(!(n in _C))throw new Error(`No widget for type '${n}'`);if(t in _C[n]){return $C(e,r[_C[n][t]],r)}}throw new Error(`No widget '${t}' for type '${n}'`)}function kC(e,t){return`${cw(e)?e:e[cd]}__${t}`}function EC(e){return kC(e,"description")}function jC(e){return kC(e,"error")}function CC(e){return kC(e,"examples")}function OC(e){return kC(e,"help")}function PC(e){return kC(e,"title")}function NC(e,t=!1){const r=t?` ${CC(e)}`:"";return`${jC(e)} ${EC(e)} ${OC(e)}${r}`}function RC(e,t){return`${e}-${t}`}function TC(e,t,r){return t?r:e}function AC(e){const t=e;if(t.enumNames,e.enum)return e.enum.map(((e,r)=>({label:t.enumNames&&t.enumNames[r]||String(e),value:e})));const r=e.oneOf||e.anyOf;return r&&r.map((e=>{const t=e,r=function(e){if(ld in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(ad in e)return e.const;throw new Error("schema cannot be inferred as a constant")}(t);return{schema:t,label:t.title||String(r),value:r}}))}function IC(e,t){let r=String(e);for(;r.length<t;)r="0"+r;return r}function MC(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 FC(e){if(e.const)return!0;if(e.enum&&1===e.enum.length&&!0===e.enum[0])return!0;if(e.anyOf&&1===e.anyOf.length)return FC(e.anyOf[0]);if(e.oneOf&&1===e.oneOf.length)return FC(e.oneOf[0]);if(e.allOf){const t=e=>FC(e);return e.allOf.some(t)}return!1}function zC(e,t=!0){const{year:r,month:n,day:o,hour:a=0,minute:i=0,second:s=0}=e,l=Date.UTC(r,n-1,o,a,i,s),u=new Date(l).toJSON();return t?u:u.slice(0,10)}function DC(e,t=[]){if(!e)return[];let r=[];return ud in e&&(r=r.concat(e[ud].map((e=>{const r=`.${t.join(".")}`;return{property:r,message:e,stack:`${r} ${e}`}})))),Object.keys(e).reduce(((r,n)=>{if(n!==ud){const o=e[n];Xd(o)&&(r=r.concat(DC(o,[...t,n])))}return r}),r)}var LC=wv,BC=Tg,VC=oh,UC=sv,WC=bv,qC=Iv,KC=Cv;var HC,GC=function(e){return VC(e)?LC(e,qC):UC(e)?[e]:BC(WC(KC(e)))};function QC(e){return Object.keys(e).reduce(((t,r)=>{if("addError"===r)return t;{const n=e[r];return Xd(n)?Object.assign(Object.assign({},t),{[r]:QC(n)}):Object.assign(Object.assign({},t),{[r]:n})}}),{})}function JC(e){if(!e)return"";const t=new Date(e);return`${IC(t.getFullYear(),4)}-${IC(t.getMonth()+1,2)}-${IC(t.getDate(),2)}T${IC(t.getHours(),2)}:${IC(t.getMinutes(),2)}:${IC(t.getSeconds(),2)}.${IC(t.getMilliseconds(),3)}`}function YC(e,t){if(!t)return e;const{errors:r,errorSchema:n}=e;let o=DC(t),a=t;return Jv(n)||(a=vj(n,t,!0),o=[...r].concat(o)),{errorSchema:a,errors:o}}function XC(e){return Array.isArray(e)?function(e){for(let t=0;t<e.length;t++)e[t]=XC(e[t]);return e}([...e]):xf(e)?function(e){for(const t in e){const r=e,n=r[t];t===yd&&"string"==typeof n&&n.startsWith("#")?r[t]=wd+n:r[t]=XC(n)}return e}(Object.assign({},e)):e}!function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",e.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",e.FilesInfo="<strong>%1</strong> (%2, %3 bytes)"}(HC||(HC={}));var ZC,eO={},tO={get exports(){return eO},set exports(e){eO=e}},rO={},nO={},oO={},aO={},iO={},sO={};function lO(){return ZC||(ZC=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(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)s(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const a=new n("+");function i(e,...t){const r=[u(e[0])];let o=0;for(;o<t.length;)r.push(a),s(r,t[o]),r.push(a,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function s(e,t){t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push(function(e){return"number"==typeof e||"boolean"==typeof e||null===e?e:u(Array.isArray(e)?e.join(","):e)}(t))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new n(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new n(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(sO)),sO}var uO,cO,dO={};function fO(){return uO||(uO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=lO();class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=a;const i=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,n);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,(r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(o,a,i={},s){let l=t.nil;for(const u in o){const c=o[u];if(!c)continue;const d=i[u]=i[u]||new Map;c.forEach((o=>{if(d.has(o))return;d.set(o,n.Started);let i=a(o);if(i){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${r} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(o)))throw new r(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,n.Completed)}))}return l}}}(dO)),dO}function pO(){return cO||(cO=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=lO(),r=fO();var n=lO();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=fO();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.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 a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class i extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=O(this.rhs,e,r),this}get names(){return C(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class c extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=O(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(P(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>j(e,t.names)),{})}}class h extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends p{}class v extends h{}v.kind="else";class g extends h{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof g?t:t.nodes:this.nodes.length?this:new g(N(e),t instanceof g?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=O(this.condition,e,t),this}get names(){const e=super.names;return C(e,this.condition),this.else&&j(e,this.else.names),e}}g.kind="if";class y extends h{}y.kind="for";class b extends y{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=O(this.iteration,e,t),this}get names(){return j(super.names,this.iteration.names)}}class w extends y{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:a}=this;return`for(${t} ${n}=${o}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=C(super.names,this.from);return C(e,this.to)}}class S extends y{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=O(this.iterable,e,t),this}get names(){return j(super.names,this.iterable.names)}}class x extends h{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class _ extends p{render(e){return"return "+super.render(e)}}_.kind="return";class $ extends h{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&j(e,this.catch.names),this.finally&&j(e,this.finally.names),e}}class k extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.kind="catch";class E extends h{render(e){return"finally"+super.render(e)}}E.kind="finally";function j(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function C(e,r){return r instanceof t._CodeOrName?j(e,r.names):e}function O(e,r,n){return e instanceof t.Name?o(e):function(e){return e instanceof t._Code&&e._items.some((e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str]))}(e)?new t._Code(e._items.reduce(((e,r)=>(r instanceof t.Name&&(r=o(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e)),[])):e;function o(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function P(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${I(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new i(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new s(e,t,r))}add(t,r){return this._leafNode(new l(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new g(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new g(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const i=this._scope.toName(e);return this._for(new w(a,i,t,n),(()=>o(i)))}forOf(e,n,o,a=r.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,(r=>{this.var(i,t._`${e}[${r}]`),o(i)}))}return this._for(new S("of",a,i,n),(()=>o(i)))}forIn(e,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const i=this._scope.toName(e);return this._for(new S("in",a,i,n),(()=>o(i)))}endFor(){return this._endBlockNode(y)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new c(e))}return(e){const t=new _;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new $;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new k(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(k,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new x(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=N;const R=A(e.operators.AND);e.and=function(...e){return e.reduce(R)};const T=A(e.operators.OR);function A(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${I(r)} ${e} ${I(n)}`}function I(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(T)}}(iO)),iO}var hO={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=pO(),r=lO();function n(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||f(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function i(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:e,mergeToName:r,mergeValues:n,resultToName:o}){return(a,i,s,l)=>{const u=void 0===s?i:s instanceof t.Name?(i instanceof t.Name?e(a,i,s):r(a,i,s),s):i instanceof t.Name?(r(a,s,i),i):n(i,s);return l!==t.Name||u instanceof t.Name?u:o(a,u)}}function l(e,r){if(!0===r)return e.var("props",!0);const n=e.var("props",t._`{}`);return void 0!==r&&u(e,n,r),n}function u(e,r,n){Object.keys(n).forEach((n=>e.assign(t._`${r}${(0,t.getProperty)(n)}`,!0)))}e.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=n,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:r},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return t._`${n}`}return t._`${e}${r}${(0,t.getProperty)(o)}`},e.unescapeFragment=function(e){return i(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(a(e))},e.escapeJsonPointer=a,e.unescapeJsonPointer=i,e.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},e.mergeEvaluated={props:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>{e.if(t._`${r} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,t._`${n} || {}`).code(t._`Object.assign(${n}, ${r})`)))})),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>{!0===r?e.assign(n,!0):(e.assign(n,t._`${n} || {}`),u(e,n,r))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>e.assign(n,t._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`))),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>e.assign(n,!0===r||t._`${n} > ${r} ? ${n} : ${r}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=l,e.setEvaluated=u;const c={};var d;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:c[t.code]||(c[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d=e.Type||(e.Type={})),e.getErrorPath=function(e,r,n){if(e instanceof t.Name){const o=r===d.Num;return n?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,t.getProperty)(e).toString():"/"+a(e)},e.checkStrictMode=f}(hO);var mO,vO,gO,yO={};function bO(){if(mO)return yO;mO=1,Object.defineProperty(yO,"__esModule",{value:!0});const e=pO(),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 yO.default=t,yO}function wO(){return vO||(vO=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=pO(),r=hO,n=bO();function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,t._`[${o}]`)),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function a(e,r){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,i,l){const{it:u}=r,{gen:c,compositeRule:d,allErrors:f}=u,p=s(r,n,i);(null!=l?l:d||f)?o(c,p):a(u,t._`[${p}]`)},e.reportExtraError=function(t,r=e.keywordError,i){const{it:l}=t,{gen:u,compositeRule:c,allErrors:d}=l;o(u,s(t,r,i)),c||d||a(l,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,(()=>e.if(r,(()=>e.assign(t._`${n.default.vErrors}.length`,r)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:a,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,n.default.errors,(i=>{e.const(l,t._`${n.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(n.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${r}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,a))}))};const i={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 s(e,r,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,r,o={}){const{gen:a,it:s}=e,c=[l(s,o),u(e,o)];return function(e,{params:r,message:o},a){const{keyword:s,data:l,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:h}=c;a.push([i.keyword,s],[i.params,"function"==typeof r?r(e):r||t._`{}`]),d.messages&&a.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&a.push([i.schema,u],[i.parentSchema,t._`${p}${h}`],[n.default.data,l]);f&&a.push([i.propertyName,f])}(e,r,c),a.object(...c)}(e,r,o)}function l({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${(0,r.getErrorPath)(o,r.Type.Str)}`:e;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,a)]}function u({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:a}){let s=a?n:t.str`${n}/${e}`;return o&&(s=t.str`${s}${(0,r.getErrorPath)(o,r.Type.Str)}`),[i.schemaPath,s]}}(aO)),aO}var SO={},xO={};Object.defineProperty(xO,"__esModule",{value:!0}),xO.getRules=xO.isJSONType=void 0;const _O=new Set(["string","number","integer","boolean","null","object","array"]);xO.isJSONType=function(e){return"string"==typeof e&&_O.has(e)},xO.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var $O,kO={};function EO(){if($O)return kO;function e(e,r){return r.rules.some((r=>t(e,r)))}function t(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}return $O=1,Object.defineProperty(kO,"__esModule",{value:!0}),kO.shouldUseRule=kO.shouldUseGroup=kO.schemaHasRulesForType=void 0,kO.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},kO.shouldUseGroup=e,kO.shouldUseRule=t,kO}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=xO,r=EO(),n=wO(),o=pO(),a=hO;var i;function s(e){const r=Array.isArray(e)?e:e?[e]:[];if(r.every(t.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(i=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){const t=s(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=s,e.coerceAndCheckDataType=function(e,t){const{gen:n,data:a,opts:s}=e,u=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),d=t.length>0&&!(0===u.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(d){const r=c(t,a,s.strictNumbers,i.Wrong);n.if(r,(()=>{u.length?function(e,t,r){const{gen:n,data:a,opts:i}=e,s=n.let("dataType",o._`typeof ${a}`),u=n.let("coerced",o._`undefined`);"array"===i.coerceTypes&&n.if(o._`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>n.assign(a,o._`${a}[0]`).assign(s,o._`typeof ${a}`).if(c(t,a,i.strictNumbers),(()=>n.assign(u,a)))));n.if(o._`${u} !== undefined`);for(const e of r)(l.has(e)||"array"===e&&"array"===i.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void n.elseIf(o._`${s} == "number" || ${s} == "boolean"`).assign(u,o._`"" + ${a}`).elseIf(o._`${a} === null`).assign(u,o._`""`);case"number":return void n.elseIf(o._`${s} == "boolean" || ${a} === null
44
+ !function(e,t){(function(){var n,o="Expected a function",a="__lodash_hash_undefined__",i="__lodash_placeholder__",s=16,l=32,u=64,c=128,d=256,f=1/0,p=9007199254740991,h=NaN,m=4294967295,v=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",l],["partialRight",u],["rearg",d]],g="[object Arguments]",y="[object Array]",b="[object Boolean]",w="[object Date]",S="[object Error]",x="[object Function]",_="[object GeneratorFunction]",$="[object Map]",k="[object Number]",E="[object Object]",j="[object Promise]",C="[object RegExp]",O="[object Set]",P="[object String]",N="[object Symbol]",R="[object WeakMap]",T="[object ArrayBuffer]",A="[object DataView]",I="[object Float32Array]",M="[object Float64Array]",F="[object Int8Array]",z="[object Int16Array]",D="[object Int32Array]",L="[object Uint8Array]",B="[object Uint8ClampedArray]",V="[object Uint16Array]",U="[object Uint32Array]",W=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,Q=RegExp(H.source),J=RegExp(G.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ne.source),ae=/^\s+/,ie=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",je="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Oe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['’]",Ne="["+_e+"]",Re="["+Oe+"]",Te="["+$e+"]",Ae="\\d+",Ie="["+ke+"]",Me="["+Ee+"]",Fe="[^"+_e+Oe+Ae+ke+Ee+je+"]",ze="\\ud83c[\\udffb-\\udfff]",De="[^"+_e+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+je+"]",Ue="\\u200d",We="(?:"+Me+"|"+Fe+")",qe="(?:"+Ve+"|"+Fe+")",Ke="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Te+"|"+ze+")"+"?",Qe="["+Ce+"]?",Je=Qe+Ge+("(?:"+Ue+"(?:"+[De,Le,Be].join("|")+")"+Qe+Ge+")*"),Ye="(?:"+[Ie,Le,Be].join("|")+")"+Je,Xe="(?:"+[De+Te+"?",Te,Le,Be,Ne].join("|")+")",Ze=RegExp(Pe,"g"),et=RegExp(Te,"g"),tt=RegExp(ze+"(?="+ze+")|"+Xe+Je,"g"),rt=RegExp([Ve+"?"+Me+"+"+Ke+"(?="+[Re,Ve,"$"].join("|")+")",qe+"+"+He+"(?="+[Re,Ve+We,"$"].join("|")+")",Ve+"?"+We+"+"+Ke,Ve+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Ye].join("|"),"g"),nt=RegExp("["+Ue+_e+$e+Ce+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,st={};st[I]=st[M]=st[F]=st[z]=st[D]=st[L]=st[B]=st[V]=st[U]=!0,st[g]=st[y]=st[T]=st[b]=st[A]=st[w]=st[S]=st[x]=st[$]=st[k]=st[E]=st[C]=st[O]=st[P]=st[R]=!1;var lt={};lt[g]=lt[y]=lt[T]=lt[A]=lt[b]=lt[w]=lt[I]=lt[M]=lt[F]=lt[z]=lt[D]=lt[$]=lt[k]=lt[E]=lt[C]=lt[O]=lt[P]=lt[N]=lt[L]=lt[B]=lt[V]=lt[U]=!0,lt[S]=lt[x]=lt[R]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,dt=parseInt,ft="object"==typeof r&&r&&r.Object===Object&&r,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=ft||pt||Function("return this")(),mt=t&&!t.nodeType&&t,vt=mt&&e&&!e.nodeType&&e,gt=vt&&vt.exports===mt,yt=gt&&ft.process,bt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),wt=bt&&bt.isArrayBuffer,St=bt&&bt.isDate,xt=bt&&bt.isMap,_t=bt&&bt.isRegExp,$t=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Et(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)}function jt(e,t,r,n){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function Ct(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Ot(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Pt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Nt(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function Rt(e,t){return!!(null==e?0:e.length)&&Vt(e,t,0)>-1}function Tt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function At(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function It(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Mt(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r}function Ft(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function zt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Dt=Kt("length");function Lt(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function Bt(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}function Vt(e,t,r){return t==t?function(e,t,r){var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):Bt(e,Wt,r)}function Ut(e,t,r,n){for(var o=r-1,a=e.length;++o<a;)if(n(e[o],t))return o;return-1}function Wt(e){return e!=e}function qt(e,t){var r=null==e?0:e.length;return r?Qt(e,t)/r:h}function Kt(e){return function(t){return null==t?n:t[e]}}function Ht(e){return function(t){return null==e?n:e[t]}}function Gt(e,t,r,n,o){return o(e,(function(e,o,a){r=n?(n=!1,e):t(r,e,o,a)})),r}function Qt(e,t){for(var r,o=-1,a=e.length;++o<a;){var i=t(e[o]);i!==n&&(r=r===n?i:r+i)}return r}function Jt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Yt(e){return e?e.slice(0,hr(e)+1).replace(ae,""):e}function Xt(e){return function(t){return e(t)}}function Zt(e,t){return At(t,(function(t){return e[t]}))}function er(e,t){return e.has(t)}function tr(e,t){for(var r=-1,n=e.length;++r<n&&Vt(t,e[r],0)>-1;);return r}function rr(e,t){for(var r=e.length;r--&&Vt(t,e[r],0)>-1;);return r}var nr=Ht({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),or=Ht({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ar(e){return"\\"+ut[e]}function ir(e){return nt.test(e)}function sr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function lr(e,t){return function(r){return e(t(r))}}function ur(e,t){for(var r=-1,n=e.length,o=0,a=[];++r<n;){var s=e[r];s!==t&&s!==i||(e[r]=i,a[o++]=r)}return a}function cr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function dr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function fr(e){return ir(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Dt(e)}function pr(e){return ir(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function hr(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var mr=Ht({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var vr=function e(t){var r=(t=null==t?ht:vr.defaults(ht.Object(),t,vr.pick(ht,at))).Array,ie=t.Date,_e=t.Error,$e=t.Function,ke=t.Math,Ee=t.Object,je=t.RegExp,Ce=t.String,Oe=t.TypeError,Pe=r.prototype,Ne=$e.prototype,Re=Ee.prototype,Te=t["__core-js_shared__"],Ae=Ne.toString,Ie=Re.hasOwnProperty,Me=0,Fe=function(){var e=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ze=Re.toString,De=Ae.call(Ee),Le=ht._,Be=je("^"+Ae.call(Ie).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=gt?t.Buffer:n,Ue=t.Symbol,We=t.Uint8Array,qe=Ve?Ve.allocUnsafe:n,Ke=lr(Ee.getPrototypeOf,Ee),He=Ee.create,Ge=Re.propertyIsEnumerable,Qe=Pe.splice,Je=Ue?Ue.isConcatSpreadable:n,Ye=Ue?Ue.iterator:n,Xe=Ue?Ue.toStringTag:n,tt=function(){try{var e=fa(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),nt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,ut=ie&&ie.now!==ht.Date.now&&ie.now,ft=t.setTimeout!==ht.setTimeout&&t.setTimeout,pt=ke.ceil,mt=ke.floor,vt=Ee.getOwnPropertySymbols,yt=Ve?Ve.isBuffer:n,bt=t.isFinite,Dt=Pe.join,Ht=lr(Ee.keys,Ee),gr=ke.max,yr=ke.min,br=ie.now,wr=t.parseInt,Sr=ke.random,xr=Pe.reverse,_r=fa(t,"DataView"),$r=fa(t,"Map"),kr=fa(t,"Promise"),Er=fa(t,"Set"),jr=fa(t,"WeakMap"),Cr=fa(Ee,"create"),Or=jr&&new jr,Pr={},Nr=za(_r),Rr=za($r),Tr=za(kr),Ar=za(Er),Ir=za(jr),Mr=Ue?Ue.prototype:n,Fr=Mr?Mr.valueOf:n,zr=Mr?Mr.toString:n;function Dr(e){if(ts(e)&&!Wi(e)&&!(e instanceof Ur)){if(e instanceof Vr)return e;if(Ie.call(e,"__wrapped__"))return Da(e)}return new Vr(e)}var Lr=function(){function e(){}return function(t){if(!es(t))return{};if(He)return He(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Br(){}function Vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Ur(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Wr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function qr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Kr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Hr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Kr;++t<r;)this.add(e[t])}function Gr(e){var t=this.__data__=new qr(e);this.size=t.size}function Qr(e,t){var r=Wi(e),n=!r&&Ui(e),o=!r&&!n&&Gi(e),a=!r&&!n&&!o&&us(e),i=r||n||o||a,s=i?Jt(e.length,Ce):[],l=s.length;for(var u in e)!t&&!Ie.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ba(u,l))||s.push(u);return s}function Jr(e){var t=e.length;return t?e[Gn(0,t-1)]:n}function Yr(e,t){return Ia(Po(e),sn(t,0,e.length))}function Xr(e){return Ia(Po(e))}function Zr(e,t,r){(r!==n&&!Li(e[t],r)||r===n&&!(t in e))&&on(e,t,r)}function en(e,t,r){var o=e[t];Ie.call(e,t)&&Li(o,r)&&(r!==n||t in e)||on(e,t,r)}function tn(e,t){for(var r=e.length;r--;)if(Li(e[r][0],t))return r;return-1}function rn(e,t,r,n){return fn(e,(function(e,o,a){t(n,e,r(e),a)})),n}function nn(e,t){return e&&No(t,Ns(t),e)}function on(e,t,r){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function an(e,t){for(var o=-1,a=t.length,i=r(a),s=null==e;++o<a;)i[o]=s?n:Es(e,t[o]);return i}function sn(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ln(e,t,r,o,a,i){var s,l=1&t,u=2&t,c=4&t;if(r&&(s=a?r(e,o,a,i):r(e)),s!==n)return s;if(!es(e))return e;var d=Wi(e);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!l)return Po(e,s)}else{var f=ma(e),p=f==x||f==_;if(Gi(e))return $o(e,l);if(f==E||f==g||p&&!a){if(s=u||p?{}:ga(e),!l)return u?function(e,t){return No(e,ha(e),t)}(e,function(e,t){return e&&No(t,Rs(t),e)}(s,e)):function(e,t){return No(e,pa(e),t)}(e,nn(s,e))}else{if(!lt[f])return a?e:{};s=function(e,t,r){var n=e.constructor;switch(t){case T:return ko(e);case b:case w:return new n(+e);case A:return function(e,t){var r=t?ko(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case I:case M:case F:case z:case D:case L:case B:case V:case U:return Eo(e,r);case $:return new n;case k:case P:return new n(e);case C:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new n;case N:return o=e,Fr?Ee(Fr.call(o)):{}}var o}(e,f,l)}}i||(i=new Gr);var h=i.get(e);if(h)return h;i.set(e,s),is(e)?e.forEach((function(n){s.add(ln(n,t,r,n,e,i))})):rs(e)&&e.forEach((function(n,o){s.set(o,ln(n,t,r,o,e,i))}));var m=d?n:(c?u?aa:oa:u?Rs:Ns)(e);return Ct(m||e,(function(n,o){m&&(n=e[o=n]),en(s,o,ln(n,t,r,o,e,i))})),s}function un(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ee(e);o--;){var a=r[o],i=t[a],s=e[a];if(s===n&&!(a in e)||!i(s))return!1}return!0}function cn(e,t,r){if("function"!=typeof e)throw new Oe(o);return Na((function(){e.apply(n,r)}),t)}function dn(e,t,r,n){var o=-1,a=Rt,i=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=At(t,Xt(r))),n?(a=Tt,i=!1):t.length>=200&&(a=er,i=!1,t=new Hr(t));e:for(;++o<s;){var c=e[o],d=null==r?c:r(c);if(c=n||0!==c?c:0,i&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else a(t,d,n)||l.push(c)}return l}Dr.templateSettings={escape:Y,evaluate:X,interpolate:Z,variable:"",imports:{_:Dr}},Dr.prototype=Br.prototype,Dr.prototype.constructor=Dr,Vr.prototype=Lr(Br.prototype),Vr.prototype.constructor=Vr,Ur.prototype=Lr(Br.prototype),Ur.prototype.constructor=Ur,Wr.prototype.clear=function(){this.__data__=Cr?Cr(null):{},this.size=0},Wr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wr.prototype.get=function(e){var t=this.__data__;if(Cr){var r=t[e];return r===a?n:r}return Ie.call(t,e)?t[e]:n},Wr.prototype.has=function(e){var t=this.__data__;return Cr?t[e]!==n:Ie.call(t,e)},Wr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Cr&&t===n?a:t,this},qr.prototype.clear=function(){this.__data__=[],this.size=0},qr.prototype.delete=function(e){var t=this.__data__,r=tn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Qe.call(t,r,1),--this.size,!0)},qr.prototype.get=function(e){var t=this.__data__,r=tn(t,e);return r<0?n:t[r][1]},qr.prototype.has=function(e){return tn(this.__data__,e)>-1},qr.prototype.set=function(e,t){var r=this.__data__,n=tn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Kr.prototype.clear=function(){this.size=0,this.__data__={hash:new Wr,map:new($r||qr),string:new Wr}},Kr.prototype.delete=function(e){var t=ca(this,e).delete(e);return this.size-=t?1:0,t},Kr.prototype.get=function(e){return ca(this,e).get(e)},Kr.prototype.has=function(e){return ca(this,e).has(e)},Kr.prototype.set=function(e,t){var r=ca(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Hr.prototype.add=Hr.prototype.push=function(e){return this.__data__.set(e,a),this},Hr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.clear=function(){this.__data__=new qr,this.size=0},Gr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Gr.prototype.get=function(e){return this.__data__.get(e)},Gr.prototype.has=function(e){return this.__data__.has(e)},Gr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof qr){var n=r.__data__;if(!$r||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kr(n)}return r.set(e,t),this.size=r.size,this};var fn=Ao(wn),pn=Ao(Sn,!0);function hn(e,t){var r=!0;return fn(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function mn(e,t,r){for(var o=-1,a=e.length;++o<a;){var i=e[o],s=t(i);if(null!=s&&(l===n?s==s&&!ls(s):r(s,l)))var l=s,u=i}return u}function vn(e,t){var r=[];return fn(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function gn(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=ya),o||(o=[]);++a<i;){var s=e[a];t>0&&r(s)?t>1?gn(s,t-1,r,n,o):It(o,s):n||(o[o.length]=s)}return o}var yn=Io(),bn=Io(!0);function wn(e,t){return e&&yn(e,t,Ns)}function Sn(e,t){return e&&bn(e,t,Ns)}function xn(e,t){return Nt(t,(function(t){return Yi(e[t])}))}function _n(e,t){for(var r=0,o=(t=wo(t,e)).length;null!=e&&r<o;)e=e[Fa(t[r++])];return r&&r==o?e:n}function $n(e,t,r){var n=t(e);return Wi(e)?n:It(n,r(e))}function kn(e){return null==e?e===n?"[object Undefined]":"[object Null]":Xe&&Xe in Ee(e)?function(e){var t=Ie.call(e,Xe),r=e[Xe];try{e[Xe]=n;var o=!0}catch(e){}var a=ze.call(e);o&&(t?e[Xe]=r:delete e[Xe]);return a}(e):function(e){return ze.call(e)}(e)}function En(e,t){return e>t}function jn(e,t){return null!=e&&Ie.call(e,t)}function Cn(e,t){return null!=e&&t in Ee(e)}function On(e,t,o){for(var a=o?Tt:Rt,i=e[0].length,s=e.length,l=s,u=r(s),c=1/0,d=[];l--;){var f=e[l];l&&t&&(f=At(f,Xt(t))),c=yr(f.length,c),u[l]=!o&&(t||i>=120&&f.length>=120)?new Hr(l&&f):n}f=e[0];var p=-1,h=u[0];e:for(;++p<i&&d.length<c;){var m=f[p],v=t?t(m):m;if(m=o||0!==m?m:0,!(h?er(h,v):a(d,v,o))){for(l=s;--l;){var g=u[l];if(!(g?er(g,v):a(e[l],v,o)))continue e}h&&h.push(v),d.push(m)}}return d}function Pn(e,t,r){var o=null==(e=Ca(e,t=wo(t,e)))?e:e[Fa(Ja(t))];return null==o?n:Et(o,e,r)}function Nn(e){return ts(e)&&kn(e)==g}function Rn(e,t,r,o,a){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!=e&&t!=t:function(e,t,r,o,a,i){var s=Wi(e),l=Wi(t),u=s?y:ma(e),c=l?y:ma(t),d=(u=u==g?E:u)==E,f=(c=c==g?E:c)==E,p=u==c;if(p&&Gi(e)){if(!Gi(t))return!1;s=!0,d=!1}if(p&&!d)return i||(i=new Gr),s||us(e)?ra(e,t,r,o,a,i):function(e,t,r,n,o,a,i){switch(r){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!a(new We(e),new We(t)));case b:case w:case k:return Li(+e,+t);case S:return e.name==t.name&&e.message==t.message;case C:case P:return e==t+"";case $:var s=sr;case O:var l=1&n;if(s||(s=cr),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=2,i.set(e,t);var c=ra(s(e),s(t),n,o,a,i);return i.delete(e),c;case N:if(Fr)return Fr.call(e)==Fr.call(t)}return!1}(e,t,u,r,o,a,i);if(!(1&r)){var h=d&&Ie.call(e,"__wrapped__"),m=f&&Ie.call(t,"__wrapped__");if(h||m){var v=h?e.value():e,x=m?t.value():t;return i||(i=new Gr),a(v,x,r,o,i)}}if(!p)return!1;return i||(i=new Gr),function(e,t,r,o,a,i){var s=1&r,l=oa(e),u=l.length,c=oa(t),d=c.length;if(u!=d&&!s)return!1;var f=u;for(;f--;){var p=l[f];if(!(s?p in t:Ie.call(t,p)))return!1}var h=i.get(e),m=i.get(t);if(h&&m)return h==t&&m==e;var v=!0;i.set(e,t),i.set(t,e);var g=s;for(;++f<u;){var y=e[p=l[f]],b=t[p];if(o)var w=s?o(b,y,p,t,e,i):o(y,b,p,e,t,i);if(!(w===n?y===b||a(y,b,r,o,i):w)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var S=e.constructor,x=t.constructor;S==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof x&&x instanceof x||(v=!1)}return i.delete(e),i.delete(t),v}(e,t,r,o,a,i)}(e,t,r,o,Rn,a))}function Tn(e,t,r,o){var a=r.length,i=a,s=!o;if(null==e)return!i;for(e=Ee(e);a--;){var l=r[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){var u=(l=r[a])[0],c=e[u],d=l[1];if(s&&l[2]){if(c===n&&!(u in e))return!1}else{var f=new Gr;if(o)var p=o(c,d,u,e,t,f);if(!(p===n?Rn(d,c,3,o,f):p))return!1}}return!0}function An(e){return!(!es(e)||(t=e,Fe&&Fe in t))&&(Yi(e)?Be:ge).test(za(e));var t}function In(e){return"function"==typeof e?e:null==e?nl:"object"==typeof e?Wi(e)?Bn(e[0],e[1]):Ln(e):fl(e)}function Mn(e){if(!$a(e))return Ht(e);var t=[];for(var r in Ee(e))Ie.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Fn(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var r in Ee(e))t.push(r);return t}(e);var t=$a(e),r=[];for(var n in e)("constructor"!=n||!t&&Ie.call(e,n))&&r.push(n);return r}function zn(e,t){return e<t}function Dn(e,t){var n=-1,o=Ki(e)?r(e.length):[];return fn(e,(function(e,r,a){o[++n]=t(e,r,a)})),o}function Ln(e){var t=da(e);return 1==t.length&&t[0][2]?Ea(t[0][0],t[0][1]):function(r){return r===e||Tn(r,e,t)}}function Bn(e,t){return Sa(e)&&ka(t)?Ea(Fa(e),t):function(r){var o=Es(r,e);return o===n&&o===t?js(r,e):Rn(t,o,3)}}function Vn(e,t,r,o,a){e!==t&&yn(t,(function(i,s){if(a||(a=new Gr),es(i))!function(e,t,r,o,a,i,s){var l=Oa(e,r),u=Oa(t,r),c=s.get(u);if(c)return void Zr(e,r,c);var d=i?i(l,u,r+"",e,t,s):n,f=d===n;if(f){var p=Wi(u),h=!p&&Gi(u),m=!p&&!h&&us(u);d=u,p||h||m?Wi(l)?d=l:Hi(l)?d=Po(l):h?(f=!1,d=$o(u,!0)):m?(f=!1,d=Eo(u,!0)):d=[]:os(u)||Ui(u)?(d=l,Ui(l)?d=gs(l):es(l)&&!Yi(l)||(d=ga(u))):f=!1}f&&(s.set(u,d),a(d,u,o,i,s),s.delete(u));Zr(e,r,d)}(e,t,s,r,Vn,o,a);else{var l=o?o(Oa(e,s),i,s+"",e,t,a):n;l===n&&(l=i),Zr(e,s,l)}}),Rs)}function Un(e,t){var r=e.length;if(r)return ba(t+=t<0?r:0,r)?e[t]:n}function Wn(e,t,r){t=t.length?At(t,(function(e){return Wi(e)?function(t){return _n(t,1===e.length?e[0]:e)}:e})):[nl];var n=-1;t=At(t,Xt(ua()));var o=Dn(e,(function(e,r,o){var a=At(t,(function(t){return t(e)}));return{criteria:a,index:++n,value:e}}));return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(o,(function(e,t){return function(e,t,r){var n=-1,o=e.criteria,a=t.criteria,i=o.length,s=r.length;for(;++n<i;){var l=jo(o[n],a[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function qn(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],s=_n(e,i);r(s,i)&&Zn(a,wo(i,e),s)}return a}function Kn(e,t,r,n){var o=n?Ut:Vt,a=-1,i=t.length,s=e;for(e===t&&(t=Po(t)),r&&(s=At(e,Xt(r)));++a<i;)for(var l=0,u=t[a],c=r?r(u):u;(l=o(s,c,l,n))>-1;)s!==e&&Qe.call(s,l,1),Qe.call(e,l,1);return e}function Hn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==a){var a=o;ba(o)?Qe.call(e,o,1):fo(e,o)}}return e}function Gn(e,t){return e+mt(Sr()*(t-e+1))}function Qn(e,t){var r="";if(!e||t<1||t>p)return r;do{t%2&&(r+=e),(t=mt(t/2))&&(e+=e)}while(t);return r}function Jn(e,t){return Ra(ja(e,t,nl),e+"")}function Yn(e){return Jr(Ls(e))}function Xn(e,t){var r=Ls(e);return Ia(r,sn(t,0,r.length))}function Zn(e,t,r,o){if(!es(e))return e;for(var a=-1,i=(t=wo(t,e)).length,s=i-1,l=e;null!=l&&++a<i;){var u=Fa(t[a]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(a!=s){var d=l[u];(c=o?o(d,u,l):n)===n&&(c=es(d)?d:ba(t[a+1])?[]:{})}en(l,u,c),l=l[u]}return e}var eo=Or?function(e,t){return Or.set(e,t),e}:nl,to=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:nl;function ro(e){return Ia(Ls(e))}function no(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=r(a);++o<a;)i[o]=e[o+t];return i}function oo(e,t){var r;return fn(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function ao(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var a=n+o>>>1,i=e[a];null!==i&&!ls(i)&&(r?i<=t:i<t)?n=a+1:o=a}return o}return io(e,t,nl,r)}function io(e,t,r,o){var a=0,i=null==e?0:e.length;if(0===i)return 0;for(var s=(t=r(t))!=t,l=null===t,u=ls(t),c=t===n;a<i;){var d=mt((a+i)/2),f=r(e[d]),p=f!==n,h=null===f,m=f==f,v=ls(f);if(s)var g=o||m;else g=c?m&&(o||p):l?m&&p&&(o||!h):u?m&&p&&!h&&(o||!v):!h&&!v&&(o?f<=t:f<t);g?a=d+1:i=d}return yr(i,4294967294)}function so(e,t){for(var r=-1,n=e.length,o=0,a=[];++r<n;){var i=e[r],s=t?t(i):i;if(!r||!Li(s,l)){var l=s;a[o++]=0===i?0:i}}return a}function lo(e){return"number"==typeof e?e:ls(e)?h:+e}function uo(e){if("string"==typeof e)return e;if(Wi(e))return At(e,uo)+"";if(ls(e))return zr?zr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function co(e,t,r){var n=-1,o=Rt,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=Tt;else if(a>=200){var u=t?null:Jo(e);if(u)return cr(u);i=!1,o=er,l=new Hr}else l=t?[]:s;e:for(;++n<a;){var c=e[n],d=t?t(c):c;if(c=r||0!==c?c:0,i&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,r)||(l!==s&&l.push(d),s.push(c))}return s}function fo(e,t){return null==(e=Ca(e,t=wo(t,e)))||delete e[Fa(Ja(t))]}function po(e,t,r,n){return Zn(e,t,r(_n(e,t)),n)}function ho(e,t,r,n){for(var o=e.length,a=n?o:-1;(n?a--:++a<o)&&t(e[a],a,e););return r?no(e,n?0:a,n?a+1:o):no(e,n?a+1:0,n?o:a)}function mo(e,t){var r=e;return r instanceof Ur&&(r=r.value()),Mt(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),r)}function vo(e,t,n){var o=e.length;if(o<2)return o?co(e[0]):[];for(var a=-1,i=r(o);++a<o;)for(var s=e[a],l=-1;++l<o;)l!=a&&(i[a]=dn(i[a]||s,e[l],t,n));return co(gn(i,1),t,n)}function go(e,t,r){for(var o=-1,a=e.length,i=t.length,s={};++o<a;){var l=o<i?t[o]:n;r(s,e[o],l)}return s}function yo(e){return Hi(e)?e:[]}function bo(e){return"function"==typeof e?e:nl}function wo(e,t){return Wi(e)?e:Sa(e,t)?[e]:Ma(ys(e))}var So=Jn;function xo(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:no(e,t,r)}var _o=nt||function(e){return ht.clearTimeout(e)};function $o(e,t){if(t)return e.slice();var r=e.length,n=qe?qe(r):new e.constructor(r);return e.copy(n),n}function ko(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Eo(e,t){var r=t?ko(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function jo(e,t){if(e!==t){var r=e!==n,o=null===e,a=e==e,i=ls(e),s=t!==n,l=null===t,u=t==t,c=ls(t);if(!l&&!c&&!i&&e>t||i&&s&&u&&!l&&!c||o&&s&&u||!r&&u||!a)return 1;if(!o&&!i&&!c&&e<t||c&&r&&a&&!o&&!i||l&&r&&a||!s&&a||!u)return-1}return 0}function Co(e,t,n,o){for(var a=-1,i=e.length,s=n.length,l=-1,u=t.length,c=gr(i-s,0),d=r(u+c),f=!o;++l<u;)d[l]=t[l];for(;++a<s;)(f||a<i)&&(d[n[a]]=e[a]);for(;c--;)d[l++]=e[a++];return d}function Oo(e,t,n,o){for(var a=-1,i=e.length,s=-1,l=n.length,u=-1,c=t.length,d=gr(i-l,0),f=r(d+c),p=!o;++a<d;)f[a]=e[a];for(var h=a;++u<c;)f[h+u]=t[u];for(;++s<l;)(p||a<i)&&(f[h+n[s]]=e[a++]);return f}function Po(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function No(e,t,r,o){var a=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var l=t[i],u=o?o(r[l],e[l],l,r,e):n;u===n&&(u=e[l]),a?on(r,l,u):en(r,l,u)}return r}function Ro(e,t){return function(r,n){var o=Wi(r)?jt:rn,a=t?t():{};return o(r,e,ua(n,2),a)}}function To(e){return Jn((function(t,r){var o=-1,a=r.length,i=a>1?r[a-1]:n,s=a>2?r[2]:n;for(i=e.length>3&&"function"==typeof i?(a--,i):n,s&&wa(r[0],r[1],s)&&(i=a<3?n:i,a=1),t=Ee(t);++o<a;){var l=r[o];l&&e(t,l,o,i)}return t}))}function Ao(e,t){return function(r,n){if(null==r)return r;if(!Ki(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Ee(r);(t?a--:++a<o)&&!1!==n(i[a],a,i););return r}}function Io(e){return function(t,r,n){for(var o=-1,a=Ee(t),i=n(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===r(a[l],l,a))break}return t}}function Mo(e){return function(t){var r=ir(t=ys(t))?pr(t):n,o=r?r[0]:t.charAt(0),a=r?xo(r,1).join(""):t.slice(1);return o[e]()+a}}function Fo(e){return function(t){return Mt(Ys(Us(t).replace(Ze,"")),e,"")}}function zo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Lr(e.prototype),n=e.apply(r,t);return es(n)?n:r}}function Do(e){return function(t,r,o){var a=Ee(t);if(!Ki(t)){var i=ua(r,3);t=Ns(t),r=function(e){return i(a[e],e,a)}}var s=e(t,r,o);return s>-1?a[i?t[s]:s]:n}}function Lo(e){return na((function(t){var r=t.length,a=r,i=Vr.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new Oe(o);if(i&&!l&&"wrapper"==sa(s))var l=new Vr([],!0)}for(a=l?a:r;++a<r;){var u=sa(s=t[a]),c="wrapper"==u?ia(s):n;l=c&&xa(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[sa(c[0])].apply(l,c[3]):1==s.length&&xa(s)?l[u]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Wi(n))return l.plant(n).value();for(var o=0,a=r?t[o].apply(this,e):n;++o<r;)a=t[o].call(this,a);return a}}))}function Bo(e,t,o,a,i,s,l,u,d,f){var p=t&c,h=1&t,m=2&t,v=24&t,g=512&t,y=m?n:zo(e);return function c(){for(var b=arguments.length,w=r(b),S=b;S--;)w[S]=arguments[S];if(v)var x=la(c),_=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(w,x);if(a&&(w=Co(w,a,i,v)),s&&(w=Oo(w,s,l,v)),b-=_,v&&b<f){var $=ur(w,x);return Go(e,t,Bo,c.placeholder,o,w,$,u,d,f-b)}var k=h?o:this,E=m?k[e]:e;return b=w.length,u?w=function(e,t){var r=e.length,o=yr(t.length,r),a=Po(e);for(;o--;){var i=t[o];e[o]=ba(i,r)?a[i]:n}return e}(w,u):g&&b>1&&w.reverse(),p&&d<b&&(w.length=d),this&&this!==ht&&this instanceof c&&(E=y||zo(E)),E.apply(k,w)}}function Vo(e,t){return function(r,n){return function(e,t,r,n){return wn(e,(function(e,o,a){t(n,r(e),o,a)})),n}(r,e,t(n),{})}}function Uo(e,t){return function(r,o){var a;if(r===n&&o===n)return t;if(r!==n&&(a=r),o!==n){if(a===n)return o;"string"==typeof r||"string"==typeof o?(r=uo(r),o=uo(o)):(r=lo(r),o=lo(o)),a=e(r,o)}return a}}function Wo(e){return na((function(t){return t=At(t,Xt(ua())),Jn((function(r){var n=this;return e(t,(function(e){return Et(e,n,r)}))}))}))}function qo(e,t){var r=(t=t===n?" ":uo(t)).length;if(r<2)return r?Qn(t,e):t;var o=Qn(t,pt(e/fr(t)));return ir(t)?xo(pr(o),0,e).join(""):o.slice(0,e)}function Ko(e){return function(t,o,a){return a&&"number"!=typeof a&&wa(t,o,a)&&(o=a=n),t=ps(t),o===n?(o=t,t=0):o=ps(o),function(e,t,n,o){for(var a=-1,i=gr(pt((t-e)/(n||1)),0),s=r(i);i--;)s[o?i:++a]=e,e+=n;return s}(t,o,a=a===n?t<o?1:-1:ps(a),e)}}function Ho(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=vs(t),r=vs(r)),e(t,r)}}function Go(e,t,r,o,a,i,s,c,d,f){var p=8&t;t|=p?l:u,4&(t&=~(p?u:l))||(t&=-4);var h=[e,t,a,p?i:n,p?s:n,p?n:i,p?n:s,c,d,f],m=r.apply(n,h);return xa(e)&&Pa(m,h),m.placeholder=o,Ta(m,e,t)}function Qo(e){var t=ke[e];return function(e,r){if(e=vs(e),(r=null==r?0:yr(hs(r),292))&&bt(e)){var n=(ys(e)+"e").split("e");return+((n=(ys(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Jo=Er&&1/cr(new Er([,-0]))[1]==f?function(e){return new Er(e)}:ll;function Yo(e){return function(t){var r=ma(t);return r==$?sr(t):r==O?dr(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xo(e,t,a,f,p,h,m,v){var g=2&t;if(!g&&"function"!=typeof e)throw new Oe(o);var y=f?f.length:0;if(y||(t&=-97,f=p=n),m=m===n?m:gr(hs(m),0),v=v===n?v:hs(v),y-=p?p.length:0,t&u){var b=f,w=p;f=p=n}var S=g?n:ia(e),x=[e,t,a,f,p,b,w,h,m,v];if(S&&function(e,t){var r=e[1],n=t[1],o=r|n,a=o<131,s=n==c&&8==r||n==c&&r==d&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!a&&!s)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Co(u,l,t[4]):l,e[4]=u?ur(e[3],i):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Oo(u,l,t[6]):l,e[6]=u?ur(e[5],i):t[6]);(l=t[7])&&(e[7]=l);n&c&&(e[8]=null==e[8]?t[8]:yr(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(x,S),e=x[0],t=x[1],a=x[2],f=x[3],p=x[4],!(v=x[9]=x[9]===n?g?0:e.length:gr(x[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==s?function(e,t,o){var a=zo(e);return function i(){for(var s=arguments.length,l=r(s),u=s,c=la(i);u--;)l[u]=arguments[u];var d=s<3&&l[0]!==c&&l[s-1]!==c?[]:ur(l,c);return(s-=d.length)<o?Go(e,t,Bo,i.placeholder,n,l,d,n,n,o-s):Et(this&&this!==ht&&this instanceof i?a:e,this,l)}}(e,t,v):t!=l&&33!=t||p.length?Bo.apply(n,x):function(e,t,n,o){var a=1&t,i=zo(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=o.length,d=r(c+l),f=this&&this!==ht&&this instanceof t?i:e;++u<c;)d[u]=o[u];for(;l--;)d[u++]=arguments[++s];return Et(f,a?n:this,d)}}(e,t,a,f);else var _=function(e,t,r){var n=1&t,o=zo(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,a);return Ta((S?eo:Pa)(_,x),e,t)}function Zo(e,t,r,o){return e===n||Li(e,Re[r])&&!Ie.call(o,r)?t:e}function ea(e,t,r,o,a,i){return es(e)&&es(t)&&(i.set(t,e),Vn(e,t,n,ea,i),i.delete(t)),e}function ta(e){return os(e)?n:e}function ra(e,t,r,o,a,i){var s=1&r,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,h=2&r?new Hr:n;for(i.set(e,t),i.set(t,e);++f<l;){var m=e[f],v=t[f];if(o)var g=s?o(v,m,f,t,e,i):o(m,v,f,e,t,i);if(g!==n){if(g)continue;p=!1;break}if(h){if(!zt(t,(function(e,t){if(!er(h,t)&&(m===e||a(m,e,r,o,i)))return h.push(t)}))){p=!1;break}}else if(m!==v&&!a(m,v,r,o,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function na(e){return Ra(ja(e,n,qa),e+"")}function oa(e){return $n(e,Ns,pa)}function aa(e){return $n(e,Rs,ha)}var ia=Or?function(e){return Or.get(e)}:ll;function sa(e){for(var t=e.name+"",r=Pr[t],n=Ie.call(Pr,t)?r.length:0;n--;){var o=r[n],a=o.func;if(null==a||a==e)return o.name}return t}function la(e){return(Ie.call(Dr,"placeholder")?Dr:e).placeholder}function ua(){var e=Dr.iteratee||ol;return e=e===ol?In:e,arguments.length?e(arguments[0],arguments[1]):e}function ca(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function da(e){for(var t=Ns(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,ka(o)]}return t}function fa(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return An(r)?r:n}var pa=vt?function(e){return null==e?[]:(e=Ee(e),Nt(vt(e),(function(t){return Ge.call(e,t)})))}:ml,ha=vt?function(e){for(var t=[];e;)It(t,pa(e)),e=Ke(e);return t}:ml,ma=kn;function va(e,t,r){for(var n=-1,o=(t=wo(t,e)).length,a=!1;++n<o;){var i=Fa(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&Zi(o)&&ba(i,o)&&(Wi(e)||Ui(e))}function ga(e){return"function"!=typeof e.constructor||$a(e)?{}:Lr(Ke(e))}function ya(e){return Wi(e)||Ui(e)||!!(Je&&e&&e[Je])}function ba(e,t){var r=typeof e;return!!(t=null==t?p:t)&&("number"==r||"symbol"!=r&&be.test(e))&&e>-1&&e%1==0&&e<t}function wa(e,t,r){if(!es(r))return!1;var n=typeof t;return!!("number"==n?Ki(r)&&ba(t,r.length):"string"==n&&t in r)&&Li(r[t],e)}function Sa(e,t){if(Wi(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ls(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ee(t))}function xa(e){var t=sa(e),r=Dr[t];if("function"!=typeof r||!(t in Ur.prototype))return!1;if(e===r)return!0;var n=ia(r);return!!n&&e===n[0]}(_r&&ma(new _r(new ArrayBuffer(1)))!=A||$r&&ma(new $r)!=$||kr&&ma(kr.resolve())!=j||Er&&ma(new Er)!=O||jr&&ma(new jr)!=R)&&(ma=function(e){var t=kn(e),r=t==E?e.constructor:n,o=r?za(r):"";if(o)switch(o){case Nr:return A;case Rr:return $;case Tr:return j;case Ar:return O;case Ir:return R}return t});var _a=Te?Yi:vl;function $a(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function ka(e){return e==e&&!es(e)}function Ea(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in Ee(r)))}}function ja(e,t,o){return t=gr(t===n?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=gr(n.length-t,0),s=r(i);++a<i;)s[a]=n[t+a];a=-1;for(var l=r(t+1);++a<t;)l[a]=n[a];return l[t]=o(s),Et(e,this,l)}}function Ca(e,t){return t.length<2?e:_n(e,no(t,0,-1))}function Oa(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pa=Aa(eo),Na=ft||function(e,t){return ht.setTimeout(e,t)},Ra=Aa(to);function Ta(e,t,r){var n=t+"";return Ra(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Ct(v,(function(r){var n="_."+r[0];t&r[1]&&!Rt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ue):[]}(n),r)))}function Aa(e){var t=0,r=0;return function(){var o=br(),a=16-(o-r);if(r=o,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ia(e,t){var r=-1,o=e.length,a=o-1;for(t=t===n?o:t;++r<t;){var i=Gn(r,a),s=e[i];e[i]=e[r],e[r]=s}return e.length=t,e}var Ma=function(e){var t=Ai(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,r,n,o){t.push(n?o.replace(fe,"$1"):r||e)})),t}));function Fa(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function za(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Da(e){if(e instanceof Ur)return e.clone();var t=new Vr(e.__wrapped__,e.__chain__);return t.__actions__=Po(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var La=Jn((function(e,t){return Hi(e)?dn(e,gn(t,1,Hi,!0)):[]})),Ba=Jn((function(e,t){var r=Ja(t);return Hi(r)&&(r=n),Hi(e)?dn(e,gn(t,1,Hi,!0),ua(r,2)):[]})),Va=Jn((function(e,t){var r=Ja(t);return Hi(r)&&(r=n),Hi(e)?dn(e,gn(t,1,Hi,!0),n,r):[]}));function Ua(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:hs(r);return o<0&&(o=gr(n+o,0)),Bt(e,ua(t,3),o)}function Wa(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var a=o-1;return r!==n&&(a=hs(r),a=r<0?gr(o+a,0):yr(a,o-1)),Bt(e,ua(t,3),a,!0)}function qa(e){return(null==e?0:e.length)?gn(e,1):[]}function Ka(e){return e&&e.length?e[0]:n}var Ha=Jn((function(e){var t=At(e,yo);return t.length&&t[0]===e[0]?On(t):[]})),Ga=Jn((function(e){var t=Ja(e),r=At(e,yo);return t===Ja(r)?t=n:r.pop(),r.length&&r[0]===e[0]?On(r,ua(t,2)):[]})),Qa=Jn((function(e){var t=Ja(e),r=At(e,yo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?On(r,n,t):[]}));function Ja(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ya=Jn(Xa);function Xa(e,t){return e&&e.length&&t&&t.length?Kn(e,t):e}var Za=na((function(e,t){var r=null==e?0:e.length,n=an(e,t);return Hn(e,At(t,(function(e){return ba(e,r)?+e:e})).sort(jo)),n}));function ei(e){return null==e?e:xr.call(e)}var ti=Jn((function(e){return co(gn(e,1,Hi,!0))})),ri=Jn((function(e){var t=Ja(e);return Hi(t)&&(t=n),co(gn(e,1,Hi,!0),ua(t,2))})),ni=Jn((function(e){var t=Ja(e);return t="function"==typeof t?t:n,co(gn(e,1,Hi,!0),n,t)}));function oi(e){if(!e||!e.length)return[];var t=0;return e=Nt(e,(function(e){if(Hi(e))return t=gr(e.length,t),!0})),Jt(t,(function(t){return At(e,Kt(t))}))}function ai(e,t){if(!e||!e.length)return[];var r=oi(e);return null==t?r:At(r,(function(e){return Et(t,n,e)}))}var ii=Jn((function(e,t){return Hi(e)?dn(e,t):[]})),si=Jn((function(e){return vo(Nt(e,Hi))})),li=Jn((function(e){var t=Ja(e);return Hi(t)&&(t=n),vo(Nt(e,Hi),ua(t,2))})),ui=Jn((function(e){var t=Ja(e);return t="function"==typeof t?t:n,vo(Nt(e,Hi),n,t)})),ci=Jn(oi);var di=Jn((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ai(e,r)}));function fi(e){var t=Dr(e);return t.__chain__=!0,t}function pi(e,t){return t(e)}var hi=na((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,a=function(t){return an(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Ur&&ba(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:pi,args:[a],thisArg:n}),new Vr(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(a)}));var mi=Ro((function(e,t,r){Ie.call(e,r)?++e[r]:on(e,r,1)}));var vi=Do(Ua),gi=Do(Wa);function yi(e,t){return(Wi(e)?Ct:fn)(e,ua(t,3))}function bi(e,t){return(Wi(e)?Ot:pn)(e,ua(t,3))}var wi=Ro((function(e,t,r){Ie.call(e,r)?e[r].push(t):on(e,r,[t])}));var Si=Jn((function(e,t,n){var o=-1,a="function"==typeof t,i=Ki(e)?r(e.length):[];return fn(e,(function(e){i[++o]=a?Et(t,e,n):Pn(e,t,n)})),i})),xi=Ro((function(e,t,r){on(e,r,t)}));function _i(e,t){return(Wi(e)?At:Dn)(e,ua(t,3))}var $i=Ro((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var ki=Jn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&wa(e,t[0],t[1])?t=[]:r>2&&wa(t[0],t[1],t[2])&&(t=[t[0]]),Wn(e,gn(t,1),[])})),Ei=ut||function(){return ht.Date.now()};function ji(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Xo(e,c,n,n,n,n,t)}function Ci(e,t){var r;if("function"!=typeof t)throw new Oe(o);return e=hs(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Oi=Jn((function(e,t,r){var n=1;if(r.length){var o=ur(r,la(Oi));n|=l}return Xo(e,n,t,r,o)})),Pi=Jn((function(e,t,r){var n=3;if(r.length){var o=ur(r,la(Pi));n|=l}return Xo(t,n,e,r,o)}));function Ni(e,t,r){var a,i,s,l,u,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Oe(o);function m(t){var r=a,o=i;return a=i=n,d=t,l=e.apply(o,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||p&&e-d>=s}function g(){var e=Ei();if(v(e))return y(e);u=Na(g,function(e){var r=t-(e-c);return p?yr(r,s-(e-d)):r}(e))}function y(e){return u=n,h&&a?m(e):(a=i=n,l)}function b(){var e=Ei(),r=v(e);if(a=arguments,i=this,c=e,r){if(u===n)return function(e){return d=e,u=Na(g,t),f?m(e):l}(c);if(p)return _o(u),u=Na(g,t),m(c)}return u===n&&(u=Na(g,t)),l}return t=vs(t)||0,es(r)&&(f=!!r.leading,s=(p="maxWait"in r)?gr(vs(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h),b.cancel=function(){u!==n&&_o(u),d=0,a=c=i=u=n},b.flush=function(){return u===n?l:y(Ei())},b}var Ri=Jn((function(e,t){return cn(e,1,t)})),Ti=Jn((function(e,t,r){return cn(e,vs(t)||0,r)}));function Ai(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(o);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Ai.Cache||Kr),r}function Ii(e){if("function"!=typeof e)throw new Oe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ai.Cache=Kr;var Mi=So((function(e,t){var r=(t=1==t.length&&Wi(t[0])?At(t[0],Xt(ua())):At(gn(t,1),Xt(ua()))).length;return Jn((function(n){for(var o=-1,a=yr(n.length,r);++o<a;)n[o]=t[o].call(this,n[o]);return Et(e,this,n)}))})),Fi=Jn((function(e,t){var r=ur(t,la(Fi));return Xo(e,l,n,t,r)})),zi=Jn((function(e,t){var r=ur(t,la(zi));return Xo(e,u,n,t,r)})),Di=na((function(e,t){return Xo(e,d,n,n,n,t)}));function Li(e,t){return e===t||e!=e&&t!=t}var Bi=Ho(En),Vi=Ho((function(e,t){return e>=t})),Ui=Nn(function(){return arguments}())?Nn:function(e){return ts(e)&&Ie.call(e,"callee")&&!Ge.call(e,"callee")},Wi=r.isArray,qi=wt?Xt(wt):function(e){return ts(e)&&kn(e)==T};function Ki(e){return null!=e&&Zi(e.length)&&!Yi(e)}function Hi(e){return ts(e)&&Ki(e)}var Gi=yt||vl,Qi=St?Xt(St):function(e){return ts(e)&&kn(e)==w};function Ji(e){if(!ts(e))return!1;var t=kn(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Yi(e){if(!es(e))return!1;var t=kn(e);return t==x||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xi(e){return"number"==typeof e&&e==hs(e)}function Zi(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var rs=xt?Xt(xt):function(e){return ts(e)&&ma(e)==$};function ns(e){return"number"==typeof e||ts(e)&&kn(e)==k}function os(e){if(!ts(e)||kn(e)!=E)return!1;var t=Ke(e);if(null===t)return!0;var r=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ae.call(r)==De}var as=_t?Xt(_t):function(e){return ts(e)&&kn(e)==C};var is=$t?Xt($t):function(e){return ts(e)&&ma(e)==O};function ss(e){return"string"==typeof e||!Wi(e)&&ts(e)&&kn(e)==P}function ls(e){return"symbol"==typeof e||ts(e)&&kn(e)==N}var us=kt?Xt(kt):function(e){return ts(e)&&Zi(e.length)&&!!st[kn(e)]};var cs=Ho(zn),ds=Ho((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ki(e))return ss(e)?pr(e):Po(e);if(Ye&&e[Ye])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ye]());var t=ma(e);return(t==$?sr:t==O?cr:Ls)(e)}function ps(e){return e?(e=vs(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=ps(e),r=t%1;return t==t?r?t-r:t:0}function ms(e){return e?sn(hs(e),0,m):0}function vs(e){if("number"==typeof e)return e;if(ls(e))return h;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var r=ve.test(e);return r||ye.test(e)?dt(e.slice(2),r?2:8):me.test(e)?h:+e}function gs(e){return No(e,Rs(e))}function ys(e){return null==e?"":uo(e)}var bs=To((function(e,t){if($a(t)||Ki(t))No(t,Ns(t),e);else for(var r in t)Ie.call(t,r)&&en(e,r,t[r])})),ws=To((function(e,t){No(t,Rs(t),e)})),Ss=To((function(e,t,r,n){No(t,Rs(t),e,n)})),xs=To((function(e,t,r,n){No(t,Ns(t),e,n)})),_s=na(an);var $s=Jn((function(e,t){e=Ee(e);var r=-1,o=t.length,a=o>2?t[2]:n;for(a&&wa(t[0],t[1],a)&&(o=1);++r<o;)for(var i=t[r],s=Rs(i),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(d===n||Li(d,Re[c])&&!Ie.call(e,c))&&(e[c]=i[c])}return e})),ks=Jn((function(e){return e.push(n,ea),Et(As,n,e)}));function Es(e,t,r){var o=null==e?n:_n(e,t);return o===n?r:o}function js(e,t){return null!=e&&va(e,t,Cn)}var Cs=Vo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),e[t]=r}),el(nl)),Os=Vo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=ze.call(t)),Ie.call(e,t)?e[t].push(r):e[t]=[r]}),ua),Ps=Jn(Pn);function Ns(e){return Ki(e)?Qr(e):Mn(e)}function Rs(e){return Ki(e)?Qr(e,!0):Fn(e)}var Ts=To((function(e,t,r){Vn(e,t,r)})),As=To((function(e,t,r,n){Vn(e,t,r,n)})),Is=na((function(e,t){var r={};if(null==e)return r;var n=!1;t=At(t,(function(t){return t=wo(t,e),n||(n=t.length>1),t})),No(e,aa(e),r),n&&(r=ln(r,7,ta));for(var o=t.length;o--;)fo(r,t[o]);return r}));var Ms=na((function(e,t){return null==e?{}:function(e,t){return qn(e,t,(function(t,r){return js(e,r)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var r=At(aa(e),(function(e){return[e]}));return t=ua(t),qn(e,r,(function(e,r){return t(e,r[0])}))}var zs=Yo(Ns),Ds=Yo(Rs);function Ls(e){return null==e?[]:Zt(e,Ns(e))}var Bs=Fo((function(e,t,r){return t=t.toLowerCase(),e+(r?Vs(t):t)}));function Vs(e){return Js(ys(e).toLowerCase())}function Us(e){return(e=ys(e))&&e.replace(we,nr).replace(et,"")}var Ws=Fo((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),qs=Fo((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ks=Mo("toLowerCase");var Hs=Fo((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Gs=Fo((function(e,t,r){return e+(r?" ":"")+Js(t)}));var Qs=Fo((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Js=Mo("toUpperCase");function Ys(e,t,r){return e=ys(e),(t=r?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Xs=Jn((function(e,t){try{return Et(e,n,t)}catch(e){return Ji(e)?e:new _e(e)}})),Zs=na((function(e,t){return Ct(t,(function(t){t=Fa(t),on(e,t,Oi(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Lo(),rl=Lo(!0);function nl(e){return e}function ol(e){return In("function"==typeof e?e:ln(e,1))}var al=Jn((function(e,t){return function(r){return Pn(r,e,t)}})),il=Jn((function(e,t){return function(r){return Pn(e,r,t)}}));function sl(e,t,r){var n=Ns(t),o=xn(t,n);null!=r||es(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=xn(t,Ns(t)));var a=!(es(r)&&"chain"in r&&!r.chain),i=Yi(e);return Ct(o,(function(r){var n=t[r];e[r]=n,i&&(e.prototype[r]=function(){var t=this.__chain__;if(a||t){var r=e(this.__wrapped__);return(r.__actions__=Po(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,It([this.value()],arguments))})})),e}function ll(){}var ul=Wo(At),cl=Wo(Pt),dl=Wo(zt);function fl(e){return Sa(e)?Kt(Fa(e)):function(e){return function(t){return _n(t,e)}}(e)}var pl=Ko(),hl=Ko(!0);function ml(){return[]}function vl(){return!1}var gl=Uo((function(e,t){return e+t}),0),yl=Qo("ceil"),bl=Uo((function(e,t){return e/t}),1),wl=Qo("floor");var Sl,xl=Uo((function(e,t){return e*t}),1),_l=Qo("round"),$l=Uo((function(e,t){return e-t}),0);return Dr.after=function(e,t){if("function"!=typeof t)throw new Oe(o);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Dr.ary=ji,Dr.assign=bs,Dr.assignIn=ws,Dr.assignInWith=Ss,Dr.assignWith=xs,Dr.at=_s,Dr.before=Ci,Dr.bind=Oi,Dr.bindAll=Zs,Dr.bindKey=Pi,Dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wi(e)?e:[e]},Dr.chain=fi,Dr.chunk=function(e,t,o){t=(o?wa(e,t,o):t===n)?1:gr(hs(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var i=0,s=0,l=r(pt(a/t));i<a;)l[s++]=no(e,i,i+=t);return l},Dr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var a=e[t];a&&(o[n++]=a)}return o},Dr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return It(Wi(n)?Po(n):[n],gn(t,1))},Dr.cond=function(e){var t=null==e?0:e.length,r=ua();return e=t?At(e,(function(e){if("function"!=typeof e[1])throw new Oe(o);return[r(e[0]),e[1]]})):[],Jn((function(r){for(var n=-1;++n<t;){var o=e[n];if(Et(o[0],this,r))return Et(o[1],this,r)}}))},Dr.conforms=function(e){return function(e){var t=Ns(e);return function(r){return un(r,e,t)}}(ln(e,1))},Dr.constant=el,Dr.countBy=mi,Dr.create=function(e,t){var r=Lr(e);return null==t?r:nn(r,t)},Dr.curry=function e(t,r,o){var a=Xo(t,8,n,n,n,n,n,r=o?n:r);return a.placeholder=e.placeholder,a},Dr.curryRight=function e(t,r,o){var a=Xo(t,s,n,n,n,n,n,r=o?n:r);return a.placeholder=e.placeholder,a},Dr.debounce=Ni,Dr.defaults=$s,Dr.defaultsDeep=ks,Dr.defer=Ri,Dr.delay=Ti,Dr.difference=La,Dr.differenceBy=Ba,Dr.differenceWith=Va,Dr.drop=function(e,t,r){var o=null==e?0:e.length;return o?no(e,(t=r||t===n?1:hs(t))<0?0:t,o):[]},Dr.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?no(e,0,(t=o-(t=r||t===n?1:hs(t)))<0?0:t):[]},Dr.dropRightWhile=function(e,t){return e&&e.length?ho(e,ua(t,3),!0,!0):[]},Dr.dropWhile=function(e,t){return e&&e.length?ho(e,ua(t,3),!0):[]},Dr.fill=function(e,t,r,o){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&wa(e,t,r)&&(r=0,o=a),function(e,t,r,o){var a=e.length;for((r=hs(r))<0&&(r=-r>a?0:a+r),(o=o===n||o>a?a:hs(o))<0&&(o+=a),o=r>o?0:ms(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Dr.filter=function(e,t){return(Wi(e)?Nt:vn)(e,ua(t,3))},Dr.flatMap=function(e,t){return gn(_i(e,t),1)},Dr.flatMapDeep=function(e,t){return gn(_i(e,t),f)},Dr.flatMapDepth=function(e,t,r){return r=r===n?1:hs(r),gn(_i(e,t),r)},Dr.flatten=qa,Dr.flattenDeep=function(e){return(null==e?0:e.length)?gn(e,f):[]},Dr.flattenDepth=function(e,t){return(null==e?0:e.length)?gn(e,t=t===n?1:hs(t)):[]},Dr.flip=function(e){return Xo(e,512)},Dr.flow=tl,Dr.flowRight=rl,Dr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Dr.functions=function(e){return null==e?[]:xn(e,Ns(e))},Dr.functionsIn=function(e){return null==e?[]:xn(e,Rs(e))},Dr.groupBy=wi,Dr.initial=function(e){return(null==e?0:e.length)?no(e,0,-1):[]},Dr.intersection=Ha,Dr.intersectionBy=Ga,Dr.intersectionWith=Qa,Dr.invert=Cs,Dr.invertBy=Os,Dr.invokeMap=Si,Dr.iteratee=ol,Dr.keyBy=xi,Dr.keys=Ns,Dr.keysIn=Rs,Dr.map=_i,Dr.mapKeys=function(e,t){var r={};return t=ua(t,3),wn(e,(function(e,n,o){on(r,t(e,n,o),e)})),r},Dr.mapValues=function(e,t){var r={};return t=ua(t,3),wn(e,(function(e,n,o){on(r,n,t(e,n,o))})),r},Dr.matches=function(e){return Ln(ln(e,1))},Dr.matchesProperty=function(e,t){return Bn(e,ln(t,1))},Dr.memoize=Ai,Dr.merge=Ts,Dr.mergeWith=As,Dr.method=al,Dr.methodOf=il,Dr.mixin=sl,Dr.negate=Ii,Dr.nthArg=function(e){return e=hs(e),Jn((function(t){return Un(t,e)}))},Dr.omit=Is,Dr.omitBy=function(e,t){return Fs(e,Ii(ua(t)))},Dr.once=function(e){return Ci(2,e)},Dr.orderBy=function(e,t,r,o){return null==e?[]:(Wi(t)||(t=null==t?[]:[t]),Wi(r=o?n:r)||(r=null==r?[]:[r]),Wn(e,t,r))},Dr.over=ul,Dr.overArgs=Mi,Dr.overEvery=cl,Dr.overSome=dl,Dr.partial=Fi,Dr.partialRight=zi,Dr.partition=$i,Dr.pick=Ms,Dr.pickBy=Fs,Dr.property=fl,Dr.propertyOf=function(e){return function(t){return null==e?n:_n(e,t)}},Dr.pull=Ya,Dr.pullAll=Xa,Dr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Kn(e,t,ua(r,2)):e},Dr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Kn(e,t,n,r):e},Dr.pullAt=Za,Dr.range=pl,Dr.rangeRight=hl,Dr.rearg=Di,Dr.reject=function(e,t){return(Wi(e)?Nt:vn)(e,Ii(ua(t,3)))},Dr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],a=e.length;for(t=ua(t,3);++n<a;){var i=e[n];t(i,n,e)&&(r.push(i),o.push(n))}return Hn(e,o),r},Dr.rest=function(e,t){if("function"!=typeof e)throw new Oe(o);return Jn(e,t=t===n?t:hs(t))},Dr.reverse=ei,Dr.sampleSize=function(e,t,r){return t=(r?wa(e,t,r):t===n)?1:hs(t),(Wi(e)?Yr:Xn)(e,t)},Dr.set=function(e,t,r){return null==e?e:Zn(e,t,r)},Dr.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:Zn(e,t,r,o)},Dr.shuffle=function(e){return(Wi(e)?Xr:ro)(e)},Dr.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&wa(e,t,r)?(t=0,r=o):(t=null==t?0:hs(t),r=r===n?o:hs(r)),no(e,t,r)):[]},Dr.sortBy=ki,Dr.sortedUniq=function(e){return e&&e.length?so(e):[]},Dr.sortedUniqBy=function(e,t){return e&&e.length?so(e,ua(t,2)):[]},Dr.split=function(e,t,r){return r&&"number"!=typeof r&&wa(e,t,r)&&(t=r=n),(r=r===n?m:r>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=uo(t))&&ir(e)?xo(pr(e),0,r):e.split(t,r):[]},Dr.spread=function(e,t){if("function"!=typeof e)throw new Oe(o);return t=null==t?0:gr(hs(t),0),Jn((function(r){var n=r[t],o=xo(r,0,t);return n&&It(o,n),Et(e,this,o)}))},Dr.tail=function(e){var t=null==e?0:e.length;return t?no(e,1,t):[]},Dr.take=function(e,t,r){return e&&e.length?no(e,0,(t=r||t===n?1:hs(t))<0?0:t):[]},Dr.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?no(e,(t=o-(t=r||t===n?1:hs(t)))<0?0:t,o):[]},Dr.takeRightWhile=function(e,t){return e&&e.length?ho(e,ua(t,3),!1,!0):[]},Dr.takeWhile=function(e,t){return e&&e.length?ho(e,ua(t,3)):[]},Dr.tap=function(e,t){return t(e),e},Dr.throttle=function(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new Oe(o);return es(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Ni(e,t,{leading:n,maxWait:t,trailing:a})},Dr.thru=pi,Dr.toArray=fs,Dr.toPairs=zs,Dr.toPairsIn=Ds,Dr.toPath=function(e){return Wi(e)?At(e,Fa):ls(e)?[e]:Po(Ma(ys(e)))},Dr.toPlainObject=gs,Dr.transform=function(e,t,r){var n=Wi(e),o=n||Gi(e)||us(e);if(t=ua(t,4),null==r){var a=e&&e.constructor;r=o?n?new a:[]:es(e)&&Yi(a)?Lr(Ke(e)):{}}return(o?Ct:wn)(e,(function(e,n,o){return t(r,e,n,o)})),r},Dr.unary=function(e){return ji(e,1)},Dr.union=ti,Dr.unionBy=ri,Dr.unionWith=ni,Dr.uniq=function(e){return e&&e.length?co(e):[]},Dr.uniqBy=function(e,t){return e&&e.length?co(e,ua(t,2)):[]},Dr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?co(e,n,t):[]},Dr.unset=function(e,t){return null==e||fo(e,t)},Dr.unzip=oi,Dr.unzipWith=ai,Dr.update=function(e,t,r){return null==e?e:po(e,t,bo(r))},Dr.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:po(e,t,bo(r),o)},Dr.values=Ls,Dr.valuesIn=function(e){return null==e?[]:Zt(e,Rs(e))},Dr.without=ii,Dr.words=Ys,Dr.wrap=function(e,t){return Fi(bo(t),e)},Dr.xor=si,Dr.xorBy=li,Dr.xorWith=ui,Dr.zip=ci,Dr.zipObject=function(e,t){return go(e||[],t||[],en)},Dr.zipObjectDeep=function(e,t){return go(e||[],t||[],Zn)},Dr.zipWith=di,Dr.entries=zs,Dr.entriesIn=Ds,Dr.extend=ws,Dr.extendWith=Ss,sl(Dr,Dr),Dr.add=gl,Dr.attempt=Xs,Dr.camelCase=Bs,Dr.capitalize=Vs,Dr.ceil=yl,Dr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=vs(r))==r?r:0),t!==n&&(t=(t=vs(t))==t?t:0),sn(vs(e),t,r)},Dr.clone=function(e){return ln(e,4)},Dr.cloneDeep=function(e){return ln(e,5)},Dr.cloneDeepWith=function(e,t){return ln(e,5,t="function"==typeof t?t:n)},Dr.cloneWith=function(e,t){return ln(e,4,t="function"==typeof t?t:n)},Dr.conformsTo=function(e,t){return null==t||un(e,t,Ns(t))},Dr.deburr=Us,Dr.defaultTo=function(e,t){return null==e||e!=e?t:e},Dr.divide=bl,Dr.endsWith=function(e,t,r){e=ys(e),t=uo(t);var o=e.length,a=r=r===n?o:sn(hs(r),0,o);return(r-=t.length)>=0&&e.slice(r,a)==t},Dr.eq=Li,Dr.escape=function(e){return(e=ys(e))&&J.test(e)?e.replace(G,or):e},Dr.escapeRegExp=function(e){return(e=ys(e))&&oe.test(e)?e.replace(ne,"\\$&"):e},Dr.every=function(e,t,r){var o=Wi(e)?Pt:hn;return r&&wa(e,t,r)&&(t=n),o(e,ua(t,3))},Dr.find=vi,Dr.findIndex=Ua,Dr.findKey=function(e,t){return Lt(e,ua(t,3),wn)},Dr.findLast=gi,Dr.findLastIndex=Wa,Dr.findLastKey=function(e,t){return Lt(e,ua(t,3),Sn)},Dr.floor=wl,Dr.forEach=yi,Dr.forEachRight=bi,Dr.forIn=function(e,t){return null==e?e:yn(e,ua(t,3),Rs)},Dr.forInRight=function(e,t){return null==e?e:bn(e,ua(t,3),Rs)},Dr.forOwn=function(e,t){return e&&wn(e,ua(t,3))},Dr.forOwnRight=function(e,t){return e&&Sn(e,ua(t,3))},Dr.get=Es,Dr.gt=Bi,Dr.gte=Vi,Dr.has=function(e,t){return null!=e&&va(e,t,jn)},Dr.hasIn=js,Dr.head=Ka,Dr.identity=nl,Dr.includes=function(e,t,r,n){e=Ki(e)?e:Ls(e),r=r&&!n?hs(r):0;var o=e.length;return r<0&&(r=gr(o+r,0)),ss(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Vt(e,t,r)>-1},Dr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:hs(r);return o<0&&(o=gr(n+o,0)),Vt(e,t,o)},Dr.inRange=function(e,t,r){return t=ps(t),r===n?(r=t,t=0):r=ps(r),function(e,t,r){return e>=yr(t,r)&&e<gr(t,r)}(e=vs(e),t,r)},Dr.invoke=Ps,Dr.isArguments=Ui,Dr.isArray=Wi,Dr.isArrayBuffer=qi,Dr.isArrayLike=Ki,Dr.isArrayLikeObject=Hi,Dr.isBoolean=function(e){return!0===e||!1===e||ts(e)&&kn(e)==b},Dr.isBuffer=Gi,Dr.isDate=Qi,Dr.isElement=function(e){return ts(e)&&1===e.nodeType&&!os(e)},Dr.isEmpty=function(e){if(null==e)return!0;if(Ki(e)&&(Wi(e)||"string"==typeof e||"function"==typeof e.splice||Gi(e)||us(e)||Ui(e)))return!e.length;var t=ma(e);if(t==$||t==O)return!e.size;if($a(e))return!Mn(e).length;for(var r in e)if(Ie.call(e,r))return!1;return!0},Dr.isEqual=function(e,t){return Rn(e,t)},Dr.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Rn(e,t,n,r):!!o},Dr.isError=Ji,Dr.isFinite=function(e){return"number"==typeof e&&bt(e)},Dr.isFunction=Yi,Dr.isInteger=Xi,Dr.isLength=Zi,Dr.isMap=rs,Dr.isMatch=function(e,t){return e===t||Tn(e,t,da(t))},Dr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Tn(e,t,da(t),r)},Dr.isNaN=function(e){return ns(e)&&e!=+e},Dr.isNative=function(e){if(_a(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return An(e)},Dr.isNil=function(e){return null==e},Dr.isNull=function(e){return null===e},Dr.isNumber=ns,Dr.isObject=es,Dr.isObjectLike=ts,Dr.isPlainObject=os,Dr.isRegExp=as,Dr.isSafeInteger=function(e){return Xi(e)&&e>=-9007199254740991&&e<=p},Dr.isSet=is,Dr.isString=ss,Dr.isSymbol=ls,Dr.isTypedArray=us,Dr.isUndefined=function(e){return e===n},Dr.isWeakMap=function(e){return ts(e)&&ma(e)==R},Dr.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==kn(e)},Dr.join=function(e,t){return null==e?"":Dt.call(e,t)},Dr.kebabCase=Ws,Dr.last=Ja,Dr.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var a=o;return r!==n&&(a=(a=hs(r))<0?gr(o+a,0):yr(a,o-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,a):Bt(e,Wt,a,!0)},Dr.lowerCase=qs,Dr.lowerFirst=Ks,Dr.lt=cs,Dr.lte=ds,Dr.max=function(e){return e&&e.length?mn(e,nl,En):n},Dr.maxBy=function(e,t){return e&&e.length?mn(e,ua(t,2),En):n},Dr.mean=function(e){return qt(e,nl)},Dr.meanBy=function(e,t){return qt(e,ua(t,2))},Dr.min=function(e){return e&&e.length?mn(e,nl,zn):n},Dr.minBy=function(e,t){return e&&e.length?mn(e,ua(t,2),zn):n},Dr.stubArray=ml,Dr.stubFalse=vl,Dr.stubObject=function(){return{}},Dr.stubString=function(){return""},Dr.stubTrue=function(){return!0},Dr.multiply=xl,Dr.nth=function(e,t){return e&&e.length?Un(e,hs(t)):n},Dr.noConflict=function(){return ht._===this&&(ht._=Le),this},Dr.noop=ll,Dr.now=Ei,Dr.pad=function(e,t,r){e=ys(e);var n=(t=hs(t))?fr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return qo(mt(o),r)+e+qo(pt(o),r)},Dr.padEnd=function(e,t,r){e=ys(e);var n=(t=hs(t))?fr(e):0;return t&&n<t?e+qo(t-n,r):e},Dr.padStart=function(e,t,r){e=ys(e);var n=(t=hs(t))?fr(e):0;return t&&n<t?qo(t-n,r)+e:e},Dr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),wr(ys(e).replace(ae,""),t||0)},Dr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&wa(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ps(e),t===n?(t=e,e=0):t=ps(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var a=Sr();return yr(e+a*(t-e+ct("1e-"+((a+"").length-1))),t)}return Gn(e,t)},Dr.reduce=function(e,t,r){var n=Wi(e)?Mt:Gt,o=arguments.length<3;return n(e,ua(t,4),r,o,fn)},Dr.reduceRight=function(e,t,r){var n=Wi(e)?Ft:Gt,o=arguments.length<3;return n(e,ua(t,4),r,o,pn)},Dr.repeat=function(e,t,r){return t=(r?wa(e,t,r):t===n)?1:hs(t),Qn(ys(e),t)},Dr.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dr.result=function(e,t,r){var o=-1,a=(t=wo(t,e)).length;for(a||(a=1,e=n);++o<a;){var i=null==e?n:e[Fa(t[o])];i===n&&(o=a,i=r),e=Yi(i)?i.call(e):i}return e},Dr.round=_l,Dr.runInContext=e,Dr.sample=function(e){return(Wi(e)?Jr:Yn)(e)},Dr.size=function(e){if(null==e)return 0;if(Ki(e))return ss(e)?fr(e):e.length;var t=ma(e);return t==$||t==O?e.size:Mn(e).length},Dr.snakeCase=Hs,Dr.some=function(e,t,r){var o=Wi(e)?zt:oo;return r&&wa(e,t,r)&&(t=n),o(e,ua(t,3))},Dr.sortedIndex=function(e,t){return ao(e,t)},Dr.sortedIndexBy=function(e,t,r){return io(e,t,ua(r,2))},Dr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ao(e,t);if(n<r&&Li(e[n],t))return n}return-1},Dr.sortedLastIndex=function(e,t){return ao(e,t,!0)},Dr.sortedLastIndexBy=function(e,t,r){return io(e,t,ua(r,2),!0)},Dr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=ao(e,t,!0)-1;if(Li(e[r],t))return r}return-1},Dr.startCase=Gs,Dr.startsWith=function(e,t,r){return e=ys(e),r=null==r?0:sn(hs(r),0,e.length),t=uo(t),e.slice(r,r+t.length)==t},Dr.subtract=$l,Dr.sum=function(e){return e&&e.length?Qt(e,nl):0},Dr.sumBy=function(e,t){return e&&e.length?Qt(e,ua(t,2)):0},Dr.template=function(e,t,r){var o=Dr.templateSettings;r&&wa(e,t,r)&&(t=n),e=ys(e),t=Ss({},t,o,Zo);var a,i,s=Ss({},t.imports,o.imports,Zo),l=Ns(s),u=Zt(s,l),c=0,d=t.interpolate||Se,f="__p += '",p=je((t.escape||Se).source+"|"+d.source+"|"+(d===Z?pe:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),h="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(p,(function(t,r,n,o,s,l){return n||(n=o),f+=e.slice(c,l).replace(xe,ar),r&&(a=!0,f+="' +\n__e("+r+") +\n'"),s&&(i=!0,f+="';\n"+s+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),f+="';\n";var m=Ie.call(t,"variable")&&t.variable;if(m){if(de.test(m))throw new _e("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(i?f.replace(W,""):f).replace(q,"$1").replace(K,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Xs((function(){return $e(l,h+"return "+f).apply(n,u)}));if(v.source=f,Ji(v))throw v;return v},Dr.times=function(e,t){if((e=hs(e))<1||e>p)return[];var r=m,n=yr(e,m);t=ua(t),e-=m;for(var o=Jt(n,t);++r<e;)t(r);return o},Dr.toFinite=ps,Dr.toInteger=hs,Dr.toLength=ms,Dr.toLower=function(e){return ys(e).toLowerCase()},Dr.toNumber=vs,Dr.toSafeInteger=function(e){return e?sn(hs(e),-9007199254740991,p):0===e?e:0},Dr.toString=ys,Dr.toUpper=function(e){return ys(e).toUpperCase()},Dr.trim=function(e,t,r){if((e=ys(e))&&(r||t===n))return Yt(e);if(!e||!(t=uo(t)))return e;var o=pr(e),a=pr(t);return xo(o,tr(o,a),rr(o,a)+1).join("")},Dr.trimEnd=function(e,t,r){if((e=ys(e))&&(r||t===n))return e.slice(0,hr(e)+1);if(!e||!(t=uo(t)))return e;var o=pr(e);return xo(o,0,rr(o,pr(t))+1).join("")},Dr.trimStart=function(e,t,r){if((e=ys(e))&&(r||t===n))return e.replace(ae,"");if(!e||!(t=uo(t)))return e;var o=pr(e);return xo(o,tr(o,pr(t))).join("")},Dr.truncate=function(e,t){var r=30,o="...";if(es(t)){var a="separator"in t?t.separator:a;r="length"in t?hs(t.length):r,o="omission"in t?uo(t.omission):o}var i=(e=ys(e)).length;if(ir(e)){var s=pr(e);i=s.length}if(r>=i)return e;var l=r-fr(o);if(l<1)return o;var u=s?xo(s,0,l).join(""):e.slice(0,l);if(a===n)return u+o;if(s&&(l+=u.length-l),as(a)){if(e.slice(l).search(a)){var c,d=u;for(a.global||(a=je(a.source,ys(he.exec(a))+"g")),a.lastIndex=0;c=a.exec(d);)var f=c.index;u=u.slice(0,f===n?l:f)}}else if(e.indexOf(uo(a),l)!=l){var p=u.lastIndexOf(a);p>-1&&(u=u.slice(0,p))}return u+o},Dr.unescape=function(e){return(e=ys(e))&&Q.test(e)?e.replace(H,mr):e},Dr.uniqueId=function(e){var t=++Me;return ys(e)+t},Dr.upperCase=Qs,Dr.upperFirst=Js,Dr.each=yi,Dr.eachRight=bi,Dr.first=Ka,sl(Dr,(Sl={},wn(Dr,(function(e,t){Ie.call(Dr.prototype,t)||(Sl[t]=e)})),Sl),{chain:!1}),Dr.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Dr[e].placeholder=Dr})),Ct(["drop","take"],(function(e,t){Ur.prototype[e]=function(r){r=r===n?1:gr(hs(r),0);var o=this.__filtered__&&!t?new Ur(this):this.clone();return o.__filtered__?o.__takeCount__=yr(r,o.__takeCount__):o.__views__.push({size:yr(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Ur.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Ur.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ua(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Ct(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Ur.prototype[e]=function(){return this[r](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Ur.prototype[e]=function(){return this.__filtered__?new Ur(this):this[r](1)}})),Ur.prototype.compact=function(){return this.filter(nl)},Ur.prototype.find=function(e){return this.filter(e).head()},Ur.prototype.findLast=function(e){return this.reverse().find(e)},Ur.prototype.invokeMap=Jn((function(e,t){return"function"==typeof e?new Ur(this):this.map((function(r){return Pn(r,e,t)}))})),Ur.prototype.reject=function(e){return this.filter(Ii(ua(e)))},Ur.prototype.slice=function(e,t){e=hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Ur(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Ur.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ur.prototype.toArray=function(){return this.take(m)},wn(Ur.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=Dr[o?"take"+("last"==t?"Right":""):t],i=o||/^find/.test(t);a&&(Dr.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,l=t instanceof Ur,u=s[0],c=l||Wi(t),d=function(e){var t=a.apply(Dr,It([e],s));return o&&f?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,p=!!this.__actions__.length,h=i&&!f,m=l&&!p;if(!i&&c){t=m?t:new Ur(this);var v=e.apply(t,s);return v.__actions__.push({func:pi,args:[d],thisArg:n}),new Vr(v,f)}return h&&m?e.apply(this,s):(v=this.thru(d),h?o?v.value()[0]:v.value():v)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Dr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(Wi(o)?o:[],e)}return this[r]((function(r){return t.apply(Wi(r)?r:[],e)}))}})),wn(Ur.prototype,(function(e,t){var r=Dr[t];if(r){var n=r.name+"";Ie.call(Pr,n)||(Pr[n]=[]),Pr[n].push({name:t,func:r})}})),Pr[Bo(n,2).name]=[{name:"wrapper",func:n}],Ur.prototype.clone=function(){var e=new Ur(this.__wrapped__);return e.__actions__=Po(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Po(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Po(this.__views__),e},Ur.prototype.reverse=function(){if(this.__filtered__){var e=new Ur(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Ur.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Wi(e),n=t<0,o=r?e.length:0,a=function(e,t,r){var n=-1,o=r.length;for(;++n<o;){var a=r[n],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=yr(t,e+i);break;case"takeRight":e=gr(e,t-i)}}return{start:e,end:t}}(0,o,this.__views__),i=a.start,s=a.end,l=s-i,u=n?s:i-1,c=this.__iteratees__,d=c.length,f=0,p=yr(l,this.__takeCount__);if(!r||!n&&o==l&&p==l)return mo(e,this.__actions__);var h=[];e:for(;l--&&f<p;){for(var m=-1,v=e[u+=t];++m<d;){var g=c[m],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}h[f++]=v}return h},Dr.prototype.at=hi,Dr.prototype.chain=function(){return fi(this)},Dr.prototype.commit=function(){return new Vr(this.value(),this.__chain__)},Dr.prototype.next=function(){this.__values__===n&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Dr.prototype.plant=function(e){for(var t,r=this;r instanceof Br;){var o=Da(r);o.__index__=0,o.__values__=n,t?a.__wrapped__=o:t=o;var a=o;r=r.__wrapped__}return a.__wrapped__=e,t},Dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Ur){var t=e;return this.__actions__.length&&(t=new Ur(this)),(t=t.reverse()).__actions__.push({func:pi,args:[ei],thisArg:n}),new Vr(t,this.__chain__)}return this.thru(ei)},Dr.prototype.toJSON=Dr.prototype.valueOf=Dr.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Dr.prototype.first=Dr.prototype.head,Ye&&(Dr.prototype[Ye]=function(){return this}),Dr}();vt?((vt.exports=vr)._=vr,mt._=vr):ht._=vr}).call(r)}(Uj,Vj);class qj{constructor(e){this.errorSchema={},this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){let t=Array.isArray(e)&&e.length>0||"string"==typeof e?Lv(this.errorSchema,e):this.errorSchema;return!t&&e&&(t={},BS(this.errorSchema,e,t)),t}resetAllErrors(e){return this.errorSchema=e?ex(e):{},this}addErrors(e,t){const r=this.getOrCreateErrorBlock(t);let n=Lv(r,ud);return Array.isArray(n)||(n=[],r[ud]=n),Array.isArray(e)?n.push(...e):n.push(e),this}setErrors(e,t){const r=this.getOrCreateErrorBlock(t),n=Array.isArray(e)?[...e]:[e];return BS(r,ud,n),this}clearErrors(e){const t=this.getOrCreateErrorBlock(e);return BS(t,ud,[]),this}}function Kj(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||0===e.minimum)&&(t.min=e.minimum),(e.maximum||0===e.maximum)&&(t.max=e.maximum),t}function Hj(e,t,r={},n=!0){const o=Object.assign({type:t||"text"},Kj(e));return r.inputType?o.type=r.inputType:t||("number"===e.type?(o.type="number",n&&void 0===o.step&&(o.step="any")):"integer"===e.type&&(o.type="number",void 0===o.step&&(o.step=1))),r.autocomplete&&(o.autoComplete=r.autocomplete),o}const Gj={props:{disabled:!1},submitText:"Submit",norender:!1};function Qj(e={}){const t=_d(e);if(t&&t[gd]){const e=t[gd];return Object.assign(Object.assign({},Gj),e)}return Gj}function Jj(e,t,r={}){const{templates:n}=t;return"ButtonTemplates"===e?n[e]:r[e]||n[e]}var Yj={},Xj={get exports(){return Yj},set exports(e){Yj=e}},Zj={},eC=a,tC=Symbol.for("react.element"),rC=Symbol.for("react.fragment"),nC=Object.prototype.hasOwnProperty,oC=eC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,aC={key:!0,ref:!0,__self:!0,__source:!0};function iC(e,t,r){var n,o={},a=null,i=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)nC.call(t,n)&&!aC.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:tC,type:e,key:a,ref:i,props:o,_owner:oC.current}}Zj.Fragment=rC,Zj.jsx=iC,Zj.jsxs=iC,function(e){e.exports=Zj}(Xj);var sC,lC={},uC={get exports(){return lC},set exports(e){lC=e}},cC={},dC=Symbol.for("react.element"),fC=Symbol.for("react.portal"),pC=Symbol.for("react.fragment"),hC=Symbol.for("react.strict_mode"),mC=Symbol.for("react.profiler"),vC=Symbol.for("react.provider"),gC=Symbol.for("react.context"),yC=Symbol.for("react.server_context"),bC=Symbol.for("react.forward_ref"),wC=Symbol.for("react.suspense"),SC=Symbol.for("react.suspense_list"),xC=Symbol.for("react.memo"),_C=Symbol.for("react.lazy"),$C=Symbol.for("react.offscreen");function kC(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case dC:switch(e=e.type){case pC:case mC:case hC:case wC:case SC:return e;default:switch(e=e&&e.$$typeof){case yC:case gC:case bC:case _C:case xC:case vC:return e;default:return t}}case fC:return t}}}sC=Symbol.for("react.module.reference"),cC.ContextConsumer=gC,cC.ContextProvider=vC,cC.Element=dC,cC.ForwardRef=bC,cC.Fragment=pC,cC.Lazy=_C,cC.Memo=xC,cC.Portal=fC,cC.Profiler=mC,cC.StrictMode=hC,cC.Suspense=wC,cC.SuspenseList=SC,cC.isAsyncMode=function(){return!1},cC.isConcurrentMode=function(){return!1},cC.isContextConsumer=function(e){return kC(e)===gC},cC.isContextProvider=function(e){return kC(e)===vC},cC.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===dC},cC.isForwardRef=function(e){return kC(e)===bC},cC.isFragment=function(e){return kC(e)===pC},cC.isLazy=function(e){return kC(e)===_C},cC.isMemo=function(e){return kC(e)===xC},cC.isPortal=function(e){return kC(e)===fC},cC.isProfiler=function(e){return kC(e)===mC},cC.isStrictMode=function(e){return kC(e)===hC},cC.isSuspense=function(e){return kC(e)===wC},cC.isSuspenseList=function(e){return kC(e)===SC},cC.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===pC||e===mC||e===hC||e===wC||e===SC||e===$C||"object"==typeof e&&null!==e&&(e.$$typeof===_C||e.$$typeof===xC||e.$$typeof===vC||e.$$typeof===gC||e.$$typeof===bC||e.$$typeof===sC||void 0!==e.getModuleId)},cC.typeOf=kC,function(e){e.exports=cC}(uC);var EC=n(lC);const jC={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 CC(e,t,r={}){const n=oj(e);if("function"==typeof t||t&&EC.isForwardRef(a.createElement(t))||EC.isMemo(t))return function(e){let t=Lv(e,"MergedWidget");if(!t){const r=e.defaultProps&&e.defaultProps.options||{};t=t=>{var{options:n}=t,o=ov(t,["options"]);return Yj.jsx(e,Object.assign({options:Object.assign(Object.assign({},r),n)},o))},BS(e,"MergedWidget",t)}return t}(t);if("string"!=typeof t)throw new Error("Unsupported widget definition: "+typeof t);if(t in r){return CC(e,r[t],r)}if("string"==typeof n){if(!(n in jC))throw new Error(`No widget for type '${n}'`);if(t in jC[n]){return CC(e,r[jC[n][t]],r)}}throw new Error(`No widget '${t}' for type '${n}'`)}function OC(e,t){return`${pw(e)?e:e[cd]}__${t}`}function PC(e){return OC(e,"description")}function NC(e){return OC(e,"error")}function RC(e){return OC(e,"examples")}function TC(e){return OC(e,"help")}function AC(e){return OC(e,"title")}function IC(e,t=!1){const r=t?` ${RC(e)}`:"";return`${NC(e)} ${PC(e)} ${TC(e)}${r}`}function MC(e,t){return`${e}-${t}`}function FC(e,t,r){return t?r:e}function zC(e){const t=e;if(t.enumNames,e.enum)return e.enum.map(((e,r)=>({label:t.enumNames&&t.enumNames[r]||String(e),value:e})));const r=e.oneOf||e.anyOf;return r&&r.map((e=>{const t=e,r=function(e){if(ld in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(ad in e)return e.const;throw new Error("schema cannot be inferred as a constant")}(t);return{schema:t,label:t.title||String(r),value:r}}))}function DC(e,t){let r=String(e);for(;r.length<t;)r="0"+r;return r}function LC(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 BC(e){if(e.const)return!0;if(e.enum&&1===e.enum.length&&!0===e.enum[0])return!0;if(e.anyOf&&1===e.anyOf.length)return BC(e.anyOf[0]);if(e.oneOf&&1===e.oneOf.length)return BC(e.oneOf[0]);if(e.allOf){const t=e=>BC(e);return e.allOf.some(t)}return!1}function VC(e,t=!0){const{year:r,month:n,day:o,hour:a=0,minute:i=0,second:s=0}=e,l=Date.UTC(r,n-1,o,a,i,s),u=new Date(l).toJSON();return t?u:u.slice(0,10)}function UC(e,t=[]){if(!e)return[];let r=[];return ud in e&&(r=r.concat(e[ud].map((e=>{const r=`.${t.join(".")}`;return{property:r,message:e,stack:`${r} ${e}`}})))),Object.keys(e).reduce(((r,n)=>{if(n!==ud){const o=e[n];Xd(o)&&(r=r.concat(UC(o,[...t,n])))}return r}),r)}var WC=wv,qC=Tg,KC=oh,HC=sv,GC=bv,QC=Iv,JC=Cv;var YC,XC=function(e){return KC(e)?WC(e,QC):HC(e)?[e]:qC(GC(JC(e)))};function ZC(e){return Object.keys(e).reduce(((t,r)=>{if("addError"===r)return t;{const n=e[r];return Xd(n)?Object.assign(Object.assign({},t),{[r]:ZC(n)}):Object.assign(Object.assign({},t),{[r]:n})}}),{})}function eO(e){if(!e)return"";const t=new Date(e);return`${DC(t.getFullYear(),4)}-${DC(t.getMonth()+1,2)}-${DC(t.getDate(),2)}T${DC(t.getHours(),2)}:${DC(t.getMinutes(),2)}:${DC(t.getSeconds(),2)}.${DC(t.getMilliseconds(),3)}`}function tO(e,t){if(!t)return e;const{errors:r,errorSchema:n}=e;let o=UC(t),a=t;return Jv(n)||(a=wj(n,t,!0),o=[...r].concat(o)),{errorSchema:a,errors:o}}function rO(e){return Array.isArray(e)?function(e){for(let t=0;t<e.length;t++)e[t]=rO(e[t]);return e}([...e]):xf(e)?function(e){for(const t in e){const r=e,n=r[t];t===yd&&"string"==typeof n&&n.startsWith("#")?r[t]=wd+n:r[t]=rO(n)}return e}(Object.assign({},e)):e}!function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",e.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",e.FilesInfo="<strong>%1</strong> (%2, %3 bytes)"}(YC||(YC={}));var nO,oO={},aO={get exports(){return oO},set exports(e){oO=e}},iO={},sO={},lO={},uO={},cO={},dO={};function fO(){return nO||(nO=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(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)s(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const a=new n("+");function i(e,...t){const r=[u(e[0])];let o=0;for(;o<t.length;)r.push(a),s(r,t[o]),r.push(a,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function s(e,t){t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push(function(e){return"number"==typeof e||"boolean"==typeof e||null===e?e:u(Array.isArray(e)?e.join(","):e)}(t))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new n(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new n(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(dO)),dO}var pO,hO,mO={};function vO(){return pO||(pO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=fO();class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=a;const i=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,n);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,(r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(o,a,i={},s){let l=t.nil;for(const u in o){const c=o[u];if(!c)continue;const d=i[u]=i[u]||new Map;c.forEach((o=>{if(d.has(o))return;d.set(o,n.Started);let i=a(o);if(i){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${r} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(o)))throw new r(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,n.Completed)}))}return l}}}(mO)),mO}function gO(){return hO||(hO=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=fO(),r=vO();var n=fO();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=vO();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.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 a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class i extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=O(this.rhs,e,r),this}get names(){return C(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class c extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=O(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(P(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>j(e,t.names)),{})}}class h extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends p{}class v extends h{}v.kind="else";class g extends h{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof g?t:t.nodes:this.nodes.length?this:new g(N(e),t instanceof g?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=O(this.condition,e,t),this}get names(){const e=super.names;return C(e,this.condition),this.else&&j(e,this.else.names),e}}g.kind="if";class y extends h{}y.kind="for";class b extends y{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=O(this.iteration,e,t),this}get names(){return j(super.names,this.iteration.names)}}class w extends y{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:a}=this;return`for(${t} ${n}=${o}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=C(super.names,this.from);return C(e,this.to)}}class S extends y{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=O(this.iterable,e,t),this}get names(){return j(super.names,this.iterable.names)}}class x extends h{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class _ extends p{render(e){return"return "+super.render(e)}}_.kind="return";class $ extends h{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&j(e,this.catch.names),this.finally&&j(e,this.finally.names),e}}class k extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.kind="catch";class E extends h{render(e){return"finally"+super.render(e)}}E.kind="finally";function j(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function C(e,r){return r instanceof t._CodeOrName?j(e,r.names):e}function O(e,r,n){return e instanceof t.Name?o(e):function(e){return e instanceof t._Code&&e._items.some((e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str]))}(e)?new t._Code(e._items.reduce(((e,r)=>(r instanceof t.Name&&(r=o(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e)),[])):e;function o(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function P(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${I(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new i(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new s(e,t,r))}add(t,r){return this._leafNode(new l(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new g(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new g(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const i=this._scope.toName(e);return this._for(new w(a,i,t,n),(()=>o(i)))}forOf(e,n,o,a=r.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,(r=>{this.var(i,t._`${e}[${r}]`),o(i)}))}return this._for(new S("of",a,i,n),(()=>o(i)))}forIn(e,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const i=this._scope.toName(e);return this._for(new S("in",a,i,n),(()=>o(i)))}endFor(){return this._endBlockNode(y)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new c(e))}return(e){const t=new _;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new $;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new k(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(k,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new x(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=N;const R=A(e.operators.AND);e.and=function(...e){return e.reduce(R)};const T=A(e.operators.OR);function A(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${I(r)} ${e} ${I(n)}`}function I(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(T)}}(cO)),cO}var yO={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=gO(),r=fO();function n(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||f(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function i(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:e,mergeToName:r,mergeValues:n,resultToName:o}){return(a,i,s,l)=>{const u=void 0===s?i:s instanceof t.Name?(i instanceof t.Name?e(a,i,s):r(a,i,s),s):i instanceof t.Name?(r(a,s,i),i):n(i,s);return l!==t.Name||u instanceof t.Name?u:o(a,u)}}function l(e,r){if(!0===r)return e.var("props",!0);const n=e.var("props",t._`{}`);return void 0!==r&&u(e,n,r),n}function u(e,r,n){Object.keys(n).forEach((n=>e.assign(t._`${r}${(0,t.getProperty)(n)}`,!0)))}e.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=n,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:r},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return t._`${n}`}return t._`${e}${r}${(0,t.getProperty)(o)}`},e.unescapeFragment=function(e){return i(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(a(e))},e.escapeJsonPointer=a,e.unescapeJsonPointer=i,e.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},e.mergeEvaluated={props:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>{e.if(t._`${r} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,t._`${n} || {}`).code(t._`Object.assign(${n}, ${r})`)))})),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>{!0===r?e.assign(n,!0):(e.assign(n,t._`${n} || {}`),u(e,n,r))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>e.assign(n,t._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`))),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>e.assign(n,!0===r||t._`${n} > ${r} ? ${n} : ${r}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=l,e.setEvaluated=u;const c={};var d;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:c[t.code]||(c[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d=e.Type||(e.Type={})),e.getErrorPath=function(e,r,n){if(e instanceof t.Name){const o=r===d.Num;return n?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,t.getProperty)(e).toString():"/"+a(e)},e.checkStrictMode=f}(yO);var bO,wO,SO,xO={};function _O(){if(bO)return xO;bO=1,Object.defineProperty(xO,"__esModule",{value:!0});const e=gO(),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 xO.default=t,xO}function $O(){return wO||(wO=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=gO(),r=yO,n=_O();function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,t._`[${o}]`)),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function a(e,r){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,i,l){const{it:u}=r,{gen:c,compositeRule:d,allErrors:f}=u,p=s(r,n,i);(null!=l?l:d||f)?o(c,p):a(u,t._`[${p}]`)},e.reportExtraError=function(t,r=e.keywordError,i){const{it:l}=t,{gen:u,compositeRule:c,allErrors:d}=l;o(u,s(t,r,i)),c||d||a(l,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,(()=>e.if(r,(()=>e.assign(t._`${n.default.vErrors}.length`,r)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:a,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,n.default.errors,(i=>{e.const(l,t._`${n.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(n.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${r}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,a))}))};const i={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 s(e,r,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,r,o={}){const{gen:a,it:s}=e,c=[l(s,o),u(e,o)];return function(e,{params:r,message:o},a){const{keyword:s,data:l,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:h}=c;a.push([i.keyword,s],[i.params,"function"==typeof r?r(e):r||t._`{}`]),d.messages&&a.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&a.push([i.schema,u],[i.parentSchema,t._`${p}${h}`],[n.default.data,l]);f&&a.push([i.propertyName,f])}(e,r,c),a.object(...c)}(e,r,o)}function l({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${(0,r.getErrorPath)(o,r.Type.Str)}`:e;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,a)]}function u({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:a}){let s=a?n:t.str`${n}/${e}`;return o&&(s=t.str`${s}${(0,r.getErrorPath)(o,r.Type.Str)}`),[i.schemaPath,s]}}(uO)),uO}var kO={},EO={};Object.defineProperty(EO,"__esModule",{value:!0}),EO.getRules=EO.isJSONType=void 0;const jO=new Set(["string","number","integer","boolean","null","object","array"]);EO.isJSONType=function(e){return"string"==typeof e&&jO.has(e)},EO.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var CO,OO={};function PO(){if(CO)return OO;function e(e,r){return r.rules.some((r=>t(e,r)))}function t(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}return CO=1,Object.defineProperty(OO,"__esModule",{value:!0}),OO.shouldUseRule=OO.shouldUseGroup=OO.schemaHasRulesForType=void 0,OO.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},OO.shouldUseGroup=e,OO.shouldUseRule=t,OO}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=EO,r=PO(),n=$O(),o=gO(),a=yO;var i;function s(e){const r=Array.isArray(e)?e:e?[e]:[];if(r.every(t.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(i=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){const t=s(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=s,e.coerceAndCheckDataType=function(e,t){const{gen:n,data:a,opts:s}=e,u=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),d=t.length>0&&!(0===u.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(d){const r=c(t,a,s.strictNumbers,i.Wrong);n.if(r,(()=>{u.length?function(e,t,r){const{gen:n,data:a,opts:i}=e,s=n.let("dataType",o._`typeof ${a}`),u=n.let("coerced",o._`undefined`);"array"===i.coerceTypes&&n.if(o._`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>n.assign(a,o._`${a}[0]`).assign(s,o._`typeof ${a}`).if(c(t,a,i.strictNumbers),(()=>n.assign(u,a)))));n.if(o._`${u} !== undefined`);for(const e of r)(l.has(e)||"array"===e&&"array"===i.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void n.elseIf(o._`${s} == "number" || ${s} == "boolean"`).assign(u,o._`"" + ${a}`).elseIf(o._`${a} === null`).assign(u,o._`""`);case"number":return void n.elseIf(o._`${s} == "boolean" || ${a} === null
45
45
  || (${s} == "string" && ${a} && ${a} == +${a})`).assign(u,o._`+${a}`);case"integer":return void n.elseIf(o._`${s} === "boolean" || ${a} === null
46
46
  || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(u,o._`+${a}`);case"boolean":return void n.elseIf(o._`${a} === "false" || ${a} === 0 || ${a} === null`).assign(u,!1).elseIf(o._`${a} === "true" || ${a} === 1`).assign(u,!0);case"null":return n.elseIf(o._`${a} === "" || ${a} === 0 || ${a} === false`),void n.assign(u,null);case"array":n.elseIf(o._`${s} === "string" || ${s} === "number"
47
- || ${s} === "boolean" || ${a} === null`).assign(u,o._`[${a}]`)}}n.else(),f(e),n.endIf(),n.if(o._`${u} !== undefined`,(()=>{n.assign(a,u),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,u)}))}(e,t,u):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function u(e,t,r,n=i.Correct){const a=n===i.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${a} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=l(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=l();break;default:return o._`typeof ${t} ${a} ${e}`}return n===i.Correct?s:(0,o.not)(s);function l(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function c(e,t,r,n){if(1===e.length)return u(e[0],t,r,n);let i;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;i=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else i=o.nil;s.number&&delete s.integer;for(const e in s)i=(0,o.and)(i,u(e,t,r,n));return i}e.checkDataType=u,e.checkDataTypes=c;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,n.reportError)(t,d)}e.reportTypeError=f}(SO);var jO,CO={};var OO,PO,NO={},RO={};function TO(){if(OO)return RO;OO=1,Object.defineProperty(RO,"__esModule",{value:!0}),RO.validateUnion=RO.validateArray=RO.usePattern=RO.callValidateCode=RO.schemaProperties=RO.allSchemaProperties=RO.noPropertyInData=RO.propertyInData=RO.isOwnProperty=RO.hasPropFunc=RO.reportMissingProp=RO.checkMissingProp=RO.checkReportMissingProp=void 0;const e=pO(),t=hO,r=bO(),n=hO;function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function a(t,r,n){return e._`${o(t)}.call(${r}, ${n})`}function i(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} === undefined`;return o?(0,e.or)(i,(0,e.not)(a(t,r,n))):i}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}RO.checkReportMissingProp=function(t,r){const{gen:n,data:o,it:a}=t;n.if(i(n,o,r,a.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()}))},RO.checkMissingProp=function({gen:t,data:r,it:{opts:n}},o,a){return(0,e.or)(...o.map((o=>(0,e.and)(i(t,r,o,n.ownProperties),e._`${a} = ${o}`))))},RO.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},RO.hasPropFunc=o,RO.isOwnProperty=a,RO.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},RO.noPropertyInData=i,RO.allSchemaProperties=s,RO.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},RO.callValidateCode=function({schemaCode:t,data:n,it:{gen:o,topSchemaRef:a,schemaPath:i,errorPath:s},it:l},u,c,d){const f=d?e._`${t}, ${n}, ${a}${i}`:n,p=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,s)],[r.default.parentData,l.parentData],[r.default.parentDataProperty,l.parentDataProperty],[r.default.rootData,r.default.rootData]];l.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const h=e._`${f}, ${o.object(...p)}`;return c!==e.nil?e._`${u}.call(${c}, ${h})`:e._`${u}(${h})`};const l=e._`new RegExp`;return RO.usePattern=function({gen:t,it:{opts:r}},o){const a=r.unicodeRegExp?"u":"",{regExp:i}=r.code,s=i(o,a);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===i.code?l:(0,n.useFunc)(t,i)}(${o}, ${a})`})},RO.validateArray=function(r){const{gen:n,data:o,keyword:a,it:i}=r,s=n.name("valid");if(i.allErrors){const e=n.let("valid",!0);return l((()=>n.assign(e,!1))),e}return n.var(s,!0),l((()=>n.break())),s;function l(i){const l=n.const("len",e._`${o}.length`);n.forRange("i",0,l,(o=>{r.subschema({keyword:a,dataProp:o,dataPropType:t.Type.Num},s),n.if((0,e.not)(s),i)}))}},RO.validateUnion=function(r){const{gen:n,schema:o,keyword:a,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some((e=>(0,t.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const s=n.let("valid",!1),l=n.name("_valid");n.block((()=>o.forEach(((t,o)=>{const i=r.subschema({keyword:a,schemaProp:o,compositeRule:!0},l);n.assign(s,e._`${s} || ${l}`);r.mergeValidEvaluated(i,l)||n.if((0,e.not)(s))})))),r.result(s,(()=>r.reset()),(()=>r.error(!0)))},RO}function AO(){if(PO)return NO;PO=1,Object.defineProperty(NO,"__esModule",{value:!0}),NO.validateKeywordUsage=NO.validSchemaType=NO.funcKeywordCode=NO.macroKeywordCode=void 0;const e=pO(),t=bO(),r=TO(),n=wO();function o(t){const{gen:r,data:n,it:o}=t;r.if(o.parentData,(()=>r.assign(n,e._`${o.parentData}[${o.parentDataProperty}]`)))}function a(t,r,n){if(void 0===n)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return NO.macroKeywordCode=function(t,r){const{gen:n,keyword:o,schema:i,parentSchema:s,it:l}=t,u=r.macro.call(l.self,i,s,l),c=a(n,o,u);!1!==l.opts.validateSchema&&l.self.validateSchema(u,!0);const d=n.name("valid");t.subschema({schema:u,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:c,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},NO.funcKeywordCode=function(i,s){var l;const{gen:u,keyword:c,schema:d,parentSchema:f,$data:p,it:h}=i;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,s);const m=!p&&s.compile?s.compile.call(h.self,d,f,h):s.validate,v=a(u,c,m),g=u.let("valid");function y(n=(s.async?e._`await `:e.nil)){const o=h.opts.passContext?t.default.this:t.default.self,a=!("compile"in s&&!p||!1===s.schema);u.assign(g,e._`${n}${(0,r.callValidateCode)(i,v,o,a)}`,s.modifying)}function b(t){var r;u.if((0,e.not)(null!==(r=s.valid)&&void 0!==r?r:g),t)}i.block$data(g,(function(){if(!1===s.errors)y(),s.modifying&&o(i),b((()=>i.error()));else{const r=s.async?function(){const t=u.let("ruleErrs",null);return u.try((()=>y(e._`await `)),(r=>u.assign(g,!1).if(e._`${r} instanceof ${h.ValidationError}`,(()=>u.assign(t,e._`${r}.errors`)),(()=>u.throw(r))))),t}():function(){const t=e._`${v}.errors`;return u.assign(t,null),y(e.nil),t}();s.modifying&&o(i),b((()=>function(r,o){const{gen:a}=r;a.if(e._`Array.isArray(${o})`,(()=>{a.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,n.extendErrors)(r)}),(()=>r.error()))}(i,r)))}})),i.ok(null!==(l=s.valid)&&void 0!==l?l:g)},NO.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},NO.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(null==i?void 0:i.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},NO}var IO,MO={};var FO={},zO=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r},DO={},LO={get exports(){return DO},set exports(e){DO=e}},BO=LO.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),VO(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function VO(e,t,r,n,o,a,i,s,l,u){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var c in t(n,o,a,i,s,l,u),n){var d=n[c];if(Array.isArray(d)){if(c in BO.arrayKeywords)for(var f=0;f<d.length;f++)VO(e,t,r,d[f],o+"/"+c+"/"+f,a,o,c,n,f)}else if(c in BO.propsKeywords){if(d&&"object"==typeof d)for(var p in d)VO(e,t,r,d[p],o+"/"+c+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,c,n,p)}else(c in BO.keywords||e.allKeys&&!(c in BO.skipKeywords))&&VO(e,t,r,d,o+"/"+c,a,o,c,n)}r(n,o,a,i,s,l,u)}}BO.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},BO.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},BO.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},BO.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},Object.defineProperty(FO,"__esModule",{value:!0}),FO.getSchemaRefs=FO.resolveUrl=FO.normalizeId=FO._getFullPath=FO.getFullPath=FO.inlineRef=void 0;const UO=hO,WO=zO,qO=DO,KO=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);FO.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!GO(e):!!t&&QO(e)<=t)};const HO=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function GO(e){for(const t in e){if(HO.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(GO))return!0;if("object"==typeof r&&GO(r))return!0}return!1}function QO(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!KO.has(r)&&("object"==typeof e[r]&&(0,UO.eachItem)(e[r],(e=>t+=QO(e))),t===1/0))return 1/0}return t}function JO(e,t="",r){!1!==r&&(t=ZO(t));const n=e.parse(t);return YO(e,n)}function YO(e,t){return e.serialize(t).split("#")[0]+"#"}FO.getFullPath=JO,FO._getFullPath=YO;const XO=/#\/?$/;function ZO(e){return e?e.replace(XO,""):""}FO.normalizeId=ZO,FO.resolveUrl=function(e,t,r){return r=ZO(r),e.resolve(t,r)};const eP=/^[a-z_][-a-z0-9._]*$/i;var tP;function rP(){if(tP)return nO;tP=1,Object.defineProperty(nO,"__esModule",{value:!0}),nO.getData=nO.KeywordCxt=nO.validateFunctionCode=void 0;const e=function(){if(gO)return oO;gO=1,Object.defineProperty(oO,"__esModule",{value:!0}),oO.boolOrEmptySchema=oO.topBoolOrEmptySchema=void 0;const e=wO(),t=pO(),r=bO(),n={message:"boolean schema is false"};function o(t,r){const{gen:o,data:a}=t,i={gen:o,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(i,n,void 0,r)}return oO.topBoolOrEmptySchema=function(e){const{gen:n,schema:a,validateName:i}=e;!1===a?o(e,!1):"object"==typeof a&&!0===a.$async?n.return(r.default.data):(n.assign(t._`${i}.errors`,null),n.return(!0))},oO.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},oO}(),t=SO,r=EO(),n=SO,o=function(){if(jO)return CO;jO=1,Object.defineProperty(CO,"__esModule",{value:!0}),CO.assignDefaults=void 0;const e=pO(),t=hO;function r(r,n,o){const{gen:a,compositeRule:i,data:s,opts:l}=r;if(void 0===o)return;const u=e._`${s}${(0,e.getProperty)(n)}`;if(i)return void(0,t.checkStrictMode)(r,`default is ignored for: ${u}`);let c=e._`${u} === undefined`;"empty"===l.useDefaults&&(c=e._`${c} || ${u} === null || ${u} === ""`),a.if(c,e._`${u} = ${(0,e.stringify)(o)}`)}return CO.assignDefaults=function(e,t){const{properties:n,items:o}=e.schema;if("object"===t&&n)for(const t in n)r(e,t,n[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,n)=>r(e,n,t.default)))},CO}(),a=AO(),i=function(){if(IO)return MO;IO=1,Object.defineProperty(MO,"__esModule",{value:!0}),MO.extendSubschemaMode=MO.extendSubschemaData=MO.getSubschema=void 0;const e=pO(),t=hO;return MO.getSubschema=function(r,{keyword:n,schemaProp:o,schema:a,schemaPath:i,errSchemaPath:s,topSchemaRef:l}){if(void 0!==n&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const a=r.schema[n];return void 0===o?{schema:a,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:a[o],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(o)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,t.escapeFragment)(o)}`}}if(void 0!==a){if(void 0===i||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:i,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},MO.extendSubschemaData=function(r,n,{dataProp:o,dataPropType:a,data:i,dataTypes:s,propertyName:l}){if(void 0!==i&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=n;if(void 0!==o){const{errorPath:i,dataPathArr:s,opts:l}=n;c(u.let("data",e._`${n.data}${(0,e.getProperty)(o)}`,!0)),r.errorPath=e.str`${i}${(0,t.getErrorPath)(o,a,l.jsPropertySyntax)}`,r.parentDataProperty=e._`${o}`,r.dataPathArr=[...s,r.parentDataProperty]}function c(e){r.data=e,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,e]}void 0!==i&&(c(i instanceof e.Name?i:u.let("data",i,!0)),void 0!==l&&(r.propertyName=l)),s&&(r.dataTypes=s)},MO.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r},MO}(),s=pO(),l=bO(),u=FO,c=hO,d=wO();function f({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,n.$async,(()=>{e.code(s._`"use strict"; ${p(r,o)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,s._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,s._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,s._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,s._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,s._`""`),e.var(l.default.parentData,s._`undefined`),e.var(l.default.parentDataProperty,s._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`{}`)}))}(e,o),e.code(a)})):e.func(t,s._`${l.default.data}, ${function(e){return s._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?s._`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}(o)}`,n.$async,(()=>e.code(p(r,o)).code(a)))}function p(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?s._`/*# sourceURL=${r} */`:s.nil}function h(t,r){v(t)&&(g(t),m(t))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&b(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",l.default.errors);y(e,a),n.var(t,s._`${a} === ${l.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function m({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function g(e){(0,c.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function y(e,r){if(e.opts.jtd)return w(e,[],!1,r);const n=(0,t.getSchemaTypes)(e.schema);w(e,n,!(0,t.coerceAndCheckDataType)(e,n),r)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(s._`${l.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=s.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function w(e,t,o,a){const{gen:i,schema:u,data:d,allErrors:f,opts:p,self:h}=e,{RULES:m}=h;function v(c){(0,r.shouldUseGroup)(u,c)&&(c.type?(i.if((0,n.checkDataType)(c.type,d,p.strictNumbers)),S(e,c),1===t.length&&t[0]===c.type&&o&&(i.else(),(0,n.reportTypeError)(e)),i.endIf()):S(e,c),f||i.if(s._`${l.default.errors} === ${a||0}`))}!u.$ref||!p.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(u,m)?(p.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{_(e.dataTypes,t)||$(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)_(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&$(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const o in n){const a=n[o];if("object"==typeof a&&(0,r.shouldUseRule)(e.schema,a)){const{type:r}=a.definition;r.length&&!r.some((e=>x(t,e)))&&$(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of m.rules)v(e);v(m.post)}))):i.block((()=>E(e,"$ref",m.all.$ref.definition)))}function S(e,t){const{gen:n,schema:a,opts:{useDefaults:i}}=e;i&&(0,o.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,r.shouldUseRule)(a,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function _(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function $(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,c.checkStrictMode)(e,t,e.opts.strictTypes)}nO.validateFunctionCode=function(t){v(t)&&(g(t),m(t))?function(e){const{schema:t,opts:r,gen:n}=e;f(e,(()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,c.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(l.default.vErrors,null),n.let(l.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",s._`${r}.evaluated`),t.if(s._`${e.evaluated}.dynamicProps`,(()=>t.assign(s._`${e.evaluated}.props`,s._`undefined`))),t.if(s._`${e.evaluated}.dynamicItems`,(()=>t.assign(s._`${e.evaluated}.items`,s._`undefined`)))}(e),y(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${o}(${l.default.vErrors})`))):(t.assign(s._`${n}.errors`,l.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof s.Name&&e.assign(s._`${t}.props`,r);n instanceof s.Name&&e.assign(s._`${t}.items`,n)}(e),t.return(s._`${l.default.errors} === 0`))}(e)}))}(t):f(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class k{constructor(e,t,r){if((0,a.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",O(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,r){this.failResult((0,s.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=s.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,s.or)(s._`${n} === undefined`,t)),e!==s.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:o,it:a}=this;return(0,s.or)(function(){if(r.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return s._`${(0,n.checkDataTypes)(e,t,a.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}(),function(){if(o.validateSchema){const r=e.scopeValue("validate$data",{ref:o.validateSchema});return s._`!${r}(${t})`}return s.nil}())}subschema(e,t){const r=(0,i.getSubschema)(this.it,e);(0,i.extendSubschemaData)(r,this.it,e),(0,i.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return h(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=c.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=c.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function E(e,t,r,n){const o=new k(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,a.funcKeywordCode)(o,r):"macro"in r?(0,a.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,a.funcKeywordCode)(o,r)}nO.KeywordCxt=k;const j=/^\/(?:[^~]|~0|~1)*$/,C=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function O(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(""===e)return l.default.rootData;if("/"===e[0]){if(!j.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=l.default.rootData}else{const i=C.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(o=i[2],"#"===o){if(s>=t)throw new Error(d("property/index",s));return n[t-s]}if(s>t)throw new Error(d("data",s));if(a=r[t-s],!o)return a}let i=a;const u=o.split("/");for(const e of u)e&&(a=s._`${a}${(0,s.getProperty)((0,c.unescapeJsonPointer)(e))}`,i=s._`${i} && ${a}`);return i;function d(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return nO.getData=O,nO}FO.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=ZO(e[r]||t),a={"":o},i=JO(n,o,!1),s={},l=new Set;return qO(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const d=i+t;let f=a[o];function p(t){const r=this.opts.uriResolver.resolve;if(t=ZO(f?r(f,t):t),l.has(t))throw c(t);l.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?u(e,n.schema,t):t!==ZO(d)&&("#"===t[0]?(u(e,s[t],t),s[t]=e):this.refs[t]=d),t}function h(e){if("string"==typeof e){if(!eP.test(e))throw new Error(`invalid anchor "${e}"`);p.call(this,`#${e}`)}}"string"==typeof e[r]&&(f=p.call(this,e[r])),h.call(this,e.$anchor),h.call(this,e.$dynamicAnchor),a[t]=f})),s;function u(e,t,r){if(void 0!==t&&!WO(e,t))throw c(r)}function c(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var nP,oP={};function aP(){if(nP)return oP;nP=1,Object.defineProperty(oP,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return oP.default=e,oP}var iP,sP={};function lP(){if(iP)return sP;iP=1,Object.defineProperty(sP,"__esModule",{value:!0});const e=FO;class t extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return sP.default=t,sP}var uP={};Object.defineProperty(uP,"__esModule",{value:!0}),uP.resolveSchema=uP.getCompilingSchema=uP.resolveRef=uP.compileSchema=uP.SchemaEnv=void 0;const cP=pO(),dP=aP(),fP=bO(),pP=FO,hP=hO,mP=rP();let vP=class{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,pP.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}};function gP(e){const t=bP.call(this,e);if(t)return t;const r=(0,pP.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new cP.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:dP.default,code:cP._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const u={gen:i,allErrors:this.opts.allErrors,data:fP.default.data,parentData:fP.default.parentData,parentDataProperty:fP.default.parentDataProperty,dataNames:[fP.default.data],dataPathArr:[cP.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,cP.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:cP.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:cP._`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,mP.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);const t=i.toString();c=`${i.scopeRefs(fP.default.scope)}return ${t}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const r=new Function(`${fP.default.self}`,`${fP.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:l,validateCode:t,scopeValues:i._values}),this.opts.unevaluated){const{props:e,items:t}=u;r.evaluated={props:e instanceof cP.Name?void 0:e,items:t instanceof cP.Name?void 0:t,dynamicProps:e instanceof cP.Name,dynamicItems:t instanceof cP.Name},r.source&&(r.source.evaluated=(0,cP.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),t}finally{this._compilations.delete(e)}}function yP(e){return(0,pP.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:gP.call(this,e)}function bP(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function wP(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||SP.call(this,e,t)}function SP(e,t){const r=this.opts.uriResolver.parse(t),n=(0,pP._getFullPath)(this.opts.uriResolver,r);let o=(0,pP.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return _P.call(this,r,e);const a=(0,pP.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=SP.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return _P.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||gP.call(this,i),a===(0,pP.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,pP.resolveUrl)(this.opts.uriResolver,o,n)),new vP({schema:t,schemaId:r,root:e,baseId:o})}return _P.call(this,r,i)}}uP.SchemaEnv=vP,uP.compileSchema=gP,uP.resolveRef=function(e,t,r){var n;r=(0,pP.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=wP.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:i}=this.opts;o&&(a=new vP({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=yP.call(this,a):void 0},uP.getCompilingSchema=bP,uP.resolveSchema=SP;const xP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function _P(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,hP.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!xP.has(n)&&o&&(t=(0,pP.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,hP.schemaHasRulesButRef)(r,this.RULES)){const e=(0,pP.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=SP.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new vP({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var $P={$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},kP={},EP={};(function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,o=1;o<n;++o)t[o]=t[o].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function a(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function i(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function s(e){var n="[A-Za-z]",o="[0-9]",a=t(o,"[A-Fa-f]"),i=r(r("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+r("%[89A-Fa-f]"+a+"%"+a+a)+"|"+r("%"+a+a)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",l=t("[\\:\\/\\?\\#\\[\\]\\@]",s),u=e?"[\\uE000-\\uF8FF]":"[]",c=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,o,"[\\+\\-\\.]")+"*"),r(r(i+"|"+t(c,s,"[\\:]"))+"*");var d=r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o),f=r(d+"\\."+d+"\\."+d+"\\."+d),p=r(a+"{1,4}"),h=r(r(p+"\\:"+p)+"|"+f),m=r(r(p+"\\:")+"{6}"+h),v=r("\\:\\:"+r(p+"\\:")+"{5}"+h),g=r(r(p)+"?\\:\\:"+r(p+"\\:")+"{4}"+h),y=r(r(r(p+"\\:")+"{0,1}"+p)+"?\\:\\:"+r(p+"\\:")+"{3}"+h),b=r(r(r(p+"\\:")+"{0,2}"+p)+"?\\:\\:"+r(p+"\\:")+"{2}"+h),w=r(r(r(p+"\\:")+"{0,3}"+p)+"?\\:\\:"+p+"\\:"+h),S=r(r(r(p+"\\:")+"{0,4}"+p)+"?\\:\\:"+h),x=r(r(r(p+"\\:")+"{0,5}"+p)+"?\\:\\:"+p),_=r(r(r(p+"\\:")+"{0,6}"+p)+"?\\:\\:"),$=r([m,v,g,y,b,w,S,x,_].join("|")),k=r(r(c+"|"+i)+"+");r("[vV]"+a+"+\\."+t(c,s,"[\\:]")+"+"),r(r(i+"|"+t(c,s))+"*");var E=r(i+"|"+t(c,s,"[\\:\\@]"));return r(r(i+"|"+t(c,s,"[\\@]"))+"+"),r(r(E+"|"+t("[\\/\\?]",u))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",c,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",c,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",c,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",c,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",c,s,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",c,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",c,s),"g"),UNRESERVED:new RegExp(c,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",c,l),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+$+")"+r(r("\\%25|\\%(?!"+a+"{2})")+"("+k+")")+"?\\]?$")}}var l=s(!1),u=s(!0),c=function(){function e(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},f=2147483647,p=36,h=1,m=26,v=38,g=700,y=72,b=128,w="-",S=/^xn--/,x=/[^\0-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,$={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=p-h,E=Math.floor,j=String.fromCharCode;function C(e){throw new RangeError($[e])}function O(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function P(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+O((e=e.replace(_,".")).split("."),t).join(".")}function N(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),r--)}else t.push(o)}return t}var R=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},T=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},A=function(e,t,r){var n=0;for(e=r?E(e/g):e>>1,e+=E(e/t);e>k*m>>1;n+=p)e=E(e/k);return E(n+(k+1)*e/(e+v))},I=function(e){var t=[],r=e.length,n=0,o=b,a=y,i=e.lastIndexOf(w);i<0&&(i=0);for(var s=0;s<i;++s)e.charCodeAt(s)>=128&&C("not-basic"),t.push(e.charCodeAt(s));for(var l=i>0?i+1:0;l<r;){for(var u=n,c=1,d=p;;d+=p){l>=r&&C("invalid-input");var v=R(e.charCodeAt(l++));(v>=p||v>E((f-n)/c))&&C("overflow"),n+=v*c;var g=d<=a?h:d>=a+m?m:d-a;if(v<g)break;var S=p-g;c>E(f/S)&&C("overflow"),c*=S}var x=t.length+1;a=A(n-u,x,0==u),E(n/x)>f-o&&C("overflow"),o+=E(n/x),n%=x,t.splice(n++,0,o)}return String.fromCodePoint.apply(String,t)},M=function(e){var t=[],r=(e=N(e)).length,n=b,o=0,a=y,i=!0,s=!1,l=void 0;try{for(var u,c=e[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=u.value;d<128&&t.push(j(d))}}catch(e){s=!0,l=e}finally{try{!i&&c.return&&c.return()}finally{if(s)throw l}}var v=t.length,g=v;for(v&&t.push(w);g<r;){var S=f,x=!0,_=!1,$=void 0;try{for(var k,O=e[Symbol.iterator]();!(x=(k=O.next()).done);x=!0){var P=k.value;P>=n&&P<S&&(S=P)}}catch(e){_=!0,$=e}finally{try{!x&&O.return&&O.return()}finally{if(_)throw $}}var R=g+1;S-n>E((f-o)/R)&&C("overflow"),o+=(S-n)*R,n=S;var I=!0,M=!1,F=void 0;try{for(var z,D=e[Symbol.iterator]();!(I=(z=D.next()).done);I=!0){var L=z.value;if(L<n&&++o>f&&C("overflow"),L==n){for(var B=o,V=p;;V+=p){var U=V<=a?h:V>=a+m?m:V-a;if(B<U)break;var W=B-U,q=p-U;t.push(j(T(U+W%q,0))),B=E(W/q)}t.push(j(T(B,0))),a=A(o,R,g==v),o=0,++g}}}catch(e){M=!0,F=e}finally{try{!I&&D.return&&D.return()}finally{if(M)throw F}}++o,++n}return t.join("")},F=function(e){return P(e,(function(e){return S.test(e)?I(e.slice(4).toLowerCase()):e}))},z=function(e){return P(e,(function(e){return x.test(e)?"xn--"+M(e):e}))},D={version:"2.1.0",ucs2:{decode:N,encode:function(e){return String.fromCodePoint.apply(String,d(e))}},decode:I,encode:M,toASCII:z,toUnicode:F},L={};function B(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function V(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&a)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var i=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&i)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function U(e,t){function r(e){var r=V(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,B).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,B).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,B).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,B).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,B).replace(t.PCT_ENCODED,o)),e}function W(e){return e.replace(/^0*(.*)/,"$1")||"0"}function q(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=c(r,2)[1];return n?n.split(".").map(W).join("."):e}function K(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=c(r,3),o=n[1],a=n[2];if(o){for(var i=o.toLowerCase().split("::").reverse(),s=c(i,2),l=s[0],u=s[1],d=u?u.split(":").map(W):[],f=l.split(":").map(W),p=t.IPV4ADDRESS.test(f[f.length-1]),h=p?7:8,m=f.length-h,v=Array(h),g=0;g<h;++g)v[g]=d[g]||f[m+g]||"";p&&(v[h-1]=q(v[h-1],t));var y=v.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(y&&y.length>1){var w=v.slice(0,y.index),S=v.slice(y.index+y.length);b=w.join(":")+"::"+S.join(":")}else b=v.join(":");return a&&(b+="%"+a),b}return e}var H=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,G=void 0==="".match(/(){0}/)[1];function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?u:l;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(H);if(o){G?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=K(q(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=L[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)U(r,n);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=D.toASCII(r.host.replace(n.PCT_ENCODED,V).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}U(r,l)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function J(e,t){var r=!1!==t.iri?u:l,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(K(q(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var Y=/^\.\.?\//,X=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(Y))e=e.replace(Y,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(Z))e=e.replace(Z,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?u:l,n=[],o=L[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?D.toUnicode(e.host):D.toASCII(e.host.replace(r.PCT_ENCODED,V).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}U(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var a=J(e,t);if(void 0!==a&&("suffix"!==t.reference&&n.push("//"),n.push(a),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var i=e.path;t.absolutePath||o&&o.absolutePath||(i=te(i)),void 0===a&&(i=i.replace(/^\/\//,"/%2F")),n.push(i)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=Q(re(e,r),r),t=Q(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function oe(e,t,r){var n=i({scheme:"null"},r);return re(ne(Q(e,n),Q(t,n),n,!0),n)}function ae(e,t){return"string"==typeof e?e=re(Q(e,t),t):"object"===n(e)&&(e=Q(re(e,t),t)),e}function ie(e,t,r){return"string"==typeof e?e=re(Q(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(Q(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?u.ESCAPE:l.ESCAPE,B)}function le(e,t){return e&&e.toString().replace(t&&t.iri?u.PCT_ENCODED:l.PCT_ENCODED,V)}var ue={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},ce={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function de(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var fe={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=de(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(de(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=c(r,2),o=n[0],a=n[1];e.path=o&&"/"!==o?o:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},pe={scheme:"wss",domainHost:fe.domainHost,parse:fe.parse,serialize:fe.serialize},he={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ve="[0-9A-Fa-f]",ge=r(r("%[EFef]"+ve+"%"+ve+ve+"%"+ve+ve)+"|"+r("%[89A-Fa-f]"+ve+"%"+ve+ve)+"|"+r("%"+ve+ve)),ye="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),we="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Se=new RegExp(me,"g"),xe=new RegExp(ge,"g"),_e=new RegExp(t("[^]",ye,"[\\.]",'[\\"]',be),"g"),$e=new RegExp(t("[^]",me,we),"g"),ke=$e;function Ee(e){var t=V(e);return t.match(Se)?t:e}var je={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var o=!1,a={},i=r.query.split("&"),s=0,l=i.length;s<l;++s){var u=i[s].split("=");switch(u[0]){case"to":for(var c=u[1].split(","),d=0,f=c.length;d<f;++d)n.push(c[d]);break;case"subject":r.subject=le(u[1],t);break;case"body":r.body=le(u[1],t);break;default:o=!0,a[le(u[0],t)]=le(u[1],t)}}o&&(r.headers=a)}r.query=void 0;for(var p=0,h=n.length;p<h;++p){var m=n[p].split("@");if(m[0]=le(m[0]),t.unicodeSupport)m[1]=le(m[1],t).toLowerCase();else try{m[1]=D.toASCII(le(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[p]=m.join("@")}return r},serialize:function(e,t){var r=e,n=a(e.to);if(n){for(var i=0,s=n.length;i<s;++i){var l=String(n[i]),u=l.lastIndexOf("@"),c=l.slice(0,u).replace(xe,Ee).replace(xe,o).replace(_e,B),d=l.slice(u+1);try{d=t.iri?D.toUnicode(d):D.toASCII(le(d,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[i]=c+"@"+d}r.path=n.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var h in f)f[h]!==he[h]&&p.push(h.replace(xe,Ee).replace(xe,o).replace($e,B)+"="+f[h].replace(xe,Ee).replace(xe,o).replace(ke,B));return p.length&&(r.query=p.join("&")),r}},Ce=/^([^\:]+)\:(.*)/,Oe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Ce),n=e;if(r){var o=t.scheme||n.scheme||"urn",a=r[1].toLowerCase(),i=r[2],s=o+":"+(t.nid||a),l=L[s];n.nid=a,n.nss=i,n.path=void 0,l&&(n=l.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,o=r+":"+(t.nid||n),a=L[o];a&&(e=a.serialize(e,t));var i=e,s=e.nss;return i.path=(n||t.nid)+":"+s,i}},Pe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ne={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Pe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};L[ue.scheme]=ue,L[ce.scheme]=ce,L[fe.scheme]=fe,L[pe.scheme]=pe,L[je.scheme]=je,L[Oe.scheme]=Oe,L[Ne.scheme]=Ne,e.SCHEMES=L,e.pctEncChar=B,e.pctDecChars=V,e.parse=Q,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=oe,e.normalize=ae,e.equal=ie,e.escapeComponent=se,e.unescapeComponent=le,Object.defineProperty(e,"__esModule",{value:!0})})(EP),Object.defineProperty(kP,"__esModule",{value:!0});const jP=EP;jP.code='require("ajv/dist/runtime/uri").default',kP.default=jP,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=rP();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=pO();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 n=aP(),o=lP(),a=xO,i=uP,s=pO(),l=FO,u=SO,c=hO,d=$P,f=kP,p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],m=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.'};function y(e){var t,r,n,o,a,i,s,l,u,c,d,h,m,v,g,y,b,w,S,x,_,$,k,E,j;const C=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,P=!0===O||void 0===O?1:O||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,R=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:C)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:C)||void 0===l||l,strictTypes:null!==(c=null!==(u=e.strictTypes)&&void 0!==u?u:C)&&void 0!==c?c:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:C)&&void 0!==h?h:"log",strictRequired:null!==(v=null!==(m=e.strictRequired)&&void 0!==m?m:C)&&void 0!==v&&v,code:e.code?{...e.code,optimize:P,regExp:N}:{optimize:P,regExp:N},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(S=e.inlineRefs)||void 0===S||S,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===(_=e.addUsedSchema)||void 0===_||_,validateSchema:null===($=e.validateSchema)||void 0===$||$,validateFormats:null===(k=e.validateFormats)||void 0===k||k,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(j=e.int32range)||void 0===j||j,uriResolver:R}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...y(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:m,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,g,e,"DEPRECATED","warn"),this._metaOpts=k.call(this),e.formats&&_.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&$.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const r=await u.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new i.SchemaEnv({schema:{},schemaId:r});if(t=i.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(C.call(this,r,t),!t)return(0,c.eachItem)(r,(e=>O.call(this,e))),this;N.call(this,t);const n={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,c.eachItem)(r,0===n.type.length?e=>O.call(this,e,n):e=>n.type.forEach((t=>O.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=T(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(void 0!==u)return u;r=(0,l.normalizeId)(a||r);const c=l.getSchemaRefs.call(this,e,r);return u=new i.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:c}),this._cache.set(u.schema,u),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=u),n&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function S(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function _(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function $(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function k(){const e={...this.opts};for(const t of h)delete e[t];return e}e.default=b,b.ValidationError=n.default,b.MissingRefError=o.default;const E={log(){},warn(){},error(){}};const j=/^[a-z_$][a-z0-9_$:-]*$/i;function C(e,t){const{RULES:r}=this;if((0,c.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!j.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function O(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((({type:e})=>e===r));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?P.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function P(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function N(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,R]}}}(rO);var CP={},OP={},PP={};Object.defineProperty(PP,"__esModule",{value:!0});const NP={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};PP.default=NP;var RP={};Object.defineProperty(RP,"__esModule",{value:!0}),RP.callRef=RP.getValidate=void 0;const TP=lP(),IP=TO(),MP=pO(),FP=bO(),zP=uP,DP=hO,LP={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=n,{root:u}=a;if(("#"===r||"#/"===r)&&o===u.baseId)return function(){if(a===u)return VP(e,i,a,a.$async);const r=t.scopeValue("root",{ref:u});return VP(e,MP._`${r}.validate`,u,u.$async)}();const c=zP.resolveRef.call(l,u,o,r);if(void 0===c)throw new TP.default(n.opts.uriResolver,o,r);return c instanceof zP.SchemaEnv?function(t){const r=BP(e,t);VP(e,r,t,t.$async)}(c):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,MP.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:MP.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(c)}};function BP(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):MP._`${r.scopeValue("wrapper",{ref:t})}.validate`}function VP(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,u=l.passContext?FP.default.this:MP.nil;function c(e){const t=MP._`${e}.errors`;o.assign(FP.default.vErrors,MP._`${FP.default.vErrors} === null ? ${t} : ${FP.default.vErrors}.concat(${t})`),o.assign(FP.default.errors,MP._`${FP.default.vErrors}.length`)}function d(e){var t;if(!a.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(n&&!n.dynamicProps)void 0!==n.props&&(a.props=DP.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",MP._`${e}.evaluated.props`);a.props=DP.mergeEvaluated.props(o,t,a.props,MP.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=DP.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",MP._`${e}.evaluated.items`);a.items=DP.mergeEvaluated.items(o,t,a.items,MP.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(MP._`await ${(0,IP.callValidateCode)(e,t,u)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(MP._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),c(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,IP.callValidateCode)(e,t,u),(()=>d(t)),(()=>c(t)))}RP.getValidate=BP,RP.callRef=VP,RP.default=LP,Object.defineProperty(OP,"__esModule",{value:!0});const UP=RP,WP=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",PP.default,UP.default];OP.default=WP;var qP={},KP={};Object.defineProperty(KP,"__esModule",{value:!0});const HP=pO(),GP=HP.operators,QP={maximum:{okStr:"<=",ok:GP.LTE,fail:GP.GT},minimum:{okStr:">=",ok:GP.GTE,fail:GP.LT},exclusiveMaximum:{okStr:"<",ok:GP.LT,fail:GP.GTE},exclusiveMinimum:{okStr:">",ok:GP.GT,fail:GP.LTE}},JP={message:({keyword:e,schemaCode:t})=>HP.str`must be ${QP[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>HP._`{comparison: ${QP[e].okStr}, limit: ${t}}`},YP={keyword:Object.keys(QP),type:"number",schemaType:"number",$data:!0,error:JP,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(HP._`${r} ${QP[t].fail} ${n} || isNaN(${r})`)}};KP.default=YP;var XP={};Object.defineProperty(XP,"__esModule",{value:!0});const ZP=pO(),eN={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>ZP.str`must be multiple of ${e}`,params:({schemaCode:e})=>ZP._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?ZP._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:ZP._`${i} !== parseInt(${i})`;e.fail$data(ZP._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};XP.default=eN;var tN={},rN={};function nN(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}Object.defineProperty(rN,"__esModule",{value:!0}),rN.default=nN,nN.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(tN,"__esModule",{value:!0});const oN=pO(),aN=hO,iN=rN,sN={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return oN.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>oN._`{limit: ${e}}`},lN={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:sN,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?oN.operators.GT:oN.operators.LT,i=!1===o.opts.unicode?oN._`${r}.length`:oN._`${(0,aN.useFunc)(e.gen,iN.default)}(${r})`;e.fail$data(oN._`${i} ${a} ${n}`)}};tN.default=lN;var uN={};Object.defineProperty(uN,"__esModule",{value:!0});const cN=TO(),dN=pO(),fN={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>dN.str`must match pattern "${e}"`,params:({schemaCode:e})=>dN._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?dN._`(new RegExp(${o}, ${i}))`:(0,cN.usePattern)(e,n);e.fail$data(dN._`!${s}.test(${t})`)}};uN.default=fN;var pN={};Object.defineProperty(pN,"__esModule",{value:!0});const hN=pO(),mN={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return hN.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>hN._`{limit: ${e}}`},vN={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:mN,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?hN.operators.GT:hN.operators.LT;e.fail$data(hN._`Object.keys(${r}).length ${o} ${n}`)}};pN.default=vN;var gN={};Object.defineProperty(gN,"__esModule",{value:!0});const yN=TO(),bN=pO(),wN=hO,SN={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>bN.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>bN._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&0===r.length)return;const l=r.length>=s.loopRequired;if(i.allErrors?function(){if(l||a)e.block$data(bN.nil,u);else for(const t of r)(0,yN.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(l||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,(0,yN.propertyInData)(t,o,r,s.ownProperties)),t.if((0,bN.not)(a),(()=>{e.error(),t.break()}))}),bN.nil)}(i,r))),e.ok(r)}else t.if((0,yN.checkMissingProp)(e,r,i)),(0,yN.reportMissingProp)(e,i),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${i.schemaEnv.baseId+i.errSchemaPath}" (strictRequired)`;(0,wN.checkStrictMode)(i,t,i.opts.strictRequired)}}function u(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,yN.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};gN.default=SN;var xN={};Object.defineProperty(xN,"__esModule",{value:!0});const _N=pO(),$N={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return _N.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>_N._`{limit: ${e}}`},kN={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:$N,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?_N.operators.GT:_N.operators.LT;e.fail$data(_N._`${r}.length ${o} ${n}`)}};xN.default=kN;var EN={},jN={};Object.defineProperty(jN,"__esModule",{value:!0});const CN=zO;CN.code='require("ajv/dist/runtime/equal").default',jN.default=CN,Object.defineProperty(EN,"__esModule",{value:!0});const ON=SO,PN=pO(),NN=hO,RN=jN,TN={message:({params:{i:e,j:t}})=>PN.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>PN._`{i: ${e}, j: ${t}}`},AN={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:TN,code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!n&&!o)return;const l=t.let("valid"),u=a.items?(0,ON.getSchemaTypes)(a.items):[];function c(n,o){const a=t.name("item"),i=(0,ON.checkDataTypes)(u,a,s.opts.strictNumbers,ON.DataType.Wrong),c=t.const("indices",PN._`{}`);t.for(PN._`;${n}--;`,(()=>{t.let(a,PN._`${r}[${n}]`),t.if(i,PN._`continue`),u.length>1&&t.if(PN._`typeof ${a} == "string"`,PN._`${a} += "_"`),t.if(PN._`typeof ${c}[${a}] == "number"`,(()=>{t.assign(o,PN._`${c}[${a}]`),e.error(),t.assign(l,!1).break()})).code(PN._`${c}[${a}] = ${n}`)}))}function d(n,o){const a=(0,NN.useFunc)(t,RN.default),i=t.name("outer");t.label(i).for(PN._`;${n}--;`,(()=>t.for(PN._`${o} = ${n}; ${o}--;`,(()=>t.if(PN._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",PN._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(PN._`${n} > 1`,(()=>(u.length>0&&!u.some((e=>"object"===e||"array"===e))?c:d)(n,o)))}),PN._`${i} === false`),e.ok(l)}};EN.default=AN;var IN={};Object.defineProperty(IN,"__esModule",{value:!0});const MN=pO(),FN=hO,zN=jN,DN={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>MN._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(MN._`!${(0,FN.useFunc)(t,zN.default)}(${r}, ${o})`):e.fail(MN._`${a} !== ${r}`)}};IN.default=DN;var LN={};Object.defineProperty(LN,"__esModule",{value:!0});const BN=pO(),VN=hO,UN=jN,WN={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>BN._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&0===o.length)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const u=()=>null!=l?l:l=(0,VN.useFunc)(t,UN.default);let c;if(s||n)c=t.let("valid"),e.block$data(c,(function(){t.assign(c,!1),t.forOf("v",a,(e=>t.if(BN._`${u()}(${r}, ${e})`,(()=>t.assign(c,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);c=(0,BN.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?BN._`${u()}(${r}, ${e}[${t}])`:BN._`${r} === ${n}`}(e,n))))}e.pass(c)}};LN.default=WN,Object.defineProperty(qP,"__esModule",{value:!0});const qN=XP,KN=tN,HN=uN,GN=pN,QN=gN,JN=xN,YN=EN,XN=IN,ZN=LN,eR=[KP.default,qN.default,KN.default,HN.default,GN.default,QN.default,JN.default,YN.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},XN.default,ZN.default];qP.default=eR;var tR={},rR={};Object.defineProperty(rR,"__esModule",{value:!0}),rR.validateAdditionalItems=void 0;const nR=pO(),oR=hO,aR={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>nR.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>nR._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?iR(e,n):(0,oR.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function iR(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",nR._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(nR._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,oR.alwaysValidSchema)(i,n)){const n=r.var("valid",nR._`${s} <= ${t.length}`);r.if((0,nR.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:oR.Type.Num},n),i.allErrors||r.if((0,nR.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}rR.validateAdditionalItems=iR,rR.default=aR;var sR={},lR={};Object.defineProperty(lR,"__esModule",{value:!0}),lR.validateTuple=void 0;const uR=pO(),cR=hO,dR=TO(),fR={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return pR(e,"additionalItems",t);r.items=!0,(0,cR.alwaysValidSchema)(r,t)||e.ok((0,dR.validateArray)(e))}};function pR(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;!function(e){const{opts:n,errSchemaPath:o}=s,a=r.length,l=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!l){const e=`"${i}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,cR.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=cR.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),u=n.const("len",uR._`${a}.length`);r.forEach(((t,r)=>{(0,cR.alwaysValidSchema)(s,t)||(n.if(uR._`${u} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}lR.validateTuple=pR,lR.default=fR,Object.defineProperty(sR,"__esModule",{value:!0});const hR=lR,mR={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,hR.validateTuple)(e,"items")};sR.default=mR;var vR={};Object.defineProperty(vR,"__esModule",{value:!0});const gR=pO(),yR=hO,bR=TO(),wR=rR,SR={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>gR.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>gR._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,yR.alwaysValidSchema)(n,t)||(o?(0,wR.validateAdditionalItems)(e,o):e.ok((0,bR.validateArray)(e)))}};vR.default=SR;var xR={};Object.defineProperty(xR,"__esModule",{value:!0});const _R=pO(),$R=hO,kR={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?_R.str`must contain at least ${e} valid item(s)`:_R.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?_R._`{minContains: ${e}}`:_R._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:u}=n;a.opts.next?(i=void 0===l?1:l,s=u):i=1;const c=t.const("len",_R._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,$R.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,$R.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,$R.alwaysValidSchema)(a,r)){let t=_R._`${c} >= ${i}`;return void 0!==s&&(t=_R._`${t} && ${c} <= ${s}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);p(e,(()=>t.if(e,(()=>function(e){t.code(_R._`${e}++`),void 0===s?t.if(_R._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(_R._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(_R._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,c,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:$R.Type.Num,compositeRule:!0},r),n()}))}void 0===s&&1===i?p(d,(()=>t.if(d,(()=>t.break())))):0===i?(t.let(d,!0),void 0!==s&&t.if(_R._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};xR.default=kR;var ER={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=pO(),r=hO,n=TO();e.error={message:({params:{property:e,depsCount:r,deps:n}})=>{const o=1===r?"property":"properties";return t.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
47
+ || ${s} === "boolean" || ${a} === null`).assign(u,o._`[${a}]`)}}n.else(),f(e),n.endIf(),n.if(o._`${u} !== undefined`,(()=>{n.assign(a,u),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,u)}))}(e,t,u):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function u(e,t,r,n=i.Correct){const a=n===i.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${a} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=l(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=l();break;default:return o._`typeof ${t} ${a} ${e}`}return n===i.Correct?s:(0,o.not)(s);function l(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function c(e,t,r,n){if(1===e.length)return u(e[0],t,r,n);let i;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;i=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else i=o.nil;s.number&&delete s.integer;for(const e in s)i=(0,o.and)(i,u(e,t,r,n));return i}e.checkDataType=u,e.checkDataTypes=c;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,n.reportError)(t,d)}e.reportTypeError=f}(kO);var NO,RO={};var TO,AO,IO={},MO={};function FO(){if(TO)return MO;TO=1,Object.defineProperty(MO,"__esModule",{value:!0}),MO.validateUnion=MO.validateArray=MO.usePattern=MO.callValidateCode=MO.schemaProperties=MO.allSchemaProperties=MO.noPropertyInData=MO.propertyInData=MO.isOwnProperty=MO.hasPropFunc=MO.reportMissingProp=MO.checkMissingProp=MO.checkReportMissingProp=void 0;const e=gO(),t=yO,r=_O(),n=yO;function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function a(t,r,n){return e._`${o(t)}.call(${r}, ${n})`}function i(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} === undefined`;return o?(0,e.or)(i,(0,e.not)(a(t,r,n))):i}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}MO.checkReportMissingProp=function(t,r){const{gen:n,data:o,it:a}=t;n.if(i(n,o,r,a.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()}))},MO.checkMissingProp=function({gen:t,data:r,it:{opts:n}},o,a){return(0,e.or)(...o.map((o=>(0,e.and)(i(t,r,o,n.ownProperties),e._`${a} = ${o}`))))},MO.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},MO.hasPropFunc=o,MO.isOwnProperty=a,MO.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},MO.noPropertyInData=i,MO.allSchemaProperties=s,MO.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},MO.callValidateCode=function({schemaCode:t,data:n,it:{gen:o,topSchemaRef:a,schemaPath:i,errorPath:s},it:l},u,c,d){const f=d?e._`${t}, ${n}, ${a}${i}`:n,p=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,s)],[r.default.parentData,l.parentData],[r.default.parentDataProperty,l.parentDataProperty],[r.default.rootData,r.default.rootData]];l.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const h=e._`${f}, ${o.object(...p)}`;return c!==e.nil?e._`${u}.call(${c}, ${h})`:e._`${u}(${h})`};const l=e._`new RegExp`;return MO.usePattern=function({gen:t,it:{opts:r}},o){const a=r.unicodeRegExp?"u":"",{regExp:i}=r.code,s=i(o,a);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===i.code?l:(0,n.useFunc)(t,i)}(${o}, ${a})`})},MO.validateArray=function(r){const{gen:n,data:o,keyword:a,it:i}=r,s=n.name("valid");if(i.allErrors){const e=n.let("valid",!0);return l((()=>n.assign(e,!1))),e}return n.var(s,!0),l((()=>n.break())),s;function l(i){const l=n.const("len",e._`${o}.length`);n.forRange("i",0,l,(o=>{r.subschema({keyword:a,dataProp:o,dataPropType:t.Type.Num},s),n.if((0,e.not)(s),i)}))}},MO.validateUnion=function(r){const{gen:n,schema:o,keyword:a,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some((e=>(0,t.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const s=n.let("valid",!1),l=n.name("_valid");n.block((()=>o.forEach(((t,o)=>{const i=r.subschema({keyword:a,schemaProp:o,compositeRule:!0},l);n.assign(s,e._`${s} || ${l}`);r.mergeValidEvaluated(i,l)||n.if((0,e.not)(s))})))),r.result(s,(()=>r.reset()),(()=>r.error(!0)))},MO}function zO(){if(AO)return IO;AO=1,Object.defineProperty(IO,"__esModule",{value:!0}),IO.validateKeywordUsage=IO.validSchemaType=IO.funcKeywordCode=IO.macroKeywordCode=void 0;const e=gO(),t=_O(),r=FO(),n=$O();function o(t){const{gen:r,data:n,it:o}=t;r.if(o.parentData,(()=>r.assign(n,e._`${o.parentData}[${o.parentDataProperty}]`)))}function a(t,r,n){if(void 0===n)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return IO.macroKeywordCode=function(t,r){const{gen:n,keyword:o,schema:i,parentSchema:s,it:l}=t,u=r.macro.call(l.self,i,s,l),c=a(n,o,u);!1!==l.opts.validateSchema&&l.self.validateSchema(u,!0);const d=n.name("valid");t.subschema({schema:u,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:c,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},IO.funcKeywordCode=function(i,s){var l;const{gen:u,keyword:c,schema:d,parentSchema:f,$data:p,it:h}=i;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,s);const m=!p&&s.compile?s.compile.call(h.self,d,f,h):s.validate,v=a(u,c,m),g=u.let("valid");function y(n=(s.async?e._`await `:e.nil)){const o=h.opts.passContext?t.default.this:t.default.self,a=!("compile"in s&&!p||!1===s.schema);u.assign(g,e._`${n}${(0,r.callValidateCode)(i,v,o,a)}`,s.modifying)}function b(t){var r;u.if((0,e.not)(null!==(r=s.valid)&&void 0!==r?r:g),t)}i.block$data(g,(function(){if(!1===s.errors)y(),s.modifying&&o(i),b((()=>i.error()));else{const r=s.async?function(){const t=u.let("ruleErrs",null);return u.try((()=>y(e._`await `)),(r=>u.assign(g,!1).if(e._`${r} instanceof ${h.ValidationError}`,(()=>u.assign(t,e._`${r}.errors`)),(()=>u.throw(r))))),t}():function(){const t=e._`${v}.errors`;return u.assign(t,null),y(e.nil),t}();s.modifying&&o(i),b((()=>function(r,o){const{gen:a}=r;a.if(e._`Array.isArray(${o})`,(()=>{a.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,n.extendErrors)(r)}),(()=>r.error()))}(i,r)))}})),i.ok(null!==(l=s.valid)&&void 0!==l?l:g)},IO.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},IO.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(null==i?void 0:i.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},IO}var DO,LO={};var BO={},VO=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var i=a[o];if(!e(t[i],r[i]))return!1}return!0}return t!=t&&r!=r},UO={},WO={get exports(){return UO},set exports(e){UO=e}},qO=WO.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),KO(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function KO(e,t,r,n,o,a,i,s,l,u){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var c in t(n,o,a,i,s,l,u),n){var d=n[c];if(Array.isArray(d)){if(c in qO.arrayKeywords)for(var f=0;f<d.length;f++)KO(e,t,r,d[f],o+"/"+c+"/"+f,a,o,c,n,f)}else if(c in qO.propsKeywords){if(d&&"object"==typeof d)for(var p in d)KO(e,t,r,d[p],o+"/"+c+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,c,n,p)}else(c in qO.keywords||e.allKeys&&!(c in qO.skipKeywords))&&KO(e,t,r,d,o+"/"+c,a,o,c,n)}r(n,o,a,i,s,l,u)}}qO.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},qO.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},qO.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},qO.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},Object.defineProperty(BO,"__esModule",{value:!0}),BO.getSchemaRefs=BO.resolveUrl=BO.normalizeId=BO._getFullPath=BO.getFullPath=BO.inlineRef=void 0;const HO=yO,GO=VO,QO=UO,JO=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);BO.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!XO(e):!!t&&ZO(e)<=t)};const YO=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function XO(e){for(const t in e){if(YO.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(XO))return!0;if("object"==typeof r&&XO(r))return!0}return!1}function ZO(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!JO.has(r)&&("object"==typeof e[r]&&(0,HO.eachItem)(e[r],(e=>t+=ZO(e))),t===1/0))return 1/0}return t}function eP(e,t="",r){!1!==r&&(t=nP(t));const n=e.parse(t);return tP(e,n)}function tP(e,t){return e.serialize(t).split("#")[0]+"#"}BO.getFullPath=eP,BO._getFullPath=tP;const rP=/#\/?$/;function nP(e){return e?e.replace(rP,""):""}BO.normalizeId=nP,BO.resolveUrl=function(e,t,r){return r=nP(r),e.resolve(t,r)};const oP=/^[a-z_][-a-z0-9._]*$/i;var aP;function iP(){if(aP)return sO;aP=1,Object.defineProperty(sO,"__esModule",{value:!0}),sO.getData=sO.KeywordCxt=sO.validateFunctionCode=void 0;const e=function(){if(SO)return lO;SO=1,Object.defineProperty(lO,"__esModule",{value:!0}),lO.boolOrEmptySchema=lO.topBoolOrEmptySchema=void 0;const e=$O(),t=gO(),r=_O(),n={message:"boolean schema is false"};function o(t,r){const{gen:o,data:a}=t,i={gen:o,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(i,n,void 0,r)}return lO.topBoolOrEmptySchema=function(e){const{gen:n,schema:a,validateName:i}=e;!1===a?o(e,!1):"object"==typeof a&&!0===a.$async?n.return(r.default.data):(n.assign(t._`${i}.errors`,null),n.return(!0))},lO.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},lO}(),t=kO,r=PO(),n=kO,o=function(){if(NO)return RO;NO=1,Object.defineProperty(RO,"__esModule",{value:!0}),RO.assignDefaults=void 0;const e=gO(),t=yO;function r(r,n,o){const{gen:a,compositeRule:i,data:s,opts:l}=r;if(void 0===o)return;const u=e._`${s}${(0,e.getProperty)(n)}`;if(i)return void(0,t.checkStrictMode)(r,`default is ignored for: ${u}`);let c=e._`${u} === undefined`;"empty"===l.useDefaults&&(c=e._`${c} || ${u} === null || ${u} === ""`),a.if(c,e._`${u} = ${(0,e.stringify)(o)}`)}return RO.assignDefaults=function(e,t){const{properties:n,items:o}=e.schema;if("object"===t&&n)for(const t in n)r(e,t,n[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,n)=>r(e,n,t.default)))},RO}(),a=zO(),i=function(){if(DO)return LO;DO=1,Object.defineProperty(LO,"__esModule",{value:!0}),LO.extendSubschemaMode=LO.extendSubschemaData=LO.getSubschema=void 0;const e=gO(),t=yO;return LO.getSubschema=function(r,{keyword:n,schemaProp:o,schema:a,schemaPath:i,errSchemaPath:s,topSchemaRef:l}){if(void 0!==n&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const a=r.schema[n];return void 0===o?{schema:a,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:a[o],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(o)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,t.escapeFragment)(o)}`}}if(void 0!==a){if(void 0===i||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:i,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},LO.extendSubschemaData=function(r,n,{dataProp:o,dataPropType:a,data:i,dataTypes:s,propertyName:l}){if(void 0!==i&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=n;if(void 0!==o){const{errorPath:i,dataPathArr:s,opts:l}=n;c(u.let("data",e._`${n.data}${(0,e.getProperty)(o)}`,!0)),r.errorPath=e.str`${i}${(0,t.getErrorPath)(o,a,l.jsPropertySyntax)}`,r.parentDataProperty=e._`${o}`,r.dataPathArr=[...s,r.parentDataProperty]}function c(e){r.data=e,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,e]}void 0!==i&&(c(i instanceof e.Name?i:u.let("data",i,!0)),void 0!==l&&(r.propertyName=l)),s&&(r.dataTypes=s)},LO.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r},LO}(),s=gO(),l=_O(),u=BO,c=yO,d=$O();function f({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,n.$async,(()=>{e.code(s._`"use strict"; ${p(r,o)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,s._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,s._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,s._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,s._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,s._`""`),e.var(l.default.parentData,s._`undefined`),e.var(l.default.parentDataProperty,s._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`{}`)}))}(e,o),e.code(a)})):e.func(t,s._`${l.default.data}, ${function(e){return s._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?s._`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}(o)}`,n.$async,(()=>e.code(p(r,o)).code(a)))}function p(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?s._`/*# sourceURL=${r} */`:s.nil}function h(t,r){v(t)&&(g(t),m(t))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&b(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",l.default.errors);y(e,a),n.var(t,s._`${a} === ${l.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function m({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function g(e){(0,c.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function y(e,r){if(e.opts.jtd)return w(e,[],!1,r);const n=(0,t.getSchemaTypes)(e.schema);w(e,n,!(0,t.coerceAndCheckDataType)(e,n),r)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(s._`${l.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=s.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function w(e,t,o,a){const{gen:i,schema:u,data:d,allErrors:f,opts:p,self:h}=e,{RULES:m}=h;function v(c){(0,r.shouldUseGroup)(u,c)&&(c.type?(i.if((0,n.checkDataType)(c.type,d,p.strictNumbers)),S(e,c),1===t.length&&t[0]===c.type&&o&&(i.else(),(0,n.reportTypeError)(e)),i.endIf()):S(e,c),f||i.if(s._`${l.default.errors} === ${a||0}`))}!u.$ref||!p.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(u,m)?(p.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{_(e.dataTypes,t)||$(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)_(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&$(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const o in n){const a=n[o];if("object"==typeof a&&(0,r.shouldUseRule)(e.schema,a)){const{type:r}=a.definition;r.length&&!r.some((e=>x(t,e)))&&$(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of m.rules)v(e);v(m.post)}))):i.block((()=>E(e,"$ref",m.all.$ref.definition)))}function S(e,t){const{gen:n,schema:a,opts:{useDefaults:i}}=e;i&&(0,o.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,r.shouldUseRule)(a,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function _(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function $(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,c.checkStrictMode)(e,t,e.opts.strictTypes)}sO.validateFunctionCode=function(t){v(t)&&(g(t),m(t))?function(e){const{schema:t,opts:r,gen:n}=e;f(e,(()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,c.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(l.default.vErrors,null),n.let(l.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",s._`${r}.evaluated`),t.if(s._`${e.evaluated}.dynamicProps`,(()=>t.assign(s._`${e.evaluated}.props`,s._`undefined`))),t.if(s._`${e.evaluated}.dynamicItems`,(()=>t.assign(s._`${e.evaluated}.items`,s._`undefined`)))}(e),y(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${o}(${l.default.vErrors})`))):(t.assign(s._`${n}.errors`,l.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof s.Name&&e.assign(s._`${t}.props`,r);n instanceof s.Name&&e.assign(s._`${t}.items`,n)}(e),t.return(s._`${l.default.errors} === 0`))}(e)}))}(t):f(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class k{constructor(e,t,r){if((0,a.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",O(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,r){this.failResult((0,s.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=s.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,s.or)(s._`${n} === undefined`,t)),e!==s.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:o,it:a}=this;return(0,s.or)(function(){if(r.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return s._`${(0,n.checkDataTypes)(e,t,a.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}(),function(){if(o.validateSchema){const r=e.scopeValue("validate$data",{ref:o.validateSchema});return s._`!${r}(${t})`}return s.nil}())}subschema(e,t){const r=(0,i.getSubschema)(this.it,e);(0,i.extendSubschemaData)(r,this.it,e),(0,i.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return h(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=c.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=c.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function E(e,t,r,n){const o=new k(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,a.funcKeywordCode)(o,r):"macro"in r?(0,a.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,a.funcKeywordCode)(o,r)}sO.KeywordCxt=k;const j=/^\/(?:[^~]|~0|~1)*$/,C=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function O(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(""===e)return l.default.rootData;if("/"===e[0]){if(!j.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=l.default.rootData}else{const i=C.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(o=i[2],"#"===o){if(s>=t)throw new Error(d("property/index",s));return n[t-s]}if(s>t)throw new Error(d("data",s));if(a=r[t-s],!o)return a}let i=a;const u=o.split("/");for(const e of u)e&&(a=s._`${a}${(0,s.getProperty)((0,c.unescapeJsonPointer)(e))}`,i=s._`${i} && ${a}`);return i;function d(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return sO.getData=O,sO}BO.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=nP(e[r]||t),a={"":o},i=eP(n,o,!1),s={},l=new Set;return QO(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const d=i+t;let f=a[o];function p(t){const r=this.opts.uriResolver.resolve;if(t=nP(f?r(f,t):t),l.has(t))throw c(t);l.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?u(e,n.schema,t):t!==nP(d)&&("#"===t[0]?(u(e,s[t],t),s[t]=e):this.refs[t]=d),t}function h(e){if("string"==typeof e){if(!oP.test(e))throw new Error(`invalid anchor "${e}"`);p.call(this,`#${e}`)}}"string"==typeof e[r]&&(f=p.call(this,e[r])),h.call(this,e.$anchor),h.call(this,e.$dynamicAnchor),a[t]=f})),s;function u(e,t,r){if(void 0!==t&&!GO(e,t))throw c(r)}function c(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var sP,lP={};function uP(){if(sP)return lP;sP=1,Object.defineProperty(lP,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return lP.default=e,lP}var cP,dP={};function fP(){if(cP)return dP;cP=1,Object.defineProperty(dP,"__esModule",{value:!0});const e=BO;class t extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return dP.default=t,dP}var pP={};Object.defineProperty(pP,"__esModule",{value:!0}),pP.resolveSchema=pP.getCompilingSchema=pP.resolveRef=pP.compileSchema=pP.SchemaEnv=void 0;const hP=gO(),mP=uP(),vP=_O(),gP=BO,yP=yO,bP=iP();let wP=class{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,gP.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}};function SP(e){const t=_P.call(this,e);if(t)return t;const r=(0,gP.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new hP.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:mP.default,code:hP._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const u={gen:i,allErrors:this.opts.allErrors,data:vP.default.data,parentData:vP.default.parentData,parentDataProperty:vP.default.parentDataProperty,dataNames:[vP.default.data],dataPathArr:[hP.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,hP.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:hP.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:hP._`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,bP.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);const t=i.toString();c=`${i.scopeRefs(vP.default.scope)}return ${t}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const r=new Function(`${vP.default.self}`,`${vP.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:l,validateCode:t,scopeValues:i._values}),this.opts.unevaluated){const{props:e,items:t}=u;r.evaluated={props:e instanceof hP.Name?void 0:e,items:t instanceof hP.Name?void 0:t,dynamicProps:e instanceof hP.Name,dynamicItems:t instanceof hP.Name},r.source&&(r.source.evaluated=(0,hP.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),t}finally{this._compilations.delete(e)}}function xP(e){return(0,gP.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:SP.call(this,e)}function _P(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function $P(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||kP.call(this,e,t)}function kP(e,t){const r=this.opts.uriResolver.parse(t),n=(0,gP._getFullPath)(this.opts.uriResolver,r);let o=(0,gP.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return jP.call(this,r,e);const a=(0,gP.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=kP.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return jP.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||SP.call(this,i),a===(0,gP.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,gP.resolveUrl)(this.opts.uriResolver,o,n)),new wP({schema:t,schemaId:r,root:e,baseId:o})}return jP.call(this,r,i)}}pP.SchemaEnv=wP,pP.compileSchema=SP,pP.resolveRef=function(e,t,r){var n;r=(0,gP.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=$P.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:i}=this.opts;o&&(a=new wP({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=xP.call(this,a):void 0},pP.getCompilingSchema=_P,pP.resolveSchema=kP;const EP=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function jP(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,yP.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!EP.has(n)&&o&&(t=(0,gP.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,yP.schemaHasRulesButRef)(r,this.RULES)){const e=(0,gP.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=kP.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new wP({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var CP={$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},OP={},PP={};(function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,o=1;o<n;++o)t[o]=t[o].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function a(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function i(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function s(e){var n="[A-Za-z]",o="[0-9]",a=t(o,"[A-Fa-f]"),i=r(r("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+r("%[89A-Fa-f]"+a+"%"+a+a)+"|"+r("%"+a+a)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",l=t("[\\:\\/\\?\\#\\[\\]\\@]",s),u=e?"[\\uE000-\\uF8FF]":"[]",c=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,o,"[\\+\\-\\.]")+"*"),r(r(i+"|"+t(c,s,"[\\:]"))+"*");var d=r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o),f=r(d+"\\."+d+"\\."+d+"\\."+d),p=r(a+"{1,4}"),h=r(r(p+"\\:"+p)+"|"+f),m=r(r(p+"\\:")+"{6}"+h),v=r("\\:\\:"+r(p+"\\:")+"{5}"+h),g=r(r(p)+"?\\:\\:"+r(p+"\\:")+"{4}"+h),y=r(r(r(p+"\\:")+"{0,1}"+p)+"?\\:\\:"+r(p+"\\:")+"{3}"+h),b=r(r(r(p+"\\:")+"{0,2}"+p)+"?\\:\\:"+r(p+"\\:")+"{2}"+h),w=r(r(r(p+"\\:")+"{0,3}"+p)+"?\\:\\:"+p+"\\:"+h),S=r(r(r(p+"\\:")+"{0,4}"+p)+"?\\:\\:"+h),x=r(r(r(p+"\\:")+"{0,5}"+p)+"?\\:\\:"+p),_=r(r(r(p+"\\:")+"{0,6}"+p)+"?\\:\\:"),$=r([m,v,g,y,b,w,S,x,_].join("|")),k=r(r(c+"|"+i)+"+");r("[vV]"+a+"+\\."+t(c,s,"[\\:]")+"+"),r(r(i+"|"+t(c,s))+"*");var E=r(i+"|"+t(c,s,"[\\:\\@]"));return r(r(i+"|"+t(c,s,"[\\@]"))+"+"),r(r(E+"|"+t("[\\/\\?]",u))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",c,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",c,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",c,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",c,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",c,s,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",c,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",c,s),"g"),UNRESERVED:new RegExp(c,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",c,l),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+f+")$"),IPV6ADDRESS:new RegExp("^\\[?("+$+")"+r(r("\\%25|\\%(?!"+a+"{2})")+"("+k+")")+"?\\]?$")}}var l=s(!1),u=s(!0),c=function(){function e(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},f=2147483647,p=36,h=1,m=26,v=38,g=700,y=72,b=128,w="-",S=/^xn--/,x=/[^\0-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,$={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=p-h,E=Math.floor,j=String.fromCharCode;function C(e){throw new RangeError($[e])}function O(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function P(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+O((e=e.replace(_,".")).split("."),t).join(".")}function N(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),r--)}else t.push(o)}return t}var R=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},T=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},A=function(e,t,r){var n=0;for(e=r?E(e/g):e>>1,e+=E(e/t);e>k*m>>1;n+=p)e=E(e/k);return E(n+(k+1)*e/(e+v))},I=function(e){var t=[],r=e.length,n=0,o=b,a=y,i=e.lastIndexOf(w);i<0&&(i=0);for(var s=0;s<i;++s)e.charCodeAt(s)>=128&&C("not-basic"),t.push(e.charCodeAt(s));for(var l=i>0?i+1:0;l<r;){for(var u=n,c=1,d=p;;d+=p){l>=r&&C("invalid-input");var v=R(e.charCodeAt(l++));(v>=p||v>E((f-n)/c))&&C("overflow"),n+=v*c;var g=d<=a?h:d>=a+m?m:d-a;if(v<g)break;var S=p-g;c>E(f/S)&&C("overflow"),c*=S}var x=t.length+1;a=A(n-u,x,0==u),E(n/x)>f-o&&C("overflow"),o+=E(n/x),n%=x,t.splice(n++,0,o)}return String.fromCodePoint.apply(String,t)},M=function(e){var t=[],r=(e=N(e)).length,n=b,o=0,a=y,i=!0,s=!1,l=void 0;try{for(var u,c=e[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var d=u.value;d<128&&t.push(j(d))}}catch(e){s=!0,l=e}finally{try{!i&&c.return&&c.return()}finally{if(s)throw l}}var v=t.length,g=v;for(v&&t.push(w);g<r;){var S=f,x=!0,_=!1,$=void 0;try{for(var k,O=e[Symbol.iterator]();!(x=(k=O.next()).done);x=!0){var P=k.value;P>=n&&P<S&&(S=P)}}catch(e){_=!0,$=e}finally{try{!x&&O.return&&O.return()}finally{if(_)throw $}}var R=g+1;S-n>E((f-o)/R)&&C("overflow"),o+=(S-n)*R,n=S;var I=!0,M=!1,F=void 0;try{for(var z,D=e[Symbol.iterator]();!(I=(z=D.next()).done);I=!0){var L=z.value;if(L<n&&++o>f&&C("overflow"),L==n){for(var B=o,V=p;;V+=p){var U=V<=a?h:V>=a+m?m:V-a;if(B<U)break;var W=B-U,q=p-U;t.push(j(T(U+W%q,0))),B=E(W/q)}t.push(j(T(B,0))),a=A(o,R,g==v),o=0,++g}}}catch(e){M=!0,F=e}finally{try{!I&&D.return&&D.return()}finally{if(M)throw F}}++o,++n}return t.join("")},F=function(e){return P(e,(function(e){return S.test(e)?I(e.slice(4).toLowerCase()):e}))},z=function(e){return P(e,(function(e){return x.test(e)?"xn--"+M(e):e}))},D={version:"2.1.0",ucs2:{decode:N,encode:function(e){return String.fromCodePoint.apply(String,d(e))}},decode:I,encode:M,toASCII:z,toUnicode:F},L={};function B(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function V(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&a)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var i=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&i)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function U(e,t){function r(e){var r=V(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,B).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,B).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,B).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,B).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,B).replace(t.PCT_ENCODED,o)),e}function W(e){return e.replace(/^0*(.*)/,"$1")||"0"}function q(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=c(r,2)[1];return n?n.split(".").map(W).join("."):e}function K(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=c(r,3),o=n[1],a=n[2];if(o){for(var i=o.toLowerCase().split("::").reverse(),s=c(i,2),l=s[0],u=s[1],d=u?u.split(":").map(W):[],f=l.split(":").map(W),p=t.IPV4ADDRESS.test(f[f.length-1]),h=p?7:8,m=f.length-h,v=Array(h),g=0;g<h;++g)v[g]=d[g]||f[m+g]||"";p&&(v[h-1]=q(v[h-1],t));var y=v.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(y&&y.length>1){var w=v.slice(0,y.index),S=v.slice(y.index+y.length);b=w.join(":")+"::"+S.join(":")}else b=v.join(":");return a&&(b+="%"+a),b}return e}var H=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,G=void 0==="".match(/(){0}/)[1];function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?u:l;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(H);if(o){G?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=K(q(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=L[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)U(r,n);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=D.toASCII(r.host.replace(n.PCT_ENCODED,V).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}U(r,l)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function J(e,t){var r=!1!==t.iri?u:l,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(K(q(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var Y=/^\.\.?\//,X=/^\/\.(\/|$)/,Z=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(Y))e=e.replace(Y,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(Z))e=e.replace(Z,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?u:l,n=[],o=L[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?D.toUnicode(e.host):D.toASCII(e.host.replace(r.PCT_ENCODED,V).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}U(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var a=J(e,t);if(void 0!==a&&("suffix"!==t.reference&&n.push("//"),n.push(a),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var i=e.path;t.absolutePath||o&&o.absolutePath||(i=te(i)),void 0===a&&(i=i.replace(/^\/\//,"/%2F")),n.push(i)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=Q(re(e,r),r),t=Q(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function oe(e,t,r){var n=i({scheme:"null"},r);return re(ne(Q(e,n),Q(t,n),n,!0),n)}function ae(e,t){return"string"==typeof e?e=re(Q(e,t),t):"object"===n(e)&&(e=Q(re(e,t),t)),e}function ie(e,t,r){return"string"==typeof e?e=re(Q(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(Q(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?u.ESCAPE:l.ESCAPE,B)}function le(e,t){return e&&e.toString().replace(t&&t.iri?u.PCT_ENCODED:l.PCT_ENCODED,V)}var ue={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},ce={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function de(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var fe={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=de(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(de(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=c(r,2),o=n[0],a=n[1];e.path=o&&"/"!==o?o:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},pe={scheme:"wss",domainHost:fe.domainHost,parse:fe.parse,serialize:fe.serialize},he={},me="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ve="[0-9A-Fa-f]",ge=r(r("%[EFef]"+ve+"%"+ve+ve+"%"+ve+ve)+"|"+r("%[89A-Fa-f]"+ve+"%"+ve+ve)+"|"+r("%"+ve+ve)),ye="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",be=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),we="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Se=new RegExp(me,"g"),xe=new RegExp(ge,"g"),_e=new RegExp(t("[^]",ye,"[\\.]",'[\\"]',be),"g"),$e=new RegExp(t("[^]",me,we),"g"),ke=$e;function Ee(e){var t=V(e);return t.match(Se)?t:e}var je={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var o=!1,a={},i=r.query.split("&"),s=0,l=i.length;s<l;++s){var u=i[s].split("=");switch(u[0]){case"to":for(var c=u[1].split(","),d=0,f=c.length;d<f;++d)n.push(c[d]);break;case"subject":r.subject=le(u[1],t);break;case"body":r.body=le(u[1],t);break;default:o=!0,a[le(u[0],t)]=le(u[1],t)}}o&&(r.headers=a)}r.query=void 0;for(var p=0,h=n.length;p<h;++p){var m=n[p].split("@");if(m[0]=le(m[0]),t.unicodeSupport)m[1]=le(m[1],t).toLowerCase();else try{m[1]=D.toASCII(le(m[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[p]=m.join("@")}return r},serialize:function(e,t){var r=e,n=a(e.to);if(n){for(var i=0,s=n.length;i<s;++i){var l=String(n[i]),u=l.lastIndexOf("@"),c=l.slice(0,u).replace(xe,Ee).replace(xe,o).replace(_e,B),d=l.slice(u+1);try{d=t.iri?D.toUnicode(d):D.toASCII(le(d,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[i]=c+"@"+d}r.path=n.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var h in f)f[h]!==he[h]&&p.push(h.replace(xe,Ee).replace(xe,o).replace($e,B)+"="+f[h].replace(xe,Ee).replace(xe,o).replace(ke,B));return p.length&&(r.query=p.join("&")),r}},Ce=/^([^\:]+)\:(.*)/,Oe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(Ce),n=e;if(r){var o=t.scheme||n.scheme||"urn",a=r[1].toLowerCase(),i=r[2],s=o+":"+(t.nid||a),l=L[s];n.nid=a,n.nss=i,n.path=void 0,l&&(n=l.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,o=r+":"+(t.nid||n),a=L[o];a&&(e=a.serialize(e,t));var i=e,s=e.nss;return i.path=(n||t.nid)+":"+s,i}},Pe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ne={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(Pe)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};L[ue.scheme]=ue,L[ce.scheme]=ce,L[fe.scheme]=fe,L[pe.scheme]=pe,L[je.scheme]=je,L[Oe.scheme]=Oe,L[Ne.scheme]=Ne,e.SCHEMES=L,e.pctEncChar=B,e.pctDecChars=V,e.parse=Q,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=oe,e.normalize=ae,e.equal=ie,e.escapeComponent=se,e.unescapeComponent=le,Object.defineProperty(e,"__esModule",{value:!0})})(PP),Object.defineProperty(OP,"__esModule",{value:!0});const NP=PP;NP.code='require("ajv/dist/runtime/uri").default',OP.default=NP,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=iP();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=gO();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 n=uP(),o=fP(),a=EO,i=pP,s=gO(),l=BO,u=kO,c=yO,d=CP,f=OP,p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],m=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.'};function y(e){var t,r,n,o,a,i,s,l,u,c,d,h,m,v,g,y,b,w,S,x,_,$,k,E,j;const C=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,P=!0===O||void 0===O?1:O||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,R=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:C)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:C)||void 0===l||l,strictTypes:null!==(c=null!==(u=e.strictTypes)&&void 0!==u?u:C)&&void 0!==c?c:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:C)&&void 0!==h?h:"log",strictRequired:null!==(v=null!==(m=e.strictRequired)&&void 0!==m?m:C)&&void 0!==v&&v,code:e.code?{...e.code,optimize:P,regExp:N}:{optimize:P,regExp:N},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(S=e.inlineRefs)||void 0===S||S,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===(_=e.addUsedSchema)||void 0===_||_,validateSchema:null===($=e.validateSchema)||void 0===$||$,validateFormats:null===(k=e.validateFormats)||void 0===k||k,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(j=e.int32range)||void 0===j||j,uriResolver:R}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...y(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:m,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,g,e,"DEPRECATED","warn"),this._metaOpts=k.call(this),e.formats&&_.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&$.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const r=await u.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new i.SchemaEnv({schema:{},schemaId:r});if(t=i.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(C.call(this,r,t),!t)return(0,c.eachItem)(r,(e=>O.call(this,e))),this;N.call(this,t);const n={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,c.eachItem)(r,0===n.type.length?e=>O.call(this,e,n):e=>n.type.forEach((t=>O.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=T(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(void 0!==u)return u;r=(0,l.normalizeId)(a||r);const c=l.getSchemaRefs.call(this,e,r);return u=new i.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:c}),this._cache.set(u.schema,u),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=u),n&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function S(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function _(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function $(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function k(){const e={...this.opts};for(const t of h)delete e[t];return e}e.default=b,b.ValidationError=n.default,b.MissingRefError=o.default;const E={log(){},warn(){},error(){}};const j=/^[a-z_$][a-z0-9_$:-]*$/i;function C(e,t){const{RULES:r}=this;if((0,c.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!j.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function O(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((({type:e})=>e===r));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?P.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function P(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function N(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,R]}}}(iO);var RP={},TP={},IP={};Object.defineProperty(IP,"__esModule",{value:!0});const MP={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};IP.default=MP;var FP={};Object.defineProperty(FP,"__esModule",{value:!0}),FP.callRef=FP.getValidate=void 0;const zP=fP(),DP=FO(),LP=gO(),BP=_O(),VP=pP,UP=yO,WP={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=n,{root:u}=a;if(("#"===r||"#/"===r)&&o===u.baseId)return function(){if(a===u)return KP(e,i,a,a.$async);const r=t.scopeValue("root",{ref:u});return KP(e,LP._`${r}.validate`,u,u.$async)}();const c=VP.resolveRef.call(l,u,o,r);if(void 0===c)throw new zP.default(n.opts.uriResolver,o,r);return c instanceof VP.SchemaEnv?function(t){const r=qP(e,t);KP(e,r,t,t.$async)}(c):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,LP.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:LP.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(c)}};function qP(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):LP._`${r.scopeValue("wrapper",{ref:t})}.validate`}function KP(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,u=l.passContext?BP.default.this:LP.nil;function c(e){const t=LP._`${e}.errors`;o.assign(BP.default.vErrors,LP._`${BP.default.vErrors} === null ? ${t} : ${BP.default.vErrors}.concat(${t})`),o.assign(BP.default.errors,LP._`${BP.default.vErrors}.length`)}function d(e){var t;if(!a.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(n&&!n.dynamicProps)void 0!==n.props&&(a.props=UP.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",LP._`${e}.evaluated.props`);a.props=UP.mergeEvaluated.props(o,t,a.props,LP.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=UP.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",LP._`${e}.evaluated.items`);a.items=UP.mergeEvaluated.items(o,t,a.items,LP.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(LP._`await ${(0,DP.callValidateCode)(e,t,u)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(LP._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),c(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,DP.callValidateCode)(e,t,u),(()=>d(t)),(()=>c(t)))}FP.getValidate=qP,FP.callRef=KP,FP.default=WP,Object.defineProperty(TP,"__esModule",{value:!0});const HP=FP,GP=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",IP.default,HP.default];TP.default=GP;var QP={},JP={};Object.defineProperty(JP,"__esModule",{value:!0});const YP=gO(),XP=YP.operators,ZP={maximum:{okStr:"<=",ok:XP.LTE,fail:XP.GT},minimum:{okStr:">=",ok:XP.GTE,fail:XP.LT},exclusiveMaximum:{okStr:"<",ok:XP.LT,fail:XP.GTE},exclusiveMinimum:{okStr:">",ok:XP.GT,fail:XP.LTE}},eN={message:({keyword:e,schemaCode:t})=>YP.str`must be ${ZP[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>YP._`{comparison: ${ZP[e].okStr}, limit: ${t}}`},tN={keyword:Object.keys(ZP),type:"number",schemaType:"number",$data:!0,error:eN,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(YP._`${r} ${ZP[t].fail} ${n} || isNaN(${r})`)}};JP.default=tN;var rN={};Object.defineProperty(rN,"__esModule",{value:!0});const nN=gO(),oN={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>nN.str`must be multiple of ${e}`,params:({schemaCode:e})=>nN._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?nN._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:nN._`${i} !== parseInt(${i})`;e.fail$data(nN._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};rN.default=oN;var aN={},iN={};function sN(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}Object.defineProperty(iN,"__esModule",{value:!0}),iN.default=sN,sN.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(aN,"__esModule",{value:!0});const lN=gO(),uN=yO,cN=iN,dN={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return lN.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>lN._`{limit: ${e}}`},fN={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:dN,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?lN.operators.GT:lN.operators.LT,i=!1===o.opts.unicode?lN._`${r}.length`:lN._`${(0,uN.useFunc)(e.gen,cN.default)}(${r})`;e.fail$data(lN._`${i} ${a} ${n}`)}};aN.default=fN;var pN={};Object.defineProperty(pN,"__esModule",{value:!0});const hN=FO(),mN=gO(),vN={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>mN.str`must match pattern "${e}"`,params:({schemaCode:e})=>mN._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?mN._`(new RegExp(${o}, ${i}))`:(0,hN.usePattern)(e,n);e.fail$data(mN._`!${s}.test(${t})`)}};pN.default=vN;var gN={};Object.defineProperty(gN,"__esModule",{value:!0});const yN=gO(),bN={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return yN.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>yN._`{limit: ${e}}`},wN={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:bN,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?yN.operators.GT:yN.operators.LT;e.fail$data(yN._`Object.keys(${r}).length ${o} ${n}`)}};gN.default=wN;var SN={};Object.defineProperty(SN,"__esModule",{value:!0});const xN=FO(),_N=gO(),$N=yO,kN={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>_N.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>_N._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&0===r.length)return;const l=r.length>=s.loopRequired;if(i.allErrors?function(){if(l||a)e.block$data(_N.nil,u);else for(const t of r)(0,xN.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(l||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,(0,xN.propertyInData)(t,o,r,s.ownProperties)),t.if((0,_N.not)(a),(()=>{e.error(),t.break()}))}),_N.nil)}(i,r))),e.ok(r)}else t.if((0,xN.checkMissingProp)(e,r,i)),(0,xN.reportMissingProp)(e,i),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${i.schemaEnv.baseId+i.errSchemaPath}" (strictRequired)`;(0,$N.checkStrictMode)(i,t,i.opts.strictRequired)}}function u(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,xN.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};SN.default=kN;var EN={};Object.defineProperty(EN,"__esModule",{value:!0});const jN=gO(),CN={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return jN.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>jN._`{limit: ${e}}`},ON={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:CN,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?jN.operators.GT:jN.operators.LT;e.fail$data(jN._`${r}.length ${o} ${n}`)}};EN.default=ON;var PN={},NN={};Object.defineProperty(NN,"__esModule",{value:!0});const RN=VO;RN.code='require("ajv/dist/runtime/equal").default',NN.default=RN,Object.defineProperty(PN,"__esModule",{value:!0});const TN=kO,AN=gO(),IN=yO,MN=NN,FN={message:({params:{i:e,j:t}})=>AN.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>AN._`{i: ${e}, j: ${t}}`},zN={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:FN,code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!n&&!o)return;const l=t.let("valid"),u=a.items?(0,TN.getSchemaTypes)(a.items):[];function c(n,o){const a=t.name("item"),i=(0,TN.checkDataTypes)(u,a,s.opts.strictNumbers,TN.DataType.Wrong),c=t.const("indices",AN._`{}`);t.for(AN._`;${n}--;`,(()=>{t.let(a,AN._`${r}[${n}]`),t.if(i,AN._`continue`),u.length>1&&t.if(AN._`typeof ${a} == "string"`,AN._`${a} += "_"`),t.if(AN._`typeof ${c}[${a}] == "number"`,(()=>{t.assign(o,AN._`${c}[${a}]`),e.error(),t.assign(l,!1).break()})).code(AN._`${c}[${a}] = ${n}`)}))}function d(n,o){const a=(0,IN.useFunc)(t,MN.default),i=t.name("outer");t.label(i).for(AN._`;${n}--;`,(()=>t.for(AN._`${o} = ${n}; ${o}--;`,(()=>t.if(AN._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",AN._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(AN._`${n} > 1`,(()=>(u.length>0&&!u.some((e=>"object"===e||"array"===e))?c:d)(n,o)))}),AN._`${i} === false`),e.ok(l)}};PN.default=zN;var DN={};Object.defineProperty(DN,"__esModule",{value:!0});const LN=gO(),BN=yO,VN=NN,UN={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>LN._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(LN._`!${(0,BN.useFunc)(t,VN.default)}(${r}, ${o})`):e.fail(LN._`${a} !== ${r}`)}};DN.default=UN;var WN={};Object.defineProperty(WN,"__esModule",{value:!0});const qN=gO(),KN=yO,HN=NN,GN={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>qN._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&0===o.length)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const u=()=>null!=l?l:l=(0,KN.useFunc)(t,HN.default);let c;if(s||n)c=t.let("valid"),e.block$data(c,(function(){t.assign(c,!1),t.forOf("v",a,(e=>t.if(qN._`${u()}(${r}, ${e})`,(()=>t.assign(c,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);c=(0,qN.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?qN._`${u()}(${r}, ${e}[${t}])`:qN._`${r} === ${n}`}(e,n))))}e.pass(c)}};WN.default=GN,Object.defineProperty(QP,"__esModule",{value:!0});const QN=rN,JN=aN,YN=pN,XN=gN,ZN=SN,eR=EN,tR=PN,rR=DN,nR=WN,oR=[JP.default,QN.default,JN.default,YN.default,XN.default,ZN.default,eR.default,tR.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},rR.default,nR.default];QP.default=oR;var aR={},iR={};Object.defineProperty(iR,"__esModule",{value:!0}),iR.validateAdditionalItems=void 0;const sR=gO(),lR=yO,uR={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>sR.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>sR._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?cR(e,n):(0,lR.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function cR(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",sR._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(sR._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,lR.alwaysValidSchema)(i,n)){const n=r.var("valid",sR._`${s} <= ${t.length}`);r.if((0,sR.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:lR.Type.Num},n),i.allErrors||r.if((0,sR.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}iR.validateAdditionalItems=cR,iR.default=uR;var dR={},fR={};Object.defineProperty(fR,"__esModule",{value:!0}),fR.validateTuple=void 0;const pR=gO(),hR=yO,mR=FO(),vR={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return gR(e,"additionalItems",t);r.items=!0,(0,hR.alwaysValidSchema)(r,t)||e.ok((0,mR.validateArray)(e))}};function gR(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;!function(e){const{opts:n,errSchemaPath:o}=s,a=r.length,l=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!l){const e=`"${i}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,hR.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=hR.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),u=n.const("len",pR._`${a}.length`);r.forEach(((t,r)=>{(0,hR.alwaysValidSchema)(s,t)||(n.if(pR._`${u} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}fR.validateTuple=gR,fR.default=vR,Object.defineProperty(dR,"__esModule",{value:!0});const yR=fR,bR={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,yR.validateTuple)(e,"items")};dR.default=bR;var wR={};Object.defineProperty(wR,"__esModule",{value:!0});const SR=gO(),xR=yO,_R=FO(),$R=iR,kR={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>SR.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>SR._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,xR.alwaysValidSchema)(n,t)||(o?(0,$R.validateAdditionalItems)(e,o):e.ok((0,_R.validateArray)(e)))}};wR.default=kR;var ER={};Object.defineProperty(ER,"__esModule",{value:!0});const jR=gO(),CR=yO,OR={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?jR.str`must contain at least ${e} valid item(s)`:jR.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?jR._`{minContains: ${e}}`:jR._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:u}=n;a.opts.next?(i=void 0===l?1:l,s=u):i=1;const c=t.const("len",jR._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,CR.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,CR.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,CR.alwaysValidSchema)(a,r)){let t=jR._`${c} >= ${i}`;return void 0!==s&&(t=jR._`${t} && ${c} <= ${s}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);p(e,(()=>t.if(e,(()=>function(e){t.code(jR._`${e}++`),void 0===s?t.if(jR._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(jR._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(jR._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,c,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:CR.Type.Num,compositeRule:!0},r),n()}))}void 0===s&&1===i?p(d,(()=>t.if(d,(()=>t.break())))):0===i?(t.let(d,!0),void 0!==s&&t.if(jR._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};ER.default=OR;var PR={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=gO(),r=yO,n=FO();e.error={message:({params:{property:e,depsCount:r,deps:n}})=>{const o=1===r?"property":"properties";return t.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
48
48
  missingProperty: ${o},
49
49
  depsCount: ${r},
50
- deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);a(e,t),i(e,r)}};function a(e,r=e.schema){const{gen:o,data:a,it:i}=e;if(0===Object.keys(r).length)return;const s=o.let("missing");for(const l in r){const u=r[l];if(0===u.length)continue;const c=(0,n.propertyInData)(o,a,l,i.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),i.allErrors?o.if(c,(()=>{for(const t of u)(0,n.checkReportMissingProp)(e,t)})):(o.if(t._`${c} && (${(0,n.checkMissingProp)(e,u,s)})`),(0,n.reportMissingProp)(e,s),o.else())}}function i(e,t=e.schema){const{gen:o,data:a,keyword:i,it:s}=e,l=o.name("valid");for(const u in t)(0,r.alwaysValidSchema)(s,t[u])||(o.if((0,n.propertyInData)(o,a,u,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:u},l);e.mergeValidEvaluated(t,l)}),(()=>o.var(l,!0))),e.ok(l))}e.validatePropertyDeps=a,e.validateSchemaDeps=i,e.default=o}(ER);var jR={};Object.defineProperty(jR,"__esModule",{value:!0});const CR=pO(),OR=hO,PR={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>CR._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,OR.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,CR.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};jR.default=PR;var NR={};Object.defineProperty(NR,"__esModule",{value:!0});const RR=TO(),TR=pO(),AR=bO(),IR=hO,MR={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>TR._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,"all"!==l.removeAdditional&&(0,IR.alwaysValidSchema)(i,r))return;const u=(0,RR.allSchemaProperties)(n.properties),c=(0,RR.allSchemaProperties)(n.patternProperties);function d(e){t.code(TR._`delete ${o}[${e}]`)}function f(n){if("all"===l.removeAdditional||l.removeAdditional&&!1===r)d(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(s||t.break());if("object"==typeof r&&!(0,IR.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,TR.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,TR.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:IR.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",o,(r=>{u.length||c.length?t.if(function(r){let o;if(u.length>8){const e=(0,IR.schemaRefOrVal)(i,n.properties,"properties");o=(0,RR.isOwnProperty)(t,e,r)}else o=u.length?(0,TR.or)(...u.map((e=>TR._`${r} === ${e}`))):TR.nil;return c.length&&(o=(0,TR.or)(o,...c.map((t=>TR._`${(0,RR.usePattern)(e,t)}.test(${r})`)))),(0,TR.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(TR._`${a} === ${AR.default.errors}`)}};NR.default=MR;var FR={};Object.defineProperty(FR,"__esModule",{value:!0});const zR=rP(),DR=TO(),LR=hO,BR=NR,VR={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;"all"===a.opts.removeAdditional&&void 0===n.additionalProperties&&BR.default.code(new zR.KeywordCxt(a,BR.default,"additionalProperties"));const i=(0,DR.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=LR.mergeEvaluated.props(t,(0,LR.toHash)(i),a.props));const s=i.filter((e=>!(0,LR.alwaysValidSchema)(a,r[e])));if(0===s.length)return;const l=t.name("valid");for(const r of s)u(r)?c(r):(t.if((0,DR.propertyInData)(t,o,r,a.opts.ownProperties)),c(r),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(l);function u(e){return a.opts.useDefaults&&!a.compositeRule&&void 0!==r[e].default}function c(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};FR.default=VR;var UR={};Object.defineProperty(UR,"__esModule",{value:!0});const WR=TO(),qR=pO(),KR=hO,HR=hO,GR={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,WR.allSchemaProperties)(r),l=s.filter((e=>(0,KR.alwaysValidSchema)(a,r[e])));if(0===s.length||l.length===s.length&&(!a.opts.unevaluated||!0===a.props))return;const u=i.strictSchema&&!i.allowMatchingProperties&&o.properties,c=t.name("valid");!0===a.props||a.props instanceof qR.Name||(a.props=(0,HR.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in u)new RegExp(e).test(t)&&(0,KR.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(qR._`${(0,WR.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:HR.Type.Str},c),a.opts.unevaluated&&!0!==d?t.assign(qR._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,qR.not)(c),(()=>t.break()))}))}))}!function(){for(const e of s)u&&f(e),a.allErrors?p(e):(t.var(c,!0),p(e),t.if(c))}()}};UR.default=GR;var QR={};Object.defineProperty(QR,"__esModule",{value:!0});const JR=hO,YR={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,JR.alwaysValidSchema)(n,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};QR.default=YR;var XR={};Object.defineProperty(XR,"__esModule",{value:!0});const ZR={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:TO().validateUnion,error:{message:"must match a schema in anyOf"}};XR.default=ZR;var eT={};Object.defineProperty(eT,"__esModule",{value:!0});const tT=pO(),rT=hO,nT={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>tT._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const a=r,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block((function(){a.forEach(((r,n)=>{let a;(0,rT.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(tT._`${l} && ${i}`).assign(i,!1).assign(s,tT._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,tT.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};eT.default=nT;var oT={};Object.defineProperty(oT,"__esModule",{value:!0});const aT=hO,iT={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if((0,aT.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};oT.default=iT;var sT={};Object.defineProperty(sT,"__esModule",{value:!0});const lT=pO(),uT=hO,cT={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>lT.str`must match "${e.ifClause}" schema`,params:({params:e})=>lT._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,uT.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=dT(n,"then"),a=dT(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(s,l("then",r),l("else",r))}else o?t.if(s,l("then")):t.if((0,lT.not)(s),l("else"));function l(r,n){return()=>{const o=e.subschema({keyword:r},s);t.assign(i,s),e.mergeValidEvaluated(o,i),n?t.assign(n,lT._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function dT(e,t){const r=e.schema[t];return void 0!==r&&!(0,uT.alwaysValidSchema)(e,r)}sT.default=cT;var fT={};Object.defineProperty(fT,"__esModule",{value:!0});const pT=hO,hT={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,pT.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};fT.default=hT,Object.defineProperty(tR,"__esModule",{value:!0});const mT=rR,vT=sR,gT=lR,yT=vR,bT=xR,wT=ER,ST=jR,xT=NR,_T=FR,$T=UR,kT=QR,ET=XR,jT=eT,CT=oT,OT=sT,PT=fT;tR.default=function(e=!1){const t=[kT.default,ET.default,jT.default,CT.default,OT.default,PT.default,ST.default,xT.default,wT.default,_T.default,$T.default];return e?t.push(vT.default,yT.default):t.push(mT.default,gT.default),t.push(bT.default),t};var NT={},RT={};Object.defineProperty(RT,"__esModule",{value:!0});const TT=pO(),AT={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>TT.str`must match format "${e}"`,params:({schemaCode:e})=>TT._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:u,schemaEnv:c,self:d}=s;l.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),a=r.const("fDef",TT._`${o}[${i}]`),s=r.let("fType"),u=r.let("format");r.if(TT._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,TT._`${a}.type || "string"`).assign(u,TT._`${a}.validate`)),(()=>r.assign(s,TT._`"string"`).assign(u,a))),e.fail$data((0,TT.or)(!1===l.strictSchema?TT.nil:TT._`${i} && !${u}`,function(){const e=c.$async?TT._`(${a}.async ? await ${u}(${n}) : ${u}(${n}))`:TT._`${u}(${n})`,r=TT._`(typeof ${u} == "function" ? ${e} : ${u}.test(${n}))`;return TT._`${u} && ${u} !== true && ${s} === ${t} && !${r}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===o)return;const[i,s,f]=function(e){const t=e instanceof RegExp?(0,TT.regexpCode)(e):l.code.formats?TT._`${l.code.formats}${(0,TT.getProperty)(a)}`:void 0,n=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,TT._`${n}.validate`];return["string",e,n]}(o);i===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!c.$async)throw new Error("async format in sync schema");return TT._`await ${f}(${n})`}return"function"==typeof s?TT._`${f}(${n})`:TT._`${f}.test(${n})`}())}())}};RT.default=AT,Object.defineProperty(NT,"__esModule",{value:!0});const IT=[RT.default];NT.default=IT;var MT={};Object.defineProperty(MT,"__esModule",{value:!0}),MT.contentVocabulary=MT.metadataVocabulary=void 0,MT.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],MT.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(CP,"__esModule",{value:!0});const FT=qP,zT=tR,DT=NT,LT=MT,BT=[OP.default,FT.default,(0,zT.default)(),DT.default,LT.metadataVocabulary,LT.contentVocabulary];CP.default=BT;var VT={},UT={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(UT),Object.defineProperty(VT,"__esModule",{value:!0});const WT=pO(),qT=UT,KT=uP,HT=hO,GT={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===qT.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>WT._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:n,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if("string"!=typeof s)throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),u=t.const("tag",WT._`${r}${(0,WT.getProperty)(s)}`);function c(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,WT.Name),n}t.if(WT._`typeof ${u} == "string"`,(()=>function(){const r=function(){var e;const t={},r=l(o);let n=!0;for(let t=0;t<i.length;t++){let o=i[t];(null==o?void 0:o.$ref)&&!(0,HT.schemaHasRulesButRef)(o,a.self.RULES)&&(o=KT.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof KT.SchemaEnv&&(o=o.schema));const c=null===(e=null==o?void 0:o.properties)||void 0===e?void 0:e[s];if("object"!=typeof c)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);n=n&&(r||l(o)),u(c,t)}if(!n)throw new Error(`discriminator: "${s}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(s)}function u(e,t){if(e.const)c(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`);for(const r of e.enum)c(r,t)}}function c(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${s}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(WT._`${u} === ${e}`),t.assign(l,c(r[e]));t.else(),e.error(!1,{discrError:qT.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:qT.DiscrError.Tag,tag:u,tagName:s}))),e.ok(l)}};VT.default=GT;var QT={$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};!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=void 0;const r=rO,n=CP,o=VT,a=QT,i=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=rP();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=pO();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 d=aP();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=lP();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(tO,eO);var JT=n(eO),YT={},XT={get exports(){return YT},set exports(e){YT=e}},ZT={};!function(e){function t(e,t){return{validate:e,compare:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0,e.fullFormats={date:t(o,a),time:t(s,l),"date-time":t((function(e){const t=e.split(u);return 2===t.length&&o(t[0])&&s(t[1],!0)}),c),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return d.test(e)&&f.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(g.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return p.lastIndex=0,p.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=m&&e>=h}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:v},double:{type:"number",validate:v},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,c),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);const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(e){const t=r.exec(e);if(!t)return!1;const o=+t[1],a=+t[2],i=+t[3];return a>=1&&a<=12&&i>=1&&i<=(2===a&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(o)?29:n[a])}function a(e,t){if(e&&t)return e>t?1:e<t?-1:0}const i=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function s(e,t){const r=i.exec(e);if(!r)return!1;const n=+r[1],o=+r[2],a=+r[3],s=r[5];return(n<=23&&o<=59&&a<=59||23===n&&59===o&&60===a)&&(!t||""!==s)}function l(e,t){if(!e||!t)return;const r=i.exec(e),n=i.exec(t);return r&&n?(e=r[1]+r[2]+r[3]+(r[4]||""))>(t=n[1]+n[2]+n[3]+(n[4]||""))?1:e<t?-1:0:void 0}const u=/t|\s/i;function c(e,t){if(!e||!t)return;const[r,n]=e.split(u),[o,i]=t.split(u),s=a(r,o);return void 0!==s?s||l(n,i):void 0}const d=/\/|:/,f=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;const h=-(2**31),m=2**31-1;function v(){return!0}const g=/[^\\]\\Z/}(ZT);var eA={},tA={},rA={get exports(){return tA},set exports(e){tA=e}},nA={},oA={},aA={},iA={},sA={},lA={};!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(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)s(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const a=new n("+");function i(e,...t){const r=[u(e[0])];let o=0;for(;o<t.length;)r.push(a),s(r,t[o]),r.push(a,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function s(e,t){t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push(function(e){return"number"==typeof e||"boolean"==typeof e||null===e?e:u(Array.isArray(e)?e.join(","):e)}(t))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new n(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new n(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(lA);var uA={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=lA;class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=a;const i=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,n);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,(r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(o,a,i={},s){let l=t.nil;for(const u in o){const c=o[u];if(!c)continue;const d=i[u]=i[u]||new Map;c.forEach((o=>{if(d.has(o))return;d.set(o,n.Started);let i=a(o);if(i){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${r} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(o)))throw new r(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,n.Completed)}))}return l}}}(uA),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=lA,r=uA;var n=lA;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=uA;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.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 a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class i extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=O(this.rhs,e,r),this}get names(){return C(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class c extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=O(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(P(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>j(e,t.names)),{})}}class h extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends p{}class v extends h{}v.kind="else";class g extends h{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof g?t:t.nodes:this.nodes.length?this:new g(N(e),t instanceof g?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=O(this.condition,e,t),this}get names(){const e=super.names;return C(e,this.condition),this.else&&j(e,this.else.names),e}}g.kind="if";class y extends h{}y.kind="for";class b extends y{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=O(this.iteration,e,t),this}get names(){return j(super.names,this.iteration.names)}}class w extends y{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:a}=this;return`for(${t} ${n}=${o}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=C(super.names,this.from);return C(e,this.to)}}class S extends y{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=O(this.iterable,e,t),this}get names(){return j(super.names,this.iterable.names)}}class x extends h{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class _ extends p{render(e){return"return "+super.render(e)}}_.kind="return";class $ extends h{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&j(e,this.catch.names),this.finally&&j(e,this.finally.names),e}}class k extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.kind="catch";class E extends h{render(e){return"finally"+super.render(e)}}E.kind="finally";function j(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function C(e,r){return r instanceof t._CodeOrName?j(e,r.names):e}function O(e,r,n){return e instanceof t.Name?o(e):function(e){return e instanceof t._Code&&e._items.some((e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str]))}(e)?new t._Code(e._items.reduce(((e,r)=>(r instanceof t.Name&&(r=o(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e)),[])):e;function o(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function P(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${I(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new i(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new s(e,t,r))}add(t,r){return this._leafNode(new l(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new g(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new g(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const i=this._scope.toName(e);return this._for(new w(a,i,t,n),(()=>o(i)))}forOf(e,n,o,a=r.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,(r=>{this.var(i,t._`${e}[${r}]`),o(i)}))}return this._for(new S("of",a,i,n),(()=>o(i)))}forIn(e,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const i=this._scope.toName(e);return this._for(new S("in",a,i,n),(()=>o(i)))}endFor(){return this._endBlockNode(y)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new c(e))}return(e){const t=new _;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new $;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new k(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(k,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new x(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=N;const R=A(e.operators.AND);e.and=function(...e){return e.reduce(R)};const T=A(e.operators.OR);function A(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${I(r)} ${e} ${I(n)}`}function I(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(T)}}(sA);var cA={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=sA,r=lA;function n(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||f(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function i(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:e,mergeToName:r,mergeValues:n,resultToName:o}){return(a,i,s,l)=>{const u=void 0===s?i:s instanceof t.Name?(i instanceof t.Name?e(a,i,s):r(a,i,s),s):i instanceof t.Name?(r(a,s,i),i):n(i,s);return l!==t.Name||u instanceof t.Name?u:o(a,u)}}function l(e,r){if(!0===r)return e.var("props",!0);const n=e.var("props",t._`{}`);return void 0!==r&&u(e,n,r),n}function u(e,r,n){Object.keys(n).forEach((n=>e.assign(t._`${r}${(0,t.getProperty)(n)}`,!0)))}e.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=n,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:r},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return t._`${n}`}return t._`${e}${r}${(0,t.getProperty)(o)}`},e.unescapeFragment=function(e){return i(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(a(e))},e.escapeJsonPointer=a,e.unescapeJsonPointer=i,e.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},e.mergeEvaluated={props:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>{e.if(t._`${r} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,t._`${n} || {}`).code(t._`Object.assign(${n}, ${r})`)))})),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>{!0===r?e.assign(n,!0):(e.assign(n,t._`${n} || {}`),u(e,n,r))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>e.assign(n,t._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`))),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>e.assign(n,!0===r||t._`${n} > ${r} ? ${n} : ${r}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=l,e.setEvaluated=u;const c={};var d;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:c[t.code]||(c[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d=e.Type||(e.Type={})),e.getErrorPath=function(e,r,n){if(e instanceof t.Name){const o=r===d.Num;return n?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,t.getProperty)(e).toString():"/"+a(e)},e.checkStrictMode=f}(cA);var dA,fA,pA,hA={};function mA(){if(dA)return hA;dA=1,Object.defineProperty(hA,"__esModule",{value:!0});const e=sA,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 hA.default=t,hA}function vA(){return fA||(fA=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=sA,r=cA,n=mA();function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,t._`[${o}]`)),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function a(e,r){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,i,l){const{it:u}=r,{gen:c,compositeRule:d,allErrors:f}=u,p=s(r,n,i);(null!=l?l:d||f)?o(c,p):a(u,t._`[${p}]`)},e.reportExtraError=function(t,r=e.keywordError,i){const{it:l}=t,{gen:u,compositeRule:c,allErrors:d}=l;o(u,s(t,r,i)),c||d||a(l,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,(()=>e.if(r,(()=>e.assign(t._`${n.default.vErrors}.length`,r)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:a,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,n.default.errors,(i=>{e.const(l,t._`${n.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(n.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${r}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,a))}))};const i={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 s(e,r,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,r,o={}){const{gen:a,it:s}=e,c=[l(s,o),u(e,o)];return function(e,{params:r,message:o},a){const{keyword:s,data:l,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:h}=c;a.push([i.keyword,s],[i.params,"function"==typeof r?r(e):r||t._`{}`]),d.messages&&a.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&a.push([i.schema,u],[i.parentSchema,t._`${p}${h}`],[n.default.data,l]);f&&a.push([i.propertyName,f])}(e,r,c),a.object(...c)}(e,r,o)}function l({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${(0,r.getErrorPath)(o,r.Type.Str)}`:e;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,a)]}function u({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:a}){let s=a?n:t.str`${n}/${e}`;return o&&(s=t.str`${s}${(0,r.getErrorPath)(o,r.Type.Str)}`),[i.schemaPath,s]}}(iA)),iA}var gA={},yA={};Object.defineProperty(yA,"__esModule",{value:!0}),yA.getRules=yA.isJSONType=void 0;const bA=new Set(["string","number","integer","boolean","null","object","array"]);yA.isJSONType=function(e){return"string"==typeof e&&bA.has(e)},yA.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var wA,SA={};function xA(){if(wA)return SA;function e(e,r){return r.rules.some((r=>t(e,r)))}function t(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}return wA=1,Object.defineProperty(SA,"__esModule",{value:!0}),SA.shouldUseRule=SA.shouldUseGroup=SA.schemaHasRulesForType=void 0,SA.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},SA.shouldUseGroup=e,SA.shouldUseRule=t,SA}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=yA,r=xA(),n=vA(),o=sA,a=cA;var i;function s(e){const r=Array.isArray(e)?e:e?[e]:[];if(r.every(t.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(i=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){const t=s(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=s,e.coerceAndCheckDataType=function(e,t){const{gen:n,data:a,opts:s}=e,u=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),d=t.length>0&&!(0===u.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(d){const r=c(t,a,s.strictNumbers,i.Wrong);n.if(r,(()=>{u.length?function(e,t,r){const{gen:n,data:a,opts:i}=e,s=n.let("dataType",o._`typeof ${a}`),u=n.let("coerced",o._`undefined`);"array"===i.coerceTypes&&n.if(o._`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>n.assign(a,o._`${a}[0]`).assign(s,o._`typeof ${a}`).if(c(t,a,i.strictNumbers),(()=>n.assign(u,a)))));n.if(o._`${u} !== undefined`);for(const e of r)(l.has(e)||"array"===e&&"array"===i.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void n.elseIf(o._`${s} == "number" || ${s} == "boolean"`).assign(u,o._`"" + ${a}`).elseIf(o._`${a} === null`).assign(u,o._`""`);case"number":return void n.elseIf(o._`${s} == "boolean" || ${a} === null
50
+ deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);a(e,t),i(e,r)}};function a(e,r=e.schema){const{gen:o,data:a,it:i}=e;if(0===Object.keys(r).length)return;const s=o.let("missing");for(const l in r){const u=r[l];if(0===u.length)continue;const c=(0,n.propertyInData)(o,a,l,i.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),i.allErrors?o.if(c,(()=>{for(const t of u)(0,n.checkReportMissingProp)(e,t)})):(o.if(t._`${c} && (${(0,n.checkMissingProp)(e,u,s)})`),(0,n.reportMissingProp)(e,s),o.else())}}function i(e,t=e.schema){const{gen:o,data:a,keyword:i,it:s}=e,l=o.name("valid");for(const u in t)(0,r.alwaysValidSchema)(s,t[u])||(o.if((0,n.propertyInData)(o,a,u,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:u},l);e.mergeValidEvaluated(t,l)}),(()=>o.var(l,!0))),e.ok(l))}e.validatePropertyDeps=a,e.validateSchemaDeps=i,e.default=o}(PR);var NR={};Object.defineProperty(NR,"__esModule",{value:!0});const RR=gO(),TR=yO,AR={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>RR._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,TR.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,RR.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};NR.default=AR;var IR={};Object.defineProperty(IR,"__esModule",{value:!0});const MR=FO(),FR=gO(),zR=_O(),DR=yO,LR={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>FR._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,"all"!==l.removeAdditional&&(0,DR.alwaysValidSchema)(i,r))return;const u=(0,MR.allSchemaProperties)(n.properties),c=(0,MR.allSchemaProperties)(n.patternProperties);function d(e){t.code(FR._`delete ${o}[${e}]`)}function f(n){if("all"===l.removeAdditional||l.removeAdditional&&!1===r)d(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(s||t.break());if("object"==typeof r&&!(0,DR.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,FR.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,FR.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:DR.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",o,(r=>{u.length||c.length?t.if(function(r){let o;if(u.length>8){const e=(0,DR.schemaRefOrVal)(i,n.properties,"properties");o=(0,MR.isOwnProperty)(t,e,r)}else o=u.length?(0,FR.or)(...u.map((e=>FR._`${r} === ${e}`))):FR.nil;return c.length&&(o=(0,FR.or)(o,...c.map((t=>FR._`${(0,MR.usePattern)(e,t)}.test(${r})`)))),(0,FR.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(FR._`${a} === ${zR.default.errors}`)}};IR.default=LR;var BR={};Object.defineProperty(BR,"__esModule",{value:!0});const VR=iP(),UR=FO(),WR=yO,qR=IR,KR={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;"all"===a.opts.removeAdditional&&void 0===n.additionalProperties&&qR.default.code(new VR.KeywordCxt(a,qR.default,"additionalProperties"));const i=(0,UR.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=WR.mergeEvaluated.props(t,(0,WR.toHash)(i),a.props));const s=i.filter((e=>!(0,WR.alwaysValidSchema)(a,r[e])));if(0===s.length)return;const l=t.name("valid");for(const r of s)u(r)?c(r):(t.if((0,UR.propertyInData)(t,o,r,a.opts.ownProperties)),c(r),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(l);function u(e){return a.opts.useDefaults&&!a.compositeRule&&void 0!==r[e].default}function c(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};BR.default=KR;var HR={};Object.defineProperty(HR,"__esModule",{value:!0});const GR=FO(),QR=gO(),JR=yO,YR=yO,XR={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,GR.allSchemaProperties)(r),l=s.filter((e=>(0,JR.alwaysValidSchema)(a,r[e])));if(0===s.length||l.length===s.length&&(!a.opts.unevaluated||!0===a.props))return;const u=i.strictSchema&&!i.allowMatchingProperties&&o.properties,c=t.name("valid");!0===a.props||a.props instanceof QR.Name||(a.props=(0,YR.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in u)new RegExp(e).test(t)&&(0,JR.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(QR._`${(0,GR.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:YR.Type.Str},c),a.opts.unevaluated&&!0!==d?t.assign(QR._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,QR.not)(c),(()=>t.break()))}))}))}!function(){for(const e of s)u&&f(e),a.allErrors?p(e):(t.var(c,!0),p(e),t.if(c))}()}};HR.default=XR;var ZR={};Object.defineProperty(ZR,"__esModule",{value:!0});const eT=yO,tT={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,eT.alwaysValidSchema)(n,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};ZR.default=tT;var rT={};Object.defineProperty(rT,"__esModule",{value:!0});const nT={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:FO().validateUnion,error:{message:"must match a schema in anyOf"}};rT.default=nT;var oT={};Object.defineProperty(oT,"__esModule",{value:!0});const aT=gO(),iT=yO,sT={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>aT._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const a=r,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block((function(){a.forEach(((r,n)=>{let a;(0,iT.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(aT._`${l} && ${i}`).assign(i,!1).assign(s,aT._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,aT.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};oT.default=sT;var lT={};Object.defineProperty(lT,"__esModule",{value:!0});const uT=yO,cT={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if((0,uT.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};lT.default=cT;var dT={};Object.defineProperty(dT,"__esModule",{value:!0});const fT=gO(),pT=yO,hT={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>fT.str`must match "${e.ifClause}" schema`,params:({params:e})=>fT._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,pT.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=mT(n,"then"),a=mT(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(s,l("then",r),l("else",r))}else o?t.if(s,l("then")):t.if((0,fT.not)(s),l("else"));function l(r,n){return()=>{const o=e.subschema({keyword:r},s);t.assign(i,s),e.mergeValidEvaluated(o,i),n?t.assign(n,fT._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function mT(e,t){const r=e.schema[t];return void 0!==r&&!(0,pT.alwaysValidSchema)(e,r)}dT.default=hT;var vT={};Object.defineProperty(vT,"__esModule",{value:!0});const gT=yO,yT={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,gT.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};vT.default=yT,Object.defineProperty(aR,"__esModule",{value:!0});const bT=iR,wT=dR,ST=fR,xT=wR,_T=ER,$T=PR,kT=NR,ET=IR,jT=BR,CT=HR,OT=ZR,PT=rT,NT=oT,RT=lT,TT=dT,AT=vT;aR.default=function(e=!1){const t=[OT.default,PT.default,NT.default,RT.default,TT.default,AT.default,kT.default,ET.default,$T.default,jT.default,CT.default];return e?t.push(wT.default,xT.default):t.push(bT.default,ST.default),t.push(_T.default),t};var IT={},MT={};Object.defineProperty(MT,"__esModule",{value:!0});const FT=gO(),zT={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>FT.str`must match format "${e}"`,params:({schemaCode:e})=>FT._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:u,schemaEnv:c,self:d}=s;l.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),a=r.const("fDef",FT._`${o}[${i}]`),s=r.let("fType"),u=r.let("format");r.if(FT._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,FT._`${a}.type || "string"`).assign(u,FT._`${a}.validate`)),(()=>r.assign(s,FT._`"string"`).assign(u,a))),e.fail$data((0,FT.or)(!1===l.strictSchema?FT.nil:FT._`${i} && !${u}`,function(){const e=c.$async?FT._`(${a}.async ? await ${u}(${n}) : ${u}(${n}))`:FT._`${u}(${n})`,r=FT._`(typeof ${u} == "function" ? ${e} : ${u}.test(${n}))`;return FT._`${u} && ${u} !== true && ${s} === ${t} && !${r}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===o)return;const[i,s,f]=function(e){const t=e instanceof RegExp?(0,FT.regexpCode)(e):l.code.formats?FT._`${l.code.formats}${(0,FT.getProperty)(a)}`:void 0,n=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,FT._`${n}.validate`];return["string",e,n]}(o);i===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!c.$async)throw new Error("async format in sync schema");return FT._`await ${f}(${n})`}return"function"==typeof s?FT._`${f}(${n})`:FT._`${f}.test(${n})`}())}())}};MT.default=zT,Object.defineProperty(IT,"__esModule",{value:!0});const DT=[MT.default];IT.default=DT;var LT={};Object.defineProperty(LT,"__esModule",{value:!0}),LT.contentVocabulary=LT.metadataVocabulary=void 0,LT.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],LT.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(RP,"__esModule",{value:!0});const BT=QP,VT=aR,UT=IT,WT=LT,qT=[TP.default,BT.default,(0,VT.default)(),UT.default,WT.metadataVocabulary,WT.contentVocabulary];RP.default=qT;var KT={},HT={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(HT),Object.defineProperty(KT,"__esModule",{value:!0});const GT=gO(),QT=HT,JT=pP,YT=yO,XT={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===QT.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>GT._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:n,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if("string"!=typeof s)throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),u=t.const("tag",GT._`${r}${(0,GT.getProperty)(s)}`);function c(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,GT.Name),n}t.if(GT._`typeof ${u} == "string"`,(()=>function(){const r=function(){var e;const t={},r=l(o);let n=!0;for(let t=0;t<i.length;t++){let o=i[t];(null==o?void 0:o.$ref)&&!(0,YT.schemaHasRulesButRef)(o,a.self.RULES)&&(o=JT.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof JT.SchemaEnv&&(o=o.schema));const c=null===(e=null==o?void 0:o.properties)||void 0===e?void 0:e[s];if("object"!=typeof c)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);n=n&&(r||l(o)),u(c,t)}if(!n)throw new Error(`discriminator: "${s}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(s)}function u(e,t){if(e.const)c(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`);for(const r of e.enum)c(r,t)}}function c(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${s}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(GT._`${u} === ${e}`),t.assign(l,c(r[e]));t.else(),e.error(!1,{discrError:QT.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:QT.DiscrError.Tag,tag:u,tagName:s}))),e.ok(l)}};KT.default=XT;var ZT={$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};!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=void 0;const r=iO,n=RP,o=KT,a=ZT,i=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=iP();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=gO();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 d=uP();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=fP();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(aO,oO);var eA=n(oO),tA={},rA={get exports(){return tA},set exports(e){tA=e}},nA={};!function(e){function t(e,t){return{validate:e,compare:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0,e.fullFormats={date:t(o,a),time:t(s,l),"date-time":t((function(e){const t=e.split(u);return 2===t.length&&o(t[0])&&s(t[1],!0)}),c),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return d.test(e)&&f.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(g.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return p.lastIndex=0,p.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=m&&e>=h}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:v},double:{type:"number",validate:v},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,c),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);const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(e){const t=r.exec(e);if(!t)return!1;const o=+t[1],a=+t[2],i=+t[3];return a>=1&&a<=12&&i>=1&&i<=(2===a&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(o)?29:n[a])}function a(e,t){if(e&&t)return e>t?1:e<t?-1:0}const i=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function s(e,t){const r=i.exec(e);if(!r)return!1;const n=+r[1],o=+r[2],a=+r[3],s=r[5];return(n<=23&&o<=59&&a<=59||23===n&&59===o&&60===a)&&(!t||""!==s)}function l(e,t){if(!e||!t)return;const r=i.exec(e),n=i.exec(t);return r&&n?(e=r[1]+r[2]+r[3]+(r[4]||""))>(t=n[1]+n[2]+n[3]+(n[4]||""))?1:e<t?-1:0:void 0}const u=/t|\s/i;function c(e,t){if(!e||!t)return;const[r,n]=e.split(u),[o,i]=t.split(u),s=a(r,o);return void 0!==s?s||l(n,i):void 0}const d=/\/|:/,f=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;const p=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;const h=-(2**31),m=2**31-1;function v(){return!0}const g=/[^\\]\\Z/}(nA);var oA={},aA={},iA={get exports(){return aA},set exports(e){aA=e}},sA={},lA={},uA={},cA={},dA={},fA={};!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(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)s(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const a=new n("+");function i(e,...t){const r=[u(e[0])];let o=0;for(;o<t.length;)r.push(a),s(r,t[o]),r.push(a,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=l(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function s(e,t){t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push(function(e){return"number"==typeof e||"boolean"==typeof e||null===e?e:u(Array.isArray(e)?e.join(","):e)}(t))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=i,e.addCodeArg=s,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:i`${e}${t}`},e.stringify=function(e){return new n(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.getEsmExportName=function(t){if("string"==typeof t&&e.IDENTIFIER.test(t))return new n(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(fA);var pA={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=fA;class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=a;const i=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?i:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,n);const s=this._scope[o]||(this._scope[o]=[]),l=s.length;return s[l]=t.ref,n.setValue(t,{property:o,itemIndex:l}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,(r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(o,a,i={},s){let l=t.nil;for(const u in o){const c=o[u];if(!c)continue;const d=i[u]=i[u]||new Map;c.forEach((o=>{if(d.has(o))return;d.set(o,n.Started);let i=a(o);if(i){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;l=t._`${l}${r} ${o} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(o)))throw new r(o);l=t._`${l}${i}${this.opts._n}`}d.set(o,n.Completed)}))}return l}}}(pA),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=fA,r=pA;var n=fA;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=pA;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.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 a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class i extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=O(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class s extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=O(this.rhs,e,r),this}get names(){return C(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class l extends s{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class c extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class d extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class f extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=O(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(P(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>j(e,t.names)),{})}}class h extends p{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class m extends p{}class v extends h{}v.kind="else";class g extends h{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof g?t:t.nodes:this.nodes.length?this:new g(N(e),t instanceof g?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=O(this.condition,e,t),this}get names(){const e=super.names;return C(e,this.condition),this.else&&j(e,this.else.names),e}}g.kind="if";class y extends h{}y.kind="for";class b extends y{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=O(this.iteration,e,t),this}get names(){return j(super.names,this.iteration.names)}}class w extends y{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:a}=this;return`for(${t} ${n}=${o}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=C(super.names,this.from);return C(e,this.to)}}class S extends y{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=O(this.iterable,e,t),this}get names(){return j(super.names,this.iterable.names)}}class x extends h{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class _ extends p{render(e){return"return "+super.render(e)}}_.kind="return";class $ extends h{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&j(e,this.catch.names),this.finally&&j(e,this.finally.names),e}}class k extends h{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.kind="catch";class E extends h{render(e){return"finally"+super.render(e)}}E.kind="finally";function j(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function C(e,r){return r instanceof t._CodeOrName?j(e,r.names):e}function O(e,r,n){return e instanceof t.Name?o(e):function(e){return e instanceof t._Code&&e._items.some((e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str]))}(e)?new t._Code(e._items.reduce(((e,r)=>(r instanceof t.Name&&(r=o(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e)),[])):e;function o(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function P(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function N(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${I(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new i(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new s(e,t,r))}add(t,r){return this._leafNode(new l(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,t.addCodeArg)(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new g(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new g(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(g,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const i=this._scope.toName(e);return this._for(new w(a,i,t,n),(()=>o(i)))}forOf(e,n,o,a=r.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,(r=>{this.var(i,t._`${e}[${r}]`),o(i)}))}return this._for(new S("of",a,i,n),(()=>o(i)))}forIn(e,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const i=this._scope.toName(e);return this._for(new S("in",a,i,n),(()=>o(i)))}endFor(){return this._endBlockNode(y)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new c(e))}return(e){const t=new _;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new $;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new k(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(k,E)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new x(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=N;const R=A(e.operators.AND);e.and=function(...e){return e.reduce(R)};const T=A(e.operators.OR);function A(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${I(r)} ${e} ${I(n)}`}function I(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(T)}}(dA);var hA={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=dA,r=fA;function n(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||f(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function i(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function s({mergeNames:e,mergeToName:r,mergeValues:n,resultToName:o}){return(a,i,s,l)=>{const u=void 0===s?i:s instanceof t.Name?(i instanceof t.Name?e(a,i,s):r(a,i,s),s):i instanceof t.Name?(r(a,s,i),i):n(i,s);return l!==t.Name||u instanceof t.Name?u:o(a,u)}}function l(e,r){if(!0===r)return e.var("props",!0);const n=e.var("props",t._`{}`);return void 0!==r&&u(e,n,r),n}function u(e,r,n){Object.keys(n).forEach((n=>e.assign(t._`${r}${(0,t.getProperty)(n)}`,!0)))}e.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=n,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:r},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return t._`${n}`}return t._`${e}${r}${(0,t.getProperty)(o)}`},e.unescapeFragment=function(e){return i(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(a(e))},e.escapeJsonPointer=a,e.unescapeJsonPointer=i,e.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},e.mergeEvaluated={props:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>{e.if(t._`${r} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,t._`${n} || {}`).code(t._`Object.assign(${n}, ${r})`)))})),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>{!0===r?e.assign(n,!0):(e.assign(n,t._`${n} || {}`),u(e,n,r))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:s({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>e.assign(n,t._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`))),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>e.assign(n,!0===r||t._`${n} > ${r} ? ${n} : ${r}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=l,e.setEvaluated=u;const c={};var d;function f(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:c[t.code]||(c[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(d=e.Type||(e.Type={})),e.getErrorPath=function(e,r,n){if(e instanceof t.Name){const o=r===d.Num;return n?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,t.getProperty)(e).toString():"/"+a(e)},e.checkStrictMode=f}(hA);var mA,vA,gA,yA={};function bA(){if(mA)return yA;mA=1,Object.defineProperty(yA,"__esModule",{value:!0});const e=dA,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 yA.default=t,yA}function wA(){return vA||(vA=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=dA,r=hA,n=bA();function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,t._`[${o}]`)),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function a(e,r){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,i,l){const{it:u}=r,{gen:c,compositeRule:d,allErrors:f}=u,p=s(r,n,i);(null!=l?l:d||f)?o(c,p):a(u,t._`[${p}]`)},e.reportExtraError=function(t,r=e.keywordError,i){const{it:l}=t,{gen:u,compositeRule:c,allErrors:d}=l;o(u,s(t,r,i)),c||d||a(l,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,(()=>e.if(r,(()=>e.assign(t._`${n.default.vErrors}.length`,r)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:a,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const l=e.name("err");e.forRange("i",i,n.default.errors,(i=>{e.const(l,t._`${n.default.vErrors}[${i}]`),e.if(t._`${l}.instancePath === undefined`,(()=>e.assign(t._`${l}.instancePath`,(0,t.strConcat)(n.default.instancePath,s.errorPath)))),e.assign(t._`${l}.schemaPath`,t.str`${s.errSchemaPath}/${r}`),s.opts.verbose&&(e.assign(t._`${l}.schema`,o),e.assign(t._`${l}.data`,a))}))};const i={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 s(e,r,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,r,o={}){const{gen:a,it:s}=e,c=[l(s,o),u(e,o)];return function(e,{params:r,message:o},a){const{keyword:s,data:l,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:h}=c;a.push([i.keyword,s],[i.params,"function"==typeof r?r(e):r||t._`{}`]),d.messages&&a.push([i.message,"function"==typeof o?o(e):o]);d.verbose&&a.push([i.schema,u],[i.parentSchema,t._`${p}${h}`],[n.default.data,l]);f&&a.push([i.propertyName,f])}(e,r,c),a.object(...c)}(e,r,o)}function l({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${(0,r.getErrorPath)(o,r.Type.Str)}`:e;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,a)]}function u({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:a}){let s=a?n:t.str`${n}/${e}`;return o&&(s=t.str`${s}${(0,r.getErrorPath)(o,r.Type.Str)}`),[i.schemaPath,s]}}(cA)),cA}var SA={},xA={};Object.defineProperty(xA,"__esModule",{value:!0}),xA.getRules=xA.isJSONType=void 0;const _A=new Set(["string","number","integer","boolean","null","object","array"]);xA.isJSONType=function(e){return"string"==typeof e&&_A.has(e)},xA.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var $A,kA={};function EA(){if($A)return kA;function e(e,r){return r.rules.some((r=>t(e,r)))}function t(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}return $A=1,Object.defineProperty(kA,"__esModule",{value:!0}),kA.shouldUseRule=kA.shouldUseGroup=kA.schemaHasRulesForType=void 0,kA.schemaHasRulesForType=function({schema:t,self:r},n){const o=r.RULES.types[n];return o&&!0!==o&&e(t,o)},kA.shouldUseGroup=e,kA.shouldUseRule=t,kA}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=xA,r=EA(),n=wA(),o=dA,a=hA;var i;function s(e){const r=Array.isArray(e)?e:e?[e]:[];if(r.every(t.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(i=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){const t=s(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=s,e.coerceAndCheckDataType=function(e,t){const{gen:n,data:a,opts:s}=e,u=function(e,t){return t?e.filter((e=>l.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),d=t.length>0&&!(0===u.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(d){const r=c(t,a,s.strictNumbers,i.Wrong);n.if(r,(()=>{u.length?function(e,t,r){const{gen:n,data:a,opts:i}=e,s=n.let("dataType",o._`typeof ${a}`),u=n.let("coerced",o._`undefined`);"array"===i.coerceTypes&&n.if(o._`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>n.assign(a,o._`${a}[0]`).assign(s,o._`typeof ${a}`).if(c(t,a,i.strictNumbers),(()=>n.assign(u,a)))));n.if(o._`${u} !== undefined`);for(const e of r)(l.has(e)||"array"===e&&"array"===i.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void n.elseIf(o._`${s} == "number" || ${s} == "boolean"`).assign(u,o._`"" + ${a}`).elseIf(o._`${a} === null`).assign(u,o._`""`);case"number":return void n.elseIf(o._`${s} == "boolean" || ${a} === null
51
51
  || (${s} == "string" && ${a} && ${a} == +${a})`).assign(u,o._`+${a}`);case"integer":return void n.elseIf(o._`${s} === "boolean" || ${a} === null
52
52
  || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(u,o._`+${a}`);case"boolean":return void n.elseIf(o._`${a} === "false" || ${a} === 0 || ${a} === null`).assign(u,!1).elseIf(o._`${a} === "true" || ${a} === 1`).assign(u,!0);case"null":return n.elseIf(o._`${a} === "" || ${a} === 0 || ${a} === false`),void n.assign(u,null);case"array":n.elseIf(o._`${s} === "string" || ${s} === "number"
53
- || ${s} === "boolean" || ${a} === null`).assign(u,o._`[${a}]`)}}n.else(),f(e),n.endIf(),n.if(o._`${u} !== undefined`,(()=>{n.assign(a,u),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,u)}))}(e,t,u):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function u(e,t,r,n=i.Correct){const a=n===i.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${a} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=l(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=l();break;default:return o._`typeof ${t} ${a} ${e}`}return n===i.Correct?s:(0,o.not)(s);function l(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function c(e,t,r,n){if(1===e.length)return u(e[0],t,r,n);let i;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;i=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else i=o.nil;s.number&&delete s.integer;for(const e in s)i=(0,o.and)(i,u(e,t,r,n));return i}e.checkDataType=u,e.checkDataTypes=c;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,n.reportError)(t,d)}e.reportTypeError=f}(gA);var _A,$A={};var kA,EA,jA={},CA={};function OA(){if(kA)return CA;kA=1,Object.defineProperty(CA,"__esModule",{value:!0}),CA.validateUnion=CA.validateArray=CA.usePattern=CA.callValidateCode=CA.schemaProperties=CA.allSchemaProperties=CA.noPropertyInData=CA.propertyInData=CA.isOwnProperty=CA.hasPropFunc=CA.reportMissingProp=CA.checkMissingProp=CA.checkReportMissingProp=void 0;const e=sA,t=cA,r=mA(),n=cA;function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function a(t,r,n){return e._`${o(t)}.call(${r}, ${n})`}function i(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} === undefined`;return o?(0,e.or)(i,(0,e.not)(a(t,r,n))):i}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}CA.checkReportMissingProp=function(t,r){const{gen:n,data:o,it:a}=t;n.if(i(n,o,r,a.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()}))},CA.checkMissingProp=function({gen:t,data:r,it:{opts:n}},o,a){return(0,e.or)(...o.map((o=>(0,e.and)(i(t,r,o,n.ownProperties),e._`${a} = ${o}`))))},CA.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},CA.hasPropFunc=o,CA.isOwnProperty=a,CA.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},CA.noPropertyInData=i,CA.allSchemaProperties=s,CA.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},CA.callValidateCode=function({schemaCode:t,data:n,it:{gen:o,topSchemaRef:a,schemaPath:i,errorPath:s},it:l},u,c,d){const f=d?e._`${t}, ${n}, ${a}${i}`:n,p=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,s)],[r.default.parentData,l.parentData],[r.default.parentDataProperty,l.parentDataProperty],[r.default.rootData,r.default.rootData]];l.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const h=e._`${f}, ${o.object(...p)}`;return c!==e.nil?e._`${u}.call(${c}, ${h})`:e._`${u}(${h})`};const l=e._`new RegExp`;return CA.usePattern=function({gen:t,it:{opts:r}},o){const a=r.unicodeRegExp?"u":"",{regExp:i}=r.code,s=i(o,a);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===i.code?l:(0,n.useFunc)(t,i)}(${o}, ${a})`})},CA.validateArray=function(r){const{gen:n,data:o,keyword:a,it:i}=r,s=n.name("valid");if(i.allErrors){const e=n.let("valid",!0);return l((()=>n.assign(e,!1))),e}return n.var(s,!0),l((()=>n.break())),s;function l(i){const l=n.const("len",e._`${o}.length`);n.forRange("i",0,l,(o=>{r.subschema({keyword:a,dataProp:o,dataPropType:t.Type.Num},s),n.if((0,e.not)(s),i)}))}},CA.validateUnion=function(r){const{gen:n,schema:o,keyword:a,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some((e=>(0,t.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const s=n.let("valid",!1),l=n.name("_valid");n.block((()=>o.forEach(((t,o)=>{const i=r.subschema({keyword:a,schemaProp:o,compositeRule:!0},l);n.assign(s,e._`${s} || ${l}`);r.mergeValidEvaluated(i,l)||n.if((0,e.not)(s))})))),r.result(s,(()=>r.reset()),(()=>r.error(!0)))},CA}function PA(){if(EA)return jA;EA=1,Object.defineProperty(jA,"__esModule",{value:!0}),jA.validateKeywordUsage=jA.validSchemaType=jA.funcKeywordCode=jA.macroKeywordCode=void 0;const e=sA,t=mA(),r=OA(),n=vA();function o(t){const{gen:r,data:n,it:o}=t;r.if(o.parentData,(()=>r.assign(n,e._`${o.parentData}[${o.parentDataProperty}]`)))}function a(t,r,n){if(void 0===n)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return jA.macroKeywordCode=function(t,r){const{gen:n,keyword:o,schema:i,parentSchema:s,it:l}=t,u=r.macro.call(l.self,i,s,l),c=a(n,o,u);!1!==l.opts.validateSchema&&l.self.validateSchema(u,!0);const d=n.name("valid");t.subschema({schema:u,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:c,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},jA.funcKeywordCode=function(i,s){var l;const{gen:u,keyword:c,schema:d,parentSchema:f,$data:p,it:h}=i;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,s);const m=!p&&s.compile?s.compile.call(h.self,d,f,h):s.validate,v=a(u,c,m),g=u.let("valid");function y(n=(s.async?e._`await `:e.nil)){const o=h.opts.passContext?t.default.this:t.default.self,a=!("compile"in s&&!p||!1===s.schema);u.assign(g,e._`${n}${(0,r.callValidateCode)(i,v,o,a)}`,s.modifying)}function b(t){var r;u.if((0,e.not)(null!==(r=s.valid)&&void 0!==r?r:g),t)}i.block$data(g,(function(){if(!1===s.errors)y(),s.modifying&&o(i),b((()=>i.error()));else{const r=s.async?function(){const t=u.let("ruleErrs",null);return u.try((()=>y(e._`await `)),(r=>u.assign(g,!1).if(e._`${r} instanceof ${h.ValidationError}`,(()=>u.assign(t,e._`${r}.errors`)),(()=>u.throw(r))))),t}():function(){const t=e._`${v}.errors`;return u.assign(t,null),y(e.nil),t}();s.modifying&&o(i),b((()=>function(r,o){const{gen:a}=r;a.if(e._`Array.isArray(${o})`,(()=>{a.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,n.extendErrors)(r)}),(()=>r.error()))}(i,r)))}})),i.ok(null!==(l=s.valid)&&void 0!==l?l:g)},jA.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},jA.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(null==i?void 0:i.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},jA}var NA,RA={};var TA={},AA={},IA={get exports(){return AA},set exports(e){AA=e}},MA=IA.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),FA(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function FA(e,t,r,n,o,a,i,s,l,u){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var c in t(n,o,a,i,s,l,u),n){var d=n[c];if(Array.isArray(d)){if(c in MA.arrayKeywords)for(var f=0;f<d.length;f++)FA(e,t,r,d[f],o+"/"+c+"/"+f,a,o,c,n,f)}else if(c in MA.propsKeywords){if(d&&"object"==typeof d)for(var p in d)FA(e,t,r,d[p],o+"/"+c+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,c,n,p)}else(c in MA.keywords||e.allKeys&&!(c in MA.skipKeywords))&&FA(e,t,r,d,o+"/"+c,a,o,c,n)}r(n,o,a,i,s,l,u)}}MA.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},MA.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},MA.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},MA.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},Object.defineProperty(TA,"__esModule",{value:!0}),TA.getSchemaRefs=TA.resolveUrl=TA.normalizeId=TA._getFullPath=TA.getFullPath=TA.inlineRef=void 0;const zA=cA,DA=zO,LA=AA,BA=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);TA.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!UA(e):!!t&&WA(e)<=t)};const VA=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function UA(e){for(const t in e){if(VA.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(UA))return!0;if("object"==typeof r&&UA(r))return!0}return!1}function WA(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!BA.has(r)&&("object"==typeof e[r]&&(0,zA.eachItem)(e[r],(e=>t+=WA(e))),t===1/0))return 1/0}return t}function qA(e,t="",r){!1!==r&&(t=GA(t));const n=e.parse(t);return KA(e,n)}function KA(e,t){return e.serialize(t).split("#")[0]+"#"}TA.getFullPath=qA,TA._getFullPath=KA;const HA=/#\/?$/;function GA(e){return e?e.replace(HA,""):""}TA.normalizeId=GA,TA.resolveUrl=function(e,t,r){return r=GA(r),e.resolve(t,r)};const QA=/^[a-z_][-a-z0-9._]*$/i;var JA;function YA(){if(JA)return oA;JA=1,Object.defineProperty(oA,"__esModule",{value:!0}),oA.getData=oA.KeywordCxt=oA.validateFunctionCode=void 0;const e=function(){if(pA)return aA;pA=1,Object.defineProperty(aA,"__esModule",{value:!0}),aA.boolOrEmptySchema=aA.topBoolOrEmptySchema=void 0;const e=vA(),t=sA,r=mA(),n={message:"boolean schema is false"};function o(t,r){const{gen:o,data:a}=t,i={gen:o,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(i,n,void 0,r)}return aA.topBoolOrEmptySchema=function(e){const{gen:n,schema:a,validateName:i}=e;!1===a?o(e,!1):"object"==typeof a&&!0===a.$async?n.return(r.default.data):(n.assign(t._`${i}.errors`,null),n.return(!0))},aA.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},aA}(),t=gA,r=xA(),n=gA,o=function(){if(_A)return $A;_A=1,Object.defineProperty($A,"__esModule",{value:!0}),$A.assignDefaults=void 0;const e=sA,t=cA;function r(r,n,o){const{gen:a,compositeRule:i,data:s,opts:l}=r;if(void 0===o)return;const u=e._`${s}${(0,e.getProperty)(n)}`;if(i)return void(0,t.checkStrictMode)(r,`default is ignored for: ${u}`);let c=e._`${u} === undefined`;"empty"===l.useDefaults&&(c=e._`${c} || ${u} === null || ${u} === ""`),a.if(c,e._`${u} = ${(0,e.stringify)(o)}`)}return $A.assignDefaults=function(e,t){const{properties:n,items:o}=e.schema;if("object"===t&&n)for(const t in n)r(e,t,n[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,n)=>r(e,n,t.default)))},$A}(),a=PA(),i=function(){if(NA)return RA;NA=1,Object.defineProperty(RA,"__esModule",{value:!0}),RA.extendSubschemaMode=RA.extendSubschemaData=RA.getSubschema=void 0;const e=sA,t=cA;return RA.getSubschema=function(r,{keyword:n,schemaProp:o,schema:a,schemaPath:i,errSchemaPath:s,topSchemaRef:l}){if(void 0!==n&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const a=r.schema[n];return void 0===o?{schema:a,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:a[o],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(o)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,t.escapeFragment)(o)}`}}if(void 0!==a){if(void 0===i||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:i,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},RA.extendSubschemaData=function(r,n,{dataProp:o,dataPropType:a,data:i,dataTypes:s,propertyName:l}){if(void 0!==i&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=n;if(void 0!==o){const{errorPath:i,dataPathArr:s,opts:l}=n;c(u.let("data",e._`${n.data}${(0,e.getProperty)(o)}`,!0)),r.errorPath=e.str`${i}${(0,t.getErrorPath)(o,a,l.jsPropertySyntax)}`,r.parentDataProperty=e._`${o}`,r.dataPathArr=[...s,r.parentDataProperty]}function c(e){r.data=e,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,e]}void 0!==i&&(c(i instanceof e.Name?i:u.let("data",i,!0)),void 0!==l&&(r.propertyName=l)),s&&(r.dataTypes=s)},RA.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r},RA}(),s=sA,l=mA(),u=TA,c=cA,d=vA();function f({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,n.$async,(()=>{e.code(s._`"use strict"; ${p(r,o)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,s._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,s._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,s._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,s._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,s._`""`),e.var(l.default.parentData,s._`undefined`),e.var(l.default.parentDataProperty,s._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`{}`)}))}(e,o),e.code(a)})):e.func(t,s._`${l.default.data}, ${function(e){return s._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?s._`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}(o)}`,n.$async,(()=>e.code(p(r,o)).code(a)))}function p(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?s._`/*# sourceURL=${r} */`:s.nil}function h(t,r){v(t)&&(g(t),m(t))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&b(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",l.default.errors);y(e,a),n.var(t,s._`${a} === ${l.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function m({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function g(e){(0,c.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function y(e,r){if(e.opts.jtd)return w(e,[],!1,r);const n=(0,t.getSchemaTypes)(e.schema);w(e,n,!(0,t.coerceAndCheckDataType)(e,n),r)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(s._`${l.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=s.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function w(e,t,o,a){const{gen:i,schema:u,data:d,allErrors:f,opts:p,self:h}=e,{RULES:m}=h;function v(c){(0,r.shouldUseGroup)(u,c)&&(c.type?(i.if((0,n.checkDataType)(c.type,d,p.strictNumbers)),S(e,c),1===t.length&&t[0]===c.type&&o&&(i.else(),(0,n.reportTypeError)(e)),i.endIf()):S(e,c),f||i.if(s._`${l.default.errors} === ${a||0}`))}!u.$ref||!p.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(u,m)?(p.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{_(e.dataTypes,t)||$(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)_(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&$(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const o in n){const a=n[o];if("object"==typeof a&&(0,r.shouldUseRule)(e.schema,a)){const{type:r}=a.definition;r.length&&!r.some((e=>x(t,e)))&&$(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of m.rules)v(e);v(m.post)}))):i.block((()=>E(e,"$ref",m.all.$ref.definition)))}function S(e,t){const{gen:n,schema:a,opts:{useDefaults:i}}=e;i&&(0,o.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,r.shouldUseRule)(a,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function _(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function $(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,c.checkStrictMode)(e,t,e.opts.strictTypes)}oA.validateFunctionCode=function(t){v(t)&&(g(t),m(t))?function(e){const{schema:t,opts:r,gen:n}=e;f(e,(()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,c.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(l.default.vErrors,null),n.let(l.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",s._`${r}.evaluated`),t.if(s._`${e.evaluated}.dynamicProps`,(()=>t.assign(s._`${e.evaluated}.props`,s._`undefined`))),t.if(s._`${e.evaluated}.dynamicItems`,(()=>t.assign(s._`${e.evaluated}.items`,s._`undefined`)))}(e),y(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${o}(${l.default.vErrors})`))):(t.assign(s._`${n}.errors`,l.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof s.Name&&e.assign(s._`${t}.props`,r);n instanceof s.Name&&e.assign(s._`${t}.items`,n)}(e),t.return(s._`${l.default.errors} === 0`))}(e)}))}(t):f(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class k{constructor(e,t,r){if((0,a.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",O(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,r){this.failResult((0,s.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=s.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,s.or)(s._`${n} === undefined`,t)),e!==s.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:o,it:a}=this;return(0,s.or)(function(){if(r.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return s._`${(0,n.checkDataTypes)(e,t,a.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}(),function(){if(o.validateSchema){const r=e.scopeValue("validate$data",{ref:o.validateSchema});return s._`!${r}(${t})`}return s.nil}())}subschema(e,t){const r=(0,i.getSubschema)(this.it,e);(0,i.extendSubschemaData)(r,this.it,e),(0,i.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return h(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=c.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=c.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function E(e,t,r,n){const o=new k(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,a.funcKeywordCode)(o,r):"macro"in r?(0,a.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,a.funcKeywordCode)(o,r)}oA.KeywordCxt=k;const j=/^\/(?:[^~]|~0|~1)*$/,C=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function O(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(""===e)return l.default.rootData;if("/"===e[0]){if(!j.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=l.default.rootData}else{const i=C.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(o=i[2],"#"===o){if(s>=t)throw new Error(d("property/index",s));return n[t-s]}if(s>t)throw new Error(d("data",s));if(a=r[t-s],!o)return a}let i=a;const u=o.split("/");for(const e of u)e&&(a=s._`${a}${(0,s.getProperty)((0,c.unescapeJsonPointer)(e))}`,i=s._`${i} && ${a}`);return i;function d(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return oA.getData=O,oA}TA.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=GA(e[r]||t),a={"":o},i=qA(n,o,!1),s={},l=new Set;return LA(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const d=i+t;let f=a[o];function p(t){const r=this.opts.uriResolver.resolve;if(t=GA(f?r(f,t):t),l.has(t))throw c(t);l.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?u(e,n.schema,t):t!==GA(d)&&("#"===t[0]?(u(e,s[t],t),s[t]=e):this.refs[t]=d),t}function h(e){if("string"==typeof e){if(!QA.test(e))throw new Error(`invalid anchor "${e}"`);p.call(this,`#${e}`)}}"string"==typeof e[r]&&(f=p.call(this,e[r])),h.call(this,e.$anchor),h.call(this,e.$dynamicAnchor),a[t]=f})),s;function u(e,t,r){if(void 0!==t&&!DA(e,t))throw c(r)}function c(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var XA,ZA={};function eI(){if(XA)return ZA;XA=1,Object.defineProperty(ZA,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return ZA.default=e,ZA}var tI,rI={};function nI(){if(tI)return rI;tI=1,Object.defineProperty(rI,"__esModule",{value:!0});const e=TA;class t extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return rI.default=t,rI}var oI={};Object.defineProperty(oI,"__esModule",{value:!0}),oI.resolveSchema=oI.getCompilingSchema=oI.resolveRef=oI.compileSchema=oI.SchemaEnv=void 0;const aI=sA,iI=eI(),sI=mA(),lI=TA,uI=cA,cI=YA();class dI{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,lI.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function fI(e){const t=hI.call(this,e);if(t)return t;const r=(0,lI.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new aI.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:iI.default,code:aI._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const u={gen:i,allErrors:this.opts.allErrors,data:sI.default.data,parentData:sI.default.parentData,parentDataProperty:sI.default.parentDataProperty,dataNames:[sI.default.data],dataPathArr:[aI.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,aI.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:aI.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:aI._`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,cI.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);const t=i.toString();c=`${i.scopeRefs(sI.default.scope)}return ${t}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const r=new Function(`${sI.default.self}`,`${sI.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:l,validateCode:t,scopeValues:i._values}),this.opts.unevaluated){const{props:e,items:t}=u;r.evaluated={props:e instanceof aI.Name?void 0:e,items:t instanceof aI.Name?void 0:t,dynamicProps:e instanceof aI.Name,dynamicItems:t instanceof aI.Name},r.source&&(r.source.evaluated=(0,aI.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),t}finally{this._compilations.delete(e)}}function pI(e){return(0,lI.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:fI.call(this,e)}function hI(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function mI(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||vI.call(this,e,t)}function vI(e,t){const r=this.opts.uriResolver.parse(t),n=(0,lI._getFullPath)(this.opts.uriResolver,r);let o=(0,lI.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return yI.call(this,r,e);const a=(0,lI.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=vI.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return yI.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||fI.call(this,i),a===(0,lI.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,lI.resolveUrl)(this.opts.uriResolver,o,n)),new dI({schema:t,schemaId:r,root:e,baseId:o})}return yI.call(this,r,i)}}oI.SchemaEnv=dI,oI.compileSchema=fI,oI.resolveRef=function(e,t,r){var n;r=(0,lI.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=mI.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:i}=this.opts;o&&(a=new dI({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=pI.call(this,a):void 0},oI.getCompilingSchema=hI,oI.resolveSchema=vI;const gI=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function yI(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,uI.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!gI.has(n)&&o&&(t=(0,lI.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,uI.schemaHasRulesButRef)(r,this.RULES)){const e=(0,lI.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=vI.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new dI({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var bI={$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},wI={};Object.defineProperty(wI,"__esModule",{value:!0});const SI=EP;SI.code='require("ajv/dist/runtime/uri").default',wI.default=SI,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=YA();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=sA;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 n=eI(),o=nI(),a=yA,i=oI,s=sA,l=TA,u=gA,c=cA,d=bI,f=wI,p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],m=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.'};function y(e){var t,r,n,o,a,i,s,l,u,c,d,h,m,v,g,y,b,w,S,x,_,$,k,E,j;const C=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,P=!0===O||void 0===O?1:O||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,R=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:C)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:C)||void 0===l||l,strictTypes:null!==(c=null!==(u=e.strictTypes)&&void 0!==u?u:C)&&void 0!==c?c:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:C)&&void 0!==h?h:"log",strictRequired:null!==(v=null!==(m=e.strictRequired)&&void 0!==m?m:C)&&void 0!==v&&v,code:e.code?{...e.code,optimize:P,regExp:N}:{optimize:P,regExp:N},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(S=e.inlineRefs)||void 0===S||S,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===(_=e.addUsedSchema)||void 0===_||_,validateSchema:null===($=e.validateSchema)||void 0===$||$,validateFormats:null===(k=e.validateFormats)||void 0===k||k,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(j=e.int32range)||void 0===j||j,uriResolver:R}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...y(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:m,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,g,e,"DEPRECATED","warn"),this._metaOpts=k.call(this),e.formats&&_.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&$.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const r=await u.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new i.SchemaEnv({schema:{},schemaId:r});if(t=i.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(C.call(this,r,t),!t)return(0,c.eachItem)(r,(e=>O.call(this,e))),this;N.call(this,t);const n={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,c.eachItem)(r,0===n.type.length?e=>O.call(this,e,n):e=>n.type.forEach((t=>O.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=T(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(void 0!==u)return u;r=(0,l.normalizeId)(a||r);const c=l.getSchemaRefs.call(this,e,r);return u=new i.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:c}),this._cache.set(u.schema,u),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=u),n&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function S(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function _(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function $(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function k(){const e={...this.opts};for(const t of h)delete e[t];return e}e.default=b,b.ValidationError=n.default,b.MissingRefError=o.default;const E={log(){},warn(){},error(){}};const j=/^[a-z_$][a-z0-9_$:-]*$/i;function C(e,t){const{RULES:r}=this;if((0,c.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!j.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function O(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((({type:e})=>e===r));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?P.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function P(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function N(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,R]}}}(nA);var xI={},_I={},$I={};Object.defineProperty($I,"__esModule",{value:!0});const kI={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};$I.default=kI;var EI={};Object.defineProperty(EI,"__esModule",{value:!0}),EI.callRef=EI.getValidate=void 0;const jI=nI(),CI=OA(),OI=sA,PI=mA(),NI=oI,RI=cA,TI={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=n,{root:u}=a;if(("#"===r||"#/"===r)&&o===u.baseId)return function(){if(a===u)return II(e,i,a,a.$async);const r=t.scopeValue("root",{ref:u});return II(e,OI._`${r}.validate`,u,u.$async)}();const c=NI.resolveRef.call(l,u,o,r);if(void 0===c)throw new jI.default(n.opts.uriResolver,o,r);return c instanceof NI.SchemaEnv?function(t){const r=AI(e,t);II(e,r,t,t.$async)}(c):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,OI.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:OI.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(c)}};function AI(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):OI._`${r.scopeValue("wrapper",{ref:t})}.validate`}function II(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,u=l.passContext?PI.default.this:OI.nil;function c(e){const t=OI._`${e}.errors`;o.assign(PI.default.vErrors,OI._`${PI.default.vErrors} === null ? ${t} : ${PI.default.vErrors}.concat(${t})`),o.assign(PI.default.errors,OI._`${PI.default.vErrors}.length`)}function d(e){var t;if(!a.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(n&&!n.dynamicProps)void 0!==n.props&&(a.props=RI.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",OI._`${e}.evaluated.props`);a.props=RI.mergeEvaluated.props(o,t,a.props,OI.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=RI.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",OI._`${e}.evaluated.items`);a.items=RI.mergeEvaluated.items(o,t,a.items,OI.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(OI._`await ${(0,CI.callValidateCode)(e,t,u)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(OI._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),c(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,CI.callValidateCode)(e,t,u),(()=>d(t)),(()=>c(t)))}EI.getValidate=AI,EI.callRef=II,EI.default=TI,Object.defineProperty(_I,"__esModule",{value:!0});const MI=EI,FI=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",$I.default,MI.default];_I.default=FI;var zI={},DI={};Object.defineProperty(DI,"__esModule",{value:!0});const LI=sA,BI=LI.operators,VI={maximum:{okStr:"<=",ok:BI.LTE,fail:BI.GT},minimum:{okStr:">=",ok:BI.GTE,fail:BI.LT},exclusiveMaximum:{okStr:"<",ok:BI.LT,fail:BI.GTE},exclusiveMinimum:{okStr:">",ok:BI.GT,fail:BI.LTE}},UI={message:({keyword:e,schemaCode:t})=>LI.str`must be ${VI[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>LI._`{comparison: ${VI[e].okStr}, limit: ${t}}`},WI={keyword:Object.keys(VI),type:"number",schemaType:"number",$data:!0,error:UI,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(LI._`${r} ${VI[t].fail} ${n} || isNaN(${r})`)}};DI.default=WI;var qI={};Object.defineProperty(qI,"__esModule",{value:!0});const KI=sA,HI={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>KI.str`must be multiple of ${e}`,params:({schemaCode:e})=>KI._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?KI._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:KI._`${i} !== parseInt(${i})`;e.fail$data(KI._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};qI.default=HI;var GI={},QI={};function JI(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}Object.defineProperty(QI,"__esModule",{value:!0}),QI.default=JI,JI.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(GI,"__esModule",{value:!0});const YI=sA,XI=cA,ZI=QI,eM={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return YI.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>YI._`{limit: ${e}}`},tM={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:eM,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?YI.operators.GT:YI.operators.LT,i=!1===o.opts.unicode?YI._`${r}.length`:YI._`${(0,XI.useFunc)(e.gen,ZI.default)}(${r})`;e.fail$data(YI._`${i} ${a} ${n}`)}};GI.default=tM;var rM={};Object.defineProperty(rM,"__esModule",{value:!0});const nM=OA(),oM=sA,aM={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>oM.str`must match pattern "${e}"`,params:({schemaCode:e})=>oM._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?oM._`(new RegExp(${o}, ${i}))`:(0,nM.usePattern)(e,n);e.fail$data(oM._`!${s}.test(${t})`)}};rM.default=aM;var iM={};Object.defineProperty(iM,"__esModule",{value:!0});const sM=sA,lM={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return sM.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>sM._`{limit: ${e}}`},uM={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:lM,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?sM.operators.GT:sM.operators.LT;e.fail$data(sM._`Object.keys(${r}).length ${o} ${n}`)}};iM.default=uM;var cM={};Object.defineProperty(cM,"__esModule",{value:!0});const dM=OA(),fM=sA,pM=cA,hM={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>fM.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>fM._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&0===r.length)return;const l=r.length>=s.loopRequired;if(i.allErrors?function(){if(l||a)e.block$data(fM.nil,u);else for(const t of r)(0,dM.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(l||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,(0,dM.propertyInData)(t,o,r,s.ownProperties)),t.if((0,fM.not)(a),(()=>{e.error(),t.break()}))}),fM.nil)}(i,r))),e.ok(r)}else t.if((0,dM.checkMissingProp)(e,r,i)),(0,dM.reportMissingProp)(e,i),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${i.schemaEnv.baseId+i.errSchemaPath}" (strictRequired)`;(0,pM.checkStrictMode)(i,t,i.opts.strictRequired)}}function u(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,dM.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};cM.default=hM;var mM={};Object.defineProperty(mM,"__esModule",{value:!0});const vM=sA,gM={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return vM.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>vM._`{limit: ${e}}`},yM={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:gM,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?vM.operators.GT:vM.operators.LT;e.fail$data(vM._`${r}.length ${o} ${n}`)}};mM.default=yM;var bM={},wM={};Object.defineProperty(wM,"__esModule",{value:!0});const SM=zO;SM.code='require("ajv/dist/runtime/equal").default',wM.default=SM,Object.defineProperty(bM,"__esModule",{value:!0});const xM=gA,_M=sA,$M=cA,kM=wM,EM={message:({params:{i:e,j:t}})=>_M.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>_M._`{i: ${e}, j: ${t}}`},jM={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:EM,code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!n&&!o)return;const l=t.let("valid"),u=a.items?(0,xM.getSchemaTypes)(a.items):[];function c(n,o){const a=t.name("item"),i=(0,xM.checkDataTypes)(u,a,s.opts.strictNumbers,xM.DataType.Wrong),c=t.const("indices",_M._`{}`);t.for(_M._`;${n}--;`,(()=>{t.let(a,_M._`${r}[${n}]`),t.if(i,_M._`continue`),u.length>1&&t.if(_M._`typeof ${a} == "string"`,_M._`${a} += "_"`),t.if(_M._`typeof ${c}[${a}] == "number"`,(()=>{t.assign(o,_M._`${c}[${a}]`),e.error(),t.assign(l,!1).break()})).code(_M._`${c}[${a}] = ${n}`)}))}function d(n,o){const a=(0,$M.useFunc)(t,kM.default),i=t.name("outer");t.label(i).for(_M._`;${n}--;`,(()=>t.for(_M._`${o} = ${n}; ${o}--;`,(()=>t.if(_M._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",_M._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(_M._`${n} > 1`,(()=>(u.length>0&&!u.some((e=>"object"===e||"array"===e))?c:d)(n,o)))}),_M._`${i} === false`),e.ok(l)}};bM.default=jM;var CM={};Object.defineProperty(CM,"__esModule",{value:!0});const OM=sA,PM=cA,NM=wM,RM={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>OM._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(OM._`!${(0,PM.useFunc)(t,NM.default)}(${r}, ${o})`):e.fail(OM._`${a} !== ${r}`)}};CM.default=RM;var TM={};Object.defineProperty(TM,"__esModule",{value:!0});const AM=sA,IM=cA,MM=wM,FM={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>AM._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&0===o.length)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const u=()=>null!=l?l:l=(0,IM.useFunc)(t,MM.default);let c;if(s||n)c=t.let("valid"),e.block$data(c,(function(){t.assign(c,!1),t.forOf("v",a,(e=>t.if(AM._`${u()}(${r}, ${e})`,(()=>t.assign(c,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);c=(0,AM.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?AM._`${u()}(${r}, ${e}[${t}])`:AM._`${r} === ${n}`}(e,n))))}e.pass(c)}};TM.default=FM,Object.defineProperty(zI,"__esModule",{value:!0});const zM=qI,DM=GI,LM=rM,BM=iM,VM=cM,UM=mM,WM=bM,qM=CM,KM=TM,HM=[DI.default,zM.default,DM.default,LM.default,BM.default,VM.default,UM.default,WM.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},qM.default,KM.default];zI.default=HM;var GM={},QM={};Object.defineProperty(QM,"__esModule",{value:!0}),QM.validateAdditionalItems=void 0;const JM=sA,YM=cA,XM={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>JM.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>JM._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?ZM(e,n):(0,YM.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function ZM(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",JM._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(JM._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,YM.alwaysValidSchema)(i,n)){const n=r.var("valid",JM._`${s} <= ${t.length}`);r.if((0,JM.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:YM.Type.Num},n),i.allErrors||r.if((0,JM.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}QM.validateAdditionalItems=ZM,QM.default=XM;var eF={},tF={};Object.defineProperty(tF,"__esModule",{value:!0}),tF.validateTuple=void 0;const rF=sA,nF=cA,oF=OA(),aF={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return iF(e,"additionalItems",t);r.items=!0,(0,nF.alwaysValidSchema)(r,t)||e.ok((0,oF.validateArray)(e))}};function iF(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;!function(e){const{opts:n,errSchemaPath:o}=s,a=r.length,l=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!l){const e=`"${i}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,nF.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=nF.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),u=n.const("len",rF._`${a}.length`);r.forEach(((t,r)=>{(0,nF.alwaysValidSchema)(s,t)||(n.if(rF._`${u} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}tF.validateTuple=iF,tF.default=aF,Object.defineProperty(eF,"__esModule",{value:!0});const sF=tF,lF={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,sF.validateTuple)(e,"items")};eF.default=lF;var uF={};Object.defineProperty(uF,"__esModule",{value:!0});const cF=sA,dF=cA,fF=OA(),pF=QM,hF={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>cF.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>cF._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,dF.alwaysValidSchema)(n,t)||(o?(0,pF.validateAdditionalItems)(e,o):e.ok((0,fF.validateArray)(e)))}};uF.default=hF;var mF={};Object.defineProperty(mF,"__esModule",{value:!0});const vF=sA,gF=cA,yF={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?vF.str`must contain at least ${e} valid item(s)`:vF.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?vF._`{minContains: ${e}}`:vF._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:u}=n;a.opts.next?(i=void 0===l?1:l,s=u):i=1;const c=t.const("len",vF._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,gF.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,gF.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,gF.alwaysValidSchema)(a,r)){let t=vF._`${c} >= ${i}`;return void 0!==s&&(t=vF._`${t} && ${c} <= ${s}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);p(e,(()=>t.if(e,(()=>function(e){t.code(vF._`${e}++`),void 0===s?t.if(vF._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(vF._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(vF._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,c,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:gF.Type.Num,compositeRule:!0},r),n()}))}void 0===s&&1===i?p(d,(()=>t.if(d,(()=>t.break())))):0===i?(t.let(d,!0),void 0!==s&&t.if(vF._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};mF.default=yF;var bF={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=sA,r=cA,n=OA();e.error={message:({params:{property:e,depsCount:r,deps:n}})=>{const o=1===r?"property":"properties";return t.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
53
+ || ${s} === "boolean" || ${a} === null`).assign(u,o._`[${a}]`)}}n.else(),f(e),n.endIf(),n.if(o._`${u} !== undefined`,(()=>{n.assign(a,u),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,u)}))}(e,t,u):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function u(e,t,r,n=i.Correct){const a=n===i.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${a} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=l(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=l();break;default:return o._`typeof ${t} ${a} ${e}`}return n===i.Correct?s:(0,o.not)(s);function l(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function c(e,t,r,n){if(1===e.length)return u(e[0],t,r,n);let i;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;i=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else i=o.nil;s.number&&delete s.integer;for(const e in s)i=(0,o.and)(i,u(e,t,r,n));return i}e.checkDataType=u,e.checkDataTypes=c;const d={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function f(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=(0,a.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,n.reportError)(t,d)}e.reportTypeError=f}(SA);var jA,CA={};var OA,PA,NA={},RA={};function TA(){if(OA)return RA;OA=1,Object.defineProperty(RA,"__esModule",{value:!0}),RA.validateUnion=RA.validateArray=RA.usePattern=RA.callValidateCode=RA.schemaProperties=RA.allSchemaProperties=RA.noPropertyInData=RA.propertyInData=RA.isOwnProperty=RA.hasPropFunc=RA.reportMissingProp=RA.checkMissingProp=RA.checkReportMissingProp=void 0;const e=dA,t=hA,r=bA(),n=hA;function o(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function a(t,r,n){return e._`${o(t)}.call(${r}, ${n})`}function i(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} === undefined`;return o?(0,e.or)(i,(0,e.not)(a(t,r,n))):i}function s(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}RA.checkReportMissingProp=function(t,r){const{gen:n,data:o,it:a}=t;n.if(i(n,o,r,a.opts.ownProperties),(()=>{t.setParams({missingProperty:e._`${r}`},!0),t.error()}))},RA.checkMissingProp=function({gen:t,data:r,it:{opts:n}},o,a){return(0,e.or)(...o.map((o=>(0,e.and)(i(t,r,o,n.ownProperties),e._`${a} = ${o}`))))},RA.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},RA.hasPropFunc=o,RA.isOwnProperty=a,RA.propertyInData=function(t,r,n,o){const i=e._`${r}${(0,e.getProperty)(n)} !== undefined`;return o?e._`${i} && ${a(t,r,n)}`:i},RA.noPropertyInData=i,RA.allSchemaProperties=s,RA.schemaProperties=function(e,r){return s(r).filter((n=>!(0,t.alwaysValidSchema)(e,r[n])))},RA.callValidateCode=function({schemaCode:t,data:n,it:{gen:o,topSchemaRef:a,schemaPath:i,errorPath:s},it:l},u,c,d){const f=d?e._`${t}, ${n}, ${a}${i}`:n,p=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,s)],[r.default.parentData,l.parentData],[r.default.parentDataProperty,l.parentDataProperty],[r.default.rootData,r.default.rootData]];l.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const h=e._`${f}, ${o.object(...p)}`;return c!==e.nil?e._`${u}.call(${c}, ${h})`:e._`${u}(${h})`};const l=e._`new RegExp`;return RA.usePattern=function({gen:t,it:{opts:r}},o){const a=r.unicodeRegExp?"u":"",{regExp:i}=r.code,s=i(o,a);return t.scopeValue("pattern",{key:s.toString(),ref:s,code:e._`${"new RegExp"===i.code?l:(0,n.useFunc)(t,i)}(${o}, ${a})`})},RA.validateArray=function(r){const{gen:n,data:o,keyword:a,it:i}=r,s=n.name("valid");if(i.allErrors){const e=n.let("valid",!0);return l((()=>n.assign(e,!1))),e}return n.var(s,!0),l((()=>n.break())),s;function l(i){const l=n.const("len",e._`${o}.length`);n.forRange("i",0,l,(o=>{r.subschema({keyword:a,dataProp:o,dataPropType:t.Type.Num},s),n.if((0,e.not)(s),i)}))}},RA.validateUnion=function(r){const{gen:n,schema:o,keyword:a,it:i}=r;if(!Array.isArray(o))throw new Error("ajv implementation error");if(o.some((e=>(0,t.alwaysValidSchema)(i,e)))&&!i.opts.unevaluated)return;const s=n.let("valid",!1),l=n.name("_valid");n.block((()=>o.forEach(((t,o)=>{const i=r.subschema({keyword:a,schemaProp:o,compositeRule:!0},l);n.assign(s,e._`${s} || ${l}`);r.mergeValidEvaluated(i,l)||n.if((0,e.not)(s))})))),r.result(s,(()=>r.reset()),(()=>r.error(!0)))},RA}function AA(){if(PA)return NA;PA=1,Object.defineProperty(NA,"__esModule",{value:!0}),NA.validateKeywordUsage=NA.validSchemaType=NA.funcKeywordCode=NA.macroKeywordCode=void 0;const e=dA,t=bA(),r=TA(),n=wA();function o(t){const{gen:r,data:n,it:o}=t;r.if(o.parentData,(()=>r.assign(n,e._`${o.parentData}[${o.parentDataProperty}]`)))}function a(t,r,n){if(void 0===n)throw new Error(`keyword "${r}" failed to compile`);return t.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return NA.macroKeywordCode=function(t,r){const{gen:n,keyword:o,schema:i,parentSchema:s,it:l}=t,u=r.macro.call(l.self,i,s,l),c=a(n,o,u);!1!==l.opts.validateSchema&&l.self.validateSchema(u,!0);const d=n.name("valid");t.subschema({schema:u,schemaPath:e.nil,errSchemaPath:`${l.errSchemaPath}/${o}`,topSchemaRef:c,compositeRule:!0},d),t.pass(d,(()=>t.error(!0)))},NA.funcKeywordCode=function(i,s){var l;const{gen:u,keyword:c,schema:d,parentSchema:f,$data:p,it:h}=i;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(h,s);const m=!p&&s.compile?s.compile.call(h.self,d,f,h):s.validate,v=a(u,c,m),g=u.let("valid");function y(n=(s.async?e._`await `:e.nil)){const o=h.opts.passContext?t.default.this:t.default.self,a=!("compile"in s&&!p||!1===s.schema);u.assign(g,e._`${n}${(0,r.callValidateCode)(i,v,o,a)}`,s.modifying)}function b(t){var r;u.if((0,e.not)(null!==(r=s.valid)&&void 0!==r?r:g),t)}i.block$data(g,(function(){if(!1===s.errors)y(),s.modifying&&o(i),b((()=>i.error()));else{const r=s.async?function(){const t=u.let("ruleErrs",null);return u.try((()=>y(e._`await `)),(r=>u.assign(g,!1).if(e._`${r} instanceof ${h.ValidationError}`,(()=>u.assign(t,e._`${r}.errors`)),(()=>u.throw(r))))),t}():function(){const t=e._`${v}.errors`;return u.assign(t,null),y(e.nil),t}();s.modifying&&o(i),b((()=>function(r,o){const{gen:a}=r;a.if(e._`Array.isArray(${o})`,(()=>{a.assign(t.default.vErrors,e._`${t.default.vErrors} === null ? ${o} : ${t.default.vErrors}.concat(${o})`).assign(t.default.errors,e._`${t.default.vErrors}.length`),(0,n.extendErrors)(r)}),(()=>r.error()))}(i,r)))}})),i.ok(null!==(l=s.valid)&&void 0!==l?l:g)},NA.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},NA.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const i=o.dependencies;if(null==i?void 0:i.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},NA}var IA,MA={};var FA={},zA={},DA={get exports(){return zA},set exports(e){zA=e}},LA=DA.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),BA(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function BA(e,t,r,n,o,a,i,s,l,u){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var c in t(n,o,a,i,s,l,u),n){var d=n[c];if(Array.isArray(d)){if(c in LA.arrayKeywords)for(var f=0;f<d.length;f++)BA(e,t,r,d[f],o+"/"+c+"/"+f,a,o,c,n,f)}else if(c in LA.propsKeywords){if(d&&"object"==typeof d)for(var p in d)BA(e,t,r,d[p],o+"/"+c+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,c,n,p)}else(c in LA.keywords||e.allKeys&&!(c in LA.skipKeywords))&&BA(e,t,r,d,o+"/"+c,a,o,c,n)}r(n,o,a,i,s,l,u)}}LA.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},LA.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},LA.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},LA.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},Object.defineProperty(FA,"__esModule",{value:!0}),FA.getSchemaRefs=FA.resolveUrl=FA.normalizeId=FA._getFullPath=FA.getFullPath=FA.inlineRef=void 0;const VA=hA,UA=VO,WA=zA,qA=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);FA.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!HA(e):!!t&&GA(e)<=t)};const KA=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function HA(e){for(const t in e){if(KA.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(HA))return!0;if("object"==typeof r&&HA(r))return!0}return!1}function GA(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!qA.has(r)&&("object"==typeof e[r]&&(0,VA.eachItem)(e[r],(e=>t+=GA(e))),t===1/0))return 1/0}return t}function QA(e,t="",r){!1!==r&&(t=XA(t));const n=e.parse(t);return JA(e,n)}function JA(e,t){return e.serialize(t).split("#")[0]+"#"}FA.getFullPath=QA,FA._getFullPath=JA;const YA=/#\/?$/;function XA(e){return e?e.replace(YA,""):""}FA.normalizeId=XA,FA.resolveUrl=function(e,t,r){return r=XA(r),e.resolve(t,r)};const ZA=/^[a-z_][-a-z0-9._]*$/i;var eI;function tI(){if(eI)return lA;eI=1,Object.defineProperty(lA,"__esModule",{value:!0}),lA.getData=lA.KeywordCxt=lA.validateFunctionCode=void 0;const e=function(){if(gA)return uA;gA=1,Object.defineProperty(uA,"__esModule",{value:!0}),uA.boolOrEmptySchema=uA.topBoolOrEmptySchema=void 0;const e=wA(),t=dA,r=bA(),n={message:"boolean schema is false"};function o(t,r){const{gen:o,data:a}=t,i={gen:o,keyword:"false schema",data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,e.reportError)(i,n,void 0,r)}return uA.topBoolOrEmptySchema=function(e){const{gen:n,schema:a,validateName:i}=e;!1===a?o(e,!1):"object"==typeof a&&!0===a.$async?n.return(r.default.data):(n.assign(t._`${i}.errors`,null),n.return(!0))},uA.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),o(e)):r.var(t,!0)},uA}(),t=SA,r=EA(),n=SA,o=function(){if(jA)return CA;jA=1,Object.defineProperty(CA,"__esModule",{value:!0}),CA.assignDefaults=void 0;const e=dA,t=hA;function r(r,n,o){const{gen:a,compositeRule:i,data:s,opts:l}=r;if(void 0===o)return;const u=e._`${s}${(0,e.getProperty)(n)}`;if(i)return void(0,t.checkStrictMode)(r,`default is ignored for: ${u}`);let c=e._`${u} === undefined`;"empty"===l.useDefaults&&(c=e._`${c} || ${u} === null || ${u} === ""`),a.if(c,e._`${u} = ${(0,e.stringify)(o)}`)}return CA.assignDefaults=function(e,t){const{properties:n,items:o}=e.schema;if("object"===t&&n)for(const t in n)r(e,t,n[t].default);else"array"===t&&Array.isArray(o)&&o.forEach(((t,n)=>r(e,n,t.default)))},CA}(),a=AA(),i=function(){if(IA)return MA;IA=1,Object.defineProperty(MA,"__esModule",{value:!0}),MA.extendSubschemaMode=MA.extendSubschemaData=MA.getSubschema=void 0;const e=dA,t=hA;return MA.getSubschema=function(r,{keyword:n,schemaProp:o,schema:a,schemaPath:i,errSchemaPath:s,topSchemaRef:l}){if(void 0!==n&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const a=r.schema[n];return void 0===o?{schema:a,schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${r.errSchemaPath}/${n}`}:{schema:a[o],schemaPath:e._`${r.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(o)}`,errSchemaPath:`${r.errSchemaPath}/${n}/${(0,t.escapeFragment)(o)}`}}if(void 0!==a){if(void 0===i||void 0===s||void 0===l)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:i,topSchemaRef:l,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},MA.extendSubschemaData=function(r,n,{dataProp:o,dataPropType:a,data:i,dataTypes:s,propertyName:l}){if(void 0!==i&&void 0!==o)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=n;if(void 0!==o){const{errorPath:i,dataPathArr:s,opts:l}=n;c(u.let("data",e._`${n.data}${(0,e.getProperty)(o)}`,!0)),r.errorPath=e.str`${i}${(0,t.getErrorPath)(o,a,l.jsPropertySyntax)}`,r.parentDataProperty=e._`${o}`,r.dataPathArr=[...s,r.parentDataProperty]}function c(e){r.data=e,r.dataLevel=n.dataLevel+1,r.dataTypes=[],n.definedProperties=new Set,r.parentData=n.data,r.dataNames=[...n.dataNames,e]}void 0!==i&&(c(i instanceof e.Name?i:u.let("data",i,!0)),void 0!==l&&(r.propertyName=l)),s&&(r.dataTypes=s)},MA.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r},MA}(),s=dA,l=bA(),u=FA,c=hA,d=wA();function f({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,s._`${l.default.data}, ${l.default.valCxt}`,n.$async,(()=>{e.code(s._`"use strict"; ${p(r,o)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,s._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,s._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,s._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,s._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,s._`""`),e.var(l.default.parentData,s._`undefined`),e.var(l.default.parentDataProperty,s._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,s._`{}`)}))}(e,o),e.code(a)})):e.func(t,s._`${l.default.data}, ${function(e){return s._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?s._`, ${l.default.dynamicAnchors}={}`:s.nil}}={}`}(o)}`,n.$async,(()=>e.code(p(r,o)).code(a)))}function p(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?s._`/*# sourceURL=${r} */`:s.nil}function h(t,r){v(t)&&(g(t),m(t))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&b(e);(function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",l.default.errors);y(e,a),n.var(t,s._`${a} === ${l.default.errors}`)}(t,r):(0,e.boolOrEmptySchema)(t,r)}function m({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function g(e){(0,c.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function y(e,r){if(e.opts.jtd)return w(e,[],!1,r);const n=(0,t.getSchemaTypes)(e.schema);w(e,n,!(0,t.coerceAndCheckDataType)(e,n),r)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(s._`${l.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=s.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(s._`${l.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function w(e,t,o,a){const{gen:i,schema:u,data:d,allErrors:f,opts:p,self:h}=e,{RULES:m}=h;function v(c){(0,r.shouldUseGroup)(u,c)&&(c.type?(i.if((0,n.checkDataType)(c.type,d,p.strictNumbers)),S(e,c),1===t.length&&t[0]===c.type&&o&&(i.else(),(0,n.reportTypeError)(e)),i.endIf()):S(e,c),f||i.if(s._`${l.default.errors} === ${a||0}`))}!u.$ref||!p.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(u,m)?(p.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{_(e.dataTypes,t)||$(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)_(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&$(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const o in n){const a=n[o];if("object"==typeof a&&(0,r.shouldUseRule)(e.schema,a)){const{type:r}=a.definition;r.length&&!r.some((e=>x(t,e)))&&$(e,`missing type "${r.join(",")}" for keyword "${o}"`)}}}(e,e.dataTypes)}(e,t),i.block((()=>{for(const e of m.rules)v(e);v(m.post)}))):i.block((()=>E(e,"$ref",m.all.$ref.definition)))}function S(e,t){const{gen:n,schema:a,opts:{useDefaults:i}}=e;i&&(0,o.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,r.shouldUseRule)(a,n)&&E(e,n.keyword,n.definition,t.type)}))}function x(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function _(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function $(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,c.checkStrictMode)(e,t,e.opts.strictTypes)}lA.validateFunctionCode=function(t){v(t)&&(g(t),m(t))?function(e){const{schema:t,opts:r,gen:n}=e;f(e,(()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,c.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(l.default.vErrors,null),n.let(l.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",s._`${r}.evaluated`),t.if(s._`${e.evaluated}.dynamicProps`,(()=>t.assign(s._`${e.evaluated}.props`,s._`undefined`))),t.if(s._`${e.evaluated}.dynamicItems`,(()=>t.assign(s._`${e.evaluated}.items`,s._`undefined`)))}(e),y(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(s._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(s._`new ${o}(${l.default.vErrors})`))):(t.assign(s._`${n}.errors`,l.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof s.Name&&e.assign(s._`${t}.props`,r);n instanceof s.Name&&e.assign(s._`${t}.items`,n)}(e),t.return(s._`${l.default.errors} === 0`))}(e)}))}(t):f(t,(()=>(0,e.topBoolOrEmptySchema)(t)))};class k{constructor(e,t,r){if((0,a.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",O(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,r){this.failResult((0,s.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,s.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(s._`${t} !== undefined && (${(0,s.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?d.reportExtraError:d.reportError)(this,this.def.error,t)}$dataError(){(0,d.reportError)(this,this.def.$dataError||d.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,d.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=s.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=s.nil,t=s.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if((0,s.or)(s._`${n} === undefined`,t)),e!==s.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==s.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:o,it:a}=this;return(0,s.or)(function(){if(r.length){if(!(t instanceof s.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return s._`${(0,n.checkDataTypes)(e,t,a.opts.strictNumbers,n.DataType.Wrong)}`}return s.nil}(),function(){if(o.validateSchema){const r=e.scopeValue("validate$data",{ref:o.validateSchema});return s._`!${r}(${t})`}return s.nil}())}subschema(e,t){const r=(0,i.getSubschema)(this.it,e);(0,i.extendSubschemaData)(r,this.it,e),(0,i.extendSubschemaMode)(r,e);const n={...this.it,...r,items:void 0,props:void 0};return h(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=c.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=c.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,s.Name))),!0}}function E(e,t,r,n){const o=new k(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,a.funcKeywordCode)(o,r):"macro"in r?(0,a.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,a.funcKeywordCode)(o,r)}lA.KeywordCxt=k;const j=/^\/(?:[^~]|~0|~1)*$/,C=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function O(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(""===e)return l.default.rootData;if("/"===e[0]){if(!j.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=l.default.rootData}else{const i=C.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(o=i[2],"#"===o){if(s>=t)throw new Error(d("property/index",s));return n[t-s]}if(s>t)throw new Error(d("data",s));if(a=r[t-s],!o)return a}let i=a;const u=o.split("/");for(const e of u)e&&(a=s._`${a}${(0,s.getProperty)((0,c.unescapeJsonPointer)(e))}`,i=s._`${i} && ${a}`);return i;function d(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}return lA.getData=O,lA}FA.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=XA(e[r]||t),a={"":o},i=QA(n,o,!1),s={},l=new Set;return WA(e,{allKeys:!0},((e,t,n,o)=>{if(void 0===o)return;const d=i+t;let f=a[o];function p(t){const r=this.opts.uriResolver.resolve;if(t=XA(f?r(f,t):t),l.has(t))throw c(t);l.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?u(e,n.schema,t):t!==XA(d)&&("#"===t[0]?(u(e,s[t],t),s[t]=e):this.refs[t]=d),t}function h(e){if("string"==typeof e){if(!ZA.test(e))throw new Error(`invalid anchor "${e}"`);p.call(this,`#${e}`)}}"string"==typeof e[r]&&(f=p.call(this,e[r])),h.call(this,e.$anchor),h.call(this,e.$dynamicAnchor),a[t]=f})),s;function u(e,t,r){if(void 0!==t&&!UA(e,t))throw c(r)}function c(e){return new Error(`reference "${e}" resolves to more than one schema`)}};var rI,nI={};function oI(){if(rI)return nI;rI=1,Object.defineProperty(nI,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return nI.default=e,nI}var aI,iI={};function sI(){if(aI)return iI;aI=1,Object.defineProperty(iI,"__esModule",{value:!0});const e=FA;class t extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,e.resolveUrl)(t,r,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(t,this.missingRef))}}return iI.default=t,iI}var lI={};Object.defineProperty(lI,"__esModule",{value:!0}),lI.resolveSchema=lI.getCompilingSchema=lI.resolveRef=lI.compileSchema=lI.SchemaEnv=void 0;const uI=dA,cI=oI(),dI=bA(),fI=FA,pI=hA,hI=tI();class mI{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,fI.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function vI(e){const t=yI.call(this,e);if(t)return t;const r=(0,fI.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,i=new uI.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let s;e.$async&&(s=i.scopeValue("Error",{ref:cI.default,code:uI._`require("ajv/dist/runtime/validation_error").default`}));const l=i.scopeName("validate");e.validateName=l;const u={gen:i,allErrors:this.opts.allErrors,data:dI.default.data,parentData:dI.default.parentData,parentDataProperty:dI.default.parentDataProperty,dataNames:[dI.default.data],dataPathArr:[uI.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,uI.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:uI.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:uI._`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,hI.validateFunctionCode)(u),i.optimize(this.opts.code.optimize);const t=i.toString();c=`${i.scopeRefs(dI.default.scope)}return ${t}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const r=new Function(`${dI.default.self}`,`${dI.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:l,validateCode:t,scopeValues:i._values}),this.opts.unevaluated){const{props:e,items:t}=u;r.evaluated={props:e instanceof uI.Name?void 0:e,items:t instanceof uI.Name?void 0:t,dynamicProps:e instanceof uI.Name,dynamicItems:t instanceof uI.Name},r.source&&(r.source.evaluated=(0,uI.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),t}finally{this._compilations.delete(e)}}function gI(e){return(0,fI.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:vI.call(this,e)}function yI(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function bI(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||wI.call(this,e,t)}function wI(e,t){const r=this.opts.uriResolver.parse(t),n=(0,fI._getFullPath)(this.opts.uriResolver,r);let o=(0,fI.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return xI.call(this,r,e);const a=(0,fI.normalizeId)(n),i=this.refs[a]||this.schemas[a];if("string"==typeof i){const t=wI.call(this,e,i);if("object"!=typeof(null==t?void 0:t.schema))return;return xI.call(this,r,t)}if("object"==typeof(null==i?void 0:i.schema)){if(i.validate||vI.call(this,i),a===(0,fI.normalizeId)(t)){const{schema:t}=i,{schemaId:r}=this.opts,n=t[r];return n&&(o=(0,fI.resolveUrl)(this.opts.uriResolver,o,n)),new mI({schema:t,schemaId:r,root:e,baseId:o})}return xI.call(this,r,i)}}lI.SchemaEnv=mI,lI.compileSchema=vI,lI.resolveRef=function(e,t,r){var n;r=(0,fI.resolveUrl)(this.opts.uriResolver,t,r);const o=e.refs[r];if(o)return o;let a=bI.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:i}=this.opts;o&&(a=new mI({schema:o,schemaId:i,root:e,baseId:t}))}return void 0!==a?e.refs[r]=gI.call(this,a):void 0},lI.getCompilingSchema=yI,lI.resolveSchema=wI;const SI=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function xI(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,pI.unescapeFragment)(n)];if(void 0===e)return;const o="object"==typeof(r=e)&&r[this.opts.schemaId];!SI.has(n)&&o&&(t=(0,fI.resolveUrl)(this.opts.uriResolver,t,o))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,pI.schemaHasRulesButRef)(r,this.RULES)){const e=(0,fI.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=wI.call(this,n,e)}const{schemaId:i}=this.opts;return a=a||new mI({schema:r,schemaId:i,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var _I={$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},$I={};Object.defineProperty($I,"__esModule",{value:!0});const kI=PP;kI.code='require("ajv/dist/runtime/uri").default',$I.default=kI,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=tI();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=dA;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 n=oI(),o=sI(),a=xA,i=lI,s=dA,l=FA,u=SA,c=hA,d=_I,f=$I,p=(e,t)=>new RegExp(e,t);p.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],m=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.'};function y(e){var t,r,n,o,a,i,s,l,u,c,d,h,m,v,g,y,b,w,S,x,_,$,k,E,j;const C=e.strict,O=null===(t=e.code)||void 0===t?void 0:t.optimize,P=!0===O||void 0===O?1:O||0,N=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:p,R=null!==(o=e.uriResolver)&&void 0!==o?o:f.default;return{strictSchema:null===(i=null!==(a=e.strictSchema)&&void 0!==a?a:C)||void 0===i||i,strictNumbers:null===(l=null!==(s=e.strictNumbers)&&void 0!==s?s:C)||void 0===l||l,strictTypes:null!==(c=null!==(u=e.strictTypes)&&void 0!==u?u:C)&&void 0!==c?c:"log",strictTuples:null!==(h=null!==(d=e.strictTuples)&&void 0!==d?d:C)&&void 0!==h?h:"log",strictRequired:null!==(v=null!==(m=e.strictRequired)&&void 0!==m?m:C)&&void 0!==v&&v,code:e.code?{...e.code,optimize:P,regExp:N}:{optimize:P,regExp:N},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(b=e.meta)||void 0===b||b,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(S=e.inlineRefs)||void 0===S||S,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===(_=e.addUsedSchema)||void 0===_||_,validateSchema:null===($=e.validateSchema)||void 0===$||$,validateFormats:null===(k=e.validateFormats)||void 0===k||k,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(j=e.int32range)||void 0===j||j,uriResolver:R}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...y(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new s.ValueScope({scope:{},prefixes:m,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,g,e,"DEPRECATED","warn"),this._metaOpts=k.call(this),e.formats&&_.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&$.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),x.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=d;"id"===r&&(n={...d},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||i.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function i(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await l.call(this,t.missingSchema),i.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function l(e){const r=await u.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e){const{schemaId:t}=this.opts;if(o=e[t],void 0!==o&&"string"!=typeof o)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new i.SchemaEnv({schema:{},schemaId:r});if(t=i.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(C.call(this,r,t),!t)return(0,c.eachItem)(r,(e=>O.call(this,e))),this;N.call(this,t);const n={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,c.eachItem)(r,0===n.type.length?e=>O.call(this,e,n):e=>n.type.forEach((t=>O.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=T(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;const{schemaId:s}=this.opts;if("object"==typeof e)a=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(void 0!==u)return u;r=(0,l.normalizeId)(a||r);const c=l.getSchemaRefs.call(this,e,r);return u=new i.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:r,localRefs:c}),this._cache.set(u.schema,u),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=u),n&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):i.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function S(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function x(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function _(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function $(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function k(){const e={...this.opts};for(const t of h)delete e[t];return e}e.default=b,b.ValidationError=n.default,b.MissingRefError=o.default;const E={log(){},warn(){},error(){}};const j=/^[a-z_$][a-z0-9_$:-]*$/i;function C(e,t){const{RULES:r}=this;if((0,c.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!j.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function O(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((({type:e})=>e===r));if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?P.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function P(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function N(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const R={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,R]}}}(sA);var EI={},jI={},CI={};Object.defineProperty(CI,"__esModule",{value:!0});const OI={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};CI.default=OI;var PI={};Object.defineProperty(PI,"__esModule",{value:!0}),PI.callRef=PI.getValidate=void 0;const NI=sI(),RI=TA(),TI=dA,AI=bA(),II=lI,MI=hA,FI={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:a,validateName:i,opts:s,self:l}=n,{root:u}=a;if(("#"===r||"#/"===r)&&o===u.baseId)return function(){if(a===u)return DI(e,i,a,a.$async);const r=t.scopeValue("root",{ref:u});return DI(e,TI._`${r}.validate`,u,u.$async)}();const c=II.resolveRef.call(l,u,o,r);if(void 0===c)throw new NI.default(n.opts.uriResolver,o,r);return c instanceof II.SchemaEnv?function(t){const r=zI(e,t);DI(e,r,t,t.$async)}(c):function(n){const o=t.scopeValue("schema",!0===s.code.source?{ref:n,code:(0,TI.stringify)(n)}:{ref:n}),a=t.name("valid"),i=e.subschema({schema:n,dataTypes:[],schemaPath:TI.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(i),e.ok(a)}(c)}};function zI(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):TI._`${r.scopeValue("wrapper",{ref:t})}.validate`}function DI(e,t,r,n){const{gen:o,it:a}=e,{allErrors:i,schemaEnv:s,opts:l}=a,u=l.passContext?AI.default.this:TI.nil;function c(e){const t=TI._`${e}.errors`;o.assign(AI.default.vErrors,TI._`${AI.default.vErrors} === null ? ${t} : ${AI.default.vErrors}.concat(${t})`),o.assign(AI.default.errors,TI._`${AI.default.vErrors}.length`)}function d(e){var t;if(!a.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(n&&!n.dynamicProps)void 0!==n.props&&(a.props=MI.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",TI._`${e}.evaluated.props`);a.props=MI.mergeEvaluated.props(o,t,a.props,TI.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=MI.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",TI._`${e}.evaluated.items`);a.items=MI.mergeEvaluated.items(o,t,a.items,TI.Name)}}n?function(){if(!s.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(TI._`await ${(0,RI.callValidateCode)(e,t,u)}`),d(t),i||o.assign(r,!0)}),(e=>{o.if(TI._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),c(e),i||o.assign(r,!1)})),e.ok(r)}():e.result((0,RI.callValidateCode)(e,t,u),(()=>d(t)),(()=>c(t)))}PI.getValidate=zI,PI.callRef=DI,PI.default=FI,Object.defineProperty(jI,"__esModule",{value:!0});const LI=PI,BI=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",CI.default,LI.default];jI.default=BI;var VI={},UI={};Object.defineProperty(UI,"__esModule",{value:!0});const WI=dA,qI=WI.operators,KI={maximum:{okStr:"<=",ok:qI.LTE,fail:qI.GT},minimum:{okStr:">=",ok:qI.GTE,fail:qI.LT},exclusiveMaximum:{okStr:"<",ok:qI.LT,fail:qI.GTE},exclusiveMinimum:{okStr:">",ok:qI.GT,fail:qI.LTE}},HI={message:({keyword:e,schemaCode:t})=>WI.str`must be ${KI[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>WI._`{comparison: ${KI[e].okStr}, limit: ${t}}`},GI={keyword:Object.keys(KI),type:"number",schemaType:"number",$data:!0,error:HI,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(WI._`${r} ${KI[t].fail} ${n} || isNaN(${r})`)}};UI.default=GI;var QI={};Object.defineProperty(QI,"__esModule",{value:!0});const JI=dA,YI={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>JI.str`must be multiple of ${e}`,params:({schemaCode:e})=>JI._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,i=t.let("res"),s=a?JI._`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:JI._`${i} !== parseInt(${i})`;e.fail$data(JI._`(${n} === 0 || (${i} = ${r}/${n}, ${s}))`)}};QI.default=YI;var XI={},ZI={};function eM(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}Object.defineProperty(ZI,"__esModule",{value:!0}),ZI.default=eM,eM.code='require("ajv/dist/runtime/ucs2length").default',Object.defineProperty(XI,"__esModule",{value:!0});const tM=dA,rM=hA,nM=ZI,oM={message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return tM.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>tM._`{limit: ${e}}`},aM={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:oM,code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?tM.operators.GT:tM.operators.LT,i=!1===o.opts.unicode?tM._`${r}.length`:tM._`${(0,rM.useFunc)(e.gen,nM.default)}(${r})`;e.fail$data(tM._`${i} ${a} ${n}`)}};XI.default=aM;var iM={};Object.defineProperty(iM,"__esModule",{value:!0});const sM=TA(),lM=dA,uM={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>lM.str`must match pattern "${e}"`,params:({schemaCode:e})=>lM._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,i=a.opts.unicodeRegExp?"u":"",s=r?lM._`(new RegExp(${o}, ${i}))`:(0,sM.usePattern)(e,n);e.fail$data(lM._`!${s}.test(${t})`)}};iM.default=uM;var cM={};Object.defineProperty(cM,"__esModule",{value:!0});const dM=dA,fM={message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return dM.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>dM._`{limit: ${e}}`},pM={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:fM,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?dM.operators.GT:dM.operators.LT;e.fail$data(dM._`Object.keys(${r}).length ${o} ${n}`)}};cM.default=pM;var hM={};Object.defineProperty(hM,"__esModule",{value:!0});const mM=TA(),vM=dA,gM=hA,yM={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>vM.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>vM._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:i}=e,{opts:s}=i;if(!a&&0===r.length)return;const l=r.length>=s.loopRequired;if(i.allErrors?function(){if(l||a)e.block$data(vM.nil,u);else for(const t of r)(0,mM.checkReportMissingProp)(e,t)}():function(){const i=t.let("missing");if(l||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,(0,mM.propertyInData)(t,o,r,s.ownProperties)),t.if((0,vM.not)(a),(()=>{e.error(),t.break()}))}),vM.nil)}(i,r))),e.ok(r)}else t.if((0,mM.checkMissingProp)(e,r,i)),(0,mM.reportMissingProp)(e,i),t.else()}(),s.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${i.schemaEnv.baseId+i.errSchemaPath}" (strictRequired)`;(0,gM.checkStrictMode)(i,t,i.opts.strictRequired)}}function u(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if((0,mM.noPropertyInData)(t,o,r,s.ownProperties),(()=>e.error()))}))}}};hM.default=yM;var bM={};Object.defineProperty(bM,"__esModule",{value:!0});const wM=dA,SM={message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return wM.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>wM._`{limit: ${e}}`},xM={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:SM,code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?wM.operators.GT:wM.operators.LT;e.fail$data(wM._`${r}.length ${o} ${n}`)}};bM.default=xM;var _M={},$M={};Object.defineProperty($M,"__esModule",{value:!0});const kM=VO;kM.code='require("ajv/dist/runtime/equal").default',$M.default=kM,Object.defineProperty(_M,"__esModule",{value:!0});const EM=SA,jM=dA,CM=hA,OM=$M,PM={message:({params:{i:e,j:t}})=>jM.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>jM._`{i: ${e}, j: ${t}}`},NM={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:PM,code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:a,schemaCode:i,it:s}=e;if(!n&&!o)return;const l=t.let("valid"),u=a.items?(0,EM.getSchemaTypes)(a.items):[];function c(n,o){const a=t.name("item"),i=(0,EM.checkDataTypes)(u,a,s.opts.strictNumbers,EM.DataType.Wrong),c=t.const("indices",jM._`{}`);t.for(jM._`;${n}--;`,(()=>{t.let(a,jM._`${r}[${n}]`),t.if(i,jM._`continue`),u.length>1&&t.if(jM._`typeof ${a} == "string"`,jM._`${a} += "_"`),t.if(jM._`typeof ${c}[${a}] == "number"`,(()=>{t.assign(o,jM._`${c}[${a}]`),e.error(),t.assign(l,!1).break()})).code(jM._`${c}[${a}] = ${n}`)}))}function d(n,o){const a=(0,CM.useFunc)(t,OM.default),i=t.name("outer");t.label(i).for(jM._`;${n}--;`,(()=>t.for(jM._`${o} = ${n}; ${o}--;`,(()=>t.if(jM._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(l,!1).break(i)}))))))}e.block$data(l,(function(){const n=t.let("i",jM._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(l,!0),t.if(jM._`${n} > 1`,(()=>(u.length>0&&!u.some((e=>"object"===e||"array"===e))?c:d)(n,o)))}),jM._`${i} === false`),e.ok(l)}};_M.default=NM;var RM={};Object.defineProperty(RM,"__esModule",{value:!0});const TM=dA,AM=hA,IM=$M,MM={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>TM._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:o,schema:a}=e;n||a&&"object"==typeof a?e.fail$data(TM._`!${(0,AM.useFunc)(t,IM.default)}(${r}, ${o})`):e.fail(TM._`${a} !== ${r}`)}};RM.default=MM;var FM={};Object.defineProperty(FM,"__esModule",{value:!0});const zM=dA,DM=hA,LM=$M,BM={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>zM._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:i}=e;if(!n&&0===o.length)throw new Error("enum must have non-empty array");const s=o.length>=i.opts.loopEnum;let l;const u=()=>null!=l?l:l=(0,DM.useFunc)(t,LM.default);let c;if(s||n)c=t.let("valid"),e.block$data(c,(function(){t.assign(c,!1),t.forOf("v",a,(e=>t.if(zM._`${u()}(${r}, ${e})`,(()=>t.assign(c,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);c=(0,zM.or)(...o.map(((t,n)=>function(e,t){const n=o[t];return"object"==typeof n&&null!==n?zM._`${u()}(${r}, ${e}[${t}])`:zM._`${r} === ${n}`}(e,n))))}e.pass(c)}};FM.default=BM,Object.defineProperty(VI,"__esModule",{value:!0});const VM=QI,UM=XI,WM=iM,qM=cM,KM=hM,HM=bM,GM=_M,QM=RM,JM=FM,YM=[UI.default,VM.default,UM.default,WM.default,qM.default,KM.default,HM.default,GM.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},QM.default,JM.default];VI.default=YM;var XM={},ZM={};Object.defineProperty(ZM,"__esModule",{value:!0}),ZM.validateAdditionalItems=void 0;const eF=dA,tF=hA,rF={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>eF.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>eF._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?nF(e,n):(0,tF.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function nF(e,t){const{gen:r,schema:n,data:o,keyword:a,it:i}=e;i.items=!0;const s=r.const("len",eF._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(eF._`${s} <= ${t.length}`);else if("object"==typeof n&&!(0,tF.alwaysValidSchema)(i,n)){const n=r.var("valid",eF._`${s} <= ${t.length}`);r.if((0,eF.not)(n),(()=>function(n){r.forRange("i",t.length,s,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:tF.Type.Num},n),i.allErrors||r.if((0,eF.not)(n),(()=>r.break()))}))}(n))),e.ok(n)}}ZM.validateAdditionalItems=nF,ZM.default=rF;var oF={},aF={};Object.defineProperty(aF,"__esModule",{value:!0}),aF.validateTuple=void 0;const iF=dA,sF=hA,lF=TA(),uF={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return cF(e,"additionalItems",t);r.items=!0,(0,sF.alwaysValidSchema)(r,t)||e.ok((0,lF.validateArray)(e))}};function cF(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:i,it:s}=e;!function(e){const{opts:n,errSchemaPath:o}=s,a=r.length,l=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!l){const e=`"${i}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,sF.checkStrictMode)(s,e,n.strictTuples)}}(o),s.opts.unevaluated&&r.length&&!0!==s.items&&(s.items=sF.mergeEvaluated.items(n,r.length,s.items));const l=n.name("valid"),u=n.const("len",iF._`${a}.length`);r.forEach(((t,r)=>{(0,sF.alwaysValidSchema)(s,t)||(n.if(iF._`${u} > ${r}`,(()=>e.subschema({keyword:i,schemaProp:r,dataProp:r},l))),e.ok(l))}))}aF.validateTuple=cF,aF.default=uF,Object.defineProperty(oF,"__esModule",{value:!0});const dF=aF,fF={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,dF.validateTuple)(e,"items")};oF.default=fF;var pF={};Object.defineProperty(pF,"__esModule",{value:!0});const hF=dA,mF=hA,vF=TA(),gF=ZM,yF={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>hF.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>hF._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,(0,mF.alwaysValidSchema)(n,t)||(o?(0,gF.validateAdditionalItems)(e,o):e.ok((0,vF.validateArray)(e)))}};pF.default=yF;var bF={};Object.defineProperty(bF,"__esModule",{value:!0});const wF=dA,SF=hA,xF={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?wF.str`must contain at least ${e} valid item(s)`:wF.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?wF._`{minContains: ${e}}`:wF._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let i,s;const{minContains:l,maxContains:u}=n;a.opts.next?(i=void 0===l?1:l,s=u):i=1;const c=t.const("len",wF._`${o}.length`);if(e.setParams({min:i,max:s}),void 0===s&&0===i)return void(0,SF.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&i>s)return(0,SF.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,SF.alwaysValidSchema)(a,r)){let t=wF._`${c} >= ${i}`;return void 0!==s&&(t=wF._`${t} && ${c} <= ${s}`),void e.pass(t)}a.items=!0;const d=t.name("valid");function f(){const e=t.name("_valid"),r=t.let("count",0);p(e,(()=>t.if(e,(()=>function(e){t.code(wF._`${e}++`),void 0===s?t.if(wF._`${e} >= ${i}`,(()=>t.assign(d,!0).break())):(t.if(wF._`${e} > ${s}`,(()=>t.assign(d,!1).break())),1===i?t.assign(d,!0):t.if(wF._`${e} >= ${i}`,(()=>t.assign(d,!0))))}(r)))))}function p(r,n){t.forRange("i",0,c,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:SF.Type.Num,compositeRule:!0},r),n()}))}void 0===s&&1===i?p(d,(()=>t.if(d,(()=>t.break())))):0===i?(t.let(d,!0),void 0!==s&&t.if(wF._`${o}.length > 0`,f)):(t.let(d,!1),f()),e.result(d,(()=>e.reset()))}};bF.default=xF;var _F={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=dA,r=hA,n=TA();e.error={message:({params:{property:e,depsCount:r,deps:n}})=>{const o=1===r?"property":"properties";return t.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
54
54
  missingProperty: ${o},
55
55
  depsCount: ${r},
56
- deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);a(e,t),i(e,r)}};function a(e,r=e.schema){const{gen:o,data:a,it:i}=e;if(0===Object.keys(r).length)return;const s=o.let("missing");for(const l in r){const u=r[l];if(0===u.length)continue;const c=(0,n.propertyInData)(o,a,l,i.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),i.allErrors?o.if(c,(()=>{for(const t of u)(0,n.checkReportMissingProp)(e,t)})):(o.if(t._`${c} && (${(0,n.checkMissingProp)(e,u,s)})`),(0,n.reportMissingProp)(e,s),o.else())}}function i(e,t=e.schema){const{gen:o,data:a,keyword:i,it:s}=e,l=o.name("valid");for(const u in t)(0,r.alwaysValidSchema)(s,t[u])||(o.if((0,n.propertyInData)(o,a,u,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:u},l);e.mergeValidEvaluated(t,l)}),(()=>o.var(l,!0))),e.ok(l))}e.validatePropertyDeps=a,e.validateSchemaDeps=i,e.default=o}(bF);var wF={};Object.defineProperty(wF,"__esModule",{value:!0});const SF=sA,xF=cA,_F={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>SF._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,xF.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,SF.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};wF.default=_F;var $F={};Object.defineProperty($F,"__esModule",{value:!0});const kF=OA(),EF=sA,jF=mA(),CF=cA,OF={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>EF._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,"all"!==l.removeAdditional&&(0,CF.alwaysValidSchema)(i,r))return;const u=(0,kF.allSchemaProperties)(n.properties),c=(0,kF.allSchemaProperties)(n.patternProperties);function d(e){t.code(EF._`delete ${o}[${e}]`)}function f(n){if("all"===l.removeAdditional||l.removeAdditional&&!1===r)d(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(s||t.break());if("object"==typeof r&&!(0,CF.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,EF.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,EF.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:CF.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",o,(r=>{u.length||c.length?t.if(function(r){let o;if(u.length>8){const e=(0,CF.schemaRefOrVal)(i,n.properties,"properties");o=(0,kF.isOwnProperty)(t,e,r)}else o=u.length?(0,EF.or)(...u.map((e=>EF._`${r} === ${e}`))):EF.nil;return c.length&&(o=(0,EF.or)(o,...c.map((t=>EF._`${(0,kF.usePattern)(e,t)}.test(${r})`)))),(0,EF.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(EF._`${a} === ${jF.default.errors}`)}};$F.default=OF;var PF={};Object.defineProperty(PF,"__esModule",{value:!0});const NF=YA(),RF=OA(),TF=cA,AF=$F,IF={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;"all"===a.opts.removeAdditional&&void 0===n.additionalProperties&&AF.default.code(new NF.KeywordCxt(a,AF.default,"additionalProperties"));const i=(0,RF.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=TF.mergeEvaluated.props(t,(0,TF.toHash)(i),a.props));const s=i.filter((e=>!(0,TF.alwaysValidSchema)(a,r[e])));if(0===s.length)return;const l=t.name("valid");for(const r of s)u(r)?c(r):(t.if((0,RF.propertyInData)(t,o,r,a.opts.ownProperties)),c(r),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(l);function u(e){return a.opts.useDefaults&&!a.compositeRule&&void 0!==r[e].default}function c(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};PF.default=IF;var MF={};Object.defineProperty(MF,"__esModule",{value:!0});const FF=OA(),zF=sA,DF=cA,LF=cA,BF={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,FF.allSchemaProperties)(r),l=s.filter((e=>(0,DF.alwaysValidSchema)(a,r[e])));if(0===s.length||l.length===s.length&&(!a.opts.unevaluated||!0===a.props))return;const u=i.strictSchema&&!i.allowMatchingProperties&&o.properties,c=t.name("valid");!0===a.props||a.props instanceof zF.Name||(a.props=(0,LF.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in u)new RegExp(e).test(t)&&(0,DF.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(zF._`${(0,FF.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:LF.Type.Str},c),a.opts.unevaluated&&!0!==d?t.assign(zF._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,zF.not)(c),(()=>t.break()))}))}))}!function(){for(const e of s)u&&f(e),a.allErrors?p(e):(t.var(c,!0),p(e),t.if(c))}()}};MF.default=BF;var VF={};Object.defineProperty(VF,"__esModule",{value:!0});const UF=cA,WF={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,UF.alwaysValidSchema)(n,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};VF.default=WF;var qF={};Object.defineProperty(qF,"__esModule",{value:!0});const KF={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:OA().validateUnion,error:{message:"must match a schema in anyOf"}};qF.default=KF;var HF={};Object.defineProperty(HF,"__esModule",{value:!0});const GF=sA,QF=cA,JF={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>GF._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const a=r,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block((function(){a.forEach(((r,n)=>{let a;(0,QF.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(GF._`${l} && ${i}`).assign(i,!1).assign(s,GF._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,GF.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};HF.default=JF;var YF={};Object.defineProperty(YF,"__esModule",{value:!0});const XF=cA,ZF={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if((0,XF.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};YF.default=ZF;var ez={};Object.defineProperty(ez,"__esModule",{value:!0});const tz=sA,rz=cA,nz={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>tz.str`must match "${e.ifClause}" schema`,params:({params:e})=>tz._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,rz.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=oz(n,"then"),a=oz(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(s,l("then",r),l("else",r))}else o?t.if(s,l("then")):t.if((0,tz.not)(s),l("else"));function l(r,n){return()=>{const o=e.subschema({keyword:r},s);t.assign(i,s),e.mergeValidEvaluated(o,i),n?t.assign(n,tz._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function oz(e,t){const r=e.schema[t];return void 0!==r&&!(0,rz.alwaysValidSchema)(e,r)}ez.default=nz;var az={};Object.defineProperty(az,"__esModule",{value:!0});const iz=cA,sz={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,iz.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};az.default=sz,Object.defineProperty(GM,"__esModule",{value:!0});const lz=QM,uz=eF,cz=tF,dz=uF,fz=mF,pz=bF,hz=wF,mz=$F,vz=PF,gz=MF,yz=VF,bz=qF,wz=HF,Sz=YF,xz=ez,_z=az;GM.default=function(e=!1){const t=[yz.default,bz.default,wz.default,Sz.default,xz.default,_z.default,hz.default,mz.default,pz.default,vz.default,gz.default];return e?t.push(uz.default,dz.default):t.push(lz.default,cz.default),t.push(fz.default),t};var $z={},kz={};Object.defineProperty(kz,"__esModule",{value:!0});const Ez=sA,jz={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>Ez.str`must match format "${e}"`,params:({schemaCode:e})=>Ez._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:u,schemaEnv:c,self:d}=s;l.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),a=r.const("fDef",Ez._`${o}[${i}]`),s=r.let("fType"),u=r.let("format");r.if(Ez._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,Ez._`${a}.type || "string"`).assign(u,Ez._`${a}.validate`)),(()=>r.assign(s,Ez._`"string"`).assign(u,a))),e.fail$data((0,Ez.or)(!1===l.strictSchema?Ez.nil:Ez._`${i} && !${u}`,function(){const e=c.$async?Ez._`(${a}.async ? await ${u}(${n}) : ${u}(${n}))`:Ez._`${u}(${n})`,r=Ez._`(typeof ${u} == "function" ? ${e} : ${u}.test(${n}))`;return Ez._`${u} && ${u} !== true && ${s} === ${t} && !${r}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===o)return;const[i,s,f]=function(e){const t=e instanceof RegExp?(0,Ez.regexpCode)(e):l.code.formats?Ez._`${l.code.formats}${(0,Ez.getProperty)(a)}`:void 0,n=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,Ez._`${n}.validate`];return["string",e,n]}(o);i===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!c.$async)throw new Error("async format in sync schema");return Ez._`await ${f}(${n})`}return"function"==typeof s?Ez._`${f}(${n})`:Ez._`${f}.test(${n})`}())}())}};kz.default=jz,Object.defineProperty($z,"__esModule",{value:!0});const Cz=[kz.default];$z.default=Cz;var Oz={};Object.defineProperty(Oz,"__esModule",{value:!0}),Oz.contentVocabulary=Oz.metadataVocabulary=void 0,Oz.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Oz.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(xI,"__esModule",{value:!0});const Pz=zI,Nz=GM,Rz=$z,Tz=Oz,Az=[_I.default,Pz.default,(0,Nz.default)(),Rz.default,Tz.metadataVocabulary,Tz.contentVocabulary];xI.default=Az;var Iz={},Mz={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(Mz),Object.defineProperty(Iz,"__esModule",{value:!0});const Fz=sA,zz=Mz,Dz=oI,Lz=cA,Bz={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===zz.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>Fz._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:n,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if("string"!=typeof s)throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),u=t.const("tag",Fz._`${r}${(0,Fz.getProperty)(s)}`);function c(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,Fz.Name),n}t.if(Fz._`typeof ${u} == "string"`,(()=>function(){const r=function(){var e;const t={},r=l(o);let n=!0;for(let t=0;t<i.length;t++){let o=i[t];(null==o?void 0:o.$ref)&&!(0,Lz.schemaHasRulesButRef)(o,a.self.RULES)&&(o=Dz.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof Dz.SchemaEnv&&(o=o.schema));const c=null===(e=null==o?void 0:o.properties)||void 0===e?void 0:e[s];if("object"!=typeof c)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);n=n&&(r||l(o)),u(c,t)}if(!n)throw new Error(`discriminator: "${s}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(s)}function u(e,t){if(e.const)c(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`);for(const r of e.enum)c(r,t)}}function c(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${s}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(Fz._`${u} === ${e}`),t.assign(l,c(r[e]));t.else(),e.error(!1,{discrError:zz.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:zz.DiscrError.Tag,tag:u,tagName:s}))),e.ok(l)}};Iz.default=Bz;var Vz={$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};!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=void 0;const r=nA,n=xI,o=Iz,a=Vz,i=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=YA();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=sA;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 d=eI();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=nI();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(rA,tA),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=tA,r=sA,n=r.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},a={message:({keyword:e,schemaCode:t})=>r.str`should be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(e){const{gen:n,data:a,schemaCode:i,keyword:s,it:l}=e,{opts:u,self:c}=l;if(!u.validateFormats)return;const d=new t.KeywordCxt(l,c.RULES.all.format.definition,"format");function f(e){return r._`${e}.compare(${a}, ${i}) ${o[s].fail} 0`}d.$data?function(){const t=n.scopeValue("formats",{ref:c.formats,code:u.code.formats}),o=n.const("fmt",r._`${t}[${d.schemaCode}]`);e.fail$data(r.or(r._`typeof ${o} != "object"`,r._`${o} instanceof RegExp`,r._`typeof ${o}.compare != "function"`,f(o)))}():function(){const t=d.schema,o=c.formats[t];if(!o||!0===o)return;if("object"!=typeof o||o instanceof RegExp||"function"!=typeof o.compare)throw new Error(`"${s}": format "${t}" does not define "compare" function`);const a=n.scopeValue("formats",{key:t,ref:o,code:u.code.formats?r._`${u.code.formats}${r.getProperty(t)}`:void 0});e.fail$data(f(a))}()},dependencies:["format"]};e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)}(eA),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=ZT,n=eA,o=sA,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(e,t={keywords:!0})=>{if(Array.isArray(t))return l(e,t,r.fullFormats,a),e;const[o,s]="fast"===t.mode?[r.fastFormats,i]:[r.fullFormats,a];return l(e,t.formats||r.formatNames,o,s),t.keywords&&n.default(e),e};function l(e,t,r,n){var a,i;null!==(a=(i=e.opts.code).formats)&&void 0!==a||(i.formats=o._`require("ajv-formats/dist/formats").${n}`);for(const n of t)e.addFormat(n,r[n])}s.get=(e,t="full")=>{const n=("fast"===t?r.fastFormats:r.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n},e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s}(XT,YT);var Uz=n(YT);const Wz={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0},qz=/^(#?([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*\)))$/,Kz=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Hz(e,t,r,n,o,a,i){const{validationError:s}=t;let l=function(e=[],t){return e.map((e=>{const{instancePath:r,keyword:n,params:o,schemaPath:a,parentSchema:i}=e,s=ov(e,["instancePath","keyword","params","schemaPath","parentSchema"]);let{message:l=""}=s,u=r.replace(/\//g,"."),c=`${u} ${l}`.trim();if("missingProperty"in o){u=u?`${u}.${o.missingProperty}`:o.missingProperty;const e=o.missingProperty,r=_d(Lv(t,`${u.replace(/^\./,"")}`)).title;if(r)l=l.replace(e,r);else{const t=Lv(i,[md,e,"title"]);t&&(l=l.replace(e,t))}c=l}else{const e=_d(Lv(t,`${u.replace(/^\./,"")}`)).title;if(e)c=`'${e}' ${l}`.trim();else{const e=null==i?void 0:i.title;e&&(c=`'${e}' ${l}`.trim())}}return{name:n,property:u,message:l,params:o,stack:c,schemaPath:a}}))}(t.errors,i);s&&(l=[...l,{stack:s.message}]),"function"==typeof a&&(l=a(l,i));let u=function(e){const t=new Bj;return e.length&&e.forEach((e=>{const{property:r,message:n}=e,o="."===r?[]:GC(r);o.length>0&&""===o[0]&&o.splice(0,1),n&&t.addErrors(n,o)})),t.ErrorSchema}(l);if(s&&(u=Object.assign(Object.assign({},u),{$schema:{__errors:[s.message]}})),"function"!=typeof o)return{errors:l,errorSchema:u};const c=_j(e,n,r,n,!0);return YC({errors:l,errorSchema:u},QC(o(c,Zd(c),i)))}class Gz{constructor(e,t){const{additionalMetaSchemas:r,customFormats:n,ajvOptionsOverrides:o,ajvFormatOptions:a,AjvClass:i}=e;this.ajv=function(e,t,r={},n,o=JT){const a=new o(Object.assign(Object.assign({},Wz),r));return n?Uz(a,n):!1!==n&&Uz(a),a.addFormat("data-url",Kz),a.addFormat("color",qz),a.addKeyword(td),a.addKeyword(bd),Array.isArray(e)&&a.addMetaSchema(e),xf(t)&&Object.keys(t).forEach((e=>{a.addFormat(e,t[e])})),a}(r,n,o,a,i),this.localizer=t}toErrorList(e,t=[]){return DC(e,t)}rawValidation(e,t){let r,n,o;e[cd]&&(n=this.ajv.getSchema(e[cd]));try{void 0===n&&(n=this.ajv.compile(e)),n(t)}catch(e){r=e}return n&&("function"==typeof this.localizer&&this.localizer(n.errors),o=n.errors||void 0,n.errors=null),{errors:o,validationError:r}}validateFormData(e,t,r,n,o){return Hz(this,this.rawValidation(t,e),e,t,r,n,o)}isValid(e,t,r){var n,o;const a=null!==(n=r[cd])&&void 0!==n?n:wd;try{void 0===this.ajv.getSchema(a)&&this.ajv.addSchema(r,a);const n=XC(e),i=null!==(o=n[cd])&&void 0!==o?o:function(e){const t=new Set;return JSON.stringify(e,((e,r)=>(t.add(e),r))),function(e){let t=0;for(let r=0;r<e.length;r+=1)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t.toString(16)}(JSON.stringify(e,Array.from(t).sort()))}(n);let s;s=this.ajv.getSchema(i),void 0===s&&(s=this.ajv.addSchema(n,i).getSchema(i)||this.ajv.compile(n));return s(t)}catch(e){return console.warn("Error encountered compiling schema:",e),!1}finally{this.ajv.removeSchema(a)}}}var Qz=function(e={},t){return new Gz(e,t)}(),Jz=zv,Yz=TS,Xz=Tv;var Zz=function(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],s=Jz(e,i);r(s,i)&&Yz(a,Xz(i,e),s)}return a},eD=Zz,tD=Aw;var rD=function(e,t){return eD(e,t,(function(t,r){return tD(e,r)}))},nD=zb((function(e,t){return null==e?{}:rD(e,t)}));let oD=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"");function aD(){return oD()}function iD(e){return Array.isArray(e)?e.map((e=>({key:aD(),item:e}))):[]}function sD(e){return Array.isArray(e)?e.map((e=>e.item)):[]}class lD extends a.Component{constructor(e){super(e),this._getNewFormDataRow=()=>{const{schema:e,registry:t}=this.props,{schemaUtils:r}=t;let n=e.items;return hj(e)&&function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),Zc(e.additionalItems)}(e)&&(n=e.additionalItems),r.getDefaultFormState(n)},this.onAddClick=e=>{this._handleAddClick(e)},this.onAddIndexClick=e=>t=>{this._handleAddClick(t,e)},this.onCopyIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r}=this.props,{keyedFormData:n}=this.state,o={key:aD(),item:GS(n[e].item)},a=[...n];void 0!==e?a.splice(e+1,0,o):a.push(o),this.setState({keyedFormData:a,updatedKeyedFormData:!0},(()=>r(sD(a))))},this.onDropIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r<e?IS(a,[r],n[t]):r>e&&IS(a,[r-1],n[t])}}const i=o.filter(((t,r)=>r!==e));this.setState({keyedFormData:i,updatedKeyedFormData:!0},(()=>r(sD(i),a)))},this.onReorderClick=(e,t)=>r=>{r&&(r.preventDefault(),r.currentTarget.blur());const{onChange:n,errorSchema:o}=this.props;let a;if(o){a={};for(const r in o){const n=parseInt(r);n==e?IS(a,[t],o[e]):n==t?IS(a,[e],o[t]):IS(a,[r],o[n])}}const{keyedFormData:i}=this.state;const s=function(){const r=i.slice();return r.splice(e,1),r.splice(t,0,i[e]),r}();this.setState({keyedFormData:s},(()=>n(sD(s),a)))},this.onChangeForIndex=e=>(t,r,n)=>{const{formData:o,onChange:a,errorSchema:i}=this.props,s=(Array.isArray(o)?o:[]).map(((r,n)=>e===n?void 0===t?null:t:r));a(s,i&&i&&Object.assign(Object.assign({},i),{[e]:r}),n)},this.onSelectChange=e=>{const{onChange:t,idSchema:r}=this.props;t(e,void 0,r&&r.$id)};const{formData:t=[]}=e,r=iD(t);this.state={keyedFormData:r,updatedKeyedFormData:!1}}static getDerivedStateFromProps(e,t){if(t.updatedKeyedFormData)return{updatedKeyedFormData:!1};const r=Array.isArray(e.formData)?e.formData:[],n=t.keyedFormData||[];return{keyedFormData:r.length===n.length?n.map(((e,t)=>({key:e.key,item:r[t]}))):iD(r)}}get itemTitle(){const{schema:e,registry:t}=this.props,{translateString:r}=t;return Lv(e,[fd,"title"],Lv(e,[fd,"description"],r(HC.ArrayItemTitle)))}isItemRequired(e){return Array.isArray(e.type)?!e.type.includes("null"):"null"!==e.type}canAddItem(e){const{schema:t,uiSchema:r,registry:n}=this.props;let{addable:o}=_d(r,n.globalUiOptions);return!1!==o&&(o=void 0===t.maxItems||e.length<t.maxItems),o}_handleAddClick(e,t){e&&e.preventDefault();const{onChange:r}=this.props,{keyedFormData:n}=this.state,o={key:aD(),item:this._getNewFormDataRow()},a=[...n];void 0!==t?a.splice(t,0,o):a.push(o),this.setState({keyedFormData:a,updatedKeyedFormData:!0},(()=>r(sD(a))))}render(){const{schema:e,uiSchema:t,idSchema:r,registry:n}=this.props,{schemaUtils:o,translateString:a}=n;if(!(fd in e)){const o=Kj("UnsupportedFieldTemplate",n,_d(t));return Hj.jsx(o,{schema:e,idSchema:r,reason:a(HC.MissingItems),registry:n})}return o.isMultiSelect(e)?this.renderMultiSelect():$j(t)?this.renderCustomWidget():hj(e)?this.renderFixedArray():o.isFilesArray(e,t)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:e,uiSchema:t={},errorSchema:r,idSchema:n,name:o,disabled:a=!1,readonly:i=!1,autofocus:s=!1,required:l=!1,registry:u,onBlur:c,onFocus:d,idPrefix:f,idSeparator:p="_",rawErrors:h}=this.props,{keyedFormData:m}=this.state,v=void 0===e.title?o:e.title,{schemaUtils:g,formContext:y}=u,b=_d(t),w=xf(e.items)?e.items:{},S=g.retrieveSchema(w),x=sD(this.state.keyedFormData),_=this.canAddItem(x),$={canAdd:_,items:m.map(((e,a)=>{const{key:i,item:l}=e,u=l,v=g.retrieveSchema(w,u),y=r?r[a]:void 0,b=n.$id+p+a,S=g.toIdSchema(v,b,u,f,p);return this.renderArrayFieldItem({key:i,index:a,name:o&&`${o}-${a}`,canAdd:_,canMoveUp:a>0,canMoveDown:a<x.length-1,itemSchema:v,itemIdSchema:S,itemErrorSchema:y,itemData:u,itemUiSchema:t.items,autofocus:s&&0===a,onBlur:c,onFocus:d,rawErrors:h,totalItems:m.length})})),className:`field field-array field-array-of-${S.type}`,disabled:a,idSchema:n,uiSchema:t,onAddClick:this.onAddClick,readonly:i,required:l,schema:e,title:v,formContext:y,formData:x,rawErrors:h,registry:u},k=Kj("ArrayFieldTemplate",u,b);return Hj.jsx(k,Object.assign({},$))}renderCustomWidget(){var e;const{schema:t,idSchema:r,uiSchema:n,disabled:o=!1,readonly:a=!1,autofocus:i=!1,required:s=!1,hideError:l,placeholder:u,onBlur:c,onFocus:d,formData:f=[],registry:p,rawErrors:h,name:m}=this.props,{widgets:v,formContext:g,globalUiOptions:y,schemaUtils:b}=p,w=_d(n,y),{widget:S,title:x}=w,_=ov(w,["widget","title"]),$=$C(t,S,v),k=null!==(e=null!=x?x:t.title)&&void 0!==e?e:m,E=b.getDisplayLabel(t,n,y);return Hj.jsx($,{id:r.$id,name:m,multiple:!0,onChange:this.onSelectChange,onBlur:c,onFocus:d,options:_,schema:t,uiSchema:n,registry:p,value:f,disabled:o,readonly:a,hideError:l,required:s,label:k,hideLabel:!E,placeholder:u,formContext:g,autofocus:i,rawErrors:h})}renderMultiSelect(){var e;const{schema:t,idSchema:r,uiSchema:n,formData:o=[],disabled:a=!1,readonly:i=!1,autofocus:s=!1,required:l=!1,placeholder:u,onBlur:c,onFocus:d,registry:f,rawErrors:p,name:h}=this.props,{widgets:m,schemaUtils:v,formContext:g,globalUiOptions:y}=f,b=AC(v.retrieveSchema(t.items,o)),w=_d(n,y),{widget:S="select",title:x}=w,_=ov(w,["widget","title"]),$=$C(t,S,m),k=null!==(e=null!=x?x:t.title)&&void 0!==e?e:h,E=v.getDisplayLabel(t,n,y);return Hj.jsx($,{id:r.$id,name:h,multiple:!0,onChange:this.onSelectChange,onBlur:c,onFocus:d,options:Object.assign(Object.assign({},_),{enumOptions:b}),schema:t,uiSchema:n,registry:f,value:o,disabled:a,readonly:i,required:l,label:k,hideLabel:!E,placeholder:u,formContext:g,autofocus:s,rawErrors:p})}renderFiles(){var e;const{schema:t,uiSchema:r,idSchema:n,name:o,disabled:a=!1,readonly:i=!1,autofocus:s=!1,required:l=!1,onBlur:u,onFocus:c,registry:d,formData:f=[],rawErrors:p}=this.props,{widgets:h,formContext:m,globalUiOptions:v,schemaUtils:g}=d,y=_d(r,v),{widget:b="files",title:w}=y,S=ov(y,["widget","title"]),x=$C(t,b,h),_=null!==(e=null!=w?w:t.title)&&void 0!==e?e:o,$=g.getDisplayLabel(t,r,v);return Hj.jsx(x,{options:S,id:n.$id,name:o,multiple:!0,onChange:this.onSelectChange,onBlur:u,onFocus:c,schema:t,uiSchema:r,value:f,disabled:a,readonly:i,required:l,registry:d,formContext:m,autofocus:s,rawErrors:p,label:_,hideLabel:!$})}renderFixedArray(){const{schema:e,uiSchema:t={},formData:r=[],errorSchema:n,idPrefix:o,idSeparator:a="_",idSchema:i,name:s,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:d=!1,registry:f,onBlur:p,onFocus:h,rawErrors:m}=this.props,{keyedFormData:v}=this.state;let{formData:g=[]}=this.props;const y=e.title||s,b=_d(t),{schemaUtils:w,formContext:S}=f,x=(xf(e.items)?e.items:[]).map(((e,t)=>w.retrieveSchema(e,r[t]))),_=xf(e.additionalItems)?w.retrieveSchema(e.additionalItems,r):null;(!g||g.length<x.length)&&(g=g||[],g=g.concat(new Array(x.length-g.length)));const $=this.canAddItem(g)&&!!_,k={canAdd:$,className:"field field-array field-array-fixed-items",disabled:l,idSchema:i,formData:r,items:v.map(((r,l)=>{const{key:u,item:d}=r,f=d,y=l>=x.length,b=y&&xf(e.additionalItems)?w.retrieveSchema(e.additionalItems,f):x[l],S=i.$id+a+l,_=w.toIdSchema(b,S,f,o,a),k=y?t.additionalItems||{}:Array.isArray(t.items)?t.items[l]:t.items||{},E=n?n[l]:void 0;return this.renderArrayFieldItem({key:u,index:l,name:s&&`${s}-${l}`,canAdd:$,canRemove:y,canMoveUp:l>=x.length+1,canMoveDown:y&&l<g.length-1,itemSchema:b,itemData:f,itemUiSchema:k,itemIdSchema:_,itemErrorSchema:E,autofocus:c&&0===l,onBlur:p,onFocus:h,rawErrors:m,totalItems:v.length})})),onAddClick:this.onAddClick,readonly:u,required:d,registry:f,schema:e,uiSchema:t,title:y,formContext:S,rawErrors:m},E=Kj("ArrayFieldTemplate",f,b);return Hj.jsx(E,Object.assign({},k))}renderArrayFieldItem(e){const{key:t,index:r,name:n,canAdd:o,canRemove:a=!0,canMoveUp:i,canMoveDown:s,itemSchema:l,itemData:u,itemUiSchema:c,itemIdSchema:d,itemErrorSchema:f,autofocus:p,onBlur:h,onFocus:m,rawErrors:v,totalItems:g}=e,{disabled:y,hideError:b,idPrefix:w,idSeparator:S,readonly:x,uiSchema:_,registry:$,formContext:k}=this.props,{fields:{ArraySchemaField:E,SchemaField:j},globalUiOptions:C}=$,O=E||j,{orderable:P=!0,removable:N=!0,copyable:R=!1}=_d(_,C),T={moveUp:P&&i,moveDown:P&&s,copy:R&&o,remove:N&&a,toolbar:!1};return T.toolbar=Object.keys(T).some((e=>T[e])),{children:Hj.jsx(O,{name:n,index:r,schema:l,uiSchema:c,formData:u,formContext:k,errorSchema:f,idPrefix:w,idSeparator:S,idSchema:d,required:this.isItemRequired(l),onChange:this.onChangeForIndex(r),onBlur:h,onFocus:m,registry:$,disabled:y,readonly:x,hideError:b,autofocus:p,rawErrors:v}),className:"array-item",disabled:y,canAdd:o,hasCopy:T.copy,hasToolbar:T.toolbar,hasMoveUp:T.moveUp,hasMoveDown:T.moveDown,hasRemove:T.remove,index:r,totalItems:g,key:t,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:x,registry:$,schema:l,uiSchema:c}}}function uD(e){var t,r;const{schema:n,name:o,uiSchema:a,idSchema:i,formData:s,registry:l,required:u,disabled:c,readonly:d,autofocus:f,onChange:p,onFocus:h,onBlur:m,rawErrors:v}=e,{title:g}=n,{widgets:y,formContext:b,translateString:w,globalUiOptions:S}=l,x=_d(a,S),{widget:_="checkbox",title:$,label:k=!0}=x,E=ov(x,["widget","title","label"]),j=$C(n,_,y),C=w(HC.YesLabel),O=w(HC.NoLabel);let P;const N=null!==(t=null!=$?$:g)&&void 0!==t?t:o;if(Array.isArray(n.oneOf))P=AC({oneOf:n.oneOf.map((e=>{if(xf(e))return Object.assign(Object.assign({},e),{title:e.title||(!0===e.const?C:O)})})).filter((e=>e))});else{const e=n,t=null!==(r=n.enum)&&void 0!==r?r:[!0,!1];P=!e.enumNames&&2===t.length&&t.every((e=>"boolean"==typeof e))?[{value:t[0],label:t[0]?C:O},{value:t[1],label:t[1]?C:O}]:AC({enum:t,enumNames:e.enumNames})}return Hj.jsx(j,{options:Object.assign(Object.assign({},E),{enumOptions:P}),schema:n,uiSchema:a,id:i.$id,name:o,onChange:p,onFocus:h,onBlur:m,label:N,hideLabel:!k,value:s,required:u,disabled:c,readonly:d,registry:l,formContext:b,autofocus:f,rawErrors:v})}class cD extends a.Component{constructor(e){super(e),this.onOptionChange=e=>{const{selectedOption:t,retrievedOptions:r}=this.state,{formData:n,onChange:o,registry:a}=this.props,{schemaUtils:i}=a,s=void 0!==e?parseInt(e,10):-1;if(s===t)return;const l=s>=0?r[s]:void 0,u=t>=0?r[t]:void 0;let c=i.sanitizeDataForNewSchema(l,u,n);c&&l&&(c=i.getDefaultFormState(l,c,"excludeObjectChildren")),o(c,void 0,this.getFieldId()),this.setState({selectedOption:s})};const{formData:t,options:r,registry:{schemaUtils:n}}=this.props,o=r.map((e=>n.retrieveSchema(e,t)));this.state={retrievedOptions:o,selectedOption:this.getMatchingOption(0,t,o)}}componentDidUpdate(e,t){const{formData:r,options:n,idSchema:o}=this.props,{selectedOption:a}=this.state;let i=this.state;if(!nv(e.options,n)){const{registry:{schemaUtils:e}}=this.props;i={selectedOption:a,retrievedOptions:n.map((t=>e.retrieveSchema(t,r)))}}if(!nv(r,e.formData)&&o.$id===e.idSchema.$id){const{retrievedOptions:e}=i,n=this.getMatchingOption(a,r,e);t&&n!==a&&(i={selectedOption:n,retrievedOptions:e})}i!==this.state&&this.setState(i)}getMatchingOption(e,t,r){const{schema:n,registry:{schemaUtils:o}}=this.props,a=GE(n);return o.getClosestMatchingOption(t,r,e,a)}getFieldId(){const{idSchema:e,schema:t}=this.props;return`${e.$id}${t.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:t=!1,errorSchema:r={},formContext:n,onBlur:o,onFocus:a,registry:i,schema:s,uiSchema:l}=this.props,{widgets:u,fields:c,translateString:d,globalUiOptions:f,schemaUtils:p}=i,{SchemaField:h}=c,{selectedOption:m,retrievedOptions:v}=this.state,g=_d(l,f),{widget:y="select",placeholder:b,autofocus:w,autocomplete:S,title:x=s.title}=g,_=ov(g,["widget","placeholder","autofocus","autocomplete","title"]),$=$C({type:"number"},y,u),k=Lv(r,ud,[]),E=Hb(r,[ud]),j=p.getDisplayLabel(s,l,f),C=m>=0&&v[m]||null;let O;if(C){const{required:e}=s;O=e?tj({required:e},C):C}const P=x?HC.TitleOptionPrefix:HC.OptionPrefix,N=x?[x]:[],R=v.map(((e,t)=>({label:e.title||d(P,N.concat(String(t+1))),value:t})));return Hj.jsxs("div",Object.assign({className:"panel panel-default panel-body"},{children:[Hj.jsx("div",Object.assign({className:"form-group"},{children:Hj.jsx($,{id:this.getFieldId(),name:`${e}${s.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:o,onFocus:a,disabled:t||Jv(R),multiple:!1,rawErrors:k,errorSchema:E,value:m>=0?m:void 0,options:Object.assign({enumOptions:R},_),registry:i,formContext:n,placeholder:b,autocomplete:S,autofocus:w,label:null!=x?x:e,hideLabel:!j})})),null!==C&&Hj.jsx(h,Object.assign({},this.props,{schema:O}))]}))}}const dD=/\.([0-9]*0)*$/,fD=/[0.]0*$/;function pD(e){const{registry:t,onChange:r,formData:n,value:o}=e,[i,s]=a.useState(o),{StringField:l}=t.fields;let u=n;const c=a.useCallback((e=>{s(e),"."===`${e}`.charAt(0)&&(e=`0${e}`);const t="string"==typeof e&&e.match(dD)?ed(e.replace(fD,"")):ed(e);r(t)}),[r]);if("string"==typeof i&&"number"==typeof u){const e=new RegExp(`${u}`.replace(".","\\.")+"\\.?0*$");i.match(e)&&(u=i)}return Hj.jsx(l,Object.assign({},e,{formData:u,onChange:c}))}function hD(){return hD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hD.apply(this,arguments)}const mD=["children","options"],vD=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{for:"htmlFor"}),gD={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},yD=["style","script"],bD=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,wD=/mailto:/i,SD=/\n{2,}$/,xD=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,_D=/^ *> ?/gm,$D=/^ {2,}\n/,kD=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,ED=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,jD=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,CD=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,OD=/^(?:\n *)*\n/,PD=/\r\n?/g,ND=/^\[\^([^\]]+)](:.*)\n/,RD=/^\[\^([^\]]+)]/,TD=/\f/g,AD=/^\s*?\[(x|\s)\]/,ID=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,MD=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,FD=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,zD=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,DD=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,LD=/^<!--[\s\S]*?(?:-->)/,BD=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,VD=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,UD=/^\{.*\}$/,WD=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,qD=/^<([^ >]+@[^ >]+)>/,KD=/^<([^ >]+:\/[^ >]+)>/,HD=/-([a-z])?/gi,GD=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,QD=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,JD=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,YD=/^\[([^\]]*)\] ?\[([^\]]*)\]/,XD=/(\[|\])/g,ZD=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,eL=/\t/g,tL=/^ *\| */,rL=/(^ *\||\| *$)/g,nL=/ *$/,oL=/^ *:-+: *$/,aL=/^ *:-+ *$/,iL=/^ *-+: *$/,sL=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,lL=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,uL=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,cL=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,dL=/^\\([^0-9A-Za-z\s])/,fL=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,pL=/^\n+/,hL=/^([ \t]*)/,mL=/\\([^\\])/g,vL=/ *\n+$/,gL=/(?:^|\n)( *)$/,yL="(?:\\d+\\.)",bL="(?:[*+-])";function wL(e){return"( *)("+(1===e?yL:bL)+") +"}const SL=wL(1),xL=wL(2);function _L(e){return new RegExp("^"+(1===e?SL:xL))}const $L=_L(1),kL=_L(2);function EL(e){return new RegExp("^"+(1===e?SL:xL)+"[^\\n]*(?:\\n(?!\\1"+(1===e?yL:bL)+" )[^\\n]*)*(\\n|$)","gm")}const jL=EL(1),CL=EL(2);function OL(e){const t=1===e?yL:bL;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const PL=OL(1),NL=OL(2);function RL(e,t){const r=1===t,n=r?PL:NL,o=r?jL:CL,a=r?$L:kL;return{t(e,t,r){const o=gL.exec(r);return o&&(t.o||!t._&&!t.u)?n.exec(e=o[1]+e):null},i:nB.HIGH,l(e,t,n){const i=r?+e[2]:void 0,s=e[0].replace(SD,"\n").match(o);let l=!1;return{p:s.map((function(e,r){const o=a.exec(e)[0].length,i=new RegExp("^ {1,"+o+"}","gm"),u=e.replace(i,"").replace(a,""),c=r===s.length-1,d=-1!==u.indexOf("\n\n")||c&&l;l=d;const f=n._,p=n.o;let h;n.o=!0,d?(n._=!1,h=u.replace(vL,"\n\n")):(n._=!0,h=u.replace(vL,""));const m=t(h,n);return n._=f,n.o=p,m})),m:r,g:i}},h:(t,r,n)=>e(t.m?"ol":"ul",{key:n.k,start:t.g},t.p.map((function(t,o){return e("li",{key:o},r(t,n))})))}}const TL=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,AL=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,IL=[xD,ED,jD,ID,FD,MD,LD,GD,jL,PL,CL,NL],ML=[...IL,/^[^\n]+(?: \n|\n{2,})/,zD,VD];function FL(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function zL(e){return iL.test(e)?"right":oL.test(e)?"center":aL.test(e)?"left":null}function DL(e,t,r){const n=r.$;r.$=!0;const o=t(e.trim(),r);r.$=n;let a=[[]];return o.forEach((function(e,t){"tableSeparator"===e.type?0!==t&&t!==o.length-1&&a.push([]):("text"!==e.type||null!=o[t+1]&&"tableSeparator"!==o[t+1].type||(e.v=e.v.replace(nL,"")),a[a.length-1].push(e))})),a}function LL(e,t,r){r._=!0;const n=DL(e[1],t,r),o=e[2].replace(rL,"").split("|").map(zL),a=function(e,t,r){return e.trim().split("\n").map((function(e){return DL(e,t,r)}))}(e[3],t,r);return r._=!1,{S:o,A:a,L:n,type:"table"}}function BL(e,t){return null==e.S[t]?{}:{textAlign:e.S[t]}}function VL(e){return function(t,r){return r._?e.exec(t):null}}function UL(e){return function(t,r){return r._||r.u?e.exec(t):null}}function WL(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function qL(e){return function(t){return e.exec(t)}}function KL(e,t,r){if(t._||t.u)return null;if(r&&!r.endsWith("\n"))return null;let n="";e.split("\n").every((e=>!IL.some((t=>t.test(e)))&&(n+=e+"\n",e.trim())));const o=n.trimEnd();return""==o?null:[n,o]}function HL(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function GL(e){return e.replace(mL,"$1")}function QL(e,t,r){const n=r._||!1,o=r.u||!1;r._=!0,r.u=!0;const a=e(t,r);return r._=n,r.u=o,a}function JL(e,t,r){const n=r._||!1,o=r.u||!1;r._=!1,r.u=!0;const a=e(t,r);return r._=n,r.u=o,a}function YL(e,t,r){return r._=!1,e(t,r)}const XL=(e,t,r)=>({v:QL(t,e[1],r)});function ZL(){return{}}function eB(){return null}function tB(...e){return e.filter(Boolean).join(" ")}function rB(e,t,r){let n=e;const o=t.split(".");for(;o.length&&(n=n[o[0]],void 0!==n);)o.shift();return n||r}var nB;function oB(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||FL,t.namedCodesToUnicode=t.namedCodesToUnicode?hD({},gD,t.namedCodesToUnicode):gD;const r=t.createElement||a.createElement;function n(e,n,...o){const a=rB(t.overrides,`${e}.props`,{});return r(function(e,t){const r=rB(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:rB(t,`${e}.component`,e):e}(e,t.overrides),hD({},n,a,{className:tB(null==n?void 0:n.className,a.className)||void 0}),...o)}function o(e){let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===ZD.test(e));const o=d(c(r?e:`${e.trimEnd().replace(pL,"")}\n\n`,{_:r}));for(;"string"==typeof o[o.length-1]&&!o[o.length-1].trim();)o.pop();if(null===t.wrapper)return o;const i=t.wrapper||(r?"span":"div");let s;if(o.length>1||t.forceWrapper)s=o;else{if(1===o.length)return s=o[0],"string"==typeof s?n("span",{key:"outer"},s):s;s=null}return a.createElement(i,{key:"outer"},s)}function i(e){const t=e.match(bD);return t?t.reduce((function(e,t,r){const n=t.indexOf("=");if(-1!==n){const i=function(e){return-1!==e.indexOf("-")&&null===e.match(BD)&&(e=e.replace(HD,(function(e,t){return t.toUpperCase()}))),e}(t.slice(0,n)).trim(),s=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(t.slice(n+1).trim()),l=vD[i]||i,u=e[l]=function(e,t){return"style"===e?t.split(/;\s?/).reduce((function(e,t){const r=t.slice(0,t.indexOf(":"));return e[r.replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(r.length+1).trim(),e}),{}):"href"===e?HL(t):(t.match(UD)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(i,s);"string"==typeof u&&(zD.test(u)||VD.test(u))&&(e[l]=a.cloneElement(o(u.trim()),{key:r}))}else"style"!==t&&(e[vD[t]||t]=!0);return e}),{}):null}const s=[],l={},u={blockQuote:{t:WL(xD),i:nB.HIGH,l:(e,t,r)=>({v:t(e[0].replace(_D,""),r)}),h:(e,t,r)=>n("blockquote",{key:r.k},t(e.v,r))},breakLine:{t:qL($D),i:nB.HIGH,l:ZL,h:(e,t,r)=>n("br",{key:r.k})},breakThematic:{t:WL(kD),i:nB.HIGH,l:ZL,h:(e,t,r)=>n("hr",{key:r.k})},codeBlock:{t:WL(jD),i:nB.MAX,l:e=>({v:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(e,t,r)=>n("pre",{key:r.k},n("code",hD({},e.O,{className:e.M?`lang-${e.M}`:""}),e.v))},codeFenced:{t:WL(ED),i:nB.MAX,l:e=>({O:i(e[3]||""),v:e[4],M:e[2]||void 0,type:"codeBlock"})},codeInline:{t:UL(CD),i:nB.LOW,l:e=>({v:e[2]}),h:(e,t,r)=>n("code",{key:r.k},e.v)},footnote:{t:WL(ND),i:nB.MAX,l:e=>(s.push({I:e[2],j:e[1]}),{}),h:eB},footnoteReference:{t:VL(RD),i:nB.HIGH,l:e=>({v:e[1],B:`#${t.slugify(e[1])}`}),h:(e,t,r)=>n("a",{key:r.k,href:HL(e.B)},n("sup",{key:r.k},e.v))},gfmTask:{t:VL(AD),i:nB.HIGH,l:e=>({R:"x"===e[1].toLowerCase()}),h:(e,t,r)=>n("input",{checked:e.R,key:r.k,readOnly:!0,type:"checkbox"})},heading:{t:WL(t.enforceAtxHeadings?MD:ID),i:nB.HIGH,l:(e,r,n)=>({v:QL(r,e[2],n),T:t.slugify(e[2]),C:e[1].length}),h:(e,t,r)=>n(`h${e.C}`,{id:e.T,key:r.k},t(e.v,r))},headingSetext:{t:WL(FD),i:nB.MAX,l:(e,t,r)=>({v:QL(t,e[1],r),C:"="===e[2]?1:2,type:"heading"})},htmlComment:{t:qL(LD),i:nB.HIGH,l:()=>({}),h:eB},image:{t:UL(AL),i:nB.HIGH,l:e=>({D:e[1],B:GL(e[2]),F:e[3]}),h:(e,t,r)=>n("img",{key:r.k,alt:e.D||void 0,title:e.F||void 0,src:HL(e.B)})},link:{t:VL(TL),i:nB.LOW,l:(e,t,r)=>({v:JL(t,e[1],r),B:GL(e[2]),F:e[3]}),h:(e,t,r)=>n("a",{key:r.k,href:HL(e.B),title:e.F},t(e.v,r))},linkAngleBraceStyleDetector:{t:VL(KD),i:nB.MAX,l:e=>({v:[{v:e[1],type:"text"}],B:e[1],type:"link"})},linkBareUrlDetector:{t:(e,t)=>t.N?null:VL(WD)(e,t),i:nB.MAX,l:e=>({v:[{v:e[1],type:"text"}],B:e[1],F:void 0,type:"link"})},linkMailtoDetector:{t:VL(qD),i:nB.MAX,l(e){let t=e[1],r=e[1];return wD.test(r)||(r="mailto:"+r),{v:[{v:t.replace("mailto:",""),type:"text"}],B:r,type:"link"}}},orderedList:RL(n,1),unorderedList:RL(n,2),newlineCoalescer:{t:WL(OD),i:nB.LOW,l:ZL,h:()=>"\n"},paragraph:{t:KL,i:nB.LOW,l:XL,h:(e,t,r)=>n("p",{key:r.k},t(e.v,r))},ref:{t:VL(QD),i:nB.MAX,l:e=>(l[e[1]]={B:e[2],F:e[4]},{}),h:eB},refImage:{t:UL(JD),i:nB.MAX,l:e=>({D:e[1]||void 0,P:e[2]}),h:(e,t,r)=>n("img",{key:r.k,alt:e.D,src:HL(l[e.P].B),title:l[e.P].F})},refLink:{t:VL(YD),i:nB.MAX,l:(e,t,r)=>({v:t(e[1],r),Z:t(e[0].replace(XD,"\\$1"),r),P:e[2]}),h:(e,t,r)=>l[e.P]?n("a",{key:r.k,href:HL(l[e.P].B),title:l[e.P].F},t(e.v,r)):n("span",{key:r.k},t(e.Z,r))},table:{t:WL(GD),i:nB.HIGH,l:LL,h:(e,t,r)=>n("table",{key:r.k},n("thead",null,n("tr",null,e.L.map((function(o,a){return n("th",{key:a,style:BL(e,a)},t(o,r))})))),n("tbody",null,e.A.map((function(o,a){return n("tr",{key:a},o.map((function(o,a){return n("td",{key:a,style:BL(e,a)},t(o,r))})))}))))},tableSeparator:{t:function(e,t){return t.$?(t._=!0,tL.exec(e)):null},i:nB.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:qL(fL),i:nB.MIN,l:e=>({v:e[0].replace(DD,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),h:e=>e.v},textBolded:{t:UL(sL),i:nB.MED,l:(e,t,r)=>({v:t(e[2],r)}),h:(e,t,r)=>n("strong",{key:r.k},t(e.v,r))},textEmphasized:{t:UL(lL),i:nB.LOW,l:(e,t,r)=>({v:t(e[2],r)}),h:(e,t,r)=>n("em",{key:r.k},t(e.v,r))},textEscaped:{t:UL(dL),i:nB.HIGH,l:e=>({v:e[1],type:"text"})},textMarked:{t:UL(uL),i:nB.LOW,l:XL,h:(e,t,r)=>n("mark",{key:r.k},t(e.v,r))},textStrikethroughed:{t:UL(cL),i:nB.LOW,l:XL,h:(e,t,r)=>n("del",{key:r.k},t(e.v,r))}};!0!==t.disableParsingRawHTML&&(u.htmlBlock={t:qL(zD),i:nB.HIGH,l(e,t,r){const[,n]=e[3].match(hL),o=new RegExp(`^${n}`,"gm"),a=e[3].replace(o,""),s=(l=a,ML.some((e=>e.test(l)))?YL:QL);var l;const u=e[1].toLowerCase(),c=-1!==yD.indexOf(u);r.N=r.N||"a"===u;const d=c?e[3]:s(t,a,r);return r.N=!1,{O:i(e[2]),v:d,G:c,H:c?u:e[1]}},h:(e,t,r)=>n(e.H,hD({key:r.k},e.O),e.G?e.v:t(e.v,r))},u.htmlSelfClosing={t:qL(VD),i:nB.HIGH,l:e=>({O:i(e[2]||""),H:e[1]}),h:(e,t,r)=>n(e.H,hD({},e.O,{key:r.k}))});const c=function(e){let t=Object.keys(e);function r(n,o){let a=[],i="";for(;n;){let s=0;for(;s<t.length;){const l=t[s],u=e[l],c=u.t(n,o,i);if(c){const e=c[0];n=n.substring(e.length);const t=u.l(c,r,o);null==t.type&&(t.type=l),a.push(t),i=e;break}s++}}return a}return t.sort((function(t,r){let n=e[t].i,o=e[r].i;return n!==o?n-o:t<r?-1:1})),function(e,t){return r(function(e){return e.replace(PD,"\n").replace(TD,"").replace(eL," ")}(e),t)}}(u),d=(f=function(e){return function(t,r,n){return e[t.type].h(t,r,n)}}(u),function e(t,r={}){if(Array.isArray(t)){const n=r.k,o=[];let a=!1;for(let n=0;n<t.length;n++){r.k=n;const i=e(t[n],r),s="string"==typeof i;s&&a?o[o.length-1]+=i:null!==i&&o.push(i),a=s}return r.k=n,o}return f(t,e,r)});var f;const p=o(e);return s.length?n("div",null,p,n("footer",{key:"footer"},s.map((function(e){return n("div",{id:t.slugify(e.j),key:e.j},e.j,d(c(e.I,{_:!0})))})))):p}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(nB||(nB={}));var aB=e=>{let{children:t,options:r}=e,n=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(e,mD);return a.cloneElement(oB(t,r),n)},iB=pb;var sB=function(e,t){return null==e||iB(e,t)};class lB extends a.Component{constructor(){super(...arguments),this.state={wasPropertyKeyModified:!1,additionalProperties:{}},this.onPropertyChange=(e,t=!1)=>(r,n,o)=>{const{formData:a,onChange:i,errorSchema:s}=this.props;void 0===r&&t&&(r="");i(Object.assign(Object.assign({},a),{[e]:r}),s&&s&&Object.assign(Object.assign({},s),{[e]:n}),o)},this.onDropPropertyClick=e=>t=>{t.preventDefault();const{onChange:r,formData:n}=this.props,o=Object.assign({},n);sB(o,e),r(o)},this.getAvailableKey=(e,t)=>{const{uiSchema:r,registry:n}=this.props,{duplicateKeySuffixSeparator:o="-"}=_d(r,n.globalUiOptions);let a=0,i=e;for(;iw(t,i);)i=`${e}${o}${++a}`;return i},this.onKeyChange=e=>(t,r)=>{if(e===t)return;const{formData:n,onChange:o,errorSchema:a}=this.props;t=this.getAvailableKey(t,n);const i=Object.assign({},n),s={[e]:t},l=Object.keys(i).map((e=>({[s[e]||e]:i[e]}))),u=Object.assign({},...l);this.setState({wasPropertyKeyModified:!0}),o(u,a&&a&&Object.assign(Object.assign({},a),{[t]:r}))},this.handleAddClick=e=>()=>{if(!e.additionalProperties)return;const{formData:t,onChange:r,registry:n}=this.props,o=Object.assign({},t);let a;if(xf(e.additionalProperties)){a=e.additionalProperties.type;let r=e.additionalProperties;if(yd in r){const{schemaUtils:e}=n;r=e.retrieveSchema({$ref:r[yd]},t),a=r.type}a||!(od in r)&&!(hd in r)||(a="object")}const i=this.getAvailableKey("newKey",o);IS(o,i,this.getDefaultValue(a)),r(o)}}isRequired(e){const{schema:t}=this.props;return Array.isArray(t.required)&&-1!==t.required.indexOf(e)}getDefaultValue(e){const{registry:{translateString:t}}=this.props;switch(e){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return t(HC.NewStringDefault)}}render(){var e,t,r;const{schema:n,uiSchema:o={},formData:a,errorSchema:i,idSchema:s,name:l,required:u=!1,disabled:c=!1,readonly:d=!1,hideError:f,idPrefix:p,idSeparator:h,onBlur:m,onFocus:v,registry:g}=this.props,{fields:y,formContext:b,schemaUtils:w,translateString:S,globalUiOptions:x}=g,{SchemaField:_}=y,$=w.retrieveSchema(n,a),k=_d(o,x),{properties:E={}}=$,j=null!==(t=null!==(e=k.title)&&void 0!==e?e:$.title)&&void 0!==t?t:l,C=null!==(r=k.description)&&void 0!==r?r:$.description;let O;try{O=function(e,t){if(!Array.isArray(t))return e;const r=e=>e.reduce(((e,t)=>(e[t]=!0,e)),{}),n=r(e),o=t.filter((e=>"*"===e||n[e])),a=r(o),i=e.filter((e=>!a[e])),s=o.indexOf("*");if(-1===s){if(i.length)throw new Error("uiSchema order list does not contain "+((l=i).length>1?`properties '${l.join("', '")}'`:`property '${l[0]}'`));return o}var l;if(s!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const u=[...o];return u.splice(s,1,...i),u}(Object.keys(E),k.order)}catch(e){return Hj.jsxs("div",{children:[Hj.jsx("p",Object.assign({className:"config-error",style:{color:"red"}},{children:Hj.jsx(aB,{children:S(HC.InvalidObjectField,[l||"root",e.message])})})),Hj.jsx("pre",{children:JSON.stringify($)})]})}const P=Kj("ObjectFieldTemplate",g,k),N={title:!1===k.label?"":j,description:!1===k.label?void 0:C,properties:O.map((e=>{const t=iw($,[md,e,td]),r=t?o.additionalProperties:o[e],n="hidden"===_d(r).widget,l=Lv(s,[e],{});return{content:Hj.jsx(_,{name:e,required:this.isRequired(e),schema:Lv($,[md,e],{}),uiSchema:r,errorSchema:Lv(i,e),idSchema:l,idPrefix:p,idSeparator:h,formData:Lv(a,e),formContext:b,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(e),onChange:this.onPropertyChange(e,t),onBlur:m,onFocus:v,registry:g,disabled:c,readonly:d,hideError:f,onDropPropertyClick:this.onDropPropertyClick},e),name:e,readonly:d,disabled:c,required:u,hidden:n}})),readonly:d,disabled:c,required:u,idSchema:s,uiSchema:o,errorSchema:i,schema:$,formData:a,formContext:b,registry:g};return Hj.jsx(P,Object.assign({},N,{onAddClick:this.handleAddClick}))}}const uB={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function cB(e){const{schema:t,idSchema:r,uiSchema:n,formData:o,errorSchema:i,idPrefix:s,idSeparator:l,name:u,onChange:c,onKeyChange:d,onDropPropertyClick:f,required:p,registry:h,wasPropertyKeyModified:m=!1}=e,{formContext:v,schemaUtils:g,globalUiOptions:y}=h,b=_d(n,y),w=Kj("FieldTemplate",h,b),S=Kj("DescriptionFieldTemplate",h,b),x=Kj("FieldHelpTemplate",h,b),_=Kj("FieldErrorTemplate",h,b),$=g.retrieveSchema(t,o),k=r[cd],E=vj(g.toIdSchema($,k,o,s,l),r),j=a.useCallback(((e,t,r)=>c(e,t,r||k)),[k,c]),C=function(e,t,r,n){const o=t.field,{fields:a,translateString:i}=n;if("function"==typeof o)return o;if("string"==typeof o&&o in a)return a[o];const s=ej(e),l=Array.isArray(s)?s[0]:s||"",u=e.$id;let c=uB[l];return u&&u in a&&(c=u),c||!e.anyOf&&!e.oneOf?c in a?a[c]:()=>{const o=Kj("UnsupportedFieldTemplate",n,t);return Hj.jsx(o,{schema:e,idSchema:r,reason:i(HC.UnknownFieldType,[String(e.type)]),registry:n})}:()=>null}($,b,E,h),O=Boolean(e.disabled||b.disabled),P=Boolean(e.readonly||b.readonly||e.schema.readOnly||$.readOnly),N=b.hideError,R=void 0===N?e.hideError:Boolean(N),T=Boolean(e.autofocus||b.autofocus);if(0===Object.keys($).length)return null;const A=g.getDisplayLabel($,n,y),I=i||{},{__errors:M}=I,F=ov(I,["__errors"]),z=Hb(n,["ui:classNames","classNames","ui:style"]);xd in z&&(z[xd]=Hb(z[xd],["classNames","style"]));const D=Hj.jsx(C,Object.assign({},e,{onChange:j,idSchema:E,schema:$,uiSchema:z,disabled:O,readonly:P,hideError:R,autofocus:T,errorSchema:F,formContext:v,rawErrors:M})),L=E[cd];let B;B=m||td in $?u:b.title||e.schema.title||$.title||u;const V=b.description||e.schema.description||$.description||"",U=b.enableMarkdownInDescription?Hj.jsx(aB,{children:V}):V,W=b.help,q="hidden"===b.widget,K=["form-group","field",`field-${ej($)}`];!R&&M&&M.length>0&&K.push("field-error has-error has-danger"),(null==n?void 0:n.classNames)&&K.push(n.classNames),b.classNames&&K.push(b.classNames);const H=Hj.jsx(x,{help:W,idSchema:E,schema:$,uiSchema:n,hasErrors:!R&&M&&M.length>0,registry:h}),G=R||$.anyOf||$.oneOf?void 0:Hj.jsx(_,{errors:M,errorSchema:i,idSchema:E,schema:$,uiSchema:n,registry:h}),Q={description:Hj.jsx(S,{id:EC(L),description:U,schema:$,uiSchema:n,registry:h}),rawDescription:V,help:H,rawHelp:"string"==typeof W?W:void 0,errors:G,rawErrors:R?void 0:M,id:L,label:B,hidden:q,onChange:c,onKeyChange:d,onDropPropertyClick:f,required:p,disabled:O,readonly:P,hideError:R,displayLabel:A,classNames:K.join(" ").trim(),style:b.style,formContext:v,formData:o,schema:$,uiSchema:n,registry:h},J=h.fields.AnyOfField,Y=h.fields.OneOfField,X=(null==n?void 0:n["ui:field"])&&!0===(null==n?void 0:n["ui:fieldReplacesAnyOrOneOf"]);return Hj.jsx(w,Object.assign({},Q,{children:Hj.jsxs(Hj.Fragment,{children:[D,$.anyOf&&!X&&!g.isSelect($)&&Hj.jsx(J,{name:u,disabled:O,readonly:P,hideError:R,errorSchema:i,formData:o,formContext:v,idPrefix:s,idSchema:E,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:$.anyOf.map((e=>g.retrieveSchema(xf(e)?e:{},o))),registry:h,schema:$,uiSchema:n}),$.oneOf&&!X&&!g.isSelect($)&&Hj.jsx(Y,{name:u,disabled:O,readonly:P,hideError:R,errorSchema:i,formData:o,formContext:v,idPrefix:s,idSchema:E,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:$.oneOf.map((e=>g.retrieveSchema(xf(e)?e:{},o))),registry:h,schema:$,uiSchema:n})]})}))}class dB extends a.Component{shouldComponentUpdate(e){return!nv(this.props,e)}render(){return Hj.jsx(cB,Object.assign({},this.props))}}function fB(e){var t;const{schema:r,name:n,uiSchema:o,idSchema:a,formData:i,required:s,disabled:l=!1,readonly:u=!1,autofocus:c=!1,onChange:d,onBlur:f,onFocus:p,registry:h,rawErrors:m}=e,{title:v,format:g}=r,{widgets:y,formContext:b,schemaUtils:w,globalUiOptions:S}=h,x=w.isSelect(r)?AC(r):void 0;let _=x?"select":"text";g&&function(e,t,r={}){try{return $C(e,t,r),!0}catch(e){const t=e;if(t.message&&(t.message.startsWith("No widget")||t.message.startsWith("Unsupported widget")))return!1;throw e}}(r,g,y)&&(_=g);const $=_d(o),{widget:k=_,placeholder:E="",title:j}=$,C=ov($,["widget","placeholder","title"]),O=w.getDisplayLabel(r,o,S),P=null!==(t=null!=j?j:v)&&void 0!==t?t:n,N=$C(r,k,y);return Hj.jsx(N,{options:Object.assign(Object.assign({},C),{enumOptions:x}),schema:r,uiSchema:o,id:a.$id,name:n,label:P,hideLabel:!O,value:i,onChange:d,onBlur:f,onFocus:p,required:s,disabled:l,readonly:u,formContext:b,autofocus:c,registry:h,placeholder:E,rawErrors:m})}function pB(e){const{formData:t,onChange:r}=e;return a.useEffect((()=>{void 0===t&&r(null)}),[t,r]),null}function hB(e){const{idSchema:t,description:r,registry:n,schema:o,uiSchema:a}=e,i=_d(a,n.globalUiOptions),{label:s=!0}=i;if(!r||!s)return null;const l=Kj("DescriptionFieldTemplate",n,i);return Hj.jsx(l,{id:EC(t),description:r,schema:o,uiSchema:a,registry:n})}function mB(e){const{children:t,className:r,disabled:n,hasToolbar:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,hasCopy:l,index:u,onCopyIndexClick:c,onDropIndexClick:d,onReorderClick:f,readonly:p,registry:h,uiSchema:m}=e,{CopyButton:v,MoveDownButton:g,MoveUpButton:y,RemoveButton:b}=h.templates.ButtonTemplates,w={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return Hj.jsxs("div",Object.assign({className:r},{children:[Hj.jsx("div",Object.assign({className:o?"col-xs-9":"col-xs-12"},{children:t})),o&&Hj.jsx("div",Object.assign({className:"col-xs-3 array-item-toolbox"},{children:Hj.jsxs("div",Object.assign({className:"btn-group",style:{display:"flex",justifyContent:"space-around"}},{children:[(i||a)&&Hj.jsx(y,{style:w,disabled:n||p||!i,onClick:f(u,u-1),uiSchema:m,registry:h}),(i||a)&&Hj.jsx(g,{style:w,disabled:n||p||!a,onClick:f(u,u+1),uiSchema:m,registry:h}),l&&Hj.jsx(v,{style:w,disabled:n||p,onClick:c(u),uiSchema:m,registry:h}),s&&Hj.jsx(b,{style:w,disabled:n||p,onClick:d(u),uiSchema:m,registry:h})]}))}))]}))}function vB(e){const{canAdd:t,className:r,disabled:n,idSchema:o,uiSchema:a,items:i,onAddClick:s,readonly:l,registry:u,required:c,schema:d,title:f}=e,p=_d(a),h=Kj("ArrayFieldDescriptionTemplate",u,p),m=Kj("ArrayFieldItemTemplate",u,p),v=Kj("ArrayFieldTitleTemplate",u,p),{ButtonTemplates:{AddButton:g}}=u.templates;return Hj.jsxs("fieldset",Object.assign({className:r,id:o.$id},{children:[Hj.jsx(v,{idSchema:o,title:p.title||f,required:c,schema:d,uiSchema:a,registry:u}),Hj.jsx(h,{idSchema:o,description:p.description||d.description,schema:d,uiSchema:a,registry:u}),Hj.jsx("div",Object.assign({className:"row array-item-list"},{children:i&&i.map((e=>{var{key:t}=e,r=ov(e,["key"]);return Hj.jsx(m,Object.assign({},r),t)}))})),t&&Hj.jsx(g,{className:"array-item-add",onClick:s,disabled:n||l,uiSchema:a,registry:u})]}))}function gB(e){const{idSchema:t,title:r,schema:n,uiSchema:o,required:a,registry:i}=e,s=_d(o,i.globalUiOptions),{label:l=!0}=s;if(!r||!l)return null;const u=Kj("TitleFieldTemplate",i,s);return Hj.jsx(u,{id:PC(t),title:r,required:a,schema:n,uiSchema:o,registry:i})}function yB(e){const{id:t,name:r,value:n,readonly:o,disabled:i,autofocus:s,onBlur:l,onFocus:u,onChange:c,onChangeOverride:d,options:f,schema:p,uiSchema:h,formContext:m,registry:v,rawErrors:g,type:y,hideLabel:b,hideError:w}=e,S=ov(e,["id","name","value","readonly","disabled","autofocus","onBlur","onFocus","onChange","onChangeOverride","options","schema","uiSchema","formContext","registry","rawErrors","type","hideLabel","hideError"]);if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const x=Object.assign(Object.assign({},S),Uj(p,y,f));let _;_="number"===x.type||"integer"===x.type?n||0===n?n:"":null==n?"":n;const $=a.useCallback((({target:{value:e}})=>c(""===e?f.emptyValue:e)),[c,f]),k=a.useCallback((({target:{value:e}})=>l(t,e)),[l,t]),E=a.useCallback((({target:{value:e}})=>u(t,e)),[u,t]);return Hj.jsxs(Hj.Fragment,{children:[Hj.jsx("input",Object.assign({id:t,name:t,className:"form-control",readOnly:o,disabled:i,autoFocus:s,value:_},x,{list:p.examples?CC(t):void 0,onChange:d||$,onBlur:k,onFocus:E,"aria-describedby":NC(t,!!p.examples)})),Array.isArray(p.examples)&&Hj.jsx("datalist",Object.assign({id:CC(t)},{children:p.examples.concat(p.default&&!p.examples.includes(p.default)?[p.default]:[]).map((e=>Hj.jsx("option",{value:e},e)))}),`datalist_${t}`)]})}function bB({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=qj(e);return r?null:Hj.jsx("div",{children:Hj.jsx("button",Object.assign({type:"submit"},n,{className:`btn btn-info ${n.className||""}`},{children:t}))})}function wB(e){const{iconType:t="default",icon:r,className:n,uiSchema:o,registry:a}=e,i=ov(e,["iconType","icon","className","uiSchema","registry"]);return Hj.jsx("button",Object.assign({type:"button",className:`btn btn-${t} ${n}`},i,{children:Hj.jsx("i",{className:`glyphicon glyphicon-${r}`})}))}function SB(e){const{registry:{translateString:t}}=e;return Hj.jsx(wB,Object.assign({title:t(HC.CopyButton),className:"array-item-copy"},e,{icon:"copy"}))}function xB(e){const{registry:{translateString:t}}=e;return Hj.jsx(wB,Object.assign({title:t(HC.MoveDownButton),className:"array-item-move-down"},e,{icon:"arrow-down"}))}function _B(e){const{registry:{translateString:t}}=e;return Hj.jsx(wB,Object.assign({title:t(HC.MoveUpButton),className:"array-item-move-up"},e,{icon:"arrow-up"}))}function $B(e){const{registry:{translateString:t}}=e;return Hj.jsx(wB,Object.assign({title:t(HC.RemoveButton),className:"array-item-remove"},e,{iconType:"danger",icon:"remove"}))}function kB({className:e,onClick:t,disabled:r,registry:n}){const{translateString:o}=n;return Hj.jsx("div",Object.assign({className:"row"},{children:Hj.jsx("p",Object.assign({className:`col-xs-3 col-xs-offset-9 text-right ${e}`},{children:Hj.jsx(wB,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:o(HC.AddButton),onClick:t,disabled:r,registry:n})}))}))}function EB(e){const{id:t,description:r}=e;return r?"string"==typeof r?Hj.jsx("p",Object.assign({id:t,className:"field-description"},{children:r})):Hj.jsx("div",Object.assign({id:t,className:"field-description"},{children:r})):null}function jB({errors:e,registry:t}){const{translateString:r}=t;return Hj.jsxs("div",Object.assign({className:"panel panel-danger errors"},{children:[Hj.jsx("div",Object.assign({className:"panel-heading"},{children:Hj.jsx("h3",Object.assign({className:"panel-title"},{children:r(HC.ErrorsLabel)}))})),Hj.jsx("ul",Object.assign({className:"list-group"},{children:e.map(((e,t)=>Hj.jsx("li",Object.assign({className:"list-group-item text-danger"},{children:e.stack}),t)))}))]}))}const CB="*";function OB(e){const{label:t,required:r,id:n}=e;return t?Hj.jsxs("label",Object.assign({className:"control-label",htmlFor:n},{children:[t,r&&Hj.jsx("span",Object.assign({className:"required"},{children:CB}))]})):null}function PB(e){const{id:t,label:r,children:n,errors:o,help:a,description:i,hidden:s,required:l,displayLabel:u,registry:c,uiSchema:d}=e,f=Kj("WrapIfAdditionalTemplate",c,_d(d));return s?Hj.jsx("div",Object.assign({className:"hidden"},{children:n})):Hj.jsxs(f,Object.assign({},e,{children:[u&&Hj.jsx(OB,{label:r,required:l,id:t}),u&&i?i:null,n,o,a]}))}function NB(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=jC(r);return Hj.jsx("div",{children:Hj.jsx("ul",Object.assign({id:n,className:"error-detail bs-callout bs-callout-info"},{children:t.filter((e=>!!e)).map(((e,t)=>Hj.jsx("li",Object.assign({className:"text-danger"},{children:e}),t)))}))})}function RB(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=OC(t);return"string"==typeof r?Hj.jsx("p",Object.assign({id:n,className:"help-block"},{children:r})):Hj.jsx("div",Object.assign({id:n,className:"help-block"},{children:r}))}function TB(e){const{description:t,disabled:r,formData:n,idSchema:o,onAddClick:a,properties:i,readonly:s,registry:l,required:u,schema:c,title:d,uiSchema:f}=e,p=_d(f),h=Kj("TitleFieldTemplate",l,p),m=Kj("DescriptionFieldTemplate",l,p),{ButtonTemplates:{AddButton:v}}=l.templates;return Hj.jsxs("fieldset",Object.assign({id:o.$id},{children:[d&&Hj.jsx(h,{id:PC(o),title:d,required:u,schema:c,uiSchema:f,registry:l}),t&&Hj.jsx(m,{id:EC(o),description:t,schema:c,uiSchema:f,registry:l}),i.map((e=>e.content)),$d(c,f,n)&&Hj.jsx(v,{className:"object-property-expand",onClick:a(c),disabled:r||s,uiSchema:f,registry:l})]}))}const AB="*";function IB(e){const{id:t,title:r,required:n}=e;return Hj.jsxs("legend",Object.assign({id:t},{children:[r,n&&Hj.jsx("span",Object.assign({className:"required"},{children:AB}))]}))}function MB(e){const{schema:t,idSchema:r,reason:n,registry:o}=e,{translateString:a}=o;let i=HC.UnsupportedField;const s=[];return r&&r.$id&&(i=HC.UnsupportedFieldWithId,s.push(r.$id)),n&&(i=i===HC.UnsupportedField?HC.UnsupportedFieldWithReason:HC.UnsupportedFieldWithIdAndReason,s.push(n)),Hj.jsxs("div",Object.assign({className:"unsupported-field"},{children:[Hj.jsx("p",{children:Hj.jsx(aB,{children:a(i,s)})}),t&&Hj.jsx("pre",{children:JSON.stringify(t,null,2)})]}))}function FB(e){const{id:t,classNames:r,style:n,disabled:o,label:a,onKeyChange:i,onDropPropertyClick:s,readonly:l,required:u,schema:c,children:d,uiSchema:f,registry:p}=e,{templates:h,translateString:m}=p,{RemoveButton:v}=h.ButtonTemplates,g=m(HC.KeyLabel,[a]);return td in c?Hj.jsx("div",Object.assign({className:r,style:n},{children:Hj.jsxs("div",Object.assign({className:"row"},{children:[Hj.jsx("div",Object.assign({className:"col-xs-5 form-additional"},{children:Hj.jsxs("div",Object.assign({className:"form-group"},{children:[Hj.jsx(OB,{label:g,required:u,id:`${t}-key`}),Hj.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:e=>i(e.target.value),defaultValue:a})]}))})),Hj.jsx("div",Object.assign({className:"form-additional form-group col-xs-5"},{children:d})),Hj.jsx("div",Object.assign({className:"col-xs-2"},{children:Hj.jsx(v,{className:"array-item-remove btn-block",style:{border:"0"},disabled:o||l,onClick:s(a),uiSchema:f,registry:p})}))]}))})):Hj.jsx("div",Object.assign({className:r,style:n},{children:d}))}function zB(e,t){const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:IC(n,2)});return r}function DB(e,t,r=[1900,(new Date).getFullYear()+2]){const{year:n,month:o,day:a,hour:i,minute:s,second:l}=e,u=[{type:"year",range:r,value:n},{type:"month",range:[1,12],value:o},{type:"day",range:[1,31],value:a}];return t&&u.push({type:"hour",range:[0,23],value:i},{type:"minute",range:[0,59],value:s},{type:"second",range:[0,59],value:l}),u}function LB({type:e,range:t,value:r,select:n,rootId:o,name:a,disabled:i,readonly:s,autofocus:l,registry:u,onBlur:c,onFocus:d}){const f=o+"_"+e,{SelectWidget:p}=u.widgets;return Hj.jsx(p,{schema:{type:"integer"},id:f,name:a,className:"form-control",options:{enumOptions:zB(t[0],t[1])},placeholder:e,value:r,disabled:i,readonly:s,autofocus:l,onChange:t=>n(e,t),onBlur:c,onFocus:d,registry:u,label:"","aria-describedby":NC(o)})}function BB({time:e=!1,disabled:t=!1,readonly:r=!1,autofocus:n=!1,options:o,id:i,name:s,registry:l,onBlur:u,onFocus:c,onChange:d,value:f}){const{translateString:p}=l,[h,m]=a.useState(f),[v,g]=a.useReducer(((e,t)=>Object.assign(Object.assign({},e),t)),MC(f,e));a.useEffect((()=>{const t=zC(v,e);!function(e){return Object.values(e).every((e=>-1!==e))}(v)||t===f?h!==f&&(m(f),g(MC(f,e))):d(t)}),[e,f,d,v,h]);const y=a.useCallback(((e,t)=>{g({[e]:t})}),[]),b=a.useCallback((n=>{if(n.preventDefault(),t||r)return;const o=MC((new Date).toJSON(),e);d(zC(o,e))}),[t,r,e]),w=a.useCallback((e=>{e.preventDefault(),t||r||d(void 0)}),[t,r,d]);return Hj.jsxs("ul",Object.assign({className:"list-inline"},{children:[DB(v,e,o.yearsRange).map(((e,o)=>Hj.jsx("li",Object.assign({className:"list-inline-item"},{children:Hj.jsx(LB,Object.assign({rootId:i,name:s,select:y},e,{disabled:t,readonly:r,registry:l,onBlur:u,onFocus:c,autofocus:n&&0===o}))}),o))),("undefined"===o.hideNowButton||!o.hideNowButton)&&Hj.jsx("li",Object.assign({className:"list-inline-item"},{children:Hj.jsx("a",Object.assign({href:"#",className:"btn btn-info btn-now",onClick:b},{children:p(HC.NowLabel)}))})),("undefined"===o.hideClearButton||!o.hideClearButton)&&Hj.jsx("li",Object.assign({className:"list-inline-item"},{children:Hj.jsx("a",Object.assign({href:"#",className:"btn btn-warning btn-clear",onClick:w},{children:p(HC.ClearLabel)}))}))]}))}function VB(e){var{time:t=!0}=e,r=ov(e,["time"]);const{AltDateWidget:n}=r.registry.widgets;return Hj.jsx(n,Object.assign({time:t},r))}function UB({schema:e,uiSchema:t,options:r,id:n,value:o,disabled:i,readonly:s,label:l,hideLabel:u,autofocus:c=!1,onBlur:d,onFocus:f,onChange:p,registry:h}){var m;const v=Kj("DescriptionFieldTemplate",h,r),g=FC(e),y=a.useCallback((e=>p(e.target.checked)),[p]),b=a.useCallback((e=>d(n,e.target.checked)),[d,n]),w=a.useCallback((e=>f(n,e.target.checked)),[f,n]),S=null!==(m=r.description)&&void 0!==m?m:e.description;return Hj.jsxs("div",Object.assign({className:"checkbox "+(i||s?"disabled":"")},{children:[!u&&!!S&&Hj.jsx(v,{id:EC(n),description:S,schema:e,uiSchema:t,registry:h}),Hj.jsxs("label",{children:[Hj.jsx("input",{type:"checkbox",id:n,name:n,checked:void 0!==o&&o,required:g,disabled:i||s,autoFocus:c,onChange:y,onBlur:b,onFocus:w,"aria-describedby":NC(n)}),TC(Hj.jsx("span",{children:l}),u)]})]}))}function WB({id:e,disabled:t,options:{inline:r=!1,enumOptions:n,enumDisabled:o,emptyValue:i},value:s,autofocus:l=!1,readonly:u,onChange:c,onBlur:d,onFocus:f}){const p=Array.isArray(s)?s:[s],h=a.useCallback((({target:{value:t}})=>d(e,Aj(t,n,i))),[d,e]),m=a.useCallback((({target:{value:t}})=>f(e,Aj(t,n,i))),[f,e]);return Hj.jsx("div",Object.assign({className:"checkboxes",id:e},{children:Array.isArray(n)&&n.map(((a,i)=>{const s=Mj(a.value,p),d=Array.isArray(o)&&-1!==o.indexOf(a.value),f=t||d||u?"disabled":"",v=Hj.jsxs("span",{children:[Hj.jsx("input",{type:"checkbox",id:RC(e,i),name:e,checked:s,value:String(i),disabled:t||d||u,autoFocus:l&&0===i,onChange:e=>{e.target.checked?c(Lj(i,p,n)):c(Ij(i,p,n))},onBlur:h,onFocus:m,"aria-describedby":NC(e)}),Hj.jsx("span",{children:a.label})]});return r?Hj.jsx("label",Object.assign({className:`checkbox-inline ${f}`},{children:v}),i):Hj.jsx("div",Object.assign({className:`checkbox ${f}`},{children:Hj.jsx("label",{children:v})}),i)}))}))}function qB(e){const{disabled:t,readonly:r,options:n,registry:o}=e,a=Kj("BaseInputTemplate",o,n);return Hj.jsx(a,Object.assign({type:"color"},e,{disabled:t||r}))}function KB(e){const{onChange:t,options:r,registry:n}=e,o=Kj("BaseInputTemplate",n,r),i=a.useCallback((e=>t(e||void 0)),[t]);return Hj.jsx(o,Object.assign({type:"date"},e,{onChange:i}))}function HB(e){const{onChange:t,value:r,options:n,registry:o}=e,a=Kj("BaseInputTemplate",o,n);return Hj.jsx(a,Object.assign({type:"datetime-local"},e,{value:JC(r),onChange:e=>{return t((r=e)?new Date(r).toJSON():void 0);var r}}))}function GB(e){const{options:t,registry:r}=e,n=Kj("BaseInputTemplate",r,t);return Hj.jsx(n,Object.assign({type:"email"},e))}function QB(e,t){return null===e?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function JB(e){const{name:t,size:r,type:n}=e;return new Promise(((o,a)=>{const i=new window.FileReader;i.onerror=a,i.onload=e=>{var a;"string"==typeof(null===(a=e.target)||void 0===a?void 0:a.result)?o({dataURL:QB(e.target.result,t),name:t,size:r,type:n}):o({dataURL:null,name:t,size:r,type:n})},i.readAsDataURL(e)}))}function YB({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:n,type:o,name:a}=e;return n?-1!==o.indexOf("image")?Hj.jsx("img",{src:n,style:{maxWidth:"100%"},className:"file-preview"}):Hj.jsxs(Hj.Fragment,{children:[" ",Hj.jsx("a",Object.assign({download:`preview-${a}`,href:n,className:"file-download"},{children:r(HC.PreviewLabel)}))]}):null}function XB({filesInfo:e,registry:t,preview:r}){if(0===e.length)return null;const{translateString:n}=t;return Hj.jsx("ul",Object.assign({className:"file-info"},{children:e.map(((e,o)=>{const{name:a,size:i,type:s}=e;return Hj.jsxs("li",{children:[Hj.jsx(aB,{children:n(HC.FilesInfo,[a,s,String(i)])}),r&&Hj.jsx(YB,{fileInfo:e,registry:t})]},o)}))}))}function ZB(e){return e.filter((e=>e)).map((e=>{const{blob:t,name:r}=function(e){const t=e.split(","),r=t[0].split(";"),n=r[0].replace("data:",""),o=r.filter((e=>"name"===e.split("=")[0]));let a;a=1!==o.length?"unknown":decodeURI(o[0].split("=")[1]);try{const e=atob(t[1]),r=[];for(let t=0;t<e.length;t++)r.push(e.charCodeAt(t));return{blob:new window.Blob([new Uint8Array(r)],{type:n}),name:a}}catch(t){return{blob:{size:0,type:t.message},name:e}}}(e);return{dataURL:e,name:r,size:t.size,type:t.type}}))}function eV(e){const{disabled:t,readonly:r,required:n,multiple:o,onChange:i,value:s,options:l,registry:u}=e,c=Kj("BaseInputTemplate",u,l),[d,f]=a.useState(Array.isArray(s)?ZB(s):ZB([s])),p=a.useCallback((e=>{var t;e.target.files&&(t=e.target.files,Promise.all(Array.from(t).map(JB))).then((e=>{const t=e.map((e=>e.dataURL));o?(f(d.concat(e[0])),i(s.concat(t[0]))):(f(e),i(t[0]))}))}),[o,s,d,i]);return Hj.jsxs("div",{children:[Hj.jsx(c,Object.assign({},e,{disabled:t||r,type:"file",required:!s&&n,onChangeOverride:p,value:"",accept:l.accept?String(l.accept):void 0})),Hj.jsx(XB,{filesInfo:d,registry:u,preview:l.filePreview})]})}function tV({id:e,value:t}){return Hj.jsx("input",{type:"hidden",id:e,name:e,value:void 0===t?"":t})}function rV(e){const{options:t,registry:r}=e,n=Kj("BaseInputTemplate",r,t);return Hj.jsx(n,Object.assign({type:"password"},e))}function nV({options:e,value:t,required:r,disabled:n,readonly:o,autofocus:i=!1,onBlur:s,onFocus:l,onChange:u,id:c}){const{enumOptions:d,enumDisabled:f,inline:p,emptyValue:h}=e,m=a.useCallback((({target:{value:e}})=>s(c,Aj(e,d,h))),[s,c]),v=a.useCallback((({target:{value:e}})=>l(c,Aj(e,d,h))),[l,c]);return Hj.jsx("div",Object.assign({className:"field-radio-group",id:c},{children:Array.isArray(d)&&d.map(((e,a)=>{const s=Mj(e.value,t),l=Array.isArray(f)&&-1!==f.indexOf(e.value),d=n||l||o?"disabled":"",h=Hj.jsxs("span",{children:[Hj.jsx("input",{type:"radio",id:RC(c,a),checked:s,name:c,required:r,value:String(a),disabled:n||l||o,autoFocus:i&&0===a,onChange:()=>u(e.value),onBlur:m,onFocus:v,"aria-describedby":NC(c)}),Hj.jsx("span",{children:e.label})]});return p?Hj.jsx("label",Object.assign({className:`radio-inline ${d}`},{children:h}),a):Hj.jsx("div",Object.assign({className:`radio ${d}`},{children:Hj.jsx("label",{children:h})}),a)}))}))}function oV(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return Hj.jsxs("div",Object.assign({className:"field-range-wrapper"},{children:[Hj.jsx(r,Object.assign({type:"range"},e)),Hj.jsx("span",Object.assign({className:"range-view"},{children:t}))]}))}function aV(e,t){return t?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}function iV({schema:e,id:t,options:r,value:n,required:o,disabled:i,readonly:s,multiple:l=!1,autofocus:u=!1,onChange:c,onBlur:d,onFocus:f,placeholder:p}){const{enumOptions:h,enumDisabled:m,emptyValue:v}=r,g=l?[]:"",y=a.useCallback((e=>{const r=aV(e,l);return f(t,Aj(r,h,v))}),[f,t,e,l,r]),b=a.useCallback((e=>{const r=aV(e,l);return d(t,Aj(r,h,v))}),[d,t,e,l,r]),w=a.useCallback((e=>{const t=aV(e,l);return c(Aj(t,h,v))}),[c,e,l,r]),S=Fj(n,h,l);return Hj.jsxs("select",Object.assign({id:t,name:t,multiple:l,className:"form-control",value:void 0===S?g:S,required:o,disabled:i||s,autoFocus:u,onBlur:b,onFocus:y,onChange:w,"aria-describedby":NC(t)},{children:[!l&&void 0===e.default&&Hj.jsx("option",Object.assign({value:""},{children:p})),Array.isArray(h)&&h.map((({value:e,label:t},r)=>{const n=m&&-1!==m.indexOf(e);return Hj.jsx("option",Object.assign({value:String(r),disabled:n},{children:t}),r)}))]}))}function sV({id:e,options:t={},placeholder:r,value:n,required:o,disabled:i,readonly:s,autofocus:l=!1,onChange:u,onBlur:c,onFocus:d}){const f=a.useCallback((({target:{value:e}})=>u(""===e?t.emptyValue:e)),[u,t.emptyValue]),p=a.useCallback((({target:{value:t}})=>c(e,t)),[c,e]),h=a.useCallback((({target:{value:t}})=>d(e,t)),[e,d]);return Hj.jsx("textarea",{id:e,name:e,className:"form-control",value:n||"",placeholder:r,required:o,disabled:i,readOnly:s,autoFocus:l,rows:t.rows,onBlur:p,onFocus:h,onChange:f,"aria-describedby":NC(e)})}function lV(e){const{options:t,registry:r}=e,n=Kj("BaseInputTemplate",r,t);return Hj.jsx(n,Object.assign({},e))}function uV(e){const{onChange:t,options:r,registry:n}=e,o=Kj("BaseInputTemplate",n,r),i=a.useCallback((e=>t(e?`${e}:00`:void 0)),[t]);return Hj.jsx(o,Object.assign({type:"time"},e,{onChange:i}))}function cV(e){const{options:t,registry:r}=e,n=Kj("BaseInputTemplate",r,t);return Hj.jsx(n,Object.assign({type:"url"},e))}function dV(e){const{options:t,registry:r}=e,n=Kj("BaseInputTemplate",r,t);return Hj.jsx(n,Object.assign({type:"number"},e))}function fV(){return{fields:{AnyOfField:cD,ArrayField:lD,BooleanField:uD,NumberField:pD,ObjectField:lB,OneOfField:cD,SchemaField:dB,StringField:fB,NullField:pB},templates:{ArrayFieldDescriptionTemplate:hB,ArrayFieldItemTemplate:mB,ArrayFieldTemplate:vB,ArrayFieldTitleTemplate:gB,ButtonTemplates:{SubmitButton:bB,AddButton:kB,CopyButton:SB,MoveDownButton:xB,MoveUpButton:_B,RemoveButton:$B},BaseInputTemplate:yB,DescriptionFieldTemplate:EB,ErrorListTemplate:jB,FieldTemplate:PB,FieldErrorTemplate:NB,FieldHelpTemplate:RB,ObjectFieldTemplate:TB,TitleFieldTemplate:IB,UnsupportedFieldTemplate:MB,WrapIfAdditionalTemplate:FB},widgets:{AltDateWidget:BB,AltDateTimeWidget:VB,CheckboxWidget:UB,CheckboxesWidget:WB,ColorWidget:qB,DateWidget:KB,DateTimeWidget:HB,EmailWidget:GB,FileWidget:eV,HiddenWidget:tV,PasswordWidget:rV,RadioWidget:nV,RangeWidget:oV,SelectWidget:iV,TextWidget:lV,TextareaWidget:sV,TimeWidget:uV,UpDownWidget:dV,URLWidget:cV},rootSchema:{},formContext:{},translateString:Tj}}sV.defaultProps={autofocus:!1,options:{}};let pV=class extends a.Component{constructor(e){if(super(e),this.getUsedFormData=(e,t)=>{if(0===t.length&&"object"!=typeof e)return e;const r=nD(e,t);return Array.isArray(e)?Object.keys(r).map((e=>r[e])):r},this.getFieldNames=(e,t)=>{const r=(e,n=[],o=[[]])=>(Object.keys(e).forEach((a=>{if("object"==typeof e[a]){const t=o.map((e=>[...e,a]));e[a][bd]&&""!==e[a][pd]?n.push(e[a][pd]):r(e[a],n,t)}else a===pd&&""!==e[a]&&o.forEach((e=>{const r=Lv(t,e);("object"!=typeof r||Jv(r))&&n.push(e)}))})),n);return r(e)},this.onChange=(e,t,r)=>{const{extraErrors:n,omitExtraData:o,liveOmit:a,noValidate:i,liveValidate:s,onChange:l}=this.props,{schemaUtils:u,schema:c}=this.state;if(Zc(e)||Array.isArray(e)){e=this.getStateFromProps(this.props,e).formData}const d=!i&&s;let f={formData:e,schema:c},p=e;if(!0===o&&!0===a){const t=u.retrieveSchema(c,e),r=u.toPathSchema(t,"",e),n=this.getFieldNames(r,e);p=this.getUsedFormData(e,n),f={formData:p}}if(d){const e=this.validate(p);let t=e.errors,r=e.errorSchema;const o=t,a=r;if(n){const o=YC(e,n);r=o.errorSchema,t=o.errors}f={formData:p,errors:t,errorSchema:r,schemaValidationErrors:o,schemaValidationErrorSchema:a}}else if(!i&&t){const e=n?vj(t,n,"preventDuplicates"):t;f={formData:p,errorSchema:e,errors:DC(e)}}this.setState(f,(()=>l&&l(Object.assign(Object.assign({},this.state),f),r)))},this.reset=()=>{const{onChange:e}=this.props,t={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(t,(()=>e&&e(Object.assign(Object.assign({},this.state),t))))},this.onBlur=(e,t)=>{const{onBlur:r}=this.props;r&&r(e,t)},this.onFocus=(e,t)=>{const{onFocus:r}=this.props;r&&r(e,t)},this.onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:t,extraErrors:r,noValidate:n,onSubmit:o}=this.props;let{formData:a}=this.state;const{schema:i,schemaUtils:s}=this.state;if(!0===t){const e=s.retrieveSchema(i,a),t=s.toPathSchema(e,"",a),r=this.getFieldNames(t,a);a=this.getUsedFormData(a,r)}if(n||this.validateForm()){const t=r||{},n=r?DC(r):[];this.setState({formData:a,errors:n,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{o&&o(Object.assign(Object.assign({},this.state),{formData:a,status:"submitted"}),e)}))}},!e.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(e,e.formData),this.props.onChange&&!nv(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=a.createRef()}UNSAFE_componentWillReceiveProps(e){const t=this.getStateFromProps(e,e.formData);nv(t.formData,e.formData)||nv(t.formData,this.state.formData)||!e.onChange||e.onChange(t),this.setState(t)}getStateFromProps(e,t){const r=this.state||{},n="schema"in e?e.schema:this.props.schema,o=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},a=void 0!==t,i="liveValidate"in e?e.liveValidate:this.props.liveValidate,s=a&&!e.noValidate&&i,l=n,u="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior;let c=r.schemaUtils;c&&!c.doesSchemaUtilsDiffer(e.validator,l,u)||(c=function(e,t,r={}){return new Rj(e,t,r)}(e.validator,l,u));const d=c.getDefaultFormState(n,t),f=c.retrieveSchema(n,d);let p,h,m=r.schemaValidationErrors,v=r.schemaValidationErrorSchema;if(s){const e=this.validate(d,n,c);p=e.errors,h=e.errorSchema,m=p,v=h}else{const t=e.noValidate?{errors:[],errorSchema:{}}:e.liveValidate?{errors:r.errors||[],errorSchema:r.errorSchema||{}}:{errors:r.schemaValidationErrors||[],errorSchema:r.schemaValidationErrorSchema||{}};p=t.errors,h=t.errorSchema}if(e.extraErrors){const t=YC({errorSchema:h,errors:p},e.extraErrors);h=t.errorSchema,p=t.errors}const g=c.toIdSchema(f,o["ui:rootFieldId"],d,e.idPrefix,e.idSeparator);return{schemaUtils:c,schema:n,uiSchema:o,idSchema:g,formData:d,edit:a,errors:p,errorSchema:h,schemaValidationErrors:m,schemaValidationErrorSchema:v}}shouldComponentUpdate(e,t){return function(e,t,r){const{props:n,state:o}=e;return!nv(n,t)||!nv(o,r)}(this,e,t)}validate(e,t=this.props.schema,r){const n=r||this.state.schemaUtils,{customValidate:o,transformErrors:a,uiSchema:i}=this.props,s=n.retrieveSchema(t,e);return n.getValidator().validateFormData(e,s,o,a,i)}renderErrors(e){const{errors:t,errorSchema:r,schema:n,uiSchema:o}=this.state,{formContext:a}=this.props,i=Kj("ErrorListTemplate",e,_d(o));return t&&t.length?Hj.jsx(i,{errors:t,errorSchema:r||{},schema:n,uiSchema:o,formContext:a,registry:e}):null}getRegistry(){var e;const{translateString:t,uiSchema:r={}}=this.props,{schemaUtils:n}=this.state,{fields:o,templates:a,widgets:i,formContext:s,translateString:l}=fV();return{fields:Object.assign(Object.assign({},o),this.props.fields),templates:Object.assign(Object.assign(Object.assign({},a),this.props.templates),{ButtonTemplates:Object.assign(Object.assign({},a.ButtonTemplates),null===(e=this.props.templates)||void 0===e?void 0:e.ButtonTemplates)}),widgets:Object.assign(Object.assign({},i),this.props.widgets),rootSchema:this.props.schema,formContext:this.props.formContext||s,schemaUtils:n,translateString:t||l,globalUiOptions:r["ui:globalOptions"]}}submit(){this.formElement.current&&(this.formElement.current.dispatchEvent(new CustomEvent("submit",{cancelable:!0})),this.formElement.current.requestSubmit())}focusOnError(e){const{idPrefix:t="root",idSeparator:r="_"}=this.props,{property:n}=e,o=GC(n);""===o[0]?o[0]=t:o.unshift(t);const a=o.join(r);let i=this.formElement.current.elements[a];i||(i=this.formElement.current.querySelector(`input[id^=${a}`)),i&&i.length&&(i=i[0]),i&&i.focus()}validateForm(){const{extraErrors:e,extraErrorsBlockSubmit:t,focusOnFirstError:r,onError:n}=this.props,{formData:o,errors:a}=this.state,i=this.validate(o);let s=i.errors,l=i.errorSchema;const u=s,c=l,d=s.length>0||e&&t;if(d){if(e){const t=YC(i,e);l=t.errorSchema,s=t.errors}r&&("function"==typeof r?r(s[0]):this.focusOnError(s[0])),this.setState({errors:s,errorSchema:l,schemaValidationErrors:u,schemaValidationErrorSchema:c},(()=>{n?n(s):console.error("Form validation failed",s)}))}else a.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!d}render(){const{children:e,id:t,idPrefix:r,idSeparator:n,className:o="",tagName:a,name:i,method:s,target:l,action:u,autoComplete:c,enctype:d,acceptcharset:f,noHtml5Validate:p=!1,disabled:h=!1,readonly:m=!1,formContext:v,showErrorList:g="top",_internalFormWrapper:y}=this.props,{schema:b,uiSchema:w,formData:S,errorSchema:x,idSchema:_}=this.state,$=this.getRegistry(),{SchemaField:k}=$.fields,{SubmitButton:E}=$.templates.ButtonTemplates,j=y?a:void 0,C=y||a||"form";let{[gd]:O={}}=_d(w);h&&(O=Object.assign(Object.assign({},O),{props:Object.assign(Object.assign({},O.props),{disabled:!0})}));const P={[xd]:{[gd]:O}};return Hj.jsxs(C,Object.assign({className:o||"rjsf",id:t,name:i,method:s,target:l,action:u,autoComplete:c,encType:d,acceptCharset:f,noValidate:p,onSubmit:this.onSubmit,as:j,ref:this.formElement},{children:["top"===g&&this.renderErrors($),Hj.jsx(k,{name:"",schema:b,uiSchema:w,errorSchema:x,idSchema:_,idPrefix:r,idSeparator:n,formContext:v,formData:S,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:$,disabled:h,readonly:m}),e||Hj.jsx(E,{uiSchema:P,registry:$}),"bottom"===g&&this.renderErrors($)]}))}};var hV={},mV={},vV={get exports(){return mV},set exports(e){mV=e}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(vV);var gV={};function yV(){return yV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yV.apply(this,arguments)}function bV(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function wV(e){if(!bV(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=wV(e[r])})),t}function SV(e,t,r={clone:!0}){const n=r.clone?yV({},e):e;return bV(e)&&bV(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(bV(t[o])&&o in e&&bV(e[o])?n[o]=SV(e[o],t[o],r):r.clone?n[o]=bV(t[o])?wV(t[o]):t[o]:n[o]=t[o])})),n}function xV(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function _V(e){if("string"!=typeof e)throw new Error(xV(7));return e.charAt(0).toUpperCase()+e.slice(1)}function $V(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function kV(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function EV(e,t){var r,n;return a.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(n=e.type)||null==(n=n._payload)||null==(n=n.value)?void 0:n.muiName)}function jV(e){return e&&e.ownerDocument||document}function CV(e){return jV(e).defaultView||window}function OV(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var PV="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;let NV=0;const RV=V["useId".toString()];function TV(e){if(void 0!==RV){const t=RV();return null!=e?e:t}return function(e){const[t,r]=a.useState(e),n=e||t;return a.useEffect((()=>{null==t&&(NV+=1,r(`mui-${NV}`))}),[t]),n}(e)}function AV({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=a.useRef(void 0!==e),[i,s]=a.useState(t);return[o?e:i,a.useCallback((e=>{o||s(e)}),[])]}function IV(e){const t=a.useRef(e);return PV((()=>{t.current=e})),a.useCallback(((...e)=>(0,t.current)(...e)),[])}function MV(...e){return a.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{OV(e,t)}))}),e)}let FV,zV=!0,DV=!1;const LV={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function BV(e){e.metaKey||e.altKey||e.ctrlKey||(zV=!0)}function VV(){zV=!1}function UV(){"hidden"===this.visibilityState&&DV&&(zV=!0)}function WV(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return zV||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!LV[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function qV(){const e=a.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",BV,!0),t.addEventListener("mousedown",VV,!0),t.addEventListener("pointerdown",VV,!0),t.addEventListener("touchstart",VV,!0),t.addEventListener("visibilitychange",UV,!0))}),[]),t=a.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!WV(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(DV=!0,window.clearTimeout(FV),FV=window.setTimeout((()=>{DV=!1}),100),t.current=!1,!0)},ref:e}}function KV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var HV={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function GV(e,t){const r=yV({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=yV({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},a&&Object.keys(a)?o&&Object.keys(o)?(r[n]=yV({},a),Object.keys(o).forEach((e=>{r[n][e]=GV(o[e],a[e])}))):r[n]=a:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function QV(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const JV=e=>e;var YV=(()=>{let e=JV;return{configure(t){e=t},generate:t=>e(t),reset(){e=JV}}})();const XV={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ZV(e,t,r="Mui"){const n=XV[t];return n?`${r}-${n}`:`${YV.generate(e)}-${t}`}function eU(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ZV(e,t,r)})),n}function tU(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function rU(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=rU(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function nU(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=rU(e))&&(n&&(n+=" "),n+=t);return n}function oU(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var aU=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,iU=oU((function(e){return aU.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var sU=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),lU="-ms-",uU="-moz-",cU="-webkit-",dU="comm",fU="rule",pU="decl",hU="@keyframes",mU=Math.abs,vU=String.fromCharCode,gU=Object.assign;function yU(e){return e.trim()}function bU(e,t,r){return e.replace(t,r)}function wU(e,t){return e.indexOf(t)}function SU(e,t){return 0|e.charCodeAt(t)}function xU(e,t,r){return e.slice(t,r)}function _U(e){return e.length}function $U(e){return e.length}function kU(e,t){return t.push(e),e}var EU=1,jU=1,CU=0,OU=0,PU=0,NU="";function RU(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:EU,column:jU,length:i,return:""}}function TU(e,t){return gU(RU("",null,null,"",null,null,0),e,{length:-e.length},t)}function AU(){return PU=OU>0?SU(NU,--OU):0,jU--,10===PU&&(jU=1,EU--),PU}function IU(){return PU=OU<CU?SU(NU,OU++):0,jU++,10===PU&&(jU=1,EU++),PU}function MU(){return SU(NU,OU)}function FU(){return OU}function zU(e,t){return xU(NU,e,t)}function DU(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function LU(e){return EU=jU=1,CU=_U(NU=e),OU=0,[]}function BU(e){return NU="",e}function VU(e){return yU(zU(OU-1,qU(91===e?e+2:40===e?e+1:e)))}function UU(e){for(;(PU=MU())&&PU<33;)IU();return DU(e)>2||DU(PU)>3?"":" "}function WU(e,t){for(;--t&&IU()&&!(PU<48||PU>102||PU>57&&PU<65||PU>70&&PU<97););return zU(e,FU()+(t<6&&32==MU()&&32==IU()))}function qU(e){for(;IU();)switch(PU){case e:return OU;case 34:case 39:34!==e&&39!==e&&qU(PU);break;case 40:41===e&&qU(e);break;case 92:IU()}return OU}function KU(e,t){for(;IU()&&e+PU!==57&&(e+PU!==84||47!==MU()););return"/*"+zU(t,OU-1)+"*"+vU(47===e?e:IU())}function HU(e){for(;!DU(MU());)IU();return zU(e,OU)}function GU(e){return BU(QU("",null,null,null,[""],e=LU(e),0,[0],e))}function QU(e,t,r,n,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,v=1,g=1,y=0,b="",w=o,S=a,x=n,_=b;v;)switch(h=y,y=IU()){case 40:if(108!=h&&58==SU(_,d-1)){-1!=wU(_+=bU(VU(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:_+=VU(y);break;case 9:case 10:case 13:case 32:_+=UU(h);break;case 92:_+=WU(FU()-1,7);continue;case 47:switch(MU()){case 42:case 47:kU(YU(KU(IU(),FU()),t,r),l);break;default:_+="/"}break;case 123*m:s[u++]=_U(_)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==g&&(_=bU(_,/\f/g,"")),p>0&&_U(_)-d&&kU(p>32?XU(_+";",n,r,d-1):XU(bU(_," ","")+";",n,r,d-2),l);break;case 59:_+=";";default:if(kU(x=JU(_,t,r,u,c,o,s,b,w=[],S=[],d),a),123===y)if(0===c)QU(_,t,x,x,w,a,d,s,S);else switch(99===f&&110===SU(_,3)?100:f){case 100:case 108:case 109:case 115:QU(e,x,x,n&&kU(JU(e,x,x,0,0,o,s,b,o,w=[],d),S),o,S,d,s,n?w:S);break;default:QU(_,x,x,x,[""],S,0,s,S)}}u=c=p=0,m=g=1,b=_="",d=i;break;case 58:d=1+_U(_),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==AU())continue;switch(_+=vU(y),y*m){case 38:g=c>0?1:(_+="\f",-1);break;case 44:s[u++]=(_U(_)-1)*g,g=1;break;case 64:45===MU()&&(_+=VU(IU())),f=MU(),c=d=_U(b=_+=HU(FU())),y++;break;case 45:45===h&&2==_U(_)&&(m=0)}}return a}function JU(e,t,r,n,o,a,i,s,l,u,c){for(var d=o-1,f=0===o?a:[""],p=$U(f),h=0,m=0,v=0;h<n;++h)for(var g=0,y=xU(e,d+1,d=mU(m=i[h])),b=e;g<p;++g)(b=yU(m>0?f[g]+" "+y:bU(y,/&\f/g,f[g])))&&(l[v++]=b);return RU(e,t,r,0===o?fU:s,l,u,c)}function YU(e,t,r){return RU(e,t,r,dU,vU(PU),xU(e,2,-2),0)}function XU(e,t,r,n){return RU(e,t,r,pU,xU(e,0,n),xU(e,n+1,-1),n)}function ZU(e,t){for(var r="",n=$U(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function eW(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case pU:return e.return=e.return||e.value;case dU:return"";case hU:return e.return=e.value+"{"+ZU(e.children,n)+"}";case fU:e.value=e.props.join(",")}return _U(r=ZU(e.children,n))?e.return=e.value+"{"+r+"}":""}var tW=function(e,t,r){for(var n=0,o=0;n=o,o=MU(),38===n&&12===o&&(t[r]=1),!DU(o);)IU();return zU(e,OU)},rW=function(e,t){return BU(function(e,t){var r=-1,n=44;do{switch(DU(n)){case 0:38===n&&12===MU()&&(t[r]=1),e[r]+=tW(OU-1,t,r);break;case 2:e[r]+=VU(n);break;case 4:if(44===n){e[++r]=58===MU()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=vU(n)}}while(n=IU());return e}(LU(e),t))},nW=new WeakMap,oW=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||nW.get(r))&&!n){nW.set(e,!0);for(var o=[],a=rW(t,o),i=r.props,s=0,l=0;s<a.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},aW=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function iW(e,t){switch(function(e,t){return 45^SU(e,0)?(((t<<2^SU(e,0))<<2^SU(e,1))<<2^SU(e,2))<<2^SU(e,3):0}(e,t)){case 5103:return cU+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return cU+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return cU+e+uU+e+lU+e+e;case 6828:case 4268:return cU+e+lU+e+e;case 6165:return cU+e+lU+"flex-"+e+e;case 5187:return cU+e+bU(e,/(\w+).+(:[^]+)/,cU+"box-$1$2"+lU+"flex-$1$2")+e;case 5443:return cU+e+lU+"flex-item-"+bU(e,/flex-|-self/,"")+e;case 4675:return cU+e+lU+"flex-line-pack"+bU(e,/align-content|flex-|-self/,"")+e;case 5548:return cU+e+lU+bU(e,"shrink","negative")+e;case 5292:return cU+e+lU+bU(e,"basis","preferred-size")+e;case 6060:return cU+"box-"+bU(e,"-grow","")+cU+e+lU+bU(e,"grow","positive")+e;case 4554:return cU+bU(e,/([^-])(transform)/g,"$1"+cU+"$2")+e;case 6187:return bU(bU(bU(e,/(zoom-|grab)/,cU+"$1"),/(image-set)/,cU+"$1"),e,"")+e;case 5495:case 3959:return bU(e,/(image-set\([^]*)/,cU+"$1$`$1");case 4968:return bU(bU(e,/(.+:)(flex-)?(.*)/,cU+"box-pack:$3"+lU+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+cU+e+e;case 4095:case 3583:case 4068:case 2532:return bU(e,/(.+)-inline(.+)/,cU+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_U(e)-1-t>6)switch(SU(e,t+1)){case 109:if(45!==SU(e,t+4))break;case 102:return bU(e,/(.+:)(.+)-([^]+)/,"$1"+cU+"$2-$3$1"+uU+(108==SU(e,t+3)?"$3":"$2-$3"))+e;case 115:return~wU(e,"stretch")?iW(bU(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==SU(e,t+1))break;case 6444:switch(SU(e,_U(e)-3-(~wU(e,"!important")&&10))){case 107:return bU(e,":",":"+cU)+e;case 101:return bU(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+cU+(45===SU(e,14)?"inline-":"")+"box$3$1"+cU+"$2$3$1"+lU+"$2box$3")+e}break;case 5936:switch(SU(e,t+11)){case 114:return cU+e+lU+bU(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return cU+e+lU+bU(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return cU+e+lU+bU(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return cU+e+lU+e+e}return e}var sW=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case pU:e.return=iW(e.value,e.length);break;case hU:return ZU([TU(e,{value:bU(e.value,"@","@"+cU)})],n);case fU:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ZU([TU(e,{props:[bU(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return ZU([TU(e,{props:[bU(t,/:(plac\w+)/,":"+cU+"input-$1")]}),TU(e,{props:[bU(t,/:(plac\w+)/,":-moz-$1")]}),TU(e,{props:[bU(t,/:(plac\w+)/,lU+"input-$1")]})],n)}return""}))}}],lW=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,o,a=e.stylisPlugins||sW,i={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)}));var l,u,c=[eW,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=$U(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}([oW,aW].concat(a,c));o=function(e,t,r,n){l=r,function(e){ZU(GU(e),d)}(e?e+"{"+t.styles+"}":t.styles),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new sU({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return f.sheet.hydrate(s),f},uW={},cW={get exports(){return uW},set exports(e){uW=e}},dW={},fW="function"==typeof Symbol&&Symbol.for,pW=fW?Symbol.for("react.element"):60103,hW=fW?Symbol.for("react.portal"):60106,mW=fW?Symbol.for("react.fragment"):60107,vW=fW?Symbol.for("react.strict_mode"):60108,gW=fW?Symbol.for("react.profiler"):60114,yW=fW?Symbol.for("react.provider"):60109,bW=fW?Symbol.for("react.context"):60110,wW=fW?Symbol.for("react.async_mode"):60111,SW=fW?Symbol.for("react.concurrent_mode"):60111,xW=fW?Symbol.for("react.forward_ref"):60112,_W=fW?Symbol.for("react.suspense"):60113,$W=fW?Symbol.for("react.suspense_list"):60120,kW=fW?Symbol.for("react.memo"):60115,EW=fW?Symbol.for("react.lazy"):60116,jW=fW?Symbol.for("react.block"):60121,CW=fW?Symbol.for("react.fundamental"):60117,OW=fW?Symbol.for("react.responder"):60118,PW=fW?Symbol.for("react.scope"):60119;function NW(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case pW:switch(e=e.type){case wW:case SW:case mW:case gW:case vW:case _W:return e;default:switch(e=e&&e.$$typeof){case bW:case xW:case EW:case kW:case yW:return e;default:return t}}case hW:return t}}}function RW(e){return NW(e)===SW}dW.AsyncMode=wW,dW.ConcurrentMode=SW,dW.ContextConsumer=bW,dW.ContextProvider=yW,dW.Element=pW,dW.ForwardRef=xW,dW.Fragment=mW,dW.Lazy=EW,dW.Memo=kW,dW.Portal=hW,dW.Profiler=gW,dW.StrictMode=vW,dW.Suspense=_W,dW.isAsyncMode=function(e){return RW(e)||NW(e)===wW},dW.isConcurrentMode=RW,dW.isContextConsumer=function(e){return NW(e)===bW},dW.isContextProvider=function(e){return NW(e)===yW},dW.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===pW},dW.isForwardRef=function(e){return NW(e)===xW},dW.isFragment=function(e){return NW(e)===mW},dW.isLazy=function(e){return NW(e)===EW},dW.isMemo=function(e){return NW(e)===kW},dW.isPortal=function(e){return NW(e)===hW},dW.isProfiler=function(e){return NW(e)===gW},dW.isStrictMode=function(e){return NW(e)===vW},dW.isSuspense=function(e){return NW(e)===_W},dW.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===mW||e===SW||e===gW||e===vW||e===_W||e===$W||"object"==typeof e&&null!==e&&(e.$$typeof===EW||e.$$typeof===kW||e.$$typeof===yW||e.$$typeof===bW||e.$$typeof===xW||e.$$typeof===CW||e.$$typeof===OW||e.$$typeof===PW||e.$$typeof===jW)},dW.typeOf=NW,function(e){e.exports=dW}(cW);var TW=uW,AW={};AW[TW.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},AW[TW.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var IW=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},MW=function(e,t,r){IW(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var FW={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},zW=/[A-Z]|^ms/g,DW=/_EMO_([^_]+?)_([^]*?)_EMO_/g,LW=function(e){return 45===e.charCodeAt(1)},BW=function(e){return null!=e&&"boolean"!=typeof e},VW=oU((function(e){return LW(e)?e:e.replace(zW,"-$&").toLowerCase()})),UW=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(DW,(function(e,t,r){return qW={name:t,styles:r,next:qW},t}))}return 1===FW[e]||LW(e)||"number"!=typeof t||0===t?t:t+"px"};function WW(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return qW={name:r.name,styles:r.styles,next:qW},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)qW={name:n.name,styles:n.styles,next:qW},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=WW(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?n+=a+"{"+t[i]+"}":BW(i)&&(n+=VW(a)+":"+UW(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=WW(e,t,i);switch(a){case"animation":case"animationName":n+=VW(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)BW(i[l])&&(n+=VW(a)+":"+UW(a,i[l])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=qW,a=r(e);return qW=o,WW(e,t,a)}}if(null==t)return r;var i=t[r];return void 0!==i?i:r}var qW,KW=/label:\s*([^\s;\n{]+)\s*(;|$)/g,HW=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";qW=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=WW(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=WW(r,t,e[i]),n&&(o+=a[i]);KW.lastIndex=0;for(var s,l="";null!==(s=KW.exec(o));)l+="-"+s[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:qW}},GW=!!V.useInsertionEffect&&V.useInsertionEffect,QW=GW||function(e){return e()},JW=GW||a.useLayoutEffect,YW=a.createContext("undefined"!=typeof HTMLElement?lW({key:"css"}):null);YW.Provider;var XW=function(e){return a.forwardRef((function(t,r){var n=a.useContext(YW);return e(t,n,r)}))},ZW=a.createContext({}),eq=XW((function(e,t){var r=e.styles,n=HW([r],void 0,a.useContext(ZW)),o=a.useRef();return JW((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),o.current=[r,a],function(){r.flush()}}),[t]),JW((function(){var e=o.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&MW(t,n.next,!0),r.tags.length){var a=r.tags[r.tags.length-1].nextElementSibling;r.before=a,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function tq(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return HW(t)}var rq=function(){var e=tq.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},nq=iU,oq=function(e){return"theme"!==e},aq=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?nq:oq},iq=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},sq=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return IW(t,r,n),QW((function(){return MW(t,r,n)})),null},lq=function e(t,r){var n,o,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var l=iq(t,r,i),u=l||aq(s),c=!u("as");return function(){var d=arguments,f=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&f.push("label:"+n+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,h=1;h<p;h++)f.push(d[h],d[0][h])}var m=XW((function(e,t,r){var n,i,d,p,h=c&&e.as||s,m="",v=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=a.useContext(ZW)}"string"==typeof e.className?(n=t.registered,i=v,d=e.className,p="",d.split(" ").forEach((function(e){void 0!==n[e]?i.push(n[e]+";"):p+=e+" "})),m=p):null!=e.className&&(m=e.className+" ");var b=HW(f.concat(v),t.registered,g);m+=t.key+"-"+b.name,void 0!==o&&(m+=" "+o);var w=c&&void 0===l?aq(h):u,S={};for(var x in e)c&&"as"===x||w(x)&&(S[x]=e[x]);return S.className=m,S.ref=r,a.createElement(a.Fragment,null,a.createElement(sq,{cache:t,serialized:b,isStringTag:"string"==typeof h}),a.createElement(h,S))}));return m.displayName=void 0!==n?n:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=f,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,n){return e(t,yV({},r,n,{shouldForwardProp:iq(m,n,!0)})).apply(void 0,f)},m}}.bind();function uq(e){const{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return Hj.jsx(eq,{styles:n})}
56
+ deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);a(e,t),i(e,r)}};function a(e,r=e.schema){const{gen:o,data:a,it:i}=e;if(0===Object.keys(r).length)return;const s=o.let("missing");for(const l in r){const u=r[l];if(0===u.length)continue;const c=(0,n.propertyInData)(o,a,l,i.opts.ownProperties);e.setParams({property:l,depsCount:u.length,deps:u.join(", ")}),i.allErrors?o.if(c,(()=>{for(const t of u)(0,n.checkReportMissingProp)(e,t)})):(o.if(t._`${c} && (${(0,n.checkMissingProp)(e,u,s)})`),(0,n.reportMissingProp)(e,s),o.else())}}function i(e,t=e.schema){const{gen:o,data:a,keyword:i,it:s}=e,l=o.name("valid");for(const u in t)(0,r.alwaysValidSchema)(s,t[u])||(o.if((0,n.propertyInData)(o,a,u,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:u},l);e.mergeValidEvaluated(t,l)}),(()=>o.var(l,!0))),e.ok(l))}e.validatePropertyDeps=a,e.validateSchemaDeps=i,e.default=o}(_F);var $F={};Object.defineProperty($F,"__esModule",{value:!0});const kF=dA,EF=hA,jF={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>kF._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if((0,EF.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,kF.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};$F.default=jF;var CF={};Object.defineProperty(CF,"__esModule",{value:!0});const OF=TA(),PF=dA,NF=bA(),RF=hA,TF={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>PF._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,errsCount:a,it:i}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:s,opts:l}=i;if(i.props=!0,"all"!==l.removeAdditional&&(0,RF.alwaysValidSchema)(i,r))return;const u=(0,OF.allSchemaProperties)(n.properties),c=(0,OF.allSchemaProperties)(n.patternProperties);function d(e){t.code(PF._`delete ${o}[${e}]`)}function f(n){if("all"===l.removeAdditional||l.removeAdditional&&!1===r)d(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(s||t.break());if("object"==typeof r&&!(0,RF.alwaysValidSchema)(i,r)){const r=t.name("valid");"failing"===l.removeAdditional?(p(n,r,!1),t.if((0,PF.not)(r),(()=>{e.reset(),d(n)}))):(p(n,r),s||t.if((0,PF.not)(r),(()=>t.break())))}}}function p(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:RF.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",o,(r=>{u.length||c.length?t.if(function(r){let o;if(u.length>8){const e=(0,RF.schemaRefOrVal)(i,n.properties,"properties");o=(0,OF.isOwnProperty)(t,e,r)}else o=u.length?(0,PF.or)(...u.map((e=>PF._`${r} === ${e}`))):PF.nil;return c.length&&(o=(0,PF.or)(o,...c.map((t=>PF._`${(0,OF.usePattern)(e,t)}.test(${r})`)))),(0,PF.not)(o)}(r),(()=>f(r))):f(r)})),e.ok(PF._`${a} === ${NF.default.errors}`)}};CF.default=TF;var AF={};Object.defineProperty(AF,"__esModule",{value:!0});const IF=tI(),MF=TA(),FF=hA,zF=CF,DF={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;"all"===a.opts.removeAdditional&&void 0===n.additionalProperties&&zF.default.code(new IF.KeywordCxt(a,zF.default,"additionalProperties"));const i=(0,MF.allSchemaProperties)(r);for(const e of i)a.definedProperties.add(e);a.opts.unevaluated&&i.length&&!0!==a.props&&(a.props=FF.mergeEvaluated.props(t,(0,FF.toHash)(i),a.props));const s=i.filter((e=>!(0,FF.alwaysValidSchema)(a,r[e])));if(0===s.length)return;const l=t.name("valid");for(const r of s)u(r)?c(r):(t.if((0,MF.propertyInData)(t,o,r,a.opts.ownProperties)),c(r),a.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(l);function u(e){return a.opts.useDefaults&&!a.compositeRule&&void 0!==r[e].default}function c(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},l)}}};AF.default=DF;var LF={};Object.defineProperty(LF,"__esModule",{value:!0});const BF=TA(),VF=dA,UF=hA,WF=hA,qF={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:o,it:a}=e,{opts:i}=a,s=(0,BF.allSchemaProperties)(r),l=s.filter((e=>(0,UF.alwaysValidSchema)(a,r[e])));if(0===s.length||l.length===s.length&&(!a.opts.unevaluated||!0===a.props))return;const u=i.strictSchema&&!i.allowMatchingProperties&&o.properties,c=t.name("valid");!0===a.props||a.props instanceof VF.Name||(a.props=(0,WF.evaluatedPropsToName)(t,a.props));const{props:d}=a;function f(e){for(const t in u)new RegExp(e).test(t)&&(0,UF.checkStrictMode)(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function p(r){t.forIn("key",n,(n=>{t.if(VF._`${(0,BF.usePattern)(e,r)}.test(${n})`,(()=>{const o=l.includes(r);o||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:WF.Type.Str},c),a.opts.unevaluated&&!0!==d?t.assign(VF._`${d}[${n}]`,!0):o||a.allErrors||t.if((0,VF.not)(c),(()=>t.break()))}))}))}!function(){for(const e of s)u&&f(e),a.allErrors?p(e):(t.var(c,!0),p(e),t.if(c))}()}};LF.default=qF;var KF={};Object.defineProperty(KF,"__esModule",{value:!0});const HF=hA,GF={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,HF.alwaysValidSchema)(n,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};KF.default=GF;var QF={};Object.defineProperty(QF,"__esModule",{value:!0});const JF={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:TA().validateUnion,error:{message:"must match a schema in anyOf"}};QF.default=JF;var YF={};Object.defineProperty(YF,"__esModule",{value:!0});const XF=dA,ZF=hA,ez={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>XF._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const a=r,i=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block((function(){a.forEach(((r,n)=>{let a;(0,ZF.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},l),n>0&&t.if(XF._`${l} && ${i}`).assign(i,!1).assign(s,XF._`[${s}, ${n}]`).else(),t.if(l,(()=>{t.assign(i,!0),t.assign(s,n),a&&e.mergeEvaluated(a,XF.Name)}))}))})),e.result(i,(()=>e.reset()),(()=>e.error(!0)))}};YF.default=ez;var tz={};Object.defineProperty(tz,"__esModule",{value:!0});const rz=hA,nz={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if((0,rz.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};tz.default=nz;var oz={};Object.defineProperty(oz,"__esModule",{value:!0});const az=dA,iz=hA,sz={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>az.str`must match "${e.ifClause}" schema`,params:({params:e})=>az._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&(0,iz.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=lz(n,"then"),a=lz(n,"else");if(!o&&!a)return;const i=t.let("valid",!0),s=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(s,l("then",r),l("else",r))}else o?t.if(s,l("then")):t.if((0,az.not)(s),l("else"));function l(r,n){return()=>{const o=e.subschema({keyword:r},s);t.assign(i,s),e.mergeValidEvaluated(o,i),n?t.assign(n,az._`${r}`):e.setParams({ifClause:r})}}e.pass(i,(()=>e.error(!0)))}};function lz(e,t){const r=e.schema[t];return void 0!==r&&!(0,iz.alwaysValidSchema)(e,r)}oz.default=sz;var uz={};Object.defineProperty(uz,"__esModule",{value:!0});const cz=hA,dz={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,cz.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};uz.default=dz,Object.defineProperty(XM,"__esModule",{value:!0});const fz=ZM,pz=oF,hz=aF,mz=pF,vz=bF,gz=_F,yz=$F,bz=CF,wz=AF,Sz=LF,xz=KF,_z=QF,$z=YF,kz=tz,Ez=oz,jz=uz;XM.default=function(e=!1){const t=[xz.default,_z.default,$z.default,kz.default,Ez.default,jz.default,yz.default,bz.default,gz.default,wz.default,Sz.default];return e?t.push(pz.default,mz.default):t.push(fz.default,hz.default),t.push(vz.default),t};var Cz={},Oz={};Object.defineProperty(Oz,"__esModule",{value:!0});const Pz=dA,Nz={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>Pz.str`must match format "${e}"`,params:({schemaCode:e})=>Pz._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:i,it:s}=e,{opts:l,errSchemaPath:u,schemaEnv:c,self:d}=s;l.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:d.formats,code:l.code.formats}),a=r.const("fDef",Pz._`${o}[${i}]`),s=r.let("fType"),u=r.let("format");r.if(Pz._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(s,Pz._`${a}.type || "string"`).assign(u,Pz._`${a}.validate`)),(()=>r.assign(s,Pz._`"string"`).assign(u,a))),e.fail$data((0,Pz.or)(!1===l.strictSchema?Pz.nil:Pz._`${i} && !${u}`,function(){const e=c.$async?Pz._`(${a}.async ? await ${u}(${n}) : ${u}(${n}))`:Pz._`${u}(${n})`,r=Pz._`(typeof ${u} == "function" ? ${e} : ${u}.test(${n}))`;return Pz._`${u} && ${u} !== true && ${s} === ${t} && !${r}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1===l.strictSchema)return void d.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===o)return;const[i,s,f]=function(e){const t=e instanceof RegExp?(0,Pz.regexpCode)(e):l.code.formats?Pz._`${l.code.formats}${(0,Pz.getProperty)(a)}`:void 0,n=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,Pz._`${n}.validate`];return["string",e,n]}(o);i===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!c.$async)throw new Error("async format in sync schema");return Pz._`await ${f}(${n})`}return"function"==typeof s?Pz._`${f}(${n})`:Pz._`${f}.test(${n})`}())}())}};Oz.default=Nz,Object.defineProperty(Cz,"__esModule",{value:!0});const Rz=[Oz.default];Cz.default=Rz;var Tz={};Object.defineProperty(Tz,"__esModule",{value:!0}),Tz.contentVocabulary=Tz.metadataVocabulary=void 0,Tz.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Tz.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(EI,"__esModule",{value:!0});const Az=VI,Iz=XM,Mz=Cz,Fz=Tz,zz=[jI.default,Az.default,(0,Iz.default)(),Mz.default,Fz.metadataVocabulary,Fz.contentVocabulary];EI.default=zz;var Dz={},Lz={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(Lz),Object.defineProperty(Dz,"__esModule",{value:!0});const Bz=dA,Vz=Lz,Uz=lI,Wz=hA,qz={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===Vz.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>Bz._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:n,parentSchema:o,it:a}=e,{oneOf:i}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const s=n.propertyName;if("string"!=typeof s)throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const l=t.let("valid",!1),u=t.const("tag",Bz._`${r}${(0,Bz.getProperty)(s)}`);function c(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,Bz.Name),n}t.if(Bz._`typeof ${u} == "string"`,(()=>function(){const r=function(){var e;const t={},r=l(o);let n=!0;for(let t=0;t<i.length;t++){let o=i[t];(null==o?void 0:o.$ref)&&!(0,Wz.schemaHasRulesButRef)(o,a.self.RULES)&&(o=Uz.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,null==o?void 0:o.$ref),o instanceof Uz.SchemaEnv&&(o=o.schema));const c=null===(e=null==o?void 0:o.properties)||void 0===e?void 0:e[s];if("object"!=typeof c)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);n=n&&(r||l(o)),u(c,t)}if(!n)throw new Error(`discriminator: "${s}" must be required`);return t;function l({required:e}){return Array.isArray(e)&&e.includes(s)}function u(e,t){if(e.const)c(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`);for(const r of e.enum)c(r,t)}}function c(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${s}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(Bz._`${u} === ${e}`),t.assign(l,c(r[e]));t.else(),e.error(!1,{discrError:Vz.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}()),(()=>e.error(!1,{discrError:Vz.DiscrError.Tag,tag:u,tagName:s}))),e.ok(l)}};Dz.default=qz;var Kz={$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};!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=void 0;const r=sA,n=EI,o=Dz,a=Kz,i=["/properties"],s="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=tI();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var c=dA;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 d=oI();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=sI();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})}(iA,aA),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=aA,r=dA,n=r.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},a={message:({keyword:e,schemaCode:t})=>r.str`should be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(e){const{gen:n,data:a,schemaCode:i,keyword:s,it:l}=e,{opts:u,self:c}=l;if(!u.validateFormats)return;const d=new t.KeywordCxt(l,c.RULES.all.format.definition,"format");function f(e){return r._`${e}.compare(${a}, ${i}) ${o[s].fail} 0`}d.$data?function(){const t=n.scopeValue("formats",{ref:c.formats,code:u.code.formats}),o=n.const("fmt",r._`${t}[${d.schemaCode}]`);e.fail$data(r.or(r._`typeof ${o} != "object"`,r._`${o} instanceof RegExp`,r._`typeof ${o}.compare != "function"`,f(o)))}():function(){const t=d.schema,o=c.formats[t];if(!o||!0===o)return;if("object"!=typeof o||o instanceof RegExp||"function"!=typeof o.compare)throw new Error(`"${s}": format "${t}" does not define "compare" function`);const a=n.scopeValue("formats",{key:t,ref:o,code:u.code.formats?r._`${u.code.formats}${r.getProperty(t)}`:void 0});e.fail$data(f(a))}()},dependencies:["format"]};e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)}(oA),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=nA,n=oA,o=dA,a=new o.Name("fullFormats"),i=new o.Name("fastFormats"),s=(e,t={keywords:!0})=>{if(Array.isArray(t))return l(e,t,r.fullFormats,a),e;const[o,s]="fast"===t.mode?[r.fastFormats,i]:[r.fullFormats,a];return l(e,t.formats||r.formatNames,o,s),t.keywords&&n.default(e),e};function l(e,t,r,n){var a,i;null!==(a=(i=e.opts.code).formats)&&void 0!==a||(i.formats=o._`require("ajv-formats/dist/formats").${n}`);for(const n of t)e.addFormat(n,r[n])}s.get=(e,t="full")=>{const n=("fast"===t?r.fastFormats:r.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n},e.exports=t=s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s}(rA,tA);var Hz=n(tA);const Gz={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0},Qz=/^(#?([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*\)))$/,Jz=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function Yz(e,t,r,n,o,a,i){const{validationError:s}=t;let l=function(e=[],t){return e.map((e=>{const{instancePath:r,keyword:n,params:o,schemaPath:a,parentSchema:i}=e,s=ov(e,["instancePath","keyword","params","schemaPath","parentSchema"]);let{message:l=""}=s,u=r.replace(/\//g,"."),c=`${u} ${l}`.trim();if("missingProperty"in o){u=u?`${u}.${o.missingProperty}`:o.missingProperty;const e=o.missingProperty,r=_d(Lv(t,`${u.replace(/^\./,"")}`)).title;if(r)l=l.replace(e,r);else{const t=Lv(i,[md,e,"title"]);t&&(l=l.replace(e,t))}c=l}else{const e=_d(Lv(t,`${u.replace(/^\./,"")}`)).title;if(e)c=`'${e}' ${l}`.trim();else{const e=null==i?void 0:i.title;e&&(c=`'${e}' ${l}`.trim())}}return{name:n,property:u,message:l,params:o,stack:c,schemaPath:a}}))}(t.errors,i);s&&(l=[...l,{stack:s.message}]),"function"==typeof a&&(l=a(l,i));let u=function(e){const t=new qj;return e.length&&e.forEach((e=>{const{property:r,message:n}=e,o="."===r?[]:XC(r);o.length>0&&""===o[0]&&o.splice(0,1),n&&t.addErrors(n,o)})),t.ErrorSchema}(l);if(s&&(u=Object.assign(Object.assign({},u),{$schema:{__errors:[s.message]}})),"function"!=typeof o)return{errors:l,errorSchema:u};const c=jj(e,n,r,n,!0);return tO({errors:l,errorSchema:u},ZC(o(c,Zd(c),i)))}class Xz{constructor(e,t){const{additionalMetaSchemas:r,customFormats:n,ajvOptionsOverrides:o,ajvFormatOptions:a,AjvClass:i}=e;this.ajv=function(e,t,r={},n,o=eA){const a=new o(Object.assign(Object.assign({},Gz),r));return n?Hz(a,n):!1!==n&&Hz(a),a.addFormat("data-url",Jz),a.addFormat("color",Qz),a.addKeyword(td),a.addKeyword(bd),Array.isArray(e)&&a.addMetaSchema(e),xf(t)&&Object.keys(t).forEach((e=>{a.addFormat(e,t[e])})),a}(r,n,o,a,i),this.localizer=t}toErrorList(e,t=[]){return UC(e,t)}rawValidation(e,t){let r,n,o;e[cd]&&(n=this.ajv.getSchema(e[cd]));try{void 0===n&&(n=this.ajv.compile(e)),n(t)}catch(e){r=e}return n&&("function"==typeof this.localizer&&this.localizer(n.errors),o=n.errors||void 0,n.errors=null),{errors:o,validationError:r}}validateFormData(e,t,r,n,o){return Yz(this,this.rawValidation(t,e),e,t,r,n,o)}isValid(e,t,r){var n,o;const a=null!==(n=r[cd])&&void 0!==n?n:wd;try{this.ajv.addSchema(r,a);const n=rO(e),i=null!==(o=n[cd])&&void 0!==o?o:function(e){const t=new Set;return JSON.stringify(e,((e,r)=>(t.add(e),r))),function(e){let t=0;for(let r=0;r<e.length;r+=1)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t.toString(16)}(JSON.stringify(e,Array.from(t).sort()))}(n);let s;s=this.ajv.getSchema(i),void 0===s&&(s=this.ajv.addSchema(n,i).getSchema(i)||this.ajv.compile(n));return s(t)}catch(e){return console.warn("Error encountered compiling schema:",e),!1}finally{this.ajv.removeSchema(a)}}}var Zz=function(e={},t){return new Xz(e,t)}(),eD=zv,tD=DS,rD=Tv;var nD=function(e,t,r){for(var n=-1,o=t.length,a={};++n<o;){var i=t[n],s=eD(e,i);r(s,i)&&tD(a,rD(i,e),s)}return a},oD=nD,aD=Fw;var iD=function(e,t){return oD(e,t,(function(t,r){return aD(e,r)}))},sD=zb((function(e,t){return null==e?{}:iD(e,t)}));let lD=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"");function uD(){return lD()}function cD(e){return Array.isArray(e)?e.map((e=>({key:uD(),item:e}))):[]}function dD(e){return Array.isArray(e)?e.map((e=>e.item)):[]}class fD extends a.Component{constructor(e){super(e),this._getNewFormDataRow=()=>{const{schema:e,registry:t}=this.props,{schemaUtils:r}=t;let n=e.items;return yj(e)&&function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),Zc(e.additionalItems)}(e)&&(n=e.additionalItems),r.getDefaultFormState(n)},this.onAddClick=e=>{this._handleAddClick(e)},this.onAddIndexClick=e=>t=>{this._handleAddClick(t,e)},this.onCopyIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r<=e?BS(a,[r],n[t]):r>e&&BS(a,[r+1],n[t])}}const i={key:uD(),item:ex(o[e].item)},s=[...o];void 0!==e?s.splice(e+1,0,i):s.push(i),this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(dD(s),a)))},this.onDropIndexClick=e=>t=>{t&&t.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const t in n){const r=parseInt(t);r<e?BS(a,[r],n[t]):r>e&&BS(a,[r-1],n[t])}}const i=o.filter(((t,r)=>r!==e));this.setState({keyedFormData:i,updatedKeyedFormData:!0},(()=>r(dD(i),a)))},this.onReorderClick=(e,t)=>r=>{r&&(r.preventDefault(),r.currentTarget.blur());const{onChange:n,errorSchema:o}=this.props;let a;if(o){a={};for(const r in o){const n=parseInt(r);n==e?BS(a,[t],o[e]):n==t?BS(a,[e],o[t]):BS(a,[r],o[n])}}const{keyedFormData:i}=this.state;const s=function(){const r=i.slice();return r.splice(e,1),r.splice(t,0,i[e]),r}();this.setState({keyedFormData:s},(()=>n(dD(s),a)))},this.onChangeForIndex=e=>(t,r,n)=>{const{formData:o,onChange:a,errorSchema:i}=this.props,s=(Array.isArray(o)?o:[]).map(((r,n)=>e===n?void 0===t?null:t:r));a(s,i&&i&&Object.assign(Object.assign({},i),{[e]:r}),n)},this.onSelectChange=e=>{const{onChange:t,idSchema:r}=this.props;t(e,void 0,r&&r.$id)};const{formData:t=[]}=e,r=cD(t);this.state={keyedFormData:r,updatedKeyedFormData:!1}}static getDerivedStateFromProps(e,t){if(t.updatedKeyedFormData)return{updatedKeyedFormData:!1};const r=Array.isArray(e.formData)?e.formData:[],n=t.keyedFormData||[];return{keyedFormData:r.length===n.length?n.map(((e,t)=>({key:e.key,item:r[t]}))):cD(r)}}get itemTitle(){const{schema:e,registry:t}=this.props,{translateString:r}=t;return Lv(e,[fd,"title"],Lv(e,[fd,"description"],r(YC.ArrayItemTitle)))}isItemRequired(e){return Array.isArray(e.type)?!e.type.includes("null"):"null"!==e.type}canAddItem(e){const{schema:t,uiSchema:r,registry:n}=this.props;let{addable:o}=_d(r,n.globalUiOptions);return!1!==o&&(o=void 0===t.maxItems||e.length<t.maxItems),o}_handleAddClick(e,t){e&&e.preventDefault();const{onChange:r,errorSchema:n}=this.props,{keyedFormData:o}=this.state;let a;if(n){a={};for(const e in n){const r=parseInt(e);void 0===t||r<t?BS(a,[r],n[e]):r>=t&&BS(a,[r+1],n[e])}}const i={key:uD(),item:this._getNewFormDataRow()},s=[...o];void 0!==t?s.splice(t,0,i):s.push(i),this.setState({keyedFormData:s,updatedKeyedFormData:!0},(()=>r(dD(s),a)))}render(){const{schema:e,uiSchema:t,idSchema:r,registry:n}=this.props,{schemaUtils:o,translateString:a}=n;if(!(fd in e)){const o=Jj("UnsupportedFieldTemplate",n,_d(t));return Yj.jsx(o,{schema:e,idSchema:r,reason:a(YC.MissingItems),registry:n})}return o.isMultiSelect(e)?this.renderMultiSelect():Cj(t)?this.renderCustomWidget():yj(e)?this.renderFixedArray():o.isFilesArray(e,t)?this.renderFiles():this.renderNormalArray()}renderNormalArray(){const{schema:e,uiSchema:t={},errorSchema:r,idSchema:n,name:o,disabled:a=!1,readonly:i=!1,autofocus:s=!1,required:l=!1,registry:u,onBlur:c,onFocus:d,idPrefix:f,idSeparator:p="_",rawErrors:h}=this.props,{keyedFormData:m}=this.state,v=void 0===e.title?o:e.title,{schemaUtils:g,formContext:y}=u,b=_d(t),w=xf(e.items)?e.items:{},S=g.retrieveSchema(w),x=dD(this.state.keyedFormData),_=this.canAddItem(x),$={canAdd:_,items:m.map(((e,a)=>{const{key:i,item:l}=e,u=l,v=g.retrieveSchema(w,u),y=r?r[a]:void 0,b=n.$id+p+a,S=g.toIdSchema(v,b,u,f,p);return this.renderArrayFieldItem({key:i,index:a,name:o&&`${o}-${a}`,canAdd:_,canMoveUp:a>0,canMoveDown:a<x.length-1,itemSchema:v,itemIdSchema:S,itemErrorSchema:y,itemData:u,itemUiSchema:t.items,autofocus:s&&0===a,onBlur:c,onFocus:d,rawErrors:h,totalItems:m.length})})),className:`field field-array field-array-of-${S.type}`,disabled:a,idSchema:n,uiSchema:t,onAddClick:this.onAddClick,readonly:i,required:l,schema:e,title:v,formContext:y,formData:x,rawErrors:h,registry:u},k=Jj("ArrayFieldTemplate",u,b);return Yj.jsx(k,Object.assign({},$))}renderCustomWidget(){var e;const{schema:t,idSchema:r,uiSchema:n,disabled:o=!1,readonly:a=!1,autofocus:i=!1,required:s=!1,hideError:l,placeholder:u,onBlur:c,onFocus:d,formData:f=[],registry:p,rawErrors:h,name:m}=this.props,{widgets:v,formContext:g,globalUiOptions:y,schemaUtils:b}=p,w=_d(n,y),{widget:S,title:x}=w,_=ov(w,["widget","title"]),$=CC(t,S,v),k=null!==(e=null!=x?x:t.title)&&void 0!==e?e:m,E=b.getDisplayLabel(t,n,y);return Yj.jsx($,{id:r.$id,name:m,multiple:!0,onChange:this.onSelectChange,onBlur:c,onFocus:d,options:_,schema:t,uiSchema:n,registry:p,value:f,disabled:o,readonly:a,hideError:l,required:s,label:k,hideLabel:!E,placeholder:u,formContext:g,autofocus:i,rawErrors:h})}renderMultiSelect(){var e;const{schema:t,idSchema:r,uiSchema:n,formData:o=[],disabled:a=!1,readonly:i=!1,autofocus:s=!1,required:l=!1,placeholder:u,onBlur:c,onFocus:d,registry:f,rawErrors:p,name:h}=this.props,{widgets:m,schemaUtils:v,formContext:g,globalUiOptions:y}=f,b=zC(v.retrieveSchema(t.items,o)),w=_d(n,y),{widget:S="select",title:x}=w,_=ov(w,["widget","title"]),$=CC(t,S,m),k=null!==(e=null!=x?x:t.title)&&void 0!==e?e:h,E=v.getDisplayLabel(t,n,y);return Yj.jsx($,{id:r.$id,name:h,multiple:!0,onChange:this.onSelectChange,onBlur:c,onFocus:d,options:Object.assign(Object.assign({},_),{enumOptions:b}),schema:t,uiSchema:n,registry:f,value:o,disabled:a,readonly:i,required:l,label:k,hideLabel:!E,placeholder:u,formContext:g,autofocus:s,rawErrors:p})}renderFiles(){var e;const{schema:t,uiSchema:r,idSchema:n,name:o,disabled:a=!1,readonly:i=!1,autofocus:s=!1,required:l=!1,onBlur:u,onFocus:c,registry:d,formData:f=[],rawErrors:p}=this.props,{widgets:h,formContext:m,globalUiOptions:v,schemaUtils:g}=d,y=_d(r,v),{widget:b="files",title:w}=y,S=ov(y,["widget","title"]),x=CC(t,b,h),_=null!==(e=null!=w?w:t.title)&&void 0!==e?e:o,$=g.getDisplayLabel(t,r,v);return Yj.jsx(x,{options:S,id:n.$id,name:o,multiple:!0,onChange:this.onSelectChange,onBlur:u,onFocus:c,schema:t,uiSchema:r,value:f,disabled:a,readonly:i,required:l,registry:d,formContext:m,autofocus:s,rawErrors:p,label:_,hideLabel:!$})}renderFixedArray(){const{schema:e,uiSchema:t={},formData:r=[],errorSchema:n,idPrefix:o,idSeparator:a="_",idSchema:i,name:s,disabled:l=!1,readonly:u=!1,autofocus:c=!1,required:d=!1,registry:f,onBlur:p,onFocus:h,rawErrors:m}=this.props,{keyedFormData:v}=this.state;let{formData:g=[]}=this.props;const y=e.title||s,b=_d(t),{schemaUtils:w,formContext:S}=f,x=(xf(e.items)?e.items:[]).map(((e,t)=>w.retrieveSchema(e,r[t]))),_=xf(e.additionalItems)?w.retrieveSchema(e.additionalItems,r):null;(!g||g.length<x.length)&&(g=g||[],g=g.concat(new Array(x.length-g.length)));const $=this.canAddItem(g)&&!!_,k={canAdd:$,className:"field field-array field-array-fixed-items",disabled:l,idSchema:i,formData:r,items:v.map(((r,l)=>{const{key:u,item:d}=r,f=d,y=l>=x.length,b=(y&&xf(e.additionalItems)?w.retrieveSchema(e.additionalItems,f):x[l])||{},S=i.$id+a+l,_=w.toIdSchema(b,S,f,o,a),k=y?t.additionalItems||{}:Array.isArray(t.items)?t.items[l]:t.items||{},E=n?n[l]:void 0;return this.renderArrayFieldItem({key:u,index:l,name:s&&`${s}-${l}`,canAdd:$,canRemove:y,canMoveUp:l>=x.length+1,canMoveDown:y&&l<g.length-1,itemSchema:b,itemData:f,itemUiSchema:k,itemIdSchema:_,itemErrorSchema:E,autofocus:c&&0===l,onBlur:p,onFocus:h,rawErrors:m,totalItems:v.length})})),onAddClick:this.onAddClick,readonly:u,required:d,registry:f,schema:e,uiSchema:t,title:y,formContext:S,rawErrors:m},E=Jj("ArrayFieldTemplate",f,b);return Yj.jsx(E,Object.assign({},k))}renderArrayFieldItem(e){const{key:t,index:r,name:n,canAdd:o,canRemove:a=!0,canMoveUp:i,canMoveDown:s,itemSchema:l,itemData:u,itemUiSchema:c,itemIdSchema:d,itemErrorSchema:f,autofocus:p,onBlur:h,onFocus:m,rawErrors:v,totalItems:g}=e,{disabled:y,hideError:b,idPrefix:w,idSeparator:S,readonly:x,uiSchema:_,registry:$,formContext:k}=this.props,{fields:{ArraySchemaField:E,SchemaField:j},globalUiOptions:C}=$,O=E||j,{orderable:P=!0,removable:N=!0,copyable:R=!1}=_d(_,C),T={moveUp:P&&i,moveDown:P&&s,copy:R&&o,remove:N&&a,toolbar:!1};return T.toolbar=Object.keys(T).some((e=>T[e])),{children:Yj.jsx(O,{name:n,index:r,schema:l,uiSchema:c,formData:u,formContext:k,errorSchema:f,idPrefix:w,idSeparator:S,idSchema:d,required:this.isItemRequired(l),onChange:this.onChangeForIndex(r),onBlur:h,onFocus:m,registry:$,disabled:y,readonly:x,hideError:b,autofocus:p,rawErrors:v}),className:"array-item",disabled:y,canAdd:o,hasCopy:T.copy,hasToolbar:T.toolbar,hasMoveUp:T.moveUp,hasMoveDown:T.moveDown,hasRemove:T.remove,index:r,totalItems:g,key:t,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:x,registry:$,schema:l,uiSchema:c}}}function pD(e){var t,r;const{schema:n,name:o,uiSchema:a,idSchema:i,formData:s,registry:l,required:u,disabled:c,readonly:d,autofocus:f,onChange:p,onFocus:h,onBlur:m,rawErrors:v}=e,{title:g}=n,{widgets:y,formContext:b,translateString:w,globalUiOptions:S}=l,x=_d(a,S),{widget:_="checkbox",title:$,label:k=!0}=x,E=ov(x,["widget","title","label"]),j=CC(n,_,y),C=w(YC.YesLabel),O=w(YC.NoLabel);let P;const N=null!==(t=null!=$?$:g)&&void 0!==t?t:o;if(Array.isArray(n.oneOf))P=zC({oneOf:n.oneOf.map((e=>{if(xf(e))return Object.assign(Object.assign({},e),{title:e.title||(!0===e.const?C:O)})})).filter((e=>e))});else{const e=n,t=null!==(r=n.enum)&&void 0!==r?r:[!0,!1];P=!e.enumNames&&2===t.length&&t.every((e=>"boolean"==typeof e))?[{value:t[0],label:t[0]?C:O},{value:t[1],label:t[1]?C:O}]:zC({enum:t,enumNames:e.enumNames})}return Yj.jsx(j,{options:Object.assign(Object.assign({},E),{enumOptions:P}),schema:n,uiSchema:a,id:i.$id,name:o,onChange:p,onFocus:h,onBlur:m,label:N,hideLabel:!k,value:s,required:u,disabled:c,readonly:d,registry:l,formContext:b,autofocus:f,rawErrors:v})}class hD extends a.Component{constructor(e){super(e),this.onOptionChange=e=>{const{selectedOption:t,retrievedOptions:r}=this.state,{formData:n,onChange:o,registry:a}=this.props,{schemaUtils:i}=a,s=void 0!==e?parseInt(e,10):-1;if(s===t)return;const l=s>=0?r[s]:void 0,u=t>=0?r[t]:void 0;let c=i.sanitizeDataForNewSchema(l,u,n);c&&l&&(c=i.getDefaultFormState(l,c,"excludeObjectChildren")),o(c,void 0,this.getFieldId()),this.setState({selectedOption:s})};const{formData:t,options:r,registry:{schemaUtils:n}}=this.props,o=r.map((e=>n.retrieveSchema(e,t)));this.state={retrievedOptions:o,selectedOption:this.getMatchingOption(0,t,o)}}componentDidUpdate(e,t){const{formData:r,options:n,idSchema:o}=this.props,{selectedOption:a}=this.state;let i=this.state;if(!nv(e.options,n)){const{registry:{schemaUtils:e}}=this.props;i={selectedOption:a,retrievedOptions:n.map((t=>e.retrieveSchema(t,r)))}}if(!nv(r,e.formData)&&o.$id===e.idSchema.$id){const{retrievedOptions:e}=i,n=this.getMatchingOption(a,r,e);t&&n!==a&&(i={selectedOption:n,retrievedOptions:e})}i!==this.state&&this.setState(i)}getMatchingOption(e,t,r){const{schema:n,registry:{schemaUtils:o}}=this.props,a=XE(n);return o.getClosestMatchingOption(t,r,e,a)}getFieldId(){const{idSchema:e,schema:t}=this.props;return`${e.$id}${t.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:t=!1,errorSchema:r={},formContext:n,onBlur:o,onFocus:a,registry:i,schema:s,uiSchema:l}=this.props,{widgets:u,fields:c,translateString:d,globalUiOptions:f,schemaUtils:p}=i,{SchemaField:h}=c,{selectedOption:m,retrievedOptions:v}=this.state,g=_d(l,f),{widget:y="select",placeholder:b,autofocus:w,autocomplete:S,title:x=s.title}=g,_=ov(g,["widget","placeholder","autofocus","autocomplete","title"]),$=CC({type:"number"},y,u),k=Lv(r,ud,[]),E=Hb(r,[ud]),j=p.getDisplayLabel(s,l,f),C=m>=0&&v[m]||null;let O;if(C){const{required:e}=s;O=e?aj({required:e},C):C}const P=x?YC.TitleOptionPrefix:YC.OptionPrefix,N=x?[x]:[],R=v.map(((e,t)=>({label:e.title||d(P,N.concat(String(t+1))),value:t})));return Yj.jsxs("div",Object.assign({className:"panel panel-default panel-body"},{children:[Yj.jsx("div",Object.assign({className:"form-group"},{children:Yj.jsx($,{id:this.getFieldId(),name:`${e}${s.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:o,onFocus:a,disabled:t||Jv(R),multiple:!1,rawErrors:k,errorSchema:E,value:m>=0?m:void 0,options:Object.assign({enumOptions:R},_),registry:i,formContext:n,placeholder:b,autocomplete:S,autofocus:w,label:null!=x?x:e,hideLabel:!j})})),null!==C&&Yj.jsx(h,Object.assign({},this.props,{schema:O}))]}))}}const mD=/\.([0-9]*0)*$/,vD=/[0.]0*$/;function gD(e){const{registry:t,onChange:r,formData:n,value:o}=e,[i,s]=a.useState(o),{StringField:l}=t.fields;let u=n;const c=a.useCallback((e=>{s(e),"."===`${e}`.charAt(0)&&(e=`0${e}`);const t="string"==typeof e&&e.match(mD)?ed(e.replace(vD,"")):ed(e);r(t)}),[r]);if("string"==typeof i&&"number"==typeof u){const e=new RegExp(`${u}`.replace(".","\\.")+"\\.?0*$");i.match(e)&&(u=i)}return Yj.jsx(l,Object.assign({},e,{formData:u,onChange:c}))}function yD(){return yD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yD.apply(this,arguments)}const bD=["children","options"],wD=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{for:"htmlFor"}),SD={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},xD=["style","script"],_D=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,$D=/mailto:/i,kD=/\n{2,}$/,ED=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,jD=/^ *> ?/gm,CD=/^ {2,}\n/,OD=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,PD=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,ND=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,RD=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,TD=/^(?:\n *)*\n/,AD=/\r\n?/g,ID=/^\[\^([^\]]+)](:.*)\n/,MD=/^\[\^([^\]]+)]/,FD=/\f/g,zD=/^\s*?\[(x|\s)\]/,DD=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,LD=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,BD=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,VD=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,UD=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,WD=/^<!--[\s\S]*?(?:-->)/,qD=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,KD=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,HD=/^\{.*\}$/,GD=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,QD=/^<([^ >]+@[^ >]+)>/,JD=/^<([^ >]+:\/[^ >]+)>/,YD=/-([a-z])?/gi,XD=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,ZD=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,eL=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,tL=/^\[([^\]]*)\] ?\[([^\]]*)\]/,rL=/(\[|\])/g,nL=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,oL=/\t/g,aL=/^ *\| */,iL=/(^ *\||\| *$)/g,sL=/ *$/,lL=/^ *:-+: *$/,uL=/^ *:-+ *$/,cL=/^ *-+: *$/,dL=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,fL=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,pL=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,hL=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,mL=/^\\([^0-9A-Za-z\s])/,vL=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,gL=/^\n+/,yL=/^([ \t]*)/,bL=/\\([^\\])/g,wL=/ *\n+$/,SL=/(?:^|\n)( *)$/,xL="(?:\\d+\\.)",_L="(?:[*+-])";function $L(e){return"( *)("+(1===e?xL:_L)+") +"}const kL=$L(1),EL=$L(2);function jL(e){return new RegExp("^"+(1===e?kL:EL))}const CL=jL(1),OL=jL(2);function PL(e){return new RegExp("^"+(1===e?kL:EL)+"[^\\n]*(?:\\n(?!\\1"+(1===e?xL:_L)+" )[^\\n]*)*(\\n|$)","gm")}const NL=PL(1),RL=PL(2);function TL(e){const t=1===e?xL:_L;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const AL=TL(1),IL=TL(2);function ML(e,t){const r=1===t,n=r?AL:IL,o=r?NL:RL,a=r?CL:OL;return{t(e,t,r){const o=SL.exec(r);return o&&(t.o||!t._&&!t.u)?n.exec(e=o[1]+e):null},i:sB.HIGH,l(e,t,n){const i=r?+e[2]:void 0,s=e[0].replace(kD,"\n").match(o);let l=!1;return{p:s.map((function(e,r){const o=a.exec(e)[0].length,i=new RegExp("^ {1,"+o+"}","gm"),u=e.replace(i,"").replace(a,""),c=r===s.length-1,d=-1!==u.indexOf("\n\n")||c&&l;l=d;const f=n._,p=n.o;let h;n.o=!0,d?(n._=!1,h=u.replace(wL,"\n\n")):(n._=!0,h=u.replace(wL,""));const m=t(h,n);return n._=f,n.o=p,m})),m:r,g:i}},h:(t,r,n)=>e(t.m?"ol":"ul",{key:n.k,start:t.g},t.p.map((function(t,o){return e("li",{key:o},r(t,n))})))}}const FL=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,zL=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,DL=[ED,PD,ND,DD,BD,LD,WD,XD,NL,AL,RL,IL],LL=[...DL,/^[^\n]+(?: \n|\n{2,})/,VD,KD];function BL(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function VL(e){return cL.test(e)?"right":lL.test(e)?"center":uL.test(e)?"left":null}function UL(e,t,r){const n=r.$;r.$=!0;const o=t(e.trim(),r);r.$=n;let a=[[]];return o.forEach((function(e,t){"tableSeparator"===e.type?0!==t&&t!==o.length-1&&a.push([]):("text"!==e.type||null!=o[t+1]&&"tableSeparator"!==o[t+1].type||(e.v=e.v.replace(sL,"")),a[a.length-1].push(e))})),a}function WL(e,t,r){r._=!0;const n=UL(e[1],t,r),o=e[2].replace(iL,"").split("|").map(VL),a=function(e,t,r){return e.trim().split("\n").map((function(e){return UL(e,t,r)}))}(e[3],t,r);return r._=!1,{S:o,A:a,L:n,type:"table"}}function qL(e,t){return null==e.S[t]?{}:{textAlign:e.S[t]}}function KL(e){return function(t,r){return r._?e.exec(t):null}}function HL(e){return function(t,r){return r._||r.u?e.exec(t):null}}function GL(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function QL(e){return function(t){return e.exec(t)}}function JL(e,t,r){if(t._||t.u)return null;if(r&&!r.endsWith("\n"))return null;let n="";e.split("\n").every((e=>!DL.some((t=>t.test(e)))&&(n+=e+"\n",e.trim())));const o=n.trimEnd();return""==o?null:[n,o]}function YL(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function XL(e){return e.replace(bL,"$1")}function ZL(e,t,r){const n=r._||!1,o=r.u||!1;r._=!0,r.u=!0;const a=e(t,r);return r._=n,r.u=o,a}function eB(e,t,r){const n=r._||!1,o=r.u||!1;r._=!1,r.u=!0;const a=e(t,r);return r._=n,r.u=o,a}function tB(e,t,r){return r._=!1,e(t,r)}const rB=(e,t,r)=>({v:ZL(t,e[1],r)});function nB(){return{}}function oB(){return null}function aB(...e){return e.filter(Boolean).join(" ")}function iB(e,t,r){let n=e;const o=t.split(".");for(;o.length&&(n=n[o[0]],void 0!==n);)o.shift();return n||r}var sB;function lB(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||BL,t.namedCodesToUnicode=t.namedCodesToUnicode?yD({},SD,t.namedCodesToUnicode):SD;const r=t.createElement||a.createElement;function n(e,n,...o){const a=iB(t.overrides,`${e}.props`,{});return r(function(e,t){const r=iB(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:iB(t,`${e}.component`,e):e}(e,t.overrides),yD({},n,a,{className:aB(null==n?void 0:n.className,a.className)||void 0}),...o)}function o(e){let r=!1;t.forceInline?r=!0:t.forceBlock||(r=!1===nL.test(e));const o=d(c(r?e:`${e.trimEnd().replace(gL,"")}\n\n`,{_:r}));for(;"string"==typeof o[o.length-1]&&!o[o.length-1].trim();)o.pop();if(null===t.wrapper)return o;const i=t.wrapper||(r?"span":"div");let s;if(o.length>1||t.forceWrapper)s=o;else{if(1===o.length)return s=o[0],"string"==typeof s?n("span",{key:"outer"},s):s;s=null}return a.createElement(i,{key:"outer"},s)}function i(e){const t=e.match(_D);return t?t.reduce((function(e,t,r){const n=t.indexOf("=");if(-1!==n){const i=function(e){return-1!==e.indexOf("-")&&null===e.match(qD)&&(e=e.replace(YD,(function(e,t){return t.toUpperCase()}))),e}(t.slice(0,n)).trim(),s=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(t.slice(n+1).trim()),l=wD[i]||i,u=e[l]=function(e,t){return"style"===e?t.split(/;\s?/).reduce((function(e,t){const r=t.slice(0,t.indexOf(":"));return e[r.replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(r.length+1).trim(),e}),{}):"href"===e?YL(t):(t.match(HD)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(i,s);"string"==typeof u&&(VD.test(u)||KD.test(u))&&(e[l]=a.cloneElement(o(u.trim()),{key:r}))}else"style"!==t&&(e[wD[t]||t]=!0);return e}),{}):null}const s=[],l={},u={blockQuote:{t:GL(ED),i:sB.HIGH,l:(e,t,r)=>({v:t(e[0].replace(jD,""),r)}),h:(e,t,r)=>n("blockquote",{key:r.k},t(e.v,r))},breakLine:{t:QL(CD),i:sB.HIGH,l:nB,h:(e,t,r)=>n("br",{key:r.k})},breakThematic:{t:GL(OD),i:sB.HIGH,l:nB,h:(e,t,r)=>n("hr",{key:r.k})},codeBlock:{t:GL(ND),i:sB.MAX,l:e=>({v:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(e,t,r)=>n("pre",{key:r.k},n("code",yD({},e.O,{className:e.M?`lang-${e.M}`:""}),e.v))},codeFenced:{t:GL(PD),i:sB.MAX,l:e=>({O:i(e[3]||""),v:e[4],M:e[2]||void 0,type:"codeBlock"})},codeInline:{t:HL(RD),i:sB.LOW,l:e=>({v:e[2]}),h:(e,t,r)=>n("code",{key:r.k},e.v)},footnote:{t:GL(ID),i:sB.MAX,l:e=>(s.push({I:e[2],j:e[1]}),{}),h:oB},footnoteReference:{t:KL(MD),i:sB.HIGH,l:e=>({v:e[1],B:`#${t.slugify(e[1])}`}),h:(e,t,r)=>n("a",{key:r.k,href:YL(e.B)},n("sup",{key:r.k},e.v))},gfmTask:{t:KL(zD),i:sB.HIGH,l:e=>({R:"x"===e[1].toLowerCase()}),h:(e,t,r)=>n("input",{checked:e.R,key:r.k,readOnly:!0,type:"checkbox"})},heading:{t:GL(t.enforceAtxHeadings?LD:DD),i:sB.HIGH,l:(e,r,n)=>({v:ZL(r,e[2],n),T:t.slugify(e[2]),C:e[1].length}),h:(e,t,r)=>n(`h${e.C}`,{id:e.T,key:r.k},t(e.v,r))},headingSetext:{t:GL(BD),i:sB.MAX,l:(e,t,r)=>({v:ZL(t,e[1],r),C:"="===e[2]?1:2,type:"heading"})},htmlComment:{t:QL(WD),i:sB.HIGH,l:()=>({}),h:oB},image:{t:HL(zL),i:sB.HIGH,l:e=>({D:e[1],B:XL(e[2]),F:e[3]}),h:(e,t,r)=>n("img",{key:r.k,alt:e.D||void 0,title:e.F||void 0,src:YL(e.B)})},link:{t:KL(FL),i:sB.LOW,l:(e,t,r)=>({v:eB(t,e[1],r),B:XL(e[2]),F:e[3]}),h:(e,t,r)=>n("a",{key:r.k,href:YL(e.B),title:e.F},t(e.v,r))},linkAngleBraceStyleDetector:{t:KL(JD),i:sB.MAX,l:e=>({v:[{v:e[1],type:"text"}],B:e[1],type:"link"})},linkBareUrlDetector:{t:(e,t)=>t.N?null:KL(GD)(e,t),i:sB.MAX,l:e=>({v:[{v:e[1],type:"text"}],B:e[1],F:void 0,type:"link"})},linkMailtoDetector:{t:KL(QD),i:sB.MAX,l(e){let t=e[1],r=e[1];return $D.test(r)||(r="mailto:"+r),{v:[{v:t.replace("mailto:",""),type:"text"}],B:r,type:"link"}}},orderedList:ML(n,1),unorderedList:ML(n,2),newlineCoalescer:{t:GL(TD),i:sB.LOW,l:nB,h:()=>"\n"},paragraph:{t:JL,i:sB.LOW,l:rB,h:(e,t,r)=>n("p",{key:r.k},t(e.v,r))},ref:{t:KL(ZD),i:sB.MAX,l:e=>(l[e[1]]={B:e[2],F:e[4]},{}),h:oB},refImage:{t:HL(eL),i:sB.MAX,l:e=>({D:e[1]||void 0,P:e[2]}),h:(e,t,r)=>n("img",{key:r.k,alt:e.D,src:YL(l[e.P].B),title:l[e.P].F})},refLink:{t:KL(tL),i:sB.MAX,l:(e,t,r)=>({v:t(e[1],r),Z:t(e[0].replace(rL,"\\$1"),r),P:e[2]}),h:(e,t,r)=>l[e.P]?n("a",{key:r.k,href:YL(l[e.P].B),title:l[e.P].F},t(e.v,r)):n("span",{key:r.k},t(e.Z,r))},table:{t:GL(XD),i:sB.HIGH,l:WL,h:(e,t,r)=>n("table",{key:r.k},n("thead",null,n("tr",null,e.L.map((function(o,a){return n("th",{key:a,style:qL(e,a)},t(o,r))})))),n("tbody",null,e.A.map((function(o,a){return n("tr",{key:a},o.map((function(o,a){return n("td",{key:a,style:qL(e,a)},t(o,r))})))}))))},tableSeparator:{t:function(e,t){return t.$?(t._=!0,aL.exec(e)):null},i:sB.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:QL(vL),i:sB.MIN,l:e=>({v:e[0].replace(UD,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),h:e=>e.v},textBolded:{t:HL(dL),i:sB.MED,l:(e,t,r)=>({v:t(e[2],r)}),h:(e,t,r)=>n("strong",{key:r.k},t(e.v,r))},textEmphasized:{t:HL(fL),i:sB.LOW,l:(e,t,r)=>({v:t(e[2],r)}),h:(e,t,r)=>n("em",{key:r.k},t(e.v,r))},textEscaped:{t:HL(mL),i:sB.HIGH,l:e=>({v:e[1],type:"text"})},textMarked:{t:HL(pL),i:sB.LOW,l:rB,h:(e,t,r)=>n("mark",{key:r.k},t(e.v,r))},textStrikethroughed:{t:HL(hL),i:sB.LOW,l:rB,h:(e,t,r)=>n("del",{key:r.k},t(e.v,r))}};!0!==t.disableParsingRawHTML&&(u.htmlBlock={t:QL(VD),i:sB.HIGH,l(e,t,r){const[,n]=e[3].match(yL),o=new RegExp(`^${n}`,"gm"),a=e[3].replace(o,""),s=(l=a,LL.some((e=>e.test(l)))?tB:ZL);var l;const u=e[1].toLowerCase(),c=-1!==xD.indexOf(u);r.N=r.N||"a"===u;const d=c?e[3]:s(t,a,r);return r.N=!1,{O:i(e[2]),v:d,G:c,H:c?u:e[1]}},h:(e,t,r)=>n(e.H,yD({key:r.k},e.O),e.G?e.v:t(e.v,r))},u.htmlSelfClosing={t:QL(KD),i:sB.HIGH,l:e=>({O:i(e[2]||""),H:e[1]}),h:(e,t,r)=>n(e.H,yD({},e.O,{key:r.k}))});const c=function(e){let t=Object.keys(e);function r(n,o){let a=[],i="";for(;n;){let s=0;for(;s<t.length;){const l=t[s],u=e[l],c=u.t(n,o,i);if(c){const e=c[0];n=n.substring(e.length);const t=u.l(c,r,o);null==t.type&&(t.type=l),a.push(t),i=e;break}s++}}return a}return t.sort((function(t,r){let n=e[t].i,o=e[r].i;return n!==o?n-o:t<r?-1:1})),function(e,t){return r(function(e){return e.replace(AD,"\n").replace(FD,"").replace(oL," ")}(e),t)}}(u),d=(f=function(e){return function(t,r,n){return e[t.type].h(t,r,n)}}(u),function e(t,r={}){if(Array.isArray(t)){const n=r.k,o=[];let a=!1;for(let n=0;n<t.length;n++){r.k=n;const i=e(t[n],r),s="string"==typeof i;s&&a?o[o.length-1]+=i:null!==i&&o.push(i),a=s}return r.k=n,o}return f(t,e,r)});var f;const p=o(e);return s.length?n("div",null,p,n("footer",{key:"footer"},s.map((function(e){return n("div",{id:t.slugify(e.j),key:e.j},e.j,d(c(e.I,{_:!0})))})))):p}!function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"}(sB||(sB={}));var uB=e=>{let{children:t,options:r}=e,n=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}(e,bD);return a.cloneElement(lB(t,r),n)},cB=pb;var dB=function(e,t){return null==e||cB(e,t)};class fB extends a.Component{constructor(){super(...arguments),this.state={wasPropertyKeyModified:!1,additionalProperties:{}},this.onPropertyChange=(e,t=!1)=>(r,n,o)=>{const{formData:a,onChange:i,errorSchema:s}=this.props;void 0===r&&t&&(r="");i(Object.assign(Object.assign({},a),{[e]:r}),s&&s&&Object.assign(Object.assign({},s),{[e]:n}),o)},this.onDropPropertyClick=e=>t=>{t.preventDefault();const{onChange:r,formData:n}=this.props,o=Object.assign({},n);dB(o,e),r(o)},this.getAvailableKey=(e,t)=>{const{uiSchema:r,registry:n}=this.props,{duplicateKeySuffixSeparator:o="-"}=_d(r,n.globalUiOptions);let a=0,i=e;for(;iw(t,i);)i=`${e}${o}${++a}`;return i},this.onKeyChange=e=>(t,r)=>{if(e===t)return;const{formData:n,onChange:o,errorSchema:a}=this.props;t=this.getAvailableKey(t,n);const i=Object.assign({},n),s={[e]:t},l=Object.keys(i).map((e=>({[s[e]||e]:i[e]}))),u=Object.assign({},...l);this.setState({wasPropertyKeyModified:!0}),o(u,a&&a&&Object.assign(Object.assign({},a),{[t]:r}))},this.handleAddClick=e=>()=>{if(!e.additionalProperties)return;const{formData:t,onChange:r,registry:n}=this.props,o=Object.assign({},t);let a;if(xf(e.additionalProperties)){a=e.additionalProperties.type;let r=e.additionalProperties;if(yd in r){const{schemaUtils:e}=n;r=e.retrieveSchema({$ref:r[yd]},t),a=r.type}a||!(od in r)&&!(hd in r)||(a="object")}const i=this.getAvailableKey("newKey",o);BS(o,i,this.getDefaultValue(a)),r(o)}}isRequired(e){const{schema:t}=this.props;return Array.isArray(t.required)&&-1!==t.required.indexOf(e)}getDefaultValue(e){const{registry:{translateString:t}}=this.props;switch(e){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return t(YC.NewStringDefault)}}render(){var e,t,r;const{schema:n,uiSchema:o={},formData:a,errorSchema:i,idSchema:s,name:l,required:u=!1,disabled:c=!1,readonly:d=!1,hideError:f,idPrefix:p,idSeparator:h,onBlur:m,onFocus:v,registry:g}=this.props,{fields:y,formContext:b,schemaUtils:w,translateString:S,globalUiOptions:x}=g,{SchemaField:_}=y,$=w.retrieveSchema(n,a),k=_d(o,x),{properties:E={}}=$,j=null!==(t=null!==(e=k.title)&&void 0!==e?e:$.title)&&void 0!==t?t:l,C=null!==(r=k.description)&&void 0!==r?r:$.description;let O;try{O=function(e,t){if(!Array.isArray(t))return e;const r=e=>e.reduce(((e,t)=>(e[t]=!0,e)),{}),n=r(e),o=t.filter((e=>"*"===e||n[e])),a=r(o),i=e.filter((e=>!a[e])),s=o.indexOf("*");if(-1===s){if(i.length)throw new Error("uiSchema order list does not contain "+((l=i).length>1?`properties '${l.join("', '")}'`:`property '${l[0]}'`));return o}var l;if(s!==o.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const u=[...o];return u.splice(s,1,...i),u}(Object.keys(E),k.order)}catch(e){return Yj.jsxs("div",{children:[Yj.jsx("p",Object.assign({className:"config-error",style:{color:"red"}},{children:Yj.jsx(uB,{children:S(YC.InvalidObjectField,[l||"root",e.message])})})),Yj.jsx("pre",{children:JSON.stringify($)})]})}const P=Jj("ObjectFieldTemplate",g,k),N={title:!1===k.label?"":j,description:!1===k.label?void 0:C,properties:O.map((e=>{const t=iw($,[md,e,td]),r=t?o.additionalProperties:o[e],n="hidden"===_d(r).widget,l=Lv(s,[e],{});return{content:Yj.jsx(_,{name:e,required:this.isRequired(e),schema:Lv($,[md,e],{}),uiSchema:r,errorSchema:Lv(i,e),idSchema:l,idPrefix:p,idSeparator:h,formData:Lv(a,e),formContext:b,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(e),onChange:this.onPropertyChange(e,t),onBlur:m,onFocus:v,registry:g,disabled:c,readonly:d,hideError:f,onDropPropertyClick:this.onDropPropertyClick},e),name:e,readonly:d,disabled:c,required:u,hidden:n}})),readonly:d,disabled:c,required:u,idSchema:s,uiSchema:o,errorSchema:i,schema:$,formData:a,formContext:b,registry:g};return Yj.jsx(P,Object.assign({},N,{onAddClick:this.handleAddClick}))}}const pB={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function hB(e){const{schema:t,idSchema:r,uiSchema:n,formData:o,errorSchema:i,idPrefix:s,idSeparator:l,name:u,onChange:c,onKeyChange:d,onDropPropertyClick:f,required:p,registry:h,wasPropertyKeyModified:m=!1}=e,{formContext:v,schemaUtils:g,globalUiOptions:y}=h,b=_d(n,y),w=Jj("FieldTemplate",h,b),S=Jj("DescriptionFieldTemplate",h,b),x=Jj("FieldHelpTemplate",h,b),_=Jj("FieldErrorTemplate",h,b),$=g.retrieveSchema(t,o),k=r[cd],E=wj(g.toIdSchema($,k,o,s,l),r),j=a.useCallback(((e,t,r)=>c(e,t,r||k)),[k,c]),C=function(e,t,r,n){const o=t.field,{fields:a,translateString:i}=n;if("function"==typeof o)return o;if("string"==typeof o&&o in a)return a[o];const s=oj(e),l=Array.isArray(s)?s[0]:s||"",u=e.$id;let c=pB[l];return u&&u in a&&(c=u),c||!e.anyOf&&!e.oneOf?c in a?a[c]:()=>{const o=Jj("UnsupportedFieldTemplate",n,t);return Yj.jsx(o,{schema:e,idSchema:r,reason:i(YC.UnknownFieldType,[String(e.type)]),registry:n})}:()=>null}($,b,E,h),O=Boolean(e.disabled||b.disabled),P=Boolean(e.readonly||b.readonly||e.schema.readOnly||$.readOnly),N=b.hideError,R=void 0===N?e.hideError:Boolean(N),T=Boolean(e.autofocus||b.autofocus);if(0===Object.keys($).length)return null;const A=g.getDisplayLabel($,n,y),I=i||{},{__errors:M}=I,F=ov(I,["__errors"]),z=Hb(n,["ui:classNames","classNames","ui:style"]);xd in z&&(z[xd]=Hb(z[xd],["classNames","style"]));const D=Yj.jsx(C,Object.assign({},e,{onChange:j,idSchema:E,schema:$,uiSchema:z,disabled:O,readonly:P,hideError:R,autofocus:T,errorSchema:F,formContext:v,rawErrors:M})),L=E[cd];let B;B=m||td in $?u:b.title||e.schema.title||$.title||u;const V=b.description||e.schema.description||$.description||"",U=b.enableMarkdownInDescription?Yj.jsx(uB,{children:V}):V,W=b.help,q="hidden"===b.widget,K=["form-group","field",`field-${oj($)}`];!R&&M&&M.length>0&&K.push("field-error has-error has-danger"),(null==n?void 0:n.classNames)&&K.push(n.classNames),b.classNames&&K.push(b.classNames);const H=Yj.jsx(x,{help:W,idSchema:E,schema:$,uiSchema:n,hasErrors:!R&&M&&M.length>0,registry:h}),G=R||$.anyOf||$.oneOf?void 0:Yj.jsx(_,{errors:M,errorSchema:i,idSchema:E,schema:$,uiSchema:n,registry:h}),Q={description:Yj.jsx(S,{id:PC(L),description:U,schema:$,uiSchema:n,registry:h}),rawDescription:V,help:H,rawHelp:"string"==typeof W?W:void 0,errors:G,rawErrors:R?void 0:M,id:L,label:B,hidden:q,onChange:c,onKeyChange:d,onDropPropertyClick:f,required:p,disabled:O,readonly:P,hideError:R,displayLabel:A,classNames:K.join(" ").trim(),style:b.style,formContext:v,formData:o,schema:$,uiSchema:n,registry:h},J=h.fields.AnyOfField,Y=h.fields.OneOfField,X=(null==n?void 0:n["ui:field"])&&!0===(null==n?void 0:n["ui:fieldReplacesAnyOrOneOf"]);return Yj.jsx(w,Object.assign({},Q,{children:Yj.jsxs(Yj.Fragment,{children:[D,$.anyOf&&!X&&!g.isSelect($)&&Yj.jsx(J,{name:u,disabled:O,readonly:P,hideError:R,errorSchema:i,formData:o,formContext:v,idPrefix:s,idSchema:E,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:$.anyOf.map((e=>g.retrieveSchema(xf(e)?e:{},o))),registry:h,schema:$,uiSchema:n}),$.oneOf&&!X&&!g.isSelect($)&&Yj.jsx(Y,{name:u,disabled:O,readonly:P,hideError:R,errorSchema:i,formData:o,formContext:v,idPrefix:s,idSchema:E,idSeparator:l,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:$.oneOf.map((e=>g.retrieveSchema(xf(e)?e:{},o))),registry:h,schema:$,uiSchema:n})]})}))}class mB extends a.Component{shouldComponentUpdate(e){return!nv(this.props,e)}render(){return Yj.jsx(hB,Object.assign({},this.props))}}function vB(e){var t;const{schema:r,name:n,uiSchema:o,idSchema:a,formData:i,required:s,disabled:l=!1,readonly:u=!1,autofocus:c=!1,onChange:d,onBlur:f,onFocus:p,registry:h,rawErrors:m}=e,{title:v,format:g}=r,{widgets:y,formContext:b,schemaUtils:w,globalUiOptions:S}=h,x=w.isSelect(r)?zC(r):void 0;let _=x?"select":"text";g&&function(e,t,r={}){try{return CC(e,t,r),!0}catch(e){const t=e;if(t.message&&(t.message.startsWith("No widget")||t.message.startsWith("Unsupported widget")))return!1;throw e}}(r,g,y)&&(_=g);const $=_d(o),{widget:k=_,placeholder:E="",title:j}=$,C=ov($,["widget","placeholder","title"]),O=w.getDisplayLabel(r,o,S),P=null!==(t=null!=j?j:v)&&void 0!==t?t:n,N=CC(r,k,y);return Yj.jsx(N,{options:Object.assign(Object.assign({},C),{enumOptions:x}),schema:r,uiSchema:o,id:a.$id,name:n,label:P,hideLabel:!O,value:i,onChange:d,onBlur:f,onFocus:p,required:s,disabled:l,readonly:u,formContext:b,autofocus:c,registry:h,placeholder:E,rawErrors:m})}function gB(e){const{formData:t,onChange:r}=e;return a.useEffect((()=>{void 0===t&&r(null)}),[t,r]),null}function yB(e){const{idSchema:t,description:r,registry:n,schema:o,uiSchema:a}=e,i=_d(a,n.globalUiOptions),{label:s=!0}=i;if(!r||!s)return null;const l=Jj("DescriptionFieldTemplate",n,i);return Yj.jsx(l,{id:PC(t),description:r,schema:o,uiSchema:a,registry:n})}function bB(e){const{children:t,className:r,disabled:n,hasToolbar:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,hasCopy:l,index:u,onCopyIndexClick:c,onDropIndexClick:d,onReorderClick:f,readonly:p,registry:h,uiSchema:m}=e,{CopyButton:v,MoveDownButton:g,MoveUpButton:y,RemoveButton:b}=h.templates.ButtonTemplates,w={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return Yj.jsxs("div",Object.assign({className:r},{children:[Yj.jsx("div",Object.assign({className:o?"col-xs-9":"col-xs-12"},{children:t})),o&&Yj.jsx("div",Object.assign({className:"col-xs-3 array-item-toolbox"},{children:Yj.jsxs("div",Object.assign({className:"btn-group",style:{display:"flex",justifyContent:"space-around"}},{children:[(i||a)&&Yj.jsx(y,{style:w,disabled:n||p||!i,onClick:f(u,u-1),uiSchema:m,registry:h}),(i||a)&&Yj.jsx(g,{style:w,disabled:n||p||!a,onClick:f(u,u+1),uiSchema:m,registry:h}),l&&Yj.jsx(v,{style:w,disabled:n||p,onClick:c(u),uiSchema:m,registry:h}),s&&Yj.jsx(b,{style:w,disabled:n||p,onClick:d(u),uiSchema:m,registry:h})]}))}))]}))}function wB(e){const{canAdd:t,className:r,disabled:n,idSchema:o,uiSchema:a,items:i,onAddClick:s,readonly:l,registry:u,required:c,schema:d,title:f}=e,p=_d(a),h=Jj("ArrayFieldDescriptionTemplate",u,p),m=Jj("ArrayFieldItemTemplate",u,p),v=Jj("ArrayFieldTitleTemplate",u,p),{ButtonTemplates:{AddButton:g}}=u.templates;return Yj.jsxs("fieldset",Object.assign({className:r,id:o.$id},{children:[Yj.jsx(v,{idSchema:o,title:p.title||f,required:c,schema:d,uiSchema:a,registry:u}),Yj.jsx(h,{idSchema:o,description:p.description||d.description,schema:d,uiSchema:a,registry:u}),Yj.jsx("div",Object.assign({className:"row array-item-list"},{children:i&&i.map((e=>{var{key:t}=e,r=ov(e,["key"]);return Yj.jsx(m,Object.assign({},r),t)}))})),t&&Yj.jsx(g,{className:"array-item-add",onClick:s,disabled:n||l,uiSchema:a,registry:u})]}))}function SB(e){const{idSchema:t,title:r,schema:n,uiSchema:o,required:a,registry:i}=e,s=_d(o,i.globalUiOptions),{label:l=!0}=s;if(!r||!l)return null;const u=Jj("TitleFieldTemplate",i,s);return Yj.jsx(u,{id:AC(t),title:r,required:a,schema:n,uiSchema:o,registry:i})}function xB(e){const{id:t,name:r,value:n,readonly:o,disabled:i,autofocus:s,onBlur:l,onFocus:u,onChange:c,onChangeOverride:d,options:f,schema:p,uiSchema:h,formContext:m,registry:v,rawErrors:g,type:y,hideLabel:b,hideError:w}=e,S=ov(e,["id","name","value","readonly","disabled","autofocus","onBlur","onFocus","onChange","onChangeOverride","options","schema","uiSchema","formContext","registry","rawErrors","type","hideLabel","hideError"]);if(!t)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const x=Object.assign(Object.assign({},S),Hj(p,y,f));let _;_="number"===x.type||"integer"===x.type?n||0===n?n:"":null==n?"":n;const $=a.useCallback((({target:{value:e}})=>c(""===e?f.emptyValue:e)),[c,f]),k=a.useCallback((({target:{value:e}})=>l(t,e)),[l,t]),E=a.useCallback((({target:{value:e}})=>u(t,e)),[u,t]);return Yj.jsxs(Yj.Fragment,{children:[Yj.jsx("input",Object.assign({id:t,name:t,className:"form-control",readOnly:o,disabled:i,autoFocus:s,value:_},x,{list:p.examples?RC(t):void 0,onChange:d||$,onBlur:k,onFocus:E,"aria-describedby":IC(t,!!p.examples)})),Array.isArray(p.examples)&&Yj.jsx("datalist",Object.assign({id:RC(t)},{children:p.examples.concat(p.default&&!p.examples.includes(p.default)?[p.default]:[]).map((e=>Yj.jsx("option",{value:e},e)))}),`datalist_${t}`)]})}function _B({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=Qj(e);return r?null:Yj.jsx("div",{children:Yj.jsx("button",Object.assign({type:"submit"},n,{className:`btn btn-info ${n.className||""}`},{children:t}))})}function $B(e){const{iconType:t="default",icon:r,className:n,uiSchema:o,registry:a}=e,i=ov(e,["iconType","icon","className","uiSchema","registry"]);return Yj.jsx("button",Object.assign({type:"button",className:`btn btn-${t} ${n}`},i,{children:Yj.jsx("i",{className:`glyphicon glyphicon-${r}`})}))}function kB(e){const{registry:{translateString:t}}=e;return Yj.jsx($B,Object.assign({title:t(YC.CopyButton),className:"array-item-copy"},e,{icon:"copy"}))}function EB(e){const{registry:{translateString:t}}=e;return Yj.jsx($B,Object.assign({title:t(YC.MoveDownButton),className:"array-item-move-down"},e,{icon:"arrow-down"}))}function jB(e){const{registry:{translateString:t}}=e;return Yj.jsx($B,Object.assign({title:t(YC.MoveUpButton),className:"array-item-move-up"},e,{icon:"arrow-up"}))}function CB(e){const{registry:{translateString:t}}=e;return Yj.jsx($B,Object.assign({title:t(YC.RemoveButton),className:"array-item-remove"},e,{iconType:"danger",icon:"remove"}))}function OB({className:e,onClick:t,disabled:r,registry:n}){const{translateString:o}=n;return Yj.jsx("div",Object.assign({className:"row"},{children:Yj.jsx("p",Object.assign({className:`col-xs-3 col-xs-offset-9 text-right ${e}`},{children:Yj.jsx($B,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:o(YC.AddButton),onClick:t,disabled:r,registry:n})}))}))}function PB(e){const{id:t,description:r}=e;return r?"string"==typeof r?Yj.jsx("p",Object.assign({id:t,className:"field-description"},{children:r})):Yj.jsx("div",Object.assign({id:t,className:"field-description"},{children:r})):null}function NB({errors:e,registry:t}){const{translateString:r}=t;return Yj.jsxs("div",Object.assign({className:"panel panel-danger errors"},{children:[Yj.jsx("div",Object.assign({className:"panel-heading"},{children:Yj.jsx("h3",Object.assign({className:"panel-title"},{children:r(YC.ErrorsLabel)}))})),Yj.jsx("ul",Object.assign({className:"list-group"},{children:e.map(((e,t)=>Yj.jsx("li",Object.assign({className:"list-group-item text-danger"},{children:e.stack}),t)))}))]}))}const RB="*";function TB(e){const{label:t,required:r,id:n}=e;return t?Yj.jsxs("label",Object.assign({className:"control-label",htmlFor:n},{children:[t,r&&Yj.jsx("span",Object.assign({className:"required"},{children:RB}))]})):null}function AB(e){const{id:t,label:r,children:n,errors:o,help:a,description:i,hidden:s,required:l,displayLabel:u,registry:c,uiSchema:d}=e,f=Jj("WrapIfAdditionalTemplate",c,_d(d));return s?Yj.jsx("div",Object.assign({className:"hidden"},{children:n})):Yj.jsxs(f,Object.assign({},e,{children:[u&&Yj.jsx(TB,{label:r,required:l,id:t}),u&&i?i:null,n,o,a]}))}function IB(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=NC(r);return Yj.jsx("div",{children:Yj.jsx("ul",Object.assign({id:n,className:"error-detail bs-callout bs-callout-info"},{children:t.filter((e=>!!e)).map(((e,t)=>Yj.jsx("li",Object.assign({className:"text-danger"},{children:e}),t)))}))})}function MB(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=TC(t);return"string"==typeof r?Yj.jsx("p",Object.assign({id:n,className:"help-block"},{children:r})):Yj.jsx("div",Object.assign({id:n,className:"help-block"},{children:r}))}function FB(e){const{description:t,disabled:r,formData:n,idSchema:o,onAddClick:a,properties:i,readonly:s,registry:l,required:u,schema:c,title:d,uiSchema:f}=e,p=_d(f),h=Jj("TitleFieldTemplate",l,p),m=Jj("DescriptionFieldTemplate",l,p),{ButtonTemplates:{AddButton:v}}=l.templates;return Yj.jsxs("fieldset",Object.assign({id:o.$id},{children:[d&&Yj.jsx(h,{id:AC(o),title:d,required:u,schema:c,uiSchema:f,registry:l}),t&&Yj.jsx(m,{id:PC(o),description:t,schema:c,uiSchema:f,registry:l}),i.map((e=>e.content)),$d(c,f,n)&&Yj.jsx(v,{className:"object-property-expand",onClick:a(c),disabled:r||s,uiSchema:f,registry:l})]}))}const zB="*";function DB(e){const{id:t,title:r,required:n}=e;return Yj.jsxs("legend",Object.assign({id:t},{children:[r,n&&Yj.jsx("span",Object.assign({className:"required"},{children:zB}))]}))}function LB(e){const{schema:t,idSchema:r,reason:n,registry:o}=e,{translateString:a}=o;let i=YC.UnsupportedField;const s=[];return r&&r.$id&&(i=YC.UnsupportedFieldWithId,s.push(r.$id)),n&&(i=i===YC.UnsupportedField?YC.UnsupportedFieldWithReason:YC.UnsupportedFieldWithIdAndReason,s.push(n)),Yj.jsxs("div",Object.assign({className:"unsupported-field"},{children:[Yj.jsx("p",{children:Yj.jsx(uB,{children:a(i,s)})}),t&&Yj.jsx("pre",{children:JSON.stringify(t,null,2)})]}))}function BB(e){const{id:t,classNames:r,style:n,disabled:o,label:a,onKeyChange:i,onDropPropertyClick:s,readonly:l,required:u,schema:c,children:d,uiSchema:f,registry:p}=e,{templates:h,translateString:m}=p,{RemoveButton:v}=h.ButtonTemplates,g=m(YC.KeyLabel,[a]);return td in c?Yj.jsx("div",Object.assign({className:r,style:n},{children:Yj.jsxs("div",Object.assign({className:"row"},{children:[Yj.jsx("div",Object.assign({className:"col-xs-5 form-additional"},{children:Yj.jsxs("div",Object.assign({className:"form-group"},{children:[Yj.jsx(TB,{label:g,required:u,id:`${t}-key`}),Yj.jsx("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:e=>i(e.target.value),defaultValue:a})]}))})),Yj.jsx("div",Object.assign({className:"form-additional form-group col-xs-5"},{children:d})),Yj.jsx("div",Object.assign({className:"col-xs-2"},{children:Yj.jsx(v,{className:"array-item-remove btn-block",style:{border:"0"},disabled:o||l,onClick:s(a),uiSchema:f,registry:p})}))]}))})):Yj.jsx("div",Object.assign({className:r,style:n},{children:d}))}function VB(e,t){const r=[];for(let n=e;n<=t;n++)r.push({value:n,label:DC(n,2)});return r}function UB(e,t,r=[1900,(new Date).getFullYear()+2]){const{year:n,month:o,day:a,hour:i,minute:s,second:l}=e,u=[{type:"year",range:r,value:n},{type:"month",range:[1,12],value:o},{type:"day",range:[1,31],value:a}];return t&&u.push({type:"hour",range:[0,23],value:i},{type:"minute",range:[0,59],value:s},{type:"second",range:[0,59],value:l}),u}function WB({type:e,range:t,value:r,select:n,rootId:o,name:a,disabled:i,readonly:s,autofocus:l,registry:u,onBlur:c,onFocus:d}){const f=o+"_"+e,{SelectWidget:p}=u.widgets;return Yj.jsx(p,{schema:{type:"integer"},id:f,name:a,className:"form-control",options:{enumOptions:VB(t[0],t[1])},placeholder:e,value:r,disabled:i,readonly:s,autofocus:l,onChange:t=>n(e,t),onBlur:c,onFocus:d,registry:u,label:"","aria-describedby":IC(o)})}function qB({time:e=!1,disabled:t=!1,readonly:r=!1,autofocus:n=!1,options:o,id:i,name:s,registry:l,onBlur:u,onFocus:c,onChange:d,value:f}){const{translateString:p}=l,[h,m]=a.useState(f),[v,g]=a.useReducer(((e,t)=>Object.assign(Object.assign({},e),t)),LC(f,e));a.useEffect((()=>{const t=VC(v,e);!function(e){return Object.values(e).every((e=>-1!==e))}(v)||t===f?h!==f&&(m(f),g(LC(f,e))):d(t)}),[e,f,d,v,h]);const y=a.useCallback(((e,t)=>{g({[e]:t})}),[]),b=a.useCallback((n=>{if(n.preventDefault(),t||r)return;const o=LC((new Date).toJSON(),e);d(VC(o,e))}),[t,r,e]),w=a.useCallback((e=>{e.preventDefault(),t||r||d(void 0)}),[t,r,d]);return Yj.jsxs("ul",Object.assign({className:"list-inline"},{children:[UB(v,e,o.yearsRange).map(((e,o)=>Yj.jsx("li",Object.assign({className:"list-inline-item"},{children:Yj.jsx(WB,Object.assign({rootId:i,name:s,select:y},e,{disabled:t,readonly:r,registry:l,onBlur:u,onFocus:c,autofocus:n&&0===o}))}),o))),("undefined"===o.hideNowButton||!o.hideNowButton)&&Yj.jsx("li",Object.assign({className:"list-inline-item"},{children:Yj.jsx("a",Object.assign({href:"#",className:"btn btn-info btn-now",onClick:b},{children:p(YC.NowLabel)}))})),("undefined"===o.hideClearButton||!o.hideClearButton)&&Yj.jsx("li",Object.assign({className:"list-inline-item"},{children:Yj.jsx("a",Object.assign({href:"#",className:"btn btn-warning btn-clear",onClick:w},{children:p(YC.ClearLabel)}))}))]}))}function KB(e){var{time:t=!0}=e,r=ov(e,["time"]);const{AltDateWidget:n}=r.registry.widgets;return Yj.jsx(n,Object.assign({time:t},r))}function HB({schema:e,uiSchema:t,options:r,id:n,value:o,disabled:i,readonly:s,label:l,hideLabel:u,autofocus:c=!1,onBlur:d,onFocus:f,onChange:p,registry:h}){var m;const v=Jj("DescriptionFieldTemplate",h,r),g=BC(e),y=a.useCallback((e=>p(e.target.checked)),[p]),b=a.useCallback((e=>d(n,e.target.checked)),[d,n]),w=a.useCallback((e=>f(n,e.target.checked)),[f,n]),S=null!==(m=r.description)&&void 0!==m?m:e.description;return Yj.jsxs("div",Object.assign({className:"checkbox "+(i||s?"disabled":"")},{children:[!u&&!!S&&Yj.jsx(v,{id:PC(n),description:S,schema:e,uiSchema:t,registry:h}),Yj.jsxs("label",{children:[Yj.jsx("input",{type:"checkbox",id:n,name:n,checked:void 0!==o&&o,required:g,disabled:i||s,autoFocus:c,onChange:y,onBlur:b,onFocus:w,"aria-describedby":IC(n)}),FC(Yj.jsx("span",{children:l}),u)]})]}))}function GB({id:e,disabled:t,options:{inline:r=!1,enumOptions:n,enumDisabled:o,emptyValue:i},value:s,autofocus:l=!1,readonly:u,onChange:c,onBlur:d,onFocus:f}){const p=Array.isArray(s)?s:[s],h=a.useCallback((({target:{value:t}})=>d(e,zj(t,n,i))),[d,e]),m=a.useCallback((({target:{value:t}})=>f(e,zj(t,n,i))),[f,e]);return Yj.jsx("div",Object.assign({className:"checkboxes",id:e},{children:Array.isArray(n)&&n.map(((a,i)=>{const s=Lj(a.value,p),d=Array.isArray(o)&&-1!==o.indexOf(a.value),f=t||d||u?"disabled":"",v=Yj.jsxs("span",{children:[Yj.jsx("input",{type:"checkbox",id:MC(e,i),name:e,checked:s,value:String(i),disabled:t||d||u,autoFocus:l&&0===i,onChange:e=>{e.target.checked?c(Wj(i,p,n)):c(Dj(i,p,n))},onBlur:h,onFocus:m,"aria-describedby":IC(e)}),Yj.jsx("span",{children:a.label})]});return r?Yj.jsx("label",Object.assign({className:`checkbox-inline ${f}`},{children:v}),i):Yj.jsx("div",Object.assign({className:`checkbox ${f}`},{children:Yj.jsx("label",{children:v})}),i)}))}))}function QB(e){const{disabled:t,readonly:r,options:n,registry:o}=e,a=Jj("BaseInputTemplate",o,n);return Yj.jsx(a,Object.assign({type:"color"},e,{disabled:t||r}))}function JB(e){const{onChange:t,options:r,registry:n}=e,o=Jj("BaseInputTemplate",n,r),i=a.useCallback((e=>t(e||void 0)),[t]);return Yj.jsx(o,Object.assign({type:"date"},e,{onChange:i}))}function YB(e){const{onChange:t,value:r,options:n,registry:o}=e,a=Jj("BaseInputTemplate",o,n);return Yj.jsx(a,Object.assign({type:"datetime-local"},e,{value:eO(r),onChange:e=>{return t((r=e)?new Date(r).toJSON():void 0);var r}}))}function XB(e){const{options:t,registry:r}=e,n=Jj("BaseInputTemplate",r,t);return Yj.jsx(n,Object.assign({type:"email"},e))}function ZB(e,t){return null===e?null:e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function eV(e){const{name:t,size:r,type:n}=e;return new Promise(((o,a)=>{const i=new window.FileReader;i.onerror=a,i.onload=e=>{var a;"string"==typeof(null===(a=e.target)||void 0===a?void 0:a.result)?o({dataURL:ZB(e.target.result,t),name:t,size:r,type:n}):o({dataURL:null,name:t,size:r,type:n})},i.readAsDataURL(e)}))}function tV({fileInfo:e,registry:t}){const{translateString:r}=t,{dataURL:n,type:o,name:a}=e;return n?-1!==o.indexOf("image")?Yj.jsx("img",{src:n,style:{maxWidth:"100%"},className:"file-preview"}):Yj.jsxs(Yj.Fragment,{children:[" ",Yj.jsx("a",Object.assign({download:`preview-${a}`,href:n,className:"file-download"},{children:r(YC.PreviewLabel)}))]}):null}function rV({filesInfo:e,registry:t,preview:r}){if(0===e.length)return null;const{translateString:n}=t;return Yj.jsx("ul",Object.assign({className:"file-info"},{children:e.map(((e,o)=>{const{name:a,size:i,type:s}=e;return Yj.jsxs("li",{children:[Yj.jsx(uB,{children:n(YC.FilesInfo,[a,s,String(i)])}),r&&Yj.jsx(tV,{fileInfo:e,registry:t})]},o)}))}))}function nV(e){return e.filter((e=>e)).map((e=>{const{blob:t,name:r}=function(e){const t=e.split(","),r=t[0].split(";"),n=r[0].replace("data:",""),o=r.filter((e=>"name"===e.split("=")[0]));let a;a=1!==o.length?"unknown":decodeURI(o[0].split("=")[1]);try{const e=atob(t[1]),r=[];for(let t=0;t<e.length;t++)r.push(e.charCodeAt(t));return{blob:new window.Blob([new Uint8Array(r)],{type:n}),name:a}}catch(t){return{blob:{size:0,type:t.message},name:e}}}(e);return{dataURL:e,name:r,size:t.size,type:t.type}}))}function oV(e){const{disabled:t,readonly:r,required:n,multiple:o,onChange:i,value:s,options:l,registry:u}=e,c=Jj("BaseInputTemplate",u,l),[d,f]=a.useState(Array.isArray(s)?nV(s):nV([s])),p=a.useCallback((e=>{var t;e.target.files&&(t=e.target.files,Promise.all(Array.from(t).map(eV))).then((e=>{const t=e.map((e=>e.dataURL));o?(f(d.concat(e[0])),i(s.concat(t[0]))):(f(e),i(t[0]))}))}),[o,s,d,i]);return Yj.jsxs("div",{children:[Yj.jsx(c,Object.assign({},e,{disabled:t||r,type:"file",required:!s&&n,onChangeOverride:p,value:"",accept:l.accept?String(l.accept):void 0})),Yj.jsx(rV,{filesInfo:d,registry:u,preview:l.filePreview})]})}function aV({id:e,value:t}){return Yj.jsx("input",{type:"hidden",id:e,name:e,value:void 0===t?"":t})}function iV(e){const{options:t,registry:r}=e,n=Jj("BaseInputTemplate",r,t);return Yj.jsx(n,Object.assign({type:"password"},e))}function sV({options:e,value:t,required:r,disabled:n,readonly:o,autofocus:i=!1,onBlur:s,onFocus:l,onChange:u,id:c}){const{enumOptions:d,enumDisabled:f,inline:p,emptyValue:h}=e,m=a.useCallback((({target:{value:e}})=>s(c,zj(e,d,h))),[s,c]),v=a.useCallback((({target:{value:e}})=>l(c,zj(e,d,h))),[l,c]);return Yj.jsx("div",Object.assign({className:"field-radio-group",id:c},{children:Array.isArray(d)&&d.map(((e,a)=>{const s=Lj(e.value,t),l=Array.isArray(f)&&-1!==f.indexOf(e.value),d=n||l||o?"disabled":"",h=Yj.jsxs("span",{children:[Yj.jsx("input",{type:"radio",id:MC(c,a),checked:s,name:c,required:r,value:String(a),disabled:n||l||o,autoFocus:i&&0===a,onChange:()=>u(e.value),onBlur:m,onFocus:v,"aria-describedby":IC(c)}),Yj.jsx("span",{children:e.label})]});return p?Yj.jsx("label",Object.assign({className:`radio-inline ${d}`},{children:h}),a):Yj.jsx("div",Object.assign({className:`radio ${d}`},{children:Yj.jsx("label",{children:h})}),a)}))}))}function lV(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return Yj.jsxs("div",Object.assign({className:"field-range-wrapper"},{children:[Yj.jsx(r,Object.assign({type:"range"},e)),Yj.jsx("span",Object.assign({className:"range-view"},{children:t}))]}))}function uV(e,t){return t?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}function cV({schema:e,id:t,options:r,value:n,required:o,disabled:i,readonly:s,multiple:l=!1,autofocus:u=!1,onChange:c,onBlur:d,onFocus:f,placeholder:p}){const{enumOptions:h,enumDisabled:m,emptyValue:v}=r,g=l?[]:"",y=a.useCallback((e=>{const r=uV(e,l);return f(t,zj(r,h,v))}),[f,t,e,l,r]),b=a.useCallback((e=>{const r=uV(e,l);return d(t,zj(r,h,v))}),[d,t,e,l,r]),w=a.useCallback((e=>{const t=uV(e,l);return c(zj(t,h,v))}),[c,e,l,r]),S=Bj(n,h,l);return Yj.jsxs("select",Object.assign({id:t,name:t,multiple:l,className:"form-control",value:void 0===S?g:S,required:o,disabled:i||s,autoFocus:u,onBlur:b,onFocus:y,onChange:w,"aria-describedby":IC(t)},{children:[!l&&void 0===e.default&&Yj.jsx("option",Object.assign({value:""},{children:p})),Array.isArray(h)&&h.map((({value:e,label:t},r)=>{const n=m&&-1!==m.indexOf(e);return Yj.jsx("option",Object.assign({value:String(r),disabled:n},{children:t}),r)}))]}))}function dV({id:e,options:t={},placeholder:r,value:n,required:o,disabled:i,readonly:s,autofocus:l=!1,onChange:u,onBlur:c,onFocus:d}){const f=a.useCallback((({target:{value:e}})=>u(""===e?t.emptyValue:e)),[u,t.emptyValue]),p=a.useCallback((({target:{value:t}})=>c(e,t)),[c,e]),h=a.useCallback((({target:{value:t}})=>d(e,t)),[e,d]);return Yj.jsx("textarea",{id:e,name:e,className:"form-control",value:n||"",placeholder:r,required:o,disabled:i,readOnly:s,autoFocus:l,rows:t.rows,onBlur:p,onFocus:h,onChange:f,"aria-describedby":IC(e)})}function fV(e){const{options:t,registry:r}=e,n=Jj("BaseInputTemplate",r,t);return Yj.jsx(n,Object.assign({},e))}function pV(e){const{onChange:t,options:r,registry:n}=e,o=Jj("BaseInputTemplate",n,r),i=a.useCallback((e=>t(e?`${e}:00`:void 0)),[t]);return Yj.jsx(o,Object.assign({type:"time"},e,{onChange:i}))}function hV(e){const{options:t,registry:r}=e,n=Jj("BaseInputTemplate",r,t);return Yj.jsx(n,Object.assign({type:"url"},e))}function mV(e){const{options:t,registry:r}=e,n=Jj("BaseInputTemplate",r,t);return Yj.jsx(n,Object.assign({type:"number"},e))}function vV(){return{fields:{AnyOfField:hD,ArrayField:fD,BooleanField:pD,NumberField:gD,ObjectField:fB,OneOfField:hD,SchemaField:mB,StringField:vB,NullField:gB},templates:{ArrayFieldDescriptionTemplate:yB,ArrayFieldItemTemplate:bB,ArrayFieldTemplate:wB,ArrayFieldTitleTemplate:SB,ButtonTemplates:{SubmitButton:_B,AddButton:OB,CopyButton:kB,MoveDownButton:EB,MoveUpButton:jB,RemoveButton:CB},BaseInputTemplate:xB,DescriptionFieldTemplate:PB,ErrorListTemplate:NB,FieldTemplate:AB,FieldErrorTemplate:IB,FieldHelpTemplate:MB,ObjectFieldTemplate:FB,TitleFieldTemplate:DB,UnsupportedFieldTemplate:LB,WrapIfAdditionalTemplate:BB},widgets:{AltDateWidget:qB,AltDateTimeWidget:KB,CheckboxWidget:HB,CheckboxesWidget:GB,ColorWidget:QB,DateWidget:JB,DateTimeWidget:YB,EmailWidget:XB,FileWidget:oV,HiddenWidget:aV,PasswordWidget:iV,RadioWidget:sV,RangeWidget:lV,SelectWidget:cV,TextWidget:fV,TextareaWidget:dV,TimeWidget:pV,UpDownWidget:mV,URLWidget:hV},rootSchema:{},formContext:{},translateString:Fj}}dV.defaultProps={autofocus:!1,options:{}};let gV=class extends a.Component{constructor(e){if(super(e),this.getUsedFormData=(e,t)=>{if(0===t.length&&"object"!=typeof e)return e;const r=sD(e,t);return Array.isArray(e)?Object.keys(r).map((e=>r[e])):r},this.getFieldNames=(e,t)=>{const r=(e,n=[],o=[[]])=>(Object.keys(e).forEach((a=>{if("object"==typeof e[a]){const t=o.map((e=>[...e,a]));e[a][bd]&&""!==e[a][pd]?n.push(e[a][pd]):r(e[a],n,t)}else a===pd&&""!==e[a]&&o.forEach((e=>{const r=Lv(t,e);("object"!=typeof r||Jv(r))&&n.push(e)}))})),n);return r(e)},this.onChange=(e,t,r)=>{const{extraErrors:n,omitExtraData:o,liveOmit:a,noValidate:i,liveValidate:s,onChange:l}=this.props,{schemaUtils:u,schema:c}=this.state;if(Zc(e)||Array.isArray(e)){e=this.getStateFromProps(this.props,e).formData}const d=!i&&s;let f={formData:e,schema:c},p=e;if(!0===o&&!0===a){const t=u.retrieveSchema(c,e),r=u.toPathSchema(t,"",e),n=this.getFieldNames(r,e);p=this.getUsedFormData(e,n),f={formData:p}}if(d){const e=this.validate(p);let t=e.errors,r=e.errorSchema;const o=t,a=r;if(n){const o=tO(e,n);r=o.errorSchema,t=o.errors}f={formData:p,errors:t,errorSchema:r,schemaValidationErrors:o,schemaValidationErrorSchema:a}}else if(!i&&t){const e=n?wj(t,n,"preventDuplicates"):t;f={formData:p,errorSchema:e,errors:UC(e)}}this.setState(f,(()=>l&&l(Object.assign(Object.assign({},this.state),f),r)))},this.reset=()=>{const{onChange:e}=this.props,t={formData:this.getStateFromProps(this.props,void 0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(t,(()=>e&&e(Object.assign(Object.assign({},this.state),t))))},this.onBlur=(e,t)=>{const{onBlur:r}=this.props;r&&r(e,t)},this.onFocus=(e,t)=>{const{onFocus:r}=this.props;r&&r(e,t)},this.onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:t,extraErrors:r,noValidate:n,onSubmit:o}=this.props;let{formData:a}=this.state;const{schema:i,schemaUtils:s}=this.state;if(!0===t){const e=s.retrieveSchema(i,a),t=s.toPathSchema(e,"",a),r=this.getFieldNames(t,a);a=this.getUsedFormData(a,r)}if(n||this.validateForm()){const t=r||{},n=r?UC(r):[];this.setState({formData:a,errors:n,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{o&&o(Object.assign(Object.assign({},this.state),{formData:a,status:"submitted"}),e)}))}},!e.validator)throw new Error("A validator is required for Form functionality to work");this.state=this.getStateFromProps(e,e.formData),this.props.onChange&&!nv(this.state.formData,this.props.formData)&&this.props.onChange(this.state),this.formElement=a.createRef()}getSnapshotBeforeUpdate(e,t){if(!nv(this.props,e)){const e=this.getStateFromProps(this.props,this.props.formData);return{nextState:e,shouldUpdate:!nv(e,t)}}return{shouldUpdate:!1}}componentDidUpdate(e,t,r){if(r.shouldUpdate){const{nextState:e}=r;nv(e.formData,this.props.formData)||nv(e.formData,t.formData)||!this.props.onChange||this.props.onChange(e),this.setState(e)}}getStateFromProps(e,t){const r=this.state||{},n="schema"in e?e.schema:this.props.schema,o=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{},a=void 0!==t,i="liveValidate"in e?e.liveValidate:this.props.liveValidate,s=a&&!e.noValidate&&i,l=n,u="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior;let c=r.schemaUtils;c&&!c.doesSchemaUtilsDiffer(e.validator,l,u)||(c=function(e,t,r={}){return new Mj(e,t,r)}(e.validator,l,u));const d=c.getDefaultFormState(n,t),f=c.retrieveSchema(n,d);let p,h,m=r.schemaValidationErrors,v=r.schemaValidationErrorSchema;if(s){const e=this.validate(d,n,c);p=e.errors,h=e.errorSchema,m=p,v=h}else{const t=e.noValidate?{errors:[],errorSchema:{}}:e.liveValidate?{errors:r.errors||[],errorSchema:r.errorSchema||{}}:{errors:r.schemaValidationErrors||[],errorSchema:r.schemaValidationErrorSchema||{}};p=t.errors,h=t.errorSchema}if(e.extraErrors){const t=tO({errorSchema:h,errors:p},e.extraErrors);h=t.errorSchema,p=t.errors}const g=c.toIdSchema(f,o["ui:rootFieldId"],d,e.idPrefix,e.idSeparator);return{schemaUtils:c,schema:n,uiSchema:o,idSchema:g,formData:d,edit:a,errors:p,errorSchema:h,schemaValidationErrors:m,schemaValidationErrorSchema:v}}shouldComponentUpdate(e,t){return function(e,t,r){const{props:n,state:o}=e;return!nv(n,t)||!nv(o,r)}(this,e,t)}validate(e,t=this.props.schema,r){const n=r||this.state.schemaUtils,{customValidate:o,transformErrors:a,uiSchema:i}=this.props,s=n.retrieveSchema(t,e);return n.getValidator().validateFormData(e,s,o,a,i)}renderErrors(e){const{errors:t,errorSchema:r,schema:n,uiSchema:o}=this.state,{formContext:a}=this.props,i=Jj("ErrorListTemplate",e,_d(o));return t&&t.length?Yj.jsx(i,{errors:t,errorSchema:r||{},schema:n,uiSchema:o,formContext:a,registry:e}):null}getRegistry(){var e;const{translateString:t,uiSchema:r={}}=this.props,{schemaUtils:n}=this.state,{fields:o,templates:a,widgets:i,formContext:s,translateString:l}=vV();return{fields:Object.assign(Object.assign({},o),this.props.fields),templates:Object.assign(Object.assign(Object.assign({},a),this.props.templates),{ButtonTemplates:Object.assign(Object.assign({},a.ButtonTemplates),null===(e=this.props.templates)||void 0===e?void 0:e.ButtonTemplates)}),widgets:Object.assign(Object.assign({},i),this.props.widgets),rootSchema:this.props.schema,formContext:this.props.formContext||s,schemaUtils:n,translateString:t||l,globalUiOptions:r["ui:globalOptions"]}}submit(){this.formElement.current&&(this.formElement.current.dispatchEvent(new CustomEvent("submit",{cancelable:!0})),this.formElement.current.requestSubmit())}focusOnError(e){const{idPrefix:t="root",idSeparator:r="_"}=this.props,{property:n}=e,o=XC(n);""===o[0]?o[0]=t:o.unshift(t);const a=o.join(r);let i=this.formElement.current.elements[a];i||(i=this.formElement.current.querySelector(`input[id^=${a}`)),i&&i.length&&(i=i[0]),i&&i.focus()}validateForm(){const{extraErrors:e,extraErrorsBlockSubmit:t,focusOnFirstError:r,onError:n}=this.props,{formData:o,errors:a}=this.state,i=this.validate(o);let s=i.errors,l=i.errorSchema;const u=s,c=l,d=s.length>0||e&&t;if(d){if(e){const t=tO(i,e);l=t.errorSchema,s=t.errors}r&&("function"==typeof r?r(s[0]):this.focusOnError(s[0])),this.setState({errors:s,errorSchema:l,schemaValidationErrors:u,schemaValidationErrorSchema:c},(()=>{n?n(s):console.error("Form validation failed",s)}))}else a.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}});return!d}render(){const{children:e,id:t,idPrefix:r,idSeparator:n,className:o="",tagName:a,name:i,method:s,target:l,action:u,autoComplete:c,enctype:d,acceptcharset:f,noHtml5Validate:p=!1,disabled:h=!1,readonly:m=!1,formContext:v,showErrorList:g="top",_internalFormWrapper:y}=this.props,{schema:b,uiSchema:w,formData:S,errorSchema:x,idSchema:_}=this.state,$=this.getRegistry(),{SchemaField:k}=$.fields,{SubmitButton:E}=$.templates.ButtonTemplates,j=y?a:void 0,C=y||a||"form";let{[gd]:O={}}=_d(w);h&&(O=Object.assign(Object.assign({},O),{props:Object.assign(Object.assign({},O.props),{disabled:!0})}));const P={[xd]:{[gd]:O}};return Yj.jsxs(C,Object.assign({className:o||"rjsf",id:t,name:i,method:s,target:l,action:u,autoComplete:c,encType:d,acceptCharset:f,noValidate:p,onSubmit:this.onSubmit,as:j,ref:this.formElement},{children:["top"===g&&this.renderErrors($),Yj.jsx(k,{name:"",schema:b,uiSchema:w,errorSchema:x,idSchema:_,idPrefix:r,idSeparator:n,formContext:v,formData:S,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:$,disabled:h,readonly:m}),e||Yj.jsx(E,{uiSchema:P,registry:$}),"bottom"===g&&this.renderErrors($)]}))}};var yV={},bV={},wV={get exports(){return bV},set exports(e){bV=e}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(wV);var SV={};function xV(){return xV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xV.apply(this,arguments)}function _V(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function $V(e){if(!_V(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=$V(e[r])})),t}function kV(e,t,r={clone:!0}){const n=r.clone?xV({},e):e;return _V(e)&&_V(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(_V(t[o])&&o in e&&_V(e[o])?n[o]=kV(e[o],t[o],r):r.clone?n[o]=_V(t[o])?$V(t[o]):t[o]:n[o]=t[o])})),n}function EV(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function jV(e){if("string"!=typeof e)throw new Error(EV(7));return e.charAt(0).toUpperCase()+e.slice(1)}function CV(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function OV(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function PV(e,t){var r,n;return a.isValidElement(e)&&-1!==t.indexOf(null!=(r=e.type.muiName)?r:null==(n=e.type)||null==(n=n._payload)||null==(n=n.value)?void 0:n.muiName)}function NV(e){return e&&e.ownerDocument||document}function RV(e){return NV(e).defaultView||window}function TV(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var AV="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;let IV=0;const MV=V["useId".toString()];function FV(e){if(void 0!==MV){const t=MV();return null!=e?e:t}return function(e){const[t,r]=a.useState(e),n=e||t;return a.useEffect((()=>{null==t&&(IV+=1,r(`mui-${IV}`))}),[t]),n}(e)}function zV({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=a.useRef(void 0!==e),[i,s]=a.useState(t);return[o?e:i,a.useCallback((e=>{o||s(e)}),[])]}function DV(e){const t=a.useRef(e);return AV((()=>{t.current=e})),a.useRef(((...e)=>(0,t.current)(...e))).current}function LV(...e){return a.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{TV(e,t)}))}),e)}let BV,VV=!0,UV=!1;const WV={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function qV(e){e.metaKey||e.altKey||e.ctrlKey||(VV=!0)}function KV(){VV=!1}function HV(){"hidden"===this.visibilityState&&UV&&(VV=!0)}function GV(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return VV||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!WV[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function QV(){const e=a.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",qV,!0),t.addEventListener("mousedown",KV,!0),t.addEventListener("pointerdown",KV,!0),t.addEventListener("touchstart",KV,!0),t.addEventListener("visibilitychange",HV,!0))}),[]),t=a.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!GV(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(UV=!0,window.clearTimeout(BV),BV=window.setTimeout((()=>{UV=!1}),100),t.current=!1,!0)},ref:e}}function JV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var YV={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function XV(e,t){const r=xV({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=xV({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},a&&Object.keys(a)?o&&Object.keys(o)?(r[n]=xV({},a),Object.keys(o).forEach((e=>{r[n][e]=XV(o[e],a[e])}))):r[n]=a:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function ZV(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const eU=e=>e;var tU=(()=>{let e=eU;return{configure(t){e=t},generate:t=>e(t),reset(){e=eU}}})();const rU={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function nU(e,t,r="Mui"){const n=rU[t];return n?`${r}-${n}`:`${tU.generate(e)}-${t}`}function oU(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=nU(e,t,r)})),n}function aU(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function iU(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=iU(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function sU(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=iU(e))&&(n&&(n+=" "),n+=t);return n}function lU(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var uU=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,cU=lU((function(e){return uU.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var dU=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),fU="-ms-",pU="-moz-",hU="-webkit-",mU="comm",vU="rule",gU="decl",yU="@keyframes",bU=Math.abs,wU=String.fromCharCode,SU=Object.assign;function xU(e){return e.trim()}function _U(e,t,r){return e.replace(t,r)}function $U(e,t){return e.indexOf(t)}function kU(e,t){return 0|e.charCodeAt(t)}function EU(e,t,r){return e.slice(t,r)}function jU(e){return e.length}function CU(e){return e.length}function OU(e,t){return t.push(e),e}var PU=1,NU=1,RU=0,TU=0,AU=0,IU="";function MU(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:PU,column:NU,length:i,return:""}}function FU(e,t){return SU(MU("",null,null,"",null,null,0),e,{length:-e.length},t)}function zU(){return AU=TU>0?kU(IU,--TU):0,NU--,10===AU&&(NU=1,PU--),AU}function DU(){return AU=TU<RU?kU(IU,TU++):0,NU++,10===AU&&(NU=1,PU++),AU}function LU(){return kU(IU,TU)}function BU(){return TU}function VU(e,t){return EU(IU,e,t)}function UU(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function WU(e){return PU=NU=1,RU=jU(IU=e),TU=0,[]}function qU(e){return IU="",e}function KU(e){return xU(VU(TU-1,QU(91===e?e+2:40===e?e+1:e)))}function HU(e){for(;(AU=LU())&&AU<33;)DU();return UU(e)>2||UU(AU)>3?"":" "}function GU(e,t){for(;--t&&DU()&&!(AU<48||AU>102||AU>57&&AU<65||AU>70&&AU<97););return VU(e,BU()+(t<6&&32==LU()&&32==DU()))}function QU(e){for(;DU();)switch(AU){case e:return TU;case 34:case 39:34!==e&&39!==e&&QU(AU);break;case 40:41===e&&QU(e);break;case 92:DU()}return TU}function JU(e,t){for(;DU()&&e+AU!==57&&(e+AU!==84||47!==LU()););return"/*"+VU(t,TU-1)+"*"+wU(47===e?e:DU())}function YU(e){for(;!UU(LU());)DU();return VU(e,TU)}function XU(e){return qU(ZU("",null,null,null,[""],e=WU(e),0,[0],e))}function ZU(e,t,r,n,o,a,i,s,l){for(var u=0,c=0,d=i,f=0,p=0,h=0,m=1,v=1,g=1,y=0,b="",w=o,S=a,x=n,_=b;v;)switch(h=y,y=DU()){case 40:if(108!=h&&58==kU(_,d-1)){-1!=$U(_+=_U(KU(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:_+=KU(y);break;case 9:case 10:case 13:case 32:_+=HU(h);break;case 92:_+=GU(BU()-1,7);continue;case 47:switch(LU()){case 42:case 47:OU(tW(JU(DU(),BU()),t,r),l);break;default:_+="/"}break;case 123*m:s[u++]=jU(_)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+c:-1==g&&(_=_U(_,/\f/g,"")),p>0&&jU(_)-d&&OU(p>32?rW(_+";",n,r,d-1):rW(_U(_," ","")+";",n,r,d-2),l);break;case 59:_+=";";default:if(OU(x=eW(_,t,r,u,c,o,s,b,w=[],S=[],d),a),123===y)if(0===c)ZU(_,t,x,x,w,a,d,s,S);else switch(99===f&&110===kU(_,3)?100:f){case 100:case 108:case 109:case 115:ZU(e,x,x,n&&OU(eW(e,x,x,0,0,o,s,b,o,w=[],d),S),o,S,d,s,n?w:S);break;default:ZU(_,x,x,x,[""],S,0,s,S)}}u=c=p=0,m=g=1,b=_="",d=i;break;case 58:d=1+jU(_),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==zU())continue;switch(_+=wU(y),y*m){case 38:g=c>0?1:(_+="\f",-1);break;case 44:s[u++]=(jU(_)-1)*g,g=1;break;case 64:45===LU()&&(_+=KU(DU())),f=LU(),c=d=jU(b=_+=YU(BU())),y++;break;case 45:45===h&&2==jU(_)&&(m=0)}}return a}function eW(e,t,r,n,o,a,i,s,l,u,c){for(var d=o-1,f=0===o?a:[""],p=CU(f),h=0,m=0,v=0;h<n;++h)for(var g=0,y=EU(e,d+1,d=bU(m=i[h])),b=e;g<p;++g)(b=xU(m>0?f[g]+" "+y:_U(y,/&\f/g,f[g])))&&(l[v++]=b);return MU(e,t,r,0===o?vU:s,l,u,c)}function tW(e,t,r){return MU(e,t,r,mU,wU(AU),EU(e,2,-2),0)}function rW(e,t,r,n){return MU(e,t,r,gU,EU(e,0,n),EU(e,n+1,-1),n)}function nW(e,t){for(var r="",n=CU(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function oW(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case gU:return e.return=e.return||e.value;case mU:return"";case yU:return e.return=e.value+"{"+nW(e.children,n)+"}";case vU:e.value=e.props.join(",")}return jU(r=nW(e.children,n))?e.return=e.value+"{"+r+"}":""}var aW=function(e,t,r){for(var n=0,o=0;n=o,o=LU(),38===n&&12===o&&(t[r]=1),!UU(o);)DU();return VU(e,TU)},iW=function(e,t){return qU(function(e,t){var r=-1,n=44;do{switch(UU(n)){case 0:38===n&&12===LU()&&(t[r]=1),e[r]+=aW(TU-1,t,r);break;case 2:e[r]+=KU(n);break;case 4:if(44===n){e[++r]=58===LU()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=wU(n)}}while(n=DU());return e}(WU(e),t))},sW=new WeakMap,lW=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||sW.get(r))&&!n){sW.set(e,!0);for(var o=[],a=iW(t,o),i=r.props,s=0,l=0;s<a.length;s++)for(var u=0;u<i.length;u++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[u]):i[u]+" "+a[s]}}},uW=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function cW(e,t){switch(function(e,t){return 45^kU(e,0)?(((t<<2^kU(e,0))<<2^kU(e,1))<<2^kU(e,2))<<2^kU(e,3):0}(e,t)){case 5103:return hU+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return hU+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return hU+e+pU+e+fU+e+e;case 6828:case 4268:return hU+e+fU+e+e;case 6165:return hU+e+fU+"flex-"+e+e;case 5187:return hU+e+_U(e,/(\w+).+(:[^]+)/,hU+"box-$1$2"+fU+"flex-$1$2")+e;case 5443:return hU+e+fU+"flex-item-"+_U(e,/flex-|-self/,"")+e;case 4675:return hU+e+fU+"flex-line-pack"+_U(e,/align-content|flex-|-self/,"")+e;case 5548:return hU+e+fU+_U(e,"shrink","negative")+e;case 5292:return hU+e+fU+_U(e,"basis","preferred-size")+e;case 6060:return hU+"box-"+_U(e,"-grow","")+hU+e+fU+_U(e,"grow","positive")+e;case 4554:return hU+_U(e,/([^-])(transform)/g,"$1"+hU+"$2")+e;case 6187:return _U(_U(_U(e,/(zoom-|grab)/,hU+"$1"),/(image-set)/,hU+"$1"),e,"")+e;case 5495:case 3959:return _U(e,/(image-set\([^]*)/,hU+"$1$`$1");case 4968:return _U(_U(e,/(.+:)(flex-)?(.*)/,hU+"box-pack:$3"+fU+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+hU+e+e;case 4095:case 3583:case 4068:case 2532:return _U(e,/(.+)-inline(.+)/,hU+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jU(e)-1-t>6)switch(kU(e,t+1)){case 109:if(45!==kU(e,t+4))break;case 102:return _U(e,/(.+:)(.+)-([^]+)/,"$1"+hU+"$2-$3$1"+pU+(108==kU(e,t+3)?"$3":"$2-$3"))+e;case 115:return~$U(e,"stretch")?cW(_U(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==kU(e,t+1))break;case 6444:switch(kU(e,jU(e)-3-(~$U(e,"!important")&&10))){case 107:return _U(e,":",":"+hU)+e;case 101:return _U(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+hU+(45===kU(e,14)?"inline-":"")+"box$3$1"+hU+"$2$3$1"+fU+"$2box$3")+e}break;case 5936:switch(kU(e,t+11)){case 114:return hU+e+fU+_U(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hU+e+fU+_U(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hU+e+fU+_U(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return hU+e+fU+e+e}return e}var dW=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case gU:e.return=cW(e.value,e.length);break;case yU:return nW([FU(e,{value:_U(e.value,"@","@"+hU)})],n);case vU:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return nW([FU(e,{props:[_U(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return nW([FU(e,{props:[_U(t,/:(plac\w+)/,":"+hU+"input-$1")]}),FU(e,{props:[_U(t,/:(plac\w+)/,":-moz-$1")]}),FU(e,{props:[_U(t,/:(plac\w+)/,fU+"input-$1")]})],n)}return""}))}}],fW=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,o,a=e.stylisPlugins||dW,i={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)}));var l,u,c=[oW,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=CU(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}([lW,uW].concat(a,c));o=function(e,t,r,n){l=r,function(e){nW(XU(e),d)}(e?e+"{"+t.styles+"}":t.styles),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new dU({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return f.sheet.hydrate(s),f},pW={},hW={get exports(){return pW},set exports(e){pW=e}},mW={},vW="function"==typeof Symbol&&Symbol.for,gW=vW?Symbol.for("react.element"):60103,yW=vW?Symbol.for("react.portal"):60106,bW=vW?Symbol.for("react.fragment"):60107,wW=vW?Symbol.for("react.strict_mode"):60108,SW=vW?Symbol.for("react.profiler"):60114,xW=vW?Symbol.for("react.provider"):60109,_W=vW?Symbol.for("react.context"):60110,$W=vW?Symbol.for("react.async_mode"):60111,kW=vW?Symbol.for("react.concurrent_mode"):60111,EW=vW?Symbol.for("react.forward_ref"):60112,jW=vW?Symbol.for("react.suspense"):60113,CW=vW?Symbol.for("react.suspense_list"):60120,OW=vW?Symbol.for("react.memo"):60115,PW=vW?Symbol.for("react.lazy"):60116,NW=vW?Symbol.for("react.block"):60121,RW=vW?Symbol.for("react.fundamental"):60117,TW=vW?Symbol.for("react.responder"):60118,AW=vW?Symbol.for("react.scope"):60119;function IW(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case gW:switch(e=e.type){case $W:case kW:case bW:case SW:case wW:case jW:return e;default:switch(e=e&&e.$$typeof){case _W:case EW:case PW:case OW:case xW:return e;default:return t}}case yW:return t}}}function MW(e){return IW(e)===kW}mW.AsyncMode=$W,mW.ConcurrentMode=kW,mW.ContextConsumer=_W,mW.ContextProvider=xW,mW.Element=gW,mW.ForwardRef=EW,mW.Fragment=bW,mW.Lazy=PW,mW.Memo=OW,mW.Portal=yW,mW.Profiler=SW,mW.StrictMode=wW,mW.Suspense=jW,mW.isAsyncMode=function(e){return MW(e)||IW(e)===$W},mW.isConcurrentMode=MW,mW.isContextConsumer=function(e){return IW(e)===_W},mW.isContextProvider=function(e){return IW(e)===xW},mW.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===gW},mW.isForwardRef=function(e){return IW(e)===EW},mW.isFragment=function(e){return IW(e)===bW},mW.isLazy=function(e){return IW(e)===PW},mW.isMemo=function(e){return IW(e)===OW},mW.isPortal=function(e){return IW(e)===yW},mW.isProfiler=function(e){return IW(e)===SW},mW.isStrictMode=function(e){return IW(e)===wW},mW.isSuspense=function(e){return IW(e)===jW},mW.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===bW||e===kW||e===SW||e===wW||e===jW||e===CW||"object"==typeof e&&null!==e&&(e.$$typeof===PW||e.$$typeof===OW||e.$$typeof===xW||e.$$typeof===_W||e.$$typeof===EW||e.$$typeof===RW||e.$$typeof===TW||e.$$typeof===AW||e.$$typeof===NW)},mW.typeOf=IW,function(e){e.exports=mW}(hW);var FW=pW,zW={};zW[FW.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zW[FW.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var DW=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},LW=function(e,t,r){DW(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var BW={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},VW=/[A-Z]|^ms/g,UW=/_EMO_([^_]+?)_([^]*?)_EMO_/g,WW=function(e){return 45===e.charCodeAt(1)},qW=function(e){return null!=e&&"boolean"!=typeof e},KW=lU((function(e){return WW(e)?e:e.replace(VW,"-$&").toLowerCase()})),HW=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(UW,(function(e,t,r){return QW={name:t,styles:r,next:QW},t}))}return 1===BW[e]||WW(e)||"number"!=typeof t||0===t?t:t+"px"};function GW(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return QW={name:r.name,styles:r.styles,next:QW},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)QW={name:n.name,styles:n.styles,next:QW},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=GW(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?n+=a+"{"+t[i]+"}":qW(i)&&(n+=KW(a)+":"+HW(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=GW(e,t,i);switch(a){case"animation":case"animationName":n+=KW(a)+":"+s+";";break;default:n+=a+"{"+s+"}"}}else for(var l=0;l<i.length;l++)qW(i[l])&&(n+=KW(a)+":"+HW(a,i[l])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=QW,a=r(e);return QW=o,GW(e,t,a)}}if(null==t)return r;var i=t[r];return void 0!==i?i:r}var QW,JW=/label:\s*([^\s;\n{]+)\s*(;|$)/g,YW=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";QW=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=GW(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=GW(r,t,e[i]),n&&(o+=a[i]);JW.lastIndex=0;for(var s,l="";null!==(s=JW.exec(o));)l+="-"+s[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:QW}},XW=!!V.useInsertionEffect&&V.useInsertionEffect,ZW=XW||function(e){return e()},eq=XW||a.useLayoutEffect,tq=a.createContext("undefined"!=typeof HTMLElement?fW({key:"css"}):null);tq.Provider;var rq=function(e){return a.forwardRef((function(t,r){var n=a.useContext(tq);return e(t,n,r)}))},nq=a.createContext({}),oq=rq((function(e,t){var r=e.styles,n=YW([r],void 0,a.useContext(nq)),o=a.useRef();return eq((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),o.current=[r,a],function(){r.flush()}}),[t]),eq((function(){var e=o.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&LW(t,n.next,!0),r.tags.length){var a=r.tags[r.tags.length-1].nextElementSibling;r.before=a,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function aq(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return YW(t)}var iq=function(){var e=aq.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},sq=cU,lq=function(e){return"theme"!==e},uq=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?sq:lq},cq=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},dq=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return DW(t,r,n),ZW((function(){return LW(t,r,n)})),null},fq=function e(t,r){var n,o,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var l=cq(t,r,i),u=l||uq(s),c=!u("as");return function(){var d=arguments,f=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&f.push("label:"+n+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,h=1;h<p;h++)f.push(d[h],d[0][h])}var m=rq((function(e,t,r){var n,i,d,p,h=c&&e.as||s,m="",v=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=a.useContext(nq)}"string"==typeof e.className?(n=t.registered,i=v,d=e.className,p="",d.split(" ").forEach((function(e){void 0!==n[e]?i.push(n[e]+";"):p+=e+" "})),m=p):null!=e.className&&(m=e.className+" ");var b=YW(f.concat(v),t.registered,g);m+=t.key+"-"+b.name,void 0!==o&&(m+=" "+o);var w=c&&void 0===l?uq(h):u,S={};for(var x in e)c&&"as"===x||w(x)&&(S[x]=e[x]);return S.className=m,S.ref=r,a.createElement(a.Fragment,null,a.createElement(dq,{cache:t,serialized:b,isStringTag:"string"==typeof h}),a.createElement(h,S))}));return m.displayName=void 0!==n?n:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=f,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,n){return e(t,xV({},r,n,{shouldForwardProp:cq(m,n,!0)})).apply(void 0,f)},m}}.bind();function pq(e){const{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return Yj.jsx(oq,{styles:n})}
57
57
  /**
58
- * @mui/styled-engine v5.14.12
58
+ * @mui/styled-engine v5.14.16
59
59
  *
60
60
  * @license MIT
61
61
  * This source code is licensed under the MIT license found in the
62
62
  * LICENSE file in the root directory of this source tree.
63
- */function cq(e,t){return lq(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){lq[e]=lq(e)}));const dq=["values","unit","step"],fq=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>yV({},e,{[t.key]:t.val})),{})};var pq={borderRadius:4};function hq(e,t){return t?SV(e,t,{clone:!1}):e}const mq={xs:0,sm:600,md:900,lg:1200,xl:1536},vq={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mq[e]}px)`};function gq(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||vq;return t.reduce(((n,o,a)=>(n[e.up(e.keys[a])]=r(t[a]),n)),{})}if("object"==typeof t){const e=n.breakpoints||vq;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||mq).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function yq(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function bq(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function wq({values:e,breakpoints:t,base:r}){const n=r||function(e,t){if("object"!=typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n<e.length&&(r[t]=!0)})):n.forEach((t=>{null!=e[t]&&(r[t]=!0)})),r}(e,t),o=Object.keys(n);if(0===o.length)return e;let a;return o.reduce(((t,r,n)=>(Array.isArray(e)?(t[r]=null!=e[n]?e[n]:e[a],a=n):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[a],a=r):t[r]=e,t)),{})}function Sq(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function xq(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Sq(e,r)||n,t&&(o=t(o,n,e)),o}function _q(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=Sq(e.theme,n)||{};return gq(e,a,(e=>{let n=xq(i,o,e);return e===n&&"string"==typeof e&&(n=xq(i,o,`${t}${"default"===e?"":_V(e)}`,e)),!1===r?n:{[r]:n}}))};return a.propTypes={},a.filterProps=[t],a}const $q={m:"margin",p:"padding"},kq={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Eq={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jq=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Eq[e])return[e];e=Eq[e]}const[t,r]=e.split(""),n=$q[t],o=kq[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Cq=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Oq=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Pq(e,t,r,n){var o;const a=null!=(o=Sq(e,t,!1))?o:r;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function Nq(e){return Pq(e,"spacing",8)}function Rq(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Tq(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Rq(t,r),e)),{})}(jq(r),n);return gq(e,e[r],o)}function Aq(e,t){const r=Nq(e.theme);return Object.keys(e).map((n=>Tq(e,t,n,r))).reduce(hq,{})}function Iq(e){return Aq(e,Cq)}function Mq(e){return Aq(e,Oq)}function Fq(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?hq(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function zq(e){return"number"!=typeof e?e:`${e}px solid`}Iq.propTypes={},Iq.filterProps=Cq,Mq.propTypes={},Mq.filterProps=Oq;const Dq=_q({prop:"border",themeKey:"borders",transform:zq}),Lq=_q({prop:"borderTop",themeKey:"borders",transform:zq}),Bq=_q({prop:"borderRight",themeKey:"borders",transform:zq}),Vq=_q({prop:"borderBottom",themeKey:"borders",transform:zq}),Uq=_q({prop:"borderLeft",themeKey:"borders",transform:zq}),Wq=_q({prop:"borderColor",themeKey:"palette"}),qq=_q({prop:"borderTopColor",themeKey:"palette"}),Kq=_q({prop:"borderRightColor",themeKey:"palette"}),Hq=_q({prop:"borderBottomColor",themeKey:"palette"}),Gq=_q({prop:"borderLeftColor",themeKey:"palette"}),Qq=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Pq(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Rq(t,e)});return gq(e,e.borderRadius,r)}return null};Qq.propTypes={},Qq.filterProps=["borderRadius"],Fq(Dq,Lq,Bq,Vq,Uq,Wq,qq,Kq,Hq,Gq,Qq);const Jq=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Pq(e.theme,"spacing",8),r=e=>({gap:Rq(t,e)});return gq(e,e.gap,r)}return null};Jq.propTypes={},Jq.filterProps=["gap"];const Yq=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Pq(e.theme,"spacing",8),r=e=>({columnGap:Rq(t,e)});return gq(e,e.columnGap,r)}return null};Yq.propTypes={},Yq.filterProps=["columnGap"];const Xq=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Pq(e.theme,"spacing",8),r=e=>({rowGap:Rq(t,e)});return gq(e,e.rowGap,r)}return null};Xq.propTypes={},Xq.filterProps=["rowGap"];function Zq(e,t){return"grey"===t?t:e}Fq(Jq,Yq,Xq,_q({prop:"gridColumn"}),_q({prop:"gridRow"}),_q({prop:"gridAutoFlow"}),_q({prop:"gridAutoColumns"}),_q({prop:"gridAutoRows"}),_q({prop:"gridTemplateColumns"}),_q({prop:"gridTemplateRows"}),_q({prop:"gridTemplateAreas"}),_q({prop:"gridArea"}));function eK(e){return e<=1&&0!==e?100*e+"%":e}Fq(_q({prop:"color",themeKey:"palette",transform:Zq}),_q({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zq}),_q({prop:"backgroundColor",themeKey:"palette",transform:Zq}));const tK=_q({prop:"width",transform:eK}),rK=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||mq[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:eK(t)}};return gq(e,e.maxWidth,t)}return null};rK.filterProps=["maxWidth"];const nK=_q({prop:"minWidth",transform:eK}),oK=_q({prop:"height",transform:eK}),aK=_q({prop:"maxHeight",transform:eK}),iK=_q({prop:"minHeight",transform:eK});_q({prop:"size",cssProperty:"width",transform:eK}),_q({prop:"size",cssProperty:"height",transform:eK});Fq(tK,rK,nK,oK,aK,iK,_q({prop:"boxSizing"}));var sK={border:{themeKey:"borders",transform:zq},borderTop:{themeKey:"borders",transform:zq},borderRight:{themeKey:"borders",transform:zq},borderBottom:{themeKey:"borders",transform:zq},borderLeft:{themeKey:"borders",transform:zq},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Qq},color:{themeKey:"palette",transform:Zq},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zq},backgroundColor:{themeKey:"palette",transform:Zq},p:{style:Mq},pt:{style:Mq},pr:{style:Mq},pb:{style:Mq},pl:{style:Mq},px:{style:Mq},py:{style:Mq},padding:{style:Mq},paddingTop:{style:Mq},paddingRight:{style:Mq},paddingBottom:{style:Mq},paddingLeft:{style:Mq},paddingX:{style:Mq},paddingY:{style:Mq},paddingInline:{style:Mq},paddingInlineStart:{style:Mq},paddingInlineEnd:{style:Mq},paddingBlock:{style:Mq},paddingBlockStart:{style:Mq},paddingBlockEnd:{style:Mq},m:{style:Iq},mt:{style:Iq},mr:{style:Iq},mb:{style:Iq},ml:{style:Iq},mx:{style:Iq},my:{style:Iq},margin:{style:Iq},marginTop:{style:Iq},marginRight:{style:Iq},marginBottom:{style:Iq},marginLeft:{style:Iq},marginX:{style:Iq},marginY:{style:Iq},marginInline:{style:Iq},marginInlineStart:{style:Iq},marginInlineEnd:{style:Iq},marginBlock:{style:Iq},marginBlockStart:{style:Iq},marginBlockEnd:{style:Iq},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Jq},rowGap:{style:Xq},columnGap:{style:Yq},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:eK},maxWidth:{style:rK},minWidth:{transform:eK},height:{transform:eK},maxHeight:{transform:eK},minHeight:{transform:eK},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const lK=function(){function e(e,t,r,n){const o={[e]:t,theme:r},a=n[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:s,transform:l,style:u}=a;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Sq(r,s)||{};if(u)return u(o);return gq(o,t,(t=>{let r=xq(c,l,t);return t===r&&"string"==typeof t&&(r=xq(c,l,`${e}${"default"===t?"":_V(t)}`,t)),!1===i?r:{[i]:r}}))}return function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=null!=(n=a.unstable_sxConfig)?n:sK;function s(r){let n=r;if("function"==typeof r)n=r(a);else if("object"!=typeof r)return r;if(!n)return null;const o=yq(a.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=a,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(i[r])l=hq(l,e(r,o,a,i));else{const e=gq({theme:a},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=hq(l,e):l[r]=t({sx:o,theme:a})}else l=hq(l,e(r,o,a,i))})),bq(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();lK.filterProps=["sx"];var uK=lK;const cK=["breakpoints","palette","spacing","shape"];function dK(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=tU(e,cK),s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=tU(e,dq),a=fq(t),i=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-n/100}${r})`}return yV({keys:i,values:a,up:s,down:l,between:u,only:function(e){return i.indexOf(e)+1<i.length?u(e,i[i.indexOf(e)+1]):s(e)},not:function(e){const t=i.indexOf(e);return 0===t?s(i[1]):t===i.length-1?l(i[t]):u(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),l=function(e=8){if(e.mui)return e;const t=Nq({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=SV({breakpoints:s,direction:"ltr",components:{},palette:yV({mode:"light"},n),spacing:l,shape:yV({},pq,a)},i);return u=t.reduce(((e,t)=>SV(e,t)),u),u.unstable_sxConfig=yV({},sK,null==i?void 0:i.unstable_sxConfig),u.unstable_sx=function(e){return uK({sx:e,theme:this})},u}function fK(e=null){const t=a.useContext(ZW);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const pK=dK();function hK(e=pK){return fK(e)}function mK({styles:e,themeId:t,defaultTheme:r={}}){const n=hK(r),o="function"==typeof e?e(t&&n[t]||n):e;return Hj.jsx(uq,{styles:o})}const vK=["sx"],gK=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:sK;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function yK(e){const{sx:t}=e,r=tU(e,vK),{systemProps:n,otherProps:o}=gK(r);let a;return a=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return bV(r)?yV({},n,r):n}:yV({},n,t),yV({},o,{sx:a})}const bK=["className","component"];const wK=["variant"];function SK(e){return 0===e.length}function xK(e){const{variant:t}=e,r=tU(e,wK);let n=t||"";return Object.keys(r).sort().forEach((t=>{n+="color"===t?SK(n)?e[t]:_V(e[t]):`${SK(n)?t:_V(t)}${_V(e[t].toString())}`})),n}const _K=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const $K=e=>{const t={};return e&&e.forEach((e=>{const r=xK(e.props);t[r]=e.style})),t},kK=(e,t,r)=>{const{ownerState:n={}}=e,o=[];return r&&r.forEach((r=>{let a=!0;Object.keys(r.props).forEach((t=>{n[t]!==r.props[t]&&e[t]!==r.props[t]&&(a=!1)})),a&&o.push(t[xK(r.props)])})),o};function EK(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const jK=dK(),CK=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function OK({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function PK(e){return e?(t,r)=>r[e]:null}const NK=({styledArg:e,props:t,defaultTheme:r,themeId:n})=>{const o=e(yV({},t,{theme:OK(yV({},t,{defaultTheme:r,themeId:n}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){return[o,...kK(t,$K(a),a)]}return o};function RK(e={}){const{themeId:t,defaultTheme:r=jK,rootShouldForwardProp:n=EK,slotShouldForwardProp:o=EK}=e,a=e=>uK(yV({},e,{theme:OK(yV({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=PK(CK(l))}=i,f=tU(i,_K),p=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,h=c||!1;let m=EK;"Root"===l||"root"===l?m=n:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const v=cq(e,yV({shouldForwardProp:m,label:undefined},f)),g=(n,...o)=>{const i=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return n=>NK({styledArg:e,props:n,defaultTheme:r,themeId:t});if(bV(e)){let t,r=e;return e&&e.variants&&(t=e.variants,delete r.variants,r=r=>{let n=e;return kK(r,$K(t),t).forEach((e=>{n=SV(n,e)})),n}),r}return e})):[];let l=n;if(bV(n)){let e;n&&n.variants&&(e=n.variants,delete l.variants,l=t=>{let r=n;return kK(t,$K(e),e).forEach((e=>{r=SV(r,e)})),r})}else"function"==typeof n&&n.__emotion_real!==n&&(l=e=>NK({styledArg:n,props:e,defaultTheme:r,themeId:t}));s&&d&&i.push((e=>{const n=OK(yV({},e,{defaultTheme:r,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(s,n);if(o){const t={};return Object.entries(o).forEach((([r,o])=>{t[r]="function"==typeof o?o(yV({},e,{theme:n})):o})),d(e,t)}return null})),s&&!p&&i.push((e=>{const n=OK(yV({},e,{defaultTheme:r,themeId:t}));return((e,t,r,n)=>{var o;const a=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return kK(e,t,a)})(e,((e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),$K(r)})(s,n),n,s)})),h||i.push(a);const u=i.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");l=[...n,...e],l.raw=[...n.raw,...e]}const c=v(l,...i);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(g.withConfig=v.withConfig),g}}var TK=RK();function AK({props:e,name:t,defaultTheme:r,themeId:n}){let o=hK(r);n&&(o=o[n]||o);const a=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?GV(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return a}function IK(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function MK(e){if(e.type)return e;if("#"===e.charAt(0))return MK(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(xV(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(xV(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function FK(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function zK(e){let t="hsl"===(e=MK(e)).type||"hsla"===e.type?MK(function(e){e=MK(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),FK({type:s,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function DK(e,t){return e=MK(e),t=IK(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,FK(e)}function LK(e,t){if(e=MK(e),t=IK(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return FK(e)}function BK(e,t){if(e=MK(e),t=IK(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return FK(e)}const VK=["component","direction","spacing","divider","children","className","useFlexGap"],UK=dK(),WK=TK("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function qK(e){return AK({props:e,name:"MuiStack",defaultTheme:UK})}function KK(e,t){const r=a.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,o)=>(e.push(n),o<r.length-1&&e.push(a.cloneElement(t,{key:`separator-${o}`})),e)),[])}const HK=({ownerState:e,theme:t})=>{let r=yV({display:"flex",flexDirection:"column"},gq({theme:t},wq({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=Nq(t),o=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),a=wq({values:e.direction,base:o}),i=wq({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach(((e,t,r)=>{if(!a[e]){const n=t>0?a[r[t-1]]:"column";a[e]=n}}));r=SV(r,gq({theme:t},i,((t,r)=>{return e.useFlexGap?{gap:Rq(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=r?a[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:Rq(n,t)}};var o})))}return r=function(e,...t){const r=yq(e),n=[r,...t].reduce(((e,t)=>SV(e,t)),{});return bq(Object.keys(r),n)}(t.breakpoints,r),r};var GK={black:"#000",white:"#fff"};var QK={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var JK={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var YK={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var XK={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var ZK={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var eH={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var tH={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const rH=["mode","contrastThreshold","tonalOffset"],nH={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:GK.white,default:GK.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},oH={text:{primary:GK.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:GK.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function aH(e,t,r,n){const o=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=BK(e.main,o):"dark"===t&&(e.dark=LK(e.main,a)))}function iH(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=tU(e,rH),a=e.primary||function(e="light"){return"dark"===e?{main:ZK[200],light:ZK[50],dark:ZK[400]}:{main:ZK[700],light:ZK[400],dark:ZK[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:JK[200],light:JK[50],dark:JK[400]}:{main:JK[500],light:JK[300],dark:JK[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:YK[500],light:YK[300],dark:YK[700]}:{main:YK[700],light:YK[400],dark:YK[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:eH[400],light:eH[300],dark:eH[700]}:{main:eH[700],light:eH[500],dark:eH[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:tH[400],light:tH[300],dark:tH[700]}:{main:tH[800],light:tH[500],dark:tH[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:XK[400],light:XK[300],dark:XK[700]}:{main:"#ed6c02",light:XK[500],dark:XK[900]}}(t);function d(e){const t=function(e,t){const r=zK(e),n=zK(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,oH.text.primary)>=r?oH.text.primary:nH.text.primary;return t}const f=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=yV({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(xV(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(xV(12,t?` (${t})`:"",JSON.stringify(e.main)));return aH(e,"light",o,n),aH(e,"dark",a,n),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:oH,light:nH};return SV(yV({common:yV({},GK),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:QK,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n},p[t]),o)}const sH=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const lH={textTransform:"uppercase"},uH='"Roboto", "Helvetica", "Arial", sans-serif';function cH(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=uH,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,f=tU(r,sH),p=o/14,h=d||(e=>e/u*p+"rem"),m=(e,t,r,o,a)=>{return yV({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===uH?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},a,c);var i},v={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(s,14,1.75,.4,lH),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,lH),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return SV(yV({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},v),f,{clone:!1})}function dH(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var fH=["none",dH(0,2,1,-1,0,1,1,0,0,1,3,0),dH(0,3,1,-2,0,2,2,0,0,1,5,0),dH(0,3,3,-2,0,3,4,0,0,1,8,0),dH(0,2,4,-1,0,4,5,0,0,1,10,0),dH(0,3,5,-1,0,5,8,0,0,1,14,0),dH(0,3,5,-1,0,6,10,0,0,1,18,0),dH(0,4,5,-2,0,7,10,1,0,2,16,1),dH(0,5,5,-3,0,8,10,1,0,3,14,2),dH(0,5,6,-3,0,9,12,1,0,3,16,2),dH(0,6,6,-3,0,10,14,1,0,4,18,3),dH(0,6,7,-4,0,11,15,1,0,4,20,3),dH(0,7,8,-4,0,12,17,2,0,5,22,4),dH(0,7,8,-4,0,13,19,2,0,5,24,4),dH(0,7,9,-4,0,14,21,2,0,5,26,4),dH(0,8,9,-5,0,15,22,2,0,6,28,5),dH(0,8,10,-5,0,16,24,2,0,6,30,5),dH(0,8,11,-5,0,17,26,2,0,6,32,5),dH(0,9,11,-5,0,18,28,2,0,7,34,6),dH(0,9,12,-6,0,19,29,2,0,7,36,6),dH(0,10,13,-6,0,20,31,3,0,8,38,7),dH(0,10,13,-6,0,21,33,3,0,8,40,7),dH(0,10,14,-6,0,22,35,3,0,8,42,7),dH(0,11,14,-7,0,23,36,3,0,9,44,8),dH(0,11,15,-7,0,24,38,3,0,9,46,8)];const pH=["duration","easing","delay"],hH={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},mH={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vH(e){return`${Math.round(e)}ms`}function gH(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function yH(e){const t=yV({},hH,e.easing),r=yV({},mH,e.duration);return yV({getAutoHeightDuration:gH,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:a=t.easeInOut,delay:i=0}=n;return tU(n,pH),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:vH(o)} ${a} ${"string"==typeof i?i:vH(i)}`)).join(",")}},e,{easing:t,duration:r})}var bH={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const wH=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function SH(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=tU(e,wH);if(e.vars)throw new Error(xV(18));const s=iH(n),l=dK(e);let u=SV(l,{mixins:(c=l.breakpoints,d=r,yV({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:fH.slice(),typography:cH(s,a),transitions:yH(o),zIndex:yV({},bH)});var c,d;return u=SV(u,i),u=t.reduce(((e,t)=>SV(e,t)),u),u.unstable_sxConfig=yV({},sK,null==i?void 0:i.unstable_sxConfig),u.unstable_sx=function(e){return uK({sx:e,theme:this})},u}var xH=SH(),_H="$$material";function $H({props:e,name:t}){return AK({props:e,name:t,defaultTheme:xH,themeId:_H})}const kH=e=>EK(e)&&"classes"!==e,EH=EK;var jH=RK({themeId:_H,defaultTheme:xH,rootShouldForwardProp:kH});function CH(e){return ZV("MuiSvgIcon",e)}eU("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const OH=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],PH=jH("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${_V(r.color)}`],t[`fontSize${_V(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,a,i,s,l,u,c,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),NH=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,p=tU(r,OH),h=a.isValidElement(n)&&"svg"===n.type,m=yV({},r,{color:i,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h}),v={};c||(v.viewBox=f);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return QV({root:["root","inherit"!==t&&`color${_V(t)}`,`fontSize${_V(r)}`]},CH,n)})(m);return Hj.jsxs(PH,yV({as:s,className:nU(g.root,o),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},v,p,h&&n.props,{ownerState:m,children:[h?n.props.children:n,d?Hj.jsx("title",{children:d}):null]}))}));NH.muiName="SvgIcon";var RH=NH;function TH(e,t){function r(r,n){return Hj.jsx(RH,yV({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=RH.muiName,a.memo(a.forwardRef(r))}const AH={configure:e=>{YV.configure(e)}};var IH,MH=o(Object.freeze({__proto__:null,capitalize:_V,createChainedFunction:$V,createSvgIcon:TH,debounce:kV,deprecatedPropType:function(e,t){return()=>null},isMuiElement:EV,ownerDocument:jV,ownerWindow:CV,requirePropFactory:function(e,t){return()=>null},setRef:OV,unstable_ClassNameGenerator:AH,unstable_useEnhancedEffect:PV,unstable_useId:TV,unsupportedProp:function(e,t,r,n,o){return null},useControlled:AV,useEventCallback:IV,useForkRef:MV,useIsFocusVisible:qV}));function FH(){return IH||(IH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=MH}(gV)),gV}var zH=mV;Object.defineProperty(hV,"__esModule",{value:!0});var DH=hV.default=void 0,LH=zH(FH()),BH=Hj,VH=(0,LH.default)((0,BH.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function UH(e,t){return UH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UH(e,t)}function WH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,UH(e,t)}DH=hV.default=VH;var qH=!1,KH=B.createContext(null),HH="unmounted",GH="exited",QH="entering",JH="entered",YH="exiting",XH=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=GH,n.appearStatus=QH):o=JH:o=t.unmountOnExit||t.mountOnEnter?HH:GH,n.state={status:o},n.nextCallback=null,n}WH(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===HH?{status:GH}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==QH&&r!==JH&&(t=QH):r!==QH&&r!==JH||(t=YH)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===QH){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Yc.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===GH&&this.setState({status:HH})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[Yc.findDOMNode(this),n],a=o[0],i=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||qH?this.safeSetState({status:JH},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:QH},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:JH},(function(){t.props.onEntered(a,i)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Yc.findDOMNode(this);t&&!qH?(this.props.onExit(n),this.safeSetState({status:YH},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:GH},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:GH},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:Yc.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===HH)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=tU(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return B.createElement(KH.Provider,{value:null},"function"==typeof r?r(e,n):B.cloneElement(B.Children.only(r),n))},t}(B.Component);function ZH(){}XH.contextType=KH,XH.propTypes={},XH.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ZH,onEntering:ZH,onEntered:ZH,onExit:ZH,onExiting:ZH,onExited:ZH},XH.UNMOUNTED=HH,XH.EXITED=GH,XH.ENTERING=QH,XH.ENTERED=JH,XH.EXITING=YH;var eG=XH;function tG(e,t){var r=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&a.isValidElement(e)?t(e):e}(e)})),r}function rG(e,t,r){return null!=r[t]?r[t]:e.props[t]}function nG(e,t,r){var n=tG(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<a.length;n++)s[a[n]]=r(a[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var s=o[i];if(a.isValidElement(s)){var l=i in t,u=i in n,c=t[i],d=a.isValidElement(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&a.isValidElement(c)&&(o[i]=a.cloneElement(s,{onExited:r.bind(null,s),in:c.props.in,exit:rG(s,"exit",e),enter:rG(s,"enter",e)})):o[i]=a.cloneElement(s,{in:!1}):o[i]=a.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:rG(s,"exit",e),enter:rG(s,"enter",e)})}})),o}var oG=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},aG=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}WH(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,tG(r.children,(function(e){return a.cloneElement(e,{onExited:n.bind(null,e),in:!0,appear:rG(e,"appear",r),enter:rG(e,"enter",r),exit:rG(e,"exit",r)})}))):nG(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=tG(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=yV({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=tU(e,["component","childFactory"]),o=this.state.contextValue,a=oG(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?B.createElement(KH.Provider,{value:o},a):B.createElement(KH.Provider,{value:o},B.createElement(t,n,a))},t}(B.Component);aG.propTypes={},aG.defaultProps={component:"div",childFactory:function(e){return e}};var iG=aG;var sG=eU("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const lG=["center","classes","className"];let uG,cG,dG,fG,pG=e=>e;const hG=rq(uG||(uG=pG`
63
+ */function hq(e,t){return fq(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){fq[e]=fq(e)}));const mq=["values","unit","step"],vq=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>xV({},e,{[t.key]:t.val})),{})};var gq={borderRadius:4};function yq(e,t){return t?kV(e,t,{clone:!1}):e}const bq={xs:0,sm:600,md:900,lg:1200,xl:1536},wq={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bq[e]}px)`};function Sq(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||wq;return t.reduce(((n,o,a)=>(n[e.up(e.keys[a])]=r(t[a]),n)),{})}if("object"==typeof t){const e=n.breakpoints||wq;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||bq).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function xq(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}function _q(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function $q({values:e,breakpoints:t,base:r}){const n=r||function(e,t){if("object"!=typeof e)return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach(((t,n)=>{n<e.length&&(r[t]=!0)})):n.forEach((t=>{null!=e[t]&&(r[t]=!0)})),r}(e,t),o=Object.keys(n);if(0===o.length)return e;let a;return o.reduce(((t,r,n)=>(Array.isArray(e)?(t[r]=null!=e[n]?e[n]:e[a],a=n):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[a],a=r):t[r]=e,t)),{})}function kq(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Eq(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:kq(e,r)||n,t&&(o=t(o,n,e)),o}function jq(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=kq(e.theme,n)||{};return Sq(e,a,(e=>{let n=Eq(i,o,e);return e===n&&"string"==typeof e&&(n=Eq(i,o,`${t}${"default"===e?"":jV(e)}`,e)),!1===r?n:{[r]:n}}))};return a.propTypes={},a.filterProps=[t],a}const Cq={m:"margin",p:"padding"},Oq={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Pq={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Nq=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Pq[e])return[e];e=Pq[e]}const[t,r]=e.split(""),n=Cq[t],o=Oq[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Rq=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Tq=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Aq(e,t,r,n){var o;const a=null!=(o=kq(e,t,!1))?o:r;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function Iq(e){return Aq(e,"spacing",8)}function Mq(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Fq(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Mq(t,r),e)),{})}(Nq(r),n);return Sq(e,e[r],o)}function zq(e,t){const r=Iq(e.theme);return Object.keys(e).map((n=>Fq(e,t,n,r))).reduce(yq,{})}function Dq(e){return zq(e,Rq)}function Lq(e){return zq(e,Tq)}function Bq(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?yq(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Vq(e){return"number"!=typeof e?e:`${e}px solid`}Dq.propTypes={},Dq.filterProps=Rq,Lq.propTypes={},Lq.filterProps=Tq;const Uq=jq({prop:"border",themeKey:"borders",transform:Vq}),Wq=jq({prop:"borderTop",themeKey:"borders",transform:Vq}),qq=jq({prop:"borderRight",themeKey:"borders",transform:Vq}),Kq=jq({prop:"borderBottom",themeKey:"borders",transform:Vq}),Hq=jq({prop:"borderLeft",themeKey:"borders",transform:Vq}),Gq=jq({prop:"borderColor",themeKey:"palette"}),Qq=jq({prop:"borderTopColor",themeKey:"palette"}),Jq=jq({prop:"borderRightColor",themeKey:"palette"}),Yq=jq({prop:"borderBottomColor",themeKey:"palette"}),Xq=jq({prop:"borderLeftColor",themeKey:"palette"}),Zq=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Aq(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Mq(t,e)});return Sq(e,e.borderRadius,r)}return null};Zq.propTypes={},Zq.filterProps=["borderRadius"],Bq(Uq,Wq,qq,Kq,Hq,Gq,Qq,Jq,Yq,Xq,Zq);const eK=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Aq(e.theme,"spacing",8),r=e=>({gap:Mq(t,e)});return Sq(e,e.gap,r)}return null};eK.propTypes={},eK.filterProps=["gap"];const tK=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Aq(e.theme,"spacing",8),r=e=>({columnGap:Mq(t,e)});return Sq(e,e.columnGap,r)}return null};tK.propTypes={},tK.filterProps=["columnGap"];const rK=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Aq(e.theme,"spacing",8),r=e=>({rowGap:Mq(t,e)});return Sq(e,e.rowGap,r)}return null};rK.propTypes={},rK.filterProps=["rowGap"];function nK(e,t){return"grey"===t?t:e}Bq(eK,tK,rK,jq({prop:"gridColumn"}),jq({prop:"gridRow"}),jq({prop:"gridAutoFlow"}),jq({prop:"gridAutoColumns"}),jq({prop:"gridAutoRows"}),jq({prop:"gridTemplateColumns"}),jq({prop:"gridTemplateRows"}),jq({prop:"gridTemplateAreas"}),jq({prop:"gridArea"}));function oK(e){return e<=1&&0!==e?100*e+"%":e}Bq(jq({prop:"color",themeKey:"palette",transform:nK}),jq({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nK}),jq({prop:"backgroundColor",themeKey:"palette",transform:nK}));const aK=jq({prop:"width",transform:oK}),iK=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||bq[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:oK(t)}};return Sq(e,e.maxWidth,t)}return null};iK.filterProps=["maxWidth"];const sK=jq({prop:"minWidth",transform:oK}),lK=jq({prop:"height",transform:oK}),uK=jq({prop:"maxHeight",transform:oK}),cK=jq({prop:"minHeight",transform:oK});jq({prop:"size",cssProperty:"width",transform:oK}),jq({prop:"size",cssProperty:"height",transform:oK});Bq(aK,iK,sK,lK,uK,cK,jq({prop:"boxSizing"}));var dK={border:{themeKey:"borders",transform:Vq},borderTop:{themeKey:"borders",transform:Vq},borderRight:{themeKey:"borders",transform:Vq},borderBottom:{themeKey:"borders",transform:Vq},borderLeft:{themeKey:"borders",transform:Vq},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zq},color:{themeKey:"palette",transform:nK},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nK},backgroundColor:{themeKey:"palette",transform:nK},p:{style:Lq},pt:{style:Lq},pr:{style:Lq},pb:{style:Lq},pl:{style:Lq},px:{style:Lq},py:{style:Lq},padding:{style:Lq},paddingTop:{style:Lq},paddingRight:{style:Lq},paddingBottom:{style:Lq},paddingLeft:{style:Lq},paddingX:{style:Lq},paddingY:{style:Lq},paddingInline:{style:Lq},paddingInlineStart:{style:Lq},paddingInlineEnd:{style:Lq},paddingBlock:{style:Lq},paddingBlockStart:{style:Lq},paddingBlockEnd:{style:Lq},m:{style:Dq},mt:{style:Dq},mr:{style:Dq},mb:{style:Dq},ml:{style:Dq},mx:{style:Dq},my:{style:Dq},margin:{style:Dq},marginTop:{style:Dq},marginRight:{style:Dq},marginBottom:{style:Dq},marginLeft:{style:Dq},marginX:{style:Dq},marginY:{style:Dq},marginInline:{style:Dq},marginInlineStart:{style:Dq},marginInlineEnd:{style:Dq},marginBlock:{style:Dq},marginBlockStart:{style:Dq},marginBlockEnd:{style:Dq},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:eK},rowGap:{style:rK},columnGap:{style:tK},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:oK},maxWidth:{style:iK},minWidth:{transform:oK},height:{transform:oK},maxHeight:{transform:oK},minHeight:{transform:oK},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const fK=function(){function e(e,t,r,n){const o={[e]:t,theme:r},a=n[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:s,transform:l,style:u}=a;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=kq(r,s)||{};if(u)return u(o);return Sq(o,t,(t=>{let r=Eq(c,l,t);return t===r&&"string"==typeof t&&(r=Eq(c,l,`${e}${"default"===t?"":jV(t)}`,t)),!1===i?r:{[i]:r}}))}return function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=null!=(n=a.unstable_sxConfig)?n:dK;function s(r){let n=r;if("function"==typeof r)n=r(a);else if("object"!=typeof r)return r;if(!n)return null;const o=xq(a.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=a,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(i[r])l=yq(l,e(r,o,a,i));else{const e=Sq({theme:a},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=yq(l,e):l[r]=t({sx:o,theme:a})}else l=yq(l,e(r,o,a,i))})),_q(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();fK.filterProps=["sx"];var pK=fK;const hK=["breakpoints","palette","spacing","shape"];function mK(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=aU(e,hK),s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=aU(e,mq),a=vq(t),i=Object.keys(a);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-n/100}${r})`}return xV({keys:i,values:a,up:s,down:l,between:u,only:function(e){return i.indexOf(e)+1<i.length?u(e,i[i.indexOf(e)+1]):s(e)},not:function(e){const t=i.indexOf(e);return 0===t?s(i[1]):t===i.length-1?l(i[t]):u(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),l=function(e=8){if(e.mui)return e;const t=Iq({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=kV({breakpoints:s,direction:"ltr",components:{},palette:xV({mode:"light"},n),spacing:l,shape:xV({},gq,a)},i);return u=t.reduce(((e,t)=>kV(e,t)),u),u.unstable_sxConfig=xV({},dK,null==i?void 0:i.unstable_sxConfig),u.unstable_sx=function(e){return pK({sx:e,theme:this})},u}function vK(e=null){const t=a.useContext(nq);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const gK=mK();function yK(e=gK){return vK(e)}function bK({styles:e,themeId:t,defaultTheme:r={}}){const n=yK(r),o="function"==typeof e?e(t&&n[t]||n):e;return Yj.jsx(pq,{styles:o})}const wK=["sx"],SK=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:dK;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function xK(e){const{sx:t}=e,r=aU(e,wK),{systemProps:n,otherProps:o}=SK(r);let a;return a=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return _V(r)?xV({},n,r):n}:xV({},n,t),xV({},o,{sx:a})}const _K=["className","component"];const $K=["variant"];function kK(e){return 0===e.length}function EK(e){const{variant:t}=e,r=aU(e,$K);let n=t||"";return Object.keys(r).sort().forEach((t=>{n+="color"===t?kK(n)?e[t]:jV(e[t]):`${kK(n)?t:jV(t)}${jV(e[t].toString())}`})),n}const jK=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const CK=e=>{const t={};return e&&e.forEach((e=>{const r=EK(e.props);t[r]=e.style})),t},OK=(e,t,r)=>{const{ownerState:n={}}=e,o=[];return r&&r.forEach((r=>{let a=!0;Object.keys(r.props).forEach((t=>{n[t]!==r.props[t]&&e[t]!==r.props[t]&&(a=!1)})),a&&o.push(t[EK(r.props)])})),o};function PK(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const NK=mK(),RK=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function TK({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function AK(e){return e?(t,r)=>r[e]:null}const IK=({styledArg:e,props:t,defaultTheme:r,themeId:n})=>{const o=e(xV({},t,{theme:TK(xV({},t,{defaultTheme:r,themeId:n}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){return[o,...OK(t,CK(a),a)]}return o};function MK(e={}){const{themeId:t,defaultTheme:r=NK,rootShouldForwardProp:n=PK,slotShouldForwardProp:o=PK}=e,a=e=>pK(xV({},e,{theme:TK(xV({},e,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=AK(RK(l))}=i,f=aU(i,jK),p=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,h=c||!1;let m=PK;"Root"===l||"root"===l?m=n:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const v=hq(e,xV({shouldForwardProp:m,label:undefined},f)),g=(n,...o)=>{const i=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return n=>IK({styledArg:e,props:n,defaultTheme:r,themeId:t});if(_V(e)){let t,r=e;return e&&e.variants&&(t=e.variants,delete r.variants,r=r=>{let n=e;return OK(r,CK(t),t).forEach((e=>{n=kV(n,e)})),n}),r}return e})):[];let l=n;if(_V(n)){let e;n&&n.variants&&(e=n.variants,delete l.variants,l=t=>{let r=n;return OK(t,CK(e),e).forEach((e=>{r=kV(r,e)})),r})}else"function"==typeof n&&n.__emotion_real!==n&&(l=e=>IK({styledArg:n,props:e,defaultTheme:r,themeId:t}));s&&d&&i.push((e=>{const n=TK(xV({},e,{defaultTheme:r,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(s,n);if(o){const t={};return Object.entries(o).forEach((([r,o])=>{t[r]="function"==typeof o?o(xV({},e,{theme:n})):o})),d(e,t)}return null})),s&&!p&&i.push((e=>{const n=TK(xV({},e,{defaultTheme:r,themeId:t}));return((e,t,r,n)=>{var o;const a=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return OK(e,t,a)})(e,((e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),CK(r)})(s,n),n,s)})),h||i.push(a);const u=i.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");l=[...n,...e],l.raw=[...n.raw,...e]}const c=v(l,...i);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(g.withConfig=v.withConfig),g}}var FK=MK();function zK({props:e,name:t,defaultTheme:r,themeId:n}){let o=yK(r);n&&(o=o[n]||o);const a=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?XV(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return a}function DK(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function LK(e){if(e.type)return e;if("#"===e.charAt(0))return LK(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(EV(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(EV(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function BK(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function VK(e){let t="hsl"===(e=LK(e)).type||"hsla"===e.type?LK(function(e){e=LK(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),BK({type:s,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function UK(e,t){return e=LK(e),t=DK(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,BK(e)}function WK(e,t){if(e=LK(e),t=DK(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return BK(e)}function qK(e,t){if(e=LK(e),t=DK(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return BK(e)}const KK=["component","direction","spacing","divider","children","className","useFlexGap"],HK=mK(),GK=FK("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function QK(e){return zK({props:e,name:"MuiStack",defaultTheme:HK})}function JK(e,t){const r=a.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,o)=>(e.push(n),o<r.length-1&&e.push(a.cloneElement(t,{key:`separator-${o}`})),e)),[])}const YK=({ownerState:e,theme:t})=>{let r=xV({display:"flex",flexDirection:"column"},Sq({theme:t},$q({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=Iq(t),o=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),a=$q({values:e.direction,base:o}),i=$q({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach(((e,t,r)=>{if(!a[e]){const n=t>0?a[r[t-1]]:"column";a[e]=n}}));r=kV(r,Sq({theme:t},i,((t,r)=>{return e.useFlexGap?{gap:Mq(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=r?a[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:Mq(n,t)}};var o})))}return r=function(e,...t){const r=xq(e),n=[r,...t].reduce(((e,t)=>kV(e,t)),{});return _q(Object.keys(r),n)}(t.breakpoints,r),r};var XK={black:"#000",white:"#fff"};var ZK={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var eH={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var tH={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var rH={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var nH={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var oH={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var aH={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const iH=["mode","contrastThreshold","tonalOffset"],sH={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:XK.white,default:XK.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},lH={text:{primary:XK.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:XK.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function uH(e,t,r,n){const o=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=qK(e.main,o):"dark"===t&&(e.dark=WK(e.main,a)))}function cH(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=aU(e,iH),a=e.primary||function(e="light"){return"dark"===e?{main:nH[200],light:nH[50],dark:nH[400]}:{main:nH[700],light:nH[400],dark:nH[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:eH[200],light:eH[50],dark:eH[400]}:{main:eH[500],light:eH[300],dark:eH[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:tH[500],light:tH[300],dark:tH[700]}:{main:tH[700],light:tH[400],dark:tH[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:oH[400],light:oH[300],dark:oH[700]}:{main:oH[700],light:oH[500],dark:oH[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:aH[400],light:aH[300],dark:aH[700]}:{main:aH[800],light:aH[500],dark:aH[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:rH[400],light:rH[300],dark:rH[700]}:{main:"#ed6c02",light:rH[500],dark:rH[900]}}(t);function d(e){const t=function(e,t){const r=VK(e),n=VK(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,lH.text.primary)>=r?lH.text.primary:sH.text.primary;return t}const f=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=xV({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(EV(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(EV(12,t?` (${t})`:"",JSON.stringify(e.main)));return uH(e,"light",o,n),uH(e,"dark",a,n),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:lH,light:sH};return kV(xV({common:xV({},XK),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:ZK,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n},p[t]),o)}const dH=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const fH={textTransform:"uppercase"},pH='"Roboto", "Helvetica", "Arial", sans-serif';function hH(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=pH,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,f=aU(r,dH),p=o/14,h=d||(e=>e/u*p+"rem"),m=(e,t,r,o,a)=>{return xV({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===pH?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},a,c);var i},v={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(s,14,1.75,.4,fH),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,fH),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kV(xV({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l},v),f,{clone:!1})}function mH(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var vH=["none",mH(0,2,1,-1,0,1,1,0,0,1,3,0),mH(0,3,1,-2,0,2,2,0,0,1,5,0),mH(0,3,3,-2,0,3,4,0,0,1,8,0),mH(0,2,4,-1,0,4,5,0,0,1,10,0),mH(0,3,5,-1,0,5,8,0,0,1,14,0),mH(0,3,5,-1,0,6,10,0,0,1,18,0),mH(0,4,5,-2,0,7,10,1,0,2,16,1),mH(0,5,5,-3,0,8,10,1,0,3,14,2),mH(0,5,6,-3,0,9,12,1,0,3,16,2),mH(0,6,6,-3,0,10,14,1,0,4,18,3),mH(0,6,7,-4,0,11,15,1,0,4,20,3),mH(0,7,8,-4,0,12,17,2,0,5,22,4),mH(0,7,8,-4,0,13,19,2,0,5,24,4),mH(0,7,9,-4,0,14,21,2,0,5,26,4),mH(0,8,9,-5,0,15,22,2,0,6,28,5),mH(0,8,10,-5,0,16,24,2,0,6,30,5),mH(0,8,11,-5,0,17,26,2,0,6,32,5),mH(0,9,11,-5,0,18,28,2,0,7,34,6),mH(0,9,12,-6,0,19,29,2,0,7,36,6),mH(0,10,13,-6,0,20,31,3,0,8,38,7),mH(0,10,13,-6,0,21,33,3,0,8,40,7),mH(0,10,14,-6,0,22,35,3,0,8,42,7),mH(0,11,14,-7,0,23,36,3,0,9,44,8),mH(0,11,15,-7,0,24,38,3,0,9,46,8)];const gH=["duration","easing","delay"],yH={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},bH={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wH(e){return`${Math.round(e)}ms`}function SH(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function xH(e){const t=xV({},yH,e.easing),r=xV({},bH,e.duration);return xV({getAutoHeightDuration:SH,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:a=t.easeInOut,delay:i=0}=n;return aU(n,gH),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:wH(o)} ${a} ${"string"==typeof i?i:wH(i)}`)).join(",")}},e,{easing:t,duration:r})}var _H={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const $H=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function kH(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=aU(e,$H);if(e.vars)throw new Error(EV(18));const s=cH(n),l=mK(e);let u=kV(l,{mixins:(c=l.breakpoints,d=r,xV({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:vH.slice(),typography:hH(s,a),transitions:xH(o),zIndex:xV({},_H)});var c,d;return u=kV(u,i),u=t.reduce(((e,t)=>kV(e,t)),u),u.unstable_sxConfig=xV({},dK,null==i?void 0:i.unstable_sxConfig),u.unstable_sx=function(e){return pK({sx:e,theme:this})},u}var EH=kH(),jH="$$material";function CH({props:e,name:t}){return zK({props:e,name:t,defaultTheme:EH,themeId:jH})}const OH=e=>PK(e)&&"classes"!==e,PH=PK;var NH=MK({themeId:jH,defaultTheme:EH,rootShouldForwardProp:OH});function RH(e){return nU("MuiSvgIcon",e)}oU("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const TH=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],AH=NH("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${jV(r.color)}`],t[`fontSize${jV(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,a,i,s,l,u,c,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),IH=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,p=aU(r,TH),h=a.isValidElement(n)&&"svg"===n.type,m=xV({},r,{color:i,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h}),v={};c||(v.viewBox=f);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return ZV({root:["root","inherit"!==t&&`color${jV(t)}`,`fontSize${jV(r)}`]},RH,n)})(m);return Yj.jsxs(AH,xV({as:s,className:sU(g.root,o),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},v,p,h&&n.props,{ownerState:m,children:[h?n.props.children:n,d?Yj.jsx("title",{children:d}):null]}))}));IH.muiName="SvgIcon";var MH=IH;function FH(e,t){function r(r,n){return Yj.jsx(MH,xV({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=MH.muiName,a.memo(a.forwardRef(r))}const zH={configure:e=>{tU.configure(e)}};var DH,LH=o(Object.freeze({__proto__:null,capitalize:jV,createChainedFunction:CV,createSvgIcon:FH,debounce:OV,deprecatedPropType:function(e,t){return()=>null},isMuiElement:PV,ownerDocument:NV,ownerWindow:RV,requirePropFactory:function(e,t){return()=>null},setRef:TV,unstable_ClassNameGenerator:zH,unstable_useEnhancedEffect:AV,unstable_useId:FV,unsupportedProp:function(e,t,r,n,o){return null},useControlled:zV,useEventCallback:DV,useForkRef:LV,useIsFocusVisible:QV}));function BH(){return DH||(DH=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=LH}(SV)),SV}var VH=bV;Object.defineProperty(yV,"__esModule",{value:!0});var UH=yV.default=void 0,WH=VH(BH()),qH=Yj,KH=(0,WH.default)((0,qH.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function HH(e,t){return HH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},HH(e,t)}function GH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,HH(e,t)}UH=yV.default=KH;var QH=!1,JH=B.createContext(null),YH="unmounted",XH="exited",ZH="entering",eG="entered",tG="exiting",rG=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=XH,n.appearStatus=ZH):o=eG:o=t.unmountOnExit||t.mountOnEnter?YH:XH,n.state={status:o},n.nextCallback=null,n}GH(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===YH?{status:XH}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==ZH&&r!==eG&&(t=ZH):r!==ZH&&r!==eG||(t=tG)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ZH){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Yc.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===XH&&this.setState({status:YH})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[Yc.findDOMNode(this),n],a=o[0],i=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||QH?this.safeSetState({status:eG},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:ZH},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:eG},(function(){t.props.onEntered(a,i)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Yc.findDOMNode(this);t&&!QH?(this.props.onExit(n),this.safeSetState({status:tG},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:XH},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:XH},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:Yc.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===YH)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=aU(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return B.createElement(JH.Provider,{value:null},"function"==typeof r?r(e,n):B.cloneElement(B.Children.only(r),n))},t}(B.Component);function nG(){}rG.contextType=JH,rG.propTypes={},rG.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:nG,onEntering:nG,onEntered:nG,onExit:nG,onExiting:nG,onExited:nG},rG.UNMOUNTED=YH,rG.EXITED=XH,rG.ENTERING=ZH,rG.ENTERED=eG,rG.EXITING=tG;var oG=rG;function aG(e,t){var r=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&a.isValidElement(e)?t(e):e}(e)})),r}function iG(e,t,r){return null!=r[t]?r[t]:e.props[t]}function sG(e,t,r){var n=aG(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<a.length;n++)s[a[n]]=r(a[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var s=o[i];if(a.isValidElement(s)){var l=i in t,u=i in n,c=t[i],d=a.isValidElement(c)&&!c.props.in;!u||l&&!d?u||!l||d?u&&l&&a.isValidElement(c)&&(o[i]=a.cloneElement(s,{onExited:r.bind(null,s),in:c.props.in,exit:iG(s,"exit",e),enter:iG(s,"enter",e)})):o[i]=a.cloneElement(s,{in:!1}):o[i]=a.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:iG(s,"exit",e),enter:iG(s,"enter",e)})}})),o}var lG=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},uG=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}GH(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,aG(r.children,(function(e){return a.cloneElement(e,{onExited:n.bind(null,e),in:!0,appear:iG(e,"appear",r),enter:iG(e,"enter",r),exit:iG(e,"exit",r)})}))):sG(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=aG(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=xV({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=aU(e,["component","childFactory"]),o=this.state.contextValue,a=lG(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?B.createElement(JH.Provider,{value:o},a):B.createElement(JH.Provider,{value:o},B.createElement(t,n,a))},t}(B.Component);uG.propTypes={},uG.defaultProps={component:"div",childFactory:function(e){return e}};var cG=uG;var dG=oU("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const fG=["center","classes","className"];let pG,hG,mG,vG,gG=e=>e;const yG=iq(pG||(pG=gG`
64
64
  0% {
65
65
  transform: scale(0);
66
66
  opacity: 0.1;
@@ -70,7 +70,7 @@ var J=a,Y=H;function X(e){for(var t="https://reactjs.org/docs/error-decoder.html
70
70
  transform: scale(1);
71
71
  opacity: 0.3;
72
72
  }
73
- `)),mG=rq(cG||(cG=pG`
73
+ `)),bG=iq(hG||(hG=gG`
74
74
  0% {
75
75
  opacity: 1;
76
76
  }
@@ -78,7 +78,7 @@ var J=a,Y=H;function X(e){for(var t="https://reactjs.org/docs/error-decoder.html
78
78
  100% {
79
79
  opacity: 0;
80
80
  }
81
- `)),vG=rq(dG||(dG=pG`
81
+ `)),wG=iq(mG||(mG=gG`
82
82
  0% {
83
83
  transform: scale(1);
84
84
  }
@@ -90,7 +90,7 @@ var J=a,Y=H;function X(e){for(var t="https://reactjs.org/docs/error-decoder.html
90
90
  100% {
91
91
  transform: scale(1);
92
92
  }
93
- `)),gG=jH("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yG=jH((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:s,in:l,onExited:u,timeout:c}=e,[d,f]=a.useState(!1),p=nU(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:s,height:s,top:-s/2+i,left:-s/2+o},m=nU(r.child,d&&r.childLeaving,n&&r.childPulsate);return l||d||f(!0),a.useEffect((()=>{if(!l&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,l,c]),Hj.jsx("span",{className:p,style:h,children:Hj.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(fG||(fG=pG`
93
+ `)),SG=NH("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),xG=NH((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:s,in:l,onExited:u,timeout:c}=e,[d,f]=a.useState(!1),p=sU(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:s,height:s,top:-s/2+i,left:-s/2+o},m=sU(r.child,d&&r.childLeaving,n&&r.childPulsate);return l||d||f(!0),a.useEffect((()=>{if(!l&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,l,c]),Yj.jsx("span",{className:p,style:h,children:Yj.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(vG||(vG=gG`
94
94
  opacity: 0;
95
95
  position: absolute;
96
96
 
@@ -133,4 +133,4 @@ var J=a,Y=H;function X(e){for(var t="https://reactjs.org/docs/error-decoder.html
133
133
  animation-iteration-count: infinite;
134
134
  animation-delay: 200ms;
135
135
  }
136
- `),sG.rippleVisible,hG,550,(({theme:e})=>e.transitions.easing.easeInOut),sG.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),sG.child,sG.childLeaving,mG,550,(({theme:e})=>e.transitions.easing.easeInOut),sG.childPulsate,vG,(({theme:e})=>e.transitions.easing.easeInOut)),bG=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,s=tU(r,lG),[l,u]=a.useState([]),c=a.useRef(0),d=a.useRef(null);a.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const f=a.useRef(!1),p=a.useRef(0),h=a.useRef(null),m=a.useRef(null);a.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const v=a.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:a,cb:i}=e;u((e=>[...e,Hj.jsx(yG,{classes:{ripple:nU(o.ripple,sG.ripple),rippleVisible:nU(o.rippleVisible,sG.rippleVisible),ripplePulsate:nU(o.ripplePulsate,sG.ripplePulsate),child:nU(o.child,sG.child),childLeaving:nU(o.childLeaving,sG.childLeaving),childPulsate:nU(o.childPulsate,sG.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:a},c.current)])),c.current+=1,d.current=i}),[o]),g=a.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:a=n||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&f.current)return void(f.current=!1);"touchstart"===(null==e?void 0:e.type)&&(f.current=!0);const s=i?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(a)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{v({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})},p.current=setTimeout((()=>{h.current&&(h.current(),h.current=null)}),80)):v({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[n,v]),y=a.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=a.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void(p.current=setTimeout((()=>{b(e,t)})));h.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return a.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:b})),[y,g,b]),Hj.jsx(gG,yV({className:nU(sG.root,o.root,i),ref:m},s,{children:Hj.jsx(iG,{component:null,exit:!0,children:l})}))}));var wG=bG;function SG(e){return ZV("MuiButtonBase",e)}var xG=eU("MuiButtonBase",["root","disabled","focusVisible"]);const _G=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],$G=jH("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${xG.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kG=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:h,onClick:m,onContextMenu:v,onDragLeave:g,onFocus:y,onFocusVisible:b,onKeyDown:w,onKeyUp:S,onMouseDown:x,onMouseLeave:_,onMouseUp:$,onTouchEnd:k,onTouchMove:E,onTouchStart:j,tabIndex:C=0,TouchRippleProps:O,touchRippleRef:P,type:N}=r,R=tU(r,_G),T=a.useRef(null),A=a.useRef(null),I=MV(A,P),{isFocusVisibleRef:M,onFocus:F,onBlur:z,ref:D}=qV(),[L,B]=a.useState(!1);u&&L&&B(!1),a.useImperativeHandle(n,(()=>({focusVisible:()=>{B(!0),T.current.focus()}})),[]);const[V,U]=a.useState(!1);a.useEffect((()=>{U(!0)}),[]);const W=V&&!c&&!u;function q(e,t,r=d){return IV((n=>{t&&t(n);return!r&&A.current&&A.current[e](n),!0}))}a.useEffect((()=>{L&&f&&!c&&V&&A.current.pulsate()}),[c,f,L,V]);const K=q("start",x),H=q("stop",v),G=q("stop",g),Q=q("stop",$),J=q("stop",(e=>{L&&e.preventDefault(),_&&_(e)})),Y=q("start",j),X=q("stop",k),Z=q("stop",E),ee=q("stop",(e=>{z(e),!1===M.current&&B(!1),h&&h(e)}),!1),te=IV((e=>{T.current||(T.current=e.currentTarget),F(e),!0===M.current&&(B(!0),b&&b(e)),y&&y(e)})),re=()=>{const e=T.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=a.useRef(!1),oe=IV((e=>{f&&!ne.current&&L&&A.current&&" "===e.key&&(ne.current=!0,A.current.stop(e,(()=>{A.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))})),ae=IV((e=>{f&&" "===e.key&&A.current&&L&&!e.defaultPrevented&&(ne.current=!1,A.current.stop(e,(()=>{A.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(R.href||R.to)&&(ie=p);const se={};"button"===ie?(se.type=void 0===N?"button":N,se.disabled=u):(R.href||R.to||(se.role="button"),u&&(se["aria-disabled"]=u));const le=MV(t,D,T),ue=yV({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:C,focusVisible:L}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=QV({root:["root",t&&"disabled",r&&"focusVisible"]},SG,o);return r&&n&&(a.root+=` ${n}`),a})(ue);return Hj.jsxs($G,yV({as:ie,className:nU(ce.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:H,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:K,onMouseLeave:J,onMouseUp:Q,onDragLeave:G,onTouchEnd:X,onTouchMove:Z,onTouchStart:Y,ref:le,tabIndex:u?-1:C,type:N},se,R,{children:[i,W?Hj.jsx(wG,yV({ref:I,center:o},O)):null]}))}));var EG=kG;function jG(e){return ZV("MuiIconButton",e)}var CG=eU("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const OG=["edge","children","className","color","disabled","disableFocusRipple","size"],PG=jH(EG,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${_V(r.color)}`],r.edge&&t[`edge${_V(r.edge)}`],t[`size${_V(r.size)}`]]}})((({theme:e,ownerState:t})=>yV({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:DK(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return yV({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&yV({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":yV({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:DK(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${CG.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),NG=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:a,color:i="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=tU(r,OG),d=yV({},r,{edge:n,color:i,disabled:s,disableFocusRipple:l,size:u}),f=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e;return QV({root:["root",r&&"disabled","default"!==n&&`color${_V(n)}`,o&&`edge${_V(o)}`,`size${_V(a)}`]},jG,t)})(d);return Hj.jsx(PG,yV({className:nU(f.root,a),centerRipple:!0,focusRipple:!l,disabled:s,ref:t,ownerState:d},c,{children:o}))}));var RG=NG;function TG(e){var{uiSchema:t,registry:r}=e,n=ov(e,["uiSchema","registry"]);const{translateString:o}=r;return Hj.jsx(RG,Object.assign({title:o(HC.AddItemButton)},n,{color:"primary"},{children:Hj.jsx(DH,{})}))}function AG(){const e=hK(xH);return e[_H]||e}var IG=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const MG=SH(),FG=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=cq("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(uK),s=a.forwardRef((function(e,a){const s=hK(r),l=yK(e),{className:u,component:c="div"}=l,d=tU(l,bK);return Hj.jsx(i,yV({as:c,ref:a,className:nU(u,o?o(n):n),theme:t&&s[t]||s},d))}));return s}({themeId:_H,defaultTheme:MG,defaultClassName:"MuiBox-root",generateClassName:YV.generate});var zG=FG;var DG=a.createContext();function LG(e){return ZV("MuiGrid",e)}const BG=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],VG=eU("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...BG.map((e=>`grid-xs-${e}`)),...BG.map((e=>`grid-sm-${e}`)),...BG.map((e=>`grid-md-${e}`)),...BG.map((e=>`grid-lg-${e}`)),...BG.map((e=>`grid-xl-${e}`))]),UG=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function WG(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function qG({breakpoints:e,values:t}){let r="";Object.keys(t).forEach((e=>{""===r&&0!==t[e]&&(r=e)}));const n=Object.keys(e).sort(((t,r)=>e[t]-e[r]));return n.slice(0,n.indexOf(r))}const KG=jH("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:u}=r;let c=[];n&&(c=function(e,t,r={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&n.push(r[`spacing-${t}-${String(o)}`])})),n}(i,u,t));const d=[];return u.forEach((e=>{const n=r[e];n&&d.push(t[`grid-${e}-${String(n)}`])})),[t.root,n&&t.container,a&&t.item,l&&t.zeroMinWidth,...c,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>yV({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return gq({theme:e},wq({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${VG.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&0!==n){const t=wq({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=qG({breakpoints:e.breakpoints.values,values:t})),o=gq({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${WG(a)}`,[`& > .${VG.item}`]:{paddingTop:WG(a)}}:null!=(o=r)&&o.includes(n)?{}:{marginTop:0,[`& > .${VG.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&0!==n){const t=wq({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=qG({breakpoints:e.breakpoints.values,values:t})),o=gq({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${WG(a)})`,marginLeft:`-${WG(a)}`,[`& > .${VG.item}`]:{paddingLeft:WG(a)}}:null!=(o=r)&&o.includes(n)?{}:{width:"100%",marginLeft:0,[`& > .${VG.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce(((n,o)=>{let a={};if(t[o]&&(r=t[o]),!r)return n;if(!0===r)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===r)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=wq({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof i?i[o]:i;if(null==s)return n;const l=Math.round(r/s*1e8)/1e6+"%";let u={};if(t.container&&t.item&&0!==t.columnSpacing){const r=e.spacing(t.columnSpacing);if("0px"!==r){const e=`calc(${l} + ${WG(r)})`;u={flexBasis:e,maxWidth:e}}}a=yV({flexBasis:l,flexGrow:0,maxWidth:l},u)}return 0===e.breakpoints.values[o]?Object.assign(n,a):n[e.breakpoints.up(o)]=a,n}),{})}));const HG=e=>{const{classes:t,container:r,direction:n,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let u=[];r&&(u=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const r=[];return t.forEach((t=>{const n=e[t];if(Number(n)>0){const e=`spacing-${t}-${String(n)}`;r.push(e)}})),r}(a,l));const c=[];l.forEach((t=>{const r=e[t];r&&c.push(`grid-${t}-${String(r)}`)}));return QV({root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...u,"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...c]},LG,t)},GG=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiGrid"}),{breakpoints:n}=AG(),o=yK(r),{className:i,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:p,spacing:h=0,wrap:m="wrap",zeroMinWidth:v=!1}=o,g=tU(o,UG),y=p||h,b=l||h,w=a.useContext(DG),S=c?s||12:w,x={},_=yV({},g);n.keys.forEach((e=>{null!=g[e]&&(x[e]=g[e],delete _[e])}));const $=yV({},o,{columns:S,container:c,direction:d,item:f,rowSpacing:y,columnSpacing:b,wrap:m,zeroMinWidth:v,spacing:h},x,{breakpoints:n.keys}),k=HG($);return Hj.jsx(DG.Provider,{value:S,children:Hj.jsx(KG,yV({ownerState:$,className:nU(k.root,i),as:u,ref:t},_))})}));var QG=GG;function JG(e){return ZV("MuiPaper",e)}eU("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const YG=["className","component","elevation","square","variant"],XG=jH("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return yV({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&yV({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${DK("#fff",IG(t.elevation))}, ${DK("#fff",IG(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),ZG=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:a=1,square:i=!1,variant:s="elevation"}=r,l=tU(r,YG),u=yV({},r,{component:o,elevation:a,square:i,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return QV({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},JG,o)})(u);return Hj.jsx(XG,yV({as:o,ownerState:u,className:nU(c.root,n),ref:t},l))}));var eQ=ZG;function tQ(e){const{children:t,disabled:r,hasToolbar:n,hasCopy:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,index:l,onCopyIndexClick:u,onDropIndexClick:c,onReorderClick:d,readonly:f,uiSchema:p,registry:h}=e,{CopyButton:m,MoveDownButton:v,MoveUpButton:g,RemoveButton:y}=h.templates.ButtonTemplates,b={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return Hj.jsxs(QG,Object.assign({container:!0,alignItems:"center"},{children:[Hj.jsx(QG,Object.assign({item:!0,xs:!0,style:{overflow:"auto"}},{children:Hj.jsx(zG,Object.assign({mb:2},{children:Hj.jsx(eQ,Object.assign({elevation:2},{children:Hj.jsx(zG,Object.assign({p:2},{children:t}))}))}))})),n&&Hj.jsxs(QG,Object.assign({item:!0},{children:[(i||a)&&Hj.jsx(g,{style:b,disabled:r||f||!i,onClick:d(l,l-1),uiSchema:p,registry:h}),(i||a)&&Hj.jsx(v,{style:b,disabled:r||f||!a,onClick:d(l,l+1),uiSchema:p,registry:h}),o&&Hj.jsx(m,{style:b,disabled:r||f,onClick:u(l),uiSchema:p,registry:h}),s&&Hj.jsx(y,{style:b,disabled:r||f,onClick:c(l),uiSchema:p,registry:h})]}))]}))}function rQ(e){const{canAdd:t,disabled:r,idSchema:n,uiSchema:o,items:a,onAddClick:i,readonly:s,registry:l,required:u,schema:c,title:d}=e,f=_d(o),p=Kj("ArrayFieldDescriptionTemplate",l,f),h=Kj("ArrayFieldItemTemplate",l,f),m=Kj("ArrayFieldTitleTemplate",l,f),{ButtonTemplates:{AddButton:v}}=l.templates;return Hj.jsx(eQ,Object.assign({elevation:2},{children:Hj.jsxs(zG,Object.assign({p:2},{children:[Hj.jsx(m,{idSchema:n,title:f.title||d,schema:c,uiSchema:o,required:u,registry:l}),Hj.jsx(p,{idSchema:n,description:f.description||c.description,schema:c,uiSchema:o,registry:l}),Hj.jsxs(QG,Object.assign({container:!0},{children:[a&&a.map((e=>{var{key:t}=e,r=ov(e,["key"]);return Hj.jsx(h,Object.assign({},r),t)})),t&&Hj.jsx(QG,Object.assign({container:!0,justifyContent:"flex-end"},{children:Hj.jsx(QG,Object.assign({item:!0},{children:Hj.jsx(zG,Object.assign({mt:2},{children:Hj.jsx(v,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})}))}))}))]}),`array-item-list-${n.$id}`)]}))}))}function nQ(e){return"string"==typeof e}function oQ(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function aQ(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const iQ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function sQ(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=tU(e,iQ),s=a?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const e=nU(null==o?void 0:o.className,null==n?void 0:n.className,a,null==r?void 0:r.className),t=yV({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),i=yV({},r,o,n);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=oQ(yV({},o,n)),s=aQ(n),l=aQ(o),u=t(i),c=nU(null==u?void 0:u.className,null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),d=yV({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),f=yV({},u,r,l,s);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}(yV({},i,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||nQ(e)?t:yV({},t,{ownerState:yV({},t.ownerState,r)})}(r,yV({},l,{ref:MV(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const lQ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function uQ(e){const t=[],r=[];return Array.from(e.querySelectorAll(lQ)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function cQ(){return!0}function dQ(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=uQ,isEnabled:s=cQ,open:l}=e,u=a.useRef(!1),c=a.useRef(null),d=a.useRef(null),f=a.useRef(null),p=a.useRef(null),h=a.useRef(!1),m=a.useRef(null),v=MV(t.ref,m),g=a.useRef(null);a.useEffect((()=>{l&&m.current&&(h.current=!r)}),[r,l]),a.useEffect((()=>{if(!l||!m.current)return;const e=jV(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}}),[l]),a.useEffect((()=>{if(!l||!m.current)return;const e=jV(m.current),t=t=>{g.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=i(m.current)),r.length>0){var o,a;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(a=g.current)?void 0:a.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,s,l,i]);const y=e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0};return Hj.jsxs(a.Fragment,{children:[Hj.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),a.cloneElement(t,{ref:v,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Hj.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const fQ=a.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,s]=a.useState(null),l=MV(a.isValidElement(r)?r.ref:null,t);if(PV((()=>{o||s(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),PV((()=>{if(i&&!o)return OV(t,i),()=>{OV(t,null)}}),[t,i,o]),o){if(a.isValidElement(r)){const e={ref:l};return a.cloneElement(r,e)}return Hj.jsx(a.Fragment,{children:r})}return Hj.jsx(a.Fragment,{children:i?W.createPortal(r,i):i})}));function pQ(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hQ(e){return parseInt(CV(e).getComputedStyle(e).paddingRight,10)||0}function mQ(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&pQ(e,o)}))}function vQ(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function gQ(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=jV(e);return t.body===e?CV(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=KV(jV(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${hQ(n)+e}px`;const t=jV(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${hQ(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=jV(n).body;else{const t=n.parentElement,r=CV(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const yQ=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&pQ(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);mQ(t,e.mount,e.modalRef,n,!0);const o=vQ(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=vQ(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=gQ(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=vQ(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&pQ(e.modalRef,t),mQ(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&pQ(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function bQ(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=yQ,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:f}=e,p=a.useRef({}),h=a.useRef(null),m=a.useRef(null),v=MV(m,f),[g,y]=a.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let w=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(w=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),x=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},_=IV((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||jV(h.current).body;o.add(S(),e),m.current&&x()})),$=a.useCallback((()=>o.isTopModal(S())),[o]),k=IV((e=>{h.current=e,e&&(d&&$()?x():m.current&&pQ(m.current,w))})),E=a.useCallback((()=>{o.remove(S(),w)}),[w,o]);a.useEffect((()=>()=>{E()}),[E]),a.useEffect((()=>{d?_():b&&i||E()}),[d,E,b,i,_]);const j=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&$()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},C=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=oQ(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=yV({},r,t);return yV({role:"presentation"},n,{onKeyDown:j(n),ref:v})},getBackdropProps:(e={})=>yV({"aria-hidden":!0},e,{onClick:C(e),open:d}),getTransitionProps:()=>({onEnter:$V((()=>{y(!1),s&&s()}),null==u?void 0:u.props.onEnter),onExited:$V((()=>{y(!0),l&&l(),i&&E()}),null==u?void 0:u.props.onExited)}),rootRef:v,portalRef:k,isTopModal:$,exited:g,hasTransition:b}}function wQ(e,t){return e-t}function SQ(e,t,r){return null==e?t:Math.min(Math.max(t,e),r)}function xQ(e,t){var r;const{index:n}=null!=(r=e.reduce(((e,r,n)=>{const o=Math.abs(t-r);return null===e||o<e.distance||o===e.distance?{distance:o,index:n}:e}),null))?r:{};return n}function _Q(e,t){if(void 0!==t.current&&e.changedTouches){const r=e;for(let e=0;e<r.changedTouches.length;e+=1){const n=r.changedTouches[e];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function $Q(e,t,r){return 100*(e-t)/(r-t)}function kQ(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function EQ({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(wQ)}function jQ({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=jV(e.current);var i;null!=(n=e.current)&&n.contains(a.activeElement)&&Number(null==a||null==(o=a.activeElement)?void 0:o.getAttribute("data-index"))===t||(null==(i=e.current)||i.querySelector(`[type="range"][data-index="${t}"]`).focus());r&&r(t)}function CQ(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t,r=((e,t)=>e===t)){return e.length===t.length&&e.every(((e,n)=>r(e,t[n])))}(e,t)}const OQ={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},PQ=e=>e;let NQ;function RQ(){return void 0===NQ&&(NQ="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),NQ}function TQ(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:l=100,min:u=0,name:c,onChange:d,onChangeCommitted:f,orientation:p="horizontal",rootRef:h,scale:m=PQ,step:v=1,tabIndex:g,value:y}=e,b=a.useRef(),[w,S]=a.useState(-1),[x,_]=a.useState(-1),[$,k]=a.useState(!1),E=a.useRef(0),[j,C]=AV({controlled:y,default:null!=r?r:u,name:"Slider"}),O=d&&((e,t,r)=>{const n=e.nativeEvent||e,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:c}}),d(o,t,r)}),P=Array.isArray(j);let N=P?j.slice().sort(wQ):[j];N=N.map((e=>SQ(e,u,l)));const R=!0===s&&null!==v?[...Array(Math.floor((l-u)/v)+1)].map(((e,t)=>({value:u+v*t}))):s||[],T=R.map((e=>e.value)),{isFocusVisibleRef:A,onBlur:I,onFocus:M,ref:F}=qV(),[z,D]=a.useState(-1),L=a.useRef(),B=MV(F,L),V=MV(h,B),U=e=>t=>{var r;const n=Number(t.currentTarget.getAttribute("data-index"));M(t),!0===A.current&&D(n),_(n),null==e||null==(r=e.onFocus)||r.call(e,t)},W=e=>t=>{var r;I(t),!1===A.current&&D(-1),_(-1),null==e||null==(r=e.onBlur)||r.call(e,t)};PV((()=>{var e;n&&L.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[n]),n&&-1!==w&&S(-1),n&&-1!==z&&D(-1);const q=a.useRef();let K=p;i&&"horizontal"===p&&(K+="-reverse");const H=({finger:e,move:t=!1})=>{const{current:r}=L,{width:n,height:a,bottom:i,left:s}=r.getBoundingClientRect();let c,d;if(c=0===K.indexOf("vertical")?(i-e.y)/a:(e.x-s)/n,-1!==K.indexOf("-reverse")&&(c=1-c),d=function(e,t,r){return(r-t)*e+t}(c,u,l),v)d=kQ(d,v,u);else{const e=xQ(T,d);d=T[e]}d=SQ(d,u,l);let f=0;if(P){f=t?q.current:xQ(N,d),o&&(d=SQ(d,N[f-1]||-1/0,N[f+1]||1/0));const e=d;d=EQ({values:N,newValue:d,index:f}),o&&t||(f=d.indexOf(e),q.current=f)}return{newValue:d,activeIndex:f}},G=IV((e=>{const t=_Q(e,b);if(!t)return;if(E.current+=1,"mousemove"===e.type&&0===e.buttons)return void Q(e);const{newValue:r,activeIndex:n}=H({finger:t,move:!0});jQ({sliderRef:L,activeIndex:n,setActive:S}),C(r),!$&&E.current>2&&k(!0),O&&!CQ(r,j)&&O(e,r,n)})),Q=IV((e=>{const t=_Q(e,b);if(k(!1),!t)return;const{newValue:r}=H({finger:t,move:!0});S(-1),"touchend"===e.type&&_(-1),f&&f(e,r),b.current=void 0,Y()})),J=IV((e=>{if(n)return;RQ()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(b.current=t.identifier);const r=_Q(e,b);if(!1!==r){const{newValue:t,activeIndex:n}=H({finger:r});jQ({sliderRef:L,activeIndex:n,setActive:S}),C(t),O&&!CQ(t,j)&&O(e,t,n)}E.current=0;const o=jV(L.current);o.addEventListener("touchmove",G),o.addEventListener("touchend",Q)})),Y=a.useCallback((()=>{const e=jV(L.current);e.removeEventListener("mousemove",G),e.removeEventListener("mouseup",Q),e.removeEventListener("touchmove",G),e.removeEventListener("touchend",Q)}),[Q,G]);a.useEffect((()=>{const{current:e}=L;return e.addEventListener("touchstart",J,{passive:RQ()}),()=>{e.removeEventListener("touchstart",J,{passive:RQ()}),Y()}}),[Y,J]),a.useEffect((()=>{n&&Y()}),[n,Y]);const X=$Q(P?N[0]:u,u,l),Z=$Q(N[N.length-1],u,l)-X,ee=e=>t=>{var r;null==(r=e.onMouseLeave)||r.call(e,t),_(-1)};return{active:w,axis:K,axisProps:OQ,dragging:$,focusedThumbIndex:z,getHiddenInputProps:(r={})=>{var a;const s=oQ(r);var d;const h=yV({},s,{onChange:(d=s||{},e=>{var t;null==(t=d.onChange)||t.call(d,e);const r=Number(e.currentTarget.getAttribute("data-index")),n=N[r],a=T.indexOf(n);let i=e.target.valueAsNumber;if(R&&null==v){const e=T[T.length-1];i=i>e?e:i<T[0]?T[0]:i<n?T[a-1]:T[a+1]}if(i=SQ(i,u,l),P){o&&(i=SQ(i,N[r-1]||-1/0,N[r+1]||1/0));const e=i;i=EQ({values:N,newValue:i,index:r});let t=r;o||(t=i.indexOf(e)),jQ({sliderRef:L,activeIndex:t})}C(i),D(r),O&&!CQ(i,j)&&O(e,i,r),f&&f(e,i)}),onFocus:U(s||{}),onBlur:W(s||{})});return yV({tabIndex:g,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":m(l),"aria-valuemin":m(u),name:c,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(a=e.step)?a:void 0,disabled:n},r,h,{style:yV({},HV,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{const t=oQ(e);var r;const o=yV({},t,{onMouseDown:(r=t||{},e=>{var t;if(null==(t=r.onMouseDown)||t.call(r,e),n)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const o=_Q(e,b);if(!1!==o){const{newValue:t,activeIndex:r}=H({finger:o});jQ({sliderRef:L,activeIndex:r,setActive:S}),C(t),O&&!CQ(t,j)&&O(e,t,r)}E.current=0;const a=jV(L.current);a.addEventListener("mousemove",G),a.addEventListener("mouseup",Q)})});return yV({},e,{ref:V},o)},getThumbProps:(e={})=>{const t=oQ(e);var r;return yV({},e,t,{onMouseOver:(r=t||{},e=>{var t;null==(t=r.onMouseOver)||t.call(r,e);const n=Number(e.currentTarget.getAttribute("data-index"));_(n)}),onMouseLeave:ee(t||{})})},marks:R,open:x,range:P,rootRef:V,trackLeap:Z,trackOffset:X,values:N,getThumbStyle:e=>({pointerEvents:-1!==w&&w!==e?"none":void 0})}}const AQ=["onChange","maxRows","minRows","style","value"];function IQ(e){return parseInt(e,10)||0}const MQ={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function FQ(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const zQ=a.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:s}=e,l=tU(e,AQ),{current:u}=a.useRef(null!=s),c=a.useRef(null),d=MV(t,c),f=a.useRef(null),p=a.useRef(0),[h,m]=a.useState({outerHeightStyle:0}),v=a.useCallback((()=>{const t=c.current,r=CV(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const a=f.current;a.style.width=r.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=r.boxSizing,s=IQ(r.paddingBottom)+IQ(r.paddingTop),l=IQ(r.borderBottomWidth)+IQ(r.borderTopWidth),u=a.scrollHeight;a.value="x";const d=a.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),n&&(p=Math.min(Number(n)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===i?s+l:0),overflow:Math.abs(p-u)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},y=a.useCallback((()=>{const e=v();FQ(e)||m((t=>g(t,e)))}),[v]);PV((()=>{const e=()=>{p.current=0,(()=>{const e=v();FQ(e)||W.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=kV(e),r=c.current,n=CV(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[v]),PV((()=>{y()})),a.useEffect((()=>{p.current=0}),[s]);return Hj.jsxs(a.Fragment,{children:[Hj.jsx("textarea",yV({value:s,onChange:e=>{p.current=0,u||y(),r&&r(e)},ref:d,rows:o,style:yV({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},i)},l)),Hj.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:yV({},MQ,i,{paddingTop:0,paddingBottom:0})})]})}));function DQ({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}var LQ=a.createContext(void 0);function BQ(){return a.useContext(LQ)}function VQ(e){return Hj.jsx(mK,yV({},e,{defaultTheme:xH,themeId:_H}))}function UQ(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function WQ(e,t=!1){return e&&(UQ(e.value)&&""!==e.value||t&&UQ(e.defaultValue)&&""!==e.defaultValue)}function qQ(e){return ZV("MuiInputBase",e)}var KQ=eU("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const HQ=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],GQ=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${_V(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},QQ=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},JQ=jH("div",{name:"MuiInputBase",slot:"Root",overridesResolver:GQ})((({theme:e,ownerState:t})=>yV({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${KQ.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&yV({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),YQ=jH("input",{name:"MuiInputBase",slot:"Input",overridesResolver:QQ})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=yV({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return yV({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${KQ.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${KQ.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),XQ=Hj.jsx(VQ,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ZQ=a.forwardRef((function(e,t){var r;const n=$H({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:m=!1,id:v,inputComponent:g="input",inputProps:y={},inputRef:b,maxRows:w,minRows:S,multiline:x=!1,name:_,onBlur:$,onChange:k,onClick:E,onFocus:j,onKeyDown:C,onKeyUp:O,placeholder:P,readOnly:N,renderSuffix:R,rows:T,slotProps:A={},slots:I={},startAdornment:M,type:F="text",value:z}=n,D=tU(n,HQ),L=null!=y.value?y.value:z,{current:B}=a.useRef(null!=L),V=a.useRef(),U=a.useCallback((e=>{}),[]),W=MV(V,b,y.ref,U),[q,K]=a.useState(!1),H=BQ(),G=DQ({props:n,muiFormControl:H,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=H?H.focused:q,a.useEffect((()=>{!H&&f&&q&&(K(!1),$&&$())}),[H,f,q,$]);const Q=H&&H.onFilled,J=H&&H.onEmpty,Y=a.useCallback((e=>{WQ(e)?Q&&Q():J&&J()}),[Q,J]);PV((()=>{B&&Y({value:L})}),[L,Y,B]);a.useEffect((()=>{Y(V.current)}),[]);let X=g,Z=y;x&&"input"===X&&(Z=yV(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:w,minRows:S},Z),X=zQ);a.useEffect((()=>{H&&H.setAdornedStart(Boolean(M))}),[H,M]);const ee=yV({},n,{color:G.color||"primary",disabled:G.disabled,endAdornment:h,error:G.error,focused:G.focused,formControl:H,fullWidth:m,hiddenLabel:G.hiddenLabel,multiline:x,size:G.size,startAdornment:M,type:F}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:h}=e;return QV({root:["root",`color${_V(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&"medium"!==f&&`size${_V(f)}`,c&&"multiline",p&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},qQ,t)})(ee),re=I.root||u.Root||JQ,ne=A.root||c.root||{},oe=I.input||u.Input||YQ;return Z=yV({},Z,null!=(r=A.input)?r:c.input),Hj.jsxs(a.Fragment,{children:[!p&&XQ,Hj.jsxs(re,yV({},ne,!nQ(re)&&{ownerState:yV({},ee,ne.ownerState)},{ref:t,onClick:e=>{V.current&&e.currentTarget===e.target&&V.current.focus(),E&&E(e)}},D,{className:nU(te.root,ne.className,l,N&&"MuiInputBase-readOnly"),children:[M,Hj.jsx(LQ.Provider,{value:null,children:Hj.jsx(oe,yV({ownerState:ee,"aria-invalid":G.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:d,disabled:G.disabled,id:v,onAnimationStart:e=>{Y("mui-auto-fill-cancel"===e.animationName?V.current:{value:"x"})},name:_,placeholder:P,readOnly:N,required:G.required,rows:T,value:L,onKeyDown:C,onKeyUp:O,type:F},Z,!nQ(oe)&&{as:X,ownerState:yV({},ee,Z.ownerState)},{ref:W,className:nU(te.input,Z.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{$&&$(e),y.onBlur&&y.onBlur(e),H&&H.onBlur?H.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!B){const t=e.target||V.current;if(null==t)throw new Error(xV(1));Y({value:t.value})}y.onChange&&y.onChange(e,...t),k&&k(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(j&&j(e),y.onFocus&&y.onFocus(e),H&&H.onFocus?H.onFocus(e):K(!0))}}))}),h,R?R(yV({},G,{startAdornment:M})):null]}))]})}));var eJ=ZQ;function tJ(e){return ZV("MuiInput",e)}var rJ=yV({},KQ,eU("MuiInput",["root","underline","input"]));const nJ=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],oJ=jH(JQ,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...GQ(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),yV({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${rJ.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${rJ.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${rJ.disabled}, .${rJ.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${rJ.disabled}:before`]:{borderBottomStyle:"dotted"}})})),aJ=jH(YQ,{name:"MuiInput",slot:"Input",overridesResolver:QQ})({}),iJ=a.forwardRef((function(e,t){var r,n,o,a;const i=$H({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:p,slots:h={},type:m="text"}=i,v=tU(i,nJ),g=(e=>{const{classes:t,disableUnderline:r}=e;return yV({},t,QV({root:["root",!r&&"underline"],input:["input"]},tJ,t))})(i),y={root:{ownerState:{disableUnderline:s}}},b=(null!=p?p:u)?SV(null!=p?p:u,y):y,w=null!=(r=null!=(n=h.root)?n:l.Root)?r:oJ,S=null!=(o=null!=(a=h.input)?a:l.Input)?o:aJ;return Hj.jsx(eJ,yV({slots:{root:w,input:S},slotProps:b,fullWidth:c,inputComponent:d,multiline:f,ref:t,type:m},v,{classes:g}))}));iJ.muiName="Input";var sJ=iJ;function lJ(e){return ZV("MuiFilledInput",e)}var uJ=yV({},KQ,eU("MuiFilledInput",["root","underline","input"]));const cJ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],dJ=jH(JQ,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...GQ(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return yV({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${uJ.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${uJ.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${uJ.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${uJ.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${uJ.disabled}, .${uJ.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${uJ.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&yV({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),fJ=jH(YQ,{name:"MuiFilledInput",slot:"Input",overridesResolver:QQ})((({theme:e,ownerState:t})=>yV({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),pJ=a.forwardRef((function(e,t){var r,n,o,a;const i=$H({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:f,slots:p={},type:h="text"}=i,m=tU(i,cJ),v=yV({},i,{fullWidth:u,inputComponent:c,multiline:d,type:h}),g=(e=>{const{classes:t,disableUnderline:r}=e;return yV({},t,QV({root:["root",!r&&"underline"],input:["input"]},lJ,t))})(i),y={root:{ownerState:v},input:{ownerState:v}},b=(null!=f?f:l)?SV(null!=f?f:l,y):y,w=null!=(r=null!=(n=p.root)?n:s.Root)?r:dJ,S=null!=(o=null!=(a=p.input)?a:s.Input)?o:fJ;return Hj.jsx(eJ,yV({slots:{root:w,input:S},componentsProps:b,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:g}))}));pJ.muiName="Input";var hJ,mJ=pJ;const vJ=["children","classes","className","label","notched"],gJ=jH("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),yJ=jH("legend")((({ownerState:e,theme:t})=>yV({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&yV({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));function bJ(e){return ZV("MuiOutlinedInput",e)}var wJ=yV({},KQ,eU("MuiOutlinedInput",["root","notchedOutline","input"]));const SJ=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],xJ=jH(JQ,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:GQ})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return yV({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${wJ.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${wJ.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${wJ.focused} .${wJ.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${wJ.error} .${wJ.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${wJ.disabled} .${wJ.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&yV({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),_J=jH((function(e){const{className:t,label:r,notched:n}=e,o=tU(e,vJ),a=null!=r&&""!==r,i=yV({},e,{notched:n,withLabel:a});return Hj.jsx(gJ,yV({"aria-hidden":!0,className:t,ownerState:i},o,{children:Hj.jsx(yJ,{ownerState:i,children:a?Hj.jsx("span",{children:r}):hJ||(hJ=Hj.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),$J=jH(YQ,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:QQ})((({theme:e,ownerState:t})=>yV({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),kJ=a.forwardRef((function(e,t){var r,n,o,i,s;const l=$H({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:p=!1,notched:h,slots:m={},type:v="text"}=l,g=tU(l,SJ),y=(e=>{const{classes:t}=e;return yV({},t,QV({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bJ,t))})(l),b=BQ(),w=DQ({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=yV({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:b,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:p,size:w.size,type:v}),x=null!=(r=null!=(n=m.root)?n:u.Root)?r:xJ,_=null!=(o=null!=(i=m.input)?i:u.Input)?o:$J;return Hj.jsx(eJ,yV({slots:{root:x,input:_},renderSuffix:e=>Hj.jsx(_J,{ownerState:S,className:y.notchedOutline,label:null!=f&&""!==f&&w.required?s||(s=Hj.jsxs(a.Fragment,{children:[f," ","*"]})):f,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:p,ref:t,type:v},g,{classes:yV({},y,{notchedOutline:null})}))}));kJ.muiName="Input";var EJ=kJ;function jJ(e){return ZV("MuiFormLabel",e)}var CJ=eU("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);const OJ=["children","className","color","component","disabled","error","filled","focused","required"],PJ=jH("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>yV({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>yV({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${CJ.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${CJ.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${CJ.error}`]:{color:(e.vars||e).palette.error.main}}))),NJ=jH("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${CJ.error}`]:{color:(e.vars||e).palette.error.main}}))),RJ=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:a="label"}=r,i=tU(r,OJ),s=DQ({props:r,muiFormControl:BQ(),states:["color","required","focused","disabled","error","filled"]}),l=yV({},r,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),u=(e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e;return QV({root:["root",`color${_V(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]},jJ,t)})(l);return Hj.jsxs(PJ,yV({as:a,ownerState:l,className:nU(u.root,o),ref:t},i,{children:[n,s.required&&Hj.jsxs(NJ,{ownerState:l,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}));var TJ=RJ;function AJ(e){return ZV("MuiInputLabel",e)}eU("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const IJ=["disableAnimation","margin","shrink","variant","className"],MJ=jH(TJ,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${CJ.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})((({theme:e,ownerState:t})=>yV({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&yV({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&yV({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&yV({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),FJ=a.forwardRef((function(e,t){const r=$H({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:a}=r,i=tU(r,IJ),s=BQ();let l=o;void 0===l&&s&&(l=s.filled||s.focused||s.adornedStart);const u=DQ({props:r,muiFormControl:s,states:["size","variant","required"]}),c=yV({},r,{disableAnimation:n,formControl:s,shrink:l,size:u.size,variant:u.variant,required:u.required}),d=(e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e;return yV({},t,QV({root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&"normal"!==n&&`size${_V(n)}`,i],asterisk:[s&&"asterisk"]},AJ,t))})(c);return Hj.jsx(MJ,yV({"data-shrink":l,ownerState:c,ref:t,className:nU(d.root,a)},i,{classes:d}))}));var zJ=FJ;function DJ(e){return ZV("MuiFormControl",e)}eU("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const LJ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],BJ=jH("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>yV({},t.root,t[`margin${_V(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>yV({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),VJ=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiFormControl"}),{children:n,className:o,color:i="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:p="none",required:h=!1,size:m="medium",variant:v="outlined"}=r,g=tU(r,LJ),y=yV({},r,{color:i,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:f,margin:p,required:h,size:m,variant:v}),b=(e=>{const{classes:t,margin:r,fullWidth:n}=e;return QV({root:["root","none"!==r&&`margin${_V(r)}`,n&&"fullWidth"]},DJ,t)})(y),[w,S]=a.useState((()=>{let e=!1;return n&&a.Children.forEach(n,(t=>{if(!EV(t,["Input","Select"]))return;const r=EV(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)})),e})),[x,_]=a.useState((()=>{let e=!1;return n&&a.Children.forEach(n,(t=>{EV(t,["Input","Select"])&&(WQ(t.props,!0)||WQ(t.props.inputProps,!0))&&(e=!0)})),e})),[$,k]=a.useState(!1);l&&$&&k(!1);const E=void 0===c||l?$:c;let j;const C=a.useMemo((()=>({adornedStart:w,setAdornedStart:S,color:i,disabled:l,error:u,filled:x,focused:E,fullWidth:d,hiddenLabel:f,size:m,onBlur:()=>{k(!1)},onEmpty:()=>{_(!1)},onFilled:()=>{_(!0)},onFocus:()=>{k(!0)},registerEffect:j,required:h,variant:v})),[w,i,l,u,x,E,d,f,j,h,m,v]);return Hj.jsx(LQ.Provider,{value:C,children:Hj.jsx(BJ,yV({as:s,ownerState:y,className:nU(b.root,o),ref:t},g,{children:n}))})}));var UJ=VJ;function WJ(e){return ZV("MuiFormHelperText",e)}var qJ,KJ=eU("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);const HJ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],GJ=jH("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${_V(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((({theme:e,ownerState:t})=>yV({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KJ.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KJ.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),QJ=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:a="p"}=r,i=tU(r,HJ),s=DQ({props:r,muiFormControl:BQ(),states:["variant","size","disabled","error","filled","focused","required"]}),l=yV({},r,{component:a,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),u=(e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:l}=e;return QV({root:["root",o&&"disabled",a&&"error",n&&`size${_V(n)}`,r&&"contained",s&&"focused",i&&"filled",l&&"required"]},WJ,t)})(l);return Hj.jsx(GJ,yV({as:a,ownerState:l,className:nU(u.root,o),ref:t},i,{children:" "===n?qJ||(qJ=Hj.jsx("span",{className:"notranslate",children:"​"})):n}))}));var JJ=QJ;var YJ=a.createContext({});function XJ(e){return ZV("MuiList",e)}eU("MuiList",["root","padding","dense","subheader"]);const ZJ=["children","className","component","dense","disablePadding","subheader"],eY=jH("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>yV({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),tY=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=tU(r,ZJ),d=a.useMemo((()=>({dense:s})),[s]),f=yV({},r,{component:i,dense:s,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return QV({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},XJ,t)})(f);return Hj.jsx(YJ.Provider,{value:d,children:Hj.jsxs(eY,yV({as:i,className:nU(p.root,o),ref:t,ownerState:f},c,{children:[u,n]}))})}));var rY=tY;const nY=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function oY(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function aY(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function iY(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function sY(e,t,r,n,o,a){let i=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&iY(s,a)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const lY=a.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,f=tU(e,nY),p=a.useRef(null),h=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});PV((()=>{n&&p.current.focus()}),[n]),a.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${KV(jV(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=MV(p,t);let v=-1;a.Children.forEach(i,((e,t)=>{a.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===v)&&(v=t),v===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(v+=1,v>=i.length&&(v=-1))):v===t&&(v+=1,v>=i.length&&(v=-1))}));const g=a.Children.map(i,((e,t)=>{if(t===v){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),a.cloneElement(e,t)}return e}));return Hj.jsx(rY,yV({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=p.current,r=e.key,n=jV(t).activeElement;if("ArrowDown"===r)e.preventDefault(),sY(t,n,u,l,oY);else if("ArrowUp"===r)e.preventDefault(),sY(t,n,u,l,aY);else if("Home"===r)e.preventDefault(),sY(t,null,u,l,oY);else if("End"===r)e.preventDefault(),sY(t,null,u,l,aY);else if(1===r.length){const o=h.current,a=r.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=n&&!o.repeating&&iY(n,o);o.previousKeyMatched&&(s||sY(t,n,!1,l,oY,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},f,{children:g}))}));var uY=lY;const cY=e=>e.scrollTop;function dY(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(r=i.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=i.transitionTimingFunction)?n:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}const fY=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function pY(e){return`scale(${e}, ${e**2})`}const hY={entering:{opacity:1,transform:pY(1)},entered:{opacity:1,transform:"none"}},mY="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vY=a.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:p,style:h,timeout:m="auto",TransitionComponent:v=eG}=e,g=tU(e,fY),y=a.useRef(),b=a.useRef(),w=AG(),S=a.useRef(null),x=MV(S,o.ref,t),_=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},$=_(c),k=_(((e,t)=>{cY(e);const{duration:r,delay:n,easing:o}=dY({style:h,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=r,e.style.transition=[w.transitions.create("opacity",{duration:a,delay:n}),w.transitions.create("transform",{duration:mY?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),E=_(u),j=_(p),C=_((e=>{const{duration:t,delay:r,easing:n}=dY({style:h,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[w.transitions.create("opacity",{duration:o,delay:r}),w.transitions.create("transform",{duration:mY?o:.666*o,delay:mY?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=pY(.75),d&&d(e)})),O=_(f);return a.useEffect((()=>()=>{clearTimeout(y.current)}),[]),Hj.jsx(v,yV({appear:n,in:s,nodeRef:S,onEnter:k,onEntered:E,onEntering:$,onExit:C,onExited:O,onExiting:j,addEndListener:e=>{"auto"===m&&(y.current=setTimeout(e,b.current||0)),r&&r(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>a.cloneElement(o,yV({style:yV({opacity:0,transform:pY(.75),visibility:"exited"!==e||s?void 0:"hidden"},hY[e],h,o.props.style),ref:x},t))}))}));vY.muiSupportAuto=!0;var gY=vY;const yY=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],bY={entering:{opacity:1},entered:{opacity:1}},wY=a.forwardRef((function(e,t){const r=AG(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:m,style:v,timeout:g=n,TransitionComponent:y=eG}=e,b=tU(e,yY),w=a.useRef(null),S=MV(w,s.ref,t),x=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},_=x(f),$=x(((e,t)=>{cY(e);const n=dY({style:v,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),k=x(d),E=x(m),j=x((e=>{const t=dY({style:v,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),C=x(h);return Hj.jsx(y,yV({appear:i,in:u,nodeRef:w,onEnter:$,onEntered:k,onEntering:_,onExit:j,onExited:C,onExiting:E,addEndListener:e=>{o&&o(w.current,e)},timeout:g},b,{children:(e,t)=>a.cloneElement(s,yV({style:yV({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},bY[e],v,s.props.style),ref:S},t))}))}));var SY=wY;function xY(e){return ZV("MuiBackdrop",e)}eU("MuiBackdrop",["root","invisible"]);const _Y=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],$Y=jH("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>yV({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),kY=a.forwardRef((function(e,t){var r,n,o;const a=$H({props:e,name:"MuiBackdrop"}),{children:i,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:f,slotProps:p={},slots:h={},TransitionComponent:m=SY,transitionDuration:v}=a,g=tU(a,_Y),y=yV({},a,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e;return QV({root:["root",r&&"invisible"]},xY,t)})(y),w=null!=(r=p.root)?r:c.root;return Hj.jsx(m,yV({in:f,timeout:v},g,{children:Hj.jsx($Y,yV({"aria-hidden":!0},w,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:nU(b.root,s,null==w?void 0:w.className),ownerState:yV({},y,null==w?void 0:w.ownerState),classes:b,ref:t,children:i}))}))}));var EY=kY;function jY(e){return ZV("MuiModal",e)}eU("MuiModal",["root","hidden","backdrop"]);const CY=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],OY=jH("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>yV({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),PY=jH(EY,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),NY=a.forwardRef((function(e,t){var r,n,o,i,s,l;const u=$H({name:"MuiModal",props:e}),{BackdropComponent:c=PY,BackdropProps:d,className:f,closeAfterTransition:p=!1,children:h,container:m,component:v,components:g={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:x=!1,disableRestoreFocus:_=!1,disableScrollLock:$=!1,hideBackdrop:k=!1,keepMounted:E=!1,onBackdropClick:j,open:C,slotProps:O,slots:P}=u,N=tU(u,CY),R=yV({},u,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:x,disableRestoreFocus:_,disableScrollLock:$,hideBackdrop:k,keepMounted:E}),{getRootProps:T,getBackdropProps:A,getTransitionProps:I,portalRef:M,isTopModal:F,exited:z,hasTransition:D}=bQ(yV({},R,{rootRef:t})),L=yV({},R,{exited:z}),B=(e=>{const{open:t,exited:r,classes:n}=e;return QV({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},jY,n)})(L),V={};if(void 0===h.props.tabIndex&&(V.tabIndex="-1"),D){const{onEnter:e,onExited:t}=I();V.onEnter=e,V.onExited=t}const U=null!=(r=null!=(n=null==P?void 0:P.root)?n:g.Root)?r:OY,W=null!=(o=null!=(i=null==P?void 0:P.backdrop)?i:g.Backdrop)?o:c,q=null!=(s=null==O?void 0:O.root)?s:y.root,K=null!=(l=null==O?void 0:O.backdrop)?l:y.backdrop,H=sQ({elementType:U,externalSlotProps:q,externalForwardedProps:N,getSlotProps:T,additionalProps:{ref:t,as:v},ownerState:L,className:nU(f,null==q?void 0:q.className,null==B?void 0:B.root,!L.open&&L.exited&&(null==B?void 0:B.hidden))}),G=sQ({elementType:W,externalSlotProps:K,additionalProps:d,getSlotProps:e=>A(yV({},e,{onClick:t=>{j&&j(t),null!=e&&e.onClick&&e.onClick(t)}})),className:nU(null==K?void 0:K.className,null==d?void 0:d.className,null==B?void 0:B.backdrop),ownerState:L});return E||C||D&&!z?Hj.jsx(fQ,{ref:M,container:m,disablePortal:x,children:Hj.jsxs(U,yV({},H,{children:[!k&&c?Hj.jsx(W,yV({},G)):null,Hj.jsx(dQ,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:_,isEnabled:F,open:C,children:a.cloneElement(h,V)})]}))}):null}));var RY=NY;function TY(e){return ZV("MuiPopover",e)}eU("MuiPopover",["root","paper"]);const AY=["onEntering"],IY=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],MY=["slotProps"];function FY(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function zY(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function DY(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function LY(e){return"function"==typeof e?e():e}const BY=jH(RY,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),VY=jH(eQ,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),UY=a.forwardRef((function(e,t){var r,n,o;const i=$H({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:p,container:h,elevation:m=8,marginThreshold:v=16,open:g,PaperProps:y={},slots:b,slotProps:w,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:x=gY,transitionDuration:_="auto",TransitionProps:{onEntering:$}={},disableScrollLock:k=!1}=i,E=tU(i.TransitionProps,AY),j=tU(i,IY),C=null!=(r=null==w?void 0:w.paper)?r:y,O=a.useRef(),P=MV(O,C.ref),N=yV({},i,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:v,externalPaperSlotProps:C,transformOrigin:S,TransitionComponent:x,transitionDuration:_,TransitionProps:E}),R=(e=>{const{classes:t}=e;return QV({root:["root"],paper:["paper"]},TY,t)})(N),T=a.useCallback((()=>{if("anchorPosition"===d)return c;const e=LY(l),t=(e&&1===e.nodeType?e:jV(O.current).body).getBoundingClientRect();return{top:t.top+FY(t,u.vertical),left:t.left+zY(t,u.horizontal)}}),[l,u.horizontal,u.vertical,c,d]),A=a.useCallback((e=>({vertical:FY(e,S.vertical),horizontal:zY(e,S.horizontal)})),[S.horizontal,S.vertical]),I=a.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=A(t);if("none"===d)return{top:null,left:null,transformOrigin:DY(r)};const n=T();let o=n.top-r.vertical,a=n.left-r.horizontal;const i=o+t.height,s=a+t.width,u=CV(LY(l)),c=u.innerHeight-v,f=u.innerWidth-v;if(null!==v&&o<v){const e=o-v;o-=e,r.vertical+=e}else if(null!==v&&i>c){const e=i-c;o-=e,r.vertical+=e}if(null!==v&&a<v){const e=a-v;a-=e,r.horizontal+=e}else if(s>f){const e=s-f;a-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:DY(r)}}),[l,d,T,A,v]),[M,F]=a.useState(g),z=a.useCallback((()=>{const e=O.current;if(!e)return;const t=I(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,F(!0)}),[I]);a.useEffect((()=>(k&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,k,z]);a.useEffect((()=>{g&&z()})),a.useImperativeHandle(s,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),a.useEffect((()=>{if(!g)return;const e=kV((()=>{z()})),t=CV(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let D=_;"auto"!==_||x.muiSupportAuto||(D=void 0);const L=h||(l?jV(LY(l)).body:void 0),B=null!=(n=null==b?void 0:b.root)?n:BY,V=null!=(o=null==b?void 0:b.paper)?o:VY,U=sQ({elementType:V,externalSlotProps:yV({},C,{style:M?C.style:yV({},C.style,{opacity:0})}),additionalProps:{elevation:m,ref:P},ownerState:N,className:nU(R.paper,null==C?void 0:C.className)}),W=sQ({elementType:B,externalSlotProps:(null==w?void 0:w.root)||{},externalForwardedProps:j,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:L,open:g},ownerState:N,className:nU(R.root,p)}),{slotProps:q}=W,K=tU(W,MY);return Hj.jsx(B,yV({},K,!nQ(B)&&{slotProps:q,disableScrollLock:k},{children:Hj.jsx(x,yV({appear:!0,in:g,onEntering:(e,t)=>{$&&$(e,t),z()},onExited:()=>{F(!1)},timeout:D},E,{children:Hj.jsx(V,yV({},U,{children:f}))}))}))}));var WY=UY;function qY(e){return ZV("MuiMenu",e)}eU("MuiMenu",["root","paper","list"]);const KY=["onEntering"],HY=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],GY={vertical:"top",horizontal:"right"},QY={vertical:"top",horizontal:"left"},JY=jH(WY,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YY=jH(VY,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),XY=jH(uY,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ZY=a.forwardRef((function(e,t){var r,n;const o=$H({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:f,PaperProps:p={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:v}={},variant:g="selectedMenu",slots:y={},slotProps:b={}}=o,w=tU(o.TransitionProps,KY),S=tU(o,HY),x=AG(),_="rtl"===x.direction,$=yV({},o,{autoFocus:i,disableAutoFocusItem:u,MenuListProps:c,onEntering:v,PaperProps:p,transitionDuration:m,TransitionProps:w,variant:g}),k=(e=>{const{classes:t}=e;return QV({root:["root"],paper:["paper"],list:["list"]},qY,t)})($),E=i&&!u&&f,j=a.useRef(null);let C=-1;a.Children.map(s,((e,t)=>{a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===C)&&(C=t))}));const O=null!=(r=y.paper)?r:YY,P=null!=(n=b.paper)?n:p,N=sQ({elementType:y.root,externalSlotProps:b.root,ownerState:$,className:[k.root,l]}),R=sQ({elementType:O,externalSlotProps:P,ownerState:$,className:k.paper});return Hj.jsx(JY,yV({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?GY:QY,slots:{paper:O,root:y.root},slotProps:{root:N,paper:R},open:f,ref:t,transitionDuration:m,TransitionProps:yV({onEntering:(e,t)=>{j.current&&j.current.adjustStyleForScrollbar(e,x),v&&v(e,t)}},w),ownerState:$},S,{classes:h,children:Hj.jsx(XY,yV({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:j,autoFocus:i&&(-1===C||u),autoFocusItem:E,variant:g},c,{className:nU(k.list,c.className),children:s}))}))}));var eX=ZY;function tX(e){return ZV("MuiNativeSelect",e)}var rX=eU("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const nX=["className","disabled","error","IconComponent","inputRef","variant"],oX=({ownerState:e,theme:t})=>yV({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":yV({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${rX.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),aX=jH("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:kH,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${rX.multiple}`]:t.multiple}]}})(oX),iX=({ownerState:e,theme:t})=>yV({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${rX.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),sX=jH("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${_V(r.variant)}`],r.open&&t.iconOpen]}})(iX),lX=a.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:s,variant:l="standard"}=e,u=tU(e,nX),c=yV({},e,{disabled:n,variant:l,error:o}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return QV({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${_V(r)}`,a&&"iconOpen",n&&"disabled"]},tX,t)})(c);return Hj.jsxs(a.Fragment,{children:[Hj.jsx(aX,yV({ownerState:c,className:nU(d.select,r),disabled:n,ref:s||t},u)),e.multiple?null:Hj.jsx(sX,{as:i,ownerState:c,className:d.icon})]})}));var uX=lX;function cX(e){return ZV("MuiSelect",e)}var dX,fX=eU("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const pX=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],hX=jH("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${fX.select}`]:t.select},{[`&.${fX.select}`]:t[r.variant]},{[`&.${fX.error}`]:t.error},{[`&.${fX.multiple}`]:t.multiple}]}})(oX,{[`&.${fX.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mX=jH("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${_V(r.variant)}`],r.open&&t.iconOpen]}})(iX),vX=jH("input",{shouldForwardProp:e=>EH(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function gX(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function yX(e){return null==e||"string"==typeof e&&!e.trim()}const bX=a.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:f,displayEmpty:p,error:h=!1,IconComponent:m,inputRef:v,labelId:g,MenuProps:y={},multiple:b,name:w,onBlur:S,onChange:x,onClose:_,onFocus:$,onOpen:k,open:E,readOnly:j,renderValue:C,SelectDisplayProps:O={},tabIndex:P,value:N,variant:R="standard"}=e,T=tU(e,pX),[A,I]=AV({controlled:N,default:d,name:"Select"}),[M,F]=AV({controlled:E,default:c,name:"Select"}),z=a.useRef(null),D=a.useRef(null),[L,B]=a.useState(null),{current:V}=a.useRef(null!=E),[U,W]=a.useState(),q=MV(t,v),K=a.useCallback((e=>{D.current=e,e&&B(e)}),[]),H=null==L?void 0:L.parentNode;a.useImperativeHandle(q,(()=>({focus:()=>{D.current.focus()},node:z.current,value:A})),[A]),a.useEffect((()=>{c&&M&&L&&!V&&(W(s?null:H.clientWidth),D.current.focus())}),[L,s]),a.useEffect((()=>{i&&D.current.focus()}),[i]),a.useEffect((()=>{if(!g)return;const e=jV(D.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&D.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const G=(e,t)=>{e?k&&k(t):_&&_(t),V||(W(s?null:H.clientWidth),F(e))},Q=a.Children.toArray(l),J=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(A)?A.slice():[];const t=A.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),A!==r&&(I(r),x)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:w}}),x(o,e)}b||G(!1,t)}},Y=null!==L&&M;let X,Z;delete T["aria-invalid"];const ee=[];let te=!1;(WQ({value:A})||p)&&(C?X=C(A):te=!0);const re=Q.map((e=>{if(!a.isValidElement(e))return null;let t;if(b){if(!Array.isArray(A))throw new Error(xV(2));t=A.some((t=>gX(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=gX(A,e.props.value),t&&te&&(Z=e.props.children);return a.cloneElement(e,{"aria-selected":t?"true":"false",onClick:J(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(X=b?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Z);let ne,oe=U;!s&&V&&L&&(oe=H.clientWidth),ne=void 0!==P?P:f?null:0;const ae=O.id||(w?`mui-component-select-${w}`:void 0),ie=yV({},e,{variant:R,value:A,open:Y,error:h}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return QV({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${_V(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},cX,t)})(ie),le=yV({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ue=TV();return Hj.jsxs(a.Fragment,{children:[Hj.jsx(hX,yV({ref:K,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":f?"true":void 0,"aria-expanded":Y?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ae].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!j){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),G(!0,e))}},onMouseDown:f||j?null:e=>{0===e.button&&(e.preventDefault(),D.current.focus(),G(!0,e))},onBlur:e=>{!Y&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:A,name:w}}),S(e))},onFocus:$},O,{ownerState:ie,className:nU(O.className,se.select,u),id:ae,children:yX(X)?dX||(dX=Hj.jsx("span",{className:"notranslate",children:"​"})):X})),Hj.jsx(vX,yV({"aria-invalid":h,value:Array.isArray(A)?A.join(","):A,name:w,ref:z,"aria-hidden":!0,onChange:e=>{const t=Q.find((t=>t.props.value===e.target.value));void 0!==t&&(I(t.props.value),x&&x(e,t))},tabIndex:-1,disabled:f,className:se.nativeInput,autoFocus:i,ownerState:ie},T)),Hj.jsx(mX,{as:m,className:se.icon,ownerState:ie}),Hj.jsx(eX,yV({id:`menu-${w||""}`,anchorEl:H,open:Y,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:yV({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},y.MenuListProps),slotProps:yV({},y.slotProps,{paper:yV({},le,{style:yV({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}));var wX=bX,SX=TH(Hj.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const xX=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],_X=["root"],$X={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>kH(e)&&"variant"!==e,slot:"Root"},kX=jH(sJ,$X)(""),EX=jH(EJ,$X)(""),jX=jH(mJ,$X)(""),CX=a.forwardRef((function(e,t){const r=$H({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=SX,id:d,input:f,inputProps:p,label:h,labelId:m,MenuProps:v,multiple:g=!1,native:y=!1,onClose:b,onOpen:w,open:S,renderValue:x,SelectDisplayProps:_,variant:$="outlined"}=r,k=tU(r,xX),E=y?uX:wX,j=DQ({props:r,muiFormControl:BQ(),states:["variant","error"]}),C=j.variant||$,O=yV({},r,{variant:C,classes:i}),P=(e=>{const{classes:t}=e;return t})(O),N=tU(P,_X),R=f||{standard:Hj.jsx(kX,{ownerState:O}),outlined:Hj.jsx(EX,{label:h,ownerState:O}),filled:Hj.jsx(jX,{ownerState:O})}[C],T=MV(t,R.ref);return Hj.jsx(a.Fragment,{children:a.cloneElement(R,yV({inputComponent:E,inputProps:yV({children:o,error:j.error,IconComponent:c,variant:C,type:void 0,multiple:g},y?{id:d}:{autoWidth:n,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:v,onClose:b,onOpen:w,open:S,renderValue:x,SelectDisplayProps:yV({id:d},_)},p,{classes:p?SV(N,p.classes):N},f?f.props.inputProps:{})},g&&y&&"outlined"===C?{notched:!0}:{},{ref:T,className:nU(R.props.className,s,P.root)},!f&&{variant:C},k))})}));CX.muiName="Select";var OX=CX;function PX(e){return ZV("MuiTextField",e)}eU("MuiTextField",["root"]);const NX=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],RX={standard:sJ,filled:mJ,outlined:EJ},TX=jH(UJ,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AX=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:a,className:i,color:s="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:p,id:h,InputLabelProps:m,inputProps:v,InputProps:g,inputRef:y,label:b,maxRows:w,minRows:S,multiline:x=!1,name:_,onBlur:$,onChange:k,onFocus:E,placeholder:j,required:C=!1,rows:O,select:P=!1,SelectProps:N,type:R,value:T,variant:A="outlined"}=r,I=tU(r,NX),M=yV({},r,{autoFocus:o,color:s,disabled:u,error:c,fullWidth:f,multiline:x,required:C,select:P,variant:A}),F=(e=>{const{classes:t}=e;return QV({root:["root"]},PX,t)})(M),z={};"outlined"===A&&(m&&void 0!==m.shrink&&(z.notched=m.shrink),z.label=b),P&&(N&&N.native||(z.id=void 0),z["aria-describedby"]=void 0);const D=TV(h),L=p&&D?`${D}-helper-text`:void 0,B=b&&D?`${D}-label`:void 0,V=RX[A],U=Hj.jsx(V,yV({"aria-describedby":L,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:f,multiline:x,name:_,rows:O,maxRows:w,minRows:S,type:R,value:T,id:D,inputRef:y,onBlur:$,onChange:k,onFocus:E,placeholder:j,inputProps:v},z,g));return Hj.jsxs(TX,yV({className:nU(F.root,i),disabled:u,error:c,fullWidth:f,ref:t,required:C,color:s,variant:A,ownerState:M},I,{children:[null!=b&&""!==b&&Hj.jsx(zJ,yV({htmlFor:D,id:B},m,{children:b})),P?Hj.jsx(OX,yV({"aria-describedby":L,id:D,labelId:B,value:T,input:U},N,{children:a})):U,p&&Hj.jsx(JJ,yV({id:L},d,{children:p}))]}))}));var IX=AX;const MX=["date","datetime-local","file","time"];function FX(e){const{id:t,name:r,placeholder:n,required:o,readonly:a,disabled:i,type:s,label:l,hideLabel:u,value:c,onChange:d,onChangeOverride:f,onBlur:p,onFocus:h,autofocus:m,options:v,schema:g,uiSchema:y,rawErrors:b=[],formContext:w,registry:S,InputLabelProps:x}=e,_=ov(e,["id","name","placeholder","required","readonly","disabled","type","label","hideLabel","value","onChange","onChangeOverride","onBlur","onFocus","autofocus","options","schema","uiSchema","rawErrors","formContext","registry","InputLabelProps"]),$=Uj(g,s,v),{step:k,min:E,max:j}=$,C=ov($,["step","min","max"]),O=Object.assign({inputProps:Object.assign({step:k,min:E,max:j},g.examples?{list:CC(t)}:void 0)},C),P=MX.includes(s)?Object.assign(Object.assign({},x),{shrink:!0}):x;return Hj.jsxs(Hj.Fragment,{children:[Hj.jsx(IX,Object.assign({id:t,name:t,placeholder:n,label:TC(l||void 0,u,!1),autoFocus:m,required:o,disabled:i||a},O,{value:c||0===c?c:"",error:b.length>0,onChange:f||(({target:{value:e}})=>d(""===e?v.emptyValue:e)),onBlur:({target:{value:e}})=>p(t,e),onFocus:({target:{value:e}})=>h(t,e),InputLabelProps:P},_,{"aria-describedby":NC(t,!!g.examples)})),Array.isArray(g.examples)&&Hj.jsx("datalist",Object.assign({id:CC(t)},{children:g.examples.concat(g.default&&!g.examples.includes(g.default)?[g.default]:[]).map((e=>Hj.jsx("option",{value:e},e)))}))]})}function zX(e){return ZV("MuiTypography",e)}eU("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const DX=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],LX=jH("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${_V(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>yV({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),BX={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},VX={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},UX=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiTypography"}),n=(e=>VX[e]||e)(r.color),o=yK(yV({},r,{color:n})),{align:a="inherit",className:i,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=BX}=o,p=tU(o,DX),h=yV({},o,{align:a,color:n,className:i,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:f}),m=s||(c?"p":f[d]||BX[d])||"span",v=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e;return QV({root:["root",a,"inherit"!==e.align&&`align${_V(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},zX,i)})(h);return Hj.jsx(LX,yV({as:m,ref:t,ownerState:h,className:nU(v.root,i)},p))}));var WX=UX;function qX(e){const{id:t,description:r}=e;return r?Hj.jsx(WX,Object.assign({id:t,variant:"subtitle2",style:{marginTop:"5px"}},{children:r})):null}var KX={},HX=mV;Object.defineProperty(KX,"__esModule",{value:!0});var GX=KX.default=void 0,QX=HX(FH()),JX=Hj,YX=(0,QX.default)((0,JX.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");function XX(e){return ZV("MuiListItem",e)}GX=KX.default=YX;var ZX=eU("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var eZ=eU("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function tZ(e){return ZV("MuiListItemSecondaryAction",e)}eU("MuiListItemSecondaryAction",["root","disableGutters"]);const rZ=["className"],nZ=jH("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>yV({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),oZ=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=tU(r,rZ),i=yV({},r,{disableGutters:a.useContext(YJ).disableGutters}),s=(e=>{const{disableGutters:t,classes:r}=e;return QV({root:["root",t&&"disableGutters"]},tZ,r)})(i);return Hj.jsx(nZ,yV({className:nU(s.root,n),ownerState:i,ref:t},o))}));oZ.muiName="ListItemSecondaryAction";var aZ=oZ;const iZ=["className"],sZ=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],lZ=jH("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>yV({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&yV({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${eZ.root}`]:{paddingRight:48}},{[`&.${ZX.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ZX.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:DK(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ZX.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:DK(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ZX.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ZX.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:DK(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:DK(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),uZ=jH("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),cZ=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:i=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:p}={},dense:h=!1,disabled:m=!1,disableGutters:v=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:w,selected:S=!1,slotProps:x={},slots:_={}}=r,$=tU(r.ContainerProps,iZ),k=tU(r,sZ),E=a.useContext(YJ),j=a.useMemo((()=>({dense:h||E.dense||!1,alignItems:n,disableGutters:v})),[n,E.dense,h,v]),C=a.useRef(null);PV((()=>{o&&C.current&&C.current.focus()}),[o]);const O=a.Children.toArray(s),P=O.length&&EV(O[O.length-1],["ListItemSecondaryAction"]),N=yV({},r,{alignItems:n,autoFocus:o,button:i,dense:j.dense,disabled:m,disableGutters:v,disablePadding:g,divider:y,hasSecondaryAction:P,selected:S}),R=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return QV({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},XX,n)})(N),T=MV(C,t),A=_.root||c.Root||lZ,I=x.root||d.root||{},M=yV({className:nU(R.root,I.className,l),disabled:m},k);let F=u||"li";return i&&(M.component=u||"div",M.focusVisibleClassName=nU(ZX.focusVisible,b),F=EG),P?(F=M.component||u?F:"div","li"===f&&("li"===F?F="div":"li"===M.component&&(M.component="div")),Hj.jsx(YJ.Provider,{value:j,children:Hj.jsxs(uZ,yV({as:f,className:nU(R.container,p),ref:T,ownerState:N},$,{children:[Hj.jsx(A,yV({},I,!nQ(A)&&{as:F,ownerState:yV({},N,I.ownerState)},M,{children:O})),O.pop()]}))})):Hj.jsx(YJ.Provider,{value:j,children:Hj.jsxs(A,yV({},I,{as:F,ref:T},!nQ(A)&&{ownerState:yV({},N,I.ownerState)},M,{children:[O,w&&Hj.jsx(aZ,{children:w})]}))})}));var dZ=cZ;function fZ(e){return ZV("MuiListItemIcon",e)}var pZ=eU("MuiListItemIcon",["root","alignItemsFlexStart"]);const hZ=["className"],mZ=jH("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>yV({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),vZ=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=tU(r,hZ),i=yV({},r,{alignItems:a.useContext(YJ).alignItems}),s=(e=>{const{alignItems:t,classes:r}=e;return QV({root:["root","flex-start"===t&&"alignItemsFlexStart"]},fZ,r)})(i);return Hj.jsx(mZ,yV({className:nU(s.root,n),ownerState:i,ref:t},o))}));var gZ=vZ;function yZ(e){return ZV("MuiListItemText",e)}var bZ=eU("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const wZ=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],SZ=jH("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${bZ.primary}`]:t.primary},{[`& .${bZ.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((({ownerState:e})=>yV({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),xZ=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiListItemText"}),{children:n,className:o,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=tU(r,wZ),{dense:p}=a.useContext(YJ);let h=null!=l?l:n,m=c;const v=yV({},r,{disableTypography:i,inset:s,primary:!!h,secondary:!!m,dense:p}),g=(e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return QV({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},yZ,t)})(v);return null==h||h.type===WX||i||(h=Hj.jsx(WX,yV({variant:p?"body2":"body1",className:g.primary,component:null!=u&&u.variant?void 0:"span",display:"block"},u,{children:h}))),null==m||m.type===WX||i||(m=Hj.jsx(WX,yV({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},d,{children:m}))),Hj.jsxs(SZ,yV({className:nU(g.root,o),ownerState:v,ref:t},f,{children:[h,m]}))}));var _Z=xZ;function $Z({errors:e,registry:t}){const{translateString:r}=t;return Hj.jsx(eQ,Object.assign({elevation:2},{children:Hj.jsxs(zG,Object.assign({mb:2,p:2},{children:[Hj.jsx(WX,Object.assign({variant:"h6"},{children:r(HC.ErrorsLabel)})),Hj.jsx(rY,Object.assign({dense:!0},{children:e.map(((e,t)=>Hj.jsxs(dZ,{children:[Hj.jsx(gZ,{children:Hj.jsx(GX,{color:"error"})}),Hj.jsx(_Z,{primary:e.stack})]},t)))}))]}))}))}var kZ={},EZ=mV;Object.defineProperty(kZ,"__esModule",{value:!0});var jZ=kZ.default=void 0,CZ=EZ(FH()),OZ=Hj,PZ=(0,CZ.default)((0,OZ.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");jZ=kZ.default=PZ;var NZ={},RZ=mV;Object.defineProperty(NZ,"__esModule",{value:!0});var TZ=NZ.default=void 0,AZ=RZ(FH()),IZ=Hj,MZ=(0,AZ.default)((0,IZ.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");TZ=NZ.default=MZ;var FZ={},zZ=mV;Object.defineProperty(FZ,"__esModule",{value:!0});var DZ=FZ.default=void 0,LZ=zZ(FH()),BZ=Hj,VZ=(0,LZ.default)((0,BZ.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");DZ=FZ.default=VZ;var UZ={},WZ=mV;Object.defineProperty(UZ,"__esModule",{value:!0});var qZ=UZ.default=void 0,KZ=WZ(FH()),HZ=Hj,GZ=(0,KZ.default)((0,HZ.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove");function QZ(e){const{icon:t,color:r,uiSchema:n,registry:o}=e,a=ov(e,["icon","color","uiSchema","registry"]);return Hj.jsx(RG,Object.assign({},a,{size:"small",color:r},{children:t}))}function JZ(e){const{registry:{translateString:t}}=e;return Hj.jsx(QZ,Object.assign({title:t(HC.CopyButton)},e,{icon:Hj.jsx(DZ,{fontSize:"small"})}))}function YZ(e){const{registry:{translateString:t}}=e;return Hj.jsx(QZ,Object.assign({title:t(HC.MoveDownButton)},e,{icon:Hj.jsx(jZ,{fontSize:"small"})}))}function XZ(e){const{registry:{translateString:t}}=e;return Hj.jsx(QZ,Object.assign({title:t(HC.MoveUpButton)},e,{icon:Hj.jsx(TZ,{fontSize:"small"})}))}function ZZ(e){const{iconType:t}=e,r=ov(e,["iconType"]),{registry:{translateString:n}}=r;return Hj.jsx(QZ,Object.assign({title:n(HC.RemoveButton)},r,{color:"error",icon:Hj.jsx(qZ,{fontSize:"default"===t?void 0:"small"})}))}function e0(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=jC(r);return Hj.jsx(rY,Object.assign({dense:!0,disablePadding:!0},{children:t.map(((e,t)=>Hj.jsx(dZ,Object.assign({disableGutters:!0},{children:Hj.jsx(JJ,Object.assign({id:n},{children:e}))}),t)))}))}function t0(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=OC(t);return Hj.jsx(JJ,Object.assign({id:n},{children:r}))}function r0(e){const{id:t,children:r,classNames:n,style:o,disabled:a,displayLabel:i,hidden:s,label:l,onDropPropertyClick:u,onKeyChange:c,readonly:d,required:f,rawErrors:p=[],errors:h,help:m,description:v,rawDescription:g,schema:y,uiSchema:b,registry:w}=e,S=Kj("WrapIfAdditionalTemplate",w,_d(b));return s?Hj.jsx("div",Object.assign({style:{display:"none"}},{children:r})):Hj.jsx(S,Object.assign({classNames:n,style:o,disabled:a,id:t,label:l,onDropPropertyClick:u,onKeyChange:c,readonly:d,required:f,schema:y,uiSchema:b,registry:w},{children:Hj.jsxs(UJ,Object.assign({fullWidth:!0,error:!!p.length,required:f},{children:[r,i&&g?Hj.jsx(WX,Object.assign({variant:"caption",color:"textSecondary"},{children:v})):null,h,m]}))}))}function n0(e){const{description:t,title:r,properties:n,required:o,disabled:a,readonly:i,uiSchema:s,idSchema:l,schema:u,formData:c,onAddClick:d,registry:f}=e,p=_d(s),h=Kj("TitleFieldTemplate",f,p),m=Kj("DescriptionFieldTemplate",f,p),{ButtonTemplates:{AddButton:v}}=f.templates;return Hj.jsxs(Hj.Fragment,{children:[r&&Hj.jsx(h,{id:PC(l),title:r,required:o,schema:u,uiSchema:s,registry:f}),t&&Hj.jsx(m,{id:EC(l),description:t,schema:u,uiSchema:s,registry:f}),Hj.jsxs(QG,Object.assign({container:!0,spacing:2,style:{marginTop:"10px"}},{children:[n.map(((e,t)=>e.hidden?e.content:Hj.jsx(QG,Object.assign({item:!0,xs:12,style:{marginBottom:"10px"}},{children:e.content}),t))),$d(u,s,c)&&Hj.jsx(QG,Object.assign({container:!0,justifyContent:"flex-end"},{children:Hj.jsx(QG,Object.assign({item:!0},{children:Hj.jsx(v,{className:"object-property-expand",onClick:d(u),disabled:a||i,uiSchema:s,registry:f})}))}))]}))]})}function o0(e){return ZV("MuiButton",e)}qZ=UZ.default=GZ;var a0=eU("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var i0=a.createContext({});var s0=a.createContext(void 0);const l0=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],u0=e=>yV({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),c0=jH(EG,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${_V(r.color)}`],t[`size${_V(r.size)}`],t[`${r.variant}Size${_V(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return yV({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":yV({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:DK(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:DK(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:DK(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":yV({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${a0.focusVisible}`]:yV({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${a0.disabled}`]:yV({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${DK(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${a0.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${a0.disabled}`]:{boxShadow:"none"}})),d0=jH("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${_V(r.size)}`]]}})((({ownerState:e})=>yV({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},u0(e)))),f0=jH("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${_V(r.size)}`]]}})((({ownerState:e})=>yV({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},u0(e)))),p0=a.forwardRef((function(e,t){const r=a.useContext(i0),n=a.useContext(s0),o=$H({props:GV(r,e),name:"MuiButton"}),{children:i,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:p,focusVisibleClassName:h,fullWidth:m=!1,size:v="medium",startIcon:g,type:y,variant:b="text"}=o,w=tU(o,l0),S=yV({},o,{color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:f,fullWidth:m,size:v,type:y,variant:b}),x=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e;return yV({},i,QV({root:["root",a,`${a}${_V(t)}`,`size${_V(o)}`,`${a}Size${_V(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${_V(o)}`],endIcon:["endIcon",`iconSize${_V(o)}`]},o0,i))})(S),_=g&&Hj.jsx(d0,{className:x.startIcon,ownerState:S,children:g}),$=p&&Hj.jsx(f0,{className:x.endIcon,ownerState:S,children:p}),k=n||"";return Hj.jsxs(c0,yV({ownerState:S,className:nU(r.className,x.root,u,k),component:l,disabled:c,focusRipple:!f,focusVisibleClassName:nU(x.focusVisible,h),ref:t,type:y},w,{classes:x,children:[_,i,$]}))}));var h0=p0;function m0({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=qj(e);return r?null:Hj.jsx(zG,Object.assign({marginTop:3},{children:Hj.jsx(h0,Object.assign({type:"submit",variant:"contained",color:"primary"},n,{children:t}))}))}function v0(e){return ZV("MuiDivider",e)}var g0=eU("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const y0=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],b0=jH("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>yV({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:DK(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>yV({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>yV({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>yV({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>yV({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),w0=jH("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>yV({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),S0=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==i?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=r,p=tU(r,y0),h=yV({},r,{absolute:n,component:i,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return QV({root:["root",t&&"absolute",l,a&&"light","vertical"===i&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},v0,n)})(h);return Hj.jsx(b0,yV({as:i,className:nU(m.root,a),role:c,ref:t,ownerState:h},p,{children:o?Hj.jsx(w0,{className:m.wrapper,ownerState:h,children:o}):null}))}));S0.muiSkipListHighlight=!0;var x0=S0;function _0({id:e,title:t}){return Hj.jsxs(zG,Object.assign({id:e,mb:1,mt:1},{children:[Hj.jsx(WX,Object.assign({variant:"h5"},{children:t})),Hj.jsx(x0,{})]}))}function $0(e){const{children:t,classNames:r,style:n,disabled:o,id:a,label:i,onDropPropertyClick:s,onKeyChange:l,readonly:u,required:c,schema:d,uiSchema:f,registry:p}=e,{templates:h,translateString:m}=p,{RemoveButton:v}=h.ButtonTemplates,g=m(HC.KeyLabel,[i]);if(!(td in d))return Hj.jsx("div",Object.assign({className:r,style:n},{children:t}));return Hj.jsxs(QG,Object.assign({container:!0,alignItems:"center",spacing:2,className:r,style:n},{children:[Hj.jsx(QG,Object.assign({item:!0,xs:!0},{children:Hj.jsx(IX,{fullWidth:!0,required:c,label:g,defaultValue:i,disabled:o||u,id:`${a}-key`,name:`${a}-key`,onBlur:u?void 0:({target:e})=>l(e.value),type:"text"})})),Hj.jsx(QG,Object.assign({item:!0,xs:!0},{children:t})),Hj.jsx(QG,Object.assign({item:!0},{children:Hj.jsx(v,{iconType:"default",style:{flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},disabled:o||u,onClick:s(i),uiSchema:f,registry:p})}))]}),`${a}-key`)}function k0(e){return ZV("PrivateSwitchBase",e)}eU("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const E0=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],j0=jH(EG)((({ownerState:e})=>yV({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),C0=jH("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),O0=a.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:a,defaultChecked:i,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:f,inputRef:p,name:h,onBlur:m,onChange:v,onFocus:g,readOnly:y,required:b=!1,tabIndex:w,type:S,value:x}=e,_=tU(e,E0),[$,k]=AV({controlled:n,default:Boolean(i),name:"SwitchBase",state:"checked"}),E=BQ();let j=s;E&&void 0===j&&(j=E.disabled);const C="checkbox"===S||"radio"===S,O=yV({},e,{checked:$,disabled:j,disableFocusRipple:l,edge:u}),P=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return QV({root:["root",r&&"checked",n&&"disabled",o&&`edge${_V(o)}`],input:["input"]},k0,t)})(O);return Hj.jsxs(j0,yV({component:"span",className:nU(P.root,a),centerRipple:!0,focusRipple:!l,disabled:j,tabIndex:null,role:void 0,onFocus:e=>{g&&g(e),E&&E.onFocus&&E.onFocus(e)},onBlur:e=>{m&&m(e),E&&E.onBlur&&E.onBlur(e)},ownerState:O,ref:t},_,{children:[Hj.jsx(C0,yV({autoFocus:r,checked:n,defaultChecked:i,className:P.input,disabled:j,id:C?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),v&&v(e,t)},readOnly:y,ref:p,required:b,ownerState:O,tabIndex:w,type:S},"checkbox"===S&&void 0===x?{}:{value:x},f)),$?o:c]}))}));var P0=O0,N0=TH(Hj.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),R0=TH(Hj.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),T0=TH(Hj.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function A0(e){return ZV("MuiCheckbox",e)}var I0=eU("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const M0=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],F0=jH(P0,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,"default"!==r.color&&t[`color${_V(r.color)}`]]}})((({theme:e,ownerState:t})=>yV({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:DK("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${I0.checked}, &.${I0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${I0.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),z0=Hj.jsx(R0,{}),D0=Hj.jsx(N0,{}),L0=Hj.jsx(T0,{}),B0=a.forwardRef((function(e,t){var r,n;const o=$H({props:e,name:"MuiCheckbox"}),{checkedIcon:i=z0,color:s="primary",icon:l=D0,indeterminate:u=!1,indeterminateIcon:c=L0,inputProps:d,size:f="medium",className:p}=o,h=tU(o,M0),m=u?c:l,v=u?c:i,g=yV({},o,{color:s,indeterminate:u,size:f}),y=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return yV({},t,QV({root:["root",r&&"indeterminate",`color${_V(n)}`,`size${_V(o)}`]},A0,t))})(g);return Hj.jsx(F0,yV({type:"checkbox",inputProps:yV({"data-indeterminate":u},d),icon:a.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:f}),checkedIcon:a.cloneElement(v,{fontSize:null!=(n=v.props.fontSize)?n:f}),ownerState:g,ref:t,className:nU(y.root,p)},h,{classes:y}))}));var V0=B0;const U0=function(e={}){const{createStyledComponent:t=WK,useThemeProps:r=qK,componentName:n="MuiStack"}=e,o=t(HK),i=a.forwardRef((function(e,t){const a=yK(r(e)),{component:i="div",direction:s="column",spacing:l=0,divider:u,children:c,className:d,useFlexGap:f=!1}=a,p=tU(a,VK),h={direction:s,spacing:l,useFlexGap:f},m=QV({root:["root"]},(e=>ZV(n,e)),{});return Hj.jsx(o,yV({as:i,ownerState:h,ref:t,className:nU(m.root,d)},p,{children:u?KK(c,u):c}))}));return i}({createStyledComponent:jH("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>$H({props:e,name:"MuiStack"})});var W0=U0;function q0(e){return ZV("MuiFormControlLabel",e)}var K0=eU("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const H0=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],G0=jH("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${K0.label}`]:t.label},t.root,t[`labelPlacement${_V(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>yV({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${K0.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${K0.label}`]:{[`&.${K0.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Q0=jH("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${K0.error}`]:{color:(e.vars||e).palette.error.main}}))),J0=a.forwardRef((function(e,t){var r,n;const o=$H({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:d,labelPlacement:f="end",required:p,slotProps:h={}}=o,m=tU(o,H0),v=BQ(),g=null!=(r=null!=u?u:l.props.disabled)?r:null==v?void 0:v.disabled,y=null!=p?p:l.props.required,b={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(b[e]=o[e])}));const w=DQ({props:o,muiFormControl:v,states:["error"]}),S=yV({},o,{disabled:g,labelPlacement:f,required:y,error:w.error}),x=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e;return QV({root:["root",r&&"disabled",`labelPlacement${_V(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]},q0,t)})(S),_=null!=(n=h.typography)?n:s.typography;let $=d;return null==$||$.type===WX||c||($=Hj.jsx(WX,yV({component:"span"},_,{className:nU(x.label,null==_?void 0:_.className),children:$}))),Hj.jsxs(G0,yV({className:nU(x.root,i),ownerState:S,ref:t},m,{children:[a.cloneElement(l,b),y?Hj.jsxs(W0,{direction:"row",alignItems:"center",children:[$,Hj.jsxs(Q0,{ownerState:S,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):$]}))}));var Y0=J0;function X0(e){var t;const{schema:r,id:n,value:o,disabled:a,readonly:i,label:s="",hideLabel:l,autofocus:u,onChange:c,onBlur:d,onFocus:f,registry:p,options:h,uiSchema:m}=e,v=Kj("DescriptionFieldTemplate",p,h),g=FC(r),y=null!==(t=h.description)&&void 0!==t?t:r.description;return Hj.jsxs(Hj.Fragment,{children:[!l&&!!y&&Hj.jsx(v,{id:EC(n),description:y,schema:r,uiSchema:m,registry:p}),Hj.jsx(Y0,{control:Hj.jsx(V0,{id:n,name:n,checked:void 0!==o&&Boolean(o),required:g,disabled:a||i,autoFocus:u,onChange:(e,t)=>c(t),onBlur:({target:{value:e}})=>d(n,e),onFocus:({target:{value:e}})=>f(n,e),"aria-describedby":NC(n)}),label:TC(s,l,!1)})]})}function Z0(e){return ZV("MuiFormGroup",e)}eU("MuiFormGroup",["root","row","error"]);const e1=["className","row"],t1=jH("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((({ownerState:e})=>yV({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"}))),r1=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiFormGroup"}),{className:n,row:o=!1}=r,a=tU(r,e1),i=yV({},r,{row:o,error:DQ({props:r,muiFormControl:BQ(),states:["error"]}).error}),s=(e=>{const{classes:t,row:r,error:n}=e;return QV({root:["root",r&&"row",n&&"error"]},Z0,t)})(i);return Hj.jsx(t1,yV({className:nU(s.root,n),ownerState:i,ref:t},a))}));var n1=r1;function o1({label:e,hideLabel:t,id:r,disabled:n,options:o,value:a,autofocus:i,readonly:s,required:l,onChange:u,onBlur:c,onFocus:d}){const{enumOptions:f,enumDisabled:p,inline:h,emptyValue:m}=o,v=Array.isArray(a)?a:[a],g=e=>({target:{checked:t}})=>{u(t?Lj(e,v,f):Ij(e,v,f))},y=({target:{value:e}})=>c(r,Aj(e,f,m)),b=({target:{value:e}})=>d(r,Aj(e,f,m));return Hj.jsxs(Hj.Fragment,{children:[TC(Hj.jsx(TJ,Object.assign({required:l,htmlFor:r},{children:e||void 0})),t),Hj.jsx(n1,Object.assign({id:r,row:!!h},{children:Array.isArray(f)&&f.map(((e,t)=>{const o=Mj(e.value,v),a=Array.isArray(p)&&-1!==p.indexOf(e.value),l=Hj.jsx(V0,{id:RC(r,t),name:r,checked:o,disabled:n||a||s,autoFocus:i&&0===t,onChange:g(t),onBlur:y,onFocus:b,"aria-describedby":NC(r)});return Hj.jsx(Y0,{control:l,label:e.label},t)}))}))]})}var a1=TH(Hj.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),i1=TH(Hj.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const s1=jH("span")({position:"relative",display:"flex"}),l1=jH(a1)({transform:"scale(1)"}),u1=jH(i1)((({theme:e,ownerState:t})=>yV({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));function c1(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o=yV({},e,{checked:t});return Hj.jsxs(s1,{className:r.root,ownerState:o,children:[Hj.jsx(l1,{fontSize:n,className:r.background,ownerState:o}),Hj.jsx(u1,{fontSize:n,className:r.dot,ownerState:o})]})}var d1=a.createContext(void 0);function f1(e){return ZV("MuiRadio",e)}var p1=eU("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);const h1=["checked","checkedIcon","color","icon","name","onChange","size","className"],m1=jH(P0,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${_V(r.color)}`]]}})((({theme:e,ownerState:t})=>yV({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:DK("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${p1.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${p1.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const v1=Hj.jsx(c1,{checked:!0}),g1=Hj.jsx(c1,{}),y1=a.forwardRef((function(e,t){var r,n;const o=$H({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:s=v1,color:l="primary",icon:u=g1,name:c,onChange:d,size:f="medium",className:p}=o,h=tU(o,h1),m=yV({},o,{color:l,size:f}),v=(e=>{const{classes:t,color:r,size:n}=e;return yV({},t,QV({root:["root",`color${_V(r)}`,"medium"!==n&&`size${_V(n)}`]},f1,t))})(m),g=a.useContext(d1);let y=i;const b=$V(d,g&&g.onChange);let w=c;return g&&(void 0===y&&(y=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(g.value,o.value)),void 0===w&&(w=g.name)),Hj.jsx(m1,yV({type:"radio",icon:a.cloneElement(u,{fontSize:null!=(r=g1.props.fontSize)?r:f}),checkedIcon:a.cloneElement(s,{fontSize:null!=(n=v1.props.fontSize)?n:f}),ownerState:m,classes:v,name:w,checked:y,onChange:b,ref:t,className:nU(v.root,p)},h))}));var b1=y1;const w1=["actions","children","defaultValue","name","onChange","value"],S1=a.forwardRef((function(e,t){const{actions:r,children:n,defaultValue:o,name:i,onChange:s,value:l}=e,u=tU(e,w1),c=a.useRef(null),[d,f]=AV({controlled:l,default:o,name:"RadioGroup"});a.useImperativeHandle(r,(()=>({focus:()=>{let e=c.current.querySelector("input:not(:disabled):checked");e||(e=c.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const p=MV(t,c),h=TV(i),m=a.useMemo((()=>({name:h,onChange(e){f(e.target.value),s&&s(e,e.target.value)},value:d})),[h,s,f,d]);return Hj.jsx(d1.Provider,{value:m,children:Hj.jsx(n1,yV({role:"radiogroup",ref:p},u,{children:n}))})}));var x1=S1;function _1({id:e,options:t,value:r,required:n,disabled:o,readonly:a,label:i,hideLabel:s,onChange:l,onBlur:u,onFocus:c}){var d;const{enumOptions:f,enumDisabled:p,emptyValue:h}=t,m=!!t&&t.inline,v=null!==(d=Fj(r,f))&&void 0!==d?d:null;return Hj.jsxs(Hj.Fragment,{children:[TC(Hj.jsx(TJ,Object.assign({required:n,htmlFor:e},{children:i||void 0})),s),Hj.jsx(x1,Object.assign({id:e,name:e,value:v,row:m,onChange:(e,t)=>l(Aj(t,f,h)),onBlur:({target:{value:t}})=>u(e,Aj(t,f,h)),onFocus:({target:{value:t}})=>c(e,Aj(t,f,h)),"aria-describedby":NC(e)},{children:Array.isArray(f)&&f.map(((t,r)=>{const n=Array.isArray(p)&&-1!==p.indexOf(t.value);return Hj.jsx(Y0,{control:Hj.jsx(b1,{name:e,id:RC(e,r),color:"primary"}),label:t.label,value:String(r),disabled:o||n||a},r)}))}))]})}var $1=e=>!e||!nQ(e);function k1(e){return ZV("MuiSlider",e)}var E1=eU("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);const j1=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function C1(e){return e}const O1=jH("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${_V(r.color)}`],"medium"!==r.size&&t[`size${_V(r.size)}`],r.marked&&t.marked,"vertical"===r.orientation&&t.vertical,"inverted"===r.track&&t.trackInverted,!1===r.track&&t.trackFalse]}})((({theme:e,ownerState:t})=>yV({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&yV({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===t.size&&{height:2},t.marked&&{marginBottom:20}),"vertical"===t.orientation&&yV({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===t.size&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${E1.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${E1.dragging}`]:{[`& .${E1.thumb}, & .${E1.track}`]:{transition:"none"}}}))),P1=jH("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((({ownerState:e})=>yV({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===e.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1}))),N1=jH("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?BK(e.palette[t.color].main,.62):LK(e.palette[t.color].main,.5);return yV({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{border:"none"},"horizontal"===t.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===t.track&&{display:"none"},"inverted"===t.track&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r})})),R1=jH("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${_V(r.color)}`],"medium"!==r.size&&t[`thumbSize${_V(r.size)}`]]}})((({theme:e,ownerState:t})=>yV({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{width:12,height:12},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":yV({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"small"===t.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${E1.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:DK(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${E1.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:DK(e.palette[t.color].main,.16)}`},[`&.${E1.disabled}`]:{"&:hover":{boxShadow:"none"}}}))),T1=jH((function(e){const{children:t,className:r,value:n}=e,o=(e=>{const{open:t}=e;return{offset:nU(t&&E1.valueLabelOpen),circle:E1.valueLabelCircle,label:E1.valueLabelLabel}})(e);return t?a.cloneElement(t,{className:nU(t.props.className)},Hj.jsxs(a.Fragment,{children:[t.props.children,Hj.jsx("span",{className:nU(o.offset,r),"aria-hidden":!0,children:Hj.jsx("span",{className:o.circle,children:Hj.jsx("span",{className:o.label,children:n})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e,ownerState:t})=>yV({[`&.${E1.valueLabelOpen}`]:{transform:("vertical"===t.orientation?"translateY(-50%)":"translateY(-100%)")+" scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:("vertical"===t.orientation?"translateY(-50%)":"translateY(-100%)")+" scale(0)",position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===t.orientation&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===t.orientation&&{right:"small"===t.size?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},"small"===t.size&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}))),A1=jH("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>EH(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})((({theme:e,ownerState:t,markActive:r})=>yV({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}))),I1=jH("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>EH(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e,ownerState:t,markLabelActive:r})=>yV({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===t.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(e.vars||e).palette.text.primary}))),M1=({children:e})=>e,F1=a.forwardRef((function(e,t){var r,n,o,i,s,l,u,c,d,f,p,h,m,v,g,y,b,w,S,x,_,$,k,E;const j=$H({props:e,name:"MuiSlider"}),C="rtl"===AG().direction,{"aria-label":O,"aria-valuetext":P,"aria-labelledby":N,component:R="span",components:T={},componentsProps:A={},color:I="primary",classes:M,className:F,disableSwap:z=!1,disabled:D=!1,getAriaLabel:L,getAriaValueText:B,marks:V=!1,max:U=100,min:W=0,orientation:q="horizontal",size:K="medium",step:H=1,scale:G=C1,slotProps:Q,slots:J,track:Y="normal",valueLabelDisplay:X="off",valueLabelFormat:Z=C1}=j,ee=tU(j,j1),te=yV({},j,{isRtl:C,max:U,min:W,classes:M,disabled:D,disableSwap:z,orientation:q,marks:V,color:I,size:K,step:H,scale:G,track:Y,valueLabelDisplay:X,valueLabelFormat:Z}),{axisProps:re,getRootProps:ne,getHiddenInputProps:oe,getThumbProps:ae,open:ie,active:se,axis:le,focusedThumbIndex:ue,range:ce,dragging:de,marks:fe,values:pe,trackOffset:he,trackLeap:me,getThumbStyle:ve}=TQ(yV({},te,{rootRef:t}));te.marked=fe.length>0&&fe.some((e=>e.label)),te.dragging=de,te.focusedThumbIndex=ue;const ge=(e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:s,size:l}=e;return QV({root:["root",t&&"disabled",r&&"dragging",n&&"marked","vertical"===o&&"vertical","inverted"===a&&"trackInverted",!1===a&&"trackFalse",s&&`color${_V(s)}`,l&&`size${_V(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${_V(l)}`,s&&`thumbColor${_V(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},k1,i)})(te),ye=null!=(r=null!=(n=null==J?void 0:J.root)?n:T.Root)?r:O1,be=null!=(o=null!=(i=null==J?void 0:J.rail)?i:T.Rail)?o:P1,we=null!=(s=null!=(l=null==J?void 0:J.track)?l:T.Track)?s:N1,Se=null!=(u=null!=(c=null==J?void 0:J.thumb)?c:T.Thumb)?u:R1,xe=null!=(d=null!=(f=null==J?void 0:J.valueLabel)?f:T.ValueLabel)?d:T1,_e=null!=(p=null!=(h=null==J?void 0:J.mark)?h:T.Mark)?p:A1,$e=null!=(m=null!=(v=null==J?void 0:J.markLabel)?v:T.MarkLabel)?m:I1,ke=null!=(g=null!=(y=null==J?void 0:J.input)?y:T.Input)?g:"input",Ee=null!=(b=null==Q?void 0:Q.root)?b:A.root,je=null!=(w=null==Q?void 0:Q.rail)?w:A.rail,Ce=null!=(S=null==Q?void 0:Q.track)?S:A.track,Oe=null!=(x=null==Q?void 0:Q.thumb)?x:A.thumb,Pe=null!=(_=null==Q?void 0:Q.valueLabel)?_:A.valueLabel,Ne=null!=($=null==Q?void 0:Q.mark)?$:A.mark,Re=null!=(k=null==Q?void 0:Q.markLabel)?k:A.markLabel,Te=null!=(E=null==Q?void 0:Q.input)?E:A.input,Ae=sQ({elementType:ye,getSlotProps:ne,externalSlotProps:Ee,externalForwardedProps:ee,additionalProps:yV({},$1(ye)&&{as:R}),ownerState:yV({},te,null==Ee?void 0:Ee.ownerState),className:[ge.root,F]}),Ie=sQ({elementType:be,externalSlotProps:je,ownerState:te,className:ge.rail}),Me=sQ({elementType:we,externalSlotProps:Ce,additionalProps:{style:yV({},re[le].offset(he),re[le].leap(me))},ownerState:yV({},te,null==Ce?void 0:Ce.ownerState),className:ge.track}),Fe=sQ({elementType:Se,getSlotProps:ae,externalSlotProps:Oe,ownerState:yV({},te,null==Oe?void 0:Oe.ownerState),className:ge.thumb}),ze=sQ({elementType:xe,externalSlotProps:Pe,ownerState:yV({},te,null==Pe?void 0:Pe.ownerState),className:ge.valueLabel}),De=sQ({elementType:_e,externalSlotProps:Ne,ownerState:te,className:ge.mark}),Le=sQ({elementType:$e,externalSlotProps:Re,ownerState:te,className:ge.markLabel}),Be=sQ({elementType:ke,getSlotProps:oe,externalSlotProps:Te,ownerState:te});return Hj.jsxs(ye,yV({},Ae,{children:[Hj.jsx(be,yV({},Ie)),Hj.jsx(we,yV({},Me)),fe.filter((e=>e.value>=W&&e.value<=U)).map(((e,t)=>{const r=$Q(e.value,W,U),n=re[le].offset(r);let o;return o=!1===Y?-1!==pe.indexOf(e.value):"normal"===Y&&(ce?e.value>=pe[0]&&e.value<=pe[pe.length-1]:e.value<=pe[0])||"inverted"===Y&&(ce?e.value<=pe[0]||e.value>=pe[pe.length-1]:e.value>=pe[0]),Hj.jsxs(a.Fragment,{children:[Hj.jsx(_e,yV({"data-index":t},De,!nQ(_e)&&{markActive:o},{style:yV({},n,De.style),className:nU(De.className,o&&ge.markActive)})),null!=e.label?Hj.jsx($e,yV({"aria-hidden":!0,"data-index":t},Le,!nQ($e)&&{markLabelActive:o},{style:yV({},n,Le.style),className:nU(ge.markLabel,Le.className,o&&ge.markLabelActive),children:e.label})):null]},t)})),pe.map(((e,t)=>{const r=$Q(e,W,U),n=re[le].offset(r),o="off"===X?M1:xe;return Hj.jsx(o,yV({},!nQ(o)&&{valueLabelFormat:Z,valueLabelDisplay:X,value:"function"==typeof Z?Z(G(e),t):Z,index:t,open:ie===t||se===t||"on"===X,disabled:D},ze,{children:Hj.jsx(Se,yV({"data-index":t},Fe,{className:nU(ge.thumb,Fe.className,se===t&&ge.active,ue===t&&ge.focusVisible),style:yV({},n,ve(t),Fe.style),children:Hj.jsx(ke,yV({"data-index":t,"aria-label":L?L(t):O,"aria-valuenow":G(e),"aria-labelledby":N,"aria-valuetext":B?B(G(e),t):P,value:pe[t]},Be))}))}),t)}))]}))}));var z1=F1;function D1(e){const{value:t,readonly:r,disabled:n,onBlur:o,onFocus:a,options:i,schema:s,onChange:l,required:u,label:c,hideLabel:d,id:f}=e,p=Object.assign({value:t,label:c,id:f,name:f},Vj(s));return Hj.jsxs(Hj.Fragment,{children:[TC(Hj.jsx(TJ,Object.assign({required:u,htmlFor:f},{children:c||void 0})),d),Hj.jsx(z1,Object.assign({disabled:n||r,onChange:(e,t)=>{l(null!=t?t:i.emptyValue)},onBlur:({target:{value:e}})=>o(f,e),onFocus:({target:{value:e}})=>a(f,e),valueLabelDisplay:"auto"},p,{"aria-describedby":NC(f)}))]})}function L1(e){return ZV("MuiMenuItem",e)}var B1=eU("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const V1=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],U1=jH(EG,{shouldForwardProp:e=>kH(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>yV({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${B1.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:DK(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${B1.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:DK(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${B1.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:DK(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:DK(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${B1.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${B1.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${g0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${g0.inset}`]:{marginLeft:52},[`& .${bZ.root}`]:{marginTop:0,marginBottom:0},[`& .${bZ.inset}`]:{paddingLeft:36},[`& .${pZ.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&yV({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${pZ.root} svg`]:{fontSize:"1.25rem"}})))),W1=a.forwardRef((function(e,t){const r=$H({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f}=r,p=tU(r,V1),h=a.useContext(YJ),m=a.useMemo((()=>({dense:i||h.dense||!1,disableGutters:l})),[h.dense,i,l]),v=a.useRef(null);PV((()=>{n&&v.current&&v.current.focus()}),[n]);const g=yV({},r,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e;return yV({},i,QV({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},L1,i))})(r),b=MV(v,t);let w;return r.disabled||(w=void 0!==d?d:-1),Hj.jsx(YJ.Provider,{value:m,children:Hj.jsx(U1,yV({ref:b,role:c,tabIndex:w,component:o,focusVisibleClassName:nU(y.focusVisible,u),className:nU(y.root,f)},p,{ownerState:g,classes:y}))})}));var q1=W1;function K1(e){var{schema:t,id:r,name:n,options:o,label:a,hideLabel:i,required:s,disabled:l,placeholder:u,readonly:c,value:d,multiple:f,autofocus:p,onChange:h,onBlur:m,onFocus:v,rawErrors:g=[],registry:y,uiSchema:b,hideError:w,formContext:S}=e,x=ov(e,["schema","id","name","options","label","hideLabel","required","disabled","placeholder","readonly","value","multiple","autofocus","onChange","onBlur","onFocus","rawErrors","registry","uiSchema","hideError","formContext"]);const{enumOptions:_,enumDisabled:$,emptyValue:k}=o,E=(f=void 0!==f&&!!f)?[]:"",j=void 0===d||f&&d.length<1||!f&&d===E,C=Fj(d,_,f);return Hj.jsx(IX,Object.assign({id:r,name:r,label:TC(a||void 0,i,!1),value:j?E:C,required:s,disabled:l||c,autoFocus:p,placeholder:u,error:g.length>0,onChange:({target:{value:e}})=>h(Aj(e,_,k)),onBlur:({target:{value:e}})=>m(r,Aj(e,_,k)),onFocus:({target:{value:e}})=>v(r,Aj(e,_,k))},x,{select:!0,InputLabelProps:Object.assign(Object.assign({},x.InputLabelProps),{shrink:!j}),SelectProps:Object.assign(Object.assign({},x.SelectProps),{multiple:f}),"aria-describedby":NC(r)},{children:Array.isArray(_)&&_.map((({value:e,label:t},r)=>{const n=Array.isArray($)&&-1!==$.indexOf(e);return Hj.jsx(q1,Object.assign({value:String(r),disabled:n},{children:t}),r)}))}))}function H1(e){const{options:t,registry:r}=e,n=Kj("BaseInputTemplate",r,t);let o=5;return"string"!=typeof t.rows&&"number"!=typeof t.rows||(o=t.rows),Hj.jsx(n,Object.assign({},e,{multiline:!0,rows:o}))}function G1(){return{CheckboxWidget:X0,CheckboxesWidget:o1,RadioWidget:_1,RangeWidget:D1,SelectWidget:K1,TextareaWidget:H1}}const Q1=(J1={templates:{ArrayFieldItemTemplate:tQ,ArrayFieldTemplate:rQ,BaseInputTemplate:FX,ButtonTemplates:{AddButton:TG,CopyButton:JZ,MoveDownButton:YZ,MoveUpButton:XZ,RemoveButton:ZZ,SubmitButton:m0},DescriptionFieldTemplate:qX,ErrorListTemplate:$Z,FieldErrorTemplate:e0,FieldHelpTemplate:t0,FieldTemplate:r0,ObjectFieldTemplate:n0,TitleFieldTemplate:_0,WrapIfAdditionalTemplate:$0},widgets:{...G1(),SelectWidget:e=>{const r=G1().SelectWidget;return B.createElement(r,t({},e,{SelectProps:{...e.SelectProps||{},MenuProps:{autoFocus:!1,disableAutoFocusItem:!0,disableEnforceFocus:!0,disableAutoFocus:!0}}}))}}},a.forwardRef(((e,t)=>{var r,{fields:n,widgets:o,templates:a}=e,i=ov(e,["fields","widgets","templates"]);return n=Object.assign(Object.assign({},null==J1?void 0:J1.fields),n),o=Object.assign(Object.assign({},null==J1?void 0:J1.widgets),o),a=Object.assign(Object.assign(Object.assign({},null==J1?void 0:J1.templates),a),{ButtonTemplates:Object.assign(Object.assign({},null===(r=null==J1?void 0:J1.templates)||void 0===r?void 0:r.ButtonTemplates),null==a?void 0:a.ButtonTemplates)}),Hj.jsx(pV,Object.assign({},J1,i,{fields:n,widgets:o,templates:a,ref:t}))})));var J1;function Y1(){const e=frameData.app.context,t=["form-data"];return e.organization_id&&t.push(e.organization_id),e.project_id&&t.push(e.project_id),t.join("-")}const X1={htmlWidget:function(e){const{value:t,options:{content:r}}=e,n=a.useRef();return a.useEffect((()=>{const e=t||r,o=document.createRange().createContextualFragment(e);n.current.append(o)}),[]),B.createElement("div",{ref:n})}};function Z1(e={},t,r){const n=U.createRoot(document.getElementById("form"));if(AP&&AP._data&&AP._data.app&&["modal","editor-right-panel"].includes(AP._data.app.type)){const e=document.getElementById("card");e.style.border="none",e.style.overflow="initial",e.removeAttribute("is-shadowed"),e.setAttribute("without-p",!0),e.parentElement.style.padding="16px",e.parentElement.style.paddingBottom="0px"}n.render(B.createElement(Q1,{widgets:X1,formData:e,validator:Qz,schema:t||window.formSchema,uiSchema:r||window.formUiSchema,onSubmit:e=>{!function(e){document.getElementById("form-loading").style.display="flex",checkOrigin().then((t=>fetch(formPostDataUrl+t+"&id="+Y1(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e,context:frameData.app.context})}))).then(checkResponse).then((e=>{e&&e.message||showToast("Settings successfully saved"),document.getElementById("form-loading").style.display="none",e&&(e.formData||e.formSchema||e.formUiSchema)&&Z1(e.formData,e.formSchema,e.formUiSchema),e&&e.redirect&&(window.location=e.redirect)})).catch((e=>{catchRejection(e,"Can't save settings"),document.getElementById("form-loading").style.display="none"}))}(e.formData)}})),document.getElementById("form-loading").style.display="none"}checkOrigin().then((e=>{const t=new URLSearchParams(frameData.app.context).toString(),r=new URLSearchParams(e+"&id="+Y1());return r.set("context",t),fetch(formGetDataUrl+"?"+r.toString(),{method:"GET"})})).then(checkResponse).catch((e=>catchRejection(e,"Can't load saved settings"))).then((e=>{Z1(e.formData,e.formSchema,e.formUiSchema)})).catch((()=>Z1({})))}();
136
+ `),dG.rippleVisible,yG,550,(({theme:e})=>e.transitions.easing.easeInOut),dG.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),dG.child,dG.childLeaving,bG,550,(({theme:e})=>e.transitions.easing.easeInOut),dG.childPulsate,wG,(({theme:e})=>e.transitions.easing.easeInOut)),_G=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,s=aU(r,fG),[l,u]=a.useState([]),c=a.useRef(0),d=a.useRef(null);a.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const f=a.useRef(!1),p=a.useRef(0),h=a.useRef(null),m=a.useRef(null);a.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const v=a.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:a,cb:i}=e;u((e=>[...e,Yj.jsx(xG,{classes:{ripple:sU(o.ripple,dG.ripple),rippleVisible:sU(o.rippleVisible,dG.rippleVisible),ripplePulsate:sU(o.ripplePulsate,dG.ripplePulsate),child:sU(o.child,dG.child),childLeaving:sU(o.childLeaving,dG.childLeaving),childPulsate:sU(o.childPulsate,dG.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:a},c.current)])),c.current+=1,d.current=i}),[o]),g=a.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:a=n||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&f.current)return void(f.current=!1);"touchstart"===(null==e?void 0:e.type)&&(f.current=!0);const s=i?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(a)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{v({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})},p.current=setTimeout((()=>{h.current&&(h.current(),h.current=null)}),80)):v({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[n,v]),y=a.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=a.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void(p.current=setTimeout((()=>{b(e,t)})));h.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return a.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:b})),[y,g,b]),Yj.jsx(SG,xV({className:sU(dG.root,o.root,i),ref:m},s,{children:Yj.jsx(cG,{component:null,exit:!0,children:l})}))}));var $G=_G;function kG(e){return nU("MuiButtonBase",e)}var EG=oU("MuiButtonBase",["root","disabled","focusVisible"]);const jG=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],CG=NH("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${EG.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),OG=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:h,onClick:m,onContextMenu:v,onDragLeave:g,onFocus:y,onFocusVisible:b,onKeyDown:w,onKeyUp:S,onMouseDown:x,onMouseLeave:_,onMouseUp:$,onTouchEnd:k,onTouchMove:E,onTouchStart:j,tabIndex:C=0,TouchRippleProps:O,touchRippleRef:P,type:N}=r,R=aU(r,jG),T=a.useRef(null),A=a.useRef(null),I=LV(A,P),{isFocusVisibleRef:M,onFocus:F,onBlur:z,ref:D}=QV(),[L,B]=a.useState(!1);u&&L&&B(!1),a.useImperativeHandle(n,(()=>({focusVisible:()=>{B(!0),T.current.focus()}})),[]);const[V,U]=a.useState(!1);a.useEffect((()=>{U(!0)}),[]);const W=V&&!c&&!u;function q(e,t,r=d){return DV((n=>{t&&t(n);return!r&&A.current&&A.current[e](n),!0}))}a.useEffect((()=>{L&&f&&!c&&V&&A.current.pulsate()}),[c,f,L,V]);const K=q("start",x),H=q("stop",v),G=q("stop",g),Q=q("stop",$),J=q("stop",(e=>{L&&e.preventDefault(),_&&_(e)})),Y=q("start",j),X=q("stop",k),Z=q("stop",E),ee=q("stop",(e=>{z(e),!1===M.current&&B(!1),h&&h(e)}),!1),te=DV((e=>{T.current||(T.current=e.currentTarget),F(e),!0===M.current&&(B(!0),b&&b(e)),y&&y(e)})),re=()=>{const e=T.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=a.useRef(!1),oe=DV((e=>{f&&!ne.current&&L&&A.current&&" "===e.key&&(ne.current=!0,A.current.stop(e,(()=>{A.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),w&&w(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))})),ae=DV((e=>{f&&" "===e.key&&A.current&&L&&!e.defaultPrevented&&(ne.current=!1,A.current.stop(e,(()=>{A.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(R.href||R.to)&&(ie=p);const se={};"button"===ie?(se.type=void 0===N?"button":N,se.disabled=u):(R.href||R.to||(se.role="button"),u&&(se["aria-disabled"]=u));const le=LV(t,D,T),ue=xV({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:C,focusVisible:L}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=ZV({root:["root",t&&"disabled",r&&"focusVisible"]},kG,o);return r&&n&&(a.root+=` ${n}`),a})(ue);return Yj.jsxs(CG,xV({as:ie,className:sU(ce.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:H,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:K,onMouseLeave:J,onMouseUp:Q,onDragLeave:G,onTouchEnd:X,onTouchMove:Z,onTouchStart:Y,ref:le,tabIndex:u?-1:C,type:N},se,R,{children:[i,W?Yj.jsx($G,xV({ref:I,center:o},O)):null]}))}));var PG=OG;function NG(e){return nU("MuiIconButton",e)}var RG=oU("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const TG=["edge","children","className","color","disabled","disableFocusRipple","size"],AG=NH(PG,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${jV(r.color)}`],r.edge&&t[`edge${jV(r.edge)}`],t[`size${jV(r.size)}`]]}})((({theme:e,ownerState:t})=>xV({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:UK(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return xV({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&xV({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":xV({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:UK(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${RG.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),IG=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:a,color:i="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=aU(r,TG),d=xV({},r,{edge:n,color:i,disabled:s,disableFocusRipple:l,size:u}),f=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e;return ZV({root:["root",r&&"disabled","default"!==n&&`color${jV(n)}`,o&&`edge${jV(o)}`,`size${jV(a)}`]},NG,t)})(d);return Yj.jsx(AG,xV({className:sU(f.root,a),centerRipple:!0,focusRipple:!l,disabled:s,ref:t,ownerState:d},c,{children:o}))}));var MG=IG;function FG(e){var{uiSchema:t,registry:r}=e,n=ov(e,["uiSchema","registry"]);const{translateString:o}=r;return Yj.jsx(MG,Object.assign({title:o(YC.AddItemButton)},n,{color:"primary"},{children:Yj.jsx(UH,{})}))}function zG(){const e=yK(EH);return e[jH]||e}var DG=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const LG=kH(),BG=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=hq("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(pK),s=a.forwardRef((function(e,a){const s=yK(r),l=xK(e),{className:u,component:c="div"}=l,d=aU(l,_K);return Yj.jsx(i,xV({as:c,ref:a,className:sU(u,o?o(n):n),theme:t&&s[t]||s},d))}));return s}({themeId:jH,defaultTheme:LG,defaultClassName:"MuiBox-root",generateClassName:tU.generate});var VG=BG;var UG=a.createContext();function WG(e){return nU("MuiGrid",e)}const qG=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],KG=oU("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...qG.map((e=>`grid-xs-${e}`)),...qG.map((e=>`grid-sm-${e}`)),...qG.map((e=>`grid-md-${e}`)),...qG.map((e=>`grid-lg-${e}`)),...qG.map((e=>`grid-xl-${e}`))]),HG=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function GG(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function QG({breakpoints:e,values:t}){let r="";Object.keys(t).forEach((e=>{""===r&&0!==t[e]&&(r=e)}));const n=Object.keys(e).sort(((t,r)=>e[t]-e[r]));return n.slice(0,n.indexOf(r))}const JG=NH("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{container:n,direction:o,item:a,spacing:i,wrap:s,zeroMinWidth:l,breakpoints:u}=r;let c=[];n&&(c=function(e,t,r={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[r[`spacing-xs-${String(e)}`]];const n=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&n.push(r[`spacing-${t}-${String(o)}`])})),n}(i,u,t));const d=[];return u.forEach((e=>{const n=r[e];n&&d.push(t[`grid-${e}-${String(n)}`])})),[t.root,n&&t.container,a&&t.item,l&&t.zeroMinWidth,...c,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...d]}})((({ownerState:e})=>xV({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return Sq({theme:e},$q({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${KG.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:r,rowSpacing:n}=t;let o={};if(r&&0!==n){const t=$q({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=QG({breakpoints:e.breakpoints.values,values:t})),o=Sq({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${GG(a)}`,[`& > .${KG.item}`]:{paddingTop:GG(a)}}:null!=(o=r)&&o.includes(n)?{}:{marginTop:0,[`& > .${KG.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:r,columnSpacing:n}=t;let o={};if(r&&0!==n){const t=$q({values:n,breakpoints:e.breakpoints.values});let r;"object"==typeof t&&(r=QG({breakpoints:e.breakpoints.values,values:t})),o=Sq({theme:e},t,((t,n)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${GG(a)})`,marginLeft:`-${GG(a)}`,[`& > .${KG.item}`]:{paddingLeft:GG(a)}}:null!=(o=r)&&o.includes(n)?{}:{width:"100%",marginLeft:0,[`& > .${KG.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce(((n,o)=>{let a={};if(t[o]&&(r=t[o]),!r)return n;if(!0===r)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===r)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=$q({values:t.columns,breakpoints:e.breakpoints.values}),s="object"==typeof i?i[o]:i;if(null==s)return n;const l=Math.round(r/s*1e8)/1e6+"%";let u={};if(t.container&&t.item&&0!==t.columnSpacing){const r=e.spacing(t.columnSpacing);if("0px"!==r){const e=`calc(${l} + ${GG(r)})`;u={flexBasis:e,maxWidth:e}}}a=xV({flexBasis:l,flexGrow:0,maxWidth:l},u)}return 0===e.breakpoints.values[o]?Object.assign(n,a):n[e.breakpoints.up(o)]=a,n}),{})}));const YG=e=>{const{classes:t,container:r,direction:n,item:o,spacing:a,wrap:i,zeroMinWidth:s,breakpoints:l}=e;let u=[];r&&(u=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const r=[];return t.forEach((t=>{const n=e[t];if(Number(n)>0){const e=`spacing-${t}-${String(n)}`;r.push(e)}})),r}(a,l));const c=[];l.forEach((t=>{const r=e[t];r&&c.push(`grid-${t}-${String(r)}`)}));return ZV({root:["root",r&&"container",o&&"item",s&&"zeroMinWidth",...u,"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...c]},WG,t)},XG=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiGrid"}),{breakpoints:n}=zG(),o=xK(r),{className:i,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:p,spacing:h=0,wrap:m="wrap",zeroMinWidth:v=!1}=o,g=aU(o,HG),y=p||h,b=l||h,w=a.useContext(UG),S=c?s||12:w,x={},_=xV({},g);n.keys.forEach((e=>{null!=g[e]&&(x[e]=g[e],delete _[e])}));const $=xV({},o,{columns:S,container:c,direction:d,item:f,rowSpacing:y,columnSpacing:b,wrap:m,zeroMinWidth:v,spacing:h},x,{breakpoints:n.keys}),k=YG($);return Yj.jsx(UG.Provider,{value:S,children:Yj.jsx(JG,xV({ownerState:$,className:sU(k.root,i),as:u,ref:t},_))})}));var ZG=XG;function eQ(e){return nU("MuiPaper",e)}oU("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const tQ=["className","component","elevation","square","variant"],rQ=NH("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return xV({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&xV({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${UK("#fff",DG(t.elevation))}, ${UK("#fff",DG(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),nQ=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:a=1,square:i=!1,variant:s="elevation"}=r,l=aU(r,tQ),u=xV({},r,{component:o,elevation:a,square:i,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return ZV({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},eQ,o)})(u);return Yj.jsx(rQ,xV({as:o,ownerState:u,className:sU(c.root,n),ref:t},l))}));var oQ=nQ;function aQ(e){const{children:t,disabled:r,hasToolbar:n,hasCopy:o,hasMoveDown:a,hasMoveUp:i,hasRemove:s,index:l,onCopyIndexClick:u,onDropIndexClick:c,onReorderClick:d,readonly:f,uiSchema:p,registry:h}=e,{CopyButton:m,MoveDownButton:v,MoveUpButton:g,RemoveButton:y}=h.templates.ButtonTemplates,b={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return Yj.jsxs(ZG,Object.assign({container:!0,alignItems:"center"},{children:[Yj.jsx(ZG,Object.assign({item:!0,xs:!0,style:{overflow:"auto"}},{children:Yj.jsx(VG,Object.assign({mb:2},{children:Yj.jsx(oQ,Object.assign({elevation:2},{children:Yj.jsx(VG,Object.assign({p:2},{children:t}))}))}))})),n&&Yj.jsxs(ZG,Object.assign({item:!0},{children:[(i||a)&&Yj.jsx(g,{style:b,disabled:r||f||!i,onClick:d(l,l-1),uiSchema:p,registry:h}),(i||a)&&Yj.jsx(v,{style:b,disabled:r||f||!a,onClick:d(l,l+1),uiSchema:p,registry:h}),o&&Yj.jsx(m,{style:b,disabled:r||f,onClick:u(l),uiSchema:p,registry:h}),s&&Yj.jsx(y,{style:b,disabled:r||f,onClick:c(l),uiSchema:p,registry:h})]}))]}))}function iQ(e){const{canAdd:t,disabled:r,idSchema:n,uiSchema:o,items:a,onAddClick:i,readonly:s,registry:l,required:u,schema:c,title:d}=e,f=_d(o),p=Jj("ArrayFieldDescriptionTemplate",l,f),h=Jj("ArrayFieldItemTemplate",l,f),m=Jj("ArrayFieldTitleTemplate",l,f),{ButtonTemplates:{AddButton:v}}=l.templates;return Yj.jsx(oQ,Object.assign({elevation:2},{children:Yj.jsxs(VG,Object.assign({p:2},{children:[Yj.jsx(m,{idSchema:n,title:f.title||d,schema:c,uiSchema:o,required:u,registry:l}),Yj.jsx(p,{idSchema:n,description:f.description||c.description,schema:c,uiSchema:o,registry:l}),a&&a.map((e=>{var{key:t}=e,r=ov(e,["key"]);return Yj.jsx(h,Object.assign({},r),t)})),t&&Yj.jsx(ZG,Object.assign({container:!0,justifyContent:"flex-end"},{children:Yj.jsx(ZG,Object.assign({item:!0},{children:Yj.jsx(VG,Object.assign({mt:2},{children:Yj.jsx(v,{className:"array-item-add",onClick:i,disabled:r||s,uiSchema:o,registry:l})}))}))}))]}))}))}function sQ(e){return"string"==typeof e}function lQ(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function uQ(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const cQ=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function dQ(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=aU(e,cQ),s=a?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const e=sU(null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),t=xV({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),i=xV({},r,o,n);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=lQ(xV({},o,n)),s=uQ(n),l=uQ(o),u=t(i),c=sU(null==u?void 0:u.className,null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),d=xV({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),f=xV({},u,r,l,s);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}(xV({},i,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||sQ(e)?t:xV({},t,{ownerState:xV({},t.ownerState,r)})}(r,xV({},l,{ref:LV(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const fQ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function pQ(e){const t=[],r=[];return Array.from(e.querySelectorAll(fQ)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function hQ(){return!0}function mQ(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=pQ,isEnabled:s=hQ,open:l}=e,u=a.useRef(!1),c=a.useRef(null),d=a.useRef(null),f=a.useRef(null),p=a.useRef(null),h=a.useRef(!1),m=a.useRef(null),v=LV(t.ref,m),g=a.useRef(null);a.useEffect((()=>{l&&m.current&&(h.current=!r)}),[r,l]),a.useEffect((()=>{if(!l||!m.current)return;const e=NV(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}}),[l]),a.useEffect((()=>{if(!l||!m.current)return;const e=NV(m.current),t=t=>{g.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=i(m.current)),r.length>0){var o,a;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(a=g.current)?void 0:a.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,s,l,i]);const y=e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0};return Yj.jsxs(a.Fragment,{children:[Yj.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),a.cloneElement(t,{ref:v,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Yj.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const vQ=a.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,s]=a.useState(null),l=LV(a.isValidElement(r)?r.ref:null,t);if(AV((()=>{o||s(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),AV((()=>{if(i&&!o)return TV(t,i),()=>{TV(t,null)}}),[t,i,o]),o){if(a.isValidElement(r)){const e={ref:l};return a.cloneElement(r,e)}return Yj.jsx(a.Fragment,{children:r})}return Yj.jsx(a.Fragment,{children:i?W.createPortal(r,i):i})}));function gQ(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yQ(e){return parseInt(RV(e).getComputedStyle(e).paddingRight,10)||0}function bQ(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&gQ(e,o)}))}function wQ(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function SQ(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=NV(e);return t.body===e?RV(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=JV(NV(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${yQ(n)+e}px`;const t=NV(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${yQ(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=NV(n).body;else{const t=n.parentElement,r=RV(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const xQ=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&gQ(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);bQ(t,e.mount,e.modalRef,n,!0);const o=wQ(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=wQ(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=SQ(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=wQ(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&gQ(e.modalRef,t),bQ(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&gQ(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function _Q(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=xQ,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:f}=e,p=a.useRef({}),h=a.useRef(null),m=a.useRef(null),v=LV(m,f),[g,y]=a.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let w=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(w=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),x=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},_=DV((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||NV(h.current).body;o.add(S(),e),m.current&&x()})),$=a.useCallback((()=>o.isTopModal(S())),[o]),k=DV((e=>{h.current=e,e&&(d&&$()?x():m.current&&gQ(m.current,w))})),E=a.useCallback((()=>{o.remove(S(),w)}),[w,o]);a.useEffect((()=>()=>{E()}),[E]),a.useEffect((()=>{d?_():b&&i||E()}),[d,E,b,i,_]);const j=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&$()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},C=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=lQ(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=xV({},r,t);return xV({role:"presentation"},n,{onKeyDown:j(n),ref:v})},getBackdropProps:(e={})=>xV({"aria-hidden":!0},e,{onClick:C(e),open:d}),getTransitionProps:()=>({onEnter:CV((()=>{y(!1),s&&s()}),null==u?void 0:u.props.onEnter),onExited:CV((()=>{y(!0),l&&l(),i&&E()}),null==u?void 0:u.props.onExited)}),rootRef:v,portalRef:k,isTopModal:$,exited:g,hasTransition:b}}function $Q(e,t){return e-t}function kQ(e,t,r){return null==e?t:Math.min(Math.max(t,e),r)}function EQ(e,t){var r;const{index:n}=null!=(r=e.reduce(((e,r,n)=>{const o=Math.abs(t-r);return null===e||o<e.distance||o===e.distance?{distance:o,index:n}:e}),null))?r:{};return n}function jQ(e,t){if(void 0!==t.current&&e.changedTouches){const r=e;for(let e=0;e<r.changedTouches.length;e+=1){const n=r.changedTouches[e];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function CQ(e,t,r){return 100*(e-t)/(r-t)}function OQ(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function PQ({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort($Q)}function NQ({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=NV(e.current);var i;null!=(n=e.current)&&n.contains(a.activeElement)&&Number(null==a||null==(o=a.activeElement)?void 0:o.getAttribute("data-index"))===t||(null==(i=e.current)||i.querySelector(`[type="range"][data-index="${t}"]`).focus());r&&r(t)}function RQ(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t,r=((e,t)=>e===t)){return e.length===t.length&&e.every(((e,n)=>r(e,t[n])))}(e,t)}const TQ={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},AQ=e=>e;let IQ;function MQ(){return void 0===IQ&&(IQ="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),IQ}function FQ(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:l=100,min:u=0,name:c,onChange:d,onChangeCommitted:f,orientation:p="horizontal",rootRef:h,scale:m=AQ,step:v=1,tabIndex:g,value:y}=e,b=a.useRef(),[w,S]=a.useState(-1),[x,_]=a.useState(-1),[$,k]=a.useState(!1),E=a.useRef(0),[j,C]=zV({controlled:y,default:null!=r?r:u,name:"Slider"}),O=d&&((e,t,r)=>{const n=e.nativeEvent||e,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:c}}),d(o,t,r)}),P=Array.isArray(j);let N=P?j.slice().sort($Q):[j];N=N.map((e=>kQ(e,u,l)));const R=!0===s&&null!==v?[...Array(Math.floor((l-u)/v)+1)].map(((e,t)=>({value:u+v*t}))):s||[],T=R.map((e=>e.value)),{isFocusVisibleRef:A,onBlur:I,onFocus:M,ref:F}=QV(),[z,D]=a.useState(-1),L=a.useRef(),B=LV(F,L),V=LV(h,B),U=e=>t=>{var r;const n=Number(t.currentTarget.getAttribute("data-index"));M(t),!0===A.current&&D(n),_(n),null==e||null==(r=e.onFocus)||r.call(e,t)},W=e=>t=>{var r;I(t),!1===A.current&&D(-1),_(-1),null==e||null==(r=e.onBlur)||r.call(e,t)};AV((()=>{var e;n&&L.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[n]),n&&-1!==w&&S(-1),n&&-1!==z&&D(-1);const q=a.useRef();let K=p;i&&"horizontal"===p&&(K+="-reverse");const H=({finger:e,move:t=!1})=>{const{current:r}=L,{width:n,height:a,bottom:i,left:s}=r.getBoundingClientRect();let c,d;if(c=0===K.indexOf("vertical")?(i-e.y)/a:(e.x-s)/n,-1!==K.indexOf("-reverse")&&(c=1-c),d=function(e,t,r){return(r-t)*e+t}(c,u,l),v)d=OQ(d,v,u);else{const e=EQ(T,d);d=T[e]}d=kQ(d,u,l);let f=0;if(P){f=t?q.current:EQ(N,d),o&&(d=kQ(d,N[f-1]||-1/0,N[f+1]||1/0));const e=d;d=PQ({values:N,newValue:d,index:f}),o&&t||(f=d.indexOf(e),q.current=f)}return{newValue:d,activeIndex:f}},G=DV((e=>{const t=jQ(e,b);if(!t)return;if(E.current+=1,"mousemove"===e.type&&0===e.buttons)return void Q(e);const{newValue:r,activeIndex:n}=H({finger:t,move:!0});NQ({sliderRef:L,activeIndex:n,setActive:S}),C(r),!$&&E.current>2&&k(!0),O&&!RQ(r,j)&&O(e,r,n)})),Q=DV((e=>{const t=jQ(e,b);if(k(!1),!t)return;const{newValue:r}=H({finger:t,move:!0});S(-1),"touchend"===e.type&&_(-1),f&&f(e,r),b.current=void 0,Y()})),J=DV((e=>{if(n)return;MQ()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(b.current=t.identifier);const r=jQ(e,b);if(!1!==r){const{newValue:t,activeIndex:n}=H({finger:r});NQ({sliderRef:L,activeIndex:n,setActive:S}),C(t),O&&!RQ(t,j)&&O(e,t,n)}E.current=0;const o=NV(L.current);o.addEventListener("touchmove",G),o.addEventListener("touchend",Q)})),Y=a.useCallback((()=>{const e=NV(L.current);e.removeEventListener("mousemove",G),e.removeEventListener("mouseup",Q),e.removeEventListener("touchmove",G),e.removeEventListener("touchend",Q)}),[Q,G]);a.useEffect((()=>{const{current:e}=L;return e.addEventListener("touchstart",J,{passive:MQ()}),()=>{e.removeEventListener("touchstart",J,{passive:MQ()}),Y()}}),[Y,J]),a.useEffect((()=>{n&&Y()}),[n,Y]);const X=CQ(P?N[0]:u,u,l),Z=CQ(N[N.length-1],u,l)-X,ee=e=>t=>{var r;null==(r=e.onMouseLeave)||r.call(e,t),_(-1)};return{active:w,axis:K,axisProps:TQ,dragging:$,focusedThumbIndex:z,getHiddenInputProps:(r={})=>{var a;const s=lQ(r);var d;const h=xV({},s,{onChange:(d=s||{},e=>{var t;null==(t=d.onChange)||t.call(d,e);const r=Number(e.currentTarget.getAttribute("data-index")),n=N[r],a=T.indexOf(n);let i=e.target.valueAsNumber;if(R&&null==v){const e=T[T.length-1];i=i>e?e:i<T[0]?T[0]:i<n?T[a-1]:T[a+1]}if(i=kQ(i,u,l),P){o&&(i=kQ(i,N[r-1]||-1/0,N[r+1]||1/0));const e=i;i=PQ({values:N,newValue:i,index:r});let t=r;o||(t=i.indexOf(e)),NQ({sliderRef:L,activeIndex:t})}C(i),D(r),O&&!RQ(i,j)&&O(e,i,r),f&&f(e,i)}),onFocus:U(s||{}),onBlur:W(s||{})});return xV({tabIndex:g,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":m(l),"aria-valuemin":m(u),name:c,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(a=e.step)?a:void 0,disabled:n},r,h,{style:xV({},YV,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{const t=lQ(e);var r;const o=xV({},t,{onMouseDown:(r=t||{},e=>{var t;if(null==(t=r.onMouseDown)||t.call(r,e),n)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const o=jQ(e,b);if(!1!==o){const{newValue:t,activeIndex:r}=H({finger:o});NQ({sliderRef:L,activeIndex:r,setActive:S}),C(t),O&&!RQ(t,j)&&O(e,t,r)}E.current=0;const a=NV(L.current);a.addEventListener("mousemove",G),a.addEventListener("mouseup",Q)})});return xV({},e,{ref:V},o)},getThumbProps:(e={})=>{const t=lQ(e);var r;return xV({},e,t,{onMouseOver:(r=t||{},e=>{var t;null==(t=r.onMouseOver)||t.call(r,e);const n=Number(e.currentTarget.getAttribute("data-index"));_(n)}),onMouseLeave:ee(t||{})})},marks:R,open:x,range:P,rootRef:V,trackLeap:Z,trackOffset:X,values:N,getThumbStyle:e=>({pointerEvents:-1!==w&&w!==e?"none":void 0})}}const zQ=["onChange","maxRows","minRows","style","value"];function DQ(e){return parseInt(e,10)||0}const LQ={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function BQ(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const VQ=a.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:s}=e,l=aU(e,zQ),{current:u}=a.useRef(null!=s),c=a.useRef(null),d=LV(t,c),f=a.useRef(null),p=a.useRef(0),[h,m]=a.useState({outerHeightStyle:0}),v=a.useCallback((()=>{const t=c.current,r=RV(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const a=f.current;a.style.width=r.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=r.boxSizing,s=DQ(r.paddingBottom)+DQ(r.paddingTop),l=DQ(r.borderBottomWidth)+DQ(r.borderTopWidth),u=a.scrollHeight;a.value="x";const d=a.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),n&&(p=Math.min(Number(n)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===i?s+l:0),overflow:Math.abs(p-u)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},y=a.useCallback((()=>{const e=v();BQ(e)||m((t=>g(t,e)))}),[v]);AV((()=>{const e=()=>{p.current=0,(()=>{const e=v();BQ(e)||W.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=OV(e),r=c.current,n=RV(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[v]),AV((()=>{y()})),a.useEffect((()=>{p.current=0}),[s]);return Yj.jsxs(a.Fragment,{children:[Yj.jsx("textarea",xV({value:s,onChange:e=>{p.current=0,u||y(),r&&r(e)},ref:d,rows:o,style:xV({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},i)},l)),Yj.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:xV({},LQ,i,{paddingTop:0,paddingBottom:0})})]})}));function UQ({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}var WQ=a.createContext(void 0);function qQ(){return a.useContext(WQ)}function KQ(e){return Yj.jsx(bK,xV({},e,{defaultTheme:EH,themeId:jH}))}function HQ(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function GQ(e,t=!1){return e&&(HQ(e.value)&&""!==e.value||t&&HQ(e.defaultValue)&&""!==e.defaultValue)}function QQ(e){return nU("MuiInputBase",e)}var JQ=oU("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const YQ=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],XQ=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${jV(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ZQ=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},eJ=NH("div",{name:"MuiInputBase",slot:"Root",overridesResolver:XQ})((({theme:e,ownerState:t})=>xV({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${JQ.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&xV({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),tJ=NH("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ZQ})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=xV({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return xV({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${JQ.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${JQ.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),rJ=Yj.jsx(KQ,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),nJ=a.forwardRef((function(e,t){var r;const n=CH({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:m=!1,id:v,inputComponent:g="input",inputProps:y={},inputRef:b,maxRows:w,minRows:S,multiline:x=!1,name:_,onBlur:$,onChange:k,onClick:E,onFocus:j,onKeyDown:C,onKeyUp:O,placeholder:P,readOnly:N,renderSuffix:R,rows:T,slotProps:A={},slots:I={},startAdornment:M,type:F="text",value:z}=n,D=aU(n,YQ),L=null!=y.value?y.value:z,{current:B}=a.useRef(null!=L),V=a.useRef(),U=a.useCallback((e=>{}),[]),W=LV(V,b,y.ref,U),[q,K]=a.useState(!1),H=qQ(),G=UQ({props:n,muiFormControl:H,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=H?H.focused:q,a.useEffect((()=>{!H&&f&&q&&(K(!1),$&&$())}),[H,f,q,$]);const Q=H&&H.onFilled,J=H&&H.onEmpty,Y=a.useCallback((e=>{GQ(e)?Q&&Q():J&&J()}),[Q,J]);AV((()=>{B&&Y({value:L})}),[L,Y,B]);a.useEffect((()=>{Y(V.current)}),[]);let X=g,Z=y;x&&"input"===X&&(Z=xV(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:w,minRows:S},Z),X=VQ);a.useEffect((()=>{H&&H.setAdornedStart(Boolean(M))}),[H,M]);const ee=xV({},n,{color:G.color||"primary",disabled:G.disabled,endAdornment:h,error:G.error,focused:G.focused,formControl:H,fullWidth:m,hiddenLabel:G.hiddenLabel,multiline:x,size:G.size,startAdornment:M,type:F}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:h}=e;return ZV({root:["root",`color${jV(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl",f&&"medium"!==f&&`size${jV(f)}`,c&&"multiline",p&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},QQ,t)})(ee),re=I.root||u.Root||eJ,ne=A.root||c.root||{},oe=I.input||u.Input||tJ;return Z=xV({},Z,null!=(r=A.input)?r:c.input),Yj.jsxs(a.Fragment,{children:[!p&&rJ,Yj.jsxs(re,xV({},ne,!sQ(re)&&{ownerState:xV({},ee,ne.ownerState)},{ref:t,onClick:e=>{V.current&&e.currentTarget===e.target&&V.current.focus(),E&&E(e)}},D,{className:sU(te.root,ne.className,l,N&&"MuiInputBase-readOnly"),children:[M,Yj.jsx(WQ.Provider,{value:null,children:Yj.jsx(oe,xV({ownerState:ee,"aria-invalid":G.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:d,disabled:G.disabled,id:v,onAnimationStart:e=>{Y("mui-auto-fill-cancel"===e.animationName?V.current:{value:"x"})},name:_,placeholder:P,readOnly:N,required:G.required,rows:T,value:L,onKeyDown:C,onKeyUp:O,type:F},Z,!sQ(oe)&&{as:X,ownerState:xV({},ee,Z.ownerState)},{ref:W,className:sU(te.input,Z.className,N&&"MuiInputBase-readOnly"),onBlur:e=>{$&&$(e),y.onBlur&&y.onBlur(e),H&&H.onBlur?H.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!B){const t=e.target||V.current;if(null==t)throw new Error(EV(1));Y({value:t.value})}y.onChange&&y.onChange(e,...t),k&&k(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(j&&j(e),y.onFocus&&y.onFocus(e),H&&H.onFocus?H.onFocus(e):K(!0))}}))}),h,R?R(xV({},G,{startAdornment:M})):null]}))]})}));var oJ=nJ;function aJ(e){return nU("MuiInput",e)}var iJ=xV({},JQ,oU("MuiInput",["root","underline","input"]));const sJ=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],lJ=NH(eJ,{shouldForwardProp:e=>OH(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...XQ(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),xV({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${iJ.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${iJ.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${iJ.disabled}, .${iJ.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${iJ.disabled}:before`]:{borderBottomStyle:"dotted"}})})),uJ=NH(tJ,{name:"MuiInput",slot:"Input",overridesResolver:ZQ})({}),cJ=a.forwardRef((function(e,t){var r,n,o,a;const i=CH({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:p,slots:h={},type:m="text"}=i,v=aU(i,sJ),g=(e=>{const{classes:t,disableUnderline:r}=e;return xV({},t,ZV({root:["root",!r&&"underline"],input:["input"]},aJ,t))})(i),y={root:{ownerState:{disableUnderline:s}}},b=(null!=p?p:u)?kV(null!=p?p:u,y):y,w=null!=(r=null!=(n=h.root)?n:l.Root)?r:lJ,S=null!=(o=null!=(a=h.input)?a:l.Input)?o:uJ;return Yj.jsx(oJ,xV({slots:{root:w,input:S},slotProps:b,fullWidth:c,inputComponent:d,multiline:f,ref:t,type:m},v,{classes:g}))}));cJ.muiName="Input";var dJ=cJ;function fJ(e){return nU("MuiFilledInput",e)}var pJ=xV({},JQ,oU("MuiFilledInput",["root","underline","input"]));const hJ=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],mJ=NH(eJ,{shouldForwardProp:e=>OH(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...XQ(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return xV({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${pJ.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${pJ.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${pJ.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pJ.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${pJ.disabled}, .${pJ.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${pJ.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&xV({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),vJ=NH(tJ,{name:"MuiFilledInput",slot:"Input",overridesResolver:ZQ})((({theme:e,ownerState:t})=>xV({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),gJ=a.forwardRef((function(e,t){var r,n,o,a;const i=CH({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:f,slots:p={},type:h="text"}=i,m=aU(i,hJ),v=xV({},i,{fullWidth:u,inputComponent:c,multiline:d,type:h}),g=(e=>{const{classes:t,disableUnderline:r}=e;return xV({},t,ZV({root:["root",!r&&"underline"],input:["input"]},fJ,t))})(i),y={root:{ownerState:v},input:{ownerState:v}},b=(null!=f?f:l)?kV(null!=f?f:l,y):y,w=null!=(r=null!=(n=p.root)?n:s.Root)?r:mJ,S=null!=(o=null!=(a=p.input)?a:s.Input)?o:vJ;return Yj.jsx(oJ,xV({slots:{root:w,input:S},componentsProps:b,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:g}))}));gJ.muiName="Input";var yJ,bJ=gJ;const wJ=["children","classes","className","label","notched"],SJ=NH("fieldset",{shouldForwardProp:OH})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),xJ=NH("legend",{shouldForwardProp:OH})((({ownerState:e,theme:t})=>xV({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&xV({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));function _J(e){return nU("MuiOutlinedInput",e)}var $J=xV({},JQ,oU("MuiOutlinedInput",["root","notchedOutline","input"]));const kJ=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],EJ=NH(eJ,{shouldForwardProp:e=>OH(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:XQ})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return xV({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$J.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$J.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${$J.focused} .${$J.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$J.error} .${$J.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$J.disabled} .${$J.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&xV({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),jJ=NH((function(e){const{className:t,label:r,notched:n}=e,o=aU(e,wJ),a=null!=r&&""!==r,i=xV({},e,{notched:n,withLabel:a});return Yj.jsx(SJ,xV({"aria-hidden":!0,className:t,ownerState:i},o,{children:Yj.jsx(xJ,{ownerState:i,children:a?Yj.jsx("span",{children:r}):yJ||(yJ=Yj.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),CJ=NH(tJ,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ZQ})((({theme:e,ownerState:t})=>xV({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),OJ=a.forwardRef((function(e,t){var r,n,o,i,s;const l=CH({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:p=!1,notched:h,slots:m={},type:v="text"}=l,g=aU(l,kJ),y=(e=>{const{classes:t}=e;return xV({},t,ZV({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},_J,t))})(l),b=qQ(),w=UQ({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=xV({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:b,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:p,size:w.size,type:v}),x=null!=(r=null!=(n=m.root)?n:u.Root)?r:EJ,_=null!=(o=null!=(i=m.input)?i:u.Input)?o:CJ;return Yj.jsx(oJ,xV({slots:{root:x,input:_},renderSuffix:e=>Yj.jsx(jJ,{ownerState:S,className:y.notchedOutline,label:null!=f&&""!==f&&w.required?s||(s=Yj.jsxs(a.Fragment,{children:[f," ","*"]})):f,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:p,ref:t,type:v},g,{classes:xV({},y,{notchedOutline:null})}))}));OJ.muiName="Input";var PJ=OJ;function NJ(e){return nU("MuiFormLabel",e)}var RJ=oU("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);const TJ=["children","className","color","component","disabled","error","filled","focused","required"],AJ=NH("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>xV({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>xV({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${RJ.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${RJ.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${RJ.error}`]:{color:(e.vars||e).palette.error.main}}))),IJ=NH("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${RJ.error}`]:{color:(e.vars||e).palette.error.main}}))),MJ=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiFormLabel"}),{children:n,className:o,component:a="label"}=r,i=aU(r,TJ),s=UQ({props:r,muiFormControl:qQ(),states:["color","required","focused","disabled","error","filled"]}),l=xV({},r,{color:s.color||"primary",component:a,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),u=(e=>{const{classes:t,color:r,focused:n,disabled:o,error:a,filled:i,required:s}=e;return ZV({root:["root",`color${jV(r)}`,o&&"disabled",a&&"error",i&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]},NJ,t)})(l);return Yj.jsxs(AJ,xV({as:a,ownerState:l,className:sU(u.root,o),ref:t},i,{children:[n,s.required&&Yj.jsxs(IJ,{ownerState:l,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))}));var FJ=MJ;function zJ(e){return nU("MuiInputLabel",e)}oU("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const DJ=["disableAnimation","margin","shrink","variant","className"],LJ=NH(FJ,{shouldForwardProp:e=>OH(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${RJ.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})((({theme:e,ownerState:t})=>xV({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&xV({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&xV({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&xV({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"})))),BJ=a.forwardRef((function(e,t){const r=CH({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:a}=r,i=aU(r,DJ),s=qQ();let l=o;void 0===l&&s&&(l=s.filled||s.focused||s.adornedStart);const u=UQ({props:r,muiFormControl:s,states:["size","variant","required","focused"]}),c=xV({},r,{disableAnimation:n,formControl:s,shrink:l,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),d=(e=>{const{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:s}=e;return xV({},t,ZV({root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&"normal"!==n&&`size${jV(n)}`,i],asterisk:[s&&"asterisk"]},zJ,t))})(c);return Yj.jsx(LJ,xV({"data-shrink":l,ownerState:c,ref:t,className:sU(d.root,a)},i,{classes:d}))}));var VJ=BJ;function UJ(e){return nU("MuiFormControl",e)}oU("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const WJ=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],qJ=NH("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>xV({},t.root,t[`margin${jV(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>xV({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"}))),KJ=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiFormControl"}),{children:n,className:o,color:i="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:p="none",required:h=!1,size:m="medium",variant:v="outlined"}=r,g=aU(r,WJ),y=xV({},r,{color:i,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:f,margin:p,required:h,size:m,variant:v}),b=(e=>{const{classes:t,margin:r,fullWidth:n}=e;return ZV({root:["root","none"!==r&&`margin${jV(r)}`,n&&"fullWidth"]},UJ,t)})(y),[w,S]=a.useState((()=>{let e=!1;return n&&a.Children.forEach(n,(t=>{if(!PV(t,["Input","Select"]))return;const r=PV(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)})),e})),[x,_]=a.useState((()=>{let e=!1;return n&&a.Children.forEach(n,(t=>{PV(t,["Input","Select"])&&(GQ(t.props,!0)||GQ(t.props.inputProps,!0))&&(e=!0)})),e})),[$,k]=a.useState(!1);l&&$&&k(!1);const E=void 0===c||l?$:c;let j;const C=a.useMemo((()=>({adornedStart:w,setAdornedStart:S,color:i,disabled:l,error:u,filled:x,focused:E,fullWidth:d,hiddenLabel:f,size:m,onBlur:()=>{k(!1)},onEmpty:()=>{_(!1)},onFilled:()=>{_(!0)},onFocus:()=>{k(!0)},registerEffect:j,required:h,variant:v})),[w,i,l,u,x,E,d,f,j,h,m,v]);return Yj.jsx(WQ.Provider,{value:C,children:Yj.jsx(qJ,xV({as:s,ownerState:y,className:sU(b.root,o),ref:t},g,{children:n}))})}));var HJ=KJ;function GJ(e){return nU("MuiFormHelperText",e)}var QJ,JJ=oU("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);const YJ=["children","className","component","disabled","error","filled","focused","margin","required","variant"],XJ=NH("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${jV(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})((({theme:e,ownerState:t})=>xV({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${JJ.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${JJ.error}`]:{color:(e.vars||e).palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14}))),ZJ=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:a="p"}=r,i=aU(r,YJ),s=UQ({props:r,muiFormControl:qQ(),states:["variant","size","disabled","error","filled","focused","required"]}),l=xV({},r,{component:a,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),u=(e=>{const{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:s,required:l}=e;return ZV({root:["root",o&&"disabled",a&&"error",n&&`size${jV(n)}`,r&&"contained",s&&"focused",i&&"filled",l&&"required"]},GJ,t)})(l);return Yj.jsx(XJ,xV({as:a,ownerState:l,className:sU(u.root,o),ref:t},i,{children:" "===n?QJ||(QJ=Yj.jsx("span",{className:"notranslate",children:"​"})):n}))}));var eY=ZJ;var tY=a.createContext({});function rY(e){return nU("MuiList",e)}oU("MuiList",["root","padding","dense","subheader"]);const nY=["children","className","component","dense","disablePadding","subheader"],oY=NH("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>xV({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),aY=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=aU(r,nY),d=a.useMemo((()=>({dense:s})),[s]),f=xV({},r,{component:i,dense:s,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ZV({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},rY,t)})(f);return Yj.jsx(tY.Provider,{value:d,children:Yj.jsxs(oY,xV({as:i,className:sU(p.root,o),ref:t,ownerState:f},c,{children:[u,n]}))})}));var iY=aY;const sY=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lY(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function uY(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function cY(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function dY(e,t,r,n,o,a){let i=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&cY(s,a)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const fY=a.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,f=aU(e,sY),p=a.useRef(null),h=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});AV((()=>{n&&p.current.focus()}),[n]),a.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${JV(NV(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=LV(p,t);let v=-1;a.Children.forEach(i,((e,t)=>{a.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===v)&&(v=t),v===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(v+=1,v>=i.length&&(v=-1))):v===t&&(v+=1,v>=i.length&&(v=-1))}));const g=a.Children.map(i,((e,t)=>{if(t===v){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),a.cloneElement(e,t)}return e}));return Yj.jsx(iY,xV({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=p.current,r=e.key,n=NV(t).activeElement;if("ArrowDown"===r)e.preventDefault(),dY(t,n,u,l,lY);else if("ArrowUp"===r)e.preventDefault(),dY(t,n,u,l,uY);else if("Home"===r)e.preventDefault(),dY(t,null,u,l,lY);else if("End"===r)e.preventDefault(),dY(t,null,u,l,uY);else if(1===r.length){const o=h.current,a=r.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=n&&!o.repeating&&cY(n,o);o.previousKeyMatched&&(s||dY(t,n,!1,l,lY,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},f,{children:g}))}));var pY=fY;const hY=e=>e.scrollTop;function mY(e,t){var r,n;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(r=i.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=i.transitionTimingFunction)?n:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}const vY=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function gY(e){return`scale(${e}, ${e**2})`}const yY={entering:{opacity:1,transform:gY(1)},entered:{opacity:1,transform:"none"}},bY="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),wY=a.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:p,style:h,timeout:m="auto",TransitionComponent:v=oG}=e,g=aU(e,vY),y=a.useRef(),b=a.useRef(),w=zG(),S=a.useRef(null),x=LV(S,o.ref,t),_=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},$=_(c),k=_(((e,t)=>{hY(e);const{duration:r,delay:n,easing:o}=mY({style:h,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=r,e.style.transition=[w.transitions.create("opacity",{duration:a,delay:n}),w.transitions.create("transform",{duration:bY?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),E=_(u),j=_(p),C=_((e=>{const{duration:t,delay:r,easing:n}=mY({style:h,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=w.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[w.transitions.create("opacity",{duration:o,delay:r}),w.transitions.create("transform",{duration:bY?o:.666*o,delay:bY?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=gY(.75),d&&d(e)})),O=_(f);return a.useEffect((()=>()=>{clearTimeout(y.current)}),[]),Yj.jsx(v,xV({appear:n,in:s,nodeRef:S,onEnter:k,onEntered:E,onEntering:$,onExit:C,onExited:O,onExiting:j,addEndListener:e=>{"auto"===m&&(y.current=setTimeout(e,b.current||0)),r&&r(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>a.cloneElement(o,xV({style:xV({opacity:0,transform:gY(.75),visibility:"exited"!==e||s?void 0:"hidden"},yY[e],h,o.props.style),ref:x},t))}))}));wY.muiSupportAuto=!0;var SY=wY;const xY=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],_Y={entering:{opacity:1},entered:{opacity:1}},$Y=a.forwardRef((function(e,t){const r=zG(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:m,style:v,timeout:g=n,TransitionComponent:y=oG}=e,b=aU(e,xY),w=a.useRef(null),S=LV(w,s.ref,t),x=e=>t=>{if(e){const r=w.current;void 0===t?e(r):e(r,t)}},_=x(f),$=x(((e,t)=>{hY(e);const n=mY({style:v,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),k=x(d),E=x(m),j=x((e=>{const t=mY({style:v,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),C=x(h);return Yj.jsx(y,xV({appear:i,in:u,nodeRef:w,onEnter:$,onEntered:k,onEntering:_,onExit:j,onExited:C,onExiting:E,addEndListener:e=>{o&&o(w.current,e)},timeout:g},b,{children:(e,t)=>a.cloneElement(s,xV({style:xV({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},_Y[e],v,s.props.style),ref:S},t))}))}));var kY=$Y;function EY(e){return nU("MuiBackdrop",e)}oU("MuiBackdrop",["root","invisible"]);const jY=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],CY=NH("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>xV({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),OY=a.forwardRef((function(e,t){var r,n,o;const a=CH({props:e,name:"MuiBackdrop"}),{children:i,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:f,slotProps:p={},slots:h={},TransitionComponent:m=kY,transitionDuration:v}=a,g=aU(a,jY),y=xV({},a,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e;return ZV({root:["root",r&&"invisible"]},EY,t)})(y),w=null!=(r=p.root)?r:c.root;return Yj.jsx(m,xV({in:f,timeout:v},g,{children:Yj.jsx(CY,xV({"aria-hidden":!0},w,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:sU(b.root,s,null==w?void 0:w.className),ownerState:xV({},y,null==w?void 0:w.ownerState),classes:b,ref:t,children:i}))}))}));var PY=OY;function NY(e){return nU("MuiModal",e)}oU("MuiModal",["root","hidden","backdrop"]);const RY=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],TY=NH("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>xV({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),AY=NH(PY,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),IY=a.forwardRef((function(e,t){var r,n,o,i,s,l;const u=CH({name:"MuiModal",props:e}),{BackdropComponent:c=AY,BackdropProps:d,className:f,closeAfterTransition:p=!1,children:h,container:m,component:v,components:g={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:x=!1,disableRestoreFocus:_=!1,disableScrollLock:$=!1,hideBackdrop:k=!1,keepMounted:E=!1,onBackdropClick:j,open:C,slotProps:O,slots:P}=u,N=aU(u,RY),R=xV({},u,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:x,disableRestoreFocus:_,disableScrollLock:$,hideBackdrop:k,keepMounted:E}),{getRootProps:T,getBackdropProps:A,getTransitionProps:I,portalRef:M,isTopModal:F,exited:z,hasTransition:D}=_Q(xV({},R,{rootRef:t})),L=xV({},R,{exited:z}),B=(e=>{const{open:t,exited:r,classes:n}=e;return ZV({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},NY,n)})(L),V={};if(void 0===h.props.tabIndex&&(V.tabIndex="-1"),D){const{onEnter:e,onExited:t}=I();V.onEnter=e,V.onExited=t}const U=null!=(r=null!=(n=null==P?void 0:P.root)?n:g.Root)?r:TY,W=null!=(o=null!=(i=null==P?void 0:P.backdrop)?i:g.Backdrop)?o:c,q=null!=(s=null==O?void 0:O.root)?s:y.root,K=null!=(l=null==O?void 0:O.backdrop)?l:y.backdrop,H=dQ({elementType:U,externalSlotProps:q,externalForwardedProps:N,getSlotProps:T,additionalProps:{ref:t,as:v},ownerState:L,className:sU(f,null==q?void 0:q.className,null==B?void 0:B.root,!L.open&&L.exited&&(null==B?void 0:B.hidden))}),G=dQ({elementType:W,externalSlotProps:K,additionalProps:d,getSlotProps:e=>A(xV({},e,{onClick:t=>{j&&j(t),null!=e&&e.onClick&&e.onClick(t)}})),className:sU(null==K?void 0:K.className,null==d?void 0:d.className,null==B?void 0:B.backdrop),ownerState:L});return E||C||D&&!z?Yj.jsx(vQ,{ref:M,container:m,disablePortal:x,children:Yj.jsxs(U,xV({},H,{children:[!k&&c?Yj.jsx(W,xV({},G)):null,Yj.jsx(mQ,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:_,isEnabled:F,open:C,children:a.cloneElement(h,V)})]}))}):null}));var MY=IY;function FY(e){return nU("MuiPopover",e)}oU("MuiPopover",["root","paper"]);const zY=["onEntering"],DY=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],LY=["slotProps"];function BY(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function VY(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function UY(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function WY(e){return"function"==typeof e?e():e}const qY=NH(MY,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),KY=NH(oQ,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),HY=a.forwardRef((function(e,t){var r,n,o;const i=CH({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:p,container:h,elevation:m=8,marginThreshold:v=16,open:g,PaperProps:y={},slots:b,slotProps:w,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:x=SY,transitionDuration:_="auto",TransitionProps:{onEntering:$}={},disableScrollLock:k=!1}=i,E=aU(i.TransitionProps,zY),j=aU(i,DY),C=null!=(r=null==w?void 0:w.paper)?r:y,O=a.useRef(),P=LV(O,C.ref),N=xV({},i,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:v,externalPaperSlotProps:C,transformOrigin:S,TransitionComponent:x,transitionDuration:_,TransitionProps:E}),R=(e=>{const{classes:t}=e;return ZV({root:["root"],paper:["paper"]},FY,t)})(N),T=a.useCallback((()=>{if("anchorPosition"===d)return c;const e=WY(l),t=(e&&1===e.nodeType?e:NV(O.current).body).getBoundingClientRect();return{top:t.top+BY(t,u.vertical),left:t.left+VY(t,u.horizontal)}}),[l,u.horizontal,u.vertical,c,d]),A=a.useCallback((e=>({vertical:BY(e,S.vertical),horizontal:VY(e,S.horizontal)})),[S.horizontal,S.vertical]),I=a.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=A(t);if("none"===d)return{top:null,left:null,transformOrigin:UY(r)};const n=T();let o=n.top-r.vertical,a=n.left-r.horizontal;const i=o+t.height,s=a+t.width,u=RV(WY(l)),c=u.innerHeight-v,f=u.innerWidth-v;if(null!==v&&o<v){const e=o-v;o-=e,r.vertical+=e}else if(null!==v&&i>c){const e=i-c;o-=e,r.vertical+=e}if(null!==v&&a<v){const e=a-v;a-=e,r.horizontal+=e}else if(s>f){const e=s-f;a-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:UY(r)}}),[l,d,T,A,v]),[M,F]=a.useState(g),z=a.useCallback((()=>{const e=O.current;if(!e)return;const t=I(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,F(!0)}),[I]);a.useEffect((()=>(k&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,k,z]);a.useEffect((()=>{g&&z()})),a.useImperativeHandle(s,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),a.useEffect((()=>{if(!g)return;const e=OV((()=>{z()})),t=RV(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let D=_;"auto"!==_||x.muiSupportAuto||(D=void 0);const L=h||(l?NV(WY(l)).body:void 0),B=null!=(n=null==b?void 0:b.root)?n:qY,V=null!=(o=null==b?void 0:b.paper)?o:KY,U=dQ({elementType:V,externalSlotProps:xV({},C,{style:M?C.style:xV({},C.style,{opacity:0})}),additionalProps:{elevation:m,ref:P},ownerState:N,className:sU(R.paper,null==C?void 0:C.className)}),W=dQ({elementType:B,externalSlotProps:(null==w?void 0:w.root)||{},externalForwardedProps:j,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:L,open:g},ownerState:N,className:sU(R.root,p)}),{slotProps:q}=W,K=aU(W,LY);return Yj.jsx(B,xV({},K,!sQ(B)&&{slotProps:q,disableScrollLock:k},{children:Yj.jsx(x,xV({appear:!0,in:g,onEntering:(e,t)=>{$&&$(e,t),z()},onExited:()=>{F(!1)},timeout:D},E,{children:Yj.jsx(V,xV({},U,{children:f}))}))}))}));var GY=HY;function QY(e){return nU("MuiMenu",e)}oU("MuiMenu",["root","paper","list"]);const JY=["onEntering"],YY=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],XY={vertical:"top",horizontal:"right"},ZY={vertical:"top",horizontal:"left"},eX=NH(GY,{shouldForwardProp:e=>OH(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tX=NH(KY,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),rX=NH(pY,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),nX=a.forwardRef((function(e,t){var r,n;const o=CH({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:f,PaperProps:p={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:v}={},variant:g="selectedMenu",slots:y={},slotProps:b={}}=o,w=aU(o.TransitionProps,JY),S=aU(o,YY),x=zG(),_="rtl"===x.direction,$=xV({},o,{autoFocus:i,disableAutoFocusItem:u,MenuListProps:c,onEntering:v,PaperProps:p,transitionDuration:m,TransitionProps:w,variant:g}),k=(e=>{const{classes:t}=e;return ZV({root:["root"],paper:["paper"],list:["list"]},QY,t)})($),E=i&&!u&&f,j=a.useRef(null);let C=-1;a.Children.map(s,((e,t)=>{a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===C)&&(C=t))}));const O=null!=(r=y.paper)?r:tX,P=null!=(n=b.paper)?n:p,N=dQ({elementType:y.root,externalSlotProps:b.root,ownerState:$,className:[k.root,l]}),R=dQ({elementType:O,externalSlotProps:P,ownerState:$,className:k.paper});return Yj.jsx(eX,xV({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:_?"right":"left"},transformOrigin:_?XY:ZY,slots:{paper:O,root:y.root},slotProps:{root:N,paper:R},open:f,ref:t,transitionDuration:m,TransitionProps:xV({onEntering:(e,t)=>{j.current&&j.current.adjustStyleForScrollbar(e,x),v&&v(e,t)}},w),ownerState:$},S,{classes:h,children:Yj.jsx(rX,xV({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:j,autoFocus:i&&(-1===C||u),autoFocusItem:E,variant:g},c,{className:sU(k.list,c.className),children:s}))}))}));var oX=nX;function aX(e){return nU("MuiNativeSelect",e)}var iX=oU("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const sX=["className","disabled","error","IconComponent","inputRef","variant"],lX=({ownerState:e,theme:t})=>xV({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":xV({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${iX.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),uX=NH("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:OH,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${iX.multiple}`]:t.multiple}]}})(lX),cX=({ownerState:e,theme:t})=>xV({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${iX.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),dX=NH("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${jV(r.variant)}`],r.open&&t.iconOpen]}})(cX),fX=a.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:s,variant:l="standard"}=e,u=aU(e,sX),c=xV({},e,{disabled:n,variant:l,error:o}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return ZV({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${jV(r)}`,a&&"iconOpen",n&&"disabled"]},aX,t)})(c);return Yj.jsxs(a.Fragment,{children:[Yj.jsx(uX,xV({ownerState:c,className:sU(d.select,r),disabled:n,ref:s||t},u)),e.multiple?null:Yj.jsx(dX,{as:i,ownerState:c,className:d.icon})]})}));var pX=fX;function hX(e){return nU("MuiSelect",e)}var mX,vX=oU("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const gX=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],yX=NH("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${vX.select}`]:t.select},{[`&.${vX.select}`]:t[r.variant]},{[`&.${vX.error}`]:t.error},{[`&.${vX.multiple}`]:t.multiple}]}})(lX,{[`&.${vX.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),bX=NH("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${jV(r.variant)}`],r.open&&t.iconOpen]}})(cX),wX=NH("input",{shouldForwardProp:e=>PH(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function SX(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function xX(e){return null==e||"string"==typeof e&&!e.trim()}const _X=a.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:f,displayEmpty:p,error:h=!1,IconComponent:m,inputRef:v,labelId:g,MenuProps:y={},multiple:b,name:w,onBlur:S,onChange:x,onClose:_,onFocus:$,onOpen:k,open:E,readOnly:j,renderValue:C,SelectDisplayProps:O={},tabIndex:P,value:N,variant:R="standard"}=e,T=aU(e,gX),[A,I]=zV({controlled:N,default:d,name:"Select"}),[M,F]=zV({controlled:E,default:c,name:"Select"}),z=a.useRef(null),D=a.useRef(null),[L,B]=a.useState(null),{current:V}=a.useRef(null!=E),[U,W]=a.useState(),q=LV(t,v),K=a.useCallback((e=>{D.current=e,e&&B(e)}),[]),H=null==L?void 0:L.parentNode;a.useImperativeHandle(q,(()=>({focus:()=>{D.current.focus()},node:z.current,value:A})),[A]),a.useEffect((()=>{c&&M&&L&&!V&&(W(s?null:H.clientWidth),D.current.focus())}),[L,s]),a.useEffect((()=>{i&&D.current.focus()}),[i]),a.useEffect((()=>{if(!g)return;const e=NV(D.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&D.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const G=(e,t)=>{e?k&&k(t):_&&_(t),V||(W(s?null:H.clientWidth),F(e))},Q=a.Children.toArray(l),J=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(A)?A.slice():[];const t=A.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),A!==r&&(I(r),x)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:w}}),x(o,e)}b||G(!1,t)}},Y=null!==L&&M;let X,Z;delete T["aria-invalid"];const ee=[];let te=!1;(GQ({value:A})||p)&&(C?X=C(A):te=!0);const re=Q.map((e=>{if(!a.isValidElement(e))return null;let t;if(b){if(!Array.isArray(A))throw new Error(EV(2));t=A.some((t=>SX(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=SX(A,e.props.value),t&&te&&(Z=e.props.children);return a.cloneElement(e,{"aria-selected":t?"true":"false",onClick:J(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(X=b?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Z);let ne,oe=U;!s&&V&&L&&(oe=H.clientWidth),ne=void 0!==P?P:f?null:0;const ae=O.id||(w?`mui-component-select-${w}`:void 0),ie=xV({},e,{variant:R,value:A,open:Y,error:h}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e;return ZV({select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${jV(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},hX,t)})(ie),le=xV({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ue=FV();return Yj.jsxs(a.Fragment,{children:[Yj.jsx(yX,xV({ref:K,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":f?"true":void 0,"aria-expanded":Y?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ae].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!j){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),G(!0,e))}},onMouseDown:f||j?null:e=>{0===e.button&&(e.preventDefault(),D.current.focus(),G(!0,e))},onBlur:e=>{!Y&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:A,name:w}}),S(e))},onFocus:$},O,{ownerState:ie,className:sU(O.className,se.select,u),id:ae,children:xX(X)?mX||(mX=Yj.jsx("span",{className:"notranslate",children:"​"})):X})),Yj.jsx(wX,xV({"aria-invalid":h,value:Array.isArray(A)?A.join(","):A,name:w,ref:z,"aria-hidden":!0,onChange:e=>{const t=Q.find((t=>t.props.value===e.target.value));void 0!==t&&(I(t.props.value),x&&x(e,t))},tabIndex:-1,disabled:f,className:se.nativeInput,autoFocus:i,ownerState:ie},T)),Yj.jsx(bX,{as:m,className:se.icon,ownerState:ie}),Yj.jsx(oX,xV({id:`menu-${w||""}`,anchorEl:H,open:Y,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:xV({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},y.MenuListProps),slotProps:xV({},y.slotProps,{paper:xV({},le,{style:xV({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}));var $X=_X,kX=FH(Yj.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const EX=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],jX=["root"],CX={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>OH(e)&&"variant"!==e,slot:"Root"},OX=NH(dJ,CX)(""),PX=NH(PJ,CX)(""),NX=NH(bJ,CX)(""),RX=a.forwardRef((function(e,t){const r=CH({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=kX,id:d,input:f,inputProps:p,label:h,labelId:m,MenuProps:v,multiple:g=!1,native:y=!1,onClose:b,onOpen:w,open:S,renderValue:x,SelectDisplayProps:_,variant:$="outlined"}=r,k=aU(r,EX),E=y?pX:$X,j=UQ({props:r,muiFormControl:qQ(),states:["variant","error"]}),C=j.variant||$,O=xV({},r,{variant:C,classes:i}),P=(e=>{const{classes:t}=e;return t})(O),N=aU(P,jX),R=f||{standard:Yj.jsx(OX,{ownerState:O}),outlined:Yj.jsx(PX,{label:h,ownerState:O}),filled:Yj.jsx(NX,{ownerState:O})}[C],T=LV(t,R.ref);return Yj.jsx(a.Fragment,{children:a.cloneElement(R,xV({inputComponent:E,inputProps:xV({children:o,error:j.error,IconComponent:c,variant:C,type:void 0,multiple:g},y?{id:d}:{autoWidth:n,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:v,onClose:b,onOpen:w,open:S,renderValue:x,SelectDisplayProps:xV({id:d},_)},p,{classes:p?kV(N,p.classes):N},f?f.props.inputProps:{})},g&&y&&"outlined"===C?{notched:!0}:{},{ref:T,className:sU(R.props.className,s,P.root)},!f&&{variant:C},k))})}));RX.muiName="Select";var TX=RX;function AX(e){return nU("MuiTextField",e)}oU("MuiTextField",["root"]);const IX=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],MX={standard:dJ,filled:bJ,outlined:PJ},FX=NH(HJ,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zX=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:a,className:i,color:s="primary",defaultValue:l,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:p,id:h,InputLabelProps:m,inputProps:v,InputProps:g,inputRef:y,label:b,maxRows:w,minRows:S,multiline:x=!1,name:_,onBlur:$,onChange:k,onFocus:E,placeholder:j,required:C=!1,rows:O,select:P=!1,SelectProps:N,type:R,value:T,variant:A="outlined"}=r,I=aU(r,IX),M=xV({},r,{autoFocus:o,color:s,disabled:u,error:c,fullWidth:f,multiline:x,required:C,select:P,variant:A}),F=(e=>{const{classes:t}=e;return ZV({root:["root"]},AX,t)})(M),z={};"outlined"===A&&(m&&void 0!==m.shrink&&(z.notched=m.shrink),z.label=b),P&&(N&&N.native||(z.id=void 0),z["aria-describedby"]=void 0);const D=FV(h),L=p&&D?`${D}-helper-text`:void 0,B=b&&D?`${D}-label`:void 0,V=MX[A],U=Yj.jsx(V,xV({"aria-describedby":L,autoComplete:n,autoFocus:o,defaultValue:l,fullWidth:f,multiline:x,name:_,rows:O,maxRows:w,minRows:S,type:R,value:T,id:D,inputRef:y,onBlur:$,onChange:k,onFocus:E,placeholder:j,inputProps:v},z,g));return Yj.jsxs(FX,xV({className:sU(F.root,i),disabled:u,error:c,fullWidth:f,ref:t,required:C,color:s,variant:A,ownerState:M},I,{children:[null!=b&&""!==b&&Yj.jsx(VJ,xV({htmlFor:D,id:B},m,{children:b})),P?Yj.jsx(TX,xV({"aria-describedby":L,id:D,labelId:B,value:T,input:U},N,{children:a})):U,p&&Yj.jsx(eY,xV({id:L},d,{children:p}))]}))}));var DX=zX;const LX=["date","datetime-local","file","time"];function BX(e){const{id:t,name:r,placeholder:n,required:o,readonly:a,disabled:i,type:s,label:l,hideLabel:u,value:c,onChange:d,onChangeOverride:f,onBlur:p,onFocus:h,autofocus:m,options:v,schema:g,uiSchema:y,rawErrors:b=[],formContext:w,registry:S,InputLabelProps:x}=e,_=ov(e,["id","name","placeholder","required","readonly","disabled","type","label","hideLabel","value","onChange","onChangeOverride","onBlur","onFocus","autofocus","options","schema","uiSchema","rawErrors","formContext","registry","InputLabelProps"]),$=Hj(g,s,v),{step:k,min:E,max:j}=$,C=ov($,["step","min","max"]),O=Object.assign({inputProps:Object.assign({step:k,min:E,max:j},g.examples?{list:RC(t)}:void 0)},C),P=LX.includes(s)?Object.assign(Object.assign({},x),{shrink:!0}):x;return Yj.jsxs(Yj.Fragment,{children:[Yj.jsx(DX,Object.assign({id:t,name:t,placeholder:n,label:FC(l||void 0,u,!1),autoFocus:m,required:o,disabled:i||a},O,{value:c||0===c?c:"",error:b.length>0,onChange:f||(({target:{value:e}})=>d(""===e?v.emptyValue:e)),onBlur:({target:{value:e}})=>p(t,e),onFocus:({target:{value:e}})=>h(t,e),InputLabelProps:P},_,{"aria-describedby":IC(t,!!g.examples)})),Array.isArray(g.examples)&&Yj.jsx("datalist",Object.assign({id:RC(t)},{children:g.examples.concat(g.default&&!g.examples.includes(g.default)?[g.default]:[]).map((e=>Yj.jsx("option",{value:e},e)))}))]})}function VX(e){return nU("MuiTypography",e)}oU("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const UX=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],WX=NH("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${jV(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>xV({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),qX={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},KX={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},HX=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiTypography"}),n=(e=>KX[e]||e)(r.color),o=xK(xV({},r,{color:n})),{align:a="inherit",className:i,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=qX}=o,p=aU(o,UX),h=xV({},o,{align:a,color:n,className:i,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:f}),m=s||(c?"p":f[d]||qX[d])||"span",v=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:i}=e;return ZV({root:["root",a,"inherit"!==e.align&&`align${jV(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},VX,i)})(h);return Yj.jsx(WX,xV({as:m,ref:t,ownerState:h,className:sU(v.root,i)},p))}));var GX=HX;function QX(e){const{id:t,description:r}=e;return r?Yj.jsx(GX,Object.assign({id:t,variant:"subtitle2",style:{marginTop:"5px"}},{children:r})):null}var JX={},YX=bV;Object.defineProperty(JX,"__esModule",{value:!0});var XX=JX.default=void 0,ZX=YX(BH()),eZ=Yj,tZ=(0,ZX.default)((0,eZ.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");function rZ(e){return nU("MuiListItem",e)}XX=JX.default=tZ;var nZ=oU("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var oZ=oU("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function aZ(e){return nU("MuiListItemSecondaryAction",e)}oU("MuiListItemSecondaryAction",["root","disableGutters"]);const iZ=["className"],sZ=NH("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>xV({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),lZ=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=aU(r,iZ),i=xV({},r,{disableGutters:a.useContext(tY).disableGutters}),s=(e=>{const{disableGutters:t,classes:r}=e;return ZV({root:["root",t&&"disableGutters"]},aZ,r)})(i);return Yj.jsx(sZ,xV({className:sU(s.root,n),ownerState:i,ref:t},o))}));lZ.muiName="ListItemSecondaryAction";var uZ=lZ;const cZ=["className"],dZ=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],fZ=NH("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>xV({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&xV({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${oZ.root}`]:{paddingRight:48}},{[`&.${nZ.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nZ.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:UK(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nZ.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:UK(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${nZ.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nZ.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:UK(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:UK(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),pZ=NH("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),hZ=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:i=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:p}={},dense:h=!1,disabled:m=!1,disableGutters:v=!1,disablePadding:g=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:w,selected:S=!1,slotProps:x={},slots:_={}}=r,$=aU(r.ContainerProps,cZ),k=aU(r,dZ),E=a.useContext(tY),j=a.useMemo((()=>({dense:h||E.dense||!1,alignItems:n,disableGutters:v})),[n,E.dense,h,v]),C=a.useRef(null);AV((()=>{o&&C.current&&C.current.focus()}),[o]);const O=a.Children.toArray(s),P=O.length&&PV(O[O.length-1],["ListItemSecondaryAction"]),N=xV({},r,{alignItems:n,autoFocus:o,button:i,dense:j.dense,disabled:m,disableGutters:v,disablePadding:g,divider:y,hasSecondaryAction:P,selected:S}),R=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return ZV({root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},rZ,n)})(N),T=LV(C,t),A=_.root||c.Root||fZ,I=x.root||d.root||{},M=xV({className:sU(R.root,I.className,l),disabled:m},k);let F=u||"li";return i&&(M.component=u||"div",M.focusVisibleClassName=sU(nZ.focusVisible,b),F=PG),P?(F=M.component||u?F:"div","li"===f&&("li"===F?F="div":"li"===M.component&&(M.component="div")),Yj.jsx(tY.Provider,{value:j,children:Yj.jsxs(pZ,xV({as:f,className:sU(R.container,p),ref:T,ownerState:N},$,{children:[Yj.jsx(A,xV({},I,!sQ(A)&&{as:F,ownerState:xV({},N,I.ownerState)},M,{children:O})),O.pop()]}))})):Yj.jsx(tY.Provider,{value:j,children:Yj.jsxs(A,xV({},I,{as:F,ref:T},!sQ(A)&&{ownerState:xV({},N,I.ownerState)},M,{children:[O,w&&Yj.jsx(uZ,{children:w})]}))})}));var mZ=hZ;function vZ(e){return nU("MuiListItemIcon",e)}var gZ=oU("MuiListItemIcon",["root","alignItemsFlexStart"]);const yZ=["className"],bZ=NH("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>xV({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),wZ=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=aU(r,yZ),i=xV({},r,{alignItems:a.useContext(tY).alignItems}),s=(e=>{const{alignItems:t,classes:r}=e;return ZV({root:["root","flex-start"===t&&"alignItemsFlexStart"]},vZ,r)})(i);return Yj.jsx(bZ,xV({className:sU(s.root,n),ownerState:i,ref:t},o))}));var SZ=wZ;function xZ(e){return nU("MuiListItemText",e)}var _Z=oU("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const $Z=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],kZ=NH("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${_Z.primary}`]:t.primary},{[`& .${_Z.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})((({ownerState:e})=>xV({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),EZ=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiListItemText"}),{children:n,className:o,disableTypography:i=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=aU(r,$Z),{dense:p}=a.useContext(tY);let h=null!=l?l:n,m=c;const v=xV({},r,{disableTypography:i,inset:s,primary:!!h,secondary:!!m,dense:p}),g=(e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return ZV({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},xZ,t)})(v);return null==h||h.type===GX||i||(h=Yj.jsx(GX,xV({variant:p?"body2":"body1",className:g.primary,component:null!=u&&u.variant?void 0:"span",display:"block"},u,{children:h}))),null==m||m.type===GX||i||(m=Yj.jsx(GX,xV({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},d,{children:m}))),Yj.jsxs(kZ,xV({className:sU(g.root,o),ownerState:v,ref:t},f,{children:[h,m]}))}));var jZ=EZ;function CZ({errors:e,registry:t}){const{translateString:r}=t;return Yj.jsx(oQ,Object.assign({elevation:2},{children:Yj.jsxs(VG,Object.assign({mb:2,p:2},{children:[Yj.jsx(GX,Object.assign({variant:"h6"},{children:r(YC.ErrorsLabel)})),Yj.jsx(iY,Object.assign({dense:!0},{children:e.map(((e,t)=>Yj.jsxs(mZ,{children:[Yj.jsx(SZ,{children:Yj.jsx(XX,{color:"error"})}),Yj.jsx(jZ,{primary:e.stack})]},t)))}))]}))}))}var OZ={},PZ=bV;Object.defineProperty(OZ,"__esModule",{value:!0});var NZ=OZ.default=void 0,RZ=PZ(BH()),TZ=Yj,AZ=(0,RZ.default)((0,TZ.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");NZ=OZ.default=AZ;var IZ={},MZ=bV;Object.defineProperty(IZ,"__esModule",{value:!0});var FZ=IZ.default=void 0,zZ=MZ(BH()),DZ=Yj,LZ=(0,zZ.default)((0,DZ.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");FZ=IZ.default=LZ;var BZ={},VZ=bV;Object.defineProperty(BZ,"__esModule",{value:!0});var UZ=BZ.default=void 0,WZ=VZ(BH()),qZ=Yj,KZ=(0,WZ.default)((0,qZ.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");UZ=BZ.default=KZ;var HZ={},GZ=bV;Object.defineProperty(HZ,"__esModule",{value:!0});var QZ=HZ.default=void 0,JZ=GZ(BH()),YZ=Yj,XZ=(0,JZ.default)((0,YZ.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove");function ZZ(e){const{icon:t,color:r,uiSchema:n,registry:o}=e,a=ov(e,["icon","color","uiSchema","registry"]);return Yj.jsx(MG,Object.assign({},a,{size:"small",color:r},{children:t}))}function e0(e){const{registry:{translateString:t}}=e;return Yj.jsx(ZZ,Object.assign({title:t(YC.CopyButton)},e,{icon:Yj.jsx(UZ,{fontSize:"small"})}))}function t0(e){const{registry:{translateString:t}}=e;return Yj.jsx(ZZ,Object.assign({title:t(YC.MoveDownButton)},e,{icon:Yj.jsx(NZ,{fontSize:"small"})}))}function r0(e){const{registry:{translateString:t}}=e;return Yj.jsx(ZZ,Object.assign({title:t(YC.MoveUpButton)},e,{icon:Yj.jsx(FZ,{fontSize:"small"})}))}function n0(e){const{iconType:t}=e,r=ov(e,["iconType"]),{registry:{translateString:n}}=r;return Yj.jsx(ZZ,Object.assign({title:n(YC.RemoveButton)},r,{color:"error",icon:Yj.jsx(QZ,{fontSize:"default"===t?void 0:"small"})}))}function o0(e){const{errors:t=[],idSchema:r}=e;if(0===t.length)return null;const n=NC(r);return Yj.jsx(iY,Object.assign({dense:!0,disablePadding:!0},{children:t.map(((e,t)=>Yj.jsx(mZ,Object.assign({disableGutters:!0},{children:Yj.jsx(eY,Object.assign({id:n},{children:e}))}),t)))}))}function a0(e){const{idSchema:t,help:r}=e;if(!r)return null;const n=TC(t);return Yj.jsx(eY,Object.assign({id:n},{children:r}))}function i0(e){const{id:t,children:r,classNames:n,style:o,disabled:a,displayLabel:i,hidden:s,label:l,onDropPropertyClick:u,onKeyChange:c,readonly:d,required:f,rawErrors:p=[],errors:h,help:m,description:v,rawDescription:g,schema:y,uiSchema:b,registry:w}=e,S=Jj("WrapIfAdditionalTemplate",w,_d(b));return s?Yj.jsx("div",Object.assign({style:{display:"none"}},{children:r})):Yj.jsx(S,Object.assign({classNames:n,style:o,disabled:a,id:t,label:l,onDropPropertyClick:u,onKeyChange:c,readonly:d,required:f,schema:y,uiSchema:b,registry:w},{children:Yj.jsxs(HJ,Object.assign({fullWidth:!0,error:!!p.length,required:f},{children:[r,i&&g?Yj.jsx(GX,Object.assign({variant:"caption",color:"textSecondary"},{children:v})):null,h,m]}))}))}function s0(e){const{description:t,title:r,properties:n,required:o,disabled:a,readonly:i,uiSchema:s,idSchema:l,schema:u,formData:c,onAddClick:d,registry:f}=e,p=_d(s),h=Jj("TitleFieldTemplate",f,p),m=Jj("DescriptionFieldTemplate",f,p),{ButtonTemplates:{AddButton:v}}=f.templates;return Yj.jsxs(Yj.Fragment,{children:[r&&Yj.jsx(h,{id:AC(l),title:r,required:o,schema:u,uiSchema:s,registry:f}),t&&Yj.jsx(m,{id:PC(l),description:t,schema:u,uiSchema:s,registry:f}),Yj.jsxs(ZG,Object.assign({container:!0,spacing:2,style:{marginTop:"10px"}},{children:[n.map(((e,t)=>e.hidden?e.content:Yj.jsx(ZG,Object.assign({item:!0,xs:12,style:{marginBottom:"10px"}},{children:e.content}),t))),$d(u,s,c)&&Yj.jsx(ZG,Object.assign({container:!0,justifyContent:"flex-end"},{children:Yj.jsx(ZG,Object.assign({item:!0},{children:Yj.jsx(v,{className:"object-property-expand",onClick:d(u),disabled:a||i,uiSchema:s,registry:f})}))}))]}))]})}function l0(e){return nU("MuiButton",e)}QZ=HZ.default=XZ;var u0=oU("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var c0=a.createContext({});var d0=a.createContext(void 0);const f0=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],p0=e=>xV({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),h0=NH(PG,{shouldForwardProp:e=>OH(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${jV(r.color)}`],t[`size${jV(r.size)}`],t[`${r.variant}Size${jV(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return xV({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":xV({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:UK(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:UK(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:UK(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":xV({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${u0.focusVisible}`]:xV({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${u0.disabled}`]:xV({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${UK(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${u0.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${u0.disabled}`]:{boxShadow:"none"}})),m0=NH("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${jV(r.size)}`]]}})((({ownerState:e})=>xV({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},p0(e)))),v0=NH("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${jV(r.size)}`]]}})((({ownerState:e})=>xV({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},p0(e)))),g0=a.forwardRef((function(e,t){const r=a.useContext(c0),n=a.useContext(d0),o=CH({props:XV(r,e),name:"MuiButton"}),{children:i,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:p,focusVisibleClassName:h,fullWidth:m=!1,size:v="medium",startIcon:g,type:y,variant:b="text"}=o,w=aU(o,f0),S=xV({},o,{color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:f,fullWidth:m,size:v,type:y,variant:b}),x=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:i}=e;return xV({},i,ZV({root:["root",a,`${a}${jV(t)}`,`size${jV(o)}`,`${a}Size${jV(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${jV(o)}`],endIcon:["endIcon",`iconSize${jV(o)}`]},l0,i))})(S),_=g&&Yj.jsx(m0,{className:x.startIcon,ownerState:S,children:g}),$=p&&Yj.jsx(v0,{className:x.endIcon,ownerState:S,children:p}),k=n||"";return Yj.jsxs(h0,xV({ownerState:S,className:sU(r.className,x.root,u,k),component:l,disabled:c,focusRipple:!f,focusVisibleClassName:sU(x.focusVisible,h),ref:t,type:y},w,{classes:x,children:[_,i,$]}))}));var y0=g0;function b0({uiSchema:e}){const{submitText:t,norender:r,props:n={}}=Qj(e);return r?null:Yj.jsx(VG,Object.assign({marginTop:3},{children:Yj.jsx(y0,Object.assign({type:"submit",variant:"contained",color:"primary"},n,{children:t}))}))}function w0(e){return nU("MuiDivider",e)}var S0=oU("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const x0=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],_0=NH("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>xV({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:UK(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>xV({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>xV({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>xV({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>xV({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),$0=NH("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>xV({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),k0=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==i?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=r,p=aU(r,x0),h=xV({},r,{absolute:n,component:i,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e;return ZV({root:["root",t&&"absolute",l,a&&"light","vertical"===i&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},w0,n)})(h);return Yj.jsx(_0,xV({as:i,className:sU(m.root,a),role:c,ref:t,ownerState:h},p,{children:o?Yj.jsx($0,{className:m.wrapper,ownerState:h,children:o}):null}))}));k0.muiSkipListHighlight=!0;var E0=k0;function j0({id:e,title:t}){return Yj.jsxs(VG,Object.assign({id:e,mb:1,mt:1},{children:[Yj.jsx(GX,Object.assign({variant:"h5"},{children:t})),Yj.jsx(E0,{})]}))}function C0(e){const{children:t,classNames:r,style:n,disabled:o,id:a,label:i,onDropPropertyClick:s,onKeyChange:l,readonly:u,required:c,schema:d,uiSchema:f,registry:p}=e,{templates:h,translateString:m}=p,{RemoveButton:v}=h.ButtonTemplates,g=m(YC.KeyLabel,[i]);if(!(td in d))return Yj.jsx("div",Object.assign({className:r,style:n},{children:t}));return Yj.jsxs(ZG,Object.assign({container:!0,alignItems:"center",spacing:2,className:r,style:n},{children:[Yj.jsx(ZG,Object.assign({item:!0,xs:!0},{children:Yj.jsx(DX,{fullWidth:!0,required:c,label:g,defaultValue:i,disabled:o||u,id:`${a}-key`,name:`${a}-key`,onBlur:u?void 0:({target:e})=>l(e.value),type:"text"})})),Yj.jsx(ZG,Object.assign({item:!0,xs:!0},{children:t})),Yj.jsx(ZG,Object.assign({item:!0},{children:Yj.jsx(v,{iconType:"default",style:{flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"},disabled:o||u,onClick:s(i),uiSchema:f,registry:p})}))]}),`${a}-key`)}function O0(e){return nU("PrivateSwitchBase",e)}oU("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const P0=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],N0=NH(PG)((({ownerState:e})=>xV({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),R0=NH("input",{shouldForwardProp:OH})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),T0=a.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:a,defaultChecked:i,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:f,inputRef:p,name:h,onBlur:m,onChange:v,onFocus:g,readOnly:y,required:b=!1,tabIndex:w,type:S,value:x}=e,_=aU(e,P0),[$,k]=zV({controlled:n,default:Boolean(i),name:"SwitchBase",state:"checked"}),E=qQ();let j=s;E&&void 0===j&&(j=E.disabled);const C="checkbox"===S||"radio"===S,O=xV({},e,{checked:$,disabled:j,disableFocusRipple:l,edge:u}),P=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return ZV({root:["root",r&&"checked",n&&"disabled",o&&`edge${jV(o)}`],input:["input"]},O0,t)})(O);return Yj.jsxs(N0,xV({component:"span",className:sU(P.root,a),centerRipple:!0,focusRipple:!l,disabled:j,tabIndex:null,role:void 0,onFocus:e=>{g&&g(e),E&&E.onFocus&&E.onFocus(e)},onBlur:e=>{m&&m(e),E&&E.onBlur&&E.onBlur(e)},ownerState:O,ref:t},_,{children:[Yj.jsx(R0,xV({autoFocus:r,checked:n,defaultChecked:i,className:P.input,disabled:j,id:C?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),v&&v(e,t)},readOnly:y,ref:p,required:b,ownerState:O,tabIndex:w,type:S},"checkbox"===S&&void 0===x?{}:{value:x},f)),$?o:c]}))}));var A0=T0,I0=FH(Yj.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),M0=FH(Yj.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),F0=FH(Yj.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function z0(e){return nU("MuiCheckbox",e)}var D0=oU("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const L0=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],B0=NH(A0,{shouldForwardProp:e=>OH(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${jV(r.size)}`],"default"!==r.color&&t[`color${jV(r.color)}`]]}})((({theme:e,ownerState:t})=>xV({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:UK("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${D0.checked}, &.${D0.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${D0.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),V0=Yj.jsx(M0,{}),U0=Yj.jsx(I0,{}),W0=Yj.jsx(F0,{}),q0=a.forwardRef((function(e,t){var r,n;const o=CH({props:e,name:"MuiCheckbox"}),{checkedIcon:i=V0,color:s="primary",icon:l=U0,indeterminate:u=!1,indeterminateIcon:c=W0,inputProps:d,size:f="medium",className:p}=o,h=aU(o,L0),m=u?c:l,v=u?c:i,g=xV({},o,{color:s,indeterminate:u,size:f}),y=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return xV({},t,ZV({root:["root",r&&"indeterminate",`color${jV(n)}`,`size${jV(o)}`]},z0,t))})(g);return Yj.jsx(B0,xV({type:"checkbox",inputProps:xV({"data-indeterminate":u},d),icon:a.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:f}),checkedIcon:a.cloneElement(v,{fontSize:null!=(n=v.props.fontSize)?n:f}),ownerState:g,ref:t,className:sU(y.root,p)},h,{classes:y}))}));var K0=q0;const H0=function(e={}){const{createStyledComponent:t=GK,useThemeProps:r=QK,componentName:n="MuiStack"}=e,o=t(YK),i=a.forwardRef((function(e,t){const a=xK(r(e)),{component:i="div",direction:s="column",spacing:l=0,divider:u,children:c,className:d,useFlexGap:f=!1}=a,p=aU(a,KK),h={direction:s,spacing:l,useFlexGap:f},m=ZV({root:["root"]},(e=>nU(n,e)),{});return Yj.jsx(o,xV({as:i,ownerState:h,ref:t,className:sU(m.root,d)},p,{children:u?JK(c,u):c}))}));return i}({createStyledComponent:NH("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>CH({props:e,name:"MuiStack"})});var G0=H0;function Q0(e){return nU("MuiFormControlLabel",e)}var J0=oU("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const Y0=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],X0=NH("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${J0.label}`]:t.label},t.root,t[`labelPlacement${jV(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>xV({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${J0.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${J0.label}`]:{[`&.${J0.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Z0=NH("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${J0.error}`]:{color:(e.vars||e).palette.error.main}}))),e1=a.forwardRef((function(e,t){var r,n;const o=CH({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:d,labelPlacement:f="end",required:p,slotProps:h={}}=o,m=aU(o,Y0),v=qQ(),g=null!=(r=null!=u?u:l.props.disabled)?r:null==v?void 0:v.disabled,y=null!=p?p:l.props.required,b={disabled:g,required:y};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(b[e]=o[e])}));const w=UQ({props:o,muiFormControl:v,states:["error"]}),S=xV({},o,{disabled:g,labelPlacement:f,required:y,error:w.error}),x=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:a}=e;return ZV({root:["root",r&&"disabled",`labelPlacement${jV(n)}`,o&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]},Q0,t)})(S),_=null!=(n=h.typography)?n:s.typography;let $=d;return null==$||$.type===GX||c||($=Yj.jsx(GX,xV({component:"span"},_,{className:sU(x.label,null==_?void 0:_.className),children:$}))),Yj.jsxs(X0,xV({className:sU(x.root,i),ownerState:S,ref:t},m,{children:[a.cloneElement(l,b),y?Yj.jsxs(G0,{direction:"row",alignItems:"center",children:[$,Yj.jsxs(Z0,{ownerState:S,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):$]}))}));var t1=e1;function r1(e){var t;const{schema:r,id:n,value:o,disabled:a,readonly:i,label:s="",hideLabel:l,autofocus:u,onChange:c,onBlur:d,onFocus:f,registry:p,options:h,uiSchema:m}=e,v=Jj("DescriptionFieldTemplate",p,h),g=BC(r),y=null!==(t=h.description)&&void 0!==t?t:r.description;return Yj.jsxs(Yj.Fragment,{children:[!l&&!!y&&Yj.jsx(v,{id:PC(n),description:y,schema:r,uiSchema:m,registry:p}),Yj.jsx(t1,{control:Yj.jsx(K0,{id:n,name:n,checked:void 0!==o&&Boolean(o),required:g,disabled:a||i,autoFocus:u,onChange:(e,t)=>c(t),onBlur:({target:{value:e}})=>d(n,e),onFocus:({target:{value:e}})=>f(n,e),"aria-describedby":IC(n)}),label:FC(s,l,!1)})]})}function n1(e){return nU("MuiFormGroup",e)}oU("MuiFormGroup",["root","row","error"]);const o1=["className","row"],a1=NH("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})((({ownerState:e})=>xV({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"}))),i1=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiFormGroup"}),{className:n,row:o=!1}=r,a=aU(r,o1),i=xV({},r,{row:o,error:UQ({props:r,muiFormControl:qQ(),states:["error"]}).error}),s=(e=>{const{classes:t,row:r,error:n}=e;return ZV({root:["root",r&&"row",n&&"error"]},n1,t)})(i);return Yj.jsx(a1,xV({className:sU(s.root,n),ownerState:i,ref:t},a))}));var s1=i1;function l1({label:e,hideLabel:t,id:r,disabled:n,options:o,value:a,autofocus:i,readonly:s,required:l,onChange:u,onBlur:c,onFocus:d}){const{enumOptions:f,enumDisabled:p,inline:h,emptyValue:m}=o,v=Array.isArray(a)?a:[a],g=e=>({target:{checked:t}})=>{u(t?Wj(e,v,f):Dj(e,v,f))},y=({target:{value:e}})=>c(r,zj(e,f,m)),b=({target:{value:e}})=>d(r,zj(e,f,m));return Yj.jsxs(Yj.Fragment,{children:[FC(Yj.jsx(FJ,Object.assign({required:l,htmlFor:r},{children:e||void 0})),t),Yj.jsx(s1,Object.assign({id:r,row:!!h},{children:Array.isArray(f)&&f.map(((e,t)=>{const o=Lj(e.value,v),a=Array.isArray(p)&&-1!==p.indexOf(e.value),l=Yj.jsx(K0,{id:MC(r,t),name:r,checked:o,disabled:n||a||s,autoFocus:i&&0===t,onChange:g(t),onBlur:y,onFocus:b,"aria-describedby":IC(r)});return Yj.jsx(t1,{control:l,label:e.label},t)}))}))]})}var u1=FH(Yj.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),c1=FH(Yj.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const d1=NH("span",{shouldForwardProp:OH})({position:"relative",display:"flex"}),f1=NH(u1)({transform:"scale(1)"}),p1=NH(c1)((({theme:e,ownerState:t})=>xV({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));function h1(e){const{checked:t=!1,classes:r={},fontSize:n}=e,o=xV({},e,{checked:t});return Yj.jsxs(d1,{className:r.root,ownerState:o,children:[Yj.jsx(f1,{fontSize:n,className:r.background,ownerState:o}),Yj.jsx(p1,{fontSize:n,className:r.dot,ownerState:o})]})}var m1=a.createContext(void 0);function v1(e){return nU("MuiRadio",e)}var g1=oU("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);const y1=["checked","checkedIcon","color","icon","name","onChange","size","className"],b1=NH(A0,{shouldForwardProp:e=>OH(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"medium"!==r.size&&t[`size${jV(r.size)}`],t[`color${jV(r.color)}`]]}})((({theme:e,ownerState:t})=>xV({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:UK("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${g1.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${g1.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const w1=Yj.jsx(h1,{checked:!0}),S1=Yj.jsx(h1,{}),x1=a.forwardRef((function(e,t){var r,n;const o=CH({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:s=w1,color:l="primary",icon:u=S1,name:c,onChange:d,size:f="medium",className:p}=o,h=aU(o,y1),m=xV({},o,{color:l,size:f}),v=(e=>{const{classes:t,color:r,size:n}=e;return xV({},t,ZV({root:["root",`color${jV(r)}`,"medium"!==n&&`size${jV(n)}`]},v1,t))})(m),g=a.useContext(m1);let y=i;const b=CV(d,g&&g.onChange);let w=c;return g&&(void 0===y&&(y=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(g.value,o.value)),void 0===w&&(w=g.name)),Yj.jsx(b1,xV({type:"radio",icon:a.cloneElement(u,{fontSize:null!=(r=S1.props.fontSize)?r:f}),checkedIcon:a.cloneElement(s,{fontSize:null!=(n=w1.props.fontSize)?n:f}),ownerState:m,classes:v,name:w,checked:y,onChange:b,ref:t,className:sU(v.root,p)},h))}));var _1=x1;const $1=["actions","children","defaultValue","name","onChange","value"],k1=a.forwardRef((function(e,t){const{actions:r,children:n,defaultValue:o,name:i,onChange:s,value:l}=e,u=aU(e,$1),c=a.useRef(null),[d,f]=zV({controlled:l,default:o,name:"RadioGroup"});a.useImperativeHandle(r,(()=>({focus:()=>{let e=c.current.querySelector("input:not(:disabled):checked");e||(e=c.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const p=LV(t,c),h=FV(i),m=a.useMemo((()=>({name:h,onChange(e){f(e.target.value),s&&s(e,e.target.value)},value:d})),[h,s,f,d]);return Yj.jsx(m1.Provider,{value:m,children:Yj.jsx(s1,xV({role:"radiogroup",ref:p},u,{children:n}))})}));var E1=k1;function j1({id:e,options:t,value:r,required:n,disabled:o,readonly:a,label:i,hideLabel:s,onChange:l,onBlur:u,onFocus:c}){var d;const{enumOptions:f,enumDisabled:p,emptyValue:h}=t,m=!!t&&t.inline,v=null!==(d=Bj(r,f))&&void 0!==d?d:null;return Yj.jsxs(Yj.Fragment,{children:[FC(Yj.jsx(FJ,Object.assign({required:n,htmlFor:e},{children:i||void 0})),s),Yj.jsx(E1,Object.assign({id:e,name:e,value:v,row:m,onChange:(e,t)=>l(zj(t,f,h)),onBlur:({target:{value:t}})=>u(e,zj(t,f,h)),onFocus:({target:{value:t}})=>c(e,zj(t,f,h)),"aria-describedby":IC(e)},{children:Array.isArray(f)&&f.map(((t,r)=>{const n=Array.isArray(p)&&-1!==p.indexOf(t.value);return Yj.jsx(t1,{control:Yj.jsx(_1,{name:e,id:MC(e,r),color:"primary"}),label:t.label,value:String(r),disabled:o||n||a},r)}))}))]})}var C1=e=>!e||!sQ(e);function O1(e){return nU("MuiSlider",e)}var P1=oU("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);const N1=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function R1(e){return e}const T1=NH("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${jV(r.color)}`],"medium"!==r.size&&t[`size${jV(r.size)}`],r.marked&&t.marked,"vertical"===r.orientation&&t.vertical,"inverted"===r.track&&t.trackInverted,!1===r.track&&t.trackFalse]}})((({theme:e,ownerState:t})=>xV({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&xV({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===t.size&&{height:2},t.marked&&{marginBottom:20}),"vertical"===t.orientation&&xV({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===t.size&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${P1.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${P1.dragging}`]:{[`& .${P1.thumb}, & .${P1.track}`]:{transition:"none"}}}))),A1=NH("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((({ownerState:e})=>xV({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===e.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1}))),I1=NH("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?qK(e.palette[t.color].main,.62):WK(e.palette[t.color].main,.5);return xV({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{border:"none"},"horizontal"===t.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===t.track&&{display:"none"},"inverted"===t.track&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r})})),M1=NH("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${jV(r.color)}`],"medium"!==r.size&&t[`thumbSize${jV(r.size)}`]]}})((({theme:e,ownerState:t})=>xV({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{width:12,height:12},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":xV({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"small"===t.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${P1.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:UK(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${P1.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:UK(e.palette[t.color].main,.16)}`},[`&.${P1.disabled}`]:{"&:hover":{boxShadow:"none"}}}))),F1=NH((function(e){const{children:t,className:r,value:n}=e,o=(e=>{const{open:t}=e;return{offset:sU(t&&P1.valueLabelOpen),circle:P1.valueLabelCircle,label:P1.valueLabelLabel}})(e);return t?a.cloneElement(t,{className:sU(t.props.className)},Yj.jsxs(a.Fragment,{children:[t.props.children,Yj.jsx("span",{className:sU(o.offset,r),"aria-hidden":!0,children:Yj.jsx("span",{className:o.circle,children:Yj.jsx("span",{className:o.label,children:n})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e,ownerState:t})=>xV({[`&.${P1.valueLabelOpen}`]:{transform:("vertical"===t.orientation?"translateY(-50%)":"translateY(-100%)")+" scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:("vertical"===t.orientation?"translateY(-50%)":"translateY(-100%)")+" scale(0)",position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===t.orientation&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===t.orientation&&{right:"small"===t.size?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},"small"===t.size&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}))),z1=NH("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>PH(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})((({theme:e,ownerState:t,markActive:r})=>xV({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}))),D1=NH("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>PH(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e,ownerState:t,markLabelActive:r})=>xV({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===t.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(e.vars||e).palette.text.primary}))),L1=({children:e})=>e,B1=a.forwardRef((function(e,t){var r,n,o,i,s,l,u,c,d,f,p,h,m,v,g,y,b,w,S,x,_,$,k,E;const j=CH({props:e,name:"MuiSlider"}),C="rtl"===zG().direction,{"aria-label":O,"aria-valuetext":P,"aria-labelledby":N,component:R="span",components:T={},componentsProps:A={},color:I="primary",classes:M,className:F,disableSwap:z=!1,disabled:D=!1,getAriaLabel:L,getAriaValueText:B,marks:V=!1,max:U=100,min:W=0,orientation:q="horizontal",size:K="medium",step:H=1,scale:G=R1,slotProps:Q,slots:J,track:Y="normal",valueLabelDisplay:X="off",valueLabelFormat:Z=R1}=j,ee=aU(j,N1),te=xV({},j,{isRtl:C,max:U,min:W,classes:M,disabled:D,disableSwap:z,orientation:q,marks:V,color:I,size:K,step:H,scale:G,track:Y,valueLabelDisplay:X,valueLabelFormat:Z}),{axisProps:re,getRootProps:ne,getHiddenInputProps:oe,getThumbProps:ae,open:ie,active:se,axis:le,focusedThumbIndex:ue,range:ce,dragging:de,marks:fe,values:pe,trackOffset:he,trackLeap:me,getThumbStyle:ve}=FQ(xV({},te,{rootRef:t}));te.marked=fe.length>0&&fe.some((e=>e.label)),te.dragging=de,te.focusedThumbIndex=ue;const ge=(e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:s,size:l}=e;return ZV({root:["root",t&&"disabled",r&&"dragging",n&&"marked","vertical"===o&&"vertical","inverted"===a&&"trackInverted",!1===a&&"trackFalse",s&&`color${jV(s)}`,l&&`size${jV(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${jV(l)}`,s&&`thumbColor${jV(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},O1,i)})(te),ye=null!=(r=null!=(n=null==J?void 0:J.root)?n:T.Root)?r:T1,be=null!=(o=null!=(i=null==J?void 0:J.rail)?i:T.Rail)?o:A1,we=null!=(s=null!=(l=null==J?void 0:J.track)?l:T.Track)?s:I1,Se=null!=(u=null!=(c=null==J?void 0:J.thumb)?c:T.Thumb)?u:M1,xe=null!=(d=null!=(f=null==J?void 0:J.valueLabel)?f:T.ValueLabel)?d:F1,_e=null!=(p=null!=(h=null==J?void 0:J.mark)?h:T.Mark)?p:z1,$e=null!=(m=null!=(v=null==J?void 0:J.markLabel)?v:T.MarkLabel)?m:D1,ke=null!=(g=null!=(y=null==J?void 0:J.input)?y:T.Input)?g:"input",Ee=null!=(b=null==Q?void 0:Q.root)?b:A.root,je=null!=(w=null==Q?void 0:Q.rail)?w:A.rail,Ce=null!=(S=null==Q?void 0:Q.track)?S:A.track,Oe=null!=(x=null==Q?void 0:Q.thumb)?x:A.thumb,Pe=null!=(_=null==Q?void 0:Q.valueLabel)?_:A.valueLabel,Ne=null!=($=null==Q?void 0:Q.mark)?$:A.mark,Re=null!=(k=null==Q?void 0:Q.markLabel)?k:A.markLabel,Te=null!=(E=null==Q?void 0:Q.input)?E:A.input,Ae=dQ({elementType:ye,getSlotProps:ne,externalSlotProps:Ee,externalForwardedProps:ee,additionalProps:xV({},C1(ye)&&{as:R}),ownerState:xV({},te,null==Ee?void 0:Ee.ownerState),className:[ge.root,F]}),Ie=dQ({elementType:be,externalSlotProps:je,ownerState:te,className:ge.rail}),Me=dQ({elementType:we,externalSlotProps:Ce,additionalProps:{style:xV({},re[le].offset(he),re[le].leap(me))},ownerState:xV({},te,null==Ce?void 0:Ce.ownerState),className:ge.track}),Fe=dQ({elementType:Se,getSlotProps:ae,externalSlotProps:Oe,ownerState:xV({},te,null==Oe?void 0:Oe.ownerState),className:ge.thumb}),ze=dQ({elementType:xe,externalSlotProps:Pe,ownerState:xV({},te,null==Pe?void 0:Pe.ownerState),className:ge.valueLabel}),De=dQ({elementType:_e,externalSlotProps:Ne,ownerState:te,className:ge.mark}),Le=dQ({elementType:$e,externalSlotProps:Re,ownerState:te,className:ge.markLabel}),Be=dQ({elementType:ke,getSlotProps:oe,externalSlotProps:Te,ownerState:te});return Yj.jsxs(ye,xV({},Ae,{children:[Yj.jsx(be,xV({},Ie)),Yj.jsx(we,xV({},Me)),fe.filter((e=>e.value>=W&&e.value<=U)).map(((e,t)=>{const r=CQ(e.value,W,U),n=re[le].offset(r);let o;return o=!1===Y?-1!==pe.indexOf(e.value):"normal"===Y&&(ce?e.value>=pe[0]&&e.value<=pe[pe.length-1]:e.value<=pe[0])||"inverted"===Y&&(ce?e.value<=pe[0]||e.value>=pe[pe.length-1]:e.value>=pe[0]),Yj.jsxs(a.Fragment,{children:[Yj.jsx(_e,xV({"data-index":t},De,!sQ(_e)&&{markActive:o},{style:xV({},n,De.style),className:sU(De.className,o&&ge.markActive)})),null!=e.label?Yj.jsx($e,xV({"aria-hidden":!0,"data-index":t},Le,!sQ($e)&&{markLabelActive:o},{style:xV({},n,Le.style),className:sU(ge.markLabel,Le.className,o&&ge.markLabelActive),children:e.label})):null]},t)})),pe.map(((e,t)=>{const r=CQ(e,W,U),n=re[le].offset(r),o="off"===X?L1:xe;return Yj.jsx(o,xV({},!sQ(o)&&{valueLabelFormat:Z,valueLabelDisplay:X,value:"function"==typeof Z?Z(G(e),t):Z,index:t,open:ie===t||se===t||"on"===X,disabled:D},ze,{children:Yj.jsx(Se,xV({"data-index":t},Fe,{className:sU(ge.thumb,Fe.className,se===t&&ge.active,ue===t&&ge.focusVisible),style:xV({},n,ve(t),Fe.style),children:Yj.jsx(ke,xV({"data-index":t,"aria-label":L?L(t):O,"aria-valuenow":G(e),"aria-labelledby":N,"aria-valuetext":B?B(G(e),t):P,value:pe[t]},Be))}))}),t)}))]}))}));var V1=B1;function U1(e){const{value:t,readonly:r,disabled:n,onBlur:o,onFocus:a,options:i,schema:s,onChange:l,required:u,label:c,hideLabel:d,id:f}=e,p=Object.assign({value:t,label:c,id:f,name:f},Kj(s));return Yj.jsxs(Yj.Fragment,{children:[FC(Yj.jsx(FJ,Object.assign({required:u,htmlFor:f},{children:c||void 0})),d),Yj.jsx(V1,Object.assign({disabled:n||r,onChange:(e,t)=>{l(null!=t?t:i.emptyValue)},onBlur:({target:{value:e}})=>o(f,e),onFocus:({target:{value:e}})=>a(f,e),valueLabelDisplay:"auto"},p,{"aria-describedby":IC(f)}))]})}function W1(e){return nU("MuiMenuItem",e)}var q1=oU("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const K1=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],H1=NH(PG,{shouldForwardProp:e=>OH(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>xV({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${q1.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:UK(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${q1.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:UK(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${q1.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:UK(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:UK(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${q1.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${q1.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${S0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${S0.inset}`]:{marginLeft:52},[`& .${_Z.root}`]:{marginTop:0,marginBottom:0},[`& .${_Z.inset}`]:{paddingLeft:36},[`& .${gZ.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&xV({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${gZ.root} svg`]:{fontSize:"1.25rem"}})))),G1=a.forwardRef((function(e,t){const r=CH({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f}=r,p=aU(r,K1),h=a.useContext(tY),m=a.useMemo((()=>({dense:i||h.dense||!1,disableGutters:l})),[h.dense,i,l]),v=a.useRef(null);AV((()=>{n&&v.current&&v.current.focus()}),[n]);const g=xV({},r,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e;return xV({},i,ZV({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},W1,i))})(r),b=LV(v,t);let w;return r.disabled||(w=void 0!==d?d:-1),Yj.jsx(tY.Provider,{value:m,children:Yj.jsx(H1,xV({ref:b,role:c,tabIndex:w,component:o,focusVisibleClassName:sU(y.focusVisible,u),className:sU(y.root,f)},p,{ownerState:g,classes:y}))})}));var Q1=G1;function J1(e){var{schema:t,id:r,name:n,options:o,label:a,hideLabel:i,required:s,disabled:l,placeholder:u,readonly:c,value:d,multiple:f,autofocus:p,onChange:h,onBlur:m,onFocus:v,rawErrors:g=[],registry:y,uiSchema:b,hideError:w,formContext:S}=e,x=ov(e,["schema","id","name","options","label","hideLabel","required","disabled","placeholder","readonly","value","multiple","autofocus","onChange","onBlur","onFocus","rawErrors","registry","uiSchema","hideError","formContext"]);const{enumOptions:_,enumDisabled:$,emptyValue:k}=o,E=(f=void 0!==f&&!!f)?[]:"",j=void 0===d||f&&d.length<1||!f&&d===E,C=Bj(d,_,f);return Yj.jsx(DX,Object.assign({id:r,name:r,label:FC(a||void 0,i,!1),value:j||void 0===C?E:C,required:s,disabled:l||c,autoFocus:p,placeholder:u,error:g.length>0,onChange:({target:{value:e}})=>h(zj(e,_,k)),onBlur:({target:{value:e}})=>m(r,zj(e,_,k)),onFocus:({target:{value:e}})=>v(r,zj(e,_,k))},x,{select:!0,InputLabelProps:Object.assign(Object.assign({},x.InputLabelProps),{shrink:!j}),SelectProps:Object.assign(Object.assign({},x.SelectProps),{multiple:f}),"aria-describedby":IC(r)},{children:Array.isArray(_)&&_.map((({value:e,label:t},r)=>{const n=Array.isArray($)&&-1!==$.indexOf(e);return Yj.jsx(Q1,Object.assign({value:String(r),disabled:n},{children:t}),r)}))}))}function Y1(e){const{options:t,registry:r}=e,n=Jj("BaseInputTemplate",r,t);let o=5;return"string"!=typeof t.rows&&"number"!=typeof t.rows||(o=t.rows),Yj.jsx(n,Object.assign({},e,{multiline:!0,rows:o}))}function X1(){return{CheckboxWidget:r1,CheckboxesWidget:l1,RadioWidget:j1,RangeWidget:U1,SelectWidget:J1,TextareaWidget:Y1}}const Z1=(e2={templates:{ArrayFieldItemTemplate:aQ,ArrayFieldTemplate:iQ,BaseInputTemplate:BX,ButtonTemplates:{AddButton:FG,CopyButton:e0,MoveDownButton:t0,MoveUpButton:r0,RemoveButton:n0,SubmitButton:b0},DescriptionFieldTemplate:QX,ErrorListTemplate:CZ,FieldErrorTemplate:o0,FieldHelpTemplate:a0,FieldTemplate:i0,ObjectFieldTemplate:s0,TitleFieldTemplate:j0,WrapIfAdditionalTemplate:C0},widgets:{...X1(),SelectWidget:e=>{const r=X1().SelectWidget;return B.createElement(r,t({},e,{SelectProps:{...e.SelectProps||{},MenuProps:{autoFocus:!1,disableAutoFocusItem:!0,disableEnforceFocus:!0,disableAutoFocus:!0}}}))}}},a.forwardRef(((e,t)=>{var r,{fields:n,widgets:o,templates:a}=e,i=ov(e,["fields","widgets","templates"]);return n=Object.assign(Object.assign({},null==e2?void 0:e2.fields),n),o=Object.assign(Object.assign({},null==e2?void 0:e2.widgets),o),a=Object.assign(Object.assign(Object.assign({},null==e2?void 0:e2.templates),a),{ButtonTemplates:Object.assign(Object.assign({},null===(r=null==e2?void 0:e2.templates)||void 0===r?void 0:r.ButtonTemplates),null==a?void 0:a.ButtonTemplates)}),Yj.jsx(gV,Object.assign({},e2,i,{fields:n,widgets:o,templates:a,ref:t}))})));var e2;function t2(){const e=frameData.app.context,t=["form-data"];return e.organization_id&&t.push(e.organization_id),e.project_id&&t.push(e.project_id),t.join("-")}const r2={htmlWidget:function(e){const{value:t,options:{content:r}}=e,n=a.useRef();return a.useEffect((()=>{const e=t||r,o=document.createRange().createContextualFragment(e);n.current.append(o)}),[]),B.createElement("div",{ref:n})}};function n2(e={},t,r){const n=U.createRoot(document.getElementById("form"));if(AP&&AP._data&&AP._data.app&&["modal","editor-right-panel"].includes(AP._data.app.type)){const e=document.getElementById("card");e.style.border="none",e.style.overflow="initial",e.removeAttribute("is-shadowed"),e.setAttribute("without-p",!0),e.parentElement.style.padding="16px",e.parentElement.style.paddingBottom="0px"}n.render(B.createElement(Z1,{widgets:r2,formData:e,validator:Zz,schema:t||window.formSchema,uiSchema:r||window.formUiSchema,onSubmit:e=>{!function(e){document.getElementById("form-loading").style.display="flex",checkOrigin().then((t=>fetch(formPostDataUrl+t+"&id="+t2(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:e,context:frameData.app.context})}))).then(checkResponse).then((e=>{e&&e.message||showToast("Settings successfully saved"),document.getElementById("form-loading").style.display="none",e&&(e.formData||e.formSchema||e.formUiSchema)&&n2(e.formData,e.formSchema,e.formUiSchema),e&&e.redirect&&(window.location=e.redirect)})).catch((e=>{catchRejection(e,"Can't save settings"),document.getElementById("form-loading").style.display="none"}))}(e.formData)}})),document.getElementById("form-loading").style.display="none"}checkOrigin().then((e=>{const t=new URLSearchParams(frameData.app.context).toString(),r=new URLSearchParams(e+"&id="+t2());return r.set("context",t),fetch(formGetDataUrl+"?"+r.toString(),{method:"GET"})})).then(checkResponse).catch((e=>catchRejection(e,"Can't load saved settings"))).then((e=>{n2(e.formData,e.formSchema,e.formUiSchema)})).catch((()=>n2({})))}();