var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{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`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u{t.exports=d()})),p=o((e=>{var t=f();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=u(),n=f(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1pe||(e.current=fe[pe],fe[pe]=null,pe--)}function ge(e,t){pe++,fe[pe]=e.current,e.current=t}var _e=me(null),ve=me(null),ye=me(null),be=me(null);function xe(e,t){switch(ge(ye,t),ge(ve,e),ge(_e,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pp(t),e=mp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}he(_e),ge(_e,e)}function Se(){he(_e),he(ve),he(ye)}function Ce(e){var t=e.memoizedState;t!==null&&(ch._currentValue=t.memoizedState,ge(be,e)),t=_e.current;var n=mp(t,e.type);t!==n&&(ge(ve,e),ge(_e,n))}function we(e){ve.current===e&&(he(_e),he(ve)),be.current===e&&(he(be),ch._currentValue=de)}var Te,Ee;function De(e){if(Te===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Te=t&&t[1]||``,Ee=-1)`:-1i||c[r]!==l[i]){var u=` `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Oe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?De(n):``}function U(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De(`Lazy`);case 13:return e.child!==t&&t!==null?De(`Suspense Fallback`):De(`Suspense`);case 19:return De(`SuspenseList`);case 0:case 15:return ke(e.type,!1);case 11:return ke(e.type.render,!1);case 1:return ke(e.type,!0);case 31:return De(`Activity`);case 30:return De(`ViewTransition`);default:return``}}function Ae(e){try{var t=``,n=null;do t+=U(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var je=Object.prototype.hasOwnProperty,Me=t.unstable_scheduleCallback,Ne=t.unstable_cancelCallback,Pe=t.unstable_shouldYield,Fe=t.unstable_requestPaint,Ie=t.unstable_now,Le=t.unstable_getCurrentPriorityLevel,Re=t.unstable_ImmediatePriority,ze=t.unstable_UserBlockingPriority,Be=t.unstable_NormalPriority,W=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,He=t.log,Ue=t.unstable_setDisableYieldValue,We=null,G=null;function Ge(e){if(typeof He==`function`&&Ue(e),G&&typeof G.setStrictMode==`function`)try{G.setStrictMode(We,e)}catch{}}var Ke=Math.clz32?Math.clz32:Ye,qe=Math.log,Je=Math.LN2;function Ye(e){return e>>>=0,e===0?32:31-(qe(e)/Je|0)|0}var Xe=256,Ze=262144,Qe=4194304;function $e(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function et(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=$e(n))):i=$e(o):i=$e(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=$e(n))):i=$e(o)):i=$e(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function tt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function nt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0n;n++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function st(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0=ar),cr=` `,lr=!1;function ur(e,t){switch(e){case`keyup`:return rr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function dr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var fr=!1;function pr(e,t){switch(e){case`compositionend`:return dr(t);case`keypress`:return t.which===32?(lr=!0,cr):null;case`textInput`:return e=t.data,e===cr&&lr?null:e;default:return null}}function mr(e,t){if(fr)return e===`compositionend`||!ir&&ur(e,t)?(e=En(),Tn=wn=Cn=null,fr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Lr(n)}}function Rr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ir(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ir(e.document)}return t}function Br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Vr=bn&&`documentMode`in document&&11>=document.documentMode,Hr=null,Ur=null,Wr=null,Gr=!1;function Kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gr||Hr==null||Hr!==Ir(r)||(r=Hr,`selectionStart`in r&&Br(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Wr&&Fr(Wr,r)||(Wr=r,r=Xf(Ur,`onSelect`),0>=o,i-=o,Hi=1<<32-Ke(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Zi&&Wi(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Zi&&Wi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Zi&&Wi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Zi&&Wi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===j&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===j){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),to(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===B&&Ja(l)===r.type){n(e,r.sibling),c=a(r,o.props),to(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=ki(o.props.children,e.mode,c,o.key),to(c,o),c.return=e,e=c):(c=Oi(o.type,o.key,o.props,null,e.mode,c),to(c,o),c.return=e,e=c)}return s(e);case A:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Mi(o,e.mode,c),c.return=e,e=c}return s(e);case B:return o=Ja(o),_(e,r,o,c)}if(le(o))return h(e,r,o,c);if(oe(o)){if(l=oe(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,eo(o),c);if(o.$$typeof===F)return _(e,r,ya(e,o),c);no(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Ai(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{$a=0;var i=_(e,t,n,r);return Qa=null,i}catch(t){if(t===Ha||t===Wa)throw t;var a=wi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var io=ro(!0),ao=ro(!1),oo=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function co(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function lo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function uo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Yu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=xi(e),bi(e,null,n),t}return _i(e,r,t,n),xi(e)}function fo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}function po(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var mo=!1;function ho(){if(mo){var e=Na;if(e!==null)throw e}}function go(e,t,n,r){mo=!1;var i=e.updateQueue;oo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Qu&f)===f:(r&f)===f){f!==0&&f===Ma&&(mo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:oo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),od|=o,e.lanes=o,e.memoizedState=d}}function _o(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function vo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=H.T,s={};s.types=o===null?null:o.types,H.T=s,rc(e,!1,t,n);try{var c=i(),l=H.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?nc(e,t,Ia(c,r),jd(e)):nc(e,t,r,jd(e))}catch(n){nc(e,t,{then:function(){},status:`rejected`,reason:n},jd())}finally{ue.p=a,o!==null&&s.types!==null&&(o.types=s.types),H.T=o}}function Ks(){}function qs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Js(e).queue;Gs(e,a,t,de,n===null?Ks:function(){return Ys(e),n(r)})}function Js(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Z,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Z,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ys(e){var t=Js(e);t.next===null&&(t=e.alternate.memoizedState),nc(e,t.next.queue,{},jd())}function Xs(){return va(ch)}function Zs(){return es().memoizedState}function Qs(){return es().memoizedState}function $s(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jd();e=lo(n);var r=uo(t,e,n);r!==null&&(Pd(r,t,n),fo(r,t,n)),t={cache:Ta()},e.payload=t;return}t=t.return}}function ec(e,t,n){var r=jd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ic(e)?ac(t,n):(n=vi(e,t,n,r),n!==null&&(Pd(n,e,r),oc(n,t,r)))}function tc(e,t,n){nc(e,t,n,jd())}function nc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ic(e))ac(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Pr(s,o))return _i(e,t,i,0),Xu===null&&gi(),!1}catch{}if(n=vi(e,t,i,r),n!==null)return Pd(n,e,r),oc(n,t,r),!0}return!1}function rc(e,t,n,r){if(r={lane:2,revertLane:Ff(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ic(e)){if(t)throw Error(i(479))}else t=vi(e,n,r,2),t!==null&&Pd(t,e,2)}function ic(e){var t=e.alternate;return e===Fo||t!==null&&t===Fo}function ac(e,t){zo=Ro=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}var sc={readContext:va,use:rs,useCallback:Wo,useContext:Wo,useEffect:Wo,useImperativeHandle:Wo,useLayoutEffect:Wo,useInsertionEffect:Wo,useMemo:Wo,useReducer:Wo,useRef:Wo,useState:Wo,useDebugValue:Wo,useDeferredValue:Wo,useTransition:Wo,useSyncExternalStore:Wo,useId:Wo,useHostTransitionStatus:Wo,useFormState:Wo,useActionState:Wo,useOptimistic:Wo,useMemoCache:Wo,useCacheRefresh:Wo,useEffectEvent:Wo},cc={readContext:va,use:rs,useCallback:function(e,t){return $o().memoizedState=[e,t===void 0?null:t],e},useContext:va,useEffect:Ms,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),As(4194308,4,Rs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return As(4194308,4,e,t)},useInsertionEffect:function(e,t){As(4,2,e,t)},useMemo:function(e,t){var n=$o();t=t===void 0?null:t;var r=e();if(Bo){Ge(!0);try{e()}finally{Ge(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=$o();if(n!==void 0){var i=n(t);if(Bo){Ge(!0);try{n(t)}finally{Ge(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ec.bind(null,Fo,e),[r.memoizedState,e]},useRef:function(e){var t=$o();return e={current:e},t.memoizedState=e},useState:function(e){e=ms(e);var t=e.queue,n=tc.bind(null,Fo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Bs,useDeferredValue:function(e,t){return Us($o(),e,t)},useTransition:function(){var e=ms(!1);return e=Gs.bind(null,Fo,e.queue,!0,!1),$o().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Fo,a=$o();if(Zi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Xu===null)throw Error(i(349));Qu&127||ls(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ms(ds.bind(null,r,o,e),[e]),r.flags|=2048,Os(9,{destroy:void 0},us.bind(null,r,o,n,t),null),n},useId:function(){var e=$o(),t=Xu.identifierPrefix;if(Zi){var n=Ui,r=Hi;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Vo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ht]=t,o[gt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(ap(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&ol(t)}}return dl(t),t.subtreeFlags&=-33554433,sl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ol(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ye.current,ia(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Yi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||np(e.nodeValue,n)),e||ta(t,!0)}else e=fp(e).createTextNode(r),e[ht]=t,t.stateNode=e}return dl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ia(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ht]=t}else aa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;dl(t),e=!1}else n=oa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ao(t),t):(Ao(t),null);if(t.flags&128)throw Error(i(558))}return dl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ia(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ht]=t}else aa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;dl(t),a=!1}else a=oa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Ao(t),t):(Ao(t),null)}return Ao(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ll(t,t.updateQueue),dl(t),null);case 4:return Se(),e===null&&Kf(t.stateNode.containerInfo),t.flags|=67108864,dl(t),null;case 10:return fa(t.type),dl(t),null;case 19:if(Mo(t),r=t.memoizedState,r===null)return dl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)ul(r,!1);else{if(ad!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=No(e),o!==null){for(t.flags|=128,ul(r,!1),e=o.updateQueue,t.updateQueue=e,ll(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Di(n,e),n=n.sibling;return Y(t,jo.current&1|2),Zi&&Wi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ie()>gd&&(t.flags|=128,a=!0,ul(r,!1),t.lanes=4194304)}}else{if(!a){if(e=No(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ll(t,e),ul(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!Zi)return dl(t),null}else 2*Ie()-r.renderingStartTime>gd&&n!==536870912&&(t.flags|=128,a=!0,ul(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ie(),e.sibling=null,o=jo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||Zi?Y(t,o):(n=o,ge(wo,t),ge(jo,n),To===null&&(To=t)),Zi&&Wi(t,r.treeForkCount),e}return dl(t),null;case 22:case 23:return Ao(t),Co(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(dl(t),t.subtreeFlags&6&&(t.flags|=8192)):dl(t),n=t.updateQueue,n!==null&&ll(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&he(Ra),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fa(wa),dl(t),null;case 25:return null;case 30:return t.flags|=33554432,dl(t),null}throw Error(i(156,t.tag))}function pl(e,t){switch(qi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(wa),Se(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return we(t),null;case 31:if(t.memoizedState!==null){if(Ao(t),t.alternate===null)throw Error(i(340));aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ao(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));aa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Se(),null;case 10:return fa(t.type),null;case 22:case 23:return Ao(t),Co(),e!==null&&he(Ra),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa(wa),null;case 25:return null;default:return null}}function ml(e,t){switch(qi(t),t.tag){case 3:fa(wa),Se();break;case 26:case 27:case 5:we(t);break;case 4:Se();break;case 31:t.memoizedState!==null&&Ao(t);break;case 13:Ao(t);break;case 19:Mo(t);break;case 10:fa(t.type);break;case 22:case 23:Ao(t),Co(),e!==null&&he(Ra);break;case 24:fa(wa)}}function hl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){mf(t,t.return,e)}}function gl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){mf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){mf(t,t.return,e)}}function _l(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{vo(t,n)}catch(t){mf(e,e.return,t)}}}function vl(e,t,n){n.props=hc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){mf(e,t,n)}}function yl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=li(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Lp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Rp(e);h(e.child,!1,tm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){mf(e,t,n)}}function bl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){mf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){mf(e,t,n)}else n.current=null}}function xl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n title`))),ap(r,t,n),r[ht]=e,kt(r),t=r;break a;case`link`:if(o=Km(`link`,`href`,a).get(t+(n.href||``))){for(s=0;sg&&(o=g,g=h,h=o);var _=J(s,h),v=J(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,H.T=null,n=wd,wd=null;var o=bd,s=Sd;if(yd=0,xd=bd=null,Sd=0,Yu&6)throw Error(i(331));var c=Yu;if(Yu|=4,Wu(o.current),Iu(o,o.current,s,n),Yu=c,Of(0,!1),G&&typeof G.onPostCommitFiberRoot==`function`)try{G.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{ue.p=a,H.T=r,uf(e,t)}}function pf(e,t,n){t=Pi(n,t),t=xc(e.stateNode,t,2),e=uo(e,t,2),e!==null&&(ot(e,2),Df(e))}function mf(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(vd===null||!vd.has(r))){e=Pi(n,e),n=Sc(2),r=uo(t,n,2),r!==null&&(Cc(n,r,t,e),ot(r,2),Df(r));break}}t=t.return}}function hf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ju;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(rd=!0,i.add(n),e=gf.bind(null,e,t,n),t.then(e,e))}function gf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Xu===e&&(Qu&n)===n&&(ad===4||ad===3&&(Qu&62914560)===Qu&&300>Ie()-md?Yu&2?cd|=n:Vd(e,0):cd|=n,ud===Qu&&(ud=0)),Df(e)}function _f(e,t){t===0&&(t=it()),e=yi(e,t),e!==null&&(ot(e,t),Df(e))}function vf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_f(e,n)}function yf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),_f(e,n)}function bf(e,t){return Me(e,t)}var xf=null,Sf=null,Cf=!1,wf=!1,Tf=!1,Ef=0;function Df(e){e!==Sf&&e.next===null&&(Sf===null?xf=Sf=e:Sf=Sf.next=e),wf=!0,Cf||(Cf=!0,Pf())}function Of(e,t){if(!Tf&&wf){Tf=!0;do for(var n=!1,r=xf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ke(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Nf(r,a))}else a=Qu,a=et(r,r===Xu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||tt(r,a)||(n=!0,Nf(r,a))}r=r.next}while(n);Tf=!1}}function kf(){Af()}function Af(){wf=Cf=!1;var e=0;Ef!==0&&vp()&&(e=Ef);for(var t=Ie(),n=null,r=xf;r!==null;){var i=r.next,a=jf(r,t);a===0?(r.next=null,n===null?xf=i:n.next=i,i===null&&(Sf=n)):(n=r,(e!==0||a&3)&&(wf=!0)),r=i}yd!==0&&yd!==5||Of(e,!1),Ef!==0&&(Ef=0)}function jf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&cp(d)&&(c=c.responseEnd,o+=u*(ceh){s.length=o;break}f=new Promise(Pp.bind(f)),s.push(f)}}}if(0`u`?null:document;function Em(e,t,n){var r=Tm;if(r&&typeof t==`string`&&t){var i=Yt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),bm.has(i)||(bm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),ap(t,`link`,e),kt(t),r.head.appendChild(t)))}}function Dm(e){Sm.D(e),Em(`dns-prefetch`,e,null)}function Om(e,t){Sm.C(e,t),Em(`preconnect`,e,t)}function km(e,t,n){Sm.L(e,t,n);var r=Tm;if(r&&e&&t){var i=`link[rel="preload"][as="`+Yt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Yt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Yt(n.imageSizes)+`"]`)):i+=`[href="`+Yt(e)+`"]`;var a=i;switch(t){case`style`:a=Fm(e);break;case`script`:a=zm(e)}if(!(ym.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),ym.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Im(a))||t===`script`&&r.querySelector(Bm(a))))){var o=r.createElement(`link`);ap(o,`link`,e),t===`style`&&(o[Ct]=!0,o.onload=o.onerror=function(){At(o)}),kt(o),r.head.appendChild(o)}}}function Am(e,t){Sm.m(e,t);var n=Tm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Yt(r)+`"][href="`+Yt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=zm(e)}if(!ym.has(a)&&(e=D({rel:`modulepreload`,href:e},t),ym.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Bm(a)))return}r=n.createElement(`link`),ap(r,`link`,e),kt(r),n.head.appendChild(r)}}}function jm(e,t,n){Sm.S(e,t,n);var r=Tm;if(r&&e){var i=Ot(r).hoistableStyles,a=Fm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Im(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=ym.get(a))&&Um(e,n);var c=o=r.createElement(`link`);kt(c),ap(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Hm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Mm(e,t){Sm.X(e,t);var n=Tm;if(n&&e){var r=Ot(n).hoistableScripts,i=zm(e),a=r.get(i);a||(a=n.querySelector(Bm(i)),a||(e=D({src:e,async:!0},t),(t=ym.get(i))&&Wm(e,t),a=n.createElement(`script`),kt(a),ap(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t){Sm.M(e,t);var n=Tm;if(n&&e){var r=Ot(n).hoistableScripts,i=zm(e),a=r.get(i);a||(a=n.querySelector(Bm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=ym.get(i))&&Wm(e,t),a=n.createElement(`script`),kt(a),ap(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pm(e,t,n,r){var a=(a=ye.current)?xm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Fm(n.href),t=Ot(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Fm(n.href);var o=Ot(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Im(e)))?o._p||(s.instance=o,s.state.loading=5):(o=ym.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ym.set(e,o)),Rm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=zm(n),t=Ot(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Fm(e){return`href="`+Yt(e)+`"`}function Im(e){return`link[rel="stylesheet"][`+e+`]`}function Lm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Rm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Ct]){r.loading=1;return}}else t=e.createElement(`link`),t[Ct]=!0,t.onload=t.onerror=At.bind(null,t),ap(t,`link`,n),kt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function zm(e){return`[src="`+Yt(e)+`"]`}function Bm(e){return`script[async]`+e}function Vm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Yt(n.href)+`"]`);if(r)return t.instance=r,kt(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),kt(r),ap(r,`style`,a),Hm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Fm(n.href);var o=e.querySelector(Im(a));if(o)return t.state.loading|=4,t.instance=o,kt(o),o;r=Lm(n),(a=ym.get(a))&&Um(r,a),o=(e.ownerDocument||e).createElement(`link`),kt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),ap(o,`link`,r),t.state.loading|=4,Hm(o,n.precedence,e),t.instance=o;case`script`:return o=zm(n.src),(a=e.querySelector(Bm(o)))?(t.instance=a,kt(a),a):(r=n,(a=ym.get(o))&&(r=D({},n),Wm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),kt(a),ap(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Hm(r,n.precedence,e));return t.instance}function Hm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Jm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Ym(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Xm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Zm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Qm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Zm(t),e.suspenseyImages.push(t)),e=ih.bind(e),t.decode().then(e,e))}function $m(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Fm(r.href),a=t.querySelector(Im(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,kt(a);return}a=t.ownerDocument||t,r=Lm(r),(i=ym.get(i))&&Um(r,i),a=a.createElement(`link`),kt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),ap(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=rh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var eh=0;function th(e,t){return e.stylesheets&&e.count===0&&oh(e,e.stylesheets),0eh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function nh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)oh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function rh(){this.count--,nh(this)}function ih(){this.imgCount--,nh(this)}var ah=null;function oh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ah=new Map,t.forEach(sh,e),ah=null,rh.call(e))}function sh(e,t){if(!(t.state.loading&4)){var n=ah.get(e);if(n)var r=n.get(null);else{n=new Map,ah.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()}));function _(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var v=_(`https://base-ui.com/production-error`,`Base UI`),y=_(`https://mui.com/x/production-error`,`MUI X`);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var C=`$$material`;function w(e){if(e.sheet)return e.sheet;for(var t=0;t0?re(pe,--de):0,H--,fe===10&&(H=1,le--),fe}function ve(){return fe=de2||Se(fe)>3?``:` `}function De(e,t){for(;--t&&ve()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return xe(e,be()+(t<6&&ye()==32&&ve()==32))}function Oe(e){for(;ve();)switch(fe){case e:return de;case 34:case 39:e!==34&&e!==39&&Oe(fe);break;case 40:e===41&&Oe(e);break;case 92:ve()}return de}function ke(e,t){for(;ve()&&e+fe!==57&&(e+fe!==84||ye()!==47););return`/*`+xe(t,de-1)+`*`+R(e===47?e:ve())}function U(e){for(;!Se(ye());)ve();return xe(e,de)}function Ae(e){return we(je(``,null,null,null,[``],e=Ce(e),0,[0],e))}function je(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=ve()){case 40:if(m!=108&&re(C,d-1)==58){ne(C+=V(Te(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Te(v);break;case 9:case 10:case 13:case 32:C+=Ee(m);break;case 92:C+=De(be()-1,7);continue;case 47:switch(ye()){case 42:case 47:se(Ne(ke(ve(),be()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=ae(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=V(C,/\f/g,``)),p>0&&ae(C)-d&&se(p>32?Pe(C+`;`,r,n,d-1):Pe(V(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(se(S=Me(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123){if(u===0)je(C,t,S,S,b,a,d,s,x);else switch(f===99&&re(C,3)===110?100:f){case 100:case 108:case 109:case 115:je(e,S,S,r&&se(Me(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:je(C,S,S,S,[``],x,0,s,x)}}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+ae(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&_e()==125)continue}switch(C+=R(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(ae(C)-1)*_,_=1;break;case 64:ye()===45&&(C+=Te(ve())),f=ye(),u=d=ae(y=C+=U(be())),v++;break;case 45:m===45&&ae(C)==2&&(h=0)}}return a}function Me(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=oe(f),m=0,h=0,g=0;m0?f[_]+` `+v:V(v,/&\f/g,f[_])))&&(c[g++]=y);return me(e,t,n,i===0?j:s,c,l,u)}function Ne(e,t,n){return me(e,t,n,A,R(ge()),ie(e,2,-2),0)}function Pe(e,t,n,r){return me(e,t,n,M,ie(e,0,r),ie(e,r+1,-1),r)}function Fe(e,t){for(var n=``,r=oe(e),i=0;i6)switch(re(e,t+1)){case 109:if(re(e,t+4)!==45)break;case 102:return V(e,/(.+:)(.+)-([^]+)/,`$1`+k+`$2-$3$1`+O+(re(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~ne(e,`stretch`)?G(V(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(re(e,t+1)!==115)break;case 6444:switch(re(e,ae(e)-3-(~ne(e,`!important`)&&10))){case 107:return V(e,`:`,`:`+k)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+k+(re(e,14)===45?`inline-`:``)+`box$3$1`+k+`$2$3$1`+D+`$2box$3`)+e}break;case 5936:switch(re(e,t+11)){case 114:return k+e+D+V(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return k+e+D+V(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return k+e+D+V(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return k+e+D+e+e}return e}var Ge=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case M:e.return=G(e.value,e.length);break;case P:return Fe([he(e,{value:V(e.value,`@`,`@`+k)})],r);case j:if(e.length)return ce(e.props,function(t){switch(te(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Fe([he(e,{props:[V(t,/:(read-\w+)/,`:`+O+`$1`)]})],r);case`::placeholder`:return Fe([he(e,{props:[V(t,/:(plac\w+)/,`:`+k+`input-$1`)]}),he(e,{props:[V(t,/:(plac\w+)/,`:`+O+`$1`)]}),he(e,{props:[V(t,/:(plac\w+)/,D+`input-$1`)]})],r)}return``})}}],Ke=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||Ge,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),Je=o(((e,t)=>{t.exports=qe()})),Ye=o(((e,t)=>{var n=Je(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g=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 et={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},tt=/[A-Z]|^ms/g,nt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rt=function(e){return e.charCodeAt(1)===45},it=function(e){return e!=null&&typeof e!=`boolean`},at=ze(function(e){return rt(e)?e:e.replace(tt,`-$&`).toLowerCase()}),ot=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(nt,function(e,t,n){return ut={name:t,styles:n,next:ut},t})}return et[e]!==1&&!rt(e)&&typeof t==`number`&&t!==0?t+`px`:t};function st(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 ut={name:i.name,styles:i.styles,next:ut},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)ut={name:o.name,styles:o.styles,next:ut},o=o.next;return a.styles+`;`}return ct(e,t,n);case`function`:if(e!==void 0){var s=ut,c=n(e);return ut=s,st(e,t,c)}}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function ct(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i96?kt:At},Mt=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},Nt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ze(t,n,r),mt(function(){return Qe(t,n,r)}),null},Pt=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=Mt(t,n,r),c=s||jt(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),q=o(((e,t)=>{t.exports=Lt()}))();function Rt(e){return e==null||Object.keys(e).length===0}function zt(e){let{styles:t,defaultTheme:n={}}=e;return(0,q.jsx)(Tt,{styles:typeof t==`function`?e=>t(Rt(e)?n:e):t})}function Bt(e,t){return It(e,t)}function Vt(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var Ht=[];function Ut(e){return Ht[0]=e,dt(Ht)}var Wt=o((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.view_transition`),f=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||e===d||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===f||e.getModuleId!==void 0))}})),Gt=o(((e,t)=>{t.exports=Wt()}))();function Kt(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qt(e){if(K.isValidElement(e)||(0,Gt.isValidElementType)(e)||!Kt(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=qt(e[n])}),t}function Jt(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Kt(e)&&Kt(t)&&Object.keys(t).forEach(i=>{K.isValidElement(t[i])||(0,Gt.isValidElementType)(t[i])?r[i]=t[i]:Kt(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Kt(e[i])?r[i]=Jt(e[i],t[i],n):n.clone?r[i]=Kt(t[i])?qt(t[i]):t[i]:r[i]=t[i]}),r}var Yt=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function Xt(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=Yt(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1+(e.match(Zt)?.[1]||0)-(t.match(Zt)?.[1]||0));let r=t;for(let e=0;et.startsWith(`@${e}`))||!!t.match(/^@\d/))}function tn(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function nn(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var rn={borderRadius:4};function an(e){if(e==null)return!0;for(let t in e)return!1;return!0}function on(e,t){let n=Array.isArray(t),r=Array.isArray(e);return dn(t)?t:fn(e)?pn(t):n&&r?ln(e,t):n===r?mn(e,t):pn(t)}function sn(e){let t=0,n=e.length,r=Array(n);for(t=0;t({up:t=>{let n=typeof t==`number`?t:gn[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function yn(e,t,n){let r={};return bn(r,e.theme,t,(e,t,i)=>{let a=n(t,i);e?r[e]=a:on(r,a)})}function bn(e,t,n,r){if(t??=hn,Array.isArray(n)){let i=t.breakpoints??_n;for(let t=0;t{if(e[t]==null)return null;let a=e[t],o=e.theme,s=Dn(o,r)||{};return yn(e,a,e=>{let r=En(s,i,e,t);return n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}var An={internal_cache:{}},jn={m:`margin`,p:`padding`},Mn={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},Nn={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},Pn={};for(let e in jn)Pn[e]=[jn[e]];for(let e in jn)for(let t in Mn){let n=jn[e],r=Mn[t],i=Array.isArray(r)?r.map(e=>n+e):[n+r];Pn[e+t]=i}for(let e in Nn)Pn[e]=Pn[Nn[e]];var Fn=new Set([`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`]),In=new Set([`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`]);[...Fn,...In];function Ln(e,t,n,r){let i=Dn(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function Rn(e){return Ln(e,`spacing`,8,`spacing`)}function zn(e,t){return typeof t==`string`||t==null?t:e(t)}var Bn=[``];function Vn(e,t){let n=e.theme??An,r=n?.internal_cache?.unarySpacing??Rn(n),i={};for(let n in e){if(!t.has(n))continue;let a=Pn[n]??(Bn[0]=n,Bn),o=e[n];bn(i,e.theme,o,(e,t)=>{let n=e?i[e]:i;for(let e=0;e(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function qn(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>{let n={};for(let r in e)t[r]&&on(n,t[r](e));return n};return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Jn(e){return typeof e==`number`?`${e}px solid`:e}function Yn(e,t){return kn({prop:e,themeKey:`borders`,transform:t})}var Xn=Yn(`border`,Jn),Zn=Yn(`borderTop`,Jn),Qn=Yn(`borderRight`,Jn),$n=Yn(`borderBottom`,Jn),er=Yn(`borderLeft`,Jn),tr=Yn(`borderColor`),nr=Yn(`borderTopColor`),rr=Yn(`borderRightColor`),ir=Yn(`borderBottomColor`),ar=Yn(`borderLeftColor`),or=Yn(`outline`,Jn),sr=Yn(`outlineColor`),cr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=Ln(e.theme,`shape.borderRadius`,4,`borderRadius`);return yn(e,e.borderRadius,e=>({borderRadius:zn(t,e)}))}return null};cr.propTypes={},cr.filterProps=[`borderRadius`],qn(Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,cr,or,sr);var lr=e=>{if(e.gap!==void 0&&e.gap!==null){let t=Ln(e.theme,`spacing`,8,`gap`);return yn(e,e.gap,e=>({gap:zn(t,e)}))}return null};lr.propTypes={},lr.filterProps=[`gap`];var ur=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=Ln(e.theme,`spacing`,8,`columnGap`);return yn(e,e.columnGap,e=>({columnGap:zn(t,e)}))}return null};ur.propTypes={},ur.filterProps=[`columnGap`];var dr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=Ln(e.theme,`spacing`,8,`rowGap`);return yn(e,e.rowGap,e=>({rowGap:zn(t,e)}))}return null};dr.propTypes={},dr.filterProps=[`rowGap`],qn(lr,ur,dr,kn({prop:`gridColumn`}),kn({prop:`gridRow`}),kn({prop:`gridAutoFlow`}),kn({prop:`gridAutoColumns`}),kn({prop:`gridAutoRows`}),kn({prop:`gridTemplateColumns`}),kn({prop:`gridTemplateRows`}),kn({prop:`gridTemplateAreas`}),kn({prop:`gridArea`}));function fr(e,t){return t===`grey`?t:e}qn(kn({prop:`color`,themeKey:`palette`,transform:fr}),kn({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:fr}),kn({prop:`backgroundColor`,themeKey:`palette`,transform:fr}));var pr=gn;function mr(e){return e<=1&&e!==0?`${e*100}%`:e}var hr=kn({prop:`width`,transform:mr}),gr=e=>e.maxWidth!==void 0&&e.maxWidth!==null?yn(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||pr[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:mr(t)}}):null;gr.filterProps=[`maxWidth`];var _r=kn({prop:`minWidth`,transform:mr}),vr=kn({prop:`height`,transform:mr}),yr=kn({prop:`maxHeight`,transform:mr}),br=kn({prop:`minHeight`,transform:mr});kn({prop:`size`,cssProperty:`width`,transform:mr}),kn({prop:`size`,cssProperty:`height`,transform:mr}),qn(hr,gr,_r,vr,yr,br,kn({prop:`boxSizing`}));var xr={border:{themeKey:`borders`,transform:Jn},borderTop:{themeKey:`borders`,transform:Jn},borderRight:{themeKey:`borders`,transform:Jn},borderBottom:{themeKey:`borders`,transform:Jn},borderLeft:{themeKey:`borders`,transform:Jn},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:Jn},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:cr},color:{themeKey:`palette`,transform:fr},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:fr},backgroundColor:{themeKey:`palette`,transform:fr},p:{style:Gn},pt:{style:Gn},pr:{style:Gn},pb:{style:Gn},pl:{style:Gn},px:{style:Gn},py:{style:Gn},padding:{style:Gn},paddingTop:{style:Gn},paddingRight:{style:Gn},paddingBottom:{style:Gn},paddingLeft:{style:Gn},paddingX:{style:Gn},paddingY:{style:Gn},paddingInline:{style:Gn},paddingInlineStart:{style:Gn},paddingInlineEnd:{style:Gn},paddingBlock:{style:Gn},paddingBlockStart:{style:Gn},paddingBlockEnd:{style:Gn},m:{style:Un},mt:{style:Un},mr:{style:Un},mb:{style:Un},ml:{style:Un},mx:{style:Un},my:{style:Un},margin:{style:Un},marginTop:{style:Un},marginRight:{style:Un},marginBottom:{style:Un},marginLeft:{style:Un},marginX:{style:Un},marginY:{style:Un},marginInline:{style:Un},marginInlineStart:{style:Un},marginInlineEnd:{style:Un},marginBlock:{style:Un},marginBlockStart:{style:Un},marginBlockEnd:{style:Un},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:lr},rowGap:{style:dr},columnGap:{style:ur},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:mr},maxWidth:{style:gr},minWidth:{transform:mr},height:{transform:mr},maxHeight:{transform:mr},minHeight:{transform:mr},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`}},Sr={};function Cr(){function e(t){if(!t.sx)return null;let{sx:n,theme:r=Sr,nested:i}=t,a=r.unstable_sxConfig??xr,o={sx:null,theme:r,nested:!0};function s(n){let s=n;if(typeof n==`function`)s=n(r);else if(typeof n!=`object`)return n;if(!s)return null;let c=r.breakpoints??_n,l=Sn(c);for(let n in s){let i=Er(s[n],r);i!=null&&(typeof i==`object`?a[n]?Tr(l,n,i,r,a):wn(c,i)?bn(l,t.theme,i,(e,t)=>{l[e][n]=t}):(o.sx=i,l[n]=e(o)):Tr(l,n,i,r,a))}return!i&&r.modularCssLayers?{"@layer sx":Qt(r,Cn(c,l))}:Qt(r,Cn(c,l))}return Array.isArray(n)?n.map(s):s(n)}return e.filterProps=[`sx`],e}var wr=Cr();function Tr(e,t,n,r,i){let a=i[t];if(!a){e[t]=n;return}if(n==null)return;let{themeKey:o}=a;if(o===`typography`&&n===`inherit`){e[t]=n;return}let{style:s}=a;if(s){on(e,s({[t]:n,theme:r}));return}let{cssProperty:c=t,transform:l}=a,u=Dn(r,o);bn(e,r,n,(n,r)=>{let i=En(u,l,r,t);c===!1?on(n?e[n]:e,i):n?e[n][c]=i:e[c]=i})}function Er(e,t){return typeof e==`function`?e(t):e}function Dr(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Or(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Xt(n),c=Kn(i),l=Jt({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...rn,...a}},o);return l=nn(l),l.applyStyles=Dr,l=t.reduce((e,t)=>Jt(e,t),l),l.unstable_sxConfig={...xr,...o?.unstable_sxConfig},l.unstable_sx=function(e){return wr({sx:e,theme:this})},l.internal_cache={},l}function kr(e){return Object.keys(e).length===0}function Ar(e=null){let t=K.useContext(vt);return!t||kr(t)?e:t}var jr=Or();function Mr(e=jr){return Ar(e)}function Nr(e){let t=Ut(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Pr({styles:e,themeId:t,defaultTheme:n={}}){let r=Mr(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>Nr(typeof e==`function`?e(i):e)):Nr(a)),(0,q.jsx)(zt,{styles:a})}var Fr=e=>e,Ir=(()=>{let e=Fr;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Fr}}})();function Lr(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;te!==`theme`&&e!==`sx`&&e!==`as`})(wr);return K.forwardRef(function(e,o){let s=Mr(n),{className:c,component:l=`div`,...u}=e;return(0,q.jsx)(a,{as:l,ref:o,className:J(c,i?i(r):r),theme:t&&s[t]||s,...u})})}var zr={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 Br(e,t,n=`Mui`){let r=zr[t];return r?`${n}-${r}`:`${Ir.generate(e)}-${t}`}function Vr(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=Br(e,t,n)}),r}function Hr(e){let{variants:t,...n}=e,r={variants:t,style:Ut(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=Ut(e.style))}),r}var Ur=Or();function Wr(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function Gr(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Kr(e){return e?(t,n)=>n[e]:null}function qr(e,t,n){e.theme=an(e.theme)?n:e.theme[t]||e.theme}function Jr(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Jr(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Gr(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?Gr(Ut(i),n):i}return Yr(e,r.variants,[t],n)}return r?.isProcessed?n?Gr(Ut(r.style),n):r.style:n?Gr(Ut(r),n):r}function Yr(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a{Vt(e,e=>e.filter(e=>e!==wr));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=Kr(Qr(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=Wr;o===`Root`||o===`root`?m=r:o?m=i:Zr(e)&&(m=void 0);let h=Bt(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return Jr(t,e,t.theme.modularCssLayers?d:void 0)};if(Kt(e)){let t=Hr(e);return function(e){return t.variants?Jr(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?Gr(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=Jr(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?Yr(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(wr),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=[...r,...i,...o],c=h(...s);return e.muiName&&(c.muiName=e.muiName),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function Zr(e){return typeof e==`string`&&e.charCodeAt(0)>96}function Qr(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var $r=Xr();function ei(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e,s=i[t],c=o[t];typeof s==`function`||typeof c==`function`?r[a][t]=(...e)=>ei((typeof s==`function`?s(...e):s)??{},(typeof c==`function`?c(...e):c)??{},n):r[a][t]=ei(s??{},c??{},n)}}}else a===`className`&&n&&t.className!==void 0?r.className=J(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function ti(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ei(t.components[n].defaultProps,r)}function ni(e){let{props:t,name:n,defaultTheme:r,themeId:i}=e,a=Mr(r);return i&&(a=a[i]||a),ti({theme:a,name:n,props:t})}var ri=typeof window<`u`?K.useLayoutEffect:K.useEffect;function ii(e,t,n,r,i){let[a,o]=K.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return ri(()=>{if(!n)return;let t=n(e),r=()=>{o(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e,n]),a}var ai={...K}.useSyncExternalStore;function oi(e,t,n,r,i){let a=K.useCallback(()=>t,[t]),o=K.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){let{matches:t}=r(e);return()=>t}return a},[a,e,r,i,n]),[s,c]=K.useMemo(()=>{if(n===null)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[a,n,e]);return ai(c,s,o)}function si(e={}){let{themeId:t}=e;return function(e,n={}){let r=Ar();r&&t&&(r=r[t]||r);let i=typeof window<`u`&&window.matchMedia!==void 0?window.matchMedia:null,{defaultMatches:a=!1,matchMedia:o,ssrMatchMedia:s=null,noSsr:c=!1}=ti({name:`MuiUseMediaQuery`,props:n,theme:r}),l=K.useMemo(()=>o===void 0?i===null?null:i.bind(window):o,[o,i]),u=typeof e==`function`?e(r):e;return u=u.replace(/^@media( ?)/m,``),u.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(` `)),(ai===void 0?ii:oi)(u,a,l,s,c)}}si();function ci(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function li(e,t=0,n=1){return ci(e,t,n)}function ui(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function di(e){if(e.type)return e;if(e.charAt(0)===`#`)return di(ui(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(S(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 Error(S(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var fi=e=>{let t=di(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},pi=(e,t)=>{try{return fi(e)}catch{return e}};function mi(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function hi(e){e=di(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),mi({type:s,values:c})}function gi(e){e=di(e);let t=e.type===`hsl`||e.type===`hsla`?di(hi(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function _i(e,t){let n=gi(e),r=gi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function vi(e,t){return e=di(e),t=li(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,mi(e)}function yi(e,t,n){try{return vi(e,t)}catch{return e}}function bi(e,t){if(e=di(e),t=li(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 mi(e)}function xi(e,t,n){try{return bi(e,t)}catch{return e}}function Si(e,t){if(e=di(e),t=li(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 mi(e)}function Ci(e,t,n){try{return Si(e,t)}catch{return e}}function wi(e,t=.15){return gi(e)>.5?bi(e,t):Si(e,t)}function Ti(e,t,n){try{return wi(e,t)}catch{return e}}var Ei=K.createContext(void 0),Di=()=>K.useContext(Ei)??!1,Oi=K.createContext(void 0);function ki(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?ei(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?ei(i,r,t.components.mergeClassNameAndStyle):r}function Ai({props:e,name:t}){return ki({props:e,name:t,theme:{components:K.useContext(Oi)}})}var ji=0;function Mi(e){let[t,n]=K.useState(e),r=e||t;return K.useEffect(()=>{t??(ji+=1,n(`mui-${ji}`))},[t]),r}var Ni={...K}.useId;function Pi(e){if(Ni!==void 0){let t=Ni();return e??t}return Mi(e)}var Fi={theme:void 0};function Ii(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Fi.theme=r.theme,i=Hr(e(Fi)),t=i,n=r.theme),i}}function Li(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.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}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var Ri=new Set([`__proto__`,`constructor`,`prototype`]),zi=(e,t,n,r=[])=>{let i=e;for(let e=0;e{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},Vi=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function Hi(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Bi(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Vi(e,t);Object.assign(i,{[r]:c}),zi(a,e,`var(${r})`,s),zi(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function Ui(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=Hi(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Hi(n,t);p=Jt(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=Hi(h,t);p=Jt(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=Jt(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.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)`}}),t}}}function Wi(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function Gi(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;ee.filter(e=>t.includes(e)),Ji=(e,t,n)=>{let r=e.keys[0];Array.isArray(t)?t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(r===0?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)}):t&&typeof t==`object`?(Object.keys(t).length>e.keys.length?e.keys:qi(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){let a=t[i];a!==void 0&&n((t,n)=>{r===i?Object.assign(t,n):t[e.up(i)]=n},a)}}):(typeof t==`number`||typeof t==`string`)&&n((e,t)=>{Object.assign(e,t)},t)};function Yi(e){return`--Grid-${e}Spacing`}function Xi(e){return`--Grid-parent-${e}Spacing`}var Zi=`--Grid-columns`,Qi=`--Grid-parent-columns`,$i=({theme:e,ownerState:t})=>{let n={};return Ji(e.breakpoints,t.size,(e,t)=>{let r={};t===`grow`&&(r={flexBasis:0,flexGrow:1,maxWidth:`100%`}),t===`auto`&&(r={flexBasis:`auto`,flexGrow:0,flexShrink:0,maxWidth:`none`,width:`auto`}),typeof t==`number`&&(r={flexGrow:0,flexBasis:`auto`,width:`calc(100% * ${t} / var(${Qi}) - (var(${Qi}) - ${t}) * (var(${Xi(`column`)}) / var(${Qi})))`}),e(n,r)}),n},ea=({theme:e,ownerState:t})=>{let n={};return Ji(e.breakpoints,t.offset,(e,t)=>{let r={};t===`auto`&&(r={marginLeft:`auto`}),typeof t==`number`&&(r={marginLeft:t===0?`0px`:`calc(100% * ${t} / var(${Qi}) + var(${Xi(`column`)}) * ${t} / var(${Qi}))`}),e(n,r)}),n},ta=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={[Zi]:12};return Ji(e.breakpoints,t.columns,(e,t)=>{let r=t??12;e(n,{[Zi]:r,"> *":{[Qi]:r}})}),n},na=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Ji(e.breakpoints,t.rowSpacing,(t,r)=>{let i=typeof r==`string`?r:e.spacing?.(r);t(n,{[Yi(`row`)]:i,"> *":{[Xi(`row`)]:i}})}),n},ra=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Ji(e.breakpoints,t.columnSpacing,(t,r)=>{let i=typeof r==`string`?r:e.spacing?.(r);t(n,{[Yi(`column`)]:i,"> *":{[Xi(`column`)]:i}})}),n},ia=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Ji(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),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(${Yi(`row`)}) var(${Yi(`column`)})`}}),oa=e=>{let t=[];return Object.entries(e).forEach(([e,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${e}-${String(n)}`)}),t},sa=(e,t=`xs`)=>{function n(e){return e===void 0?!1:typeof e==`string`&&!Number.isNaN(Number(e))||typeof e==`number`&&e>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e==`object`&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]},ca=e=>e===void 0?[]:typeof e==`object`?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`],la=Or(),ua=$r(`div`,{name:`MuiGrid`,slot:`Root`});function da(e){return ni({props:e,name:`MuiGrid`,defaultTheme:la})}function fa(e={}){let{createStyledComponent:t=ua,useThemeProps:n=da,useTheme:r=Mr,componentName:i=`MuiGrid`}=e,a=(e,t)=>{let{container:n,direction:r,spacing:a,wrap:o,size:s}=e;return Gi({root:[`root`,n&&`container`,o!==`wrap`&&`wrap-xs-${String(o)}`,...ca(r),...oa(s),...n?sa(a,t.breakpoints.keys[0]):[]]},e=>Br(i,e),{})};function o(e,t,n=()=>!0){let r={};return e===null||(Array.isArray(e)?e.forEach((e,i)=>{e!==null&&n(e)&&t.keys[i]&&(r[t.keys[i]]=e)}):typeof e==`object`?Object.keys(e).forEach(t=>{let i=e[t];i!=null&&n(i)&&(r[t]=i)}):r[t.keys[0]]=e),r}let s=t(ta,ra,na,$i,ia,aa,ea),c=K.forwardRef(function(e,t){let i=r(),c=n(e),{className:l,children:u,columns:d=12,container:f=!1,component:p=`div`,direction:m=`row`,wrap:h=`wrap`,size:g={},offset:_={},spacing:v=0,rowSpacing:y=v,columnSpacing:b=v,unstable_level:x=0,...S}=c,C=o(g,i.breakpoints,e=>e!==!1),w=o(_,i.breakpoints),T=e.columns??(x?void 0:d),E=e.spacing??(x?void 0:v),D=e.rowSpacing??e.spacing??(x?void 0:y),O=e.columnSpacing??e.spacing??(x?void 0:b),k={...c,level:x,columns:T,container:f,direction:m,wrap:h,spacing:E,rowSpacing:D,columnSpacing:O,size:C,offset:w},A=a(k,i);return(0,q.jsx)(s,{ref:t,as:p,ownerState:k,className:J(A.root,l),...S,children:K.Children.map(u,e=>K.isValidElement(e)&&Ki(e,[`Grid`])&&f&&e.props.container?K.cloneElement(e,{unstable_level:e.props?.unstable_level??x+1}):e)})});return c.muiName=`Grid`,c}var pa={black:`#000`,white:`#fff`},ma={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`},ha={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},ga={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},_a={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},va={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},ya={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},ba={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function xa(){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:pa.white,default:pa.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}}}var Sa=xa();function Ca(){return{text:{primary:pa.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:pa.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}}}var wa=Ca();function Ta(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=Si(e.main,i):t===`dark`&&(e.dark=bi(e.main,a)))}function Ea(e,t,n,r,i){let a=i.light||i,o=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 ${(o*100).toFixed(0)}%)`))}function Da(e=`light`){return e===`dark`?{main:va[200],light:va[50],dark:va[400]}:{main:va[700],light:va[400],dark:va[800]}}function Oa(e=`light`){return e===`dark`?{main:ha[200],light:ha[50],dark:ha[400]}:{main:ha[500],light:ha[300],dark:ha[700]}}function ka(e=`light`){return e===`dark`?{main:ga[500],light:ga[300],dark:ga[700]}:{main:ga[700],light:ga[400],dark:ga[800]}}function Aa(e=`light`){return e===`dark`?{main:ya[400],light:ya[300],dark:ya[700]}:{main:ya[700],light:ya[500],dark:ya[900]}}function ja(e=`light`){return e===`dark`?{main:ba[400],light:ba[300],dark:ba[700]}:{main:ba[800],light:ba[500],dark:ba[900]}}function Ma(e=`light`){return e===`dark`?{main:_a[400],light:_a[300],dark:_a[700]}:{main:`#ed6c02`,light:_a[500],dark:_a[900]}}function Na(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Pa(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||Da(t),s=e.secondary||Oa(t),c=e.error||ka(t),l=e.info||Aa(t),u=e.success||ja(t),d=e.warning||Ma(t);function f(e){return i?Na(e):_i(e,wa.text.primary)>=n?wa.text.primary:Sa.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(S(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(S(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(Ea(i,e,`light`,a,r),Ea(i,e,`dark`,o,r)):(Ta(e,`light`,a,r),Ta(e,`dark`,o,r)),e.contrastText||(e.contrastText=f(e.main)),e},m;return t===`light`?m=xa():t===`dark`&&(m=Ca()),Jt({common:{...pa},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:ma,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}var Fa=`--_focusVisible-offset`,Ia=`--_focusVisible-behavior`,La=`--_focusVisible-shadow`,Ra=`var(${Fa}, 1)`,za=`var(${Ia}, )`,Ba={[Fa]:1,[Ia]:`initial`};function Va(e){return{[La]:e}}function Ha(e){return{[Fa]:-e,[Ia]:`inset`}}function Ua(e,t){return t.reduce((e,t)=>t&&`focusVisible`in t?Jt(e,{focusVisible:t.focusVisible}):e,{focusVisible:e}).focusVisible}function Wa(e){return typeof e==`object`&&!!e&&typeof e.outlineOffset==`string`&&e.outlineOffset.includes(Fa)}function Ga(e,t){return Ka({outlineStyle:`solid`,outlineColor:t,outlineWidth:2,outlineOffset:2,boxShadow:`var(${La}, 0 0)`,...e===!0?null:e})}function Ka(e){let t=e.outlineOffset??0;(typeof t!=`string`||!t.includes(Fa))&&(e.outlineOffset=`calc(${Ra} * ${typeof t==`number`?`${t}px`:t})`);let n=new Set([`none`,`initial`,`inherit`,`unset`,`revert`,`revert-layer`]);return typeof e.boxShadow==`string`&&!n.has(e.boxShadow.trim().toLowerCase())&&!/\binset\b/.test(e.boxShadow)&&!e.boxShadow.includes(Ia)&&(e.boxShadow=`${za} ${e.boxShadow}`),e}function qa(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function Ja(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function Ya(e){return Math.round(e*1e5)/1e5}var Xa={textTransform:`uppercase`},Za=`"Roboto", "Helvetica", "Arial", sans-serif`;function Qa(e,t){let{fontFamily:n=Za,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===Za?{letterSpacing:`${Ya(i/t)}em`}:{},...a,...l});return Jt({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,Xa),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Xa),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var $a=.2,eo=.14,to=.12;function no(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$a})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${eo})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${to})`].join(`,`)}var ro=[`none`,no(0,2,1,-1,0,1,1,0,0,1,3,0),no(0,3,1,-2,0,2,2,0,0,1,5,0),no(0,3,3,-2,0,3,4,0,0,1,8,0),no(0,2,4,-1,0,4,5,0,0,1,10,0),no(0,3,5,-1,0,5,8,0,0,1,14,0),no(0,3,5,-1,0,6,10,0,0,1,18,0),no(0,4,5,-2,0,7,10,1,0,2,16,1),no(0,5,5,-3,0,8,10,1,0,3,14,2),no(0,5,6,-3,0,9,12,1,0,3,16,2),no(0,6,6,-3,0,10,14,1,0,4,18,3),no(0,6,7,-4,0,11,15,1,0,4,20,3),no(0,7,8,-4,0,12,17,2,0,5,22,4),no(0,7,8,-4,0,13,19,2,0,5,24,4),no(0,7,9,-4,0,14,21,2,0,5,26,4),no(0,8,9,-5,0,15,22,2,0,6,28,5),no(0,8,10,-5,0,16,24,2,0,6,30,5),no(0,8,11,-5,0,17,26,2,0,6,32,5),no(0,9,11,-5,0,18,28,2,0,7,34,6),no(0,9,12,-6,0,19,29,2,0,7,36,6),no(0,10,13,-6,0,20,31,3,0,8,38,7),no(0,10,13,-6,0,21,33,3,0,8,40,7),no(0,10,14,-6,0,22,35,3,0,8,42,7),no(0,11,14,-7,0,23,36,3,0,9,44,8),no(0,11,15,-7,0,24,38,3,0,9,46,8)],io=[`all`],ao={},oo={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)`},so={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function co(e){return`${Math.round(e)}ms`}function lo(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function uo(e){let t={...e};delete t.reducedMotion;let n={...oo,...t.easing},r={...so,...t.duration};return{getAutoHeightDuration:lo,create:t.create??((e=io,t=ao)=>{let{duration:i=r.standard,easing:a=n.easeInOut,delay:o=0,...s}=t;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:co(i)} ${a} ${typeof o==`string`?o:co(o)}`).join(`,`)}),...t,easing:n,duration:r}}var fo={};function po(e=fo){return{reducedMotion:`never`,...e}}var mo={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ho(e){return Kt(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function go(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;eJt(e,t),m),delete m.transitions.reducedMotion,m.focusVisible!=null&&m.focusVisible!==!1&&(m.focusVisible=Ga(m.focusVisible,m.palette.primary.main)),m.unstable_sxConfig={...xr,...d?.unstable_sxConfig},m.unstable_sx=function(e){return wr({sx:e,theme:this})},m.toRuntimeSource=go,xo(m),m}function Co(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var wo=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=Co(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function To(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function Eo(e){return e===`dark`?wo:[]}function Do(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=Pa({...t,colorSpace:i});return{palette:o,opacity:{...To(o.mode),...n},overlays:r||Eo(o.mode),...a}}function Oo(e){return e[0]===`motion`||e[0]===`focusVisible`||!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var ko=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],Ao=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return ko(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}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 jo(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function Y(e,t,n){!e[t]&&n&&(e[t]=n)}function Mo(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:hi(e)}function No(e,t){`${t}Channel`in e||(e[`${t}Channel`]=pi(Mo(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 Po(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var Fo=e=>{try{return e()}catch{}},Io=(e=`mui`)=>Li(e);function Lo(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=Do({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=So({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...To(a),...n?.opacity},overlays:n?.overlays||Eo(a)},s}function Ro(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=Oo,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=Io(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(S(21,f));let b;o&&(b=`oklch`);let x=Lo(b,v,y,u,f);h&&!v.light&&Lo(b,v,h,void 0,`light`),g&&!v.dark&&Lo(b,v,g,void 0,`dark`);let C={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...qa(x.typography),...x.font},spacing:Po(u.spacing)};Object.keys(C.colorSchemes).forEach(e=>{let t=C.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(Y(t.common,`background`,`#fff`),Y(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(Y(t.common,`background`,`#000`),Y(t.common,`onBackground`,`#fff`)),o||No(t.text,`primary`);function r(e,t,n){if(b){let r;return e===yi&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===xi&&(r=`#000 ${(n*100).toFixed(0)}%`),e===Ci&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(jo(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`Input`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){Y(t.Alert,`errorColor`,r(xi,o?p(`palette-error-light`):t.error.light,.6)),Y(t.Alert,`infoColor`,r(xi,o?p(`palette-info-light`):t.info.light,.6)),Y(t.Alert,`successColor`,r(xi,o?p(`palette-success-light`):t.success.light,.6)),Y(t.Alert,`warningColor`,r(xi,o?p(`palette-warning-light`):t.warning.light,.6)),Y(t.Alert,`errorFilledBg`,n(`palette-error-main`)),Y(t.Alert,`infoFilledBg`,n(`palette-info-main`)),Y(t.Alert,`successFilledBg`,n(`palette-success-main`)),Y(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),Y(t.Alert,`errorFilledColor`,Fo(()=>t.getContrastText(t.error.main))),Y(t.Alert,`infoFilledColor`,Fo(()=>t.getContrastText(t.info.main))),Y(t.Alert,`successFilledColor`,Fo(()=>t.getContrastText(t.success.main))),Y(t.Alert,`warningFilledColor`,Fo(()=>t.getContrastText(t.warning.main))),Y(t.Alert,`errorStandardBg`,r(Ci,o?p(`palette-error-light`):t.error.light,.9)),Y(t.Alert,`infoStandardBg`,r(Ci,o?p(`palette-info-light`):t.info.light,.9)),Y(t.Alert,`successStandardBg`,r(Ci,o?p(`palette-success-light`):t.success.light,.9)),Y(t.Alert,`warningStandardBg`,r(Ci,o?p(`palette-warning-light`):t.warning.light,.9)),Y(t.Alert,`errorIconColor`,n(`palette-error-main`)),Y(t.Alert,`infoIconColor`,n(`palette-info-main`)),Y(t.Alert,`successIconColor`,n(`palette-success-main`)),Y(t.Alert,`warningIconColor`,n(`palette-warning-main`)),Y(t.AppBar,`defaultBg`,n(`palette-grey-100`)),Y(t.Avatar,`defaultBg`,n(`palette-grey-400`)),Y(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),Y(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),Y(t.Chip,`defaultBorder`,n(`palette-grey-400`)),Y(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),Y(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),Y(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),Y(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),Y(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),Y(t.Input,`autofillWebkitBoxShadow`,`none`),Y(t.LinearProgress,`primaryBg`,r(Ci,o?p(`palette-primary-main`):t.primary.main,.62)),Y(t.LinearProgress,`secondaryBg`,r(Ci,o?p(`palette-secondary-main`):t.secondary.main,.62)),Y(t.LinearProgress,`errorBg`,r(Ci,o?p(`palette-error-main`):t.error.main,.62)),Y(t.LinearProgress,`infoBg`,r(Ci,o?p(`palette-info-main`):t.info.main,.62)),Y(t.LinearProgress,`successBg`,r(Ci,o?p(`palette-success-main`):t.success.main,.62)),Y(t.LinearProgress,`warningBg`,r(Ci,o?p(`palette-warning-light`):t.warning.main,.62)),Y(t.Skeleton,`bg`,b?r(yi,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),Y(t.Slider,`primaryTrack`,r(Ci,o?p(`palette-primary-main`):t.primary.main,.62)),Y(t.Slider,`secondaryTrack`,r(Ci,o?p(`palette-secondary-main`):t.secondary.main,.62)),Y(t.Slider,`errorTrack`,r(Ci,o?p(`palette-error-main`):t.error.main,.62)),Y(t.Slider,`infoTrack`,r(Ci,o?p(`palette-info-main`):t.info.main,.62)),Y(t.Slider,`successTrack`,r(Ci,o?p(`palette-success-main`):t.success.main,.62)),Y(t.Slider,`warningTrack`,r(Ci,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(xi,o?p(`palette-background-default`):t.background.default,.6825):Ti(t.background.default,.8);Y(t.SnackbarContent,`bg`,e),Y(t.SnackbarContent,`color`,Fo(()=>b?wa.text.primary:t.getContrastText(e))),Y(t.SpeedDialAction,`fabHoverBg`,Ti(t.background.paper,.15)),Y(t.StepConnector,`border`,n(`palette-grey-400`)),Y(t.StepContent,`border`,n(`palette-grey-400`)),Y(t.Switch,`defaultColor`,n(`palette-common-white`)),Y(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),Y(t.Switch,`primaryDisabledColor`,r(Ci,o?p(`palette-primary-main`):t.primary.main,.62)),Y(t.Switch,`secondaryDisabledColor`,r(Ci,o?p(`palette-secondary-main`):t.secondary.main,.62)),Y(t.Switch,`errorDisabledColor`,r(Ci,o?p(`palette-error-main`):t.error.main,.62)),Y(t.Switch,`infoDisabledColor`,r(Ci,o?p(`palette-info-main`):t.info.main,.62)),Y(t.Switch,`successDisabledColor`,r(Ci,o?p(`palette-success-main`):t.success.main,.62)),Y(t.Switch,`warningDisabledColor`,r(Ci,o?p(`palette-warning-main`):t.warning.main,.62)),Y(t.TableCell,`border`,r(Ci,yi(o?p(`palette-divider`):t.divider,1),.88)),Y(t.Tooltip,`bg`,r(yi,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){Y(t.Alert,`errorColor`,r(Ci,o?p(`palette-error-light`):t.error.light,.6)),Y(t.Alert,`infoColor`,r(Ci,o?p(`palette-info-light`):t.info.light,.6)),Y(t.Alert,`successColor`,r(Ci,o?p(`palette-success-light`):t.success.light,.6)),Y(t.Alert,`warningColor`,r(Ci,o?p(`palette-warning-light`):t.warning.light,.6)),Y(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),Y(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),Y(t.Alert,`successFilledBg`,n(`palette-success-dark`)),Y(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),Y(t.Alert,`errorFilledColor`,Fo(()=>t.getContrastText(t.error.dark))),Y(t.Alert,`infoFilledColor`,Fo(()=>t.getContrastText(t.info.dark))),Y(t.Alert,`successFilledColor`,Fo(()=>t.getContrastText(t.success.dark))),Y(t.Alert,`warningFilledColor`,Fo(()=>t.getContrastText(t.warning.dark))),Y(t.Alert,`errorStandardBg`,r(xi,o?p(`palette-error-light`):t.error.light,.9)),Y(t.Alert,`infoStandardBg`,r(xi,o?p(`palette-info-light`):t.info.light,.9)),Y(t.Alert,`successStandardBg`,r(xi,o?p(`palette-success-light`):t.success.light,.9)),Y(t.Alert,`warningStandardBg`,r(xi,o?p(`palette-warning-light`):t.warning.light,.9)),Y(t.Alert,`errorIconColor`,n(`palette-error-main`)),Y(t.Alert,`infoIconColor`,n(`palette-info-main`)),Y(t.Alert,`successIconColor`,n(`palette-success-main`)),Y(t.Alert,`warningIconColor`,n(`palette-warning-main`)),Y(t.AppBar,`defaultBg`,n(`palette-grey-900`)),Y(t.AppBar,`darkBg`,n(`palette-background-paper`)),Y(t.AppBar,`darkColor`,n(`palette-text-primary`)),Y(t.Avatar,`defaultBg`,n(`palette-grey-600`)),Y(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),Y(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),Y(t.Chip,`defaultBorder`,n(`palette-grey-700`)),Y(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),Y(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),Y(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),Y(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),Y(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),Y(t.Input,`autofillWebkitBoxShadow`,`0 0 0 100px #266798 inset`),Y(t.LinearProgress,`primaryBg`,r(xi,o?p(`palette-primary-main`):t.primary.main,.5)),Y(t.LinearProgress,`secondaryBg`,r(xi,o?p(`palette-secondary-main`):t.secondary.main,.5)),Y(t.LinearProgress,`errorBg`,r(xi,o?p(`palette-error-main`):t.error.main,.5)),Y(t.LinearProgress,`infoBg`,r(xi,o?p(`palette-info-main`):t.info.main,.5)),Y(t.LinearProgress,`successBg`,r(xi,o?p(`palette-success-main`):t.success.main,.5)),Y(t.LinearProgress,`warningBg`,r(xi,o?p(`palette-warning-main`):t.warning.main,.5)),Y(t.Skeleton,`bg`,b?r(yi,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),Y(t.Slider,`primaryTrack`,r(xi,o?p(`palette-primary-main`):t.primary.main,.5)),Y(t.Slider,`secondaryTrack`,r(xi,o?p(`palette-secondary-main`):t.secondary.main,.5)),Y(t.Slider,`errorTrack`,r(xi,o?p(`palette-error-main`):t.error.main,.5)),Y(t.Slider,`infoTrack`,r(xi,o?p(`palette-info-main`):t.info.main,.5)),Y(t.Slider,`successTrack`,r(xi,o?p(`palette-success-main`):t.success.main,.5)),Y(t.Slider,`warningTrack`,r(xi,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(Ci,o?p(`palette-background-default`):t.background.default,.985):Ti(t.background.default,.98);Y(t.SnackbarContent,`bg`,e),Y(t.SnackbarContent,`color`,Fo(()=>b?Sa.text.primary:t.getContrastText(e))),Y(t.SpeedDialAction,`fabHoverBg`,Ti(t.background.paper,.15)),Y(t.StepConnector,`border`,n(`palette-grey-600`)),Y(t.StepContent,`border`,n(`palette-grey-600`)),Y(t.Switch,`defaultColor`,n(`palette-grey-300`)),Y(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),Y(t.Switch,`primaryDisabledColor`,r(xi,o?p(`palette-primary-main`):t.primary.main,.55)),Y(t.Switch,`secondaryDisabledColor`,r(xi,o?p(`palette-secondary-main`):t.secondary.main,.55)),Y(t.Switch,`errorDisabledColor`,r(xi,o?p(`palette-error-main`):t.error.main,.55)),Y(t.Switch,`infoDisabledColor`,r(xi,o?p(`palette-info-main`):t.info.main,.55)),Y(t.Switch,`successDisabledColor`,r(xi,o?p(`palette-success-main`):t.success.main,.55)),Y(t.Switch,`warningDisabledColor`,r(xi,o?p(`palette-warning-light`):t.warning.main,.55)),Y(t.TableCell,`border`,r(xi,yi(o?p(`palette-divider`):t.divider,1),.68)),Y(t.Tooltip,`bg`,r(yi,o?p(`palette-grey-700`):t.grey[700],.92))}o||(No(t.background,`default`),No(t.background,`paper`),No(t.common,`background`),No(t.common,`onBackground`),No(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&Y(t[e],`mainChannel`,pi(Mo(n.main))),n.light&&Y(t[e],`lightChannel`,pi(Mo(n.light))),n.dark&&Y(t[e],`darkChannel`,pi(Mo(n.dark))),n.contrastText&&Y(t[e],`contrastTextChannel`,pi(Mo(n.contrastText))),e===`text`&&(No(t[e],`primary`),No(t[e],`secondary`)),e===`action`&&(n.active&&No(t[e],`active`),n.selected&&No(t[e],`selected`)))})}),C=t.reduce((e,t)=>Jt(e,t),C);let w=Ua(e.focusVisible,t);w!=null&&w!==!1&&(C.focusVisible=Ga(w,p(`palette-primary-main`)));let T={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:Ao(C),enableContrastVars:o},{vars:E,generateThemeVars:D,generateStyleSheets:O}=Ui(C,T);return C.vars=E,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=D,C.generateStyleSheets=O,C.generateSpacing=function(){return Kn(u.spacing,Rn(this))},C.getColorSchemeSelector=Wi(c),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...xr,...u?.unstable_sxConfig},C.unstable_sx=function(e){return wr({sx:e,theme:this})},C.internal_cache={},C.toRuntimeSource=go,C}function zo(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Pa({...n===!0?{}:n.palette,mode:t})})}function Bo(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return So(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=So({...e,palette:r},...t);if(i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},zo(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},zo(i,`light`,l.light)),i.focusVisible!=null&&i.focusVisible!==!1){let n=i.focusVisible,r=Ua(e.focusVisible,t),a=r&&typeof r==`object`?r.outlineColor:void 0;if(!a||Wa(r)&&a===i.palette.primary.main){let{outlineColor:e,...t}=n;n=t}Object.keys(i.colorSchemes).forEach(e=>{let t=i.colorSchemes?.[e]?.palette;t?.primary&&(i.colorSchemes[e].focusVisible=Ga(n,t.primary.main))})}return i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Ro({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}function Vo(e){return typeof e==`string`}function Ho(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Uo(...e){let t=K.useRef(void 0),n=K.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return K.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}function X(e){let t=K.useRef(e);return ri(()=>{t.current=e}),K.useRef((...e)=>(0,t.current)(...e)).current}function Wo(e){return e&&e.ownerDocument||document}function Go(e){return Wo(e).defaultView||window}function Ko(e){return parseInt(e,10)||0}var qo={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function Jo(e){for(let t in e)return!1;return!0}function Yo(e){return Jo(e)||e.outerHeightStyle===0&&!e.overflowing}var Xo=K.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=K.useRef(o!=null),l=K.useRef(null),u=Uo(t,l),d=K.useRef(null),f=K.useRef(null),p=K.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=Go(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===` `&&(n.value+=` `);let o=a.boxSizing,s=Ko(a.paddingBottom)+Ko(a.paddingTop),c=Ko(a.borderBottomWidth)+Ko(a.borderTopWidth),u=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,p=u;return i&&(p=Math.max(Number(i)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+(o===`border-box`?s+c:0),overflowing:Math.abs(p-u)<=1}},[r,i,e.placeholder]),m=X(()=>{let e=l.current,t=p();if(!e||!t||Yo(t))return!1;let n=t.outerHeightStyle;return d.current!=null&&d.current!==n}),h=K.useCallback(()=>{let e=l.current,t=p();if(!e||!t||Yo(t))return;let n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[p]),g=K.useRef(-1);return ri(()=>{let e=Ho(h),t=l?.current;if(!t)return;let n=Go(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[p,h,m]),ri(()=>{h()}),(0,q.jsxs)(K.Fragment,{children:[(0,q.jsx)(`textarea`,{value:o,onChange:e=>{c||h();let t=e.target,r=t.value.length,i=t.value.endsWith(` `),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,q.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...qo.shadow,...a,paddingTop:0,paddingBottom:0}})]})}),Zo=K.createContext(void 0);function Qo(){return K.useContext(Zo)}function $o({props:e,states:t}){let n=K.useContext(Zo),r={};return t.forEach(t=>{let i=e[t];r[t]=i===void 0&&n?n[t]:i}),[r,n]}var es=Bo();function ts(){let e=Mr(es);return e.$$material||e}function ns(e){return(0,q.jsx)(Pr,{...e,defaultTheme:es,themeId:C})}function rs(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var is=e=>rs(e)&&e!==`classes`,Z=Xr({themeId:C,defaultTheme:es,rootShouldForwardProp:is});function as(e){return function(t){return(0,q.jsx)(ns,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}var os=Ii;function ss(e){return Ai(e)}var cs=Tn,ls=Uo,us=ri,ds=Wo;function fs(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var ps=fs;function ms(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function hs(e,t=!1){return e&&(ms(e.value)&&e.value!==``||t&&ms(e.defaultValue)&&e.defaultValue!==``)}function gs(e){return e.startAdornment}function _s(e){return Br(`MuiInputBase`,e)}var vs=Vr(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputTypeSearch`]),ys={transition:`none`};function bs(e,t){return e===`always`?t:e===`system`?{"@media (prefers-reduced-motion: reduce)":t}:null}var xs=e=>e.scrollTop,Ss={offsetX:0,offsetY:0},Cs={},ws=[`all`],Ts={},Es={matrix:[4,5],matrix3d:[12,13],translate:[0,1],translate3d:[0,1],translateX:[0,null],translateY:[null,0]};function Ds(e){let t=parseFloat(e??``);return Number.isNaN(t)?0:t}function Os(e){let t=e.match(/^(matrix|matrix3d|translate|translate3d|translateX|translateY)\((.+)\)$/);return t?{type:t[1],values:t[2].split(`,`).map(Ds)}:null}function ks(e,t){return t===null?0:e[t]||0}function As(e){if(!e||e===`none`)return Ss;let t=Os(e);if(!t)return Ss;let{type:n,values:r}=t,i=Es[n];return i?{offsetX:ks(r,i[0]),offsetY:ks(r,i[1])}:Ss}function js(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function Ms(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function Ns(e,t){let{timeout:n,easing:r,style:i=Cs}=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 Ps(e,t){let n=t??ys;return bs(e.motion?.reducedMotion,n)}function Fs(e,t=ws,n=Ts){let r=e.transitions?.create?.(t,n),i=Ps(e);if(r===void 0)return i??Cs;let a={transition:r};return i?{...a,...i}:a}var Is,Ls=`mui-auto-fill`,Rs=`mui-auto-fill-cancel`,zs=(e,t)=>{let{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${cs(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Bs=(e,t)=>{let{ownerState:n}=e;return[t.input,n.type===`search`&&t.inputTypeSearch]},Vs=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return Gi({root:[`root`,`color${cs(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${cs(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,d&&`readOnly`]},_s,t)},Hs=Z(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:zs})(os(({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`,[`&.${vs.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),Us=Z(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:Bs})(os(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},...Fs(e,`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] + .${vs.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},[`&.${vs.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:Rs,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:Ls}}},{props:{size:`small`},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),Ws=as({[`@keyframes ${Ls}`]:{from:{animationName:Ls}},[`@keyframes ${Rs}`]:{from:{animationName:Rs}}}),Gs=K.forwardRef(function(e,t){let n=ss({props:e,name:`MuiInputBase`}),{"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,className:s,color:c,defaultValue:l,disabled:u,disableInjectingGlobalStyles:d,endAdornment:f,error:p,fullWidth:m=!1,id:h,inputComponent:g=`input`,inputProps:_,inputRef:v,margin:y,maxRows:b,minRows:x,multiline:C=!1,name:w,onBlur:T,onChange:E,onClick:D,onFocus:O,onKeyDown:k,onKeyUp:A,placeholder:j,readOnly:M,renderSuffix:N,rows:P,size:F,slotProps:I={},slots:R={},startAdornment:ee,type:z=`text`,value:B,...te}=n,V={..._,...I.input},ne=V.value==null?B:V.value,{current:re}=K.useRef(ne!=null),ie=K.useRef(),ae=K.useCallback(e=>{},[]),oe=ls(ie,v,V.ref,ae),[se,ce]=K.useState(!1),[le,H]=$o({props:n,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});le.focused=H?H.focused:se,K.useEffect(()=>{!H&&u&&se&&(ce(!1),T&&T())},[H,u,se,T]);let ue=H&&H.onFilled,de=H&&H.onEmpty,fe=K.useCallback(e=>{hs(e)?ue&&ue():de&&de()},[ue,de]);us(()=>{re&&fe({value:ne})},[ne,fe,re]),us(()=>{if(!o)return;let e=ie.current;if(!e)return;let t=ds(e),n=ps(t),r=n==null||n===t.body||n===t.documentElement;e===n?H&&H.onFocus?H.onFocus():ce(!0):r&&e.focus()},[o]);let pe=e=>{O&&O(e),V.onFocus&&V.onFocus(e),H&&H.onFocus?H.onFocus(e):ce(!0)},me=e=>{T&&T(e),V.onBlur&&V.onBlur(e),H&&H.onBlur?H.onBlur(e):ce(!1)},he=(e,...t)=>{if(!re){let t=e.target||ie.current;if(t==null)throw Error(S(1));fe({value:t.value})}V.onChange&&V.onChange(e,...t),E&&E(e,...t)};K.useEffect(()=>{fe(ie.current)},[]);let ge=e=>{ie.current&&e.currentTarget===e.target&&ie.current.focus(),D&&D(e)},_e=g,ve=V;C&&_e===`input`&&(ve=P?{type:void 0,minRows:P,maxRows:P,...ve}:{type:void 0,maxRows:b,minRows:x,...ve},_e=Xo);let ye=e=>{fe(e.animationName===Rs?ie.current:{value:`x`})};K.useEffect(()=>{H&&H.setAdornedStart(!!ee)},[H,ee]);let be={...n,color:le.color||`primary`,disabled:le.disabled,endAdornment:f,error:le.error,focused:le.focused,formControl:H,fullWidth:m,hiddenLabel:le.hiddenLabel,multiline:C,size:le.size,startAdornment:ee,type:z},xe=Vs(be),Se=R.root||Hs,Ce=I.root||{},we=R.input||Us;return(0,q.jsxs)(K.Fragment,{children:[!d&&typeof Ws==`function`&&(Is||=(0,q.jsx)(Ws,{})),(0,q.jsxs)(Se,{...Ce,ref:t,onClick:ge,...te,...!Vo(Se)&&{ownerState:{...be,...Ce.ownerState}},className:J(xe.root,Ce.className,s,M&&`MuiInputBase-readOnly`),children:[ee,(0,q.jsx)(Zo.Provider,{value:null,children:(0,q.jsx)(we,{"aria-invalid":le.error,"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,defaultValue:l,disabled:le.disabled,id:h,onAnimationStart:ye,name:w,placeholder:j,readOnly:M,required:le.required,rows:P,value:ne,onKeyDown:k,onKeyUp:A,type:z,...ve,...!Vo(we)&&{as:_e,ownerState:{...be,...ve.ownerState}},ref:oe,className:J(xe.input,ve.className,M&&`MuiInputBase-readOnly`),onBlur:me,onChange:he,onFocus:pe})}),f,N?N({...le,startAdornment:ee}):null]})]})});function Ks(e){return Br(`MuiFilledInput`,e)}var qs={...vs,...Vr(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])};function Js(e){return Br(`MuiFormHelperText`,e)}var Ys=Vr(`MuiFormHelperText`,[`root`,`error`,`disabled`,`sizeSmall`,`sizeMedium`,`contained`,`focused`,`filled`,`required`]);function Xs(e){return Br(`MuiFormLabel`,e)}var Zs=Vr(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]);function Qs(e){return Br(`MuiInput`,e)}var $s={...vs,...Vr(`MuiInput`,[`root`,`underline`,`input`])},ec=Vr(`MuiListItemButton`,[`root`,`focusVisible`,`dense`,`alignItemsFlexStart`,`disabled`,`divider`,`gutters`,`selected`]);function tc(e){return Br(`MuiNativeSelect`,e)}var nc=Vr(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]);function rc(e){return Br(`MuiOutlinedInput`,e)}var ic={...vs,...Vr(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])};function ac(e){return Br(`MuiToggleButton`,e)}var oc=Vr(`MuiToggleButton`,[`root`,`disabled`,`selected`,`standard`,`primary`,`secondary`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`fullWidth`]);function sc({props:e,name:t}){return ni({props:e,name:t,defaultTheme:es,themeId:C})}var cc=[`localeText`],lc=K.createContext(null),uc=function(e){let{localeText:t}=e,n=x(e,cc),{adapter:r,localeText:i}=K.useContext(lc)??{adapter:void 0,localeText:void 0},{children:a,dateAdapter:o,dateFormats:s,dateLibInstance:c,adapterLocale:l,localeText:u}=sc({props:n,name:`MuiLocalizationProvider`}),d=K.useMemo(()=>b({},u,i,t),[u,i,t]),f=K.useMemo(()=>{if(!o)return r||null;let e=new o({locale:l,formats:s,instance:c});if(!e.isMUIAdapter)throw Error(y(143));return e},[o,l,s,c,r]),p=K.useMemo(()=>f?{minDate:f.date(`1900-01-01T00:00:00.000`),maxDate:f.date(`2099-12-31T00:00:00.000`)}:null,[f]),m=K.useMemo(()=>({adapter:f,defaultDates:p,localeText:d}),[p,f,d]);return(0,q.jsx)(lc.Provider,{value:m,children:a})},dc=365.2425,fc=6048e5,pc=864e5,mc=6e4,hc=36e5,gc=1e3,_c=86400;_c*7,_c*dc/12*3;var vc=Symbol.for(`constructDateFrom`);function yc(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&vc in e?e[vc](t):e instanceof Date?new e.constructor(t):new Date(t)}function bc(e,t){return yc(t||e,e)}function xc(e,t,n){let r=bc(e,n?.in);return isNaN(t)?yc(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Sc(e,t,n){return yc(n?.in||e,+bc(e)+t)}function Cc(e,t,n){return Sc(e,t*1e3,n)}function wc(e,t,n){let r=bc(e,n?.in);return r.setTime(r.getTime()+t*mc),r}function Tc(e,t,n){return Sc(e,t*hc,n)}function Ec(e,t,n){return xc(e,t*7,n)}function Dc(e,t,n){let r=bc(e,n?.in);if(isNaN(t))return yc(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=yc(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function Oc(e,t,n){return Dc(e,t*12,n)}function kc(e,t){let n=bc(e,t?.in);return n.setHours(23,59,59,999),n}var Ac={};function jc(){return Ac}function Mc(e,t){let n=jc(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=bc(e,t?.in),a=i.getDay(),o=(a{let r,i=Pc[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function Ic(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Lc={date:Ic({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:Ic({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:Ic({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Rc={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},zc=(e,t,n,r)=>Rc[e];function Bc(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var Vc={ordinalNumber:(e,t)=>{let 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`},era:Bc({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:Bc({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:Bc({values:{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`]},defaultWidth:`wide`}),day:Bc({values:{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`]},defaultWidth:`wide`}),dayPeriod:Bc({values:{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`}},defaultWidth:`wide`,formattingValues:{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`}},defaultFormattingWidth:`wide`})};function Hc(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Wc(s,e=>e.test(o)):Uc(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function Uc(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Wc(e,t){for(let n=0;n{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var Kc={code:`en-US`,formatDistance:Fc,formatLong:Lc,formatRelative:zc,localize:Vc,match:{ordinalNumber:Gc({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:Hc({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:Hc({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:Hc({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),day:Hc({matchPatterns:{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},defaultMatchWidth:`wide`,parsePatterns:{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]},defaultParseWidth:`any`}),dayPeriod:Hc({matchPatterns:{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},defaultMatchWidth:`any`,parsePatterns:{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}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function qc(e){let t=bc(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 Jc(e,...t){let n=yc.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function Yc(e,t){let n=bc(e,t?.in);return n.setHours(0,0,0,0),n}function Xc(e,t,n){let[r,i]=Jc(n?.in,e,t),a=Yc(r),o=Yc(i),s=+a-qc(a),c=+o-qc(o);return Math.round((s-c)/pc)}function Zc(e,t){let n=bc(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Qc(e,t){let n=bc(e,t?.in);return Xc(n,Zc(n))+1}function $c(e,t){let n=jc(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=bc(e,t?.in),a=i.getDay(),o=(a=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function nl(e,t){let n=tl(e,t),r=yc(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),el(r)}function rl(e,t){let n=bc(e,t?.in),r=+el(n)-nl(n);return Math.round(r/fc)+1}function il(e,t){let n=bc(e,t?.in),r=n.getFullYear(),i=jc(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=yc(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=$c(o,t),c=yc(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=$c(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function al(e,t){let n=jc(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=il(e,t),a=yc(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),$c(a,t)}function ol(e,t){let n=bc(e,t?.in),r=+$c(n,t)-al(n,t);return Math.round(r/fc)+1}function sl(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var cl={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return sl(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):sl(n+1,2)},d(e,t){return sl(e.getDate(),t.length)},a(e,t){let 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];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return sl(e.getHours()%12||12,t.length)},H(e,t){return sl(e.getHours(),t.length)},m(e,t){return sl(e.getMinutes(),t.length)},s(e,t){return sl(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return sl(Math.trunc(r*10**(n-3)),t.length)}},ll={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},ul={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return cl.y(e,t)},Y:function(e,t,n,r){let i=il(e,r),a=i>0?i:1-i;return t===`YY`?sl(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):sl(a,t.length)},R:function(e,t){return sl(tl(e),t.length)},u:function(e,t){return sl(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return sl(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`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return sl(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`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return cl.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`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return sl(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`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=ol(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):sl(i,t.length)},I:function(e,t,n){let r=rl(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):sl(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):cl.d(e,t)},D:function(e,t,n){let r=Qc(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):sl(r,t.length)},E:function(e,t,n){let 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`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return sl(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`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return sl(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`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return sl(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`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?ll.noon:r===0?ll.midnight: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`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?ll.evening:r>=12?ll.afternoon:r>=4?ll.morning:ll.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`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return cl.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):cl.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):sl(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):sl(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):cl.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):cl.s(e,t)},S:function(e,t){return cl.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return fl(r);case`XXXX`:case`XX`:return pl(r);default:return pl(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return fl(r);case`xxxx`:case`xx`:return pl(r);default:return pl(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+dl(r,`:`);default:return`GMT`+pl(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+dl(r,`:`);default:return`GMT`+pl(r,`:`)}},t:function(e,t,n){return sl(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return sl(+e,t.length)}};function dl(e,t=``){let 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+sl(a,2)}function fl(e,t){return e%60==0?(e>0?`-`:`+`)+sl(Math.abs(e)/60,2):pl(e,t)}function pl(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=sl(Math.trunc(r/60),2),a=sl(r%60,2);return n+i+t+a}var ml=(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`});default:return t.date({width:`full`})}},hl=(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`});default:return t.time({width:`full`})}},gl={p:hl,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return ml(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;default:a=t.dateTime({width:`full`})}return a.replace(`{{date}}`,ml(r,t)).replace(`{{time}}`,hl(i,t))}},_l=/^D+$/,vl=/^Y+$/,yl=[`D`,`DD`,`YY`,`YYYY`];function bl(e){return _l.test(e)}function xl(e){return vl.test(e)}function Sl(e,t,n){let r=Cl(e,t,n);if(console.warn(r),yl.includes(e))throw RangeError(r)}function Cl(e,t,n){let 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 wl(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function Tl(e){return!(!wl(e)&&typeof e!=`number`||isNaN(+bc(e)))}var El=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ol=/^'([^]*?)'?$/,kl=/''/g,Al=/[a-zA-Z]/;function jl(e,t,n){let r=jc(),i=n?.locale??r.locale??Kc,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=bc(e,n?.in);if(!Tl(s))throw RangeError(`Invalid time value`);let c=t.match(Dl).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=gl[t];return n(e,i.formatLong)}return e}).join(``).match(El).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:Ml(e)};if(ul[t])return{isToken:!0,value:e};if(t.match(Al))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&xl(a)||!n?.useAdditionalDayOfYearTokens&&bl(a))&&Sl(a,t,String(e));let o=ul[a[0]];return o(s,a,i.localize,l)}).join(``)}function Ml(e){let t=e.match(Ol);return t?t[1].replace(kl,`'`):e}function Nl(e,t){return bc(e,t?.in).getDate()}function Pl(e,t){let n=bc(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=yc(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function Fl(e,t){return bc(e,t?.in).getHours()}function Il(e,t){return bc(e,t?.in).getMinutes()}function Ll(e,t){return bc(e,t?.in).getMonth()}function Rl(e){return bc(e).getSeconds()}function zl(e){return bc(e).getMilliseconds()}function Bl(e,t){return bc(e,t?.in).getFullYear()}function Vl(e,t){return+bc(e)>+bc(t)}function Hl(e,t){return+bc(e)<+bc(t)}function Ul(e,t){return+bc(e)==+bc(t)}function Wl(e,t,n){let[r,i]=Jc(n?.in,e,t);return+Yc(r)==+Yc(i)}function Gl(e,t,n){let[r,i]=Jc(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function Kl(e,t,n){let[r,i]=Jc(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function ql(e,t){let n=bc(e,t?.in);return n.setMinutes(0,0,0),n}function Jl(e,t,n){let[r,i]=Jc(n?.in,e,t);return+ql(r)==+ql(i)}function Yl(){return Object.assign({},jc())}function Xl(e,t){let n=Zl(t)?new t(0):yc(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function Zl(e){return typeof e==`function`&&e.prototype?.constructor===e}var Ql=10,$l=class{subPriority=0;validate(e,t){return!0}},eu=class extends $l{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},tu=class extends $l{priority=Ql;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>yc(t,e))}set(e,t){return t.timestampIsSet?e:yc(e,Xl(e,this.context))}},nu=class{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new eu(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},ru=class extends nu{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]},iu={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}/},au={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 ou(e,t){return e&&{value:t(e.value),rest:e.rest}}function su(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function cu(e,t){let n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};let r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*hc+a*mc+o*gc),rest:t.slice(n[0].length)}}function lu(e){return su(iu.anyDigitsSigned,e)}function uu(e,t){switch(e){case 1:return su(iu.singleDigit,t);case 2:return su(iu.twoDigits,t);case 3:return su(iu.threeDigits,t);case 4:return su(iu.fourDigits,t);default:return su(RegExp(`^\\d{1,`+e+`}`),t)}}function du(e,t){switch(e){case 1:return su(iu.singleDigitSigned,t);case 2:return su(iu.twoDigitsSigned,t);case 3:return su(iu.threeDigitsSigned,t);case 4:return su(iu.fourDigitsSigned,t);default:return su(RegExp(`^-?\\d{1,`+e+`}`),t)}}function fu(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function pu(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function mu(e){return e%400==0||e%4==0&&e%100!=0}var hu=class extends nu{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return ou(uu(4,e),r);case`yo`:return ou(n.ordinalNumber(e,{unit:`year`}),r);default:return ou(uu(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=e.getFullYear();if(n.isTwoDigitYear){let t=pu(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},gu=class extends nu{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return ou(uu(4,e),r);case`Yo`:return ou(n.ordinalNumber(e,{unit:`year`}),r);default:return ou(uu(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=il(e,r);if(n.isTwoDigitYear){let t=pu(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),$c(e,r)}let a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),$c(e,r)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},_u=class extends nu{priority=130;parse(e,t){return du(t===`R`?4:t.length,e)}set(e,t,n){let r=yc(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),el(r)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},vu=class extends nu{priority=130;parse(e,t){return du(t===`u`?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},yu=class extends nu{priority=120;parse(e,t,n){switch(t){case`Q`:case`QQ`:return uu(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},bu=class extends nu{priority=120;parse(e,t,n){switch(t){case`q`:case`qq`:return uu(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},xu=class extends nu{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`M`:return ou(su(iu.month,e),r);case`MM`:return ou(uu(2,e),r);case`Mo`:return ou(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},Su=class extends nu{priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`L`:return ou(su(iu.month,e),r);case`LL`:return ou(uu(2,e),r);case`Lo`:return ou(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};function Cu(e,t,n){let r=bc(e,n?.in),i=ol(r,n)-t;return r.setDate(r.getDate()-i*7),bc(r,n?.in)}var wu=class extends nu{priority=100;parse(e,t,n){switch(t){case`w`:return su(iu.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return uu(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return $c(Cu(e,n,r),r)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function Tu(e,t,n){let r=bc(e,n?.in),i=rl(r,n)-t;return r.setDate(r.getDate()-i*7),r}var Eu=class extends nu{priority=100;parse(e,t,n){switch(t){case`I`:return su(iu.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return uu(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return el(Tu(e,n))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},Du=[31,28,31,30,31,30,31,31,30,31,30,31],Ou=[31,29,31,30,31,30,31,31,30,31,30,31],ku=class extends nu{priority=90;subPriority=1;parse(e,t,n){switch(t){case`d`:return su(iu.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return uu(t.length,e)}}validate(e,t){let n=mu(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=Ou[r]:t>=1&&t<=Du[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},Au=class extends nu{priority=90;subpriority=1;parse(e,t,n){switch(t){case`D`:case`DD`:return su(iu.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return uu(t.length,e)}}validate(e,t){return mu(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function ju(e,t,n){let r=jc(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=bc(e,n?.in),o=a.getDay(),s=(t%7+7)%7,c=7-i;return xc(a,t<0||t>6?t-(o+c)%7:(s+c)%7-(o+c)%7,n)}var Mu=class extends nu{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=ju(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},Nu=class extends nu{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return ou(uu(t.length,e),i);case`eo`:return ou(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=ju(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},Pu=class extends nu{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return ou(uu(t.length,e),i);case`co`:return ou(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=ju(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function Fu(e,t){let n=bc(e,t?.in).getDay();return n===0?7:n}function Iu(e,t,n){let r=bc(e,n?.in);return xc(r,t-Fu(r,n),n)}var Lu=class extends nu{priority=90;parse(e,t,n){let r=e=>e===0?7:e;switch(t){case`i`:case`ii`:return uu(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return ou(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return ou(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return ou(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return ou(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=Iu(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},Ru=class extends nu{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(fu(n),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},zu=class extends nu{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(fu(n),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},Bu=class extends nu{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(fu(n),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]},Vu=class extends nu{priority=70;parse(e,t,n){switch(t){case`h`:return su(iu.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return uu(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},Hu=class extends nu{priority=70;parse(e,t,n){switch(t){case`H`:return su(iu.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return uu(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},Uu=class extends nu{priority=70;parse(e,t,n){switch(t){case`K`:return su(iu.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return uu(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},Wu=class extends nu{priority=70;parse(e,t,n){switch(t){case`k`:return su(iu.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return uu(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},Gu=class extends nu{priority=60;parse(e,t,n){switch(t){case`m`:return su(iu.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return uu(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]},Ku=class extends nu{priority=50;parse(e,t,n){switch(t){case`s`:return su(iu.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return uu(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]},qu=class extends nu{priority=30;parse(e,t){return ou(uu(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]},Ju=class extends nu{priority=10;parse(e,t){switch(t){case`X`:return cu(au.basicOptionalMinutes,e);case`XX`:return cu(au.basic,e);case`XXXX`:return cu(au.basicOptionalSeconds,e);case`XXXXX`:return cu(au.extendedOptionalSeconds,e);default:return cu(au.extended,e)}}set(e,t,n){return t.timestampIsSet?e:yc(e,e.getTime()-qc(e)-n)}incompatibleTokens=[`t`,`T`,`x`]},Yu=class extends nu{priority=10;parse(e,t){switch(t){case`x`:return cu(au.basicOptionalMinutes,e);case`xx`:return cu(au.basic,e);case`xxxx`:return cu(au.basicOptionalSeconds,e);case`xxxxx`:return cu(au.extendedOptionalSeconds,e);default:return cu(au.extended,e)}}set(e,t,n){return t.timestampIsSet?e:yc(e,e.getTime()-qc(e)-n)}incompatibleTokens=[`t`,`T`,`X`]},Xu=class extends nu{priority=40;parse(e){return lu(e)}set(e,t,n){return[yc(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},Zu=class extends nu{priority=20;parse(e){return lu(e)}set(e,t,n){return[yc(e,n),{timestampIsSet:!0}]}incompatibleTokens=`*`},Qu={G:new ru,y:new hu,Y:new gu,R:new _u,u:new vu,Q:new yu,q:new bu,M:new xu,L:new Su,w:new wu,I:new Eu,d:new ku,D:new Au,E:new Mu,e:new Nu,c:new Pu,i:new Lu,a:new Ru,b:new zu,B:new Bu,h:new Vu,H:new Hu,K:new Uu,k:new Wu,m:new Gu,s:new Ku,S:new qu,X:new Ju,x:new Yu,t:new Xu,T:new Zu},$u=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ed=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,td=/^'([^]*?)'?$/,nd=/''/g,rd=/\S/,id=/[a-zA-Z]/;function ad(e,t,n,r){let i=()=>yc(r?.in||n,NaN),a=Yl(),o=r?.locale??a.locale??Kc,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!t)return e?i():bc(n,r?.in);let l={firstWeekContainsDate:s,weekStartsOn:c,locale:o},u=[new tu(r?.in,n)],d=t.match(ed).map(e=>{let t=e[0];if(t in gl){let n=gl[t];return n(e,o.formatLong)}return e}).join(``).match($u),f=[];for(let n of d){!r?.useAdditionalWeekYearTokens&&xl(n)&&Sl(n,t,e),!r?.useAdditionalDayOfYearTokens&&bl(n)&&Sl(n,t,e);let a=n[0],s=Qu[a];if(s){let{incompatibleTokens:t}=s;if(Array.isArray(t)){let e=f.find(e=>t.includes(e.token)||e.token===a);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if(s.incompatibleTokens===`*`&&f.length>0)throw RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);f.push({token:a,fullToken:n});let r=s.run(e,n,o.match,l);if(!r)return i();u.push(r.setter),e=r.rest}else{if(a.match(id))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if(n===`''`?n=`'`:a===`'`&&(n=od(n)),e.indexOf(n)===0)e=e.slice(n.length);else return i()}}if(e.length>0&&rd.test(e))return i();let p=u.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>u.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),m=bc(n,r?.in);if(isNaN(+m))return i();let h={};for(let e of p){if(!e.validate(m,l))return i();let t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return m}function od(e){return e.match(td)[1].replace(nd,`'`)}function sd(e,t,n){let r=bc(e,n?.in);return r.setDate(t),r}function cd(e,t,n){let r=bc(e,n?.in);return r.setHours(t),r}function ld(e,t,n){let r=bc(e,n?.in);return r.setMinutes(t),r}function ud(e,t,n){let r=bc(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=yc(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=Pl(o);return r.setMonth(t,Math.min(a,s)),r}function dd(e,t,n){let r=bc(e,n?.in);return r.setSeconds(t),r}function fd(e,t,n){let r=bc(e,n?.in);return r.setMilliseconds(t),r}function pd(e,t,n){let r=bc(e,n?.in);return isNaN(+r)?yc(n?.in||e,NaN):(r.setFullYear(t),r)}function md(e,t){let n=bc(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function hd(e,t){let n=bc(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function gd(e,t,n){let r=+bc(e,n?.in),[i,a]=[+bc(t.start,n?.in),+bc(t.end,n?.in)].sort((e,t)=>e-t);return r>=i&&r<=a}var _d={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`,K:{sectionType:`hours`,contentType:`digit`,maxLength:2},KK:`hours`,k:{sectionType:`hours`,contentType:`digit`,maxLength:2},kk:`hours`,m:{sectionType:`minutes`,contentType:`digit`,maxLength:2},mm:`minutes`,s:{sectionType:`seconds`,contentType:`digit`,maxLength:2},ss:`seconds`},vd={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`},yd=class{isMUIAdapter=!0;isTimezoneCompatible=!1;formatTokenMap=_d;escapedCharacters={start:`'`,end:`'`};constructor(e){let{locale:t,formats:n,longFormatters:r,lib:i}=e;this.locale=t,this.formats=b({},vd,n),this.longFormatters=r,this.lib=i||`date-fns`}date=e=>e===void 0?new Date:e===null?null:new Date(e);getInvalidDate=()=>new Date(`Invalid Date`);getTimezone=()=>`default`;setTimezone=e=>e;toJsDate=e=>e;getCurrentLocaleCode=()=>this.locale.code;is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:`short`}));expandFormat=e=>e.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=this.longFormatters[t];return n(e,this.locale.formatLong)}return e}).join(``);formatNumber=e=>e;getDayOfWeek=e=>e.getDay()+1},bd=class extends yd{constructor({locale:e,formats:t}={}){super({locale:e??Kc,formats:t,longFormatters:gl})}parse=(e,t)=>e===``?null:ad(e,t,new Date,{locale:this.locale});isValid=e=>e!=null&&Tl(e);format=(e,t)=>this.formatByString(e,this.formats[t]);formatByString=(e,t)=>jl(e,t,{locale:this.locale});isEqual=(e,t)=>e===null&&t===null?!0:e===null||t===null?!1:Ul(e,t);isSameYear=(e,t)=>Gl(e,t);isSameMonth=(e,t)=>Kl(e,t);isSameDay=(e,t)=>Wl(e,t);isSameHour=(e,t)=>Jl(e,t);isAfter=(e,t)=>Vl(e,t);isAfterYear=(e,t)=>Vl(e,Nc(t));isAfterDay=(e,t)=>Vl(e,kc(t));isBefore=(e,t)=>Hl(e,t);isBeforeYear=(e,t)=>Hl(e,this.startOfYear(t));isBeforeDay=(e,t)=>Hl(e,this.startOfDay(t));isWithinRange=(e,[t,n])=>gd(e,{start:t,end:n});startOfYear=e=>Zc(e);startOfMonth=e=>md(e);startOfWeek=e=>$c(e,{locale:this.locale});startOfDay=e=>Yc(e);endOfYear=e=>Nc(e);endOfMonth=e=>hd(e);endOfWeek=e=>Mc(e,{locale:this.locale});endOfDay=e=>kc(e);addYears=(e,t)=>Oc(e,t);addMonths=(e,t)=>Dc(e,t);addWeeks=(e,t)=>Ec(e,t);addDays=(e,t)=>xc(e,t);addHours=(e,t)=>Tc(e,t);addMinutes=(e,t)=>wc(e,t);addSeconds=(e,t)=>Cc(e,t);getYear=e=>Bl(e);getMonth=e=>Ll(e);getDate=e=>Nl(e);getHours=e=>Fl(e);getMinutes=e=>Il(e);getSeconds=e=>Rl(e);getMilliseconds=e=>zl(e);setYear=(e,t)=>pd(e,t);setMonth=(e,t)=>ud(e,t);setDate=(e,t)=>sd(e,t);setHours=(e,t)=>cd(e,t);setMinutes=(e,t)=>ld(e,t);setSeconds=(e,t)=>dd(e,t);setMilliseconds=(e,t)=>fd(e,t);getDaysInMonth=e=>Pl(e);getWeekArray=e=>{let t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e)),r=0,i=t,a=[];for(;this.isBefore(i,n);){let e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(i),i=this.addDays(i,1),r+=1}return a};getWeekNumber=e=>ol(e,{locale:this.locale});getYearRange=([e,t])=>{let n=this.startOfYear(e),r=this.endOfYear(t),i=[],a=n;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}},xd=g();function Sd(e,t){let n=(0,K.useRef)(t);(0,K.useEffect)(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}function Cd(e){return Object.freeze({__version:1,map:e})}function wd(e,t){return Object.freeze({...e,...t})}var Td=(0,K.createContext)(null);function Ed(){let e=(0,K.use)(Td);if(e==null)throw Error(`No context provided: useLeafletContext() can only be used in a descendant of `);return e}var Dd=c(m(),1);function Od(e){function t(t,n){let{instance:r,context:i}=e(t).current;(0,K.useImperativeHandle)(n,()=>r);let{children:a}=t;return a==null?null:K.createElement(Td,{value:i},a)}return(0,K.forwardRef)(t)}function kd(e){function t(t,n){let[r,i]=(0,K.useState)(!1),{instance:a}=e(t,i).current;(0,K.useImperativeHandle)(n,()=>a),(0,K.useEffect)(function(){r&&a.update()},[a,r,t.children]);let o=a._contentNode;return o?(0,Dd.createPortal)(t.children,o):null}return(0,K.forwardRef)(t)}function Ad(e,t){let n=(0,K.useRef)(void 0);(0,K.useEffect)(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function jd(e,t){let n=e.pane??t.pane;return n?{...e,pane:n}:e}function Md(e,t){return function(n,r){let i=Ed(),a=e(jd(n,i),i);return Sd(i.map,n.attribution),Ad(a.current,n.eventHandlers),t(a.current,i,n,r),a}}var Nd=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.leaflet={}))})(e,(function(e){var t=`1.9.4`;function n(e){for(var t,n=1,r=arguments.length,i;n0?Math.floor(e):Math.ceil(e)};M.prototype={clone:function(){return new M(this.x,this.y)},add:function(e){return this.clone()._add(P(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(P(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new M(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new M(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=N(this.x),this.y=N(this.y),this},distanceTo:function(e){e=P(e);var t=e.x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return e=P(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=P(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return`Point(`+u(this.x)+`, `+u(this.y)+`)`}};function P(e,t,n){return e instanceof M?e:_(e)?new M(e[0],e[1]):e==null?e:typeof e==`object`&&`x`in e&&`y`in e?new M(e.x,e.y):new M(e,t,n)}function F(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=I(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>=t.x&&r.x<=n.x,o=i.y>=t.y&&r.y<=n.y;return a&&o},overlaps:function(e){e=I(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>t.x&&r.xt.y&&r.y=t.lat&&i.lat<=n.lat&&r.lng>=t.lng&&i.lng<=n.lng},intersects:function(e){e=ee(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>=t.lat&&r.lat<=n.lat,o=i.lng>=t.lng&&r.lng<=n.lng;return a&&o},overlaps:function(e){e=ee(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>t.lat&&r.latt.lng&&r.lng1,Re=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener(`testPassiveEventSupport`,l,t),window.removeEventListener(`testPassiveEventSupport`,l,t)}catch{}return e}(),ze=function(){return!!document.createElement(`canvas`).getContext}(),Be=!!(document.createElementNS&&ce(`svg`).createSVGRect),W=!!Be&&(function(){var e=document.createElement(`div`);return e.innerHTML=``,(e.firstChild&&e.firstChild.namespaceURI)===`http://www.w3.org/2000/svg`})(),Ve=!Be&&function(){try{var e=document.createElement(`div`);e.innerHTML=``;var t=e.firstChild;return t.style.behavior=`url(#default#VML)`,t&&typeof t.adj==`object`}catch{return!1}}(),He=navigator.platform.indexOf(`Mac`)===0,Ue=navigator.platform.indexOf(`Linux`)===0;function We(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var G={ie:ue,ielt9:de,edge:fe,webkit:pe,android:me,android23:he,androidStock:_e,opera:ve,chrome:ye,gecko:be,safari:xe,phantom:Se,opera12:Ce,win:we,ie3d:Te,webkit3d:Ee,gecko3d:De,any3d:Oe,mobile:ke,mobileWebkit:U,mobileWebkit3d:Ae,msPointer:je,pointer:Me,touch:Pe,touchNative:Ne,mobileOpera:Fe,mobileGecko:Ie,retina:Le,passiveEvents:Re,canvas:ze,svg:Be,vml:Ve,inlineSvg:W,mac:He,linux:Ue},Ge=G.msPointer?`MSPointerDown`:`pointerdown`,Ke=G.msPointer?`MSPointerMove`:`pointermove`,qe=G.msPointer?`MSPointerUp`:`pointerup`,Je=G.msPointer?`MSPointerCancel`:`pointercancel`,Ye={touchstart:Ge,touchmove:Ke,touchend:qe,touchcancel:Je},Xe={touchstart:ot,touchmove:at,touchend:at,touchcancel:at},Ze={},Qe=!1;function $e(e,t,n){return t===`touchstart`&&it(),Xe[t]?(n=Xe[t].bind(this,n),e.addEventListener(Ye[t],n,!1),n):(console.warn(`wrong event specified:`,t),l)}function et(e,t,n){Ye[t]?e.removeEventListener(Ye[t],n,!1):console.warn(`wrong event specified:`,t)}function tt(e){Ze[e.pointerId]=e}function nt(e){Ze[e.pointerId]&&(Ze[e.pointerId]=e)}function rt(e){delete Ze[e.pointerId]}function it(){Qe||=(document.addEventListener(Ge,tt,!0),document.addEventListener(Ke,nt,!0),document.addEventListener(qe,rt,!0),document.addEventListener(Je,rt,!0),!0)}function at(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||`mouse`)){for(var n in t.touches=[],Ze)t.touches.push(Ze[n]);t.changedTouches=[t],e(t)}}function ot(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&$t(t),at(e,t)}function st(e){var t={},n,r;for(r in e)n=e[r],t[r]=n&&n.bind?n.bind(e):n;return e=t,t.type=`dblclick`,t.detail=2,t.isTrusted=!1,t._simulated=!0,t}var ct=200;function lt(e,t){e.addEventListener(`dblclick`,t);var n=0,r;function i(e){if(e.detail!==1)r=e.detail;else if(!(e.pointerType===`mouse`||e.sourceCapabilities&&!e.sourceCapabilities.firesTouchEvents)){var i=tn(e);if(!i.some(function(e){return e instanceof HTMLLabelElement&&e.attributes.for})||i.some(function(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement})){var a=Date.now();a-n<=ct?(r++,r===2&&t(st(e))):r=1,n=a}}}return e.addEventListener(`click`,i),{dblclick:t,simDblclick:i}}function ut(e,t){e.removeEventListener(`dblclick`,t.dblclick),e.removeEventListener(`click`,t.simDblclick)}var dt=Dt([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),K=Dt([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]),ft=K===`webkitTransition`||K===`OTransition`?K+`End`:`transitionend`;function pt(e){return typeof e==`string`?document.getElementById(e):e}function mt(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||n===`auto`)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return n===`auto`?null:n}function ht(e,t,n){var r=document.createElement(e);return r.className=t||``,n&&n.appendChild(r),r}function gt(e){var t=e.parentNode;t&&t.removeChild(e)}function _t(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function vt(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function yt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function bt(e,t){if(e.classList!==void 0)return e.classList.contains(t);var n=wt(e);return n.length>0&&RegExp(`(^|\\s)`+t+`(\\s|$)`).test(n)}function xt(e,t){if(e.classList!==void 0)for(var n=f(t),r=0,i=n.length;r0?2*window.devicePixelRatio:1;function an(e){return G.edge?e.wheelDeltaY/2:e.deltaY&&e.deltaMode===0?-e.deltaY/rn:e.deltaY&&e.deltaMode===1?-e.deltaY*20:e.deltaY&&e.deltaMode===2?-e.deltaY*60:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?-e.detail*20:e.detail?e.detail/-32765*60:0}function on(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch{return!1}return n!==e}var sn={__proto__:null,on:Ut,off:Gt,stopPropagation:Xt,disableScrollPropagation:Zt,disableClickPropagation:Qt,preventDefault:$t,stop:en,getPropagationPath:tn,getMousePosition:nn,getWheelDelta:an,isExternalTarget:on,addListener:Ut,removeListener:Gt},cn=j.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=At(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire(`start`),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=T(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=this._duration*1e3;tthis.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,ee(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){t||={};var n=P(t.paddingTopLeft||t.padding||[0,0]),r=P(t.paddingBottomRight||t.padding||[0,0]),i=this.project(this.getCenter()),a=this.project(e),o=this.getPixelBounds(),s=I([o.min.add(n),o.max.subtract(r)]),c=s.getSize();if(!s.contains(a)){this._enforcingBounds=!0;var l=a.subtract(s.getCenter()),u=s.extend(a).getSize().subtract(c);i.x+=l.x<0?-u.x:u.x,i.y+=l.y<0?-u.y:u.y,this.panTo(this.unproject(i),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},e===!0?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),a=t.divideBy(2).round(),o=r.divideBy(2).round(),s=a.subtract(o);return!s.x&&!s.y?this:(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire(`move`),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,`moveend`),200)):this.fire(`moveend`)),this.fire(`resize`,{oldSize:t,newSize:r}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire(`viewreset`),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!(`geolocation`in navigator))return this._handleGeolocationError({code:0,message:`Geolocation not supported.`}),this;var t=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,r,e):navigator.geolocation.getCurrentPosition(t,r,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(t===1?`permission denied`:t===2?`position unavailable`:`timeout`);this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire(`locationerror`,{code:t,message:`Geolocation error: `+n+`.`})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=e.coords.latitude,n=e.coords.longitude,r=new z(t,n),i=r.toBounds(e.coords.accuracy*2),a=this._locateOptions;if(a.setView){var o=this.getBoundsZoom(i);this.setView(r,a.maxZoom?Math.min(o,a.maxZoom):o)}var s={latlng:r,bounds:i,timestamp:e.timestamp};for(var c in e.coords)typeof e.coords[c]==`number`&&(s[c]=e.coords[c]);this.fire(`locationfound`,s)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off(`moveend`,this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw Error(`Map container is being reused by another instance`);try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}for(var e in this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),gt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&=(E(this._resizeRequest),null),this._clearHandlers(),this._loaded&&this.fire(`unload`),this._layers)this._layers[e].remove();for(e in this._panes)gt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=ht(`div`,`leaflet-pane`+(e?` leaflet-`+e.replace(`Pane`,``)+`-pane`:``),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new R(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=ee(e),n=P(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),a=this.getMaxZoom(),o=e.getNorthWest(),s=e.getSouthEast(),c=this.getSize().subtract(n),l=I(this.project(s,r),this.project(o,r)).getSize(),u=G.any3d?this.options.zoomSnap:1,d=c.x/l.x,f=c.y/l.y,p=t?Math.max(d,f):Math.min(d,f);return r=this.getScaleZoom(p,r),u&&(r=Math.round(r/(u/100))*(u/100),r=t?Math.ceil(r/u)*u:Math.floor(r/u)*u),Math.max(i,Math.min(a,r))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new M(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new F(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(e===void 0?this.getZoom():e)},getPane:function(e){return typeof e==`string`?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=t===void 0?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=t===void 0?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=t===void 0?this._zoom:t,this.options.crs.latLngToPoint(B(e),t)},unproject:function(e,t){return t=t===void 0?this._zoom:t,this.options.crs.pointToLatLng(P(e),t)},layerPointToLatLng:function(e){var t=P(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(B(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(B(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(ee(e))},distance:function(e,t){return this.options.crs.distance(B(e),B(t))},containerPointToLayerPoint:function(e){return P(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return P(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(P(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(B(e)))},mouseEventToContainerPoint:function(e){return nn(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=pt(e);if(!t)throw Error(`Map container not found.`);if(t._leaflet_id)throw Error(`Map container is already initialized.`);Ut(t,`scroll`,this._onScroll,this),this._containerId=o(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&G.any3d,xt(e,`leaflet-container`+(G.touch?` leaflet-touch`:``)+(G.retina?` leaflet-retina`:``)+(G.ielt9?` leaflet-oldie`:``)+(G.safari?` leaflet-safari`:``)+(this._fadeAnimated?` leaflet-fade-anim`:``));var t=mt(e,`position`);t!==`absolute`&&t!==`relative`&&t!==`fixed`&&t!==`sticky`&&(e.style.position=`relative`),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane(`mapPane`,this._container),kt(this._mapPane,new M(0,0)),this.createPane(`tilePane`),this.createPane(`overlayPane`),this.createPane(`shadowPane`),this.createPane(`markerPane`),this.createPane(`tooltipPane`),this.createPane(`popupPane`),this.options.markerZoomAnimation||(xt(e.markerPane,`leaflet-zoom-hide`),xt(e.shadowPane,`leaflet-zoom-hide`))},_resetView:function(e,t,n){kt(this._mapPane,new M(0,0));var r=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire(`viewprereset`);var i=this._zoom!==t;this._moveStart(i,n)._move(e,t)._moveEnd(i),this.fire(`viewreset`),r&&this.fire(`load`)},_moveStart:function(e,t){return e&&this.fire(`zoomstart`),t||this.fire(`movestart`),this},_move:function(e,t,n,r){t===void 0&&(t=this._zoom);var i=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&this.fire(`zoom`,n):((i||n&&n.pinch)&&this.fire(`zoom`,n),this.fire(`move`,n)),this},_moveEnd:function(e){return e&&this.fire(`zoomend`),this.fire(`moveend`)},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){kt(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw Error(`Set map center and zoom first.`)},_initEvents:function(e){this._targets={},this._targets[o(this._container)]=this;var t=e?Gt:Ut;t(this._container,`click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup`,this._handleDOMEvent,this),this.options.trackResize&&t(window,`resize`,this._onResize,this),G.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,`moveend`,this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=T(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n=[],r,i=t===`mouseout`||t===`mouseover`,a=e.target||e.srcElement,s=!1;a;){if(r=this._targets[o(a)],r&&(t===`click`||t===`preclick`)&&this._draggableMoved(r)){s=!0;break}if(r&&r.listens(t,!0)&&(i&&!on(a,e)||(n.push(r),i))||a===this._container)break;a=a.parentNode}return!n.length&&!s&&!i&&this.listens(t,!0)&&(n=[this]),n},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||e.type===`click`&&this._isClickDisabled(t))){var n=e.type;n===`mousedown`&&Rt(t),this._fireDOMEvent(e,n)}},_mouseEvents:[`click`,`dblclick`,`mouseover`,`mouseout`,`contextmenu`],_fireDOMEvent:function(e,t,r){if(e.type===`click`){var i=n({},e);i.type=`preclick`,this._fireDOMEvent(i,i.type,r)}var a=this._findEventTargets(e,t);if(r){for(var o=[],s=0;s0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=G.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire(`move`)},_onPanTransitionEnd:function(){St(this._mapPane,`leaflet-pan-anim`),this.fire(`moveend`)},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return(t&&t.animate)!==!0&&!this.getSize().contains(n)?!1:(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=ht(`div`,`leaflet-proxy leaflet-zoom-animated`);this._panes.mapPane.appendChild(e),this.on(`zoomanim`,function(e){var t=dt,n=this._proxy.style[t];Ot(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on(`load moveend`,this._animMoveEnd,this),this._on(`unload`,this._destroyAnimProxy,this)},_destroyAnimProxy:function(){gt(this._proxy),this.off(`load moveend`,this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();Ot(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf(`transform`)>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName(`leaflet-zoom-animated`).length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n||={},!this._zoomAnimated||n.animate===!1||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);return n.animate!==!0&&!this.getSize().contains(i)?!1:(T(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(e,t,!0)},this),!0)},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,xt(this._mapPane,`leaflet-zoom-anim`)),this.fire(`zoomanim`,{center:e,zoom:t,noUpdate:r}),this._tempFireZoomEvent||=this._zoom!==this._animateToZoom,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&St(this._mapPane,`leaflet-zoom-anim`),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire(`zoom`),delete this._tempFireZoomEvent,this.fire(`move`),this._moveEnd(!0))}});function un(e,t){return new ln(e,t)}var dn=O.extend({options:{position:`topright`},initialize:function(e){p(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return xt(t,`leaflet-control`),n.indexOf(`bottom`)===-1?r.appendChild(t):r.insertBefore(t,r.firstChild),this._map.on(`unload`,this.remove,this),this},remove:function(){return this._map&&=(gt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off(`unload`,this.remove,this),null),this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),fn=function(e){return new dn(e)};ln.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t=`leaflet-`,n=this._controlContainer=ht(`div`,t+`control-container`,this._container);function r(r,i){var a=t+r+` `+t+i;e[r+i]=ht(`div`,a,n)}r(`top`,`left`),r(`top`,`right`),r(`bottom`,`left`),r(`bottom`,`right`)},_clearControlPos:function(){for(var e in this._controlCorners)gt(this._controlCorners[e]);gt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var pn=dn.extend({options:{collapsed:!0,position:`topright`,autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n1,this._baseLayersList.style.display=e?``:`none`),this._separator.style.display=t&&e?``:`none`,this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(o(e.target)),n=t.overlay?e.type===`add`?`overlayadd`:`overlayremove`:e.type===`add`?`baselayerchange`:null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n=``,r=document.createElement(`div`);return r.innerHTML=n,r.firstChild},_addItem:function(e){var t=document.createElement(`label`),n=this._map.hasLayer(e.layer),r;e.overlay?(r=document.createElement(`input`),r.type=`checkbox`,r.className=`leaflet-control-layers-selector`,r.defaultChecked=n):r=this._createRadioElement(`leaflet-base-layers_`+o(this),n),this._layerControlInputs.push(r),r.layerId=o(e.layer),Ut(r,`click`,this._onInputClick,this);var i=document.createElement(`span`);i.innerHTML=` `+e.name;var a=document.createElement(`span`);return t.appendChild(a),a.appendChild(r),a.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(t),this._checkDisabledLayers(),t},_onInputClick:function(){if(!this._preventClick){var e=this._layerControlInputs,t,n,r=[],i=[];this._handlingClick=!0;for(var a=e.length-1;a>=0;a--)t=e[a],n=this._getLayer(t.layerId).layer,t.checked?r.push(n):t.checked||i.push(n);for(a=0;a=0;i--)t=e[i],n=this._getLayer(t.layerId).layer,t.disabled=n.options.minZoom!==void 0&&rn.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,Ut(e,`click`,$t),this.expand();var t=this;setTimeout(function(){Gt(e,`click`,$t),t._preventClick=!1})}}),mn=function(e,t,n){return new pn(e,t,n)},hn=dn.extend({options:{position:`topleft`,zoomInText:``,zoomInTitle:`Zoom in`,zoomOutText:``,zoomOutTitle:`Zoom out`},onAdd:function(e){var t=`leaflet-control-zoom`,n=ht(`div`,t+` leaflet-bar`),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+`-in`,n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+`-out`,n,this._zoomOut),this._updateDisabled(),e.on(`zoomend zoomlevelschange`,this._updateDisabled,this),n},onRemove:function(e){e.off(`zoomend zoomlevelschange`,this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var a=ht(`a`,n,r);return a.innerHTML=e,a.href=`#`,a.title=t,a.setAttribute(`role`,`button`),a.setAttribute(`aria-label`,t),Qt(a),Ut(a,`click`,en),Ut(a,`click`,i,this),Ut(a,`click`,this._refocusOnMap,this),a},_updateDisabled:function(){var e=this._map,t=`leaflet-disabled`;St(this._zoomInButton,t),St(this._zoomOutButton,t),this._zoomInButton.setAttribute(`aria-disabled`,`false`),this._zoomOutButton.setAttribute(`aria-disabled`,`false`),(this._disabled||e._zoom===e.getMinZoom())&&(xt(this._zoomOutButton,t),this._zoomOutButton.setAttribute(`aria-disabled`,`true`)),(this._disabled||e._zoom===e.getMaxZoom())&&(xt(this._zoomInButton,t),this._zoomInButton.setAttribute(`aria-disabled`,`true`))}});ln.mergeOptions({zoomControl:!0}),ln.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new hn,this.addControl(this.zoomControl))});var gn=function(e){return new hn(e)},_n=dn.extend({options:{position:`bottomleft`,maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t=`leaflet-control-scale`,n=ht(`div`,t),r=this.options;return this._addScales(r,t+`-line`,n),e.on(r.updateWhenIdle?`moveend`:`move`,this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?`moveend`:`move`,this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=ht(`div`,t,n)),e.imperial&&(this._iScale=ht(`div`,t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+` m`:t/1e3+` km`;this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t=e*3.2808399,n,r,i;t>5280?(n=t/5280,r=this._getRoundNum(n),this._updateScale(this._iScale,r+` mi`,r/n)):(i=this._getRoundNum(t),this._updateScale(this._iScale,i+` ft`,i/t))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+`px`,e.innerHTML=t},_getRoundNum:function(e){var t=10**((Math.floor(e)+``).length-1),n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,t*n}}),vn=function(e){return new _n(e)},yn=dn.extend({options:{position:`bottomright`,prefix:``+(G.inlineSvg?` `:``)+`Leaflet`},initialize:function(e){p(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=ht(`div`,`leaflet-control-attribution`),Qt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on(`layeradd`,this._addAttribution,this),this._container},onRemove:function(e){e.off(`layeradd`,this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once(`remove`,function(){this.removeAttribution(e.layer.getAttribution())},this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e&&(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update()),this},removeAttribution:function(e){return e&&this._attributions[e]&&(this._attributions[e]--,this._update()),this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(`, `)),this._container.innerHTML=n.join(` `)}}});ln.mergeOptions({attributionControl:!0}),ln.addInitHook(function(){this.options.attributionControl&&new yn().addTo(this)}),dn.Layers=pn,dn.Zoom=hn,dn.Scale=_n,dn.Attribution=yn,fn.layers=mn,fn.zoom=gn,fn.scale=vn,fn.attribution=function(e){return new yn(e)};var bn=O.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}});bn.addTo=function(e,t){return e.addHandler(t,this),this};var xn={Events:A},Sn=G.touch?`touchstart mousedown`:`mousedown`,Cn=j.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){p(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||=(Ut(this._dragStartTarget,Sn,this._onDown,this),!0)},disable:function(){this._enabled&&(Cn._dragging===this&&this.finishDrag(!0),Gt(this._dragStartTarget,Sn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!bt(this._element,`leaflet-zoom-anim`))){if(e.touches&&e.touches.length!==1)Cn._dragging===this&&this.finishDrag();else if(!(Cn._dragging||e.shiftKey||e.which!==1&&e.button!==1&&!e.touches)&&(Cn._dragging=this,this._preventOutline&&Rt(this._element),Ft(),jt(),!this._moving)){this.fire(`down`);var t=e.touches?e.touches[0]:e,n=Bt(this._element);this._startPoint=new M(t.clientX,t.clientY),this._startPos=At(this._element),this._parentScale=Vt(n);var r=e.type===`mousedown`;Ut(document,r?`mousemove`:`touchmove`,this._onMove,this),Ut(document,r?`mouseup`:`touchend touchcancel`,this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&e.touches.length===1?e.touches[0]:e,n=new M(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)a&&(o=s,a=c);a>n&&(t[o]=1,Mn(e,t,n,r,o),Mn(e,t,n,o,i))}function Nn(e,t){for(var n=[e[0]],r=1,i=0,a=e.length;rt&&(n.push(e[r]),i=r);return it.max.x&&(n|=2),e.yt.max.y&&(n|=8),n}function Rn(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function zn(e,t,n,r){var i=t.x,a=t.y,o=n.x-i,s=n.y-a,c=o*o+s*s,l;return c>0&&(l=((e.x-i)*o+(e.y-a)*s)/c,l>1?(i=n.x,a=n.y):l>0&&(i+=o*l,a+=s*l)),o=e.x-i,s=e.y-a,r?o*o+s*s:new M(i,a)}function Bn(e){return!_(e[0])||typeof e[0][0]!=`object`&&e[0][0]!==void 0}function Vn(e){return console.warn(`Deprecated use of _flat, please use L.LineUtil.isFlat instead.`),Bn(e)}function Hn(e,t){var n,r,i,a,o,s,c,l;if(!e||e.length===0)throw Error(`latlngs not passed`);Bn(e)||(console.warn(`latlngs are not flat! Only the first ring will be used`),e=e[0]);var u=B([0,0]),d=ee(e);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(u=En(e));var f=e.length,p=[];for(n=0;nr){c=(a-r)/i,l=[s.x-c*(s.x-o.x),s.y-c*(s.y-o.y)];break}var h=t.unproject(P(l));return B([h.lat+u.lat,h.lng+u.lng])}var Un={__proto__:null,simplify:On,pointToSegmentDistance:kn,closestPointOnSegment:An,clipSegment:Fn,_getEdgeIntersection:In,_getBitCode:Ln,_sqClosestPointOnSegment:zn,isFlat:Bn,_flat:Vn,polylineCenter:Hn},Wn={project:function(e){return new M(e.lng,e.lat)},unproject:function(e){return new z(e.y,e.x)},bounds:new F([-180,-90],[180,90])},Gn={R:6378137,R_MINOR:6356752.314245179,bounds:new F([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,a=Math.sqrt(1-i*i),o=a*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/((1-o)/(1+o))**(a/2);return r=-n*Math.log(Math.max(s,1e-10)),new M(e.lng*t*n,r)},unproject:function(e){for(var t=180/Math.PI,n=this.R,r=this.R_MINOR/n,i=Math.sqrt(1-r*r),a=Math.exp(-e.y/n),o=Math.PI/2-2*Math.atan(a),s=0,c=.1,l;s<15&&Math.abs(c)>1e-7;s++)l=i*Math.sin(o),l=((1-l)/(1+l))**(i/2),c=Math.PI/2-2*Math.atan(a*l)-o,o+=c;return new z(o*t,e.x*t/n)}},Kn={__proto__:null,LonLat:Wn,Mercator:Gn,SphericalMercator:re},qn=n({},V,{code:`EPSG:3395`,projection:Gn,transformation:function(){var e=.5/(Math.PI*Gn.R);return ae(e,.5,-e,.5)}()}),Jn=n({},V,{code:`EPSG:4326`,projection:Wn,transformation:ae(1/180,1,-1/180,.5)}),Yn=n({},te,{projection:Wn,transformation:ae(1,0,-1,0),scale:function(e){return 2**e},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});te.Earth=V,te.EPSG3395=qn,te.EPSG3857=oe,te.EPSG900913=se,te.EPSG4326=Jn,te.Simple=Yn;var Xn=j.extend({options:{pane:`overlayPane`,attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[o(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[o(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once(`remove`,function(){t.off(n,this)},this)}this.onAdd(t),this.fire(`add`),t.fire(`layeradd`,{layer:this})}}});ln.include({addLayer:function(e){if(!e._layerAdd)throw Error(`The provided object is not a Layer.`);var t=o(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=o(e);return this._layers[t]&&(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire(`layerremove`,{layer:e}),e.fire(`remove`)),e._map=e._mapToAdd=null),this},hasLayer:function(e){return o(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){e=e?_(e)?e:[e]:[];for(var t=0,n=e.length;tthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&t[0]instanceof z&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){fr.prototype._setLatLngs.call(this,e),Bn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Bn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new M(t,t);if(e=new F(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e)){if(this.options.noClip)this._parts=this._rings;else for(var r=0,i=this._rings.length,a;re.y!=i.y>e.y&&e.x<(i.x-r.x)*(e.y-r.y)/(i.y-r.y)+r.x&&(t=!t);return t||fr.prototype._containsPoint.call(this,e,!0)}});function hr(e,t){return new mr(e,t)}var gr=$n.extend({initialize:function(e,t){p(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t=_(e)?e:e.features,n,r,i;if(t){for(n=0,r=t.length;n0&&i.push(i[0].slice()),i}function Cr(e,t){return e.feature?n({},e.feature,{geometry:t}):wr(t)}function wr(e){return e.type===`Feature`||e.type===`FeatureCollection`?e:{type:`Feature`,properties:{},geometry:e}}var Tr={toGeoJSON:function(e){return Cr(this,{type:`Point`,coordinates:xr(this.getLatLng(),e)})}};ar.include(Tr),ur.include(Tr),cr.include(Tr),fr.include({toGeoJSON:function(e){var t=!Bn(this._latlngs),n=Sr(this._latlngs,+!!t,!1,e);return Cr(this,{type:(t?`Multi`:``)+`LineString`,coordinates:n})}}),mr.include({toGeoJSON:function(e){var t=!Bn(this._latlngs),n=t&&!Bn(this._latlngs[0]),r=Sr(this._latlngs,n?2:+!!t,!0,e);return t||(r=[r]),Cr(this,{type:(n?`Multi`:``)+`Polygon`,coordinates:r})}}),Zn.include({toMultiPoint:function(e){var t=[];return this.eachLayer(function(n){t.push(n.toGeoJSON(e).geometry.coordinates)}),Cr(this,{type:`MultiPoint`,coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(t===`MultiPoint`)return this.toMultiPoint(e);var n=t===`GeometryCollection`,r=[];return this.eachLayer(function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var a=wr(i);a.type===`FeatureCollection`?r.push.apply(r,a.features):r.push(a)}}}),n?Cr(this,{geometries:r,type:`GeometryCollection`}):{type:`FeatureCollection`,features:r}}});function Er(e,t){return new gr(e,t)}var Dr=Er,Or=Xn.extend({options:{opacity:1,alt:``,interactive:!1,crossOrigin:!1,errorOverlayUrl:``,zIndex:1,className:``},initialize:function(e,t,n){this._url=e,this._bounds=ee(t),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(xt(this._image,`leaflet-interactive`),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){gt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&vt(this._image),this},bringToBack:function(){return this._map&&yt(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=ee(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e=this._url.tagName===`IMG`,t=this._image=e?this._url:ht(`img`);xt(t,`leaflet-image-layer`),this._zoomAnimated&&xt(t,`leaflet-zoom-animated`),this.options.className&&xt(t,this.options.className),t.onselectstart=l,t.onmousemove=l,t.onload=i(this.fire,this,`load`),t.onerror=i(this._overlayOnError,this,`error`),(this.options.crossOrigin||this.options.crossOrigin===``)&&(t.crossOrigin=this.options.crossOrigin===!0?``:this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;Ot(this._image,n,t)},_reset:function(){var e=this._image,t=new F(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();kt(e,t.min),e.style.width=n.x+`px`,e.style.height=n.y+`px`},_updateOpacity:function(){Tt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire(`error`);var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),kr=function(e,t,n){return new Or(e,t,n)},Ar=Or.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e=this._url.tagName===`VIDEO`,t=this._image=e?this._url:ht(`video`);if(xt(t,`leaflet-image-layer`),this._zoomAnimated&&xt(t,`leaflet-zoom-animated`),this.options.className&&xt(t,this.options.className),t.onselectstart=l,t.onmousemove=l,t.onloadeddata=i(this.fire,this,`load`),e){for(var n=t.getElementsByTagName(`source`),r=[],a=0;a0?r:[t.src]}else{_(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,`objectFit`)&&(t.style.objectFit=`fill`),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var o=0;o