UNPKG

@thinkitive/form-builder

Version:

A drag-and-drop JSON Forms Builder for React

541 lines 1.52 MB
"use strict";var SM=Object.defineProperty;var TM=(e,t,n)=>t in e?SM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ae=(e,t,n)=>TM(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react"),La=require("react-dom");function bO(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const I=bO(B),OM=bO(La);var Dn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gm={exports:{}},nl={};/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var H0;function EM(){if(H0)return nl;H0=1;var e=B,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(l,c,u){var d,f={},h=null,p=null;u!==void 0&&(h=""+u),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(p=c.ref);for(d in c)r.call(c,d)&&!a.hasOwnProperty(d)&&(f[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)f[d]===void 0&&(f[d]=c[d]);return{$$typeof:t,type:l,key:h,ref:p,props:f,_owner:i.current}}return nl.Fragment=n,nl.jsx=s,nl.jsxs=s,nl}var rl={};/**
 * @license React
 * react-jsx-runtime.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Y0;function CM(){return Y0||(Y0=1,process.env.NODE_ENV!=="production"&&function(){var e=B,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),b=Symbol.iterator,m="@@iterator";function y(se){if(se===null||typeof se!="object")return null;var Re=b&&se[b]||se[m];return typeof Re=="function"?Re:null}var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(se){{for(var Re=arguments.length,je=new Array(Re>1?Re-1:0),Qe=1;Qe<Re;Qe++)je[Qe-1]=arguments[Qe];x("error",se,je)}}function x(se,Re,je){{var Qe=g.ReactDebugCurrentFrame,Ot=Qe.getStackAddendum();Ot!==""&&(Re+="%s",je=je.concat([Ot]));var Ft=je.map(function(wt){return String(wt)});Ft.unshift("Warning: "+Re),Function.prototype.apply.call(console[se],console,Ft)}}var w=!1,S=!1,O=!1,C=!1,P=!1,k;k=Symbol.for("react.module.reference");function E(se){return!!(typeof se=="string"||typeof se=="function"||se===r||se===a||P||se===i||se===u||se===d||C||se===p||w||S||O||typeof se=="object"&&se!==null&&(se.$$typeof===h||se.$$typeof===f||se.$$typeof===s||se.$$typeof===l||se.$$typeof===c||se.$$typeof===k||se.getModuleId!==void 0))}function _(se,Re,je){var Qe=se.displayName;if(Qe)return Qe;var Ot=Re.displayName||Re.name||"";return Ot!==""?je+"("+Ot+")":je}function T(se){return se.displayName||"Context"}function $(se){if(se==null)return null;if(typeof se.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof se=="function")return se.displayName||se.name||null;if(typeof se=="string")return se;switch(se){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof se=="object")switch(se.$$typeof){case l:var Re=se;return T(Re)+".Consumer";case s:var je=se;return T(je._context)+".Provider";case c:return _(se,se.render,"ForwardRef");case f:var Qe=se.displayName||null;return Qe!==null?Qe:$(se.type)||"Memo";case h:{var Ot=se,Ft=Ot._payload,wt=Ot._init;try{return $(wt(Ft))}catch{return null}}}return null}var M=Object.assign,j=0,W,U,K,H,F,R,V;function z(){}z.__reactDisabledLog=!0;function L(){{if(j===0){W=console.log,U=console.info,K=console.warn,H=console.error,F=console.group,R=console.groupCollapsed,V=console.groupEnd;var se={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:se,log:se,warn:se,error:se,group:se,groupCollapsed:se,groupEnd:se})}j++}}function A(){{if(j--,j===0){var se={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},se,{value:W}),info:M({},se,{value:U}),warn:M({},se,{value:K}),error:M({},se,{value:H}),group:M({},se,{value:F}),groupCollapsed:M({},se,{value:R}),groupEnd:M({},se,{value:V})})}j<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var N=g.ReactCurrentDispatcher,q;function Y(se,Re,je){{if(q===void 0)try{throw Error()}catch(Ot){var Qe=Ot.stack.trim().match(/\n( *(at )?)/);q=Qe&&Qe[1]||""}return`
`+q+se}}var G=!1,X;{var Q=typeof WeakMap=="function"?WeakMap:Map;X=new Q}function Z(se,Re){if(!se||G)return"";{var je=X.get(se);if(je!==void 0)return je}var Qe;G=!0;var Ot=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ft;Ft=N.current,N.current=null,L();try{if(Re){var wt=function(){throw Error()};if(Object.defineProperty(wt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(wt,[])}catch($t){Qe=$t}Reflect.construct(se,[],wt)}else{try{wt.call()}catch($t){Qe=$t}se.call(wt.prototype)}}else{try{throw Error()}catch($t){Qe=$t}se()}}catch($t){if($t&&Qe&&typeof $t.stack=="string"){for(var bt=$t.stack.split(`
`),xe=Qe.stack.split(`
`),be=bt.length-1,Ne=xe.length-1;be>=1&&Ne>=0&&bt[be]!==xe[Ne];)Ne--;for(;be>=1&&Ne>=0;be--,Ne--)if(bt[be]!==xe[Ne]){if(be!==1||Ne!==1)do if(be--,Ne--,Ne<0||bt[be]!==xe[Ne]){var tt=`
`+bt[be].replace(" at new "," at ");return se.displayName&&tt.includes("<anonymous>")&&(tt=tt.replace("<anonymous>",se.displayName)),typeof se=="function"&&X.set(se,tt),tt}while(be>=1&&Ne>=0);break}}}finally{G=!1,N.current=Ft,A(),Error.prepareStackTrace=Ot}var it=se?se.displayName||se.name:"",At=it?Y(it):"";return typeof se=="function"&&X.set(se,At),At}function ce(se,Re,je){return Z(se,!1)}function ue(se){var Re=se.prototype;return!!(Re&&Re.isReactComponent)}function ye(se,Re,je){if(se==null)return"";if(typeof se=="function")return Z(se,ue(se));if(typeof se=="string")return Y(se);switch(se){case u:return Y("Suspense");case d:return Y("SuspenseList")}if(typeof se=="object")switch(se.$$typeof){case c:return ce(se.render);case f:return ye(se.type,Re,je);case h:{var Qe=se,Ot=Qe._payload,Ft=Qe._init;try{return ye(Ft(Ot),Re,je)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,pe={},J=g.ReactDebugCurrentFrame;function oe(se){if(se){var Re=se._owner,je=ye(se.type,se._source,Re?Re.type:null);J.setExtraStackFrame(je)}else J.setExtraStackFrame(null)}function te(se,Re,je,Qe,Ot){{var Ft=Function.call.bind(de);for(var wt in se)if(Ft(se,wt)){var bt=void 0;try{if(typeof se[wt]!="function"){var xe=Error((Qe||"React class")+": "+je+" type `"+wt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof se[wt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw xe.name="Invariant Violation",xe}bt=se[wt](Re,wt,Qe,je,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){bt=be}bt&&!(bt instanceof Error)&&(oe(Ot),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Qe||"React class",je,wt,typeof bt),oe(null)),bt instanceof Error&&!(bt.message in pe)&&(pe[bt.message]=!0,oe(Ot),v("Failed %s type: %s",je,bt.message),oe(null))}}}var le=Array.isArray;function re(se){return le(se)}function Ee(se){{var Re=typeof Symbol=="function"&&Symbol.toStringTag,je=Re&&se[Symbol.toStringTag]||se.constructor.name||"Object";return je}}function Pe(se){try{return fe(se),!1}catch{return!0}}function fe(se){return""+se}function ge(se){if(Pe(se))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ee(se)),fe(se)}var De=g.ReactCurrentOwner,Me={key:!0,ref:!0,__self:!0,__source:!0},Ie,he;function me(se){if(de.call(se,"ref")){var Re=Object.getOwnPropertyDescriptor(se,"ref").get;if(Re&&Re.isReactWarning)return!1}return se.ref!==void 0}function Be(se){if(de.call(se,"key")){var Re=Object.getOwnPropertyDescriptor(se,"key").get;if(Re&&Re.isReactWarning)return!1}return se.key!==void 0}function Ue(se,Re){typeof se.ref=="string"&&De.current}function We(se,Re){{var je=function(){Ie||(Ie=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Re))};je.isReactWarning=!0,Object.defineProperty(se,"key",{get:je,configurable:!0})}}function lt(se,Re){{var je=function(){he||(he=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Re))};je.isReactWarning=!0,Object.defineProperty(se,"ref",{get:je,configurable:!0})}}var kt=function(se,Re,je,Qe,Ot,Ft,wt){var bt={$$typeof:t,type:se,key:Re,ref:je,props:wt,_owner:Ft};return bt._store={},Object.defineProperty(bt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(bt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Qe}),Object.defineProperty(bt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ot}),Object.freeze&&(Object.freeze(bt.props),Object.freeze(bt)),bt};function et(se,Re,je,Qe,Ot){{var Ft,wt={},bt=null,xe=null;je!==void 0&&(ge(je),bt=""+je),Be(Re)&&(ge(Re.key),bt=""+Re.key),me(Re)&&(xe=Re.ref,Ue(Re,Ot));for(Ft in Re)de.call(Re,Ft)&&!Me.hasOwnProperty(Ft)&&(wt[Ft]=Re[Ft]);if(se&&se.defaultProps){var be=se.defaultProps;for(Ft in be)wt[Ft]===void 0&&(wt[Ft]=be[Ft])}if(bt||xe){var Ne=typeof se=="function"?se.displayName||se.name||"Unknown":se;bt&&We(wt,Ne),xe&&lt(wt,Ne)}return kt(se,bt,xe,Ot,Qe,De.current,wt)}}var ht=g.ReactCurrentOwner,Tt=g.ReactDebugCurrentFrame;function ie(se){if(se){var Re=se._owner,je=ye(se.type,se._source,Re?Re.type:null);Tt.setExtraStackFrame(je)}else Tt.setExtraStackFrame(null)}var Ce;Ce=!1;function Oe(se){return typeof se=="object"&&se!==null&&se.$$typeof===t}function Le(){{if(ht.current){var se=$(ht.current.type);if(se)return`

Check the render method of \``+se+"`."}return""}}function Se(se){return""}var Ye={};function nt(se){{var Re=Le();if(!Re){var je=typeof se=="string"?se:se.displayName||se.name;je&&(Re=`

Check the top-level render call using <`+je+">.")}return Re}}function Ve(se,Re){{if(!se._store||se._store.validated||se.key!=null)return;se._store.validated=!0;var je=nt(Re);if(Ye[je])return;Ye[je]=!0;var Qe="";se&&se._owner&&se._owner!==ht.current&&(Qe=" It was passed a child from "+$(se._owner.type)+"."),ie(se),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',je,Qe),ie(null)}}function Dt(se,Re){{if(typeof se!="object")return;if(re(se))for(var je=0;je<se.length;je++){var Qe=se[je];Oe(Qe)&&Ve(Qe,Re)}else if(Oe(se))se._store&&(se._store.validated=!0);else if(se){var Ot=y(se);if(typeof Ot=="function"&&Ot!==se.entries)for(var Ft=Ot.call(se),wt;!(wt=Ft.next()).done;)Oe(wt.value)&&Ve(wt.value,Re)}}}function Fe(se){{var Re=se.type;if(Re==null||typeof Re=="string")return;var je;if(typeof Re=="function")je=Re.propTypes;else if(typeof Re=="object"&&(Re.$$typeof===c||Re.$$typeof===f))je=Re.propTypes;else return;if(je){var Qe=$(Re);te(je,se.props,"prop",Qe,se)}else if(Re.PropTypes!==void 0&&!Ce){Ce=!0;var Ot=$(Re);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ot||"Unknown")}typeof Re.getDefaultProps=="function"&&!Re.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ze(se){{for(var Re=Object.keys(se.props),je=0;je<Re.length;je++){var Qe=Re[je];if(Qe!=="children"&&Qe!=="key"){ie(se),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Qe),ie(null);break}}se.ref!==null&&(ie(se),v("Invalid attribute `ref` supplied to `React.Fragment`."),ie(null))}}var ut={};function gt(se,Re,je,Qe,Ot,Ft){{var wt=E(se);if(!wt){var bt="";(se===void 0||typeof se=="object"&&se!==null&&Object.keys(se).length===0)&&(bt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var xe=Se();xe?bt+=xe:bt+=Le();var be;se===null?be="null":re(se)?be="array":se!==void 0&&se.$$typeof===t?(be="<"+($(se.type)||"Unknown")+" />",bt=" Did you accidentally export a JSX literal instead of a component?"):be=typeof se,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,bt)}var Ne=et(se,Re,je,Ot,Ft);if(Ne==null)return Ne;if(wt){var tt=Re.children;if(tt!==void 0)if(Qe)if(re(tt)){for(var it=0;it<tt.length;it++)Dt(tt[it],se);Object.freeze&&Object.freeze(tt)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Dt(tt,se)}if(de.call(Re,"key")){var At=$(se),$t=Object.keys(Re).filter(function(yu){return yu!=="key"}),Rn=$t.length>0?"{key: someKey, "+$t.join(": ..., ")+": ...}":"{key: someKey}";if(!ut[At+Rn]){var ti=$t.length>0?"{"+$t.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX:
  let props = %s;
  <%s {...props} />
React keys must be passed directly to JSX without using spread:
  let props = %s;
  <%s key={someKey} {...props} />`,Rn,At,ti,At),ut[At+Rn]=!0}}return se===r?Ze(Ne):Fe(Ne),Ne}}function Lt(se,Re,je){return gt(se,Re,je,!0)}function zn(se,Re,je){return gt(se,Re,je,!1)}var yr=zn,Xr=Lt;rl.Fragment=r,rl.jsx=yr,rl.jsxs=Xr}()),rl}process.env.NODE_ENV==="production"?gm.exports=EM():gm.exports=CM();var D=gm.exports;function $o(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ee.apply(null,arguments)}function PM(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]}function _M(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var kM=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(_M(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=PM(i);try{a.insertRule(r,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Un="-ms-",yd="-moz-",Bt="-webkit-",vO="comm",Ry="rule",My="decl",DM="@import",wO="@keyframes",$M="@layer",RM=Math.abs,hf=String.fromCharCode,MM=Object.assign;function IM(e,t){return Ln(e,0)^45?(((t<<2^Ln(e,0))<<2^Ln(e,1))<<2^Ln(e,2))<<2^Ln(e,3):0}function xO(e){return e.trim()}function NM(e,t){return(e=t.exec(e))?e[0]:e}function Vt(e,t,n){return e.replace(t,n)}function bm(e,t){return e.indexOf(t)}function Ln(e,t){return e.charCodeAt(t)|0}function Zl(e,t,n){return e.slice(t,n)}function bo(e){return e.length}function Iy(e){return e.length}function vu(e,t){return t.push(e),e}function AM(e,t){return e.map(t).join("")}var mf=1,ts=1,SO=0,ur=0,Cn=0,Es="";function yf(e,t,n,r,i,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:mf,column:ts,length:s,return:""}}function ol(e,t){return MM(yf("",null,null,"",null,null,0),e,{length:-e.length},t)}function jM(){return Cn}function LM(){return Cn=ur>0?Ln(Es,--ur):0,ts--,Cn===10&&(ts=1,mf--),Cn}function xr(){return Cn=ur<SO?Ln(Es,ur++):0,ts++,Cn===10&&(ts=1,mf++),Cn}function Po(){return Ln(Es,ur)}function Zu(){return ur}function Tc(e,t){return Zl(Es,e,t)}function Ql(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 TO(e){return mf=ts=1,SO=bo(Es=e),ur=0,[]}function OO(e){return Es="",e}function Qu(e){return xO(Tc(ur-1,vm(e===91?e+2:e===40?e+1:e)))}function FM(e){for(;(Cn=Po())&&Cn<33;)xr();return Ql(e)>2||Ql(Cn)>3?"":" "}function BM(e,t){for(;--t&&xr()&&!(Cn<48||Cn>102||Cn>57&&Cn<65||Cn>70&&Cn<97););return Tc(e,Zu()+(t<6&&Po()==32&&xr()==32))}function vm(e){for(;xr();)switch(Cn){case e:return ur;case 34:case 39:e!==34&&e!==39&&vm(Cn);break;case 40:e===41&&vm(e);break;case 92:xr();break}return ur}function VM(e,t){for(;xr()&&e+Cn!==57;)if(e+Cn===84&&Po()===47)break;return"/*"+Tc(t,ur-1)+"*"+hf(e===47?e:xr())}function zM(e){for(;!Ql(Po());)xr();return Tc(e,ur)}function WM(e){return OO(Ju("",null,null,null,[""],e=TO(e),0,[0],e))}function Ju(e,t,n,r,i,a,s,l,c){for(var u=0,d=0,f=s,h=0,p=0,b=0,m=1,y=1,g=1,v=0,x="",w=i,S=a,O=r,C=x;y;)switch(b=v,v=xr()){case 40:if(b!=108&&Ln(C,f-1)==58){bm(C+=Vt(Qu(v),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:C+=Qu(v);break;case 9:case 10:case 13:case 32:C+=FM(b);break;case 92:C+=BM(Zu()-1,7);continue;case 47:switch(Po()){case 42:case 47:vu(UM(VM(xr(),Zu()),t,n),c);break;default:C+="/"}break;case 123*m:l[u++]=bo(C)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+d:g==-1&&(C=Vt(C,/\f/g,"")),p>0&&bo(C)-f&&vu(p>32?K0(C+";",r,n,f-1):K0(Vt(C," ","")+";",r,n,f-2),c);break;case 59:C+=";";default:if(vu(O=G0(C,t,n,u,d,i,l,x,w=[],S=[],f),a),v===123)if(d===0)Ju(C,t,O,O,w,a,f,l,S);else switch(h===99&&Ln(C,3)===110?100:h){case 100:case 108:case 109:case 115:Ju(e,O,O,r&&vu(G0(e,O,O,0,0,i,l,x,i,w=[],f),S),i,S,f,l,r?w:S);break;default:Ju(C,O,O,O,[""],S,0,l,S)}}u=d=p=0,m=g=1,x=C="",f=s;break;case 58:f=1+bo(C),p=b;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&LM()==125)continue}switch(C+=hf(v),v*m){case 38:g=d>0?1:(C+="\f",-1);break;case 44:l[u++]=(bo(C)-1)*g,g=1;break;case 64:Po()===45&&(C+=Qu(xr())),h=Po(),d=f=bo(x=C+=zM(Zu())),v++;break;case 45:b===45&&bo(C)==2&&(m=0)}}return a}function G0(e,t,n,r,i,a,s,l,c,u,d){for(var f=i-1,h=i===0?a:[""],p=Iy(h),b=0,m=0,y=0;b<r;++b)for(var g=0,v=Zl(e,f+1,f=RM(m=s[b])),x=e;g<p;++g)(x=xO(m>0?h[g]+" "+v:Vt(v,/&\f/g,h[g])))&&(c[y++]=x);return yf(e,t,n,i===0?Ry:l,c,u,d)}function UM(e,t,n){return yf(e,t,n,vO,hf(jM()),Zl(e,2,-2),0)}function K0(e,t,n,r){return yf(e,t,n,My,Zl(e,0,r),Zl(e,r+1,-1),r)}function qa(e,t){for(var n="",r=Iy(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function qM(e,t,n,r){switch(e.type){case $M:if(e.children.length)break;case DM:case My:return e.return=e.return||e.value;case vO:return"";case wO:return e.return=e.value+"{"+qa(e.children,r)+"}";case Ry:e.value=e.props.join(",")}return bo(n=qa(e.children,r))?e.return=e.value+"{"+n+"}":""}function HM(e){var t=Iy(e);return function(n,r,i,a){for(var s="",l=0;l<t;l++)s+=e[l](n,r,i,a)||"";return s}}function YM(e){return function(t){t.root||(t=t.return)&&e(t)}}function EO(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var GM=function(t,n,r){for(var i=0,a=0;i=a,a=Po(),i===38&&a===12&&(n[r]=1),!Ql(a);)xr();return Tc(t,ur)},KM=function(t,n){var r=-1,i=44;do switch(Ql(i)){case 0:i===38&&Po()===12&&(n[r]=1),t[r]+=GM(ur-1,n,r);break;case 2:t[r]+=Qu(i);break;case 4:if(i===44){t[++r]=Po()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=hf(i)}while(i=xr());return t},XM=function(t,n){return OO(KM(TO(t),n))},X0=new WeakMap,ZM=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!X0.get(r))&&!i){X0.set(t,!0);for(var a=[],s=XM(n,a),l=r.props,c=0,u=0;c<s.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=a[c]?s[c].replace(/&\f/g,l[d]):l[d]+" "+s[c]}}},QM=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function CO(e,t){switch(IM(e,t)){case 5103:return Bt+"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 Bt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Bt+e+yd+e+Un+e+e;case 6828:case 4268:return Bt+e+Un+e+e;case 6165:return Bt+e+Un+"flex-"+e+e;case 5187:return Bt+e+Vt(e,/(\w+).+(:[^]+)/,Bt+"box-$1$2"+Un+"flex-$1$2")+e;case 5443:return Bt+e+Un+"flex-item-"+Vt(e,/flex-|-self/,"")+e;case 4675:return Bt+e+Un+"flex-line-pack"+Vt(e,/align-content|flex-|-self/,"")+e;case 5548:return Bt+e+Un+Vt(e,"shrink","negative")+e;case 5292:return Bt+e+Un+Vt(e,"basis","preferred-size")+e;case 6060:return Bt+"box-"+Vt(e,"-grow","")+Bt+e+Un+Vt(e,"grow","positive")+e;case 4554:return Bt+Vt(e,/([^-])(transform)/g,"$1"+Bt+"$2")+e;case 6187:return Vt(Vt(Vt(e,/(zoom-|grab)/,Bt+"$1"),/(image-set)/,Bt+"$1"),e,"")+e;case 5495:case 3959:return Vt(e,/(image-set\([^]*)/,Bt+"$1$`$1");case 4968:return Vt(Vt(e,/(.+:)(flex-)?(.*)/,Bt+"box-pack:$3"+Un+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Bt+e+e;case 4095:case 3583:case 4068:case 2532:return Vt(e,/(.+)-inline(.+)/,Bt+"$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(bo(e)-1-t>6)switch(Ln(e,t+1)){case 109:if(Ln(e,t+4)!==45)break;case 102:return Vt(e,/(.+:)(.+)-([^]+)/,"$1"+Bt+"$2-$3$1"+yd+(Ln(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bm(e,"stretch")?CO(Vt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ln(e,t+1)!==115)break;case 6444:switch(Ln(e,bo(e)-3-(~bm(e,"!important")&&10))){case 107:return Vt(e,":",":"+Bt)+e;case 101:return Vt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Bt+(Ln(e,14)===45?"inline-":"")+"box$3$1"+Bt+"$2$3$1"+Un+"$2box$3")+e}break;case 5936:switch(Ln(e,t+11)){case 114:return Bt+e+Un+Vt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Bt+e+Un+Vt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Bt+e+Un+Vt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Bt+e+Un+e+e}return e}var JM=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case My:t.return=CO(t.value,t.length);break;case wO:return qa([ol(t,{value:Vt(t.value,"@","@"+Bt)})],i);case Ry:if(t.length)return AM(t.props,function(a){switch(NM(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qa([ol(t,{props:[Vt(a,/:(read-\w+)/,":"+yd+"$1")]})],i);case"::placeholder":return qa([ol(t,{props:[Vt(a,/:(plac\w+)/,":"+Bt+"input-$1")]}),ol(t,{props:[Vt(a,/:(plac\w+)/,":"+yd+"$1")]}),ol(t,{props:[Vt(a,/:(plac\w+)/,Un+"input-$1")]})],i)}return""})}},eI=[JM],tI=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||eI,a={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var y=m.getAttribute("data-emotion").split(" "),g=1;g<y.length;g++)a[y[g]]=!0;l.push(m)});var c,u=[ZM,QM];{var d,f=[qM,YM(function(m){d.insert(m)})],h=HM(u.concat(i,f)),p=function(y){return qa(WM(y),h)};c=function(y,g,v,x){d=v,p(y?y+"{"+g.styles+"}":g.styles),x&&(b.inserted[g.name]=!0)}}var b={key:n,sheet:new kM({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return b.sheet.hydrate(l),b},wm={exports:{}},Wt={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Z0;function nI(){if(Z0)return Wt;Z0=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case t:switch(S=S.type,S){case c:case u:case r:case a:case i:case f:return S;default:switch(S=S&&S.$$typeof,S){case l:case d:case b:case p:case s:return S;default:return O}}case n:return O}}}function w(S){return x(S)===u}return Wt.AsyncMode=c,Wt.ConcurrentMode=u,Wt.ContextConsumer=l,Wt.ContextProvider=s,Wt.Element=t,Wt.ForwardRef=d,Wt.Fragment=r,Wt.Lazy=b,Wt.Memo=p,Wt.Portal=n,Wt.Profiler=a,Wt.StrictMode=i,Wt.Suspense=f,Wt.isAsyncMode=function(S){return w(S)||x(S)===c},Wt.isConcurrentMode=w,Wt.isContextConsumer=function(S){return x(S)===l},Wt.isContextProvider=function(S){return x(S)===s},Wt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Wt.isForwardRef=function(S){return x(S)===d},Wt.isFragment=function(S){return x(S)===r},Wt.isLazy=function(S){return x(S)===b},Wt.isMemo=function(S){return x(S)===p},Wt.isPortal=function(S){return x(S)===n},Wt.isProfiler=function(S){return x(S)===a},Wt.isStrictMode=function(S){return x(S)===i},Wt.isSuspense=function(S){return x(S)===f},Wt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===a||S===i||S===f||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===b||S.$$typeof===p||S.$$typeof===s||S.$$typeof===l||S.$$typeof===d||S.$$typeof===y||S.$$typeof===g||S.$$typeof===v||S.$$typeof===m)},Wt.typeOf=x,Wt}var Ut={};/** @license React v16.13.1
 * react-is.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Q0;function rI(){return Q0||(Q0=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===u||Z===a||Z===i||Z===f||Z===h||typeof Z=="object"&&Z!==null&&(Z.$$typeof===b||Z.$$typeof===p||Z.$$typeof===s||Z.$$typeof===l||Z.$$typeof===d||Z.$$typeof===y||Z.$$typeof===g||Z.$$typeof===v||Z.$$typeof===m)}function w(Z){if(typeof Z=="object"&&Z!==null){var ce=Z.$$typeof;switch(ce){case t:var ue=Z.type;switch(ue){case c:case u:case r:case a:case i:case f:return ue;default:var ye=ue&&ue.$$typeof;switch(ye){case l:case d:case b:case p:case s:return ye;default:return ce}}case n:return ce}}}var S=c,O=u,C=l,P=s,k=t,E=d,_=r,T=b,$=p,M=n,j=a,W=i,U=f,K=!1;function H(Z){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(Z)||w(Z)===c}function F(Z){return w(Z)===u}function R(Z){return w(Z)===l}function V(Z){return w(Z)===s}function z(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function L(Z){return w(Z)===d}function A(Z){return w(Z)===r}function N(Z){return w(Z)===b}function q(Z){return w(Z)===p}function Y(Z){return w(Z)===n}function G(Z){return w(Z)===a}function X(Z){return w(Z)===i}function Q(Z){return w(Z)===f}Ut.AsyncMode=S,Ut.ConcurrentMode=O,Ut.ContextConsumer=C,Ut.ContextProvider=P,Ut.Element=k,Ut.ForwardRef=E,Ut.Fragment=_,Ut.Lazy=T,Ut.Memo=$,Ut.Portal=M,Ut.Profiler=j,Ut.StrictMode=W,Ut.Suspense=U,Ut.isAsyncMode=H,Ut.isConcurrentMode=F,Ut.isContextConsumer=R,Ut.isContextProvider=V,Ut.isElement=z,Ut.isForwardRef=L,Ut.isFragment=A,Ut.isLazy=N,Ut.isMemo=q,Ut.isPortal=Y,Ut.isProfiler=G,Ut.isStrictMode=X,Ut.isSuspense=Q,Ut.isValidElementType=x,Ut.typeOf=w}()),Ut}process.env.NODE_ENV==="production"?wm.exports=nI():wm.exports=rI();var oI=wm.exports,PO=oI,iI={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},aI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_O={};_O[PO.ForwardRef]=iI;_O[PO.Memo]=aI;var sI=!0;function kO(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Ny=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||sI===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Ay=function(t,n,r){Ny(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function lI(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var cI={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,scale: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},uI=/[A-Z]|^ms/g,dI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,DO=function(t){return t.charCodeAt(1)===45},J0=function(t){return t!=null&&typeof t!="boolean"},ah=EO(function(e){return DO(e)?e:e.replace(uI,"-$&").toLowerCase()}),e1=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(dI,function(r,i,a){return vo={name:i,styles:a,next:vo},i})}return cI[t]!==1&&!DO(t)&&typeof n=="number"&&n!==0?n+"px":n};function Jl(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return vo={name:i.name,styles:i.styles,next:vo},i.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)vo={name:s.name,styles:s.styles,next:vo},s=s.next;var l=a.styles+";";return l}return fI(e,t,n)}case"function":{if(e!==void 0){var c=vo,u=n(e);return vo=c,Jl(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function fI(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Jl(e,t,n[i])+";";else for(var a in n){var s=n[a];if(typeof s!="object"){var l=s;t!=null&&t[l]!==void 0?r+=a+"{"+t[l]+"}":J0(l)&&(r+=ah(a)+":"+e1(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var c=0;c<s.length;c++)J0(s[c])&&(r+=ah(a)+":"+e1(a,s[c])+";");else{var u=Jl(e,t,s);switch(a){case"animation":case"animationName":{r+=ah(a)+":"+u+";";break}default:r+=a+"{"+u+"}"}}}return r}var t1=/label:\s*([^\s;{]+)\s*(;|$)/g,vo;function Oc(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";vo=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=Jl(n,t,a);else{var s=a;i+=s[0]}for(var l=1;l<e.length;l++)if(i+=Jl(n,t,e[l]),r){var c=a;i+=c[l]}t1.lastIndex=0;for(var u="",d;(d=t1.exec(i))!==null;)u+="-"+d[1];var f=lI(i)+u;return{name:f,styles:i,next:vo}}var pI=function(t){return t()},$O=I.useInsertionEffect?I.useInsertionEffect:!1,RO=$O||pI,n1=$O||I.useLayoutEffect,MO=I.createContext(typeof HTMLElement<"u"?tI({key:"css"}):null);MO.Provider;var jy=function(t){return B.forwardRef(function(n,r){var i=B.useContext(MO);return t(n,i,r)})},Ec=I.createContext({}),Ly={}.hasOwnProperty,xm="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hI=function(t,n){var r={};for(var i in n)Ly.call(n,i)&&(r[i]=n[i]);return r[xm]=t,r},mI=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Ny(n,r,i),RO(function(){return Ay(n,r,i)}),null},yI=jy(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[xm],a=[r],s="";typeof e.className=="string"?s=kO(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=Oc(a,void 0,I.useContext(Ec));s+=t.key+"-"+l.name;var c={};for(var u in e)Ly.call(e,u)&&u!=="css"&&u!==xm&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),I.createElement(I.Fragment,null,I.createElement(mI,{cache:t,serialized:l,isStringTag:typeof i=="string"}),I.createElement(i,c))}),gI=yI,r1=function(t,n){var r=arguments;if(n==null||!Ly.call(n,"css"))return I.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=gI,a[1]=hI(t,n);for(var s=2;s<i;s++)a[s]=r[s];return I.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(r1||(r1={}));var bI=jy(function(e,t){var n=e.styles,r=Oc([n],void 0,I.useContext(Ec)),i=I.useRef();return n1(function(){var a=t.key+"-global",s=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",a),s.hydrate([c])),i.current=[s,l],function(){s.flush()}},[t]),n1(function(){var a=i.current,s=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&Ay(t,r.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Fy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Oc(t)}function Cc(){var e=Fy.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_"}}}var vI=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,wI=EO(function(e){return vI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),xI=wI,SI=function(t){return t!=="theme"},o1=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?xI:SI},i1=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},TI=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Ny(n,r,i),RO(function(){return Ay(n,r,i)}),null},OI=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var l=i1(t,n,r),c=l||o1(i),u=!c("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var h=d[0];f.push(h[0]);for(var p=d.length,b=1;b<p;b++)f.push(d[b],h[b])}var m=jy(function(y,g,v){var x=u&&y.as||i,w="",S=[],O=y;if(y.theme==null){O={};for(var C in y)O[C]=y[C];O.theme=I.useContext(Ec)}typeof y.className=="string"?w=kO(g.registered,S,y.className):y.className!=null&&(w=y.className+" ");var P=Oc(f.concat(S),g.registered,O);w+=g.key+"-"+P.name,s!==void 0&&(w+=" "+s);var k=u&&l===void 0?o1(x):c,E={};for(var _ in y)u&&_==="as"||k(_)&&(E[_]=y[_]);return E.className=w,v&&(E.ref=v),I.createElement(I.Fragment,null,I.createElement(TI,{cache:g,serialized:P,isStringTag:typeof x=="string"}),I.createElement(x,E))});return m.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=f,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+s}}),m.withComponent=function(y,g){var v=e(y,ee({},n,g,{shouldForwardProp:i1(m,g,!0)}));return v.apply(void 0,f)},m}},EI=["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"],Sm=OI.bind(null);EI.forEach(function(e){Sm[e]=Sm(e)});var Tm={exports:{}},wu={exports:{}},qt={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var a1;function CI(){if(a1)return qt;a1=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case t:switch(S=S.type,S){case c:case u:case r:case a:case i:case f:return S;default:switch(S=S&&S.$$typeof,S){case l:case d:case b:case p:case s:return S;default:return O}}case n:return O}}}function w(S){return x(S)===u}return qt.AsyncMode=c,qt.ConcurrentMode=u,qt.ContextConsumer=l,qt.ContextProvider=s,qt.Element=t,qt.ForwardRef=d,qt.Fragment=r,qt.Lazy=b,qt.Memo=p,qt.Portal=n,qt.Profiler=a,qt.StrictMode=i,qt.Suspense=f,qt.isAsyncMode=function(S){return w(S)||x(S)===c},qt.isConcurrentMode=w,qt.isContextConsumer=function(S){return x(S)===l},qt.isContextProvider=function(S){return x(S)===s},qt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},qt.isForwardRef=function(S){return x(S)===d},qt.isFragment=function(S){return x(S)===r},qt.isLazy=function(S){return x(S)===b},qt.isMemo=function(S){return x(S)===p},qt.isPortal=function(S){return x(S)===n},qt.isProfiler=function(S){return x(S)===a},qt.isStrictMode=function(S){return x(S)===i},qt.isSuspense=function(S){return x(S)===f},qt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===a||S===i||S===f||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===b||S.$$typeof===p||S.$$typeof===s||S.$$typeof===l||S.$$typeof===d||S.$$typeof===y||S.$$typeof===g||S.$$typeof===v||S.$$typeof===m)},qt.typeOf=x,qt}var Ht={};/** @license React v16.13.1
 * react-is.development.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var s1;function PI(){return s1||(s1=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===u||Z===a||Z===i||Z===f||Z===h||typeof Z=="object"&&Z!==null&&(Z.$$typeof===b||Z.$$typeof===p||Z.$$typeof===s||Z.$$typeof===l||Z.$$typeof===d||Z.$$typeof===y||Z.$$typeof===g||Z.$$typeof===v||Z.$$typeof===m)}function w(Z){if(typeof Z=="object"&&Z!==null){var ce=Z.$$typeof;switch(ce){case t:var ue=Z.type;switch(ue){case c:case u:case r:case a:case i:case f:return ue;default:var ye=ue&&ue.$$typeof;switch(ye){case l:case d:case b:case p:case s:return ye;default:return ce}}case n:return ce}}}var S=c,O=u,C=l,P=s,k=t,E=d,_=r,T=b,$=p,M=n,j=a,W=i,U=f,K=!1;function H(Z){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(Z)||w(Z)===c}function F(Z){return w(Z)===u}function R(Z){return w(Z)===l}function V(Z){return w(Z)===s}function z(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function L(Z){return w(Z)===d}function A(Z){return w(Z)===r}function N(Z){return w(Z)===b}function q(Z){return w(Z)===p}function Y(Z){return w(Z)===n}function G(Z){return w(Z)===a}function X(Z){return w(Z)===i}function Q(Z){return w(Z)===f}Ht.AsyncMode=S,Ht.ConcurrentMode=O,Ht.ContextConsumer=C,Ht.ContextProvider=P,Ht.Element=k,Ht.ForwardRef=E,Ht.Fragment=_,Ht.Lazy=T,Ht.Memo=$,Ht.Portal=M,Ht.Profiler=j,Ht.StrictMode=W,Ht.Suspense=U,Ht.isAsyncMode=H,Ht.isConcurrentMode=F,Ht.isContextConsumer=R,Ht.isContextProvider=V,Ht.isElement=z,Ht.isForwardRef=L,Ht.isFragment=A,Ht.isLazy=N,Ht.isMemo=q,Ht.isPortal=Y,Ht.isProfiler=G,Ht.isStrictMode=X,Ht.isSuspense=Q,Ht.isValidElementType=x,Ht.typeOf=w}()),Ht}var l1;function IO(){return l1||(l1=1,process.env.NODE_ENV==="production"?wu.exports=CI():wu.exports=PI()),wu.exports}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var sh,c1;function _I(){if(c1)return sh;c1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(d){return s[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return sh=i()?Object.assign:function(a,s){for(var l,c=r(a),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){u=e(l);for(var h=0;h<u.length;h++)n.call(l,u[h])&&(c[u[h]]=l[u[h]])}}return c},sh}var lh,u1;function By(){if(u1)return lh;u1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return lh=e,lh}var ch,d1;function NO(){return d1||(d1=1,ch=Function.call.bind(Object.prototype.hasOwnProperty)),ch}var uh,f1;function kI(){if(f1)return uh;f1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=By(),n={},r=NO();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(a,s,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var f;try{if(typeof a[d]!="function"){var h=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=a[d](s,d,c,l,null,t)}catch(b){f=b}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var p=u?u():"";e("Failed "+l+" type: "+f.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},uh=i,uh}var dh,p1;function DI(){if(p1)return dh;p1=1;var e=IO(),t=_I(),n=By(),r=NO(),i=kI(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return dh=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(F){var R=F&&(u&&F[u]||F[d]);if(typeof R=="function")return R}var h="<<anonymous>>",p={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:v(),arrayOf:x,element:w(),elementType:S(),instanceOf:O,node:E(),objectOf:P,oneOf:C,oneOfType:k,shape:T,exact:$};function b(F,R){return F===R?F!==0||1/F===1/R:F!==F&&R!==R}function m(F,R){this.message=F,this.data=R&&typeof R=="object"?R:{},this.stack=""}m.prototype=Error.prototype;function y(F){if(process.env.NODE_ENV!=="production")var R={},V=0;function z(A,N,q,Y,G,X,Q){if(Y=Y||h,X=X||q,Q!==n){if(c){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ce=Y+":"+q;!R[ce]&&V<3&&(a("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+Y+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),R[ce]=!0,V++)}}return N[q]==null?A?N[q]===null?new m("The "+G+" `"+X+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new m("The "+G+" `"+X+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:F(N,q,Y,G,X)}var L=z.bind(null,!1);return L.isRequired=z.bind(null,!0),L}function g(F){function R(V,z,L,A,N,q){var Y=V[z],G=W(Y);if(G!==F){var X=U(Y);return new m("Invalid "+A+" `"+N+"` of type "+("`"+X+"` supplied to `"+L+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return y(R)}function v(){return y(s)}function x(F){function R(V,z,L,A,N){if(typeof F!="function")return new m("Property `"+N+"` of component `"+L+"` has invalid PropType notation inside arrayOf.");var q=V[z];if(!Array.isArray(q)){var Y=W(q);return new m("Invalid "+A+" `"+N+"` of type "+("`"+Y+"` supplied to `"+L+"`, expected an array."))}for(var G=0;G<q.length;G++){var X=F(q,G,L,A,N+"["+G+"]",n);if(X instanceof Error)return X}return null}return y(R)}function w(){function F(R,V,z,L,A){var N=R[V];if(!l(N)){var q=W(N);return new m("Invalid "+L+" `"+A+"` of type "+("`"+q+"` supplied to `"+z+"`, expected a single ReactElement."))}return null}return y(F)}function S(){function F(R,V,z,L,A){var N=R[V];if(!e.isValidElementType(N)){var q=W(N);return new m("Invalid "+L+" `"+A+"` of type "+("`"+q+"` supplied to `"+z+"`, expected a single ReactElement type."))}return null}return y(F)}function O(F){function R(V,z,L,A,N){if(!(V[z]instanceof F)){var q=F.name||h,Y=H(V[z]);return new m("Invalid "+A+" `"+N+"` of type "+("`"+Y+"` supplied to `"+L+"`, expected ")+("instance of `"+q+"`."))}return null}return y(R)}function C(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function R(V,z,L,A,N){for(var q=V[z],Y=0;Y<F.length;Y++)if(b(q,F[Y]))return null;var G=JSON.stringify(F,function(Q,Z){var ce=U(Z);return ce==="symbol"?String(Z):Z});return new m("Invalid "+A+" `"+N+"` of value `"+String(q)+"` "+("supplied to `"+L+"`, expected one of "+G+"."))}return y(R)}function P(F){function R(V,z,L,A,N){if(typeof F!="function")return new m("Property `"+N+"` of component `"+L+"` has invalid PropType notation inside objectOf.");var q=V[z],Y=W(q);if(Y!=="object")return new m("Invalid "+A+" `"+N+"` of type "+("`"+Y+"` supplied to `"+L+"`, expected an object."));for(var G in q)if(r(q,G)){var X=F(q,G,L,A,N+"."+G,n);if(X instanceof Error)return X}return null}return y(R)}function k(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var R=0;R<F.length;R++){var V=F[R];if(typeof V!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(V)+" at index "+R+"."),s}function z(L,A,N,q,Y){for(var G=[],X=0;X<F.length;X++){var Q=F[X],Z=Q(L,A,N,q,Y,n);if(Z==null)return null;Z.data&&r(Z.data,"expectedType")&&G.push(Z.data.expectedType)}var ce=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new m("Invalid "+q+" `"+Y+"` supplied to "+("`"+N+"`"+ce+"."))}return y(z)}function E(){function F(R,V,z,L,A){return M(R[V])?null:new m("Invalid "+L+" `"+A+"` supplied to "+("`"+z+"`, expected a ReactNode."))}return y(F)}function _(F,R,V,z,L){return new m((F||"React class")+": "+R+" type `"+V+"."+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+L+"`.")}function T(F){function R(V,z,L,A,N){var q=V[z],Y=W(q);if(Y!=="object")return new m("Invalid "+A+" `"+N+"` of type `"+Y+"` "+("supplied to `"+L+"`, expected `object`."));for(var G in F){var X=F[G];if(typeof X!="function")return _(L,A,N,G,U(X));var Q=X(q,G,L,A,N+"."+G,n);if(Q)return Q}return null}return y(R)}function $(F){function R(V,z,L,A,N){var q=V[z],Y=W(q);if(Y!=="object")return new m("Invalid "+A+" `"+N+"` of type `"+Y+"` "+("supplied to `"+L+"`, expected `object`."));var G=t({},V[z],F);for(var X in G){var Q=F[X];if(r(F,X)&&typeof Q!="function")return _(L,A,N,X,U(Q));if(!Q)return new m("Invalid "+A+" `"+N+"` key `"+X+"` supplied to `"+L+"`.\nBad object: "+JSON.stringify(V[z],null,"  ")+`
Valid keys: `+JSON.stringify(Object.keys(F),null,"  "));var Z=Q(q,X,L,A,N+"."+X,n);if(Z)return Z}return null}return y(R)}function M(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(M);if(F===null||l(F))return!0;var R=f(F);if(R){var V=R.call(F),z;if(R!==F.entries){for(;!(z=V.next()).done;)if(!M(z.value))return!1}else for(;!(z=V.next()).done;){var L=z.value;if(L&&!M(L[1]))return!1}}else return!1;return!0;default:return!1}}function j(F,R){return F==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function W(F){var R=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":j(R,F)?"symbol":R}function U(F){if(typeof F>"u"||F===null)return""+F;var R=W(F);if(R==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return R}function K(F){var R=U(F);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function H(F){return!F.constructor||!F.constructor.name?h:F.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},dh}var fh,h1;function $I(){if(h1)return fh;h1=1;var e=By();function t(){}function n(){}return n.resetWarningCache=t,fh=function(){function r(s,l,c,u,d,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},fh}if(process.env.NODE_ENV!=="production"){var RI=IO(),MI=!0;Tm.exports=DI()(RI.isElement,MI)}else Tm.exports=$I()();var II=Tm.exports;const o=Mt(II);function NI(e){return e==null||Object.keys(e).length===0}function Vy(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(NI(i)?n:i):t;return D.jsx(bI,{styles:r})}process.env.NODE_ENV!=="production"&&(Vy.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});/**
 * @mui/styled-engine v7.3.2
 *
 * @license MIT
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function AO(e,t){const n=Sm(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
`)):r.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}function AI(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const m1=[];function hi(e){return m1[0]=e,Oc(m1)}var Om={exports:{}},Zt={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var y1;function jI(){if(y1)return Zt;y1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function b(m){if(typeof m=="object"&&m!==null){var y=m.$$typeof;switch(y){case e:switch(m=m.type,m){case n:case i:case r:case c:case u:case h:return m;default:switch(m=m&&m.$$typeof,m){case s:case l:case f:case d:return m;case a:return m;default:return y}}case t:return y}}}return Zt.ContextConsumer=a,Zt.ContextProvider=s,Zt.Element=e,Zt.ForwardRef=l,Zt.Fragment=n,Zt.Lazy=f,Zt.Memo=d,Zt.Portal=t,Zt.Profiler=i,Zt.StrictMode=r,Zt.Suspense=c,Zt.SuspenseList=u,Zt.isContextConsumer=function(m){return b(m)===a},Zt.isContextProvider=function(m){return b(m)===s},Zt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Zt.isForwardRef=function(m){return b(m)===l},Zt.isFragment=function(m){return b(m)===n},Zt.isLazy=function(m){return b(m)===f},Zt.isMemo=function(m){return b(m)===d},Zt.isPortal=function(m){return b(m)===t},Zt.isProfiler=function(m){return b(m)===i},Zt.isStrictMode=function(m){return b(m)===r},Zt.isSuspense=function(m){return b(m)===c},Zt.isSuspenseList=function(m){return b(m)===u},Zt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===i||m===r||m===c||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===f||m.$$typeof===d||m.$$typeof===s||m.$$typeof===a||m.$$typeof===l||m.$$typeof===p||m.getModuleId!==void 0)},Zt.typeOf=b,Zt}var Qt={};/**
 * @license React
 * react-is.development.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var g1;function LI(){return g1||(g1=1,process.env.NODE_ENV!=="production"&&function(){function e(m){if(typeof m=="object"&&m!==null){var y=m.$$typeof;switch(y){case t:switch(m=m.type,m){case r:case a:case i:case u:case d:case p:return m;default:switch(m=m&&m.$$typeof,m){case l:case c:case h:case f:return m;case s:return m;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");Qt.ContextConsumer=s,Qt.ContextProvider=l,Qt.Element=t,Qt.ForwardRef=c,Qt.Fragment=r,Qt.Lazy=h,Qt.Memo=f,Qt.Portal=n,Qt.Profiler=a,Qt.StrictMode=i,Qt.Suspense=u,Qt.SuspenseList=d,Qt.isContextConsumer=function(m){return e(m)===s},Qt.isContextProvider=function(m){return e(m)===l},Qt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Qt.isForwardRef=function(m){return e(m)===c},Qt.isFragment=function(m){return e(m)===r},Qt.isLazy=function(m){return e(m)===h},Qt.isMemo=function(m){return e(m)===f},Qt.isPortal=function(m){return e(m)===n},Qt.isProfiler=function(m){return e(m)===a},Qt.isStrictMode=function(m){return e(m)===i},Qt.isSuspense=function(m){return e(m)===u},Qt.isSuspenseList=function(m){return e(m)===d},Qt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===a||m===i||m===u||m===d||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===f||m.$$typeof===l||m.$$typeof===s||m.$$typeof===c||m.$$typeof===b||m.getModuleId!==void 0)},Qt.typeOf=e}()),Qt}process.env.NODE_ENV==="production"?Om.exports=jI():Om.exports=LI();var Ho=Om.exports;function wo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function jO(e){if(I.isValidElement(e)||Ho.isValidElementType(e)||!wo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=jO(e[n])}),t}function Mn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return wo(e)&&wo(t)&&Object.keys(t).forEach(i=>{I.isValidElement(t[i])||Ho.isValidElementType(t[i])?r[i]=t[i]:wo(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&wo(e[i])?r[i]=Mn(e[i],t[i],n):n.clone?r[i]=wo(t[i])?jO(t[i]):t[i]:r[i]=t[i]}),r}const FI=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function BI(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,a=FI(t),s=Object.keys(a);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,p){const b=s.indexOf(p);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:p)-r/100}${n})`}function d(h){return s.indexOf(h)+1<s.length?u(h,s[s.indexOf(h)+1]):l(h)}function f(h){const p=s.indexOf(h);return p===0?l(s[1]):p===s.length-1?c(s[p]):u(h,s[s.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:l,down:c,between:u,only:d,not:f,unit:n,...i}}function b1(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{var s,l;const a=/min-width:\s*([0-9.]+)/;return+(((s=r.match(a))==null?void 0:s[1])||0)-+(((l=i.match(a))==null?void 0:l[1])||0)});return n.length?n.reduce((r,i)=>{const a=t[i];return delete r[i],r[i]=a,r},{...t}):t}function VI(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function zI(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:$o(18,`(${t})`));return null}const[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function WI(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function n(a,s){a.up=(...l)=>t(e.breakpoints.up(...l),s),a.down=(...l)=>t(e.breakpoints.down(...l),s),a.between=(...l)=>t(e.breakpoints.between(...l),s),a.only=(...l)=>t(e.breakpoints.only(...l),s),a.not=(...l)=>{const c=t(e.breakpoints.not(...l),s);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},i=a=>(n(r,a),r);return n(i),{...e,containerQueries:i}}const UI={borderRadius:4},xi=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function Il(e,t){return t?Mn(e,t,{clone:!1}):e}const gf={xs:0,sm:600,md:900,lg:1200,xl:1536},v1={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gf[e]}px)`},qI={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:gf[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ao(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||v1;return t.reduce((s,l,c)=>(s[a.up(a.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const a=r.breakpoints||v1;return Object.keys(t).reduce((s,l)=>{if(VI(a.keys,l)){const c=zI(r.containerQueries?r:qI,l);c&&(s[c]=n(t[l],l))}else if(Object.keys(a.values||gf).includes(l)){const c=a.up(l);s[c]=n(t[l],l)}else{const c=l;s[c]=t[c]}return s},{})}return n(t)}function LO(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function Em(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function HI(e,...t){const n=LO(e),r=[n,...t].reduce((i,a)=>Mn(i,a),{});return Em(Object.keys(n),r)}function YI(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,a)=>{a<e.length&&(n[i]=!0)}):r.forEach(i=>{e[i]!=null&&(n[i]=!0)}),n}function ph({values:e,breakpoints:t,base:n}){const r=n||YI(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((s,l,c)=>(Array.isArray(e)?(s[l]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[a],a=l):s[l]=e,s),{})}function ve(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":$o(7));return e.charAt(0).toUpperCase()+e.slice(1)}function bf(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function gd(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=bf(e,n)||r,t&&(i=t(i,r,e)),i}function En(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=s=>{if(s[t]==null)return null;const l=s[t],c=s.theme,u=bf(c,r)||{};return ao(s,l,f=>{let h=gd(u,i,f);return f===h&&typeof f=="string"&&(h=gd(u,i,`${t}${f==="default"?"":ve(f)}`,f)),n===!1?h:{[n]:h}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:xi}:{},a.filterProps=[t],a}function GI(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const KI={m:"margin",p:"padding"},XI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},w1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ZI=GI(e=>{if(e.length>2)if(w1[e])e=w1[e];else return[e];const[t,n]=e.split(""),r=KI[t],i=XI[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),vf=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wf=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],QI=[...vf,...wf];function Pc(e,t,n,r){const i=bf(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),typeof i=="string"?i.startsWith("var(")&&a===0?0:i.startsWith("var(")&&a===1?i:`calc(${a} * ${i})`:i*a):Array.isArray(i)?a=>{if(typeof a=="string")return a;const s=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(`
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
`)));const l=i[s];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
`)),()=>{})}function xf(e){return Pc(e,"spacing",8,"spacing")}function Xi(e,t){return typeof t=="string"||t==null?t:e(t)}function JI(e,t){return n=>e.reduce((r,i)=>(r[i]=Xi(t,n),r),{})}function eN(e,t,n,r){if(!t.includes(n))return null;const i=ZI(n),a=JI(i,r),s=e[n];return ao(e,s,a)}function FO(e,t){const n=xf(e.theme);return Object.keys(e).map(r=>eN(e,t,r,n)).reduce(Il,{})}function hn(e){return FO(e,vf)}hn.propTypes=process.env.NODE_ENV!=="production"?vf.reduce((e,t)=>(e[t]=xi,e),{}):{};hn.filterProps=vf;function mn(e){return FO(e,wf)}mn.propTypes=process.env.NODE_ENV!=="production"?wf.reduce((e,t)=>(e[t]=xi,e),{}):{};mn.filterProps=wf;process.env.NODE_ENV!=="production"&&QI.reduce((e,t)=>(e[t]=xi,e),{});function BO(e=8,t=xf({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function Sf(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?Il(i,t[a](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Fr(e){return typeof e!="number"?e:`${e}px solid`}function Gr(e,t){return En({prop:e,themeKey:"borders",transform:t})}const tN=Gr("border",Fr),nN=Gr("borderTop",Fr),rN=Gr("borderRight",Fr),oN=Gr("borderBottom",Fr),iN=Gr("borderLeft",Fr),aN=Gr("borderColor"),sN=Gr("borderTopColor"),lN=Gr("borderRightColor"),cN=Gr("borderBottomColor"),uN=Gr("borderLeftColor"),dN=Gr("outline",Fr),fN=Gr("outlineColor"),Tf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Pc(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Xi(t,r)});return ao(e,e.borderRadius,n)}return null};Tf.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:xi}:{};Tf.filterProps=["borderRadius"];Sf(tN,nN,rN,oN,iN,aN,sN,lN,cN,uN,Tf,dN,fN);const Of=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Pc(e.theme,"spacing",8,"gap"),n=r=>({gap:Xi(t,r)});return ao(e,e.gap,n)}return null};Of.propTypes=process.env.NODE_ENV!=="production"?{gap:xi}:{};Of.filterProps=["gap"];const Ef=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Pc(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Xi(t,r)});return ao(e,e.columnGap,n)}return null};Ef.propTypes=process.env.NODE_ENV!=="production"?{columnGap:xi}:{};Ef.filterProps=["columnGap"];const Cf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Pc(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Xi(t,r)});return ao(e,e.rowGap,n)}return null};Cf.propTypes=process.env.NODE_ENV!=="production"?{rowGap:xi}:{};Cf.filterProps=["rowGap"];const pN=En({prop:"gridColumn"}),hN=En({prop:"gridRow"}),mN=En({prop:"gridAutoFlow"}),yN=En({prop:"gridAutoColumns"}),gN=En({prop:"gridAutoRows"}),bN=En({prop:"gridTemplateColumns"}),vN=En({prop:"gridTemplateRows"}),wN=En({prop:"gridTemplateAreas"}),xN=En({prop:"gridArea"});Sf(Of,Ef,Cf,pN,hN,mN,yN,gN,bN,vN,wN,xN);function Ha(e,t){return t==="grey"?t:e}const SN=En({prop:"color",themeKey:"palette",transform:Ha}),TN=En({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ha}),ON=En({prop:"backgroundColor",themeKey:"palette",transform:Ha});Sf(SN,TN,ON);function vr(e){return e<=1&&e!==0?`${e*100}%`:e}const EN=En({prop:"width",transform:vr}),zy=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,a,s,l,c;const r=((s=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:s[n])||gf[n];return r?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:vr(n)}};return ao(e,e.maxWidth,t)}return null};zy.filterProps=["maxWidth"];const CN=En({prop:"minWidth",transform:vr}),PN=En({prop:"height",transform:vr}),_N=En({prop:"maxHeight",transform:vr}),kN=En({prop:"minHeight",transform:vr});En({prop:"size",cssProperty:"width",transform:vr});En({prop:"size",cssProperty:"height",transform:vr});const DN=En({prop:"boxSizing"});Sf(EN,zy,CN,PN,_N,kN,DN);const _c={border:{themeKey:"borders",transform:Fr},borderTop:{themeKey:"borders",transform:Fr},borderRight:{themeKey:"borders",transform:Fr},borderBottom:{themeKey:"borders",transform:Fr},borderLeft:{themeKey:"borders",transform:Fr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Fr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Tf},color:{themeKey:"palette",transform:Ha},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ha},backgroundColor:{themeKey:"palette",transform:Ha},p:{style:mn},pt:{style:mn},pr:{style:mn},pb:{style:mn},pl:{style:mn},px:{style:mn},py:{style:mn},padding:{style:mn},paddingTop:{style:mn},paddingRight:{style:mn},paddingBottom:{style:mn},paddingLeft:{style:mn},paddingX:{style:mn},paddingY:{style:mn},paddingInline:{style:mn},paddingInlineStart:{style:mn},paddingInlineEnd:{style:mn},paddingBlock:{style:mn},paddingBlockStart:{style:mn},paddingBlockEnd:{style:mn},m:{style:hn},mt:{style:hn},mr:{style:hn},mb:{style:hn},ml:{style:hn},mx:{style:hn},my:{style:hn},margin:{style:hn},marginTop:{style:hn},marginRight:{style:hn},marginBottom:{style:hn},marginLeft:{style:hn},marginX:{style:hn},marginY:{style:hn},marginInline:{style:hn},marginInlineStart:{style:hn},marginInlineEnd:{style:hn},marginBlock:{style:hn},marginBlockStart:{style:hn},marginBlockEnd:{style:hn},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:Of},rowGap:{style:Cf},columnGap:{style:Ef},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vr},maxWidth:{style:zy},minWidth:{transform:vr},height:{transform:vr},maxHeight:{transform:vr},minHeight:{transform:vr},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function $N(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function RN(e,t){return typeof e=="function"?e(t):e}function MN(){function e(n,r,i,a){const s={[n]:r,theme:i},l=a[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:f}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=bf(i,u)||{};return f?f(s):ao(s,r,b=>{let m=gd(h,d,b);return b===m&&typeof b=="string"&&(m=gd(h,d,`${n}${b==="default"?"":ve(b)}`,b)),c===!1?m:{[c]:m}})}function t(n){const{sx:r,theme:i={},nested:a}=n||{};if(!r)return null;const s=i.unstable_sxConfig??_c;function l(c){let u=c;if(typeof c=="function")u=c(i);else if(typeof c!="object")return c;if(!u)return null;const d=LO(i.breakpoints),f=Object.keys(d);let h=d;return Object.keys(u).forEach(p=>{const b=RN(u[p],i);if(b!=null)if(typeof b=="object")if(s[p])h=Il(h,e(p,b,i,s));else{const m=ao({theme:i},b,y=>({[p]:y}));$N(m,b)?h[p]=t({sx:b,theme:i,nested:!0}):h=Il(h,m)}else h=Il(h,e(p,b,i,s))}),!a&&i.modularCssLayers?{"@layer sx":b1(i,Em(f,h))}:b1(i,Em(f,h))}return Array.isArray(r)?r.map(l):l(r)}return t}const yi=MN();yi.filterProps=["sx"];function IN(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function Cs(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={},...s}=e,l=BI(n),c=BO(i);let u=Mn({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...UI,...a}},s);return u=WI(u),u.applyStyles=IN,u=t.reduce((d,f)=>Mn(d,f),u),u.unstable_sxConfig={..._c,...s==null?void 0:s.unstable_sxConfig},u.unstable_sx=function(f){return yi({sx:f,theme:this})},u}function NN(e){return Object.keys(e).length===0}function Pf(e=null){const t=I.useContext(Ec);return!t||NN(t)?e:t}const AN=Cs();function kc(e=AN){return Pf(e)}function hh(e){const t=hi(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Wy({styles:e,themeId:t,defaultTheme:n={}}){const r=kc(n),i=t&&r[t]||r;let a=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(a)?a=a.map(s=>hh(typeof s=="function"?s(i):s)):a=hh(a)),D.jsx(Vy,{styles:a})}process.env.NODE_ENV!=="production"&&(Wy.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const jN=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??_c;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function _f(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=jN(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const l=t(...s);return wo(l)?{...r,...l}:r}:a={...r,...t},{...i,sx:a}}const x1=e=>e,LN=()=>{let e=x1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=x1}}},VO=LN();function zO(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=zO(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function we(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=zO(e))&&(r&&(r+=" "),r+=t);return r}function FN(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=AO("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(yi);return I.forwardRef(function(c,u){const d=kc(n),{className:f,component:h="div",...p}=_f(c);return D.jsx(a,{as:h,ref:u,className:we(f,i?i(r):r),theme:t&&d[t]||d,...p})})}const BN={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 ke(e,t,n="Mui"){const r=BN[t];return r?`${n}-${r}`:`${VO.generate(e)}-${t}`}function $e(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=ke(e,i,n)}),r}function WO(e,t=""){return e.displayName||e.name||t}function S1(e,t,n){const r=WO(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function VN(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return WO(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ho.ForwardRef:return S1(e,e.render,"ForwardRef");case Ho.Memo:return S1(e,e.type,"memo");default:return}}}function UO(e){const{variants:t,...n}=e,r={variants:t,style:hi(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=hi(i.style))}),r}const zN=Cs();function ar(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function zi(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function WN(e){return e?(t,n)=>n[e]:null}function UN(e,t,n){e.theme=YN(e.theme)?n:e.theme[t]||e.theme}function ed(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>ed(e,i,n));if(Array.isArray(r==null?void 0:r.variants)){let i;if(r.isProcessed)i=n?zi(r.style,n):r.style;else{const{variants:a,...s}=r;i=n?zi(hi(s),n):s}return qO(e,r.variants,[i],n)}return r!=null&&r.isProcessed?n?zi(hi(r.style),n):r.style:n?zi(hi(r),n):r}function qO(e,t,n=[],r=void 0){var a;let i;e:for(let s=0;s<t.length;s+=1){const l=t[s];if(typeof l.props=="function"){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(i))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((a=e.ownerState)==null?void 0:a[c])!==l.props[c])continue e;typeof l.style=="function"?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?zi(hi(l.style(i)),r):l.style(i))):n.push(r?zi(hi(l.style),r):l.style)}return n}function HO(e={}){const{themeId:t,defaultTheme:n=zN,rootShouldForwardProp:r=ar,slotShouldForwardProp:i=ar}=e;function a(l){UN(l,t,n)}return(l,c={})=>{AI(l,O=>O.filter(C=>C!==yi));const{name:u,slot:d,skipVariantsResolver:f,skipSx:h,overridesResolver:p=WN(YO(d)),...b}=c,m=u&&u.startsWith("Mui")||d?"components":"custom",y=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,g=h||!1;let v=ar;d==="Root"||d==="root"?v=r:d?v=i:GN(l)&&(v=void 0);const x=AO(l,{shouldForwardProp:v,label:HN(u,d),...b}),w=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(P){return ed(P,O,P.theme.modularCssLayers?m:void 0)};if(wo(O)){const C=UO(O);return function(k){return C.variants?ed(k,C,k.theme.modularCssLayers?m:void 0):k.theme.modularCssLayers?zi(C.style,m):C.style}}return O},S=(...O)=>{const C=[],P=O.map(w),k=[];if(C.push(a),u&&p&&k.push(function($){var U,K;const j=(K=(U=$.theme.components)==null?void 0:U[u])==null?void 0:K.styleOverrides;if(!j)return null;const W={};for(const H in j)W[H]=ed($,j[H],$.theme.modularCssLayers?"theme":void 0);return p($,W)}),u&&!y&&k.push(function($){var W,U;const M=$.theme,j=(U=(W=M==null?void 0:M.components)==null?void 0:W[u])==null?void 0:U.variants;return j?qO($,j,[],$.theme.modularCssLayers?"theme":void 0):null}),g||k.push(yi),Array.isArray(P[0])){const T=P.shift(),$=new Array(C.length).fill(""),M=new Array(k.length).fill("");let j;j=[...$,...T,...M],j.raw=[...$,...T.raw,...M],C.unshift(j)}const E=[...C,...P,...k],_=x(...E);return l.muiName&&(_.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(_.displayName=qN(u,d,l)),_};return x.withConfig&&(S.withConfig=x.withConfig),S}}function qN(e,t,n){return e?`${e}${ve(t||"")}`:`Styled(${VN(n)})`}function HN(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${YO(t||"Root")}`),n}function YN(e){for(const t in e)return!1;return!0}function GN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function YO(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Uy=HO();function ec(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=i;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],l=t[a];if(!l)r[a]=s||{};else if(!s)r[a]=l;else{r[a]={...l};for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)){const u=c;r[a][u]=ec(s[u],l[u],n)}}}else a==="className"&&n&&t.className?r.className=we(e==null?void 0:e.className,t==null?void 0:t.className):a==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[a]===void 0&&(r[a]=e[a])}return r}function GO(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ec(t.components[n].defaultProps,r)}function kf({props:e,name:t,defaultTheme:n,themeId:r}){let i=kc(n);return r&&(i=i[r]||i),GO({theme:i,name:t,props:e})}const Jt=typeof window<"u"?I.useLayoutEffect:I.useEffect;function KN(e,t,n,r,i){const[a,s]=I.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Jt(()=>{if(!n)return;const l=n(e),c=()=>{s(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),a}const XN={...I},KO=XN.useSyncExternalStore;function ZN(e,t,n,r,i){const a=I.useCallback(()=>t,[t]),s=I.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return a},[a,e,r,i,n]),[l,c]=I.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addEventListener("change",f),()=>{d.removeEventListener("change",f)})]},[a,n,e]);return KO(c,l,s)}function XO(e={}){const{themeId:t}=e;return function(r,i={}){let a=Pf();a&&t&&(a=a[t]||a);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=s?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=GO({name:"MuiUseMediaQuery",props:i,theme:a});process.env.NODE_ENV!=="production"&&typeof r=="function"&&a===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
`));let f=typeof r=="function"?r(a):r;f=f.replace(/^@media( ?)/m,""),f.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
`));const p=(KO!==void 0?ZN:KN)(f,l,c,u,d);return process.env.NODE_ENV!=="production"&&I.useDebugValue({query:f,match:p}),p}}XO();function Ra(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function qy(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Ra(e,t,n)}function QN(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function gi(e){if(e.type)return e;if(e.charAt(0)==="#")return gi(QN(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:$o(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:$o(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}const JN=e=>{const t=gi(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Tl=(e,t)=>{try{return JN(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Df(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ZO(e){e=gi(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,d=(u+n/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Df({type:l,values:c})}function Cm(e){e=gi(e);let t=e.type==="hsl"||e.type==="hsla"?gi(ZO(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function T1(e,t){const n=Cm(e),r=Cm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function dr(e,t){return e=gi(e),t=qy(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Df(e)}function _i(e,t,n){try{return dr(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function $f(e,t){if(e=gi(e),t=qy(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Df(e)}function Yt(e,t,n){try{return $f(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Rf(e,t){if(e=gi(e),t=qy(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Df(e)}function Gt(e,t,n){try{return Rf(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function eA(e,t=.15){return Cm(e)>.5?$f(e,t):Rf(e,t)}function xu(e,t,n){try{return eA(e,t)}catch{return e}}const tA="exact-prop: ​";function Mf(e){return process.env.NODE_ENV==="production"?e:{...e,[tA]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const Hy=I.createContext(null);process.env.NODE_ENV!=="production"&&(Hy.displayName="ThemeContext");function Yy(){const e=I.useContext(Hy);return process.env.NODE_ENV!=="production"&&I.useDebugValue(e),e}const nA=typeof Symbol=="function"&&Symbol.for,rA=nA?Symbol.for("mui.nested"):"__THEME_NESTED__";function oA(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
`))),n}return{...e,...t}}function bd(e){const{children:t,theme:n}=e,r=Yy();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
`));const i=I.useMemo(()=>{const a=r===null?{...n}:oA(r,n);return a!=null&&(a[rA]=r!==null),a},[n,r]);return D.jsx(Hy.Provider,{value:i,children:t})}process.env.NODE_ENV!=="production"&&(bd.propTypes={children:o.node,theme:o.oneOfType([o.object,o.func]).isRequired});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(bd.propTypes=Mf(bd.propTypes));const QO=I.createContext();function JO({value:e,...t}){return D.jsx(QO.Provider,{value:e??!0,...t})}process.env.NODE_ENV!=="production"&&(JO.propTypes={children:o.node,value:o.bool});const Xn=()=>I.useContext(QO)??!1,eE=I.createContext(void 0);function tE({value:e,children:t}){return D.jsx(eE.Provider,{value:e,children:t})}process.env.NODE_ENV!=="production"&&(tE.propTypes={children:o.node,value:o.object});function iA(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?ec(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?ec(i,r,t.components.mergeClassNameAndStyle):r}function aA({props:e,name:t}){const n=I.useContext(eE);return iA({props:e,name:t,theme:{components:n}})}let O1=0;function sA(e){const[t,n]=I.useState(e),r=e||t;return I.useEffect(()=>{t==null&&(O1+=1,n(`mui-${O1}`))},[t]),r}const lA={...I},E1=lA.useId;function Pr(e){if(E1!==void 0){const t=E1();return e??t}return sA(e)}function cA(e){const t=Pf(),n=Pr()||"",{modularCssLayers:r}=e;let i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?i="":typeof r=="string"?i=r.replace(/mui(?!\.)/g,i):i=`@layer ${i};`,Jt(()=>{var l,c;const a=document.querySelector("head");if(!a)return;const s=a.firstChild;if(i){if(s&&((l=s.hasAttribute)!=null&&l.call(s,"data-mui-layer-order"))&&s.getAttribute("data-mui-layer-order")===n)return;const u=document.createElement("style");u.setAttribute("data-mui-layer-order",n),u.textContent=i,a.prepend(u)}else(c=a.querySelector(`style[data-mui-layer-order="${n}"]`))==null||c.remove()},[i,n]),i?D.jsx(Wy,{styles:i}):null}const C1={};function P1(e,t,n,r=!1){return I.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const a=n(i),s=e?{...t,[e]:a}:a;return r?()=>s:s}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function tc(e){const{children:t,theme:n,themeId:r}=e,i=Pf(C1),a=Yy()||C1;process.env.NODE_ENV!=="production"&&(i===null&&typeof n=="function"||r&&i&&!i[r]&&typeof n=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
`));const s=P1(r,i,n),l=P1(r,a,n,!0),c=(r?s[r]:s).direction==="rtl",u=cA(s);return D.jsx(bd,{theme:l,children:D.jsx(Ec.Provider,{value:s,children:D.jsx(JO,{value:c,children:D.jsxs(tE,{value:r?s[r].components:s.components,children:[u,t]})})})})}process.env.NODE_ENV!=="production"&&(tc.propTypes={children:o.node,theme:o.oneOfType([o.func,o.object]).isRequired,themeId:o.string});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(tc.propTypes=Mf(tc.propTypes));const _1={theme:void 0};function uA(e){let t,n;return function(i){let a=t;return(a===void 0||i.theme!==n)&&(_1.theme=i.theme,a=UO(e(_1)),t=a,n=i.theme),a}}const Gy="mode",Ky="color-scheme",dA="data-color-scheme";function fA(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:i=Gy,colorSchemeStorageKey:a=Ky,attribute:s=dA,colorSchemeNode:l="document.documentElement",nonce:c}=e||{};let u="",d=s;if(s==="class"&&(d=".%s"),s==="data"&&(d="[data-%s]"),d.startsWith(".")){const h=d.substring(1);u+=`${l}.classList.remove('${h}'.replace('%s', light), '${h}'.replace('%s', dark));
      ${l}.classList.add('${h}'.replace('%s', colorScheme));`}const f=d.match(/\[([^[\]]+)\]/);if(f){const[h,p]=f[1].split("=");p||(u+=`${l}.removeAttribute('${h}'.replace('%s', light));
      ${l}.removeAttribute('${h}'.replace('%s', dark));`),u+=`
      ${l}.setAttribute('${h}'.replace('%s', colorScheme), ${p?`${p}.replace('%s', colorScheme)`:'""'});`}else u+=`${l}.setAttribute('${d}', colorScheme);`;return D.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(function() {
try {
  let colorScheme = '';
  const mode = localStorage.getItem('${i}') || '${t}';
  const dark = localStorage.getItem('${a}-dark') || '${r}';
  const light = localStorage.getItem('${a}-light') || '${n}';
  if (mode === 'system') {
    // handle system mode
    const mql = window.matchMedia('(prefers-color-scheme: dark)');
    if (mql.matches) {
      colorScheme = dark
    } else {
      colorScheme = light
    }
  }
  if (mode === 'light') {
    colorScheme = light;
  }
  if (mode === 'dark') {
    colorScheme = dark;
  }
  if (colorScheme) {
    ${u}
  }
} catch(e){}})();`}},"mui-color-scheme-init")}function pA(){}const hA=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return pA;const r=i=>{const a=i.newValue;i.key===e&&n(a)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function mh(){}function k1(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function nE(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function mA(e){return nE(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function yA(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=Gy,colorSchemeStorageKey:s=Ky,storageWindow:l=typeof window>"u"?void 0:window,storageManager:c=hA,noSsr:u=!1}=e,d=i.join(","),f=i.length>1,h=I.useMemo(()=>c==null?void 0:c({key:a,storageWindow:l}),[c,a,l]),p=I.useMemo(()=>c==null?void 0:c({key:`${s}-light`,storageWindow:l}),[c,s,l]),b=I.useMemo(()=>c==null?void 0:c({key:`${s}-dark`,storageWindow:l}),[c,s,l]),[m,y]=I.useState(()=>{const P=(h==null?void 0:h.get(t))||t,k=(p==null?void 0:p.get(n))||n,E=(b==null?void 0:b.get(r))||r;return{mode:P,systemMode:k1(P),lightColorScheme:k,darkColorScheme:E}}),[g,v]=I.useState(u||!f);I.useEffect(()=>{v(!0)},[]);const x=mA(m),w=I.useCallback(P=>{y(k=>{if(P===k.mode)return k;const E=P??t;return h==null||h.set(E),{...k,mode:E,systemMode:k1(E)}})},[h,t]),S=I.useCallback(P=>{P?typeof P=="string"?P&&!d.includes(P)?console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`):y(k=>{const E={...k};return nE(k,_=>{_==="light"&&(p==null||p.set(P),E.lightColorScheme=P),_==="dark"&&(b==null||b.set(P),E.darkColorScheme=P)}),E}):y(k=>{const E={...k},_=P.light===null?n:P.light,T=P.dark===null?r:P.dark;return _&&(d.includes(_)?(E.lightColorScheme=_,p==null||p.set(_)):console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`)),T&&(d.includes(T)?(E.darkColorScheme=T,b==null||b.set(T)):console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`)),E}):y(k=>(p==null||p.set(n),b==null||b.set(r),{...k,lightColorScheme:n,darkColorScheme:r}))},[d,p,b,n,r]),O=I.useCallback(P=>{m.mode==="system"&&y(k=>{const E=P!=null&&P.matches?"dark":"light";return k.systemMode===E?k:{...k,systemMode:E}})},[m.mode]),C=I.useRef(O);return C.current=O,I.useEffect(()=>{if(typeof window.matchMedia!="function"||!f)return;const P=(...E)=>C.current(...E),k=window.matchMedia("(prefers-color-scheme: dark)");return k.addListener(P),P(k),()=>{k.removeListener(P)}},[f]),I.useEffect(()=>{if(f){const P=(h==null?void 0:h.subscribe(_=>{(!_||["light","dark","system"].includes(_))&&w(_||t)}))||mh,k=(p==null?void 0:p.subscribe(_=>{(!_||d.match(_))&&S({light:_})}))||mh,E=(b==null?void 0:b.subscribe(_=>{(!_||d.match(_))&&S({dark:_})}))||mh;return()=>{P(),k(),E()}}},[S,w,d,t,l,f,h,p,b]),{...m,mode:g?m.mode:void 0,systemMode:g?m.systemMode:void 0,colorScheme:g?x:void 0,setMode:w,setColorScheme:S}}const gA="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function bA(e){const{themeId:t,theme:n={},modeStorageKey:r=Gy,colorSchemeStorageKey:i=Ky,disableTransitionOnChange:a=!1,defaultColorScheme:s,resolveTheme:l}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(u.displayName="ColorSchemeContext");const d=()=>I.useContext(u)||c,f={},h={};function p(g){var ge,De,Me,Ie;const{children:v,theme:x,modeStorageKey:w=r,colorSchemeStorageKey:S=i,disableTransitionOnChange:O=a,storageManager:C,storageWindow:P=typeof window>"u"?void 0:window,documentNode:k=typeof document>"u"?void 0:document,colorSchemeNode:E=typeof document>"u"?void 0:document.documentElement,disableNestedContext:_=!1,disableStyleSheetGeneration:T=!1,defaultMode:$="system",forceThemeRerender:M=!1,noSsr:j}=g,W=I.useRef(!1),U=Yy(),K=I.useContext(u),H=!!K&&!_,F=I.useMemo(()=>x||(typeof n=="function"?n():n),[x]),R=F[t],V=R||F,{colorSchemes:z=f,components:L=h,cssVarPrefix:A}=V,N=Object.keys(z).filter(he=>!!z[he]).join(","),q=I.useMemo(()=>N.split(","),[N]),Y=typeof s=="string"?s:s.light,G=typeof s=="string"?s:s.dark,X=z[Y]&&z[G]?$:((De=(ge=z[V.defaultColorScheme])==null?void 0:ge.palette)==null?void 0:De.mode)||((Me=V.palette)==null?void 0:Me.mode),{mode:Q,setMode:Z,systemMode:ce,lightColorScheme:ue,darkColorScheme:ye,colorScheme:de,setColorScheme:pe}=yA({supportedColorSchemes:q,defaultLightColorScheme:Y,defaultDarkColorScheme:G,modeStorageKey:w,colorSchemeStorageKey:S,defaultMode:X,storageManager:C,storageWindow:P,noSsr:j});let J=Q,oe=de;H&&(J=K.mode,oe=K.colorScheme),process.env.NODE_ENV!=="production"&&M&&!V.vars&&console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.","Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
`));let te=oe||V.defaultColorScheme;V.vars&&!M&&(te=V.defaultColorScheme);const le=I.useMemo(()=>{var Be;const he=((Be=V.generateThemeVars)==null?void 0:Be.call(V))||V.vars,me={...V,components:L,colorSchemes:z,cssVarPrefix:A,vars:he};if(typeof me.generateSpacing=="function"&&(me.spacing=me.generateSpacing()),te){const Ue=z[te];Ue&&typeof Ue=="object"&&Object.keys(Ue).forEach(We=>{Ue[We]&&typeof Ue[We]=="object"?me[We]={...me[We],...Ue[We]}:me[We]=Ue[We]})}return l?l(me):me},[V,te,L,z,A]),re=V.colorSchemeSelector;Jt(()=>{if(oe&&E&&re&&re!=="media"){const he=re;let me=re;if(he==="class"&&(me=".%s"),he==="data"&&(me="[data-%s]"),he!=null&&he.startsWith("data-")&&!he.includes("%s")&&(me=`[${he}="%s"]`),me.startsWith("."))E.classList.remove(...q.map(Be=>me.substring(1).replace("%s",Be))),E.classList.add(me.substring(1).replace("%s",oe));else{const Be=me.replace("%s",oe).match(/\[([^\]]+)\]/);if(Be){const[Ue,We]=Be[1].split("=");We||q.forEach(lt=>{E.removeAttribute(Ue.replace(oe,lt))}),E.setAttribute(Ue,We?We.replace(/"|'/g,""):"")}else E.setAttribute(me,oe)}}},[oe,re,E,q]),I.useEffect(()=>{let he;if(O&&W.current&&k){const me=k.createElement("style");me.appendChild(k.createTextNode(gA)),k.head.appendChild(me),window.getComputedStyle(k.body),he=setTimeout(()=>{k.head.removeChild(me)},1)}return()=>{clearTimeout(he)}},[oe,O,k]),I.useEffect(()=>(W.current=!0,()=>{W.current=!1}),[]);const Ee=I.useMemo(()=>({allColorSchemes:q,colorScheme:oe,darkColorScheme:ye,lightColorScheme:ue,mode:J,setColorScheme:pe,setMode:process.env.NODE_ENV==="production"?Z:he=>{le.colorSchemeSelector==="media"&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
`)),Z(he)},systemMode:ce}),[q,oe,ye,ue,J,pe,Z,ce,le.colorSchemeSelector]);let Pe=!0;(T||V.cssVariables===!1||H&&(U==null?void 0:U.cssVarPrefix)===A)&&(Pe=!1);const fe=D.jsxs(I.Fragment,{children:[D.jsx(tc,{themeId:R?t:void 0,theme:le,children:v}),Pe&&D.jsx(Vy,{styles:((Ie=le.generateStyleSheets)==null?void 0:Ie.call(le))||[]})]});return H?fe:D.jsx(u.Provider,{value:Ee,children:fe})}process.env.NODE_ENV!=="production"&&(p.propTypes={children:o.node,colorSchemeNode:o.any,colorSchemeStorageKey:o.string,defaultMode:o.string,disableNestedContext:o.bool,disableStyleSheetGeneration:o.bool,disableTransitionOnChange:o.bool,documentNode:o.any,forceThemeRerender:o.bool,modeStorageKey:o.string,noSsr:o.bool,storageManager:o.func,storageWindow:o.any,theme:o.object});const b=typeof s=="string"?s:s.light,m=typeof s=="string"?s:s.dark;return{CssVarsProvider:p,useColorScheme:d,getInitColorSchemeScript:g=>fA({colorSchemeStorageKey:i,defaultLightColorScheme:b,defaultDarkColorScheme:m,modeStorageKey:r,...g})}}function vA(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const D1=(e,t,n,r=[])=>{let i=e;t.forEach((a,s)=>{s===t.length-1?Array.isArray(i)?i[Number(a)]=n:i&&typeof i=="object"&&(i[a]=n):i&&typeof i=="object"&&(i[a]||(i[a]=r.includes(a)?[]:{}),i=i[a])})},wA=(e,t,n)=>{function r(i,a=[],s=[]){Object.entries(i).forEach(([l,c])=>{(!n||n&&!n([...a,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...a,l],Array.isArray(c)?[...s,l]:s):t([...a,l],c,s))})}r(e)},xA=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function yh(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},s={};return wA(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,f=xA(l,c);Object.assign(i,{[d]:f}),D1(a,l,`var(${d})`,u),D1(s,l,`var(${d}, ${f})`,u)}},l=>l[0]==="vars"),{css:i,vars:a,varsWithDefaults:s}}function SA(e,t={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:f,varsWithDefaults:h}=yh(u,t);let p=h;const b={},{[c]:m,...y}=s;if(Object.entries(y||{}).forEach(([w,S])=>{const{vars:O,css:C,varsWithDefaults:P}=yh(S,t);p=Mn(p,P),b[w]={css:C,vars:O}}),m){const{css:w,vars:S,varsWithDefaults:O}=yh(m,t);p=Mn(p,O),b[c]={css:w,vars:S}}function g(w,S){var C,P;let O=i;if(i==="class"&&(O=".%s"),i==="data"&&(O="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(O=`[${i}="%s"]`),w){if(O==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((P=(C=s[w])==null?void 0:C.palette)==null?void 0:P.mode)||w})`]:{":root":S}};if(O)return e.defaultColorScheme===w?`:root, ${O.replace("%s",String(w))}`:O.replace("%s",String(w))}return":root"}return{vars:p,generateThemeVars:()=>{let w={...d};return Object.entries(b).forEach(([,{vars:S}])=>{w=Mn(w,S)}),w},generateStyleSheets:()=>{var k,E;const w=[],S=e.defaultColorScheme||"light";function O(_,T){Object.keys(T).length&&w.push(typeof _=="string"?{[_]:{...T}}:_)}O(n(void 0,{...f}),f);const{[S]:C,...P}=b;if(C){const{css:_}=C,T=(E=(k=s[S])==null?void 0:k.palette)==null?void 0:E.mode,$=!r&&T?{colorScheme:T,..._}:{..._};O(n(S,{...$}),$)}return Object.entries(P).forEach(([_,{css:T}])=>{var j,W;const $=(W=(j=s[_])==null?void 0:j.palette)==null?void 0:W.mode,M=!r&&$?{colorScheme:$,...T}:{...T};O(n(_,{...M}),M)}),a&&w.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),w}}}function TA(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function _e(e,t,n=void 0){const r={};for(const i in e){const a=e[i];let s="",l=!0;for(let c=0;c<a.length;c+=1){const u=a[c];u&&(s+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(s+=" "+n[u]))}r[i]=s}return r}const OA=Cs(),EA=Uy("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ve(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),CA=e=>kf({props:e,name:"MuiContainer",defaultTheme:OA}),PA=(e,t)=>{const n=c=>ke(t,c),{classes:r,fixed:i,disableGutters:a,maxWidth:s}=e,l={root:["root",s&&`maxWidth${ve(String(s))}`,i&&"fixed",a&&"disableGutters"]};return _e(l,n,r)};function _A(e={}){const{createStyledComponent:t=EA,useThemeProps:n=CA,componentName:r="MuiContainer"}=e,i=t(({theme:s,ownerState:l})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!l.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:l})=>l.fixed&&Object.keys(s.breakpoints.values).reduce((c,u)=>{const d=u,f=s.breakpoints.values[d];return f!==0&&(c[s.breakpoints.up(d)]={maxWidth:`${f}${s.breakpoints.unit}`}),c},{}),({theme:s,ownerState:l})=>({...l.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...l.maxWidth&&l.maxWidth!=="xs"&&{[s.breakpoints.up(l.maxWidth)]:{maxWidth:`${s.breakpoints.values[l.maxWidth]}${s.breakpoints.unit}`}}})),a=I.forwardRef(function(l,c){const u=n(l),{className:d,component:f="div",disableGutters:h=!1,fixed:p=!1,maxWidth:b="lg",classes:m,...y}=u,g={...u,component:f,disableGutters:h,fixed:p,maxWidth:b},v=PA(g,r);return D.jsx(i,{as:f,ownerState:g,className:we(v.root,d),ref:c,...y})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])}),a}function Ui(e,t){var n,r,i;return I.isValidElement(e)&&t.indexOf(e.type.muiName??((i=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:i.muiName))!==-1}const kA=(e,t)=>e.filter(n=>t.includes(n)),Ps=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((i,a)=>{n((s,l)=>{a<=e.keys.length-1&&(a===0?Object.assign(s,l):s[e.up(e.keys[a])]=l)},i)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:kA(e.keys,Object.keys(t))).forEach(a=>{if(e.keys.includes(a)){const s=t[a];s!==void 0&&n((l,c)=>{r===a?Object.assign(l,c):l[e.up(a)]=c},s)}}):(typeof t=="number"||typeof t=="string")&&n((i,a)=>{Object.assign(i,a)},t)};function vd(e){return`--Grid-${e}Spacing`}function If(e){return`--Grid-parent-${e}Spacing`}const $1="--Grid-columns",Ya="--Grid-parent-columns",DA=({theme:e,ownerState:t})=>{const n={};return Ps(e.breakpoints,t.size,(r,i)=>{let a={};i==="grow"&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),i==="auto"&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof i=="number"&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${i} / var(${Ya}) - (var(${Ya}) - ${i}) * (var(${If("column")}) / var(${Ya})))`}),r(n,a)}),n},$A=({theme:e,ownerState:t})=>{const n={};return Ps(e.breakpoints,t.offset,(r,i)=>{let a={};i==="auto"&&(a={marginLeft:"auto"}),typeof i=="number"&&(a={marginLeft:i===0?"0px":`calc(100% * ${i} / var(${Ya}) + var(${If("column")}) * ${i} / var(${Ya}))`}),r(n,a)}),n},RA=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[$1]:12};return Ps(e.breakpoints,t.columns,(r,i)=>{const a=i??12;r(n,{[$1]:a,"> *":{[Ya]:a}})}),n},MA=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ps(e.breakpoints,t.rowSpacing,(r,i)=>{var s;const a=typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i);r(n,{[vd("row")]:a,"> *":{[If("row")]:a}})}),n},IA=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ps(e.breakpoints,t.columnSpacing,(r,i)=>{var s;const a=typeof i=="string"?i:(s=e.spacing)==null?void 0:s.call(e,i);r(n,{[vd("column")]:a,"> *":{[If("column")]:a}})}),n},NA=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ps(e.breakpoints,t.direction,(r,i)=>{r(n,{flexDirection:i})}),n},AA=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${vd("row")}) var(${vd("column")})`}}),jA=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},LA=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([i,a])=>{n(a)&&r.push(`spacing-${i}-${String(a)}`)}),r}return[]},FA=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`],BA=e=>["item","zeroMinWidth"].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,R1=[];function VA(e,t){const n=[];e.item!==void 0&&(delete e.item,n.push("item")),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,n.push("zeroMinWidth")),t.keys.forEach(r=>{e[r]!==void 0&&(n.push(r),delete e[r])}),process.env.NODE_ENV!=="production"&&n.forEach(r=>{R1.includes(r)||(R1.push(r),console.warn(`MUI Grid: ${BA(r)}
`))})}const zA=Cs(),WA=Uy("div",{name:"MuiGrid",slot:"Root"});function UA(e){return kf({props:e,name:"MuiGrid",defaultTheme:zA})}function qA(e={}){const{createStyledComponent:t=WA,useThemeProps:n=UA,useTheme:r=kc,componentName:i="MuiGrid"}=e,a=(u,d)=>{const{container:f,direction:h,spacing:p,wrap:b,size:m}=u,y={root:["root",f&&"container",b!=="wrap"&&`wrap-xs-${String(b)}`,...FA(h),...jA(m),...f?LA(p,d.breakpoints.keys[0]):[]]};return _e(y,g=>ke(i,g),{})};function s(u,d,f=()=>!0){const h={};return u===null||(Array.isArray(u)?u.forEach((p,b)=>{p!==null&&f(p)&&d.keys[b]&&(h[d.keys[b]]=p)}):typeof u=="object"?Object.keys(u).forEach(p=>{const b=u[p];b!=null&&f(b)&&(h[p]=b)}):h[d.keys[0]]=u),h}const l=t(RA,IA,MA,DA,NA,AA,$A),c=I.forwardRef(function(d,f){const h=r(),p=n(d),b=_f(p);VA(b,h.breakpoints);const{className:m,children:y,columns:g=12,container:v=!1,component:x="div",direction:w="row",wrap:S="wrap",size:O={},offset:C={},spacing:P=0,rowSpacing:k=P,columnSpacing:E=P,unstable_level:_=0,...T}=b,$=s(O,h.breakpoints,R=>R!==!1),M=s(C,h.breakpoints),j=d.columns??(_?void 0:g),W=d.spacing??(_?void 0:P),U=d.rowSpacing??d.spacing??(_?void 0:k),K=d.columnSpacing??d.spacing??(_?void 0:E),H={...b,level:_,columns:j,container:v,direction:w,wrap:S,spacing:W,rowSpacing:U,columnSpacing:K,size:$,offset:M},F=a(H,h);return D.jsx(l,{ref:f,as:x,ownerState:H,className:we(F.root,m),...T,children:I.Children.map(y,R=>{var V;return I.isValidElement(R)&&Ui(R,["Grid"])&&v&&R.props.container?I.cloneElement(R,{unstable_level:((V=R.props)==null?void 0:V.unstable_level)??_+1}):R})})});return process.env.NODE_ENV!=="production"&&(c.propTypes={children:o.node,className:o.string,columns:o.oneOfType([o.arrayOf(o.number),o.number,o.object]),columnSpacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),component:o.elementType,container:o.bool,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),offset:o.oneOfType([o.string,o.number,o.arrayOf(o.oneOfType([o.string,o.number])),o.object]),rowSpacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),size:o.oneOfType([o.string,o.bool,o.number,o.arrayOf(o.oneOfType([o.string,o.bool,o.number])),o.object]),spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),wrap:o.oneOf(["nowrap","wrap-reverse","wrap"])}),c.muiName="Grid",c}const HA=Cs(),YA=Uy("div",{name:"MuiStack",slot:"Root"});function GA(e){return kf({props:e,name:"MuiStack",defaultTheme:HA})}function KA(e,t){const n=I.Children.toArray(e).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a<n.length-1&&r.push(I.cloneElement(t,{key:`separator-${a}`})),r),[])}const XA=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],ZA=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...ao({theme:t},ph({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=xf(t),i=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),a=ph({values:e.direction,base:i}),s=ph({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const h=u>0?a[d[u-1]]:"column";a[c]=h}}),n=Mn(n,ao({theme:t},s,(c,u)=>e.useFlexGap?{gap:Xi(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${XA(u?a[u]:e.direction)}`]:Xi(r,c)}}))}return n=HI(t.breakpoints,n),n};function QA(e={}){const{createStyledComponent:t=YA,useThemeProps:n=GA,componentName:r="MuiStack"}=e,i=()=>_e({root:["root"]},c=>ke(r,c),{}),a=t(ZA),s=I.forwardRef(function(c,u){const d=n(c),f=_f(d),{component:h="div",direction:p="column",spacing:b=0,divider:m,children:y,className:g,useFlexGap:v=!1,...x}=f,w={direction:p,spacing:b,useFlexGap:v},S=i();return D.jsx(a,{as:h,ownerState:w,ref:u,className:we(S.root,g),...x,children:m?KA(y,m):y})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:o.node,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),divider:o.node,spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])}),s}const zr="$$material",nc={black:"#000",white:"#fff"},JA={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"},ga={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ba={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},il={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},va={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},wa={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},xa={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function rE(){return{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:nc.white,default:nc.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}}}const oE=rE();function iE(){return{text:{primary:nc.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:nc.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}}}const Pm=iE();function M1(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Rf(e.main,i):t==="dark"&&(e.dark=$f(e.main,a)))}function I1(e,t,n,r,i){const a=i.light||i,s=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function e2(e="light"){return e==="dark"?{main:va[200],light:va[50],dark:va[400]}:{main:va[700],light:va[400],dark:va[800]}}function t2(e="light"){return e==="dark"?{main:ga[200],light:ga[50],dark:ga[400]}:{main:ga[500],light:ga[300],dark:ga[700]}}function n2(e="light"){return e==="dark"?{main:ba[500],light:ba[300],dark:ba[700]}:{main:ba[700],light:ba[400],dark:ba[800]}}function r2(e="light"){return e==="dark"?{main:wa[400],light:wa[300],dark:wa[700]}:{main:wa[700],light:wa[500],dark:wa[900]}}function o2(e="light"){return e==="dark"?{main:xa[400],light:xa[300],dark:xa[700]}:{main:xa[800],light:xa[500],dark:xa[900]}}function i2(e="light"){return e==="dark"?{main:il[400],light:il[300],dark:il[700]}:{main:"#ed6c02",light:il[500],dark:il[900]}}function a2(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Xy(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,s=e.primary||e2(t),l=e.secondary||t2(t),c=e.error||n2(t),u=e.info||r2(t),d=e.success||o2(t),f=e.warning||i2(t);function h(y){if(i)return a2(y);const g=T1(y,Pm.text.primary)>=n?Pm.text.primary:oE.text.primary;if(process.env.NODE_ENV!=="production"){const v=T1(y,g);v<3&&console.error([`MUI: The contrast ratio of ${v}:1 for ${g} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
`))}return g}const p=({color:y,name:g,mainShade:v=500,lightShade:x=300,darkShade:w=700})=>{if(y={...y},!y.main&&y[v]&&(y.main=y[v]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
The color object needs to have a \`main\` property or a \`${v}\` property.`:$o(11,g?` (${g})`:"",v));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
\`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.

Did you intend to use one of the following approaches?

import { green } from "@mui/material/colors";

const theme1 = createTheme({ palette: {
  primary: green,
} });

const theme2 = createTheme({ palette: {
  primary: { main: green[500] },
} });`:$o(12,g?` (${g})`:"",JSON.stringify(y.main)));return i?(I1(i,y,"light",x,r),I1(i,y,"dark",w,r)):(M1(y,"light",x,r),M1(y,"dark",w,r)),y.contrastText||(y.contrastText=h(y.main)),y};let b;return t==="light"?b=rE():t==="dark"&&(b=iE()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Mn({common:{...nc},mode:t,primary:p({color:s,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:c,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:d,name:"success"}),grey:JA,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r,...b},a)}function s2(e){const t={};return Object.entries(e).forEach(r=>{const[i,a]=r;typeof a=="object"&&(t[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function l2(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function c2(e){return Math.round(e*1e5)/1e5}const N1={textTransform:"uppercase"},A1='"Roboto", "Helvetica", "Arial", sans-serif';function aE(e,t){const{fontFamily:n=A1,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=r/14,p=d||(y=>`${y/c*h}rem`),b=(y,g,v,x,w)=>({fontFamily:n,fontWeight:y,fontSize:p(g),lineHeight:v,...n===A1?{letterSpacing:`${c2(x/g)}em`}:{},...w,...u}),m={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,N1),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,N1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Mn({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...m},f,{clone:!1})}const u2=.2,d2=.14,f2=.12;function ln(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${u2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${d2})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${f2})`].join(",")}const p2=["none",ln(0,2,1,-1,0,1,1,0,0,1,3,0),ln(0,3,1,-2,0,2,2,0,0,1,5,0),ln(0,3,3,-2,0,3,4,0,0,1,8,0),ln(0,2,4,-1,0,4,5,0,0,1,10,0),ln(0,3,5,-1,0,5,8,0,0,1,14,0),ln(0,3,5,-1,0,6,10,0,0,1,18,0),ln(0,4,5,-2,0,7,10,1,0,2,16,1),ln(0,5,5,-3,0,8,10,1,0,3,14,2),ln(0,5,6,-3,0,9,12,1,0,3,16,2),ln(0,6,6,-3,0,10,14,1,0,4,18,3),ln(0,6,7,-4,0,11,15,1,0,4,20,3),ln(0,7,8,-4,0,12,17,2,0,5,22,4),ln(0,7,8,-4,0,13,19,2,0,5,24,4),ln(0,7,9,-4,0,14,21,2,0,5,26,4),ln(0,8,9,-5,0,15,22,2,0,6,28,5),ln(0,8,10,-5,0,16,24,2,0,6,30,5),ln(0,8,11,-5,0,17,26,2,0,6,32,5),ln(0,9,11,-5,0,18,28,2,0,7,34,6),ln(0,9,12,-6,0,19,29,2,0,7,36,6),ln(0,10,13,-6,0,20,31,3,0,8,38,7),ln(0,10,13,-6,0,21,33,3,0,8,40,7),ln(0,10,14,-6,0,22,35,3,0,8,42,7),ln(0,11,14,-7,0,23,36,3,0,9,44,8),ln(0,11,15,-7,0,24,38,3,0,9,46,8)],h2={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)"},sE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function j1(e){return`${Math.round(e)}ms`}function m2(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function y2(e){const t={...h2,...e.easing},n={...sE,...e.duration};return{getAutoHeightDuration:m2,create:(i=["all"],a={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=a;if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",f=h=>!Number.isNaN(parseFloat(h));!d(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(s)&&!d(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof s=="string"?s:j1(s)} ${l} ${typeof c=="string"?c:j1(c)}`).join(",")},...e,easing:t,duration:n}}const g2={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function b2(e){return wo(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function lE(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let a=0;a<i.length;a++){const[s,l]=i[a];!b2(l)||s.startsWith("unstable_")?delete r[s]:wo(l)&&(r[s]={...l},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';

const theme = ${JSON.stringify(t,null,2)};

theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});

export default theme;`}function L1(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const v2=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function w2(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:dr(t,v2(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${L1(n)})`:Rf(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${L1(n)})`:$f(t,n)}})}function _m(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:s={},typography:l={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":$o(20));const f=Xy({...a,colorSpace:u}),h=Cs(e);let p=Mn(h,{mixins:l2(h.breakpoints,r),palette:f,shadows:p2.slice(),typography:aE(f,l),transitions:y2(s),zIndex:{...g2}});if(p=Mn(p,d),p=t.reduce((b,m)=>Mn(b,m),p),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(y,g)=>{let v;for(v in y){const x=y[v];if(b.includes(v)&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const w=ke("",v);console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${v}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
`))}y[v]={}}}};Object.keys(p.components).forEach(y=>{const g=p.components[y].styleOverrides;g&&y.startsWith("Mui")&&m(g,y)})}return p.unstable_sxConfig={..._c,...d==null?void 0:d.unstable_sxConfig},p.unstable_sx=function(m){return yi({sx:m,theme:this})},p.toRuntimeSource=lE,w2(p),p}function km(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const x2=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=km(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function cE(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function uE(e){return e==="dark"?x2:[]}function S2(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...a}=e,s=Xy({...t,colorSpace:i});return{palette:s,opacity:{...cE(s.mode),...n},overlays:r||uE(s.mode),...a}}function T2(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const O2=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],E2=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return O2(e.cssVarPrefix).forEach(l=>{s[l]=n[l],delete n[l]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:a?{[a.replace("%s",t)]:s,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function C2(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Te(e,t,n){!e[t]&&n&&(e[t]=n)}function Ol(e){return typeof e!="string"||!e.startsWith("hsl")?e:ZO(e)}function Fo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Tl(Ol(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function P2(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ho=e=>{try{return e()}catch{}},_2=(e="mui")=>vA(e);function gh(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const a=i==="dark"?"dark":"light";if(!r){t[i]=S2({...n,palette:{mode:a,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:s,...l}=_m({...r,palette:{mode:a,...n==null?void 0:n.palette},colorSpace:e});return t[i]={...n,palette:s,opacity:{...cE(a),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||uE(a)},l}function k2(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=T2,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,f=Object.keys(n)[0],h=r||(n.light&&f!=="light"?"light":f),p=_2(a),{[h]:b,light:m,dark:y,...g}=n,v={...g};let x=b;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:$o(21,h));let w;s&&(w="oklch");const S=gh(w,v,x,d,h);m&&!v.light&&gh(w,v,m,void 0,"light"),y&&!v.dark&&gh(w,v,y,void 0,"dark");let O={defaultColorScheme:h,...S,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:u,getCssVar:p,colorSchemes:v,font:{...s2(S.typography),...S.font},spacing:P2(d.spacing)};Object.keys(O.colorSchemes).forEach(_=>{const T=O.colorSchemes[_].palette,$=j=>{const W=j.split("-"),U=W[1],K=W[2];return p(j,T[U][K])};T.mode==="light"&&(Te(T.common,"background","#fff"),Te(T.common,"onBackground","#000")),T.mode==="dark"&&(Te(T.common,"background","#000"),Te(T.common,"onBackground","#fff"));function M(j,W,U){if(w){let K;return j===_i&&(K=`transparent ${((1-U)*100).toFixed(0)}%`),j===Yt&&(K=`#000 ${(U*100).toFixed(0)}%`),j===Gt&&(K=`#fff ${(U*100).toFixed(0)}%`),`color-mix(in ${w}, ${W}, ${K})`}return j(W,U)}if(C2(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){Te(T.Alert,"errorColor",M(Yt,T.error.light,.6)),Te(T.Alert,"infoColor",M(Yt,T.info.light,.6)),Te(T.Alert,"successColor",M(Yt,T.success.light,.6)),Te(T.Alert,"warningColor",M(Yt,T.warning.light,.6)),Te(T.Alert,"errorFilledBg",$("palette-error-main")),Te(T.Alert,"infoFilledBg",$("palette-info-main")),Te(T.Alert,"successFilledBg",$("palette-success-main")),Te(T.Alert,"warningFilledBg",$("palette-warning-main")),Te(T.Alert,"errorFilledColor",ho(()=>T.getContrastText(T.error.main))),Te(T.Alert,"infoFilledColor",ho(()=>T.getContrastText(T.info.main))),Te(T.Alert,"successFilledColor",ho(()=>T.getContrastText(T.success.main))),Te(T.Alert,"warningFilledColor",ho(()=>T.getContrastText(T.warning.main))),Te(T.Alert,"errorStandardBg",M(Gt,T.error.light,.9)),Te(T.Alert,"infoStandardBg",M(Gt,T.info.light,.9)),Te(T.Alert,"successStandardBg",M(Gt,T.success.light,.9)),Te(T.Alert,"warningStandardBg",M(Gt,T.warning.light,.9)),Te(T.Alert,"errorIconColor",$("palette-error-main")),Te(T.Alert,"infoIconColor",$("palette-info-main")),Te(T.Alert,"successIconColor",$("palette-success-main")),Te(T.Alert,"warningIconColor",$("palette-warning-main")),Te(T.AppBar,"defaultBg",$("palette-grey-100")),Te(T.Avatar,"defaultBg",$("palette-grey-400")),Te(T.Button,"inheritContainedBg",$("palette-grey-300")),Te(T.Button,"inheritContainedHoverBg",$("palette-grey-A100")),Te(T.Chip,"defaultBorder",$("palette-grey-400")),Te(T.Chip,"defaultAvatarColor",$("palette-grey-700")),Te(T.Chip,"defaultIconColor",$("palette-grey-700")),Te(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Te(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Te(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Te(T.LinearProgress,"primaryBg",M(Gt,T.primary.main,.62)),Te(T.LinearProgress,"secondaryBg",M(Gt,T.secondary.main,.62)),Te(T.LinearProgress,"errorBg",M(Gt,T.error.main,.62)),Te(T.LinearProgress,"infoBg",M(Gt,T.info.main,.62)),Te(T.LinearProgress,"successBg",M(Gt,T.success.main,.62)),Te(T.LinearProgress,"warningBg",M(Gt,T.warning.main,.62)),Te(T.Skeleton,"bg",w?M(_i,T.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),Te(T.Slider,"primaryTrack",M(Gt,T.primary.main,.62)),Te(T.Slider,"secondaryTrack",M(Gt,T.secondary.main,.62)),Te(T.Slider,"errorTrack",M(Gt,T.error.main,.62)),Te(T.Slider,"infoTrack",M(Gt,T.info.main,.62)),Te(T.Slider,"successTrack",M(Gt,T.success.main,.62)),Te(T.Slider,"warningTrack",M(Gt,T.warning.main,.62));const j=w?M(Yt,T.background.default,.6825):xu(T.background.default,.8);Te(T.SnackbarContent,"bg",j),Te(T.SnackbarContent,"color",ho(()=>w?Pm.text.primary:T.getContrastText(j))),Te(T.SpeedDialAction,"fabHoverBg",xu(T.background.paper,.15)),Te(T.StepConnector,"border",$("palette-grey-400")),Te(T.StepContent,"border",$("palette-grey-400")),Te(T.Switch,"defaultColor",$("palette-common-white")),Te(T.Switch,"defaultDisabledColor",$("palette-grey-100")),Te(T.Switch,"primaryDisabledColor",M(Gt,T.primary.main,.62)),Te(T.Switch,"secondaryDisabledColor",M(Gt,T.secondary.main,.62)),Te(T.Switch,"errorDisabledColor",M(Gt,T.error.main,.62)),Te(T.Switch,"infoDisabledColor",M(Gt,T.info.main,.62)),Te(T.Switch,"successDisabledColor",M(Gt,T.success.main,.62)),Te(T.Switch,"warningDisabledColor",M(Gt,T.warning.main,.62)),Te(T.TableCell,"border",M(Gt,M(_i,T.divider,1),.88)),Te(T.Tooltip,"bg",M(_i,T.grey[700],.92))}if(T.mode==="dark"){Te(T.Alert,"errorColor",M(Gt,T.error.light,.6)),Te(T.Alert,"infoColor",M(Gt,T.info.light,.6)),Te(T.Alert,"successColor",M(Gt,T.success.light,.6)),Te(T.Alert,"warningColor",M(Gt,T.warning.light,.6)),Te(T.Alert,"errorFilledBg",$("palette-error-dark")),Te(T.Alert,"infoFilledBg",$("palette-info-dark")),Te(T.Alert,"successFilledBg",$("palette-success-dark")),Te(T.Alert,"warningFilledBg",$("palette-warning-dark")),Te(T.Alert,"errorFilledColor",ho(()=>T.getContrastText(T.error.dark))),Te(T.Alert,"infoFilledColor",ho(()=>T.getContrastText(T.info.dark))),Te(T.Alert,"successFilledColor",ho(()=>T.getContrastText(T.success.dark))),Te(T.Alert,"warningFilledColor",ho(()=>T.getContrastText(T.warning.dark))),Te(T.Alert,"errorStandardBg",M(Yt,T.error.light,.9)),Te(T.Alert,"infoStandardBg",M(Yt,T.info.light,.9)),Te(T.Alert,"successStandardBg",M(Yt,T.success.light,.9)),Te(T.Alert,"warningStandardBg",M(Yt,T.warning.light,.9)),Te(T.Alert,"errorIconColor",$("palette-error-main")),Te(T.Alert,"infoIconColor",$("palette-info-main")),Te(T.Alert,"successIconColor",$("palette-success-main")),Te(T.Alert,"warningIconColor",$("palette-warning-main")),Te(T.AppBar,"defaultBg",$("palette-grey-900")),Te(T.AppBar,"darkBg",$("palette-background-paper")),Te(T.AppBar,"darkColor",$("palette-text-primary")),Te(T.Avatar,"defaultBg",$("palette-grey-600")),Te(T.Button,"inheritContainedBg",$("palette-grey-800")),Te(T.Button,"inheritContainedHoverBg",$("palette-grey-700")),Te(T.Chip,"defaultBorder",$("palette-grey-700")),Te(T.Chip,"defaultAvatarColor",$("palette-grey-300")),Te(T.Chip,"defaultIconColor",$("palette-grey-300")),Te(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Te(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Te(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Te(T.LinearProgress,"primaryBg",M(Yt,T.primary.main,.5)),Te(T.LinearProgress,"secondaryBg",M(Yt,T.secondary.main,.5)),Te(T.LinearProgress,"errorBg",M(Yt,T.error.main,.5)),Te(T.LinearProgress,"infoBg",M(Yt,T.info.main,.5)),Te(T.LinearProgress,"successBg",M(Yt,T.success.main,.5)),Te(T.LinearProgress,"warningBg",M(Yt,T.warning.main,.5)),Te(T.Skeleton,"bg",w?M(_i,T.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),Te(T.Slider,"primaryTrack",M(Yt,T.primary.main,.5)),Te(T.Slider,"secondaryTrack",M(Yt,T.secondary.main,.5)),Te(T.Slider,"errorTrack",M(Yt,T.error.main,.5)),Te(T.Slider,"infoTrack",M(Yt,T.info.main,.5)),Te(T.Slider,"successTrack",M(Yt,T.success.main,.5)),Te(T.Slider,"warningTrack",M(Yt,T.warning.main,.5));const j=w?M(Gt,T.background.default,.985):xu(T.background.default,.98);Te(T.SnackbarContent,"bg",j),Te(T.SnackbarContent,"color",ho(()=>w?oE.text.primary:T.getContrastText(j))),Te(T.SpeedDialAction,"fabHoverBg",xu(T.background.paper,.15)),Te(T.StepConnector,"border",$("palette-grey-600")),Te(T.StepContent,"border",$("palette-grey-600")),Te(T.Switch,"defaultColor",$("palette-grey-300")),Te(T.Switch,"defaultDisabledColor",$("palette-grey-600")),Te(T.Switch,"primaryDisabledColor",M(Yt,T.primary.main,.55)),Te(T.Switch,"secondaryDisabledColor",M(Yt,T.secondary.main,.55)),Te(T.Switch,"errorDisabledColor",M(Yt,T.error.main,.55)),Te(T.Switch,"infoDisabledColor",M(Yt,T.info.main,.55)),Te(T.Switch,"successDisabledColor",M(Yt,T.success.main,.55)),Te(T.Switch,"warningDisabledColor",M(Yt,T.warning.main,.55)),Te(T.TableCell,"border",M(Yt,M(_i,T.divider,1),.68)),Te(T.Tooltip,"bg",M(_i,T.grey[700],.92))}Fo(T.background,"default"),Fo(T.background,"paper"),Fo(T.common,"background"),Fo(T.common,"onBackground"),Fo(T,"divider"),Object.keys(T).forEach(j=>{const W=T[j];j!=="tonalOffset"&&W&&typeof W=="object"&&(W.main&&Te(T[j],"mainChannel",Tl(Ol(W.main))),W.light&&Te(T[j],"lightChannel",Tl(Ol(W.light))),W.dark&&Te(T[j],"darkChannel",Tl(Ol(W.dark))),W.contrastText&&Te(T[j],"contrastTextChannel",Tl(Ol(W.contrastText))),j==="text"&&(Fo(T[j],"primary"),Fo(T[j],"secondary")),j==="action"&&(W.active&&Fo(T[j],"active"),W.selected&&Fo(T[j],"selected")))})}),O=t.reduce((_,T)=>Mn(_,T),O);const C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:E2(O),enableContrastVars:s},{vars:P,generateThemeVars:k,generateStyleSheets:E}=SA(O,C);return O.vars=P,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([_,T])=>{O[_]=T}),O.generateThemeVars=k,O.generateStyleSheets=E,O.generateSpacing=function(){return BO(d.spacing,xf(this))},O.getColorSchemeSelector=TA(c),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=l,O.unstable_sxConfig={..._c,...d==null?void 0:d.unstable_sxConfig},O.unstable_sx=function(T){return yi({sx:T,theme:this})},O.toRuntimeSource=lE,O}function F1(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Xy({...n===!0?{}:n.palette,mode:t})})}function Nf(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...s}=e,l=a||"light",c=i==null?void 0:i[l],u={...i,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return _m(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const f=_m({...e,palette:d},...t);return f.defaultColorScheme=l,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},F1(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},F1(f,"light",u.light)),f}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),k2({...s,colorSchemes:u,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const Af=Nf();function uo(){const e=kc(Af);return process.env.NODE_ENV!=="production"&&I.useDebugValue(e),e[zr]||e}function yt({props:e,name:t}){return kf({props:e,name:t,defaultTheme:Af,themeId:zr})}function jf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const In=e=>jf(e)&&e!=="classes",ne=HO({themeId:zr,defaultTheme:Af,rootShouldForwardProp:In});function D2({theme:e,...t}){const n=zr in e?e[zr]:void 0;return D.jsx(tc,{...t,themeId:n?zr:void 0,theme:n||e})}const Su={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};process.env.NODE_ENV!=="production"&&(o.string,o.string,o.string,o.string,o.string,o.oneOf(["dark","light","system"]),o.string,o.string);const{CssVarsProvider:$2}=bA({themeId:zr,theme:()=>Nf({cssVariables:!0}),colorSchemeStorageKey:Su.colorSchemeStorageKey,modeStorageKey:Su.modeStorageKey,defaultColorScheme:{light:Su.defaultLightColorScheme,dark:Su.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:aE(e.palette,e.typography)};return t.unstable_sx=function(r){return yi({sx:r,theme:this})},t}}),R2=$2;function M2({theme:e,...t}){const n=I.useMemo(()=>{if(typeof e=="function")return e;const r=zr in e?e[zr]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?D.jsx(D2,{theme:n,...t}):D.jsx(R2,{theme:e,...t})}const I2=$e("MuiBox",["root"]),N2=Nf(),He=FN({themeId:zr,defaultTheme:N2,defaultClassName:I2.root,generateClassName:VO.generate});process.env.NODE_ENV!=="production"&&(He.propTypes={children:o.node,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const dE=B.createContext({dragDropManager:void 0});function Mr(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var B1=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),V1=function(){return Math.random().toString(36).substring(7).split("").join(".")},z1={INIT:"@@redux/INIT"+V1(),REPLACE:"@@redux/REPLACE"+V1()};function A2(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function j2(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(B2(e))return"date";if(F2(e))return"error";var n=L2(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function L2(e){return typeof e.constructor=="function"?e.constructor.name:null}function F2(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function B2(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Sa(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=j2(e)),t}function fE(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Mr(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Mr(1):"Expected the enhancer to be a function. Instead, received: '"+Sa(n)+"'");return n(fE)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Mr(2):"Expected the root reducer to be a function. Instead, received: '"+Sa(e)+"'");var i=e,a=t,s=[],l=s,c=!1;function u(){l===s&&(l=s.slice())}function d(){if(c)throw new Error(process.env.NODE_ENV==="production"?Mr(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function f(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?Mr(4):"Expected the listener to be a function. Instead, received: '"+Sa(m)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?Mr(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var y=!0;return u(),l.push(m),function(){if(y){if(c)throw new Error(process.env.NODE_ENV==="production"?Mr(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,u();var v=l.indexOf(m);l.splice(v,1),s=null}}}function h(m){if(!A2(m))throw new Error(process.env.NODE_ENV==="production"?Mr(7):"Actions must be plain objects. Instead, the actual type was: '"+Sa(m)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof m.type>"u")throw new Error(process.env.NODE_ENV==="production"?Mr(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?Mr(9):"Reducers may not dispatch actions.");try{c=!0,a=i(a,m)}finally{c=!1}for(var y=s=l,g=0;g<y.length;g++){var v=y[g];v()}return m}function p(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?Mr(10):"Expected the nextReducer to be a function. Instead, received: '"+Sa(m));i=m,h({type:z1.REPLACE})}function b(){var m,y=f;return m={subscribe:function(v){if(typeof v!="object"||v===null)throw new Error(process.env.NODE_ENV==="production"?Mr(11):"Expected the observer to be an object. Instead, received: '"+Sa(v)+"'");function x(){v.next&&v.next(d())}x();var w=y(x);return{unsubscribe:w}}},m[B1]=function(){return this},m}return h({type:z1.INIT}),r={dispatch:h,subscribe:f,getState:d,replaceReducer:p},r[B1]=b,r}function mt(e,t,...n){if(V2()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(t.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function V2(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function z2(e,t,n){return t.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,e)}function W2(e,t){return e.filter(n=>n!==t)}function pE(e){return typeof e=="object"}function U2(e,t){const n=new Map,r=a=>{n.set(a,n.has(a)?n.get(a)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach((a,s)=>{a===1&&i.push(s)}),i}function q2(e,t){return e.filter(n=>t.indexOf(n)>-1)}const Zy="dnd-core/INIT_COORDS",Lf="dnd-core/BEGIN_DRAG",Qy="dnd-core/PUBLISH_DRAG_SOURCE",Ff="dnd-core/HOVER",Bf="dnd-core/DROP",Vf="dnd-core/END_DRAG";function W1(e,t){return{type:Zy,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const H2={type:Zy,payload:{clientOffset:null,sourceClientOffset:null}};function Y2(e){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:a,getSourceClientOffset:s}=r,l=e.getMonitor(),c=e.getRegistry();e.dispatch(W1(a)),G2(n,l,c);const u=Z2(n,l);if(u==null){e.dispatch(H2);return}let d=null;if(a){if(!s)throw new Error("getSourceClientOffset must be defined");K2(s),d=s(u)}e.dispatch(W1(a,d));const h=c.getSource(u).beginDrag(l,u);if(h==null)return;X2(h),c.pinSource(u);const p=c.getSourceType(u);return{type:Lf,payload:{itemType:p,item:h,sourceId:u,clientOffset:a||null,sourceClientOffset:d||null,isSourcePublic:!!i}}}}function G2(e,t,n){mt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){mt(n.getSource(r),"Expected sourceIds to be registered.")})}function K2(e){mt(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function X2(e){mt(pE(e),"Item must be an object.")}function Z2(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function Q2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Q2(e,i,n[i])})}return e}function ej(e){return function(n={}){const r=e.getMonitor(),i=e.getRegistry();tj(r),oj(r).forEach((s,l)=>{const c=nj(s,l,i,r),u={type:Bf,payload:{dropResult:J2({},n,c)}};e.dispatch(u)})}}function tj(e){mt(e.isDragging(),"Cannot call drop while not dragging."),mt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function nj(e,t,n,r){const i=n.getTarget(e);let a=i?i.drop(r,e):void 0;return rj(a),typeof a>"u"&&(a=t===0?{}:r.getDropResult()),a}function rj(e){mt(typeof e>"u"||pE(e),"Drop result must either be an object or undefined.")}function oj(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function ij(e){return function(){const n=e.getMonitor(),r=e.getRegistry();aj(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Vf}}}function aj(e){mt(e.isDragging(),"Cannot call endDrag while not dragging.")}function Dm(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function sj(e){return function(n,{clientOffset:r}={}){lj(n);const i=n.slice(0),a=e.getMonitor(),s=e.getRegistry(),l=a.getItemType();return uj(i,s,l),cj(i,a,s),dj(i,a,s),{type:Ff,payload:{targetIds:i,clientOffset:r||null}}}}function lj(e){mt(Array.isArray(e),"Expected targetIds to be an array.")}function cj(e,t,n){mt(t.isDragging(),"Cannot call hover while not dragging."),mt(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const i=e[r];mt(e.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const a=n.getTarget(i);mt(a,"Expected targetIds to be registered.")}}function uj(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r],a=t.getTargetType(i);Dm(a,n)||e.splice(r,1)}}function dj(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function fj(e){return function(){if(e.getMonitor().isDragging())return{type:Qy}}}function pj(e){return{beginDrag:Y2(e),publishDragSource:fj(e),hover:sj(e),drop:ej(e),endDrag:ij(e)}}class hj{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(a){return(...s)=>{const l=a.apply(t,s);typeof l<"u"&&n(l)}}const i=pj(this);return Object.keys(i).reduce((a,s)=>{const l=i[s];return a[s]=r(l),a},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function mj(e,t){return{x:e.x+t.x,y:e.y+t.y}}function hE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yj(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:hE(mj(t,r),n)}function gj(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:hE(t,n)}const Nl=[],Jy=[];Nl.__IS_NONE__=!0;Jy.__IS_ALL__=!0;function bj(e,t){return e===Nl?!1:e===Jy||typeof t>"u"?!0:q2(t,e).length>0}class vj{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;mt(typeof t=="function","listener must be a function."),mt(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const a=()=>{const s=this.store.getState(),l=s.stateId;try{l===i||l===i+1&&!bj(s.dirtyHandlerIds,r)||t()}finally{i=l}};return this.store.subscribe(a)}subscribeToOffsetChange(t){mt(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return mt(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(mt(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),i=this.getItemType();return Dm(r,i)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(mt(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),i=this.getItemType();return r!==i?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),a=this.getItemType();if(a&&!Dm(i,a))return!1;const s=this.getTargetIds();if(!s.length)return!1;const l=s.indexOf(t);return r?l===s.length-1:l>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return yj(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return gj(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const U1=typeof global<"u"?global:self,mE=U1.MutationObserver||U1.WebKitMutationObserver;function yE(e){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),e()}}}function wj(e){let t=1;const n=new mE(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const xj=typeof mE=="function"?wj:yE;class Sj{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const n=this.index;if(this.index++,t[n].call(),this.index>this.capacity){for(let r=0,i=t.length-this.index;r<i;r++)t[r]=t[r+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=xj(this.flush),this.requestErrorThrow=yE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Tj{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class Oj{create(t){const n=this.freeTasks,r=n.length?n.pop():new Tj(this.onError,i=>n[n.length]=i);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const gE=new Sj,Ej=new Oj(gE.registerPendingError);function Cj(e){gE.enqueueTask(Ej.create(e))}const eg="dnd-core/ADD_SOURCE",tg="dnd-core/ADD_TARGET",ng="dnd-core/REMOVE_SOURCE",zf="dnd-core/REMOVE_TARGET";function Pj(e){return{type:eg,payload:{sourceId:e}}}function _j(e){return{type:tg,payload:{targetId:e}}}function kj(e){return{type:ng,payload:{sourceId:e}}}function Dj(e){return{type:zf,payload:{targetId:e}}}function $j(e){mt(typeof e.canDrag=="function","Expected canDrag to be a function."),mt(typeof e.beginDrag=="function","Expected beginDrag to be a function."),mt(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Rj(e){mt(typeof e.canDrop=="function","Expected canDrop to be a function."),mt(typeof e.hover=="function","Expected hover to be a function."),mt(typeof e.drop=="function","Expected beginDrag to be a function.")}function $m(e,t){if(t&&Array.isArray(e)){e.forEach(n=>$m(n,!1));return}mt(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Br;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Br||(Br={}));let Mj=0;function Ij(){return Mj++}function Nj(e){const t=Ij().toString();switch(e){case Br.SOURCE:return`S${t}`;case Br.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function q1(e){switch(e[0]){case"S":return Br.SOURCE;case"T":return Br.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function H1(e,t){const n=e.entries();let r=!1;do{const{done:i,value:[,a]}=n.next();if(a===t)return!0;r=!!i}while(!r);return!1}class Aj{addSource(t,n){$m(t),$j(n);const r=this.addHandler(Br.SOURCE,t,n);return this.store.dispatch(Pj(r)),r}addTarget(t,n){$m(t,!0),Rj(n);const r=this.addHandler(Br.TARGET,t,n);return this.store.dispatch(_j(r)),r}containsHandler(t){return H1(this.dragSources,t)||H1(this.dropTargets,t)}getSource(t,n=!1){return mt(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return mt(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return mt(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return mt(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return q1(t)===Br.SOURCE}isTargetId(t){return q1(t)===Br.TARGET}removeSource(t){mt(this.getSource(t),"Expected an existing source."),this.store.dispatch(kj(t)),Cj(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){mt(this.getTarget(t),"Expected an existing target."),this.store.dispatch(Dj(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);mt(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){mt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const i=Nj(t);return this.types.set(i,n),t===Br.SOURCE?this.dragSources.set(i,r):t===Br.TARGET&&this.dropTargets.set(i,r),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const jj=(e,t)=>e===t;function Lj(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Fj(e,t,n=jj){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function Bj(e=Nl,t){switch(t.type){case Ff:break;case eg:case tg:case zf:case ng:return Nl;case Lf:case Qy:case Vf:case Bf:default:return Jy}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=U2(n,r);if(!(i.length>0||!Fj(n,r)))return Nl;const s=r[r.length-1],l=n[n.length-1];return s!==l&&(s&&i.push(s),l&&i.push(l)),i}function Vj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Vj(e,i,n[i])})}return e}const Y1={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Wj(e=Y1,t){const{payload:n}=t;switch(t.type){case Zy:case Lf:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Ff:return Lj(e.clientOffset,n.clientOffset)?e:zj({},e,{clientOffset:n.clientOffset});case Vf:case Bf:return Y1;default:return e}}function Uj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ta(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Uj(e,i,n[i])})}return e}const qj={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Hj(e=qj,t){const{payload:n}=t;switch(t.type){case Lf:return Ta({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Qy:return Ta({},e,{isSourcePublic:!0});case Ff:return Ta({},e,{targetIds:n.targetIds});case zf:return e.targetIds.indexOf(n.targetId)===-1?e:Ta({},e,{targetIds:W2(e.targetIds,n.targetId)});case Bf:return Ta({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Vf:return Ta({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Yj(e=0,t){switch(t.type){case eg:case tg:return e+1;case ng:case zf:return e-1;default:return e}}function Gj(e=0){return e+1}function Kj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Kj(e,i,n[i])})}return e}function Zj(e={},t){return{dirtyHandlerIds:Bj(e.dirtyHandlerIds,{type:t.type,payload:Xj({},t.payload,{prevTargetIds:z2(e,"dragOperation.targetIds",[])})}),dragOffset:Wj(e.dragOffset,t),refCount:Yj(e.refCount,t),dragOperation:Hj(e.dragOperation,t),stateId:Gj(e.stateId)}}function Qj(e,t=void 0,n={},r=!1){const i=Jj(r),a=new vj(i,new Aj(i)),s=new hj(i,a),l=e(s,t,n);return s.receiveBackend(l),s}function Jj(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return fE(Zj,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function eL(e,t){if(e==null)return{};var n=tL(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}let G1=0;const td=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var nL=B.memo(function(t){var{children:n}=t,r=eL(t,["children"]);const[i,a]=rL(r);return B.useEffect(()=>{if(a){const s=bE();return++G1,()=>{--G1===0&&(s[td]=null)}}},[]),D.jsx(dE.Provider,{value:i,children:n})});function rL(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=oL(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function oL(e,t=bE(),n,r){const i=t;return i[td]||(i[td]={dragDropManager:Qj(e,t,n,r)}),i[td]}function bE(){return typeof global<"u"?global:window}var rg=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var s=a[i];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n};const iL=Mt(rg),Zi=typeof window<"u"?B.useLayoutEffect:B.useEffect;function aL(e,t,n){const[r,i]=B.useState(()=>t(e)),a=B.useCallback(()=>{const s=t(e);iL(r,s)||(i(s),n&&n())},[r,e,n]);return Zi(a),[r,a]}function sL(e,t,n){const[r,i]=aL(e,t,n);return Zi(function(){const s=e.getHandlerId();if(s!=null)return e.subscribeToStateChange(i,{handlerIds:[s]})},[e,i]),r}function vE(e,t,n){return sL(t,e||(()=>({})),()=>n.reconnect())}function wE(e,t){const n=[];return typeof e!="function"&&n.push(e),B.useMemo(()=>typeof e=="function"?e():e,n)}function lL(e){return B.useMemo(()=>e.hooks.dragSource(),[e])}function cL(e){return B.useMemo(()=>e.hooks.dragPreview(),[e])}let bh=!1,vh=!1;class uL{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){mt(!bh,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return bh=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{bh=!1}}isDragging(){if(!this.sourceId)return!1;mt(!vh,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return vh=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{vh=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let wh=!1;class dL{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;mt(!wh,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return wh=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{wh=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function fL(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function pL(e,t,n){const r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function Rm(e,t,n,r){let i;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<a.length;c++){const u=a[c];if(!l(u))return!1;const d=e[u],f=t[u];if(i=void 0,i===!1||i===void 0&&d!==f)return!1}return!0}function Mm(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function hL(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function mL(e){return(t=null,n=null)=>{if(!B.isValidElement(t)){const a=t;return e(a,n),a}const r=t;return hL(r),yL(r,n?a=>e(a,n):e)}}function xE(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const i=mL(r);t[n]=()=>i}}),t}function K1(e,t){typeof e=="function"?e(t):e.current=t}function yL(e,t){const n=e.ref;return mt(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?B.cloneElement(e,{ref:r=>{K1(n,r),K1(t,r)}}):B.cloneElement(e,{ref:t})}class gL{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Rm(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Rm(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=xE({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,Mm(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,Mm(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class bL{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Rm(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=xE({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,Mm(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function _s(){const{dragDropManager:e}=B.useContext(dE);return mt(e!=null,"Expected drag drop context"),e}function vL(e,t){const n=_s(),r=B.useMemo(()=>new gL(n.getBackend()),[n]);return Zi(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Zi(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function wL(){const e=_s();return B.useMemo(()=>new uL(e),[e])}class xL{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,i=this.monitor,{isDragging:a}=r;return a?a(i):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:i}=t;i&&i(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function SL(e,t,n){const r=B.useMemo(()=>new xL(e,t,n),[t,n]);return B.useEffect(()=>{r.spec=e},[e]),r}function TL(e){return B.useMemo(()=>{const t=e.type;return mt(t!=null,"spec.type must be defined"),t},[e])}function OL(e,t,n){const r=_s(),i=SL(e,t,n),a=TL(e);Zi(function(){if(a!=null){const[l,c]=pL(a,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c}},[r,t,n,i,a])}function EL(e,t){const n=wE(e);mt(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=wL(),i=vL(n.options,n.previewOptions);return OL(n,r,i),[vE(n.collect,r,i),lL(i),cL(i)]}function CL(e){return B.useMemo(()=>e.hooks.dropTarget(),[e])}function PL(e){const t=_s(),n=B.useMemo(()=>new bL(t.getBackend()),[t]);return Zi(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function _L(){const e=_s();return B.useMemo(()=>new dL(e),[e])}function kL(e){const{accept:t}=e;return B.useMemo(()=>(mt(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class DL{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function $L(e,t){const n=B.useMemo(()=>new DL(e,t),[t]);return B.useEffect(()=>{n.spec=e},[e]),n}function RL(e,t,n){const r=_s(),i=$L(e,t),a=kL(e);Zi(function(){const[l,c]=fL(a,i,r);return t.receiveHandlerId(l),n.receiveHandlerId(l),c},[r,t,i,n,a.map(s=>s.toString()).join("|")])}function SE(e,t){const n=wE(e),r=_L(),i=PL(n.options);return RL(n,r,i),[vE(n.collect,r,i),CL(i)]}function TE(e){let t=null;return()=>(t==null&&(t=e()),t)}function ML(e,t){return e.filter(n=>n!==t)}function IL(e,t){const n=new Set,r=a=>n.add(a);e.forEach(r),t.forEach(r);const i=[];return n.forEach(a=>i.push(a)),i}class NL{enter(t){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=IL(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=ML(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class AL{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const OE="__NATIVE_FILE__",EE="__NATIVE_URL__",CE="__NATIVE_TEXT__",PE="__NATIVE_HTML__",X1=Object.freeze(Object.defineProperty({__proto__:null,FILE:OE,HTML:PE,TEXT:CE,URL:EE},Symbol.toStringTag,{value:"Module"}));function xh(e,t,n){const r=t.reduce((i,a)=>i||e.getData(a),"");return r??n}const Im={[OE]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[PE]:{exposeProperties:{html:(e,t)=>xh(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[EE]:{exposeProperties:{urls:(e,t)=>xh(e,t,"").split(`
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[CE]:{exposeProperties:{text:(e,t)=>xh(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function jL(e,t){const n=Im[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new AL(n);return r.loadDataTransfer(t),r}function Sh(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Im).filter(n=>{const r=Im[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const LL=TE(()=>/firefox/i.test(navigator.userAgent)),_E=TE(()=>!!window.safari);class Z1{interpolate(t){const{xs:n,ys:r,c1s:i,c2s:a,c3s:s}=this;let l=n.length-1;if(t===n[l])return r[l];let c=0,u=s.length-1,d;for(;c<=u;){d=Math.floor(.5*(c+u));const p=n[d];if(p<t)c=d+1;else if(p>t)u=d-1;else return r[d]}l=Math.max(0,u);const f=t-n[l],h=f*f;return r[l]+i[l]*f+a[l]*h+s[l]*f*h}constructor(t,n){const{length:r}=t,i=[];for(let p=0;p<r;p++)i.push(p);i.sort((p,b)=>t[p]<t[b]?-1:1);const a=[],s=[];let l,c;for(let p=0;p<r-1;p++)l=t[p+1]-t[p],c=n[p+1]-n[p],a.push(l),s.push(c/l);const u=[s[0]];for(let p=0;p<a.length-1;p++){const b=s[p],m=s[p+1];if(b*m<=0)u.push(0);else{l=a[p];const y=a[p+1],g=l+y;u.push(3*g/((g+y)/b+(g+l)/m))}}u.push(s[s.length-1]);const d=[],f=[];let h;for(let p=0;p<u.length-1;p++){h=s[p];const b=u[p],m=1/a[p],y=b+u[p+1]-h-h;d.push((h-b-y)*m),f.push(y*m*m)}this.xs=t,this.ys=n,this.c1s=u,this.c2s=d,this.c3s=f}}const FL=1;function kE(e){const t=e.nodeType===FL?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Tu(e){return{x:e.clientX,y:e.clientY}}function BL(e){var t;return e.nodeName==="IMG"&&(LL()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function VL(e,t,n,r){let i=e?t.width:n,a=e?t.height:r;return _E()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function zL(e,t,n,r,i){const a=BL(t),l=kE(a?e:t),c={x:n.x-l.x,y:n.y-l.y},{offsetWidth:u,offsetHeight:d}=e,{anchorX:f,anchorY:h}=r,{dragPreviewWidth:p,dragPreviewHeight:b}=VL(a,t,u,d),m=()=>{let O=new Z1([0,.5,1],[c.y,c.y/d*b,c.y+b-d]).interpolate(h);return _E()&&a&&(O+=(window.devicePixelRatio-1)*b),O},y=()=>new Z1([0,.5,1],[c.x,c.x/u*p,c.x+p-u]).interpolate(f),{offsetX:g,offsetY:v}=i,x=g===0||g,w=v===0||v;return{x:x?g:y(),y:w?v:m()}}class WL{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}}function UL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){UL(e,i,n[i])})}return e}class qL{profile(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const i=s=>this.handleDragStart(s,t),a=s=>this.handleSelectStart(s);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",a),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",a),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=s=>this.handleDragEnter(s,t),i=s=>this.handleDragOver(s,t),a=s=>this.handleDrop(s,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",a),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",a)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return Q1({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return Q1({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(X1).some(n=>X1[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=jL(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const a=this.sourceNodes.get(i);return a&&kE(a)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:a}=this;this.dragStartSourceIds=null;const s=Tu(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(a||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:s});const{dataTransfer:l}=i,c=Sh(l);if(this.monitor.isDragging()){if(l&&typeof l.setDragImage=="function"){const d=this.monitor.getSourceId(),f=this.sourceNodes.get(d),h=this.sourcePreviewNodes.get(d)||f;if(h){const{anchorX:p,anchorY:b,offsetX:m,offsetY:y}=this.getCurrentSourcePreviewNodeOptions(),x=zL(f,h,s,{anchorX:p,anchorY:b},{offsetX:m,offsetY:y});l.setDragImage(h,x.x,x.y)}}try{l==null||l.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(l&&!l.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:l}=i,c=Sh(l);c&&this.beginDragNativeItem(c,l)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:a}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,a.length>0&&this.actions.hover(a,{clientOffset:Tu(i)}),a.some(l=>this.monitor.canDropOnTarget(l))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var a;(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:a}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=Tu(i),this.scheduleHover(a),(a||[]).some(l=>this.monitor.canDropOnTarget(l))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var a;i.preventDefault(),(a=this.currentNativeSource)===null||a===void 0||a.loadDataTransfer(i.dataTransfer)}else Sh(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:a}=this;this.dropTargetIds=[],this.actions.hover(a,{clientOffset:Tu(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const a=i.target;typeof a.dragDrop=="function"&&(a.tagName==="INPUT"||a.tagName==="SELECT"||a.tagName==="TEXTAREA"||a.isContentEditable||(i.preventDefault(),a.dragDrop()))},this.options=new WL(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new NL(this.isNodeInDocument)}}const HL=function(t,n,r){return new qL(t,n,r)};var Nm={exports:{}},Th={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var J1;function YL(){if(J1)return Th;J1=1;var e=B;function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return Th.useSyncExternalStoreWithSelector=function(c,u,d,f,h){var p=i(null);if(p.current===null){var b={hasValue:!1,value:null};p.current=b}else b=p.current;p=s(function(){function y(S){if(!g){if(g=!0,v=S,S=f(S),h!==void 0&&b.hasValue){var O=b.value;if(h(O,S))return x=O}return x=S}if(O=x,n(v,S))return O;var C=f(S);return h!==void 0&&h(O,C)?(v=S,O):(v=S,x=C)}var g=!1,v,x,w=d===void 0?null:d;return[function(){return y(u())},w===null?void 0:function(){return y(w())}]},[u,d,f,h]);var m=r(c,p[0],p[1]);return a(function(){b.hasValue=!0,b.value=m},[m]),l(m),m},Th}var Oh={};/**
 * @license React
 * use-sync-external-store-with-selector.development.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ew;function GL(){return ew||(ew=1,process.env.NODE_ENV!=="production"&&function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=B,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;Oh.useSyncExternalStoreWithSelector=function(c,u,d,f,h){var p=i(null);if(p.current===null){var b={hasValue:!1,value:null};p.current=b}else b=p.current;p=s(function(){function y(S){if(!g){if(g=!0,v=S,S=f(S),h!==void 0&&b.hasValue){var O=b.value;if(h(O,S))return x=O}return x=S}if(O=x,n(v,S))return O;var C=f(S);return h!==void 0&&h(O,C)?(v=S,O):(v=S,x=C)}var g=!1,v,x,w=d===void 0?null:d;return[function(){return y(u())},w===null?void 0:function(){return y(w())}]},[u,d,f,h]);var m=r(c,p[0],p[1]);return a(function(){b.hasValue=!0,b.value=m},[m]),l(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Oh}process.env.NODE_ENV==="production"?Nm.exports=YL():Nm.exports=GL();var KL=Nm.exports;function XL(e){e()}function ZL(){let e=null,t=null;return{clear(){e=null,t=null},notify(){XL(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var tw={notify(){},get:()=>[]};function QL(e,t){let n,r=tw,i=0,a=!1;function s(m){d();const y=r.subscribe(m);let g=!1;return()=>{g||(g=!0,y(),f())}}function l(){r.notify()}function c(){b.onStateChange&&b.onStateChange()}function u(){return a}function d(){i++,n||(n=e.subscribe(c),r=ZL())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=tw)}function h(){a||(a=!0,d())}function p(){a&&(a=!1,f())}const b={addNestedSub:s,notifyNestedSubs:l,handleChangeWrapper:c,isSubscribed:u,trySubscribe:h,tryUnsubscribe:p,getListeners:()=>r};return b}var JL=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",eF=JL(),tF=()=>typeof navigator<"u"&&navigator.product==="ReactNative",nF=tF(),rF=()=>eF||nF?I.useLayoutEffect:I.useEffect,oF=rF(),Eh=Symbol.for("react-redux-context"),Ch=typeof globalThis<"u"?globalThis:{};function iF(){if(!I.createContext)return{};const e=Ch[Eh]??(Ch[Eh]=new Map);let t=e.get(I.createContext);return t||(t=I.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(I.createContext,t)),t}var bi=iF();function aF(e){const{children:t,context:n,serverState:r,store:i}=e,a=I.useMemo(()=>{const c=QL(i),u={store:i,subscription:c,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return u;{const{identityFunctionCheck:d="once",stabilityCheck:f="once"}=e;return Object.assign(u,{stabilityCheck:f,identityFunctionCheck:d})}},[i,r]),s=I.useMemo(()=>i.getState(),[i]);oF(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const l=n||bi;return I.createElement(l.Provider,{value:a},t)}var sF=aF;function og(e=bi){return function(){const n=I.useContext(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var DE=og();function $E(e=bi){const t=e===bi?DE:og(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var lF=$E();function cF(e=bi){const t=e===bi?lF:$E(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var RE=cF(),uF=(e,t)=>e===t;function dF(e=bi){const t=e===bi?DE:og(e),n=(r,i={})=>{const{equalityFn:a=uF}=typeof i=="function"?{equalityFn:i}:i;if(process.env.NODE_ENV!=="production"){if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof a!="function")throw new Error("You must pass a function as an equality function to useSelector")}const s=t(),{store:l,subscription:c,getServerState:u}=s,d=I.useRef(!0),f=I.useCallback({[r.name](p){const b=r(p);if(process.env.NODE_ENV!=="production"){const{devModeChecks:m={}}=typeof i=="function"?{}:i,{identityFunctionCheck:y,stabilityCheck:g}=s,{identityFunctionCheck:v,stabilityCheck:x}={stabilityCheck:g,identityFunctionCheck:y,...m};if(x==="always"||x==="once"&&d.current){const w=r(p);if(!a(b,w)){let S;try{throw new Error}catch(O){({stack:S}=O)}console.warn("Selector "+(r.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:p,selected:b,selected2:w,stack:S})}}if((v==="always"||v==="once"&&d.current)&&b===p){let w;try{throw new Error}catch(S){({stack:w}=S)}console.warn("Selector "+(r.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:w})}d.current&&(d.current=!1)}return b}}[r.name],[r]),h=KL.useSyncExternalStoreWithSelector(c.addNestedSub,l.getState,u||l.getState,f,a);return I.useDebugValue(h),h};return Object.assign(n,{withTypes:()=>n}),n}var ns=dF();function jn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var fF=typeof Symbol=="function"&&Symbol.observable||"@@observable",nw=fF,Ph=()=>Math.random().toString(36).substring(7).split("").join("."),pF={INIT:`@@redux/INIT${Ph()}`,REPLACE:`@@redux/REPLACE${Ph()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ph()}`},qi=pF;function Dc(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function hF(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(gF(e))return"date";if(yF(e))return"error";const n=mF(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function mF(e){return typeof e.constructor=="function"?e.constructor.name:null}function yF(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function gF(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function ci(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=hF(e)),t}function ME(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?jn(2):`Expected the root reducer to be a function. Instead, received: '${ci(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?jn(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?jn(1):`Expected the enhancer to be a function. Instead, received: '${ci(n)}'`);return n(ME)(e,t)}let r=e,i=t,a=new Map,s=a,l=0,c=!1;function u(){s===a&&(s=new Map,a.forEach((y,g)=>{s.set(g,y)}))}function d(){if(c)throw new Error(process.env.NODE_ENV==="production"?jn(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(y){if(typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?jn(4):`Expected the listener to be a function. Instead, received: '${ci(y)}'`);if(c)throw new Error(process.env.NODE_ENV==="production"?jn(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let g=!0;u();const v=l++;return s.set(v,y),function(){if(g){if(c)throw new Error(process.env.NODE_ENV==="production"?jn(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");g=!1,u(),s.delete(v),a=null}}}function h(y){if(!Dc(y))throw new Error(process.env.NODE_ENV==="production"?jn(7):`Actions must be plain objects. Instead, the actual type was: '${ci(y)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof y.type>"u")throw new Error(process.env.NODE_ENV==="production"?jn(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof y.type!="string")throw new Error(process.env.NODE_ENV==="production"?jn(17):`Action "type" property must be a string. Instead, the actual type was: '${ci(y.type)}'. Value was: '${y.type}' (stringified)`);if(c)throw new Error(process.env.NODE_ENV==="production"?jn(9):"Reducers may not dispatch actions.");try{c=!0,i=r(i,y)}finally{c=!1}return(a=s).forEach(v=>{v()}),y}function p(y){if(typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?jn(10):`Expected the nextReducer to be a function. Instead, received: '${ci(y)}`);r=y,h({type:qi.REPLACE})}function b(){const y=f;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(process.env.NODE_ENV==="production"?jn(11):`Expected the observer to be an object. Instead, received: '${ci(g)}'`);function v(){const w=g;w.next&&w.next(d())}return v(),{unsubscribe:y(v)}},[nw](){return this}}}return h({type:qi.INIT}),{dispatch:h,subscribe:f,getState:d,replaceReducer:p,[nw]:b}}function rw(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function bF(e,t,n,r){const i=Object.keys(t),a=n&&n.type===qi.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Dc(e))return`The ${a} has unexpected type of "${ci(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const s=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!r[l]);if(s.forEach(l=>{r[l]=!0}),!(n&&n.type===qi.REPLACE)&&s.length>0)return`Unexpected ${s.length>1?"keys":"key"} "${s.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function vF(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:qi.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?jn(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:qi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?jn(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${qi.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function wF(e){const t=Object.keys(e),n={};for(let s=0;s<t.length;s++){const l=t[s];process.env.NODE_ENV!=="production"&&typeof e[l]>"u"&&rw(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(n[l]=e[l])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let a;try{vF(n)}catch(s){a=s}return function(l={},c){if(a)throw a;if(process.env.NODE_ENV!=="production"){const f=bF(l,n,c,i);f&&rw(f)}let u=!1;const d={};for(let f=0;f<r.length;f++){const h=r[f],p=n[h],b=l[h],m=p(b,c);if(typeof m>"u"){const y=c&&c.type;throw new Error(process.env.NODE_ENV==="production"?jn(14):`When called with an action of type ${y?`"${String(y)}"`:"(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}d[h]=m,u=u||m!==b}return u=u||r.length!==Object.keys(l).length,u?d:l}}function wd(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function xF(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?jn(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const s={getState:i.getState,dispatch:(c,...u)=>a(c,...u)},l=e.map(c=>c(s));return a=wd(...l)(i.dispatch),{...i,dispatch:a}}}function IE(e){return Dc(e)&&"type"in e&&typeof e.type=="string"}var NE=Symbol.for("immer-nothing"),ow=Symbol.for("immer-draftable"),Tr=Symbol.for("immer-state"),SF=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function or(e,...t){if(process.env.NODE_ENV!=="production"){const n=SF[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var rs=Object.getPrototypeOf;function Qi(e){return!!e&&!!e[Tr]}function Yo(e){var t;return e?AE(e)||Array.isArray(e)||!!e[ow]||!!((t=e.constructor)!=null&&t[ow])||$c(e)||Uf(e):!1}var TF=Object.prototype.constructor.toString();function AE(e){if(!e||typeof e!="object")return!1;const t=rs(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===TF}function xd(e,t){Wf(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Wf(e){const t=e[Tr];return t?t.type_:Array.isArray(e)?1:$c(e)?2:Uf(e)?3:0}function Am(e,t){return Wf(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function jE(e,t,n){const r=Wf(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function OF(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function $c(e){return e instanceof Map}function Uf(e){return e instanceof Set}function Mi(e){return e.copy_||e.base_}function jm(e,t){if($c(e))return new Map(e);if(Uf(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=AE(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Tr];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const s=i[a],l=r[s];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(r[s]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[s]})}return Object.create(rs(e),r)}else{const r=rs(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function ig(e,t=!1){return qf(e)||Qi(e)||!Yo(e)||(Wf(e)>1&&Object.defineProperties(e,{set:{value:Ou},add:{value:Ou},clear:{value:Ou},delete:{value:Ou}}),Object.freeze(e),t&&Object.values(e).forEach(n=>ig(n,!0))),e}function Ou(){or(2)}function qf(e){return Object.isFrozen(e)}var EF={};function Ji(e){const t=EF[e];return t||or(0,e),t}var rc;function LE(){return rc}function CF(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function iw(e,t){t&&(Ji("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Lm(e){Fm(e),e.drafts_.forEach(PF),e.drafts_=null}function Fm(e){e===rc&&(rc=e.parent_)}function aw(e){return rc=CF(rc,e)}function PF(e){const t=e[Tr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function sw(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Tr].modified_&&(Lm(t),or(4)),Yo(e)&&(e=Sd(t,e),t.parent_||Td(t,e)),t.patches_&&Ji("Patches").generateReplacementPatches_(n[Tr].base_,e,t.patches_,t.inversePatches_)):e=Sd(t,n,[]),Lm(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==NE?e:void 0}function Sd(e,t,n){if(qf(t))return t;const r=t[Tr];if(!r)return xd(t,(i,a)=>lw(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Td(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),xd(a,(l,c)=>lw(e,r,i,l,c,n,s)),Td(e,i,!1),n&&e.patches_&&Ji("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function lw(e,t,n,r,i,a,s){if(process.env.NODE_ENV!=="production"&&i===n&&or(5),Qi(i)){const l=a&&t&&t.type_!==3&&!Am(t.assigned_,r)?a.concat(r):void 0,c=Sd(e,i,l);if(jE(n,r,c),Qi(c))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Yo(i)&&!qf(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Sd(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&($c(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&Td(e,i)}}function Td(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ig(t,n)}function _F(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:LE(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=ag;n&&(i=[r],a=oc);const{revoke:s,proxy:l}=Proxy.revocable(i,a);return r.draft_=l,r.revoke_=s,l}var ag={get(e,t){if(t===Tr)return e;const n=Mi(e);if(!Am(n,t))return kF(e,n,t);const r=n[t];return e.finalized_||!Yo(r)?r:r===_h(e.base_,t)?(kh(e),e.copy_[t]=Vm(r,e)):r},has(e,t){return t in Mi(e)},ownKeys(e){return Reflect.ownKeys(Mi(e))},set(e,t,n){const r=FE(Mi(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=_h(Mi(e),t),a=i==null?void 0:i[Tr];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(OF(n,i)&&(n!==void 0||Am(e.base_,t)))return!0;kh(e),Bm(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return _h(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,kh(e),Bm(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Mi(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){or(11)},getPrototypeOf(e){return rs(e.base_)},setPrototypeOf(){or(12)}},oc={};xd(ag,(e,t)=>{oc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});oc.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&or(13),oc.set.call(this,e,t,void 0)};oc.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&or(14),ag.set.call(this,e[0],t,n,e[0])};function _h(e,t){const n=e[Tr];return(n?Mi(n):e)[t]}function kF(e,t,n){var i;const r=FE(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function FE(e,t){if(!(t in e))return;let n=rs(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=rs(n)}}function Bm(e){e.modified_||(e.modified_=!0,e.parent_&&Bm(e.parent_))}function kh(e){e.copy_||(e.copy_=jm(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var DF=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(c=a,...u){return s.produce(c,d=>n.call(this,d,...u))}}typeof n!="function"&&or(6),r!==void 0&&typeof r!="function"&&or(7);let i;if(Yo(t)){const a=aw(this),s=Vm(t,void 0);let l=!0;try{i=n(s),l=!1}finally{l?Lm(a):Fm(a)}return iw(a,r),sw(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===NE&&(i=void 0),this.autoFreeze_&&ig(i,!0),r){const a=[],s=[];Ji("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else or(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...l)=>this.produceWithPatches(s,c=>t(c,...l));let r,i;return[this.produce(t,n,(s,l)=>{r=s,i=l}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Yo(e)||or(8),Qi(e)&&(e=$F(e));const t=aw(this),n=Vm(e,void 0);return n[Tr].isManual_=!0,Fm(t),n}finishDraft(e,t){const n=e&&e[Tr];(!n||!n.isManual_)&&or(9);const{scope_:r}=n;return iw(r,t),sw(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Ji("Patches").applyPatches_;return Qi(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Vm(e,t){const n=$c(e)?Ji("MapSet").proxyMap_(e,t):Uf(e)?Ji("MapSet").proxySet_(e,t):_F(e,t);return(t?t.scope_:LE()).drafts_.push(n),n}function $F(e){return Qi(e)||or(10,e),BE(e)}function BE(e){if(!Yo(e)||qf(e))return e;const t=e[Tr];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=jm(e,t.scope_.immer_.useStrictShallowCopy_)}else n=jm(e,!0);return xd(n,(r,i)=>{jE(n,r,BE(i))}),t&&(t.finalized_=!1),n}var RF=new DF,VE=RF.produce;function zE(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var MF=zE(),IF=zE,NF=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?wd:wd.apply(null,arguments)},AF=e=>e&&typeof e.match=="function";function cw(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?nn(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>IE(r)&&r.type===e,n}function jF(e){return typeof e=="function"&&"type"in e&&AF(e)}function LF(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched. 
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function FF(e={}){if(process.env.NODE_ENV==="production")return()=>n=>r=>n(r);const{isActionCreator:t=jF}=e;return()=>n=>r=>(t(r)&&console.warn(LF(r.type)),n(r))}function WE(e,t){let n=0;return{measureTime(r){const i=Date.now();try{return r()}finally{const a=Date.now();n+=a-i}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms. 
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
It is disabled in production builds, so you don't need to worry about that.`)}}}var UE=class El extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,El.prototype)}static get[Symbol.species](){return El}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new El(...t[0].concat(this)):new El(...t.concat(this))}};function uw(e){return Yo(e)?VE(e,()=>{}):e}function Eu(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function BF(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function VF(e,t,n){const r=qE(e,t,n);return{detectMutations(){return HE(e,t,r,n)}}}function qE(e,t=[],n,r="",i=new Set){const a={value:n};if(!e(n)&&!i.has(n)){i.add(n),a.children={};for(const s in n){const l=r?r+"."+s:s;t.length&&t.indexOf(l)!==-1||(a.children[s]=qE(e,t,n[s],l))}}return a}function HE(e,t=[],n,r,i=!1,a=""){const s=n?n.value:void 0,l=s===r;if(i&&!l&&!Number.isNaN(r))return{wasMutated:!0,path:a};if(e(s)||e(r))return{wasMutated:!1};const c={};for(let d in n.children)c[d]=!0;for(let d in r)c[d]=!0;const u=t.length>0;for(let d in c){const f=a?a+"."+d:d;if(u&&t.some(b=>b instanceof RegExp?b.test(f):f===b))continue;const h=HE(e,t,n.children[d],r[d],l,f);if(h.wasMutated)return h}return{wasMutated:!1}}function zF(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(l,c,u,d){return JSON.stringify(l,n(c,d),u)},n=function(l,c){let u=[],d=[];return c||(c=function(f,h){return u[0]===h?"[Circular ~]":"[Circular ~."+d.slice(0,u.indexOf(h)).join(".")+"]"}),function(f,h){if(u.length>0){var p=u.indexOf(this);~p?u.splice(p+1):u.push(this),~p?d.splice(p,1/0,f):d.push(f),~u.indexOf(h)&&(h=c.call(this,f,h))}else u.push(h);return l==null?h:l.call(this,f,h)}},{isImmutable:r=BF,ignoredPaths:i,warnAfter:a=32}=e;const s=VF.bind(null,r,i);return({getState:l})=>{let c=l(),u=s(c),d;return f=>h=>{const p=WE(a,"ImmutableStateInvariantMiddleware");p.measureTime(()=>{if(c=l(),d=u.detectMutations(),u=s(c),d.wasMutated)throw new Error(process.env.NODE_ENV==="production"?nn(19):`A state mutation was detected between dispatches, in the path '${d.path||""}'.  This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const b=f(h);return p.measureTime(()=>{if(c=l(),d=u.detectMutations(),u=s(c),d.wasMutated)throw new Error(process.env.NODE_ENV==="production"?nn(20):`A state mutation was detected inside a dispatch, in the path: ${d.path||""}. Take a look at the reducer(s) handling the action ${t(h)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),p.warnIfExceeded(),b}}}}function YE(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Dc(e)}function zm(e,t="",n=YE,r,i=[],a){let s;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||a!=null&&a.has(e))return!1;const l=r!=null?r(e):Object.entries(e),c=i.length>0;for(const[u,d]of l){const f=t?t+"."+u:u;if(!(c&&i.some(p=>p instanceof RegExp?p.test(f):f===p))){if(!n(d))return{keyPath:f,value:d};if(typeof d=="object"&&(s=zm(d,f,n,r,i,a),s))return s}}return a&&GE(e)&&a.add(e),!1}function GE(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!GE(t))return!1;return!0}function WF(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=YE,getEntries:n,ignoredActions:r=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:a=[],warnAfter:s=32,ignoreState:l=!1,ignoreActions:c=!1,disableCache:u=!1}=e,d=!u&&WeakSet?new WeakSet:void 0;return f=>h=>p=>{if(!IE(p))return h(p);const b=h(p),m=WE(s,"SerializableStateInvariantMiddleware");return!c&&!(r.length&&r.indexOf(p.type)!==-1)&&m.measureTime(()=>{const y=zm(p,"",t,n,i,d);if(y){const{keyPath:g,value:v}=y;console.error(`A non-serializable value was detected in an action, in the path: \`${g}\`. Value:`,v,`
Take a look at the logic that dispatched this action: `,p,`
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),l||(m.measureTime(()=>{const y=f.getState(),g=zm(y,"",t,n,a,d);if(g){const{keyPath:v,value:x}=g;console.error(`A non-serializable value was detected in the state, in the path: \`${v}\`. Value:`,x,`
Take a look at the reducer(s) handling this action type: ${p.type}.
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),m.warnIfExceeded()),b}}}function Cu(e){return typeof e=="boolean"}var UF=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new UE;if(n&&(Cu(n)?s.push(MF):s.push(IF(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let l={};Cu(r)||(l=r),s.unshift(zF(l))}if(i){let l={};Cu(i)||(l=i),s.push(WF(l))}if(a){let l={};Cu(a)||(l=a),s.unshift(FF(l))}}return s},qF="RTK_autoBatch",dw=e=>t=>{setTimeout(t,e)},HF=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const l=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:dw(10):e.type==="callback"?e.queueNotification:dw(e.timeout),u=()=>{s=!1,a&&(a=!1,l.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>i&&d(),h=r.subscribe(f);return l.add(d),()=>{h(),l.delete(d)}},dispatch(d){var f;try{return i=!((f=d==null?void 0:d.meta)!=null&&f[qF]),a=!i,a&&(s||(s=!0,c(u))),r.dispatch(d)}finally{i=!0}}})},YF=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new UE(e);return r&&i.push(HF(typeof r=="object"?r:void 0)),i};function GF(e){const t=UF(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:l=void 0}=e||{};let c;if(typeof n=="function")c=n;else if(Dc(n))c=wF(n);else throw new Error(process.env.NODE_ENV==="production"?nn(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?nn(2):"`middleware` field must be a callback");let u;if(typeof r=="function"){if(u=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(process.env.NODE_ENV==="production"?nn(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(process.env.NODE_ENV!=="production"&&u.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?nn(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&a){let m=new Set;u.forEach(y=>{if(m.has(y))throw new Error(process.env.NODE_ENV==="production"?nn(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(y)})}let d=wd;i&&(d=NF({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const f=xF(...u),h=YF(f);if(process.env.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(process.env.NODE_ENV==="production"?nn(5):"`enhancers` field must be a callback");let p=typeof l=="function"?l(h):h();if(process.env.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(process.env.NODE_ENV==="production"?nn(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&p.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?nn(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&u.length&&!p.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const b=d(...p);return ME(c,s,b)}function KE(e){const t={},n=[];let r;const i={addCase(a,s){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?nn(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?nn(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof a=="string"?a:a.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?nn(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?nn(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=s,i},addAsyncThunk(a,s){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?nn(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return s.pending&&(t[a.pending.type]=s.pending),s.rejected&&(t[a.rejected.type]=s.rejected),s.fulfilled&&(t[a.fulfilled.type]=s.fulfilled),s.settled&&n.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?nn(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?nn(31):"`builder.addDefaultCase` can only be called once");return r=a,i}};return e(i),[t,n,r]}function KF(e){return typeof e=="function"}function XF(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?nn(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,i]=KE(t),a;if(KF(e))a=()=>uw(e());else{const l=uw(e);a=()=>l}function s(l=a(),c){let u=[n[c.type],...r.filter(({matcher:d})=>d(c)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[i]),u.reduce((d,f)=>{if(f)if(Qi(d)){const p=f(d,c);return p===void 0?d:p}else{if(Yo(d))return VE(d,h=>f(h,c));{const h=f(d,c);if(h===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return d},l)}return s.getInitialState=a,s}var ZF=Symbol.for("rtk-slice-createasyncthunk");function QF(e,t){return`${e}/${t}`}function JF({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[ZF];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(process.env.NODE_ENV==="production"?nn(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&i.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof i.reducers=="function"?i.reducers(nB()):i.reducers)||{},c=Object.keys(l),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(w,S){const O=typeof w=="string"?w:w.type;if(!O)throw new Error(process.env.NODE_ENV==="production"?nn(12):"`context.addCase` cannot be called with an empty action type");if(O in u.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?nn(13):"`context.addCase` cannot be called with two reducers for the same action type: "+O);return u.sliceCaseReducersByType[O]=S,d},addMatcher(w,S){return u.sliceMatchers.push({matcher:w,reducer:S}),d},exposeAction(w,S){return u.actionCreators[w]=S,d},exposeCaseReducer(w,S){return u.sliceCaseReducersByName[w]=S,d}};c.forEach(w=>{const S=l[w],O={reducerName:w,type:QF(a,w),createNotation:typeof i.reducers=="function"};oB(S)?aB(O,S,d,t):rB(O,S,d)});function f(){if(process.env.NODE_ENV!=="production"&&typeof i.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?nn(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[w={},S=[],O=void 0]=typeof i.extraReducers=="function"?KE(i.extraReducers):[i.extraReducers],C={...w,...u.sliceCaseReducersByType};return XF(i.initialState,P=>{for(let k in C)P.addCase(k,C[k]);for(let k of u.sliceMatchers)P.addMatcher(k.matcher,k.reducer);for(let k of S)P.addMatcher(k.matcher,k.reducer);O&&P.addDefaultCase(O)})}const h=w=>w,p=new Map,b=new WeakMap;let m;function y(w,S){return m||(m=f()),m(w,S)}function g(){return m||(m=f()),m.getInitialState()}function v(w,S=!1){function O(P){let k=P[w];if(typeof k>"u"){if(S)k=Eu(b,O,g);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?nn(15):"selectSlice returned undefined for an uninjected slice reducer")}return k}function C(P=h){const k=Eu(p,S,()=>new WeakMap);return Eu(k,P,()=>{const E={};for(const[_,T]of Object.entries(i.selectors??{}))E[_]=eB(T,P,()=>Eu(b,P,g),S);return E})}return{reducerPath:w,getSelectors:C,get selectors(){return C(O)},selectSlice:O}}const x={name:a,reducer:y,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:g,...v(s),injectInto(w,{reducerPath:S,...O}={}){const C=S??s;return w.inject({reducerPath:C,reducer:y},O),{...x,...v(C,!0)}}};return x}}function eB(e,t,n,r){function i(a,...s){let l=t(a);if(typeof l>"u"){if(r)l=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?nn(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...s)}return i.unwrapped=e,i}var tB=JF();function nB(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function rB({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!iB(r))throw new Error(process.env.NODE_ENV==="production"?nn(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?cw(e,s):cw(e))}function oB(e){return e._reducerDefinitionType==="asyncThunk"}function iB(e){return e._reducerDefinitionType==="reducerWithPrepare"}function aB({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?nn(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:s,pending:l,rejected:c,settled:u,options:d}=n,f=i(e,a,d);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),l&&r.addCase(f.pending,l),c&&r.addCase(f.rejected,c),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||Pu,pending:l||Pu,rejected:c||Pu,settled:u||Pu})}function Pu(){}function nn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Hf="TEXTBOX",Yf="EMAIL",os="MULTILINE_TEXT",is="DATE_PICKER",as="RADIO",ss="CHECKBOX",Gf="DROPDOWN",Od="GROUP",Ed="FORM_SECTION",Cd="THERAPIST_SECTION",Pd="SUPERVISION_SECTION",Ga="IMAGE",ic="INFORMATION",_d="ADDRESS",kd="HEADER",Ka="MULTISELECT",Dd="CONTENT",$d="HORIZONTAL_LAYOUT",Xa="SIGNATURE",Hi="RANGE",sB="PRACTICE_CONTACT_INFO",lB="THERAPIST_NAME",cB="THERAPIST_NPI",uB="CLIENT_LEGAL_NAME_FIRST_LAST",dB="CLIENT_LEGAL_NAME_LAST_FIRST",fB="CLIENT_DATE_OF_BIRTH",pB="CLIENT_CONTACT_INFO",XE="CLIENT_INSURANCE_INFO",ks={[sB]:{label:"Practice Contact Info",autoFieldKey:"practice.contactInfo",variant:"phone",keyPrefix:"practice_contact"},[lB]:{label:"Therapist Name",autoFieldKey:"therapist.name",variant:"text",keyPrefix:"therapist_name"},[cB]:{label:"Therapist NPI",autoFieldKey:"therapist.npi",variant:"text",keyPrefix:"therapist_npi"},[uB]:{label:"Client Legal Name (First, Last)",autoFieldKey:"client.legalName.firstLast",variant:"text",keyPrefix:"client_legal_name_first_last"},[dB]:{label:"Client Legal Name (Last, First)",autoFieldKey:"client.legalName.lastFirst",variant:"text",keyPrefix:"client_legal_name_last_first"},[fB]:{label:"Client Date of Birth",autoFieldKey:"client.dateOfBirth",variant:"date",keyPrefix:"client_date_of_birth"},[pB]:{label:"Client Contact Information",autoFieldKey:"client.contactInfo",variant:"phone",keyPrefix:"client_contact"},[XE]:{label:"Client Insurance Information",autoFieldKey:"client.insurance",variant:"insurance",keyPrefix:"client_insurance"}},sg=Object.keys(ks);function ZE(e){return Object.prototype.hasOwnProperty.call(ks,e)}function QE(e){const t=ks[e],n=`${t.keyPrefix}_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;return{fieldKey:n,uiControl:{type:"Control",scope:`#/properties/${n}`,options:{autoField:!0,autoFieldKey:t.autoFieldKey}}}}function JE(e){var t;return((t=e==null?void 0:e.options)==null?void 0:t.autoField)===!0}function lg(e,t){var n;if(!(!t||!Array.isArray(e)))for(const r of e){const i=r;if((i==null?void 0:i.type)==="Control"&&((n=i.scope)!=null&&n.endsWith(`/${t}`)))return i;if(Array.isArray(i==null?void 0:i.elements)){const a=lg(i.elements,t);if(a)return a}}}function hB(e,t){return JE(lg(e,t))}function mB(e,t){var n,r;return(r=(n=lg(e,t))==null?void 0:n.options)==null?void 0:r.autoFieldKey}const eC=Object.values(ks).reduce((e,t)=>({...e,[t.autoFieldKey]:t}),{});function yB(e){var t;if(e)return(t=eC[e])==null?void 0:t.label}function tC(e){var t;return e?((t=eC[e])==null?void 0:t.variant)??"text":"text"}function Dh(e,t){return e.type!=="null"&&e.title!=="Content"&&e.title!=="Horizontal Layout"&&!JE(t)}const fw={schema:{type:"object",properties:{},required:[]},uischema:{type:"VerticalLayout",elements:[]}},nC=tB({name:"formBuilder",initialState:fw,reducers:{resetState:()=>fw,setSchema:(e,t)=>{e.schema=t.payload},setUischema:(e,t)=>{e.uischema=t.payload},addField(e,t){var n;if((n=e.schema.properties)!=null&&n[t.payload.fieldKey]){console.warn(`Duplicate fieldKey "${t.payload.fieldKey}" detected. Skipping addField.`);return}e.schema.properties={...e.schema.properties,[t.payload.fieldKey]:t.payload.fieldSchema},Dh(t.payload.fieldSchema,t.payload.uiControl)&&(e.schema.required=[...e.schema.required||[],t.payload.fieldKey]),e.uischema.elements=[...e.uischema.elements||[],t.payload.uiControl]},updateField(e,t){e.schema.properties||(e.schema.properties={}),e.schema.properties={...e.schema.properties,[t.payload.fieldKey]:t.payload.fieldSchema},t.payload.required?e.schema.required=Array.from(new Set([...e.schema.required||[],t.payload.fieldKey])):e.schema.required=(e.schema.required||[]).filter(n=>n!==t.payload.fieldKey)},addGroup(e,t){e.uischema.elements=[...e.uischema.elements||[],{type:"Group",label:t.payload.label,elements:[],_key:t.payload.groupKey}]},updateGroupLabel(e,t){if(!e.uischema.elements)return;const n=e.uischema.elements.find(r=>r.type==="Group"&&r._key===t.payload.groupKey);n&&n.type==="Group"&&(n.label=t.payload.label)},addFieldToGroup(e,t){e.schema.properties={...e.schema.properties,[t.payload.fieldKey]:t.payload.fieldSchema},Dh(t.payload.fieldSchema,t.payload.uiControl)&&(e.schema.required=[...e.schema.required||[],t.payload.fieldKey]);const n=e.uischema.elements.find(r=>r.type==="Group"&&r._key===t.payload.groupKey);n&&n.type==="Group"&&Array.isArray(n.elements)&&n.elements.push(t.payload.uiControl)},updateLabelText(e,t){if(!e.uischema.elements)return;const n=e.uischema.elements.find(r=>r.type==="Label"&&r._key===t.payload.fieldKey);n&&(n.text=t.payload.text)},updateGroupLayout(e,t){if(!e.uischema.elements)return;const n=e.uischema.elements.find(r=>r.type==="Group"&&r._key===t.payload.groupKey);n&&n.type==="Group"&&(n.elements=t.payload.elements)},addFieldToHorizontalLayout(e,t){e.schema.properties={...e.schema.properties,[t.payload.fieldKey]:t.payload.fieldSchema},Dh(t.payload.fieldSchema,t.payload.uiControl)&&(e.schema.required=[...e.schema.required||[],t.payload.fieldKey]);const n=i=>{for(const a of i){if(a.type==="HorizontalLayout"&&a._key===t.payload.layoutKey)return a;if(a.type==="Group"&&Array.isArray(a.elements)){const s=n(a.elements);if(s)return s}if(a.type==="HorizontalLayout"&&Array.isArray(a.elements)){const s=n(a.elements);if(s)return s}}return null},r=n(e.uischema.elements||[]);r&&r.type==="HorizontalLayout"&&Array.isArray(r.elements)&&r.elements.push(t.payload.uiControl)},deleteField(e,t){var i;const{fieldKey:n}=t.payload;(i=e.schema.properties)!=null&&i[n]&&delete e.schema.properties[n],e.schema.required=(e.schema.required||[]).filter(a=>a!==n);const r=a=>a.filter(s=>{var l;return s.type==="Control"&&((l=s.scope)!=null&&l.endsWith(`/${n}`))||s._key===n?!1:((s.type==="Group"||s.type==="HorizontalLayout")&&Array.isArray(s.elements)&&(s.elements=r(s.elements)),!0)});e.uischema.elements=r(e.uischema.elements)}}}),{resetState:gB,setSchema:bB,setUischema:vB,addField:go,updateField:Cl,addGroup:Oa,updateGroupLabel:wB,addFieldToGroup:mo,updateLabelText:xB,updateGroupLayout:pw,addFieldToHorizontalLayout:hw,deleteField:SB}=nC.actions,rC=nC.reducer,oC=GF({reducer:{formBuilder:rC}});function Wm(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function iC(e){return D.jsx(Wy,{...e,defaultTheme:Af,themeId:zr})}process.env.NODE_ENV!=="production"&&(iC.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function TB(e){return function(n){return D.jsx(iC,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function OB(){return _f}const ze=uA;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function qe(e){return aA(e)}function EB(e){return ke("MuiSvgIcon",e)}$e("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const CB=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ve(t)}`,`fontSize${ve(n)}`]};return _e(i,EB,r)},PB=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ve(n.color)}`],t[`fontSize${ve(n.fontSize)}`]]}})(ze(({theme:e})=>{var t,n,r,i,a,s,l,c,u,d,f,h,p,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:m=>!m.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,m])=>m&&m.main).map(([m])=>{var y,g;return{props:{color:m},style:{color:(g=(y=(e.vars??e).palette)==null?void 0:y[m])==null?void 0:g.main}}}),{props:{color:"action"},style:{color:(h=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(b=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ac=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24",...p}=r,b=I.isValidElement(i)&&i.type==="svg",m={...r,color:s,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:b},y={};d||(y.viewBox=h);const g=CB(m);return D.jsxs(PB,{as:l,className:we(g.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...y,...p,...b&&i.props,ownerState:m,children:[b?i.props.children:i,f?D.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(ac.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string});ac.muiName="SvgIcon";function ot(e,t){function n(r,i){return D.jsx(ac,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ac.muiName,I.memo(I.forwardRef(n))}function Kf(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function pn(e){return e&&e.ownerDocument||document}function so(e){return pn(e).defaultView||window}function _B(e,t){if(process.env.NODE_ENV==="production")return()=>()=>null;const n=t?{...t.propTypes}:null;return i=>(a,s,l,c,u,...d)=>{const f=u||s,h=n==null?void 0:n[f];if(h){const p=h(a,s,l,c,u,...d);if(p)return p}return typeof a[s]<"u"&&!a[i]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${i}\` prop.`):null}}function Um(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function aC(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const a=i||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function Gn(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=I.useRef(t!==void 0),[s,l]=I.useState(n),c=a?t:s;if(process.env.NODE_ENV!=="production"){I.useEffect(()=>{a!==(t!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${i} state of ${r} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
`))},[i,r,t]);const{current:d}=I.useRef(n);I.useEffect(()=>{!a&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
`))},[JSON.stringify(n)])}const u=I.useCallback(d=>{a||l(d)},[]);return[c,u]}function Ae(e){const t=I.useRef(e);return Jt(()=>{t.current=e}),I.useRef((...n)=>(0,t.current)(...n)).current}function Et(...e){const t=I.useRef(void 0),n=I.useCallback(r=>{const i=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,l=s(r);return typeof l=="function"?l:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{i.forEach(a=>a==null?void 0:a())}},e);return I.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function kB(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function sC(e,t){if(!e)return t;function n(s,l){const c={};return Object.keys(l).forEach(u=>{kB(u,l[u])&&typeof s[u]=="function"&&(c[u]=(...d)=>{s[u](...d),l[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,c=typeof e=="function"?e({...s,...l}):e,u=we(s==null?void 0:s.className,l==null?void 0:l.className,c==null?void 0:c.className),d=n(c,l);return{...l,...c,...d,...!!u&&{className:u},...(l==null?void 0:l.style)&&(c==null?void 0:c.style)&&{style:{...l.style,...c.style}},...(l==null?void 0:l.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,i=n(e,r),a=we(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...i,...!!a&&{className:a},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function er(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Je(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function qm(e,t){return qm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qm(e,t)}function cg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qm(e,t)}function DB(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function $B(e,t){e.classList?e.classList.add(t):DB(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function mw(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function RB(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=mw(e.className,t):e.setAttribute("class",mw(e.className&&e.className.baseVal||"",t))}const yw={disabled:!1};var MB=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null,IB=process.env.NODE_ENV!=="production"?o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]):null;const Rd=B.createContext(null);var lC=function(t){return t.scrollTop},Pl="unmounted",Ii="exited",Ni="entering",Ma="entered",Hm="exiting",_r=function(e){cg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,l=s&&!s.isMounting?r.enter:r.appear,c;return a.appearStatus=null,r.in?l?(c=Ii,a.appearStatus=Ni):c=Ma:r.unmountOnExit||r.mountOnEnter?c=Pl:c=Ii,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===Pl?{status:Ii}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Ni&&s!==Ma&&(a=Ni):(s===Ni||s===Ma)&&(a=Hm)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,l;return a=s=l=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:l}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Ni){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:La.findDOMNode(this);s&&lC(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ii&&this.setState({status:Pl})},n.performEnter=function(i){var a=this,s=this.props.enter,l=this.context?this.context.isMounting:i,c=this.props.nodeRef?[l]:[La.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),h=l?f.appear:f.enter;if(!i&&!s||yw.disabled){this.safeSetState({status:Ma},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Ni},function(){a.props.onEntering(u,d),a.onTransitionEnd(h,function(){a.safeSetState({status:Ma},function(){a.props.onEntered(u,d)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:La.findDOMNode(this);if(!a||yw.disabled){this.safeSetState({status:Ii},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Hm},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Ii},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:La.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Pl)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=Je(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return B.createElement(Rd.Provider,{value:null},typeof s=="function"?s(i,l):B.cloneElement(B.Children.only(s),l))},t}(B.Component);_r.contextType=Rd;_r.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,n,r,i,a){var s=e[t];return o.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var n=MB;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return n.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function Ea(){}_r.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ea,onEntering:Ea,onEntered:Ea,onExit:Ea,onExiting:Ea,onExited:Ea};_r.UNMOUNTED=Pl;_r.EXITED=Ii;_r.ENTERING=Ni;_r.ENTERED=Ma;_r.EXITING=Hm;var NB=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return $B(t,r)})},$h=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return RB(t,r)})},ug=function(e){cg(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,c){var u=r.resolveArguments(l,c),d=u[0],f=u[1];r.removeClasses(d,"exit"),r.addClass(d,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,c)},r.onEntering=function(l,c){var u=r.resolveArguments(l,c),d=u[0],f=u[1],h=f?"appear":"enter";r.addClass(d,h,"active"),r.props.onEntering&&r.props.onEntering(l,c)},r.onEntered=function(l,c){var u=r.resolveArguments(l,c),d=u[0],f=u[1],h=f?"appear":"enter";r.removeClasses(d,h),r.addClass(d,h,"done"),r.props.onEntered&&r.props.onEntered(l,c)},r.onExit=function(l){var c=r.resolveArguments(l),u=c[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var c=r.resolveArguments(l),u=c[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var c=r.resolveArguments(l),u=c[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,c){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,c]},r.getClassNames=function(l){var c=r.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",f=u?""+d+l:c[l],h=u?f+"-active":c[l+"Active"],p=u?f+"-done":c[l+"Done"];return{baseClassName:f,activeClassName:h,doneClassName:p}},r}var n=t.prototype;return n.addClass=function(i,a,s){var l=this.getClassNames(a)[s+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;a==="appear"&&s==="done"&&u&&(l+=" "+u),s==="active"&&i&&lC(i),l&&(this.appliedClasses[a][s]=l,NB(i,l))},n.removeClasses=function(i,a){var s=this.appliedClasses[a],l=s.base,c=s.active,u=s.done;this.appliedClasses[a]={},l&&$h(i,l),c&&$h(i,c),u&&$h(i,u)},n.render=function(){var i=this.props;i.classNames;var a=Je(i,["classNames"]);return B.createElement(_r,ee({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(B.Component);ug.defaultProps={classNames:""};ug.propTypes=process.env.NODE_ENV!=="production"?ee({},_r.propTypes,{classNames:IB,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}):{};function AB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dg(e,t){var n=function(a){return t&&B.isValidElement(a)?t(a):a},r=Object.create(null);return e&&B.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function jB(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var s,l={};for(var c in t){if(r[c])for(s=0;s<r[c].length;s++){var u=r[c][s];l[r[c][s]]=n(u)}l[c]=n(c)}for(s=0;s<i.length;s++)l[i[s]]=n(i[s]);return l}function Wi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function LB(e,t){return dg(e.children,function(n){return B.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Wi(n,"appear",e),enter:Wi(n,"enter",e),exit:Wi(n,"exit",e)})})}function FB(e,t,n){var r=dg(e.children),i=jB(t,r);return Object.keys(i).forEach(function(a){var s=i[a];if(B.isValidElement(s)){var l=a in t,c=a in r,u=t[a],d=B.isValidElement(u)&&!u.props.in;c&&(!l||d)?i[a]=B.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Wi(s,"exit",e),enter:Wi(s,"enter",e)}):!c&&l&&!d?i[a]=B.cloneElement(s,{in:!1}):c&&l&&B.isValidElement(u)&&(i[a]=B.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:Wi(s,"exit",e),enter:Wi(s,"enter",e)}))}}),i}var BB=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},VB={component:"div",childFactory:function(t){return t}},Rc=function(e){cg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=a.handleExited.bind(AB(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var s=a.children,l=a.handleExited,c=a.firstRender;return{children:c?LB(i,l):FB(i,s,l),firstRender:!1}},n.handleExited=function(i,a){var s=dg(this.props.children);i.key in s||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(l){var c=ee({},l.children);return delete c[i.key],{children:c}}))},n.render=function(){var i=this.props,a=i.component,s=i.childFactory,l=Je(i,["component","childFactory"]),c=this.state.contextValue,u=BB(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,a===null?B.createElement(Rd.Provider,{value:c},u):B.createElement(Rd.Provider,{value:c},B.createElement(a,l,u))},t}(B.Component);Rc.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{};Rc.defaultProps=VB;const gw={};function cC(e,t){const n=I.useRef(gw);return n.current===gw&&(n.current=e(t)),n}const zB=[];function WB(e){I.useEffect(e,zB)}class Xf{constructor(){ae(this,"currentId",null);ae(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});ae(this,"disposeEffect",()=>this.clear)}static create(){return new Xf}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function wr(){const e=cC(Xf.create).current;return WB(e.disposeEffect),e}function UB(e){const{prototype:t={}}=e;return!!t.isReactComponent}function qB(e,t,n,r,i){const a=e[t],s=i||t;if(a==null||typeof window>"u")return null;let l;return typeof a=="function"&&!UB(a)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Mc=er(o.elementType,qB),uC=e=>e.scrollTop;function ls(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function HB(e){return ke("MuiCollapse",e)}$e("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const YB=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return _e(r,HB,n)},GB=ne("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(ze(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),KB=ne("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),XB=ne("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Md=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:s,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:f,onEntered:h,onEntering:p,onExit:b,onExited:m,onExiting:y,orientation:g="vertical",style:v,timeout:x=sE.standard,TransitionComponent:w=_r,...S}=r,O={...r,orientation:g,collapsedSize:l},C=YB(O),P=uo(),k=wr(),E=I.useRef(null),_=I.useRef(),T=typeof l=="number"?`${l}px`:l,$=g==="horizontal",M=$?"width":"height",j=I.useRef(null),W=Et(n,j),U=N=>q=>{if(N){const Y=j.current;q===void 0?N(Y):N(Y,q)}},K=()=>E.current?E.current[$?"clientWidth":"clientHeight"]:0,H=U((N,q)=>{E.current&&$&&(E.current.style.position="absolute"),N.style[M]=T,f&&f(N,q)}),F=U((N,q)=>{const Y=K();E.current&&$&&(E.current.style.position="");const{duration:G,easing:X}=ls({style:v,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const Q=P.transitions.getAutoHeightDuration(Y);N.style.transitionDuration=`${Q}ms`,_.current=Q}else N.style.transitionDuration=typeof G=="string"?G:`${G}ms`;N.style[M]=`${Y}px`,N.style.transitionTimingFunction=X,p&&p(N,q)}),R=U((N,q)=>{N.style[M]="auto",h&&h(N,q)}),V=U(N=>{N.style[M]=`${K()}px`,b&&b(N)}),z=U(m),L=U(N=>{const q=K(),{duration:Y,easing:G}=ls({style:v,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const X=P.transitions.getAutoHeightDuration(q);N.style.transitionDuration=`${X}ms`,_.current=X}else N.style.transitionDuration=typeof Y=="string"?Y:`${Y}ms`;N.style[M]=T,N.style.transitionTimingFunction=G,y&&y(N)}),A=N=>{x==="auto"&&k.start(_.current||0,N),i&&i(j.current,N)};return D.jsx(w,{in:d,onEnter:H,onEntered:R,onEntering:F,onExit:V,onExited:z,onExiting:L,addEndListener:A,nodeRef:j,timeout:x==="auto"?null:x,...S,children:(N,{ownerState:q,...Y})=>D.jsx(GB,{as:c,className:we(C.root,s,{entered:C.entered,exited:!d&&T==="0px"&&C.hidden}[N]),style:{[$?"minWidth":"minHeight"]:T,...v},ref:W,ownerState:{...O,state:N},...Y,children:D.jsx(KB,{ownerState:{...O,state:N},className:C.wrapper,ref:E,children:D.jsx(XB,{ownerState:{...O,state:N},className:C.wrapperInner,children:a})})})})});process.env.NODE_ENV!=="production"&&(Md.propTypes={addEndListener:o.func,children:o.node,classes:o.object,className:o.string,collapsedSize:o.oneOfType([o.number,o.string]),component:Mc,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,orientation:o.oneOf(["horizontal","vertical"]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});Md&&(Md.muiSupportAuto=!0);function ZB(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function dC(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const a=ZB(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${a}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function fC(e,t,n,r){return e[t]===void 0?null:dC(e,t,n,r)}function Ym(){return null}fC.isRequired=dC;Ym.isRequired=Ym;const Ic=process.env.NODE_ENV==="production"?Ym:fC;function QB(e){return ke("MuiPaper",e)}$e("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 JB=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return _e(a,QB,i)},e5=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(ze(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),fo=I.forwardRef(function(t,n){var p;const r=qe({props:t,name:"MuiPaper"}),i=uo(),{className:a,component:s="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=r,f={...r,component:s,elevation:l,square:c,variant:u},h=JB(f);return process.env.NODE_ENV!=="production"&&i.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
`)),D.jsx(e5,{as:s,ownerState:f,className:we(h.root,a),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[l],...i.vars&&{"--Paper-overlay":(p=i.vars.overlays)==null?void 0:p[l]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${dr("#fff",km(l))}, ${dr("#fff",km(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(fo.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:er(Ic,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});const fg=I.createContext({});process.env.NODE_ENV!=="production"&&(fg.displayName="AccordionContext");function _o(e){return typeof e=="string"}function pC(e,t,n){return e===void 0||_o(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Jn(e,t,n){return typeof e=="function"?e(t,n):e}function Al(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function bw(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function hC(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const p=we(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),b={...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},m={...n,...i,...r};return p.length>0&&(m.className=p),Object.keys(b).length>0&&(m.style=b),{props:m,internalRef:void 0}}const s=Al({...i,...r}),l=bw(r),c=bw(i),u=t(s),d=we(u==null?void 0:u.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),f={...u==null?void 0:u.style,...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},h={...u,...n,...c,...l};return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}function Ke(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0},...h}=a,p=d[e]||r,b=Jn(f[e],i),{props:{component:m,...y},internalRef:g}=hC({className:n,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:b}),v=Et(g,b==null?void 0:b.ref,t.ref),x=e==="root"?m||u:m,w=pC(p,{...e==="root"&&!u&&!d[e]&&s,...e!=="root"&&!d[e]&&s,...y,...x&&!l&&{as:x},...x&&l&&{component:x},ref:v},i);return[p,w]}function t5(e){return ke("MuiAccordion",e)}const _u=$e("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),n5=e=>{const{classes:t,square:n,expanded:r,disabled:i,disableGutters:a}=e;return _e({root:["root",!n&&"rounded",r&&"expanded",i&&"disabled",!a&&"gutters"],heading:["heading"],region:["region"]},t5,t)},r5=ne(fo,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_u.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(ze(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${_u.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${_u.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),ze(({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${_u.expanded}`]:{margin:"16px 0"}}}]}))),o5=ne("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),i5=ne("div",{name:"MuiAccordion",slot:"Region"})({}),mC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiAccordion"}),{children:i,className:a,defaultExpanded:s=!1,disabled:l=!1,disableGutters:c=!1,expanded:u,onChange:d,square:f=!1,slots:h={},slotProps:p={},TransitionComponent:b,TransitionProps:m,...y}=r,[g,v]=Gn({controlled:u,default:s,name:"Accordion",state:"expanded"}),x=I.useCallback(F=>{v(!g),d&&d(F,!g)},[g,d,v]),[w,...S]=I.Children.toArray(i),O=I.useMemo(()=>({expanded:g,disabled:l,disableGutters:c,toggle:x}),[g,l,c,x]),C={...r,square:f,disabled:l,disableGutters:c,expanded:g},P=n5(C),k={transition:b,...h},E={transition:m,...p},_={slots:k,slotProps:E},[T,$]=Ke("root",{elementType:r5,externalForwardedProps:{..._,...y},className:we(P.root,a),shouldForwardComponentProp:!0,ownerState:C,ref:n,additionalProps:{square:f}}),[M,j]=Ke("heading",{elementType:o5,externalForwardedProps:_,className:P.heading,ownerState:C}),[W,U]=Ke("transition",{elementType:Md,externalForwardedProps:_,ownerState:C}),[K,H]=Ke("region",{elementType:i5,externalForwardedProps:_,ownerState:C,className:P.region,additionalProps:{"aria-labelledby":w.props.id,id:w.props["aria-controls"],role:"region"}});return D.jsxs(T,{...$,children:[D.jsx(M,{...j,children:D.jsx(fg.Provider,{value:O,children:w})}),D.jsx(W,{in:g,timeout:"auto",...U,children:D.jsx(K,{...H,children:S})})]})});process.env.NODE_ENV!=="production"&&(mC.propTypes={children:er(o.node.isRequired,e=>{const t=I.Children.toArray(e.children)[0];return Ho.isFragment(t)?new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead."):I.isValidElement(t)?null:new Error("MUI: Expected the first child of Accordion to be a valid element.")}),classes:o.object,className:o.string,defaultExpanded:o.bool,disabled:o.bool,disableGutters:o.bool,expanded:o.bool,onChange:o.func,slotProps:o.shape({heading:o.oneOfType([o.func,o.object]),region:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({heading:o.elementType,region:o.elementType,root:o.elementType,transition:o.elementType}),square:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,TransitionProps:o.object});function a5(e){return ke("MuiAccordionDetails",e)}$e("MuiAccordionDetails",["root"]);const s5=e=>{const{classes:t}=e;return _e({root:["root"]},a5,t)},l5=ne("div",{name:"MuiAccordionDetails",slot:"Root"})(ze(({theme:e})=>({padding:e.spacing(1,2,2)}))),yC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiAccordionDetails"}),{className:i,...a}=r,s=r,l=s5(s);return D.jsx(l5,{className:we(l.root,i),ref:n,ownerState:s,...a})});process.env.NODE_ENV!=="production"&&(yC.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Nt=o.oneOfType([o.func,o.object]);function cs(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
`))}return!1}class Id{constructor(){ae(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Id}static use(){const t=cC(Id.create).current,[n,r]=I.useState(!1);return t.shouldMount=n,t.setShouldMount=r,I.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=u5(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function c5(){return Id.use()}function u5(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function gC(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,f]=I.useState(!1),h=we(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:s,height:s,top:-(s/2)+a,left:-(s/2)+i},b=we(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&f(!0),I.useEffect(()=>{if(!l&&c!=null){const m=setTimeout(c,u);return()=>{clearTimeout(m)}}},[c,l,u]),D.jsx("span",{className:h,style:p,children:D.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(gC.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const Lr=$e("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Gm=550,d5=80,f5=Cc`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`,p5=Cc`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`,h5=Cc`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`,m5=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),y5=ne(gC,{name:"MuiTouchRipple",slot:"Ripple"})`
  opacity: 0;
  position: absolute;

  &.${Lr.rippleVisible} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${f5};
    animation-duration: ${Gm}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  &.${Lr.ripplePulsate} {
    animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
  }

  & .${Lr.child} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${Lr.childLeaving} {
    opacity: 0;
    animation-name: ${p5};
    animation-duration: ${Gm}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  & .${Lr.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${h5};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,bC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:s,...l}=r,[c,u]=I.useState([]),d=I.useRef(0),f=I.useRef(null);I.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const h=I.useRef(!1),p=wr(),b=I.useRef(null),m=I.useRef(null),y=I.useCallback(w=>{const{pulsate:S,rippleX:O,rippleY:C,rippleSize:P,cb:k}=w;u(E=>[...E,D.jsx(y5,{classes:{ripple:we(a.ripple,Lr.ripple),rippleVisible:we(a.rippleVisible,Lr.rippleVisible),ripplePulsate:we(a.ripplePulsate,Lr.ripplePulsate),child:we(a.child,Lr.child),childLeaving:we(a.childLeaving,Lr.childLeaving),childPulsate:we(a.childPulsate,Lr.childPulsate)},timeout:Gm,pulsate:S,rippleX:O,rippleY:C,rippleSize:P},d.current)]),d.current+=1,f.current=k},[a]),g=I.useCallback((w={},S={},O=()=>{})=>{const{pulsate:C=!1,center:P=i||S.pulsate,fakeElement:k=!1}=S;if((w==null?void 0:w.type)==="mousedown"&&h.current){h.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(h.current=!0);const E=k?null:m.current,_=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let T,$,M;if(P||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)T=Math.round(_.width/2),$=Math.round(_.height/2);else{const{clientX:j,clientY:W}=w.touches&&w.touches.length>0?w.touches[0]:w;T=Math.round(j-_.left),$=Math.round(W-_.top)}if(P)M=Math.sqrt((2*_.width**2+_.height**2)/3),M%2===0&&(M+=1);else{const j=Math.max(Math.abs((E?E.clientWidth:0)-T),T)*2+2,W=Math.max(Math.abs((E?E.clientHeight:0)-$),$)*2+2;M=Math.sqrt(j**2+W**2)}w!=null&&w.touches?b.current===null&&(b.current=()=>{y({pulsate:C,rippleX:T,rippleY:$,rippleSize:M,cb:O})},p.start(d5,()=>{b.current&&(b.current(),b.current=null)})):y({pulsate:C,rippleX:T,rippleY:$,rippleSize:M,cb:O})},[i,y,p]),v=I.useCallback(()=>{g({},{pulsate:!0})},[g]),x=I.useCallback((w,S)=>{if(p.clear(),(w==null?void 0:w.type)==="touchend"&&b.current){b.current(),b.current=null,p.start(0,()=>{x(w,S)});return}b.current=null,u(O=>O.length>0?O.slice(1):O),f.current=S},[p]);return I.useImperativeHandle(n,()=>({pulsate:v,start:g,stop:x}),[v,g,x]),D.jsx(m5,{className:we(Lr.root,a.root,s),ref:m,...l,children:D.jsx(Rc,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(bC.propTypes={center:o.bool,classes:o.object,className:o.string});function g5(e){return ke("MuiButtonBase",e)}const b5=$e("MuiButtonBase",["root","disabled","focusVisible"]),v5=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=_e({root:["root",t&&"disabled",n&&"focusVisible"]},g5,i);return n&&r&&(s.root+=` ${r}`),s},w5=ne("button",{name:"MuiButtonBase",slot:"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"},[`&.${b5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Or=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:s,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:h=!1,focusVisibleClassName:p,LinkComponent:b="a",onBlur:m,onClick:y,onContextMenu:g,onDragLeave:v,onFocus:x,onFocusVisible:w,onKeyDown:S,onKeyUp:O,onMouseDown:C,onMouseLeave:P,onMouseUp:k,onTouchEnd:E,onTouchMove:_,onTouchStart:T,tabIndex:$=0,TouchRippleProps:M,touchRippleRef:j,type:W,...U}=r,K=I.useRef(null),H=c5(),F=Et(H.ref,j),[R,V]=I.useState(!1);u&&R&&V(!1),I.useImperativeHandle(i,()=>({focusVisible:()=>{V(!0),K.current.focus()}}),[]);const z=H.shouldMount&&!d&&!u;I.useEffect(()=>{R&&h&&!d&&H.pulsate()},[d,h,R,H]);const L=Bo(H,"start",C,f),A=Bo(H,"stop",g,f),N=Bo(H,"stop",v,f),q=Bo(H,"stop",k,f),Y=Bo(H,"stop",re=>{R&&re.preventDefault(),P&&P(re)},f),G=Bo(H,"start",T,f),X=Bo(H,"stop",E,f),Q=Bo(H,"stop",_,f),Z=Bo(H,"stop",re=>{cs(re.target)||V(!1),m&&m(re)},!1),ce=Ae(re=>{K.current||(K.current=re.currentTarget),cs(re.target)&&(V(!0),w&&w(re)),x&&x(re)}),ue=()=>{const re=K.current;return c&&c!=="button"&&!(re.tagName==="A"&&re.href)},ye=Ae(re=>{h&&!re.repeat&&R&&re.key===" "&&H.stop(re,()=>{H.start(re)}),re.target===re.currentTarget&&ue()&&re.key===" "&&re.preventDefault(),S&&S(re),re.target===re.currentTarget&&ue()&&re.key==="Enter"&&!u&&(re.preventDefault(),y&&y(re))}),de=Ae(re=>{h&&re.key===" "&&R&&!re.defaultPrevented&&H.stop(re,()=>{H.pulsate(re)}),O&&O(re),y&&re.target===re.currentTarget&&ue()&&re.key===" "&&!re.defaultPrevented&&y(re)});let pe=c;pe==="button"&&(U.href||U.to)&&(pe=b);const J={};pe==="button"?(J.type=W===void 0?"button":W,J.disabled=u):(!U.href&&!U.to&&(J.role="button"),u&&(J["aria-disabled"]=u));const oe=Et(n,K),te={...r,centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:h,tabIndex:$,focusVisible:R},le=v5(te);return D.jsxs(w5,{as:pe,className:we(le.root,l),ownerState:te,onBlur:Z,onClick:y,onContextMenu:A,onFocus:ce,onKeyDown:ye,onKeyUp:de,onMouseDown:L,onMouseLeave:Y,onMouseUp:q,onDragLeave:N,onTouchEnd:X,onTouchMove:Q,onTouchStart:G,ref:oe,tabIndex:u?-1:$,type:W,...J,...U,children:[s,z?D.jsx(bC,{ref:F,center:a,...M}):null]})});function Bo(e,t,n,r=!1){return Ae(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(Or.propTypes={action:Nt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:Mc,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function x5(e){return ke("MuiAccordionSummary",e)}const Fa=$e("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),S5=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:i}=e;return _e({root:["root",n&&"expanded",r&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},x5,t)},T5=ne(Or,{name:"MuiAccordionSummary",slot:"Root"})(ze(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${Fa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Fa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Fa.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${Fa.expanded}`]:{minHeight:64}}}]}})),O5=ne("span",{name:"MuiAccordionSummary",slot:"Content"})(ze(({theme:e})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Fa.expanded}`]:{margin:"20px 0"}}}]}))),E5=ne("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(ze(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Fa.expanded}`]:{transform:"rotate(180deg)"}}))),vC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:s,focusVisibleClassName:l,onClick:c,slots:u,slotProps:d,...f}=r,{disabled:h=!1,disableGutters:p,expanded:b,toggle:m}=I.useContext(fg),y=E=>{m&&m(E),c&&c(E)},g={...r,expanded:b,disabled:h,disableGutters:p},v=S5(g),x={slots:u,slotProps:d},[w,S]=Ke("root",{ref:n,shouldForwardComponentProp:!0,className:we(v.root,a),elementType:T5,externalForwardedProps:{...x,...f},ownerState:g,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:h,"aria-expanded":b,focusVisibleClassName:we(v.focusVisible,l)},getSlotProps:E=>({...E,onClick:_=>{var T;(T=E.onClick)==null||T.call(E,_),y(_)}})}),[O,C]=Ke("content",{className:v.content,elementType:O5,externalForwardedProps:x,ownerState:g}),[P,k]=Ke("expandIconWrapper",{className:v.expandIconWrapper,elementType:E5,externalForwardedProps:x,ownerState:g});return D.jsxs(w,{...S,children:[D.jsx(O,{...C,children:i}),s&&D.jsx(P,{...k,children:s})]})});process.env.NODE_ENV!=="production"&&(vC.propTypes={children:o.node,classes:o.object,className:o.string,expandIcon:o.node,focusVisibleClassName:o.string,onClick:o.func,slotProps:o.shape({content:o.oneOfType([o.func,o.object]),expandIconWrapper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({content:o.elementType,expandIconWrapper:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function C5(e){return typeof e.main=="string"}function P5(e,t=[]){if(!C5(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function fn(e=[]){return([,t])=>t&&P5(t,e)}function _5(e){return ke("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const oi=44,Km=Cc`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`,Xm=Cc`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,k5=typeof Km!="string"?Fy`
        animation: ${Km} 1.4s linear infinite;
      `:null,D5=typeof Xm!="string"?Fy`
        animation: ${Xm} 1.4s ease-in-out infinite;
      `:null,$5=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${ve(r)}`],svg:["svg"],circle:["circle",`circle${ve(n)}`,i&&"circleDisableShrink"]};return _e(a,_5,t)},R5=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ve(n.color)}`]]}})(ze(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:k5||{animation:`${Km} 1.4s linear infinite`}},...Object.entries(e.palette).filter(fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),M5=ne("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),I5=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ve(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(ze(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:D5||{animation:`${Xm} 1.4s ease-in-out infinite`}}]}))),pg=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:s=!1,size:l=40,style:c,thickness:u=3.6,value:d=0,variant:f="indeterminate",...h}=r,p={...r,color:a,disableShrink:s,size:l,thickness:u,value:d,variant:f},b=$5(p),m={},y={},g={};if(f==="determinate"){const v=2*Math.PI*((oi-u)/2);m.strokeDasharray=v.toFixed(3),g["aria-valuenow"]=Math.round(d),m.strokeDashoffset=`${((100-d)/100*v).toFixed(3)}px`,y.transform="rotate(-90deg)"}return D.jsx(R5,{className:we(b.root,i),style:{width:l,height:l,...y,...c},ownerState:p,ref:n,role:"progressbar",...g,...h,children:D.jsx(M5,{className:b.svg,ownerState:p,viewBox:`${oi/2} ${oi/2} ${oi} ${oi}`,children:D.jsx(I5,{className:b.circle,style:m,ownerState:p,cx:oi,cy:oi,r:(oi-u)/2,fill:"none",strokeWidth:u})})})});process.env.NODE_ENV!=="production"&&(pg.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:er(o.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function N5(e){return ke("MuiIconButton",e)}const vw=$e("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),A5=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a,loading:s}=e,l={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${ve(r)}`,i&&`edge${ve(i)}`,`size${ve(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return _e(l,N5,t)},j5=ne(Or,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ve(n.color)}`],n.edge&&t[`edge${ve(n.edge)}`],t[`size${ve(n.size)}`]]}})(ze(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ze(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(fn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${vw.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${vw.loading}`]:{color:"transparent"}}))),L5=ne("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Pt=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:s,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:f,loading:h=null,loadingIndicator:p,...b}=r,m=Pr(f),y=p??D.jsx(pg,{"aria-labelledby":m,color:"inherit",size:16}),g={...r,edge:i,color:l,disabled:c,disableFocusRipple:u,loading:h,loadingIndicator:y,size:d},v=A5(g);return D.jsxs(j5,{id:h?m:f,className:we(v.root,s),centerRipple:!0,focusRipple:!u,disabled:c||h,ref:n,...b,ownerState:g,children:[typeof h=="boolean"&&D.jsx("span",{className:v.loadingWrapper,style:{display:"contents"},children:D.jsx(L5,{className:v.loadingIndicator,ownerState:g,children:h&&y})}),a]})});process.env.NODE_ENV!=="production"&&(Pt.propTypes={children:er(o.node,e=>I.Children.toArray(e.children).some(n=>I.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
`)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const F5=ot(D.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function B5(e){return ke("MuiTypography",e)}const Nd=$e("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),V5={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},z5=OB(),W5=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:s}=e,l={root:["root",a,e.align!=="inherit"&&`align${ve(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return _e(l,B5,s)},U5=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ve(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ze(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(fn()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${ve(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),ww={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Xe=I.forwardRef(function(t,n){const{color:r,...i}=qe({props:t,name:"MuiTypography"}),a=!V5[r],s=z5({...i,...a&&{color:r}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:f=!1,paragraph:h=!1,variant:p="body1",variantMapping:b=ww,...m}=s,y={...s,align:l,color:r,className:c,component:u,gutterBottom:d,noWrap:f,paragraph:h,variant:p,variantMapping:b},g=u||(h?"p":b[p]||ww[p])||"span",v=W5(y);return D.jsx(U5,{as:g,ref:n,className:we(v.root,c),...m,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...m.style}})});process.env.NODE_ENV!=="production"&&(Xe.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});function q5(e){return ke("MuiAppBar",e)}$e("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const H5=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ve(t)}`,`position${ve(n)}`]};return _e(i,q5,r)},xw=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Y5=ne(fo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ve(n.position)}`],t[`color${ve(n.color)}`]]}})(ze(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(fn(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?xw(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?xw(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),wC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:s=!1,position:l="fixed",...c}=r,u={...r,color:a,position:l,enableColorOnDark:s},d=H5(u);return D.jsx(Y5,{square:!0,component:"header",ownerState:u,elevation:4,className:we(d.root,i,l==="fixed"&&"mui-fixed"),ref:n,...c})});process.env.NODE_ENV!=="production"&&(wC.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","inherit","primary","secondary","transparent","error","info","success","warning"]),o.string]),enableColorOnDark:o.bool,position:o.oneOf(["absolute","fixed","relative","static","sticky"]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const hg=e=>{const t=I.useRef({});return I.useEffect(()=>{t.current=e}),t.current};function Sw({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,i)=>n(r)===n(t[i]))}function Tw(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function G5(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:a,trim:s=!1}=e;return(l,{inputValue:c,getOptionLabel:u})=>{let d=s?c.trim():c;n&&(d=d.toLowerCase()),t&&(d=Tw(d));const f=d?l.filter(h=>{let p=(a||u)(h);return n&&(p=p.toLowerCase()),t&&(p=Tw(p)),i==="start"?p.startsWith(d):p.includes(d)}):l;return typeof r=="number"?f.slice(0,r):f}}const K5=G5(),Ow=5,X5=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},Z5=[];function Ew(e,t,n,r){if(t||e==null||r)return"";const i=n(e);return typeof i=="string"?i:""}function Q5(e){const{unstable_isActiveElementInListbox:t=X5,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?Z5:null,disableClearable:f=!1,disableCloseOnSelect:h=!1,disabled:p,disabledItemsFocusable:b=!1,disableListWrap:m=!1,filterOptions:y=K5,filterSelectedOptions:g=!1,freeSolo:v=!1,getOptionDisabled:x,getOptionKey:w,getOptionLabel:S=xe=>xe.label??xe,groupBy:O,handleHomeEndKeys:C=!e.freeSolo,id:P,includeInputInList:k=!1,inputValue:E,isOptionEqualToValue:_=(xe,be)=>xe===be,multiple:T=!1,onChange:$,onClose:M,onHighlightChange:j,onInputChange:W,onOpen:U,open:K,openOnFocus:H=!1,options:F,readOnly:R=!1,renderValue:V,selectOnFocus:z=!e.freeSolo,value:L}=e,A=Pr(P);let N=S;N=xe=>{const be=S(xe);if(typeof be!="string"){if(process.env.NODE_ENV!=="production"){const Ne=be===void 0?"undefined":`${typeof be} (${be})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${Ne} instead of a string for ${JSON.stringify(xe)}.`)}return String(be)}return be};const q=I.useRef(!1),Y=I.useRef(!0),G=I.useRef(null),X=I.useRef(null),[Q,Z]=I.useState(null),[ce,ue]=I.useState(-1),ye=i?0:-1,de=I.useRef(ye),pe=I.useRef(Ew(d??L,T,N)).current,[J,oe]=Gn({controlled:L,default:d,name:u}),[te,le]=Gn({controlled:E,default:pe,name:u,state:"inputValue"}),[re,Ee]=I.useState(!1),Pe=I.useCallback((xe,be,Ne)=>{if(!(T?J.length<be.length:be!==null)&&!l)return;const it=Ew(be,T,N,V);te!==it&&(le(it),W&&W(xe,it,Ne))},[N,te,T,W,le,l,J,V]),[fe,ge]=Gn({controlled:K,default:!1,name:u,state:"open"}),[De,Me]=I.useState(!0),Ie=!T&&J!=null&&te===N(J),he=fe&&!R,me=he?y(F.filter(xe=>!(g&&(T?J:[J]).some(be=>be!==null&&_(xe,be)))),{inputValue:Ie&&De?"":te,getOptionLabel:N}):[],Be=hg({filteredOptions:me,value:J,inputValue:te});I.useEffect(()=>{const xe=J!==Be.value;re&&!xe||v&&!xe||Pe(null,J,"reset")},[J,Pe,re,Be.value,v]);const Ue=fe&&me.length>0&&!R,We=Ae(xe=>{if(xe===-1)G.current.focus();else{const be=V?"data-item-index":"data-tag-index";Q.querySelector(`[${be}="${xe}"]`).focus()}});I.useEffect(()=>{T&&ce>J.length-1&&(ue(-1),We(-1))},[J,T,ce,We]);function lt(xe,be){if(!X.current||xe<0||xe>=me.length)return-1;let Ne=xe;for(;;){const tt=X.current.querySelector(`[data-option-index="${Ne}"]`),it=b?!1:!tt||tt.disabled||tt.getAttribute("aria-disabled")==="true";if(tt&&tt.hasAttribute("tabindex")&&!it)return Ne;if(be==="next"?Ne=(Ne+1)%me.length:Ne=(Ne-1+me.length)%me.length,Ne===xe)return-1}}const kt=Ae(({event:xe,index:be,reason:Ne})=>{if(de.current=be,be===-1?G.current.removeAttribute("aria-activedescendant"):G.current.setAttribute("aria-activedescendant",`${A}-option-${be}`),j&&["mouse","keyboard","touch"].includes(Ne)&&j(xe,be===-1?null:me[be],Ne),!X.current)return;const tt=X.current.querySelector(`[role="option"].${n}-focused`);tt&&(tt.classList.remove(`${n}-focused`),tt.classList.remove(`${n}-focusVisible`));let it=X.current;if(X.current.getAttribute("role")!=="listbox"&&(it=X.current.parentElement.querySelector('[role="listbox"]')),!it)return;if(be===-1){it.scrollTop=0;return}const At=X.current.querySelector(`[data-option-index="${be}"]`);if(At&&(At.classList.add(`${n}-focused`),Ne==="keyboard"&&At.classList.add(`${n}-focusVisible`),it.scrollHeight>it.clientHeight&&Ne!=="mouse"&&Ne!=="touch")){const $t=At,Rn=it.clientHeight+it.scrollTop,ti=$t.offsetTop+$t.offsetHeight;ti>Rn?it.scrollTop=ti-it.clientHeight:$t.offsetTop-$t.offsetHeight*(O?1.3:0)<it.scrollTop&&(it.scrollTop=$t.offsetTop-$t.offsetHeight*(O?1.3:0))}}),et=Ae(({event:xe,diff:be,direction:Ne="next",reason:tt})=>{if(!he)return;const At=lt((()=>{const $t=me.length-1;if(be==="reset")return ye;if(be==="start")return 0;if(be==="end")return $t;const Rn=de.current+be;return Rn<0?Rn===-1&&k?-1:m&&de.current!==-1||Math.abs(be)>1?0:$t:Rn>$t?Rn===$t+1&&k?-1:m||Math.abs(be)>1?$t:0:Rn})(),Ne);if(kt({index:At,reason:tt,event:xe}),r&&be!=="reset")if(At===-1)G.current.value=te;else{const $t=N(me[At]);G.current.value=$t,$t.toLowerCase().indexOf(te.toLowerCase())===0&&te.length>0&&G.current.setSelectionRange(te.length,$t.length)}}),ht=!Sw({array1:Be.filteredOptions,array2:me,parser:N}),Tt=()=>{const xe=(be,Ne)=>{const tt=be?N(be):"",it=Ne?N(Ne):"";return tt===it};if(de.current!==-1&&!Sw({array1:Be.filteredOptions,array2:me,parser:N})&&Be.inputValue===te&&(T?J.length===Be.value.length&&Be.value.every((be,Ne)=>N(J[Ne])===N(be)):xe(Be.value,J))){const be=Be.filteredOptions[de.current];if(be)return me.findIndex(Ne=>N(Ne)===N(be))}return-1},ie=I.useCallback(()=>{if(!he)return;const xe=Tt();if(xe!==-1){de.current=xe;return}const be=T?J[0]:J;if(me.length===0||be==null){et({diff:"reset"});return}if(X.current){if(be!=null){const Ne=me[de.current];if(T&&Ne&&J.findIndex(it=>_(Ne,it))!==-1)return;const tt=me.findIndex(it=>_(it,be));tt===-1?et({diff:"reset"}):kt({index:tt});return}if(de.current>=me.length-1){kt({index:me.length-1});return}kt({index:de.current})}},[me.length,T?!1:J,g,et,kt,he,te,T]),Ce=Ae(xe=>{Um(X,xe),xe&&ie()});process.env.NODE_ENV!=="production"&&I.useEffect(()=>{(!G.current||G.current.nodeName!=="INPUT")&&(G.current&&G.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
`)):console.error([`MUI: Unable to find the input element. It was resolved to ${G.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"",u==="useAutocomplete"?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join(`
`)))},[u]),I.useEffect(()=>{ht&&ie()},[ie,ht]);const Oe=xe=>{fe||(ge(!0),Me(!0),U&&U(xe))},Le=(xe,be)=>{fe&&(ge(!1),M&&M(xe,be))},Se=(xe,be,Ne,tt)=>{if(T){if(J.length===be.length&&J.every((it,At)=>it===be[At]))return}else if(J===be)return;$&&$(xe,be,Ne,tt),oe(be)},Ye=I.useRef(!1),nt=(xe,be,Ne="selectOption",tt="options")=>{let it=Ne,At=be;if(T){if(At=Array.isArray(J)?J.slice():[],process.env.NODE_ENV!=="production"){const Rn=At.filter(ti=>_(be,ti));Rn.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${Rn.length} matches.`].join(`
`))}const $t=At.findIndex(Rn=>_(be,Rn));$t===-1?At.push(be):tt!=="freeSolo"&&(At.splice($t,1),it="removeOption")}Pe(xe,At,it),Se(xe,At,it,{option:be}),!h&&(!xe||!xe.ctrlKey&&!xe.metaKey)&&Le(xe,it),(s===!0||s==="touch"&&Ye.current||s==="mouse"&&!Ye.current)&&G.current.blur()};function Ve(xe,be){if(xe===-1)return-1;let Ne=xe;for(;;){if(be==="next"&&Ne===J.length||be==="previous"&&Ne===-1)return-1;const tt=V?"data-item-index":"data-tag-index",it=Q.querySelector(`[${tt}="${Ne}"]`);if(!it||!it.hasAttribute("tabindex")||it.disabled||it.getAttribute("aria-disabled")==="true")Ne+=be==="next"?1:-1;else return Ne}}const Dt=(xe,be)=>{if(!T)return;te===""&&Le(xe,"toggleInput");let Ne=ce;ce===-1?te===""&&be==="previous"&&(Ne=J.length-1):(Ne+=be==="next"?1:-1,Ne<0&&(Ne=0),Ne===J.length&&(Ne=-1)),Ne=Ve(Ne,be),ue(Ne),We(Ne)},Fe=xe=>{q.current=!0,le(""),W&&W(xe,"","clear"),Se(xe,T?[]:null,"clear")},Ze=xe=>be=>{if(xe.onKeyDown&&xe.onKeyDown(be),!be.defaultMuiPrevented&&(ce!==-1&&!["ArrowLeft","ArrowRight"].includes(be.key)&&(ue(-1),We(-1)),be.which!==229))switch(be.key){case"Home":he&&C&&(be.preventDefault(),et({diff:"start",direction:"next",reason:"keyboard",event:be}));break;case"End":he&&C&&(be.preventDefault(),et({diff:"end",direction:"previous",reason:"keyboard",event:be}));break;case"PageUp":be.preventDefault(),et({diff:-Ow,direction:"previous",reason:"keyboard",event:be}),Oe(be);break;case"PageDown":be.preventDefault(),et({diff:Ow,direction:"next",reason:"keyboard",event:be}),Oe(be);break;case"ArrowDown":be.preventDefault(),et({diff:1,direction:"next",reason:"keyboard",event:be}),Oe(be);break;case"ArrowUp":be.preventDefault(),et({diff:-1,direction:"previous",reason:"keyboard",event:be}),Oe(be);break;case"ArrowLeft":!T&&V?We(0):Dt(be,"previous");break;case"ArrowRight":!T&&V?We(-1):Dt(be,"next");break;case"Enter":if(de.current!==-1&&he){const Ne=me[de.current],tt=x?x(Ne):!1;if(be.preventDefault(),tt)return;nt(be,Ne,"selectOption"),r&&G.current.setSelectionRange(G.current.value.length,G.current.value.length)}else v&&te!==""&&Ie===!1&&(T&&be.preventDefault(),nt(be,te,"createOption","freeSolo"));break;case"Escape":he?(be.preventDefault(),be.stopPropagation(),Le(be,"escape")):c&&(te!==""||T&&J.length>0||V)&&(be.preventDefault(),be.stopPropagation(),Fe(be));break;case"Backspace":if(T&&!R&&te===""&&J.length>0){const Ne=ce===-1?J.length-1:ce,tt=J.slice();tt.splice(Ne,1),Se(be,tt,"removeOption",{option:J[Ne]})}!T&&V&&!R&&(oe(null),We(-1));break;case"Delete":if(T&&!R&&te===""&&J.length>0&&ce!==-1){const Ne=ce,tt=J.slice();tt.splice(Ne,1),Se(be,tt,"removeOption",{option:J[Ne]})}!T&&V&&!R&&(oe(null),We(-1));break}},ut=xe=>{Ee(!0),H&&!q.current&&Oe(xe)},gt=xe=>{if(t(X)){G.current.focus();return}Ee(!1),Y.current=!0,q.current=!1,a&&de.current!==-1&&he?nt(xe,me[de.current],"blur"):a&&v&&te!==""?nt(xe,te,"blur","freeSolo"):l&&Pe(xe,J,"blur"),Le(xe,"blur")},Lt=xe=>{const be=xe.target.value;te!==be&&(le(be),Me(!1),W&&W(xe,be,"input")),be===""?!f&&!T&&Se(xe,null,"clear"):Oe(xe)},zn=xe=>{const be=Number(xe.currentTarget.getAttribute("data-option-index"));de.current!==be&&kt({event:xe,index:be,reason:"mouse"})},yr=xe=>{kt({event:xe,index:Number(xe.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ye.current=!0},Xr=xe=>{const be=Number(xe.currentTarget.getAttribute("data-option-index"));nt(xe,me[be],"selectOption"),Ye.current=!1},se=xe=>be=>{const Ne=J.slice();Ne.splice(xe,1),Se(be,Ne,"removeOption",{option:J[xe]})},Re=xe=>{Se(xe,null,"removeOption",{option:J})},je=xe=>{fe?Le(xe,"toggleInput"):Oe(xe)},Qe=xe=>{xe.currentTarget.contains(xe.target)&&xe.target.getAttribute("id")!==A&&xe.preventDefault()},Ot=xe=>{xe.currentTarget.contains(xe.target)&&(G.current.focus(),z&&Y.current&&G.current.selectionEnd-G.current.selectionStart===0&&G.current.select(),Y.current=!1)},Ft=xe=>{!p&&(te===""||!fe)&&je(xe)};let wt=v&&te.length>0;wt=wt||(T?J.length>0:J!==null);let bt=me;if(O){const xe=new Map;let be=!1;bt=me.reduce((Ne,tt,it)=>{const At=O(tt);return Ne.length>0&&Ne[Ne.length-1].group===At?Ne[Ne.length-1].options.push(tt):(process.env.NODE_ENV!=="production"&&(xe.get(At)&&!be&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),be=!0),xe.set(At,!0)),Ne.push({key:it,index:it,group:At,options:[tt]})),Ne},[])}return p&&re&&gt(),{getRootProps:(xe={})=>({...xe,onKeyDown:Ze(xe),onMouseDown:Qe,onClick:Ot}),getInputLabelProps:()=>({id:`${A}-label`,htmlFor:A}),getInputProps:()=>({id:A,value:te,onBlur:gt,onFocus:ut,onChange:Lt,onMouseDown:Ft,"aria-activedescendant":he?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ue?`${A}-listbox`:void 0,"aria-expanded":Ue,autoComplete:"off",ref:G,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:p}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Fe}),getItemProps:({index:xe=0}={})=>({...T&&{key:xe},...V?{"data-item-index":xe}:{"data-tag-index":xe},tabIndex:-1,...!R&&{onDelete:T?se(xe):Re}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:je}),getTagProps:({index:xe})=>({key:xe,"data-tag-index":xe,tabIndex:-1,...!R&&{onDelete:se(xe)}}),getListboxProps:()=>({role:"listbox",id:`${A}-listbox`,"aria-labelledby":`${A}-label`,ref:Ce,onMouseDown:xe=>{xe.preventDefault()}}),getOptionProps:({index:xe,option:be})=>{const Ne=(T?J:[J]).some(it=>it!=null&&_(be,it)),tt=x?x(be):!1;return{key:(w==null?void 0:w(be))??N(be),tabIndex:-1,role:"option",id:`${A}-option-${xe}`,onMouseMove:zn,onClick:Xr,onTouchStart:yr,"data-option-index":xe,"aria-disabled":tt,"aria-selected":Ne}},id:A,inputValue:te,value:J,dirty:wt,expanded:he&&Q,popupOpen:he,focused:re||ce!==-1,anchorEl:Q,setAnchorEl:Z,focusedItem:ce,focusedTag:ce,groupedOptions:bt}}function Go(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const a=e[t],s=i||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var sr="top",qr="bottom",Hr="right",lr="left",mg="auto",Nc=[sr,qr,Hr,lr],us="start",sc="end",J5="clippingParents",xC="viewport",al="popper",eV="reference",Cw=Nc.reduce(function(e,t){return e.concat([t+"-"+us,t+"-"+sc])},[]),SC=[].concat(Nc,[mg]).reduce(function(e,t){return e.concat([t,t+"-"+us,t+"-"+sc])},[]),tV="beforeRead",nV="read",rV="afterRead",oV="beforeMain",iV="main",aV="afterMain",sV="beforeWrite",lV="write",cV="afterWrite",uV=[tV,nV,rV,oV,iV,aV,sV,lV,cV];function Ro(e){return e?(e.nodeName||"").toLowerCase():null}function Er(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ea(e){var t=Er(e).Element;return e instanceof t||e instanceof Element}function Wr(e){var t=Er(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function yg(e){if(typeof ShadowRoot>"u")return!1;var t=Er(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function dV(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!Wr(a)||!Ro(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var l=i[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function fV(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,u){return c[u]="",c},{});!Wr(i)||!Ro(i)||(Object.assign(i.style,l),Object.keys(a).forEach(function(c){i.removeAttribute(c)}))})}}const pV={name:"applyStyles",enabled:!0,phase:"write",fn:dV,effect:fV,requires:["computeStyles"]};function ko(e){return e.split("-")[0]}var Yi=Math.max,Ad=Math.min,ds=Math.round;function Zm(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function TC(){return!/^((?!chrome|android).)*safari/i.test(Zm())}function fs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Wr(e)&&(i=e.offsetWidth>0&&ds(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ds(r.height)/e.offsetHeight||1);var s=ea(e)?Er(e):window,l=s.visualViewport,c=!TC()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/i,d=(r.top+(c&&l?l.offsetTop:0))/a,f=r.width/i,h=r.height/a;return{width:f,height:h,top:d,right:u+f,bottom:d+h,left:u,x:u,y:d}}function gg(e){var t=fs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function OC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&yg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ko(e){return Er(e).getComputedStyle(e)}function hV(e){return["table","td","th"].indexOf(Ro(e))>=0}function Si(e){return((ea(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zf(e){return Ro(e)==="html"?e:e.assignedSlot||e.parentNode||(yg(e)?e.host:null)||Si(e)}function Pw(e){return!Wr(e)||Ko(e).position==="fixed"?null:e.offsetParent}function mV(e){var t=/firefox/i.test(Zm()),n=/Trident/i.test(Zm());if(n&&Wr(e)){var r=Ko(e);if(r.position==="fixed")return null}var i=Zf(e);for(yg(i)&&(i=i.host);Wr(i)&&["html","body"].indexOf(Ro(i))<0;){var a=Ko(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Ac(e){for(var t=Er(e),n=Pw(e);n&&hV(n)&&Ko(n).position==="static";)n=Pw(n);return n&&(Ro(n)==="html"||Ro(n)==="body"&&Ko(n).position==="static")?t:n||mV(e)||t}function bg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jl(e,t,n){return Yi(e,Ad(t,n))}function yV(e,t,n){var r=jl(e,t,n);return r>n?n:r}function EC(){return{top:0,right:0,bottom:0,left:0}}function CC(e){return Object.assign({},EC(),e)}function PC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var gV=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,CC(typeof t!="number"?t:PC(t,Nc))};function bV(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=ko(n.placement),c=bg(l),u=[lr,Hr].indexOf(l)>=0,d=u?"height":"width";if(!(!a||!s)){var f=gV(i.padding,n),h=gg(a),p=c==="y"?sr:lr,b=c==="y"?qr:Hr,m=n.rects.reference[d]+n.rects.reference[c]-s[c]-n.rects.popper[d],y=s[c]-n.rects.reference[c],g=Ac(a),v=g?c==="y"?g.clientHeight||0:g.clientWidth||0:0,x=m/2-y/2,w=f[p],S=v-h[d]-f[b],O=v/2-h[d]/2+x,C=jl(w,O,S),P=c;n.modifiersData[r]=(t={},t[P]=C,t.centerOffset=C-O,t)}}function vV(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||OC(t.elements.popper,i)&&(t.elements.arrow=i))}const wV={name:"arrow",enabled:!0,phase:"main",fn:bV,effect:vV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ps(e){return e.split("-")[1]}var xV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function SV(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ds(n*i)/i||0,y:ds(r*i)/i||0}}function _w(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=s.x,p=h===void 0?0:h,b=s.y,m=b===void 0?0:b,y=typeof d=="function"?d({x:p,y:m}):{x:p,y:m};p=y.x,m=y.y;var g=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),x=lr,w=sr,S=window;if(u){var O=Ac(n),C="clientHeight",P="clientWidth";if(O===Er(n)&&(O=Si(n),Ko(O).position!=="static"&&l==="absolute"&&(C="scrollHeight",P="scrollWidth")),O=O,i===sr||(i===lr||i===Hr)&&a===sc){w=qr;var k=f&&O===S&&S.visualViewport?S.visualViewport.height:O[C];m-=k-r.height,m*=c?1:-1}if(i===lr||(i===sr||i===qr)&&a===sc){x=Hr;var E=f&&O===S&&S.visualViewport?S.visualViewport.width:O[P];p-=E-r.width,p*=c?1:-1}}var _=Object.assign({position:l},u&&xV),T=d===!0?SV({x:p,y:m},Er(n)):{x:p,y:m};if(p=T.x,m=T.y,c){var $;return Object.assign({},_,($={},$[w]=v?"0":"",$[x]=g?"0":"",$.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",$))}return Object.assign({},_,(t={},t[w]=v?m+"px":"",t[x]=g?p+"px":"",t.transform="",t))}function TV(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:ko(t.placement),variation:ps(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_w(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_w(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const OV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:TV,data:{}};var ku={passive:!0};function EV(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,l=s===void 0?!0:s,c=Er(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",n.update,ku)}),l&&c.addEventListener("resize",n.update,ku),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",n.update,ku)}),l&&c.removeEventListener("resize",n.update,ku)}}const CV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:EV,data:{}};var PV={left:"right",right:"left",bottom:"top",top:"bottom"};function nd(e){return e.replace(/left|right|bottom|top/g,function(t){return PV[t]})}var _V={start:"end",end:"start"};function kw(e){return e.replace(/start|end/g,function(t){return _V[t]})}function vg(e){var t=Er(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wg(e){return fs(Si(e)).left+vg(e).scrollLeft}function kV(e,t){var n=Er(e),r=Si(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,c=0;if(i){a=i.width,s=i.height;var u=TC();(u||!u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:l+wg(e),y:c}}function DV(e){var t,n=Si(e),r=vg(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Yi(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Yi(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+wg(e),c=-r.scrollTop;return Ko(i||n).direction==="rtl"&&(l+=Yi(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function xg(e){var t=Ko(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function _C(e){return["html","body","#document"].indexOf(Ro(e))>=0?e.ownerDocument.body:Wr(e)&&xg(e)?e:_C(Zf(e))}function Ll(e,t){var n;t===void 0&&(t=[]);var r=_C(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Er(r),s=i?[a].concat(a.visualViewport||[],xg(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(Ll(Zf(s)))}function Qm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $V(e,t){var n=fs(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Dw(e,t,n){return t===xC?Qm(kV(e,n)):ea(t)?$V(t,n):Qm(DV(Si(e)))}function RV(e){var t=Ll(Zf(e)),n=["absolute","fixed"].indexOf(Ko(e).position)>=0,r=n&&Wr(e)?Ac(e):e;return ea(r)?t.filter(function(i){return ea(i)&&OC(i,r)&&Ro(i)!=="body"}):[]}function MV(e,t,n,r){var i=t==="clippingParents"?RV(e):[].concat(t),a=[].concat(i,[n]),s=a[0],l=a.reduce(function(c,u){var d=Dw(e,u,r);return c.top=Yi(d.top,c.top),c.right=Ad(d.right,c.right),c.bottom=Ad(d.bottom,c.bottom),c.left=Yi(d.left,c.left),c},Dw(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function kC(e){var t=e.reference,n=e.element,r=e.placement,i=r?ko(r):null,a=r?ps(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case sr:c={x:s,y:t.y-n.height};break;case qr:c={x:s,y:t.y+t.height};break;case Hr:c={x:t.x+t.width,y:l};break;case lr:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?bg(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case us:c[u]=c[u]-(t[d]/2-n[d]/2);break;case sc:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function lc(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,l=n.boundary,c=l===void 0?J5:l,u=n.rootBoundary,d=u===void 0?xC:u,f=n.elementContext,h=f===void 0?al:f,p=n.altBoundary,b=p===void 0?!1:p,m=n.padding,y=m===void 0?0:m,g=CC(typeof y!="number"?y:PC(y,Nc)),v=h===al?eV:al,x=e.rects.popper,w=e.elements[b?v:h],S=MV(ea(w)?w:w.contextElement||Si(e.elements.popper),c,d,s),O=fs(e.elements.reference),C=kC({reference:O,element:x,placement:i}),P=Qm(Object.assign({},x,C)),k=h===al?P:O,E={top:S.top-k.top+g.top,bottom:k.bottom-S.bottom+g.bottom,left:S.left-k.left+g.left,right:k.right-S.right+g.right},_=e.modifiersData.offset;if(h===al&&_){var T=_[i];Object.keys(E).forEach(function($){var M=[Hr,qr].indexOf($)>=0?1:-1,j=[sr,qr].indexOf($)>=0?"y":"x";E[$]+=T[j]*M})}return E}function IV(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?SC:c,d=ps(r),f=d?l?Cw:Cw.filter(function(b){return ps(b)===d}):Nc,h=f.filter(function(b){return u.indexOf(b)>=0});h.length===0&&(h=f);var p=h.reduce(function(b,m){return b[m]=lc(e,{placement:m,boundary:i,rootBoundary:a,padding:s})[ko(m)],b},{});return Object.keys(p).sort(function(b,m){return p[b]-p[m]})}function NV(e){if(ko(e)===mg)return[];var t=nd(e);return[kw(e),t,kw(t)]}function AV(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,b=p===void 0?!0:p,m=n.allowedAutoPlacements,y=t.options.placement,g=ko(y),v=g===y,x=c||(v||!b?[nd(y)]:NV(y)),w=[y].concat(x).reduce(function(L,A){return L.concat(ko(A)===mg?IV(t,{placement:A,boundary:d,rootBoundary:f,padding:u,flipVariations:b,allowedAutoPlacements:m}):A)},[]),S=t.rects.reference,O=t.rects.popper,C=new Map,P=!0,k=w[0],E=0;E<w.length;E++){var _=w[E],T=ko(_),$=ps(_)===us,M=[sr,qr].indexOf(T)>=0,j=M?"width":"height",W=lc(t,{placement:_,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),U=M?$?Hr:lr:$?qr:sr;S[j]>O[j]&&(U=nd(U));var K=nd(U),H=[];if(a&&H.push(W[T]<=0),l&&H.push(W[U]<=0,W[K]<=0),H.every(function(L){return L})){k=_,P=!1;break}C.set(_,H)}if(P)for(var F=b?3:1,R=function(A){var N=w.find(function(q){var Y=C.get(q);if(Y)return Y.slice(0,A).every(function(G){return G})});if(N)return k=N,"break"},V=F;V>0;V--){var z=R(V);if(z==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const jV={name:"flip",enabled:!0,phase:"main",fn:AV,requiresIfExists:["offset"],data:{_skip:!1}};function $w(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Rw(e){return[sr,Hr,qr,lr].some(function(t){return e[t]>=0})}function LV(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=lc(t,{elementContext:"reference"}),l=lc(t,{altBoundary:!0}),c=$w(s,r),u=$w(l,i,a),d=Rw(c),f=Rw(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const FV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:LV};function BV(e,t,n){var r=ko(e),i=[lr,sr].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],l=a[1];return s=s||0,l=(l||0)*i,[lr,Hr].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function VV(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=SC.reduce(function(d,f){return d[f]=BV(f,t.rects,a),d},{}),l=s[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const zV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:VV};function WV(e){var t=e.state,n=e.name;t.modifiersData[n]=kC({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const UV={name:"popperOffsets",enabled:!0,phase:"read",fn:WV,data:{}};function qV(e){return e==="x"?"y":"x"}function HV(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,p=h===void 0?!0:h,b=n.tetherOffset,m=b===void 0?0:b,y=lc(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),g=ko(t.placement),v=ps(t.placement),x=!v,w=bg(g),S=qV(w),O=t.modifiersData.popperOffsets,C=t.rects.reference,P=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,E=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(O){if(a){var $,M=w==="y"?sr:lr,j=w==="y"?qr:Hr,W=w==="y"?"height":"width",U=O[w],K=U+y[M],H=U-y[j],F=p?-P[W]/2:0,R=v===us?C[W]:P[W],V=v===us?-P[W]:-C[W],z=t.elements.arrow,L=p&&z?gg(z):{width:0,height:0},A=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:EC(),N=A[M],q=A[j],Y=jl(0,C[W],L[W]),G=x?C[W]/2-F-Y-N-E.mainAxis:R-Y-N-E.mainAxis,X=x?-C[W]/2+F+Y+q+E.mainAxis:V+Y+q+E.mainAxis,Q=t.elements.arrow&&Ac(t.elements.arrow),Z=Q?w==="y"?Q.clientTop||0:Q.clientLeft||0:0,ce=($=_==null?void 0:_[w])!=null?$:0,ue=U+G-ce-Z,ye=U+X-ce,de=jl(p?Ad(K,ue):K,U,p?Yi(H,ye):H);O[w]=de,T[w]=de-U}if(l){var pe,J=w==="x"?sr:lr,oe=w==="x"?qr:Hr,te=O[S],le=S==="y"?"height":"width",re=te+y[J],Ee=te-y[oe],Pe=[sr,lr].indexOf(g)!==-1,fe=(pe=_==null?void 0:_[S])!=null?pe:0,ge=Pe?re:te-C[le]-P[le]-fe+E.altAxis,De=Pe?te+C[le]+P[le]-fe-E.altAxis:Ee,Me=p&&Pe?yV(ge,te,De):jl(p?ge:re,te,p?De:Ee);O[S]=Me,T[S]=Me-te}t.modifiersData[r]=T}}const YV={name:"preventOverflow",enabled:!0,phase:"main",fn:HV,requiresIfExists:["offset"]};function GV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function KV(e){return e===Er(e)||!Wr(e)?vg(e):GV(e)}function XV(e){var t=e.getBoundingClientRect(),n=ds(t.width)/e.offsetWidth||1,r=ds(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ZV(e,t,n){n===void 0&&(n=!1);var r=Wr(t),i=Wr(t)&&XV(t),a=Si(t),s=fs(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ro(t)!=="body"||xg(a))&&(l=KV(t)),Wr(t)?(c=fs(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=wg(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function QV(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function JV(e){var t=QV(e);return uV.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function e4(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function t4(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Mw={placement:"bottom",modifiers:[],strategy:"absolute"};function Iw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function n4(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Mw:i;return function(l,c,u){u===void 0&&(u=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mw,a),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],h=!1,p={state:d,setOptions:function(g){var v=typeof g=="function"?g(d.options):g;m(),d.options=Object.assign({},a,d.options,v),d.scrollParents={reference:ea(l)?Ll(l):l.contextElement?Ll(l.contextElement):[],popper:Ll(c)};var x=JV(t4([].concat(r,d.options.modifiers)));return d.orderedModifiers=x.filter(function(w){return w.enabled}),b(),p.update()},forceUpdate:function(){if(!h){var g=d.elements,v=g.reference,x=g.popper;if(Iw(v,x)){d.rects={reference:ZV(v,Ac(x),d.options.strategy==="fixed"),popper:gg(x)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(E){return d.modifiersData[E.name]=Object.assign({},E.data)});for(var w=0;w<d.orderedModifiers.length;w++){if(d.reset===!0){d.reset=!1,w=-1;continue}var S=d.orderedModifiers[w],O=S.fn,C=S.options,P=C===void 0?{}:C,k=S.name;typeof O=="function"&&(d=O({state:d,options:P,name:k,instance:p})||d)}}}},update:e4(function(){return new Promise(function(y){p.forceUpdate(),y(d)})}),destroy:function(){m(),h=!0}};if(!Iw(l,c))return p;p.setOptions(u).then(function(y){!h&&u.onFirstUpdate&&u.onFirstUpdate(y)});function b(){d.orderedModifiers.forEach(function(y){var g=y.name,v=y.options,x=v===void 0?{}:v,w=y.effect;if(typeof w=="function"){var S=w({state:d,name:g,instance:p,options:x}),O=function(){};f.push(S||O)}})}function m(){f.forEach(function(y){return y()}),f=[]}return p}}var r4=[CV,UV,OV,pV,zV,jV,YV,wV,FV],o4=n4({defaultModifiers:r4});function dt(e){var f;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,s=i?{}:Jn(n,r),{props:l,internalRef:c}=hC({...a,externalSlotProps:s}),u=Et(c,s==null?void 0:s.ref,(f=e.additionalProps)==null?void 0:f.ref);return pC(t,{...l,ref:u},r)}function Ds(e){var t;return parseInt(I.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function i4(e){return typeof e=="function"?e():e}const cc=I.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,l]=I.useState(null),c=Et(I.isValidElement(r)?Ds(r):null,n);if(Jt(()=>{a||l(i4(i)||document.body)},[i,a]),Jt(()=>{if(s&&!a)return Um(n,s),()=>{Um(n,null)}},[n,s,a]),a){if(I.isValidElement(r)){const u={ref:c};return I.cloneElement(r,u)}return r}return s&&OM.createPortal(r,s)});process.env.NODE_ENV!=="production"&&(cc.propTypes={children:o.node,container:o.oneOfType([Go,o.func]),disablePortal:o.bool});process.env.NODE_ENV!=="production"&&(cc.propTypes=Mf(cc.propTypes));function a4(e){return ke("MuiPopper",e)}$e("MuiPopper",["root"]);function s4(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function jd(e){return typeof e=="function"?e():e}function Qf(e){return e.nodeType!==void 0}function l4(e){return!Qf(e)}const c4=e=>{const{classes:t}=e;return _e({root:["root"]},a4,t)},u4={},d4=I.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:h={},slots:p={},TransitionProps:b,ownerState:m,...y}=t,g=I.useRef(null),v=Et(g,n),x=I.useRef(null),w=Et(x,f),S=I.useRef(w);Jt(()=>{S.current=w},[w]),I.useImperativeHandle(f,()=>x.current,[]);const O=s4(u,a),[C,P]=I.useState(O),[k,E]=I.useState(jd(r));I.useEffect(()=>{x.current&&x.current.forceUpdate()}),I.useEffect(()=>{r&&E(jd(r))},[r]),Jt(()=>{if(!k||!c)return;const j=K=>{P(K.placement)};if(process.env.NODE_ENV!=="production"&&k&&Qf(k)&&k.nodeType===1){const K=k.getBoundingClientRect();process.env.NODE_ENV!=="test"&&K.top===0&&K.left===0&&K.right===0&&K.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}let W=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:K})=>{j(K)}}];l!=null&&(W=W.concat(l)),d&&d.modifiers!=null&&(W=W.concat(d.modifiers));const U=o4(k,g.current,{placement:O,...d,modifiers:W});return S.current(U),()=>{U.destroy(),S.current(null)}},[k,s,l,c,d,O]);const _={placement:C};b!==null&&(_.TransitionProps=b);const T=c4(t),$=p.root??"div",M=dt({elementType:$,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:T.root});return D.jsx($,{...M,children:typeof i=="function"?i(_):i})}),DC=I.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:h=u4,popperRef:p,style:b,transition:m=!1,slotProps:y={},slots:g={},...v}=t,[x,w]=I.useState(!0),S=()=>{w(!1)},O=()=>{w(!0)};if(!c&&!d&&(!m||x))return null;let C;if(a)C=a;else if(r){const E=jd(r);C=E&&Qf(E)?pn(E).body:pn(null).body}const P=!d&&c&&(!m||x)?"none":void 0,k=m?{in:d,onEnter:S,onExited:O}:void 0;return D.jsx(cc,{disablePortal:l,container:C,children:D.jsx(d4,{anchorEl:r,direction:s,disablePortal:l,modifiers:u,ref:n,open:m?!x:d,placement:f,popperOptions:h,popperRef:p,slotProps:y,slots:g,...v,style:{position:"fixed",top:0,left:0,display:P,...b},TransitionProps:k,children:i})})});process.env.NODE_ENV!=="production"&&(DC.propTypes={anchorEl:er(o.oneOfType([Go,o.object,o.func]),e=>{if(e.open){const t=jd(e.anchorEl);if(t&&Qf(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}else if(!t||typeof t.getBoundingClientRect!="function"||l4(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
`))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([Go,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Nt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const f4=ne(DC,{name:"MuiPopper",slot:"Root"})({}),$s=I.forwardRef(function(t,n){const r=Xn(),i=qe({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:f,modifiers:h,open:p,placement:b,popperOptions:m,popperRef:y,transition:g,slots:v,slotProps:x,...w}=i,S=(v==null?void 0:v.root)??(l==null?void 0:l.Root),O={anchorEl:a,container:u,disablePortal:d,keepMounted:f,modifiers:h,open:p,placement:b,popperOptions:m,popperRef:y,transition:g,...w};return D.jsx(f4,{as:s,direction:r?"rtl":"ltr",slots:{root:S},slotProps:x??c,...O,ref:n})});process.env.NODE_ENV!=="production"&&($s.propTypes={anchorEl:o.oneOfType([Go,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Go,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Nt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function p4(e){return ke("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const h4=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${ve(n)}`,!r&&"gutters",i&&"inset",!a&&"sticky"]};return _e(s,p4,t)},m4=ne("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ve(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(ze(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Ld=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:s="li",disableGutters:l=!1,disableSticky:c=!1,inset:u=!1,...d}=r,f={...r,color:a,component:s,disableGutters:l,disableSticky:c,inset:u},h=h4(f);return D.jsx(m4,{as:s,className:we(h.root,i),ref:n,ownerState:f,...d})});Ld&&(Ld.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Ld.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOf(["default","inherit","primary"]),component:o.elementType,disableGutters:o.bool,disableSticky:o.bool,inset:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const y4=ot(D.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function g4(e){return ke("MuiChip",e)}const _t=$e("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),b4=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:s,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${ve(r)}`,`color${ve(i)}`,l&&"clickable",l&&`clickableColor${ve(i)}`,s&&"deletable",s&&`deletableColor${ve(i)}`,`${c}${ve(i)}`],label:["label",`label${ve(r)}`],avatar:["avatar",`avatar${ve(r)}`,`avatarColor${ve(i)}`],icon:["icon",`icon${ve(r)}`,`iconColor${ve(a)}`],deleteIcon:["deleteIcon",`deleteIcon${ve(r)}`,`deleteIconColor${ve(i)}`,`deleteIcon${ve(c)}Color${ve(i)}`]};return _e(u,g4,t)},v4=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:s,size:l,variant:c}=n;return[{[`& .${_t.avatar}`]:t.avatar},{[`& .${_t.avatar}`]:t[`avatar${ve(l)}`]},{[`& .${_t.avatar}`]:t[`avatarColor${ve(r)}`]},{[`& .${_t.icon}`]:t.icon},{[`& .${_t.icon}`]:t[`icon${ve(l)}`]},{[`& .${_t.icon}`]:t[`iconColor${ve(i)}`]},{[`& .${_t.deleteIcon}`]:t.deleteIcon},{[`& .${_t.deleteIcon}`]:t[`deleteIcon${ve(l)}`]},{[`& .${_t.deleteIcon}`]:t[`deleteIconColor${ve(r)}`]},{[`& .${_t.deleteIcon}`]:t[`deleteIcon${ve(c)}Color${ve(r)}`]},t.root,t[`size${ve(l)}`],t[`color${ve(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${ve(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ve(r)}`],t[c],t[`${c}${ve(r)}`]]}})(ze(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${_t.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${_t.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${_t.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${_t.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${_t.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${_t.icon}`]:{marginLeft:5,marginRight:-6},[`& .${_t.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${_t.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${_t.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(fn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${_t.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${_t.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${_t.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${_t.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(fn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${_t.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${_t.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(fn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${_t.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${_t.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${_t.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${_t.avatar}`]:{marginLeft:4},[`& .${_t.avatarSmall}`]:{marginLeft:2},[`& .${_t.icon}`]:{marginLeft:4},[`& .${_t.iconSmall}`]:{marginLeft:2},[`& .${_t.deleteIcon}`]:{marginRight:5},[`& .${_t.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(fn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${_t.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${_t.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${_t.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),w4=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ve(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Nw(e){return e.key==="Backspace"||e.key==="Delete"}const Sg=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:s,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:f,label:h,onClick:p,onDelete:b,onKeyDown:m,onKeyUp:y,size:g="medium",variant:v="filled",tabIndex:x,skipFocusWhenDisabled:w=!1,slots:S={},slotProps:O={},...C}=r,P=I.useRef(null),k=Et(P,n),E=N=>{N.stopPropagation(),b&&b(N)},_=N=>{N.currentTarget===N.target&&Nw(N)&&N.preventDefault(),m&&m(N)},T=N=>{N.currentTarget===N.target&&b&&Nw(N)&&b(N),y&&y(N)},$=s!==!1&&p?!0:s,M=$||b?Or:c||"div",j={...r,component:M,disabled:d,size:g,color:l,iconColor:I.isValidElement(f)&&f.props.color||l,onDelete:!!b,clickable:$,variant:v},W=b4(j),U=M===Or?{component:c||"div",focusVisibleClassName:W.focusVisible,...b&&{disableRipple:!0}}:{};let K=null;b&&(K=u&&I.isValidElement(u)?I.cloneElement(u,{className:we(u.props.className,W.deleteIcon),onClick:E}):D.jsx(y4,{className:W.deleteIcon,onClick:E}));let H=null;i&&I.isValidElement(i)&&(H=I.cloneElement(i,{className:we(W.avatar,i.props.className)}));let F=null;f&&I.isValidElement(f)&&(F=I.cloneElement(f,{className:we(W.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&H&&F&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const R={slots:S,slotProps:O},[V,z]=Ke("root",{elementType:v4,externalForwardedProps:{...R,...C},ownerState:j,shouldForwardComponentProp:!0,ref:k,className:we(W.root,a),additionalProps:{disabled:$&&d?!0:void 0,tabIndex:w&&d?-1:x,...U},getSlotProps:N=>({...N,onClick:q=>{var Y;(Y=N.onClick)==null||Y.call(N,q),p==null||p(q)},onKeyDown:q=>{var Y;(Y=N.onKeyDown)==null||Y.call(N,q),_(q)},onKeyUp:q=>{var Y;(Y=N.onKeyUp)==null||Y.call(N,q),T(q)}})}),[L,A]=Ke("label",{elementType:w4,externalForwardedProps:R,ownerState:j,className:W.label});return D.jsxs(V,{as:M,...z,children:[H||F,D.jsx(L,{...A,children:h}),K]})});process.env.NODE_ENV!=="production"&&(Sg.propTypes={avatar:o.element,children:aC,classes:o.object,className:o.string,clickable:o.bool,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,deleteIcon:o.element,disabled:o.bool,icon:o.element,label:o.node,onClick:o.func,onDelete:o.func,onKeyDown:o.func,onKeyUp:o.func,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),skipFocusWhenDisabled:o.bool,slotProps:o.shape({label:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({label:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,variant:o.oneOfType([o.oneOf(["filled","outlined"]),o.string])});function Du(e){return parseInt(e,10)||0}const x4={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function S4(e){for(const t in e)return!1;return!0}function Aw(e){return S4(e)||e.outerHeightStyle===0&&!e.overflowing}const $C=I.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:l,...c}=t,{current:u}=I.useRef(l!=null),d=I.useRef(null),f=Et(n,d),h=I.useRef(null),p=I.useRef(null),b=I.useCallback(()=>{const x=d.current,w=p.current;if(!x||!w)return;const O=so(x).getComputedStyle(x);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};w.style.width=O.width,w.value=x.value||t.placeholder||"x",w.value.slice(-1)===`
`&&(w.value+=" ");const C=O.boxSizing,P=Du(O.paddingBottom)+Du(O.paddingTop),k=Du(O.borderBottomWidth)+Du(O.borderTopWidth),E=w.scrollHeight;w.value="x";const _=w.scrollHeight;let T=E;a&&(T=Math.max(Number(a)*_,T)),i&&(T=Math.min(Number(i)*_,T)),T=Math.max(T,_);const $=T+(C==="border-box"?P+k:0),M=Math.abs(T-E)<=1;return{outerHeightStyle:$,overflowing:M}},[i,a,t.placeholder]),m=Ae(()=>{const x=d.current,w=b();if(!x||!w||Aw(w))return!1;const S=w.outerHeightStyle;return h.current!=null&&h.current!==S}),y=I.useCallback(()=>{const x=d.current,w=b();if(!x||!w||Aw(w))return;const S=w.outerHeightStyle;h.current!==S&&(h.current=S,x.style.height=`${S}px`),x.style.overflow=w.overflowing?"hidden":""},[b]),g=I.useRef(-1);Jt(()=>{const x=Kf(y),w=d==null?void 0:d.current;if(!w)return;const S=so(w);S.addEventListener("resize",x);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{m()&&(O.unobserve(w),cancelAnimationFrame(g.current),y(),g.current=requestAnimationFrame(()=>{O.observe(w)}))}),O.observe(w)),()=>{x.clear(),cancelAnimationFrame(g.current),S.removeEventListener("resize",x),O&&O.disconnect()}},[b,y,m]),Jt(()=>{y()});const v=x=>{u||y();const w=x.target,S=w.value.length,O=w.value.endsWith(`
`),C=w.selectionStart===S;O&&C&&w.setSelectionRange(S,S),r&&r(x)};return D.jsxs(I.Fragment,{children:[D.jsx("textarea",{value:l,onChange:v,ref:f,rows:a,style:s,...c}),D.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{...x4.shadow,...s,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&($C.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function Ti({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const jc=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(jc.displayName="FormControlContext");function kr(){return I.useContext(jc)}function jw(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Fd(e,t=!1){return e&&(jw(e.value)&&e.value!==""||t&&jw(e.defaultValue)&&e.defaultValue!=="")}function T4(e){return e.startAdornment}function O4(e){return ke("MuiInputBase",e)}const gr=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Lw;const Jf=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ve(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ep=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},E4=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:f,size:h,startAdornment:p,type:b}=e,m={root:["root",`color${ve(n)}`,r&&"disabled",i&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",h&&h!=="medium"&&`size${ve(h)}`,d&&"multiline",p&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return _e(m,O4,t)},tp=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Jf})(ze(({theme:e})=>({...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",[`&.${gr.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),np=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ep})(ze(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{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%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${gr.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${gr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Fw=TB({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),rp=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,color:c,components:u={},componentsProps:d={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:p,endAdornment:b,error:m,fullWidth:y=!1,id:g,inputComponent:v="input",inputProps:x={},inputRef:w,margin:S,maxRows:O,minRows:C,multiline:P=!1,name:k,onBlur:E,onChange:_,onClick:T,onFocus:$,onKeyDown:M,onKeyUp:j,placeholder:W,readOnly:U,renderSuffix:K,rows:H,size:F,slotProps:R={},slots:V={},startAdornment:z,type:L="text",value:A,...N}=r,q=x.value!=null?x.value:A,{current:Y}=I.useRef(q!=null),G=I.useRef(),X=I.useCallback(me=>{process.env.NODE_ENV!=="production"&&me&&me.nodeName!=="INPUT"&&!me.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
`))},[]),Q=Et(G,w,x.ref,X),[Z,ce]=I.useState(!1),ue=kr();process.env.NODE_ENV!=="production"&&I.useEffect(()=>{if(ue)return ue.registerEffect()},[ue]);const ye=Ti({props:r,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=ue?ue.focused:Z,I.useEffect(()=>{!ue&&h&&Z&&(ce(!1),E&&E())},[ue,h,Z,E]);const de=ue&&ue.onFilled,pe=ue&&ue.onEmpty,J=I.useCallback(me=>{Fd(me)?de&&de():pe&&pe()},[de,pe]);Jt(()=>{Y&&J({value:q})},[q,J,Y]);const oe=me=>{$&&$(me),x.onFocus&&x.onFocus(me),ue&&ue.onFocus?ue.onFocus(me):ce(!0)},te=me=>{E&&E(me),x.onBlur&&x.onBlur(me),ue&&ue.onBlur?ue.onBlur(me):ce(!1)},le=(me,...Be)=>{if(!Y){const Ue=me.target||G.current;if(Ue==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":$o(1));J({value:Ue.value})}x.onChange&&x.onChange(me,...Be),_&&_(me,...Be)};I.useEffect(()=>{J(G.current)},[]);const re=me=>{G.current&&me.currentTarget===me.target&&G.current.focus(),T&&T(me)};let Ee=v,Pe=x;P&&Ee==="input"&&(H?(process.env.NODE_ENV!=="production"&&(C||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Pe={type:void 0,minRows:H,maxRows:H,...Pe}):Pe={type:void 0,maxRows:O,minRows:C,...Pe},Ee=$C);const fe=me=>{J(me.animationName==="mui-auto-fill-cancel"?G.current:{value:"x"})};I.useEffect(()=>{ue&&ue.setAdornedStart(!!z)},[ue,z]);const ge={...r,color:ye.color||"primary",disabled:ye.disabled,endAdornment:b,error:ye.error,focused:ye.focused,formControl:ue,fullWidth:y,hiddenLabel:ye.hiddenLabel,multiline:P,size:ye.size,startAdornment:z,type:L},De=E4(ge),Me=V.root||u.Root||tp,Ie=R.root||d.root||{},he=V.input||u.Input||np;return Pe={...Pe,...R.input??d.input},D.jsxs(I.Fragment,{children:[!p&&typeof Fw=="function"&&(Lw||(Lw=D.jsx(Fw,{}))),D.jsxs(Me,{...Ie,ref:n,onClick:re,...N,...!_o(Me)&&{ownerState:{...ge,...Ie.ownerState}},className:we(De.root,Ie.className,l,U&&"MuiInputBase-readOnly"),children:[z,D.jsx(jc.Provider,{value:null,children:D.jsx(he,{"aria-invalid":ye.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:ye.disabled,id:g,onAnimationStart:fe,name:k,placeholder:W,readOnly:U,required:ye.required,rows:H,value:q,onKeyDown:M,onKeyUp:j,type:L,...Pe,...!_o(he)&&{as:Ee,ownerState:{...ge,...Pe.ownerState}},ref:Q,className:we(De.input,Pe.className,U&&"MuiInputBase-readOnly"),onBlur:te,onChange:le,onFocus:oe})}),b,K?K({...ye,startAdornment:z}):null]})]})});process.env.NODE_ENV!=="production"&&(rp.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:Mc,inputProps:o.object,inputRef:Nt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function C4(e){return ke("MuiInput",e)}const di={...gr,...$e("MuiInput",["root","underline","input"])};function P4(e){return ke("MuiOutlinedInput",e)}const Ar={...gr,...$e("MuiOutlinedInput",["root","notchedOutline","input"])};function _4(e){return ke("MuiFilledInput",e)}const br={...gr,...$e("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},RC=ot(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function k4(e){return ke("MuiAutocomplete",e)}const xt=$e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Bw,Vw;const D4=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:s,hasPopupIcon:l,inputFocused:c,popupOpen:u,size:d}=e,f={root:["root",r&&"expanded",i&&"focused",a&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${ve(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return _e(f,k4,t)},$4=ne("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,size:l}=n;return[{[`& .${xt.tag}`]:t.tag},{[`& .${xt.tag}`]:t[`tagSize${ve(l)}`]},{[`& .${xt.inputRoot}`]:t.inputRoot},{[`& .${xt.input}`]:t.input},{[`& .${xt.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${xt.focused} .${xt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${xt.clearIndicator}`]:{visibility:"visible"}},[`& .${xt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${xt.inputRoot}`]:{[`.${xt.hasPopupIcon}&, .${xt.hasClearIcon}&`]:{paddingRight:30},[`.${xt.hasPopupIcon}.${xt.hasClearIcon}&`]:{paddingRight:56},[`& .${xt.input}`]:{width:0,minWidth:30}},[`& .${di.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${di.root}.${gr.sizeSmall}`]:{[`& .${di.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ar.root}`]:{padding:9,[`.${xt.hasPopupIcon}&, .${xt.hasClearIcon}&`]:{paddingRight:39},[`.${xt.hasPopupIcon}.${xt.hasClearIcon}&`]:{paddingRight:65},[`& .${xt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${xt.endAdornment}`]:{right:9}},[`& .${Ar.root}.${gr.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${xt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${br.root}`]:{paddingTop:19,paddingLeft:8,[`.${xt.hasPopupIcon}&, .${xt.hasClearIcon}&`]:{paddingRight:39},[`.${xt.hasPopupIcon}.${xt.hasClearIcon}&`]:{paddingRight:65},[`& .${br.input}`]:{padding:"7px 4px"},[`& .${xt.endAdornment}`]:{right:9}},[`& .${br.root}.${gr.sizeSmall}`]:{paddingBottom:1,[`& .${br.input}`]:{padding:"2.5px 4px"}},[`& .${gr.hiddenLabel}`]:{paddingTop:8},[`& .${br.root}.${gr.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${xt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${br.root}.${gr.hiddenLabel}.${gr.sizeSmall}`]:{[`& .${xt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${xt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${xt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${xt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${xt.inputRoot}`]:{flexWrap:"wrap"}}}]}),R4=ne("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),M4=ne(Pt,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),I4=ne(Pt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),N4=ne($s,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(ze(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),A4=ne(fo,{name:"MuiAutocomplete",slot:"Paper"})(ze(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),j4=ne("div",{name:"MuiAutocomplete",slot:"Loading"})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),L4=ne("div",{name:"MuiAutocomplete",slot:"NoOptions"})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),F4=ne("ul",{name:"MuiAutocomplete",slot:"Listbox"})(ze(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${xt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${xt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${xt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${xt.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${xt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),B4=ne(Ld,{name:"MuiAutocomplete",slot:"GroupLabel"})(ze(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),V4=ne("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${xt.option}`]:{paddingLeft:24}}),MC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:a=!1,autoSelect:s=!1,blurOnSelect:l=!1,ChipProps:c,className:u,clearIcon:d=Bw||(Bw=D.jsx(F5,{fontSize:"small"})),clearOnBlur:f=!r.freeSolo,clearOnEscape:h=!1,clearText:p="Clear",closeText:b="Close",componentsProps:m,defaultValue:y=r.multiple?[]:null,disableClearable:g=!1,disableCloseOnSelect:v=!1,disabled:x=!1,disabledItemsFocusable:w=!1,disableListWrap:S=!1,disablePortal:O=!1,filterOptions:C,filterSelectedOptions:P=!1,forcePopupIcon:k="auto",freeSolo:E=!1,fullWidth:_=!1,getLimitTagsText:T=jt=>`+${jt}`,getOptionDisabled:$,getOptionKey:M,getOptionLabel:j,isOptionEqualToValue:W,groupBy:U,handleHomeEndKeys:K=!r.freeSolo,id:H,includeInputInList:F=!1,inputValue:R,limitTags:V=-1,ListboxComponent:z,ListboxProps:L,loading:A=!1,loadingText:N="Loading…",multiple:q=!1,noOptionsText:Y="No options",onChange:G,onClose:X,onHighlightChange:Q,onInputChange:Z,onOpen:ce,open:ue,openOnFocus:ye=!1,openText:de="Open",options:pe,PaperComponent:J,PopperComponent:oe,popupIcon:te=Vw||(Vw=D.jsx(RC,{})),readOnly:le=!1,renderGroup:re,renderInput:Ee,renderOption:Pe,renderTags:fe,renderValue:ge,selectOnFocus:De=!r.freeSolo,size:Me="medium",slots:Ie={},slotProps:he={},value:me,...Be}=r,{getRootProps:Ue,getInputProps:We,getInputLabelProps:lt,getPopupIndicatorProps:kt,getClearProps:et,getItemProps:ht,getListboxProps:Tt,getOptionProps:ie,value:Ce,dirty:Oe,expanded:Le,id:Se,popupOpen:Ye,focused:nt,focusedItem:Ve,anchorEl:Dt,setAnchorEl:Fe,inputValue:Ze,groupedOptions:ut}=Q5({...r,componentName:"Autocomplete"}),gt=!g&&!x&&Oe&&!le,Lt=(!E||k===!0)&&k!==!1,{onMouseDown:zn}=We(),{ref:yr,...Xr}=Tt(),Re=j||(jt=>jt.label??jt),je={...r,disablePortal:O,expanded:Le,focused:nt,fullWidth:_,getOptionLabel:Re,hasClearIcon:gt,hasPopupIcon:Lt,inputFocused:Ve===-1,popupOpen:Ye,size:Me},Qe=D4(je),Ot={slots:{paper:J,popper:oe,...Ie},slotProps:{chip:c,listbox:L,...m,...he}},[Ft,wt]=Ke("listbox",{elementType:F4,externalForwardedProps:Ot,ownerState:je,className:Qe.listbox,additionalProps:Xr,ref:yr}),[bt,xe]=Ke("paper",{elementType:fo,externalForwardedProps:Ot,ownerState:je,className:Qe.paper}),[be,Ne]=Ke("popper",{elementType:$s,externalForwardedProps:Ot,ownerState:je,className:Qe.popper,additionalProps:{disablePortal:O,style:{width:Dt?Dt.clientWidth:null},role:"presentation",anchorEl:Dt,open:Ye}});let tt;const it=jt=>({className:Qe.tag,disabled:x,...ht(jt)});if(q?Ce.length>0&&(fe?tt=fe(Ce,it,je):ge?tt=ge(Ce,it,je):tt=Ce.map((jt,ni)=>{const{key:ri,...tl}=it({index:ni});return D.jsx(Sg,{label:Re(jt),size:Me,...tl,...Ot.slotProps.chip},ri)})):ge&&Ce!=null&&(tt=ge(Ce,it,je)),V>-1&&Array.isArray(tt)){const jt=tt.length-V;!nt&&jt>0&&(tt=tt.splice(0,V),tt.push(D.jsx("span",{className:Qe.tag,children:T(jt)},tt.length)))}const $t=re||(jt=>D.jsxs("li",{children:[D.jsx(B4,{className:Qe.groupLabel,ownerState:je,component:"div",children:jt.group}),D.jsx(V4,{className:Qe.groupUl,ownerState:je,children:jt.children})]},jt.key)),ti=Pe||((jt,ni)=>{const{key:ri,...tl}=jt;return D.jsx("li",{...tl,children:Re(ni)},ri)}),yu=(jt,ni)=>{const ri=ie({option:jt,index:ni});return ti({...ri,className:Qe.option},jt,{selected:ri["aria-selected"],index:ni,inputValue:Ze},je)},gu=Ot.slotProps.clearIndicator,bu=Ot.slotProps.popupIndicator;return D.jsxs(I.Fragment,{children:[D.jsx($4,{ref:n,className:we(Qe.root,u),ownerState:je,...Ue(Be),children:Ee({id:Se,disabled:x,fullWidth:!0,size:Me==="small"?"small":void 0,InputLabelProps:lt(),InputProps:{ref:Fe,className:Qe.inputRoot,startAdornment:tt,onMouseDown:jt=>{jt.target===jt.currentTarget&&zn(jt)},...(gt||Lt)&&{endAdornment:D.jsxs(R4,{className:Qe.endAdornment,ownerState:je,children:[gt?D.jsx(M4,{...et(),"aria-label":p,title:p,ownerState:je,...gu,className:we(Qe.clearIndicator,gu==null?void 0:gu.className),children:d}):null,Lt?D.jsx(I4,{...kt(),disabled:x,"aria-label":Ye?b:de,title:Ye?b:de,ownerState:je,...bu,className:we(Qe.popupIndicator,bu==null?void 0:bu.className),children:te}):null]})}},inputProps:{className:Qe.input,disabled:x,readOnly:le,...We()}})}),Dt?D.jsx(N4,{as:be,...Ne,children:D.jsxs(A4,{as:bt,...xe,children:[A&&ut.length===0?D.jsx(j4,{className:Qe.loading,ownerState:je,children:N}):null,ut.length===0&&!E&&!A?D.jsx(L4,{className:Qe.noOptions,ownerState:je,role:"presentation",onMouseDown:jt=>{jt.preventDefault()},children:Y}):null,ut.length>0?D.jsx(Ft,{as:z,...wt,children:ut.map((jt,ni)=>U?$t({key:jt.key,group:jt.group,children:jt.options.map((ri,tl)=>yu(ri,jt.index+tl))}):yu(jt,ni))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(MC.propTypes={autoComplete:o.bool,autoHighlight:o.bool,autoSelect:o.bool,blurOnSelect:o.oneOfType([o.oneOf(["mouse","touch"]),o.bool]),ChipProps:o.object,classes:o.object,className:o.string,clearIcon:o.node,clearOnBlur:o.bool,clearOnEscape:o.bool,clearText:o.string,closeText:o.string,componentsProps:o.shape({clearIndicator:o.object,paper:o.object,popper:o.object,popupIndicator:o.object}),defaultValue:er(o.any,e=>e.multiple&&e.defaultValue!==void 0&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join(`
`)):null),disableClearable:o.bool,disableCloseOnSelect:o.bool,disabled:o.bool,disabledItemsFocusable:o.bool,disableListWrap:o.bool,disablePortal:o.bool,filterOptions:o.func,filterSelectedOptions:o.bool,forcePopupIcon:o.oneOfType([o.oneOf(["auto"]),o.bool]),freeSolo:o.bool,fullWidth:o.bool,getLimitTagsText:o.func,getOptionDisabled:o.func,getOptionKey:o.func,getOptionLabel:o.func,groupBy:o.func,handleHomeEndKeys:o.bool,id:o.string,includeInputInList:o.bool,inputValue:o.string,isOptionEqualToValue:o.func,limitTags:Ic,ListboxComponent:o.elementType,ListboxProps:o.object,loading:o.bool,loadingText:o.node,multiple:o.bool,noOptionsText:o.node,onChange:o.func,onClose:o.func,onHighlightChange:o.func,onInputChange:o.func,onKeyDown:o.func,onOpen:o.func,open:o.bool,openOnFocus:o.bool,openText:o.string,options:o.array.isRequired,PaperComponent:o.elementType,PopperComponent:o.elementType,popupIcon:o.node,readOnly:o.bool,renderGroup:o.func,renderInput:o.func.isRequired,renderOption:o.func,renderTags:o.func,renderValue:o.func,selectOnFocus:o.bool,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({chip:o.oneOfType([o.func,o.object]),clearIndicator:o.oneOfType([o.func,o.object]),listbox:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),popupIndicator:o.oneOfType([o.func,o.object])}),slots:o.shape({listbox:o.elementType,paper:o.elementType,popper:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:er(o.any,e=>e.multiple&&e.value!==void 0&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join(`
`)):null)});const z4=ot(D.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function W4(e){return ke("MuiAvatar",e)}$e("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const U4=e=>{const{classes:t,variant:n,colorDefault:r}=e;return _e({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},W4,t)},q4=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(ze(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),H4=ne("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Y4=ne(z4,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function G4({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=I.useState(!1);return I.useEffect(()=>{if(!n&&!r)return;a(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&a("loaded")},l.onerror=()=>{s&&a("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const Tg=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:s,component:l="div",slots:c={},slotProps:u={},imgProps:d,sizes:f,src:h,srcSet:p,variant:b="circular",...m}=r;let y=null;const g={...r,component:l,variant:b},v=G4({...d,...typeof u.img=="function"?u.img(g):u.img,src:h,srcSet:p}),x=h||p,w=x&&v!=="error";g.colorDefault=!w,delete g.ownerState;const S=U4(g),[O,C]=Ke("root",{ref:n,className:we(S.root,s),elementType:q4,externalForwardedProps:{slots:c,slotProps:u,component:l,...m},ownerState:g}),[P,k]=Ke("img",{className:S.img,elementType:H4,externalForwardedProps:{slots:c,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:i,src:h,srcSet:p,sizes:f},ownerState:g}),[E,_]=Ke("fallback",{className:S.fallback,elementType:Y4,externalForwardedProps:{slots:c,slotProps:u},shouldForwardComponentProp:!0,ownerState:g});return w?y=D.jsx(P,{...k}):a||a===0?y=a:x&&i?y=i[0]:y=D.jsx(E,{..._}),D.jsx(O,{...C,children:y})});process.env.NODE_ENV!=="production"&&(Tg.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function K4(e){const{prototype:t={}}=e;return!!t.isReactComponent}function IC(e,t,n,r,i){const a=e[t],s=i||t;if(a==null||typeof window>"u")return null;let l;const c=a.type;return typeof c=="function"&&!K4(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Rs=er(o.element,IC);Rs.isRequired=er(o.element.isRequired,IC);const X4={entering:{opacity:1},entered:{opacity:1}},vi=I.forwardRef(function(t,n){const r=uo(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:h,onExit:p,onExited:b,onExiting:m,style:y,timeout:g=i,TransitionComponent:v=_r,...x}=t,w=I.useRef(null),S=Et(w,Ds(l),n),O=M=>j=>{if(M){const W=w.current;j===void 0?M(W):M(W,j)}},C=O(h),P=O((M,j)=>{uC(M);const W=ls({style:y,timeout:g,easing:c},{mode:"enter"});M.style.webkitTransition=r.transitions.create("opacity",W),M.style.transition=r.transitions.create("opacity",W),d&&d(M,j)}),k=O(f),E=O(m),_=O(M=>{const j=ls({style:y,timeout:g,easing:c},{mode:"exit"});M.style.webkitTransition=r.transitions.create("opacity",j),M.style.transition=r.transitions.create("opacity",j),p&&p(M)}),T=O(b),$=M=>{a&&a(w.current,M)};return D.jsx(v,{appear:s,in:u,nodeRef:w,onEnter:P,onEntered:k,onEntering:C,onExit:_,onExited:T,onExiting:E,addEndListener:$,timeout:g,...x,children:(M,{ownerState:j,...W})=>I.cloneElement(l,{style:{opacity:0,visibility:M==="exited"&&!u?"hidden":void 0,...X4[M],...y,...l.props.style},ref:S,...W})})});process.env.NODE_ENV!=="production"&&(vi.propTypes={addEndListener:o.func,appear:o.bool,children:Rs.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function Z4(e){return ke("MuiBackdrop",e)}$e("MuiBackdrop",["root","invisible"]);const Q4=e=>{const{classes:t,invisible:n}=e;return _e({root:["root",n&&"invisible"]},Z4,t)},J4=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Og=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:f={},slots:h={},TransitionComponent:p,transitionDuration:b,...m}=r,y={...r,component:s,invisible:l},g=Q4(y),v={transition:p,root:u.Root,...h},x={...d,...f},w={component:s,slots:v,slotProps:x},[S,O]=Ke("root",{elementType:J4,externalForwardedProps:w,className:we(g.root,a),ownerState:y}),[C,P]=Ke("transition",{elementType:vi,externalForwardedProps:w,ownerState:y});return D.jsx(C,{in:c,timeout:b,...m,...P,children:D.jsx(S,{"aria-hidden":!0,...O,classes:g,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(Og.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function e3(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=hg({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!i&&(s=!0);const{badgeContent:l,max:c=r}=s?a:e,u=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:s,max:c,displayValue:u}}function t3(e){return ke("MuiBadge",e)}const ii=$e("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Rh=10,Mh=4,n3=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:a,classes:s={}}=e,l={root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${ve(n.vertical)}${ve(n.horizontal)}`,`anchorOrigin${ve(n.vertical)}${ve(n.horizontal)}${ve(i)}`,`overlap${ve(i)}`,t!=="default"&&`color${ve(t)}`]};return _e(l,t3,s)},r3=ne("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),o3=ne("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ve(n.anchorOrigin.vertical)}${ve(n.anchorOrigin.horizontal)}${ve(n.overlap)}`],n.color!=="default"&&t[`color${ve(n.color)}`],n.invisible&&t.invisible]}})(ze(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Rh*2,lineHeight:1,padding:"0 6px",height:Rh*2,borderRadius:Rh,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(fn(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Mh,height:Mh*2,minWidth:Mh*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ii.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ii.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ii.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ii.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ii.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ii.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ii.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ii.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function zw(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const NC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiBadge"}),{anchorOrigin:i,className:a,classes:s,component:l,components:c={},componentsProps:u={},children:d,overlap:f="rectangular",color:h="default",invisible:p=!1,max:b=99,badgeContent:m,slots:y,slotProps:g,showZero:v=!1,variant:x="standard",...w}=r,{badgeContent:S,invisible:O,max:C,displayValue:P}=e3({max:b,invisible:p,badgeContent:m,showZero:v}),k=hg({anchorOrigin:zw(i),color:h,overlap:f,variant:x,badgeContent:m}),E=O||S==null&&x!=="dot",{color:_=h,overlap:T=f,anchorOrigin:$,variant:M=x}=E?k:r,j=zw($),W=M!=="dot"?P:void 0,U={...r,badgeContent:S,invisible:E,max:C,displayValue:W,showZero:v,anchorOrigin:j,color:_,overlap:T,variant:M},K=n3(U),H={slots:{root:(y==null?void 0:y.root)??c.Root,badge:(y==null?void 0:y.badge)??c.Badge},slotProps:{root:(g==null?void 0:g.root)??u.root,badge:(g==null?void 0:g.badge)??u.badge}},[F,R]=Ke("root",{elementType:r3,externalForwardedProps:{...H,...w},ownerState:U,className:we(K.root,a),ref:n,additionalProps:{as:l}}),[V,z]=Ke("badge",{elementType:o3,externalForwardedProps:H,ownerState:U,className:K.badge});return D.jsxs(F,{...R,children:[d,D.jsx(V,{...z,children:W})]})});process.env.NODE_ENV!=="production"&&(NC.propTypes={anchorOrigin:o.shape({horizontal:o.oneOf(["left","right"]),vertical:o.oneOf(["bottom","top"])}),badgeContent:o.node,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,components:o.shape({Badge:o.elementType,Root:o.elementType}),componentsProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),invisible:o.bool,max:o.number,overlap:o.oneOf(["circular","rectangular"]),showZero:o.bool,slotProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({badge:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["dot","standard"]),o.string])});function i3(e){return ke("MuiButton",e)}const ki=$e("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),AC=I.createContext({});process.env.NODE_ENV!=="production"&&(AC.displayName="ButtonGroupContext");const jC=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(jC.displayName="ButtonGroupButtonContext");const a3=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:s,loadingPosition:l,classes:c}=e,u={root:["root",s&&"loading",a,`${a}${ve(t)}`,`size${ve(i)}`,`${a}Size${ve(i)}`,`color${ve(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${ve(l)}`],startIcon:["icon","startIcon",`iconSize${ve(i)}`],endIcon:["icon","endIcon",`iconSize${ve(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=_e(u,i3,c);return{...c,...d}},LC=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],s3=ne(Or,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ve(n.color)}`],t[`size${ve(n.size)}`],t[`${n.variant}Size${ve(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(ze(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ki.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ki.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ki.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ki.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(fn()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ki.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ki.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ki.loading}`]:{color:"transparent"}}}]}})),l3=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ve(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...LC]})),c3=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ve(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...LC]})),u3=ne("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Ww=ne("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Sn=I.forwardRef(function(t,n){const r=I.useContext(AC),i=I.useContext(jC),a=ec(r,t),s=qe({props:a,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:p=!1,endIcon:b,focusVisibleClassName:m,fullWidth:y=!1,id:g,loading:v=null,loadingIndicator:x,loadingPosition:w="center",size:S="medium",startIcon:O,type:C,variant:P="text",...k}=s,E=Pr(g),_=x??D.jsx(pg,{"aria-labelledby":E,color:"inherit",size:16}),T={...s,color:c,component:u,disabled:f,disableElevation:h,disableFocusRipple:p,fullWidth:y,loading:v,loadingIndicator:_,loadingPosition:w,size:S,type:C,variant:P},$=a3(T),M=(O||v&&w==="start")&&D.jsx(l3,{className:$.startIcon,ownerState:T,children:O||D.jsx(Ww,{className:$.loadingIconPlaceholder,ownerState:T})}),j=(b||v&&w==="end")&&D.jsx(c3,{className:$.endIcon,ownerState:T,children:b||D.jsx(Ww,{className:$.loadingIconPlaceholder,ownerState:T})}),W=i||"",U=typeof v=="boolean"?D.jsx("span",{className:$.loadingWrapper,style:{display:"contents"},children:v&&D.jsx(u3,{className:$.loadingIndicator,ownerState:T,children:_})}):null;return D.jsxs(s3,{ownerState:T,className:we(r.className,$.root,d,W),component:u,disabled:f||v,focusRipple:!p,focusVisibleClassName:we($.focusVisible,m),ref:n,type:C,id:v?E:g,...k,classes:$,children:[M,w!=="end"&&U,l,w==="end"&&U,j]})});process.env.NODE_ENV!=="production"&&(Sn.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function d3(e){return ke("MuiCard",e)}$e("MuiCard",["root"]);const f3=e=>{const{classes:t}=e;return _e({root:["root"]},d3,t)},p3=ne(fo,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),FC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCard"}),{className:i,raised:a=!1,...s}=r,l={...r,raised:a},c=f3(l);return D.jsx(p3,{className:we(c.root,i),elevation:a?8:void 0,ref:n,ownerState:l,...s})});process.env.NODE_ENV!=="production"&&(FC.propTypes={children:o.node,classes:o.object,className:o.string,raised:er(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function h3(e){return ke("MuiCardContent",e)}$e("MuiCardContent",["root"]);const m3=e=>{const{classes:t}=e;return _e({root:["root"]},h3,t)},y3=ne("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),BC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCardContent"}),{className:i,component:a="div",...s}=r,l={...r,component:a},c=m3(l);return D.jsx(y3,{as:a,className:we(c.root,i),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(BC.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function g3(e){return ke("MuiCardHeader",e)}const Bd=$e("MuiCardHeader",["root","avatar","action","content","title","subheader"]),b3=e=>{const{classes:t}=e;return _e({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},g3,t)},v3=ne("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Bd.title}`]:t.title},{[`& .${Bd.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),w3=ne("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),x3=ne("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),S3=ne("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[`.${Nd.root}:where(& .${Bd.title})`]:{display:"block"},[`.${Nd.root}:where(& .${Bd.subheader})`]:{display:"block"}}),VC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCardHeader"}),{action:i,avatar:a,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:f,slots:h={},slotProps:p={},...b}=r,m={...r,component:s,disableTypography:l},y=b3(m),g={slots:h,slotProps:{title:f,subheader:u,...p}};let v=d;const[x,w]=Ke("title",{className:y.title,elementType:Xe,externalForwardedProps:g,ownerState:m,additionalProps:{variant:a?"body2":"h5",component:"span"}});v!=null&&v.type!==Xe&&!l&&(v=D.jsx(x,{...w,children:v}));let S=c;const[O,C]=Ke("subheader",{className:y.subheader,elementType:Xe,externalForwardedProps:g,ownerState:m,additionalProps:{variant:a?"body2":"body1",color:"textSecondary",component:"span"}});S!=null&&S.type!==Xe&&!l&&(S=D.jsx(O,{...C,children:S}));const[P,k]=Ke("root",{ref:n,className:y.root,elementType:v3,externalForwardedProps:{...g,...b,component:s},ownerState:m}),[E,_]=Ke("avatar",{className:y.avatar,elementType:w3,externalForwardedProps:g,ownerState:m}),[T,$]=Ke("content",{className:y.content,elementType:S3,externalForwardedProps:g,ownerState:m}),[M,j]=Ke("action",{className:y.action,elementType:x3,externalForwardedProps:g,ownerState:m});return D.jsxs(P,{...k,children:[a&&D.jsx(E,{..._,children:a}),D.jsxs(T,{...$,children:[v,S]}),i&&D.jsx(M,{...j,children:i})]})});process.env.NODE_ENV!=="production"&&(VC.propTypes={action:o.node,avatar:o.node,children:o.node,classes:o.object,component:o.elementType,disableTypography:o.bool,slotProps:o.shape({action:o.oneOfType([o.func,o.object]),avatar:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),subheader:o.oneOfType([o.func,o.object]),title:o.oneOfType([o.func,o.object])}),slots:o.shape({action:o.elementType,avatar:o.elementType,content:o.elementType,root:o.elementType,subheader:o.elementType,title:o.elementType}),subheader:o.node,subheaderTypographyProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,titleTypographyProps:o.object});function T3(e){return ke("PrivateSwitchBase",e)}$e("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const O3=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${ve(i)}`],input:["input"]};return _e(a,T3,t)},E3=ne(Or,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),C3=ne("input",{name:"MuiSwitchBase",shouldForwardProp:In})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),op=I.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:h,inputRef:p,name:b,onBlur:m,onChange:y,onFocus:g,readOnly:v,required:x=!1,tabIndex:w,type:S,value:O,slots:C={},slotProps:P={},...k}=t,[E,_]=Gn({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),T=kr(),$=A=>{g&&g(A),T&&T.onFocus&&T.onFocus(A)},M=A=>{m&&m(A),T&&T.onBlur&&T.onBlur(A)},j=A=>{if(A.nativeEvent.defaultPrevented)return;const N=A.target.checked;_(N),y&&y(A,N)};let W=l;T&&typeof W>"u"&&(W=T.disabled);const U=S==="checkbox"||S==="radio",K={...t,checked:E,disabled:W,disableFocusRipple:c,edge:u},H=O3(K),F={slots:C,slotProps:{input:h,...P}},[R,V]=Ke("root",{ref:n,elementType:E3,className:H.root,shouldForwardComponentProp:!0,externalForwardedProps:{...F,component:"span",...k},getSlotProps:A=>({...A,onFocus:N=>{var q;(q=A.onFocus)==null||q.call(A,N),$(N)},onBlur:N=>{var q;(q=A.onBlur)==null||q.call(A,N),M(N)}}),ownerState:K,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:W,role:void 0,tabIndex:null}}),[z,L]=Ke("input",{ref:p,elementType:C3,className:H.input,externalForwardedProps:F,getSlotProps:A=>({...A,onChange:N=>{var q;(q=A.onChange)==null||q.call(A,N),j(N)}}),ownerState:K,additionalProps:{autoFocus:r,checked:i,defaultChecked:s,disabled:W,id:U?f:void 0,name:b,readOnly:v,required:x,tabIndex:w,type:S,...S==="checkbox"&&O===void 0?{}:{value:O}}});return D.jsxs(R,{...V,children:[D.jsx(z,{...L}),E?a:d]})});process.env.NODE_ENV!=="production"&&(op.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:Nt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const P3=ot(D.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"),_3=ot(D.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"),k3=ot(D.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 D3(e){return ke("MuiCheckbox",e)}const Ih=$e("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),$3=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${ve(r)}`,`size${ve(i)}`]},s=_e(a,D3,t);return{...t,...s}},R3=ne(op,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ve(n.size)}`],n.color!=="default"&&t[`color${ve(n.color)}`]]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(fn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(fn()).map(([t])=>({props:{color:t},style:{[`&.${Ih.checked}, &.${Ih.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ih.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),M3=D.jsx(_3,{}),I3=D.jsx(P3,{}),N3=D.jsx(k3,{}),Eg=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiCheckbox"}),{checkedIcon:i=M3,color:a="primary",icon:s=I3,indeterminate:l=!1,indeterminateIcon:c=N3,inputProps:u,size:d="medium",disableRipple:f=!1,className:h,slots:p={},slotProps:b={},...m}=r,y=l?c:s,g=l?c:i,v={...r,disableRipple:f,color:a,indeterminate:l,size:d},x=$3(v),w=b.input??u,[S,O]=Ke("root",{ref:n,elementType:R3,className:we(x.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:b,...m},ownerState:v,additionalProps:{type:"checkbox",icon:I.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:I.cloneElement(g,{fontSize:g.props.fontSize??d}),disableRipple:f,slots:p,slotProps:{input:sC(typeof w=="function"?w(v):w,{"data-indeterminate":l})}}});return D.jsx(S,{...O,classes:x})});process.env.NODE_ENV!=="production"&&(Eg.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const zC=_A({createStyledComponent:ne("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ve(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>qe({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(zC.propTypes={children:o.node,classes:o.object,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function WC(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function A3(e){const t=pn(e);return t.body===e?so(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Uw(e){return parseInt(so(e).getComputedStyle(e).paddingRight,10)||0}function j3(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function qw(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const l=!a.includes(s),c=!j3(s);l&&c&&Fl(s,i)})}function Nh(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function L3(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(A3(r)){const s=WC(so(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Uw(r)+s}px`;const l=pn(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Uw(c)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=pn(r).body;else{const s=r.parentElement,l=so(r);a=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:l})=>{a?s.style.setProperty(l,a):s.style.removeProperty(l)})}}function F3(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class B3{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Fl(t.modalRef,!1);const i=F3(n);qw(n,t.mount,t.modalRef,i,!0);const a=Nh(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=Nh(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=L3(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Nh(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Fl(t.modalRef,n),qw(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&Fl(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const V3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function z3(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function W3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function U3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||W3(e))}function q3(e){const t=[],n=[];return Array.from(e.querySelectorAll(V3)).forEach((r,i)=>{const a=z3(r);a===-1||!U3(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function H3(){return!0}function uc(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=q3,isEnabled:s=H3,open:l}=e,c=I.useRef(!1),u=I.useRef(null),d=I.useRef(null),f=I.useRef(null),h=I.useRef(null),p=I.useRef(!1),b=I.useRef(null),m=Et(Ds(t),b),y=I.useRef(null);I.useEffect(()=>{!l||!b.current||(p.current=!n)},[n,l]),I.useEffect(()=>{if(!l||!b.current)return;const x=pn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
`)),b.current.setAttribute("tabIndex","-1")),p.current&&b.current.focus()),()=>{i||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),I.useEffect(()=>{if(!l||!b.current)return;const x=pn(b.current),w=C=>{y.current=C,!(r||!s()||C.key!=="Tab")&&x.activeElement===b.current&&C.shiftKey&&(c.current=!0,d.current&&d.current.focus())},S=()=>{var k,E;const C=b.current;if(C===null)return;if(!x.hasFocus()||!s()||c.current){c.current=!1;return}if(C.contains(x.activeElement)||r&&x.activeElement!==u.current&&x.activeElement!==d.current)return;if(x.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!p.current)return;let P=[];if((x.activeElement===u.current||x.activeElement===d.current)&&(P=a(b.current)),P.length>0){const _=!!((k=y.current)!=null&&k.shiftKey&&((E=y.current)==null?void 0:E.key)==="Tab"),T=P[0],$=P[P.length-1];typeof T!="string"&&typeof $!="string"&&(_?$.focus():T.focus())}else C.focus()};x.addEventListener("focusin",S),x.addEventListener("keydown",w,!0);const O=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(O),x.removeEventListener("focusin",S),x.removeEventListener("keydown",w,!0)}},[n,r,i,s,l,a]);const g=x=>{f.current===null&&(f.current=x.relatedTarget),p.current=!0,h.current=x.target;const w=t.props.onFocus;w&&w(x)},v=x=>{f.current===null&&(f.current=x.relatedTarget),p.current=!0};return D.jsxs(I.Fragment,{children:[D.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),I.cloneElement(t,{ref:m,onFocus:g}),D.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(uc.propTypes={children:Rs,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired});process.env.NODE_ENV!=="production"&&(uc.propTypes=Mf(uc.propTypes));function Y3(e){return typeof e=="function"?e():e}function G3(e){return e?e.props.hasOwnProperty("in"):!1}const Hw=()=>{},$u=new B3;function K3(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,f=I.useRef({}),h=I.useRef(null),p=I.useRef(null),b=Et(p,d),[m,y]=I.useState(!u),g=G3(l);let v=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(v=!1);const x=()=>pn(h.current),w=()=>(f.current.modalRef=p.current,f.current.mount=h.current,f.current),S=()=>{$u.mount(w(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},O=Ae(()=>{const j=Y3(t)||x().body;$u.add(w(),j),p.current&&S()}),C=()=>$u.isTopModal(w()),P=Ae(j=>{h.current=j,j&&(u&&C()?S():p.current&&Fl(p.current,v))}),k=I.useCallback(()=>{$u.remove(w(),v)},[v]);I.useEffect(()=>()=>{k()},[k]),I.useEffect(()=>{u?O():(!g||!i)&&k()},[u,k,g,i,O]);const E=j=>W=>{var U;(U=j.onKeyDown)==null||U.call(j,W),!(W.key!=="Escape"||W.which===229||!C())&&(n||(W.stopPropagation(),c&&c(W,"escapeKeyDown")))},_=j=>W=>{var U;(U=j.onClick)==null||U.call(j,W),W.target===W.currentTarget&&c&&c(W,"backdropClick")};return{getRootProps:(j={})=>{const W=Al(e);delete W.onTransitionEnter,delete W.onTransitionExited;const U={...W,...j};return{role:"presentation",...U,onKeyDown:E(U),ref:b}},getBackdropProps:(j={})=>{const W=j;return{"aria-hidden":!0,...W,onClick:_(W),open:u}},getTransitionProps:()=>{const j=()=>{y(!1),a&&a()},W=()=>{y(!0),s&&s(),i&&k()};return{onEnter:Wm(j,(l==null?void 0:l.props.onEnter)??Hw),onExited:Wm(W,(l==null?void 0:l.props.onExited)??Hw)}},rootRef:b,portalRef:P,isTopModal:C,exited:m,hasTransition:g}}function X3(e){return ke("MuiModal",e)}$e("MuiModal",["root","hidden","backdrop"]);const Z3=e=>{const{open:t,exited:n,classes:r}=e;return _e({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},X3,r)},Q3=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ze(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),J3=ne(Og,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Cg=I.forwardRef(function(t,n){const r=qe({name:"MuiModal",props:t}),{BackdropComponent:i=J3,BackdropProps:a,classes:s,className:l,closeAfterTransition:c=!1,children:u,container:d,component:f,components:h={},componentsProps:p={},disableAutoFocus:b=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:y=!1,disablePortal:g=!1,disableRestoreFocus:v=!1,disableScrollLock:x=!1,hideBackdrop:w=!1,keepMounted:S=!1,onClose:O,onTransitionEnter:C,onTransitionExited:P,open:k,slotProps:E={},slots:_={},theme:T,...$}=r,M={...r,closeAfterTransition:c,disableAutoFocus:b,disableEnforceFocus:m,disableEscapeKeyDown:y,disablePortal:g,disableRestoreFocus:v,disableScrollLock:x,hideBackdrop:w,keepMounted:S},{getRootProps:j,getBackdropProps:W,getTransitionProps:U,portalRef:K,isTopModal:H,exited:F,hasTransition:R}=K3({...M,rootRef:n}),V={...M,exited:F},z=Z3(V),L={};if(u.props.tabIndex===void 0&&(L.tabIndex="-1"),R){const{onEnter:X,onExited:Q}=U();L.onEnter=X,L.onExited=Q}const A={slots:{root:h.Root,backdrop:h.Backdrop,..._},slotProps:{...p,...E}},[N,q]=Ke("root",{ref:n,elementType:Q3,externalForwardedProps:{...A,...$,component:f},getSlotProps:j,ownerState:V,className:we(l,z==null?void 0:z.root,!V.open&&V.exited&&(z==null?void 0:z.hidden))}),[Y,G]=Ke("backdrop",{ref:a==null?void 0:a.ref,elementType:i,externalForwardedProps:A,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:X=>W({...X,onClick:Q=>{X!=null&&X.onClick&&X.onClick(Q)}}),className:we(a==null?void 0:a.className,z==null?void 0:z.backdrop),ownerState:V});return!S&&!k&&(!R||F)?null:D.jsx(cc,{ref:K,container:d,disablePortal:g,children:D.jsxs(N,{...q,children:[!w&&i?D.jsx(Y,{...G}):null,D.jsx(uc,{disableEnforceFocus:m,disableAutoFocus:b,disableRestoreFocus:v,isEnabled:H,open:k,children:I.cloneElement(u,L)})]})})});process.env.NODE_ENV!=="production"&&(Cg.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Rs.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Go,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function ez(e){return ke("MuiDialog",e)}const Bl=$e("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Pg=I.createContext({});process.env.NODE_ENV!=="production"&&(Pg.displayName="DialogContext");const tz=ne(Og,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),nz=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${ve(n)}`],paper:["paper",`paperScroll${ve(n)}`,`paperWidth${ve(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return _e(s,ez,t)},rz=ne(Cg,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),oz=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ve(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),iz=ne(fo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ve(n.scroll)}`],t[`paperWidth${ve(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ze(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Bl.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Bl.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Bl.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ip=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDialog"}),i=uo(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:f,className:h,disableEscapeKeyDown:p=!1,fullScreen:b=!1,fullWidth:m=!1,maxWidth:y="sm",onClick:g,onClose:v,open:x,PaperComponent:w=fo,PaperProps:S={},scroll:O="paper",slots:C={},slotProps:P={},TransitionComponent:k=vi,transitionDuration:E=a,TransitionProps:_,...T}=r,$={...r,disableEscapeKeyDown:p,fullScreen:b,fullWidth:m,maxWidth:y,scroll:O},M=nz($),j=I.useRef(),W=ce=>{j.current=ce.target===ce.currentTarget},U=ce=>{g&&g(ce),j.current&&(j.current=null,v&&v(ce,"backdropClick"))},K=Pr(l),H=I.useMemo(()=>({titleId:K}),[K]),F={transition:k,...C},R={transition:_,paper:S,backdrop:d,...P},V={slots:F,slotProps:R},[z,L]=Ke("root",{elementType:rz,shouldForwardComponentProp:!0,externalForwardedProps:V,ownerState:$,className:we(M.root,h),ref:n}),[A,N]=Ke("backdrop",{elementType:tz,shouldForwardComponentProp:!0,externalForwardedProps:V,ownerState:$}),[q,Y]=Ke("paper",{elementType:iz,shouldForwardComponentProp:!0,externalForwardedProps:V,ownerState:$,className:we(M.paper,S.className)}),[G,X]=Ke("container",{elementType:oz,externalForwardedProps:V,ownerState:$,className:M.container}),[Q,Z]=Ke("transition",{elementType:vi,externalForwardedProps:V,ownerState:$,additionalProps:{appear:!0,in:x,timeout:E,role:"presentation"}});return D.jsx(z,{closeAfterTransition:!0,slots:{backdrop:A},slotProps:{backdrop:{transitionDuration:E,as:u,...N}},disableEscapeKeyDown:p,onClose:v,open:x,onClick:U,...L,...T,children:D.jsx(Q,{...Z,children:D.jsx(G,{onMouseDown:W,...X,children:D.jsx(q,{as:w,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":K,"aria-modal":c,...Y,children:D.jsx(Pg.Provider,{value:H,children:f})})})})})});process.env.NODE_ENV!=="production"&&(ip.propTypes={"aria-describedby":o.string,"aria-labelledby":o.string,"aria-modal":o.oneOfType([o.oneOf(["false","true"]),o.bool]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,disableEscapeKeyDown:o.bool,fullScreen:o.bool,fullWidth:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),onClick:o.func,onClose:o.func,open:o.bool.isRequired,PaperComponent:o.elementType,PaperProps:o.object,scroll:o.oneOf(["body","paper"]),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),container:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,container:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function az(e){return ke("MuiDialogActions",e)}$e("MuiDialogActions",["root","spacing"]);const sz=e=>{const{classes:t,disableSpacing:n}=e;return _e({root:["root",!n&&"spacing"]},az,t)},lz=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),ap=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1,...s}=r,l={...r,disableSpacing:a},c=sz(l);return D.jsx(lz,{className:we(c.root,i),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(ap.propTypes={children:o.node,classes:o.object,className:o.string,disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function cz(e){return ke("MuiDialogContent",e)}$e("MuiDialogContent",["root","dividers"]);function uz(e){return ke("MuiDialogTitle",e)}const dz=$e("MuiDialogTitle",["root"]),fz=e=>{const{classes:t,dividers:n}=e;return _e({root:["root",n&&"dividers"]},cz,t)},pz=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ze(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${dz.root} + &`]:{paddingTop:0}}}]}))),sp=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...s}=r,l={...r,dividers:a},c=fz(l);return D.jsx(pz,{className:we(c.root,i),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(sp.propTypes={children:o.node,classes:o.object,className:o.string,dividers:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function hz(e){return ke("MuiDialogContentText",e)}$e("MuiDialogContentText",["root"]);const mz=e=>{const{classes:t}=e,r=_e({root:["root"]},hz,t);return{...t,...r}},yz=ne(Xe,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),_g=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDialogContentText"}),{children:i,className:a,...s}=r,l=mz(s);return D.jsx(yz,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:we(l.root,a),...r,classes:l})});process.env.NODE_ENV!=="production"&&(_g.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const gz=e=>{const{classes:t}=e;return _e({root:["root"]},uz,t)},bz=ne(Xe,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),kg=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDialogTitle"}),{className:i,id:a,...s}=r,l=r,c=gz(l),{titleId:u=a}=I.useContext(Pg);return D.jsx(bz,{component:"h2",className:we(c.root,i),ownerState:l,ref:n,variant:"h6",id:a??u,...s})});process.env.NODE_ENV!=="production"&&(kg.propTypes={children:o.node,classes:o.object,className:o.string,id:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function vz(e){return ke("MuiDivider",e)}const Yw=$e("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),wz=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:l,variant:c}=e;return _e({root:["root",t&&"absolute",c,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},vz,r)},xz=ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ze(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Sz=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ze(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),ta=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,orientation:l="horizontal",component:c=a||l==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:f=c!=="hr"?"separator":void 0,textAlign:h="center",variant:p="fullWidth",...b}=r,m={...r,absolute:i,component:c,flexItem:u,light:d,orientation:l,role:f,textAlign:h,variant:p},y=wz(m);return D.jsx(xz,{as:c,className:we(y.root,s),role:f,ref:n,ownerState:m,"aria-orientation":f==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...b,children:a?D.jsx(Sz,{className:y.wrapper,ownerState:m,children:a}):null})});ta&&(ta.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(ta.propTypes={absolute:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,flexItem:o.bool,light:o.bool,orientation:o.oneOf(["horizontal","vertical"]),role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),textAlign:o.oneOf(["center","left","right"]),variant:o.oneOfType([o.oneOf(["fullWidth","inset","middle"]),o.string])});const Tz=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:s,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${ve(a)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},u=_e(c,_4,t);return{...t,...u}},Oz=ne(tp,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Jf(e,t),!n.disableUnderline&&t.underline]}})(ze(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:r}},[`&.${br.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${br.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{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"},[`&.${br.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${br.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,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(.${br.disabled}, .${br.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${br.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(fn()).map(([s])=>{var l;return{props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[s])==null?void 0:l.main}`}}}}),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Ez=ne(np,{name:"MuiFilledInput",slot:"Input",overridesResolver:ep})(ze(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?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"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Lc=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:l=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:f,slots:h={},type:p="text",...b}=r,m={...r,disableUnderline:i,fullWidth:l,inputComponent:u,multiline:d,type:p},y=Tz(r),g={root:{ownerState:m},input:{ownerState:m}},v=f??s?Mn(g,f??s):g,x=h.root??a.Root??Oz,w=h.input??a.Input??Ez;return D.jsx(rp,{slots:{root:x,input:w},slotProps:v,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:p,...b,classes:y})});process.env.NODE_ENV!=="production"&&(Lc.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Nt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});Lc.muiName="Input";function Cz(e){return ke("MuiFormControl",e)}$e("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Pz=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ve(n)}`,r&&"fullWidth"]};return _e(i,Cz,t)},_z=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ve(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Io=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFormControl"}),{children:i,className:a,color:s="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:h=!1,margin:p="none",required:b=!1,size:m="medium",variant:y="outlined",...g}=r,v={...r,color:s,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:h,margin:p,required:b,size:m,variant:y},x=Pz(v),[w,S]=I.useState(()=>{let W=!1;return i&&I.Children.forEach(i,U=>{if(!Ui(U,["Input","Select"]))return;const K=Ui(U,["Select"])?U.props.input:U;K&&T4(K.props)&&(W=!0)}),W}),[O,C]=I.useState(()=>{let W=!1;return i&&I.Children.forEach(i,U=>{Ui(U,["Input","Select"])&&(Fd(U.props,!0)||Fd(U.props.inputProps,!0))&&(W=!0)}),W}),[P,k]=I.useState(!1);c&&P&&k(!1);const E=d!==void 0&&!c?d:P;let _;const T=I.useRef(!1);process.env.NODE_ENV!=="production"&&(_=()=>(T.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
`)),T.current=!0,()=>{T.current=!1}));const $=I.useCallback(()=>{C(!0)},[]),M=I.useCallback(()=>{C(!1)},[]),j=I.useMemo(()=>({adornedStart:w,setAdornedStart:S,color:s,disabled:c,error:u,filled:O,focused:E,fullWidth:f,hiddenLabel:h,size:m,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:M,onFilled:$,registerEffect:_,required:b,variant:y}),[w,s,c,u,O,E,f,h,_,M,$,b,m,y]);return D.jsx(jc.Provider,{value:j,children:D.jsx(_z,{as:l,ownerState:v,className:we(x.root,a),ref:n,...g,children:i})})});process.env.NODE_ENV!=="production"&&(Io.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function kz(e){return ke("MuiFormControlLabel",e)}const _l=$e("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Dz=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${ve(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return _e(s,kz,t)},$z=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_l.label}`]:t.label},t.root,t[`labelPlacement${ve(n.labelPlacement)}`]]}})(ze(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${_l.disabled}`]:{cursor:"default"},[`& .${_l.label}`]:{[`&.${_l.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),Rz=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(ze(({theme:e})=>({[`&.${_l.error}`]:{color:(e.vars||e).palette.error.main}}))),Ms=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFormControlLabel"}),{checked:i,className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,inputRef:d,label:f,labelPlacement:h="end",name:p,onChange:b,required:m,slots:y={},slotProps:g={},value:v,...x}=r,w=kr(),S=c??l.props.disabled??(w==null?void 0:w.disabled),O=m??l.props.required,C={disabled:S,required:O};["checked","name","onChange","value","inputRef"].forEach(j=>{typeof l.props[j]>"u"&&typeof r[j]<"u"&&(C[j]=r[j])});const P=Ti({props:r,muiFormControl:w,states:["error"]}),k={...r,disabled:S,labelPlacement:h,required:O,error:P.error},E=Dz(k),_={slots:y,slotProps:{...s,...g}},[T,$]=Ke("typography",{elementType:Xe,externalForwardedProps:_,ownerState:k});let M=f;return M!=null&&M.type!==Xe&&!u&&(M=D.jsx(T,{component:"span",...$,className:we(E.label,$==null?void 0:$.className),children:M})),D.jsxs($z,{className:we(E.root,a),ownerState:k,ref:n,...x,children:[I.cloneElement(l,C),O?D.jsxs("div",{children:[M,D.jsxs(Rz,{ownerState:k,"aria-hidden":!0,className:E.asterisk,children:[" ","*"]})]}):M]})});process.env.NODE_ENV!=="production"&&(Ms.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:Nt,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function Mz(e){return ke("MuiFormGroup",e)}$e("MuiFormGroup",["root","row","error"]);const Iz=e=>{const{classes:t,row:n,error:r}=e;return _e({root:["root",n&&"row",r&&"error"]},Mz,t)},Nz=ne("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Dg=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1,...s}=r,l=kr(),c=Ti({props:r,muiFormControl:l,states:["error"]}),u={...r,row:a,error:c.error},d=Iz(u);return D.jsx(Nz,{className:we(d.root,i),ownerState:u,ref:n,...s})});process.env.NODE_ENV!=="production"&&(Dg.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Az(e){return ke("MuiFormHelperText",e)}const Gw=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Kw;const jz=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:s,focused:l,required:c}=e,u={root:["root",i&&"disabled",a&&"error",r&&`size${ve(r)}`,n&&"contained",l&&"focused",s&&"filled",c&&"required"]};return _e(u,Az,t)},Lz=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ve(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Gw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Gw.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),cn=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:s="p",disabled:l,error:c,filled:u,focused:d,margin:f,required:h,variant:p,...b}=r,m=kr(),y=Ti({props:r,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),g={...r,component:s,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete g.ownerState;const v=jz(g);return D.jsx(Lz,{as:s,className:we(v.root,a),ref:n,...b,ownerState:g,children:i===" "?Kw||(Kw=D.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});process.env.NODE_ENV!=="production"&&(cn.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function Fz(e){return ke("MuiFormLabel",e)}const Vl=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Bz=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:s,required:l}=e,c={root:["root",`color${ve(n)}`,i&&"disabled",a&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return _e(c,Fz,t)},Vz=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(fn()).map(([t])=>({props:{color:t},style:{[`&.${Vl.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Vl.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Vl.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),zz=ne("span",{name:"MuiFormLabel",slot:"Asterisk"})(ze(({theme:e})=>({[`&.${Vl.error}`]:{color:(e.vars||e).palette.error.main}}))),lo=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiFormLabel"}),{children:i,className:a,color:s,component:l="label",disabled:c,error:u,filled:d,focused:f,required:h,...p}=r,b=kr(),m=Ti({props:r,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),y={...r,color:m.color||"primary",component:l,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},g=Bz(y);return D.jsxs(Vz,{as:l,ownerState:y,className:we(g.root,a),ref:n,...p,children:[i,m.required&&D.jsxs(zz,{ownerState:y,"aria-hidden":!0,className:g.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(lo.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Rt=qA({createStyledComponent:ne("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>qe({props:e,name:"MuiGrid"}),useTheme:uo});process.env.NODE_ENV!=="production"&&(Rt.propTypes={children:o.node,columns:o.oneOfType([o.arrayOf(o.number),o.number,o.object]),columnSpacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),container:o.bool,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),offset:o.oneOfType([o.string,o.number,o.arrayOf(o.oneOfType([o.string,o.number])),o.object]),rowSpacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),size:o.oneOfType([o.string,o.bool,o.number,o.arrayOf(o.oneOfType([o.string,o.bool,o.number])),o.object]),spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),unstable_level:o.number,wrap:o.oneOf(["nowrap","wrap-reverse","wrap"])});if(process.env.NODE_ENV!=="production"){const e=Rt,t=_B("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}function Jm(e){return`scale(${e}, ${e**2})`}const Wz={entering:{opacity:1,transform:Jm(1)},entered:{opacity:1,transform:"none"}},Ah=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),hs=I.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:h,onExiting:p,style:b,timeout:m="auto",TransitionComponent:y=_r,...g}=t,v=wr(),x=I.useRef(),w=uo(),S=I.useRef(null),O=Et(S,Ds(a),n),C=j=>W=>{if(j){const U=S.current;W===void 0?j(U):j(U,W)}},P=C(d),k=C((j,W)=>{uC(j);const{duration:U,delay:K,easing:H}=ls({style:b,timeout:m,easing:s},{mode:"enter"});let F;m==="auto"?(F=w.transitions.getAutoHeightDuration(j.clientHeight),x.current=F):F=U,j.style.transition=[w.transitions.create("opacity",{duration:F,delay:K}),w.transitions.create("transform",{duration:Ah?F:F*.666,delay:K,easing:H})].join(","),c&&c(j,W)}),E=C(u),_=C(p),T=C(j=>{const{duration:W,delay:U,easing:K}=ls({style:b,timeout:m,easing:s},{mode:"exit"});let H;m==="auto"?(H=w.transitions.getAutoHeightDuration(j.clientHeight),x.current=H):H=W,j.style.transition=[w.transitions.create("opacity",{duration:H,delay:U}),w.transitions.create("transform",{duration:Ah?H:H*.666,delay:Ah?U:U||H*.333,easing:K})].join(","),j.style.opacity=0,j.style.transform=Jm(.75),f&&f(j)}),$=C(h),M=j=>{m==="auto"&&v.start(x.current||0,j),r&&r(S.current,j)};return D.jsx(y,{appear:i,in:l,nodeRef:S,onEnter:k,onEntered:E,onEntering:P,onExit:T,onExited:$,onExiting:_,addEndListener:M,timeout:m==="auto"?null:m,...g,children:(j,{ownerState:W,...U})=>I.cloneElement(a,{style:{opacity:0,transform:Jm(.75),visibility:j==="exited"&&!l?"hidden":void 0,...Wz[j],...b,...a.props.style},ref:O,...U})})});process.env.NODE_ENV!=="production"&&(hs.propTypes={addEndListener:o.func,appear:o.bool,children:Rs.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});hs&&(hs.muiSupportAuto=!0);const Uz=e=>{const{classes:t,disableUnderline:n}=e,i=_e({root:["root",!n&&"underline"],input:["input"]},C4,t);return{...t,...i}},qz=ne(tp,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Jf(e,t),!n.disableUnderline&&t.underline]}})(ze(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{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"},[`&.${di.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${di.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${di.disabled}, .${di.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${di.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(fn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Hz=ne(np,{name:"MuiInput",slot:"Input",overridesResolver:ep})({}),Fc=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:l=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:h="text",...p}=r,b=Uz(r),y={root:{ownerState:{disableUnderline:i}}},g=d??s?Mn(d??s,y):y,v=f.root??a.Root??qz,x=f.input??a.Input??Hz;return D.jsx(rp,{slots:{root:v,input:x},slotProps:g,fullWidth:l,inputComponent:c,multiline:u,ref:n,type:h,...p,classes:b})});process.env.NODE_ENV!=="production"&&(Fc.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Nt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});Fc.muiName="Input";function Yz(e){return ke("MuiInputAdornment",e)}const Xw=$e("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Zw;const Gz=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ve(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Kz=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:s}=e,l={root:["root",n&&"disablePointerEvents",i&&`position${ve(i)}`,s,r&&"hiddenLabel",a&&`size${ve(a)}`]};return _e(l,Yz,t)},Xz=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Gz})(ze(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Xw.positionStart}&:not(.${Xw.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),$g=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:s="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...f}=r,h=kr()||{};let p=d;d&&h.variant&&process.env.NODE_ENV!=="production"&&d===h.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),h&&!p&&(p=h.variant);const b={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:l,position:u,variant:p},m=Kz(b);return D.jsx(jc.Provider,{value:null,children:D.jsx(Xz,{as:s,ownerState:b,className:we(m.root,a),ref:n,...f,children:typeof i=="string"&&!c?D.jsx(Xe,{color:"textSecondary",children:i}):D.jsxs(I.Fragment,{children:[u==="start"?Zw||(Zw=D.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,i]})})})});process.env.NODE_ENV!=="production"&&($g.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disablePointerEvents:o.bool,disableTypography:o.bool,position:o.oneOf(["end","start"]).isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function Zz(e){return ke("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Qz=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:s,required:l}=e,c={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="medium"&&`size${ve(r)}`,s],asterisk:[l&&"asterisk"]},u=_e(c,Zz,t);return{...t,...u}},Jz=ne(lo,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vl.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ze(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Bc=I.forwardRef(function(t,n){const r=qe({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:a,shrink:s,variant:l,className:c,...u}=r,d=kr();let f=s;typeof f>"u"&&d&&(f=d.filled||d.focused||d.adornedStart);const h=Ti({props:r,muiFormControl:d,states:["size","variant","required","focused"]}),p={...r,disableAnimation:i,formControl:d,shrink:f,size:h.size,variant:h.variant,required:h.required,focused:h.focused},b=Qz(p);return D.jsx(Jz,{"data-shrink":f,ref:n,className:we(b.root,c),...u,ownerState:p,classes:b})});process.env.NODE_ENV!=="production"&&(Bc.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});const Ur=I.createContext({});process.env.NODE_ENV!=="production"&&(Ur.displayName="ListContext");function e6(e){return ke("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const t6=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return _e({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},e6,t)},n6=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),lp=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=r,f=I.useMemo(()=>({dense:l}),[l]),h={...r,component:s,dense:l,disablePadding:c},p=t6(h);return D.jsx(Ur.Provider,{value:f,children:D.jsxs(n6,{as:s,className:we(p.root,a),ref:n,ownerState:h,...d,children:[u,i]})})});process.env.NODE_ENV!=="production"&&(lp.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function r6(e){return ke("MuiListItem",e)}$e("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function o6(e){return ke("MuiListItemButton",e)}const Ia=$e("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),i6=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},a6=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:s,selected:l}=e,u=_e({root:["root",r&&"dense",!a&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},o6,n);return{...n,...u}},s6=ne(Or,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:i6})(ze(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,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"}},[`&.${Ia.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ia.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ia.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Ia.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ia.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),UC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:s="div",children:l,dense:c=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:h=!1,className:p,...b}=r,m=I.useContext(Ur),y=I.useMemo(()=>({dense:c||m.dense||!1,alignItems:i,disableGutters:u}),[i,m.dense,c,u]),g=I.useRef(null);Jt(()=>{a&&(g.current?g.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[a]);const v={...r,alignItems:i,dense:y.dense,disableGutters:u,divider:d,selected:h},x=a6(v),w=Et(g,n);return D.jsx(Ur.Provider,{value:y,children:D.jsx(s6,{ref:w,href:b.href||b.to,component:(b.href||b.to)&&s==="div"?"button":s,focusVisibleClassName:we(x.focusVisible,f),ownerState:v,className:we(x.root,p),...b,classes:x,children:l})})});process.env.NODE_ENV!=="production"&&(UC.propTypes={alignItems:o.oneOf(["center","flex-start"]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,href:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function l6(e){return ke("MuiListItemSecondaryAction",e)}$e("MuiListItemSecondaryAction",["root","disableGutters"]);const c6=e=>{const{disableGutters:t,classes:n}=e;return _e({root:["root",t&&"disableGutters"]},l6,n)},u6=ne("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),cp=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...a}=r,s=I.useContext(Ur),l={...r,disableGutters:s.disableGutters},c=c6(l);return D.jsx(u6,{className:we(c.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(cp.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});cp.muiName="ListItemSecondaryAction";const d6=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},f6=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:s,hasSecondaryAction:l}=e;return _e({root:["root",r&&"dense",!i&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},r6,n)},p6=ne("div",{name:"MuiListItem",slot:"Root",overridesResolver:d6})(ze(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Ia.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{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"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),h6=ne("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),qC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListItem"}),{alignItems:i="center",children:a,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:f,...h}={},dense:p=!1,disableGutters:b=!1,disablePadding:m=!1,divider:y=!1,secondaryAction:g,slotProps:v={},slots:x={},...w}=r,S=I.useContext(Ur),O=I.useMemo(()=>({dense:p||S.dense||!1,alignItems:i,disableGutters:b}),[i,S.dense,p,b]),C=I.useRef(null),P=I.Children.toArray(a),k=P.length&&Ui(P[P.length-1],["ListItemSecondaryAction"]),E={...r,alignItems:i,dense:O.dense,disableGutters:b,disablePadding:m,divider:y,hasSecondaryAction:k},_=f6(E),T=Et(C,n),$=x.root||c.Root||p6,M=v.root||u.root||{},j={className:we(_.root,M.className,s),...w};let W=l||"li";return k?(W=!j.component&&!l?"div":W,d==="li"&&(W==="li"?W="div":j.component==="li"&&(j.component="div")),D.jsx(Ur.Provider,{value:O,children:D.jsxs(h6,{as:d,className:we(_.container,f),ref:T,ownerState:E,...h,children:[D.jsx($,{...M,...!_o($)&&{as:W,ownerState:{...E,...M.ownerState}},...j,children:P}),P.pop()]})})):D.jsx(Ur.Provider,{value:O,children:D.jsxs($,{...M,as:W,ref:T,...!_o($)&&{ownerState:{...E,...M.ownerState}},...j,children:[P,g&&D.jsx(cp,{children:g})]})})});process.env.NODE_ENV!=="production"&&(qC.propTypes={alignItems:o.oneOf(["center","flex-start"]),children:er(o.node,e=>{const t=I.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const i=t[r];if(Ui(i,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),ContainerComponent:Mc,ContainerProps:o.object,dense:o.bool,disableGutters:o.bool,disablePadding:o.bool,divider:o.bool,secondaryAction:o.node,slotProps:o.shape({root:o.object}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function m6(e){return ke("MuiListItemAvatar",e)}$e("MuiListItemAvatar",["root","alignItemsFlexStart"]);const y6=e=>{const{alignItems:t,classes:n}=e;return _e({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},m6,n)},g6=ne("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),HC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListItemAvatar"}),{className:i,...a}=r,s=I.useContext(Ur),l={...r,alignItems:s.alignItems},c=y6(l);return D.jsx(g6,{className:we(c.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(HC.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Qw=$e("MuiListItemIcon",["root","alignItemsFlexStart"]);function b6(e){return ke("MuiListItemText",e)}const Ba=$e("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),v6=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return _e({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},b6,t)},w6=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ba.primary}`]:t.primary},{[`& .${Ba.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Nd.root}:where(& .${Ba.primary})`]:{display:"block"},[`.${Nd.root}:where(& .${Ba.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Rg=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f,slots:h={},slotProps:p={},...b}=r,{dense:m}=I.useContext(Ur);let y=c??i,g=d;const v={...r,disableTypography:s,inset:l,primary:!!y,secondary:!!g,dense:m},x=v6(v),w={slots:h,slotProps:{primary:u,secondary:f,...p}},[S,O]=Ke("root",{className:we(x.root,a),elementType:w6,externalForwardedProps:{...w,...b},ownerState:v,ref:n}),[C,P]=Ke("primary",{className:x.primary,elementType:Xe,externalForwardedProps:w,ownerState:v}),[k,E]=Ke("secondary",{className:x.secondary,elementType:Xe,externalForwardedProps:w,ownerState:v});return y!=null&&y.type!==Xe&&!s&&(y=D.jsx(C,{variant:m?"body2":"body1",component:P!=null&&P.variant?void 0:"span",...P,children:y})),g!=null&&g.type!==Xe&&!s&&(g=D.jsx(k,{variant:"body2",color:"textSecondary",...E,children:g})),D.jsxs(S,{...O,children:[y,g]})});process.env.NODE_ENV!=="production"&&(Rg.propTypes={children:o.node,classes:o.object,className:o.string,disableTypography:o.bool,inset:o.bool,primary:o.node,primaryTypographyProps:o.object,secondary:o.node,secondaryTypographyProps:o.object,slotProps:o.shape({primary:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),secondary:o.oneOfType([o.func,o.object])}),slots:o.shape({primary:o.elementType,root:o.elementType,secondary:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function jh(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Jw(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function YC(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function sl(e,t,n,r,i,a){let s=!1,l=i(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!YC(l,a)||c)l=i(e,l,n);else return l.focus(),!0}return!1}const up=I.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu",...h}=t,p=I.useRef(null),b=I.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jt(()=>{i&&p.current.focus()},[i]),I.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:w})=>{const S=!p.current.style.width;if(x.clientHeight<p.current.clientHeight&&S){const O=`${WC(so(x))}px`;p.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=O,p.current.style.width=`calc(100% + ${O})`}return p.current}}),[]);const m=x=>{const w=p.current,S=x.key;if(x.ctrlKey||x.metaKey||x.altKey){d&&d(x);return}const C=pn(w).activeElement;if(S==="ArrowDown")x.preventDefault(),sl(w,C,u,c,jh);else if(S==="ArrowUp")x.preventDefault(),sl(w,C,u,c,Jw);else if(S==="Home")x.preventDefault(),sl(w,null,u,c,jh);else if(S==="End")x.preventDefault(),sl(w,null,u,c,Jw);else if(S.length===1){const P=b.current,k=S.toLowerCase(),E=performance.now();P.keys.length>0&&(E-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&k!==P.keys[0]&&(P.repeating=!1)),P.lastTime=E,P.keys.push(k);const _=C&&!P.repeating&&YC(C,P);P.previousKeyMatched&&(_||sl(w,C,!1,c,jh,P))?x.preventDefault():P.previousKeyMatched=!1}d&&d(x)},y=Et(p,n);let g=-1;I.Children.forEach(s,(x,w)=>{if(!I.isValidElement(x)){g===w&&(g+=1,g>=s.length&&(g=-1));return}process.env.NODE_ENV!=="production"&&Ho.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`)),x.props.disabled||(f==="selectedMenu"&&x.props.selected||g===-1)&&(g=w),g===w&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const v=I.Children.map(s,(x,w)=>{if(w===g){const S={};return a&&(S.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(S.tabIndex=0),I.cloneElement(x,S)}return x});return D.jsx(lp,{role:"menu",ref:y,className:l,onKeyDown:m,tabIndex:i?0:-1,...h,children:v})});process.env.NODE_ENV!=="production"&&(up.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function x6(e){return ke("MuiPopover",e)}$e("MuiPopover",["root","paper"]);function ex(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function tx(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function nx(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function kl(e){return typeof e=="function"?e():e}const S6=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"]},x6,t)},T6=ne(Cg,{name:"MuiPopover",slot:"Root"})({}),GC=ne(fo,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),KC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:d,container:f,elevation:h=8,marginThreshold:p=16,open:b,PaperProps:m={},slots:y={},slotProps:g={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:w="auto",TransitionProps:S={},disableScrollLock:O=!1,...C}=r,P=I.useRef(),k={...r,anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:p,transformOrigin:v,TransitionComponent:x,transitionDuration:w,TransitionProps:S},E=S6(k),_=I.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const X=kl(a),Q=X&&X.nodeType===1?X:pn(P.current).body,Z=Q.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ce=Q.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ce.top===0&&ce.left===0&&ce.right===0&&ce.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}return{top:Z.top+ex(Z,s.vertical),left:Z.left+tx(Z,s.horizontal)}},[a,s.horizontal,s.vertical,l,c]),T=I.useCallback(X=>({vertical:ex(X,v.vertical),horizontal:tx(X,v.horizontal)}),[v.horizontal,v.vertical]),$=I.useCallback(X=>{const Q={width:X.offsetWidth,height:X.offsetHeight},Z=T(Q);if(c==="none")return{top:null,left:null,transformOrigin:nx(Z)};const ce=_();let ue=ce.top-Z.vertical,ye=ce.left-Z.horizontal;const de=ue+Q.height,pe=ye+Q.width,J=so(kl(a)),oe=J.innerHeight-p,te=J.innerWidth-p;if(p!==null&&ue<p){const le=ue-p;ue-=le,Z.vertical+=le}else if(p!==null&&de>oe){const le=de-oe;ue-=le,Z.vertical+=le}if(process.env.NODE_ENV!=="production"&&Q.height>oe&&Q.height&&oe&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${Q.height-oe}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
`)),p!==null&&ye<p){const le=ye-p;ye-=le,Z.horizontal+=le}else if(pe>te){const le=pe-te;ye-=le,Z.horizontal+=le}return{top:`${Math.round(ue)}px`,left:`${Math.round(ye)}px`,transformOrigin:nx(Z)}},[a,c,_,T,p]),[M,j]=I.useState(b),W=I.useCallback(()=>{const X=P.current;if(!X)return;const Q=$(X);Q.top!==null&&X.style.setProperty("top",Q.top),Q.left!==null&&(X.style.left=Q.left),X.style.transformOrigin=Q.transformOrigin,j(!0)},[$]);I.useEffect(()=>(O&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[a,O,W]);const U=()=>{W()},K=()=>{j(!1)};I.useEffect(()=>{b&&W()}),I.useImperativeHandle(i,()=>b?{updatePosition:()=>{W()}}:null,[b,W]),I.useEffect(()=>{if(!b)return;const X=Kf(()=>{W()}),Q=so(kl(a));return Q.addEventListener("resize",X),()=>{X.clear(),Q.removeEventListener("resize",X)}},[a,b,W]);let H=w;const F={slots:{transition:x,...y},slotProps:{transition:S,paper:m,...g}},[R,V]=Ke("transition",{elementType:hs,externalForwardedProps:F,ownerState:k,getSlotProps:X=>({...X,onEntering:(Q,Z)=>{var ce;(ce=X.onEntering)==null||ce.call(X,Q,Z),U()},onExited:Q=>{var Z;(Z=X.onExited)==null||Z.call(X,Q),K()}}),additionalProps:{appear:!0,in:b}});w==="auto"&&!R.muiSupportAuto&&(H=void 0);const z=f||(a?pn(kl(a)).body:void 0),[L,{slots:A,slotProps:N,...q}]=Ke("root",{ref:n,elementType:T6,externalForwardedProps:{...F,...C},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:sC(typeof g.backdrop=="function"?g.backdrop(k):g.backdrop,{invisible:!0})},container:z,open:b},ownerState:k,className:we(E.root,d)}),[Y,G]=Ke("paper",{ref:P,className:E.paper,elementType:GC,externalForwardedProps:F,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:M?void 0:{opacity:0}},ownerState:k});return D.jsx(L,{...q,...!_o(L)&&{slots:A,slotProps:N,disableScrollLock:O},children:D.jsx(R,{...V,timeout:H,children:D.jsx(Y,{...G,children:u})})})});process.env.NODE_ENV!=="production"&&(KC.propTypes={action:Nt,anchorEl:er(o.oneOfType([Go,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=kl(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
`))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([Go,o.func]),disableScrollLock:o.bool,elevation:Ic,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:Mc}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function O6(e){return ke("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const E6={vertical:"top",horizontal:"right"},C6={vertical:"top",horizontal:"left"},P6=e=>{const{classes:t}=e;return _e({root:["root"],paper:["paper"],list:["list"]},O6,t)},_6=ne(KC,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),k6=ne(GC,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),D6=ne(up,{name:"MuiMenu",slot:"List"})({outline:0}),XC=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:f={},PopoverClasses:h,transitionDuration:p="auto",TransitionProps:{onEntering:b,...m}={},variant:y="selectedMenu",slots:g={},slotProps:v={},...x}=r,w=Xn(),S={...r,autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:b,PaperProps:f,transitionDuration:p,TransitionProps:m,variant:y},O=P6(S),C=i&&!l&&d,P=I.useRef(null),k=(H,F)=>{P.current&&P.current.adjustStyleForScrollbar(H,{direction:w?"rtl":"ltr"}),b&&b(H,F)},E=H=>{H.key==="Tab"&&(H.preventDefault(),u&&u(H,"tabKeyDown"))};let _=-1;I.Children.map(a,(H,F)=>{I.isValidElement(H)&&(process.env.NODE_ENV!=="production"&&Ho.isFragment(H)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`)),H.props.disabled||(y==="selectedMenu"&&H.props.selected||_===-1)&&(_=F))});const T={slots:g,slotProps:{list:c,transition:m,paper:f,...v}},$=dt({elementType:g.root,externalSlotProps:v.root,ownerState:S,className:[O.root,s]}),[M,j]=Ke("paper",{className:O.paper,elementType:k6,externalForwardedProps:T,shouldForwardComponentProp:!0,ownerState:S}),[W,U]=Ke("list",{className:we(O.list,c.className),elementType:D6,shouldForwardComponentProp:!0,externalForwardedProps:T,getSlotProps:H=>({...H,onKeyDown:F=>{var R;E(F),(R=H.onKeyDown)==null||R.call(H,F)}}),ownerState:S}),K=typeof T.slotProps.transition=="function"?T.slotProps.transition(S):T.slotProps.transition;return D.jsx(_6,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?E6:C6,slots:{root:g.root,paper:M,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:$,paper:j,backdrop:typeof v.backdrop=="function"?v.backdrop(S):v.backdrop,transition:{...K,onEntering:(...H)=>{var F;k(...H),(F=K==null?void 0:K.onEntering)==null||F.call(K,...H)}}},open:d,ref:n,transitionDuration:p,ownerState:S,...x,classes:h,children:D.jsx(W,{actions:P,autoFocus:i&&(_===-1||l),autoFocusItem:C,variant:y,...U,children:a})})});process.env.NODE_ENV!=="production"&&(XC.propTypes={anchorEl:o.oneOfType([Go,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,list:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function $6(e){return ke("MuiMenuItem",e)}const ll=$e("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),R6=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},M6=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,c=_e({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},$6,s);return{...s,...c}},I6=ne(Or,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:R6})(ze(({theme:e})=>({...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","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ll.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${ll.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${ll.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${ll.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ll.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Yw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Yw.inset}`]:{marginLeft:52},[`& .${Ba.root}`]:{marginTop:0,marginBottom:0},[`& .${Ba.inset}`]:{paddingLeft:36},[`& .${Qw.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Qw.root} svg`]:{fontSize:"1.25rem"}}}]}))),ms=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:f,className:h,...p}=r,b=I.useContext(Ur),m=I.useMemo(()=>({dense:s||b.dense||!1,disableGutters:c}),[b.dense,s,c]),y=I.useRef(null);Jt(()=>{i&&(y.current?y.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const g={...r,dense:m.dense,divider:l,disableGutters:c},v=M6(r),x=Et(y,n);let w;return r.disabled||(w=f!==void 0?f:-1),D.jsx(Ur.Provider,{value:m,children:D.jsx(I6,{ref:x,role:d,tabIndex:w,component:a,focusVisibleClassName:we(v.focusVisible,u),className:we(v.root,h),...p,ownerState:g,classes:v})})});process.env.NODE_ENV!=="production"&&(ms.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});function N6(e){return ke("MuiNativeSelect",e)}const Mg=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),A6=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,l={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${ve(n)}`,a&&"iconOpen",r&&"disabled"]};return _e(l,N6,t)},ZC=ne("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Mg.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),j6=ne(ZC,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:In,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Mg.multiple}`]:t.multiple}]}})({}),QC=ne("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Mg.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),L6=ne(QC,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ve(n.variant)}`],n.open&&t.iconOpen]}})({}),JC=I.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:l,variant:c="standard",...u}=t,d={...t,disabled:i,variant:c,error:a},f=A6(d);return D.jsxs(I.Fragment,{children:[D.jsx(j6,{ownerState:d,className:we(f.select,r),disabled:i,ref:l||n,...u}),t.multiple?null:D.jsx(L6,{as:s,ownerState:d,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(JC.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Nt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var rx;const F6=ne("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:In})({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%"}),B6=ne("legend",{name:"MuiNotchedOutlined",shouldForwardProp:In})(ze(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function eP(e){const{children:t,classes:n,className:r,label:i,notched:a,...s}=e,l=i!=null&&i!=="",c={...e,notched:a,withLabel:l};return D.jsx(F6,{"aria-hidden":!0,className:r,ownerState:c,...s,children:D.jsx(B6,{ownerState:c,children:l?D.jsx("span",{children:i}):rx||(rx=D.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(eP.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const V6=e=>{const{classes:t}=e,r=_e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},P4,t);return{...t,...r}},z6=ne(tp,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Jf})(ze(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ar.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ar.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ar.focused} .${Ar.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(fn()).map(([n])=>({props:{color:n},style:{[`&.${Ar.focused} .${Ar.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ar.error} .${Ar.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ar.disabled} .${Ar.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),W6=ne(eP,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ze(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),U6=ne(np,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ep})(ze(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Vc=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:u,slots:d={},slotProps:f={},type:h="text",...p}=r,b=V6(r),m=kr(),y=Ti({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),g={...r,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:m,fullWidth:a,hiddenLabel:y.hiddenLabel,multiline:c,size:y.size,type:h},v=d.root??i.Root??z6,x=d.input??i.Input??U6,[w,S]=Ke("notchedOutline",{elementType:W6,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:d,slotProps:f},additionalProps:{label:l!=null&&l!==""&&y.required?D.jsxs(I.Fragment,{children:[l," ","*"]}):l}});return D.jsx(rp,{slots:{root:v,input:x},slotProps:f,renderSuffix:O=>D.jsx(w,{...S,notched:typeof u<"u"?u:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:a,inputComponent:s,multiline:c,ref:n,type:h,...p,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Vc.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Nt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});Vc.muiName="Input";const q6=ot(D.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"),H6=ot(D.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"),Y6=ne("span",{name:"MuiRadioButtonIcon",shouldForwardProp:In})({position:"relative",display:"flex"}),G6=ne(q6,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),K6=ne(H6,{name:"MuiRadioButtonIcon"})(ze(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Ig(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return D.jsxs(Y6,{className:n.root,ownerState:i,children:[D.jsx(G6,{fontSize:r,className:n.background,ownerState:i}),D.jsx(K6,{fontSize:r,className:n.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(Ig.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const Ng=I.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ng.displayName="RadioGroupContext");function X6(){return I.useContext(Ng)}function Z6(e){return ke("MuiRadio",e)}const ox=$e("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Q6=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ve(n)}`,r!=="medium"&&`size${ve(r)}`]};return{...t,..._e(i,Z6,t)}},J6=ne(op,{shouldForwardProp:e=>In(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ve(n.size)}`],t[`color${ve(n.color)}`]]}})(ze(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${ox.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(fn()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(fn()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${ox.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function eW(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const tW=D.jsx(Ig,{checked:!0}),nW=D.jsx(Ig,{}),Ag=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:a=tW,color:s="primary",icon:l=nW,name:c,onChange:u,size:d="medium",className:f,disabled:h,disableRipple:p=!1,slots:b={},slotProps:m={},inputProps:y,...g}=r,v=kr();let x=h;v&&typeof x>"u"&&(x=v.disabled),x??(x=!1);const w={...r,disabled:x,disableRipple:p,color:s,size:d},S=Q6(w),O=X6();let C=i;const P=Wm(u,O&&O.onChange);let k=c;O&&(typeof C>"u"&&(C=eW(O.value,r.value)),typeof k>"u"&&(k=O.name));const E=m.input??y,[_,T]=Ke("root",{ref:n,elementType:J6,className:we(S.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:m,...g},getSlotProps:$=>({...$,onChange:(M,...j)=>{var W;(W=$.onChange)==null||W.call($,M,...j),P(M,...j)}}),ownerState:w,additionalProps:{type:"radio",icon:I.cloneElement(l,{fontSize:l.props.fontSize??d}),checkedIcon:I.cloneElement(a,{fontSize:a.props.fontSize??d}),disabled:x,name:k,checked:C,slots:b,slotProps:{input:typeof E=="function"?E(w):E}}});return D.jsx(_,{...T,classes:S})});process.env.NODE_ENV!=="production"&&(Ag.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:Nt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function rW(e){return ke("MuiRadioGroup",e)}$e("MuiRadioGroup",["root","row","error"]);const oW=e=>{const{classes:t,row:n,error:r}=e;return _e({root:["root",n&&"row",r&&"error"]},rW,t)},jg=I.forwardRef(function(t,n){const{actions:r,children:i,className:a,defaultValue:s,name:l,onChange:c,value:u,...d}=t,f=I.useRef(null),h=oW(t),[p,b]=Gn({controlled:u,default:s,name:"RadioGroup"});I.useImperativeHandle(r,()=>({focus:()=>{let v=f.current.querySelector("input:not(:disabled):checked");v||(v=f.current.querySelector("input:not(:disabled)")),v&&v.focus()}}),[]);const m=Et(n,f),y=Pr(l),g=I.useMemo(()=>({name:y,onChange(v){b(v.target.value),c&&c(v,v.target.value)},value:p}),[y,c,b,p]);return D.jsx(Ng.Provider,{value:g,children:D.jsx(Dg,{role:"radiogroup",ref:m,className:we(h.root,a),...d,children:i})})});process.env.NODE_ENV!=="production"&&(jg.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const tP={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function nP(e){return ke("MuiSelect",e)}const cl=$e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ix;const iW=ne(ZC,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${cl.select}`]:t.select},{[`&.${cl.select}`]:t[n.variant]},{[`&.${cl.error}`]:t.error},{[`&.${cl.multiple}`]:t.multiple}]}})({[`&.${cl.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),aW=ne(QC,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ve(n.variant)}`],n.open&&t.iconOpen]}})({}),sW=ne("input",{shouldForwardProp:e=>jf(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ax(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function lW(e){return e==null||typeof e=="string"&&!e.trim()}const cW=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,l={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${ve(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return _e(l,nP,t)},rP=I.forwardRef(function(t,n){var kt,et,ht,Tt;const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:f,displayEmpty:h,error:p=!1,IconComponent:b,inputRef:m,labelId:y,MenuProps:g={},multiple:v,name:x,onBlur:w,onChange:S,onClose:O,onFocus:C,onOpen:P,open:k,readOnly:E,renderValue:_,required:T,SelectDisplayProps:$={},tabIndex:M,type:j,value:W,variant:U="standard",...K}=t,[H,F]=Gn({controlled:W,default:d,name:"Select"}),[R,V]=Gn({controlled:k,default:u,name:"Select"}),z=I.useRef(null),L=I.useRef(null),[A,N]=I.useState(null),{current:q}=I.useRef(k!=null),[Y,G]=I.useState(),X=Et(n,m),Q=I.useCallback(ie=>{L.current=ie,ie&&N(ie)},[]),Z=A==null?void 0:A.parentNode;I.useImperativeHandle(X,()=>({focus:()=>{L.current.focus()},node:z.current,value:H}),[H]),I.useEffect(()=>{u&&R&&A&&!q&&(G(s?null:Z.clientWidth),L.current.focus())},[A,s]),I.useEffect(()=>{a&&L.current.focus()},[a]),I.useEffect(()=>{if(!y)return;const ie=pn(L.current).getElementById(y);if(ie){const Ce=()=>{getSelection().isCollapsed&&L.current.focus()};return ie.addEventListener("click",Ce),()=>{ie.removeEventListener("click",Ce)}}},[y]);const ce=(ie,Ce)=>{ie?P&&P(Ce):O&&O(Ce),q||(G(s?null:Z.clientWidth),V(ie))},ue=ie=>{ie.button===0&&(ie.preventDefault(),L.current.focus(),ce(!0,ie))},ye=ie=>{ce(!1,ie)},de=I.Children.toArray(l),pe=ie=>{const Ce=de.find(Oe=>Oe.props.value===ie.target.value);Ce!==void 0&&(F(Ce.props.value),S&&S(ie,Ce))},J=ie=>Ce=>{let Oe;if(Ce.currentTarget.hasAttribute("tabindex")){if(v){Oe=Array.isArray(H)?H.slice():[];const Le=H.indexOf(ie.props.value);Le===-1?Oe.push(ie.props.value):Oe.splice(Le,1)}else Oe=ie.props.value;if(ie.props.onClick&&ie.props.onClick(Ce),H!==Oe&&(F(Oe),S)){const Le=Ce.nativeEvent||Ce,Se=new Le.constructor(Le.type,Le);Object.defineProperty(Se,"target",{writable:!0,value:{value:Oe,name:x}}),S(Se,ie)}v||ce(!1,Ce)}},oe=ie=>{E||[" ","ArrowUp","ArrowDown","Enter"].includes(ie.key)&&(ie.preventDefault(),ce(!0,ie))},te=A!==null&&R,le=ie=>{!te&&w&&(Object.defineProperty(ie,"target",{writable:!0,value:{value:H,name:x}}),w(ie))};delete K["aria-invalid"];let re,Ee;const Pe=[];let fe=!1,ge=!1;(Fd({value:H})||h)&&(_?re=_(H):fe=!0);const De=de.map(ie=>{if(!I.isValidElement(ie))return null;process.env.NODE_ENV!=="production"&&Ho.isFragment(ie)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`));let Ce;if(v){if(!Array.isArray(H))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":$o(2));Ce=H.some(Oe=>ax(Oe,ie.props.value)),Ce&&fe&&Pe.push(ie.props.children)}else Ce=ax(H,ie.props.value),Ce&&fe&&(Ee=ie.props.children);return Ce&&(ge=!0),I.cloneElement(ie,{"aria-selected":Ce?"true":"false",onClick:J(ie),onKeyUp:Oe=>{Oe.key===" "&&Oe.preventDefault(),ie.props.onKeyUp&&ie.props.onKeyUp(Oe)},role:"option",selected:Ce,value:void 0,"data-value":ie.props.value})});process.env.NODE_ENV!=="production"&&I.useEffect(()=>{if(!ge&&!v&&H!==""){const ie=de.map(Ce=>Ce.props.value);console.warn([`MUI: You have provided an out-of-range value \`${H}\` for the select ${x?`(name="${x}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ie.filter(Ce=>Ce!=null).map(Ce=>`\`${Ce}\``).join(", ")||'""'}.`].join(`
`))}},[ge,de,v,x,H]),fe&&(v?Pe.length===0?re=null:re=Pe.reduce((ie,Ce,Oe)=>(ie.push(Ce),Oe<Pe.length-1&&ie.push(", "),ie),[]):re=Ee);let Me=Y;!s&&q&&A&&(Me=Z.clientWidth);let Ie;typeof M<"u"?Ie=M:Ie=f?null:0;const he=$.id||(x?`mui-component-select-${x}`:void 0),me={...t,variant:U,value:H,open:te,error:p},Be=cW(me),Ue={...g.PaperProps,...typeof((kt=g.slotProps)==null?void 0:kt.paper)=="function"?g.slotProps.paper(me):(et=g.slotProps)==null?void 0:et.paper},We={...g.MenuListProps,...typeof((ht=g.slotProps)==null?void 0:ht.list)=="function"?g.slotProps.list(me):(Tt=g.slotProps)==null?void 0:Tt.list},lt=Pr();return D.jsxs(I.Fragment,{children:[D.jsx(iW,{as:"div",ref:Q,tabIndex:Ie,role:"combobox","aria-controls":te?lt:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":te?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[y,he].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":T?"true":void 0,"aria-invalid":p?"true":void 0,onKeyDown:oe,onMouseDown:f||E?null:ue,onBlur:le,onFocus:C,...$,ownerState:me,className:we($.className,Be.select,c),id:he,children:lW(re)?ix||(ix=D.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):re}),D.jsx(sW,{"aria-invalid":p,value:Array.isArray(H)?H.join(","):H,name:x,ref:z,"aria-hidden":!0,onChange:pe,tabIndex:-1,disabled:f,className:Be.nativeInput,autoFocus:a,required:T,...K,ownerState:me}),D.jsx(aW,{as:b,className:Be.icon,ownerState:me}),D.jsx(XC,{id:`menu-${x||""}`,anchorEl:Z,open:te,onClose:ye,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...g,slotProps:{...g.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:lt,...We},paper:{...Ue,style:{minWidth:Me,...Ue!=null?Ue.style:null}}},children:De})]})});process.env.NODE_ENV!=="production"&&(rP.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Nt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const uW=e=>{const{classes:t}=e,r=_e({root:["root"]},nP,t);return{...t,...r}},Lg={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>In(e)&&e!=="variant"},dW=ne(Fc,Lg)(""),fW=ne(Vc,Lg)(""),pW=ne(Lc,Lg)(""),zc=I.forwardRef(function(t,n){const r=qe({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=RC,id:f,input:h,inputProps:p,label:b,labelId:m,MenuProps:y,multiple:g=!1,native:v=!1,onClose:x,onOpen:w,open:S,renderValue:O,SelectDisplayProps:C,variant:P="outlined",...k}=r,E=v?JC:rP,_=kr(),T=Ti({props:r,muiFormControl:_,states:["variant","error"]}),$=T.variant||P,M={...r,variant:$,classes:s},j=uW(M),{root:W,...U}=j,K=h||{standard:D.jsx(dW,{ownerState:M}),outlined:D.jsx(fW,{label:b,ownerState:M}),filled:D.jsx(pW,{ownerState:M})}[$],H=Et(n,Ds(K));return D.jsx(I.Fragment,{children:I.cloneElement(K,{inputComponent:E,inputProps:{children:a,error:T.error,IconComponent:d,variant:$,type:void 0,multiple:g,...v?{id:f}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:m,MenuProps:y,onClose:x,onOpen:w,open:S,renderValue:O,SelectDisplayProps:{id:f,...C}},...p,classes:p?Mn(U,p.classes):U,...h?h.props.inputProps:{}},...(g&&v||u)&&$==="outlined"?{notched:!0}:{},ref:H,className:we(K.props.className,l,j.root),...!h&&{variant:$},...k})})});process.env.NODE_ENV!=="production"&&(zc.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])});zc.muiName="Select";function hW(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const mW=2;function Ca(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function oP(e,t){return e-t}function sx(e,t){const{index:n}=e.reduce((r,i,a)=>{const s=Math.abs(t-i);return r===null||s<r.distance||s===r.distance?{distance:s,index:a}:r},null)??{};return n}function Ru(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const i=n.changedTouches[r];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Vd(e,t,n){return(e-t)*100/(n-t)}function yW(e,t,n){return(n-t)*e+t}function gW(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function bW(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(gW(t)))}function lx({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(oP)}function Mu({sliderRef:e,activeIndex:t,setActive:n}){var i,a,s;const r=pn(e.current);(!((i=e.current)!=null&&i.contains(r.activeElement))||Number((a=r==null?void 0:r.activeElement)==null?void 0:a.getAttribute("data-index"))!==t)&&((s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function Iu(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?hW(e,t):!1}const vW={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}%`})}},wW=e=>e;let Nu;function cx(){return Nu===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Nu=CSS.supports("touch-action","none"):Nu=!0),Nu}function xW(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:s=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:f,orientation:h="horizontal",rootRef:p,scale:b=wW,step:m=1,shiftStep:y=10,tabIndex:g,value:v}=e,x=I.useRef(void 0),[w,S]=I.useState(-1),[O,C]=I.useState(-1),[P,k]=I.useState(!1),E=I.useRef(0),_=I.useRef(null),[T,$]=Gn({controlled:v,default:n??c,name:"Slider"}),M=d&&((fe,ge,De)=>{const Me=fe.nativeEvent||fe,Ie=new Me.constructor(Me.type,Me);Object.defineProperty(Ie,"target",{writable:!0,value:{value:ge,name:u}}),_.current=ge,d(Ie,ge,De)}),j=Array.isArray(T);let W=j?T.slice().sort(oP):[T];W=W.map(fe=>fe==null?c:Ra(fe,c,l));const U=s===!0&&m!==null?[...Array(Math.floor((l-c)/m)+1)].map((fe,ge)=>({value:c+m*ge})):s||[],K=U.map(fe=>fe.value),[H,F]=I.useState(-1),R=I.useRef(null),V=Et(p,R),z=fe=>ge=>{var Me;const De=Number(ge.currentTarget.getAttribute("data-index"));cs(ge.target)&&F(De),C(De),(Me=fe==null?void 0:fe.onFocus)==null||Me.call(fe,ge)},L=fe=>ge=>{var De;cs(ge.target)||F(-1),C(-1),(De=fe==null?void 0:fe.onBlur)==null||De.call(fe,ge)},A=(fe,ge)=>{const De=Number(fe.currentTarget.getAttribute("data-index")),Me=W[De],Ie=K.indexOf(Me);let he=ge;if(U&&m==null){const me=K[K.length-1];he>=me?he=me:he<=K[0]?he=K[0]:he=he<Me?K[Ie-1]:K[Ie+1]}if(he=Ra(he,c,l),j){i&&(he=Ra(he,W[De-1]||-1/0,W[De+1]||1/0));const me=he;he=lx({values:W,newValue:he,index:De});let Be=De;i||(Be=he.indexOf(me)),Mu({sliderRef:R,activeIndex:Be})}$(he),F(De),M&&!Iu(he,T)&&M(fe,he,De),f&&f(fe,_.current??he)},N=fe=>ge=>{var De;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ge.key)){ge.preventDefault();const Me=Number(ge.currentTarget.getAttribute("data-index")),Ie=W[Me];let he=null;if(m!=null){const me=ge.shiftKey?y:m;switch(ge.key){case"ArrowUp":he=Ca(Ie,me,1,c,l);break;case"ArrowRight":he=Ca(Ie,me,a?-1:1,c,l);break;case"ArrowDown":he=Ca(Ie,me,-1,c,l);break;case"ArrowLeft":he=Ca(Ie,me,a?1:-1,c,l);break;case"PageUp":he=Ca(Ie,y,1,c,l);break;case"PageDown":he=Ca(Ie,y,-1,c,l);break;case"Home":he=c;break;case"End":he=l;break}}else if(U){const me=K[K.length-1],Be=K.indexOf(Ie),Ue=[a?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],We=[a?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ue.includes(ge.key)?Be===0?he=K[0]:he=K[Be-1]:We.includes(ge.key)&&(Be===K.length-1?he=me:he=K[Be+1])}he!=null&&A(ge,he)}(De=fe==null?void 0:fe.onKeyDown)==null||De.call(fe,ge)};Jt(()=>{var fe;r&&R.current.contains(document.activeElement)&&((fe=document.activeElement)==null||fe.blur())},[r]),r&&w!==-1&&S(-1),r&&H!==-1&&F(-1);const q=fe=>ge=>{var De;(De=fe.onChange)==null||De.call(fe,ge),A(ge,ge.target.valueAsNumber)},Y=I.useRef(void 0);let G=h;a&&h==="horizontal"&&(G+="-reverse");const X=({finger:fe,move:ge=!1})=>{const{current:De}=R,{width:Me,height:Ie,bottom:he,left:me}=De.getBoundingClientRect();let Be;G.startsWith("vertical")?Be=(he-fe.y)/Ie:Be=(fe.x-me)/Me,G.includes("-reverse")&&(Be=1-Be);let Ue;if(Ue=yW(Be,c,l),m)Ue=bW(Ue,m,c);else{const lt=sx(K,Ue);Ue=K[lt]}Ue=Ra(Ue,c,l);let We=0;if(j){ge?We=Y.current:We=sx(W,Ue),i&&(Ue=Ra(Ue,W[We-1]||-1/0,W[We+1]||1/0));const lt=Ue;Ue=lx({values:W,newValue:Ue,index:We}),i&&ge||(We=Ue.indexOf(lt),Y.current=We)}return{newValue:Ue,activeIndex:We}},Q=Ae(fe=>{const ge=Ru(fe,x);if(!ge)return;if(E.current+=1,fe.type==="mousemove"&&fe.buttons===0){Z(fe);return}const{newValue:De,activeIndex:Me}=X({finger:ge,move:!0});Mu({sliderRef:R,activeIndex:Me,setActive:S}),$(De),!P&&E.current>mW&&k(!0),M&&!Iu(De,T)&&M(fe,De,Me)}),Z=Ae(fe=>{const ge=Ru(fe,x);if(k(!1),!ge)return;const{newValue:De}=X({finger:ge,move:!0});S(-1),fe.type==="touchend"&&C(-1),f&&f(fe,_.current??De),x.current=void 0,ue()}),ce=Ae(fe=>{if(r)return;cx()||fe.preventDefault();const ge=fe.changedTouches[0];ge!=null&&(x.current=ge.identifier);const De=Ru(fe,x);if(De!==!1){const{newValue:Ie,activeIndex:he}=X({finger:De});Mu({sliderRef:R,activeIndex:he,setActive:S}),$(Ie),M&&!Iu(Ie,T)&&M(fe,Ie,he)}E.current=0;const Me=pn(R.current);Me.addEventListener("touchmove",Q,{passive:!0}),Me.addEventListener("touchend",Z,{passive:!0})}),ue=I.useCallback(()=>{const fe=pn(R.current);fe.removeEventListener("mousemove",Q),fe.removeEventListener("mouseup",Z),fe.removeEventListener("touchmove",Q),fe.removeEventListener("touchend",Z)},[Z,Q]);I.useEffect(()=>{const{current:fe}=R;return fe.addEventListener("touchstart",ce,{passive:cx()}),()=>{fe.removeEventListener("touchstart",ce),ue()}},[ue,ce]),I.useEffect(()=>{r&&ue()},[r,ue]);const ye=fe=>ge=>{var Ie;if((Ie=fe.onMouseDown)==null||Ie.call(fe,ge),r||ge.defaultPrevented||ge.button!==0)return;ge.preventDefault();const De=Ru(ge,x);if(De!==!1){const{newValue:he,activeIndex:me}=X({finger:De});Mu({sliderRef:R,activeIndex:me,setActive:S}),$(he),M&&!Iu(he,T)&&M(ge,he,me)}E.current=0;const Me=pn(R.current);Me.addEventListener("mousemove",Q,{passive:!0}),Me.addEventListener("mouseup",Z)},de=Vd(j?W[0]:c,c,l),pe=Vd(W[W.length-1],c,l)-de,J=(fe={})=>{const ge=Al(fe),De={onMouseDown:ye(ge||{})},Me={...ge,...De};return{...fe,ref:V,...Me}},oe=fe=>ge=>{var Me;(Me=fe.onMouseOver)==null||Me.call(fe,ge);const De=Number(ge.currentTarget.getAttribute("data-index"));C(De)},te=fe=>ge=>{var De;(De=fe.onMouseLeave)==null||De.call(fe,ge),C(-1)},le=(fe={})=>{const ge=Al(fe),De={onMouseOver:oe(ge||{}),onMouseLeave:te(ge||{})};return{...fe,...ge,...De}},re=fe=>({pointerEvents:w!==-1&&w!==fe?"none":void 0});let Ee;return h==="vertical"&&(Ee=a?"vertical-rl":"vertical-lr"),{active:w,axis:G,axisProps:vW,dragging:P,focusedThumbIndex:H,getHiddenInputProps:(fe={})=>{const ge=Al(fe),De={onChange:q(ge||{}),onFocus:z(ge||{}),onBlur:L(ge||{}),onKeyDown:N(ge||{})},Me={...ge,...De};return{tabIndex:g,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":b(l),"aria-valuemin":b(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...fe,...Me,style:{...tP,direction:a?"rtl":"ltr",width:"100%",height:"100%",writingMode:Ee}}},getRootProps:J,getThumbProps:le,marks:U,open:O,range:j,rootRef:V,trackLeap:pe,trackOffset:de,values:W,getThumbStyle:re}}const SW=e=>!e||!_o(e);function TW(e){return ke("MuiSlider",e)}const Vr=$e("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"]),OW=e=>{const{open:t}=e;return{offset:we(t&&Vr.valueLabelOpen),circle:Vr.valueLabelCircle,label:Vr.valueLabelLabel}};function iP(e){const{children:t,className:n,value:r}=e,i=OW(e);return t?I.cloneElement(t,{className:t.props.className},D.jsxs(I.Fragment,{children:[t.props.children,D.jsx("span",{className:we(i.offset,n),"aria-hidden":!0,children:D.jsx("span",{className:i.circle,children:D.jsx("span",{className:i.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(iP.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function ux(e){return e}const EW=ne("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ve(n.color)}`],n.size!=="medium"&&t[`size${ve(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(ze(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Vr.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Vr.dragging}`]:{[`& .${Vr.thumb}, & .${Vr.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(fn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),CW=ne("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),PW=ne("span",{name:"MuiSlider",slot:"Track"})(ze(({theme:e})=>({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}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(fn()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),_W=ne("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ve(n.color)}`],n.size!=="medium"&&t[`thumbSize${ve(n.size)}`]]}})(ze(({theme:e})=>({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}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Vr.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(fn()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Vr.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Vr.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),aP=ne(iP,{name:"MuiSlider",slot:"ValueLabel"})(ze(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),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",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",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%"},[`&.${Vr.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"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%"},[`&.${Vr.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(aP.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const kW=ne("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>jf(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(ze(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),DW=ne("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>jf(e)&&e!=="markLabelActive"})(ze(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),$W=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:s,color:l,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${ve(l)}`,c&&`size${ve(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${ve(c)}`,l&&`thumbColor${ve(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return _e(u,TW,s)},RW=({children:e})=>e,sP=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiSlider"}),i=Xn(),{"aria-label":a,"aria-valuetext":s,"aria-labelledby":l,component:c="span",components:u={},componentsProps:d={},color:f="primary",classes:h,className:p,disableSwap:b=!1,disabled:m=!1,getAriaLabel:y,getAriaValueText:g,marks:v=!1,max:x=100,min:w=0,name:S,onChange:O,onChangeCommitted:C,orientation:P="horizontal",shiftStep:k=10,size:E="medium",step:_=1,scale:T=ux,slotProps:$,slots:M,tabIndex:j,track:W="normal",value:U,valueLabelDisplay:K="off",valueLabelFormat:H=ux,...F}=r,R={...r,isRtl:i,max:x,min:w,classes:h,disabled:m,disableSwap:b,orientation:P,marks:v,color:f,size:E,step:_,shiftStep:k,scale:T,track:W,valueLabelDisplay:K,valueLabelFormat:H},{axisProps:V,getRootProps:z,getHiddenInputProps:L,getThumbProps:A,open:N,active:q,axis:Y,focusedThumbIndex:G,range:X,dragging:Q,marks:Z,values:ce,trackOffset:ue,trackLeap:ye,getThumbStyle:de}=xW({...R,rootRef:n});R.marked=Z.length>0&&Z.some(Oe=>Oe.label),R.dragging=Q,R.focusedThumbIndex=G;const pe=$W(R),J=(M==null?void 0:M.root)??u.Root??EW,oe=(M==null?void 0:M.rail)??u.Rail??CW,te=(M==null?void 0:M.track)??u.Track??PW,le=(M==null?void 0:M.thumb)??u.Thumb??_W,re=(M==null?void 0:M.valueLabel)??u.ValueLabel??aP,Ee=(M==null?void 0:M.mark)??u.Mark??kW,Pe=(M==null?void 0:M.markLabel)??u.MarkLabel??DW,fe=(M==null?void 0:M.input)??u.Input??"input",ge=($==null?void 0:$.root)??d.root,De=($==null?void 0:$.rail)??d.rail,Me=($==null?void 0:$.track)??d.track,Ie=($==null?void 0:$.thumb)??d.thumb,he=($==null?void 0:$.valueLabel)??d.valueLabel,me=($==null?void 0:$.mark)??d.mark,Be=($==null?void 0:$.markLabel)??d.markLabel,Ue=($==null?void 0:$.input)??d.input,We=dt({elementType:J,getSlotProps:z,externalSlotProps:ge,externalForwardedProps:F,additionalProps:{...SW(J)&&{as:c}},ownerState:{...R,...ge==null?void 0:ge.ownerState},className:[pe.root,p]}),lt=dt({elementType:oe,externalSlotProps:De,ownerState:R,className:pe.rail}),kt=dt({elementType:te,externalSlotProps:Me,additionalProps:{style:{...V[Y].offset(ue),...V[Y].leap(ye)}},ownerState:{...R,...Me==null?void 0:Me.ownerState},className:pe.track}),et=dt({elementType:le,getSlotProps:A,externalSlotProps:Ie,ownerState:{...R,...Ie==null?void 0:Ie.ownerState},className:pe.thumb}),ht=dt({elementType:re,externalSlotProps:he,ownerState:{...R,...he==null?void 0:he.ownerState},className:pe.valueLabel}),Tt=dt({elementType:Ee,externalSlotProps:me,ownerState:R,className:pe.mark}),ie=dt({elementType:Pe,externalSlotProps:Be,ownerState:R,className:pe.markLabel}),Ce=dt({elementType:fe,getSlotProps:L,externalSlotProps:Ue,ownerState:R});return D.jsxs(J,{...We,children:[D.jsx(oe,{...lt}),D.jsx(te,{...kt}),Z.filter(Oe=>Oe.value>=w&&Oe.value<=x).map((Oe,Le)=>{const Se=Vd(Oe.value,w,x),Ye=V[Y].offset(Se);let nt;return W===!1?nt=ce.includes(Oe.value):nt=W==="normal"&&(X?Oe.value>=ce[0]&&Oe.value<=ce[ce.length-1]:Oe.value<=ce[0])||W==="inverted"&&(X?Oe.value<=ce[0]||Oe.value>=ce[ce.length-1]:Oe.value>=ce[0]),D.jsxs(I.Fragment,{children:[D.jsx(Ee,{"data-index":Le,...Tt,...!_o(Ee)&&{markActive:nt},style:{...Ye,...Tt.style},className:we(Tt.className,nt&&pe.markActive)}),Oe.label!=null?D.jsx(Pe,{"aria-hidden":!0,"data-index":Le,...ie,...!_o(Pe)&&{markLabelActive:nt},style:{...Ye,...ie.style},className:we(pe.markLabel,ie.className,nt&&pe.markLabelActive),children:Oe.label}):null]},Le)}),ce.map((Oe,Le)=>{const Se=Vd(Oe,w,x),Ye=V[Y].offset(Se),nt=K==="off"?RW:re;return D.jsx(nt,{...!_o(nt)&&{valueLabelFormat:H,valueLabelDisplay:K,value:typeof H=="function"?H(T(Oe),Le):H,index:Le,open:N===Le||q===Le||K==="on",disabled:m},...ht,children:D.jsx(le,{"data-index":Le,...et,className:we(pe.thumb,et.className,q===Le&&pe.active,G===Le&&pe.focusVisible),style:{...Ye,...de(Le),...et.style},children:D.jsx(fe,{"data-index":Le,"aria-label":y?y(Le):a,"aria-valuenow":T(Oe),"aria-labelledby":l,"aria-valuetext":g?g(T(Oe),Le):s,value:ce[Le],...Ce})})},Le)})]})});process.env.NODE_ENV!=="production"&&(sP.propTypes={"aria-label":er(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":o.string,"aria-valuetext":er(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Mark:o.elementType,MarkLabel:o.elementType,Rail:o.elementType,Root:o.elementType,Thumb:o.elementType,Track:o.elementType,ValueLabel:o.elementType}),componentsProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),defaultValue:o.oneOfType([o.arrayOf(o.number),o.number]),disabled:o.bool,disableSwap:o.bool,getAriaLabel:o.func,getAriaValueText:o.func,marks:o.oneOfType([o.arrayOf(o.shape({label:o.node,value:o.number.isRequired})),o.bool]),max:o.number,min:o.number,name:o.string,onChange:o.func,onChangeCommitted:o.func,orientation:o.oneOf(["horizontal","vertical"]),scale:o.func,shiftStep:o.number,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),slots:o.shape({input:o.elementType,mark:o.elementType,markLabel:o.elementType,rail:o.elementType,root:o.elementType,thumb:o.elementType,track:o.elementType,valueLabel:o.elementType}),step:o.number,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,track:o.oneOf(["inverted","normal",!1]),value:o.oneOfType([o.arrayOf(o.number),o.number]),valueLabelDisplay:o.oneOf(["auto","off","on"]),valueLabelFormat:o.oneOfType([o.func,o.string])});function MW(e){return ke("MuiTooltip",e)}const yn=$e("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function IW(e){return Math.round(e*1e5)/1e5}const NW=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ve(a.split("-")[0])}`],arrow:["arrow"]};return _e(s,MW,t)},AW=ne($s,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(ze(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${yn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${yn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${yn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${yn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${yn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${yn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${yn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${yn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),jW=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ve(n.placement.split("-")[0])}`]]}})(ze(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${yn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${yn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${yn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${yn.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${IW(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${yn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${yn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${yn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${yn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${yn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${yn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${yn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${yn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${yn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${yn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),LW=ne("span",{name:"MuiTooltip",slot:"Arrow"})(ze(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Au=!1;const dx=new Xf;let ul={x:0,y:0};function ju(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const cr=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:a,classes:s,components:l={},componentsProps:c={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:p=!1,enterDelay:b=100,enterNextDelay:m=0,enterTouchDelay:y=700,followCursor:g=!1,id:v,leaveDelay:x=0,leaveTouchDelay:w=1500,onClose:S,onOpen:O,open:C,placement:P="bottom",PopperComponent:k,PopperProps:E={},slotProps:_={},slots:T={},title:$,TransitionComponent:M,TransitionProps:j,...W}=r,U=I.isValidElement(a)?a:D.jsx("span",{children:a}),K=uo(),H=Xn(),[F,R]=I.useState(),[V,z]=I.useState(null),L=I.useRef(!1),A=h||g,N=wr(),q=wr(),Y=wr(),G=wr(),[X,Q]=Gn({controlled:C,default:!1,name:"Tooltip",state:"open"});let Z=X;if(process.env.NODE_ENV!=="production"){const{current:Ve}=I.useRef(C!==void 0);I.useEffect(()=>{F&&F.disabled&&!Ve&&$!==""&&F.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
`))},[$,F,Ve])}const ce=Pr(v),ue=I.useRef(),ye=Ae(()=>{ue.current!==void 0&&(document.body.style.WebkitUserSelect=ue.current,ue.current=void 0),G.clear()});I.useEffect(()=>ye,[ye]);const de=Ve=>{dx.clear(),Au=!0,Q(!0),O&&!Z&&O(Ve)},pe=Ae(Ve=>{dx.start(800+x,()=>{Au=!1}),Q(!1),S&&Z&&S(Ve),N.start(K.transitions.duration.shortest,()=>{L.current=!1})}),J=Ve=>{L.current&&Ve.type!=="touchstart"||(F&&F.removeAttribute("title"),q.clear(),Y.clear(),b||Au&&m?q.start(Au?m:b,()=>{de(Ve)}):de(Ve))},oe=Ve=>{q.clear(),Y.start(x,()=>{pe(Ve)})},[,te]=I.useState(!1),le=Ve=>{cs(Ve.target)||(te(!1),oe(Ve))},re=Ve=>{F||R(Ve.currentTarget),cs(Ve.target)&&(te(!0),J(Ve))},Ee=Ve=>{L.current=!0;const Dt=U.props;Dt.onTouchStart&&Dt.onTouchStart(Ve)},Pe=Ve=>{Ee(Ve),Y.clear(),N.clear(),ye(),ue.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(y,()=>{document.body.style.WebkitUserSelect=ue.current,J(Ve)})},fe=Ve=>{U.props.onTouchEnd&&U.props.onTouchEnd(Ve),ye(),Y.start(w,()=>{pe(Ve)})};I.useEffect(()=>{if(!Z)return;function Ve(Dt){Dt.key==="Escape"&&pe(Dt)}return document.addEventListener("keydown",Ve),()=>{document.removeEventListener("keydown",Ve)}},[pe,Z]);const ge=Et(Ds(U),R,n);!$&&$!==0&&(Z=!1);const De=I.useRef(),Me=Ve=>{const Dt=U.props;Dt.onMouseMove&&Dt.onMouseMove(Ve),ul={x:Ve.clientX,y:Ve.clientY},De.current&&De.current.update()},Ie={},he=typeof $=="string";u?(Ie.title=!Z&&he&&!f?$:null,Ie["aria-describedby"]=Z?ce:null):(Ie["aria-label"]=he?$:null,Ie["aria-labelledby"]=Z&&!he?ce:null);const me={...Ie,...W,...U.props,className:we(W.className,U.props.className),onTouchStart:Ee,ref:ge,...g?{onMouseMove:Me}:{}};process.env.NODE_ENV!=="production"&&(me["data-mui-internal-clone-element"]=!0,I.useEffect(()=>{F&&!F.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
`))},[F]));const Be={};p||(me.onTouchStart=Pe,me.onTouchEnd=fe),f||(me.onMouseOver=ju(J,me.onMouseOver),me.onMouseLeave=ju(oe,me.onMouseLeave),A||(Be.onMouseOver=J,Be.onMouseLeave=oe)),d||(me.onFocus=ju(re,me.onFocus),me.onBlur=ju(le,me.onBlur),A||(Be.onFocus=re,Be.onBlur=le)),process.env.NODE_ENV!=="production"&&U.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${U.props.title}\` or the Tooltip component.`].join(`
`));const Ue={...r,isRtl:H,arrow:i,disableInteractive:A,placement:P,PopperComponentProp:k,touch:L.current},We=typeof _.popper=="function"?_.popper(Ue):_.popper,lt=I.useMemo(()=>{var Dt,Fe;let Ve=[{name:"arrow",enabled:!!V,options:{element:V,padding:4}}];return(Dt=E.popperOptions)!=null&&Dt.modifiers&&(Ve=Ve.concat(E.popperOptions.modifiers)),(Fe=We==null?void 0:We.popperOptions)!=null&&Fe.modifiers&&(Ve=Ve.concat(We.popperOptions.modifiers)),{...E.popperOptions,...We==null?void 0:We.popperOptions,modifiers:Ve}},[V,E.popperOptions,We==null?void 0:We.popperOptions]),kt=NW(Ue),et=typeof _.transition=="function"?_.transition(Ue):_.transition,ht={slots:{popper:l.Popper,transition:l.Transition??M,tooltip:l.Tooltip,arrow:l.Arrow,...T},slotProps:{arrow:_.arrow??c.arrow,popper:{...E,...We??c.popper},tooltip:_.tooltip??c.tooltip,transition:{...j,...et??c.transition}}},[Tt,ie]=Ke("popper",{elementType:AW,externalForwardedProps:ht,ownerState:Ue,className:we(kt.popper,E==null?void 0:E.className)}),[Ce,Oe]=Ke("transition",{elementType:hs,externalForwardedProps:ht,ownerState:Ue}),[Le,Se]=Ke("tooltip",{elementType:jW,className:kt.tooltip,externalForwardedProps:ht,ownerState:Ue}),[Ye,nt]=Ke("arrow",{elementType:LW,className:kt.arrow,externalForwardedProps:ht,ownerState:Ue,ref:z});return D.jsxs(I.Fragment,{children:[I.cloneElement(U,me),D.jsx(Tt,{as:k??$s,placement:P,anchorEl:g?{getBoundingClientRect:()=>({top:ul.y,left:ul.x,right:ul.x,bottom:ul.y,width:0,height:0})}:F,popperRef:De,open:F?Z:!1,id:ce,transition:!0,...Be,...ie,popperOptions:lt,children:({TransitionProps:Ve})=>D.jsx(Ce,{timeout:K.transitions.duration.shorter,...Ve,...Oe,children:D.jsxs(Le,{...Se,children:[$,i?D.jsx(Ye,{...nt}):null]})})})]})});process.env.NODE_ENV!=="production"&&(cr.propTypes={arrow:o.bool,children:Rs.isRequired,classes:o.object,className:o.string,components:o.shape({Arrow:o.elementType,Popper:o.elementType,Tooltip:o.elementType,Transition:o.elementType}),componentsProps:o.shape({arrow:o.object,popper:o.object,tooltip:o.object,transition:o.object}),describeChild:o.bool,disableFocusListener:o.bool,disableHoverListener:o.bool,disableInteractive:o.bool,disableTouchListener:o.bool,enterDelay:o.number,enterNextDelay:o.number,enterTouchDelay:o.number,followCursor:o.bool,id:o.string,leaveDelay:o.number,leaveTouchDelay:o.number,onClose:o.func,onOpen:o.func,open:o.bool,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:o.elementType,PopperProps:o.object,slotProps:o.shape({arrow:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),tooltip:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({arrow:o.elementType,popper:o.elementType,tooltip:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,TransitionComponent:o.elementType,TransitionProps:o.object});const Fg=QA({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>qe({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(Fg.propTypes={children:o.node,component:o.elementType,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),divider:o.node,spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),useFlexGap:o.bool});const Is=I.createContext({});process.env.NODE_ENV!=="production"&&(Is.displayName="StepperContext");const Wc=I.createContext({});process.env.NODE_ENV!=="production"&&(Wc.displayName="StepContext");function FW(e){return ke("MuiStep",e)}$e("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const BW=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:i}=e;return _e({root:["root",n,r&&"alternativeLabel",i&&"completed"]},FW,t)},VW=ne("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),lP=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiStep"}),{active:i,children:a,className:s,component:l="div",completed:c,disabled:u,expanded:d=!1,index:f,last:h,...p}=r,{activeStep:b,connector:m,alternativeLabel:y,orientation:g,nonLinear:v}=I.useContext(Is);let[x=!1,w=!1,S=!1]=[i,c,u];b===f?x=i!==void 0?i:!0:!v&&b>f?w=c!==void 0?c:!0:!v&&b<f&&(S=u!==void 0?u:!0);const O=I.useMemo(()=>({index:f,last:h,expanded:d,icon:f+1,active:x,completed:w,disabled:S}),[f,h,d,x,w,S]),C={...r,active:x,orientation:g,alternativeLabel:y,completed:w,disabled:S,expanded:d,component:l},P=BW(C),k=D.jsxs(VW,{as:l,className:we(P.root,s),ref:n,ownerState:C,...p,children:[m&&y&&f!==0?m:null,a]});return D.jsx(Wc.Provider,{value:O,children:m&&!y&&f!==0?D.jsxs(I.Fragment,{children:[m,k]}):k})});process.env.NODE_ENV!=="production"&&(lP.propTypes={active:o.bool,children:o.node,classes:o.object,className:o.string,completed:o.bool,component:o.elementType,disabled:o.bool,expanded:o.bool,index:Ic,last:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const zW=ot(D.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),WW=ot(D.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function UW(e){return ke("MuiStepIcon",e)}const Lh=$e("MuiStepIcon",["root","active","completed","error","text"]);var fx;const qW=e=>{const{classes:t,active:n,completed:r,error:i}=e;return _e({root:["root",n&&"active",r&&"completed",i&&"error"],text:["text"]},UW,t)},Fh=ne(ac,{name:"MuiStepIcon",slot:"Root"})(ze(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Lh.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${Lh.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Lh.error}`]:{color:(e.vars||e).palette.error.main}}))),HW=ne("text",{name:"MuiStepIcon",slot:"Text"})(ze(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),cP=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiStepIcon"}),{active:i=!1,className:a,completed:s=!1,error:l=!1,icon:c,...u}=r,d={...r,active:i,completed:s,error:l},f=qW(d);if(typeof c=="number"||typeof c=="string"){const h=we(a,f.root);return l?D.jsx(Fh,{as:WW,className:h,ref:n,ownerState:d,...u}):s?D.jsx(Fh,{as:zW,className:h,ref:n,ownerState:d,...u}):D.jsxs(Fh,{className:h,ref:n,ownerState:d,...u,children:[fx||(fx=D.jsx("circle",{cx:"12",cy:"12",r:"12"})),D.jsx(HW,{className:f.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:c})]})}return c});process.env.NODE_ENV!=="production"&&(cP.propTypes={active:o.bool,classes:o.object,className:o.string,completed:o.bool,error:o.bool,icon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function YW(e){return ke("MuiStepLabel",e)}const fi=$e("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),GW=e=>{const{classes:t,orientation:n,active:r,completed:i,error:a,disabled:s,alternativeLabel:l}=e;return _e({root:["root",n,a&&"error",s&&"disabled",l&&"alternativeLabel"],label:["label",r&&"active",i&&"completed",a&&"error",s&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",i&&"completed",a&&"error",s&&"disabled",l&&"alternativeLabel"],labelContainer:["labelContainer",l&&"alternativeLabel"]},YW,t)},KW=ne("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:"flex",alignItems:"center",[`&.${fi.alternativeLabel}`]:{flexDirection:"column"},[`&.${fi.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),XW=ne("span",{name:"MuiStepLabel",slot:"Label"})(ze(({theme:e})=>({...e.typography.body2,display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${fi.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${fi.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${fi.alternativeLabel}`]:{marginTop:16},[`&.${fi.error}`]:{color:(e.vars||e).palette.error.main}}))),ZW=ne("span",{name:"MuiStepLabel",slot:"IconContainer"})({flexShrink:0,display:"flex",paddingRight:8,[`&.${fi.alternativeLabel}`]:{paddingRight:0}}),QW=ne("span",{name:"MuiStepLabel",slot:"LabelContainer"})(ze(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${fi.alternativeLabel}`]:{textAlign:"center"}}))),Bg=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiStepLabel"}),{children:i,className:a,componentsProps:s={},error:l=!1,icon:c,optional:u,slots:d={},slotProps:f={},StepIconComponent:h,StepIconProps:p,...b}=r,{alternativeLabel:m,orientation:y}=I.useContext(Is),{active:g,disabled:v,completed:x,icon:w}=I.useContext(Wc),S=c||w;let O=h;S&&!O&&(O=cP);const C={...r,active:g,alternativeLabel:m,completed:x,disabled:v,error:l,orientation:y},P=GW(C),k={slots:d,slotProps:{stepIcon:p,...s,...f}},[E,_]=Ke("root",{elementType:KW,externalForwardedProps:{...k,...b},ownerState:C,ref:n,className:we(P.root,a)}),[T,$]=Ke("label",{elementType:XW,externalForwardedProps:k,ownerState:C}),[M,j]=Ke("stepIcon",{elementType:O,externalForwardedProps:k,ownerState:C});return D.jsxs(E,{..._,children:[S||M?D.jsx(ZW,{className:P.iconContainer,ownerState:C,children:D.jsx(M,{completed:x,active:g,error:l,icon:S,...j})}):null,D.jsxs(QW,{className:P.labelContainer,ownerState:C,children:[i?D.jsx(T,{...$,className:we(P.label,$==null?void 0:$.className),children:i}):null,u]})]})});process.env.NODE_ENV!=="production"&&(Bg.propTypes={children:o.node,classes:o.object,className:o.string,componentsProps:o.shape({label:o.object}),error:o.bool,icon:o.node,optional:o.node,slotProps:o.shape({label:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),stepIcon:o.oneOfType([o.func,o.object])}),slots:o.shape({label:o.elementType,root:o.elementType,stepIcon:o.elementType}),StepIconComponent:o.elementType,StepIconProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});Bg.muiName="StepLabel";function JW(e){return ke("MuiStepButton",e)}const px=$e("MuiStepButton",["root","horizontal","vertical","touchRipple"]),eU=e=>{const{classes:t,orientation:n}=e;return _e({root:["root",n],touchRipple:["touchRipple"]},JW,t)},tU=ne(Or,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${px.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box",[`& .${px.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"},variants:[{props:{orientation:"vertical"},style:{justifyContent:"flex-start",padding:"8px",margin:"-8px"}}]}),uP=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiStepButton"}),{children:i,className:a,icon:s,optional:l,...c}=r,{disabled:u,active:d}=I.useContext(Wc),{orientation:f}=I.useContext(Is),h={...r,orientation:f},p=eU(h),b={icon:s,optional:l},m=Ui(i,["StepLabel"])?I.cloneElement(i,b):D.jsx(Bg,{...b,children:i});return D.jsx(tU,{focusRipple:!0,disabled:u,TouchRippleProps:{className:p.touchRipple},className:we(p.root,a),ref:n,ownerState:h,"aria-current":d?"step":void 0,...c,children:m})});process.env.NODE_ENV!=="production"&&(uP.propTypes={children:o.node,classes:o.object,className:o.string,icon:o.node,optional:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function nU(e){return ke("MuiStepConnector",e)}$e("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const rU=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:i,completed:a,disabled:s}=e,l={root:["root",n,r&&"alternativeLabel",i&&"active",a&&"completed",s&&"disabled"],line:["line",`line${ve(n)}`]};return _e(l,nU,t)},oU=ne("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),iU=ne("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${ve(n.orientation)}`]]}})(ze(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),dP=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiStepConnector"}),{className:i,...a}=r,{alternativeLabel:s,orientation:l="horizontal"}=I.useContext(Is),{active:c,disabled:u,completed:d}=I.useContext(Wc),f={...r,alternativeLabel:s,orientation:l,active:c,completed:d,disabled:u},h=rU(f);return D.jsx(oU,{className:we(h.root,i),ref:n,ownerState:f,...a,children:D.jsx(iU,{className:h.line,ownerState:f})})});process.env.NODE_ENV!=="production"&&(dP.propTypes={classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function aU(e){return ke("MuiStepper",e)}$e("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const sU=e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:i}=e;return _e({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},aU,i)},lU=ne("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),cU=D.jsx(dP,{}),fP=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiStepper"}),{activeStep:i=0,alternativeLabel:a=!1,children:s,className:l,component:c="div",connector:u=cU,nonLinear:d=!1,orientation:f="horizontal",...h}=r,p={...r,nonLinear:d,alternativeLabel:a,orientation:f,component:c},b=sU(p),m=I.Children.toArray(s).filter(Boolean),y=m.map((v,x)=>I.cloneElement(v,{index:x,last:x+1===m.length,...v.props})),g=I.useMemo(()=>({activeStep:i,alternativeLabel:a,connector:u,nonLinear:d,orientation:f}),[i,a,u,d,f]);return D.jsx(Is.Provider,{value:g,children:D.jsx(lU,{as:c,ownerState:p,className:we(b.root,l),ref:n,...h,children:y})})});process.env.NODE_ENV!=="production"&&(fP.propTypes={activeStep:Ic,alternativeLabel:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,connector:o.element,nonLinear:o.bool,orientation:o.oneOf(["horizontal","vertical"]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function uU(e){return ke("MuiSwitch",e)}const Zn=$e("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),dU=e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,l={root:["root",n&&`edge${ve(n)}`,`size${ve(r)}`],switchBase:["switchBase",`color${ve(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=_e(l,uU,t);return{...t,...c}},fU=ne("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ve(n.edge)}`],t[`size${ve(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Zn.thumb}`]:{width:16,height:16},[`& .${Zn.switchBase}`]:{padding:4,[`&.${Zn.checked}`]:{transform:"translateX(16px)"}}}}]}),pU=ne(op,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Zn.input}`]:t.input},n.color!=="default"&&t[`color${ve(n.color)}`]]}})(ze(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Zn.checked}`]:{transform:"translateX(20px)"},[`&.${Zn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Zn.checked} + .${Zn.track}`]:{opacity:.5},[`&.${Zn.disabled} + .${Zn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Zn.input}`]:{left:"-100%",width:"300%"}})),ze(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(fn(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Zn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${Zn.checked} + .${Zn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),hU=ne("span",{name:"MuiSwitch",slot:"Track"})(ze(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),mU=ne("span",{name:"MuiSwitch",slot:"Thumb"})(ze(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),pP=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:s=!1,size:l="medium",sx:c,slots:u={},slotProps:d={},...f}=r,h={...r,color:a,edge:s,size:l},p=dU(h),b={slots:u,slotProps:d},[m,y]=Ke("root",{className:we(p.root,i),elementType:fU,externalForwardedProps:b,ownerState:h,additionalProps:{sx:c}}),[g,v]=Ke("thumb",{className:p.thumb,elementType:mU,externalForwardedProps:b,ownerState:h}),x=D.jsx(g,{...v}),[w,S]=Ke("track",{className:p.track,elementType:hU,externalForwardedProps:b,ownerState:h});return D.jsxs(m,{...y,children:[D.jsx(pU,{type:"checkbox",icon:x,checkedIcon:x,ref:n,ownerState:h,...f,classes:{...p,root:p.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...d.switchBase&&{root:typeof d.switchBase=="function"?d.switchBase(h):d.switchBase},input:{role:"switch"},...d.input&&{input:typeof d.input=="function"?d.input(h):d.input}}}),D.jsx(w,{...S})]})});process.env.NODE_ENV!=="production"&&(pP.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node,id:o.string,inputProps:o.object,inputRef:Nt,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),switchBase:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType,switchBase:o.elementType,thumb:o.elementType,track:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function yU(e){return ke("MuiTab",e)}const Ir=$e("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),gU=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:s,selected:l,disabled:c}=e,u={root:["root",a&&s&&"labelIcon",`textColor${ve(n)}`,r&&"fullWidth",i&&"wrapped",l&&"selected",c&&"disabled"],icon:["iconWrapper","icon"]};return _e(u,yU,t)},bU=ne(Or,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ve(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Ir.iconWrapper}`]:t.iconWrapper},{[`& .${Ir.icon}`]:t.icon}]}})(ze(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Ir.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Ir.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Ir.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Ir.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Ir.selected}`]:{opacity:1},[`&.${Ir.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Ir.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ir.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Ir.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ir.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),ys=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:l,icon:c,iconPosition:u="top",indicator:d,label:f,onChange:h,onClick:p,onFocus:b,selected:m,selectionFollowsFocus:y,textColor:g="inherit",value:v,wrapped:x=!1,...w}=r,S={...r,disabled:a,disableFocusRipple:s,selected:m,icon:!!c,iconPosition:u,label:!!f,fullWidth:l,textColor:g,wrapped:x},O=gU(S),C=c&&f&&I.isValidElement(c)?I.cloneElement(c,{className:we(O.icon,c.props.className)}):c,P=E=>{!m&&h&&h(E,v),p&&p(E)},k=E=>{y&&!m&&h&&h(E,v),b&&b(E)};return D.jsxs(bU,{focusRipple:!s,className:we(O.root,i),ref:n,role:"tab","aria-selected":m,disabled:a,onClick:P,onFocus:k,ownerState:S,tabIndex:m?0:-1,...w,children:[u==="top"||u==="start"?D.jsxs(I.Fragment,{children:[C,f]}):D.jsxs(I.Fragment,{children:[f,C]}),d]})});process.env.NODE_ENV!=="production"&&(ys.propTypes={children:aC,classes:o.object,className:o.string,disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,icon:o.oneOfType([o.element,o.string]),iconPosition:o.oneOf(["bottom","end","start","top"]),label:o.node,onChange:o.func,onClick:o.func,onFocus:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any,wrapped:o.bool});const Vg=I.createContext();process.env.NODE_ENV!=="production"&&(Vg.displayName="TableContext");function vU(e){return ke("MuiTable",e)}$e("MuiTable",["root","stickyHeader"]);const wU=e=>{const{classes:t,stickyHeader:n}=e;return _e({root:["root",n&&"stickyHeader"]},vU,t)},xU=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(ze(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),hx="table",hP=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTable"}),{className:i,component:a=hx,padding:s="normal",size:l="medium",stickyHeader:c=!1,...u}=r,d={...r,component:a,padding:s,size:l,stickyHeader:c},f=wU(d),h=I.useMemo(()=>({padding:s,size:l,stickyHeader:c}),[s,l,c]);return D.jsx(Vg.Provider,{value:h,children:D.jsx(xU,{as:a,role:a===hx?null:"table",ref:n,className:we(f.root,i),ownerState:d,...u})})});process.env.NODE_ENV!=="production"&&(hP.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),stickyHeader:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Uc=I.createContext();process.env.NODE_ENV!=="production"&&(Uc.displayName="Tablelvl2Context");function SU(e){return ke("MuiTableBody",e)}$e("MuiTableBody",["root"]);const TU=e=>{const{classes:t}=e;return _e({root:["root"]},SU,t)},OU=ne("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),EU={variant:"body"},mx="tbody",mP=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTableBody"}),{className:i,component:a=mx,...s}=r,l={...r,component:a},c=TU(l);return D.jsx(Uc.Provider,{value:EU,children:D.jsx(OU,{className:we(c.root,i),as:a,ref:n,role:a===mx?null:"rowgroup",ownerState:l,...s})})});process.env.NODE_ENV!=="production"&&(mP.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function CU(e){return ke("MuiTableCell",e)}const PU=$e("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),_U=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${ve(r)}`,i!=="normal"&&`padding${ve(i)}`,`size${ve(a)}`]};return _e(l,CU,t)},kU=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ve(n.size)}`],n.padding!=="normal"&&t[`padding${ve(n.padding)}`],n.align!=="inherit"&&t[`align${ve(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(ze(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
    ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${PU.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),dp=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:l,scope:c,size:u,sortDirection:d,variant:f,...h}=r,p=I.useContext(Vg),b=I.useContext(Uc),m=b&&b.variant==="head";let y;s?y=s:y=m?"th":"td";let g=c;y==="td"?g=void 0:!g&&m&&(g="col");const v=f||b&&b.variant,x={...r,align:i,component:y,padding:l||(p&&p.padding?p.padding:"normal"),size:u||(p&&p.size?p.size:"medium"),sortDirection:d,stickyHeader:v==="head"&&p&&p.stickyHeader,variant:v},w=_U(x);let S=null;return d&&(S=d==="asc"?"ascending":"descending"),D.jsx(kU,{as:y,ref:n,className:we(w.root,a),"aria-sort":S,scope:g,ownerState:x,...h})});process.env.NODE_ENV!=="production"&&(dp.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),scope:o.string,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sortDirection:o.oneOf(["asc","desc",!1]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body","footer","head"]),o.string])});function DU(e){return ke("MuiTableHead",e)}$e("MuiTableHead",["root"]);const $U=e=>{const{classes:t}=e;return _e({root:["root"]},DU,t)},RU=ne("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),MU={variant:"head"},yx="thead",yP=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTableHead"}),{className:i,component:a=yx,...s}=r,l={...r,component:a},c=$U(l);return D.jsx(Uc.Provider,{value:MU,children:D.jsx(RU,{as:a,className:we(c.root,i),ref:n,role:a===yx?null:"rowgroup",ownerState:l,...s})})});process.env.NODE_ENV!=="production"&&(yP.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function IU(e){return ke("MuiToolbar",e)}$e("MuiToolbar",["root","gutters","regular","dense"]);const NU=e=>{const{classes:t,disableGutters:n,variant:r}=e;return _e({root:["root",!n&&"gutters",r]},IU,t)},AU=ne("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(ze(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),gP=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:s=!1,variant:l="regular",...c}=r,u={...r,component:a,disableGutters:s,variant:l},d=NU(u);return D.jsx(AU,{as:a,className:we(d.root,i),ref:n,ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(gP.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disableGutters:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["dense","regular"]),o.string])});const jU=ot(D.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),LU=ot(D.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function FU(e){return ke("MuiTableRow",e)}const gx=$e("MuiTableRow",["root","selected","hover","head","footer"]),BU=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return _e({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},FU,t)},VU=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(ze(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${gx.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${gx.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),bx="tr",qc=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTableRow"}),{className:i,component:a=bx,hover:s=!1,selected:l=!1,...c}=r,u=I.useContext(Uc),d={...r,component:a,hover:s,selected:l,head:u&&u.variant==="head",footer:u&&u.variant==="footer"},f=BU(d);return D.jsx(VU,{as:a,ref:n,className:we(f.root,i),role:a===bx?null:"row",ownerState:d,...c})});process.env.NODE_ENV!=="production"&&(qc.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,hover:o.bool,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function zU(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function WU(e,t,n,r={},i=()=>{}){const{ease:a=zU,duration:s=300}=r;let l=null;const c=t[e];let u=!1;const d=()=>{u=!0},f=h=>{if(u){i(new Error("Animation cancelled"));return}l===null&&(l=h);const p=Math.min(1,(h-l)/s);if(t[e]=a(p)*(n-c)+c,p>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return c===n?(i(new Error("Element already at target position")),d):(requestAnimationFrame(f),d)}const UU={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function bP(e){const{onChange:t,...n}=e,r=I.useRef(),i=I.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Jt(()=>{const s=Kf(()=>{const c=r.current;a(),c!==r.current&&t(r.current)}),l=so(i.current);return l.addEventListener("resize",s),()=>{s.clear(),l.removeEventListener("resize",s)}},[t]),I.useEffect(()=>{a(),t(r.current)},[t]),D.jsx("div",{style:UU,...n,ref:i})}process.env.NODE_ENV!=="production"&&(bP.propTypes={onChange:o.func.isRequired});function qU(e){return ke("MuiTabScrollButton",e)}const HU=$e("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),YU=e=>{const{classes:t,orientation:n,disabled:r}=e;return _e({root:["root",n,r&&"disabled"]},qU,t)},GU=ne(Or,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${HU.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),vP=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l,orientation:c,disabled:u,...d}=r,f=Xn(),h={isRtl:f,...r},p=YU(h),b=a.StartScrollButtonIcon??jU,m=a.EndScrollButtonIcon??LU,y=dt({elementType:b,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),g=dt({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return D.jsx(GU,{component:"div",className:we(p.root,i),ref:n,role:null,ownerState:h,tabIndex:null,...d,style:{...d.style,...c==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:l==="left"?D.jsx(b,{...y}):D.jsx(m,{...g})})});process.env.NODE_ENV!=="production"&&(vP.propTypes={children:o.node,classes:o.object,className:o.string,direction:o.oneOf(["left","right"]).isRequired,disabled:o.bool,orientation:o.oneOf(["horizontal","vertical"]).isRequired,slotProps:o.shape({endScrollButtonIcon:o.oneOfType([o.func,o.object]),startScrollButtonIcon:o.oneOfType([o.func,o.object])}),slots:o.shape({EndScrollButtonIcon:o.elementType,StartScrollButtonIcon:o.elementType}),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function KU(e){return ke("MuiTabs",e)}const rd=$e("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),vx=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,wx=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Lu=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=n(e,i);else{i.focus();return}}},XU=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:s,scrollButtonsHideMobile:l,classes:c}=e;return _e({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},KU,c)},ZU=ne("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rd.scrollButtons}`]:t.scrollButtons},{[`& .${rd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(ze(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${rd.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),QU=ne("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),JU=ne("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),eq=ne("span",{name:"MuiTabs",slot:"Indicator"})(ze(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),tq=ne(bP)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),xx={};let Sx=!1;const Hc=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTabs"}),i=uo(),a=Xn(),{"aria-label":s,"aria-labelledby":l,action:c,centered:u=!1,children:d,className:f,component:h="div",allowScrollButtonsMobile:p=!1,indicatorColor:b="primary",onChange:m,orientation:y="horizontal",ScrollButtonComponent:g,scrollButtons:v="auto",selectionFollowsFocus:x,slots:w={},slotProps:S={},TabIndicatorProps:O={},TabScrollButtonProps:C={},textColor:P="primary",value:k,variant:E="standard",visibleScrollbar:_=!1,...T}=r,$=E==="scrollable",M=y==="vertical",j=M?"scrollTop":"scrollLeft",W=M?"top":"left",U=M?"bottom":"right",K=M?"clientHeight":"clientWidth",H=M?"height":"width",F={...r,component:h,allowScrollButtonsMobile:p,indicatorColor:b,orientation:y,vertical:M,scrollButtons:v,textColor:P,variant:E,visibleScrollbar:_,fixed:!$,hideScrollbar:$&&!_,scrollableX:$&&!M,scrollableY:$&&M,centered:u&&!$,scrollButtonsHideMobile:!p},R=XU(F),V=dt({elementType:w.StartScrollButtonIcon,externalSlotProps:S.startScrollButtonIcon,ownerState:F}),z=dt({elementType:w.EndScrollButtonIcon,externalSlotProps:S.endScrollButtonIcon,ownerState:F});process.env.NODE_ENV!=="production"&&u&&$&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[L,A]=I.useState(!1),[N,q]=I.useState(xx),[Y,G]=I.useState(!1),[X,Q]=I.useState(!1),[Z,ce]=I.useState(!1),[ue,ye]=I.useState({overflow:"hidden",scrollbarWidth:0}),de=new Map,pe=I.useRef(null),J=I.useRef(null),oe={slots:w,slotProps:{indicator:O,scrollButton:C,...S}},te=()=>{const Fe=pe.current;let Ze;if(Fe){const gt=Fe.getBoundingClientRect();Ze={clientWidth:Fe.clientWidth,scrollLeft:Fe.scrollLeft,scrollTop:Fe.scrollTop,scrollWidth:Fe.scrollWidth,top:gt.top,bottom:gt.bottom,left:gt.left,right:gt.right}}let ut;if(Fe&&k!==!1){const gt=J.current.children;if(gt.length>0){const Lt=gt[de.get(k)];process.env.NODE_ENV!=="production"&&(Lt||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${k}".`,de.keys?`You can provide one of the following values: ${Array.from(de.keys()).join(", ")}.`:null].join(`
`))),ut=Lt?Lt.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!Sx&&ut&&ut.width===0&&ut.height===0&&Ze.clientWidth!==0&&(Ze=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${k}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
`)),Sx=!0)}}return{tabsMeta:Ze,tabMeta:ut}},le=Ae(()=>{const{tabsMeta:Fe,tabMeta:Ze}=te();let ut=0,gt;M?(gt="top",Ze&&Fe&&(ut=Ze.top-Fe.top+Fe.scrollTop)):(gt=a?"right":"left",Ze&&Fe&&(ut=(a?-1:1)*(Ze[gt]-Fe[gt]+Fe.scrollLeft)));const Lt={[gt]:ut,[H]:Ze?Ze[H]:0};if(typeof N[gt]!="number"||typeof N[H]!="number")q(Lt);else{const zn=Math.abs(N[gt]-Lt[gt]),yr=Math.abs(N[H]-Lt[H]);(zn>=1||yr>=1)&&q(Lt)}}),re=(Fe,{animation:Ze=!0}={})=>{Ze?WU(j,pe.current,Fe,{duration:i.transitions.duration.standard}):pe.current[j]=Fe},Ee=Fe=>{let Ze=pe.current[j];M?Ze+=Fe:Ze+=Fe*(a?-1:1),re(Ze)},Pe=()=>{const Fe=pe.current[K];let Ze=0;const ut=Array.from(J.current.children);for(let gt=0;gt<ut.length;gt+=1){const Lt=ut[gt];if(Ze+Lt[K]>Fe){gt===0&&(Ze=Fe);break}Ze+=Lt[K]}return Ze},fe=()=>{Ee(-1*Pe())},ge=()=>{Ee(Pe())},[De,{onChange:Me,...Ie}]=Ke("scrollbar",{className:we(R.scrollableX,R.hideScrollbar),elementType:tq,shouldForwardComponentProp:!0,externalForwardedProps:oe,ownerState:F}),he=I.useCallback(Fe=>{Me==null||Me(Fe),ye({overflow:null,scrollbarWidth:Fe})},[Me]),[me,Be]=Ke("scrollButtons",{className:we(R.scrollButtons,C.className),elementType:vP,externalForwardedProps:oe,ownerState:F,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:w.startScrollButtonIcon||w.StartScrollButtonIcon,EndScrollButtonIcon:w.endScrollButtonIcon||w.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:V,endScrollButtonIcon:z}}}),Ue=()=>{const Fe={};Fe.scrollbarSizeListener=$?D.jsx(De,{...Ie,onChange:he}):null;const ut=$&&(v==="auto"&&(Y||X)||v===!0);return Fe.scrollButtonStart=ut?D.jsx(me,{direction:a?"right":"left",onClick:fe,disabled:!Y,...Be}):null,Fe.scrollButtonEnd=ut?D.jsx(me,{direction:a?"left":"right",onClick:ge,disabled:!X,...Be}):null,Fe},We=Ae(Fe=>{const{tabsMeta:Ze,tabMeta:ut}=te();if(!(!ut||!Ze)){if(ut[W]<Ze[W]){const gt=Ze[j]+(ut[W]-Ze[W]);re(gt,{animation:Fe})}else if(ut[U]>Ze[U]){const gt=Ze[j]+(ut[U]-Ze[U]);re(gt,{animation:Fe})}}}),lt=Ae(()=>{$&&v!==!1&&ce(!Z)});I.useEffect(()=>{const Fe=Kf(()=>{pe.current&&le()});let Ze;const ut=zn=>{zn.forEach(yr=>{yr.removedNodes.forEach(Xr=>{Ze==null||Ze.unobserve(Xr)}),yr.addedNodes.forEach(Xr=>{Ze==null||Ze.observe(Xr)})}),Fe(),lt()},gt=so(pe.current);gt.addEventListener("resize",Fe);let Lt;return typeof ResizeObserver<"u"&&(Ze=new ResizeObserver(Fe),Array.from(J.current.children).forEach(zn=>{Ze.observe(zn)})),typeof MutationObserver<"u"&&(Lt=new MutationObserver(ut),Lt.observe(J.current,{childList:!0})),()=>{Fe.clear(),gt.removeEventListener("resize",Fe),Lt==null||Lt.disconnect(),Ze==null||Ze.disconnect()}},[le,lt]),I.useEffect(()=>{const Fe=Array.from(J.current.children),Ze=Fe.length;if(typeof IntersectionObserver<"u"&&Ze>0&&$&&v!==!1){const ut=Fe[0],gt=Fe[Ze-1],Lt={root:pe.current,threshold:.99},zn=Re=>{G(!Re[0].isIntersecting)},yr=new IntersectionObserver(zn,Lt);yr.observe(ut);const Xr=Re=>{Q(!Re[0].isIntersecting)},se=new IntersectionObserver(Xr,Lt);return se.observe(gt),()=>{yr.disconnect(),se.disconnect()}}},[$,v,Z,d==null?void 0:d.length]),I.useEffect(()=>{A(!0)},[]),I.useEffect(()=>{le()}),I.useEffect(()=>{We(xx!==N)},[We,N]),I.useImperativeHandle(c,()=>({updateIndicator:le,updateScrollButtons:lt}),[le,lt]);const[kt,et]=Ke("indicator",{className:we(R.indicator,O.className),elementType:eq,externalForwardedProps:oe,ownerState:F,additionalProps:{style:N}}),ht=D.jsx(kt,{...et});let Tt=0;const ie=I.Children.map(d,Fe=>{if(!I.isValidElement(Fe))return null;process.env.NODE_ENV!=="production"&&Ho.isFragment(Fe)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`));const Ze=Fe.props.value===void 0?Tt:Fe.props.value;de.set(Ze,Tt);const ut=Ze===k;return Tt+=1,I.cloneElement(Fe,{fullWidth:E==="fullWidth",indicator:ut&&!L&&ht,selected:ut,selectionFollowsFocus:x,onChange:m,textColor:P,value:Ze,...Tt===1&&k===!1&&!Fe.props.tabIndex?{tabIndex:0}:{}})}),Ce=Fe=>{if(Fe.altKey||Fe.shiftKey||Fe.ctrlKey||Fe.metaKey)return;const Ze=J.current,ut=pn(Ze).activeElement;if(ut.getAttribute("role")!=="tab")return;let Lt=y==="horizontal"?"ArrowLeft":"ArrowUp",zn=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(Lt="ArrowRight",zn="ArrowLeft"),Fe.key){case Lt:Fe.preventDefault(),Lu(Ze,ut,wx);break;case zn:Fe.preventDefault(),Lu(Ze,ut,vx);break;case"Home":Fe.preventDefault(),Lu(Ze,null,vx);break;case"End":Fe.preventDefault(),Lu(Ze,null,wx);break}},Oe=Ue(),[Le,Se]=Ke("root",{ref:n,className:we(R.root,f),elementType:ZU,externalForwardedProps:{...oe,...T,component:h},ownerState:F}),[Ye,nt]=Ke("scroller",{ref:pe,className:R.scroller,elementType:QU,externalForwardedProps:oe,ownerState:F,additionalProps:{style:{overflow:ue.overflow,[M?`margin${a?"Left":"Right"}`:"marginBottom"]:_?void 0:-ue.scrollbarWidth}}}),[Ve,Dt]=Ke("list",{ref:J,className:we(R.list,R.flexContainer),elementType:JU,externalForwardedProps:oe,ownerState:F,getSlotProps:Fe=>({...Fe,onKeyDown:Ze=>{var ut;Ce(Ze),(ut=Fe.onKeyDown)==null||ut.call(Fe,Ze)}})});return D.jsxs(Le,{...Se,children:[Oe.scrollButtonStart,Oe.scrollbarSizeListener,D.jsxs(Ye,{...nt,children:[D.jsx(Ve,{"aria-label":s,"aria-labelledby":l,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...Dt,children:ie}),L&&ht]}),Oe.scrollButtonEnd]})});process.env.NODE_ENV!=="production"&&(Hc.propTypes={action:Nt,allowScrollButtonsMobile:o.bool,"aria-label":o.string,"aria-labelledby":o.string,centered:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,indicatorColor:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),onChange:o.func,orientation:o.oneOf(["horizontal","vertical"]),ScrollButtonComponent:o.elementType,scrollButtons:o.oneOf(["auto",!1,!0]),selectionFollowsFocus:o.bool,slotProps:o.shape({endScrollButtonIcon:o.oneOfType([o.func,o.object]),indicator:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),scrollbar:o.oneOfType([o.func,o.object]),scrollButtons:o.oneOfType([o.func,o.object]),scroller:o.oneOfType([o.func,o.object]),startScrollButtonIcon:o.oneOfType([o.func,o.object])}),slots:o.shape({endScrollButtonIcon:o.elementType,EndScrollButtonIcon:o.elementType,indicator:o.elementType,list:o.elementType,root:o.elementType,scrollbar:o.elementType,scrollButtons:o.elementType,scroller:o.elementType,startScrollButtonIcon:o.elementType,StartScrollButtonIcon:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TabIndicatorProps:o.object,TabScrollButtonProps:o.object,textColor:o.oneOf(["inherit","primary","secondary"]),value:o.any,variant:o.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:o.bool});function nq(e){return ke("MuiTextField",e)}$e("MuiTextField",["root"]);const rq={standard:Fc,filled:Lc,outlined:Vc},oq=e=>{const{classes:t}=e;return _e({root:["root"]},nq,t)},iq=ne(Io,{name:"MuiTextField",slot:"Root"})({}),Do=I.forwardRef(function(t,n){const r=qe({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:s,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:h,fullWidth:p=!1,helperText:b,id:m,InputLabelProps:y,inputProps:g,InputProps:v,inputRef:x,label:w,maxRows:S,minRows:O,multiline:C=!1,name:P,onBlur:k,onChange:E,onFocus:_,placeholder:T,required:$=!1,rows:M,select:j=!1,SelectProps:W,slots:U={},slotProps:K={},type:H,value:F,variant:R="outlined",...V}=r,z={...r,autoFocus:a,color:c,disabled:d,error:f,fullWidth:p,multiline:C,required:$,select:j,variant:R},L=oq(z);process.env.NODE_ENV!=="production"&&j&&!s&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const A=Pr(m),N=b&&A?`${A}-helper-text`:void 0,q=w&&A?`${A}-label`:void 0,Y=rq[R],G={slots:U,slotProps:{input:v,inputLabel:y,htmlInput:g,formHelperText:h,select:W,...K}},X={},Q=G.slotProps.inputLabel;R==="outlined"&&(Q&&typeof Q.shrink<"u"&&(X.notched=Q.shrink),X.label=w),j&&((!W||!W.native)&&(X.id=void 0),X["aria-describedby"]=void 0);const[Z,ce]=Ke("root",{elementType:iq,shouldForwardComponentProp:!0,externalForwardedProps:{...G,...V},ownerState:z,className:we(L.root,l),ref:n,additionalProps:{disabled:d,error:f,fullWidth:p,required:$,color:c,variant:R}}),[ue,ye]=Ke("input",{elementType:Y,externalForwardedProps:G,additionalProps:X,ownerState:z}),[de,pe]=Ke("inputLabel",{elementType:Bc,externalForwardedProps:G,ownerState:z}),[J,oe]=Ke("htmlInput",{elementType:"input",externalForwardedProps:G,ownerState:z}),[te,le]=Ke("formHelperText",{elementType:cn,externalForwardedProps:G,ownerState:z}),[re,Ee]=Ke("select",{elementType:zc,externalForwardedProps:G,ownerState:z}),Pe=D.jsx(ue,{"aria-describedby":N,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:p,multiline:C,name:P,rows:M,maxRows:S,minRows:O,type:H,value:F,id:A,inputRef:x,onBlur:k,onChange:E,onFocus:_,placeholder:T,inputProps:oe,slots:{input:U.htmlInput?J:void 0},...ye});return D.jsxs(Z,{...ce,children:[w!=null&&w!==""&&D.jsx(de,{htmlFor:A,id:q,...pe,children:w}),j?D.jsx(re,{"aria-describedby":N,id:A,labelId:q,value:F,input:Pe,...Ee,children:s}):Pe,b&&D.jsx(te,{id:N,...le,children:b})]})});process.env.NODE_ENV!=="production"&&(Do.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Nt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const fp=XO({themeId:zr}),Li=7;var aq=typeof Dn=="object"&&Dn&&Dn.Object===Object&&Dn,wP=aq,sq=wP,lq=typeof self=="object"&&self&&self.Object===Object&&self,cq=sq||lq||Function("return this")(),tr=cq,uq=tr,dq=uq.Symbol,Ns=dq,Tx=Ns,xP=Object.prototype,fq=xP.hasOwnProperty,pq=xP.toString,dl=Tx?Tx.toStringTag:void 0;function hq(e){var t=fq.call(e,dl),n=e[dl];try{e[dl]=void 0;var r=!0}catch{}var i=pq.call(e);return r&&(t?e[dl]=n:delete e[dl]),i}var mq=hq,yq=Object.prototype,gq=yq.toString;function bq(e){return gq.call(e)}var vq=bq,Ox=Ns,wq=mq,xq=vq,Sq="[object Null]",Tq="[object Undefined]",Ex=Ox?Ox.toStringTag:void 0;function Oq(e){return e==null?e===void 0?Tq:Sq:Ex&&Ex in Object(e)?wq(e):xq(e)}var Oi=Oq;function Eq(e){return e!=null&&typeof e=="object"}var Dr=Eq,Cq=Oi,Pq=Dr,_q="[object Symbol]";function kq(e){return typeof e=="symbol"||Pq(e)&&Cq(e)==_q}var As=kq,Dq=As;function $q(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(s!=null&&(l===void 0?s===s&&!Dq(s):n(s,l)))var l=s,c=a}return c}var Rq=$q;function Mq(e,t){return e>t}var Iq=Mq;function Nq(){this.__data__=[],this.size=0}var Aq=Nq;function jq(e,t){return e===t||e!==e&&t!==t}var Yc=jq,Lq=Yc;function Fq(e,t){for(var n=e.length;n--;)if(Lq(e[n][0],t))return n;return-1}var pp=Fq,Bq=pp,Vq=Array.prototype,zq=Vq.splice;function Wq(e){var t=this.__data__,n=Bq(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():zq.call(t,n,1),--this.size,!0}var Uq=Wq,qq=pp;function Hq(e){var t=this.__data__,n=qq(t,e);return n<0?void 0:t[n][1]}var Yq=Hq,Gq=pp;function Kq(e){return Gq(this.__data__,e)>-1}var Xq=Kq,Zq=pp;function Qq(e,t){var n=this.__data__,r=Zq(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Jq=Qq,e9=Aq,t9=Uq,n9=Yq,r9=Xq,o9=Jq;function js(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}js.prototype.clear=e9;js.prototype.delete=t9;js.prototype.get=n9;js.prototype.has=r9;js.prototype.set=o9;var hp=js,i9=hp;function a9(){this.__data__=new i9,this.size=0}var s9=a9;function l9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var c9=l9;function u9(e){return this.__data__.get(e)}var d9=u9;function f9(e){return this.__data__.has(e)}var p9=f9;function h9(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var $r=h9,m9=Oi,y9=$r,g9="[object AsyncFunction]",b9="[object Function]",v9="[object GeneratorFunction]",w9="[object Proxy]";function x9(e){if(!y9(e))return!1;var t=m9(e);return t==b9||t==v9||t==g9||t==w9}var Gc=x9;const S9=Mt(Gc);var T9=tr,O9=T9["__core-js_shared__"],E9=O9,Bh=E9,Cx=function(){var e=/[^.]+$/.exec(Bh&&Bh.keys&&Bh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function C9(e){return!!Cx&&Cx in e}var P9=C9,_9=Function.prototype,k9=_9.toString;function D9(e){if(e!=null){try{return k9.call(e)}catch{}try{return e+""}catch{}}return""}var SP=D9,$9=Gc,R9=P9,M9=$r,I9=SP,N9=/[\\^$.*+?()[\]{}|]/g,A9=/^\[object .+?Constructor\]$/,j9=Function.prototype,L9=Object.prototype,F9=j9.toString,B9=L9.hasOwnProperty,V9=RegExp("^"+F9.call(B9).replace(N9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function z9(e){if(!M9(e)||R9(e))return!1;var t=$9(e)?V9:A9;return t.test(I9(e))}var W9=z9;function U9(e,t){return e==null?void 0:e[t]}var q9=U9,H9=W9,Y9=q9;function G9(e,t){var n=Y9(e,t);return H9(n)?n:void 0}var ca=G9,K9=ca,X9=tr,Z9=K9(X9,"Map"),zg=Z9,Q9=ca,J9=Q9(Object,"create"),mp=J9,Px=mp;function eH(){this.__data__=Px?Px(null):{},this.size=0}var tH=eH;function nH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var rH=nH,oH=mp,iH="__lodash_hash_undefined__",aH=Object.prototype,sH=aH.hasOwnProperty;function lH(e){var t=this.__data__;if(oH){var n=t[e];return n===iH?void 0:n}return sH.call(t,e)?t[e]:void 0}var cH=lH,uH=mp,dH=Object.prototype,fH=dH.hasOwnProperty;function pH(e){var t=this.__data__;return uH?t[e]!==void 0:fH.call(t,e)}var hH=pH,mH=mp,yH="__lodash_hash_undefined__";function gH(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mH&&t===void 0?yH:t,this}var bH=gH,vH=tH,wH=rH,xH=cH,SH=hH,TH=bH;function Ls(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ls.prototype.clear=vH;Ls.prototype.delete=wH;Ls.prototype.get=xH;Ls.prototype.has=SH;Ls.prototype.set=TH;var OH=Ls,_x=OH,EH=hp,CH=zg;function PH(){this.size=0,this.__data__={hash:new _x,map:new(CH||EH),string:new _x}}var _H=PH;function kH(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var DH=kH,$H=DH;function RH(e,t){var n=e.__data__;return $H(t)?n[typeof t=="string"?"string":"hash"]:n.map}var yp=RH,MH=yp;function IH(e){var t=MH(this,e).delete(e);return this.size-=t?1:0,t}var NH=IH,AH=yp;function jH(e){return AH(this,e).get(e)}var LH=jH,FH=yp;function BH(e){return FH(this,e).has(e)}var VH=BH,zH=yp;function WH(e,t){var n=zH(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var UH=WH,qH=_H,HH=NH,YH=LH,GH=VH,KH=UH;function Fs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fs.prototype.clear=qH;Fs.prototype.delete=HH;Fs.prototype.get=YH;Fs.prototype.has=GH;Fs.prototype.set=KH;var Wg=Fs,XH=hp,ZH=zg,QH=Wg,JH=200;function e8(e,t){var n=this.__data__;if(n instanceof XH){var r=n.__data__;if(!ZH||r.length<JH-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new QH(r)}return n.set(e,t),this.size=n.size,this}var t8=e8,n8=hp,r8=s9,o8=c9,i8=d9,a8=p9,s8=t8;function Bs(e){var t=this.__data__=new n8(e);this.size=t.size}Bs.prototype.clear=r8;Bs.prototype.delete=o8;Bs.prototype.get=i8;Bs.prototype.has=a8;Bs.prototype.set=s8;var gp=Bs,l8="__lodash_hash_undefined__";function c8(e){return this.__data__.set(e,l8),this}var u8=c8;function d8(e){return this.__data__.has(e)}var f8=d8,p8=Wg,h8=u8,m8=f8;function zd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new p8;++t<n;)this.add(e[t])}zd.prototype.add=zd.prototype.push=h8;zd.prototype.has=m8;var TP=zd;function y8(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var g8=y8;function b8(e,t){return e.has(t)}var OP=b8,v8=TP,w8=g8,x8=OP,S8=1,T8=2;function O8(e,t,n,r,i,a){var s=n&S8,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=n&T8?new v8:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var b=e[f],m=t[f];if(r)var y=s?r(m,b,f,t,e,a):r(b,m,f,e,t,a);if(y!==void 0){if(y)continue;h=!1;break}if(p){if(!w8(t,function(g,v){if(!x8(p,v)&&(b===g||i(b,g,n,r,a)))return p.push(v)})){h=!1;break}}else if(!(b===m||i(b,m,n,r,a))){h=!1;break}}return a.delete(e),a.delete(t),h}var EP=O8,E8=tr,C8=E8.Uint8Array,CP=C8;function P8(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var PP=P8;function _8(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ug=_8,kx=Ns,Dx=CP,k8=Yc,D8=EP,$8=PP,R8=Ug,M8=1,I8=2,N8="[object Boolean]",A8="[object Date]",j8="[object Error]",L8="[object Map]",F8="[object Number]",B8="[object RegExp]",V8="[object Set]",z8="[object String]",W8="[object Symbol]",U8="[object ArrayBuffer]",q8="[object DataView]",$x=kx?kx.prototype:void 0,Vh=$x?$x.valueOf:void 0;function H8(e,t,n,r,i,a,s){switch(n){case q8:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case U8:return!(e.byteLength!=t.byteLength||!a(new Dx(e),new Dx(t)));case N8:case A8:case F8:return k8(+e,+t);case j8:return e.name==t.name&&e.message==t.message;case B8:case z8:return e==t+"";case L8:var l=$8;case V8:var c=r&M8;if(l||(l=R8),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;r|=I8,s.set(e,t);var d=D8(l(e),l(t),r,i,a,s);return s.delete(e),d;case W8:if(Vh)return Vh.call(e)==Vh.call(t)}return!1}var Y8=H8;function G8(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var qg=G8,K8=Array.isArray,Pn=K8;const _P=Mt(Pn);var X8=qg,Z8=Pn;function Q8(e,t,n){var r=t(e);return Z8(e)?r:X8(r,n(e))}var kP=Q8;function J8(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}var DP=J8;function e7(){return[]}var $P=e7,t7=DP,n7=$P,r7=Object.prototype,o7=r7.propertyIsEnumerable,Rx=Object.getOwnPropertySymbols,i7=Rx?function(e){return e==null?[]:(e=Object(e),t7(Rx(e),function(t){return o7.call(e,t)}))}:n7,Hg=i7;function a7(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var s7=a7,l7=Oi,c7=Dr,u7="[object Arguments]";function d7(e){return c7(e)&&l7(e)==u7}var f7=d7,Mx=f7,p7=Dr,RP=Object.prototype,h7=RP.hasOwnProperty,m7=RP.propertyIsEnumerable,y7=Mx(function(){return arguments}())?Mx:function(e){return p7(e)&&h7.call(e,"callee")&&!m7.call(e,"callee")},Kc=y7,Wd={exports:{}};function g7(){return!1}var b7=g7;Wd.exports;(function(e,t){var n=tr,r=b7,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===i,l=s?n.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||r;e.exports=u})(Wd,Wd.exports);var Xc=Wd.exports,v7=9007199254740991,w7=/^(?:0|[1-9]\d*)$/;function x7(e,t){var n=typeof e;return t=t??v7,!!t&&(n=="number"||n!="symbol"&&w7.test(e))&&e>-1&&e%1==0&&e<t}var Zc=x7,S7=9007199254740991;function T7(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=S7}var Yg=T7,O7=Oi,E7=Yg,C7=Dr,P7="[object Arguments]",_7="[object Array]",k7="[object Boolean]",D7="[object Date]",$7="[object Error]",R7="[object Function]",M7="[object Map]",I7="[object Number]",N7="[object Object]",A7="[object RegExp]",j7="[object Set]",L7="[object String]",F7="[object WeakMap]",B7="[object ArrayBuffer]",V7="[object DataView]",z7="[object Float32Array]",W7="[object Float64Array]",U7="[object Int8Array]",q7="[object Int16Array]",H7="[object Int32Array]",Y7="[object Uint8Array]",G7="[object Uint8ClampedArray]",K7="[object Uint16Array]",X7="[object Uint32Array]",on={};on[z7]=on[W7]=on[U7]=on[q7]=on[H7]=on[Y7]=on[G7]=on[K7]=on[X7]=!0;on[P7]=on[_7]=on[B7]=on[k7]=on[V7]=on[D7]=on[$7]=on[R7]=on[M7]=on[I7]=on[N7]=on[A7]=on[j7]=on[L7]=on[F7]=!1;function Z7(e){return C7(e)&&E7(e.length)&&!!on[O7(e)]}var Q7=Z7;function J7(e){return function(t){return e(t)}}var Gg=J7,Ud={exports:{}};Ud.exports;(function(e,t){var n=wP,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a&&n.process,l=function(){try{var c=i&&i.require&&i.require("util").types;return c||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(Ud,Ud.exports);var Kg=Ud.exports,eY=Q7,tY=Gg,Ix=Kg,Nx=Ix&&Ix.isTypedArray,nY=Nx?tY(Nx):eY,bp=nY,rY=s7,oY=Kc,iY=Pn,aY=Xc,sY=Zc,lY=bp,cY=Object.prototype,uY=cY.hasOwnProperty;function dY(e,t){var n=iY(e),r=!n&&oY(e),i=!n&&!r&&aY(e),a=!n&&!r&&!i&&lY(e),s=n||r||i||a,l=s?rY(e.length,String):[],c=l.length;for(var u in e)(t||uY.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||sY(u,c)))&&l.push(u);return l}var MP=dY,fY=Object.prototype;function pY(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fY;return e===n}var vp=pY;function hY(e,t){return function(n){return e(t(n))}}var IP=hY,mY=IP,yY=mY(Object.keys,Object),gY=yY,bY=vp,vY=gY,wY=Object.prototype,xY=wY.hasOwnProperty;function SY(e){if(!bY(e))return vY(e);var t=[];for(var n in Object(e))xY.call(e,n)&&n!="constructor"&&t.push(n);return t}var Xg=SY,TY=Gc,OY=Yg;function EY(e){return e!=null&&OY(e.length)&&!TY(e)}var Qo=EY,CY=MP,PY=Xg,_Y=Qo;function kY(e){return _Y(e)?CY(e):PY(e)}var Jo=kY;const DY=Mt(Jo);var $Y=kP,RY=Hg,MY=Jo;function IY(e){return $Y(e,MY,RY)}var NP=IY,Ax=NP,NY=1,AY=Object.prototype,jY=AY.hasOwnProperty;function LY(e,t,n,r,i,a){var s=n&NY,l=Ax(e),c=l.length,u=Ax(t),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var h=l[f];if(!(s?h in t:jY.call(t,h)))return!1}var p=a.get(e),b=a.get(t);if(p&&b)return p==t&&b==e;var m=!0;a.set(e,t),a.set(t,e);for(var y=s;++f<c;){h=l[f];var g=e[h],v=t[h];if(r)var x=s?r(v,g,h,t,e,a):r(g,v,h,e,t,a);if(!(x===void 0?g===v||i(g,v,n,r,a):x)){m=!1;break}y||(y=h=="constructor")}if(m&&!y){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(m=!1)}return a.delete(e),a.delete(t),m}var FY=LY,BY=ca,VY=tr,zY=BY(VY,"DataView"),WY=zY,UY=ca,qY=tr,HY=UY(qY,"Promise"),YY=HY,GY=ca,KY=tr,XY=GY(KY,"Set"),AP=XY,ZY=ca,QY=tr,JY=ZY(QY,"WeakMap"),jP=JY,ey=WY,ty=zg,ny=YY,ry=AP,oy=jP,LP=Oi,Vs=SP,jx="[object Map]",eG="[object Object]",Lx="[object Promise]",Fx="[object Set]",Bx="[object WeakMap]",Vx="[object DataView]",tG=Vs(ey),nG=Vs(ty),rG=Vs(ny),oG=Vs(ry),iG=Vs(oy),Ai=LP;(ey&&Ai(new ey(new ArrayBuffer(1)))!=Vx||ty&&Ai(new ty)!=jx||ny&&Ai(ny.resolve())!=Lx||ry&&Ai(new ry)!=Fx||oy&&Ai(new oy)!=Bx)&&(Ai=function(e){var t=LP(e),n=t==eG?e.constructor:void 0,r=n?Vs(n):"";if(r)switch(r){case tG:return Vx;case nG:return jx;case rG:return Lx;case oG:return Fx;case iG:return Bx}return t});var ua=Ai,zh=gp,aG=EP,sG=Y8,lG=FY,zx=ua,Wx=Pn,Ux=Xc,cG=bp,uG=1,qx="[object Arguments]",Hx="[object Array]",Fu="[object Object]",dG=Object.prototype,Yx=dG.hasOwnProperty;function fG(e,t,n,r,i,a){var s=Wx(e),l=Wx(t),c=s?Hx:zx(e),u=l?Hx:zx(t);c=c==qx?Fu:c,u=u==qx?Fu:u;var d=c==Fu,f=u==Fu,h=c==u;if(h&&Ux(e)){if(!Ux(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new zh),s||cG(e)?aG(e,t,n,r,i,a):sG(e,t,c,n,r,i,a);if(!(n&uG)){var p=d&&Yx.call(e,"__wrapped__"),b=f&&Yx.call(t,"__wrapped__");if(p||b){var m=p?e.value():e,y=b?t.value():t;return a||(a=new zh),i(m,y,n,r,a)}}return h?(a||(a=new zh),lG(e,t,n,r,i,a)):!1}var pG=fG,hG=pG,Gx=Dr;function FP(e,t,n,r,i){return e===t?!0:e==null||t==null||!Gx(e)&&!Gx(t)?e!==e&&t!==t:hG(e,t,n,r,FP,i)}var Zg=FP,mG=gp,yG=Zg,gG=1,bG=2;function vG(e,t,n,r){var i=n.length,a=i,s=!r;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===void 0&&!(c in e))return!1}else{var f=new mG;if(r)var h=r(u,d,c,e,t,f);if(!(h===void 0?yG(d,u,gG|bG,r,f):h))return!1}}return!0}var wG=vG,xG=$r;function SG(e){return e===e&&!xG(e)}var BP=SG,TG=BP,OG=Jo;function EG(e){for(var t=OG(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,TG(i)]}return t}var CG=EG;function PG(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var VP=PG,_G=wG,kG=CG,DG=VP;function $G(e){var t=kG(e);return t.length==1&&t[0][2]?DG(t[0][0],t[0][1]):function(n){return n===e||_G(n,e,t)}}var RG=$G,MG=Pn,IG=As,NG=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,AG=/^\w*$/;function jG(e,t){if(MG(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||IG(e)?!0:AG.test(e)||!NG.test(e)||t!=null&&e in Object(t)}var Qg=jG,zP=Wg,LG="Expected a function";function Jg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(LG);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(Jg.Cache||zP),n}Jg.Cache=zP;var FG=Jg,BG=FG,VG=500;function zG(e){var t=BG(e,function(r){return n.size===VG&&n.clear(),r}),n=t.cache;return t}var WG=zG,UG=WG,qG=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,HG=/\\(\\)?/g,YG=UG(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(qG,function(n,r,i,a){t.push(i?a.replace(HG,"$1"):r||n)}),t}),WP=YG;function GG(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var zs=GG,Kx=Ns,KG=zs,XG=Pn,ZG=As,Xx=Kx?Kx.prototype:void 0,Zx=Xx?Xx.toString:void 0;function UP(e){if(typeof e=="string")return e;if(XG(e))return KG(e,UP)+"";if(ZG(e))return Zx?Zx.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var QG=UP,JG=QG;function eK(e){return e==null?"":JG(e)}var Qc=eK,tK=Pn,nK=Qg,rK=WP,oK=Qc;function iK(e,t){return tK(e)?e:nK(e,t)?[e]:rK(oK(e))}var Jc=iK,aK=As;function sK(e){if(typeof e=="string"||aK(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var da=sK,lK=Jc,cK=da;function uK(e,t){t=lK(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[cK(t[n++])];return n&&n==r?e:void 0}var eb=uK,dK=eb;function fK(e,t,n){var r=e==null?void 0:dK(e,t);return r===void 0?n:r}var qP=fK;const $n=Mt(qP);function pK(e,t){return e!=null&&t in Object(e)}var hK=pK,mK=Jc,yK=Kc,gK=Pn,bK=Zc,vK=Yg,wK=da;function xK(e,t,n){t=mK(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var s=wK(t[r]);if(!(a=e!=null&&n(e,s)))break;e=e[s]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&vK(i)&&bK(s,i)&&(gK(e)||yK(e)))}var HP=xK,SK=hK,TK=HP;function OK(e,t){return e!=null&&TK(e,t,SK)}var EK=OK,CK=Zg,PK=qP,_K=EK,kK=Qg,DK=BP,$K=VP,RK=da,MK=1,IK=2;function NK(e,t){return kK(e)&&DK(t)?$K(RK(e),t):function(n){var r=PK(n,e);return r===void 0&&r===t?_K(n,e):CK(t,r,MK|IK)}}var AK=NK;function jK(e){return e}var wp=jK;function LK(e){return function(t){return t==null?void 0:t[e]}}var FK=LK,BK=eb;function VK(e){return function(t){return BK(t,e)}}var zK=VK,WK=FK,UK=zK,qK=Qg,HK=da;function YK(e){return qK(e)?WK(HK(e)):UK(e)}var GK=YK,KK=RG,XK=AK,ZK=wp,QK=Pn,JK=GK;function eX(e){return typeof e=="function"?e:e==null?ZK:typeof e=="object"?QK(e)?XK(e[0],e[1]):KK(e):JK(e)}var fa=eX,tX=Rq,nX=Iq,rX=fa;function oX(e,t){return e&&e.length?tX(e,rX(t),nX):void 0}var iX=oX;const tb=Mt(iX);var aX=Xg,sX=ua,lX=Kc,cX=Pn,uX=Qo,dX=Xc,fX=vp,pX=bp,hX="[object Map]",mX="[object Set]",yX=Object.prototype,gX=yX.hasOwnProperty;function bX(e){if(e==null)return!0;if(uX(e)&&(cX(e)||typeof e=="string"||typeof e.splice=="function"||dX(e)||pX(e)||lX(e)))return!e.length;var t=sX(e);if(t==hX||t==mX)return!e.size;if(fX(e))return!aX(e).length;for(var n in e)if(gX.call(e,n))return!1;return!0}var vX=bX;const pt=Mt(vX);function wX(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}var YP=wX;function xX(e){return function(t){return e==null?void 0:e[t]}}var SX=xX,TX=SX,OX={À:"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"},EX=TX(OX),CX=EX,PX=CX,_X=Qc,kX=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,DX="\\u0300-\\u036f",$X="\\ufe20-\\ufe2f",RX="\\u20d0-\\u20ff",MX=DX+$X+RX,IX="["+MX+"]",NX=RegExp(IX,"g");function AX(e){return e=_X(e),e&&e.replace(kX,PX).replace(NX,"")}var jX=AX,LX=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function FX(e){return e.match(LX)||[]}var BX=FX,VX=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function zX(e){return VX.test(e)}var WX=zX,GP="\\ud800-\\udfff",UX="\\u0300-\\u036f",qX="\\ufe20-\\ufe2f",HX="\\u20d0-\\u20ff",YX=UX+qX+HX,KP="\\u2700-\\u27bf",XP="a-z\\xdf-\\xf6\\xf8-\\xff",GX="\\xac\\xb1\\xd7\\xf7",KX="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",XX="\\u2000-\\u206f",ZX=" \\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",ZP="A-Z\\xc0-\\xd6\\xd8-\\xde",QX="\\ufe0e\\ufe0f",QP=GX+KX+XX+ZX,JP="['’]",Qx="["+QP+"]",JX="["+YX+"]",e_="\\d+",eZ="["+KP+"]",t_="["+XP+"]",n_="[^"+GP+QP+e_+KP+XP+ZP+"]",tZ="\\ud83c[\\udffb-\\udfff]",nZ="(?:"+JX+"|"+tZ+")",rZ="[^"+GP+"]",r_="(?:\\ud83c[\\udde6-\\uddff]){2}",o_="[\\ud800-\\udbff][\\udc00-\\udfff]",Na="["+ZP+"]",oZ="\\u200d",Jx="(?:"+t_+"|"+n_+")",iZ="(?:"+Na+"|"+n_+")",eS="(?:"+JP+"(?:d|ll|m|re|s|t|ve))?",tS="(?:"+JP+"(?:D|LL|M|RE|S|T|VE))?",i_=nZ+"?",a_="["+QX+"]?",aZ="(?:"+oZ+"(?:"+[rZ,r_,o_].join("|")+")"+a_+i_+")*",sZ="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lZ="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",cZ=a_+i_+aZ,uZ="(?:"+[eZ,r_,o_].join("|")+")"+cZ,dZ=RegExp([Na+"?"+t_+"+"+eS+"(?="+[Qx,Na,"$"].join("|")+")",iZ+"+"+tS+"(?="+[Qx,Na+Jx,"$"].join("|")+")",Na+"?"+Jx+"+"+eS,Na+"+"+tS,lZ,sZ,e_,uZ].join("|"),"g");function fZ(e){return e.match(dZ)||[]}var pZ=fZ,hZ=BX,mZ=WX,yZ=Qc,gZ=pZ;function bZ(e,t,n){return e=yZ(e),t=n?void 0:t,t===void 0?mZ(e)?gZ(e):hZ(e):e.match(t)||[]}var vZ=bZ,wZ=YP,xZ=jX,SZ=vZ,TZ="['’]",OZ=RegExp(TZ,"g");function EZ(e){return function(t){return wZ(SZ(xZ(t).replace(OZ,"")),e,"")}}var CZ=EZ;function PZ(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var s_=PZ,_Z=s_;function kZ(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:_Z(e,t,n)}var DZ=kZ,$Z="\\ud800-\\udfff",RZ="\\u0300-\\u036f",MZ="\\ufe20-\\ufe2f",IZ="\\u20d0-\\u20ff",NZ=RZ+MZ+IZ,AZ="\\ufe0e\\ufe0f",jZ="\\u200d",LZ=RegExp("["+jZ+$Z+NZ+AZ+"]");function FZ(e){return LZ.test(e)}var l_=FZ;function BZ(e){return e.split("")}var VZ=BZ,c_="\\ud800-\\udfff",zZ="\\u0300-\\u036f",WZ="\\ufe20-\\ufe2f",UZ="\\u20d0-\\u20ff",qZ=zZ+WZ+UZ,HZ="\\ufe0e\\ufe0f",YZ="["+c_+"]",iy="["+qZ+"]",ay="\\ud83c[\\udffb-\\udfff]",GZ="(?:"+iy+"|"+ay+")",u_="[^"+c_+"]",d_="(?:\\ud83c[\\udde6-\\uddff]){2}",f_="[\\ud800-\\udbff][\\udc00-\\udfff]",KZ="\\u200d",p_=GZ+"?",h_="["+HZ+"]?",XZ="(?:"+KZ+"(?:"+[u_,d_,f_].join("|")+")"+h_+p_+")*",ZZ=h_+p_+XZ,QZ="(?:"+[u_+iy+"?",iy,d_,f_,YZ].join("|")+")",JZ=RegExp(ay+"(?="+ay+")|"+QZ+ZZ,"g");function eQ(e){return e.match(JZ)||[]}var tQ=eQ,nQ=VZ,rQ=l_,oQ=tQ;function iQ(e){return rQ(e)?oQ(e):nQ(e)}var aQ=iQ,sQ=DZ,lQ=l_,cQ=aQ,uQ=Qc;function dQ(e){return function(t){t=uQ(t);var n=lQ(t)?cQ(t):void 0,r=n?n[0]:t.charAt(0),i=n?sQ(n,1).join(""):t.slice(1);return r[e]()+i}}var fQ=dQ,pQ=fQ,hQ=pQ("toUpperCase"),mQ=hQ,yQ=CZ,gQ=mQ,bQ=yQ(function(e,t,n){return e+(n?" ":"")+gQ(t)}),vQ=bQ;const nb=Mt(vQ);var wQ=Math.ceil,xQ=Math.max;function SQ(e,t,n,r){for(var i=-1,a=xQ(wQ((t-e)/(n||1)),0),s=Array(a);a--;)s[r?a:++i]=e,e+=n;return s}var TQ=SQ,OQ=Yc,EQ=Qo,CQ=Zc,PQ=$r;function _Q(e,t,n){if(!PQ(n))return!1;var r=typeof t;return(r=="number"?EQ(n)&&CQ(t,n.length):r=="string"&&t in n)?OQ(n[t],e):!1}var m_=_Q,kQ=/\s/;function DQ(e){for(var t=e.length;t--&&kQ.test(e.charAt(t)););return t}var $Q=DQ,RQ=$Q,MQ=/^\s+/;function IQ(e){return e&&e.slice(0,RQ(e)+1).replace(MQ,"")}var NQ=IQ,AQ=NQ,nS=$r,jQ=As,rS=NaN,LQ=/^[-+]0x[0-9a-f]+$/i,FQ=/^0b[01]+$/i,BQ=/^0o[0-7]+$/i,VQ=parseInt;function zQ(e){if(typeof e=="number")return e;if(jQ(e))return rS;if(nS(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=nS(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=AQ(e);var n=FQ.test(e);return n||BQ.test(e)?VQ(e.slice(2),n?2:8):LQ.test(e)?rS:+e}var y_=zQ,WQ=y_,oS=1/0,UQ=17976931348623157e292;function qQ(e){if(!e)return e===0?e:0;if(e=WQ(e),e===oS||e===-oS){var t=e<0?-1:1;return t*UQ}return e===e?e:0}var g_=qQ,HQ=TQ,YQ=m_,Wh=g_;function GQ(e){return function(t,n,r){return r&&typeof r!="number"&&YQ(t,n,r)&&(n=r=void 0),t=Wh(t),n===void 0?(n=t,t=0):n=Wh(n),r=r===void 0?t<n?1:-1:Wh(r),HQ(t,n,r,e)}}var KQ=GQ,XQ=KQ,ZQ=XQ(),QQ=ZQ;const xp=Mt(QQ);var JQ=Object.prototype,eJ=JQ.hasOwnProperty;function tJ(e,t){return e!=null&&eJ.call(e,t)}var nJ=tJ,rJ=nJ,oJ=HP;function iJ(e,t){return e!=null&&oJ(e,t,rJ)}var aJ=iJ;const b_=Mt(aJ);var sJ=fa,lJ=Qo,cJ=Jo;function uJ(e){return function(t,n,r){var i=Object(t);if(!lJ(t)){var a=sJ(n);t=cJ(t),n=function(l){return a(i[l],l,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:void 0}}var dJ=uJ;function fJ(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var v_=fJ,pJ=g_;function hJ(e){var t=pJ(e),n=t%1;return t===t?n?t-n:t:0}var Sp=hJ,mJ=v_,yJ=fa,gJ=Sp,bJ=Math.max;function vJ(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:gJ(n);return i<0&&(i=bJ(r+i,0)),mJ(e,yJ(t),i)}var wJ=vJ,xJ=dJ,SJ=wJ,TJ=xJ(SJ),OJ=TJ;const w_=Mt(OJ);function EJ(e){return e!==e}var CJ=EJ;function PJ(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var _J=PJ,kJ=v_,DJ=CJ,$J=_J;function RJ(e,t,n){return t===t?$J(e,t,n):kJ(e,DJ,n)}var x_=RJ,MJ=Oi,IJ=Pn,NJ=Dr,AJ="[object String]";function jJ(e){return typeof e=="string"||!IJ(e)&&NJ(e)&&MJ(e)==AJ}var LJ=jJ,FJ=zs;function BJ(e,t){return FJ(t,function(n){return e[n]})}var VJ=BJ,zJ=VJ,WJ=Jo;function UJ(e){return e==null?[]:zJ(e,WJ(e))}var qJ=UJ,HJ=x_,YJ=Qo,GJ=LJ,KJ=Sp,XJ=qJ,ZJ=Math.max;function QJ(e,t,n,r){e=YJ(e)?e:XJ(e),n=n&&!r?KJ(n):0;var i=e.length;return n<0&&(n=ZJ(i+n,0)),GJ(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&HJ(e,t,n)>-1}var JJ=QJ;const S_=Mt(JJ);var sy={exports:{}},T_={},io={},gs={},eu={},St={},dc={};(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 n extends t{constructor(v){if(super(),!e.IDENTIFIER.test(v))throw new Error("CodeGen: name must be a valid identifier");this.str=v}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(v){super(),this._items=typeof v=="string"?[v]:v}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const v=this._items[0];return v===""||v==='""'}get str(){var v;return(v=this._str)!==null&&v!==void 0?v:this._str=this._items.reduce((x,w)=>`${x}${w}`,"")}get names(){var v;return(v=this._names)!==null&&v!==void 0?v:this._names=this._items.reduce((x,w)=>(w instanceof n&&(x[w.str]=(x[w.str]||0)+1),x),{})}}e._Code=r,e.nil=new r("");function i(g,...v){const x=[g[0]];let w=0;for(;w<v.length;)l(x,v[w]),x.push(g[++w]);return new r(x)}e._=i;const a=new r("+");function s(g,...v){const x=[p(g[0])];let w=0;for(;w<v.length;)x.push(a),l(x,v[w]),x.push(a,p(g[++w]));return c(x),new r(x)}e.str=s;function l(g,v){v instanceof r?g.push(...v._items):v instanceof n?g.push(v):g.push(f(v))}e.addCodeArg=l;function c(g){let v=1;for(;v<g.length-1;){if(g[v]===a){const x=u(g[v-1],g[v+1]);if(x!==void 0){g.splice(v-1,3,x);continue}g[v++]="+"}v++}}function u(g,v){if(v==='""')return g;if(g==='""')return v;if(typeof g=="string")return v instanceof n||g[g.length-1]!=='"'?void 0:typeof v!="string"?`${g.slice(0,-1)}${v}"`:v[0]==='"'?g.slice(0,-1)+v.slice(1):void 0;if(typeof v=="string"&&v[0]==='"'&&!(g instanceof n))return`"${g}${v.slice(1)}`}function d(g,v){return v.emptyStr()?g:g.emptyStr()?v:s`${g}${v}`}e.strConcat=d;function f(g){return typeof g=="number"||typeof g=="boolean"||g===null?g:p(Array.isArray(g)?g.join(","):g)}function h(g){return new r(p(g))}e.stringify=h;function p(g){return JSON.stringify(g).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=p;function b(g){return typeof g=="string"&&e.IDENTIFIER.test(g)?new r(`.${g}`):i`[${g}]`}e.getProperty=b;function m(g){if(typeof g=="string"&&e.IDENTIFIER.test(g))return new r(`${g}`);throw new Error(`CodeGen: invalid export name: ${g}, use explicit $id name mapping`)}e.getEsmExportName=m;function y(g){return new r(g.toString())}e.regexpCode=y})(dc);var ly={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=dc;class n extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.value}}var r;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:u,parent:d}={}){this._names={},this._prefixes=u,this._parent=d}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const d=this._names[u]||this._nameGroup(u);return`${u}${d.index++}`}_nameGroup(u){var d,f;if(!((f=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||f===void 0)&&f.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=i;class a extends t.Name{constructor(u,d){super(d),this.prefix=u}setValue(u,{property:d,itemIndex:f}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(d)}[${f}]`}}e.ValueScopeName=a;const s=(0,t._)`\n`;class l extends i{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?s:t.nil}}get(){return this._scope}name(u){return new a(u,this._newName(u))}value(u,d){var f;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const h=this.toName(u),{prefix:p}=h,b=(f=d.key)!==null&&f!==void 0?f:d.ref;let m=this._values[p];if(m){const v=m.get(b);if(v)return v}else m=this._values[p]=new Map;m.set(b,h);const y=this._scope[p]||(this._scope[p]=[]),g=y.length;return y[g]=d.ref,h.setValue(d,{property:p,itemIndex:g}),h}getValue(u,d){const f=this._values[u];if(f)return f.get(d)}scopeRefs(u,d=this._values){return this._reduceValues(d,f=>{if(f.scopePath===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return(0,t._)`${u}${f.scopePath}`})}scopeCode(u=this._values,d,f){return this._reduceValues(u,h=>{if(h.value===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return h.value.code},d,f)}_reduceValues(u,d,f={},h){let p=t.nil;for(const b in u){const m=u[b];if(!m)continue;const y=f[b]=f[b]||new Map;m.forEach(g=>{if(y.has(g))return;y.set(g,r.Started);let v=d(g);if(v){const x=this.opts.es5?e.varKinds.var:e.varKinds.const;p=(0,t._)`${p}${x} ${g} = ${v};${this.opts._n}`}else if(v=h==null?void 0:h(g))p=(0,t._)`${p}${v}${this.opts._n}`;else throw new n(g);y.set(g,r.Completed)})}return p}}e.ValueScope=l})(ly);(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=dc,n=ly;var r=dc;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=ly;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(L,A){return this}}class s extends a{constructor(L,A,N){super(),this.varKind=L,this.name=A,this.rhs=N}render({es5:L,_n:A}){const N=L?n.varKinds.var:this.varKind,q=this.rhs===void 0?"":` = ${this.rhs}`;return`${N} ${this.name}${q};`+A}optimizeNames(L,A){if(L[this.name.str])return this.rhs&&(this.rhs=M(this.rhs,L,A)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class l extends a{constructor(L,A,N){super(),this.lhs=L,this.rhs=A,this.sideEffects=N}render({_n:L}){return`${this.lhs} = ${this.rhs};`+L}optimizeNames(L,A){if(!(this.lhs instanceof t.Name&&!L[this.lhs.str]&&!this.sideEffects))return this.rhs=M(this.rhs,L,A),this}get names(){const L=this.lhs instanceof t.Name?{}:{...this.lhs.names};return $(L,this.rhs)}}class c extends l{constructor(L,A,N,q){super(L,N,q),this.op=A}render({_n:L}){return`${this.lhs} ${this.op}= ${this.rhs};`+L}}class u extends a{constructor(L){super(),this.label=L,this.names={}}render({_n:L}){return`${this.label}:`+L}}class d extends a{constructor(L){super(),this.label=L,this.names={}}render({_n:L}){return`break${this.label?` ${this.label}`:""};`+L}}class f extends a{constructor(L){super(),this.error=L}render({_n:L}){return`throw ${this.error};`+L}get names(){return this.error.names}}class h extends a{constructor(L){super(),this.code=L}render({_n:L}){return`${this.code};`+L}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(L,A){return this.code=M(this.code,L,A),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class p extends a{constructor(L=[]){super(),this.nodes=L}render(L){return this.nodes.reduce((A,N)=>A+N.render(L),"")}optimizeNodes(){const{nodes:L}=this;let A=L.length;for(;A--;){const N=L[A].optimizeNodes();Array.isArray(N)?L.splice(A,1,...N):N?L[A]=N:L.splice(A,1)}return L.length>0?this:void 0}optimizeNames(L,A){const{nodes:N}=this;let q=N.length;for(;q--;){const Y=N[q];Y.optimizeNames(L,A)||(j(L,Y.names),N.splice(q,1))}return N.length>0?this:void 0}get names(){return this.nodes.reduce((L,A)=>T(L,A.names),{})}}class b extends p{render(L){return"{"+L._n+super.render(L)+"}"+L._n}}class m extends p{}class y extends b{}y.kind="else";class g extends b{constructor(L,A){super(A),this.condition=L}render(L){let A=`if(${this.condition})`+super.render(L);return this.else&&(A+="else "+this.else.render(L)),A}optimizeNodes(){super.optimizeNodes();const L=this.condition;if(L===!0)return this.nodes;let A=this.else;if(A){const N=A.optimizeNodes();A=this.else=Array.isArray(N)?new y(N):N}if(A)return L===!1?A instanceof g?A:A.nodes:this.nodes.length?this:new g(W(L),A instanceof g?[A]:A.nodes);if(!(L===!1||!this.nodes.length))return this}optimizeNames(L,A){var N;if(this.else=(N=this.else)===null||N===void 0?void 0:N.optimizeNames(L,A),!!(super.optimizeNames(L,A)||this.else))return this.condition=M(this.condition,L,A),this}get names(){const L=super.names;return $(L,this.condition),this.else&&T(L,this.else.names),L}}g.kind="if";class v extends b{}v.kind="for";class x extends v{constructor(L){super(),this.iteration=L}render(L){return`for(${this.iteration})`+super.render(L)}optimizeNames(L,A){if(super.optimizeNames(L,A))return this.iteration=M(this.iteration,L,A),this}get names(){return T(super.names,this.iteration.names)}}class w extends v{constructor(L,A,N,q){super(),this.varKind=L,this.name=A,this.from=N,this.to=q}render(L){const A=L.es5?n.varKinds.var:this.varKind,{name:N,from:q,to:Y}=this;return`for(${A} ${N}=${q}; ${N}<${Y}; ${N}++)`+super.render(L)}get names(){const L=$(super.names,this.from);return $(L,this.to)}}class S extends v{constructor(L,A,N,q){super(),this.loop=L,this.varKind=A,this.name=N,this.iterable=q}render(L){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(L)}optimizeNames(L,A){if(super.optimizeNames(L,A))return this.iterable=M(this.iterable,L,A),this}get names(){return T(super.names,this.iterable.names)}}class O extends b{constructor(L,A,N){super(),this.name=L,this.args=A,this.async=N}render(L){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(L)}}O.kind="func";class C extends p{render(L){return"return "+super.render(L)}}C.kind="return";class P extends b{render(L){let A="try"+super.render(L);return this.catch&&(A+=this.catch.render(L)),this.finally&&(A+=this.finally.render(L)),A}optimizeNodes(){var L,A;return super.optimizeNodes(),(L=this.catch)===null||L===void 0||L.optimizeNodes(),(A=this.finally)===null||A===void 0||A.optimizeNodes(),this}optimizeNames(L,A){var N,q;return super.optimizeNames(L,A),(N=this.catch)===null||N===void 0||N.optimizeNames(L,A),(q=this.finally)===null||q===void 0||q.optimizeNames(L,A),this}get names(){const L=super.names;return this.catch&&T(L,this.catch.names),this.finally&&T(L,this.finally.names),L}}class k extends b{constructor(L){super(),this.error=L}render(L){return`catch(${this.error})`+super.render(L)}}k.kind="catch";class E extends b{render(L){return"finally"+super.render(L)}}E.kind="finally";class _{constructor(L,A={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...A,_n:A.lines?`
`:""},this._extScope=L,this._scope=new n.Scope({parent:L}),this._nodes=[new m]}toString(){return this._root.render(this.opts)}name(L){return this._scope.name(L)}scopeName(L){return this._extScope.name(L)}scopeValue(L,A){const N=this._extScope.value(L,A);return(this._values[N.prefix]||(this._values[N.prefix]=new Set)).add(N),N}getScopeValue(L,A){return this._extScope.getValue(L,A)}scopeRefs(L){return this._extScope.scopeRefs(L,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(L,A,N,q){const Y=this._scope.toName(A);return N!==void 0&&q&&(this._constants[Y.str]=N),this._leafNode(new s(L,Y,N)),Y}const(L,A,N){return this._def(n.varKinds.const,L,A,N)}let(L,A,N){return this._def(n.varKinds.let,L,A,N)}var(L,A,N){return this._def(n.varKinds.var,L,A,N)}assign(L,A,N){return this._leafNode(new l(L,A,N))}add(L,A){return this._leafNode(new c(L,e.operators.ADD,A))}code(L){return typeof L=="function"?L():L!==t.nil&&this._leafNode(new h(L)),this}object(...L){const A=["{"];for(const[N,q]of L)A.length>1&&A.push(","),A.push(N),(N!==q||this.opts.es5)&&(A.push(":"),(0,t.addCodeArg)(A,q));return A.push("}"),new t._Code(A)}if(L,A,N){if(this._blockNode(new g(L)),A&&N)this.code(A).else().code(N).endIf();else if(A)this.code(A).endIf();else if(N)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(L){return this._elseNode(new g(L))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(g,y)}_for(L,A){return this._blockNode(L),A&&this.code(A).endFor(),this}for(L,A){return this._for(new x(L),A)}forRange(L,A,N,q,Y=this.opts.es5?n.varKinds.var:n.varKinds.let){const G=this._scope.toName(L);return this._for(new w(Y,G,A,N),()=>q(G))}forOf(L,A,N,q=n.varKinds.const){const Y=this._scope.toName(L);if(this.opts.es5){const G=A instanceof t.Name?A:this.var("_arr",A);return this.forRange("_i",0,(0,t._)`${G}.length`,X=>{this.var(Y,(0,t._)`${G}[${X}]`),N(Y)})}return this._for(new S("of",q,Y,A),()=>N(Y))}forIn(L,A,N,q=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(L,(0,t._)`Object.keys(${A})`,N);const Y=this._scope.toName(L);return this._for(new S("in",q,Y,A),()=>N(Y))}endFor(){return this._endBlockNode(v)}label(L){return this._leafNode(new u(L))}break(L){return this._leafNode(new d(L))}return(L){const A=new C;if(this._blockNode(A),this.code(L),A.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try(L,A,N){if(!A&&!N)throw new Error('CodeGen: "try" without "catch" and "finally"');const q=new P;if(this._blockNode(q),this.code(L),A){const Y=this.name("e");this._currNode=q.catch=new k(Y),A(Y)}return N&&(this._currNode=q.finally=new E,this.code(N)),this._endBlockNode(k,E)}throw(L){return this._leafNode(new f(L))}block(L,A){return this._blockStarts.push(this._nodes.length),L&&this.code(L).endBlock(A),this}endBlock(L){const A=this._blockStarts.pop();if(A===void 0)throw new Error("CodeGen: not in self-balancing block");const N=this._nodes.length-A;if(N<0||L!==void 0&&N!==L)throw new Error(`CodeGen: wrong number of nodes: ${N} vs ${L} expected`);return this._nodes.length=A,this}func(L,A=t.nil,N,q){return this._blockNode(new O(L,A,N)),q&&this.code(q).endFunc(),this}endFunc(){return this._endBlockNode(O)}optimize(L=1){for(;L-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(L){return this._currNode.nodes.push(L),this}_blockNode(L){this._currNode.nodes.push(L),this._nodes.push(L)}_endBlockNode(L,A){const N=this._currNode;if(N instanceof L||A&&N instanceof A)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${A?`${L.kind}/${A.kind}`:L.kind}"`)}_elseNode(L){const A=this._currNode;if(!(A instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=A.else=L,this}get _root(){return this._nodes[0]}get _currNode(){const L=this._nodes;return L[L.length-1]}set _currNode(L){const A=this._nodes;A[A.length-1]=L}}e.CodeGen=_;function T(z,L){for(const A in L)z[A]=(z[A]||0)+(L[A]||0);return z}function $(z,L){return L instanceof t._CodeOrName?T(z,L.names):z}function M(z,L,A){if(z instanceof t.Name)return N(z);if(!q(z))return z;return new t._Code(z._items.reduce((Y,G)=>(G instanceof t.Name&&(G=N(G)),G instanceof t._Code?Y.push(...G._items):Y.push(G),Y),[]));function N(Y){const G=A[Y.str];return G===void 0||L[Y.str]!==1?Y:(delete L[Y.str],G)}function q(Y){return Y instanceof t._Code&&Y._items.some(G=>G instanceof t.Name&&L[G.str]===1&&A[G.str]!==void 0)}}function j(z,L){for(const A in L)z[A]=(z[A]||0)-(L[A]||0)}function W(z){return typeof z=="boolean"||typeof z=="number"||z===null?!z:(0,t._)`!${V(z)}`}e.not=W;const U=R(e.operators.AND);function K(...z){return z.reduce(U)}e.and=K;const H=R(e.operators.OR);function F(...z){return z.reduce(H)}e.or=F;function R(z){return(L,A)=>L===t.nil?A:A===t.nil?L:(0,t._)`${V(L)} ${z} ${V(A)}`}function V(z){return z instanceof t.Name?z:(0,t._)`(${z})`}})(St);var Ge={};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.checkStrictMode=Ge.getErrorPath=Ge.Type=Ge.useFunc=Ge.setEvaluated=Ge.evaluatedPropsToName=Ge.mergeEvaluated=Ge.eachItem=Ge.unescapeJsonPointer=Ge.escapeJsonPointer=Ge.escapeFragment=Ge.unescapeFragment=Ge.schemaRefOrVal=Ge.schemaHasRulesButRef=Ge.schemaHasRules=Ge.checkUnknownRules=Ge.alwaysValidSchema=Ge.toHash=void 0;const tn=St,eee=dc;function tee(e){const t={};for(const n of e)t[n]=!0;return t}Ge.toHash=tee;function nee(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(O_(e,t),!E_(t,e.self.RULES.all))}Ge.alwaysValidSchema=nee;function O_(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema||typeof t=="boolean")return;const i=r.RULES.keywords;for(const a in t)i[a]||__(e,`unknown keyword: "${a}"`)}Ge.checkUnknownRules=O_;function E_(e,t){if(typeof e=="boolean")return!e;for(const n in e)if(t[n])return!0;return!1}Ge.schemaHasRules=E_;function ree(e,t){if(typeof e=="boolean")return!e;for(const n in e)if(n!=="$ref"&&t.all[n])return!0;return!1}Ge.schemaHasRulesButRef=ree;function oee({topSchemaRef:e,schemaPath:t},n,r,i){if(!i){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,tn._)`${n}`}return(0,tn._)`${e}${t}${(0,tn.getProperty)(r)}`}Ge.schemaRefOrVal=oee;function iee(e){return C_(decodeURIComponent(e))}Ge.unescapeFragment=iee;function aee(e){return encodeURIComponent(rb(e))}Ge.escapeFragment=aee;function rb(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}Ge.escapeJsonPointer=rb;function C_(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Ge.unescapeJsonPointer=C_;function see(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)}Ge.eachItem=see;function iS({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:r}){return(i,a,s,l)=>{const c=s===void 0?a:s instanceof tn.Name?(a instanceof tn.Name?e(i,a,s):t(i,a,s),s):a instanceof tn.Name?(t(i,s,a),a):n(a,s);return l===tn.Name&&!(c instanceof tn.Name)?r(i,c):c}}Ge.mergeEvaluated={props:iS({mergeNames:(e,t,n)=>e.if((0,tn._)`${n} !== true && ${t} !== undefined`,()=>{e.if((0,tn._)`${t} === true`,()=>e.assign(n,!0),()=>e.assign(n,(0,tn._)`${n} || {}`).code((0,tn._)`Object.assign(${n}, ${t})`))}),mergeToName:(e,t,n)=>e.if((0,tn._)`${n} !== true`,()=>{t===!0?e.assign(n,!0):(e.assign(n,(0,tn._)`${n} || {}`),ob(e,n,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:P_}),items:iS({mergeNames:(e,t,n)=>e.if((0,tn._)`${n} !== true && ${t} !== undefined`,()=>e.assign(n,(0,tn._)`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),mergeToName:(e,t,n)=>e.if((0,tn._)`${n} !== true`,()=>e.assign(n,t===!0?!0:(0,tn._)`${n} > ${t} ? ${n} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function P_(e,t){if(t===!0)return e.var("props",!0);const n=e.var("props",(0,tn._)`{}`);return t!==void 0&&ob(e,n,t),n}Ge.evaluatedPropsToName=P_;function ob(e,t,n){Object.keys(n).forEach(r=>e.assign((0,tn._)`${t}${(0,tn.getProperty)(r)}`,!0))}Ge.setEvaluated=ob;const aS={};function lee(e,t){return e.scopeValue("func",{ref:t,code:aS[t.code]||(aS[t.code]=new eee._Code(t.code))})}Ge.useFunc=lee;var cy;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(cy||(Ge.Type=cy={}));function cee(e,t,n){if(e instanceof tn.Name){const r=t===cy.Num;return n?r?(0,tn._)`"[" + ${e} + "]"`:(0,tn._)`"['" + ${e} + "']"`:r?(0,tn._)`"/" + ${e}`:(0,tn._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,tn.getProperty)(e).toString():"/"+rb(e)}Ge.getErrorPath=cee;function __(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw new Error(t);e.self.logger.warn(t)}}Ge.checkStrictMode=__;var No={};Object.defineProperty(No,"__esModule",{value:!0});const Wn=St,uee={data:new Wn.Name("data"),valCxt:new Wn.Name("valCxt"),instancePath:new Wn.Name("instancePath"),parentData:new Wn.Name("parentData"),parentDataProperty:new Wn.Name("parentDataProperty"),rootData:new Wn.Name("rootData"),dynamicAnchors:new Wn.Name("dynamicAnchors"),vErrors:new Wn.Name("vErrors"),errors:new Wn.Name("errors"),this:new Wn.Name("this"),self:new Wn.Name("self"),scope:new Wn.Name("scope"),json:new Wn.Name("json"),jsonPos:new Wn.Name("jsonPos"),jsonLen:new Wn.Name("jsonLen"),jsonPart:new Wn.Name("jsonPart")};No.default=uee;(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=St,n=Ge,r=No;e.keywordError={message:({keyword:y})=>(0,t.str)`must pass "${y}" keyword validation`},e.keyword$DataError={message:({keyword:y,schemaType:g})=>g?(0,t.str)`"${y}" keyword must be ${g} ($data)`:(0,t.str)`"${y}" keyword is invalid ($data)`};function i(y,g=e.keywordError,v,x){const{it:w}=y,{gen:S,compositeRule:O,allErrors:C}=w,P=f(y,g,v);x??(O||C)?c(S,P):u(w,(0,t._)`[${P}]`)}e.reportError=i;function a(y,g=e.keywordError,v){const{it:x}=y,{gen:w,compositeRule:S,allErrors:O}=x,C=f(y,g,v);c(w,C),S||O||u(x,r.default.vErrors)}e.reportExtraError=a;function s(y,g){y.assign(r.default.errors,g),y.if((0,t._)`${r.default.vErrors} !== null`,()=>y.if(g,()=>y.assign((0,t._)`${r.default.vErrors}.length`,g),()=>y.assign(r.default.vErrors,null)))}e.resetErrorsCount=s;function l({gen:y,keyword:g,schemaValue:v,data:x,errsCount:w,it:S}){if(w===void 0)throw new Error("ajv implementation error");const O=y.name("err");y.forRange("i",w,r.default.errors,C=>{y.const(O,(0,t._)`${r.default.vErrors}[${C}]`),y.if((0,t._)`${O}.instancePath === undefined`,()=>y.assign((0,t._)`${O}.instancePath`,(0,t.strConcat)(r.default.instancePath,S.errorPath))),y.assign((0,t._)`${O}.schemaPath`,(0,t.str)`${S.errSchemaPath}/${g}`),S.opts.verbose&&(y.assign((0,t._)`${O}.schema`,v),y.assign((0,t._)`${O}.data`,x))})}e.extendErrors=l;function c(y,g){const v=y.const("err",g);y.if((0,t._)`${r.default.vErrors} === null`,()=>y.assign(r.default.vErrors,(0,t._)`[${v}]`),(0,t._)`${r.default.vErrors}.push(${v})`),y.code((0,t._)`${r.default.errors}++`)}function u(y,g){const{gen:v,validateName:x,schemaEnv:w}=y;w.$async?v.throw((0,t._)`new ${y.ValidationError}(${g})`):(v.assign((0,t._)`${x}.errors`,g),v.return(!1))}const d={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function f(y,g,v){const{createErrors:x}=y.it;return x===!1?(0,t._)`{}`:h(y,g,v)}function h(y,g,v={}){const{gen:x,it:w}=y,S=[p(w,v),b(y,v)];return m(y,g,S),x.object(...S)}function p({errorPath:y},{instancePath:g}){const v=g?(0,t.str)`${y}${(0,n.getErrorPath)(g,n.Type.Str)}`:y;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,v)]}function b({keyword:y,it:{errSchemaPath:g}},{schemaPath:v,parentSchema:x}){let w=x?g:(0,t.str)`${g}/${y}`;return v&&(w=(0,t.str)`${w}${(0,n.getErrorPath)(v,n.Type.Str)}`),[d.schemaPath,w]}function m(y,{params:g,message:v},x){const{keyword:w,data:S,schemaValue:O,it:C}=y,{opts:P,propertyName:k,topSchemaRef:E,schemaPath:_}=C;x.push([d.keyword,w],[d.params,typeof g=="function"?g(y):g||(0,t._)`{}`]),P.messages&&x.push([d.message,typeof v=="function"?v(y):v]),P.verbose&&x.push([d.schema,O],[d.parentSchema,(0,t._)`${E}${_}`],[r.default.data,S]),k&&x.push([d.propertyName,k])}})(eu);Object.defineProperty(gs,"__esModule",{value:!0});gs.boolOrEmptySchema=gs.topBoolOrEmptySchema=void 0;const dee=eu,fee=St,pee=No,hee={message:"boolean schema is false"};function mee(e){const{gen:t,schema:n,validateName:r}=e;n===!1?k_(e,!1):typeof n=="object"&&n.$async===!0?t.return(pee.default.data):(t.assign((0,fee._)`${r}.errors`,null),t.return(!0))}gs.topBoolOrEmptySchema=mee;function yee(e,t){const{gen:n,schema:r}=e;r===!1?(n.var(t,!1),k_(e)):n.var(t,!0)}gs.boolOrEmptySchema=yee;function k_(e,t){const{gen:n,data:r}=e,i={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,dee.reportError)(i,hee,void 0,t)}var kn={},na={};Object.defineProperty(na,"__esModule",{value:!0});na.getRules=na.isJSONType=void 0;const gee=["string","number","integer","boolean","null","object","array"],bee=new Set(gee);function vee(e){return typeof e=="string"&&bee.has(e)}na.isJSONType=vee;function wee(){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:{}}}na.getRules=wee;var zo={};Object.defineProperty(zo,"__esModule",{value:!0});zo.shouldUseRule=zo.shouldUseGroup=zo.schemaHasRulesForType=void 0;function xee({schema:e,self:t},n){const r=t.RULES.types[n];return r&&r!==!0&&D_(e,r)}zo.schemaHasRulesForType=xee;function D_(e,t){return t.rules.some(n=>$_(e,n))}zo.shouldUseGroup=D_;function $_(e,t){var n;return e[t.keyword]!==void 0||((n=t.definition.implements)===null||n===void 0?void 0:n.some(r=>e[r]!==void 0))}zo.shouldUseRule=$_;Object.defineProperty(kn,"__esModule",{value:!0});kn.reportTypeError=kn.checkDataTypes=kn.checkDataType=kn.coerceAndCheckDataType=kn.getJSONTypes=kn.getSchemaTypes=kn.DataType=void 0;const See=na,Tee=zo,Oee=eu,vt=St,R_=Ge;var Za;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Za||(kn.DataType=Za={}));function Eee(e){const t=M_(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}kn.getSchemaTypes=Eee;function M_(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(See.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}kn.getJSONTypes=M_;function Cee(e,t){const{gen:n,data:r,opts:i}=e,a=Pee(t,i.coerceTypes),s=t.length>0&&!(a.length===0&&t.length===1&&(0,Tee.schemaHasRulesForType)(e,t[0]));if(s){const l=ib(t,r,i.strictNumbers,Za.Wrong);n.if(l,()=>{a.length?_ee(e,t,a):ab(e)})}return s}kn.coerceAndCheckDataType=Cee;const I_=new Set(["string","number","integer","boolean","null"]);function Pee(e,t){return t?e.filter(n=>I_.has(n)||t==="array"&&n==="array"):[]}function _ee(e,t,n){const{gen:r,data:i,opts:a}=e,s=r.let("dataType",(0,vt._)`typeof ${i}`),l=r.let("coerced",(0,vt._)`undefined`);a.coerceTypes==="array"&&r.if((0,vt._)`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>r.assign(i,(0,vt._)`${i}[0]`).assign(s,(0,vt._)`typeof ${i}`).if(ib(t,i,a.strictNumbers),()=>r.assign(l,i))),r.if((0,vt._)`${l} !== undefined`);for(const u of n)(I_.has(u)||u==="array"&&a.coerceTypes==="array")&&c(u);r.else(),ab(e),r.endIf(),r.if((0,vt._)`${l} !== undefined`,()=>{r.assign(i,l),kee(e,l)});function c(u){switch(u){case"string":r.elseIf((0,vt._)`${s} == "number" || ${s} == "boolean"`).assign(l,(0,vt._)`"" + ${i}`).elseIf((0,vt._)`${i} === null`).assign(l,(0,vt._)`""`);return;case"number":r.elseIf((0,vt._)`${s} == "boolean" || ${i} === null
              || (${s} == "string" && ${i} && ${i} == +${i})`).assign(l,(0,vt._)`+${i}`);return;case"integer":r.elseIf((0,vt._)`${s} === "boolean" || ${i} === null
              || (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(l,(0,vt._)`+${i}`);return;case"boolean":r.elseIf((0,vt._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(l,!1).elseIf((0,vt._)`${i} === "true" || ${i} === 1`).assign(l,!0);return;case"null":r.elseIf((0,vt._)`${i} === "" || ${i} === 0 || ${i} === false`),r.assign(l,null);return;case"array":r.elseIf((0,vt._)`${s} === "string" || ${s} === "number"
              || ${s} === "boolean" || ${i} === null`).assign(l,(0,vt._)`[${i}]`)}}}function kee({gen:e,parentData:t,parentDataProperty:n},r){e.if((0,vt._)`${t} !== undefined`,()=>e.assign((0,vt._)`${t}[${n}]`,r))}function uy(e,t,n,r=Za.Correct){const i=r===Za.Correct?vt.operators.EQ:vt.operators.NEQ;let a;switch(e){case"null":return(0,vt._)`${t} ${i} null`;case"array":a=(0,vt._)`Array.isArray(${t})`;break;case"object":a=(0,vt._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=s((0,vt._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=s();break;default:return(0,vt._)`typeof ${t} ${i} ${e}`}return r===Za.Correct?a:(0,vt.not)(a);function s(l=vt.nil){return(0,vt.and)((0,vt._)`typeof ${t} == "number"`,l,n?(0,vt._)`isFinite(${t})`:vt.nil)}}kn.checkDataType=uy;function ib(e,t,n,r){if(e.length===1)return uy(e[0],t,n,r);let i;const a=(0,R_.toHash)(e);if(a.array&&a.object){const s=(0,vt._)`typeof ${t} != "object"`;i=a.null?s:(0,vt._)`!${t} || ${s}`,delete a.null,delete a.array,delete a.object}else i=vt.nil;a.number&&delete a.integer;for(const s in a)i=(0,vt.and)(i,uy(s,t,n,r));return i}kn.checkDataTypes=ib;const Dee={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,vt._)`{type: ${e}}`:(0,vt._)`{type: ${t}}`};function ab(e){const t=$ee(e);(0,Oee.reportError)(t,Dee)}kn.reportTypeError=ab;function $ee(e){const{gen:t,data:n,schema:r}=e,i=(0,R_.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}var Tp={};Object.defineProperty(Tp,"__esModule",{value:!0});Tp.assignDefaults=void 0;const Pa=St,Ree=Ge;function Mee(e,t){const{properties:n,items:r}=e.schema;if(t==="object"&&n)for(const i in n)sS(e,i,n[i].default);else t==="array"&&Array.isArray(r)&&r.forEach((i,a)=>sS(e,a,i.default))}Tp.assignDefaults=Mee;function sS(e,t,n){const{gen:r,compositeRule:i,data:a,opts:s}=e;if(n===void 0)return;const l=(0,Pa._)`${a}${(0,Pa.getProperty)(t)}`;if(i){(0,Ree.checkStrictMode)(e,`default is ignored for: ${l}`);return}let c=(0,Pa._)`${l} === undefined`;s.useDefaults==="empty"&&(c=(0,Pa._)`${c} || ${l} === null || ${l} === ""`),r.if(c,(0,Pa._)`${l} = ${(0,Pa.stringify)(n)}`)}var Eo={},Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.validateUnion=Ct.validateArray=Ct.usePattern=Ct.callValidateCode=Ct.schemaProperties=Ct.allSchemaProperties=Ct.noPropertyInData=Ct.propertyInData=Ct.isOwnProperty=Ct.hasPropFunc=Ct.reportMissingProp=Ct.checkMissingProp=Ct.checkReportMissingProp=void 0;const an=St,sb=Ge,ai=No,Iee=Ge;function Nee(e,t){const{gen:n,data:r,it:i}=e;n.if(cb(n,r,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,an._)`${t}`},!0),e.error()})}Ct.checkReportMissingProp=Nee;function Aee({gen:e,data:t,it:{opts:n}},r,i){return(0,an.or)(...r.map(a=>(0,an.and)(cb(e,t,a,n.ownProperties),(0,an._)`${i} = ${a}`)))}Ct.checkMissingProp=Aee;function jee(e,t){e.setParams({missingProperty:t},!0),e.error()}Ct.reportMissingProp=jee;function N_(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,an._)`Object.prototype.hasOwnProperty`})}Ct.hasPropFunc=N_;function lb(e,t,n){return(0,an._)`${N_(e)}.call(${t}, ${n})`}Ct.isOwnProperty=lb;function Lee(e,t,n,r){const i=(0,an._)`${t}${(0,an.getProperty)(n)} !== undefined`;return r?(0,an._)`${i} && ${lb(e,t,n)}`:i}Ct.propertyInData=Lee;function cb(e,t,n,r){const i=(0,an._)`${t}${(0,an.getProperty)(n)} === undefined`;return r?(0,an.or)(i,(0,an.not)(lb(e,t,n))):i}Ct.noPropertyInData=cb;function A_(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ct.allSchemaProperties=A_;function Fee(e,t){return A_(t).filter(n=>!(0,sb.alwaysValidSchema)(e,t[n]))}Ct.schemaProperties=Fee;function Bee({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:i,errorPath:a},it:s},l,c,u){const d=u?(0,an._)`${e}, ${t}, ${r}${i}`:t,f=[[ai.default.instancePath,(0,an.strConcat)(ai.default.instancePath,a)],[ai.default.parentData,s.parentData],[ai.default.parentDataProperty,s.parentDataProperty],[ai.default.rootData,ai.default.rootData]];s.opts.dynamicRef&&f.push([ai.default.dynamicAnchors,ai.default.dynamicAnchors]);const h=(0,an._)`${d}, ${n.object(...f)}`;return c!==an.nil?(0,an._)`${l}.call(${c}, ${h})`:(0,an._)`${l}(${h})`}Ct.callValidateCode=Bee;const Vee=(0,an._)`new RegExp`;function zee({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:i}=t.code,a=i(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,an._)`${i.code==="new RegExp"?Vee:(0,Iee.useFunc)(e,i)}(${n}, ${r})`})}Ct.usePattern=zee;function Wee(e){const{gen:t,data:n,keyword:r,it:i}=e,a=t.name("valid");if(i.allErrors){const l=t.let("valid",!0);return s(()=>t.assign(l,!1)),l}return t.var(a,!0),s(()=>t.break()),a;function s(l){const c=t.const("len",(0,an._)`${n}.length`);t.forRange("i",0,c,u=>{e.subschema({keyword:r,dataProp:u,dataPropType:sb.Type.Num},a),t.if((0,an.not)(a),l)})}}Ct.validateArray=Wee;function Uee(e){const{gen:t,schema:n,keyword:r,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(c=>(0,sb.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;const s=t.let("valid",!1),l=t.name("_valid");t.block(()=>n.forEach((c,u)=>{const d=e.subschema({keyword:r,schemaProp:u,compositeRule:!0},l);t.assign(s,(0,an._)`${s} || ${l}`),e.mergeValidEvaluated(d,l)||t.if((0,an.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Ct.validateUnion=Uee;Object.defineProperty(Eo,"__esModule",{value:!0});Eo.validateKeywordUsage=Eo.validSchemaType=Eo.funcKeywordCode=Eo.macroKeywordCode=void 0;const Qn=St,Fi=No,qee=Ct,Hee=eu;function Yee(e,t){const{gen:n,keyword:r,schema:i,parentSchema:a,it:s}=e,l=t.macro.call(s.self,i,a,s),c=j_(n,r,l);s.opts.validateSchema!==!1&&s.self.validateSchema(l,!0);const u=n.name("valid");e.subschema({schema:l,schemaPath:Qn.nil,errSchemaPath:`${s.errSchemaPath}/${r}`,topSchemaRef:c,compositeRule:!0},u),e.pass(u,()=>e.error(!0))}Eo.macroKeywordCode=Yee;function Gee(e,t){var n;const{gen:r,keyword:i,schema:a,parentSchema:s,$data:l,it:c}=e;Xee(c,t);const u=!l&&t.compile?t.compile.call(c.self,a,s,c):t.validate,d=j_(r,i,u),f=r.let("valid");e.block$data(f,h),e.ok((n=t.valid)!==null&&n!==void 0?n:f);function h(){if(t.errors===!1)m(),t.modifying&&lS(e),y(()=>e.error());else{const g=t.async?p():b();t.modifying&&lS(e),y(()=>Kee(e,g))}}function p(){const g=r.let("ruleErrs",null);return r.try(()=>m((0,Qn._)`await `),v=>r.assign(f,!1).if((0,Qn._)`${v} instanceof ${c.ValidationError}`,()=>r.assign(g,(0,Qn._)`${v}.errors`),()=>r.throw(v))),g}function b(){const g=(0,Qn._)`${d}.errors`;return r.assign(g,null),m(Qn.nil),g}function m(g=t.async?(0,Qn._)`await `:Qn.nil){const v=c.opts.passContext?Fi.default.this:Fi.default.self,x=!("compile"in t&&!l||t.schema===!1);r.assign(f,(0,Qn._)`${g}${(0,qee.callValidateCode)(e,d,v,x)}`,t.modifying)}function y(g){var v;r.if((0,Qn.not)((v=t.valid)!==null&&v!==void 0?v:f),g)}}Eo.funcKeywordCode=Gee;function lS(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,()=>t.assign(n,(0,Qn._)`${r.parentData}[${r.parentDataProperty}]`))}function Kee(e,t){const{gen:n}=e;n.if((0,Qn._)`Array.isArray(${t})`,()=>{n.assign(Fi.default.vErrors,(0,Qn._)`${Fi.default.vErrors} === null ? ${t} : ${Fi.default.vErrors}.concat(${t})`).assign(Fi.default.errors,(0,Qn._)`${Fi.default.vErrors}.length`),(0,Hee.extendErrors)(e)},()=>e.error())}function Xee({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function j_(e,t,n){if(n===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,Qn.stringify)(n)})}function Zee(e,t,n=!1){return!t.length||t.some(r=>r==="array"?Array.isArray(e):r==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==r||n&&typeof e>"u")}Eo.validSchemaType=Zee;function Qee({schema:e,opts:t,self:n,errSchemaPath:r},i,a){if(Array.isArray(i.keyword)?!i.keyword.includes(a):i.keyword!==a)throw new Error("ajv implementation error");const s=i.dependencies;if(s!=null&&s.some(l=>!Object.prototype.hasOwnProperty.call(e,l)))throw new Error(`parent schema must have dependencies of ${a}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[a])){const c=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")n.logger.error(c);else throw new Error(c)}}Eo.validateKeywordUsage=Qee;var mi={};Object.defineProperty(mi,"__esModule",{value:!0});mi.extendSubschemaMode=mi.extendSubschemaData=mi.getSubschema=void 0;const xo=St,L_=Ge;function Jee(e,{keyword:t,schemaProp:n,schema:r,schemaPath:i,errSchemaPath:a,topSchemaRef:s}){if(t!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const l=e.schema[t];return n===void 0?{schema:l,schemaPath:(0,xo._)`${e.schemaPath}${(0,xo.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:l[n],schemaPath:(0,xo._)`${e.schemaPath}${(0,xo.getProperty)(t)}${(0,xo.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,L_.escapeFragment)(n)}`}}if(r!==void 0){if(i===void 0||a===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:i,topSchemaRef:s,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}mi.getSubschema=Jee;function ete(e,t,{dataProp:n,dataPropType:r,data:i,dataTypes:a,propertyName:s}){if(i!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=t;if(n!==void 0){const{errorPath:u,dataPathArr:d,opts:f}=t,h=l.let("data",(0,xo._)`${t.data}${(0,xo.getProperty)(n)}`,!0);c(h),e.errorPath=(0,xo.str)`${u}${(0,L_.getErrorPath)(n,r,f.jsPropertySyntax)}`,e.parentDataProperty=(0,xo._)`${n}`,e.dataPathArr=[...d,e.parentDataProperty]}if(i!==void 0){const u=i instanceof xo.Name?i:l.let("data",i,!0);c(u),s!==void 0&&(e.propertyName=s)}a&&(e.dataTypes=a);function c(u){e.data=u,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,u]}}mi.extendSubschemaData=ete;function tte(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:a}){r!==void 0&&(e.compositeRule=r),i!==void 0&&(e.createErrors=i),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}mi.extendSubschemaMode=tte;var Bn={},F_={exports:{}},pi=F_.exports=function(e,t,n){typeof t=="function"&&(n=t,t={}),n=t.cb||n;var r=typeof n=="function"?n:n.pre||function(){},i=n.post||function(){};od(t,r,i,e,"",e)};pi.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};pi.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};pi.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};pi.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function od(e,t,n,r,i,a,s,l,c,u){if(r&&typeof r=="object"&&!Array.isArray(r)){t(r,i,a,s,l,c,u);for(var d in r){var f=r[d];if(Array.isArray(f)){if(d in pi.arrayKeywords)for(var h=0;h<f.length;h++)od(e,t,n,f[h],i+"/"+d+"/"+h,a,i,d,r,h)}else if(d in pi.propsKeywords){if(f&&typeof f=="object")for(var p in f)od(e,t,n,f[p],i+"/"+d+"/"+nte(p),a,i,d,r,p)}else(d in pi.keywords||e.allKeys&&!(d in pi.skipKeywords))&&od(e,t,n,f,i+"/"+d,a,i,d,r)}n(r,i,a,s,l,c,u)}}function nte(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var rte=F_.exports;Object.defineProperty(Bn,"__esModule",{value:!0});Bn.getSchemaRefs=Bn.resolveUrl=Bn.normalizeId=Bn._getFullPath=Bn.getFullPath=Bn.inlineRef=void 0;const ote=Ge,ite=rg,ate=rte,ste=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function lte(e,t=!0){return typeof e=="boolean"?!0:t===!0?!dy(e):t?B_(e)<=t:!1}Bn.inlineRef=lte;const cte=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function dy(e){for(const t in e){if(cte.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(dy)||typeof n=="object"&&dy(n))return!0}return!1}function B_(e){let t=0;for(const n in e){if(n==="$ref")return 1/0;if(t++,!ste.has(n)&&(typeof e[n]=="object"&&(0,ote.eachItem)(e[n],r=>t+=B_(r)),t===1/0))return 1/0}return t}function V_(e,t="",n){n!==!1&&(t=Qa(t));const r=e.parse(t);return z_(e,r)}Bn.getFullPath=V_;function z_(e,t){return e.serialize(t).split("#")[0]+"#"}Bn._getFullPath=z_;const ute=/#\/?$/;function Qa(e){return e?e.replace(ute,""):""}Bn.normalizeId=Qa;function dte(e,t,n){return n=Qa(n),e.resolve(t,n)}Bn.resolveUrl=dte;const fte=/^[a-z_][-a-z0-9._]*$/i;function pte(e,t){if(typeof e=="boolean")return{};const{schemaId:n,uriResolver:r}=this.opts,i=Qa(e[n]||t),a={"":i},s=V_(r,i,!1),l={},c=new Set;return ate(e,{allKeys:!0},(f,h,p,b)=>{if(b===void 0)return;const m=s+h;let y=a[b];typeof f[n]=="string"&&(y=g.call(this,f[n])),v.call(this,f.$anchor),v.call(this,f.$dynamicAnchor),a[h]=y;function g(x){const w=this.opts.uriResolver.resolve;if(x=Qa(y?w(y,x):x),c.has(x))throw d(x);c.add(x);let S=this.refs[x];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?u(f,S.schema,x):x!==Qa(m)&&(x[0]==="#"?(u(f,l[x],x),l[x]=f):this.refs[x]=m),x}function v(x){if(typeof x=="string"){if(!fte.test(x))throw new Error(`invalid anchor "${x}"`);g.call(this,`#${x}`)}}}),l;function u(f,h,p){if(h!==void 0&&!ite(f,h))throw d(p)}function d(f){return new Error(`reference "${f}" resolves to more than one schema`)}}Bn.getSchemaRefs=pte;Object.defineProperty(io,"__esModule",{value:!0});io.getData=io.KeywordCxt=io.validateFunctionCode=void 0;const W_=gs,cS=kn,ub=zo,qd=kn,hte=Tp,zl=Eo,Uh=mi,rt=St,ct=No,mte=Bn,Wo=Ge,fl=eu;function yte(e){if(H_(e)&&(Y_(e),q_(e))){vte(e);return}U_(e,()=>(0,W_.topBoolOrEmptySchema)(e))}io.validateFunctionCode=yte;function U_({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},a){i.code.es5?e.func(t,(0,rt._)`${ct.default.data}, ${ct.default.valCxt}`,r.$async,()=>{e.code((0,rt._)`"use strict"; ${uS(n,i)}`),bte(e,i),e.code(a)}):e.func(t,(0,rt._)`${ct.default.data}, ${gte(i)}`,r.$async,()=>e.code(uS(n,i)).code(a))}function gte(e){return(0,rt._)`{${ct.default.instancePath}="", ${ct.default.parentData}, ${ct.default.parentDataProperty}, ${ct.default.rootData}=${ct.default.data}${e.dynamicRef?(0,rt._)`, ${ct.default.dynamicAnchors}={}`:rt.nil}}={}`}function bte(e,t){e.if(ct.default.valCxt,()=>{e.var(ct.default.instancePath,(0,rt._)`${ct.default.valCxt}.${ct.default.instancePath}`),e.var(ct.default.parentData,(0,rt._)`${ct.default.valCxt}.${ct.default.parentData}`),e.var(ct.default.parentDataProperty,(0,rt._)`${ct.default.valCxt}.${ct.default.parentDataProperty}`),e.var(ct.default.rootData,(0,rt._)`${ct.default.valCxt}.${ct.default.rootData}`),t.dynamicRef&&e.var(ct.default.dynamicAnchors,(0,rt._)`${ct.default.valCxt}.${ct.default.dynamicAnchors}`)},()=>{e.var(ct.default.instancePath,(0,rt._)`""`),e.var(ct.default.parentData,(0,rt._)`undefined`),e.var(ct.default.parentDataProperty,(0,rt._)`undefined`),e.var(ct.default.rootData,ct.default.data),t.dynamicRef&&e.var(ct.default.dynamicAnchors,(0,rt._)`{}`)})}function vte(e){const{schema:t,opts:n,gen:r}=e;U_(e,()=>{n.$comment&&t.$comment&&K_(e),Ote(e),r.let(ct.default.vErrors,null),r.let(ct.default.errors,0),n.unevaluated&&wte(e),G_(e),Pte(e)})}function wte(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",(0,rt._)`${n}.evaluated`),t.if((0,rt._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,rt._)`${e.evaluated}.props`,(0,rt._)`undefined`)),t.if((0,rt._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,rt._)`${e.evaluated}.items`,(0,rt._)`undefined`))}function uS(e,t){const n=typeof e=="object"&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,rt._)`/*# sourceURL=${n} */`:rt.nil}function xte(e,t){if(H_(e)&&(Y_(e),q_(e))){Ste(e,t);return}(0,W_.boolOrEmptySchema)(e,t)}function q_({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function H_(e){return typeof e.schema!="boolean"}function Ste(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&K_(e),Ete(e),Cte(e);const a=r.const("_errs",ct.default.errors);G_(e,a),r.var(t,(0,rt._)`${a} === ${ct.default.errors}`)}function Y_(e){(0,Wo.checkUnknownRules)(e),Tte(e)}function G_(e,t){if(e.opts.jtd)return dS(e,[],!1,t);const n=(0,cS.getSchemaTypes)(e.schema),r=(0,cS.coerceAndCheckDataType)(e,n);dS(e,n,!r,t)}function Tte(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,Wo.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function Ote(e){const{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,Wo.checkStrictMode)(e,"default is ignored in the schema root")}function Ete(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,mte.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Cte(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function K_({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const a=n.$comment;if(i.$comment===!0)e.code((0,rt._)`${ct.default.self}.logger.log(${a})`);else if(typeof i.$comment=="function"){const s=(0,rt.str)`${r}/$comment`,l=e.scopeValue("root",{ref:t.root});e.code((0,rt._)`${ct.default.self}.opts.$comment(${a}, ${s}, ${l}.schema)`)}}function Pte(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:a}=e;n.$async?t.if((0,rt._)`${ct.default.errors} === 0`,()=>t.return(ct.default.data),()=>t.throw((0,rt._)`new ${i}(${ct.default.vErrors})`)):(t.assign((0,rt._)`${r}.errors`,ct.default.vErrors),a.unevaluated&&_te(e),t.return((0,rt._)`${ct.default.errors} === 0`))}function _te({gen:e,evaluated:t,props:n,items:r}){n instanceof rt.Name&&e.assign((0,rt._)`${t}.props`,n),r instanceof rt.Name&&e.assign((0,rt._)`${t}.items`,r)}function dS(e,t,n,r){const{gen:i,schema:a,data:s,allErrors:l,opts:c,self:u}=e,{RULES:d}=u;if(a.$ref&&(c.ignoreKeywordsWithRef||!(0,Wo.schemaHasRulesButRef)(a,d))){i.block(()=>Q_(e,"$ref",d.all.$ref.definition));return}c.jtd||kte(e,t),i.block(()=>{for(const h of d.rules)f(h);f(d.post)});function f(h){(0,ub.shouldUseGroup)(a,h)&&(h.type?(i.if((0,qd.checkDataType)(h.type,s,c.strictNumbers)),fS(e,h),t.length===1&&t[0]===h.type&&n&&(i.else(),(0,qd.reportTypeError)(e)),i.endIf()):fS(e,h),l||i.if((0,rt._)`${ct.default.errors} === ${r||0}`))}}function fS(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,hte.assignDefaults)(e,t.type),n.block(()=>{for(const a of t.rules)(0,ub.shouldUseRule)(r,a)&&Q_(e,a.keyword,a.definition,t.type)})}function kte(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Dte(e,t),e.opts.allowUnionTypes||$te(e,t),Rte(e,e.dataTypes))}function Dte(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(n=>{X_(e.dataTypes,n)||db(e,`type "${n}" not allowed by context "${e.dataTypes.join(",")}"`)}),Ite(e,t)}}function $te(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&db(e,"use allowUnionTypes to allow union type keyword")}function Rte(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if(typeof i=="object"&&(0,ub.shouldUseRule)(e.schema,i)){const{type:a}=i.definition;a.length&&!a.some(s=>Mte(t,s))&&db(e,`missing type "${a.join(",")}" for keyword "${r}"`)}}}function Mte(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function X_(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Ite(e,t){const n=[];for(const r of e.dataTypes)X_(t,r)?n.push(r):t.includes("integer")&&r==="number"&&n.push("integer");e.dataTypes=n}function db(e,t){const n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,Wo.checkStrictMode)(e,t,e.opts.strictTypes)}class Z_{constructor(t,n,r){if((0,zl.validateKeywordUsage)(t,n,r),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=r,this.data=t.data,this.schema=t.schema[r],this.$data=n.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Wo.schemaRefOrVal)(t,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=n,this.$data)this.schemaCode=t.gen.const("vSchema",J_(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,zl.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=t.gen.const("_errs",ct.default.errors))}result(t,n,r){this.failResult((0,rt.not)(t),n,r)}failResult(t,n,r){this.gen.if(t),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,n){this.failResult((0,rt.not)(t),void 0,n)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:n}=this;this.fail((0,rt._)`${n} !== undefined && (${(0,rt.or)(this.invalid$data(),t)})`)}error(t,n,r){if(n){this.setParams(n),this._error(t,r),this.setParams({});return}this._error(t,r)}_error(t,n){(t?fl.reportExtraError:fl.reportError)(this,this.def.error,n)}$dataError(){(0,fl.reportError)(this,this.def.$dataError||fl.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,fl.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,n){n?Object.assign(this.params,t):this.params=t}block$data(t,n,r=rt.nil){this.gen.block(()=>{this.check$data(t,r),n()})}check$data(t=rt.nil,n=rt.nil){if(!this.$data)return;const{gen:r,schemaCode:i,schemaType:a,def:s}=this;r.if((0,rt.or)((0,rt._)`${i} === undefined`,n)),t!==rt.nil&&r.assign(t,!0),(a.length||s.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),t!==rt.nil&&r.assign(t,!1)),r.else()}invalid$data(){const{gen:t,schemaCode:n,schemaType:r,def:i,it:a}=this;return(0,rt.or)(s(),l());function s(){if(r.length){if(!(n instanceof rt.Name))throw new Error("ajv implementation error");const c=Array.isArray(r)?r:[r];return(0,rt._)`${(0,qd.checkDataTypes)(c,n,a.opts.strictNumbers,qd.DataType.Wrong)}`}return rt.nil}function l(){if(i.validateSchema){const c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,rt._)`!${c}(${n})`}return rt.nil}}subschema(t,n){const r=(0,Uh.getSubschema)(this.it,t);(0,Uh.extendSubschemaData)(r,this.it,t),(0,Uh.extendSubschemaMode)(r,t);const i={...this.it,...r,items:void 0,props:void 0};return xte(i,n),i}mergeEvaluated(t,n){const{it:r,gen:i}=this;r.opts.unevaluated&&(r.props!==!0&&t.props!==void 0&&(r.props=Wo.mergeEvaluated.props(i,t.props,r.props,n)),r.items!==!0&&t.items!==void 0&&(r.items=Wo.mergeEvaluated.items(i,t.items,r.items,n)))}mergeValidEvaluated(t,n){const{it:r,gen:i}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return i.if(n,()=>this.mergeEvaluated(t,rt.Name)),!0}}io.KeywordCxt=Z_;function Q_(e,t,n,r){const i=new Z_(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,zl.funcKeywordCode)(i,n):"macro"in n?(0,zl.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,zl.funcKeywordCode)(i,n)}const Nte=/^\/(?:[^~]|~0|~1)*$/,Ate=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function J_(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,a;if(e==="")return ct.default.rootData;if(e[0]==="/"){if(!Nte.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,a=ct.default.rootData}else{const u=Ate.exec(e);if(!u)throw new Error(`Invalid JSON-pointer: ${e}`);const d=+u[1];if(i=u[2],i==="#"){if(d>=t)throw new Error(c("property/index",d));return r[t-d]}if(d>t)throw new Error(c("data",d));if(a=n[t-d],!i)return a}let s=a;const l=i.split("/");for(const u of l)u&&(a=(0,rt._)`${a}${(0,rt.getProperty)((0,Wo.unescapeJsonPointer)(u))}`,s=(0,rt._)`${s} && ${a}`);return s;function c(u,d){return`Cannot access ${u} ${d} levels up, current level is ${t}`}}io.getData=J_;var tu={};Object.defineProperty(tu,"__esModule",{value:!0});class jte extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}tu.default=jte;var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});const qh=Bn;class Lte extends Error{constructor(t,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,qh.resolveUrl)(t,n,r),this.missingSchema=(0,qh.normalizeId)((0,qh.getFullPath)(t,this.missingRef))}}Ws.default=Lte;var ir={};Object.defineProperty(ir,"__esModule",{value:!0});ir.resolveSchema=ir.getCompilingSchema=ir.resolveRef=ir.compileSchema=ir.SchemaEnv=void 0;const Zr=St,Fte=tu,Di=No,no=Bn,pS=Ge,Bte=io;class Op{constructor(t){var n;this.refs={},this.dynamicAnchors={};let r;typeof t.schema=="object"&&(r=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(n=t.baseId)!==null&&n!==void 0?n:(0,no.normalizeId)(r==null?void 0:r[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=r==null?void 0:r.$async,this.refs={}}}ir.SchemaEnv=Op;function fb(e){const t=ek.call(this,e);if(t)return t;const n=(0,no.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:r,lines:i}=this.opts.code,{ownProperties:a}=this.opts,s=new Zr.CodeGen(this.scope,{es5:r,lines:i,ownProperties:a});let l;e.$async&&(l=s.scopeValue("Error",{ref:Fte.default,code:(0,Zr._)`require("ajv/dist/runtime/validation_error").default`}));const c=s.scopeName("validate");e.validateName=c;const u={gen:s,allErrors:this.opts.allErrors,data:Di.default.data,parentData:Di.default.parentData,parentDataProperty:Di.default.parentDataProperty,dataNames:[Di.default.data],dataPathArr:[Zr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Zr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:l,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:Zr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Zr._)`""`,opts:this.opts,self:this};let d;try{this._compilations.add(e),(0,Bte.validateFunctionCode)(u),s.optimize(this.opts.code.optimize);const f=s.toString();d=`${s.scopeRefs(Di.default.scope)}return ${f}`,this.opts.code.process&&(d=this.opts.code.process(d,e));const p=new Function(`${Di.default.self}`,`${Di.default.scope}`,d)(this,this.scope.get());if(this.scope.value(c,{ref:p}),p.errors=null,p.schema=e.schema,p.schemaEnv=e,e.$async&&(p.$async=!0),this.opts.code.source===!0&&(p.source={validateName:c,validateCode:f,scopeValues:s._values}),this.opts.unevaluated){const{props:b,items:m}=u;p.evaluated={props:b instanceof Zr.Name?void 0:b,items:m instanceof Zr.Name?void 0:m,dynamicProps:b instanceof Zr.Name,dynamicItems:m instanceof Zr.Name},p.source&&(p.source.evaluated=(0,Zr.stringify)(p.evaluated))}return e.validate=p,e}catch(f){throw delete e.validate,delete e.validateName,d&&this.logger.error("Error compiling schema, function code:",d),f}finally{this._compilations.delete(e)}}ir.compileSchema=fb;function Vte(e,t,n){var r;n=(0,no.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let a=Ute.call(this,e,n);if(a===void 0){const s=(r=e.localRefs)===null||r===void 0?void 0:r[n],{schemaId:l}=this.opts;s&&(a=new Op({schema:s,schemaId:l,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=zte.call(this,a)}ir.resolveRef=Vte;function zte(e){return(0,no.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:fb.call(this,e)}function ek(e){for(const t of this._compilations)if(Wte(t,e))return t}ir.getCompilingSchema=ek;function Wte(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Ute(e,t){let n;for(;typeof(n=this.refs[t])=="string";)t=n;return n||this.schemas[t]||Ep.call(this,e,t)}function Ep(e,t){const n=this.opts.uriResolver.parse(t),r=(0,no._getFullPath)(this.opts.uriResolver,n);let i=(0,no.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return Hh.call(this,n,e);const a=(0,no.normalizeId)(r),s=this.refs[a]||this.schemas[a];if(typeof s=="string"){const l=Ep.call(this,e,s);return typeof(l==null?void 0:l.schema)!="object"?void 0:Hh.call(this,n,l)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||fb.call(this,s),a===(0,no.normalizeId)(t)){const{schema:l}=s,{schemaId:c}=this.opts,u=l[c];return u&&(i=(0,no.resolveUrl)(this.opts.uriResolver,i,u)),new Op({schema:l,schemaId:c,root:e,baseId:i})}return Hh.call(this,n,s)}}ir.resolveSchema=Ep;const qte=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Hh(e,{baseId:t,schema:n,root:r}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const l of e.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const c=n[(0,pS.unescapeFragment)(l)];if(c===void 0)return;n=c;const u=typeof n=="object"&&n[this.opts.schemaId];!qte.has(l)&&u&&(t=(0,no.resolveUrl)(this.opts.uriResolver,t,u))}let a;if(typeof n!="boolean"&&n.$ref&&!(0,pS.schemaHasRulesButRef)(n,this.RULES)){const l=(0,no.resolveUrl)(this.opts.uriResolver,t,n.$ref);a=Ep.call(this,r,l)}const{schemaId:s}=this.opts;if(a=a||new Op({schema:n,schemaId:s,root:r,baseId:t}),a.schema!==a.root.schema)return a}const Hte="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Yte="Meta-schema for $data reference (JSON AnySchema extension proposal)",Gte="object",Kte=["$data"],Xte={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Zte=!1,Qte={$id:Hte,description:Yte,type:Gte,required:Kte,properties:Xte,additionalProperties:Zte};var pb={},Cp={exports:{}};const Jte=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),tk=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function nk(e){let t="",n=0,r=0;for(r=0;r<e.length;r++)if(n=e[r].charCodeAt(0),n!==48){if(!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return"";t+=e[r];break}for(r+=1;r<e.length;r++){if(n=e[r].charCodeAt(0),!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return"";t+=e[r]}return t}const ene=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function hS(e){return e.length=0,!0}function tne(e,t,n){if(e.length){const r=nk(e);if(r!=="")t.push(r);else return n.error=!0,!1;e.length=0}return!0}function nne(e){let t=0;const n={error:!1,address:"",zone:""},r=[],i=[];let a=!1,s=!1,l=tne;for(let c=0;c<e.length;c++){const u=e[c];if(!(u==="["||u==="]"))if(u===":"){if(a===!0&&(s=!0),!l(i,r,n))break;if(++t>7){n.error=!0;break}c>0&&e[c-1]===":"&&(a=!0),r.push(":");continue}else if(u==="%"){if(!l(i,r,n))break;l=hS}else{i.push(u);continue}}return i.length&&(l===hS?n.zone=i.join(""):s?r.push(i.join("")):r.push(nk(i))),n.address=r.join(""),n}function rk(e){if(rne(e,":")<2)return{host:e,isIPV6:!1};const t=nne(e);if(t.error)return{host:e,isIPV6:!1};{let n=t.address,r=t.address;return t.zone&&(n+="%"+t.zone,r+="%25"+t.zone),{host:n,isIPV6:!0,escapedHost:r}}}function rne(e,t){let n=0;for(let r=0;r<e.length;r++)e[r]===t&&n++;return n}function one(e){let t=e;const n=[];let r=-1,i=0;for(;i=t.length;){if(i===1){if(t===".")break;if(t==="/"){n.push("/");break}else{n.push(t);break}}else if(i===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){n.push("/");break}}else if(i===3&&t==="/.."){n.length!==0&&n.pop(),n.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),n.length!==0&&n.pop();continue}}if((r=t.indexOf("/",1))===-1){n.push(t);break}else n.push(t.slice(0,r)),t=t.slice(r)}return n.join("")}function ine(e,t){const n=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=n(e.scheme)),e.userinfo!==void 0&&(e.userinfo=n(e.userinfo)),e.host!==void 0&&(e.host=n(e.host)),e.path!==void 0&&(e.path=n(e.path)),e.query!==void 0&&(e.query=n(e.query)),e.fragment!==void 0&&(e.fragment=n(e.fragment)),e}function ane(e){const t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let n=unescape(e.host);if(!tk(n)){const r=rk(n);r.isIPV6===!0?n=`[${r.escapedHost}]`:n=e.host}t.push(n)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}var ok={nonSimpleDomain:ene,recomposeAuthority:ane,normalizeComponentEncoding:ine,removeDotSegments:one,isIPv4:tk,isUUID:Jte,normalizeIPv6:rk};const{isUUID:sne}=ok,lne=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function ik(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function ak(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function sk(e){const t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function cne(e){return e.secure=ik(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function une(e){if((e.port===(ik(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,n]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}function dne(e,t){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match(lne);if(n){const r=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const i=`${r}:${t.nid||e.nid}`,a=hb(i);e.path=void 0,a&&(e=a.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function fne(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");const n=t.scheme||e.scheme||"urn",r=e.nid.toLowerCase(),i=`${n}:${t.nid||r}`,a=hb(i);a&&(e=a.serialize(e,t));const s=e,l=e.nss;return s.path=`${r||t.nid}:${l}`,t.skipEscape=!0,s}function pne(e,t){const n=e;return n.uuid=n.nss,n.nss=void 0,!t.tolerant&&(!n.uuid||!sne(n.uuid))&&(n.error=n.error||"UUID is not valid."),n}function hne(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t}const lk={scheme:"http",domainHost:!0,parse:ak,serialize:sk},mne={scheme:"https",domainHost:lk.domainHost,parse:ak,serialize:sk},id={scheme:"ws",domainHost:!0,parse:cne,serialize:une},yne={scheme:"wss",domainHost:id.domainHost,parse:id.parse,serialize:id.serialize},gne={scheme:"urn",parse:dne,serialize:fne,skipNormalize:!0},bne={scheme:"urn:uuid",parse:pne,serialize:hne,skipNormalize:!0},Hd={http:lk,https:mne,ws:id,wss:yne,urn:gne,"urn:uuid":bne};Object.setPrototypeOf(Hd,null);function hb(e){return e&&(Hd[e]||Hd[e.toLowerCase()])||void 0}var vne={SCHEMES:Hd,getSchemeHandler:hb};const{normalizeIPv6:wne,removeDotSegments:Dl,recomposeAuthority:xne,normalizeComponentEncoding:Bu,isIPv4:Sne,nonSimpleDomain:Tne}=ok,{SCHEMES:One,getSchemeHandler:ck}=vne;function Ene(e,t){return typeof e=="string"?e=Co(Xo(e,t),t):typeof e=="object"&&(e=Xo(Co(e,t),t)),e}function Cne(e,t,n){const r=n?Object.assign({scheme:"null"},n):{scheme:"null"},i=uk(Xo(e,r),Xo(t,r),r,!0);return r.skipEscape=!0,Co(i,r)}function uk(e,t,n,r){const i={};return r||(e=Xo(Co(e,n),n),t=Xo(Co(t,n),n)),n=n||{},!n.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Dl(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Dl(t.path||""),i.query=t.query):(t.path?(t.path[0]==="/"?i.path=Dl(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=Dl(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function Pne(e,t,n){return typeof e=="string"?(e=unescape(e),e=Co(Bu(Xo(e,n),!0),{...n,skipEscape:!0})):typeof e=="object"&&(e=Co(Bu(e,!0),{...n,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=Co(Bu(Xo(t,n),!0),{...n,skipEscape:!0})):typeof t=="object"&&(t=Co(Bu(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function Co(e,t){const n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},r=Object.assign({},t),i=[],a=ck(r.scheme||n.scheme);a&&a.serialize&&a.serialize(n,r),n.path!==void 0&&(r.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),n.scheme!==void 0&&(n.path=n.path.split("%3A").join(":")))),r.reference!=="suffix"&&n.scheme&&i.push(n.scheme,":");const s=xne(n);if(s!==void 0&&(r.reference!=="suffix"&&i.push("//"),i.push(s),n.path&&n.path[0]!=="/"&&i.push("/")),n.path!==void 0){let l=n.path;!r.absolutePath&&(!a||!a.absolutePath)&&(l=Dl(l)),s===void 0&&l[0]==="/"&&l[1]==="/"&&(l="/%2F"+l.slice(2)),i.push(l)}return n.query!==void 0&&i.push("?",n.query),n.fragment!==void 0&&i.push("#",n.fragment),i.join("")}const _ne=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Xo(e,t){const n=Object.assign({},t),r={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let i=!1;n.reference==="suffix"&&(n.scheme?e=n.scheme+":"+e:e="//"+e);const a=e.match(_ne);if(a){if(r.scheme=a[1],r.userinfo=a[3],r.host=a[4],r.port=parseInt(a[5],10),r.path=a[6]||"",r.query=a[7],r.fragment=a[8],isNaN(r.port)&&(r.port=a[5]),r.host)if(Sne(r.host)===!1){const c=wne(r.host);r.host=c.host.toLowerCase(),i=c.isIPV6}else i=!0;r.scheme===void 0&&r.userinfo===void 0&&r.host===void 0&&r.port===void 0&&r.query===void 0&&!r.path?r.reference="same-document":r.scheme===void 0?r.reference="relative":r.fragment===void 0?r.reference="absolute":r.reference="uri",n.reference&&n.reference!=="suffix"&&n.reference!==r.reference&&(r.error=r.error||"URI is not a "+n.reference+" reference.");const s=ck(n.scheme||r.scheme);if(!n.unicodeSupport&&(!s||!s.unicodeSupport)&&r.host&&(n.domainHost||s&&s.domainHost)&&i===!1&&Tne(r.host))try{r.host=URL.domainToASCII(r.host.toLowerCase())}catch(l){r.error=r.error||"Host's domain name can not be converted to ASCII: "+l}(!s||s&&!s.skipNormalize)&&(e.indexOf("%")!==-1&&(r.scheme!==void 0&&(r.scheme=unescape(r.scheme)),r.host!==void 0&&(r.host=unescape(r.host))),r.path&&(r.path=escape(unescape(r.path))),r.fragment&&(r.fragment=encodeURI(decodeURIComponent(r.fragment)))),s&&s.parse&&s.parse(r,n)}else r.error=r.error||"URI can not be parsed.";return r}const mb={SCHEMES:One,normalize:Ene,resolve:Cne,resolveComponent:uk,equal:Pne,serialize:Co,parse:Xo};Cp.exports=mb;Cp.exports.default=mb;Cp.exports.fastUri=mb;var kne=Cp.exports;Object.defineProperty(pb,"__esModule",{value:!0});const dk=kne;dk.code='require("ajv/dist/runtime/uri").default';pb.default=dk;(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=io;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=St;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const r=tu,i=Ws,a=na,s=ir,l=St,c=Bn,u=kn,d=Ge,f=Qte,h=pb,p=(F,R)=>new RegExp(F,R);p.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],m=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},g={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},v=200;function x(F){var R,V,z,L,A,N,q,Y,G,X,Q,Z,ce,ue,ye,de,pe,J,oe,te,le,re,Ee,Pe,fe;const ge=F.strict,De=(R=F.code)===null||R===void 0?void 0:R.optimize,Me=De===!0||De===void 0?1:De||0,Ie=(z=(V=F.code)===null||V===void 0?void 0:V.regExp)!==null&&z!==void 0?z:p,he=(L=F.uriResolver)!==null&&L!==void 0?L:h.default;return{strictSchema:(N=(A=F.strictSchema)!==null&&A!==void 0?A:ge)!==null&&N!==void 0?N:!0,strictNumbers:(Y=(q=F.strictNumbers)!==null&&q!==void 0?q:ge)!==null&&Y!==void 0?Y:!0,strictTypes:(X=(G=F.strictTypes)!==null&&G!==void 0?G:ge)!==null&&X!==void 0?X:"log",strictTuples:(Z=(Q=F.strictTuples)!==null&&Q!==void 0?Q:ge)!==null&&Z!==void 0?Z:"log",strictRequired:(ue=(ce=F.strictRequired)!==null&&ce!==void 0?ce:ge)!==null&&ue!==void 0?ue:!1,code:F.code?{...F.code,optimize:Me,regExp:Ie}:{optimize:Me,regExp:Ie},loopRequired:(ye=F.loopRequired)!==null&&ye!==void 0?ye:v,loopEnum:(de=F.loopEnum)!==null&&de!==void 0?de:v,meta:(pe=F.meta)!==null&&pe!==void 0?pe:!0,messages:(J=F.messages)!==null&&J!==void 0?J:!0,inlineRefs:(oe=F.inlineRefs)!==null&&oe!==void 0?oe:!0,schemaId:(te=F.schemaId)!==null&&te!==void 0?te:"$id",addUsedSchema:(le=F.addUsedSchema)!==null&&le!==void 0?le:!0,validateSchema:(re=F.validateSchema)!==null&&re!==void 0?re:!0,validateFormats:(Ee=F.validateFormats)!==null&&Ee!==void 0?Ee:!0,unicodeRegExp:(Pe=F.unicodeRegExp)!==null&&Pe!==void 0?Pe:!0,int32range:(fe=F.int32range)!==null&&fe!==void 0?fe:!0,uriResolver:he}}class w{constructor(R={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,R=this.opts={...R,...x(R)};const{es5:V,lines:z}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:m,es5:V,lines:z}),this.logger=T(R.logger);const L=R.validateFormats;R.validateFormats=!1,this.RULES=(0,a.getRules)(),S.call(this,y,R,"NOT SUPPORTED"),S.call(this,g,R,"DEPRECATED","warn"),this._metaOpts=E.call(this),R.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),R.keywords&&k.call(this,R.keywords),typeof R.meta=="object"&&this.addMetaSchema(R.meta),C.call(this),R.validateFormats=L}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:R,meta:V,schemaId:z}=this.opts;let L=f;z==="id"&&(L={...f},L.id=L.$id,delete L.$id),V&&R&&this.addMetaSchema(L,L[z],!1)}defaultMeta(){const{meta:R,schemaId:V}=this.opts;return this.opts.defaultMeta=typeof R=="object"?R[V]||R:void 0}validate(R,V){let z;if(typeof R=="string"){if(z=this.getSchema(R),!z)throw new Error(`no schema with key or ref "${R}"`)}else z=this.compile(R);const L=z(V);return"$async"in z||(this.errors=z.errors),L}compile(R,V){const z=this._addSchema(R,V);return z.validate||this._compileSchemaEnv(z)}compileAsync(R,V){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:z}=this.opts;return L.call(this,R,V);async function L(X,Q){await A.call(this,X.$schema);const Z=this._addSchema(X,Q);return Z.validate||N.call(this,Z)}async function A(X){X&&!this.getSchema(X)&&await L.call(this,{$ref:X},!0)}async function N(X){try{return this._compileSchemaEnv(X)}catch(Q){if(!(Q instanceof i.default))throw Q;return q.call(this,Q),await Y.call(this,Q.missingSchema),N.call(this,X)}}function q({missingSchema:X,missingRef:Q}){if(this.refs[X])throw new Error(`AnySchema ${X} is loaded but ${Q} cannot be resolved`)}async function Y(X){const Q=await G.call(this,X);this.refs[X]||await A.call(this,Q.$schema),this.refs[X]||this.addSchema(Q,X,V)}async function G(X){const Q=this._loading[X];if(Q)return Q;try{return await(this._loading[X]=z(X))}finally{delete this._loading[X]}}}addSchema(R,V,z,L=this.opts.validateSchema){if(Array.isArray(R)){for(const N of R)this.addSchema(N,void 0,z,L);return this}let A;if(typeof R=="object"){const{schemaId:N}=this.opts;if(A=R[N],A!==void 0&&typeof A!="string")throw new Error(`schema ${N} must be string`)}return V=(0,c.normalizeId)(V||A),this._checkUnique(V),this.schemas[V]=this._addSchema(R,z,V,L,!0),this}addMetaSchema(R,V,z=this.opts.validateSchema){return this.addSchema(R,V,!0,z),this}validateSchema(R,V){if(typeof R=="boolean")return!0;let z;if(z=R.$schema,z!==void 0&&typeof z!="string")throw new Error("$schema must be a string");if(z=z||this.opts.defaultMeta||this.defaultMeta(),!z)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const L=this.validate(z,R);if(!L&&V){const A="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(A);else throw new Error(A)}return L}getSchema(R){let V;for(;typeof(V=O.call(this,R))=="string";)R=V;if(V===void 0){const{schemaId:z}=this.opts,L=new s.SchemaEnv({schema:{},schemaId:z});if(V=s.resolveSchema.call(this,L,R),!V)return;this.refs[R]=V}return V.validate||this._compileSchemaEnv(V)}removeSchema(R){if(R instanceof RegExp)return this._removeAllSchemas(this.schemas,R),this._removeAllSchemas(this.refs,R),this;switch(typeof R){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const V=O.call(this,R);return typeof V=="object"&&this._cache.delete(V.schema),delete this.schemas[R],delete this.refs[R],this}case"object":{const V=R;this._cache.delete(V);let z=R[this.opts.schemaId];return z&&(z=(0,c.normalizeId)(z),delete this.schemas[z],delete this.refs[z]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(R){for(const V of R)this.addKeyword(V);return this}addKeyword(R,V){let z;if(typeof R=="string")z=R,typeof V=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),V.keyword=z);else if(typeof R=="object"&&V===void 0){if(V=R,z=V.keyword,Array.isArray(z)&&!z.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(M.call(this,z,V),!V)return(0,d.eachItem)(z,A=>j.call(this,A)),this;U.call(this,V);const L={...V,type:(0,u.getJSONTypes)(V.type),schemaType:(0,u.getJSONTypes)(V.schemaType)};return(0,d.eachItem)(z,L.type.length===0?A=>j.call(this,A,L):A=>L.type.forEach(N=>j.call(this,A,L,N))),this}getKeyword(R){const V=this.RULES.all[R];return typeof V=="object"?V.definition:!!V}removeKeyword(R){const{RULES:V}=this;delete V.keywords[R],delete V.all[R];for(const z of V.rules){const L=z.rules.findIndex(A=>A.keyword===R);L>=0&&z.rules.splice(L,1)}return this}addFormat(R,V){return typeof V=="string"&&(V=new RegExp(V)),this.formats[R]=V,this}errorsText(R=this.errors,{separator:V=", ",dataVar:z="data"}={}){return!R||R.length===0?"No errors":R.map(L=>`${z}${L.instancePath} ${L.message}`).reduce((L,A)=>L+V+A)}$dataMetaSchema(R,V){const z=this.RULES.all;R=JSON.parse(JSON.stringify(R));for(const L of V){const A=L.split("/").slice(1);let N=R;for(const q of A)N=N[q];for(const q in z){const Y=z[q];if(typeof Y!="object")continue;const{$data:G}=Y.definition,X=N[q];G&&X&&(N[q]=H(X))}}return R}_removeAllSchemas(R,V){for(const z in R){const L=R[z];(!V||V.test(z))&&(typeof L=="string"?delete R[z]:L&&!L.meta&&(this._cache.delete(L.schema),delete R[z]))}}_addSchema(R,V,z,L=this.opts.validateSchema,A=this.opts.addUsedSchema){let N;const{schemaId:q}=this.opts;if(typeof R=="object")N=R[q];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof R!="boolean")throw new Error("schema must be object or boolean")}let Y=this._cache.get(R);if(Y!==void 0)return Y;z=(0,c.normalizeId)(N||z);const G=c.getSchemaRefs.call(this,R,z);return Y=new s.SchemaEnv({schema:R,schemaId:q,meta:V,baseId:z,localRefs:G}),this._cache.set(Y.schema,Y),A&&!z.startsWith("#")&&(z&&this._checkUnique(z),this.refs[z]=Y),L&&this.validateSchema(R,!0),Y}_checkUnique(R){if(this.schemas[R]||this.refs[R])throw new Error(`schema with key or id "${R}" already exists`)}_compileSchemaEnv(R){if(R.meta?this._compileMetaSchema(R):s.compileSchema.call(this,R),!R.validate)throw new Error("ajv implementation error");return R.validate}_compileMetaSchema(R){const V=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,R)}finally{this.opts=V}}}w.ValidationError=r.default,w.MissingRefError=i.default,e.default=w;function S(F,R,V,z="error"){for(const L in F){const A=L;A in R&&this.logger[z](`${V}: option ${L}. ${F[A]}`)}}function O(F){return F=(0,c.normalizeId)(F),this.schemas[F]||this.refs[F]}function C(){const F=this.opts.schemas;if(F)if(Array.isArray(F))this.addSchema(F);else for(const R in F)this.addSchema(F[R],R)}function P(){for(const F in this.opts.formats){const R=this.opts.formats[F];R&&this.addFormat(F,R)}}function k(F){if(Array.isArray(F)){this.addVocabulary(F);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const R in F){const V=F[R];V.keyword||(V.keyword=R),this.addKeyword(V)}}function E(){const F={...this.opts};for(const R of b)delete F[R];return F}const _={log(){},warn(){},error(){}};function T(F){if(F===!1)return _;if(F===void 0)return console;if(F.log&&F.warn&&F.error)return F;throw new Error("logger must implement log, warn and error methods")}const $=/^[a-z_$][a-z0-9_$:-]*$/i;function M(F,R){const{RULES:V}=this;if((0,d.eachItem)(F,z=>{if(V.keywords[z])throw new Error(`Keyword ${z} is already defined`);if(!$.test(z))throw new Error(`Keyword ${z} has invalid name`)}),!!R&&R.$data&&!("code"in R||"validate"in R))throw new Error('$data keyword must have "code" or "validate" function')}function j(F,R,V){var z;const L=R==null?void 0:R.post;if(V&&L)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:A}=this;let N=L?A.post:A.rules.find(({type:Y})=>Y===V);if(N||(N={type:V,rules:[]},A.rules.push(N)),A.keywords[F]=!0,!R)return;const q={keyword:F,definition:{...R,type:(0,u.getJSONTypes)(R.type),schemaType:(0,u.getJSONTypes)(R.schemaType)}};R.before?W.call(this,N,q,R.before):N.rules.push(q),A.all[F]=q,(z=R.implements)===null||z===void 0||z.forEach(Y=>this.addKeyword(Y))}function W(F,R,V){const z=F.rules.findIndex(L=>L.keyword===V);z>=0?F.rules.splice(z,0,R):(F.rules.push(R),this.logger.warn(`rule ${V} is not defined`))}function U(F){let{metaSchema:R}=F;R!==void 0&&(F.$data&&this.opts.$data&&(R=H(R)),F.validateSchema=this.compile(R,!0))}const K={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function H(F){return{anyOf:[F,K]}}})(T_);var yb={},gb={},bb={};Object.defineProperty(bb,"__esModule",{value:!0});const Dne={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};bb.default=Dne;var ra={};Object.defineProperty(ra,"__esModule",{value:!0});ra.callRef=ra.getValidate=void 0;const $ne=Ws,mS=Ct,nr=St,_a=No,yS=ir,Vu=Ge,Rne={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:i,schemaEnv:a,validateName:s,opts:l,self:c}=r,{root:u}=a;if((n==="#"||n==="#/")&&i===u.baseId)return f();const d=yS.resolveRef.call(c,u,i,n);if(d===void 0)throw new $ne.default(r.opts.uriResolver,i,n);if(d instanceof yS.SchemaEnv)return h(d);return p(d);function f(){if(a===u)return ad(e,s,a,a.$async);const b=t.scopeValue("root",{ref:u});return ad(e,(0,nr._)`${b}.validate`,u,u.$async)}function h(b){const m=fk(e,b);ad(e,m,b,b.$async)}function p(b){const m=t.scopeValue("schema",l.code.source===!0?{ref:b,code:(0,nr.stringify)(b)}:{ref:b}),y=t.name("valid"),g=e.subschema({schema:b,dataTypes:[],schemaPath:nr.nil,topSchemaRef:m,errSchemaPath:n},y);e.mergeEvaluated(g),e.ok(y)}}};function fk(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):(0,nr._)`${n.scopeValue("wrapper",{ref:t})}.validate`}ra.getValidate=fk;function ad(e,t,n,r){const{gen:i,it:a}=e,{allErrors:s,schemaEnv:l,opts:c}=a,u=c.passContext?_a.default.this:nr.nil;r?d():f();function d(){if(!l.$async)throw new Error("async schema referenced by sync schema");const b=i.let("valid");i.try(()=>{i.code((0,nr._)`await ${(0,mS.callValidateCode)(e,t,u)}`),p(t),s||i.assign(b,!0)},m=>{i.if((0,nr._)`!(${m} instanceof ${a.ValidationError})`,()=>i.throw(m)),h(m),s||i.assign(b,!1)}),e.ok(b)}function f(){e.result((0,mS.callValidateCode)(e,t,u),()=>p(t),()=>h(t))}function h(b){const m=(0,nr._)`${b}.errors`;i.assign(_a.default.vErrors,(0,nr._)`${_a.default.vErrors} === null ? ${m} : ${_a.default.vErrors}.concat(${m})`),i.assign(_a.default.errors,(0,nr._)`${_a.default.vErrors}.length`)}function p(b){var m;if(!a.opts.unevaluated)return;const y=(m=n==null?void 0:n.validate)===null||m===void 0?void 0:m.evaluated;if(a.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(a.props=Vu.mergeEvaluated.props(i,y.props,a.props));else{const g=i.var("props",(0,nr._)`${b}.evaluated.props`);a.props=Vu.mergeEvaluated.props(i,g,a.props,nr.Name)}if(a.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(a.items=Vu.mergeEvaluated.items(i,y.items,a.items));else{const g=i.var("items",(0,nr._)`${b}.evaluated.items`);a.items=Vu.mergeEvaluated.items(i,g,a.items,nr.Name)}}}ra.callRef=ad;ra.default=Rne;Object.defineProperty(gb,"__esModule",{value:!0});const Mne=bb,Ine=ra,Nne=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Mne.default,Ine.default];gb.default=Nne;var vb={},wb={};Object.defineProperty(wb,"__esModule",{value:!0});const Yd=St,si=Yd.operators,Gd={maximum:{okStr:"<=",ok:si.LTE,fail:si.GT},minimum:{okStr:">=",ok:si.GTE,fail:si.LT},exclusiveMaximum:{okStr:"<",ok:si.LT,fail:si.GTE},exclusiveMinimum:{okStr:">",ok:si.GT,fail:si.LTE}},Ane={message:({keyword:e,schemaCode:t})=>(0,Yd.str)`must be ${Gd[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Yd._)`{comparison: ${Gd[e].okStr}, limit: ${t}}`},jne={keyword:Object.keys(Gd),type:"number",schemaType:"number",$data:!0,error:Ane,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data((0,Yd._)`${n} ${Gd[t].fail} ${r} || isNaN(${n})`)}};wb.default=jne;var xb={};Object.defineProperty(xb,"__esModule",{value:!0});const Wl=St,Lne={message:({schemaCode:e})=>(0,Wl.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Wl._)`{multipleOf: ${e}}`},Fne={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Lne,code(e){const{gen:t,data:n,schemaCode:r,it:i}=e,a=i.opts.multipleOfPrecision,s=t.let("res"),l=a?(0,Wl._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:(0,Wl._)`${s} !== parseInt(${s})`;e.fail$data((0,Wl._)`(${r} === 0 || (${s} = ${n}/${r}, ${l}))`)}};xb.default=Fne;var Sb={},Tb={};Object.defineProperty(Tb,"__esModule",{value:!0});function pk(e){const t=e.length;let n=0,r=0,i;for(;r<t;)n++,i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<t&&(i=e.charCodeAt(r),(i&64512)===56320&&r++);return n}Tb.default=pk;pk.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(Sb,"__esModule",{value:!0});const Bi=St,Bne=Ge,Vne=Tb,zne={message({keyword:e,schemaCode:t}){const n=e==="maxLength"?"more":"fewer";return(0,Bi.str)`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>(0,Bi._)`{limit: ${e}}`},Wne={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:zne,code(e){const{keyword:t,data:n,schemaCode:r,it:i}=e,a=t==="maxLength"?Bi.operators.GT:Bi.operators.LT,s=i.opts.unicode===!1?(0,Bi._)`${n}.length`:(0,Bi._)`${(0,Bne.useFunc)(e.gen,Vne.default)}(${n})`;e.fail$data((0,Bi._)`${s} ${a} ${r}`)}};Sb.default=Wne;var Ob={};Object.defineProperty(Ob,"__esModule",{value:!0});const Une=Ct,Kd=St,qne={message:({schemaCode:e})=>(0,Kd.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Kd._)`{pattern: ${e}}`},Hne={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:qne,code(e){const{data:t,$data:n,schema:r,schemaCode:i,it:a}=e,s=a.opts.unicodeRegExp?"u":"",l=n?(0,Kd._)`(new RegExp(${i}, ${s}))`:(0,Une.usePattern)(e,r);e.fail$data((0,Kd._)`!${l}.test(${t})`)}};Ob.default=Hne;var Eb={};Object.defineProperty(Eb,"__esModule",{value:!0});const Ul=St,Yne={message({keyword:e,schemaCode:t}){const n=e==="maxProperties"?"more":"fewer";return(0,Ul.str)`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>(0,Ul._)`{limit: ${e}}`},Gne={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Yne,code(e){const{keyword:t,data:n,schemaCode:r}=e,i=t==="maxProperties"?Ul.operators.GT:Ul.operators.LT;e.fail$data((0,Ul._)`Object.keys(${n}).length ${i} ${r}`)}};Eb.default=Gne;var Cb={};Object.defineProperty(Cb,"__esModule",{value:!0});const pl=Ct,ql=St,Kne=Ge,Xne={message:({params:{missingProperty:e}})=>(0,ql.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,ql._)`{missingProperty: ${e}}`},Zne={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Xne,code(e){const{gen:t,schema:n,schemaCode:r,data:i,$data:a,it:s}=e,{opts:l}=s;if(!a&&n.length===0)return;const c=n.length>=l.loopRequired;if(s.allErrors?u():d(),l.strictRequired){const p=e.parentSchema.properties,{definedProperties:b}=e.it;for(const m of n)if((p==null?void 0:p[m])===void 0&&!b.has(m)){const y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${m}" is not defined at "${y}" (strictRequired)`;(0,Kne.checkStrictMode)(s,g,s.opts.strictRequired)}}function u(){if(c||a)e.block$data(ql.nil,f);else for(const p of n)(0,pl.checkReportMissingProp)(e,p)}function d(){const p=t.let("missing");if(c||a){const b=t.let("valid",!0);e.block$data(b,()=>h(p,b)),e.ok(b)}else t.if((0,pl.checkMissingProp)(e,n,p)),(0,pl.reportMissingProp)(e,p),t.else()}function f(){t.forOf("prop",r,p=>{e.setParams({missingProperty:p}),t.if((0,pl.noPropertyInData)(t,i,p,l.ownProperties),()=>e.error())})}function h(p,b){e.setParams({missingProperty:p}),t.forOf(p,r,()=>{t.assign(b,(0,pl.propertyInData)(t,i,p,l.ownProperties)),t.if((0,ql.not)(b),()=>{e.error(),t.break()})},ql.nil)}}};Cb.default=Zne;var Pb={};Object.defineProperty(Pb,"__esModule",{value:!0});const Hl=St,Qne={message({keyword:e,schemaCode:t}){const n=e==="maxItems"?"more":"fewer";return(0,Hl.str)`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>(0,Hl._)`{limit: ${e}}`},Jne={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Qne,code(e){const{keyword:t,data:n,schemaCode:r}=e,i=t==="maxItems"?Hl.operators.GT:Hl.operators.LT;e.fail$data((0,Hl._)`${n}.length ${i} ${r}`)}};Pb.default=Jne;var _b={},nu={};Object.defineProperty(nu,"__esModule",{value:!0});const hk=rg;hk.code='require("ajv/dist/runtime/equal").default';nu.default=hk;Object.defineProperty(_b,"__esModule",{value:!0});const Yh=kn,An=St,ere=Ge,tre=nu,nre={message:({params:{i:e,j:t}})=>(0,An.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,An._)`{i: ${e}, j: ${t}}`},rre={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:nre,code(e){const{gen:t,data:n,$data:r,schema:i,parentSchema:a,schemaCode:s,it:l}=e;if(!r&&!i)return;const c=t.let("valid"),u=a.items?(0,Yh.getSchemaTypes)(a.items):[];e.block$data(c,d,(0,An._)`${s} === false`),e.ok(c);function d(){const b=t.let("i",(0,An._)`${n}.length`),m=t.let("j");e.setParams({i:b,j:m}),t.assign(c,!0),t.if((0,An._)`${b} > 1`,()=>(f()?h:p)(b,m))}function f(){return u.length>0&&!u.some(b=>b==="object"||b==="array")}function h(b,m){const y=t.name("item"),g=(0,Yh.checkDataTypes)(u,y,l.opts.strictNumbers,Yh.DataType.Wrong),v=t.const("indices",(0,An._)`{}`);t.for((0,An._)`;${b}--;`,()=>{t.let(y,(0,An._)`${n}[${b}]`),t.if(g,(0,An._)`continue`),u.length>1&&t.if((0,An._)`typeof ${y} == "string"`,(0,An._)`${y} += "_"`),t.if((0,An._)`typeof ${v}[${y}] == "number"`,()=>{t.assign(m,(0,An._)`${v}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,An._)`${v}[${y}] = ${b}`)})}function p(b,m){const y=(0,ere.useFunc)(t,tre.default),g=t.name("outer");t.label(g).for((0,An._)`;${b}--;`,()=>t.for((0,An._)`${m} = ${b}; ${m}--;`,()=>t.if((0,An._)`${y}(${n}[${b}], ${n}[${m}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};_b.default=rre;var kb={};Object.defineProperty(kb,"__esModule",{value:!0});const fy=St,ore=Ge,ire=nu,are={message:"must be equal to constant",params:({schemaCode:e})=>(0,fy._)`{allowedValue: ${e}}`},sre={keyword:"const",$data:!0,error:are,code(e){const{gen:t,data:n,$data:r,schemaCode:i,schema:a}=e;r||a&&typeof a=="object"?e.fail$data((0,fy._)`!${(0,ore.useFunc)(t,ire.default)}(${n}, ${i})`):e.fail((0,fy._)`${a} !== ${n}`)}};kb.default=sre;var Db={};Object.defineProperty(Db,"__esModule",{value:!0});const $l=St,lre=Ge,cre=nu,ure={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,$l._)`{allowedValues: ${e}}`},dre={keyword:"enum",schemaType:"array",$data:!0,error:ure,code(e){const{gen:t,data:n,$data:r,schema:i,schemaCode:a,it:s}=e;if(!r&&i.length===0)throw new Error("enum must have non-empty array");const l=i.length>=s.opts.loopEnum;let c;const u=()=>c??(c=(0,lre.useFunc)(t,cre.default));let d;if(l||r)d=t.let("valid"),e.block$data(d,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const p=t.const("vSchema",a);d=(0,$l.or)(...i.map((b,m)=>h(p,m)))}e.pass(d);function f(){t.assign(d,!1),t.forOf("v",a,p=>t.if((0,$l._)`${u()}(${n}, ${p})`,()=>t.assign(d,!0).break()))}function h(p,b){const m=i[b];return typeof m=="object"&&m!==null?(0,$l._)`${u()}(${n}, ${p}[${b}])`:(0,$l._)`${n} === ${m}`}}};Db.default=dre;Object.defineProperty(vb,"__esModule",{value:!0});const fre=wb,pre=xb,hre=Sb,mre=Ob,yre=Eb,gre=Cb,bre=Pb,vre=_b,wre=kb,xre=Db,Sre=[fre.default,pre.default,hre.default,mre.default,yre.default,gre.default,bre.default,vre.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},wre.default,xre.default];vb.default=Sre;var $b={},Us={};Object.defineProperty(Us,"__esModule",{value:!0});Us.validateAdditionalItems=void 0;const Vi=St,py=Ge,Tre={message:({params:{len:e}})=>(0,Vi.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Vi._)`{limit: ${e}}`},Ore={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Tre,code(e){const{parentSchema:t,it:n}=e,{items:r}=t;if(!Array.isArray(r)){(0,py.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}mk(e,r)}};function mk(e,t){const{gen:n,schema:r,data:i,keyword:a,it:s}=e;s.items=!0;const l=n.const("len",(0,Vi._)`${i}.length`);if(r===!1)e.setParams({len:t.length}),e.pass((0,Vi._)`${l} <= ${t.length}`);else if(typeof r=="object"&&!(0,py.alwaysValidSchema)(s,r)){const u=n.var("valid",(0,Vi._)`${l} <= ${t.length}`);n.if((0,Vi.not)(u),()=>c(u)),e.ok(u)}function c(u){n.forRange("i",t.length,l,d=>{e.subschema({keyword:a,dataProp:d,dataPropType:py.Type.Num},u),s.allErrors||n.if((0,Vi.not)(u),()=>n.break())})}}Us.validateAdditionalItems=mk;Us.default=Ore;var Rb={},qs={};Object.defineProperty(qs,"__esModule",{value:!0});qs.validateTuple=void 0;const gS=St,sd=Ge,Ere=Ct,Cre={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return yk(e,"additionalItems",t);n.items=!0,!(0,sd.alwaysValidSchema)(n,t)&&e.ok((0,Ere.validateArray)(e))}};function yk(e,t,n=e.schema){const{gen:r,parentSchema:i,data:a,keyword:s,it:l}=e;d(i),l.opts.unevaluated&&n.length&&l.items!==!0&&(l.items=sd.mergeEvaluated.items(r,n.length,l.items));const c=r.name("valid"),u=r.const("len",(0,gS._)`${a}.length`);n.forEach((f,h)=>{(0,sd.alwaysValidSchema)(l,f)||(r.if((0,gS._)`${u} > ${h}`,()=>e.subschema({keyword:s,schemaProp:h,dataProp:h},c)),e.ok(c))});function d(f){const{opts:h,errSchemaPath:p}=l,b=n.length,m=b===f.minItems&&(b===f.maxItems||f[t]===!1);if(h.strictTuples&&!m){const y=`"${s}" is ${b}-tuple, but minItems or maxItems/${t} are not specified or different at path "${p}"`;(0,sd.checkStrictMode)(l,y,h.strictTuples)}}}qs.validateTuple=yk;qs.default=Cre;Object.defineProperty(Rb,"__esModule",{value:!0});const Pre=qs,_re={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,Pre.validateTuple)(e,"items")};Rb.default=_re;var Mb={};Object.defineProperty(Mb,"__esModule",{value:!0});const bS=St,kre=Ge,Dre=Ct,$re=Us,Rre={message:({params:{len:e}})=>(0,bS.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,bS._)`{limit: ${e}}`},Mre={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Rre,code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:i}=n;r.items=!0,!(0,kre.alwaysValidSchema)(r,t)&&(i?(0,$re.validateAdditionalItems)(e,i):e.ok((0,Dre.validateArray)(e)))}};Mb.default=Mre;var Ib={};Object.defineProperty(Ib,"__esModule",{value:!0});const jr=St,zu=Ge,Ire={message:({params:{min:e,max:t}})=>t===void 0?(0,jr.str)`must contain at least ${e} valid item(s)`:(0,jr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,jr._)`{minContains: ${e}}`:(0,jr._)`{minContains: ${e}, maxContains: ${t}}`},Nre={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Ire,code(e){const{gen:t,schema:n,parentSchema:r,data:i,it:a}=e;let s,l;const{minContains:c,maxContains:u}=r;a.opts.next?(s=c===void 0?1:c,l=u):s=1;const d=t.const("len",(0,jr._)`${i}.length`);if(e.setParams({min:s,max:l}),l===void 0&&s===0){(0,zu.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(l!==void 0&&s>l){(0,zu.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,zu.alwaysValidSchema)(a,n)){let m=(0,jr._)`${d} >= ${s}`;l!==void 0&&(m=(0,jr._)`${m} && ${d} <= ${l}`),e.pass(m);return}a.items=!0;const f=t.name("valid");l===void 0&&s===1?p(f,()=>t.if(f,()=>t.break())):s===0?(t.let(f,!0),l!==void 0&&t.if((0,jr._)`${i}.length > 0`,h)):(t.let(f,!1),h()),e.result(f,()=>e.reset());function h(){const m=t.name("_valid"),y=t.let("count",0);p(m,()=>t.if(m,()=>b(y)))}function p(m,y){t.forRange("i",0,d,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:zu.Type.Num,compositeRule:!0},m),y()})}function b(m){t.code((0,jr._)`${m}++`),l===void 0?t.if((0,jr._)`${m} >= ${s}`,()=>t.assign(f,!0).break()):(t.if((0,jr._)`${m} > ${l}`,()=>t.assign(f,!1).break()),s===1?t.assign(f,!0):t.if((0,jr._)`${m} >= ${s}`,()=>t.assign(f,!0)))}}};Ib.default=Nre;var gk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=St,n=Ge,r=Ct;e.error={message:({params:{property:c,depsCount:u,deps:d}})=>{const f=u===1?"property":"properties";return(0,t.str)`must have ${f} ${d} when property ${c} is present`},params:({params:{property:c,depsCount:u,deps:d,missingProperty:f}})=>(0,t._)`{property: ${c},
    missingProperty: ${f},
    depsCount: ${u},
    deps: ${d}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(c){const[u,d]=a(c);s(c,u),l(c,d)}};function a({schema:c}){const u={},d={};for(const f in c){if(f==="__proto__")continue;const h=Array.isArray(c[f])?u:d;h[f]=c[f]}return[u,d]}function s(c,u=c.schema){const{gen:d,data:f,it:h}=c;if(Object.keys(u).length===0)return;const p=d.let("missing");for(const b in u){const m=u[b];if(m.length===0)continue;const y=(0,r.propertyInData)(d,f,b,h.opts.ownProperties);c.setParams({property:b,depsCount:m.length,deps:m.join(", ")}),h.allErrors?d.if(y,()=>{for(const g of m)(0,r.checkReportMissingProp)(c,g)}):(d.if((0,t._)`${y} && (${(0,r.checkMissingProp)(c,m,p)})`),(0,r.reportMissingProp)(c,p),d.else())}}e.validatePropertyDeps=s;function l(c,u=c.schema){const{gen:d,data:f,keyword:h,it:p}=c,b=d.name("valid");for(const m in u)(0,n.alwaysValidSchema)(p,u[m])||(d.if((0,r.propertyInData)(d,f,m,p.opts.ownProperties),()=>{const y=c.subschema({keyword:h,schemaProp:m},b);c.mergeValidEvaluated(y,b)},()=>d.var(b,!0)),c.ok(b))}e.validateSchemaDeps=l,e.default=i})(gk);var Nb={};Object.defineProperty(Nb,"__esModule",{value:!0});const bk=St,Are=Ge,jre={message:"property name must be valid",params:({params:e})=>(0,bk._)`{propertyName: ${e.propertyName}}`},Lre={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:jre,code(e){const{gen:t,schema:n,data:r,it:i}=e;if((0,Are.alwaysValidSchema)(i,n))return;const a=t.name("valid");t.forIn("key",r,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},a),t.if((0,bk.not)(a),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(a)}};Nb.default=Lre;var Pp={};Object.defineProperty(Pp,"__esModule",{value:!0});const Wu=Ct,Jr=St,Fre=No,Uu=Ge,Bre={message:"must NOT have additional properties",params:({params:e})=>(0,Jr._)`{additionalProperty: ${e.additionalProperty}}`},Vre={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Bre,code(e){const{gen:t,schema:n,parentSchema:r,data:i,errsCount:a,it:s}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:l,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,Uu.alwaysValidSchema)(s,n))return;const u=(0,Wu.allSchemaProperties)(r.properties),d=(0,Wu.allSchemaProperties)(r.patternProperties);f(),e.ok((0,Jr._)`${a} === ${Fre.default.errors}`);function f(){t.forIn("key",i,y=>{!u.length&&!d.length?b(y):t.if(h(y),()=>b(y))})}function h(y){let g;if(u.length>8){const v=(0,Uu.schemaRefOrVal)(s,r.properties,"properties");g=(0,Wu.isOwnProperty)(t,v,y)}else u.length?g=(0,Jr.or)(...u.map(v=>(0,Jr._)`${y} === ${v}`)):g=Jr.nil;return d.length&&(g=(0,Jr.or)(g,...d.map(v=>(0,Jr._)`${(0,Wu.usePattern)(e,v)}.test(${y})`))),(0,Jr.not)(g)}function p(y){t.code((0,Jr._)`delete ${i}[${y}]`)}function b(y){if(c.removeAdditional==="all"||c.removeAdditional&&n===!1){p(y);return}if(n===!1){e.setParams({additionalProperty:y}),e.error(),l||t.break();return}if(typeof n=="object"&&!(0,Uu.alwaysValidSchema)(s,n)){const g=t.name("valid");c.removeAdditional==="failing"?(m(y,g,!1),t.if((0,Jr.not)(g),()=>{e.reset(),p(y)})):(m(y,g),l||t.if((0,Jr.not)(g),()=>t.break()))}}function m(y,g,v){const x={keyword:"additionalProperties",dataProp:y,dataPropType:Uu.Type.Str};v===!1&&Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(x,g)}}};Pp.default=Vre;var Ab={};Object.defineProperty(Ab,"__esModule",{value:!0});const zre=io,vS=Ct,Gh=Ge,wS=Pp,Wre={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:r,data:i,it:a}=e;a.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&wS.default.code(new zre.KeywordCxt(a,wS.default,"additionalProperties"));const s=(0,vS.allSchemaProperties)(n);for(const f of s)a.definedProperties.add(f);a.opts.unevaluated&&s.length&&a.props!==!0&&(a.props=Gh.mergeEvaluated.props(t,(0,Gh.toHash)(s),a.props));const l=s.filter(f=>!(0,Gh.alwaysValidSchema)(a,n[f]));if(l.length===0)return;const c=t.name("valid");for(const f of l)u(f)?d(f):(t.if((0,vS.propertyInData)(t,i,f,a.opts.ownProperties)),d(f),a.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(f),e.ok(c);function u(f){return a.opts.useDefaults&&!a.compositeRule&&n[f].default!==void 0}function d(f){e.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};Ab.default=Wre;var jb={};Object.defineProperty(jb,"__esModule",{value:!0});const xS=Ct,qu=St,SS=Ge,TS=Ge,Ure={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:r,parentSchema:i,it:a}=e,{opts:s}=a,l=(0,xS.allSchemaProperties)(n),c=l.filter(m=>(0,SS.alwaysValidSchema)(a,n[m]));if(l.length===0||c.length===l.length&&(!a.opts.unevaluated||a.props===!0))return;const u=s.strictSchema&&!s.allowMatchingProperties&&i.properties,d=t.name("valid");a.props!==!0&&!(a.props instanceof qu.Name)&&(a.props=(0,TS.evaluatedPropsToName)(t,a.props));const{props:f}=a;h();function h(){for(const m of l)u&&p(m),a.allErrors?b(m):(t.var(d,!0),b(m),t.if(d))}function p(m){for(const y in u)new RegExp(m).test(y)&&(0,SS.checkStrictMode)(a,`property ${y} matches pattern ${m} (use allowMatchingProperties)`)}function b(m){t.forIn("key",r,y=>{t.if((0,qu._)`${(0,xS.usePattern)(e,m)}.test(${y})`,()=>{const g=c.includes(m);g||e.subschema({keyword:"patternProperties",schemaProp:m,dataProp:y,dataPropType:TS.Type.Str},d),a.opts.unevaluated&&f!==!0?t.assign((0,qu._)`${f}[${y}]`,!0):!g&&!a.allErrors&&t.if((0,qu.not)(d),()=>t.break())})})}}};jb.default=Ure;var Lb={};Object.defineProperty(Lb,"__esModule",{value:!0});const qre=Ge,Hre={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,qre.alwaysValidSchema)(r,n)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Lb.default=Hre;var Fb={};Object.defineProperty(Fb,"__esModule",{value:!0});const Yre=Ct,Gre={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Yre.validateUnion,error:{message:"must match a schema in anyOf"}};Fb.default=Gre;var Bb={};Object.defineProperty(Bb,"__esModule",{value:!0});const ld=St,Kre=Ge,Xre={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,ld._)`{passingSchemas: ${e.passing}}`},Zre={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Xre,code(e){const{gen:t,schema:n,parentSchema:r,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(i.opts.discriminator&&r.discriminator)return;const a=n,s=t.let("valid",!1),l=t.let("passing",null),c=t.name("_valid");e.setParams({passing:l}),t.block(u),e.result(s,()=>e.reset(),()=>e.error(!0));function u(){a.forEach((d,f)=>{let h;(0,Kre.alwaysValidSchema)(i,d)?t.var(c,!0):h=e.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&t.if((0,ld._)`${c} && ${s}`).assign(s,!1).assign(l,(0,ld._)`[${l}, ${f}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(l,f),h&&e.mergeEvaluated(h,ld.Name)})})}}};Bb.default=Zre;var Vb={};Object.defineProperty(Vb,"__esModule",{value:!0});const Qre=Ge,Jre={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=t.name("valid");n.forEach((a,s)=>{if((0,Qre.alwaysValidSchema)(r,a))return;const l=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(l)})}};Vb.default=Jre;var zb={};Object.defineProperty(zb,"__esModule",{value:!0});const Xd=St,vk=Ge,eoe={message:({params:e})=>(0,Xd.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Xd._)`{failingKeyword: ${e.ifClause}}`},toe={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:eoe,code(e){const{gen:t,parentSchema:n,it:r}=e;n.then===void 0&&n.else===void 0&&(0,vk.checkStrictMode)(r,'"if" without "then" and "else" is ignored');const i=OS(r,"then"),a=OS(r,"else");if(!i&&!a)return;const s=t.let("valid",!0),l=t.name("_valid");if(c(),e.reset(),i&&a){const d=t.let("ifClause");e.setParams({ifClause:d}),t.if(l,u("then",d),u("else",d))}else i?t.if(l,u("then")):t.if((0,Xd.not)(l),u("else"));e.pass(s,()=>e.error(!0));function c(){const d=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);e.mergeEvaluated(d)}function u(d,f){return()=>{const h=e.subschema({keyword:d},l);t.assign(s,l),e.mergeValidEvaluated(h,s),f?t.assign(f,(0,Xd._)`${d}`):e.setParams({ifClause:d})}}}};function OS(e,t){const n=e.schema[t];return n!==void 0&&!(0,vk.alwaysValidSchema)(e,n)}zb.default=toe;var Wb={};Object.defineProperty(Wb,"__esModule",{value:!0});const noe=Ge,roe={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){t.if===void 0&&(0,noe.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};Wb.default=roe;Object.defineProperty($b,"__esModule",{value:!0});const ooe=Us,ioe=Rb,aoe=qs,soe=Mb,loe=Ib,coe=gk,uoe=Nb,doe=Pp,foe=Ab,poe=jb,hoe=Lb,moe=Fb,yoe=Bb,goe=Vb,boe=zb,voe=Wb;function woe(e=!1){const t=[hoe.default,moe.default,yoe.default,goe.default,boe.default,voe.default,uoe.default,doe.default,coe.default,foe.default,poe.default];return e?t.push(ioe.default,soe.default):t.push(ooe.default,aoe.default),t.push(loe.default),t}$b.default=woe;var Ub={},qb={};Object.defineProperty(qb,"__esModule",{value:!0});const wn=St,xoe={message:({schemaCode:e})=>(0,wn.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,wn._)`{format: ${e}}`},Soe={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:xoe,code(e,t){const{gen:n,data:r,$data:i,schema:a,schemaCode:s,it:l}=e,{opts:c,errSchemaPath:u,schemaEnv:d,self:f}=l;if(!c.validateFormats)return;i?h():p();function h(){const b=n.scopeValue("formats",{ref:f.formats,code:c.code.formats}),m=n.const("fDef",(0,wn._)`${b}[${s}]`),y=n.let("fType"),g=n.let("format");n.if((0,wn._)`typeof ${m} == "object" && !(${m} instanceof RegExp)`,()=>n.assign(y,(0,wn._)`${m}.type || "string"`).assign(g,(0,wn._)`${m}.validate`),()=>n.assign(y,(0,wn._)`"string"`).assign(g,m)),e.fail$data((0,wn.or)(v(),x()));function v(){return c.strictSchema===!1?wn.nil:(0,wn._)`${s} && !${g}`}function x(){const w=d.$async?(0,wn._)`(${m}.async ? await ${g}(${r}) : ${g}(${r}))`:(0,wn._)`${g}(${r})`,S=(0,wn._)`(typeof ${g} == "function" ? ${w} : ${g}.test(${r}))`;return(0,wn._)`${g} && ${g} !== true && ${y} === ${t} && !${S}`}}function p(){const b=f.formats[a];if(!b){v();return}if(b===!0)return;const[m,y,g]=x(b);m===t&&e.pass(w());function v(){if(c.strictSchema===!1){f.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${a}" ignored in schema at path "${u}"`}}function x(S){const O=S instanceof RegExp?(0,wn.regexpCode)(S):c.code.formats?(0,wn._)`${c.code.formats}${(0,wn.getProperty)(a)}`:void 0,C=n.scopeValue("formats",{key:a,ref:S,code:O});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,wn._)`${C}.validate`]:["string",S,C]}function w(){if(typeof b=="object"&&!(b instanceof RegExp)&&b.async){if(!d.$async)throw new Error("async format in sync schema");return(0,wn._)`await ${g}(${r})`}return typeof y=="function"?(0,wn._)`${g}(${r})`:(0,wn._)`${g}.test(${r})`}}}};qb.default=Soe;Object.defineProperty(Ub,"__esModule",{value:!0});const Toe=qb,Ooe=[Toe.default];Ub.default=Ooe;var bs={};Object.defineProperty(bs,"__esModule",{value:!0});bs.contentVocabulary=bs.metadataVocabulary=void 0;bs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];bs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(yb,"__esModule",{value:!0});const Eoe=gb,Coe=vb,Poe=$b,_oe=Ub,ES=bs,koe=[Eoe.default,Coe.default,(0,Poe.default)(),_oe.default,ES.metadataVocabulary,ES.contentVocabulary];yb.default=koe;var Hb={},_p={};Object.defineProperty(_p,"__esModule",{value:!0});_p.DiscrError=void 0;var CS;(function(e){e.Tag="tag",e.Mapping="mapping"})(CS||(_p.DiscrError=CS={}));Object.defineProperty(Hb,"__esModule",{value:!0});const Aa=St,hy=_p,PS=ir,Doe=Ws,$oe=Ge,Roe={message:({params:{discrError:e,tagName:t}})=>e===hy.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>(0,Aa._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`},Moe={keyword:"discriminator",type:"object",schemaType:"object",error:Roe,code(e){const{gen:t,data:n,schema:r,parentSchema:i,it:a}=e,{oneOf:s}=i;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const l=r.propertyName;if(typeof l!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),u=t.const("tag",(0,Aa._)`${n}${(0,Aa.getProperty)(l)}`);t.if((0,Aa._)`typeof ${u} == "string"`,()=>d(),()=>e.error(!1,{discrError:hy.DiscrError.Tag,tag:u,tagName:l})),e.ok(c);function d(){const p=h();t.if(!1);for(const b in p)t.elseIf((0,Aa._)`${u} === ${b}`),t.assign(c,f(p[b]));t.else(),e.error(!1,{discrError:hy.DiscrError.Mapping,tag:u,tagName:l}),t.endIf()}function f(p){const b=t.name("valid"),m=e.subschema({keyword:"oneOf",schemaProp:p},b);return e.mergeEvaluated(m,Aa.Name),b}function h(){var p;const b={},m=g(i);let y=!0;for(let w=0;w<s.length;w++){let S=s[w];if(S!=null&&S.$ref&&!(0,$oe.schemaHasRulesButRef)(S,a.self.RULES)){const C=S.$ref;if(S=PS.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,C),S instanceof PS.SchemaEnv&&(S=S.schema),S===void 0)throw new Doe.default(a.opts.uriResolver,a.baseId,C)}const O=(p=S==null?void 0:S.properties)===null||p===void 0?void 0:p[l];if(typeof O!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);y=y&&(m||g(S)),v(O,w)}if(!y)throw new Error(`discriminator: "${l}" must be required`);return b;function g({required:w}){return Array.isArray(w)&&w.includes(l)}function v(w,S){if(w.const)x(w.const,S);else if(w.enum)for(const O of w.enum)x(O,S);else throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`)}function x(w,S){if(typeof w!="string"||w in b)throw new Error(`discriminator: "${l}" values must be unique strings`);b[w]=S}}}};Hb.default=Moe;const Ioe="http://json-schema.org/draft-07/schema#",Noe="http://json-schema.org/draft-07/schema#",Aoe="Core schema meta-schema",joe={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:[]}},Loe=["object","boolean"],Foe={$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:"#"}},Boe={$schema:Ioe,$id:Noe,title:Aoe,definitions:joe,type:Loe,properties:Foe,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=t.Ajv=void 0;const n=T_,r=yb,i=Hb,a=Boe,s=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(b,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}t.Ajv=c,e.exports=t=c,e.exports.Ajv=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var u=io;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=St;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var f=tu;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=Ws;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(sy,sy.exports);var wk=sy.exports;const Voe=Mt(wk);var my={exports:{}},xk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(k,E){return{validate:k,compare:E}}e.fullFormats={date:t(a,s),time:t(c,u),"date-time":t(f,h),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:m,"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:P,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:g,int32:{type:"number",validate:w},int64:{type:"number",validate:S},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,h),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(k){return k%4===0&&(k%100!==0||k%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(k){const E=r.exec(k);if(!E)return!1;const _=+E[1],T=+E[2],$=+E[3];return T>=1&&T<=12&&$>=1&&$<=(T===2&&n(_)?29:i[T])}function s(k,E){if(k&&E)return k>E?1:k<E?-1:0}const l=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function c(k,E){const _=l.exec(k);if(!_)return!1;const T=+_[1],$=+_[2],M=+_[3],j=_[5];return(T<=23&&$<=59&&M<=59||T===23&&$===59&&M===60)&&(!E||j!=="")}function u(k,E){if(!(k&&E))return;const _=l.exec(k),T=l.exec(E);if(_&&T)return k=_[1]+_[2]+_[3]+(_[4]||""),E=T[1]+T[2]+T[3]+(T[4]||""),k>E?1:k<E?-1:0}const d=/t|\s/i;function f(k){const E=k.split(d);return E.length===2&&a(E[0])&&c(E[1],!0)}function h(k,E){if(!(k&&E))return;const[_,T]=k.split(d),[$,M]=E.split(d),j=s(_,$);if(j!==void 0)return j||u(T,M)}const p=/\/|:/,b=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function m(k){return p.test(k)&&b.test(k)}const y=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function g(k){return y.lastIndex=0,y.test(k)}const v=-2147483648,x=2**31-1;function w(k){return Number.isInteger(k)&&k<=x&&k>=v}function S(k){return Number.isInteger(k)}function O(){return!0}const C=/[^\\]\\Z/;function P(k){if(C.test(k))return!1;try{return new RegExp(k),!0}catch{return!1}}})(xk);var Sk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=wk,n=St,r=n.operators,i={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},a={message:({keyword:l,schemaCode:c})=>n.str`should be ${i[l].okStr} ${c}`,params:({keyword:l,schemaCode:c})=>n._`{comparison: ${i[l].okStr}, limit: ${c}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:a,code(l){const{gen:c,data:u,schemaCode:d,keyword:f,it:h}=l,{opts:p,self:b}=h;if(!p.validateFormats)return;const m=new t.KeywordCxt(h,b.RULES.all.format.definition,"format");m.$data?y():g();function y(){const x=c.scopeValue("formats",{ref:b.formats,code:p.code.formats}),w=c.const("fmt",n._`${x}[${m.schemaCode}]`);l.fail$data(n.or(n._`typeof ${w} != "object"`,n._`${w} instanceof RegExp`,n._`typeof ${w}.compare != "function"`,v(w)))}function g(){const x=m.schema,w=b.formats[x];if(!w||w===!0)return;if(typeof w!="object"||w instanceof RegExp||typeof w.compare!="function")throw new Error(`"${f}": format "${x}" does not define "compare" function`);const S=c.scopeValue("formats",{key:x,ref:w,code:p.code.formats?n._`${p.code.formats}${n.getProperty(x)}`:void 0});l.fail$data(v(S))}function v(x){return n._`${x}.compare(${u}, ${d}) ${i[f].fail} 0`}},dependencies:["format"]};const s=l=>(l.addKeyword(e.formatLimitDefinition),l);e.default=s})(Sk);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=xk,r=Sk,i=St,a=new i.Name("fullFormats"),s=new i.Name("fastFormats"),l=(u,d={keywords:!0})=>{if(Array.isArray(d))return c(u,d,n.fullFormats,a),u;const[f,h]=d.mode==="fast"?[n.fastFormats,s]:[n.fullFormats,a],p=d.formats||n.formatNames;return c(u,p,f,h),d.keywords&&r.default(u),u};l.get=(u,d="full")=>{const h=(d==="fast"?n.fastFormats:n.fullFormats)[u];if(!h)throw new Error(`Unknown format "${u}"`);return h};function c(u,d,f,h){var p,b;(p=(b=u.opts.code).formats)!==null&&p!==void 0||(b.formats=i._`require("ajv-formats/dist/formats").${h}`);for(const m of d)u.addFormat(m,f[m])}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l})(my,my.exports);var zoe=my.exports;const Woe=Mt(zoe);function Uoe(e){return function(t,n,r){for(var i=-1,a=Object(t),s=r(t),l=s.length;l--;){var c=s[e?l:++i];if(n(a[c],c,a)===!1)break}return t}}var qoe=Uoe,Hoe=qoe,Yoe=Hoe(),Tk=Yoe,Goe=Tk,Koe=Jo;function Xoe(e,t){return e&&Goe(e,t,Koe)}var Zoe=Xoe,Qoe=Qo;function Joe(e,t){return function(n,r){if(n==null)return n;if(!Qoe(n))return e(n,r);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&r(s[a],a,s)!==!1;);return n}}var eie=Joe,tie=Zoe,nie=eie,rie=nie(tie),Yb=rie,oie=Yb;function iie(e,t){var n=[];return oie(e,function(r,i,a){t(r,i,a)&&n.push(r)}),n}var aie=iie,sie=DP,lie=aie,cie=fa,uie=Pn;function die(e,t){var n=uie(e)?sie:lie;return n(e,cie(t))}var fie=die;const _S=Mt(fie);var pie=Zg;function hie(e,t){return pie(e,t)}var Ok=hie;const Gb=Mt(Ok);var mie=ca,yie=function(){try{var e=mie(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ek=yie,kS=Ek;function gie(e,t,n){t=="__proto__"&&kS?kS(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Kb=gie,bie=Kb,vie=Yc;function wie(e,t,n){(n!==void 0&&!vie(e[t],n)||n===void 0&&!(t in e))&&bie(e,t,n)}var Ck=wie,Zd={exports:{}};Zd.exports;(function(e,t){var n=tr,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,s=a?n.Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(u,d){if(d)return u.slice();var f=u.length,h=l?l(f):new u.constructor(f);return u.copy(h),h}e.exports=c})(Zd,Zd.exports);var Pk=Zd.exports,DS=CP;function xie(e){var t=new e.constructor(e.byteLength);return new DS(t).set(new DS(e)),t}var Xb=xie,Sie=Xb;function Tie(e,t){var n=t?Sie(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var _k=Tie;function Oie(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var ru=Oie,Eie=$r,$S=Object.create,Cie=function(){function e(){}return function(t){if(!Eie(t))return{};if($S)return $S(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),kp=Cie,Pie=IP,_ie=Pie(Object.getPrototypeOf,Object),Zb=_ie,kie=kp,Die=Zb,$ie=vp;function Rie(e){return typeof e.constructor=="function"&&!$ie(e)?kie(Die(e)):{}}var kk=Rie,Mie=Qo,Iie=Dr;function Nie(e){return Iie(e)&&Mie(e)}var Dk=Nie,Aie=Oi,jie=Zb,Lie=Dr,Fie="[object Object]",Bie=Function.prototype,Vie=Object.prototype,$k=Bie.toString,zie=Vie.hasOwnProperty,Wie=$k.call(Object);function Uie(e){if(!Lie(e)||Aie(e)!=Fie)return!1;var t=jie(e);if(t===null)return!0;var n=zie.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&$k.call(n)==Wie}var Qb=Uie;function qie(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Rk=qie,Hie=Kb,Yie=Yc,Gie=Object.prototype,Kie=Gie.hasOwnProperty;function Xie(e,t,n){var r=e[t];(!(Kie.call(e,t)&&Yie(r,n))||n===void 0&&!(t in e))&&Hie(e,t,n)}var Jb=Xie,Zie=Jb,Qie=Kb;function Jie(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):void 0;c===void 0&&(c=e[l]),i?Qie(n,l,c):Zie(n,l,c)}return n}var Hs=Jie;function eae(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var tae=eae,nae=$r,rae=vp,oae=tae,iae=Object.prototype,aae=iae.hasOwnProperty;function sae(e){if(!nae(e))return oae(e);var t=rae(e),n=[];for(var r in e)r=="constructor"&&(t||!aae.call(e,r))||n.push(r);return n}var lae=sae,cae=MP,uae=lae,dae=Qo;function fae(e){return dae(e)?cae(e,!0):uae(e)}var ou=fae,pae=Hs,hae=ou;function mae(e){return pae(e,hae(e))}var yae=mae,RS=Ck,gae=Pk,bae=_k,vae=ru,wae=kk,MS=Kc,IS=Pn,xae=Dk,Sae=Xc,Tae=Gc,Oae=$r,Eae=Qb,Cae=bp,NS=Rk,Pae=yae;function _ae(e,t,n,r,i,a,s){var l=NS(e,n),c=NS(t,n),u=s.get(c);if(u){RS(e,n,u);return}var d=a?a(l,c,n+"",e,t,s):void 0,f=d===void 0;if(f){var h=IS(c),p=!h&&Sae(c),b=!h&&!p&&Cae(c);d=c,h||p||b?IS(l)?d=l:xae(l)?d=vae(l):p?(f=!1,d=gae(c,!0)):b?(f=!1,d=bae(c,!0)):d=[]:Eae(c)||MS(c)?(d=l,MS(l)?d=Pae(l):(!Oae(l)||Tae(l))&&(d=wae(c))):f=!1}f&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),RS(e,n,d)}var kae=_ae,Dae=gp,$ae=Ck,Rae=Tk,Mae=kae,Iae=$r,Nae=ou,Aae=Rk;function Mk(e,t,n,r,i){e!==t&&Rae(t,function(a,s){if(i||(i=new Dae),Iae(a))Mae(e,t,s,n,Mk,r,i);else{var l=r?r(Aae(e,s),a,s+"",e,t,i):void 0;l===void 0&&(l=a),$ae(e,s,l)}},Nae)}var jae=Mk;function Lae(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var ev=Lae,Fae=ev,AS=Math.max;function Bae(e,t,n){return t=AS(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=AS(r.length-t,0),s=Array(a);++i<a;)s[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(s),Fae(e,this,l)}}var Ik=Bae;function Vae(e){return function(){return e}}var zae=Vae,Wae=zae,jS=Ek,Uae=wp,qae=jS?function(e,t){return jS(e,"toString",{configurable:!0,enumerable:!1,value:Wae(t),writable:!0})}:Uae,Hae=qae,Yae=800,Gae=16,Kae=Date.now;function Xae(e){var t=0,n=0;return function(){var r=Kae(),i=Gae-(r-n);if(n=r,i>0){if(++t>=Yae)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Nk=Xae,Zae=Hae,Qae=Nk,Jae=Qae(Zae),tv=Jae,ese=wp,tse=Ik,nse=tv;function rse(e,t){return nse(tse(e,t,ese),e+"")}var Ak=rse,ose=Ak,ise=m_;function ase(e){return ose(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,s&&ise(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}var sse=ase,lse=jae,cse=sse,use=cse(function(e,t,n){lse(e,t,n)}),dse=use;const It=Mt(dse);function fse(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var nv=fse,pse=Hs,hse=Jo;function mse(e,t){return e&&pse(t,hse(t),e)}var jk=mse,yse=Hs,gse=ou;function bse(e,t){return e&&yse(t,gse(t),e)}var vse=bse,wse=Hs,xse=Hg;function Sse(e,t){return wse(e,xse(e),t)}var Tse=Sse,Ose=qg,Ese=Zb,Cse=Hg,Pse=$P,_se=Object.getOwnPropertySymbols,kse=_se?function(e){for(var t=[];e;)Ose(t,Cse(e)),e=Ese(e);return t}:Pse,Lk=kse,Dse=Hs,$se=Lk;function Rse(e,t){return Dse(e,$se(e),t)}var Mse=Rse,Ise=kP,Nse=Lk,Ase=ou;function jse(e){return Ise(e,Ase,Nse)}var Fk=jse,Lse=Object.prototype,Fse=Lse.hasOwnProperty;function Bse(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Fse.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Vse=Bse,zse=Xb;function Wse(e,t){var n=t?zse(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Use=Wse,qse=/\w*$/;function Hse(e){var t=new e.constructor(e.source,qse.exec(e));return t.lastIndex=e.lastIndex,t}var Yse=Hse,LS=Ns,FS=LS?LS.prototype:void 0,BS=FS?FS.valueOf:void 0;function Gse(e){return BS?Object(BS.call(e)):{}}var Kse=Gse,Xse=Xb,Zse=Use,Qse=Yse,Jse=Kse,ele=_k,tle="[object Boolean]",nle="[object Date]",rle="[object Map]",ole="[object Number]",ile="[object RegExp]",ale="[object Set]",sle="[object String]",lle="[object Symbol]",cle="[object ArrayBuffer]",ule="[object DataView]",dle="[object Float32Array]",fle="[object Float64Array]",ple="[object Int8Array]",hle="[object Int16Array]",mle="[object Int32Array]",yle="[object Uint8Array]",gle="[object Uint8ClampedArray]",ble="[object Uint16Array]",vle="[object Uint32Array]";function wle(e,t,n){var r=e.constructor;switch(t){case cle:return Xse(e);case tle:case nle:return new r(+e);case ule:return Zse(e,n);case dle:case fle:case ple:case hle:case mle:case yle:case gle:case ble:case vle:return ele(e,n);case rle:return new r;case ole:case sle:return new r(e);case ile:return Qse(e);case ale:return new r;case lle:return Jse(e)}}var xle=wle,Sle=ua,Tle=Dr,Ole="[object Map]";function Ele(e){return Tle(e)&&Sle(e)==Ole}var Cle=Ele,Ple=Cle,_le=Gg,VS=Kg,zS=VS&&VS.isMap,kle=zS?_le(zS):Ple,Dle=kle,$le=ua,Rle=Dr,Mle="[object Set]";function Ile(e){return Rle(e)&&$le(e)==Mle}var Nle=Ile,Ale=Nle,jle=Gg,WS=Kg,US=WS&&WS.isSet,Lle=US?jle(US):Ale,Fle=Lle,Ble=gp,Vle=nv,zle=Jb,Wle=jk,Ule=vse,qle=Pk,Hle=ru,Yle=Tse,Gle=Mse,Kle=NP,Xle=Fk,Zle=ua,Qle=Vse,Jle=xle,ece=kk,tce=Pn,nce=Xc,rce=Dle,oce=$r,ice=Fle,ace=Jo,sce=ou,lce=1,cce=2,uce=4,Bk="[object Arguments]",dce="[object Array]",fce="[object Boolean]",pce="[object Date]",hce="[object Error]",Vk="[object Function]",mce="[object GeneratorFunction]",yce="[object Map]",gce="[object Number]",zk="[object Object]",bce="[object RegExp]",vce="[object Set]",wce="[object String]",xce="[object Symbol]",Sce="[object WeakMap]",Tce="[object ArrayBuffer]",Oce="[object DataView]",Ece="[object Float32Array]",Cce="[object Float64Array]",Pce="[object Int8Array]",_ce="[object Int16Array]",kce="[object Int32Array]",Dce="[object Uint8Array]",$ce="[object Uint8ClampedArray]",Rce="[object Uint16Array]",Mce="[object Uint32Array]",rn={};rn[Bk]=rn[dce]=rn[Tce]=rn[Oce]=rn[fce]=rn[pce]=rn[Ece]=rn[Cce]=rn[Pce]=rn[_ce]=rn[kce]=rn[yce]=rn[gce]=rn[zk]=rn[bce]=rn[vce]=rn[wce]=rn[xce]=rn[Dce]=rn[$ce]=rn[Rce]=rn[Mce]=!0;rn[hce]=rn[Vk]=rn[Sce]=!1;function cd(e,t,n,r,i,a){var s,l=t&lce,c=t&cce,u=t&uce;if(n&&(s=i?n(e,r,i,a):n(e)),s!==void 0)return s;if(!oce(e))return e;var d=tce(e);if(d){if(s=Qle(e),!l)return Hle(e,s)}else{var f=Zle(e),h=f==Vk||f==mce;if(nce(e))return qle(e,l);if(f==zk||f==Bk||h&&!i){if(s=c||h?{}:ece(e),!l)return c?Gle(e,Ule(s,e)):Yle(e,Wle(s,e))}else{if(!rn[f])return i?e:{};s=Jle(e,f,l)}}a||(a=new Ble);var p=a.get(e);if(p)return p;a.set(e,s),ice(e)?e.forEach(function(y){s.add(cd(y,t,n,y,e,a))}):rce(e)&&e.forEach(function(y,g){s.set(g,cd(y,t,n,g,e,a))});var b=u?c?Xle:Kle:c?sce:ace,m=d?void 0:b(e);return Vle(m||e,function(y,g){m&&(g=y,y=e[g]),zle(s,g,cd(y,t,n,g,e,a))}),s}var Dp=cd,Ice=Dp,Nce=1,Ace=4;function jce(e){return Ice(e,Nce|Ace)}var Lce=jce;const Yl=Mt(Lce);var Wk={};(function(e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var i in n){var a=n[i];t.call(r,a)?r[a].push(i):r[a]=[i]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}})(Wk);var Kh,qS;function rv(){return qS||(qS=1,Kh={}),Kh}var _n=Wk,Fce=rv(),HS=Array.prototype.push;function Bce(e,t){return t==2?function(n,r){return e.apply(void 0,arguments)}:function(n){return e.apply(void 0,arguments)}}function Xh(e,t){return t==2?function(n,r){return e(n,r)}:function(n){return e(n)}}function YS(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function Vce(e){return function(t){return e({},t)}}function zce(e,t){return function(){for(var n=arguments.length,r=n-1,i=Array(n);n--;)i[n]=arguments[n];var a=i[t],s=i.slice(0,t);return a&&HS.apply(s,a),t!=r&&HS.apply(s,i.slice(t+1)),e.apply(this,s)}}function Zh(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=t.apply(void 0,r);return e.apply(void 0,r),i}}}function yy(e,t,n,r){var i=typeof t=="function",a=t===Object(t);if(a&&(r=n,n=t,t=void 0),n==null)throw new TypeError;r||(r={});var s={cap:"cap"in r?r.cap:!0,curry:"curry"in r?r.curry:!0,fixed:"fixed"in r?r.fixed:!0,immutable:"immutable"in r?r.immutable:!0,rearg:"rearg"in r?r.rearg:!0},l=i?n:Fce,c="curry"in r&&r.curry,u="fixed"in r&&r.fixed,d="rearg"in r&&r.rearg,f=i?n.runInContext():void 0,h=i?n:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},p=h.ary,b=h.assign,m=h.clone,y=h.curry,g=h.forEach,v=h.isArray,x=h.isError,w=h.isFunction,S=h.isWeakMap,O=h.keys,C=h.rearg,P=h.toInteger,k=h.toPath,E=O(_n.aryMethod),_={castArray:function(A){return function(){var N=arguments[0];return v(N)?A(YS(N)):A.apply(void 0,arguments)}},iteratee:function(A){return function(){var N=arguments[0],q=arguments[1],Y=A(N,q),G=Y.length;return s.cap&&typeof q=="number"?(q=q>2?q-2:1,G&&G<=q?Y:Xh(Y,q)):Y}},mixin:function(A){return function(N){var q=this;if(!w(q))return A(q,Object(N));var Y=[];return g(O(N),function(G){w(N[G])&&Y.push([G,q.prototype[G]])}),A(q,Object(N)),g(Y,function(G){var X=G[1];w(X)?q.prototype[G[0]]=X:delete q.prototype[G[0]]}),q}},nthArg:function(A){return function(N){var q=N<0?1:P(N)+1;return y(A(N),q)}},rearg:function(A){return function(N,q){var Y=q?q.length:0;return y(A(N,q),Y)}},runInContext:function(A){return function(N){return yy(e,A(N),r)}}};function T(A,N){if(s.cap){var q=_n.iterateeRearg[A];if(q)return F(N,q);var Y=!i&&_n.iterateeAry[A];if(Y)return H(N,Y)}return N}function $(A,N,q){return c||s.curry&&q>1?y(N,q):N}function M(A,N,q){if(s.fixed&&(u||!_n.skipFixed[A])){var Y=_n.methodSpread[A],G=Y&&Y.start;return G===void 0?p(N,q):zce(N,G)}return N}function j(A,N,q){return s.rearg&&q>1&&(d||!_n.skipRearg[A])?C(N,_n.methodRearg[A]||_n.aryRearg[q]):N}function W(A,N){N=k(N);for(var q=-1,Y=N.length,G=Y-1,X=m(Object(A)),Q=X;Q!=null&&++q<Y;){var Z=N[q],ce=Q[Z];ce!=null&&!(w(ce)||x(ce)||S(ce))&&(Q[Z]=m(q==G?ce:Object(ce))),Q=Q[Z]}return X}function U(A){return z.runInContext.convert(A)(void 0)}function K(A,N){var q=_n.aliasToReal[A]||A,Y=_n.remap[q]||q,G=r;return function(X){var Q=i?f:h,Z=i?f[Y]:N,ce=b(b({},G),X);return yy(Q,q,Z,ce)}}function H(A,N){return R(A,function(q){return typeof q=="function"?Xh(q,N):q})}function F(A,N){return R(A,function(q){var Y=N.length;return Bce(C(Xh(q,Y),N),Y)})}function R(A,N){return function(){var q=arguments.length;if(!q)return A();for(var Y=Array(q);q--;)Y[q]=arguments[q];var G=s.rearg?0:q-1;return Y[G]=N(Y[G]),A.apply(void 0,Y)}}function V(A,N,q){var Y,G=_n.aliasToReal[A]||A,X=N,Q=_[G];return Q?X=Q(N):s.immutable&&(_n.mutate.array[G]?X=Zh(N,YS):_n.mutate.object[G]?X=Zh(N,Vce(N)):_n.mutate.set[G]&&(X=Zh(N,W))),g(E,function(Z){return g(_n.aryMethod[Z],function(ce){if(G==ce){var ue=_n.methodSpread[G],ye=ue&&ue.afterRearg;return Y=ye?M(G,j(G,X,Z),Z):j(G,M(G,X,Z),Z),Y=T(G,Y),Y=$(G,Y,Z),!1}}),!Y}),Y||(Y=X),Y==N&&(Y=c?y(Y,1):function(){return N.apply(this,arguments)}),Y.convert=K(G,N),Y.placeholder=N.placeholder=q,Y}if(!a)return V(t,n,l);var z=n,L=[];return g(E,function(A){g(_n.aryMethod[A],function(N){var q=z[_n.remap[N]||N];q&&L.push([N,V(N,q,z)])})}),g(O(z),function(A){var N=z[A];if(typeof N=="function"){for(var q=L.length;q--;)if(L[q][0]==A)return;N.convert=K(A,N),L.push([A,N])}}),g(L,function(A){z[A[0]]=A[1]}),z.convert=U,z.placeholder=z,g(O(z),function(A){g(_n.realToAlias[A]||[],function(N){z[N]=z[A]})}),z}var Wce=yy,GS=jP,Uce=GS&&new GS,Uk=Uce,qce=wp,KS=Uk,Hce=KS?function(e,t){return KS.set(e,t),e}:qce,qk=Hce,Yce=kp,Gce=$r;function Kce(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 n=Yce(e.prototype),r=e.apply(n,t);return Gce(r)?r:n}}var $p=Kce,Xce=$p,Zce=tr,Qce=1;function Jce(e,t,n){var r=t&Qce,i=Xce(e);function a(){var s=this&&this!==Zce&&this instanceof a?i:e;return s.apply(r?n:this,arguments)}return a}var eue=Jce,tue=Math.max;function nue(e,t,n,r){for(var i=-1,a=e.length,s=n.length,l=-1,c=t.length,u=tue(a-s,0),d=Array(c+u),f=!r;++l<c;)d[l]=t[l];for(;++i<s;)(f||i<a)&&(d[n[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}var Hk=nue,rue=Math.max;function oue(e,t,n,r){for(var i=-1,a=e.length,s=-1,l=n.length,c=-1,u=t.length,d=rue(a-l,0),f=Array(d+u),h=!r;++i<d;)f[i]=e[i];for(var p=i;++c<u;)f[p+c]=t[c];for(;++s<l;)(h||i<a)&&(f[p+n[s]]=e[i++]);return f}var Yk=oue;function iue(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var aue=iue;function sue(){}var ov=sue,lue=kp,cue=ov,uue=4294967295;function Qd(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=uue,this.__views__=[]}Qd.prototype=lue(cue.prototype);Qd.prototype.constructor=Qd;var iv=Qd;function due(){}var Gk=due,XS=Uk,fue=Gk,pue=XS?function(e){return XS.get(e)}:fue,Kk=pue,hue={},mue=hue,ZS=mue,yue=Object.prototype,gue=yue.hasOwnProperty;function bue(e){for(var t=e.name+"",n=ZS[t],r=gue.call(ZS,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}var vue=bue,wue=kp,xue=ov;function Jd(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Jd.prototype=wue(xue.prototype);Jd.prototype.constructor=Jd;var Xk=Jd,Sue=iv,Tue=Xk,Oue=ru;function Eue(e){if(e instanceof Sue)return e.clone();var t=new Tue(e.__wrapped__,e.__chain__);return t.__actions__=Oue(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Cue=Eue,Pue=iv,QS=Xk,_ue=ov,kue=Pn,Due=Dr,$ue=Cue,Rue=Object.prototype,Mue=Rue.hasOwnProperty;function ef(e){if(Due(e)&&!kue(e)&&!(e instanceof Pue)){if(e instanceof QS)return e;if(Mue.call(e,"__wrapped__"))return $ue(e)}return new QS(e)}ef.prototype=_ue.prototype;ef.prototype.constructor=ef;var Iue=ef,Nue=iv,Aue=Kk,jue=vue,Lue=Iue;function Fue(e){var t=jue(e),n=Lue[t];if(typeof n!="function"||!(t in Nue.prototype))return!1;if(e===n)return!0;var r=Aue(n);return!!r&&e===r[0]}var Bue=Fue,Vue=qk,zue=Nk,Wue=zue(Vue),Zk=Wue,Uue=/\{\n\/\* \[wrapped with (.+)\] \*/,que=/,? & /;function Hue(e){var t=e.match(Uue);return t?t[1].split(que):[]}var Yue=Hue,Gue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Kue(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Gue,`{
/* [wrapped with `+t+`] */
`)}var Xue=Kue,Zue=x_;function Que(e,t){var n=e==null?0:e.length;return!!n&&Zue(e,t,0)>-1}var Qk=Que,Jue=nv,ede=Qk,tde=1,nde=2,rde=8,ode=16,ide=32,ade=64,sde=128,lde=256,cde=512,ude=[["ary",sde],["bind",tde],["bindKey",nde],["curry",rde],["curryRight",ode],["flip",cde],["partial",ide],["partialRight",ade],["rearg",lde]];function dde(e,t){return Jue(ude,function(n){var r="_."+n[0];t&n[1]&&!ede(e,r)&&e.push(r)}),e.sort()}var fde=dde,pde=Yue,hde=Xue,mde=tv,yde=fde;function gde(e,t,n){var r=t+"";return mde(e,hde(r,yde(pde(r),n)))}var Jk=gde,bde=Bue,vde=Zk,wde=Jk,xde=4,Sde=8,JS=32,eT=64;function Tde(e,t,n,r,i,a,s,l,c,u){var d=t&Sde,f=d?s:void 0,h=d?void 0:s,p=d?a:void 0,b=d?void 0:a;t|=d?JS:eT,t&=~(d?eT:JS),t&xde||(t&=-4);var m=[e,t,i,p,f,b,h,l,c,u],y=n.apply(void 0,m);return bde(e)&&vde(y,m),y.placeholder=r,wde(y,e,t)}var eD=Tde;function Ode(e){var t=e;return t.placeholder}var tD=Ode,Ede=ru,Cde=Zc,Pde=Math.min;function _de(e,t){for(var n=e.length,r=Pde(t.length,n),i=Ede(e);r--;){var a=t[r];e[r]=Cde(a,n)?i[a]:void 0}return e}var kde=_de,tT="__lodash_placeholder__";function Dde(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n];(s===t||s===tT)&&(e[n]=tT,a[i++]=n)}return a}var av=Dde,$de=Hk,Rde=Yk,Mde=aue,nT=$p,Ide=eD,Nde=tD,Ade=kde,jde=av,Lde=tr,Fde=1,Bde=2,Vde=8,zde=16,Wde=128,Ude=512;function nD(e,t,n,r,i,a,s,l,c,u){var d=t&Wde,f=t&Fde,h=t&Bde,p=t&(Vde|zde),b=t&Ude,m=h?void 0:nT(e);function y(){for(var g=arguments.length,v=Array(g),x=g;x--;)v[x]=arguments[x];if(p)var w=Nde(y),S=Mde(v,w);if(r&&(v=$de(v,r,i,p)),a&&(v=Rde(v,a,s,p)),g-=S,p&&g<u){var O=jde(v,w);return Ide(e,t,nD,y.placeholder,n,v,O,l,c,u-g)}var C=f?n:this,P=h?C[e]:e;return g=v.length,l?v=Ade(v,l):b&&g>1&&v.reverse(),d&&c<g&&(v.length=c),this&&this!==Lde&&this instanceof y&&(P=m||nT(P)),P.apply(C,v)}return y}var rD=nD,qde=ev,Hde=$p,Yde=rD,Gde=eD,Kde=tD,Xde=av,Zde=tr;function Qde(e,t,n){var r=Hde(e);function i(){for(var a=arguments.length,s=Array(a),l=a,c=Kde(i);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:Xde(s,c);if(a-=u.length,a<n)return Gde(e,t,Yde,i.placeholder,void 0,s,u,void 0,void 0,n-a);var d=this&&this!==Zde&&this instanceof i?r:e;return qde(d,this,s)}return i}var Jde=Qde,efe=ev,tfe=$p,nfe=tr,rfe=1;function ofe(e,t,n,r){var i=t&rfe,a=tfe(e);function s(){for(var l=-1,c=arguments.length,u=-1,d=r.length,f=Array(d+c),h=this&&this!==nfe&&this instanceof s?a:e;++u<d;)f[u]=r[u];for(;c--;)f[u++]=arguments[++l];return efe(h,i?n:this,f)}return s}var ife=ofe,afe=Hk,sfe=Yk,rT=av,oT="__lodash_placeholder__",Qh=1,lfe=2,cfe=4,iT=8,hl=128,aT=256,ufe=Math.min;function dfe(e,t){var n=e[1],r=t[1],i=n|r,a=i<(Qh|lfe|hl),s=r==hl&&n==iT||r==hl&&n==aT&&e[7].length<=t[8]||r==(hl|aT)&&t[7].length<=t[8]&&n==iT;if(!(a||s))return e;r&Qh&&(e[2]=t[2],i|=n&Qh?0:cfe);var l=t[3];if(l){var c=e[3];e[3]=c?afe(c,l,t[4]):l,e[4]=c?rT(e[3],oT):t[4]}return l=t[5],l&&(c=e[5],e[5]=c?sfe(c,l,t[6]):l,e[6]=c?rT(e[5],oT):t[6]),l=t[7],l&&(e[7]=l),r&hl&&(e[8]=e[8]==null?t[8]:ufe(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}var ffe=dfe,pfe=qk,hfe=eue,mfe=Jde,yfe=rD,gfe=ife,bfe=Kk,vfe=ffe,wfe=Zk,xfe=Jk,sT=Sp,Sfe="Expected a function",lT=1,Tfe=2,cT=8,uT=16,dT=32,Ofe=64,fT=Math.max;function Efe(e,t,n,r,i,a,s,l){var c=t&Tfe;if(!c&&typeof e!="function")throw new TypeError(Sfe);var u=r?r.length:0;if(u||(t&=-97,r=i=void 0),s=s===void 0?s:fT(sT(s),0),l=l===void 0?l:sT(l),u-=i?i.length:0,t&Ofe){var d=r,f=i;r=i=void 0}var h=c?void 0:bfe(e),p=[e,t,n,r,i,d,f,a,s,l];if(h&&vfe(p,h),e=p[0],t=p[1],n=p[2],r=p[3],i=p[4],l=p[9]=p[9]===void 0?c?0:e.length:fT(p[9]-u,0),!l&&t&(cT|uT)&&(t&=-25),!t||t==lT)var b=hfe(e,t,n);else t==cT||t==uT?b=mfe(e,t,l):(t==dT||t==(lT|dT))&&!i.length?b=gfe(e,t,n,r):b=yfe.apply(void 0,p);var m=h?pfe:wfe;return xfe(m(b,p),e,t)}var sv=Efe,Cfe=sv,Pfe=128;function _fe(e,t,n){return t=n?void 0:t,t=e&&t==null?e.length:t,Cfe(e,Pfe,void 0,void 0,void 0,void 0,t)}var kfe=_fe,Dfe=Dp,$fe=4;function Rfe(e){return Dfe(e,$fe)}var Mfe=Rfe,Ife=sv,Nfe=8;function lv(e,t,n){t=n?void 0:t;var r=Ife(e,Nfe,void 0,void 0,void 0,void 0,void 0,t);return r.placeholder=lv.placeholder,r}lv.placeholder={};var Afe=lv,jfe=Oi,Lfe=Dr,Ffe=Qb,Bfe="[object DOMException]",Vfe="[object Error]";function zfe(e){if(!Lfe(e))return!1;var t=jfe(e);return t==Vfe||t==Bfe||typeof e.message=="string"&&typeof e.name=="string"&&!Ffe(e)}var Wfe=zfe,Ufe=ua,qfe=Dr,Hfe="[object WeakMap]";function Yfe(e){return qfe(e)&&Ufe(e)==Hfe}var Gfe=Yfe,Kfe=Dp,Xfe=fa,Zfe=1;function Qfe(e){return Xfe(typeof e=="function"?e:Kfe(e,Zfe))}var Jfe=Qfe,pT=Ns,epe=Kc,tpe=Pn,hT=pT?pT.isConcatSpreadable:void 0;function npe(e){return tpe(e)||epe(e)||!!(hT&&e&&e[hT])}var rpe=npe,ope=qg,ipe=rpe;function oD(e,t,n,r,i){var a=-1,s=e.length;for(n||(n=ipe),i||(i=[]);++a<s;){var l=e[a];t>0&&n(l)?t>1?oD(l,t-1,n,r,i):ope(i,l):r||(i[i.length]=l)}return i}var iD=oD,ape=iD;function spe(e){var t=e==null?0:e.length;return t?ape(e,1):[]}var lpe=spe,cpe=lpe,upe=Ik,dpe=tv;function fpe(e){return dpe(upe(e,void 0,cpe),e+"")}var aD=fpe,ppe=sv,hpe=aD,mpe=256,ype=hpe(function(e,t){return ppe(e,mpe,void 0,void 0,void 0,t)}),gpe=ype,bpe=zs,vpe=ru,wpe=Pn,xpe=As,Spe=WP,Tpe=da,Ope=Qc;function Epe(e){return wpe(e)?bpe(e,Tpe):xpe(e)?[e]:vpe(Spe(Ope(e)))}var Cpe=Epe,Ppe={ary:kfe,assign:jk,clone:Mfe,curry:Afe,forEach:nv,isArray:Pn,isError:Wfe,isFunction:Gc,isWeakMap:Gfe,iteratee:Jfe,keys:Xg,rearg:gpe,toInteger:Sp,toPath:Cpe},_pe=Wce,kpe=Ppe;function Dpe(e,t,n){return _pe(kpe,e,t,n)}var sD=Dpe,Jh,mT;function $pe(){if(mT)return Jh;mT=1;var e=Jb,t=Jc,n=Zc,r=$r,i=da;function a(s,l,c,u){if(!r(s))return s;l=t(l,s);for(var d=-1,f=l.length,h=f-1,p=s;p!=null&&++d<f;){var b=i(l[d]),m=c;if(b==="__proto__"||b==="constructor"||b==="prototype")return s;if(d!=h){var y=p[b];m=u?u(y,b,p):void 0,m===void 0&&(m=r(y)?y:n(l[d+1])?[]:{})}e(p,b,m),p=p[b]}return s}return Jh=a,Jh}var em,yT;function Rpe(){if(yT)return em;yT=1;var e=$pe();function t(n,r,i){return n==null?n:e(n,r,i)}return em=t,em}var Mpe=sD,lD=Mpe("set",Rpe());lD.placeholder=rv();var Ipe=lD;const Npe=Mt(Ipe);function Ape(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var jpe=Ape,Lpe=eb,Fpe=s_;function Bpe(e,t){return t.length<2?e:Lpe(e,Fpe(t,0,-1))}var Vpe=Bpe,zpe=Jc,Wpe=jpe,Upe=Vpe,qpe=da;function Hpe(e,t){return t=zpe(t,e),e=Upe(e,t),e==null||delete e[qpe(Wpe(t))]}var cD=Hpe,tm,gT;function Ype(){if(gT)return tm;gT=1;var e=cD;function t(n,r){return n==null?!0:e(n,r)}return tm=t,tm}var Gpe=sD,uD=Gpe("unset",Ype());uD.placeholder=rv();var Kpe=uD;const Xpe=Mt(Kpe);function Zpe(e,t,n,r,i){return i(e,function(a,s,l){n=r?(r=!1,a):t(n,a,s,l)}),n}var Qpe=Zpe,Jpe=YP,ehe=Yb,the=fa,nhe=Qpe,rhe=Pn;function ohe(e,t,n){var r=rhe(e)?Jpe:nhe,i=arguments.length<3;return r(e,the(t),n,i,ehe)}var ihe=ohe;const bT=Mt(ihe);var ahe=zs;function she(e,t){return ahe(t,function(n){return[n,e[n]]})}var lhe=she;function che(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var uhe=che,dhe=lhe,fhe=ua,phe=PP,hhe=uhe,mhe="[object Map]",yhe="[object Set]";function ghe(e){return function(t){var n=fhe(t);return n==mhe?phe(t):n==yhe?hhe(t):dhe(t,e(t))}}var bhe=ghe,vhe=bhe,whe=Jo,xhe=vhe(whe),She=xhe;const The=Mt(She),ud="additionalProperties",dd="required",Ohe=(e,t)=>{const n={};return e.filter(r=>{const i=t(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:(n[i]=!0,!0)})};class Ehe{constructor(t){this.findOption=t,this.schemaObject=n=>{const r=this.properties(n),i={type:"object",properties:r,additionalProperties:this.findOption(r)(ud)},a=this.findOption(r)(dd);return a.length>0&&(i.required=a),i},this.properties=n=>{const r={};return Object.keys(n).reduce((i,a)=>(i[a]=this.property(n[a]),i),r)},this.property=n=>{switch(typeof n){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(n)?{type:"integer"}:{type:"number"};case"object":return n==null?{type:"null"}:this.schemaObjectOrArray(n);default:return{}}},this.schemaObjectOrArray=n=>n instanceof Array?this.schemaArray(n):this.schemaObject(n),this.schemaArray=n=>{if(n.length>0){const r=n.map(this.property),i=Ohe(r,a=>JSON.stringify(a));return i.length===1?{type:"array",items:i[0]}:{type:"array",items:{oneOf:i}}}else return{type:"array",items:{}}}}}const dD=(e,t={})=>{const n=i=>a=>{switch(a){case ud:return Object.prototype.hasOwnProperty.call(t,ud)?t[ud]:!0;case dd:return Object.prototype.hasOwnProperty.call(t,dd)?t[dd](i):Object.keys(i);default:return}};return new Ehe(n).schemaObject(e)},cv=new Set,fD=(e,t)=>t<=1?e:e+t.toString(),Che=(e,t)=>{const n=fD(e,t);return!cv.has(n)},gy=e=>{e===void 0&&(e="undefined");let t=0;for(;!Che(e,t);)t++;const n=fD(e,t);return cv.add(n),n},by=e=>cv.delete(e),Ys=(e,t)=>{let n=e;return!pt(e)&&!pt(t)&&!t.startsWith("[")&&(n=e+"."),pt(n)?t:pt(t)?n:`${n}${t}`},pD=e=>{const r=e.replace(/(anyOf|allOf|oneOf)\/[\d]+\//g,"").replace(/(then|else)\//g,"").split("/").map(iu),a=r[0]==="#"||r[0]===""?2:1;return xp(a,r.length,2).map(s=>r[s])},tf=e=>e==null?void 0:e.replace(/~/g,"~0").replace(/\//g,"~1"),iu=e=>e==null?void 0:e.replace(/~1/g,"/").replace(/~0/,"~"),hD=e=>`/properties/${e.split(".").map(t=>tf(t)).join("/properties/")}`,nm=(e,t)=>{if(t&&typeof t.title=="string")return t.title;if(typeof e.scope=="string"){const n=e.scope,r=iu(n.substr(n.lastIndexOf("/")+1));return nb(r)}return""},Phe=(e,t)=>{const n=e.label;if(typeof n=="boolean")return Hu(nm(e,t),n);if(typeof n=="string")return Hu(n,!0);if(typeof n=="object"){const r=typeof n.text=="string"?n.text:nm(e,t),i=typeof n.show=="boolean"?n.show:!0;return Hu(r,i)}return Hu(nm(e,t),!0)},Hu=(e,t)=>({text:e,show:t}),fd=(e,t)=>pt(t)?e:t.split(".").reduce((r,i)=>{if(!(!r||!Object.prototype.hasOwnProperty.call(r,i)))return r[i]},e),_he=e=>e==="#"||e===void 0||e==="",fr=(e,t,n)=>{const r=t==null?void 0:t.split("/").map(iu);return pd(e,r,n)},pd=(e,t,n)=>{if(typeof(e==null?void 0:e.$ref)=="string"&&(e=fr(n,e.$ref,n)),!t||t.length===0)return e;if(pt(e))return;const[r,...i]=t;if(_he(r))return pd(e,i,n);const a=$n(e,r),s=pd(a,i,n);if(s)return s;if(r==="properties"||r==="items"){let l;const c=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const u of c)if(l=pd(u,[r,...i],n),l)break;return l}};var Mo;(function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"})(Mo||(Mo={}));const vy=(e,t)=>{var n;if(Rhe(e)){if(gD(e)&&e.scope.endsWith(hD(t)))return e;if((n=e.options)!=null&&n.detail)return vy(e.options.detail,t)}if(uv(e))for(const r of e.elements){const i=vy(r,t);if(i!==void 0)return i}},mD=(e,t)=>{if(!gD(e))return t??"";const n=pD(e.scope);return pt(n)?t??"":Ys(t,n.join("."))},yD=e=>typeof e=="object"&&e!==null&&typeof e.i18n=="string",khe=e=>e.type==="Group",uv=e=>e.elements!==void 0,Dhe=e=>!!e&&typeof e=="object",gD=e=>Dhe(e)&&typeof e.scope=="string",$he=e=>!!e&&typeof e=="object",Rhe=e=>e.type==="Control",Mhe=e=>e.type==="OR",Ihe=e=>e.type==="AND",Nhe=e=>e.type==="LEAF",Ahe=e=>b_(e,"schema"),jhe=e=>b_(e,"validate")&&typeof e.validate=="function",rm=(e,t)=>mD(e,t),wy=(e,t,n,r,i)=>{if(Ihe(n))return n.conditions.reduce((a,s)=>a&&wy(e,t,s,r,i),!0);if(Mhe(n))return n.conditions.reduce((a,s)=>a||wy(e,t,s,r,i),!1);if(Nhe(n))return fd(e,rm(n,r))===n.expectedValue;if(Ahe(n)){const a=fd(e,rm(n,r));return n.failWhenUndefined&&a===void 0?!1:i.validate(n.schema,a)}else if(jhe(n)){const s={data:fd(e,rm(n,r)),fullData:e,path:r,uischemaElement:t};return n.validate(s)}else return!0},bD=(e,t,n,r)=>{const i=e.rule.condition;return wy(t,e,i,n,r)},Lhe=(e,t,n=void 0,r)=>{const i=bD(e,t,n,r);switch(e.rule.effect){case Mo.HIDE:return!i;case Mo.SHOW:return i;default:return!0}},Fhe=(e,t,n=void 0,r)=>{const i=bD(e,t,n,r);switch(e.rule.effect){case Mo.DISABLE:return!i;case Mo.ENABLE:return i;default:return!0}},dv=e=>!!(e.rule&&(e.rule.effect===Mo.SHOW||e.rule.effect===Mo.HIDE)),Bhe=e=>!!(e.rule&&(e.rule.effect===Mo.ENABLE||e.rule.effect===Mo.DISABLE)),Gs=(e,t,n=void 0,r)=>e.rule?Lhe(e,t,n,r):!0,Vhe=(e,t,n=void 0,r)=>e.rule?Fhe(e,t,n,r):!0,zhe=e=>{if(e&&typeof e=="object"&&"properties"in e&&e.properties)return w_(Object.keys(e.properties),t=>{const n=e.properties[t];return n&&typeof n=="object"&&"type"in n&&(n.type==="string"||n.type==="number"||n.type==="integer")})},fc=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(t=>t.const!==void 0),vD=e=>!!e&&typeof e=="object"&&(Object.prototype.hasOwnProperty.call(e,"enum")||Object.prototype.hasOwnProperty.call(e,"const")),Whe=(e,t)=>{const n=e.toISOString();return t==="date-time"?n:t==="date"?n.split("T")[0]:t==="time"?n.split("T")[1].split(".")[0]:n},Fn=(e,t)=>S_(Gi(e),t),Gi=e=>{if(pt(e))return[];if(!pt(e.type)&&typeof e.type=="string")return[e.type];if(_P(e.type))return e.type;if(!pt(e.properties)||!pt(e.additionalProperties))return["object"];if(!pt(e.items))return["array"];if(!pt(e.enum)){const t=new Set;return e.enum.forEach(n=>{typeof n=="string"?t.add("string"):Gi(n).forEach(r=>t.add(r))}),Array.from(t)}if(!pt(e.allOf)){const t=w_(e.allOf,n=>Gi(n).length!==0);if(t)return Gi(t)}return[]},pr={schema:fr,data:fd},Uhe=e=>pD(e.scope).join("."),fv={compose:Ys,fromScoped:Uhe},qhe=e=>{const t=new Voe({allErrors:!0,verbose:!0,strict:!1,addUsedSchema:!1,...e});return Woe(t),t},Vo=(e,t)=>e===void 0?[]:e(t)?[]:e.errors,Hhe="YYYY-MM-DD",Yhe="HH:mm:ss",Ghe="YYYY-MM-DDTHH:mm:ss.sssZ",Khe=e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}},xy=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");const n=Khe(e);return n!==void 0&&!t.endsWith(n)&&(t=`${t}.${n}`),t=t.replace(/^./,""),t=iu(t),t},Xhe=(e,t,n)=>r=>{const i=_S(r,a=>a.keyword==="oneOf"||a.keyword==="anyOf").map(a=>xy(a));return _S(r,a=>{if(Qhe.indexOf(a.keyword)!==-1&&!fc(a.parentSchema))return!1;const s=xy(a);let l=n(s);const c=a.parentSchema;return l&&!Zhe(c)&&!fc(c)&&i.findIndex(u=>e.startsWith(u))!==-1&&(l=l&&Gb(c,t)),l})},Zhe=e=>(e==null?void 0:e.type)==="object"||!!(e!=null&&e.properties),Qhe=["additionalProperties","allOf","anyOf","oneOf"],wD=e=>e==null?"":e.join(`
`),xD=e=>({type:e,elements:[]}),hd=e=>({type:"Control",scope:e}),Jhe=(e,t)=>{if(!pt(e)&&!uv(e)){const n=xD(t);return n.elements.push(e),n}return e},eme=(e,t)=>{if(!pt(t)){const n=nb(t);if(khe(e))e.label=n;else{const r={type:"Label",text:n};e.elements.push(r)}}},tme=e=>!pt(e)&&(!pt(e.oneOf)||!pt(e.anyOf)||!pt(e.allOf)),Sy=(e,t,n,r,i,a)=>{if(!pt(e)&&e.$ref!==void 0)return Sy(fr(a,e.$ref,a),t,n,r,i,a);if(tme(e)){const l=hd(n);return t.push(l),l}const s=Gi(e);if(s.length===0)return null;if(s.length>1){const l=hd(n);return t.push(l),l}if(n==="#"&&s[0]==="object"){const l=xD(i);if(t.push(l),e.properties&&DY(e.properties).length>1&&eme(l,r),!pt(e.properties)){const c=n+"/properties";Object.keys(e.properties).map(u=>{let d=e.properties[u];const f=`${c}/${tf(u)}`;d.$ref!==void 0&&(d=fr(a,d.$ref,a)),Sy(d,l.elements,f,u,i,a)})}return l}switch(s[0]){case"object":case"array":case"string":case"number":case"integer":case"null":case"boolean":{const l=hd(n);return t.push(l),l}default:throw new Error("Unknown type: "+JSON.stringify(e))}},SD=(e,t="VerticalLayout",n="#",r=e)=>Jhe(Sy(e,[],n,"",t,r),t),oa={jsonSchema:dD,uiSchema:SD,controlElement:hd},pv="jsonforms/INIT",hv="jsonforms/UPDATE_CORE",mv="jsonforms/SET_AJV",yv="jsonforms/UPDATE",gv="jsonforms/UPDATE_ERRORS",nme="jsonforms/VALIDATE",TD="jsonforms/ADD_RENDERER",OD="jsonforms/REMOVE_RENDERER",ED="jsonforms/ADD_CELL",CD="jsonforms/REMOVE_CELL",bv="jsonforms/SET_CONFIG",PD="jsonforms/ADD_UI_SCHEMA",_D="jsonforms/REMOVE_UI_SCHEMA",vv="jsonforms/SET_SCHEMA",wv="jsonforms/SET_UISCHEMA",xv="jsonforms/SET_VALIDATION_MODE",Sv="jsonforms/SET_LOCALE",Tv="jsonforms/SET_TRANSLATOR",Ov="jsonforms/UPDATE_I18N",kD="jsonforms/ADD_DEFAULT_DATA",DD="jsonforms/REMOVE_DEFAULT_DATA",rme=e=>{if(!("type"in e)||typeof e.type!="string")return!1;switch(e.type){case"ADD":return"values"in e&&Array.isArray(e.values)&&e.values.length>0;case"REMOVE":return"indices"in e&&Array.isArray(e.indices)&&e.indices.length>0&&e.indices.every(t=>typeof t=="number");case"MOVE":return"moves"in e&&Array.isArray(e.moves)&&e.moves.length>0&&e.moves.every(t=>typeof t=="object"&&t!==null&&"from"in t&&"to"in t&&typeof t.from=="number"&&typeof t.to=="number");default:return!1}},ome=(e,t=dD(e),n,r)=>({type:pv,data:e,schema:t,uischema:typeof n=="object"?n:SD(t),options:r}),ime=(e,t,n,r)=>({type:hv,data:e,schema:t,uischema:n,options:r}),ame=(e,t)=>({type:kD,schemaPath:e,data:t}),sme=e=>({type:DD,schemaPath:e}),lme=e=>({type:mv,ajv:e}),ro=(e,t,n)=>({type:yv,path:e,updater:t,context:n}),cme=e=>({type:gv,errors:e}),ume=(e,t)=>({type:TD,tester:e,renderer:t}),dme=(e,t)=>({type:ED,tester:e,cell:t}),fme=(e,t)=>({type:CD,tester:e,cell:t}),pme=(e,t)=>({type:OD,tester:e,renderer:t}),hme=e=>({type:bv,config:e}),mme=e=>({type:xv,validationMode:e}),yme=(e,t)=>({type:PD,tester:e,uischema:t}),gme=e=>({type:_D,tester:e}),bme=e=>({type:Sv,locale:e}),vme=e=>({type:vv,schema:e}),wme=(e,t)=>({type:Tv,translator:e,errorTranslator:t}),xme=(e,t,n)=>({type:Ov,locale:e,translator:t,errorTranslator:n}),Sme=e=>({type:wv,uischema:e});var ka=Object.freeze({__proto__:null,INIT:pv,UPDATE_CORE:hv,SET_AJV:mv,UPDATE_DATA:yv,UPDATE_ERRORS:gv,VALIDATE:nme,ADD_RENDERER:TD,REMOVE_RENDERER:OD,ADD_CELL:ED,REMOVE_CELL:CD,SET_CONFIG:bv,ADD_UI_SCHEMA:PD,REMOVE_UI_SCHEMA:_D,SET_SCHEMA:vv,SET_UISCHEMA:wv,SET_VALIDATION_MODE:xv,SET_LOCALE:Sv,SET_TRANSLATOR:Tv,UPDATE_I18N:Ov,ADD_DEFAULT_DATA:kD,REMOVE_DEFAULT_DATA:DD,isUpdateArrayContext:rme,init:ome,updateCore:ime,registerDefaultData:ame,unregisterDefaultData:sme,setAjv:lme,update:ro,updateErrors:cme,registerRenderer:ume,registerCell:dme,unregisterCell:fme,unregisterRenderer:pme,setConfig:hme,setValidationMode:mme,registerUISchema:yme,unregisterUISchema:gme,setLocale:bme,setSchema:vme,setTranslator:wme,updateI18n:xme,setUISchema:Sme});const Tme={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},vT=(e={})=>It({},Tme,e),wT=(e=vT(),t)=>{switch(t.type){case bv:return vT(t.config);default:return e}},Ome={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},xT=(e,t)=>t&&Eme(t.options)?t.options.validationMode:e.validationMode,Eme=e=>e?e.validationMode!==void 0:!1,Cme=e=>e?e.additionalErrors!==void 0:!1,ST=(e,t)=>t&&Cme(t.options)?t.options.additionalErrors:e.additionalErrors,TT=(e,t)=>{if(t){if(Pme(t.options))return t.options.ajv;if(t.options!==void 0&&S9(t.options.compile))return t.options}return e.ajv?e.ajv:qhe()},Pme=e=>e?e.ajv!==void 0:!1,om=(e=Ome,t)=>{switch(t.type){case pv:{const n=TT(e,t),r=xT(e,t),i=r==="NoValidation"?void 0:n.compile(t.schema),a=Vo(i,t.data),s=ST(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:s,errors:a,validator:i,ajv:n,validationMode:r}}case hv:{const n=TT(e,t),r=xT(e,t);let i=e.validator,a=e.errors;e.schema!==t.schema||e.validationMode!==r||e.ajv!==n?(i=r==="NoValidation"?void 0:n.compile(t.schema),a=Vo(i,t.data)):e.data!==t.data&&(a=Vo(i,t.data));const s=ST(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==a||e.validator!==i||e.validationMode!==r||e.additionalErrors!==s?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:Gb(a,e.errors)?e.errors:a,validator:i,validationMode:r,additionalErrors:s}:e}case mv:{const n=t.ajv,r=e.validationMode==="NoValidation"?void 0:n.compile(e.schema),i=Vo(r,e.data);return{...e,validator:r,errors:i}}case vv:{const r=t.schema&&e.ajv&&e.validationMode!=="NoValidation"?e.ajv.compile(t.schema):e.validator,i=Vo(r,e.data);return{...e,validator:r,schema:t.schema,errors:i}}case wv:return{...e,uischema:t.uischema};case yv:{if(t.path===void 0||t.path===null)return e;if(t.path===""){const n=t.updater(Yl(e.data)),r=Vo(e.validator,n);return{...e,data:n,errors:r}}else{const n=$n(e.data,t.path),r=t.updater(Yl(n));let i;r!==void 0?i=Npe(t.path,r,e.data===void 0?{}:e.data):i=Xpe(t.path,e.data===void 0?{}:e.data);const a=Vo(e.validator,i);return{...e,data:i,errors:a}}}case gv:return{...e,errors:t.errors};case xv:{if(e.validationMode===t.validationMode)return e;if(t.validationMode==="NoValidation"){const n=Vo(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if(e.validationMode==="NoValidation"){const n=e.ajv.compile(e.schema),r=Vo(n,e.data);return{...e,validator:n,errors:r,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode}}default:return e}};var qn;(function(e){e.addTooltip="addTooltip",e.addAriaLabel="addAriaLabel",e.removeTooltip="removeTooltip",e.upAriaLabel="upAriaLabel",e.downAriaLabel="downAriaLabel",e.noSelection="noSelection",e.removeAriaLabel="removeAriaLabel",e.noDataMessage="noDataMessage",e.deleteDialogTitle="deleteDialogTitle",e.deleteDialogMessage="deleteDialogMessage",e.deleteDialogAccept="deleteDialogAccept",e.deleteDialogDecline="deleteDialogDecline",e.up="up",e.down="down"})(qn||(qn={}));const _me=[{key:qn.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:qn.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:qn.removeTooltip,default:()=>"Delete"},{key:qn.removeAriaLabel,default:()=>"Delete button"},{key:qn.upAriaLabel,default:()=>"Move item up"},{key:qn.up,default:()=>"Up"},{key:qn.down,default:()=>"Down"},{key:qn.downAriaLabel,default:()=>"Move item down"},{key:qn.noDataMessage,default:()=>"No data"},{key:qn.noSelection,default:()=>"No selection"},{key:qn.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:qn.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:qn.deleteDialogAccept,default:()=>"Yes"},{key:qn.deleteDialogDecline,default:()=>"No"}];var Va;(function(e){e.clearDialogTitle="clearDialogTitle",e.clearDialogMessage="clearDialogMessage",e.clearDialogAccept="clearDialogAccept",e.clearDialogDecline="clearDialogDecline"})(Va||(Va={}));Va.clearDialogTitle,Va.clearDialogMessage,Va.clearDialogAccept,Va.clearDialogDecline;const Ev=(e,t)=>yD(t)?t.i18n:(e==null?void 0:e.i18n)??void 0,kme=e=>(e==null?void 0:e.split(".").filter(t=>!/^\d+$/.test(t)).join("."))||"root",Yr=(e,t,n)=>Ev(e,t)??kme(n),nf=(e,t,n,r)=>`${Yr(e,t,n)}.${r}`,Dme=(e,t)=>`${e}.${t}`,Cv=(e,t)=>t,Pv=(e,t,n)=>{var l;const r=nf(e.parentSchema,n,xy(e),`error.${e.keyword}`),i=t(r,void 0,{error:e});if(i!==void 0)return i;const a=t(`error.${e.keyword}`,void 0,{error:e});if(a!==void 0)return a;const s=t(e.message,void 0,{error:e});return s!==void 0?s:e.keyword==="required"&&((l=e.message)!=null&&l.startsWith("must have required property"))?t("is a required property","is a required property",{error:e}):e.message},_v=(e,t,n,r,i,a)=>{if(e.length>0&&n){const s=nf(r,i,a,"error.custom"),l=n(s,void 0,{schema:r,uischema:i,path:a,errors:e});if(l!==void 0)return l}return wD(e.map(s=>t(s,n,i)))},kv=(e,t)=>{if(e.label===!1||(e.label===void 0||e.label===null||e.label===!0)&&!yD(e))return;const n=typeof e.label=="string"?e.label:JSON.stringify(e.label),r=Ev(void 0,e),i=typeof r=="string"?`${r}.label`:n;return t(i,n,{uischema:e})},$me=(e,t,n,r)=>{const i={};return t.forEach(a=>{const s=Dme(n,a.key);i[a.key]=e(s,a.default(r))}),i},Rme=e=>e===void 0?Cv:e.translate,Mme=e=>e===void 0?Pv:e.translateError,co=()=>e=>Rme($n(e,"jsonforms.i18n")),Dv=()=>e=>Mme($n(e,"jsonforms.i18n")),za={locale:"en",translate:Cv,translateError:Pv},OT=(e=za,t)=>{switch(t.type){case Ov:{const n=t.locale??za.locale,r=t.translator??za.translate,i=t.errorTranslator??za.translateError;return n!==e.locale||r!==e.translate||i!==e.translateError?{...e,locale:n,translate:r,translateError:i}:e}case Tv:return{...e,translate:t.translator??Cv,translateError:t.errorTranslator??Pv};case Sv:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},rf=-1,Hn=e=>!pt(e)&&e.scope!==void 0,Kr=e=>(t,n,r)=>{if(pt(t)||!Hn(t)||pt(n))return!1;const i=t.scope;if(pt(i))return!1;let a=n;return Fn(n,"object")&&(a=fr(n,i,r==null?void 0:r.rootSchema)),a===void 0?!1:e(a,r==null?void 0:r.rootSchema)},$v=(e,t)=>(n,r,i)=>{if(pt(n)||!Hn(n))return!1;const a=n.scope;let s=r;return Fn(r,"object")&&(s=fr(r,a,i==null?void 0:i.rootSchema)),s=$n(s,e),s===void 0?!1:t(s,i==null?void 0:i.rootSchema)},wi=e=>Kr(t=>!pt(t)&&Fn(t,e)),Rv=e=>Kr(t=>!pt(t)&&t.format===e&&Fn(t,"string")),en=e=>t=>!pt(t)&&t.type===e,po=(e,t)=>n=>{if(pt(n))return!1;const r=n.options;return!pt(r)&&r[e]===t},Xt=(...e)=>(t,n,r)=>e.reduce((i,a)=>i&&a(t,n,r),!0),Ks=(...e)=>(t,n,r)=>e.reduce((i,a)=>i||a(t,n,r),!1),st=(e,t)=>(n,r,i)=>t(n,r,i)?e:rf,Ime=(e,t)=>(n,r,i)=>{const a=t(n,r,i);return a===rf?rf:a+e},Rp=Xt(en("Control"),wi("boolean")),Nme=Xt(en("Control"),wi("object")),Ame=Xt(en("Control"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),jme=Xt(en("Control"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),Lme=Xt(en("Control"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),Mv=Xt(en("Control"),Kr(e=>vD(e))),Iv=Xt(en("Control"),Kr(e=>fc(e))),$D=Xt(en("Control"),wi("integer")),RD=Xt(en("Control"),wi("number")),MD=Xt(en("Control"),wi("string"));Xt(en("Control"),po("multi",!0));const Nv=Xt(en("Control"),Ks(Rv("date"),po("format","date"))),Av=Xt(en("Control"),Ks(Rv("time"),po("format","time"))),Fme=Xt(en("Control"),Ks(Rv("date-time"),po("format","date-time"))),ID=Xt(Kr((e,t)=>Fn(e,"array")&&!Array.isArray(fr(e,"items",t))),$v("items",(e,t)=>{const n=e.$ref?fr(t,e.$ref,t):e;return Fn(n,"object")})),Bme=Xt(en("Control"),ID),Rl=(e,t,n)=>{if(_P(e))return bT(e,(r,i)=>r||Rl(i,t,n),!1);if(t(e))return!0;if(e.$ref){const r=fr(n,e.$ref,n);if(r&&!r.$ref)return Rl(r,t,n)}return e.items?Rl(e.items,t,n):e.properties?bT(The(e.properties),(r,[i,a])=>r||Rl(a,t,n),!1):!1},Vme=(e,t,n)=>{if(!en("Control")(e,t,n))return!1;const r=e.scope,i=fr(t,r,(n==null?void 0:n.rootSchema)??t);let a=0;if(i!==void 0&&i.items!==void 0){if(Rl(i.items,s=>s===t||s.$ref!==void 0?!1:!!(s.anyOf||s.allOf||s.oneOf&&!fc(s)||Fn(s,"object")&&(a++,a===2)||Fn(s,"array")),n==null?void 0:n.rootSchema))return!0;if(e.options&&e.options.detail){if(typeof e.options.detail=="string")return e.options.detail.toUpperCase()!=="DEFAULT";if(typeof e.options.detail=="object"&&e.options.detail.type)return!0}}return!1},zme=Xt(en("Control"),Kr((e,t)=>Gi(e).length!==0&&!Array.isArray(fr(e,"items",t))),$v("items",(e,t)=>{const n=e.$ref?fr(t,e.$ref,t):e,r=Gi(n);return r.length===1&&S_(["integer","number","boolean","string"],r[0])})),Wme=Xt(en("Control"),Ks(wi("number"),wi("integer")),Kr(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),po("slider",!0)),Ume=Xt(en("Control"),wi("integer"),po("format",!0)),qme=e=>e.type==="Categorization",Hme=e=>e.type==="Category",ND=e=>pt(e.elements)?!1:e.elements.map(t=>qme(t)?ND(t):Hme(t)).reduce((t,n)=>t&&n,!0),Yme=e=>ND(e),AD=e=>(t,n,r)=>{const i=tb(e,a=>a.tester(t,n,r));if(i!==void 0&&i.tester(t,n,r)!==rf)return i.uischema},Mp=(e,t,n,r,i="VerticalLayout",a,s)=>{if(a&&a.options&&a.options.detail){if(typeof a.options.detail=="string"){if(a.options.detail.toUpperCase()==="GENERATE")return typeof i=="function"?i():oa.uiSchema(t,i,void 0,s)}else if(typeof a.options.detail=="object"&&a.options.detail.type&&typeof a.options.detail.type=="string")return a.options.detail}const l=AD(e)(t,n,r);return l===void 0?typeof i=="function"?i():oa.uiSchema(t,i,"#",s):l},ET=(e,t,n)=>n(e,t),jD=(e,t,n)=>r=>{const i=r.errors??[],a=r.additionalErrors??[];return Xhe(e,t,n)(r.validationMode==="ValidateAndHide"?a:[...i,...a])},LD=(e,t)=>jD(e,t,n=>n===e),Gme=(e,t)=>jD(e,t,n=>n.startsWith(e+".")),FD=(e,t)=>n=>LD(e,t)(n.jsonforms.core),Kme=(e,t)=>n=>Gme(e,t)(n.jsonforms.core),au=e=>Qme($n(e,"jsonforms.core")),pc=e=>Jme($n(e,"jsonforms.core")),Xme=e=>eye($n(e,"jsonforms.core")),Xs=e=>tye($n(e,"jsonforms.core")),BD=e=>$n(e,"jsonforms.renderers"),VD=e=>$n(e,"jsonforms.cells"),Zme=e=>$n(e,"jsonforms.uischemas"),Qme=e=>$n(e,"data"),Jme=e=>$n(e,"schema"),eye=e=>$n(e,"uischema"),tye=e=>$n(e,"ajv"),ia=e=>e.jsonforms.config,jv=(e,t,n,r,i,a)=>{var s,l,c;return(s=e==null?void 0:e.jsonforms)!=null&&s.readonly?!1:n&&Bhe(n)?Vhe(n,i,t==null?void 0:t.path,Xs(e)):typeof((l=n==null?void 0:n.options)==null?void 0:l.readonly)=="boolean"?!n.options.readonly:typeof((c=n==null?void 0:n.options)==null?void 0:c.readOnly)=="boolean"?!n.options.readOnly:typeof(a==null?void 0:a.readonly)=="boolean"?!a.readonly:typeof(a==null?void 0:a.readOnly)=="boolean"?!a.readOnly:(r==null?void 0:r.readOnly)===!0?!1:typeof(t==null?void 0:t.enabled)=="boolean"?t.enabled:!0},zD=(e,t,n)=>{const r=t+n;if(r<0||r>=e.length)return;const i=[t,r].sort((a,s)=>a-s);e.splice(i[0],2,e[i[1]],e[i[0]])},WD=(e,t)=>{zD(e,t,-1)},UD=(e,t)=>{zD(e,t,1)},nye=(e,t,n)=>{const r=t.split("/"),i=iu(r[r.length-1]),s=r.slice(0,r.length-2).join("/"),l=pr.schema(e,s,n);return l!==void 0&&l.required!==void 0&&l.required.indexOf(i)!==-1},qD=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,su=(e,t)=>e&&!t,Uo=(e,t)=>{const n=HD(e,t);return n===void 0?{}:n},HD=(e,t)=>{const n=typeof e.$ref=="string"?pr.schema(t,e.$ref,t):e;if(n.default!==void 0)return CT(n,t);if(Fn(n,"string"))return n.format==="date-time"||n.format==="date"||n.format==="time"?Whe(new Date,n.format):"";if(Fn(n,"integer")||Fn(n,"number"))return 0;if(Fn(n,"boolean"))return!1;if(Fn(n,"array"))return[];if(Fn(n,"object"))return CT(n,t);if(Fn(n,"null"))return null;const r=["oneOf","anyOf","allOf"];for(const i of r)if(e[i]&&Array.isArray(e[i])){const a=rye(e[i],t);if(a!==void 0)return a}},rye=(e,t)=>{if(e.length>0)for(const n of e){const r=HD(n,t);if(r!==void 0)return r}},CT=(e,t)=>{if(Fn(e,"object")&&e.default===void 0){const n={};for(const r in e.properties){const i=e.properties[r],a=i.$ref?pr.schema(t,i.$ref,t):i;a&&a.default!==void 0&&(n[r]=Yl(a.default))}return e.allOf&&Array.isArray(e.allOf)&&e.allOf.forEach(r=>{if(r&&r.properties)for(const i in r.properties){const a=r.properties[i],s=a.$ref?pr.schema(t,a.$ref,t):a;s&&s.default!==void 0&&(n[i]=Yl(s.default))}}),n}return Yl(e.default)},Cr=(e,t,n,r)=>t===void 0||t!==void 0&&!e||!r&&!n,vs=(e,t,n)=>{let r=typeof e=="string"?e:JSON.stringify(e);return t&&(n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e}},Ip=(e,t,n)=>{let r=e.title??(typeof e.const=="string"?e.const:JSON.stringify(e.const));return t&&(e.i18n?r=t(e.i18n,r):n?r=t(`${n}.${r}`,r):r=t(r,r)),{label:r,value:e.const}},Zs=(e,t)=>{const{uischema:n}=t,r=au(e),i=mD(n,t.path),a=t.visible===void 0||dv(n)?Gs(n,r,t.path,Xs(e)):t.visible,s=n,l=t.id,c=pc(e),u=s.scope!==void 0&&nye(t.schema,s.scope,c),d=pr.schema(t.schema||c,s.scope,c),f=FD(i,d)(e),h=d!==void 0?d.description:"",p=pr.data(r,i),b=Phe(n,d),m=b.show?b.text:"",y=ia(e),g=jv(e,t,n,d||c,r,y),v=d??c,x=co()(e),w=Dv()(e),S=Yr(v,n,i),O=x(nf(v,n,i,"label"),m,{schema:v,uischema:n,path:i,errors:f}),C=x(nf(v,n,i,"description"),h,{schema:v,uischema:n,path:i,errors:f}),P=_v(f,w,x,v,n,i);return{data:p,description:C,errors:P,label:O,visible:a,enabled:g,id:l,path:i,required:u,uischema:n,schema:v,config:ia(e),cells:t.cells||e.jsonforms.cells,rootSchema:c,i18nKeyPrefix:S}},oye=e=>({handleChange(t,n){e(ro(t,()=>n))}}),iye=(e,t)=>{var i;const n=Zs(e,t),r=t.options||((i=n.schema.enum)==null?void 0:i.map(a=>vs(a,co()(e),Yr(n.schema,n.uischema,n.path))))||n.schema.const&&[vs(n.schema.const,co()(e),Yr(n.schema,n.uischema,n.path))];return{...n,options:r}},aye=(e,t)=>{var i;const n=Zs(e,t),r=t.options||((i=n.schema.oneOf)==null?void 0:i.map(a=>Ip(a,co()(e),Yr(n.schema,n.uischema,n.path))));return{...n,options:r}},sye=(e,t)=>{var a;const n=Zs(e,t);let r=n.schema.items;r=r&&r.$ref?fr(n.rootSchema,r.$ref,n.rootSchema):r;const i=t.options||(r==null?void 0:r.oneOf)&&r.oneOf.map(s=>{var l;return Ip(s,(l=e.jsonforms.i18n)==null?void 0:l.translate,Yr(n.schema,n.uischema,n.path))})||((a=r==null?void 0:r.enum)==null?void 0:a.map(s=>{var l;return vs(s,(l=e.jsonforms.i18n)==null?void 0:l.translate,Yr(n.schema,n.uischema,n.path))}));return{...n,options:i}},lye=(e,t)=>{const{schema:n,path:r,uischema:i,childLabelProp:a,index:s}=t,l=Ys(r,`${s}`),c=KD(au(e),l,a,n,pc(e),e.jsonforms.i18n.translate,i);return{...t,childLabel:c}},YD=(e,t)=>{const{...n}=Zs(e,t);return{...n,uischemas:e.jsonforms.uischemas}},cye=e=>({addItem:(t,n)=>()=>{e(ro(t,r=>r==null?[n]:(r.push(n),r),{type:"ADD",values:[n]}))},removeItems:(t,n)=>()=>{e(ro(t,r=>(n.sort((i,a)=>i-a).reverse().forEach(i=>r.splice(i,1)),r),{type:"REMOVE",indices:n}))},moveUp:(t,n)=>()=>{e(ro(t,r=>(WD(r,n),r),{type:"MOVE",moves:[{from:n,to:n-1}]}))},moveDown:(t,n)=>()=>{e(ro(t,r=>(UD(r,n),r),{type:"MOVE",moves:[{from:n,to:n+1}]}))}}),uye=e=>({addItem:(t,n)=>{e(ro(t,r=>r==null?[n]:(r.push(n),r)))},removeItem:(t,n)=>{e(ro(t,r=>{const i=r.indexOf(n);return r.splice(i,1),r}))}}),GD={visible:!0,enabled:!0,path:"",direction:"column"},dye=e=>e.type==="HorizontalLayout"?"row":e.type==="VerticalLayout"?"column":GD.direction,fye=(e,t)=>{const n=au(e),{uischema:r}=t,i=t.visible===void 0||dv(r)?Gs(t.uischema,n,t.path,Xs(e)):t.visible,a=pr.data(n,t.path),s=ia(e),l=jv(e,t,r,void 0,n,s),c=co()(e),u=$he(r)?kv(r,c):void 0;return{...GD,renderers:t.renderers||BD(e),cells:t.cells||VD(e),visible:i,enabled:l,path:t.path,data:a,uischema:t.uischema,schema:t.schema,direction:t.direction??dye(r),config:s,label:u}},pye=(e,t)=>({renderers:t.renderers||$n(e.jsonforms,"renderers"),cells:t.cells||$n(e.jsonforms,"cells"),schema:t.schema||pc(e),rootSchema:pc(e),uischema:t.uischema||Xme(e),path:t.path,enabled:t.enabled,config:ia(e)}),Lv=(e,t,n)=>{var p;const{data:r,schema:i,rootSchema:a,i18nKeyPrefix:s,label:l,...c}=Zs(e,t),u=e.jsonforms.core.ajv,d=["required","additionalProperties","type","enum","const"],f=b=>!b||b.length===0||!b.find(m=>d.indexOf(m.keyword)!==-1);let h;for(let b=0;b<((p=i[n])==null?void 0:p.length);b++)try{let m=i[n][b];m.$ref&&(m=pr.schema(a,m.$ref,a));const y=u.compile(m);if(y(r),f(y.errors)){h=b;break}}catch{console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:r,schema:i,rootSchema:a,...c,i18nKeyPrefix:s,label:l,indexOfFittingSchema:h,uischemas:Zme(e)}},hye=(e,t)=>Lv(e,t,"allOf"),mye=(e,t)=>Lv(e,t,"anyOf"),yye=(e,t)=>Lv(e,t,"oneOf"),gye=(e,t)=>{const{path:n,schema:r,uischema:i,errors:a,label:s,...l}=YD(e,t),c=pr.schema(r,"items",l.rootSchema),u=co()(e),d=_v(Kme(n,c)(e),Dv()(e),u,void 0,void 0,void 0),f=a+(a.length>0&&d.length>0?`
`:"")+d;return{...l,label:s,path:n,uischema:i,schema:c,arraySchema:r,data:l.data?l.data.length:0,errors:f,minItems:r.minItems}},bye=(e,t)=>{const{uischema:n}=t,r=t.visible===void 0||dv(n)?Gs(t.uischema,au(e),t.path,Xs(e)):t.visible,i=n.text,a=co()(e),s=Ev(void 0,n),l=s?`${s}.text`:i??"";return{text:a(l,i,{uischema:n}),visible:r,config:ia(e),renderers:t.renderers||BD(e),cells:t.cells||VD(e),uischema:n}},KD=(e,t,n,r,i,a,s)=>{const l=pr.data(e,t);if(n||(n=zhe(r)),!n)return"";const c=$n(l,n);if(c===void 0)return"";const u=pr.schema(r,"#"+hD(n),i);let d;if(vD(u))d=vs(c,a,Yr(u,vy(s,n),t+"."+n));else if(fc(u)){const h=u.oneOf.find(p=>Gb(p.const,c));h&&(d=Ip(h,a,Yr(h,void 0,t+"."+n)))}return d?d.label:c},Np=(e,t)=>{const{id:n,schema:r,path:i,uischema:a,renderers:s,cells:l}=t,c=au(e),u=t.visible!==void 0?t.visible:Gs(a,c,void 0,Xs(e)),d=pc(e),f=ia(e);let h;e.jsonforms.readonly===!0?h=!1:typeof t.enabled=="boolean"?h=t.enabled:h=jv(e,t,a,r||d,c,f);const p=co()(e),b=Dv()(e),m=_v(FD(i,r)(e),b,p,r,a,i),y=pt(m);return{data:pr.data(c,i),visible:u,enabled:h,id:n,path:i,errors:m,isValid:y,schema:r,uischema:a,config:ia(e),rootSchema:d,renderers:s,cells:l}},vye=(e,t)=>{const n=Np(e,t),{renderers:r,cells:i,...a}=t;return{...n,...a,cells:i||e.jsonforms.cells||[]}},wye=(e,t)=>{var i;const n=Np(e,t),r=t.options||((i=n.schema.enum)==null?void 0:i.map(a=>vs(a,co()(e),Yr(n.schema,n.uischema,n.path))))||n.schema.const&&[vs(n.schema.const,co()(e),Yr(n.schema,n.uischema,n.path))];return{...n,options:r}},xye=(e,t)=>{var i;const n=Np(e,t),r=t.options||((i=n.schema.oneOf)==null?void 0:i.map(a=>Ip(a,co()(e),Yr(n.schema,n.uischema,n.path))));return{...n,options:r}},Fv=(e,t,n,r,i,a)=>e.map((s,l)=>{const c=s.$ref&&pr.schema(t,s.$ref,t),u=c??s;return{schema:u,uischema:Mp(a,u,r.scope,i,void 0,r,t),label:s.title??(c==null?void 0:c.title)??`${n}-${l}`}});var Sye=tr,Tye=function(){return Sye.Date.now()},Oye=Tye,Eye=$r,im=Oye,PT=y_,Cye="Expected a function",Pye=Math.max,_ye=Math.min;function kye(e,t,n){var r,i,a,s,l,c,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(Cye);t=PT(t)||0,Eye(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Pye(PT(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h);function p(O){var C=r,P=i;return r=i=void 0,u=O,s=e.apply(P,C),s}function b(O){return u=O,l=setTimeout(g,t),d?p(O):s}function m(O){var C=O-c,P=O-u,k=t-C;return f?_ye(k,a-P):k}function y(O){var C=O-c,P=O-u;return c===void 0||C>=t||C<0||f&&P>=a}function g(){var O=im();if(y(O))return v(O);l=setTimeout(g,m(O))}function v(O){return l=void 0,h&&r?p(O):(r=i=void 0,s)}function x(){l!==void 0&&clearTimeout(l),u=0,r=c=i=l=void 0}function w(){return l===void 0?s:v(im())}function S(){var O=im(),C=y(O);if(r=arguments,i=this,c=O,C){if(l===void 0)return b(c);if(f)return clearTimeout(l),l=setTimeout(g,t),p(c)}return l===void 0&&(l=setTimeout(g,t)),s}return S.cancel=x,S.flush=w,S}var Dye=kye;const XD=Mt(Dye);class $ye extends B.Component{constructor(t){super(t)}}class Rye extends $ye{constructor(t){super(t),this.handleChange=n=>{this.setState({value:n}),this.updateData(n)},this.onFocus=()=>{this.setState({isFocused:!0})},this.onBlur=()=>{this.setState({isFocused:!1})},this.updateData=n=>{this.props.handleChange(this.props.path,n)},this.state={value:t.data?t.data:"",isFocused:!1}}}class ZD extends B.Component{render(){return B.createElement("div",{style:{color:"red"}},"No applicable ",this.props.type," found.")}}const Mye={data:{},schema:{},uischema:void 0,errors:[],additionalErrors:[],validator:void 0,ajv:void 0},QD=B.createContext({core:Mye,renderers:[]}),Iye=(e,t)=>{const n=B.useRef(!0);B.useEffect(()=>{if(n.current){n.current=!1;return}e()},t)},Nye=({children:e,initState:t,onChange:n,middleware:r})=>{var S,O,C;const{data:i,schema:a,uischema:s,ajv:l,validationMode:c,additionalErrors:u}=t.core,d=B.useRef(r??ET);d.current=r??ET;const[f,h]=B.useState(()=>d.current(t.core,ka.init(i,a,s,{ajv:l,validationMode:c,additionalErrors:u}),om));B.useEffect(()=>h(P=>d.current(P,ka.updateCore(i,a,s,{ajv:l,validationMode:c,additionalErrors:u}),om)),[i,a,s,l,c,u]);const[p,b]=B.useReducer(wT,void 0,()=>wT(void 0,ka.setConfig(t.config)));Iye(()=>{b(ka.setConfig(t.config))},[t.config]);const[m,y]=B.useReducer(OT,void 0,()=>{var P,k,E;return OT(t.i18n,ka.updateI18n((P=t.i18n)==null?void 0:P.locale,(k=t.i18n)==null?void 0:k.translate,(E=t.i18n)==null?void 0:E.translateError))});B.useEffect(()=>{var P,k,E;y(ka.updateI18n((P=t.i18n)==null?void 0:P.locale,(k=t.i18n)==null?void 0:k.translate,(E=t.i18n)==null?void 0:E.translateError))},[(S=t.i18n)==null?void 0:S.locale,(O=t.i18n)==null?void 0:O.translate,(C=t.i18n)==null?void 0:C.translateError]);const g=B.useCallback(P=>{h(k=>d.current(k,P,om))},[]),v=B.useMemo(()=>({core:f,renderers:t.renderers,cells:t.cells,config:p,uischemas:t.uischemas,readonly:t.readonly,i18n:m,dispatch:g}),[f,t.renderers,t.cells,p,t.uischemas,t.readonly,m]),x=B.useRef(n);B.useEffect(()=>{x.current=n},[n]);const w=B.useCallback(XD((...P)=>{var k;return(k=x.current)==null?void 0:k.call(x,...P)},10),[]);return B.useEffect(()=>{w({data:f.data,errors:f.errors})},[f.data,f.errors]),B.createElement(QD.Provider,{value:v},e)},Ap=()=>B.useContext(QD),Aye=(e,t)=>gye({jsonforms:{...e}},t),jye=(e,t)=>fye({jsonforms:{...e}},t),Lye=(e,t)=>Zs({jsonforms:{...e}},t),Fye=(e,t)=>{var i;const n=iye({jsonforms:{...e}},t),r=B.useMemo(()=>n.options,[t.options,n.schema,(i=e.i18n)==null?void 0:i.translate]);return{...n,options:r}},Bye=(e,t)=>{var i;const n=aye({jsonforms:{...e}},t),r=B.useMemo(()=>n.options,[t.options,n.schema,(i=e.i18n)==null?void 0:i.translate]);return{...n,options:r}},Vye=(e,t)=>{var i;const n=sye({jsonforms:{...e}},t),r=B.useMemo(()=>n.options,[n.schema,(i=e.i18n)==null?void 0:i.translate]);return{...n,options:r}},zye=(e,t)=>YD({jsonforms:{...e}},t),Wye=(e,t)=>({...hye({jsonforms:{...e}},t)}),hr=e=>B.useMemo(()=>oye(e),[e]),Uye=(e,t)=>{const n=mye({jsonforms:{...e}},t),r=hr(e.dispatch);return{...n,...r}},qye=(e,t)=>{const n=yye({jsonforms:{...e}},t),r=hr(e.dispatch);return{...n,...r}},Hye=(e,t)=>pye({jsonforms:{...e}},t),Yye=e=>({...hr(e),...B.useMemo(()=>cye(e),[e])}),Gye=(e,t)=>lye({jsonforms:{...e}},t),Kye=(e,t)=>Np({jsonforms:{...e}},t),Xye=(e,t)=>{var i;const n=wye({jsonforms:{...e}},t),r=B.useMemo(()=>n.options,[t.options,n.schema,(i=e.i18n)==null?void 0:i.translate]);return{...n,options:r}},Zye=(e,t)=>{var i;const n=xye({jsonforms:{...e}},t),r=B.useMemo(()=>n.options,[t.options,n.schema,(i=e.i18n)==null?void 0:i.translate]);return{...n,options:r}},Qye=(e,t)=>vye({jsonforms:{...e}},t),Jye=e=>({...hr(e),...B.useMemo(()=>uye(e),[e])}),ege=(e,t)=>bye({jsonforms:{...e}},t),Nn=e=>function(n){const r=Ap();return B.createElement(e,{ctx:r,props:n})},tge=e=>function({ctx:n,props:r}){const i=Hye(n,r);return B.createElement(e,{...r,...i})},nge=e=>function({ctx:n,props:r}){const i=Lye(n,r),a=hr(n.dispatch);return B.createElement(e,{...r,...i,...a})},rge=e=>function({ctx:n,props:r}){const i=jye(n,r);return B.createElement(e,{...r,...i})},oge=e=>function({ctx:n,props:r}){const i=qye(n,r),a=hr(n.dispatch);return B.createElement(e,{...r,...i,...a})},ige=e=>function({ctx:n,props:r}){const i=Uye(n,r),a=hr(n.dispatch);return B.createElement(e,{...r,...i,...a})},age=e=>function({ctx:n,props:r}){const i=Wye(n,r),a=hr(n.dispatch);return B.createElement(e,{...r,...i,...a})},sge=e=>function({ctx:n,props:r}){const i=zye(n,r);return B.createElement(e,{...r,...i})},lge=e=>function({ctx:n,props:r}){const i=Aye(n,r),a=Yye(n.dispatch);return B.createElement(e,{...r,...i,...a})},cge=e=>function({ctx:n,props:r}){const i=Gye(n,r);return B.createElement(e,{...r,...i})},uge=e=>function({ctx:n,props:r}){const i=Kye(n,r),a=hr(n.dispatch);return B.createElement(e,{...r,...a,...i})},dge=e=>function({ctx:n,props:r}){const i=Qye(n,r),a=hr(n.dispatch);return B.createElement(e,{...r,...a,...i})},fge=e=>function({ctx:n,props:r}){const i=Xye(n,r),a=hr(n.dispatch);return B.createElement(e,{...r,...a,...i})},pge=e=>function({ctx:n,props:r}){const i=Fye(n,r),a=hr(n.dispatch);return B.createElement(e,{...r,...a,...i})},hge=e=>function({ctx:n,props:r}){const i=Zye(n,r),a=hr(n.dispatch);return B.createElement(e,{...r,...a,...i})},mge=e=>function({ctx:n,props:r}){const i=Bye(n,r),a=hr(n.dispatch);return B.createElement(e,{...r,...a,...i})},yge=e=>function({ctx:n,props:r}){const i=Vye(n,r),a=Jye(n.dispatch);return B.createElement(e,{...r,...a,...i})},gge=e=>function({ctx:n,props:r}){const i=ege(n,r);return B.createElement(e,{...r,...i})},JD=(e,t=!0)=>Nn(tge(t?B.memo(e):e)),gn=(e,t=!0)=>Nn(nge(t?B.memo(e):e)),Ao=(e,t=!0)=>Nn(rge(t?B.memo(e):e)),bge=(e,t=!0)=>Nn(oge(t?B.memo(e):e)),vge=(e,t=!0)=>Nn(ige(t?B.memo(e):e)),wge=(e,t=!0)=>Nn(age(t?B.memo(e):e)),xge=(e,t=!0)=>Nn(sge(t?B.memo(e):e)),Bv=(e,t=!0)=>Nn(lge(t?B.memo(e):e)),Sge=(e,t=!0)=>Nn(cge(t?B.memo(e):e)),Ei=(e,t=!0)=>Nn(uge(t?B.memo(e):e)),Tge=(e,t=!0)=>Nn(dge(t?B.memo(e):e)),Oge=(e,t=!0)=>Nn(fge(t?B.memo(e):e)),e$=(e,t=!0)=>Nn(pge(t?B.memo(e):e)),Ege=(e,t=!0)=>Nn(hge(t?B.memo(e):e)),t$=(e,t=!0)=>Nn(mge(t?B.memo(e):e)),Cge=(e,t=!0)=>Nn(yge(t?B.memo(e):e)),n$=(e,t=!0)=>Nn(gge(t?B.memo(e):e)),ei=e=>function(n){var s,l;const r=Ap(),i=((s=r.i18n)==null?void 0:s.locale)??za.locale,a=((l=r.i18n)==null?void 0:l.translate)??za.translate;return B.createElement(e,{...n,locale:i,t:a})},Vv=e=>function(n){const r=B.useMemo(()=>$me(n.t,_me,n.i18nKeyPrefix,n.label),[n.t,n.i18nKeyPrefix,n.label]);return B.createElement(e,{...n,translations:r})};class r$ extends B.Component{constructor(t){super(t),this.state={id:Hn(t.uischema)?gy(t.uischema.scope):void 0}}componentWillUnmount(){Hn(this.props.uischema)&&by(this.state.id)}componentDidUpdate(t){t.schema!==this.props.schema&&(by(this.state.id),this.setState({id:Hn(this.props.uischema)?gy(this.props.uischema.scope):void 0}))}render(){const{schema:t,rootSchema:n,uischema:r,path:i,enabled:a,renderers:s,cells:l,config:c}=this.props;return B.createElement(Pge,{uischema:r,schema:t,rootSchema:n,path:i,enabled:a,renderers:s,cells:l,id:this.state.id,config:c})}}const Pge=B.memo(function(t){const n=B.useMemo(()=>({rootSchema:t.rootSchema,config:t.config}),[t.rootSchema,t.config]),r=B.useMemo(()=>tb(t.renderers,i=>i.tester(t.uischema,t.schema,n)),[t.renderers,t.uischema,t.schema,n]);if(r===void 0||r.tester(t.uischema,t.schema,n)===-1)return B.createElement(ZD,{type:"renderer"});{const i=r.renderer;return B.createElement(i,{uischema:t.uischema,schema:t.schema,path:t.path,enabled:t.enabled,renderers:t.renderers,cells:t.cells,id:t.id})}});class _ge extends r${constructor(t){super(t)}}const Kn=JD(r$);JD(_ge);const o$=e=>{const{ajv:t,data:n,schema:r,uischema:i,renderers:a,cells:s,onChange:l,config:c,uischemas:u,readonly:d,validationMode:f,i18n:h,additionalErrors:p,middleware:b}=e,m=B.useMemo(()=>r!==void 0?r:oa.jsonSchema(n),[r,n]),y=B.useMemo(()=>typeof i=="object"?i:oa.uiSchema(m,void 0,void 0,m),[i,m]);return B.createElement(Nye,{initState:{core:{ajv:t,data:n,schema:m,uischema:y,validationMode:f,additionalErrors:p},config:c,uischemas:u,renderers:a,cells:s,readonly:d,i18n:h},onChange:l,middleware:b},B.createElement(Kn,null))},kge=({uischema:e,schema:t,rootSchema:n,path:r,cells:i,id:a,enabled:s,renderers:l,config:c})=>{const u=B.useMemo(()=>({rootSchema:n,config:c}),[n,c]),d=B.useMemo(()=>tb(i,f=>f.tester(e,t,u)),[i,e,t,u]);if(d===void 0||d.tester(e,t,u)===-1)return B.createElement(ZD,{type:"cell"});{const f=d.cell;return B.createElement(f,{uischema:e,schema:t,enabled:s,path:r,id:a,renderers:l,cells:i})}},_T=Tge(kge);var Dge=Qb;function $ge(e){return Dge(e)?void 0:e}var Rge=$ge,Mge=zs,Ige=Dp,Nge=cD,Age=Jc,jge=Hs,Lge=Rge,Fge=aD,Bge=Fk,Vge=1,zge=2,Wge=4,Uge=Fge(function(e,t){var n={};if(e==null)return n;var r=!1;t=Mge(t,function(a){return a=Age(a,e),r||(r=a.length>1),a}),jge(e,Bge(e),n),r&&(n=Ige(n,Vge|zge|Wge,Lge));for(var i=t.length;i--;)Nge(n,t[i]);return n}),qge=Uge;const Hge=Mt(qge);function Yge(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var Gge=Yge,am=AP,Kge=Gk,Xge=Ug,Zge=1/0,Qge=am&&1/Xge(new am([,-0]))[1]==Zge?function(e){return new am(e)}:Kge,Jge=Qge,ebe=TP,tbe=Qk,nbe=Gge,rbe=OP,obe=Jge,ibe=Ug,abe=200;function sbe(e,t,n){var r=-1,i=tbe,a=e.length,s=!0,l=[],c=l;if(n)s=!1,i=nbe;else if(a>=abe){var u=t?null:obe(e);if(u)return ibe(u);s=!1,i=rbe,c=new ebe}else c=t?[]:l;e:for(;++r<a;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,s&&f===f){for(var h=c.length;h--;)if(c[h]===f)continue e;t&&c.push(f),l.push(d)}else i(c,f,n)||(c!==l&&c.push(f),l.push(d))}return l}var lbe=sbe,cbe=iD,ube=Ak,dbe=lbe,fbe=Dk,pbe=ube(function(e){return dbe(cbe(e,1,fbe,!0))}),hbe=pbe;const mbe=Mt(hbe),Rr=ot(D.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),i$=ot(D.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),a$=ot(D.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),s$=ot(D.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),ybe=ot(D.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");var l$={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dn,function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",l="minute",c="hour",u="day",d="week",f="month",h="quarter",p="year",b="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},x=function($,M,j){var W=String($);return!W||W.length>=M?$:""+Array(M+1-W.length).join(j)+$},w={s:x,z:function($){var M=-$.utcOffset(),j=Math.abs(M),W=Math.floor(j/60),U=j%60;return(M<=0?"+":"-")+x(W,2,"0")+":"+x(U,2,"0")},m:function $(M,j){if(M.date()<j.date())return-$(j,M);var W=12*(j.year()-M.year())+(j.month()-M.month()),U=M.clone().add(W,f),K=j-U<0,H=M.clone().add(W+(K?-1:1),f);return+(-(W+(j-U)/(K?U-H:H-U))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:f,y:p,w:d,d:u,D:b,h:c,m:l,s,ms:a,Q:h}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},S="en",O={};O[S]=v;var C=function($){return $ instanceof _},P=function($,M,j){var W;if(!$)return S;if(typeof $=="string")O[$]&&(W=$),M&&(O[$]=M,W=$);else{var U=$.name;O[U]=$,W=U}return!j&&W&&(S=W),W||!j&&S},k=function($,M){if(C($))return $.clone();var j=typeof M=="object"?M:{};return j.date=$,j.args=arguments,new _(j)},E=w;E.l=P,E.i=C,E.w=function($,M){return k($,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var _=function(){function $(j){this.$L=P(j.locale,null,!0),this.parse(j)}var M=$.prototype;return M.parse=function(j){this.$d=function(W){var U=W.date,K=W.utc;if(U===null)return new Date(NaN);if(E.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var H=U.match(y);if(H){var F=H[2]-1||0,R=(H[7]||"0").substring(0,3);return K?new Date(Date.UTC(H[1],F,H[3]||1,H[4]||0,H[5]||0,H[6]||0,R)):new Date(H[1],F,H[3]||1,H[4]||0,H[5]||0,H[6]||0,R)}}return new Date(U)}(j),this.$x=j.x||{},this.init()},M.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},M.$utils=function(){return E},M.isValid=function(){return this.$d.toString()!==m},M.isSame=function(j,W){var U=k(j);return this.startOf(W)<=U&&U<=this.endOf(W)},M.isAfter=function(j,W){return k(j)<this.startOf(W)},M.isBefore=function(j,W){return this.endOf(W)<k(j)},M.$g=function(j,W,U){return E.u(j)?this[W]:this.set(U,j)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(j,W){var U=this,K=!!E.u(W)||W,H=E.p(j),F=function(Y,G){var X=E.w(U.$u?Date.UTC(U.$y,G,Y):new Date(U.$y,G,Y),U);return K?X:X.endOf(u)},R=function(Y,G){return E.w(U.toDate()[Y].apply(U.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(G)),U)},V=this.$W,z=this.$M,L=this.$D,A="set"+(this.$u?"UTC":"");switch(H){case p:return K?F(1,0):F(31,11);case f:return K?F(1,z):F(0,z+1);case d:var N=this.$locale().weekStart||0,q=(V<N?V+7:V)-N;return F(K?L-q:L+(6-q),z);case u:case b:return R(A+"Hours",0);case c:return R(A+"Minutes",1);case l:return R(A+"Seconds",2);case s:return R(A+"Milliseconds",3);default:return this.clone()}},M.endOf=function(j){return this.startOf(j,!1)},M.$set=function(j,W){var U,K=E.p(j),H="set"+(this.$u?"UTC":""),F=(U={},U[u]=H+"Date",U[b]=H+"Date",U[f]=H+"Month",U[p]=H+"FullYear",U[c]=H+"Hours",U[l]=H+"Minutes",U[s]=H+"Seconds",U[a]=H+"Milliseconds",U)[K],R=K===u?this.$D+(W-this.$W):W;if(K===f||K===p){var V=this.clone().set(b,1);V.$d[F](R),V.init(),this.$d=V.set(b,Math.min(this.$D,V.daysInMonth())).$d}else F&&this.$d[F](R);return this.init(),this},M.set=function(j,W){return this.clone().$set(j,W)},M.get=function(j){return this[E.p(j)]()},M.add=function(j,W){var U,K=this;j=Number(j);var H=E.p(W),F=function(z){var L=k(K);return E.w(L.date(L.date()+Math.round(z*j)),K)};if(H===f)return this.set(f,this.$M+j);if(H===p)return this.set(p,this.$y+j);if(H===u)return F(1);if(H===d)return F(7);var R=(U={},U[l]=r,U[c]=i,U[s]=n,U)[H]||1,V=this.$d.getTime()+j*R;return E.w(V,this)},M.subtract=function(j,W){return this.add(-1*j,W)},M.format=function(j){var W=this,U=this.$locale();if(!this.isValid())return U.invalidDate||m;var K=j||"YYYY-MM-DDTHH:mm:ssZ",H=E.z(this),F=this.$H,R=this.$m,V=this.$M,z=U.weekdays,L=U.months,A=function(G,X,Q,Z){return G&&(G[X]||G(W,K))||Q[X].substr(0,Z)},N=function(G){return E.s(F%12||12,G,"0")},q=U.meridiem||function(G,X,Q){var Z=G<12?"AM":"PM";return Q?Z.toLowerCase():Z},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:V+1,MM:E.s(V+1,2,"0"),MMM:A(U.monthsShort,V,L,3),MMMM:A(L,V),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:A(U.weekdaysMin,this.$W,z,2),ddd:A(U.weekdaysShort,this.$W,z,3),dddd:z[this.$W],H:String(F),HH:E.s(F,2,"0"),h:N(1),hh:N(2),a:q(F,R,!0),A:q(F,R,!1),m:String(R),mm:E.s(R,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:H};return K.replace(g,function(G,X){return X||Y[G]||H.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(j,W,U){var K,H=E.p(W),F=k(j),R=(F.utcOffset()-this.utcOffset())*r,V=this-F,z=E.m(this,F);return z=(K={},K[p]=z/12,K[f]=z,K[h]=z/3,K[d]=(V-R)/6048e5,K[u]=(V-R)/864e5,K[c]=V/i,K[l]=V/r,K[s]=V/n,K)[H]||V,U?z:E.a(z)},M.daysInMonth=function(){return this.endOf(f).$D},M.$locale=function(){return O[this.$L]},M.locale=function(j,W){if(!j)return this.$L;var U=this.clone(),K=P(j,W,!0);return K&&(U.$L=K),U},M.clone=function(){return E.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},$}(),T=_.prototype;return k.prototype=T,[["$ms",a],["$s",s],["$m",l],["$H",c],["$W",u],["$M",f],["$y",p],["$D",b]].forEach(function($){T[$[1]]=function(M){return this.$g(M,$[0],$[1])}}),k.extend=function($,M){return $.$i||($(M,_,k),$.$i=!0),k},k.locale=P,k.isDayjs=C,k.unix=function($){return k(1e3*$)},k.en=O[S],k.Ls=O,k.p={},k})})(l$);var gbe=l$.exports;const xn=Mt(gbe);var c$={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,a=/\d\d?/,s=/\d*[^\s\d-_:/()]+/,l={},c=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(y){this[m]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var g=y.match(/([+-]|\d\d)/g),v=60*g[1]+(+g[2]||0);return v===0?0:g[0]==="+"?-v:v}(m)}],f=function(m){var y=l[m];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(m,y){var g,v=l.meridiem;if(v){for(var x=1;x<=24;x+=1)if(m.indexOf(v(x,0,y))>-1){g=x>12;break}}else g=m===(y?"pm":"PM");return g},p={A:[s,function(m){this.afternoon=h(m,!1)}],a:[s,function(m){this.afternoon=h(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[i,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[i,u("day")],Do:[s,function(m){var y=l.ordinal,g=m.match(/\d+/);if(this.day=g[0],y)for(var v=1;v<=31;v+=1)y(v).replace(/\[|\]/g,"")===m&&(this.day=v)}],M:[a,u("month")],MM:[i,u("month")],MMM:[s,function(m){var y=f("months"),g=(f("monthsShort")||y.map(function(v){return v.substr(0,3)})).indexOf(m)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[s,function(m){var y=f("months").indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(m){this.year=c(m)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function b(m){var y,g;y=m,g=l&&l.formats;for(var v=(m=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(k,E,_){var T=_&&_.toUpperCase();return E||g[_]||n[_]||g[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,M,j){return M||j.slice(1)})})).match(r),x=v.length,w=0;w<x;w+=1){var S=v[w],O=p[S],C=O&&O[0],P=O&&O[1];v[w]=P?{regex:C,parser:P}:S.replace(/^\[|\]$/g,"")}return function(k){for(var E={},_=0,T=0;_<x;_+=1){var $=v[_];if(typeof $=="string")T+=$.length;else{var M=$.regex,j=$.parser,W=k.substr(T),U=M.exec(W)[0];j.call(E,U),k=k.replace(U,"")}}return function(K){var H=K.afternoon;if(H!==void 0){var F=K.hours;H?F<12&&(K.hours+=12):F===12&&(K.hours=0),delete K.afternoon}}(E),E}}return function(m,y,g){g.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(c=m.parseTwoDigitYear);var v=y.prototype,x=v.parse;v.parse=function(w){var S=w.date,O=w.utc,C=w.args;this.$u=O;var P=C[1];if(typeof P=="string"){var k=C[2]===!0,E=C[3]===!0,_=k||E,T=C[2];E&&(T=C[2]),l=this.$locale(),!k&&T&&(l=g.Ls[T]),this.$d=function(W,U,K){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*W);var H=b(U)(W),F=H.year,R=H.month,V=H.day,z=H.hours,L=H.minutes,A=H.seconds,N=H.milliseconds,q=H.zone,Y=new Date,G=V||(F||R?1:Y.getDate()),X=F||Y.getFullYear(),Q=0;F&&!R||(Q=R>0?R-1:Y.getMonth());var Z=z||0,ce=L||0,ue=A||0,ye=N||0;return q?new Date(Date.UTC(X,Q,G,Z,ce,ue,ye+60*q.offset*1e3)):K?new Date(Date.UTC(X,Q,G,Z,ce,ue,ye)):new Date(X,Q,G,Z,ce,ue,ye)}catch{return new Date("")}}(S,P,O),this.init(),T&&T!==!0&&(this.$L=this.locale(T).$L),_&&S!=this.format(P)&&(this.$d=new Date("")),l={}}else if(P instanceof Array)for(var $=P.length,M=1;M<=$;M+=1){C[1]=P[M-1];var j=g.apply(this,C);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}M===$&&(this.$d=new Date(""))}else x.call(this,w)}}})})(c$);var bbe=c$.exports;const u$=Mt(bbe),vbe=ot(D.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var wbe=Yb,xbe=Qo;function Sbe(e,t){var n=-1,r=xbe(e)?Array(e.length):[];return wbe(e,function(i,a,s){r[++n]=t(i,a,s)}),r}var Tbe=Sbe,Obe=zs,Ebe=fa,Cbe=Tbe,Pbe=Pn;function _be(e,t){var n=Pbe(e)?Obe:Cbe;return n(e,Ebe(t))}var kbe=_be;const d$=Mt(kbe),Dbe=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:ee({},e)}}}}),f$={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},$be=f$;Dbe(f$);const Rbe=["localeText"],of=I.createContext(null);process.env.NODE_ENV!=="production"&&(of.displayName="PickerAdapterContext");const Ci=function(t){const{localeText:n}=t,r=Je(t,Rbe),{adapter:i,localeText:a}=I.useContext(of)??{adapter:void 0,localeText:void 0},s=yt({props:r,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:h}=s,p=I.useMemo(()=>ee({},h,a,n),[h,a,n]),b=I.useMemo(()=>{if(!c)return i||null;const g=new c({locale:f,formats:u,instance:d});if(!g.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
`));return g},[c,f,u,d,i]),m=I.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),y=I.useMemo(()=>({utils:b,adapter:b,defaultDates:m,localeText:p}),[m,b,p]);return D.jsx(of.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(Ci.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(Ci.propTypes={adapterLocale:o.any,children:o.node,dateAdapter:o.func,dateFormats:o.shape({dayOfMonth:o.string,dayOfMonthFull:o.string,fullDate:o.string,fullTime12h:o.string,fullTime24h:o.string,hours12h:o.string,hours24h:o.string,keyboardDate:o.string,keyboardDateTime12h:o.string,keyboardDateTime24h:o.string,meridiem:o.string,minutes:o.string,month:o.string,monthShort:o.string,normalDate:o.string,normalDateWithWeekday:o.string,seconds:o.string,shortDate:o.string,weekday:o.string,weekdayShort:o.string,year:o.string}),dateLibInstance:o.any,localeText:o.object});const zv=()=>{const e=I.useContext(of);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
`));if(e.adapter===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
`));const t=I.useMemo(()=>ee({},$be,e.localeText),[e.localeText]);return I.useMemo(()=>ee({},e,{localeText:t}),[e,t])},ft=()=>zv().adapter,Vn=()=>zv().localeText,Ty=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Oy=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],p$=["minDateTime","maxDateTime"],Mbe=[...Ty,...Oy,...p$],Qs=e=>Mbe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),Ibe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],h$=(e,t)=>I.useMemo(()=>{const n=ee({},e),r={},i=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return Ibe.forEach(i),t==="date"?Ty.forEach(i):t==="time"?Oy.forEach(i):t==="date-time"&&(Ty.forEach(i),Oy.forEach(i),p$.forEach(i)),{forwardedProps:n,internalProps:r}},[e,t]),So=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Wv=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let a;if(e!=null)a=e;else if(i.includes(t))a=t;else if(i.length>0)a=i[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:i,openTo:a}},af=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},hc=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:a,adapter:s,timezone:l})=>{const c=af(s,s.date(void 0,l),e);n&&s.isBefore(i,c)&&(i=c),t&&s.isAfter(r,c)&&(r=c);let u=e,d=e;for(s.isBefore(e,i)&&(u=i,d=null),s.isAfter(e,r)&&(d&&(d=r),u=null);u||d;){if(u&&s.isAfter(u,r)&&(u=null),d&&s.isBefore(d,i)&&(d=null),u){if(!a(u))return u;u=s.addDays(u,1)}if(d){if(!a(d))return d;d=s.addDays(d,-1)}}return null},Nbe=(e,t)=>e.isValid(t)?t:null,sf=(e,t,n)=>t==null||!e.isValid(t)?n:t,Abe=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Uv=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const i=r[r.length-1];r.push(e.addMonths(i,1))}return r},qv=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),oo=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},m$=["year","month","day"],ws=e=>m$.includes(e),mc=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return So(n,["year"])?i.year:So(n,["month"])?i.month:So(n,["day"])?i.dayOfMonth:So(n,["month","year"])?`${i.month} ${i.year}`:So(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},jbe=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Hv=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},jp=(e,t)=>{const n=[],r=e.date(void 0,"default"),i=e.startOfWeek(r),a=e.endOfWeek(r);let s=i;for(;e.isBefore(s,a);)n.push(s),s=e.addDays(s,1);return n.map(l=>e.formatByString(l,t))},y$=(e,t,n,r)=>{switch(n){case"month":return Uv(e,e.date(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return jp(e,r);case"meridiem":{const i=e.date(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(a=>e.formatByString(a,r))}default:return[]}},kT="s",Lbe=["0","1","2","3","4","5","6","7","8","9"],Fbe=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),kT)==="0"?Lbe:Array.from({length:10}).map((r,i)=>e.formatByString(e.setSeconds(t,i),kT))},aa=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let i=0;i<e.length;i+=1){r+=e[i];const a=t.indexOf(r);a>-1&&(n.push(a.toString()),r="")}return n.join("")},Yv=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),DT=(e,t)=>{const n=aa(e,t);return n!==" "&&!Number.isNaN(Number(n))},Gv=(e,t)=>Number(e).toString().padStart(t,"0"),g$=(e,t,n,r,i)=>{if(process.env.NODE_ENV!=="production"&&i.type!=="day"&&i.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${i.format}" is a digit format with letter in it.'
             This type of format is only supported for 'day' sections`].join(`
`));if(i.type==="day"&&i.contentType==="digit-with-letter"){const s=e.setDate(n.longestMonth,t);return e.formatByString(s,i.format)}let a=t.toString();return i.hasLeadingZerosInInput&&(a=Gv(a,i.maxLength)),Yv(a,r)},Kv=(e,t,n)=>{let r=e.value||e.placeholder;const i=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(aa(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!i&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},$T=(e,t,n,r)=>{if(process.env.NODE_ENV!=="production"&&Hv(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),r)},Bbe=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,b$=(e,t,n,r)=>{if(t!=="digit")return!1;const i=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(i,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(i),r).length>1;case"day":return e.formatByString(e.startOfMonth(i),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(i),r).length>1;case"hours":return e.formatByString(e.setHours(i,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(i,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(i,1),r).length>1;default:throw new Error("Invalid section type")}},Vbe=(e,t,n)=>{const r=t.some(c=>c.type==="day"),i=[],a=[];for(let c=0;c<t.length;c+=1){const u=t[c];r&&u.type==="weekDay"||(i.push(u.format),a.push(Kv(u,"non-input",n)))}const s=i.join(" "),l=a.join(" ");return e.parse(l,s)},zbe=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Wbe=(e,t,n)=>{const i=e.map(a=>{const s=Kv(a,n?"input-rtl":"input-ltr",t);return`${a.startSeparator}${s}${a.endSeparator}`}).join("");return n?`⁦${i}⁩`:i},Ube=(e,t,n)=>{const r=e.date(void 0,n),i=e.endOfYear(r),a=e.endOfDay(r),{maxDaysInMonth:s,longestMonth:l}=Uv(e,r).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:Bbe(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(i)+1}),day:({currentDate:c})=>({minimum:1,maximum:e.isValid(c)?e.getDaysInMonth(c):s,longestMonth:l}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=jp(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(a);return aa(e.formatByString(e.endOfDay(r),c),t)!==u.toString()?{minimum:1,maximum:Number(aa(e.formatByString(e.startOfDay(r),c),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(a)}),seconds:()=>({minimum:0,maximum:e.getSeconds(a)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let RT=!1;const MT=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!RT){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const r=e.find(i=>!n.includes(i.type));r&&(console.warn(`MUI X: The field component you are using is not compatible with the "${r.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),RT=!0)}},qbe=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{let i=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(i=Gv(i,t.maxLength));const a=jp(e,t.format),s=a.indexOf(i),c=a.indexOf(t.value)-s;return e.addDays(n,c)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const i=e.getHours(n)<12,a=e.getHours(r);return i&&a>=12?e.addHours(r,-12):!i&&a<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},IT={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},NT=(e,t,n,r,i)=>[...n].sort((a,s)=>IT[a.type]-IT[s.type]).reduce((a,s)=>!i||s.modified?qbe(e,s,t,a):a,r),Hbe=()=>navigator.userAgent.toLowerCase().includes("android"),Ybe=(e,t)=>{const n={};if(!t)return e.forEach((c,u)=>{const d=u===0?null:u-1,f=u===e.length-1?null:u+1;n[u]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let a=0,s=0,l=e.length-1;for(;l>=0;){s=e.findIndex((c,u)=>{var d;return u>=a&&((d=c.endSeparator)==null?void 0:d.includes(" "))&&c.endSeparator!==" / "}),s===-1&&(s=e.length-1);for(let c=s;c>=a;c-=1)i[c]=l,r[l]=c,l-=1;a=s+1}return e.forEach((c,u)=>{const d=i[u],f=d===0?null:r[d-1],h=d===e.length-1?null:r[d+1];n[u]={leftIndex:f,rightIndex:h}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Ey=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},Gbe=({adapter:e,format:t})=>{let n=10,r=t,i=e.expandFormat(t);for(;i!==r;)if(r=i,i=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.");return i},Kbe=({adapter:e,expandedFormat:t})=>{const n=[],{start:r,end:i}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let s=null;for(;s=a.exec(t);)n.push({start:s.index,end:a.lastIndex-1});return n},Xbe=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},Zbe=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:i,now:a,token:s,startSeparator:l})=>{if(s==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const c=Hv(e,s),u=b$(e,c.contentType,c.type,s),d=n?u:c.contentType==="digit",f=e.isValid(t);let h=f?e.formatByString(t,s):"",p=null;if(d)if(u)p=h===""?e.formatByString(a,s).length:h.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${s} should have a 'maxLength' property on it's adapter`);p=c.maxLength,f&&(h=Yv(Gv(aa(h,i),p),i))}return ee({},c,{format:s,maxLength:p,value:h,placeholder:Xbe(e,r,c,s),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},Qbe=e=>{var p;const{adapter:t,expandedFormat:n,escapedParts:r}=e,i=t.date(void 0),a=[];let s="";const l=Object.keys(t.formatTokenMap).sort((b,m)=>m.length-b.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),f=b=>r.find(m=>m.start<=b&&m.end>=b);let h=0;for(;h<n.length;){const b=f(h),m=b!=null,y=(p=c.exec(n.slice(h)))==null?void 0:p[1];if(!m&&y!=null&&u.test(y)){let g=y;for(;g.length>0;){const v=d.exec(g)[1];g=g.slice(v.length),a.push(Zbe(ee({},e,{now:i,token:v,startSeparator:s}))),s=""}h+=y.length}else{const g=n[h];m&&(b==null?void 0:b.start)===h||(b==null?void 0:b.end)===h||(a.length===0?s+=g:(a[a.length-1].endSeparator+=g,a[a.length-1].isEndFormatSeparator=!0)),h+=1}}return a.length===0&&s.length>0&&a.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:s,endSeparator:"",modified:!1}),a},Jbe=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const i=a=>{let s=a;return e&&s!==null&&s.includes(" ")&&(s=`⁩${s}⁦`),t==="spacious"&&["/",".","-"].includes(s)&&(s=` ${s} `),s};return r.startSeparator=i(r.startSeparator),r.endSeparator=i(r.endSeparator),r}),AT=e=>{let t=Gbe(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=Kbe(ee({},e,{expandedFormat:t})),r=Qbe(ee({},e,{expandedFormat:t,escapedParts:n}));return Jbe(ee({},e,{sections:r}))},Lp=I.createContext(null);process.env.NODE_ENV!=="production"&&(Lp.displayName="PickerContext");const jo=()=>{const e=I.useContext(Lp);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},Xv=()=>I.useContext(Lp),Zv=I.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(Zv.displayName="IsValidValueContext");function eve(){return I.useContext(Zv)}const Qv=I.createContext(null);process.env.NODE_ENV!=="production"&&(Qv.displayName="PickerFieldPrivateContext");function v$(){return I.useContext(Qv)}const Jv=I.createContext(null);process.env.NODE_ENV!=="production"&&(Jv.displayName="PickerActionsContext");const e0=I.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&(e0.displayName="PickerPrivateContext");function w$(e){const{contextValue:t,actionsContextValue:n,privateContextValue:r,fieldPrivateContextValue:i,isValidContextValue:a,localeText:s,children:l}=e;return D.jsx(Lp.Provider,{value:t,children:D.jsx(Jv.Provider,{value:n,children:D.jsx(e0.Provider,{value:r,children:D.jsx(Qv.Provider,{value:i,children:D.jsx(Zv.Provider,{value:a,children:D.jsx(Ci,{localeText:s,children:l})})})})})})}const tve=()=>{const e=I.useContext(Jv);if(e==null)throw new Error(["MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component"].join(`
`));return e},x$=()=>zv().defaultDates,pa=e=>{const t=ft(),n=I.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},nve=ot(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),rve=ot(D.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),ove=ot(D.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),S$=ot(D.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),ive=ot(D.jsxs(I.Fragment,{children:[D.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),D.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),ave=ot(D.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),sve=ot(D.jsxs(I.Fragment,{children:[D.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),D.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),lve=ot(D.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function cve(e){return ke("MuiPickersArrowSwitcher",e)}$e("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const sn=()=>I.useContext(e0),uve=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],dve=["ownerState"],fve=["ownerState"],pve=ne("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),hve=ne("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),jT=ne(Pt,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),mve=e=>_e({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},cve,e),t0=I.forwardRef(function(t,n){const r=Xn(),i=yt({props:t,name:"MuiPickersArrowSwitcher"}),{children:a,className:s,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:f,nextLabel:h,isPreviousDisabled:p,isPreviousHidden:b,onGoToPrevious:m,previousLabel:y,labelId:g,classes:v}=i,x=Je(i,uve),{ownerState:w}=sn(),S=mve(v),O={isDisabled:u,isHidden:d,goTo:f,label:h},C={isDisabled:p,isHidden:b,goTo:m,label:y},P=(l==null?void 0:l.previousIconButton)??jT,k=dt({elementType:P,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"end",onClick:C.goTo},ownerState:ee({},w,{isButtonHidden:C.isHidden??!1}),className:we(S.button,S.previousIconButton)}),E=(l==null?void 0:l.nextIconButton)??jT,_=dt({elementType:E,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"start",onClick:O.goTo},ownerState:ee({},w,{isButtonHidden:O.isHidden??!1}),className:we(S.button,S.nextIconButton)}),T=(l==null?void 0:l.leftArrowIcon)??rve,$=dt({elementType:T,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:S.leftArrowIcon}),M=Je($,dve),j=(l==null?void 0:l.rightArrowIcon)??ove,W=dt({elementType:j,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:S.rightArrowIcon}),U=Je(W,fve);return D.jsxs(pve,ee({ref:n,className:we(S.root,s),ownerState:w},x,{children:[D.jsx(P,ee({},k,{children:r?D.jsx(j,ee({},U)):D.jsx(T,ee({},M))})),a?D.jsx(Xe,{variant:"subtitle1",component:"span",id:g,children:a}):D.jsx(hve,{className:S.spacer,ownerState:w}),D.jsx(E,ee({},_,{children:r?D.jsx(T,ee({},M)):D.jsx(j,ee({},U))}))]}))});process.env.NODE_ENV!=="production"&&(t0.displayName="PickersArrowSwitcher");const T$=["hours","minutes","seconds"],yve=["hours","minutes","seconds","meridiem"],sa=e=>T$.includes(e),Wa=e=>yve.includes(e),gve=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,yc=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,bve=(e,t,n,r)=>{const i=yc(r.getHours(e),t,n);return r.setHours(e,i)},LT=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),lu=(e,t)=>(n,r)=>e?t.isAfter(n,r):LT(n,t)>LT(r,t),lf=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return So(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:So(n,["minutes"])?i.minutes:So(n,["seconds"])?i.seconds:So(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:So(n,["hours","minutes","seconds"])?r?`${i.hours12h}:${i.minutes}:${i.seconds} ${i.meridiem}`:`${i.hours24h}:${i.minutes}:${i.seconds}`:r?`${i.hours12h}:${i.minutes} ${i.meridiem}`:`${i.hours24h}:${i.minutes}`},O$={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function vve(e){const{steps:t,isViewMatchingStep:n,onStepChange:r}=e;return i=>{if(t==null)return O$;const a=t.findIndex(l=>n(i.view,l)),s=a===-1||a===t.length-1?null:t[a+1];return{hasNextStep:s!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{s!=null&&r(ee({},i,{step:s}))},areViewsInSameStep:(l,c)=>{const u=t.find(f=>n(l,f)),d=t.find(f=>n(c,f));return u===d}}}}let sm=!1;function cu({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:a,focusedView:s,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(sm||(r!=null&&!i.includes(r)&&(console.warn(`MUI X: \`view="${r}"\` is not a valid prop.`,`It must be an element of \`views=["${i.join('", "')}"]\`.`),sm=!0),r==null&&n!=null&&!i.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${i.join('", "')}"]\`.`),sm=!0)));const u=I.useRef(n),d=I.useRef(i),f=I.useRef(i.includes(n)?n:i[0]),[h,p]=Gn({name:"useViews",state:"view",controlled:r,default:f.current}),b=I.useRef(a?h:null),[m,y]=Gn({name:"useViews",state:"focusedView",controlled:s,default:b.current}),g=c?c({setView:p,view:h,defaultView:f.current,views:i}):O$;I.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(k=>!i.includes(k)))&&(p(i.includes(n)?n:i[0]),d.current=i,u.current=n)},[n,p,h,i]);const v=i.indexOf(h),x=i[v-1]??null,w=i[v+1]??null,S=Ae((k,E)=>{y(E?k:_=>k===_?null:_),l==null||l(k,E)}),O=Ae(k=>{S(k,!0),k!==h&&(p(k),t&&t(k))}),C=Ae(()=>{w&&O(w)}),P=Ae((k,E,_)=>{const T=E==="finish",$=_?i.indexOf(_)<i.length-1:!!w;e(k,T&&$?"partial":E,_);let j=null;if(_!=null&&_!==h?j=_:T&&(j=h),j==null)return;const W=i[i.indexOf(j)+1];W==null||!g.areViewsInSameStep(j,W)||O(W)});return ee({},g,{view:h,setView:O,focusedView:m,setFocusedView:S,nextView:w,previousView:x,defaultView:i.includes(n)?n:i[0],goToNextView:C,setValueAndGoToNextView:P})}function wve(e,{disableFuture:t,maxDate:n,timezone:r}){const i=ft();return I.useMemo(()=>{const a=i.date(void 0,r),s=i.startOfMonth(t&&i.isBefore(a,n)?a:n);return!i.isAfter(s,e)},[t,n,e,i,r])}function xve(e,{disablePast:t,minDate:n,timezone:r}){const i=ft();return I.useMemo(()=>{const a=i.date(void 0,r),s=i.startOfMonth(t&&i.isAfter(a,n)?a:n);return!i.isBefore(s,e)},[t,n,e,i,r])}function Fp(e,t,n,r){const i=ft(),a=I.useMemo(()=>i.isValid(e)?e:null,[i,e]),s=gve(a,i),l=I.useCallback(c=>{const u=a==null?null:bve(a,c,!!t,i);n(u,r??"partial")},[t,a,n,r,i]);return{meridiemMode:s,handleMeridiemChange:l}}const gc=36,Bp=2,xs=320,Sve=280,Ss=336,E$=232,Ml=48,Vp=ne("div")({overflow:"hidden",width:xs,maxHeight:Ss,display:"flex",flexDirection:"column",margin:"0 auto"});function Tve(e){return ke("MuiTimeClock",e)}$e("MuiTimeClock",["root","arrowSwitcher"]);const Ts=220,qo=36,bc={x:Ts/2,y:Ts/2},C$={x:bc.x,y:0},Ove=C$.x-bc.x,Eve=C$.y-bc.y,Cve=e=>e*(180/Math.PI),P$=(e,t,n)=>{const r=t-bc.x,i=n-bc.y,a=Math.atan2(Ove,Eve)-Math.atan2(r,i);let s=Cve(a);s=Math.round(s/e)*e,s%=360;const l=Math.floor(s/e)||0,c=r**2+i**2,u=Math.sqrt(c);return{value:l,distance:u}},Pve=(e,t,n=1)=>{const r=n*6;let{value:i}=P$(r,e,t);return i=i*n%60,i},_ve=(e,t,n)=>{const{value:r,distance:i}=P$(30,e,t);let a=r||12;return n?a%=12:i<Ts/2-qo&&(a+=12,a%=24),a};function kve(e){return ke("MuiClockPointer",e)}$e("MuiClockPointer",["root","thumb"]);const Dve=["className","classes","isBetweenTwoClockValues","isInner","type","viewValue"],$ve=e=>_e({root:["root"],thumb:["thumb"]},kve,e),Rve=ne("div",{name:"MuiClockPointer",slot:"Root"})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{isClockPointerAnimated:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),Mve=ne("div",{name:"MuiClockPointer",slot:"Thumb"})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${qo/2}px)`,border:`${(qo-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{isClockPointerBetweenTwoValues:!1},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function Ive(e){const t=yt({props:e,name:"MuiClockPointer"}),{className:n,classes:r,isBetweenTwoClockValues:i,isInner:a,type:s,viewValue:l}=t,c=Je(t,Dve),u=I.useRef(s);I.useEffect(()=>{u.current=s},[s]);const{ownerState:d}=sn(),f=ee({},d,{isClockPointerAnimated:u.current!==s,isClockPointerBetweenTwoValues:i}),h=$ve(r),p=()=>{let m=360/(s==="hours"?12:60)*l;return s==="hours"&&l>12&&(m-=360),{height:Math.round((a?.26:.4)*Ts),transform:`rotateZ(${m}deg)`}};return D.jsx(Rve,ee({style:p(),className:we(h.root,n),ownerState:f},c,{children:D.jsx(Mve,{ownerState:f,className:h.thumb})}))}function Nve(e){return ke("MuiClock",e)}$e("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const Ave=(e,t)=>{const n={root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",t.clockMeridiemMode==="am"&&"selected"],pmButton:["pmButton",t.clockMeridiemMode==="pm"&&"selected"],meridiemText:["meridiemText"]};return _e(n,Nve,e)},jve=ne("div",{name:"MuiClock",slot:"Root"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),Lve=ne("div",{name:"MuiClock",slot:"Clock"})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Fve=ne("div",{name:"MuiClock",slot:"Wrapper"})({"&:focus":{outline:"none"}}),Bve=ne("div",{name:"MuiClock",slot:"SquareMask"})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{isClockDisabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),Vve=ne("div",{name:"MuiClock",slot:"Pin"})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),_$=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:qo,variants:[{props:{clockMeridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),zve=ne(Pt,{name:"MuiClock",slot:"AmButton"})(({theme:e})=>ee({},_$(e,"am"),{position:"absolute",left:8})),Wve=ne(Pt,{name:"MuiClock",slot:"PmButton"})(({theme:e})=>ee({},_$(e,"pm"),{position:"absolute",right:8})),FT=ne(Xe,{name:"MuiClock",slot:"MeridiemText"})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Uve(e){const t=yt({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:a,value:s,handleMeridiemChange:l,isTimeDisabled:c,meridiemMode:u,minutesStep:d=1,onChange:f,selectedId:h,type:p,viewValue:b,viewRange:[m,y],disabled:g=!1,readOnly:v,className:x,classes:w}=t,S=ft(),O=Vn(),{ownerState:C}=sn(),P=ee({},C,{isClockDisabled:g,clockMeridiemMode:u}),k=I.useRef(!1),E=Ave(w,P),_=c(b,p),T=!n&&p==="hours"&&(b<1||b>12),$=(A,N)=>{g||v||c(A,p)||f(A,N)},M=(A,N)=>{let{offsetX:q,offsetY:Y}=A;if(q===void 0){const X=A.target.getBoundingClientRect();q=A.changedTouches[0].clientX-X.left,Y=A.changedTouches[0].clientY-X.top}const G=p==="seconds"||p==="minutes"?Pve(q,Y,d):_ve(q,Y,!!n);$(G,N)},j=A=>{k.current=!0,M(A,"shallow")},W=A=>{k.current&&(M(A,"finish"),k.current=!1),A.preventDefault()},U=A=>{A.buttons>0&&M(A.nativeEvent,"shallow")},K=A=>{k.current&&(k.current=!1),M(A.nativeEvent,"finish")},H=p==="hours"?!1:b%5!==0,F=p==="minutes"?d:1,R=I.useRef(null);Jt(()=>{i&&R.current.focus()},[i]);const V=A=>Math.max(m,Math.min(y,A)),z=A=>(A+(y+1))%(y+1),L=A=>{if(!k.current)switch(A.key){case"Home":$(m,"partial"),A.preventDefault();break;case"End":$(y,"partial"),A.preventDefault();break;case"ArrowUp":$(z(b+F),"partial"),A.preventDefault();break;case"ArrowDown":$(z(b-F),"partial"),A.preventDefault();break;case"PageUp":$(V(b+5),"partial"),A.preventDefault();break;case"PageDown":$(V(b-5),"partial"),A.preventDefault();break;case"Enter":case" ":$(b,"finish"),A.preventDefault();break}};return D.jsxs(jve,{className:we(E.root,x),children:[D.jsxs(Lve,{className:E.clock,children:[D.jsx(Bve,{onTouchMove:j,onTouchStart:j,onTouchEnd:W,onMouseUp:K,onMouseMove:U,ownerState:P,className:E.squareMask}),!_&&D.jsxs(I.Fragment,{children:[D.jsx(Vve,{className:E.pin}),s!=null&&D.jsx(Ive,{type:p,viewValue:b,isInner:T,isBetweenTwoClockValues:H})]}),D.jsx(Fve,{"aria-activedescendant":h,"aria-label":O.clockLabelText(p,s==null?null:S.format(s,n?"fullTime12h":"fullTime24h")),ref:R,role:"listbox",onKeyDown:L,tabIndex:0,className:E.wrapper,children:a})]}),n&&r&&D.jsxs(I.Fragment,{children:[D.jsx(zve,{onClick:v?void 0:()=>l("am"),disabled:g||u===null,ownerState:P,className:E.amButton,title:oo(S,"am"),children:D.jsx(FT,{variant:"caption",className:E.meridiemText,children:oo(S,"am")})}),D.jsx(Wve,{disabled:g||u===null,onClick:v?void 0:()=>l("pm"),ownerState:P,className:E.pmButton,title:oo(S,"pm"),children:D.jsx(FT,{variant:"caption",className:E.meridiemText,children:oo(S,"pm")})})]})]})}function qve(e){return ke("MuiClockNumber",e)}const Yu=$e("MuiClockNumber",["root","selected","disabled"]),Hve=["className","classes","disabled","index","inner","label","selected"],Yve=(e,t)=>{const n={root:["root",t.isClockNumberSelected&&"selected",t.isClockNumberDisabled&&"disabled"]};return _e(n,qve,e)},Gve=ne("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Yu.disabled}`]:t.disabled},{[`&.${Yu.selected}`]:t.selected}]})(({theme:e})=>({height:qo,width:qo,position:"absolute",left:`calc((100% - ${qo}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Yu.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Yu.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{isClockNumberInInnerRing:!0},style:ee({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function k$(e){const t=yt({props:e,name:"MuiClockNumber"}),{className:n,classes:r,disabled:i,index:a,inner:s,label:l,selected:c}=t,u=Je(t,Hve),{ownerState:d}=sn(),f=ee({},d,{isClockNumberInInnerRing:s,isClockNumberSelected:c,isClockNumberDisabled:i}),h=Yve(r,f),p=a%12/12*Math.PI*2-Math.PI/2,b=(Ts-qo-2)/2*(s?.65:1),m=Math.round(Math.cos(p)*b),y=Math.round(Math.sin(p)*b);return D.jsx(Gve,ee({className:we(h.root,n),"aria-disabled":i?!0:void 0,"aria-selected":c?!0:void 0,role:"option",style:{transform:`translate(${m}px, ${y+(Ts-qo)/2}px`},ownerState:f},u,{children:l}))}const Kve=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,adapter:a})=>{const s=t?a.getHours(t):null,l=[],c=e?1:0,u=e?12:23,d=f=>s===null?!1:e?f===12?s===12||s===0:s===f||s-12===f:s===f;for(let f=c;f<=u;f+=1){let h=f.toString();f===0&&(h="00");const p=!e&&(f===0||f>12);h=a.formatNumber(h);const b=d(f);l.push(D.jsx(k$,{id:b?i:void 0,index:f,inner:p,selected:b,disabled:r(f),label:h,"aria-label":n(h)},f))}return l},BT=({adapter:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([s,l],c)=>{const u=s===t;return D.jsx(k$,{label:l,id:u?i:void 0,index:c+1,inner:!1,disabled:n(s),selected:u,"aria-label":r(l)},s)})},Pi=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:i,onChange:a,valueManager:s})=>{const l=ft(),[c,u]=Gn({name:e,state:"value",controlled:n,default:r??s.emptyValue}),d=I.useMemo(()=>s.getTimezone(l,c),[l,s,c]),f=Ae(m=>d==null?m:s.setTimezone(l,d,m)),h=I.useMemo(()=>t||d||(i?l.getTimezone(Array.isArray(i)?i[0]:i):"default"),[t,d,i,l]),p=I.useMemo(()=>s.setTimezone(l,h,c),[s,l,h,c]),b=Ae((m,...y)=>{const g=f(m);u(g),a==null||a(g,...y)});return{value:p,handleValueChange:b,timezone:h}},to={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Xve=e=>Math.max(...e.map(t=>to[t.type]??1)),ml=(e,t,n)=>{if(t===to.year)return e.startOfYear(n);if(t===to.month)return e.startOfMonth(n);if(t===to.day)return e.startOfDay(n);let r=n;return t<to.minutes&&(r=e.setMinutes(r,0)),t<to.seconds&&(r=e.setSeconds(r,0)),t<to.milliseconds&&(r=e.setMilliseconds(r,0)),r},Zve=({props:e,adapter:t,granularity:n,timezone:r,getTodayDate:i})=>{let a=i?i():ml(t,n,qv(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=ml(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=ml(t,n,e.maxDate));const s=lu(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&s(e.minTime,a)&&(a=ml(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:af(t,a,e.minTime))),e.maxTime!=null&&s(a,e.maxTime)&&(a=ml(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:af(t,a,e.maxTime))),a},Qve=["value","referenceDate"],bn={emptyValue:null,getTodayValue:qv,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Je(e,Qve);return r.adapter.isValid(t)?t:n??Zve(r)},cleanValue:Nbe,areValuesEqual:Abe,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},n0={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:zbe,getV6InputValueFromSections:Wbe,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>ee({},t,{value:""}))},r0=({value:e,referenceDate:t,adapter:n,props:r,timezone:i})=>{const a=I.useMemo(()=>bn.getInitialReferenceValue({value:e,adapter:n,props:r,referenceDate:t,granularity:to.day,timezone:i,getTodayDate:()=>qv(n,i,"date")}),[t,i]);return e??a},Jve=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","timezone"],e0e=e=>_e({root:["root"],arrowSwitcher:["arrowSwitcher"]},Tve,e),t0e=ne(Vp,{name:"MuiTimeClock",slot:"Root"})({display:"flex",flexDirection:"column",position:"relative"}),n0e=ne(t0,{name:"MuiTimeClock",slot:"ArrowSwitcher"})({position:"absolute",right:12,top:15}),r0e=["hours","minutes"],o0=I.forwardRef(function(t,n){const r=ft(),i=yt({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:s=!1,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:f,referenceDate:h,disableIgnoringDatePartForTimeValidation:p=!1,maxTime:b,minTime:m,disableFuture:y,disablePast:g,minutesStep:v=1,shouldDisableTime:x,showViewSwitcher:w,onChange:S,view:O,views:C=r0e,openTo:P,onViewChange:k,focusedView:E,onFocusedViewChange:_,className:T,classes:$,disabled:M,readOnly:j,timezone:W}=i,U=Je(i,Jve),{value:K,handleValueChange:H,timezone:F}=Pi({name:"TimeClock",timezone:W,value:d,defaultValue:f,referenceDate:h,onChange:S,valueManager:bn}),R=r0({value:K,referenceDate:h,adapter:r,props:i,timezone:F}),V=Vn(),z=pa(F),L=Pr(),{ownerState:A}=sn(),{view:N,setView:q,previousView:Y,nextView:G,setValueAndGoToNextView:X}=cu({view:O,views:C,openTo:P,onViewChange:k,onChange:H,focusedView:E,onFocusedViewChange:_}),{meridiemMode:Q,handleMeridiemChange:Z}=Fp(R,a,X),ce=I.useCallback((de,pe)=>{const J=lu(p,r),oe=pe==="hours"||pe==="minutes"&&C.includes("seconds"),te=({start:re,end:Ee})=>!(m&&J(m,Ee)||b&&J(re,b)||y&&J(re,z)||g&&J(z,oe?Ee:re)),le=(re,Ee=1)=>{if(re%Ee!==0)return!1;if(x)switch(pe){case"hours":return!x(r.setHours(R,re),"hours");case"minutes":return!x(r.setMinutes(R,re),"minutes");case"seconds":return!x(r.setSeconds(R,re),"seconds");default:return!1}return!0};switch(pe){case"hours":{const re=yc(de,Q,a),Ee=r.setHours(R,re);if(r.getHours(Ee)!==re)return!0;const Pe=r.setSeconds(r.setMinutes(Ee,0),0),fe=r.setSeconds(r.setMinutes(Ee,59),59);return!te({start:Pe,end:fe})||!le(re)}case"minutes":{const re=r.setMinutes(R,de),Ee=r.setSeconds(re,0),Pe=r.setSeconds(re,59);return!te({start:Ee,end:Pe})||!le(de,v)}case"seconds":{const re=r.setSeconds(R,de);return!te({start:re,end:re})||!le(de)}default:throw new Error("not supported")}},[a,R,p,b,Q,m,v,x,r,y,g,z,C]),ue=I.useMemo(()=>{switch(N){case"hours":{const de=(oe,te)=>{const le=yc(oe,Q,a);X(r.setHours(R,le),te,"hours")},pe=r.getHours(R);let J;return a?pe>12?J=[12,23]:J=[0,11]:J=[0,23],{onChange:de,viewValue:pe,children:Kve({value:K,adapter:r,ampm:a,getClockNumberText:V.hoursClockNumberText,isDisabled:oe=>M||ce(oe,"hours"),selectedId:L}),viewRange:J}}case"minutes":{const de=r.getMinutes(R);return{viewValue:de,onChange:(J,oe)=>{X(r.setMinutes(R,J),oe,"minutes")},children:BT({adapter:r,value:de,getClockNumberText:V.minutesClockNumberText,isDisabled:J=>M||ce(J,"minutes"),selectedId:L}),viewRange:[0,59]}}case"seconds":{const de=r.getSeconds(R);return{viewValue:de,onChange:(J,oe)=>{X(r.setSeconds(R,J),oe,"seconds")},children:BT({adapter:r,value:de,getClockNumberText:V.secondsClockNumberText,isDisabled:J=>M||ce(J,"seconds"),selectedId:L}),viewRange:[0,59]}}default:throw new Error("You must provide the type for ClockView")}},[N,r,K,a,V.hoursClockNumberText,V.minutesClockNumberText,V.secondsClockNumberText,Q,X,R,ce,L,M]),ye=e0e($);return D.jsxs(t0e,ee({ref:n,className:we(ye.root,T),ownerState:A},U,{children:[D.jsx(Uve,ee({autoFocus:l??!!E,ampmInClock:s&&C.includes("hours"),value:K,type:N,ampm:a,minutesStep:v,isTimeDisabled:ce,meridiemMode:Q,handleMeridiemChange:Z,selectedId:L,disabled:M,readOnly:j},ue)),w&&D.jsx(n0e,{className:ye.arrowSwitcher,slots:c,slotProps:u,onGoToPrevious:()=>q(Y),isPreviousDisabled:!Y,previousLabel:V.openPreviousView,onGoToNext:()=>q(G),isNextDisabled:!G,nextLabel:V.openNextView,ownerState:A})]}))});process.env.NODE_ENV!=="production"&&(o0.displayName="TimeClock");process.env.NODE_ENV!=="production"&&(o0.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,classes:o.object,className:o.string,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disablePast:o.bool,focusedView:o.oneOf(["hours","minutes","seconds"]),maxTime:o.object,minTime:o.object,minutesStep:o.number,onChange:o.func,onFocusedViewChange:o.func,onViewChange:o.func,openTo:o.oneOf(["hours","minutes","seconds"]),readOnly:o.bool,referenceDate:o.object,shouldDisableTime:o.func,showViewSwitcher:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["hours","minutes","seconds"]),views:o.arrayOf(o.oneOf(["hours","minutes","seconds"]).isRequired)});function o0e(e){return ke("MuiDigitalClock",e)}const Cy=$e("MuiDigitalClock",["root","list","item"]);function ja(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const i0e=e=>{setTimeout(e,0)},D$=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?D$(t.shadowRoot):t:null},Yn=e=>D$(pn(e)),cf=e=>Array.from(e.children).indexOf(Yn(e)),i0="@media (pointer: fine)";function a0e(...e){return e.reduce((t,n)=>(Array.isArray(n)?t.push(...n):n!=null&&t.push(n),t),[])}const s0e=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","views","skipDisabled","timezone"],l0e=e=>_e({root:["root"],list:["list"],item:["item"]},o0e,e),c0e=ne(Vp,{name:"MuiDigitalClock",slot:"Root"})({overflowY:"auto",width:"100%",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:E$,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),u0e=ne(up,{name:"MuiDigitalClock",slot:"List"})({padding:0}),d0e=ne(ms,{name:"MuiDigitalClock",slot:"Item",shouldForwardProp:e=>e!=="itemValue"&&e!=="formattedValue"})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:dr(e.palette.primary.main,e.palette.action.focusOpacity)}})),a0=I.forwardRef(function(t,n){const r=ft(),i=I.useRef(null),a=Et(n,i),s=I.useRef(null),l=yt({props:t,name:"MuiDigitalClock"}),{ampm:c=r.is12HourCycleInCurrentLocale(),timeStep:u=30,autoFocus:d,slots:f,slotProps:h,value:p,defaultValue:b,referenceDate:m,disableIgnoringDatePartForTimeValidation:y=!1,maxTime:g,minTime:v,disableFuture:x,disablePast:w,minutesStep:S=1,shouldDisableTime:O,onChange:C,view:P,openTo:k,onViewChange:E,focusedView:_,onFocusedViewChange:T,className:$,classes:M,disabled:j,readOnly:W,views:U=["hours"],skipDisabled:K=!1,timezone:H}=l,F=Je(l,s0e),{value:R,handleValueChange:V,timezone:z}=Pi({name:"DigitalClock",timezone:H,value:p,defaultValue:b,referenceDate:m,onChange:C,valueManager:bn}),L=Vn(),A=pa(z),{ownerState:N}=sn(),q=ee({},N,{hasDigitalClockAlreadyBeenRendered:!!i.current}),Y=l0e(M),G=(f==null?void 0:f.digitalClockItem)??d0e,X=dt({elementType:G,externalSlotProps:h==null?void 0:h.digitalClockItem,ownerState:q,className:Y.item}),Q=r0({value:R,referenceDate:m,adapter:r,props:l,timezone:z}),Z=Ae(oe=>V(oe,"finish","hours")),{setValueAndGoToNextView:ce}=cu({view:P,views:U,openTo:k,onViewChange:E,onChange:Z,focusedView:_,onFocusedViewChange:T}),ue=Ae(oe=>{ce(oe,"finish")});Jt(()=>{if(i.current===null)return;const oe=i.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!oe)return;const te=oe.offsetTop;(d||_)&&oe.focus(),i.current.scrollTop=te-4});const ye=I.useCallback(oe=>{const te=lu(y,r),le=()=>!(v&&te(v,oe)||g&&te(oe,g)||x&&te(oe,A)||w&&te(A,oe)),re=()=>r.getMinutes(oe)%S!==0?!1:O?!O(oe,"hours"):!0;return!le()||!re()},[y,r,v,g,x,A,w,S,O]),de=I.useMemo(()=>{const oe=[];let le=r.startOfDay(Q);for(;r.isSameDay(Q,le);)oe.push(le),le=r.addMinutes(le,u);return oe},[Q,u,r]),pe=de.findIndex(oe=>r.isEqual(oe,Q)),J=oe=>{switch(oe.key){case"PageUp":{const te=cf(s.current)-5,le=s.current.children,re=Math.max(0,te),Ee=le[re];Ee&&Ee.focus(),oe.preventDefault();break}case"PageDown":{const te=cf(s.current)+5,le=s.current.children,re=Math.min(le.length-1,te),Ee=le[re];Ee&&Ee.focus(),oe.preventDefault();break}}};return D.jsx(c0e,ee({ref:a,className:we(Y.root,$),ownerState:q},F,{children:D.jsx(u0e,{ref:s,role:"listbox","aria-label":L.timePickerToolbarTitle,className:Y.list,onKeyDown:J,children:de.map((oe,te)=>{const le=ye(oe);if(K&&le)return null;const re=r.isEqual(oe,R),Ee=r.format(oe,c?"fullTime12h":"fullTime24h"),fe=pe===te||pe===-1&&te===0?0:-1;return D.jsx(G,ee({onClick:()=>!W&&ue(oe),selected:re,disabled:j||le,disableRipple:W,role:"option","aria-disabled":W,"aria-selected":re,tabIndex:fe,itemValue:oe,formattedValue:Ee},X,{children:Ee}),`${oe.valueOf()}-${Ee}`)})})}))});process.env.NODE_ENV!=="production"&&(a0.displayName="DigitalClock");process.env.NODE_ENV!=="production"&&(a0.propTypes={ampm:o.bool,autoFocus:o.bool,classes:o.object,className:o.string,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disablePast:o.bool,focusedView:o.oneOf(["hours"]),maxTime:o.object,minTime:o.object,minutesStep:o.number,onChange:o.func,onFocusedViewChange:o.func,onViewChange:o.func,openTo:o.oneOf(["hours"]),readOnly:o.bool,referenceDate:o.object,shouldDisableTime:o.func,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timeStep:o.number,timezone:o.string,value:o.object,view:o.oneOf(["hours"]),views:o.arrayOf(o.oneOf(["hours"]))});function f0e(e){return ke("MuiMultiSectionDigitalClock",e)}const Py=$e("MuiMultiSectionDigitalClock",["root"]);function p0e(e){return ke("MuiMultiSectionDigitalClockSection",e)}const _y=$e("MuiMultiSectionDigitalClockSection",["root","item"]),h0e=["autoFocus","onChange","className","classes","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],m0e=e=>_e({root:["root"],item:["item"]},p0e,e),y0e=ne(up,{name:"MuiMultiSectionDigitalClockSection",slot:"Root"})(({theme:e})=>({maxHeight:E$,width:56,padding:0,overflow:"hidden",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),g0e=ne(ms,{name:"MuiMultiSectionDigitalClockSection",slot:"Item"})(({theme:e})=>({padding:8,margin:"2px 4px",width:Ml,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:dr(e.palette.primary.main,e.palette.action.focusOpacity)}})),$$=I.forwardRef(function(t,n){const r=I.useRef(null),i=Et(n,r),a=I.useRef(null),s=yt({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:c,className:u,classes:d,disabled:f,readOnly:h,items:p,active:b,slots:m,slotProps:y,skipDisabled:g}=s,v=Je(s,h0e),{ownerState:x}=sn(),w=ee({},x,{hasDigitalClockAlreadyBeenRendered:!!r.current}),S=m0e(d),O=(m==null?void 0:m.digitalClockSectionItem)??g0e;Jt(()=>{if(r.current===null)return;const k=r.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(b&&l&&k&&k.focus(),!k||a.current===k)return;a.current=k;const E=k.offsetTop,_=k.offsetHeight,T=r.current.clientHeight,$=r.current.scrollHeight,M=E-T/2+_/2,j=$-T,W=Math.min(M,j);r.current.scrollTop=Math.max(0,W)});const C=p.findIndex(k=>k.isFocused(k.value)),P=k=>{switch(k.key){case"PageUp":{const E=cf(r.current)-5,_=r.current.children,T=Math.max(0,E),$=_[T];$&&$.focus(),k.preventDefault();break}case"PageDown":{const E=cf(r.current)+5,_=r.current.children,T=Math.min(_.length-1,E),$=_[T];$&&$.focus(),k.preventDefault();break}}};return D.jsx(y0e,ee({ref:i,className:we(S.root,u),ownerState:w,autoFocusItem:l&&b,role:"listbox",onKeyDown:P},v,{children:p.map((k,E)=>{var j;const _=(j=k.isDisabled)==null?void 0:j.call(k,k.value),T=f||_;if(g&&T)return null;const $=k.isSelected(k.value),M=C===E||C===-1&&E===0?0:-1;return D.jsx(O,ee({onClick:()=>!h&&c(k.value),selected:$,disabled:T,disableRipple:h,role:"option","aria-disabled":h||T||void 0,"aria-label":k.ariaLabel,"aria-selected":$,tabIndex:M,className:S.item},y==null?void 0:y.digitalClockSectionItem,{children:k.label}),k.label)})}))});process.env.NODE_ENV!=="production"&&($$.displayName="MultiSectionDigitalClockSection");const b0e=({now:e,value:t,adapter:n,ampm:r,isDisabled:i,resolveAriaLabel:a,timeStep:s,valueOrReferenceDate:l})=>{const c=t?n.getHours(t):null,u=[],d=(p,b)=>{const m=b??c;return m===null?!1:r?p===12?m===12||m===0:m===p||m-12===p:m===p},f=p=>d(p,n.getHours(l)),h=r?11:23;for(let p=0;p<=h;p+=s){let b=n.format(n.setHours(e,p),r?"hours12h":"hours24h");const m=a(parseInt(b,10).toString());b=n.formatNumber(b),u.push({value:p,label:b,isSelected:d,isDisabled:i,isFocused:f,ariaLabel:m})}return u},VT=({value:e,adapter:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:a,hasValue:s=!0})=>{const l=u=>e===null?!1:s&&e===u,c=u=>e===u;return[...Array.from({length:Math.ceil(60/r)},(u,d)=>{const f=r*d;return{value:f,label:t.formatNumber(i(f)),isDisabled:n,isSelected:l,isFocused:c,ariaLabel:a(f.toString())}})]},v0e=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","skipDisabled","timezone"],w0e=e=>_e({root:["root"]},f0e,e),x0e=ne(Vp,{name:"MuiMultiSectionDigitalClock",slot:"Root"})(({theme:e})=>({flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),s0=I.forwardRef(function(t,n){const r=ft(),i=Xn(),a=yt({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:s=r.is12HourCycleInCurrentLocale(),timeSteps:l,autoFocus:c,slots:u,slotProps:d,value:f,defaultValue:h,referenceDate:p,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:m,minTime:y,disableFuture:g,disablePast:v,minutesStep:x=1,shouldDisableTime:w,onChange:S,view:O,views:C=["hours","minutes"],openTo:P,onViewChange:k,focusedView:E,onFocusedViewChange:_,className:T,classes:$,disabled:M,readOnly:j,skipDisabled:W=!1,timezone:U}=a,K=Je(a,v0e),{value:H,handleValueChange:F,timezone:R}=Pi({name:"MultiSectionDigitalClock",timezone:U,value:f,defaultValue:h,referenceDate:p,onChange:S,valueManager:bn}),V=Vn(),z=pa(R),L=I.useMemo(()=>ee({hours:1,minutes:5,seconds:5},l),[l]),A=r0({value:H,referenceDate:p,adapter:r,props:a,timezone:R}),N=Ae((te,le,re)=>F(te,le,re)),q=I.useMemo(()=>!s||!C.includes("hours")||C.includes("meridiem")?C:[...C,"meridiem"],[s,C]),{view:Y,setValueAndGoToNextView:G,focusedView:X}=cu({view:O,views:q,openTo:P,onViewChange:k,onChange:N,focusedView:E,onFocusedViewChange:_}),Q=Ae(te=>{G(te,"finish","meridiem")}),{meridiemMode:Z,handleMeridiemChange:ce}=Fp(A,s,Q,"finish"),ue=I.useCallback((te,le)=>{const re=lu(b,r),Ee=le==="hours"||le==="minutes"&&q.includes("seconds"),Pe=({start:ge,end:De})=>!(y&&re(y,De)||m&&re(ge,m)||g&&re(ge,z)||v&&re(z,Ee?De:ge)),fe=(ge,De=1)=>{if(ge%De!==0)return!1;if(w)switch(le){case"hours":return!w(r.setHours(A,ge),"hours");case"minutes":return!w(r.setMinutes(A,ge),"minutes");case"seconds":return!w(r.setSeconds(A,ge),"seconds");default:return!1}return!0};switch(le){case"hours":{const ge=yc(te,Z,s),De=r.setHours(A,ge);if(r.getHours(De)!==ge)return!0;const Me=r.setSeconds(r.setMinutes(De,0),0),Ie=r.setSeconds(r.setMinutes(De,59),59);return!Pe({start:Me,end:Ie})||!fe(ge)}case"minutes":{const ge=r.setMinutes(A,te),De=r.setSeconds(ge,0),Me=r.setSeconds(ge,59);return!Pe({start:De,end:Me})||!fe(te,x)}case"seconds":{const ge=r.setSeconds(A,te);return!Pe({start:ge,end:ge})||!fe(te)}default:throw new Error("not supported")}},[s,A,b,m,Z,y,x,w,r,g,v,z,q]),ye=I.useCallback(te=>{switch(te){case"hours":return{onChange:le=>{const re=yc(le,Z,s);G(r.setHours(A,re),"finish","hours")},items:b0e({now:z,value:H,ampm:s,adapter:r,isDisabled:le=>ue(le,"hours"),timeStep:L.hours,resolveAriaLabel:V.hoursClockNumberText,valueOrReferenceDate:A})};case"minutes":return{onChange:le=>{G(r.setMinutes(A,le),"finish","minutes")},items:VT({value:r.getMinutes(A),adapter:r,isDisabled:le=>ue(le,"minutes"),resolveLabel:le=>r.format(r.setMinutes(z,le),"minutes"),timeStep:L.minutes,hasValue:!!H,resolveAriaLabel:V.minutesClockNumberText})};case"seconds":return{onChange:le=>{G(r.setSeconds(A,le),"finish","seconds")},items:VT({value:r.getSeconds(A),adapter:r,isDisabled:le=>ue(le,"seconds"),resolveLabel:le=>r.format(r.setSeconds(z,le),"seconds"),timeStep:L.seconds,hasValue:!!H,resolveAriaLabel:V.secondsClockNumberText})};case"meridiem":{const le=oo(r,"am"),re=oo(r,"pm");return{onChange:ce,items:[{value:"am",label:le,isSelected:()=>!!H&&Z==="am",isFocused:()=>!!A&&Z==="am",ariaLabel:le},{value:"pm",label:re,isSelected:()=>!!H&&Z==="pm",isFocused:()=>!!A&&Z==="pm",ariaLabel:re}]}}default:throw new Error(`Unknown view: ${te} found.`)}},[z,H,s,r,L.hours,L.minutes,L.seconds,V.hoursClockNumberText,V.minutesClockNumberText,V.secondsClockNumberText,Z,G,A,ue,ce]),de=I.useMemo(()=>{if(!i)return q;const te=q.filter(le=>le!=="meridiem");return te.reverse(),q.includes("meridiem")&&te.push("meridiem"),te},[i,q]),pe=I.useMemo(()=>q.reduce((te,le)=>ee({},te,{[le]:ye(le)}),{}),[q,ye]),{ownerState:J}=sn(),oe=w0e($);return D.jsx(x0e,ee({ref:n,className:we(oe.root,T),ownerState:J,role:"group"},K,{children:de.map(te=>D.jsx($$,{items:pe[te].items,onChange:pe[te].onChange,active:Y===te,autoFocus:c||X===te,disabled:M,readOnly:j,slots:u,slotProps:d,skipDisabled:W,"aria-label":V.selectViewText(te)},te))}))});process.env.NODE_ENV!=="production"&&(s0.displayName="MultiSectionDigitalClock");process.env.NODE_ENV!=="production"&&(s0.propTypes={ampm:o.bool,autoFocus:o.bool,classes:o.object,className:o.string,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disablePast:o.bool,focusedView:o.oneOf(["hours","meridiem","minutes","seconds"]),maxTime:o.object,minTime:o.object,minutesStep:o.number,onChange:o.func,onFocusedViewChange:o.func,onViewChange:o.func,openTo:o.oneOf(["hours","meridiem","minutes","seconds"]),readOnly:o.bool,referenceDate:o.object,shouldDisableTime:o.func,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timeSteps:o.shape({hours:o.number,minutes:o.number,seconds:o.number}),timezone:o.string,value:o.object,view:o.oneOf(["hours","meridiem","minutes","seconds"]),views:o.arrayOf(o.oneOf(["hours","meridiem","minutes","seconds"]).isRequired)});function S0e(e){return ke("MuiPickersDay",e)}const $i=$e("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function R$(e){const{disabled:t,selected:n,today:r,outsideCurrentMonth:i,day:a,disableMargin:s,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=ft(),{ownerState:d}=sn();return I.useMemo(()=>ee({},d,{day:a,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:r??!1,isDayOutsideMonth:i??!1,isDayStartOfWeek:u.isSameDay(a,u.startOfWeek(a)),isDayEndOfWeek:u.isSameDay(a,u.endOfWeek(a)),disableMargin:s??!1,disableHighlightToday:l??!1,showDaysOutsideCurrentMonth:c??!1}),[u,d,a,n,t,r,i,s,l,c])}const T0e=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],O0e=(e,t)=>{const{isDaySelected:n,isDayDisabled:r,isDayCurrent:i,isDayOutsideMonth:a,disableMargin:s,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=t,u=a&&!c;return _e({root:["root",n&&!u&&"selected",r&&"disabled",!s&&"dayWithMargin",!l&&i&&"today",a&&c&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},S0e,e)},M$=({theme:e})=>ee({},e.typography.caption,{width:gc,height:gc,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:dr(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${$i.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${$i.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${$i.disabled}:not(.${$i.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${$i.disabled}&.${$i.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Bp}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${$i.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),I$=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.isDayCurrent&&t.today,!n.isDayOutsideMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.isDayOutsideMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},E0e=ne(Or,{name:"MuiPickersDay",slot:"Root",overridesResolver:I$})(M$),C0e=ne("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:I$})(({theme:e})=>ee({},M$({theme:e}),{opacity:0,pointerEvents:"none"})),yl=()=>{},l0=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:a,classes:s,isAnimating:l,onClick:c,onDaySelect:u,onFocus:d=yl,onBlur:f=yl,onKeyDown:h=yl,onMouseDown:p=yl,onMouseEnter:b=yl,children:m,day:y,selected:g,disabled:v,today:x,outsideCurrentMonth:w,disableMargin:S,disableHighlightToday:O,showDaysOutsideCurrentMonth:C}=r,P=Je(r,T0e),k=R$({day:y,selected:g,disabled:v,today:x,outsideCurrentMonth:w,disableMargin:S,disableHighlightToday:O,showDaysOutsideCurrentMonth:C}),E=O0e(s,k),_=ft(),T=I.useRef(null),$=Et(T,n);Jt(()=>{i&&!v&&!l&&!w&&T.current.focus()},[i,v,l,w]);const M=W=>{p(W),w&&W.preventDefault()},j=W=>{W.defaultMuiPrevented=!0,v||u(y),w&&W.currentTarget.focus(),c&&c(W)};return w&&!C?D.jsx(C0e,{className:we(E.root,E.hiddenDaySpacingFiller,a),ownerState:k,role:P.role}):D.jsx(E0e,ee({className:we(E.root,a),ref:$,centerRipple:!0,disabled:v,tabIndex:g?0:-1,onKeyDown:W=>h(W,y),onFocus:W=>d(W,y),onBlur:W=>f(W,y),onMouseEnter:W=>b(W,y),onClick:j,onMouseDown:M},P,{ownerState:k,children:m??_.format(y,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(l0.displayName="PickersDayRaw");process.env.NODE_ENV!=="production"&&(l0.propTypes={action:o.oneOfType([o.func,o.shape({current:o.shape({focusVisible:o.func.isRequired})})]),centerRipple:o.bool,classes:o.object,className:o.string,component:o.elementType,day:o.object.isRequired,disabled:o.bool,disableHighlightToday:o.bool,disableMargin:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,isAnimating:o.bool,isFirstVisibleCell:o.bool.isRequired,isLastVisibleCell:o.bool.isRequired,onBlur:o.func,onDaySelect:o.func.isRequired,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onMouseEnter:o.func,outsideCurrentMonth:o.bool.isRequired,selected:o.bool,showDaysOutsideCurrentMonth:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,today:o.bool,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})])});const N$=I.memo(l0);process.env.NODE_ENV!=="production"&&(N$.displayName="PickersDay");const Da=e=>e.saveQuery!=null,A$=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:r,setCharacterQuery:i,setTempAndroidValueStr:a,updateSectionValue:s}})=>{const l=ft(),c=({keyPressed:f,sectionIndex:h},p,b)=>{const m=f.toLowerCase(),y=n.sections[h];if(n.characterQuery!=null&&(!b||b(n.characterQuery.value))&&n.characterQuery.sectionIndex===h){const v=`${n.characterQuery.value}${m}`,x=p(v,y);if(!Da(x))return i({sectionIndex:h,value:v,sectionType:y.type}),x}const g=p(m,y);return Da(g)&&!g.saveQuery?(i(null),null):(i({sectionIndex:h,value:m,sectionType:y.type}),Da(g)?null:g)},u=f=>{const h=(m,y,g)=>{const v=y.filter(x=>x.toLowerCase().startsWith(g));return v.length===0?{saveQuery:!1}:{sectionValue:v[0],shouldGoToNextSection:v.length===1}},p=(m,y,g,v)=>{const x=w=>y$(l,r,y.type,w);if(y.contentType==="letter")return h(y.format,x(y.format),m);if(g&&v!=null&&Hv(l,g).contentType==="letter"){const w=x(g),S=h(g,w,m);return Da(S)?{saveQuery:!1}:ee({},S,{sectionValue:v(S.sectionValue,w)})}return{saveQuery:!1}};return c(f,(m,y)=>{switch(y.type){case"month":{const g=v=>$T(l,v,l.formats.month,y.format);return p(m,y,l.formats.month,g)}case"weekDay":{const g=(v,x)=>x.indexOf(v).toString();return p(m,y,l.formats.weekday,g)}case"meridiem":return p(m,y);default:return{saveQuery:!1}}})},d=f=>{const h=({queryValue:b,skipIfBelowMinimum:m,section:y})=>{const g=aa(b,e),v=Number(g),x=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(v>x.maximum)return{saveQuery:!1};if(m&&v<x.minimum)return{saveQuery:!0};const w=v*10>x.maximum||g.length===x.maximum.toString().length;return{sectionValue:g$(l,v,x,e,y),shouldGoToNextSection:w}};return c(f,(b,m)=>{if(m.contentType==="digit"||m.contentType==="digit-with-letter")return h({queryValue:b,skipIfBelowMinimum:!1,section:m});if(m.type==="month"){b$(l,"digit","month","MM");const y=h({queryValue:b,skipIfBelowMinimum:!0,section:{type:m.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Da(y))return y;const g=$T(l,y.sectionValue,"MM",m.format);return ee({},y,{sectionValue:g})}if(m.type==="weekDay"){const y=h({queryValue:b,skipIfBelowMinimum:!0,section:m});if(Da(y))return y;const g=jp(l,m.format)[Number(y.sectionValue)-1];return ee({},y,{sectionValue:g})}return{saveQuery:!1}},b=>DT(b,e))};return Ae(f=>{const h=n.sections[f.sectionIndex],b=DT(f.keyPressed,e)?d(ee({},f,{keyPressed:Yv(f.keyPressed,e)})):u(f);if(b==null){a(null);return}s({section:h,newSectionValue:b.sectionValue,shouldGoToNextSection:b.shouldGoToNextSection})})},Js=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:i,shouldDisableMonth:a,shouldDisableYear:s,disablePast:l,disableFuture:c,minDate:u,maxDate:d}=e,f=r.date(void 0,n);switch(!0){case!r.isValid(t):return"invalidDate";case!!(i&&i(t)):return"shouldDisableDate";case!!(a&&a(t)):return"shouldDisableMonth";case!!(s&&s(t)):return"shouldDisableYear";case!!(c&&r.isAfterDay(t,f)):return"disableFuture";case!!(l&&r.isBeforeDay(t,f)):return"disablePast";case!!(u&&r.isBeforeDay(t,u)):return"minDate";case!!(d&&r.isAfterDay(t,d)):return"maxDate";default:return null}};Js.valueManager=bn;const uu=({adapter:e,value:t,timezone:n,props:r})=>{if(t===null)return null;const{minTime:i,maxTime:a,minutesStep:s,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:d}=r,f=e.date(void 0,n),h=lu(c,e);switch(!0){case!e.isValid(t):return"invalidDate";case!!(i&&h(i,t)):return"minTime";case!!(a&&h(t,a)):return"maxTime";case!!(d&&e.isAfter(t,f)):return"disableFuture";case!!(u&&e.isBefore(t,f)):return"disablePast";case!!(l&&l(t,"hours")):return"shouldDisableTime-hours";case!!(l&&l(t,"minutes")):return"shouldDisableTime-minutes";case!!(l&&l(t,"seconds")):return"shouldDisableTime-seconds";case!!(s&&e.getMinutes(t)%s!==0):return"minutesStep";default:return null}};uu.valueManager=bn;const zp=({adapter:e,value:t,timezone:n,props:r})=>{const i=Js({adapter:e,value:t,timezone:n,props:r});return i!==null?i:uu({adapter:e,value:t,timezone:n,props:r})};zp.valueManager=bn;function j$(e){const{props:t,validator:n,value:r,timezone:i,onError:a}=e,s=ft(),l=I.useRef(n.valueManager.defaultErrorState),c=n({adapter:s,value:r,timezone:i,props:t}),u=n.valueManager.hasError(c);I.useEffect(()=>{a&&!n.valueManager.isSameError(c,l.current)&&a(c,r),l.current=c},[n,a,c,r]);const d=Ae(f=>n({adapter:s,value:f,timezone:i,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const P0e=5e3,L$=e=>{var de;const t=ft(),n=Vn(),r=Xn(),{manager:{validator:i,valueType:a,internal_valueManager:s,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:f,onChange:h,format:p,formatDensity:b="dense",selectedSections:m,onSelectedSectionsChange:y,shouldRespectLeadingZeros:g=!1,timezone:v,enableAccessibleFieldDOMStructure:x=!0},forwardedProps:{error:w}}=e,{value:S,handleValueChange:O,timezone:C}=Pi({name:"a field component",timezone:v,value:u,defaultValue:d,referenceDate:f,onChange:h,valueManager:s}),P=I.useRef(S);I.useEffect(()=>{P.current=S},[S]);const{hasValidationError:k}=j$({props:c,validator:i,timezone:C,value:S,onError:c.onError}),E=I.useMemo(()=>w!==void 0?w:k,[k,w]),_=I.useMemo(()=>Fbe(t),[t]),T=I.useMemo(()=>Ube(t,_,C),[t,_,C]),$=I.useCallback(pe=>l.getSectionsFromValue(pe,J=>AT({adapter:t,localeText:n,localizedDigits:_,format:p,date:J,formatDensity:b,shouldRespectLeadingZeros:g,enableAccessibleFieldDOMStructure:x,isRtl:r})),[l,p,n,_,r,g,t,b,x]),[M,j]=I.useState(()=>{const pe=$(S);MT(pe,a);const J={sections:pe,lastExternalValue:S,lastSectionsDependencies:{format:p,isRtl:r,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},oe=Xve(pe),te=s.getInitialReferenceValue({referenceDate:f,value:S,adapter:t,props:c,granularity:oe,timezone:C});return ee({},J,{referenceValue:te})}),[W,U]=Gn({controlled:m,default:null,name:"useField",state:"selectedSections"}),K=pe=>{U(pe),y==null||y(pe)},H=I.useMemo(()=>Ey(W,M.sections),[W,M.sections]),F=H==="all"?0:H,R=I.useMemo(()=>Ybe(M.sections,r&&!x),[M.sections,r,x]),V=I.useMemo(()=>M.sections.every(pe=>pe.value===""),[M.sections]),z=pe=>{const J={validationError:i({adapter:t,value:pe,timezone:C,props:c})};O(pe,J)},L=(pe,J)=>{const oe=[...M.sections];return oe[pe]=ee({},oe[pe],{value:J,modified:!0}),oe},A=I.useRef(null),N=wr(),q=pe=>{F!=null&&(A.current={sectionIndex:F,value:pe},N.start(0,()=>{A.current=null}))},Y=()=>{s.areValuesEqual(t,S,s.emptyValue)?j(pe=>ee({},pe,{sections:pe.sections.map(J=>ee({},J,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(j(pe=>ee({},pe,{characterQuery:null})),z(s.emptyValue))},G=()=>{if(F==null)return;const pe=M.sections[F];pe.value!==""&&(q(""),l.getDateFromSection(S,pe)===null?j(J=>ee({},J,{sections:L(F,""),tempValueStrAndroid:null,characterQuery:null})):(j(J=>ee({},J,{characterQuery:null})),z(l.updateDateInValue(S,pe,null))))},X=pe=>{const J=(te,le)=>{const re=t.parse(te,p);if(!t.isValid(re))return null;const Ee=AT({adapter:t,localeText:n,localizedDigits:_,format:p,date:re,formatDensity:b,shouldRespectLeadingZeros:g,enableAccessibleFieldDOMStructure:x,isRtl:r});return NT(t,re,Ee,le,!1)},oe=l.parseValueStr(pe,M.referenceValue,J);z(oe)},Q=wr(),Z=({section:pe,newSectionValue:J,shouldGoToNextSection:oe})=>{N.clear(),Q.clear();const te=l.getDateFromSection(S,pe);oe&&F<M.sections.length-1&&K(F+1);const le=L(F,J),re=l.getDateSectionsFromValue(le,pe),Ee=Vbe(t,re,_);if(t.isValid(Ee)){const Pe=NT(t,Ee,re,l.getDateFromSection(M.referenceValue,pe),!0);return te==null&&Q.start(0,()=>{P.current===S&&j(fe=>ee({},fe,{sections:l.clearDateSections(M.sections,pe),tempValueStrAndroid:null}))}),z(l.updateDateInValue(S,pe,Pe))}return re.every(Pe=>Pe.value!=="")&&(te==null||t.isValid(te))?(q(J),z(l.updateDateInValue(S,pe,Ee))):te!=null?(q(J),z(l.updateDateInValue(S,pe,null))):j(Pe=>ee({},Pe,{sections:le,tempValueStrAndroid:null}))},ce=pe=>j(J=>ee({},J,{tempValueStrAndroid:pe})),ue=Ae(pe=>{j(J=>ee({},J,{characterQuery:pe}))});if(S!==M.lastExternalValue){let pe;A.current!=null&&!t.isValid(l.getDateFromSection(S,M.sections[A.current.sectionIndex]))?pe=L(A.current.sectionIndex,A.current.value):pe=$(S),j(J=>ee({},J,{lastExternalValue:S,sections:pe,sectionsDependencies:{format:p,isRtl:r,locale:t.locale},referenceValue:l.updateReferenceValue(t,S,J.referenceValue),tempValueStrAndroid:null}))}if(r!==M.lastSectionsDependencies.isRtl||p!==M.lastSectionsDependencies.format||t.locale!==M.lastSectionsDependencies.locale){const pe=$(S);MT(pe,a),j(J=>ee({},J,{lastSectionsDependencies:{format:p,isRtl:r,locale:t.locale},sections:pe,tempValueStrAndroid:null,characterQuery:null}))}M.characterQuery!=null&&!E&&F==null&&ue(null),M.characterQuery!=null&&((de=M.sections[M.characterQuery.sectionIndex])==null?void 0:de.type)!==M.characterQuery.sectionType&&ue(null),I.useEffect(()=>{A.current!=null&&(A.current=null)});const ye=wr();return I.useEffect(()=>(M.characterQuery!=null&&ye.start(P0e,()=>ue(null)),()=>{}),[M.characterQuery,ue,ye]),I.useEffect(()=>{M.tempValueStrAndroid!=null&&F!=null&&G()},[M.sections]),{activeSectionIndex:F,areAllSectionsEmpty:V,error:E,localizedDigits:_,parsedSelectedSections:H,sectionOrder:R,sectionsValueBoundaries:T,state:M,timezone:C,value:S,clearValue:Y,clearActiveSection:G,setCharacterQuery:ue,setSelectedSections:K,setTempAndroidValueStr:ce,updateSectionValue:Z,updateValueFromValueStr:X,getSectionsFromValue:$}};function F$(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:r}=e,i=Xv(),a=v$(),s=Et(n.unstableFieldRef,r?null:a==null?void 0:a.fieldRef),l=i==null?void 0:i.setValue,c=I.useCallback((d,f)=>l==null?void 0:l(d,{validationError:f.validationError,shouldClose:!1}),[l]),u=I.useMemo(()=>a!=null&&i!=null?ee({value:i.value,onChange:c,timezone:i.timezone,disabled:i.disabled,readOnly:i.readOnly,autoFocus:i.autoFocus&&!i.open,focused:i.open?!0:void 0,format:i.fieldFormat,formatDensity:a.formatDensity,enableAccessibleFieldDOMStructure:a.enableAccessibleFieldDOMStructure,selectedSections:a.selectedSections,onSelectedSectionsChange:a.onSelectedSectionsChange,unstableFieldRef:s},n):n,[i,a,n,c,s]);return t(u)}function c0(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:r,state:i}}=e;if(!n.isReady())return;const a=pn(n.getRoot()).getSelection();if(!a)return;if(r==null){a.rangeCount>0&&a.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(a.getRangeAt(0).startContainer)&&a.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(Yn(n.getRoot())))return;const s=new window.Range;let l;r==="all"?l=n.getRoot():i.sections[r].type==="empty"?l=n.getSectionContainer(r):l=n.getSectionContent(r),s.selectNodeContents(l),l.focus(),a.removeAllRanges(),a.addRange(s)}function B$(e){const t=ft(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:r,disabled:i,readOnly:a},stateResponse:{state:s,value:l,activeSectionIndex:c,parsedSelectedSections:u,sectionsValueBoundaries:d,localizedDigits:f,timezone:h,sectionOrder:p,clearValue:b,clearActiveSection:m,setSelectedSections:y,updateSectionValue:g}}=e;return Ae(v=>{if(!i)switch(!0){case((v.ctrlKey||v.metaKey)&&String.fromCharCode(v.keyCode)==="A"&&!v.shiftKey&&!v.altKey):{v.preventDefault(),y("all");break}case v.key==="ArrowRight":{if(v.preventDefault(),u==null)y(p.startIndex);else if(u==="all")y(p.endIndex);else{const x=p.neighbors[u].rightIndex;x!==null&&y(x)}break}case v.key==="ArrowLeft":{if(v.preventDefault(),u==null)y(p.endIndex);else if(u==="all")y(p.startIndex);else{const x=p.neighbors[u].leftIndex;x!==null&&y(x)}break}case v.key==="Delete":{if(v.preventDefault(),a)break;u==null||u==="all"?b():m();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(v.key):{if(v.preventDefault(),a||c==null)break;u==="all"&&y(c);const x=s.sections[c],w=k0e(t,h,x,v.key,d,f,n.getDateFromSection(l,x),{minutesStep:r});g({section:x,newSectionValue:w,shouldGoToNextSection:!1});break}}})}function _0e(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function k0e(e,t,n,r,i,a,s,l){const c=_0e(r),u=r==="Home",d=r==="End",f=n.value===""||u||d,h=()=>{const b=i[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),m=v=>g$(e,v,b,a,n),y=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let g;if(f){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?g=b.minimum:g=b.maximum}else g=parseInt(aa(n.value,a),10)+c*y;return g%y!==0&&((c<0||u)&&(g+=y-(y+g)%y),(c>0||d)&&(g-=g%y)),g>b.maximum?m(b.minimum+(g-b.maximum-1)%(b.maximum-b.minimum+1)):g<b.minimum?m(b.maximum-(b.minimum-g-1)%(b.maximum-b.minimum+1)):m(g)},p=()=>{const b=y$(e,t,n.type,n.format);if(b.length===0)return n.value;if(f)return c>0||u?b[0]:b[b.length-1];const g=((b.indexOf(n.value)+c)%b.length+b.length)%b.length;return b[g]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():p()}function D0e(e){const{manager:t,focused:n,setFocused:r,domGetters:i,stateResponse:a,applyCharacterEditing:s,internalPropsWithDefaults:l,stateResponse:{parsedSelectedSections:c,sectionOrder:u,state:d,clearValue:f,setCharacterQuery:h,setSelectedSections:p,updateValueFromValueStr:b},internalPropsWithDefaults:{disabled:m=!1,readOnly:y=!1}}=e,g=B$({manager:t,internalPropsWithDefaults:l,stateResponse:a}),v=wr(),x=Ae(P=>{m||!i.isReady()||(r(!0),c==="all"?v.start(0,()=>{const k=document.getSelection().getRangeAt(0).startOffset;if(k===0){p(u.startIndex);return}let E=0,_=0;for(;_<k&&E<d.sections.length;){const T=d.sections[E];E+=1,_+=`${T.startSeparator}${T.value||T.placeholder}${T.endSeparator}`.length}p(E-1)}):n?i.getRoot().contains(P.target)||p(u.startIndex):(r(!0),p(u.startIndex)))}),w=Ae(P=>{if(!i.isReady()||c!=="all")return;const E=P.target.textContent??"";i.getRoot().innerHTML=d.sections.map(_=>`${_.startSeparator}${_.value||_.placeholder}${_.endSeparator}`).join(""),c0({focused:n,domGetters:i,stateResponse:a}),E.length===0||E.charCodeAt(0)===10?(f(),p("all")):E.length>1?b(E):(c==="all"&&p(0),s({keyPressed:E,sectionIndex:0}))}),S=Ae(P=>{if(y||c!=="all"){P.preventDefault();return}const k=P.clipboardData.getData("text");P.preventDefault(),h(null),b(k)}),O=Ae(()=>{if(n||m||!i.isReady())return;const P=Yn(i.getRoot());r(!0),i.getSectionIndexFromDOMElement(P)!=null||p(u.startIndex)}),C=Ae(()=>{setTimeout(()=>{if(!i.isReady())return;const P=Yn(i.getRoot());!i.getRoot().contains(P)&&(r(!1),p(null))})});return{onKeyDown:g,onBlur:C,onFocus:O,onClick:x,onPaste:S,onInput:w,contentEditable:c==="all",tabIndex:c===0?-1:0}}function $0e(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:r,updateValueFromValueStr:i}}=e,a=Ae(l=>{i(l.target.value)});return{value:I.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(r.sections),[n,r.sections,t]),onChange:a}}function R0e(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,r=I.useCallback(i=>a=>{n||a.isDefaultPrevented()||t(i)},[n,t]);return I.useCallback(i=>({"data-sectionindex":i,onClick:r(i)}),[r])}function M0e(e){const t=ft(),n=Vn(),{focused:r,domGetters:i,stateResponse:a,applyCharacterEditing:s,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:d,value:f,clearActiveSection:h,setCharacterQuery:p,setSelectedSections:b,updateSectionValue:m,updateValueFromValueStr:y},internalPropsWithDefaults:{disabled:g=!1,readOnly:v=!1}}=e,x=c==="all",w=!x&&!g&&!v,S=Ae(_=>{if(!i.isReady())return;const T=d.sections[_];i.getSectionContent(_).innerHTML=T.value||T.placeholder,c0({focused:r,domGetters:i,stateResponse:a})}),O=Ae(_=>{if(!i.isReady())return;const T=_.target,$=T.textContent??"",M=i.getSectionIndexFromDOMElement(T),j=d.sections[M];if(v){S(M);return}if($.length===0){if(j.value===""){S(M);return}const W=_.nativeEvent.inputType;if(W==="insertParagraph"||W==="insertLineBreak"){S(M);return}S(M),h();return}s({keyPressed:$,sectionIndex:M}),S(M)}),C=Ae(_=>{_.preventDefault()}),P=Ae(_=>{if(_.preventDefault(),v||g||typeof c!="number")return;const T=d.sections[c],$=_.clipboardData.getData("text"),M=/^[a-zA-Z]+$/.test($),j=/^[0-9]+$/.test($),W=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test($);T.contentType==="letter"&&M||T.contentType==="digit"&&j||T.contentType==="digit-with-letter"&&W?(p(null),m({section:T,newSectionValue:$,shouldGoToNextSection:!0})):!M&&!j&&(p(null),y($))}),k=Ae(_=>{_.preventDefault(),_.dataTransfer.dropEffect="none"}),E=I.useCallback(_=>()=>{g||b(_)},[g,b]);return I.useCallback((_,T)=>{const $=u[_.type]({currentDate:l.getDateFromSection(f,_),contentType:_.contentType,format:_.format});return{onInput:O,onPaste:P,onMouseUp:C,onDragOver:k,onFocus:E(T),"aria-readonly":v,"aria-valuenow":N0e(_,t),"aria-valuemin":$.minimum,"aria-valuemax":$.maximum,"aria-valuetext":_.value?I0e(_,t):n.empty,"aria-label":n[_.type],"aria-disabled":g,tabIndex:x||T>0?-1:0,contentEditable:!x&&!g&&!v,role:"spinbutton","data-range-position":_.dateName||void 0,spellCheck:w?!1:void 0,autoCapitalize:w?"off":void 0,autoCorrect:w?"off":void 0,children:_.value||_.placeholder,inputMode:_.contentType==="letter"?"text":"numeric"}},[u,x,g,v,w,n,t,O,P,C,k,E,l,f])}function I0e(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit"){const r=t.setMonth(t.date(),Number(e.value)-1);return t.isValid(r)?t.format(r,"month"):""}const n=t.parse(e.value,e.format);return n&&t.isValid(n)?t.format(n,"month"):void 0}case"day":if(e.contentType==="digit"){const n=t.setDate(t.startOfYear(t.date()),Number(e.value));return t.isValid(n)?t.format(n,"dayOfMonthFull"):""}return e.value;case"weekDay":return;default:return}}function N0e(e,t){if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}}const A0e=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:r,manager:{valueType:i,internal_useOpenPickerButtonAriaLabel:a}}=e,{internalProps:s,forwardedProps:l}=h$(t,i),c=F$({manager:n,internalProps:s,skipContextFieldRefAssignment:r}),{sectionListRef:u,onBlur:d,onClick:f,onFocus:h,onInput:p,onPaste:b,onKeyDown:m,onClear:y,clearable:g}=l,{disabled:v=!1,readOnly:x=!1,autoFocus:w=!1,focused:S,unstableFieldRef:O}=c,C=I.useRef(null),P=Et(u,C),k=I.useMemo(()=>({isReady:()=>C.current!=null,getRoot:()=>C.current.getRoot(),getSectionContainer:de=>C.current.getSectionContainer(de),getSectionContent:de=>C.current.getSectionContent(de),getSectionIndexFromDOMElement:de=>C.current.getSectionIndexFromDOMElement(de)}),[C]),E=L$({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:_,error:T,parsedSelectedSections:$,sectionOrder:M,state:j,value:W,clearValue:U,setSelectedSections:K}=E,H=A$({stateResponse:E}),F=a(W),[R,V]=I.useState(!1);function z(de=0){if(v||!C.current||zT(C)!=null)return;const pe=Ey(de,j.sections);V(!0),C.current.getSectionContent(pe).focus()}const L=D0e({manager:n,internalPropsWithDefaults:c,stateResponse:E,applyCharacterEditing:H,focused:R,setFocused:V,domGetters:k}),A=$0e({manager:n,stateResponse:E}),N=R0e({stateResponse:E,internalPropsWithDefaults:c}),q=M0e({manager:n,stateResponse:E,applyCharacterEditing:H,internalPropsWithDefaults:c,domGetters:k,focused:R}),Y=Ae(de=>{m==null||m(de),L.onKeyDown(de)}),G=Ae(de=>{d==null||d(de),L.onBlur(de)}),X=Ae(de=>{h==null||h(de),L.onFocus(de)}),Q=Ae(de=>{de.isDefaultPrevented()||(f==null||f(de),L.onClick(de))}),Z=Ae(de=>{b==null||b(de),L.onPaste(de)}),ce=Ae(de=>{p==null||p(de),L.onInput(de)}),ue=Ae((de,...pe)=>{de.preventDefault(),y==null||y(de,...pe),U(),WT(C)?K(M.startIndex):z(0)}),ye=I.useMemo(()=>j.sections.map((de,pe)=>{const J=q(de,pe);return{container:N(pe),content:q(de,pe),before:{children:de.startSeparator},after:{children:de.endSeparator,"data-range-position":de.isEndFormatSeparator?J["data-range-position"]:void 0}}}),[j.sections,N,q]);return I.useEffect(()=>{if(C.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
`));w&&!v&&C.current&&C.current.getSectionContent(M.startIndex).focus()},[]),Jt(()=>{if(!(!R||!C.current)){if($==="all")C.current.getRoot().focus();else if(typeof $=="number"){const de=C.current.getSectionContent($);de&&de.focus()}}},[$,R]),Jt(()=>{c0({focused:R,domGetters:k,stateResponse:E})}),I.useImperativeHandle(O,()=>({getSections:()=>j.sections,getActiveSectionIndex:()=>zT(C),setSelectedSections:de=>{if(v||!C.current)return;const pe=Ey(de,j.sections);V((pe==="all"?0:pe)!==null),K(de)},focusField:z,isFieldFocused:()=>WT(C)})),ee({},l,L,{onBlur:G,onClick:Q,onFocus:X,onInput:ce,onPaste:Z,onKeyDown:Y,onClear:ue},A,{error:T,clearable:!!(g&&!_&&!x&&!v),focused:S??R,sectionListRef:P,enableAccessibleFieldDOMStructure:!0,elements:ye,areAllSectionsEmpty:_,disabled:v,readOnly:x,autoFocus:w,openPickerAriaLabel:F})};function zT(e){var n;const t=Yn((n=e.current)==null?void 0:n.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function WT(e){var n;const t=Yn((n=e.current)==null?void 0:n.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const Ua=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),j0e=(e,t,n)=>{let r=0,i=n?1:0;const a=[];for(let s=0;s<e.length;s+=1){const l=e[s],c=Kv(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${c}${l.endSeparator}`,d=Ua(u).length,f=u.length,h=Ua(c),p=i+(h===""?0:c.indexOf(h[0]))+l.startSeparator.length,b=p+h.length;a.push(ee({},l,{start:r,end:r+d,startInInput:p,endInInput:b})),r+=d,i+=f}return a},L0e=e=>{const t=Xn(),n=wr(),r=wr(),{props:i,manager:a,skipContextFieldRefAssignment:s,manager:{valueType:l,internal_valueManager:c,internal_fieldValueManager:u,internal_useOpenPickerButtonAriaLabel:d}}=e,{internalProps:f,forwardedProps:h}=h$(i,l),p=F$({manager:a,internalProps:f,skipContextFieldRefAssignment:s}),{onFocus:b,onClick:m,onPaste:y,onBlur:g,onKeyDown:v,onClear:x,clearable:w,inputRef:S,placeholder:O}=h,{readOnly:C=!1,disabled:P=!1,autoFocus:k=!1,focused:E,unstableFieldRef:_}=p,T=I.useRef(null),$=Et(S,T),M=L$({manager:a,internalPropsWithDefaults:p,forwardedProps:h}),{activeSectionIndex:j,areAllSectionsEmpty:W,error:U,localizedDigits:K,parsedSelectedSections:H,sectionOrder:F,state:R,value:V,clearValue:z,clearActiveSection:L,setCharacterQuery:A,setSelectedSections:N,setTempAndroidValueStr:q,updateSectionValue:Y,updateValueFromValueStr:G,getSectionsFromValue:X}=M,Q=A$({stateResponse:M}),Z=d(V),ce=I.useMemo(()=>j0e(R.sections,K,t),[R.sections,K,t]);function ue(){const Ie=T.current.selectionStart??0;let he;Ie<=ce[0].startInInput||Ie>=ce[ce.length-1].endInInput?he=1:he=ce.findIndex(Be=>Be.startInInput-Be.startSeparator.length>Ie);const me=he===-1?ce.length-1:he-1;N(me)}function ye(Ie=0){var he;Yn(T.current)!==T.current&&((he=T.current)==null||he.focus(),N(Ie))}const de=Ae(Ie=>{b==null||b(Ie);const he=T.current;n.start(0,()=>{!he||he!==T.current||j==null&&(he.value.length&&Number(he.selectionEnd)-Number(he.selectionStart)===he.value.length?N("all"):ue())})}),pe=Ae((Ie,...he)=>{Ie.isDefaultPrevented()||(m==null||m(Ie,...he),ue())}),J=Ae(Ie=>{if(y==null||y(Ie),Ie.preventDefault(),C||P)return;const he=Ie.clipboardData.getData("text");if(typeof H=="number"){const me=R.sections[H],Be=/^[a-zA-Z]+$/.test(he),Ue=/^[0-9]+$/.test(he),We=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(he);if(me.contentType==="letter"&&Be||me.contentType==="digit"&&Ue||me.contentType==="digit-with-letter"&&We){A(null),Y({section:me,newSectionValue:he,shouldGoToNextSection:!0});return}if(Be||Ue)return}A(null),G(he)}),oe=Ae(Ie=>{g==null||g(Ie),N(null)}),te=Ae(Ie=>{if(C)return;const he=Ie.target.value;if(he===""){z();return}const me=Ie.nativeEvent.data,Be=me&&me.length>1,Ue=Be?me:he,We=Ua(Ue);if(H==="all"&&N(j),j==null||Be){G(Be?me:We);return}let lt;if(H==="all"&&We.length===1)lt=We;else{const kt=Ua(u.getV6InputValueFromSections(ce,K,t));let et=-1,ht=-1;for(let Oe=0;Oe<kt.length;Oe+=1)et===-1&&kt[Oe]!==We[Oe]&&(et=Oe),ht===-1&&kt[kt.length-Oe-1]!==We[We.length-Oe-1]&&(ht=Oe);const Tt=ce[j];if(et<Tt.start||kt.length-ht-1>Tt.end)return;const Ce=We.length-kt.length+Tt.end-Ua(Tt.endSeparator||"").length;lt=We.slice(Tt.start+Ua(Tt.startSeparator||"").length,Ce)}if(lt.length===0){Hbe()&&q(Ue),L();return}Q({keyPressed:lt,sectionIndex:j})}),le=Ae((Ie,...he)=>{Ie.preventDefault(),x==null||x(Ie,...he),z(),UT(T)?N(F.startIndex):ye(0)}),re=B$({manager:a,internalPropsWithDefaults:p,stateResponse:M}),Ee=Ae(Ie=>{v==null||v(Ie),re(Ie)}),Pe=I.useMemo(()=>O!==void 0?O:u.getV6InputValueFromSections(X(c.emptyValue),K,t),[O,u,X,c.emptyValue,K,t]),fe=I.useMemo(()=>R.tempValueStrAndroid??u.getV6InputValueFromSections(R.sections,K,t),[R.sections,u,R.tempValueStrAndroid,K,t]);I.useEffect(()=>{T.current&&T.current===Yn(T.current)&&N("all")},[]),Jt(()=>{function Ie(){if(!T.current)return;if(H==null){T.current.scrollLeft&&(T.current.scrollLeft=0);return}if(T.current!==Yn(T.current))return;const he=T.current.scrollTop;if(H==="all")T.current.select();else{const me=ce[H],Be=me.type==="empty"?me.startInInput-me.startSeparator.length:me.startInInput,Ue=me.type==="empty"?me.endInInput+me.endSeparator.length:me.endInInput;(Be!==T.current.selectionStart||Ue!==T.current.selectionEnd)&&T.current===Yn(T.current)&&T.current.setSelectionRange(Be,Ue),r.start(0,()=>{T.current&&T.current===Yn(T.current)&&T.current.selectionStart===T.current.selectionEnd&&(T.current.selectionStart!==Be||T.current.selectionEnd!==Ue)&&Ie()})}T.current.scrollTop=he}Ie()});const ge=I.useMemo(()=>j==null||R.sections[j].contentType==="letter"?"text":"numeric",[j,R.sections]),Me=!(T.current&&T.current===Yn(T.current))&&W;return I.useImperativeHandle(_,()=>({getSections:()=>R.sections,getActiveSectionIndex:()=>{const Ie=T.current.selectionStart??0,he=T.current.selectionEnd??0;if(Ie===0&&he===0)return null;const me=Ie<=ce[0].startInInput?1:ce.findIndex(Be=>Be.startInInput-Be.startSeparator.length>Ie);return me===-1?ce.length-1:me-1},setSelectedSections:Ie=>N(Ie),focusField:ye,isFieldFocused:()=>UT(T)})),ee({},h,{error:U,clearable:!!(w&&!W&&!C&&!P),onBlur:oe,onClick:pe,onFocus:de,onPaste:J,onKeyDown:Ee,onClear:le,inputRef:$,enableAccessibleFieldDOMStructure:!1,placeholder:Pe,inputMode:ge,autoComplete:"off",value:Me?"":fe,onChange:te,focused:E,disabled:P,readOnly:C,autoFocus:k,openPickerAriaLabel:Z})};function UT(e){return e.current===Yn(e.current)}const u0=e=>{const t=v$();return(e.props.enableAccessibleFieldDOMStructure??(t==null?void 0:t.enableAccessibleFieldDOMStructure)??!0?A0e:L0e)(e)};function F0e(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return I.useMemo(()=>({valueType:"date",validator:Js,internal_valueManager:bn,internal_fieldValueManager:n0,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:V0e,internal_useOpenPickerButtonAriaLabel:B0e}),[t])}function B0e(e){const t=ft(),n=Vn();return I.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function V0e(e){const t=ft(),n=du(e);return I.useMemo(()=>ee({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function du(e){const t=ft(),n=x$();return I.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:sf(t,e.minDate,n.minDate),maxDate:sf(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function z0e(e={}){const{enableAccessibleFieldDOMStructure:t=!0,ampm:n}=e;return I.useMemo(()=>({valueType:"time",validator:uu,internal_valueManager:bn,internal_fieldValueManager:n0,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:U0e,internal_useOpenPickerButtonAriaLabel:W0e(n)}),[n,t])}function W0e(e){return function(n){const r=ft(),i=Vn();return I.useMemo(()=>{const a=e??r.is12HourCycleInCurrentLocale()?"fullTime12h":"fullTime24h",s=r.isValid(n)?r.format(n,a):null;return i.openTimePickerDialogue(s)},[n,i,r])}}function U0e(e){const t=ft(),n=V$(e),r=I.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return I.useMemo(()=>ee({},e,n,{format:e.format??(r?t.formats.fullTime12h:t.formats.fullTime24h)}),[e,n,r,t])}function V$(e){return I.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1}),[e.disablePast,e.disableFuture])}function q0e(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return I.useMemo(()=>({valueType:"date-time",validator:zp,internal_valueManager:bn,internal_fieldValueManager:n0,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:Y0e,internal_useOpenPickerButtonAriaLabel:H0e}),[t])}function H0e(e){const t=ft(),n=Vn();return I.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function Y0e(e){const t=ft(),n=z$(e),r=I.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return I.useMemo(()=>ee({},e,n,{format:e.format??(r?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h)}),[e,n,r,t])}function z$(e){const t=ft(),n=x$();return I.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,disableIgnoringDatePartForTimeValidation:!!e.minDateTime||!!e.maxDateTime||!!e.disableFuture||!!e.disablePast,minDate:sf(t,e.minDateTime??e.minDate,n.minDate),maxDate:sf(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime}),[e.minDateTime,e.maxDateTime,e.minTime,e.maxTime,e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}const G0e=e=>{const t=F0e(e);return u0({manager:t,props:e})};function d0(e){const{ownerState:t}=sn(),n=Xn();return I.useMemo(()=>ee({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}function K0e(e){return ke("MuiPickersTextField",e)}$e("MuiPickersTextField",["root","focused","disabled","error","required"]);function X0e(e){return ke("MuiPickersInputBase",e)}const Ja=$e("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function Z0e(e){return ke("MuiPickersSectionList",e)}const gl=$e("MuiPickersSectionList",["root","section","sectionContent"]),Q0e=["slots","slotProps","elements","sectionListRef","classes"],W$=ne("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),U$=ne("span",{name:"MuiPickersSectionList",slot:"Section"})({}),q$=ne("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),H$=ne("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),J0e=e=>_e({root:["root"],section:["section"],sectionContent:["sectionContent"]},Z0e,e);function Y$(e){const{slots:t,slotProps:n,element:r,classes:i}=e,{ownerState:a}=sn(),s=(t==null?void 0:t.section)??U$,l=dt({elementType:s,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:i.section,ownerState:a}),c=(t==null?void 0:t.sectionContent)??H$,u=dt({elementType:c,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:i.sectionContent,ownerState:a}),d=(t==null?void 0:t.sectionSeparator)??q$,f=dt({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:ee({},a,{separatorPosition:"before"})}),h=dt({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:ee({},a,{separatorPosition:"after"})});return D.jsxs(s,ee({},l,{children:[D.jsx(d,ee({},f)),D.jsx(c,ee({},u)),D.jsx(d,ee({},h))]}))}process.env.NODE_ENV!=="production"&&(Y$.propTypes={classes:o.object.isRequired,element:o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired}).isRequired,slotProps:o.object,slots:o.object});const f0=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersSectionList"}),{slots:i,slotProps:a,elements:s,sectionListRef:l,classes:c}=r,u=Je(r,Q0e),d=J0e(c),{ownerState:f}=sn(),h=I.useRef(null),p=Et(n,h),b=g=>{if(!h.current)throw new Error(`MUI X: Cannot call sectionListRef.${g} before the mount of the component.`);return h.current};I.useImperativeHandle(l,()=>({getRoot(){return b("getRoot")},getSectionContainer(g){return b("getSectionContainer").querySelector(`.${gl.section}[data-sectionindex="${g}"]`)},getSectionContent(g){return b("getSectionContent").querySelector(`.${gl.section}[data-sectionindex="${g}"] .${gl.sectionContent}`)},getSectionIndexFromDOMElement(g){const v=b("getSectionIndexFromDOMElement");if(g==null||!v.contains(g))return null;let x=null;return g.classList.contains(gl.section)?x=g:g.classList.contains(gl.sectionContent)&&(x=g.parentElement),x==null?null:Number(x.dataset.sectionindex)}}));const m=(i==null?void 0:i.root)??W$,y=dt({elementType:m,externalSlotProps:a==null?void 0:a.root,externalForwardedProps:u,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:d.root,ownerState:f});return D.jsx(m,ee({},y,{children:y.contentEditable?s.map(({content:g,before:v,after:x})=>`${v.children}${g.children}${x.children}`).join(""):D.jsx(I.Fragment,{children:s.map((g,v)=>D.jsx(Y$,{slots:i,slotProps:a,element:g,classes:d},v))})}))});process.env.NODE_ENV!=="production"&&(f0.displayName="PickersSectionList");process.env.NODE_ENV!=="production"&&(f0.propTypes={classes:o.object,contentEditable:o.bool.isRequired,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object});const p0=I.createContext(null);process.env.NODE_ENV!=="production"&&(p0.displayName="PickerTextFieldOwnerStateContext");const Wp=()=>{const e=I.useContext(p0);if(e==null)throw new Error(["MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component"].join(`
`));return e},e1e=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],t1e=e=>Math.round(e*1e5)/1e5,Up=ne("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>ee({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${t1e(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),h0=ne(W$,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!0,isLabelShrunk:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),n1e=ne(U$,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),r1e=ne(H$,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),o1e=ne(q$,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),i1e=ne("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(ee({},tP)),a1e=ne("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),s1e=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldReadOnly:i,hasFieldError:a,inputSize:s,isInputInFullWidth:l,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,f={root:["root",n&&!r&&"focused",r&&"disabled",i&&"readOnly",a&&"error",l&&"fullWidth",`color${ve(c)}`,s==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return _e(f,X0e,e)};function qT(e,t,n,r){var i;if(e.content.id){const a=(i=t.current)==null?void 0:i.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${r}"]`);if(a)return Array.from(a).reduce((s,l)=>s+l.offsetWidth,0)}return 0}function l1e(e,t){var i,a,s,l,c;let n=0;if(((i=t.current)==null?void 0:i.getAttribute("data-active-range-position"))==="end")for(let u=e.length-1;u>=e.length/2;u-=1)n+=qT(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=qT(e[u],t,u,"start");return{activeBarWidth:n,sectionOffsets:[((s=(a=t.current)==null?void 0:a.querySelector('[data-sectionindex="0"]'))==null?void 0:s.offsetLeft)||0,((c=(l=t.current)==null?void 0:l.querySelector(`[data-sectionindex="${e.length/2}"]`))==null?void 0:c.offsetLeft)||0]}}const fu=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersInputBase"}),{elements:i,areAllSectionsEmpty:a,value:s,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:f,slots:h,slotProps:p,contentEditable:b,tabIndex:m,onInput:y,onPaste:g,onKeyDown:v,name:x,readOnly:w,inputProps:S,inputRef:O,sectionListRef:C,onFocus:P,onBlur:k,classes:E,ownerState:_}=r,T=Je(r,e1e),$=Wp(),M=I.useRef(null),j=I.useRef(null),W=I.useRef([]),U=Et(n,M),K=Et(S==null?void 0:S.ref,O),H=kr();if(!H)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const F=_??$,R=X=>{var Q;(Q=H.onFocus)==null||Q.call(H,X),P==null||P(X)},V=X=>{R(X)},z=X=>{var Q,Z;if(v==null||v(X),X.key==="Enter"&&!X.defaultMuiPrevented){if((Q=M.current)!=null&&Q.dataset.multiInput)return;const ce=(Z=M.current)==null?void 0:Z.closest("form"),ue=ce==null?void 0:ce.querySelector('[type="submit"]');if(!ce||!ue)return;X.preventDefault(),ce.requestSubmit(ue)}},L=X=>{var Q;(Q=H.onBlur)==null||Q.call(H,X),k==null||k(X)};I.useEffect(()=>{H&&H.setAdornedStart(!!d)},[H,d]),I.useEffect(()=>{H&&(a?H.onEmpty():H.onFilled())},[H,a]);const A=s1e(E,F),N=(h==null?void 0:h.root)||Up,q=dt({elementType:N,externalSlotProps:p==null?void 0:p.root,externalForwardedProps:T,additionalProps:{"aria-invalid":H.error,ref:U},className:A.root,ownerState:F}),Y=(h==null?void 0:h.input)||h0,G=i.some(X=>X.content["data-range-position"]!==void 0);return I.useEffect(()=>{if(!G||!F.isPickerOpen)return;const{activeBarWidth:X,sectionOffsets:Q}=l1e(i,M);W.current=[Q[0],Q[1]],j.current&&(j.current.style.width=`${X}px`)},[i,G,F.isPickerOpen]),D.jsxs(N,ee({},q,{children:[d,D.jsx(f0,{sectionListRef:C,elements:i,contentEditable:b,tabIndex:m,className:A.sectionsContainer,onFocus:R,onBlur:L,onInput:y,onPaste:g,onKeyDown:z,slots:{root:Y,section:n1e,sectionContent:r1e,sectionSeparator:o1e},slotProps:{root:ee({},p==null?void 0:p.input,{ownerState:F}),sectionContent:{className:Ja.sectionContent},sectionSeparator:({separatorPosition:X})=>({className:X==="before"?Ja.sectionBefore:Ja.sectionAfter})}}),u,f?f(ee({},H)):null,D.jsx(i1e,ee({name:x,className:A.input,value:s,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:w,required:H.required,disabled:H.disabled,onFocus:V},S,{ref:K})),G&&D.jsx(a1e,{className:A.activeBar,ref:j,ownerState:{sectionOffsets:W.current}})]}))});process.env.NODE_ENV!=="production"&&(fu.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(fu.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,id:o.string,inputProps:o.object,inputRef:Nt,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired});function c1e(e){return ke("MuiPickersOutlinedInput",e)}const Qr=ee({},Ja,$e("MuiPickersOutlinedInput",["root","notchedOutline","input"])),u1e=["children","className","label","notched","shrink"],d1e=ne("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{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%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),HT=ne("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),f1e=ne("legend",{shouldForwardProp:e=>ar(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function p1e(e){const{className:t,label:n,notched:r}=e,i=Je(e,u1e),a=Wp();return D.jsx(d1e,ee({"aria-hidden":!0,className:t},i,{ownerState:a,children:D.jsx(f1e,{ownerState:a,notched:r,children:n?D.jsx(HT,{children:n}):D.jsx(HT,{className:"notranslate",children:"​"})})}))}const h1e=["label","autoFocus","ownerState","classes","notched"],m1e=ne(Up,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Qr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Qr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Qr.focused} .${Qr.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Qr.disabled}`]:{[`& .${Qr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${Qr.error} .${Qr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var r;return((r=(e.vars??e).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${Qr.focused}:not(.${Qr.error}) .${Qr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),y1e=ne(h0,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),g1e=e=>{const n=_e({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},c1e,e);return ee({},e,n)},qp=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersOutlinedInput"}),{label:i,classes:a,notched:s}=r,l=Je(r,h1e),c=kr(),u=g1e(a);return D.jsx(fu,ee({slots:{root:m1e,input:y1e},renderSuffix:d=>D.jsx(p1e,{shrink:!!(s||d.adornedStart||d.focused||d.filled),notched:!!(s||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:i!=null&&i!==""&&(c!=null&&c.required)?D.jsxs(I.Fragment,{children:[i," ","*"]}):i})},l,{label:i,classes:u,ref:n}))});process.env.NODE_ENV!=="production"&&(qp.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(qp.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,id:o.string,inputProps:o.object,inputRef:Nt,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,notched:o.bool,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired});qp.muiName="Input";function b1e(e){return ke("MuiPickersFilledInput",e)}const Ri=ee({},Ja,$e("MuiPickersFilledInput",["root","underline","input"])),v1e=["label","autoFocus","disableUnderline","hiddenLabel","classes"],w1e=ne(Up,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>ar(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:r}},[`&.${Ri.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ri.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[...Object.keys((e.vars??e).palette).filter(s=>(e.vars??e).palette[s].main).map(s=>{var l;return{props:{inputColor:s,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[s])==null?void 0:l.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{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"},[`&.${Ri.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ri.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})`:n}`,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(.${Ri.disabled}, .${Ri.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ri.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),x1e=ne(h0,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>ar(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),S1e=(e,t)=>{const{inputHasUnderline:n}=t,i=_e({root:["root",n&&"underline"],input:["input"]},b1e,e);return ee({},e,i)},Hp=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersFilledInput"}),{label:i,disableUnderline:a=!1,hiddenLabel:s=!1,classes:l}=r,c=Je(r,v1e),u=Wp(),d=ee({},u,{inputHasUnderline:!a}),f=S1e(l,d);return D.jsx(fu,ee({slots:{root:w1e,input:x1e},slotProps:{root:{disableUnderline:a},input:{hiddenLabel:s}}},c,{label:i,classes:f,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(Hp.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(Hp.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,disableUnderline:o.bool,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputProps:o.object,inputRef:Nt,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired});Hp.muiName="Input";function T1e(e){return ke("MuiPickersFilledInput",e)}const bl=ee({},Ja,$e("MuiPickersInput",["root","underline","input"])),O1e=["label","autoFocus","disableUnderline","ownerState","classes"],E1e=ne(Up,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>ar(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{inputColor:r,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",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"},[`&.${bl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bl.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${bl.disabled}, .${bl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${bl.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),C1e=(e,t)=>{const{inputHasUnderline:n}=t,i=_e({root:["root",!n&&"underline"],input:["input"]},T1e,e);return ee({},e,i)},Yp=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersInput"}),{label:i,disableUnderline:a=!1,classes:s}=r,l=Je(r,O1e),c=Wp(),u=ee({},c,{inputHasUnderline:!a}),d=C1e(s,u);return D.jsx(fu,ee({slots:{root:E1e},slotProps:{root:{disableUnderline:a}}},l,{ownerState:u,label:i,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(Yp.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(Yp.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,disableUnderline:o.bool,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,id:o.string,inputProps:o.object,inputRef:Nt,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired});Yp.muiName="Input";const P1e=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],_1e={standard:Yp,filled:Hp,outlined:qp},k1e=ne(Io,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),D1e=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldRequired:i}=t;return _e({root:["root",n&&!r&&"focused",r&&"disabled",i&&"required"]},K0e,e)},Gp=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersTextField"}),{onFocus:i,onBlur:a,className:s,classes:l,color:c="primary",disabled:u=!1,error:d=!1,variant:f="outlined",required:h=!1,hiddenLabel:p=!1,InputProps:b,inputProps:m,inputRef:y,sectionListRef:g,elements:v,areAllSectionsEmpty:x,onClick:w,onKeyDown:S,onKeyUp:O,onPaste:C,onInput:P,endAdornment:k,startAdornment:E,tabIndex:_,contentEditable:T,focused:$,value:M,onChange:j,fullWidth:W,id:U,name:K,helperText:H,FormHelperTextProps:F,label:R,InputLabelProps:V,"data-active-range-position":z}=r,L=Je(r,P1e),A=I.useRef(null),N=Et(n,A),q=Pr(U),Y=H&&q?`${q}-helper-text`:void 0,G=R&&q?`${q}-label`:void 0,X=d0({disabled:r.disabled,required:r.required,readOnly:b==null?void 0:b.readOnly}),Q=I.useMemo(()=>ee({},X,{isFieldValueEmpty:x,isFieldFocused:$??!1,hasFieldError:d??!1,inputSize:r.size??"medium",inputColor:c??"primary",isInputInFullWidth:W??!1,hasStartAdornment:!!(E??(b==null?void 0:b.startAdornment)),hasEndAdornment:!!(k??(b==null?void 0:b.endAdornment)),inputHasLabel:!!R,isLabelShrunk:!!(V!=null&&V.shrink)}),[X,x,$,d,r.size,c,W,E,k,b==null?void 0:b.startAdornment,b==null?void 0:b.endAdornment,R,V==null?void 0:V.shrink]),Z=D1e(l,Q),ce=_1e[f],ue={};return f==="outlined"?(V&&typeof V.shrink<"u"&&(ue.notched=V.shrink),ue.label=R):f==="filled"&&(ue.hiddenLabel=p),D.jsx(p0.Provider,{value:Q,children:D.jsxs(k1e,ee({className:we(Z.root,s),ref:N,focused:$,disabled:u,variant:f,error:d,color:c,fullWidth:W,required:h,ownerState:Q},L,{children:[R!=null&&R!==""&&D.jsx(Bc,ee({htmlFor:q,id:G},V,{children:R})),D.jsx(ce,ee({elements:v,areAllSectionsEmpty:x,onClick:w,onKeyDown:S,onKeyUp:O,onInput:P,onPaste:C,onFocus:i,onBlur:a,endAdornment:k,startAdornment:E,tabIndex:_,contentEditable:T,value:M,onChange:j,id:q,fullWidth:W,inputProps:m,inputRef:y,sectionListRef:g,label:R,name:K,role:"group","aria-labelledby":G,"aria-describedby":Y,"aria-live":Y?"polite":void 0,"data-active-range-position":z},ue,b)),H&&D.jsx(cn,ee({id:Y},F,{children:H}))]}))})});process.env.NODE_ENV!=="production"&&(Gp.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(Gp.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,contentEditable:o.bool.isRequired,disabled:o.bool.isRequired,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,error:o.bool.isRequired,focused:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Nt,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onBlur:o.func.isRequired,onChange:o.func.isRequired,onClick:o.func.isRequired,onFocus:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,readOnly:o.bool,required:o.bool,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),size:o.oneOf(["medium","small"]),startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired,variant:o.oneOf(["filled","outlined","standard"])});const $1e=["enableAccessibleFieldDOMStructure"],R1e=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],M1e=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],I1e=["ownerState"],N1e=["ownerState"],A1e=["ownerState"],j1e=["ownerState"],L1e=["InputProps","inputProps"],lm=()=>{},F1e=e=>{var v,x,w,S,O,C,P,k,E;let{enableAccessibleFieldDOMStructure:t}=e,n=Je(e,$1e);if(t){const{InputProps:_,readOnly:T,onClear:$,clearable:M,clearButtonPosition:j,openPickerButtonPosition:W,openPickerAriaLabel:U}=n,K=Je(n,R1e),H=Li>=6&&((v=K==null?void 0:K.slotProps)!=null&&v.input)?Gl((x=K==null?void 0:K.slotProps)==null?void 0:x.input,_):lm;return{clearable:M,onClear:$,clearButtonPosition:j,openPickerButtonPosition:W,openPickerAriaLabel:U,textFieldProps:ee({},K,Li>=6&&((w=K==null?void 0:K.slotProps)!=null&&w.input)?{slotProps:ee({},K==null?void 0:K.slotProps,{input:F=>ee({},Jn(H,F),{readOnly:T})})}:{InputProps:ee({},_??{},{readOnly:T})})}}const{onPaste:r,onKeyDown:i,inputMode:a,readOnly:s,InputProps:l,inputProps:c,inputRef:u,onClear:d,clearable:f,clearButtonPosition:h,openPickerButtonPosition:p,openPickerAriaLabel:b}=n,m=Je(n,M1e),y=Li>=6&&((S=m==null?void 0:m.slotProps)!=null&&S.input)?Gl((O=m==null?void 0:m.slotProps)==null?void 0:O.input,l):lm,g=Li>=6&&((C=m==null?void 0:m.slotProps)!=null&&C.htmlInput)?Gl((P=m==null?void 0:m.slotProps)==null?void 0:P.htmlInput,c):lm;return{clearable:f,onClear:d,clearButtonPosition:h,openPickerButtonPosition:p,openPickerAriaLabel:b,textFieldProps:ee({},m,Li>=6&&((k=m==null?void 0:m.slotProps)!=null&&k.input||(E=m==null?void 0:m.slotProps)!=null&&E.htmlInput)?{slotProps:ee({},m==null?void 0:m.slotProps,{input:_=>ee({},Jn(y,_),{readOnly:s}),htmlInput:_=>ee({},Jn(g,_),{inputMode:a,onPaste:r,onKeyDown:i,ref:u})})}:{InputProps:ee({},l??{},{readOnly:s}),inputProps:ee({},c??{},{inputMode:a,onPaste:r,onKeyDown:i,ref:u})})}},Kp=I.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(Kp.displayName="PickerFieldUIContext");function m0(e){var F,R,V;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,r=Vn(),i=Xv(),a=I.useContext(Kp),{textFieldProps:s,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:f="end"}=F1e(t),h=d0(s),p=Ae(z=>{z.preventDefault(),i==null||i.setOpen(L=>!L)}),b=i?i.triggerStatus:"hidden",m=c?d:null,y=b!=="hidden"?f:null,g=a.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?Do:Gp),v=a.slots.inputAdornment??$g,x=dt({elementType:v,externalSlotProps:a.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:ee({},h,{position:"start"})}),w=Je(x,I1e),S=dt({elementType:v,externalSlotProps:a.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:ee({},h,{position:"end"})}),O=Je(S,N1e),C=a.slots.openPickerButton??Pt,P=dt({elementType:C,externalSlotProps:a.slotProps.openPickerButton,additionalProps:{disabled:b==="disabled",onClick:p,"aria-label":u,edge:s.variant!=="standard"?y:!1},ownerState:h}),k=Je(P,A1e),E=a.slots.openPickerIcon??n,_=dt({elementType:E,externalSlotProps:a.slotProps.openPickerIcon,ownerState:h}),T=a.slots.clearButton??Pt,$=dt({elementType:T,externalSlotProps:a.slotProps.clearButton,className:"clearButton",additionalProps:{title:r.fieldClearLabel,tabIndex:-1,onClick:l,disabled:t.disabled||t.readOnly,edge:s.variant!=="standard"&&m!==y?m:!1},ownerState:h}),M=Je($,j1e),j=a.slots.clearIcon??lve,W=dt({elementType:j,externalSlotProps:a.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:h});s.ref=Et(s.ref,i==null?void 0:i.rootRef);const U={},K=Jn((Li>=6&&((F=s==null?void 0:s.slotProps)==null?void 0:F.input))??s.InputProps,h);i&&(U.ref=i.triggerRef),!(K!=null&&K.startAdornment)&&(m==="start"||y==="start")&&(U.startAdornment=D.jsxs(v,ee({},w,{children:[y==="start"&&D.jsx(C,ee({},k,{children:D.jsx(E,ee({},_))})),m==="start"&&D.jsx(T,ee({},M,{children:D.jsx(j,ee({},W))}))]}))),!(K!=null&&K.endAdornment)&&(m==="end"||y==="end")&&(U.endAdornment=D.jsxs(v,ee({},O,{children:[m==="end"&&D.jsx(T,ee({},M,{children:D.jsx(j,ee({},W))})),y==="end"&&D.jsx(C,ee({},k,{children:D.jsx(E,ee({},_))}))]}))),!(U!=null&&U.endAdornment)&&!(U!=null&&U.startAdornment)&&a.slots.inputAdornment&&(U.endAdornment=D.jsx(v,ee({},O))),m!=null&&(s.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(s.sx)?s.sx:[s.sx]]);const H=Li>=6&&((R=s==null?void 0:s.slotProps)!=null&&R.input)?Jn(Gl(K,U),h):ee({},K,U);return(V=s==null?void 0:s.slotProps)==null||delete V.input,t.enableAccessibleFieldDOMStructure&&(s==null||delete s.slotProps),D.jsx(g,ee({},s,{InputProps:H}))}function Gl(e,t){return e?t?n=>ee({},Jn(t,n),Jn(e,n)):e:t}function y0(e){const{ref:t,externalForwardedProps:n,slotProps:r}=e,i=I.useContext(Kp),a=Xv(),s=d0(n),{InputProps:l,inputProps:c}=n,u=Je(n,L1e),d=dt({elementType:Gp,externalSlotProps:Gl(i.slotProps.textField,r==null?void 0:r.textField),externalForwardedProps:u,additionalProps:{ref:t,sx:a==null?void 0:a.rootSx,label:a==null?void 0:a.label,name:a==null?void 0:a.name,className:a==null?void 0:a.rootClassName,inputRef:i.inputRef},ownerState:s});return d.inputProps=ee({},c,d.inputProps),d.InputProps=ee({},l,d.InputProps),d}function g0(e){const{slots:t={},slotProps:n={},inputRef:r,children:i}=e,a=I.useMemo(()=>({inputRef:r,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[r,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return D.jsx(Kp.Provider,{value:a,children:i})}const B1e=["slots","slotProps"],Xp=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiDateField"}),{slots:i,slotProps:a}=r,s=Je(r,B1e),l=y0({slotProps:a,ref:n,externalForwardedProps:s}),c=G0e(l);return D.jsx(g0,{slots:i,slotProps:a,inputRef:s.inputRef,children:D.jsx(m0,{fieldResponse:c,defaultOpenPickerIcon:S$})})});process.env.NODE_ENV!=="production"&&(Xp.displayName="DateField");process.env.NODE_ENV!=="production"&&(Xp.propTypes={autoFocus:o.bool,className:o.string,clearable:o.bool,clearButtonPosition:o.oneOf(["end","start"]),color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.bool,focused:o.bool,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Nt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxDate:o.object,minDate:o.object,name:o.string,onBlur:o.func,onChange:o.func,onClear:o.func,onError:o.func,onFocus:o.func,onSelectedSectionsChange:o.func,openPickerButtonPosition:o.oneOf(["end","start"]),readOnly:o.bool,referenceDate:o.object,required:o.bool,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,shouldRespectLeadingZeros:o.bool,size:o.oneOf(["medium","small"]),slotProps:o.object,slots:o.object,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,unstableFieldRef:o.oneOfType([o.func,o.object]),value:o.object,variant:o.oneOf(["filled","outlined","standard"])});const V1e=e=>{const t=z0e(e);return u0({manager:t,props:e})},z1e=["slots","slotProps","InputProps","inputProps"],Zp=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiTimeField"}),{slots:i,slotProps:a}=r,s=Je(r,z1e),l=y0({slotProps:a,ref:n,externalForwardedProps:s}),c=V1e(l);return D.jsx(g0,{slots:i,slotProps:a,inputRef:s.inputRef,children:D.jsx(m0,{fieldResponse:c,defaultOpenPickerIcon:ive})})});process.env.NODE_ENV!=="production"&&(Zp.displayName="TimeField");process.env.NODE_ENV!=="production"&&(Zp.propTypes={ampm:o.bool,autoFocus:o.bool,className:o.string,clearable:o.bool,clearButtonPosition:o.oneOf(["end","start"]),color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.bool,focused:o.bool,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Nt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxTime:o.object,minTime:o.object,minutesStep:o.number,name:o.string,onBlur:o.func,onChange:o.func,onClear:o.func,onError:o.func,onFocus:o.func,onSelectedSectionsChange:o.func,openPickerButtonPosition:o.oneOf(["end","start"]),readOnly:o.bool,referenceDate:o.object,required:o.bool,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableTime:o.func,shouldRespectLeadingZeros:o.bool,size:o.oneOf(["medium","small"]),slotProps:o.object,slots:o.object,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,unstableFieldRef:o.oneOfType([o.func,o.object]),value:o.object,variant:o.oneOf(["filled","outlined","standard"])});const W1e=e=>{const t=q0e(e);return u0({manager:t,props:e})},U1e=["slots","slotProps"],Qp=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiDateTimeField"}),{slots:i,slotProps:a}=r,s=Je(r,U1e),l=y0({slotProps:a,ref:n,externalForwardedProps:s}),c=W1e(l);return D.jsx(g0,{slots:i,slotProps:a,inputRef:s.inputRef,children:D.jsx(m0,{fieldResponse:c,defaultOpenPickerIcon:S$})})});process.env.NODE_ENV!=="production"&&(Qp.displayName="DateTimeField");process.env.NODE_ENV!=="production"&&(Qp.propTypes={ampm:o.bool,autoFocus:o.bool,className:o.string,clearable:o.bool,clearButtonPosition:o.oneOf(["end","start"]),color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.bool,focused:o.bool,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Nt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxDate:o.object,maxDateTime:o.object,maxTime:o.object,minDate:o.object,minDateTime:o.object,minTime:o.object,minutesStep:o.number,name:o.string,onBlur:o.func,onChange:o.func,onClear:o.func,onError:o.func,onFocus:o.func,onSelectedSectionsChange:o.func,openPickerButtonPosition:o.oneOf(["end","start"]),readOnly:o.bool,referenceDate:o.object,required:o.bool,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableTime:o.func,shouldDisableYear:o.func,shouldRespectLeadingZeros:o.bool,size:o.oneOf(["medium","small"]),slotProps:o.object,slots:o.object,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,unstableFieldRef:o.oneOfType([o.func,o.object]),value:o.object,variant:o.oneOf(["filled","outlined","standard"])});const G$=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:l})=>{const c=ft();return I.useCallback(u=>Js({adapter:c,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s}})!==null,[c,e,t,n,r,i,a,s,l])},q1e=(e,t)=>(n,r)=>{switch(r.type){case"setVisibleDate":return ee({},n,{slideDirection:r.direction,currentMonth:r.month,isMonthSwitchingAnimating:!t.isSameMonth(r.month,n.currentMonth)&&!e&&!r.skipAnimation,focusedDay:r.focusedDay});case"changeMonthTimezone":{const i=r.newTimezone;if(t.getTimezone(n.currentMonth)===i)return n;let a=t.setTimezone(n.currentMonth,i);return t.getMonth(a)!==t.getMonth(n.currentMonth)&&(a=t.setMonth(a,t.getMonth(n.currentMonth))),ee({},n,{currentMonth:a})}case"finishMonthSwitchingAnimation":return ee({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},H1e=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:i,maxDate:a,minDate:s,onMonthChange:l,onYearChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:f,getCurrentMonthFromVisibleDate:h}=e,p=ft(),b=I.useRef(q1e(!!u,p)).current,m=I.useMemo(()=>bn.getInitialReferenceValue({value:t,adapter:p,timezone:f,props:e,referenceDate:n,granularity:to.day}),[n,f]),[y,g]=I.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:m,currentMonth:p.startOfMonth(m),slideDirection:"left"}),v=G$({shouldDisableDate:d,minDate:s,maxDate:a,disableFuture:r,disablePast:i,timezone:f});I.useEffect(()=>{g({type:"changeMonthTimezone",newTimezone:p.getTimezone(m)})},[m,p]);const x=Ae(({target:S,reason:O})=>{if(O==="cell-interaction"&&y.focusedDay!=null&&p.isSameDay(S,y.focusedDay))return;const C=O==="cell-interaction";let P,k;if(O==="cell-interaction")P=h(S,y.currentMonth),k=S;else if(P=p.isSameMonth(S,y.currentMonth)?y.currentMonth:p.startOfMonth(S),k=S,v(k)){const T=p.startOfMonth(S),$=p.endOfMonth(S);k=hc({adapter:p,date:k,minDate:p.isBefore(s,T)?T:s,maxDate:p.isAfter(a,$)?$:a,disablePast:i,disableFuture:r,isDateDisabled:v,timezone:f})}const E=!p.isSameMonth(y.currentMonth,P),_=!p.isSameYear(y.currentMonth,P);E&&(l==null||l(P)),_&&(c==null||c(p.startOfYear(P))),g({type:"setVisibleDate",month:P,direction:p.isAfterDay(P,y.currentMonth)?"left":"right",focusedDay:y.focusedDay!=null&&k!=null&&p.isSameDay(k,y.focusedDay)?y.focusedDay:k,skipAnimation:C})}),w=I.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:m,calendarState:y,setVisibleDate:x,isDateDisabled:v,onMonthSwitchingAnimationEnd:w}},Y1e=e=>ke("MuiPickersFadeTransitionGroup",e);$e("MuiPickersFadeTransitionGroup",["root"]);const G1e=["children"],K1e=e=>_e({root:["root"]},Y1e,e),X1e=ne(Rc,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function K$(e){const t=yt({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:r,transKey:i,classes:a}=t,{children:s}=t,l=Je(t,G1e),c=K1e(a),u=uo();return r?s:D.jsx(X1e,{className:we(c.root,n),ownerState:l,children:D.jsx(vi,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:s},i)})}const Z1e=e=>ke("MuiPickersSlideTransition",e),Nr=$e("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Q1e=["children","className","reduceAnimations","slideDirection","transKey","classes"],J1e=(e,t)=>{const{slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return _e(r,Z1e,e)},ewe=ne(Rc,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Nr["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Nr["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Nr.slideEnterActive}`]:t.slideEnterActive},{[`.${Nr.slideExit}`]:t.slideExit},{[`.${Nr["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Nr["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Nr["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Nr["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Nr.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Nr.slideExit}`]:{transform:"translate(0%)"},[`& .${Nr["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Nr["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function twe(e){const t=yt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,slideDirection:a,transKey:s,classes:l}=t,c=Je(t,Q1e),{ownerState:u}=sn(),d=ee({},u,{slideDirection:a}),f=J1e(l,d),h=uo();if(i)return D.jsx("div",{className:we(f.root,r),children:n});const p={exit:f.exit,enterActive:f.enterActive,enter:f.enter,exitActive:f.exitActive};return D.jsx(ewe,{className:we(f.root,r),childFactory:b=>I.cloneElement(b,{classNames:p}),role:"presentation",ownerState:d,children:D.jsx(ug,ee({mountOnEnter:!0,unmountOnExit:!0,timeout:h.transitions.duration.complex,classNames:p},c,{children:n}),s)})}const nwe=e=>ke("MuiDayCalendar",e);$e("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const rwe=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],owe=["ownerState"],iwe=e=>_e({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},nwe,e),X$=(gc+Bp*2)*6,awe=ne("div",{name:"MuiDayCalendar",slot:"Root"})({}),swe=ne("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),lwe=ne(Xe,{name:"MuiDayCalendar",slot:"WeekDayLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),cwe=ne(Xe,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),uwe=ne(Xe,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>ee({},e.typography.caption,{width:gc,height:gc,padding:0,margin:`0 ${Bp}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),dwe=ne("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:X$}),fwe=ne(twe,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:X$}),pwe=ne("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),hwe=ne("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${Bp}px 0`,display:"flex",justifyContent:"center"});function mwe(e){let{parentProps:t,day:n,focusedDay:r,selectedDays:i,isDateDisabled:a,currentMonthNumber:s,isViewFocused:l}=e,c=Je(e,rwe);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:h,slots:p,slotProps:b,timezone:m}=t,y=ft(),g=pa(m),v=r!=null&&y.isSameDay(n,r),x=l&&v,w=i.some(M=>y.isSameDay(M,n)),S=y.isSameDay(n,g),O=I.useMemo(()=>u||a(n),[u,a,n]),C=I.useMemo(()=>y.getMonth(n)!==s,[y,n,s]),P=R$({day:n,selected:w,disabled:O,today:S,outsideCurrentMonth:C,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:h}),k=(p==null?void 0:p.day)??N$,E=dt({elementType:k,externalSlotProps:b==null?void 0:b.day,additionalProps:ee({disableHighlightToday:d,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:f,"data-timestamp":y.toJsDate(n).valueOf()},c),ownerState:ee({},P,{day:n,isDayDisabled:O,isDaySelected:w})}),_=Je(E,owe),T=I.useMemo(()=>{const M=y.startOfMonth(y.setMonth(n,s));return h?y.isSameDay(n,y.startOfWeek(M)):y.isSameDay(n,M)},[s,n,h,y]),$=I.useMemo(()=>{const M=y.endOfMonth(y.setMonth(n,s));return h?y.isSameDay(n,y.endOfWeek(M)):y.isSameDay(n,M)},[s,n,h,y]);return D.jsx(k,ee({},_,{day:n,disabled:O,autoFocus:!C&&x,today:S,outsideCurrentMonth:C,isFirstVisibleCell:T,isLastVisibleCell:$,selected:w,tabIndex:v?0:-1,"aria-selected":w,"aria-current":S?"date":void 0}))}function ywe(e){const t=yt({props:e,name:"MuiDayCalendar"}),n=ft(),{onFocusedDayChange:r,className:i,classes:a,currentMonth:s,selectedDays:l,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:f,readOnly:h,reduceAnimations:p,renderLoading:b=()=>D.jsx("span",{children:"..."}),slideDirection:m,TransitionProps:y,disablePast:g,disableFuture:v,minDate:x,maxDate:w,shouldDisableDate:S,shouldDisableMonth:O,shouldDisableYear:C,dayOfWeekFormatter:P=Q=>n.format(Q,"weekdayShort").charAt(0).toUpperCase(),hasFocus:k,onFocusedViewChange:E,gridLabelId:_,displayWeekNumber:T,fixedWeekNumber:$,timezone:M}=t,j=pa(M),W=iwe(a),U=Xn(),K=G$({shouldDisableDate:S,shouldDisableMonth:O,shouldDisableYear:C,minDate:x,maxDate:w,disablePast:g,disableFuture:v,timezone:M}),H=Vn(),F=Ae(Q=>{h||d(Q)}),R=Q=>{K(Q)||(r(Q),E==null||E(!0))},V=Ae((Q,Z)=>{switch(Q.key){case"ArrowUp":R(n.addDays(Z,-7)),Q.preventDefault();break;case"ArrowDown":R(n.addDays(Z,7)),Q.preventDefault();break;case"ArrowLeft":{const ce=n.addDays(Z,U?1:-1),ue=n.addMonths(Z,U?1:-1),ye=hc({adapter:n,date:ce,minDate:U?ce:n.startOfMonth(ue),maxDate:U?n.endOfMonth(ue):ce,isDateDisabled:K,timezone:M});R(ye||ce),Q.preventDefault();break}case"ArrowRight":{const ce=n.addDays(Z,U?-1:1),ue=n.addMonths(Z,U?-1:1),ye=hc({adapter:n,date:ce,minDate:U?n.startOfMonth(ue):ce,maxDate:U?ce:n.endOfMonth(ue),isDateDisabled:K,timezone:M});R(ye||ce),Q.preventDefault();break}case"Home":R(n.startOfWeek(Z)),Q.preventDefault();break;case"End":R(n.endOfWeek(Z)),Q.preventDefault();break;case"PageUp":R(n.addMonths(Z,1)),Q.preventDefault();break;case"PageDown":R(n.addMonths(Z,-1)),Q.preventDefault();break}}),z=Ae((Q,Z)=>R(Z)),L=Ae((Q,Z)=>{c!=null&&n.isSameDay(c,Z)&&(E==null||E(!1))}),A=n.getMonth(s),N=n.getYear(s),q=I.useMemo(()=>l.filter(Q=>!!Q).map(Q=>n.startOfDay(Q)),[n,l]),Y=`${N}-${A}`,G=I.useMemo(()=>I.createRef(),[Y]),X=I.useMemo(()=>{const Q=n.getWeekArray(s);let Z=n.addMonths(s,1);for(;$&&Q.length<$;){const ce=n.getWeekArray(Z),ue=n.isSameDay(Q[Q.length-1][0],ce[0][0]);ce.slice(ue?1:0).forEach(ye=>{Q.length<$&&Q.push(ye)}),Z=n.addMonths(Z,1)}return Q},[s,$,n]);return D.jsxs(awe,{role:"grid","aria-labelledby":_,className:W.root,children:[D.jsxs(swe,{role:"row",className:W.header,children:[T&&D.jsx(cwe,{variant:"caption",role:"columnheader","aria-label":H.calendarWeekNumberHeaderLabel,className:W.weekNumberLabel,children:H.calendarWeekNumberHeaderText}),jbe(n,j).map((Q,Z)=>D.jsx(lwe,{variant:"caption",role:"columnheader","aria-label":n.format(Q,"weekday"),className:W.weekDayLabel,children:P(Q)},Z.toString()))]}),u?D.jsx(dwe,{className:W.loadingContainer,children:b()}):D.jsx(fwe,ee({transKey:Y,onExited:f,reduceAnimations:p,slideDirection:m,className:we(i,W.slideTransition)},y,{nodeRef:G,children:D.jsx(pwe,{ref:G,role:"rowgroup",className:W.monthContainer,children:X.map((Q,Z)=>D.jsxs(hwe,{role:"row",className:W.weekContainer,"aria-rowindex":Z+1,children:[T&&D.jsx(uwe,{className:W.weekNumber,role:"rowheader","aria-label":H.calendarWeekNumberAriaLabelText(n.getWeekNumber(Q[0])),children:H.calendarWeekNumberText(n.getWeekNumber(Q[0]))}),Q.map((ce,ue)=>D.jsx(mwe,{parentProps:t,day:ce,selectedDays:q,isViewFocused:k,focusedDay:c,onKeyDown:V,onFocus:z,onBlur:L,onDaySelect:F,isDateDisabled:K,currentMonthNumber:A,"aria-colindex":ue+1},ce.toString()))]},`week-${Q[0]}`))})}))]})}function Z$(e){return ke("MuiMonthCalendar",e)}const Gu=$e("MuiMonthCalendar",["root","button","disabled","selected"]),gwe=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],bwe=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return _e(n,Z$,e)},vwe=ne("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Gu.disabled}`]:t.disabled},{[`&.${Gu.selected}`]:t.selected}]})(({theme:e})=>ee({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Gu.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Gu.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Q$=I.memo(function(t){const{autoFocus:n,classes:r,disabled:i,selected:a,value:s,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:f,slotProps:h}=t,p=Je(t,gwe),b=I.useRef(null),{ownerState:m}=sn(),y=ee({},m,{isMonthDisabled:i,isMonthSelected:a}),g=bwe(r,y);Jt(()=>{var w;n&&((w=b.current)==null||w.focus())},[n]);const v=(f==null?void 0:f.monthButton)??vwe,x=dt({elementType:v,externalSlotProps:h==null?void 0:h.monthButton,externalForwardedProps:p,additionalProps:{disabled:i,ref:b,type:"button",role:"radio","aria-checked":a,onClick:w=>l(w,s),onKeyDown:w=>c(w,s),onFocus:w=>u(w,s),onBlur:w=>d(w,s)},ownerState:y,className:g.button});return D.jsx(v,ee({},x))});process.env.NODE_ENV!=="production"&&(Q$.displayName="MonthCalendarButton");const wwe=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],xwe=e=>_e({root:["root"]},Z$,e);function Swe(e,t){const n=yt({props:e,name:t}),r=du(n);return ee({},n,r,{monthsPerRow:n.monthsPerRow??3})}const YT=(e,t,n,r,i)=>!!(e===t&&r&&i.isSameYear(n,r)),Twe=ne("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>ar(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:xs,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),b0=I.forwardRef(function(t,n){const r=Swe(t,"MuiMonthCalendar"),{autoFocus:i,className:a,currentMonth:s,classes:l,value:c,defaultValue:u,referenceDate:d,disabled:f,disableFuture:h,disablePast:p,maxDate:b,minDate:m,onChange:y,shouldDisableMonth:g,readOnly:v,onMonthFocus:x,hasFocus:w,onFocusedViewChange:S,monthsPerRow:O,timezone:C,gridLabelId:P,slots:k,slotProps:E}=r,_=Je(r,wwe),{value:T,handleValueChange:$,timezone:M}=Pi({name:"MonthCalendar",timezone:C,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:bn}),j=pa(M),W=Xn(),U=ft(),{ownerState:K}=sn(),H=I.useMemo(()=>bn.getInitialReferenceValue({value:T,adapter:U,props:r,timezone:M,referenceDate:d,granularity:to.month}),[]),F=xwe(l),R=I.useMemo(()=>U.getMonth(j),[U,j]),V=I.useMemo(()=>T!=null?U.getMonth(T):null,[T,U]),[z,L]=I.useState(()=>V||U.getMonth(H)),[A,N]=Gn({name:"MonthCalendar",state:"hasFocus",controlled:w,default:i??!1}),q=Ae(ue=>{N(ue),S&&S(ue)}),Y=I.useCallback(ue=>{const ye=U.startOfMonth(p&&U.isAfter(j,m)?j:m),de=U.startOfMonth(h&&U.isBefore(j,b)?j:b),pe=U.startOfMonth(ue);return U.isBefore(pe,ye)||U.isAfter(pe,de)?!0:g?g(pe):!1},[h,p,b,m,j,g,U]),G=Ae((ue,ye)=>{if(v)return;const de=T&&s&&!U.isSameYear(T,s)?U.setYear(T,U.getYear(s)):T,pe=U.setMonth(de??H,ye);$(pe)}),X=Ae(ue=>{Y(U.setMonth(T??s??H,ue))||(L(ue),q(!0),x&&x(ue))});I.useEffect(()=>{L(ue=>V!==null&&ue!==V?V:ue)},[V]);const Q=Ae((ue,ye)=>{switch(ue.key){case"ArrowUp":X((12+ye-3)%12),ue.preventDefault();break;case"ArrowDown":X((12+ye+3)%12),ue.preventDefault();break;case"ArrowLeft":X((12+ye+(W?1:-1))%12),ue.preventDefault();break;case"ArrowRight":X((12+ye+(W?-1:1))%12),ue.preventDefault();break}}),Z=Ae((ue,ye)=>{X(ye)}),ce=Ae((ue,ye)=>{z===ye&&q(!1)});return D.jsx(Twe,ee({ref:n,className:we(F.root,a),ownerState:K,role:"radiogroup","aria-labelledby":P,monthsPerRow:O},_,{children:Uv(U,s??T??H).map(ue=>{const ye=U.getMonth(ue),de=U.format(ue,"monthShort"),pe=U.format(ue,"month"),J=YT(ye,V,ue,T,U),oe=f||Y(ue);return D.jsx(Q$,{selected:J,value:ye,onClick:G,onKeyDown:Q,autoFocus:A&&ye===z,disabled:oe,tabIndex:ye===z&&!oe?0:-1,onFocus:Z,onBlur:ce,"aria-current":YT(ye,R,ue,j,U)?"date":void 0,"aria-label":pe,slots:k,slotProps:E,classes:l,children:de},de)})}))});process.env.NODE_ENV!=="production"&&(b0.displayName="MonthCalendar");process.env.NODE_ENV!=="production"&&(b0.propTypes={autoFocus:o.bool,classes:o.object,className:o.string,currentMonth:o.object,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,gridLabelId:o.string,hasFocus:o.bool,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),onChange:o.func,onFocusedViewChange:o.func,onMonthFocus:o.func,readOnly:o.bool,referenceDate:o.object,shouldDisableMonth:o.func,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object});function J$(e){return ke("MuiYearCalendar",e)}const Ku=$e("MuiYearCalendar",["root","button","disabled","selected"]),Owe=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],Ewe=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return _e(n,J$,e)},Cwe=ne("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Ku.disabled}`]:t.disabled},{[`&.${Ku.selected}`]:t.selected}]})(({theme:e})=>ee({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:dr(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Ku.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Ku.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),eR=I.memo(function(t){const{autoFocus:n,classes:r,disabled:i,selected:a,value:s,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:f,slotProps:h}=t,p=Je(t,Owe),b=I.useRef(null),{ownerState:m}=sn(),y=ee({},m,{isYearDisabled:i,isYearSelected:a}),g=Ewe(r,y);Jt(()=>{var w;n&&((w=b.current)==null||w.focus())},[n]);const v=(f==null?void 0:f.yearButton)??Cwe,x=dt({elementType:v,externalSlotProps:h==null?void 0:h.yearButton,externalForwardedProps:p,additionalProps:{disabled:i,ref:b,type:"button",role:"radio","aria-checked":a,onClick:w=>l(w,s),onKeyDown:w=>c(w,s),onFocus:w=>u(w,s),onBlur:w=>d(w,s)},ownerState:y,className:g.button});return D.jsx(v,ee({},x))});process.env.NODE_ENV!=="production"&&(eR.displayName="YearCalendarButton");const Pwe=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],_we=e=>_e({root:["root"]},J$,e);function kwe(e,t){const n=yt({props:e,name:t}),r=du(n);return ee({},n,r,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const Dwe=ne("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>ar(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:xs,maxHeight:Sve,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),$we=ne("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),v0=I.forwardRef(function(t,n){const r=kwe(t,"MuiYearCalendar"),{autoFocus:i,className:a,classes:s,value:l,defaultValue:c,referenceDate:u,disabled:d,disableFuture:f,disablePast:h,maxDate:p,minDate:b,onChange:m,readOnly:y,shouldDisableYear:g,onYearFocus:v,hasFocus:x,onFocusedViewChange:w,yearsOrder:S,yearsPerRow:O,timezone:C,gridLabelId:P,slots:k,slotProps:E}=r,_=Je(r,Pwe),{value:T,handleValueChange:$,timezone:M}=Pi({name:"YearCalendar",timezone:C,value:l,defaultValue:c,referenceDate:u,onChange:m,valueManager:bn}),j=pa(M),W=Xn(),U=ft(),{ownerState:K}=sn(),H=I.useMemo(()=>bn.getInitialReferenceValue({value:T,adapter:U,props:r,timezone:M,referenceDate:u,granularity:to.year}),[]),F=_we(s),R=I.useMemo(()=>U.getYear(j),[U,j]),V=I.useMemo(()=>T!=null?U.getYear(T):null,[T,U]),[z,L]=I.useState(()=>V||U.getYear(H)),[A,N]=Gn({name:"YearCalendar",state:"hasFocus",controlled:x,default:i??!1}),q=Ae(te=>{N(te),w&&w(te)}),Y=I.useCallback(te=>{if(h&&U.isBeforeYear(te,j)||f&&U.isAfterYear(te,j)||b&&U.isBeforeYear(te,b)||p&&U.isAfterYear(te,p))return!0;if(!g)return!1;const le=U.startOfYear(te);return g(le)},[f,h,p,b,j,g,U]),G=Ae((te,le)=>{if(y)return;const re=U.setYear(T??H,le);$(re)}),X=Ae(te=>{Y(U.setYear(T??H,te))||(L(te),q(!0),v==null||v(te))});I.useEffect(()=>{L(te=>V!==null&&te!==V?V:te)},[V]);const Q=S!=="desc"?O*1:O*-1,Z=W&&S==="asc"||!W&&S==="desc"?-1:1,ce=Ae((te,le)=>{switch(te.key){case"ArrowUp":X(le-Q),te.preventDefault();break;case"ArrowDown":X(le+Q),te.preventDefault();break;case"ArrowLeft":X(le-Z),te.preventDefault();break;case"ArrowRight":X(le+Z),te.preventDefault();break}}),ue=Ae((te,le)=>{X(le)}),ye=Ae((te,le)=>{z===le&&q(!1)}),de=I.useRef(null),pe=Et(n,de);I.useEffect(()=>{if(i||de.current===null)return;const te=de.current.querySelector('[tabindex="0"]');if(!te)return;const le=te.offsetHeight,re=te.offsetTop,Ee=de.current.clientHeight,Pe=de.current.scrollTop,fe=re+le;le>Ee||re<Pe||(de.current.scrollTop=fe-Ee/2-le/2)},[i]);const J=U.getYearRange([b,p]);S==="desc"&&J.reverse();let oe=O-J.length%O;return oe===O&&(oe=0),D.jsxs(Dwe,ee({ref:pe,className:we(F.root,a),ownerState:K,role:"radiogroup","aria-labelledby":P,yearsPerRow:O},_,{children:[J.map(te=>{const le=U.getYear(te),re=le===V,Ee=d||Y(te);return D.jsx(eR,{selected:re,value:le,onClick:G,onKeyDown:ce,autoFocus:A&&le===z,disabled:Ee,tabIndex:le===z&&!Ee?0:-1,onFocus:ue,onBlur:ye,"aria-current":R===le?"date":void 0,slots:k,slotProps:E,classes:s,children:U.format(te,"year")},U.format(te,"year"))}),Array.from({length:oe},(te,le)=>D.jsx($we,{},le))]}))});process.env.NODE_ENV!=="production"&&(v0.displayName="YearCalendar");process.env.NODE_ENV!=="production"&&(v0.propTypes={autoFocus:o.bool,classes:o.object,className:o.string,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,gridLabelId:o.string,hasFocus:o.bool,maxDate:o.object,minDate:o.object,onChange:o.func,onFocusedViewChange:o.func,onYearFocus:o.func,readOnly:o.bool,referenceDate:o.object,shouldDisableYear:o.func,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])});const Rwe=e=>ke("MuiPickersCalendarHeader",e),Mwe=$e("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Iwe=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],Nwe=["ownerState"],Awe=e=>_e({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Rwe,e),jwe=ne("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),Lwe=ne("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>ee({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Fwe=ne("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),Bwe=ne(Pt,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Mwe.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Vwe=ne(nve,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),w0=I.forwardRef(function(t,n){const r=Vn(),i=ft(),a=yt({props:t,name:"MuiPickersCalendarHeader"}),{slots:s,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:f,maxDate:h,minDate:p,onMonthChange:b,onViewChange:m,view:y,reduceAnimations:g,views:v,labelId:x,className:w,classes:S,timezone:O,format:C=`${i.formats.month} ${i.formats.year}`}=a,P=Je(a,Iwe),{ownerState:k}=sn(),E=Awe(S),_=(s==null?void 0:s.switchViewButton)??Bwe,T=dt({elementType:_,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(y)},ownerState:ee({},k,{view:y}),className:E.switchViewButton}),$=(s==null?void 0:s.switchViewIcon)??Vwe,M=dt({elementType:$,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:k,className:E.switchViewIcon}),j=Je(M,Nwe),W=()=>b(i.addMonths(c,1)),U=()=>b(i.addMonths(c,-1)),K=wve(c,{disableFuture:d,maxDate:h,timezone:O}),H=xve(c,{disablePast:f,minDate:p,timezone:O}),F=()=>{if(!(v.length===1||!m||u))if(v.length===2)m(v.find(V=>V!==y)||v[0]);else{const V=v.indexOf(y)!==0?0:1;m(v[V])}};if(v.length===1&&v[0]==="year")return null;const R=i.formatByString(c,C);return D.jsxs(jwe,ee({},P,{ownerState:k,className:we(E.root,w),ref:n,children:[D.jsxs(Lwe,{role:"presentation",onClick:F,ownerState:k,"aria-live":"polite",className:E.labelContainer,children:[D.jsx(K$,{reduceAnimations:g,transKey:R,children:D.jsx(Fwe,{id:x,ownerState:k,className:E.label,children:R})}),v.length>1&&!u&&D.jsx(_,ee({},T,{children:D.jsx($,ee({},j))}))]}),D.jsx(vi,{in:y==="day",appear:!g,enter:!g,children:D.jsx(t0,{slots:s,slotProps:l,onGoToPrevious:U,isPreviousDisabled:H,previousLabel:r.previousMonth,onGoToNext:W,isNextDisabled:K,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(w0.displayName="PickersCalendarHeader");process.env.NODE_ENV!=="production"&&(w0.propTypes={classes:o.object,className:o.string,currentMonth:o.object.isRequired,disabled:o.bool,disableFuture:o.bool,disablePast:o.bool,format:o.string,labelId:o.string,maxDate:o.object.isRequired,minDate:o.object.isRequired,onMonthChange:o.func.isRequired,onViewChange:o.func,reduceAnimations:o.bool.isRequired,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string.isRequired,view:o.oneOf(["day","month","year"]).isRequired,views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired).isRequired});const zwe="@media (prefers-reduced-motion: reduce)",es=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),GT=es&&es[1]?parseInt(es[1],10):null,KT=es&&es[2]?parseInt(es[2],10):null,Wwe=GT&&GT<10||KT&&KT<13||!1;function tR(e){const t=fp(zwe,{defaultMatches:!1});return e??(t||Wwe)}const Uwe=e=>ke("MuiDateCalendar",e);$e("MuiDateCalendar",["root","viewTransitionContainer"]);const qwe=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],Hwe=e=>_e({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Uwe,e);function Ywe(e,t){const n=yt({props:e,name:t}),r=tR(n.reduceAnimations),i=du(n);return ee({},n,i,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:r,renderLoading:n.renderLoading??(()=>D.jsx("span",{children:"..."}))})}const Gwe=ne(Vp,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Ss}),Kwe=ne(K$,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),x0=I.forwardRef(function(t,n){const r=ft(),{ownerState:i}=sn(),a=Pr(),s=Ywe(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:c,value:u,defaultValue:d,referenceDate:f,disableFuture:h,disablePast:p,onChange:b,onMonthChange:m,reduceAnimations:y,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:x,view:w,views:S,openTo:O,className:C,classes:P,disabled:k,readOnly:E,minDate:_,maxDate:T,disableHighlightToday:$,focusedView:M,onFocusedViewChange:j,showDaysOutsideCurrentMonth:W,fixedWeekNumber:U,dayOfWeekFormatter:K,slots:H,slotProps:F,loading:R,renderLoading:V,displayWeekNumber:z,yearsOrder:L,yearsPerRow:A,monthsPerRow:N,timezone:q}=s,Y=Je(s,qwe),{value:G,handleValueChange:X,timezone:Q}=Pi({name:"DateCalendar",timezone:q,value:u,defaultValue:d,referenceDate:f,onChange:b,valueManager:bn}),{view:Z,setView:ce,focusedView:ue,setFocusedView:ye,goToNextView:de,setValueAndGoToNextView:pe}=cu({view:w,views:S,openTo:O,onChange:X,onViewChange:c,autoFocus:l,focusedView:M,onFocusedViewChange:j}),{referenceDate:J,calendarState:oe,setVisibleDate:te,isDateDisabled:le,onMonthSwitchingAnimationEnd:re}=H1e({value:G,referenceDate:f,reduceAnimations:y,onMonthChange:m,minDate:_,maxDate:T,shouldDisableDate:g,disablePast:p,disableFuture:h,timezone:Q,getCurrentMonthFromVisibleDate:(et,ht)=>r.isSameMonth(et,ht)?ht:r.startOfMonth(et)}),Ee=k&&G||_,Pe=k&&G||T,fe=`${a}-grid-label`,ge=ue!==null,De=(H==null?void 0:H.calendarHeader)??w0,Me=dt({elementType:De,externalSlotProps:F==null?void 0:F.calendarHeader,additionalProps:{views:S,view:Z,currentMonth:oe.currentMonth,onViewChange:ce,onMonthChange:et=>te({target:et,reason:"header-navigation"}),minDate:Ee,maxDate:Pe,disabled:k,disablePast:p,disableFuture:h,reduceAnimations:y,timezone:Q,labelId:fe},ownerState:i}),Ie=Ae(et=>{const ht=r.startOfMonth(et),Tt=r.endOfMonth(et),ie=le(et)?hc({adapter:r,date:et,minDate:r.isBefore(_,ht)?ht:_,maxDate:r.isAfter(T,Tt)?Tt:T,disablePast:p,disableFuture:h,isDateDisabled:le,timezone:Q}):et;ie?(pe(ie,"finish"),te({target:ie,reason:"cell-interaction"})):(de(),te({target:ht,reason:"cell-interaction"}))}),he=Ae(et=>{const ht=r.startOfYear(et),Tt=r.endOfYear(et),ie=le(et)?hc({adapter:r,date:et,minDate:r.isBefore(_,ht)?ht:_,maxDate:r.isAfter(T,Tt)?Tt:T,disablePast:p,disableFuture:h,isDateDisabled:le,timezone:Q}):et;ie?(pe(ie,"finish"),te({target:ie,reason:"cell-interaction"})):(de(),te({target:ht,reason:"cell-interaction"}))}),me=Ae(et=>X(et&&af(r,et,G??J),"finish",Z));I.useEffect(()=>{r.isValid(G)&&te({target:G,reason:"controlled-value-change"})},[G]);const Be=Hwe(P),Ue={disablePast:p,disableFuture:h,maxDate:T,minDate:_},We={disableHighlightToday:$,readOnly:E,disabled:k,timezone:Q,gridLabelId:fe,slots:H,slotProps:F},lt=I.useRef(Z);I.useEffect(()=>{lt.current!==Z&&(ue===lt.current&&ye(Z,!0),lt.current=Z)},[ue,ye,Z]);const kt=I.useMemo(()=>[G],[G]);return D.jsxs(Gwe,ee({ref:n,className:we(Be.root,C),ownerState:i},Y,{children:[D.jsx(De,ee({},Me,{slots:H,slotProps:F})),D.jsx(Kwe,{reduceAnimations:y,className:Be.viewTransitionContainer,transKey:Z,ownerState:i,children:D.jsxs("div",{children:[Z==="year"&&D.jsx(v0,ee({},Ue,We,{value:G,onChange:he,shouldDisableYear:x,hasFocus:ge,onFocusedViewChange:et=>ye("year",et),yearsOrder:L,yearsPerRow:A,referenceDate:J})),Z==="month"&&D.jsx(b0,ee({},Ue,We,{currentMonth:oe.currentMonth,hasFocus:ge,className:C,value:G,onChange:Ie,shouldDisableMonth:v,onFocusedViewChange:et=>ye("month",et),monthsPerRow:N,referenceDate:J})),Z==="day"&&D.jsx(ywe,ee({},oe,Ue,We,{onMonthSwitchingAnimationEnd:re,hasFocus:ge,onFocusedDayChange:et=>te({target:et,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:kt,onSelectedDaysChange:me,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:x,onFocusedViewChange:et=>ye("day",et),showDaysOutsideCurrentMonth:W,fixedWeekNumber:U,dayOfWeekFormatter:K,displayWeekNumber:z,loading:R,renderLoading:V}))]})})]}))});process.env.NODE_ENV!=="production"&&(x0.displayName="DateCalendar");process.env.NODE_ENV!=="production"&&(x0.propTypes={autoFocus:o.bool,classes:o.object,className:o.string,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,fixedWeekNumber:o.number,focusedView:o.oneOf(["day","month","year"]),loading:o.bool,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),onChange:o.func,onFocusedViewChange:o.func,onMonthChange:o.func,onViewChange:o.func,onYearChange:o.func,openTo:o.oneOf(["day","month","year"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])});function nR(e){return ke("MuiPickersToolbar",e)}const Xwe=$e("MuiPickersToolbar",["root","title","content"]);function Jp(){const{ownerState:e}=sn(),t=Xn();return I.useMemo(()=>ee({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const Zwe=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],Qwe=e=>_e({root:["root"],title:["title"],content:["content"]},nR,e),Jwe=ne("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),exe=ne("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>ar(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),eh=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersToolbar"}),{children:i,className:a,classes:s,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=r,f=Je(r,Zwe),h=Jp(),p=Qwe(s);return c?null:D.jsxs(Jwe,ee({ref:n,className:we(p.root,a),ownerState:h},f,{children:[D.jsx(Xe,{color:"text.secondary",variant:"overline",id:u,className:p.title,children:l}),D.jsx(exe,{className:p.content,ownerState:h,landscapeDirection:d,children:i})]}))});process.env.NODE_ENV!=="production"&&(eh.displayName="PickersToolbar");function txe(e){return ke("MuiDatePickerToolbar",e)}$e("MuiDatePickerToolbar",["root","title"]);const nxe=["toolbarFormat","toolbarPlaceholder","className","classes"],rxe=e=>_e({root:["root"],title:["title"]},txe,e),oxe=ne(eh,{name:"MuiDatePickerToolbar",slot:"Root"})({}),ixe=ne(Xe,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),S0=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:i,toolbarPlaceholder:a="––",className:s,classes:l}=r,c=Je(r,nxe),u=ft(),{value:d,views:f,orientation:h}=jo(),p=Vn(),b=Jp(),m=rxe(l),y=I.useMemo(()=>{if(!u.isValid(d))return a;const g=mc(u,{format:i,views:f},!0);return u.formatByString(d,g)},[d,i,a,u,f]);return D.jsx(oxe,ee({ref:n,toolbarTitle:p.datePickerToolbarTitle,className:we(m.root,s)},c,{children:D.jsx(ixe,{variant:"h4",align:h==="landscape"?"left":"center",ownerState:b,className:m.title,children:y})}))});process.env.NODE_ENV!=="production"&&(S0.displayName="DatePickerToolbar");process.env.NODE_ENV!=="production"&&(S0.propTypes={classes:o.object,className:o.string,hidden:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleId:o.string,toolbarFormat:o.string,toolbarPlaceholder:o.node});function rR(e,t){const n=yt({props:e,name:t}),r=du(n),i=I.useMemo(()=>{var a;return((a=n.localeText)==null?void 0:a.toolbarTitle)==null?n.localeText:ee({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return ee({},n,r,{localeText:i},Wv({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:ee({toolbar:S0},n.slots)})}function axe(e){return ke("MuiPickerPopper",e)}$e("MuiPickerPopper",["root","paper"]);const sxe=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],lxe=e=>_e({root:["root"],paper:["paper"]},axe,e),cxe=ne($s,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),uxe=ne(fo,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});function dxe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function fxe(e,t){const n=I.useRef(!1),r=I.useRef(!1),i=I.useRef(null),a=I.useRef(!1);I.useEffect(()=>{if(!e)return;function c(){a.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),a.current=!1}},[e]);const s=Ae(c=>{if(!a.current)return;const u=r.current;r.current=!1;const d=pn(i.current);if(!i.current||"clientX"in c&&dxe(c,d))return;if(n.current){n.current=!1;return}let f;c.composedPath?f=c.composedPath().indexOf(i.current)>-1:f=!d.documentElement.contains(c.target)||i.current.contains(c.target),!f&&!u&&t(c)}),l=c=>{c.defaultMuiPrevented||(r.current=!0)};return I.useEffect(()=>{if(e){const c=pn(i.current),u=()=>{n.current=!0};return c.addEventListener("touchstart",s),c.addEventListener("touchmove",u),()=>{c.removeEventListener("touchstart",s),c.removeEventListener("touchmove",u)}}},[e,s]),I.useEffect(()=>{if(e){const c=pn(i.current);return c.addEventListener("click",s),()=>{c.removeEventListener("click",s),r.current=!1}}},[e,s]),[i,l,l]}const oR=I.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:r,children:i,paperSlotProps:a,paperClasses:s,onPaperClick:l,onPaperTouchStart:c}=e,u=Je(e,sxe),d=dt({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:s,ownerState:r});return D.jsx(n,ee({},u,d,{onClick:f=>{var h;l(f),(h=d.onClick)==null||h.call(d,f)},onTouchStart:f=>{var h;c(f),(h=d.onTouchStart)==null||h.call(d,f)},ownerState:r,children:i}))});process.env.NODE_ENV!=="production"&&(oR.displayName="PickerPopperPaperWrapper");function pxe(e){const t=yt({props:e,name:"MuiPickerPopper"}),{children:n,placement:r="bottom-start",slots:i,slotProps:a,classes:s}=t,{open:l,popupRef:c,reduceAnimations:u}=jo(),{ownerState:d,rootRefObject:f}=sn(),{dismissViews:h,getCurrentViewMode:p,onPopperExited:b,triggerElement:m,viewContainerRole:y}=sn();I.useEffect(()=>{function U(K){l&&K.key==="Escape"&&h()}return document.addEventListener("keydown",U),()=>{document.removeEventListener("keydown",U)}},[h,l]);const g=I.useRef(null);I.useEffect(()=>{y==="tooltip"||p()==="field"||(l?g.current=Yn(f.current):g.current&&g.current instanceof HTMLElement&&setTimeout(()=>{g.current instanceof HTMLElement&&g.current.focus()}))},[l,y,p,f]);const v=lxe(s),x=Ae(()=>{y==="tooltip"?i0e(()=>{var U,K;(U=f.current)!=null&&U.contains(Yn(f.current))||(K=c.current)!=null&&K.contains(Yn(c.current))||h()}):h()}),[w,S,O]=fxe(l,x),C=I.useRef(null),P=Et(C,c),k=Et(P,w),E=U=>{U.key==="Escape"&&(U.stopPropagation(),h())},_=(i==null?void 0:i.desktopTransition)??u?vi:hs,T=(i==null?void 0:i.desktopTrapFocus)??uc,$=(i==null?void 0:i.desktopPaper)??uxe,M=(i==null?void 0:i.popper)??cxe,j=dt({elementType:M,externalSlotProps:a==null?void 0:a.popper,additionalProps:{transition:!0,role:y??void 0,open:l,placement:r,anchorEl:m,onKeyDown:E},className:v.root,ownerState:d}),W=I.useMemo(()=>ee({},d,{popperPlacement:j.placement}),[d,j.placement]);return D.jsx(M,ee({},j,{children:({TransitionProps:U})=>D.jsx(T,ee({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:y==="tooltip",isEnabled:()=>!0},a==null?void 0:a.desktopTrapFocus,{children:D.jsx(_,ee({},U,a==null?void 0:a.desktopTransition,{onExited:K=>{var H,F,R;b==null||b(),(F=(H=a==null?void 0:a.desktopTransition)==null?void 0:H.onExited)==null||F.call(H,K),(R=U==null?void 0:U.onExited)==null||R.call(U)},children:D.jsx(oR,{PaperComponent:$,ownerState:W,ref:k,onPaperClick:S,onPaperTouchStart:O,paperClasses:v.paper,paperSlotProps:a==null?void 0:a.desktopPaper,children:n})}))}))}))}function XT(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}function hxe(e,t){const[n,r]=I.useState(XT);return Jt(()=>{const i=()=>{r(XT())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),ja(e,["hours","minutes","seconds"])?"portrait":t??n}const ZT=new Set;function iR(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
`):e;ZT.has(n)||(ZT.add(n),t==="error"?console.error(n):console.warn(n))}function mxe(e){const{props:t,valueManager:n,validator:r}=e,{value:i,defaultValue:a,onChange:s,referenceDate:l,timezone:c,onAccept:u,closeOnSelect:d,open:f,onOpen:h,onClose:p}=t,{current:b}=I.useRef(a),{current:m}=I.useRef(i!==void 0),{current:y}=I.useRef(f!==void 0),g=ft();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&iR(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]),process.env.NODE_ENV!=="production"&&(I.useEffect(()=>{m!==(i!==void 0)&&console.error([`MUI X: A component is changing the ${m?"":"un"}controlled value of a Picker to be ${m?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
`))},[i]),I.useEffect(()=>{!m&&b!==a&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled Picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
`))},[JSON.stringify(b)]));const{timezone:v,value:x,handleValueChange:w}=Pi({name:"a picker component",timezone:c,value:i,defaultValue:b,referenceDate:l,onChange:s,valueManager:n}),[S,O]=I.useState(()=>({open:!1,lastExternalValue:x,clockShallowValue:void 0,lastCommittedValue:x,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:C}=j$({props:t,validator:r,timezone:v,value:x,onError:t.onError}),P=Ae(T=>{const $=typeof T=="function"?T(S.open):T;y||O(M=>ee({},M,{open:$})),$&&h&&h(),$||p==null||p()}),k=Ae((T,$)=>{const{changeImportance:M="accept",skipPublicationIfPristine:j=!1,validationError:W,shortcut:U,shouldClose:K=M==="accept"}=$??{};let H,F;!j&&!m&&!S.hasBeenModifiedSinceMount?(H=!0,F=M==="accept"):(H=!n.areValuesEqual(g,T,x),F=M==="accept"&&!n.areValuesEqual(g,T,S.lastCommittedValue)),O(z=>ee({},z,{clockShallowValue:H?void 0:z.clockShallowValue,lastCommittedValue:F?T:z.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let R=null;const V=()=>(R||(R={validationError:W??C(T)},U&&(R.shortcut=U)),R);H&&w(T,V()),F&&u&&u(T,V()),K&&P(!1)});x!==S.lastExternalValue&&O(T=>ee({},T,{lastExternalValue:x,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const E=Ae((T,$="partial")=>{if($==="shallow"){O(M=>ee({},M,{clockShallowValue:T,hasBeenModifiedSinceMount:!0}));return}k(T,{changeImportance:$==="finish"&&d?"accept":"set"})});I.useEffect(()=>{if(y){if(f===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");O(T=>ee({},T,{open:f}))}},[y,f]);const _=I.useMemo(()=>n.cleanValue(g,S.clockShallowValue===void 0?x:S.clockShallowValue),[g,n,S.clockShallowValue,x]);return{timezone:v,state:S,setValue:k,setValueFromView:E,setOpen:P,value:x,viewValue:_}}const yxe=["className","sx"],aR=({ref:e,props:t,valueManager:n,valueType:r,variant:i,validator:a,onPopperExited:s,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:f})=>{const{views:h,view:p,openTo:b,onViewChange:m,viewRenderers:y,reduceAnimations:g,orientation:v,disableOpenPicker:x,closeOnSelect:w,disabled:S,readOnly:O,formatDensity:C,enableAccessibleFieldDOMStructure:P,selectedSections:k,onSelectedSectionsChange:E,format:_,label:T,autoFocus:$,name:M}=t,{className:j,sx:W}=t,U=Je(t,yxe),K=Pr(),H=ft(),F=tR(g),R=hxe(h,v),{current:V}=I.useRef(b??null),[z,L]=I.useState(null),A=I.useRef(null),N=I.useRef(null),q=I.useRef(null),Y=Et(e,q),{timezone:G,state:X,setOpen:Q,setValue:Z,setValueFromView:ce,value:ue,viewValue:ye}=mxe({props:t,valueManager:n,validator:a}),{view:de,setView:pe,defaultView:J,focusedView:oe,setFocusedView:te,setValueAndGoToNextView:le,goToNextStep:re,hasNextStep:Ee,hasSeveralSteps:Pe}=cu({view:p,views:h,openTo:b,onChange:ce,onViewChange:m,autoFocus:l,getStepNavigation:f}),fe=Ae(()=>Z(n.emptyValue)),ge=Ae(()=>Z(n.getTodayValue(H,G,r))),De=Ae(()=>Z(ue)),Me=Ae(()=>Z(X.lastCommittedValue,{skipPublicationIfPristine:!0})),Ie=Ae(()=>{Z(ue,{skipPublicationIfPristine:!0})}),{hasUIView:he,viewModeLookup:me,timeViewsCount:Be}=I.useMemo(()=>h.reduce((Ve,Dt)=>{const Fe=y[Dt]==null?"field":"UI";return Ve.viewModeLookup[Dt]=Fe,Fe==="UI"&&(Ve.hasUIView=!0,sa(Dt)&&(Ve.timeViewsCount+=1)),Ve},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,h]),Ue=me[de],We=Ae(()=>Ue),[lt,kt]=I.useState(Ue==="UI"?de:null);lt!==de&&me[de]==="UI"&&kt(de),Jt(()=>{Ue==="field"&&X.open&&(Q(!1),setTimeout(()=>{var Ve,Dt;(Ve=N==null?void 0:N.current)==null||Ve.setSelectedSections(de),(Dt=N==null?void 0:N.current)==null||Dt.focusField(de)}))},[de]),Jt(()=>{if(!X.open)return;let Ve=de;Ue==="field"&&lt!=null&&(Ve=lt),Ve!==J&&me[Ve]==="UI"&&me[J]==="UI"&&(Ve=J),Ve!==de&&pe(Ve),te(Ve,!0)},[X.open]);const et=I.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(H,ue,n.emptyValue),isPickerOpen:X.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:R,pickerVariant:i}),[H,n,ue,X.open,R,i,t.disabled,t.readOnly]),ht=I.useMemo(()=>x||!he?"hidden":S||O?"disabled":"enabled",[x,he,S,O]),Tt=Ae(re),ie=I.useMemo(()=>w&&!Pe?[]:["cancel","nextOrAccept"],[w,Pe]),Ce=I.useMemo(()=>({setValue:Z,setOpen:Q,clearValue:fe,setValueToToday:ge,acceptValueChanges:De,cancelValueChanges:Me,setView:pe,goToNextStep:Tt}),[Z,Q,fe,ge,De,Me,pe,Tt]),Oe=I.useMemo(()=>ee({},Ce,{value:ue,timezone:G,open:X.open,views:h,view:lt,initialView:V,disabled:S??!1,readOnly:O??!1,autoFocus:$??!1,variant:i,orientation:R,popupRef:A,reduceAnimations:F,triggerRef:L,triggerStatus:ht,hasNextStep:Ee,fieldFormat:_??"",name:M,label:T,rootSx:W,rootRef:Y,rootClassName:j}),[Ce,ue,Y,i,R,F,S,O,_,j,M,T,W,ht,Ee,G,X.open,lt,h,V,$]),Le=I.useMemo(()=>({dismissViews:Ie,ownerState:et,hasUIView:he,getCurrentViewMode:We,rootRefObject:q,labelId:K,triggerElement:z,viewContainerRole:d,defaultActionBarActions:ie,onPopperExited:s}),[Ie,et,he,We,K,z,d,ie,s]),Se=I.useMemo(()=>({formatDensity:C,enableAccessibleFieldDOMStructure:P,selectedSections:k,onSelectedSectionsChange:E,fieldRef:N}),[C,P,k,E,N]);return{providerProps:{localeText:u,contextValue:Oe,privateContextValue:Le,actionsContextValue:Ce,fieldPrivateContextValue:Se,isValidContextValue:Ve=>{const Dt=a({adapter:H,value:Ve,timezone:G,props:t});return!n.hasError(Dt)}},renderCurrentView:()=>{if(lt==null)return null;const Ve=y[lt];if(Ve==null)return null;const Dt=ee({},U,{views:h,timezone:G,value:ye,onChange:le,view:lt,onViewChange:pe,showViewSwitcher:Be>1,timeViewsCount:Be},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:oe,onFocusedViewChange:te});return c?D.jsx(c,{viewRenderers:y,popperView:lt,rendererProps:Dt}):Ve(Dt)},ownerState:et}};function sR(e){return ke("MuiPickersLayout",e)}const eo=$e("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),gxe=["actions"],bxe=ne(ap,{name:"MuiPickersLayout",slot:"ActionBar"})({});function lR(e){const{actions:t}=e,n=Je(e,gxe),r=Vn(),{clearValue:i,setValueToToday:a,acceptValueChanges:s,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=jo();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(f=>{switch(f){case"clear":return D.jsx(Sn,{onClick:i,children:r.clearButtonLabel},f);case"cancel":return D.jsx(Sn,{onClick:l,children:r.cancelButtonLabel},f);case"accept":return D.jsx(Sn,{onClick:s,children:r.okButtonLabel},f);case"today":return D.jsx(Sn,{onClick:a,children:r.todayButtonLabel},f);case"next":return D.jsx(Sn,{onClick:c,children:r.nextStepButtonLabel},f);case"nextOrAccept":return u?D.jsx(Sn,{onClick:c,children:r.nextStepButtonLabel},f):D.jsx(Sn,{onClick:s,children:r.okButtonLabel},f);default:return null}});return D.jsx(bxe,ee({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(lR.propTypes={actions:o.arrayOf(o.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const cR=I.memo(lR);process.env.NODE_ENV!=="production"&&(cR.displayName="PickersActionBar");const vxe=["items","changeImportance"],wxe=["getValue"],xxe=ne(lp,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function uR(e){const{items:t,changeImportance:n="accept"}=e,r=Je(e,vxe),{setValue:i}=tve(),a=eve();if(t==null||t.length===0)return null;const s=t.map(l=>{let{getValue:c}=l,u=Je(l,wxe);const d=c({isValid:a});return ee({},u,{label:u.label,onClick:()=>{i(d,{changeImportance:n,shortcut:u})},disabled:!a(d)})});return D.jsx(xxe,ee({dense:!0,sx:[{maxHeight:Ss,maxWidth:200,overflow:"auto"},...Array.isArray(r.sx)?r.sx:[r.sx]]},r,{children:s.map(l=>D.jsx(qC,{children:D.jsx(Sg,ee({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(uR.propTypes={changeImportance:o.oneOf(["accept","set"]),className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,items:o.arrayOf(o.shape({getValue:o.func.isRequired,id:o.string,label:o.string.isRequired})),style:o.object,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Sxe=["ownerState"];function Txe(e){return e.view!==null}const Oxe=(e,t)=>{const{pickerOrientation:n}=t;return _e({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},sR,e)},dR=e=>{const{ownerState:t,defaultActionBarActions:n}=sn(),{view:r}=jo(),i=Xn(),{children:a,slots:s,slotProps:l,classes:c}=e,u=I.useMemo(()=>ee({},t,{layoutDirection:i?"rtl":"ltr",hasShortcuts:!1}),[t,i]),d=Oxe(c,u),f=(s==null?void 0:s.actionBar)??cR,h=dt({elementType:f,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),p=Je(h,Sxe),b=D.jsx(f,ee({},p)),m=s==null?void 0:s.toolbar,y=dt({elementType:m,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),g=Txe(y)&&m?D.jsx(m,ee({},y)):null,v=a,x=s==null?void 0:s.tabs,w=r&&x?D.jsx(x,ee({className:d.tabs},l==null?void 0:l.tabs)):null,S=(s==null?void 0:s.shortcuts)??uR,O=dt({elementType:S,externalSlotProps:l==null?void 0:l.shortcuts,className:d.shortcuts,ownerState:u}),C=Array.isArray(O==null?void 0:O.items)&&O.items.length>0,P=r&&S?D.jsx(S,ee({},O)):null;return{toolbar:g,content:v,tabs:w,actionBar:b,shortcuts:P,ownerState:ee({},u,{hasShortcuts:C})}},Exe=(e,t)=>{const{pickerOrientation:n}=t;return _e({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},sR,e)},fR=ne("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${eo.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${eo.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${eo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${eo.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${eo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${eo.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${eo.shortcuts}`]:{gridColumn:4}}}]}),pR=ne("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),th=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersLayout"}),{toolbar:i,content:a,tabs:s,actionBar:l,shortcuts:c,ownerState:u}=dR(r),{orientation:d,variant:f}=jo(),{sx:h,className:p,classes:b}=r,m=Exe(b,u);return D.jsxs(fR,{ref:n,sx:h,className:we(m.root,p),ownerState:u,children:[d==="landscape"?c:i,d==="landscape"?i:c,D.jsx(pR,{className:m.contentWrapper,ownerState:u,children:f==="desktop"?D.jsxs(I.Fragment,{children:[a,s]}):D.jsxs(I.Fragment,{children:[s,a]})}),l]})});process.env.NODE_ENV!=="production"&&(th.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(th.propTypes={children:o.node,classes:o.object,className:o.string,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function hR(e){const{steps:t}=e;return vve({steps:t,isViewMatchingStep:(n,r)=>r.views==null||r.views.includes(n),onStepChange:({step:n,defaultView:r,setView:i,view:a,views:s})=>{const l=n.views==null?r:n.views.find(c=>s.includes(c));l!==a&&i(l)}})}const Cxe=["props","steps"],Pxe=["ownerState"],T0=e=>{var O;let{props:t,steps:n}=e,r=Je(e,Cxe);const{slots:i,slotProps:a,label:s,inputRef:l,localeText:c}=t,u=hR({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:h}=aR(ee({},r,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),p=d.privateContextValue.labelId,b=((O=a==null?void 0:a.toolbar)==null?void 0:O.hidden)??!1,m=i.field,y=dt({elementType:m,externalSlotProps:a==null?void 0:a.field,additionalProps:ee({},b&&{id:p}),ownerState:h}),g=Je(y,Pxe),v=i.layout??th;let x=p;b&&(s?x=`${p}-label`:x=void 0);const w=ee({},a,{toolbar:ee({},a==null?void 0:a.toolbar,{titleId:p}),popper:ee({"aria-labelledby":x},a==null?void 0:a.popper)}),S=()=>D.jsxs(w$,ee({},d,{children:[D.jsx(m,ee({},g,{slots:i,slotProps:w,inputRef:l})),D.jsx(pxe,{slots:i,slotProps:w,children:D.jsx(v,ee({},w==null?void 0:w.layout,{slots:i,slotProps:w,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(S.displayName="renderPicker"),{renderPicker:S}},Sr=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:h,minDate:p,maxDate:b,shouldDisableDate:m,shouldDisableMonth:y,shouldDisableYear:g,reduceAnimations:v,onMonthChange:x,monthsPerRow:w,onYearChange:S,yearsOrder:O,yearsPerRow:C,slots:P,slotProps:k,loading:E,renderLoading:_,disableHighlightToday:T,readOnly:$,disabled:M,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:W,sx:U,autoFocus:K,fixedWeekNumber:H,displayWeekNumber:F,timezone:R})=>D.jsx(x0,{view:e,onViewChange:t,views:n.filter(ws),focusedView:r&&ws(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:h,minDate:p,maxDate:b,shouldDisableDate:m,shouldDisableMonth:y,shouldDisableYear:g,reduceAnimations:v,onMonthChange:x,monthsPerRow:w,onYearChange:S,yearsOrder:O,yearsPerRow:C,slots:P,slotProps:k,loading:E,renderLoading:_,disableHighlightToday:T,readOnly:$,disabled:M,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:W,sx:U,autoFocus:K,fixedWeekNumber:H,displayWeekNumber:F,timezone:R});process.env.NODE_ENV!=="production"&&(Sr.displayName="renderDateViewCalendar");const O0=I.forwardRef(function(t,n){var c;const r=ft(),i=rR(t,"MuiDesktopDatePicker"),a=ee({day:Sr,month:Sr,year:Sr},i.viewRenderers),s=ee({},i,{closeOnSelect:i.closeOnSelect??!0,viewRenderers:a,format:mc(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:ee({field:Xp},i.slots),slotProps:ee({},i.slotProps,{field:u=>{var d;return ee({},Jn((d=i.slotProps)==null?void 0:d.field,u),Qs(i))},toolbar:ee({hidden:!0},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=T0({ref:n,props:s,valueManager:bn,valueType:"date",validator:Js,steps:null});return l()});process.env.NODE_ENV!=="production"&&(O0.displayName="DesktopDatePicker");O0.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Nt,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","month","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),viewRenderers:o.shape({day:o.func,month:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])};const _xe=ne(ip)({[`& .${Bl.container}`]:{outline:0},[`& .${Bl.paper}`]:{outline:0,minWidth:xs}}),kxe=ne(sp)({"&:first-of-type":{padding:0}});function Dxe(e){const{children:t,slots:n,slotProps:r}=e,{open:i}=jo(),{dismissViews:a,onPopperExited:s}=sn(),l=(n==null?void 0:n.dialog)??_xe,c=(n==null?void 0:n.mobileTransition)??vi;return D.jsx(l,ee({open:i,onClose:()=>{a(),s==null||s()}},r==null?void 0:r.dialog,{TransitionComponent:c,TransitionProps:r==null?void 0:r.mobileTransition,PaperComponent:n==null?void 0:n.mobilePaper,PaperProps:r==null?void 0:r.mobilePaper,children:D.jsx(kxe,{children:t})}))}const $xe=["props","steps"],Rxe=["ownerState"],E0=e=>{var O;let{props:t,steps:n}=e,r=Je(e,$xe);const{slots:i,slotProps:a,label:s,inputRef:l,localeText:c}=t,u=hR({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:h}=aR(ee({},r,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),p=d.privateContextValue.labelId,b=((O=a==null?void 0:a.toolbar)==null?void 0:O.hidden)??!1,m=i.field,y=dt({elementType:m,externalSlotProps:a==null?void 0:a.field,additionalProps:ee({},b&&{id:p}),ownerState:h}),g=Je(y,Rxe),v=i.layout??th;let x=p;b&&(s?x=`${p}-label`:x=void 0);const w=ee({},a,{toolbar:ee({},a==null?void 0:a.toolbar,{titleId:p}),mobilePaper:ee({"aria-labelledby":x},a==null?void 0:a.mobilePaper)}),S=()=>D.jsxs(w$,ee({},d,{children:[D.jsx(m,ee({},g,{slots:i,slotProps:w,inputRef:l})),D.jsx(Dxe,{slots:i,slotProps:w,children:D.jsx(v,ee({},w==null?void 0:w.layout,{slots:i,slotProps:w,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(S.displayName="renderPicker"),{renderPicker:S}},C0=I.forwardRef(function(t,n){var c;const r=ft(),i=rR(t,"MuiMobileDatePicker"),a=ee({day:Sr,month:Sr,year:Sr},i.viewRenderers),s=ee({},i,{viewRenderers:a,format:mc(r,i,!1),slots:ee({field:Xp},i.slots),slotProps:ee({},i.slotProps,{field:u=>{var d;return ee({},Jn((d=i.slotProps)==null?void 0:d.field,u),Qs(i))},toolbar:ee({hidden:!1},(c=i.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=E0({ref:n,props:s,valueManager:bn,valueType:"date",validator:Js,steps:null});return l()});process.env.NODE_ENV!=="production"&&(C0.displayName="MobileDatePicker");C0.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Nt,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","month","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),viewRenderers:o.shape({day:o.func,month:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])};const Mxe=["desktopModeMediaQuery"],pu=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=i0}=r,a=Je(r,Mxe);return fp(i,{defaultMatches:!0})?D.jsx(O0,ee({ref:n},a)):D.jsx(C0,ee({ref:n},a))});process.env.NODE_ENV!=="production"&&(pu.displayName="DatePicker");process.env.NODE_ENV!=="production"&&(pu.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,desktopModeMediaQuery:o.string,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Nt,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","month","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),viewRenderers:o.shape({day:o.func,month:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])});function Ixe(e){return ke("MuiPickersToolbarText",e)}const Nxe=$e("MuiPickersToolbarText",["root"]),Axe=["className","classes","selected","value"],jxe=e=>_e({root:["root"]},Ixe,e),Lxe=ne(Xe,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),nh=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersToolbarText"}),{className:i,classes:a,selected:s,value:l}=r,c=Je(r,Axe),u=jxe(a);return D.jsx(Lxe,ee({ref:n,className:we(u.root,i),component:"span",ownerState:r},s&&{"data-selected":!0},c,{children:l}))});process.env.NODE_ENV!=="production"&&(nh.displayName="PickersToolbarText");const Fxe=["align","className","classes","selected","typographyClassName","value","variant","width"],Bxe=e=>_e({root:["root"]},nR,e),Vxe=ne(Sn,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),rr=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:a,classes:s,selected:l,typographyClassName:c,value:u,variant:d,width:f}=r,h=Je(r,Fxe),p=Bxe(s);return D.jsx(Vxe,ee({variant:"text",ref:n,className:we(p.root,a),ownerState:r},f?{sx:{width:f}}:{},h,{children:D.jsx(nh,{align:i,className:c,variant:d,value:u,selected:l})}))});process.env.NODE_ENV!=="production"&&(rr.displayName="PickersToolbarButton");function zxe(e){return ke("MuiTimePickerToolbar",e)}const Kl=$e("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Wxe=["ampm","ampmInClock","className","classes"],Uxe=(e,t)=>{const{pickerOrientation:n,toolbarDirection:r}=t;return _e({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n==="landscape"&&"hourMinuteLabelLandscape",r==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},zxe,e)},qxe=ne(eh,{name:"MuiTimePickerToolbar",slot:"Root"})({}),Hxe=ne(nh,{name:"MuiTimePickerToolbar",slot:"Separator"})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Yxe=ne("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Kl.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Kl.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{pickerOrientation:"landscape"},style:{marginTop:"auto"}}]}),Gxe=ne("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Kl.ampmLabel}`]:t.ampmLabel},{[`&.${Kl.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${Kl.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function mR(e){const t=yt({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,className:i,classes:a}=t,s=Je(t,Wxe),l=ft(),c=Vn(),u=Jp(),d=Uxe(a,u),{value:f,setValue:h,disabled:p,readOnly:b,view:m,setView:y,views:g}=jo(),v=!!(n&&!r&&g.includes("hours")),{meridiemMode:x,handleMeridiemChange:w}=Fp(f,n,C=>h(C,{changeImportance:"set"})),S=C=>l.isValid(f)?l.format(f,C):"--",O=D.jsx(Hxe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:d.separator});return D.jsxs(qxe,ee({landscapeDirection:"row",toolbarTitle:c.timePickerToolbarTitle,ownerState:u,className:we(d.root,i)},s,{children:[D.jsxs(Yxe,{className:d.hourMinuteLabel,ownerState:u,children:[ja(g,"hours")&&D.jsx(rr,{tabIndex:-1,variant:"h3",onClick:()=>y("hours"),selected:m==="hours",value:S(n?"hours12h":"hours24h")}),ja(g,["hours","minutes"])&&O,ja(g,"minutes")&&D.jsx(rr,{tabIndex:-1,variant:"h3",onClick:()=>y("minutes"),selected:m==="minutes",value:S("minutes")}),ja(g,["minutes","seconds"])&&O,ja(g,"seconds")&&D.jsx(rr,{variant:"h3",onClick:()=>y("seconds"),selected:m==="seconds",value:S("seconds")})]}),v&&D.jsxs(Gxe,{className:d.ampmSelection,ownerState:u,children:[D.jsx(rr,{disableRipple:!0,variant:"subtitle2",selected:x==="am",typographyClassName:d.ampmLabel,value:oo(l,"am"),onClick:b?void 0:()=>w("am"),disabled:p}),D.jsx(rr,{disableRipple:!0,variant:"subtitle2",selected:x==="pm",typographyClassName:d.ampmLabel,value:oo(l,"pm"),onClick:b?void 0:()=>w("pm"),disabled:p})]})]}))}process.env.NODE_ENV!=="production"&&(mR.propTypes={ampm:o.bool,ampmInClock:o.bool,classes:o.object,className:o.string,hidden:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleId:o.string,toolbarFormat:o.string,toolbarPlaceholder:o.node});function yR(e,t){var l;const n=ft(),r=yt({props:e,name:t}),i=V$(r),a=r.ampm??n.is12HourCycleInCurrentLocale(),s=I.useMemo(()=>{var c;return((c=r.localeText)==null?void 0:c.toolbarTitle)==null?r.localeText:ee({},r.localeText,{timePickerToolbarTitle:r.localeText.toolbarTitle})},[r.localeText]);return ee({},r,i,{ampm:a,localeText:s},Wv({views:r.views,openTo:r.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{slots:ee({toolbar:mR},r.slots),slotProps:ee({},r.slotProps,{toolbar:ee({ampm:a,ampmInClock:r.ampmInClock},(l=r.slotProps)==null?void 0:l.toolbar)})})}const md=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:h,minTime:p,maxTime:b,shouldDisableTime:m,minutesStep:y,ampm:g,ampmInClock:v,slots:x,slotProps:w,readOnly:S,disabled:O,sx:C,autoFocus:P,showViewSwitcher:k,disableIgnoringDatePartForTimeValidation:E,timezone:_})=>D.jsx(o0,{view:e,onViewChange:t,focusedView:n&&sa(n)?n:null,onFocusedViewChange:r,views:i.filter(sa),value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:h,minTime:p,maxTime:b,shouldDisableTime:m,minutesStep:y,ampm:g,ampmInClock:v,slots:x,slotProps:w,readOnly:S,disabled:O,sx:C,autoFocus:P,showViewSwitcher:k,disableIgnoringDatePartForTimeValidation:E,timezone:_});process.env.NODE_ENV!=="production"&&(md.displayName="renderTimeViewClock");const rh=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:h,minTime:p,maxTime:b,shouldDisableTime:m,minutesStep:y,ampm:g,slots:v,slotProps:x,readOnly:w,disabled:S,sx:O,autoFocus:C,disableIgnoringDatePartForTimeValidation:P,timeSteps:k,skipDisabled:E,timezone:_})=>D.jsx(a0,{view:e,onViewChange:t,focusedView:n&&sa(n)?n:null,onFocusedViewChange:r,views:i.filter(sa),value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:h,minTime:p,maxTime:b,shouldDisableTime:m,minutesStep:y,ampm:g,slots:v,slotProps:x,readOnly:w,disabled:S,sx:O,autoFocus:C,disableIgnoringDatePartForTimeValidation:P,timeStep:k==null?void 0:k.minutes,skipDisabled:E,timezone:_});process.env.NODE_ENV!=="production"&&(rh.displayName="renderDigitalClockTimeView");const la=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:h,minTime:p,maxTime:b,shouldDisableTime:m,minutesStep:y,ampm:g,slots:v,slotProps:x,readOnly:w,disabled:S,sx:O,autoFocus:C,disableIgnoringDatePartForTimeValidation:P,timeSteps:k,skipDisabled:E,timezone:_})=>D.jsx(s0,{view:e,onViewChange:t,focusedView:n&&Wa(n)?n:null,onFocusedViewChange:r,views:i.filter(sa),value:a,defaultValue:s,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:h,minTime:p,maxTime:b,shouldDisableTime:m,minutesStep:y,ampm:g,slots:v,slotProps:x,readOnly:w,disabled:S,sx:O,autoFocus:C,disableIgnoringDatePartForTimeValidation:P,timeSteps:k,skipDisabled:E,timezone:_});process.env.NODE_ENV!=="production"&&(la.displayName="renderMultiSectionDigitalClockTimeView");const Kxe=["views","format"],gR=(e,t,n)=>{let{views:r,format:i}=t,a=Je(t,Kxe);if(i)return i;const s=[],l=[];if(r.forEach(d=>{sa(d)?l.push(d):ws(d)&&s.push(d)}),l.length===0)return mc(e,ee({views:s},a),!1);if(s.length===0)return lf(e,ee({views:l},a));const c=lf(e,ee({views:l},a));return`${mc(e,ee({views:s},a),!1)} ${c}`},Xxe=(e,t,n)=>n?t.filter(r=>!Wa(r)||r==="hours"):e?[...t,"meridiem"]:t,Zxe=(e,t)=>24*60/((e.hours??1)*(e.minutes??5))<=t;function bR({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,a=ee({hours:1,minutes:5,seconds:5},n),s=Zxe(a,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:a,shouldRenderTimeInASingleColumn:s,views:Xxe(t,r,s)}}const P0=I.forwardRef(function(t,n){var m,y;const r=ft(),i=yR(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:a,views:s,timeSteps:l}=bR(i),c=a?rh:la,u=ee({hours:c,minutes:c,seconds:c,meridiem:c},i.viewRenderers),d=i.ampmInClock??!0,h=((m=u.hours)==null?void 0:m.name)===la.name?s:s.filter(g=>g!=="meridiem"),p=ee({},i,{ampmInClock:d,timeSteps:l,viewRenderers:u,format:lf(r,i),views:a?["hours"]:h,slots:ee({field:Zp},i.slots),slotProps:ee({},i.slotProps,{field:g=>{var v;return ee({},Jn((v=i.slotProps)==null?void 0:v.field,g),Qs(i))},toolbar:ee({hidden:!0,ampmInClock:d},(y=i.slotProps)==null?void 0:y.toolbar)})}),{renderPicker:b}=T0({ref:n,props:p,valueManager:bn,valueType:"time",validator:uu,steps:null});return b()});process.env.NODE_ENV!=="production"&&(P0.displayName="DesktopTimePicker");P0.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.any,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Nt,label:o.node,localeText:o.object,maxTime:o.object,minTime:o.object,minutesStep:o.number,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,open:o.bool,openTo:o.oneOf(["hours","meridiem","minutes","seconds"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableTime:o.func,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thresholdToRenderTimeInASingleColumn:o.number,timeSteps:o.shape({hours:o.number,minutes:o.number,seconds:o.number}),timezone:o.string,value:o.object,view:o.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:o.shape({hours:o.func,meridiem:o.func,minutes:o.func,seconds:o.func}),views:o.arrayOf(o.oneOf(["hours","minutes","seconds"]).isRequired)};const _0=I.forwardRef(function(t,n){var u;const r=ft(),i=yR(t,"MuiMobileTimePicker"),a=ee({hours:md,minutes:md,seconds:md},i.viewRenderers),s=i.ampmInClock??!1,l=ee({},i,{ampmInClock:s,viewRenderers:a,format:lf(r,i),slots:ee({field:Zp},i.slots),slotProps:ee({},i.slotProps,{field:d=>{var f;return ee({},Jn((f=i.slotProps)==null?void 0:f.field,d),Qs(i))},toolbar:ee({hidden:!1,ampmInClock:s},(u=i.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:c}=E0({ref:n,props:l,valueManager:bn,valueType:"time",validator:uu,steps:null});return c()});process.env.NODE_ENV!=="production"&&(_0.displayName="MobileTimePicker");_0.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.any,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Nt,label:o.node,localeText:o.object,maxTime:o.object,minTime:o.object,minutesStep:o.number,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,open:o.bool,openTo:o.oneOf(["hours","minutes","seconds"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableTime:o.func,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["hours","minutes","seconds"]),viewRenderers:o.shape({hours:o.func,minutes:o.func,seconds:o.func}),views:o.arrayOf(o.oneOf(["hours","minutes","seconds"]).isRequired)};const Qxe=["desktopModeMediaQuery"],k0=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=i0}=r,a=Je(r,Qxe);return fp(i,{defaultMatches:!0})?D.jsx(P0,ee({ref:n},a)):D.jsx(_0,ee({ref:n},a))});process.env.NODE_ENV!=="production"&&(k0.displayName="TimePicker");process.env.NODE_ENV!=="production"&&(k0.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,defaultValue:o.object,desktopModeMediaQuery:o.string,disabled:o.bool,disableFuture:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.any,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Nt,label:o.node,localeText:o.object,maxTime:o.object,minTime:o.object,minutesStep:o.number,name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,open:o.bool,openTo:o.oneOf(["hours","meridiem","minutes","seconds"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableTime:o.func,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thresholdToRenderTimeInASingleColumn:o.number,timeSteps:o.shape({hours:o.number,minutes:o.number,seconds:o.number}),timezone:o.string,value:o.object,view:o.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:o.shape({hours:o.func,meridiem:o.func,minutes:o.func,seconds:o.func}),views:o.arrayOf(o.oneOf(["hours","minutes","seconds"]).isRequired)});function Jxe(e){return ke("MuiDateTimePickerTabs",e)}$e("MuiDateTimePickerTabs",["root"]);const eSe=e=>ws(e)?"date":"time",tSe=e=>e==="date"?"day":"hours",nSe=e=>_e({root:["root"]},Jxe,e),rSe=ne(Hc,{name:"MuiDateTimePickerTabs",slot:"Root"})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${rd.indicator}`]:{bottom:"auto",top:0}}})),D0=function(t){const n=yt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=D.jsx(ave,{}),timeIcon:i=D.jsx(sve,{}),hidden:a=typeof window>"u"||window.innerHeight<667,className:s,classes:l,sx:c}=n,u=Vn(),{ownerState:d}=sn(),{view:f,setView:h}=jo(),p=nSe(l),b=(m,y)=>{h(tSe(y))};return a?null:D.jsxs(rSe,{ownerState:d,variant:"fullWidth",value:eSe(f),onChange:b,className:we(s,p.root),sx:c,children:[D.jsx(ys,{value:"date","aria-label":u.dateTableLabel,icon:D.jsx(I.Fragment,{children:r})}),D.jsx(ys,{value:"time","aria-label":u.timeTableLabel,icon:D.jsx(I.Fragment,{children:i})})]})};process.env.NODE_ENV!=="production"&&(D0.displayName="DateTimePickerTabs");process.env.NODE_ENV!=="production"&&(D0.propTypes={classes:o.object,className:o.string,dateIcon:o.node,hidden:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timeIcon:o.node});function oSe(e){return ke("MuiDateTimePickerToolbar",e)}const cm=$e("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),iSe=["ampm","ampmInClock","toolbarFormat","toolbarPlaceholder","toolbarTitle","className","classes"],aSe=(e,t)=>{const{pickerOrientation:n,toolbarDirection:r}=t;return _e({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",r==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",r==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},oSe,e)},sSe=ne(eh,{name:"MuiDateTimePickerToolbar",slot:"Root",shouldForwardProp:e=>ar(e)&&e!=="toolbarVariant"})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${Xwe.content} .${Nxe.root}[data-selected]`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",pickerOrientation:"landscape"},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{paddingLeft:24,paddingRight:0}}]})),lSe=ne("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer"})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),cSe=ne("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",shouldForwardProp:e=>ar(e)&&e!=="toolbarVariant"})({display:"flex",flexDirection:"row",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",pickerOrientation:"portrait"},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({pickerOrientation:e,toolbarVariant:t})=>e==="landscape"&&t!=="desktop",style:{flexDirection:"column"}},{props:({pickerOrientation:e,toolbarVariant:t,toolbarDirection:n})=>e==="landscape"&&t!=="desktop"&&n==="rtl",style:{flexDirection:"column-reverse"}}]}),uSe=ne("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",shouldForwardProp:e=>ar(e)&&e!=="toolbarVariant"})({display:"flex",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),QT=ne(nh,{name:"MuiDateTimePickerToolbar",slot:"Separator",shouldForwardProp:e=>ar(e)&&e!=="toolbarVariant"})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),dSe=ne("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${cm.ampmLabel}`]:t.ampmLabel},{[`&.${cm.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${cm.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]}),vR=I.createContext(null);process.env.NODE_ENV!=="production"&&(vR.displayName="DateTimePickerToolbarOverrideContext");function wR(e){const t=yt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,toolbarFormat:i,toolbarPlaceholder:a="––",toolbarTitle:s,className:l,classes:c}=t,u=Je(t,iSe),{value:d,setValue:f,disabled:h,readOnly:p,variant:b,orientation:m,view:y,setView:g,views:v}=jo(),x=Vn(),w=Jp(),S=aSe(c,w),O=ft(),C=I.useContext(vR),P=C?C.value:d,k=C?C.setValue:f,E=C?C.view:y,_=C?C.setView:g,{meridiemMode:T,handleMeridiemChange:$}=Fp(P,n,F=>k(F,{changeImportance:"set"})),M=C!=null&&C.forceDesktopVariant?"desktop":b,j=M==="desktop",W=!!(n&&!r),U=s??x.dateTimePickerToolbarTitle,K=I.useMemo(()=>O.isValid(P)?i?O.formatByString(P,i):O.format(P,"shortDate"):a,[P,i,a,O]),H=(F,R)=>O.isValid(P)?O.format(P,F):R;return D.jsxs(sSe,ee({className:we(S.root,l),toolbarTitle:U,toolbarVariant:M},u,{ownerState:w,children:[D.jsxs(lSe,{className:S.dateContainer,ownerState:w,children:[v.includes("year")&&D.jsx(rr,{tabIndex:-1,variant:"subtitle1",onClick:()=>_("year"),selected:E==="year",value:H("year","–")}),v.includes("day")&&D.jsx(rr,{tabIndex:-1,variant:j?"h5":"h4",onClick:()=>_("day"),selected:E==="day",value:K})]}),D.jsxs(cSe,{className:S.timeContainer,ownerState:w,toolbarVariant:M,children:[D.jsxs(uSe,{className:S.timeDigitsContainer,ownerState:w,toolbarVariant:M,children:[v.includes("hours")&&D.jsxs(I.Fragment,{children:[D.jsx(rr,{variant:j?"h5":"h3",width:j&&m==="portrait"?Ml:void 0,onClick:()=>_("hours"),selected:E==="hours",value:H(n?"hours12h":"hours24h","--")}),D.jsx(QT,{variant:j?"h5":"h3",value:":",className:S.separator,ownerState:w,toolbarVariant:M}),D.jsx(rr,{variant:j?"h5":"h3",width:j&&m==="portrait"?Ml:void 0,onClick:()=>_("minutes"),selected:E==="minutes"||!v.includes("minutes")&&E==="hours",value:H("minutes","--"),disabled:!v.includes("minutes")})]}),v.includes("seconds")&&D.jsxs(I.Fragment,{children:[D.jsx(QT,{variant:j?"h5":"h3",value:":",className:S.separator,ownerState:w,toolbarVariant:M}),D.jsx(rr,{variant:j?"h5":"h3",width:j&&m==="portrait"?Ml:void 0,onClick:()=>_("seconds"),selected:E==="seconds",value:H("seconds","--")})]})]}),W&&!j&&D.jsxs(dSe,{className:S.ampmSelection,ownerState:w,children:[D.jsx(rr,{variant:"subtitle2",selected:T==="am",typographyClassName:S.ampmLabel,value:oo(O,"am"),onClick:p?void 0:()=>$("am"),disabled:h}),D.jsx(rr,{variant:"subtitle2",selected:T==="pm",typographyClassName:S.ampmLabel,value:oo(O,"pm"),onClick:p?void 0:()=>$("pm"),disabled:h})]}),n&&j&&D.jsx(rr,{variant:"h5",onClick:()=>_("meridiem"),selected:E==="meridiem",value:P&&T?oo(O,T):"--",width:Ml})]})]}))}process.env.NODE_ENV!=="production"&&(wR.propTypes={ampm:o.bool,ampmInClock:o.bool,classes:o.object,className:o.string,hidden:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleId:o.string,toolbarFormat:o.string,toolbarPlaceholder:o.node,toolbarTitle:o.node});function xR(e,t){var p;const n=ft(),r=yt({props:e,name:t}),i=z$(r),a=r.ampm??n.is12HourCycleInCurrentLocale(),s=I.useMemo(()=>{var b;return((b=r.localeText)==null?void 0:b.toolbarTitle)==null?r.localeText:ee({},r.localeText,{dateTimePickerToolbarTitle:r.localeText.toolbarTitle})},[r.localeText]),{openTo:l,views:c}=Wv({views:r.views,openTo:r.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{shouldRenderTimeInASingleColumn:u,thresholdToRenderTimeInASingleColumn:d,views:f,timeSteps:h}=bR({thresholdToRenderTimeInASingleColumn:r.thresholdToRenderTimeInASingleColumn,ampm:a,timeSteps:r.timeSteps,views:c});return ee({},r,i,{timeSteps:h,openTo:l,shouldRenderTimeInASingleColumn:u,thresholdToRenderTimeInASingleColumn:d,views:f,ampm:a,localeText:s,orientation:r.orientation??"portrait",slots:ee({toolbar:wR,tabs:D0},r.slots),slotProps:ee({},r.slotProps,{toolbar:ee({ampm:a},(p=r.slotProps)==null?void 0:p.toolbar)})})}const $0=I.forwardRef(function(t,n){var b;const{toolbar:r,tabs:i,content:a,actionBar:s,shortcuts:l,ownerState:c}=dR(t),{orientation:u}=jo(),{sx:d,className:f,classes:h}=t,p=s&&(((b=s.props.actions)==null?void 0:b.length)??0)>0;return D.jsxs(fR,{ref:n,className:we(eo.root,h==null?void 0:h.root,f),sx:[{[`& .${eo.tabs}`]:{gridRow:4,gridColumn:"1 / 4"},[`& .${eo.actionBar}`]:{gridRow:5}},...Array.isArray(d)?d:[d]],ownerState:c,children:[u==="landscape"?l:r,u==="landscape"?r:l,D.jsxs(pR,{className:we(eo.contentWrapper,h==null?void 0:h.contentWrapper),ownerState:c,sx:{display:"grid"},children:[a,i,p&&D.jsx(ta,{sx:{gridRow:3,gridColumn:"1 / 4"}})]}),s]})});process.env.NODE_ENV!=="production"&&($0.displayName="DesktopDateTimePickerLayout");process.env.NODE_ENV!=="production"&&($0.propTypes={children:o.node,classes:o.object,className:o.string,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const fSe=["openTo","focusedView","timeViewsCount"],SR=function(t){var p,b;const{viewRenderers:n,popperView:r,rendererProps:i}=t,{openTo:a,focusedView:s,timeViewsCount:l}=i,c=Je(i,fSe),u=ee({},c,{autoFocus:!1,focusedView:null,sx:[{[`&.${Py.root}`]:{borderBottom:0},[`&.${Py.root}, .${_y.root}, &.${Cy.root}`]:{maxHeight:Ss}}]}),d=Wa(r),f=d?"day":r,h=d?r:"hours";return D.jsxs(I.Fragment,{children:[(p=n[f])==null?void 0:p.call(n,ee({},i,{view:d?"day":r,focusedView:s&&ws(s)?s:null,views:i.views.filter(ws),sx:[{gridColumn:1},...u.sx]})),l>0&&D.jsxs(I.Fragment,{children:[D.jsx(ta,{orientation:"vertical",sx:{gridColumn:2}}),(b=n[h])==null?void 0:b.call(n,ee({},u,{view:d?r:"hours",focusedView:s&&Wa(s)?s:null,openTo:Wa(a)?a:"hours",views:i.views.filter(Wa),sx:[{gridColumn:3},...u.sx]}))]})]})};process.env.NODE_ENV!=="production"&&(SR.displayName="rendererInterceptor");const R0=I.forwardRef(function(t,n){var h,p,b;const r=ft(),i=xR(t,"MuiDesktopDateTimePicker"),a=i.shouldRenderTimeInASingleColumn?rh:la,s=ee({day:Sr,month:Sr,year:Sr,hours:a,minutes:a,seconds:a,meridiem:a},i.viewRenderers),l=i.ampmInClock??!0,u=((h=s.hours)==null?void 0:h.name)===la.name?i.views:i.views.filter(m=>m!=="meridiem"),d=ee({},i,{viewRenderers:s,format:gR(r,i),views:u,yearsPerRow:i.yearsPerRow??4,ampmInClock:l,slots:ee({field:Qp,layout:$0},i.slots),slotProps:ee({},i.slotProps,{field:m=>{var y;return ee({},Jn((y=i.slotProps)==null?void 0:y.field,m),Qs(i))},toolbar:ee({hidden:!0,ampmInClock:l},(p=i.slotProps)==null?void 0:p.toolbar),tabs:ee({hidden:!0},(b=i.slotProps)==null?void 0:b.tabs)})}),{renderPicker:f}=T0({ref:n,props:d,valueManager:bn,valueType:"date-time",validator:zp,rendererInterceptor:SR,steps:null});return f()});process.env.NODE_ENV!=="production"&&(R0.displayName="DesktopDateTimePicker");R0.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Nt,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,maxDateTime:o.object,maxTime:o.object,minDate:o.object,minDateTime:o.object,minTime:o.object,minutesStep:o.number,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableTime:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thresholdToRenderTimeInASingleColumn:o.number,timeSteps:o.shape({hours:o.number,minutes:o.number,seconds:o.number}),timezone:o.string,value:o.object,view:o.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:o.shape({day:o.func,hours:o.func,meridiem:o.func,minutes:o.func,month:o.func,seconds:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])};const pSe=[{views:m$},{views:T$}],M0=I.forwardRef(function(t,n){var h,p,b,m,y,g;const r=ft(),i=xR(t,"MuiMobileDateTimePicker"),a=i.shouldRenderTimeInASingleColumn?rh:la,s=ee({day:Sr,month:Sr,year:Sr,hours:a,minutes:a,seconds:a,meridiem:a},i.viewRenderers),l=i.ampmInClock??!1,u=((h=s.hours)==null?void 0:h.name)===la.name?i.views:i.views.filter(v=>v!=="meridiem"),d=ee({},i,{viewRenderers:s,format:gR(r,i),views:u,ampmInClock:l,slots:ee({field:Qp},i.slots),slotProps:ee({},i.slotProps,{field:v=>{var x;return ee({},Jn((x=i.slotProps)==null?void 0:x.field,v),Qs(i))},toolbar:ee({hidden:!1,ampmInClock:l},(p=i.slotProps)==null?void 0:p.toolbar),tabs:ee({hidden:!1},(b=i.slotProps)==null?void 0:b.tabs),layout:ee({},(m=i.slotProps)==null?void 0:m.layout,{sx:a0e([{[`& .${Py.root}`]:{width:xs},[`& .${_y.root}`]:{flex:1,maxHeight:Ss-1,[`.${_y.item}`]:{width:"auto"}},[`& .${Cy.root}`]:{width:xs,maxHeight:Ss,flex:1,[`.${Cy.item}`]:{justifyContent:"center"}}}],(g=(y=i.slotProps)==null?void 0:y.layout)==null?void 0:g.sx)})})}),{renderPicker:f}=E0({ref:n,props:d,valueManager:bn,valueType:"date-time",validator:zp,steps:pSe});return f()});process.env.NODE_ENV!=="production"&&(M0.displayName="MobileDateTimePicker");M0.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Nt,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,maxDateTime:o.object,maxTime:o.object,minDate:o.object,minDateTime:o.object,minTime:o.object,minutesStep:o.number,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableTime:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thresholdToRenderTimeInASingleColumn:o.number,timeSteps:o.shape({hours:o.number,minutes:o.number,seconds:o.number}),timezone:o.string,value:o.object,view:o.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:o.shape({day:o.func,hours:o.func,meridiem:o.func,minutes:o.func,month:o.func,seconds:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])};const hSe=["desktopModeMediaQuery"],I0=I.forwardRef(function(t,n){const r=yt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=i0}=r,a=Je(r,hSe);return fp(i,{defaultMatches:!0})?D.jsx(R0,ee({ref:n},a)):D.jsx(M0,ee({ref:n},a))});process.env.NODE_ENV!=="production"&&(I0.displayName="DateTimePicker");process.env.NODE_ENV!=="production"&&(I0.propTypes={ampm:o.bool,ampmInClock:o.bool,autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,desktopModeMediaQuery:o.string,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableIgnoringDatePartForTimeValidation:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:Nt,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,maxDateTime:o.object,maxTime:o.object,minDate:o.object,minDateTime:o.object,minTime:o.object,minutesStep:o.number,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableTime:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,skipDisabled:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thresholdToRenderTimeInASingleColumn:o.number,timeSteps:o.shape({hours:o.number,minutes:o.number,seconds:o.number}),timezone:o.string,value:o.object,view:o.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:o.shape({day:o.func,hours:o.func,meridiem:o.func,minutes:o.func,month:o.func,seconds:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])});var TR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dn,function(){var n="week",r="year";return function(i,a,s){var l=a.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=s(this).startOf(r).add(1,r).date(u),f=s(this).endOf(n);if(d.isBefore(f))return 1}var h=s(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),p=this.diff(h,n,!0);return p<0?s(this).startOf("week").week():Math.ceil(p)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(TR);var mSe=TR.exports;const ySe=Mt(mSe);var OR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var s=i.prototype,l=s.format;a.en.formats=n,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=function(f,h){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,b,m){var y=m&&m.toUpperCase();return b||h[m]||n[m]||h[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,v,x){return v||x.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(OR);var gSe=OR.exports;const bSe=Mt(gSe);var ER={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dn,function(){return function(n,r,i){r.prototype.isBetween=function(a,s,l,c){var u=i(a),d=i(s),f=(c=c||"()")[0]==="(",h=c[1]===")";return(f?this.isAfter(u,l):!this.isBefore(u,l))&&(h?this.isBefore(d,l):!this.isAfter(d,l))||(f?this.isBefore(u,l):!this.isAfter(u,l))&&(h?this.isAfter(d,l):!this.isBefore(d,l))}}})})(ER);var vSe=ER.exports;const wSe=Mt(vSe);var CR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Dn,function(){return function(n,r,i){var a=r.prototype,s=a.format;i.en.ordinal=function(l){var c=["th","st","nd","rd"],u=l%100;return"["+l+(c[(u-20)%10]||c[u]||c[0])+"]"},a.format=function(l){var c=this,u=this.$locale();if(!this.isValid())return s.bind(this)(l);var d=this.$utils(),f=(l||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return u.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return u.ordinal(c.week(),"W");case"w":case"ww":return d.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return d.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return d.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return s.bind(this)(f)}}})})(CR);var xSe=CR.exports;const SSe=Mt(xSe);xn.extend(bSe);xn.extend(ySe);xn.extend(wSe);xn.extend(SSe);const TSe={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},OSe={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},um=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
`),JT=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
`);class N0{constructor({locale:t,formats:n}={}){ae(this,"isMUIAdapter",!0);ae(this,"isTimezoneCompatible",!0);ae(this,"lib","dayjs");ae(this,"escapedCharacters",{start:"[",end:"]"});ae(this,"formatTokenMap",TSe);ae(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});ae(this,"hasUTCPlugin",()=>typeof xn.utc<"u");ae(this,"hasTimezonePlugin",()=>typeof xn.tz<"u");ae(this,"isSame",(t,n,r)=>{const i=this.setTimezone(n,this.getTimezone(t));return t.format(r)===i.format(r)});ae(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return xn.tz.guess();default:return t}});ae(this,"createSystemDate",t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const r=xn.tz.guess();r==="UTC"?n=xn(t):n=xn.tz(t,r)}else n=xn(t);return this.setLocaleToValue(n)});ae(this,"createUTCDate",t=>{if(!this.hasUTCPlugin())throw new Error(um);return this.setLocaleToValue(xn.utc(t))});ae(this,"createTZDate",(t,n)=>{if(!this.hasUTCPlugin())throw new Error(um);if(!this.hasTimezonePlugin())throw new Error(JT);const r=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(xn(t).tz(this.cleanTimezone(n),r))});ae(this,"getLocaleFormats",()=>{const t=xn.Ls,n=this.locale||"en";let r=t[n];return r===void 0&&(process.env.NODE_ENV!=="production"&&iR(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),r=t.en),r.formats});ae(this,"adjustOffset",t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const r=t.tz(this.cleanTimezone(n),!0);if(r.$offset===(t.$offset??0))return t;t.$offset=r.$offset}return t});ae(this,"date",(t,n="default")=>t===null?null:n==="UTC"?this.createUTCDate(t):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,n));ae(this,"getInvalidDate",()=>xn(new Date("Invalid date")));ae(this,"getTimezone",t=>{var n;if(this.hasTimezonePlugin()){const r=(n=t.$x)==null?void 0:n.$timezone;if(r)return r}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"});ae(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(um);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(JT)}return this.setLocaleToValue(xn.tz(t,this.cleanTimezone(n)))});ae(this,"toJsDate",t=>t.toDate());ae(this,"parse",(t,n)=>t===""?null:xn(t,n,this.locale,!0));ae(this,"getCurrentLocaleCode",()=>this.locale||"en");ae(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));ae(this,"expandFormat",t=>{const n=this.getLocaleFormats(),r=i=>i.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(a,s,l)=>s||l.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(i,a,s)=>{const l=s&&s.toUpperCase();return a||n[s]||r(n[l])})});ae(this,"isValid",t=>t==null?!1:t.isValid());ae(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));ae(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));ae(this,"formatNumber",t=>t);ae(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());ae(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));ae(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));ae(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));ae(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));ae(this,"isAfter",(t,n)=>t>n);ae(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));ae(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));ae(this,"isBefore",(t,n)=>t<n);ae(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));ae(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));ae(this,"isWithinRange",(t,[n,r])=>t>=n&&t<=r);ae(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));ae(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));ae(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));ae(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));ae(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));ae(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));ae(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));ae(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));ae(this,"addYears",(t,n)=>this.adjustOffset(t.add(n,"year")));ae(this,"addMonths",(t,n)=>this.adjustOffset(t.add(n,"month")));ae(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));ae(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));ae(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));ae(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));ae(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));ae(this,"getYear",t=>t.year());ae(this,"getMonth",t=>t.month());ae(this,"getDate",t=>t.date());ae(this,"getHours",t=>t.hour());ae(this,"getMinutes",t=>t.minute());ae(this,"getSeconds",t=>t.second());ae(this,"getMilliseconds",t=>t.millisecond());ae(this,"setYear",(t,n)=>this.adjustOffset(t.set("year",n)));ae(this,"setMonth",(t,n)=>this.adjustOffset(t.set("month",n)));ae(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));ae(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));ae(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));ae(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));ae(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));ae(this,"getDaysInMonth",t=>t.daysInMonth());ae(this,"getWeekArray",t=>{const n=this.startOfWeek(this.startOfMonth(t)),r=this.endOfWeek(this.endOfMonth(t));let i=0,a=n;const s=[];for(;a<r;){const l=Math.floor(i/7);s[l]=s[l]||[],s[l].push(a),a=this.addDays(a,1),i+=1}return s});ae(this,"getWeekNumber",t=>t.week());ae(this,"getYearRange",([t,n])=>{const r=this.startOfYear(t),i=this.endOfYear(n),a=[];let s=r;for(;this.isBefore(s,i);)a.push(s),s=this.addYears(s,1);return a});this.locale=t,this.formats=ee({},OSe,n),xn.extend(u$)}getDayOfWeek(t){return t.day()+1}}const ESe=ot(D.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),CSe=({schema:e,rootSchema:t,visible:n,renderers:r,cells:i,path:a,uischemas:s,uischema:l})=>{const c=AD(s)(e,l.scope,a);if(!n)return null;if(c)return B.createElement(Kn,{schema:e,uischema:c,path:a,renderers:r,cells:i});const u=Fv(e.allOf,t,"allOf",l,a,s);return B.createElement(B.Fragment,null,u.map((d,f)=>B.createElement(Kn,{key:f,schema:d.schema,uischema:d.uischema,path:a,renderers:r,cells:i})))},PSe=st(3,Ame);var _Se=wge(CSe);class PR extends B.Component{render(){const{schema:t,combinatorKeyword:n,path:r,rootSchema:i}=this.props,a=Hge(t,n),s=oa.uiSchema(a,"VerticalLayout",void 0,i);let l=!1;return s!==null&&uv(s)&&(l=s.elements.length>0),l?B.createElement(Kn,{schema:a,path:r,uischema:s}):null}}const _R=({open:e,handleClose:t,confirm:n,cancel:r,id:i})=>B.createElement(ip,{open:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},B.createElement(kg,{id:"alert-dialog-title"},"Clear form?"),B.createElement(sp,null,B.createElement(_g,{id:"alert-dialog-description"},"Your data will be cleared if you navigate away from this tab. Do you want to proceed?")),B.createElement(ap,null,B.createElement(Sn,{onClick:r,color:"primary"},"No"),B.createElement(Sn,{onClick:n,color:"primary",autoFocus:!0,id:`${i}-confirm-yes`},"Yes"))),kSe=({handleChange:e,schema:t,rootSchema:n,indexOfFittingSchema:r,visible:i,path:a,renderers:s,cells:l,uischema:c,uischemas:u,id:d,data:f})=>{const[h,p]=B.useState(r||0),[b,m]=B.useState(!1),[y,g]=B.useState(0),v=B.useCallback(()=>m(!1),[m]),x=B.useCallback((P,k)=>{pt(f)||typeof f==typeof Uo(C[k].schema,n)?p(k):(g(k),m(!0))},[m,p,f]),w=P=>{e(a,Uo(C[P].schema,n)),p(P)},S=B.useCallback(()=>{w(y),m(!1)},[e,Uo,y]),O="anyOf",C=Fv(t.anyOf,n,O,c,a,u);return i?B.createElement(B.Fragment,null,B.createElement(PR,{schema:t,combinatorKeyword:O,path:a,rootSchema:n}),B.createElement(Hc,{value:h,onChange:x},C.map(P=>B.createElement(ys,{key:P.label,label:P.label}))),C.map((P,k)=>h===k&&B.createElement(Kn,{key:k,schema:P.schema,uischema:P.uischema,path:a,renderers:s,cells:l})),B.createElement(_R,{cancel:v,confirm:S,id:"anyOf-"+d,open:b,handleClose:v})):null},DSe=st(3,jme);var $Se=vge(kSe);const RSe=ne(dp)({borderBottom:"none"}),vc=({children:e,...t})=>B.createElement(RSe,{...t},e),MSe=ne(NC)(({theme:e})=>({color:e.palette.error.main})),kR=({errorMessages:e,id:t})=>B.createElement(cr,{id:t,title:e},B.createElement(MSe,{badgeContent:e.split(`
`).length},B.createElement(ybe,{color:"inherit"}))),ISe={paddingLeft:0,paddingRight:0},NSe=B.memo(function({numColumns:t,errors:n,label:r,description:i,path:a,addItem:s,schema:l,enabled:c,translations:u,rootSchema:d,disableAdd:f}){return B.createElement(qc,null,B.createElement(vc,{colSpan:t},B.createElement(Fg,null,B.createElement(Rt,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},B.createElement(Rt,{item:!0},B.createElement(Xe,{variant:"h6"},r)),B.createElement(Rt,{item:!0},n.length!==0&&B.createElement(Rt,{item:!0},B.createElement(kR,{id:"tooltip-validation",errorMessages:n})))),i&&B.createElement(cn,null,i))),c&&!f?B.createElement(vc,{align:"right",style:ISe},B.createElement(cr,{id:"tooltip-add",title:u.addTooltip,placement:"bottom"},B.createElement(Pt,{"aria-label":u.addAriaLabel,onClick:s(a,Uo(l,d)),size:"large"},B.createElement(s$,null)))):null)}),eO={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},DR=(e,t,n,r,i)=>{if(t.type==="object")return $R(t).map(a=>{var c,u;const s=fv.compose(n,a),l={propName:a,schema:t,title:((u=(c=t.properties)==null?void 0:c[a])==null?void 0:u.title)??nb(a),rowPath:n,cellPath:s,enabled:r,cells:i};return B.createElement(e,{key:s,...l})});{const a={schema:t,rowPath:n,cellPath:n,enabled:r};return B.createElement(e,{key:n,...a})}},$R=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],ASe=({numColumns:e,translations:t})=>B.createElement(qc,null,B.createElement(vc,{colSpan:e},B.createElement(Xe,{align:"center"},t.noDataMessage))),jSe=B.memo(function({title:t}){return B.createElement(dp,null,t)}),LSe=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),r=wD(mbe(LD(n,t.schema)(e.core).map(i=>i.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:r,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},tO=e=>({type:"Control",scope:e,label:!1}),FSe=B.memo(function({path:t,propName:n,schema:r,rootSchema:i,errors:a,enabled:s,renderers:l,cells:c,isValid:u}){return B.createElement(vc,null,r.properties?B.createElement(_T,{schema:pr.schema(r,`#/properties/${tf(n)}`,i),uischema:tO(`#/properties/${tf(n)}`),path:t,enabled:s,renderers:l,cells:c}):B.createElement(_T,{schema:r,uischema:tO("#"),path:t,enabled:s,renderers:l,cells:c}),B.createElement(cn,{error:!u},!u&&a))}),BSe=e=>{const t=Ap(),n=LSe(t,e),r=pt(n.errors);return B.createElement(FSe,{...n,isValid:r})},VSe=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:r,moveUpCreator:i,moveDownCreator:a,enableUp:s,enableDown:l,showSortButtons:c,enabled:u,cells:d,path:f,translations:h,disableRemove:p})=>{const b=B.useMemo(()=>i(f,n),[i,f,n]),m=B.useMemo(()=>a(f,n),[a,f,n]);return B.createElement(qc,{key:e,hover:!0},DR(BSe,t,e,u,d),u?B.createElement(vc,{style:c?eO.fixedCell:eO.fixedCellSmall},B.createElement(Rt,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center"},c?B.createElement(B.Fragment,null,B.createElement(Rt,{item:!0},B.createElement(cr,{id:"tooltip-up",title:h.up,placement:"bottom",open:s?void 0:!1},B.createElement(Pt,{"aria-label":h.upAriaLabel,onClick:b,disabled:!s,size:"large"},B.createElement(a$,null)))),B.createElement(Rt,{item:!0},B.createElement(cr,{id:"tooltip-down",title:h.down,placement:"bottom",open:l?void 0:!1},B.createElement(Pt,{"aria-label":h.downAriaLabel,onClick:m,disabled:!l,size:"large"},B.createElement(i$,null))))):null,p?null:B.createElement(Rt,{item:!0},B.createElement(cr,{id:"tooltip-remove",title:h.removeTooltip,placement:"bottom"},B.createElement(Pt,{"aria-label":h.removeAriaLabel,onClick:()=>r(e,n),size:"large"},B.createElement(Rr,null)))))):null)},zSe=B.memo(VSe),WSe=({data:e,path:t,schema:n,openDeleteDialog:r,moveUp:i,moveDown:a,uischema:s,config:l,enabled:c,cells:u,translations:d,disableRemove:f})=>{if(e===0)return B.createElement(ASe,{numColumns:$R(n).length+1,translations:d});const p=It({},l,s.options);return B.createElement(B.Fragment,null,xp(e).map(b=>{const m=fv.compose(t,`${b}`);return B.createElement(zSe,{key:m,childPath:m,rowIndex:b,schema:n,openDeleteDialog:r,moveUpCreator:i,moveDownCreator:a,enableUp:b!==0,enableDown:b!==e-1,showSortButtons:p.showSortButtons||p.showArrayTableSortButtons,enabled:c,cells:u,path:t,translations:d,disableRemove:f})}))};class USe extends B.Component{constructor(){super(...arguments),this.addItem=(t,n)=>this.props.addItem(t,n)}render(){const{label:t,description:n,path:r,schema:i,rootSchema:a,uischema:s,errors:l,openDeleteDialog:c,visible:u,enabled:d,cells:f,translations:h,disableAdd:p,disableRemove:b,config:m}=this.props,y=It({},m,s.options),g=p||y.disableAdd,v=b||y.disableRemove,x=s,w=i.type==="object",S=w?DR(jSe,i,r,d,f):void 0;return u?B.createElement(hP,null,B.createElement(yP,null,B.createElement(NSe,{errors:l,label:t,description:n,addItem:this.addItem,numColumns:w?S.length:1,path:r,uischema:x,schema:i,rootSchema:a,enabled:d,translations:h,disableAdd:g}),w&&B.createElement(qc,null,S,d?B.createElement(dp,null):null)),B.createElement(mP,null,B.createElement(WSe,{openDeleteDialog:c,translations:h,...this.props,disableRemove:v}))):null}}const qSe=B.memo(function({open:t,onClose:n,onConfirm:r,onCancel:i,title:a,message:s,acceptText:l,declineText:c}){return B.createElement(ip,{open:t,keepMounted:!0,onClose:n,"aria-labelledby":"alert-dialog-confirmdelete-title","aria-describedby":"alert-dialog-confirmdelete-description"},B.createElement(kg,{id:"alert-dialog-confirmdelete-title"},a),B.createElement(sp,null,B.createElement(_g,{id:"alert-dialog-confirmdelete-description"},s)),B.createElement(ap,null,B.createElement(Sn,{onClick:i,color:"primary"},c),B.createElement(Sn,{onClick:r,color:"primary"},l)))}),HSe=e=>{const[t,n]=B.useState(!1),[r,i]=B.useState(void 0),[a,s]=B.useState(void 0),{removeItems:l,visible:c,translations:u}=e,d=B.useCallback((b,m)=>{n(!0),i(b),s(m)},[n,i,s]),f=B.useCallback(()=>n(!1),[n]),h=B.useCallback(()=>{const b=r.substring(0,r.lastIndexOf("."));l(b,[a])(),n(!1)},[n,r,a]),p=B.useCallback(()=>n(!1),[n]);return c?B.createElement(B.Fragment,null,B.createElement(USe,{...e,openDeleteDialog:d,translations:u}),B.createElement(qSe,{open:t,onCancel:f,onConfirm:h,onClose:p,acceptText:u.deleteDialogAccept,declineText:u.deleteDialogDecline,title:u.deleteDialogTitle,message:u.deleteDialogMessage})):null},YSe=st(3,Ks(Bme,zme));var GSe=Bv(ei(Vv(HSe)));const mr=()=>{const[e,t]=B.useState(!1),n=B.useCallback(()=>t(!0),[]),r=B.useCallback(()=>t(!1),[]);return[e,n,r]},RR=e=>{const{description:t,errors:n,visible:r,required:i,label:a,data:s,className:l,id:c,enabled:u,uischema:d,path:f,handleChange:h,options:p,config:b,getOptionLabel:m,renderOption:y,filterOptions:g,isValid:v}=e,x=It({},b,d.options),[w,S]=B.useState(s??""),[O,C,P]=mr(),k=p.find($=>$.value===s)??null,E=!Cr(r,t,O,x.showUnfocusedDescription),_=E?t:v?null:n,T=E&&!v?n:null;return r?B.createElement(B.Fragment,null,B.createElement(MC,{className:l,id:c,disabled:!u,value:k,onChange:($,M)=>{h(f,M==null?void 0:M.value)},inputValue:w,onInputChange:($,M)=>{S(M)},autoHighlight:!0,autoComplete:!0,fullWidth:!0,options:p,getOptionLabel:m||($=>$==null?void 0:$.label),freeSolo:!1,renderInput:$=>B.createElement(Do,{label:a,type:"text",inputProps:$.inputProps,inputRef:$.InputProps.ref,autoFocus:x.focus,disabled:!u,...$,id:c,required:i&&!x.hideRequiredAsterisk,error:!v,fullWidth:!x.trim,InputLabelProps:s?{shrink:!0}:void 0,onFocus:C,onBlur:P,focused:O}),renderOption:y,filterOptions:g}),B.createElement(cn,{error:!v&&!E},_),B.createElement(cn,{error:!v},T)):null},A0=B.memo(function(t){const{data:n,className:r,id:i,enabled:a,uischema:s,path:l,handleChange:c,config:u,inputProps:d}=t,f=It({},u,s.options),h=It({},d,{autoFocus:!!f.focus}),p=!!n;return B.createElement(Eg,{checked:p,onChange:(b,m)=>c(l,m),className:r,id:i,disabled:!a,inputProps:h})});xn.extend(u$);const j0=(e,t,n)=>r=>{if(!r)t(e,void 0);else if(r.toString()!=="Invalid Date"){const i=MR(r,n);t(e,i)}},L0=(e,t,n,r,i,a)=>s=>{const l=xn(s.target.value,n),c=MR(l,r);c.toString()==="Invalid Date"?(t(e,void 0),i()):t(e,c),a()},MR=(e,t)=>{let n=e.format(t);const r=t.indexOf("YYYY");if(e.year()<1e3&&r!==-1){const i=n.slice(0,r),a=n.slice(r);e.year()>=100?n=[i,0,a].join(""):e.year()>=10?n=[i,0,0,a].join(""):e.year()>=1&&(n=[i,0,0,0,a].join(""))}return n},F0=(e,t)=>{if(!e)return null;const n=xn(e,t);return n.toString()==="Invalid Date"?null:n},KSe=(e,t,n,r,i,a)=>e.map((s,l)=>B.createElement(Rt,{item:!0,key:`${n}-${l}`,xs:!0},B.createElement(Kn,{uischema:s,schema:t,path:n,enabled:r,renderers:i,cells:a}))),XSe=({visible:e,elements:t,schema:n,path:r,enabled:i,direction:a,renderers:s,cells:l})=>pt(t)||!e?null:B.createElement(Rt,{container:!0,direction:a,spacing:a==="row"?2:0},KSe(t,n,r,i,s,l)),hu=B.memo(XSe),IR=e=>function(n){const r=Ap(),i=Xs({jsonforms:{...r}});return B.createElement(e,{...n,ajv:i})},nO={standard:Fc,filled:Lc,outlined:Vc},NR="outlined";function AR(){const{variant:e=NR}=yt({props:{},name:"MuiTextField"});return e}function ha(){const e=AR();return nO[e]??nO[NR]}const ZSe=e=>e.target.value,ma=(e,t,n,r,i=ZSe,a=300,s=!1,l=!1)=>{const[c,u]=B.useState(n??t);B.useEffect(()=>{u(n??t)},[n]);const d=B.useCallback(XD(p=>e(r,p),a),[e,r,a]);B.useEffect(()=>{!l&&s&&d.flush()},[l,s,d]);const f=B.useCallback(p=>{const b=i(p);u(b??t),d(b)},[d,i]),h=B.useCallback(()=>{u(t),e(r,void 0)},[t,e,r]);return[c,f,h]},QSe={"enum.none":"None"},JSe=e=>e===""?void 0:parseInt(e,10),eTe=e=>JSe(e.target.value),jR=B.memo(function(t){const[n,r,i]=mr(),{data:a,className:s,id:l,enabled:c,uischema:u,isValid:d,path:f,handleChange:h,config:p,label:b}=t,m=ha(),y={step:"1"},g=It({},p,u.options),[v,x]=ma(h,"",a,f,eTe,void 0,!0,n);return B.createElement(m,{label:b,type:"number",value:v,onFocus:r,onBlur:i,onChange:x,className:s,id:l,disabled:!c,autoFocus:g.focus,inputProps:y,fullWidth:!0,error:!d})}),tTe=e=>e===""?void 0:parseFloat(e),nTe=e=>tTe(e.target.value),LR=B.memo(function(t){const[n,r,i]=mr(),{data:a,className:s,id:l,enabled:c,uischema:u,isValid:d,path:f,handleChange:h,config:p,label:b}=t,m=ha(),y={step:"0.1"},g=It({},p,u.options),[v,x]=ma(h,"",a,f,nTe,void 0,!0,n);return B.createElement(m,{type:"number",label:b,value:v,onChange:x,onFocus:r,onBlur:i,className:s,id:l,disabled:!c,autoFocus:g.focus,inputProps:y,fullWidth:!0,error:!d})}),rTe=B.memo(function(t){const[n,r,i]=mr(),{className:a,id:s,enabled:l,uischema:c,isValid:u,path:d,handleChange:f,schema:h,config:p,label:b}=t,m=ha(),y=h.maxLength,g=It({},p,c.options);let v;g.restrict?v={maxLength:y}:v={};const x=t.toFormatted(t.data),w=B.useCallback(C=>t.fromFormatted(C.currentTarget.value),[t.fromFormatted]),[S,O]=ma(f,"",x,d,w,void 0,!0,n);return B.createElement(m,{type:"text",value:S,onChange:O,onFocus:r,onBlur:i,className:a,id:s,label:b,disabled:!l,autoFocus:g.focus,multiline:g.multi,fullWidth:!g.trim||y===void 0,inputProps:v,error:!u})}),oTe=e=>e.target.value===""?void 0:e.target.value,FR=B.memo(function(t){var j,W,U;const[n,r,i]=mr(),[a,s]=B.useState(!1),{data:l,config:c,className:u,id:d,enabled:f,uischema:h,isValid:p,path:b,handleChange:m,schema:y,muiInputProps:g,label:v,inputComponent:x}=t,w=ha(),S=y.maxLength,O=It({},c,h.options);let C;O.restrict?C={maxLength:S}:C={},C=It(C,g),O.trim&&S!==void 0&&(C.size=S);const[P,k,E]=ma(m,"",l,b,oTe,void 0,!0,n),_=()=>s(!0),T=()=>s(!1),$=uo(),M={background:((U=(W=(j=$.jsonforms)==null?void 0:j.input)==null?void 0:W.delete)==null?void 0:U.background)||$.palette.background.default,borderRadius:"50%"};return B.createElement(w,{label:v,type:O.format==="password"?"password":"text",value:P,onChange:k,className:u,onBlur:i,onFocus:r,id:d,disabled:!f,autoFocus:O.focus,multiline:O.multi,fullWidth:!O.trim||S===void 0,inputProps:C,error:!p,onPointerEnter:_,onPointerLeave:T,endAdornment:B.createElement($g,{position:"end",style:{display:!a||!f||l===void 0?"none":"flex",position:"absolute",right:0}},B.createElement(Pt,{"aria-label":"Clear input field",onClick:E,size:"large"},B.createElement(vbe,{style:M}))),inputComponent:x})}),iTe=B.memo(function(t){const{data:n,className:r,id:i,enabled:a,uischema:s,isValid:l,path:c,handleChange:u,config:d,label:f}=t,h=ha(),p=It({},d,s.options),[b,m]=ma(u,"",n,c);return B.createElement(h,{type:"time",value:b,onChange:m,className:r,id:i,label:f,disabled:!a,autoFocus:p.focus,fullWidth:!0,error:!l})}),oh=B.memo(function(t){const{data:n,className:r,id:i,enabled:a,schema:s,uischema:l,isValid:c,path:u,handleChange:d,options:f,config:h,label:p,t:b,multiple:m}=t,y=It({},h,l.options),g=B.useMemo(()=>b("enum.none",QSe["enum.none"],{schema:s,uischema:l,path:u}),[b,s,l,u]);return B.createElement(zc,{className:r,id:i,label:p,disabled:!a,autoFocus:y.focus,value:n!==void 0?n:"",onChange:v=>d(u,v.target.value||void 0),fullWidth:!0,multiple:m||!1,error:!c},[B.createElement(ms,{value:"",key:"jsonforms.enum.none"},B.createElement("em",null,g))].concat(f.map(v=>B.createElement(ms,{value:v.value,key:v.value},v.label))))}),BR=B.memo(function(t){const{data:n,className:r,id:i,enabled:a,uischema:s,path:l,handleChange:c,config:u,inputProps:d}=t,f=It({},u,s.options),h=It({},d,{autoFocus:!!f.focus}),p=!!n;return B.createElement(pP,{checked:p,onChange:(b,m)=>c(l,m),className:r,id:i,disabled:!a,inputProps:h})}),aTe=({config:e,id:t,schema:n,visible:r,errors:i,description:a,label:s,required:l,path:c,options:u,data:d,addItem:f,removeItem:h,handleChange:p,...b})=>{const[m,y,g]=mr(),v=i.length===0,x=It({},e,b.uischema.options),w=!Cr(r,a,m,x.showUnfocusedDescription);return r?B.createElement(Io,{component:"fieldset",fullWidth:!x.trim,onFocus:y,onBlur:g},B.createElement(lo,{error:!v,component:"legend",required:su(l,x.hideRequiredAsterisk)},s),B.createElement(Dg,{row:!0},u.map((S,O)=>{const C=fv.compose(c,`${O}`),P=d!=null&&d.includes(S.value)?S.value:void 0;return B.createElement(Ms,{id:t+"-label-"+S.value,key:S.value,control:B.createElement(A0,{id:t+"-"+S.value,key:"checkbox-"+S.value,isValid:pt(i),path:C,handleChange:(k,E)=>E?f(c,S.value):h(c,S.value),data:P,errors:i,schema:n,visible:r,...b}),label:S.label})})),B.createElement(cn,{error:!v},v?w?a:null:i)):null},sTe=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),lTe=e=>e.type==="string"&&e.enum!==void 0,cTe=st(5,Xt(en("Control"),Xt(Kr(e=>Fn(e,"array")&&!Array.isArray(e.items)&&e.uniqueItems===!0),$v("items",(e,t)=>{const n=e.$ref?fr(t,e.$ref,t):e;return sTe(n)||lTe(n)}))));var uTe=Cge(aTe);const dTe=({renderers:e,cells:t,uischemas:n,schema:r,label:i,path:a,visible:s,enabled:l,uischema:c,rootSchema:u})=>{const d=B.useMemo(()=>Mp(n,r,c.scope,a,()=>pt(a)?oa.uiSchema(r,"VerticalLayout",void 0,u):{...oa.uiSchema(r,"Group",void 0,u),label:i},c,u),[n,r,c.scope,a,i,c,u]);return s?B.createElement(Kn,{visible:s,enabled:l,schema:r,uischema:d,path:a,renderers:e,cells:t}):null},fTe=st(2,Nme);var pTe=xge(dTe);const hTe=({handleChange:e,schema:t,path:n,renderers:r,cells:i,rootSchema:a,id:s,visible:l,indexOfFittingSchema:c,uischema:u,uischemas:d,data:f})=>{const[h,p]=B.useState(!1),[b,m]=B.useState(c||0),[y,g]=B.useState(0),v=B.useCallback(()=>p(!1),[p]),x=B.useCallback(()=>{p(!1)},[p]),w=B.useMemo(()=>Fv(t.oneOf,a,"oneOf",u,n,d),[t,a,u,n,d]),S=P=>{e(n,Uo(w[P].schema,a)),m(P)},O=B.useCallback(()=>{S(y),p(!1)},[e,Uo,y]),C=B.useCallback((P,k)=>{g(k),pt(f)?S(k):p(!0)},[p,m,f]);return l?B.createElement(B.Fragment,null,B.createElement(PR,{schema:t,combinatorKeyword:"oneOf",path:n,rootSchema:a}),B.createElement(Hc,{value:b,onChange:C},w.map(P=>B.createElement(ys,{key:P.label,label:P.label}))),w.map((P,k)=>b===k&&B.createElement(Kn,{key:k,schema:P.schema,uischema:P.uischema,path:n,renderers:r,cells:i})),B.createElement(_R,{cancel:x,confirm:O,id:"oneOf-"+s,open:h,handleClose:v})):null},mTe=st(3,Lme);var yTe=bge(hTe);const gTe=st(1,en("Label")),bTe=({text:e,visible:t})=>t?B.createElement(Xe,{variant:"h6"},e):null;var vTe=n$(bTe);const VR=B.memo(function({label:t,description:n,errors:r,addItem:i,path:a,enabled:s,createDefault:l,translations:c,disableAdd:u}){return B.createElement(gP,{disableGutters:!0},B.createElement(Fg,null,B.createElement(Rt,{container:!0,alignItems:"center",justifyContent:"space-between"},B.createElement(Rt,{item:!0},B.createElement(Rt,{container:!0,justifyContent:"flex-start",alignItems:"center",spacing:2},B.createElement(Rt,{item:!0},B.createElement(Xe,{variant:"h6"},t)),B.createElement(Rt,{item:!0},r.length!==0&&B.createElement(Rt,{item:!0},B.createElement(kR,{id:"tooltip-validation",errorMessages:r}))))),s&&!u&&B.createElement(Rt,{item:!0},B.createElement(Rt,{container:!0},B.createElement(Rt,{item:!0},B.createElement(cr,{id:"tooltip-add",title:c.addTooltip,placement:"bottom"},B.createElement(Pt,{"aria-label":c.addTooltip,onClick:i(a,l()),size:"large"},B.createElement(s$,null))))))),n&&B.createElement(cn,null,n)))}),wTe=({index:e,childLabel:t,selected:n,enabled:r,handleSelect:i,removeItem:a,path:s,translations:l,disableRemove:c})=>B.createElement(UC,{selected:n,onClick:i(e)},B.createElement(HC,null,B.createElement(Tg,{"aria-label":"Index"},e+1)),B.createElement(Rg,{primary:t}),r&&!c&&B.createElement(cp,null,B.createElement(cr,{id:"tooltip-remove",title:l.removeTooltip,placement:"bottom"},B.createElement(Pt,{"aria-label":l.removeAriaLabel,onClick:a(s,e),size:"large"},B.createElement(Rr,null)))));var xTe=Sge(wTe);const STe=({uischemas:e,schema:t,uischema:n,path:r,enabled:i,errors:a,visible:s,label:l,required:c,removeItems:u,addItem:d,data:f,renderers:h,cells:p,config:b,rootSchema:m,description:y,disableAdd:g,disableRemove:v,translations:x})=>{const[w,S]=B.useState(void 0),O=B.useCallback(($,M)=>()=>{u($,[M])(),w===M?S(void 0):w>M&&S(w-1)},[u,S]),C=B.useCallback($=>()=>S($),[S]),P=B.useCallback(()=>Uo(t,m),[Uo]),k=B.useMemo(()=>Mp(e,t,n.scope,r,void 0,n,m),[e,t,n.scope,r,n,m]),E=It({},b,n.options),_=g||E.disableAdd,T=v||E.disableRemove;return B.useEffect(()=>{S(void 0)},[t]),s?B.createElement(B.Fragment,null,B.createElement(VR,{translations:x,label:qD(l,c,E.hideRequiredAsterisk),description:y,errors:a,path:r,enabled:i,addItem:d,createDefault:P,disableAdd:_}),B.createElement(Rt,{container:!0,direction:"row",spacing:2},B.createElement(Rt,{item:!0,xs:3},B.createElement(lp,null,f>0?d$(xp(f),$=>B.createElement(xTe,{index:$,path:r,schema:t,enabled:i,handleSelect:C,removeItem:O,selected:w===$,key:$,uischema:k,childLabelProp:E.elementLabelProp,translations:x,disableRemove:T})):B.createElement("p",null,x.noDataMessage))),B.createElement(Rt,{item:!0,xs:!0},w!==void 0?B.createElement(Kn,{renderers:h,cells:p,visible:s,schema:t,uischema:k,path:Ys(r,`${w}`)}):B.createElement(Xe,{variant:"h6"},x.noSelection)))):null},TTe=st(4,Xt(en("ListWithDetail"),ID));var OTe=Bv(ei(Vv(STe)));const el=e=>{const[t,n,r]=mr(),{id:i,description:a,errors:s,label:l,uischema:c,visible:u,required:d,config:f,input:h}=e,p=AR(),b=s.length===0,m=It({},f,c.options),y=!Cr(u,a,t,m.showUnfocusedDescription),g=y?a:b?null:s,v=y&&!b?s:null,x=h;return u?B.createElement(Io,{fullWidth:!m.trim,onFocus:n,onBlur:r,variant:p,id:i},B.createElement(Bc,{htmlFor:i+"-input",error:!b,required:su(d,m.hideRequiredAsterisk)},l),B.createElement(x,{...e,id:i+"-input",isValid:b,visible:u}),B.createElement(cn,{error:!b&&!y},g),B.createElement(cn,{error:!b},v)):null},zR=e=>e.find(t=>t.enum!==void 0&&(t.type==="string"||t.type===void 0)),WR=e=>e.find(t=>t.type==="string"&&t.enum===void 0),ETe=e=>{const[t,n,r]=mr(),{data:i,config:a,className:s,id:l,enabled:c,uischema:u,isValid:d,path:f,handleChange:h,schema:p,label:b}=e,m=ha(),y=zR(p.anyOf),v=WR(p.anyOf).maxLength,x=B.useMemo(()=>It({},a,u.options),[a,u.options]),w=B.useMemo(()=>{let P={};return x.restrict&&(P={maxLength:v}),x.trim&&v!==void 0&&(P.size=v),P.list=e.id+"datalist",P},[x,e.id]),[S,O]=ma(h,"",i,f,void 0,void 0,!0,t),C=B.createElement("datalist",{id:e.id+"datalist"},y.enum.map(P=>B.createElement("option",{value:P,key:P})));return B.createElement(m,{type:"text",value:S,onChange:O,onFocus:n,onBlur:r,className:s,id:l,label:b,disabled:!c,autoFocus:x.focus,fullWidth:!x.trim||v===void 0,inputProps:w,error:!d,endAdornment:C})};class CTe extends Rye{render(){return B.createElement(el,{...this.props,input:ETe})}}const PTe=e=>{const t=zR(e),n=WR(e),i=e.filter(a=>a!==t||a!==n).find(a=>a.type&&a.type!=="string");return t&&n&&!i},_Te=Xt(en("Control"),Kr(e=>Object.prototype.hasOwnProperty.call(e,"anyOf")&&PTe(e.anyOf))),kTe=st(5,_Te);var DTe=gn(CTe);const $Te=({data:e,visible:t,label:n,id:r,enabled:i,uischema:a,schema:s,rootSchema:l,handleChange:c,errors:u,path:d,config:f,description:h})=>{const p=u.length===0,b=It({},f,a.options),m=!Cr(t,h,!1,b.showUnfocusedDescription),y=!m&&!Cr(t,h,!0,!0),g=m?h:p?null:u,v=m&&!p?u:null,x=[],w=`${r}-tip`,S=`${r}-help1`,O=`${r}-help2`;y&&x.push(w),g&&x.push(S),v&&x.push(O);const C=x.join(" ");return t?B.createElement(B.Fragment,null,B.createElement(cr,{id:w,title:y?h:""},B.createElement(Ms,{label:n,id:r,control:B.createElement(A0,{id:`${r}-input`,isValid:pt(u),data:e,enabled:i,visible:t,path:d,uischema:a,schema:s,rootSchema:l,handleChange:c,errors:u,config:f,inputProps:{"aria-describedby":C}})})),B.createElement(cn,{id:S,error:!p&&!m},g),B.createElement(cn,{id:O,error:!p},v)):null},RTe=st(2,Rp);var MTe=gn($Te);const ITe=({data:e,visible:t,label:n,id:r,enabled:i,uischema:a,schema:s,rootSchema:l,handleChange:c,errors:u,path:d,config:f,description:h})=>{const p=u.length===0,b=It({},f,a.options),m=!Cr(t,h,!1,b.showUnfocusedDescription),y=!m&&!Cr(t,h,!0,!0),g=m?h:p?null:u,v=m&&!p?u:null,x=[],w=`${r}-tip`,S=`${r}-help1`,O=`${r}-help2`;y&&x.push(w),g&&x.push(S),v&&x.push(O);const C=x.join(" ");return t?B.createElement(B.Fragment,null,B.createElement(cr,{id:w,title:y?h:""},B.createElement(Ms,{label:n,id:r,control:B.createElement(BR,{id:`${r}-input`,isValid:pt(u),data:e,enabled:i,visible:t,path:d,uischema:a,schema:s,rootSchema:l,handleChange:c,errors:u,config:f,inputProps:{"aria-describedby":C}})})),B.createElement(cn,{id:S,error:!p&&!m},g),B.createElement(cn,{id:O,error:!p},v)):null},NTe=st(3,Xt(Rp,po("toggle",!0)));var ATe=gn(ITe);const jTe=e=>{const[t,n,r]=mr(),{description:i,id:a,errors:s,label:l,uischema:c,visible:u,enabled:d,required:f,path:h,handleChange:p,data:b,config:m}=e,y=s.length===0,g=It({},m,c.options),v=!Cr(u,i,t,g.showUnfocusedDescription),[x,w]=B.useState(0),[S,O]=B.useState(!1),C=g.dateFormat??"YYYY-MM-DD",P=g.dateSaveFormat??Hhe,k=g.views??["year","day"],E=v?i:y?null:s,_=v&&!y?s:null,T=B.useCallback(()=>w(W=>W+1),[]),$=B.useMemo(()=>j0(h,p,P),[h,p,P]),M=B.useMemo(()=>L0(h,p,C,P,T,r),[h,p,C,P,T]),j=F0(b,P);return u?B.createElement(Ci,{dateAdapter:N0},B.createElement(pu,{open:S,onOpen:()=>O(!0),onClose:()=>O(!1),key:x,label:l,value:j,onAccept:$,format:C,views:k,disabled:!d,slotProps:{actionBar:({wrapperVariant:W})=>({actions:W==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:a+"-input",required:f&&!g.hideRequiredAsterisk,autoFocus:g.focus,error:!y,fullWidth:!g.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:M}}}),B.createElement(cn,{error:!y&&!v},E),B.createElement(cn,{error:!y},_)):null},LTe=st(4,Nv);var FTe=gn(jTe);const BTe=e=>{const[t,n,r]=mr(),{id:i,description:a,errors:s,label:l,uischema:c,visible:u,enabled:d,required:f,path:h,handleChange:p,data:b,config:m}=e,y=It({},m,c.options),g=s.length===0,v=!Cr(u,a,t,y.showUnfocusedDescription),x=y.dateTimeFormat??"YYYY-MM-DD HH:mm",w=y.dateTimeSaveFormat??Ghe,[S,O]=B.useState(0),[C,P]=B.useState(!1),k=y.views??["year","day","hours","minutes"],E=v?a:g?null:s,_=v&&!g?s:null,T=B.useCallback(()=>O(W=>W+1),[]),$=B.useMemo(()=>j0(h,p,w),[h,p,w]),M=B.useMemo(()=>L0(h,p,x,w,T,r),[h,p,x,w,T]),j=F0(b,w);return u?B.createElement(Ci,{dateAdapter:N0},B.createElement(I0,{open:C,onOpen:()=>P(!0),onClose:()=>P(!1),key:S,label:l,value:j,onAccept:$,format:x,ampm:!!y.ampm,views:k,disabled:!d,slotProps:{actionBar:({wrapperVariant:W})=>({actions:W==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:i+"-input",required:f&&!y.hideRequiredAsterisk,autoFocus:y.focus,error:!g,fullWidth:!y.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:M}}}),B.createElement(cn,{error:!g&&!v},E),B.createElement(cn,{error:!g},_)):null},VTe=st(2,Fme);var zTe=gn(BTe);const WTe=e=>{const{config:t,uischema:n,errors:r}=e,i=It({},t,n.options),a=r.length===0;return i.autocomplete===!1?B.createElement(el,{...e,input:oh}):B.createElement(RR,{...e,isValid:a})},UTe=st(2,Mv);var qTe=e$(ei(B.memo(WTe)),!1);const HTe=e=>B.createElement(el,{...e,input:jR}),YTe=st(2,$D);var GTe=gn(HTe);const KTe=e=>{const[t,n,r]=mr(),{id:i,errors:a,label:s,schema:l,description:c,enabled:u,visible:d,required:f,path:h,handleChange:p,data:b,config:m}=e,y=a.length===0,g=It({},m,e.uischema.options),[v,x]=ma(p,"",b,h,void 0,void 0,!0,t),w=g.format??l.format,S=!Cr(d,c,t,g.showUnfocusedDescription);return d?B.createElement(Do,{required:su(f,g.hideRequiredAsterisk),id:i+"-input",label:s,type:w,error:!y,disabled:!u,fullWidth:!g.trim,onFocus:n,onBlur:r,helperText:y?S?c:null:a,InputLabelProps:{shrink:!0},value:v,onChange:x}):null},XTe=st(2,Ks(Nv,Av));var ZTe=gn(KTe);const QTe=e=>B.createElement(el,{...e,input:LR}),JTe=st(2,RD);var eOe=gn(QTe);const tOe=e=>{const{config:t,uischema:n,errors:r}=e,i=It({},t,n.options),a=r.length===0;return i.autocomplete===!1?B.createElement(el,{...e,input:oh}):B.createElement(RR,{...e,isValid:a})},nOe=st(5,Iv);var rOe=t$(ei(B.memo(tOe)),!1);const UR=e=>{const[t,n,r]=mr(),{config:i,label:a,required:s,description:l,errors:c,data:u,visible:d,options:f,handleChange:h,path:p,enabled:b}=e,m=c.length===0,y=It({},i,e.uischema.options),g=!Cr(d,l,t,y.showUnfocusedDescription);return d?B.createElement(Io,{component:"fieldset",fullWidth:!y.trim,onFocus:n,onBlur:r},B.createElement(lo,{error:!m,component:"legend",required:su(s,y.hideRequiredAsterisk)},a),B.createElement(jg,{value:e.data??"",row:!0},f.map(v=>B.createElement(Ms,{value:v.value,key:v.label,control:B.createElement(Ag,{checked:u===v.value,onChange:()=>h(p,v.value)}),label:v.label,disabled:!b}))),B.createElement(cn,{error:!m},m?g?l:null:c)):null},oOe=e=>B.createElement(UR,{...e}),iOe=st(20,Xt(Iv,po("format","radio")));var aOe=t$(oOe);const sOe=e=>B.createElement(UR,{...e}),lOe=st(20,Xt(Mv,po("format","radio")));var cOe=e$(sOe);const uOe=e=>{const[t,n,r]=mr(),{id:i,data:a,description:s,enabled:l,errors:c,label:u,schema:d,handleChange:f,visible:h,path:p,required:b,config:m}=e,y=c.length===0,g=It({},m,e.uischema.options),v={whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",width:"100%"},x={display:"flex"},w={flexGrow:"1"},S={marginTop:"7px"},O=!Cr(h,s,t,g.showUnfocusedDescription),C=B.useCallback((P,k)=>f(p,Number(k)),[p,f]);return h?B.createElement(Io,{fullWidth:!g.trim,onFocus:n,onBlur:r,id:i},B.createElement(lo,{htmlFor:i,error:!y,component:"legend",required:su(b,g.hideRequiredAsterisk)},B.createElement(Xe,{id:i+"-typo",style:v,variant:"caption"},u)),B.createElement("div",{style:x},B.createElement(Xe,{style:w,variant:"caption",align:"left"},d.minimum),B.createElement(Xe,{style:w,variant:"caption",align:"right"},d.maximum)),B.createElement(sP,{style:S,min:d.minimum,max:d.maximum,value:Number(a||d.default),onChange:C,id:i+"-input",disabled:!l,step:d.multipleOf||1}),B.createElement(cn,{error:!y},y?O?s:null:c)):null},dOe=st(4,Wme);var fOe=gn(uOe);const pOe=e=>B.createElement(el,{...e,input:FR}),hOe=st(1,MD);var qR=gn(pOe);const mOe=e=>{const[t,n,r]=mr(),{id:i,description:a,errors:s,label:l,uischema:c,visible:u,enabled:d,required:f,path:h,handleChange:p,data:b,config:m}=e,y=It({},m,c.options),g=s.length===0,[v,x]=B.useState(0),[w,S]=B.useState(!1),O=!Cr(u,a,t,y.showUnfocusedDescription),C=y.timeFormat??"HH:mm",P=y.timeSaveFormat??Yhe,k=y.views??["hours","minutes"],E=O?a:g?null:s,_=O&&!g?s:null,T=B.useCallback(()=>x(W=>W+1),[]),$=B.useMemo(()=>j0(h,p,P),[h,p,P]),M=B.useMemo(()=>L0(h,p,C,P,T,r),[h,p,C,P,T]),j=F0(b,P);return u?B.createElement(Ci,{dateAdapter:N0},B.createElement(k0,{open:w,onOpen:()=>S(!0),onClose:()=>S(!1),key:v,label:l,value:j,onAccept:$,format:C,ampm:!!y.ampm,views:k,disabled:!d,slotProps:{actionBar:({wrapperVariant:W})=>({actions:W==="desktop"?[]:["clear","cancel","accept"]}),textField:{id:i+"-input",required:f&&!y.hideRequiredAsterisk,autoFocus:y.focus,error:!g,fullWidth:!y.trim,inputProps:{type:"text"},InputLabelProps:b?{shrink:!0}:void 0,onFocus:n,onBlur:M}}}),B.createElement(cn,{error:!g&&!O},E),B.createElement(cn,{error:!g},_)):null},yOe=st(4,Av);var gOe=gn(mOe);const dm={float:"right"},bOe=e=>{const[t]=B.useState(gy("expand-panel"));B.useEffect(()=>()=>{by(t)},[t]);const{enabled:n,childLabel:r,childPath:i,index:a,expanded:s,moveDown:l,moveUp:c,enableMoveDown:u,enableMoveUp:d,handleExpansion:f,removeItems:h,path:p,rootSchema:b,schema:m,uischema:y,uischemas:g,renderers:v,cells:x,config:w,translations:S,disableRemove:O}=e,C=B.useMemo(()=>Mp(g,m,y.scope,p,void 0,y,b),[g,m,y.scope,p,y,b]),P=It({},w,y.options),k=P.showSortButtons||P.showArrayLayoutSortButtons;return B.createElement(mC,{"aria-labelledby":t,expanded:s,onChange:f(i)},B.createElement(vC,{expandIcon:B.createElement(ESe,null)},B.createElement(Rt,{container:!0,alignItems:"center"},B.createElement(Rt,{item:!0,xs:7,md:9},B.createElement(Rt,{container:!0,alignItems:"center"},B.createElement(Rt,{item:!0,xs:2,md:1},B.createElement(Tg,{"aria-label":"Index"},a+1)),B.createElement(Rt,{item:!0,xs:10,md:11},B.createElement("span",{id:t},r)))),B.createElement(Rt,{item:!0,xs:5,md:3},B.createElement(Rt,{container:!0,justifyContent:"flex-end"},B.createElement(Rt,{item:!0},B.createElement(Rt,{container:!0,direction:"row",justifyContent:"center",alignItems:"center"},k&&n?B.createElement(B.Fragment,null,B.createElement(Rt,{item:!0},B.createElement(cr,{id:"tooltip-up",title:S.up,placement:"bottom",open:d?void 0:!1},B.createElement(Pt,{onClick:c(p,a),style:dm,disabled:!d,"aria-label":S.upAriaLabel,size:"large"},B.createElement(a$,null)))),B.createElement(Rt,{item:!0},B.createElement(cr,{id:"tooltip-down",title:S.down,placement:"bottom",open:u?void 0:!1},B.createElement(Pt,{onClick:l(p,a),style:dm,disabled:!u,"aria-label":S.downAriaLabel,size:"large"},B.createElement(i$,null))))):"",n&&!O&&B.createElement(Rt,{item:!0},B.createElement(cr,{id:"tooltip-remove",title:S.removeTooltip,placement:"bottom"},B.createElement(Pt,{onClick:h(p,[a]),style:dm,"aria-label":S.removeAriaLabel,size:"large"},B.createElement(Rr,null)))))))))),B.createElement(yC,null,B.createElement(Kn,{enabled:n,schema:m,uischema:C,path:i,key:i,renderers:v,cells:x})))},vOe=B.memo(bOe),wOe=e=>({removeItems:B.useCallback((t,n)=>r=>{r.stopPropagation(),e(ro(t,i=>(n.sort().reverse().forEach(a=>i.splice(a,1)),i),{type:"REMOVE",indices:n}))},[e]),moveUp:B.useCallback((t,n)=>r=>{r.stopPropagation(),e(ro(t,i=>(WD(i,n),i),{type:"MOVE",moves:[{from:n,to:n-1}]}))},[e]),moveDown:B.useCallback((t,n)=>r=>{r.stopPropagation(),e(ro(t,i=>(UD(i,n),i),{type:"MOVE",moves:[{from:n,to:n+1}]}))},[e])}),xOe=e=>function({ctx:n,props:r}){const i=wOe(n.dispatch),{childLabelProp:a,schema:s,uischema:l,rootSchema:c,path:u,index:d,uischemas:f}=r,h=Ys(u,`${d}`),p=B.useMemo(()=>KD(n.core.data,h,a,s,c,n.i18n.translate,l),[n.core.data,h,a,s,c,n.i18n.translate,l]);return B.createElement(e,{...r,...i,childLabel:p,childPath:h,uischemas:f})},SOe=e=>Nn(xOe(e));var TOe=SOe(vOe);const OOe=st(1,en("Group")),EOe={marginBottom:"10px"},COe=B.memo(function({visible:t,enabled:n,uischema:r,label:i,...a}){const s=r;return t?B.createElement(FC,{style:EOe},!pt(i)&&B.createElement(VC,{title:i}),B.createElement(BC,null,B.createElement(hu,{...a,visible:t,enabled:n,elements:s.elements}))):null}),POe=({uischema:e,schema:t,path:n,visible:r,enabled:i,renderers:a,cells:s,direction:l,label:c})=>{const u=e;return B.createElement(COe,{elements:u.elements,schema:t,path:n,direction:l,visible:r,enabled:i,uischema:e,renderers:a,cells:s,label:c})};var _Oe=Ao(POe);const kOe=Ime(1,OOe),DOe=st(2,en("HorizontalLayout")),$Oe=({uischema:e,renderers:t,cells:n,schema:r,path:i,enabled:a,visible:s})=>{const c={elements:e.elements,schema:r,path:i,enabled:a,direction:"row",visible:s};return B.createElement(hu,{...c,renderers:t,cells:n})};var ROe=Ao($Oe);const MOe=st(1,en("VerticalLayout")),IOe=({uischema:e,schema:t,path:n,enabled:r,visible:i,renderers:a,cells:s})=>{const c={elements:e.elements,schema:t,path:n,enabled:r,direction:"column",visible:i};return B.createElement(hu,{...c,renderers:a,cells:s})};var NOe=Ao(IOe);const AOe=Xt(en("Categorization"),e=>{const t=e;return t.elements&&t.elements.reduce((n,r)=>n&&r.type==="Category",!0)}),jOe=st(1,AOe),LOe=e=>{const{data:t,path:n,renderers:r,cells:i,schema:a,uischema:s,visible:l,enabled:c,selected:u,onChange:d,ajv:f,t:h}=e,p=s,[b,m]=B.useState(s),[y,g]=B.useState(u??0),v=B.useMemo(()=>p.elements.filter(C=>Gs(C,t,void 0,f)),[p,t,f]);p!==b&&(g(0),m(p));const x=y>=p.elements.length?0:y,w={elements:v[x]?v[x].elements:[],schema:a,path:n,direction:"column",enabled:c,visible:l,renderers:r,cells:i},S=(C,P)=>{d&&d(P,x),g(P)},O=B.useMemo(()=>v.map(C=>kv(C,h)),[v,h]);return l?B.createElement(B.Fragment,null,B.createElement(wC,{position:"static"},B.createElement(Hc,{value:x,onChange:S,textColor:"inherit",indicatorColor:"secondary",variant:"scrollable"},v.map((C,P)=>B.createElement(ys,{key:P,label:O[P]})))),B.createElement("div",{style:{marginTop:"0.5em"}},B.createElement(hu,{...w,key:x}))):null};var FOe=IR(ei(Ao(LOe)));const BOe=e=>{const[t,n]=B.useState(!1),r=B.useCallback(()=>Uo(e.schema,e.rootSchema),[e.schema]),i=B.useCallback(_=>(T,$)=>{n($?_:!1)},[]),a=_=>t===Ys(e.path,`${_}`),{enabled:s,data:l,path:c,schema:u,uischema:d,errors:f,addItem:h,renderers:p,cells:b,label:m,required:y,rootSchema:g,config:v,uischemas:x,description:w,disableAdd:S,disableRemove:O,translations:C}=e,P=It({},v,e.uischema.options),k=S||P.disableAdd,E=O||P.disableRemove;return B.createElement("div",null,B.createElement(VR,{translations:C,label:qD(m,y,P.hideRequiredAsterisk),description:w,errors:f,path:c,enabled:s,addItem:h,createDefault:r,disableAdd:k}),B.createElement("div",null,l>0?d$(xp(l),_=>B.createElement(TOe,{enabled:s,index:_,expanded:a(_),schema:u,path:c,handleExpansion:i,uischema:d,renderers:p,cells:b,key:_,rootSchema:g,enableMoveUp:_!=0,enableMoveDown:_<l-1,config:v,childLabelProp:P.elementLabelProp,uischemas:x,translations:C,disableRemove:E})):B.createElement("p",null,C.noDataMessage)))},VOe=B.memo(BOe),zOe=({visible:e,addItem:t,translations:n,...r})=>{const i=B.useCallback((a,s)=>t(a,s),[t]);return e?B.createElement(VOe,{translations:n,visible:e,addItem:i,...r}):null},WOe=st(4,Vme);var UOe=Bv(ei(Vv(zOe)));const qOe=e=>B.createElement(A0,{...e}),HOe=st(2,Rp);var YOe=Ei(qOe);const GOe=e=>B.createElement(BR,{...e}),KOe=st(3,Xt(Rp,po("toggle",!0)));var XOe=Ei(GOe);const ZOe=e=>{const{data:t,className:n,id:r,enabled:i,uischema:a,path:s,handleChange:l,config:c,label:u}=e,d=ha(),f=It({},c,a.options);return B.createElement(d,{type:"date",value:t||"",onChange:h=>l(s,h.target.value),className:n,id:r,label:u,disabled:!i,autoFocus:f.focus,fullWidth:!0})},QOe=st(2,Nv);var JOe=Ei(ZOe);const eEe=e=>B.createElement(oh,{...e}),tEe=st(2,Mv);var nEe=Oge(ei(B.memo(eEe)),!1);const rEe=e=>B.createElement(jR,{...e}),oEe=st(2,$D);var iEe=Ei(rEe);const aEe=e=>B.createElement(LR,{...e}),sEe=st(2,RD);var lEe=Ei(aEe);const cEe=e=>B.createElement(rTe,{...e}),uEe=st(4,Ume);var dEe=Ei(cEe);const fEe=e=>B.createElement(oh,{...e}),pEe=st(2,Iv);var hEe=Ege(ei(B.memo(fEe)),!1);const mEe=e=>B.createElement(FR,{...e}),yEe=st(1,MD);var gEe=Ei(mEe);const bEe=e=>B.createElement(iTe,{...e}),vEe=st(2,Av);var wEe=Ei(bEe);const xEe=st(2,Xt(en("Categorization"),Yme,po("variant","stepper"))),SEe=e=>{const[t,n]=B.useState(0),r=O=>{n(O)},{data:i,path:a,renderers:s,schema:l,uischema:c,visible:u,cells:d,config:f,ajv:h,t:p}=e,b=c,m=It({},f,c.options),y={textAlign:"right",width:"100%",margin:"1em auto"},g={float:"right"},v={marginRight:"1em"},x=B.useMemo(()=>b.elements.filter(O=>Gs(O,i,void 0,h)),[b,i,h]),w={elements:x[t].elements,schema:l,path:a,direction:"column",visible:u,renderers:s,cells:d},S=B.useMemo(()=>x.map(O=>kv(O,p)),[x,p]);return u?B.createElement(B.Fragment,null,B.createElement(fP,{activeStep:t,nonLinear:!0},x.map((O,C)=>B.createElement(lP,{key:S[C]},B.createElement(uP,{onClick:()=>r(C)},S[C])))),B.createElement("div",null,B.createElement(hu,{...w})),m.showNavButtons?B.createElement("div",{style:y},B.createElement(Sn,{style:g,variant:"contained",color:"primary",disabled:t>=x.length-1,onClick:()=>r(t+1)},"Next"),B.createElement(Sn,{style:v,color:"secondary",variant:"contained",disabled:t<=0,onClick:()=>r(t-1)},"Previous")):B.createElement(B.Fragment,null)):null};var TEe=IR(ei(Ao(SEe)));const HR=[{tester:YSe,renderer:GSe},{tester:RTe,renderer:MTe},{tester:NTe,renderer:ATe},{tester:XTe,renderer:ZTe},{tester:UTe,renderer:qTe},{tester:YTe,renderer:GTe},{tester:JTe,renderer:eOe},{tester:hOe,renderer:qR},{tester:VTe,renderer:zTe},{tester:LTe,renderer:FTe},{tester:yOe,renderer:gOe},{tester:dOe,renderer:fOe},{tester:fTe,renderer:pTe},{tester:PSe,renderer:_Se},{tester:DSe,renderer:$Se},{tester:mTe,renderer:yTe},{tester:lOe,renderer:cOe},{tester:iOe,renderer:aOe},{tester:nOe,renderer:rOe},{tester:kOe,renderer:_Oe},{tester:DOe,renderer:ROe},{tester:MOe,renderer:NOe},{tester:jOe,renderer:FOe},{tester:xEe,renderer:TEe},{tester:WOe,renderer:UOe},{tester:gTe,renderer:vTe},{tester:TTe,renderer:OTe},{tester:kTe,renderer:DTe},{tester:cTe,renderer:uTe}],YR=[{tester:HOe,cell:YOe},{tester:KOe,cell:XOe},{tester:QOe,cell:JOe},{tester:tEe,cell:nEe},{tester:oEe,cell:iEe},{tester:sEe,cell:lEe},{tester:uEe,cell:dEe},{tester:pEe,cell:hEe},{tester:yEe,cell:gEe},{tester:vEe,cell:wEe}],GR=ot(D.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),KR=6048e5,OEe=864e5,XR=6e4,ZR=36e5,EEe=1e3,rO=Symbol.for("constructDateFrom");function un(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&rO in e?e[rO](t):e instanceof Date?new e.constructor(t):new Date(t)}function at(e,t){return un(t||e,e)}function wc(e,t,n){const r=at(e,n==null?void 0:n.in);return isNaN(t)?un((n==null?void 0:n.in)||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function QR(e,t,n){return un(e,+at(e)+t)}function CEe(e,t,n){return QR(e,t*1e3)}function PEe(e,t,n){const r=at(e,n==null?void 0:n.in);return r.setTime(r.getTime()+t*XR),r}function _Ee(e,t,n){return QR(e,t*ZR)}function kEe(e,t,n){return wc(e,t*7,n)}function JR(e,t,n){const r=at(e,n==null?void 0:n.in);if(isNaN(t))return un(e,NaN);if(!t)return r;const i=r.getDate(),a=un(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const s=a.getDate();return i>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function DEe(e,t,n){return JR(e,t*12,n)}function oO(e,t){const n=at(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}let $Ee={};function ya(){return $Ee}function REe(e,t){var l,c,u,d;const n=ya(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,i=at(e,t==null?void 0:t.in),a=i.getDay(),s=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+s),i.setHours(23,59,59,999),i}function iO(e,t){const n=at(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}const MEe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},IEe=(e,t,n)=>{let r;const i=MEe[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function fm(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const NEe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},AEe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jEe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},LEe={date:fm({formats:NEe,defaultWidth:"full"}),time:fm({formats:AEe,defaultWidth:"full"}),dateTime:fm({formats:jEe,defaultWidth:"full"})},FEe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},BEe=(e,t,n,r)=>FEe[e];function vl(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):s;i=e.formattingValues[l]||e.formattingValues[s]}else{const s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const VEe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},zEe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},WEe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},UEe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},qEe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},HEe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},YEe=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},GEe={ordinalNumber:YEe,era:vl({values:VEe,defaultWidth:"wide"}),quarter:vl({values:zEe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:vl({values:WEe,defaultWidth:"wide"}),day:vl({values:UEe,defaultWidth:"wide"}),dayPeriod:vl({values:qEe,defaultWidth:"wide",formattingValues:HEe,defaultFormattingWidth:"wide"})};function wl(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const s=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?XEe(l,f=>f.test(s)):KEe(l,f=>f.test(s));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(s.length);return{value:u,rest:d}}}function KEe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function XEe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ZEe(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=n.valueCallback?n.valueCallback(s):s;const l=t.slice(i.length);return{value:s,rest:l}}}const QEe=/^(\d+)(th|st|nd|rd)?/i,JEe=/\d+/i,eCe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},tCe={any:[/^b/i,/^(a|c)/i]},nCe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rCe={any:[/1/i,/2/i,/3/i,/4/i]},oCe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},iCe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},aCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},sCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},lCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},cCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},uCe={ordinalNumber:ZEe({matchPattern:QEe,parsePattern:JEe,valueCallback:e=>parseInt(e,10)}),era:wl({matchPatterns:eCe,defaultMatchWidth:"wide",parsePatterns:tCe,defaultParseWidth:"any"}),quarter:wl({matchPatterns:nCe,defaultMatchWidth:"wide",parsePatterns:rCe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:wl({matchPatterns:oCe,defaultMatchWidth:"wide",parsePatterns:iCe,defaultParseWidth:"any"}),day:wl({matchPatterns:aCe,defaultMatchWidth:"wide",parsePatterns:sCe,defaultParseWidth:"any"}),dayPeriod:wl({matchPatterns:lCe,defaultMatchWidth:"any",parsePatterns:cCe,defaultParseWidth:"any"})},B0={code:"en-US",formatDistance:IEe,formatLong:LEe,formatRelative:BEe,localize:GEe,match:uCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function uf(e){const t=at(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function mu(e,...t){const n=un.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function xc(e,t){const n=at(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function dCe(e,t,n){const[r,i]=mu(n==null?void 0:n.in,e,t),a=xc(r),s=xc(i),l=+a-uf(a),c=+s-uf(s);return Math.round((l-c)/OEe)}function eM(e,t){const n=at(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function fCe(e,t){const n=at(e,t==null?void 0:t.in);return dCe(n,eM(n))+1}function Zo(e,t){var l,c,u,d;const n=ya(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,i=at(e,t==null?void 0:t.in),a=i.getDay(),s=(a<r?7:0)+a-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function Os(e,t){return Zo(e,{...t,weekStartsOn:1})}function tM(e,t){const n=at(e,t==null?void 0:t.in),r=n.getFullYear(),i=un(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=Os(i),s=un(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const l=Os(s);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function pCe(e,t){const n=tM(e,t),r=un(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Os(r)}function nM(e,t){const n=at(e,t==null?void 0:t.in),r=+Os(n)-+pCe(n);return Math.round(r/KR)+1}function V0(e,t){var d,f,h,p;const n=at(e,t==null?void 0:t.in),r=n.getFullYear(),i=ya(),a=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(h=i.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,s=un((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const l=Zo(s,t),c=un((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);const u=Zo(c,t);return+n>=+l?r+1:+n>=+u?r:r-1}function hCe(e,t){var l,c,u,d;const n=ya(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,i=V0(e,t),a=un((t==null?void 0:t.in)||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Zo(a,t)}function z0(e,t){const n=at(e,t==null?void 0:t.in),r=+Zo(n,t)-+hCe(n,t);return Math.round(r/KR)+1}function Kt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const li={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Kt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Kt(n+1,2)},d(e,t){return Kt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Kt(e.getHours()%12||12,t.length)},H(e,t){return Kt(e.getHours(),t.length)},m(e,t){return Kt(e.getMinutes(),t.length)},s(e,t){return Kt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Kt(i,t.length)}},$a={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},aO={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return li.y(e,t)},Y:function(e,t,n,r){const i=V0(e,r),a=i>0?i:1-i;if(t==="YY"){const s=a%100;return Kt(s,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Kt(a,t.length)},R:function(e,t){const n=tM(e);return Kt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Kt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Kt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Kt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return li.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Kt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=z0(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Kt(i,t.length)},I:function(e,t,n){const r=nM(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Kt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):li.d(e,t)},D:function(e,t,n){const r=fCe(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Kt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Kt(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Kt(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Kt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=$a.noon:r===0?i=$a.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=$a.evening:r>=12?i=$a.afternoon:r>=4?i=$a.morning:i=$a.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return li.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):li.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Kt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Kt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):li.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):li.s(e,t)},S:function(e,t){return li.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return lO(r);case"XXXX":case"XX":return ji(r);case"XXXXX":case"XXX":default:return ji(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return lO(r);case"xxxx":case"xx":return ji(r);case"xxxxx":case"xxx":default:return ji(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+sO(r,":");case"OOOO":default:return"GMT"+ji(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+sO(r,":");case"zzzz":default:return"GMT"+ji(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Kt(r,t.length)},T:function(e,t,n){return Kt(+e,t.length)}};function sO(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Kt(a,2)}function lO(e,t){return e%60===0?(e>0?"-":"+")+Kt(Math.abs(e)/60,2):ji(e,t)}function ji(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Kt(Math.trunc(r/60),2),a=Kt(r%60,2);return n+i+t+a}const cO=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},rM=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},mCe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return cO(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",cO(r,t)).replace("{{time}}",rM(i,t))},Sc={p:rM,P:mCe},yCe=/^D+$/,gCe=/^Y+$/,bCe=["D","DD","YY","YYYY"];function oM(e){return yCe.test(e)}function iM(e){return gCe.test(e)}function ky(e,t,n){const r=vCe(e,t,n);if(console.warn(r),bCe.includes(e))throw new RangeError(r)}function vCe(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function wCe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ki(e){return!(!wCe(e)&&typeof e!="number"||isNaN(+at(e)))}const xCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,SCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,TCe=/^'([^]*?)'?$/,OCe=/''/g,ECe=/[a-zA-Z]/;function W0(e,t,n){var d,f,h,p,b,m,y,g;const r=ya(),i=(n==null?void 0:n.locale)??r.locale??B0,a=(n==null?void 0:n.firstWeekContainsDate)??((f=(d=n==null?void 0:n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(h=r.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,s=(n==null?void 0:n.weekStartsOn)??((m=(b=n==null?void 0:n.locale)==null?void 0:b.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((g=(y=r.locale)==null?void 0:y.options)==null?void 0:g.weekStartsOn)??0,l=at(e,n==null?void 0:n.in);if(!Ki(l))throw new RangeError("Invalid time value");let c=t.match(SCe).map(v=>{const x=v[0];if(x==="p"||x==="P"){const w=Sc[x];return w(v,i.formatLong)}return v}).join("").match(xCe).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const x=v[0];if(x==="'")return{isToken:!1,value:CCe(v)};if(aO[x])return{isToken:!0,value:v};if(x.match(ECe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:v}});i.localize.preprocessor&&(c=i.localize.preprocessor(l,c));const u={firstWeekContainsDate:a,weekStartsOn:s,locale:i};return c.map(v=>{if(!v.isToken)return v.value;const x=v.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&iM(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&oM(x))&&ky(x,t,String(e));const w=aO[x[0]];return w(l,x,i.localize,u)}).join("")}function CCe(e){const t=e.match(TCe);return t?t[1].replace(OCe,"'"):e}function PCe(e,t){return at(e,t==null?void 0:t.in).getDate()}function aM(e,t){const n=at(e,t==null?void 0:t.in),r=n.getFullYear(),i=n.getMonth(),a=un(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function _Ce(e,t){return at(e,t==null?void 0:t.in).getHours()}function kCe(e,t){return at(e,t==null?void 0:t.in).getMinutes()}function DCe(e,t){return at(e,t==null?void 0:t.in).getMonth()}function $Ce(e){return at(e).getSeconds()}function RCe(e){return at(e).getMilliseconds()}function MCe(e,t){return at(e,t==null?void 0:t.in).getFullYear()}function pm(e,t){return+at(e)>+at(t)}function hm(e,t){return+at(e)<+at(t)}function ICe(e,t){return+at(e)==+at(t)}function NCe(e,t,n){const[r,i]=mu(n==null?void 0:n.in,e,t);return+xc(r)==+xc(i)}function ACe(e,t,n){const[r,i]=mu(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()}function jCe(e,t,n){const[r,i]=mu(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function uO(e,t){const n=at(e,t==null?void 0:t.in);return n.setMinutes(0,0,0),n}function LCe(e,t,n){const[r,i]=mu(n==null?void 0:n.in,e,t);return+uO(r)==+uO(i)}function FCe(){return Object.assign({},ya())}function BCe(e,t){const n=VCe(t)?new t(0):un(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function VCe(e){var t;return typeof e=="function"&&((t=e.prototype)==null?void 0:t.constructor)===e}const zCe=10;class sM{constructor(){ae(this,"subPriority",0)}validate(t,n){return!0}}class WCe extends sM{constructor(t,n,r,i,a){super(),this.value=t,this.validateValue=n,this.setValue=r,this.priority=i,a&&(this.subPriority=a)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,r){return this.setValue(t,n,this.value,r)}}class UCe extends sM{constructor(n,r){super();ae(this,"priority",zCe);ae(this,"subPriority",-1);this.context=n||(i=>un(r,i))}set(n,r){return r.timestampIsSet?n:un(n,BCe(n,this.context))}}class zt{run(t,n,r,i){const a=this.parse(t,n,r,i);return a?{setter:new WCe(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(t,n,r){return!0}}class qCe extends zt{constructor(){super(...arguments);ae(this,"priority",140);ae(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,i){switch(r){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,r,i){return r.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}const Tn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},To={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function On(e,t){return e&&{value:t(e.value),rest:e.rest}}function dn(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Oo(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:r*(i*ZR+a*XR+s*EEe),rest:t.slice(n[0].length)}}function lM(e){return dn(Tn.anyDigitsSigned,e)}function vn(e,t){switch(e){case 1:return dn(Tn.singleDigit,t);case 2:return dn(Tn.twoDigits,t);case 3:return dn(Tn.threeDigits,t);case 4:return dn(Tn.fourDigits,t);default:return dn(new RegExp("^\\d{1,"+e+"}"),t)}}function df(e,t){switch(e){case 1:return dn(Tn.singleDigitSigned,t);case 2:return dn(Tn.twoDigitsSigned,t);case 3:return dn(Tn.threeDigitsSigned,t);case 4:return dn(Tn.fourDigitsSigned,t);default:return dn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function U0(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function cM(e,t){const n=t>0,r=n?t:1-t;let i;if(r<=50)i=e||100;else{const a=r+50,s=Math.trunc(a/100)*100,l=e>=a%100;i=e+s-(l?100:0)}return n?i:1-i}function uM(e){return e%400===0||e%4===0&&e%100!==0}class HCe extends zt{constructor(){super(...arguments);ae(this,"priority",130);ae(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,i){const a=s=>({year:s,isTwoDigitYear:r==="yy"});switch(r){case"y":return On(vn(4,n),a);case"yo":return On(i.ordinalNumber(n,{unit:"year"}),a);default:return On(vn(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i){const a=n.getFullYear();if(i.isTwoDigitYear){const l=cM(i.year,a);return n.setFullYear(l,0,1),n.setHours(0,0,0,0),n}const s=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class YCe extends zt{constructor(){super(...arguments);ae(this,"priority",130);ae(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,i){const a=s=>({year:s,isTwoDigitYear:r==="YY"});switch(r){case"Y":return On(vn(4,n),a);case"Yo":return On(i.ordinalNumber(n,{unit:"year"}),a);default:return On(vn(r.length,n),a)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,i,a){const s=V0(n,a);if(i.isTwoDigitYear){const c=cM(i.year,s);return n.setFullYear(c,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),Zo(n,a)}const l=!("era"in r)||r.era===1?i.year:1-i.year;return n.setFullYear(l,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),Zo(n,a)}}class GCe extends zt{constructor(){super(...arguments);ae(this,"priority",130);ae(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return df(r==="R"?4:r.length,n)}set(n,r,i){const a=un(n,0);return a.setFullYear(i,0,4),a.setHours(0,0,0,0),Os(a)}}class KCe extends zt{constructor(){super(...arguments);ae(this,"priority",130);ae(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return df(r==="u"?4:r.length,n)}set(n,r,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}class XCe extends zt{constructor(){super(...arguments);ae(this,"priority",120);ae(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"Q":case"QQ":return vn(r.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class ZCe extends zt{constructor(){super(...arguments);ae(this,"priority",120);ae(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"q":case"qq":return vn(r.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class QCe extends zt{constructor(){super(...arguments);ae(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);ae(this,"priority",110)}parse(n,r,i){const a=s=>s-1;switch(r){case"M":return On(dn(Tn.month,n),a);case"MM":return On(vn(2,n),a);case"Mo":return On(i.ordinalNumber(n,{unit:"month"}),a);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}class JCe extends zt{constructor(){super(...arguments);ae(this,"priority",110);ae(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,i){const a=s=>s-1;switch(r){case"L":return On(dn(Tn.month,n),a);case"LL":return On(vn(2,n),a);case"Lo":return On(i.ordinalNumber(n,{unit:"month"}),a);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}function ePe(e,t,n){const r=at(e,n==null?void 0:n.in),i=z0(r,n)-t;return r.setDate(r.getDate()-i*7),at(r,n==null?void 0:n.in)}class tPe extends zt{constructor(){super(...arguments);ae(this,"priority",100);ae(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,i){switch(r){case"w":return dn(Tn.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return vn(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i,a){return Zo(ePe(n,i,a),a)}}function nPe(e,t,n){const r=at(e,n==null?void 0:n.in),i=nM(r,n)-t;return r.setDate(r.getDate()-i*7),r}class rPe extends zt{constructor(){super(...arguments);ae(this,"priority",100);ae(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,i){switch(r){case"I":return dn(Tn.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return vn(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,i){return Os(nPe(n,i))}}const oPe=[31,28,31,30,31,30,31,31,30,31,30,31],iPe=[31,29,31,30,31,30,31,31,30,31,30,31];class aPe extends zt{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"subPriority",1);ae(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"d":return dn(Tn.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return vn(r.length,n)}}validate(n,r){const i=n.getFullYear(),a=uM(i),s=n.getMonth();return a?r>=1&&r<=iPe[s]:r>=1&&r<=oPe[s]}set(n,r,i){return n.setDate(i),n.setHours(0,0,0,0),n}}class sPe extends zt{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"subpriority",1);ae(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,i){switch(r){case"D":case"DD":return dn(Tn.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return vn(r.length,n)}}validate(n,r){const i=n.getFullYear();return uM(i)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}}function q0(e,t,n){var f,h,p,b;const r=ya(),i=(n==null?void 0:n.weekStartsOn)??((h=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??r.weekStartsOn??((b=(p=r.locale)==null?void 0:p.options)==null?void 0:b.weekStartsOn)??0,a=at(e,n==null?void 0:n.in),s=a.getDay(),c=(t%7+7)%7,u=7-i,d=t<0||t>6?t-(s+u)%7:(c+u)%7-(s+u)%7;return wc(a,d,n)}class lPe extends zt{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,i){switch(r){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,a){return n=q0(n,i,a),n.setHours(0,0,0,0),n}}class cPe extends zt{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,i,a){const s=l=>{const c=Math.floor((l-1)/7)*7;return(l+a.weekStartsOn+6)%7+c};switch(r){case"e":case"ee":return On(vn(r.length,n),s);case"eo":return On(i.ordinalNumber(n,{unit:"day"}),s);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,a){return n=q0(n,i,a),n.setHours(0,0,0,0),n}}class uPe extends zt{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,i,a){const s=l=>{const c=Math.floor((l-1)/7)*7;return(l+a.weekStartsOn+6)%7+c};switch(r){case"c":case"cc":return On(vn(r.length,n),s);case"co":return On(i.ordinalNumber(n,{unit:"day"}),s);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,i,a){return n=q0(n,i,a),n.setHours(0,0,0,0),n}}function dPe(e,t){const n=at(e,t==null?void 0:t.in).getDay();return n===0?7:n}function fPe(e,t,n){const r=at(e,n==null?void 0:n.in),i=dPe(r,n),a=t-i;return wc(r,a,n)}class pPe extends zt{constructor(){super(...arguments);ae(this,"priority",90);ae(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,i){const a=s=>s===0?7:s;switch(r){case"i":case"ii":return vn(r.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return On(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return On(i.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return On(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return On(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,r){return r>=1&&r<=7}set(n,r,i){return n=fPe(n,i),n.setHours(0,0,0,0),n}}class hPe extends zt{constructor(){super(...arguments);ae(this,"priority",80);ae(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,i){switch(r){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(U0(i),0,0,0),n}}class mPe extends zt{constructor(){super(...arguments);ae(this,"priority",80);ae(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,i){switch(r){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(U0(i),0,0,0),n}}class yPe extends zt{constructor(){super(...arguments);ae(this,"priority",80);ae(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,i){switch(r){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,i){return n.setHours(U0(i),0,0,0),n}}class gPe extends zt{constructor(){super(...arguments);ae(this,"priority",70);ae(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,i){switch(r){case"h":return dn(Tn.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return vn(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,i){const a=n.getHours()>=12;return a&&i<12?n.setHours(i+12,0,0,0):!a&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}}class bPe extends zt{constructor(){super(...arguments);ae(this,"priority",70);ae(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,i){switch(r){case"H":return dn(Tn.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return vn(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,i){return n.setHours(i,0,0,0),n}}class vPe extends zt{constructor(){super(...arguments);ae(this,"priority",70);ae(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,i){switch(r){case"K":return dn(Tn.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return vn(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}}class wPe extends zt{constructor(){super(...arguments);ae(this,"priority",70);ae(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,i){switch(r){case"k":return dn(Tn.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return vn(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,i){const a=i<=24?i%24:i;return n.setHours(a,0,0,0),n}}class xPe extends zt{constructor(){super(...arguments);ae(this,"priority",60);ae(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"m":return dn(Tn.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return vn(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setMinutes(i,0,0),n}}class SPe extends zt{constructor(){super(...arguments);ae(this,"priority",50);ae(this,"incompatibleTokens",["t","T"])}parse(n,r,i){switch(r){case"s":return dn(Tn.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return vn(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,i){return n.setSeconds(i,0),n}}class TPe extends zt{constructor(){super(...arguments);ae(this,"priority",30);ae(this,"incompatibleTokens",["t","T"])}parse(n,r){const i=a=>Math.trunc(a*Math.pow(10,-r.length+3));return On(vn(r.length,n),i)}set(n,r,i){return n.setMilliseconds(i),n}}class OPe extends zt{constructor(){super(...arguments);ae(this,"priority",10);ae(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return Oo(To.basicOptionalMinutes,n);case"XX":return Oo(To.basic,n);case"XXXX":return Oo(To.basicOptionalSeconds,n);case"XXXXX":return Oo(To.extendedOptionalSeconds,n);case"XXX":default:return Oo(To.extended,n)}}set(n,r,i){return r.timestampIsSet?n:un(n,n.getTime()-uf(n)-i)}}class EPe extends zt{constructor(){super(...arguments);ae(this,"priority",10);ae(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return Oo(To.basicOptionalMinutes,n);case"xx":return Oo(To.basic,n);case"xxxx":return Oo(To.basicOptionalSeconds,n);case"xxxxx":return Oo(To.extendedOptionalSeconds,n);case"xxx":default:return Oo(To.extended,n)}}set(n,r,i){return r.timestampIsSet?n:un(n,n.getTime()-uf(n)-i)}}class CPe extends zt{constructor(){super(...arguments);ae(this,"priority",40);ae(this,"incompatibleTokens","*")}parse(n){return lM(n)}set(n,r,i){return[un(n,i*1e3),{timestampIsSet:!0}]}}class PPe extends zt{constructor(){super(...arguments);ae(this,"priority",20);ae(this,"incompatibleTokens","*")}parse(n){return lM(n)}set(n,r,i){return[un(n,i),{timestampIsSet:!0}]}}const _Pe={G:new qCe,y:new HCe,Y:new YCe,R:new GCe,u:new KCe,Q:new XCe,q:new ZCe,M:new QCe,L:new JCe,w:new tPe,I:new rPe,d:new aPe,D:new sPe,E:new lPe,e:new cPe,c:new uPe,i:new pPe,a:new hPe,b:new mPe,B:new yPe,h:new gPe,H:new bPe,K:new vPe,k:new wPe,m:new xPe,s:new SPe,S:new TPe,X:new OPe,x:new EPe,t:new CPe,T:new PPe},kPe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,DPe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$Pe=/^'([^]*?)'?$/,RPe=/''/g,MPe=/\S/,IPe=/[a-zA-Z]/;function Dy(e,t,n,r){var y,g,v,x,w,S,O,C;const i=()=>un((r==null?void 0:r.in)||n,NaN),a=FCe(),s=(r==null?void 0:r.locale)??a.locale??B0,l=(r==null?void 0:r.firstWeekContainsDate)??((g=(y=r==null?void 0:r.locale)==null?void 0:y.options)==null?void 0:g.firstWeekContainsDate)??a.firstWeekContainsDate??((x=(v=a.locale)==null?void 0:v.options)==null?void 0:x.firstWeekContainsDate)??1,c=(r==null?void 0:r.weekStartsOn)??((S=(w=r==null?void 0:r.locale)==null?void 0:w.options)==null?void 0:S.weekStartsOn)??a.weekStartsOn??((C=(O=a.locale)==null?void 0:O.options)==null?void 0:C.weekStartsOn)??0;if(!t)return e?i():at(n,r==null?void 0:r.in);const u={firstWeekContainsDate:l,weekStartsOn:c,locale:s},d=[new UCe(r==null?void 0:r.in,n)],f=t.match(DPe).map(P=>{const k=P[0];if(k in Sc){const E=Sc[k];return E(P,s.formatLong)}return P}).join("").match(kPe),h=[];for(let P of f){!(r!=null&&r.useAdditionalWeekYearTokens)&&iM(P)&&ky(P,t,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&oM(P)&&ky(P,t,e);const k=P[0],E=_Pe[k];if(E){const{incompatibleTokens:_}=E;if(Array.isArray(_)){const $=h.find(M=>_.includes(M.token)||M.token===k);if($)throw new RangeError(`The format string mustn't contain \`${$.fullToken}\` and \`${P}\` at the same time`)}else if(E.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${P}\` and any other token at the same time`);h.push({token:k,fullToken:P});const T=E.run(e,P,s.match,u);if(!T)return i();d.push(T.setter),e=T.rest}else{if(k.match(IPe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(P==="''"?P="'":k==="'"&&(P=NPe(P)),e.indexOf(P)===0)e=e.slice(P.length);else return i()}}if(e.length>0&&MPe.test(e))return i();const p=d.map(P=>P.priority).sort((P,k)=>k-P).filter((P,k,E)=>E.indexOf(P)===k).map(P=>d.filter(k=>k.priority===P).sort((k,E)=>E.subPriority-k.subPriority)).map(P=>P[0]);let b=at(n,r==null?void 0:r.in);if(isNaN(+b))return i();const m={};for(const P of p){if(!P.validate(b,u))return i();const k=P.set(b,m,u);Array.isArray(k)?(b=k[0],Object.assign(m,k[1])):b=k}return b}function NPe(e){return e.match($Pe)[1].replace(RPe,"'")}function APe(e,t,n){const r=at(e,n==null?void 0:n.in);return r.setDate(t),r}function jPe(e,t,n){const r=at(e,n==null?void 0:n.in);return r.setHours(t),r}function LPe(e,t,n){const r=at(e,n==null?void 0:n.in);return r.setMinutes(t),r}function FPe(e,t,n){const r=at(e,n==null?void 0:n.in),i=r.getFullYear(),a=r.getDate(),s=un(e,0);s.setFullYear(i,t,15),s.setHours(0,0,0,0);const l=aM(s);return r.setMonth(t,Math.min(a,l)),r}function BPe(e,t,n){const r=at(e,n==null?void 0:n.in);return r.setSeconds(t),r}function VPe(e,t,n){const r=at(e,n==null?void 0:n.in);return r.setMilliseconds(t),r}function zPe(e,t,n){const r=at(e,n==null?void 0:n.in);return isNaN(+r)?un(e,NaN):(r.setFullYear(t),r)}function WPe(e,t){const n=at(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function UPe(e,t){const n=at(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function qPe(e,t,n){const r=+at(e,n==null?void 0:n.in),[i,a]=[+at(t.start,n==null?void 0:n.in),+at(t.end,n==null?void 0:n.in)].sort((s,l)=>s-l);return r>=i&&r<=a}const HPe={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},YPe={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class GPe{constructor(t){ae(this,"isMUIAdapter",!0);ae(this,"isTimezoneCompatible",!1);ae(this,"formatTokenMap",HPe);ae(this,"escapedCharacters",{start:"'",end:"'"});ae(this,"date",t=>typeof t>"u"?new Date:t===null?null:new Date(t));ae(this,"getInvalidDate",()=>new Date("Invalid Date"));ae(this,"getTimezone",()=>"default");ae(this,"setTimezone",t=>t);ae(this,"toJsDate",t=>t);ae(this,"getCurrentLocaleCode",()=>this.locale.code);ae(this,"is12HourCycleInCurrentLocale",()=>/a/.test(this.locale.formatLong.time({width:"short"})));ae(this,"expandFormat",t=>{const n=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return t.match(n).map(r=>{const i=r[0];if(i==="p"||i==="P"){const a=this.longFormatters[i];return a(r,this.locale.formatLong)}return r}).join("")});ae(this,"formatNumber",t=>t);ae(this,"getDayOfWeek",t=>t.getDay()+1);const{locale:n,formats:r,longFormatters:i,lib:a}=t;this.locale=n,this.formats=ee({},YPe,r),this.longFormatters=i,this.lib=a||"date-fns"}}class dM extends GPe{constructor({locale:n,formats:r}={}){if(process.env.NODE_ENV!=="production"){if(typeof wc!="function")throw new Error(["MUI: The `date-fns` package v2.x is not compatible with this adapter.","Please, install v3.x or v4.x of the package or use the `AdapterDateFnsV2` instead."].join(`
`));if(!Sc)throw new Error("MUI: The minimum supported `date-fns` package version compatible with this adapter is `3.2.x`.")}super({locale:n??B0,formats:r,longFormatters:Sc});ae(this,"parse",(n,r)=>n===""?null:Dy(n,r,new Date,{locale:this.locale}));ae(this,"isValid",n=>n==null?!1:Ki(n));ae(this,"format",(n,r)=>this.formatByString(n,this.formats[r]));ae(this,"formatByString",(n,r)=>W0(n,r,{locale:this.locale}));ae(this,"isEqual",(n,r)=>n===null&&r===null?!0:n===null||r===null?!1:ICe(n,r));ae(this,"isSameYear",(n,r)=>ACe(n,r));ae(this,"isSameMonth",(n,r)=>jCe(n,r));ae(this,"isSameDay",(n,r)=>NCe(n,r));ae(this,"isSameHour",(n,r)=>LCe(n,r));ae(this,"isAfter",(n,r)=>pm(n,r));ae(this,"isAfterYear",(n,r)=>pm(n,iO(r)));ae(this,"isAfterDay",(n,r)=>pm(n,oO(r)));ae(this,"isBefore",(n,r)=>hm(n,r));ae(this,"isBeforeYear",(n,r)=>hm(n,this.startOfYear(r)));ae(this,"isBeforeDay",(n,r)=>hm(n,this.startOfDay(r)));ae(this,"isWithinRange",(n,[r,i])=>qPe(n,{start:r,end:i}));ae(this,"startOfYear",n=>eM(n));ae(this,"startOfMonth",n=>WPe(n));ae(this,"startOfWeek",n=>Zo(n,{locale:this.locale}));ae(this,"startOfDay",n=>xc(n));ae(this,"endOfYear",n=>iO(n));ae(this,"endOfMonth",n=>UPe(n));ae(this,"endOfWeek",n=>REe(n,{locale:this.locale}));ae(this,"endOfDay",n=>oO(n));ae(this,"addYears",(n,r)=>DEe(n,r));ae(this,"addMonths",(n,r)=>JR(n,r));ae(this,"addWeeks",(n,r)=>kEe(n,r));ae(this,"addDays",(n,r)=>wc(n,r));ae(this,"addHours",(n,r)=>_Ee(n,r));ae(this,"addMinutes",(n,r)=>PEe(n,r));ae(this,"addSeconds",(n,r)=>CEe(n,r));ae(this,"getYear",n=>MCe(n));ae(this,"getMonth",n=>DCe(n));ae(this,"getDate",n=>PCe(n));ae(this,"getHours",n=>_Ce(n));ae(this,"getMinutes",n=>kCe(n));ae(this,"getSeconds",n=>$Ce(n));ae(this,"getMilliseconds",n=>RCe(n));ae(this,"setYear",(n,r)=>zPe(n,r));ae(this,"setMonth",(n,r)=>FPe(n,r));ae(this,"setDate",(n,r)=>APe(n,r));ae(this,"setHours",(n,r)=>jPe(n,r));ae(this,"setMinutes",(n,r)=>LPe(n,r));ae(this,"setSeconds",(n,r)=>BPe(n,r));ae(this,"setMilliseconds",(n,r)=>VPe(n,r));ae(this,"getDaysInMonth",n=>aM(n));ae(this,"getWeekArray",n=>{const r=this.startOfWeek(this.startOfMonth(n)),i=this.endOfWeek(this.endOfMonth(n));let a=0,s=r;const l=[];for(;this.isBefore(s,i);){const c=Math.floor(a/7);l[c]=l[c]||[],l[c].push(s),s=this.addDays(s,1),a+=1}return l});ae(this,"getWeekNumber",n=>z0(n,{locale:this.locale}));ae(this,"getYearRange",([n,r])=>{const i=this.startOfYear(n),a=this.endOfYear(r),s=[];let l=i;for(;this.isBefore(l,a);)s.push(l),l=this.addYears(l,1);return s})}}function fM(e){if(!e)return null;const t=Dy(e,"yyyy-MM-dd",new Date);if(Ki(t))return t;const n=Dy(e,"MM/dd/yyyy",new Date);if(Ki(n))return n;const r=new Date(e);return Ki(r)?r:null}const KPe=e=>{const{data:t,handleChange:n,path:r,label:i,required:a,errors:s,visible:l,schema:c}=e;if(!l)return null;const u=c&&c.items&&!Array.isArray(c.items)&&Array.isArray(c.items.enum)?c.items.enum:[];return D.jsxs(Io,{fullWidth:!0,required:a,error:!!s,style:{marginBottom:8},children:[D.jsx(Bc,{children:i}),D.jsx(zc,{label:i,multiple:!0,value:t||[],onChange:d=>n(r,d.target.value),renderValue:d=>d.join(", "),children:u.map(d=>D.jsxs(ms,{value:d,children:[D.jsx(Eg,{checked:Array.isArray(t)&&t.includes(d)}),D.jsx(Rg,{primary:d})]},d))}),s&&D.jsx(cn,{children:s})]})},XPe=gn(KPe),ZPe=st(10,e=>typeof e.scope=="string"&&/(multiselect|multi_select|multiSelect)/i.test(e.scope)),QPe=e=>{const{uischema:t,schema:n,path:r,enabled:i,visible:a,renderers:s,cells:l}=e;if(!a)return null;const c=t.elements||[];return D.jsx(He,{sx:{width:"100%",mb:2,display:"flex",gap:2,"& > *":{flex:1,minWidth:0}},children:c.map((u,d)=>D.jsx(He,{sx:{flex:1},children:D.jsx(Kn,{uischema:u,schema:n,path:r,enabled:i,renderers:s,cells:l})},d))})},JPe=Ao(QPe),Lo=ot(D.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var ff=class{constructor(e,t,n,r){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=n||0,this.time=r||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}},e_e=class pM{static fromPoints(t,n){let r=this.calculateControlPoints(t[0],t[1],t[2]).c2,i=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new pM(t[1],r,i,t[2],n.start,n.end)}static calculateControlPoints(t,n,r){let i=t.x-n.x,a=t.y-n.y,s=n.x-r.x,l=n.y-r.y,c={x:(t.x+n.x)/2,y:(t.y+n.y)/2},u={x:(n.x+r.x)/2,y:(n.y+r.y)/2},d=Math.sqrt(i*i+a*a),f=Math.sqrt(s*s+l*l),h=c.x-u.x,p=c.y-u.y,b=d+f==0?0:f/(d+f),m={x:u.x+h*b,y:u.y+p*b},y=n.x-m.x,g=n.y-m.y;return{c1:new ff(c.x+y,c.y+g),c2:new ff(u.x+y,u.y+g)}}constructor(t,n,r,i,a,s){this.startPoint=t,this.control2=n,this.control1=r,this.endPoint=i,this.startWidth=a,this.endWidth=s}length(){let t=0,n,r;for(let i=0;i<=10;i+=1){let a=i/10,s=this.point(a,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),l=this.point(a,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){let c=s-n,u=l-r;t+=Math.sqrt(c*c+u*u)}n=s,r=l}return t}point(t,n,r,i,a){return n*(1-t)*(1-t)*(1-t)+3*r*(1-t)*(1-t)*t+3*i*(1-t)*t*t+a*t*t*t}},t_e=class{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(e,t,n){this._et.addEventListener(e,t,n)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,n){this._et.removeEventListener(e,t,n)}};function n_e(e,t=250){let n=0,r=null,i,a,s,l=()=>{n=Date.now(),r=null,i=e.apply(a,s),r||(a=null,s=[])};return function(...c){let u=Date.now(),d=t-(u-n);return a=this,s=c,d<=0||d>t?(r&&(clearTimeout(r),r=null),n=u,i=e.apply(a,s),r||(a=null,s=[])):r||(r=window.setTimeout(l,d)),i}}var r_e=class $y extends t_e{constructor(t,n={}){var r,i,a;super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=s=>{!this._isLeftButtonPressed(s,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(s))},this._handleMouseMove=s=>{if(!this._isLeftButtonPressed(s,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(s),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(s))},this._handleMouseUp=s=>{this._isLeftButtonPressed(s)||this._strokeEnd(this._pointerEventToSignatureEvent(s))},this._handleTouchStart=s=>{s.targetTouches.length!==1||this._drawingStroke||(s.cancelable&&s.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(s)))},this._handleTouchMove=s=>{if(s.targetTouches.length===1){if(s.cancelable&&s.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(s),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(s))}},this._handleTouchEnd=s=>{s.targetTouches.length===0&&(s.cancelable&&s.preventDefault(),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this._strokeEnd(this._touchEventToSignatureEvent(s)))},this._handlePointerDown=s=>{!this._isLeftButtonPressed(s)||this._drawingStroke||(s.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(s)))},this._handlePointerMove=s=>{if(!this._isLeftButtonPressed(s,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(s),!1);return}s.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(s))},this._handlePointerUp=s=>{this._isLeftButtonPressed(s)||(s.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(s)))},this.velocityFilterWeight=n.velocityFilterWeight||.7,this.minWidth=n.minWidth||.5,this.maxWidth=n.maxWidth||2.5,this.throttle=(r=n.throttle)!==null&&r!==void 0?r:16,this.minDistance=(i=n.minDistance)!==null&&i!==void 0?i:5,this.dotSize=n.dotSize||0,this.penColor=n.penColor||"black",this.backgroundColor=n.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=n.compositeOperation||"source-over",this.canvasContextOptions=(a=n.canvasContextOptions)!==null&&a!==void 0?a:{},this._strokeMoveUpdate=this.throttle?n_e($y.prototype._strokeUpdate,this.throttle):$y.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){let{_ctx:t,canvas:n}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,n.width,n.height),t.fillRect(0,0,n.width,n.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,n={}){return new Promise((r,i)=>{let a=new Image,s=n.ratio||window.devicePixelRatio||1,l=n.width||this.canvas.width/s,c=n.height||this.canvas.height/s,u=n.xOffset||0,d=n.yOffset||0;this._reset(this._getPointGroupOptions()),a.onload=()=>{this._ctx.drawImage(a,u,d,l,c),r()},a.onerror=f=>{i(f)},a.crossOrigin="anonymous",a.src=t,this._isEmpty=!1})}toDataURL(t="image/png",n){switch(t){case"image/svg+xml":return typeof n!="object"&&(n=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(n))}`;default:return typeof n!="number"&&(n=void 0),this.canvas.toDataURL(t,n)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";let t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){var t;let n=window.document===this.canvas.ownerDocument?window:(t=this.canvas.ownerDocument.defaultView)!==null&&t!==void 0?t:this.canvas.ownerDocument;return{addEventListener:n.addEventListener.bind(n),removeEventListener:n.removeEventListener.bind(n)}}_removeMoveUpEventListeners(){let{removeEventListener:t}=this._getListenerFunctions();t("pointermove",this._handlePointerMove),t("pointerup",this._handlePointerUp),t("mousemove",this._handleMouseMove),t("mouseup",this._handleMouseUp),t("touchmove",this._handleTouchMove),t("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t,{clear:n=!0}={}){n&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_isLeftButtonPressed(t,n){return n?t.buttons===1:(t.buttons&1)===1}_pointerEventToSignatureEvent(t){return{event:t,type:t.type,x:t.clientX,y:t.clientY,pressure:"pressure"in t?t.pressure:0}}_touchEventToSignatureEvent(t){let n=t.changedTouches[0];return{event:t,type:t.type,x:n.clientX,y:n.clientY,pressure:n.force}}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;let{addEventListener:n}=this._getListenerFunctions();switch(t.event.type){case"mousedown":n("mousemove",this._handleMouseMove),n("mouseup",this._handleMouseUp);break;case"touchstart":n("touchmove",this._handleTouchMove),n("touchend",this._handleTouchEnd);break;case"pointerdown":n("pointermove",this._handlePointerMove),n("pointerup",this._handlePointerUp);break}this._drawingStroke=!0;let r=this._getPointGroupOptions(),i=Object.assign(Object.assign({},r),{points:[]});this._data.push(i),this._reset(r),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));let n=this._createPoint(t.x,t.y,t.pressure),r=this._data[this._data.length-1],i=r.points,a=i.length>0&&i[i.length-1],s=a?n.distanceTo(a)<=this.minDistance:!1,l=this._getPointGroupOptions(r);if(!a||!(a&&s)){let c=this._addPoint(n,l);a?c&&this._drawCurve(c,l):this._drawDot(n,l),i.push({time:n.time,x:n.x,y:n.y,pressure:n.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t,n=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(n&&this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart)}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,n,r){let i=this.canvas.getBoundingClientRect();return new ff(t-i.left,n-i.top,r,new Date().getTime())}_addPoint(t,n){let{_lastPoints:r}=this;if(r.push(t),r.length>2){r.length===3&&r.unshift(r[0]);let i=this._calculateCurveWidths(r[1],r[2],n),a=e_e.fromPoints(r,i);return r.shift(),a}return null}_calculateCurveWidths(t,n,r){let i=r.velocityFilterWeight*n.velocityFrom(t)+(1-r.velocityFilterWeight)*this._lastVelocity,a=this._strokeWidth(i,r),s={end:a,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=a,s}_strokeWidth(t,n){return Math.max(n.maxWidth/(t+1),n.minWidth)}_drawCurveSegment(t,n,r){let i=this._ctx;i.moveTo(t,n),i.arc(t,n,r,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,n){let r=this._ctx,i=t.endWidth-t.startWidth,a=Math.ceil(t.length())*2;r.beginPath(),r.fillStyle=n.penColor;for(let s=0;s<a;s+=1){let l=s/a,c=l*l,u=c*l,d=1-l,f=d*d,h=f*d,p=h*t.startPoint.x;p+=3*f*l*t.control1.x,p+=3*d*c*t.control2.x,p+=u*t.endPoint.x;let b=h*t.startPoint.y;b+=3*f*l*t.control1.y,b+=3*d*c*t.control2.y,b+=u*t.endPoint.y;let m=Math.min(t.startWidth+u*i,n.maxWidth);this._drawCurveSegment(p,b,m)}r.closePath(),r.fill()}_drawDot(t,n){let r=this._ctx,i=n.dotSize>0?n.dotSize:(n.minWidth+n.maxWidth)/2;r.beginPath(),this._drawCurveSegment(t.x,t.y,i),r.closePath(),r.fillStyle=n.penColor,r.fill()}_fromData(t,n,r){for(let i of t){let{points:a}=i,s=this._getPointGroupOptions(i);if(a.length>1)for(let l=0;l<a.length;l+=1){let c=a[l],u=new ff(c.x,c.y,c.pressure,c.time);l===0&&this._reset(s);let d=this._addPoint(u,s);d&&n(d,s)}else this._reset(s),r(a[0],s)}}toSVG({includeBackgroundColor:t=!1}={}){let n=this._data,r=Math.max(window.devicePixelRatio||1,1),i=0,a=0,s=this.canvas.width/r,l=this.canvas.height/r,c=document.createElementNS("http://www.w3.org/2000/svg","svg");if(c.setAttribute("xmlns","http://www.w3.org/2000/svg"),c.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),c.setAttribute("viewBox",`${i} ${a} ${s} ${l}`),c.setAttribute("width",s.toString()),c.setAttribute("height",l.toString()),t&&this.backgroundColor){let u=document.createElement("rect");u.setAttribute("width","100%"),u.setAttribute("height","100%"),u.setAttribute("fill",this.backgroundColor),c.appendChild(u)}return this._fromData(n,(u,{penColor:d})=>{let f=document.createElement("path");if(!isNaN(u.control1.x)&&!isNaN(u.control1.y)&&!isNaN(u.control2.x)&&!isNaN(u.control2.y)){let h=`M ${u.startPoint.x.toFixed(3)},${u.startPoint.y.toFixed(3)} C ${u.control1.x.toFixed(3)},${u.control1.y.toFixed(3)} ${u.control2.x.toFixed(3)},${u.control2.y.toFixed(3)} ${u.endPoint.x.toFixed(3)},${u.endPoint.y.toFixed(3)}`;f.setAttribute("d",h),f.setAttribute("stroke-width",(u.endWidth*2.25).toFixed(3)),f.setAttribute("stroke",d),f.setAttribute("fill","none"),f.setAttribute("stroke-linecap","round"),c.appendChild(f)}},(u,{penColor:d,dotSize:f,minWidth:h,maxWidth:p})=>{let b=document.createElement("circle"),m=f>0?f:(h+p)/2;b.setAttribute("r",m.toString()),b.setAttribute("cx",u.x.toString()),b.setAttribute("cy",u.y.toString()),b.setAttribute("fill",d),c.appendChild(b)}),c.outerHTML}},Sl,o_e=(Sl=class extends HTMLElement{constructor(){super();ae(this,"setDisplayType",()=>{let t=[this.dataset.withDrawn,this.dataset.withTyped,this.dataset.withUpload].filter(n=>n==="false");this.textTypeButton.parentNode.style.display=this.dataset.withTyped==="false"?"none":"inherit",this.drawTypeButton.parentNode.style.display=this.dataset.withDrawn==="false"?"none":"inherit",this.uploadTypeButton.parentNode.style.display=this.dataset.withUpload==="false"?"none":"inherit",this.typeButtonsContainer.parentNode.style.display=t.length>1&&this.dataset.withUpload==="false"?"none":"inherit",t.length===3?console.error('At least one of the "with-typed", "with-drawn", or "with-upload" attributes must be set to "true".'):this.dataset.withDrawn!=="false"?this.enableDrawPanel():this.dataset.withTyped!=="false"?this.enableTextPanel():this.dataset.withUpload!=="false"&&this.enableUploadPanel()});ae(this,"setDisplayColorSelect",()=>{this.colorSelect.style.visibility=this.dataset.withColorSelect==="false"?"hidden":"visible"});ae(this,"setDisplaySubmit",()=>{this.saveButton.parentNode.style.display=this.dataset.withSubmit==="false"?"none":"inherit"});ae(this,"setControlButtonsContainerClassAndStyle",()=>{let t=this.dataset.controlButtonsContainerClass||"",n=this.dataset.controlButtonsContainerStyle||(t?"":this.defaultStyles.controlButtonsContainer);this.controlButtonsContainer.setAttribute("style",n),this.controlButtonsContainer.setAttribute("class",t)});ae(this,"setSaveButtonText",()=>{let t=this.saveButton.querySelector("span");t&&(t.innerText=this.dataset.saveButtonText||this.defaultLabels.saveButton)});ae(this,"setSaveButtonClassAndStyle",()=>{let t=this.dataset.saveButtonClass||"",n=this.dataset.saveButtonStyle||(t?"":this.defaultStyles.saveButton);this.isSaveButtonDisabled&&(t&&this.dataset.saveButtonDisabledClass&&(t=this.combineStrings(t,this.dataset.saveButtonDisabledClass)),n&&this.dataset.saveButtonDisabledStyle?n=this.combineStrings(n,this.dataset.saveButtonDisabledStyle):t||(n=this.combineStrings(n,this.defaultStyles.saveButtonDisabled))),this.saveButton.setAttribute("class",t),this.saveButton.setAttribute("style",n)});ae(this,"setUndoButtonText",()=>{let t=this.undoButton.querySelector("span");t&&(t.innerText=this.dataset.undoButtonText||this.defaultLabels.undoButton)});ae(this,"setUndoButtonClassAndStyle",()=>{let t=this.dataset.undoButtonClass||"",n=this.dataset.undoButtonStyle||(t?"":this.defaultStyles.undoButton);this.undoButton.setAttribute("class",t),this.undoButton.setAttribute("style",n)});ae(this,"setCleaButtonText",()=>{let t=this.clearButton.querySelector("span");t&&(t.innerText=this.dataset.clearButtonText||this.defaultLabels.clearButton)});ae(this,"setClearButtonClassAndStyle",()=>{let t=this.dataset.clearButtonClass||"",n=this.dataset.clearButtonStyle||(t?"":this.defaultStyles.clearButton);this.clearButton.setAttribute("class",t),this.clearButton.setAttribute("style",n)});ae(this,"setCanvasClassAndStyle",()=>{let t=this.dataset.canvasClass||"",n=this.dataset.canvasStyle||(t?"padding: 1px; touch-action: none; user-select: none;":this.defaultStyles.canvas);this.canvas.setAttribute("class",t),this.canvas.setAttribute("style",n)});ae(this,"setTypeButtonsContainerClassAndStyle",()=>{let t=this.dataset.typeButtonsContainerClass||"",n=this.dataset.typeButtonsContainerStyle||(t?"":this.defaultStyles.typeButtonsContainer);this.typeButtonsContainer.setAttribute("style",n),this.typeButtonsContainer.setAttribute("class",t)});ae(this,"setTextInputPlaceholder",()=>{this.textInput.setAttribute("placeholder",this.dataset.textInputPlaceholder||this.defaultLabels.textInputPlaceholder)});ae(this,"setTextInputClassAndStyle",()=>{let t=this.dataset.textInputClass||"",n=this.dataset.textInputStyle||(t?"":this.defaultStyles.textInput);this.textInput.setAttribute("class",t),this.textInput.setAttribute("style",n)});ae(this,"setDrawTypeButtonText",()=>{let t=this.drawTypeButton.querySelector("span");t&&(t.innerText=this.dataset.drawTypeButtonText||this.defaultLabels.drawTypeButton)});ae(this,"setDrawTypeButtonClassAndStyle",()=>{let t=this.dataset.drawTypeButtonClass||"",n=this.dataset.drawTypeButtonStyle||(t?"":this.defaultStyles.drawTypeButton);this.isDrawTypeSelected&&(t&&this.dataset.drawTypeButtonActiveClass&&(t=this.combineStrings(t,this.dataset.drawTypeButtonActiveClass)),n&&this.dataset.drawTypeButtonActiveStyle?n=this.combineStrings(n,this.dataset.drawTypeButtonActiveStyle):t||(n=this.combineStrings(n,this.defaultStyles.drawTypeButtonActive))),this.drawTypeButton.setAttribute("class",t),this.drawTypeButton.setAttribute("style",n)});ae(this,"setTextTypeButtonText",()=>{let t=this.textTypeButton.querySelector("span");t&&(t.innerText=this.dataset.textTypeButtonText||this.defaultLabels.textTypeButton)});ae(this,"setTextTypeButtonClassAndStyle",()=>{let t=this.dataset.textTypeButtonClass||"",n=this.dataset.textTypeButtonStyle||t?"":this.defaultStyles.textTypeButton;this.isTextTypeSelected&&(t&&this.dataset.textTypeButtonActiveClass&&(t=this.combineStrings(t,this.dataset.textTypeButtonActiveClass)),n&&this.dataset.textTypeButtonActiveStyle?n=this.combineStrings(n,this.dataset.textTypeButtonActiveStyle):t||(n=this.combineStrings(n,this.defaultStyles.textTypeButtonActive))),this.textTypeButton.setAttribute("class",t),this.textTypeButton.setAttribute("style",n)});ae(this,"setUploadTypeButtonText",()=>{let t=this.uploadTypeButton.querySelector("span");t&&(t.innerText=this.dataset.uploadTypeButtonText||this.defaultLabels.uploadTypeButton)});ae(this,"setUploadTypeButtonClassAndStyle",()=>{let t=this.dataset.uploadTypeButtonClass||"",n=this.dataset.uploadTypeButtonStyle||t?"":this.defaultStyles.uploadTypeButton;this.isUploadTypeSelected&&(t&&this.dataset.uploadTypeButtonActiveClass&&(t=this.combineStrings(t,this.dataset.uploadTypeButtonActiveClass)),n&&this.dataset.uploadTypeButtonActiveStyle?n=this.combineStrings(n,this.dataset.uploadTypeButtonActiveStyle):t||(n=this.combineStrings(n,this.defaultStyles.uploadTypeButtonActive))),this.uploadTypeButton.setAttribute("class",t),this.uploadTypeButton.setAttribute("style",n)});this.isMounted=!1}get defaultStyles(){return this.constructor.DEFAULT_STYLES}get defaultLabels(){return this.constructor.DEFAULT_LABELS}get clearButton(){return this.querySelector('[data-target="clearButton"]')}get undoButton(){return this.querySelector('[data-target="undoButton"]')}get controlButtonsContainer(){return this.querySelector('[data-target="controlButtonsContainer"]')}get typeButtonsContainer(){return this.querySelector('[data-target="typeButtonsContainer"]')}get drawTypeButton(){return this.querySelector('[data-target="drawTypeButton"]')}get textTypeButton(){return this.querySelector('[data-target="textTypeButton"]')}get uploadTypeButton(){return this.querySelector('[data-target="uploadTypeButton"]')}get textInput(){return this.querySelector('[data-target="textInput"]')}get fileInput(){return this.querySelector('[data-target="fileInput"]')}get saveButton(){return this.querySelector('[data-target="saveButton"]')}get canvas(){return this.querySelector('[data-target="canvas"]')}get colorSelect(){return this.querySelector('[data-target="colorSelect"]')}get colorInputs(){return[...this.querySelectorAll('[data-target="colorInput"]')]}get setters(){return{"data-with-typed":this.setDisplayType,"data-with-drawn":this.setDisplayType,"data-with-upload":this.setDisplayType,"data-with-color-select":this.setDisplayColorSelect,"data-with-submit":this.setDisplaySubmit,"data-control-buttons-container-class":this.setControlButtonsContainerClassAndStyle,"data-control-buttons-container-style":this.setControlButtonsContainerClassAndStyle,"data-save-button-text":this.setSaveButtonText,"data-save-button-class":this.setSaveButtonClassAndStyle,"data-save-button-style":this.setSaveButtonClassAndStyle,"data-save-button-disabled-class":this.setSaveButtonClassAndStyle,"data-save-button-disabled-style":this.setSaveButtonClassAndStyle,"data-undo-button-text":this.setUndoButtonText,"data-undo-button-class":this.setUndoButtonClassAndStyle,"data-undo-button-style":this.setUndoButtonClassAndStyle,"data-clear-button-text":this.setCleaButtonText,"data-clear-button-class":this.setClearButtonClassAndStyle,"data-clear-button-style":this.setClearButtonClassAndStyle,"data-canvas-class":this.setCanvasClassAndStyle,"data-canvas-style":this.setCanvasClassAndStyle,"data-text-input-placeholder":this.setTextInputPlaceholder,"data-text-input-class":this.setTextInputClassAndStyle,"data-text-input-style":this.setTextInputClassAndStyle,"data-type-buttons-container-class":this.setTypeButtonsContainerClassAndStyle,"data-type-buttons-container-style":this.setTypeButtonsContainerClassAndStyle,"data-draw-type-button-text":this.setDrawTypeButtonText,"data-draw-type-button-class":this.setDrawTypeButtonClassAndStyle,"data-draw-type-button-style":this.setDrawTypeButtonClassAndStyle,"data-draw-type-button-active-class":this.setDrawTypeButtonClassAndStyle,"data-draw-type-button-active-style":this.setDrawTypeButtonClassAndStyle,"data-text-type-button-text":this.setTextTypeButtonText,"data-text-type-button-class":this.setTextTypeButtonClassAndStyle,"data-text-type-button-style":this.setTextTypeButtonClassAndStyle,"data-text-type-button-active-class":this.setTextTypeButtonClassAndStyle,"data-text-type-button-active-style":this.setTextTypeButtonClassAndStyle,"data-upload-type-button-text":this.setUploadTypeButtonText,"data-upload-type-button-class":this.setUploadTypeButtonClassAndStyle,"data-upload-type-button-style":this.setUploadTypeButtonClassAndStyle,"data-upload-type-button-active-class":this.setUploadTypeButtonClassAndStyle,"data-upload-type-button-active-style":this.setUploadTypeButtonClassAndStyle}}get isDrawTypeSelected(){return this.drawTypeButton.querySelector("input").checked}get isTextTypeSelected(){return this.textTypeButton.querySelector("input").checked}get isUploadTypeSelected(){return this.uploadTypeButton.querySelector("input").checked}get isSaveButtonDisabled(){return this.saveButton.disabled}get isDownloadOnSaveSettingEnabled(){return this.dataset.downloadOnSave==="true"}get isColorSelectSettingEnabled(){return this.dataset.withColorSelect!=="false"}get isSubmitButtonSettingEnabled(){return this.dataset.withSubmit!=="false"}combineStrings(t,n){return[t,n].filter(Boolean).join(" ")}attributeChangedCallback(t,n,r){this.isMounted&&this.setters[t]&&n!==r&&this.setters[t]()}connectedCallback(){document.readyState!=="complete"?document.addEventListener("DOMContentLoaded",()=>this.init()):this.init()}init(){this.style.display="block",this.childrenNode=document.createElement("div"),this.appendChild(this.childrenNode),Array.from(this.childNodes).map(t=>{this.childrenNode!==t&&this.childrenNode.appendChild(t)}),this.childrenNode.style.display="none",this.fieldNode=document.createElement("div"),this.fieldNode.innerHTML=this.tempalte,this.appendChild(this.fieldNode),this.pad=new r_e(this.canvas),this.isMounted=!0;for(let t in this.setters)this.setters.hasOwnProperty(t)&&this.setters[t]();this.scale=2,this.isFontLoaded=!1,this.canvas.width=this.canvas.parentNode.parentNode.clientWidth,this.canvas.height=this.canvas.parentNode.parentNode.clientWidth/this.scale,this.dataset.withDrawn!=="false"?this.enableDrawPanel():this.dataset.withTyped!=="false"?this.enableTextPanel():this.dataset.withUpload!=="false"?this.enableUploadPanel():this.enableDrawPanel(),this.pad.addEventListener("endStroke",()=>{this.handleDownloadState()}),this.clearButton.addEventListener("click",t=>{t.preventDefault(),this.cleaSignaturePad(),this.clearTextInput()}),this.undoButton.addEventListener("click",t=>{t.preventDefault();let n=this.pad.toData();n&&(n.pop(),this.pad.fromData(n),this.handleDownloadState())}),this.drawTypeButton.addEventListener("click",t=>{t.preventDefault(),this.enableDrawPanel()}),this.textTypeButton.addEventListener("click",t=>{t.preventDefault(),this.enableTextPanel()}),this.uploadTypeButton.addEventListener("click",()=>{this.uploadTypeButton.querySelector('input[type="radio"]').checked=!0,this.enableUploadPanel()}),this.fileInput.addEventListener("change",t=>{this.drawOnCanvas(t.target.files[0]).then(()=>{this.handleDownloadState()}).catch(n=>{alert(n.message)})}),this.colorInputs.forEach(t=>{t.addEventListener("change",n=>{this.textInput.value!==""&&(this.canvas.getContext("2d").fillStyle=n.target.value,this.drawText()),this.pad.penColor=n.target.value})}),this.textInput.addEventListener("input",()=>{this.drawText(),this.handleDownloadState()}),this.saveButton.addEventListener("click",t=>{t.preventDefault(),this.disableSaveButton(),this.cropCanvas(this.canvas).then(n=>{this.isDownloadOnSaveSettingEnabled&&this.downloadBlob(n,`signature-${Date.now()}.png`),this.convertBlobToBase64(n).then(r=>{this.dispatchEvent(new CustomEvent("save",{detail:{base64:r,blob:n}}))}).catch(r=>{console.error("Failed to convert blob to base64:",r)})}).then(()=>{this.enableSaveButton()}).catch(n=>{console.error("Download failed:",n),this.disableSaveButton()})}),this.intersectionObserver=new IntersectionObserver((t,n)=>{t.forEach(r=>{var i;r.isIntersecting&&(this.canvas.width=this.canvas.parentNode.clientWidth*this.scale,this.canvas.height=this.canvas.parentNode.clientWidth*this.scale/3,this.canvas.getContext("2d").scale(this.scale,this.scale),(i=this.intersectionObserver)==null||i.disconnect())})}),this.resizeObserver=new ResizeObserver(t=>{for(let n of t){let r=n.contentRect.width<576;this.drawTypeButton.getElementsByTagName("span")[0].style.display=r?"none":"inline-block",this.textTypeButton.getElementsByTagName("span")[0].style.display=r?"none":"inline-block",this.uploadTypeButton.getElementsByTagName("span")[0].style.display=r?"none":"inline-block"}}),this.resizeObserver.observe(this),this.intersectionObserver.observe(this.canvas)}enableDrawPanel(){this.drawTypeButton.querySelector("input").checked=!0,this.textTypeButton.querySelector("input").checked=!1,this.uploadTypeButton.querySelector("input").checked=!1,this.textInput.parentNode.style.display="none",this.undoButton.parentNode.style.display="inline-block",this.pad.on(),this.isColorSelectSettingEnabled&&(this.colorSelect.style.visibility="visible"),this.setTextTypeButtonClassAndStyle(),this.setDrawTypeButtonClassAndStyle(),this.setUploadTypeButtonClassAndStyle(),this.cleaSignaturePad(),this.clearTextInput(),this.clearFileInput()}enableTextPanel(){this.drawTypeButton.querySelector("input").checked=!1,this.uploadTypeButton.querySelector("input").checked=!1,this.textTypeButton.querySelector("input").checked=!0,this.textInput.parentNode.style.display="inherit",this.undoButton.parentNode.style.display="none",this.pad.off(),this.isColorSelectSettingEnabled&&(this.colorSelect.style.visibility="visible"),this.setTextTypeButtonClassAndStyle(),this.setDrawTypeButtonClassAndStyle(),this.setUploadTypeButtonClassAndStyle(),this.cleaSignaturePad(),this.loadFont(),this.clearTextInput(),this.clearFileInput()}enableUploadPanel(){this.uploadTypeButton.querySelector("input").checked=!0,this.drawTypeButton.querySelector("input").checked=!1,this.textTypeButton.querySelector("input").checked=!1,this.textInput.parentNode.style.display="none",this.undoButton.parentNode.style.display="none",this.pad.off(),this.isColorSelectSettingEnabled&&(this.colorSelect.style.visibility="hidden"),this.setTextTypeButtonClassAndStyle(),this.setDrawTypeButtonClassAndStyle(),this.setUploadTypeButtonClassAndStyle(),this.cleaSignaturePad(),this.clearTextInput(),this.clearFileInput()}enableSaveButton(){this.isSubmitButtonSettingEnabled&&(this.saveButton.disabled=!1,this.setSaveButtonClassAndStyle())}disableSaveButton(){this.isSubmitButtonSettingEnabled&&(this.saveButton.disabled=!0,this.setSaveButtonClassAndStyle())}drawText(){let t=this.canvas,n=t.getContext("2d"),r="SignatureFont",i="58px",a="italic",s="";n.font=a+" "+s+" "+i+" "+r,n.textAlign="center",n.clearRect(0,0,t.width/this.scale,t.height/this.scale),n.fillText(this.textInput.value,t.width/2/this.scale,t.height/2/this.scale+11)}drawOnCanvas(t){return new Promise((n,r)=>{if(t&&t.type.match("image.*")){let i=new FileReader,a=this.canvas;i.onload=s=>{let l=new Image;l.src=s.target.result,l.onload=()=>{let c=a.getContext("2d"),u=l.width/l.height,d=a.width/this.scale,f=a.height/this.scale,h=d,p=f;if(d/f>u?h=f*u:p=d/u,p>h){let y=p/h;h=h*y,p=p*y}let b=(d-h)/2,m=(f-p)/2;setTimeout(()=>{c.clearRect(0,0,d,f),c.drawImage(l,b,m,h,p),this.pad.fromDataURL(""),n()},50)},l.onerror=()=>r(new Error("Failed to load image"))},i.onerror=()=>r(new Error("Failed to read file")),i.readAsDataURL(t)}else r(new Error("Invalid file type"))})}clearTextInput(){this.textInput&&(this.textInput.value="",this.handleDownloadState())}cleaSignaturePad(){this.pad.clear(),this.handleDownloadState()}clearFileInput(){this.fileInput&&(this.fileInput.value="",this.handleDownloadState())}handleDownloadState(){this.pad.isEmpty()&&this.textInput.value===""?(this.distributeSignatureData(null),this.disableSaveButton()):(this.cropCanvas(this.canvas).then(t=>{this.distributeSignatureData(t)}).catch(t=>{console.error("Failed to create a PNG blob:",t)}),this.enableSaveButton())}distributeSignatureData(t){let n=this.childrenNode.querySelector('input[type="file"]');if(t){if(this.convertBlobToBase64(t).then(r=>{this.dispatchEvent(new CustomEvent("change",{detail:{base64:r,blob:t}}))}).catch(r=>{this.dispatchEvent(new CustomEvent("change",{detail:{base64:null,blob:null}})),console.error("Failed to convert blob to base64:",r)}),n){let r=new File([t],`signature-${Date.now()}.png`,{type:t.type,lastModified:new Date}),i=new DataTransfer;i.items.add(r),n.files=i.files}}else this.dispatchEvent(new CustomEvent("change",{detail:{base64:null,blob:null}})),n&&(n.value="")}convertBlobToBase64(t){return new Promise((n,r)=>{let i=new FileReader;i.onloadend=()=>{let a=i.result.split(",")[1];n(a)},i.onerror=a=>{r(a)},i.readAsDataURL(t)})}loadFont(){if(!this.isFontLoaded){let t=this.dataset.fontUrl||"https://cdn.jsdelivr.net/npm/@fontsource/dancing-script/files/dancing-script-latin-400-normal.woff";new FontFace("SignatureFont",`url(${t})`).load().then(n=>{document.fonts.add(n),this.isFontLoaded=!0}).catch(n=>{console.error("Font loading failed:",n)})}}downloadBlob(t,n){let r=window.URL.createObjectURL(t),i=document.createElement("a");return i.style="display: none",i.href=r,i.download=n,document.body.appendChild(i),i.click(),window.URL.revokeObjectURL(r),new Promise(a=>{a()})}cropCanvas(t){let n=t.getContext("2d"),r=t.width,i=t.height,a=i,s=0,l=r,c=0,u=n.getImageData(0,0,r,i).data;for(let p=0;p<i;p++)for(let b=0;b<r;b++){let m=(p*r+b)*4;u[m+3]!==0&&(a=Math.min(a,p),s=Math.max(s,p),l=Math.min(l,b),c=Math.max(c,b))}let d=c-l+1,f=s-a+1,h=document.createElement("canvas");return h.width=d,h.height=f,h.getContext("2d").drawImage(t,l,a,d,f,0,0,d,f),new Promise((p,b)=>{h.toBlob(m=>{m?p(m):b(new Error("Failed to create a PNG blob."))},"image/png")})}disconnectedCallback(){this.fieldNode.remove(),this.resizeObserver&&this.resizeObserver.unobserve(this),this.intersectionObserver&&this.intersectionObserver.unobserve(this.canvas)}get tempalte(){return`
          <div>
            <div>
              <div data-target="typeButtonsContainer">
                <div>
                  <label data-target="drawTypeButton">
                    <svg xmlns="http://www.w3.org/2000/svg" style="width: 1.5rem; height: 1.5rem;" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
                      <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
                      <path d="M3 19c3.333 -2 5 -4 5 -6c0 -3 -1 -3 -2 -3s-2.032 1.085 -2 3c.034 2.048 1.658 2.877 2.5 4c1.5 2 2.5 2.5 3.5 1c.667 -1 1.167 -1.833 1.5 -2.5c1 2.333 2.333 3.5 4 3.5h2.5"></path>
                      <path d="M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z"></path>
                      <path d="M16 7h4"></path>
                    </svg>
                    <span>${this.defaultLabels.drawTypeButton}</span>
                    <input type="radio" name="type_option" id="draw_radio" value="draw" style="display: none;">
                  </label>
                </div>
                <div>
                  <label data-target="textTypeButton">
                    <svg xmlns="http://www.w3.org/2000/svg" style="width: 1.5rem; height: 1.5rem;" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
                      <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
                      <path d="M3 7v-2h13v2"></path>
                      <path d="M10 5v14"></path>
                      <path d="M12 19h-4"></path>
                      <path d="M15 13v-1h6v1"></path>
                      <path d="M18 12v7"></path>
                      <path d="M17 19h2"></path>
                    </svg>
                    <span>${this.defaultLabels.textTypeButton}</span>
                    <input type="radio" name="type_option" id="text_radio" value="draw" style="display: none;">
                  </label>
                </div>
                <div>
                  <label data-target="uploadTypeButton" for="signature_file_upload">
                    <svg xmlns="http://www.w3.org/2000/svg" style="width: 1.5rem; height: 1.5rem;" width="16" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                      <path d="M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2"></path>
                      <path d="M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"></path>
                    </svg>
                    <span>${this.defaultLabels.uploadTypeButton}</span>
                    <input data-target="fileInput" id="signature_file_upload" type="file" accept="image/*" style="display: none;">
                    <input type="radio" name="type_option" id="upload_radio" value="upload" style="display: none;">
                  </label>
                </div>
              </div>
            </div
            <div>
              <div>
                <input placeholder="${this.defaultLabels.textInputPlaceholder}" data-target="textInput">
              </div>
              <div>
                <canvas data-target="canvas"></canvas>
              </div>
              <div data-target="controlButtonsContainer">
                <div data-target="colorSelect" style="display: flex; gap: 1rem;">
                  <input aria-label="Black" type="radio" data-target="colorInput" name="color" value="#000000" style="accent-color: #000000; transform: scale(1.5);" checked>
                  <input aria-label="Blue" type="radio" data-target="colorInput" name="color" value="#3B82F6" style="accent-color: #3B82F6; transform: scale(1.5);">
                  <input aria-label="Green" type="radio" data-target="colorInput" name="color" value="#008000" style="accent-color: #008000; transform: scale(1.5);">
                  <input aria-label="Red" type="radio" data-target="colorInput" name="color" value="#EF4444" style="accent-color: #EF4444; transform: scale(1.5);">
                </div>
                <div>
                  <span>
                    <button aria-label="Undo" data-target="undoButton">
                      <svg xmlns="http://www.w3.org/2000/svg" style="width: 1rem; height: 1rem;" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
                        <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
                        <path d="M9 14l-4 -4l4 -4"></path>
                        <path d="M5 10h11a4 4 0 1 1 0 8h-1"></path>
                      </svg>
                      <span>${this.defaultLabels.undoButton}</span>
                    </button>
                  </span>
                  <span>
                    <button aria-label="Clear" data-target="clearButton">
                      <svg xmlns="http://www.w3.org/2000/svg" style="width: 1rem; height: 1rem;" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
                        <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
                        <path d="M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747"></path>
                        <path d="M20 4v5h-5"></path>
                      </svg>
                      <span>${this.defaultLabels.clearButton}</span>
                    </button>
                  </span>
                </div>
              </div>
              <div>
                <button data-target="saveButton">
                  <span>${this.defaultLabels.saveButton}</span>
                </button>
              </div>
            </div>
          </div>
        `}},ae(Sl,"DEFAULT_STYLES",{controlButtonsContainer:"display: flex; align-items: center; justify-content: space-between; text-align: center; margin: 1rem 0;",saveButton:"color: #ffffff; font-family: ui-sans-serif, system-ui, sans-serif font-size: 16px; font-weight: 600; line-height: 24px; padding: 0px 16px; text-transform: uppercase; background-color: #222222; cursor: pointer; align-items: center; border-radius: 8px; gap: 8px; display: inline-flex; flex-shrink: 0; flex-wrap: wrap; height: 48px; justify-content: center; outline-color: #222222; text-align: center; text-decoration-line: none; width: 100%; border: 1px solid #222222;",saveButtonDisabled:"background-color: #D3D3D3; color: #808080; cursor: not-allowed; border: 0;",undoButton:"color: #222222; background-color: transparent; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; font-weight: 500; line-height: 14px; padding: 0px 12px; text-transform: uppercase; appearance: button; cursor: pointer; align-items: center; border-radius: 8px; gap: 8px; display: inline-flex; flex-shrink: 0; flex-wrap: wrap; height: 32px; justify-content: center; outline-color: #222222; text-align: center; border: 1px solid #222222;",clearButton:"color: #222222; background-color: transparent; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; font-weight: 500; line-height: 14px; padding: 0px 12px; text-transform: uppercase; appearance: button; cursor: pointer; align-items: center; border-radius: 8px; gap: 8px; display: inline-flex; flex-shrink: 0; flex-wrap: wrap; height: 32px; justify-content: center; outline-color: #222222; text-align: center; border: 1px solid #222222;",canvas:"display: block; vertical-align: middle; width: 100%; border-radius: 8px; background-color: #ffffff; padding: 1px; touch-action: none; user-select: none; text-align: center; line-height: 24px; border: 1px solid #D3D3D3;",textInput:"color: #222222; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 24px; font-weight: 400; line-height: 32px; margin: 0px 0px 16px; padding: 0px 16px; background-color: #ffffff; border-radius: 8px; flex-shrink: 1; height: 56px; outline: #222222 none 0px; outline-offset: 0px; width: 100%; text-align: start; border: 1px solid #D3D3D3;",typeButtonsContainer:"margin-bottom: 1rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem;",drawTypeButton:"color: #222222; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 16px; font-weight: 500; line-height: 24px; padding: 0px 40px; text-transform: uppercase; background-color: transparent; cursor: pointer; align-items: center; border-radius: 8px; gap: 8px; display: inline-flex; flex-shrink: 0; flex-wrap: wrap; height: 48px; justify-content: center; outline-color: #222222; text-align: center; border: 1px solid #222222;",drawTypeButtonActive:"color: #fff; background-color: #222222; font-weight: 500;",textTypeButton:"color: #222222; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 16px; font-weight: 500; line-height: 24px; padding: 0px 40px; text-transform: uppercase; background-color: transparent; cursor: pointer; align-items: center; border-radius: 8px; gap: 8px; display: inline-flex; flex-shrink: 0; flex-wrap: wrap; height: 48px; justify-content: center; outline-color: #222222; text-align: center; border: 1px solid #222222;",textTypeButtonActive:"color: #fff; background-color: #222222; font-weight: 500;",uploadTypeButton:"color: #222222; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 16px; font-weight: 500; line-height: 24px; padding: 0px 40px; text-transform: uppercase; background-color: transparent; cursor: pointer; align-items: center; border-radius: 8px; gap: 8px; display: inline-flex; flex-shrink: 0; flex-wrap: wrap; height: 48px; justify-content: center; outline-color: #222222; text-align: center; border: 1px solid #222222;",uploadTypeButtonActive:"color: #fff; background-color: #222222; font-weight: 500;"}),ae(Sl,"DEFAULT_LABELS",{drawTypeButton:"Draw",textTypeButton:"Type",uploadTypeButton:"Upload",undoButton:"Undo",clearButton:"Clear",saveButton:"Submit",textInputPlaceholder:"Type signature here"}),ae(Sl,"observedAttributes",["data-download-on-save","data-with-typed","data-with-drawn","data-with-upload","data-with-color-select","data-with-submit","data-control-buttons-container-class","data-control-buttons-container-style","data-save-button-text","data-save-button-class","data-save-button-style","data-save-button-disabled-class","data-save-button-disabled-style","data-undo-button-text","data-undo-button-class","data-undo-button-style","data-clear-button-text","data-clear-button-class","data-clear-button-style","data-text-input-placeholder","data-text-input-class","data-text-input-style","data-canvas-class","data-canvas-style","data-type-buttons-container-class","data-type-buttons-container-style","data-draw-type-button-text","data-draw-type-button-class","data-draw-type-button-style","data-draw-type-button-active-class","data-draw-type-button-active-style","data-text-type-button-text","data-text-type-button-class","data-text-type-button-style","data-text-type-button-active-class","data-text-type-button-active-style","data-upload-type-button-text","data-upload-type-button-class","data-upload-type-button-style","data-upload-type-button-active-class","data-upload-type-button-active-style"]),Sl);if(typeof window<"u"&&window.customElements&&!window.customElements.get("signature-maker"))window.customElements.define("signature-maker",o_e);else throw new Error("signature-maker-js can only be used in a browser environment.");var i_e=({downloadOnSave:e=!1,withTyped:t=!0,withDrawn:n=!0,withUpload:r=!0,withColorSelect:i=!0,withSubmit:a=!0,controlButtonsContainerClass:s="",controlButtonsContainerStyle:l="",saveButtonText:c="",saveButtonClass:u="",saveButtonStyle:d="",saveButtonDisabledClass:f="",saveButtonsDisabledStyle:h="",undoButtonText:p="",undoButtonClass:b="",undoButtonStyle:m="",clearButtonText:y="",clearButtonClass:g="",clearButtonStyle:v="",textInputPlaceholder:x="",textInputClass:w="",textInputStyle:S="",canvasClass:O="",canvasStyle:C="",typeButtonsContainerClass:P="",typeButtonsContainerStyle:k="",drawTypeButtonText:E="",drawTypeButtonClass:_="",drawTypeButtonStyle:T="",drawTypeButtonActiveClass:$="",drawTypeButtonActiveStyle:M="",textTypeButtonText:j="",textTypeButtonClass:W="",textTypeButtonStyle:U="",textTypeButtonActiveClass:K="",textTypeButtonActiveStyle:H="",uploadTypeButtonText:F="",uploadTypeButtonClass:R="",uploadTypeButtonStyle:V="",uploadTypeButtonActiveClass:z="",uploadTypeButtonActiveStyle:L="",fontUrl:A="",className:N="",style:q={},onSave:Y=()=>{},onChange:G=()=>{}})=>{if(typeof window>"u")return B.createElement("div",{},"SignatureMaker component is not supported on the server side");{let X=B.useRef(null);return B.useEffect(()=>{let Q=X==null?void 0:X.current,Z=ce=>Y&&Y(ce.detail);return Q&&Q.addEventListener("save",Z),()=>{Q&&Q.removeEventListener("save",Z)}},[Y]),B.useEffect(()=>{let Q=X==null?void 0:X.current,Z=ce=>G&&G(ce.detail);return Q&&Q.addEventListener("change",Z),()=>{Q&&Q.removeEventListener("change",Z)}},[G]),B.createElement("signature-maker",{"data-download-on-save":e,"data-with-typed":t,"data-with-drawn":n,"data-with-upload":r,"data-with-color-select":i,"data-with-submit":a,"data-control-buttons-container-class":s,"data-control-buttons-container-style":l,"data-save-button-text":c,"data-save-button-class":u,"data-save-button-style":d,"data-save-button-disabled-class":f,"data-save-button-disabled-style":h,"data-undo-button-text":p,"data-undo-button-class":b,"data-undo-button-style":m,"data-clear-button-text":y,"data-clear-button-class":g,"data-clear-button-style":v,"data-text-input-placeholder":x,"data-text-input-class":w,"data-text-input-style":S,"data-canvas-class":O,"data-canvas-style":C,"data-type-buttons-container-class":P,"data-type-buttons-container-style":k,"data-draw-type-button-text":E,"data-draw-type-button-class":_,"data-draw-type-button-style":T,"data-draw-type-button-active-class":$,"data-draw-type-button-active-style":M,"data-text-type-button-text":j,"data-text-type-button-class":W,"data-text-type-button-style":U,"data-text-type-button-active-class":K,"data-text-type-button-active-style":H,"data-upload-type-button-text":F,"data-upload-type-button-class":R,"data-upload-type-button-style":V,"data-upload-type-button-active-class":z,"data-upload-type-button-active-style":L,"data-font-url":A,ref:X,className:N,style:q})}},a_e=i_e;/*! Bundled license information:

@docuseal/signature-maker-js/dist/index.esm.js:
  (*! Bundled license information:
  
  signature_pad/dist/signature_pad.js:
    (*!
     * Signature Pad v5.0.3 | https://github.com/szimek/signature_pad
     * (c) 2024 Szymon Nowak | Released under the MIT license
     *)
  *)
*/const hM=({value:e="",onChange:t,onSignatureChange:n,onSignatureComplete:r,label:i="Signature",required:a=!1,disabled:s=!1})=>{const[l,c]=B.useState(e),[u,d]=B.useState(""),[f,h]=B.useState(!1);B.useEffect(()=>{e&&e!==l&&c(e)},[e]);const p=B.useCallback(b=>{s||(c(b.base64),d(b.base64),h(!1),t==null||t(b.base64),n==null||n(b.base64),r==null||r(b.base64))},[s,t,n,r]);return D.jsxs(Io,{fullWidth:!0,disabled:s,children:[D.jsx(lo,{component:"legend",required:a,children:D.jsx(Xe,{variant:"body2",fontWeight:500,children:i})}),D.jsx(He,{sx:{mt:1},children:D.jsx(He,{children:D.jsx("div",{style:{width:"100%",height:"100%"},children:D.jsx(a_e,{withTyped:!0,withDrawn:!0,withSubmit:!0,withUpload:!1,withColorSelect:!1,onSave:p,clearButtonStyle:`background-color: transparent;
 color: #1976d2;
 font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
 font-weight: 500;
 font-size: 0.875rem;
 line-height: 1.75;
 letter-spacing: 0.02857em;
 min-width: 64px;
 border: 1px solid #1976d2;
 border-radius: 4px;
 cursor: pointer;
 display: flex;
 align-items: center;
 justify-content: center;
 box-sizing: border-box;`,undoButtonStyle:"display: none;",drawTypeButtonStyle:`
  font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
  min-width: 64px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  `,textTypeButtonStyle:`
  min-width: 64px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;`,textTypeButtonActiveStyle:"background-color: #1976d2; color: #fff;",textInputStyle:"height: 30px; width: 100%; margin-bottom:12px; padding:3px;",saveButtonStyle:`background-color: #1976d2; color: #fff; font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.75;
  letter-spacing: 0.02857em;
  min-width: 64px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 16px;
  right: 80px;
  `,saveButtonsDisabledStyle:`background-color: #a3a3a3ff; color: #fff; font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.75;
  letter-spacing: 0.02857em;
  min-width: 64px;
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 16px;
  right: 80px;`,saveButtonText:"Save"})})})})]})},s_e=e=>{var f;const{data:t,visible:n,path:r,uischema:i}=e;if(!n)return null;const a=r||((f=i==null?void 0:i.scope)==null?void 0:f.replace("#/properties/","")),s=e.onEdit,l=e.onDelete,u=e.selectedField===a;return s?D.jsxs(He,{sx:{border:"1px dashed grey",borderRadius:2,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[D.jsx(Xe,{sx:{flex:1,fontSize:14},children:"Signature"}),D.jsxs(He,{sx:{display:"flex",alignItems:"center",gap:1},children:[D.jsx(Pt,{size:"small",onClick:()=>{s&&a&&s(a)},children:D.jsx(Lo,{fontSize:"small",sx:{color:u?"#1976d2":"inherit"}})}),D.jsx(Pt,{size:"small",onClick:()=>{l&&a&&l(a)},children:D.jsx(Rr,{fontSize:"small",sx:{color:"black","&:hover":{color:"red"}}})})]})]}):D.jsx(He,{sx:{width:"100%",padding:"8px"},children:D.jsx(hM,{value:t||"",onChange:h=>{e.handleChange&&e.path&&e.handleChange(e.path,h)},label:"",required:!1,disabled:!1,width:400,height:200})})},mM=gn(s_e),l_e=e=>{var y;const{data:t,handleChange:n,visible:r,path:i,uischema:a,schema:s,label:l}=e;if(!r)return null;const c=i||((y=a==null?void 0:a.scope)==null?void 0:y.replace("#/properties/","")),u=e.onEdit,d=e.onDelete,h=e.selectedField===c,p=!!u,b=(s==null?void 0:s.enum)||["1","2","3","4","5"],m=g=>{n(i,g.target.value)};return p?D.jsxs(He,{sx:{border:"1px dashed grey",borderRadius:2,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[D.jsx(lo,{sx:{flex:1,fontSize:14},children:l||"Range"}),D.jsxs(He,{sx:{display:"flex",alignItems:"center",gap:1},children:[D.jsx(Pt,{size:"small",onClick:()=>u==null?void 0:u(c),children:D.jsx(Lo,{fontSize:"small",sx:{color:h?"#1976d2":"inherit"}})}),D.jsx(Pt,{size:"small",onClick:()=>d==null?void 0:d(c),children:D.jsx(Rr,{fontSize:"small",sx:{color:"black","&:hover":{color:"red"}}})})]})]}):D.jsxs(Io,{component:"fieldset",fullWidth:!0,children:[D.jsx(lo,{component:"legend",sx:{mb:1,fontWeight:500},children:l||"Range"}),D.jsx(jg,{row:!0,value:t||"",onChange:m,sx:{gap:2},children:b.map(g=>D.jsx(Ms,{value:g,control:D.jsx(Ag,{}),label:g},g))})]})},yM=gn(l_e),c_e=e=>{var g;const{data:t,handleChange:n,visible:r,path:i,uischema:a,label:s,required:l}=e;if(!r)return null;const c=i||((g=a==null?void 0:a.scope)==null?void 0:g.replace("#/properties/","")),u=e.onEdit,d=e.onDelete,h=e.selectedField===c,p=!!u,m=!t||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),y=t&&!m?"Please enter valid email id (e.g., test@gmail.com)":"";return p?D.jsxs(He,{sx:{border:"1px dashed grey",borderRadius:2,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[D.jsx(lo,{sx:{flex:1,fontSize:14,textAlign:"center"},children:s||"Email"}),D.jsxs(He,{sx:{display:"flex",alignItems:"center",gap:1},children:[D.jsx(Pt,{size:"small",onClick:()=>u==null?void 0:u(c),children:D.jsx(Lo,{fontSize:"small",sx:{color:h?"#1976d2":"inherit"}})}),D.jsx(Pt,{size:"small",onClick:()=>d==null?void 0:d(c),children:D.jsx(Rr,{fontSize:"small",sx:{color:"black","&:hover":{color:"red"}}})})]})]}):D.jsx(Do,{fullWidth:!0,label:s||"Email ID",value:t||"",onChange:v=>n(i,v.target.value),type:"email",required:l,error:!!y,helperText:y,sx:{mb:1}})},gM=gn(c_e),Xl={required:"Phone number is required.",unsupported:"Only US (+1) and India (+91) phone numbers are supported.",format:"Enter a valid US or India phone number, with or without the country code.",india:"Enter a valid India mobile number (10 digits starting 6-9).",us:"Enter a valid US phone number with valid area and exchange codes."};function u_e(e){const t=(e??"").trim(),n=t.replace(/\D/g,"");return t.startsWith("+")?`+${n}`:n}function d_e(e){return/^[6-9]\d{9}$/.test(e)}function dO(e){return/^[2-9]\d{2}$/.test(e)&&!(e[1]==="1"&&e[2]==="1")}function f_e(e){return/^\d{10}$/.test(e)?dO(e.slice(0,3))&&dO(e.slice(3,6)):!1}function p_e(e){if(e.startsWith("+")){const t=e.slice(1);return t.startsWith("91")?{country:"IN",national:t.slice(2)}:t.startsWith("1")?{country:"US",national:t.slice(1)}:{error:Xl.unsupported}}if(e.length===12&&e.startsWith("91"))return{country:"IN",national:e.slice(2)};if(e.length===11&&e.startsWith("1"))return{country:"US",national:e.slice(1)};if(e.length===10){const t=e[0];if(t>="6"&&t<="9")return{country:"IN",national:e};if(t>="2"&&t<="5")return{country:"US",national:e}}return{error:Xl.format}}function h_e(e){if(!(e??"").trim())return{valid:!1,error:Xl.required};const t=p_e(u_e(e));if("error"in t)return{valid:!1,error:t.error};const{country:n,national:r}=t;return n==="IN"?d_e(r)?{valid:!0,country:n,e164:`+91${r}`}:{valid:!1,country:n,error:Xl.india}:f_e(r)?{valid:!0,country:n,e164:`+1${r}`}:{valid:!1,country:n,error:Xl.us}}const fO=e=>{if(typeof e=="string"){const n=e.trim();return n||void 0}const t=e==null?void 0:e.payerName;return typeof t=="string"&&t.trim()?t.trim():void 0},m_e=e=>{let t,n;if(Array.isArray(e)){const r=e,i=r.some(s=>s==null?void 0:s.insuranceType),a=s=>r.find(l=>s.test(String((l==null?void 0:l.insuranceType)??"")));t=a(/primary/i)??(i?void 0:r[0]),n=a(/secondary/i)??(i?void 0:r[1])}else if(e&&typeof e=="object"){const r=e;if("primary"in r||"secondary"in r)t=r.primary,n=r.secondary;else{const i=Object.values(r);t=i[0],n=i[1]}}return{primaryPayerName:fO(t),secondaryPayerName:fO(n)}},pO=({type:e,payerName:t})=>D.jsxs(He,{sx:{display:"flex",alignItems:"baseline",gap:1,mb:.5},children:[D.jsx(Xe,{sx:{fontSize:14,fontWeight:500,minWidth:84},children:e}),D.jsx(Xe,{sx:{fontSize:14},children:t})]}),y_e=({label:e,primaryPayerName:t,secondaryPayerName:n})=>D.jsxs(He,{sx:{width:"100%"},children:[D.jsx(lo,{sx:{fontSize:14,fontWeight:600,display:"block",mb:1},children:e}),!t&&!n?D.jsx(Xe,{sx:{fontSize:14,color:"text.disabled"},children:"No Insurance"}):D.jsxs(D.Fragment,{children:[t&&D.jsx(pO,{type:"Primary",payerName:t}),n&&D.jsx(pO,{type:"Secondary",payerName:n})]})]}),g_e=e=>{var x,w;const{data:t,handleChange:n,visible:r,enabled:i,path:a,uischema:s,label:l,required:c}=e;if(!r)return null;const u=a||((x=s==null?void 0:s.scope)==null?void 0:x.replace("#/properties/","")),d=e.onEdit,f=e.onDelete,p=e.selectedField===u,b=!!d,m=(w=s==null?void 0:s.options)==null?void 0:w.autoFieldKey,y=tC(m),g=l||"Auto Text",v=yB(m)||g;if(b){const S=D.jsxs(He,{sx:{display:"flex",alignItems:"center",gap:1},children:[D.jsx(Pt,{size:"small",onClick:()=>d==null?void 0:d(u),children:D.jsx(Lo,{fontSize:"small",sx:{color:p?"#1976d2":"inherit"}})}),D.jsx(Pt,{size:"small",onClick:()=>f==null?void 0:f(u),children:D.jsx(Rr,{fontSize:"small",sx:{color:"black","&:hover":{color:"red"}}})})]});return D.jsxs(He,{sx:{border:"1px dashed grey",borderRadius:2,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[D.jsx(lo,{sx:{flex:1,fontSize:14},children:v}),S]})}if(y==="insurance"){const{primaryPayerName:S,secondaryPayerName:O}=m_e(t);return D.jsx(He,{sx:{mb:2},children:D.jsx(y_e,{label:g,primaryPayerName:S,secondaryPayerName:O})})}if(y==="heading")return D.jsx(Xe,{variant:"h6",sx:{my:2,px:4,textAlign:"center"},children:t||g});if(y==="date"){const S=O=>{n(a,O&&Ki(O)?W0(O,"yyyy-MM-dd"):"")};return D.jsx(Ci,{dateAdapter:dM,children:D.jsx(He,{sx:{mb:2},children:D.jsx(pu,{label:g+(c?" *":""),value:fM(String(t??"")),onChange:S,disabled:i===!1,format:"MM-dd-yyyy",slotProps:{textField:{fullWidth:!0,placeholder:"MM-DD-YYYY",inputProps:{inputMode:"numeric",placeholder:"MM-DD-YYYY"}}}})})})}if(y==="phone"){const S=String(t??""),O=h_e(S),C=S&&!O.valid?O.error:"",P=()=>{O.valid&&O.e164&&O.e164!==S&&n(a,O.e164)};return D.jsx(Do,{fullWidth:!0,label:g,value:t??"",onChange:k=>n(a,k.target.value),onBlur:P,disabled:i===!1,required:c,type:"tel",placeholder:"+1 XXX XXX XXXX",inputProps:{inputMode:"tel"},error:!!C,helperText:C,sx:{mb:2}})}return D.jsx(Do,{fullWidth:!0,label:g,value:t??"",onChange:S=>n(a,S.target.value),disabled:i===!1,multiline:y==="multiline",minRows:y==="multiline"?3:void 0,sx:{mb:2}})},bM=gn(g_e),b_e=({uischema:e})=>D.jsx(Xe,{variant:"h4",sx:{my:2,textAlign:"left"},children:e.text||"Heading"}),v_e=e=>{var O,C,P;const{data:t,handleChange:n,path:r,label:i,uischema:a,schema:s}=e,l=B.useRef(null),[c,u]=B.useState(t||""),[d,f]=B.useState(!1),h=r||((O=a==null?void 0:a.scope)==null?void 0:O.replace("#/properties/",""))||"";B.useEffect(()=>{u(t||"")},[t]);const p=(C=a==null?void 0:a.scope)==null?void 0:C.split("/").pop(),b=((P=s==null?void 0:s.properties)==null?void 0:P[p])||s,m=(b==null?void 0:b.title)||i||"Image",y=k=>{if(k&&k.type.startsWith("image/")){const E=new FileReader;E.onload=_=>{var $;const T=($=_.target)==null?void 0:$.result;u(T),n&&typeof n=="function"&&n(h,T)},E.onerror=_=>{console.error("Error reading file:",_)},E.readAsDataURL(k)}else console.log("File is not a valid image:",k==null?void 0:k.type)},g=k=>{var _;const E=(_=k.target.files)==null?void 0:_[0];E?(y(E),k.target&&(k.target.value="")):console.log("No file selected")},v=k=>{k.preventDefault(),f(!0)},x=k=>{k.preventDefault(),f(!1)},w=k=>{k.preventDefault(),f(!1);const E=k.dataTransfer.files[0];E&&y(E)},S=()=>{u(""),l.current&&(l.current.value=""),n&&typeof n=="function"&&n(h,"")};return c?D.jsxs("div",{style:{marginBottom:16},children:[D.jsx(Xe,{variant:"body1",sx:{mb:1,fontWeight:500},children:m}),D.jsxs(He,{sx:{border:"1px solid #ddd",borderRadius:2,p:2,backgroundColor:"#fafafa",position:"relative"},children:[D.jsx("img",{"data-id":"image-preview",src:c,alt:"Preview",style:{maxHeight:200,maxWidth:"100%",display:"block",margin:"0 auto",borderRadius:4,objectFit:"contain"},onError:k=>{console.error("Image failed to load:",k)},onLoad:()=>{console.log("Image loaded successfully")}}),D.jsxs(He,{sx:{display:"flex",gap:1,mt:2,justifyContent:"center"},children:[D.jsx(Sn,{"data-id":"change-image-button",variant:"outlined",size:"small",onClick:()=>{var k;return(k=l.current)==null?void 0:k.click()},children:"Change Image"}),D.jsx(Sn,{"data-id":"remove-image-button",variant:"outlined",size:"small",color:"error",onClick:S,children:"Remove"})]})]}),D.jsx("input",{type:"file",accept:"image/*",ref:l,style:{display:"none"},onChange:g},`file-input-${h}`)]}):D.jsxs("div",{style:{marginBottom:16},children:[D.jsx(Xe,{variant:"body1",sx:{mb:1,fontWeight:500},children:m}),D.jsxs(He,{"data-id":"image-upload-container",onDragOver:v,onDragLeave:x,onDrop:w,onClick:()=>{var k;return(k=l.current)==null?void 0:k.click()},sx:{border:d?"2px dashed #1976d2":"2px dashed #ccc",borderRadius:2,p:4,textAlign:"center",backgroundColor:d?"#e3f2fd":"#fafafa",cursor:"pointer",transition:"all 0.2s ease","&:hover":{backgroundColor:"#f0f0f0",borderColor:"#999"}},children:[D.jsx(Xe,{variant:"body2",color:"textSecondary",sx:{mb:2,fontSize:"14px"},children:"Drag and drop an image here or click the button below and choose an image to upload"}),D.jsx(Sn,{"data-id":"choose-image-button",variant:"contained",onClick:k=>{var E;k.stopPropagation(),(E=l.current)==null||E.click()},sx:{backgroundColor:"#20b2aa","&:hover":{backgroundColor:"#1e9e96"}},children:"Choose Image"})]}),D.jsx("input",{"data-id":"file-input",type:"file",accept:"image/*",ref:l,style:{display:"none"},onChange:g},`file-input-${h}-upload`)]})},w_e=e=>{const{data:t,visible:n}=e;if(!n)return null;const r=t;return r?D.jsx("div",{style:{padding:8},children:D.jsx("div",{dangerouslySetInnerHTML:{__html:r},className:"content-renderer"})}):null},x_e=gn(w_e),S_e=e=>{var f;const{uischema:t,schema:n,path:r,renderers:i,cells:a,sectionType:s}=e,l=(h,p)=>p==="THERAPIST_SECTION"||h!=null&&h.includes("therapist_section")?{label:"Therapist Section",infoText:"This section can only be completed by therapists."}:p==="SUPERVISION_SECTION"||h!=null&&h.includes("supervision_section")?{label:"Supervision Section",infoText:"This section can only be completed by supervisors. If there is no supervisor, any field in this section will be left blank."}:{label:"Form Section",infoText:"This is form section"},c=t._key||"",u=l(c,s),d=t.label||u.label;return D.jsxs(He,{sx:{mb:3,border:"1px solid #ccc",borderRadius:2,p:2},children:[D.jsx(Xe,{variant:"h6",sx:{mb:1,fontWeight:600},children:d}),s!=="FORM_SECTION"&&!c.includes("form_section")&&D.jsxs(He,{sx:{display:"flex",alignItems:"flex-start",gap:.5,mb:2,opacity:.7},children:[D.jsx(GR,{sx:{fontSize:"12px",color:"#666",mt:"2px"}})," ",D.jsx(Xe,{sx:{fontSize:"12px",color:"#262626"},children:u.infoText})]}),D.jsx(He,{children:(f=t.elements)==null?void 0:f.map((h,p)=>D.jsx(Kn,{uischema:h,schema:n,path:r,renderers:i,cells:a},p))})]})},T_e=Ao(S_e),vM=({schema:e,uischema:t,data:n,onChange:r,onSave:i,onErrors:a,enableSubmit:s,setHeight:l,readOnly:c})=>{const[u,d]=B.useState(n||{}),[f,h]=B.useState([]);B.useEffect(()=>{const y=document.createElement("style");return y.textContent=`
      .MuiInputBase-root {
        height: auto !important;
      }
    `,document.head.appendChild(y),()=>{document.head.removeChild(y)}},[]);const p=y=>{d(y.data||{}),y.errors?(h(y.errors),a==null||a(y.errors)):h([]),r==null||r(y.data||{})};B.useEffect(()=>{d(n||{})},[n]);const b=()=>{i==null||i(u,e,t)},m=[{tester:y=>{if(y.type!=="Group")return-1;const g=y._key||"";return g.includes("form_section")||g.includes("therapist_section")||g.includes("supervision_section")?15:-1},renderer:T_e},{tester:y=>y.type==="HorizontalLayout"?1e3:-1,renderer:JPe},{tester:st(1e3,y=>{var S;if(!Hn(y))return!1;const g=y.scope;if(!g)return!1;const v=g.replace("#/properties/",""),x=(S=e==null?void 0:e.properties)==null?void 0:S[v];return!!(x!=null&&x.title)&&x.title==="Content"}),renderer:x_e},{tester:st(1e3,y=>{var O;if(!Hn(y))return!1;const g=y.scope;if(!g)return!1;const v=g.replace("#/properties/",""),x=(O=e==null?void 0:e.properties)==null?void 0:O[v],w=(x==null?void 0:x.title)==="Signature",S=v&&v.includes("signature");return w||S}),renderer:mM},{tester:y=>y.type==="Label"?10:-1,renderer:b_e},{tester:(y,g)=>{var v;if(y.type==="Control"&&y.scope){const x=y.scope.split("/").pop(),w=((v=g==null?void 0:g.properties)==null?void 0:v[x])||g;return(w==null?void 0:w.format)==="data-url"?10:-1}return-1},renderer:gn(v_e)},{tester:ZPe,renderer:XPe},{tester:(y,g)=>{var v;if(y.type==="Control"&&y.scope){const x=y.scope.split("/").pop(),w=((v=g==null?void 0:g.properties)==null?void 0:v[x])||g;return(w==null?void 0:w.format)==="date"?1e3:-1}return-1},renderer:gn(y=>{var W,U,K;const{data:g,handleChange:v,path:x,label:w,uischema:S,schema:O,required:C,errors:P,visible:k}=y;if(!k)return null;const E=x||((W=S==null?void 0:S.scope)==null?void 0:W.replace("#/properties/",""))||"",_=(U=S==null?void 0:S.scope)==null?void 0:U.split("/").pop(),T=((K=O==null?void 0:O.properties)==null?void 0:K[_])||O,$=(T==null?void 0:T.title)||w||"Date",M=fM(g),j=H=>{if(H&&Ki(H)){const F=W0(H,"yyyy-MM-dd");v(E,F)}else v(E,"")};return D.jsx(Ci,{dateAdapter:dM,children:D.jsx("div",{style:{marginBottom:16},children:D.jsx(pu,{label:$+(C?" *":""),value:M,onChange:j,format:"MM/dd/yyyy",slotProps:{textField:{fullWidth:!0,error:!!P,helperText:P&&typeof P=="string"?P:void 0,placeholder:"MM/DD/YYYY",inputProps:{placeholder:"MM/DD/YYYY"}}}})})})})},{tester:st(3e3,(y,g)=>{var C;if(!Hn(y))return!1;const v=y.scope;if(!v)return!1;const x=v.replace("#/properties/",""),w=(C=g==null?void 0:g.properties)==null?void 0:C[x],S=(w==null?void 0:w.format)==="signature",O=(w==null?void 0:w.title)==="Signature";return S||O}),renderer:gn(y=>{const{data:g,handleChange:v,path:x,visible:w}=y,[S,O]=B.useState(!1);return w?S||!g?D.jsx(He,{sx:{width:"100%"},children:D.jsx(hM,{value:g||"",onChange:C=>{v&&v(x,C)},onSignatureComplete:C=>{O(!1),v&&v(x,C)},label:"Signature",required:!1,disabled:c||!1,width:400,height:200})}):D.jsxs(He,{sx:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",pt:3},children:[D.jsx("img",{src:`data:image/png;base64,${g}`,alt:"Signature Preview",width:400,height:200}),!c&&D.jsx(He,{sx:{mt:1},children:D.jsx(Sn,{variant:"contained",size:"small",onClick:()=>O(!0),children:"Sign Again"})})]}):null})},{tester:st(3e3,(y,g)=>{var C;if(!Hn(y))return!1;const v=y.scope;if(!v)return!1;const x=v.replace("#/properties/",""),w=(C=g==null?void 0:g.properties)==null?void 0:C[x],S=(w==null?void 0:w.title)==="Email ID",O=x&&x.startsWith("email");return S||O}),renderer:gM},{tester:st(3e3,(y,g)=>{var P,k;if(!Hn(y))return!1;const v=y.scope;if(!v)return!1;const x=v.replace("#/properties/",""),w=(P=g==null?void 0:g.properties)==null?void 0:P[x],S=((k=y.options)==null?void 0:k.format)==="range",O=(w==null?void 0:w.title)==="Range",C=x&&x.startsWith("range_");return S||O||C}),renderer:yM},{tester:st(5e3,y=>{var g;return Hn(y)?((g=y.options)==null?void 0:g.autoField)===!0:!1}),renderer:bM},...HR];return D.jsxs(zC,{style:{marginLeft:0,marginRight:0,paddingLeft:0,textAlign:"left",height:l?`calc(${l} - 10vh)`:"90vh",overflowY:"scroll",paddingTop:"8px"},id:"form-renderer-container",children:[D.jsx(o$,{schema:e,uischema:t,data:n||{},renderers:m,cells:YR,onChange:p,readonly:c||!1},JSON.stringify(e)+JSON.stringify(t)),s?D.jsx(He,{display:"flex",justifyContent:"flex-end",mt:2,right:32,children:D.jsx(Sn,{"data-id":"submit-button-form-renderer",variant:"contained",onClick:b,style:{fontSize:"14px"},children:D.jsx(Xe,{fontSize:"14px",children:"Submit"})})}):(e==null?void 0:e.properties)&&Object.keys(e.properties).length!==0&&D.jsx(He,{display:"flex",justifyContent:"flex-end",mt:2,right:32,children:D.jsx(Sn,{"data-id":"submit-button-form-renderer",variant:"contained",onClick:b,disabled:((f==null?void 0:f.length)??0)>0,style:{fontSize:"14px"},children:D.jsx(Xe,{fontSize:"14px",children:"Submit"})})})]})},O_e=({formData:e,onDataChange:t,onSave:n,schema:r,uischema:i,enableSubmit:a,setHeight:s,readOnly:l})=>{const c=ns(h=>h.formBuilder.schema),u=ns(h=>h.formBuilder.uischema),d=r&&Object.keys(r).length>0?r:c,f=i&&Object.keys(i).length>0?i:u;return D.jsx("div",{id:"form-preview",children:D.jsx(vM,{schema:d,uischema:f,data:e,onChange:t,onSave:n,enableSubmit:a,setHeight:s,readOnly:l})})},E_e=ot(D.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"}),"TextFields"),C_e=ot(D.jsx("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"}),"Event"),P_e=ot(D.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"RadioButtonChecked"),__e=ot(D.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-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),k_e=ot(D.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 12-4-4h8z"}),"ArrowDropDownCircle"),D_e=ot(D.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5M9.5 8c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5S9.5 9.38 9.5 8m6.5 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"GroupWork"),$_e=ot(D.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn"),R_e=ot(D.jsx("path",{d:"M5 4v3h5.5v12h3V7H19V4z"}),"Title"),M_e=ot(D.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),I_e=ot(D.jsx("path",{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"}),"Checklist"),N_e=ot(D.jsx("path",{d:"M3 18h12v-2H3zM3 6v2h18V6zm0 7h18v-2H3z"}),"Notes"),A_e=ot(D.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn"),j_e=ot(D.jsx("path",{d:"M3 2h18v2H3zm0 18h18v2H3zm0-6h18v2H3zm0-6h18v2H3z"}),"DensitySmallOutlined"),mm=ot(D.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"DragIndicator"),L_e=ot(D.jsx("path",{d:"M18.41 5.8 17.2 4.59c-.78-.78-2.05-.78-2.83 0l-2.68 2.68L3 15.96V20h4.04l8.74-8.74 2.63-2.63c.79-.78.79-2.05 0-2.83M6.21 18H5v-1.21l8.66-8.66 1.21 1.21zM11 20l4-4h6v4z"}),"DriveFileRenameOutline"),F_e=ot(D.jsx("path",{d:"M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5C3.12 9.5 2 10.62 2 12s1.12 2.5 2.5 2.5c1.03 0 1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5s1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5 1.38 0 2.5-1.12 2.5-2.5s-1.12-2.5-2.5-2.5"}),"LinearScale"),B_e=ot(D.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email"),V_e=ot(D.jsx("path",{d:"M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm3.85-4h1.64L21 16l-1.99 1.99c-1.31-.98-2.28-2.38-2.73-3.99-.18-.64-.28-1.31-.28-2s.1-1.36.28-2c.45-1.62 1.42-3.01 2.73-3.99L21 8l-1.51 2h-1.64c-.22.63-.35 1.3-.35 2s.13 1.37.35 2"}),"ContactPhone"),z_e=ot(D.jsx("path",{d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2M9 12c.83 0 1.5.67 1.5 1.5S9.83 15 9 15s-1.5-.67-1.5-1.5S8.17 12 9 12m3 6H6v-.75c0-1 2-1.5 3-1.5s3 .5 3 1.5zm1-9h-2V4h2zm5 7.5h-4V15h4zm0-3h-4V12h4z"}),"Badge"),W_e=ot(D.jsx("path",{d:"M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9-3h2v5h-2zm0 12H9v2H7v-2H5v-2h2v-2h2v2h2zm2-1.5V13h6v1.5zm0 3V16h4v1.5z"}),"MedicalInformation"),hO=ot(D.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person"),U_e=ot(D.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),q_e=ot(D.jsx("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"}),"ContactMail"),H_e=ot(D.jsx("path",{d:"M10.5 13H8v-3h2.5V7.5h3V10H16v3h-2.5v2.5h-3zM12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5z"}),"HealthAndSafety"),Y_e={TEXTBOX:E_e,EMAIL:B_e,DATE_PICKER:C_e,RADIO:P_e,CHECKBOX:__e,DROPDOWN:k_e,GROUP:D_e,FORM_SECTION:mm,THERAPIST_SECTION:mm,SUPERVISION_SECTION:mm,INFORMATION:GR,ADDRESS:$_e,HEADER:R_e,IMAGE:M_e,MULTISELECT:I_e,CONTENT:N_e,HORIZONTAL_LAYOUT:A_e,MULTILINE_TEXT:j_e,SIGNATURE:L_e,RANGE:F_e,PRACTICE_CONTACT_INFO:V_e,THERAPIST_NAME:z_e,THERAPIST_NPI:W_e,CLIENT_LEGAL_NAME_FIRST_LAST:hO,CLIENT_LEGAL_NAME_LAST_FIRST:hO,CLIENT_DATE_OF_BIRTH:U_e,CLIENT_CONTACT_INFO:q_e,CLIENT_INSURANCE_INFO:H_e},mO=({type:e,label:t,showLabel:n,tooltip:r=""})=>{const[{isDragging:i},a]=EL(()=>({type:e,item:{type:e},collect:c=>({isDragging:c.isDragging()})})),s=Y_e[e],l=D.jsxs(fo,{ref:a,elevation:2,sx:{opacity:i?.5:1,cursor:"move",padding:1,borderRadius:1,marginBottom:2,backgroundColor:"#fff",display:"flex",alignItems:"center",gap:1,justifyContent:n?"flex-start":"center"},children:[s&&D.jsx(s,{fontSize:"small"}),n&&D.jsx(Xe,{fontSize:"14px",children:t})]});return r?D.jsx(cr,{title:r,placement:"right",children:l}):l};function wM(e){const t=oC.getState(),n=Object.keys(t.formBuilder.schema.properties||{}),r=e.toLowerCase();let i=1,a=`${r}${i}`;const s=new Set(n);for(;s.has(a);)i++,a=`${r}${i}`;return a}function G_e({setSelectedField:e,onDropComponent:t,shouldHandleDrop:n}){return SE(()=>({accept:[Hf,Yf,os,is,as,ss,Gf,Od,Ed,Cd,Pd,ic,_d,kd,Ga,Ka,Dd,$d,Xa,Hi,...sg],drop:(r,i)=>{if(n&&!n(i))return;let a="";r.type!==Od&&r.type!==Ed&&r.type!==Cd&&r.type!==Pd&&r.type!==ic&&r.type!==kd&&r.type!==$d&&(a=wM(r.type),e(a)),t(r.type,a)},collect:r=>({isOver:!!r.isOver()})}))}function ui(e){const t=ks[e];if(t){if(e===XE){const n={type:"object",properties:{insuranceType:{type:"string"},payerName:{type:"string"}}};return{type:"object",title:t.label,description:"Backend-populated: { primary, secondary }, each with payerName and optional insuranceType.",properties:{primary:n,secondary:n}}}return{type:"string",title:t.label}}switch(e){case Hf:return{type:"string",title:"Text Box",errorMessage:"This is a required field"};case Yf:return{type:"string",title:"Email ID",errorMessage:"This is a required field"};case os:return{type:"string",title:"Multi Line Text",errorMessage:"This is a required field"};case is:return{type:"string",format:"date",title:"Date Picker"};case as:return{type:"string",title:"Radio Button",enum:["Option 1","Option 2","Option 3"]};case ss:return{type:"array",title:"Checkboxes",items:{type:"string",enum:["Option A","Option B","Option C"]},uniqueItems:!0};case Gf:return{type:"string",title:"Dropdown",enum:["Select A","Select B","Select C"]};case ic:return{type:"object",title:"Information",properties:{firstName:{type:"string",title:"First Name"},lastName:{type:"string",title:"Last Name"},dob:{type:"string",title:"DOB",format:"date"},gender:{type:"string",title:"Gender",enum:["Male","Female","Other"]}}};case _d:return{type:"object",title:"Address",properties:{line1:{type:"string",title:"Line 1"},line2:{type:"string",title:"Line 2"},city:{type:"string",title:"City"},state:{type:"string",title:"State"},zipcode:{type:"string",title:"Zipcode"}}};case Ga:return{type:"string",title:"Image",format:"data-url"};case Ka:return{type:"array",title:"Multi Select",items:{type:"string",enum:["Option 1","Option 2","Option 3"]},uniqueItems:!0};case Xa:return{type:"string",title:"Signature"};case Hi:return{type:"string",title:"Range",enum:["1","2","3","4","5"]};default:return{type:"string",title:"Unknown Field"}}}const K_e=e=>{var d,f;const{path:t,onEdit:n,onDelete:r,selectedField:i,uischema:a,schema:s}=e,l=(t==null?void 0:t.split(".").pop())||"",c=i===l;if(!!n){let h=(a==null?void 0:a.label)||((f=(d=s==null?void 0:s.properties)==null?void 0:d[l])==null?void 0:f.title)||l;if(h&&typeof h=="string"&&h.includes("_")){const p=h.split("_");if(p.length>0){const b=p[0];h=b.charAt(0).toUpperCase()+b.slice(1).replace(/([A-Z])/g," $1")}}return h||(h=l||"Field"),D.jsxs(He,{sx:{border:"1px dashed grey",borderRadius:2,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[D.jsxs(Xe,{sx:{flex:1,fontSize:14},children:[" ",h]}),D.jsxs(He,{sx:{display:"flex",alignItems:"center",gap:1},children:[D.jsx(Pt,{size:"small",onClick:()=>{n&&l&&n(l)},children:D.jsx(Lo,{fontSize:"small",sx:{color:c?"#1976d2":"inherit"}})}),D.jsx(Pt,{size:"small",onClick:()=>{r&&l&&r(l)},children:D.jsx(Rr,{fontSize:"small",sx:{color:"black","&:hover":{color:"red"}}})})]})]})}else return D.jsx(qR,{...e})},Xu=gn(K_e),X_e=e=>{var d;const{uischema:t,path:n,renderers:r,cells:i,onEditGroup:a,selectedGroupKey:s}=e,l=t._key,c=t.label,u=s===l;return D.jsxs(He,{sx:{border:u?"2px solid #1976d2":"1px solid #ccc",borderRadius:2,mb:2,p:2,bgcolor:u?"#e3f2fd":"#fff",position:"relative",maxWidth:"195px",pl:1,pr:1},children:[D.jsxs(He,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2,children:[D.jsx(Xe,{fontSize:"14px",fontWeight:600,children:c}),D.jsxs(He,{sx:{display:"flex",alignItems:"center",gap:1},children:[D.jsx(Pt,{size:"small",onClick:f=>{f.stopPropagation(),a&&l&&a(l,c)},title:"Edit group name",children:D.jsx(Lo,{fontSize:"small",sx:{color:u?"#1976d2":"inherit"}})}),D.jsx(Pt,{size:"small",onClick:f=>{f.stopPropagation(),e.onDeleteGroup&&l&&e.onDeleteGroup(l)},title:"Delete group",children:D.jsx(Rr,{fontSize:"small",sx:{color:"black","&:hover":{color:"red"}}})})]})]}),D.jsx(He,{sx:{maxWidth:"100%",overflow:"hidden",width:"100%"},children:(d=t.elements)==null?void 0:d.map((f,h)=>D.jsx(Kn,{uischema:f,schema:e.schema,path:n,renderers:r,cells:i},h))})]})},Z_e=Ao(X_e),Q_e=e=>{var p;const{uischema:t,path:n,renderers:r,cells:i,onEditGroup:a,selectedGroupKey:s,sectionType:l}=e,c=t._key,d=(b=>{switch(b){case"THERAPIST_SECTION":return{label:"Therapist Section",infoText:"This section can only be completed by therapists."};case"SUPERVISION_SECTION":return{label:"Supervision Section",infoText:"This section can only be completed by supervisors. If there is no supervisor, any field in this section will be left blank."};case"FORM_SECTION":default:return{label:"Form Section",infoText:"This is form section"}}})(l||"FORM_SECTION"),f=t.label||d.label,h=s===c;return D.jsxs(He,{sx:{border:h?"2px solid #1976d2":"1px solid #ccc",borderRadius:2,mb:2,p:2,bgcolor:h?"#e3f2fd":"#fff",position:"relative",maxWidth:"195px",pl:1,pr:1},children:[D.jsxs(He,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2,children:[D.jsx(Xe,{fontSize:"14px",fontWeight:600,children:f}),D.jsxs(He,{sx:{display:"flex",alignItems:"center",gap:1},children:[D.jsx(Pt,{size:"small",onClick:b=>{b.stopPropagation(),a&&c&&a(c,f)},title:"Edit section name",children:D.jsx(Lo,{fontSize:"small",sx:{color:h?"#1976d2":"inherit"}})}),D.jsx(Pt,{size:"small",onClick:b=>{b.stopPropagation(),e.onDeleteGroup&&c&&e.onDeleteGroup(c)},title:"Delete section",children:D.jsx(Rr,{fontSize:"small",sx:{color:"black","&:hover":{color:"red"}}})})]})]}),D.jsx(He,{sx:{maxWidth:"100%",overflow:"hidden",width:"100%"},children:(p=t.elements)==null?void 0:p.map((b,m)=>D.jsx(Kn,{uischema:b,schema:e.schema,path:n,renderers:r,cells:i},m))})]})},ym=Ao(Q_e),J_e=e=>{var f;const{data:t,visible:n,path:r,uischema:i}=e;if(!n)return null;const a=r||((f=i==null?void 0:i.scope)==null?void 0:f.replace("#/properties/","")),s=e.onEdit,l=e.onDelete,u=e.selectedField===a;return s?D.jsxs(He,{sx:{border:"1px dashed grey",borderRadius:2,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[D.jsx(Xe,{sx:{flex:1,fontSize:14},children:"Content"}),D.jsxs(He,{sx:{display:"flex",alignItems:"center",gap:1},children:[D.jsx(Pt,{size:"small",onClick:()=>{s&&a&&s(a)},children:D.jsx(Lo,{fontSize:"small",sx:{color:u?"#1976d2":"inherit"}})}),D.jsx(Pt,{size:"small",onClick:()=>{l&&a&&l(a)},children:D.jsx(Rr,{fontSize:"small",sx:{color:"black","&:hover":{color:"red"}}})})]})]}):D.jsx(He,{sx:{display:"flex",alignItems:"center",borderRadius:1,padding:"4px 8px"},children:D.jsx("div",{dangerouslySetInnerHTML:{__html:t||""},style:{flex:1}})})},eke=gn(J_e),tke=e=>{const{uischema:t,schema:n,path:r,enabled:i,visible:a,renderers:s,cells:l,onEdit:c,onDelete:u,selectedField:d}=e,f=RE();if(!a)return null;const h=t.elements||[],p=t._key,b=d===p,m=r&&r.split(".").length>1,[{isOver:y},g]=SE(()=>({accept:[Hf,Yf,os,is,as,ss,Gf,Ga,Ka,Dd,Xa,Hi,...sg],canDrop:()=>!0,drop:(v,x)=>{if(!x.isOver({shallow:!0})||!p)return;if(ZE(v.type)){const{fieldKey:C,uiControl:P}=QE(v.type);return f(hw({layoutKey:p,fieldKey:C,fieldSchema:ui(v.type),uiControl:P})),{handled:!0}}const w=wM(v.type),S=ui(v.type),O={type:"Control",scope:`#/properties/${w}`,options:v.type===as?{format:"radio"}:v.type===ss?{format:"checkbox"}:v.type===is?{format:"MM/DD/YYYY"}:v.type===os?{multi:!0,row:3}:v.type===Hi?{format:"range"}:void 0};return f(hw({layoutKey:p,fieldKey:w,fieldSchema:S,uiControl:O})),{handled:!0}},collect:v=>({isOver:!!v.isOver()})}));return m&&p?D.jsx(He,{ref:g,"data-horizontal-layout":"true",sx:{display:"flex",gap:2,width:"100%",minHeight:h.length===0?100:"auto",border:y?"2px dashed #1976d2":"2px dashed #ccc",borderRadius:2,p:h.length===0?2:1,bgcolor:y?"#e3f2fd":"transparent",alignItems:"center",justifyContent:h.length===0?"center":"flex-start",overflowX:"auto",overflowY:"hidden","&::-webkit-scrollbar":{height:"8px"},"&::-webkit-scrollbar-track":{background:"#f1f1f1",borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:"#c1c1c1",borderRadius:"4px","&:hover":{background:"#a8a8a8"}},"& > *":{flexShrink:0,minWidth:"160px",maxWidth:"160px"}},children:h.length===0?D.jsx(He,{sx:{color:"#666",textAlign:"center"},children:"Drag components here to arrange horizontally"}):h.map((v,x)=>D.jsx(He,{sx:{flexShrink:0,minWidth:"160px",maxWidth:"160px"},children:D.jsx(Kn,{uischema:v,schema:n,path:r,enabled:i,renderers:s,cells:l})},x))}):D.jsxs(He,{sx:{border:b?"2px solid #1976d2":"1px solid #ccc",borderRadius:2,mb:2,p:2,bgcolor:b?"#e3f2fd":"#fff",position:"relative",maxWidth:"195px",overflow:"hidden"},children:[D.jsxs(He,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2,children:[D.jsxs(Xe,{fontWeight:600,fontSize:"14px",mb:2,children:[" ","Horizontal Layout"," "]}),D.jsxs(He,{sx:{display:"flex",alignItems:"center",gap:1},children:[D.jsx(Lo,{style:{cursor:"pointer",color:b?"#1976d2":void 0},onClick:()=>{c&&p&&c(p)}}),D.jsx(Rr,{sx:{cursor:"pointer",color:"black","&:hover":{color:"red"}},onClick:()=>{u&&p&&u(p)}})]})]}),D.jsx(He,{ref:g,"data-horizontal-layout":"true",sx:{maxWidth:"100%",display:"flex",gap:2,minHeight:h.length===0?100:"auto",border:y?"2px dashed #1976d2":"2px dashed #ccc",borderRadius:2,p:h.length===0?2:1,bgcolor:y?"#e3f2fd":"transparent",alignItems:"center",justifyContent:h.length===0?"center":"flex-start",overflowX:"auto",overflowY:"hidden","&::-webkit-scrollbar":{height:"8px"},"&::-webkit-scrollbar-track":{background:"#f1f1f1",borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:"#c1c1c1",borderRadius:"4px","&:hover":{background:"#a8a8a8"}},"& > *":{flexShrink:0,minWidth:"160px",maxWidth:"160px"}},children:h.length===0?D.jsx(He,{sx:{color:"#666",textAlign:"center"},children:"Drag components here to arrange horizontally"}):h.map((v,x)=>D.jsx(He,{sx:{flexShrink:0,minWidth:"160px",maxWidth:"160px"},children:D.jsx(Kn,{uischema:v,schema:n,path:r,enabled:i,renderers:s,cells:l})},x))})]})},nke=Ao(tke),rke=e=>{const{data:t,visible:n,uischema:r,onEdit:i,onDelete:a,selectedField:s}=e;if(!n)return null;const l=(r==null?void 0:r.text)??"Heading",c=r._key||l,u=s===c;return i?D.jsxs(He,{sx:{border:"1px dashed grey",borderRadius:2,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[D.jsx(Xe,{sx:{flex:1,fontSize:14},children:"Heading"}),D.jsxs(He,{sx:{display:"flex",alignItems:"center",gap:1},children:[D.jsx(Pt,{size:"small",onClick:()=>{i&&c&&i(c)},children:D.jsx(Lo,{fontSize:"small",sx:{color:u?"#1976d2":"inherit"}})}),D.jsx(Pt,{size:"small",onClick:()=>{a&&c&&a(c)},children:D.jsx(Rr,{fontSize:"small",sx:{color:"black","&:hover":{color:"red"}}})})]})]}):D.jsx(He,{sx:{display:"flex",alignItems:"center",borderRadius:1,padding:"4px 8px"},children:D.jsx("div",{dangerouslySetInnerHTML:{__html:t||""},style:{flex:1}})})},oke=n$(rke);function ike(e){const{selectedField:t,selectedGroupKey:n,setSelectedField:r,setSelectedGroupKey:i,setFieldLabel:a,setFieldTouched:s,onDeleteField:l,schema:c}=e,u=st(1e3,m=>{var w;if(!Hn(m))return!1;const y=m.scope;if(!y)return!1;const g=y.replace("#/properties/",""),v=(w=c==null?void 0:c.properties)==null?void 0:w[g];return!!(v!=null&&v.title)&&v.title==="Content"}),d=HR,f=st(1e3,(m,y)=>{var O;if(!Hn(m))return!1;const g=m.scope;if(!g)return!1;const v=g.replace("#/properties/",""),x=(O=y==null?void 0:y.properties)==null?void 0:O[v],w=(x==null?void 0:x.title)==="Signature",S=v&&v.startsWith("signature_");return w||S}),h=st(1e3,(m,y)=>{var O;if(!Hn(m))return!1;const g=m.scope;if(!g)return!1;const v=g.replace("#/properties/",""),x=(O=y==null?void 0:y.properties)==null?void 0:O[v],w=(x==null?void 0:x.title)==="Email ID",S=v&&v.startsWith("email");return w||S}),p=st(1e3,(m,y)=>{var C,P;if(!Hn(m))return!1;const g=m.scope;if(!g)return!1;const v=g.replace("#/properties/",""),x=(C=y==null?void 0:y.properties)==null?void 0:C[v],w=((P=m.options)==null?void 0:P.format)==="range",S=(x==null?void 0:x.title)==="Range",O=v&&v.startsWith("range_");return w||S||O});return[{tester:st(5e3,m=>{var y;return Hn(m)?((y=m.options)==null?void 0:y.autoField)===!0:!1}),renderer:m=>D.jsx(bM,{...m,onEdit:y=>{var v;r(y),i(null);const g=(v=c.properties)==null?void 0:v[y];a((g==null?void 0:g.title)||""),s(!1)},onDelete:l,selectedField:t})},{tester:h,renderer:m=>D.jsx(gM,{...m,onEdit:y=>{var v;r(y),i(null);const g=(v=c.properties)==null?void 0:v[y];a((g==null?void 0:g.title)||""),s(!1)},onDelete:l,selectedField:t})},{tester:p,renderer:m=>D.jsx(yM,{...m,onEdit:y=>{var v;r(y),i(null);const g=(v=c.properties)==null?void 0:v[y];a((g==null?void 0:g.title)||""),s(!1)},onDelete:l,selectedField:t})},{tester:f,renderer:m=>D.jsx(mM,{...m,onEdit:y=>{var v;r(y),i(null);const g=(v=c.properties)==null?void 0:v[y];a((g==null?void 0:g.title)||""),s(!1)},onDelete:l,selectedField:t})},{tester:m=>m.type==="HorizontalLayout"?1e3:-1,renderer:m=>D.jsx(nke,{...m,onEdit:y=>{var v;r(y),i(null);const g=(v=c.properties)==null?void 0:v[y];a((g==null?void 0:g.title)||"Horizontal Layout"),s(!1)},onDelete:y=>{l(y)},selectedField:t})},{tester:u,renderer:m=>D.jsx(eke,{...m,onEdit:y=>{var v;r(y),i(null);const g=(v=c.properties)==null?void 0:v[y];a((g==null?void 0:g.title)||""),s(!1)},onDelete:l,selectedField:t})},{tester:m=>{var x;if(m.type!=="Control")return-1;const y=m.scope;if(!y)return-1;const g=y.replace("#/properties/",""),v=(x=c==null?void 0:c.properties)==null?void 0:x[g];return(v==null?void 0:v.format)==="date"?1e3:-1},renderer:m=>D.jsx(Xu,{...m,onEdit:y=>{var v;r(y),i(null);const g=(v=c.properties)==null?void 0:v[y];a((g==null?void 0:g.title)||""),s(!1)},onDelete:l,selectedField:t})},{tester:m=>{var x,w;if(m.type!=="Control")return-1;const y=m.scope;if(!y)return-1;const g=y.replace("#/properties/",""),v=(x=c==null?void 0:c.properties)==null?void 0:x[g];return v!=null&&v.enum&&((w=m.options)==null?void 0:w.format)==="radio"?25:-1},renderer:m=>D.jsx(Xu,{...m,onEdit:y=>{var v;r(y),i(null);const g=(v=c.properties)==null?void 0:v[y];a((g==null?void 0:g.title)||""),s(!1)},onDelete:l,selectedField:t})},{tester:m=>{var x,w;if(m.type!=="Control")return-1;const y=m.scope;if(!y)return-1;const g=y.replace("#/properties/",""),v=(x=c==null?void 0:c.properties)==null?void 0:x[g];return v!=null&&v.enum&&((w=m.options)==null?void 0:w.format)!=="radio"?23:-1},renderer:m=>D.jsx(Xu,{...m,onEdit:y=>{var v;r(y),i(null);const g=(v=c.properties)==null?void 0:v[y];a((g==null?void 0:g.title)||""),s(!1)},onDelete:l,selectedField:t})},{tester:m=>{var x;if(m.type!=="Control")return-1;const y=m.scope;if(!y)return-1;const g=y.replace("#/properties/",""),v=(x=c==null?void 0:c.properties)==null?void 0:x[g];return v!=null&&v.enum?-1:10},renderer:m=>D.jsx(Xu,{...m,onEdit:y=>{var v;r(y),i(null);const g=(v=c.properties)==null?void 0:v[y];a((g==null?void 0:g.title)||""),s(!1)},onDelete:l,selectedField:t})},{tester:m=>m.type==="Group"?10:-1,renderer:m=>D.jsx(Z_e,{...m,onEditGroup:(y,g)=>{i(y),r(null),a(g),s(!1)},onDeleteGroup:y=>{l(y)},selectedGroupKey:n})},{tester:m=>{var y;return m.type==="Group"&&((y=m._key)!=null&&y.includes("form_section"))?15:-1},renderer:m=>D.jsx(ym,{...m,sectionType:"FORM_SECTION",onEditGroup:(y,g)=>{i(y),r(null),a(g),s(!1)},onDeleteGroup:y=>{l(y)},selectedGroupKey:n})},{tester:m=>{var y;return m.type==="Group"&&((y=m._key)!=null&&y.includes("therapist_section"))?15:-1},renderer:m=>D.jsx(ym,{...m,sectionType:"THERAPIST_SECTION",onEditGroup:(y,g)=>{i(y),r(null),a(g),s(!1)},onDeleteGroup:y=>{l(y)},selectedGroupKey:n})},{tester:m=>{var y;return m.type==="Group"&&((y=m._key)!=null&&y.includes("supervision_section"))?15:-1},renderer:m=>D.jsx(ym,{...m,sectionType:"SUPERVISION_SECTION",onEditGroup:(y,g)=>{i(y),r(null),a(g),s(!1)},onDeleteGroup:y=>{l(y)},selectedGroupKey:n})},{tester:m=>m.type==="Label"?8:-1,renderer:m=>D.jsx(oke,{...m,onEdit:y=>{var v;r(y),i(null);const g=(v=c.properties)==null?void 0:v[y];a((g==null?void 0:g.title)||"Heading"),s(!1)},onDelete:l,selectedField:t})},...d]}var xM={exports:{}};/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */(function(e,t){(function(r,i){e.exports=i()})(typeof self<"u"?self:Dn,function(){return function(n){var r={};function i(a){if(r[a])return r[a].exports;var s=r[a]={i:a,l:!1,exports:{}};return n[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=r,i.d=function(a,s,l){i.o(a,s)||Object.defineProperty(a,s,{configurable:!1,enumerable:!0,get:l})},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=109)}([function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(17),s=i(18),l=i(19),c=i(45),u=i(46),d=i(47),f=i(48),h=i(49),p=i(12),b=i(32),m=i(33),y=i(31),g=i(1),v={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:a.default,Format:s.default,Leaf:l.default,Embed:f.default,Scroll:c.default,Block:d.default,Inline:u.default,Text:h.default,Attributor:{Attribute:p.default,Class:b.default,Style:m.default,Store:y.default}};r.default=v},function(n,r,i){var a=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var x in v)v.hasOwnProperty(x)&&(g[x]=v[x])};return function(g,v){y(g,v);function x(){this.constructor=g}g.prototype=v===null?Object.create(v):(x.prototype=v.prototype,new x)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=function(y){a(g,y);function g(v){var x=this;return v="[Parchment] "+v,x=y.call(this,v)||this,x.message=v,x.name=x.constructor.name,x}return g}(Error);r.ParchmentError=s;var l={},c={},u={},d={};r.DATA_KEY="__blot";var f;(function(y){y[y.TYPE=3]="TYPE",y[y.LEVEL=12]="LEVEL",y[y.ATTRIBUTE=13]="ATTRIBUTE",y[y.BLOT=14]="BLOT",y[y.INLINE=7]="INLINE",y[y.BLOCK=11]="BLOCK",y[y.BLOCK_BLOT=10]="BLOCK_BLOT",y[y.INLINE_BLOT=6]="INLINE_BLOT",y[y.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",y[y.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",y[y.ANY=15]="ANY"})(f=r.Scope||(r.Scope={}));function h(y,g){var v=b(y);if(v==null)throw new s("Unable to create "+y+" blot");var x=v,w=y instanceof Node||y.nodeType===Node.TEXT_NODE?y:x.create(g);return new x(w,g)}r.create=h;function p(y,g){return g===void 0&&(g=!1),y==null?null:y[r.DATA_KEY]!=null?y[r.DATA_KEY].blot:g?p(y.parentNode,g):null}r.find=p;function b(y,g){g===void 0&&(g=f.ANY);var v;if(typeof y=="string")v=d[y]||l[y];else if(y instanceof Text||y.nodeType===Node.TEXT_NODE)v=d.text;else if(typeof y=="number")y&f.LEVEL&f.BLOCK?v=d.block:y&f.LEVEL&f.INLINE&&(v=d.inline);else if(y instanceof HTMLElement){var x=(y.getAttribute("class")||"").split(/\s+/);for(var w in x)if(v=c[x[w]],v)break;v=v||u[y.tagName]}return v==null?null:g&f.LEVEL&v.scope&&g&f.TYPE&v.scope?v:null}r.query=b;function m(){for(var y=[],g=0;g<arguments.length;g++)y[g]=arguments[g];if(y.length>1)return y.map(function(w){return m(w)});var v=y[0];if(typeof v.blotName!="string"&&typeof v.attrName!="string")throw new s("Invalid definition");if(v.blotName==="abstract")throw new s("Cannot register abstract class");if(d[v.blotName||v.attrName]=v,typeof v.keyName=="string")l[v.keyName]=v;else if(v.className!=null&&(c[v.className]=v),v.tagName!=null){Array.isArray(v.tagName)?v.tagName=v.tagName.map(function(w){return w.toUpperCase()}):v.tagName=v.tagName.toUpperCase();var x=Array.isArray(v.tagName)?v.tagName:[v.tagName];x.forEach(function(w){(u[w]==null||v.className==null)&&(u[w]=v)})}return v}r.register=m},function(n,r,i){var a=i(51),s=i(11),l=i(3),c=i(20),u="\0",d=function(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]};d.prototype.insert=function(f,h){var p={};return f.length===0?this:(p.insert=f,h!=null&&typeof h=="object"&&Object.keys(h).length>0&&(p.attributes=h),this.push(p))},d.prototype.delete=function(f){return f<=0?this:this.push({delete:f})},d.prototype.retain=function(f,h){if(f<=0)return this;var p={retain:f};return h!=null&&typeof h=="object"&&Object.keys(h).length>0&&(p.attributes=h),this.push(p)},d.prototype.push=function(f){var h=this.ops.length,p=this.ops[h-1];if(f=l(!0,{},f),typeof p=="object"){if(typeof f.delete=="number"&&typeof p.delete=="number")return this.ops[h-1]={delete:p.delete+f.delete},this;if(typeof p.delete=="number"&&f.insert!=null&&(h-=1,p=this.ops[h-1],typeof p!="object"))return this.ops.unshift(f),this;if(s(f.attributes,p.attributes)){if(typeof f.insert=="string"&&typeof p.insert=="string")return this.ops[h-1]={insert:p.insert+f.insert},typeof f.attributes=="object"&&(this.ops[h-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof p.retain=="number")return this.ops[h-1]={retain:p.retain+f.retain},typeof f.attributes=="object"&&(this.ops[h-1].attributes=f.attributes),this}}return h===this.ops.length?this.ops.push(f):this.ops.splice(h,0,f),this},d.prototype.chop=function(){var f=this.ops[this.ops.length-1];return f&&f.retain&&!f.attributes&&this.ops.pop(),this},d.prototype.filter=function(f){return this.ops.filter(f)},d.prototype.forEach=function(f){this.ops.forEach(f)},d.prototype.map=function(f){return this.ops.map(f)},d.prototype.partition=function(f){var h=[],p=[];return this.forEach(function(b){var m=f(b)?h:p;m.push(b)}),[h,p]},d.prototype.reduce=function(f,h){return this.ops.reduce(f,h)},d.prototype.changeLength=function(){return this.reduce(function(f,h){return h.insert?f+c.length(h):h.delete?f-h.delete:f},0)},d.prototype.length=function(){return this.reduce(function(f,h){return f+c.length(h)},0)},d.prototype.slice=function(f,h){f=f||0,typeof h!="number"&&(h=1/0);for(var p=[],b=c.iterator(this.ops),m=0;m<h&&b.hasNext();){var y;m<f?y=b.next(f-m):(y=b.next(h-m),p.push(y)),m+=c.length(y)}return new d(p)},d.prototype.compose=function(f){var h=c.iterator(this.ops),p=c.iterator(f.ops),b=[],m=p.peek();if(m!=null&&typeof m.retain=="number"&&m.attributes==null){for(var y=m.retain;h.peekType()==="insert"&&h.peekLength()<=y;)y-=h.peekLength(),b.push(h.next());m.retain-y>0&&p.next(m.retain-y)}for(var g=new d(b);h.hasNext()||p.hasNext();)if(p.peekType()==="insert")g.push(p.next());else if(h.peekType()==="delete")g.push(h.next());else{var v=Math.min(h.peekLength(),p.peekLength()),x=h.next(v),w=p.next(v);if(typeof w.retain=="number"){var S={};typeof x.retain=="number"?S.retain=v:S.insert=x.insert;var O=c.attributes.compose(x.attributes,w.attributes,typeof x.retain=="number");if(O&&(S.attributes=O),g.push(S),!p.hasNext()&&s(g.ops[g.ops.length-1],S)){var C=new d(h.rest());return g.concat(C).chop()}}else typeof w.delete=="number"&&typeof x.retain=="number"&&g.push(w)}return g.chop()},d.prototype.concat=function(f){var h=new d(this.ops.slice());return f.ops.length>0&&(h.push(f.ops[0]),h.ops=h.ops.concat(f.ops.slice(1))),h},d.prototype.diff=function(f,h){if(this.ops===f.ops)return new d;var p=[this,f].map(function(v){return v.map(function(x){if(x.insert!=null)return typeof x.insert=="string"?x.insert:u;var w=v===f?"on":"with";throw new Error("diff() called "+w+" non-document")}).join("")}),b=new d,m=a(p[0],p[1],h),y=c.iterator(this.ops),g=c.iterator(f.ops);return m.forEach(function(v){for(var x=v[1].length;x>0;){var w=0;switch(v[0]){case a.INSERT:w=Math.min(g.peekLength(),x),b.push(g.next(w));break;case a.DELETE:w=Math.min(x,y.peekLength()),y.next(w),b.delete(w);break;case a.EQUAL:w=Math.min(y.peekLength(),g.peekLength(),x);var S=y.next(w),O=g.next(w);s(S.insert,O.insert)?b.retain(w,c.attributes.diff(S.attributes,O.attributes)):b.push(O).delete(w);break}x-=w}}),b.chop()},d.prototype.eachLine=function(f,h){h=h||`
`;for(var p=c.iterator(this.ops),b=new d,m=0;p.hasNext();){if(p.peekType()!=="insert")return;var y=p.peek(),g=c.length(y)-p.peekLength(),v=typeof y.insert=="string"?y.insert.indexOf(h,g)-g:-1;if(v<0)b.push(p.next());else if(v>0)b.push(p.next(v));else{if(f(b,p.next(1).attributes||{},m)===!1)return;m+=1,b=new d}}b.length()>0&&f(b,{},m)},d.prototype.transform=function(f,h){if(h=!!h,typeof f=="number")return this.transformPosition(f,h);for(var p=c.iterator(this.ops),b=c.iterator(f.ops),m=new d;p.hasNext()||b.hasNext();)if(p.peekType()==="insert"&&(h||b.peekType()!=="insert"))m.retain(c.length(p.next()));else if(b.peekType()==="insert")m.push(b.next());else{var y=Math.min(p.peekLength(),b.peekLength()),g=p.next(y),v=b.next(y);if(g.delete)continue;v.delete?m.push(v):m.retain(y,c.attributes.transform(g.attributes,v.attributes,h))}return m.chop()},d.prototype.transformPosition=function(f,h){h=!!h;for(var p=c.iterator(this.ops),b=0;p.hasNext()&&b<=f;){var m=p.peekLength(),y=p.peekType();if(p.next(),y==="delete"){f-=Math.min(m,f-b);continue}else y==="insert"&&(b<f||!h)&&(f+=m);b+=m}return f},n.exports=d},function(n,r){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=function(p){return typeof Array.isArray=="function"?Array.isArray(p):a.call(p)==="[object Array]"},u=function(p){if(!p||a.call(p)!=="[object Object]")return!1;var b=i.call(p,"constructor"),m=p.constructor&&p.constructor.prototype&&i.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!b&&!m)return!1;var y;for(y in p);return typeof y>"u"||i.call(p,y)},d=function(p,b){s&&b.name==="__proto__"?s(p,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):p[b.name]=b.newValue},f=function(p,b){if(b==="__proto__")if(i.call(p,b)){if(l)return l(p,b).value}else return;return p[b]};n.exports=function h(){var p,b,m,y,g,v,x=arguments[0],w=1,S=arguments.length,O=!1;for(typeof x=="boolean"&&(O=x,x=arguments[1]||{},w=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});w<S;++w)if(p=arguments[w],p!=null)for(b in p)m=f(x,b),y=f(p,b),x!==y&&(O&&y&&(u(y)||(g=c(y)))?(g?(g=!1,v=m&&c(m)?m:[]):v=m&&u(m)?m:{},d(x,{name:b,newValue:h(O,v,y)})):typeof y<"u"&&d(x,{name:b,newValue:y}));return x}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BlockEmbed=r.bubbleFormats=void 0;var a=function(){function _(T,$){for(var M=0;M<$.length;M++){var j=$[M];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(T,j.key,j)}}return function(T,$,M){return $&&_(T.prototype,$),M&&_(T,M),T}}(),s=function _(T,$,M){T===null&&(T=Function.prototype);var j=Object.getOwnPropertyDescriptor(T,$);if(j===void 0){var W=Object.getPrototypeOf(T);return W===null?void 0:_(W,$,M)}else{if("value"in j)return j.value;var U=j.get;return U===void 0?void 0:U.call(M)}},l=i(3),c=x(l),u=i(2),d=x(u),f=i(0),h=x(f),p=i(16),b=x(p),m=i(6),y=x(m),g=i(7),v=x(g);function x(_){return _&&_.__esModule?_:{default:_}}function w(_,T){if(!(_ instanceof T))throw new TypeError("Cannot call a class as a function")}function S(_,T){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:_}function O(_,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);_.prototype=Object.create(T&&T.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(_,T):_.__proto__=T)}var C=1,P=function(_){O(T,_);function T(){return w(this,T),S(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return a(T,[{key:"attach",value:function(){s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"attach",this).call(this),this.attributes=new h.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new d.default().insert(this.value(),(0,c.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(M,j){var W=h.default.query(M,h.default.Scope.BLOCK_ATTRIBUTE);W!=null&&this.attributes.attribute(W,j)}},{key:"formatAt",value:function(M,j,W,U){this.format(W,U)}},{key:"insertAt",value:function(M,j,W){if(typeof j=="string"&&j.endsWith(`
`)){var U=h.default.create(k.blotName);this.parent.insertBefore(U,M===0?this:this.next),U.insertAt(0,j.slice(0,-1))}else s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,M,j,W)}}]),T}(h.default.Embed);P.scope=h.default.Scope.BLOCK_BLOT;var k=function(_){O(T,_);function T($){w(this,T);var M=S(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,$));return M.cache={},M}return a(T,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(h.default.Leaf).reduce(function(M,j){return j.length()===0?M:M.insert(j.value(),E(j))},new d.default).insert(`
`,E(this))),this.cache.delta}},{key:"deleteAt",value:function(M,j){s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"deleteAt",this).call(this,M,j),this.cache={}}},{key:"formatAt",value:function(M,j,W,U){j<=0||(h.default.query(W,h.default.Scope.BLOCK)?M+j===this.length()&&this.format(W,U):s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"formatAt",this).call(this,M,Math.min(j,this.length()-M-1),W,U),this.cache={})}},{key:"insertAt",value:function(M,j,W){if(W!=null)return s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,M,j,W);if(j.length!==0){var U=j.split(`
`),K=U.shift();K.length>0&&(M<this.length()-1||this.children.tail==null?s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertAt",this).call(this,Math.min(M,this.length()-1),K):this.children.tail.insertAt(this.children.tail.length(),K),this.cache={});var H=this;U.reduce(function(F,R){return H=H.split(F,!0),H.insertAt(0,R),R.length},M+K.length)}}},{key:"insertBefore",value:function(M,j){var W=this.children.head;s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"insertBefore",this).call(this,M,j),W instanceof b.default&&W.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"length",this).call(this)+C),this.cache.length}},{key:"moveChildren",value:function(M,j){s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"moveChildren",this).call(this,M,j),this.cache={}}},{key:"optimize",value:function(M){s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,M),this.cache={}}},{key:"path",value:function(M){return s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"path",this).call(this,M,!0)}},{key:"removeChild",value:function(M){s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"removeChild",this).call(this,M),this.cache={}}},{key:"split",value:function(M){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(j&&(M===0||M>=this.length()-C)){var W=this.clone();return M===0?(this.parent.insertBefore(W,this),this):(this.parent.insertBefore(W,this.next),W)}else{var U=s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"split",this).call(this,M,j);return this.cache={},U}}}]),T}(h.default.Block);k.blotName="block",k.tagName="P",k.defaultChild="break",k.allowedChildren=[y.default,h.default.Embed,v.default];function E(_){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return _==null||(typeof _.formats=="function"&&(T=(0,c.default)(T,_.formats())),_.parent==null||_.parent.blotName=="scroll"||_.parent.statics.scope!==_.statics.scope)?T:E(_.parent,T)}r.bubbleFormats=E,r.BlockEmbed=P,r.default=k},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},s=function(){function H(F,R){var V=[],z=!0,L=!1,A=void 0;try{for(var N=F[Symbol.iterator](),q;!(z=(q=N.next()).done)&&(V.push(q.value),!(R&&V.length===R));z=!0);}catch(Y){L=!0,A=Y}finally{try{!z&&N.return&&N.return()}finally{if(L)throw A}}return V}return function(F,R){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return H(F,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function H(F,R){for(var V=0;V<R.length;V++){var z=R[V];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(F,z.key,z)}}return function(F,R,V){return R&&H(F.prototype,R),V&&H(F,V),F}}();i(50);var c=i(2),u=E(c),d=i(14),f=E(d),h=i(8),p=E(h),b=i(9),m=E(b),y=i(0),g=E(y),v=i(15),x=E(v),w=i(3),S=E(w),O=i(10),C=E(O),P=i(34),k=E(P);function E(H){return H&&H.__esModule?H:{default:H}}function _(H,F,R){return F in H?Object.defineProperty(H,F,{value:R,enumerable:!0,configurable:!0,writable:!0}):H[F]=R,H}function T(H,F){if(!(H instanceof F))throw new TypeError("Cannot call a class as a function")}var $=(0,C.default)("quill"),M=function(){l(H,null,[{key:"debug",value:function(R){R===!0&&(R="log"),C.default.level(R)}},{key:"find",value:function(R){return R.__quill||g.default.find(R)}},{key:"import",value:function(R){return this.imports[R]==null&&$.error("Cannot import "+R+". Are you sure it was registered?"),this.imports[R]}},{key:"register",value:function(R,V){var z=this,L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof R!="string"){var A=R.attrName||R.blotName;typeof A=="string"?this.register("formats/"+A,R,V):Object.keys(R).forEach(function(N){z.register(N,R[N],V)})}else this.imports[R]!=null&&!L&&$.warn("Overwriting "+R+" with",V),this.imports[R]=V,(R.startsWith("blots/")||R.startsWith("formats/"))&&V.blotName!=="abstract"?g.default.register(V):R.startsWith("modules")&&typeof V.register=="function"&&V.register()}}]);function H(F){var R=this,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(T(this,H),this.options=j(F,V),this.container=this.options.container,this.container==null)return $.error("Invalid Quill container",F);this.options.debug&&H.debug(this.options.debug);var z=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new p.default,this.scroll=g.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new x.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(p.default.events.EDITOR_CHANGE,function(A){A===p.default.events.TEXT_CHANGE&&R.root.classList.toggle("ql-blank",R.editor.isBlank())}),this.emitter.on(p.default.events.SCROLL_UPDATE,function(A,N){var q=R.selection.lastRange,Y=q&&q.length===0?q.index:void 0;W.call(R,function(){return R.editor.update(null,N,Y)},A)});var L=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+z+"<p><br></p></div>");this.setContents(L),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return l(H,[{key:"addContainer",value:function(R){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof R=="string"){var z=R;R=document.createElement("div"),R.classList.add(z)}return this.container.insertBefore(R,V),R}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(R,V,z){var L=this,A=U(R,V,z),N=s(A,4);return R=N[0],V=N[1],z=N[3],W.call(this,function(){return L.editor.deleteText(R,V)},z,R,-1*V)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(R),this.container.classList.toggle("ql-disabled",!R)}},{key:"focus",value:function(){var R=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=R,this.scrollIntoView()}},{key:"format",value:function(R,V){var z=this,L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;return W.call(this,function(){var A=z.getSelection(!0),N=new u.default;if(A==null)return N;if(g.default.query(R,g.default.Scope.BLOCK))N=z.editor.formatLine(A.index,A.length,_({},R,V));else{if(A.length===0)return z.selection.format(R,V),N;N=z.editor.formatText(A.index,A.length,_({},R,V))}return z.setSelection(A,p.default.sources.SILENT),N},L)}},{key:"formatLine",value:function(R,V,z,L,A){var N=this,q=void 0,Y=U(R,V,z,L,A),G=s(Y,4);return R=G[0],V=G[1],q=G[2],A=G[3],W.call(this,function(){return N.editor.formatLine(R,V,q)},A,R,0)}},{key:"formatText",value:function(R,V,z,L,A){var N=this,q=void 0,Y=U(R,V,z,L,A),G=s(Y,4);return R=G[0],V=G[1],q=G[2],A=G[3],W.call(this,function(){return N.editor.formatText(R,V,q)},A,R,0)}},{key:"getBounds",value:function(R){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,z=void 0;typeof R=="number"?z=this.selection.getBounds(R,V):z=this.selection.getBounds(R.index,R.length);var L=this.container.getBoundingClientRect();return{bottom:z.bottom-L.top,height:z.height,left:z.left-L.left,right:z.right-L.left,top:z.top-L.top,width:z.width}}},{key:"getContents",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-R,z=U(R,V),L=s(z,2);return R=L[0],V=L[1],this.editor.getContents(R,V)}},{key:"getFormat",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof R=="number"?this.editor.getFormat(R,V):this.editor.getFormat(R.index,R.length)}},{key:"getIndex",value:function(R){return R.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(R){return this.scroll.leaf(R)}},{key:"getLine",value:function(R){return this.scroll.line(R)}},{key:"getLines",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof R!="number"?this.scroll.lines(R.index,R.length):this.scroll.lines(R,V)}},{key:"getModule",value:function(R){return this.theme.modules[R]}},{key:"getSelection",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return R&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-R,z=U(R,V),L=s(z,2);return R=L[0],V=L[1],this.editor.getText(R,V)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(R,V,z){var L=this,A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:H.sources.API;return W.call(this,function(){return L.editor.insertEmbed(R,V,z)},A,R)}},{key:"insertText",value:function(R,V,z,L,A){var N=this,q=void 0,Y=U(R,0,z,L,A),G=s(Y,4);return R=G[0],q=G[2],A=G[3],W.call(this,function(){return N.editor.insertText(R,V,q)},A,R,V.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(R,V,z){this.clipboard.dangerouslyPasteHTML(R,V,z)}},{key:"removeFormat",value:function(R,V,z){var L=this,A=U(R,V,z),N=s(A,4);return R=N[0],V=N[1],z=N[3],W.call(this,function(){return L.editor.removeFormat(R,V)},z,R)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(R){var V=this,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API;return W.call(this,function(){R=new u.default(R);var L=V.getLength(),A=V.editor.deleteText(0,L),N=V.editor.applyDelta(R),q=N.ops[N.ops.length-1];q!=null&&typeof q.insert=="string"&&q.insert[q.insert.length-1]===`
`&&(V.editor.deleteText(V.getLength()-1,1),N.delete(1));var Y=A.compose(N);return Y},z)}},{key:"setSelection",value:function(R,V,z){if(R==null)this.selection.setRange(null,V||H.sources.API);else{var L=U(R,V,z),A=s(L,4);R=A[0],V=A[1],z=A[3],this.selection.setRange(new v.Range(R,V),z),z!==p.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(R){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API,z=new u.default().insert(R);return this.setContents(z,V)}},{key:"update",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.default.sources.USER,V=this.scroll.update(R);return this.selection.update(R),V}},{key:"updateContents",value:function(R){var V=this,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.default.sources.API;return W.call(this,function(){return R=new u.default(R),V.editor.applyDelta(R,z)},z,!0)}}]),H}();M.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},M.events=p.default.events,M.sources=p.default.sources,M.version="1.3.7",M.imports={delta:u.default,parchment:g.default,"core/module":m.default,"core/theme":k.default};function j(H,F){if(F=(0,S.default)(!0,{container:H,modules:{clipboard:!0,keyboard:!0,history:!0}},F),!F.theme||F.theme===M.DEFAULTS.theme)F.theme=k.default;else if(F.theme=M.import("themes/"+F.theme),F.theme==null)throw new Error("Invalid theme "+F.theme+". Did you register it?");var R=(0,S.default)(!0,{},F.theme.DEFAULTS);[R,F].forEach(function(L){L.modules=L.modules||{},Object.keys(L.modules).forEach(function(A){L.modules[A]===!0&&(L.modules[A]={})})});var V=Object.keys(R.modules).concat(Object.keys(F.modules)),z=V.reduce(function(L,A){var N=M.import("modules/"+A);return N==null?$.error("Cannot load "+A+" module. Are you sure you registered it?"):L[A]=N.DEFAULTS||{},L},{});return F.modules!=null&&F.modules.toolbar&&F.modules.toolbar.constructor!==Object&&(F.modules.toolbar={container:F.modules.toolbar}),F=(0,S.default)(!0,{},M.DEFAULTS,{modules:z},R,F),["bounds","container","scrollingContainer"].forEach(function(L){typeof F[L]=="string"&&(F[L]=document.querySelector(F[L]))}),F.modules=Object.keys(F.modules).reduce(function(L,A){return F.modules[A]&&(L[A]=F.modules[A]),L},{}),F}function W(H,F,R,V){if(this.options.strict&&!this.isEnabled()&&F===p.default.sources.USER)return new u.default;var z=R==null?null:this.getSelection(),L=this.editor.delta,A=H();if(z!=null&&(R===!0&&(R=z.index),V==null?z=K(z,A,F):V!==0&&(z=K(z,R,V,F)),this.setSelection(z,p.default.sources.SILENT)),A.length()>0){var N,q=[p.default.events.TEXT_CHANGE,A,L,F];if((N=this.emitter).emit.apply(N,[p.default.events.EDITOR_CHANGE].concat(q)),F!==p.default.sources.SILENT){var Y;(Y=this.emitter).emit.apply(Y,q)}}return A}function U(H,F,R,V,z){var L={};return typeof H.index=="number"&&typeof H.length=="number"?typeof F!="number"?(z=V,V=R,R=F,F=H.length,H=H.index):(F=H.length,H=H.index):typeof F!="number"&&(z=V,V=R,R=F,F=0),(typeof R>"u"?"undefined":a(R))==="object"?(L=R,z=V):typeof R=="string"&&(V!=null?L[R]=V:z=R),z=z||p.default.sources.API,[H,F,L,z]}function K(H,F,R,V){if(H==null)return null;var z=void 0,L=void 0;if(F instanceof u.default){var A=[H.index,H.index+H.length].map(function(G){return F.transformPosition(G,V!==p.default.sources.USER)}),N=s(A,2);z=N[0],L=N[1]}else{var q=[H.index,H.index+H.length].map(function(G){return G<F||G===F&&V===p.default.sources.USER?G:R>=0?G+R:Math.max(F,G+R)}),Y=s(q,2);z=Y[0],L=Y[1]}return new v.Range(z,L-z)}r.expandConfig=j,r.overload=U,r.default=M},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function y(g,v){for(var x=0;x<v.length;x++){var w=v[x];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}return function(g,v,x){return v&&y(g.prototype,v),x&&y(g,x),g}}(),s=function y(g,v,x){g===null&&(g=Function.prototype);var w=Object.getOwnPropertyDescriptor(g,v);if(w===void 0){var S=Object.getPrototypeOf(g);return S===null?void 0:y(S,v,x)}else{if("value"in w)return w.value;var O=w.get;return O===void 0?void 0:O.call(x)}},l=i(7),c=f(l),u=i(0),d=f(u);function f(y){return y&&y.__esModule?y:{default:y}}function h(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function p(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function b(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var m=function(y){b(g,y);function g(){return h(this,g),p(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,[{key:"formatAt",value:function(x,w,S,O){if(g.compare(this.statics.blotName,S)<0&&d.default.query(S,d.default.Scope.BLOT)){var C=this.isolate(x,w);O&&C.wrap(S,O)}else s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"formatAt",this).call(this,x,w,S,O)}},{key:"optimize",value:function(x){if(s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,x),this.parent instanceof g&&g.compare(this.statics.blotName,this.parent.statics.blotName)>0){var w=this.parent.isolate(this.offset(),this.length());this.moveChildren(w),w.wrap(this)}}}],[{key:"compare",value:function(x,w){var S=g.order.indexOf(x),O=g.order.indexOf(w);return S>=0||O>=0?S-O:x===w?0:x<w?-1:1}}]),g}(d.default.Inline);m.allowedChildren=[m,d.default.Embed,c.default],m.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(0),s=l(a);function l(h){return h&&h.__esModule?h:{default:h}}function c(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function u(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function d(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var f=function(h){d(p,h);function p(){return c(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(s.default.Text);r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function v(x,w){for(var S=0;S<w.length;S++){var O=w[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(x,O.key,O)}}return function(x,w,S){return w&&v(x.prototype,w),S&&v(x,S),x}}(),s=function v(x,w,S){x===null&&(x=Function.prototype);var O=Object.getOwnPropertyDescriptor(x,w);if(O===void 0){var C=Object.getPrototypeOf(x);return C===null?void 0:v(C,w,S)}else{if("value"in O)return O.value;var P=O.get;return P===void 0?void 0:P.call(S)}},l=i(54),c=f(l),u=i(10),d=f(u);function f(v){return v&&v.__esModule?v:{default:v}}function h(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function p(v,x){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:v}function b(v,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);v.prototype=Object.create(x&&x.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(v,x):v.__proto__=x)}var m=(0,d.default)("quill:events"),y=["selectionchange","mousedown","mouseup","click"];y.forEach(function(v){document.addEventListener(v,function(){for(var x=arguments.length,w=Array(x),S=0;S<x;S++)w[S]=arguments[S];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(O){if(O.__quill&&O.__quill.emitter){var C;(C=O.__quill.emitter).handleDOM.apply(C,w)}})})});var g=function(v){b(x,v);function x(){h(this,x);var w=p(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));return w.listeners={},w.on("error",m.error),w}return a(x,[{key:"emit",value:function(){m.log.apply(m,arguments),s(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(S){for(var O=arguments.length,C=Array(O>1?O-1:0),P=1;P<O;P++)C[P-1]=arguments[P];(this.listeners[S.type]||[]).forEach(function(k){var E=k.node,_=k.handler;(S.target===E||E.contains(S.target))&&_.apply(void 0,[S].concat(C))})}},{key:"listenDOM",value:function(S,O,C){this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push({node:O,handler:C})}}]),x}(c.default);g.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},g.sources={API:"api",SILENT:"silent",USER:"user"},r.default=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});function a(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}var s=function l(c){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(this,l),this.quill=c,this.options=u};s.DEFAULTS={},r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=["error","warn","log","info"],s="warn";function l(u){if(a.indexOf(u)<=a.indexOf(s)){for(var d,f=arguments.length,h=Array(f>1?f-1:0),p=1;p<f;p++)h[p-1]=arguments[p];(d=console)[u].apply(d,h)}}function c(u){return a.reduce(function(d,f){return d[f]=l.bind(console,f,u),d},{})}l.level=c.level=function(u){s=u},r.default=c},function(n,r,i){var a=Array.prototype.slice,s=i(52),l=i(53),c=n.exports=function(h,p,b){return b||(b={}),h===p?!0:h instanceof Date&&p instanceof Date?h.getTime()===p.getTime():!h||!p||typeof h!="object"&&typeof p!="object"?b.strict?h===p:h==p:f(h,p,b)};function u(h){return h==null}function d(h){return!(!h||typeof h!="object"||typeof h.length!="number"||typeof h.copy!="function"||typeof h.slice!="function"||h.length>0&&typeof h[0]!="number")}function f(h,p,b){var m,y;if(u(h)||u(p)||h.prototype!==p.prototype)return!1;if(l(h))return l(p)?(h=a.call(h),p=a.call(p),c(h,p,b)):!1;if(d(h)){if(!d(p)||h.length!==p.length)return!1;for(m=0;m<h.length;m++)if(h[m]!==p[m])return!1;return!0}try{var g=s(h),v=s(p)}catch{return!1}if(g.length!=v.length)return!1;for(g.sort(),v.sort(),m=g.length-1;m>=0;m--)if(g[m]!=v[m])return!1;for(m=g.length-1;m>=0;m--)if(y=g[m],!c(h[y],p[y],b))return!1;return typeof h==typeof p}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(1),s=function(){function l(c,u,d){d===void 0&&(d={}),this.attrName=c,this.keyName=u;var f=a.Scope.TYPE&a.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&a.Scope.LEVEL|f:this.scope=a.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return l.keys=function(c){return[].map.call(c.attributes,function(u){return u.name})},l.prototype.add=function(c,u){return this.canAdd(c,u)?(c.setAttribute(this.keyName,u),!0):!1},l.prototype.canAdd=function(c,u){var d=a.query(c,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof u=="string"?this.whitelist.indexOf(u.replace(/["']/g,""))>-1:this.whitelist.indexOf(u)>-1},l.prototype.remove=function(c){c.removeAttribute(this.keyName)},l.prototype.value=function(c){var u=c.getAttribute(this.keyName);return this.canAdd(c,u)&&u?u:""},l}();r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Code=void 0;var a=function(){function P(k,E){var _=[],T=!0,$=!1,M=void 0;try{for(var j=k[Symbol.iterator](),W;!(T=(W=j.next()).done)&&(_.push(W.value),!(E&&_.length===E));T=!0);}catch(U){$=!0,M=U}finally{try{!T&&j.return&&j.return()}finally{if($)throw M}}return _}return function(k,E){if(Array.isArray(k))return k;if(Symbol.iterator in Object(k))return P(k,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function P(k,E){for(var _=0;_<E.length;_++){var T=E[_];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(k,T.key,T)}}return function(k,E,_){return E&&P(k.prototype,E),_&&P(k,_),k}}(),l=function P(k,E,_){k===null&&(k=Function.prototype);var T=Object.getOwnPropertyDescriptor(k,E);if(T===void 0){var $=Object.getPrototypeOf(k);return $===null?void 0:P($,E,_)}else{if("value"in T)return T.value;var M=T.get;return M===void 0?void 0:M.call(_)}},c=i(2),u=v(c),d=i(0),f=v(d),h=i(4),p=v(h),b=i(6),m=v(b),y=i(7),g=v(y);function v(P){return P&&P.__esModule?P:{default:P}}function x(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function w(P,k){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:P}function S(P,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);P.prototype=Object.create(k&&k.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(P,k):P.__proto__=k)}var O=function(P){S(k,P);function k(){return x(this,k),w(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return k}(m.default);O.blotName="code",O.tagName="CODE";var C=function(P){S(k,P);function k(){return x(this,k),w(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return s(k,[{key:"delta",value:function(){var _=this,T=this.domNode.textContent;return T.endsWith(`
`)&&(T=T.slice(0,-1)),T.split(`
`).reduce(function($,M){return $.insert(M).insert(`
`,_.formats())},new u.default)}},{key:"format",value:function(_,T){if(!(_===this.statics.blotName&&T)){var $=this.descendant(g.default,this.length()-1),M=a($,1),j=M[0];j!=null&&j.deleteAt(j.length()-1,1),l(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"format",this).call(this,_,T)}}},{key:"formatAt",value:function(_,T,$,M){if(T!==0&&!(f.default.query($,f.default.Scope.BLOCK)==null||$===this.statics.blotName&&M===this.statics.formats(this.domNode))){var j=this.newlineIndex(_);if(!(j<0||j>=_+T)){var W=this.newlineIndex(_,!0)+1,U=j-W+1,K=this.isolate(W,U),H=K.next;K.format($,M),H instanceof k&&H.formatAt(0,_-W+T-U,$,M)}}}},{key:"insertAt",value:function(_,T,$){if($==null){var M=this.descendant(g.default,_),j=a(M,2),W=j[0],U=j[1];W.insertAt(U,T)}}},{key:"length",value:function(){var _=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?_:_+1}},{key:"newlineIndex",value:function(_){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(T)return this.domNode.textContent.slice(0,_).lastIndexOf(`
`);var $=this.domNode.textContent.slice(_).indexOf(`
`);return $>-1?_+$:-1}},{key:"optimize",value:function(_){this.domNode.textContent.endsWith(`
`)||this.appendChild(f.default.create("text",`
`)),l(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"optimize",this).call(this,_);var T=this.next;T!=null&&T.prev===this&&T.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===T.statics.formats(T.domNode)&&(T.optimize(_),T.moveChildren(this),T.remove())}},{key:"replace",value:function(_){l(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"replace",this).call(this,_),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(T){var $=f.default.find(T);$==null?T.parentNode.removeChild(T):$ instanceof f.default.Embed?$.remove():$.unwrap()})}}],[{key:"create",value:function(_){var T=l(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,_);return T.setAttribute("spellcheck",!1),T}},{key:"formats",value:function(){return!0}}]),k}(p.default);C.blotName="code-block",C.tagName="PRE",C.TAB="  ",r.Code=O,r.default=C},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},s=function(){function H(F,R){var V=[],z=!0,L=!1,A=void 0;try{for(var N=F[Symbol.iterator](),q;!(z=(q=N.next()).done)&&(V.push(q.value),!(R&&V.length===R));z=!0);}catch(Y){L=!0,A=Y}finally{try{!z&&N.return&&N.return()}finally{if(L)throw A}}return V}return function(F,R){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return H(F,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function H(F,R){for(var V=0;V<R.length;V++){var z=R[V];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(F,z.key,z)}}return function(F,R,V){return R&&H(F.prototype,R),V&&H(F,V),F}}(),c=i(2),u=T(c),d=i(20),f=T(d),h=i(0),p=T(h),b=i(13),m=T(b),y=i(24),g=T(y),v=i(4),x=T(v),w=i(16),S=T(w),O=i(21),C=T(O),P=i(11),k=T(P),E=i(3),_=T(E);function T(H){return H&&H.__esModule?H:{default:H}}function $(H,F,R){return F in H?Object.defineProperty(H,F,{value:R,enumerable:!0,configurable:!0,writable:!0}):H[F]=R,H}function M(H,F){if(!(H instanceof F))throw new TypeError("Cannot call a class as a function")}var j=/^[ -~]*$/,W=function(){function H(F){M(this,H),this.scroll=F,this.delta=this.getDelta()}return l(H,[{key:"applyDelta",value:function(R){var V=this,z=!1;this.scroll.update();var L=this.scroll.length();return this.scroll.batchStart(),R=K(R),R.reduce(function(A,N){var q=N.retain||N.delete||N.insert.length||1,Y=N.attributes||{};if(N.insert!=null){if(typeof N.insert=="string"){var G=N.insert;G.endsWith(`
`)&&z&&(z=!1,G=G.slice(0,-1)),A>=L&&!G.endsWith(`
`)&&(z=!0),V.scroll.insertAt(A,G);var X=V.scroll.line(A),Q=s(X,2),Z=Q[0],ce=Q[1],ue=(0,_.default)({},(0,v.bubbleFormats)(Z));if(Z instanceof x.default){var ye=Z.descendant(p.default.Leaf,ce),de=s(ye,1),pe=de[0];ue=(0,_.default)(ue,(0,v.bubbleFormats)(pe))}Y=f.default.attributes.diff(ue,Y)||{}}else if(a(N.insert)==="object"){var J=Object.keys(N.insert)[0];if(J==null)return A;V.scroll.insertAt(A,J,N.insert[J])}L+=q}return Object.keys(Y).forEach(function(oe){V.scroll.formatAt(A,q,oe,Y[oe])}),A+q},0),R.reduce(function(A,N){return typeof N.delete=="number"?(V.scroll.deleteAt(A,N.delete),A):A+(N.retain||N.insert.length||1)},0),this.scroll.batchEnd(),this.update(R)}},{key:"deleteText",value:function(R,V){return this.scroll.deleteAt(R,V),this.update(new u.default().retain(R).delete(V))}},{key:"formatLine",value:function(R,V){var z=this,L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(L).forEach(function(A){if(!(z.scroll.whitelist!=null&&!z.scroll.whitelist[A])){var N=z.scroll.lines(R,Math.max(V,1)),q=V;N.forEach(function(Y){var G=Y.length();if(!(Y instanceof m.default))Y.format(A,L[A]);else{var X=R-Y.offset(z.scroll),Q=Y.newlineIndex(X+q)-X+1;Y.formatAt(X,Q,A,L[A])}q-=G})}}),this.scroll.optimize(),this.update(new u.default().retain(R).retain(V,(0,C.default)(L)))}},{key:"formatText",value:function(R,V){var z=this,L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(L).forEach(function(A){z.scroll.formatAt(R,V,A,L[A])}),this.update(new u.default().retain(R).retain(V,(0,C.default)(L)))}},{key:"getContents",value:function(R,V){return this.delta.slice(R,R+V)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(R,V){return R.concat(V.delta())},new u.default)}},{key:"getFormat",value:function(R){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,z=[],L=[];V===0?this.scroll.path(R).forEach(function(N){var q=s(N,1),Y=q[0];Y instanceof x.default?z.push(Y):Y instanceof p.default.Leaf&&L.push(Y)}):(z=this.scroll.lines(R,V),L=this.scroll.descendants(p.default.Leaf,R,V));var A=[z,L].map(function(N){if(N.length===0)return{};for(var q=(0,v.bubbleFormats)(N.shift());Object.keys(q).length>0;){var Y=N.shift();if(Y==null)return q;q=U((0,v.bubbleFormats)(Y),q)}return q});return _.default.apply(_.default,A)}},{key:"getText",value:function(R,V){return this.getContents(R,V).filter(function(z){return typeof z.insert=="string"}).map(function(z){return z.insert}).join("")}},{key:"insertEmbed",value:function(R,V,z){return this.scroll.insertAt(R,V,z),this.update(new u.default().retain(R).insert($({},V,z)))}},{key:"insertText",value:function(R,V){var z=this,L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V=V.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(R,V),Object.keys(L).forEach(function(A){z.scroll.formatAt(R,V.length,A,L[A])}),this.update(new u.default().retain(R).insert(V,(0,C.default)(L)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var R=this.scroll.children.head;return R.statics.blotName!==x.default.blotName||R.children.length>1?!1:R.children.head instanceof S.default}},{key:"removeFormat",value:function(R,V){var z=this.getText(R,V),L=this.scroll.line(R+V),A=s(L,2),N=A[0],q=A[1],Y=0,G=new u.default;N!=null&&(N instanceof m.default?Y=N.newlineIndex(q)-q+1:Y=N.length()-q,G=N.delta().slice(q,q+Y-1).insert(`
`));var X=this.getContents(R,V+Y),Q=X.diff(new u.default().insert(z).concat(G)),Z=new u.default().retain(R).concat(Q);return this.applyDelta(Z)}},{key:"update",value:function(R){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,L=this.delta;if(V.length===1&&V[0].type==="characterData"&&V[0].target.data.match(j)&&p.default.find(V[0].target)){var A=p.default.find(V[0].target),N=(0,v.bubbleFormats)(A),q=A.offset(this.scroll),Y=V[0].oldValue.replace(g.default.CONTENTS,""),G=new u.default().insert(Y),X=new u.default().insert(A.value()),Q=new u.default().retain(q).concat(G.diff(X,z));R=Q.reduce(function(Z,ce){return ce.insert?Z.insert(ce.insert,N):Z.push(ce)},new u.default),this.delta=L.compose(R)}else this.delta=this.getDelta(),(!R||!(0,k.default)(L.compose(R),this.delta))&&(R=L.diff(this.delta,z));return R}}]),H}();function U(H,F){return Object.keys(F).reduce(function(R,V){return H[V]==null||(F[V]===H[V]?R[V]=F[V]:Array.isArray(F[V])?F[V].indexOf(H[V])<0&&(R[V]=F[V].concat([H[V]])):R[V]=[F[V],H[V]]),R},{})}function K(H){return H.reduce(function(F,R){if(R.insert===1){var V=(0,C.default)(R.attributes);return delete V.image,F.insert({image:R.attributes.image},V)}if(R.attributes!=null&&(R.attributes.list===!0||R.attributes.bullet===!0)&&(R=(0,C.default)(R),R.attributes.list?R.attributes.list="ordered":(R.attributes.list="bullet",delete R.attributes.bullet)),typeof R.insert=="string"){var z=R.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return F.insert(z,R.attributes)}return F.push(R)},new u.default)}r.default=W},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var a=function(){function P(k,E){var _=[],T=!0,$=!1,M=void 0;try{for(var j=k[Symbol.iterator](),W;!(T=(W=j.next()).done)&&(_.push(W.value),!(E&&_.length===E));T=!0);}catch(U){$=!0,M=U}finally{try{!T&&j.return&&j.return()}finally{if($)throw M}}return _}return function(k,E){if(Array.isArray(k))return k;if(Symbol.iterator in Object(k))return P(k,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function P(k,E){for(var _=0;_<E.length;_++){var T=E[_];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(k,T.key,T)}}return function(k,E,_){return E&&P(k.prototype,E),_&&P(k,_),k}}(),l=i(0),c=g(l),u=i(21),d=g(u),f=i(11),h=g(f),p=i(8),b=g(p),m=i(10),y=g(m);function g(P){return P&&P.__esModule?P:{default:P}}function v(P){if(Array.isArray(P)){for(var k=0,E=Array(P.length);k<P.length;k++)E[k]=P[k];return E}else return Array.from(P)}function x(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}var w=(0,y.default)("quill:selection"),S=function P(k){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;x(this,P),this.index=k,this.length=E},O=function(){function P(k,E){var _=this;x(this,P),this.emitter=E,this.scroll=k,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new S(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){_.mouseDown||setTimeout(_.update.bind(_,b.default.sources.USER),1)}),this.emitter.on(b.default.events.EDITOR_CHANGE,function(T,$){T===b.default.events.TEXT_CHANGE&&$.length()>0&&_.update(b.default.sources.SILENT)}),this.emitter.on(b.default.events.SCROLL_BEFORE_UPDATE,function(){if(_.hasFocus()){var T=_.getNativeRange();T!=null&&T.start.node!==_.cursor.textNode&&_.emitter.once(b.default.events.SCROLL_UPDATE,function(){try{_.setNativeRange(T.start.node,T.start.offset,T.end.node,T.end.offset)}catch{}})}}),this.emitter.on(b.default.events.SCROLL_OPTIMIZE,function(T,$){if($.range){var M=$.range,j=M.startNode,W=M.startOffset,U=M.endNode,K=M.endOffset;_.setNativeRange(j,W,U,K)}}),this.update(b.default.sources.SILENT)}return s(P,[{key:"handleComposition",value:function(){var E=this;this.root.addEventListener("compositionstart",function(){E.composing=!0}),this.root.addEventListener("compositionend",function(){if(E.composing=!1,E.cursor.parent){var _=E.cursor.restore();if(!_)return;setTimeout(function(){E.setNativeRange(_.startNode,_.startOffset,_.endNode,_.endOffset)},1)}})}},{key:"handleDragging",value:function(){var E=this;this.emitter.listenDOM("mousedown",document.body,function(){E.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){E.mouseDown=!1,E.update(b.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(E,_){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[E])){this.scroll.update();var T=this.getNativeRange();if(!(T==null||!T.native.collapsed||c.default.query(E,c.default.Scope.BLOCK))){if(T.start.node!==this.cursor.textNode){var $=c.default.find(T.start.node,!1);if($==null)return;if($ instanceof c.default.Leaf){var M=$.split(T.start.offset);$.parent.insertBefore(this.cursor,M)}else $.insertBefore(this.cursor,T.start.node);this.cursor.attach()}this.cursor.format(E,_),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(E){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,T=this.scroll.length();E=Math.min(E,T-1),_=Math.min(E+_,T-1)-E;var $=void 0,M=this.scroll.leaf(E),j=a(M,2),W=j[0],U=j[1];if(W==null)return null;var K=W.position(U,!0),H=a(K,2);$=H[0],U=H[1];var F=document.createRange();if(_>0){F.setStart($,U);var R=this.scroll.leaf(E+_),V=a(R,2);if(W=V[0],U=V[1],W==null)return null;var z=W.position(U,!0),L=a(z,2);return $=L[0],U=L[1],F.setEnd($,U),F.getBoundingClientRect()}else{var A="left",N=void 0;return $ instanceof Text?(U<$.data.length?(F.setStart($,U),F.setEnd($,U+1)):(F.setStart($,U-1),F.setEnd($,U),A="right"),N=F.getBoundingClientRect()):(N=W.domNode.getBoundingClientRect(),U>0&&(A="right")),{bottom:N.top+N.height,height:N.height,left:N[A],right:N[A],top:N.top,width:0}}}},{key:"getNativeRange",value:function(){var E=document.getSelection();if(E==null||E.rangeCount<=0)return null;var _=E.getRangeAt(0);if(_==null)return null;var T=this.normalizeNative(_);return w.info("getNativeRange",T),T}},{key:"getRange",value:function(){var E=this.getNativeRange();if(E==null)return[null,null];var _=this.normalizedToRange(E);return[_,E]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(E){var _=this,T=[[E.start.node,E.start.offset]];E.native.collapsed||T.push([E.end.node,E.end.offset]);var $=T.map(function(W){var U=a(W,2),K=U[0],H=U[1],F=c.default.find(K,!0),R=F.offset(_.scroll);return H===0?R:F instanceof c.default.Container?R+F.length():R+F.index(K,H)}),M=Math.min(Math.max.apply(Math,v($)),this.scroll.length()-1),j=Math.min.apply(Math,[M].concat(v($)));return new S(j,M-j)}},{key:"normalizeNative",value:function(E){if(!C(this.root,E.startContainer)||!E.collapsed&&!C(this.root,E.endContainer))return null;var _={start:{node:E.startContainer,offset:E.startOffset},end:{node:E.endContainer,offset:E.endOffset},native:E};return[_.start,_.end].forEach(function(T){for(var $=T.node,M=T.offset;!($ instanceof Text)&&$.childNodes.length>0;)if($.childNodes.length>M)$=$.childNodes[M],M=0;else if($.childNodes.length===M)$=$.lastChild,M=$ instanceof Text?$.data.length:$.childNodes.length+1;else break;T.node=$,T.offset=M}),_}},{key:"rangeToNative",value:function(E){var _=this,T=E.collapsed?[E.index]:[E.index,E.index+E.length],$=[],M=this.scroll.length();return T.forEach(function(j,W){j=Math.min(M-1,j);var U=void 0,K=_.scroll.leaf(j),H=a(K,2),F=H[0],R=H[1],V=F.position(R,W!==0),z=a(V,2);U=z[0],R=z[1],$.push(U,R)}),$.length<2&&($=$.concat($)),$}},{key:"scrollIntoView",value:function(E){var _=this.lastRange;if(_!=null){var T=this.getBounds(_.index,_.length);if(T!=null){var $=this.scroll.length()-1,M=this.scroll.line(Math.min(_.index,$)),j=a(M,1),W=j[0],U=W;if(_.length>0){var K=this.scroll.line(Math.min(_.index+_.length,$)),H=a(K,1);U=H[0]}if(!(W==null||U==null)){var F=E.getBoundingClientRect();T.top<F.top?E.scrollTop-=F.top-T.top:T.bottom>F.bottom&&(E.scrollTop+=T.bottom-F.bottom)}}}}},{key:"setNativeRange",value:function(E,_){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:E,$=arguments.length>3&&arguments[3]!==void 0?arguments[3]:_,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(w.info("setNativeRange",E,_,T,$),!(E!=null&&(this.root.parentNode==null||E.parentNode==null||T.parentNode==null))){var j=document.getSelection();if(j!=null)if(E!=null){this.hasFocus()||this.root.focus();var W=(this.getNativeRange()||{}).native;if(W==null||M||E!==W.startContainer||_!==W.startOffset||T!==W.endContainer||$!==W.endOffset){E.tagName=="BR"&&(_=[].indexOf.call(E.parentNode.childNodes,E),E=E.parentNode),T.tagName=="BR"&&($=[].indexOf.call(T.parentNode.childNodes,T),T=T.parentNode);var U=document.createRange();U.setStart(E,_),U.setEnd(T,$),j.removeAllRanges(),j.addRange(U)}}else j.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(E){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b.default.sources.API;if(typeof _=="string"&&(T=_,_=!1),w.info("setRange",E),E!=null){var $=this.rangeToNative(E);this.setNativeRange.apply(this,v($).concat([_]))}else this.setNativeRange(null);this.update(T)}},{key:"update",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b.default.sources.USER,_=this.lastRange,T=this.getRange(),$=a(T,2),M=$[0],j=$[1];if(this.lastRange=M,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,h.default)(_,this.lastRange)){var W;!this.composing&&j!=null&&j.native.collapsed&&j.start.node!==this.cursor.textNode&&this.cursor.restore();var U=[b.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(_),E];if((W=this.emitter).emit.apply(W,[b.default.events.EDITOR_CHANGE].concat(U)),E!==b.default.sources.SILENT){var K;(K=this.emitter).emit.apply(K,U)}}}}]),P}();function C(P,k){try{k.parentNode}catch{return!1}return k instanceof Text&&(k=k.parentNode),P.contains(k)}r.Range=S,r.default=O},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function b(m,y){for(var g=0;g<y.length;g++){var v=y[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}return function(m,y,g){return y&&b(m.prototype,y),g&&b(m,g),m}}(),s=function b(m,y,g){m===null&&(m=Function.prototype);var v=Object.getOwnPropertyDescriptor(m,y);if(v===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:b(x,y,g)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(g)}},l=i(0),c=u(l);function u(b){return b&&b.__esModule?b:{default:b}}function d(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function f(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function h(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var p=function(b){h(m,b);function m(){return d(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"insertInto",value:function(g,v){g.children.length===0?s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertInto",this).call(this,g,v):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),m}(c.default.Embed);p.blotName="break",p.tagName="BR",r.default=p},function(n,r,i){var a=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var b in p)p.hasOwnProperty(b)&&(h[b]=p[b])};return function(h,p){f(h,p);function b(){this.constructor=h}h.prototype=p===null?Object.create(p):(b.prototype=p.prototype,new b)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(44),l=i(30),c=i(1),u=function(f){a(h,f);function h(p){var b=f.call(this,p)||this;return b.build(),b}return h.prototype.appendChild=function(p){this.insertBefore(p)},h.prototype.attach=function(){f.prototype.attach.call(this),this.children.forEach(function(p){p.attach()})},h.prototype.build=function(){var p=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(b){try{var m=d(b);p.insertBefore(m,p.children.head||void 0)}catch(y){if(y instanceof c.ParchmentError)return;throw y}})},h.prototype.deleteAt=function(p,b){if(p===0&&b===this.length())return this.remove();this.children.forEachAt(p,b,function(m,y,g){m.deleteAt(y,g)})},h.prototype.descendant=function(p,b){var m=this.children.find(b),y=m[0],g=m[1];return p.blotName==null&&p(y)||p.blotName!=null&&y instanceof p?[y,g]:y instanceof h?y.descendant(p,g):[null,-1]},h.prototype.descendants=function(p,b,m){b===void 0&&(b=0),m===void 0&&(m=Number.MAX_VALUE);var y=[],g=m;return this.children.forEachAt(b,m,function(v,x,w){(p.blotName==null&&p(v)||p.blotName!=null&&v instanceof p)&&y.push(v),v instanceof h&&(y=y.concat(v.descendants(p,x,g))),g-=w}),y},h.prototype.detach=function(){this.children.forEach(function(p){p.detach()}),f.prototype.detach.call(this)},h.prototype.formatAt=function(p,b,m,y){this.children.forEachAt(p,b,function(g,v,x){g.formatAt(v,x,m,y)})},h.prototype.insertAt=function(p,b,m){var y=this.children.find(p),g=y[0],v=y[1];if(g)g.insertAt(v,b,m);else{var x=m==null?c.create("text",b):c.create(b,m);this.appendChild(x)}},h.prototype.insertBefore=function(p,b){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(m){return p instanceof m}))throw new c.ParchmentError("Cannot insert "+p.statics.blotName+" into "+this.statics.blotName);p.insertInto(this,b)},h.prototype.length=function(){return this.children.reduce(function(p,b){return p+b.length()},0)},h.prototype.moveChildren=function(p,b){this.children.forEach(function(m){p.insertBefore(m,b)})},h.prototype.optimize=function(p){if(f.prototype.optimize.call(this,p),this.children.length===0)if(this.statics.defaultChild!=null){var b=c.create(this.statics.defaultChild);this.appendChild(b),b.optimize(p)}else this.remove()},h.prototype.path=function(p,b){b===void 0&&(b=!1);var m=this.children.find(p,b),y=m[0],g=m[1],v=[[this,p]];return y instanceof h?v.concat(y.path(g,b)):(y!=null&&v.push([y,g]),v)},h.prototype.removeChild=function(p){this.children.remove(p)},h.prototype.replace=function(p){p instanceof h&&p.moveChildren(this),f.prototype.replace.call(this,p)},h.prototype.split=function(p,b){if(b===void 0&&(b=!1),!b){if(p===0)return this;if(p===this.length())return this.next}var m=this.clone();return this.parent.insertBefore(m,this.next),this.children.forEachAt(p,this.length(),function(y,g,v){y=y.split(g,b),m.appendChild(y)}),m},h.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},h.prototype.update=function(p,b){var m=this,y=[],g=[];p.forEach(function(v){v.target===m.domNode&&v.type==="childList"&&(y.push.apply(y,v.addedNodes),g.push.apply(g,v.removedNodes))}),g.forEach(function(v){if(!(v.parentNode!=null&&v.tagName!=="IFRAME"&&document.body.compareDocumentPosition(v)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var x=c.find(v);x!=null&&(x.domNode.parentNode==null||x.domNode.parentNode===m.domNode)&&x.detach()}}),y.filter(function(v){return v.parentNode==m.domNode}).sort(function(v,x){return v===x?0:v.compareDocumentPosition(x)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(v){var x=null;v.nextSibling!=null&&(x=c.find(v.nextSibling));var w=d(v);(w.next!=x||w.next==null)&&(w.parent!=null&&w.parent.removeChild(m),m.insertBefore(w,x||void 0))})},h}(l.default);function d(f){var h=c.find(f);if(h==null)try{h=c.create(f)}catch{h=c.create(c.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(b){h.domNode.appendChild(b)}),f.parentNode&&f.parentNode.replaceChild(h.domNode,f),h.attach()}return h}r.default=u},function(n,r,i){var a=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var b in p)p.hasOwnProperty(b)&&(h[b]=p[b])};return function(h,p){f(h,p);function b(){this.constructor=h}h.prototype=p===null?Object.create(p):(b.prototype=p.prototype,new b)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(12),l=i(31),c=i(17),u=i(1),d=function(f){a(h,f);function h(p){var b=f.call(this,p)||this;return b.attributes=new l.default(b.domNode),b}return h.formats=function(p){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return p.tagName.toLowerCase()},h.prototype.format=function(p,b){var m=u.query(p);m instanceof s.default?this.attributes.attribute(m,b):b&&m!=null&&(p!==this.statics.blotName||this.formats()[p]!==b)&&this.replaceWith(p,b)},h.prototype.formats=function(){var p=this.attributes.values(),b=this.statics.formats(this.domNode);return b!=null&&(p[this.statics.blotName]=b),p},h.prototype.replaceWith=function(p,b){var m=f.prototype.replaceWith.call(this,p,b);return this.attributes.copy(m),m},h.prototype.update=function(p,b){var m=this;f.prototype.update.call(this,p,b),p.some(function(y){return y.target===m.domNode&&y.type==="attributes"})&&this.attributes.build()},h.prototype.wrap=function(p,b){var m=f.prototype.wrap.call(this,p,b);return m instanceof h&&m.statics.scope===this.statics.scope&&this.attributes.move(m),m},h}(c.default);r.default=d},function(n,r,i){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)f.hasOwnProperty(h)&&(d[h]=f[h])};return function(d,f){u(d,f);function h(){this.constructor=d}d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(30),l=i(1),c=function(u){a(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.value=function(f){return!0},d.prototype.index=function(f,h){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(h,1):-1},d.prototype.position=function(f,h){var p=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return f>0&&(p+=1),[this.parent.domNode,p]},d.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f},d.scope=l.Scope.INLINE_BLOT,d}(s.default);r.default=c},function(n,r,i){var a=i(11),s=i(3),l={attributes:{compose:function(u,d,f){typeof u!="object"&&(u={}),typeof d!="object"&&(d={});var h=s(!0,{},d);f||(h=Object.keys(h).reduce(function(b,m){return h[m]!=null&&(b[m]=h[m]),b},{}));for(var p in u)u[p]!==void 0&&d[p]===void 0&&(h[p]=u[p]);return Object.keys(h).length>0?h:void 0},diff:function(u,d){typeof u!="object"&&(u={}),typeof d!="object"&&(d={});var f=Object.keys(u).concat(Object.keys(d)).reduce(function(h,p){return a(u[p],d[p])||(h[p]=d[p]===void 0?null:d[p]),h},{});return Object.keys(f).length>0?f:void 0},transform:function(u,d,f){if(typeof u!="object")return d;if(typeof d=="object"){if(!f)return d;var h=Object.keys(d).reduce(function(p,b){return u[b]===void 0&&(p[b]=d[b]),p},{});return Object.keys(h).length>0?h:void 0}}},iterator:function(u){return new c(u)},length:function(u){return typeof u.delete=="number"?u.delete:typeof u.retain=="number"?u.retain:typeof u.insert=="string"?u.insert.length:1}};function c(u){this.ops=u,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(u){u||(u=1/0);var d=this.ops[this.index];if(d){var f=this.offset,h=l.length(d);if(u>=h-f?(u=h-f,this.index+=1,this.offset=0):this.offset+=u,typeof d.delete=="number")return{delete:u};var p={};return d.attributes&&(p.attributes=d.attributes),typeof d.retain=="number"?p.retain=u:typeof d.insert=="string"?p.insert=d.insert.substr(f,u):p.insert=d.insert,p}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},c.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var u=this.offset,d=this.index,f=this.next(),h=this.ops.slice(this.index);return this.offset=u,this.index=d,[f].concat(h)}else return[]},n.exports=l},function(n,r){var i=function(){function a(m,y){return y!=null&&m instanceof y}var s;try{s=Map}catch{s=function(){}}var l;try{l=Set}catch{l=function(){}}var c;try{c=Promise}catch{c=function(){}}function u(m,y,g,v,x){typeof y=="object"&&(g=y.depth,v=y.prototype,x=y.includeNonEnumerable,y=y.circular);var w=[],S=[],O=typeof Buffer<"u";typeof y>"u"&&(y=!0),typeof g>"u"&&(g=1/0);function C(P,k){if(P===null)return null;if(k===0)return P;var E,_;if(typeof P!="object")return P;if(a(P,s))E=new s;else if(a(P,l))E=new l;else if(a(P,c))E=new c(function(F,R){P.then(function(V){F(C(V,k-1))},function(V){R(C(V,k-1))})});else if(u.__isArray(P))E=[];else if(u.__isRegExp(P))E=new RegExp(P.source,b(P)),P.lastIndex&&(E.lastIndex=P.lastIndex);else if(u.__isDate(P))E=new Date(P.getTime());else{if(O&&Buffer.isBuffer(P))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(P.length):E=new Buffer(P.length),P.copy(E),E;a(P,Error)?E=Object.create(P):typeof v>"u"?(_=Object.getPrototypeOf(P),E=Object.create(_)):(E=Object.create(v),_=v)}if(y){var T=w.indexOf(P);if(T!=-1)return S[T];w.push(P),S.push(E)}a(P,s)&&P.forEach(function(F,R){var V=C(R,k-1),z=C(F,k-1);E.set(V,z)}),a(P,l)&&P.forEach(function(F){var R=C(F,k-1);E.add(R)});for(var $ in P){var M;_&&(M=Object.getOwnPropertyDescriptor(_,$)),!(M&&M.set==null)&&(E[$]=C(P[$],k-1))}if(Object.getOwnPropertySymbols)for(var j=Object.getOwnPropertySymbols(P),$=0;$<j.length;$++){var W=j[$],U=Object.getOwnPropertyDescriptor(P,W);U&&!U.enumerable&&!x||(E[W]=C(P[W],k-1),U.enumerable||Object.defineProperty(E,W,{enumerable:!1}))}if(x)for(var K=Object.getOwnPropertyNames(P),$=0;$<K.length;$++){var H=K[$],U=Object.getOwnPropertyDescriptor(P,H);U&&U.enumerable||(E[H]=C(P[H],k-1),Object.defineProperty(E,H,{enumerable:!1}))}return E}return C(m,g)}u.clonePrototype=function(y){if(y===null)return null;var g=function(){};return g.prototype=y,new g};function d(m){return Object.prototype.toString.call(m)}u.__objToStr=d;function f(m){return typeof m=="object"&&d(m)==="[object Date]"}u.__isDate=f;function h(m){return typeof m=="object"&&d(m)==="[object Array]"}u.__isArray=h;function p(m){return typeof m=="object"&&d(m)==="[object RegExp]"}u.__isRegExp=p;function b(m){var y="";return m.global&&(y+="g"),m.ignoreCase&&(y+="i"),m.multiline&&(y+="m"),y}return u.__getRegExpFlags=b,u}();typeof n=="object"&&n.exports&&(n.exports=i)},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function E(_,T){var $=[],M=!0,j=!1,W=void 0;try{for(var U=_[Symbol.iterator](),K;!(M=(K=U.next()).done)&&($.push(K.value),!(T&&$.length===T));M=!0);}catch(H){j=!0,W=H}finally{try{!M&&U.return&&U.return()}finally{if(j)throw W}}return $}return function(_,T){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return E(_,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function E(_,T){for(var $=0;$<T.length;$++){var M=T[$];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(_,M.key,M)}}return function(_,T,$){return T&&E(_.prototype,T),$&&E(_,$),_}}(),l=function E(_,T,$){_===null&&(_=Function.prototype);var M=Object.getOwnPropertyDescriptor(_,T);if(M===void 0){var j=Object.getPrototypeOf(_);return j===null?void 0:E(j,T,$)}else{if("value"in M)return M.value;var W=M.get;return W===void 0?void 0:W.call($)}},c=i(0),u=w(c),d=i(8),f=w(d),h=i(4),p=w(h),b=i(16),m=w(b),y=i(13),g=w(y),v=i(25),x=w(v);function w(E){return E&&E.__esModule?E:{default:E}}function S(E,_){if(!(E instanceof _))throw new TypeError("Cannot call a class as a function")}function O(E,_){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:E}function C(E,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);E.prototype=Object.create(_&&_.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(E,_):E.__proto__=_)}function P(E){return E instanceof p.default||E instanceof h.BlockEmbed}var k=function(E){C(_,E);function _(T,$){S(this,_);var M=O(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,T));return M.emitter=$.emitter,Array.isArray($.whitelist)&&(M.whitelist=$.whitelist.reduce(function(j,W){return j[W]=!0,j},{})),M.domNode.addEventListener("DOMNodeInserted",function(){}),M.optimize(),M.enable(),M}return s(_,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function($,M){var j=this.line($),W=a(j,2),U=W[0],K=W[1],H=this.line($+M),F=a(H,1),R=F[0];if(l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"deleteAt",this).call(this,$,M),R!=null&&U!==R&&K>0){if(U instanceof h.BlockEmbed||R instanceof h.BlockEmbed){this.optimize();return}if(U instanceof g.default){var V=U.newlineIndex(U.length(),!0);if(V>-1&&(U=U.split(V+1),U===R)){this.optimize();return}}else if(R instanceof g.default){var z=R.newlineIndex(0);z>-1&&R.split(z+1)}var L=R.children.head instanceof m.default?null:R.children.head;U.moveChildren(R,L),U.remove()}this.optimize()}},{key:"enable",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",$)}},{key:"formatAt",value:function($,M,j,W){this.whitelist!=null&&!this.whitelist[j]||(l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"formatAt",this).call(this,$,M,j,W),this.optimize())}},{key:"insertAt",value:function($,M,j){if(!(j!=null&&this.whitelist!=null&&!this.whitelist[M])){if($>=this.length())if(j==null||u.default.query(M,u.default.Scope.BLOCK)==null){var W=u.default.create(this.statics.defaultChild);this.appendChild(W),j==null&&M.endsWith(`
`)&&(M=M.slice(0,-1)),W.insertAt(0,M,j)}else{var U=u.default.create(M,j);this.appendChild(U)}else l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,$,M,j);this.optimize()}}},{key:"insertBefore",value:function($,M){if($.statics.scope===u.default.Scope.INLINE_BLOT){var j=u.default.create(this.statics.defaultChild);j.appendChild($),$=j}l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertBefore",this).call(this,$,M)}},{key:"leaf",value:function($){return this.path($).pop()||[null,-1]}},{key:"line",value:function($){return $===this.length()?this.line($-1):this.descendant(P,$)}},{key:"lines",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,j=function W(U,K,H){var F=[],R=H;return U.children.forEachAt(K,H,function(V,z,L){P(V)?F.push(V):V instanceof u.default.Container&&(F=F.concat(W(V,z,R))),R-=L}),F};return j(this,$,M)}},{key:"optimize",value:function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,$,M),$.length>0&&this.emitter.emit(f.default.events.SCROLL_OPTIMIZE,$,M))}},{key:"path",value:function($){return l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"path",this).call(this,$).slice(1)}},{key:"update",value:function($){if(this.batch!==!0){var M=f.default.sources.USER;typeof $=="string"&&(M=$),Array.isArray($)||($=this.observer.takeRecords()),$.length>0&&this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE,M,$),l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"update",this).call(this,$.concat([])),$.length>0&&this.emitter.emit(f.default.events.SCROLL_UPDATE,M,$)}}}]),_}(u.default.Scroll);k.blotName="scroll",k.className="ql-editor",k.tagName="DIV",k.defaultChild="block",k.allowedChildren=[p.default,h.BlockEmbed,x.default],r.default=k},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},s=function(){function N(q,Y){var G=[],X=!0,Q=!1,Z=void 0;try{for(var ce=q[Symbol.iterator](),ue;!(X=(ue=ce.next()).done)&&(G.push(ue.value),!(Y&&G.length===Y));X=!0);}catch(ye){Q=!0,Z=ye}finally{try{!X&&ce.return&&ce.return()}finally{if(Q)throw Z}}return G}return function(q,Y){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return N(q,Y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function N(q,Y){for(var G=0;G<Y.length;G++){var X=Y[G];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(q,X.key,X)}}return function(q,Y,G){return Y&&N(q.prototype,Y),G&&N(q,G),q}}(),c=i(21),u=E(c),d=i(11),f=E(d),h=i(3),p=E(h),b=i(2),m=E(b),y=i(20),g=E(y),v=i(0),x=E(v),w=i(5),S=E(w),O=i(10),C=E(O),P=i(9),k=E(P);function E(N){return N&&N.__esModule?N:{default:N}}function _(N,q,Y){return q in N?Object.defineProperty(N,q,{value:Y,enumerable:!0,configurable:!0,writable:!0}):N[q]=Y,N}function T(N,q){if(!(N instanceof q))throw new TypeError("Cannot call a class as a function")}function $(N,q){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q&&(typeof q=="object"||typeof q=="function")?q:N}function M(N,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof q);N.prototype=Object.create(q&&q.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(N,q):N.__proto__=q)}var j=(0,C.default)("quill:keyboard"),W=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",U=function(N){M(q,N),l(q,null,[{key:"match",value:function(G,X){return X=A(X),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Q){return!!X[Q]!==G[Q]&&X[Q]!==null})?!1:X.key===(G.which||G.keyCode)}}]);function q(Y,G){T(this,q);var X=$(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,Y,G));return X.bindings={},Object.keys(X.options.bindings).forEach(function(Q){Q==="list autofill"&&Y.scroll.whitelist!=null&&!Y.scroll.whitelist.list||X.options.bindings[Q]&&X.addBinding(X.options.bindings[Q])}),X.addBinding({key:q.keys.ENTER,shiftKey:null},V),X.addBinding({key:q.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(X.addBinding({key:q.keys.BACKSPACE},{collapsed:!0},H),X.addBinding({key:q.keys.DELETE},{collapsed:!0},F)):(X.addBinding({key:q.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},H),X.addBinding({key:q.keys.DELETE},{collapsed:!0,suffix:/^.?$/},F)),X.addBinding({key:q.keys.BACKSPACE},{collapsed:!1},R),X.addBinding({key:q.keys.DELETE},{collapsed:!1},R),X.addBinding({key:q.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},H),X.listen(),X}return l(q,[{key:"addBinding",value:function(G){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Z=A(G);if(Z==null||Z.key==null)return j.warn("Attempted to add invalid keyboard binding",Z);typeof X=="function"&&(X={handler:X}),typeof Q=="function"&&(Q={handler:Q}),Z=(0,p.default)(Z,X,Q),this.bindings[Z.key]=this.bindings[Z.key]||[],this.bindings[Z.key].push(Z)}},{key:"listen",value:function(){var G=this;this.quill.root.addEventListener("keydown",function(X){if(!X.defaultPrevented){var Q=X.which||X.keyCode,Z=(G.bindings[Q]||[]).filter(function(he){return q.match(X,he)});if(Z.length!==0){var ce=G.quill.getSelection();if(!(ce==null||!G.quill.hasFocus())){var ue=G.quill.getLine(ce.index),ye=s(ue,2),de=ye[0],pe=ye[1],J=G.quill.getLeaf(ce.index),oe=s(J,2),te=oe[0],le=oe[1],re=ce.length===0?[te,le]:G.quill.getLeaf(ce.index+ce.length),Ee=s(re,2),Pe=Ee[0],fe=Ee[1],ge=te instanceof x.default.Text?te.value().slice(0,le):"",De=Pe instanceof x.default.Text?Pe.value().slice(fe):"",Me={collapsed:ce.length===0,empty:ce.length===0&&de.length()<=1,format:G.quill.getFormat(ce),offset:pe,prefix:ge,suffix:De},Ie=Z.some(function(he){if(he.collapsed!=null&&he.collapsed!==Me.collapsed||he.empty!=null&&he.empty!==Me.empty||he.offset!=null&&he.offset!==Me.offset)return!1;if(Array.isArray(he.format)){if(he.format.every(function(me){return Me.format[me]==null}))return!1}else if(a(he.format)==="object"&&!Object.keys(he.format).every(function(me){return he.format[me]===!0?Me.format[me]!=null:he.format[me]===!1?Me.format[me]==null:(0,f.default)(he.format[me],Me.format[me])}))return!1;return he.prefix!=null&&!he.prefix.test(Me.prefix)||he.suffix!=null&&!he.suffix.test(Me.suffix)?!1:he.handler.call(G,ce,Me)!==!0});Ie&&X.preventDefault()}}}})}}]),q}(k.default);U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:L("bold"),italic:L("italic"),underline:L("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(q,Y){if(Y.collapsed&&Y.offset!==0)return!0;this.quill.format("indent","+1",S.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(q,Y){if(Y.collapsed&&Y.offset!==0)return!0;this.quill.format("indent","-1",S.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(q,Y){Y.format.indent!=null?this.quill.format("indent","-1",S.default.sources.USER):Y.format.list!=null&&this.quill.format("list",!1,S.default.sources.USER)}},"indent code-block":z(!0),"outdent code-block":z(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(q){this.quill.deleteText(q.index-1,1,S.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(q){this.quill.history.cutoff();var Y=new m.default().retain(q.index).delete(q.length).insert("	");this.quill.updateContents(Y,S.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(q.index+1,S.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(q,Y){this.quill.format("list",!1,S.default.sources.USER),Y.format.indent&&this.quill.format("indent",!1,S.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(q){var Y=this.quill.getLine(q.index),G=s(Y,2),X=G[0],Q=G[1],Z=(0,p.default)({},X.formats(),{list:"checked"}),ce=new m.default().retain(q.index).insert(`
`,Z).retain(X.length()-Q-1).retain(1,{list:"unchecked"});this.quill.updateContents(ce,S.default.sources.USER),this.quill.setSelection(q.index+1,S.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:U.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(q,Y){var G=this.quill.getLine(q.index),X=s(G,2),Q=X[0],Z=X[1],ce=new m.default().retain(q.index).insert(`
`,Y.format).retain(Q.length()-Z-1).retain(1,{header:null});this.quill.updateContents(ce,S.default.sources.USER),this.quill.setSelection(q.index+1,S.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(q,Y){var G=Y.prefix.length,X=this.quill.getLine(q.index),Q=s(X,2),Z=Q[0],ce=Q[1];if(ce>G)return!0;var ue=void 0;switch(Y.prefix.trim()){case"[]":case"[ ]":ue="unchecked";break;case"[x]":ue="checked";break;case"-":case"*":ue="bullet";break;default:ue="ordered"}this.quill.insertText(q.index," ",S.default.sources.USER),this.quill.history.cutoff();var ye=new m.default().retain(q.index-ce).delete(G+1).retain(Z.length()-2-ce).retain(1,{list:ue});this.quill.updateContents(ye,S.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(q.index-G,S.default.sources.SILENT)}},"code exit":{key:U.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(q){var Y=this.quill.getLine(q.index),G=s(Y,2),X=G[0],Q=G[1],Z=new m.default().retain(q.index+X.length()-Q-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Z,S.default.sources.USER)}},"embed left":K(U.keys.LEFT,!1),"embed left shift":K(U.keys.LEFT,!0),"embed right":K(U.keys.RIGHT,!1),"embed right shift":K(U.keys.RIGHT,!0)}};function K(N,q){var Y,G=N===U.keys.LEFT?"prefix":"suffix";return Y={key:N,shiftKey:q,altKey:null},_(Y,G,/^$/),_(Y,"handler",function(Q){var Z=Q.index;N===U.keys.RIGHT&&(Z+=Q.length+1);var ce=this.quill.getLeaf(Z),ue=s(ce,1),ye=ue[0];return ye instanceof x.default.Embed?(N===U.keys.LEFT?q?this.quill.setSelection(Q.index-1,Q.length+1,S.default.sources.USER):this.quill.setSelection(Q.index-1,S.default.sources.USER):q?this.quill.setSelection(Q.index,Q.length+1,S.default.sources.USER):this.quill.setSelection(Q.index+Q.length+1,S.default.sources.USER),!1):!0}),Y}function H(N,q){if(!(N.index===0||this.quill.getLength()<=1)){var Y=this.quill.getLine(N.index),G=s(Y,1),X=G[0],Q={};if(q.offset===0){var Z=this.quill.getLine(N.index-1),ce=s(Z,1),ue=ce[0];if(ue!=null&&ue.length()>1){var ye=X.formats(),de=this.quill.getFormat(N.index-1,1);Q=g.default.attributes.diff(ye,de)||{}}}var pe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(q.prefix)?2:1;this.quill.deleteText(N.index-pe,pe,S.default.sources.USER),Object.keys(Q).length>0&&this.quill.formatLine(N.index-pe,pe,Q,S.default.sources.USER),this.quill.focus()}}function F(N,q){var Y=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(q.suffix)?2:1;if(!(N.index>=this.quill.getLength()-Y)){var G={},X=0,Q=this.quill.getLine(N.index),Z=s(Q,1),ce=Z[0];if(q.offset>=ce.length()-1){var ue=this.quill.getLine(N.index+1),ye=s(ue,1),de=ye[0];if(de){var pe=ce.formats(),J=this.quill.getFormat(N.index,1);G=g.default.attributes.diff(pe,J)||{},X=de.length()}}this.quill.deleteText(N.index,Y,S.default.sources.USER),Object.keys(G).length>0&&this.quill.formatLine(N.index+X-1,Y,G,S.default.sources.USER)}}function R(N){var q=this.quill.getLines(N),Y={};if(q.length>1){var G=q[0].formats(),X=q[q.length-1].formats();Y=g.default.attributes.diff(X,G)||{}}this.quill.deleteText(N,S.default.sources.USER),Object.keys(Y).length>0&&this.quill.formatLine(N.index,1,Y,S.default.sources.USER),this.quill.setSelection(N.index,S.default.sources.SILENT),this.quill.focus()}function V(N,q){var Y=this;N.length>0&&this.quill.scroll.deleteAt(N.index,N.length);var G=Object.keys(q.format).reduce(function(X,Q){return x.default.query(Q,x.default.Scope.BLOCK)&&!Array.isArray(q.format[Q])&&(X[Q]=q.format[Q]),X},{});this.quill.insertText(N.index,`
`,G,S.default.sources.USER),this.quill.setSelection(N.index+1,S.default.sources.SILENT),this.quill.focus(),Object.keys(q.format).forEach(function(X){G[X]==null&&(Array.isArray(q.format[X])||X!=="link"&&Y.quill.format(X,q.format[X],S.default.sources.USER))})}function z(N){return{key:U.keys.TAB,shiftKey:!N,format:{"code-block":!0},handler:function(Y){var G=x.default.query("code-block"),X=Y.index,Q=Y.length,Z=this.quill.scroll.descendant(G,X),ce=s(Z,2),ue=ce[0],ye=ce[1];if(ue!=null){var de=this.quill.getIndex(ue),pe=ue.newlineIndex(ye,!0)+1,J=ue.newlineIndex(de+ye+Q),oe=ue.domNode.textContent.slice(pe,J).split(`
`);ye=0,oe.forEach(function(te,le){N?(ue.insertAt(pe+ye,G.TAB),ye+=G.TAB.length,le===0?X+=G.TAB.length:Q+=G.TAB.length):te.startsWith(G.TAB)&&(ue.deleteAt(pe+ye,G.TAB.length),ye-=G.TAB.length,le===0?X-=G.TAB.length:Q-=G.TAB.length),ye+=te.length+1}),this.quill.update(S.default.sources.USER),this.quill.setSelection(X,Q,S.default.sources.SILENT)}}}}function L(N){return{key:N[0].toUpperCase(),shortKey:!0,handler:function(Y,G){this.quill.format(N,!G.format[N],S.default.sources.USER)}}}function A(N){if(typeof N=="string"||typeof N=="number")return A({key:N});if((typeof N>"u"?"undefined":a(N))==="object"&&(N=(0,u.default)(N,!1)),typeof N.key=="string")if(U.keys[N.key.toUpperCase()]!=null)N.key=U.keys[N.key.toUpperCase()];else if(N.key.length===1)N.key=N.key.toUpperCase().charCodeAt(0);else return null;return N.shortKey&&(N[W]=N.shortKey,delete N.shortKey),N}r.default=U,r.SHORTKEY=W},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function g(v,x){var w=[],S=!0,O=!1,C=void 0;try{for(var P=v[Symbol.iterator](),k;!(S=(k=P.next()).done)&&(w.push(k.value),!(x&&w.length===x));S=!0);}catch(E){O=!0,C=E}finally{try{!S&&P.return&&P.return()}finally{if(O)throw C}}return w}return function(v,x){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return g(v,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function g(v,x,w){v===null&&(v=Function.prototype);var S=Object.getOwnPropertyDescriptor(v,x);if(S===void 0){var O=Object.getPrototypeOf(v);return O===null?void 0:g(O,x,w)}else{if("value"in S)return S.value;var C=S.get;return C===void 0?void 0:C.call(w)}},l=function(){function g(v,x){for(var w=0;w<x.length;w++){var S=x[w];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,S.key,S)}}return function(v,x,w){return x&&g(v.prototype,x),w&&g(v,w),v}}(),c=i(0),u=h(c),d=i(7),f=h(d);function h(g){return g&&g.__esModule?g:{default:g}}function p(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function b(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function m(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var y=function(g){m(v,g),l(v,null,[{key:"value",value:function(){}}]);function v(x,w){p(this,v);var S=b(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,x));return S.selection=w,S.textNode=document.createTextNode(v.CONTENTS),S.domNode.appendChild(S.textNode),S._length=0,S}return l(v,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(w,S){if(this._length!==0)return s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,w,S);for(var O=this,C=0;O!=null&&O.statics.scope!==u.default.Scope.BLOCK_BLOT;)C+=O.offset(O.parent),O=O.parent;O!=null&&(this._length=v.CONTENTS.length,O.optimize(),O.formatAt(C,v.CONTENTS.length,w,S),this._length=0)}},{key:"index",value:function(w,S){return w===this.textNode?0:s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"index",this).call(this,w,S)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var w=this.textNode,S=this.selection.getNativeRange(),O=void 0,C=void 0,P=void 0;if(S!=null&&S.start.node===w&&S.end.node===w){var k=[w,S.start.offset,S.end.offset];O=k[0],C=k[1],P=k[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==v.CONTENTS){var E=this.textNode.data.split(v.CONTENTS).join("");this.next instanceof f.default?(O=this.next.domNode,this.next.insertAt(0,E),this.textNode.data=v.CONTENTS):(this.textNode.data=E,this.parent.insertBefore(u.default.create(this.textNode),this),this.textNode=document.createTextNode(v.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),C!=null){var _=[C,P].map(function($){return Math.max(0,Math.min(O.data.length,$-1))}),T=a(_,2);return C=T[0],P=T[1],{startNode:O,startOffset:C,endNode:O,endOffset:P}}}}},{key:"update",value:function(w,S){var O=this;if(w.some(function(P){return P.type==="characterData"&&P.target===O.textNode})){var C=this.restore();C&&(S.range=C)}}},{key:"value",value:function(){return""}}]),v}(u.default.Embed);y.blotName="cursor",y.className="ql-cursor",y.tagName="span",y.CONTENTS="\uFEFF",r.default=y},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(0),s=u(a),l=i(4),c=u(l);function u(b){return b&&b.__esModule?b:{default:b}}function d(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function f(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function h(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var p=function(b){h(m,b);function m(){return d(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(s.default.Container);p.allowedChildren=[c.default,l.BlockEmbed,p],r.default=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ColorStyle=r.ColorClass=r.ColorAttributor=void 0;var a=function(){function y(g,v){for(var x=0;x<v.length;x++){var w=v[x];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}return function(g,v,x){return v&&y(g.prototype,v),x&&y(g,x),g}}(),s=function y(g,v,x){g===null&&(g=Function.prototype);var w=Object.getOwnPropertyDescriptor(g,v);if(w===void 0){var S=Object.getPrototypeOf(g);return S===null?void 0:y(S,v,x)}else{if("value"in w)return w.value;var O=w.get;return O===void 0?void 0:O.call(x)}},l=i(0),c=u(l);function u(y){return y&&y.__esModule?y:{default:y}}function d(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function f(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function h(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var p=function(y){h(g,y);function g(){return d(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,[{key:"value",value:function(x){var w=s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,x);return w.startsWith("rgb(")?(w=w.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+w.split(",").map(function(S){return("00"+parseInt(S).toString(16)).slice(-2)}).join("")):w}}]),g}(c.default.Attributor.Style),b=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),m=new p("color","color",{scope:c.default.Scope.INLINE});r.ColorAttributor=p,r.ColorClass=b,r.ColorStyle=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.sanitize=r.default=void 0;var a=function(){function m(y,g){for(var v=0;v<g.length;v++){var x=g[v];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,g,v){return g&&m(y.prototype,g),v&&m(y,v),y}}(),s=function m(y,g,v){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,g);if(x===void 0){var w=Object.getPrototypeOf(y);return w===null?void 0:m(w,g,v)}else{if("value"in x)return x.value;var S=x.get;return S===void 0?void 0:S.call(v)}},l=i(6),c=u(l);function u(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function f(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function h(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var p=function(m){h(y,m);function y(){return d(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"format",value:function(v,x){if(v!==this.statics.blotName||!x)return s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,v,x);x=this.constructor.sanitize(x),this.domNode.setAttribute("href",x)}}],[{key:"create",value:function(v){var x=s(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,v);return v=this.sanitize(v),x.setAttribute("href",v),x.setAttribute("rel","noopener noreferrer"),x.setAttribute("target","_blank"),x}},{key:"formats",value:function(v){return v.getAttribute("href")}},{key:"sanitize",value:function(v){return b(v,this.PROTOCOL_WHITELIST)?v:this.SANITIZED_URL}}]),y}(c.default);p.blotName="link",p.tagName="A",p.SANITIZED_URL="about:blank",p.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function b(m,y){var g=document.createElement("a");g.href=m;var v=g.href.slice(0,g.href.indexOf(":"));return y.indexOf(v)>-1}r.default=p,r.sanitize=b},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},s=function(){function y(g,v){for(var x=0;x<v.length;x++){var w=v[x];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}return function(g,v,x){return v&&y(g.prototype,v),x&&y(g,x),g}}(),l=i(23),c=f(l),u=i(107),d=f(u);function f(y){return y&&y.__esModule?y:{default:y}}function h(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}var p=0;function b(y,g){y.setAttribute(g,y.getAttribute(g)!=="true")}var m=function(){function y(g){var v=this;h(this,y),this.select=g,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){v.togglePicker()}),this.label.addEventListener("keydown",function(x){switch(x.keyCode){case c.default.keys.ENTER:v.togglePicker();break;case c.default.keys.ESCAPE:v.escape(),x.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return s(y,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),b(this.label,"aria-expanded"),b(this.options,"aria-hidden")}},{key:"buildItem",value:function(v){var x=this,w=document.createElement("span");return w.tabIndex="0",w.setAttribute("role","button"),w.classList.add("ql-picker-item"),v.hasAttribute("value")&&w.setAttribute("data-value",v.getAttribute("value")),v.textContent&&w.setAttribute("data-label",v.textContent),w.addEventListener("click",function(){x.selectItem(w,!0)}),w.addEventListener("keydown",function(S){switch(S.keyCode){case c.default.keys.ENTER:x.selectItem(w,!0),S.preventDefault();break;case c.default.keys.ESCAPE:x.escape(),S.preventDefault();break}}),w}},{key:"buildLabel",value:function(){var v=document.createElement("span");return v.classList.add("ql-picker-label"),v.innerHTML=d.default,v.tabIndex="0",v.setAttribute("role","button"),v.setAttribute("aria-expanded","false"),this.container.appendChild(v),v}},{key:"buildOptions",value:function(){var v=this,x=document.createElement("span");x.classList.add("ql-picker-options"),x.setAttribute("aria-hidden","true"),x.tabIndex="-1",x.id="ql-picker-options-"+p,p+=1,this.label.setAttribute("aria-controls",x.id),this.options=x,[].slice.call(this.select.options).forEach(function(w){var S=v.buildItem(w);x.appendChild(S),w.selected===!0&&v.selectItem(S)}),this.container.appendChild(x)}},{key:"buildPicker",value:function(){var v=this;[].slice.call(this.select.attributes).forEach(function(x){v.container.setAttribute(x.name,x.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var v=this;this.close(),setTimeout(function(){return v.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(v){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=this.container.querySelector(".ql-selected");if(v!==w&&(w!=null&&w.classList.remove("ql-selected"),v!=null&&(v.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(v.parentNode.children,v),v.hasAttribute("data-value")?this.label.setAttribute("data-value",v.getAttribute("data-value")):this.label.removeAttribute("data-value"),v.hasAttribute("data-label")?this.label.setAttribute("data-label",v.getAttribute("data-label")):this.label.removeAttribute("data-label"),x))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":a(Event))==="object"){var S=document.createEvent("Event");S.initEvent("change",!0,!0),this.select.dispatchEvent(S)}this.close()}}},{key:"update",value:function(){var v=void 0;if(this.select.selectedIndex>-1){var x=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];v=this.select.options[this.select.selectedIndex],this.selectItem(x)}else this.selectItem(null);var w=v!=null&&v!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",w)}}]),y}();r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(0),s=j(a),l=i(5),c=j(l),u=i(4),d=j(u),f=i(16),h=j(f),p=i(25),b=j(p),m=i(24),y=j(m),g=i(35),v=j(g),x=i(6),w=j(x),S=i(22),O=j(S),C=i(7),P=j(C),k=i(55),E=j(k),_=i(42),T=j(_),$=i(23),M=j($);function j(W){return W&&W.__esModule?W:{default:W}}c.default.register({"blots/block":d.default,"blots/block/embed":u.BlockEmbed,"blots/break":h.default,"blots/container":b.default,"blots/cursor":y.default,"blots/embed":v.default,"blots/inline":w.default,"blots/scroll":O.default,"blots/text":P.default,"modules/clipboard":E.default,"modules/history":T.default,"modules/keyboard":M.default}),s.default.register(d.default,h.default,y.default,w.default,O.default,P.default),r.default=c.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(1),s=function(){function l(c){this.domNode=c,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(l.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),l.create=function(c){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var u;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?u=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?u=document.createElement(c):u=document.createElement(this.tagName[0])):u=document.createElement(this.tagName),this.className&&u.classList.add(this.className),u},l.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},l.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return a.create(c)},l.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},l.prototype.deleteAt=function(c,u){var d=this.isolate(c,u);d.remove()},l.prototype.formatAt=function(c,u,d,f){var h=this.isolate(c,u);if(a.query(d,a.Scope.BLOT)!=null&&f)h.wrap(d,f);else if(a.query(d,a.Scope.ATTRIBUTE)!=null){var p=a.create(this.statics.scope);h.wrap(p),p.format(d,f)}},l.prototype.insertAt=function(c,u,d){var f=d==null?a.create("text",u):a.create(u,d),h=this.split(c);this.parent.insertBefore(f,h)},l.prototype.insertInto=function(c,u){u===void 0&&(u=null),this.parent!=null&&this.parent.children.remove(this);var d=null;c.children.insertBefore(this,u),u!=null&&(d=u.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=d)&&c.domNode.insertBefore(this.domNode,d),this.parent=c,this.attach()},l.prototype.isolate=function(c,u){var d=this.split(c);return d.split(u),d},l.prototype.length=function(){return 1},l.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},l.prototype.optimize=function(c){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},l.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},l.prototype.replace=function(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},l.prototype.replaceWith=function(c,u){var d=typeof c=="string"?a.create(c,u):c;return d.replace(this),d},l.prototype.split=function(c,u){return c===0?this:this.next},l.prototype.update=function(c,u){},l.prototype.wrap=function(c,u){var d=typeof c=="string"?a.create(c,u):c;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},l.blotName="abstract",l}();r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(12),s=i(32),l=i(33),c=i(1),u=function(){function d(f){this.attributes={},this.domNode=f,this.build()}return d.prototype.attribute=function(f,h){h?f.add(this.domNode,h)&&(f.value(this.domNode)!=null?this.attributes[f.attrName]=f:delete this.attributes[f.attrName]):(f.remove(this.domNode),delete this.attributes[f.attrName])},d.prototype.build=function(){var f=this;this.attributes={};var h=a.default.keys(this.domNode),p=s.default.keys(this.domNode),b=l.default.keys(this.domNode);h.concat(p).concat(b).forEach(function(m){var y=c.query(m,c.Scope.ATTRIBUTE);y instanceof a.default&&(f.attributes[y.attrName]=y)})},d.prototype.copy=function(f){var h=this;Object.keys(this.attributes).forEach(function(p){var b=h.attributes[p].value(h.domNode);f.format(p,b)})},d.prototype.move=function(f){var h=this;this.copy(f),Object.keys(this.attributes).forEach(function(p){h.attributes[p].remove(h.domNode)}),this.attributes={}},d.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(h,p){return h[p]=f.attributes[p].value(f.domNode),h},{})},d}();r.default=u},function(n,r,i){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)f.hasOwnProperty(h)&&(d[h]=f[h])};return function(d,f){u(d,f);function h(){this.constructor=d}d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(12);function l(u,d){var f=u.getAttribute("class")||"";return f.split(/\s+/).filter(function(h){return h.indexOf(d+"-")===0})}var c=function(u){a(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(h){return h.split("-").slice(0,-1).join("-")})},d.prototype.add=function(f,h){return this.canAdd(f,h)?(this.remove(f),f.classList.add(this.keyName+"-"+h),!0):!1},d.prototype.remove=function(f){var h=l(f,this.keyName);h.forEach(function(p){f.classList.remove(p)}),f.classList.length===0&&f.removeAttribute("class")},d.prototype.value=function(f){var h=l(f,this.keyName)[0]||"",p=h.slice(this.keyName.length+1);return this.canAdd(f,p)?p:""},d}(s.default);r.default=c},function(n,r,i){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)f.hasOwnProperty(h)&&(d[h]=f[h])};return function(d,f){u(d,f);function h(){this.constructor=d}d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(12);function l(u){var d=u.split("-"),f=d.slice(1).map(function(h){return h[0].toUpperCase()+h.slice(1)}).join("");return d[0]+f}var c=function(u){a(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(h){var p=h.split(":");return p[0].trim()})},d.prototype.add=function(f,h){return this.canAdd(f,h)?(f.style[l(this.keyName)]=h,!0):!1},d.prototype.remove=function(f){f.style[l(this.keyName)]="",f.getAttribute("style")||f.removeAttribute("style")},d.prototype.value=function(f){var h=f.style[l(this.keyName)];return this.canAdd(f,h)?h:""},d}(s.default);r.default=c},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function c(u,d){for(var f=0;f<d.length;f++){var h=d[f];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(u,h.key,h)}}return function(u,d,f){return d&&c(u.prototype,d),f&&c(u,f),u}}();function s(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}var l=function(){function c(u,d){s(this,c),this.quill=u,this.options=d,this.modules={}}return a(c,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(f){d.modules[f]==null&&d.addModule(f)})}},{key:"addModule",value:function(d){var f=this.quill.constructor.import("modules/"+d);return this.modules[d]=new f(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),c}();l.DEFAULTS={modules:{}},l.themes={default:l},r.default=l},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function g(v,x){for(var w=0;w<x.length;w++){var S=x[w];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,S.key,S)}}return function(v,x,w){return x&&g(v.prototype,x),w&&g(v,w),v}}(),s=function g(v,x,w){v===null&&(v=Function.prototype);var S=Object.getOwnPropertyDescriptor(v,x);if(S===void 0){var O=Object.getPrototypeOf(v);return O===null?void 0:g(O,x,w)}else{if("value"in S)return S.value;var C=S.get;return C===void 0?void 0:C.call(w)}},l=i(0),c=f(l),u=i(7),d=f(u);function f(g){return g&&g.__esModule?g:{default:g}}function h(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function p(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function b(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var m="\uFEFF",y=function(g){b(v,g);function v(x){h(this,v);var w=p(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,x));return w.contentNode=document.createElement("span"),w.contentNode.setAttribute("contenteditable",!1),[].slice.call(w.domNode.childNodes).forEach(function(S){w.contentNode.appendChild(S)}),w.leftGuard=document.createTextNode(m),w.rightGuard=document.createTextNode(m),w.domNode.appendChild(w.leftGuard),w.domNode.appendChild(w.contentNode),w.domNode.appendChild(w.rightGuard),w}return a(v,[{key:"index",value:function(w,S){return w===this.leftGuard?0:w===this.rightGuard?1:s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"index",this).call(this,w,S)}},{key:"restore",value:function(w){var S=void 0,O=void 0,C=w.data.split(m).join("");if(w===this.leftGuard)if(this.prev instanceof d.default){var P=this.prev.length();this.prev.insertAt(P,C),S={startNode:this.prev.domNode,startOffset:P+C.length}}else O=document.createTextNode(C),this.parent.insertBefore(c.default.create(O),this),S={startNode:O,startOffset:C.length};else w===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,C),S={startNode:this.next.domNode,startOffset:C.length}):(O=document.createTextNode(C),this.parent.insertBefore(c.default.create(O),this.next),S={startNode:O,startOffset:C.length}));return w.data=m,S}},{key:"update",value:function(w,S){var O=this;w.forEach(function(C){if(C.type==="characterData"&&(C.target===O.leftGuard||C.target===O.rightGuard)){var P=O.restore(C.target);P&&(S.range=P)}})}}]),v}(c.default.Embed);r.default=y},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AlignStyle=r.AlignClass=r.AlignAttribute=void 0;var a=i(0),s=l(a);function l(h){return h&&h.__esModule?h:{default:h}}var c={scope:s.default.Scope.BLOCK,whitelist:["right","center","justify"]},u=new s.default.Attributor.Attribute("align","align",c),d=new s.default.Attributor.Class("align","ql-align",c),f=new s.default.Attributor.Style("align","text-align",c);r.AlignAttribute=u,r.AlignClass=d,r.AlignStyle=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BackgroundStyle=r.BackgroundClass=void 0;var a=i(0),s=c(a),l=i(26);function c(f){return f&&f.__esModule?f:{default:f}}var u=new s.default.Attributor.Class("background","ql-bg",{scope:s.default.Scope.INLINE}),d=new l.ColorAttributor("background","background-color",{scope:s.default.Scope.INLINE});r.BackgroundClass=u,r.BackgroundStyle=d},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.DirectionStyle=r.DirectionClass=r.DirectionAttribute=void 0;var a=i(0),s=l(a);function l(h){return h&&h.__esModule?h:{default:h}}var c={scope:s.default.Scope.BLOCK,whitelist:["rtl"]},u=new s.default.Attributor.Attribute("direction","dir",c),d=new s.default.Attributor.Class("direction","ql-direction",c),f=new s.default.Attributor.Style("direction","direction",c);r.DirectionAttribute=u,r.DirectionClass=d,r.DirectionStyle=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.FontClass=r.FontStyle=void 0;var a=function(){function g(v,x){for(var w=0;w<x.length;w++){var S=x[w];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(v,S.key,S)}}return function(v,x,w){return x&&g(v.prototype,x),w&&g(v,w),v}}(),s=function g(v,x,w){v===null&&(v=Function.prototype);var S=Object.getOwnPropertyDescriptor(v,x);if(S===void 0){var O=Object.getPrototypeOf(v);return O===null?void 0:g(O,x,w)}else{if("value"in S)return S.value;var C=S.get;return C===void 0?void 0:C.call(w)}},l=i(0),c=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function d(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function f(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function h(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var p={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},b=new c.default.Attributor.Class("font","ql-font",p),m=function(g){h(v,g);function v(){return d(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"value",value:function(w){return s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"value",this).call(this,w).replace(/["']/g,"")}}]),v}(c.default.Attributor.Style),y=new m("font","font-family",p);r.FontStyle=y,r.FontClass=b},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SizeStyle=r.SizeClass=void 0;var a=i(0),s=l(a);function l(d){return d&&d.__esModule?d:{default:d}}var c=new s.default.Attributor.Class("size","ql-size",{scope:s.default.Scope.INLINE,whitelist:["small","large","huge"]}),u=new s.default.Attributor.Style("size","font-size",{scope:s.default.Scope.INLINE,whitelist:["10px","18px","32px"]});r.SizeClass=c,r.SizeStyle=u},function(n,r,i){n.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.getLastChangeIndex=r.default=void 0;var a=function(){function x(w,S){for(var O=0;O<S.length;O++){var C=S[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(w,C.key,C)}}return function(w,S,O){return S&&x(w.prototype,S),O&&x(w,O),w}}(),s=i(0),l=h(s),c=i(5),u=h(c),d=i(9),f=h(d);function h(x){return x&&x.__esModule?x:{default:x}}function p(x,w){if(!(x instanceof w))throw new TypeError("Cannot call a class as a function")}function b(x,w){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:x}function m(x,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);x.prototype=Object.create(w&&w.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(x,w):x.__proto__=w)}var y=function(x){m(w,x);function w(S,O){p(this,w);var C=b(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,S,O));return C.lastRecorded=0,C.ignoreChange=!1,C.clear(),C.quill.on(u.default.events.EDITOR_CHANGE,function(P,k,E,_){P!==u.default.events.TEXT_CHANGE||C.ignoreChange||(!C.options.userOnly||_===u.default.sources.USER?C.record(k,E):C.transform(k))}),C.quill.keyboard.addBinding({key:"Z",shortKey:!0},C.undo.bind(C)),C.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},C.redo.bind(C)),/Win/i.test(navigator.platform)&&C.quill.keyboard.addBinding({key:"Y",shortKey:!0},C.redo.bind(C)),C}return a(w,[{key:"change",value:function(O,C){if(this.stack[O].length!==0){var P=this.stack[O].pop();this.stack[C].push(P),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(P[O],u.default.sources.USER),this.ignoreChange=!1;var k=v(P[O]);this.quill.setSelection(k)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(O,C){if(O.ops.length!==0){this.stack.redo=[];var P=this.quill.getContents().diff(C),k=Date.now();if(this.lastRecorded+this.options.delay>k&&this.stack.undo.length>0){var E=this.stack.undo.pop();P=P.compose(E.undo),O=E.redo.compose(O)}else this.lastRecorded=k;this.stack.undo.push({redo:O,undo:P}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(O){this.stack.undo.forEach(function(C){C.undo=O.transform(C.undo,!0),C.redo=O.transform(C.redo,!0)}),this.stack.redo.forEach(function(C){C.undo=O.transform(C.undo,!0),C.redo=O.transform(C.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),w}(f.default);y.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function g(x){var w=x.ops[x.ops.length-1];return w==null?!1:w.insert!=null?typeof w.insert=="string"&&w.insert.endsWith(`
`):w.attributes!=null?Object.keys(w.attributes).some(function(S){return l.default.query(S,l.default.Scope.BLOCK)!=null}):!1}function v(x){var w=x.reduce(function(O,C){return O+=C.delete||0,O},0),S=x.length()-w;return g(x)&&(S-=1),S}r.default=y,r.getLastChangeIndex=v},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var a=function(){function V(z,L){for(var A=0;A<L.length;A++){var N=L[A];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(z,N.key,N)}}return function(z,L,A){return L&&V(z.prototype,L),A&&V(z,A),z}}(),s=function V(z,L,A){z===null&&(z=Function.prototype);var N=Object.getOwnPropertyDescriptor(z,L);if(N===void 0){var q=Object.getPrototypeOf(z);return q===null?void 0:V(q,L,A)}else{if("value"in N)return N.value;var Y=N.get;return Y===void 0?void 0:Y.call(A)}},l=i(3),c=k(l),u=i(2),d=k(u),f=i(8),h=k(f),p=i(23),b=k(p),m=i(34),y=k(m),g=i(59),v=k(g),x=i(60),w=k(x),S=i(28),O=k(S),C=i(61),P=k(C);function k(V){return V&&V.__esModule?V:{default:V}}function E(V,z){if(!(V instanceof z))throw new TypeError("Cannot call a class as a function")}function _(V,z){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:V}function T(V,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);V.prototype=Object.create(z&&z.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(V,z):V.__proto__=z)}var $=[!1,"center","right","justify"],M=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],j=[!1,"serif","monospace"],W=["1","2","3",!1],U=["small",!1,"large","huge"],K=function(V){T(z,V);function z(L,A){E(this,z);var N=_(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,L,A)),q=function Y(G){if(!document.body.contains(L.root))return document.body.removeEventListener("click",Y);N.tooltip!=null&&!N.tooltip.root.contains(G.target)&&document.activeElement!==N.tooltip.textbox&&!N.quill.hasFocus()&&N.tooltip.hide(),N.pickers!=null&&N.pickers.forEach(function(X){X.container.contains(G.target)||X.close()})};return L.emitter.listenDOM("click",document.body,q),N}return a(z,[{key:"addModule",value:function(A){var N=s(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"addModule",this).call(this,A);return A==="toolbar"&&this.extendToolbar(N),N}},{key:"buildButtons",value:function(A,N){A.forEach(function(q){var Y=q.getAttribute("class")||"";Y.split(/\s+/).forEach(function(G){if(G.startsWith("ql-")&&(G=G.slice(3),N[G]!=null))if(G==="direction")q.innerHTML=N[G][""]+N[G].rtl;else if(typeof N[G]=="string")q.innerHTML=N[G];else{var X=q.value||"";X!=null&&N[G][X]&&(q.innerHTML=N[G][X])}})})}},{key:"buildPickers",value:function(A,N){var q=this;this.pickers=A.map(function(G){if(G.classList.contains("ql-align"))return G.querySelector("option")==null&&R(G,$),new w.default(G,N.align);if(G.classList.contains("ql-background")||G.classList.contains("ql-color")){var X=G.classList.contains("ql-background")?"background":"color";return G.querySelector("option")==null&&R(G,M,X==="background"?"#ffffff":"#000000"),new v.default(G,N[X])}else return G.querySelector("option")==null&&(G.classList.contains("ql-font")?R(G,j):G.classList.contains("ql-header")?R(G,W):G.classList.contains("ql-size")&&R(G,U)),new O.default(G)});var Y=function(){q.pickers.forEach(function(X){X.update()})};this.quill.on(h.default.events.EDITOR_CHANGE,Y)}}]),z}(y.default);K.DEFAULTS=(0,c.default)(!0,{},y.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var z=this,L=this.container.querySelector("input.ql-image[type=file]");L==null&&(L=document.createElement("input"),L.setAttribute("type","file"),L.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),L.classList.add("ql-image"),L.addEventListener("change",function(){if(L.files!=null&&L.files[0]!=null){var A=new FileReader;A.onload=function(N){var q=z.quill.getSelection(!0);z.quill.updateContents(new d.default().retain(q.index).delete(q.length).insert({image:N.target.result}),h.default.sources.USER),z.quill.setSelection(q.index+1,h.default.sources.SILENT),L.value=""},A.readAsDataURL(L.files[0])}}),this.container.appendChild(L)),L.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var H=function(V){T(z,V);function z(L,A){E(this,z);var N=_(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,L,A));return N.textbox=N.root.querySelector('input[type="text"]'),N.listen(),N}return a(z,[{key:"listen",value:function(){var A=this;this.textbox.addEventListener("keydown",function(N){b.default.match(N,"enter")?(A.save(),N.preventDefault()):b.default.match(N,"escape")&&(A.cancel(),N.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),N!=null?this.textbox.value=N:A!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+A)||""),this.root.setAttribute("data-mode",A)}},{key:"restoreFocus",value:function(){var A=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=A}},{key:"save",value:function(){var A=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var N=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",A,h.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",A,h.default.sources.USER)),this.quill.root.scrollTop=N;break}case"video":A=F(A);case"formula":{if(!A)break;var q=this.quill.getSelection(!0);if(q!=null){var Y=q.index+q.length;this.quill.insertEmbed(Y,this.root.getAttribute("data-mode"),A,h.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(Y+1," ",h.default.sources.USER),this.quill.setSelection(Y+2,h.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),z}(P.default);function F(V){var z=V.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||V.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return z?(z[1]||"https")+"://www.youtube.com/embed/"+z[2]+"?showinfo=0":(z=V.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(z[1]||"https")+"://player.vimeo.com/video/"+z[2]+"/":V}function R(V,z){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;z.forEach(function(A){var N=document.createElement("option");A===L?N.setAttribute("selected","selected"):N.setAttribute("value",A),V.appendChild(N)})}r.BaseTooltip=H,r.default=K},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function s(){this.head=this.tail=null,this.length=0}return s.prototype.append=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];this.insertBefore(l[0],null),l.length>1&&this.append.apply(this,l.slice(1))},s.prototype.contains=function(l){for(var c,u=this.iterator();c=u();)if(c===l)return!0;return!1},s.prototype.insertBefore=function(l,c){l&&(l.next=c,c!=null?(l.prev=c.prev,c.prev!=null&&(c.prev.next=l),c.prev=l,c===this.head&&(this.head=l)):this.tail!=null?(this.tail.next=l,l.prev=this.tail,this.tail=l):(l.prev=null,this.head=this.tail=l),this.length+=1)},s.prototype.offset=function(l){for(var c=0,u=this.head;u!=null;){if(u===l)return c;c+=u.length(),u=u.next}return-1},s.prototype.remove=function(l){this.contains(l)&&(l.prev!=null&&(l.prev.next=l.next),l.next!=null&&(l.next.prev=l.prev),l===this.head&&(this.head=l.next),l===this.tail&&(this.tail=l.prev),this.length-=1)},s.prototype.iterator=function(l){return l===void 0&&(l=this.head),function(){var c=l;return l!=null&&(l=l.next),c}},s.prototype.find=function(l,c){c===void 0&&(c=!1);for(var u,d=this.iterator();u=d();){var f=u.length();if(l<f||c&&l===f&&(u.next==null||u.next.length()!==0))return[u,l];l-=f}return[null,0]},s.prototype.forEach=function(l){for(var c,u=this.iterator();c=u();)l(c)},s.prototype.forEachAt=function(l,c,u){if(!(c<=0))for(var d=this.find(l),f=d[0],h=d[1],p,b=l-h,m=this.iterator(f);(p=m())&&b<l+c;){var y=p.length();l>b?u(p,l-b,Math.min(c,b+y-l)):u(p,0,Math.min(y,l+c-b)),b+=y}},s.prototype.map=function(l){return this.reduce(function(c,u){return c.push(l(u)),c},[])},s.prototype.reduce=function(l,c){for(var u,d=this.iterator();u=d();)c=l(c,u);return c},s}();r.default=a},function(n,r,i){var a=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var b in p)p.hasOwnProperty(b)&&(h[b]=p[b])};return function(h,p){f(h,p);function b(){this.constructor=h}h.prototype=p===null?Object.create(p):(b.prototype=p.prototype,new b)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(17),l=i(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=100,d=function(f){a(h,f);function h(p){var b=f.call(this,p)||this;return b.scroll=b,b.observer=new MutationObserver(function(m){b.update(m)}),b.observer.observe(b.domNode,c),b.attach(),b}return h.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},h.prototype.deleteAt=function(p,b){this.update(),p===0&&b===this.length()?this.children.forEach(function(m){m.remove()}):f.prototype.deleteAt.call(this,p,b)},h.prototype.formatAt=function(p,b,m,y){this.update(),f.prototype.formatAt.call(this,p,b,m,y)},h.prototype.insertAt=function(p,b,m){this.update(),f.prototype.insertAt.call(this,p,b,m)},h.prototype.optimize=function(p,b){var m=this;p===void 0&&(p=[]),b===void 0&&(b={}),f.prototype.optimize.call(this,b);for(var y=[].slice.call(this.observer.takeRecords());y.length>0;)p.push(y.pop());for(var g=function(S,O){O===void 0&&(O=!0),!(S==null||S===m)&&S.domNode.parentNode!=null&&(S.domNode[l.DATA_KEY].mutations==null&&(S.domNode[l.DATA_KEY].mutations=[]),O&&g(S.parent))},v=function(S){S.domNode[l.DATA_KEY]==null||S.domNode[l.DATA_KEY].mutations==null||(S instanceof s.default&&S.children.forEach(v),S.optimize(b))},x=p,w=0;x.length>0;w+=1){if(w>=u)throw new Error("[Parchment] Maximum optimize iterations reached");for(x.forEach(function(S){var O=l.find(S.target,!0);O!=null&&(O.domNode===S.target&&(S.type==="childList"?(g(l.find(S.previousSibling,!1)),[].forEach.call(S.addedNodes,function(C){var P=l.find(C,!1);g(P,!1),P instanceof s.default&&P.children.forEach(function(k){g(k,!1)})})):S.type==="attributes"&&g(O.prev)),g(O))}),this.children.forEach(v),x=[].slice.call(this.observer.takeRecords()),y=x.slice();y.length>0;)p.push(y.pop())}},h.prototype.update=function(p,b){var m=this;b===void 0&&(b={}),p=p||this.observer.takeRecords(),p.map(function(y){var g=l.find(y.target,!0);return g==null?null:g.domNode[l.DATA_KEY].mutations==null?(g.domNode[l.DATA_KEY].mutations=[y],g):(g.domNode[l.DATA_KEY].mutations.push(y),null)}).forEach(function(y){y==null||y===m||y.domNode[l.DATA_KEY]==null||y.update(y.domNode[l.DATA_KEY].mutations||[],b)}),this.domNode[l.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,b),this.optimize(p,b)},h.blotName="scroll",h.defaultChild="block",h.scope=l.Scope.BLOCK_BLOT,h.tagName="DIV",h}(s.default);r.default=d},function(n,r,i){var a=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var p in h)h.hasOwnProperty(p)&&(f[p]=h[p])};return function(f,h){d(f,h);function p(){this.constructor=f}f.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(18),l=i(1);function c(d,f){if(Object.keys(d).length!==Object.keys(f).length)return!1;for(var h in d)if(d[h]!==f[h])return!1;return!0}var u=function(d){a(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.formats=function(h){if(h.tagName!==f.tagName)return d.formats.call(this,h)},f.prototype.format=function(h,p){var b=this;h===this.statics.blotName&&!p?(this.children.forEach(function(m){m instanceof s.default||(m=m.wrap(f.blotName,!0)),b.attributes.copy(m)}),this.unwrap()):d.prototype.format.call(this,h,p)},f.prototype.formatAt=function(h,p,b,m){if(this.formats()[b]!=null||l.query(b,l.Scope.ATTRIBUTE)){var y=this.isolate(h,p);y.format(b,m)}else d.prototype.formatAt.call(this,h,p,b,m)},f.prototype.optimize=function(h){d.prototype.optimize.call(this,h);var p=this.formats();if(Object.keys(p).length===0)return this.unwrap();var b=this.next;b instanceof f&&b.prev===this&&c(p,b.formats())&&(b.moveChildren(this),b.remove())},f.blotName="inline",f.scope=l.Scope.INLINE_BLOT,f.tagName="SPAN",f}(s.default);r.default=u},function(n,r,i){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)f.hasOwnProperty(h)&&(d[h]=f[h])};return function(d,f){u(d,f);function h(){this.constructor=d}d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(18),l=i(1),c=function(u){a(d,u);function d(){return u!==null&&u.apply(this,arguments)||this}return d.formats=function(f){var h=l.query(d.blotName).tagName;if(f.tagName!==h)return u.formats.call(this,f)},d.prototype.format=function(f,h){l.query(f,l.Scope.BLOCK)!=null&&(f===this.statics.blotName&&!h?this.replaceWith(d.blotName):u.prototype.format.call(this,f,h))},d.prototype.formatAt=function(f,h,p,b){l.query(p,l.Scope.BLOCK)!=null?this.format(p,b):u.prototype.formatAt.call(this,f,h,p,b)},d.prototype.insertAt=function(f,h,p){if(p==null||l.query(h,l.Scope.INLINE)!=null)u.prototype.insertAt.call(this,f,h,p);else{var b=this.split(f),m=l.create(h,p);b.parent.insertBefore(m,b)}},d.prototype.update=function(f,h){navigator.userAgent.match(/Trident/)?this.build():u.prototype.update.call(this,f,h)},d.blotName="block",d.scope=l.Scope.BLOCK_BLOT,d.tagName="P",d}(s.default);r.default=c},function(n,r,i){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var f in d)d.hasOwnProperty(f)&&(u[f]=d[f])};return function(u,d){c(u,d);function f(){this.constructor=u}u.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(19),l=function(c){a(u,c);function u(){return c!==null&&c.apply(this,arguments)||this}return u.formats=function(d){},u.prototype.format=function(d,f){c.prototype.formatAt.call(this,0,this.length(),d,f)},u.prototype.formatAt=function(d,f,h,p){d===0&&f===this.length()?this.format(h,p):c.prototype.formatAt.call(this,d,f,h,p)},u.prototype.formats=function(){return this.statics.formats(this.domNode)},u}(s.default);r.default=l},function(n,r,i){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)f.hasOwnProperty(h)&&(d[h]=f[h])};return function(d,f){u(d,f);function h(){this.constructor=d}d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(19),l=i(1),c=function(u){a(d,u);function d(f){var h=u.call(this,f)||this;return h.text=h.statics.value(h.domNode),h}return d.create=function(f){return document.createTextNode(f)},d.value=function(f){var h=f.data;return h.normalize&&(h=h.normalize()),h},d.prototype.deleteAt=function(f,h){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+h)},d.prototype.index=function(f,h){return this.domNode===f?h:-1},d.prototype.insertAt=function(f,h,p){p==null?(this.text=this.text.slice(0,f)+h+this.text.slice(f),this.domNode.data=this.text):u.prototype.insertAt.call(this,f,h,p)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(f){u.prototype.optimize.call(this,f),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(f,h){return[this.domNode,f]},d.prototype.split=function(f,h){if(h===void 0&&(h=!1),!h){if(f===0)return this;if(f===this.length())return this.next}var p=l.create(this.domNode.splitText(f));return this.parent.insertBefore(p,this.next),this.text=this.statics.value(this.domNode),p},d.prototype.update=function(f,h){var p=this;f.some(function(b){return b.type==="characterData"&&b.target===p.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=l.Scope.INLINE_BLOT,d}(s.default);r.default=c},function(n,r,i){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(l,c){return arguments.length>1&&!this.contains(l)==!c?c:s.call(this,l)}}String.prototype.startsWith||(String.prototype.startsWith=function(l,c){return c=c||0,this.substr(c,l.length)===l}),String.prototype.endsWith||(String.prototype.endsWith=function(l,c){var u=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>u.length)&&(c=u.length),c-=l.length;var d=u.indexOf(l,c);return d!==-1&&d===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var u=Object(this),d=u.length>>>0,f=arguments[1],h,p=0;p<d;p++)if(h=u[p],c.call(f,h,p,u))return h}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,r){var i=-1,a=1,s=0;function l(w,S,O){if(w==S)return w?[[s,w]]:[];(O<0||w.length<O)&&(O=null);var C=f(w,S),P=w.substring(0,C);w=w.substring(C),S=S.substring(C),C=h(w,S);var k=w.substring(w.length-C);w=w.substring(0,w.length-C),S=S.substring(0,S.length-C);var E=c(w,S);return P&&E.unshift([s,P]),k&&E.push([s,k]),b(E),O!=null&&(E=g(E,O)),E=v(E),E}function c(w,S){var O;if(!w)return[[a,S]];if(!S)return[[i,w]];var C=w.length>S.length?w:S,P=w.length>S.length?S:w,k=C.indexOf(P);if(k!=-1)return O=[[a,C.substring(0,k)],[s,P],[a,C.substring(k+P.length)]],w.length>S.length&&(O[0][0]=O[2][0]=i),O;if(P.length==1)return[[i,w],[a,S]];var E=p(w,S);if(E){var _=E[0],T=E[1],$=E[2],M=E[3],j=E[4],W=l(_,$),U=l(T,M);return W.concat([[s,j]],U)}return u(w,S)}function u(w,S){for(var O=w.length,C=S.length,P=Math.ceil((O+C)/2),k=P,E=2*P,_=new Array(E),T=new Array(E),$=0;$<E;$++)_[$]=-1,T[$]=-1;_[k+1]=0,T[k+1]=0;for(var M=O-C,j=M%2!=0,W=0,U=0,K=0,H=0,F=0;F<P;F++){for(var R=-F+W;R<=F-U;R+=2){var V=k+R,z;R==-F||R!=F&&_[V-1]<_[V+1]?z=_[V+1]:z=_[V-1]+1;for(var L=z-R;z<O&&L<C&&w.charAt(z)==S.charAt(L);)z++,L++;if(_[V]=z,z>O)U+=2;else if(L>C)W+=2;else if(j){var A=k+M-R;if(A>=0&&A<E&&T[A]!=-1){var N=O-T[A];if(z>=N)return d(w,S,z,L)}}}for(var q=-F+K;q<=F-H;q+=2){var A=k+q,N;q==-F||q!=F&&T[A-1]<T[A+1]?N=T[A+1]:N=T[A-1]+1;for(var Y=N-q;N<O&&Y<C&&w.charAt(O-N-1)==S.charAt(C-Y-1);)N++,Y++;if(T[A]=N,N>O)H+=2;else if(Y>C)K+=2;else if(!j){var V=k+M-q;if(V>=0&&V<E&&_[V]!=-1){var z=_[V],L=k+z-V;if(N=O-N,z>=N)return d(w,S,z,L)}}}}return[[i,w],[a,S]]}function d(w,S,O,C){var P=w.substring(0,O),k=S.substring(0,C),E=w.substring(O),_=S.substring(C),T=l(P,k),$=l(E,_);return T.concat($)}function f(w,S){if(!w||!S||w.charAt(0)!=S.charAt(0))return 0;for(var O=0,C=Math.min(w.length,S.length),P=C,k=0;O<P;)w.substring(k,P)==S.substring(k,P)?(O=P,k=O):C=P,P=Math.floor((C-O)/2+O);return P}function h(w,S){if(!w||!S||w.charAt(w.length-1)!=S.charAt(S.length-1))return 0;for(var O=0,C=Math.min(w.length,S.length),P=C,k=0;O<P;)w.substring(w.length-P,w.length-k)==S.substring(S.length-P,S.length-k)?(O=P,k=O):C=P,P=Math.floor((C-O)/2+O);return P}function p(w,S){var O=w.length>S.length?w:S,C=w.length>S.length?S:w;if(O.length<4||C.length*2<O.length)return null;function P(U,K,H){for(var F=U.substring(H,H+Math.floor(U.length/4)),R=-1,V="",z,L,A,N;(R=K.indexOf(F,R+1))!=-1;){var q=f(U.substring(H),K.substring(R)),Y=h(U.substring(0,H),K.substring(0,R));V.length<Y+q&&(V=K.substring(R-Y,R)+K.substring(R,R+q),z=U.substring(0,H-Y),L=U.substring(H+q),A=K.substring(0,R-Y),N=K.substring(R+q))}return V.length*2>=U.length?[z,L,A,N,V]:null}var k=P(O,C,Math.ceil(O.length/4)),E=P(O,C,Math.ceil(O.length/2)),_;if(!k&&!E)return null;E?k?_=k[4].length>E[4].length?k:E:_=E:_=k;var T,$,M,j;w.length>S.length?(T=_[0],$=_[1],M=_[2],j=_[3]):(M=_[0],j=_[1],T=_[2],$=_[3]);var W=_[4];return[T,$,M,j,W]}function b(w){w.push([s,""]);for(var S=0,O=0,C=0,P="",k="",E;S<w.length;)switch(w[S][0]){case a:C++,k+=w[S][1],S++;break;case i:O++,P+=w[S][1],S++;break;case s:O+C>1?(O!==0&&C!==0&&(E=f(k,P),E!==0&&(S-O-C>0&&w[S-O-C-1][0]==s?w[S-O-C-1][1]+=k.substring(0,E):(w.splice(0,0,[s,k.substring(0,E)]),S++),k=k.substring(E),P=P.substring(E)),E=h(k,P),E!==0&&(w[S][1]=k.substring(k.length-E)+w[S][1],k=k.substring(0,k.length-E),P=P.substring(0,P.length-E))),O===0?w.splice(S-C,O+C,[a,k]):C===0?w.splice(S-O,O+C,[i,P]):w.splice(S-O-C,O+C,[i,P],[a,k]),S=S-O-C+(O?1:0)+(C?1:0)+1):S!==0&&w[S-1][0]==s?(w[S-1][1]+=w[S][1],w.splice(S,1)):S++,C=0,O=0,P="",k="";break}w[w.length-1][1]===""&&w.pop();var _=!1;for(S=1;S<w.length-1;)w[S-1][0]==s&&w[S+1][0]==s&&(w[S][1].substring(w[S][1].length-w[S-1][1].length)==w[S-1][1]?(w[S][1]=w[S-1][1]+w[S][1].substring(0,w[S][1].length-w[S-1][1].length),w[S+1][1]=w[S-1][1]+w[S+1][1],w.splice(S-1,1),_=!0):w[S][1].substring(0,w[S+1][1].length)==w[S+1][1]&&(w[S-1][1]+=w[S+1][1],w[S][1]=w[S][1].substring(w[S+1][1].length)+w[S+1][1],w.splice(S+1,1),_=!0)),S++;_&&b(w)}var m=l;m.INSERT=a,m.DELETE=i,m.EQUAL=s,n.exports=m;function y(w,S){if(S===0)return[s,w];for(var O=0,C=0;C<w.length;C++){var P=w[C];if(P[0]===i||P[0]===s){var k=O+P[1].length;if(S===k)return[C+1,w];if(S<k){w=w.slice();var E=S-O,_=[P[0],P[1].slice(0,E)],T=[P[0],P[1].slice(E)];return w.splice(C,1,_,T),[C+1,w]}else O=k}}throw new Error("cursor_pos is out of bounds!")}function g(w,S){var O=y(w,S),C=O[1],P=O[0],k=C[P],E=C[P+1];if(k==null)return w;if(k[0]!==s)return w;if(E!=null&&k[1]+E[1]===E[1]+k[1])return C.splice(P,2,E,k),x(C,P,2);if(E!=null&&E[1].indexOf(k[1])===0){C.splice(P,2,[E[0],k[1]],[0,k[1]]);var _=E[1].slice(k[1].length);return _.length>0&&C.splice(P+2,0,[E[0],_]),x(C,P,3)}else return w}function v(w){for(var S=!1,O=function(E){return E.charCodeAt(0)>=56320&&E.charCodeAt(0)<=57343},C=function(E){return E.charCodeAt(E.length-1)>=55296&&E.charCodeAt(E.length-1)<=56319},P=2;P<w.length;P+=1)w[P-2][0]===s&&C(w[P-2][1])&&w[P-1][0]===i&&O(w[P-1][1])&&w[P][0]===a&&O(w[P][1])&&(S=!0,w[P-1][1]=w[P-2][1].slice(-1)+w[P-1][1],w[P][1]=w[P-2][1].slice(-1)+w[P][1],w[P-2][1]=w[P-2][1].slice(0,-1));if(!S)return w;for(var k=[],P=0;P<w.length;P+=1)w[P][1].length>0&&k.push(w[P]);return k}function x(w,S,O){for(var C=S+O-1;C>=0&&C>=S-1;C--)if(C+1<w.length){var P=w[C],k=w[C+1];P[0]===k[1]&&w.splice(C,2,[P[0],P[1]+k[1]])}return w}},function(n,r){r=n.exports=typeof Object.keys=="function"?Object.keys:i,r.shim=i;function i(a){var s=[];for(var l in a)s.push(l);return s}},function(n,r){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";r=n.exports=i?a:s,r.supported=a;function a(l){return Object.prototype.toString.call(l)=="[object Arguments]"}r.unsupported=s;function s(l){return l&&typeof l=="object"&&typeof l.length=="number"&&Object.prototype.hasOwnProperty.call(l,"callee")&&!Object.prototype.propertyIsEnumerable.call(l,"callee")||!1}},function(n,r){var i=Object.prototype.hasOwnProperty,a="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(a=!1));function l(u,d,f){this.fn=u,this.context=d,this.once=f||!1}function c(){this._events=new s,this._eventsCount=0}c.prototype.eventNames=function(){var d=[],f,h;if(this._eventsCount===0)return d;for(h in f=this._events)i.call(f,h)&&d.push(a?h.slice(1):h);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(f)):d},c.prototype.listeners=function(d,f){var h=a?a+d:d,p=this._events[h];if(f)return!!p;if(!p)return[];if(p.fn)return[p.fn];for(var b=0,m=p.length,y=new Array(m);b<m;b++)y[b]=p[b].fn;return y},c.prototype.emit=function(d,f,h,p,b,m){var y=a?a+d:d;if(!this._events[y])return!1;var g=this._events[y],v=arguments.length,x,w;if(g.fn){switch(g.once&&this.removeListener(d,g.fn,void 0,!0),v){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,f),!0;case 3:return g.fn.call(g.context,f,h),!0;case 4:return g.fn.call(g.context,f,h,p),!0;case 5:return g.fn.call(g.context,f,h,p,b),!0;case 6:return g.fn.call(g.context,f,h,p,b,m),!0}for(w=1,x=new Array(v-1);w<v;w++)x[w-1]=arguments[w];g.fn.apply(g.context,x)}else{var S=g.length,O;for(w=0;w<S;w++)switch(g[w].once&&this.removeListener(d,g[w].fn,void 0,!0),v){case 1:g[w].fn.call(g[w].context);break;case 2:g[w].fn.call(g[w].context,f);break;case 3:g[w].fn.call(g[w].context,f,h);break;case 4:g[w].fn.call(g[w].context,f,h,p);break;default:if(!x)for(O=1,x=new Array(v-1);O<v;O++)x[O-1]=arguments[O];g[w].fn.apply(g[w].context,x)}}return!0},c.prototype.on=function(d,f,h){var p=new l(f,h||this),b=a?a+d:d;return this._events[b]?this._events[b].fn?this._events[b]=[this._events[b],p]:this._events[b].push(p):(this._events[b]=p,this._eventsCount++),this},c.prototype.once=function(d,f,h){var p=new l(f,h||this,!0),b=a?a+d:d;return this._events[b]?this._events[b].fn?this._events[b]=[this._events[b],p]:this._events[b].push(p):(this._events[b]=p,this._eventsCount++),this},c.prototype.removeListener=function(d,f,h,p){var b=a?a+d:d;if(!this._events[b])return this;if(!f)return--this._eventsCount===0?this._events=new s:delete this._events[b],this;var m=this._events[b];if(m.fn)m.fn===f&&(!p||m.once)&&(!h||m.context===h)&&(--this._eventsCount===0?this._events=new s:delete this._events[b]);else{for(var y=0,g=[],v=m.length;y<v;y++)(m[y].fn!==f||p&&!m[y].once||h&&m[y].context!==h)&&g.push(m[y]);g.length?this._events[b]=g.length===1?g[0]:g:--this._eventsCount===0?this._events=new s:delete this._events[b]}return this},c.prototype.removeAllListeners=function(d){var f;return d?(f=a?a+d:d,this._events[f]&&(--this._eventsCount===0?this._events=new s:delete this._events[f])):(this._events=new s,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=a,c.EventEmitter=c,typeof n<"u"&&(n.exports=c)},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.matchText=r.matchSpacing=r.matchNewline=r.matchBlot=r.matchAttributor=r.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},s=function(){function J(oe,te){var le=[],re=!0,Ee=!1,Pe=void 0;try{for(var fe=oe[Symbol.iterator](),ge;!(re=(ge=fe.next()).done)&&(le.push(ge.value),!(te&&le.length===te));re=!0);}catch(De){Ee=!0,Pe=De}finally{try{!re&&fe.return&&fe.return()}finally{if(Ee)throw Pe}}return le}return function(oe,te){if(Array.isArray(oe))return oe;if(Symbol.iterator in Object(oe))return J(oe,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function J(oe,te){for(var le=0;le<te.length;le++){var re=te[le];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(oe,re.key,re)}}return function(oe,te,le){return te&&J(oe.prototype,te),le&&J(oe,le),oe}}(),c=i(3),u=T(c),d=i(2),f=T(d),h=i(0),p=T(h),b=i(5),m=T(b),y=i(10),g=T(y),v=i(9),x=T(v),w=i(36),S=i(37),O=i(13),C=T(O),P=i(26),k=i(38),E=i(39),_=i(40);function T(J){return J&&J.__esModule?J:{default:J}}function $(J,oe,te){return oe in J?Object.defineProperty(J,oe,{value:te,enumerable:!0,configurable:!0,writable:!0}):J[oe]=te,J}function M(J,oe){if(!(J instanceof oe))throw new TypeError("Cannot call a class as a function")}function j(J,oe){if(!J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:J}function W(J,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);J.prototype=Object.create(oe&&oe.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(J,oe):J.__proto__=oe)}var U=(0,g.default)("quill:clipboard"),K="__ql-matcher",H=[[Node.TEXT_NODE,pe],[Node.TEXT_NODE,ue],["br",Q],[Node.ELEMENT_NODE,ue],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,ye],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,de],["li",ce],["b",Y.bind(Y,"bold")],["i",Y.bind(Y,"italic")],["style",Z]],F=[w.AlignAttribute,k.DirectionAttribute].reduce(function(J,oe){return J[oe.keyName]=oe,J},{}),R=[w.AlignStyle,S.BackgroundStyle,P.ColorStyle,k.DirectionStyle,E.FontStyle,_.SizeStyle].reduce(function(J,oe){return J[oe.keyName]=oe,J},{}),V=function(J){W(oe,J);function oe(te,le){M(this,oe);var re=j(this,(oe.__proto__||Object.getPrototypeOf(oe)).call(this,te,le));return re.quill.root.addEventListener("paste",re.onPaste.bind(re)),re.container=re.quill.addContainer("ql-clipboard"),re.container.setAttribute("contenteditable",!0),re.container.setAttribute("tabindex",-1),re.matchers=[],H.concat(re.options.matchers).forEach(function(Ee){var Pe=s(Ee,2),fe=Pe[0],ge=Pe[1];!le.matchVisual&&ge===ye||re.addMatcher(fe,ge)}),re}return l(oe,[{key:"addMatcher",value:function(le,re){this.matchers.push([le,re])}},{key:"convert",value:function(le){if(typeof le=="string")return this.container.innerHTML=le.replace(/\>\r?\n +\</g,"><"),this.convert();var re=this.quill.getFormat(this.quill.selection.savedRange.index);if(re[C.default.blotName]){var Ee=this.container.innerText;return this.container.innerHTML="",new f.default().insert(Ee,$({},C.default.blotName,re[C.default.blotName]))}var Pe=this.prepareMatching(),fe=s(Pe,2),ge=fe[0],De=fe[1],Me=q(this.container,ge,De);return A(Me,`
`)&&Me.ops[Me.ops.length-1].attributes==null&&(Me=Me.compose(new f.default().retain(Me.length()-1).delete(1))),U.log("convert",this.container.innerHTML,Me),this.container.innerHTML="",Me}},{key:"dangerouslyPasteHTML",value:function(le,re){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof le=="string")this.quill.setContents(this.convert(le),re),this.quill.setSelection(0,m.default.sources.SILENT);else{var Pe=this.convert(re);this.quill.updateContents(new f.default().retain(le).concat(Pe),Ee),this.quill.setSelection(le+Pe.length(),m.default.sources.SILENT)}}},{key:"onPaste",value:function(le){var re=this;if(!(le.defaultPrevented||!this.quill.isEnabled())){var Ee=this.quill.getSelection(),Pe=new f.default().retain(Ee.index),fe=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(m.default.sources.SILENT),setTimeout(function(){Pe=Pe.concat(re.convert()).delete(Ee.length),re.quill.updateContents(Pe,m.default.sources.USER),re.quill.setSelection(Pe.length()-Ee.length,m.default.sources.SILENT),re.quill.scrollingContainer.scrollTop=fe,re.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var le=this,re=[],Ee=[];return this.matchers.forEach(function(Pe){var fe=s(Pe,2),ge=fe[0],De=fe[1];switch(ge){case Node.TEXT_NODE:Ee.push(De);break;case Node.ELEMENT_NODE:re.push(De);break;default:[].forEach.call(le.container.querySelectorAll(ge),function(Me){Me[K]=Me[K]||[],Me[K].push(De)});break}}),[re,Ee]}}]),oe}(x.default);V.DEFAULTS={matchers:[],matchVisual:!0};function z(J,oe,te){return(typeof oe>"u"?"undefined":a(oe))==="object"?Object.keys(oe).reduce(function(le,re){return z(le,re,oe[re])},J):J.reduce(function(le,re){return re.attributes&&re.attributes[oe]?le.push(re):le.insert(re.insert,(0,u.default)({},$({},oe,te),re.attributes))},new f.default)}function L(J){if(J.nodeType!==Node.ELEMENT_NODE)return{};var oe="__ql-computed-style";return J[oe]||(J[oe]=window.getComputedStyle(J))}function A(J,oe){for(var te="",le=J.ops.length-1;le>=0&&te.length<oe.length;--le){var re=J.ops[le];if(typeof re.insert!="string")break;te=re.insert+te}return te.slice(-1*oe.length)===oe}function N(J){if(J.childNodes.length===0)return!1;var oe=L(J);return["block","list-item"].indexOf(oe.display)>-1}function q(J,oe,te){return J.nodeType===J.TEXT_NODE?te.reduce(function(le,re){return re(J,le)},new f.default):J.nodeType===J.ELEMENT_NODE?[].reduce.call(J.childNodes||[],function(le,re){var Ee=q(re,oe,te);return re.nodeType===J.ELEMENT_NODE&&(Ee=oe.reduce(function(Pe,fe){return fe(re,Pe)},Ee),Ee=(re[K]||[]).reduce(function(Pe,fe){return fe(re,Pe)},Ee)),le.concat(Ee)},new f.default):new f.default}function Y(J,oe,te){return z(te,J,!0)}function G(J,oe){var te=p.default.Attributor.Attribute.keys(J),le=p.default.Attributor.Class.keys(J),re=p.default.Attributor.Style.keys(J),Ee={};return te.concat(le).concat(re).forEach(function(Pe){var fe=p.default.query(Pe,p.default.Scope.ATTRIBUTE);fe!=null&&(Ee[fe.attrName]=fe.value(J),Ee[fe.attrName])||(fe=F[Pe],fe!=null&&(fe.attrName===Pe||fe.keyName===Pe)&&(Ee[fe.attrName]=fe.value(J)||void 0),fe=R[Pe],fe!=null&&(fe.attrName===Pe||fe.keyName===Pe)&&(fe=R[Pe],Ee[fe.attrName]=fe.value(J)||void 0))}),Object.keys(Ee).length>0&&(oe=z(oe,Ee)),oe}function X(J,oe){var te=p.default.query(J);if(te==null)return oe;if(te.prototype instanceof p.default.Embed){var le={},re=te.value(J);re!=null&&(le[te.blotName]=re,oe=new f.default().insert(le,te.formats(J)))}else typeof te.formats=="function"&&(oe=z(oe,te.blotName,te.formats(J)));return oe}function Q(J,oe){return A(oe,`
`)||oe.insert(`
`),oe}function Z(){return new f.default}function ce(J,oe){var te=p.default.query(J);if(te==null||te.blotName!=="list-item"||!A(oe,`
`))return oe;for(var le=-1,re=J.parentNode;!re.classList.contains("ql-clipboard");)(p.default.query(re)||{}).blotName==="list"&&(le+=1),re=re.parentNode;return le<=0?oe:oe.compose(new f.default().retain(oe.length()-1).retain(1,{indent:le}))}function ue(J,oe){return A(oe,`
`)||(N(J)||oe.length()>0&&J.nextSibling&&N(J.nextSibling))&&oe.insert(`
`),oe}function ye(J,oe){if(N(J)&&J.nextElementSibling!=null&&!A(oe,`

`)){var te=J.offsetHeight+parseFloat(L(J).marginTop)+parseFloat(L(J).marginBottom);J.nextElementSibling.offsetTop>J.offsetTop+te*1.5&&oe.insert(`
`)}return oe}function de(J,oe){var te={},le=J.style||{};return le.fontStyle&&L(J).fontStyle==="italic"&&(te.italic=!0),le.fontWeight&&(L(J).fontWeight.startsWith("bold")||parseInt(L(J).fontWeight)>=700)&&(te.bold=!0),Object.keys(te).length>0&&(oe=z(oe,te)),parseFloat(le.textIndent||0)>0&&(oe=new f.default().insert("	").concat(oe)),oe}function pe(J,oe){var te=J.data;if(J.parentNode.tagName==="O:P")return oe.insert(te.trim());if(te.trim().length===0&&J.parentNode.classList.contains("ql-clipboard"))return oe;if(!L(J.parentNode).whiteSpace.startsWith("pre")){var le=function(Ee,Pe){return Pe=Pe.replace(/[^\u00a0]/g,""),Pe.length<1&&Ee?" ":Pe};te=te.replace(/\r\n/g," ").replace(/\n/g," "),te=te.replace(/\s\s+/g,le.bind(le,!0)),(J.previousSibling==null&&N(J.parentNode)||J.previousSibling!=null&&N(J.previousSibling))&&(te=te.replace(/^\s+/,le.bind(le,!1))),(J.nextSibling==null&&N(J.parentNode)||J.nextSibling!=null&&N(J.nextSibling))&&(te=te.replace(/\s+$/,le.bind(le,!1)))}return oe.insert(te)}r.default=V,r.matchAttributor=G,r.matchBlot=X,r.matchNewline=ue,r.matchSpacing=ye,r.matchText=pe},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function b(m,y){for(var g=0;g<y.length;g++){var v=y[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}return function(m,y,g){return y&&b(m.prototype,y),g&&b(m,g),m}}(),s=function b(m,y,g){m===null&&(m=Function.prototype);var v=Object.getOwnPropertyDescriptor(m,y);if(v===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:b(x,y,g)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(g)}},l=i(6),c=u(l);function u(b){return b&&b.__esModule?b:{default:b}}function d(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function f(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function h(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var p=function(b){h(m,b);function m(){return d(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"optimize",value:function(g){s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,g),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(c.default);p.blotName="bold",p.tagName=["STRONG","B"],r.default=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.addControls=r.default=void 0;var a=function(){function _(T,$){var M=[],j=!0,W=!1,U=void 0;try{for(var K=T[Symbol.iterator](),H;!(j=(H=K.next()).done)&&(M.push(H.value),!($&&M.length===$));j=!0);}catch(F){W=!0,U=F}finally{try{!j&&K.return&&K.return()}finally{if(W)throw U}}return M}return function(T,$){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return _(T,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function _(T,$){for(var M=0;M<$.length;M++){var j=$[M];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(T,j.key,j)}}return function(T,$,M){return $&&_(T.prototype,$),M&&_(T,M),T}}(),l=i(2),c=g(l),u=i(0),d=g(u),f=i(5),h=g(f),p=i(10),b=g(p),m=i(9),y=g(m);function g(_){return _&&_.__esModule?_:{default:_}}function v(_,T,$){return T in _?Object.defineProperty(_,T,{value:$,enumerable:!0,configurable:!0,writable:!0}):_[T]=$,_}function x(_,T){if(!(_ instanceof T))throw new TypeError("Cannot call a class as a function")}function w(_,T){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:_}function S(_,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);_.prototype=Object.create(T&&T.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(_,T):_.__proto__=T)}var O=(0,b.default)("quill:toolbar"),C=function(_){S(T,_);function T($,M){x(this,T);var j=w(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,$,M));if(Array.isArray(j.options.container)){var W=document.createElement("div");k(W,j.options.container),$.container.parentNode.insertBefore(W,$.container),j.container=W}else typeof j.options.container=="string"?j.container=document.querySelector(j.options.container):j.container=j.options.container;if(!(j.container instanceof HTMLElement)){var U;return U=O.error("Container required for toolbar",j.options),w(j,U)}return j.container.classList.add("ql-toolbar"),j.controls=[],j.handlers={},Object.keys(j.options.handlers).forEach(function(K){j.addHandler(K,j.options.handlers[K])}),[].forEach.call(j.container.querySelectorAll("button, select"),function(K){j.attach(K)}),j.quill.on(h.default.events.EDITOR_CHANGE,function(K,H){K===h.default.events.SELECTION_CHANGE&&j.update(H)}),j.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){var K=j.quill.selection.getRange(),H=a(K,1),F=H[0];j.update(F)}),j}return s(T,[{key:"addHandler",value:function(M,j){this.handlers[M]=j}},{key:"attach",value:function(M){var j=this,W=[].find.call(M.classList,function(K){return K.indexOf("ql-")===0});if(W){if(W=W.slice(3),M.tagName==="BUTTON"&&M.setAttribute("type","button"),this.handlers[W]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[W]==null){O.warn("ignoring attaching to disabled format",W,M);return}if(d.default.query(W)==null){O.warn("ignoring attaching to nonexistent format",W,M);return}}var U=M.tagName==="SELECT"?"change":"click";M.addEventListener(U,function(K){var H=void 0;if(M.tagName==="SELECT"){if(M.selectedIndex<0)return;var F=M.options[M.selectedIndex];F.hasAttribute("selected")?H=!1:H=F.value||!1}else M.classList.contains("ql-active")?H=!1:H=M.value||!M.hasAttribute("value"),K.preventDefault();j.quill.focus();var R=j.quill.selection.getRange(),V=a(R,1),z=V[0];if(j.handlers[W]!=null)j.handlers[W].call(j,H);else if(d.default.query(W).prototype instanceof d.default.Embed){if(H=prompt("Enter "+W),!H)return;j.quill.updateContents(new c.default().retain(z.index).delete(z.length).insert(v({},W,H)),h.default.sources.USER)}else j.quill.format(W,H,h.default.sources.USER);j.update(z)}),this.controls.push([W,M])}}},{key:"update",value:function(M){var j=M==null?{}:this.quill.getFormat(M);this.controls.forEach(function(W){var U=a(W,2),K=U[0],H=U[1];if(H.tagName==="SELECT"){var F=void 0;if(M==null)F=null;else if(j[K]==null)F=H.querySelector("option[selected]");else if(!Array.isArray(j[K])){var R=j[K];typeof R=="string"&&(R=R.replace(/\"/g,'\\"')),F=H.querySelector('option[value="'+R+'"]')}F==null?(H.value="",H.selectedIndex=-1):F.selected=!0}else if(M==null)H.classList.remove("ql-active");else if(H.hasAttribute("value")){var V=j[K]===H.getAttribute("value")||j[K]!=null&&j[K].toString()===H.getAttribute("value")||j[K]==null&&!H.getAttribute("value");H.classList.toggle("ql-active",V)}else H.classList.toggle("ql-active",j[K]!=null)})}}]),T}(y.default);C.DEFAULTS={};function P(_,T,$){var M=document.createElement("button");M.setAttribute("type","button"),M.classList.add("ql-"+T),$!=null&&(M.value=$),_.appendChild(M)}function k(_,T){Array.isArray(T[0])||(T=[T]),T.forEach(function($){var M=document.createElement("span");M.classList.add("ql-formats"),$.forEach(function(j){if(typeof j=="string")P(M,j);else{var W=Object.keys(j)[0],U=j[W];Array.isArray(U)?E(M,W,U):P(M,W,U)}}),_.appendChild(M)})}function E(_,T,$){var M=document.createElement("select");M.classList.add("ql-"+T),$.forEach(function(j){var W=document.createElement("option");j!==!1?W.setAttribute("value",j):W.setAttribute("selected","selected"),M.appendChild(W)}),_.appendChild(M)}C.DEFAULTS={container:null,handlers:{clean:function(){var T=this,$=this.quill.getSelection();if($!=null)if($.length==0){var M=this.quill.getFormat();Object.keys(M).forEach(function(j){d.default.query(j,d.default.Scope.INLINE)!=null&&T.quill.format(j,!1)})}else this.quill.removeFormat($,h.default.sources.USER)},direction:function(T){var $=this.quill.getFormat().align;T==="rtl"&&$==null?this.quill.format("align","right",h.default.sources.USER):!T&&$==="right"&&this.quill.format("align",!1,h.default.sources.USER),this.quill.format("direction",T,h.default.sources.USER)},indent:function(T){var $=this.quill.getSelection(),M=this.quill.getFormat($),j=parseInt(M.indent||0);if(T==="+1"||T==="-1"){var W=T==="+1"?1:-1;M.direction==="rtl"&&(W*=-1),this.quill.format("indent",j+W,h.default.sources.USER)}},link:function(T){T===!0&&(T=prompt("Enter link URL:")),this.quill.format("link",T,h.default.sources.USER)},list:function(T){var $=this.quill.getSelection(),M=this.quill.getFormat($);T==="check"?M.list==="checked"||M.list==="unchecked"?this.quill.format("list",!1,h.default.sources.USER):this.quill.format("list","unchecked",h.default.sources.USER):this.quill.format("list",T,h.default.sources.USER)}}},r.default=C,r.addControls=k},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function b(m,y){for(var g=0;g<y.length;g++){var v=y[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}return function(m,y,g){return y&&b(m.prototype,y),g&&b(m,g),m}}(),s=function b(m,y,g){m===null&&(m=Function.prototype);var v=Object.getOwnPropertyDescriptor(m,y);if(v===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:b(x,y,g)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(g)}},l=i(28),c=u(l);function u(b){return b&&b.__esModule?b:{default:b}}function d(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function f(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function h(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var p=function(b){h(m,b);function m(y,g){d(this,m);var v=f(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return v.label.innerHTML=g,v.container.classList.add("ql-color-picker"),[].slice.call(v.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),v}return a(m,[{key:"buildItem",value:function(g){var v=s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,g);return v.style.backgroundColor=g.getAttribute("value")||"",v}},{key:"selectItem",value:function(g,v){s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,g,v);var x=this.label.querySelector(".ql-color-label"),w=g&&g.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=w:x.style.fill=w)}}]),m}(c.default);r.default=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function b(m,y){for(var g=0;g<y.length;g++){var v=y[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}return function(m,y,g){return y&&b(m.prototype,y),g&&b(m,g),m}}(),s=function b(m,y,g){m===null&&(m=Function.prototype);var v=Object.getOwnPropertyDescriptor(m,y);if(v===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:b(x,y,g)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(g)}},l=i(28),c=u(l);function u(b){return b&&b.__esModule?b:{default:b}}function d(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function f(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function h(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var p=function(b){h(m,b);function m(y,g){d(this,m);var v=f(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,y));return v.container.classList.add("ql-icon-picker"),[].forEach.call(v.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=g[x.getAttribute("data-value")||""]}),v.defaultItem=v.container.querySelector(".ql-selected"),v.selectItem(v.defaultItem),v}return a(m,[{key:"selectItem",value:function(g,v){s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,g,v),g=g||this.defaultItem,this.label.innerHTML=g.innerHTML}}]),m}(c.default);r.default=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function c(u,d){for(var f=0;f<d.length;f++){var h=d[f];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(u,h.key,h)}}return function(u,d,f){return d&&c(u.prototype,d),f&&c(u,f),u}}();function s(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}var l=function(){function c(u,d){var f=this;s(this,c),this.quill=u,this.boundsContainer=d||document.body,this.root=u.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"}),this.hide()}return a(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var f=d.left+d.width/2-this.root.offsetWidth/2,h=d.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=h+"px",this.root.classList.remove("ql-flip");var p=this.boundsContainer.getBoundingClientRect(),b=this.root.getBoundingClientRect(),m=0;if(b.right>p.right&&(m=p.right-b.right,this.root.style.left=f+m+"px"),b.left<p.left&&(m=p.left-b.left,this.root.style.left=f+m+"px"),b.bottom>p.bottom){var y=b.bottom-b.top,g=d.bottom-d.top+y;this.root.style.top=h-g+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c}();r.default=l},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function E(_,T){var $=[],M=!0,j=!1,W=void 0;try{for(var U=_[Symbol.iterator](),K;!(M=(K=U.next()).done)&&($.push(K.value),!(T&&$.length===T));M=!0);}catch(H){j=!0,W=H}finally{try{!M&&U.return&&U.return()}finally{if(j)throw W}}return $}return function(_,T){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return E(_,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function E(_,T,$){_===null&&(_=Function.prototype);var M=Object.getOwnPropertyDescriptor(_,T);if(M===void 0){var j=Object.getPrototypeOf(_);return j===null?void 0:E(j,T,$)}else{if("value"in M)return M.value;var W=M.get;return W===void 0?void 0:W.call($)}},l=function(){function E(_,T){for(var $=0;$<T.length;$++){var M=T[$];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(_,M.key,M)}}return function(_,T,$){return T&&E(_.prototype,T),$&&E(_,$),_}}(),c=i(3),u=x(c),d=i(8),f=x(d),h=i(43),p=x(h),b=i(27),m=x(b),y=i(15),g=i(41),v=x(g);function x(E){return E&&E.__esModule?E:{default:E}}function w(E,_){if(!(E instanceof _))throw new TypeError("Cannot call a class as a function")}function S(E,_){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:E}function O(E,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);E.prototype=Object.create(_&&_.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(E,_):E.__proto__=_)}var C=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],P=function(E){O(_,E);function _(T,$){w(this,_),$.modules.toolbar!=null&&$.modules.toolbar.container==null&&($.modules.toolbar.container=C);var M=S(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,T,$));return M.quill.container.classList.add("ql-snow"),M}return l(_,[{key:"extendToolbar",value:function($){$.container.classList.add("ql-snow"),this.buildButtons([].slice.call($.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call($.container.querySelectorAll("select")),v.default),this.tooltip=new k(this.quill,this.options.bounds),$.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(M,j){$.handlers.link.call($,!j.format.link)})}}]),_}(p.default);P.DEFAULTS=(0,u.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(_){if(_){var T=this.quill.getSelection();if(T==null||T.length==0)return;var $=this.quill.getText(T);/^\S+@\S+\.\S+$/.test($)&&$.indexOf("mailto:")!==0&&($="mailto:"+$);var M=this.quill.theme.tooltip;M.edit("link",$)}else this.quill.format("link",!1)}}}}});var k=function(E){O(_,E);function _(T,$){w(this,_);var M=S(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,T,$));return M.preview=M.root.querySelector("a.ql-preview"),M}return l(_,[{key:"listen",value:function(){var $=this;s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(M){$.root.classList.contains("ql-editing")?$.save():$.edit("link",$.preview.textContent),M.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(M){if($.linkRange!=null){var j=$.linkRange;$.restoreFocus(),$.quill.formatText(j,"link",!1,f.default.sources.USER),delete $.linkRange}M.preventDefault(),$.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(M,j,W){if(M!=null){if(M.length===0&&W===f.default.sources.USER){var U=$.quill.scroll.descendant(m.default,M.index),K=a(U,2),H=K[0],F=K[1];if(H!=null){$.linkRange=new y.Range(M.index-F,H.length());var R=m.default.formats(H.domNode);$.preview.textContent=R,$.preview.setAttribute("href",R),$.show(),$.position($.quill.getBounds($.linkRange));return}}else delete $.linkRange;$.hide()}})}},{key:"show",value:function(){s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),_}(h.BaseTooltip);k.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),r.default=P},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(29),s=re(a),l=i(36),c=i(38),u=i(64),d=i(65),f=re(d),h=i(66),p=re(h),b=i(67),m=re(b),y=i(37),g=i(26),v=i(39),x=i(40),w=i(56),S=re(w),O=i(68),C=re(O),P=i(27),k=re(P),E=i(69),_=re(E),T=i(70),$=re(T),M=i(71),j=re(M),W=i(72),U=re(W),K=i(73),H=re(K),F=i(13),R=re(F),V=i(74),z=re(V),L=i(75),A=re(L),N=i(57),q=re(N),Y=i(41),G=re(Y),X=i(28),Q=re(X),Z=i(59),ce=re(Z),ue=i(60),ye=re(ue),de=i(61),pe=re(de),J=i(108),oe=re(J),te=i(62),le=re(te);function re(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}s.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":x.SizeStyle},!0),s.default.register({"formats/align":l.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":u.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":v.FontClass,"formats/size":x.SizeClass,"formats/blockquote":f.default,"formats/code-block":R.default,"formats/header":p.default,"formats/list":m.default,"formats/bold":S.default,"formats/code":F.Code,"formats/italic":C.default,"formats/link":k.default,"formats/script":_.default,"formats/strike":$.default,"formats/underline":j.default,"formats/image":U.default,"formats/video":H.default,"formats/list/item":b.ListItem,"modules/formula":z.default,"modules/syntax":A.default,"modules/toolbar":q.default,"themes/bubble":oe.default,"themes/snow":le.default,"ui/icons":G.default,"ui/picker":Q.default,"ui/icon-picker":ye.default,"ui/color-picker":ce.default,"ui/tooltip":pe.default},!0),r.default=s.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var a=function(){function m(y,g){for(var v=0;v<g.length;v++){var x=g[v];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,g,v){return g&&m(y.prototype,g),v&&m(y,v),y}}(),s=function m(y,g,v){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,g);if(x===void 0){var w=Object.getPrototypeOf(y);return w===null?void 0:m(w,g,v)}else{if("value"in x)return x.value;var S=x.get;return S===void 0?void 0:S.call(v)}},l=i(0),c=u(l);function u(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function f(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function h(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var p=function(m){h(y,m);function y(){return d(this,y),f(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"add",value:function(v,x){if(x==="+1"||x==="-1"){var w=this.value(v)||0;x=x==="+1"?w+1:w-1}return x===0?(this.remove(v),!0):s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"add",this).call(this,v,x)}},{key:"canAdd",value:function(v,x){return s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,v,x)||s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"canAdd",this).call(this,v,parseInt(x))}},{key:"value",value:function(v){return parseInt(s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,v))||void 0}}]),y}(c.default.Attributor.Class),b=new p("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});r.IndentClass=b},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(4),s=l(a);function l(h){return h&&h.__esModule?h:{default:h}}function c(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function u(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function d(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var f=function(h){d(p,h);function p(){return c(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(s.default);f.blotName="blockquote",f.tagName="blockquote",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function p(b,m){for(var y=0;y<m.length;y++){var g=m[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(b,g.key,g)}}return function(b,m,y){return m&&p(b.prototype,m),y&&p(b,y),b}}(),s=i(4),l=c(s);function c(p){return p&&p.__esModule?p:{default:p}}function u(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function d(p,b){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:p}function f(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);p.prototype=Object.create(b&&b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(p,b):p.__proto__=b)}var h=function(p){f(b,p);function b(){return u(this,b),d(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,null,[{key:"formats",value:function(y){return this.tagName.indexOf(y.tagName)+1}}]),b}(l.default);h.blotName="header",h.tagName=["H1","H2","H3","H4","H5","H6"],r.default=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ListItem=void 0;var a=function(){function w(S,O){for(var C=0;C<O.length;C++){var P=O[C];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(S,P.key,P)}}return function(S,O,C){return O&&w(S.prototype,O),C&&w(S,C),S}}(),s=function w(S,O,C){S===null&&(S=Function.prototype);var P=Object.getOwnPropertyDescriptor(S,O);if(P===void 0){var k=Object.getPrototypeOf(S);return k===null?void 0:w(k,O,C)}else{if("value"in P)return P.value;var E=P.get;return E===void 0?void 0:E.call(C)}},l=i(0),c=p(l),u=i(4),d=p(u),f=i(25),h=p(f);function p(w){return w&&w.__esModule?w:{default:w}}function b(w,S,O){return S in w?Object.defineProperty(w,S,{value:O,enumerable:!0,configurable:!0,writable:!0}):w[S]=O,w}function m(w,S){if(!(w instanceof S))throw new TypeError("Cannot call a class as a function")}function y(w,S){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:w}function g(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);w.prototype=Object.create(S&&S.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(w,S):w.__proto__=S)}var v=function(w){g(S,w);function S(){return m(this,S),y(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return a(S,[{key:"format",value:function(C,P){C===x.blotName&&!P?this.replaceWith(c.default.create(this.statics.scope)):s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"format",this).call(this,C,P)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(C,P){return this.parent.isolate(this.offset(this.parent),this.length()),C===this.parent.statics.blotName?(this.parent.replaceWith(C,P),this):(this.parent.unwrap(),s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,C,P))}}],[{key:"formats",value:function(C){return C.tagName===this.tagName?void 0:s(S.__proto__||Object.getPrototypeOf(S),"formats",this).call(this,C)}}]),S}(d.default);v.blotName="list-item",v.tagName="LI";var x=function(w){g(S,w),a(S,null,[{key:"create",value:function(C){var P=C==="ordered"?"OL":"UL",k=s(S.__proto__||Object.getPrototypeOf(S),"create",this).call(this,P);return(C==="checked"||C==="unchecked")&&k.setAttribute("data-checked",C==="checked"),k}},{key:"formats",value:function(C){if(C.tagName==="OL")return"ordered";if(C.tagName==="UL")return C.hasAttribute("data-checked")?C.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function S(O){m(this,S);var C=y(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,O)),P=function(E){if(E.target.parentNode===O){var _=C.statics.formats(O),T=c.default.find(E.target);_==="checked"?T.format("list","unchecked"):_==="unchecked"&&T.format("list","checked")}};return O.addEventListener("touchstart",P),O.addEventListener("mousedown",P),C}return a(S,[{key:"format",value:function(C,P){this.children.length>0&&this.children.tail.format(C,P)}},{key:"formats",value:function(){return b({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(C,P){if(C instanceof v)s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertBefore",this).call(this,C,P);else{var k=P==null?this.length():P.offset(this),E=this.split(k);E.parent.insertBefore(C,E)}}},{key:"optimize",value:function(C){s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"optimize",this).call(this,C);var P=this.next;P!=null&&P.prev===this&&P.statics.blotName===this.statics.blotName&&P.domNode.tagName===this.domNode.tagName&&P.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(P.moveChildren(this),P.remove())}},{key:"replace",value:function(C){if(C.statics.blotName!==this.statics.blotName){var P=c.default.create(this.statics.defaultChild);C.moveChildren(P),this.appendChild(P)}s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replace",this).call(this,C)}}]),S}(h.default);x.blotName="list",x.scope=c.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[v],r.ListItem=v,r.default=x},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(56),s=l(a);function l(h){return h&&h.__esModule?h:{default:h}}function c(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function u(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function d(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var f=function(h){d(p,h);function p(){return c(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(s.default);f.blotName="italic",f.tagName=["EM","I"],r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function b(m,y){for(var g=0;g<y.length;g++){var v=y[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}return function(m,y,g){return y&&b(m.prototype,y),g&&b(m,g),m}}(),s=function b(m,y,g){m===null&&(m=Function.prototype);var v=Object.getOwnPropertyDescriptor(m,y);if(v===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:b(x,y,g)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(g)}},l=i(6),c=u(l);function u(b){return b&&b.__esModule?b:{default:b}}function d(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function f(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function h(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var p=function(b){h(m,b);function m(){return d(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,null,[{key:"create",value:function(g){return g==="super"?document.createElement("sup"):g==="sub"?document.createElement("sub"):s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,g)}},{key:"formats",value:function(g){if(g.tagName==="SUB")return"sub";if(g.tagName==="SUP")return"super"}}]),m}(c.default);p.blotName="script",p.tagName=["SUB","SUP"],r.default=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(6),s=l(a);function l(h){return h&&h.__esModule?h:{default:h}}function c(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function u(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function d(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var f=function(h){d(p,h);function p(){return c(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(s.default);f.blotName="strike",f.tagName="S",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=i(6),s=l(a);function l(h){return h&&h.__esModule?h:{default:h}}function c(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function u(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function d(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var f=function(h){d(p,h);function p(){return c(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(s.default);f.blotName="underline",f.tagName="U",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function y(g,v){for(var x=0;x<v.length;x++){var w=v[x];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}return function(g,v,x){return v&&y(g.prototype,v),x&&y(g,x),g}}(),s=function y(g,v,x){g===null&&(g=Function.prototype);var w=Object.getOwnPropertyDescriptor(g,v);if(w===void 0){var S=Object.getPrototypeOf(g);return S===null?void 0:y(S,v,x)}else{if("value"in w)return w.value;var O=w.get;return O===void 0?void 0:O.call(x)}},l=i(0),c=d(l),u=i(27);function d(y){return y&&y.__esModule?y:{default:y}}function f(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var b=["alt","height","width"],m=function(y){p(g,y);function g(){return f(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,[{key:"format",value:function(x,w){b.indexOf(x)>-1?w?this.domNode.setAttribute(x,w):this.domNode.removeAttribute(x):s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,w)}}],[{key:"create",value:function(x){var w=s(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return typeof x=="string"&&w.setAttribute("src",this.sanitize(x)),w}},{key:"formats",value:function(x){return b.reduce(function(w,S){return x.hasAttribute(S)&&(w[S]=x.getAttribute(S)),w},{})}},{key:"match",value:function(x){return/\.(jpe?g|gif|png)$/.test(x)||/^data:image\/.+;base64/.test(x)}},{key:"sanitize",value:function(x){return(0,u.sanitize)(x,["http","https","data"])?x:"//:0"}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g}(c.default.Embed);m.blotName="image",m.tagName="IMG",r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function y(g,v){for(var x=0;x<v.length;x++){var w=v[x];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}return function(g,v,x){return v&&y(g.prototype,v),x&&y(g,x),g}}(),s=function y(g,v,x){g===null&&(g=Function.prototype);var w=Object.getOwnPropertyDescriptor(g,v);if(w===void 0){var S=Object.getPrototypeOf(g);return S===null?void 0:y(S,v,x)}else{if("value"in w)return w.value;var O=w.get;return O===void 0?void 0:O.call(x)}},l=i(4),c=i(27),u=d(c);function d(y){return y&&y.__esModule?y:{default:y}}function f(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var b=["height","width"],m=function(y){p(g,y);function g(){return f(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,[{key:"format",value:function(x,w){b.indexOf(x)>-1?w?this.domNode.setAttribute(x,w):this.domNode.removeAttribute(x):s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,w)}}],[{key:"create",value:function(x){var w=s(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return w.setAttribute("frameborder","0"),w.setAttribute("allowfullscreen",!0),w.setAttribute("src",this.sanitize(x)),w}},{key:"formats",value:function(x){return b.reduce(function(w,S){return x.hasAttribute(S)&&(w[S]=x.getAttribute(S)),w},{})}},{key:"sanitize",value:function(x){return u.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g}(l.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var a=function(){function x(w,S){for(var O=0;O<S.length;O++){var C=S[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(w,C.key,C)}}return function(w,S,O){return S&&x(w.prototype,S),O&&x(w,O),w}}(),s=function x(w,S,O){w===null&&(w=Function.prototype);var C=Object.getOwnPropertyDescriptor(w,S);if(C===void 0){var P=Object.getPrototypeOf(w);return P===null?void 0:x(P,S,O)}else{if("value"in C)return C.value;var k=C.get;return k===void 0?void 0:k.call(O)}},l=i(35),c=p(l),u=i(5),d=p(u),f=i(9),h=p(f);function p(x){return x&&x.__esModule?x:{default:x}}function b(x,w){if(!(x instanceof w))throw new TypeError("Cannot call a class as a function")}function m(x,w){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:x}function y(x,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);x.prototype=Object.create(w&&w.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(x,w):x.__proto__=w)}var g=function(x){y(w,x);function w(){return b(this,w),m(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return a(w,null,[{key:"create",value:function(O){var C=s(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,O);return typeof O=="string"&&(window.katex.render(O,C,{throwOnError:!1,errorColor:"#f00"}),C.setAttribute("data-value",O)),C}},{key:"value",value:function(O){return O.getAttribute("data-value")}}]),w}(c.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var v=function(x){y(w,x),a(w,null,[{key:"register",value:function(){d.default.register(g,!0)}}]);function w(){b(this,w);var S=m(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return S}return w}(h.default);r.FormulaBlot=g,r.default=v},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.CodeToken=r.CodeBlock=void 0;var a=function(){function O(C,P){for(var k=0;k<P.length;k++){var E=P[k];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(C,E.key,E)}}return function(C,P,k){return P&&O(C.prototype,P),k&&O(C,k),C}}(),s=function O(C,P,k){C===null&&(C=Function.prototype);var E=Object.getOwnPropertyDescriptor(C,P);if(E===void 0){var _=Object.getPrototypeOf(C);return _===null?void 0:O(_,P,k)}else{if("value"in E)return E.value;var T=E.get;return T===void 0?void 0:T.call(k)}},l=i(0),c=m(l),u=i(5),d=m(u),f=i(9),h=m(f),p=i(13),b=m(p);function m(O){return O&&O.__esModule?O:{default:O}}function y(O,C){if(!(O instanceof C))throw new TypeError("Cannot call a class as a function")}function g(O,C){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:O}function v(O,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);O.prototype=Object.create(C&&C.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(O,C):O.__proto__=C)}var x=function(O){v(C,O);function C(){return y(this,C),g(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return a(C,[{key:"replaceWith",value:function(k){this.domNode.textContent=this.domNode.textContent,this.attach(),s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replaceWith",this).call(this,k)}},{key:"highlight",value:function(k){var E=this.domNode.textContent;this.cachedText!==E&&((E.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=k(E),this.domNode.normalize(),this.attach()),this.cachedText=E)}}]),C}(b.default);x.className="ql-syntax";var w=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),S=function(O){v(C,O),a(C,null,[{key:"register",value:function(){d.default.register(w,!0),d.default.register(x,!0)}}]);function C(P,k){y(this,C);var E=g(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P,k));if(typeof E.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var _=null;return E.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(_),_=setTimeout(function(){E.highlight(),_=null},E.options.interval)}),E.highlight(),E}return a(C,[{key:"highlight",value:function(){var k=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var E=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(_){_.highlight(k.options.highlight)}),this.quill.update(d.default.sources.SILENT),E!=null&&this.quill.setSelection(E,d.default.sources.SILENT)}}}]),C}(h.default);S.DEFAULTS={highlight:function(){return window.hljs==null?null:function(O){var C=window.hljs.highlightAuto(O);return C.value}}(),interval:1e3},r.CodeBlock=x,r.CodeToken=w,r.default=S},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var a=function C(P,k,E){P===null&&(P=Function.prototype);var _=Object.getOwnPropertyDescriptor(P,k);if(_===void 0){var T=Object.getPrototypeOf(P);return T===null?void 0:C(T,k,E)}else{if("value"in _)return _.value;var $=_.get;return $===void 0?void 0:$.call(E)}},s=function(){function C(P,k){for(var E=0;E<k.length;E++){var _=k[E];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(P,_.key,_)}}return function(P,k,E){return k&&C(P.prototype,k),E&&C(P,E),P}}(),l=i(3),c=y(l),u=i(8),d=y(u),f=i(43),h=y(f),p=i(15),b=i(41),m=y(b);function y(C){return C&&C.__esModule?C:{default:C}}function g(C,P){if(!(C instanceof P))throw new TypeError("Cannot call a class as a function")}function v(C,P){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:C}function x(C,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);C.prototype=Object.create(P&&P.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(C,P):C.__proto__=P)}var w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],S=function(C){x(P,C);function P(k,E){g(this,P),E.modules.toolbar!=null&&E.modules.toolbar.container==null&&(E.modules.toolbar.container=w);var _=v(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,k,E));return _.quill.container.classList.add("ql-bubble"),_}return s(P,[{key:"extendToolbar",value:function(E){this.tooltip=new O(this.quill,this.options.bounds),this.tooltip.root.appendChild(E.container),this.buildButtons([].slice.call(E.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(E.container.querySelectorAll("select")),m.default)}}]),P}(h.default);S.DEFAULTS=(0,c.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(P){P?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var O=function(C){x(P,C);function P(k,E){g(this,P);var _=v(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,k,E));return _.quill.on(d.default.events.EDITOR_CHANGE,function(T,$,M,j){if(T===d.default.events.SELECTION_CHANGE)if($!=null&&$.length>0&&j===d.default.sources.USER){_.show(),_.root.style.left="0px",_.root.style.width="",_.root.style.width=_.root.offsetWidth+"px";var W=_.quill.getLines($.index,$.length);if(W.length===1)_.position(_.quill.getBounds($));else{var U=W[W.length-1],K=_.quill.getIndex(U),H=Math.min(U.length()-1,$.index+$.length-K),F=_.quill.getBounds(new p.Range(K,H));_.position(F)}}else document.activeElement!==_.textbox&&_.quill.hasFocus()&&_.hide()}),_}return s(P,[{key:"listen",value:function(){var E=this;a(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){E.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!E.root.classList.contains("ql-hidden")){var _=E.quill.getSelection();_!=null&&E.position(E.quill.getBounds(_))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(E){var _=a(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"position",this).call(this,E),T=this.root.querySelector(".ql-tooltip-arrow");if(T.style.marginLeft="",_===0)return _;T.style.marginLeft=-1*_-T.offsetWidth/2+"px"}}]),P}(f.BaseTooltip);O.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),r.BubbleTooltip=O,r.default=S},function(n,r,i){n.exports=i(63)}]).default})})(xM);var ake=xM.exports,ske=Dn&&Dn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)i.hasOwnProperty(a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pf=Dn&&Dn.__assign||function(){return pf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},pf.apply(this,arguments)},lke=Dn&&Dn.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],s=0,l=a.length;s<l;s++,i++)r[i]=a[s];return r},ih=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},yo=ih(B),cke=ih(La),xl=ih(Ok),yO=ih(ake),uke=function(e){ske(t,e);function t(n){var r=e.call(this,n)||this;r.dirtyProps=["modules","formats","bounds","theme","children"],r.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],r.state={generation:0},r.selection=null,r.onEditorChange=function(a,s,l,c){var u,d,f,h;a==="text-change"?(d=(u=r).onEditorChangeText)===null||d===void 0||d.call(u,r.editor.root.innerHTML,s,c,r.unprivilegedEditor):a==="selection-change"&&((h=(f=r).onEditorChangeSelection)===null||h===void 0||h.call(f,s,c,r.unprivilegedEditor))};var i=r.isControlled()?n.value:n.defaultValue;return r.value=i??"",r}return t.prototype.validateProps=function(n){var r;if(yo.default.Children.count(n.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(yo.default.Children.count(n.children)){var i=yo.default.Children.only(n.children);if(((r=i)===null||r===void 0?void 0:r.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&n.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(n,r){var i=this,a;if(this.validateProps(n),!this.editor||this.state.generation!==r.generation)return!0;if("value"in n){var s=this.getEditorContents(),l=(a=n.value,a??"");this.isEqualValue(l,s)||this.setEditorContents(this.editor,l)}return n.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,n.readOnly),lke(this.cleanProps,this.dirtyProps).some(function(c){return!xl.default(n[c],i.props[c])})},t.prototype.shouldComponentRegenerate=function(n){var r=this;return this.dirtyProps.some(function(i){return!xl.default(n[i],r.props[i])})},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(n,r){var i=this;if(this.editor&&this.shouldComponentRegenerate(n)){var a=this.editor.getContents(),s=this.editor.getSelection();this.regenerationSnapshot={delta:a,selection:s},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==r.generation){var l=this.regenerationSnapshot,a=l.delta,c=l.selection;delete this.regenerationSnapshot,this.instantiateEditor();var u=this.editor;u.setContents(a),gO(function(){return i.setEditorSelection(u,c)})}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(n,r){var i=new yO.default(n,r);return r.tabIndex!=null&&this.setEditorTabIndex(i,r.tabIndex),this.hookEditor(i),i},t.prototype.hookEditor=function(n){this.unprivilegedEditor=this.makeUnprivilegedEditor(n),n.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(n){n.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(n){return n&&n.ops},t.prototype.isEqualValue=function(n,r){return this.isDelta(n)&&this.isDelta(r)?xl.default(n.ops,r.ops):xl.default(n,r)},t.prototype.setEditorContents=function(n,r){var i=this;this.value=r;var a=this.getEditorSelection();typeof r=="string"?n.setContents(n.clipboard.convert(r)):n.setContents(r),gO(function(){return i.setEditorSelection(n,a)})},t.prototype.setEditorSelection=function(n,r){if(this.selection=r,r){var i=n.getLength();r.index=Math.max(0,Math.min(r.index,i-1)),r.length=Math.max(0,Math.min(r.length,i-1-r.index)),n.setSelection(r)}},t.prototype.setEditorTabIndex=function(n,r){var i,a;!((a=(i=n)===null||i===void 0?void 0:i.scroll)===null||a===void 0)&&a.domNode&&(n.scroll.domNode.tabIndex=r)},t.prototype.setEditorReadOnly=function(n,r){r?n.disable():n.enable()},t.prototype.makeUnprivilegedEditor=function(n){var r=n;return{getHTML:function(){return r.root.innerHTML},getLength:r.getLength.bind(r),getText:r.getText.bind(r),getContents:r.getContents.bind(r),getSelection:r.getSelection.bind(r),getBounds:r.getBounds.bind(r)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var n=cke.default.findDOMNode(this.editingArea);if(!n)throw new Error("Cannot find element for editing area");if(n.nodeType===3)throw new Error("Editing area cannot be a text node");return n},t.prototype.renderEditingArea=function(){var n=this,r=this.props,i=r.children,a=r.preserveWhitespace,s=this.state.generation,l={key:s,ref:function(c){n.editingArea=c}};return yo.default.Children.count(i)?yo.default.cloneElement(yo.default.Children.only(i),l):a?yo.default.createElement("pre",pf({},l)):yo.default.createElement("div",pf({},l))},t.prototype.render=function(){var n;return yo.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(n=this.props.className,n??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(n,r,i,a){var s,l;if(this.editor){var c=this.isDelta(this.value)?a.getContents():a.getHTML();c!==this.getEditorContents()&&(this.lastDeltaChangeSet=r,this.value=c,(l=(s=this.props).onChange)===null||l===void 0||l.call(s,n,r,i,a))}},t.prototype.onEditorChangeSelection=function(n,r,i){var a,s,l,c,u,d;if(this.editor){var f=this.getEditorSelection(),h=!f&&n,p=f&&!n;xl.default(n,f)||(this.selection=n,(s=(a=this.props).onChangeSelection)===null||s===void 0||s.call(a,n,r,i),h?(c=(l=this.props).onFocus)===null||c===void 0||c.call(l,n,r,i):p&&((d=(u=this.props).onBlur)===null||d===void 0||d.call(u,f,r,i)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=yO.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(yo.default.Component);function gO(e){Promise.resolve().then(e)}var dke=uke;const fke=Mt(dke),pke=ot(D.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),hke=ot(D.jsx("path",{d:"M3 18h13v-2H3zm0-5h10v-2H3zm0-7v2h13V6zm18 9.59L17.42 12 21 8.41 19.59 7l-5 5 5 5z"}),"MenuOpen"),mke=({onSchemaChange:e,onUiSchemaChange:t,onDataChange:n,onFieldDeleted:r,schema:i,uischema:a,data:s={},setHeight:l,showSection:c})=>{var We,lt,kt,et,ht,Tt;const u=ns(ie=>ie.formBuilder.schema),d=ns(ie=>ie.formBuilder.uischema),f=RE(),h=u&&d&&typeof u=="object"&&typeof d=="object",p=h?u:i||u,b=h?d:a||d,m=b;m.elements||(m.elements=[]);const[y,g]=B.useState(s),[v,x]=B.useState({}),[w,S]=B.useState(!1);B.useEffect(()=>{},[y]);const O=B.useRef(null),C=B.useRef(""),P=B.useRef(null),k=B.useRef(!1),[E,_]=B.useState(null),[T,$]=B.useState(!0),[M,j]=B.useState(!1);B.useEffect(()=>{var ie;E&&((ie=p==null?void 0:p.properties)!=null&&ie[E])},[p,E]),B.useEffect(()=>{if(k.current||!s||Object.keys(s).length===0)return;const ie=JSON.stringify(s||{});ie!==C.current&&(g(s||{}),C.current=ie)},[s]),B.useEffect(()=>{var ie,Ce;if(E&&((Ce=(ie=p==null?void 0:p.properties)==null?void 0:ie[E])==null?void 0:Ce.title)==="Content"){const Oe=p.properties[E].default;!v[E]&&Oe&&x(Se=>({...Se,[E]:Oe}))}},[p,E,v]);const[W,U]=B.useState(""),[K,H]=B.useState(!1),[F,R]=B.useState(!1),[V,z]=B.useState(!1),L=B.useMemo(()=>hB(m.elements,E??""),[m.elements,E]),A=B.useMemo(()=>{if(!L)return!1;const ie=mB(m.elements,E??"");return tC(ie)==="heading"},[L,m.elements,E]),N=!!E&&((lt=(We=p==null?void 0:p.properties)==null?void 0:We[E])==null?void 0:lt.title)==="Heading",q=A||N,[Y,G]=B.useState([]),[X,Q]=B.useState(!1),[Z,ce]=B.useState({}),[ue,ye]=B.useState(null),de=B.useRef(null),pe=B.useRef(""),J=B.useRef(""),oe=B.useRef([]);B.useEffect(()=>{de.current=ue},[ue]),B.useEffect(()=>{var Ye;if(!E){$(!0);return}const ie=(Ye=p.properties)==null?void 0:Ye[E],Ce=Array.isArray(ie==null?void 0:ie.enum),Oe=!!(ie&&typeof ie=="object"&&ie.items&&Array.isArray(ie.items.enum)),Le=ie&&typeof ie=="object"&&Array.isArray(ie.enum)&&ie.format!=="radio",Se=!!(Ce&&Y.length===0||Oe&&Y.length===0||Le&&Y.length===0);$(Se)},[E,V,X,Y,p]),B.useEffect(()=>{var ie,Ce;if(E&&((ie=p==null?void 0:p.properties)!=null&&ie[E])){const Oe=p.properties[E],Le=(Oe==null?void 0:Oe.text)||(Oe==null?void 0:Oe.title)||"";pe.current!==Le&&(U(Le),pe.current=Le),H((p.required||[]).includes(E)),R((Oe==null?void 0:Oe.readOnly)===!0);let Se=[];Array.isArray(Oe==null?void 0:Oe.enum)?Se=[...Oe.enum]:Array.isArray((Ce=Oe==null?void 0:Oe.items)==null?void 0:Ce.enum)&&(Se=[...Oe.items.enum]),(Se.length!==oe.current.length||Se.some((nt,Ve)=>nt!==oe.current[Ve]))&&(G(Se),oe.current=Se),z(!1),Q(!1)}},[E]),B.useEffect(()=>{if(ue){const ie=(m.elements||[]).find(Oe=>Oe.type==="Group"&&Oe._key===ue),Ce=ie?ie.label:Z[ue]||"";J.current!==Ce&&(U(Ce),J.current=Ce),z(!1)}},[ue]);const te=()=>{ue&&(f(wB({groupKey:ue,label:W})),ce(ie=>({...ie,[ue]:W})),z(!1))},[{isOver:le},re]=G_e({setSelectedField:_,onDropComponent:(ie,Ce)=>{if(ie===Od){const Se=`group_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;f(Oa({groupKey:Se,label:"New Group"})),ce(Ye=>({...Ye,[Se]:"New Group"})),ye(Se),_(null),setTimeout(()=>{(m.elements||[]).filter(Ye=>Ye.type==="Group").map(Ye=>Ye._key)},0);return}if(ie===Ed){const Se=`form_section_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;f(Oa({groupKey:Se,label:"Form Section"})),ce(Ye=>({...Ye,[Se]:"Form Section"})),ye(Se),_(null);return}if(ie===Cd){const Se=`therapist_section_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;f(Oa({groupKey:Se,label:"Therapist Section"})),ce(Ye=>({...Ye,[Se]:"Therapist Section"})),ye(Se),_(null);return}if(ie===Pd){const Se=`supervision_section_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;f(Oa({groupKey:Se,label:"Supervision Section"})),ce(Ye=>({...Ye,[Se]:"Supervision Section"})),ye(Se),_(null);return}if(ie===ic){const Se=`information_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;f(Oa({groupKey:Se,label:"Information"})),ce(nt=>({...nt,[Se]:"Information"})),ye(Se),_(null),[{key:"firstName",schema:{type:"string",title:"First Name"}},{key:"lastName",schema:{type:"string",title:"Last Name"}},{key:"dob",schema:{type:"string",title:"DOB",format:"date"}},{key:"gender",schema:{type:"string",title:"Gender",enum:["Male","Female","Other"]}}].forEach(({key:nt,schema:Ve})=>{f(mo({groupKey:Se,fieldKey:nt+"_"+Se,fieldSchema:Ve,uiControl:{type:"Control",scope:`#/properties/${nt+"_"+Se}`,options:nt==="dob"?{format:"MM/DD/YYYY"}:void 0}}))}),f(pw({groupKey:Se,elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/firstName_${Se}`},{type:"Control",scope:`#/properties/lastName_${Se}`}]},{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/dob_${Se}`},{type:"Control",scope:`#/properties/gender_${Se}`}]}]}));return}if(ie===_d){const Se=`address_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;f(Oa({groupKey:Se,label:"Address"})),ce(nt=>({...nt,[Se]:"Address"})),ye(Se),_(null),[{key:"line1",schema:{type:"string",title:"Line 1"}},{key:"line2",schema:{type:"string",title:"Line 2"}},{key:"city",schema:{type:"string",title:"City"}},{key:"state",schema:{type:"string",title:"State"}},{key:"zipcode",schema:{type:"string",title:"Zipcode"}}].forEach(({key:nt,schema:Ve})=>{f(mo({groupKey:Se,fieldKey:nt+"_"+Se,fieldSchema:Ve,uiControl:{type:"Control",scope:`#/properties/${nt+"_"+Se}`}}))}),f(pw({groupKey:Se,elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/line1_${Se}`},{type:"Control",scope:`#/properties/line2_${Se}`}]},{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/city_${Se}`},{type:"Control",scope:`#/properties/state_${Se}`},{type:"Control",scope:`#/properties/zipcode_${Se}`}]}]}));return}if(ie===kd){const Se=`header_${Date.now()}_${Math.random().toString(36).substring(2,10)}`;f(go({fieldKey:Se,fieldSchema:{type:"null",title:"Heading"},uiControl:{type:"Label",text:"Heading",_key:Se}})),_(Se);return}if(ie===$d){const Se=`horizontal_layout_${Date.now()}_${Math.random().toString(36).substring(2,10)}`,Ye={type:"object",title:"Horizontal Layout"},nt={type:"HorizontalLayout",elements:[],_key:Se};de.current?f(mo({groupKey:de.current,fieldKey:Se,fieldSchema:Ye,uiControl:nt})):f(go({fieldKey:Se,fieldSchema:Ye,uiControl:nt})),_(Se);return}if(ie===Ga){const Se=`image_${Date.now()}_${Math.random().toString(36).substring(2,10)}`,Ye=ui(Ga),nt={type:"Control",scope:`#/properties/${Se}`};de.current?f(mo({groupKey:de.current,fieldKey:Se,fieldSchema:Ye,uiControl:nt})):f(go({fieldKey:Se,fieldSchema:Ye,uiControl:nt})),_(Se);return}if(ie===Ka){const Se=`multiselect_${Date.now()}_${Math.random().toString(36).substring(2,10)}`,Ye=ui(Ka),nt={type:"Control",scope:`#/properties/${Se}`};de.current?f(mo({groupKey:de.current,fieldKey:Se,fieldSchema:Ye,uiControl:nt})):f(go({fieldKey:Se,fieldSchema:Ye,uiControl:nt})),_(Se);return}if(ie===Dd){const Se=`content_${Date.now()}_${Math.random().toString(36).substring(2,10)}`,Ye={type:"string",title:"Content"},nt={type:"Control",scope:`#/properties/${Se}`};de.current?f(mo({groupKey:de.current,fieldKey:Se,fieldSchema:Ye,uiControl:nt})):f(go({fieldKey:Se,fieldSchema:Ye,uiControl:nt})),_(Se);return}if(ie===Xa){const Se=`signature_${Date.now()}_${Math.random().toString(36).substring(2,10)}`,Ye=ui(Xa),nt={type:"Control",scope:`#/properties/${Se}`};de.current?f(mo({groupKey:de.current,fieldKey:Se,fieldSchema:Ye,uiControl:nt})):f(go({fieldKey:Se,fieldSchema:Ye,uiControl:nt})),_(Se);return}if(ie===Hi){const Se=`range_${Date.now()}_${Math.random().toString(36).substring(2,10)}`,Ye=ui(Hi),nt={type:"Control",scope:`#/properties/${Se}`,options:{format:"range"}};de.current?f(mo({groupKey:de.current,fieldKey:Se,fieldSchema:Ye,uiControl:nt})):f(go({fieldKey:Se,fieldSchema:Ye,uiControl:nt})),_(Se);return}if(ZE(ie)){const{fieldKey:Se,uiControl:Ye}=QE(ie),nt=ui(ie);de.current?f(mo({groupKey:de.current,fieldKey:Se,fieldSchema:nt,uiControl:Ye})):f(go({fieldKey:Se,fieldSchema:nt,uiControl:Ye})),_(Se);return}const Oe=ui(ie),Le={type:"Control",scope:`#/properties/${Ce}`,options:ie===as?{format:"radio"}:ie===ss?{format:"checkbox"}:ie===is?{format:"MM/DD/YYYY"}:ie===os?{multi:!0,row:3}:void 0};de.current?f(mo({groupKey:de.current,fieldKey:Ce,fieldSchema:Oe,uiControl:Le})):f(go({fieldKey:Ce,fieldSchema:Oe,uiControl:Le}))},shouldHandleDrop:ie=>{var Le;const Ce=ie.getDropResult();if(Ce&&Ce.handled)return!1;const Oe=document.querySelectorAll('[data-horizontal-layout="true"]');for(let Se of Oe)if(Se.contains((Le=ie.getDropResult())==null?void 0:Le.target))return!1;return!0}});B.useEffect(()=>{re&&O.current&&re(O)},[re,O]);const Ee=()=>{var Se,Ye;if(!E)return;const ie=(Se=p.properties)==null?void 0:Se[E],Ce=(m.elements||[]).find(nt=>nt._key===E),Oe=(Ce==null?void 0:Ce.type)==="HorizontalLayout";if(ie&&ie.title==="Heading"){f(Cl({fieldKey:E,fieldSchema:{...ie,text:W},required:!1})),f(xB({fieldKey:E,text:W})),z(!1);return}if(Oe){f(Cl({fieldKey:E,fieldSchema:{...ie,title:W},required:!1})),z(!1);return}let Le={...ie,title:W};ie&&ie.title==="Content"?Le={...ie,title:W,default:ie.default||""}:ie&&ie.type==="array"&&ie.items&&(Array.isArray(ie.items.enum)||Y.length>0)?Le={...ie,title:W,items:{...ie.items||{type:"string"},enum:[...Y]}}:Array.isArray(ie==null?void 0:ie.enum)||(ie==null?void 0:ie.format)==="radio"||(ie==null?void 0:ie.format)==="dropdown"||Y.length>0?Le={...ie,title:W,enum:[...Y]}:(Array.isArray((Ye=ie==null?void 0:ie.items)==null?void 0:Ye.enum)||(ie==null?void 0:ie.format)==="checkbox")&&(Le={...ie,title:W,items:{...(ie==null?void 0:ie.items)||{type:"string"},enum:[...Y]}}),L&&(F?Le={...Le,readOnly:!0}:(Le={...Le},delete Le.readOnly)),f(Cl({fieldKey:E,fieldSchema:Le,required:K})),z(!1),Q(!1)},Pe=B.useCallback(ie=>{_(ie)},[]),fe=B.useCallback(ie=>{ye(ie)},[]),ge=B.useCallback(ie=>{U(ie)},[]),De=B.useCallback(ie=>{z(ie)},[]),Me=ie=>{if(f(SB({fieldKey:ie})),_(Ce=>Ce===ie?null:Ce),Object.prototype.hasOwnProperty.call(y,ie)){const Ce={...y};delete Ce[ie],g(Ce),C.current=JSON.stringify(Ce)}r==null||r(ie)},Ie=B.useMemo(()=>ike({selectedField:E,selectedGroupKey:ue,setSelectedField:Pe,setSelectedGroupKey:fe,setFieldLabel:ge,setFieldTouched:De,onDeleteField:Me,schema:p}),[E,ue,Pe,fe,ge,De,Me,p]);B.useEffect(()=>{e==null||e(p)},[p]),B.useEffect(()=>{t==null||t(b)},[b]),B.useEffect(()=>{i&&a&&i.properties&&Object.keys(i.properties).length>0&&(f(gB()),f(bB(i)),f(vB(a)),g(s||{}))},[i,a,f,s]),B.useEffect(()=>{var ie,Ce,Oe,Le;if(E&&((Ce=(ie=p==null?void 0:p.properties)==null?void 0:ie[E])==null?void 0:Ce.title)==="Content"){const Se=y[E]||((Le=(Oe=p==null?void 0:p.properties)==null?void 0:Oe[E])==null?void 0:Le.default)||"";x(Ye=>({...Ye,[E]:Se}))}},[E,p,y]),B.useEffect(()=>{var ie,Ce;if(E&&((Ce=(ie=p==null?void 0:p.properties)==null?void 0:ie[E])==null?void 0:Ce.title)==="Content"){const Oe=y[E];Oe&&x(Le=>Le[E]!==Oe?{...Le,[E]:Oe}:Le)}},[y,E,p]);const he={toolbar:[["bold","italic","underline","strike"],[{size:[]}],[{align:["right","center","justify"]}],[{list:"ordered"},{list:"bullet"},{list:"check"}],[{color:[]},{background:[]}]]},me=["header","bold","italic","underline","strike","blockquote","list","bullet","link","color","image","background","align","size","font"],Be=[{type:kd,label:"Heading"},{type:Hf,label:"Text Box"},{type:Yf,label:"Email ID"},{type:os,label:"Multi Line Text"},{type:Dd,label:"Content"},{type:Xa,label:"Signature"},{type:is,label:"Date Picker"},{type:as,label:"Radio Button"},{type:ss,label:"Checkboxes"},{type:Gf,label:"Dropdown"},{type:Ka,label:"Multi Select"},{type:Hi,label:"Range (i.e. 1-5)"},{type:Ga,label:"Image Upload"},{type:Od,label:"Group"},...c?[{type:Ed,label:"Form Section"},{type:Cd,label:"Therapist Section"},{type:Pd,label:"Supervision Section"}]:[],{type:$d,label:"Horizontal Layout"},{type:ic,label:"Personal Info"},{type:_d,label:"Address"}],Ue=sg.map(ie=>({type:ie,label:ks[ie].label}));return B.useEffect(()=>()=>{P.current&&clearTimeout(P.current),k.current=!1},[]),B.useEffect(()=>()=>{k.current=!1},[E]),D.jsxs(He,{display:"flex",height:"100%","data-id":"form-builder-container",children:[D.jsxs(He,{width:M?64:200,borderRight:"1px solid #ddd",display:"flex",flexDirection:"column","data-id":"components-container",children:[D.jsxs(He,{pr:2,pl:"1px",display:"flex",alignItems:"center",justifyContent:"space-between",sx:{paddingY:1},children:[!M&&D.jsx(Xe,{fontSize:"14px",fontWeight:"600",children:"Components"}),D.jsx(Pt,{size:"small",onClick:()=>j(!M),sx:{marginLeft:M?"auto":0},children:M?D.jsx(hke,{}):D.jsx(pke,{})})]}),D.jsxs(He,{overflow:"auto",flex:1,pr:1,children:[Be.map(({type:ie,label:Ce})=>D.jsx(mO,{type:ie,label:Ce,showLabel:!M,tooltip:M?Ce:""},ie)),c&&D.jsxs(D.Fragment,{children:[D.jsx(ta,{sx:{mb:2}}),!M&&D.jsx(Xe,{fontSize:"14px",fontWeight:"600",sx:{mb:1},children:"Auto Text"}),Ue.map(({type:ie,label:Ce})=>D.jsx(mO,{type:ie,label:Ce,showLabel:!M,tooltip:M?Ce:""},ie))]})]})]}),D.jsxs(He,{"data-id":"form-container",ref:O,sx:{flex:1,minWidth:0,p:1,display:"flex",flexDirection:"column",rowGap:4,bgcolor:le?"#e3f2fd":"#fafafa",border:le?"2px dashed #1976d2":"2px dashed #ccc",borderRadius:2,m:2,position:"relative",height:l?`calc(${l} - 10vh)`:"90vh",overflowY:"scroll"},onClick:ie=>{ie.target===ie.currentTarget&&ye(null)},children:[(!m.elements||m.elements.length===0)&&D.jsx(He,{"data-id":"drag-and-drop-message",sx:{height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",position:"absolute",top:0,left:0,zIndex:1},children:D.jsx(Xe,{variant:"h6",color:le?"primary":"textSecondary",sx:{opacity:.7},children:"Drag and Drop here"})}),D.jsx(He,{sx:{width:"100%"},children:D.jsx(o$,{schema:p,uischema:b,data:y,renderers:Ie,cells:YR,onChange:({data:ie})=>{const Ce=ie||{},Oe=JSON.stringify(y),Le=JSON.stringify(Ce);Oe!==Le&&(g(Ce),n==null||n(Ce))}},`jsonforms-${JSON.stringify(p)}-${JSON.stringify(b)}`)})]}),D.jsxs(He,{width:300,borderLeft:"1px solid #ddd",p:2,pt:0,display:"flex",flexDirection:"column",height:l?`calc(${l} - 10vh)`:"90vh",sx:{overflowY:"scroll"},"data-id":"field-properties-container",children:[D.jsx(Xe,{fontSize:"16px",fontFamily:"Figtree",sx:{mb:2,fontWeight:600},children:"Field Properties"}),ue?D.jsxs(D.Fragment,{children:[D.jsxs(Xe,{fontSize:"14px",sx:{mb:2},children:["Group: ",ue]}),D.jsx(Do,{fullWidth:!0,label:"Group Label",value:W,onChange:ie=>{U(ie.target.value),z(!0)},sx:{mb:2}}),D.jsx("button",{"data-id":"save-group-label-button",onClick:te,disabled:!V,style:{marginTop:8,padding:"8px 16px",background:"#1976d2",color:"#fff",border:"none",borderRadius:4,cursor:V?"pointer":"not-allowed",fontSize:"14px"},children:D.jsx(Xe,{fontSize:"14px",children:"Save"})})]}):E?D.jsx(D.Fragment,{children:E&&((et=(kt=p==null?void 0:p.properties)==null?void 0:kt[E])==null?void 0:et.title)==="Content"?D.jsxs(D.Fragment,{children:[D.jsxs(Xe,{fontSize:"14px",children:["Content"," ",v[E]&&v[E]!==(y[E]||((Tt=(ht=p==null?void 0:p.properties)==null?void 0:ht[E])==null?void 0:Tt.default))?"(Edited)":""," ",w&&"(Saving...)"]}),D.jsx(fke,{theme:"snow",modules:he,formats:me,value:(()=>{var Se,Ye;const ie=v[E],Ce=y[E],Oe=(Ye=(Se=p==null?void 0:p.properties)==null?void 0:Se[E])==null?void 0:Ye.default;return ie||Ce||Oe||""})(),onChange:ie=>{const Ce={...v,[E]:ie};x(Ce),z(!0)},style:{minHeight:100,marginBottom:16,background:"#fff"}}),D.jsx(He,{sx:{mt:6,p:2},children:D.jsx("button",{"data-id":"save-content-button",disabled:!1,onClick:()=>{try{if(!(p!=null&&p.properties))return;const Ce=v[E]||y[E]||"",Oe={...y,[E]:Ce};g(Oe),n==null||n(Oe),f(Cl({fieldKey:E,fieldSchema:{...p.properties[E],title:"Content",default:Ce},required:!1})),z(!1),S(!0),setTimeout(()=>{S(!1)},500)}catch(ie){console.error("Error in save button click handler:",ie)}},style:{width:"100%",padding:"12px 16px",background:"#1976d2",color:"#fff",border:"none",borderRadius:4,fontSize:"14px",fontWeight:"500",cursor:"pointer"},children:D.jsx(Xe,{fontSize:"14px",children:w?"Saving...":"Save Content"})})})]}):D.jsxs(D.Fragment,{children:[D.jsx(Do,{"data-id":"label-input",fullWidth:!0,label:"Label",value:W,onChange:ie=>{U(ie.target.value),z(!0)},sx:{mb:2}}),(()=>{const ie=(m.elements||[]).find(Oe=>Oe._key===E);return(ie==null?void 0:ie.type)==="HorizontalLayout"||q?null:D.jsxs(He,{display:"flex",alignItems:"center",mb:2,children:[D.jsx("input",{"data-id":"required-checkbox",type:"checkbox",checked:K,onChange:Oe=>{H(Oe.target.checked),z(!0)},id:"required-checkbox",style:{marginRight:8}}),D.jsx("label",{htmlFor:"required-checkbox",children:D.jsx(Xe,{fontSize:"14px",children:"Required"})})]})})(),L&&!A&&D.jsxs(He,{display:"flex",alignItems:"center",mb:2,children:[D.jsx("input",{"data-id":"readonly-checkbox",type:"checkbox",checked:F,onChange:ie=>{R(ie.target.checked),z(!0)},id:"readonly-checkbox",style:{marginRight:8}}),D.jsx("label",{htmlFor:"readonly-checkbox",children:D.jsx(Xe,{fontSize:"14px",children:"Read Only"})})]}),E&&Array.isArray(Y)&&Y.length>0&&D.jsxs(D.Fragment,{children:[D.jsxs(He,{display:"flex",justifyContent:"space-between",mb:2,children:[D.jsx(Xe,{fontSize:"14px",sx:{mt:2},children:"Options"}),D.jsx("button",{"data-id":"add-option-button",id:"add-option-button",onClick:()=>G([...Y,`Select ${Y.length+1}`]),style:{background:"rgb(25, 118, 210)",color:"#fff",border:"none",borderRadius:4,padding:"6px 12px",marginTop:4,cursor:"pointer",fontSize:"14px"},children:D.jsx(Xe,{fontSize:"14px",children:"Add Option"})})]}),D.jsx(He,{children:Y.map((ie,Ce)=>D.jsxs(He,{display:"flex",alignItems:"center",mb:1,children:[D.jsx(Do,{"data-id":"option-input",value:ie,onChange:Oe=>{const Le=[...Y];Le[Ce]=Oe.target.value,G(Le),Q(!0)},sx:{flex:1,mr:1}}),D.jsx("button",{"data-id":"remove-option-button",id:"remove-option-button",color:"error",onClick:()=>{if(Y.length<=1){alert("At least one option must be retained");return}const Oe=Y.filter((Le,Se)=>Se!==Ce);G(Oe),Q(!0)},disabled:Y.length<=1,style:{background:Y.length<=1?"#ccc":"rgb(229, 115, 115)",color:"#fff",border:"none",borderRadius:4,padding:"4px 8px",marginTop:4,cursor:Y.length<=1?"not-allowed":"pointer",height:"40px",fontSize:"14px"},children:D.jsx(Xe,{fontSize:"14px",children:"Remove"})})]},Ce))})]}),D.jsx("button",{"data-id":"save-field-props-button",onClick:Ee,style:{marginTop:8,padding:"8px 16px",background:"#1976d2",color:"#fff",border:"none",borderRadius:4,fontSize:"14px"},children:D.jsx(Xe,{fontSize:"14px",children:"Save"})})]})}):D.jsx(Xe,{fontSize:"14px",children:"Select a field or group to edit"})]})]})},yke=({onSchemaChange:e,onUiSchemaChange:t,onDataChange:n,onSave:r,schema:i,uischema:a,data:s={},enableSubmit:l,setHeight:c,showSection:u,readonly:d})=>{const f=ns(w=>w.formBuilder.schema),h=ns(w=>w.formBuilder.uischema),[p,b]=B.useState(s),m=B.useRef(""),y=B.useRef("");B.useEffect(()=>{const w=JSON.stringify(s||{});w!==m.current&&(b(s),m.current=w)},[s]);const g=B.useCallback(w=>{const S=JSON.stringify(w||{});!w||Object.keys(w).length===0||(S!==y.current?(b(w),n==null||n(w),y.current=S):console.log("Layout - data unchanged, skipping update"))},[n,p]),v=B.useCallback(w=>{if(!p||!Object.prototype.hasOwnProperty.call(p,w))return;const S={...p};delete S[w],b(S),y.current=JSON.stringify(S),n==null||n(S)},[p,n]),x=B.useCallback((w,S,O)=>{r==null||r(w,S,O)},[r]);return D.jsx(He,{children:D.jsxs(He,{display:"flex",flexDirection:"row",border:"1px dashed grey",borderRadius:2,p:3,height:c?`calc(${c} - 10vh)`:"90vh",sx:{overflowY:"scroll"},bgcolor:"#fafafa",id:"layout-form-builder",children:[D.jsx(He,{flex:1,minWidth:0,children:D.jsx(mke,{onSchemaChange:e,onUiSchemaChange:t,onDataChange:g,onFieldDeleted:v,onSave:r,schema:i,uischema:a,data:p,setHeight:c?`calc(${c} - 10vh)`:"90vh",showSection:u})}),D.jsx(ta,{orientation:"vertical",flexItem:!0,sx:{mx:2}}),D.jsx(He,{flex:1,minWidth:0,children:D.jsx(O_e,{formData:p,onDataChange:g,onSave:x,schema:f,uischema:h,enableSubmit:l,setHeight:c,readOnly:d})})]})})},gke=Nf({typography:{fontFamily:"Figtree"},components:{MuiFormLabel:{styleOverrides:{root:{color:"#000",fontWeight:500,"&.Mui-focused":{color:"#000"},"&.Mui-error":{color:"#000"}}}},MuiGrid:{styleOverrides:{root:{gap:16}}}}}),bke=e=>D.jsx(M2,{theme:gke,children:D.jsx(He,{children:D.jsx(sF,{store:oC,children:D.jsx(nL,{backend:HL,children:D.jsx(yke,{...e})})})})});exports.FormBuilder=bke;exports.FormRenderer=vM;exports.addField=go;exports.formBuilderReducer=rC;exports.updateField=Cl;