synapse-admin/assets/index-JeJ57CyM.js

325 lines
1.3 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var eH=Object.defineProperty;var Gj=e=>{throw TypeError(e)};var tH=(e,t,r)=>t in e?eH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var zg=(e,t,r)=>tH(e,typeof t!="symbol"?t+"":t,r),gC=(e,t,r)=>t.has(e)||Gj("Cannot "+r);var Y=(e,t,r)=>(gC(e,t,"read from private field"),r?r.call(e):t.get(e)),rt=(e,t,r)=>t.has(e)?Gj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),He=(e,t,r,n)=>(gC(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),jt=(e,t,r)=>(gC(e,t,"access private method"),r);var wf=(e,t,r,n)=>({set _(a){He(e,t,a,r)},get _(){return Y(e,t,n)}});function rH(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(n,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Ou=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yC={exports:{}},qg={},bC={exports:{}},ar={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Qj;function nH(){if(Qj)return ar;Qj=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.iterator;function y(G){return G===null||typeof G!="object"?null:(G=v&&G[v]||G["@@iterator"],typeof G=="function"?G:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,w={};function S(G,J,de){this.props=G,this.context=J,this.refs=w,this.updater=de||b}S.prototype.isReactComponent={},S.prototype.setState=function(G,J){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,J,"setState")},S.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function A(){}A.prototype=S.prototype;function R(G,J,de){this.props=G,this.context=J,this.refs=w,this.updater=de||b}var C=R.prototype=new A;C.constructor=R,_(C,S.prototype),C.isPureReactComponent=!0;var O=Array.isArray,T=Object.prototype.hasOwnProperty,E={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function j(G,J,de){var ce,ue={},be=null,Pe=null;if(J!=null)for(ce in J.ref!==void 0&&(Pe=J.ref),J.key!==void 0&&(be=""+J.key),J)T.call(J,ce)&&!L.hasOwnProperty(ce)&&(ue[ce]=J[ce]);var Ee=arguments.length-2;if(Ee===1)ue.children=de;else if(1<Ee){for(var ge=Array(Ee),xe=0;xe<Ee;xe++)ge[xe]=arguments[xe+2];ue.children=ge}if(G&&G.defaultProps)for(ce in Ee=G.defaultProps,Ee)ue[ce]===void 0&&(ue[ce]=Ee[ce]);return{$$typeof:e,type:G,key:be,ref:Pe,props:ue,_owner:E.current}}function M(G,J){return{$$typeof:e,type:G.type,key:J,ref:G.ref,props:G.props,_owner:G._owner}}function k(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function $(G){var J={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(de){return J[de]})}var B=/\/+/g;function z(G,J){return typeof G=="object"&&G!==null&&G.key!=null?$(""+G.key):J.toString(36)}function U(G,J,de,ce,ue){var be=typeof G;(be==="undefined"||be==="boolean")&&(G=null);var Pe=!1;if(G===null)Pe=!0;else switch(be){case"string":case"number":Pe=!0;break;case"object":switch(G.$$typeof){case e:case t:Pe=!0}}if(Pe)return Pe=G,ue=ue(Pe),G=ce===""?"."+z(Pe,0):ce,O(ue)?(de="",G!=null&&(de=G.replace(B,"$&/")+"/"),U(ue,J,de,"",function(xe){return xe})):ue!=null&&(k(ue)&&(ue=M(ue,de+(!ue.key||Pe&&Pe.key===ue.key?"":(""+ue.key).replace(B,"$&/")+"/")+G)),J.push(ue)),1;if(Pe=0,ce=ce===""?".":ce+":",O(G))for(var Ee=0;Ee<G.length;Ee++){be=G[Ee];var ge=ce+z(be,Ee);Pe+=U(be,J,de,ge,ue)}else if(ge=y(G),typeof ge=="function")for(G=ge.call(G),Ee=0;!(be=G.next()).done;)be=be.value,ge=ce+z(be,Ee++),Pe+=U(be,J,de,ge,ue);else if(be==="object")throw J=String(G),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.");return Pe}function W(G,J,de){if(G==null)return G;var ce=[],ue=0;return U(G,ce,"","",function(be){return J.call(de,be,ue++)}),ce}function Q(G){if(G._status===-1){var J=G._result;J=J(),J.then(function(de){(G._status===0||G._status===-1)&&(G._status=1,G._result=de)},function(de){(G._status===0||G._status===-1)&&(G._status=2,G._result=de)}),G._status===-1&&(G._status=0,G._result=J)}if(G._status===1)return G._result.default;throw G._result}var V={current:null},K={transition:null},X={ReactCurrentDispatcher:V,ReactCurrentBatchConfig:K,ReactCurrentOwner:E};function te(){throw Error("act(...) is not supported in production builds of React.")}return ar.Children={map:W,forEach:function(G,J,de){W(G,function(){J.apply(this,arguments)},de)},count:function(G){var J=0;return W(G,function(){J++}),J},toArray:function(G){return W(G,function(J){return J})||[]},only:function(G){if(!k(G))throw Error("React.Children.only expected to receive a single React element child.");return G}},ar.Component=S,ar.Fragment=r,ar.Profiler=a,ar.PureComponent=R,ar.StrictMode=n,ar.Suspense=d,ar.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,ar.act=te,ar.cloneElement=function(G,J,de){if(G==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+G+".");var ce=_({},G.props),ue=G.key,be=G.ref,Pe=G._owner;if(J!=null){if(J.ref!==void 0&&(be=J.ref,Pe=E.current),J.key!==void 0&&(ue=""+J.key),G.type&&G.type.defaultProps)var Ee=G.type.defaultProps;for(ge in J)T.call(J,ge)&&!L.hasOwnProperty(ge)&&(ce[ge]=J[ge]===void 0&&Ee!==void 0?Ee[ge]:J[ge])}var ge=arguments.length-2;if(ge===1)ce.children=de;else if(1<ge){Ee=Array(ge);for(var xe=0;xe<ge;xe++)Ee[xe]=arguments[xe+2];ce.children=Ee}return{$$typeof:e,type:G.type,key:ue,ref:be,props:ce,_owner:Pe}},ar.createContext=function(G){return G={$$typeof:i,_currentValue:G,_currentValue2:G,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},G.Provider={$$typeof:o,_context:G},G.Consumer=G},ar.createElement=j,ar.createFactory=function(G){var J=j.bind(null,G);return J.type=G,J},ar.createRef=function(){return{current:null}},ar.forwardRef=function(G){return{$$typeof:u,render:G}},ar.isValidElement=k,ar.lazy=function(G){return{$$typeof:h,_payload:{_status:-1,_result:G},_init:Q}},ar.memo=function(G,J){return{$$typeof:l,type:G,compare:J===void 0?null:J}},ar.startTransition=function(G){var J=K.transition;K.transition={};try{G()}finally{K.transition=J}},ar.unstable_act=te,ar.useCallback=function(G,J){return V.current.useCallback(G,J)},ar.useContext=function(G){return V.current.useContext(G)},ar.useDebugValue=function(){},ar.useDeferredValue=function(G){return V.current.useDeferredValue(G)},ar.useEffect=function(G,J){return V.current.useEffect(G,J)},ar.useId=function(){return V.current.useId()},ar.useImperativeHandle=function(G,J,de){return V.current.useImperativeHandle(G,J,de)},ar.useInsertionEffect=function(G,J){return V.current.useInsertionEffect(G,J)},ar.useLayoutEffect=function(G,J){return V.current.useLayoutEffect(G,J)},ar.useMemo=function(G,J){return V.current.useMemo(G,J)},ar.useReducer=function(G,J,de){return V.current.useReducer(G,J,de)},ar.useRef=function(G){return V.current.useRef(G)},ar.useState=function(G){return V.current.useState(G)},ar.useSyncExternalStore=function(G,J,de){return V.current.useSyncExternalStore(G,J,de)},ar.useTransition=function(){return V.current.useTransition()},ar.version="18.3.1",ar}var Xj;function dA(){return Xj||(Xj=1,bC.exports=nH()),bC.exports}/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Yj;function aH(){if(Yj)return qg;Yj=1;var e=dA(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(u,d,l){var h,v={},y=null,b=null;l!==void 0&&(y=""+l),d.key!==void 0&&(y=""+d.key),d.ref!==void 0&&(b=d.ref);for(h in d)n.call(d,h)&&!o.hasOwnProperty(h)&&(v[h]=d[h]);if(u&&u.defaultProps)for(h in d=u.defaultProps,d)v[h]===void 0&&(v[h]=d[h]);return{$$typeof:t,type:u,key:y,ref:b,props:v,_owner:a.current}}return qg.Fragment=r,qg.jsx=i,qg.jsxs=i,qg}var Jj;function oH(){return Jj||(Jj=1,yC.exports=aH()),yC.exports}var I=oH(),p=dA();const Qe=Nn(p),P1=rH({__proto__:null,default:Qe},[p]);var j_={},_C={exports:{}},To={},wC={exports:{}},xC={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Zj;function iH(){return Zj||(Zj=1,function(e){function t(K,X){var te=K.length;K.push(X);e:for(;0<te;){var G=te-1>>>1,J=K[G];if(0<a(J,X))K[G]=X,K[te]=J,te=G;else break e}}function r(K){return K.length===0?null:K[0]}function n(K){if(K.length===0)return null;var X=K[0],te=K.pop();if(te!==X){K[0]=te;e:for(var G=0,J=K.length,de=J>>>1;G<de;){var ce=2*(G+1)-1,ue=K[ce],be=ce+1,Pe=K[be];if(0>a(ue,te))be<J&&0>a(Pe,ue)?(K[G]=Pe,K[be]=te,G=be):(K[G]=ue,K[ce]=te,G=ce);else if(be<J&&0>a(Pe,te))K[G]=Pe,K[be]=te,G=be;else break e}}return X}function a(K,X){var te=K.sortIndex-X.sortIndex;return te!==0?te:K.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var d=[],l=[],h=1,v=null,y=3,b=!1,_=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(K){for(var X=r(l);X!==null;){if(X.callback===null)n(l);else if(X.startTime<=K)n(l),X.sortIndex=X.expirationTime,t(d,X);else break;X=r(l)}}function O(K){if(w=!1,C(K),!_)if(r(d)!==null)_=!0,Q(T);else{var X=r(l);X!==null&&V(O,X.startTime-K)}}function T(K,X){_=!1,w&&(w=!1,A(j),j=-1),b=!0;var te=y;try{for(C(X),v=r(d);v!==null&&(!(v.expirationTime>X)||K&&!$());){var G=v.callback;if(typeof G=="function"){v.callback=null,y=v.priorityLevel;var J=G(v.expirationTime<=X);X=e.unstable_now(),typeof J=="function"?v.callback=J:v===r(d)&&n(d),C(X)}else n(d);v=r(d)}if(v!==null)var de=!0;else{var ce=r(l);ce!==null&&V(O,ce.startTime-X),de=!1}return de}finally{v=null,y=te,b=!1}}var E=!1,L=null,j=-1,M=5,k=-1;function $(){return!(e.unstable_now()-k<M)}function B(){if(L!==null){var K=e.unstable_now();k=K;var X=!0;try{X=L(!0,K)}finally{X?z():(E=!1,L=null)}}else E=!1}var z;if(typeof R=="function")z=function(){R(B)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,W=U.port2;U.port1.onmessage=B,z=function(){W.postMessage(null)}}else z=function(){S(B,0)};function Q(K){L=K,E||(E=!0,z())}function V(K,X){j=S(function(){K(e.unstable_now())},X)}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(K){K.callback=null},e.unstable_continueExecution=function(){_||b||(_=!0,Q(T))},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return r(d)},e.unstable_next=function(K){switch(y){case 1:case 2:case 3:var X=3;break;default:X=y}var te=y;y=X;try{return K()}finally{y=te}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(K,X){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var te=y;y=K;try{return X()}finally{y=te}},e.unstable_scheduleCallback=function(K,X,te){var G=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?G+te:G):te=G,K){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=te+J,K={id:h++,callback:X,priorityLevel:K,startTime:te,expirationTime:J,sortIndex:-1},te>G?(K.sortIndex=te,t(l,K),r(d)===null&&K===r(l)&&(w?(A(j),j=-1):w=!0,V(O,te-G))):(K.sortIndex=J,t(d,K),_||b||(_=!0,Q(T))),K},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(K){var X=y;return function(){var te=y;y=X;try{return K.apply(this,arguments)}finally{y=te}}}}(xC)),xC}var eM;function sH(){return eM||(eM=1,wC.exports=iH()),wC.exports}/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var tM;function lH(){if(tM)return To;tM=1;var e=dA(),t=sH();function r(s){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+s,g=1;g<arguments.length;g++)c+="&args[]="+encodeURIComponent(arguments[g]);return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,a={};function o(s,c){i(s,c),i(s+"Capture",c)}function i(s,c){for(a[s]=c,s=0;s<c.length;s++)n.add(c[s])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,l=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},v={};function y(s){return d.call(v,s)?!0:d.call(h,s)?!1:l.test(s)?v[s]=!0:(h[s]=!0,!1)}function b(s,c,g,x){if(g!==null&&g.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return x?!1:g!==null?!g.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function _(s,c,g,x){if(c===null||typeof c>"u"||b(s,c,g,x))return!0;if(x)return!1;if(g!==null)switch(g.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function w(s,c,g,x,F,D,H){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=x,this.attributeNamespace=F,this.mustUseProperty=g,this.propertyName=s,this.type=c,this.sanitizeURL=D,this.removeEmptyString=H}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){S[s]=new w(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0];S[c]=new w(c,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){S[s]=new w(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){S[s]=new w(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){S[s]=new w(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){S[s]=new w(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){S[s]=new w(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){S[s]=new w(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){S[s]=new w(s,5,!1,s.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function R(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var c=s.replace(A,R);S[c]=new w(c,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var c=s.replace(A,R);S[c]=new w(c,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(A,R);S[c]=new w(c,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){S[s]=new w(s,1,!1,s.toLowerCase(),null,!1,!1)}),S.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){S[s]=new w(s,1,!1,s.toLowerCase(),null,!0,!0)});function C(s,c,g,x){var F=S.hasOwnProperty(c)?S[c]:null;(F!==null?F.type!==0:x||!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(_(c,g,F,x)&&(g=null),x||F===null?y(c)&&(g===null?s.removeAttribute(c):s.setAttribute(c,""+g)):F.mustUseProperty?s[F.propertyName]=g===null?F.type===3?!1:"":g:(c=F.attributeName,x=F.attributeNamespace,g===null?s.removeAttribute(c):(F=F.type,g=F===3||F===4&&g===!0?"":""+g,x?s.setAttributeNS(x,c,g):s.setAttribute(c,g))))}var O=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),E=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),$=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),K=Symbol.iterator;function X(s){return s===null||typeof s!="object"?null:(s=K&&s[K]||s["@@iterator"],typeof s=="function"?s:null)}var te=Object.assign,G;function J(s){if(G===void 0)try{throw Error()}catch(g){var c=g.stack.trim().match(/\n( *(at )?)/);G=c&&c[1]||""}return`
`+G+s}var de=!1;function ce(s,c){if(!s||de)return"";de=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(je){var x=je}Reflect.construct(s,[],c)}else{try{c.call()}catch(je){x=je}s.call(c.prototype)}else{try{throw Error()}catch(je){x=je}s()}}catch(je){if(je&&x&&typeof je.stack=="string"){for(var F=je.stack.split(`
`),D=x.stack.split(`
`),H=F.length-1,ae=D.length-1;1<=H&&0<=ae&&F[H]!==D[ae];)ae--;for(;1<=H&&0<=ae;H--,ae--)if(F[H]!==D[ae]){if(H!==1||ae!==1)do if(H--,ae--,0>ae||F[H]!==D[ae]){var fe=`
`+F[H].replace(" at new "," at ");return s.displayName&&fe.includes("<anonymous>")&&(fe=fe.replace("<anonymous>",s.displayName)),fe}while(1<=H&&0<=ae);break}}}finally{de=!1,Error.prepareStackTrace=g}return(s=s?s.displayName||s.name:"")?J(s):""}function ue(s){switch(s.tag){case 5:return J(s.type);case 16:return J("Lazy");case 13:return J("Suspense");case 19:return J("SuspenseList");case 0:case 2:case 15:return s=ce(s.type,!1),s;case 11:return s=ce(s.type.render,!1),s;case 1:return s=ce(s.type,!0),s;default:return""}}function be(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case L:return"Fragment";case E:return"Portal";case M:return"Profiler";case j:return"StrictMode";case z:return"Suspense";case U:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case $:return(s.displayName||"Context")+".Consumer";case k:return(s._context.displayName||"Context")+".Provider";case B:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case W:return c=s.displayName||null,c!==null?c:be(s.type)||"Memo";case Q:c=s._payload,s=s._init;try{return be(s(c))}catch{}}return null}function Pe(s){var c=s.type;switch(s.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=c.render,s=s.displayName||s.name||"",c.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return be(c);case 8:return c===j?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function Ee(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function ge(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function xe(s){var c=ge(s)?"checked":"value",g=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),x=""+s[c];if(!s.hasOwnProperty(c)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var F=g.get,D=g.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return F.call(this)},set:function(H){x=""+H,D.call(this,H)}}),Object.defineProperty(s,c,{enumerable:g.enumerable}),{getValue:function(){return x},setValue:function(H){x=""+H},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Oe(s){s._valueTracker||(s._valueTracker=xe(s))}function Te(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var g=c.getValue(),x="";return s&&(x=ge(s)?s.checked?"true":"false":s.value),s=x,s!==g?(c.setValue(s),!0):!1}function Me(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function Fe(s,c){var g=c.checked;return te({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:g??s._wrapperState.initialChecked})}function $e(s,c){var g=c.defaultValue==null?"":c.defaultValue,x=c.checked!=null?c.checked:c.defaultChecked;g=Ee(c.value!=null?c.value:g),s._wrapperState={initialChecked:x,initialValue:g,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function et(s,c){c=c.checked,c!=null&&C(s,"checked",c,!1)}function qe(s,c){et(s,c);var g=Ee(c.value),x=c.type;if(g!=null)x==="number"?(g===0&&s.value===""||s.value!=g)&&(s.value=""+g):s.value!==""+g&&(s.value=""+g);else if(x==="submit"||x==="reset"){s.removeAttribute("value");return}c.hasOwnProperty("value")?oe(s,c.type,g):c.hasOwnProperty("defaultValue")&&oe(s,c.type,Ee(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(s.defaultChecked=!!c.defaultChecked)}function re(s,c,g){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var x=c.type;if(!(x!=="submit"&&x!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+s._wrapperState.initialValue,g||c===s.value||(s.value=c),s.defaultValue=c}g=s.name,g!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,g!==""&&(s.name=g)}function oe(s,c,g){(c!=="number"||Me(s.ownerDocument)!==s)&&(g==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+g&&(s.defaultValue=""+g))}var pe=Array.isArray;function Se(s,c,g,x){if(s=s.options,c){c={};for(var F=0;F<g.length;F++)c["$"+g[F]]=!0;for(g=0;g<s.length;g++)F=c.hasOwnProperty("$"+s[g].value),s[g].selected!==F&&(s[g].selected=F),F&&x&&(s[g].defaultSelected=!0)}else{for(g=""+Ee(g),c=null,F=0;F<s.length;F++){if(s[F].value===g){s[F].selected=!0,x&&(s[F].defaultSelected=!0);return}c!==null||s[F].disabled||(c=s[F])}c!==null&&(c.selected=!0)}}function ne(s,c){if(c.dangerouslySetInnerHTML!=null)throw Error(r(91));return te({},c,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function we(s,c){var g=c.value;if(g==null){if(g=c.children,c=c.defaultValue,g!=null){if(c!=null)throw Error(r(92));if(pe(g)){if(1<g.length)throw Error(r(93));g=g[0]}c=g}c==null&&(c=""),g=c}s._wrapperState={initialValue:Ee(g)}}function Ne(s,c){var g=Ee(c.value),x=Ee(c.defaultValue);g!=null&&(g=""+g,g!==s.value&&(s.value=g),c.defaultValue==null&&s.defaultValue!==g&&(s.defaultValue=g)),x!=null&&(s.defaultValue=""+x)}function De(s){var c=s.textContent;c===s._wrapperState.initialValue&&c!==""&&c!==null&&(s.value=c)}function ht(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lt(s,c){return s==null||s==="http://www.w3.org/1999/xhtml"?ht(c):s==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var bt,Pt=function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(c,g,x,F){MSApp.execUnsafeLocalFunction(function(){return s(c,g,x,F)})}:s}(function(s,c){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=c;else{for(bt=bt||document.createElement("div"),bt.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=bt.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}});function Tt(s,c){if(c){var g=s.firstChild;if(g&&g===s.lastChild&&g.nodeType===3){g.nodeValue=c;return}}s.textContent=c}var Je={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dt=["Webkit","ms","Moz","O"];Object.keys(Je).forEach(function(s){Dt.forEach(function(c){c=c+s.charAt(0).toUpperCase()+s.substring(1),Je[c]=Je[s]})});function Lt(s,c,g){return c==null||typeof c=="boolean"||c===""?"":g||typeof c!="number"||c===0||Je.hasOwnProperty(s)&&Je[s]?(""+c).trim():c+"px"}function Ct(s,c){s=s.style;for(var g in c)if(c.hasOwnProperty(g)){var x=g.indexOf("--")===0,F=Lt(g,c[g],x);g==="float"&&(g="cssFloat"),x?s.setProperty(g,F):s[g]=F}}var ct=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Kt(s,c){if(c){if(ct[s]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(r(137,s));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(r(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(r(61))}if(c.style!=null&&typeof c.style!="object")throw Error(r(62))}}function lr(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var en=null;function Bn(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Xi=null,Pa=null,ia=null;function Yi(s){if(s=Jn(s)){if(typeof Xi!="function")throw Error(r(280));var c=s.stateNode;c&&(c=Vp(c),Xi(s.stateNode,s.type,c))}}function Bo(s){Pa?ia?ia.push(s):ia=[s]:Pa=s}function zo(){if(Pa){var s=Pa,c=ia;if(ia=Pa=null,Yi(s),c)for(s=0;s<c.length;s++)Yi(c[s])}}function Is(s,c){return s(c)}function Ht(){}var le=!1;function ie(s,c,g){if(le)return s(c,g);le=!0;try{return Is(s,c,g)}finally{le=!1,(Pa!==null||ia!==null)&&(Ht(),zo())}}function me(s,c){var g=s.stateNode;if(g===null)return null;var x=Vp(g);if(x===null)return null;g=x[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(s=s.type,x=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!x;break e;default:s=!1}if(s)return null;if(g&&typeof g!="function")throw Error(r(231,c,typeof g));return g}var Le=!1;if(u)try{var Ke={};Object.defineProperty(Ke,"passive",{get:function(){Le=!0}}),window.addEventListener("test",Ke,Ke),window.removeEventListener("test",Ke,Ke)}catch{Le=!1}function at(s,c,g,x,F,D,H,ae,fe){var je=Array.prototype.slice.call(arguments,3);try{c.apply(g,je)}catch(Xe){this.onError(Xe)}}var Et=!1,ut=null,Ot=!1,At=null,qt={onError:function(s){Et=!0,ut=s}};function Ft(s,c,g,x,F,D,H,ae,fe){Et=!1,ut=null,at.apply(qt,arguments)}function Xt(s,c,g,x,F,D,H,ae,fe){if(Ft.apply(this,arguments),Et){if(Et){var je=ut;Et=!1,ut=null}else throw Error(r(198));Ot||(Ot=!0,At=je)}}function ur(s){var c=s,g=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(g=c.return),s=c.return;while(s)}return c.tag===3?g:null}function Gr(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function bn(s){if(ur(s)!==s)throw Error(r(188))}function sa(s){var c=s.alternate;if(!c){if(c=ur(s),c===null)throw Error(r(188));return c!==s?null:s}for(var g=s,x=c;;){var F=g.return;if(F===null)break;var D=F.alternate;if(D===null){if(x=F.return,x!==null){g=x;continue}break}if(F.child===D.child){for(D=F.child;D;){if(D===g)return bn(F),s;if(D===x)return bn(F),c;D=D.sibling}throw Error(r(188))}if(g.return!==x.return)g=F,x=D;else{for(var H=!1,ae=F.child;ae;){if(ae===g){H=!0,g=F,x=D;break}if(ae===x){H=!0,x=F,g=D;break}ae=ae.sibling}if(!H){for(ae=D.child;ae;){if(ae===g){H=!0,g=D,x=F;break}if(ae===x){H=!0,x=D,g=F;break}ae=ae.sibling}if(!H)throw Error(r(189))}}if(g.alternate!==x)throw Error(r(190))}if(g.tag!==3)throw Error(r(188));return g.stateNode.current===g?s:c}function ir(s){return s=sa(s),s!==null?js(s):null}function js(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var c=js(s);if(c!==null)return c;s=s.sibling}return null}var hi=t.unstable_scheduleCallback,Ms=t.unstable_cancelCallback,zn=t.unstable_shouldYield,Fl=t.unstable_requestPaint,Sr=t.unstable_now,Pd=t.unstable_getCurrentPriorityLevel,qo=t.unstable_ImmediatePriority,Ll=t.unstable_UserBlockingPriority,cr=t.unstable_NormalPriority,la=t.unstable_LowPriority,ho=t.unstable_IdlePriority,Ji=null,Ra=null;function Yr(s){if(Ra&&typeof Ra.onCommitFiberRoot=="function")try{Ra.onCommitFiberRoot(Ji,s,void 0,(s.current.flags&128)===128)}catch{}}var Pn=Math.clz32?Math.clz32:h0,Rd=Math.log,gp=Math.LN2;function h0(s){return s>>>=0,s===0?32:31-(Rd(s)/gp|0)|0}var Bu=64,yp=4194304;function zu(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function $l(s,c){var g=s.pendingLanes;if(g===0)return 0;var x=0,F=s.suspendedLanes,D=s.pingedLanes,H=g&268435455;if(H!==0){var ae=H&~F;ae!==0?x=zu(ae):(D&=H,D!==0&&(x=zu(D)))}else H=g&~F,H!==0?x=zu(H):D!==0&&(x=zu(D));if(x===0)return 0;if(c!==0&&c!==x&&(c&F)===0&&(F=x&-x,D=c&-c,F>=D||F===16&&(D&4194240)!==0))return c;if((x&4)!==0&&(x|=g&16),c=s.entangledLanes,c!==0)for(s=s.entanglements,c&=x;0<c;)g=31-Pn(c),F=1<<g,x|=s[g],c&=~F;return x}function m0(s,c){switch(s){case 1:case 2:case 4:return c+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _S(s,c){for(var g=s.suspendedLanes,x=s.pingedLanes,F=s.expirationTimes,D=s.pendingLanes;0<D;){var H=31-Pn(D),ae=1<<H,fe=F[H];fe===-1?((ae&g)===0||(ae&x)!==0)&&(F[H]=m0(ae,c)):fe<=c&&(s.expiredLanes|=ae),D&=~ae}}function bp(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function Sv(){var s=Bu;return Bu<<=1,(Bu&4194240)===0&&(Bu=64),s}function kd(s){for(var c=[],g=0;31>g;g++)c.push(s);return c}function Td(s,c,g){s.pendingLanes|=c,c!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,c=31-Pn(c),s[c]=g}function v0(s,c){var g=s.pendingLanes&~c;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=c,s.mutableReadLanes&=c,s.entangledLanes&=c,c=s.entanglements;var x=s.eventTimes;for(s=s.expirationTimes;0<g;){var F=31-Pn(g),D=1<<F;c[F]=0,x[F]=-1,s[F]=-1,g&=~D}}function Ad(s,c){var g=s.entangledLanes|=c;for(s=s.entanglements;g;){var x=31-Pn(g),F=1<<x;F&c|s[x]&c&&(s[x]|=c),g&=~F}}var wr=0;function Dl(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var Cv,_p,g0,Ev,Ov,wp=!1,Id=[],Fs=null,Ls=null,$s=null,qu=new Map,jd=new Map,Ds=[],wS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function y0(s,c){switch(s){case"focusin":case"focusout":Fs=null;break;case"dragenter":case"dragleave":Ls=null;break;case"mouseover":case"mouseout":$s=null;break;case"pointerover":case"pointerout":qu.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":jd.delete(c.pointerId)}}function Nl(s,c,g,x,F,D){return s===null||s.nativeEvent!==D?(s={blockedOn:c,domEventName:g,eventSystemFlags:x,nativeEvent:D,targetContainers:[F]},c!==null&&(c=Jn(c),c!==null&&_p(c)),s):(s.eventSystemFlags|=x,c=s.targetContainers,F!==null&&c.indexOf(F)===-1&&c.push(F),s)}function xS(s,c,g,x,F){switch(c){case"focusin":return Fs=Nl(Fs,s,c,g,x,F),!0;case"dragenter":return Ls=Nl(Ls,s,c,g,x,F),!0;case"mouseover":return $s=Nl($s,s,c,g,x,F),!0;case"pointerover":var D=F.pointerId;return qu.set(D,Nl(qu.get(D)||null,s,c,g,x,F)),!0;case"gotpointercapture":return D=F.pointerId,jd.set(D,Nl(jd.get(D)||null,s,c,g,x,F)),!0}return!1}function b0(s){var c=yi(s.target);if(c!==null){var g=ur(c);if(g!==null){if(c=g.tag,c===13){if(c=Gr(g),c!==null){s.blockedOn=c,Ov(s.priority,function(){g0(g)});return}}else if(c===3&&g.stateNode.current.memoizedState.isDehydrated){s.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}s.blockedOn=null}function xp(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var g=Ep(s.domEventName,s.eventSystemFlags,c[0],s.nativeEvent);if(g===null){g=s.nativeEvent;var x=new g.constructor(g.type,g);en=x,g.target.dispatchEvent(x),en=null}else return c=Jn(g),c!==null&&_p(c),s.blockedOn=g,!1;c.shift()}return!0}function _0(s,c,g){xp(s)&&g.delete(c)}function SS(){wp=!1,Fs!==null&&xp(Fs)&&(Fs=null),Ls!==null&&xp(Ls)&&(Ls=null),$s!==null&&xp($s)&&($s=null),qu.forEach(_0),jd.forEach(_0)}function Er(s,c){s.blockedOn===c&&(s.blockedOn=null,wp||(wp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,SS)))}function Cr(s){function c(F){return Er(F,s)}if(0<Id.length){Er(Id[0],s);for(var g=1;g<Id.length;g++){var x=Id[g];x.blockedOn===s&&(x.blockedOn=null)}}for(Fs!==null&&Er(Fs,s),Ls!==null&&Er(Ls,s),$s!==null&&Er($s,s),qu.forEach(c),jd.forEach(c),g=0;g<Ds.length;g++)x=Ds[g],x.blockedOn===s&&(x.blockedOn=null);for(;0<Ds.length&&(g=Ds[0],g.blockedOn===null);)b0(g),g.blockedOn===null&&Ds.shift()}var Uu=O.ReactCurrentBatchConfig,Sp=!0;function CS(s,c,g,x){var F=wr,D=Uu.transition;Uu.transition=null;try{wr=1,Pv(s,c,g,x)}finally{wr=F,Uu.transition=D}}function ES(s,c,g,x){var F=wr,D=Uu.transition;Uu.transition=null;try{wr=4,Pv(s,c,g,x)}finally{wr=F,Uu.transition=D}}function Pv(s,c,g,x){if(Sp){var F=Ep(s,c,g,x);if(F===null)Vv(s,c,x,Cp,g),y0(s,x);else if(xS(F,s,c,g,x))x.stopPropagation();else if(y0(s,x),c&4&&-1<wS.indexOf(s)){for(;F!==null;){var D=Jn(F);if(D!==null&&Cv(D),D=Ep(s,c,g,x),D===null&&Vv(s,c,x,Cp,g),D===F)break;F=D}F!==null&&x.stopPropagation()}else Vv(s,c,x,null,g)}}var Cp=null;function Ep(s,c,g,x){if(Cp=null,s=Bn(x),s=yi(s),s!==null)if(c=ur(s),c===null)s=null;else if(g=c.tag,g===13){if(s=Gr(c),s!==null)return s;s=null}else if(g===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null);return Cp=s,null}function w0(s){switch(s){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Pd()){case qo:return 1;case Ll:return 4;case cr:case la:return 16;case ho:return 536870912;default:return 16}default:return 16}}var Vr=null,Md=null,mi=null;function Rv(){if(mi)return mi;var s,c=Md,g=c.length,x,F="value"in Vr?Vr.value:Vr.textContent,D=F.length;for(s=0;s<g&&c[s]===F[s];s++);var H=g-s;for(x=1;x<=H&&c[g-x]===F[D-x];x++);return mi=F.slice(s,1<x?1-x:void 0)}function Vu(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function ua(){return!0}function kv(){return!1}function ka(s){function c(g,x,F,D,H){this._reactName=g,this._targetInst=F,this.type=x,this.nativeEvent=D,this.target=H,this.currentTarget=null;for(var ae in s)s.hasOwnProperty(ae)&&(g=s[ae],this[ae]=g?g(D):D[ae]);return this.isDefaultPrevented=(D.defaultPrevented!=null?D.defaultPrevented:D.returnValue===!1)?ua:kv,this.isPropagationStopped=kv,this}return te(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var g=this.nativeEvent;g&&(g.preventDefault?g.preventDefault():typeof g.returnValue!="unknown"&&(g.returnValue=!1),this.isDefaultPrevented=ua)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=ua)},persist:function(){},isPersistent:ua}),c}var Bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Op=ka(Bl),Wu=te({},Bl,{view:0,detail:0}),x0=ka(Wu),ca,Tv,Xn,Pp=te({},Wu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fv,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Xn&&(Xn&&s.type==="mousemove"?(ca=s.screenX-Xn.screenX,Tv=s.screenY-Xn.screenY):Tv=ca=0,Xn=s),ca)},movementY:function(s){return"movementY"in s?s.movementY:Tv}}),Av=ka(Pp),Ns=te({},Pp,{dataTransfer:0}),Rp=ka(Ns),Iv=te({},Wu,{relatedTarget:0}),jr=ka(Iv),Bs=te({},Bl,{animationName:0,elapsedTime:0,pseudoElement:0}),jv=ka(Bs),OS=te({},Bl,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),Mv=ka(OS),PS=te({},Bl,{data:0}),S0=ka(PS),RS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},C0={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hu(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=kp[s])?!!c[s]:!1}function Fv(){return Hu}var E0=te({},Wu,{key:function(s){if(s.key){var c=RS[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=Vu(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?C0[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fv,charCode:function(s){return s.type==="keypress"?Vu(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Vu(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),O0=ka(E0),Lv=te({},Pp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tp=ka(Lv),P0=te({},Wu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fv}),kS=ka(P0),$v=te({},Bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dv=ka($v),TS=te({},Pp,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),R0=ka(TS),Wa=[9,13,27,32],Fd=u&&"CompositionEvent"in window,Zi=null;u&&"documentMode"in document&&(Zi=document.documentMode);var k0=u&&"TextEvent"in window&&!Zi,Nv=u&&(!Fd||Zi&&8<Zi&&11>=Zi),T0=" ",A0=!1;function I0(s,c){switch(s){case"keyup":return Wa.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function j0(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Ku=!1;function Gu(s,c){switch(s){case"compositionend":return j0(c);case"keypress":return c.which!==32?null:(A0=!0,T0);case"textInput":return s=c.data,s===T0&&A0?null:s;default:return null}}function AS(s,c){if(Ku)return s==="compositionend"||!Fd&&I0(s,c)?(s=Rv(),mi=Md=Vr=null,Ku=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Nv&&c.locale!=="ko"?null:c.data;default:return null}}var IS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ap(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!IS[s.type]:c==="textarea"}function Bv(s,c,g,x){Bo(x),c=Bp(c,"onChange"),0<c.length&&(g=new Op("onChange","change",null,g,x),s.push({event:g,listeners:c}))}var mo=null,zs=null;function jS(s){B0(s,0)}function Ip(s){var c=Yt(s);if(Te(c))return s}function MS(s,c){if(s==="change")return c}var zl=!1;if(u){var Ha;if(u){var jp="oninput"in document;if(!jp){var M0=document.createElement("div");M0.setAttribute("oninput","return;"),jp=typeof M0.oninput=="function"}Ha=jp}else Ha=!1;zl=Ha&&(!document.documentMode||9<document.documentMode)}function F0(){mo&&(mo.detachEvent("onpropertychange",L0),zs=mo=null)}function L0(s){if(s.propertyName==="value"&&Ip(zs)){var c=[];Bv(c,zs,s,Bn(s)),ie(jS,c)}}function FS(s,c,g){s==="focusin"?(F0(),mo=c,zs=g,mo.attachEvent("onpropertychange",L0)):s==="focusout"&&F0()}function LS(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Ip(zs)}function Qu(s,c){if(s==="click")return Ip(c)}function _e(s,c){if(s==="input"||s==="change")return Ip(c)}function Be(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var Ie=typeof Object.is=="function"?Object.is:Be;function ft(s,c){if(Ie(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var g=Object.keys(s),x=Object.keys(c);if(g.length!==x.length)return!1;for(x=0;x<g.length;x++){var F=g[x];if(!d.call(c,F)||!Ie(s[F],c[F]))return!1}return!0}function Gt(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function yr(s,c){var g=Gt(s);s=0;for(var x;g;){if(g.nodeType===3){if(x=s+g.textContent.length,s<=c&&x>=c)return{node:g,offset:c-s};s=x}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=Gt(g)}}function on(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?on(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function Rr(){for(var s=window,c=Me();c instanceof s.HTMLIFrameElement;){try{var g=typeof c.contentWindow.location.href=="string"}catch{g=!1}if(g)s=c.contentWindow;else break;c=Me(s.document)}return c}function Ld(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}function $S(s){var c=Rr(),g=s.focusedElem,x=s.selectionRange;if(c!==g&&g&&g.ownerDocument&&on(g.ownerDocument.documentElement,g)){if(x!==null&&Ld(g)){if(c=x.start,s=x.end,s===void 0&&(s=c),"selectionStart"in g)g.selectionStart=c,g.selectionEnd=Math.min(s,g.value.length);else if(s=(c=g.ownerDocument||document)&&c.defaultView||window,s.getSelection){s=s.getSelection();var F=g.textContent.length,D=Math.min(x.start,F);x=x.end===void 0?D:Math.min(x.end,F),!s.extend&&D>x&&(F=x,x=D,D=F),F=yr(g,D);var H=yr(g,x);F&&H&&(s.rangeCount!==1||s.anchorNode!==F.node||s.anchorOffset!==F.offset||s.focusNode!==H.node||s.focusOffset!==H.offset)&&(c=c.createRange(),c.setStart(F.node,F.offset),s.removeAllRanges(),D>x?(s.addRange(c),s.extend(H.node,H.offset)):(c.setEnd(H.node,H.offset),s.addRange(c)))}}for(c=[],s=g;s=s.parentNode;)s.nodeType===1&&c.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<c.length;g++)s=c[g],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var vo=u&&"documentMode"in document&&11>=document.documentMode,es=null,zv=null,vi=null,Xu=!1;function $d(s,c,g){var x=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;Xu||es==null||es!==Me(x)||(x=es,"selectionStart"in x&&Ld(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),vi&&ft(vi,x)||(vi=x,x=Bp(zv,"onSelect"),0<x.length&&(c=new Op("onSelect","select",null,c,g),s.push({event:c,listeners:x}),c.target=es)))}function br(s,c){var g={};return g[s.toLowerCase()]=c.toLowerCase(),g["Webkit"+s]="webkit"+c,g["Moz"+s]="moz"+c,g}var Yu={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},Mp={},Dd={};u&&(Dd=document.createElement("div").style,"AnimationEvent"in window||(delete Yu.animationend.animation,delete Yu.animationiteration.animation,delete Yu.animationstart.animation),"TransitionEvent"in window||delete Yu.transitionend.transition);function Fp(s){if(Mp[s])return Mp[s];if(!Yu[s])return s;var c=Yu[s],g;for(g in c)if(c.hasOwnProperty(g)&&g in Dd)return Mp[s]=c[g];return s}var $0=Fp("animationend"),D0=Fp("animationiteration"),Nd=Fp("animationstart"),ts=Fp("transitionend"),Bd=new Map,qv="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Uo(s,c){Bd.set(s,c),o(c,[s])}for(var Lp=0;Lp<qv.length;Lp++){var $p=qv[Lp],Dp=$p.toLowerCase(),N0=$p[0].toUpperCase()+$p.slice(1);Uo(Dp,"on"+N0)}Uo($0,"onAnimationEnd"),Uo(D0,"onAnimationIteration"),Uo(Nd,"onAnimationStart"),Uo("dblclick","onDoubleClick"),Uo("focusin","onFocus"),Uo("focusout","onBlur"),Uo(ts,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ql=new Set("cancel close invalid load scroll toggle".split(" ").concat(rs));function zd(s,c,g){var x=s.type||"unknown-event";s.currentTarget=g,Xt(x,c,void 0,s),s.currentTarget=null}function B0(s,c){c=(c&4)!==0;for(var g=0;g<s.length;g++){var x=s[g],F=x.event;x=x.listeners;e:{var D=void 0;if(c)for(var H=x.length-1;0<=H;H--){var ae=x[H],fe=ae.instance,je=ae.currentTarget;if(ae=ae.listener,fe!==D&&F.isPropagationStopped())break e;zd(F,ae,je),D=fe}else for(H=0;H<x.length;H++){if(ae=x[H],fe=ae.instance,je=ae.currentTarget,ae=ae.listener,fe!==D&&F.isPropagationStopped())break e;zd(F,ae,je),D=fe}}}if(Ot)throw s=At,Ot=!1,At=null,s}function Dr(s,c){var g=c[Up];g===void 0&&(g=c[Up]=new Set);var x=s+"__bubble";g.has(x)||(Np(c,s,2,!1),g.add(x))}function Uv(s,c,g){var x=0;c&&(x|=4),Np(g,s,x,c)}var Ul="_reactListening"+Math.random().toString(36).slice(2);function qs(s){if(!s[Ul]){s[Ul]=!0,n.forEach(function(g){g!=="selectionchange"&&(ql.has(g)||Uv(g,!1,s),Uv(g,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[Ul]||(c[Ul]=!0,Uv("selectionchange",!1,c))}}function Np(s,c,g,x){switch(w0(c)){case 1:var F=CS;break;case 4:F=ES;break;default:F=Pv}g=F.bind(null,c,g,s),F=void 0,!Le||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(F=!0),x?F!==void 0?s.addEventListener(c,g,{capture:!0,passive:F}):s.addEventListener(c,g,!0):F!==void 0?s.addEventListener(c,g,{passive:F}):s.addEventListener(c,g,!1)}function Vv(s,c,g,x,F){var D=x;if((c&1)===0&&(c&2)===0&&x!==null)e:for(;;){if(x===null)return;var H=x.tag;if(H===3||H===4){var ae=x.stateNode.containerInfo;if(ae===F||ae.nodeType===8&&ae.parentNode===F)break;if(H===4)for(H=x.return;H!==null;){var fe=H.tag;if((fe===3||fe===4)&&(fe=H.stateNode.containerInfo,fe===F||fe.nodeType===8&&fe.parentNode===F))return;H=H.return}for(;ae!==null;){if(H=yi(ae),H===null)return;if(fe=H.tag,fe===5||fe===6){x=D=H;continue e}ae=ae.parentNode}}x=x.return}ie(function(){var je=D,Xe=Bn(g),Ze=[];e:{var Ge=Bd.get(s);if(Ge!==void 0){var pt=Op,xt=s;switch(s){case"keypress":if(Vu(g)===0)break e;case"keydown":case"keyup":pt=O0;break;case"focusin":xt="focus",pt=jr;break;case"focusout":xt="blur",pt=jr;break;case"beforeblur":case"afterblur":pt=jr;break;case"click":if(g.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pt=Av;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pt=Rp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pt=kS;break;case $0:case D0:case Nd:pt=jv;break;case ts:pt=Dv;break;case"scroll":pt=x0;break;case"wheel":pt=R0;break;case"copy":case"cut":case"paste":pt=Mv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pt=Tp}var Rt=(c&4)!==0,rn=!Rt&&s==="scroll",Re=Rt?Ge!==null?Ge+"Capture":null:Ge;Rt=[];for(var ye=je,ke;ye!==null;){ke=ye;var tt=ke.stateNode;if(ke.tag===5&&tt!==null&&(ke=tt,Re!==null&&(tt=me(ye,Re),tt!=null&&Rt.push(Ju(ye,tt,ke)))),rn)break;ye=ye.return}0<Rt.length&&(Ge=new pt(Ge,xt,null,g,Xe),Ze.push({event:Ge,listeners:Rt}))}}if((c&7)===0){e:{if(Ge=s==="mouseover"||s==="pointerover",pt=s==="mouseout"||s==="pointerout",Ge&&g!==en&&(xt=g.relatedTarget||g.fromElement)&&(yi(xt)||xt[Ka]))break e;if((pt||Ge)&&(Ge=Xe.window===Xe?Xe:(Ge=Xe.ownerDocument)?Ge.defaultView||Ge.parentWindow:window,pt?(xt=g.relatedTarget||g.toElement,pt=je,xt=xt?yi(xt):null,xt!==null&&(rn=ur(xt),xt!==rn||xt.tag!==5&&xt.tag!==6)&&(xt=null)):(pt=null,xt=je),pt!==xt)){if(Rt=Av,tt="onMouseLeave",Re="onMouseEnter",ye="mouse",(s==="pointerout"||s==="pointerover")&&(Rt=Tp,tt="onPointerLeave",Re="onPointerEnter",ye="pointer"),rn=pt==null?Ge:Yt(pt),ke=xt==null?Ge:Yt(xt),Ge=new Rt(tt,ye+"leave",pt,g,Xe),Ge.target=rn,Ge.relatedTarget=ke,tt=null,yi(Xe)===je&&(Rt=new Rt(Re,ye+"enter",xt,g,Xe),Rt.target=ke,Rt.relatedTarget=rn,tt=Rt),rn=tt,pt&&xt)t:{for(Rt=pt,Re=xt,ye=0,ke=Rt;ke;ke=Zu(ke))ye++;for(ke=0,tt=Re;tt;tt=Zu(tt))ke++;for(;0<ye-ke;)Rt=Zu(Rt),ye--;for(;0<ke-ye;)Re=Zu(Re),ke--;for(;ye--;){if(Rt===Re||Re!==null&&Rt===Re.alternate)break t;Rt=Zu(Rt),Re=Zu(Re)}Rt=null}else Rt=null;pt!==null&&sn(Ze,Ge,pt,Rt,!1),xt!==null&&rn!==null&&sn(Ze,rn,xt,Rt,!0)}}e:{if(Ge=je?Yt(je):window,pt=Ge.nodeName&&Ge.nodeName.toLowerCase(),pt==="select"||pt==="input"&&Ge.type==="file")var kt=MS;else if(Ap(Ge))if(zl)kt=_e;else{kt=LS;var Nt=FS}else(pt=Ge.nodeName)&&pt.toLowerCase()==="input"&&(Ge.type==="checkbox"||Ge.type==="radio")&&(kt=Qu);if(kt&&(kt=kt(s,je))){Bv(Ze,kt,g,Xe);break e}Nt&&Nt(s,Ge,je),s==="focusout"&&(Nt=Ge._wrapperState)&&Nt.controlled&&Ge.type==="number"&&oe(Ge,"number",Ge.value)}switch(Nt=je?Yt(je):window,s){case"focusin":(Ap(Nt)||Nt.contentEditable==="true")&&(es=Nt,zv=je,vi=null);break;case"focusout":vi=zv=es=null;break;case"mousedown":Xu=!0;break;case"contextmenu":case"mouseup":case"dragend":Xu=!1,$d(Ze,g,Xe);break;case"selectionchange":if(vo)break;case"keydown":case"keyup":$d(Ze,g,Xe)}var $t;if(Fd)e:{switch(s){case"compositionstart":var Ut="onCompositionStart";break e;case"compositionend":Ut="onCompositionEnd";break e;case"compositionupdate":Ut="onCompositionUpdate";break e}Ut=void 0}else Ku?I0(s,g)&&(Ut="onCompositionEnd"):s==="keydown"&&g.keyCode===229&&(Ut="onCompositionStart");Ut&&(Nv&&g.locale!=="ko"&&(Ku||Ut!=="onCompositionStart"?Ut==="onCompositionEnd"&&Ku&&($t=Rv()):(Vr=Xe,Md="value"in Vr?Vr.value:Vr.textContent,Ku=!0)),Nt=Bp(je,Ut),0<Nt.length&&(Ut=new S0(Ut,s,null,g,Xe),Ze.push({event:Ut,listeners:Nt}),$t?Ut.data=$t:($t=j0(g),$t!==null&&(Ut.data=$t)))),($t=k0?Gu(s,g):AS(s,g))&&(je=Bp(je,"onBeforeInput"),0<je.length&&(Xe=new S0("onBeforeInput","beforeinput",null,g,Xe),Ze.push({event:Xe,listeners:je}),Xe.data=$t))}B0(Ze,c)})}function Ju(s,c,g){return{instance:s,listener:c,currentTarget:g}}function Bp(s,c){for(var g=c+"Capture",x=[];s!==null;){var F=s,D=F.stateNode;F.tag===5&&D!==null&&(F=D,D=me(s,g),D!=null&&x.unshift(Ju(s,D,F)),D=me(s,c),D!=null&&x.push(Ju(s,D,F))),s=s.return}return x}function Zu(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function sn(s,c,g,x,F){for(var D=c._reactName,H=[];g!==null&&g!==x;){var ae=g,fe=ae.alternate,je=ae.stateNode;if(fe!==null&&fe===x)break;ae.tag===5&&je!==null&&(ae=je,F?(fe=me(g,D),fe!=null&&H.unshift(Ju(g,fe,ae))):F||(fe=me(g,D),fe!=null&&H.push(Ju(g,fe,ae)))),g=g.return}H.length!==0&&s.push({event:c,listeners:H})}var Yn=/\r\n?/g,DS=/\u0000|\uFFFD/g;function z0(s){return(typeof s=="string"?s:""+s).replace(Yn,`
`).replace(DS,"")}function qd(s,c,g){if(c=z0(c),z0(s)!==c&&g)throw Error(r(425))}function zp(){}var Ud=null,Vl=null;function Vd(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var Us=typeof setTimeout=="function"?setTimeout:void 0,Wd=typeof clearTimeout=="function"?clearTimeout:void 0,ec=typeof Promise=="function"?Promise:void 0,qp=typeof queueMicrotask=="function"?queueMicrotask:typeof ec<"u"?function(s){return ec.resolve(null).then(s).catch(tc)}:Us;function tc(s){setTimeout(function(){throw s})}function Wv(s,c){var g=c,x=0;do{var F=g.nextSibling;if(s.removeChild(g),F&&F.nodeType===8)if(g=F.data,g==="/$"){if(x===0){s.removeChild(F),Cr(c);return}x--}else g!=="$"&&g!=="$?"&&g!=="$!"||x++;g=F}while(g);Cr(c)}function Vs(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return s}function q0(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var g=s.data;if(g==="$"||g==="$!"||g==="$?"){if(c===0)return s;c--}else g==="/$"&&c++}s=s.previousSibling}return null}var rc=Math.random().toString(36).slice(2),gi="__reactFiber$"+rc,Ws="__reactProps$"+rc,Ka="__reactContainer$"+rc,Up="__reactEvents$"+rc,Z="__reactListeners$"+rc,nc="__reactHandles$"+rc;function yi(s){var c=s[gi];if(c)return c;for(var g=s.parentNode;g;){if(c=g[Ka]||g[gi]){if(g=c.alternate,c.child!==null||g!==null&&g.child!==null)for(s=q0(s);s!==null;){if(g=s[gi])return g;s=q0(s)}return c}s=g,g=s.parentNode}return null}function Jn(s){return s=s[gi]||s[Ka],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function Yt(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(r(33))}function Vp(s){return s[Ws]||null}var Hv=[],ac=-1;function Ta(s){return{current:s}}function Nr(s){0>ac||(s.current=Hv[ac],Hv[ac]=null,ac--)}function Mr(s,c){ac++,Hv[ac]=s.current,s.current=c}var Hs={},Zn=Ta(Hs),Aa=Ta(!1),da=Hs;function oc(s,c){var g=s.type.contextTypes;if(!g)return Hs;var x=s.stateNode;if(x&&x.__reactInternalMemoizedUnmaskedChildContext===c)return x.__reactInternalMemoizedMaskedChildContext;var F={},D;for(D in g)F[D]=c[D];return x&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=c,s.__reactInternalMemoizedMaskedChildContext=F),F}function Ia(s){return s=s.childContextTypes,s!=null}function Wp(){Nr(Aa),Nr(Zn)}function U0(s,c,g){if(Zn.current!==Hs)throw Error(r(168));Mr(Zn,c),Mr(Aa,g)}function V0(s,c,g){var x=s.stateNode;if(c=c.childContextTypes,typeof x.getChildContext!="function")return g;x=x.getChildContext();for(var F in x)if(!(F in c))throw Error(r(108,Pe(s)||"Unknown",F));return te({},g,x)}function go(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Hs,da=Zn.current,Mr(Zn,s),Mr(Aa,Aa.current),!0}function W0(s,c,g){var x=s.stateNode;if(!x)throw Error(r(169));g?(s=V0(s,c,da),x.__reactInternalMemoizedMergedChildContext=s,Nr(Aa),Nr(Zn),Mr(Zn,s)):Nr(Aa),Mr(Aa,g)}var ns=null,Hp=!1,Kv=!1;function H0(s){ns===null?ns=[s]:ns.push(s)}function Wl(s){Hp=!0,H0(s)}function Ks(){if(!Kv&&ns!==null){Kv=!0;var s=0,c=wr;try{var g=ns;for(wr=1;s<g.length;s++){var x=g[s];do x=x(!0);while(x!==null)}ns=null,Hp=!1}catch(F){throw ns!==null&&(ns=ns.slice(s+1)),hi(qo,Ks),F}finally{wr=c,Kv=!1}}return null}var ic=[],ea=0,Kp=null,Gp=0,yo=[],bo=0,Hl=null,bi=1,_i="";function Kl(s,c){ic[ea++]=Gp,ic[ea++]=Kp,Kp=s,Gp=c}function K0(s,c,g){yo[bo++]=bi,yo[bo++]=_i,yo[bo++]=Hl,Hl=s;var x=bi;s=_i;var F=32-Pn(x)-1;x&=~(1<<F),g+=1;var D=32-Pn(c)+F;if(30<D){var H=F-F%5;D=(x&(1<<H)-1).toString(32),x>>=H,F-=H,bi=1<<32-Pn(c)+F|g<<F|x,_i=D+s}else bi=1<<D|g<<F|x,_i=s}function Hd(s){s.return!==null&&(Kl(s,1),K0(s,1,0))}function Gl(s){for(;s===Kp;)Kp=ic[--ea],ic[ea]=null,Gp=ic[--ea],ic[ea]=null;for(;s===Hl;)Hl=yo[--bo],yo[bo]=null,_i=yo[--bo],yo[bo]=null,bi=yo[--bo],yo[bo]=null}var ta=null,Ga=null,Br=!1,Vo=null;function wi(s,c){var g=Oo(5,null,null,0);g.elementType="DELETED",g.stateNode=c,g.return=s,c=s.deletions,c===null?(s.deletions=[g],s.flags|=16):c.push(g)}function Qp(s,c){switch(s.tag){case 5:var g=s.type;return c=c.nodeType!==1||g.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(s.stateNode=c,ta=s,Ga=Vs(c.firstChild),!0):!1;case 6:return c=s.pendingProps===""||c.nodeType!==3?null:c,c!==null?(s.stateNode=c,ta=s,Ga=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(g=Hl!==null?{id:bi,overflow:_i}:null,s.memoizedState={dehydrated:c,treeContext:g,retryLane:1073741824},g=Oo(18,null,null,0),g.stateNode=c,g.return=s,s.child=g,ta=s,Ga=null,!0):!1;default:return!1}}function as(s){return(s.mode&1)!==0&&(s.flags&128)===0}function ja(s){if(Br){var c=Ga;if(c){var g=c;if(!Qp(s,c)){if(as(s))throw Error(r(418));c=Vs(g.nextSibling);var x=ta;c&&Qp(s,c)?wi(x,g):(s.flags=s.flags&-4097|2,Br=!1,ta=s)}}else{if(as(s))throw Error(r(418));s.flags=s.flags&-4097|2,Br=!1,ta=s}}}function G0(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;ta=s}function Kd(s){if(s!==ta)return!1;if(!Br)return G0(s),Br=!0,!1;var c;if((c=s.tag!==3)&&!(c=s.tag!==5)&&(c=s.type,c=c!=="head"&&c!=="body"&&!Vd(s.type,s.memoizedProps)),c&&(c=Ga)){if(as(s))throw Gv(),Error(r(418));for(;c;)wi(s,c),c=Vs(c.nextSibling)}if(G0(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8){var g=s.data;if(g==="/$"){if(c===0){Ga=Vs(s.nextSibling);break e}c--}else g!=="$"&&g!=="$!"&&g!=="$?"||c++}s=s.nextSibling}Ga=null}}else Ga=ta?Vs(s.stateNode.nextSibling):null;return!0}function Gv(){for(var s=Ga;s;)s=Vs(s.nextSibling)}function xi(){Ga=ta=null,Br=!1}function Si(s){Vo===null?Vo=[s]:Vo.push(s)}var Q0=O.ReactCurrentBatchConfig;function Gd(s,c,g){if(s=g.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(g._owner){if(g=g._owner,g){if(g.tag!==1)throw Error(r(309));var x=g.stateNode}if(!x)throw Error(r(147,s));var F=x,D=""+s;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===D?c.ref:(c=function(H){var ae=F.refs;H===null?delete ae[D]:ae[D]=H},c._stringRef=D,c)}if(typeof s!="string")throw Error(r(284));if(!g._owner)throw Error(r(290,s))}return s}function Ql(s,c){throw s=Object.prototype.toString.call(c),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s))}function X0(s){var c=s._init;return c(s._payload)}function Qv(s){function c(Re,ye){if(s){var ke=Re.deletions;ke===null?(Re.deletions=[ye],Re.flags|=16):ke.push(ye)}}function g(Re,ye){if(!s)return null;for(;ye!==null;)c(Re,ye),ye=ye.sibling;return null}function x(Re,ye){for(Re=new Map;ye!==null;)ye.key!==null?Re.set(ye.key,ye):Re.set(ye.index,ye),ye=ye.sibling;return Re}function F(Re,ye){return Re=Yo(Re,ye),Re.index=0,Re.sibling=null,Re}function D(Re,ye,ke){return Re.index=ke,s?(ke=Re.alternate,ke!==null?(ke=ke.index,ke<ye?(Re.flags|=2,ye):ke):(Re.flags|=2,ye)):(Re.flags|=1048576,ye)}function H(Re){return s&&Re.alternate===null&&(Re.flags|=2),Re}function ae(Re,ye,ke,tt){return ye===null||ye.tag!==6?(ye=Fg(ke,Re.mode,tt),ye.return=Re,ye):(ye=F(ye,ke),ye.return=Re,ye)}function fe(Re,ye,ke,tt){var kt=ke.type;return kt===L?Xe(Re,ye,ke.props.children,tt,ke.key):ye!==null&&(ye.elementType===kt||typeof kt=="object"&&kt!==null&&kt.$$typeof===Q&&X0(kt)===ye.type)?(tt=F(ye,ke.props),tt.ref=Gd(Re,ye,ke),tt.return=Re,tt):(tt=Th(ke.type,ke.key,ke.props,null,Re.mode,tt),tt.ref=Gd(Re,ye,ke),tt.return=Re,tt)}function je(Re,ye,ke,tt){return ye===null||ye.tag!==4||ye.stateNode.containerInfo!==ke.containerInfo||ye.stateNode.implementation!==ke.implementation?(ye=Lg(ke,Re.mode,tt),ye.return=Re,ye):(ye=F(ye,ke.children||[]),ye.return=Re,ye)}function Xe(Re,ye,ke,tt,kt){return ye===null||ye.tag!==7?(ye=iu(ke,Re.mode,tt,kt),ye.return=Re,ye):(ye=F(ye,ke),ye.return=Re,ye)}function Ze(Re,ye,ke){if(typeof ye=="string"&&ye!==""||typeof ye=="number")return ye=Fg(""+ye,Re.mode,ke),ye.return=Re,ye;if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case T:return ke=Th(ye.type,ye.key,ye.props,null,Re.mode,ke),ke.ref=Gd(Re,null,ye),ke.return=Re,ke;case E:return ye=Lg(ye,Re.mode,ke),ye.return=Re,ye;case Q:var tt=ye._init;return Ze(Re,tt(ye._payload),ke)}if(pe(ye)||X(ye))return ye=iu(ye,Re.mode,ke,null),ye.return=Re,ye;Ql(Re,ye)}return null}function Ge(Re,ye,ke,tt){var kt=ye!==null?ye.key:null;if(typeof ke=="string"&&ke!==""||typeof ke=="number")return kt!==null?null:ae(Re,ye,""+ke,tt);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case T:return ke.key===kt?fe(Re,ye,ke,tt):null;case E:return ke.key===kt?je(Re,ye,ke,tt):null;case Q:return kt=ke._init,Ge(Re,ye,kt(ke._payload),tt)}if(pe(ke)||X(ke))return kt!==null?null:Xe(Re,ye,ke,tt,null);Ql(Re,ke)}return null}function pt(Re,ye,ke,tt,kt){if(typeof tt=="string"&&tt!==""||typeof tt=="number")return Re=Re.get(ke)||null,ae(ye,Re,""+tt,kt);if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case T:return Re=Re.get(tt.key===null?ke:tt.key)||null,fe(ye,Re,tt,kt);case E:return Re=Re.get(tt.key===null?ke:tt.key)||null,je(ye,Re,tt,kt);case Q:var Nt=tt._init;return pt(Re,ye,ke,Nt(tt._payload),kt)}if(pe(tt)||X(tt))return Re=Re.get(ke)||null,Xe(ye,Re,tt,kt,null);Ql(ye,tt)}return null}function xt(Re,ye,ke,tt){for(var kt=null,Nt=null,$t=ye,Ut=ye=0,Tn=null;$t!==null&&Ut<ke.length;Ut++){$t.index>Ut?(Tn=$t,$t=null):Tn=$t.sibling;var _r=Ge(Re,$t,ke[Ut],tt);if(_r===null){$t===null&&($t=Tn);break}s&&$t&&_r.alternate===null&&c(Re,$t),ye=D(_r,ye,Ut),Nt===null?kt=_r:Nt.sibling=_r,Nt=_r,$t=Tn}if(Ut===ke.length)return g(Re,$t),Br&&Kl(Re,Ut),kt;if($t===null){for(;Ut<ke.length;Ut++)$t=Ze(Re,ke[Ut],tt),$t!==null&&(ye=D($t,ye,Ut),Nt===null?kt=$t:Nt.sibling=$t,Nt=$t);return Br&&Kl(Re,Ut),kt}for($t=x(Re,$t);Ut<ke.length;Ut++)Tn=pt($t,Re,Ut,ke[Ut],tt),Tn!==null&&(s&&Tn.alternate!==null&&$t.delete(Tn.key===null?Ut:Tn.key),ye=D(Tn,ye,Ut),Nt===null?kt=Tn:Nt.sibling=Tn,Nt=Tn);return s&&$t.forEach(function(ol){return c(Re,ol)}),Br&&Kl(Re,Ut),kt}function Rt(Re,ye,ke,tt){var kt=X(ke);if(typeof kt!="function")throw Error(r(150));if(ke=kt.call(ke),ke==null)throw Error(r(151));for(var Nt=kt=null,$t=ye,Ut=ye=0,Tn=null,_r=ke.next();$t!==null&&!_r.done;Ut++,_r=ke.next()){$t.index>Ut?(Tn=$t,$t=null):Tn=$t.sibling;var ol=Ge(Re,$t,_r.value,tt);if(ol===null){$t===null&&($t=Tn);break}s&&$t&&ol.alternate===null&&c(Re,$t),ye=D(ol,ye,Ut),Nt===null?kt=ol:Nt.sibling=ol,Nt=ol,$t=Tn}if(_r.done)return g(Re,$t),Br&&Kl(Re,Ut),kt;if($t===null){for(;!_r.done;Ut++,_r=ke.next())_r=Ze(Re,_r.value,tt),_r!==null&&(ye=D(_r,ye,Ut),Nt===null?kt=_r:Nt.sibling=_r,Nt=_r);return Br&&Kl(Re,Ut),kt}for($t=x(Re,$t);!_r.done;Ut++,_r=ke.next())_r=pt($t,Re,Ut,_r.value,tt),_r!==null&&(s&&_r.alternate!==null&&$t.delete(_r.key===null?Ut:_r.key),ye=D(_r,ye,Ut),Nt===null?kt=_r:Nt.sibling=_r,Nt=_r);return s&&$t.forEach(function(oC){return c(Re,oC)}),Br&&Kl(Re,Ut),kt}function rn(Re,ye,ke,tt){if(typeof ke=="object"&&ke!==null&&ke.type===L&&ke.key===null&&(ke=ke.props.children),typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case T:e:{for(var kt=ke.key,Nt=ye;Nt!==null;){if(Nt.key===kt){if(kt=ke.type,kt===L){if(Nt.tag===7){g(Re,Nt.sibling),ye=F(Nt,ke.props.children),ye.return=Re,Re=ye;break e}}else if(Nt.elementType===kt||typeof kt=="object"&&kt!==null&&kt.$$typeof===Q&&X0(kt)===Nt.type){g(Re,Nt.sibling),ye=F(Nt,ke.props),ye.ref=Gd(Re,Nt,ke),ye.return=Re,Re=ye;break e}g(Re,Nt);break}else c(Re,Nt);Nt=Nt.sibling}ke.type===L?(ye=iu(ke.props.children,Re.mode,tt,ke.key),ye.return=Re,Re=ye):(tt=Th(ke.type,ke.key,ke.props,null,Re.mode,tt),tt.ref=Gd(Re,ye,ke),tt.return=Re,Re=tt)}return H(Re);case E:e:{for(Nt=ke.key;ye!==null;){if(ye.key===Nt)if(ye.tag===4&&ye.stateNode.containerInfo===ke.containerInfo&&ye.stateNode.implementation===ke.implementation){g(Re,ye.sibling),ye=F(ye,ke.children||[]),ye.return=Re,Re=ye;break e}else{g(Re,ye);break}else c(Re,ye);ye=ye.sibling}ye=Lg(ke,Re.mode,tt),ye.return=Re,Re=ye}return H(Re);case Q:return Nt=ke._init,rn(Re,ye,Nt(ke._payload),tt)}if(pe(ke))return xt(Re,ye,ke,tt);if(X(ke))return Rt(Re,ye,ke,tt);Ql(Re,ke)}return typeof ke=="string"&&ke!==""||typeof ke=="number"?(ke=""+ke,ye!==null&&ye.tag===6?(g(Re,ye.sibling),ye=F(ye,ke),ye.return=Re,Re=ye):(g(Re,ye),ye=Fg(ke,Re.mode,tt),ye.return=Re,Re=ye),H(Re)):g(Re,ye)}return rn}var Jr=Qv(!0),Xp=Qv(!1),Qd=Ta(null),Qa=null,Gs=null,sc=null;function os(){sc=Gs=Qa=null}function Yp(s){var c=Qd.current;Nr(Qd),s._currentValue=c}function qn(s,c,g){for(;s!==null;){var x=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,x!==null&&(x.childLanes|=c)):x!==null&&(x.childLanes&c)!==c&&(x.childLanes|=c),s===g)break;s=s.return}}function Qs(s,c){Qa=s,sc=Gs=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&c)!==0&&(pa=!0),s.firstContext=null)}function _o(s){var c=s._currentValue;if(sc!==s)if(s={context:s,memoizedValue:c,next:null},Gs===null){if(Qa===null)throw Error(r(308));Gs=s,Qa.dependencies={lanes:0,firstContext:s}}else Gs=Gs.next=s;return c}var Xl=null;function Xv(s){Xl===null?Xl=[s]:Xl.push(s)}function Jp(s,c,g,x){var F=c.interleaved;return F===null?(g.next=g,Xv(c)):(g.next=F.next,F.next=g),c.interleaved=g,is(s,x)}function is(s,c){s.lanes|=c;var g=s.alternate;for(g!==null&&(g.lanes|=c),g=s,s=s.return;s!==null;)s.childLanes|=c,g=s.alternate,g!==null&&(g.childLanes|=c),g=s,s=s.return;return g.tag===3?g.stateNode:null}var wo=!1;function Zp(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Y0(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function ss(s,c){return{eventTime:s,lane:c,tag:0,payload:null,callback:null,next:null}}function xo(s,c,g){var x=s.updateQueue;if(x===null)return null;if(x=x.shared,(pr&2)!==0){var F=x.pending;return F===null?c.next=c:(c.next=F.next,F.next=c),x.pending=c,is(s,g)}return F=x.interleaved,F===null?(c.next=c,Xv(x)):(c.next=F.next,F.next=c),x.interleaved=c,is(s,g)}function eh(s,c,g){if(c=c.updateQueue,c!==null&&(c=c.shared,(g&4194240)!==0)){var x=c.lanes;x&=s.pendingLanes,g|=x,c.lanes=g,Ad(s,g)}}function J0(s,c){var g=s.updateQueue,x=s.alternate;if(x!==null&&(x=x.updateQueue,g===x)){var F=null,D=null;if(g=g.firstBaseUpdate,g!==null){do{var H={eventTime:g.eventTime,lane:g.lane,tag:g.tag,payload:g.payload,callback:g.callback,next:null};D===null?F=D=H:D=D.next=H,g=g.next}while(g!==null);D===null?F=D=c:D=D.next=c}else F=D=c;g={baseState:x.baseState,firstBaseUpdate:F,lastBaseUpdate:D,shared:x.shared,effects:x.effects},s.updateQueue=g;return}s=g.lastBaseUpdate,s===null?g.firstBaseUpdate=c:s.next=c,g.lastBaseUpdate=c}function lc(s,c,g,x){var F=s.updateQueue;wo=!1;var D=F.firstBaseUpdate,H=F.lastBaseUpdate,ae=F.shared.pending;if(ae!==null){F.shared.pending=null;var fe=ae,je=fe.next;fe.next=null,H===null?D=je:H.next=je,H=fe;var Xe=s.alternate;Xe!==null&&(Xe=Xe.updateQueue,ae=Xe.lastBaseUpdate,ae!==H&&(ae===null?Xe.firstBaseUpdate=je:ae.next=je,Xe.lastBaseUpdate=fe))}if(D!==null){var Ze=F.baseState;H=0,Xe=je=fe=null,ae=D;do{var Ge=ae.lane,pt=ae.eventTime;if((x&Ge)===Ge){Xe!==null&&(Xe=Xe.next={eventTime:pt,lane:0,tag:ae.tag,payload:ae.payload,callback:ae.callback,next:null});e:{var xt=s,Rt=ae;switch(Ge=c,pt=g,Rt.tag){case 1:if(xt=Rt.payload,typeof xt=="function"){Ze=xt.call(pt,Ze,Ge);break e}Ze=xt;break e;case 3:xt.flags=xt.flags&-65537|128;case 0:if(xt=Rt.payload,Ge=typeof xt=="function"?xt.call(pt,Ze,Ge):xt,Ge==null)break e;Ze=te({},Ze,Ge);break e;case 2:wo=!0}}ae.callback!==null&&ae.lane!==0&&(s.flags|=64,Ge=F.effects,Ge===null?F.effects=[ae]:Ge.push(ae))}else pt={eventTime:pt,lane:Ge,tag:ae.tag,payload:ae.payload,callback:ae.callback,next:null},Xe===null?(je=Xe=pt,fe=Ze):Xe=Xe.next=pt,H|=Ge;if(ae=ae.next,ae===null){if(ae=F.shared.pending,ae===null)break;Ge=ae,ae=Ge.next,Ge.next=null,F.lastBaseUpdate=Ge,F.shared.pending=null}}while(!0);if(Xe===null&&(fe=Ze),F.baseState=fe,F.firstBaseUpdate=je,F.lastBaseUpdate=Xe,c=F.shared.interleaved,c!==null){F=c;do H|=F.lane,F=F.next;while(F!==c)}else D===null&&(F.shared.lanes=0);el|=H,s.lanes=H,s.memoizedState=Ze}}function Yv(s,c,g){if(s=c.effects,c.effects=null,s!==null)for(c=0;c<s.length;c++){var x=s[c],F=x.callback;if(F!==null){if(x.callback=null,x=g,typeof F!="function")throw Error(r(191,F));F.call(x)}}}var Xd={},Ci=Ta(Xd),Yd=Ta(Xd),uc=Ta(Xd);function ls(s){if(s===Xd)throw Error(r(174));return s}function Jv(s,c){switch(Mr(uc,c),Mr(Yd,s),Mr(Ci,Xd),s=c.nodeType,s){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:lt(null,"");break;default:s=s===8?c.parentNode:c,c=s.namespaceURI||null,s=s.tagName,c=lt(c,s)}Nr(Ci),Mr(Ci,c)}function Xs(){Nr(Ci),Nr(Yd),Nr(uc)}function Zv(s){ls(uc.current);var c=ls(Ci.current),g=lt(c,s.type);c!==g&&(Mr(Yd,s),Mr(Ci,g))}function th(s){Yd.current===s&&(Nr(Ci),Nr(Yd))}var Wr=Ta(0);function Yl(s){for(var c=s;c!==null;){if(c.tag===13){var g=c.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||g.data==="$?"||g.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var eg=[];function rh(){for(var s=0;s<eg.length;s++)eg[s]._workInProgressVersionPrimary=null;eg.length=0}var Jd=O.ReactCurrentDispatcher,tg=O.ReactCurrentBatchConfig,Ys=0,Qr=null,tn=null,_n=null,cc=!1,Zd=!1,Jl=0,tr=0;function ra(){throw Error(r(321))}function rg(s,c){if(c===null)return!1;for(var g=0;g<c.length&&g<s.length;g++)if(!Ie(s[g],c[g]))return!1;return!0}function Zl(s,c,g,x,F,D){if(Ys=D,Qr=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,Jd.current=s===null||s.memoizedState===null?BS:uh,s=g(x,F),Zd){D=0;do{if(Zd=!1,Jl=0,25<=D)throw Error(r(301));D+=1,_n=tn=null,c.updateQueue=null,Jd.current=hc,s=g(x,F)}while(Zd)}if(Jd.current=lh,c=tn!==null&&tn.next!==null,Ys=0,_n=tn=Qr=null,cc=!1,c)throw Error(r(300));return s}function nh(){var s=Jl!==0;return Jl=0,s}function Ei(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _n===null?Qr.memoizedState=_n=s:_n=_n.next=s,_n}function So(){if(tn===null){var s=Qr.alternate;s=s!==null?s.memoizedState:null}else s=tn.next;var c=_n===null?Qr.memoizedState:_n.next;if(c!==null)_n=c,tn=s;else{if(s===null)throw Error(r(310));tn=s,s={memoizedState:tn.memoizedState,baseState:tn.baseState,baseQueue:tn.baseQueue,queue:tn.queue,next:null},_n===null?Qr.memoizedState=_n=s:_n=_n.next=s}return _n}function na(s,c){return typeof c=="function"?c(s):c}function ng(s){var c=So(),g=c.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=s;var x=tn,F=x.baseQueue,D=g.pending;if(D!==null){if(F!==null){var H=F.next;F.next=D.next,D.next=H}x.baseQueue=F=D,g.pending=null}if(F!==null){D=F.next,x=x.baseState;var ae=H=null,fe=null,je=D;do{var Xe=je.lane;if((Ys&Xe)===Xe)fe!==null&&(fe=fe.next={lane:0,action:je.action,hasEagerState:je.hasEagerState,eagerState:je.eagerState,next:null}),x=je.hasEagerState?je.eagerState:s(x,je.action);else{var Ze={lane:Xe,action:je.action,hasEagerState:je.hasEagerState,eagerState:je.eagerState,next:null};fe===null?(ae=fe=Ze,H=x):fe=fe.next=Ze,Qr.lanes|=Xe,el|=Xe}je=je.next}while(je!==null&&je!==D);fe===null?H=x:fe.next=ae,Ie(x,c.memoizedState)||(pa=!0),c.memoizedState=x,c.baseState=H,c.baseQueue=fe,g.lastRenderedState=x}if(s=g.interleaved,s!==null){F=s;do D=F.lane,Qr.lanes|=D,el|=D,F=F.next;while(F!==s)}else F===null&&(g.lanes=0);return[c.memoizedState,g.dispatch]}function dc(s){var c=So(),g=c.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=s;var x=g.dispatch,F=g.pending,D=c.memoizedState;if(F!==null){g.pending=null;var H=F=F.next;do D=s(D,H.action),H=H.next;while(H!==F);Ie(D,c.memoizedState)||(pa=!0),c.memoizedState=D,c.baseQueue===null&&(c.baseState=D),g.lastRenderedState=D}return[D,x]}function ah(){}function ag(s,c){var g=Qr,x=So(),F=c(),D=!Ie(x.memoizedState,F);if(D&&(x.memoizedState=F,pa=!0),x=x.queue,Oi(us.bind(null,g,x,s),[s]),x.getSnapshot!==c||D||_n!==null&&_n.memoizedState.tag&1){if(g.flags|=2048,fc(9,Ma.bind(null,g,x,F,c),void 0,null),kn===null)throw Error(r(349));(Ys&30)!==0||og(g,c,F)}return F}function og(s,c,g){s.flags|=16384,s={getSnapshot:c,value:g},c=Qr.updateQueue,c===null?(c={lastEffect:null,stores:null},Qr.updateQueue=c,c.stores=[s]):(g=c.stores,g===null?c.stores=[s]:g.push(s))}function Ma(s,c,g,x){c.value=g,c.getSnapshot=x,oh(c)&&ig(s)}function us(s,c,g){return g(function(){oh(c)&&ig(s)})}function oh(s){var c=s.getSnapshot;s=s.value;try{var g=c();return!Ie(s,g)}catch{return!0}}function ig(s){var c=is(s,1);c!==null&&Xo(c,s,1,-1)}function ef(s){var c=Ei();return typeof s=="function"&&(s=s()),c.memoizedState=c.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:na,lastRenderedState:s},c.queue=s,s=s.dispatch=a_.bind(null,Qr,s),[c.memoizedState,s]}function fc(s,c,g,x){return s={tag:s,create:c,destroy:g,deps:x,next:null},c=Qr.updateQueue,c===null?(c={lastEffect:null,stores:null},Qr.updateQueue=c,c.lastEffect=s.next=s):(g=c.lastEffect,g===null?c.lastEffect=s.next=s:(x=g.next,g.next=s,s.next=x,c.lastEffect=s)),s}function ih(){return So().memoizedState}function tf(s,c,g,x){var F=Ei();Qr.flags|=s,F.memoizedState=fc(1|c,g,void 0,x===void 0?null:x)}function pc(s,c,g,x){var F=So();x=x===void 0?null:x;var D=void 0;if(tn!==null){var H=tn.memoizedState;if(D=H.destroy,x!==null&&rg(x,H.deps)){F.memoizedState=fc(c,g,D,x);return}}Qr.flags|=s,F.memoizedState=fc(1|c,g,D,x)}function sh(s,c){return tf(8390656,8,s,c)}function Oi(s,c){return pc(2048,8,s,c)}function Z0(s,c){return pc(4,2,s,c)}function cs(s,c){return pc(4,4,s,c)}function sg(s,c){if(typeof c=="function")return s=s(),c(s),function(){c(null)};if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function lg(s,c,g){return g=g!=null?g.concat([s]):null,pc(4,4,sg.bind(null,c,s),g)}function rf(){}function e_(s,c){var g=So();c=c===void 0?null:c;var x=g.memoizedState;return x!==null&&c!==null&&rg(c,x[1])?x[0]:(g.memoizedState=[s,c],s)}function t_(s,c){var g=So();c=c===void 0?null:c;var x=g.memoizedState;return x!==null&&c!==null&&rg(c,x[1])?x[0]:(s=s(),g.memoizedState=[s,c],s)}function r_(s,c,g){return(Ys&21)===0?(s.baseState&&(s.baseState=!1,pa=!0),s.memoizedState=g):(Ie(g,c)||(g=Sv(),Qr.lanes|=g,el|=g,s.baseState=!0),c)}function n_(s,c){var g=wr;wr=g!==0&&4>g?g:4,s(!0);var x=tg.transition;tg.transition={};try{s(!1),c()}finally{wr=g,tg.transition=x}}function ug(){return So().memoizedState}function NS(s,c,g){var x=nl(s);if(g={lane:x,action:g,hasEagerState:!1,eagerState:null,next:null},cg(s))fa(c,g);else if(g=Jp(s,c,g,x),g!==null){var F=va();Xo(g,s,x,F),Wo(g,c,x)}}function a_(s,c,g){var x=nl(s),F={lane:x,action:g,hasEagerState:!1,eagerState:null,next:null};if(cg(s))fa(c,F);else{var D=s.alternate;if(s.lanes===0&&(D===null||D.lanes===0)&&(D=c.lastRenderedReducer,D!==null))try{var H=c.lastRenderedState,ae=D(H,g);if(F.hasEagerState=!0,F.eagerState=ae,Ie(ae,H)){var fe=c.interleaved;fe===null?(F.next=F,Xv(c)):(F.next=fe.next,fe.next=F),c.interleaved=F;return}}catch{}finally{}g=Jp(s,c,F,x),g!==null&&(F=va(),Xo(g,s,x,F),Wo(g,c,x))}}function cg(s){var c=s.alternate;return s===Qr||c!==null&&c===Qr}function fa(s,c){Zd=cc=!0;var g=s.pending;g===null?c.next=c:(c.next=g.next,g.next=c),s.pending=c}function Wo(s,c,g){if((g&4194240)!==0){var x=c.lanes;x&=s.pendingLanes,g|=x,c.lanes=g,Ad(s,g)}}var lh={readContext:_o,useCallback:ra,useContext:ra,useEffect:ra,useImperativeHandle:ra,useInsertionEffect:ra,useLayoutEffect:ra,useMemo:ra,useReducer:ra,useRef:ra,useState:ra,useDebugValue:ra,useDeferredValue:ra,useTransition:ra,useMutableSource:ra,useSyncExternalStore:ra,useId:ra,unstable_isNewReconciler:!1},BS={readContext:_o,useCallback:function(s,c){return Ei().memoizedState=[s,c===void 0?null:c],s},useContext:_o,useEffect:sh,useImperativeHandle:function(s,c,g){return g=g!=null?g.concat([s]):null,tf(4194308,4,sg.bind(null,c,s),g)},useLayoutEffect:function(s,c){return tf(4194308,4,s,c)},useInsertionEffect:function(s,c){return tf(4,2,s,c)},useMemo:function(s,c){var g=Ei();return c=c===void 0?null:c,s=s(),g.memoizedState=[s,c],s},useReducer:function(s,c,g){var x=Ei();return c=g!==void 0?g(c):c,x.memoizedState=x.baseState=c,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:c},x.queue=s,s=s.dispatch=NS.bind(null,Qr,s),[x.memoizedState,s]},useRef:function(s){var c=Ei();return s={current:s},c.memoizedState=s},useState:ef,useDebugValue:rf,useDeferredValue:function(s){return Ei().memoizedState=s},useTransition:function(){var s=ef(!1),c=s[0];return s=n_.bind(null,s[1]),Ei().memoizedState=s,[c,s]},useMutableSource:function(){},useSyncExternalStore:function(s,c,g){var x=Qr,F=Ei();if(Br){if(g===void 0)throw Error(r(407));g=g()}else{if(g=c(),kn===null)throw Error(r(349));(Ys&30)!==0||og(x,c,g)}F.memoizedState=g;var D={value:g,getSnapshot:c};return F.queue=D,sh(us.bind(null,x,D,s),[s]),x.flags|=2048,fc(9,Ma.bind(null,x,D,g,c),void 0,null),g},useId:function(){var s=Ei(),c=kn.identifierPrefix;if(Br){var g=_i,x=bi;g=(x&~(1<<32-Pn(x)-1)).toString(32)+g,c=":"+c+"R"+g,g=Jl++,0<g&&(c+="H"+g.toString(32)),c+=":"}else g=tr++,c=":"+c+"r"+g.toString(32)+":";return s.memoizedState=c},unstable_isNewReconciler:!1},uh={readContext:_o,useCallback:e_,useContext:_o,useEffect:Oi,useImperativeHandle:lg,useInsertionEffect:Z0,useLayoutEffect:cs,useMemo:t_,useReducer:ng,useRef:ih,useState:function(){return ng(na)},useDebugValue:rf,useDeferredValue:function(s){var c=So();return r_(c,tn.memoizedState,s)},useTransition:function(){var s=ng(na)[0],c=So().memoizedState;return[s,c]},useMutableSource:ah,useSyncExternalStore:ag,useId:ug,unstable_isNewReconciler:!1},hc={readContext:_o,useCallback:e_,useContext:_o,useEffect:Oi,useImperativeHandle:lg,useInsertionEffect:Z0,useLayoutEffect:cs,useMemo:t_,useReducer:dc,useRef:ih,useState:function(){return dc(na)},useDebugValue:rf,useDeferredValue:function(s){var c=So();return tn===null?c.memoizedState=s:r_(c,tn.memoizedState,s)},useTransition:function(){var s=dc(na)[0],c=So().memoizedState;return[s,c]},useMutableSource:ah,useSyncExternalStore:ag,useId:ug,unstable_isNewReconciler:!1};function Co(s,c){if(s&&s.defaultProps){c=te({},c),s=s.defaultProps;for(var g in s)c[g]===void 0&&(c[g]=s[g]);return c}return c}function ch(s,c,g,x){c=s.memoizedState,g=g(x,c),g=g==null?c:te({},c,g),s.memoizedState=g,s.lanes===0&&(s.updateQueue.baseState=g)}var dh={isMounted:function(s){return(s=s._reactInternals)?ur(s)===s:!1},enqueueSetState:function(s,c,g){s=s._reactInternals;var x=va(),F=nl(s),D=ss(x,F);D.payload=c,g!=null&&(D.callback=g),c=xo(s,D,F),c!==null&&(Xo(c,s,F,x),eh(c,s,F))},enqueueReplaceState:function(s,c,g){s=s._reactInternals;var x=va(),F=nl(s),D=ss(x,F);D.tag=1,D.payload=c,g!=null&&(D.callback=g),c=xo(s,D,F),c!==null&&(Xo(c,s,F,x),eh(c,s,F))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var g=va(),x=nl(s),F=ss(g,x);F.tag=2,c!=null&&(F.callback=c),c=xo(s,F,x),c!==null&&(Xo(c,s,x,g),eh(c,s,x))}};function dg(s,c,g,x,F,D,H){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(x,D,H):c.prototype&&c.prototype.isPureReactComponent?!ft(g,x)||!ft(F,D):!0}function eu(s,c,g){var x=!1,F=Hs,D=c.contextType;return typeof D=="object"&&D!==null?D=_o(D):(F=Ia(c)?da:Zn.current,x=c.contextTypes,D=(x=x!=null)?oc(s,F):Hs),c=new c(g,D),s.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=dh,s.stateNode=c,c._reactInternals=s,x&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=F,s.__reactInternalMemoizedMaskedChildContext=D),c}function mc(s,c,g,x){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(g,x),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(g,x),c.state!==s&&dh.enqueueReplaceState(c,c.state,null)}function fg(s,c,g,x){var F=s.stateNode;F.props=g,F.state=s.memoizedState,F.refs={},Zp(s);var D=c.contextType;typeof D=="object"&&D!==null?F.context=_o(D):(D=Ia(c)?da:Zn.current,F.context=oc(s,D)),F.state=s.memoizedState,D=c.getDerivedStateFromProps,typeof D=="function"&&(ch(s,c,D,g),F.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof F.getSnapshotBeforeUpdate=="function"||typeof F.UNSAFE_componentWillMount!="function"&&typeof F.componentWillMount!="function"||(c=F.state,typeof F.componentWillMount=="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount=="function"&&F.UNSAFE_componentWillMount(),c!==F.state&&dh.enqueueReplaceState(F,F.state,null),lc(s,g,F,x),F.state=s.memoizedState),typeof F.componentDidMount=="function"&&(s.flags|=4194308)}function tu(s,c){try{var g="",x=c;do g+=ue(x),x=x.return;while(x);var F=g}catch(D){F=`
Error generating stack: `+D.message+`
`+D.stack}return{value:s,source:c,stack:F,digest:null}}function fh(s,c,g){return{value:s,source:null,stack:g??null,digest:c??null}}function vc(s,c){try{console.error(c.value)}catch(g){setTimeout(function(){throw g})}}var o_=typeof WeakMap=="function"?WeakMap:Map;function nf(s,c,g){g=ss(-1,g),g.tag=3,g.payload={element:null};var x=c.value;return g.callback=function(){Sh||(Sh=!0,Rg=x),vc(s,c)},g}function ph(s,c,g){g=ss(-1,g),g.tag=3;var x=s.type.getDerivedStateFromError;if(typeof x=="function"){var F=c.value;g.payload=function(){return x(F)},g.callback=function(){vc(s,c)}}var D=s.stateNode;return D!==null&&typeof D.componentDidCatch=="function"&&(g.callback=function(){vc(s,c),typeof x!="function"&&(tl===null?tl=new Set([this]):tl.add(this));var H=c.stack;this.componentDidCatch(c.value,{componentStack:H!==null?H:""})}),g}function af(s,c,g){var x=s.pingCache;if(x===null){x=s.pingCache=new o_;var F=new Set;x.set(c,F)}else F=x.get(c),F===void 0&&(F=new Set,x.set(c,F));F.has(g)||(F.add(g),s=GS.bind(null,s,c,g),c.then(s,s))}function i_(s){do{var c;if((c=s.tag===13)&&(c=s.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return s;s=s.return}while(s!==null);return null}function pg(s,c,g,x,F){return(s.mode&1)===0?(s===c?s.flags|=65536:(s.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(c=ss(-1,1),c.tag=2,xo(g,c,1))),g.lanes|=1),s):(s.flags|=65536,s.lanes=F,s)}var hh=O.ReactCurrentOwner,pa=!1;function Un(s,c,g,x){c.child=s===null?Xp(c,null,g,x):Jr(c,s.child,g,x)}function s_(s,c,g,x,F){g=g.render;var D=c.ref;return Qs(c,F),x=Zl(s,c,g,x,D,F),g=nh(),s!==null&&!pa?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~F,Ho(s,c,F)):(Br&&g&&Hd(c),c.flags|=1,Un(s,c,x,F),c.child)}function hg(s,c,g,x,F){if(s===null){var D=g.type;return typeof D=="function"&&!kh(D)&&D.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(c.tag=15,c.type=D,Pi(s,c,D,x,F)):(s=Th(g.type,null,x,c,c.mode,F),s.ref=c.ref,s.return=c,c.child=s)}if(D=s.child,(s.lanes&F)===0){var H=D.memoizedProps;if(g=g.compare,g=g!==null?g:ft,g(H,x)&&s.ref===c.ref)return Ho(s,c,F)}return c.flags|=1,s=Yo(D,x),s.ref=c.ref,s.return=c,c.child=s}function Pi(s,c,g,x,F){if(s!==null){var D=s.memoizedProps;if(ft(D,x)&&s.ref===c.ref)if(pa=!1,c.pendingProps=x=D,(s.lanes&F)!==0)(s.flags&131072)!==0&&(pa=!0);else return c.lanes=s.lanes,Ho(s,c,F)}return gg(s,c,g,x,F)}function mg(s,c,g){var x=c.pendingProps,F=x.children,D=s!==null?s.memoizedState:null;if(x.mode==="hidden")if((c.mode&1)===0)c.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mr(_c,Ya),Ya|=g;else{if((g&1073741824)===0)return s=D!==null?D.baseLanes|g:g,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:s,cachePool:null,transitions:null},c.updateQueue=null,Mr(_c,Ya),Ya|=s,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},x=D!==null?D.baseLanes:g,Mr(_c,Ya),Ya|=x}else D!==null?(x=D.baseLanes|g,c.memoizedState=null):x=g,Mr(_c,Ya),Ya|=x;return Un(s,c,F,g),c.child}function vg(s,c){var g=c.ref;(s===null&&g!==null||s!==null&&s.ref!==g)&&(c.flags|=512,c.flags|=2097152)}function gg(s,c,g,x,F){var D=Ia(g)?da:Zn.current;return D=oc(c,D),Qs(c,F),g=Zl(s,c,g,x,D,F),x=nh(),s!==null&&!pa?(c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~F,Ho(s,c,F)):(Br&&x&&Hd(c),c.flags|=1,Un(s,c,g,F),c.child)}function yg(s,c,g,x,F){if(Ia(g)){var D=!0;go(c)}else D=!1;if(Qs(c,F),c.stateNode===null)vh(s,c),eu(c,g,x),fg(c,g,x,F),x=!0;else if(s===null){var H=c.stateNode,ae=c.memoizedProps;H.props=ae;var fe=H.context,je=g.contextType;typeof je=="object"&&je!==null?je=_o(je):(je=Ia(g)?da:Zn.current,je=oc(c,je));var Xe=g.getDerivedStateFromProps,Ze=typeof Xe=="function"||typeof H.getSnapshotBeforeUpdate=="function";Ze||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(ae!==x||fe!==je)&&mc(c,H,x,je),wo=!1;var Ge=c.memoizedState;H.state=Ge,lc(c,x,H,F),fe=c.memoizedState,ae!==x||Ge!==fe||Aa.current||wo?(typeof Xe=="function"&&(ch(c,g,Xe,x),fe=c.memoizedState),(ae=wo||dg(c,g,ae,x,Ge,fe,je))?(Ze||typeof H.UNSAFE_componentWillMount!="function"&&typeof H.componentWillMount!="function"||(typeof H.componentWillMount=="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount=="function"&&H.UNSAFE_componentWillMount()),typeof H.componentDidMount=="function"&&(c.flags|=4194308)):(typeof H.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=x,c.memoizedState=fe),H.props=x,H.state=fe,H.context=je,x=ae):(typeof H.componentDidMount=="function"&&(c.flags|=4194308),x=!1)}else{H=c.stateNode,Y0(s,c),ae=c.memoizedProps,je=c.type===c.elementType?ae:Co(c.type,ae),H.props=je,Ze=c.pendingProps,Ge=H.context,fe=g.contextType,typeof fe=="object"&&fe!==null?fe=_o(fe):(fe=Ia(g)?da:Zn.current,fe=oc(c,fe));var pt=g.getDerivedStateFromProps;(Xe=typeof pt=="function"||typeof H.getSnapshotBeforeUpdate=="function")||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(ae!==Ze||Ge!==fe)&&mc(c,H,x,fe),wo=!1,Ge=c.memoizedState,H.state=Ge,lc(c,x,H,F);var xt=c.memoizedState;ae!==Ze||Ge!==xt||Aa.current||wo?(typeof pt=="function"&&(ch(c,g,pt,x),xt=c.memoizedState),(je=wo||dg(c,g,je,x,Ge,xt,fe)||!1)?(Xe||typeof H.UNSAFE_componentWillUpdate!="function"&&typeof H.componentWillUpdate!="function"||(typeof H.componentWillUpdate=="function"&&H.componentWillUpdate(x,xt,fe),typeof H.UNSAFE_componentWillUpdate=="function"&&H.UNSAFE_componentWillUpdate(x,xt,fe)),typeof H.componentDidUpdate=="function"&&(c.flags|=4),typeof H.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof H.componentDidUpdate!="function"||ae===s.memoizedProps&&Ge===s.memoizedState||(c.flags|=4),typeof H.getSnapshotBeforeUpdate!="function"||ae===s.memoizedProps&&Ge===s.memoizedState||(c.flags|=1024),c.memoizedProps=x,c.memoizedState=xt),H.props=x,H.state=xt,H.context=fe,x=je):(typeof H.componentDidUpdate!="function"||ae===s.memoizedProps&&Ge===s.memoizedState||(c.flags|=4),typeof H.getSnapshotBeforeUpdate!="function"||ae===s.memoizedProps&&Ge===s.memoizedState||(c.flags|=1024),x=!1)}return bg(s,c,g,x,D,F)}function bg(s,c,g,x,F,D){vg(s,c);var H=(c.flags&128)!==0;if(!x&&!H)return F&&W0(c,g,!1),Ho(s,c,D);x=c.stateNode,hh.current=c;var ae=H&&typeof g.getDerivedStateFromError!="function"?null:x.render();return c.flags|=1,s!==null&&H?(c.child=Jr(c,s.child,null,D),c.child=Jr(c,null,ae,D)):Un(s,c,ae,D),c.memoizedState=x.state,F&&W0(c,g,!0),c.child}function l_(s){var c=s.stateNode;c.pendingContext?U0(s,c.pendingContext,c.pendingContext!==c.context):c.context&&U0(s,c.context,!1),Jv(s,c.containerInfo)}function Ri(s,c,g,x,F){return xi(),Si(F),c.flags|=256,Un(s,c,g,x),c.child}var of={dehydrated:null,treeContext:null,retryLane:0};function sf(s){return{baseLanes:s,cachePool:null,transitions:null}}function mh(s,c,g){var x=c.pendingProps,F=Wr.current,D=!1,H=(c.flags&128)!==0,ae;if((ae=H)||(ae=s!==null&&s.memoizedState===null?!1:(F&2)!==0),ae?(D=!0,c.flags&=-129):(s===null||s.memoizedState!==null)&&(F|=1),Mr(Wr,F&1),s===null)return ja(c),s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((c.mode&1)===0?c.lanes=1:s.data==="$!"?c.lanes=8:c.lanes=1073741824,null):(H=x.children,s=x.fallback,D?(x=c.mode,D=c.child,H={mode:"hidden",children:H},(x&1)===0&&D!==null?(D.childLanes=0,D.pendingProps=H):D=Ah(H,x,0,null),s=iu(s,x,g,null),D.return=c,s.return=c,D.sibling=s,c.child=D,c.child.memoizedState=sf(g),c.memoizedState=of,s):gc(c,H));if(F=s.memoizedState,F!==null&&(ae=F.dehydrated,ae!==null))return Bt(s,c,H,x,ae,F,g);if(D){D=x.fallback,H=c.mode,F=s.child,ae=F.sibling;var fe={mode:"hidden",children:x.children};return(H&1)===0&&c.child!==F?(x=c.child,x.childLanes=0,x.pendingProps=fe,c.deletions=null):(x=Yo(F,fe),x.subtreeFlags=F.subtreeFlags&14680064),ae!==null?D=Yo(ae,D):(D=iu(D,H,g,null),D.flags|=2),D.return=c,x.return=c,x.sibling=D,c.child=x,x=D,D=c.child,H=s.child.memoizedState,H=H===null?sf(g):{baseLanes:H.baseLanes|g,cachePool:null,transitions:H.transitions},D.memoizedState=H,D.childLanes=s.childLanes&~g,c.memoizedState=of,x}return D=s.child,s=D.sibling,x=Yo(D,{mode:"visible",children:x.children}),(c.mode&1)===0&&(x.lanes=g),x.return=c,x.sibling=null,s!==null&&(g=c.deletions,g===null?(c.deletions=[s],c.flags|=16):g.push(s)),c.child=x,c.memoizedState=null,x}function gc(s,c){return c=Ah({mode:"visible",children:c},s.mode,0,null),c.return=s,s.child=c}function ds(s,c,g,x){return x!==null&&Si(x),Jr(c,s.child,null,g),s=gc(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function Bt(s,c,g,x,F,D,H){if(g)return c.flags&256?(c.flags&=-257,x=fh(Error(r(422))),ds(s,c,H,x)):c.memoizedState!==null?(c.child=s.child,c.flags|=128,null):(D=x.fallback,F=c.mode,x=Ah({mode:"visible",children:x.children},F,0,null),D=iu(D,F,H,null),D.flags|=2,x.return=c,D.return=c,x.sibling=D,c.child=x,(c.mode&1)!==0&&Jr(c,s.child,null,H),c.child.memoizedState=sf(H),c.memoizedState=of,D);if((c.mode&1)===0)return ds(s,c,H,null);if(F.data==="$!"){if(x=F.nextSibling&&F.nextSibling.dataset,x)var ae=x.dgst;return x=ae,D=Error(r(419)),x=fh(D,x,void 0),ds(s,c,H,x)}if(ae=(H&s.childLanes)!==0,pa||ae){if(x=kn,x!==null){switch(H&-H){case 4:F=2;break;case 16:F=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:F=32;break;case 536870912:F=268435456;break;default:F=0}F=(F&(x.suspendedLanes|H))!==0?0:F,F!==0&&F!==D.retryLane&&(D.retryLane=F,is(s,F),Xo(x,s,F,-1))}return Mg(),x=fh(Error(r(421))),ds(s,c,H,x)}return F.data==="$?"?(c.flags|=128,c.child=s.child,c=QS.bind(null,s),F._reactRetry=c,null):(s=D.treeContext,Ga=Vs(F.nextSibling),ta=c,Br=!0,Vo=null,s!==null&&(yo[bo++]=bi,yo[bo++]=_i,yo[bo++]=Hl,bi=s.id,_i=s.overflow,Hl=c),c=gc(c,x.children),c.flags|=4096,c)}function lf(s,c,g){s.lanes|=c;var x=s.alternate;x!==null&&(x.lanes|=c),qn(s.return,c,g)}function uf(s,c,g,x,F){var D=s.memoizedState;D===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:x,tail:g,tailMode:F}:(D.isBackwards=c,D.rendering=null,D.renderingStartTime=0,D.last=x,D.tail=g,D.tailMode=F)}function Js(s,c,g){var x=c.pendingProps,F=x.revealOrder,D=x.tail;if(Un(s,c,x.children,g),x=Wr.current,(x&2)!==0)x=x&1|2,c.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&lf(s,g,c);else if(s.tag===19)lf(s,g,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}x&=1}if(Mr(Wr,x),(c.mode&1)===0)c.memoizedState=null;else switch(F){case"forwards":for(g=c.child,F=null;g!==null;)s=g.alternate,s!==null&&Yl(s)===null&&(F=g),g=g.sibling;g=F,g===null?(F=c.child,c.child=null):(F=g.sibling,g.sibling=null),uf(c,!1,F,g,D);break;case"backwards":for(g=null,F=c.child,c.child=null;F!==null;){if(s=F.alternate,s!==null&&Yl(s)===null){c.child=F;break}s=F.sibling,F.sibling=g,g=F,F=s}uf(c,!0,g,null,D);break;case"together":uf(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function vh(s,c){(c.mode&1)===0&&s!==null&&(s.alternate=null,c.alternate=null,c.flags|=2)}function Ho(s,c,g){if(s!==null&&(c.dependencies=s.dependencies),el|=c.lanes,(g&c.childLanes)===0)return null;if(s!==null&&c.child!==s.child)throw Error(r(153));if(c.child!==null){for(s=c.child,g=Yo(s,s.pendingProps),c.child=g,g.return=c;s.sibling!==null;)s=s.sibling,g=g.sibling=Yo(s,s.pendingProps),g.return=c;g.sibling=null}return c.child}function u_(s,c,g){switch(c.tag){case 3:l_(c),xi();break;case 5:Zv(c);break;case 1:Ia(c.type)&&go(c);break;case 4:Jv(c,c.stateNode.containerInfo);break;case 10:var x=c.type._context,F=c.memoizedProps.value;Mr(Qd,x._currentValue),x._currentValue=F;break;case 13:if(x=c.memoizedState,x!==null)return x.dehydrated!==null?(Mr(Wr,Wr.current&1),c.flags|=128,null):(g&c.child.childLanes)!==0?mh(s,c,g):(Mr(Wr,Wr.current&1),s=Ho(s,c,g),s!==null?s.sibling:null);Mr(Wr,Wr.current&1);break;case 19:if(x=(g&c.childLanes)!==0,(s.flags&128)!==0){if(x)return Js(s,c,g);c.flags|=128}if(F=c.memoizedState,F!==null&&(F.rendering=null,F.tail=null,F.lastEffect=null),Mr(Wr,Wr.current),x)break;return null;case 22:case 23:return c.lanes=0,mg(s,c,g)}return Ho(s,c,g)}var Vn,_g,c_,wg;Vn=function(s,c){for(var g=c.child;g!==null;){if(g.tag===5||g.tag===6)s.appendChild(g.stateNode);else if(g.tag!==4&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===c)break;for(;g.sibling===null;){if(g.return===null||g.return===c)return;g=g.return}g.sibling.return=g.return,g=g.sibling}},_g=function(){},c_=function(s,c,g,x){var F=s.memoizedProps;if(F!==x){s=c.stateNode,ls(Ci.current);var D=null;switch(g){case"input":F=Fe(s,F),x=Fe(s,x),D=[];break;case"select":F=te({},F,{value:void 0}),x=te({},x,{value:void 0}),D=[];break;case"textarea":F=ne(s,F),x=ne(s,x),D=[];break;default:typeof F.onClick!="function"&&typeof x.onClick=="function"&&(s.onclick=zp)}Kt(g,x);var H;g=null;for(je in F)if(!x.hasOwnProperty(je)&&F.hasOwnProperty(je)&&F[je]!=null)if(je==="style"){var ae=F[je];for(H in ae)ae.hasOwnProperty(H)&&(g||(g={}),g[H]="")}else je!=="dangerouslySetInnerHTML"&&je!=="children"&&je!=="suppressContentEditableWarning"&&je!=="suppressHydrationWarning"&&je!=="autoFocus"&&(a.hasOwnProperty(je)?D||(D=[]):(D=D||[]).push(je,null));for(je in x){var fe=x[je];if(ae=F!=null?F[je]:void 0,x.hasOwnProperty(je)&&fe!==ae&&(fe!=null||ae!=null))if(je==="style")if(ae){for(H in ae)!ae.hasOwnProperty(H)||fe&&fe.hasOwnProperty(H)||(g||(g={}),g[H]="");for(H in fe)fe.hasOwnProperty(H)&&ae[H]!==fe[H]&&(g||(g={}),g[H]=fe[H])}else g||(D||(D=[]),D.push(je,g)),g=fe;else je==="dangerouslySetInnerHTML"?(fe=fe?fe.__html:void 0,ae=ae?ae.__html:void 0,fe!=null&&ae!==fe&&(D=D||[]).push(je,fe)):je==="children"?typeof fe!="string"&&typeof fe!="number"||(D=D||[]).push(je,""+fe):je!=="suppressContentEditableWarning"&&je!=="suppressHydrationWarning"&&(a.hasOwnProperty(je)?(fe!=null&&je==="onScroll"&&Dr("scroll",s),D||ae===fe||(D=[])):(D=D||[]).push(je,fe))}g&&(D=D||[]).push("style",g);var je=D;(c.updateQueue=je)&&(c.flags|=4)}},wg=function(s,c,g,x){g!==x&&(c.flags|=4)};function cf(s,c){if(!Br)switch(s.tailMode){case"hidden":c=s.tail;for(var g=null;c!==null;)c.alternate!==null&&(g=c),c=c.sibling;g===null?s.tail=null:g.sibling=null;break;case"collapsed":g=s.tail;for(var x=null;g!==null;)g.alternate!==null&&(x=g),g=g.sibling;x===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:x.sibling=null}}function Wn(s){var c=s.alternate!==null&&s.alternate.child===s.child,g=0,x=0;if(c)for(var F=s.child;F!==null;)g|=F.lanes|F.childLanes,x|=F.subtreeFlags&14680064,x|=F.flags&14680064,F.return=s,F=F.sibling;else for(F=s.child;F!==null;)g|=F.lanes|F.childLanes,x|=F.subtreeFlags,x|=F.flags,F.return=s,F=F.sibling;return s.subtreeFlags|=x,s.childLanes=g,c}function zS(s,c,g){var x=c.pendingProps;switch(Gl(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wn(c),null;case 1:return Ia(c.type)&&Wp(),Wn(c),null;case 3:return x=c.stateNode,Xs(),Nr(Aa),Nr(Zn),rh(),x.pendingContext&&(x.context=x.pendingContext,x.pendingContext=null),(s===null||s.child===null)&&(Kd(c)?c.flags|=4:s===null||s.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,Vo!==null&&(Ag(Vo),Vo=null))),_g(s,c),Wn(c),null;case 5:th(c);var F=ls(uc.current);if(g=c.type,s!==null&&c.stateNode!=null)c_(s,c,g,x,F),s.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!x){if(c.stateNode===null)throw Error(r(166));return Wn(c),null}if(s=ls(Ci.current),Kd(c)){x=c.stateNode,g=c.type;var D=c.memoizedProps;switch(x[gi]=c,x[Ws]=D,s=(c.mode&1)!==0,g){case"dialog":Dr("cancel",x),Dr("close",x);break;case"iframe":case"object":case"embed":Dr("load",x);break;case"video":case"audio":for(F=0;F<rs.length;F++)Dr(rs[F],x);break;case"source":Dr("error",x);break;case"img":case"image":case"link":Dr("error",x),Dr("load",x);break;case"details":Dr("toggle",x);break;case"input":$e(x,D),Dr("invalid",x);break;case"select":x._wrapperState={wasMultiple:!!D.multiple},Dr("invalid",x);break;case"textarea":we(x,D),Dr("invalid",x)}Kt(g,D),F=null;for(var H in D)if(D.hasOwnProperty(H)){var ae=D[H];H==="children"?typeof ae=="string"?x.textContent!==ae&&(D.suppressHydrationWarning!==!0&&qd(x.textContent,ae,s),F=["children",ae]):typeof ae=="number"&&x.textContent!==""+ae&&(D.suppressHydrationWarning!==!0&&qd(x.textContent,ae,s),F=["children",""+ae]):a.hasOwnProperty(H)&&ae!=null&&H==="onScroll"&&Dr("scroll",x)}switch(g){case"input":Oe(x),re(x,D,!0);break;case"textarea":Oe(x),De(x);break;case"select":case"option":break;default:typeof D.onClick=="function"&&(x.onclick=zp)}x=F,c.updateQueue=x,x!==null&&(c.flags|=4)}else{H=F.nodeType===9?F:F.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=ht(g)),s==="http://www.w3.org/1999/xhtml"?g==="script"?(s=H.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof x.is=="string"?s=H.createElement(g,{is:x.is}):(s=H.createElement(g),g==="select"&&(H=s,x.multiple?H.multiple=!0:x.size&&(H.size=x.size))):s=H.createElementNS(s,g),s[gi]=c,s[Ws]=x,Vn(s,c,!1,!1),c.stateNode=s;e:{switch(H=lr(g,x),g){case"dialog":Dr("cancel",s),Dr("close",s),F=x;break;case"iframe":case"object":case"embed":Dr("load",s),F=x;break;case"video":case"audio":for(F=0;F<rs.length;F++)Dr(rs[F],s);F=x;break;case"source":Dr("error",s),F=x;break;case"img":case"image":case"link":Dr("error",s),Dr("load",s),F=x;break;case"details":Dr("toggle",s),F=x;break;case"input":$e(s,x),F=Fe(s,x),Dr("invalid",s);break;case"option":F=x;break;case"select":s._wrapperState={wasMultiple:!!x.multiple},F=te({},x,{value:void 0}),Dr("invalid",s);break;case"textarea":we(s,x),F=ne(s,x),Dr("invalid",s);break;default:F=x}Kt(g,F),ae=F;for(D in ae)if(ae.hasOwnProperty(D)){var fe=ae[D];D==="style"?Ct(s,fe):D==="dangerouslySetInnerHTML"?(fe=fe?fe.__html:void 0,fe!=null&&Pt(s,fe)):D==="children"?typeof fe=="string"?(g!=="textarea"||fe!=="")&&Tt(s,fe):typeof fe=="number"&&Tt(s,""+fe):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(a.hasOwnProperty(D)?fe!=null&&D==="onScroll"&&Dr("scroll",s):fe!=null&&C(s,D,fe,H))}switch(g){case"input":Oe(s),re(s,x,!1);break;case"textarea":Oe(s),De(s);break;case"option":x.value!=null&&s.setAttribute("value",""+Ee(x.value));break;case"select":s.multiple=!!x.multiple,D=x.value,D!=null?Se(s,!!x.multiple,D,!1):x.defaultValue!=null&&Se(s,!!x.multiple,x.defaultValue,!0);break;default:typeof F.onClick=="function"&&(s.onclick=zp)}switch(g){case"button":case"input":case"select":case"textarea":x=!!x.autoFocus;break e;case"img":x=!0;break e;default:x=!1}}x&&(c.flags|=4)}c.ref!==null&&(c.flags|=512,c.flags|=2097152)}return Wn(c),null;case 6:if(s&&c.stateNode!=null)wg(s,c,s.memoizedProps,x);else{if(typeof x!="string"&&c.stateNode===null)throw Error(r(166));if(g=ls(uc.current),ls(Ci.current),Kd(c)){if(x=c.stateNode,g=c.memoizedProps,x[gi]=c,(D=x.nodeValue!==g)&&(s=ta,s!==null))switch(s.tag){case 3:qd(x.nodeValue,g,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&qd(x.nodeValue,g,(s.mode&1)!==0)}D&&(c.flags|=4)}else x=(g.nodeType===9?g:g.ownerDocument).createTextNode(x),x[gi]=c,c.stateNode=x}return Wn(c),null;case 13:if(Nr(Wr),x=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(Br&&Ga!==null&&(c.mode&1)!==0&&(c.flags&128)===0)Gv(),xi(),c.flags|=98560,D=!1;else if(D=Kd(c),x!==null&&x.dehydrated!==null){if(s===null){if(!D)throw Error(r(318));if(D=c.memoizedState,D=D!==null?D.dehydrated:null,!D)throw Error(r(317));D[gi]=c}else xi(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Wn(c),D=!1}else Vo!==null&&(Ag(Vo),Vo=null),D=!0;if(!D)return c.flags&65536?c:null}return(c.flags&128)!==0?(c.lanes=g,c):(x=x!==null,x!==(s!==null&&s.memoizedState!==null)&&x&&(c.child.flags|=8192,(c.mode&1)!==0&&(s===null||(Wr.current&1)!==0?wn===0&&(wn=3):Mg())),c.updateQueue!==null&&(c.flags|=4),Wn(c),null);case 4:return Xs(),_g(s,c),s===null&&qs(c.stateNode.containerInfo),Wn(c),null;case 10:return Yp(c.type._context),Wn(c),null;case 17:return Ia(c.type)&&Wp(),Wn(c),null;case 19:if(Nr(Wr),D=c.memoizedState,D===null)return Wn(c),null;if(x=(c.flags&128)!==0,H=D.rendering,H===null)if(x)cf(D,!1);else{if(wn!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(H=Yl(s),H!==null){for(c.flags|=128,cf(D,!1),x=H.updateQueue,x!==null&&(c.updateQueue=x,c.flags|=4),c.subtreeFlags=0,x=g,g=c.child;g!==null;)D=g,s=x,D.flags&=14680066,H=D.alternate,H===null?(D.childLanes=0,D.lanes=s,D.child=null,D.subtreeFlags=0,D.memoizedProps=null,D.memoizedState=null,D.updateQueue=null,D.dependencies=null,D.stateNode=null):(D.childLanes=H.childLanes,D.lanes=H.lanes,D.child=H.child,D.subtreeFlags=0,D.deletions=null,D.memoizedProps=H.memoizedProps,D.memoizedState=H.memoizedState,D.updateQueue=H.updateQueue,D.type=H.type,s=H.dependencies,D.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),g=g.sibling;return Mr(Wr,Wr.current&1|2),c.child}s=s.sibling}D.tail!==null&&Sr()>ru&&(c.flags|=128,x=!0,cf(D,!1),c.lanes=4194304)}else{if(!x)if(s=Yl(H),s!==null){if(c.flags|=128,x=!0,g=s.updateQueue,g!==null&&(c.updateQueue=g,c.flags|=4),cf(D,!0),D.tail===null&&D.tailMode==="hidden"&&!H.alternate&&!Br)return Wn(c),null}else 2*Sr()-D.renderingStartTime>ru&&g!==1073741824&&(c.flags|=128,x=!0,cf(D,!1),c.lanes=4194304);D.isBackwards?(H.sibling=c.child,c.child=H):(g=D.last,g!==null?g.sibling=H:c.child=H,D.last=H)}return D.tail!==null?(c=D.tail,D.rendering=c,D.tail=c.sibling,D.renderingStartTime=Sr(),c.sibling=null,g=Wr.current,Mr(Wr,x?g&1|2:g&1),c):(Wn(c),null);case 22:case 23:return jg(),x=c.memoizedState!==null,s!==null&&s.memoizedState!==null!==x&&(c.flags|=8192),x&&(c.mode&1)!==0?(Ya&1073741824)!==0&&(Wn(c),c.subtreeFlags&6&&(c.flags|=8192)):Wn(c),null;case 24:return null;case 25:return null}throw Error(r(156,c.tag))}function qS(s,c){switch(Gl(c),c.tag){case 1:return Ia(c.type)&&Wp(),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return Xs(),Nr(Aa),Nr(Zn),rh(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 5:return th(c),null;case 13:if(Nr(Wr),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));xi()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return Nr(Wr),null;case 4:return Xs(),null;case 10:return Yp(c.type._context),null;case 22:case 23:return jg(),null;case 24:return null;default:return null}}var gh=!1,Hr=!1,ha=typeof WeakSet=="function"?WeakSet:Set,vt=null;function yc(s,c){var g=s.ref;if(g!==null)if(typeof g=="function")try{g(null)}catch(x){Xr(s,c,x)}else g.current=null}function df(s,c,g){try{g()}catch(x){Xr(s,c,x)}}var d_=!1;function US(s,c){if(Ud=Sp,s=Rr(),Ld(s)){if("selectionStart"in s)var g={start:s.selectionStart,end:s.selectionEnd};else e:{g=(g=s.ownerDocument)&&g.defaultView||window;var x=g.getSelection&&g.getSelection();if(x&&x.rangeCount!==0){g=x.anchorNode;var F=x.anchorOffset,D=x.focusNode;x=x.focusOffset;try{g.nodeType,D.nodeType}catch{g=null;break e}var H=0,ae=-1,fe=-1,je=0,Xe=0,Ze=s,Ge=null;t:for(;;){for(var pt;Ze!==g||F!==0&&Ze.nodeType!==3||(ae=H+F),Ze!==D||x!==0&&Ze.nodeType!==3||(fe=H+x),Ze.nodeType===3&&(H+=Ze.nodeValue.length),(pt=Ze.firstChild)!==null;)Ge=Ze,Ze=pt;for(;;){if(Ze===s)break t;if(Ge===g&&++je===F&&(ae=H),Ge===D&&++Xe===x&&(fe=H),(pt=Ze.nextSibling)!==null)break;Ze=Ge,Ge=Ze.parentNode}Ze=pt}g=ae===-1||fe===-1?null:{start:ae,end:fe}}else g=null}g=g||{start:0,end:0}}else g=null;for(Vl={focusedElem:s,selectionRange:g},Sp=!1,vt=c;vt!==null;)if(c=vt,s=c.child,(c.subtreeFlags&1028)!==0&&s!==null)s.return=c,vt=s;else for(;vt!==null;){c=vt;try{var xt=c.alternate;if((c.flags&1024)!==0)switch(c.tag){case 0:case 11:case 15:break;case 1:if(xt!==null){var Rt=xt.memoizedProps,rn=xt.memoizedState,Re=c.stateNode,ye=Re.getSnapshotBeforeUpdate(c.elementType===c.type?Rt:Co(c.type,Rt),rn);Re.__reactInternalSnapshotBeforeUpdate=ye}break;case 3:var ke=c.stateNode.containerInfo;ke.nodeType===1?ke.textContent="":ke.nodeType===9&&ke.documentElement&&ke.removeChild(ke.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(tt){Xr(c,c.return,tt)}if(s=c.sibling,s!==null){s.return=c.return,vt=s;break}vt=c.return}return xt=d_,d_=!1,xt}function fs(s,c,g){var x=c.updateQueue;if(x=x!==null?x.lastEffect:null,x!==null){var F=x=x.next;do{if((F.tag&s)===s){var D=F.destroy;F.destroy=void 0,D!==void 0&&df(c,g,D)}F=F.next}while(F!==x)}}function ff(s,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var g=c=c.next;do{if((g.tag&s)===s){var x=g.create;g.destroy=x()}g=g.next}while(g!==c)}}function yh(s){var c=s.ref;if(c!==null){var g=s.stateNode;switch(s.tag){case 5:s=g;break;default:s=g}typeof c=="function"?c(s):c.current=s}}function f_(s){var c=s.alternate;c!==null&&(s.alternate=null,f_(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&(delete c[gi],delete c[Ws],delete c[Up],delete c[Z],delete c[nc])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function p_(s){return s.tag===5||s.tag===3||s.tag===4}function h_(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||p_(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function xg(s,c,g){var x=s.tag;if(x===5||x===6)s=s.stateNode,c?g.nodeType===8?g.parentNode.insertBefore(s,c):g.insertBefore(s,c):(g.nodeType===8?(c=g.parentNode,c.insertBefore(s,g)):(c=g,c.appendChild(s)),g=g._reactRootContainer,g!=null||c.onclick!==null||(c.onclick=zp));else if(x!==4&&(s=s.child,s!==null))for(xg(s,c,g),s=s.sibling;s!==null;)xg(s,c,g),s=s.sibling}function bh(s,c,g){var x=s.tag;if(x===5||x===6)s=s.stateNode,c?g.insertBefore(s,c):g.appendChild(s);else if(x!==4&&(s=s.child,s!==null))for(bh(s,c,g),s=s.sibling;s!==null;)bh(s,c,g),s=s.sibling}var Rn=null,Ko=!1;function ki(s,c,g){for(g=g.child;g!==null;)Sg(s,c,g),g=g.sibling}function Sg(s,c,g){if(Ra&&typeof Ra.onCommitFiberUnmount=="function")try{Ra.onCommitFiberUnmount(Ji,g)}catch{}switch(g.tag){case 5:Hr||yc(g,c);case 6:var x=Rn,F=Ko;Rn=null,ki(s,c,g),Rn=x,Ko=F,Rn!==null&&(Ko?(s=Rn,g=g.stateNode,s.nodeType===8?s.parentNode.removeChild(g):s.removeChild(g)):Rn.removeChild(g.stateNode));break;case 18:Rn!==null&&(Ko?(s=Rn,g=g.stateNode,s.nodeType===8?Wv(s.parentNode,g):s.nodeType===1&&Wv(s,g),Cr(s)):Wv(Rn,g.stateNode));break;case 4:x=Rn,F=Ko,Rn=g.stateNode.containerInfo,Ko=!0,ki(s,c,g),Rn=x,Ko=F;break;case 0:case 11:case 14:case 15:if(!Hr&&(x=g.updateQueue,x!==null&&(x=x.lastEffect,x!==null))){F=x=x.next;do{var D=F,H=D.destroy;D=D.tag,H!==void 0&&((D&2)!==0||(D&4)!==0)&&df(g,c,H),F=F.next}while(F!==x)}ki(s,c,g);break;case 1:if(!Hr&&(yc(g,c),x=g.stateNode,typeof x.componentWillUnmount=="function"))try{x.props=g.memoizedProps,x.state=g.memoizedState,x.componentWillUnmount()}catch(ae){Xr(g,c,ae)}ki(s,c,g);break;case 21:ki(s,c,g);break;case 22:g.mode&1?(Hr=(x=Hr)||g.memoizedState!==null,ki(s,c,g),Hr=x):ki(s,c,g);break;default:ki(s,c,g)}}function bc(s){var c=s.updateQueue;if(c!==null){s.updateQueue=null;var g=s.stateNode;g===null&&(g=s.stateNode=new ha),c.forEach(function(x){var F=XS.bind(null,s,x);g.has(x)||(g.add(x),x.then(F,F))})}}function Xa(s,c){var g=c.deletions;if(g!==null)for(var x=0;x<g.length;x++){var F=g[x];try{var D=s,H=c,ae=H;e:for(;ae!==null;){switch(ae.tag){case 5:Rn=ae.stateNode,Ko=!1;break e;case 3:Rn=ae.stateNode.containerInfo,Ko=!0;break e;case 4:Rn=ae.stateNode.containerInfo,Ko=!0;break e}ae=ae.return}if(Rn===null)throw Error(r(160));Sg(D,H,F),Rn=null,Ko=!1;var fe=F.alternate;fe!==null&&(fe.return=null),F.return=null}catch(je){Xr(F,c,je)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)Cg(c,s),c=c.sibling}function Cg(s,c){var g=s.alternate,x=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Xa(c,s),Go(s),x&4){try{fs(3,s,s.return),ff(3,s)}catch(Rt){Xr(s,s.return,Rt)}try{fs(5,s,s.return)}catch(Rt){Xr(s,s.return,Rt)}}break;case 1:Xa(c,s),Go(s),x&512&&g!==null&&yc(g,g.return);break;case 5:if(Xa(c,s),Go(s),x&512&&g!==null&&yc(g,g.return),s.flags&32){var F=s.stateNode;try{Tt(F,"")}catch(Rt){Xr(s,s.return,Rt)}}if(x&4&&(F=s.stateNode,F!=null)){var D=s.memoizedProps,H=g!==null?g.memoizedProps:D,ae=s.type,fe=s.updateQueue;if(s.updateQueue=null,fe!==null)try{ae==="input"&&D.type==="radio"&&D.name!=null&&et(F,D),lr(ae,H);var je=lr(ae,D);for(H=0;H<fe.length;H+=2){var Xe=fe[H],Ze=fe[H+1];Xe==="style"?Ct(F,Ze):Xe==="dangerouslySetInnerHTML"?Pt(F,Ze):Xe==="children"?Tt(F,Ze):C(F,Xe,Ze,je)}switch(ae){case"input":qe(F,D);break;case"textarea":Ne(F,D);break;case"select":var Ge=F._wrapperState.wasMultiple;F._wrapperState.wasMultiple=!!D.multiple;var pt=D.value;pt!=null?Se(F,!!D.multiple,pt,!1):Ge!==!!D.multiple&&(D.defaultValue!=null?Se(F,!!D.multiple,D.defaultValue,!0):Se(F,!!D.multiple,D.multiple?[]:"",!1))}F[Ws]=D}catch(Rt){Xr(s,s.return,Rt)}}break;case 6:if(Xa(c,s),Go(s),x&4){if(s.stateNode===null)throw Error(r(162));F=s.stateNode,D=s.memoizedProps;try{F.nodeValue=D}catch(Rt){Xr(s,s.return,Rt)}}break;case 3:if(Xa(c,s),Go(s),x&4&&g!==null&&g.memoizedState.isDehydrated)try{Cr(c.containerInfo)}catch(Rt){Xr(s,s.return,Rt)}break;case 4:Xa(c,s),Go(s);break;case 13:Xa(c,s),Go(s),F=s.child,F.flags&8192&&(D=F.memoizedState!==null,F.stateNode.isHidden=D,!D||F.alternate!==null&&F.alternate.memoizedState!==null||(Pg=Sr())),x&4&&bc(s);break;case 22:if(Xe=g!==null&&g.memoizedState!==null,s.mode&1?(Hr=(je=Hr)||Xe,Xa(c,s),Hr=je):Xa(c,s),Go(s),x&8192){if(je=s.memoizedState!==null,(s.stateNode.isHidden=je)&&!Xe&&(s.mode&1)!==0)for(vt=s,Xe=s.child;Xe!==null;){for(Ze=vt=Xe;vt!==null;){switch(Ge=vt,pt=Ge.child,Ge.tag){case 0:case 11:case 14:case 15:fs(4,Ge,Ge.return);break;case 1:yc(Ge,Ge.return);var xt=Ge.stateNode;if(typeof xt.componentWillUnmount=="function"){x=Ge,g=Ge.return;try{c=x,xt.props=c.memoizedProps,xt.state=c.memoizedState,xt.componentWillUnmount()}catch(Rt){Xr(x,g,Rt)}}break;case 5:yc(Ge,Ge.return);break;case 22:if(Ge.memoizedState!==null){Zs(Ze);continue}}pt!==null?(pt.return=Ge,vt=pt):Zs(Ze)}Xe=Xe.sibling}e:for(Xe=null,Ze=s;;){if(Ze.tag===5){if(Xe===null){Xe=Ze;try{F=Ze.stateNode,je?(D=F.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none"):(ae=Ze.stateNode,fe=Ze.memoizedProps.style,H=fe!=null&&fe.hasOwnProperty("display")?fe.display:null,ae.style.display=Lt("display",H))}catch(Rt){Xr(s,s.return,Rt)}}}else if(Ze.tag===6){if(Xe===null)try{Ze.stateNode.nodeValue=je?"":Ze.memoizedProps}catch(Rt){Xr(s,s.return,Rt)}}else if((Ze.tag!==22&&Ze.tag!==23||Ze.memoizedState===null||Ze===s)&&Ze.child!==null){Ze.child.return=Ze,Ze=Ze.child;continue}if(Ze===s)break e;for(;Ze.sibling===null;){if(Ze.return===null||Ze.return===s)break e;Xe===Ze&&(Xe=null),Ze=Ze.return}Xe===Ze&&(Xe=null),Ze.sibling.return=Ze.return,Ze=Ze.sibling}}break;case 19:Xa(c,s),Go(s),x&4&&bc(s);break;case 21:break;default:Xa(c,s),Go(s)}}function Go(s){var c=s.flags;if(c&2){try{e:{for(var g=s.return;g!==null;){if(p_(g)){var x=g;break e}g=g.return}throw Error(r(160))}switch(x.tag){case 5:var F=x.stateNode;x.flags&32&&(Tt(F,""),x.flags&=-33);var D=h_(s);bh(s,D,F);break;case 3:case 4:var H=x.stateNode.containerInfo,ae=h_(s);xg(s,ae,H);break;default:throw Error(r(161))}}catch(fe){Xr(s,s.return,fe)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function _h(s,c,g){vt=s,Eg(s)}function Eg(s,c,g){for(var x=(s.mode&1)!==0;vt!==null;){var F=vt,D=F.child;if(F.tag===22&&x){var H=F.memoizedState!==null||gh;if(!H){var ae=F.alternate,fe=ae!==null&&ae.memoizedState!==null||Hr;ae=gh;var je=Hr;if(gh=H,(Hr=fe)&&!je)for(vt=F;vt!==null;)H=vt,fe=H.child,H.tag===22&&H.memoizedState!==null?m_(F):fe!==null?(fe.return=H,vt=fe):m_(F);for(;D!==null;)vt=D,Eg(D),D=D.sibling;vt=F,gh=ae,Hr=je}Qo(s)}else(F.subtreeFlags&8772)!==0&&D!==null?(D.return=F,vt=D):Qo(s)}}function Qo(s){for(;vt!==null;){var c=vt;if((c.flags&8772)!==0){var g=c.alternate;try{if((c.flags&8772)!==0)switch(c.tag){case 0:case 11:case 15:Hr||ff(5,c);break;case 1:var x=c.stateNode;if(c.flags&4&&!Hr)if(g===null)x.componentDidMount();else{var F=c.elementType===c.type?g.memoizedProps:Co(c.type,g.memoizedProps);x.componentDidUpdate(F,g.memoizedState,x.__reactInternalSnapshotBeforeUpdate)}var D=c.updateQueue;D!==null&&Yv(c,D,x);break;case 3:var H=c.updateQueue;if(H!==null){if(g=null,c.child!==null)switch(c.child.tag){case 5:g=c.child.stateNode;break;case 1:g=c.child.stateNode}Yv(c,H,g)}break;case 5:var ae=c.stateNode;if(g===null&&c.flags&4){g=ae;var fe=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":fe.autoFocus&&g.focus();break;case"img":fe.src&&(g.src=fe.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var je=c.alternate;if(je!==null){var Xe=je.memoizedState;if(Xe!==null){var Ze=Xe.dehydrated;Ze!==null&&Cr(Ze)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Hr||c.flags&512&&yh(c)}catch(Ge){Xr(c,c.return,Ge)}}if(c===s){vt=null;break}if(g=c.sibling,g!==null){g.return=c.return,vt=g;break}vt=c.return}}function Zs(s){for(;vt!==null;){var c=vt;if(c===s){vt=null;break}var g=c.sibling;if(g!==null){g.return=c.return,vt=g;break}vt=c.return}}function m_(s){for(;vt!==null;){var c=vt;try{switch(c.tag){case 0:case 11:case 15:var g=c.return;try{ff(4,c)}catch(fe){Xr(c,g,fe)}break;case 1:var x=c.stateNode;if(typeof x.componentDidMount=="function"){var F=c.return;try{x.componentDidMount()}catch(fe){Xr(c,F,fe)}}var D=c.return;try{yh(c)}catch(fe){Xr(c,D,fe)}break;case 5:var H=c.return;try{yh(c)}catch(fe){Xr(c,H,fe)}}}catch(fe){Xr(c,c.return,fe)}if(c===s){vt=null;break}var ae=c.sibling;if(ae!==null){ae.return=c.return,vt=ae;break}vt=c.return}}var v_=Math.ceil,wh=O.ReactCurrentDispatcher,Og=O.ReactCurrentOwner,Eo=O.ReactCurrentBatchConfig,pr=0,kn=null,ln=null,Hn=0,Ya=0,_c=Ta(0),wn=0,pf=null,el=0,hf=0,xh=0,mf=null,Fa=null,Pg=0,ru=1/0,ps=null,Sh=!1,Rg=null,tl=null,Ch=!1,rl=null,ma=0,vf=0,kg=null,Eh=-1,gf=0;function va(){return(pr&6)!==0?Sr():Eh!==-1?Eh:Eh=Sr()}function nl(s){return(s.mode&1)===0?1:(pr&2)!==0&&Hn!==0?Hn&-Hn:Q0.transition!==null?(gf===0&&(gf=Sv()),gf):(s=wr,s!==0||(s=window.event,s=s===void 0?16:w0(s.type)),s)}function Xo(s,c,g,x){if(50<vf)throw vf=0,kg=null,Error(r(185));Td(s,g,x),((pr&2)===0||s!==kn)&&(s===kn&&((pr&2)===0&&(hf|=g),wn===4&&al(s,Hn)),La(s,x),g===1&&pr===0&&(c.mode&1)===0&&(ru=Sr()+500,Hp&&Ks()))}function La(s,c){var g=s.callbackNode;_S(s,c);var x=$l(s,s===kn?Hn:0);if(x===0)g!==null&&Ms(g),s.callbackNode=null,s.callbackPriority=0;else if(c=x&-x,s.callbackPriority!==c){if(g!=null&&Ms(g),c===1)s.tag===0?Wl(g_.bind(null,s)):H0(g_.bind(null,s)),qp(function(){(pr&6)===0&&Ks()}),g=null;else{switch(Dl(x)){case 1:g=qo;break;case 4:g=Ll;break;case 16:g=cr;break;case 536870912:g=ho;break;default:g=cr}g=C_(g,Oh.bind(null,s))}s.callbackPriority=c,s.callbackNode=g}}function Oh(s,c){if(Eh=-1,gf=0,(pr&6)!==0)throw Error(r(327));var g=s.callbackNode;if(wc()&&s.callbackNode!==g)return null;var x=$l(s,s===kn?Hn:0);if(x===0)return null;if((x&30)!==0||(x&s.expiredLanes)!==0||c)c=Ph(s,x);else{c=x;var F=pr;pr|=2;var D=b_();(kn!==s||Hn!==c)&&(ps=null,ru=Sr()+500,au(s,c));do try{HS();break}catch(ae){y_(s,ae)}while(!0);os(),wh.current=D,pr=F,ln!==null?c=0:(kn=null,Hn=0,c=wn)}if(c!==0){if(c===2&&(F=bp(s),F!==0&&(x=F,c=Tg(s,F))),c===1)throw g=pf,au(s,0),al(s,x),La(s,Sr()),g;if(c===6)al(s,x);else{if(F=s.current.alternate,(x&30)===0&&!VS(F)&&(c=Ph(s,x),c===2&&(D=bp(s),D!==0&&(x=D,c=Tg(s,D))),c===1))throw g=pf,au(s,0),al(s,x),La(s,Sr()),g;switch(s.finishedWork=F,s.finishedLanes=x,c){case 0:case 1:throw Error(r(345));case 2:ou(s,Fa,ps);break;case 3:if(al(s,x),(x&130023424)===x&&(c=Pg+500-Sr(),10<c)){if($l(s,0)!==0)break;if(F=s.suspendedLanes,(F&x)!==x){va(),s.pingedLanes|=s.suspendedLanes&F;break}s.timeoutHandle=Us(ou.bind(null,s,Fa,ps),c);break}ou(s,Fa,ps);break;case 4:if(al(s,x),(x&4194240)===x)break;for(c=s.eventTimes,F=-1;0<x;){var H=31-Pn(x);D=1<<H,H=c[H],H>F&&(F=H),x&=~D}if(x=F,x=Sr()-x,x=(120>x?120:480>x?480:1080>x?1080:1920>x?1920:3e3>x?3e3:4320>x?4320:1960*v_(x/1960))-x,10<x){s.timeoutHandle=Us(ou.bind(null,s,Fa,ps),x);break}ou(s,Fa,ps);break;case 5:ou(s,Fa,ps);break;default:throw Error(r(329))}}}return La(s,Sr()),s.callbackNode===g?Oh.bind(null,s):null}function Tg(s,c){var g=mf;return s.current.memoizedState.isDehydrated&&(au(s,c).flags|=256),s=Ph(s,c),s!==2&&(c=Fa,Fa=g,c!==null&&Ag(c)),s}function Ag(s){Fa===null?Fa=s:Fa.push.apply(Fa,s)}function VS(s){for(var c=s;;){if(c.flags&16384){var g=c.updateQueue;if(g!==null&&(g=g.stores,g!==null))for(var x=0;x<g.length;x++){var F=g[x],D=F.getSnapshot;F=F.value;try{if(!Ie(D(),F))return!1}catch{return!1}}}if(g=c.child,c.subtreeFlags&16384&&g!==null)g.return=c,c=g;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function al(s,c){for(c&=~xh,c&=~hf,s.suspendedLanes|=c,s.pingedLanes&=~c,s=s.expirationTimes;0<c;){var g=31-Pn(c),x=1<<g;s[g]=-1,c&=~x}}function g_(s){if((pr&6)!==0)throw Error(r(327));wc();var c=$l(s,0);if((c&1)===0)return La(s,Sr()),null;var g=Ph(s,c);if(s.tag!==0&&g===2){var x=bp(s);x!==0&&(c=x,g=Tg(s,x))}if(g===1)throw g=pf,au(s,0),al(s,c),La(s,Sr()),g;if(g===6)throw Error(r(345));return s.finishedWork=s.current.alternate,s.finishedLanes=c,ou(s,Fa,ps),La(s,Sr()),null}function Ig(s,c){var g=pr;pr|=1;try{return s(c)}finally{pr=g,pr===0&&(ru=Sr()+500,Hp&&Ks())}}function nu(s){rl!==null&&rl.tag===0&&(pr&6)===0&&wc();var c=pr;pr|=1;var g=Eo.transition,x=wr;try{if(Eo.transition=null,wr=1,s)return s()}finally{wr=x,Eo.transition=g,pr=c,(pr&6)===0&&Ks()}}function jg(){Ya=_c.current,Nr(_c)}function au(s,c){s.finishedWork=null,s.finishedLanes=0;var g=s.timeoutHandle;if(g!==-1&&(s.timeoutHandle=-1,Wd(g)),ln!==null)for(g=ln.return;g!==null;){var x=g;switch(Gl(x),x.tag){case 1:x=x.type.childContextTypes,x!=null&&Wp();break;case 3:Xs(),Nr(Aa),Nr(Zn),rh();break;case 5:th(x);break;case 4:Xs();break;case 13:Nr(Wr);break;case 19:Nr(Wr);break;case 10:Yp(x.type._context);break;case 22:case 23:jg()}g=g.return}if(kn=s,ln=s=Yo(s.current,null),Hn=Ya=c,wn=0,pf=null,xh=hf=el=0,Fa=mf=null,Xl!==null){for(c=0;c<Xl.length;c++)if(g=Xl[c],x=g.interleaved,x!==null){g.interleaved=null;var F=x.next,D=g.pending;if(D!==null){var H=D.next;D.next=F,x.next=H}g.pending=x}Xl=null}return s}function y_(s,c){do{var g=ln;try{if(os(),Jd.current=lh,cc){for(var x=Qr.memoizedState;x!==null;){var F=x.queue;F!==null&&(F.pending=null),x=x.next}cc=!1}if(Ys=0,_n=tn=Qr=null,Zd=!1,Jl=0,Og.current=null,g===null||g.return===null){wn=1,pf=c,ln=null;break}e:{var D=s,H=g.return,ae=g,fe=c;if(c=Hn,ae.flags|=32768,fe!==null&&typeof fe=="object"&&typeof fe.then=="function"){var je=fe,Xe=ae,Ze=Xe.tag;if((Xe.mode&1)===0&&(Ze===0||Ze===11||Ze===15)){var Ge=Xe.alternate;Ge?(Xe.updateQueue=Ge.updateQueue,Xe.memoizedState=Ge.memoizedState,Xe.lanes=Ge.lanes):(Xe.updateQueue=null,Xe.memoizedState=null)}var pt=i_(H);if(pt!==null){pt.flags&=-257,pg(pt,H,ae,D,c),pt.mode&1&&af(D,je,c),c=pt,fe=je;var xt=c.updateQueue;if(xt===null){var Rt=new Set;Rt.add(fe),c.updateQueue=Rt}else xt.add(fe);break e}else{if((c&1)===0){af(D,je,c),Mg();break e}fe=Error(r(426))}}else if(Br&&ae.mode&1){var rn=i_(H);if(rn!==null){(rn.flags&65536)===0&&(rn.flags|=256),pg(rn,H,ae,D,c),Si(tu(fe,ae));break e}}D=fe=tu(fe,ae),wn!==4&&(wn=2),mf===null?mf=[D]:mf.push(D),D=H;do{switch(D.tag){case 3:D.flags|=65536,c&=-c,D.lanes|=c;var Re=nf(D,fe,c);J0(D,Re);break e;case 1:ae=fe;var ye=D.type,ke=D.stateNode;if((D.flags&128)===0&&(typeof ye.getDerivedStateFromError=="function"||ke!==null&&typeof ke.componentDidCatch=="function"&&(tl===null||!tl.has(ke)))){D.flags|=65536,c&=-c,D.lanes|=c;var tt=ph(D,ae,c);J0(D,tt);break e}}D=D.return}while(D!==null)}w_(g)}catch(kt){c=kt,ln===g&&g!==null&&(ln=g=g.return);continue}break}while(!0)}function b_(){var s=wh.current;return wh.current=lh,s===null?lh:s}function Mg(){(wn===0||wn===3||wn===2)&&(wn=4),kn===null||(el&268435455)===0&&(hf&268435455)===0||al(kn,Hn)}function Ph(s,c){var g=pr;pr|=2;var x=b_();(kn!==s||Hn!==c)&&(ps=null,au(s,c));do try{WS();break}catch(F){y_(s,F)}while(!0);if(os(),pr=g,wh.current=x,ln!==null)throw Error(r(261));return kn=null,Hn=0,wn}function WS(){for(;ln!==null;)__(ln)}function HS(){for(;ln!==null&&!zn();)__(ln)}function __(s){var c=S_(s.alternate,s,Ya);s.memoizedProps=s.pendingProps,c===null?w_(s):ln=c,Og.current=null}function w_(s){var c=s;do{var g=c.alternate;if(s=c.return,(c.flags&32768)===0){if(g=zS(g,c,Ya),g!==null){ln=g;return}}else{if(g=qS(g,c),g!==null){g.flags&=32767,ln=g;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{wn=6,ln=null;return}}if(c=c.sibling,c!==null){ln=c;return}ln=c=s}while(c!==null);wn===0&&(wn=5)}function ou(s,c,g){var x=wr,F=Eo.transition;try{Eo.transition=null,wr=1,KS(s,c,g,x)}finally{Eo.transition=F,wr=x}return null}function KS(s,c,g,x){do wc();while(rl!==null);if((pr&6)!==0)throw Error(r(327));g=s.finishedWork;var F=s.finishedLanes;if(g===null)return null;if(s.finishedWork=null,s.finishedLanes=0,g===s.current)throw Error(r(177));s.callbackNode=null,s.callbackPriority=0;var D=g.lanes|g.childLanes;if(v0(s,D),s===kn&&(ln=kn=null,Hn=0),(g.subtreeFlags&2064)===0&&(g.flags&2064)===0||Ch||(Ch=!0,C_(cr,function(){return wc(),null})),D=(g.flags&15990)!==0,(g.subtreeFlags&15990)!==0||D){D=Eo.transition,Eo.transition=null;var H=wr;wr=1;var ae=pr;pr|=4,Og.current=null,US(s,g),Cg(g,s),$S(Vl),Sp=!!Ud,Vl=Ud=null,s.current=g,_h(g),Fl(),pr=ae,wr=H,Eo.transition=D}else s.current=g;if(Ch&&(Ch=!1,rl=s,ma=F),D=s.pendingLanes,D===0&&(tl=null),Yr(g.stateNode),La(s,Sr()),c!==null)for(x=s.onRecoverableError,g=0;g<c.length;g++)F=c[g],x(F.value,{componentStack:F.stack,digest:F.digest});if(Sh)throw Sh=!1,s=Rg,Rg=null,s;return(ma&1)!==0&&s.tag!==0&&wc(),D=s.pendingLanes,(D&1)!==0?s===kg?vf++:(vf=0,kg=s):vf=0,Ks(),null}function wc(){if(rl!==null){var s=Dl(ma),c=Eo.transition,g=wr;try{if(Eo.transition=null,wr=16>s?16:s,rl===null)var x=!1;else{if(s=rl,rl=null,ma=0,(pr&6)!==0)throw Error(r(331));var F=pr;for(pr|=4,vt=s.current;vt!==null;){var D=vt,H=D.child;if((vt.flags&16)!==0){var ae=D.deletions;if(ae!==null){for(var fe=0;fe<ae.length;fe++){var je=ae[fe];for(vt=je;vt!==null;){var Xe=vt;switch(Xe.tag){case 0:case 11:case 15:fs(8,Xe,D)}var Ze=Xe.child;if(Ze!==null)Ze.return=Xe,vt=Ze;else for(;vt!==null;){Xe=vt;var Ge=Xe.sibling,pt=Xe.return;if(f_(Xe),Xe===je){vt=null;break}if(Ge!==null){Ge.return=pt,vt=Ge;break}vt=pt}}}var xt=D.alternate;if(xt!==null){var Rt=xt.child;if(Rt!==null){xt.child=null;do{var rn=Rt.sibling;Rt.sibling=null,Rt=rn}while(Rt!==null)}}vt=D}}if((D.subtreeFlags&2064)!==0&&H!==null)H.return=D,vt=H;else e:for(;vt!==null;){if(D=vt,(D.flags&2048)!==0)switch(D.tag){case 0:case 11:case 15:fs(9,D,D.return)}var Re=D.sibling;if(Re!==null){Re.return=D.return,vt=Re;break e}vt=D.return}}var ye=s.current;for(vt=ye;vt!==null;){H=vt;var ke=H.child;if((H.subtreeFlags&2064)!==0&&ke!==null)ke.return=H,vt=ke;else e:for(H=ye;vt!==null;){if(ae=vt,(ae.flags&2048)!==0)try{switch(ae.tag){case 0:case 11:case 15:ff(9,ae)}}catch(kt){Xr(ae,ae.return,kt)}if(ae===H){vt=null;break e}var tt=ae.sibling;if(tt!==null){tt.return=ae.return,vt=tt;break e}vt=ae.return}}if(pr=F,Ks(),Ra&&typeof Ra.onPostCommitFiberRoot=="function")try{Ra.onPostCommitFiberRoot(Ji,s)}catch{}x=!0}return x}finally{wr=g,Eo.transition=c}}return!1}function Rh(s,c,g){c=tu(g,c),c=nf(s,c,1),s=xo(s,c,1),c=va(),s!==null&&(Td(s,1,c),La(s,c))}function Xr(s,c,g){if(s.tag===3)Rh(s,s,g);else for(;c!==null;){if(c.tag===3){Rh(c,s,g);break}else if(c.tag===1){var x=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(tl===null||!tl.has(x))){s=tu(g,s),s=ph(c,s,1),c=xo(c,s,1),s=va(),c!==null&&(Td(c,1,s),La(c,s));break}}c=c.return}}function GS(s,c,g){var x=s.pingCache;x!==null&&x.delete(c),c=va(),s.pingedLanes|=s.suspendedLanes&g,kn===s&&(Hn&g)===g&&(wn===4||wn===3&&(Hn&130023424)===Hn&&500>Sr()-Pg?au(s,0):xh|=g),La(s,c)}function x_(s,c){c===0&&((s.mode&1)===0?c=1:(c=yp,yp<<=1,(yp&130023424)===0&&(yp=4194304)));var g=va();s=is(s,c),s!==null&&(Td(s,c,g),La(s,g))}function QS(s){var c=s.memoizedState,g=0;c!==null&&(g=c.retryLane),x_(s,g)}function XS(s,c){var g=0;switch(s.tag){case 13:var x=s.stateNode,F=s.memoizedState;F!==null&&(g=F.retryLane);break;case 19:x=s.stateNode;break;default:throw Error(r(314))}x!==null&&x.delete(c),x_(s,g)}var S_;S_=function(s,c,g){if(s!==null)if(s.memoizedProps!==c.pendingProps||Aa.current)pa=!0;else{if((s.lanes&g)===0&&(c.flags&128)===0)return pa=!1,u_(s,c,g);pa=(s.flags&131072)!==0}else pa=!1,Br&&(c.flags&1048576)!==0&&K0(c,Gp,c.index);switch(c.lanes=0,c.tag){case 2:var x=c.type;vh(s,c),s=c.pendingProps;var F=oc(c,Zn.current);Qs(c,g),F=Zl(null,c,x,s,F,g);var D=nh();return c.flags|=1,typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,Ia(x)?(D=!0,go(c)):D=!1,c.memoizedState=F.state!==null&&F.state!==void 0?F.state:null,Zp(c),F.updater=dh,c.stateNode=F,F._reactInternals=c,fg(c,x,s,g),c=bg(null,c,x,!0,D,g)):(c.tag=0,Br&&D&&Hd(c),Un(null,c,F,g),c=c.child),c;case 16:x=c.elementType;e:{switch(vh(s,c),s=c.pendingProps,F=x._init,x=F(x._payload),c.type=x,F=c.tag=JS(x),s=Co(x,s),F){case 0:c=gg(null,c,x,s,g);break e;case 1:c=yg(null,c,x,s,g);break e;case 11:c=s_(null,c,x,s,g);break e;case 14:c=hg(null,c,x,Co(x.type,s),g);break e}throw Error(r(306,x,""))}return c;case 0:return x=c.type,F=c.pendingProps,F=c.elementType===x?F:Co(x,F),gg(s,c,x,F,g);case 1:return x=c.type,F=c.pendingProps,F=c.elementType===x?F:Co(x,F),yg(s,c,x,F,g);case 3:e:{if(l_(c),s===null)throw Error(r(387));x=c.pendingProps,D=c.memoizedState,F=D.element,Y0(s,c),lc(c,x,null,g);var H=c.memoizedState;if(x=H.element,D.isDehydrated)if(D={element:x,isDehydrated:!1,cache:H.cache,pendingSuspenseBoundaries:H.pendingSuspenseBoundaries,transitions:H.transitions},c.updateQueue.baseState=D,c.memoizedState=D,c.flags&256){F=tu(Error(r(423)),c),c=Ri(s,c,x,g,F);break e}else if(x!==F){F=tu(Error(r(424)),c),c=Ri(s,c,x,g,F);break e}else for(Ga=Vs(c.stateNode.containerInfo.firstChild),ta=c,Br=!0,Vo=null,g=Xp(c,null,x,g),c.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling;else{if(xi(),x===F){c=Ho(s,c,g);break e}Un(s,c,x,g)}c=c.child}return c;case 5:return Zv(c),s===null&&ja(c),x=c.type,F=c.pendingProps,D=s!==null?s.memoizedProps:null,H=F.children,Vd(x,F)?H=null:D!==null&&Vd(x,D)&&(c.flags|=32),vg(s,c),Un(s,c,H,g),c.child;case 6:return s===null&&ja(c),null;case 13:return mh(s,c,g);case 4:return Jv(c,c.stateNode.containerInfo),x=c.pendingProps,s===null?c.child=Jr(c,null,x,g):Un(s,c,x,g),c.child;case 11:return x=c.type,F=c.pendingProps,F=c.elementType===x?F:Co(x,F),s_(s,c,x,F,g);case 7:return Un(s,c,c.pendingProps,g),c.child;case 8:return Un(s,c,c.pendingProps.children,g),c.child;case 12:return Un(s,c,c.pendingProps.children,g),c.child;case 10:e:{if(x=c.type._context,F=c.pendingProps,D=c.memoizedProps,H=F.value,Mr(Qd,x._currentValue),x._currentValue=H,D!==null)if(Ie(D.value,H)){if(D.children===F.children&&!Aa.current){c=Ho(s,c,g);break e}}else for(D=c.child,D!==null&&(D.return=c);D!==null;){var ae=D.dependencies;if(ae!==null){H=D.child;for(var fe=ae.firstContext;fe!==null;){if(fe.context===x){if(D.tag===1){fe=ss(-1,g&-g),fe.tag=2;var je=D.updateQueue;if(je!==null){je=je.shared;var Xe=je.pending;Xe===null?fe.next=fe:(fe.next=Xe.next,Xe.next=fe),je.pending=fe}}D.lanes|=g,fe=D.alternate,fe!==null&&(fe.lanes|=g),qn(D.return,g,c),ae.lanes|=g;break}fe=fe.next}}else if(D.tag===10)H=D.type===c.type?null:D.child;else if(D.tag===18){if(H=D.return,H===null)throw Error(r(341));H.lanes|=g,ae=H.alternate,ae!==null&&(ae.lanes|=g),qn(H,g,c),H=D.sibling}else H=D.child;if(H!==null)H.return=D;else for(H=D;H!==null;){if(H===c){H=null;break}if(D=H.sibling,D!==null){D.return=H.return,H=D;break}H=H.return}D=H}Un(s,c,F.children,g),c=c.child}return c;case 9:return F=c.type,x=c.pendingProps.children,Qs(c,g),F=_o(F),x=x(F),c.flags|=1,Un(s,c,x,g),c.child;case 14:return x=c.type,F=Co(x,c.pendingProps),F=Co(x.type,F),hg(s,c,x,F,g);case 15:return Pi(s,c,c.type,c.pendingProps,g);case 17:return x=c.type,F=c.pendingProps,F=c.elementType===x?F:Co(x,F),vh(s,c),c.tag=1,Ia(x)?(s=!0,go(c)):s=!1,Qs(c,g),eu(c,x,F),fg(c,x,F,g),bg(null,c,x,!0,s,g);case 19:return Js(s,c,g);case 22:return mg(s,c,g)}throw Error(r(156,c.tag))};function C_(s,c){return hi(s,c)}function YS(s,c,g,x){this.tag=s,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oo(s,c,g,x){return new YS(s,c,g,x)}function kh(s){return s=s.prototype,!(!s||!s.isReactComponent)}function JS(s){if(typeof s=="function")return kh(s)?1:0;if(s!=null){if(s=s.$$typeof,s===B)return 11;if(s===W)return 14}return 2}function Yo(s,c){var g=s.alternate;return g===null?(g=Oo(s.tag,c,s.key,s.mode),g.elementType=s.elementType,g.type=s.type,g.stateNode=s.stateNode,g.alternate=s,s.alternate=g):(g.pendingProps=c,g.type=s.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=s.flags&14680064,g.childLanes=s.childLanes,g.lanes=s.lanes,g.child=s.child,g.memoizedProps=s.memoizedProps,g.memoizedState=s.memoizedState,g.updateQueue=s.updateQueue,c=s.dependencies,g.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},g.sibling=s.sibling,g.index=s.index,g.ref=s.ref,g}function Th(s,c,g,x,F,D){var H=2;if(x=s,typeof s=="function")kh(s)&&(H=1);else if(typeof s=="string")H=5;else e:switch(s){case L:return iu(g.children,F,D,c);case j:H=8,F|=8;break;case M:return s=Oo(12,g,c,F|2),s.elementType=M,s.lanes=D,s;case z:return s=Oo(13,g,c,F),s.elementType=z,s.lanes=D,s;case U:return s=Oo(19,g,c,F),s.elementType=U,s.lanes=D,s;case V:return Ah(g,F,D,c);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case k:H=10;break e;case $:H=9;break e;case B:H=11;break e;case W:H=14;break e;case Q:H=16,x=null;break e}throw Error(r(130,s==null?s:typeof s,""))}return c=Oo(H,g,c,F),c.elementType=s,c.type=x,c.lanes=D,c}function iu(s,c,g,x){return s=Oo(7,s,x,c),s.lanes=g,s}function Ah(s,c,g,x){return s=Oo(22,s,x,c),s.elementType=V,s.lanes=g,s.stateNode={isHidden:!1},s}function Fg(s,c,g){return s=Oo(6,s,null,c),s.lanes=g,s}function Lg(s,c,g){return c=Oo(4,s.children!==null?s.children:[],s.key,c),c.lanes=g,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}function ZS(s,c,g,x,F){this.tag=c,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=kd(0),this.expirationTimes=kd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kd(0),this.identifierPrefix=x,this.onRecoverableError=F,this.mutableSourceEagerHydrationData=null}function $g(s,c,g,x,F,D,H,ae,fe){return s=new ZS(s,c,g,ae,fe),c===1?(c=1,D===!0&&(c|=8)):c=0,D=Oo(3,null,null,c),s.current=D,D.stateNode=s,D.memoizedState={element:x,isDehydrated:g,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zp(D),s}function eC(s,c,g){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:x==null?null:""+x,children:s,containerInfo:c,implementation:g}}function E_(s){if(!s)return Hs;s=s._reactInternals;e:{if(ur(s)!==s||s.tag!==1)throw Error(r(170));var c=s;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(Ia(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(c!==null);throw Error(r(171))}if(s.tag===1){var g=s.type;if(Ia(g))return V0(s,g,c)}return c}function O_(s,c,g,x,F,D,H,ae,fe){return s=$g(g,x,!0,s,F,D,H,ae,fe),s.context=E_(null),g=s.current,x=va(),F=nl(g),D=ss(x,F),D.callback=c??null,xo(g,D,F),s.current.lanes=F,Td(s,F,x),La(s,x),s}function Ih(s,c,g,x){var F=c.current,D=va(),H=nl(F);return g=E_(g),c.context===null?c.context=g:c.pendingContext=g,c=ss(D,H),c.payload={element:s},x=x===void 0?null:x,x!==null&&(c.callback=x),s=xo(F,c,H),s!==null&&(Xo(s,F,H,D),eh(s,F,H)),H}function jh(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function P_(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var g=s.retryLane;s.retryLane=g!==0&&g<c?g:c}}function Dg(s,c){P_(s,c),(s=s.alternate)&&P_(s,c)}function tC(){return null}var R_=typeof reportError=="function"?reportError:function(s){console.error(s)};function Mh(s){this._internalRoot=s}yf.prototype.render=Mh.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(r(409));Ih(s,c,null,null)},yf.prototype.unmount=Mh.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;nu(function(){Ih(null,s,null,null)}),c[Ka]=null}};function yf(s){this._internalRoot=s}yf.prototype.unstable_scheduleHydration=function(s){if(s){var c=Ev();s={blockedOn:null,target:s,priority:c};for(var g=0;g<Ds.length&&c!==0&&c<Ds[g].priority;g++);Ds.splice(g,0,s),g===0&&b0(s)}};function Ng(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Fh(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function k_(){}function rC(s,c,g,x,F){if(F){if(typeof x=="function"){var D=x;x=function(){var je=jh(H);D.call(je)}}var H=O_(c,x,s,0,null,!1,!1,"",k_);return s._reactRootContainer=H,s[Ka]=H.current,qs(s.nodeType===8?s.parentNode:s),nu(),H}for(;F=s.lastChild;)s.removeChild(F);if(typeof x=="function"){var ae=x;x=function(){var je=jh(fe);ae.call(je)}}var fe=$g(s,0,!1,null,null,!1,!1,"",k_);return s._reactRootContainer=fe,s[Ka]=fe.current,qs(s.nodeType===8?s.parentNode:s),nu(function(){Ih(c,fe,g,x)}),fe}function su(s,c,g,x,F){var D=g._reactRootContainer;if(D){var H=D;if(typeof F=="function"){var ae=F;F=function(){var fe=jh(H);ae.call(fe)}}Ih(c,H,s,F)}else H=rC(g,c,s,F,x);return jh(H)}Cv=function(s){switch(s.tag){case 3:var c=s.stateNode;if(c.current.memoizedState.isDehydrated){var g=zu(c.pendingLanes);g!==0&&(Ad(c,g|1),La(c,Sr()),(pr&6)===0&&(ru=Sr()+500,Ks()))}break;case 13:nu(function(){var x=is(s,1);if(x!==null){var F=va();Xo(x,s,1,F)}}),Dg(s,1)}},_p=function(s){if(s.tag===13){var c=is(s,134217728);if(c!==null){var g=va();Xo(c,s,134217728,g)}Dg(s,134217728)}},g0=function(s){if(s.tag===13){var c=nl(s),g=is(s,c);if(g!==null){var x=va();Xo(g,s,c,x)}Dg(s,c)}},Ev=function(){return wr},Ov=function(s,c){var g=wr;try{return wr=s,c()}finally{wr=g}},Xi=function(s,c,g){switch(c){case"input":if(qe(s,g),c=g.name,g.type==="radio"&&c!=null){for(g=s;g.parentNode;)g=g.parentNode;for(g=g.querySelectorAll("input[name="+JSON.stringify(""+c)+'][type="radio"]'),c=0;c<g.length;c++){var x=g[c];if(x!==s&&x.form===s.form){var F=Vp(x);if(!F)throw Error(r(90));Te(x),qe(x,F)}}}break;case"textarea":Ne(s,g);break;case"select":c=g.value,c!=null&&Se(s,!!g.multiple,c,!1)}},Is=Ig,Ht=nu;var nC={usingClientEntryPoint:!1,Events:[Jn,Yt,Vp,Bo,zo,Ig]},bf={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},aC={bundleType:bf.bundleType,version:bf.version,rendererPackageName:bf.rendererPackageName,rendererConfig:bf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=ir(s),s===null?null:s.stateNode},findFiberByHostInstance:bf.findFiberByHostInstance||tC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lh.isDisabled&&Lh.supportsFiber)try{Ji=Lh.inject(aC),Ra=Lh}catch{}}return To.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nC,To.createPortal=function(s,c){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ng(c))throw Error(r(200));return eC(s,c,null,g)},To.createRoot=function(s,c){if(!Ng(s))throw Error(r(299));var g=!1,x="",F=R_;return c!=null&&(c.unstable_strictMode===!0&&(g=!0),c.identifierPrefix!==void 0&&(x=c.identifierPrefix),c.onRecoverableError!==void 0&&(F=c.onRecoverableError)),c=$g(s,1,!1,null,null,g,!1,x,F),s[Ka]=c.current,qs(s.nodeType===8?s.parentNode:s),new Mh(c)},To.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=ir(c),s=s===null?null:s.stateNode,s},To.flushSync=function(s){return nu(s)},To.hydrate=function(s,c,g){if(!Fh(c))throw Error(r(200));return su(null,s,c,!0,g)},To.hydrateRoot=function(s,c,g){if(!Ng(s))throw Error(r(405));var x=g!=null&&g.hydratedSources||null,F=!1,D="",H=R_;if(g!=null&&(g.unstable_strictMode===!0&&(F=!0),g.identifierPrefix!==void 0&&(D=g.identifierPrefix),g.onRecoverableError!==void 0&&(H=g.onRecoverableError)),c=O_(c,null,s,1,g??null,F,!1,D,H),s[Ka]=c.current,qs(s),x)for(s=0;s<x.length;s++)g=x[s],F=g._getVersion,F=F(g._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[g,F]:c.mutableSourceEagerHydrationData.push(g,F);return new yf(c)},To.render=function(s,c,g){if(!Fh(c))throw Error(r(200));return su(null,s,c,!1,g)},To.unmountComponentAtNode=function(s){if(!Fh(s))throw Error(r(40));return s._reactRootContainer?(nu(function(){su(null,null,s,!1,function(){s._reactRootContainer=null,s[Ka]=null})}),!0):!1},To.unstable_batchedUpdates=Ig,To.unstable_renderSubtreeIntoContainer=function(s,c,g,x){if(!Fh(g))throw Error(r(200));if(s==null||s._reactInternals===void 0)throw Error(r(38));return su(s,c,g,!1,x)},To.version="18.3.1-next-f1338f8080-20240426",To}var rM;function $5(){if(rM)return _C.exports;rM=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),_C.exports=lH(),_C.exports}var nM;function uH(){if(nM)return j_;nM=1;var e=$5();return j_.createRoot=e.createRoot,j_.hydrateRoot=e.hydrateRoot,j_}var cH=uH(),oy={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/var dH=oy.exports,aM;function fH(){return aM||(aM=1,function(e,t){(function(){var r,n="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",u="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",l=500,h="__lodash_placeholder__",v=1,y=2,b=4,_=1,w=2,S=1,A=2,R=4,C=8,O=16,T=32,E=64,L=128,j=256,M=512,k=30,$="...",B=800,z=16,U=1,W=2,Q=3,V=1/0,K=9007199254740991,X=17976931348623157e292,te=NaN,G=4294967295,J=G-1,de=G>>>1,ce=[["ary",L],["bind",S],["bindKey",A],["curry",C],["curryRight",O],["flip",M],["partial",T],["partialRight",E],["rearg",j]],ue="[object Arguments]",be="[object Array]",Pe="[object AsyncFunction]",Ee="[object Boolean]",ge="[object Date]",xe="[object DOMException]",Oe="[object Error]",Te="[object Function]",Me="[object GeneratorFunction]",Fe="[object Map]",$e="[object Number]",et="[object Null]",qe="[object Object]",re="[object Promise]",oe="[object Proxy]",pe="[object RegExp]",Se="[object Set]",ne="[object String]",we="[object Symbol]",Ne="[object Undefined]",De="[object WeakMap]",ht="[object WeakSet]",lt="[object ArrayBuffer]",bt="[object DataView]",Pt="[object Float32Array]",Tt="[object Float64Array]",Je="[object Int8Array]",Dt="[object Int16Array]",Lt="[object Int32Array]",Ct="[object Uint8Array]",ct="[object Uint8ClampedArray]",Kt="[object Uint16Array]",lr="[object Uint32Array]",en=/\b__p \+= '';/g,Bn=/\b(__p \+=) '' \+/g,Xi=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pa=/&(?:amp|lt|gt|quot|#39);/g,ia=/[&<>"']/g,Yi=RegExp(Pa.source),Bo=RegExp(ia.source),zo=/<%-([\s\S]+?)%>/g,Is=/<%([\s\S]+?)%>/g,Ht=/<%=([\s\S]+?)%>/g,le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ie=/^\w*$/,me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Ke=RegExp(Le.source),at=/^\s+/,Et=/\s/,ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ot=/\{\n\/\* \[wrapped with (.+)\] \*/,At=/,? & /,qt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ft=/[()=,{}\[\]\/\s]/,Xt=/\\(\\)?/g,ur=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Gr=/\w*$/,bn=/^[-+]0x[0-9a-f]+$/i,sa=/^0b[01]+$/i,ir=/^\[object .+?Constructor\]$/,js=/^0o[0-7]+$/i,hi=/^(?:0|[1-9]\d*)$/,Ms=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zn=/($^)/,Fl=/['\n\r\u2028\u2029\\]/g,Sr="\\ud800-\\udfff",Pd="\\u0300-\\u036f",qo="\\ufe20-\\ufe2f",Ll="\\u20d0-\\u20ff",cr=Pd+qo+Ll,la="\\u2700-\\u27bf",ho="a-z\\xdf-\\xf6\\xf8-\\xff",Ji="\\xac\\xb1\\xd7\\xf7",Ra="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Yr="\\u2000-\\u206f",Pn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rd="A-Z\\xc0-\\xd6\\xd8-\\xde",gp="\\ufe0e\\ufe0f",h0=Ji+Ra+Yr+Pn,Bu="[']",yp="["+Sr+"]",zu="["+h0+"]",$l="["+cr+"]",m0="\\d+",_S="["+la+"]",bp="["+ho+"]",Sv="[^"+Sr+h0+m0+la+ho+Rd+"]",kd="\\ud83c[\\udffb-\\udfff]",Td="(?:"+$l+"|"+kd+")",v0="[^"+Sr+"]",Ad="(?:\\ud83c[\\udde6-\\uddff]){2}",wr="[\\ud800-\\udbff][\\udc00-\\udfff]",Dl="["+Rd+"]",Cv="\\u200d",_p="(?:"+bp+"|"+Sv+")",g0="(?:"+Dl+"|"+Sv+")",Ev="(?:"+Bu+"(?:d|ll|m|re|s|t|ve))?",Ov="(?:"+Bu+"(?:D|LL|M|RE|S|T|VE))?",wp=Td+"?",Id="["+gp+"]?",Fs="(?:"+Cv+"(?:"+[v0,Ad,wr].join("|")+")"+Id+wp+")*",Ls="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$s="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",qu=Id+wp+Fs,jd="(?:"+[_S,Ad,wr].join("|")+")"+qu,Ds="(?:"+[v0+$l+"?",$l,Ad,wr,yp].join("|")+")",wS=RegExp(Bu,"g"),y0=RegExp($l,"g"),Nl=RegExp(kd+"(?="+kd+")|"+Ds+qu,"g"),xS=RegExp([Dl+"?"+bp+"+"+Ev+"(?="+[zu,Dl,"$"].join("|")+")",g0+"+"+Ov+"(?="+[zu,Dl+_p,"$"].join("|")+")",Dl+"?"+_p+"+"+Ev,Dl+"+"+Ov,$s,Ls,m0,jd].join("|"),"g"),b0=RegExp("["+Cv+Sr+cr+gp+"]"),xp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_0=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],SS=-1,Er={};Er[Pt]=Er[Tt]=Er[Je]=Er[Dt]=Er[Lt]=Er[Ct]=Er[ct]=Er[Kt]=Er[lr]=!0,Er[ue]=Er[be]=Er[lt]=Er[Ee]=Er[bt]=Er[ge]=Er[Oe]=Er[Te]=Er[Fe]=Er[$e]=Er[qe]=Er[pe]=Er[Se]=Er[ne]=Er[De]=!1;var Cr={};Cr[ue]=Cr[be]=Cr[lt]=Cr[bt]=Cr[Ee]=Cr[ge]=Cr[Pt]=Cr[Tt]=Cr[Je]=Cr[Dt]=Cr[Lt]=Cr[Fe]=Cr[$e]=Cr[qe]=Cr[pe]=Cr[Se]=Cr[ne]=Cr[we]=Cr[Ct]=Cr[ct]=Cr[Kt]=Cr[lr]=!0,Cr[Oe]=Cr[Te]=Cr[De]=!1;var Uu={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Sp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},CS={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ES={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pv=parseFloat,Cp=parseInt,Ep=typeof Ou=="object"&&Ou&&Ou.Object===Object&&Ou,w0=typeof self=="object"&&self&&self.Object===Object&&self,Vr=Ep||w0||Function("return this")(),Md=t&&!t.nodeType&&t,mi=Md&&!0&&e&&!e.nodeType&&e,Rv=mi&&mi.exports===Md,Vu=Rv&&Ep.process,ua=function(){try{var _e=mi&&mi.require&&mi.require("util").types;return _e||Vu&&Vu.binding&&Vu.binding("util")}catch{}}(),kv=ua&&ua.isArrayBuffer,ka=ua&&ua.isDate,Bl=ua&&ua.isMap,Op=ua&&ua.isRegExp,Wu=ua&&ua.isSet,x0=ua&&ua.isTypedArray;function ca(_e,Be,Ie){switch(Ie.length){case 0:return _e.call(Be);case 1:return _e.call(Be,Ie[0]);case 2:return _e.call(Be,Ie[0],Ie[1]);case 3:return _e.call(Be,Ie[0],Ie[1],Ie[2])}return _e.apply(Be,Ie)}function Tv(_e,Be,Ie,ft){for(var Gt=-1,yr=_e==null?0:_e.length;++Gt<yr;){var on=_e[Gt];Be(ft,on,Ie(on),_e)}return ft}function Xn(_e,Be){for(var Ie=-1,ft=_e==null?0:_e.length;++Ie<ft&&Be(_e[Ie],Ie,_e)!==!1;);return _e}function Pp(_e,Be){for(var Ie=_e==null?0:_e.length;Ie--&&Be(_e[Ie],Ie,_e)!==!1;);return _e}function Av(_e,Be){for(var Ie=-1,ft=_e==null?0:_e.length;++Ie<ft;)if(!Be(_e[Ie],Ie,_e))return!1;return!0}function Ns(_e,Be){for(var Ie=-1,ft=_e==null?0:_e.length,Gt=0,yr=[];++Ie<ft;){var on=_e[Ie];Be(on,Ie,_e)&&(yr[Gt++]=on)}return yr}function Rp(_e,Be){var Ie=_e==null?0:_e.length;return!!Ie&&Hu(_e,Be,0)>-1}function Iv(_e,Be,Ie){for(var ft=-1,Gt=_e==null?0:_e.length;++ft<Gt;)if(Ie(Be,_e[ft]))return!0;return!1}function jr(_e,Be){for(var Ie=-1,ft=_e==null?0:_e.length,Gt=Array(ft);++Ie<ft;)Gt[Ie]=Be(_e[Ie],Ie,_e);return Gt}function Bs(_e,Be){for(var Ie=-1,ft=Be.length,Gt=_e.length;++Ie<ft;)_e[Gt+Ie]=Be[Ie];return _e}function jv(_e,Be,Ie,ft){var Gt=-1,yr=_e==null?0:_e.length;for(ft&&yr&&(Ie=_e[++Gt]);++Gt<yr;)Ie=Be(Ie,_e[Gt],Gt,_e);return Ie}function OS(_e,Be,Ie,ft){var Gt=_e==null?0:_e.length;for(ft&&Gt&&(Ie=_e[--Gt]);Gt--;)Ie=Be(Ie,_e[Gt],Gt,_e);return Ie}function Mv(_e,Be){for(var Ie=-1,ft=_e==null?0:_e.length;++Ie<ft;)if(Be(_e[Ie],Ie,_e))return!0;return!1}var PS=Lv("length");function S0(_e){return _e.split("")}function RS(_e){return _e.match(qt)||[]}function C0(_e,Be,Ie){var ft;return Ie(_e,function(Gt,yr,on){if(Be(Gt,yr,on))return ft=yr,!1}),ft}function kp(_e,Be,Ie,ft){for(var Gt=_e.length,yr=Ie+(ft?1:-1);ft?yr--:++yr<Gt;)if(Be(_e[yr],yr,_e))return yr;return-1}function Hu(_e,Be,Ie){return Be===Be?Ip(_e,Be,Ie):kp(_e,E0,Ie)}function Fv(_e,Be,Ie,ft){for(var Gt=Ie-1,yr=_e.length;++Gt<yr;)if(ft(_e[Gt],Be))return Gt;return-1}function E0(_e){return _e!==_e}function O0(_e,Be){var Ie=_e==null?0:_e.length;return Ie?$v(_e,Be)/Ie:te}function Lv(_e){return function(Be){return Be==null?r:Be[_e]}}function Tp(_e){return function(Be){return _e==null?r:_e[Be]}}function P0(_e,Be,Ie,ft,Gt){return Gt(_e,function(yr,on,Rr){Ie=ft?(ft=!1,yr):Be(Ie,yr,on,Rr)}),Ie}function kS(_e,Be){var Ie=_e.length;for(_e.sort(Be);Ie--;)_e[Ie]=_e[Ie].value;return _e}function $v(_e,Be){for(var Ie,ft=-1,Gt=_e.length;++ft<Gt;){var yr=Be(_e[ft]);yr!==r&&(Ie=Ie===r?yr:Ie+yr)}return Ie}function Dv(_e,Be){for(var Ie=-1,ft=Array(_e);++Ie<_e;)ft[Ie]=Be(Ie);return ft}function TS(_e,Be){return jr(Be,function(Ie){return[Ie,_e[Ie]]})}function R0(_e){return _e&&_e.slice(0,jp(_e)+1).replace(at,"")}function Wa(_e){return function(Be){return _e(Be)}}function Fd(_e,Be){return jr(Be,function(Ie){return _e[Ie]})}function Zi(_e,Be){return _e.has(Be)}function k0(_e,Be){for(var Ie=-1,ft=_e.length;++Ie<ft&&Hu(Be,_e[Ie],0)>-1;);return Ie}function Nv(_e,Be){for(var Ie=_e.length;Ie--&&Hu(Be,_e[Ie],0)>-1;);return Ie}function T0(_e,Be){for(var Ie=_e.length,ft=0;Ie--;)_e[Ie]===Be&&++ft;return ft}var A0=Tp(Uu),I0=Tp(Sp);function j0(_e){return"\\"+ES[_e]}function Ku(_e,Be){return _e==null?r:_e[Be]}function Gu(_e){return b0.test(_e)}function AS(_e){return xp.test(_e)}function IS(_e){for(var Be,Ie=[];!(Be=_e.next()).done;)Ie.push(Be.value);return Ie}function Ap(_e){var Be=-1,Ie=Array(_e.size);return _e.forEach(function(ft,Gt){Ie[++Be]=[Gt,ft]}),Ie}function Bv(_e,Be){return function(Ie){return _e(Be(Ie))}}function mo(_e,Be){for(var Ie=-1,ft=_e.length,Gt=0,yr=[];++Ie<ft;){var on=_e[Ie];(on===Be||on===h)&&(_e[Ie]=h,yr[Gt++]=Ie)}return yr}function zs(_e){var Be=-1,Ie=Array(_e.size);return _e.forEach(function(ft){Ie[++Be]=ft}),Ie}function jS(_e){var Be=-1,Ie=Array(_e.size);return _e.forEach(function(ft){Ie[++Be]=[ft,ft]}),Ie}function Ip(_e,Be,Ie){for(var ft=Ie-1,Gt=_e.length;++ft<Gt;)if(_e[ft]===Be)return ft;return-1}function MS(_e,Be,Ie){for(var ft=Ie+1;ft--;)if(_e[ft]===Be)return ft;return ft}function zl(_e){return Gu(_e)?F0(_e):PS(_e)}function Ha(_e){return Gu(_e)?L0(_e):S0(_e)}function jp(_e){for(var Be=_e.length;Be--&&Et.test(_e.charAt(Be)););return Be}var M0=Tp(CS);function F0(_e){for(var Be=Nl.lastIndex=0;Nl.test(_e);)++Be;return Be}function L0(_e){return _e.match(Nl)||[]}function FS(_e){return _e.match(xS)||[]}var LS=function _e(Be){Be=Be==null?Vr:Qu.defaults(Vr.Object(),Be,Qu.pick(Vr,_0));var Ie=Be.Array,ft=Be.Date,Gt=Be.Error,yr=Be.Function,on=Be.Math,Rr=Be.Object,Ld=Be.RegExp,$S=Be.String,vo=Be.TypeError,es=Ie.prototype,zv=yr.prototype,vi=Rr.prototype,Xu=Be["__core-js_shared__"],$d=zv.toString,br=vi.hasOwnProperty,Yu=0,Mp=function(){var f=/[^.]+$/.exec(Xu&&Xu.keys&&Xu.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""}(),Dd=vi.toString,Fp=$d.call(Rr),$0=Vr._,D0=Ld("^"+$d.call(br).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nd=Rv?Be.Buffer:r,ts=Be.Symbol,Bd=Be.Uint8Array,qv=Nd?Nd.allocUnsafe:r,Uo=Bv(Rr.getPrototypeOf,Rr),Lp=Rr.create,$p=vi.propertyIsEnumerable,Dp=es.splice,N0=ts?ts.isConcatSpreadable:r,rs=ts?ts.iterator:r,ql=ts?ts.toStringTag:r,zd=function(){try{var f=Js(Rr,"defineProperty");return f({},"",{}),f}catch{}}(),B0=Be.clearTimeout!==Vr.clearTimeout&&Be.clearTimeout,Dr=ft&&ft.now!==Vr.Date.now&&ft.now,Uv=Be.setTimeout!==Vr.setTimeout&&Be.setTimeout,Ul=on.ceil,qs=on.floor,Np=Rr.getOwnPropertySymbols,Vv=Nd?Nd.isBuffer:r,Ju=Be.isFinite,Bp=es.join,Zu=Bv(Rr.keys,Rr),sn=on.max,Yn=on.min,DS=ft.now,z0=Be.parseInt,qd=on.random,zp=es.reverse,Ud=Js(Be,"DataView"),Vl=Js(Be,"Map"),Vd=Js(Be,"Promise"),Us=Js(Be,"Set"),Wd=Js(Be,"WeakMap"),ec=Js(Rr,"create"),qp=Wd&&new Wd,tc={},Wv=Zs(Ud),Vs=Zs(Vl),q0=Zs(Vd),rc=Zs(Us),gi=Zs(Wd),Ws=ts?ts.prototype:r,Ka=Ws?Ws.valueOf:r,Up=Ws?Ws.toString:r;function Z(f){if(un(f)&&!Jt(f)&&!(f instanceof Yt)){if(f instanceof Jn)return f;if(br.call(f,"__wrapped__"))return v_(f)}return new Jn(f)}var nc=function(){function f(){}return function(m){if(!nn(m))return{};if(Lp)return Lp(m);f.prototype=m;var P=new f;return f.prototype=r,P}}();function yi(){}function Jn(f,m){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!m,this.__index__=0,this.__values__=r}Z.templateSettings={escape:zo,evaluate:Is,interpolate:Ht,variable:"",imports:{_:Z}},Z.prototype=yi.prototype,Z.prototype.constructor=Z,Jn.prototype=nc(yi.prototype),Jn.prototype.constructor=Jn;function Yt(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function Vp(){var f=new Yt(this.__wrapped__);return f.__actions__=fa(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=fa(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=fa(this.__views__),f}function Hv(){if(this.__filtered__){var f=new Yt(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}function ac(){var f=this.__wrapped__.value(),m=this.__dir__,P=Jt(f),N=m<0,q=P?f.length:0,ee=_g(0,q,this.__views__),se=ee.start,he=ee.end,Ce=he-se,Ve=N?he:se-1,We=this.__iteratees__,Ye=We.length,dt=0,It=Yn(Ce,this.__takeCount__);if(!P||!N&&q==Ce&&It==Ce)return fc(f,this.__actions__);var Vt=[];e:for(;Ce--&&dt<It;){Ve+=m;for(var nr=-1,Wt=f[Ve];++nr<Ye;){var sr=We[nr],hr=sr.iteratee,Zo=sr.type,Ja=hr(Wt);if(Zo==W)Wt=Ja;else if(!Ja){if(Zo==U)continue e;break e}}Vt[dt++]=Wt}return Vt}Yt.prototype=nc(yi.prototype),Yt.prototype.constructor=Yt;function Ta(f){var m=-1,P=f==null?0:f.length;for(this.clear();++m<P;){var N=f[m];this.set(N[0],N[1])}}function Nr(){this.__data__=ec?ec(null):{},this.size=0}function Mr(f){var m=this.has(f)&&delete this.__data__[f];return this.size-=m?1:0,m}function Hs(f){var m=this.__data__;if(ec){var P=m[f];return P===d?r:P}return br.call(m,f)?m[f]:r}function Zn(f){var m=this.__data__;return ec?m[f]!==r:br.call(m,f)}function Aa(f,m){var P=this.__data__;return this.size+=this.has(f)?0:1,P[f]=ec&&m===r?d:m,this}Ta.prototype.clear=Nr,Ta.prototype.delete=Mr,Ta.prototype.get=Hs,Ta.prototype.has=Zn,Ta.prototype.set=Aa;function da(f){var m=-1,P=f==null?0:f.length;for(this.clear();++m<P;){var N=f[m];this.set(N[0],N[1])}}function oc(){this.__data__=[],this.size=0}function Ia(f){var m=this.__data__,P=ta(m,f);if(P<0)return!1;var N=m.length-1;return P==N?m.pop():Dp.call(m,P,1),--this.size,!0}function Wp(f){var m=this.__data__,P=ta(m,f);return P<0?r:m[P][1]}function U0(f){return ta(this.__data__,f)>-1}function V0(f,m){var P=this.__data__,N=ta(P,f);return N<0?(++this.size,P.push([f,m])):P[N][1]=m,this}da.prototype.clear=oc,da.prototype.delete=Ia,da.prototype.get=Wp,da.prototype.has=U0,da.prototype.set=V0;function go(f){var m=-1,P=f==null?0:f.length;for(this.clear();++m<P;){var N=f[m];this.set(N[0],N[1])}}function W0(){this.size=0,this.__data__={hash:new Ta,map:new(Vl||da),string:new Ta}}function ns(f){var m=lf(this,f).delete(f);return this.size-=m?1:0,m}function Hp(f){return lf(this,f).get(f)}function Kv(f){return lf(this,f).has(f)}function H0(f,m){var P=lf(this,f),N=P.size;return P.set(f,m),this.size+=P.size==N?0:1,this}go.prototype.clear=W0,go.prototype.delete=ns,go.prototype.get=Hp,go.prototype.has=Kv,go.prototype.set=H0;function Wl(f){var m=-1,P=f==null?0:f.length;for(this.__data__=new go;++m<P;)this.add(f[m])}function Ks(f){return this.__data__.set(f,d),this}function ic(f){return this.__data__.has(f)}Wl.prototype.add=Wl.prototype.push=Ks,Wl.prototype.has=ic;function ea(f){var m=this.__data__=new da(f);this.size=m.size}function Kp(){this.__data__=new da,this.size=0}function Gp(f){var m=this.__data__,P=m.delete(f);return this.size=m.size,P}function yo(f){return this.__data__.get(f)}function bo(f){return this.__data__.has(f)}function Hl(f,m){var P=this.__data__;if(P instanceof da){var N=P.__data__;if(!Vl||N.length<a-1)return N.push([f,m]),this.size=++P.size,this;P=this.__data__=new go(N)}return P.set(f,m),this.size=P.size,this}ea.prototype.clear=Kp,ea.prototype.delete=Gp,ea.prototype.get=yo,ea.prototype.has=bo,ea.prototype.set=Hl;function bi(f,m){var P=Jt(f),N=!P&&_f(f),q=!P&&!N&&xc(f),ee=!P&&!N&&!q&&$h(f),se=P||N||q||ee,he=se?Dv(f.length,$S):[],Ce=he.length;for(var Ve in f)(m||br.call(f,Ve))&&!(se&&(Ve=="length"||q&&(Ve=="offset"||Ve=="parent")||ee&&(Ve=="buffer"||Ve=="byteLength"||Ve=="byteOffset")||Hr(Ve,Ce)))&&he.push(Ve);return he}function _i(f){var m=f.length;return m?f[cc(0,m-1)]:r}function Kl(f,m){return _h(fa(f),as(m,0,f.length))}function K0(f){return _h(fa(f))}function Hd(f,m,P){(P!==r&&!hs(f[m],P)||P===r&&!(m in f))&&wi(f,m,P)}function Gl(f,m,P){var N=f[m];(!(br.call(f,m)&&hs(N,P))||P===r&&!(m in f))&&wi(f,m,P)}function ta(f,m){for(var P=f.length;P--;)if(hs(f[P][0],m))return P;return-1}function Ga(f,m,P,N){return Si(f,function(q,ee,se){m(N,q,P(q),se)}),N}function Br(f,m){return f&&Wo(m,aa(m),f)}function Vo(f,m){return f&&Wo(m,Ro(m),f)}function wi(f,m,P){m=="__proto__"&&zd?zd(f,m,{configurable:!0,enumerable:!0,value:P,writable:!0}):f[m]=P}function Qp(f,m){for(var P=-1,N=m.length,q=Ie(N),ee=f==null;++P<N;)q[P]=ee?r:lC(f,m[P]);return q}function as(f,m,P){return f===f&&(P!==r&&(f=f<=P?f:P),m!==r&&(f=f>=m?f:m)),f}function ja(f,m,P,N,q,ee){var se,he=m&v,Ce=m&y,Ve=m&b;if(P&&(se=q?P(f,N,q,ee):P(f)),se!==r)return se;if(!nn(f))return f;var We=Jt(f);if(We){if(se=cf(f),!he)return fa(f,se)}else{var Ye=Vn(f),dt=Ye==Te||Ye==Me;if(xc(f))return lg(f,he);if(Ye==qe||Ye==ue||dt&&!q){if(se=Ce||dt?{}:Wn(f),!he)return Ce?BS(f,Vo(se,f)):lh(f,Br(se,f))}else{if(!Cr[Ye])return q?f:{};se=zS(f,Ye,he)}}ee||(ee=new ea);var It=ee.get(f);if(It)return It;ee.set(f,se),jj(f)?f.forEach(function(Wt){se.add(ja(Wt,m,P,Wt,f,ee))}):Aj(f)&&f.forEach(function(Wt,sr){se.set(sr,ja(Wt,m,P,sr,f,ee))});var Vt=Ve?Ce?sf:of:Ce?Ro:aa,nr=We?r:Vt(f);return Xn(nr||f,function(Wt,sr){nr&&(sr=Wt,Wt=f[sr]),Gl(se,sr,ja(Wt,m,P,sr,f,ee))}),se}function G0(f){var m=aa(f);return function(P){return Kd(P,f,m)}}function Kd(f,m,P){var N=P.length;if(f==null)return!N;for(f=Rr(f);N--;){var q=P[N],ee=m[q],se=f[q];if(se===r&&!(q in f)||!ee(se))return!1}return!0}function Gv(f,m,P){if(typeof f!="function")throw new vo(i);return bc(function(){f.apply(r,P)},m)}function xi(f,m,P,N){var q=-1,ee=Rp,se=!0,he=f.length,Ce=[],Ve=m.length;if(!he)return Ce;P&&(m=jr(m,Wa(P))),N?(ee=Iv,se=!1):m.length>=a&&(ee=Zi,se=!1,m=new Wl(m));e:for(;++q<he;){var We=f[q],Ye=P==null?We:P(We);if(We=N||We!==0?We:0,se&&Ye===Ye){for(var dt=Ve;dt--;)if(m[dt]===Ye)continue e;Ce.push(We)}else ee(m,Ye,N)||Ce.push(We)}return Ce}var Si=Co(Qa),Q0=Co(Gs,!0);function Gd(f,m){var P=!0;return Si(f,function(N,q,ee){return P=!!m(N,q,ee),P}),P}function Ql(f,m,P){for(var N=-1,q=f.length;++N<q;){var ee=f[N],se=m(ee);if(se!=null&&(he===r?se===se&&!Jo(se):P(se,he)))var he=se,Ce=ee}return Ce}function X0(f,m,P,N){var q=f.length;for(P=rr(P),P<0&&(P=-P>q?0:q+P),N=N===r||N>q?q:rr(N),N<0&&(N+=q),N=P>N?0:Fj(N);P<N;)f[P++]=m;return f}function Qv(f,m){var P=[];return Si(f,function(N,q,ee){m(N,q,ee)&&P.push(N)}),P}function Jr(f,m,P,N,q){var ee=-1,se=f.length;for(P||(P=gh),q||(q=[]);++ee<se;){var he=f[ee];m>0&&P(he)?m>1?Jr(he,m-1,P,N,q):Bs(q,he):N||(q[q.length]=he)}return q}var Xp=ch(),Qd=ch(!0);function Qa(f,m){return f&&Xp(f,m,aa)}function Gs(f,m){return f&&Qd(f,m,aa)}function sc(f,m){return Ns(m,function(P){return lu(f[P])})}function os(f,m){m=Oi(m,f);for(var P=0,N=m.length;f!=null&&P<N;)f=f[Qo(m[P++])];return P&&P==N?f:r}function Yp(f,m,P){var N=m(f);return Jt(f)?N:Bs(N,P(f))}function qn(f){return f==null?f===r?Ne:et:ql&&ql in Rr(f)?vh(f):xg(f)}function Qs(f,m){return f>m}function _o(f,m){return f!=null&&br.call(f,m)}function Xl(f,m){return f!=null&&m in Rr(f)}function Xv(f,m,P){return f>=Yn(m,P)&&f<sn(m,P)}function Jp(f,m,P){for(var N=P?Iv:Rp,q=f[0].length,ee=f.length,se=ee,he=Ie(ee),Ce=1/0,Ve=[];se--;){var We=f[se];se&&m&&(We=jr(We,Wa(m))),Ce=Yn(We.length,Ce),he[se]=!P&&(m||q>=120&&We.length>=120)?new Wl(se&&We):r}We=f[0];var Ye=-1,dt=he[0];e:for(;++Ye<q&&Ve.length<Ce;){var It=We[Ye],Vt=m?m(It):It;if(It=P||It!==0?It:0,!(dt?Zi(dt,Vt):N(Ve,Vt,P))){for(se=ee;--se;){var nr=he[se];if(!(nr?Zi(nr,Vt):N(f[se],Vt,P)))continue e}dt&&dt.push(Vt),Ve.push(It)}}return Ve}function is(f,m,P,N){return Qa(f,function(q,ee,se){m(N,P(q),ee,se)}),N}function wo(f,m,P){m=Oi(m,f),f=Rn(f,m);var N=f==null?f:f[Qo(ma(m))];return N==null?r:ca(N,f,P)}function Zp(f){return un(f)&&qn(f)==ue}function Y0(f){return un(f)&&qn(f)==lt}function ss(f){return un(f)&&qn(f)==ge}function xo(f,m,P,N,q){return f===m?!0:f==null||m==null||!un(f)&&!un(m)?f!==f&&m!==m:eh(f,m,P,N,xo,q)}function eh(f,m,P,N,q,ee){var se=Jt(f),he=Jt(m),Ce=se?be:Vn(f),Ve=he?be:Vn(m);Ce=Ce==ue?qe:Ce,Ve=Ve==ue?qe:Ve;var We=Ce==qe,Ye=Ve==qe,dt=Ce==Ve;if(dt&&xc(f)){if(!xc(m))return!1;se=!0,We=!1}if(dt&&!We)return ee||(ee=new ea),se||$h(f)?yg(f,m,P,N,q,ee):bg(f,m,Ce,P,N,q,ee);if(!(P&_)){var It=We&&br.call(f,"__wrapped__"),Vt=Ye&&br.call(m,"__wrapped__");if(It||Vt){var nr=It?f.value():f,Wt=Vt?m.value():m;return ee||(ee=new ea),q(nr,Wt,P,N,ee)}}return dt?(ee||(ee=new ea),l_(f,m,P,N,q,ee)):!1}function J0(f){return un(f)&&Vn(f)==Fe}function lc(f,m,P,N){var q=P.length,ee=q,se=!N;if(f==null)return!ee;for(f=Rr(f);q--;){var he=P[q];if(se&&he[2]?he[1]!==f[he[0]]:!(he[0]in f))return!1}for(;++q<ee;){he=P[q];var Ce=he[0],Ve=f[Ce],We=he[1];if(se&&he[2]){if(Ve===r&&!(Ce in f))return!1}else{var Ye=new ea;if(N)var dt=N(Ve,We,Ce,f,m,Ye);if(!(dt===r?xo(We,Ve,_|w,N,Ye):dt))return!1}}return!0}function Yv(f){if(!nn(f)||d_(f))return!1;var m=lu(f)?D0:ir;return m.test(Zs(f))}function Xd(f){return un(f)&&qn(f)==pe}function Ci(f){return un(f)&&Vn(f)==Se}function Yd(f){return un(f)&&T_(f.length)&&!!Er[qn(f)]}function uc(f){return typeof f=="function"?f:f==null?ko:typeof f=="object"?Jt(f)?Wr(f[0],f[1]):th(f):Hj(f)}function ls(f){if(!fs(f))return Zu(f);var m=[];for(var P in Rr(f))br.call(f,P)&&P!="constructor"&&m.push(P);return m}function Jv(f){if(!nn(f))return h_(f);var m=fs(f),P=[];for(var N in f)N=="constructor"&&(m||!br.call(f,N))||P.push(N);return P}function Xs(f,m){return f<m}function Zv(f,m){var P=-1,N=Po(f)?Ie(f.length):[];return Si(f,function(q,ee,se){N[++P]=m(q,ee,se)}),N}function th(f){var m=uf(f);return m.length==1&&m[0][2]?yh(m[0][0],m[0][1]):function(P){return P===f||lc(P,f,m)}}function Wr(f,m){return vt(f)&&ff(m)?yh(Qo(f),m):function(P){var N=lC(P,f);return N===r&&N===m?uC(P,f):xo(m,N,_|w)}}function Yl(f,m,P,N,q){f!==m&&Xp(m,function(ee,se){if(q||(q=new ea),nn(ee))eg(f,m,se,P,Yl,N,q);else{var he=N?N(ki(f,se),ee,se+"",f,m,q):r;he===r&&(he=ee),Hd(f,se,he)}},Ro)}function eg(f,m,P,N,q,ee,se){var he=ki(f,P),Ce=ki(m,P),Ve=se.get(Ce);if(Ve){Hd(f,P,Ve);return}var We=ee?ee(he,Ce,P+"",f,m,se):r,Ye=We===r;if(Ye){var dt=Jt(Ce),It=!dt&&xc(Ce),Vt=!dt&&!It&&$h(Ce);We=Ce,dt||It||Vt?Jt(he)?We=he:xn(he)?We=fa(he):It?(Ye=!1,We=lg(Ce,!0)):Vt?(Ye=!1,We=n_(Ce,!0)):We=[]:Bg(Ce)||_f(Ce)?(We=he,_f(he)?We=Lj(he):(!nn(he)||lu(he))&&(We=Wn(Ce))):Ye=!1}Ye&&(se.set(Ce,We),q(We,Ce,N,ee,se),se.delete(Ce)),Hd(f,P,We)}function rh(f,m){var P=f.length;if(P)return m+=m<0?P:0,Hr(m,P)?f[m]:r}function Jd(f,m,P){m.length?m=jr(m,function(ee){return Jt(ee)?function(se){return os(se,ee.length===1?ee[0]:ee)}:ee}):m=[ko];var N=-1;m=jr(m,Wa(Bt()));var q=Zv(f,function(ee,se,he){var Ce=jr(m,function(Ve){return Ve(ee)});return{criteria:Ce,index:++N,value:ee}});return kS(q,function(ee,se){return NS(ee,se,P)})}function tg(f,m){return Ys(f,m,function(P,N){return uC(f,N)})}function Ys(f,m,P){for(var N=-1,q=m.length,ee={};++N<q;){var se=m[N],he=os(f,se);P(he,se)&&Zl(ee,Oi(se,f),he)}return ee}function Qr(f){return function(m){return os(m,f)}}function tn(f,m,P,N){var q=N?Fv:Hu,ee=-1,se=m.length,he=f;for(f===m&&(m=fa(m)),P&&(he=jr(f,Wa(P)));++ee<se;)for(var Ce=0,Ve=m[ee],We=P?P(Ve):Ve;(Ce=q(he,We,Ce,N))>-1;)he!==f&&Dp.call(he,Ce,1),Dp.call(f,Ce,1);return f}function _n(f,m){for(var P=f?m.length:0,N=P-1;P--;){var q=m[P];if(P==N||q!==ee){var ee=q;Hr(q)?Dp.call(f,q,1):oh(f,q)}}return f}function cc(f,m){return f+qs(qd()*(m-f+1))}function Zd(f,m,P,N){for(var q=-1,ee=sn(Ul((m-f)/(P||1)),0),se=Ie(ee);ee--;)se[N?ee:++q]=f,f+=P;return se}function Jl(f,m){var P="";if(!f||m<1||m>K)return P;do m%2&&(P+=f),m=qs(m/2),m&&(f+=f);while(m);return P}function tr(f,m){return Xa(bh(f,m,ko),f+"")}function ra(f){return _i(Dh(f))}function rg(f,m){var P=Dh(f);return _h(P,as(m,0,P.length))}function Zl(f,m,P,N){if(!nn(f))return f;m=Oi(m,f);for(var q=-1,ee=m.length,se=ee-1,he=f;he!=null&&++q<ee;){var Ce=Qo(m[q]),Ve=P;if(Ce==="__proto__"||Ce==="constructor"||Ce==="prototype")return f;if(q!=se){var We=he[Ce];Ve=N?N(We,Ce,he):r,Ve===r&&(Ve=nn(We)?We:Hr(m[q+1])?[]:{})}Gl(he,Ce,Ve),he=he[Ce]}return f}var nh=qp?function(f,m){return qp.set(f,m),f}:ko,Ei=zd?function(f,m){return zd(f,"toString",{configurable:!0,enumerable:!1,value:dC(m),writable:!0})}:ko;function So(f){return _h(Dh(f))}function na(f,m,P){var N=-1,q=f.length;m<0&&(m=-m>q?0:q+m),P=P>q?q:P,P<0&&(P+=q),q=m>P?0:P-m>>>0,m>>>=0;for(var ee=Ie(q);++N<q;)ee[N]=f[N+m];return ee}function ng(f,m){var P;return Si(f,function(N,q,ee){return P=m(N,q,ee),!P}),!!P}function dc(f,m,P){var N=0,q=f==null?N:f.length;if(typeof m=="number"&&m===m&&q<=de){for(;N<q;){var ee=N+q>>>1,se=f[ee];se!==null&&!Jo(se)&&(P?se<=m:se<m)?N=ee+1:q=ee}return q}return ah(f,m,ko,P)}function ah(f,m,P,N){var q=0,ee=f==null?0:f.length;if(ee===0)return 0;m=P(m);for(var se=m!==m,he=m===null,Ce=Jo(m),Ve=m===r;q<ee;){var We=qs((q+ee)/2),Ye=P(f[We]),dt=Ye!==r,It=Ye===null,Vt=Ye===Ye,nr=Jo(Ye);if(se)var Wt=N||Vt;else Ve?Wt=Vt&&(N||dt):he?Wt=Vt&&dt&&(N||!It):Ce?Wt=Vt&&dt&&!It&&(N||!nr):It||nr?Wt=!1:Wt=N?Ye<=m:Ye<m;Wt?q=We+1:ee=We}return Yn(ee,J)}function ag(f,m){for(var P=-1,N=f.length,q=0,ee=[];++P<N;){var se=f[P],he=m?m(se):se;if(!P||!hs(he,Ce)){var Ce=he;ee[q++]=se===0?0:se}}return ee}function og(f){return typeof f=="number"?f:Jo(f)?te:+f}function Ma(f){if(typeof f=="string")return f;if(Jt(f))return jr(f,Ma)+"";if(Jo(f))return Up?Up.call(f):"";var m=f+"";return m=="0"&&1/f==-1/0?"-0":m}function us(f,m,P){var N=-1,q=Rp,ee=f.length,se=!0,he=[],Ce=he;if(P)se=!1,q=Iv;else if(ee>=a){var Ve=m?null:s_(f);if(Ve)return zs(Ve);se=!1,q=Zi,Ce=new Wl}else Ce=m?[]:he;e:for(;++N<ee;){var We=f[N],Ye=m?m(We):We;if(We=P||We!==0?We:0,se&&Ye===Ye){for(var dt=Ce.length;dt--;)if(Ce[dt]===Ye)continue e;m&&Ce.push(Ye),he.push(We)}else q(Ce,Ye,P)||(Ce!==he&&Ce.push(Ye),he.push(We))}return he}function oh(f,m){return m=Oi(m,f),f=Rn(f,m),f==null||delete f[Qo(ma(m))]}function ig(f,m,P,N){return Zl(f,m,P(os(f,m)),N)}function ef(f,m,P,N){for(var q=f.length,ee=N?q:-1;(N?ee--:++ee<q)&&m(f[ee],ee,f););return P?na(f,N?0:ee,N?ee+1:q):na(f,N?ee+1:0,N?q:ee)}function fc(f,m){var P=f;return P instanceof Yt&&(P=P.value()),jv(m,function(N,q){return q.func.apply(q.thisArg,Bs([N],q.args))},P)}function ih(f,m,P){var N=f.length;if(N<2)return N?us(f[0]):[];for(var q=-1,ee=Ie(N);++q<N;)for(var se=f[q],he=-1;++he<N;)he!=q&&(ee[q]=xi(ee[q]||se,f[he],m,P));return us(Jr(ee,1),m,P)}function tf(f,m,P){for(var N=-1,q=f.length,ee=m.length,se={};++N<q;){var he=N<ee?m[N]:r;P(se,f[N],he)}return se}function pc(f){return xn(f)?f:[]}function sh(f){return typeof f=="function"?f:ko}function Oi(f,m){return Jt(f)?f:vt(f,m)?[f]:Eg(kr(f))}var Z0=tr;function cs(f,m,P){var N=f.length;return P=P===r?N:P,!m&&P>=N?f:na(f,m,P)}var sg=B0||function(f){return Vr.clearTimeout(f)};function lg(f,m){if(m)return f.slice();var P=f.length,N=qv?qv(P):new f.constructor(P);return f.copy(N),N}function rf(f){var m=new f.constructor(f.byteLength);return new Bd(m).set(new Bd(f)),m}function e_(f,m){var P=m?rf(f.buffer):f.buffer;return new f.constructor(P,f.byteOffset,f.byteLength)}function t_(f){var m=new f.constructor(f.source,Gr.exec(f));return m.lastIndex=f.lastIndex,m}function r_(f){return Ka?Rr(Ka.call(f)):{}}function n_(f,m){var P=m?rf(f.buffer):f.buffer;return new f.constructor(P,f.byteOffset,f.length)}function ug(f,m){if(f!==m){var P=f!==r,N=f===null,q=f===f,ee=Jo(f),se=m!==r,he=m===null,Ce=m===m,Ve=Jo(m);if(!he&&!Ve&&!ee&&f>m||ee&&se&&Ce&&!he&&!Ve||N&&se&&Ce||!P&&Ce||!q)return 1;if(!N&&!ee&&!Ve&&f<m||Ve&&P&&q&&!N&&!ee||he&&P&&q||!se&&q||!Ce)return-1}return 0}function NS(f,m,P){for(var N=-1,q=f.criteria,ee=m.criteria,se=q.length,he=P.length;++N<se;){var Ce=ug(q[N],ee[N]);if(Ce){if(N>=he)return Ce;var Ve=P[N];return Ce*(Ve=="desc"?-1:1)}}return f.index-m.index}function a_(f,m,P,N){for(var q=-1,ee=f.length,se=P.length,he=-1,Ce=m.length,Ve=sn(ee-se,0),We=Ie(Ce+Ve),Ye=!N;++he<Ce;)We[he]=m[he];for(;++q<se;)(Ye||q<ee)&&(We[P[q]]=f[q]);for(;Ve--;)We[he++]=f[q++];return We}function cg(f,m,P,N){for(var q=-1,ee=f.length,se=-1,he=P.length,Ce=-1,Ve=m.length,We=sn(ee-he,0),Ye=Ie(We+Ve),dt=!N;++q<We;)Ye[q]=f[q];for(var It=q;++Ce<Ve;)Ye[It+Ce]=m[Ce];for(;++se<he;)(dt||q<ee)&&(Ye[It+P[se]]=f[q++]);return Ye}function fa(f,m){var P=-1,N=f.length;for(m||(m=Ie(N));++P<N;)m[P]=f[P];return m}function Wo(f,m,P,N){var q=!P;P||(P={});for(var ee=-1,se=m.length;++ee<se;){var he=m[ee],Ce=N?N(P[he],f[he],he,P,f):r;Ce===r&&(Ce=f[he]),q?wi(P,he,Ce):Gl(P,he,Ce)}return P}function lh(f,m){return Wo(f,Ho(f),m)}function BS(f,m){return Wo(f,u_(f),m)}function uh(f,m){return function(P,N){var q=Jt(P)?Tv:Ga,ee=m?m():{};return q(P,f,Bt(N,2),ee)}}function hc(f){return tr(function(m,P){var N=-1,q=P.length,ee=q>1?P[q-1]:r,se=q>2?P[2]:r;for(ee=f.length>3&&typeof ee=="function"?(q--,ee):r,se&&ha(P[0],P[1],se)&&(ee=q<3?r:ee,q=1),m=Rr(m);++N<q;){var he=P[N];he&&f(m,he,N,ee)}return m})}function Co(f,m){return function(P,N){if(P==null)return P;if(!Po(P))return f(P,N);for(var q=P.length,ee=m?q:-1,se=Rr(P);(m?ee--:++ee<q)&&N(se[ee],ee,se)!==!1;);return P}}function ch(f){return function(m,P,N){for(var q=-1,ee=Rr(m),se=N(m),he=se.length;he--;){var Ce=se[f?he:++q];if(P(ee[Ce],Ce,ee)===!1)break}return m}}function dh(f,m,P){var N=m&S,q=mc(f);function ee(){var se=this&&this!==Vr&&this instanceof ee?q:f;return se.apply(N?P:this,arguments)}return ee}function dg(f){return function(m){m=kr(m);var P=Gu(m)?Ha(m):r,N=P?P[0]:m.charAt(0),q=P?cs(P,1).join(""):m.slice(1);return N[f]()+q}}function eu(f){return function(m){return jv(Vj(Uj(m).replace(wS,"")),f,"")}}function mc(f){return function(){var m=arguments;switch(m.length){case 0:return new f;case 1:return new f(m[0]);case 2:return new f(m[0],m[1]);case 3:return new f(m[0],m[1],m[2]);case 4:return new f(m[0],m[1],m[2],m[3]);case 5:return new f(m[0],m[1],m[2],m[3],m[4]);case 6:return new f(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new f(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var P=nc(f.prototype),N=f.apply(P,m);return nn(N)?N:P}}function fg(f,m,P){var N=mc(f);function q(){for(var ee=arguments.length,se=Ie(ee),he=ee,Ce=ds(q);he--;)se[he]=arguments[he];var Ve=ee<3&&se[0]!==Ce&&se[ee-1]!==Ce?[]:mo(se,Ce);if(ee-=Ve.length,ee<P)return pa(f,m,vc,q.placeholder,r,se,Ve,r,r,P-ee);var We=this&&this!==Vr&&this instanceof q?N:f;return ca(We,this,se)}return q}function tu(f){return function(m,P,N){var q=Rr(m);if(!Po(m)){var ee=Bt(P,3);m=aa(m),P=function(he){return ee(q[he],he,q)}}var se=f(m,P,N);return se>-1?q[ee?m[se]:se]:r}}function fh(f){return Ri(function(m){var P=m.length,N=P,q=Jn.prototype.thru;for(f&&m.reverse();N--;){var ee=m[N];if(typeof ee!="function")throw new vo(i);if(q&&!se&&gc(ee)=="wrapper")var se=new Jn([],!0)}for(N=se?N:P;++N<P;){ee=m[N];var he=gc(ee),Ce=he=="wrapper"?mh(ee):r;Ce&&df(Ce[0])&&Ce[1]==(L|C|T|j)&&!Ce[4].length&&Ce[9]==1?se=se[gc(Ce[0])].apply(se,Ce[3]):se=ee.length==1&&df(ee)?se[he]():se.thru(ee)}return function(){var Ve=arguments,We=Ve[0];if(se&&Ve.length==1&&Jt(We))return se.plant(We).value();for(var Ye=0,dt=P?m[Ye].apply(this,Ve):We;++Ye<P;)dt=m[Ye].call(this,dt);return dt}})}function vc(f,m,P,N,q,ee,se,he,Ce,Ve){var We=m&L,Ye=m&S,dt=m&A,It=m&(C|O),Vt=m&M,nr=dt?r:mc(f);function Wt(){for(var sr=arguments.length,hr=Ie(sr),Zo=sr;Zo--;)hr[Zo]=arguments[Zo];if(It)var Ja=ds(Wt),ei=T0(hr,Ja);if(N&&(hr=a_(hr,N,q,It)),ee&&(hr=cg(hr,ee,se,It)),sr-=ei,It&&sr<Ve){var Sn=mo(hr,Ja);return pa(f,m,vc,Wt.placeholder,P,hr,Sn,he,Ce,Ve-sr)}var ms=Ye?P:this,cu=dt?ms[f]:f;return sr=hr.length,he?hr=Ko(hr,he):Vt&&sr>1&&hr.reverse(),We&&Ce<sr&&(hr.length=Ce),this&&this!==Vr&&this instanceof Wt&&(cu=nr||mc(cu)),cu.apply(ms,hr)}return Wt}function o_(f,m){return function(P,N){return is(P,f,m(N),{})}}function nf(f,m){return function(P,N){var q;if(P===r&&N===r)return m;if(P!==r&&(q=P),N!==r){if(q===r)return N;typeof P=="string"||typeof N=="string"?(P=Ma(P),N=Ma(N)):(P=og(P),N=og(N)),q=f(P,N)}return q}}function ph(f){return Ri(function(m){return m=jr(m,Wa(Bt())),tr(function(P){var N=this;return f(m,function(q){return ca(q,N,P)})})})}function af(f,m){m=m===r?" ":Ma(m);var P=m.length;if(P<2)return P?Jl(m,f):m;var N=Jl(m,Ul(f/zl(m)));return Gu(m)?cs(Ha(N),0,f).join(""):N.slice(0,f)}function i_(f,m,P,N){var q=m&S,ee=mc(f);function se(){for(var he=-1,Ce=arguments.length,Ve=-1,We=N.length,Ye=Ie(We+Ce),dt=this&&this!==Vr&&this instanceof se?ee:f;++Ve<We;)Ye[Ve]=N[Ve];for(;Ce--;)Ye[Ve++]=arguments[++he];return ca(dt,q?P:this,Ye)}return se}function pg(f){return function(m,P,N){return N&&typeof N!="number"&&ha(m,P,N)&&(P=N=r),m=uu(m),P===r?(P=m,m=0):P=uu(P),N=N===r?m<P?1:-1:uu(N),Zd(m,P,N,f)}}function hh(f){return function(m,P){return typeof m=="string"&&typeof P=="string"||(m=Ti(m),P=Ti(P)),f(m,P)}}function pa(f,m,P,N,q,ee,se,he,Ce,Ve){var We=m&C,Ye=We?se:r,dt=We?r:se,It=We?ee:r,Vt=We?r:ee;m|=We?T:E,m&=~(We?E:T),m&R||(m&=-4);var nr=[f,m,q,It,Ye,Vt,dt,he,Ce,Ve],Wt=P.apply(r,nr);return df(f)&&Sg(Wt,nr),Wt.placeholder=N,Cg(Wt,f,m)}function Un(f){var m=on[f];return function(P,N){if(P=Ti(P),N=N==null?0:Yn(rr(N),292),N&&Ju(P)){var q=(kr(P)+"e").split("e"),ee=m(q[0]+"e"+(+q[1]+N));return q=(kr(ee)+"e").split("e"),+(q[0]+"e"+(+q[1]-N))}return m(P)}}var s_=Us&&1/zs(new Us([,-0]))[1]==V?function(f){return new Us(f)}:hC;function hg(f){return function(m){var P=Vn(m);return P==Fe?Ap(m):P==Se?jS(m):TS(m,f(m))}}function Pi(f,m,P,N,q,ee,se,he){var Ce=m&A;if(!Ce&&typeof f!="function")throw new vo(i);var Ve=N?N.length:0;if(Ve||(m&=-97,N=q=r),se=se===r?se:sn(rr(se),0),he=he===r?he:rr(he),Ve-=q?q.length:0,m&E){var We=N,Ye=q;N=q=r}var dt=Ce?r:mh(f),It=[f,m,P,N,q,We,Ye,ee,se,he];if(dt&&p_(It,dt),f=It[0],m=It[1],P=It[2],N=It[3],q=It[4],he=It[9]=It[9]===r?Ce?0:f.length:sn(It[9]-Ve,0),!he&&m&(C|O)&&(m&=-25),!m||m==S)var Vt=dh(f,m,P);else m==C||m==O?Vt=fg(f,m,he):(m==T||m==(S|T))&&!q.length?Vt=i_(f,m,P,N):Vt=vc.apply(r,It);var nr=dt?nh:Sg;return Cg(nr(Vt,It),f,m)}function mg(f,m,P,N){return f===r||hs(f,vi[P])&&!br.call(N,P)?m:f}function vg(f,m,P,N,q,ee){return nn(f)&&nn(m)&&(ee.set(m,f),Yl(f,m,r,vg,ee),ee.delete(m)),f}function gg(f){return Bg(f)?r:f}function yg(f,m,P,N,q,ee){var se=P&_,he=f.length,Ce=m.length;if(he!=Ce&&!(se&&Ce>he))return!1;var Ve=ee.get(f),We=ee.get(m);if(Ve&&We)return Ve==m&&We==f;var Ye=-1,dt=!0,It=P&w?new Wl:r;for(ee.set(f,m),ee.set(m,f);++Ye<he;){var Vt=f[Ye],nr=m[Ye];if(N)var Wt=se?N(nr,Vt,Ye,m,f,ee):N(Vt,nr,Ye,f,m,ee);if(Wt!==r){if(Wt)continue;dt=!1;break}if(It){if(!Mv(m,function(sr,hr){if(!Zi(It,hr)&&(Vt===sr||q(Vt,sr,P,N,ee)))return It.push(hr)})){dt=!1;break}}else if(!(Vt===nr||q(Vt,nr,P,N,ee))){dt=!1;break}}return ee.delete(f),ee.delete(m),dt}function bg(f,m,P,N,q,ee,se){switch(P){case bt:if(f.byteLength!=m.byteLength||f.byteOffset!=m.byteOffset)return!1;f=f.buffer,m=m.buffer;case lt:return!(f.byteLength!=m.byteLength||!ee(new Bd(f),new Bd(m)));case Ee:case ge:case $e:return hs(+f,+m);case Oe:return f.name==m.name&&f.message==m.message;case pe:case ne:return f==m+"";case Fe:var he=Ap;case Se:var Ce=N&_;if(he||(he=zs),f.size!=m.size&&!Ce)return!1;var Ve=se.get(f);if(Ve)return Ve==m;N|=w,se.set(f,m);var We=yg(he(f),he(m),N,q,ee,se);return se.delete(f),We;case we:if(Ka)return Ka.call(f)==Ka.call(m)}return!1}function l_(f,m,P,N,q,ee){var se=P&_,he=of(f),Ce=he.length,Ve=of(m),We=Ve.length;if(Ce!=We&&!se)return!1;for(var Ye=Ce;Ye--;){var dt=he[Ye];if(!(se?dt in m:br.call(m,dt)))return!1}var It=ee.get(f),Vt=ee.get(m);if(It&&Vt)return It==m&&Vt==f;var nr=!0;ee.set(f,m),ee.set(m,f);for(var Wt=se;++Ye<Ce;){dt=he[Ye];var sr=f[dt],hr=m[dt];if(N)var Zo=se?N(hr,sr,dt,m,f,ee):N(sr,hr,dt,f,m,ee);if(!(Zo===r?sr===hr||q(sr,hr,P,N,ee):Zo)){nr=!1;break}Wt||(Wt=dt=="constructor")}if(nr&&!Wt){var Ja=f.constructor,ei=m.constructor;Ja!=ei&&"constructor"in f&&"constructor"in m&&!(typeof Ja=="function"&&Ja instanceof Ja&&typeof ei=="function"&&ei instanceof ei)&&(nr=!1)}return ee.delete(f),ee.delete(m),nr}function Ri(f){return Xa(bh(f,r,xh),f+"")}function of(f){return Yp(f,aa,Ho)}function sf(f){return Yp(f,Ro,u_)}var mh=qp?function(f){return qp.get(f)}:hC;function gc(f){for(var m=f.name+"",P=tc[m],N=br.call(tc,m)?P.length:0;N--;){var q=P[N],ee=q.func;if(ee==null||ee==f)return q.name}return m}function ds(f){var m=br.call(Z,"placeholder")?Z:f;return m.placeholder}function Bt(){var f=Z.iteratee||fC;return f=f===fC?uc:f,arguments.length?f(arguments[0],arguments[1]):f}function lf(f,m){var P=f.__data__;return yc(m)?P[typeof m=="string"?"string":"hash"]:P.map}function uf(f){for(var m=aa(f),P=m.length;P--;){var N=m[P],q=f[N];m[P]=[N,q,ff(q)]}return m}function Js(f,m){var P=Ku(f,m);return Yv(P)?P:r}function vh(f){var m=br.call(f,ql),P=f[ql];try{f[ql]=r;var N=!0}catch{}var q=Dd.call(f);return N&&(m?f[ql]=P:delete f[ql]),q}var Ho=Np?function(f){return f==null?[]:(f=Rr(f),Ns(Np(f),function(m){return $p.call(f,m)}))}:mC,u_=Np?function(f){for(var m=[];f;)Bs(m,Ho(f)),f=Uo(f);return m}:mC,Vn=qn;(Ud&&Vn(new Ud(new ArrayBuffer(1)))!=bt||Vl&&Vn(new Vl)!=Fe||Vd&&Vn(Vd.resolve())!=re||Us&&Vn(new Us)!=Se||Wd&&Vn(new Wd)!=De)&&(Vn=function(f){var m=qn(f),P=m==qe?f.constructor:r,N=P?Zs(P):"";if(N)switch(N){case Wv:return bt;case Vs:return Fe;case q0:return re;case rc:return Se;case gi:return De}return m});function _g(f,m,P){for(var N=-1,q=P.length;++N<q;){var ee=P[N],se=ee.size;switch(ee.type){case"drop":f+=se;break;case"dropRight":m-=se;break;case"take":m=Yn(m,f+se);break;case"takeRight":f=sn(f,m-se);break}}return{start:f,end:m}}function c_(f){var m=f.match(Ot);return m?m[1].split(At):[]}function wg(f,m,P){m=Oi(m,f);for(var N=-1,q=m.length,ee=!1;++N<q;){var se=Qo(m[N]);if(!(ee=f!=null&&P(f,se)))break;f=f[se]}return ee||++N!=q?ee:(q=f==null?0:f.length,!!q&&T_(q)&&Hr(se,q)&&(Jt(f)||_f(f)))}function cf(f){var m=f.length,P=new f.constructor(m);return m&&typeof f[0]=="string"&&br.call(f,"index")&&(P.index=f.index,P.input=f.input),P}function Wn(f){return typeof f.constructor=="function"&&!fs(f)?nc(Uo(f)):{}}function zS(f,m,P){var N=f.constructor;switch(m){case lt:return rf(f);case Ee:case ge:return new N(+f);case bt:return e_(f,P);case Pt:case Tt:case Je:case Dt:case Lt:case Ct:case ct:case Kt:case lr:return n_(f,P);case Fe:return new N;case $e:case ne:return new N(f);case pe:return t_(f);case Se:return new N;case we:return r_(f)}}function qS(f,m){var P=m.length;if(!P)return f;var N=P-1;return m[N]=(P>1?"& ":"")+m[N],m=m.join(P>2?", ":" "),f.replace(ut,`{
/* [wrapped with `+m+`] */
`)}function gh(f){return Jt(f)||_f(f)||!!(N0&&f&&f[N0])}function Hr(f,m){var P=typeof f;return m=m??K,!!m&&(P=="number"||P!="symbol"&&hi.test(f))&&f>-1&&f%1==0&&f<m}function ha(f,m,P){if(!nn(P))return!1;var N=typeof m;return(N=="number"?Po(P)&&Hr(m,P.length):N=="string"&&m in P)?hs(P[m],f):!1}function vt(f,m){if(Jt(f))return!1;var P=typeof f;return P=="number"||P=="symbol"||P=="boolean"||f==null||Jo(f)?!0:ie.test(f)||!le.test(f)||m!=null&&f in Rr(m)}function yc(f){var m=typeof f;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?f!=="__proto__":f===null}function df(f){var m=gc(f),P=Z[m];if(typeof P!="function"||!(m in Yt.prototype))return!1;if(f===P)return!0;var N=mh(P);return!!N&&f===N[0]}function d_(f){return!!Mp&&Mp in f}var US=Xu?lu:vC;function fs(f){var m=f&&f.constructor,P=typeof m=="function"&&m.prototype||vi;return f===P}function ff(f){return f===f&&!nn(f)}function yh(f,m){return function(P){return P==null?!1:P[f]===m&&(m!==r||f in Rr(P))}}function f_(f){var m=ke(f,function(N){return P.size===l&&P.clear(),N}),P=m.cache;return m}function p_(f,m){var P=f[1],N=m[1],q=P|N,ee=q<(S|A|L),se=N==L&&P==C||N==L&&P==j&&f[7].length<=m[8]||N==(L|j)&&m[7].length<=m[8]&&P==C;if(!(ee||se))return f;N&S&&(f[2]=m[2],q|=P&S?0:R);var he=m[3];if(he){var Ce=f[3];f[3]=Ce?a_(Ce,he,m[4]):he,f[4]=Ce?mo(f[3],h):m[4]}return he=m[5],he&&(Ce=f[5],f[5]=Ce?cg(Ce,he,m[6]):he,f[6]=Ce?mo(f[5],h):m[6]),he=m[7],he&&(f[7]=he),N&L&&(f[8]=f[8]==null?m[8]:Yn(f[8],m[8])),f[9]==null&&(f[9]=m[9]),f[0]=m[0],f[1]=q,f}function h_(f){var m=[];if(f!=null)for(var P in Rr(f))m.push(P);return m}function xg(f){return Dd.call(f)}function bh(f,m,P){return m=sn(m===r?f.length-1:m,0),function(){for(var N=arguments,q=-1,ee=sn(N.length-m,0),se=Ie(ee);++q<ee;)se[q]=N[m+q];q=-1;for(var he=Ie(m+1);++q<m;)he[q]=N[q];return he[m]=P(se),ca(f,this,he)}}function Rn(f,m){return m.length<2?f:os(f,na(m,0,-1))}function Ko(f,m){for(var P=f.length,N=Yn(m.length,P),q=fa(f);N--;){var ee=m[N];f[N]=Hr(ee,P)?q[ee]:r}return f}function ki(f,m){if(!(m==="constructor"&&typeof f[m]=="function")&&m!="__proto__")return f[m]}var Sg=Go(nh),bc=Uv||function(f,m){return Vr.setTimeout(f,m)},Xa=Go(Ei);function Cg(f,m,P){var N=m+"";return Xa(f,qS(N,m_(c_(N),P)))}function Go(f){var m=0,P=0;return function(){var N=DS(),q=z-(N-P);if(P=N,q>0){if(++m>=B)return arguments[0]}else m=0;return f.apply(r,arguments)}}function _h(f,m){var P=-1,N=f.length,q=N-1;for(m=m===r?N:m;++P<m;){var ee=cc(P,q),se=f[ee];f[ee]=f[P],f[P]=se}return f.length=m,f}var Eg=f_(function(f){var m=[];return f.charCodeAt(0)===46&&m.push(""),f.replace(me,function(P,N,q,ee){m.push(q?ee.replace(Xt,"$1"):N||P)}),m});function Qo(f){if(typeof f=="string"||Jo(f))return f;var m=f+"";return m=="0"&&1/f==-1/0?"-0":m}function Zs(f){if(f!=null){try{return $d.call(f)}catch{}try{return f+""}catch{}}return""}function m_(f,m){return Xn(ce,function(P){var N="_."+P[0];m&P[1]&&!Rp(f,N)&&f.push(N)}),f.sort()}function v_(f){if(f instanceof Yt)return f.clone();var m=new Jn(f.__wrapped__,f.__chain__);return m.__actions__=fa(f.__actions__),m.__index__=f.__index__,m.__values__=f.__values__,m}function wh(f,m,P){(P?ha(f,m,P):m===r)?m=1:m=sn(rr(m),0);var N=f==null?0:f.length;if(!N||m<1)return[];for(var q=0,ee=0,se=Ie(Ul(N/m));q<N;)se[ee++]=na(f,q,q+=m);return se}function Og(f){for(var m=-1,P=f==null?0:f.length,N=0,q=[];++m<P;){var ee=f[m];ee&&(q[N++]=ee)}return q}function Eo(){var f=arguments.length;if(!f)return[];for(var m=Ie(f-1),P=arguments[0],N=f;N--;)m[N-1]=arguments[N];return Bs(Jt(P)?fa(P):[P],Jr(m,1))}var pr=tr(function(f,m){return xn(f)?xi(f,Jr(m,1,xn,!0)):[]}),kn=tr(function(f,m){var P=ma(m);return xn(P)&&(P=r),xn(f)?xi(f,Jr(m,1,xn,!0),Bt(P,2)):[]}),ln=tr(function(f,m){var P=ma(m);return xn(P)&&(P=r),xn(f)?xi(f,Jr(m,1,xn,!0),r,P):[]});function Hn(f,m,P){var N=f==null?0:f.length;return N?(m=P||m===r?1:rr(m),na(f,m<0?0:m,N)):[]}function Ya(f,m,P){var N=f==null?0:f.length;return N?(m=P||m===r?1:rr(m),m=N-m,na(f,0,m<0?0:m)):[]}function _c(f,m){return f&&f.length?ef(f,Bt(m,3),!0,!0):[]}function wn(f,m){return f&&f.length?ef(f,Bt(m,3),!0):[]}function pf(f,m,P,N){var q=f==null?0:f.length;return q?(P&&typeof P!="number"&&ha(f,m,P)&&(P=0,N=q),X0(f,m,P,N)):[]}function el(f,m,P){var N=f==null?0:f.length;if(!N)return-1;var q=P==null?0:rr(P);return q<0&&(q=sn(N+q,0)),kp(f,Bt(m,3),q)}function hf(f,m,P){var N=f==null?0:f.length;if(!N)return-1;var q=N-1;return P!==r&&(q=rr(P),q=P<0?sn(N+q,0):Yn(q,N-1)),kp(f,Bt(m,3),q,!0)}function xh(f){var m=f==null?0:f.length;return m?Jr(f,1):[]}function mf(f){var m=f==null?0:f.length;return m?Jr(f,V):[]}function Fa(f,m){var P=f==null?0:f.length;return P?(m=m===r?1:rr(m),Jr(f,m)):[]}function Pg(f){for(var m=-1,P=f==null?0:f.length,N={};++m<P;){var q=f[m];N[q[0]]=q[1]}return N}function ru(f){return f&&f.length?f[0]:r}function ps(f,m,P){var N=f==null?0:f.length;if(!N)return-1;var q=P==null?0:rr(P);return q<0&&(q=sn(N+q,0)),Hu(f,m,q)}function Sh(f){var m=f==null?0:f.length;return m?na(f,0,-1):[]}var Rg=tr(function(f){var m=jr(f,pc);return m.length&&m[0]===f[0]?Jp(m):[]}),tl=tr(function(f){var m=ma(f),P=jr(f,pc);return m===ma(P)?m=r:P.pop(),P.length&&P[0]===f[0]?Jp(P,Bt(m,2)):[]}),Ch=tr(function(f){var m=ma(f),P=jr(f,pc);return m=typeof m=="function"?m:r,m&&P.pop(),P.length&&P[0]===f[0]?Jp(P,r,m):[]});function rl(f,m){return f==null?"":Bp.call(f,m)}function ma(f){var m=f==null?0:f.length;return m?f[m-1]:r}function vf(f,m,P){var N=f==null?0:f.length;if(!N)return-1;var q=N;return P!==r&&(q=rr(P),q=q<0?sn(N+q,0):Yn(q,N-1)),m===m?MS(f,m,q):kp(f,E0,q,!0)}function kg(f,m){return f&&f.length?rh(f,rr(m)):r}var Eh=tr(gf);function gf(f,m){return f&&f.length&&m&&m.length?tn(f,m):f}function va(f,m,P){return f&&f.length&&m&&m.length?tn(f,m,Bt(P,2)):f}function nl(f,m,P){return f&&f.length&&m&&m.length?tn(f,m,r,P):f}var Xo=Ri(function(f,m){var P=f==null?0:f.length,N=Qp(f,m);return _n(f,jr(m,function(q){return Hr(q,P)?+q:q}).sort(ug)),N});function La(f,m){var P=[];if(!(f&&f.length))return P;var N=-1,q=[],ee=f.length;for(m=Bt(m,3);++N<ee;){var se=f[N];m(se,N,f)&&(P.push(se),q.push(N))}return _n(f,q),P}function Oh(f){return f==null?f:zp.call(f)}function Tg(f,m,P){var N=f==null?0:f.length;return N?(P&&typeof P!="number"&&ha(f,m,P)?(m=0,P=N):(m=m==null?0:rr(m),P=P===r?N:rr(P)),na(f,m,P)):[]}function Ag(f,m){return dc(f,m)}function VS(f,m,P){return ah(f,m,Bt(P,2))}function al(f,m){var P=f==null?0:f.length;if(P){var N=dc(f,m);if(N<P&&hs(f[N],m))return N}return-1}function g_(f,m){return dc(f,m,!0)}function Ig(f,m,P){return ah(f,m,Bt(P,2),!0)}function nu(f,m){var P=f==null?0:f.length;if(P){var N=dc(f,m,!0)-1;if(hs(f[N],m))return N}return-1}function jg(f){return f&&f.length?ag(f):[]}function au(f,m){return f&&f.length?ag(f,Bt(m,2)):[]}function y_(f){var m=f==null?0:f.length;return m?na(f,1,m):[]}function b_(f,m,P){return f&&f.length?(m=P||m===r?1:rr(m),na(f,0,m<0?0:m)):[]}function Mg(f,m,P){var N=f==null?0:f.length;return N?(m=P||m===r?1:rr(m),m=N-m,na(f,m<0?0:m,N)):[]}function Ph(f,m){return f&&f.length?ef(f,Bt(m,3),!1,!0):[]}function WS(f,m){return f&&f.length?ef(f,Bt(m,3)):[]}var HS=tr(function(f){return us(Jr(f,1,xn,!0))}),__=tr(function(f){var m=ma(f);return xn(m)&&(m=r),us(Jr(f,1,xn,!0),Bt(m,2))}),w_=tr(function(f){var m=ma(f);return m=typeof m=="function"?m:r,us(Jr(f,1,xn,!0),r,m)});function ou(f){return f&&f.length?us(f):[]}function KS(f,m){return f&&f.length?us(f,Bt(m,2)):[]}function wc(f,m){return m=typeof m=="function"?m:r,f&&f.length?us(f,r,m):[]}function Rh(f){if(!(f&&f.length))return[];var m=0;return f=Ns(f,function(P){if(xn(P))return m=sn(P.length,m),!0}),Dv(m,function(P){return jr(f,Lv(P))})}function Xr(f,m){if(!(f&&f.length))return[];var P=Rh(f);return m==null?P:jr(P,function(N){return ca(m,r,N)})}var GS=tr(function(f,m){return xn(f)?xi(f,m):[]}),x_=tr(function(f){return ih(Ns(f,xn))}),QS=tr(function(f){var m=ma(f);return xn(m)&&(m=r),ih(Ns(f,xn),Bt(m,2))}),XS=tr(function(f){var m=ma(f);return m=typeof m=="function"?m:r,ih(Ns(f,xn),r,m)}),S_=tr(Rh);function C_(f,m){return tf(f||[],m||[],Gl)}function YS(f,m){return tf(f||[],m||[],Zl)}var Oo=tr(function(f){var m=f.length,P=m>1?f[m-1]:r;return P=typeof P=="function"?(f.pop(),P):r,Xr(f,P)});function kh(f){var m=Z(f);return m.__chain__=!0,m}function JS(f,m){return m(f),f}function Yo(f,m){return m(f)}var Th=Ri(function(f){var m=f.length,P=m?f[0]:0,N=this.__wrapped__,q=function(ee){return Qp(ee,f)};return m>1||this.__actions__.length||!(N instanceof Yt)||!Hr(P)?this.thru(q):(N=N.slice(P,+P+(m?1:0)),N.__actions__.push({func:Yo,args:[q],thisArg:r}),new Jn(N,this.__chain__).thru(function(ee){return m&&!ee.length&&ee.push(r),ee}))});function iu(){return kh(this)}function Ah(){return new Jn(this.value(),this.__chain__)}function Fg(){this.__values__===r&&(this.__values__=Mj(this.value()));var f=this.__index__>=this.__values__.length,m=f?r:this.__values__[this.__index__++];return{done:f,value:m}}function Lg(){return this}function ZS(f){for(var m,P=this;P instanceof yi;){var N=v_(P);N.__index__=0,N.__values__=r,m?q.__wrapped__=N:m=N;var q=N;P=P.__wrapped__}return q.__wrapped__=f,m}function $g(){var f=this.__wrapped__;if(f instanceof Yt){var m=f;return this.__actions__.length&&(m=new Yt(this)),m=m.reverse(),m.__actions__.push({func:Yo,args:[Oh],thisArg:r}),new Jn(m,this.__chain__)}return this.thru(Oh)}function eC(){return fc(this.__wrapped__,this.__actions__)}var E_=uh(function(f,m,P){br.call(f,P)?++f[P]:wi(f,P,1)});function O_(f,m,P){var N=Jt(f)?Av:Gd;return P&&ha(f,m,P)&&(m=r),N(f,Bt(m,3))}function Ih(f,m){var P=Jt(f)?Ns:Qv;return P(f,Bt(m,3))}var jh=tu(el),P_=tu(hf);function Dg(f,m){return Jr(su(f,m),1)}function tC(f,m){return Jr(su(f,m),V)}function R_(f,m,P){return P=P===r?1:rr(P),Jr(su(f,m),P)}function Mh(f,m){var P=Jt(f)?Xn:Si;return P(f,Bt(m,3))}function yf(f,m){var P=Jt(f)?Pp:Q0;return P(f,Bt(m,3))}var Ng=uh(function(f,m,P){br.call(f,P)?f[P].push(m):wi(f,P,[m])});function Fh(f,m,P,N){f=Po(f)?f:Dh(f),P=P&&!N?rr(P):0;var q=f.length;return P<0&&(P=sn(q+P,0)),A_(f)?P<=q&&f.indexOf(m,P)>-1:!!q&&Hu(f,m,P)>-1}var k_=tr(function(f,m,P){var N=-1,q=typeof m=="function",ee=Po(f)?Ie(f.length):[];return Si(f,function(se){ee[++N]=q?ca(m,se,P):wo(se,m,P)}),ee}),rC=uh(function(f,m,P){wi(f,P,m)});function su(f,m){var P=Jt(f)?jr:Zv;return P(f,Bt(m,3))}function nC(f,m,P,N){return f==null?[]:(Jt(m)||(m=m==null?[]:[m]),P=N?r:P,Jt(P)||(P=P==null?[]:[P]),Jd(f,m,P))}var bf=uh(function(f,m,P){f[P?0:1].push(m)},function(){return[[],[]]});function aC(f,m,P){var N=Jt(f)?jv:P0,q=arguments.length<3;return N(f,Bt(m,4),P,q,Si)}function Lh(f,m,P){var N=Jt(f)?OS:P0,q=arguments.length<3;return N(f,Bt(m,4),P,q,Q0)}function s(f,m){var P=Jt(f)?Ns:Qv;return P(f,tt(Bt(m,3)))}function c(f){var m=Jt(f)?_i:ra;return m(f)}function g(f,m,P){(P?ha(f,m,P):m===r)?m=1:m=rr(m);var N=Jt(f)?Kl:rg;return N(f,m)}function x(f){var m=Jt(f)?K0:So;return m(f)}function F(f){if(f==null)return 0;if(Po(f))return A_(f)?zl(f):f.length;var m=Vn(f);return m==Fe||m==Se?f.size:ls(f).length}function D(f,m,P){var N=Jt(f)?Mv:ng;return P&&ha(f,m,P)&&(m=r),N(f,Bt(m,3))}var H=tr(function(f,m){if(f==null)return[];var P=m.length;return P>1&&ha(f,m[0],m[1])?m=[]:P>2&&ha(m[0],m[1],m[2])&&(m=[m[0]]),Jd(f,Jr(m,1),[])}),ae=Dr||function(){return Vr.Date.now()};function fe(f,m){if(typeof m!="function")throw new vo(i);return f=rr(f),function(){if(--f<1)return m.apply(this,arguments)}}function je(f,m,P){return m=P?r:m,m=f&&m==null?f.length:m,Pi(f,L,r,r,r,r,m)}function Xe(f,m){var P;if(typeof m!="function")throw new vo(i);return f=rr(f),function(){return--f>0&&(P=m.apply(this,arguments)),f<=1&&(m=r),P}}var Ze=tr(function(f,m,P){var N=S;if(P.length){var q=mo(P,ds(Ze));N|=T}return Pi(f,N,m,P,q)}),Ge=tr(function(f,m,P){var N=S|A;if(P.length){var q=mo(P,ds(Ge));N|=T}return Pi(m,N,f,P,q)});function pt(f,m,P){m=P?r:m;var N=Pi(f,C,r,r,r,r,r,m);return N.placeholder=pt.placeholder,N}function xt(f,m,P){m=P?r:m;var N=Pi(f,O,r,r,r,r,r,m);return N.placeholder=xt.placeholder,N}function Rt(f,m,P){var N,q,ee,se,he,Ce,Ve=0,We=!1,Ye=!1,dt=!0;if(typeof f!="function")throw new vo(i);m=Ti(m)||0,nn(P)&&(We=!!P.leading,Ye="maxWait"in P,ee=Ye?sn(Ti(P.maxWait)||0,m):ee,dt="trailing"in P?!!P.trailing:dt);function It(Sn){var ms=N,cu=q;return N=q=r,Ve=Sn,se=f.apply(cu,ms),se}function Vt(Sn){return Ve=Sn,he=bc(sr,m),We?It(Sn):se}function nr(Sn){var ms=Sn-Ce,cu=Sn-Ve,Kj=m-ms;return Ye?Yn(Kj,ee-cu):Kj}function Wt(Sn){var ms=Sn-Ce,cu=Sn-Ve;return Ce===r||ms>=m||ms<0||Ye&&cu>=ee}function sr(){var Sn=ae();if(Wt(Sn))return hr(Sn);he=bc(sr,nr(Sn))}function hr(Sn){return he=r,dt&&N?It(Sn):(N=q=r,se)}function Zo(){he!==r&&sg(he),Ve=0,N=Ce=q=he=r}function Ja(){return he===r?se:hr(ae())}function ei(){var Sn=ae(),ms=Wt(Sn);if(N=arguments,q=this,Ce=Sn,ms){if(he===r)return Vt(Ce);if(Ye)return sg(he),he=bc(sr,m),It(Ce)}return he===r&&(he=bc(sr,m)),se}return ei.cancel=Zo,ei.flush=Ja,ei}var rn=tr(function(f,m){return Gv(f,1,m)}),Re=tr(function(f,m,P){return Gv(f,Ti(m)||0,P)});function ye(f){return Pi(f,M)}function ke(f,m){if(typeof f!="function"||m!=null&&typeof m!="function")throw new vo(i);var P=function(){var N=arguments,q=m?m.apply(this,N):N[0],ee=P.cache;if(ee.has(q))return ee.get(q);var se=f.apply(this,N);return P.cache=ee.set(q,se)||ee,se};return P.cache=new(ke.Cache||go),P}ke.Cache=go;function tt(f){if(typeof f!="function")throw new vo(i);return function(){var m=arguments;switch(m.length){case 0:return!f.call(this);case 1:return!f.call(this,m[0]);case 2:return!f.call(this,m[0],m[1]);case 3:return!f.call(this,m[0],m[1],m[2])}return!f.apply(this,m)}}function kt(f){return Xe(2,f)}var Nt=Z0(function(f,m){m=m.length==1&&Jt(m[0])?jr(m[0],Wa(Bt())):jr(Jr(m,1),Wa(Bt()));var P=m.length;return tr(function(N){for(var q=-1,ee=Yn(N.length,P);++q<ee;)N[q]=m[q].call(this,N[q]);return ca(f,this,N)})}),$t=tr(function(f,m){var P=mo(m,ds($t));return Pi(f,T,r,m,P)}),Ut=tr(function(f,m){var P=mo(m,ds(Ut));return Pi(f,E,r,m,P)}),Tn=Ri(function(f,m){return Pi(f,j,r,r,r,m)});function _r(f,m){if(typeof f!="function")throw new vo(i);return m=m===r?m:rr(m),tr(f,m)}function ol(f,m){if(typeof f!="function")throw new vo(i);return m=m==null?0:sn(rr(m),0),tr(function(P){var N=P[m],q=cs(P,0,m);return N&&Bs(q,N),ca(f,this,q)})}function oC(f,m,P){var N=!0,q=!0;if(typeof f!="function")throw new vo(i);return nn(P)&&(N="leading"in P?!!P.leading:N,q="trailing"in P?!!P.trailing:q),Rt(f,m,{leading:N,maxWait:m,trailing:q})}function A8(f){return je(f,1)}function I8(f,m){return $t(sh(m),f)}function j8(){if(!arguments.length)return[];var f=arguments[0];return Jt(f)?f:[f]}function M8(f){return ja(f,b)}function F8(f,m){return m=typeof m=="function"?m:r,ja(f,b,m)}function L8(f){return ja(f,v|b)}function $8(f,m){return m=typeof m=="function"?m:r,ja(f,v|b,m)}function D8(f,m){return m==null||Kd(f,m,aa(m))}function hs(f,m){return f===m||f!==f&&m!==m}var N8=hh(Qs),B8=hh(function(f,m){return f>=m}),_f=Zp(function(){return arguments}())?Zp:function(f){return un(f)&&br.call(f,"callee")&&!$p.call(f,"callee")},Jt=Ie.isArray,z8=kv?Wa(kv):Y0;function Po(f){return f!=null&&T_(f.length)&&!lu(f)}function xn(f){return un(f)&&Po(f)}function q8(f){return f===!0||f===!1||un(f)&&qn(f)==Ee}var xc=Vv||vC,U8=ka?Wa(ka):ss;function V8(f){return un(f)&&f.nodeType===1&&!Bg(f)}function W8(f){if(f==null)return!0;if(Po(f)&&(Jt(f)||typeof f=="string"||typeof f.splice=="function"||xc(f)||$h(f)||_f(f)))return!f.length;var m=Vn(f);if(m==Fe||m==Se)return!f.size;if(fs(f))return!ls(f).length;for(var P in f)if(br.call(f,P))return!1;return!0}function H8(f,m){return xo(f,m)}function K8(f,m,P){P=typeof P=="function"?P:r;var N=P?P(f,m):r;return N===r?xo(f,m,r,P):!!N}function iC(f){if(!un(f))return!1;var m=qn(f);return m==Oe||m==xe||typeof f.message=="string"&&typeof f.name=="string"&&!Bg(f)}function G8(f){return typeof f=="number"&&Ju(f)}function lu(f){if(!nn(f))return!1;var m=qn(f);return m==Te||m==Me||m==Pe||m==oe}function Tj(f){return typeof f=="number"&&f==rr(f)}function T_(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=K}function nn(f){var m=typeof f;return f!=null&&(m=="object"||m=="function")}function un(f){return f!=null&&typeof f=="object"}var Aj=Bl?Wa(Bl):J0;function Q8(f,m){return f===m||lc(f,m,uf(m))}function X8(f,m,P){return P=typeof P=="function"?P:r,lc(f,m,uf(m),P)}function Y8(f){return Ij(f)&&f!=+f}function J8(f){if(US(f))throw new Gt(o);return Yv(f)}function Z8(f){return f===null}function eV(f){return f==null}function Ij(f){return typeof f=="number"||un(f)&&qn(f)==$e}function Bg(f){if(!un(f)||qn(f)!=qe)return!1;var m=Uo(f);if(m===null)return!0;var P=br.call(m,"constructor")&&m.constructor;return typeof P=="function"&&P instanceof P&&$d.call(P)==Fp}var sC=Op?Wa(Op):Xd;function tV(f){return Tj(f)&&f>=-9007199254740991&&f<=K}var jj=Wu?Wa(Wu):Ci;function A_(f){return typeof f=="string"||!Jt(f)&&un(f)&&qn(f)==ne}function Jo(f){return typeof f=="symbol"||un(f)&&qn(f)==we}var $h=x0?Wa(x0):Yd;function rV(f){return f===r}function nV(f){return un(f)&&Vn(f)==De}function aV(f){return un(f)&&qn(f)==ht}var oV=hh(Xs),iV=hh(function(f,m){return f<=m});function Mj(f){if(!f)return[];if(Po(f))return A_(f)?Ha(f):fa(f);if(rs&&f[rs])return IS(f[rs]());var m=Vn(f),P=m==Fe?Ap:m==Se?zs:Dh;return P(f)}function uu(f){if(!f)return f===0?f:0;if(f=Ti(f),f===V||f===-1/0){var m=f<0?-1:1;return m*X}return f===f?f:0}function rr(f){var m=uu(f),P=m%1;return m===m?P?m-P:m:0}function Fj(f){return f?as(rr(f),0,G):0}function Ti(f){if(typeof f=="number")return f;if(Jo(f))return te;if(nn(f)){var m=typeof f.valueOf=="function"?f.valueOf():f;f=nn(m)?m+"":m}if(typeof f!="string")return f===0?f:+f;f=R0(f);var P=sa.test(f);return P||js.test(f)?Cp(f.slice(2),P?2:8):bn.test(f)?te:+f}function Lj(f){return Wo(f,Ro(f))}function sV(f){return f?as(rr(f),-9007199254740991,K):f===0?f:0}function kr(f){return f==null?"":Ma(f)}var lV=hc(function(f,m){if(fs(m)||Po(m)){Wo(m,aa(m),f);return}for(var P in m)br.call(m,P)&&Gl(f,P,m[P])}),$j=hc(function(f,m){Wo(m,Ro(m),f)}),I_=hc(function(f,m,P,N){Wo(m,Ro(m),f,N)}),uV=hc(function(f,m,P,N){Wo(m,aa(m),f,N)}),cV=Ri(Qp);function dV(f,m){var P=nc(f);return m==null?P:Br(P,m)}var fV=tr(function(f,m){f=Rr(f);var P=-1,N=m.length,q=N>2?m[2]:r;for(q&&ha(m[0],m[1],q)&&(N=1);++P<N;)for(var ee=m[P],se=Ro(ee),he=-1,Ce=se.length;++he<Ce;){var Ve=se[he],We=f[Ve];(We===r||hs(We,vi[Ve])&&!br.call(f,Ve))&&(f[Ve]=ee[Ve])}return f}),pV=tr(function(f){return f.push(r,vg),ca(Dj,r,f)});function hV(f,m){return C0(f,Bt(m,3),Qa)}function mV(f,m){return C0(f,Bt(m,3),Gs)}function vV(f,m){return f==null?f:Xp(f,Bt(m,3),Ro)}function gV(f,m){return f==null?f:Qd(f,Bt(m,3),Ro)}function yV(f,m){return f&&Qa(f,Bt(m,3))}function bV(f,m){return f&&Gs(f,Bt(m,3))}function _V(f){return f==null?[]:sc(f,aa(f))}function wV(f){return f==null?[]:sc(f,Ro(f))}function lC(f,m,P){var N=f==null?r:os(f,m);return N===r?P:N}function xV(f,m){return f!=null&&wg(f,m,_o)}function uC(f,m){return f!=null&&wg(f,m,Xl)}var SV=o_(function(f,m,P){m!=null&&typeof m.toString!="function"&&(m=Dd.call(m)),f[m]=P},dC(ko)),CV=o_(function(f,m,P){m!=null&&typeof m.toString!="function"&&(m=Dd.call(m)),br.call(f,m)?f[m].push(P):f[m]=[P]},Bt),EV=tr(wo);function aa(f){return Po(f)?bi(f):ls(f)}function Ro(f){return Po(f)?bi(f,!0):Jv(f)}function OV(f,m){var P={};return m=Bt(m,3),Qa(f,function(N,q,ee){wi(P,m(N,q,ee),N)}),P}function PV(f,m){var P={};return m=Bt(m,3),Qa(f,function(N,q,ee){wi(P,q,m(N,q,ee))}),P}var RV=hc(function(f,m,P){Yl(f,m,P)}),Dj=hc(function(f,m,P,N){Yl(f,m,P,N)}),kV=Ri(function(f,m){var P={};if(f==null)return P;var N=!1;m=jr(m,function(ee){return ee=Oi(ee,f),N||(N=ee.length>1),ee}),Wo(f,sf(f),P),N&&(P=ja(P,v|y|b,gg));for(var q=m.length;q--;)oh(P,m[q]);return P});function TV(f,m){return Nj(f,tt(Bt(m)))}var AV=Ri(function(f,m){return f==null?{}:tg(f,m)});function Nj(f,m){if(f==null)return{};var P=jr(sf(f),function(N){return[N]});return m=Bt(m),Ys(f,P,function(N,q){return m(N,q[0])})}function IV(f,m,P){m=Oi(m,f);var N=-1,q=m.length;for(q||(q=1,f=r);++N<q;){var ee=f==null?r:f[Qo(m[N])];ee===r&&(N=q,ee=P),f=lu(ee)?ee.call(f):ee}return f}function jV(f,m,P){return f==null?f:Zl(f,m,P)}function MV(f,m,P,N){return N=typeof N=="function"?N:r,f==null?f:Zl(f,m,P,N)}var Bj=hg(aa),zj=hg(Ro);function FV(f,m,P){var N=Jt(f),q=N||xc(f)||$h(f);if(m=Bt(m,4),P==null){var ee=f&&f.constructor;q?P=N?new ee:[]:nn(f)?P=lu(ee)?nc(Uo(f)):{}:P={}}return(q?Xn:Qa)(f,function(se,he,Ce){return m(P,se,he,Ce)}),P}function LV(f,m){return f==null?!0:oh(f,m)}function $V(f,m,P){return f==null?f:ig(f,m,sh(P))}function DV(f,m,P,N){return N=typeof N=="function"?N:r,f==null?f:ig(f,m,sh(P),N)}function Dh(f){return f==null?[]:Fd(f,aa(f))}function NV(f){return f==null?[]:Fd(f,Ro(f))}function BV(f,m,P){return P===r&&(P=m,m=r),P!==r&&(P=Ti(P),P=P===P?P:0),m!==r&&(m=Ti(m),m=m===m?m:0),as(Ti(f),m,P)}function zV(f,m,P){return m=uu(m),P===r?(P=m,m=0):P=uu(P),f=Ti(f),Xv(f,m,P)}function qV(f,m,P){if(P&&typeof P!="boolean"&&ha(f,m,P)&&(m=P=r),P===r&&(typeof m=="boolean"?(P=m,m=r):typeof f=="boolean"&&(P=f,f=r)),f===r&&m===r?(f=0,m=1):(f=uu(f),m===r?(m=f,f=0):m=uu(m)),f>m){var N=f;f=m,m=N}if(P||f%1||m%1){var q=qd();return Yn(f+q*(m-f+Pv("1e-"+((q+"").length-1))),m)}return cc(f,m)}var UV=eu(function(f,m,P){return m=m.toLowerCase(),f+(P?qj(m):m)});function qj(f){return cC(kr(f).toLowerCase())}function Uj(f){return f=kr(f),f&&f.replace(Ms,A0).replace(y0,"")}function VV(f,m,P){f=kr(f),m=Ma(m);var N=f.length;P=P===r?N:as(rr(P),0,N);var q=P;return P-=m.length,P>=0&&f.slice(P,q)==m}function WV(f){return f=kr(f),f&&Bo.test(f)?f.replace(ia,I0):f}function HV(f){return f=kr(f),f&&Ke.test(f)?f.replace(Le,"\\$&"):f}var KV=eu(function(f,m,P){return f+(P?"-":"")+m.toLowerCase()}),GV=eu(function(f,m,P){return f+(P?" ":"")+m.toLowerCase()}),QV=dg("toLowerCase");function XV(f,m,P){f=kr(f),m=rr(m);var N=m?zl(f):0;if(!m||N>=m)return f;var q=(m-N)/2;return af(qs(q),P)+f+af(Ul(q),P)}function YV(f,m,P){f=kr(f),m=rr(m);var N=m?zl(f):0;return m&&N<m?f+af(m-N,P):f}function JV(f,m,P){f=kr(f),m=rr(m);var N=m?zl(f):0;return m&&N<m?af(m-N,P)+f:f}function ZV(f,m,P){return P||m==null?m=0:m&&(m=+m),z0(kr(f).replace(at,""),m||0)}function eW(f,m,P){return(P?ha(f,m,P):m===r)?m=1:m=rr(m),Jl(kr(f),m)}function tW(){var f=arguments,m=kr(f[0]);return f.length<3?m:m.replace(f[1],f[2])}var rW=eu(function(f,m,P){return f+(P?"_":"")+m.toLowerCase()});function nW(f,m,P){return P&&typeof P!="number"&&ha(f,m,P)&&(m=P=r),P=P===r?G:P>>>0,P?(f=kr(f),f&&(typeof m=="string"||m!=null&&!sC(m))&&(m=Ma(m),!m&&Gu(f))?cs(Ha(f),0,P):f.split(m,P)):[]}var aW=eu(function(f,m,P){return f+(P?" ":"")+cC(m)});function oW(f,m,P){return f=kr(f),P=P==null?0:as(rr(P),0,f.length),m=Ma(m),f.slice(P,P+m.length)==m}function iW(f,m,P){var N=Z.templateSettings;P&&ha(f,m,P)&&(m=r),f=kr(f),m=I_({},m,N,mg);var q=I_({},m.imports,N.imports,mg),ee=aa(q),se=Fd(q,ee),he,Ce,Ve=0,We=m.interpolate||zn,Ye="__p += '",dt=Ld((m.escape||zn).source+"|"+We.source+"|"+(We===Ht?ur:zn).source+"|"+(m.evaluate||zn).source+"|$","g"),It="//# sourceURL="+(br.call(m,"sourceURL")?(m.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++SS+"]")+`
`;f.replace(dt,function(Wt,sr,hr,Zo,Ja,ei){return hr||(hr=Zo),Ye+=f.slice(Ve,ei).replace(Fl,j0),sr&&(he=!0,Ye+=`' +
__e(`+sr+`) +
'`),Ja&&(Ce=!0,Ye+=`';
`+Ja+`;
__p += '`),hr&&(Ye+=`' +
((__t = (`+hr+`)) == null ? '' : __t) +
'`),Ve=ei+Wt.length,Wt}),Ye+=`';
`;var Vt=br.call(m,"variable")&&m.variable;if(!Vt)Ye=`with (obj) {
`+Ye+`
}
`;else if(Ft.test(Vt))throw new Gt(u);Ye=(Ce?Ye.replace(en,""):Ye).replace(Bn,"$1").replace(Xi,"$1;"),Ye="function("+(Vt||"obj")+`) {
`+(Vt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(he?", __e = _.escape":"")+(Ce?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Ye+`return __p
}`;var nr=Wj(function(){return yr(ee,It+"return "+Ye).apply(r,se)});if(nr.source=Ye,iC(nr))throw nr;return nr}function sW(f){return kr(f).toLowerCase()}function lW(f){return kr(f).toUpperCase()}function uW(f,m,P){if(f=kr(f),f&&(P||m===r))return R0(f);if(!f||!(m=Ma(m)))return f;var N=Ha(f),q=Ha(m),ee=k0(N,q),se=Nv(N,q)+1;return cs(N,ee,se).join("")}function cW(f,m,P){if(f=kr(f),f&&(P||m===r))return f.slice(0,jp(f)+1);if(!f||!(m=Ma(m)))return f;var N=Ha(f),q=Nv(N,Ha(m))+1;return cs(N,0,q).join("")}function dW(f,m,P){if(f=kr(f),f&&(P||m===r))return f.replace(at,"");if(!f||!(m=Ma(m)))return f;var N=Ha(f),q=k0(N,Ha(m));return cs(N,q).join("")}function fW(f,m){var P=k,N=$;if(nn(m)){var q="separator"in m?m.separator:q;P="length"in m?rr(m.length):P,N="omission"in m?Ma(m.omission):N}f=kr(f);var ee=f.length;if(Gu(f)){var se=Ha(f);ee=se.length}if(P>=ee)return f;var he=P-zl(N);if(he<1)return N;var Ce=se?cs(se,0,he).join(""):f.slice(0,he);if(q===r)return Ce+N;if(se&&(he+=Ce.length-he),sC(q)){if(f.slice(he).search(q)){var Ve,We=Ce;for(q.global||(q=Ld(q.source,kr(Gr.exec(q))+"g")),q.lastIndex=0;Ve=q.exec(We);)var Ye=Ve.index;Ce=Ce.slice(0,Ye===r?he:Ye)}}else if(f.indexOf(Ma(q),he)!=he){var dt=Ce.lastIndexOf(q);dt>-1&&(Ce=Ce.slice(0,dt))}return Ce+N}function pW(f){return f=kr(f),f&&Yi.test(f)?f.replace(Pa,M0):f}var hW=eu(function(f,m,P){return f+(P?" ":"")+m.toUpperCase()}),cC=dg("toUpperCase");function Vj(f,m,P){return f=kr(f),m=P?r:m,m===r?AS(f)?FS(f):RS(f):f.match(m)||[]}var Wj=tr(function(f,m){try{return ca(f,r,m)}catch(P){return iC(P)?P:new Gt(P)}}),mW=Ri(function(f,m){return Xn(m,function(P){P=Qo(P),wi(f,P,Ze(f[P],f))}),f});function vW(f){var m=f==null?0:f.length,P=Bt();return f=m?jr(f,function(N){if(typeof N[1]!="function")throw new vo(i);return[P(N[0]),N[1]]}):[],tr(function(N){for(var q=-1;++q<m;){var ee=f[q];if(ca(ee[0],this,N))return ca(ee[1],this,N)}})}function gW(f){return G0(ja(f,v))}function dC(f){return function(){return f}}function yW(f,m){return f==null||f!==f?m:f}var bW=fh(),_W=fh(!0);function ko(f){return f}function fC(f){return uc(typeof f=="function"?f:ja(f,v))}function wW(f){return th(ja(f,v))}function xW(f,m){return Wr(f,ja(m,v))}var SW=tr(function(f,m){return function(P){return wo(P,f,m)}}),CW=tr(function(f,m){return function(P){return wo(f,P,m)}});function pC(f,m,P){var N=aa(m),q=sc(m,N);P==null&&!(nn(m)&&(q.length||!N.length))&&(P=m,m=f,f=this,q=sc(m,aa(m)));var ee=!(nn(P)&&"chain"in P)||!!P.chain,se=lu(f);return Xn(q,function(he){var Ce=m[he];f[he]=Ce,se&&(f.prototype[he]=function(){var Ve=this.__chain__;if(ee||Ve){var We=f(this.__wrapped__),Ye=We.__actions__=fa(this.__actions__);return Ye.push({func:Ce,args:arguments,thisArg:f}),We.__chain__=Ve,We}return Ce.apply(f,Bs([this.value()],arguments))})}),f}function EW(){return Vr._===this&&(Vr._=$0),this}function hC(){}function OW(f){return f=rr(f),tr(function(m){return rh(m,f)})}var PW=ph(jr),RW=ph(Av),kW=ph(Mv);function Hj(f){return vt(f)?Lv(Qo(f)):Qr(f)}function TW(f){return function(m){return f==null?r:os(f,m)}}var AW=pg(),IW=pg(!0);function mC(){return[]}function vC(){return!1}function jW(){return{}}function MW(){return""}function FW(){return!0}function LW(f,m){if(f=rr(f),f<1||f>K)return[];var P=G,N=Yn(f,G);m=Bt(m),f-=G;for(var q=Dv(N,m);++P<f;)m(P);return q}function $W(f){return Jt(f)?jr(f,Qo):Jo(f)?[f]:fa(Eg(kr(f)))}function DW(f){var m=++Yu;return kr(f)+m}var NW=nf(function(f,m){return f+m},0),BW=Un("ceil"),zW=nf(function(f,m){return f/m},1),qW=Un("floor");function UW(f){return f&&f.length?Ql(f,ko,Qs):r}function VW(f,m){return f&&f.length?Ql(f,Bt(m,2),Qs):r}function WW(f){return O0(f,ko)}function HW(f,m){return O0(f,Bt(m,2))}function KW(f){return f&&f.length?Ql(f,ko,Xs):r}function GW(f,m){return f&&f.length?Ql(f,Bt(m,2),Xs):r}var QW=nf(function(f,m){return f*m},1),XW=Un("round"),YW=nf(function(f,m){return f-m},0);function JW(f){return f&&f.length?$v(f,ko):0}function ZW(f,m){return f&&f.length?$v(f,Bt(m,2)):0}return Z.after=fe,Z.ary=je,Z.assign=lV,Z.assignIn=$j,Z.assignInWith=I_,Z.assignWith=uV,Z.at=cV,Z.before=Xe,Z.bind=Ze,Z.bindAll=mW,Z.bindKey=Ge,Z.castArray=j8,Z.chain=kh,Z.chunk=wh,Z.compact=Og,Z.concat=Eo,Z.cond=vW,Z.conforms=gW,Z.constant=dC,Z.countBy=E_,Z.create=dV,Z.curry=pt,Z.curryRight=xt,Z.debounce=Rt,Z.defaults=fV,Z.defaultsDeep=pV,Z.defer=rn,Z.delay=Re,Z.difference=pr,Z.differenceBy=kn,Z.differenceWith=ln,Z.drop=Hn,Z.dropRight=Ya,Z.dropRightWhile=_c,Z.dropWhile=wn,Z.fill=pf,Z.filter=Ih,Z.flatMap=Dg,Z.flatMapDeep=tC,Z.flatMapDepth=R_,Z.flatten=xh,Z.flattenDeep=mf,Z.flattenDepth=Fa,Z.flip=ye,Z.flow=bW,Z.flowRight=_W,Z.fromPairs=Pg,Z.functions=_V,Z.functionsIn=wV,Z.groupBy=Ng,Z.initial=Sh,Z.intersection=Rg,Z.intersectionBy=tl,Z.intersectionWith=Ch,Z.invert=SV,Z.invertBy=CV,Z.invokeMap=k_,Z.iteratee=fC,Z.keyBy=rC,Z.keys=aa,Z.keysIn=Ro,Z.map=su,Z.mapKeys=OV,Z.mapValues=PV,Z.matches=wW,Z.matchesProperty=xW,Z.memoize=ke,Z.merge=RV,Z.mergeWith=Dj,Z.method=SW,Z.methodOf=CW,Z.mixin=pC,Z.negate=tt,Z.nthArg=OW,Z.omit=kV,Z.omitBy=TV,Z.once=kt,Z.orderBy=nC,Z.over=PW,Z.overArgs=Nt,Z.overEvery=RW,Z.overSome=kW,Z.partial=$t,Z.partialRight=Ut,Z.partition=bf,Z.pick=AV,Z.pickBy=Nj,Z.property=Hj,Z.propertyOf=TW,Z.pull=Eh,Z.pullAll=gf,Z.pullAllBy=va,Z.pullAllWith=nl,Z.pullAt=Xo,Z.range=AW,Z.rangeRight=IW,Z.rearg=Tn,Z.reject=s,Z.remove=La,Z.rest=_r,Z.reverse=Oh,Z.sampleSize=g,Z.set=jV,Z.setWith=MV,Z.shuffle=x,Z.slice=Tg,Z.sortBy=H,Z.sortedUniq=jg,Z.sortedUniqBy=au,Z.split=nW,Z.spread=ol,Z.tail=y_,Z.take=b_,Z.takeRight=Mg,Z.takeRightWhile=Ph,Z.takeWhile=WS,Z.tap=JS,Z.throttle=oC,Z.thru=Yo,Z.toArray=Mj,Z.toPairs=Bj,Z.toPairsIn=zj,Z.toPath=$W,Z.toPlainObject=Lj,Z.transform=FV,Z.unary=A8,Z.union=HS,Z.unionBy=__,Z.unionWith=w_,Z.uniq=ou,Z.uniqBy=KS,Z.uniqWith=wc,Z.unset=LV,Z.unzip=Rh,Z.unzipWith=Xr,Z.update=$V,Z.updateWith=DV,Z.values=Dh,Z.valuesIn=NV,Z.without=GS,Z.words=Vj,Z.wrap=I8,Z.xor=x_,Z.xorBy=QS,Z.xorWith=XS,Z.zip=S_,Z.zipObject=C_,Z.zipObjectDeep=YS,Z.zipWith=Oo,Z.entries=Bj,Z.entriesIn=zj,Z.extend=$j,Z.extendWith=I_,pC(Z,Z),Z.add=NW,Z.attempt=Wj,Z.camelCase=UV,Z.capitalize=qj,Z.ceil=BW,Z.clamp=BV,Z.clone=M8,Z.cloneDeep=L8,Z.cloneDeepWith=$8,Z.cloneWith=F8,Z.conformsTo=D8,Z.deburr=Uj,Z.defaultTo=yW,Z.divide=zW,Z.endsWith=VV,Z.eq=hs,Z.escape=WV,Z.escapeRegExp=HV,Z.every=O_,Z.find=jh,Z.findIndex=el,Z.findKey=hV,Z.findLast=P_,Z.findLastIndex=hf,Z.findLastKey=mV,Z.floor=qW,Z.forEach=Mh,Z.forEachRight=yf,Z.forIn=vV,Z.forInRight=gV,Z.forOwn=yV,Z.forOwnRight=bV,Z.get=lC,Z.gt=N8,Z.gte=B8,Z.has=xV,Z.hasIn=uC,Z.head=ru,Z.identity=ko,Z.includes=Fh,Z.indexOf=ps,Z.inRange=zV,Z.invoke=EV,Z.isArguments=_f,Z.isArray=Jt,Z.isArrayBuffer=z8,Z.isArrayLike=Po,Z.isArrayLikeObject=xn,Z.isBoolean=q8,Z.isBuffer=xc,Z.isDate=U8,Z.isElement=V8,Z.isEmpty=W8,Z.isEqual=H8,Z.isEqualWith=K8,Z.isError=iC,Z.isFinite=G8,Z.isFunction=lu,Z.isInteger=Tj,Z.isLength=T_,Z.isMap=Aj,Z.isMatch=Q8,Z.isMatchWith=X8,Z.isNaN=Y8,Z.isNative=J8,Z.isNil=eV,Z.isNull=Z8,Z.isNumber=Ij,Z.isObject=nn,Z.isObjectLike=un,Z.isPlainObject=Bg,Z.isRegExp=sC,Z.isSafeInteger=tV,Z.isSet=jj,Z.isString=A_,Z.isSymbol=Jo,Z.isTypedArray=$h,Z.isUndefined=rV,Z.isWeakMap=nV,Z.isWeakSet=aV,Z.join=rl,Z.kebabCase=KV,Z.last=ma,Z.lastIndexOf=vf,Z.lowerCase=GV,Z.lowerFirst=QV,Z.lt=oV,Z.lte=iV,Z.max=UW,Z.maxBy=VW,Z.mean=WW,Z.meanBy=HW,Z.min=KW,Z.minBy=GW,Z.stubArray=mC,Z.stubFalse=vC,Z.stubObject=jW,Z.stubString=MW,Z.stubTrue=FW,Z.multiply=QW,Z.nth=kg,Z.noConflict=EW,Z.noop=hC,Z.now=ae,Z.pad=XV,Z.padEnd=YV,Z.padStart=JV,Z.parseInt=ZV,Z.random=qV,Z.reduce=aC,Z.reduceRight=Lh,Z.repeat=eW,Z.replace=tW,Z.result=IV,Z.round=XW,Z.runInContext=_e,Z.sample=c,Z.size=F,Z.snakeCase=rW,Z.some=D,Z.sortedIndex=Ag,Z.sortedIndexBy=VS,Z.sortedIndexOf=al,Z.sortedLastIndex=g_,Z.sortedLastIndexBy=Ig,Z.sortedLastIndexOf=nu,Z.startCase=aW,Z.startsWith=oW,Z.subtract=YW,Z.sum=JW,Z.sumBy=ZW,Z.template=iW,Z.times=LW,Z.toFinite=uu,Z.toInteger=rr,Z.toLength=Fj,Z.toLower=sW,Z.toNumber=Ti,Z.toSafeInteger=sV,Z.toString=kr,Z.toUpper=lW,Z.trim=uW,Z.trimEnd=cW,Z.trimStart=dW,Z.truncate=fW,Z.unescape=pW,Z.uniqueId=DW,Z.upperCase=hW,Z.upperFirst=cC,Z.each=Mh,Z.eachRight=yf,Z.first=ru,pC(Z,function(){var f={};return Qa(Z,function(m,P){br.call(Z.prototype,P)||(f[P]=m)}),f}(),{chain:!1}),Z.VERSION=n,Xn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){Z[f].placeholder=Z}),Xn(["drop","take"],function(f,m){Yt.prototype[f]=function(P){P=P===r?1:sn(rr(P),0);var N=this.__filtered__&&!m?new Yt(this):this.clone();return N.__filtered__?N.__takeCount__=Yn(P,N.__takeCount__):N.__views__.push({size:Yn(P,G),type:f+(N.__dir__<0?"Right":"")}),N},Yt.prototype[f+"Right"]=function(P){return this.reverse()[f](P).reverse()}}),Xn(["filter","map","takeWhile"],function(f,m){var P=m+1,N=P==U||P==Q;Yt.prototype[f]=function(q){var ee=this.clone();return ee.__iteratees__.push({iteratee:Bt(q,3),type:P}),ee.__filtered__=ee.__filtered__||N,ee}}),Xn(["head","last"],function(f,m){var P="take"+(m?"Right":"");Yt.prototype[f]=function(){return this[P](1).value()[0]}}),Xn(["initial","tail"],function(f,m){var P="drop"+(m?"":"Right");Yt.prototype[f]=function(){return this.__filtered__?new Yt(this):this[P](1)}}),Yt.prototype.compact=function(){return this.filter(ko)},Yt.prototype.find=function(f){return this.filter(f).head()},Yt.prototype.findLast=function(f){return this.reverse().find(f)},Yt.prototype.invokeMap=tr(function(f,m){return typeof f=="function"?new Yt(this):this.map(function(P){return wo(P,f,m)})}),Yt.prototype.reject=function(f){return this.filter(tt(Bt(f)))},Yt.prototype.slice=function(f,m){f=rr(f);var P=this;return P.__filtered__&&(f>0||m<0)?new Yt(P):(f<0?P=P.takeRight(-f):f&&(P=P.drop(f)),m!==r&&(m=rr(m),P=m<0?P.dropRight(-m):P.take(m-f)),P)},Yt.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},Yt.prototype.toArray=function(){return this.take(G)},Qa(Yt.prototype,function(f,m){var P=/^(?:filter|find|map|reject)|While$/.test(m),N=/^(?:head|last)$/.test(m),q=Z[N?"take"+(m=="last"?"Right":""):m],ee=N||/^find/.test(m);q&&(Z.prototype[m]=function(){var se=this.__wrapped__,he=N?[1]:arguments,Ce=se instanceof Yt,Ve=he[0],We=Ce||Jt(se),Ye=function(sr){var hr=q.apply(Z,Bs([sr],he));return N&&dt?hr[0]:hr};We&&P&&typeof Ve=="function"&&Ve.length!=1&&(Ce=We=!1);var dt=this.__chain__,It=!!this.__actions__.length,Vt=ee&&!dt,nr=Ce&&!It;if(!ee&&We){se=nr?se:new Yt(this);var Wt=f.apply(se,he);return Wt.__actions__.push({func:Yo,args:[Ye],thisArg:r}),new Jn(Wt,dt)}return Vt&&nr?f.apply(this,he):(Wt=this.thru(Ye),Vt?N?Wt.value()[0]:Wt.value():Wt)})}),Xn(["pop","push","shift","sort","splice","unshift"],function(f){var m=es[f],P=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",N=/^(?:pop|shift)$/.test(f);Z.prototype[f]=function(){var q=arguments;if(N&&!this.__chain__){var ee=this.value();return m.apply(Jt(ee)?ee:[],q)}return this[P](function(se){return m.apply(Jt(se)?se:[],q)})}}),Qa(Yt.prototype,function(f,m){var P=Z[m];if(P){var N=P.name+"";br.call(tc,N)||(tc[N]=[]),tc[N].push({name:m,func:P})}}),tc[vc(r,A).name]=[{name:"wrapper",func:r}],Yt.prototype.clone=Vp,Yt.prototype.reverse=Hv,Yt.prototype.value=ac,Z.prototype.at=Th,Z.prototype.chain=iu,Z.prototype.commit=Ah,Z.prototype.next=Fg,Z.prototype.plant=ZS,Z.prototype.reverse=$g,Z.prototype.toJSON=Z.prototype.valueOf=Z.prototype.value=eC,Z.prototype.first=Z.prototype.head,rs&&(Z.prototype[rs]=Lg),Z},Qu=LS();mi?((mi.exports=Qu)._=Qu,Md._=Qu):Vr._=Qu}).call(dH)}(oy,oy.exports)),oy.exports}var Ab=fH(),SC,oM;function D5(){if(oM)return SC;oM=1;var e=Object.prototype.toString;return SC=function(r){var n=e.call(r),a=n==="[object Arguments]";return a||(a=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),a},SC}var CC,iM;function pH(){if(iM)return CC;iM=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=D5(),a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),i=a.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(y){var b=y.constructor;return b&&b.prototype===y},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if(typeof window>"u")return!1;for(var y in window)try{if(!l["$"+y]&&t.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{d(window[y])}catch{return!0}}catch{return!0}return!1}(),v=function(y){if(typeof window>"u"||!h)return d(y);try{return d(y)}catch{return!1}};e=function(b){var _=b!==null&&typeof b=="object",w=r.call(b)==="[object Function]",S=n(b),A=_&&r.call(b)==="[object String]",R=[];if(!_&&!w&&!S)throw new TypeError("Object.keys called on a non-object");var C=i&&w;if(A&&b.length>0&&!t.call(b,0))for(var O=0;O<b.length;++O)R.push(String(O));if(S&&b.length>0)for(var T=0;T<b.length;++T)R.push(String(T));else for(var E in b)!(C&&E==="prototype")&&t.call(b,E)&&R.push(String(E));if(o)for(var L=v(b),j=0;j<u.length;++j)!(L&&u[j]==="constructor")&&t.call(b,u[j])&&R.push(u[j]);return R}}return CC=e,CC}var EC,sM;function hH(){if(sM)return EC;sM=1;var e=Array.prototype.slice,t=D5(),r=Object.keys,n=r?function(i){return r(i)}:pH(),a=Object.keys;return n.shim=function(){if(Object.keys){var i=function(){var u=Object.keys(arguments);return u&&u.length===arguments.length}(1,2);i||(Object.keys=function(d){return t(d)?a(e.call(d)):a(d)})}else Object.keys=n;return Object.keys||n},EC=n,EC}var OC,lM;function mH(){return lM||(lM=1,OC=Error),OC}var PC,uM;function vH(){return uM||(uM=1,PC=EvalError),PC}var RC,cM;function gH(){return cM||(cM=1,RC=RangeError),RC}var kC,dM;function yH(){return dM||(dM=1,kC=ReferenceError),kC}var TC,fM;function N5(){return fM||(fM=1,TC=SyntaxError),TC}var AC,pM;function Ib(){return pM||(pM=1,AC=TypeError),AC}var IC,hM;function bH(){return hM||(hM=1,IC=URIError),IC}var jC,mM;function _H(){return mM||(mM=1,jC=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,r);if(i.value!==a||i.enumerable!==!0)return!1}return!0}),jC}var MC,vM;function wH(){if(vM)return MC;vM=1;var e=typeof Symbol<"u"&&Symbol,t=_H();return MC=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},MC}var FC,gM;function xH(){if(gM)return FC;gM=1;var e={__proto__:null,foo:{}},t=Object;return FC=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof t)},FC}var LC,yM;function SH(){if(yM)return LC;yM=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",a=function(d,l){for(var h=[],v=0;v<d.length;v+=1)h[v]=d[v];for(var y=0;y<l.length;y+=1)h[y+d.length]=l[y];return h},o=function(d,l){for(var h=[],v=l,y=0;v<d.length;v+=1,y+=1)h[y]=d[v];return h},i=function(u,d){for(var l="",h=0;h<u.length;h+=1)l+=u[h],h+1<u.length&&(l+=d);return l};return LC=function(d){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var h=o(arguments,1),v,y=function(){if(this instanceof v){var A=l.apply(this,a(h,arguments));return Object(A)===A?A:this}return l.apply(d,a(h,arguments))},b=r(0,l.length-h.length),_=[],w=0;w<b;w++)_[w]="$"+w;if(v=Function("binder","return function ("+i(_,",")+"){ return binder.apply(this,arguments); }")(y),l.prototype){var S=function(){};S.prototype=l.prototype,v.prototype=new S,S.prototype=null}return v},LC}var $C,bM;function fA(){if(bM)return $C;bM=1;var e=SH();return $C=Function.prototype.bind||e,$C}var DC,_M;function B5(){if(_M)return DC;_M=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=fA();return DC=r.call(e,t),DC}var NC,wM;function jb(){if(wM)return NC;wM=1;var e,t=mH(),r=vH(),n=gH(),a=yH(),o=N5(),i=Ib(),u=bH(),d=Function,l=function(V){try{return d('"use strict"; return ('+V+").constructor;")()}catch{}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch{h=null}var v=function(){throw new i},y=h?function(){try{return arguments.callee,v}catch{try{return h(arguments,"callee").get}catch{return v}}}():v,b=wH()(),_=xH()(),w=Object.getPrototypeOf||(_?function(V){return V.__proto__}:null),S={},A=typeof Uint8Array>"u"||!w?e:w(Uint8Array),R={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":b&&w?w([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":r,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":S,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":b&&w?w(w([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!b||!w?e:w(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":n,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!b||!w?e:w(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":b&&w?w(""[Symbol.iterator]()):e,"%Symbol%":b?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":y,"%TypedArray%":A,"%TypeError%":i,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};if(w)try{null.error}catch(V){var C=w(w(V));R["%Error.prototype%"]=C}var O=function V(K){var X;if(K==="%AsyncFunction%")X=l("async function () {}");else if(K==="%GeneratorFunction%")X=l("function* () {}");else if(K==="%AsyncGeneratorFunction%")X=l("async function* () {}");else if(K==="%AsyncGenerator%"){var te=V("%AsyncGeneratorFunction%");te&&(X=te.prototype)}else if(K==="%AsyncIteratorPrototype%"){var G=V("%AsyncGenerator%");G&&w&&(X=w(G.prototype))}return R[K]=X,X},T={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=fA(),L=B5(),j=E.call(Function.call,Array.prototype.concat),M=E.call(Function.apply,Array.prototype.splice),k=E.call(Function.call,String.prototype.replace),$=E.call(Function.call,String.prototype.slice),B=E.call(Function.call,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,W=function(K){var X=$(K,0,1),te=$(K,-1);if(X==="%"&&te!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(te==="%"&&X!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var G=[];return k(K,z,function(J,de,ce,ue){G[G.length]=ce?k(ue,U,"$1"):de||J}),G},Q=function(K,X){var te=K,G;if(L(T,te)&&(G=T[te],te="%"+G[0]+"%"),L(R,te)){var J=R[te];if(J===S&&(J=O(te)),typeof J>"u"&&!X)throw new i("intrinsic "+K+" exists, but is not available. Please file an issue!");return{alias:G,name:te,value:J}}throw new o("intrinsic "+K+" does not exist!")};return NC=function(K,X){if(typeof K!="string"||K.length===0)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof X!="boolean")throw new i('"allowMissing" argument must be a boolean');if(B(/^%?[^%]*%?$/,K)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var te=W(K),G=te.length>0?te[0]:"",J=Q("%"+G+"%",X),de=J.name,ce=J.value,ue=!1,be=J.alias;be&&(G=be[0],M(te,j([0,1],be)));for(var Pe=1,Ee=!0;Pe<te.length;Pe+=1){var ge=te[Pe],xe=$(ge,0,1),Oe=$(ge,-1);if((xe==='"'||xe==="'"||xe==="`"||Oe==='"'||Oe==="'"||Oe==="`")&&xe!==Oe)throw new o("property names with quotes must have matching quotes");if((ge==="constructor"||!Ee)&&(ue=!0),G+="."+ge,de="%"+G+"%",L(R,de))ce=R[de];else if(ce!=null){if(!(ge in ce)){if(!X)throw new i("base intrinsic for "+K+" exists, but the property is not available.");return}if(h&&Pe+1>=te.length){var Te=h(ce,ge);Ee=!!Te,Ee&&"get"in Te&&!("originalValue"in Te.get)?ce=Te.get:ce=ce[ge]}else Ee=L(ce,ge),ce=ce[ge];Ee&&!ue&&(R[de]=ce)}}return ce},NC}var BC,xM;function pA(){if(xM)return BC;xM=1;var e=jb(),t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return BC=t,BC}var zC,SM;function z5(){if(SM)return zC;SM=1;var e=jb(),t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return zC=t,zC}var qC,CM;function q5(){if(CM)return qC;CM=1;var e=pA(),t=N5(),r=Ib(),n=z5();return qC=function(o,i,u){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var d=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,v=arguments.length>6?arguments[6]:!1,y=!!n&&n(o,i);if(e)e(o,i,{configurable:h===null&&y?y.configurable:!h,enumerable:d===null&&y?y.enumerable:!d,value:u,writable:l===null&&y?y.writable:!l});else if(v||!d&&!l&&!h)o[i]=u;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},qC}var UC,EM;function U5(){if(EM)return UC;EM=1;var e=pA(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},UC=t,UC}var VC,OM;function V5(){if(OM)return VC;OM=1;var e=hH(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,a=q5(),o=function(l){return typeof l=="function"&&r.call(l)==="[object Function]"},i=U5()(),u=function(l,h,v,y){if(h in l){if(y===!0){if(l[h]===v)return}else if(!o(y)||!y())return}i?a(l,h,v,!0):a(l,h,v)},d=function(l,h){var v=arguments.length>2?arguments[2]:{},y=e(h);t&&(y=n.call(y,Object.getOwnPropertySymbols(h)));for(var b=0;b<y.length;b+=1)u(l,y[b],h[y[b]],v[y[b]])};return d.supportsDescriptors=!!i,VC=d,VC}var WC={exports:{}},HC,PM;function CH(){if(PM)return HC;PM=1;var e=jb(),t=q5(),r=U5()(),n=z5(),a=Ib(),o=e("%Math.floor%");return HC=function(u,d){if(typeof u!="function")throw new a("`fn` is not a function");if(typeof d!="number"||d<0||d>4294967295||o(d)!==d)throw new a("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],h=!0,v=!0;if("length"in u&&n){var y=n(u,"length");y&&!y.configurable&&(h=!1),y&&!y.writable&&(v=!1)}return(h||v||!l)&&(r?t(u,"length",d,!0,!0):t(u,"length",d)),u},HC}var RM;function W5(){return RM||(RM=1,function(e){var t=fA(),r=jb(),n=CH(),a=Ib(),o=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),u=r("%Reflect.apply%",!0)||t.call(i,o),d=pA(),l=r("%Math.max%");e.exports=function(y){if(typeof y!="function")throw new a("a function is required");var b=u(t,i,arguments);return n(b,1+l(0,y.length-(arguments.length-1)),!0)};var h=function(){return u(t,o,arguments)};d?d(e.exports,"apply",{value:h}):e.exports.apply=h}(WC)),WC.exports}var KC,kM;function EH(){if(kM)return KC;kM=1;var e=Ib();return KC=function(r){if(r==null)throw new e(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r},KC}var GC,TM;function OH(){if(TM)return GC;TM=1;var e=jb(),t=W5(),r=t(e("String.prototype.indexOf"));return GC=function(a,o){var i=e(a,!!o);return typeof i=="function"&&r(a,".prototype.")>-1?t(i):i},GC}var QC,AM;function H5(){if(AM)return QC;AM=1;var e=EH(),t=OH(),r=t("Object.prototype.propertyIsEnumerable"),n=t("Array.prototype.push");return QC=function(o){var i=e(o),u=[];for(var d in i)r(i,d)&&n(u,[d,i[d]]);return u},QC}var XC,IM;function K5(){if(IM)return XC;IM=1;var e=H5();return XC=function(){return typeof Object.entries=="function"?Object.entries:e},XC}var YC,jM;function PH(){if(jM)return YC;jM=1;var e=K5(),t=V5();return YC=function(){var n=e();return t(Object,{entries:n},{entries:function(){return Object.entries!==n}}),n},YC}var JC,MM;function RH(){if(MM)return JC;MM=1;var e=V5(),t=W5(),r=H5(),n=K5(),a=PH(),o=t(n(),Object);return e(o,{getPolyfill:n,implementation:r,shim:a}),JC=o,JC}var ZC,FM;function kH(){if(FM)return ZC;FM=1;var e=function(){};return ZC=e,ZC}var eE,LM;function TH(){if(LM)return eE;LM=1;var e=RH(),t=kH(),r=B5(),n=function(O){t(!1,O)},a=String.prototype.replace,o=String.prototype.split,i="||||",u=function(C){var O=C%100,T=O%10;return O!==11&&T===1?0:2<=T&&T<=4&&!(O>=12&&O<=14)?1:2},d={pluralTypes:{arabic:function(C){if(C<3)return C;var O=C%100;return O>=3&&O<=10?3:O>=11?4:5},bosnian_serbian:u,chinese:function(){return 0},croatian:u,french:function(C){return C>=2?1:0},german:function(C){return C!==1?1:0},russian:u,lithuanian:function(C){return C%10===1&&C%100!==11?0:C%10>=2&&C%10<=9&&(C%100<11||C%100>19)?1:2},czech:function(C){return C===1?0:C>=2&&C<=4?1:2},polish:function(C){if(C===1)return 0;var O=C%10;return 2<=O&&O<=4&&(C%100<10||C%100>=20)?1:2},icelandic:function(C){return C%10!==1||C%100===11?1:0},slovenian:function(C){var O=C%100;return O===1?0:O===2?1:O===3||O===4?2:3},romanian:function(C){if(C===1)return 0;var O=C%100;return C===0||O>=2&&O<=19?1:2},ukrainian:u},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is","mk"],slovenian:["sl-SL"],romanian:["ro"],ukrainian:["uk","ua"]}};function l(C){for(var O={},T=e(C),E=0;E<T.length;E+=1)for(var L=T[E][0],j=T[E][1],M=0;M<j.length;M+=1)O[j[M]]=L;return O}function h(C,O){var T=l(C.pluralTypeToLanguages);return T[O]||T[o.call(O,/-/,1)[0]]||T.en}function v(C,O,T){return C.pluralTypes[O](T)}function y(){var C={};return function(O,T){var E=C[T];return E&&!O.pluralTypes[E]&&(E=null,C[T]=E),E||(E=h(O,T),E&&(C[T]=E)),E}}function b(C){return C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _(C){var O=C&&C.prefix||"%{",T=C&&C.suffix||"}";if(O===i||T===i)throw new RangeError('"'+i+'" token is reserved for pluralization');return new RegExp(b(O)+"(.*?)"+b(T),"g")}var w=y(),S=/%\{(.*?)\}/g;function A(C,O,T,E,L,j){if(typeof C!="string")throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(O==null)return C;var M=C,k=E||S,$=j||a,B=typeof O=="number"?{smart_count:O}:O;if(B.smart_count!=null&&C){var z=L||d,U=o.call(C,i),W=T||"en",Q=w(z,W),V=v(z,Q,B.smart_count);M=a.call(U[V]||U[0],/^[^\S]*|[^\S]*$/g,"")}return M=$.call(M,k,function(K,X){return!r(B,X)||B[X]==null?K:B[X]}),M}function R(C){var O=C||{};this.phrases={},this.extend(O.phrases||{}),this.currentLocale=O.locale||"en";var T=O.allowMissing?A:null;this.onMissingKey=typeof O.onMissingKey=="function"?O.onMissingKey:T,this.warn=O.warn||n,this.replaceImplementation=O.replace||a,this.tokenRegex=_(O.interpolation),this.pluralRules=O.pluralRules||d}return R.prototype.locale=function(C){return C&&(this.currentLocale=C),this.currentLocale},R.prototype.extend=function(C,O){for(var T=e(C||{}),E=0;E<T.length;E+=1){var L=T[E][0],j=T[E][1],M=O?O+"."+L:L;typeof j=="object"?this.extend(j,M):this.phrases[M]=j}},R.prototype.unset=function(C,O){if(typeof C=="string")delete this.phrases[C];else for(var T=e(C||{}),E=0;E<T.length;E+=1){var L=T[E][0],j=T[E][1],M=O?O+"."+L:L;typeof j=="object"?this.unset(j,M):delete this.phrases[M]}},R.prototype.clear=function(){this.phrases={}},R.prototype.replace=function(C){this.clear(),this.extend(C)},R.prototype.t=function(C,O){var T,E,L=O??{};if(typeof this.phrases[C]=="string")T=this.phrases[C];else if(typeof L._=="string")T=L._;else if(this.onMissingKey){var j=this.onMissingKey;E=j(C,L,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)}else this.warn('Missing translation for key: "'+C+'"'),E=C;return typeof T=="string"&&(E=A(T,L,this.currentLocale,this.tokenRegex,this.pluralRules,this.replaceImplementation)),E},R.prototype.has=function(C){return r(this.phrases,C)},R.transformPhrase=function(O,T,E){return A(O,T,E)},eE=R,eE}var AH=TH();const $M=Nn(AH);var Xh=function(){return Xh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Xh.apply(this,arguments)};const G5=function(e,t,r,n){t===void 0&&(t="en"),r===void 0&&(r=[{locale:"en",name:"English"}]),n===void 0&&(n={});var a=t,o=e(t);if(o instanceof Promise)throw new Error("The i18nProvider returned a Promise for the messages of the default locale (".concat(t,"). Please update your i18nProvider to return the messages of the default locale in a synchronous way."));var i,u;Array.isArray(r)?(i=r,u=n):(i=[{locale:"en",name:"English"}],u=r);var d=new $M(Xh({locale:a,phrases:Xh({"":""},o)},u)),l=d.t.bind(d);return{translate:function(h,v){return v===void 0&&(v={}),l(h,v)},changeLocale:function(h){return Promise.resolve(e(h)).then(function(v){a=h;var y=new $M(Xh({locale:h,phrases:Xh({"":""},v)},n));l=y.t.bind(y)})},getLocale:function(){return a},getLocales:function(){return i}}};var hA=p.createContext(void 0);hA.displayName="AuthContext";var ex={loginUrl:"/login",afterLoginUrl:"/"},pi=function(){return p.useContext(hA)},av=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},np=typeof window>"u"||"Deno"in globalThis;function so(){}function IH(e,t){return typeof e=="function"?e(t):e}function B2(e){return typeof e=="number"&&e>=0&&e!==1/0}function Q5(e,t){return Math.max(e+(t||0)-Date.now(),0)}function am(e,t){return typeof e=="function"?e(t):e}function ws(e,t){return typeof e=="function"?e(t):e}function DM(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:u}=e;if(i){if(n){if(t.queryHash!==mA(i,t.options))return!1}else if(!eb(t.queryKey,i))return!1}if(r!=="all"){const d=t.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||o&&!o(t))}function NM(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(ap(t.options.mutationKey)!==ap(o))return!1}else if(!eb(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function mA(e,t){return((t==null?void 0:t.queryKeyHashFn)||ap)(e)}function ap(e){return JSON.stringify(e,(t,r)=>z2(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function eb(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>eb(e[r],t[r])):!1}function X5(e,t){if(e===t)return e;const r=BM(e)&&BM(t);if(r||z2(e)&&z2(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,u=r?[]:{};let d=0;for(let l=0;l<i;l++){const h=r?l:o[l];(!r&&n.includes(h)||r)&&e[h]===void 0&&t[h]===void 0?(u[h]=void 0,d++):(u[h]=X5(e[h],t[h]),u[h]===e[h]&&e[h]!==void 0&&d++)}return a===i&&d===a?e:u}return t}function R1(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function BM(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function z2(e){if(!zM(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!zM(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function zM(e){return Object.prototype.toString.call(e)==="[object Object]"}function jH(e){return new Promise(t=>{setTimeout(t,e)})}function q2(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?X5(e,t):t}function MH(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function FH(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var vA=Symbol();function Y5(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===vA?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function J5(e,t){return typeof e=="function"?e(...t):!!e}var qf,Lc,wm,y5,LH=(y5=class extends av{constructor(){super();rt(this,qf);rt(this,Lc);rt(this,wm);He(this,wm,r=>{if(!np&&window.addEventListener){const n=()=>r();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Y(this,Lc)||this.setEventListener(Y(this,wm))}onUnsubscribe(){var r;this.hasListeners()||((r=Y(this,Lc))==null||r.call(this),He(this,Lc,void 0))}setEventListener(r){var n;He(this,wm,r),(n=Y(this,Lc))==null||n.call(this),He(this,Lc,r(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(r){Y(this,qf)!==r&&(He(this,qf,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(n=>{n(r)})}isFocused(){var r;return typeof Y(this,qf)=="boolean"?Y(this,qf):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},qf=new WeakMap,Lc=new WeakMap,wm=new WeakMap,y5),gA=new LH,xm,$c,Sm,b5,$H=(b5=class extends av{constructor(){super();rt(this,xm,!0);rt(this,$c);rt(this,Sm);He(this,Sm,r=>{if(!np&&window.addEventListener){const n=()=>r(!0),a=()=>r(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",a)}}})}onSubscribe(){Y(this,$c)||this.setEventListener(Y(this,Sm))}onUnsubscribe(){var r;this.hasListeners()||((r=Y(this,$c))==null||r.call(this),He(this,$c,void 0))}setEventListener(r){var n;He(this,Sm,r),(n=Y(this,$c))==null||n.call(this),He(this,$c,r(this.setOnline.bind(this)))}setOnline(r){Y(this,xm)!==r&&(He(this,xm,r),this.listeners.forEach(a=>{a(r)}))}isOnline(){return Y(this,xm)}},xm=new WeakMap,$c=new WeakMap,Sm=new WeakMap,b5),k1=new $H;function U2(){let e,t;const r=new Promise((a,o)=>{e=a,t=o});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}function DH(e){return Math.min(1e3*2**e,3e4)}function Z5(e){return(e??"online")==="online"?k1.isOnline():!0}var eB=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function tE(e){return e instanceof eB}function tB(e){let t=!1,r=0,n=!1,a;const o=U2(),i=w=>{var S;n||(y(new eB(w)),(S=e.abort)==null||S.call(e))},u=()=>{t=!0},d=()=>{t=!1},l=()=>gA.isFocused()&&(e.networkMode==="always"||k1.isOnline())&&e.canRun(),h=()=>Z5(e.networkMode)&&e.canRun(),v=w=>{var S;n||(n=!0,(S=e.onSuccess)==null||S.call(e,w),a==null||a(),o.resolve(w))},y=w=>{var S;n||(n=!0,(S=e.onError)==null||S.call(e,w),a==null||a(),o.reject(w))},b=()=>new Promise(w=>{var S;a=A=>{(n||l())&&w(A)},(S=e.onPause)==null||S.call(e)}).then(()=>{var w;a=void 0,n||(w=e.onContinue)==null||w.call(e)}),_=()=>{if(n)return;let w;const S=r===0?e.initialPromise:void 0;try{w=S??e.fn()}catch(A){w=Promise.reject(A)}Promise.resolve(w).then(v).catch(A=>{var E;if(n)return;const R=e.retry??(np?0:3),C=e.retryDelay??DH,O=typeof C=="function"?C(r,A):C,T=R===!0||typeof R=="number"&&r<R||typeof R=="function"&&R(r,A);if(t||!T){y(A);return}r++,(E=e.onFail)==null||E.call(e,r,A),jH(O).then(()=>l()?void 0:b()).then(()=>{t?y(A):_()})})};return{promise:o,cancel:i,continue:()=>(a==null||a(),o),cancelRetry:u,continueRetry:d,canStart:h,start:()=>(h()?_():b().then(_),o)}}var NH=e=>setTimeout(e,0);function BH(){let e=[],t=0,r=u=>{u()},n=u=>{u()},a=NH;const o=u=>{t?e.push(u):a(()=>{r(u)})},i=()=>{const u=e;e=[],u.length&&a(()=>{n(()=>{u.forEach(d=>{r(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||i()}return d},batchCalls:u=>(...d)=>{o(()=>{u(...d)})},schedule:o,setNotifyFunction:u=>{r=u},setBatchNotifyFunction:u=>{n=u},setScheduler:u=>{a=u}}}var Cn=BH(),Uf,_5,rB=(_5=class{constructor(){rt(this,Uf)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),B2(this.gcTime)&&He(this,Uf,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(np?1/0:5*60*1e3))}clearGcTimeout(){Y(this,Uf)&&(clearTimeout(Y(this,Uf)),He(this,Uf,void 0))}},Uf=new WeakMap,_5),Cm,Em,Ii,Vf,Na,Eb,Wf,gs,vu,w5,zH=(w5=class extends rB{constructor(r){super();rt(this,gs);rt(this,Cm);rt(this,Em);rt(this,Ii);rt(this,Vf);rt(this,Na);rt(this,Eb);rt(this,Wf);He(this,Wf,!1),He(this,Eb,r.defaultOptions),this.setOptions(r.options),this.observers=[],He(this,Vf,r.client),He(this,Ii,Y(this,Vf).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,He(this,Cm,qH(this.options)),this.state=r.state??Y(this,Cm),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=Y(this,Na))==null?void 0:r.promise}setOptions(r){this.options={...Y(this,Eb),...r},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Y(this,Ii).remove(this)}setData(r,n){const a=q2(this.state.data,r,this.options);return jt(this,gs,vu).call(this,{data:a,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),a}setState(r,n){jt(this,gs,vu).call(this,{type:"setState",state:r,setStateOptions:n})}cancel(r){var a,o;const n=(a=Y(this,Na))==null?void 0:a.promise;return(o=Y(this,Na))==null||o.cancel(r),n?n.then(so).catch(so):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Y(this,Cm))}isActive(){return this.observers.some(r=>ws(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vA||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(r=0){return this.state.isInvalidated||this.state.data===void 0||!Q5(this.state.dataUpdatedAt,r)}onFocus(){var n;const r=this.observers.find(a=>a.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(n=Y(this,Na))==null||n.continue()}onOnline(){var n;const r=this.observers.find(a=>a.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(n=Y(this,Na))==null||n.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),Y(this,Ii).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(n=>n!==r),this.observers.length||(Y(this,Na)&&(Y(this,Wf)?Y(this,Na).cancel({revert:!0}):Y(this,Na).cancelRetry()),this.scheduleGc()),Y(this,Ii).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||jt(this,gs,vu).call(this,{type:"invalidate"})}fetch(r,n){var l,h,v;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Y(this,Na))return Y(this,Na).continueRetry(),Y(this,Na).promise}if(r&&this.setOptions(r),!this.options.queryFn){const y=this.observers.find(b=>b.options.queryFn);y&&this.setOptions(y.options)}const a=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(He(this,Wf,!0),a.signal)})},i=()=>{const y=Y5(this.options,n),b={client:Y(this,Vf),queryKey:this.queryKey,meta:this.meta};return o(b),He(this,Wf,!1),this.options.persister?this.options.persister(y,b,this):y(b)},u={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:Y(this,Vf),state:this.state,fetchFn:i};o(u),(l=this.options.behavior)==null||l.onFetch(u,this),He(this,Em,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=u.fetchOptions)==null?void 0:h.meta))&&jt(this,gs,vu).call(this,{type:"fetch",meta:(v=u.fetchOptions)==null?void 0:v.meta});const d=y=>{var b,_,w,S;tE(y)&&y.silent||jt(this,gs,vu).call(this,{type:"error",error:y}),tE(y)||((_=(b=Y(this,Ii).config).onError)==null||_.call(b,y,this),(S=(w=Y(this,Ii).config).onSettled)==null||S.call(w,this.state.data,y,this)),this.scheduleGc()};return He(this,Na,tB({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,abort:a.abort.bind(a),onSuccess:y=>{var b,_,w,S;if(y===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(A){d(A);return}(_=(b=Y(this,Ii).config).onSuccess)==null||_.call(b,y,this),(S=(w=Y(this,Ii).config).onSettled)==null||S.call(w,y,this.state.error,this),this.scheduleGc()},onError:d,onFail:(y,b)=>{jt(this,gs,vu).call(this,{type:"failed",failureCount:y,error:b})},onPause:()=>{jt(this,gs,vu).call(this,{type:"pause"})},onContinue:()=>{jt(this,gs,vu).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0})),Y(this,Na).start()}},Cm=new WeakMap,Em=new WeakMap,Ii=new WeakMap,Vf=new WeakMap,Na=new WeakMap,Eb=new WeakMap,Wf=new WeakMap,gs=new WeakSet,vu=function(r){const n=a=>{switch(r.type){case"failed":return{...a,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...nB(a.data,this.options),fetchMeta:r.meta??null};case"success":return{...a,data:r.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:r.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=r.error;return tE(o)&&o.revert&&Y(this,Em)?{...Y(this,Em),fetchStatus:"idle"}:{...a,error:o,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...r.state}}};this.state=n(this.state),Cn.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),Y(this,Ii).notify({query:this,type:"updated",action:r})})},w5);function nB(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Z5(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function qH(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var cl,x5,UH=(x5=class extends av{constructor(r={}){super();rt(this,cl);this.config=r,He(this,cl,new Map)}build(r,n,a){const o=n.queryKey,i=n.queryHash??mA(o,n);let u=this.get(i);return u||(u=new zH({client:r,queryKey:o,queryHash:i,options:r.defaultQueryOptions(n),state:a,defaultOptions:r.getQueryDefaults(o)}),this.add(u)),u}add(r){Y(this,cl).has(r.queryHash)||(Y(this,cl).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const n=Y(this,cl).get(r.queryHash);n&&(r.destroy(),n===r&&Y(this,cl).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){Cn.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return Y(this,cl).get(r)}getAll(){return[...Y(this,cl).values()]}find(r){const n={exact:!0,...r};return this.getAll().find(a=>DM(n,a))}findAll(r={}){const n=this.getAll();return Object.keys(r).length>0?n.filter(a=>DM(r,a)):n}notify(r){Cn.batch(()=>{this.listeners.forEach(n=>{n(r)})})}onFocus(){Cn.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Cn.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},cl=new WeakMap,x5),dl,no,Hf,fl,Pc,S5,VH=(S5=class extends rB{constructor(r){super();rt(this,fl);rt(this,dl);rt(this,no);rt(this,Hf);this.mutationId=r.mutationId,He(this,no,r.mutationCache),He(this,dl,[]),this.state=r.state||aB(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){Y(this,dl).includes(r)||(Y(this,dl).push(r),this.clearGcTimeout(),Y(this,no).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){He(this,dl,Y(this,dl).filter(n=>n!==r)),this.scheduleGc(),Y(this,no).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){Y(this,dl).length||(this.state.status==="pending"?this.scheduleGc():Y(this,no).remove(this))}continue(){var r;return((r=Y(this,Hf))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var i,u,d,l,h,v,y,b,_,w,S,A,R,C,O,T,E,L,j,M;const n=()=>{jt(this,fl,Pc).call(this,{type:"continue"})};He(this,Hf,tB({fn:()=>this.options.mutationFn?this.options.mutationFn(r):Promise.reject(new Error("No mutationFn found")),onFail:(k,$)=>{jt(this,fl,Pc).call(this,{type:"failed",failureCount:k,error:$})},onPause:()=>{jt(this,fl,Pc).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Y(this,no).canRun(this)}));const a=this.state.status==="pending",o=!Y(this,Hf).canStart();try{if(a)n();else{jt(this,fl,Pc).call(this,{type:"pending",variables:r,isPaused:o}),await((u=(i=Y(this,no).config).onMutate)==null?void 0:u.call(i,r,this));const $=await((l=(d=this.options).onMutate)==null?void 0:l.call(d,r));$!==this.state.context&&jt(this,fl,Pc).call(this,{type:"pending",context:$,variables:r,isPaused:o})}const k=await Y(this,Hf).start();return await((v=(h=Y(this,no).config).onSuccess)==null?void 0:v.call(h,k,r,this.state.context,this)),await((b=(y=this.options).onSuccess)==null?void 0:b.call(y,k,r,this.state.context)),await((w=(_=Y(this,no).config).onSettled)==null?void 0:w.call(_,k,null,this.state.variables,this.state.context,this)),await((A=(S=this.options).onSettled)==null?void 0:A.call(S,k,null,r,this.state.context)),jt(this,fl,Pc).call(this,{type:"success",data:k}),k}catch(k){try{throw await((C=(R=Y(this,no).config).onError)==null?void 0:C.call(R,k,r,this.state.context,this)),await((T=(O=this.options).onError)==null?void 0:T.call(O,k,r,this.state.context)),await((L=(E=Y(this,no).config).onSettled)==null?void 0:L.call(E,void 0,k,this.state.variables,this.state.context,this)),await((M=(j=this.options).onSettled)==null?void 0:M.call(j,void 0,k,r,this.state.context)),k}finally{jt(this,fl,Pc).call(this,{type:"error",error:k})}}finally{Y(this,no).runNext(this)}}},dl=new WeakMap,no=new WeakMap,Hf=new WeakMap,fl=new WeakSet,Pc=function(r){const n=a=>{switch(r.type){case"failed":return{...a,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...a,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:r.error,failureCount:a.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Cn.batch(()=>{Y(this,dl).forEach(a=>{a.onMutationUpdate(r)}),Y(this,no).notify({mutation:this,type:"updated",action:r})})},S5);function aB(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wu,ys,Ob,C5,WH=(C5=class extends av{constructor(r={}){super();rt(this,wu);rt(this,ys);rt(this,Ob);this.config=r,He(this,wu,new Set),He(this,ys,new Map),He(this,Ob,0)}build(r,n,a){const o=new VH({mutationCache:this,mutationId:++wf(this,Ob)._,options:r.defaultMutationOptions(n),state:a});return this.add(o),o}add(r){Y(this,wu).add(r);const n=M_(r);if(typeof n=="string"){const a=Y(this,ys).get(n);a?a.push(r):Y(this,ys).set(n,[r])}this.notify({type:"added",mutation:r})}remove(r){if(Y(this,wu).delete(r)){const n=M_(r);if(typeof n=="string"){const a=Y(this,ys).get(n);if(a)if(a.length>1){const o=a.indexOf(r);o!==-1&&a.splice(o,1)}else a[0]===r&&Y(this,ys).delete(n)}}this.notify({type:"removed",mutation:r})}canRun(r){const n=M_(r);if(typeof n=="string"){const a=Y(this,ys).get(n),o=a==null?void 0:a.find(i=>i.state.status==="pending");return!o||o===r}else return!0}runNext(r){var a;const n=M_(r);if(typeof n=="string"){const o=(a=Y(this,ys).get(n))==null?void 0:a.find(i=>i!==r&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Cn.batch(()=>{Y(this,wu).forEach(r=>{this.notify({type:"removed",mutation:r})}),Y(this,wu).clear(),Y(this,ys).clear()})}getAll(){return Array.from(Y(this,wu))}find(r){const n={exact:!0,...r};return this.getAll().find(a=>NM(n,a))}findAll(r={}){return this.getAll().filter(n=>NM(r,n))}notify(r){Cn.batch(()=>{this.listeners.forEach(n=>{n(r)})})}resumePausedMutations(){const r=this.getAll().filter(n=>n.state.isPaused);return Cn.batch(()=>Promise.all(r.map(n=>n.continue().catch(so))))}},wu=new WeakMap,ys=new WeakMap,Ob=new WeakMap,C5);function M_(e){var t;return(t=e.options.scope)==null?void 0:t.id}function qM(e){return{onFetch:(t,r)=>{var h,v,y,b,_;const n=t.options,a=(y=(v=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:v.fetchMore)==null?void 0:y.direction,o=((b=t.state.data)==null?void 0:b.pages)||[],i=((_=t.state.data)==null?void 0:_.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const l=async()=>{let w=!1;const S=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},A=Y5(t.options,t.fetchOptions),R=async(C,O,T)=>{if(w)return Promise.reject();if(O==null&&C.pages.length)return Promise.resolve(C);const E={client:t.client,queryKey:t.queryKey,pageParam:O,direction:T?"backward":"forward",meta:t.options.meta};S(E);const L=await A(E),{maxPages:j}=t.options,M=T?FH:MH;return{pages:M(C.pages,L,j),pageParams:M(C.pageParams,O,j)}};if(a&&o.length){const C=a==="backward",O=C?HH:UM,T={pages:o,pageParams:i},E=O(n,T);u=await R(T,E,C)}else{const C=e??o.length;do{const O=d===0?i[0]??n.initialPageParam:UM(n,u);if(d>0&&O==null)break;u=await R(u,O),d++}while(d<C)}return u};t.options.persister?t.fetchFn=()=>{var w,S;return(S=(w=t.options).persister)==null?void 0:S.call(w,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function UM(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function HH(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var pn,Dc,Nc,Om,Pm,Bc,Rm,km,E5,KH=(E5=class{constructor(t={}){rt(this,pn);rt(this,Dc);rt(this,Nc);rt(this,Om);rt(this,Pm);rt(this,Bc);rt(this,Rm);rt(this,km);He(this,pn,t.queryCache||new UH),He(this,Dc,t.mutationCache||new WH),He(this,Nc,t.defaultOptions||{}),He(this,Om,new Map),He(this,Pm,new Map),He(this,Bc,0)}mount(){wf(this,Bc)._++,Y(this,Bc)===1&&(He(this,Rm,gA.subscribe(async t=>{t&&(await this.resumePausedMutations(),Y(this,pn).onFocus())})),He(this,km,k1.subscribe(async t=>{t&&(await this.resumePausedMutations(),Y(this,pn).onOnline())})))}unmount(){var t,r;wf(this,Bc)._--,Y(this,Bc)===0&&((t=Y(this,Rm))==null||t.call(this),He(this,Rm,void 0),(r=Y(this,km))==null||r.call(this),He(this,km,void 0))}isFetching(t){return Y(this,pn).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return Y(this,Dc).findAll({...t,status:"pending"}).length}getQueryData(t){var n;const r=this.defaultQueryOptions({queryKey:t});return(n=Y(this,pn).get(r.queryHash))==null?void 0:n.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),n=Y(this,pn).build(this,r),a=n.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(am(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(a))}getQueriesData(t){return Y(this,pn).findAll(t).map(({queryKey:r,state:n})=>{const a=n.data;return[r,a]})}setQueryData(t,r,n){const a=this.defaultQueryOptions({queryKey:t}),o=Y(this,pn).get(a.queryHash),i=o==null?void 0:o.state.data,u=IH(r,i);if(u!==void 0)return Y(this,pn).build(this,a).setData(u,{...n,manual:!0})}setQueriesData(t,r,n){return Cn.batch(()=>Y(this,pn).findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,r,n)]))}getQueryState(t){var n;const r=this.defaultQueryOptions({queryKey:t});return(n=Y(this,pn).get(r.queryHash))==null?void 0:n.state}removeQueries(t){const r=Y(this,pn);Cn.batch(()=>{r.findAll(t).forEach(n=>{r.remove(n)})})}resetQueries(t,r){const n=Y(this,pn);return Cn.batch(()=>(n.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const n={revert:!0,...r},a=Cn.batch(()=>Y(this,pn).findAll(t).map(o=>o.cancel(n)));return Promise.all(a).then(so).catch(so)}invalidateQueries(t,r={}){return Cn.batch(()=>(Y(this,pn).findAll(t).forEach(n=>{n.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},r)))}refetchQueries(t,r={}){const n={...r,cancelRefetch:r.cancelRefetch??!0},a=Cn.batch(()=>Y(this,pn).findAll(t).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(so)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(a).then(so)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const n=Y(this,pn).build(this,r);return n.isStaleByTime(am(r.staleTime,n))?n.fetch(r):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(so).catch(so)}fetchInfiniteQuery(t){return t.behavior=qM(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(so).catch(so)}ensureInfiniteQueryData(t){return t.behavior=qM(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return k1.isOnline()?Y(this,Dc).resumePausedMutations():Promise.resolve()}getQueryCache(){return Y(this,pn)}getMutationCache(){return Y(this,Dc)}getDefaultOptions(){return Y(this,Nc)}setDefaultOptions(t){He(this,Nc,t)}setQueryDefaults(t,r){Y(this,Om).set(ap(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...Y(this,Om).values()],n={};return r.forEach(a=>{eb(t,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(t,r){Y(this,Pm).set(ap(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...Y(this,Pm).values()],n={};return r.forEach(a=>{eb(t,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const r={...Y(this,Nc).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=mA(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===vA&&(r.enabled=!1),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...Y(this,Nc).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){Y(this,pn).clear(),Y(this,Dc).clear()}},pn=new WeakMap,Dc=new WeakMap,Nc=new WeakMap,Om=new WeakMap,Pm=new WeakMap,Bc=new WeakMap,Rm=new WeakMap,km=new WeakMap,E5),Ao,mr,Pb,ao,Kf,Tm,zc,qc,Rb,Am,Im,Gf,Qf,Uc,jm,Ar,iy,V2,W2,H2,K2,G2,Q2,X2,oB,O5,GH=(O5=class extends av{constructor(t,r){super();rt(this,Ar);rt(this,Ao);rt(this,mr);rt(this,Pb);rt(this,ao);rt(this,Kf);rt(this,Tm);rt(this,zc);rt(this,qc);rt(this,Rb);rt(this,Am);rt(this,Im);rt(this,Gf);rt(this,Qf);rt(this,Uc);rt(this,jm,new Set);this.options=r,He(this,Ao,t),He(this,qc,null),He(this,zc,U2()),this.options.experimental_prefetchInRender||Y(this,zc).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Y(this,mr).addObserver(this),VM(Y(this,mr),this.options)?jt(this,Ar,iy).call(this):this.updateResult(),jt(this,Ar,K2).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Y2(Y(this,mr),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Y2(Y(this,mr),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,jt(this,Ar,G2).call(this),jt(this,Ar,Q2).call(this),Y(this,mr).removeObserver(this)}setOptions(t){const r=this.options,n=Y(this,mr);if(this.options=Y(this,Ao).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ws(this.options.enabled,Y(this,mr))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");jt(this,Ar,X2).call(this),Y(this,mr).setOptions(this.options),r._defaulted&&!R1(this.options,r)&&Y(this,Ao).getQueryCache().notify({type:"observerOptionsUpdated",query:Y(this,mr),observer:this});const a=this.hasListeners();a&&WM(Y(this,mr),n,this.options,r)&&jt(this,Ar,iy).call(this),this.updateResult(),a&&(Y(this,mr)!==n||ws(this.options.enabled,Y(this,mr))!==ws(r.enabled,Y(this,mr))||am(this.options.staleTime,Y(this,mr))!==am(r.staleTime,Y(this,mr)))&&jt(this,Ar,V2).call(this);const o=jt(this,Ar,W2).call(this);a&&(Y(this,mr)!==n||ws(this.options.enabled,Y(this,mr))!==ws(r.enabled,Y(this,mr))||o!==Y(this,Uc))&&jt(this,Ar,H2).call(this,o)}getOptimisticResult(t){const r=Y(this,Ao).getQueryCache().build(Y(this,Ao),t),n=this.createResult(r,t);return XH(this,n)&&(He(this,ao,n),He(this,Tm,this.options),He(this,Kf,Y(this,mr).state)),n}getCurrentResult(){return Y(this,ao)}trackResult(t,r){return new Proxy(t,{get:(n,a)=>(this.trackProp(a),r==null||r(a),Reflect.get(n,a))})}trackProp(t){Y(this,jm).add(t)}getCurrentQuery(){return Y(this,mr)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=Y(this,Ao).defaultQueryOptions(t),n=Y(this,Ao).getQueryCache().build(Y(this,Ao),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return jt(this,Ar,iy).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Y(this,ao)))}createResult(t,r){var M;const n=Y(this,mr),a=this.options,o=Y(this,ao),i=Y(this,Kf),u=Y(this,Tm),l=t!==n?t.state:Y(this,Pb),{state:h}=t;let v={...h},y=!1,b;if(r._optimisticResults){const k=this.hasListeners(),$=!k&&VM(t,r),B=k&&WM(t,n,r,a);($||B)&&(v={...v,...nB(h.data,t.options)}),r._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:_,errorUpdatedAt:w,status:S}=v;b=v.data;let A=!1;if(r.placeholderData!==void 0&&b===void 0&&S==="pending"){let k;o!=null&&o.isPlaceholderData&&r.placeholderData===(u==null?void 0:u.placeholderData)?(k=o.data,A=!0):k=typeof r.placeholderData=="function"?r.placeholderData((M=Y(this,Im))==null?void 0:M.state.data,Y(this,Im)):r.placeholderData,k!==void 0&&(S="success",b=q2(o==null?void 0:o.data,k,r),y=!0)}if(r.select&&b!==void 0&&!A)if(o&&b===(i==null?void 0:i.data)&&r.select===Y(this,Rb))b=Y(this,Am);else try{He(this,Rb,r.select),b=r.select(b),b=q2(o==null?void 0:o.data,b,r),He(this,Am,b),He(this,qc,null)}catch(k){He(this,qc,k)}Y(this,qc)&&(_=Y(this,qc),b=Y(this,Am),w=Date.now(),S="error");const R=v.fetchStatus==="fetching",C=S==="pending",O=S==="error",T=C&&R,E=b!==void 0,j={status:S,fetchStatus:v.fetchStatus,isPending:C,isSuccess:S==="success",isError:O,isInitialLoading:T,isLoading:T,data:b,dataUpdatedAt:v.dataUpdatedAt,error:_,errorUpdatedAt:w,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>l.dataUpdateCount||v.errorUpdateCount>l.errorUpdateCount,isFetching:R,isRefetching:R&&!C,isLoadingError:O&&!E,isPaused:v.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:O&&E,isStale:yA(t,r),refetch:this.refetch,promise:Y(this,zc)};if(this.options.experimental_prefetchInRender){const k=z=>{j.status==="error"?z.reject(j.error):j.data!==void 0&&z.resolve(j.data)},$=()=>{const z=He(this,zc,j.promise=U2());k(z)},B=Y(this,zc);switch(B.status){case"pending":t.queryHash===n.queryHash&&k(B);break;case"fulfilled":(j.status==="error"||j.data!==B.value)&&$();break;case"rejected":(j.status!=="error"||j.error!==B.reason)&&$();break}}return j}updateResult(){const t=Y(this,ao),r=this.createResult(Y(this,mr),this.options);if(He(this,Kf,Y(this,mr).state),He(this,Tm,this.options),Y(this,Kf).data!==void 0&&He(this,Im,Y(this,mr)),R1(r,t))return;He(this,ao,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!Y(this,jm).size)return!0;const i=new Set(o??Y(this,jm));return this.options.throwOnError&&i.add("error"),Object.keys(Y(this,ao)).some(u=>{const d=u;return Y(this,ao)[d]!==t[d]&&i.has(d)})};jt(this,Ar,oB).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&jt(this,Ar,K2).call(this)}},Ao=new WeakMap,mr=new WeakMap,Pb=new WeakMap,ao=new WeakMap,Kf=new WeakMap,Tm=new WeakMap,zc=new WeakMap,qc=new WeakMap,Rb=new WeakMap,Am=new WeakMap,Im=new WeakMap,Gf=new WeakMap,Qf=new WeakMap,Uc=new WeakMap,jm=new WeakMap,Ar=new WeakSet,iy=function(t){jt(this,Ar,X2).call(this);let r=Y(this,mr).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(so)),r},V2=function(){jt(this,Ar,G2).call(this);const t=am(this.options.staleTime,Y(this,mr));if(np||Y(this,ao).isStale||!B2(t))return;const n=Q5(Y(this,ao).dataUpdatedAt,t)+1;He(this,Gf,setTimeout(()=>{Y(this,ao).isStale||this.updateResult()},n))},W2=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Y(this,mr)):this.options.refetchInterval)??!1},H2=function(t){jt(this,Ar,Q2).call(this),He(this,Uc,t),!(np||ws(this.options.enabled,Y(this,mr))===!1||!B2(Y(this,Uc))||Y(this,Uc)===0)&&He(this,Qf,setInterval(()=>{(this.options.refetchIntervalInBackground||gA.isFocused())&&jt(this,Ar,iy).call(this)},Y(this,Uc)))},K2=function(){jt(this,Ar,V2).call(this),jt(this,Ar,H2).call(this,jt(this,Ar,W2).call(this))},G2=function(){Y(this,Gf)&&(clearTimeout(Y(this,Gf)),He(this,Gf,void 0))},Q2=function(){Y(this,Qf)&&(clearInterval(Y(this,Qf)),He(this,Qf,void 0))},X2=function(){const t=Y(this,Ao).getQueryCache().build(Y(this,Ao),this.options);if(t===Y(this,mr))return;const r=Y(this,mr);He(this,mr,t),He(this,Pb,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},oB=function(t){Cn.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(Y(this,ao))}),Y(this,Ao).getQueryCache().notify({query:Y(this,mr),type:"observerResultsUpdated"})})},O5);function QH(e,t){return ws(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function VM(e,t){return QH(e,t)||e.state.data!==void 0&&Y2(e,t,t.refetchOnMount)}function Y2(e,t,r){if(ws(t.enabled,e)!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&yA(e,t)}return!1}function WM(e,t,r,n){return(e!==t||ws(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&yA(e,r)}function yA(e,t){return ws(t.enabled,e)!==!1&&e.isStaleByTime(am(t.staleTime,e))}function XH(e,t){return!R1(e.getCurrentResult(),t)}var Vc,Wc,Io,xu,Au,d1,J2,P5,YH=(P5=class extends av{constructor(r,n){super();rt(this,Au);rt(this,Vc);rt(this,Wc);rt(this,Io);rt(this,xu);He(this,Vc,r),this.setOptions(n),this.bindMethods(),jt(this,Au,d1).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=Y(this,Vc).defaultMutationOptions(r),R1(this.options,n)||Y(this,Vc).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Y(this,Io),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&ap(n.mutationKey)!==ap(this.options.mutationKey)?this.reset():((a=Y(this,Io))==null?void 0:a.state.status)==="pending"&&Y(this,Io).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=Y(this,Io))==null||r.removeObserver(this)}onMutationUpdate(r){jt(this,Au,d1).call(this),jt(this,Au,J2).call(this,r)}getCurrentResult(){return Y(this,Wc)}reset(){var r;(r=Y(this,Io))==null||r.removeObserver(this),He(this,Io,void 0),jt(this,Au,d1).call(this),jt(this,Au,J2).call(this)}mutate(r,n){var a;return He(this,xu,n),(a=Y(this,Io))==null||a.removeObserver(this),He(this,Io,Y(this,Vc).getMutationCache().build(Y(this,Vc),this.options)),Y(this,Io).addObserver(this),Y(this,Io).execute(r)}},Vc=new WeakMap,Wc=new WeakMap,Io=new WeakMap,xu=new WeakMap,Au=new WeakSet,d1=function(){var n;const r=((n=Y(this,Io))==null?void 0:n.state)??aB();He(this,Wc,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},J2=function(r){Cn.batch(()=>{var n,a,o,i,u,d,l,h;if(Y(this,xu)&&this.hasListeners()){const v=Y(this,Wc).variables,y=Y(this,Wc).context;(r==null?void 0:r.type)==="success"?((a=(n=Y(this,xu)).onSuccess)==null||a.call(n,r.data,v,y),(i=(o=Y(this,xu)).onSettled)==null||i.call(o,r.data,null,v,y)):(r==null?void 0:r.type)==="error"&&((d=(u=Y(this,xu)).onError)==null||d.call(u,r.error,v,y),(h=(l=Y(this,xu)).onSettled)==null||h.call(l,void 0,r.error,v,y))}this.listeners.forEach(v=>{v(Y(this,Wc))})})},P5),iB=p.createContext(void 0),Ea=e=>{const t=p.useContext(iB);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},JH=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),I.jsx(iB.Provider,{value:e,children:t})),sB=p.createContext(!1),ZH=()=>p.useContext(sB);sB.Provider;function e7(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var t7=p.createContext(e7()),r7=()=>p.useContext(t7),n7=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},a7=e=>{p.useEffect(()=>{e.clearReset()},[e])},o7=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&e.data===void 0||J5(r,[e.error,n])),i7=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...r)=>Math.max(t(...r),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},s7=(e,t)=>e.isLoading&&e.isFetching&&!t,l7=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,HM=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function u7(e,t,r){var v,y,b,_,w;const n=Ea(),a=ZH(),o=r7(),i=n.defaultQueryOptions(e);(y=(v=n.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||y.call(v,i),i._optimisticResults=a?"isRestoring":"optimistic",i7(i),n7(i,o),a7(o);const u=!n.getQueryCache().get(i.queryHash),[d]=p.useState(()=>new t(n,i)),l=d.getOptimisticResult(i),h=!a&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(S=>{const A=h?d.subscribe(Cn.batchCalls(S)):so;return d.updateResult(),A},[d,h]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),p.useEffect(()=>{d.setOptions(i)},[i,d]),l7(i,l))throw HM(i,d,o);if(o7({result:l,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw l.error;if((_=(b=n.getDefaultOptions().queries)==null?void 0:b._experimental_afterQuery)==null||_.call(b,i,l),i.experimental_prefetchInRender&&!np&&s7(l,a)){const S=u?HM(i,d,o):(w=n.getQueryCache().get(i.queryHash))==null?void 0:w.promise;S==null||S.catch(so).finally(()=>{d.updateResult()})}return i.notifyOnChangeProps?l:d.trackResult(l)}function Tl(e,t){return u7(e,GH)}function Mb(e,t){const r=Ea(),[n]=p.useState(()=>new YH(r,e));p.useEffect(()=>{n.setOptions(e)},[n,e]);const a=p.useSyncExternalStore(p.useCallback(i=>n.subscribe(Cn.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=p.useCallback((i,u)=>{n.mutate(i,u).catch(so)},[n]);if(a.error&&J5(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}var Ug={},KM;function c7(){if(KM)return Ug;KM=1,Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.parse=i,Ug.serialize=l;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,o=(()=>{const y=function(){};return y.prototype=Object.create(null),y})();function i(y,b){const _=new o,w=y.length;if(w<2)return _;const S=(b==null?void 0:b.decode)||h;let A=0;do{const R=y.indexOf("=",A);if(R===-1)break;const C=y.indexOf(";",A),O=C===-1?w:C;if(R>O){A=y.lastIndexOf(";",R-1)+1;continue}const T=u(y,A,R),E=d(y,R,T),L=y.slice(T,E);if(_[L]===void 0){let j=u(y,R+1,O),M=d(y,O,j);const k=S(y.slice(j,M));_[L]=k}A=O+1}while(A<w);return _}function u(y,b,_){do{const w=y.charCodeAt(b);if(w!==32&&w!==9)return b}while(++b<_);return _}function d(y,b,_){for(;b>_;){const w=y.charCodeAt(--b);if(w!==32&&w!==9)return b+1}return _}function l(y,b,_){const w=(_==null?void 0:_.encode)||encodeURIComponent;if(!e.test(y))throw new TypeError(`argument name is invalid: ${y}`);const S=w(b);if(!t.test(S))throw new TypeError(`argument val is invalid: ${b}`);let A=y+"="+S;if(!_)return A;if(_.maxAge!==void 0){if(!Number.isInteger(_.maxAge))throw new TypeError(`option maxAge is invalid: ${_.maxAge}`);A+="; Max-Age="+_.maxAge}if(_.domain){if(!r.test(_.domain))throw new TypeError(`option domain is invalid: ${_.domain}`);A+="; Domain="+_.domain}if(_.path){if(!n.test(_.path))throw new TypeError(`option path is invalid: ${_.path}`);A+="; Path="+_.path}if(_.expires){if(!v(_.expires)||!Number.isFinite(_.expires.valueOf()))throw new TypeError(`option expires is invalid: ${_.expires}`);A+="; Expires="+_.expires.toUTCString()}if(_.httpOnly&&(A+="; HttpOnly"),_.secure&&(A+="; Secure"),_.partitioned&&(A+="; Partitioned"),_.priority)switch(typeof _.priority=="string"?_.priority.toLowerCase():void 0){case"low":A+="; Priority=Low";break;case"medium":A+="; Priority=Medium";break;case"high":A+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${_.priority}`)}if(_.sameSite)switch(typeof _.sameSite=="string"?_.sameSite.toLowerCase():_.sameSite){case!0:case"strict":A+="; SameSite=Strict";break;case"lax":A+="; SameSite=Lax";break;case"none":A+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${_.sameSite}`)}return A}function h(y){if(y.indexOf("%")===-1)return y;try{return decodeURIComponent(y)}catch{return y}}function v(y){return a.call(y)==="[object Date]"}return Ug}c7();/**
* react-router v7.6.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var lB=e=>{throw TypeError(e)},d7=(e,t,r)=>t.has(e)||lB("Cannot "+r),rE=(e,t,r)=>(d7(e,t,"read from private field"),r?r.call(e):t.get(e)),f7=(e,t,r)=>t.has(e)?lB("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),GM="popstate";function p7(e={}){function t(a,o){let{pathname:i="/",search:u="",hash:d=""}=Al(a.location.hash.substring(1));return!i.startsWith("/")&&!i.startsWith(".")&&(i="/"+i),tb("",{pathname:i,search:u,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(a,o){let i=a.document.querySelector("base"),u="";if(i&&i.getAttribute("href")){let d=a.location.href,l=d.indexOf("#");u=l===-1?d:d.slice(0,l)}return u+"#"+(typeof o=="string"?o:od(o))}function n(a,o){gn(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(o)})`)}return m7(t,r,n,e)}function Zt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function gn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function h7(){return Math.random().toString(36).substring(2,10)}function QM(e,t){return{usr:e.state,key:e.key,idx:t}}function tb(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Al(t):t,state:r,key:t&&t.key||n||h7()}}function od({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Al(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function m7(e,t,r,n={}){let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,u="POP",d=null,l=h();l==null&&(l=0,i.replaceState({...i.state,idx:l},""));function h(){return(i.state||{idx:null}).idx}function v(){u="POP";let S=h(),A=S==null?null:S-l;l=S,d&&d({action:u,location:w.location,delta:A})}function y(S,A){u="PUSH";let R=tb(w.location,S,A);r&&r(R,S),l=h()+1;let C=QM(R,l),O=w.createHref(R);try{i.pushState(C,"",O)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;a.location.assign(O)}o&&d&&d({action:u,location:w.location,delta:1})}function b(S,A){u="REPLACE";let R=tb(w.location,S,A);r&&r(R,S),l=h();let C=QM(R,l),O=w.createHref(R);i.replaceState(C,"",O),o&&d&&d({action:u,location:w.location,delta:0})}function _(S){return uB(S)}let w={get action(){return u},get location(){return e(a,i)},listen(S){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(GM,v),d=S,()=>{a.removeEventListener(GM,v),d=null}},createHref(S){return t(a,S)},createURL:_,encodeLocation(S){let A=_(S);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:y,replace:b,go(S){return i.go(S)}};return w}function uB(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Zt(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:od(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}var sy,XM=class{constructor(e){if(f7(this,sy,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(rE(this,sy).has(e))return rE(this,sy).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){rE(this,sy).set(e,t)}};sy=new WeakMap;var v7=new Set(["lazy","caseSensitive","path","id","index","children"]);function g7(e){return v7.has(e)}var y7=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function b7(e){return y7.has(e)}function _7(e){return e.index===!0}function T1(e,t,r=[],n={}){return e.map((a,o)=>{let i=[...r,String(o)],u=typeof a.id=="string"?a.id:i.join("-");if(Zt(a.index!==!0||!a.children,"Cannot specify children on an index route"),Zt(!n[u],`Found a route id collision on id "${u}". Route id's must be globally unique within Data Router usages`),_7(a)){let d={...a,...t(a),id:u};return n[u]=d,d}else{let d={...a,...t(a),id:u,children:void 0};return n[u]=d,a.children&&(d.children=T1(a.children,t,i,n)),d}})}function jc(e,t,r="/"){return f1(e,t,r,!1)}function f1(e,t,r,n){let a=typeof t=="string"?Al(t):t,o=Do(a.pathname||"/",r);if(o==null)return null;let i=cB(e);x7(i);let u=null;for(let d=0;u==null&&d<i.length;++d){let l=fB(o);u=A7(i[d],l,n)}return u}function w7(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function cB(e,t=[],r=[],n=""){let a=(o,i,u)=>{let d={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};d.relativePath.startsWith("/")&&(Zt(d.relativePath.startsWith(n),`Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(n.length));let l=Sl([n,d.relativePath]),h=r.concat(d);o.children&&o.children.length>0&&(Zt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),cB(o.children,t,h,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:k7(l,o.index),routesMeta:h})};return e.forEach((o,i)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))a(o,i);else for(let d of dB(o.path))a(o,i,d)}),t}function dB(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=dB(n.join("/")),u=[];return u.push(...i.map(d=>d===""?o:[o,d].join("/"))),a&&u.push(...i),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function x7(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:T7(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var S7=/^:[\w-]+$/,C7=3,E7=2,O7=1,P7=10,R7=-2,YM=e=>e==="*";function k7(e,t){let r=e.split("/"),n=r.length;return r.some(YM)&&(n+=R7),t&&(n+=E7),r.filter(a=>!YM(a)).reduce((a,o)=>a+(S7.test(o)?C7:o===""?O7:P7),n)}function T7(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function A7(e,t,r=!1){let{routesMeta:n}=e,a={},o="/",i=[];for(let u=0;u<n.length;++u){let d=n[u],l=u===n.length-1,h=o==="/"?t:t.slice(o.length)||"/",v=id({path:d.relativePath,caseSensitive:d.caseSensitive,end:l},h),y=d.route;if(!v&&l&&r&&!n[n.length-1].route.index&&(v=id({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},h)),!v)return null;Object.assign(a,v.params),i.push({params:a,pathname:Sl([o,v.pathname]),pathnameBase:F7(Sl([o,v.pathnameBase])),route:y}),v.pathnameBase!=="/"&&(o=Sl([o,v.pathnameBase]))}return i}function id(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=I7(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:n.reduce((l,{paramName:h,isOptional:v},y)=>{if(h==="*"){let _=u[y]||"";i=o.slice(0,o.length-_.length).replace(/(.)\/+$/,"$1")}const b=u[y];return v&&!b?l[h]=void 0:l[h]=(b||"").replace(/%2F/g,"/"),l},{}),pathname:o,pathnameBase:i,pattern:e}}function I7(e,t=!1,r=!0){gn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,u,d)=>(n.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function fB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Do(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function j7(e,t="/"){let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Al(e):e;return{pathname:r?r.startsWith("/")?r:M7(r,t):t,search:L7(n),hash:$7(a)}}function M7(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function nE(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function pB(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function tx(e){let t=pB(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function rx(e,t,r,n=!1){let a;typeof e=="string"?a=Al(e):(a={...e},Zt(!a.pathname||!a.pathname.includes("?"),nE("?","pathname","search",a)),Zt(!a.pathname||!a.pathname.includes("#"),nE("#","pathname","hash",a)),Zt(!a.search||!a.search.includes("#"),nE("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,u;if(i==null)u=r;else{let v=t.length-1;if(!n&&i.startsWith("..")){let y=i.split("/");for(;y[0]==="..";)y.shift(),v-=1;a.pathname=y.join("/")}u=v>=0?t[v]:"/"}let d=j7(a,u),l=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(l||h)&&(d.pathname+="/"),d}var Sl=e=>e.join("/").replace(/\/\/+/g,"/"),F7=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),L7=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$7=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,A1=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function rb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var hB=["POST","PUT","PATCH","DELETE"],D7=new Set(hB),N7=["GET",...hB],B7=new Set(N7),z7=new Set([301,302,303,307,308]),q7=new Set([307,308]),aE={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},U7={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Kh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},bA=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,V7=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),mB="remix-router-transitions",vB=Symbol("ResetLoaderData");function W7(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Zt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let n=e.hydrationRouteProperties||[],a=e.mapRouteProperties||V7,o={},i=T1(e.routes,a,void 0,o),u,d=e.basename||"/",l=e.dataStrategy||X7,h={unstable_middleware:!1,...e.future},v=null,y=new Set,b=null,_=null,w=null,S=e.hydrationData!=null,A=jc(i,e.history.location,d),R=!1,C=null,O;if(A==null&&!e.patchRoutesOnNavigation){let le=Mi(404,{pathname:e.history.location.pathname}),{matches:ie,route:me}=uF(i);O=!0,A=ie,C={[me.id]:le}}else if(A&&!e.hydrationData&&Bo(A,i,e.history.location.pathname).active&&(A=null),A)if(A.some(le=>le.route.lazy))O=!1;else if(!A.some(le=>le.route.loader))O=!0;else{let le=e.hydrationData?e.hydrationData.loaderData:null,ie=e.hydrationData?e.hydrationData.errors:null;if(ie){let me=A.findIndex(Le=>ie[Le.route.id]!==void 0);O=A.slice(0,me+1).every(Le=>!ek(Le.route,le,ie))}else O=A.every(me=>!ek(me.route,le,ie))}else{O=!1,A=[];let le=Bo(null,i,e.history.location.pathname);le.active&&le.matches&&(R=!0,A=le.matches)}let T,E={historyAction:e.history.action,location:e.history.location,matches:A,initialized:O,navigation:aE,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},L="POP",j=!1,M,k=!1,$=new Map,B=null,z=!1,U=!1,W=new Set,Q=new Map,V=0,K=-1,X=new Map,te=new Set,G=new Map,J=new Map,de=new Set,ce=new Map,ue,be=null;function Pe(){if(v=e.history.listen(({action:le,location:ie,delta:me})=>{if(ue){ue(),ue=void 0;return}gn(ce.size===0||me!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Le=en({currentLocation:E.location,nextLocation:ie,historyAction:le});if(Le&&me!=null){let Ke=new Promise(at=>{ue=at});e.history.go(me*-1),lr(Le,{state:"blocked",location:ie,proceed(){lr(Le,{state:"proceeding",proceed:void 0,reset:void 0,location:ie}),Ke.then(()=>e.history.go(me))},reset(){let at=new Map(E.blockers);at.set(Le,Kh),xe({blockers:at})}});return}return Fe(le,ie)}),r){sK(t,$);let le=()=>lK(t,$);t.addEventListener("pagehide",le),B=()=>t.removeEventListener("pagehide",le)}return E.initialized||Fe("POP",E.location,{initialHydration:!0}),T}function Ee(){v&&v(),B&&B(),y.clear(),M&&M.abort(),E.fetchers.forEach((le,ie)=>Pt(ie)),E.blockers.forEach((le,ie)=>Kt(ie))}function ge(le){return y.add(le),()=>y.delete(le)}function xe(le,ie={}){E={...E,...le};let me=[],Le=[];E.fetchers.forEach((Ke,at)=>{Ke.state==="idle"&&(de.has(at)?me.push(at):Le.push(at))}),de.forEach(Ke=>{!E.fetchers.has(Ke)&&!Q.has(Ke)&&me.push(Ke)}),[...y].forEach(Ke=>Ke(E,{deletedFetchers:me,viewTransitionOpts:ie.viewTransitionOpts,flushSync:ie.flushSync===!0})),me.forEach(Ke=>Pt(Ke)),Le.forEach(Ke=>E.fetchers.delete(Ke))}function Oe(le,ie,{flushSync:me}={}){var At,qt;let Le=E.actionData!=null&&E.navigation.formMethod!=null&&ni(E.navigation.formMethod)&&E.navigation.state==="loading"&&((At=le.state)==null?void 0:At._isRedirect)!==!0,Ke;ie.actionData?Object.keys(ie.actionData).length>0?Ke=ie.actionData:Ke=null:Le?Ke=E.actionData:Ke=null;let at=ie.loaderData?sF(E.loaderData,ie.loaderData,ie.matches||[],ie.errors):E.loaderData,Et=E.blockers;Et.size>0&&(Et=new Map(Et),Et.forEach((Ft,Xt)=>Et.set(Xt,Kh)));let ut=j===!0||E.navigation.formMethod!=null&&ni(E.navigation.formMethod)&&((qt=le.state)==null?void 0:qt._isRedirect)!==!0;u&&(i=u,u=void 0),z||L==="POP"||(L==="PUSH"?e.history.push(le,le.state):L==="REPLACE"&&e.history.replace(le,le.state));let Ot;if(L==="POP"){let Ft=$.get(E.location.pathname);Ft&&Ft.has(le.pathname)?Ot={currentLocation:E.location,nextLocation:le}:$.has(le.pathname)&&(Ot={currentLocation:le,nextLocation:E.location})}else if(k){let Ft=$.get(E.location.pathname);Ft?Ft.add(le.pathname):(Ft=new Set([le.pathname]),$.set(E.location.pathname,Ft)),Ot={currentLocation:E.location,nextLocation:le}}xe({...ie,actionData:Ke,loaderData:at,historyAction:L,location:le,initialized:!0,navigation:aE,revalidation:"idle",restoreScrollPosition:Yi(le,ie.matches||E.matches),preventScrollReset:ut,blockers:Et},{viewTransitionOpts:Ot,flushSync:me===!0}),L="POP",j=!1,k=!1,z=!1,U=!1,be==null||be.resolve(),be=null}async function Te(le,ie){if(typeof le=="number"){e.history.go(le);return}let me=Z2(E.location,E.matches,d,le,ie==null?void 0:ie.fromRouteId,ie==null?void 0:ie.relative),{path:Le,submission:Ke,error:at}=JM(!1,me,ie),Et=E.location,ut=tb(E.location,Le,ie&&ie.state);ut={...ut,...e.history.encodeLocation(ut)};let Ot=ie&&ie.replace!=null?ie.replace:void 0,At="PUSH";Ot===!0?At="REPLACE":Ot===!1||Ke!=null&&ni(Ke.formMethod)&&Ke.formAction===E.location.pathname+E.location.search&&(At="REPLACE");let qt=ie&&"preventScrollReset"in ie?ie.preventScrollReset===!0:void 0,Ft=(ie&&ie.flushSync)===!0,Xt=en({currentLocation:Et,nextLocation:ut,historyAction:At});if(Xt){lr(Xt,{state:"blocked",location:ut,proceed(){lr(Xt,{state:"proceeding",proceed:void 0,reset:void 0,location:ut}),Te(le,ie)},reset(){let ur=new Map(E.blockers);ur.set(Xt,Kh),xe({blockers:ur})}});return}await Fe(At,ut,{submission:Ke,pendingError:at,preventScrollReset:qt,replace:ie&&ie.replace,enableViewTransition:ie&&ie.viewTransition,flushSync:Ft})}function Me(){be||(be=uK()),De(),xe({revalidation:"loading"});let le=be.promise;return E.navigation.state==="submitting"?le:E.navigation.state==="idle"?(Fe(E.historyAction,E.location,{startUninterruptedRevalidation:!0}),le):(Fe(L||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation,enableViewTransition:k===!0}),le)}async function Fe(le,ie,me){M&&M.abort(),M=null,L=le,z=(me&&me.startUninterruptedRevalidation)===!0,ia(E.location,E.matches),j=(me&&me.preventScrollReset)===!0,k=(me&&me.enableViewTransition)===!0;let Le=u||i,Ke=me&&me.overrideNavigation,at=me!=null&&me.initialHydration&&E.matches&&E.matches.length>0&&!R?E.matches:jc(Le,ie,d),Et=(me&&me.flushSync)===!0;if(at&&E.initialized&&!U&&rK(E.location,ie)&&!(me&&me.submission&&ni(me.submission.formMethod))){Oe(ie,{matches:at},{flushSync:Et});return}let ut=Bo(at,Le,ie.pathname);if(ut.active&&ut.matches&&(at=ut.matches),!at){let{error:bn,notFoundMatches:sa,route:ir}=Bn(ie.pathname);Oe(ie,{matches:sa,loaderData:{},errors:{[ir.id]:bn}},{flushSync:Et});return}M=new AbortController;let Ot=Gh(e.history,ie,M.signal,me&&me.submission),At=new XM(e.unstable_getContext?await e.unstable_getContext():void 0),qt;if(me&&me.pendingError)qt=[kf(at).route.id,{type:"error",error:me.pendingError}];else if(me&&me.submission&&ni(me.submission.formMethod)){let bn=await $e(Ot,ie,me.submission,at,At,ut.active,me&&me.initialHydration===!0,{replace:me.replace,flushSync:Et});if(bn.shortCircuited)return;if(bn.pendingActionResult){let[sa,ir]=bn.pendingActionResult;if(ri(ir)&&rb(ir.error)&&ir.error.status===404){M=null,Oe(ie,{matches:bn.matches,loaderData:{},errors:{[sa]:ir.error}});return}}at=bn.matches||at,qt=bn.pendingActionResult,Ke=oE(ie,me.submission),Et=!1,ut.active=!1,Ot=Gh(e.history,Ot.url,Ot.signal)}let{shortCircuited:Ft,matches:Xt,loaderData:ur,errors:Gr}=await et(Ot,ie,at,At,ut.active,Ke,me&&me.submission,me&&me.fetcherSubmission,me&&me.replace,me&&me.initialHydration===!0,Et,qt);Ft||(M=null,Oe(ie,{matches:Xt||at,...lF(qt),loaderData:ur,errors:Gr}))}async function $e(le,ie,me,Le,Ke,at,Et,ut={}){De();let Ot=oK(ie,me);if(xe({navigation:Ot},{flushSync:ut.flushSync===!0}),at){let Ft=await zo(Le,ie.pathname,le.signal);if(Ft.type==="aborted")return{shortCircuited:!0};if(Ft.type==="error"){let Xt=kf(Ft.partialMatches).route.id;return{matches:Ft.partialMatches,pendingActionResult:[Xt,{type:"error",error:Ft.error}]}}else if(Ft.matches)Le=Ft.matches;else{let{notFoundMatches:Xt,error:ur,route:Gr}=Bn(ie.pathname);return{matches:Xt,pendingActionResult:[Gr.id,{type:"error",error:ur}]}}}let At,qt=ly(Le,ie);if(!qt.route.action&&!qt.route.lazy)At={type:"error",error:Mi(405,{method:le.method,pathname:ie.pathname,routeId:qt.route.id})};else{let Ft=om(a,o,le,Le,qt,Et?[]:n,Ke),Xt=await we(le,Ft,Ke,null);if(At=Xt[qt.route.id],!At){for(let ur of Le)if(Xt[ur.route.id]){At=Xt[ur.route.id];break}}if(le.signal.aborted)return{shortCircuited:!0}}if($f(At)){let Ft;return ut&&ut.replace!=null?Ft=ut.replace:Ft=aF(At.response.headers.get("Location"),new URL(le.url),d)===E.location.pathname+E.location.search,await ne(le,At,!0,{submission:me,replace:Ft}),{shortCircuited:!0}}if(ri(At)){let Ft=kf(Le,qt.route.id);return(ut&&ut.replace)!==!0&&(L="PUSH"),{matches:Le,pendingActionResult:[Ft.route.id,At,qt.route.id]}}return{matches:Le,pendingActionResult:[qt.route.id,At]}}async function et(le,ie,me,Le,Ke,at,Et,ut,Ot,At,qt,Ft){let Xt=at||oE(ie,Et),ur=Et||ut||dF(Xt),Gr=!z&&!At;if(Ke){if(Gr){let la=qe(Ft);xe({navigation:Xt,...la!==void 0?{actionData:la}:{}},{flushSync:qt})}let cr=await zo(me,ie.pathname,le.signal);if(cr.type==="aborted")return{shortCircuited:!0};if(cr.type==="error"){let la=kf(cr.partialMatches).route.id;return{matches:cr.partialMatches,loaderData:{},errors:{[la]:cr.error}}}else if(cr.matches)me=cr.matches;else{let{error:la,notFoundMatches:ho,route:Ji}=Bn(ie.pathname);return{matches:ho,loaderData:{},errors:{[Ji.id]:la}}}}let bn=u||i,{dsMatches:sa,revalidatingFetchers:ir}=ZM(le,Le,a,o,e.history,E,me,ur,ie,At?[]:n,At===!0,U,W,de,G,te,bn,d,e.patchRoutesOnNavigation!=null,Ft);if(K=++V,!e.dataStrategy&&!sa.some(cr=>cr.shouldLoad)&&ir.length===0){let cr=Lt();return Oe(ie,{matches:me,loaderData:{},errors:Ft&&ri(Ft[1])?{[Ft[0]]:Ft[1].error}:null,...lF(Ft),...cr?{fetchers:new Map(E.fetchers)}:{}},{flushSync:qt}),{shortCircuited:!0}}if(Gr){let cr={};if(!Ke){cr.navigation=Xt;let la=qe(Ft);la!==void 0&&(cr.actionData=la)}ir.length>0&&(cr.fetchers=re(ir)),xe(cr,{flushSync:qt})}ir.forEach(cr=>{Je(cr.key),cr.controller&&Q.set(cr.key,cr.controller)});let js=()=>ir.forEach(cr=>Je(cr.key));M&&M.signal.addEventListener("abort",js);let{loaderResults:hi,fetcherResults:Ms}=await Ne(sa,ir,le,Le);if(le.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",js),ir.forEach(cr=>Q.delete(cr.key));let zn=F_(hi);if(zn)return await ne(le,zn.result,!0,{replace:Ot}),{shortCircuited:!0};if(zn=F_(Ms),zn)return te.add(zn.key),await ne(le,zn.result,!0,{replace:Ot}),{shortCircuited:!0};let{loaderData:Fl,errors:Sr}=iF(E,me,hi,Ft,ir,Ms);At&&E.errors&&(Sr={...E.errors,...Sr});let Pd=Lt(),qo=Ct(K),Ll=Pd||qo||ir.length>0;return{matches:me,loaderData:Fl,errors:Sr,...Ll?{fetchers:new Map(E.fetchers)}:{}}}function qe(le){if(le&&!ri(le[1]))return{[le[0]]:le[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function re(le){return le.forEach(ie=>{let me=E.fetchers.get(ie.key),Le=Vg(void 0,me?me.data:void 0);E.fetchers.set(ie.key,Le)}),new Map(E.fetchers)}async function oe(le,ie,me,Le){Je(le);let Ke=(Le&&Le.flushSync)===!0,at=u||i,Et=Z2(E.location,E.matches,d,me,ie,Le==null?void 0:Le.relative),ut=jc(at,Et,d),Ot=Bo(ut,at,Et);if(Ot.active&&Ot.matches&&(ut=Ot.matches),!ut){lt(le,ie,Mi(404,{pathname:Et}),{flushSync:Ke});return}let{path:At,submission:qt,error:Ft}=JM(!0,Et,Le);if(Ft){lt(le,ie,Ft,{flushSync:Ke});return}let Xt=ly(ut,At),ur=new XM(e.unstable_getContext?await e.unstable_getContext():void 0),Gr=(Le&&Le.preventScrollReset)===!0;if(qt&&ni(qt.formMethod)){await pe(le,ie,At,Xt,ut,ur,Ot.active,Ke,Gr,qt);return}G.set(le,{routeId:ie,path:At}),await Se(le,ie,At,Xt,ut,ur,Ot.active,Ke,Gr,qt)}async function pe(le,ie,me,Le,Ke,at,Et,ut,Ot,At){De(),G.delete(le);function qt(Yr){if(!Yr.route.action&&!Yr.route.lazy){let Pn=Mi(405,{method:At.formMethod,pathname:me,routeId:ie});return lt(le,ie,Pn,{flushSync:ut}),!0}return!1}if(!Et&&qt(Le))return;let Ft=E.fetchers.get(le);ht(le,iK(At,Ft),{flushSync:ut});let Xt=new AbortController,ur=Gh(e.history,me,Xt.signal,At);if(Et){let Yr=await zo(Ke,me,ur.signal,le);if(Yr.type==="aborted")return;if(Yr.type==="error"){lt(le,ie,Yr.error,{flushSync:ut});return}else if(Yr.matches){if(Ke=Yr.matches,Le=ly(Ke,me),qt(Le))return}else{lt(le,ie,Mi(404,{pathname:me}),{flushSync:ut});return}}Q.set(le,Xt);let Gr=V,bn=om(a,o,ur,Ke,Le,n,at),ir=(await we(ur,bn,at,le))[Le.route.id];if(ur.signal.aborted){Q.get(le)===Xt&&Q.delete(le);return}if(de.has(le)){if($f(ir)||ri(ir)){ht(le,Rc(void 0));return}}else{if($f(ir))if(Q.delete(le),K>Gr){ht(le,Rc(void 0));return}else return te.add(le),ht(le,Vg(At)),ne(ur,ir,!1,{fetcherSubmission:At,preventScrollReset:Ot});if(ri(ir)){lt(le,ie,ir.error);return}}let js=E.navigation.location||E.location,hi=Gh(e.history,js,Xt.signal),Ms=u||i,zn=E.navigation.state!=="idle"?jc(Ms,E.navigation.location,d):E.matches;Zt(zn,"Didn't find any matches after fetcher action");let Fl=++V;X.set(le,Fl);let Sr=Vg(At,ir.data);E.fetchers.set(le,Sr);let{dsMatches:Pd,revalidatingFetchers:qo}=ZM(hi,at,a,o,e.history,E,zn,At,js,n,!1,U,W,de,G,te,Ms,d,e.patchRoutesOnNavigation!=null,[Le.route.id,ir]);qo.filter(Yr=>Yr.key!==le).forEach(Yr=>{let Pn=Yr.key,Rd=E.fetchers.get(Pn),gp=Vg(void 0,Rd?Rd.data:void 0);E.fetchers.set(Pn,gp),Je(Pn),Yr.controller&&Q.set(Pn,Yr.controller)}),xe({fetchers:new Map(E.fetchers)});let Ll=()=>qo.forEach(Yr=>Je(Yr.key));Xt.signal.addEventListener("abort",Ll);let{loaderResults:cr,fetcherResults:la}=await Ne(Pd,qo,hi,at);if(Xt.signal.aborted)return;if(Xt.signal.removeEventListener("abort",Ll),X.delete(le),Q.delete(le),qo.forEach(Yr=>Q.delete(Yr.key)),E.fetchers.has(le)){let Yr=Rc(ir.data);E.fetchers.set(le,Yr)}let ho=F_(cr);if(ho)return ne(hi,ho.result,!1,{preventScrollReset:Ot});if(ho=F_(la),ho)return te.add(ho.key),ne(hi,ho.result,!1,{preventScrollReset:Ot});let{loaderData:Ji,errors:Ra}=iF(E,zn,cr,void 0,qo,la);Ct(Fl),E.navigation.state==="loading"&&Fl>K?(Zt(L,"Expected pending action"),M&&M.abort(),Oe(E.navigation.location,{matches:zn,loaderData:Ji,errors:Ra,fetchers:new Map(E.fetchers)})):(xe({errors:Ra,loaderData:sF(E.loaderData,Ji,zn,Ra),fetchers:new Map(E.fetchers)}),U=!1)}async function Se(le,ie,me,Le,Ke,at,Et,ut,Ot,At){let qt=E.fetchers.get(le);ht(le,Vg(At,qt?qt.data:void 0),{flushSync:ut});let Ft=new AbortController,Xt=Gh(e.history,me,Ft.signal);if(Et){let ir=await zo(Ke,me,Xt.signal,le);if(ir.type==="aborted")return;if(ir.type==="error"){lt(le,ie,ir.error,{flushSync:ut});return}else if(ir.matches)Ke=ir.matches,Le=ly(Ke,me);else{lt(le,ie,Mi(404,{pathname:me}),{flushSync:ut});return}}Q.set(le,Ft);let ur=V,Gr=om(a,o,Xt,Ke,Le,n,at),sa=(await we(Xt,Gr,at,le))[Le.route.id];if(Q.get(le)===Ft&&Q.delete(le),!Xt.signal.aborted){if(de.has(le)){ht(le,Rc(void 0));return}if($f(sa))if(K>ur){ht(le,Rc(void 0));return}else{te.add(le),await ne(Xt,sa,!1,{preventScrollReset:Ot});return}if(ri(sa)){lt(le,ie,sa.error);return}ht(le,Rc(sa.data))}}async function ne(le,ie,me,{submission:Le,fetcherSubmission:Ke,preventScrollReset:at,replace:Et}={}){ie.response.headers.has("X-Remix-Revalidate")&&(U=!0);let ut=ie.response.headers.get("Location");Zt(ut,"Expected a Location header on the redirect Response"),ut=aF(ut,new URL(le.url),d);let Ot=tb(E.location,ut,{_isRedirect:!0});if(r){let Gr=!1;if(ie.response.headers.has("X-Remix-Reload-Document"))Gr=!0;else if(bA.test(ut)){const bn=uB(ut,!0);Gr=bn.origin!==t.location.origin||Do(bn.pathname,d)==null}if(Gr){Et?t.location.replace(ut):t.location.assign(ut);return}}M=null;let At=Et===!0||ie.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:qt,formAction:Ft,formEncType:Xt}=E.navigation;!Le&&!Ke&&qt&&Ft&&Xt&&(Le=dF(E.navigation));let ur=Le||Ke;if(q7.has(ie.response.status)&&ur&&ni(ur.formMethod))await Fe(At,Ot,{submission:{...ur,formAction:ut},preventScrollReset:at||j,enableViewTransition:me?k:void 0});else{let Gr=oE(Ot,Le);await Fe(At,Ot,{overrideNavigation:Gr,fetcherSubmission:Ke,preventScrollReset:at||j,enableViewTransition:me?k:void 0})}}async function we(le,ie,me,Le){let Ke,at={};try{Ke=await Y7(l,le,ie,Le,me,!1)}catch(Et){return ie.filter(ut=>ut.shouldLoad).forEach(ut=>{at[ut.route.id]={type:"error",error:Et}}),at}if(le.signal.aborted)return at;for(let[Et,ut]of Object.entries(Ke))if(nK(ut)){let Ot=ut.result;at[Et]={type:"redirect",response:eK(Ot,le,Et,ie,d)}}else at[Et]=await Z7(ut);return at}async function Ne(le,ie,me,Le){let Ke=we(me,le,Le,null),at=Promise.all(ie.map(async Ot=>{if(Ot.matches&&Ot.match&&Ot.request&&Ot.controller){let qt=(await we(Ot.request,Ot.matches,Le,Ot.key))[Ot.match.route.id];return{[Ot.key]:qt}}else return Promise.resolve({[Ot.key]:{type:"error",error:Mi(404,{pathname:Ot.path})}})})),Et=await Ke,ut=(await at).reduce((Ot,At)=>Object.assign(Ot,At),{});return{loaderResults:Et,fetcherResults:ut}}function De(){U=!0,G.forEach((le,ie)=>{Q.has(ie)&&W.add(ie),Je(ie)})}function ht(le,ie,me={}){E.fetchers.set(le,ie),xe({fetchers:new Map(E.fetchers)},{flushSync:(me&&me.flushSync)===!0})}function lt(le,ie,me,Le={}){let Ke=kf(E.matches,ie);Pt(le),xe({errors:{[Ke.route.id]:me},fetchers:new Map(E.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function bt(le){return J.set(le,(J.get(le)||0)+1),de.has(le)&&de.delete(le),E.fetchers.get(le)||U7}function Pt(le){let ie=E.fetchers.get(le);Q.has(le)&&!(ie&&ie.state==="loading"&&X.has(le))&&Je(le),G.delete(le),X.delete(le),te.delete(le),de.delete(le),W.delete(le),E.fetchers.delete(le)}function Tt(le){let ie=(J.get(le)||0)-1;ie<=0?(J.delete(le),de.add(le)):J.set(le,ie),xe({fetchers:new Map(E.fetchers)})}function Je(le){let ie=Q.get(le);ie&&(ie.abort(),Q.delete(le))}function Dt(le){for(let ie of le){let me=bt(ie),Le=Rc(me.data);E.fetchers.set(ie,Le)}}function Lt(){let le=[],ie=!1;for(let me of te){let Le=E.fetchers.get(me);Zt(Le,`Expected fetcher: ${me}`),Le.state==="loading"&&(te.delete(me),le.push(me),ie=!0)}return Dt(le),ie}function Ct(le){let ie=[];for(let[me,Le]of X)if(Le<le){let Ke=E.fetchers.get(me);Zt(Ke,`Expected fetcher: ${me}`),Ke.state==="loading"&&(Je(me),X.delete(me),ie.push(me))}return Dt(ie),ie.length>0}function ct(le,ie){let me=E.blockers.get(le)||Kh;return ce.get(le)!==ie&&ce.set(le,ie),me}function Kt(le){E.blockers.delete(le),ce.delete(le)}function lr(le,ie){let me=E.blockers.get(le)||Kh;Zt(me.state==="unblocked"&&ie.state==="blocked"||me.state==="blocked"&&ie.state==="blocked"||me.state==="blocked"&&ie.state==="proceeding"||me.state==="blocked"&&ie.state==="unblocked"||me.state==="proceeding"&&ie.state==="unblocked",`Invalid blocker state transition: ${me.state} -> ${ie.state}`);let Le=new Map(E.blockers);Le.set(le,ie),xe({blockers:Le})}function en({currentLocation:le,nextLocation:ie,historyAction:me}){if(ce.size===0)return;ce.size>1&&gn(!1,"A router only supports one blocker at a time");let Le=Array.from(ce.entries()),[Ke,at]=Le[Le.length-1],Et=E.blockers.get(Ke);if(!(Et&&Et.state==="proceeding")&&at({currentLocation:le,nextLocation:ie,historyAction:me}))return Ke}function Bn(le){let ie=Mi(404,{pathname:le}),me=u||i,{matches:Le,route:Ke}=uF(me);return{notFoundMatches:Le,route:Ke,error:ie}}function Xi(le,ie,me){if(b=le,w=ie,_=me||null,!S&&E.navigation===aE){S=!0;let Le=Yi(E.location,E.matches);Le!=null&&xe({restoreScrollPosition:Le})}return()=>{b=null,w=null,_=null}}function Pa(le,ie){return _&&_(le,ie.map(Le=>w7(Le,E.loaderData)))||le.key}function ia(le,ie){if(b&&w){let me=Pa(le,ie);b[me]=w()}}function Yi(le,ie){if(b){let me=Pa(le,ie),Le=b[me];if(typeof Le=="number")return Le}return null}function Bo(le,ie,me){if(e.patchRoutesOnNavigation)if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:f1(ie,me,d,!0)}}else return{active:!0,matches:f1(ie,me,d,!0)||[]};return{active:!1,matches:null}}async function zo(le,ie,me,Le){if(!e.patchRoutesOnNavigation)return{type:"success",matches:le};let Ke=le;for(;;){let at=u==null,Et=u||i,ut=o;try{await e.patchRoutesOnNavigation({signal:me,path:ie,matches:Ke,fetcherKey:Le,patch:(qt,Ft)=>{me.aborted||eF(qt,Ft,Et,ut,a)}})}catch(qt){return{type:"error",error:qt,partialMatches:Ke}}finally{at&&!me.aborted&&(i=[...i])}if(me.aborted)return{type:"aborted"};let Ot=jc(Et,ie,d);if(Ot)return{type:"success",matches:Ot};let At=f1(Et,ie,d,!0);if(!At||Ke.length===At.length&&Ke.every((qt,Ft)=>qt.route.id===At[Ft].route.id))return{type:"success",matches:null};Ke=At}}function Is(le){o={},u=T1(le,a,void 0,o)}function Ht(le,ie){let me=u==null;eF(le,ie,u||i,o,a),me&&(i=[...i],xe({}))}return T={get basename(){return d},get future(){return h},get state(){return E},get routes(){return i},get window(){return t},initialize:Pe,subscribe:ge,enableScrollRestoration:Xi,navigate:Te,fetch:oe,revalidate:Me,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:bt,deleteFetcher:Tt,dispose:Ee,getBlocker:ct,deleteBlocker:Kt,patchRoutes:Ht,_internalFetchControllers:Q,_internalSetRoutes:Is},T}function H7(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Z2(e,t,r,n,a,o){let i,u;if(a){i=[];for(let l of t)if(i.push(l),l.route.id===a){u=l;break}}else i=t,u=t[t.length-1];let d=rx(n||".",tx(i),Do(e.pathname,r)||e.pathname,o==="path");if(n==null&&(d.search=e.search,d.hash=e.hash),(n==null||n===""||n===".")&&u){let l=_A(d.search);if(u.route.index&&!l)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&l){let h=new URLSearchParams(d.search),v=h.getAll("index");h.delete("index"),v.filter(b=>b).forEach(b=>h.append("index",b));let y=h.toString();d.search=y?`?${y}`:""}}return r!=="/"&&(d.pathname=d.pathname==="/"?r:Sl([r,d.pathname])),od(d)}function JM(e,t,r){if(!r||!H7(r))return{path:t};if(r.formMethod&&!aK(r.formMethod))return{path:t,error:Mi(405,{method:r.formMethod})};let n=()=>({path:t,error:Mi(400,{type:"invalid-body"})}),o=(r.formMethod||"get").toUpperCase(),i=xB(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ni(o))return n();let v=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,[b,_])=>`${y}${b}=${_}
`,""):String(r.body);return{path:t,submission:{formMethod:o,formAction:i,formEncType:r.formEncType,formData:void 0,json:void 0,text:v}}}else if(r.formEncType==="application/json"){if(!ni(o))return n();try{let v=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:o,formAction:i,formEncType:r.formEncType,formData:void 0,json:v,text:void 0}}}catch{return n()}}}Zt(typeof FormData=="function","FormData is not available in this environment");let u,d;if(r.formData)u=rk(r.formData),d=r.formData;else if(r.body instanceof FormData)u=rk(r.body),d=r.body;else if(r.body instanceof URLSearchParams)u=r.body,d=oF(u);else if(r.body==null)u=new URLSearchParams,d=new FormData;else try{u=new URLSearchParams(r.body),d=oF(u)}catch{return n()}let l={formMethod:o,formAction:i,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(ni(l.formMethod))return{path:t,submission:l};let h=Al(t);return e&&h.search&&_A(h.search)&&u.append("index",""),h.search=`?${u}`,{path:od(h),submission:l}}function ZM(e,t,r,n,a,o,i,u,d,l,h,v,y,b,_,w,S,A,R,C){var z;let O=C?ri(C[1])?C[1].error:C[1].data:void 0,T=a.createURL(o.location),E=a.createURL(d),L;if(h&&o.errors){let U=Object.keys(o.errors)[0];L=i.findIndex(W=>W.route.id===U)}else if(C&&ri(C[1])){let U=C[0];L=i.findIndex(W=>W.route.id===U)-1}let j=C?C[1].statusCode:void 0,M=j&&j>=400,k={currentUrl:T,currentParams:((z=o.matches[0])==null?void 0:z.params)||{},nextUrl:E,nextParams:i[0].params,...u,actionResult:O,actionStatus:j},$=i.map((U,W)=>{let{route:Q}=U,V=null;if(L!=null&&W>L?V=!1:Q.lazy?V=!0:Q.loader==null?V=!1:h?V=ek(Q,o.loaderData,o.errors):K7(o.loaderData,o.matches[W],U)&&(V=!0),V!==null)return tk(r,n,e,U,l,t,V);let K=M?!1:v||T.pathname+T.search===E.pathname+E.search||T.search!==E.search||G7(o.matches[W],U),X={...k,defaultShouldRevalidate:K},te=I1(U,X);return tk(r,n,e,U,l,t,te,X)}),B=[];return _.forEach((U,W)=>{if(h||!i.some(de=>de.route.id===U.routeId)||b.has(W))return;let Q=o.fetchers.get(W),V=Q&&Q.state!=="idle"&&Q.data===void 0,K=jc(S,U.path,A);if(!K){if(R&&V)return;B.push({key:W,routeId:U.routeId,path:U.path,matches:null,match:null,request:null,controller:null});return}if(w.has(W))return;let X=ly(K,U.path),te=new AbortController,G=Gh(a,U.path,te.signal),J=null;if(y.has(W))y.delete(W),J=om(r,n,G,K,X,l,t);else if(V)v&&(J=om(r,n,G,K,X,l,t));else{let de={...k,defaultShouldRevalidate:M?!1:v};I1(X,de)&&(J=om(r,n,G,K,X,l,t,de))}J&&B.push({key:W,routeId:U.routeId,path:U.path,matches:J,match:X,request:G,controller:te})}),{dsMatches:$,revalidatingFetchers:B}}function ek(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&e.id in t,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function K7(e,t,r){let n=!t||r.route.id!==t.route.id,a=!e.hasOwnProperty(r.route.id);return n||a}function G7(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function I1(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function eF(e,t,r,n,a){let o;if(e){let d=n[e];Zt(d,`No route found to patch children into: routeId = ${e}`),d.children||(d.children=[]),o=d.children}else o=r;let i=t.filter(d=>!o.some(l=>gB(d,l))),u=T1(i,a,[e||"_","patch",String((o==null?void 0:o.length)||"0")],n);o.push(...u)}function gB(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(o=>gB(r,o))}):!1}var tF=new WeakMap,yB=({key:e,route:t,manifest:r,mapRouteProperties:n})=>{let a=r[t.id];if(Zt(a,"No route found in manifest"),!a.lazy||typeof a.lazy!="object")return;let o=a.lazy[e];if(!o)return;let i=tF.get(a);i||(i={},tF.set(a,i));let u=i[e];if(u)return u;let d=(async()=>{let l=g7(e),v=a[e]!==void 0&&e!=="hasErrorBoundary";if(l)gn(!l,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(v)gn(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let y=await o();y!=null&&(Object.assign(a,{[e]:y}),Object.assign(a,n(a)))}typeof a.lazy=="object"&&(a.lazy[e]=void 0,Object.values(a.lazy).every(y=>y===void 0)&&(a.lazy=void 0))})();return i[e]=d,d},rF=new WeakMap;function Q7(e,t,r,n,a){let o=r[e.id];if(Zt(o,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let h=rF.get(o);if(h)return{lazyRoutePromise:h,lazyHandlerPromise:h};let v=(async()=>{Zt(typeof e.lazy=="function","No lazy route function found");let y=await e.lazy(),b={};for(let _ in y){let w=y[_];if(w===void 0)continue;let S=b7(_),R=o[_]!==void 0&&_!=="hasErrorBoundary";S?gn(!S,"Route property "+_+" is not a supported property to be returned from a lazy route function. This property will be ignored."):R?gn(!R,`Route "${o.id}" has a static property "${_}" defined but its lazy function is also returning a value for this property. The lazy route property "${_}" will be ignored.`):b[_]=w}Object.assign(o,b),Object.assign(o,{...n(o),lazy:void 0})})();return rF.set(o,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let i=Object.keys(e.lazy),u=[],d;for(let h of i){if(a&&a.includes(h))continue;let v=yB({key:h,route:e,manifest:r,mapRouteProperties:n});v&&(u.push(v),h===t&&(d=v))}let l=u.length>0?Promise.all(u).then(()=>{}):void 0;return l==null||l.catch(()=>{}),d==null||d.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:d}}async function nF(e){let t=e.matches.filter(a=>a.shouldLoad),r={};return(await Promise.all(t.map(a=>a.resolve()))).forEach((a,o)=>{r[t[o].route.id]=a}),r}async function X7(e){return e.matches.some(t=>t.route.unstable_middleware)?bB(e,!1,()=>nF(e),(t,r)=>({[r]:{type:"error",result:t}})):nF(e)}async function bB(e,t,r,n){let{matches:a,request:o,params:i,context:u}=e,d={handlerResult:void 0};try{let l=a.flatMap(v=>v.route.unstable_middleware?v.route.unstable_middleware.map(y=>[v.route.id,y]):[]),h=await _B({request:o,params:i,context:u},l,t,d,r);return t?h:d.handlerResult}catch(l){if(!d.middlewareError)throw l;let h=await n(d.middlewareError.error,d.middlewareError.routeId);return d.handlerResult?Object.assign(d.handlerResult,h):h}}async function _B(e,t,r,n,a,o=0){let{request:i}=e;if(i.signal.aborted)throw i.signal.reason?i.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`);let u=t[o];if(!u)return n.handlerResult=await a(),n.handlerResult;let[d,l]=u,h=!1,v,y=async()=>{if(h)throw new Error("You may only call `next()` once per middleware");h=!0,await _B(e,t,r,n,a,o+1)};try{let b=await l({request:e.request,params:e.params,context:e.context},y);return h?b===void 0?v:b:y()}catch(b){throw n.middlewareError?n.middlewareError.error!==b&&(n.middlewareError={routeId:d,error:b}):n.middlewareError={routeId:d,error:b},b}}function wB(e,t,r,n,a){let o=yB({key:"unstable_middleware",route:n.route,manifest:t,mapRouteProperties:e}),i=Q7(n.route,ni(r.method)?"action":"loader",t,e,a);return{middleware:o,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function tk(e,t,r,n,a,o,i,u=null){let d=!1,l=wB(e,t,r,n,a);return{...n,_lazyPromises:l,shouldLoad:i,unstable_shouldRevalidateArgs:u,unstable_shouldCallHandler(h){return d=!0,u?typeof h=="boolean"?I1(n,{...u,defaultShouldRevalidate:h}):I1(n,u):i},resolve(h){return d||i||h&&r.method==="GET"&&(n.route.lazy||n.route.loader)?J7({request:r,match:n,lazyHandlerPromise:l==null?void 0:l.handler,lazyRoutePromise:l==null?void 0:l.route,handlerOverride:h,scopedContext:o}):Promise.resolve({type:"data",result:void 0})}}}function om(e,t,r,n,a,o,i,u=null){return n.map(d=>d.route.id!==a.route.id?{...d,shouldLoad:!1,unstable_shouldRevalidateArgs:u,unstable_shouldCallHandler:()=>!1,_lazyPromises:wB(e,t,r,d,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:tk(e,t,r,d,o,i,!0,u))}async function Y7(e,t,r,n,a,o){r.some(l=>{var h;return(h=l._lazyPromises)==null?void 0:h.middleware})&&await Promise.all(r.map(l=>{var h;return(h=l._lazyPromises)==null?void 0:h.middleware}));let i={request:t,params:r[0].params,context:a,matches:r},d=await e({...i,fetcherKey:n,unstable_runClientMiddleware:l=>{let h=i;return bB(h,!1,()=>l({...h,fetcherKey:n,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(v,y)=>({[y]:{type:"error",result:v}}))}});try{await Promise.all(r.flatMap(l=>{var h,v;return[(h=l._lazyPromises)==null?void 0:h.handler,(v=l._lazyPromises)==null?void 0:v.route]}))}catch{}return d}async function J7({request:e,match:t,lazyHandlerPromise:r,lazyRoutePromise:n,handlerOverride:a,scopedContext:o}){let i,u,d=ni(e.method),l=d?"action":"loader",h=v=>{let y,b=new Promise((S,A)=>y=A);u=()=>y(),e.signal.addEventListener("abort",u);let _=S=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${l}" [routeId: ${t.route.id}]`)):v({request:e,params:t.params,context:o},...S!==void 0?[S]:[]),w=(async()=>{try{return{type:"data",result:await(a?a(A=>_(A)):_())}}catch(S){return{type:"error",result:S}}})();return Promise.race([w,b])};try{let v=d?t.route.action:t.route.loader;if(r||n)if(v){let y,[b]=await Promise.all([h(v).catch(_=>{y=_}),r,n]);if(y!==void 0)throw y;i=b}else{await r;let y=d?t.route.action:t.route.loader;if(y)[i]=await Promise.all([h(y),n]);else if(l==="action"){let b=new URL(e.url),_=b.pathname+b.search;throw Mi(405,{method:e.method,pathname:_,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(v)i=await h(v);else{let y=new URL(e.url),b=y.pathname+y.search;throw Mi(404,{pathname:b})}}catch(v){return{type:"error",result:v}}finally{u&&e.signal.removeEventListener("abort",u)}return i}async function Z7(e){var n,a,o,i,u,d;let{result:t,type:r}=e;if(SB(t)){let l;try{let h=t.headers.get("Content-Type");h&&/\bapplication\/json\b/.test(h)?t.body==null?l=null:l=await t.json():l=await t.text()}catch(h){return{type:"error",error:h}}return r==="error"?{type:"error",error:new A1(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:"data",data:l,statusCode:t.status,headers:t.headers}}return r==="error"?cF(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(n=t.init)==null?void 0:n.status,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new A1(((o=t.init)==null?void 0:o.status)||500,void 0,t.data),statusCode:rb(t)?t.status:void 0,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:rb(t)?t.status:void 0}:cF(t)?{type:"data",data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(d=t.init)!=null&&d.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function eK(e,t,r,n,a){let o=e.headers.get("Location");if(Zt(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!bA.test(o)){let i=n.slice(0,n.findIndex(u=>u.route.id===r)+1);o=Z2(new URL(t.url),i,a,o),e.headers.set("Location",o)}return e}function aF(e,t,r){if(bA.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Do(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Gh(e,t,r,n){let a=e.createURL(xB(t)).toString(),o={signal:r};if(n&&ni(n.formMethod)){let{formMethod:i,formEncType:u}=n;o.method=i.toUpperCase(),u==="application/json"?(o.headers=new Headers({"Content-Type":u}),o.body=JSON.stringify(n.json)):u==="text/plain"?o.body=n.text:u==="application/x-www-form-urlencoded"&&n.formData?o.body=rk(n.formData):o.body=n.formData}return new Request(a,o)}function rk(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function oF(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function tK(e,t,r,n=!1,a=!1){let o={},i=null,u,d=!1,l={},h=r&&ri(r[1])?r[1].error:void 0;return e.forEach(v=>{if(!(v.route.id in t))return;let y=v.route.id,b=t[y];if(Zt(!$f(b),"Cannot handle redirect results in processLoaderData"),ri(b)){let _=b.error;if(h!==void 0&&(_=h,h=void 0),i=i||{},a)i[y]=_;else{let w=kf(e,y);i[w.route.id]==null&&(i[w.route.id]=_)}n||(o[y]=vB),d||(d=!0,u=rb(b.error)?b.error.status:500),b.headers&&(l[y]=b.headers)}else o[y]=b.data,b.statusCode&&b.statusCode!==200&&!d&&(u=b.statusCode),b.headers&&(l[y]=b.headers)}),h!==void 0&&r&&(i={[r[0]]:h},r[2]&&(o[r[2]]=void 0)),{loaderData:o,errors:i,statusCode:u||200,loaderHeaders:l}}function iF(e,t,r,n,a,o){let{loaderData:i,errors:u}=tK(t,r,n);return a.filter(d=>!d.matches||d.matches.some(l=>l.shouldLoad)).forEach(d=>{let{key:l,match:h,controller:v}=d,y=o[l];if(Zt(y,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(ri(y)){let b=kf(e.matches,h==null?void 0:h.route.id);u&&u[b.route.id]||(u={...u,[b.route.id]:y.error}),e.fetchers.delete(l)}else if($f(y))Zt(!1,"Unhandled fetcher revalidation redirect");else{let b=Rc(y.data);e.fetchers.set(l,b)}}),{loaderData:i,errors:u}}function sF(e,t,r,n){let a=Object.entries(t).filter(([,o])=>o!==vB).reduce((o,[i,u])=>(o[i]=u,o),{});for(let o of r){let i=o.route.id;if(!t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function lF(e){return e?ri(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function kf(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function uF(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Mi(e,{pathname:t,routeId:r,method:n,type:a,message:o}={}){let i="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(i="Bad Request",n&&t&&r?u=`You made a ${n} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:a==="invalid-body"&&(u="Unable to encode submission body")):e===403?(i="Forbidden",u=`Route "${r}" does not match URL "${t}"`):e===404?(i="Not Found",u=`No route matches URL "${t}"`):e===405&&(i="Method Not Allowed",n&&t&&r?u=`You made a ${n.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:n&&(u=`Invalid request method "${n.toUpperCase()}"`)),new A1(e||500,i,new Error(u),!0)}function F_(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if($f(a))return{key:n,result:a}}}function xB(e){let t=typeof e=="string"?Al(e):e;return od({...t,hash:""})}function rK(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function nK(e){return SB(e.result)&&z7.has(e.result.status)}function ri(e){return e.type==="error"}function $f(e){return(e&&e.type)==="redirect"}function cF(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function SB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function aK(e){return B7.has(e.toUpperCase())}function ni(e){return D7.has(e.toUpperCase())}function _A(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ly(e,t){let r=typeof t=="string"?Al(t).search:t.search;if(e[e.length-1].route.index&&_A(r||""))return e[e.length-1];let n=pB(e);return n[n.length-1]}function dF(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function oE(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function oK(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Vg(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function iK(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Rc(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function sK(e,t){try{let r=e.sessionStorage.getItem(mB);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function lK(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(mB,JSON.stringify(r))}catch(n){gn(!1,`Failed to save applied view transitions in sessionStorage (${n}).`)}}}function uK(){let e,t,r=new Promise((n,a)=>{e=async o=>{n(o);try{await r}catch{}},t=async o=>{a(o);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}var dd=p.createContext(null);dd.displayName="DataRouter";var ov=p.createContext(null);ov.displayName="DataRouterState";var wA=p.createContext({isTransitioning:!1});wA.displayName="ViewTransition";var CB=p.createContext(new Map);CB.displayName="Fetchers";var cK=p.createContext(null);cK.displayName="Await";var Es=p.createContext(null);Es.displayName="Navigation";var Fb=p.createContext(null);Fb.displayName="Location";var Ki=p.createContext({outlet:null,matches:[],isDataRoute:!1});Ki.displayName="Route";var xA=p.createContext(null);xA.displayName="RouteError";function dK(e,{relative:t}={}){Zt(fd(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=p.useContext(Es),{hash:a,pathname:o,search:i}=$b(e,{relative:t}),u=o;return r!=="/"&&(u=o==="/"?r:Sl([r,o])),n.createHref({pathname:u,search:i,hash:a})}function fd(){return p.useContext(Fb)!=null}function an(){return Zt(fd(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(Fb).location}function fK(e){Zt(fd(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=an();return p.useMemo(()=>id(e,fB(t)),[t,e])}var EB="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function OB(e){p.useContext(Es).static||p.useLayoutEffect(e)}function Os(){let{isDataRoute:e}=p.useContext(Ki);return e?PK():pK()}function pK(){Zt(fd(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(dd),{basename:t,navigator:r}=p.useContext(Es),{matches:n}=p.useContext(Ki),{pathname:a}=an(),o=JSON.stringify(tx(n)),i=p.useRef(!1);return OB(()=>{i.current=!0}),p.useCallback((d,l={})=>{if(gn(i.current,EB),!i.current)return;if(typeof d=="number"){r.go(d);return}let h=rx(d,JSON.parse(o),a,l.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Sl([t,h.pathname])),(l.replace?r.replace:r.push)(h,l.state,l)},[t,r,o,a,e])}var hK=p.createContext(null);function mK(e){let t=p.useContext(Ki).outlet;return t&&p.createElement(hK.Provider,{value:e},t)}function Lb(){let{matches:e}=p.useContext(Ki),t=e[e.length-1];return t?t.params:{}}function $b(e,{relative:t}={}){let{matches:r}=p.useContext(Ki),{pathname:n}=an(),a=JSON.stringify(tx(r));return p.useMemo(()=>rx(e,JSON.parse(a),n,t==="path"),[e,a,n,t])}function vK(e,t){return PB(e,t)}function PB(e,t,r,n){var A;Zt(fd(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=p.useContext(Es),{matches:o}=p.useContext(Ki),i=o[o.length-1],u=i?i.params:{},d=i?i.pathname:"/",l=i?i.pathnameBase:"/",h=i&&i.route;{let R=h&&h.path||"";TB(d,!h||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let v=an(),y;if(t){let R=typeof t=="string"?Al(t):t;Zt(l==="/"||((A=R.pathname)==null?void 0:A.startsWith(l)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${R.pathname}" was given in the \`location\` prop.`),y=R}else y=v;let b=y.pathname||"/",_=b;if(l!=="/"){let R=l.replace(/^\//,"").split("/");_="/"+b.replace(/^\//,"").split("/").slice(R.length).join("/")}let w=jc(e,{pathname:_});gn(h||w!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),gn(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let S=wK(w&&w.map(R=>Object.assign({},R,{params:Object.assign({},u,R.params),pathname:Sl([l,a.encodeLocation?a.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?l:Sl([l,a.encodeLocation?a.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),o,r,n);return t&&S?p.createElement(Fb.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},S):S}function gK(){let e=CK(),t=rb(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:o},"ErrorBoundary")," or"," ",p.createElement("code",{style:o},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:a},r):null,i)}var yK=p.createElement(gK,null),bK=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?p.createElement(Ki.Provider,{value:this.props.routeContext},p.createElement(xA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function _K({routeContext:e,match:t,children:r}){let n=p.useContext(dd);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(Ki.Provider,{value:e},r)}function wK(e,t=[],r=null,n=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,o=r==null?void 0:r.errors;if(o!=null){let d=a.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id])!==void 0);Zt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let i=!1,u=-1;if(r)for(let d=0;d<a.length;d++){let l=a[d];if((l.route.HydrateFallback||l.route.hydrateFallbackElement)&&(u=d),l.route.id){let{loaderData:h,errors:v}=r,y=l.route.loader&&!h.hasOwnProperty(l.route.id)&&(!v||v[l.route.id]===void 0);if(l.route.lazy||y){i=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,l,h)=>{let v,y=!1,b=null,_=null;r&&(v=o&&l.route.id?o[l.route.id]:void 0,b=l.route.errorElement||yK,i&&(u<0&&h===0?(TB("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,_=null):u===h&&(y=!0,_=l.route.hydrateFallbackElement||null)));let w=t.concat(a.slice(0,h+1)),S=()=>{let A;return v?A=b:y?A=_:l.route.Component?A=p.createElement(l.route.Component,null):l.route.element?A=l.route.element:A=d,p.createElement(_K,{match:l,routeContext:{outlet:d,matches:w,isDataRoute:r!=null},children:A})};return r&&(l.route.ErrorBoundary||l.route.errorElement||h===0)?p.createElement(bK,{location:r.location,revalidation:r.revalidation,component:b,error:v,children:S(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):S()},null)}function SA(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function RB(e){let t=p.useContext(dd);return Zt(t,SA(e)),t}function kB(e){let t=p.useContext(ov);return Zt(t,SA(e)),t}function xK(e){let t=p.useContext(Ki);return Zt(t,SA(e)),t}function CA(e){let t=xK(e),r=t.matches[t.matches.length-1];return Zt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function SK(){return CA("useRouteId")}function CK(){var n;let e=p.useContext(xA),t=kB("useRouteError"),r=CA("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}var EK=0;function OK(e){let{router:t,basename:r}=RB("useBlocker"),n=kB("useBlocker"),[a,o]=p.useState(""),i=p.useCallback(u=>{if(typeof e!="function")return!!e;if(r==="/")return e(u);let{currentLocation:d,nextLocation:l,historyAction:h}=u;return e({currentLocation:{...d,pathname:Do(d.pathname,r)||d.pathname},nextLocation:{...l,pathname:Do(l.pathname,r)||l.pathname},historyAction:h})},[r,e]);return p.useEffect(()=>{let u=String(++EK);return o(u),()=>t.deleteBlocker(u)},[t]),p.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Kh}function PK(){let{router:e}=RB("useNavigate"),t=CA("useNavigate"),r=p.useRef(!1);return OB(()=>{r.current=!0}),p.useCallback(async(a,o={})=>{gn(r.current,EB),r.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var fF={};function TB(e,t,r){!t&&!fF[e]&&(fF[e]=!0,gn(!1,r))}var pF={};function hF(e,t){!e&&!pF[t]&&(pF[t]=!0,console.warn(t))}function RK(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&gn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:p.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&gn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&gn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var kK=["HydrateFallback","hydrateFallbackElement"],TK=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",t(r))}})}};function AK({router:e,flushSync:t}){let[r,n]=p.useState(e.state),[a,o]=p.useState(),[i,u]=p.useState({isTransitioning:!1}),[d,l]=p.useState(),[h,v]=p.useState(),[y,b]=p.useState(),_=p.useRef(new Map),w=p.useCallback((C,{deletedFetchers:O,flushSync:T,viewTransitionOpts:E})=>{C.fetchers.forEach((j,M)=>{j.data!==void 0&&_.current.set(M,j.data)}),O.forEach(j=>_.current.delete(j)),hF(T===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let L=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(hF(E==null||L,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!E||!L){t&&T?t(()=>n(C)):p.startTransition(()=>n(C));return}if(t&&T){t(()=>{h&&(d&&d.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:E.currentLocation,nextLocation:E.nextLocation})});let j=e.window.document.startViewTransition(()=>{t(()=>n(C))});j.finished.finally(()=>{t(()=>{l(void 0),v(void 0),o(void 0),u({isTransitioning:!1})})}),t(()=>v(j));return}h?(d&&d.resolve(),h.skipTransition(),b({state:C,currentLocation:E.currentLocation,nextLocation:E.nextLocation})):(o(C),u({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}))},[e.window,t,h,d]);p.useLayoutEffect(()=>e.subscribe(w),[e,w]),p.useEffect(()=>{i.isTransitioning&&!i.flushSync&&l(new TK)},[i]),p.useEffect(()=>{if(d&&a&&e.window){let C=a,O=d.promise,T=e.window.document.startViewTransition(async()=>{p.startTransition(()=>n(C)),await O});T.finished.finally(()=>{l(void 0),v(void 0),o(void 0),u({isTransitioning:!1})}),v(T)}},[a,d,e.window]),p.useEffect(()=>{d&&a&&r.location.key===a.location.key&&d.resolve()},[d,h,r.location,a]),p.useEffect(()=>{!i.isTransitioning&&y&&(o(y.state),u({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),b(void 0))},[i.isTransitioning,y]);let S=p.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:C=>e.navigate(C),push:(C,O,T)=>e.navigate(C,{state:O,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(C,O,T)=>e.navigate(C,{replace:!0,state:O,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[e]),A=e.basename||"/",R=p.useMemo(()=>({router:e,navigator:S,static:!1,basename:A}),[e,S,A]);return p.createElement(p.Fragment,null,p.createElement(dd.Provider,{value:R},p.createElement(ov.Provider,{value:r},p.createElement(CB.Provider,{value:_.current},p.createElement(wA.Provider,{value:i},p.createElement(LK,{basename:A,location:r.location,navigationType:r.historyAction,navigator:S},p.createElement(IK,{routes:e.routes,future:e.future,state:r})))))),null)}var IK=p.memo(jK);function jK({routes:e,future:t,state:r}){return PB(e,void 0,r,t)}function MK({to:e,replace:t,state:r,relative:n}){Zt(fd(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=p.useContext(Es);gn(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=p.useContext(Ki),{pathname:i}=an(),u=Os(),d=rx(e,tx(o),i,n==="path"),l=JSON.stringify(d);return p.useEffect(()=>{u(JSON.parse(l),{replace:t,state:r,relative:n})},[u,l,n,t,r]),null}function FK(e){return mK(e.context)}function Mn(e){Zt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function LK({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:a,static:o=!1}){Zt(!fd(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:i,navigator:a,static:o,future:{}}),[i,a,o]);typeof r=="string"&&(r=Al(r));let{pathname:d="/",search:l="",hash:h="",state:v=null,key:y="default"}=r,b=p.useMemo(()=>{let _=Do(d,i);return _==null?null:{location:{pathname:_,search:l,hash:h,state:v,key:y},navigationType:n}},[i,d,l,h,v,y,n]);return gn(b!=null,`<Router basename="${i}"> is not able to match the URL "${d}${l}${h}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:p.createElement(Es.Provider,{value:u},p.createElement(Fb.Provider,{children:t,value:b}))}function Zc({children:e,location:t}){return vK(nk(e),t)}function nk(e,t=[]){let r=[];return p.Children.forEach(e,(n,a)=>{if(!p.isValidElement(n))return;let o=[...t,a];if(n.type===p.Fragment){r.push.apply(r,nk(n.props.children,o));return}Zt(n.type===Mn,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Zt(!n.props.index||!n.props.children,"An index route cannot have child routes.");let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=nk(n.props.children,o)),r.push(i)}),r}var p1="get",h1="application/x-www-form-urlencoded";function nx(e){return e!=null&&typeof e.tagName=="string"}function $K(e){return nx(e)&&e.tagName.toLowerCase()==="button"}function DK(e){return nx(e)&&e.tagName.toLowerCase()==="form"}function NK(e){return nx(e)&&e.tagName.toLowerCase()==="input"}function BK(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zK(e,t){return e.button===0&&(!t||t==="_self")&&!BK(e)}var L_=null;function qK(){if(L_===null)try{new FormData(document.createElement("form"),0),L_=!1}catch{L_=!0}return L_}var UK=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function iE(e){return e!=null&&!UK.has(e)?(gn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${h1}"`),null):e}function VK(e,t){let r,n,a,o,i;if(DK(e)){let u=e.getAttribute("action");n=u?Do(u,t):null,r=e.getAttribute("method")||p1,a=iE(e.getAttribute("enctype"))||h1,o=new FormData(e)}else if($K(e)||NK(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(n=d?Do(d,t):null,r=e.getAttribute("formmethod")||u.getAttribute("method")||p1,a=iE(e.getAttribute("formenctype"))||iE(u.getAttribute("enctype"))||h1,o=new FormData(u,e),!qK()){let{name:l,type:h,value:v}=e;if(h==="image"){let y=l?`${l}.`:"";o.append(`${y}x`,"0"),o.append(`${y}y`,"0")}else l&&o.append(l,v)}}else{if(nx(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=p1,n=null,a=h1,i=e}return o&&a==="text/plain"&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}function EA(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function WK(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function HK(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function KK(e,t,r){let n=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let i=await WK(o,r);return i.links?i.links():[]}return[]}));return YK(n.flat(1).filter(HK).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function mF(e,t,r,n,a,o){let i=(d,l)=>r[l]?d.route.id!==r[l].route.id:!0,u=(d,l)=>{var h;return r[l].pathname!==d.pathname||((h=r[l].route.path)==null?void 0:h.endsWith("*"))&&r[l].params["*"]!==d.params["*"]};return o==="assets"?t.filter((d,l)=>i(d,l)||u(d,l)):o==="data"?t.filter((d,l)=>{var v;let h=n.routes[d.route.id];if(!h||!h.hasLoader)return!1;if(i(d,l)||u(d,l))return!0;if(d.route.shouldRevalidate){let y=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((v=r[0])==null?void 0:v.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function GK(e,t,{includeHydrateFallback:r}={}){return QK(e.map(n=>{let a=t.routes[n.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),r&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function QK(e){return[...new Set(e)]}function XK(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function YK(e,t){let r=new Set;return new Set(t),e.reduce((n,a)=>{let o=JSON.stringify(XK(a));return r.has(o)||(r.add(o),n.push({key:o,link:a})),n},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var JK=new Set([100,101,204,205]);function ZK(e,t){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname="_root.data":t&&Do(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function AB(){let e=p.useContext(dd);return EA(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function eG(){let e=p.useContext(ov);return EA(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var OA=p.createContext(void 0);OA.displayName="FrameworkContext";function IB(){let e=p.useContext(OA);return EA(e,"You must render this element inside a <HydratedRouter> element"),e}function tG(e,t){let r=p.useContext(OA),[n,a]=p.useState(!1),[o,i]=p.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:l,onMouseLeave:h,onTouchStart:v}=t,y=p.useRef(null);p.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let w=A=>{A.forEach(R=>{i(R.isIntersecting)})},S=new IntersectionObserver(w,{threshold:.5});return y.current&&S.observe(y.current),()=>{S.disconnect()}}},[e]),p.useEffect(()=>{if(n){let w=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(w)}}},[n]);let b=()=>{a(!0)},_=()=>{a(!1),i(!1)};return r?e!=="intent"?[o,y,{}]:[o,y,{onFocus:Wg(u,b),onBlur:Wg(d,_),onMouseEnter:Wg(l,b),onMouseLeave:Wg(h,_),onTouchStart:Wg(v,b)}]:[!1,y,{}]}function Wg(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function rG({page:e,...t}){let{router:r}=AB(),n=p.useMemo(()=>jc(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?p.createElement(aG,{page:e,matches:n,...t}):null}function nG(e){let{manifest:t,routeModules:r}=IB(),[n,a]=p.useState([]);return p.useEffect(()=>{let o=!1;return KK(e,t,r).then(i=>{o||a(i)}),()=>{o=!0}},[e,t,r]),n}function aG({page:e,matches:t,...r}){let n=an(),{manifest:a,routeModules:o}=IB(),{basename:i}=AB(),{loaderData:u,matches:d}=eG(),l=p.useMemo(()=>mF(e,t,d,a,n,"data"),[e,t,d,a,n]),h=p.useMemo(()=>mF(e,t,d,a,n,"assets"),[e,t,d,a,n]),v=p.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let _=new Set,w=!1;if(t.forEach(A=>{var C;let R=a.routes[A.route.id];!R||!R.hasLoader||(!l.some(O=>O.route.id===A.route.id)&&A.route.id in u&&((C=o[A.route.id])!=null&&C.shouldRevalidate)||R.hasClientLoader?w=!0:_.add(A.route.id))}),_.size===0)return[];let S=ZK(e,i);return w&&_.size>0&&S.searchParams.set("_routes",t.filter(A=>_.has(A.route.id)).map(A=>A.route.id).join(",")),[S.pathname+S.search]},[i,u,n,a,l,t,e,o]),y=p.useMemo(()=>GK(h,a),[h,a]),b=nG(h);return p.createElement(p.Fragment,null,v.map(_=>p.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...r})),y.map(_=>p.createElement("link",{key:_,rel:"modulepreload",href:_,...r})),b.map(({key:_,link:w})=>p.createElement("link",{key:_,...w})))}function oG(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var jB=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{jB&&(window.__reactRouterVersion="7.6.1")}catch{}function iG(e,t){return W7({basename:t==null?void 0:t.basename,unstable_getContext:t==null?void 0:t.unstable_getContext,future:t==null?void 0:t.future,history:p7({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||sG(),routes:e,mapRouteProperties:RK,hydrationRouteProperties:kK,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function sG(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:lG(e.errors)}),e}function lG(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new A1(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}var MB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ui=p.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:a,reloadDocument:o,replace:i,state:u,target:d,to:l,preventScrollReset:h,viewTransition:v,...y},b){let{basename:_}=p.useContext(Es),w=typeof l=="string"&&MB.test(l),S,A=!1;if(typeof l=="string"&&w&&(S=l,jB))try{let M=new URL(window.location.href),k=l.startsWith("//")?new URL(M.protocol+l):new URL(l),$=Do(k.pathname,_);k.origin===M.origin&&$!=null?l=$+k.search+k.hash:A=!0}catch{gn(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=dK(l,{relative:a}),[C,O,T]=tG(n,y),E=fG(l,{replace:i,state:u,target:d,preventScrollReset:h,relative:a,viewTransition:v});function L(M){t&&t(M),M.defaultPrevented||E(M)}let j=p.createElement("a",{...y,...T,href:S||R,onClick:A||o?t:L,ref:oG(b,O),target:d,"data-discover":!w&&r==="render"?"true":void 0});return C&&!w?p.createElement(p.Fragment,null,j,p.createElement(rG,{page:R})):j});ui.displayName="Link";var uG=p.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:a=!1,style:o,to:i,viewTransition:u,children:d,...l},h){let v=$b(i,{relative:l.relative}),y=an(),b=p.useContext(ov),{navigator:_,basename:w}=p.useContext(Es),S=b!=null&&gG(v)&&u===!0,A=_.encodeLocation?_.encodeLocation(v).pathname:v.pathname,R=y.pathname,C=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;r||(R=R.toLowerCase(),C=C?C.toLowerCase():null,A=A.toLowerCase()),C&&w&&(C=Do(C,w)||C);const O=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let T=R===A||!a&&R.startsWith(A)&&R.charAt(O)==="/",E=C!=null&&(C===A||!a&&C.startsWith(A)&&C.charAt(A.length)==="/"),L={isActive:T,isPending:E,isTransitioning:S},j=T?t:void 0,M;typeof n=="function"?M=n(L):M=[n,T?"active":null,E?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let k=typeof o=="function"?o(L):o;return p.createElement(ui,{...l,"aria-current":j,className:M,ref:h,style:k,to:i,viewTransition:u},typeof d=="function"?d(L):d)});uG.displayName="NavLink";var cG=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:a,state:o,method:i=p1,action:u,onSubmit:d,relative:l,preventScrollReset:h,viewTransition:v,...y},b)=>{let _=mG(),w=vG(u,{relative:l}),S=i.toLowerCase()==="get"?"get":"post",A=typeof u=="string"&&MB.test(u),R=C=>{if(d&&d(C),C.defaultPrevented)return;C.preventDefault();let O=C.nativeEvent.submitter,T=(O==null?void 0:O.getAttribute("formmethod"))||i;_(O||C.currentTarget,{fetcherKey:t,method:T,navigate:r,replace:a,state:o,relative:l,preventScrollReset:h,viewTransition:v})};return p.createElement("form",{ref:b,method:S,action:w,onSubmit:n?d:R,...y,"data-discover":!A&&e==="render"?"true":void 0})});cG.displayName="Form";function dG(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function FB(e){let t=p.useContext(dd);return Zt(t,dG(e)),t}function fG(e,{target:t,replace:r,state:n,preventScrollReset:a,relative:o,viewTransition:i}={}){let u=Os(),d=an(),l=$b(e,{relative:o});return p.useCallback(h=>{if(zK(h,t)){h.preventDefault();let v=r!==void 0?r:od(d)===od(l);u(e,{replace:v,state:n,preventScrollReset:a,relative:o,viewTransition:i})}},[d,u,l,r,n,t,e,a,o,i])}var pG=0,hG=()=>`__${String(++pG)}__`;function mG(){let{router:e}=FB("useSubmit"),{basename:t}=p.useContext(Es),r=SK();return p.useCallback(async(n,a={})=>{let{action:o,method:i,encType:u,formData:d,body:l}=VK(n,t);if(a.navigate===!1){let h=a.fetcherKey||hG();await e.fetch(h,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:d,body:l,formMethod:a.method||i,formEncType:a.encType||u,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:d,body:l,formMethod:a.method||i,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function vG(e,{relative:t}={}){let{basename:r}=p.useContext(Es),n=p.useContext(Ki);Zt(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),o={...$b(e||".",{relative:t})},i=an();if(e==null){o.search=i.search;let u=new URLSearchParams(o.search),d=u.getAll("index");if(d.some(h=>h==="")){u.delete("index"),d.filter(v=>v).forEach(v=>u.append("index",v));let h=u.toString();o.search=h?`?${h}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:Sl([r,o.pathname])),od(o)}function gG(e,t={}){let r=p.useContext(wA);Zt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=FB("useViewTransitionState"),a=$b(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=Do(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=Do(r.nextLocation.pathname,n)||r.nextLocation.pathname;return id(a.pathname,i)!=null||id(a.pathname,o)!=null}[...JK];var ax=$5();const $_=Nn(ax);/**
* react-router v7.6.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function yG(e){return p.createElement(AK,{flushSync:ax.flushSync,...e})}var bG="RaStore",_G=function(){if(typeof window>"u"||window.localStorage==null)return!1;try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch{return!1}},ak=_G(),wG=function(e,t){e===void 0&&(e="1"),t===void 0&&(t="");var r="".concat(bG).concat(t),n=r.length,a={},o=function(u,d){Object.keys(a).forEach(function(l){a[l]&&a[l].key===u&&a[l].callback(d)})},i=function(u){var d;if(((d=u.key)===null||d===void 0?void 0:d.substring(0,n))===r){var l=u.key.substring(n+1),h=u.newValue?vF(u.newValue):void 0;Object.keys(a).forEach(function(v){a[v]&&a[v].key===l&&(h===null?a[v].callback(void 0):a[v].callback(h??void 0))})}};return{setup:function(){if(ak){var u=du().getItem("".concat(r,".version"));if(u&&u!==e){var d=du();Object.keys(d).forEach(function(l){l.startsWith(r)&&d.removeItem(l)})}du().setItem("".concat(r,".version"),e),window.addEventListener("storage",i)}},teardown:function(){ak&&window.removeEventListener("storage",i)},getItem:function(u,d){var l=du().getItem("".concat(r,".").concat(u));return l==null?d:vF(l)},setItem:function(u,d){d===void 0?du().removeItem("".concat(r,".").concat(u)):du().setItem("".concat(r,".").concat(u),JSON.stringify(d)),o(u,d)},removeItem:function(u){du().removeItem("".concat(r,".").concat(u)),o(u,void 0)},removeItems:function(u){var d=du();Object.keys(d).forEach(function(l){if(l.startsWith("".concat(r,".").concat(u))){d.removeItem(l);var h=l.substring(n+1);o(h,void 0)}})},reset:function(){var u=du();Object.keys(u).forEach(function(d){if(d.startsWith(r)){u.removeItem(d);var l=d.substring(n+1);o(l,void 0)}})},subscribe:function(u,d){var l=Math.random().toString();return a[l]={key:u,callback:d},function(){delete a[l]}}}},vF=function(e){try{return JSON.parse(e)}catch{return e}},xG=function(){function e(){this.valuesMap=new Map}return e.prototype.getItem=function(t){return this.valuesMap.has(t)?String(this.valuesMap.get(t)):null},e.prototype.setItem=function(t,r){this.valuesMap.set(t,r)},e.prototype.removeItem=function(t){this.valuesMap.delete(t)},e.prototype.removeItems=function(t){var r=this;this.valuesMap.forEach(function(n,a){a.startsWith(t)&&r.valuesMap.delete(a)})},e.prototype.clear=function(){this.valuesMap.clear()},e.prototype.key=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");var r=Array.from(this.valuesMap.keys());return r[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.valuesMap.size},enumerable:!1,configurable:!0}),e}(),SG=new xG,du=function(){return ak?window.localStorage:SG},sE,gF;function LB(){if(gF)return sE;gF=1;var e=typeof Ou=="object"&&Ou&&Ou.Object===Object&&Ou;return sE=e,sE}var lE,yF;function Ps(){if(yF)return lE;yF=1;var e=LB(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return lE=r,lE}var uE,bF;function iv(){if(bF)return uE;bF=1;var e=Ps(),t=e.Symbol;return uE=t,uE}var cE,_F;function CG(){if(_F)return cE;_F=1;var e=iv(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function o(i){var u=r.call(i,a),d=i[a];try{i[a]=void 0;var l=!0}catch{}var h=n.call(i);return l&&(u?i[a]=d:delete i[a]),h}return cE=o,cE}var dE,wF;function EG(){if(wF)return dE;wF=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return dE=r,dE}var fE,xF;function sv(){if(xF)return fE;xF=1;var e=iv(),t=CG(),r=EG(),n="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function i(u){return u==null?u===void 0?a:n:o&&o in Object(u)?t(u):r(u)}return fE=i,fE}var pE,SF;function Rs(){if(SF)return pE;SF=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return pE=e,pE}var hE,CF;function PA(){if(CF)return hE;CF=1;var e=sv(),t=Rs(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function i(u){if(!t(u))return!1;var d=e(u);return d==n||d==a||d==r||d==o}return hE=i,hE}var mE,EF;function OG(){if(EF)return mE;EF=1;var e=Ps(),t=e["__core-js_shared__"];return mE=t,mE}var vE,OF;function PG(){if(OF)return vE;OF=1;var e=OG(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return vE=r,vE}var gE,PF;function $B(){if(PF)return gE;PF=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return gE=r,gE}var yE,RF;function RG(){if(RF)return yE;RF=1;var e=PA(),t=PG(),r=Rs(),n=$B(),a=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,i=Function.prototype,u=Object.prototype,d=i.toString,l=u.hasOwnProperty,h=RegExp("^"+d.call(l).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function v(y){if(!r(y)||t(y))return!1;var b=e(y)?h:o;return b.test(n(y))}return yE=v,yE}var bE,kF;function kG(){if(kF)return bE;kF=1;function e(t,r){return t==null?void 0:t[r]}return bE=e,bE}var _E,TF;function cp(){if(TF)return _E;TF=1;var e=RG(),t=kG();function r(n,a){var o=t(n,a);return e(o)?o:void 0}return _E=r,_E}var wE,AF;function DB(){if(AF)return wE;AF=1;var e=cp(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return wE=t,wE}var xE,IF;function RA(){if(IF)return xE;IF=1;var e=DB();function t(r,n,a){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[n]=a}return xE=t,xE}var SE,jF;function lv(){if(jF)return SE;jF=1;function e(t,r){return t===r||t!==t&&r!==r}return SE=e,SE}var CE,MF;function kA(){if(MF)return CE;MF=1;var e=RA(),t=lv(),r=Object.prototype,n=r.hasOwnProperty;function a(o,i,u){var d=o[i];(!(n.call(o,i)&&t(d,u))||u===void 0&&!(i in o))&&e(o,i,u)}return CE=a,CE}var EE,FF;function Il(){if(FF)return EE;FF=1;var e=Array.isArray;return EE=e,EE}var OE,LF;function Fu(){if(LF)return OE;LF=1;function e(t){return t!=null&&typeof t=="object"}return OE=e,OE}var PE,$F;function ox(){if($F)return PE;$F=1;var e=sv(),t=Fu(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return PE=n,PE}var RE,DF;function TG(){if(DF)return RE;DF=1;var e=Il(),t=ox(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(o,i){if(e(o))return!1;var u=typeof o;return u=="number"||u=="symbol"||u=="boolean"||o==null||t(o)?!0:n.test(o)||!r.test(o)||i!=null&&o in Object(i)}return RE=a,RE}var kE,NF;function ix(){if(NF)return kE;NF=1;var e=cp(),t=e(Object,"create");return kE=t,kE}var TE,BF;function AG(){if(BF)return TE;BF=1;var e=ix();function t(){this.__data__=e?e(null):{},this.size=0}return TE=t,TE}var AE,zF;function IG(){if(zF)return AE;zF=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return AE=e,AE}var IE,qF;function jG(){if(qF)return IE;qF=1;var e=ix(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(o){var i=this.__data__;if(e){var u=i[o];return u===t?void 0:u}return n.call(i,o)?i[o]:void 0}return IE=a,IE}var jE,UF;function MG(){if(UF)return jE;UF=1;var e=ix(),t=Object.prototype,r=t.hasOwnProperty;function n(a){var o=this.__data__;return e?o[a]!==void 0:r.call(o,a)}return jE=n,jE}var ME,VF;function FG(){if(VF)return ME;VF=1;var e=ix(),t="__lodash_hash_undefined__";function r(n,a){var o=this.__data__;return this.size+=this.has(n)?0:1,o[n]=e&&a===void 0?t:a,this}return ME=r,ME}var FE,WF;function LG(){if(WF)return FE;WF=1;var e=AG(),t=IG(),r=jG(),n=MG(),a=FG();function o(i){var u=-1,d=i==null?0:i.length;for(this.clear();++u<d;){var l=i[u];this.set(l[0],l[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=a,FE=o,FE}var LE,HF;function $G(){if(HF)return LE;HF=1;function e(){this.__data__=[],this.size=0}return LE=e,LE}var $E,KF;function sx(){if(KF)return $E;KF=1;var e=lv();function t(r,n){for(var a=r.length;a--;)if(e(r[a][0],n))return a;return-1}return $E=t,$E}var DE,GF;function DG(){if(GF)return DE;GF=1;var e=sx(),t=Array.prototype,r=t.splice;function n(a){var o=this.__data__,i=e(o,a);if(i<0)return!1;var u=o.length-1;return i==u?o.pop():r.call(o,i,1),--this.size,!0}return DE=n,DE}var NE,QF;function NG(){if(QF)return NE;QF=1;var e=sx();function t(r){var n=this.__data__,a=e(n,r);return a<0?void 0:n[a][1]}return NE=t,NE}var BE,XF;function BG(){if(XF)return BE;XF=1;var e=sx();function t(r){return e(this.__data__,r)>-1}return BE=t,BE}var zE,YF;function zG(){if(YF)return zE;YF=1;var e=sx();function t(r,n){var a=this.__data__,o=e(a,r);return o<0?(++this.size,a.push([r,n])):a[o][1]=n,this}return zE=t,zE}var qE,JF;function lx(){if(JF)return qE;JF=1;var e=$G(),t=DG(),r=NG(),n=BG(),a=zG();function o(i){var u=-1,d=i==null?0:i.length;for(this.clear();++u<d;){var l=i[u];this.set(l[0],l[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=a,qE=o,qE}var UE,ZF;function TA(){if(ZF)return UE;ZF=1;var e=cp(),t=Ps(),r=e(t,"Map");return UE=r,UE}var VE,eL;function qG(){if(eL)return VE;eL=1;var e=LG(),t=lx(),r=TA();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return VE=n,VE}var WE,tL;function UG(){if(tL)return WE;tL=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return WE=e,WE}var HE,rL;function ux(){if(rL)return HE;rL=1;var e=UG();function t(r,n){var a=r.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return HE=t,HE}var KE,nL;function VG(){if(nL)return KE;nL=1;var e=ux();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return KE=t,KE}var GE,aL;function WG(){if(aL)return GE;aL=1;var e=ux();function t(r){return e(this,r).get(r)}return GE=t,GE}var QE,oL;function HG(){if(oL)return QE;oL=1;var e=ux();function t(r){return e(this,r).has(r)}return QE=t,QE}var XE,iL;function KG(){if(iL)return XE;iL=1;var e=ux();function t(r,n){var a=e(this,r),o=a.size;return a.set(r,n),this.size+=a.size==o?0:1,this}return XE=t,XE}var YE,sL;function AA(){if(sL)return YE;sL=1;var e=qG(),t=VG(),r=WG(),n=HG(),a=KG();function o(i){var u=-1,d=i==null?0:i.length;for(this.clear();++u<d;){var l=i[u];this.set(l[0],l[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=a,YE=o,YE}var JE,lL;function NB(){if(lL)return JE;lL=1;var e=AA(),t="Expected a function";function r(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var o=function(){var i=arguments,u=a?a.apply(this,i):i[0],d=o.cache;if(d.has(u))return d.get(u);var l=n.apply(this,i);return o.cache=d.set(u,l)||d,l};return o.cache=new(r.Cache||e),o}return r.Cache=e,JE=r,JE}var ZE,uL;function GG(){if(uL)return ZE;uL=1;var e=NB(),t=500;function r(n){var a=e(n,function(i){return o.size===t&&o.clear(),i}),o=a.cache;return a}return ZE=r,ZE}var eO,cL;function QG(){if(cL)return eO;cL=1;var e=GG(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(a){var o=[];return a.charCodeAt(0)===46&&o.push(""),a.replace(t,function(i,u,d,l){o.push(d?l.replace(r,"$1"):u||i)}),o});return eO=n,eO}var tO,dL;function BB(){if(dL)return tO;dL=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,o=Array(a);++n<a;)o[n]=r(t[n],n,t);return o}return tO=e,tO}var rO,fL;function XG(){if(fL)return rO;fL=1;var e=iv(),t=BB(),r=Il(),n=ox(),a=e?e.prototype:void 0,o=a?a.toString:void 0;function i(u){if(typeof u=="string")return u;if(r(u))return t(u,i)+"";if(n(u))return o?o.call(u):"";var d=u+"";return d=="0"&&1/u==-1/0?"-0":d}return rO=i,rO}var nO,pL;function YG(){if(pL)return nO;pL=1;var e=XG();function t(r){return r==null?"":e(r)}return nO=t,nO}var aO,hL;function Db(){if(hL)return aO;hL=1;var e=Il(),t=TG(),r=QG(),n=YG();function a(o,i){return e(o)?o:t(o,i)?[o]:r(n(o))}return aO=a,aO}var oO,mL;function cx(){if(mL)return oO;mL=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,a){var o=typeof n;return a=a??e,!!a&&(o=="number"||o!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<a}return oO=r,oO}var iO,vL;function dx(){if(vL)return iO;vL=1;var e=ox();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return iO=t,iO}var sO,gL;function zB(){if(gL)return sO;gL=1;var e=kA(),t=Db(),r=cx(),n=Rs(),a=dx();function o(i,u,d,l){if(!n(i))return i;u=t(u,i);for(var h=-1,v=u.length,y=v-1,b=i;b!=null&&++h<v;){var _=a(u[h]),w=d;if(_==="__proto__"||_==="constructor"||_==="prototype")return i;if(h!=y){var S=b[_];w=l?l(S,_,b):void 0,w===void 0&&(w=n(S)?S:r(u[h+1])?[]:{})}e(b,_,w),b=b[_]}return i}return sO=o,sO}var lO,yL;function JG(){if(yL)return lO;yL=1;var e=zB();function t(r,n,a){return r==null?r:e(r,n,a)}return lO=t,lO}var ZG=JG();const fx=Nn(ZG);var uO,bL;function eQ(){if(bL)return uO;bL=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return uO=e,uO}var cO,_L;function IA(){if(_L)return cO;_L=1;var e=Db(),t=dx();function r(n,a){a=e(a,n);for(var o=0,i=a.length;n!=null&&o<i;)n=n[t(a[o++])];return o&&o==i?n:void 0}return cO=r,cO}var dO,wL;function tQ(){if(wL)return dO;wL=1;function e(t,r,n){var a=-1,o=t.length;r<0&&(r=-r>o?0:o+r),n=n>o?o:n,n<0&&(n+=o),o=r>n?0:n-r>>>0,r>>>=0;for(var i=Array(o);++a<o;)i[a]=t[a+r];return i}return dO=e,dO}var fO,xL;function rQ(){if(xL)return fO;xL=1;var e=IA(),t=tQ();function r(n,a){return a.length<2?n:e(n,t(a,0,-1))}return fO=r,fO}var pO,SL;function nQ(){if(SL)return pO;SL=1;var e=Db(),t=eQ(),r=rQ(),n=dx();function a(o,i){return i=e(i,o),o=r(o,i),o==null||delete o[n(t(i))]}return pO=a,pO}var hO,CL;function aQ(){if(CL)return hO;CL=1;var e=nQ();function t(r,n){return r==null?!0:e(r,n)}return hO=t,hO}var oQ=aQ();const mO=Nn(oQ);var vO,EL;function iQ(){if(EL)return vO;EL=1;var e=IA();function t(r,n,a){var o=r==null?void 0:e(r,n);return o===void 0?a:o}return vO=t,vO}var sQ=iQ();const or=Nn(sQ);var qB=function(e){e===void 0&&(e={});var t={},r=function(n,a){Object.keys(t).forEach(function(o){t[o]&&t[o].key===n&&t[o].callback(a)})};return{setup:function(){},teardown:function(){Object.keys(e).forEach(function(n){return delete e[n]})},getItem:function(n,a){return or(e,n,a)},setItem:function(n,a){fx(e,n,a),r(n,a)},removeItem:function(n){mO(e,n),r(n,void 0)},removeItems:function(n){var a=OL(e);Object.keys(a).forEach(function(o){o.startsWith(n)&&(mO(e,o),r(o,void 0))})},reset:function(){var n=OL(e);Object.keys(n).forEach(function(a){mO(e,a),r(a,void 0)})},subscribe:function(n,a){var o=Math.random().toString();return t[o]={key:n,callback:a},function(){delete t[o]}}}},OL=function(e){var t={};function r(n,a){if(Object(n)!==n)t[a]=n;else if(Array.isArray(n))t[a]=n;else{var o=!0;for(var i in n)o=!1,r(n[i],a?a+"."+i:i);o&&a&&(t[a]={})}}return r(e,""),t},lQ=qB(),UB=p.createContext(lQ),uQ=function(e){var t=e.value,r=e.children;return p.useEffect(function(){return t.setup(),function(){t.teardown()}},[t]),p.createElement(UB.Provider,{value:t},r)},px=function(){return p.useContext(UB)},gO,PL;function cQ(){if(PL)return gO;PL=1;var e=lx();function t(){this.__data__=new e,this.size=0}return gO=t,gO}var yO,RL;function dQ(){if(RL)return yO;RL=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return yO=e,yO}var bO,kL;function fQ(){if(kL)return bO;kL=1;function e(t){return this.__data__.get(t)}return bO=e,bO}var _O,TL;function pQ(){if(TL)return _O;TL=1;function e(t){return this.__data__.has(t)}return _O=e,_O}var wO,AL;function hQ(){if(AL)return wO;AL=1;var e=lx(),t=TA(),r=AA(),n=200;function a(o,i){var u=this.__data__;if(u instanceof e){var d=u.__data__;if(!t||d.length<n-1)return d.push([o,i]),this.size=++u.size,this;u=this.__data__=new r(d)}return u.set(o,i),this.size=u.size,this}return wO=a,wO}var xO,IL;function jA(){if(IL)return xO;IL=1;var e=lx(),t=cQ(),r=dQ(),n=fQ(),a=pQ(),o=hQ();function i(u){var d=this.__data__=new e(u);this.size=d.size}return i.prototype.clear=t,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=a,i.prototype.set=o,xO=i,xO}var SO,jL;function mQ(){if(jL)return SO;jL=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return SO=t,SO}var CO,ML;function vQ(){if(ML)return CO;ML=1;function e(t){return this.__data__.has(t)}return CO=e,CO}var EO,FL;function MA(){if(FL)return EO;FL=1;var e=AA(),t=mQ(),r=vQ();function n(a){var o=-1,i=a==null?0:a.length;for(this.__data__=new e;++o<i;)this.add(a[o])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,EO=n,EO}var OO,LL;function gQ(){if(LL)return OO;LL=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(r(t[n],n,t))return!0;return!1}return OO=e,OO}var PO,$L;function FA(){if($L)return PO;$L=1;function e(t,r){return t.has(r)}return PO=e,PO}var RO,DL;function VB(){if(DL)return RO;DL=1;var e=MA(),t=gQ(),r=FA(),n=1,a=2;function o(i,u,d,l,h,v){var y=d&n,b=i.length,_=u.length;if(b!=_&&!(y&&_>b))return!1;var w=v.get(i),S=v.get(u);if(w&&S)return w==u&&S==i;var A=-1,R=!0,C=d&a?new e:void 0;for(v.set(i,u),v.set(u,i);++A<b;){var O=i[A],T=u[A];if(l)var E=y?l(T,O,A,u,i,v):l(O,T,A,i,u,v);if(E!==void 0){if(E)continue;R=!1;break}if(C){if(!t(u,function(L,j){if(!r(C,j)&&(O===L||h(O,L,d,l,v)))return C.push(j)})){R=!1;break}}else if(!(O===T||h(O,T,d,l,v))){R=!1;break}}return v.delete(i),v.delete(u),R}return RO=o,RO}var kO,NL;function WB(){if(NL)return kO;NL=1;var e=Ps(),t=e.Uint8Array;return kO=t,kO}var TO,BL;function yQ(){if(BL)return TO;BL=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a,o){n[++r]=[o,a]}),n}return TO=e,TO}var AO,zL;function LA(){if(zL)return AO;zL=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a){n[++r]=a}),n}return AO=e,AO}var IO,qL;function bQ(){if(qL)return IO;qL=1;var e=iv(),t=WB(),r=lv(),n=VB(),a=yQ(),o=LA(),i=1,u=2,d="[object Boolean]",l="[object Date]",h="[object Error]",v="[object Map]",y="[object Number]",b="[object RegExp]",_="[object Set]",w="[object String]",S="[object Symbol]",A="[object ArrayBuffer]",R="[object DataView]",C=e?e.prototype:void 0,O=C?C.valueOf:void 0;function T(E,L,j,M,k,$,B){switch(j){case R:if(E.byteLength!=L.byteLength||E.byteOffset!=L.byteOffset)return!1;E=E.buffer,L=L.buffer;case A:return!(E.byteLength!=L.byteLength||!$(new t(E),new t(L)));case d:case l:case y:return r(+E,+L);case h:return E.name==L.name&&E.message==L.message;case b:case w:return E==L+"";case v:var z=a;case _:var U=M&i;if(z||(z=o),E.size!=L.size&&!U)return!1;var W=B.get(E);if(W)return W==L;M|=u,B.set(E,L);var Q=n(z(E),z(L),M,k,$,B);return B.delete(E),Q;case S:if(O)return O.call(E)==O.call(L)}return!1}return IO=T,IO}var jO,UL;function $A(){if(UL)return jO;UL=1;function e(t,r){for(var n=-1,a=r.length,o=t.length;++n<a;)t[o+n]=r[n];return t}return jO=e,jO}var MO,VL;function HB(){if(VL)return MO;VL=1;var e=$A(),t=Il();function r(n,a,o){var i=a(n);return t(n)?i:e(i,o(n))}return MO=r,MO}var FO,WL;function _Q(){if(WL)return FO;WL=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,o=0,i=[];++n<a;){var u=t[n];r(u,n,t)&&(i[o++]=u)}return i}return FO=e,FO}var LO,HL;function KB(){if(HL)return LO;HL=1;function e(){return[]}return LO=e,LO}var $O,KL;function DA(){if(KL)return $O;KL=1;var e=_Q(),t=KB(),r=Object.prototype,n=r.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(i){return i==null?[]:(i=Object(i),e(a(i),function(u){return n.call(i,u)}))}:t;return $O=o,$O}var DO,GL;function wQ(){if(GL)return DO;GL=1;function e(t,r){for(var n=-1,a=Array(t);++n<t;)a[n]=r(n);return a}return DO=e,DO}var NO,QL;function xQ(){if(QL)return NO;QL=1;var e=sv(),t=Fu(),r="[object Arguments]";function n(a){return t(a)&&e(a)==r}return NO=n,NO}var BO,XL;function hx(){if(XL)return BO;XL=1;var e=xQ(),t=Fu(),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(i){return t(i)&&n.call(i,"callee")&&!a.call(i,"callee")};return BO=o,BO}var uy={exports:{}},zO,YL;function SQ(){if(YL)return zO;YL=1;function e(){return!1}return zO=e,zO}uy.exports;var JL;function mx(){return JL||(JL=1,function(e,t){var r=Ps(),n=SQ(),a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,u=i?r.Buffer:void 0,d=u?u.isBuffer:void 0,l=d||n;e.exports=l}(uy,uy.exports)),uy.exports}var qO,ZL;function NA(){if(ZL)return qO;ZL=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return qO=t,qO}var UO,e$;function CQ(){if(e$)return UO;e$=1;var e=sv(),t=NA(),r=Fu(),n="[object Arguments]",a="[object Array]",o="[object Boolean]",i="[object Date]",u="[object Error]",d="[object Function]",l="[object Map]",h="[object Number]",v="[object Object]",y="[object RegExp]",b="[object Set]",_="[object String]",w="[object WeakMap]",S="[object ArrayBuffer]",A="[object DataView]",R="[object Float32Array]",C="[object Float64Array]",O="[object Int8Array]",T="[object Int16Array]",E="[object Int32Array]",L="[object Uint8Array]",j="[object Uint8ClampedArray]",M="[object Uint16Array]",k="[object Uint32Array]",$={};$[R]=$[C]=$[O]=$[T]=$[E]=$[L]=$[j]=$[M]=$[k]=!0,$[n]=$[a]=$[S]=$[o]=$[A]=$[i]=$[u]=$[d]=$[l]=$[h]=$[v]=$[y]=$[b]=$[_]=$[w]=!1;function B(z){return r(z)&&t(z.length)&&!!$[e(z)]}return UO=B,UO}var VO,t$;function vx(){if(t$)return VO;t$=1;function e(t){return function(r){return t(r)}}return VO=e,VO}var cy={exports:{}};cy.exports;var r$;function BA(){return r$||(r$=1,function(e,t){var r=LB(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,u=function(){try{var d=a&&a.require&&a.require("util").types;return d||i&&i.binding&&i.binding("util")}catch{}}();e.exports=u}(cy,cy.exports)),cy.exports}var WO,n$;function zA(){if(n$)return WO;n$=1;var e=CQ(),t=vx(),r=BA(),n=r&&r.isTypedArray,a=n?t(n):e;return WO=a,WO}var HO,a$;function GB(){if(a$)return HO;a$=1;var e=wQ(),t=hx(),r=Il(),n=mx(),a=cx(),o=zA(),i=Object.prototype,u=i.hasOwnProperty;function d(l,h){var v=r(l),y=!v&&t(l),b=!v&&!y&&n(l),_=!v&&!y&&!b&&o(l),w=v||y||b||_,S=w?e(l.length,String):[],A=S.length;for(var R in l)(h||u.call(l,R))&&!(w&&(R=="length"||b&&(R=="offset"||R=="parent")||_&&(R=="buffer"||R=="byteLength"||R=="byteOffset")||a(R,A)))&&S.push(R);return S}return HO=d,HO}var KO,o$;function qA(){if(o$)return KO;o$=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||e;return r===a}return KO=t,KO}var GO,i$;function QB(){if(i$)return GO;i$=1;function e(t,r){return function(n){return t(r(n))}}return GO=e,GO}var QO,s$;function EQ(){if(s$)return QO;s$=1;var e=QB(),t=e(Object.keys,Object);return QO=t,QO}var XO,l$;function OQ(){if(l$)return XO;l$=1;var e=qA(),t=EQ(),r=Object.prototype,n=r.hasOwnProperty;function a(o){if(!e(o))return t(o);var i=[];for(var u in Object(o))n.call(o,u)&&u!="constructor"&&i.push(u);return i}return XO=a,XO}var YO,u$;function gx(){if(u$)return YO;u$=1;var e=PA(),t=NA();function r(n){return n!=null&&t(n.length)&&!e(n)}return YO=r,YO}var JO,c$;function UA(){if(c$)return JO;c$=1;var e=GB(),t=OQ(),r=gx();function n(a){return r(a)?e(a):t(a)}return JO=n,JO}var ZO,d$;function XB(){if(d$)return ZO;d$=1;var e=HB(),t=DA(),r=UA();function n(a){return e(a,r,t)}return ZO=n,ZO}var eP,f$;function PQ(){if(f$)return eP;f$=1;var e=XB(),t=1,r=Object.prototype,n=r.hasOwnProperty;function a(o,i,u,d,l,h){var v=u&t,y=e(o),b=y.length,_=e(i),w=_.length;if(b!=w&&!v)return!1;for(var S=b;S--;){var A=y[S];if(!(v?A in i:n.call(i,A)))return!1}var R=h.get(o),C=h.get(i);if(R&&C)return R==i&&C==o;var O=!0;h.set(o,i),h.set(i,o);for(var T=v;++S<b;){A=y[S];var E=o[A],L=i[A];if(d)var j=v?d(L,E,A,i,o,h):d(E,L,A,o,i,h);if(!(j===void 0?E===L||l(E,L,u,d,h):j)){O=!1;break}T||(T=A=="constructor")}if(O&&!T){var M=o.constructor,k=i.constructor;M!=k&&"constructor"in o&&"constructor"in i&&!(typeof M=="function"&&M instanceof M&&typeof k=="function"&&k instanceof k)&&(O=!1)}return h.delete(o),h.delete(i),O}return eP=a,eP}var tP,p$;function RQ(){if(p$)return tP;p$=1;var e=cp(),t=Ps(),r=e(t,"DataView");return tP=r,tP}var rP,h$;function kQ(){if(h$)return rP;h$=1;var e=cp(),t=Ps(),r=e(t,"Promise");return rP=r,rP}var nP,m$;function YB(){if(m$)return nP;m$=1;var e=cp(),t=Ps(),r=e(t,"Set");return nP=r,nP}var aP,v$;function TQ(){if(v$)return aP;v$=1;var e=cp(),t=Ps(),r=e(t,"WeakMap");return aP=r,aP}var oP,g$;function yx(){if(g$)return oP;g$=1;var e=RQ(),t=TA(),r=kQ(),n=YB(),a=TQ(),o=sv(),i=$B(),u="[object Map]",d="[object Object]",l="[object Promise]",h="[object Set]",v="[object WeakMap]",y="[object DataView]",b=i(e),_=i(t),w=i(r),S=i(n),A=i(a),R=o;return(e&&R(new e(new ArrayBuffer(1)))!=y||t&&R(new t)!=u||r&&R(r.resolve())!=l||n&&R(new n)!=h||a&&R(new a)!=v)&&(R=function(C){var O=o(C),T=O==d?C.constructor:void 0,E=T?i(T):"";if(E)switch(E){case b:return y;case _:return u;case w:return l;case S:return h;case A:return v}return O}),oP=R,oP}var iP,y$;function AQ(){if(y$)return iP;y$=1;var e=jA(),t=VB(),r=bQ(),n=PQ(),a=yx(),o=Il(),i=mx(),u=zA(),d=1,l="[object Arguments]",h="[object Array]",v="[object Object]",y=Object.prototype,b=y.hasOwnProperty;function _(w,S,A,R,C,O){var T=o(w),E=o(S),L=T?h:a(w),j=E?h:a(S);L=L==l?v:L,j=j==l?v:j;var M=L==v,k=j==v,$=L==j;if($&&i(w)){if(!i(S))return!1;T=!0,M=!1}if($&&!M)return O||(O=new e),T||u(w)?t(w,S,A,R,C,O):r(w,S,L,A,R,C,O);if(!(A&d)){var B=M&&b.call(w,"__wrapped__"),z=k&&b.call(S,"__wrapped__");if(B||z){var U=B?w.value():w,W=z?S.value():S;return O||(O=new e),C(U,W,A,R,O)}}return $?(O||(O=new e),n(w,S,A,R,C,O)):!1}return iP=_,iP}var sP,b$;function IQ(){if(b$)return sP;b$=1;var e=AQ(),t=Fu();function r(n,a,o,i,u){return n===a?!0:n==null||a==null||!t(n)&&!t(a)?n!==n&&a!==a:e(n,a,o,i,r,u)}return sP=r,sP}var lP,_$;function jQ(){if(_$)return lP;_$=1;var e=IQ();function t(r,n){return e(r,n)}return lP=t,lP}var MQ=jQ();const ii=Nn(MQ);var w$=function(e,t){return e&&t?String.prototype.replace.call(e,FQ,function(r,n){return!t.hasOwnProperty(n)||t[n]==null?r:t[n]}):e},FQ=/%\{(.*?)\}/g,LQ={translate:function(e,t){return t!=null&&t._?w$(t._,t):w$(e,t)},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},VA=p.createContext(LQ);VA.displayName="I18nContext";var JB=p.createContext(function(){}),$Q=p.createContext(null),ZB=p.createContext({notifications:[],addNotification:function(){},takeNotification:function(){},resetNotifications:function(){},setNotifications:function(){}}),x$=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},DQ=function(e){var t=e.children,r=p.useState([]),n=r[0],a=r[1],o=p.useCallback(function(l){a(function(h){return x$(x$([],h,!0),[l],!1)})},[]),i=p.useCallback(function(){if(n.length!==0){var l=n[0],h=n.slice(1);return a(h),l}},[n]),u=p.useCallback(function(){a([])},[]),d=p.useMemo(function(){return{notifications:n,addNotification:o,takeNotification:i,resetNotifications:u,setNotifications:a}},[n]);return p.createElement(ZB.Provider,{value:d},p.createElement(JB.Provider,{value:o},t))},NQ=function(){return p.useContext(JB)},ez=function(){return p.useContext(ZB)},BQ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Ur=function(){var e=NQ();return p.useCallback(function(t,r){r===void 0&&(r={});var n=r.type,a=n===void 0?"info":n,o=BQ(r,["type"]);e({message:t,type:a,notificationOptions:o})},[e])},zQ=function(e){var t=e.value,r=t===void 0?qQ:t,n=e.children,a=xa("locale")[0],o=Ur(),i=p.useState(0),u=i[0],d=i[1],l=p.useState(a===r.getLocale()),h=l[0],v=l[1];return p.useEffect(function(){a&&r.getLocale()!==a?new Promise(function(y){y(r.changeLocale(a))}).then(function(){d(function(y){return y+1}),v(!0)}).catch(function(y){v(!0),o("ra.notification.i18n_error",{type:"error"}),console.error(y)}):v(!0)},[r,a,o]),h?p.createElement(VA.Provider,{value:r,key:u},n):null},qQ={translate:function(e){return e},changeLocale:function(){return Promise.resolve()},getLocale:function(){return"en"}},WA=function(){return p.useContext(VA)},nt=function(){var e=WA(),t=p.useCallback(function(r,n){return e.translate(r,n)},[e]);return e?t:UQ},UQ=function(e){return e},uP,S$;function tz(){if(S$)return uP;S$=1;var e=RA(),t=lv();function r(n,a,o){(o!==void 0&&!t(n[a],o)||o===void 0&&!(a in n))&&e(n,a,o)}return uP=r,uP}var cP,C$;function VQ(){if(C$)return cP;C$=1;function e(t){return function(r,n,a){for(var o=-1,i=Object(r),u=a(r),d=u.length;d--;){var l=u[t?d:++o];if(n(i[l],l,i)===!1)break}return r}}return cP=e,cP}var dP,E$;function WQ(){if(E$)return dP;E$=1;var e=VQ(),t=e();return dP=t,dP}var dy={exports:{}};dy.exports;var O$;function rz(){return O$||(O$=1,function(e,t){var r=Ps(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o?r.Buffer:void 0,u=i?i.allocUnsafe:void 0;function d(l,h){if(h)return l.slice();var v=l.length,y=u?u(v):new l.constructor(v);return l.copy(y),y}e.exports=d}(dy,dy.exports)),dy.exports}var fP,P$;function HA(){if(P$)return fP;P$=1;var e=WB();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return fP=t,fP}var pP,R$;function nz(){if(R$)return pP;R$=1;var e=HA();function t(r,n){var a=n?e(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.length)}return pP=t,pP}var hP,k$;function az(){if(k$)return hP;k$=1;function e(t,r){var n=-1,a=t.length;for(r||(r=Array(a));++n<a;)r[n]=t[n];return r}return hP=e,hP}var mP,T$;function HQ(){if(T$)return mP;T$=1;var e=Rs(),t=Object.create,r=function(){function n(){}return function(a){if(!e(a))return{};if(t)return t(a);n.prototype=a;var o=new n;return n.prototype=void 0,o}}();return mP=r,mP}var vP,A$;function KA(){if(A$)return vP;A$=1;var e=QB(),t=e(Object.getPrototypeOf,Object);return vP=t,vP}var gP,I$;function oz(){if(I$)return gP;I$=1;var e=HQ(),t=KA(),r=qA();function n(a){return typeof a.constructor=="function"&&!r(a)?e(t(a)):{}}return gP=n,gP}var yP,j$;function GA(){if(j$)return yP;j$=1;var e=gx(),t=Fu();function r(n){return t(n)&&e(n)}return yP=r,yP}var bP,M$;function KQ(){if(M$)return bP;M$=1;var e=sv(),t=KA(),r=Fu(),n="[object Object]",a=Function.prototype,o=Object.prototype,i=a.toString,u=o.hasOwnProperty,d=i.call(Object);function l(h){if(!r(h)||e(h)!=n)return!1;var v=t(h);if(v===null)return!0;var y=u.call(v,"constructor")&&v.constructor;return typeof y=="function"&&y instanceof y&&i.call(y)==d}return bP=l,bP}var _P,F$;function iz(){if(F$)return _P;F$=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return _P=e,_P}var wP,L$;function Nb(){if(L$)return wP;L$=1;var e=kA(),t=RA();function r(n,a,o,i){var u=!o;o||(o={});for(var d=-1,l=a.length;++d<l;){var h=a[d],v=i?i(o[h],n[h],h,o,n):void 0;v===void 0&&(v=n[h]),u?t(o,h,v):e(o,h,v)}return o}return wP=r,wP}var xP,$$;function GQ(){if($$)return xP;$$=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return xP=e,xP}var SP,D$;function QQ(){if(D$)return SP;D$=1;var e=Rs(),t=qA(),r=GQ(),n=Object.prototype,a=n.hasOwnProperty;function o(i){if(!e(i))return r(i);var u=t(i),d=[];for(var l in i)l=="constructor"&&(u||!a.call(i,l))||d.push(l);return d}return SP=o,SP}var CP,N$;function uv(){if(N$)return CP;N$=1;var e=GB(),t=QQ(),r=gx();function n(a){return r(a)?e(a,!0):t(a)}return CP=n,CP}var EP,B$;function XQ(){if(B$)return EP;B$=1;var e=Nb(),t=uv();function r(n){return e(n,t(n))}return EP=r,EP}var OP,z$;function YQ(){if(z$)return OP;z$=1;var e=tz(),t=rz(),r=nz(),n=az(),a=oz(),o=hx(),i=Il(),u=GA(),d=mx(),l=PA(),h=Rs(),v=KQ(),y=zA(),b=iz(),_=XQ();function w(S,A,R,C,O,T,E){var L=b(S,R),j=b(A,R),M=E.get(j);if(M){e(S,R,M);return}var k=T?T(L,j,R+"",S,A,E):void 0,$=k===void 0;if($){var B=i(j),z=!B&&d(j),U=!B&&!z&&y(j);k=j,B||z||U?i(L)?k=L:u(L)?k=n(L):z?($=!1,k=t(j,!0)):U?($=!1,k=r(j,!0)):k=[]:v(j)||o(j)?(k=L,o(L)?k=_(L):(!h(L)||l(L))&&(k=a(j))):$=!1}$&&(E.set(j,k),O(k,j,C,T,E),E.delete(j)),e(S,R,k)}return OP=w,OP}var PP,q$;function sz(){if(q$)return PP;q$=1;var e=jA(),t=tz(),r=WQ(),n=YQ(),a=Rs(),o=uv(),i=iz();function u(d,l,h,v,y){d!==l&&r(l,function(b,_){if(y||(y=new e),a(b))n(d,l,_,h,u,v,y);else{var w=v?v(i(d,_),b,_+"",d,l,y):void 0;w===void 0&&(w=b),t(d,_,w)}},o)}return PP=u,PP}var RP,U$;function lz(){if(U$)return RP;U$=1;function e(t){return t}return RP=e,RP}var kP,V$;function JQ(){if(V$)return kP;V$=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return kP=e,kP}var TP,W$;function uz(){if(W$)return TP;W$=1;var e=JQ(),t=Math.max;function r(n,a,o){return a=t(a===void 0?n.length-1:a,0),function(){for(var i=arguments,u=-1,d=t(i.length-a,0),l=Array(d);++u<d;)l[u]=i[a+u];u=-1;for(var h=Array(a+1);++u<a;)h[u]=i[u];return h[a]=o(l),e(n,this,h)}}return TP=r,TP}var AP,H$;function ZQ(){if(H$)return AP;H$=1;function e(t){return function(){return t}}return AP=e,AP}var IP,K$;function eX(){if(K$)return IP;K$=1;var e=ZQ(),t=DB(),r=lz(),n=t?function(a,o){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:r;return IP=n,IP}var jP,G$;function tX(){if(G$)return jP;G$=1;var e=800,t=16,r=Date.now;function n(a){var o=0,i=0;return function(){var u=r(),d=t-(u-i);if(i=u,d>0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return jP=n,jP}var MP,Q$;function cz(){if(Q$)return MP;Q$=1;var e=eX(),t=tX(),r=t(e);return MP=r,MP}var FP,X$;function bx(){if(X$)return FP;X$=1;var e=lz(),t=uz(),r=cz();function n(a,o){return r(t(a,o,e),a+"")}return FP=n,FP}var LP,Y$;function dz(){if(Y$)return LP;Y$=1;var e=lv(),t=gx(),r=cx(),n=Rs();function a(o,i,u){if(!n(u))return!1;var d=typeof i;return(d=="number"?t(u)&&r(i,u.length):d=="string"&&i in u)?e(u[i],o):!1}return LP=a,LP}var $P,J$;function fz(){if(J$)return $P;J$=1;var e=bx(),t=dz();function r(n){return e(function(a,o){var i=-1,u=o.length,d=u>1?o[u-1]:void 0,l=u>2?o[2]:void 0;for(d=n.length>3&&typeof d=="function"?(u--,d):void 0,l&&t(o[0],o[1],l)&&(d=u<3?void 0:d,u=1),a=Object(a);++i<u;){var h=o[i];h&&n(a,h,i,d)}return a})}return $P=r,$P}var DP,Z$;function rX(){if(Z$)return DP;Z$=1;var e=sz(),t=fz(),r=t(function(n,a,o){e(n,a,o)});return DP=r,DP}var nX=rX();const _x=Nn(nX);var aX=function(e,t){var r=window.navigator,n=r.language,a=r.browserLanguage,o=r.userLanguage,i=n||a||o||e||bte;return t!=null&&t.fullLocale?i:i.split("-")[0]},QA=function(){var e=WA(),t=p.useMemo(function(){return e.getLocale()},[e]);return xa("locale",t)},oX=function(){var e=QA()[0];return e},XA=function(e){var t,r=WA(),n=p.useMemo(function(){return r!=null&&r.getLocales?r==null?void 0:r.getLocales():[]},[r]);return(t=e==null?void 0:e.locales)!==null&&t!==void 0?t:n},NP,eD;function iX(){if(eD)return NP;eD=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a&&r(t[n],n,t)!==!1;);return t}return NP=e,NP}var BP,tD;function sX(){if(tD)return BP;tD=1;var e=Nb(),t=UA();function r(n,a){return n&&e(a,t(a),n)}return BP=r,BP}var zP,rD;function lX(){if(rD)return zP;rD=1;var e=Nb(),t=uv();function r(n,a){return n&&e(a,t(a),n)}return zP=r,zP}var qP,nD;function uX(){if(nD)return qP;nD=1;var e=Nb(),t=DA();function r(n,a){return e(n,t(n),a)}return qP=r,qP}var UP,aD;function pz(){if(aD)return UP;aD=1;var e=$A(),t=KA(),r=DA(),n=KB(),a=Object.getOwnPropertySymbols,o=a?function(i){for(var u=[];i;)e(u,r(i)),i=t(i);return u}:n;return UP=o,UP}var VP,oD;function cX(){if(oD)return VP;oD=1;var e=Nb(),t=pz();function r(n,a){return e(n,t(n),a)}return VP=r,VP}var WP,iD;function dX(){if(iD)return WP;iD=1;var e=HB(),t=pz(),r=uv();function n(a){return e(a,r,t)}return WP=n,WP}var HP,sD;function fX(){if(sD)return HP;sD=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var a=n.length,o=new n.constructor(a);return a&&typeof n[0]=="string"&&t.call(n,"index")&&(o.index=n.index,o.input=n.input),o}return HP=r,HP}var KP,lD;function pX(){if(lD)return KP;lD=1;var e=HA();function t(r,n){var a=n?e(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.byteLength)}return KP=t,KP}var GP,uD;function hX(){if(uD)return GP;uD=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return GP=t,GP}var QP,cD;function mX(){if(cD)return QP;cD=1;var e=iv(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(a){return r?Object(r.call(a)):{}}return QP=n,QP}var XP,dD;function vX(){if(dD)return XP;dD=1;var e=HA(),t=pX(),r=hX(),n=mX(),a=nz(),o="[object Boolean]",i="[object Date]",u="[object Map]",d="[object Number]",l="[object RegExp]",h="[object Set]",v="[object String]",y="[object Symbol]",b="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",A="[object Int8Array]",R="[object Int16Array]",C="[object Int32Array]",O="[object Uint8Array]",T="[object Uint8ClampedArray]",E="[object Uint16Array]",L="[object Uint32Array]";function j(M,k,$){var B=M.constructor;switch(k){case b:return e(M);case o:case i:return new B(+M);case _:return t(M,$);case w:case S:case A:case R:case C:case O:case T:case E:case L:return a(M,$);case u:return new B;case d:case v:return new B(M);case l:return r(M);case h:return new B;case y:return n(M)}}return XP=j,XP}var YP,fD;function gX(){if(fD)return YP;fD=1;var e=yx(),t=Fu(),r="[object Map]";function n(a){return t(a)&&e(a)==r}return YP=n,YP}var JP,pD;function yX(){if(pD)return JP;pD=1;var e=gX(),t=vx(),r=BA(),n=r&&r.isMap,a=n?t(n):e;return JP=a,JP}var ZP,hD;function bX(){if(hD)return ZP;hD=1;var e=yx(),t=Fu(),r="[object Set]";function n(a){return t(a)&&e(a)==r}return ZP=n,ZP}var eR,mD;function _X(){if(mD)return eR;mD=1;var e=bX(),t=vx(),r=BA(),n=r&&r.isSet,a=n?t(n):e;return eR=a,eR}var tR,vD;function wX(){if(vD)return tR;vD=1;var e=jA(),t=iX(),r=kA(),n=sX(),a=lX(),o=rz(),i=az(),u=uX(),d=cX(),l=XB(),h=dX(),v=yx(),y=fX(),b=vX(),_=oz(),w=Il(),S=mx(),A=yX(),R=Rs(),C=_X(),O=UA(),T=uv(),E=1,L=2,j=4,M="[object Arguments]",k="[object Array]",$="[object Boolean]",B="[object Date]",z="[object Error]",U="[object Function]",W="[object GeneratorFunction]",Q="[object Map]",V="[object Number]",K="[object Object]",X="[object RegExp]",te="[object Set]",G="[object String]",J="[object Symbol]",de="[object WeakMap]",ce="[object ArrayBuffer]",ue="[object DataView]",be="[object Float32Array]",Pe="[object Float64Array]",Ee="[object Int8Array]",ge="[object Int16Array]",xe="[object Int32Array]",Oe="[object Uint8Array]",Te="[object Uint8ClampedArray]",Me="[object Uint16Array]",Fe="[object Uint32Array]",$e={};$e[M]=$e[k]=$e[ce]=$e[ue]=$e[$]=$e[B]=$e[be]=$e[Pe]=$e[Ee]=$e[ge]=$e[xe]=$e[Q]=$e[V]=$e[K]=$e[X]=$e[te]=$e[G]=$e[J]=$e[Oe]=$e[Te]=$e[Me]=$e[Fe]=!0,$e[z]=$e[U]=$e[de]=!1;function et(qe,re,oe,pe,Se,ne){var we,Ne=re&E,De=re&L,ht=re&j;if(oe&&(we=Se?oe(qe,pe,Se,ne):oe(qe)),we!==void 0)return we;if(!R(qe))return qe;var lt=w(qe);if(lt){if(we=y(qe),!Ne)return i(qe,we)}else{var bt=v(qe),Pt=bt==U||bt==W;if(S(qe))return o(qe,Ne);if(bt==K||bt==M||Pt&&!Se){if(we=De||Pt?{}:_(qe),!Ne)return De?d(qe,a(we,qe)):u(qe,n(we,qe))}else{if(!$e[bt])return Se?qe:{};we=b(qe,bt,Ne)}}ne||(ne=new e);var Tt=ne.get(qe);if(Tt)return Tt;ne.set(qe,we),C(qe)?qe.forEach(function(Lt){we.add(et(Lt,re,oe,Lt,qe,ne))}):A(qe)&&qe.forEach(function(Lt,Ct){we.set(Ct,et(Lt,re,oe,Ct,qe,ne))});var Je=ht?De?h:l:De?T:O,Dt=lt?void 0:Je(qe);return t(Dt||qe,function(Lt,Ct){Dt&&(Ct=Lt,Lt=qe[Ct]),r(we,Ct,et(Lt,re,oe,Ct,qe,ne))}),we}return tR=et,tR}var rR,gD;function xX(){if(gD)return rR;gD=1;var e=wX(),t=1,r=4;function n(a){return e(a,t|r)}return rR=n,rR}var SX=xX();const hz=Nn(SX);var mz=p.createContext(""),CX=function(e){var t=e.children,r=e.basename;return p.createElement(mz.Provider,{value:r},t)},EX=function(e){var t=e.basename,r=t===void 0?"":t,n=e.children,a=fd(),o=a?OX:RX;return p.createElement(CX,{basename:a?r:""},p.createElement(o,{basename:r},n))},OX=function(e){var t=e.children;return p.createElement(p.Fragment,null,t)},PX={v7_startTransition:!1,v7_relativeSplatPath:!1},RX=function(e){var t=e.children,r=e.basename,n=iG([{path:"*",element:p.createElement(p.Fragment,null,t)}],{basename:r,future:{v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1}});return p.createElement(yG,{router:n,future:PX})},nR,yD;function kX(){if(yD)return nR;yD=1;var e=Ps(),t=function(){return e.Date.now()};return nR=t,nR}var aR,bD;function TX(){if(bD)return aR;bD=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return aR=t,aR}var oR,_D;function AX(){if(_D)return oR;_D=1;var e=TX(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return oR=r,oR}var iR,wD;function IX(){if(wD)return iR;wD=1;var e=AX(),t=Rs(),r=ox(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,u=parseInt;function d(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var h=typeof l.valueOf=="function"?l.valueOf():l;l=t(h)?h+"":h}if(typeof l!="string")return l===0?l:+l;l=e(l);var v=o.test(l);return v||i.test(l)?u(l.slice(2),v?2:8):a.test(l)?n:+l}return iR=d,iR}var sR,xD;function jX(){if(xD)return sR;xD=1;var e=Rs(),t=kX(),r=IX(),n="Expected a function",a=Math.max,o=Math.min;function i(u,d,l){var h,v,y,b,_,w,S=0,A=!1,R=!1,C=!0;if(typeof u!="function")throw new TypeError(n);d=r(d)||0,e(l)&&(A=!!l.leading,R="maxWait"in l,y=R?a(r(l.maxWait)||0,d):y,C="trailing"in l?!!l.trailing:C);function O(z){var U=h,W=v;return h=v=void 0,S=z,b=u.apply(W,U),b}function T(z){return S=z,_=setTimeout(j,d),A?O(z):b}function E(z){var U=z-w,W=z-S,Q=d-U;return R?o(Q,y-W):Q}function L(z){var U=z-w,W=z-S;return w===void 0||U>=d||U<0||R&&W>=y}function j(){var z=t();if(L(z))return M(z);_=setTimeout(j,E(z))}function M(z){return _=void 0,C&&h?O(z):(h=v=void 0,b)}function k(){_!==void 0&&clearTimeout(_),S=0,h=w=v=_=void 0}function $(){return _===void 0?b:M(t())}function B(){var z=t(),U=L(z);if(h=arguments,v=this,w=z,U){if(_===void 0)return T(w);if(R)return clearTimeout(_),_=setTimeout(j,d),O(w)}return _===void 0&&(_=setTimeout(j,d)),b}return B.cancel=k,B.flush=$,B}return sR=i,sR}var MX=jX();const wx=Nn(MX);var FX=function(e,t){t===void 0&&(t=250);var r=LX(e,t),n=r[0],a=r[1],o=an();p.useEffect(function(){var i;n!=null&&((i=o.state)===null||i===void 0?void 0:i._scrollToTop)!==!0&&(a(void 0),window.scrollTo(0,n))},[])},LX=function(e,t){t===void 0&&(t=250);var r=xa(e),n=r[0],a=r[1];return p.useEffect(function(){if(!(typeof window>"u")){var o=wx(function(){a(window.scrollY)},t);return window.addEventListener("scroll",o),function(){window.removeEventListener("scroll",o)}}},[t,a]),[n,a]},$X=function(e){var t=e.children,r=e.storeKey,n=e.debounce,a=n===void 0?250:n;return FX(r,a),t},Lu=function(){return p.useContext(mz)},pd=function(){var e=Lu();return p.useCallback(function(t){var r=t.resource,n=t.id,a=t.type;if(["list","create","edit","show"].includes(a)&&!r)throw new Error("Cannot create a link without a resource. You must provide the resource name.");switch(a){case"list":return vl("".concat(e,"/").concat(r));case"create":return vl("".concat(e,"/").concat(r,"/create"));case"edit":return n==null?vl("".concat(e,"/").concat(r)):vl("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n)));case"show":return n==null?vl("".concat(e,"/").concat(r)):vl("".concat(e,"/").concat(r,"/").concat(encodeURIComponent(n),"/show"));default:return a}},[e])},vl=function(e){return e.replace("//","/")},vz=p.createContext(void 0),er=function(e){var t=p.useContext(vz);return e&&e.resource||t},YA=p.createContext(void 0);YA.displayName="RecordContext";var hd=function(e){var t=e.children,r=e.value;return p.createElement(YA.Provider,{value:r},t)},gr=function(e){var t=p.useContext(YA);return e&&e.record||t},DX=function(e){e===void 0&&(e={});var t=(e||{}).link,r=gr(e),n=er(e);if(!n)throw new Error("Cannot generate a link for a record without a resource. You must use useGetPathForRecord within a ResourceContextProvider, or pass a resource prop.");var a=Ml(e),o=pd(),i=p.useState(t&&typeof t!="function"&&r!=null?o({resource:n,id:r.id,type:t}):!1),u=i[0],d=i[1],l=Pl({action:"show",resource:n,record:r,enabled:t==null&&a.hasShow}).canAccess,h=Pl({action:"edit",resource:n,record:r,enabled:t==null&&a.hasEdit}).canAccess;return p.useEffect(function(){if(r){if(t===!1){d(!1);return}if(t==null){if(a.hasShow&&l){d(o({resource:n,id:r.id,type:"show"}));return}if(a.hasEdit&&h){d(o({resource:n,id:r.id,type:"edit"}));return}}if(typeof t=="function"){var v=t(r,n);if(v instanceof Promise){v.then(function(y){return d(y)});return}d(v?o({resource:n,id:r.id,type:v}):!1);return}t&&d(o({resource:n,id:r.id,type:t}))}},[o,l,h,t,r,n,a.hasEdit,a.hasShow]),u},j1=function(){return j1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},j1.apply(this,arguments)},NX=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},gz=p.createContext({definitions:{},register:function(){},unregister:function(){}}),BX=function(e){var t=e.definitions,r=t===void 0?{}:t,n=e.children,a=p.useState(r),o=a[0],i=a[1],u=p.useCallback(function(h){i(function(v){var y;return ii(v[h.name],h)?v:j1(j1({},v),(y={},y[h.name]=h,y))})},[]),d=p.useCallback(function(h){i(function(v){var y=v,b=h.name;y[b];var _=NX(y,[typeof b=="symbol"?b:b+""]);return _})},[]),l=p.useMemo(function(){return{definitions:o,register:u,unregister:d}},[o]);return p.createElement(gz.Provider,{value:l},n)},yz=function(){return p.useContext(gz)},cv=function(){return yz().definitions},ok=function(){return ok=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ok.apply(this,arguments)},zX=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},qX=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},UX=function(e){e===void 0&&(e={});var t=pi(),r=Mb(ok({mutationFn:function(n){return zX(void 0,void 0,void 0,function(){return qX(this,function(a){return!t||!t.canAccess?[2,!0]:[2,t.canAccess(n)]})})},retry:!1},e)).mutateAsync;return r},VX=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},WX=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},HX=function(e){e===void 0&&(e={});var t=er(e),r=cv(),n=pd(),a=UX();return p.useCallback(function(o){return VX(void 0,void 0,void 0,function(){var i,u,d,l,h,v,y,b,_,w,S,A,R,C;return WX(this,function(O){switch(O.label){case 0:if(i=o||{},u=i.link,d=i.record,l=(R=o.resource)!==null&&R!==void 0?R:t,!l)throw new Error("Cannot generate a link for a record without a resource. You must use useGetPathForRecordCallback within a ResourceContextProvider, or pass a resource parameter.");return h=(C=r[l])!==null&&C!==void 0?C:{},d==null||u===!1?[2,!1]:u!=null?[3,2]:[4,Promise.all([h.hasShow?a({action:"show",resource:l,record:d}):Promise.resolve(!1),h.hasEdit?a({action:"edit",resource:l,record:d}):Promise.resolve(!1)])];case 1:return v=O.sent(),y=v[0],b=v[1],y?[2,n({resource:l,id:d.id,type:"show"})]:b?[2,n({resource:l,id:d.id,type:"edit"})]:[2,!1];case 2:return _=typeof u=="function"?u:function(){return u},w=_(d,l),w===!1?[2,!1]:(S=KX(w),S?[4,w]:[3,4]);case 3:return A=O.sent(),A===!1?[2]:[2,n({resource:l,id:d.id,type:A})];case 4:return[2,n({resource:l,id:d.id,type:w})]}})})},[a,n,r,t])},KX=function(e){return e&&typeof e.then=="function"},gy=function(){return gy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},gy.apply(this,arguments)},dv=function(){var e=Os(),t=Lu(),r=pd();return p.useCallback(function(n,a,o,i,u){var d;if(a===void 0&&(a=""),u===void 0&&(u={}),n)if(typeof n=="function"){var l=n(a,o,i),h=typeof l=="string"?"".concat(t).concat(l.startsWith("/")?"":"/").concat(l):gy({pathname:"".concat(t).concat(!((d=l.pathname)===null||d===void 0)&&d.startsWith("/")?"":"/").concat(l.pathname)},l);e(h,{state:gy({_scrollToTop:!0},u)});return}else if(typeof n=="string"&&n.startsWith("http")&&window){window.location.href=n;return}else{e(r({resource:a,id:o,type:n}),{state:n==="list"?u:gy({_scrollToTop:!0},u)});return}else return},[e,t,r])},bz=function(e){var t=an().pathname,r=p.useRef(t);p.useEffect(function(){t!==r.current&&e()},[t,e])},GX=function(){var e=an();p.useEffect(function(){var t;!((t=e.state)===null||t===void 0)&&t._scrollToTop&&typeof window<"u"&&typeof window.scrollTo=="function"&&window.scrollTo(0,0)},[e])},JA=function(){var e=an(),t=Lb(),r=t["*"],n=e.pathname.replace(new RegExp("/".concat(r,"$")),"");return n},M1=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},QX="GET_LIST",XX="GET_ONE",YX="GET_MANY",JX="GET_MANY_REFERENCE",ZX="CREATE",eY="UPDATE",tY="UPDATE_MANY",rY="DELETE",nY="DELETE_MANY",aY=["getOne","create","update"],oY=["getList","getMany","getManyReference"],iY=M1(M1([],oY,!0),["updateMany","deleteMany"],!1);M1(M1([],aY,!0),iY,!0);var ZA={create:function(){return Promise.resolve({data:null})},delete:function(){return Promise.resolve({data:null})},deleteMany:function(){return Promise.resolve({data:[]})},getList:function(){return Promise.resolve({data:[],total:0})},getMany:function(){return Promise.resolve({data:[]})},getManyReference:function(){return Promise.resolve({data:[],total:0})},getOne:function(){return Promise.resolve({data:null})},update:function(){return Promise.resolve({data:null})},updateMany:function(){return Promise.resolve({data:[]})}},SD={create:ZX,delete:rY,deleteMany:nY,getList:QX,getMany:YX,getManyReference:JX,getOne:XX,update:eY,updateMany:tY},sY=function(e){var t=new Proxy(ZA,{get:function(r,n){return function(a,o){if(Object.keys(SD).includes(n.toString())){var i=SD[n.toString()];return e(i,a,o)}return e(n.toString(),a,o)}},apply:function(r,n,a){return e.apply(e,a)}});return t},eI=p.createContext(null);eI.displayName="DataProviderContext";var lY=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),_z=function(e){lY(t,e);function t(r,n,a){a===void 0&&(a=null);var o=e.call(this,r)||this;return o.message=r,o.status=n,o.body=a,Object.setPrototypeOf(o,t.prototype),o.name=o.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(o,o.constructor):o.stack=new Error(r).stack,o.stack=new Error().stack,o}return t}(Error),lR={},uR,CD;function uY(){return CD||(CD=1,uR=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),uR}var cR,ED;function cY(){if(ED)return cR;ED=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(i,u){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;u=u||1;var d=i.slice(0,u),l=i.slice(u);return Array.prototype.concat.call([],n(d),n(l))}function a(i){try{return decodeURIComponent(i)}catch{for(var u=i.match(t)||[],d=1;d<u.length;d++)i=n(u,d).join(""),u=i.match(t)||[];return i}}function o(i){for(var u={"%FE%FF":"<22><>","%FF%FE":"<22><>"},d=r.exec(i);d;){try{u[d[0]]=decodeURIComponent(d[0])}catch{var l=a(d[0]);l!==d[0]&&(u[d[0]]=l)}d=r.exec(i)}u["%C2"]="<22>";for(var h=Object.keys(u),v=0;v<h.length;v++){var y=h[v];i=i.replace(new RegExp(y,"g"),u[y])}return i}return cR=function(i){if(typeof i!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof i+"`");try{return i=i.replace(/\+/g," "),decodeURIComponent(i)}catch{return o(i)}},cR}var dR,OD;function dY(){return OD||(OD=1,dR=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),dR}var fR,PD;function fY(){return PD||(PD=1,fR=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;o<n.length;o++){var i=n[o],u=e[i];(a?t.indexOf(i)!==-1:t(i,u,e))&&(r[i]=u)}return r}),fR}var RD;function pY(){return RD||(RD=1,function(e){const t=uY(),r=cY(),n=dY(),a=fY(),o=R=>R==null,i=Symbol("encodeFragmentIdentifier");function u(R){switch(R.arrayFormat){case"index":return C=>(O,T)=>{const E=O.length;return T===void 0||R.skipNull&&T===null||R.skipEmptyString&&T===""?O:T===null?[...O,[h(C,R),"[",E,"]"].join("")]:[...O,[h(C,R),"[",h(E,R),"]=",h(T,R)].join("")]};case"bracket":return C=>(O,T)=>T===void 0||R.skipNull&&T===null||R.skipEmptyString&&T===""?O:T===null?[...O,[h(C,R),"[]"].join("")]:[...O,[h(C,R),"[]=",h(T,R)].join("")];case"colon-list-separator":return C=>(O,T)=>T===void 0||R.skipNull&&T===null||R.skipEmptyString&&T===""?O:T===null?[...O,[h(C,R),":list="].join("")]:[...O,[h(C,R),":list=",h(T,R)].join("")];case"comma":case"separator":case"bracket-separator":{const C=R.arrayFormat==="bracket-separator"?"[]=":"=";return O=>(T,E)=>E===void 0||R.skipNull&&E===null||R.skipEmptyString&&E===""?T:(E=E===null?"":E,T.length===0?[[h(O,R),C,h(E,R)].join("")]:[[T,h(E,R)].join(R.arrayFormatSeparator)])}default:return C=>(O,T)=>T===void 0||R.skipNull&&T===null||R.skipEmptyString&&T===""?O:T===null?[...O,h(C,R)]:[...O,[h(C,R),"=",h(T,R)].join("")]}}function d(R){let C;switch(R.arrayFormat){case"index":return(O,T,E)=>{if(C=/\[(\d*)\]$/.exec(O),O=O.replace(/\[\d*\]$/,""),!C){E[O]=T;return}E[O]===void 0&&(E[O]={}),E[O][C[1]]=T};case"bracket":return(O,T,E)=>{if(C=/(\[\])$/.exec(O),O=O.replace(/\[\]$/,""),!C){E[O]=T;return}if(E[O]===void 0){E[O]=[T];return}E[O]=[].concat(E[O],T)};case"colon-list-separator":return(O,T,E)=>{if(C=/(:list)$/.exec(O),O=O.replace(/:list$/,""),!C){E[O]=T;return}if(E[O]===void 0){E[O]=[T];return}E[O]=[].concat(E[O],T)};case"comma":case"separator":return(O,T,E)=>{const L=typeof T=="string"&&T.includes(R.arrayFormatSeparator),j=typeof T=="string"&&!L&&v(T,R).includes(R.arrayFormatSeparator);T=j?v(T,R):T;const M=L||j?T.split(R.arrayFormatSeparator).map(k=>v(k,R)):T===null?T:v(T,R);E[O]=M};case"bracket-separator":return(O,T,E)=>{const L=/(\[\])$/.test(O);if(O=O.replace(/\[\]$/,""),!L){E[O]=T&&v(T,R);return}const j=T===null?[]:T.split(R.arrayFormatSeparator).map(M=>v(M,R));if(E[O]===void 0){E[O]=j;return}E[O]=[].concat(E[O],j)};default:return(O,T,E)=>{if(E[O]===void 0){E[O]=T;return}E[O]=[].concat(E[O],T)}}}function l(R){if(typeof R!="string"||R.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function h(R,C){return C.encode?C.strict?t(R):encodeURIComponent(R):R}function v(R,C){return C.decode?r(R):R}function y(R){return Array.isArray(R)?R.sort():typeof R=="object"?y(Object.keys(R)).sort((C,O)=>Number(C)-Number(O)).map(C=>R[C]):R}function b(R){const C=R.indexOf("#");return C!==-1&&(R=R.slice(0,C)),R}function _(R){let C="";const O=R.indexOf("#");return O!==-1&&(C=R.slice(O)),C}function w(R){R=b(R);const C=R.indexOf("?");return C===-1?"":R.slice(C+1)}function S(R,C){return C.parseNumbers&&!Number.isNaN(Number(R))&&typeof R=="string"&&R.trim()!==""?R=Number(R):C.parseBooleans&&R!==null&&(R.toLowerCase()==="true"||R.toLowerCase()==="false")&&(R=R.toLowerCase()==="true"),R}function A(R,C){C=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},C),l(C.arrayFormatSeparator);const O=d(C),T=Object.create(null);if(typeof R!="string"||(R=R.trim().replace(/^[?#&]/,""),!R))return T;for(const E of R.split("&")){if(E==="")continue;let[L,j]=n(C.decode?E.replace(/\+/g," "):E,"=");j=j===void 0?null:["comma","separator","bracket-separator"].includes(C.arrayFormat)?j:v(j,C),O(v(L,C),j,T)}for(const E of Object.keys(T)){const L=T[E];if(typeof L=="object"&&L!==null)for(const j of Object.keys(L))L[j]=S(L[j],C);else T[E]=S(L,C)}return C.sort===!1?T:(C.sort===!0?Object.keys(T).sort():Object.keys(T).sort(C.sort)).reduce((E,L)=>{const j=T[L];return j&&typeof j=="object"&&!Array.isArray(j)?E[L]=y(j):E[L]=j,E},Object.create(null))}e.extract=w,e.parse=A,e.stringify=(R,C)=>{if(!R)return"";C=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},C),l(C.arrayFormatSeparator);const O=j=>C.skipNull&&o(R[j])||C.skipEmptyString&&R[j]==="",T=u(C),E={};for(const j of Object.keys(R))O(j)||(E[j]=R[j]);const L=Object.keys(E);return C.sort!==!1&&L.sort(C.sort),L.map(j=>{const M=R[j];return M===void 0?"":M===null?h(j,C):Array.isArray(M)?M.length===0&&C.arrayFormat==="bracket-separator"?h(j,C)+"[]":M.reduce(T(j),[]).join("&"):h(j,C)+"="+h(M,C)}).filter(j=>j.length>0).join("&")},e.parseUrl=(R,C)=>{C=Object.assign({decode:!0},C);const[O,T]=n(R,"#");return Object.assign({url:O.split("?")[0]||"",query:A(w(R),C)},C&&C.parseFragmentIdentifier&&T?{fragmentIdentifier:v(T,C)}:{})},e.stringifyUrl=(R,C)=>{C=Object.assign({encode:!0,strict:!0,[i]:!0},C);const O=b(R.url).split("?")[0]||"",T=e.extract(R.url),E=e.parse(T,{sort:!1}),L=Object.assign(E,R.query);let j=e.stringify(L,C);j&&(j=`?${j}`);let M=_(R.url);return R.fragmentIdentifier&&(M=`#${C[i]?h(R.fragmentIdentifier,C):R.fragmentIdentifier}`),`${O}${j}${M}`},e.pick=(R,C,O)=>{O=Object.assign({parseFragmentIdentifier:!0,[i]:!1},O);const{url:T,query:E,fragmentIdentifier:L}=e.parseUrl(R,O);return e.stringifyUrl({url:T,query:a(E,C),fragmentIdentifier:L},O)},e.exclude=(R,C,O)=>{const T=Array.isArray(C)?E=>!C.includes(E):(E,L)=>!C(E,L);return e.pick(R,T,O)}}(lR)),lR}var Um=pY(),F1=function(){return F1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},F1.apply(this,arguments)},hY=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},mY=function(e){var t=e.headers||new Headers({Accept:"application/json"}),r=e&&e.body,n=t.has("Content-Type"),a=!(e!=null&&e.method)||(e==null?void 0:e.method)==="GET",o=(e==null?void 0:e.body)instanceof FormData,i=r&&!n&&!a&&!o;return i&&t.set("Content-Type","application/json"),e.user&&e.user.authenticated&&e.user.token&&t.set("Authorization",e.user.token),t},op=function(e,t){t===void 0&&(t={});var r=mY(t);return fetch(e,F1(F1({},t),{headers:r})).then(function(n){return n.text().then(function(a){return{status:n.status,statusText:n.statusText,headers:n.headers,body:a}})}).then(function(n){var a=n.status,o=n.statusText,i=n.headers,u=n.body,d;try{d=JSON.parse(u)}catch{}return a<200||a>=300?Promise.reject(new _z(d&&d.message||o,a,d)):Promise.resolve({status:a,headers:i,body:u,json:d})})},vY=function(e){if(!e)return!1;var t=Array.isArray(e),r=typeof Buffer<"u"&&Buffer.isBuffer(e),n=Object.prototype.toString.call(e)==="[object Object]",a=!!Object.keys(e).length;return!t&&!r&&n&&a},wz=function(e,t){var r;return t===void 0&&(t=[]),vY(e)?Object.assign.apply(Object,hY([{}],Object.keys(e).map(function(n){return wz(e[n],t.concat([n]))}),!1)):t.length?(r={},r[t.join(".")]=e,r):e},pR={exports:{}},kD;function gY(){return kD||(kD=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(d,l,h){this.fn=d,this.context=l,this.once=h||!1}function o(d,l,h,v,y){if(typeof h!="function")throw new TypeError("The listener must be a function");var b=new a(h,v||d,y),_=r?r+l:l;return d._events[_]?d._events[_].fn?d._events[_]=[d._events[_],b]:d._events[_].push(b):(d._events[_]=b,d._eventsCount++),d}function i(d,l){--d._eventsCount===0?d._events=new n:delete d._events[l]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],h,v;if(this._eventsCount===0)return l;for(v in h=this._events)t.call(h,v)&&l.push(r?v.slice(1):v);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(h)):l},u.prototype.listeners=function(l){var h=r?r+l:l,v=this._events[h];if(!v)return[];if(v.fn)return[v.fn];for(var y=0,b=v.length,_=new Array(b);y<b;y++)_[y]=v[y].fn;return _},u.prototype.listenerCount=function(l){var h=r?r+l:l,v=this._events[h];return v?v.fn?1:v.length:0},u.prototype.emit=function(l,h,v,y,b,_){var w=r?r+l:l;if(!this._events[w])return!1;var S=this._events[w],A=arguments.length,R,C;if(S.fn){switch(S.once&&this.removeListener(l,S.fn,void 0,!0),A){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,h),!0;case 3:return S.fn.call(S.context,h,v),!0;case 4:return S.fn.call(S.context,h,v,y),!0;case 5:return S.fn.call(S.context,h,v,y,b),!0;case 6:return S.fn.call(S.context,h,v,y,b,_),!0}for(C=1,R=new Array(A-1);C<A;C++)R[C-1]=arguments[C];S.fn.apply(S.context,R)}else{var O=S.length,T;for(C=0;C<O;C++)switch(S[C].once&&this.removeListener(l,S[C].fn,void 0,!0),A){case 1:S[C].fn.call(S[C].context);break;case 2:S[C].fn.call(S[C].context,h);break;case 3:S[C].fn.call(S[C].context,h,v);break;case 4:S[C].fn.call(S[C].context,h,v,y);break;default:if(!R)for(T=1,R=new Array(A-1);T<A;T++)R[T-1]=arguments[T];S[C].fn.apply(S[C].context,R)}}return!0},u.prototype.on=function(l,h,v){return o(this,l,h,v,!1)},u.prototype.once=function(l,h,v){return o(this,l,h,v,!0)},u.prototype.removeListener=function(l,h,v,y){var b=r?r+l:l;if(!this._events[b])return this;if(!h)return i(this,b),this;var _=this._events[b];if(_.fn)_.fn===h&&(!y||_.once)&&(!v||_.context===v)&&i(this,b);else{for(var w=0,S=[],A=_.length;w<A;w++)(_[w].fn!==h||y&&!_[w].once||v&&_[w].context!==v)&&S.push(_[w]);S.length?this._events[b]=S.length===1?S[0]:S:i(this,b)}return this},u.prototype.removeAllListeners=function(l){var h;return l?(h=r?r+l:l,this._events[h]&&i(this,h)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u}(pR)),pR.exports}var yY=gY();const bY=Nn(yY),TD=new bY;var _Y=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},wY=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},hR,xz=function(){var e=pi(),t=hv(),r=Ur(),n=Os(),a=p.useCallback(function(o){return e?e.checkError(o).then(function(){return!1}).catch(function(i){return _Y(void 0,void 0,void 0,function(){var u,d,l,h;return wY(this,function(v){return u=(h=i==null?void 0:i.logoutUser)!==null&&h!==void 0?h:!0,hR?[2,!0]:(hR=setTimeout(function(){hR=void 0},0),d=i&&i.redirectTo!=null?i.redirectTo:o&&o.redirectTo?o.redirectTo:void 0,l=!(i&&i.message===!1||o&&o.message===!1||d!=null&&d.startsWith("http")),l&&e.checkAuth({}).then(function(){u?r(AD(i,"ra.notification.logged_out"),{type:"error"}):r(AD(i,"ra.notification.not_authorized"),{type:"error"})}).catch(function(){}),u?t({},d):d.startsWith("http")?window.location.href=d:n(d),[2,!0])})})}):xY()},[e,t,r,n]);return a},xY=function(){return Promise.resolve(!1)},AD=function(e,t){return typeof e=="string"?e:typeof e>"u"||!e.message?t:e.message},SY=function(e){var t=e.data,r=e.queryClient,n=e.staleTime,a=n===void 0?1e3:n,o=Date.now()+a;Object.keys(t).forEach(function(i){t[i].forEach(function(d){!d||d.id==null||r.setQueryData([i,"getOne",{id:String(d.id)}],d,{updatedAt:o})});var u=t[i].map(function(d){return String(d.id)});r.setQueryData([i,"getMany",{ids:u}],t[i],{updatedAt:o})})},CY=["getList","getMany","getManyReference"],co=function(){var e=p.useContext(eI)||ZA,t=Ea(),r=xz(),n=p.useMemo(function(){return new Proxy(e,{get:function(a,o){if(!(typeof o=="symbol"||o==="then"))return o==="supportAbortSignal"?e.supportAbortSignal:function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var d=o.toString();if(typeof e[d]!="function")throw new Error("Unknown dataProvider function: ".concat(d));try{return e[d].apply(e,i).then(function(l){var h;return!((h=l==null?void 0:l.meta)===null||h===void 0)&&h.prefetched&&SY({data:l==null?void 0:l.meta.prefetched,queryClient:t}),l}).catch(function(l){return r(l).then(function(h){if(h)return{data:CY.includes(d)?[]:{}};throw l})})}catch{throw new Error("The dataProvider threw an error. It should return a rejected Promise instead.")}}}})},[e,r,t]);return n},EY=function(){var e=Ea(),t=Qe.useRef(!1),r=Qe.useRef(e.isFetching()>0),n=Qe.useRef(e.isMutating()>0),a=Qe.useState(r.current||n.current),o=a[0],i=a[1];return Qe.useEffect(function(){t.current=!0;var u=e.getQueryCache().subscribe(Cn.batchCalls(function(){t.current&&(r.current=e.isFetching()>0,i(r.current||n.current))})),d=e.getMutationCache().subscribe(Cn.batchCalls(function(){t.current&&(n.current=e.isMutating()>0,i(r.current||n.current))}));return function(){t.current=!1,u(),d()}},[e]),o},jl=function(){var e=Ea();return p.useCallback(function(){e.invalidateQueries()},[e])},ik=function(){return ik=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ik.apply(this,arguments)},OY=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Sz=function(e,t,r){var n=t.id,a=t.meta;r===void 0&&(r={});var o=co(),i=r.onError,u=i===void 0?mR:i,d=r.onSuccess,l=d===void 0?mR:d,h=r.onSettled,v=h===void 0?mR:h,y=r.enabled,b=OY(r,["onError","onSuccess","onSettled","enabled"]),_=fr(l),w=fr(u),S=fr(v),A=Tl(ik({queryKey:[e,"getOne",{id:String(n),meta:a}],queryFn:function(R){return n==null?Promise.reject("useGetOne: id cannot be null"):o.getOne(e,{id:n,meta:a,signal:o.supportAbortSignal===!0?R.signal:void 0}).then(function(C){var O=C.data;return O})},enabled:y??n!=null},b));return p.useEffect(function(){A.data===void 0||A.error!=null||A.isFetching||_(A.data)},[_,A.data,A.error,A.isFetching]),p.useEffect(function(){A.error==null||A.isFetching||w(A.error)},[w,A.error,A.isFetching]),p.useEffect(function(){A.status==="pending"||A.isFetching||S(A.data,A.error)},[S,A.data,A.error,A.status,A.isFetching]),A},mR=function(){},yy=function(){return yy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},yy.apply(this,arguments)},PY=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},RY=100,kY=function(e,t,r){t===void 0&&(t={}),r===void 0&&(r={});var n=t.pagination,a=n===void 0?{page:1,perPage:25}:n,o=t.sort,i=o===void 0?{field:"id",order:"DESC"}:o,u=t.filter,d=u===void 0?{}:u,l=t.meta,h=co(),v=Ea(),y=r.onError,b=y===void 0?vR:y,_=r.onSuccess,w=_===void 0?vR:_,S=r.onSettled,A=S===void 0?vR:S,R=PY(r,["onError","onSuccess","onSettled"]),C=fr(w),O=fr(b),T=fr(A),E=Tl(yy({queryKey:[e,"getList",{pagination:a,sort:i,filter:d,meta:l}],queryFn:function(M){return h.getList(e,{pagination:a,sort:i,filter:d,meta:l,signal:h.supportAbortSignal===!0?M.signal:void 0}).then(function(k){var $=k.data,B=k.total,z=k.pageInfo,U=k.meta;return{data:$,total:B,pageInfo:z,meta:U}})}},R)),L=p.useRef(l),j=p.useRef(e);return p.useEffect(function(){L.current=l},[l]),p.useEffect(function(){j.current=e},[e]),p.useEffect(function(){var M;E.data===void 0||E.error!=null||E.isFetching||(!((M=E.data)===null||M===void 0)&&M.data&&E.data.data.length<=RY&&E.data.data.forEach(function(k){v.setQueryData([j.current,"getOne",{id:String(k.id),meta:L.current}],function($){return $??k})}),C(E.data))},[C,v,E.data,E.error,E.isFetching]),p.useEffect(function(){E.error==null||E.isFetching||O(E.error)},[O,E.error,E.isFetching]),p.useEffect(function(){E.status==="pending"||E.isFetching||T(E.data,E.error)},[T,E.data,E.error,E.status,E.isFetching]),p.useMemo(function(){return E.data?yy(yy({},E),E.data):E},[E])},vR=function(){},gR,ID;function TY(){if(ID)return gR;ID=1;var e=iv(),t=hx(),r=Il(),n=e?e.isConcatSpreadable:void 0;function a(o){return r(o)||t(o)||!!(n&&o&&o[n])}return gR=a,gR}var yR,jD;function tI(){if(jD)return yR;jD=1;var e=$A(),t=TY();function r(n,a,o,i,u){var d=-1,l=n.length;for(o||(o=t),u||(u=[]);++d<l;){var h=n[d];a>0&&o(h)?a>1?r(h,a-1,o,i,u):e(u,h):i||(u[u.length]=h)}return u}return yR=r,yR}var bR,MD;function AY(){if(MD)return bR;MD=1;function e(t,r,n,a){for(var o=t.length,i=n+(a?1:-1);a?i--:++i<o;)if(r(t[i],i,t))return i;return-1}return bR=e,bR}var _R,FD;function IY(){if(FD)return _R;FD=1;function e(t){return t!==t}return _R=e,_R}var wR,LD;function jY(){if(LD)return wR;LD=1;function e(t,r,n){for(var a=n-1,o=t.length;++a<o;)if(t[a]===r)return a;return-1}return wR=e,wR}var xR,$D;function MY(){if($D)return xR;$D=1;var e=AY(),t=IY(),r=jY();function n(a,o,i){return o===o?r(a,o,i):e(a,t,i)}return xR=n,xR}var SR,DD;function Cz(){if(DD)return SR;DD=1;var e=MY();function t(r,n){var a=r==null?0:r.length;return!!a&&e(r,n,0)>-1}return SR=t,SR}var CR,ND;function Ez(){if(ND)return CR;ND=1;function e(t,r,n){for(var a=-1,o=t==null?0:t.length;++a<o;)if(n(r,t[a]))return!0;return!1}return CR=e,CR}var ER,BD;function FY(){if(BD)return ER;BD=1;function e(){}return ER=e,ER}var OR,zD;function LY(){if(zD)return OR;zD=1;var e=YB(),t=FY(),r=LA(),n=1/0,a=e&&1/r(new e([,-0]))[1]==n?function(o){return new e(o)}:t;return OR=a,OR}var PR,qD;function $Y(){if(qD)return PR;qD=1;var e=MA(),t=Cz(),r=Ez(),n=FA(),a=LY(),o=LA(),i=200;function u(d,l,h){var v=-1,y=t,b=d.length,_=!0,w=[],S=w;if(h)_=!1,y=r;else if(b>=i){var A=l?null:a(d);if(A)return o(A);_=!1,y=n,S=new e}else S=l?[]:w;e:for(;++v<b;){var R=d[v],C=l?l(R):R;if(R=h||R!==0?R:0,_&&C===C){for(var O=S.length;O--;)if(S[O]===C)continue e;l&&S.push(C),w.push(R)}else y(S,C,h)||(S!==w&&S.push(C),w.push(R))}return w}return PR=u,PR}var RR,UD;function DY(){if(UD)return RR;UD=1;var e=tI(),t=bx(),r=$Y(),n=GA(),a=t(function(o){return r(e(o,1,n,!0))});return RR=a,RR}var NY=DY();const Oz=Nn(NY);var sk=function(){return sk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},sk.apply(this,arguments)},BY=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},zY=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},qY=function(e,t,r){r===void 0&&(r={});var n=co(),a=Ea(),o=r.onError,i=o===void 0?kR:o,u=r.onSuccess,d=u===void 0?kR:u,l=r.onSettled,h=l===void 0?kR:l,v=r.enabled,y=BY(r,["onError","onSuccess","onSettled","enabled"]),b=fr(d),_=fr(i),w=fr(h),S=t.ids,A=t.meta,R=p.useMemo(function(){var E=(Array.isArray(S)?S:[S]).map(function(L){return a.getQueryData([e,"getOne",{id:String(L),meta:A}])});if(!E.some(function(L){return L===void 0}))return E},[S,a,e,A]),C=Tl(sk({queryKey:[e,"getMany",{ids:(Array.isArray(S)?S:[S]).map(function(E){return String(E)}),meta:A}],queryFn:function(E){return new Promise(function(L,j){return!S||S.length===0?L([]):VY({resource:e,ids:S,meta:A,resolve:L,reject:j,dataProvider:n,queryClient:a,signal:n.supportAbortSignal===!0?E.signal:void 0})})},placeholderData:R,enabled:v??S!=null,retry:!1},y)),O=p.useRef(A),T=p.useRef(e);return p.useEffect(function(){O.current=A},[A]),p.useEffect(function(){T.current=e},[e]),p.useEffect(function(){var E;C.data===void 0||C.error!=null||C.isFetching||(((E=C.data)!==null&&E!==void 0?E:[]).forEach(function(L){a.setQueryData([T.current,"getOne",{id:String(L.id),meta:O.current}],function(j){return j??L})}),b(C.data))},[a,b,C.data,C.error,C.isFetching]),p.useEffect(function(){C.error==null||C.isFetching||_(C.error)},[_,C.error,C.isFetching]),p.useEffect(function(){C.status==="pending"||C.isFetching||w(C.data,C.error)},[w,C.data,C.error,C.status,C.isFetching]),C},UY=function(e){var t=[],r=null;return function(n){t.push(n),r&&clearTimeout(r),r=setTimeout(function(){r=null,e(zY([],t,!0)),t=[]},0)}},VY=UY(function(e){var t=e[0].dataProvider,r=e[0].queryClient,n=e.reduce(function(a,o){return a[o.resource]||(a[o.resource]=[]),a[o.resource].push(o),a},{});Object.keys(n).forEach(function(a){var o=n[a],i=o.reduce(function(_,w){var S=w.ids;return Oz(_,S)},[]).filter(function(_){return _!=null&&_!==""}),u=o.reduce(function(_,w){var S=w.meta;return S||_},void 0);if(i.length===0){o.forEach(function(_){var w=_.resolve;w([])});return}var d=o.find(function(_){var w=_.ids,S=_.signal;return JSON.stringify(w)===JSON.stringify(i)&&!(S!=null&&S.aborted)});if(d){var l=d.dataProvider,h=d.resource,v=d.ids,y=d.meta,b=d.signal;l.getMany(h,{ids:v,meta:y,signal:b}).then(function(_){var w=_.data;return w}).then(function(_){o.forEach(function(w){var S=w.ids,A=w.resolve;A(_.filter(function(R){return S.map(function(C){return String(C)}).includes(String(R.id))}))})},function(_){o.forEach(function(w){var S=w.reject;S(_)})});return}r.fetchQuery({queryKey:[a,"getMany",{ids:i.map(function(_){return String(_)}),meta:u}],queryFn:function(_){return t.getMany(a,{ids:i,meta:u,signal:t.supportAbortSignal===!0?_.signal:void 0}).then(function(w){var S=w.data;return S})}}).then(function(_){o.forEach(function(w){var S=w.ids,A=w.resolve;A(_.filter(function(R){return S.map(function(C){return String(C)}).includes(String(R.id))}))})}).catch(function(_){return o.forEach(function(w){var S=w.reject;return S(_)})})})}),kR=function(){},by=function(){return by=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},by.apply(this,arguments)},WY=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},HY=function(e,t,r){t===void 0&&(t={}),r===void 0&&(r={});var n=t.target,a=t.id,o=t.pagination,i=o===void 0?{page:1,perPage:25}:o,u=t.sort,d=u===void 0?{field:"id",order:"DESC"}:u,l=t.filter,h=l===void 0?{}:l,v=t.meta,y=co(),b=Ea(),_=r.onError,w=_===void 0?TR:_,S=r.onSuccess,A=S===void 0?TR:S,R=r.onSettled,C=R===void 0?TR:R,O=WY(r,["onError","onSuccess","onSettled"]),T=fr(A),E=fr(w),L=fr(C),j=Tl(by({queryKey:[e,"getManyReference",{target:n,id:a,pagination:i,sort:d,filter:h,meta:v}],queryFn:function(M){return!n||a==null?Promise.reject(new Error("target and id are required")):y.getManyReference(e,{target:n,id:a,pagination:i,sort:d,filter:h,meta:v,signal:y.supportAbortSignal===!0?M.signal:void 0}).then(function(k){var $=k.data,B=k.total,z=k.pageInfo,U=k.meta;return{data:$,total:B,pageInfo:z,meta:U}})}},O));return p.useEffect(function(){var M,k;j.data!==void 0&&((k=(M=j.data)===null||M===void 0?void 0:M.data)===null||k===void 0||k.forEach(function($){b.setQueryData([e,"getOne",{id:String($.id),meta:v}],function(B){return B??$})}),T(j.data))},[b,v,T,e,j.data]),p.useEffect(function(){j.error!=null&&E(j.error)},[E,j.error]),p.useEffect(function(){j.status!=="pending"&&L(j.data,j.error)},[L,j.data,j.error,j.status]),p.useMemo(function(){return j.data?by(by({},j),j.data):j},[j])},TR=function(){};function VD(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}var Pz=function(e,t){if(VD(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var a=0;a<r.length;a++)if(!Object.prototype.hasOwnProperty.call(t,r[a])||!VD(e[r[a]],t[r[a]]))return!1;return!0},L1=function(){return L1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},L1.apply(this,arguments)},KY=function(e){return e&&Object.prototype.toString.call(e)==="[object Object]"},GY=function(e){return e instanceof Date?!1:e===""||e===null||e===void 0||Pz(e,{})},sd=function(e){return Object.keys(e).reduce(function(t,r){var n,a=e[r];return KY(e[r])&&(a=sd(e[r])),GY(a)?t:L1(L1({},t),(n={},n[r]=a,n))},{})},WD=function(e,t){return Object.keys(e).reduce(function(r,n){var a;return n!==t?Object.assign({},r,(a={},a[n]=e[n],a)):r},{})},Rz=function(e,t){var r,n=t.split(".");if(n.length===1)return WD(e,t);var a=n[0];if(e[a]===void 0)return e;var o=Rz(e[a],n.slice(1).join("."));return Object.keys(o).length===0?WD(e,a):Object.assign({},e,(r={},r[a]=o,r))},In=function(){return In=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},In.apply(this,arguments)},kz="SET_SORT",tp="ASC",lk="DESC",uk="SET_PAGE",Tz="SET_PER_PAGE",ck="SET_FILTER",Az="SHOW_FILTER",Iz="HIDE_FILTER",QY=function(e){return e===lk?tp:lk},HD=function(e,t){var r,n;switch(t.type){case kz:return t.payload.field===e.sort?In(In({},e),{order:(n=t.payload.order)!==null&&n!==void 0?n:QY(e.order),page:1}):In(In({},e),{sort:t.payload.field,order:t.payload.order||tp,page:1});case uk:return In(In({},e),{page:t.payload});case Tz:return In(In({},e),{page:1,perPage:t.payload});case ck:return In(In({},e),{page:1,filter:t.payload.filter,displayedFilters:t.payload.displayedFilters?t.payload.displayedFilters:e.displayedFilters});case Az:return e.displayedFilters&&e.displayedFilters[t.payload.filterName]?e:In(In({},e),{filter:typeof t.payload.defaultValue<"u"?fx(e.filter,t.payload.filterName,t.payload.defaultValue):e.filter,displayedFilters:In(In({},e.displayedFilters),(r={},r[t.payload.filterName]=!0,r))});case Iz:return In(In({},e),{filter:sd(Rz(e.filter,t.payload)),displayedFilters:e.displayedFilters?Object.keys(e.displayedFilters).reduce(function(a,o){var i;return o!==t.payload?In(In({},a),(i={},i[o]=!0,i)):a},{}):e.displayedFilters});default:return e}},XY=function(e,t){switch(t.type){case"SET_SORT":return t.payload;case"SET_SORT_FIELD":{var r=t.payload,n=e.field===r&&e.order===tp?lk:tp;return{field:r,order:n}}case"SET_SORT_ORDER":{var n=t.payload;if(!e.field)throw new Error("cannot change the order on an undefined sort field");return{field:e.field,order:n}}default:return e}},YY={field:"",order:"ASC"},jz=function(e){e===void 0&&(e=YY);var t=p.useReducer(XY,e),r=t[0],n=t[1],a=p.useRef(!0);return p.useEffect(function(){if(a.current){a.current=!1;return}n({type:"SET_SORT",payload:e})},[e.field,e.order]),{setSort:p.useCallback(function(o){return n({type:"SET_SORT",payload:o})},[n]),setSortField:p.useCallback(function(o){return n({type:"SET_SORT_FIELD",payload:o})},[n]),setSortOrder:p.useCallback(function(o){return n({type:"SET_SORT_ORDER",payload:o})},[n]),sort:r}},Vm=function(){return Vm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Vm.apply(this,arguments)},JY=function(e,t){return Vm(Vm({},e),t)},ZY={page:1,perPage:25};const Mz=function(e){e===void 0&&(e={});var t=p.useReducer(JY,Vm(Vm({},ZY),e)),r=t[0],n=t[1],a=p.useRef(!0),o=p.useCallback(function(u){return n({perPage:u,page:1})},[]),i=p.useCallback(function(u){return n({page:u})},[]);return p.useEffect(function(){if(a.current){a.current=!1;return}o(e.perPage||25)},[e.perPage,o]),{page:r.page,perPage:r.perPage,pagination:r,setPage:i,setPerPage:o,setPagination:n}};var Fz=function(e,t,r){var n=Object.keys(r),a=t.filter(function(o){return!n.includes(o)});if(a.length>0)throw new Error("<".concat(e,`> component is not properly configured, some essential props are missing.
Be sure to pass the props from the parent. Example:
const My`).concat(e,` = props => (
<`).concat(e," {...props}></").concat(e,`>
);
The missing props are: `).concat(a.join(", ")))},dk=function(){return dk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},dk.apply(this,arguments)},eJ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tJ=function(e){var t=e.record,r=e.redirect,n=r===void 0?"list":r,a=e.onClick,o=e.mutationOptions,i=o===void 0?{}:o,u=e.successMessage,d=i.meta,l=eJ(i,["meta"]),h=er(e),v=Ur(),y=Hz(h),b=dv(),_=nt(),w=Wb(h,void 0,{onSuccess:function(){v(u??"resources.".concat(h,".notifications.deleted"),{type:"info",messageArgs:{smart_count:1,_:_("ra.notification.deleted",{smart_count:1})},undoable:!0}),t&&y([t.id]),b(n,h)},onError:function(C){v(typeof C=="string"?C:(C==null?void 0:C.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof C=="string"?C:C!=null&&C.message?C.message:void 0}})}}),S=w[0],A=w[1].isPending,R=p.useCallback(function(C){if(C.stopPropagation(),!t)throw new Error("The record cannot be deleted because no record has been passed");S(h,{id:t.id,previousData:t,meta:d},dk({mutationMode:"undoable"},l)),typeof a=="function"&&a(C)},[S,d,l,a,t,h]);return{isPending:A,isLoading:A,handleDelete:R}},fk=function(){return fk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},fk.apply(this,arguments)},rJ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},nJ=function(e){var t=e.record,r=e.redirect,n=r===void 0?"list":r,a=e.mutationMode,o=e.onClick,i=e.mutationOptions,u=i===void 0?{}:i,d=e.successMessage,l=u.meta,h=rJ(u,["meta"]),v=er(e),y=p.useState(!1),b=y[0],_=y[1],w=Ur(),S=Hz(v),A=dv(),R=nt(),C=Wb(v,void 0,{onSuccess:function(){_(!1),w(d??"resources.".concat(v,".notifications.deleted"),{type:"info",messageArgs:{smart_count:1,_:R("ra.notification.deleted",{smart_count:1})},undoable:a==="undoable"}),t&&S([t.id]),A(n,v)},onError:function(M){_(!1),w(typeof M=="string"?M:(M==null?void 0:M.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof M=="string"?M:M!=null&&M.message?M.message:void 0}})}}),O=C[0],T=C[1].isPending,E=function(M){_(!0),M.stopPropagation()},L=function(M){_(!1),M.stopPropagation()},j=p.useCallback(function(M){if(M.stopPropagation(),!t)throw new Error("The record cannot be deleted because no record has been passed");O(v,{id:t.id,previousData:t,meta:l},fk({mutationMode:a},h)),typeof o=="function"&&o(M)},[O,l,a,h,o,t,v]);return{open:b,isPending:T,isLoading:T,handleDialogOpen:E,handleDialogClose:L,handleDelete:j}},Lz=p.createContext({}),$z=function(e){var t=e.children,r=e.value;return p.createElement(Lz.Provider,{value:r},t)},AR,KD;function aJ(){if(KD)return AR;KD=1;var e=IA(),t=zB(),r=Db();function n(a,o,i){for(var u=-1,d=o.length,l={};++u<d;){var h=o[u],v=e(a,h);i(v,h)&&t(l,r(h,a),v)}return l}return AR=n,AR}var IR,GD;function oJ(){if(GD)return IR;GD=1;function e(t,r){return t!=null&&r in Object(t)}return IR=e,IR}var jR,QD;function iJ(){if(QD)return jR;QD=1;var e=Db(),t=hx(),r=Il(),n=cx(),a=NA(),o=dx();function i(u,d,l){d=e(d,u);for(var h=-1,v=d.length,y=!1;++h<v;){var b=o(d[h]);if(!(y=u!=null&&l(u,b)))break;u=u[b]}return y||++h!=v?y:(v=u==null?0:u.length,!!v&&a(v)&&n(b,v)&&(r(u)||t(u)))}return jR=i,jR}var MR,XD;function sJ(){if(XD)return MR;XD=1;var e=oJ(),t=iJ();function r(n,a){return n!=null&&t(n,a,e)}return MR=r,MR}var FR,YD;function lJ(){if(YD)return FR;YD=1;var e=aJ(),t=sJ();function r(n,a){return e(n,a,function(o,i){return t(n,i)})}return FR=r,FR}var LR,JD;function uJ(){if(JD)return LR;JD=1;var e=tI();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return LR=t,LR}var $R,ZD;function cJ(){if(ZD)return $R;ZD=1;var e=uJ(),t=uz(),r=cz();function n(a){return r(t(a,void 0,e),a+"")}return $R=n,$R}var DR,eN;function dJ(){if(eN)return DR;eN=1;var e=lJ(),t=cJ(),r=t(function(n,a){return n==null?{}:e(n,a)});return DR=r,DR}var fJ=dJ();const xx=Nn(fJ);var Dz=function(e){var t=p.useMemo(function(){return xx(e,["save","saving","mutationMode","registerMutationMiddleware","unregisterMutationMiddleware"])},[e.save,e.saving,e.mutationMode,e.registerMutationMiddleware,e.unregisterMutationMiddleware]);return t},rI=function(e){return p.useContext(Lz)},Hg=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Nz=function(){var e=p.useRef([]),t=p.useCallback(function(o){e.current.push(o)},[]),r=p.useCallback(function(o){e.current=e.current.filter(function(i){return i!==o})},[]),n=p.useCallback(function(o){var i=Hg([],e.current,!0);return function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];var l=i.length-1,h=function(){for(var v=[],y=0;y<arguments.length;y++)v[y]=arguments[y];return l--,l>=0?i[l].apply(i,Hg(Hg([],v,!1),[h],!1)):o.apply(void 0,v)};return i.length>0?i[l].apply(i,Hg(Hg([],u,!1),[h],!1)):o.apply(void 0,u)}},[]),a=p.useMemo(function(){return{registerMutationMiddleware:t,getMutateWithMiddlewares:n,unregisterMutationMiddleware:r}},[t,n,r]);return a},$1=function(){return $1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},$1.apply(this,arguments)},tN=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},rN=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},pJ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},hJ=function(e){e===void 0&&(e={});var t=e.disableAuthentication,r=e.record,n=e.redirect,a=e.transform,o=e.mutationMode,i=o===void 0?"pessimistic":o,u=e.mutationOptions,d=u===void 0?{}:u,l=er(e);if(!l)throw new Error("useCreateController requires a non-empty resource prop or context");var h=fp({enabled:!t}).isPending,v=Mx({action:"create",resource:l,enabled:!t&&!h}).isPending,y=Ml(e),b=y.hasEdit,_=y.hasShow,w=n??mJ(_,b),S=nt(),A=Ur(),R=dv(),C=d.onSuccess,O=d.onError,T=d.meta,E=pJ(d,["onSuccess","onError","meta"]),L=Nz(),j=L.registerMutationMiddleware,M=L.getMutateWithMiddlewares,k=L.unregisterMutationMiddleware,$=Vb(l,void 0,$1($1({onSuccess:function(V,K,X){return tN(void 0,void 0,void 0,function(){return rN(this,function(te){return C?[2,C(V,K,X)]:(A("resources.".concat(l,".notifications.created"),{type:"info",messageArgs:{smart_count:1,_:S("ra.notification.created",{smart_count:1})},undoable:i==="undoable"}),R(w,l,V.id,V),[2])})})},onError:function(V,K,X){var te;if(O)return O(V,K,X);var G=(te=V==null?void 0:V.body)===null||te===void 0?void 0:te.errors,J=!!G&&Object.keys(G).length>0;(!J||i!=="pessimistic")&&A(typeof V=="string"?V:V.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof V=="string"?V:V instanceof Error||typeof V=="object"&&V!==null&&V.hasOwnProperty("message")?V.message:void 0}})}},E),{mutationMode:i,returnPromise:i==="pessimistic",getMutateWithMiddlewares:M})),B=$[0],z=$[1].isPending,U=p.useCallback(function(V,K){var X=K===void 0?{}:K,te=X.onSuccess,G=X.onError,J=X.transform,de=X.meta;return Promise.resolve(J?J(V):a?a(V):V).then(function(ce){return tN(void 0,void 0,void 0,function(){var ue,be;return rN(this,function(Pe){switch(Pe.label){case 0:return Pe.trys.push([0,2,,3]),[4,B(l,{data:ce,meta:de??T},{onError:G,onSuccess:te})];case 1:return Pe.sent(),[3,3];case 2:return ue=Pe.sent(),(ue instanceof _z||typeof ue=="object"&&ue!==null&&ue.hasOwnProperty("body"))&&((be=ue.body)===null||be===void 0?void 0:be.errors)!=null?[2,ue.body.errors]:[3,3];case 3:return[2]}})})})},[B,T,l,a]),W=dp(),Q=S("ra.page.create",{name:W(l,1)});return{isFetching:!1,isLoading:!1,isPending:t?!1:v,mutationMode:i,saving:z,defaultTitle:Q,save:U,record:r,resource:l,redirect:w,registerMutationMiddleware:j,unregisterMutationMiddleware:k}},mJ=function(e,t){return t?"edit":e?"show":"list"},nI=p.createContext(null);nI.displayName="CreateContext";var D1=function(){return D1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},D1.apply(this,arguments)},vJ=function(e){var t=e.children,r=e.value;return p.createElement(nI.Provider,{value:r},p.createElement($z,{value:D1(D1({},Dz(r)),{mutationMode:"pessimistic"})},p.createElement(hd,{value:r&&r.record},t)))},gJ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},yJ=function(e){var t=e.children,r=e.loading,n=r===void 0?null:r,a=gJ(e,["children","loading"]),o=hJ(a),i=jx({resource:o.resource,action:"create"});return i&&!a.disableAuthentication?n:p.createElement(pv,{value:a.resource},p.createElement(vJ,{value:o},t))},bJ=function(){var e=p.useContext(nI);if(!e)throw new Error("useCreateContext must be used inside a CreateContextProvider");return e},_y=function(){return _y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},_y.apply(this,arguments)},nN=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},aN=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},oN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},_J=function(e){e===void 0&&(e={});var t=e.disableAuthentication,r=t===void 0?!1:t,n=e.id,a=e.mutationMode,o=a===void 0?"undoable":a,i=e.mutationOptions,u=i===void 0?{}:i,d=e.queryOptions,l=d===void 0?{}:d,h=e.redirect,v=h===void 0?wJ:h,y=e.transform,b=er(e);if(!b)throw new Error("useEditController requires a non-empty resource prop or context");var _=fp({enabled:!r}).isPending,w=Mx({action:"edit",resource:b,enabled:!r&&!_}).isPending,S=Hb(b),A=nt(),R=Ur(),C=dv(),O=jl(),T=Lb().id;if(!T&&!n)throw new Error("useEditController requires an id prop or a route with an /:id? parameter.");var E=n??T,L=l.meta,j=oN(l,["meta"]),M=u.meta,k=u.onSuccess,$=u.onError,B=oN(u,["meta","onSuccess","onError"]),z=Nz(),U=z.registerMutationMiddleware,W=z.getMutateWithMiddlewares,Q=z.unregisterMutationMiddleware,V=Sz(b,{id:E,meta:L},_y({enabled:!_&&!w||r,onError:function(){R("ra.notification.item_doesnt_exist",{type:"error"}),C("list",b),O()},refetchOnReconnect:!1,refetchOnWindowFocus:!1,retry:!1},j)),K=V.data,X=V.error,te=V.isLoading,G=V.isFetching,J=V.isPending,de=V.refetch;if(K&&K.id&&K.id!=E)throw new Error("useEditController: Fetched record's id attribute (".concat(K.id,") must match the requested 'id' (").concat(E,")"));var ce=dp(),ue=S(K),be=A("ra.page.edit",{name:ce(b,1),id:E,record:K,recordRepresentation:typeof ue=="string"?ue:""}),Pe={id:E,previousData:K},Ee=zee(b,Pe,_y(_y({onSuccess:function(Te,Me,Fe){return nN(void 0,void 0,void 0,function(){return aN(this,function($e){return k?[2,k(Te,Me,Fe)]:(R("resources.".concat(b,".notifications.updated"),{type:"info",messageArgs:{smart_count:1,_:A("ra.notification.updated",{smart_count:1})},undoable:o==="undoable"}),C(v,b,Te.id,Te),[2])})})},onError:function(Te,Me,Fe){var $e;if($)return $(Te,Me,Fe);var et=($e=Te==null?void 0:Te.body)===null||$e===void 0?void 0:$e.errors,qe=!!et&&Object.keys(et).length>0;(!qe||o!=="pessimistic")&&R(typeof Te=="string"?Te:Te.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof Te=="string"?Te:Te instanceof Error||typeof Te=="object"&&Te!==null&&Te.hasOwnProperty("message")?Te.message:void 0}})}},B),{mutationMode:o,returnPromise:o==="pessimistic",getMutateWithMiddlewares:W})),ge=Ee[0],xe=Ee[1].isPending,Oe=p.useCallback(function(Te,Me){var Fe=Me===void 0?{}:Me,$e=Fe.onSuccess,et=Fe.onError,qe=Fe.transform,re=Fe.meta;return Promise.resolve(qe?qe(Te,{previousData:Pe.previousData}):y?y(Te,{previousData:Pe.previousData}):Te).then(function(oe){return nN(void 0,void 0,void 0,function(){var pe,Se;return aN(this,function(ne){switch(ne.label){case 0:return ne.trys.push([0,2,,3]),[4,ge(b,{id:E,data:oe,meta:re??M},{onError:et,onSuccess:$e})];case 1:return ne.sent(),[3,3];case 2:return pe=ne.sent(),((Se=pe.body)===null||Se===void 0?void 0:Se.errors)!=null?[2,pe.body.errors]:[3,3];case 3:return[2]}})})})},[E,M,b,y,ge,Pe.previousData]);return{defaultTitle:be,error:X,isFetching:G,isLoading:te,isPending:J,mutationMode:o,record:K,redirect:v,refetch:de,registerMutationMiddleware:U,resource:b,save:Oe,saving:xe,unregisterMutationMiddleware:Q}},wJ="list",Bz=function(e){var t=e.value,r=e.children;return t?p.createElement(hd,{value:t},r):r},aI=p.createContext(null);aI.displayName="EditContext";var xJ=function(e){var t=e.children,r=e.value;return p.createElement(aI.Provider,{value:r},p.createElement($z,{value:Dz(r)},p.createElement(hd,{value:r&&r.record},t)))},SJ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},CJ=function(e){var t=e.children,r=e.loading,n=r===void 0?null:r,a=SJ(e,["children","loading"]),o=_J(a),i=jx({resource:o.resource,action:"edit"});return i&&!a.disableAuthentication?n:p.createElement(pv,{value:a.resource},p.createElement(xJ,{value:o},t))},EJ=function(){var e=p.useContext(aI);if(!e)throw new Error("useEditContext must be used inside an EditContextProvider");return e},zz=p.createContext(null),OJ=zz.Provider,PJ=function(){var e=p.useContext(zz);if(!e)throw new Error("useReferenceFieldContext must be used inside a ReferenceFieldContextProvider");return e},RJ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},kJ=function(e){var t=e.reference,r=e.id,n=e.options,a=n===void 0?{}:n,o=a.meta,i=RJ(a,["meta"]),u=qY(t,{ids:[r],meta:o},i),d=u.data,l=u.error,h=u.isLoading,v=u.isFetching,y=u.isPending,b=u.refetch;return{referenceRecord:l?void 0:d?d[0]:void 0,refetch:b,error:l,isLoading:h,isFetching:v,isPending:y}},Yh=function(){return Yh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Yh.apply(this,arguments)},TJ=function(e){var t=e.link,r=e.reference,n=e.queryOptions;if(!r)throw new Error('useReferenceFieldController: missing reference prop. You must provide a reference, e.g. reference="posts".');var a=yd(e),o=kJ({reference:r,id:a,options:Yh(Yh({},n),{enabled:((n==null?void 0:n.enabled)==null||(n==null?void 0:n.enabled)===!0)&&a!=null})}),i=DX({record:o.referenceRecord,resource:r,link:t}),u=p.useMemo(function(){return Yh(Yh({},o),{link:i})},[i,o]);return u},AJ=function(e){var t=e.children,r=TJ(e);return p.createElement(Tx,{value:e.reference},p.createElement(OJ,{value:r},p.createElement(hd,{value:r.referenceRecord},t)))},NR,iN;function qz(){return iN||(iN=1,NR=`
`),NR}var fu={},sN;function Sx(){return sN||(sN=1,fu.isFunction=function(e){var t={};return e&&t.toString.call(e)==="[object Function]"},fu.isArray=function(e){return Array.isArray(e)},fu.isObject=function(e){return e instanceof Object},fu.isString=function(e){return typeof e=="string"},fu.isNumber=function(e){return typeof e=="number"},fu.isBoolean=function(e){return typeof e=="boolean"},fu.isDate=function(e){return e instanceof Date}),fu}var BR,lN;function IJ(){if(lN)return BR;lN=1;var e=qz(),t=Sx();return BR=function(n,a){if(!n||!t.isArray(n))throw new TypeError('Invalid params "rows" for joinRows. Must be an array of string.');var o=n.join(a||e||`
`);return o},BR}var zR,uN;function jJ(){if(uN)return zR;uN=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},t=function(){function u(d,l){for(var h=0;h<l.length;h++){var v=l[h];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(d,v.key,v)}}return function(d,l,h){return l&&u(d.prototype,l),h&&u(d,h),d}}();function r(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}var n=Sx(),a=function(){function u(d){r(this,u),this._options=d,this._options.typeHandlers=this._options.typeHandlers||{}}return t(u,[{key:"_setHeaders",value:function(l,h){var v=this;return h?l.map(function(y){return y.item=y.item?h+v._options.headerPathString+y.item:h,y}):l}},{key:"castValue",value:function(l,h,v,y){var b=this._options.typeHandlers;for(var _ in b)if(i(l,_)){l=b[_].call(b,l,v,y);break}return l}},{key:"checkComplex",value:function(l,h){if(n.isDate(l))return[{item:h,value:(this._options.handleDate||this._handleDate)(l,h)}];if(n.isArray(l)){var v=this._handleArray(l,h);return this._setHeaders(v,h)}else if(n.isObject(l)){var y=this._handleObject(l);return this._setHeaders(y,h)}return[{item:h,value:""}]}},{key:"check",value:function(l,h,v,y){switch(l=this.castValue(l,h,v,y),typeof l>"u"?"undefined":e(l)){case"string":return[{item:h,value:this._handleString(l,h)}];case"number":return[{item:h,value:this._handleNumber(l,h)}];case"boolean":return[{item:h,value:this._handleBoolean.bind(this)(l,h)}]}return this.checkComplex(l,h)}},{key:"_handleObject",value:function(l){var h=[];for(var v in l){var y=l[v],b=this.check(y,v,v,l);h=h.concat(b)}return h}},{key:"_handleArray",value:function(l){for(var h=this,v=[],y,b=0;b<l.length;++b){var _=l[b],w=h.check(_,null,b,l);if(w.length!==0){var S=w[0];if(!S.item&&y!==void 0){y.value+=h._options.arrayPathString+S.value;continue}else w.length>0&&!S.item&&y===void 0&&(y=S);v=v.concat(w)}}return v}},{key:"_handleBoolean",value:function(l){var h;return l?h=this._options.booleanTrueString||"true":h=this._options.booleanFalseString||"false",h}},{key:"_handleString",value:function(l){return l}},{key:"_handleNumber",value:function(l){return l}},{key:"_handleDate",value:function(l){return l.toLocaleDateString()}}]),u}();zR=a;var o=typeof window>"u"?Ou:window;function i(u,d){if(u instanceof o[d])return!0;switch(typeof u>"u"?"undefined":e(u)){case"string":return d==="String";case"boolean":return d==="Boolean";case"number":return d==="Number"}return!1}return zR}var qR,cN;function MJ(){return cN||(cN=1,qR=function(t,r,n){var a=`
`;if(typeof t!="string")throw new TypeError('Invalid param "textDelimiter", must be a string.');if(typeof r!="string")throw new TypeError('Invalid param "rowDelimiter", must be a string.');var o=new RegExp("\\"+t,"g"),i=t+t,u=t==='"'?function(d){return d.indexOf(r)>=0||d.indexOf(a)>=0||d.indexOf('"')>=0}:function(d){return d.indexOf(r)>=0||d.indexOf(a)>=0};return function(d){return n&&(d=""+d),d.replace&&(d=d.replace(o,i),(n||u(d))&&(d=t+d+t)),d}}),qR}var UR,dN;function FJ(){if(dN)return UR;dN=1;var e=function(){function i(u,d){for(var l=0;l<d.length;l++){var h=d[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(u,h.key,h)}}return function(u,d,l){return d&&i(u.prototype,d),l&&i(u,l),u}}();function t(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")}var r=IJ(),n=jJ(),a=Sx(),o=function(){function i(u){t(this,i),this._options=u||{},this._handler=new n(this._options),this._headers=this._options.headers||[],this._escape=MJ()(this._options.textDelimiter,this._options.rowDelimiter,this._options.forceTextDelimiter)}return e(i,[{key:"parse",value:function(d,l,h){return a.isArray(d)?l(null,this._parseArray(d,h)):a.isObject(d)?l(null,this._parseObject(d)):l(new Error("Unable to parse the JSON object, its not an Array or Object."))}},{key:"_checkRows",value:function(d){var l=null,h=[],v=function(O,T){return O===""||O===void 0?l[T]:O},y=!0,b=!1,_=void 0;try{for(var w=d[Symbol.iterator](),S;!(y=(S=w.next()).done);y=!0){var A=S.value,R=this._headers.length-A.length;R>0&&(A=A.concat(Array(R).join(".").split("."))),l&&this._options.fillGaps&&(A=A.map(v)),h.push(A.join(this._options.rowDelimiter)),l=A}}catch(C){b=!0,_=C}finally{try{!y&&w.return&&w.return()}finally{if(b)throw _}}return h}},{key:"_parseArray",value:function(d,l){var h=this;this._headers=this._headers||[];var v=[],y=void 0,b=function(E){var L=h._headers.indexOf(E);return L===-1&&(h._headers.push(E),L=h._headers.indexOf(E)),L};y=function(E){var L=[],j=function(te){return L.push(te.map(function(G){return G??""}))},M=function(){return new Array(h._headers.length).fill(null)},k={},$=M(),B=!0,z=!1,U=void 0;try{for(var W=E[Symbol.iterator](),Q;!(B=(Q=W.next()).done);B=!0){var V=Q.value,K=b(V.item);if($[K]!=null&&(j($),$=M()),k[K]=k[K]||0,h._options.fillTopRow&&k[K]<L.length){L[k[K]][K]=h._escape(V.value),k[K]+=1;continue}$[K]=h._escape(V.value),k[K]+=1}}catch(X){z=!0,U=X}finally{try{!B&&W.return&&W.return()}finally{if(z)throw U}}$.length>0&&j($),v=v.concat(h._checkRows(L))};var _=!0,w=!1,S=void 0;try{for(var A=d[Symbol.iterator](),R;!(_=(R=A.next()).done);_=!0){var C=R.value,O=h._handler.check(C,h._options.mainPathItem,C,d);y(O)}}catch(T){w=!0,S=T}finally{try{!_&&A.return&&A.return()}finally{if(w)throw S}}return!l&&h._options.includeHeaders&&v.unshift(this.headers),r(v,h._options.endOfLine)}},{key:"_parseObject",value:function(d){var l=this,h=[],v=[],y=void 0,b=[[],[]];y=function(A){var R=A.value||A.value===0?A.value.toString():l._options.undefinedString;if(R=l._escape(R),l._options.verticalOutput){var C=[A.item,R];h.push(C.join(l._options.rowDelimiter))}else b[0].push(A.item),b[1].push(R)};for(var _ in d){var w="";this._options.mainPathItem&&(w=this._options.mainPathItem+this._options.headerPathString),v=this._handler.check(d[_],w+_,_,d),v.forEach(y)}return this._options.verticalOutput||(h.push(b[0].join(this._options.rowDelimiter)),h.push(b[1].join(this._options.rowDelimiter))),r(h,this._options.endOfLine)}},{key:"headers",get:function(){var d=this,l=this._headers;return this._options.rename&&this._options.rename.length>0&&(l=l.map(function(h){return d._options.rename[d._options.headers.indexOf(h)]||h})),this._options.forceTextDelimiter&&(l=l.map(function(h){return""+d._options.textDelimiter+h+d._options.textDelimiter})),this._options.mapHeaders&&(l=l.map(this._options.mapHeaders)),l.join(this._options.rowDelimiter)}}]),i}();return UR=o,UR}var VR,fN;function LJ(){if(fN)return VR;fN=1;var e=function(t){throw new Error("jsonexport called without third argument as a callback and is required")};return VR=e,VR}var WR,pN;function $J(){if(pN)return WR;pN=1;var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t=FJ(),r=LJ();Sx();var n=qz();return WR=function(){var a={headers:[],rename:[],headerPathString:".",rowDelimiter:",",textDelimiter:'"',arrayPathString:";",undefinedString:"",endOfLine:n||`
`,mainPathItem:null,booleanTrueString:null,booleanFalseString:null,includeHeaders:!0,fillGaps:!1,verticalOutput:!0,forceTextDelimiter:!1},o=void 0,i=void 0,u=void 0;if(arguments.length===3){var d=Array.prototype.slice.call(arguments);o=d[0],i=d[1],u=d[2]}else if(arguments.length===2){var l=void 0,h=Array.prototype.slice.call(arguments);o=h[0],l=h[1],typeof l=="function"?u=l:(typeof l>"u"?"undefined":e(l))==="object"&&(i=l)}else if(arguments.length===1){var v=Array.prototype.slice.call(arguments),y=v[0];if((typeof y>"u"?"undefined":e(y))==="object"){var b=Object.keys(a),_=Object.keys(y),w=_.every(function(R){return b.includes(R)});_.length>0&&w?i=y:o=y}else o=y}else return new r(new t(a));var S=Object.assign({},a,i),A=new t(S);return o?new Promise(function(R,C){A.parse(o,function(O,T){if(u)return u(O,T);if(O)return C(O);if(C)return R(T)})}):new r(A)},WR}var DJ=$J();const NJ=Nn(DJ);var BJ=function(e,t){t===void 0&&(t="export");var r=document.createElement("a");r.style.display="none",document.body.appendChild(r);var n=new Blob([e],{type:"text/csv;charset=utf-8"});window.navigator&&window.navigator.msSaveOrOpenBlob?window.navigator.msSaveOrOpenBlob(n,"".concat(t,".csv")):(r.setAttribute("href",URL.createObjectURL(n)),r.setAttribute("download","".concat(t,".csv")),r.click())},zJ=function(e,t,r,n){return NJ(e,function(a,o){return BJ(o,n)})},qJ=function(e,t){return Array.from(new Set(e.filter(function(r){return r[t]!=null}).map(function(r){return r[t]}).reduce(function(r,n){return r.concat(n)},[])))},UJ=function(e){return function(t,r,n){return e.getMany(n,{ids:qJ(t,r)}).then(function(a){var o=a.data;return o.reduce(function(i,u){return i[u.id]=u,i},{})})}},Nh=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},fv=function(e){var t=e.resource,r=t===void 0?"":t,n=e.disableSyncWithStore,a=n===void 0?!1:n,o="".concat(r,".selectedIds"),i=p.useState(HR),u=i[0],d=i[1],l=xa(o,HR),h=l[0],v=l[1],y=Pte(o),b=a?u:h,_=a?d:v,w=p.useCallback(function(){a?d(HR):y()},[a,y]),S=p.useMemo(function(){return{select:function(A){A&&_(Nh([],A,!0))},unselect:function(A){!A||A.length===0||_(function(R){return Array.isArray(R)?R.filter(function(C){return!A.includes(C)}):[]})},toggle:function(A){typeof A>"u"||_(function(R){if(!Array.isArray(R))return Nh([],R,!0);var C=R.indexOf(A);return C>-1?Nh(Nh([],R.slice(0,C),!0),R.slice(C+1),!0):Nh(Nh([],R,!0),[A],!1)})},clearSelection:function(){w()}}},[_,w]);return[b,S]},HR=[];function Cx(e,t){e===void 0&&(e=0),t===void 0&&(t="");var r=p.useState(!1),n=r[0],a=r[1];return p.useEffect(function(){a(!1);var o=setTimeout(function(){a(!0)},e);return function(){clearTimeout(o)}},[t,e,a]),n}function VJ(){var e=p.useRef(!0);return p.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Pu=function(){return Pu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Pu.apply(this,arguments)},hN=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},WJ=function(e){var t=e.debounce,r=t===void 0?500:t,n=e.disableSyncWithLocation,a=n===void 0?!1:n,o=e.filterDefaultValues,i=e.perPage,u=i===void 0?10:i,d=e.resource,l=e.sort,h=l===void 0?QJ:l,v=e.storeKey,y=v===void 0?a?!1:"".concat(d,".listParams"):v,b=an(),_=Os(),w=p.useState(yN),S=w[0],A=w[1],R=xa(y||"".concat(d,".listParams"),yN),C=R[0],O=R[1],T=p.useRef(),E=VJ(),L=[b.search,d,y,JSON.stringify(y?C:S),JSON.stringify(o),JSON.stringify(h),u,a],j=a?{}:HJ(b),M=p.useMemo(function(){return GJ({queryFromLocation:j,params:y?C:S,filterDefaultValues:o,sort:h,perPage:u})},L);p.useEffect(function(){Object.keys(j).length>0&&O(M)},[b.search]);var k=p.useCallback(function(te){E.current&&(T.current?T.current=HD(T.current,te):(T.current=HD(M,te),setTimeout(function(){T.current&&(a&&!y?A(T.current):a&&y?O(T.current):_({search:"?".concat(Um.stringify(Pu(Pu({},T.current),{filter:JSON.stringify(T.current.filter),displayedFilters:JSON.stringify(T.current.displayedFilters)})))},{state:{_scrollToTop:te.type===uk}}),T.current=void 0)},0)))},hN(hN([],L,!0),[_],!1)),$=p.useCallback(function(te){return k({type:kz,payload:te})},[k]),B=p.useCallback(function(te){return k({type:uk,payload:te})},[k]),z=p.useCallback(function(te){return k({type:Tz,payload:te})},[k]),U=M.filter||gN,W=M.displayedFilters||gN,Q=wx(function(te,G){k({type:ck,payload:{filter:sd(te),displayedFilters:G}})},r),V=p.useCallback(function(te,G,J){return G===void 0&&(G=void 0),J===void 0&&(J=!1),J?Q(te,G):k({type:ck,payload:{filter:sd(te),displayedFilters:G}})},[k]),K=p.useCallback(function(te){k({type:Iz,payload:te})},[k]),X=p.useCallback(function(te,G){k({type:Az,payload:{filterName:te,defaultValue:G}})},[k]);return[Pu(Pu({filterValues:U,requestSignature:L},M),{displayedFilters:W}),{changeParams:k,setPage:B,setPerPage:z,setSort:$,setFilters:V,hideFilter:K,showFilter:X}]},mN=function(e,t){if(e[t]&&typeof e[t]=="string")try{e[t]=JSON.parse(e[t])}catch{delete e[t]}},HJ=function(e){var t=e.search,r=Um.parse(t);return mN(r,"filter"),mN(r,"displayedFilters"),r},KJ=function(e){return e&&e.filter&&(Object.keys(e.filter).length>0||e.order!=null||e.page!==1||e.perPage!=null||e.sort!=null)},GJ=function(e){var t=e.queryFromLocation,r=e.params,n=e.filterDefaultValues,a=e.sort,o=e.perPage,i=Object.keys(t).length>0?t:KJ(r)?Pu({},r):{filter:n||{}};return i.sort||(i.sort=a.field,i.order=a.order),i.perPage==null&&(i.perPage=o),i.page==null&&(i.page=1),Pu(Pu({},i),{page:vN(i.page,1),perPage:vN(i.perPage,10)})},vN=function(e,t){if(typeof e>"u")return t;var r=typeof e=="string"?parseInt(e,10):e;return isNaN(r)?t:r},gN={},QJ={field:"id",order:tp},yN={},pk=function(){return pk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},pk.apply(this,arguments)},XJ=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},YJ=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},JJ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ZJ=function(e){var t=e.sort,r=e.filter,n=er(e);if(!n)throw new Error("useSelectAll should be used inside a ResourceContextProvider or passed a resource prop");var a=co(),o=Ea(),i=fv({resource:n}),u=i[1].select,d=Ur(),l=fr(function(h){var v=h===void 0?{}:h,y=v.queryOptions,b=y===void 0?{}:y,_=v.limit,w=_===void 0?250:_;return XJ(void 0,void 0,void 0,function(){var S,A,R,C,O,T,E,L;return YJ(this,function(j){switch(j.label){case 0:S=b.meta,A=b.onSuccess,R=b.onError,C=JJ(b,["meta","onSuccess","onError"]),j.label=1;case 1:return j.trys.push([1,3,,4]),[4,o.fetchQuery(pk({queryKey:[n,"getList",{pagination:{page:1,perPage:w},sort:t,filter:r,meta:S}],queryFn:function(){return a.getList(n,{pagination:{page:1,perPage:w},sort:t,filter:r,meta:S})}},C))];case 2:return O=j.sent(),T=((L=O.data)===null||L===void 0?void 0:L.map(function(M){var k=M.id;return k}))||[],u(T),T.length===w&&d("ra.message.select_all_limit_reached",{messageArgs:{max:w},type:"warning"}),A&&A(O),[2,O.data];case 3:return E=j.sent(),R?R(E):d("ra.notification.http_error",{type:"warning"}),[3,4];case 4:return[2]}})})});return l},Ex=p.createContext(null);Ex.displayName="ListContext";var Uz=p.createContext(void 0),eZ=function(e){return p.useMemo(function(){return xx(e,["displayedFilters","filterValues","hideFilter","setFilters","showFilter","resource"])},[e.displayedFilters,e.filterValues,e.hideFilter,e.setFilters,e.showFilter])};Uz.displayName="ListFilterContext";var Vz=p.createContext(void 0),tZ=function(e){return p.useMemo(function(){return xx(e,["sort","setSort","resource"])},[e.sort,e.setSort])};Vz.displayName="ListSortContext";var oI=p.createContext(void 0);oI.displayName="ListPaginationContext";var rZ=function(e){return p.useMemo(function(){return xx(e,["isLoading","isPending","hasPreviousPage","hasNextPage","page","perPage","setPage","setPerPage","total","resource"])},[e.isLoading,e.isPending,e.hasPreviousPage,e.hasNextPage,e.page,e.perPage,e.setPage,e.setPerPage,e.total])},iI=function(e){var t=e.value,r=e.children;return p.createElement(Ex.Provider,{value:t},p.createElement(Uz.Provider,{value:eZ(t)},p.createElement(Vz.Provider,{value:tZ(t)},p.createElement(oI.Provider,{value:rZ(t)},r))))},Eu=function(){return Eu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Eu.apply(this,arguments)},nZ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},aZ=function(e){e===void 0&&(e={});var t=e.debounce,r=t===void 0?500:t,n=e.disableAuthentication,a=n===void 0?!1:n,o=e.disableSyncWithLocation,i=o===void 0?!1:o,u=e.exporter,d=u===void 0?zJ:u,l=e.filter,h=e.filterDefaultValues,v=e.perPage,y=v===void 0?10:v,b=e.queryOptions,_=b===void 0?{}:b,w=e.sort,S=w===void 0?oZ:w,A=e.storeKey,R=er(e),C=_.meta,O=nZ(_,["meta"]);if(!R)throw new Error("useListController requires a non-empty resource prop or context");if(l&&(p.isValidElement(l)||Array.isArray(l)&&l.some(p.isValidElement)))throw new Error("useListController received a React element as `filter` props. If you intended to set the list filter elements, use the `filters` (with an s) prop instead. The `filter` prop is internal and should not be set by the developer.");var T=fp({enabled:!a}).isPending,E=Mx({action:"list",resource:R,enabled:!a&&!T}).isPending,L=nt(),j=Ur(),M=WJ({debounce:r,disableSyncWithLocation:i,filterDefaultValues:h,perPage:y,resource:R,sort:S,storeKey:A}),k=M[0],$=M[1],B=fv({resource:R,disableSyncWithStore:A===!1}),z=B[0],U=B[1],W=kY(R,{pagination:{page:k.page,perPage:k.perPage},sort:{field:k.sort,order:k.order},filter:Eu(Eu({},k.filter),l),meta:C},Eu({enabled:!T&&!E||a,placeholderData:function(Oe){return Oe},retry:!1,onError:function(Oe){return j((Oe==null?void 0:Oe.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:Oe==null?void 0:Oe.message}})}},O)),Q=W.data,V=W.pageInfo,K=W.total,X=W.meta,te=W.error,G=W.isLoading,J=W.isFetching,de=W.isPending,ce=W.refetch,ue=W.isPaused,be=W.isPlaceholderData;p.useEffect(function(){ue&&be&&j("ra.message.placeholder_data_warning",{type:"warning",messageArgs:{_:"Network issue: Data refresh failed."}})},[ue,be,j]),p.useEffect(function(){if(k.page<=0||!J&&k.page>1&&(Q==null||(Q==null?void 0:Q.length)===0)){$.setPage(1);return}if(K!=null){var Oe=Math.ceil(K/k.perPage)||1;!J&&k.page>Oe&&$.setPage(Oe)}},[J,k.page,k.perPage,Q,$,K]);var Pe=p.useMemo(function(){return{field:k.sort,order:k.order}},[k.sort,k.order]),Ee=dp(),ge=L("ra.page.list",{name:Ee(R,2)}),xe=ZJ({resource:R,sort:{field:k.sort,order:k.order},filter:Eu(Eu({},k.filter),l)});return{sort:Pe,data:Q,meta:X,defaultTitle:ge,displayedFilters:k.displayedFilters,error:te,exporter:d,filter:l,filterValues:k.filterValues,hideFilter:$.hideFilter,isFetching:J,isLoading:G,isPending:de,onSelect:U.select,onSelectAll:xe,onToggleItem:U.toggle,onUnselectItems:U.clearSelection,page:k.page,perPage:k.perPage,refetch:ce,resource:R,selectedIds:z,setFilters:$.setFilters,setPage:$.setPage,setPerPage:$.setPerPage,setSort:$.setSort,showFilter:$.showFilter,total:K,hasNextPage:V?V.hasNextPage:K!=null?k.page*k.perPage<K:void 0,hasPreviousPage:V?V.hasPreviousPage:k.page>1}},oZ={field:"id",order:tp},iZ=["sort","data","defaultTitle","displayedFilters","error","exporter","filterValues","hasNextPage","hasPreviousPage","hideFilter","isFetching","isLoading","isPending","onSelect","onSelectAll","onToggleItem","onUnselectItems","page","perPage","refetch","refresh","resource","selectedIds","setFilters","setPage","setPerPage","setSort","showFilter","total","totalPages"],nb=function(e){return Object.keys(e).filter(function(t){return!iZ.includes(t)}).reduce(function(t,r){var n;return Eu(Eu({},t),(n={},n[r]=e[r],n))},{})},sZ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},lZ=function(e){var t=e.children,r=e.loading,n=r===void 0?null:r,a=sZ(e,["children","loading"]),o=aZ(a),i=jx({resource:o.resource,action:"list"});return i&&!a.disableAuthentication?n:p.createElement(pv,{value:a.resource},p.createElement(iI,{value:o},t))},D_=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},uZ=function(e,t,r){r===void 0&&(r=!1);var n=xa("".concat(e,".datagrid.expanded"),[]),a=n[0],o=n[1],i=Array.isArray(a)?a.map(function(d){return d==t}).indexOf(!0)!==-1:!1,u=p.useCallback(function(){o(function(d){if(!Array.isArray(d))return[t];var l=d.findIndex(function(h){return h==t});return l>-1?r?[]:D_(D_([],d.slice(0,l),!0),d.slice(l+1),!0):r?[t]:D_(D_([],d,!0),[t],!1)})},[o,t,r]);return[i,u]},cZ=function(e,t){var r=xa("".concat(e,".datagrid.expanded"),[]),n=r[0],a=r[1],o=Array.isArray(n)?n.some(function(u){return t.some(function(d){return d==u})}):!1,i=p.useCallback(function(){var u=n.filter(function(d){return!t.some(function(l){return l==d})});a(o?u:u.concat(t))},[n,a,o,t]);return[o,i]},Jh=function(){return Jh=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Jh.apply(this,arguments)},bN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},dZ=function(){throw new Error("refetch is not available for a ListContext built from useList based on local data")},Wz=function(e){var t,r=e.data,n=e.error,a=e.filter,o=a===void 0?fZ:a,i=e.isFetching,u=i===void 0?!1:i,d=e.isLoading,l=d===void 0?!1:d,h=e.isPending,v=h===void 0?!1:h,y=e.page,b=y===void 0?1:y,_=e.perPage,w=_===void 0?1e3:_,S=e.sort,A=e.filterCallback,R=A===void 0?function(oe){return!!oe}:A,C=er(e),O=p.useState(u),T=O[0],E=O[1],L=p.useState(l),j=L[0],M=L[1],k=p.useState(v),$=k[0],B=k[1],z=p.useState(function(){return{data:r,total:r?r.length:void 0}}),U=z[0],W=z[1],Q=Mz({page:b,perPage:w}),V=Q.page,K=Q.setPage,X=Q.perPage,te=Q.setPerPage,G=jz(S),J=G.sort,de=G.setSort,ce=p.useCallback(function(oe){de(oe),K(1)},[K,de]),ue=fv(C?{resource:C}:{disableSyncWithStore:!0}),be=ue[0],Pe=ue[1],Ee=p.useRef(o),ge=p.useState({}),xe=ge[0],Oe=ge[1],Te=p.useState(o),Me=Te[0],Fe=Te[1],$e=p.useCallback(function(oe){Oe(function(pe){var Se=pe,ne=oe;Se[ne];var we=bN(Se,[typeof ne=="symbol"?ne:ne+""]);return we}),Fe(function(pe){var Se=pe,ne=oe;Se[ne];var we=bN(Se,[typeof ne=="symbol"?ne:ne+""]);return we})},[Oe,Fe]),et=p.useCallback(function(oe,pe){Oe(function(Se){var ne;return Jh(Jh({},Se),(ne={},ne[oe]=!0,ne))}),Fe(function(Se){var ne;return sd(Jh(Jh({},Se),(ne={},ne[oe]=pe,ne)))})},[Oe,Fe]),qe=p.useCallback(function(oe,pe){pe===void 0&&(pe=void 0),Fe(sd(oe)),pe&&Oe(pe),K(1)},[Oe,Fe,K]);p.useEffect(function(){ii(o,Ee.current)||(Ee.current=o,Fe(o))},[o]),p.useEffect(function(){if(!(v||!r)){var oe=r;if(Me){var pe=wz(Me);oe=r.filter(function(ne){return Object.entries(pe).every(function(we){var Ne=we[0],De=we[1],ht=or(ne,Ne),lt=Array.isArray(ht)?Array.isArray(De)?ht.some(function(bt){return De.includes(bt)}):ht.includes(De):Array.isArray(De)?De.includes(ht):Ne==="q"?Object.keys(ne).some(function(bt){return typeof ne[bt]=="string"&&ne[bt].toLowerCase().includes(De.toLowerCase())}):De==ht;return lt})}).filter(R)}var Se=oe.length;J.field&&(oe=oe.sort(function(ne,we){return or(ne,J.field)>or(we,J.field)?J.order==="ASC"?1:-1:or(ne,J.field)<or(we,J.field)?J.order==="ASC"?-1:1:0})),oe=oe.slice((V-1)*X,V*X),W({data:oe,total:Se})}},[JSON.stringify(r),Me,v,V,X,W,J.field,J.order]),p.useEffect(function(){u!==T&&E(u)},[u,T,E]),p.useEffect(function(){l!==j&&M(l)},[l,j,M]),p.useEffect(function(){v!==$&&B(v)},[v,$,B]);var re=p.useCallback(function(){var oe=(r==null?void 0:r.map(function(pe){var Se=pe.id;return Se}))||[];Pe.select(oe)},[r,Pe]);return{sort:J,data:$?void 0:(t=U==null?void 0:U.data)!==null&&t!==void 0?t:[],defaultTitle:"",error:n??null,displayedFilters:xe,filterValues:Me,hasNextPage:(U==null?void 0:U.total)==null?!1:V*X<U.total,hasPreviousPage:V>1,hideFilter:$e,isFetching:T,isLoading:j,isPending:$,onSelect:Pe.select,onSelectAll:re,onToggleItem:Pe.toggle,onUnselectItems:Pe.clearSelection,page:V,perPage:X,resource:"",refetch:dZ,selectedIds:be,setFilters:qe,setPage:K,setPerPage:te,setSort:ce,showFilter:et,total:U==null?void 0:U.total}},fZ={},Va=function(){var e=p.useContext(Ex);if(!e)throw new Error("useListContext must be used inside a ListContextProvider");return e},KR,_N;function pZ(){if(_N)return KR;_N=1;var e=bx(),t=lv(),r=dz(),n=uv(),a=Object.prototype,o=a.hasOwnProperty,i=e(function(u,d){u=Object(u);var l=-1,h=d.length,v=h>2?d[2]:void 0;for(v&&r(d[0],d[1],v)&&(h=1);++l<h;)for(var y=d[l],b=n(y),_=-1,w=b.length;++_<w;){var S=b[_],A=u[S];(A===void 0||t(A,a[S])&&!o.call(u,S))&&(u[S]=y[S])}return u});return KR=i,KR}var hZ=pZ();const sI=Nn(hZ);var lI=function(e){var t=p.useContext(Ex);return p.useMemo(function(){return sI({},e!=null?mZ(e):{},t)},[t,e])},mZ=function(e){var t=e.sort,r=e.data,n=e.defaultTitle,a=e.displayedFilters,o=e.exporter,i=e.filterValues,u=e.hasCreate,d=e.hideFilter,l=e.isFetching,h=e.isLoading,v=e.isPending,y=e.onSelect,b=e.onSelectAll,_=e.onToggleItem,w=e.onUnselectItems,S=e.page,A=e.perPage,R=e.refetch,C=e.resource,O=e.selectedIds,T=e.setFilters,E=e.setPage,L=e.setPerPage,j=e.setSort,M=e.showFilter,k=e.total;return{sort:t,data:r,defaultTitle:n,displayedFilters:a,exporter:o,filterValues:i,hasCreate:u,hideFilter:d,isFetching:l,isLoading:h,isPending:v,onSelect:y,onSelectAll:b,onToggleItem:_,onUnselectItems:w,page:S,perPage:A,refetch:R,resource:C,selectedIds:O,setFilters:T,setPage:E,setPerPage:L,setSort:j,showFilter:M,total:k}},vZ=function(){var e=p.useContext(oI);if(!e)throw new Error("useListPaginationContext must be used inside a ListPaginationContextProvider");return e},Hz=function(e){var t=fv(e?{resource:e}:{disableSyncWithStore:!0}),r=t[1].unselect;return p.useCallback(function(n){r(n)},[r])},Kz=function(e){var t=fv(e?{resource:e}:{disableSyncWithStore:!0}),r=t[1].clearSelection;return p.useCallback(function(){r()},[r])},Tf=function(){return Tf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Tf.apply(this,arguments)},gZ=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},yZ=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},GR=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},bZ=function(e){var t,r=e.debounce,n=r===void 0?500:r,a=e.reference,o=e.record,i=e.target,u=e.filter,d=u===void 0?_Z:u,l=e.source,h=l===void 0?"id":l,v=e.page,y=e.perPage,b=e.sort,_=b===void 0?{field:"id",order:"DESC"}:b,w=e.queryOptions,S=w===void 0?{}:w,A=Ur(),R=er(e),C=co(),O=Ea(),T=(t=e.storeKey)!==null&&t!==void 0?t:"".concat(R,".").concat(o==null?void 0:o.id,".").concat(a),E=S.meta,L=GR(S,["meta"]),j=Mz({page:v,perPage:y}),M=j.page,k=j.setPage,$=j.perPage,B=j.setPerPage,z=jz(_),U=z.sort,W=z.setSort,Q=p.useCallback(function(ne){W(ne),k(1)},[k,W]),V=fv({resource:T}),K=V[0],X=V[1],te=p.useRef(d),G=p.useState({}),J=G[0],de=G[1],ce=p.useState(d),ue=ce[0],be=ce[1],Pe=p.useCallback(function(ne){de(function(we){var Ne=we,De=ne;Ne[De];var ht=GR(Ne,[typeof De=="symbol"?De:De+""]);return ht}),be(function(we){var Ne=we,De=ne;Ne[De];var ht=GR(Ne,[typeof De=="symbol"?De:De+""]);return ht})},[de,be]),Ee=p.useCallback(function(ne,we){de(function(Ne){var De;return Tf(Tf({},Ne),(De={},De[ne]=!0,De))}),be(function(Ne){var De;return Tf(Tf({},Ne),(De={},De[ne]=we,De))})},[de,be]),ge=p.useCallback(wx(function(ne,we){be(sd(ne)),de(we),k(1)},n),[de,be,k]),xe=p.useCallback(function(ne,we,Ne){Ne===void 0&&(Ne=!1),Ne?ge(ne,we):(be(sd(ne)),de(we),k(1))},[de,be,k,ge]);p.useEffect(function(){ii(d,te.current)||(te.current=d,be(d))},[d]);var Oe=HY(a,{target:i,id:or(o,h),pagination:{page:M,perPage:$},sort:U,filter:ue,meta:E},Tf({enabled:or(o,h)!=null,placeholderData:function(ne){return ne},onError:function(ne){return A(typeof ne=="string"?ne:(ne==null?void 0:ne.message)||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof ne=="string"?ne:ne!=null&&ne.message?ne.message:void 0}})}},L)),Te=Oe.data,Me=Oe.total,Fe=Oe.meta,$e=Oe.pageInfo,et=Oe.error,qe=Oe.isFetching,re=Oe.isLoading,oe=Oe.isPending,pe=Oe.refetch,Se=fr(function(ne){var we=ne===void 0?{}:ne,Ne=we.limit,De=Ne===void 0?250:Ne,ht=we.queryOptions,lt=ht===void 0?{}:ht;return gZ(void 0,void 0,void 0,function(){var bt,Pt,Tt,Je,Dt,Lt,Ct;return yZ(this,function(ct){switch(ct.label){case 0:bt=lt.meta,Pt=lt.onSuccess,Tt=lt.onError,ct.label=1;case 1:return ct.trys.push([1,3,,4]),[4,O.fetchQuery({queryKey:[R,"getManyReference",{target:i,id:or(o,h),pagination:{page:1,perPage:De},sort:U,filter:d,meta:bt}],queryFn:function(){return C.getManyReference(a,{target:i,id:or(o,h),pagination:{page:1,perPage:De},sort:U,filter:d,meta:bt})}})];case 2:return Je=ct.sent(),Dt=((Ct=Je.data)===null||Ct===void 0?void 0:Ct.map(function(Kt){var lr=Kt.id;return lr}))||[],X.select(Dt),Dt.length===De&&A("ra.message.select_all_limit_reached",{messageArgs:{max:De},type:"warning"}),Pt&&Pt(Je),[2,Je.data];case 3:return Lt=ct.sent(),Tt&&Tt(Lt),A("ra.notification.http_error",{type:"warning"}),[3,4];case 4:return[2]}})})});return{sort:U,data:Te,meta:Fe,defaultTitle:void 0,displayedFilters:J,error:et,filterValues:ue,hideFilter:Pe,isFetching:qe,isLoading:re,isPending:oe,onSelect:X.select,onSelectAll:Se,onToggleItem:X.toggle,onUnselectItems:X.clearSelection,page:M,perPage:$,refetch:pe,resource:a,selectedIds:K,setFilters:xe,setPage:k,setPerPage:B,hasNextPage:$e?$e.hasNextPage:Me!=null?M*$<Me:void 0,hasPreviousPage:$e?$e.hasPreviousPage:M>1,setSort:Q,showFilter:Ee,total:Me}},_Z={},Bb=e=>e.type==="checkbox",Zh=e=>e instanceof Date,lo=e=>e==null;const Gz=e=>typeof e=="object";var $n=e=>!lo(e)&&!Array.isArray(e)&&Gz(e)&&!Zh(e),Qz=e=>$n(e)&&e.target?Bb(e.target)?e.target.checked:e.target.value:e,wZ=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Xz=(e,t)=>e.has(wZ(t)),xZ=e=>{const t=e.constructor&&e.constructor.prototype;return $n(t)&&t.hasOwnProperty("isPrototypeOf")},uI=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Gn(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(uI&&(e instanceof Blob||e instanceof FileList))&&(r||$n(e)))if(t=r?[]:{},!r&&!xZ(e))t=e;else for(const n in e)e.hasOwnProperty(n)&&(t[n]=Gn(e[n]));else return e;return t}var zb=e=>Array.isArray(e)?e.filter(Boolean):[],Kr=e=>e===void 0,it=(e,t,r)=>{if(!t||!$n(e))return r;const n=zb(t.split(/[,[\].]+?/)).reduce((a,o)=>lo(a)?a:a[o],e);return Kr(n)||n===e?Kr(e[t])?r:e[t]:n},Li=e=>typeof e=="boolean",cI=e=>/^\w*$/.test(e),Yz=e=>zb(e.replace(/["|']|\]/g,"").split(/\.|\[/)),$r=(e,t,r)=>{let n=-1;const a=cI(t)?[t]:Yz(t),o=a.length,i=o-1;for(;++n<o;){const u=a[n];let d=r;if(n!==i){const l=e[u];d=$n(l)||Array.isArray(l)?l:isNaN(+a[n+1])?{}:[]}if(u==="__proto__")return;e[u]=d,e=e[u]}return e};const N1={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Bi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},pu={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Jz=Qe.createContext(null),ks=()=>Qe.useContext(Jz),Zz=e=>{const{children:t,...r}=e;return Qe.createElement(Jz.Provider,{value:r},t)};var e6=(e,t,r,n=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==Bi.all&&(t._proxyFormState[i]=!n||Bi.all),r&&(r[i]=!0),e[i]}});return a},io=e=>$n(e)&&!Object.keys(e).length,t6=(e,t,r,n)=>{r(e);const{name:a,...o}=e;return io(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!n||Bi.all))},Fo=e=>Array.isArray(e)?e:[e],r6=(e,t,r)=>!e||!t||e===t||Fo(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n)));function Ox(e){const t=Qe.useRef(e);t.current=e,Qe.useEffect(()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}function qb(e){const t=ks(),{control:r=t.control,disabled:n,name:a,exact:o}=e||{},[i,u]=Qe.useState(r._formState),d=Qe.useRef(!0),l=Qe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),h=Qe.useRef(a);return h.current=a,Ox({disabled:n,next:v=>d.current&&r6(h.current,v.name,o)&&t6(v,l.current,r._updateFormState)&&u({...r._formState,...v}),subject:r._subjects.state}),Qe.useEffect(()=>(d.current=!0,l.current.isValid&&r._updateValid(!0),()=>{d.current=!1}),[r]),e6(i,r,l.current,!1)}var wl=e=>typeof e=="string",n6=(e,t,r,n,a)=>wl(e)?(n&&t.watch.add(e),it(r,e,a)):Array.isArray(e)?e.map(o=>(n&&t.watch.add(o),it(r,o))):(n&&(t.watchAll=!0),r);function a6(e){const t=ks(),{control:r=t.control,name:n,defaultValue:a,disabled:o,exact:i}=e||{},u=Qe.useRef(n);u.current=n,Ox({disabled:o,subject:r._subjects.values,next:h=>{r6(u.current,h.name,i)&&l(Gn(n6(u.current,r._names,h.values||r._formValues,!1,a)))}});const[d,l]=Qe.useState(r._getWatch(n,a));return Qe.useEffect(()=>r._removeUnmounted()),d}function SZ(e){const t=ks(),{name:r,disabled:n,control:a=t.control,shouldUnregister:o}=e,i=Xz(a._names.array,r),u=a6({control:a,name:r,defaultValue:it(a._formValues,r,it(a._defaultValues,r,e.defaultValue)),exact:!0}),d=qb({control:a,name:r,exact:!0}),l=Qe.useRef(a.register(r,{...e.rules,value:u,...Li(e.disabled)?{disabled:e.disabled}:{}}));return Qe.useEffect(()=>{const h=a._options.shouldUnregister||o,v=(y,b)=>{const _=it(a._fields,y);_&&_._f&&(_._f.mount=b)};if(v(r,!0),h){const y=Gn(it(a._options.defaultValues,r));$r(a._defaultValues,r,y),Kr(it(a._formValues,r))&&$r(a._formValues,r,y)}return()=>{(i?h&&!a._state.action:h)?a.unregister(r):v(r,!1)}},[r,a,i,o]),Qe.useEffect(()=>{it(a._fields,r)&&a._updateDisabledField({disabled:n,fields:a._fields,name:r,value:it(a._fields,r)._f.value})},[n,r,a]),{field:{name:r,value:u,...Li(n)||d.disabled?{disabled:d.disabled||n}:{},onChange:Qe.useCallback(h=>l.current.onChange({target:{value:Qz(h),name:r},type:N1.CHANGE}),[r]),onBlur:Qe.useCallback(()=>l.current.onBlur({target:{value:it(a._formValues,r),name:r},type:N1.BLUR}),[r,a]),ref:Qe.useCallback(h=>{const v=it(a._fields,r);v&&h&&(v._f.ref={focus:()=>h.focus(),select:()=>h.select(),setCustomValidity:y=>h.setCustomValidity(y),reportValidity:()=>h.reportValidity()})},[a._fields,r])},formState:d,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!it(d.errors,r)},isDirty:{enumerable:!0,get:()=>!!it(d.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!it(d.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!it(d.validatingFields,r)},error:{enumerable:!0,get:()=>it(d.errors,r)}})}}var CZ=(e,t,r,n,a)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:a||!0}}:{},Sc=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const r=(Math.random()*16+e)%16|0;return(t=="x"?r:r&3|8).toString(16)})},QR=(e,t,r={})=>r.shouldFocus||Kr(r.shouldFocus)?r.focusName||`${e}.${Kr(r.focusIndex)?t:r.focusIndex}.`:"",wy=e=>({isOnSubmit:!e||e===Bi.onSubmit,isOnBlur:e===Bi.onBlur,isOnChange:e===Bi.onChange,isOnAll:e===Bi.all,isOnTouch:e===Bi.onTouched}),hk=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const im=(e,t,r,n)=>{for(const a of r||Object.keys(e)){const o=it(e,a);if(o){const{_f:i,...u}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!n)return!0;if(i.ref&&t(i.ref,i.name)&&!n)return!0;if(im(u,t))break}else if($n(u)&&im(u,t))break}}};var o6=(e,t,r)=>{const n=Fo(it(e,r));return $r(n,"root",t[r]),$r(e,r,n),e},dI=e=>e.type==="file",Ru=e=>typeof e=="function",B1=e=>{if(!uI)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},m1=e=>wl(e),fI=e=>e.type==="radio",z1=e=>e instanceof RegExp;const wN={value:!1,isValid:!1},xN={value:!0,isValid:!0};var i6=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Kr(e[0].attributes.value)?Kr(e[0].value)||e[0].value===""?xN:{value:e[0].value,isValid:!0}:xN:wN}return wN};const SN={isValid:!1,value:null};var s6=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,SN):SN;function CN(e,t,r="validate"){if(m1(e)||Array.isArray(e)&&e.every(m1)||Li(e)&&!e)return{type:r,message:m1(e)?e:"",ref:t}}var Bh=e=>$n(e)&&!z1(e)?e:{value:e,message:""},mk=async(e,t,r,n,a)=>{const{ref:o,refs:i,required:u,maxLength:d,minLength:l,min:h,max:v,pattern:y,validate:b,name:_,valueAsNumber:w,mount:S,disabled:A}=e._f,R=it(t,_);if(!S||A)return{};const C=i?i[0]:o,O=B=>{n&&C.reportValidity&&(C.setCustomValidity(Li(B)?"":B||""),C.reportValidity())},T={},E=fI(o),L=Bb(o),j=E||L,M=(w||dI(o))&&Kr(o.value)&&Kr(R)||B1(o)&&o.value===""||R===""||Array.isArray(R)&&!R.length,k=CZ.bind(null,_,r,T),$=(B,z,U,W=pu.maxLength,Q=pu.minLength)=>{const V=B?z:U;T[_]={type:B?W:Q,message:V,ref:o,...k(B?W:Q,V)}};if(a?!Array.isArray(R)||!R.length:u&&(!j&&(M||lo(R))||Li(R)&&!R||L&&!i6(i).isValid||E&&!s6(i).isValid)){const{value:B,message:z}=m1(u)?{value:!!u,message:u}:Bh(u);if(B&&(T[_]={type:pu.required,message:z,ref:C,...k(pu.required,z)},!r))return O(z),T}if(!M&&(!lo(h)||!lo(v))){let B,z;const U=Bh(v),W=Bh(h);if(!lo(R)&&!isNaN(R)){const Q=o.valueAsNumber||R&&+R;lo(U.value)||(B=Q>U.value),lo(W.value)||(z=Q<W.value)}else{const Q=o.valueAsDate||new Date(R),V=te=>new Date(new Date().toDateString()+" "+te),K=o.type=="time",X=o.type=="week";wl(U.value)&&R&&(B=K?V(R)>V(U.value):X?R>U.value:Q>new Date(U.value)),wl(W.value)&&R&&(z=K?V(R)<V(W.value):X?R<W.value:Q<new Date(W.value))}if((B||z)&&($(!!B,U.message,W.message,pu.max,pu.min),!r))return O(T[_].message),T}if((d||l)&&!M&&(wl(R)||a&&Array.isArray(R))){const B=Bh(d),z=Bh(l),U=!lo(B.value)&&R.length>+B.value,W=!lo(z.value)&&R.length<+z.value;if((U||W)&&($(U,B.message,z.message),!r))return O(T[_].message),T}if(y&&!M&&wl(R)){const{value:B,message:z}=Bh(y);if(z1(B)&&!R.match(B)&&(T[_]={type:pu.pattern,message:z,ref:o,...k(pu.pattern,z)},!r))return O(z),T}if(b){if(Ru(b)){const B=await b(R,t),z=CN(B,C);if(z&&(T[_]={...z,...k(pu.validate,z.message)},!r))return O(z.message),T}else if($n(b)){let B={};for(const z in b){if(!io(B)&&!r)break;const U=CN(await b[z](R,t),C,z);U&&(B={...U,...k(z,U.message)},O(U.message),r&&(T[_]=B))}if(!io(B)&&(T[_]={ref:C,...B},!r))return T}}return O(!0),T},XR=(e,t)=>[...e,...Fo(t)],YR=e=>Array.isArray(e)?e.map(()=>{}):void 0;function JR(e,t,r){return[...e.slice(0,t),...Fo(r),...e.slice(t)]}var ZR=(e,t,r)=>Array.isArray(e)?(Kr(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[],e2=(e,t)=>[...Fo(t),...Fo(e)];function EZ(e,t){let r=0;const n=[...e];for(const a of t)n.splice(a-r,1),r++;return zb(n).length?n:[]}var t2=(e,t)=>Kr(t)?[]:EZ(e,Fo(t).sort((r,n)=>r-n)),r2=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]};function OZ(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=Kr(e)?n++:e[t[n++]];return e}function PZ(e){for(const t in e)if(e.hasOwnProperty(t)&&!Kr(e[t]))return!1;return!0}function jn(e,t){const r=Array.isArray(t)?t:cI(t)?[t]:Yz(t),n=r.length===1?e:OZ(e,r),a=r.length-1,o=r[a];return n&&delete n[o],a!==0&&($n(n)&&io(n)||Array.isArray(n)&&PZ(n))&&jn(e,r.slice(0,-1)),e}var EN=(e,t,r)=>(e[t]=r,e);function RZ(e){const t=ks(),{control:r=t.control,name:n,keyName:a="id",shouldUnregister:o}=e,[i,u]=Qe.useState(r._getFieldArray(n)),d=Qe.useRef(r._getFieldArray(n).map(Sc)),l=Qe.useRef(i),h=Qe.useRef(n),v=Qe.useRef(!1);h.current=n,l.current=i,r._names.array.add(n),e.rules&&r.register(n,e.rules),Ox({next:({values:T,name:E})=>{if(E===h.current||!E){const L=it(T,h.current);Array.isArray(L)&&(u(L),d.current=L.map(Sc))}},subject:r._subjects.array});const y=Qe.useCallback(T=>{v.current=!0,r._updateFieldArray(n,T)},[r,n]),b=(T,E)=>{const L=Fo(Gn(T)),j=XR(r._getFieldArray(n),L);r._names.focus=QR(n,j.length-1,E),d.current=XR(d.current,L.map(Sc)),y(j),u(j),r._updateFieldArray(n,j,XR,{argA:YR(T)})},_=(T,E)=>{const L=Fo(Gn(T)),j=e2(r._getFieldArray(n),L);r._names.focus=QR(n,0,E),d.current=e2(d.current,L.map(Sc)),y(j),u(j),r._updateFieldArray(n,j,e2,{argA:YR(T)})},w=T=>{const E=t2(r._getFieldArray(n),T);d.current=t2(d.current,T),y(E),u(E),r._updateFieldArray(n,E,t2,{argA:T})},S=(T,E,L)=>{const j=Fo(Gn(E)),M=JR(r._getFieldArray(n),T,j);r._names.focus=QR(n,T,L),d.current=JR(d.current,T,j.map(Sc)),y(M),u(M),r._updateFieldArray(n,M,JR,{argA:T,argB:YR(E)})},A=(T,E)=>{const L=r._getFieldArray(n);r2(L,T,E),r2(d.current,T,E),y(L),u(L),r._updateFieldArray(n,L,r2,{argA:T,argB:E},!1)},R=(T,E)=>{const L=r._getFieldArray(n);ZR(L,T,E),ZR(d.current,T,E),y(L),u(L),r._updateFieldArray(n,L,ZR,{argA:T,argB:E},!1)},C=(T,E)=>{const L=Gn(E),j=EN(r._getFieldArray(n),T,L);d.current=[...j].map((M,k)=>!M||k===T?Sc():d.current[k]),y(j),u([...j]),r._updateFieldArray(n,j,EN,{argA:T,argB:L},!0,!1)},O=T=>{const E=Fo(Gn(T));d.current=E.map(Sc),y([...E]),u([...E]),r._updateFieldArray(n,[...E],L=>L,{},!0,!1)};return Qe.useEffect(()=>{if(r._state.action=!1,hk(n,r._names)&&r._subjects.state.next({...r._formState}),v.current&&(!wy(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then(T=>{const E=it(T.errors,n),L=it(r._formState.errors,n);(L?!E&&L.type||E&&(L.type!==E.type||L.message!==E.message):E&&E.type)&&(E?$r(r._formState.errors,n,E):jn(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))});else{const T=it(r._fields,n);T&&T._f&&!(wy(r._options.reValidateMode).isOnSubmit&&wy(r._options.mode).isOnSubmit)&&mk(T,r._formValues,r._options.criteriaMode===Bi.all,r._options.shouldUseNativeValidation,!0).then(E=>!io(E)&&r._subjects.state.next({errors:o6(r._formState.errors,E,n)}))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&im(r._fields,(T,E)=>{if(r._names.focus&&E.startsWith(r._names.focus)&&T.focus)return T.focus(),1}),r._names.focus="",r._updateValid(),v.current=!1},[i,n,r]),Qe.useEffect(()=>(!it(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)}),[n,r,a,o]),{swap:Qe.useCallback(A,[y,n,r]),move:Qe.useCallback(R,[y,n,r]),prepend:Qe.useCallback(_,[y,n,r]),append:Qe.useCallback(b,[y,n,r]),remove:Qe.useCallback(w,[y,n,r]),insert:Qe.useCallback(S,[y,n,r]),update:Qe.useCallback(C,[y,n,r]),replace:Qe.useCallback(O,[y,n,r]),fields:Qe.useMemo(()=>i.map((T,E)=>({...T,[a]:d.current[E]||Sc()})),[i,a])}}var n2=()=>{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},q1=e=>lo(e)||!Gz(e);function Mc(e,t){if(q1(e)||q1(t))return e===t;if(Zh(e)&&Zh(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const a of r){const o=e[a];if(!n.includes(a))return!1;if(a!=="ref"){const i=t[a];if(Zh(o)&&Zh(i)||$n(o)&&$n(i)||Array.isArray(o)&&Array.isArray(i)?!Mc(o,i):o!==i)return!1}}return!0}var l6=e=>e.type==="select-multiple",kZ=e=>fI(e)||Bb(e),a2=e=>B1(e)&&e.isConnected,u6=e=>{for(const t in e)if(Ru(e[t]))return!0;return!1};function U1(e,t={}){const r=Array.isArray(e);if($n(e)||r)for(const n in e)Array.isArray(e[n])||$n(e[n])&&!u6(e[n])?(t[n]=Array.isArray(e[n])?[]:{},U1(e[n],t[n])):lo(e[n])||(t[n]=!0);return t}function c6(e,t,r){const n=Array.isArray(e);if($n(e)||n)for(const a in e)Array.isArray(e[a])||$n(e[a])&&!u6(e[a])?Kr(t)||q1(r[a])?r[a]=Array.isArray(e[a])?U1(e[a],[]):{...U1(e[a])}:c6(e[a],lo(t)?{}:t[a],r[a]):r[a]=!Mc(e[a],t[a]);return r}var N_=(e,t)=>c6(e,t,U1(t)),d6=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Kr(e)?e:t?e===""?NaN:e&&+e:r&&wl(e)?new Date(e):n?n(e):e;function o2(e){const t=e.ref;if(!(e.refs?e.refs.every(r=>r.disabled):t.disabled))return dI(t)?t.files:fI(t)?s6(e.refs).value:l6(t)?[...t.selectedOptions].map(({value:r})=>r):Bb(t)?i6(e.refs).value:d6(Kr(t.value)?e.ref.value:t.value,e)}var TZ=(e,t,r,n)=>{const a={};for(const o of e){const i=it(t,o);i&&$r(a,o,i._f)}return{criteriaMode:r,names:[...e],fields:a,shouldUseNativeValidation:n}},Kg=e=>Kr(e)?e:z1(e)?e.source:$n(e)?z1(e.value)?e.value.source:e.value:e;const ON="AsyncFunction";var AZ=e=>(!e||!e.validate)&&!!(Ru(e.validate)&&e.validate.constructor.name===ON||$n(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===ON)),IZ=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function PN(e,t,r){const n=it(e,r);if(n||cI(r))return{error:n,name:r};const a=r.split(".");for(;a.length;){const o=a.join("."),i=it(t,o),u=it(e,o);if(i&&!Array.isArray(i)&&r!==o)return{name:r};if(u&&u.type)return{name:o,error:u};a.pop()}return{name:r}}var jZ=(e,t,r,n,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(t||e):(r?n.isOnBlur:a.isOnBlur)?!e:(r?n.isOnChange:a.isOnChange)?e:!0,MZ=(e,t)=>!zb(it(e,t)).length&&jn(e,t);const FZ={mode:Bi.onSubmit,reValidateMode:Bi.onChange,shouldFocusError:!0};function LZ(e={}){let t={...FZ,...e},r={submitCount:0,isDirty:!1,isLoading:Ru(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},a=$n(t.defaultValues)||$n(t.values)?Gn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Gn(a),i={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},d,l=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={values:n2(),array:n2(),state:n2()},y=wy(t.mode),b=wy(t.reValidateMode),_=t.criteriaMode===Bi.all,w=re=>oe=>{clearTimeout(l),l=setTimeout(re,oe)},S=async re=>{if(h.isValid||re){const oe=t.resolver?io((await j()).errors):await k(n,!0);oe!==r.isValid&&v.state.next({isValid:oe})}},A=(re,oe)=>{(h.isValidating||h.validatingFields)&&((re||Array.from(u.mount)).forEach(pe=>{pe&&(oe?$r(r.validatingFields,pe,oe):jn(r.validatingFields,pe))}),v.state.next({validatingFields:r.validatingFields,isValidating:!io(r.validatingFields)}))},R=(re,oe=[],pe,Se,ne=!0,we=!0)=>{if(Se&&pe){if(i.action=!0,we&&Array.isArray(it(n,re))){const Ne=pe(it(n,re),Se.argA,Se.argB);ne&&$r(n,re,Ne)}if(we&&Array.isArray(it(r.errors,re))){const Ne=pe(it(r.errors,re),Se.argA,Se.argB);ne&&$r(r.errors,re,Ne),MZ(r.errors,re)}if(h.touchedFields&&we&&Array.isArray(it(r.touchedFields,re))){const Ne=pe(it(r.touchedFields,re),Se.argA,Se.argB);ne&&$r(r.touchedFields,re,Ne)}h.dirtyFields&&(r.dirtyFields=N_(a,o)),v.state.next({name:re,isDirty:B(re,oe),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else $r(o,re,oe)},C=(re,oe)=>{$r(r.errors,re,oe),v.state.next({errors:r.errors})},O=re=>{r.errors=re,v.state.next({errors:r.errors,isValid:!1})},T=(re,oe,pe,Se)=>{const ne=it(n,re);if(ne){const we=it(o,re,Kr(pe)?it(a,re):pe);Kr(we)||Se&&Se.defaultChecked||oe?$r(o,re,oe?we:o2(ne._f)):W(re,we),i.mount&&S()}},E=(re,oe,pe,Se,ne)=>{let we=!1,Ne=!1;const De={name:re},ht=!!(it(n,re)&&it(n,re)._f&&it(n,re)._f.disabled);if(!pe||Se){h.isDirty&&(Ne=r.isDirty,r.isDirty=De.isDirty=B(),we=Ne!==De.isDirty);const lt=ht||Mc(it(a,re),oe);Ne=!!(!ht&&it(r.dirtyFields,re)),lt||ht?jn(r.dirtyFields,re):$r(r.dirtyFields,re,!0),De.dirtyFields=r.dirtyFields,we=we||h.dirtyFields&&Ne!==!lt}if(pe){const lt=it(r.touchedFields,re);lt||($r(r.touchedFields,re,pe),De.touchedFields=r.touchedFields,we=we||h.touchedFields&&lt!==pe)}return we&&ne&&v.state.next(De),we?De:{}},L=(re,oe,pe,Se)=>{const ne=it(r.errors,re),we=h.isValid&&Li(oe)&&r.isValid!==oe;if(e.delayError&&pe?(d=w(()=>C(re,pe)),d(e.delayError)):(clearTimeout(l),d=null,pe?$r(r.errors,re,pe):jn(r.errors,re)),(pe?!Mc(ne,pe):ne)||!io(Se)||we){const Ne={...Se,...we&&Li(oe)?{isValid:oe}:{},errors:r.errors,name:re};r={...r,...Ne},v.state.next(Ne)}},j=async re=>{A(re,!0);const oe=await t.resolver(o,t.context,TZ(re||u.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return A(re),oe},M=async re=>{const{errors:oe}=await j(re);if(re)for(const pe of re){const Se=it(oe,pe);Se?$r(r.errors,pe,Se):jn(r.errors,pe)}else r.errors=oe;return oe},k=async(re,oe,pe={valid:!0})=>{for(const Se in re){const ne=re[Se];if(ne){const{_f:we,...Ne}=ne;if(we){const De=u.array.has(we.name),ht=ne._f&&AZ(ne._f);ht&&h.validatingFields&&A([Se],!0);const lt=await mk(ne,o,_,t.shouldUseNativeValidation&&!oe,De);if(ht&&h.validatingFields&&A([Se]),lt[we.name]&&(pe.valid=!1,oe))break;!oe&&(it(lt,we.name)?De?o6(r.errors,lt,we.name):$r(r.errors,we.name,lt[we.name]):jn(r.errors,we.name))}!io(Ne)&&await k(Ne,oe,pe)}}return pe.valid},$=()=>{for(const re of u.unMount){const oe=it(n,re);oe&&(oe._f.refs?oe._f.refs.every(pe=>!a2(pe)):!a2(oe._f.ref))&&be(re)}u.unMount=new Set},B=(re,oe)=>(re&&oe&&$r(o,re,oe),!Mc(G(),a)),z=(re,oe,pe)=>n6(re,u,{...i.mount?o:Kr(oe)?a:wl(re)?{[re]:oe}:oe},pe,oe),U=re=>zb(it(i.mount?o:a,re,e.shouldUnregister?it(a,re,[]):[])),W=(re,oe,pe={})=>{const Se=it(n,re);let ne=oe;if(Se){const we=Se._f;we&&(!we.disabled&&$r(o,re,d6(oe,we)),ne=B1(we.ref)&&lo(oe)?"":oe,l6(we.ref)?[...we.ref.options].forEach(Ne=>Ne.selected=ne.includes(Ne.value)):we.refs?Bb(we.ref)?we.refs.length>1?we.refs.forEach(Ne=>(!Ne.defaultChecked||!Ne.disabled)&&(Ne.checked=Array.isArray(ne)?!!ne.find(De=>De===Ne.value):ne===Ne.value)):we.refs[0]&&(we.refs[0].checked=!!ne):we.refs.forEach(Ne=>Ne.checked=Ne.value===ne):dI(we.ref)?we.ref.value="":(we.ref.value=ne,we.ref.type||v.values.next({name:re,values:{...o}})))}(pe.shouldDirty||pe.shouldTouch)&&E(re,ne,pe.shouldTouch,pe.shouldDirty,!0),pe.shouldValidate&&te(re)},Q=(re,oe,pe)=>{for(const Se in oe){const ne=oe[Se],we=`${re}.${Se}`,Ne=it(n,we);(u.array.has(re)||!q1(ne)||Ne&&!Ne._f)&&!Zh(ne)?Q(we,ne,pe):W(we,ne,pe)}},V=(re,oe,pe={})=>{const Se=it(n,re),ne=u.array.has(re),we=Gn(oe);$r(o,re,we),ne?(v.array.next({name:re,values:{...o}}),(h.isDirty||h.dirtyFields)&&pe.shouldDirty&&v.state.next({name:re,dirtyFields:N_(a,o),isDirty:B(re,we)})):Se&&!Se._f&&!lo(we)?Q(re,we,pe):W(re,we,pe),hk(re,u)&&v.state.next({...r}),v.values.next({name:i.mount?re:void 0,values:{...o}})},K=async re=>{i.mount=!0;const oe=re.target;let pe=oe.name,Se=!0;const ne=it(n,pe),we=()=>oe.type?o2(ne._f):Qz(re),Ne=De=>{Se=Number.isNaN(De)||Mc(De,it(o,pe,De))};if(ne){let De,ht;const lt=we(),bt=re.type===N1.BLUR||re.type===N1.FOCUS_OUT,Pt=!IZ(ne._f)&&!t.resolver&&!it(r.errors,pe)&&!ne._f.deps||jZ(bt,it(r.touchedFields,pe),r.isSubmitted,b,y),Tt=hk(pe,u,bt);$r(o,pe,lt),bt?(ne._f.onBlur&&ne._f.onBlur(re),d&&d(0)):ne._f.onChange&&ne._f.onChange(re);const Je=E(pe,lt,bt,!1),Dt=!io(Je)||Tt;if(!bt&&v.values.next({name:pe,type:re.type,values:{...o}}),Pt)return h.isValid&&(e.mode==="onBlur"?bt&&S():S()),Dt&&v.state.next({name:pe,...Tt?{}:Je});if(!bt&&Tt&&v.state.next({...r}),t.resolver){const{errors:Lt}=await j([pe]);if(Ne(lt),Se){const Ct=PN(r.errors,n,pe),ct=PN(Lt,n,Ct.name||pe);De=ct.error,pe=ct.name,ht=io(Lt)}}else A([pe],!0),De=(await mk(ne,o,_,t.shouldUseNativeValidation))[pe],A([pe]),Ne(lt),Se&&(De?ht=!1:h.isValid&&(ht=await k(n,!0)));Se&&(ne._f.deps&&te(ne._f.deps),L(pe,ht,De,Je))}},X=(re,oe)=>{if(it(r.errors,oe)&&re.focus)return re.focus(),1},te=async(re,oe={})=>{let pe,Se;const ne=Fo(re);if(t.resolver){const we=await M(Kr(re)?re:ne);pe=io(we),Se=re?!ne.some(Ne=>it(we,Ne)):pe}else re?(Se=(await Promise.all(ne.map(async we=>{const Ne=it(n,we);return await k(Ne&&Ne._f?{[we]:Ne}:Ne)}))).every(Boolean),!(!Se&&!r.isValid)&&S()):Se=pe=await k(n);return v.state.next({...!wl(re)||h.isValid&&pe!==r.isValid?{}:{name:re},...t.resolver||!re?{isValid:pe}:{},errors:r.errors}),oe.shouldFocus&&!Se&&im(n,X,re?ne:u.mount),Se},G=re=>{const oe={...i.mount?o:a};return Kr(re)?oe:wl(re)?it(oe,re):re.map(pe=>it(oe,pe))},J=(re,oe)=>({invalid:!!it((oe||r).errors,re),isDirty:!!it((oe||r).dirtyFields,re),error:it((oe||r).errors,re),isValidating:!!it(r.validatingFields,re),isTouched:!!it((oe||r).touchedFields,re)}),de=re=>{re&&Fo(re).forEach(oe=>jn(r.errors,oe)),v.state.next({errors:re?r.errors:{}})},ce=(re,oe,pe)=>{const Se=(it(n,re,{_f:{}})._f||{}).ref,ne=it(r.errors,re)||{},{ref:we,message:Ne,type:De,...ht}=ne;$r(r.errors,re,{...ht,...oe,ref:Se}),v.state.next({name:re,errors:r.errors,isValid:!1}),pe&&pe.shouldFocus&&Se&&Se.focus&&Se.focus()},ue=(re,oe)=>Ru(re)?v.values.subscribe({next:pe=>re(z(void 0,oe),pe)}):z(re,oe,!0),be=(re,oe={})=>{for(const pe of re?Fo(re):u.mount)u.mount.delete(pe),u.array.delete(pe),oe.keepValue||(jn(n,pe),jn(o,pe)),!oe.keepError&&jn(r.errors,pe),!oe.keepDirty&&jn(r.dirtyFields,pe),!oe.keepTouched&&jn(r.touchedFields,pe),!oe.keepIsValidating&&jn(r.validatingFields,pe),!t.shouldUnregister&&!oe.keepDefaultValue&&jn(a,pe);v.values.next({values:{...o}}),v.state.next({...r,...oe.keepDirty?{isDirty:B()}:{}}),!oe.keepIsValid&&S()},Pe=({disabled:re,name:oe,field:pe,fields:Se,value:ne})=>{if(Li(re)&&i.mount||re){const we=re?void 0:Kr(ne)?o2(pe?pe._f:it(Se,oe)._f):ne;$r(o,oe,we),E(oe,we,!1,!1,!0)}},Ee=(re,oe={})=>{let pe=it(n,re);const Se=Li(oe.disabled)||Li(e.disabled);return $r(n,re,{...pe||{},_f:{...pe&&pe._f?pe._f:{ref:{name:re}},name:re,mount:!0,...oe}}),u.mount.add(re),pe?Pe({field:pe,disabled:Li(oe.disabled)?oe.disabled:e.disabled,name:re,value:oe.value}):T(re,!0,oe.value),{...Se?{disabled:oe.disabled||e.disabled}:{},...t.progressive?{required:!!oe.required,min:Kg(oe.min),max:Kg(oe.max),minLength:Kg(oe.minLength),maxLength:Kg(oe.maxLength),pattern:Kg(oe.pattern)}:{},name:re,onChange:K,onBlur:K,ref:ne=>{if(ne){Ee(re,oe),pe=it(n,re);const we=Kr(ne.value)&&ne.querySelectorAll&&ne.querySelectorAll("input,select,textarea")[0]||ne,Ne=kZ(we),De=pe._f.refs||[];if(Ne?De.find(ht=>ht===we):we===pe._f.ref)return;$r(n,re,{_f:{...pe._f,...Ne?{refs:[...De.filter(a2),we,...Array.isArray(it(a,re))?[{}]:[]],ref:{type:we.type,name:re}}:{ref:we}}}),T(re,!1,void 0,we)}else pe=it(n,re,{}),pe._f&&(pe._f.mount=!1),(t.shouldUnregister||oe.shouldUnregister)&&!(Xz(u.array,re)&&i.action)&&u.unMount.add(re)}}},ge=()=>t.shouldFocusError&&im(n,X,u.mount),xe=re=>{Li(re)&&(v.state.next({disabled:re}),im(n,(oe,pe)=>{const Se=it(n,pe);Se&&(oe.disabled=Se._f.disabled||re,Array.isArray(Se._f.refs)&&Se._f.refs.forEach(ne=>{ne.disabled=Se._f.disabled||re}))},0,!1))},Oe=(re,oe)=>async pe=>{let Se;pe&&(pe.preventDefault&&pe.preventDefault(),pe.persist&&pe.persist());let ne=Gn(o);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:we,values:Ne}=await j();r.errors=we,ne=Ne}else await k(n);if(jn(r.errors,"root"),io(r.errors)){v.state.next({errors:{}});try{await re(ne,pe)}catch(we){Se=we}}else oe&&await oe({...r.errors},pe),ge(),setTimeout(ge);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:io(r.errors)&&!Se,submitCount:r.submitCount+1,errors:r.errors}),Se)throw Se},Te=(re,oe={})=>{it(n,re)&&(Kr(oe.defaultValue)?V(re,Gn(it(a,re))):(V(re,oe.defaultValue),$r(a,re,Gn(oe.defaultValue))),oe.keepTouched||jn(r.touchedFields,re),oe.keepDirty||(jn(r.dirtyFields,re),r.isDirty=oe.defaultValue?B(re,Gn(it(a,re))):B()),oe.keepError||(jn(r.errors,re),h.isValid&&S()),v.state.next({...r}))},Me=(re,oe={})=>{const pe=re?Gn(re):a,Se=Gn(pe),ne=io(re),we=ne?a:Se;if(oe.keepDefaultValues||(a=pe),!oe.keepValues){if(oe.keepDirtyValues)for(const Ne of u.mount)it(r.dirtyFields,Ne)?$r(we,Ne,it(o,Ne)):V(Ne,it(we,Ne));else{if(uI&&Kr(re))for(const Ne of u.mount){const De=it(n,Ne);if(De&&De._f){const ht=Array.isArray(De._f.refs)?De._f.refs[0]:De._f.ref;if(B1(ht)){const lt=ht.closest("form");if(lt){lt.reset();break}}}}n={}}o=e.shouldUnregister?oe.keepDefaultValues?Gn(a):{}:Gn(we),v.array.next({values:{...we}}),v.values.next({values:{...we}})}u={mount:oe.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!h.isValid||!!oe.keepIsValid||!!oe.keepDirtyValues,i.watch=!!e.shouldUnregister,v.state.next({submitCount:oe.keepSubmitCount?r.submitCount:0,isDirty:ne?!1:oe.keepDirty?r.isDirty:!!(oe.keepDefaultValues&&!Mc(re,a)),isSubmitted:oe.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ne?{}:oe.keepDirtyValues?oe.keepDefaultValues&&o?N_(a,o):r.dirtyFields:oe.keepDefaultValues&&re?N_(a,re):oe.keepDirty?r.dirtyFields:{},touchedFields:oe.keepTouched?r.touchedFields:{},errors:oe.keepErrors?r.errors:{},isSubmitSuccessful:oe.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Fe=(re,oe)=>Me(Ru(re)?re(o):re,oe);return{control:{register:Ee,unregister:be,getFieldState:J,handleSubmit:Oe,setError:ce,_executeSchema:j,_getWatch:z,_getDirty:B,_updateValid:S,_removeUnmounted:$,_updateFieldArray:R,_updateDisabledField:Pe,_getFieldArray:U,_reset:Me,_resetDefaultValues:()=>Ru(t.defaultValues)&&t.defaultValues().then(re=>{Fe(re,t.resetOptions),v.state.next({isLoading:!1})}),_updateFormState:re=>{r={...r,...re}},_disableForm:xe,_subjects:v,_proxyFormState:h,_setErrors:O,get _fields(){return n},get _formValues(){return o},get _state(){return i},set _state(re){i=re},get _defaultValues(){return a},get _names(){return u},set _names(re){u=re},get _formState(){return r},set _formState(re){r=re},get _options(){return t},set _options(re){t={...t,...re}}},trigger:te,register:Ee,handleSubmit:Oe,watch:ue,setValue:V,getValues:G,reset:Fe,resetField:Te,clearErrors:de,unregister:be,setError:ce,setFocus:(re,oe={})=>{const pe=it(n,re),Se=pe&&pe._f;if(Se){const ne=Se.refs?Se.refs[0]:Se.ref;ne.focus&&(ne.focus(),oe.shouldSelect&&ne.select())}},getFieldState:J}}function f6(e={}){const t=Qe.useRef(),r=Qe.useRef(),[n,a]=Qe.useState({isDirty:!1,isValidating:!1,isLoading:Ru(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ru(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...LZ(e),formState:n});const o=t.current.control;return o._options=e,Ox({subject:o._subjects.state,next:i=>{t6(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),Qe.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Qe.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==n.isDirty&&o._subjects.state.next({isDirty:i})}},[o,n.isDirty]),Qe.useEffect(()=>{e.values&&!Mc(e.values,r.current)?(o._reset(e.values,o._options.resetOptions),r.current=e.values,a(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),Qe.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Qe.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),Qe.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=e6(n,o),t.current}var $Z=p.createContext(void 0),DZ=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},NZ=function(e){var t,r,n;e===void 0&&(e={});var a=p.useContext($Z),o=e.choices&&BZ(e.choices)?zZ(e.choices):e.choices,i=Wz({data:o,isLoading:(t=e.isLoading)!==null&&t!==void 0?t:!1,isPending:(r=e.isPending)!==null&&r!==void 0?r:!1,isFetching:(n=e.isFetching)!==null&&n!==void 0?n:!1,error:e.error,perPage:1/0}),u=i.data,d=DZ(i,["data"]),l=p.useMemo(function(){var h,v,y,b,_,w,S,A,R,C,O,T,E,L,j,M,k,$,B,z,U,W;return e.choices||!a?{allChoices:u,availableChoices:(h=e.availableChoices)!==null&&h!==void 0?h:u,selectedChoices:(v=e.selectedChoices)!==null&&v!==void 0?v:u,displayedFilters:(y=e.selectedChoices)!==null&&y!==void 0?y:d.displayedFilters,error:e.error,filter:(b=e.filter)!==null&&b!==void 0?b:d.filter,filterValues:(_=e.filterValues)!==null&&_!==void 0?_:d.filterValues,hasNextPage:(w=e.hasNextPage)!==null&&w!==void 0?w:d.hasNextPage,hasPreviousPage:(S=e.hasPreviousPage)!==null&&S!==void 0?S:d.hasPreviousPage,hideFilter:(A=e.hideFilter)!==null&&A!==void 0?A:d.hideFilter,isLoading:(R=d.isLoading)!==null&&R!==void 0?R:!1,isPending:(C=d.isPending)!==null&&C!==void 0?C:!1,isFetching:(O=d.isFetching)!==null&&O!==void 0?O:!1,page:(T=e.page)!==null&&T!==void 0?T:d.page,perPage:(E=e.perPage)!==null&&E!==void 0?E:d.perPage,refetch:(L=e.refetch)!==null&&L!==void 0?L:d.refetch,resource:(j=e.resource)!==null&&j!==void 0?j:d.resource,setFilters:(M=e.setFilters)!==null&&M!==void 0?M:d.setFilters,setPage:(k=e.setPage)!==null&&k!==void 0?k:d.setPage,setPerPage:($=e.setPerPage)!==null&&$!==void 0?$:d.setPerPage,setSort:(B=e.setSort)!==null&&B!==void 0?B:d.setSort,showFilter:(z=e.showFilter)!==null&&z!==void 0?z:d.showFilter,sort:(U=e.sort)!==null&&U!==void 0?U:d.sort,source:e.source,total:(W=e.total)!==null&&W!==void 0?W:d.total,isFromReference:!1}:a},[a,u,d,e]);return l},BZ=function(e){return Array.isArray(e)&&e.every(function(t){return typeof t=="string"})},zZ=function(e){return e.map(function(t){return{id:t,name:t}})},p6=function(e){var t=e.optionText,r=t===void 0?"name":t,n=e.optionValue,a=n===void 0?"id":n,o=e.disableValue,i=o===void 0?"disabled":o,u=e.translateChoice,d=u===void 0?!0:u,l=e.createValue,h=l===void 0?"@@ra-create":l,v=e.createHintValue,y=v===void 0?"@@ra-create-hint":v,b=nt(),_=p.useCallback(function(A){if((A==null?void 0:A.id)===h||(A==null?void 0:A.id)===y)return or(A,typeof r=="string"?r:"name");if(p.isValidElement(r))return p.createElement(hd,{value:A},r);var R=typeof r=="function"?r(A):or(A,r);return p.isValidElement(R)?R:d?b(String(R),{_:R}):String(R)},[y,h,r,b,d]),w=p.useCallback(function(A){return or(A,a,or(A,"id"))},[a]),S=p.useCallback(function(A){return or(A,i)},[i]);return{getChoiceText:_,getChoiceValue:w,getDisableValue:S}},h6=p.createContext(void 0),RN=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},m6=function(e){var t=e.children,r=p.useRef({}),n=p.useRef({}),a=p.useMemo(function(){return{subscribe:function(o,i){return n.current[o]||(n.current[o]=[]),n.current[o].push(i),function(){n.current[o]=n.current[o].filter(function(u){return u!==i})}},getGroupFields:function(o){return r.current[o]||[]},registerGroup:function(o){r.current[o]=r.current[o]||[]},unregisterGroup:function(o){delete r[o]},registerField:function(o,i){i!=null&&((r.current[i]||[]).includes(o)||(r.current[i]=RN(RN([],r.current[i]||[],!0),[o],!1),n.current[i]&&n.current[i].forEach(function(u){return u()})))},unregisterField:function(o,i){if(i!=null)if(!r.current[i])console.warn("Invalid form group ".concat(i));else{var u=new Set(r.current[i]);u.delete(o),r.current[i]=Array.from(u),n.current[i]&&n.current[i].forEach(function(d){return d()})}}}},[]);return p.createElement(h6.Provider,{value:a},t)},qZ=function(e,t,r){var n=nt(),a=qb(r?{control:r}:void 0),o=a.isSubmitSuccessful,i=a.dirtyFields,u=Object.keys(i).length>0,d=p.useState(!1),l=d[0],h=d[1],v=!e||!u||o,y=OK(function(b){var _=b.currentLocation,w=b.nextLocation;if(v)return!1;var S=t||_.pathname,A=w.pathname.startsWith(S),R=w.pathname.startsWith("".concat(S,"/show")),C=A&&!R;return!C});p.useEffect(function(){if(y.state==="blocked"){if(v){y.proceed();return}h(!0)}},[y.state]),p.useEffect(function(){if(l){var b=window.confirm(n("ra.message.unsaved_changes"));b?y.proceed&&y.proceed():y.reset&&y.reset()}h(!1)},[l,n]),p.useEffect(function(){var b=function(_){_.preventDefault(),_.returnValue=!0};if(!v)return window.addEventListener("beforeunload",b),function(){window.removeEventListener("beforeunload",b)}},[v])},UZ=function(e){var t=e.enable,r=t===void 0?!0:t,n=e.formRootPathName,a=e.formControl;return qZ(r,n,a),null};function VZ(e,t){var r=_x({},WZ(e,t),t);return r}function WZ(e,t){return typeof e=="object"?e:typeof e=="function"?e(t):{}}var Tc=function(){return Tc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Tc.apply(this,arguments)},HZ=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},KZ=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},v6=function(e){return function(t){return HZ(void 0,void 0,void 0,function(){var r,n;return KZ(this,function(a){switch(a.label){case 0:return[4,e(t)];case 1:return r=a.sent(),!r||V1(r)?[2,{values:t,errors:{}}]:(n=vk(r),!n||V1(n)?[2,{values:t,errors:{}}]:[2,{values:{},errors:n}])}})})}},vk=function(e){return Object.keys(e).reduce(function(t,r){var n,a,o;if(Array.isArray(e[r])){var i=!1,u=e[r].map(function(d){return V1(d)||(i=!0),vk(d)});return i?Tc(Tc({},t),(n={},n[r]=u,n)):t}return V1(e[r])?t:typeof e[r]=="object"&&!g6(e[r])?Tc(Tc({},t),(a={},a[r]=vk(e[r]),a)):Tc(Tc({},t),(o={},o[r]=GZ(e[r]),o))},{})},GZ=function(e){return{type:"manual",message:g6(e)?e:{message:e}}},g6=function(e){return Object.keys(e).includes("message")&&Object.keys(e).includes("args")},V1=function(e){return e==null||Object.getOwnPropertyNames(e).length===0},y6=function(e,t){var r=function(n,a){Object.entries(n).forEach(function(o){var i=o[0],u=o[1];if(typeof u=="object"){r(u,"".concat(a).concat(i,"."));return}t("".concat(a).concat(i),{type:"server",message:u.toString()})})};r(e,"")},QZ=function(e,t){t===void 0&&(t=!0);var r=qb(e?{control:e}:void 0),n=r.submitCount,a=r.errors,o=p.useRef(n),i=Ur();p.useEffect(function(){var u,d;if(n>o.current&&t&&(o.current=n,Object.keys(a).length>0)){var l=typeof((d=(u=a.root)===null||u===void 0?void 0:u.serverError)===null||d===void 0?void 0:d.message)=="string"?a.root.serverError.message:void 0;i(l||"ra.message.invalid_form",{type:"error"})}},[a,n,i,t])},XZ=function(e,t){t===void 0&&(t={});var r={};return Object.keys(e).forEach(function(n){e[n]==null||e[n]===""?t.hasOwnProperty(n)&&(r[n]=null):r[n]=e[n]}),r},YZ=function(e){e===void 0&&(e={});var t=e.searchSource,r=e.stateSource,n=an(),a=p.useState(function(){return kN(n,{stateSource:r,searchSource:t})}),o=a[0],i=a[1],u=p.useRef(o);return p.useEffect(function(){var d=kN(n,{stateSource:r,searchSource:t});ii(d,u.current)||(u.current=d,i(d))},[n,r,t]),o},kN=function(e,t){var r=e.state,n=e.search,a=t===void 0?{}:t,o=a.searchSource,i=o===void 0?"source":o,u=a.stateSource,d=u===void 0?"record":u;if(r&&r[d])return r[d];if(n)try{var l=Um.parse(n),h=l[i];if(h)return Array.isArray(h)?(console.error("Failed to parse location ".concat(i," parameter '").concat(n,"'. To pre-fill some fields in the Create form, pass a stringified ").concat(i," parameter (e.g. '?").concat(i,`={"title":"foo"}')`)),null):JSON.parse(h)}catch{console.error("Failed to parse location ".concat(i," parameter '").concat(n,"'. To pre-fill some fields in the Create form, pass a stringified ").concat(i," parameter (e.g. '?").concat(i,`={"title":"foo"}')`))}return null},gk=function(){return gk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},gk.apply(this,arguments)},JZ=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},ZZ=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},eee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tee=function(e){var t=e.criteriaMode,r=t===void 0?"firstError":t,n=e.defaultValues;e.formRootPathname;var a=e.resolver,o=e.reValidateMode,i=o===void 0?"onChange":o,u=e.onSubmit,d=e.sanitizeEmptyValues,l=e.validate,h=e.disableInvalidFormNotification,v=eee(e,["criteriaMode","defaultValues","formRootPathname","resolver","reValidateMode","onSubmit","sanitizeEmptyValues","validate","disableInvalidFormNotification"]),y=rI(),b=gr(e),_=p.useMemo(function(){return VZ(n,b)},[JSON.stringify({defaultValues:typeof n=="function"?"function":n,record:b})]),w=a||(l?v6(l):void 0),S=f6(gk({criteriaMode:r,values:_,reValidateMode:i,resolver:w},v)),A=p.useRef(S);QZ(S.control,!h);var R=YZ(),C=p.useRef(!1),O=S.reset;p.useEffect(function(){R&&!C.current&&(O(_x({},_,R),{keepDefaultValues:!0}),C.current=!0)},[_,R,O]);var T=p.useCallback(function(L,j){return JZ(void 0,void 0,void 0,function(){var M,k;return ZZ(this,function($){switch($.label){case 0:return k=d?XZ(L,b):L,u?[4,u(k,j)]:[3,2];case 1:M=$.sent(),$.label=2;case 2:return u==null&&(y!=null&&y.save)?[4,y.save(k,j)]:[3,4];case 3:M=$.sent(),$.label=4;case 4:return M!=null&&y6(M,A.current.setError),[2]}})})},[u,y,d,b]),E=p.useCallback(function(L){L.defaultPrevented||(L.stopPropagation(),S.handleSubmit(T)(L))},[S,T]);return{form:S,handleSubmit:T,formHandleSubmit:E}},yk=function(){return yk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},yk.apply(this,arguments)};function Px(e){var t=e.children,r=e.id,n=e.className,a=e.noValidate,o=a===void 0?!1:a,i=e.formRootPathname,u=e.warnWhenUnsavedChanges,d=e.WarnWhenUnsavedChangesComponent,l=d===void 0?UZ:d,h=gr(e),v=er(e),y=tee(e),b=y.form,_=y.formHandleSubmit,w=p.useMemo(function(){return{getSource:function(R){return R},getLabel:function(R){return"resources.".concat(v,".fields.").concat(R)}}},[v]),S=p.useContext(dd),A=p.useContext(ov);return p.createElement(Bz,{value:h},p.createElement(Ax,{value:w},p.createElement(Zz,yk({},b),p.createElement(m6,null,p.createElement("form",{onSubmit:_,noValidate:o,id:r,className:n},t),u&&S&&A&&p.createElement(l,{enable:!0,formRootPathName:i,formControl:b.control})))))}var W1=function(){return W1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},W1.apply(this,arguments)},ree=function(){var e=ks().getValues;return W1(W1({},a6()),e())},bk=function(){return bk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},bk.apply(this,arguments)},_k=function(e){var t=ks();t.formState.isDirty;var r=ree();return p.createElement(nee,bk({formData:r},e))},nee=function(e){var t=e.children,r=e.formData,n=e.source,a,o=Ix(n||""),i=aee.exec(o);if(i){var u=or(r,i[0]);a=t({formData:r,scopedFormData:u})}else a=t({formData:r});return a===void 0?null:a},aee=new RegExp(/.+\.\d+$/),b6=p.createContext(null),Rx=function(){var e=p.useContext(h6);return e},oee=function(e){var t=e.children,r=e.name,n=Rx();return p.useEffect(function(){if(!n||!n.registerGroup||!n.unregisterGroup){console.warn("The FormGroupContextProvider can only be used inside a FormContext such as provided by the SimpleForm and TabbedForm components");return}return n.registerGroup(r),function(){n.unregisterGroup(r)}},[n,r]),p.createElement(b6.Provider,{value:r},t)},iee=function(e){var t=qb(),r=t.dirtyFields,n=t.touchedFields,a=t.validatingFields,o=t.errors,i=Object.keys(r),u=Object.keys(n),d=Object.keys(a),l=Object.keys(o),h=Rx(),v=p.useState({errors:void 0,isDirty:!1,isTouched:!1,isValid:!0,isValidating:!0}),y=v[0],b=v[1],_=fr(function(){if(h){var w=h.getGroupFields(e),S=w.map(function(R){return{name:R,error:or(o,R,void 0),isDirty:or(r,R,!1)!==!1,isValid:or(o,R,void 0)==null,isValidating:or(a,R,void 0)==null,isTouched:or(n,R,!1)!==!1}}).filter(function(R){return R!=null}),A=see(S);b(function(R){return ii(R,A)?R:A})}});return p.useEffect(function(){_()},[JSON.stringify(i),JSON.stringify(l),JSON.stringify(u),JSON.stringify(d),_,e,h]),p.useEffect(function(){if(h){var w=h.subscribe(e,function(){_()});return w}},[h,e,_]),y},see=function(e){return e.reduce(function(t,r){var n=t.errors||{};r.error&&(n[r.name]=r.error);var a={isDirty:t.isDirty||r.isDirty,errors:n,isTouched:t.isTouched||r.isTouched,isValid:t.isValid&&r.isValid,isValidating:t.isValidating&&r.isValidating};return a},{isDirty:!1,errors:void 0,isValid:!0,isTouched:!1,isValidating:!1})},_6=function(){var e=p.useContext(b6);return e},w6=function(e){var t=e.inputProps,r=e.isArrayInput,n=e.fieldArrayInputControl,a=t.defaultValue,o=t.source,i=Ix(o),u=gr(t),d=ks(),l=d.getValues,h=d.resetField,v=d.formState,y=d.reset,b=or(u,i),_=or(l(),i),w=v.dirtyFields,S=Object.keys(w).includes(i);p.useEffect(function(){if(!(a==null||_!=null||b!==void 0||S)){var A=i.split(".").some(function(O){return lee.test(O)});if(A){var R=i.split(".").slice(0,-1).join("."),C=or(l(),R);if(C==null)return}if(r){if(!n)throw new Error("useApplyInputDefaultValues: No fieldArrayInputControl passed in props for array input usage");n.replace(a),y({},{keepValues:!0});return}h(i,{defaultValue:a})}})},lee=/^\d+$/,wk=function(){return wk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},wk.apply(this,arguments)},uee=function(){var e=nt();return function(t){if(t.message!=null){var r=t,n=r.message,a=r.args;return e(n,wk({_:n},a))}return e(t,{_:t})}},cee=NB();const x6=Nn(cee);var dee=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,md=function(e){return typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0};function fee(e){return e?e.hasOwnProperty("message"):!1}var vd=function(e,t,r,n){return typeof e=="function"?e({args:t,value:r,values:n}):t?{message:e,args:t}:e},gd=function(e){return x6(e,function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return JSON.stringify(t)})},S6=function(e){return typeof e=="function"},pee=function(e,t){return function(r,n,a){var o=e(r,n,a);return o?typeof o=="string"||fee(o)?o:o.then(function(i){return i||t(r,n,a)}):t(r,n,a)}},hee=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(Array.isArray(e[0])?e[0]:e).filter(S6);return r.reduce(pee,function(){return null})},mee=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r,n,a){for(var o=(Array.isArray(e[0])?e[0]:e).filter(S6),i=0,u=o;i<u.length;i++){var d=u[i],l=d(r,n,a);if(l)return l}}},si=gd(function(e){return e===void 0&&(e="ra.validation.required"),Object.assign(function(t,r){return md(t)?vd(e,void 0,t,r):void 0},{isRequired:!0})});gd(function(e,t){return t===void 0&&(t="ra.validation.minLength"),function(r,n){return!md(r)&&r.length<e?vd(t,{min:e},r,n):void 0}});var H1=gd(function(e,t){return t===void 0&&(t="ra.validation.maxLength"),function(r,n){return!md(r)&&r.length>e?vd(t,{max:e},r,n):void 0}});gd(function(e,t){return t===void 0&&(t="ra.validation.minValue"),function(r,n){return!md(r)&&r<e?vd(t,{min:e},r,n):void 0}});var vee=gd(function(e,t){return t===void 0&&(t="ra.validation.maxValue"),function(r,n){return!md(r)&&r>e?vd(t,{max:e},r,n):void 0}}),C6=gd(function(e){return e===void 0&&(e="ra.validation.number"),function(t,r){return!md(t)&&isNaN(Number(t))?vd(e,void 0,t,r):void 0}}),pI=x6(function(e,t){return t===void 0&&(t="ra.validation.regex"),function(r,n){return!md(r)&&typeof r=="string"&&!e.test(r)?vd(t,{pattern:e},r,n):void 0}},function(e,t){return e.toString()+t});gd(function(e){return e===void 0&&(e="ra.validation.email"),pI(dee,e)});var gee=function(e){var t=e.args;return{message:"ra.validation.oneOf",args:t}};gd(function(e,t){return t===void 0&&(t=gee),function(r,n){return!md(r)&&e.indexOf(r)===-1?vd(t,{list:e},r,n):void 0}});var E6=function(e){return e&&e.isRequired?!0:Array.isArray(e)?!!e.find(function(t){return t.isRequired}):!1},xk=function(){return xk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},xk.apply(this,arguments)},TN="@@react-admin@@",yee=function(e){var t=e.error,r=t,n=nt();if(typeof t=="string"&&t.startsWith(TN)&&(r=JSON.parse(t.substring(TN.length))),r.message){var a=r,o=a.message,i=a.args;return p.createElement(p.Fragment,null,n(o,xk({_:o},i)))}return p.createElement(p.Fragment,null,n(r,{_:r}))},Af=function(){return Af=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Af.apply(this,arguments)},bee=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,[])).next())})},_ee=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},wee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},xee=function(e){return e??""},See=function(e){return e===""?null:e},Ub=function(e){var t=e.defaultValue,r=e.format,n=r===void 0?xee:r,a=e.id,o=e.isRequired,i=e.name,u=e.onBlur,d=e.onChange,l=e.parse,h=l===void 0?See:l,v=e.source,y=e.validate,b=wee(e,["defaultValue","format","id","isRequired","name","onBlur","onChange","parse","source","validate"]),_=Ix(v),w=i||_,S=_6(),A=Rx(),R=gr(),C=fr(h),O=p.useId();p.useEffect(function(){if(!(!A||S==null))return A.registerField(_,S),function(){A.unregisterField(_,S)}},[A,S,_]);var T=Array.isArray(y)?hee(y):y,E=SZ(Af({name:w,defaultValue:or(R,_,t),rules:{validate:function(z,U){return bee(void 0,void 0,void 0,function(){var W;return _ee(this,function(Q){switch(Q.label){case 0:return T?[4,T(z,U,Af(Af({},e),{finalSource:_}))]:[2,!0];case 1:return W=Q.sent(),W?[2,"@@react-admin@@".concat(JSON.stringify(W))]:[2,!0]}})})}}},b)),L=E.field,j=E.fieldState,M=E.formState;w6({inputProps:e});var k=fr(function(){for(var z=[],U=0;U<arguments.length;U++)z[U]=arguments[U];L.onBlur(),u&&u.apply(void 0,z)}),$=fr(function(){for(var z,U,W,Q,V,K=[],X=0;X<arguments.length;X++)K[X]=arguments[X];var te=e.type==="checkbox"&&((U=(z=K[0])===null||z===void 0?void 0:z.target)===null||U===void 0?void 0:U.value)==="on"?K[0].target.checked:(V=(Q=(W=K[0])===null||W===void 0?void 0:W.target)===null||Q===void 0?void 0:Q.value)!==null&&V!==void 0?V:K[0];L.onChange(C?C(te):te),d&&d.apply(void 0,K)}),B=Af(Af({},L),{value:n?n(L.value):L.value,onBlur:k,onChange:$});return{id:a||O,field:B,fieldState:j,formState:M,isRequired:o||E6(y)}},i2,AN;function Cee(){if(AN)return i2;AN=1;var e=sz(),t=fz(),r=t(function(n,a,o,i){e(n,a,o,i)});return i2=r,i2}var Eee=Cee();const Oee=Nn(Eee);var ab=function(){return ab=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ab.apply(this,arguments)},Pee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Ree=function(e){var t=Va(),r=t.filterValues,n=t.setFilters,a=er(e),o=e.debounce,i=o===void 0?500:o,u=e.resolver,d=e.validate,l=e.children,h=e.formComponent,v=h===void 0?kee:h,y=Pee(e,["debounce","resolver","validate","children","formComponent"]),b=u||(d?v6(d):void 0),_=f6(ab({mode:"onChange",resolver:b},y)),w=_.handleSubmit,S=_.getValues,A=_.reset,R=_.watch,C=_.formState,O=C.isValid;p.useEffect(function(){var j=Iee(S(),r),M=S();ii(j,M)||A(j)},[JSON.stringify(r),S,A]);var T=function(j){O&&n(Aee(r,j))},E=Ote(T,i||0);p.useEffect(function(){var j=R(function(M,k){var $=k.name;if($)if(or(M,$)===""){var B=hz(M);fx(B,$,""),E(B)}else E(M)}).unsubscribe;return function(){return j()}},[R,E]);var L=p.useMemo(function(){return{getSource:function(j){return j},getLabel:function(j){return"resources.".concat(a,".fields.").concat(j)}}},[a]);return p.createElement(Zz,ab({},_),p.createElement(m6,null,p.createElement(Ax,{value:L},p.createElement(v,{onSubmit:w(T)},l))))},kee=function(e){return p.createElement("form",ab({},e))},Tee=function(e,t){if(Array.isArray(t))return t},Aee=function(e,t){return Oee(hz(e),t,Tee)},Iee=function(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=O6(e,n,t),r},{})},O6=function(e,t,r){if(e[t]===void 0||e[t]===null||Array.isArray(e[t])||e[t]instanceof Date)return or(r,t,"");if(typeof e[t]=="object"){var n=Object.keys(e[t]).reduce(function(a,o){var i,u=O6(e[t],o,(i=(r||{})[t])!==null&&i!==void 0?i:{});return a[o]=u,a},{});return Object.keys(n).length?n:""}return or(r,t,"")},Sk=function(){return Sk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Sk.apply(this,arguments)},jee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Mee=function(e){e===void 0&&(e={});var t=e.disableAuthentication,r=t===void 0?!1:t,n=e.id,a=e.queryOptions,o=a===void 0?{}:a,i=er(e);if(!i)throw new Error("useShowController requires a non-empty resource prop or context");var u=fp({enabled:!r}).isPending,d=Mx({action:"show",resource:i,enabled:!r&&!u}).isPending,l=Hb(i),h=nt(),v=Ur(),y=dv(),b=jl(),_=Lb().id;if(!_&&!n)throw new Error("useShowController requires an id prop or a route with an /:id? parameter.");var w=n??_,S=o.meta,A=jee(o,["meta"]),R=Sz(i,{id:w,meta:S},Sk({enabled:!u&&!d||r,onError:function(){v("ra.notification.item_doesnt_exist",{type:"error"}),y("list",i),b()},retry:!1},A)),C=R.data,O=R.error,T=R.isLoading,E=R.isFetching,L=R.isPending,j=R.refetch;if(C&&C.id&&C.id!=w)throw new Error("useShowController: Fetched record's id attribute (".concat(C.id,") must match the requested 'id' (").concat(w,")"));var M=dp(),k=l(C),$=h("ra.page.show",{name:M(i,1),id:w,record:C,recordRepresentation:typeof k=="string"?k:""});return{defaultTitle:$,error:O,isLoading:T,isFetching:E,isPending:L,record:C,refetch:j,resource:i}},hI=p.createContext(null);hI.displayName="ShowContext";var Fee=function(e){var t=e.children,r=e.value;return p.createElement(hI.Provider,{value:r},p.createElement(hd,{value:r&&r.record},t))},Lee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},$ee=function(e){var t=e.children,r=e.loading,n=r===void 0?null:r,a=Lee(e,["children","loading"]),o=Mee(a),i=jx({resource:o.resource,action:"show"});return i&&!a.disableAuthentication?n:p.createElement(pv,{value:a.resource},p.createElement(Fee,{value:o},t))},Dee=function(){var e=p.useContext(hI);if(!e)throw new Error("useShowContext must be used inside a ShowContextProvider");return e},P6=p.createContext(function(){}),R6=p.createContext(function(){}),IN=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Nee=function(e){var t=e.children,r=p.useState([]),n=r[0],a=r[1],o=p.useCallback(function(u){a(function(d){return IN(IN([],d,!0),[u],!1)})},[]),i=p.useCallback(function(){if(n.length!==0){var u=n[0],d=n.slice(1);return a(d),u}},[n]);return p.createElement(R6.Provider,{value:i},p.createElement(P6.Provider,{value:o},t))},kx=function(){return p.useContext(P6)},Bee=function(){return p.useContext(R6)},Da=function(){return Da=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Da.apply(this,arguments)},jN=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},MN=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},FN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Vb=function(e,t,r){t===void 0&&(t={}),r===void 0&&(r={});var n=co(),a=Ea(),o=kx(),i=t.data,u=t.meta,d=r.mutationMode,l=d===void 0?"pessimistic":d,h=r.getMutateWithMiddlewares,v=FN(r,["mutationMode","getMutateWithMiddlewares"]),y=p.useRef(l),b=p.useRef(t),_=p.useRef([]),w=p.useRef(n.create),S=p.useRef(),A=p.useRef(),R=p.useRef(!1),C=function(L){var j=L.resource,M=L.id,k=L.data,$=L.meta,B=Date.now(),z=y.current==="undoable"?B+5*1e3:B,U=JSON.parse(JSON.stringify(k));a.setQueryData([j,"getOne",{id:String(M),meta:$}],function(W){return Da(Da({},W),U)},{updatedAt:z})},O=Mb(Da(Da({mutationFn:function(L){var j=L===void 0?{}:L,M=j.resource,k=M===void 0?e:M,$=j.data,B=$===void 0?b.current.data:$,z=j.meta,U=z===void 0?b.current.meta:z;if(!k)throw new Error("useCreate mutation requires a non-empty resource");if(!B)throw new Error("useCreate mutation requires a non-empty data object");return w.current(k,{data:B,meta:U}).then(function(W){var Q=W.data;return Q})}},v),{onMutate:function(L){return jN(void 0,void 0,void 0,function(){var j;return MN(this,function(M){switch(M.label){case 0:return v.onMutate?[4,v.onMutate(L)]:[3,2];case 1:return j=M.sent()||{},[2,Da({snapshot:_.current},j)];case 2:return[2,{snapshot:_.current}]}})})},onError:function(L,j,M){if((y.current==="optimistic"||y.current==="undoable")&&M.snapshot.forEach(function(k){var $=k[0],B=k[1];a.setQueryData($,B)}),S.current)return S.current(L,j,M);if(v.onError)return v.onError(L,j,M)},onSuccess:function(L,j,M){if(j===void 0&&(j={}),y.current==="pessimistic"){var k=j.resource,$=k===void 0?e:k;a.setQueryData([$,"getOne",{id:String(L.id)}],L),a.invalidateQueries({queryKey:[$,"getList"]}),a.invalidateQueries({queryKey:[$,"getInfiniteList"]}),a.invalidateQueries({queryKey:[$,"getMany"]}),a.invalidateQueries({queryKey:[$,"getManyReference"]}),v.onSuccess&&!R.current&&v.onSuccess(L,j,M)}},onSettled:function(L,j,M,k){if((y.current==="optimistic"||y.current==="undoable")&&k.snapshot.forEach(function($){var B=$[0];a.invalidateQueries({queryKey:B})}),A.current)return A.current(L,j,M,k);if(v.onSettled)return v.onSettled(L,j,M,k)}})),T=function(L,j,M){return L===void 0&&(L=e),j===void 0&&(j={}),M===void 0&&(M={}),jN(void 0,void 0,void 0,function(){var k,$,B,z,U,W,Q,V,K,X,te,G,J;return MN(this,function(de){switch(de.label){case 0:return k=M.mutationMode,$=M.returnPromise,B=$===void 0?v.returnPromise:$,z=M.onError,U=M.onSettled,W=M.onSuccess,Q=FN(M,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),h?w.current=h(n.create.bind(n)):w.current=n.create,R.current=!!W,S.current=z,A.current=U,b.current=t,k&&(y.current=k),B&&y.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),y.current==="pessimistic"?B?[2,O.mutateAsync(Da({resource:L},j),Da({onSuccess:W},Q))]:[2,O.mutate(Da({resource:L},j),Da({onSuccess:W},Q))]:(V=j.data,K=V===void 0?i:V,X=j.meta,te=X===void 0?u:X,G=K==null?void 0:K.id,G==null&&console.warn("useCreate() data parameter must contain an id key when used with the optimistic or undoable modes"),J=[[L,"getOne",{id:String(G),meta:te}],[L,"getList"],[L,"getInfiniteList"],[L,"getMany"],[L,"getManyReference"]],_.current=J.reduce(function(ce,ue){return ce.concat(a.getQueriesData({queryKey:ue}))},[]),[4,Promise.all(_.current.map(function(ce){var ue=ce[0];return a.cancelQueries({queryKey:ue})}))]);case 1:return de.sent(),C({resource:L,id:G,data:K,meta:te}),setTimeout(function(){W?W(K,Da({resource:L},j),{snapshot:_.current}):v.onSuccess&&!R.current&&v.onSuccess(K,Da({resource:L},j),{snapshot:_.current})},0),y.current==="optimistic"?[2,O.mutate(Da({resource:L},j))]:(o(function(ce){var ue=ce.isUndo;ue?(a.removeQueries({queryKey:[L,"getOne",{id:String(G),meta:u}],exact:!0}),_.current.forEach(function(be){var Pe=be[0],Ee=be[1];a.setQueryData(Pe,Ee)})):O.mutate(Da({resource:L},j))}),[2])}})})},E=p.useMemo(function(){return Da({isLoading:O.isPending},O)},[O]);return[fr(T),E]},Lr=function(){return Lr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Lr.apply(this,arguments)},LN=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},$N=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},DN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},s2=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},zee=function(e,t,r){t===void 0&&(t={}),r===void 0&&(r={});var n=co(),a=Ea(),o=kx(),i=t.id,u=t.data,d=t.meta,l=r.mutationMode,h=l===void 0?"pessimistic":l,v=r.getMutateWithMiddlewares,y=DN(r,["mutationMode","getMutateWithMiddlewares"]),b=p.useRef(h),_=p.useRef(t),w=p.useRef([]),S=p.useRef(n.update),A=p.useRef(),R=p.useRef(),C=p.useRef(!1),O=function(j){var M=j.resource,k=j.id,$=j.data,B=j.meta,z=Date.now(),U=b.current==="undoable"?z+5*1e3:z,W=JSON.parse(JSON.stringify($)),Q=function(V){if(!V)return V;var K=V.findIndex(function(X){return X.id==k});return K===-1?V:s2(s2(s2([],V.slice(0,K),!0),[Lr(Lr({},V[K]),W)],!1),V.slice(K+1),!0)};a.setQueryData([M,"getOne",{id:String(k),meta:B}],function(V){return Lr(Lr({},V),W)},{updatedAt:U}),a.setQueriesData({queryKey:[M,"getList"]},function(V){return V&&V.data?Lr(Lr({},V),{data:Q(V.data)}):V},{updatedAt:U}),a.setQueriesData({queryKey:[M,"getInfiniteList"]},function(V){return V&&V.pages?Lr(Lr({},V),{pages:V.pages.map(function(K){return Lr(Lr({},K),{data:Q(K.data)})})}):V},{updatedAt:U}),a.setQueriesData({queryKey:[M,"getMany"]},function(V){return V&&V.length>0?Q(V):V},{updatedAt:U}),a.setQueriesData({queryKey:[M,"getManyReference"]},function(V){return V&&V.data?{data:Q(V.data),total:V.total}:V},{updatedAt:U})},T=Mb(Lr(Lr({mutationFn:function(j){var M=j===void 0?{}:j,k=M.resource,$=k===void 0?e:k,B=M.id,z=B===void 0?_.current.id:B,U=M.data,W=U===void 0?_.current.data:U,Q=M.meta,V=Q===void 0?_.current.meta:Q,K=M.previousData,X=K===void 0?_.current.previousData:K;if(!$)throw new Error("useUpdate mutation requires a non-empty resource");if(z==null)throw new Error("useUpdate mutation requires a non-empty id");if(!W)throw new Error("useUpdate mutation requires a non-empty data object");return S.current($,{id:z,data:W,previousData:X,meta:V}).then(function(te){var G=te.data;return G})}},y),{onMutate:function(j){return LN(void 0,void 0,void 0,function(){var M;return $N(this,function(k){switch(k.label){case 0:return y.onMutate?[4,y.onMutate(j)]:[3,2];case 1:return M=k.sent()||{},[2,Lr({snapshot:w.current},M)];case 2:return[2,{snapshot:w.current}]}})})},onError:function(j,M,k){if(M===void 0&&(M={}),(b.current==="optimistic"||b.current==="undoable")&&k.snapshot.forEach(function($){var B=$[0],z=$[1];a.setQueryData(B,z)}),A.current)return A.current(j,M,k);if(y.onError)return y.onError(j,M,k)},onSuccess:function(j,M,k){if(M===void 0&&(M={}),b.current==="pessimistic"){var $=M.resource,B=$===void 0?e:$,z=M.id,U=z===void 0?i:z,W=M.meta,Q=W===void 0?d:W;O({resource:B,id:U,data:j,meta:Q}),y.onSuccess&&!C.current&&y.onSuccess(j,M,k)}},onSettled:function(j,M,k,$){if(k===void 0&&(k={}),(b.current==="optimistic"||b.current==="undoable")&&$.snapshot.forEach(function(B){var z=B[0];a.invalidateQueries({queryKey:z})}),R.current)return R.current(j,M,k,$);if(y.onSettled)return y.onSettled(j,M,k,$)}})),E=function(j,M,k){return j===void 0&&(j=e),M===void 0&&(M={}),k===void 0&&(k={}),LN(void 0,void 0,void 0,function(){var $,B,z,U,W,Q,V,K,X,te,G,J,de,ce,ue;return $N(this,function(be){switch(be.label){case 0:return $=k.mutationMode,B=k.returnPromise,z=B===void 0?y.returnPromise:B,U=k.onError,W=k.onSettled,Q=k.onSuccess,V=DN(k,["mutationMode","returnPromise","onError","onSettled","onSuccess"]),v?S.current=v(n.update.bind(n)):S.current=n.update,C.current=!!Q,A.current=U,R.current=W,_.current=t,$&&(b.current=$),z&&b.current!=="pessimistic"&&console.warn("The returnPromise parameter can only be used if the mutationMode is set to pessimistic"),b.current==="pessimistic"?z?[2,T.mutateAsync(Lr({resource:j},M),Lr({onSuccess:Q},V))]:[2,T.mutate(Lr({resource:j},M),Lr({onSuccess:Q},V))]:(K=M.id,X=K===void 0?i:K,te=M.data,G=te===void 0?u:te,J=M.meta,de=J===void 0?d:J,ce=a.getQueryData([j,"getOne",{id:String(X),meta:de}]),ue=[[j,"getOne",{id:String(X),meta:de}],[j,"getList"],[j,"getInfiniteList"],[j,"getMany"],[j,"getManyReference"]],w.current=ue.reduce(function(Pe,Ee){return Pe.concat(a.getQueriesData({queryKey:Ee}))},[]),[4,Promise.all(w.current.map(function(Pe){var Ee=Pe[0];return a.cancelQueries({queryKey:Ee})}))]);case 1:return be.sent(),O({resource:j,id:X,data:G,meta:de}),setTimeout(function(){Q?Q(Lr(Lr({},ce),G),Lr({resource:j},M),{snapshot:w.current}):y.onSuccess&&!C.current&&y.onSuccess(Lr(Lr({},ce),G),Lr({resource:j},M),{snapshot:w.current})},0),b.current==="optimistic"?[2,T.mutate(Lr({resource:j},M))]:(o(function(Pe){var Ee=Pe.isUndo;Ee?w.current.forEach(function(ge){var xe=ge[0],Oe=ge[1];a.setQueryData(xe,Oe)}):T.mutate(Lr({resource:j},M))}),[2])}})})},L=p.useMemo(function(){return Lr({isLoading:T.isPending},T)},[T]);return[fr(E),L]},eo=function(){return eo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},eo.apply(this,arguments)},NN=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},BN=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},zN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},qN=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Wb=function(e,t,r){t===void 0&&(t={}),r===void 0&&(r={});var n=co(),a=Ea(),o=kx(),i=t.id,u=t.previousData,d=r.mutationMode,l=d===void 0?"pessimistic":d,h=zN(r,["mutationMode"]),v=p.useRef(l),y=p.useRef(t),b=p.useRef([]),_=p.useRef(!1),w=p.useRef(!1),S=p.useRef(!1),A=function(T){var E=T.resource,L=T.id,j=Date.now(),M=v.current==="undoable"?j+5*1e3:j,k=function($){if(!$)return $;var B=$.findIndex(function(z){return z.id==L});return B===-1?$:qN(qN([],$.slice(0,B),!0),$.slice(B+1),!0)};a.setQueriesData({queryKey:[E,"getList"]},function($){if(!$||!$.data)return $;var B=k($.data),z=B.length<$.data.length;return z?{data:B,total:$.total?$.total-1:void 0,pageInfo:$.pageInfo}:$},{updatedAt:M}),a.setQueriesData({queryKey:[E,"getInfiniteList"]},function($){return!$||!$.pages?$:eo(eo({},$),{pages:$.pages.map(function(B){var z=k(B.data),U=z.length<B.data.length;return U?eo(eo({},B),{data:z,total:B.total?B.total-1:void 0,pageInfo:B.pageInfo}):B})})},{updatedAt:M}),a.setQueriesData({queryKey:[E,"getMany"]},function($){return $&&$.length>0?k($):$},{updatedAt:M}),a.setQueriesData({queryKey:[E,"getManyReference"]},function($){if(!$||!$.data)return $;var B=k($.data),z=B.length<$.data.length;return z?{data:B,total:$.total-1}:$},{updatedAt:M})},R=Mb(eo(eo({mutationFn:function(T){var E=T===void 0?{}:T,L=E.resource,j=L===void 0?e:L,M=E.id,k=M===void 0?y.current.id:M,$=E.previousData,B=$===void 0?y.current.previousData:$,z=E.meta,U=z===void 0?y.current.meta:z;if(!j)throw new Error("useDelete mutation requires a non-empty resource");if(k==null)throw new Error("useDelete mutation requires a non-empty id");return n.delete(j,{id:k,previousData:B,meta:U}).then(function(W){var Q=W.data;return Q})}},h),{onMutate:function(T){return NN(void 0,void 0,void 0,function(){var E;return BN(this,function(L){switch(L.label){case 0:return h.onMutate?[4,h.onMutate(T)]:[3,2];case 1:return E=L.sent()||{},[2,eo({snapshot:b.current},E)];case 2:return[2,{snapshot:b.current}]}})})},onError:function(T,E,L){if(E===void 0&&(E={}),(v.current==="optimistic"||v.current==="undoable")&&L.snapshot.forEach(function(j){var M=j[0],k=j[1];a.setQueryData(M,k)}),h.onError&&!_.current)return h.onError(T,E,L)},onSuccess:function(T,E,L){if(E===void 0&&(E={}),v.current==="pessimistic"){var j=E.resource,M=j===void 0?e:j,k=E.id,$=k===void 0?i:k;A({resource:M,id:$}),h.onSuccess&&!w.current&&h.onSuccess(T,E,L)}},onSettled:function(T,E,L,j){if(L===void 0&&(L={}),j.snapshot.forEach(function(M){var k=M[0];a.invalidateQueries({queryKey:k})}),h.onSettled&&!S.current)return h.onSettled(T,E,L,j)}})),C=function(T,E,L){return T===void 0&&(T=e),E===void 0&&(E={}),L===void 0&&(L={}),NN(void 0,void 0,void 0,function(){var j,M,k,$,B,z,U;return BN(this,function(W){switch(W.label){case 0:return j=L.mutationMode,M=zN(L,["mutationMode"]),_.current=!!L.onError,w.current=!!L.onSuccess,S.current=!!L.onSettled,y.current=t,j&&(v.current=j),k=E.id,$=k===void 0?i:k,B=E.previousData,z=B===void 0?u:B,U=[[T,"getList"],[T,"getInfiniteList"],[T,"getMany"],[T,"getManyReference"]],b.current=U.reduce(function(Q,V){return Q.concat(a.getQueriesData({queryKey:V}))},[]),v.current==="pessimistic"?[2,R.mutate(eo({resource:T},E),M)]:[4,Promise.all(b.current.map(function(Q){var V=Q[0];return a.cancelQueries({queryKey:V})}))];case 1:return W.sent(),A({resource:T,id:$}),setTimeout(function(){L.onSuccess?L.onSuccess(z,eo({resource:T},E),{snapshot:b.current}):h.onSuccess&&h.onSuccess(z,eo({resource:T},E),{snapshot:b.current})},0),v.current==="optimistic"?[2,R.mutate(eo({resource:T},E),{onSettled:L.onSettled,onError:L.onError})]:(o(function(Q){var V=Q.isUndo;V?b.current.forEach(function(K){var X=K[0],te=K[1];a.setQueryData(X,te)}):R.mutate(eo({resource:T},E),{onSettled:L.onSettled,onError:L.onError})}),[2])}})})},O=p.useMemo(function(){return eo({isLoading:R.isPending},R)},[R]);return[fr(C),O]},to=function(){return to=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},to.apply(this,arguments)},UN=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},VN=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},WN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},l2=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},k6=function(e,t,r){t===void 0&&(t={}),r===void 0&&(r={});var n=co(),a=Ea(),o=kx(),i=t.ids,u=r.mutationMode,d=u===void 0?"pessimistic":u,l=WN(r,["mutationMode"]),h=p.useRef(d),v=p.useRef({}),y=p.useRef([]),b=p.useRef(!1),_=p.useRef(!1),w=p.useRef(!1),S=function(O){var T=O.resource,E=O.ids,L=Date.now(),j=h.current==="undoable"?L+5*1e3:L,M=function(k){if(!k)return k;var $=l2([],k,!0);return E.forEach(function(B){var z=$.findIndex(function(U){return U.id==B});z!==-1&&($=l2(l2([],$.slice(0,z),!0),$.slice(z+1),!0))}),$};a.setQueriesData({queryKey:[T,"getList"]},function(k){if(!k||!k.data)return k;var $=M(k.data),B=$.length<k.data.length;return B?{data:$,total:k.total?k.total-(k.data.length-$.length):void 0,pageInfo:k.pageInfo}:k},{updatedAt:j}),a.setQueriesData({queryKey:[T,"getInfiniteList"]},function(k){return!k||!k.pages?k:to(to({},k),{pages:k.pages.map(function($){var B=M($.data),z=B.length<$.data.length;return z?to(to({},$),{data:B,total:$.total?$.total-($.data.length-B.length):void 0,pageInfo:$.pageInfo}):$})})},{updatedAt:j}),a.setQueriesData({queryKey:[T,"getMany"]},function(k){return k&&k.length>0?M(k):k},{updatedAt:j}),a.setQueriesData({queryKey:[T,"getManyReference"]},function(k){if(!k||!k.data)return k;var $=M(k.data),B=$.length<k.data.length;if(!B)return k;if(k.total)return{data:$,total:k.total-(k.data.length-$.length)};if(k.pageInfo)return{data:$,pageInfo:k.pageInfo};throw new Error("Found getList result in cache without total or pageInfo")},{updatedAt:j})},A=Mb(to(to({mutationFn:function(O){var T=O===void 0?{}:O,E=T.resource,L=E===void 0?e:E,j=T.ids,M=j===void 0?v.current.ids:j,k=T.meta,$=k===void 0?v.current.meta:k;if(!L)throw new Error("useDeleteMany mutation requires a non-empty resource");if(!M)throw new Error("useDeleteMany mutation requires an array of ids");return M.length===0?Promise.resolve([]):n.deleteMany(L,{ids:M,meta:$}).then(function(B){var z=B.data;return z||[]})}},l),{onMutate:function(O){return UN(void 0,void 0,void 0,function(){var T;return VN(this,function(E){switch(E.label){case 0:return l.onMutate?[4,l.onMutate(O)]:[3,2];case 1:return T=E.sent()||{},[2,to({snapshot:y.current},T)];case 2:return[2,{snapshot:y.current}]}})})},onError:function(O,T,E){if(T===void 0&&(T={}),(h.current==="optimistic"||h.current==="undoable")&&E.snapshot.forEach(function(L){var j=L[0],M=L[1];a.setQueryData(j,M)}),l.onError&&!b.current)return l.onError(O,T,E)},onSuccess:function(O,T,E){if(T===void 0&&(T={}),h.current==="pessimistic"){var L=T.resource,j=L===void 0?e:L,M=T.ids,k=M===void 0?i:M;S({resource:j,ids:k}),l.onSuccess&&!_.current&&l.onSuccess(O,T,E)}},onSettled:function(O,T,E,L){if(E===void 0&&(E={}),(h.current==="optimistic"||h.current==="undoable")&&L.snapshot.forEach(function(j){var M=j[0];a.invalidateQueries({queryKey:M})}),l.onSettled&&!w.current)return l.onSettled(O,T,E,L)}})),R=function(O,T,E){return O===void 0&&(O=e),T===void 0&&(T={}),E===void 0&&(E={}),UN(void 0,void 0,void 0,function(){var L,j,M,k,$;return VN(this,function(B){switch(B.label){case 0:if(L=E.mutationMode,j=WN(E,["mutationMode"]),b.current=!!E.onError,_.current=!!E.onSuccess,w.current=!!E.onSettled,v.current=t,L&&(h.current=L),h.current==="pessimistic")return[2,A.mutate(to({resource:O},T),{onSuccess:j.onSuccess,onSettled:j.onSettled,onError:j.onError})];if(M=T.ids,k=M===void 0?i:M,!k)throw new Error("useDeleteMany mutation requires an array of ids");return $=[[O,"getList"],[O,"getInfiniteList"],[O,"getMany"],[O,"getManyReference"]],y.current=$.reduce(function(z,U){return z.concat(a.getQueriesData({queryKey:U}))},[]),[4,Promise.all(y.current.map(function(z){var U=z[0];return a.cancelQueries({queryKey:U})}))];case 1:return B.sent(),S({resource:O,ids:k}),setTimeout(function(){j.onSuccess?j.onSuccess(k,to({resource:O},T),{snapshot:y.current}):l.onSuccess&&l.onSuccess(k,to({resource:O},T),{snapshot:y.current})},0),h.current==="optimistic"?[2,A.mutate(to({resource:O},T),{onSettled:j.onSettled,onError:j.onError})]:(o(function(z){var U=z.isUndo;U?y.current.forEach(function(W){var Q=W[0],V=W[1];a.setQueryData(Q,V)}):A.mutate(to({resource:O},T),{onSettled:j.onSettled,onError:j.onError})}),[2])}})})},C=p.useMemo(function(){return to({isLoading:A.isPending},A)},[A]);return[fr(R),C]},T6=p.createContext(void 0),qee=function(e){var t=e.children,r=p.useState(!1),n=r[0],a=r[1],o=p.useState(null),i=o[0],u=o[1],d=p.useState(null),l=d[0],h=d[1],v=p.useState(null),y=v[0],b=v[1],_=p.useState(null),w=_[0],S=_[1],A=p.useState(),R=A[0],C=A[1],O=p.useCallback(function(){return a(!0)},[]),T=p.useCallback(function(){a(!1),u(null)},[]),E=p.useCallback(function(j,M){S(j),C(M)},[]),L=p.useMemo(function(){return{editor:i,setEditor:u,preferenceKey:l,setPreferenceKey:h,title:w,titleOptions:R,setTitle:E,isEnabled:n,disable:T,enable:O,path:y,setPath:b}},[T,O,i,l,n,y,b,w,R,E]);return p.createElement(T6.Provider,{value:L},t)},Uee=qB(),Vee=function(e){var t=e.authProvider,r=e.basename,n=e.dataProvider,a=n===void 0?ZA:n,o=e.i18nProvider,i=e.store,u=i===void 0?Uee:i,d=e.children,l=e.queryClient;if(!a)throw new Error(`Missing dataProvider prop.
React-admin requires a valid dataProvider function to work.`);var h=p.useMemo(function(){return l||new KH},[l]),v=p.useMemo(function(){return t instanceof Function?zte(t):t},[t]),y=p.useMemo(function(){return a instanceof Function?sY(a):a},[a]);return p.createElement(hA.Provider,{value:v},p.createElement(eI.Provider,{value:y},p.createElement(uQ,{value:u},p.createElement(qee,null,p.createElement(JH,{client:h},p.createElement(EX,{basename:r},p.createElement(zQ,{value:o},p.createElement(DQ,null,p.createElement(Nee,null,p.createElement(BX,null,d))))))))))};const Wee=p.createContext(null),u2={didCatch:!1,error:null};class A6 extends p.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=u2}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:o,reason:"imperative-api"}),this.setState(u2)}}componentDidCatch(t,r){var n,a;(n=(a=this.props).onError)===null||n===void 0||n.call(a,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:a}=this.props;if(n&&r.error!==null&&Hee(t.resetKeys,a)){var o,i;(o=(i=this.props).onReset)===null||o===void 0||o.call(i,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(u2)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:a}=this.props,{didCatch:o,error:i}=this.state;let u=t;if(o){const d={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")u=r(d);else if(n)u=p.createElement(n,d);else if(a===null||p.isValidElement(a))u=a;else throw i}return p.createElement(Wee.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},u)}}function Hee(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var If=function(){return If=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},If.apply(this,arguments)},Kee=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,[])).next())})},Gee=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Qee=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Xee={},I6=function(e,t){e===void 0&&(e=Xee),t===void 0&&(t={staleTime:5*60*1e3});var r=pi(),n=xz(),a=t??{},o=a.onSuccess,i=a.onError,u=a.onSettled,d=Qee(a,["onSuccess","onError","onSettled"]),l=Tl(If({queryKey:["auth","getPermissions",e],queryFn:function(_){var w=_.signal;return Kee(void 0,void 0,void 0,function(){var S;return Gee(this,function(A){switch(A.label){case 0:return!r||!r.getPermissions?[2,[]]:[4,r.getPermissions(If(If({},e),{signal:w}))];case 1:return S=A.sent(),[2,S??null]}})})}},d)),h=fr(o??HN),v=fr(u??HN),y=fr(i??function(_){n(_)});p.useEffect(function(){l.data===void 0||l.isFetching||h(l.data)},[h,l.data,l.isFetching]),p.useEffect(function(){l.error==null||l.isFetching||y(l.error)},[y,l.error,l.isFetching]),p.useEffect(function(){l.status==="pending"||l.isFetching||v(l.data,l.error)},[v,l.data,l.error,l.status,l.isFetching]);var b=p.useMemo(function(){return If(If({},l),{permissions:l.data})},[l]);return!r||!r.getPermissions?j6:b},HN=function(){},j6={permissions:void 0,data:void 0,dataUpdatedAt:0,error:null,errorUpdatedAt:0,errorUpdateCount:0,failureCount:0,failureReason:null,fetchStatus:"idle",isError:!1,isInitialLoading:!1,isLoading:!1,isLoadingError:!1,isFetched:!0,isFetchedAfterMount:!0,isFetching:!1,isPaused:!1,isPlaceholderData:!1,isPending:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,isSuccess:!0,status:"success",refetch:function(){return Promise.resolve(j6)}},Ck=function(){return Ck=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ck.apply(this,arguments)},KN=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},GN=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Yee=function(e){var t=I6(),r=t.permissions,n=t.isPending,a=Jee(e,r,n),o=a[0],i=a[1];return ete(o.resources,r),{customRoutesWithLayout:o.customRoutesWithLayout,customRoutesWithoutLayout:o.customRoutesWithoutLayout,status:i,resources:o.resources}},Jee=function(e,t,r){var n=hv(),a=Zee(fy(e)),o=a[0],i=a[1],u=a[2],d=p.useState(function(){return tte(Ck({children:e},o))}),l=d[0],h=d[1];if(!l)throw new Error("Status should be defined");return p.useEffect(function(){var v=function(b){return KN(void 0,void 0,void 0,function(){var _;return GN(this,function(w){try{_=b(t),_!=null&&_.then?_.then(function(S){u(fy(S)),h("ready")}):(u(fy(_)),h("ready"))}catch(S){console.error(S),n()}return[2]})})},y=function(){return KN(void 0,void 0,void 0,function(){var b,_;return GN(this,function(w){return b=M6(e),_=fy(e),i(_),h(b?"loading":_.resources.length>0||_.customRoutesWithLayout.length>0||_.customRoutesWithoutLayout.length>0?"ready":"empty"),b&&v(b),[2]})})};r||y()},[e,n,r,u,t,i,h]),[o,l]},Zee=function(e){var t=p.useState(e),r=t[0],n=t[1],a=p.useCallback(function(o){n(function(i){return{customRoutesWithLayout:i.customRoutesWithLayout.concat(o.customRoutesWithLayout),customRoutesWithoutLayout:i.customRoutesWithoutLayout.concat(o.customRoutesWithoutLayout),resources:i.resources.concat(o.resources)}})},[]);return[r,n,a]},ete=function(e,t){var r=yz(),n=r.register,a=r.unregister;p.useEffect(function(){return e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);n(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")}),function(){e.forEach(function(o){if(typeof o.type.registerResource=="function"){var i=o.type.registerResource(o.props,t);a(i)}else throw new Error("When using a custom Resource element, it must have a static registerResource method accepting its props and returning a ResourceDefinition")})}},[t,n,e,a])},tte=function(e){var t=e.children,r=e.resources,n=e.customRoutesWithLayout,a=e.customRoutesWithoutLayout;return M6(t)?"loading":r.length>0||n.length>0||a.length>0?"ready":"empty"},M6=function(e){var t=Array.isArray(e)?e:[e],r=t.filter(function(n){return typeof n=="function"});if(r.length>1)throw new Error("You can only provide one function child to AdminRouter");return r.length===0?null:r[0]},fy=function(e){var t=[],r=[],n=[];return typeof e=="function"?{customRoutesWithLayout:[],customRoutesWithoutLayout:[],resources:[]}:(p.Children.forEach(e,function(a){if(p.isValidElement(a)){if(a.type===p.Fragment){var o=fy(a.props.children);t.push.apply(t,o.customRoutesWithLayout),r.push.apply(r,o.customRoutesWithoutLayout),n.push.apply(n,o.resources)}if(a.type.raName==="CustomRoutes"){var i=a;i.props.noLayout?r.push(i.props.children):t.push(i.props.children)}else a.type.raName==="Resource"&&n.push(a)}}),{customRoutesWithLayout:t,customRoutesWithoutLayout:r,resources:n})},F6=p.createContext(!1),rte=F6.Provider,nte=function(){return p.useContext(F6)},K1=function(){return K1=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},K1.apply(this,arguments)},QN=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},XN=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},ate=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ote=function(e){var t=pi(),r=gr(e),n=e.action,a=e.resources,o=ate(e,["action","resources"]),i=Tl(K1({queryKey:["auth","canAccess",a,n,r],queryFn:function(l){var h=l.signal;return QN(void 0,void 0,void 0,function(){var v,y;return XN(this,function(b){switch(b.label){case 0:return[4,Promise.all(a.map(function(_){return QN(void 0,void 0,void 0,function(){var w;return XN(this,function(S){switch(S.label){case 0:return!t||!t.canAccess?[2,{canAccess:!0,resource:_}]:[4,t.canAccess({resource:_,action:n,record:r,signal:t.supportAbortSignal?h:void 0})];case 1:return w=S.sent(),[2,{canAccess:w,resource:_}]}})})}))];case 1:return v=b.sent(),y=v.reduce(function(_,w){var S=w.resource,A=w.canAccess;return _[S]=A,_},{}),[2,y]}})})}},o)),u=p.useMemo(function(){return K1({canAccess:i.data},i)},[i]),d=p.useMemo(function(){return{canAccess:a.reduce(function(l,h){return l[h]=!0,l},{}),isPending:!1,isError:!1,error:null}},[a]);return!t||!t.canAccess?d:u},ite=function(){var e=fp().isPending,t=cv(),r=Object.keys(t).filter(function(u){return t[u].hasList}),n=ote({action:"list",resources:r,enabled:!e}),a=n.canAccess,o=n.isPending,i=r.find(function(u){return a&&a[u]===!0});return{resource:i,isPending:o}},ste=function(e){var t=e.loading,r=ite(),n=r.resource,a=r.isPending,o=pd();if(a)return p.createElement(t,null);if(n)return p.createElement(MK,{to:o({resource:n,type:"list"}),replace:!0})},lte=function(e){GX();var t=Yee(e.children),r=t.customRoutesWithLayout,n=t.customRoutesWithoutLayout,a=t.status,o=t.resources,i=e.layout,u=e.catchAll,d=e.dashboard,l=e.loading,h=e.requireAuth,v=e.ready,y=e.authenticationError,b=y===void 0?YN:y,_=e.accessDenied,w=_===void 0?YN:_,S=_I(void 0,!1,{enabled:h}),A=S.authenticated,R=S.isPending;if(a==="empty"){if(!v)throw new Error("The admin is empty. Please provide an empty component, or pass Resource or CustomRoutes as children.");return p.createElement(v,null)}return a==="loading"||h&&R?p.createElement(Zc,null,n,p.createElement(Mn,{path:"*",element:p.createElement("div",{style:{height:"100vh"}},p.createElement(l,null))})):h&&(R||!A)?p.createElement(Zc,null,n,p.createElement(Mn,{path:"*",element:p.createElement(Vte,null)})):p.createElement(Zc,null,n,p.createElement(Mn,{path:"/*",element:p.createElement(rte,{value:!!d},p.createElement(i,null,p.createElement(Zc,null,r,p.Children.map(o,function(C){return p.createElement(Mn,{key:C.props.name,path:"".concat(C.props.name,"/*"),element:C})}),p.createElement(Mn,{path:"/",element:d?p.createElement(Fte,{authParams:ute,component:d,loading:l}):p.createElement(ste,{loading:l})}),p.createElement(Mn,{path:"/authentication-error",element:p.createElement(b,null)}),p.createElement(Mn,{path:"/access-denied",element:p.createElement(w,null)}),p.createElement(Mn,{path:"*",element:p.createElement(u,null)}))))}))},ute={params:{route:"dashboard"}},YN=function(){return null},L6=p.createContext("React Admin"),cte=L6.Provider,mI=function(){return p.useContext(L6)},dte=function(e){var t=e.children;return p.createElement(p.Fragment,null,t)},fte=function(e){var t=e.error,r=e.errorInfo,n=e.resetErrorBoundary;return bz(n),p.createElement("div",null,p.createElement("h1",null,"Error"),p.createElement("pre",null,t.message,r==null?void 0:r.componentStack))},pte=function(e){var t=p.useState({}),r=t[0],n=t[1],a=e.authCallbackPage,o=a===void 0?!1:a,i=e.catchAll,u=i===void 0?B_:i,d=e.children,l=e.dashboard,h=e.disableTelemetry,v=h===void 0?!1:h,y=e.error,b=y===void 0?fte:y,_=e.layout,w=_===void 0?dte:_,S=e.loading,A=S===void 0?B_:S,R=e.loginPage,C=R===void 0?!1:R,O=e.ready,T=O===void 0?_te:O,E=e.requireAuth,L=E===void 0?!1:E,j=e.title,M=j===void 0?"React Admin":j,k=e.authenticationError,$=k===void 0?B_:k,B=e.accessDenied,z=B===void 0?B_:B;p.useEffect(function(){if(!(v||typeof window>"u"||typeof window.location>"u"||typeof Image>"u")){var W=new Image;W.src="https://react-admin-telemetry.marmelab.com/react-admin-telemetry?domain=".concat(window.location.hostname)}},[v]);var U=function(W,Q){return n(Q)};return p.createElement(cte,{value:M},p.createElement(A6,{onError:U,fallbackRender:function(W){var Q=W.error,V=W.resetErrorBoundary;return p.createElement("div",{style:{minHeight:"100vh"}},p.createElement(b,{error:Q,errorInfo:r,resetErrorBoundary:V}))}},p.createElement(Zc,null,C!==!1&&C!==!0?p.createElement(Mn,{path:"/login",element:JN(C)}):null,o!==!1&&o!==!0?p.createElement(Mn,{path:"/auth-callback",element:JN(o)}):null,p.createElement(Mn,{path:"/*",element:p.createElement(lte,{catchAll:u,dashboard:l,layout:w,loading:A,requireAuth:L,ready:T,authenticationError:$,accessDenied:z},d)}))))},JN=function(e){return p.isValidElement(e)?e:p.createElement(e)},B_=function(){return null},$6=function(e){return null};$6.raName="CustomRoutes";var Tx=function(e){var t=e.children,r=e.value;return r?p.createElement(vz.Provider,{value:r},t):t},pv=function(e){var t=e.value,r=e.children;return t?p.createElement(Tx,{value:t},r):r},c2={exports:{}},Fr={};/**
* @license React
* react-is.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ZN;function hte(){if(ZN)return Fr;ZN=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function _(w){if(typeof w=="object"&&w!==null){var S=w.$$typeof;switch(S){case e:switch(w=w.type,w){case r:case a:case n:case d:case l:case y:return w;default:switch(w=w&&w.$$typeof,w){case i:case u:case v:case h:return w;case o:return w;default:return S}}case t:return S}}}return Fr.ContextConsumer=o,Fr.ContextProvider=i,Fr.Element=e,Fr.ForwardRef=u,Fr.Fragment=r,Fr.Lazy=v,Fr.Memo=h,Fr.Portal=t,Fr.Profiler=a,Fr.StrictMode=n,Fr.Suspense=d,Fr.SuspenseList=l,Fr.isContextConsumer=function(w){return _(w)===o},Fr.isContextProvider=function(w){return _(w)===i},Fr.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Fr.isForwardRef=function(w){return _(w)===u},Fr.isFragment=function(w){return _(w)===r},Fr.isLazy=function(w){return _(w)===v},Fr.isMemo=function(w){return _(w)===h},Fr.isPortal=function(w){return _(w)===t},Fr.isProfiler=function(w){return _(w)===a},Fr.isStrictMode=function(w){return _(w)===n},Fr.isSuspense=function(w){return _(w)===d},Fr.isSuspenseList=function(w){return _(w)===l},Fr.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===a||w===n||w===d||w===l||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===h||w.$$typeof===i||w.$$typeof===o||w.$$typeof===u||w.$$typeof===b||w.getModuleId!==void 0)},Fr.typeOf=_,Fr}var e3;function mte(){return e3||(e3=1,c2.exports=hte()),c2.exports}var vI=mte(),Kn=function(e){var t=e.create,r=e.edit,n=e.list,a=e.name,o=e.show;return p.createElement(Tx,{value:a},p.createElement(Zc,null,t&&p.createElement(Mn,{path:"create/*",element:z_(t)}),o&&p.createElement(Mn,{path:":id/show/*",element:z_(o)}),r&&p.createElement(Mn,{path:":id/*",element:z_(r)}),n&&p.createElement(Mn,{path:"/*",element:p.createElement($X,{storeKey:"".concat(a,".list.scrollPosition")},z_(n))}),e.children))},z_=function(e){if(p.isValidElement(e))return e;if(vI.isValidElementType(e)){var t=e;return p.createElement(t,null)}return null};Kn.raName="Resource";Kn.registerResource=function(e){var t=e.create,r=e.edit,n=e.icon,a=e.list,o=e.name,i=e.options,u=e.show,d=e.recordRepresentation,l=e.hasCreate,h=e.hasEdit,v=e.hasShow;return{name:o,options:i,hasList:!!a,hasCreate:!!t||!!l,hasEdit:!!r||!!h,hasShow:!!u||!!v,icon:n,recordRepresentation:d}};var gI=p.createContext(void 0),vte={getSource:function(e){return e},getLabel:function(e){return e}},Ax=gI.Provider,yI=function(){var e=p.useContext(gI);return e||vte},gte=function(){return p.useContext(gI)},xr={},t3;function yte(){if(t3)return xr;t3=1;/*!
* inflection
* Copyright(c) 2011 Ben Lin <ben@dreamerslab.com>
* MIT Licensed
*
* @fileoverview
* A port of inflection-js to node.js module.
*/Object.defineProperty(xr,"__esModule",{value:!0}),xr.transform=xr.ordinalize=xr.foreignKey=xr.classify=xr.tableize=xr.demodulize=xr.titleize=xr.dasherize=xr.capitalize=xr.humanize=xr.underscore=xr.camelize=xr.inflect=xr.singularize=xr.pluralize=void 0;const e=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","minus","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"],t={plural:{men:new RegExp("^(m|wom)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),databases:new RegExp("(database)s$","gi"),drives:new RegExp("(drive)s$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),aves:new RegExp("([a])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopuses:new RegExp("(octop|vir)uses$","gi"),aliases:new RegExp("(alias|canvas|status|campus)es$","gi"),summonses:new RegExp("^(summons|bonus)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),criteria:new RegExp("^(criteri)a$","gi"),genera:new RegExp("^genera$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m|wom)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),drive:new RegExp("(drive)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status|canvas|campus)$","gi"),summons:new RegExp("^(summons|bonus)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),criterion:new RegExp("^(criteri)on$","gi"),genus:new RegExp("^genus$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}},r=[[t.plural.men],[t.plural.people],[t.plural.children],[t.plural.tia],[t.plural.analyses],[t.plural.databases],[t.plural.drives],[t.plural.hives],[t.plural.curves],[t.plural.lrves],[t.plural.foves],[t.plural.aeiouyies],[t.plural.series],[t.plural.movies],[t.plural.xes],[t.plural.mice],[t.plural.buses],[t.plural.oes],[t.plural.shoes],[t.plural.crises],[t.plural.octopuses],[t.plural.aliases],[t.plural.summonses],[t.plural.oxen],[t.plural.matrices],[t.plural.feet],[t.plural.teeth],[t.plural.geese],[t.plural.quizzes],[t.plural.whereases],[t.plural.criteria],[t.plural.genera],[t.singular.man,"$1en"],[t.singular.person,"$1ople"],[t.singular.child,"$1ren"],[t.singular.drive,"$1s"],[t.singular.ox,"$1en"],[t.singular.axis,"$1es"],[t.singular.octopus,"$1uses"],[t.singular.alias,"$1es"],[t.singular.summons,"$1es"],[t.singular.bus,"$1ses"],[t.singular.buffalo,"$1oes"],[t.singular.tium,"$1a"],[t.singular.sis,"ses"],[t.singular.ffe,"$1$2ves"],[t.singular.hive,"$1ves"],[t.singular.aeiouyy,"$1ies"],[t.singular.matrix,"$1ices"],[t.singular.vertex,"$1ices"],[t.singular.x,"$1es"],[t.singular.mouse,"$1ice"],[t.singular.foot,"feet"],[t.singular.tooth,"teeth"],[t.singular.goose,"geese"],[t.singular.quiz,"$1zes"],[t.singular.whereas,"$1es"],[t.singular.criterion,"$1a"],[t.singular.genus,"genera"],[t.singular.s,"s"],[t.singular.common,"s"]],n=[[t.singular.man],[t.singular.person],[t.singular.child],[t.singular.drive],[t.singular.ox],[t.singular.axis],[t.singular.octopus],[t.singular.alias],[t.singular.summons],[t.singular.bus],[t.singular.buffalo],[t.singular.tium],[t.singular.sis],[t.singular.ffe],[t.singular.hive],[t.singular.aeiouyy],[t.singular.x],[t.singular.matrix],[t.singular.mouse],[t.singular.foot],[t.singular.tooth],[t.singular.goose],[t.singular.quiz],[t.singular.whereas],[t.singular.criterion],[t.singular.genus],[t.plural.men,"$1an"],[t.plural.people,"$1rson"],[t.plural.children,"$1"],[t.plural.databases,"$1"],[t.plural.drives,"$1"],[t.plural.genera,"genus"],[t.plural.criteria,"$1on"],[t.plural.tia,"$1um"],[t.plural.analyses,"$1$2sis"],[t.plural.hives,"$1ve"],[t.plural.curves,"$1"],[t.plural.lrves,"$1f"],[t.plural.aves,"$1ve"],[t.plural.foves,"$1fe"],[t.plural.movies,"$1ovie"],[t.plural.aeiouyies,"$1y"],[t.plural.series,"$1eries"],[t.plural.xes,"$1"],[t.plural.mice,"$1ouse"],[t.plural.buses,"$1"],[t.plural.oes,"$1"],[t.plural.shoes,"$1"],[t.plural.crises,"$1is"],[t.plural.octopuses,"$1us"],[t.plural.aliases,"$1"],[t.plural.summonses,"$1"],[t.plural.oxen,"$1"],[t.plural.matrices,"$1ix"],[t.plural.vertices,"$1ex"],[t.plural.feet,"foot"],[t.plural.teeth,"tooth"],[t.plural.geese,"goose"],[t.plural.quizzes,"$1"],[t.plural.whereases,"$1"],[t.plural.ss,"ss"],[t.plural.s,""]],a=["and","or","nor","a","an","the","so","but","to","of","at","by","from","into","on","onto","off","out","in","over","with","for"],o=new RegExp("(_ids|_id)$","g"),i=new RegExp("_","g"),u=new RegExp("[ _]","g"),d=new RegExp("([A-Z])","g"),l=new RegExp("^_");function h($,B,z,U){if(U)return U;if(z.includes($.toLocaleLowerCase()))return $;for(const W of B)if($.match(W[0]))return W[1]!==void 0?$.replace(W[0],W[1]):$;return $}function v($,B){return h($,r,e,B)}xr.pluralize=v;function y($,B){return h($,n,e,B)}xr.singularize=y;function b($,B,z,U){return isNaN(B)?$:B===1?h($,n,e,z):h($,r,e,U)}xr.inflect=b;function _($,B){const z=$.split("/"),U=z.length;let W,Q,V,K;for(let X=0;X<U;X++){for(W=z[X].split("_"),Q=0,V=W.length;Q<V;Q++)Q!==0&&(W[Q]=W[Q].toLowerCase()),K=W[Q].charAt(0),K=B&&X===0&&Q===0?K.toLowerCase():K.toUpperCase(),W[Q]=K+W[Q].substring(1);z[X]=W.join("")}return z.join("::")}xr.camelize=_;function w($,B){if(B&&$===$.toUpperCase())return $;const z=$.split("::"),U=z.length;for(let W=0;W<U;W++)z[W]=z[W].replace(d,"_$1"),z[W]=z[W].replace(l,"");return z.join("/").toLowerCase()}xr.underscore=w;function S($,B){return $=$.toLowerCase(),$=$.replace(o,""),$=$.replace(i," "),B||($=A($)),$}xr.humanize=S;function A($){return $=$.toLowerCase(),$.substring(0,1).toUpperCase()+$.substring(1)}xr.capitalize=A;function R($){return $.replace(u,"-")}xr.dasherize=R;function C($){$=$.toLowerCase().replace(i," ");const B=$.split(" "),z=B.length;let U,W;for(let Q=0;Q<z;Q++){U=B[Q].split("-"),W=U.length;for(let V=0;V<W;V++)a.indexOf(U[V].toLowerCase())<0&&(U[V]=A(U[V]));B[Q]=U.join("-")}return $=B.join(" "),$=$.substring(0,1).toUpperCase()+$.substring(1),$}xr.titleize=C;function O($){const B=$.split("::");return B[B.length-1]}xr.demodulize=O;function T($){return $=w($),$=v($),$}xr.tableize=T;function E($){return $=_($),$=y($),$}xr.classify=E;function L($,B){return $=O($),$=w($)+(B?"":"_")+"id",$}xr.foreignKey=L;function j($){const B=$.split(" "),z=B.length;for(let U=0;U<z;U++){const W=parseInt(B[U],10);if(!isNaN(W)){const Q=B[U].substring(B[U].length-2),V=B[U].substring(B[U].length-1);let K="th";Q!="11"&&Q!="12"&&Q!="13"&&(V==="1"?K="st":V==="2"?K="nd":V==="3"&&(K="rd")),B[U]+=K}}return B.join(" ")}xr.ordinalize=j;const M={pluralize:v,singularize:y,camelize:_,underscore:w,humanize:S,capitalize:A,dasherize:R,titleize:C,demodulize:O,tableize:T,classify:E,foreignKey:L,ordinalize:j};function k($,B){const z=B.length;for(let U=0;U<z;U++){const W=B[U],Q=M[W];Q&&($=Q($))}return $}return xr.transform=k,xr}var ku=yte(),dp=function(){var e=nt(),t=cv();return function(r,n){n===void 0&&(n=2);var a=t[r],o=e("resources.".concat(r,".name"),{smart_count:n,_:a&&a.options&&a.options.label?e(a.options.label,{smart_count:n,_:a.options.label}):ku.humanize(ku.inflect(r,n))});return o}},Ml=function(e){var t=er(e),r=cv(),n=e||{},a=n.hasCreate,o=n.hasEdit,i=n.hasList,u=n.hasShow,d=n.recordRepresentation,l=p.useMemo(function(){return sI({},{hasCreate:a,hasEdit:o,hasList:i,hasShow:u,recordRepresentation:d},t?r[t]:{})},[t,r,a,o,i,u,d]);return l},Hb=function(e){var t=Ml({resource:e}).recordRepresentation;return p.useCallback(function(r){return r?typeof t=="function"?t(r):typeof t=="string"?or(r,t):p.isValidElement(t)?t:(r==null?void 0:r.name)!=null&&(r==null?void 0:r.name)!==""?r.name:(r==null?void 0:r.title)!=null&&(r==null?void 0:r.title)!==""?r.title:(r==null?void 0:r.label)!=null&&(r==null?void 0:r.label)!==""?r.label:(r==null?void 0:r.reference)!=null&&(r==null?void 0:r.reference)!==""?r.reference:"#".concat(r.id):""},[t])},Ix=function(e){var t=yI();return t.getSource(e)},D6=function(){var e=nt(),t=er(),r=gte();return p.useCallback(function(n){var a=n.source,o=n.label,i=n.resource;return o===!1||o===""?null:o&&typeof o!="string"?o:e.apply(void 0,wte({label:o,defaultLabel:a?r==null?void 0:r.getLabel(a):void 0,resource:i,resourceFromContext:t,source:a}))},[t,e,r])},bte="en",N6=function(e){var t=e.source,r=e.label,n=e.resource,a=e.isRequired,o=D6();if(r===!0)throw new Error("Label parameter must be a string, a ReactElement or false");return r===!1||r===""?null:r!=null&&typeof r!="string"?r:p.createElement("span",null,o({label:r,resource:n,source:t}),a&&p.createElement("span",{"aria-hidden":"true"},"*"))};N6.displayName="FieldTitle";const Vi=p.memo(N6),_te=function(){return p.createElement("span",null)},bI=function(e,t){};var wte=function(e){if(!e)return[""];var t=e.label,r=e.defaultLabel,n=e.resource,a=e.resourceFromContext,o=e.source;if(typeof t<"u")return[t,{_:t}];if(typeof o>"u")return[""];var i=xte(o),u=i.sourceWithoutDigits,d=i.sourceSuffix,l=ku.transform(d.replace(/\./g," "),["underscore","humanize"]);return n?[r3(n,u),{_:l}]:r?[r,{_:l}]:[r3(a||"undefined",u),{_:l}]},r3=function(e,t){return"resources.".concat(e,".fields.").concat(t)},xte=function(e){var t=e.replace(/\.\d+\./g,"."),r=e.split("."),n;r.forEach(function(o,i){Ste(o)&&(n=i)});var a=n!=null?r.slice(n+1).join("."):e;return{sourceWithoutDigits:t,sourceSuffix:a}},Ste=function(e){for(var t=e.length-1;t>=0;t--){var r=e.charCodeAt(t);if(r<48||r>57)return!1}return!0},Cte=typeof window<"u"?p.useLayoutEffect:p.useEffect,fr=function(e){var t=p.useRef(function(){throw new Error("Cannot call an event handler while rendering.")});return Cte(function(){t.current=e}),p.useCallback(function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.current.apply(t,r)},[])},Ete=typeof window<"u"?p.useLayoutEffect:p.useEffect,Ote=function(e,t){var r=p.useRef(function(){throw new Error("Cannot call an event handler while rendering.")}),n=fr(e);return Ete(function(){r.current=wx(n,t)},[n,t]),p.useCallback(function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return r.current.apply(r,a)},[])},yd=function(e){var t=e.defaultValue,r=e.source,n=gr(e);return or(n,r,t)},xa=function(e,t){var r=px(),n=r.getItem,a=r.setItem,o=r.subscribe,i=p.useState(function(){return n(e,t)}),u=i[0],d=i[1];p.useEffect(function(){var h=n(e,t);ii(u,h)||d(h);var v=o(e,function(y){d(typeof y>"u"?t:y)});return function(){return v()}},[e,o,t,n,u]);var l=fr(function(h,v){var y=typeof h=="function"?h(u):h;a(e,typeof y>"u"?typeof v>"u"?t:v:y)});return[u,l]},Pte=function(e){var t=px().removeItem;return p.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},Rte=function(e){var t=px().removeItems;return p.useCallback(function(r){if(typeof r>"u"&&typeof e>"u")throw new Error("You must provide a key to remove an item from the store");return t(r??e)},[t,e])},kte=function(){var e=px().reset;return e},hv=function(){var e=pi(),t=Ea(),r=kte(),n=Os(),a=p.useRef(n),o=an(),i=p.useRef(o),u=Lu(),d=vl("".concat(u,"/").concat(ex.loginUrl));p.useEffect(function(){i.current=o,a.current=n},[o,n]);var l=p.useCallback(function(h,v,y){return h===void 0&&(h={}),v===void 0&&(v=d),y===void 0&&(y=!0),e?e.logout(h).then(function(b){if(b===!1||v===!1){r(),t.clear();return}var _=b||v;if(_!=null&&_.startsWith("http"))return r(),t.clear(),window.location.href=_,_;var w=_.split("?"),S={pathname:w[0]},A={};return y&&i.current&&i.current.pathname&&(A={state:{nextPathname:i.current.pathname,nextSearch:i.current.search}}),w[1]&&(S.search=w[1]),a.current(S,A),r(),t.clear(),b}):(a.current({pathname:d},{state:{nextPathname:i.current&&i.current.pathname}}),r(),t.clear(),Promise.resolve())},[e,r,d,t]);return l},jf=function(){return jf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},jf.apply(this,arguments)},Tte=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},n3={},_I=function(e,t,r){e===void 0&&(e=n3),t===void 0&&(t=!1),r===void 0&&(r=n3);var n=pi(),a=hv(),o=Lu(),i=Ur(),u=r.onSuccess,d=r.onError,l=r.onSettled,h=Tte(r,["onSuccess","onError","onSettled"]),v=Tl(jf({queryKey:["auth","checkAuth",e],queryFn:function(S){var A=S.signal;return n?n.checkAuth(jf(jf({},e),{signal:A})).then(function(){return!0}).catch(function(R){throw R??new Error}):!0},retry:!1},h)),y=fr(u??a3),b=fr(l??a3),_=fr(d??function(S){if(t){var A=vl("".concat(o,"/").concat(ex.loginUrl));a({},S&&S.redirectTo!=null?S.redirectTo:A);var R=S&&S.message===!1;!R&&i(Ate(S,"ra.auth.auth_check_error"),{type:"error"})}});p.useEffect(function(){v.data===void 0||v.isFetching||r.enabled!==!1&&y(v.data)},[y,v.data,v.isFetching,r.enabled]),p.useEffect(function(){v.error==null||v.isFetching||r.enabled!==!1&&_(v.error)},[_,v.error,v.isFetching,r.enabled]),p.useEffect(function(){v.status==="pending"||v.isFetching||r.enabled!==!1&&b(v.data,v.error)},[b,v.data,v.error,v.status,v.isFetching,r.enabled]);var w=p.useMemo(function(){return jf(jf({},v),{authenticated:v.error?!1:v.data})},[v]);return n!=null?w:B6},Ate=function(e,t){return typeof e=="string"?e:typeof e>"u"||!e.message?t:e.message},a3=function(){},B6={authenticated:!0,data:!0,dataUpdatedAt:0,error:null,errorUpdatedAt:0,errorUpdateCount:0,failureCount:0,failureReason:null,fetchStatus:"idle",isError:!1,isInitialLoading:!1,isLoading:!1,isLoadingError:!1,isFetched:!0,isFetchedAfterMount:!0,isFetching:!1,isPaused:!1,isPlaceholderData:!1,isPending:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,isSuccess:!0,status:"success",refetch:function(){return Promise.resolve(B6)}},Ite=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},fp=function(e){e===void 0&&(e={});var t=e.params,r=e.logoutOnFailure,n=r===void 0?!0:r,a=Ite(e,["params","logoutOnFailure"]);return _I(t??jte,n,a)},jte={},xy=function(){return xy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},xy.apply(this,arguments)},Mte=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},o3=function(e){return p.Children.count(e)===0},Fte=function(e){var t=e.authParams,r=e.children,n=e.render,a=e.component,o=e.loading,i=o===void 0?null:o;e.staticContext;var u=Mte(e,["authParams","children","render","component","loading","staticContext"]);bI(n&&r&&!o3(r)||n&&a||a&&r&&!o3(r),"You should only use one of the `component`, `render` and `children` props in <WithPermissions>");var d=fp(t).isPending,l=I6(t,{enabled:!d}),h=l.permissions,v=l.isPending;if(d||v)return i?p.createElement(i,null):null;if(a)return p.createElement(a,xy({permissions:h},u));if(n)return n(xy({permissions:h},u));if(r)return r(xy({permissions:h},u))},z6=function(){var e=pi(),t=Ea(),r=an(),n=r.state,a=Os(),o=Lu(),i=ez().resetNotifications,u=n&&n.nextPathname,d=n&&n.nextSearch,l=vl("".concat(o,"/").concat(ex.afterLoginUrl)),h=p.useCallback(function(v,y){return v===void 0&&(v={}),e?e.login(v).then(function(b){if(i(),t.invalidateQueries({queryKey:["auth","getPermissions"]}),b&&b.hasOwnProperty("redirectTo"))b&&a(b.redirectTo);else{var _=y||u+d||l;a(_)}return b}):(i(),a(l),Promise.resolve())},[e,t,a,u,d,i,l]);return h},Lte="AUTH_LOGIN",$te="AUTH_CHECK",Dte="AUTH_ERROR",Nte="AUTH_LOGOUT",Bte="AUTH_GET_PERMISSIONS";const zte=function(e){var t=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.apply(null,r)};return t.login=function(r){return e(Lte,r)},t.logout=function(r){return e(Nte,r)},t.checkAuth=function(r){return e($te,r)},t.checkError=function(r){return e(Dte,r)},t.getPermissions=function(r){return e(Bte,r)},t};var yu=function(){return yu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},yu.apply(this,arguments)},qte=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},Ute=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Pl=function(e){var t=pi(),r=er(e);if(!r)throw new Error("useCanAccess must be used inside a <Resource> component or provide a resource prop");var n=gr(e),a=!!(t!=null&&t.canAccess),o=Tl(yu({queryKey:["auth","canAccess",yu(yu({},e),{record:n,resource:r})],queryFn:function(u){var d=u.signal;return qte(void 0,void 0,void 0,function(){return Ute(this,function(l){return!t||!t.canAccess?[2,!0]:[2,t.canAccess(yu(yu({},e),{record:n,resource:r,signal:t.supportAbortSignal?d:void 0}))]})})},enabled:a},e)),i=p.useMemo(function(){return yu(yu({},o),{canAccess:o.data})},[o]);return a?i:q6},q6={canAccess:!0,data:!0,dataUpdatedAt:0,error:null,errorUpdatedAt:0,errorUpdateCount:0,failureCount:0,failureReason:null,fetchStatus:"idle",isError:!1,isInitialLoading:!1,isLoading:!1,isLoadingError:!1,isFetched:!0,isFetchedAfterMount:!0,isFetching:!1,isPaused:!1,isPlaceholderData:!1,isPending:!1,isRefetchError:!1,isRefetching:!1,isStale:!1,isSuccess:!0,status:"success",refetch:function(){return Promise.resolve(q6)}},Vte=function(){var e=hv();return p.useEffect(function(){e()},[e]),null},Wte=function(){var e=pi(),t=Ur(),r=hv(),n=Lu(),a=vl("".concat(n,"/").concat(ex.loginUrl)),o=p.useCallback(function(i,u,d){return i===void 0&&(i={}),u===void 0&&(u=!0),d===void 0&&(d=a),e?e.checkAuth(i).catch(function(l){if(u){r({},l&&l.redirectTo!=null?l.redirectTo:d);var h=l&&l.message===!1;!h&&t(Kte(l,"ra.auth.auth_check_error"),{type:"error"})}throw l}):Hte()},[e,r,t,a]);return o},Hte=function(){return Promise.resolve()},Kte=function(e,t){return typeof e=="string"?e:typeof e>"u"||!e.message?t:e.message},Sy=function(){return Sy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Sy.apply(this,arguments)},Gte=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},Qte=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Xte=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Yte={id:""},Jte={staleTime:5*60*1e3},Zte=function(e){e===void 0&&(e=Jte);var t=pi(),r=e.onSuccess,n=e.onError,a=e.onSettled,o=Xte(e,["onSuccess","onError","onSettled"]),i=Tl(Sy({queryKey:["auth","getIdentity"],queryFn:function(h){var v=h.signal;return Gte(void 0,void 0,void 0,function(){return Qte(this,function(y){return t&&typeof t.getIdentity=="function"?[2,t.getIdentity({signal:v})]:[2,Yte]})})}},o)),u=fr(r??d2),d=fr(n??d2),l=fr(a??d2);return p.useEffect(function(){i.data===void 0||i.isFetching||u(i.data)},[u,i.data,i.isFetching]),p.useEffect(function(){i.error==null||i.isFetching||d(i.error)},[d,i.error,i.isFetching]),p.useEffect(function(){i.status==="pending"||i.isFetching||l(i.data,i.error)},[l,i.data,i.error,i.status,i.isFetching]),p.useMemo(function(){return Sy(Sy({},i),{identity:i.data})},[i])},d2=function(){},Ek=function(){return Ek=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ek.apply(this,arguments)},ere=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tre=function(e){var t=pi(),r=dv(),n=an(),a=n.state,o=a&&a.nextPathname,i=a&&a.nextSearch,u=o?o+i:"/",d={},l=d.onSuccess,h=d.onError,v=d.onSettled,y=ere(d,["onSuccess","onError","onSettled"]),b,_=Tl(Ek({queryKey:["auth","handleCallback"],queryFn:function(R){var C=R.signal;return b||(b=t&&typeof t.handleCallback=="function"?t.handleCallback({signal:C}).then(function(O){return O??null}):Promise.resolve()),b},retry:!1},y)),w=fr(l??function(R){var C,O=localStorage.getItem(rre),T=(C=R==null?void 0:R.redirectTo)!==null&&C!==void 0?C:O;T!==!1&&r(T??u)}),S=fr(h??i3),A=fr(v??i3);return p.useEffect(function(){_.error==null||_.isFetching||S(_.error)},[S,_.error,_.isFetching]),p.useEffect(function(){_.data===void 0||_.isFetching||w(_.data)},[w,_.data,_.isFetching]),p.useEffect(function(){_.status==="pending"||_.isFetching||A(_.data,_.error)},[A,_.data,_.error,_.status,_.isFetching]),_},rre="@react-admin/nextPathname",i3=function(){},nre=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},jx=function(e){var t=e.action,r=nre(e,["action"]),n=Ea(),a=pi(),o=er(r);if(!a)return!1;var i=n.getQueryState(["auth","checkAuth",{}]),u=n.getQueryState(["auth","canAccess",{action:t,resource:o}]);return!!((i==null?void 0:i.status)==="pending"||a.canAccess&&(u==null?void 0:u.status)==="pending")},are=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Mx=function(e){var t=Pl(e),r=t.canAccess;t.data;var n=t.error,a=are(t,["canAccess","data","error"]),o=Os(),i=Lu();return p.useEffect(function(){a.isPending||r===!1&&o("".concat(i,"/access-denied"))},[i,r,o,a.isPending]),p.useEffect(function(){n&&o("".concat(i,"/authentication-error"))},[i,o,n]),a},U6=p.createContext(""),V6=function(e){var t=e.value,r=t===void 0?"":t,n=e.children;return p.createElement(U6.Provider,{value:r},n)},ore=function(){return p.useContext(U6)},ad=function(e,t){var r=ore();if(!r)throw new Error("usePreference cannot be used outside of a Configurable component. Did you forget to wrap your component with <Configurable>? If you don't want to use Configurable, you can use the useStore hook instead.");return xa(r&&e?"".concat(r,".").concat(e):r??e,t)},wI=function(){var e=p.useContext(T6);if(!e)throw new Error("usePreferencesEditor must be used within a PreferencesEditorContextProvider");return e},ire=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},sre=function(e,t){var r=ad(e,t),n=r[0],a=r[1],o=p.useState(n),i=o[0],u=o[1];p.useEffect(function(){u(n||t)},[n,t]);var d=function(v){u(v.target.value===""?t:v.target.value)},l=function(){a(i)},h=function(v){var y;if(v.key==="Enter"){a(i);var b=v.target.form;if(b){var _=ire([],b,!0).indexOf(v.target);(y=b.elements[_+1])===null||y===void 0||y.focus()}v.preventDefault()}};return{value:i,onChange:d,onBlur:l,onKeyDown:h}},W6=function(e,t){var r=wI();if(!r)throw new Error("useSetInspectorTitle cannot be called outside of a PreferencesEditorContext");var n=r.setTitle;p.useEffect(function(){n(e,t)},[e,JSON.stringify(t),n])},f2,s3;function lre(){if(s3)return f2;s3=1;var e=MA(),t=Cz(),r=Ez(),n=BB(),a=vx(),o=FA(),i=200;function u(d,l,h,v){var y=-1,b=t,_=!0,w=d.length,S=[],A=l.length;if(!w)return S;h&&(l=n(l,a(h))),v?(b=r,_=!1):l.length>=i&&(b=o,_=!1,l=new e(l));e:for(;++y<w;){var R=d[y],C=h==null?R:h(R);if(R=v||R!==0?R:0,_&&C===C){for(var O=A;O--;)if(l[O]===C)continue e;S.push(R)}else b(l,C,v)||S.push(R)}return S}return f2=u,f2}var p2,l3;function ure(){if(l3)return p2;l3=1;var e=lre(),t=tI(),r=bx(),n=GA(),a=r(function(o,i){return n(o)?e(o,t(i,1,n,!0)):[]});return p2=a,p2}var cre=ure();const dre=Nn(cre),ob={black:"#000",white:"#fff"},zh={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},qh={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Of={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Uh={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Vh={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Gg={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},fre={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"};function ju(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const qi="$$material";function G1(){return G1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},G1.apply(null,arguments)}function pre(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function hre(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var mre=function(){function e(r){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(hre(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=pre(a);try{o.insertRule(n,o.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e}(),$a="-ms-",Q1="-moz-",Or="-webkit-",H6="comm",xI="rule",SI="decl",vre="@import",K6="@keyframes",gre="@layer",yre=Math.abs,Fx=String.fromCharCode,bre=Object.assign;function _re(e,t){return ba(e,0)^45?(((t<<2^ba(e,0))<<2^ba(e,1))<<2^ba(e,2))<<2^ba(e,3):0}function G6(e){return e.trim()}function wre(e,t){return(e=t.exec(e))?e[0]:e}function Pr(e,t,r){return e.replace(t,r)}function Ok(e,t){return e.indexOf(t)}function ba(e,t){return e.charCodeAt(t)|0}function ib(e,t,r){return e.slice(t,r)}function gl(e){return e.length}function CI(e){return e.length}function q_(e,t){return t.push(e),e}function xre(e,t){return e.map(t).join("")}var Lx=1,Wm=1,Q6=0,No=0,Fn=0,mv="";function $x(e,t,r,n,a,o,i){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:Lx,column:Wm,length:i,return:""}}function Qg(e,t){return bre($x("",null,null,"",null,null,0),e,{length:-e.length},t)}function Sre(){return Fn}function Cre(){return Fn=No>0?ba(mv,--No):0,Wm--,Fn===10&&(Wm=1,Lx--),Fn}function li(){return Fn=No<Q6?ba(mv,No++):0,Wm++,Fn===10&&(Wm=1,Lx++),Fn}function Cl(){return ba(mv,No)}function v1(){return No}function Kb(e,t){return ib(mv,e,t)}function sb(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function X6(e){return Lx=Wm=1,Q6=gl(mv=e),No=0,[]}function Y6(e){return mv="",e}function g1(e){return G6(Kb(No-1,Pk(e===91?e+2:e===40?e+1:e)))}function Ere(e){for(;(Fn=Cl())&&Fn<33;)li();return sb(e)>2||sb(Fn)>3?"":" "}function Ore(e,t){for(;--t&&li()&&!(Fn<48||Fn>102||Fn>57&&Fn<65||Fn>70&&Fn<97););return Kb(e,v1()+(t<6&&Cl()==32&&li()==32))}function Pk(e){for(;li();)switch(Fn){case e:return No;case 34:case 39:e!==34&&e!==39&&Pk(Fn);break;case 40:e===41&&Pk(e);break;case 92:li();break}return No}function Pre(e,t){for(;li()&&e+Fn!==57;)if(e+Fn===84&&Cl()===47)break;return"/*"+Kb(t,No-1)+"*"+Fx(e===47?e:li())}function Rre(e){for(;!sb(Cl());)li();return Kb(e,No)}function kre(e){return Y6(y1("",null,null,null,[""],e=X6(e),0,[0],e))}function y1(e,t,r,n,a,o,i,u,d){for(var l=0,h=0,v=i,y=0,b=0,_=0,w=1,S=1,A=1,R=0,C="",O=a,T=o,E=n,L=C;S;)switch(_=R,R=li()){case 40:if(_!=108&&ba(L,v-1)==58){Ok(L+=Pr(g1(R),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:L+=g1(R);break;case 9:case 10:case 13:case 32:L+=Ere(_);break;case 92:L+=Ore(v1()-1,7);continue;case 47:switch(Cl()){case 42:case 47:q_(Tre(Pre(li(),v1()),t,r),d);break;default:L+="/"}break;case 123*w:u[l++]=gl(L)*A;case 125*w:case 59:case 0:switch(R){case 0:case 125:S=0;case 59+h:A==-1&&(L=Pr(L,/\f/g,"")),b>0&&gl(L)-v&&q_(b>32?c3(L+";",n,r,v-1):c3(Pr(L," ","")+";",n,r,v-2),d);break;case 59:L+=";";default:if(q_(E=u3(L,t,r,l,h,a,u,C,O=[],T=[],v),o),R===123)if(h===0)y1(L,t,E,E,O,o,v,u,T);else switch(y===99&&ba(L,3)===110?100:y){case 100:case 108:case 109:case 115:y1(e,E,E,n&&q_(u3(e,E,E,0,0,a,u,C,a,O=[],v),T),a,T,v,u,n?O:T);break;default:y1(L,E,E,E,[""],T,0,u,T)}}l=h=b=0,w=A=1,C=L="",v=i;break;case 58:v=1+gl(L),b=_;default:if(w<1){if(R==123)--w;else if(R==125&&w++==0&&Cre()==125)continue}switch(L+=Fx(R),R*w){case 38:A=h>0?1:(L+="\f",-1);break;case 44:u[l++]=(gl(L)-1)*A,A=1;break;case 64:Cl()===45&&(L+=g1(li())),y=Cl(),h=v=gl(C=L+=Rre(v1())),R++;break;case 45:_===45&&gl(L)==2&&(w=0)}}return o}function u3(e,t,r,n,a,o,i,u,d,l,h){for(var v=a-1,y=a===0?o:[""],b=CI(y),_=0,w=0,S=0;_<n;++_)for(var A=0,R=ib(e,v+1,v=yre(w=i[_])),C=e;A<b;++A)(C=G6(w>0?y[A]+" "+R:Pr(R,/&\f/g,y[A])))&&(d[S++]=C);return $x(e,t,r,a===0?xI:u,d,l,h)}function Tre(e,t,r){return $x(e,t,r,H6,Fx(Sre()),ib(e,2,-2),0)}function c3(e,t,r,n){return $x(e,t,r,SI,ib(e,0,n),ib(e,n+1,-1),n)}function sm(e,t){for(var r="",n=CI(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Are(e,t,r,n){switch(e.type){case gre:if(e.children.length)break;case vre:case SI:return e.return=e.return||e.value;case H6:return"";case K6:return e.return=e.value+"{"+sm(e.children,n)+"}";case xI:e.value=e.props.join(",")}return gl(r=sm(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ire(e){var t=CI(e);return function(r,n,a,o){for(var i="",u=0;u<t;u++)i+=e[u](r,n,a,o)||"";return i}}function jre(e){return function(t){t.root||(t=t.return)&&e(t)}}function J6(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Mre=function(t,r,n){for(var a=0,o=0;a=o,o=Cl(),a===38&&o===12&&(r[n]=1),!sb(o);)li();return Kb(t,No)},Fre=function(t,r){var n=-1,a=44;do switch(sb(a)){case 0:a===38&&Cl()===12&&(r[n]=1),t[n]+=Mre(No-1,r,n);break;case 2:t[n]+=g1(a);break;case 4:if(a===44){t[++n]=Cl()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Fx(a)}while(a=li());return t},Lre=function(t,r){return Y6(Fre(X6(t),r))},d3=new WeakMap,$re=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!d3.get(n))&&!a){d3.set(t,!0);for(var o=[],i=Lre(r,o),u=n.props,d=0,l=0;d<i.length;d++)for(var h=0;h<u.length;h++,l++)t.props[l]=o[d]?i[d].replace(/&\f/g,u[h]):u[h]+" "+i[d]}}},Dre=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Z6(e,t){switch(_re(e,t)){case 5103:return Or+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Or+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Or+e+Q1+e+$a+e+e;case 6828:case 4268:return Or+e+$a+e+e;case 6165:return Or+e+$a+"flex-"+e+e;case 5187:return Or+e+Pr(e,/(\w+).+(:[^]+)/,Or+"box-$1$2"+$a+"flex-$1$2")+e;case 5443:return Or+e+$a+"flex-item-"+Pr(e,/flex-|-self/,"")+e;case 4675:return Or+e+$a+"flex-line-pack"+Pr(e,/align-content|flex-|-self/,"")+e;case 5548:return Or+e+$a+Pr(e,"shrink","negative")+e;case 5292:return Or+e+$a+Pr(e,"basis","preferred-size")+e;case 6060:return Or+"box-"+Pr(e,"-grow","")+Or+e+$a+Pr(e,"grow","positive")+e;case 4554:return Or+Pr(e,/([^-])(transform)/g,"$1"+Or+"$2")+e;case 6187:return Pr(Pr(Pr(e,/(zoom-|grab)/,Or+"$1"),/(image-set)/,Or+"$1"),e,"")+e;case 5495:case 3959:return Pr(e,/(image-set\([^]*)/,Or+"$1$`$1");case 4968:return Pr(Pr(e,/(.+:)(flex-)?(.*)/,Or+"box-pack:$3"+$a+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Or+e+e;case 4095:case 3583:case 4068:case 2532:return Pr(e,/(.+)-inline(.+)/,Or+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(gl(e)-1-t>6)switch(ba(e,t+1)){case 109:if(ba(e,t+4)!==45)break;case 102:return Pr(e,/(.+:)(.+)-([^]+)/,"$1"+Or+"$2-$3$1"+Q1+(ba(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ok(e,"stretch")?Z6(Pr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ba(e,t+1)!==115)break;case 6444:switch(ba(e,gl(e)-3-(~Ok(e,"!important")&&10))){case 107:return Pr(e,":",":"+Or)+e;case 101:return Pr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Or+(ba(e,14)===45?"inline-":"")+"box$3$1"+Or+"$2$3$1"+$a+"$2box$3")+e}break;case 5936:switch(ba(e,t+11)){case 114:return Or+e+$a+Pr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Or+e+$a+Pr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Or+e+$a+Pr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Or+e+$a+e+e}return e}var Nre=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case SI:t.return=Z6(t.value,t.length);break;case K6:return sm([Qg(t,{value:Pr(t.value,"@","@"+Or)})],a);case xI:if(t.length)return xre(t.props,function(o){switch(wre(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sm([Qg(t,{props:[Pr(o,/:(read-\w+)/,":"+Q1+"$1")]})],a);case"::placeholder":return sm([Qg(t,{props:[Pr(o,/:(plac\w+)/,":"+Or+"input-$1")]}),Qg(t,{props:[Pr(o,/:(plac\w+)/,":"+Q1+"$1")]}),Qg(t,{props:[Pr(o,/:(plac\w+)/,$a+"input-$1")]})],a)}return""})}},Bre=[Nre],zre=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(w){var S=w.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var a=t.stylisPlugins||Bre,o={},i,u=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(w){for(var S=w.getAttribute("data-emotion").split(" "),A=1;A<S.length;A++)o[S[A]]=!0;u.push(w)});var d,l=[$re,Dre];{var h,v=[Are,jre(function(w){h.insert(w)})],y=Ire(l.concat(a,v)),b=function(S){return sm(kre(S),y)};d=function(S,A,R,C){h=R,b(S?S+"{"+A.styles+"}":A.styles),C&&(_.inserted[A.name]=!0)}}var _={key:r,sheet:new mre({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:d};return _.sheet.hydrate(u),_},h2={exports:{}},Tr={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var f3;function qre(){if(f3)return Tr;f3=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function C(T){if(typeof T=="object"&&T!==null){var E=T.$$typeof;switch(E){case t:switch(T=T.type,T){case d:case l:case n:case o:case a:case v:return T;default:switch(T=T&&T.$$typeof,T){case u:case h:case _:case b:case i:return T;default:return E}}case r:return E}}}function O(T){return C(T)===l}return Tr.AsyncMode=d,Tr.ConcurrentMode=l,Tr.ContextConsumer=u,Tr.ContextProvider=i,Tr.Element=t,Tr.ForwardRef=h,Tr.Fragment=n,Tr.Lazy=_,Tr.Memo=b,Tr.Portal=r,Tr.Profiler=o,Tr.StrictMode=a,Tr.Suspense=v,Tr.isAsyncMode=function(T){return O(T)||C(T)===d},Tr.isConcurrentMode=O,Tr.isContextConsumer=function(T){return C(T)===u},Tr.isContextProvider=function(T){return C(T)===i},Tr.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Tr.isForwardRef=function(T){return C(T)===h},Tr.isFragment=function(T){return C(T)===n},Tr.isLazy=function(T){return C(T)===_},Tr.isMemo=function(T){return C(T)===b},Tr.isPortal=function(T){return C(T)===r},Tr.isProfiler=function(T){return C(T)===o},Tr.isStrictMode=function(T){return C(T)===a},Tr.isSuspense=function(T){return C(T)===v},Tr.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===n||T===l||T===o||T===a||T===v||T===y||typeof T=="object"&&T!==null&&(T.$$typeof===_||T.$$typeof===b||T.$$typeof===i||T.$$typeof===u||T.$$typeof===h||T.$$typeof===S||T.$$typeof===A||T.$$typeof===R||T.$$typeof===w)},Tr.typeOf=C,Tr}var p3;function Ure(){return p3||(p3=1,h2.exports=qre()),h2.exports}var m2,h3;function Vre(){if(h3)return m2;h3=1;var e=Ure(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=n,o[e.Memo]=a;function i(_){return e.isMemo(_)?a:o[_.$$typeof]||t}var u=Object.defineProperty,d=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,y=Object.prototype;function b(_,w,S){if(typeof w!="string"){if(y){var A=v(w);A&&A!==y&&b(_,A,S)}var R=d(w);l&&(R=R.concat(l(w)));for(var C=i(_),O=i(w),T=0;T<R.length;++T){var E=R[T];if(!r[E]&&!(S&&S[E])&&!(O&&O[E])&&!(C&&C[E])){var L=h(w,E);try{u(_,E,L)}catch{}}}}return _}return m2=b,m2}Vre();var Wre=!0;function eq(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var EI=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Wre===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},OI=function(t,r,n){EI(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Hre(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 Kre={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},Gre=/[A-Z]|^ms/g,Qre=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tq=function(t){return t.charCodeAt(1)===45},m3=function(t){return t!=null&&typeof t!="boolean"},v2=J6(function(e){return tq(e)?e:e.replace(Gre,"-$&").toLowerCase()}),v3=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Qre,function(n,a,o){return yl={name:a,styles:o,next:yl},a})}return Kre[t]!==1&&!tq(t)&&typeof r=="number"&&r!==0?r+"px":r};function lb(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return yl={name:a.name,styles:a.styles,next:yl},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)yl={name:i.name,styles:i.styles,next:yl},i=i.next;var u=o.styles+";";return u}return Xre(e,t,r)}case"function":{if(e!==void 0){var d=yl,l=r(e);return yl=d,lb(e,t,l)}break}}var h=r;if(t==null)return h;var v=t[h];return v!==void 0?v:h}function Xre(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=lb(e,t,r[a])+";";else for(var o in r){var i=r[o];if(typeof i!="object"){var u=i;t!=null&&t[u]!==void 0?n+=o+"{"+t[u]+"}":m3(u)&&(n+=v2(o)+":"+v3(o,u)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var d=0;d<i.length;d++)m3(i[d])&&(n+=v2(o)+":"+v3(o,i[d])+";");else{var l=lb(e,t,i);switch(o){case"animation":case"animationName":{n+=v2(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}var g3=/label:\s*([^\s;{]+)\s*(;|$)/g,yl;function Gb(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";yl=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,a+=lb(r,t,o);else{var i=o;a+=i[0]}for(var u=1;u<e.length;u++)if(a+=lb(r,t,e[u]),n){var d=o;a+=d[u]}g3.lastIndex=0;for(var l="",h;(h=g3.exec(a))!==null;)l+="-"+h[1];var v=Hre(a)+l;return{name:v,styles:a,next:yl}}var Yre=function(t){return t()},rq=P1.useInsertionEffect?P1.useInsertionEffect:!1,nq=rq||Yre,y3=rq||p.useLayoutEffect,aq=p.createContext(typeof HTMLElement<"u"?zre({key:"css"}):null);aq.Provider;var PI=function(t){return p.forwardRef(function(r,n){var a=p.useContext(aq);return t(r,a,n)})},Qb=p.createContext({}),RI={}.hasOwnProperty,Rk="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jre=function(t,r){var n={};for(var a in r)RI.call(r,a)&&(n[a]=r[a]);return n[Rk]=t,n},Zre=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return EI(r,n,a),nq(function(){return OI(r,n,a)}),null},ene=PI(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[Rk],o=[n],i="";typeof e.className=="string"?i=eq(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var u=Gb(o,void 0,p.useContext(Qb));i+=t.key+"-"+u.name;var d={};for(var l in e)RI.call(e,l)&&l!=="css"&&l!==Rk&&(d[l]=e[l]);return d.className=i,r&&(d.ref=r),p.createElement(p.Fragment,null,p.createElement(Zre,{cache:t,serialized:u,isStringTag:typeof a=="string"}),p.createElement(a,d))}),tne=ene,b3=function(t,r){var n=arguments;if(r==null||!RI.call(r,"css"))return p.createElement.apply(void 0,n);var a=n.length,o=new Array(a);o[0]=tne,o[1]=Jre(t,r);for(var i=2;i<a;i++)o[i]=n[i];return p.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(b3||(b3={}));var rne=PI(function(e,t){var r=e.styles,n=Gb([r],void 0,p.useContext(Qb)),a=p.useRef();return y3(function(){var o=t.key+"-global",i=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,d=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),d!==null&&(u=!0,d.setAttribute("data-emotion",o),i.hydrate([d])),a.current=[i,u],function(){i.flush()}},[t]),y3(function(){var o=a.current,i=o[0],u=o[1];if(u){o[1]=!1;return}if(n.next!==void 0&&OI(t,n.next,!0),i.tags.length){var d=i.tags[i.tags.length-1].nextElementSibling;i.before=d,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function vv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Gb(t)}function bd(){var e=vv.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var nne=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ane=J6(function(e){return nne.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),one=ane,ine=function(t){return t!=="theme"},_3=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?one:ine},w3=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},sne=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return EI(r,n,a),nq(function(){return OI(r,n,a)}),null},lne=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var u=w3(t,r,n),d=u||_3(a),l=!d("as");return function(){var h=arguments,v=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&v.push("label:"+o+";"),h[0]==null||h[0].raw===void 0)v.push.apply(v,h);else{var y=h[0];v.push(y[0]);for(var b=h.length,_=1;_<b;_++)v.push(h[_],y[_])}var w=PI(function(S,A,R){var C=l&&S.as||a,O="",T=[],E=S;if(S.theme==null){E={};for(var L in S)E[L]=S[L];E.theme=p.useContext(Qb)}typeof S.className=="string"?O=eq(A.registered,T,S.className):S.className!=null&&(O=S.className+" ");var j=Gb(v.concat(T),A.registered,E);O+=A.key+"-"+j.name,i!==void 0&&(O+=" "+i);var M=l&&u===void 0?_3(C):d,k={};for(var $ in S)l&&$==="as"||M($)&&(k[$]=S[$]);return k.className=O,R&&(k.ref=R),p.createElement(p.Fragment,null,p.createElement(sne,{cache:A,serialized:j,isStringTag:typeof C=="string"}),p.createElement(C,k))});return w.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=a,w.__emotion_styles=v,w.__emotion_forwardProp=u,Object.defineProperty(w,"toString",{value:function(){return"."+i}}),w.withComponent=function(S,A){var R=e(S,G1({},r,A,{shouldForwardProp:w3(w,A,!0)}));return R.apply(void 0,v)},w}},une=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],kk=lne.bind(null);une.forEach(function(e){kk[e]=kk(e)});function cne(e){return e==null||Object.keys(e).length===0}function oq(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t(cne(a)?r:a):t;return I.jsx(rne,{styles:n})}function iq(e,t){return kk(e,t)}function dne(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const x3=[];function S3(e){return x3[0]=e,Gb(x3)}function bl(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function sq(e){if(p.isValidElement(e)||vI.isValidElementType(e)||!bl(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=sq(e[r])}),t}function Ln(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return bl(e)&&bl(t)&&Object.keys(t).forEach(a=>{p.isValidElement(t[a])||vI.isValidElementType(t[a])?n[a]=t[a]:bl(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&bl(e[a])?n[a]=Ln(e[a],t[a],r):r.clone?n[a]=bl(t[a])?sq(t[a]):t[a]:n[a]=t[a]}),n}const fne=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function pne(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...a}=e,o=fne(t),i=Object.keys(o);function u(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r})`}function d(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-n/100}${r})`}function l(y,b){const _=i.indexOf(b);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r}) and (max-width:${(_!==-1&&typeof t[i[_]]=="number"?t[i[_]]:b)-n/100}${r})`}function h(y){return i.indexOf(y)+1<i.length?l(y,i[i.indexOf(y)+1]):u(y)}function v(y){const b=i.indexOf(y);return b===0?u(i[1]):b===i.length-1?d(i[b]):l(y,i[i.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:i,values:o,up:u,down:d,between:l,only:h,not:v,unit:r,...a}}function hne(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,a)=>{var i,u;const o=/min-width:\s*([0-9.]+)/;return+(((i=n.match(o))==null?void 0:i[1])||0)-+(((u=a.match(o))==null?void 0:u[1])||0)});return r.length?r.reduce((n,a)=>{const o=t[a];return delete n[a],n[a]=o,n},{...t}):t}function mne(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function vne(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,a]=r,o=Number.isNaN(+n)?n||0:+n;return e.containerQueries(a).up(o)}function gne(e){const t=(o,i)=>o.replace("@media",i?`@container ${i}`:"@container");function r(o,i){o.up=(...u)=>t(e.breakpoints.up(...u),i),o.down=(...u)=>t(e.breakpoints.down(...u),i),o.between=(...u)=>t(e.breakpoints.between(...u),i),o.only=(...u)=>t(e.breakpoints.only(...u),i),o.not=(...u)=>{const d=t(e.breakpoints.not(...u),i);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const n={},a=o=>(r(n,o),n);return r(a),{...e,containerQueries:a}}const yne={borderRadius:4};function Cy(e,t){return t?Ln(e,t,{clone:!1}):e}const Dx={xs:0,sm:600,md:900,lg:1200,xl:1536},C3={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Dx[e]}px)`},bne={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Dx[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Cs(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||C3;return t.reduce((i,u,d)=>(i[o.up(o.keys[d])]=r(t[d]),i),{})}if(typeof t=="object"){const o=n.breakpoints||C3;return Object.keys(t).reduce((i,u)=>{if(mne(o.keys,u)){const d=vne(n.containerQueries?n:bne,u);d&&(i[d]=r(t[u],u))}else if(Object.keys(o.values||Dx).includes(u)){const d=o.up(u);i[d]=r(t[u],u)}else{const d=u;i[d]=t[d]}return i},{})}return r(t)}function lq(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function uq(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function _ne(e,...t){const r=lq(e),n=[r,...t].reduce((a,o)=>Ln(a,o),{});return uq(Object.keys(r),n)}function wne(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((a,o)=>{o<e.length&&(r[a]=!0)}):n.forEach(a=>{e[a]!=null&&(r[a]=!0)}),r}function g2({values:e,breakpoints:t,base:r}){const n=r||wne(e,t),a=Object.keys(n);if(a.length===0)return e;let o;return a.reduce((i,u,d)=>(Array.isArray(e)?(i[u]=e[d]!=null?e[d]:e[o],o=d):typeof e=="object"?(i[u]=e[u]!=null?e[u]:e[o],o=u):i[u]=e,i),{})}function Ue(e){if(typeof e!="string")throw new Error(ju(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ed(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function X1(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=ed(e,r)||n,t&&(a=t(a,n,e)),a}function On(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=i=>{if(i[t]==null)return null;const u=i[t],d=i.theme,l=ed(d,n)||{};return Cs(i,u,v=>{let y=X1(l,a,v);return v===y&&typeof v=="string"&&(y=X1(l,a,`${t}${v==="default"?"":Ue(v)}`,v)),r===!1?y:{[r]:y}})};return o.propTypes={},o.filterProps=[t],o}function xne(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Sne={m:"margin",p:"padding"},Cne={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},E3={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ene=xne(e=>{if(e.length>2)if(E3[e])e=E3[e];else return[e];const[t,r]=e.split(""),n=Sne[t],a=Cne[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),kI=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],TI=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...kI,...TI];function Xb(e,t,r,n){const a=ed(e,t,!0)??r;return typeof a=="number"||typeof a=="string"?o=>typeof o=="string"?o:typeof a=="string"?a.startsWith("var(")&&o===0?0:a.startsWith("var(")&&o===1?a:`calc(${o} * ${a})`:a*o:Array.isArray(a)?o=>{if(typeof o=="string")return o;const i=Math.abs(o),u=a[i];return o>=0?u:typeof u=="number"?-u:typeof u=="string"&&u.startsWith("var(")?`calc(-1 * ${u})`:`-${u}`}:typeof a=="function"?a:()=>{}}function Nx(e){return Xb(e,"spacing",8)}function ip(e,t){return typeof t=="string"||t==null?t:e(t)}function One(e,t){return r=>e.reduce((n,a)=>(n[a]=ip(t,r),n),{})}function Pne(e,t,r,n){if(!t.includes(r))return null;const a=Ene(r),o=One(a,n),i=e[r];return Cs(e,i,o)}function cq(e,t){const r=Nx(e.theme);return Object.keys(e).map(n=>Pne(e,t,n,r)).reduce(Cy,{})}function cn(e){return cq(e,kI)}cn.propTypes={};cn.filterProps=kI;function dn(e){return cq(e,TI)}dn.propTypes={};dn.filterProps=TI;function dq(e=8,t=Nx({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function Bx(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Cy(a,t[o](n)):a,{});return r.propTypes={},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function Ni(e){return typeof e!="number"?e:`${e}px solid`}function Gi(e,t){return On({prop:e,themeKey:"borders",transform:t})}const Rne=Gi("border",Ni),kne=Gi("borderTop",Ni),Tne=Gi("borderRight",Ni),Ane=Gi("borderBottom",Ni),Ine=Gi("borderLeft",Ni),jne=Gi("borderColor"),Mne=Gi("borderTopColor"),Fne=Gi("borderRightColor"),Lne=Gi("borderBottomColor"),$ne=Gi("borderLeftColor"),Dne=Gi("outline",Ni),Nne=Gi("outlineColor"),zx=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Xb(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:ip(t,n)});return Cs(e,e.borderRadius,r)}return null};zx.propTypes={};zx.filterProps=["borderRadius"];Bx(Rne,kne,Tne,Ane,Ine,jne,Mne,Fne,Lne,$ne,zx,Dne,Nne);const qx=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Xb(e.theme,"spacing",8),r=n=>({gap:ip(t,n)});return Cs(e,e.gap,r)}return null};qx.propTypes={};qx.filterProps=["gap"];const Ux=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Xb(e.theme,"spacing",8),r=n=>({columnGap:ip(t,n)});return Cs(e,e.columnGap,r)}return null};Ux.propTypes={};Ux.filterProps=["columnGap"];const Vx=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Xb(e.theme,"spacing",8),r=n=>({rowGap:ip(t,n)});return Cs(e,e.rowGap,r)}return null};Vx.propTypes={};Vx.filterProps=["rowGap"];const Bne=On({prop:"gridColumn"}),zne=On({prop:"gridRow"}),qne=On({prop:"gridAutoFlow"}),Une=On({prop:"gridAutoColumns"}),Vne=On({prop:"gridAutoRows"}),Wne=On({prop:"gridTemplateColumns"}),Hne=On({prop:"gridTemplateRows"}),Kne=On({prop:"gridTemplateAreas"}),Gne=On({prop:"gridArea"});Bx(qx,Ux,Vx,Bne,zne,qne,Une,Vne,Wne,Hne,Kne,Gne);function lm(e,t){return t==="grey"?t:e}const Qne=On({prop:"color",themeKey:"palette",transform:lm}),Xne=On({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lm}),Yne=On({prop:"backgroundColor",themeKey:"palette",transform:lm});Bx(Qne,Xne,Yne);function ai(e){return e<=1&&e!==0?`${e*100}%`:e}const Jne=On({prop:"width",transform:ai}),AI=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var a,o,i,u,d;const n=((i=(o=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:o.values)==null?void 0:i[r])||Dx[r];return n?((d=(u=e.theme)==null?void 0:u.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:ai(r)}};return Cs(e,e.maxWidth,t)}return null};AI.filterProps=["maxWidth"];const Zne=On({prop:"minWidth",transform:ai}),eae=On({prop:"height",transform:ai}),tae=On({prop:"maxHeight",transform:ai}),rae=On({prop:"minHeight",transform:ai});On({prop:"size",cssProperty:"width",transform:ai});On({prop:"size",cssProperty:"height",transform:ai});const nae=On({prop:"boxSizing"});Bx(Jne,AI,Zne,eae,tae,rae,nae);const Yb={border:{themeKey:"borders",transform:Ni},borderTop:{themeKey:"borders",transform:Ni},borderRight:{themeKey:"borders",transform:Ni},borderBottom:{themeKey:"borders",transform:Ni},borderLeft:{themeKey:"borders",transform:Ni},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ni},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zx},color:{themeKey:"palette",transform:lm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lm},backgroundColor:{themeKey:"palette",transform:lm},p:{style:dn},pt:{style:dn},pr:{style:dn},pb:{style:dn},pl:{style:dn},px:{style:dn},py:{style:dn},padding:{style:dn},paddingTop:{style:dn},paddingRight:{style:dn},paddingBottom:{style:dn},paddingLeft:{style:dn},paddingX:{style:dn},paddingY:{style:dn},paddingInline:{style:dn},paddingInlineStart:{style:dn},paddingInlineEnd:{style:dn},paddingBlock:{style:dn},paddingBlockStart:{style:dn},paddingBlockEnd:{style:dn},m:{style:cn},mt:{style:cn},mr:{style:cn},mb:{style:cn},ml:{style:cn},mx:{style:cn},my:{style:cn},margin:{style:cn},marginTop:{style:cn},marginRight:{style:cn},marginBottom:{style:cn},marginLeft:{style:cn},marginX:{style:cn},marginY:{style:cn},marginInline:{style:cn},marginInlineStart:{style:cn},marginInlineEnd:{style:cn},marginBlock:{style:cn},marginBlockStart:{style:cn},marginBlockEnd:{style:cn},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:qx},rowGap:{style:Vx},columnGap:{style:Ux},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ai},maxWidth:{style:AI},minWidth:{transform:ai},height:{transform:ai},maxHeight:{transform:ai},minHeight:{transform:ai},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function aae(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function oae(e,t){return typeof e=="function"?e(t):e}function iae(){function e(r,n,a,o){const i={[r]:n,theme:a},u=o[r];if(!u)return{[r]:n};const{cssProperty:d=r,themeKey:l,transform:h,style:v}=u;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const y=ed(a,l)||{};return v?v(i):Cs(i,n,_=>{let w=X1(y,h,_);return _===w&&typeof _=="string"&&(w=X1(y,h,`${r}${_==="default"?"":Ue(_)}`,_)),d===!1?w:{[d]:w}})}function t(r){const{sx:n,theme:a={}}=r||{};if(!n)return null;const o=a.unstable_sxConfig??Yb;function i(u){let d=u;if(typeof u=="function")d=u(a);else if(typeof u!="object")return u;if(!d)return null;const l=lq(a.breakpoints),h=Object.keys(l);let v=l;return Object.keys(d).forEach(y=>{const b=oae(d[y],a);if(b!=null)if(typeof b=="object")if(o[y])v=Cy(v,e(y,b,a,o));else{const _=Cs({theme:a},b,w=>({[y]:w}));aae(_,b)?v[y]=t({sx:b,theme:a}):v=Cy(v,_)}else v=Cy(v,e(y,b,a,o))}),hne(a,uq(h,v))}return Array.isArray(n)?n.map(i):i(n)}return t}const ld=iae();ld.filterProps=["sx"];function sae(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let a=r.getColorSchemeSelector(e);return a==="&"?t:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:t})}return r.palette.mode===e?t:{}}function Jb(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={},...i}=e,u=pne(r),d=dq(a);let l=Ln({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:d,shape:{...yne,...o}},i);return l=gne(l),l.applyStyles=sae,l=t.reduce((h,v)=>Ln(h,v),l),l.unstable_sxConfig={...Yb,...i==null?void 0:i.unstable_sxConfig},l.unstable_sx=function(v){return ld({sx:v,theme:this})},l}function lae(e){return Object.keys(e).length===0}function II(e=null){const t=p.useContext(Qb);return!t||lae(t)?e:t}const uae=Jb();function Wx(e=uae){return II(e)}function cae({styles:e,themeId:t,defaultTheme:r={}}){const n=Wx(r),a=typeof e=="function"?e(t&&n[t]||n):e;return I.jsx(oq,{styles:a})}const dae=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??Yb;return Object.keys(e).forEach(a=>{r[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function jI(e){const{sx:t,...r}=e,{systemProps:n,otherProps:a}=dae(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...i)=>{const u=t(...i);return bl(u)?{...n,...u}:n}:o={...n,...t},{...a,sx:o}}const O3=e=>e,fae=()=>{let e=O3;return{configure(t){e=t},generate(t){return e(t)},reset(){e=O3}}},fq=fae();function pq(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=pq(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ae(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=pq(e))&&(n&&(n+=" "),n+=t);return n}function pae(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:a}=e,o=iq("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(ld);return p.forwardRef(function(d,l){const h=Wx(r),{className:v,component:y="div",...b}=jI(d);return I.jsx(o,{as:y,ref:l,className:Ae(v,a?a(n):n),theme:t&&h[t]||h,...b})})}const hae={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 _t(e,t,r="Mui"){const n=hae[t];return n?`${r}-${n}`:`${fq.generate(e)}-${t}`}function St(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=_t(e,a,r)}),n}function hq(e){const{variants:t,...r}=e,n={variants:t,style:S3(r),isProcessed:!0};return n.style===r||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=S3(a.style))}),n}const mae=Jb();function y2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function vae(e){return e?(t,r)=>r[e]:null}function gae(e,t,r){e.theme=bae(e.theme)?r:e.theme[t]||e.theme}function b1(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>b1(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:a,...o}=r;n=o}return mq(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function mq(e,t,r=[]){var a;let n;e:for(let o=0;o<t.length;o+=1){const i=t[o];if(typeof i.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(n))continue}else for(const u in i.props)if(e[u]!==i.props[u]&&((a=e.ownerState)==null?void 0:a[u])!==i.props[u])continue e;typeof i.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(i.style(n))):r.push(i.style)}return r}function vq(e={}){const{themeId:t,defaultTheme:r=mae,rootShouldForwardProp:n=y2,slotShouldForwardProp:a=y2}=e;function o(u){gae(u,t,r)}return(u,d={})=>{dne(u,T=>T.filter(E=>E!==ld));const{name:l,slot:h,skipVariantsResolver:v,skipSx:y,overridesResolver:b=vae(wae(h)),..._}=d,w=v!==void 0?v:h&&h!=="Root"&&h!=="root"||!1,S=y||!1;let A=y2;h==="Root"||h==="root"?A=n:h?A=a:_ae(u)&&(A=void 0);const R=iq(u,{shouldForwardProp:A,label:yae(),..._}),C=T=>{if(typeof T=="function"&&T.__emotion_real!==T)return function(L){return b1(L,T)};if(bl(T)){const E=hq(T);return E.variants?function(j){return b1(j,E)}:E.style}return T},O=(...T)=>{const E=[],L=T.map(C),j=[];if(E.push(o),l&&b&&j.push(function(B){var Q,V;const U=(V=(Q=B.theme.components)==null?void 0:Q[l])==null?void 0:V.styleOverrides;if(!U)return null;const W={};for(const K in U)W[K]=b1(B,U[K]);return b(B,W)}),l&&!w&&j.push(function(B){var W,Q;const z=B.theme,U=(Q=(W=z==null?void 0:z.components)==null?void 0:W[l])==null?void 0:Q.variants;return U?mq(B,U):null}),S||j.push(ld),Array.isArray(L[0])){const $=L.shift(),B=new Array(E.length).fill(""),z=new Array(j.length).fill("");let U;U=[...B,...$,...z],U.raw=[...B,...$.raw,...z],E.unshift(U)}const M=[...E,...L,...j],k=R(...M);return u.muiName&&(k.muiName=u.muiName),k};return R.withConfig&&(O.withConfig=R.withConfig),O}}function yae(e,t){return void 0}function bae(e){for(const t in e)return!1;return!0}function _ae(e){return typeof e=="string"&&e.charCodeAt(0)>96}function wae(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const gq=vq();function ub(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const a=n;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const o=e[a],i=t[a];if(!i)r[a]=o||{};else if(!o)r[a]=i;else{r[a]={...i};for(const u in o)if(Object.prototype.hasOwnProperty.call(o,u)){const d=u;r[a][d]=ub(o[d],i[d])}}}else r[a]===void 0&&(r[a]=e[a])}return r}function yq(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:ub(t.components[r].defaultProps,n)}function Zb({props:e,name:t,defaultTheme:r,themeId:n}){let a=Wx(r);return n&&(a=a[n]||a),yq({theme:a,name:t,props:e})}const ci=typeof window<"u"?p.useLayoutEffect:p.useEffect;function xae(e,t,r,n,a){const[o,i]=p.useState(()=>a&&r?r(e).matches:n?n(e).matches:t);return ci(()=>{if(!r)return;const u=r(e),d=()=>{i(u.matches)};return d(),u.addEventListener("change",d),()=>{u.removeEventListener("change",d)}},[e,r]),o}const Sae={...P1},bq=Sae.useSyncExternalStore;function Cae(e,t,r,n,a){const o=p.useCallback(()=>t,[t]),i=p.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(n!==null){const{matches:h}=n(e);return()=>h}return o},[o,e,n,a,r]),[u,d]=p.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const h=r(e);return[()=>h.matches,v=>(h.addEventListener("change",v),()=>{h.removeEventListener("change",v)})]},[o,r,e]);return bq(d,u,i)}function _q(e={}){const{themeId:t}=e;return function(n,a={}){let o=II();o&&t&&(o=o[t]||o);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:u=!1,matchMedia:d=i?window.matchMedia:null,ssrMatchMedia:l=null,noSsr:h=!1}=yq({name:"MuiUseMediaQuery",props:a,theme:o});let v=typeof n=="function"?n(o):n;return v=v.replace(/^@media( ?)/m,""),v.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(`
`)),(bq!==void 0?Cae:xae)(v,u,d,l,h)}}_q();function Eae(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function MI(e,t=0,r=1){return Eae(e,t,r)}function Oae(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function ud(e){if(e.type)return e;if(e.charAt(0)==="#")return ud(Oae(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(ju(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(ju(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const Pae=e=>{const t=ud(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},py=(e,t)=>{try{return Pae(e)}catch{return e}};function Hx(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function wq(e){e=ud(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),i=(l,h=(l+r/30)%12)=>a-o*Math.max(Math.min(h-3,9-h,1),-1);let u="rgb";const d=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(u+="a",d.push(t[3])),Hx({type:u,values:d})}function Tk(e){e=ud(e);let t=e.type==="hsl"||e.type==="hsla"?ud(wq(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Rae(e,t){const r=Tk(e),n=Tk(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function dr(e,t){return e=ud(e),t=MI(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Hx(e)}function U_(e,t,r){try{return dr(e,t)}catch{return e}}function gv(e,t){if(e=ud(e),t=MI(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Hx(e)}function zr(e,t,r){try{return gv(e,t)}catch{return e}}function _d(e,t){if(e=ud(e),t=MI(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Hx(e)}function qr(e,t,r){try{return _d(e,t)}catch{return e}}function xq(e,t=.15){return Tk(e)>.5?gv(e,t):_d(e,t)}function V_(e,t,r){try{return xq(e,t)}catch{return e}}const Sq=p.createContext(null);function FI(){return p.useContext(Sq)}const kae=typeof Symbol=="function"&&Symbol.for,Tae=kae?Symbol.for("mui.nested"):"__THEME_NESTED__";function Aae(e,t){return typeof t=="function"?t(e):{...e,...t}}function Iae(e){const{children:t,theme:r}=e,n=FI(),a=p.useMemo(()=>{const o=n===null?{...r}:Aae(n,r);return o!=null&&(o[Tae]=n!==null),o},[r,n]);return I.jsx(Sq.Provider,{value:a,children:t})}const Cq=p.createContext();function jae({value:e,...t}){return I.jsx(Cq.Provider,{value:e??!0,...t})}const $u=()=>p.useContext(Cq)??!1,Eq=p.createContext(void 0);function Mae({value:e,children:t}){return I.jsx(Eq.Provider,{value:e,children:t})}function Fae(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const a=t.components[r];return a.defaultProps?ub(a.defaultProps,n):!a.styleOverrides&&!a.variants?ub(a,n):n}function Lae({props:e,name:t}){const r=p.useContext(Eq);return Fae({props:e,name:t,theme:{components:r}})}const P3={};function R3(e,t,r,n=!1){return p.useMemo(()=>{const a=e&&t[e]||t;if(typeof r=="function"){const o=r(a),i=e?{...t,[e]:o}:o;return n?()=>i:i}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,n])}function Oq(e){const{children:t,theme:r,themeId:n}=e,a=II(P3),o=FI()||P3,i=R3(n,a,r),u=R3(n,o,r,!0),d=(n?i[n]:i).direction==="rtl";return I.jsx(Iae,{theme:u,children:I.jsx(Qb.Provider,{value:i,children:I.jsx(jae,{value:d,children:I.jsx(Mae,{value:n?i[n].components:i.components,children:t})})})})}const k3={theme:void 0};function $ae(e){let t,r;return function(a){let o=t;return(o===void 0||a.theme!==r)&&(k3.theme=a.theme,o=hq(e(k3)),t=o,r=a.theme),o}}const LI="mode",$I="color-scheme",Dae="data-color-scheme";function Nae(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:a=LI,colorSchemeStorageKey:o=$I,attribute:i=Dae,colorSchemeNode:u="document.documentElement",nonce:d}=e||{};let l="",h=i;if(i==="class"&&(h=".%s"),i==="data"&&(h="[data-%s]"),h.startsWith(".")){const y=h.substring(1);l+=`${u}.classList.remove('${y}'.replace('%s', light), '${y}'.replace('%s', dark));
${u}.classList.add('${y}'.replace('%s', colorScheme));`}const v=h.match(/\[([^\]]+)\]/);if(v){const[y,b]=v[1].split("=");b||(l+=`${u}.removeAttribute('${y}'.replace('%s', light));
${u}.removeAttribute('${y}'.replace('%s', dark));`),l+=`
${u}.setAttribute('${y}'.replace('%s', colorScheme), ${b?`${b}.replace('%s', colorScheme)`:'""'});`}else l+=`${u}.setAttribute('${h}', colorScheme);`;return I.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() {
try {
let colorScheme = '';
const mode = localStorage.getItem('${a}') || '${t}';
const dark = localStorage.getItem('${o}-dark') || '${n}';
const light = localStorage.getItem('${o}-light') || '${r}';
if (mode === 'system') {
// handle system mode
const mql = window.matchMedia('(prefers-color-scheme: dark)');
if (mql.matches) {
colorScheme = dark
} else {
colorScheme = light
}
}
if (mode === 'light') {
colorScheme = light;
}
if (mode === 'dark') {
colorScheme = dark;
}
if (colorScheme) {
${l}
}
} catch(e){}})();`}},"mui-color-scheme-init")}function Bae(){}const zae=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(r){if(typeof window>"u")return;if(!t)return r;let n;try{n=t.localStorage.getItem(e)}catch{}return n||r},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return Bae;const n=a=>{const o=a.newValue;a.key===e&&r(o)};return t.addEventListener("storage",n),()=>{t.removeEventListener("storage",n)}}});function b2(){}function T3(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Pq(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function qae(e){return Pq(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Uae(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:a=[],modeStorageKey:o=LI,colorSchemeStorageKey:i=$I,storageWindow:u=typeof window>"u"?void 0:window,storageManager:d=zae,noSsr:l=!1}=e,h=a.join(","),v=a.length>1,y=p.useMemo(()=>d==null?void 0:d({key:o,storageWindow:u}),[d,o,u]),b=p.useMemo(()=>d==null?void 0:d({key:`${i}-light`,storageWindow:u}),[d,i,u]),_=p.useMemo(()=>d==null?void 0:d({key:`${i}-dark`,storageWindow:u}),[d,i,u]),[w,S]=p.useState(()=>{const j=(y==null?void 0:y.get(t))||t,M=(b==null?void 0:b.get(r))||r,k=(_==null?void 0:_.get(n))||n;return{mode:j,systemMode:T3(j),lightColorScheme:M,darkColorScheme:k}}),[A,R]=p.useState(l||!v);p.useEffect(()=>{R(!0)},[]);const C=qae(w),O=p.useCallback(j=>{S(M=>{if(j===M.mode)return M;const k=j??t;return y==null||y.set(k),{...M,mode:k,systemMode:T3(k)}})},[y,t]),T=p.useCallback(j=>{j?typeof j=="string"?j&&!h.includes(j)?console.error(`\`${j}\` does not exist in \`theme.colorSchemes\`.`):S(M=>{const k={...M};return Pq(M,$=>{$==="light"&&(b==null||b.set(j),k.lightColorScheme=j),$==="dark"&&(_==null||_.set(j),k.darkColorScheme=j)}),k}):S(M=>{const k={...M},$=j.light===null?r:j.light,B=j.dark===null?n:j.dark;return $&&(h.includes($)?(k.lightColorScheme=$,b==null||b.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),B&&(h.includes(B)?(k.darkColorScheme=B,_==null||_.set(B)):console.error(`\`${B}\` does not exist in \`theme.colorSchemes\`.`)),k}):S(M=>(b==null||b.set(r),_==null||_.set(n),{...M,lightColorScheme:r,darkColorScheme:n}))},[h,b,_,r,n]),E=p.useCallback(j=>{w.mode==="system"&&S(M=>{const k=j!=null&&j.matches?"dark":"light";return M.systemMode===k?M:{...M,systemMode:k}})},[w.mode]),L=p.useRef(E);return L.current=E,p.useEffect(()=>{if(typeof window.matchMedia!="function"||!v)return;const j=(...k)=>L.current(...k),M=window.matchMedia("(prefers-color-scheme: dark)");return M.addListener(j),j(M),()=>{M.removeListener(j)}},[v]),p.useEffect(()=>{if(v){const j=(y==null?void 0:y.subscribe($=>{(!$||["light","dark","system"].includes($))&&O($||t)}))||b2,M=(b==null?void 0:b.subscribe($=>{(!$||h.match($))&&T({light:$})}))||b2,k=(_==null?void 0:_.subscribe($=>{(!$||h.match($))&&T({dark:$})}))||b2;return()=>{j(),M(),k()}}},[T,O,h,t,u,v,y,b,_]),{...w,mode:A?w.mode:void 0,systemMode:A?w.systemMode:void 0,colorScheme:A?C:void 0,setMode:O,setColorScheme:T}}const Vae="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Wae(e){const{themeId:t,theme:r={},modeStorageKey:n=LI,colorSchemeStorageKey:a=$I,disableTransitionOnChange:o=!1,defaultColorScheme:i,resolveTheme:u}=e,d={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=p.createContext(void 0),h=()=>p.useContext(l)||d,v={},y={};function b(A){var ht,lt,bt,Pt;const{children:R,theme:C,modeStorageKey:O=n,colorSchemeStorageKey:T=a,disableTransitionOnChange:E=o,storageManager:L,storageWindow:j=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:k=typeof document>"u"?void 0:document.documentElement,disableNestedContext:$=!1,disableStyleSheetGeneration:B=!1,defaultMode:z="system",forceThemeRerender:U=!1,noSsr:W}=A,Q=p.useRef(!1),V=FI(),K=p.useContext(l),X=!!K&&!$,te=p.useMemo(()=>C||(typeof r=="function"?r():r),[C]),G=te[t],J=G||te,{colorSchemes:de=v,components:ce=y,cssVarPrefix:ue}=J,be=Object.keys(de).filter(Tt=>!!de[Tt]).join(","),Pe=p.useMemo(()=>be.split(","),[be]),Ee=typeof i=="string"?i:i.light,ge=typeof i=="string"?i:i.dark,xe=de[Ee]&&de[ge]?z:((lt=(ht=de[J.defaultColorScheme])==null?void 0:ht.palette)==null?void 0:lt.mode)||((bt=J.palette)==null?void 0:bt.mode),{mode:Oe,setMode:Te,systemMode:Me,lightColorScheme:Fe,darkColorScheme:$e,colorScheme:et,setColorScheme:qe}=Uae({supportedColorSchemes:Pe,defaultLightColorScheme:Ee,defaultDarkColorScheme:ge,modeStorageKey:O,colorSchemeStorageKey:T,defaultMode:xe,storageManager:L,storageWindow:j,noSsr:W});let re=Oe,oe=et;X&&(re=K.mode,oe=K.colorScheme);let pe=oe||J.defaultColorScheme;J.vars&&!U&&(pe=J.defaultColorScheme);const Se=p.useMemo(()=>{var Dt;const Tt=((Dt=J.generateThemeVars)==null?void 0:Dt.call(J))||J.vars,Je={...J,components:ce,colorSchemes:de,cssVarPrefix:ue,vars:Tt};if(typeof Je.generateSpacing=="function"&&(Je.spacing=Je.generateSpacing()),pe){const Lt=de[pe];Lt&&typeof Lt=="object"&&Object.keys(Lt).forEach(Ct=>{Lt[Ct]&&typeof Lt[Ct]=="object"?Je[Ct]={...Je[Ct],...Lt[Ct]}:Je[Ct]=Lt[Ct]})}return u?u(Je):Je},[J,pe,ce,de,ue]),ne=J.colorSchemeSelector;ci(()=>{if(oe&&k&&ne&&ne!=="media"){const Tt=ne;let Je=ne;if(Tt==="class"&&(Je=".%s"),Tt==="data"&&(Je="[data-%s]"),Tt!=null&&Tt.startsWith("data-")&&!Tt.includes("%s")&&(Je=`[${Tt}="%s"]`),Je.startsWith("."))k.classList.remove(...Pe.map(Dt=>Je.substring(1).replace("%s",Dt))),k.classList.add(Je.substring(1).replace("%s",oe));else{const Dt=Je.replace("%s",oe).match(/\[([^\]]+)\]/);if(Dt){const[Lt,Ct]=Dt[1].split("=");Ct||Pe.forEach(ct=>{k.removeAttribute(Lt.replace(oe,ct))}),k.setAttribute(Lt,Ct?Ct.replace(/"|'/g,""):"")}else k.setAttribute(Je,oe)}}},[oe,ne,k,Pe]),p.useEffect(()=>{let Tt;if(E&&Q.current&&M){const Je=M.createElement("style");Je.appendChild(M.createTextNode(Vae)),M.head.appendChild(Je),window.getComputedStyle(M.body),Tt=setTimeout(()=>{M.head.removeChild(Je)},1)}return()=>{clearTimeout(Tt)}},[oe,E,M]),p.useEffect(()=>(Q.current=!0,()=>{Q.current=!1}),[]);const we=p.useMemo(()=>({allColorSchemes:Pe,colorScheme:oe,darkColorScheme:$e,lightColorScheme:Fe,mode:re,setColorScheme:qe,setMode:Te,systemMode:Me}),[Pe,oe,$e,Fe,re,qe,Te,Me,Se.colorSchemeSelector]);let Ne=!0;(B||J.cssVariables===!1||X&&(V==null?void 0:V.cssVarPrefix)===ue)&&(Ne=!1);const De=I.jsxs(p.Fragment,{children:[I.jsx(Oq,{themeId:G?t:void 0,theme:Se,children:R}),Ne&&I.jsx(oq,{styles:((Pt=Se.generateStyleSheets)==null?void 0:Pt.call(Se))||[]})]});return X?De:I.jsx(l.Provider,{value:we,children:De})}const _=typeof i=="string"?i:i.light,w=typeof i=="string"?i:i.dark;return{CssVarsProvider:b,useColorScheme:h,getInitColorSchemeScript:A=>Nae({colorSchemeStorageKey:a,defaultLightColorScheme:_,defaultDarkColorScheme:w,modeStorageKey:n,...A})}}function Hae(e=""){function t(...n){if(!n.length)return"";const a=n[0];return typeof a=="string"&&!a.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}-`:""}${a}${t(...n.slice(1))})`:`, ${a}`}return(n,...a)=>`var(--${e?`${e}-`:""}${n}${t(...a)})`}const A3=(e,t,r,n=[])=>{let a=e;t.forEach((o,i)=>{i===t.length-1?Array.isArray(a)?a[Number(o)]=r:a&&typeof a=="object"&&(a[o]=r):a&&typeof a=="object"&&(a[o]||(a[o]=n.includes(o)?[]:{}),a=a[o])})},Kae=(e,t,r)=>{function n(a,o=[],i=[]){Object.entries(a).forEach(([u,d])=>{(!r||r&&!r([...o,u]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?n(d,[...o,u],Array.isArray(d)?[...i,u]:i):t([...o,u],d,i))})}n(e)},Gae=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function _2(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},a={},o={},i={};return Kae(e,(u,d,l)=>{if((typeof d=="string"||typeof d=="number")&&(!n||!n(u,d))){const h=`--${r?`${r}-`:""}${u.join("-")}`,v=Gae(u,d);Object.assign(a,{[h]:v}),A3(o,u,`var(${h})`,l),A3(i,u,`var(${h}, ${v})`,l)}},u=>u[0]==="vars"),{css:a,vars:o,varsWithDefaults:i}}function Qae(e,t={}){const{getSelector:r=S,disableCssColorScheme:n,colorSchemeSelector:a}=t,{colorSchemes:o={},components:i,defaultColorScheme:u="light",...d}=e,{vars:l,css:h,varsWithDefaults:v}=_2(d,t);let y=v;const b={},{[u]:_,...w}=o;if(Object.entries(w||{}).forEach(([C,O])=>{const{vars:T,css:E,varsWithDefaults:L}=_2(O,t);y=Ln(y,L),b[C]={css:E,vars:T}}),_){const{css:C,vars:O,varsWithDefaults:T}=_2(_,t);y=Ln(y,T),b[u]={css:C,vars:O}}function S(C,O){var E,L;let T=a;if(a==="class"&&(T=".%s"),a==="data"&&(T="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(T=`[${a}="%s"]`),C){if(T==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((L=(E=o[C])==null?void 0:E.palette)==null?void 0:L.mode)||C})`]:{":root":O}};if(T)return e.defaultColorScheme===C?`:root, ${T.replace("%s",String(C))}`:T.replace("%s",String(C))}return":root"}return{vars:y,generateThemeVars:()=>{let C={...l};return Object.entries(b).forEach(([,{vars:O}])=>{C=Ln(C,O)}),C},generateStyleSheets:()=>{var j,M;const C=[],O=e.defaultColorScheme||"light";function T(k,$){Object.keys($).length&&C.push(typeof k=="string"?{[k]:{...$}}:k)}T(r(void 0,{...h}),h);const{[O]:E,...L}=b;if(E){const{css:k}=E,$=(M=(j=o[O])==null?void 0:j.palette)==null?void 0:M.mode,B=!n&&$?{colorScheme:$,...k}:{...k};T(r(O,{...B}),B)}return Object.entries(L).forEach(([k,{css:$}])=>{var U,W;const B=(W=(U=o[k])==null?void 0:U.palette)==null?void 0:W.mode,z=!n&&B?{colorScheme:B,...$}:{...$};T(r(k,{...z}),z)}),C}}}function Xae(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function yt(e,t,r=void 0){const n={};for(const a in e){const o=e[a];let i="",u=!0;for(let d=0;d<o.length;d+=1){const l=o[d];l&&(i+=(u===!0?"":" ")+t(l),u=!1,r&&r[l]&&(i+=" "+r[l]))}n[a]=i}return n}const Yae=Jb(),Jae=gq("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Ue(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),Zae=e=>Zb({props:e,name:"MuiContainer",defaultTheme:Yae}),eoe=(e,t)=>{const r=d=>_t(t,d),{classes:n,fixed:a,disableGutters:o,maxWidth:i}=e,u={root:["root",i&&`maxWidth${Ue(String(i))}`,a&&"fixed",o&&"disableGutters"]};return yt(u,r,n)};function toe(e={}){const{createStyledComponent:t=Jae,useThemeProps:r=Zae,componentName:n="MuiContainer"}=e,a=t(({theme:i,ownerState:u})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!u.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}}),({theme:i,ownerState:u})=>u.fixed&&Object.keys(i.breakpoints.values).reduce((d,l)=>{const h=l,v=i.breakpoints.values[h];return v!==0&&(d[i.breakpoints.up(h)]={maxWidth:`${v}${i.breakpoints.unit}`}),d},{}),({theme:i,ownerState:u})=>({...u.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},...u.maxWidth&&u.maxWidth!=="xs"&&{[i.breakpoints.up(u.maxWidth)]:{maxWidth:`${i.breakpoints.values[u.maxWidth]}${i.breakpoints.unit}`}}}));return p.forwardRef(function(u,d){const l=r(u),{className:h,component:v="div",disableGutters:y=!1,fixed:b=!1,maxWidth:_="lg",classes:w,...S}=l,A={...l,component:v,disableGutters:y,fixed:b,maxWidth:_},R=eoe(A,n);return I.jsx(a,{as:v,ownerState:A,className:Ae(R.root,h),ref:d,...S})})}function w2(e,t){var r,n,a;return p.isValidElement(e)&&t.indexOf(e.type.muiName??((a=(n=(r=e.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:a.muiName))!==-1}const roe=Jb(),noe=gq("div",{name:"MuiStack",slot:"Root"});function aoe(e){return Zb({props:e,name:"MuiStack",defaultTheme:roe})}function ooe(e,t){const r=p.Children.toArray(e).filter(Boolean);return r.reduce((n,a,o)=>(n.push(a),o<r.length-1&&n.push(p.cloneElement(t,{key:`separator-${o}`})),n),[])}const ioe=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],soe=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...Cs({theme:t},g2({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n}))};if(e.spacing){const n=Nx(t),a=Object.keys(t.breakpoints.values).reduce((d,l)=>((typeof e.spacing=="object"&&e.spacing[l]!=null||typeof e.direction=="object"&&e.direction[l]!=null)&&(d[l]=!0),d),{}),o=g2({values:e.direction,base:a}),i=g2({values:e.spacing,base:a});typeof o=="object"&&Object.keys(o).forEach((d,l,h)=>{if(!o[d]){const y=l>0?o[h[l-1]]:"column";o[d]=y}}),r=Ln(r,Cs({theme:t},i,(d,l)=>e.useFlexGap?{gap:ip(n,d)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ioe(l?o[l]:e.direction)}`]:ip(n,d)}}))}return r=_ne(t.breakpoints,r),r};function loe(e={}){const{createStyledComponent:t=noe,useThemeProps:r=aoe,componentName:n="MuiStack"}=e,a=()=>yt({root:["root"]},d=>_t(n,d),{}),o=t(soe);return p.forwardRef(function(d,l){const h=r(d),v=jI(h),{component:y="div",direction:b="column",spacing:_=0,divider:w,children:S,className:A,useFlexGap:R=!1,...C}=v,O={direction:b,spacing:_,useFlexGap:R},T=a();return I.jsx(o,{as:y,ownerState:O,ref:l,className:Ae(T.root,A),...C,children:w?ooe(S,w):S})})}function Rq(){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:ob.white,default:ob.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const uoe=Rq();function kq(){return{text:{primary:ob.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:ob.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const I3=kq();function j3(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=_d(e.main,a):t==="dark"&&(e.dark=gv(e.main,o)))}function coe(e="light"){return e==="dark"?{main:Of[200],light:Of[50],dark:Of[400]}:{main:Of[700],light:Of[400],dark:Of[800]}}function doe(e="light"){return e==="dark"?{main:qh[200],light:qh[50],dark:qh[400]}:{main:qh[500],light:qh[300],dark:qh[700]}}function foe(e="light"){return e==="dark"?{main:zh[500],light:zh[300],dark:zh[700]}:{main:zh[700],light:zh[400],dark:zh[800]}}function poe(e="light"){return e==="dark"?{main:Uh[400],light:Uh[300],dark:Uh[700]}:{main:Uh[700],light:Uh[500],dark:Uh[900]}}function hoe(e="light"){return e==="dark"?{main:Vh[400],light:Vh[300],dark:Vh[700]}:{main:Vh[800],light:Vh[500],dark:Vh[900]}}function moe(e="light"){return e==="dark"?{main:Gg[400],light:Gg[300],dark:Gg[700]}:{main:"#ed6c02",light:Gg[500],dark:Gg[900]}}function DI(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...a}=e,o=e.primary||coe(t),i=e.secondary||doe(t),u=e.error||foe(t),d=e.info||poe(t),l=e.success||hoe(t),h=e.warning||moe(t);function v(w){return Rae(w,I3.text.primary)>=r?I3.text.primary:uoe.text.primary}const y=({color:w,name:S,mainShade:A=500,lightShade:R=300,darkShade:C=700})=>{if(w={...w},!w.main&&w[A]&&(w.main=w[A]),!w.hasOwnProperty("main"))throw new Error(ju(11,S?` (${S})`:"",A));if(typeof w.main!="string")throw new Error(ju(12,S?` (${S})`:"",JSON.stringify(w.main)));return j3(w,"light",R,n),j3(w,"dark",C,n),w.contrastText||(w.contrastText=v(w.main)),w};let b;return t==="light"?b=Rq():t==="dark"&&(b=kq()),Ln({common:{...ob},mode:t,primary:y({color:o,name:"primary"}),secondary:y({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:u,name:"error"}),warning:y({color:h,name:"warning"}),info:y({color:d,name:"info"}),success:y({color:l,name:"success"}),grey:fre,contrastThreshold:r,getContrastText:v,augmentColor:y,tonalOffset:n,...b},a)}function voe(e){const t={};return Object.entries(e).forEach(n=>{const[a,o]=n;typeof o=="object"&&(t[a]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function goe(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function yoe(e){return Math.round(e*1e5)/1e5}const M3={textTransform:"uppercase"},F3='"Roboto", "Helvetica", "Arial", sans-serif';function Tq(e,t){const{fontFamily:r=F3,fontSize:n=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:i=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:l,pxToRem:h,...v}=typeof t=="function"?t(e):t,y=n/14,b=h||(S=>`${S/d*y}rem`),_=(S,A,R,C,O)=>({fontFamily:r,fontWeight:S,fontSize:b(A),lineHeight:R,...r===F3?{letterSpacing:`${yoe(C/A)}em`}:{},...O,...l}),w={h1:_(a,96,1.167,-1.5),h2:_(a,60,1.2,-.5),h3:_(o,48,1.167,0),h4:_(o,34,1.235,.25),h5:_(o,24,1.334,0),h6:_(i,20,1.6,.15),subtitle1:_(o,16,1.75,.15),subtitle2:_(i,14,1.57,.1),body1:_(o,16,1.5,.15),body2:_(o,14,1.43,.15),button:_(i,14,1.75,.4,M3),caption:_(o,12,1.66,.4),overline:_(o,12,2.66,1,M3),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ln({htmlFontSize:d,pxToRem:b,fontFamily:r,fontSize:n,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:i,fontWeightBold:u,...w},v,{clone:!1})}const boe=.2,_oe=.14,woe=.12;function Zr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${boe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${_oe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${woe})`].join(",")}const xoe=["none",Zr(0,2,1,-1,0,1,1,0,0,1,3,0),Zr(0,3,1,-2,0,2,2,0,0,1,5,0),Zr(0,3,3,-2,0,3,4,0,0,1,8,0),Zr(0,2,4,-1,0,4,5,0,0,1,10,0),Zr(0,3,5,-1,0,5,8,0,0,1,14,0),Zr(0,3,5,-1,0,6,10,0,0,1,18,0),Zr(0,4,5,-2,0,7,10,1,0,2,16,1),Zr(0,5,5,-3,0,8,10,1,0,3,14,2),Zr(0,5,6,-3,0,9,12,1,0,3,16,2),Zr(0,6,6,-3,0,10,14,1,0,4,18,3),Zr(0,6,7,-4,0,11,15,1,0,4,20,3),Zr(0,7,8,-4,0,12,17,2,0,5,22,4),Zr(0,7,8,-4,0,13,19,2,0,5,24,4),Zr(0,7,9,-4,0,14,21,2,0,5,26,4),Zr(0,8,9,-5,0,15,22,2,0,6,28,5),Zr(0,8,10,-5,0,16,24,2,0,6,30,5),Zr(0,8,11,-5,0,17,26,2,0,6,32,5),Zr(0,9,11,-5,0,18,28,2,0,7,34,6),Zr(0,9,12,-6,0,19,29,2,0,7,36,6),Zr(0,10,13,-6,0,20,31,3,0,8,38,7),Zr(0,10,13,-6,0,21,33,3,0,8,40,7),Zr(0,10,14,-6,0,22,35,3,0,8,42,7),Zr(0,11,14,-7,0,23,36,3,0,9,44,8),Zr(0,11,15,-7,0,24,38,3,0,9,46,8)],Soe={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)"},Coe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function L3(e){return`${Math.round(e)}ms`}function Eoe(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ooe(e){const t={...Soe,...e.easing},r={...Coe,...e.duration};return{getAutoHeightDuration:Eoe,create:(a=["all"],o={})=>{const{duration:i=r.standard,easing:u=t.easeInOut,delay:d=0,...l}=o;return(Array.isArray(a)?a:[a]).map(h=>`${h} ${typeof i=="string"?i:L3(i)} ${u} ${typeof d=="string"?d:L3(d)}`).join(",")},...e,easing:t,duration:r}}const Poe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Roe(e){return bl(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Aq(e={}){const t={...e};function r(n){const a=Object.entries(n);for(let o=0;o<a.length;o++){const[i,u]=a[o];!Roe(u)||i.startsWith("unstable_")?delete n[i]:bl(u)&&(n[i]={...u},r(n[i]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
const theme = ${JSON.stringify(t,null,2)};
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});
export default theme;`}function Ak(e={},...t){const{breakpoints:r,mixins:n={},spacing:a,palette:o={},transitions:i={},typography:u={},shape:d,...l}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(ju(20));const h=DI(o),v=Jb(e);let y=Ln(v,{mixins:goe(v.breakpoints,n),palette:h,shadows:xoe.slice(),typography:Tq(h,u),transitions:Ooe(i),zIndex:{...Poe}});return y=Ln(y,l),y=t.reduce((b,_)=>Ln(b,_),y),y.unstable_sxConfig={...Yb,...l==null?void 0:l.unstable_sxConfig},y.unstable_sx=function(_){return ld({sx:_,theme:this})},y.toRuntimeSource=Aq,y}function Ik(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const koe=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Ik(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Iq(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function jq(e){return e==="dark"?koe:[]}function Toe(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...a}=e,o=DI(t);return{palette:o,opacity:{...Iq(o.mode),...r},overlays:n||jq(o.mode),...a}}function Aoe(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Ioe=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],joe=e=>(t,r)=>{const n=e.rootSelector||":root",a=e.colorSchemeSelector;let o=a;if(a==="class"&&(o=".%s"),a==="data"&&(o="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(o=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return Ioe(e.cssVarPrefix).forEach(u=>{i[u]=r[u],delete r[u]}),o==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:i}}:o?{[o.replace("%s",t)]:i,[`${n}, ${o.replace("%s",t)}`]:r}:{[n]:{...r,...i}}}if(o&&o!=="media")return`${n}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(o)return o.replace("%s",String(t))}return n};function Moe(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function ze(e,t,r){!e[t]&&r&&(e[t]=r)}function hy(e){return typeof e!="string"||!e.startsWith("hsl")?e:wq(e)}function hu(e,t){`${t}Channel`in e||(e[`${t}Channel`]=py(hy(e[t])))}function Foe(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const il=e=>{try{return e()}catch{}},Loe=(e="mui")=>Hae(e);function x2(e,t,r,n){if(!t)return;t=t===!0?{}:t;const a=n==="dark"?"dark":"light";if(!r){e[n]=Toe({...t,palette:{mode:a,...t==null?void 0:t.palette}});return}const{palette:o,...i}=Ak({...r,palette:{mode:a,...t==null?void 0:t.palette}});return e[n]={...t,palette:o,opacity:{...Iq(a),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||jq(a)},i}function $oe(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:i=Aoe,colorSchemeSelector:u=r.light&&r.dark?"media":void 0,rootSelector:d=":root",...l}=e,h=Object.keys(r)[0],v=n||(r.light&&h!=="light"?"light":h),y=Loe(o),{[v]:b,light:_,dark:w,...S}=r,A={...S};let R=b;if((v==="dark"&&!("dark"in r)||v==="light"&&!("light"in r))&&(R=!0),!R)throw new Error(ju(21,v));const C=x2(A,R,l,v);_&&!A.light&&x2(A,_,void 0,"light"),w&&!A.dark&&x2(A,w,void 0,"dark");let O={defaultColorScheme:v,...C,cssVarPrefix:o,colorSchemeSelector:u,rootSelector:d,getCssVar:y,colorSchemes:A,font:{...voe(C.typography),...C.font},spacing:Foe(l.spacing)};Object.keys(O.colorSchemes).forEach(M=>{const k=O.colorSchemes[M].palette,$=B=>{const z=B.split("-"),U=z[1],W=z[2];return y(B,k[U][W])};if(k.mode==="light"&&(ze(k.common,"background","#fff"),ze(k.common,"onBackground","#000")),k.mode==="dark"&&(ze(k.common,"background","#000"),ze(k.common,"onBackground","#fff")),Moe(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){ze(k.Alert,"errorColor",zr(k.error.light,.6)),ze(k.Alert,"infoColor",zr(k.info.light,.6)),ze(k.Alert,"successColor",zr(k.success.light,.6)),ze(k.Alert,"warningColor",zr(k.warning.light,.6)),ze(k.Alert,"errorFilledBg",$("palette-error-main")),ze(k.Alert,"infoFilledBg",$("palette-info-main")),ze(k.Alert,"successFilledBg",$("palette-success-main")),ze(k.Alert,"warningFilledBg",$("palette-warning-main")),ze(k.Alert,"errorFilledColor",il(()=>k.getContrastText(k.error.main))),ze(k.Alert,"infoFilledColor",il(()=>k.getContrastText(k.info.main))),ze(k.Alert,"successFilledColor",il(()=>k.getContrastText(k.success.main))),ze(k.Alert,"warningFilledColor",il(()=>k.getContrastText(k.warning.main))),ze(k.Alert,"errorStandardBg",qr(k.error.light,.9)),ze(k.Alert,"infoStandardBg",qr(k.info.light,.9)),ze(k.Alert,"successStandardBg",qr(k.success.light,.9)),ze(k.Alert,"warningStandardBg",qr(k.warning.light,.9)),ze(k.Alert,"errorIconColor",$("palette-error-main")),ze(k.Alert,"infoIconColor",$("palette-info-main")),ze(k.Alert,"successIconColor",$("palette-success-main")),ze(k.Alert,"warningIconColor",$("palette-warning-main")),ze(k.AppBar,"defaultBg",$("palette-grey-100")),ze(k.Avatar,"defaultBg",$("palette-grey-400")),ze(k.Button,"inheritContainedBg",$("palette-grey-300")),ze(k.Button,"inheritContainedHoverBg",$("palette-grey-A100")),ze(k.Chip,"defaultBorder",$("palette-grey-400")),ze(k.Chip,"defaultAvatarColor",$("palette-grey-700")),ze(k.Chip,"defaultIconColor",$("palette-grey-700")),ze(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ze(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ze(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ze(k.LinearProgress,"primaryBg",qr(k.primary.main,.62)),ze(k.LinearProgress,"secondaryBg",qr(k.secondary.main,.62)),ze(k.LinearProgress,"errorBg",qr(k.error.main,.62)),ze(k.LinearProgress,"infoBg",qr(k.info.main,.62)),ze(k.LinearProgress,"successBg",qr(k.success.main,.62)),ze(k.LinearProgress,"warningBg",qr(k.warning.main,.62)),ze(k.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),ze(k.Slider,"primaryTrack",qr(k.primary.main,.62)),ze(k.Slider,"secondaryTrack",qr(k.secondary.main,.62)),ze(k.Slider,"errorTrack",qr(k.error.main,.62)),ze(k.Slider,"infoTrack",qr(k.info.main,.62)),ze(k.Slider,"successTrack",qr(k.success.main,.62)),ze(k.Slider,"warningTrack",qr(k.warning.main,.62));const B=V_(k.background.default,.8);ze(k.SnackbarContent,"bg",B),ze(k.SnackbarContent,"color",il(()=>k.getContrastText(B))),ze(k.SpeedDialAction,"fabHoverBg",V_(k.background.paper,.15)),ze(k.StepConnector,"border",$("palette-grey-400")),ze(k.StepContent,"border",$("palette-grey-400")),ze(k.Switch,"defaultColor",$("palette-common-white")),ze(k.Switch,"defaultDisabledColor",$("palette-grey-100")),ze(k.Switch,"primaryDisabledColor",qr(k.primary.main,.62)),ze(k.Switch,"secondaryDisabledColor",qr(k.secondary.main,.62)),ze(k.Switch,"errorDisabledColor",qr(k.error.main,.62)),ze(k.Switch,"infoDisabledColor",qr(k.info.main,.62)),ze(k.Switch,"successDisabledColor",qr(k.success.main,.62)),ze(k.Switch,"warningDisabledColor",qr(k.warning.main,.62)),ze(k.TableCell,"border",qr(U_(k.divider,1),.88)),ze(k.Tooltip,"bg",U_(k.grey[700],.92))}if(k.mode==="dark"){ze(k.Alert,"errorColor",qr(k.error.light,.6)),ze(k.Alert,"infoColor",qr(k.info.light,.6)),ze(k.Alert,"successColor",qr(k.success.light,.6)),ze(k.Alert,"warningColor",qr(k.warning.light,.6)),ze(k.Alert,"errorFilledBg",$("palette-error-dark")),ze(k.Alert,"infoFilledBg",$("palette-info-dark")),ze(k.Alert,"successFilledBg",$("palette-success-dark")),ze(k.Alert,"warningFilledBg",$("palette-warning-dark")),ze(k.Alert,"errorFilledColor",il(()=>k.getContrastText(k.error.dark))),ze(k.Alert,"infoFilledColor",il(()=>k.getContrastText(k.info.dark))),ze(k.Alert,"successFilledColor",il(()=>k.getContrastText(k.success.dark))),ze(k.Alert,"warningFilledColor",il(()=>k.getContrastText(k.warning.dark))),ze(k.Alert,"errorStandardBg",zr(k.error.light,.9)),ze(k.Alert,"infoStandardBg",zr(k.info.light,.9)),ze(k.Alert,"successStandardBg",zr(k.success.light,.9)),ze(k.Alert,"warningStandardBg",zr(k.warning.light,.9)),ze(k.Alert,"errorIconColor",$("palette-error-main")),ze(k.Alert,"infoIconColor",$("palette-info-main")),ze(k.Alert,"successIconColor",$("palette-success-main")),ze(k.Alert,"warningIconColor",$("palette-warning-main")),ze(k.AppBar,"defaultBg",$("palette-grey-900")),ze(k.AppBar,"darkBg",$("palette-background-paper")),ze(k.AppBar,"darkColor",$("palette-text-primary")),ze(k.Avatar,"defaultBg",$("palette-grey-600")),ze(k.Button,"inheritContainedBg",$("palette-grey-800")),ze(k.Button,"inheritContainedHoverBg",$("palette-grey-700")),ze(k.Chip,"defaultBorder",$("palette-grey-700")),ze(k.Chip,"defaultAvatarColor",$("palette-grey-300")),ze(k.Chip,"defaultIconColor",$("palette-grey-300")),ze(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ze(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ze(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ze(k.LinearProgress,"primaryBg",zr(k.primary.main,.5)),ze(k.LinearProgress,"secondaryBg",zr(k.secondary.main,.5)),ze(k.LinearProgress,"errorBg",zr(k.error.main,.5)),ze(k.LinearProgress,"infoBg",zr(k.info.main,.5)),ze(k.LinearProgress,"successBg",zr(k.success.main,.5)),ze(k.LinearProgress,"warningBg",zr(k.warning.main,.5)),ze(k.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),ze(k.Slider,"primaryTrack",zr(k.primary.main,.5)),ze(k.Slider,"secondaryTrack",zr(k.secondary.main,.5)),ze(k.Slider,"errorTrack",zr(k.error.main,.5)),ze(k.Slider,"infoTrack",zr(k.info.main,.5)),ze(k.Slider,"successTrack",zr(k.success.main,.5)),ze(k.Slider,"warningTrack",zr(k.warning.main,.5));const B=V_(k.background.default,.98);ze(k.SnackbarContent,"bg",B),ze(k.SnackbarContent,"color",il(()=>k.getContrastText(B))),ze(k.SpeedDialAction,"fabHoverBg",V_(k.background.paper,.15)),ze(k.StepConnector,"border",$("palette-grey-600")),ze(k.StepContent,"border",$("palette-grey-600")),ze(k.Switch,"defaultColor",$("palette-grey-300")),ze(k.Switch,"defaultDisabledColor",$("palette-grey-600")),ze(k.Switch,"primaryDisabledColor",zr(k.primary.main,.55)),ze(k.Switch,"secondaryDisabledColor",zr(k.secondary.main,.55)),ze(k.Switch,"errorDisabledColor",zr(k.error.main,.55)),ze(k.Switch,"infoDisabledColor",zr(k.info.main,.55)),ze(k.Switch,"successDisabledColor",zr(k.success.main,.55)),ze(k.Switch,"warningDisabledColor",zr(k.warning.main,.55)),ze(k.TableCell,"border",zr(U_(k.divider,1),.68)),ze(k.Tooltip,"bg",U_(k.grey[700],.92))}hu(k.background,"default"),hu(k.background,"paper"),hu(k.common,"background"),hu(k.common,"onBackground"),hu(k,"divider"),Object.keys(k).forEach(B=>{const z=k[B];B!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&ze(k[B],"mainChannel",py(hy(z.main))),z.light&&ze(k[B],"lightChannel",py(hy(z.light))),z.dark&&ze(k[B],"darkChannel",py(hy(z.dark))),z.contrastText&&ze(k[B],"contrastTextChannel",py(hy(z.contrastText))),B==="text"&&(hu(k[B],"primary"),hu(k[B],"secondary")),B==="action"&&(z.active&&hu(k[B],"active"),z.selected&&hu(k[B],"selected")))})}),O=t.reduce((M,k)=>Ln(M,k),O);const T={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:i,getSelector:joe(O)},{vars:E,generateThemeVars:L,generateStyleSheets:j}=Qae(O,T);return O.vars=E,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([M,k])=>{O[M]=k}),O.generateThemeVars=L,O.generateStyleSheets=j,O.generateSpacing=function(){return dq(l.spacing,Nx(this))},O.getColorSchemeSelector=Xae(u),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=i,O.unstable_sxConfig={...Yb,...l==null?void 0:l.unstable_sxConfig},O.unstable_sx=function(k){return ld({sx:k,theme:this})},O.toRuntimeSource=Aq,O}function $3(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:DI({...r===!0?{}:r.palette,mode:t})})}function cb(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:a=r?void 0:{light:!0},defaultColorScheme:o=r==null?void 0:r.mode,...i}=e,u=o||"light",d=a==null?void 0:a[u],l={...a,...r?{[u]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Ak(e,...t);let h=r;"palette"in e||l[u]&&(l[u]!==!0?h=l[u].palette:u==="dark"&&(h={mode:"dark"}));const v=Ak({...e,palette:h},...t);return v.defaultColorScheme=u,v.colorSchemes=l,v.palette.mode==="light"&&(v.colorSchemes.light={...l.light!==!0&&l.light,palette:v.palette},$3(v,"dark",l.dark)),v.palette.mode==="dark"&&(v.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:v.palette},$3(v,"light",l.light)),v}return!r&&!("light"in l)&&u==="light"&&(l.light=!0),$oe({...i,colorSchemes:l,defaultColorScheme:u,...typeof n!="boolean"&&n},...t)}const Kx=cb();function fo(){const e=Wx(Kx);return e[qi]||e}function Mt({props:e,name:t}){return Zb({props:e,name:t,defaultTheme:Kx,themeId:qi})}function Mq(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Oa=e=>Mq(e)&&e!=="classes",ve=vq({themeId:qi,defaultTheme:Kx,rootShouldForwardProp:Oa});function Doe({theme:e,...t}){const r=qi in e?e[qi]:void 0;return I.jsx(Oq,{...t,themeId:r?qi:void 0,theme:r||e})}const W_={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:Noe}=Wae({themeId:qi,theme:()=>cb({cssVariables:!0}),colorSchemeStorageKey:W_.colorSchemeStorageKey,modeStorageKey:W_.modeStorageKey,defaultColorScheme:{light:W_.defaultLightColorScheme,dark:W_.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Tq(e.palette,e.typography)};return t.unstable_sx=function(n){return ld({sx:n,theme:this})},t}}),Boe=Noe;function zoe({theme:e,...t}){const r=p.useMemo(()=>{if(typeof e=="function")return e;const n=qi in e?e[qi]:e;return"colorSchemes"in n?null:"vars"in n?e:{...e,vars:null}},[e]);return r?I.jsx(Doe,{theme:r,...t}):I.jsx(Boe,{theme:e,...t})}function D3(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function qoe(e){return I.jsx(cae,{...e,defaultTheme:Kx,themeId:qi})}function NI(e){return function(r){return I.jsx(qoe,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function Uoe(){return jI}const gt=$ae;function wt(e){return Lae(e)}function Voe(e){return _t("MuiSvgIcon",e)}St("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Woe=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${Ue(t)}`,`fontSize${Ue(r)}`]};return yt(a,Voe,n)},Hoe=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ue(r.color)}`],t[`fontSize${Ue(r.fontSize)}`]]}})(gt(({theme:e})=>{var t,r,n,a,o,i,u,d,l,h,v,y,b,_;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:i.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((h=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:h.call(l,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,w])=>w&&w.main).map(([w])=>{var S,A;return{props:{color:w},style:{color:(A=(S=(e.vars??e).palette)==null?void 0:S[w])==null?void 0:A.main}}}),{props:{color:"action"},style:{color:(y=(v=(e.vars??e).palette)==null?void 0:v.action)==null?void 0:y.active}},{props:{color:"disabled"},style:{color:(_=(b=(e.vars??e).palette)==null?void 0:b.action)==null?void 0:_.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),jk=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:i="inherit",component:u="svg",fontSize:d="medium",htmlColor:l,inheritViewBox:h=!1,titleAccess:v,viewBox:y="0 0 24 24",...b}=n,_=p.isValidElement(a)&&a.type==="svg",w={...n,color:i,component:u,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:y,hasSvgAsChild:_},S={};h||(S.viewBox=y);const A=Woe(w);return I.jsxs(Hoe,{as:u,className:Ae(A.root,o),focusable:"false",color:l,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:r,...S,...b,..._&&a.props,ownerState:w,children:[_?a.props.children:a,v?I.jsx("title",{children:v}):null]})});jk.muiName="SvgIcon";function ot(e,t){function r(n,a){return I.jsx(jk,{"data-testid":void 0,ref:a,...n,children:e})}return r.muiName=jk.muiName,p.memo(p.forwardRef(r))}function e0(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Sa(e){return e&&e.ownerDocument||document}function di(e){return Sa(e).defaultView||window}function N3(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let B3=0;function Koe(e){const[t,r]=p.useState(e),n=e||t;return p.useEffect(()=>{t==null&&(B3+=1,r(`mui-${B3}`))},[t]),n}const Goe={...P1},z3=Goe.useId;function cd(e){if(z3!==void 0){const t=z3();return e??t}return Koe(e)}function db(e){const{controlled:t,default:r,name:n,state:a="value"}=e,{current:o}=p.useRef(t!==void 0),[i,u]=p.useState(r),d=o?t:i,l=p.useCallback(h=>{o||u(h)},[]);return[d,l]}function uo(e){const t=p.useRef(e);return ci(()=>{t.current=e}),p.useRef((...r)=>(0,t.current)(...r)).current}function En(...e){const t=p.useRef(void 0),r=p.useCallback(n=>{const a=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const i=o,u=i(n);return typeof u=="function"?u:()=>{i(null)}}return o.current=n,()=>{o.current=null}});return()=>{a.forEach(o=>o==null?void 0:o())}},e);return p.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function Qoe(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function BI(e,t){if(!e)return t;function r(i,u){const d={};return Object.keys(u).forEach(l=>{Qoe(l,u[l])&&typeof i[l]=="function"&&(d[l]=(...h)=>{i[l](...h),u[l](...h)})}),d}if(typeof e=="function"||typeof t=="function")return i=>{const u=typeof t=="function"?t(i):t,d=typeof e=="function"?e({...i,...u}):e,l=Ae(i==null?void 0:i.className,u==null?void 0:u.className,d==null?void 0:d.className),h=r(d,u);return{...u,...d,...h,...!!l&&{className:l},...(u==null?void 0:u.style)&&(d==null?void 0:d.style)&&{style:{...u.style,...d.style}},...(u==null?void 0:u.sx)&&(d==null?void 0:d.sx)&&{sx:[...Array.isArray(u.sx)?u.sx:[u.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const n=t,a=r(e,n),o=Ae(n==null?void 0:n.className,e==null?void 0:e.className);return{...t,...e,...a,...!!o&&{className:o},...(n==null?void 0:n.style)&&(e==null?void 0:e.style)&&{style:{...n.style,...e.style}},...(n==null?void 0:n.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function Fq(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Mk(e,t){return Mk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Mk(e,t)}function Lq(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mk(e,t)}const q3={disabled:!1},Y1=Qe.createContext(null);var Xoe=function(t){return t.scrollTop},my="unmounted",Pf="exited",Rf="entering",Qh="entered",Fk="exiting",Ts=function(e){Lq(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,u=i&&!i.isMounting?n.enter:n.appear,d;return o.appearStatus=null,n.in?u?(d=Pf,o.appearStatus=Rf):d=Qh:n.unmountOnExit||n.mountOnEnter?d=my:d=Pf,o.state={status:d},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===my?{status:Pf}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==Rf&&i!==Qh&&(o=Rf):(i===Rf||i===Qh)&&(o=Fk)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,u;return o=i=u=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,u=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:u}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===Rf){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:$_.findDOMNode(this);i&&Xoe(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pf&&this.setState({status:my})},r.performEnter=function(a){var o=this,i=this.props.enter,u=this.context?this.context.isMounting:a,d=this.props.nodeRef?[u]:[$_.findDOMNode(this),u],l=d[0],h=d[1],v=this.getTimeouts(),y=u?v.appear:v.enter;if(!a&&!i||q3.disabled){this.safeSetState({status:Qh},function(){o.props.onEntered(l)});return}this.props.onEnter(l,h),this.safeSetState({status:Rf},function(){o.props.onEntering(l,h),o.onTransitionEnd(y,function(){o.safeSetState({status:Qh},function(){o.props.onEntered(l,h)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),u=this.props.nodeRef?void 0:$_.findDOMNode(this);if(!o||q3.disabled){this.safeSetState({status:Pf},function(){a.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Fk},function(){a.props.onExiting(u),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:Pf},function(){a.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(u){i&&(i=!1,o.nextCallback=null,a(u))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:$_.findDOMNode(this),u=a==null&&!this.props.addEndListener;if(!i||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=d[0],h=d[1];this.props.addEndListener(l,h)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===my)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var u=Fq(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Qe.createElement(Y1.Provider,{value:null},typeof i=="function"?i(a,u):Qe.cloneElement(Qe.Children.only(i),u))},t}(Qe.Component);Ts.contextType=Y1;Ts.propTypes={};function Wh(){}Ts.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wh,onEntering:Wh,onEntered:Wh,onExit:Wh,onExiting:Wh,onExited:Wh};Ts.UNMOUNTED=my;Ts.EXITED=Pf;Ts.ENTERING=Rf;Ts.ENTERED=Qh;Ts.EXITING=Fk;function Yoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zI(e,t){var r=function(o){return t&&p.isValidElement(o)?t(o):o},n=Object.create(null);return e&&p.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function Joe(e,t){e=e||{},t=t||{};function r(h){return h in t?t[h]:e[h]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var i,u={};for(var d in t){if(n[d])for(i=0;i<n[d].length;i++){var l=n[d][i];u[n[d][i]]=r(l)}u[d]=r(d)}for(i=0;i<a.length;i++)u[a[i]]=r(a[i]);return u}function Df(e,t,r){return r[t]!=null?r[t]:e.props[t]}function Zoe(e,t){return zI(e.children,function(r){return p.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Df(r,"appear",e),enter:Df(r,"enter",e),exit:Df(r,"exit",e)})})}function eie(e,t,r){var n=zI(e.children),a=Joe(t,n);return Object.keys(a).forEach(function(o){var i=a[o];if(p.isValidElement(i)){var u=o in t,d=o in n,l=t[o],h=p.isValidElement(l)&&!l.props.in;d&&(!u||h)?a[o]=p.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:Df(i,"exit",e),enter:Df(i,"enter",e)}):!d&&u&&!h?a[o]=p.cloneElement(i,{in:!1}):d&&u&&p.isValidElement(l)&&(a[o]=p.cloneElement(i,{onExited:r.bind(null,i),in:l.props.in,exit:Df(i,"exit",e),enter:Df(i,"enter",e)}))}}),a}var tie=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},rie={component:"div",childFactory:function(t){return t}},qI=function(e){Lq(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=o.handleExited.bind(Yoe(o));return o.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},o}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,o){var i=o.children,u=o.handleExited,d=o.firstRender;return{children:d?Zoe(a,u):eie(a,i,u),firstRender:!1}},r.handleExited=function(a,o){var i=zI(this.props.children);a.key in i||(a.props.onExited&&a.props.onExited(o),this.mounted&&this.setState(function(u){var d=G1({},u.children);return delete d[a.key],{children:d}}))},r.render=function(){var a=this.props,o=a.component,i=a.childFactory,u=Fq(a,["component","childFactory"]),d=this.state.contextValue,l=tie(this.state.children).map(i);return delete u.appear,delete u.enter,delete u.exit,o===null?Qe.createElement(Y1.Provider,{value:d},l):Qe.createElement(Y1.Provider,{value:d},Qe.createElement(o,u,l))},t}(Qe.Component);qI.propTypes={};qI.defaultProps=rie;const U3={};function $q(e,t){const r=p.useRef(U3);return r.current===U3&&(r.current=e(t)),r}const nie=[];function aie(e){p.useEffect(e,nie)}class Gx{constructor(){zg(this,"currentId",null);zg(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});zg(this,"disposeEffect",()=>this.clear)}static create(){return new Gx}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Nf(){const e=$q(Gx.create).current;return aie(e.disposeEffect),e}const UI=e=>e.scrollTop;function Hm(e,t){const{timeout:r,easing:n,style:a={}}=e;return{duration:a.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:a.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:a.transitionDelay}}function oie(e){return _t("MuiPaper",e)}St("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const iie=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return yt(o,oie,a)},sie=ve("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(gt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),wd=p.forwardRef(function(t,r){var b;const n=wt({props:t,name:"MuiPaper"}),a=fo(),{className:o,component:i="div",elevation:u=1,square:d=!1,variant:l="elevation",...h}=n,v={...n,component:i,elevation:u,square:d,variant:l},y=iie(v);return I.jsx(sie,{as:i,ownerState:v,className:Ae(y.root,o),ref:r,...h,style:{...l==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[u],...a.vars&&{"--Paper-overlay":(b=a.vars.overlays)==null?void 0:b[u]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${dr("#fff",Ik(u))}, ${dr("#fff",Ik(u))})`}},...h.style}})});function lie(e){return typeof e=="string"}function Dq(e,t,r){return e===void 0||lie(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Nq(e,t,r){return typeof e=="function"?e(t,r):e}function J1(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function V3(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Bq(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const b=Ae(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),_={...r==null?void 0:r.style,...a==null?void 0:a.style,...n==null?void 0:n.style},w={...r,...a,...n};return b.length>0&&(w.className=b),Object.keys(_).length>0&&(w.style=_),{props:w,internalRef:void 0}}const i=J1({...a,...n}),u=V3(n),d=V3(a),l=t(i),h=Ae(l==null?void 0:l.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),v={...l==null?void 0:l.style,...r==null?void 0:r.style,...a==null?void 0:a.style,...n==null?void 0:n.style},y={...l,...r,...d,...u};return h.length>0&&(y.className=h),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:l.ref}}function mt(e,t){const{className:r,elementType:n,ownerState:a,externalForwardedProps:o,internalForwardedProps:i,shouldForwardComponentProp:u=!1,...d}=t,{component:l,slots:h={[e]:void 0},slotProps:v={[e]:void 0},...y}=o,b=h[e]||n,_=Nq(v[e],a),{props:{component:w,...S},internalRef:A}=Bq({className:r,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:_}),R=En(A,_==null?void 0:_.ref,t.ref),C=e==="root"?w||l:w,O=Dq(b,{...e==="root"&&!l&&!h[e]&&i,...e!=="root"&&!h[e]&&i,...S,...C&&!u&&{as:C},...C&&u&&{component:C},ref:R},a);return[b,O]}function Km(e){try{return e.matches(":focus-visible")}catch{}return!1}class Z1{constructor(){zg(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Z1}static use(){const t=$q(Z1.create).current,[r,n]=p.useState(!1);return t.shouldMount=r,t.setShouldMount=n,p.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=cie(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function uie(){return Z1.use()}function cie(){let e,t;const r=new Promise((n,a)=>{e=n,t=a});return r.resolve=e,r.reject=t,r}function die(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:i,in:u,onExited:d,timeout:l}=e,[h,v]=p.useState(!1),y=Ae(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),b={width:i,height:i,top:-(i/2)+o,left:-(i/2)+a},_=Ae(r.child,h&&r.childLeaving,n&&r.childPulsate);return!u&&!h&&v(!0),p.useEffect(()=>{if(!u&&d!=null){const w=setTimeout(d,l);return()=>{clearTimeout(w)}}},[d,u,l]),I.jsx("span",{className:y,style:b,children:I.jsx("span",{className:_})})}const $i=St("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Lk=550,fie=80,pie=bd`
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`,hie=bd`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`,mie=bd`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`,vie=ve("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),gie=ve(die,{name:"MuiTouchRipple",slot:"Ripple"})`
opacity: 0;
position: absolute;
&.${$i.rippleVisible} {
opacity: 0.3;
transform: scale(1);
animation-name: ${pie};
animation-duration: ${Lk}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
}
&.${$i.ripplePulsate} {
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
}
& .${$i.child} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${$i.childLeaving} {
opacity: 0;
animation-name: ${hie};
animation-duration: ${Lk}ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
}
& .${$i.childPulsate} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${mie};
animation-duration: 2500ms;
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`,yie=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:i,...u}=n,[d,l]=p.useState([]),h=p.useRef(0),v=p.useRef(null);p.useEffect(()=>{v.current&&(v.current(),v.current=null)},[d]);const y=p.useRef(!1),b=Nf(),_=p.useRef(null),w=p.useRef(null),S=p.useCallback(O=>{const{pulsate:T,rippleX:E,rippleY:L,rippleSize:j,cb:M}=O;l(k=>[...k,I.jsx(gie,{classes:{ripple:Ae(o.ripple,$i.ripple),rippleVisible:Ae(o.rippleVisible,$i.rippleVisible),ripplePulsate:Ae(o.ripplePulsate,$i.ripplePulsate),child:Ae(o.child,$i.child),childLeaving:Ae(o.childLeaving,$i.childLeaving),childPulsate:Ae(o.childPulsate,$i.childPulsate)},timeout:Lk,pulsate:T,rippleX:E,rippleY:L,rippleSize:j},h.current)]),h.current+=1,v.current=M},[o]),A=p.useCallback((O={},T={},E=()=>{})=>{const{pulsate:L=!1,center:j=a||T.pulsate,fakeElement:M=!1}=T;if((O==null?void 0:O.type)==="mousedown"&&y.current){y.current=!1;return}(O==null?void 0:O.type)==="touchstart"&&(y.current=!0);const k=M?null:w.current,$=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,z,U;if(j||O===void 0||O.clientX===0&&O.clientY===0||!O.clientX&&!O.touches)B=Math.round($.width/2),z=Math.round($.height/2);else{const{clientX:W,clientY:Q}=O.touches&&O.touches.length>0?O.touches[0]:O;B=Math.round(W-$.left),z=Math.round(Q-$.top)}if(j)U=Math.sqrt((2*$.width**2+$.height**2)/3),U%2===0&&(U+=1);else{const W=Math.max(Math.abs((k?k.clientWidth:0)-B),B)*2+2,Q=Math.max(Math.abs((k?k.clientHeight:0)-z),z)*2+2;U=Math.sqrt(W**2+Q**2)}O!=null&&O.touches?_.current===null&&(_.current=()=>{S({pulsate:L,rippleX:B,rippleY:z,rippleSize:U,cb:E})},b.start(fie,()=>{_.current&&(_.current(),_.current=null)})):S({pulsate:L,rippleX:B,rippleY:z,rippleSize:U,cb:E})},[a,S,b]),R=p.useCallback(()=>{A({},{pulsate:!0})},[A]),C=p.useCallback((O,T)=>{if(b.clear(),(O==null?void 0:O.type)==="touchend"&&_.current){_.current(),_.current=null,b.start(0,()=>{C(O,T)});return}_.current=null,l(E=>E.length>0?E.slice(1):E),v.current=T},[b]);return p.useImperativeHandle(r,()=>({pulsate:R,start:A,stop:C}),[R,A,C]),I.jsx(vie,{className:Ae($i.root,o.root,i),ref:w,...u,children:I.jsx(qI,{component:null,exit:!0,children:d})})});function bie(e){return _t("MuiButtonBase",e)}const _ie=St("MuiButtonBase",["root","disabled","focusVisible"]),wie=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,i=yt({root:["root",t&&"disabled",r&&"focusVisible"]},bie,a);return r&&n&&(i.root+=` ${n}`),i},xie=ve("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${_ie.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Du=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:i,className:u,component:d="button",disabled:l=!1,disableRipple:h=!1,disableTouchRipple:v=!1,focusRipple:y=!1,focusVisibleClassName:b,LinkComponent:_="a",onBlur:w,onClick:S,onContextMenu:A,onDragLeave:R,onFocus:C,onFocusVisible:O,onKeyDown:T,onKeyUp:E,onMouseDown:L,onMouseLeave:j,onMouseUp:M,onTouchEnd:k,onTouchMove:$,onTouchStart:B,tabIndex:z=0,TouchRippleProps:U,touchRippleRef:W,type:Q,...V}=n,K=p.useRef(null),X=uie(),te=En(X.ref,W),[G,J]=p.useState(!1);l&&G&&J(!1),p.useImperativeHandle(a,()=>({focusVisible:()=>{J(!0),K.current.focus()}}),[]);const de=X.shouldMount&&!h&&!l;p.useEffect(()=>{G&&y&&!h&&X.pulsate()},[h,y,G,X]);const ce=mu(X,"start",L,v),ue=mu(X,"stop",A,v),be=mu(X,"stop",R,v),Pe=mu(X,"stop",M,v),Ee=mu(X,"stop",ne=>{G&&ne.preventDefault(),j&&j(ne)},v),ge=mu(X,"start",B,v),xe=mu(X,"stop",k,v),Oe=mu(X,"stop",$,v),Te=mu(X,"stop",ne=>{Km(ne.target)||J(!1),w&&w(ne)},!1),Me=uo(ne=>{K.current||(K.current=ne.currentTarget),Km(ne.target)&&(J(!0),O&&O(ne)),C&&C(ne)}),Fe=()=>{const ne=K.current;return d&&d!=="button"&&!(ne.tagName==="A"&&ne.href)},$e=uo(ne=>{y&&!ne.repeat&&G&&ne.key===" "&&X.stop(ne,()=>{X.start(ne)}),ne.target===ne.currentTarget&&Fe()&&ne.key===" "&&ne.preventDefault(),T&&T(ne),ne.target===ne.currentTarget&&Fe()&&ne.key==="Enter"&&!l&&(ne.preventDefault(),S&&S(ne))}),et=uo(ne=>{y&&ne.key===" "&&G&&!ne.defaultPrevented&&X.stop(ne,()=>{X.pulsate(ne)}),E&&E(ne),S&&ne.target===ne.currentTarget&&Fe()&&ne.key===" "&&!ne.defaultPrevented&&S(ne)});let qe=d;qe==="button"&&(V.href||V.to)&&(qe=_);const re={};qe==="button"?(re.type=Q===void 0?"button":Q,re.disabled=l):(!V.href&&!V.to&&(re.role="button"),l&&(re["aria-disabled"]=l));const oe=En(r,K),pe={...n,centerRipple:o,component:d,disabled:l,disableRipple:h,disableTouchRipple:v,focusRipple:y,tabIndex:z,focusVisible:G},Se=wie(pe);return I.jsxs(xie,{as:qe,className:Ae(Se.root,u),ownerState:pe,onBlur:Te,onClick:S,onContextMenu:ue,onFocus:Me,onKeyDown:$e,onKeyUp:et,onMouseDown:ce,onMouseLeave:Ee,onMouseUp:Pe,onDragLeave:be,onTouchEnd:xe,onTouchMove:Oe,onTouchStart:ge,ref:oe,tabIndex:l?-1:z,type:Q,...re,...V,children:[i,de?I.jsx(yie,{ref:te,center:o,...U}):null]})});function mu(e,t,r,n=!1){return uo(a=>(r&&r(a),n||e[t](a),!0))}function Sie(e){return typeof e.main=="string"}function Cie(e,t=[]){if(!Sie(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function yn(e=[]){return([,t])=>t&&Cie(t,e)}function Eie(e){return _t("MuiCircularProgress",e)}St("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Cc=44,$k=bd`
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`,Dk=bd`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: -126px;
}
`,Oie=typeof $k!="string"?vv`
animation: ${$k} 1.4s linear infinite;
`:null,Pie=typeof Dk!="string"?vv`
animation: ${Dk} 1.4s ease-in-out infinite;
`:null,Rie=e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${Ue(n)}`],svg:["svg"],circle:["circle",`circle${Ue(r)}`,a&&"circleDisableShrink"]};return yt(o,Eie,t)},kie=ve("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Ue(r.color)}`]]}})(gt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Oie||{animation:`${$k} 1.4s linear infinite`}},...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Tie=ve("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Aie=ve("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Ue(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(gt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Pie||{animation:`${Dk} 1.4s ease-in-out infinite`}}]}))),xd=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:i=!1,size:u=40,style:d,thickness:l=3.6,value:h=0,variant:v="indeterminate",...y}=n,b={...n,color:o,disableShrink:i,size:u,thickness:l,value:h,variant:v},_=Rie(b),w={},S={},A={};if(v==="determinate"){const R=2*Math.PI*((Cc-l)/2);w.strokeDasharray=R.toFixed(3),A["aria-valuenow"]=Math.round(h),w.strokeDashoffset=`${((100-h)/100*R).toFixed(3)}px`,S.transform="rotate(-90deg)"}return I.jsx(kie,{className:Ae(_.root,a),style:{width:u,height:u,...S,...d},ownerState:b,ref:r,role:"progressbar",...A,...y,children:I.jsx(Tie,{className:_.svg,ownerState:b,viewBox:`${Cc/2} ${Cc/2} ${Cc} ${Cc}`,children:I.jsx(Aie,{className:_.circle,style:w,ownerState:b,cx:Cc,cy:Cc,r:(Cc-l)/2,fill:"none",strokeWidth:l})})})});function Iie(e){return _t("MuiIconButton",e)}const W3=St("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),jie=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o,loading:i}=e,u={root:["root",i&&"loading",r&&"disabled",n!=="default"&&`color${Ue(n)}`,a&&`edge${Ue(a)}`,`size${Ue(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return yt(u,Iie,t)},Mie=ve(Du,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${Ue(r.color)}`],r.edge&&t[`edge${Ue(r.edge)}`],t[`size${Ue(r.size)}`]]}})(gt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),gt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:dr((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${W3.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${W3.loading}`]:{color:"transparent"}}))),Fie=ve("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),vn=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:i,color:u="default",disabled:d=!1,disableFocusRipple:l=!1,size:h="medium",id:v,loading:y=null,loadingIndicator:b,..._}=n,w=cd(v),S=b??I.jsx(xd,{"aria-labelledby":w,color:"inherit",size:16}),A={...n,edge:a,color:u,disabled:d,disableFocusRipple:l,loading:y,loadingIndicator:S,size:h},R=jie(A);return I.jsxs(Mie,{id:y?w:v,className:Ae(R.root,i),centerRipple:!0,focusRipple:!l,disabled:d||y,ref:r,..._,ownerState:A,children:[typeof y=="boolean"&&I.jsx("span",{className:R.loadingWrapper,style:{display:"contents"},children:I.jsx(Fie,{className:R.loadingIndicator,ownerState:A,children:y&&S})}),o]})});function Lie(e){return _t("MuiTypography",e)}const ew=St("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),$ie={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Die=Uoe(),Nie=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:i}=e,u={root:["root",o,e.align!=="inherit"&&`align${Ue(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return yt(u,Lie,i)},Bie=ve("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Ue(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(gt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(yn()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${Ue(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),H3={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Qt=p.forwardRef(function(t,r){const{color:n,...a}=wt({props:t,name:"MuiTypography"}),o=!$ie[n],i=Die({...a,...o&&{color:n}}),{align:u="inherit",className:d,component:l,gutterBottom:h=!1,noWrap:v=!1,paragraph:y=!1,variant:b="body1",variantMapping:_=H3,...w}=i,S={...i,align:u,color:n,className:d,component:l,gutterBottom:h,noWrap:v,paragraph:y,variant:b,variantMapping:_},A=l||(y?"p":_[b]||H3[b])||"span",R=Nie(S);return I.jsx(Bie,{as:A,ref:r,className:Ae(R.root,d),...w,ownerState:S,style:{...u!=="inherit"&&{"--Typography-textAlign":u},...w.style}})});function zie(e){return _t("MuiAppBar",e)}St("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const qie=e=>{const{color:t,position:r,classes:n}=e,a={root:["root",`color${Ue(t)}`,`position${Ue(r)}`]};return yt(a,zie,n)},K3=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Uie=ve(wd,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Ue(r.position)}`],t[`color${Ue(r.color)}`]]}})(gt(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(yn(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?K3(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?K3(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),Vie=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiAppBar"}),{className:a,color:o="primary",enableColorOnDark:i=!1,position:u="fixed",...d}=n,l={...n,color:o,position:u,enableColorOnDark:i},h=qie(l);return I.jsx(Uie,{square:!0,component:"header",ownerState:l,elevation:4,className:Ae(h.root,a,u==="fixed"&&"mui-fixed"),ref:r,...d})});var Lo="top",Wi="bottom",Hi="right",$o="left",VI="auto",t0=[Lo,Wi,Hi,$o],Gm="start",fb="end",Wie="clippingParents",zq="viewport",Xg="popper",Hie="reference",G3=t0.reduce(function(e,t){return e.concat([t+"-"+Gm,t+"-"+fb])},[]),qq=[].concat(t0,[VI]).reduce(function(e,t){return e.concat([t,t+"-"+Gm,t+"-"+fb])},[]),Kie="beforeRead",Gie="read",Qie="afterRead",Xie="beforeMain",Yie="main",Jie="afterMain",Zie="beforeWrite",ese="write",tse="afterWrite",rse=[Kie,Gie,Qie,Xie,Yie,Jie,Zie,ese,tse];function Rl(e){return e?(e.nodeName||"").toLowerCase():null}function fi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function sp(e){var t=fi(e).Element;return e instanceof t||e instanceof Element}function Ui(e){var t=fi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function WI(e){if(typeof ShadowRoot>"u")return!1;var t=fi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function nse(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Ui(o)||!Rl(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(i){var u=a[i];u===!1?o.removeAttribute(i):o.setAttribute(i,u===!0?"":u)}))})}function ase(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),u=i.reduce(function(d,l){return d[l]="",d},{});!Ui(a)||!Rl(a)||(Object.assign(a.style,u),Object.keys(o).forEach(function(d){a.removeAttribute(d)}))})}}const ose={name:"applyStyles",enabled:!0,phase:"write",fn:nse,effect:ase,requires:["computeStyles"]};function El(e){return e.split("-")[0]}var rp=Math.max,tw=Math.min,Qm=Math.round;function Nk(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Uq(){return!/^((?!chrome|android).)*safari/i.test(Nk())}function Xm(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Ui(e)&&(a=e.offsetWidth>0&&Qm(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Qm(n.height)/e.offsetHeight||1);var i=sp(e)?fi(e):window,u=i.visualViewport,d=!Uq()&&r,l=(n.left+(d&&u?u.offsetLeft:0))/a,h=(n.top+(d&&u?u.offsetTop:0))/o,v=n.width/a,y=n.height/o;return{width:v,height:y,top:h,right:l+v,bottom:h+y,left:l,x:l,y:h}}function HI(e){var t=Xm(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Vq(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&WI(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Mu(e){return fi(e).getComputedStyle(e)}function ise(e){return["table","td","th"].indexOf(Rl(e))>=0}function Sd(e){return((sp(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qx(e){return Rl(e)==="html"?e:e.assignedSlot||e.parentNode||(WI(e)?e.host:null)||Sd(e)}function Q3(e){return!Ui(e)||Mu(e).position==="fixed"?null:e.offsetParent}function sse(e){var t=/firefox/i.test(Nk()),r=/Trident/i.test(Nk());if(r&&Ui(e)){var n=Mu(e);if(n.position==="fixed")return null}var a=Qx(e);for(WI(a)&&(a=a.host);Ui(a)&&["html","body"].indexOf(Rl(a))<0;){var o=Mu(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function r0(e){for(var t=fi(e),r=Q3(e);r&&ise(r)&&Mu(r).position==="static";)r=Q3(r);return r&&(Rl(r)==="html"||Rl(r)==="body"&&Mu(r).position==="static")?t:r||sse(e)||t}function KI(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ey(e,t,r){return rp(e,tw(t,r))}function lse(e,t,r){var n=Ey(e,t,r);return n>r?r:n}function Wq(){return{top:0,right:0,bottom:0,left:0}}function Hq(e){return Object.assign({},Wq(),e)}function Kq(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var use=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Hq(typeof t!="number"?t:Kq(t,t0))};function cse(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,i=r.modifiersData.popperOffsets,u=El(r.placement),d=KI(u),l=[$o,Hi].indexOf(u)>=0,h=l?"height":"width";if(!(!o||!i)){var v=use(a.padding,r),y=HI(o),b=d==="y"?Lo:$o,_=d==="y"?Wi:Hi,w=r.rects.reference[h]+r.rects.reference[d]-i[d]-r.rects.popper[h],S=i[d]-r.rects.reference[d],A=r0(o),R=A?d==="y"?A.clientHeight||0:A.clientWidth||0:0,C=w/2-S/2,O=v[b],T=R-y[h]-v[_],E=R/2-y[h]/2+C,L=Ey(O,E,T),j=d;r.modifiersData[n]=(t={},t[j]=L,t.centerOffset=L-E,t)}}function dse(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Vq(t.elements.popper,a)&&(t.elements.arrow=a))}const fse={name:"arrow",enabled:!0,phase:"main",fn:cse,effect:dse,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ym(e){return e.split("-")[1]}var pse={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hse(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:Qm(r*a)/a||0,y:Qm(n*a)/a||0}}function X3(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,u=e.position,d=e.gpuAcceleration,l=e.adaptive,h=e.roundOffsets,v=e.isFixed,y=i.x,b=y===void 0?0:y,_=i.y,w=_===void 0?0:_,S=typeof h=="function"?h({x:b,y:w}):{x:b,y:w};b=S.x,w=S.y;var A=i.hasOwnProperty("x"),R=i.hasOwnProperty("y"),C=$o,O=Lo,T=window;if(l){var E=r0(r),L="clientHeight",j="clientWidth";if(E===fi(r)&&(E=Sd(r),Mu(E).position!=="static"&&u==="absolute"&&(L="scrollHeight",j="scrollWidth")),E=E,a===Lo||(a===$o||a===Hi)&&o===fb){O=Wi;var M=v&&E===T&&T.visualViewport?T.visualViewport.height:E[L];w-=M-n.height,w*=d?1:-1}if(a===$o||(a===Lo||a===Wi)&&o===fb){C=Hi;var k=v&&E===T&&T.visualViewport?T.visualViewport.width:E[j];b-=k-n.width,b*=d?1:-1}}var $=Object.assign({position:u},l&&pse),B=h===!0?hse({x:b,y:w},fi(r)):{x:b,y:w};if(b=B.x,w=B.y,d){var z;return Object.assign({},$,(z={},z[O]=R?"0":"",z[C]=A?"0":"",z.transform=(T.devicePixelRatio||1)<=1?"translate("+b+"px, "+w+"px)":"translate3d("+b+"px, "+w+"px, 0)",z))}return Object.assign({},$,(t={},t[O]=R?w+"px":"",t[C]=A?b+"px":"",t.transform="",t))}function mse(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,i=o===void 0?!0:o,u=r.roundOffsets,d=u===void 0?!0:u,l={placement:El(t.placement),variation:Ym(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,X3(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,X3(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const vse={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mse,data:{}};var H_={passive:!0};function gse(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,i=n.resize,u=i===void 0?!0:i,d=fi(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(h){h.addEventListener("scroll",r.update,H_)}),u&&d.addEventListener("resize",r.update,H_),function(){o&&l.forEach(function(h){h.removeEventListener("scroll",r.update,H_)}),u&&d.removeEventListener("resize",r.update,H_)}}const yse={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gse,data:{}};var bse={left:"right",right:"left",bottom:"top",top:"bottom"};function _1(e){return e.replace(/left|right|bottom|top/g,function(t){return bse[t]})}var _se={start:"end",end:"start"};function Y3(e){return e.replace(/start|end/g,function(t){return _se[t]})}function GI(e){var t=fi(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function QI(e){return Xm(Sd(e)).left+GI(e).scrollLeft}function wse(e,t){var r=fi(e),n=Sd(e),a=r.visualViewport,o=n.clientWidth,i=n.clientHeight,u=0,d=0;if(a){o=a.width,i=a.height;var l=Uq();(l||!l&&t==="fixed")&&(u=a.offsetLeft,d=a.offsetTop)}return{width:o,height:i,x:u+QI(e),y:d}}function xse(e){var t,r=Sd(e),n=GI(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=rp(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=rp(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-n.scrollLeft+QI(e),d=-n.scrollTop;return Mu(a||r).direction==="rtl"&&(u+=rp(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:u,y:d}}function XI(e){var t=Mu(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function Gq(e){return["html","body","#document"].indexOf(Rl(e))>=0?e.ownerDocument.body:Ui(e)&&XI(e)?e:Gq(Qx(e))}function Oy(e,t){var r;t===void 0&&(t=[]);var n=Gq(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=fi(n),i=a?[o].concat(o.visualViewport||[],XI(n)?n:[]):n,u=t.concat(i);return a?u:u.concat(Oy(Qx(i)))}function Bk(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sse(e,t){var r=Xm(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function J3(e,t,r){return t===zq?Bk(wse(e,r)):sp(t)?Sse(t,r):Bk(xse(Sd(e)))}function Cse(e){var t=Oy(Qx(e)),r=["absolute","fixed"].indexOf(Mu(e).position)>=0,n=r&&Ui(e)?r0(e):e;return sp(n)?t.filter(function(a){return sp(a)&&Vq(a,n)&&Rl(a)!=="body"}):[]}function Ese(e,t,r,n){var a=t==="clippingParents"?Cse(e):[].concat(t),o=[].concat(a,[r]),i=o[0],u=o.reduce(function(d,l){var h=J3(e,l,n);return d.top=rp(h.top,d.top),d.right=tw(h.right,d.right),d.bottom=tw(h.bottom,d.bottom),d.left=rp(h.left,d.left),d},J3(e,i,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function Qq(e){var t=e.reference,r=e.element,n=e.placement,a=n?El(n):null,o=n?Ym(n):null,i=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,d;switch(a){case Lo:d={x:i,y:t.y-r.height};break;case Wi:d={x:i,y:t.y+t.height};break;case Hi:d={x:t.x+t.width,y:u};break;case $o:d={x:t.x-r.width,y:u};break;default:d={x:t.x,y:t.y}}var l=a?KI(a):null;if(l!=null){var h=l==="y"?"height":"width";switch(o){case Gm:d[l]=d[l]-(t[h]/2-r[h]/2);break;case fb:d[l]=d[l]+(t[h]/2-r[h]/2);break}}return d}function pb(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,i=o===void 0?e.strategy:o,u=r.boundary,d=u===void 0?Wie:u,l=r.rootBoundary,h=l===void 0?zq:l,v=r.elementContext,y=v===void 0?Xg:v,b=r.altBoundary,_=b===void 0?!1:b,w=r.padding,S=w===void 0?0:w,A=Hq(typeof S!="number"?S:Kq(S,t0)),R=y===Xg?Hie:Xg,C=e.rects.popper,O=e.elements[_?R:y],T=Ese(sp(O)?O:O.contextElement||Sd(e.elements.popper),d,h,i),E=Xm(e.elements.reference),L=Qq({reference:E,element:C,placement:a}),j=Bk(Object.assign({},C,L)),M=y===Xg?j:E,k={top:T.top-M.top+A.top,bottom:M.bottom-T.bottom+A.bottom,left:T.left-M.left+A.left,right:M.right-T.right+A.right},$=e.modifiersData.offset;if(y===Xg&&$){var B=$[a];Object.keys(k).forEach(function(z){var U=[Hi,Wi].indexOf(z)>=0?1:-1,W=[Lo,Wi].indexOf(z)>=0?"y":"x";k[z]+=B[W]*U})}return k}function Ose(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,i=r.padding,u=r.flipVariations,d=r.allowedAutoPlacements,l=d===void 0?qq:d,h=Ym(n),v=h?u?G3:G3.filter(function(_){return Ym(_)===h}):t0,y=v.filter(function(_){return l.indexOf(_)>=0});y.length===0&&(y=v);var b=y.reduce(function(_,w){return _[w]=pb(e,{placement:w,boundary:a,rootBoundary:o,padding:i})[El(w)],_},{});return Object.keys(b).sort(function(_,w){return b[_]-b[w]})}function Pse(e){if(El(e)===VI)return[];var t=_1(e);return[Y3(e),t,Y3(t)]}function Rse(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,u=i===void 0?!0:i,d=r.fallbackPlacements,l=r.padding,h=r.boundary,v=r.rootBoundary,y=r.altBoundary,b=r.flipVariations,_=b===void 0?!0:b,w=r.allowedAutoPlacements,S=t.options.placement,A=El(S),R=A===S,C=d||(R||!_?[_1(S)]:Pse(S)),O=[S].concat(C).reduce(function(ce,ue){return ce.concat(El(ue)===VI?Ose(t,{placement:ue,boundary:h,rootBoundary:v,padding:l,flipVariations:_,allowedAutoPlacements:w}):ue)},[]),T=t.rects.reference,E=t.rects.popper,L=new Map,j=!0,M=O[0],k=0;k<O.length;k++){var $=O[k],B=El($),z=Ym($)===Gm,U=[Lo,Wi].indexOf(B)>=0,W=U?"width":"height",Q=pb(t,{placement:$,boundary:h,rootBoundary:v,altBoundary:y,padding:l}),V=U?z?Hi:$o:z?Wi:Lo;T[W]>E[W]&&(V=_1(V));var K=_1(V),X=[];if(o&&X.push(Q[B]<=0),u&&X.push(Q[V]<=0,Q[K]<=0),X.every(function(ce){return ce})){M=$,j=!1;break}L.set($,X)}if(j)for(var te=_?3:1,G=function(ue){var be=O.find(function(Pe){var Ee=L.get(Pe);if(Ee)return Ee.slice(0,ue).every(function(ge){return ge})});if(be)return M=be,"break"},J=te;J>0;J--){var de=G(J);if(de==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const kse={name:"flip",enabled:!0,phase:"main",fn:Rse,requiresIfExists:["offset"],data:{_skip:!1}};function Z3(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function e4(e){return[Lo,Hi,Wi,$o].some(function(t){return e[t]>=0})}function Tse(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=pb(t,{elementContext:"reference"}),u=pb(t,{altBoundary:!0}),d=Z3(i,n),l=Z3(u,a,o),h=e4(d),v=e4(l);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:l,isReferenceHidden:h,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":v})}const Ase={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tse};function Ise(e,t,r){var n=El(e),a=[$o,Lo].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=o[0],u=o[1];return i=i||0,u=(u||0)*a,[$o,Hi].indexOf(n)>=0?{x:u,y:i}:{x:i,y:u}}function jse(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,i=qq.reduce(function(h,v){return h[v]=Ise(v,t.rects,o),h},{}),u=i[t.placement],d=u.x,l=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}const Mse={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jse};function Fse(e){var t=e.state,r=e.name;t.modifiersData[r]=Qq({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Lse={name:"popperOffsets",enabled:!0,phase:"read",fn:Fse,data:{}};function $se(e){return e==="x"?"y":"x"}function Dse(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,i=r.altAxis,u=i===void 0?!1:i,d=r.boundary,l=r.rootBoundary,h=r.altBoundary,v=r.padding,y=r.tether,b=y===void 0?!0:y,_=r.tetherOffset,w=_===void 0?0:_,S=pb(t,{boundary:d,rootBoundary:l,padding:v,altBoundary:h}),A=El(t.placement),R=Ym(t.placement),C=!R,O=KI(A),T=$se(O),E=t.modifiersData.popperOffsets,L=t.rects.reference,j=t.rects.popper,M=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,k=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(E){if(o){var z,U=O==="y"?Lo:$o,W=O==="y"?Wi:Hi,Q=O==="y"?"height":"width",V=E[O],K=V+S[U],X=V-S[W],te=b?-j[Q]/2:0,G=R===Gm?L[Q]:j[Q],J=R===Gm?-j[Q]:-L[Q],de=t.elements.arrow,ce=b&&de?HI(de):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Wq(),be=ue[U],Pe=ue[W],Ee=Ey(0,L[Q],ce[Q]),ge=C?L[Q]/2-te-Ee-be-k.mainAxis:G-Ee-be-k.mainAxis,xe=C?-L[Q]/2+te+Ee+Pe+k.mainAxis:J+Ee+Pe+k.mainAxis,Oe=t.elements.arrow&&r0(t.elements.arrow),Te=Oe?O==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,Me=(z=$==null?void 0:$[O])!=null?z:0,Fe=V+ge-Me-Te,$e=V+xe-Me,et=Ey(b?tw(K,Fe):K,V,b?rp(X,$e):X);E[O]=et,B[O]=et-V}if(u){var qe,re=O==="x"?Lo:$o,oe=O==="x"?Wi:Hi,pe=E[T],Se=T==="y"?"height":"width",ne=pe+S[re],we=pe-S[oe],Ne=[Lo,$o].indexOf(A)!==-1,De=(qe=$==null?void 0:$[T])!=null?qe:0,ht=Ne?ne:pe-L[Se]-j[Se]-De+k.altAxis,lt=Ne?pe+L[Se]+j[Se]-De-k.altAxis:we,bt=b&&Ne?lse(ht,pe,lt):Ey(b?ht:ne,pe,b?lt:we);E[T]=bt,B[T]=bt-pe}t.modifiersData[n]=B}}const Nse={name:"preventOverflow",enabled:!0,phase:"main",fn:Dse,requiresIfExists:["offset"]};function Bse(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zse(e){return e===fi(e)||!Ui(e)?GI(e):Bse(e)}function qse(e){var t=e.getBoundingClientRect(),r=Qm(t.width)/e.offsetWidth||1,n=Qm(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Use(e,t,r){r===void 0&&(r=!1);var n=Ui(t),a=Ui(t)&&qse(t),o=Sd(t),i=Xm(e,a,r),u={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(n||!n&&!r)&&((Rl(t)!=="body"||XI(o))&&(u=zse(t)),Ui(t)?(d=Xm(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):o&&(d.x=QI(o))),{x:i.left+u.scrollLeft-d.x,y:i.top+u.scrollTop-d.y,width:i.width,height:i.height}}function Vse(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(u){if(!r.has(u)){var d=t.get(u);d&&a(d)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function Wse(e){var t=Vse(e);return rse.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Hse(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Kse(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var t4={placement:"bottom",modifiers:[],strategy:"absolute"};function r4(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Gse(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?t4:a;return function(u,d,l){l===void 0&&(l=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},t4,o),modifiersData:{},elements:{reference:u,popper:d},attributes:{},styles:{}},v=[],y=!1,b={state:h,setOptions:function(A){var R=typeof A=="function"?A(h.options):A;w(),h.options=Object.assign({},o,h.options,R),h.scrollParents={reference:sp(u)?Oy(u):u.contextElement?Oy(u.contextElement):[],popper:Oy(d)};var C=Wse(Kse([].concat(n,h.options.modifiers)));return h.orderedModifiers=C.filter(function(O){return O.enabled}),_(),b.update()},forceUpdate:function(){if(!y){var A=h.elements,R=A.reference,C=A.popper;if(r4(R,C)){h.rects={reference:Use(R,r0(C),h.options.strategy==="fixed"),popper:HI(C)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(k){return h.modifiersData[k.name]=Object.assign({},k.data)});for(var O=0;O<h.orderedModifiers.length;O++){if(h.reset===!0){h.reset=!1,O=-1;continue}var T=h.orderedModifiers[O],E=T.fn,L=T.options,j=L===void 0?{}:L,M=T.name;typeof E=="function"&&(h=E({state:h,options:j,name:M,instance:b})||h)}}}},update:Hse(function(){return new Promise(function(S){b.forceUpdate(),S(h)})}),destroy:function(){w(),y=!0}};if(!r4(u,d))return b;b.setOptions(l).then(function(S){!y&&l.onFirstUpdate&&l.onFirstUpdate(S)});function _(){h.orderedModifiers.forEach(function(S){var A=S.name,R=S.options,C=R===void 0?{}:R,O=S.effect;if(typeof O=="function"){var T=O({state:h,name:A,instance:b,options:C}),E=function(){};v.push(T||E)}})}function w(){v.forEach(function(S){return S()}),v=[]}return b}}var Qse=[yse,Lse,vse,ose,Mse,kse,Nse,fse,Ase],Xse=Gse({defaultModifiers:Qse});function Jm(e){var v;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:a=!1,...o}=e,i=a?{}:Nq(r,n),{props:u,internalRef:d}=Bq({...o,externalSlotProps:i}),l=En(d,i==null?void 0:i.ref,(v=e.additionalProps)==null?void 0:v.ref);return Dq(t,{...u,ref:l},n)}function Cd(e){var t;return parseInt(p.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function Yse(e){return typeof e=="function"?e():e}const Xq=p.forwardRef(function(t,r){const{children:n,container:a,disablePortal:o=!1}=t,[i,u]=p.useState(null),d=En(p.isValidElement(n)?Cd(n):null,r);if(ci(()=>{o||u(Yse(a)||document.body)},[a,o]),ci(()=>{if(i&&!o)return N3(r,i),()=>{N3(r,null)}},[r,i,o]),o){if(p.isValidElement(n)){const l={ref:d};return p.cloneElement(n,l)}return n}return i&&ax.createPortal(n,i)});function Jse(e){return _t("MuiPopper",e)}St("MuiPopper",["root"]);function Zse(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function zk(e){return typeof e=="function"?e():e}function ele(e){return e.nodeType!==void 0}const tle=e=>{const{classes:t}=e;return yt({root:["root"]},Jse,t)},rle={},nle=p.forwardRef(function(t,r){const{anchorEl:n,children:a,direction:o,disablePortal:i,modifiers:u,open:d,placement:l,popperOptions:h,popperRef:v,slotProps:y={},slots:b={},TransitionProps:_,ownerState:w,...S}=t,A=p.useRef(null),R=En(A,r),C=p.useRef(null),O=En(C,v),T=p.useRef(O);ci(()=>{T.current=O},[O]),p.useImperativeHandle(v,()=>C.current,[]);const E=Zse(l,o),[L,j]=p.useState(E),[M,k]=p.useState(zk(n));p.useEffect(()=>{C.current&&C.current.forceUpdate()}),p.useEffect(()=>{n&&k(zk(n))},[n]),ci(()=>{if(!M||!d)return;const W=K=>{j(K.placement)};let Q=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:K})=>{W(K)}}];u!=null&&(Q=Q.concat(u)),h&&h.modifiers!=null&&(Q=Q.concat(h.modifiers));const V=Xse(M,A.current,{placement:E,...h,modifiers:Q});return T.current(V),()=>{V.destroy(),T.current(null)}},[M,i,u,d,h,E]);const $={placement:L};_!==null&&($.TransitionProps=_);const B=tle(t),z=b.root??"div",U=Jm({elementType:z,externalSlotProps:y.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:R},ownerState:t,className:B.root});return I.jsx(z,{...U,children:typeof a=="function"?a($):a})}),ale=p.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:i="ltr",disablePortal:u=!1,keepMounted:d=!1,modifiers:l,open:h,placement:v="bottom",popperOptions:y=rle,popperRef:b,style:_,transition:w=!1,slotProps:S={},slots:A={},...R}=t,[C,O]=p.useState(!0),T=()=>{O(!1)},E=()=>{O(!0)};if(!d&&!h&&(!w||C))return null;let L;if(o)L=o;else if(n){const k=zk(n);L=k&&ele(k)?Sa(k).body:Sa(null).body}const j=!h&&d&&(!w||C)?"none":void 0,M=w?{in:h,onEnter:T,onExited:E}:void 0;return I.jsx(Xq,{disablePortal:u,container:L,children:I.jsx(nle,{anchorEl:n,direction:i,disablePortal:u,modifiers:l,ref:r,open:w?!C:h,placement:v,popperOptions:y,popperRef:b,slotProps:S,slots:A,...R,style:{position:"fixed",top:0,left:0,display:j,..._},TransitionProps:M,children:a})})}),ole=ve(ale,{name:"MuiPopper",slot:"Root"})({}),Yq=p.forwardRef(function(t,r){const n=$u(),a=wt({props:t,name:"MuiPopper"}),{anchorEl:o,component:i,components:u,componentsProps:d,container:l,disablePortal:h,keepMounted:v,modifiers:y,open:b,placement:_,popperOptions:w,popperRef:S,transition:A,slots:R,slotProps:C,...O}=a,T=(R==null?void 0:R.root)??(u==null?void 0:u.Root),E={anchorEl:o,container:l,disablePortal:h,keepMounted:v,modifiers:y,open:b,placement:_,popperOptions:w,popperRef:S,transition:A,...O};return I.jsx(ole,{as:i,direction:n?"rtl":"ltr",slots:{root:T},slotProps:C??d,...E,ref:r})});function K_(e){return parseInt(e,10)||0}const ile={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function sle(e){for(const t in e)return!1;return!0}function n4(e){return sle(e)||e.outerHeightStyle===0&&!e.overflowing}const lle=p.forwardRef(function(t,r){const{onChange:n,maxRows:a,minRows:o=1,style:i,value:u,...d}=t,{current:l}=p.useRef(u!=null),h=p.useRef(null),v=En(r,h),y=p.useRef(null),b=p.useRef(null),_=p.useCallback(()=>{const C=h.current,O=b.current;if(!C||!O)return;const E=di(C).getComputedStyle(C);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};O.style.width=E.width,O.value=C.value||t.placeholder||"x",O.value.slice(-1)===`
`&&(O.value+=" ");const L=E.boxSizing,j=K_(E.paddingBottom)+K_(E.paddingTop),M=K_(E.borderBottomWidth)+K_(E.borderTopWidth),k=O.scrollHeight;O.value="x";const $=O.scrollHeight;let B=k;o&&(B=Math.max(Number(o)*$,B)),a&&(B=Math.min(Number(a)*$,B)),B=Math.max(B,$);const z=B+(L==="border-box"?j+M:0),U=Math.abs(B-k)<=1;return{outerHeightStyle:z,overflowing:U}},[a,o,t.placeholder]),w=uo(()=>{const C=h.current,O=_();if(!C||!O||n4(O))return!1;const T=O.outerHeightStyle;return y.current!=null&&y.current!==T}),S=p.useCallback(()=>{const C=h.current,O=_();if(!C||!O||n4(O))return;const T=O.outerHeightStyle;y.current!==T&&(y.current=T,C.style.height=`${T}px`),C.style.overflow=O.overflowing?"hidden":""},[_]),A=p.useRef(-1);ci(()=>{const C=e0(S),O=h==null?void 0:h.current;if(!O)return;const T=di(O);T.addEventListener("resize",C);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{w()&&(E.unobserve(O),cancelAnimationFrame(A.current),S(),A.current=requestAnimationFrame(()=>{E.observe(O)}))}),E.observe(O)),()=>{C.clear(),cancelAnimationFrame(A.current),T.removeEventListener("resize",C),E&&E.disconnect()}},[_,S,w]),ci(()=>{S()});const R=C=>{l||S();const O=C.target,T=O.value.length,E=O.value.endsWith(`
`),L=O.selectionStart===T;E&&L&&O.setSelectionRange(T,T),n&&n(C)};return I.jsxs(p.Fragment,{children:[I.jsx("textarea",{value:u,onChange:R,ref:v,rows:o,style:i,...d}),I.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...ile.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function qk(e){return typeof e=="string"}function Nu({props:e,states:t,muiFormControl:r}){return t.reduce((n,a)=>(n[a]=e[a],r&&typeof e[a]>"u"&&(n[a]=r[a]),n),{})}const Xx=p.createContext(void 0);function As(){return p.useContext(Xx)}function a4(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function rw(e,t=!1){return e&&(a4(e.value)&&e.value!==""||t&&a4(e.defaultValue)&&e.defaultValue!=="")}function ule(e){return e.startAdornment}function cle(e){return _t("MuiInputBase",e)}const Zm=St("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var o4;const Yx=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Ue(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Jx=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},dle=e=>{const{classes:t,color:r,disabled:n,error:a,endAdornment:o,focused:i,formControl:u,fullWidth:d,hiddenLabel:l,multiline:h,readOnly:v,size:y,startAdornment:b,type:_}=e,w={root:["root",`color${Ue(r)}`,n&&"disabled",a&&"error",d&&"fullWidth",i&&"focused",u&&"formControl",y&&y!=="medium"&&`size${Ue(y)}`,h&&"multiline",b&&"adornedStart",o&&"adornedEnd",l&&"hiddenLabel",v&&"readOnly"],input:["input",n&&"disabled",_==="search"&&"inputTypeSearch",h&&"inputMultiline",y==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",b&&"inputAdornedStart",o&&"inputAdornedEnd",v&&"readOnly"]};return yt(w,cle,t)},Zx=ve("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Yx})(gt(({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",[`&.${Zm.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),eS=ve("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Jx})(gt(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},a=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":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Zm.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Zm.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),i4=NI({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),tS=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:i,className:u,color:d,components:l={},componentsProps:h={},defaultValue:v,disabled:y,disableInjectingGlobalStyles:b,endAdornment:_,error:w,fullWidth:S=!1,id:A,inputComponent:R="input",inputProps:C={},inputRef:O,margin:T,maxRows:E,minRows:L,multiline:j=!1,name:M,onBlur:k,onChange:$,onClick:B,onFocus:z,onKeyDown:U,onKeyUp:W,placeholder:Q,readOnly:V,renderSuffix:K,rows:X,size:te,slotProps:G={},slots:J={},startAdornment:de,type:ce="text",value:ue,...be}=n,Pe=C.value!=null?C.value:ue,{current:Ee}=p.useRef(Pe!=null),ge=p.useRef(),xe=p.useCallback(Je=>{},[]),Oe=En(ge,O,C.ref,xe),[Te,Me]=p.useState(!1),Fe=As(),$e=Nu({props:n,muiFormControl:Fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=Fe?Fe.focused:Te,p.useEffect(()=>{!Fe&&y&&Te&&(Me(!1),k&&k())},[Fe,y,Te,k]);const et=Fe&&Fe.onFilled,qe=Fe&&Fe.onEmpty,re=p.useCallback(Je=>{rw(Je)?et&&et():qe&&qe()},[et,qe]);ci(()=>{Ee&&re({value:Pe})},[Pe,re,Ee]);const oe=Je=>{z&&z(Je),C.onFocus&&C.onFocus(Je),Fe&&Fe.onFocus?Fe.onFocus(Je):Me(!0)},pe=Je=>{k&&k(Je),C.onBlur&&C.onBlur(Je),Fe&&Fe.onBlur?Fe.onBlur(Je):Me(!1)},Se=(Je,...Dt)=>{if(!Ee){const Lt=Je.target||ge.current;if(Lt==null)throw new Error(ju(1));re({value:Lt.value})}C.onChange&&C.onChange(Je,...Dt),$&&$(Je,...Dt)};p.useEffect(()=>{re(ge.current)},[]);const ne=Je=>{ge.current&&Je.currentTarget===Je.target&&ge.current.focus(),B&&B(Je)};let we=R,Ne=C;j&&we==="input"&&(X?Ne={type:void 0,minRows:X,maxRows:X,...Ne}:Ne={type:void 0,maxRows:E,minRows:L,...Ne},we=lle);const De=Je=>{re(Je.animationName==="mui-auto-fill-cancel"?ge.current:{value:"x"})};p.useEffect(()=>{Fe&&Fe.setAdornedStart(!!de)},[Fe,de]);const ht={...n,color:$e.color||"primary",disabled:$e.disabled,endAdornment:_,error:$e.error,focused:$e.focused,formControl:Fe,fullWidth:S,hiddenLabel:$e.hiddenLabel,multiline:j,size:$e.size,startAdornment:de,type:ce},lt=dle(ht),bt=J.root||l.Root||Zx,Pt=G.root||h.root||{},Tt=J.input||l.Input||eS;return Ne={...Ne,...G.input??h.input},I.jsxs(p.Fragment,{children:[!b&&typeof i4=="function"&&(o4||(o4=I.jsx(i4,{}))),I.jsxs(bt,{...Pt,ref:r,onClick:ne,...be,...!qk(bt)&&{ownerState:{...ht,...Pt.ownerState}},className:Ae(lt.root,Pt.className,u,V&&"MuiInputBase-readOnly"),children:[de,I.jsx(Xx.Provider,{value:null,children:I.jsx(Tt,{"aria-invalid":$e.error,"aria-describedby":a,autoComplete:o,autoFocus:i,defaultValue:v,disabled:$e.disabled,id:A,onAnimationStart:De,name:M,placeholder:Q,readOnly:V,required:$e.required,rows:X,value:Pe,onKeyDown:U,onKeyUp:W,type:ce,...Ne,...!qk(Tt)&&{as:we,ownerState:{...ht,...Ne.ownerState}},ref:Oe,className:Ae(lt.input,Ne.className,V&&"MuiInputBase-readOnly"),onBlur:pe,onChange:Se,onFocus:oe})}),_,K?K({...$e,startAdornment:de}):null]})]})});function fle(e){return _t("MuiInput",e)}const Yg={...Zm,...St("MuiInput",["root","underline","input"])};function ple(e){return _t("MuiOutlinedInput",e)}const sl={...Zm,...St("MuiOutlinedInput",["root","notchedOutline","input"])};function hle(e){return _t("MuiFilledInput",e)}const xf={...Zm,...St("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Jq=ot(I.jsx("path",{d:"M7 10l5 5 5-5z"})),mle=ot(I.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function vle(e){return _t("MuiAvatar",e)}St("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const gle=e=>{const{classes:t,variant:r,colorDefault:n}=e;return yt({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},vle,t)},yle=ve("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(gt(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),ble=ve("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),_le=ve(mle,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function wle({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[a,o]=p.useState(!1);return p.useEffect(()=>{if(!r&&!n)return;o(!1);let i=!0;const u=new Image;return u.onload=()=>{i&&o("loaded")},u.onerror=()=>{i&&o("error")},u.crossOrigin=e,u.referrerPolicy=t,u.src=r,n&&(u.srcset=n),()=>{i=!1}},[e,t,r,n]),a}const hb=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiAvatar"}),{alt:a,children:o,className:i,component:u="div",slots:d={},slotProps:l={},imgProps:h,sizes:v,src:y,srcSet:b,variant:_="circular",...w}=n;let S=null;const A={...n,component:u,variant:_},R=wle({...h,...typeof l.img=="function"?l.img(A):l.img,src:y,srcSet:b}),C=y||b,O=C&&R!=="error";A.colorDefault=!O,delete A.ownerState;const T=gle(A),[E,L]=mt("root",{ref:r,className:Ae(T.root,i),elementType:yle,externalForwardedProps:{slots:d,slotProps:l,component:u,...w},ownerState:A}),[j,M]=mt("img",{className:T.img,elementType:ble,externalForwardedProps:{slots:d,slotProps:{img:{...h,...l.img}}},additionalProps:{alt:a,src:y,srcSet:b,sizes:v},ownerState:A}),[k,$]=mt("fallback",{className:T.fallback,elementType:_le,externalForwardedProps:{slots:d,slotProps:l},shouldForwardComponentProp:!0,ownerState:A});return O?S=I.jsx(j,{...M}):o||o===0?S=o:C&&a?S=a[0]:S=I.jsx(k,{...$}),I.jsx(E,{...L,children:S})}),xle={entering:{opacity:1},entered:{opacity:1}},Uk=p.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:u,easing:d,in:l,onEnter:h,onEntered:v,onEntering:y,onExit:b,onExited:_,onExiting:w,style:S,timeout:A=a,TransitionComponent:R=Ts,...C}=t,O=p.useRef(null),T=En(O,Cd(u),r),E=U=>W=>{if(U){const Q=O.current;W===void 0?U(Q):U(Q,W)}},L=E(y),j=E((U,W)=>{UI(U);const Q=Hm({style:S,timeout:A,easing:d},{mode:"enter"});U.style.webkitTransition=n.transitions.create("opacity",Q),U.style.transition=n.transitions.create("opacity",Q),h&&h(U,W)}),M=E(v),k=E(w),$=E(U=>{const W=Hm({style:S,timeout:A,easing:d},{mode:"exit"});U.style.webkitTransition=n.transitions.create("opacity",W),U.style.transition=n.transitions.create("opacity",W),b&&b(U)}),B=E(_),z=U=>{o&&o(O.current,U)};return I.jsx(R,{appear:i,in:l,nodeRef:O,onEnter:j,onEntered:M,onEntering:L,onExit:$,onExited:B,onExiting:k,addEndListener:z,timeout:A,...C,children:(U,{ownerState:W,...Q})=>p.cloneElement(u,{style:{opacity:0,visibility:U==="exited"&&!l?"hidden":void 0,...xle[U],...S,...u.props.style},ref:T,...Q})})});function Sle(e){return _t("MuiBackdrop",e)}St("MuiBackdrop",["root","invisible"]);const Cle=e=>{const{classes:t,invisible:r}=e;return yt({root:["root",r&&"invisible"]},Sle,t)},Ele=ve("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Zq=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiBackdrop"}),{children:a,className:o,component:i="div",invisible:u=!1,open:d,components:l={},componentsProps:h={},slotProps:v={},slots:y={},TransitionComponent:b,transitionDuration:_,...w}=n,S={...n,component:i,invisible:u},A=Cle(S),R={transition:b,root:l.Root,...y},C={...h,...v},O={slots:R,slotProps:C},[T,E]=mt("root",{elementType:Ele,externalForwardedProps:O,className:Ae(A.root,o),ownerState:S}),[L,j]=mt("transition",{elementType:Uk,externalForwardedProps:O,ownerState:S});return I.jsx(L,{in:d,timeout:_,...w,...j,children:I.jsx(T,{"aria-hidden":!0,...E,classes:A,ref:r,children:a})})}),Ole=St("MuiBox",["root"]),Ple=cb(),Mo=pae({themeId:qi,defaultTheme:Ple,defaultClassName:Ole.root,generateClassName:fq.generate});function Rle(e){return _t("MuiButton",e)}const Sf=St("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),kle=p.createContext({}),Tle=p.createContext(void 0),Ale=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,loading:i,loadingPosition:u,classes:d}=e,l={root:["root",i&&"loading",o,`${o}${Ue(t)}`,`size${Ue(a)}`,`${o}Size${Ue(a)}`,`color${Ue(t)}`,r&&"disableElevation",n&&"fullWidth",i&&`loadingPosition${Ue(u)}`],startIcon:["icon","startIcon",`iconSize${Ue(a)}`],endIcon:["icon","endIcon",`iconSize${Ue(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},h=yt(l,Rle,d);return{...d,...h}},eU=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Ile=ve(Du,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ue(r.color)}`],t[`size${Ue(r.size)}`],t[`${r.variant}Size${Ue(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(gt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Sf.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Sf.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Sf.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Sf.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(yn()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.5)`:dr(e.palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette[n].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette[n].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Sf.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Sf.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Sf.loading}`]:{color:"transparent"}}}]}})),jle=ve("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${Ue(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...eU]})),Mle=ve("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${Ue(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...eU]})),Fle=ve("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),s4=ve("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Dn=p.forwardRef(function(t,r){const n=p.useContext(kle),a=p.useContext(Tle),o=ub(n,t),i=wt({props:o,name:"MuiButton"}),{children:u,color:d="primary",component:l="button",className:h,disabled:v=!1,disableElevation:y=!1,disableFocusRipple:b=!1,endIcon:_,focusVisibleClassName:w,fullWidth:S=!1,id:A,loading:R=null,loadingIndicator:C,loadingPosition:O="center",size:T="medium",startIcon:E,type:L,variant:j="text",...M}=i,k=cd(A),$=C??I.jsx(xd,{"aria-labelledby":k,color:"inherit",size:16}),B={...i,color:d,component:l,disabled:v,disableElevation:y,disableFocusRipple:b,fullWidth:S,loading:R,loadingIndicator:$,loadingPosition:O,size:T,type:L,variant:j},z=Ale(B),U=(E||R&&O==="start")&&I.jsx(jle,{className:z.startIcon,ownerState:B,children:E||I.jsx(s4,{className:z.loadingIconPlaceholder,ownerState:B})}),W=(_||R&&O==="end")&&I.jsx(Mle,{className:z.endIcon,ownerState:B,children:_||I.jsx(s4,{className:z.loadingIconPlaceholder,ownerState:B})}),Q=a||"",V=typeof R=="boolean"?I.jsx("span",{className:z.loadingWrapper,style:{display:"contents"},children:R&&I.jsx(Fle,{className:z.loadingIndicator,ownerState:B,children:$})}):null;return I.jsxs(Ile,{ownerState:B,className:Ae(n.className,z.root,h,Q),component:l,disabled:v||R,focusRipple:!b,focusVisibleClassName:Ae(z.focusVisible,w),ref:r,type:L,id:R?k:A,...M,classes:z,children:[U,O!=="end"&&V,u,O==="end"&&V,W]})});function Lle(e){return _t("MuiCard",e)}St("MuiCard",["root"]);const $le=e=>{const{classes:t}=e;return yt({root:["root"]},Lle,t)},Dle=ve(wd,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),pp=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiCard"}),{className:a,raised:o=!1,...i}=n,u={...n,raised:o},d=$le(u);return I.jsx(Dle,{className:Ae(d.root,a),elevation:o?8:void 0,ref:r,ownerState:u,...i})});function Nle(e){return _t("MuiCardActions",e)}St("MuiCardActions",["root","spacing"]);const Ble=e=>{const{classes:t,disableSpacing:r}=e;return yt({root:["root",!r&&"spacing"]},Nle,t)},zle=ve("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),tU=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiCardActions"}),{disableSpacing:a=!1,className:o,...i}=n,u={...n,disableSpacing:a},d=Ble(u);return I.jsx(zle,{className:Ae(d.root,o),ownerState:u,ref:r,...i})});function qle(e){return _t("MuiCardContent",e)}St("MuiCardContent",["root"]);const Ule=e=>{const{classes:t}=e;return yt({root:["root"]},qle,t)},Vle=ve("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Di=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiCardContent"}),{className:a,component:o="div",...i}=n,u={...n,component:o},d=Ule(u);return I.jsx(Vle,{as:o,className:Ae(d.root,a),ownerState:u,ref:r,...i})});function Wle(e){return _t("MuiCardHeader",e)}const nw=St("MuiCardHeader",["root","avatar","action","content","title","subheader"]),Hle=e=>{const{classes:t}=e;return yt({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Wle,t)},Kle=ve("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${nw.title}`]:t.title},{[`& .${nw.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),Gle=ve("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),Qle=ve("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Xle=ve("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[`.${ew.root}:where(& .${nw.title})`]:{display:"block"},[`.${ew.root}:where(& .${nw.subheader})`]:{display:"block"}}),Cf=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiCardHeader"}),{action:a,avatar:o,component:i="div",disableTypography:u=!1,subheader:d,subheaderTypographyProps:l,title:h,titleTypographyProps:v,slots:y={},slotProps:b={},..._}=n,w={...n,component:i,disableTypography:u},S=Hle(w),A={slots:y,slotProps:{title:v,subheader:l,...b}};let R=h;const[C,O]=mt("title",{className:S.title,elementType:Qt,externalForwardedProps:A,ownerState:w,additionalProps:{variant:o?"body2":"h5",component:"span"}});R!=null&&R.type!==Qt&&!u&&(R=I.jsx(C,{...O,children:R}));let T=d;const[E,L]=mt("subheader",{className:S.subheader,elementType:Qt,externalForwardedProps:A,ownerState:w,additionalProps:{variant:o?"body2":"body1",color:"textSecondary",component:"span"}});T!=null&&T.type!==Qt&&!u&&(T=I.jsx(E,{...L,children:T}));const[j,M]=mt("root",{ref:r,className:S.root,elementType:Kle,externalForwardedProps:{...A,..._,component:i},ownerState:w}),[k,$]=mt("avatar",{className:S.avatar,elementType:Gle,externalForwardedProps:A,ownerState:w}),[B,z]=mt("content",{className:S.content,elementType:Xle,externalForwardedProps:A,ownerState:w}),[U,W]=mt("action",{className:S.action,elementType:Qle,externalForwardedProps:A,ownerState:w});return I.jsxs(j,{...M,children:[o&&I.jsx(k,{...$,children:o}),I.jsxs(B,{...z,children:[R,T]}),a&&I.jsx(U,{...W,children:a})]})});function Yle(e){return _t("PrivateSwitchBase",e)}St("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Jle=e=>{const{classes:t,checked:r,disabled:n,edge:a}=e,o={root:["root",r&&"checked",n&&"disabled",a&&`edge${Ue(a)}`],input:["input"]};return yt(o,Yle,t)},Zle=ve(Du)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),eue=ve("input",{shouldForwardProp:Oa})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),rU=p.forwardRef(function(t,r){const{autoFocus:n,checked:a,checkedIcon:o,defaultChecked:i,disabled:u,disableFocusRipple:d=!1,edge:l=!1,icon:h,id:v,inputProps:y,inputRef:b,name:_,onBlur:w,onChange:S,onFocus:A,readOnly:R,required:C=!1,tabIndex:O,type:T,value:E,slots:L={},slotProps:j={},...M}=t,[k,$]=db({controlled:a,default:!!i,name:"SwitchBase",state:"checked"}),B=As(),z=ue=>{A&&A(ue),B&&B.onFocus&&B.onFocus(ue)},U=ue=>{w&&w(ue),B&&B.onBlur&&B.onBlur(ue)},W=ue=>{if(ue.nativeEvent.defaultPrevented)return;const be=ue.target.checked;$(be),S&&S(ue,be)};let Q=u;B&&typeof Q>"u"&&(Q=B.disabled);const V=T==="checkbox"||T==="radio",K={...t,checked:k,disabled:Q,disableFocusRipple:d,edge:l},X=Jle(K),te={slots:L,slotProps:{input:y,...j}},[G,J]=mt("root",{ref:r,elementType:Zle,className:X.root,shouldForwardComponentProp:!0,externalForwardedProps:{...te,component:"span",...M},getSlotProps:ue=>({...ue,onFocus:be=>{var Pe;(Pe=ue.onFocus)==null||Pe.call(ue,be),z(be)},onBlur:be=>{var Pe;(Pe=ue.onBlur)==null||Pe.call(ue,be),U(be)}}),ownerState:K,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:Q,role:void 0,tabIndex:null}}),[de,ce]=mt("input",{ref:b,elementType:eue,className:X.input,externalForwardedProps:te,getSlotProps:ue=>({...ue,onChange:be=>{var Pe;(Pe=ue.onChange)==null||Pe.call(ue,be),W(be)}}),ownerState:K,additionalProps:{autoFocus:n,checked:a,defaultChecked:i,disabled:Q,id:V?v:void 0,name:_,readOnly:R,required:C,tabIndex:O,type:T,...T==="checkbox"&&E===void 0?{}:{value:E}}});return I.jsxs(G,{...J,children:[I.jsx(de,{...ce}),k?o:h]})}),tue=ot(I.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),rue=ot(I.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),nue=ot(I.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function aue(e){return _t("MuiCheckbox",e)}const S2=St("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),oue=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${Ue(n)}`,`size${Ue(a)}`]},i=yt(o,aue,t);return{...t,...i}},iue=ve(rU,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Ue(r.size)}`],r.color!=="default"&&t[`color${Ue(r.color)}`]]}})(gt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{[`&.${S2.checked}, &.${S2.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${S2.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),sue=I.jsx(rue,{}),lue=I.jsx(tue,{}),uue=I.jsx(nue,{}),ev=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=sue,color:o="primary",icon:i=lue,indeterminate:u=!1,indeterminateIcon:d=uue,inputProps:l,size:h="medium",disableRipple:v=!1,className:y,slots:b={},slotProps:_={},...w}=n,S=u?d:i,A=u?d:a,R={...n,disableRipple:v,color:o,indeterminate:u,size:h},C=oue(R),O=_.input??l,[T,E]=mt("root",{ref:r,elementType:iue,className:Ae(C.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:_,...w},ownerState:R,additionalProps:{type:"checkbox",icon:p.cloneElement(S,{fontSize:S.props.fontSize??h}),checkedIcon:p.cloneElement(A,{fontSize:A.props.fontSize??h}),disableRipple:v,slots:b,slotProps:{input:BI(typeof O=="function"?O(R):O,{"data-indeterminate":u})}}});return I.jsx(T,{...E,classes:C})});function l4(e){return e.substring(2).toLowerCase()}function cue(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function due(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:a,touchEvent:o="onTouchEnd"}=e,i=p.useRef(!1),u=p.useRef(null),d=p.useRef(!1),l=p.useRef(!1);p.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const h=En(Cd(t),u),v=uo(_=>{const w=l.current;l.current=!1;const S=Sa(u.current);if(!d.current||!u.current||"clientX"in _&&cue(_,S))return;if(i.current){i.current=!1;return}let A;_.composedPath?A=_.composedPath().includes(u.current):A=!S.documentElement.contains(_.target)||u.current.contains(_.target),!A&&(r||!w)&&a(_)}),y=_=>w=>{l.current=!0;const S=t.props[_];S&&S(w)},b={ref:h};return o!==!1&&(b[o]=y(o)),p.useEffect(()=>{if(o!==!1){const _=l4(o),w=Sa(u.current),S=()=>{i.current=!0};return w.addEventListener(_,v),w.addEventListener("touchmove",S),()=>{w.removeEventListener(_,v),w.removeEventListener("touchmove",S)}}},[v,o]),n!==!1&&(b[n]=y(n)),p.useEffect(()=>{if(n!==!1){const _=l4(n),w=Sa(u.current);return w.addEventListener(_,v),()=>{w.removeEventListener(_,v)}}},[v,n]),p.cloneElement(t,b)}const Hh=toe({createStyledComponent:ve("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Ue(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>wt({props:e,name:"MuiContainer"})}),Vk=typeof NI({})=="function",fue=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),pue=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),nU=(e,t=!1)=>{var o,i;const r={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([u,d])=>{var h,v;const l=e.getColorSchemeSelector(u);l.startsWith("@")?r[l]={":root":{colorScheme:(h=d.palette)==null?void 0:h.mode}}:r[l.replace(/\s*&/,"")]={colorScheme:(v=d.palette)==null?void 0:v.mode}});let n={html:fue(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...pue(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const a=(i=(o=e.components)==null?void 0:o.MuiCssBaseline)==null?void 0:i.styleOverrides;return a&&(n=[n,a]),n},w1="mui-ecs",hue=e=>{const t=nU(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${w1})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,a])=>{var i,u;const o=e.getColorSchemeSelector(n);o.startsWith("@")?r[o]={[`:root:not(:has(.${w1}))`]:{colorScheme:(i=a.palette)==null?void 0:i.mode}}:r[o.replace(/\s*&/,"")]={[`&:not(:has(.${w1}))`]:{colorScheme:(u=a.palette)==null?void 0:u.mode}}}),t},mue=NI(Vk?({theme:e,enableColorScheme:t})=>nU(e,t):({theme:e})=>hue(e));function vue(e){const t=wt({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return I.jsxs(p.Fragment,{children:[Vk&&I.jsx(mue,{enableColorScheme:n}),!Vk&&!n&&I.jsx("span",{className:w1,style:{display:"none"}}),r]})}function aU(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function gue(e){const t=Sa(e);return t.body===e?di(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Py(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function u4(e){return parseInt(di(e).getComputedStyle(e).paddingRight,10)||0}function yue(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function c4(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,i=>{const u=!o.includes(i),d=!yue(i);u&&d&&Py(i,a)})}function C2(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function bue(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(gue(n)){const i=aU(di(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${u4(n)+i}px`;const u=Sa(n).querySelectorAll(".mui-fixed");[].forEach.call(u,d=>{r.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${u4(d)+i}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Sa(n).body;else{const i=n.parentElement,u=di(n);o=(i==null?void 0:i.nodeName)==="HTML"&&u.getComputedStyle(i).overflowY==="scroll"?i:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:i,property:u})=>{o?i.style.setProperty(u,o):i.style.removeProperty(u)})}}function _ue(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class wue{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Py(t.modalRef,!1);const a=_ue(r);c4(r,t.mount,t.modalRef,a,!0);const o=C2(this.containers,i=>i.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=C2(this.containers,o=>o.modals.includes(t)),a=this.containers[n];a.restore||(a.restore=bue(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=C2(this.containers,i=>i.modals.includes(t)),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Py(t.modalRef,r),c4(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const i=o.modals[o.modals.length-1];i.modalRef&&Py(i.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const xue=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Sue(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Cue(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Eue(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Cue(e))}function Oue(e){const t=[],r=[];return Array.from(e.querySelectorAll(xue)).forEach((n,a)=>{const o=Sue(n);o===-1||!Eue(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function Pue(){return!0}function Rue(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=Oue,isEnabled:i=Pue,open:u}=e,d=p.useRef(!1),l=p.useRef(null),h=p.useRef(null),v=p.useRef(null),y=p.useRef(null),b=p.useRef(!1),_=p.useRef(null),w=En(Cd(t),_),S=p.useRef(null);p.useEffect(()=>{!u||!_.current||(b.current=!r)},[r,u]),p.useEffect(()=>{if(!u||!_.current)return;const C=Sa(_.current);return _.current.contains(C.activeElement)||(_.current.hasAttribute("tabIndex")||_.current.setAttribute("tabIndex","-1"),b.current&&_.current.focus()),()=>{a||(v.current&&v.current.focus&&(d.current=!0,v.current.focus()),v.current=null)}},[u]),p.useEffect(()=>{if(!u||!_.current)return;const C=Sa(_.current),O=L=>{S.current=L,!(n||!i()||L.key!=="Tab")&&C.activeElement===_.current&&L.shiftKey&&(d.current=!0,h.current&&h.current.focus())},T=()=>{var M,k;const L=_.current;if(L===null)return;if(!C.hasFocus()||!i()||d.current){d.current=!1;return}if(L.contains(C.activeElement)||n&&C.activeElement!==l.current&&C.activeElement!==h.current)return;if(C.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!b.current)return;let j=[];if((C.activeElement===l.current||C.activeElement===h.current)&&(j=o(_.current)),j.length>0){const $=!!((M=S.current)!=null&&M.shiftKey&&((k=S.current)==null?void 0:k.key)==="Tab"),B=j[0],z=j[j.length-1];typeof B!="string"&&typeof z!="string"&&($?z.focus():B.focus())}else L.focus()};C.addEventListener("focusin",T),C.addEventListener("keydown",O,!0);const E=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(E),C.removeEventListener("focusin",T),C.removeEventListener("keydown",O,!0)}},[r,n,a,i,u,o]);const A=C=>{v.current===null&&(v.current=C.relatedTarget),b.current=!0,y.current=C.target;const O=t.props.onFocus;O&&O(C)},R=C=>{v.current===null&&(v.current=C.relatedTarget),b.current=!0};return I.jsxs(p.Fragment,{children:[I.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:l,"data-testid":"sentinelStart"}),p.cloneElement(t,{ref:w,onFocus:A}),I.jsx("div",{tabIndex:u?0:-1,onFocus:R,ref:h,"data-testid":"sentinelEnd"})]})}function kue(e){return typeof e=="function"?e():e}function Tue(e){return e?e.props.hasOwnProperty("in"):!1}const d4=()=>{},G_=new wue;function Aue(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:i,children:u,onClose:d,open:l,rootRef:h}=e,v=p.useRef({}),y=p.useRef(null),b=p.useRef(null),_=En(b,h),[w,S]=p.useState(!l),A=Tue(u);let R=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(R=!1);const C=()=>Sa(y.current),O=()=>(v.current.modalRef=b.current,v.current.mount=y.current,v.current),T=()=>{G_.mount(O(),{disableScrollLock:n}),b.current&&(b.current.scrollTop=0)},E=uo(()=>{const W=kue(t)||C().body;G_.add(O(),W),b.current&&T()}),L=()=>G_.isTopModal(O()),j=uo(W=>{y.current=W,W&&(l&&L()?T():b.current&&Py(b.current,R))}),M=p.useCallback(()=>{G_.remove(O(),R)},[R]);p.useEffect(()=>()=>{M()},[M]),p.useEffect(()=>{l?E():(!A||!a)&&M()},[l,M,A,a,E]);const k=W=>Q=>{var V;(V=W.onKeyDown)==null||V.call(W,Q),!(Q.key!=="Escape"||Q.which===229||!L())&&(r||(Q.stopPropagation(),d&&d(Q,"escapeKeyDown")))},$=W=>Q=>{var V;(V=W.onClick)==null||V.call(W,Q),Q.target===Q.currentTarget&&d&&d(Q,"backdropClick")};return{getRootProps:(W={})=>{const Q=J1(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const V={...Q,...W};return{role:"presentation",...V,onKeyDown:k(V),ref:_}},getBackdropProps:(W={})=>{const Q=W;return{"aria-hidden":!0,...Q,onClick:$(Q),open:l}},getTransitionProps:()=>{const W=()=>{S(!1),o&&o()},Q=()=>{S(!0),i&&i(),a&&M()};return{onEnter:D3(W,(u==null?void 0:u.props.onEnter)??d4),onExited:D3(Q,(u==null?void 0:u.props.onExited)??d4)}},rootRef:_,portalRef:j,isTopModal:L,exited:w,hasTransition:A}}function Iue(e){return _t("MuiModal",e)}St("MuiModal",["root","hidden","backdrop"]);const jue=e=>{const{open:t,exited:r,classes:n}=e;return yt({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Iue,n)},Mue=ve("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(gt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Fue=ve(Zq,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),YI=p.forwardRef(function(t,r){const n=wt({name:"MuiModal",props:t}),{BackdropComponent:a=Fue,BackdropProps:o,classes:i,className:u,closeAfterTransition:d=!1,children:l,container:h,component:v,components:y={},componentsProps:b={},disableAutoFocus:_=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:S=!1,disablePortal:A=!1,disableRestoreFocus:R=!1,disableScrollLock:C=!1,hideBackdrop:O=!1,keepMounted:T=!1,onClose:E,onTransitionEnter:L,onTransitionExited:j,open:M,slotProps:k={},slots:$={},theme:B,...z}=n,U={...n,closeAfterTransition:d,disableAutoFocus:_,disableEnforceFocus:w,disableEscapeKeyDown:S,disablePortal:A,disableRestoreFocus:R,disableScrollLock:C,hideBackdrop:O,keepMounted:T},{getRootProps:W,getBackdropProps:Q,getTransitionProps:V,portalRef:K,isTopModal:X,exited:te,hasTransition:G}=Aue({...U,rootRef:r}),J={...U,exited:te},de=jue(J),ce={};if(l.props.tabIndex===void 0&&(ce.tabIndex="-1"),G){const{onEnter:xe,onExited:Oe}=V();ce.onEnter=xe,ce.onExited=Oe}const ue={slots:{root:y.Root,backdrop:y.Backdrop,...$},slotProps:{...b,...k}},[be,Pe]=mt("root",{ref:r,elementType:Mue,externalForwardedProps:{...ue,...z,component:v},getSlotProps:W,ownerState:J,className:Ae(u,de==null?void 0:de.root,!J.open&&J.exited&&(de==null?void 0:de.hidden))}),[Ee,ge]=mt("backdrop",{ref:o==null?void 0:o.ref,elementType:a,externalForwardedProps:ue,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:xe=>Q({...xe,onClick:Oe=>{xe!=null&&xe.onClick&&xe.onClick(Oe)}}),className:Ae(o==null?void 0:o.className,de==null?void 0:de.backdrop),ownerState:J});return!T&&!M&&(!G||te)?null:I.jsx(Xq,{ref:K,container:h,disablePortal:A,children:I.jsxs(be,{...Pe,children:[!O&&a?I.jsx(Ee,{...ge}):null,I.jsx(Rue,{disableEnforceFocus:w,disableAutoFocus:_,disableRestoreFocus:R,isEnabled:X,open:M,children:p.cloneElement(l,ce)})]})})});function Lue(e){return _t("MuiDialog",e)}const E2=St("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),oU=p.createContext({}),$ue=ve(Zq,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Due=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:a,fullScreen:o}=e,i={root:["root"],container:["container",`scroll${Ue(r)}`],paper:["paper",`paperScroll${Ue(r)}`,`paperWidth${Ue(String(n))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return yt(i,Lue,t)},Nue=ve(YI,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Bue=ve("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Ue(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),zue=ve(wd,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Ue(r.scroll)}`],t[`paperWidth${Ue(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(gt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${E2.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${E2.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${E2.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),n0=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiDialog"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":u,"aria-modal":d=!0,BackdropComponent:l,BackdropProps:h,children:v,className:y,disableEscapeKeyDown:b=!1,fullScreen:_=!1,fullWidth:w=!1,maxWidth:S="sm",onClick:A,onClose:R,open:C,PaperComponent:O=wd,PaperProps:T={},scroll:E="paper",slots:L={},slotProps:j={},TransitionComponent:M=Uk,transitionDuration:k=o,TransitionProps:$,...B}=n,z={...n,disableEscapeKeyDown:b,fullScreen:_,fullWidth:w,maxWidth:S,scroll:E},U=Due(z),W=p.useRef(),Q=Me=>{W.current=Me.target===Me.currentTarget},V=Me=>{A&&A(Me),W.current&&(W.current=null,R&&R(Me,"backdropClick"))},K=cd(u),X=p.useMemo(()=>({titleId:K}),[K]),te={transition:M,...L},G={transition:$,paper:T,backdrop:h,...j},J={slots:te,slotProps:G},[de,ce]=mt("root",{elementType:Nue,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:z,className:Ae(U.root,y),ref:r}),[ue,be]=mt("backdrop",{elementType:$ue,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:z}),[Pe,Ee]=mt("paper",{elementType:zue,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:z,className:Ae(U.paper,T.className)}),[ge,xe]=mt("container",{elementType:Bue,externalForwardedProps:J,ownerState:z,className:U.container}),[Oe,Te]=mt("transition",{elementType:Uk,externalForwardedProps:J,ownerState:z,additionalProps:{appear:!0,in:C,timeout:k,role:"presentation"}});return I.jsx(de,{closeAfterTransition:!0,slots:{backdrop:ue},slotProps:{backdrop:{transitionDuration:k,as:l,...be}},disableEscapeKeyDown:b,onClose:R,open:C,onClick:V,...ce,...B,children:I.jsx(Oe,{...Te,children:I.jsx(ge,{onMouseDown:Q,...xe,children:I.jsx(Pe,{as:O,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":K,"aria-modal":d,...Ee,children:I.jsx(oU.Provider,{value:X,children:v})})})})})});function que(e){return _t("MuiDialogActions",e)}St("MuiDialogActions",["root","spacing"]);const Uue=e=>{const{classes:t,disableSpacing:r}=e;return yt({root:["root",!r&&"spacing"]},que,t)},Vue=ve("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),JI=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1,...i}=n,u={...n,disableSpacing:o},d=Uue(u);return I.jsx(Vue,{className:Ae(d.root,a),ownerState:u,ref:r,...i})});function Wue(e){return _t("MuiDialogContent",e)}St("MuiDialogContent",["root","dividers"]);function Hue(e){return _t("MuiDialogTitle",e)}const Kue=St("MuiDialogTitle",["root"]),Gue=e=>{const{classes:t,dividers:r}=e;return yt({root:["root",r&&"dividers"]},Wue,t)},Que=ve("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(gt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${Kue.root} + &`]:{paddingTop:0}}}]}))),a0=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1,...i}=n,u={...n,dividers:o},d=Gue(u);return I.jsx(Que,{className:Ae(d.root,a),ownerState:u,ref:r,...i})});function Xue(e){return _t("MuiDialogContentText",e)}St("MuiDialogContentText",["root"]);const Yue=e=>{const{classes:t}=e,n=yt({root:["root"]},Xue,t);return{...t,...n}},Jue=ve(Qt,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),rS=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiDialogContentText"}),{children:a,className:o,...i}=n,u=Yue(i);return I.jsx(Jue,{component:"p",variant:"body1",color:"textSecondary",ref:r,ownerState:i,className:Ae(u.root,o),...n,classes:u})}),Zue=e=>{const{classes:t}=e;return yt({root:["root"]},Hue,t)},ece=ve(Qt,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),o0=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiDialogTitle"}),{className:a,id:o,...i}=n,u=n,d=Zue(u),{titleId:l=o}=p.useContext(oU);return I.jsx(ece,{component:"h2",className:Ae(d.root,a),ownerState:u,ref:r,variant:"h6",id:o??l,...i})});function tce(e){return _t("MuiDivider",e)}const f4=St("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),rce=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:i,textAlign:u,variant:d}=e;return yt({root:["root",t&&"absolute",d,o&&"light",i==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&i==="vertical"&&"withChildrenVertical",u==="right"&&i!=="vertical"&&"textAlignRight",u==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},tce,n)},nce=ve("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(gt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:dr(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),ace=ve("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(gt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),tv=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:i,orientation:u="horizontal",component:d=o||u==="vertical"?"div":"hr",flexItem:l=!1,light:h=!1,role:v=d!=="hr"?"separator":void 0,textAlign:y="center",variant:b="fullWidth",..._}=n,w={...n,absolute:a,component:d,flexItem:l,light:h,orientation:u,role:v,textAlign:y,variant:b},S=rce(w);return I.jsx(nce,{as:d,className:Ae(S.root,i),role:v,ref:r,ownerState:w,"aria-orientation":v==="separator"&&(d!=="hr"||u==="vertical")?u:void 0,..._,children:o?I.jsx(ace,{className:S.wrapper,ownerState:w,children:o}):null})});tv&&(tv.muiSkipListHighlight=!0);function oce(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),o=di(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const l=o.getComputedStyle(t);i=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("transform")}let u=0,d=0;if(i&&i!=="none"&&typeof i=="string"){const l=i.split("(")[1].split(")")[0].split(",");u=parseInt(l[4],10),d=parseInt(l[5],10)}return e==="left"?a?`translateX(${a.right+u-n.left}px)`:`translateX(${o.innerWidth+u-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-u}px)`:`translateX(-${n.left+n.width-u}px)`:e==="up"?a?`translateY(${a.bottom+d-n.top}px)`:`translateY(${o.innerHeight+d-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-d}px)`:`translateY(-${n.top+n.height-d}px)`}function ice(e){return typeof e=="function"?e():e}function Q_(e,t,r){const n=ice(r),a=oce(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const iU=p.forwardRef(function(t,r){const n=fo(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:u=!0,children:d,container:l,direction:h="down",easing:v=a,in:y,onEnter:b,onEntered:_,onEntering:w,onExit:S,onExited:A,onExiting:R,style:C,timeout:O=o,TransitionComponent:T=Ts,...E}=t,L=p.useRef(null),j=En(Cd(d),L,r),M=K=>X=>{K&&(X===void 0?K(L.current):K(L.current,X))},k=M((K,X)=>{Q_(h,K,l),UI(K),b&&b(K,X)}),$=M((K,X)=>{const te=Hm({timeout:O,style:C,easing:v},{mode:"enter"});K.style.webkitTransition=n.transitions.create("-webkit-transform",{...te}),K.style.transition=n.transitions.create("transform",{...te}),K.style.webkitTransform="none",K.style.transform="none",w&&w(K,X)}),B=M(_),z=M(R),U=M(K=>{const X=Hm({timeout:O,style:C,easing:v},{mode:"exit"});K.style.webkitTransition=n.transitions.create("-webkit-transform",X),K.style.transition=n.transitions.create("transform",X),Q_(h,K,l),S&&S(K)}),W=M(K=>{K.style.webkitTransition="",K.style.transition="",A&&A(K)}),Q=K=>{i&&i(L.current,K)},V=p.useCallback(()=>{L.current&&Q_(h,L.current,l)},[h,l]);return p.useEffect(()=>{if(y||h==="down"||h==="right")return;const K=e0(()=>{L.current&&Q_(h,L.current,l)}),X=di(L.current);return X.addEventListener("resize",K),()=>{K.clear(),X.removeEventListener("resize",K)}},[h,y,l]),p.useEffect(()=>{y||V()},[y,V]),I.jsx(T,{nodeRef:L,onEnter:k,onEntered:B,onEntering:$,onExit:U,onExited:W,onExiting:z,addEndListener:Q,appear:u,in:y,timeout:O,...E,children:(K,{ownerState:X,...te})=>p.cloneElement(d,{ref:j,style:{visibility:K==="exited"&&!y?"hidden":void 0,...C,...d.props.style},...te})})});function sce(e){return _t("MuiDrawer",e)}St("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const sU=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},lce=e=>{const{classes:t,anchor:r,variant:n}=e,a={root:["root",`anchor${Ue(r)}`],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Ue(r)}`,n!=="temporary"&&`paperAnchorDocked${Ue(r)}`]};return yt(a,sce,t)},uce=ve(YI,{name:"MuiDrawer",slot:"Root",overridesResolver:sU})(gt(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),cce=ve("div",{shouldForwardProp:Oa,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:sU})({flex:"0 0 auto"}),dce=ve(wd,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Ue(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${Ue(r.anchor)}`]]}})(gt(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),lU={left:"right",right:"left",top:"down",bottom:"up"};function fce(e){return["left","right"].includes(e)}function pce({direction:e},t){return e==="rtl"&&fce(t)?lU[t]:t}const hce=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiDrawer"}),a=fo(),o=$u(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:u="left",BackdropProps:d,children:l,className:h,elevation:v=16,hideBackdrop:y=!1,ModalProps:{BackdropProps:b,..._}={},onClose:w,open:S=!1,PaperProps:A={},SlideProps:R,TransitionComponent:C,transitionDuration:O=i,variant:T="temporary",slots:E={},slotProps:L={},...j}=n,M=p.useRef(!1);p.useEffect(()=>{M.current=!0},[]);const k=pce({direction:o?"rtl":"ltr"},u),B={...n,anchor:u,elevation:v,open:S,variant:T,...j},z=lce(B),U={slots:{transition:C,...E},slotProps:{paper:A,transition:R,...L,backdrop:BI(L.backdrop||{...d,...b},{transitionDuration:O})}},[W,Q]=mt("root",{ref:r,elementType:uce,className:Ae(z.root,z.modal,h),shouldForwardComponentProp:!0,ownerState:B,externalForwardedProps:{...U,...j,..._},additionalProps:{open:S,onClose:w,hideBackdrop:y,slots:{backdrop:U.slots.backdrop},slotProps:{backdrop:U.slotProps.backdrop}}}),[V,K]=mt("paper",{elementType:dce,shouldForwardComponentProp:!0,className:Ae(z.paper,A.className),ownerState:B,externalForwardedProps:U,additionalProps:{elevation:T==="temporary"?v:0,square:!0}}),[X,te]=mt("docked",{elementType:cce,ref:r,className:Ae(z.root,z.docked,h),ownerState:B,externalForwardedProps:U,additionalProps:j}),[G,J]=mt("transition",{elementType:iU,ownerState:B,externalForwardedProps:U,additionalProps:{in:S,direction:lU[k],timeout:O,appear:M.current}}),de=I.jsx(V,{...K,children:l});if(T==="permanent")return I.jsx(X,{...te,children:de});const ce=I.jsx(G,{...J,children:de});return T==="persistent"?I.jsx(X,{...te,children:ce}):I.jsx(W,{...Q,children:ce})});function mce(e){return _t("MuiFab",e)}const p4=St("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),vce=e=>{const{color:t,variant:r,classes:n,size:a}=e,o={root:["root",r,`size${Ue(a)}`,t==="inherit"?"colorInherit":t]},i=yt(o,mce,n);return{...n,...i}},gce=ve(Du,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>Oa(e)||e==="classes",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ue(r.size)}`],r.color==="inherit"&&t.colorInherit,t[Ue(r.size)],t[r.color]]}})(gt(({theme:e})=>{var t,r;return{...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:(r=(t=e.palette).getContrastText)==null?void 0:r.call(t,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${p4.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),gt(({theme:e})=>({variants:[...Object.entries(e.palette).filter(yn(["dark","contrastText"])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),gt(({theme:e})=>({[`&.${p4.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),yce=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiFab"}),{children:a,className:o,color:i="default",component:u="button",disabled:d=!1,disableFocusRipple:l=!1,focusVisibleClassName:h,size:v="large",variant:y="circular",...b}=n,_={...n,color:i,component:u,disabled:d,disableFocusRipple:l,size:v,variant:y},w=vce(_);return I.jsx(gce,{className:Ae(w.root,o),component:u,disabled:d,focusRipple:!l,focusVisibleClassName:Ae(w.focusVisible,h),ownerState:_,ref:r,...b,classes:w,children:a})}),bce=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:a,size:o,hiddenLabel:i,multiline:u}=e,d={root:["root",!r&&"underline",n&&"adornedStart",a&&"adornedEnd",o==="small"&&`size${Ue(o)}`,i&&"hiddenLabel",u&&"multiline"],input:["input"]},l=yt(d,hle,t);return{...t,...l}},_ce=ve(Zx,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Yx(e,t),!r.disableUnderline&&t.underline]}})(gt(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${xf.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${xf.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xf.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xf.disabled}, .${xf.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xf.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(yn()).map(([i])=>{var u;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(u=(e.vars||e).palette[i])==null?void 0:u.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:u})=>i.multiline&&u==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),wce=ve(eS,{name:"MuiFilledInput",slot:"Input",overridesResolver:Jx})(gt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ZI=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:o={},componentsProps:i,fullWidth:u=!1,hiddenLabel:d,inputComponent:l="input",multiline:h=!1,slotProps:v,slots:y={},type:b="text",..._}=n,w={...n,disableUnderline:a,fullWidth:u,inputComponent:l,multiline:h,type:b},S=bce(n),A={root:{ownerState:w},input:{ownerState:w}},R=v??i?Ln(A,v??i):A,C=y.root??o.Root??_ce,O=y.input??o.Input??wce;return I.jsx(tS,{slots:{root:C,input:O},slotProps:R,fullWidth:u,inputComponent:l,multiline:h,ref:r,type:b,..._,classes:S})});ZI.muiName="Input";function xce(e){return _t("MuiFormControl",e)}St("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Sce=e=>{const{classes:t,margin:r,fullWidth:n}=e,a={root:["root",r!=="none"&&`margin${Ue(r)}`,n&&"fullWidth"]};return yt(a,xce,t)},Cce=ve("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${Ue(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),uU=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiFormControl"}),{children:a,className:o,color:i="primary",component:u="div",disabled:d=!1,error:l=!1,focused:h,fullWidth:v=!1,hiddenLabel:y=!1,margin:b="none",required:_=!1,size:w="medium",variant:S="outlined",...A}=n,R={...n,color:i,component:u,disabled:d,error:l,fullWidth:v,hiddenLabel:y,margin:b,required:_,size:w,variant:S},C=Sce(R),[O,T]=p.useState(()=>{let W=!1;return a&&p.Children.forEach(a,Q=>{if(!w2(Q,["Input","Select"]))return;const V=w2(Q,["Select"])?Q.props.input:Q;V&&ule(V.props)&&(W=!0)}),W}),[E,L]=p.useState(()=>{let W=!1;return a&&p.Children.forEach(a,Q=>{w2(Q,["Input","Select"])&&(rw(Q.props,!0)||rw(Q.props.inputProps,!0))&&(W=!0)}),W}),[j,M]=p.useState(!1);d&&j&&M(!1);const k=h!==void 0&&!d?h:j;let $;p.useRef(!1);const B=p.useCallback(()=>{L(!0)},[]),z=p.useCallback(()=>{L(!1)},[]),U=p.useMemo(()=>({adornedStart:O,setAdornedStart:T,color:i,disabled:d,error:l,filled:E,focused:k,fullWidth:v,hiddenLabel:y,size:w,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:z,onFilled:B,registerEffect:$,required:_,variant:S}),[O,i,d,l,E,k,v,y,$,z,B,_,w,S]);return I.jsx(Xx.Provider,{value:U,children:I.jsx(Cce,{as:u,ownerState:R,className:Ae(C.root,o),ref:r,...A,children:a})})});function Ece(e){return _t("MuiFormControlLabel",e)}const vy=St("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Oce=e=>{const{classes:t,disabled:r,labelPlacement:n,error:a,required:o}=e,i={root:["root",r&&"disabled",`labelPlacement${Ue(n)}`,a&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return yt(i,Ece,t)},Pce=ve("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${vy.label}`]:t.label},t.root,t[`labelPlacement${Ue(r.labelPlacement)}`]]}})(gt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${vy.disabled}`]:{cursor:"default"},[`& .${vy.label}`]:{[`&.${vy.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),Rce=ve("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(gt(({theme:e})=>({[`&.${vy.error}`]:{color:(e.vars||e).palette.error.main}}))),Wk=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiFormControlLabel"}),{checked:a,className:o,componentsProps:i={},control:u,disabled:d,disableTypography:l,inputRef:h,label:v,labelPlacement:y="end",name:b,onChange:_,required:w,slots:S={},slotProps:A={},value:R,...C}=n,O=As(),T=d??u.props.disabled??(O==null?void 0:O.disabled),E=w??u.props.required,L={disabled:T,required:E};["checked","name","onChange","value","inputRef"].forEach(W=>{typeof u.props[W]>"u"&&typeof n[W]<"u"&&(L[W]=n[W])});const j=Nu({props:n,muiFormControl:O,states:["error"]}),M={...n,disabled:T,labelPlacement:y,required:E,error:j.error},k=Oce(M),$={slots:S,slotProps:{...i,...A}},[B,z]=mt("typography",{elementType:Qt,externalForwardedProps:$,ownerState:M});let U=v;return U!=null&&U.type!==Qt&&!l&&(U=I.jsx(B,{component:"span",...z,className:Ae(k.label,z==null?void 0:z.className),children:U})),I.jsxs(Pce,{className:Ae(k.root,o),ownerState:M,ref:r,...C,children:[p.cloneElement(u,L),E?I.jsxs("div",{children:[U,I.jsxs(Rce,{ownerState:M,"aria-hidden":!0,className:k.asterisk,children:["","*"]})]}):U]})});function kce(e){return _t("MuiFormGroup",e)}St("MuiFormGroup",["root","row","error"]);const Tce=e=>{const{classes:t,row:r,error:n}=e;return yt({root:["root",r&&"row",n&&"error"]},kce,t)},Ace=ve("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Ice=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiFormGroup"}),{className:a,row:o=!1,...i}=n,u=As(),d=Nu({props:n,muiFormControl:u,states:["error"]}),l={...n,row:o,error:d.error},h=Tce(l);return I.jsx(Ace,{className:Ae(h.root,a),ownerState:l,ref:r,...i})});function jce(e){return _t("MuiFormHelperText",e)}const h4=St("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var m4;const Mce=e=>{const{classes:t,contained:r,size:n,disabled:a,error:o,filled:i,focused:u,required:d}=e,l={root:["root",a&&"disabled",o&&"error",n&&`size${Ue(n)}`,r&&"contained",u&&"focused",i&&"filled",d&&"required"]};return yt(l,jce,t)},Fce=ve("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Ue(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(gt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${h4.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${h4.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),ej=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:i="p",disabled:u,error:d,filled:l,focused:h,margin:v,required:y,variant:b,..._}=n,w=As(),S=Nu({props:n,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),A={...n,component:i,contained:S.variant==="filled"||S.variant==="outlined",variant:S.variant,size:S.size,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required};delete A.ownerState;const R=Mce(A);return I.jsx(Fce,{as:i,className:Ae(R.root,o),ref:r,..._,ownerState:A,children:a===" "?m4||(m4=I.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):a})});function Lce(e){return _t("MuiFormLabel",e)}const Ry=St("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),$ce=e=>{const{classes:t,color:r,focused:n,disabled:a,error:o,filled:i,required:u}=e,d={root:["root",`color${Ue(r)}`,a&&"disabled",o&&"error",i&&"filled",n&&"focused",u&&"required"],asterisk:["asterisk",o&&"error"]};return yt(d,Lce,t)},Dce=ve("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(gt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{[`&.${Ry.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ry.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ry.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Nce=ve("span",{name:"MuiFormLabel",slot:"Asterisk"})(gt(({theme:e})=>({[`&.${Ry.error}`]:{color:(e.vars||e).palette.error.main}}))),Bce=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiFormLabel"}),{children:a,className:o,color:i,component:u="label",disabled:d,error:l,filled:h,focused:v,required:y,...b}=n,_=As(),w=Nu({props:n,muiFormControl:_,states:["color","required","focused","disabled","error","filled"]}),S={...n,color:w.color||"primary",component:u,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required},A=$ce(S);return I.jsxs(Dce,{as:u,ownerState:S,className:Ae(A.root,o),ref:r,...b,children:[a,w.required&&I.jsxs(Nce,{ownerState:S,"aria-hidden":!0,className:A.asterisk,children:["","*"]})]})});function Hk(e){return`scale(${e}, ${e**2})`}const zce={entering:{opacity:1,transform:Hk(1)},entered:{opacity:1,transform:"none"}},O2=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),mb=p.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:i,in:u,onEnter:d,onEntered:l,onEntering:h,onExit:v,onExited:y,onExiting:b,style:_,timeout:w="auto",TransitionComponent:S=Ts,...A}=t,R=Nf(),C=p.useRef(),O=fo(),T=p.useRef(null),E=En(T,Cd(o),r),L=W=>Q=>{if(W){const V=T.current;Q===void 0?W(V):W(V,Q)}},j=L(h),M=L((W,Q)=>{UI(W);const{duration:V,delay:K,easing:X}=Hm({style:_,timeout:w,easing:i},{mode:"enter"});let te;w==="auto"?(te=O.transitions.getAutoHeightDuration(W.clientHeight),C.current=te):te=V,W.style.transition=[O.transitions.create("opacity",{duration:te,delay:K}),O.transitions.create("transform",{duration:O2?te:te*.666,delay:K,easing:X})].join(","),d&&d(W,Q)}),k=L(l),$=L(b),B=L(W=>{const{duration:Q,delay:V,easing:K}=Hm({style:_,timeout:w,easing:i},{mode:"exit"});let X;w==="auto"?(X=O.transitions.getAutoHeightDuration(W.clientHeight),C.current=X):X=Q,W.style.transition=[O.transitions.create("opacity",{duration:X,delay:V}),O.transitions.create("transform",{duration:O2?X:X*.666,delay:O2?V:V||X*.333,easing:K})].join(","),W.style.opacity=0,W.style.transform=Hk(.75),v&&v(W)}),z=L(y),U=W=>{w==="auto"&&R.start(C.current||0,W),n&&n(T.current,W)};return I.jsx(S,{appear:a,in:u,nodeRef:T,onEnter:M,onEntered:k,onEntering:j,onExit:B,onExited:z,onExiting:$,addEndListener:U,timeout:w==="auto"?null:w,...A,children:(W,{ownerState:Q,...V})=>p.cloneElement(o,{style:{opacity:0,transform:Hk(.75),visibility:W==="exited"&&!u?"hidden":void 0,...zce[W],..._,...o.props.style},ref:E,...V})})});mb&&(mb.muiSupportAuto=!0);const qce=e=>{const{classes:t,disableUnderline:r}=e,a=yt({root:["root",!r&&"underline"],input:["input"]},fle,t);return{...t,...a}},Uce=ve(Zx,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Yx(e,t),!r.disableUnderline&&t.underline]}})(gt(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Yg.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yg.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Yg.disabled}, .${Yg.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Yg.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(yn()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),Vce=ve(eS,{name:"MuiInput",slot:"Input",overridesResolver:Jx})({}),nS=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:o={},componentsProps:i,fullWidth:u=!1,inputComponent:d="input",multiline:l=!1,slotProps:h,slots:v={},type:y="text",...b}=n,_=qce(n),S={root:{ownerState:{disableUnderline:a}}},A=h??i?Ln(h??i,S):S,R=v.root??o.Root??Uce,C=v.input??o.Input??Vce;return I.jsx(tS,{slots:{root:R,input:C},slotProps:A,fullWidth:u,inputComponent:d,multiline:l,ref:r,type:y,...b,classes:_})});nS.muiName="Input";function Wce(e){return _t("MuiInputAdornment",e)}const v4=St("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var g4;const Hce=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Ue(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},Kce=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:a,size:o,variant:i}=e,u={root:["root",r&&"disablePointerEvents",a&&`position${Ue(a)}`,i,n&&"hiddenLabel",o&&`size${Ue(o)}`]};return yt(u,Wce,t)},Gce=ve("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Hce})(gt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${v4.positionStart}&:not(.${v4.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),um=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:i="div",disablePointerEvents:u=!1,disableTypography:d=!1,position:l,variant:h,...v}=n,y=As()||{};let b=h;h&&y.variant,y&&!b&&(b=y.variant);const _={...n,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:u,position:l,variant:b},w=Kce(_);return I.jsx(Xx.Provider,{value:null,children:I.jsx(Gce,{as:i,ownerState:_,className:Ae(w.root,o),ref:r,...v,children:typeof a=="string"&&!d?I.jsx(Qt,{color:"textSecondary",children:a}):I.jsxs(p.Fragment,{children:[l==="start"?g4||(g4=I.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,a]})})})});function Qce(e){return _t("MuiInputLabel",e)}St("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Xce=e=>{const{classes:t,formControl:r,size:n,shrink:a,disableAnimation:o,variant:i,required:u}=e,d={root:["root",r&&"formControl",!o&&"animated",a&&"shrink",n&&n!=="medium"&&`size${Ue(n)}`,i],asterisk:[u&&"asterisk"]},l=yt(d,Qce,t);return{...t,...l}},Yce=ve(Bce,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ry.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(gt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),cU=p.forwardRef(function(t,r){const n=wt({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:o,shrink:i,variant:u,className:d,...l}=n,h=As();let v=i;typeof v>"u"&&h&&(v=h.filled||h.focused||h.adornedStart);const y=Nu({props:n,muiFormControl:h,states:["size","variant","required","focused"]}),b={...n,disableAnimation:a,formControl:h,shrink:v,size:y.size,variant:y.variant,required:y.required,focused:y.focused},_=Xce(b);return I.jsx(Yce,{"data-shrink":v,ref:r,className:Ae(_.root,d),...l,ownerState:b,classes:_})});function Jce(e){return _t("MuiLinearProgress",e)}St("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Kk=4,Gk=bd`
0% {
left: -35%;
right: 100%;
}
60% {
left: 100%;
right: -90%;
}
100% {
left: 100%;
right: -90%;
}
`,Zce=typeof Gk!="string"?vv`
animation: ${Gk} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
`:null,Qk=bd`
0% {
left: -200%;
right: 100%;
}
60% {
left: 107%;
right: -8%;
}
100% {
left: 107%;
right: -8%;
}
`,ede=typeof Qk!="string"?vv`
animation: ${Qk} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
`:null,Xk=bd`
0% {
opacity: 1;
background-position: 0 -23px;
}
60% {
opacity: 0;
background-position: 0 -23px;
}
100% {
opacity: 1;
background-position: -200px -23px;
}
`,tde=typeof Xk!="string"?vv`
animation: ${Xk} 3s infinite linear;
`:null,rde=e=>{const{classes:t,variant:r,color:n}=e,a={root:["root",`color${Ue(n)}`,r],dashed:["dashed",`dashedColor${Ue(n)}`],bar1:["bar","bar1",`barColor${Ue(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${Ue(n)}`,r==="buffer"&&`color${Ue(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return yt(a,Jce,t)},tj=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?_d(e.palette[t].main,.62):gv(e.palette[t].main,.5),nde=ve("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Ue(r.color)}`],t[r.variant]]}})(gt(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{backgroundColor:tj(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),ade=ve("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${Ue(r.color)}`]]}})(gt(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(yn()).map(([t])=>{const r=tj(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),tde||{animation:`${Xk} 3s infinite linear`}),ode=ve("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t.bar1,t[`barColor${Ue(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(gt(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Kk}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Kk}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:Zce||{animation:`${Gk} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),ide=ve("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t.bar2,t[`barColor${Ue(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(gt(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:tj(e,t),transition:`transform .${Kk}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:ede||{animation:`${Qk} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),sde=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiLinearProgress"}),{className:a,color:o="primary",value:i,valueBuffer:u,variant:d="indeterminate",...l}=n,h={...n,color:o,variant:d},v=rde(h),y=$u(),b={},_={bar1:{},bar2:{}};if((d==="determinate"||d==="buffer")&&i!==void 0){b["aria-valuenow"]=Math.round(i),b["aria-valuemin"]=0,b["aria-valuemax"]=100;let w=i-100;y&&(w=-w),_.bar1.transform=`translateX(${w}%)`}if(d==="buffer"&&u!==void 0){let w=(u||0)-100;y&&(w=-w),_.bar2.transform=`translateX(${w}%)`}return I.jsxs(nde,{className:Ae(v.root,a),ownerState:h,role:"progressbar",...b,ref:r,...l,children:[d==="buffer"?I.jsx(ade,{className:v.dashed,ownerState:h}):null,I.jsx(ode,{className:v.bar1,ownerState:h,style:_.bar1}),d==="determinate"?null:I.jsx(ide,{className:v.bar2,ownerState:h,style:_.bar2})]})});function lde(e){return _t("MuiLink",e)}const ude=St("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),cde=({theme:e,ownerState:t})=>{const r=t.color,n=ed(e,`palette.${r}.main`,!1)||ed(e,`palette.${r}`,!1)||t.color,a=ed(e,`palette.${r}.mainChannel`)||ed(e,`palette.${r}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:dr(n,.4)},y4={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},dde=e=>{const{classes:t,component:r,focusVisible:n,underline:a}=e,o={root:["root",`underline${Ue(a)}`,r==="button"&&"button",n&&"focusVisible"]};return yt(o,lde,t)},fde=ve(Qt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ue(r.underline)}`],r.component==="button"&&t.button]}})(gt(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(yn()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:dr(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:dr(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:dr(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ude.focusVisible}`]:{outline:"auto"}}}]}))),pde=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiLink"}),a=fo(),{className:o,color:i="primary",component:u="a",onBlur:d,onFocus:l,TypographyClasses:h,underline:v="always",variant:y="inherit",sx:b,..._}=n,[w,S]=p.useState(!1),A=T=>{Km(T.target)||S(!1),d&&d(T)},R=T=>{Km(T.target)&&S(!0),l&&l(T)},C={...n,color:i,component:u,focusVisible:w,underline:v,variant:y},O=dde(C);return I.jsx(fde,{color:i,className:Ae(O.root,o),classes:h,component:u,onBlur:A,onFocus:R,ref:r,ownerState:C,variant:y,..._,sx:[...y4[i]===void 0?[{color:i}]:[],...Array.isArray(b)?b:[b]],style:{..._.style,...v==="always"&&i!=="inherit"&&!y4[i]&&{"--Link-underlineColor":cde({theme:a,ownerState:C})}}})}),vb=p.createContext({});function hde(e){return _t("MuiList",e)}St("MuiList",["root","padding","dense","subheader"]);const mde=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return yt({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},hde,t)},vde=ve("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),gde=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiList"}),{children:a,className:o,component:i="ul",dense:u=!1,disablePadding:d=!1,subheader:l,...h}=n,v=p.useMemo(()=>({dense:u}),[u]),y={...n,component:i,dense:u,disablePadding:d},b=mde(y);return I.jsx(vb.Provider,{value:v,children:I.jsxs(vde,{as:i,className:Ae(b.root,o),ref:r,ownerState:y,...h,children:[l,a]})})});function yde(e){return _t("MuiListItemIcon",e)}const b4=St("MuiListItemIcon",["root","alignItemsFlexStart"]),bde=e=>{const{alignItems:t,classes:r}=e;return yt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},yde,r)},_de=ve("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(gt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Bf=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiListItemIcon"}),{className:a,...o}=n,i=p.useContext(vb),u={...n,alignItems:i.alignItems},d=bde(u);return I.jsx(_de,{className:Ae(d.root,a),ownerState:u,ref:r,...o})});function wde(e){return _t("MuiListItemText",e)}const em=St("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),xde=e=>{const{classes:t,inset:r,primary:n,secondary:a,dense:o}=e;return yt({root:["root",r&&"inset",o&&"dense",n&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},wde,t)},Sde=ve("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${em.primary}`]:t.primary},{[`& .${em.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${ew.root}:where(& .${em.primary})`]:{display:"block"},[`.${ew.root}:where(& .${em.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),tm=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiListItemText"}),{children:a,className:o,disableTypography:i=!1,inset:u=!1,primary:d,primaryTypographyProps:l,secondary:h,secondaryTypographyProps:v,slots:y={},slotProps:b={},..._}=n,{dense:w}=p.useContext(vb);let S=d??a,A=h;const R={...n,disableTypography:i,inset:u,primary:!!S,secondary:!!A,dense:w},C=xde(R),O={slots:y,slotProps:{primary:l,secondary:v,...b}},[T,E]=mt("root",{className:Ae(C.root,o),elementType:Sde,externalForwardedProps:{...O,..._},ownerState:R,ref:r}),[L,j]=mt("primary",{className:C.primary,elementType:Qt,externalForwardedProps:O,ownerState:R}),[M,k]=mt("secondary",{className:C.secondary,elementType:Qt,externalForwardedProps:O,ownerState:R});return S!=null&&S.type!==Qt&&!i&&(S=I.jsx(L,{variant:w?"body2":"body1",component:j!=null&&j.variant?void 0:"span",...j,children:S})),A!=null&&A.type!==Qt&&!i&&(A=I.jsx(M,{variant:"body2",color:"textSecondary",...k,children:A})),I.jsxs(T,{...E,children:[S,A]})});function P2(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function _4(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function dU(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function Jg(e,t,r,n,a,o){let i=!1,u=a(e,t,t?r:!1);for(;u;){if(u===e.firstChild){if(i)return!1;i=!0}const d=n?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!dU(u,o)||d)u=a(e,u,r);else return u.focus(),!0}return!1}const fU=p.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:i,className:u,disabledItemsFocusable:d=!1,disableListWrap:l=!1,onKeyDown:h,variant:v="selectedMenu",...y}=t,b=p.useRef(null),_=p.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ci(()=>{a&&b.current.focus()},[a]),p.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(C,{direction:O})=>{const T=!b.current.style.width;if(C.clientHeight<b.current.clientHeight&&T){const E=`${aU(di(C))}px`;b.current.style[O==="rtl"?"paddingLeft":"paddingRight"]=E,b.current.style.width=`calc(100% + ${E})`}return b.current}}),[]);const w=C=>{const O=b.current,T=C.key;if(C.ctrlKey||C.metaKey||C.altKey){h&&h(C);return}const L=Sa(O).activeElement;if(T==="ArrowDown")C.preventDefault(),Jg(O,L,l,d,P2);else if(T==="ArrowUp")C.preventDefault(),Jg(O,L,l,d,_4);else if(T==="Home")C.preventDefault(),Jg(O,null,l,d,P2);else if(T==="End")C.preventDefault(),Jg(O,null,l,d,_4);else if(T.length===1){const j=_.current,M=T.toLowerCase(),k=performance.now();j.keys.length>0&&(k-j.lastTime>500?(j.keys=[],j.repeating=!0,j.previousKeyMatched=!0):j.repeating&&M!==j.keys[0]&&(j.repeating=!1)),j.lastTime=k,j.keys.push(M);const $=L&&!j.repeating&&dU(L,j);j.previousKeyMatched&&($||Jg(O,L,!1,d,P2,j))?C.preventDefault():j.previousKeyMatched=!1}h&&h(C)},S=En(b,r);let A=-1;p.Children.forEach(i,(C,O)=>{if(!p.isValidElement(C)){A===O&&(A+=1,A>=i.length&&(A=-1));return}C.props.disabled||(v==="selectedMenu"&&C.props.selected||A===-1)&&(A=O),A===O&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(A+=1,A>=i.length&&(A=-1))});const R=p.Children.map(i,(C,O)=>{if(O===A){const T={};return o&&(T.autoFocus=!0),C.props.tabIndex===void 0&&v==="selectedMenu"&&(T.tabIndex=0),p.cloneElement(C,T)}return C});return I.jsx(gde,{role:"menu",ref:S,className:u,onKeyDown:w,tabIndex:a?0:-1,...y,children:R})});function Cde(e){return _t("MuiPopover",e)}St("MuiPopover",["root","paper"]);function w4(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function x4(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function S4(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function X_(e){return typeof e=="function"?e():e}const Ede=e=>{const{classes:t}=e;return yt({root:["root"],paper:["paper"]},Cde,t)},Ode=ve(YI,{name:"MuiPopover",slot:"Root"})({}),pU=ve(wd,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),rj=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiPopover"}),{action:a,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:l,className:h,container:v,elevation:y=8,marginThreshold:b=16,open:_,PaperProps:w={},slots:S={},slotProps:A={},transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:C,transitionDuration:O="auto",TransitionProps:T={},disableScrollLock:E=!1,...L}=n,j=p.useRef(),M={...n,anchorOrigin:i,anchorReference:d,elevation:y,marginThreshold:b,transformOrigin:R,TransitionComponent:C,transitionDuration:O,TransitionProps:T},k=Ede(M),$=p.useCallback(()=>{if(d==="anchorPosition")return u;const xe=X_(o),Te=(xe&&xe.nodeType===1?xe:Sa(j.current).body).getBoundingClientRect();return{top:Te.top+w4(Te,i.vertical),left:Te.left+x4(Te,i.horizontal)}},[o,i.horizontal,i.vertical,u,d]),B=p.useCallback(xe=>({vertical:w4(xe,R.vertical),horizontal:x4(xe,R.horizontal)}),[R.horizontal,R.vertical]),z=p.useCallback(xe=>{const Oe={width:xe.offsetWidth,height:xe.offsetHeight},Te=B(Oe);if(d==="none")return{top:null,left:null,transformOrigin:S4(Te)};const Me=$();let Fe=Me.top-Te.vertical,$e=Me.left-Te.horizontal;const et=Fe+Oe.height,qe=$e+Oe.width,re=di(X_(o)),oe=re.innerHeight-b,pe=re.innerWidth-b;if(b!==null&&Fe<b){const Se=Fe-b;Fe-=Se,Te.vertical+=Se}else if(b!==null&&et>oe){const Se=et-oe;Fe-=Se,Te.vertical+=Se}if(b!==null&&$e<b){const Se=$e-b;$e-=Se,Te.horizontal+=Se}else if(qe>pe){const Se=qe-pe;$e-=Se,Te.horizontal+=Se}return{top:`${Math.round(Fe)}px`,left:`${Math.round($e)}px`,transformOrigin:S4(Te)}},[o,d,$,B,b]),[U,W]=p.useState(_),Q=p.useCallback(()=>{const xe=j.current;if(!xe)return;const Oe=z(xe);Oe.top!==null&&xe.style.setProperty("top",Oe.top),Oe.left!==null&&(xe.style.left=Oe.left),xe.style.transformOrigin=Oe.transformOrigin,W(!0)},[z]);p.useEffect(()=>(E&&window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q)),[o,E,Q]);const V=()=>{Q()},K=()=>{W(!1)};p.useEffect(()=>{_&&Q()}),p.useImperativeHandle(a,()=>_?{updatePosition:()=>{Q()}}:null,[_,Q]),p.useEffect(()=>{if(!_)return;const xe=e0(()=>{Q()}),Oe=di(X_(o));return Oe.addEventListener("resize",xe),()=>{xe.clear(),Oe.removeEventListener("resize",xe)}},[o,_,Q]);let X=O;const te={slots:{transition:C,...S},slotProps:{transition:T,paper:w,...A}},[G,J]=mt("transition",{elementType:mb,externalForwardedProps:te,ownerState:M,getSlotProps:xe=>({...xe,onEntering:(Oe,Te)=>{var Me;(Me=xe.onEntering)==null||Me.call(xe,Oe,Te),V()},onExited:Oe=>{var Te;(Te=xe.onExited)==null||Te.call(xe,Oe),K()}}),additionalProps:{appear:!0,in:_}});O==="auto"&&!G.muiSupportAuto&&(X=void 0);const de=v||(o?Sa(X_(o)).body:void 0),[ce,{slots:ue,slotProps:be,...Pe}]=mt("root",{ref:r,elementType:Ode,externalForwardedProps:{...te,...L},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:S.backdrop},slotProps:{backdrop:BI(typeof A.backdrop=="function"?A.backdrop(M):A.backdrop,{invisible:!0})},container:de,open:_},ownerState:M,className:Ae(k.root,h)}),[Ee,ge]=mt("paper",{ref:j,className:k.paper,elementType:pU,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:U?void 0:{opacity:0}},ownerState:M});return I.jsx(ce,{...Pe,...!qk(ce)&&{slots:ue,slotProps:be,disableScrollLock:E},children:I.jsx(G,{...J,timeout:X,children:I.jsx(Ee,{...ge,children:l})})})});function Pde(e){return _t("MuiMenu",e)}St("MuiMenu",["root","paper","list"]);const Rde={vertical:"top",horizontal:"right"},kde={vertical:"top",horizontal:"left"},Tde=e=>{const{classes:t}=e;return yt({root:["root"],paper:["paper"],list:["list"]},Pde,t)},Ade=ve(rj,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Ide=ve(pU,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),jde=ve(fU,{name:"MuiMenu",slot:"List"})({outline:0}),aS=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:o,className:i,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:l,open:h,PaperProps:v={},PopoverClasses:y,transitionDuration:b="auto",TransitionProps:{onEntering:_,...w}={},variant:S="selectedMenu",slots:A={},slotProps:R={},...C}=n,O=$u(),T={...n,autoFocus:a,disableAutoFocusItem:u,MenuListProps:d,onEntering:_,PaperProps:v,transitionDuration:b,TransitionProps:w,variant:S},E=Tde(T),L=a&&!u&&h,j=p.useRef(null),M=(X,te)=>{j.current&&j.current.adjustStyleForScrollbar(X,{direction:O?"rtl":"ltr"}),_&&_(X,te)},k=X=>{X.key==="Tab"&&(X.preventDefault(),l&&l(X,"tabKeyDown"))};let $=-1;p.Children.map(o,(X,te)=>{p.isValidElement(X)&&(X.props.disabled||(S==="selectedMenu"&&X.props.selected||$===-1)&&($=te))});const B={slots:A,slotProps:{list:d,transition:w,paper:v,...R}},z=Jm({elementType:A.root,externalSlotProps:R.root,ownerState:T,className:[E.root,i]}),[U,W]=mt("paper",{className:E.paper,elementType:Ide,externalForwardedProps:B,shouldForwardComponentProp:!0,ownerState:T}),[Q,V]=mt("list",{className:Ae(E.list,d.className),elementType:jde,shouldForwardComponentProp:!0,externalForwardedProps:B,getSlotProps:X=>({...X,onKeyDown:te=>{var G;k(te),(G=X.onKeyDown)==null||G.call(X,te)}}),ownerState:T}),K=typeof B.slotProps.transition=="function"?B.slotProps.transition(T):B.slotProps.transition;return I.jsx(Ade,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:O?"right":"left"},transformOrigin:O?Rde:kde,slots:{root:A.root,paper:U,backdrop:A.backdrop,...A.transition&&{transition:A.transition}},slotProps:{root:z,paper:W,backdrop:typeof R.backdrop=="function"?R.backdrop(T):R.backdrop,transition:{...K,onEntering:(...X)=>{var te;M(...X),(te=K==null?void 0:K.onEntering)==null||te.call(K,...X)}}},open:h,ref:r,transitionDuration:b,ownerState:T,...C,classes:y,children:I.jsx(Q,{actions:j,autoFocus:a&&($===-1||u),autoFocusItem:L,variant:S,...V,children:o})})});function Mde(e){return _t("MuiMenuItem",e)}const Zg=St("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Fde=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},Lde=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:i}=e,d=yt({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},Mde,i);return{...i,...d}},$de=ve(Du,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Fde})(gt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zg.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Zg.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:dr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Zg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${f4.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${f4.inset}`]:{marginLeft:52},[`& .${em.root}`]:{marginTop:0,marginBottom:0},[`& .${em.inset}`]:{paddingLeft:36},[`& .${b4.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${b4.root} svg`]:{fontSize:"1.25rem"}}}]}))),oi=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:i=!1,divider:u=!1,disableGutters:d=!1,focusVisibleClassName:l,role:h="menuitem",tabIndex:v,className:y,...b}=n,_=p.useContext(vb),w=p.useMemo(()=>({dense:i||_.dense||!1,disableGutters:d}),[_.dense,i,d]),S=p.useRef(null);ci(()=>{a&&S.current&&S.current.focus()},[a]);const A={...n,dense:w.dense,divider:u,disableGutters:d},R=Lde(n),C=En(S,r);let O;return n.disabled||(O=v!==void 0?v:-1),I.jsx(vb.Provider,{value:w,children:I.jsx($de,{ref:C,role:h,tabIndex:O,component:o,focusVisibleClassName:Ae(R.focusVisible,l),className:Ae(R.root,y),...b,ownerState:A,classes:R})})});function hU(e){return _t("MuiNativeSelect",e)}const nj=St("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Dde=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,u={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${Ue(r)}`,o&&"iconOpen",n&&"disabled"]};return yt(u,hU,t)},mU=ve("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${nj.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Nde=ve(mU,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Oa,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${nj.multiple}`]:t.multiple}]}})({}),vU=ve("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${nj.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Bde=ve(vU,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ue(r.variant)}`],r.open&&t.iconOpen]}})({}),gU=p.forwardRef(function(t,r){const{className:n,disabled:a,error:o,IconComponent:i,inputRef:u,variant:d="standard",...l}=t,h={...t,disabled:a,variant:d,error:o},v=Dde(h);return I.jsxs(p.Fragment,{children:[I.jsx(Nde,{ownerState:h,className:Ae(v.select,n),disabled:a,ref:u||r,...l}),t.multiple?null:I.jsx(Bde,{as:i,ownerState:h,className:v.icon})]})}),zde=e=>{const{classes:t}=e;return yt({root:["root"]},hU,t)},qde=I.jsx(nS,{}),Yk=p.forwardRef(function(t,r){const n=wt({name:"MuiNativeSelect",props:t}),{className:a,children:o,classes:i={},IconComponent:u=Jq,input:d=qde,inputProps:l,variant:h,...v}=n,y=As(),b=Nu({props:n,muiFormControl:y,states:["variant"]}),_={...n,classes:i},w=zde(_),{root:S,...A}=i;return I.jsx(p.Fragment,{children:p.cloneElement(d,{inputComponent:gU,inputProps:{children:o,classes:A,IconComponent:u,variant:b.variant,type:void 0,...l,...d?d.props.inputProps:{}},ref:r,...v,className:Ae(w.root,d.props.className,a)})})});Yk.muiName="Select";var C4;const Ude=ve("fieldset",{shouldForwardProp:Oa})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Vde=ve("legend",{shouldForwardProp:Oa})(gt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Wde(e){const{children:t,classes:r,className:n,label:a,notched:o,...i}=e,u=a!=null&&a!=="",d={...e,notched:o,withLabel:u};return I.jsx(Ude,{"aria-hidden":!0,className:n,ownerState:d,...i,children:I.jsx(Vde,{ownerState:d,children:u?I.jsx("span",{children:a}):C4||(C4=I.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const Hde=e=>{const{classes:t}=e,n=yt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ple,t);return{...t,...n}},Kde=ve(Zx,{shouldForwardProp:e=>Oa(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Yx})(gt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${sl.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${sl.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${sl.focused} .${sl.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(yn()).map(([r])=>({props:{color:r},style:{[`&.${sl.focused} .${sl.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${sl.error} .${sl.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${sl.disabled} .${sl.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),Gde=ve(Wde,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(gt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Qde=ve(eS,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Jx})(gt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),aj=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:o=!1,inputComponent:i="input",label:u,multiline:d=!1,notched:l,slots:h={},slotProps:v={},type:y="text",...b}=n,_=Hde(n),w=As(),S=Nu({props:n,muiFormControl:w,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),A={...n,color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:w,fullWidth:o,hiddenLabel:S.hiddenLabel,multiline:d,size:S.size,type:y},R=h.root??a.Root??Kde,C=h.input??a.Input??Qde,[O,T]=mt("notchedOutline",{elementType:Gde,className:_.notchedOutline,shouldForwardComponentProp:!0,ownerState:A,externalForwardedProps:{slots:h,slotProps:v},additionalProps:{label:u!=null&&u!==""&&S.required?I.jsxs(p.Fragment,{children:[u,"","*"]}):u}});return I.jsx(tS,{slots:{root:R,input:C},slotProps:v,renderSuffix:E=>I.jsx(O,{...T,notched:typeof l<"u"?l:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:o,inputComponent:i,multiline:d,ref:r,type:y,...b,classes:{..._,notchedOutline:null}})});aj.muiName="Input";function Xde(e){return _t("MuiPagination",e)}St("MuiPagination",["root","ul","outlined","text"]);function Yde(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:i=!1,hidePrevButton:u=!1,onChange:d,page:l,showFirstButton:h=!1,showLastButton:v=!1,siblingCount:y=1,...b}=e,[_,w]=db({controlled:l,default:a,name:r,state:"page"}),S=(M,k)=>{l||w(k),d&&d(M,k)},A=(M,k)=>{const $=k-M+1;return Array.from({length:$},(B,z)=>M+z)},R=A(1,Math.min(t,n)),C=A(Math.max(n-t+1,t+1),n),O=Math.max(Math.min(_-y,n-t-y*2-1),t+2),T=Math.min(Math.max(_+y,t+y*2+2),n-t-1),E=[...h?["first"]:[],...u?[]:["previous"],...R,...O>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...A(O,T),...T<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...C,...i?[]:["next"],...v?["last"]:[]],L=M=>{switch(M){case"first":return 1;case"previous":return _-1;case"next":return _+1;case"last":return n;default:return null}};return{items:E.map(M=>typeof M=="number"?{onClick:k=>{S(k,M)},type:"page",page:M,selected:M===_,disabled:o,"aria-current":M===_?"page":void 0}:{onClick:k=>{S(k,L(M))},type:M,page:L(M),selected:!1,disabled:o||!M.includes("ellipsis")&&(M==="next"||M==="last"?_>=n:_<=1)}),...b}}function Jde(e){return _t("MuiPaginationItem",e)}const Za=St("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),yU=ot(I.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),bU=ot(I.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),Zde=ot(I.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),efe=ot(I.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),_U=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ue(r.size)}`],r.variant==="text"&&t[`text${Ue(r.color)}`],r.variant==="outlined"&&t[`outlined${Ue(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},tfe=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:i,type:u,variant:d}=e,l={root:["root",`size${Ue(o)}`,d,i,r!=="standard"&&`color${Ue(r)}`,r!=="standard"&&`${d}${Ue(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[u]],icon:["icon"]};return yt(l,Jde,t)},rfe=ve("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:_U})(gt(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Za.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),nfe=ve(Du,{name:"MuiPaginationItem",slot:"Root",overridesResolver:_U})(gt(({theme:e})=>({...e.typography.body2,borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Za.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Za.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Za.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:dr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Za.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Za.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Za.selected}`]:{[`&.${Za.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Za.selected}`]:{[`&.${Za.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(yn(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${Za.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${Za.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${Za.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(yn(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${Za.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:dr(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:dr(e.palette[t].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dr(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Za.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dr(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),afe=ve("div",{name:"MuiPaginationItem",slot:"Icon"})(gt(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),ofe=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:i,components:u={},disabled:d=!1,page:l,selected:h=!1,shape:v="circular",size:y="medium",slots:b={},slotProps:_={},type:w="page",variant:S="text",...A}=n,R={...n,color:o,disabled:d,selected:h,shape:v,size:y,type:w,variant:S},C=$u(),O=tfe(R),T={slots:{previous:b.previous??u.previous,next:b.next??u.next,first:b.first??u.first,last:b.last??u.last},slotProps:_},[E,L]=mt("previous",{elementType:Zde,externalForwardedProps:T,ownerState:R}),[j,M]=mt("next",{elementType:efe,externalForwardedProps:T,ownerState:R}),[k,$]=mt("first",{elementType:yU,externalForwardedProps:T,ownerState:R}),[B,z]=mt("last",{elementType:bU,externalForwardedProps:T,ownerState:R}),U=C?{previous:"next",next:"previous",first:"last",last:"first"}[w]:w,W={previous:E,next:j,first:k,last:B}[U],Q={previous:L,next:M,first:$,last:z}[U];return w==="start-ellipsis"||w==="end-ellipsis"?I.jsx(rfe,{ref:r,ownerState:R,className:Ae(O.root,a),children:"…"}):I.jsxs(nfe,{ref:r,ownerState:R,component:i,disabled:d,className:Ae(O.root,a),...A,children:[w==="page"&&l,W?I.jsx(afe,{...Q,className:O.icon,as:W}):null]})}),ife=e=>{const{classes:t,variant:r}=e;return yt({root:["root",r],ul:["ul"]},Xde,t)},sfe=ve("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),lfe=ve("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function ufe(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const cfe=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:i="standard",count:u=1,defaultPage:d=1,disabled:l=!1,getItemAriaLabel:h=ufe,hideNextButton:v=!1,hidePrevButton:y=!1,onChange:b,page:_,renderItem:w=k=>I.jsx(ofe,{...k}),shape:S="circular",showFirstButton:A=!1,showLastButton:R=!1,siblingCount:C=1,size:O="medium",variant:T="text",...E}=n,{items:L}=Yde({...n,componentName:"Pagination"}),j={...n,boundaryCount:a,color:i,count:u,defaultPage:d,disabled:l,getItemAriaLabel:h,hideNextButton:v,hidePrevButton:y,renderItem:w,shape:S,showFirstButton:A,showLastButton:R,siblingCount:C,size:O,variant:T},M=ife(j);return I.jsx(sfe,{"aria-label":"pagination navigation",className:Ae(M.root,o),ownerState:j,ref:r,...E,children:I.jsx(lfe,{className:M.ul,ownerState:j,children:L.map((k,$)=>I.jsx("li",{children:w({...k,color:i,"aria-label":h(k.type,k.page,k.selected),shape:S,size:O,variant:T})},$))})})}),dfe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function wU(e){return _t("MuiSelect",e)}const ey=St("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var E4;const ffe=ve(mU,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${ey.select}`]:t.select},{[`&.${ey.select}`]:t[r.variant]},{[`&.${ey.error}`]:t.error},{[`&.${ey.multiple}`]:t.multiple}]}})({[`&.${ey.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),pfe=ve(vU,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ue(r.variant)}`],r.open&&t.iconOpen]}})({}),hfe=ve("input",{shouldForwardProp:e=>Mq(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function O4(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function mfe(e){return e==null||typeof e=="string"&&!e.trim()}const vfe=e=>{const{classes:t,variant:r,disabled:n,multiple:a,open:o,error:i}=e,u={select:["select",r,n&&"disabled",a&&"multiple",i&&"error"],icon:["icon",`icon${Ue(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return yt(u,wU,t)},gfe=p.forwardRef(function(t,r){var Ct;const{"aria-describedby":n,"aria-label":a,autoFocus:o,autoWidth:i,children:u,className:d,defaultOpen:l,defaultValue:h,disabled:v,displayEmpty:y,error:b=!1,IconComponent:_,inputRef:w,labelId:S,MenuProps:A={},multiple:R,name:C,onBlur:O,onChange:T,onClose:E,onFocus:L,onOpen:j,open:M,readOnly:k,renderValue:$,required:B,SelectDisplayProps:z={},tabIndex:U,type:W,value:Q,variant:V="standard",...K}=t,[X,te]=db({controlled:Q,default:h,name:"Select"}),[G,J]=db({controlled:M,default:l,name:"Select"}),de=p.useRef(null),ce=p.useRef(null),[ue,be]=p.useState(null),{current:Pe}=p.useRef(M!=null),[Ee,ge]=p.useState(),xe=En(r,w),Oe=p.useCallback(ct=>{ce.current=ct,ct&&be(ct)},[]),Te=ue==null?void 0:ue.parentNode;p.useImperativeHandle(xe,()=>({focus:()=>{ce.current.focus()},node:de.current,value:X}),[X]),p.useEffect(()=>{l&&G&&ue&&!Pe&&(ge(i?null:Te.clientWidth),ce.current.focus())},[ue,i]),p.useEffect(()=>{o&&ce.current.focus()},[o]),p.useEffect(()=>{if(!S)return;const ct=Sa(ce.current).getElementById(S);if(ct){const Kt=()=>{getSelection().isCollapsed&&ce.current.focus()};return ct.addEventListener("click",Kt),()=>{ct.removeEventListener("click",Kt)}}},[S]);const Me=(ct,Kt)=>{ct?j&&j(Kt):E&&E(Kt),Pe||(ge(i?null:Te.clientWidth),J(ct))},Fe=ct=>{ct.button===0&&(ct.preventDefault(),ce.current.focus(),Me(!0,ct))},$e=ct=>{Me(!1,ct)},et=p.Children.toArray(u),qe=ct=>{const Kt=et.find(lr=>lr.props.value===ct.target.value);Kt!==void 0&&(te(Kt.props.value),T&&T(ct,Kt))},re=ct=>Kt=>{let lr;if(Kt.currentTarget.hasAttribute("tabindex")){if(R){lr=Array.isArray(X)?X.slice():[];const en=X.indexOf(ct.props.value);en===-1?lr.push(ct.props.value):lr.splice(en,1)}else lr=ct.props.value;if(ct.props.onClick&&ct.props.onClick(Kt),X!==lr&&(te(lr),T)){const en=Kt.nativeEvent||Kt,Bn=new en.constructor(en.type,en);Object.defineProperty(Bn,"target",{writable:!0,value:{value:lr,name:C}}),T(Bn,ct)}R||Me(!1,Kt)}},oe=ct=>{k||[" ","ArrowUp","ArrowDown","Enter"].includes(ct.key)&&(ct.preventDefault(),Me(!0,ct))},pe=ue!==null&&G,Se=ct=>{!pe&&O&&(Object.defineProperty(ct,"target",{writable:!0,value:{value:X,name:C}}),O(ct))};delete K["aria-invalid"];let ne,we;const Ne=[];let De=!1;(rw({value:X})||y)&&($?ne=$(X):De=!0);const ht=et.map(ct=>{if(!p.isValidElement(ct))return null;let Kt;if(R){if(!Array.isArray(X))throw new Error(ju(2));Kt=X.some(lr=>O4(lr,ct.props.value)),Kt&&De&&Ne.push(ct.props.children)}else Kt=O4(X,ct.props.value),Kt&&De&&(we=ct.props.children);return p.cloneElement(ct,{"aria-selected":Kt?"true":"false",onClick:re(ct),onKeyUp:lr=>{lr.key===" "&&lr.preventDefault(),ct.props.onKeyUp&&ct.props.onKeyUp(lr)},role:"option",selected:Kt,value:void 0,"data-value":ct.props.value})});De&&(R?Ne.length===0?ne=null:ne=Ne.reduce((ct,Kt,lr)=>(ct.push(Kt),lr<Ne.length-1&&ct.push(", "),ct),[]):ne=we);let lt=Ee;!i&&Pe&&ue&&(lt=Te.clientWidth);let bt;typeof U<"u"?bt=U:bt=v?null:0;const Pt=z.id||(C?`mui-component-select-${C}`:void 0),Tt={...t,variant:V,value:X,open:pe,error:b},Je=vfe(Tt),Dt={...A.PaperProps,...(Ct=A.slotProps)==null?void 0:Ct.paper},Lt=cd();return I.jsxs(p.Fragment,{children:[I.jsx(ffe,{as:"div",ref:Oe,tabIndex:bt,role:"combobox","aria-controls":pe?Lt:void 0,"aria-disabled":v?"true":void 0,"aria-expanded":pe?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[S,Pt].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":B?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:oe,onMouseDown:v||k?null:Fe,onBlur:Se,onFocus:L,...z,ownerState:Tt,className:Ae(z.className,Je.select,d),id:Pt,children:mfe(ne)?E4||(E4=I.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):ne}),I.jsx(hfe,{"aria-invalid":b,value:Array.isArray(X)?X.join(","):X,name:C,ref:de,"aria-hidden":!0,onChange:qe,tabIndex:-1,disabled:v,className:Je.nativeInput,autoFocus:o,required:B,...K,ownerState:Tt}),I.jsx(pfe,{as:_,className:Je.icon,ownerState:Tt}),I.jsx(aS,{id:`menu-${C||""}`,anchorEl:Te,open:pe,onClose:$e,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...A,slotProps:{...A.slotProps,list:{"aria-labelledby":S,role:"listbox","aria-multiselectable":R?"true":void 0,disableListWrap:!0,id:Lt,...A.MenuListProps},paper:{...Dt,style:{minWidth:lt,...Dt!=null?Dt.style:null}}},children:ht})]})}),yfe=e=>{const{classes:t}=e,n=yt({root:["root"]},wU,t);return{...t,...n}},oj={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Oa(e)&&e!=="variant"},bfe=ve(nS,oj)(""),_fe=ve(aj,oj)(""),wfe=ve(ZI,oj)(""),oS=p.forwardRef(function(t,r){const n=wt({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:i={},className:u,defaultOpen:d=!1,displayEmpty:l=!1,IconComponent:h=Jq,id:v,input:y,inputProps:b,label:_,labelId:w,MenuProps:S,multiple:A=!1,native:R=!1,onClose:C,onOpen:O,open:T,renderValue:E,SelectDisplayProps:L,variant:j="outlined",...M}=n,k=R?gU:gfe,$=As(),B=Nu({props:n,muiFormControl:$,states:["variant","error"]}),z=B.variant||j,U={...n,variant:z,classes:i},W=yfe(U),{root:Q,...V}=W,K=y||{standard:I.jsx(bfe,{ownerState:U}),outlined:I.jsx(_fe,{label:_,ownerState:U}),filled:I.jsx(wfe,{ownerState:U})}[z],X=En(r,Cd(K));return I.jsx(p.Fragment,{children:p.cloneElement(K,{inputComponent:k,inputProps:{children:o,error:B.error,IconComponent:h,variant:z,type:void 0,multiple:A,...R?{id:v}:{autoWidth:a,defaultOpen:d,displayEmpty:l,labelId:w,MenuProps:S,onClose:C,onOpen:O,open:T,renderValue:E,SelectDisplayProps:{id:v,...L}},...b,classes:b?Ln(V,b.classes):V,...y?y.props.inputProps:{}},...(A&&R||l)&&z==="outlined"?{notched:!0}:{},ref:X,className:Ae(K.props.className,u,W.root),...!y&&{variant:z},...M})})});oS.muiName="Select";function xfe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:a,resumeHideDuration:o}=e,i=Nf();p.useEffect(()=>{if(!a)return;function A(R){R.defaultPrevented||R.key==="Escape"&&(n==null||n(R,"escapeKeyDown"))}return document.addEventListener("keydown",A),()=>{document.removeEventListener("keydown",A)}},[a,n]);const u=uo((A,R)=>{n==null||n(A,R)}),d=uo(A=>{!n||A==null||i.start(A,()=>{u(null,"timeout")})});p.useEffect(()=>(a&&d(t),i.clear),[a,t,d,i]);const l=A=>{n==null||n(A,"clickaway")},h=i.clear,v=p.useCallback(()=>{t!=null&&d(o??t*.5)},[t,o,d]),y=A=>R=>{const C=A.onBlur;C==null||C(R),v()},b=A=>R=>{const C=A.onFocus;C==null||C(R),h()},_=A=>R=>{const C=A.onMouseEnter;C==null||C(R),h()},w=A=>R=>{const C=A.onMouseLeave;C==null||C(R),v()};return p.useEffect(()=>{if(!r&&a)return window.addEventListener("focus",v),window.addEventListener("blur",h),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",h)}},[r,a,v,h]),{getRootProps:(A={})=>{const R={...J1(e),...J1(A)};return{role:"presentation",...A,...R,onBlur:y(R),onFocus:b(R),onMouseEnter:_(R),onMouseLeave:w(R)}},onClickAway:l}}function Sfe(e){return _t("MuiSnackbarContent",e)}St("MuiSnackbarContent",["root","message","action"]);const Cfe=e=>{const{classes:t}=e;return yt({root:["root"],action:["action"],message:["message"]},Sfe,t)},Efe=ve(wd,{name:"MuiSnackbarContent",slot:"Root"})(gt(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,r=xq(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Ofe=ve("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Pfe=ve("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Rfe=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:i,role:u="alert",...d}=n,l=n,h=Cfe(l);return I.jsxs(Efe,{role:u,square:!0,elevation:6,className:Ae(h.root,o),ownerState:l,ref:r,...d,children:[I.jsx(Ofe,{className:h.message,ownerState:l,children:i}),a?I.jsx(Pfe,{className:h.action,ownerState:l,children:a}):null]})});function kfe(e){return _t("MuiSnackbar",e)}St("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Tfe=e=>{const{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${Ue(r.vertical)}${Ue(r.horizontal)}`]};return yt(n,kfe,t)},Afe=ve("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${Ue(r.anchorOrigin.vertical)}${Ue(r.anchorOrigin.horizontal)}`]]}})(gt(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Ife=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiSnackbar"}),a=fo(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:u,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:l=null,children:h,className:v,ClickAwayListenerProps:y,ContentProps:b,disableWindowBlurListener:_=!1,message:w,onBlur:S,onClose:A,onFocus:R,onMouseEnter:C,onMouseLeave:O,open:T,resumeHideDuration:E,slots:L={},slotProps:j={},TransitionComponent:M,transitionDuration:k=o,TransitionProps:{onEnter:$,onExited:B,...z}={},...U}=n,W={...n,anchorOrigin:{vertical:u,horizontal:d},autoHideDuration:l,disableWindowBlurListener:_,TransitionComponent:M,transitionDuration:k},Q=Tfe(W),{getRootProps:V,onClickAway:K}=xfe({...W}),[X,te]=p.useState(!0),G=Me=>{te(!0),B&&B(Me)},J=(Me,Fe)=>{te(!1),$&&$(Me,Fe)},de={slots:{transition:M,...L},slotProps:{content:b,clickAwayListener:y,transition:z,...j}},[ce,ue]=mt("root",{ref:r,className:[Q.root,v],elementType:Afe,getSlotProps:V,externalForwardedProps:{...de,...U},ownerState:W}),[be,{ownerState:Pe,...Ee}]=mt("clickAwayListener",{elementType:due,externalForwardedProps:de,getSlotProps:Me=>({onClickAway:(...Fe)=>{var et;const $e=Fe[0];(et=Me.onClickAway)==null||et.call(Me,...Fe),!($e!=null&&$e.defaultMuiPrevented)&&K(...Fe)}}),ownerState:W}),[ge,xe]=mt("content",{elementType:Rfe,shouldForwardComponentProp:!0,externalForwardedProps:de,additionalProps:{message:w,action:i},ownerState:W}),[Oe,Te]=mt("transition",{elementType:mb,externalForwardedProps:de,getSlotProps:Me=>({onEnter:(...Fe)=>{var $e;($e=Me.onEnter)==null||$e.call(Me,...Fe),J(...Fe)},onExited:(...Fe)=>{var $e;($e=Me.onExited)==null||$e.call(Me,...Fe),G(...Fe)}}),additionalProps:{appear:!0,in:T,timeout:k,direction:u==="top"?"down":"up"},ownerState:W});return!T&&X?null:I.jsx(be,{...Ee,...L.clickAwayListener&&{ownerState:Pe},children:I.jsx(ce,{...ue,children:I.jsx(Oe,{...Te,children:h||I.jsx(ge,{...xe})})})})});function jfe(e){return _t("MuiTooltip",e)}const mn=St("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Mfe(e){return Math.round(e*1e5)/1e5}const Ffe=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Ue(o.split("-")[0])}`],arrow:["arrow"]};return yt(i,jfe,t)},Lfe=ve(Yq,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(gt(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${mn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${mn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${mn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${mn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${mn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${mn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${mn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${mn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),$fe=ve("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ue(r.placement.split("-")[0])}`]]}})(gt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:dr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${mn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${mn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${mn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${mn.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Mfe(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${mn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${mn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${mn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${mn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${mn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${mn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${mn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${mn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${mn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${mn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Dfe=ve("span",{name:"MuiTooltip",slot:"Arrow"})(gt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:dr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Y_=!1;const P4=new Gx;let ty={x:0,y:0};function J_(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Ca=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiTooltip"}),{arrow:a=!1,children:o,classes:i,components:u={},componentsProps:d={},describeChild:l=!1,disableFocusListener:h=!1,disableHoverListener:v=!1,disableInteractive:y=!1,disableTouchListener:b=!1,enterDelay:_=100,enterNextDelay:w=0,enterTouchDelay:S=700,followCursor:A=!1,id:R,leaveDelay:C=0,leaveTouchDelay:O=1500,onClose:T,onOpen:E,open:L,placement:j="bottom",PopperComponent:M,PopperProps:k={},slotProps:$={},slots:B={},title:z,TransitionComponent:U,TransitionProps:W,...Q}=n,V=p.isValidElement(o)?o:I.jsx("span",{children:o}),K=fo(),X=$u(),[te,G]=p.useState(),[J,de]=p.useState(null),ce=p.useRef(!1),ue=y||A,be=Nf(),Pe=Nf(),Ee=Nf(),ge=Nf(),[xe,Oe]=db({controlled:L,default:!1,name:"Tooltip",state:"open"});let Te=xe;const Me=cd(R),Fe=p.useRef(),$e=uo(()=>{Fe.current!==void 0&&(document.body.style.WebkitUserSelect=Fe.current,Fe.current=void 0),ge.clear()});p.useEffect(()=>$e,[$e]);const et=Ht=>{P4.clear(),Y_=!0,Oe(!0),E&&!Te&&E(Ht)},qe=uo(Ht=>{P4.start(800+C,()=>{Y_=!1}),Oe(!1),T&&Te&&T(Ht),be.start(K.transitions.duration.shortest,()=>{ce.current=!1})}),re=Ht=>{ce.current&&Ht.type!=="touchstart"||(te&&te.removeAttribute("title"),Pe.clear(),Ee.clear(),_||Y_&&w?Pe.start(Y_?w:_,()=>{et(Ht)}):et(Ht))},oe=Ht=>{Pe.clear(),Ee.start(C,()=>{qe(Ht)})},[,pe]=p.useState(!1),Se=Ht=>{Km(Ht.target)||(pe(!1),oe(Ht))},ne=Ht=>{te||G(Ht.currentTarget),Km(Ht.target)&&(pe(!0),re(Ht))},we=Ht=>{ce.current=!0;const le=V.props;le.onTouchStart&&le.onTouchStart(Ht)},Ne=Ht=>{we(Ht),Ee.clear(),be.clear(),$e(),Fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ge.start(S,()=>{document.body.style.WebkitUserSelect=Fe.current,re(Ht)})},De=Ht=>{V.props.onTouchEnd&&V.props.onTouchEnd(Ht),$e(),Ee.start(O,()=>{qe(Ht)})};p.useEffect(()=>{if(!Te)return;function Ht(le){le.key==="Escape"&&qe(le)}return document.addEventListener("keydown",Ht),()=>{document.removeEventListener("keydown",Ht)}},[qe,Te]);const ht=En(Cd(V),G,r);!z&&z!==0&&(Te=!1);const lt=p.useRef(),bt=Ht=>{const le=V.props;le.onMouseMove&&le.onMouseMove(Ht),ty={x:Ht.clientX,y:Ht.clientY},lt.current&&lt.current.update()},Pt={},Tt=typeof z=="string";l?(Pt.title=!Te&&Tt&&!v?z:null,Pt["aria-describedby"]=Te?Me:null):(Pt["aria-label"]=Tt?z:null,Pt["aria-labelledby"]=Te&&!Tt?Me:null);const Je={...Pt,...Q,...V.props,className:Ae(Q.className,V.props.className),onTouchStart:we,ref:ht,...A?{onMouseMove:bt}:{}},Dt={};b||(Je.onTouchStart=Ne,Je.onTouchEnd=De),v||(Je.onMouseOver=J_(re,Je.onMouseOver),Je.onMouseLeave=J_(oe,Je.onMouseLeave),ue||(Dt.onMouseOver=re,Dt.onMouseLeave=oe)),h||(Je.onFocus=J_(ne,Je.onFocus),Je.onBlur=J_(Se,Je.onBlur),ue||(Dt.onFocus=ne,Dt.onBlur=Se));const Lt={...n,isRtl:X,arrow:a,disableInteractive:ue,placement:j,PopperComponentProp:M,touch:ce.current},Ct=typeof $.popper=="function"?$.popper(Lt):$.popper,ct=p.useMemo(()=>{var le,ie;let Ht=[{name:"arrow",enabled:!!J,options:{element:J,padding:4}}];return(le=k.popperOptions)!=null&&le.modifiers&&(Ht=Ht.concat(k.popperOptions.modifiers)),(ie=Ct==null?void 0:Ct.popperOptions)!=null&&ie.modifiers&&(Ht=Ht.concat(Ct.popperOptions.modifiers)),{...k.popperOptions,...Ct==null?void 0:Ct.popperOptions,modifiers:Ht}},[J,k.popperOptions,Ct==null?void 0:Ct.popperOptions]),Kt=Ffe(Lt),lr=typeof $.transition=="function"?$.transition(Lt):$.transition,en={slots:{popper:u.Popper,transition:u.Transition??U,tooltip:u.Tooltip,arrow:u.Arrow,...B},slotProps:{arrow:$.arrow??d.arrow,popper:{...k,...Ct??d.popper},tooltip:$.tooltip??d.tooltip,transition:{...W,...lr??d.transition}}},[Bn,Xi]=mt("popper",{elementType:Lfe,externalForwardedProps:en,ownerState:Lt,className:Ae(Kt.popper,k==null?void 0:k.className)}),[Pa,ia]=mt("transition",{elementType:mb,externalForwardedProps:en,ownerState:Lt}),[Yi,Bo]=mt("tooltip",{elementType:$fe,className:Kt.tooltip,externalForwardedProps:en,ownerState:Lt}),[zo,Is]=mt("arrow",{elementType:Dfe,className:Kt.arrow,externalForwardedProps:en,ownerState:Lt,ref:de});return I.jsxs(p.Fragment,{children:[p.cloneElement(V,Je),I.jsx(Bn,{as:M??Yq,placement:j,anchorEl:A?{getBoundingClientRect:()=>({top:ty.y,left:ty.x,right:ty.x,bottom:ty.y,width:0,height:0})}:te,popperRef:lt,open:te?Te:!1,id:Me,transition:!0,...Dt,...Xi,popperOptions:ct,children:({TransitionProps:Ht})=>I.jsx(Pa,{timeout:K.transitions.duration.shorter,...Ht,...ia,children:I.jsxs(Yi,{...Bo,children:[z,a?I.jsx(zo,{...Is}):null]})})})]})}),i0=loe({createStyledComponent:ve("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>wt({props:e,name:"MuiStack"})});function Nfe(e){return _t("MuiSwitch",e)}const ro=St("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Bfe=e=>{const{classes:t,edge:r,size:n,color:a,checked:o,disabled:i}=e,u={root:["root",r&&`edge${Ue(r)}`,`size${Ue(n)}`],switchBase:["switchBase",`color${Ue(a)}`,o&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=yt(u,Nfe,t);return{...t,...d}},zfe=ve("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Ue(r.edge)}`],t[`size${Ue(r.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${ro.thumb}`]:{width:16,height:16},[`& .${ro.switchBase}`]:{padding:4,[`&.${ro.checked}`]:{transform:"translateX(16px)"}}}}]}),qfe=ve(rU,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${ro.input}`]:t.input},r.color!=="default"&&t[`color${Ue(r.color)}`]]}})(gt(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${ro.checked}`]:{transform:"translateX(20px)"},[`&.${ro.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ro.checked} + .${ro.track}`]:{opacity:.5},[`&.${ro.disabled} + .${ro.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ro.input}`]:{left:"-100%",width:"300%"}})),gt(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(yn(["light"])).map(([t])=>({props:{color:t},style:{[`&.${ro.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:dr(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ro.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?_d(e.palette[t].main,.62):gv(e.palette[t].main,.55)}`}},[`&.${ro.checked} + .${ro.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Ufe=ve("span",{name:"MuiSwitch",slot:"Track"})(gt(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),Vfe=ve("span",{name:"MuiSwitch",slot:"Thumb"})(gt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),xU=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiSwitch"}),{className:a,color:o="primary",edge:i=!1,size:u="medium",sx:d,slots:l={},slotProps:h={},...v}=n,y={...n,color:o,edge:i,size:u},b=Bfe(y),_={slots:l,slotProps:h},[w,S]=mt("root",{className:Ae(b.root,a),elementType:zfe,externalForwardedProps:_,ownerState:y,additionalProps:{sx:d}}),[A,R]=mt("thumb",{className:b.thumb,elementType:Vfe,externalForwardedProps:_,ownerState:y}),C=I.jsx(A,{...R}),[O,T]=mt("track",{className:b.track,elementType:Ufe,externalForwardedProps:_,ownerState:y});return I.jsxs(w,{...S,children:[I.jsx(qfe,{type:"checkbox",icon:C,checkedIcon:C,ref:r,ownerState:y,...v,classes:{...b,root:b.switchBase},slots:{...l.switchBase&&{root:l.switchBase},...l.input&&{input:l.input}},slotProps:{...h.switchBase&&{root:typeof h.switchBase=="function"?h.switchBase(y):h.switchBase},...h.input&&{input:typeof h.input=="function"?h.input(y):h.input}}}),I.jsx(O,{...T})]})});function Wfe(e){return _t("MuiTab",e)}const Ai=St("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Hfe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:a,icon:o,label:i,selected:u,disabled:d}=e,l={root:["root",o&&i&&"labelIcon",`textColor${Ue(r)}`,n&&"fullWidth",a&&"wrapped",u&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return yt(l,Wfe,t)},Kfe=ve(Du,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Ue(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Ai.iconWrapper}`]:t.iconWrapper},{[`& .${Ai.icon}`]:t.icon}]}})(gt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${Ai.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${Ai.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${Ai.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${Ai.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Ai.selected}`]:{opacity:1},[`&.${Ai.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Ai.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ai.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Ai.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ai.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),SU=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiTab"}),{className:a,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:u,icon:d,iconPosition:l="top",indicator:h,label:v,onChange:y,onClick:b,onFocus:_,selected:w,selectionFollowsFocus:S,textColor:A="inherit",value:R,wrapped:C=!1,...O}=n,T={...n,disabled:o,disableFocusRipple:i,selected:w,icon:!!d,iconPosition:l,label:!!v,fullWidth:u,textColor:A,wrapped:C},E=Hfe(T),L=d&&v&&p.isValidElement(d)?p.cloneElement(d,{className:Ae(E.icon,d.props.className)}):d,j=k=>{!w&&y&&y(k,R),b&&b(k)},M=k=>{S&&!w&&y&&y(k,R),_&&_(k)};return I.jsxs(Kfe,{focusRipple:!i,className:Ae(E.root,a),ref:r,role:"tab","aria-selected":w,disabled:o,onClick:j,onFocus:M,ownerState:T,tabIndex:w?0:-1,...O,children:[l==="top"||l==="start"?I.jsxs(p.Fragment,{children:[L,v]}):I.jsxs(p.Fragment,{children:[v,L]}),h]})}),CU=p.createContext();function Gfe(e){return _t("MuiTable",e)}St("MuiTable",["root","stickyHeader"]);const Qfe=e=>{const{classes:t,stickyHeader:r}=e;return yt({root:["root",r&&"stickyHeader"]},Gfe,t)},Xfe=ve("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(gt(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),R4="table",EU=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiTable"}),{className:a,component:o=R4,padding:i="normal",size:u="medium",stickyHeader:d=!1,...l}=n,h={...n,component:o,padding:i,size:u,stickyHeader:d},v=Qfe(h),y=p.useMemo(()=>({padding:i,size:u,stickyHeader:d}),[i,u,d]);return I.jsx(CU.Provider,{value:y,children:I.jsx(Xfe,{as:o,role:o===R4?null:"table",ref:r,className:Ae(v.root,a),ownerState:h,...l})})}),iS=p.createContext();function Yfe(e){return _t("MuiTableBody",e)}St("MuiTableBody",["root"]);const Jfe=e=>{const{classes:t}=e;return yt({root:["root"]},Yfe,t)},Zfe=ve("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),epe={variant:"body"},k4="tbody",OU=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiTableBody"}),{className:a,component:o=k4,...i}=n,u={...n,component:o},d=Jfe(u);return I.jsx(iS.Provider,{value:epe,children:I.jsx(Zfe,{className:Ae(d.root,a),as:o,ref:r,role:o===k4?null:"rowgroup",ownerState:u,...i})})});function tpe(e){return _t("MuiTableCell",e)}const rpe=St("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),npe=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:i}=e,u={root:["root",r,i&&"stickyHeader",n!=="inherit"&&`align${Ue(n)}`,a!=="normal"&&`padding${Ue(a)}`,`size${Ue(o)}`]};return yt(u,tpe,t)},ape=ve("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ue(r.size)}`],r.padding!=="normal"&&t[`padding${Ue(r.padding)}`],r.align!=="inherit"&&t[`align${Ue(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(gt(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
${e.palette.mode==="light"?_d(dr(e.palette.divider,1),.88):gv(dr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${rpe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),za=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiTableCell"}),{align:a="inherit",className:o,component:i,padding:u,scope:d,size:l,sortDirection:h,variant:v,...y}=n,b=p.useContext(CU),_=p.useContext(iS),w=_&&_.variant==="head";let S;i?S=i:S=w?"th":"td";let A=d;S==="td"?A=void 0:!A&&w&&(A="col");const R=v||_&&_.variant,C={...n,align:a,component:S,padding:u||(b&&b.padding?b.padding:"normal"),size:l||(b&&b.size?b.size:"medium"),sortDirection:h,stickyHeader:R==="head"&&b&&b.stickyHeader,variant:R},O=npe(C);let T=null;return h&&(T=h==="asc"?"ascending":"descending"),I.jsx(ape,{as:S,ref:r,className:Ae(O.root,o),"aria-sort":T,scope:A,ownerState:C,...y})});function ope(e){return _t("MuiTableHead",e)}St("MuiTableHead",["root"]);const ipe=e=>{const{classes:t}=e;return yt({root:["root"]},ope,t)},spe=ve("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),lpe={variant:"head"},T4="thead",PU=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiTableHead"}),{className:a,component:o=T4,...i}=n,u={...n,component:o},d=ipe(u);return I.jsx(iS.Provider,{value:lpe,children:I.jsx(spe,{as:o,className:Ae(d.root,a),ref:r,role:o===T4?null:"rowgroup",ownerState:u,...i})})});function upe(e){return _t("MuiToolbar",e)}St("MuiToolbar",["root","gutters","regular","dense"]);const cpe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return yt({root:["root",!r&&"gutters",n]},upe,t)},dpe=ve("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(gt(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),yv=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiToolbar"}),{className:a,component:o="div",disableGutters:i=!1,variant:u="regular",...d}=n,l={...n,component:o,disableGutters:i,variant:u},h=cpe(l);return I.jsx(dpe,{as:o,className:Ae(h.root,a),ref:r,ownerState:l,...d})}),RU=ot(I.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),kU=ot(I.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),fpe=p.forwardRef(function(t,r){const{backIconButtonProps:n,count:a,disabled:o=!1,getItemAriaLabel:i,nextIconButtonProps:u,onPageChange:d,page:l,rowsPerPage:h,showFirstButton:v,showLastButton:y,slots:b={},slotProps:_={},...w}=t,S=$u(),A=G=>{d(G,0)},R=G=>{d(G,l-1)},C=G=>{d(G,l+1)},O=G=>{d(G,Math.max(0,Math.ceil(a/h)-1))},T=b.firstButton??vn,E=b.lastButton??vn,L=b.nextButton??vn,j=b.previousButton??vn,M=b.firstButtonIcon??yU,k=b.lastButtonIcon??bU,$=b.nextButtonIcon??kU,B=b.previousButtonIcon??RU,z=S?E:T,U=S?L:j,W=S?j:L,Q=S?T:E,V=S?_.lastButton:_.firstButton,K=S?_.nextButton:_.previousButton,X=S?_.previousButton:_.nextButton,te=S?_.firstButton:_.lastButton;return I.jsxs("div",{ref:r,...w,children:[v&&I.jsx(z,{onClick:A,disabled:o||l===0,"aria-label":i("first",l),title:i("first",l),...V,children:S?I.jsx(k,{..._.lastButtonIcon}):I.jsx(M,{..._.firstButtonIcon})}),I.jsx(U,{onClick:R,disabled:o||l===0,color:"inherit","aria-label":i("previous",l),title:i("previous",l),...K??n,children:S?I.jsx($,{..._.nextButtonIcon}):I.jsx(B,{..._.previousButtonIcon})}),I.jsx(W,{onClick:C,disabled:o||(a!==-1?l>=Math.ceil(a/h)-1:!1),color:"inherit","aria-label":i("next",l),title:i("next",l),...X??u,children:S?I.jsx(B,{..._.previousButtonIcon}):I.jsx($,{..._.nextButtonIcon})}),y&&I.jsx(Q,{onClick:O,disabled:o||l>=Math.ceil(a/h)-1,"aria-label":i("last",l),title:i("last",l),...te,children:S?I.jsx(M,{..._.firstButtonIcon}):I.jsx(k,{..._.lastButtonIcon})})]})});function ppe(e){return _t("MuiTablePagination",e)}const ky=St("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var A4;const hpe=ve(za,{name:"MuiTablePagination",slot:"Root"})(gt(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),mpe=ve(yv,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${ky.actions}`]:t.actions,...t.toolbar})})(gt(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${ky.actions}`]:{flexShrink:0,marginLeft:20}}))),vpe=ve("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),gpe=ve("p",{name:"MuiTablePagination",slot:"SelectLabel"})(gt(({theme:e})=>({...e.typography.body2,flexShrink:0}))),ype=ve(oS,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${ky.selectIcon}`]:t.selectIcon,[`& .${ky.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${ky.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),bpe=ve(oi,{name:"MuiTablePagination",slot:"MenuItem"})({}),_pe=ve("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(gt(({theme:e})=>({...e.typography.body2,flexShrink:0})));function wpe({from:e,to:t,count:r}){return`${e}${t} of ${r!==-1?r:`more than ${t}`}`}function xpe(e){return`Go to ${e} page`}const Spe=e=>{const{classes:t}=e;return yt({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},ppe,t)},I4=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiTablePagination"}),{ActionsComponent:a=fpe,backIconButtonProps:o,colSpan:i,component:u=za,count:d,disabled:l=!1,getItemAriaLabel:h=xpe,labelDisplayedRows:v=wpe,labelRowsPerPage:y="Rows per page:",nextIconButtonProps:b,onPageChange:_,onRowsPerPageChange:w,page:S,rowsPerPage:A,rowsPerPageOptions:R=[10,25,50,100],SelectProps:C={},showFirstButton:O=!1,showLastButton:T=!1,slotProps:E={},slots:L={},...j}=n,M=n,k=Spe(M),$=(E==null?void 0:E.select)??C,B=$.native?"option":bpe;let z;(u===za||u==="td")&&(z=i||1e3);const U=cd($.id),W=cd($.labelId),Q=()=>d===-1?(S+1)*A:A===-1?d:Math.min(d,(S+1)*A),V={slots:L,slotProps:E},[K,X]=mt("root",{ref:r,className:k.root,elementType:hpe,externalForwardedProps:{...V,component:u,...j},ownerState:M,additionalProps:{colSpan:z}}),[te,G]=mt("toolbar",{className:k.toolbar,elementType:mpe,externalForwardedProps:V,ownerState:M}),[J,de]=mt("spacer",{className:k.spacer,elementType:vpe,externalForwardedProps:V,ownerState:M}),[ce,ue]=mt("selectLabel",{className:k.selectLabel,elementType:gpe,externalForwardedProps:V,ownerState:M,additionalProps:{id:W}}),[be,Pe]=mt("select",{className:k.select,elementType:ype,externalForwardedProps:V,ownerState:M}),[Ee,ge]=mt("menuItem",{className:k.menuItem,elementType:B,externalForwardedProps:V,ownerState:M}),[xe,Oe]=mt("displayedRows",{className:k.displayedRows,elementType:_pe,externalForwardedProps:V,ownerState:M});return I.jsx(K,{...X,children:I.jsxs(te,{...G,children:[I.jsx(J,{...de}),R.length>1&&I.jsx(ce,{...ue,children:y}),R.length>1&&I.jsx(be,{variant:"standard",...!$.variant&&{input:A4||(A4=I.jsx(tS,{}))},value:A,onChange:w,id:U,labelId:W,...$,classes:{...$.classes,root:Ae(k.input,k.selectRoot,($.classes||{}).root),select:Ae(k.select,($.classes||{}).select),icon:Ae(k.selectIcon,($.classes||{}).icon)},disabled:l,...Pe,children:R.map(Te=>p.createElement(Ee,{...ge,key:Te.label?Te.label:Te,value:Te.value?Te.value:Te},Te.label?Te.label:Te))}),I.jsx(xe,{...Oe,children:v({from:d===0?0:S*A+1,to:Q(),count:d===-1?-1:d,page:S})}),I.jsx(a,{className:k.actions,backIconButtonProps:o,count:d,nextIconButtonProps:b,onPageChange:_,page:S,rowsPerPage:A,showFirstButton:O,showLastButton:T,slotProps:E.actions,slots:L.actions,getItemAriaLabel:h,disabled:l})]})})});function Cpe(e){return _t("MuiTableRow",e)}const j4=St("MuiTableRow",["root","selected","hover","head","footer"]),Epe=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return yt({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},Cpe,t)},Ope=ve("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(gt(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${j4.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${j4.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:dr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),M4="tr",gb=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiTableRow"}),{className:a,component:o=M4,hover:i=!1,selected:u=!1,...d}=n,l=p.useContext(iS),h={...n,component:o,hover:i,selected:u,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},v=Epe(h);return I.jsx(Ope,{as:o,ref:r,className:Ae(v.root,a),role:o===M4?null:"row",ownerState:h,...d})}),Ppe=ot(I.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}));function Rpe(e){return _t("MuiTableSortLabel",e)}const R2=St("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),kpe=e=>{const{classes:t,direction:r,active:n}=e,a={root:["root",n&&"active",`direction${Ue(r)}`],icon:["icon",`iconDirection${Ue(r)}`]};return yt(a,Rpe,t)},Tpe=ve(Du,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(gt(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${R2.icon}`]:{opacity:.5}},[`&.${R2.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${R2.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),Ape=ve("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${Ue(r.direction)}`]]}})(gt(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),Ipe=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiTableSortLabel"}),{active:a=!1,children:o,className:i,direction:u="asc",hideSortIcon:d=!1,IconComponent:l=Ppe,slots:h={},slotProps:v={},...y}=n,b={...n,active:a,direction:u,hideSortIcon:d,IconComponent:l},_=kpe(b),w={slots:h,slotProps:v},[S,A]=mt("root",{elementType:Tpe,externalForwardedProps:w,ownerState:b,className:Ae(_.root,i),ref:r}),[R,C]=mt("icon",{elementType:Ape,externalForwardedProps:w,ownerState:b,className:_.icon});return I.jsxs(S,{disableRipple:!0,component:"span",...A,...y,children:[o,d&&!a?null:I.jsx(R,{as:l,...C})]})});function jpe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Mpe(e,t,r,n={},a=()=>{}){const{ease:o=jpe,duration:i=300}=n;let u=null;const d=t[e];let l=!1;const h=()=>{l=!0},v=y=>{if(l){a(new Error("Animation cancelled"));return}u===null&&(u=y);const b=Math.min(1,(y-u)/i);if(t[e]=o(b)*(r-d)+d,b>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(v)};return d===r?(a(new Error("Element already at target position")),h):(requestAnimationFrame(v),h)}const Fpe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Lpe(e){const{onChange:t,...r}=e,n=p.useRef(),a=p.useRef(null),o=()=>{n.current=a.current.offsetHeight-a.current.clientHeight};return ci(()=>{const i=e0(()=>{const d=n.current;o(),d!==n.current&&t(n.current)}),u=di(a.current);return u.addEventListener("resize",i),()=>{i.clear(),u.removeEventListener("resize",i)}},[t]),p.useEffect(()=>{o(),t(n.current)},[t]),I.jsx("div",{style:Fpe,...r,ref:a})}function $pe(e){return _t("MuiTabScrollButton",e)}const Dpe=St("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Npe=e=>{const{classes:t,orientation:r,disabled:n}=e;return yt({root:["root",r,n&&"disabled"]},$pe,t)},Bpe=ve(Du,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Dpe.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),zpe=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiTabScrollButton"}),{className:a,slots:o={},slotProps:i={},direction:u,orientation:d,disabled:l,...h}=n,v=$u(),y={isRtl:v,...n},b=Npe(y),_=o.StartScrollButtonIcon??RU,w=o.EndScrollButtonIcon??kU,S=Jm({elementType:_,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y}),A=Jm({elementType:w,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:y});return I.jsx(Bpe,{component:"div",className:Ae(b.root,a),ref:r,role:null,ownerState:y,tabIndex:null,...h,style:{...h.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${v?-90:90}deg)`}},children:u==="left"?I.jsx(_,{...S}):I.jsx(w,{...A})})});function qpe(e){return _t("MuiTabs",e)}const k2=St("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),F4=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,L4=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Z_=(e,t,r)=>{let n=!1,a=r(e,t);for(;a;){if(a===e.firstChild){if(n)return;n=!0}const o=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||o)a=r(e,a);else{a.focus();return}}},Upe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:a,scrollableY:o,centered:i,scrollButtonsHideMobile:u,classes:d}=e;return yt({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",a&&"scrollableX",o&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},qpe,d)},Vpe=ve("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${k2.scrollButtons}`]:t.scrollButtons},{[`& .${k2.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(gt(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${k2.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),Wpe=ve("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Hpe=ve("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),Kpe=ve("span",{name:"MuiTabs",slot:"Indicator"})(gt(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),Gpe=ve(Lpe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),$4={},TU=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiTabs"}),a=fo(),o=$u(),{"aria-label":i,"aria-labelledby":u,action:d,centered:l=!1,children:h,className:v,component:y="div",allowScrollButtonsMobile:b=!1,indicatorColor:_="primary",onChange:w,orientation:S="horizontal",ScrollButtonComponent:A,scrollButtons:R="auto",selectionFollowsFocus:C,slots:O={},slotProps:T={},TabIndicatorProps:E={},TabScrollButtonProps:L={},textColor:j="primary",value:M,variant:k="standard",visibleScrollbar:$=!1,...B}=n,z=k==="scrollable",U=S==="vertical",W=U?"scrollTop":"scrollLeft",Q=U?"top":"left",V=U?"bottom":"right",K=U?"clientHeight":"clientWidth",X=U?"height":"width",te={...n,component:y,allowScrollButtonsMobile:b,indicatorColor:_,orientation:S,vertical:U,scrollButtons:R,textColor:j,variant:k,visibleScrollbar:$,fixed:!z,hideScrollbar:z&&!$,scrollableX:z&&!U,scrollableY:z&&U,centered:l&&!z,scrollButtonsHideMobile:!b},G=Upe(te),J=Jm({elementType:O.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:te}),de=Jm({elementType:O.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:te}),[ce,ue]=p.useState(!1),[be,Pe]=p.useState($4),[Ee,ge]=p.useState(!1),[xe,Oe]=p.useState(!1),[Te,Me]=p.useState(!1),[Fe,$e]=p.useState({overflow:"hidden",scrollbarWidth:0}),et=new Map,qe=p.useRef(null),re=p.useRef(null),oe={slots:O,slotProps:{indicator:E,scrollButton:L,...T}},pe=()=>{const ie=qe.current;let me;if(ie){const Ke=ie.getBoundingClientRect();me={clientWidth:ie.clientWidth,scrollLeft:ie.scrollLeft,scrollTop:ie.scrollTop,scrollWidth:ie.scrollWidth,top:Ke.top,bottom:Ke.bottom,left:Ke.left,right:Ke.right}}let Le;if(ie&&M!==!1){const Ke=re.current.children;if(Ke.length>0){const at=Ke[et.get(M)];Le=at?at.getBoundingClientRect():null}}return{tabsMeta:me,tabMeta:Le}},Se=uo(()=>{const{tabsMeta:ie,tabMeta:me}=pe();let Le=0,Ke;U?(Ke="top",me&&ie&&(Le=me.top-ie.top+ie.scrollTop)):(Ke=o?"right":"left",me&&ie&&(Le=(o?-1:1)*(me[Ke]-ie[Ke]+ie.scrollLeft)));const at={[Ke]:Le,[X]:me?me[X]:0};if(typeof be[Ke]!="number"||typeof be[X]!="number")Pe(at);else{const Et=Math.abs(be[Ke]-at[Ke]),ut=Math.abs(be[X]-at[X]);(Et>=1||ut>=1)&&Pe(at)}}),ne=(ie,{animation:me=!0}={})=>{me?Mpe(W,qe.current,ie,{duration:a.transitions.duration.standard}):qe.current[W]=ie},we=ie=>{let me=qe.current[W];U?me+=ie:me+=ie*(o?-1:1),ne(me)},Ne=()=>{const ie=qe.current[K];let me=0;const Le=Array.from(re.current.children);for(let Ke=0;Ke<Le.length;Ke+=1){const at=Le[Ke];if(me+at[K]>ie){Ke===0&&(me=ie);break}me+=at[K]}return me},De=()=>{we(-1*Ne())},ht=()=>{we(Ne())},[lt,{onChange:bt,...Pt}]=mt("scrollbar",{className:Ae(G.scrollableX,G.hideScrollbar),elementType:Gpe,shouldForwardComponentProp:!0,externalForwardedProps:oe,ownerState:te}),Tt=p.useCallback(ie=>{bt==null||bt(ie),$e({overflow:null,scrollbarWidth:ie})},[bt]),[Je,Dt]=mt("scrollButtons",{className:Ae(G.scrollButtons,L.className),elementType:zpe,externalForwardedProps:oe,ownerState:te,additionalProps:{orientation:S,slots:{StartScrollButtonIcon:O.startScrollButtonIcon||O.StartScrollButtonIcon,EndScrollButtonIcon:O.endScrollButtonIcon||O.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:J,endScrollButtonIcon:de}}}),Lt=()=>{const ie={};ie.scrollbarSizeListener=z?I.jsx(lt,{...Pt,onChange:Tt}):null;const Le=z&&(R==="auto"&&(Ee||xe)||R===!0);return ie.scrollButtonStart=Le?I.jsx(Je,{direction:o?"right":"left",onClick:De,disabled:!Ee,...Dt}):null,ie.scrollButtonEnd=Le?I.jsx(Je,{direction:o?"left":"right",onClick:ht,disabled:!xe,...Dt}):null,ie},Ct=uo(ie=>{const{tabsMeta:me,tabMeta:Le}=pe();if(!(!Le||!me)){if(Le[Q]<me[Q]){const Ke=me[W]+(Le[Q]-me[Q]);ne(Ke,{animation:ie})}else if(Le[V]>me[V]){const Ke=me[W]+(Le[V]-me[V]);ne(Ke,{animation:ie})}}}),ct=uo(()=>{z&&R!==!1&&Me(!Te)});p.useEffect(()=>{const ie=e0(()=>{qe.current&&Se()});let me;const Le=Et=>{Et.forEach(ut=>{ut.removedNodes.forEach(Ot=>{me==null||me.unobserve(Ot)}),ut.addedNodes.forEach(Ot=>{me==null||me.observe(Ot)})}),ie(),ct()},Ke=di(qe.current);Ke.addEventListener("resize",ie);let at;return typeof ResizeObserver<"u"&&(me=new ResizeObserver(ie),Array.from(re.current.children).forEach(Et=>{me.observe(Et)})),typeof MutationObserver<"u"&&(at=new MutationObserver(Le),at.observe(re.current,{childList:!0})),()=>{ie.clear(),Ke.removeEventListener("resize",ie),at==null||at.disconnect(),me==null||me.disconnect()}},[Se,ct]),p.useEffect(()=>{const ie=Array.from(re.current.children),me=ie.length;if(typeof IntersectionObserver<"u"&&me>0&&z&&R!==!1){const Le=ie[0],Ke=ie[me-1],at={root:qe.current,threshold:.99},Et=qt=>{ge(!qt[0].isIntersecting)},ut=new IntersectionObserver(Et,at);ut.observe(Le);const Ot=qt=>{Oe(!qt[0].isIntersecting)},At=new IntersectionObserver(Ot,at);return At.observe(Ke),()=>{ut.disconnect(),At.disconnect()}}},[z,R,Te,h==null?void 0:h.length]),p.useEffect(()=>{ue(!0)},[]),p.useEffect(()=>{Se()}),p.useEffect(()=>{Ct($4!==be)},[Ct,be]),p.useImperativeHandle(d,()=>({updateIndicator:Se,updateScrollButtons:ct}),[Se,ct]);const[Kt,lr]=mt("indicator",{className:Ae(G.indicator,E.className),elementType:Kpe,externalForwardedProps:oe,ownerState:te,additionalProps:{style:be}}),en=I.jsx(Kt,{...lr});let Bn=0;const Xi=p.Children.map(h,ie=>{if(!p.isValidElement(ie))return null;const me=ie.props.value===void 0?Bn:ie.props.value;et.set(me,Bn);const Le=me===M;return Bn+=1,p.cloneElement(ie,{fullWidth:k==="fullWidth",indicator:Le&&!ce&&en,selected:Le,selectionFollowsFocus:C,onChange:w,textColor:j,value:me,...Bn===1&&M===!1&&!ie.props.tabIndex?{tabIndex:0}:{}})}),Pa=ie=>{if(ie.altKey||ie.shiftKey||ie.ctrlKey||ie.metaKey)return;const me=re.current,Le=Sa(me).activeElement;if(Le.getAttribute("role")!=="tab")return;let at=S==="horizontal"?"ArrowLeft":"ArrowUp",Et=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(at="ArrowRight",Et="ArrowLeft"),ie.key){case at:ie.preventDefault(),Z_(me,Le,L4);break;case Et:ie.preventDefault(),Z_(me,Le,F4);break;case"Home":ie.preventDefault(),Z_(me,null,F4);break;case"End":ie.preventDefault(),Z_(me,null,L4);break}},ia=Lt(),[Yi,Bo]=mt("root",{ref:r,className:Ae(G.root,v),elementType:Vpe,externalForwardedProps:{...oe,...B,component:y},ownerState:te}),[zo,Is]=mt("scroller",{ref:qe,className:G.scroller,elementType:Wpe,externalForwardedProps:oe,ownerState:te,additionalProps:{style:{overflow:Fe.overflow,[U?`margin${o?"Left":"Right"}`:"marginBottom"]:$?void 0:-Fe.scrollbarWidth}}}),[Ht,le]=mt("list",{ref:re,className:Ae(G.list,G.flexContainer),elementType:Hpe,externalForwardedProps:oe,ownerState:te,getSlotProps:ie=>({...ie,onKeyDown:me=>{var Le;Pa(me),(Le=ie.onKeyDown)==null||Le.call(ie,me)}})});return I.jsxs(Yi,{...Bo,children:[ia.scrollButtonStart,ia.scrollbarSizeListener,I.jsxs(zo,{...Is,children:[I.jsx(Ht,{"aria-label":i,"aria-labelledby":u,"aria-orientation":S==="vertical"?"vertical":null,role:"tablist",...le,children:Xi}),ce&&en]}),ia.scrollButtonEnd]})});function Qpe(e){return _t("MuiTextField",e)}St("MuiTextField",["root"]);const Xpe={standard:nS,filled:ZI,outlined:aj},Ype=e=>{const{classes:t}=e;return yt({root:["root"]},Qpe,t)},Jpe=ve(uU,{name:"MuiTextField",slot:"Root"})({}),s0=p.forwardRef(function(t,r){const n=wt({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:i,className:u,color:d="primary",defaultValue:l,disabled:h=!1,error:v=!1,FormHelperTextProps:y,fullWidth:b=!1,helperText:_,id:w,InputLabelProps:S,inputProps:A,InputProps:R,inputRef:C,label:O,maxRows:T,minRows:E,multiline:L=!1,name:j,onBlur:M,onChange:k,onFocus:$,placeholder:B,required:z=!1,rows:U,select:W=!1,SelectProps:Q,slots:V={},slotProps:K={},type:X,value:te,variant:G="outlined",...J}=n,de={...n,autoFocus:o,color:d,disabled:h,error:v,fullWidth:b,multiline:L,required:z,select:W,variant:G},ce=Ype(de),ue=cd(w),be=_&&ue?`${ue}-helper-text`:void 0,Pe=O&&ue?`${ue}-label`:void 0,Ee=Xpe[G],ge={slots:V,slotProps:{input:R,inputLabel:S,htmlInput:A,formHelperText:y,select:Q,...K}},xe={},Oe=ge.slotProps.inputLabel;G==="outlined"&&(Oe&&typeof Oe.shrink<"u"&&(xe.notched=Oe.shrink),xe.label=O),W&&((!Q||!Q.native)&&(xe.id=void 0),xe["aria-describedby"]=void 0);const[Te,Me]=mt("root",{elementType:Jpe,shouldForwardComponentProp:!0,externalForwardedProps:{...ge,...J},ownerState:de,className:Ae(ce.root,u),ref:r,additionalProps:{disabled:h,error:v,fullWidth:b,required:z,color:d,variant:G}}),[Fe,$e]=mt("input",{elementType:Ee,externalForwardedProps:ge,additionalProps:xe,ownerState:de}),[et,qe]=mt("inputLabel",{elementType:cU,externalForwardedProps:ge,ownerState:de}),[re,oe]=mt("htmlInput",{elementType:"input",externalForwardedProps:ge,ownerState:de}),[pe,Se]=mt("formHelperText",{elementType:ej,externalForwardedProps:ge,ownerState:de}),[ne,we]=mt("select",{elementType:oS,externalForwardedProps:ge,ownerState:de}),Ne=I.jsx(Fe,{"aria-describedby":be,autoComplete:a,autoFocus:o,defaultValue:l,fullWidth:b,multiline:L,name:j,rows:U,maxRows:T,minRows:E,type:X,value:te,id:ue,inputRef:C,onBlur:M,onChange:k,onFocus:$,placeholder:B,inputProps:oe,slots:{input:V.htmlInput?re:void 0},...$e});return I.jsxs(Te,{...Me,children:[O!=null&&O!==""&&I.jsx(et,{htmlFor:ue,id:Pe,...qe,children:O}),W?I.jsx(ne,{"aria-describedby":be,id:ue,labelId:Pe,value:te,input:Ne,...we,children:i}):Ne,_&&I.jsx(pe,{id:be,...Se,children:_})]})}),po=_q({themeId:qi});function Zpe(e,t){const{disableHysteresis:r=!1,threshold:n=100,target:a}=t,o=e.current;return a&&(e.current=a.pageYOffset!==void 0?a.pageYOffset:a.scrollTop),!r&&o!==void 0&&e.current<o?!1:e.current>n}const ehe=typeof window<"u"?window:null;function AU(e={}){const{getTrigger:t=Zpe,target:r=ehe,...n}=e,a=p.useRef(),[o,i]=p.useState(()=>t(a,n));return p.useEffect(()=>{if(r===null)return i(!1);const u=()=>{i(t(a,{target:r,...n}))};return u(),r.addEventListener("scroll",u,{passive:!0}),()=>{r.removeEventListener("scroll",u,{passive:!0})}},[r,t,JSON.stringify(n)]),o}const l0=ot(I.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"}));var Ty=function(){return Ty=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ty.apply(this,arguments)},IU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Ir=function(e){var t=Mt({props:e,name:jU}),r=t.alignIcon,n=r===void 0?"left":r,a=t.children,o=t.className,i=t.disabled,u=t.label,d=t.color,l=d===void 0?"primary":d,h=t.size,v=h===void 0?"small":h,y=t.to,b=IU(t,["alignIcon","children","className","disabled","label","color","size","to"]),_=nt(),w=u?_(u,{_:u}):void 0,S=rhe(y),A=po(function(R){return R.breakpoints.down("sm")});return A?u&&!i?p.createElement(Ca,{title:w},p.createElement(vn,Ty({"aria-label":w,className:o,color:l,size:"large"},S,b),a)):p.createElement(vn,Ty({className:o,color:l,disabled:i,size:"large"},S,b),a):p.createElement(the,Ty({className:o,color:l,size:v,"aria-label":w,disabled:i,startIcon:n==="left"&&a?a:void 0,endIcon:n==="right"&&a?a:void 0},S,b),w)},jU="RaButton",the=ve(Dn,{name:jU,overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),rhe=function(e){if(e!=null){if(typeof e=="string")return{to:e};var t=e.redirect,r=e.replace,n=e.state,a=IU(e,["redirect","replace","state"]);return{to:a,redirect:t,replace:r,state:n}}};const nhe=ot(I.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}));var aw=function(){return aw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},aw.apply(this,arguments)},MU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ahe=function(e){var t=Mt({props:e,name:yb}),r=t.className,n=t.icon,a=n===void 0?ihe:n,o=t.label,i=o===void 0?"ra.action.create":o;t.resource;var u=t.scrollToTop,d=u===void 0?!0:u,l=t.variant,h=t.to,v=t.state,y=v===void 0?{}:v,b=MU(t,["className","icon","label","resource","scrollToTop","variant","to","state"]),_=er(t);if(!_)throw new Error("<CreateButton> components should be used inside a <Resource> component or provided the resource prop.");var w=Pl({action:"create",resource:_}),S=w.canAccess,A=w.isPending,R=pd(),C=nt(),O=po(function(L){return L.breakpoints.down("md")}),T=_x({},ohe.get(String(d)),y),E=uhe(h);return!S||A?null:O?p.createElement(she,aw({component:ui,to:R({resource:_,type:"create"}),state:T,color:"primary",className:Ae(Jk.floating,r),"aria-label":i&&C(i)},b,E),a):p.createElement(lhe,aw({component:ui,to:R({resource:_,type:"create"}),state:T,className:Ae(Jk.root,r),label:i,variant:l},b,E),a)},ohe=new Map([["true",{_scrollToTop:!0}],["false",{}]]),ihe=p.createElement(nhe,null),yb="RaCreateButton",Jk={root:"".concat(yb,"-root"),floating:"".concat(yb,"-floating")},she=ve(yce,{name:yb,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["&.".concat(Jk.floating)]={color:(r.vars||r).palette.primary.contrastText,margin:0,top:"auto",right:20,bottom:60,left:"auto",position:"fixed",zIndex:1e3},t}),lhe=ve(Ir,{name:yb,overridesResolver:function(e,t){return t.root}})({});const ij=p.memo(ahe,function(e,t){return e.resource===t.resource&&e.label===t.label&&e.translate===t.translate&&e.disabled===t.disabled&&ii(e.to,t.to)&&ii(e.state,t.state)});var uhe=function(e){if(e!=null){if(typeof e=="string")return{to:e};var t=e.redirect,r=e.replace,n=e.state,a=MU(e,["redirect","replace","state"]);return{to:a,redirect:t,replace:r,state:n}}};const che=ot(I.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}));var Zk=function(){return Zk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Zk.apply(this,arguments)},dhe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},fhe=function(e){var t=e.icon,r=t===void 0?hhe:t,n=e.label,a=n===void 0?"ra.action.show":n;e.record,e.resource;var o=e.scrollToTop,i=o===void 0?!0:o,u=dhe(e,["icon","label","record","resource","scrollToTop"]),d=er(e);if(!d)throw new Error("<ShowButton> components should be used inside a <Resource> component or provided the resource prop.");var l=gr(e),h=pd(),v=Pl({action:"show",resource:d,record:l}),y=v.canAccess,b=v.isPending;return!l||!y||b?null:p.createElement(Ir,Zk({component:ui,to:h({type:"show",resource:d,id:l.id}),state:phe[String(i)],label:a,onClick:mhe},u),r)},phe={true:{_scrollToTop:!0},false:{}},hhe=p.createElement(che,null),mhe=function(e){return e.stopPropagation()},vhe=p.memo(fhe,function(e,t){return e.resource===t.resource&&(e.record&&t.record?e.record.id===t.record.id:e.record==t.record)&&e.label===t.label&&e.disabled===t.disabled});const sS=ot(I.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}));var eT=function(){return eT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},eT.apply(this,arguments)},ghe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},e1,yhe=function(e){var t=Mt({props:e,name:Ay}),r=t.className,n=t.icon,a=n===void 0?_he:n,o=t.textPrimary,i=o===void 0?"ra.page.access_denied":o,u=t.textSecondary,d=u===void 0?"ra.message.access_denied":u,l=ghe(t,["className","icon","textPrimary","textSecondary"]),h=nt();return p.createElement(bhe,eT({className:Ae(bb.root,r)},l),p.createElement("div",{className:bb.message},a,p.createElement(Qt,{variant:"h5",sx:{mt:3,color:"text.secondary"}},h(i,{_:i})),p.createElement(Qt,{variant:"body2"},h(d,{_:d}))))},Ay="RaAccessDenied",bb={root:"".concat(Ay,"-root"),icon:"".concat(Ay,"-icon"),message:"".concat(Ay,"-message")},bhe=ve("div",{name:Ay,overridesResolver:function(e,t){return t.root}})((e1={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%"},e1["& .".concat(bb.message)]={textAlign:"center",paddingTop:"1em",paddingBottom:"1em",opacity:.5},e1["& .".concat(bb.icon)]={width:"9em",height:"9em"},e1)),_he=p.createElement(l0,{className:bb.icon});const whe=ot(I.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}));var lS=function(){var e=po(function(t){return t==null?void 0:t.breakpoints.down("sm")},{noSsr:!0});return xa("sidebar.open",!e)},xhe=function(e){var t=Mt({props:e,name:ow}),r=nt(),n=t.className,a=lS(),o=a[0],i=a[1];return p.createElement(Ca,{className:n,title:r(o?"ra.action.close_menu":"ra.action.open_menu",{_:"Open/Close menu"}),enterDelay:500},p.createElement(She,{color:"inherit",onClick:function(){return i(!o)}},p.createElement(whe,{classes:{root:o?iw.menuButtonIconOpen:iw.menuButtonIconClosed}})))},ow="RaSidebarToggleButton",iw={menuButtonIconClosed:"".concat(ow,"-menuButtonIconClosed"),menuButtonIconOpen:"".concat(ow,"-menuButtonIconOpen")},She=ve(vn,{name:ow,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(iw.menuButtonIconClosed)]={transition:r.transitions.create(["transform"],{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),transform:"rotate(0deg)"},t["& .".concat(iw.menuButtonIconOpen)]={transition:r.transitions.create(["transform"],{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),transform:"rotate(180deg)"},t}),tT=function(){return tT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},tT.apply(this,arguments)},Che=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},t1,T2,Ehe=function(e){var t=Mt({props:e,name:Iy}),r=t.className,n=t.onClick,a=t.sx,o=Che(t,["className","onClick","sx"]),i=EY(),u=fo();return p.createElement(Ohe,{className:r,sx:a},p.createElement($ve,{className:"".concat(cm.loadedIcon," ").concat(i&&cm.loadedLoading),onClick:n}),i&&p.createElement(xd,tT({className:Ae("app-loader",cm.loader),color:"inherit",size:u.spacing(2),thickness:6},o)))},Iy="RaLoadingIndicator",cm={loader:"".concat(Iy,"-loader"),loadedLoading:"".concat(Iy,"-loadedLoading"),loadedIcon:"".concat(Iy,"-loadedIcon")},Ohe=ve("div",{name:Iy,overridesResolver:function(e,t){return t.root}})((t1={position:"relative"},t1["& .".concat(cm.loadedIcon)]=(T2={},T2["&.".concat(cm.loadedLoading)]={opacity:0},T2),t1["& .".concat(cm.loader)]={position:"absolute",top:"30%",left:"30%"},t1));const Phe=ot(I.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"})),Rhe=ot(I.jsx("path",{d:"M13 3h-2v10h2zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83"}));var rT=function(){return rT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},rT.apply(this,arguments)},khe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},A2,The=p.forwardRef(function(t,r){var n=Mt({props:t,name:sj}),a=n.className,o=n.redirectTo,i=n.icon,u=khe(n,["className","redirectTo","icon"]),d=_I().authenticated,l=po(function(b){return b.breakpoints.down("sm")}),h=nt(),v=hv(),y=p.useCallback(function(){return v(null,o,!1)},[o,v]);return d?p.createElement(Ahe,rT({className:Ae("logout",a),onClick:y,ref:r,component:l?"span":"li"},u),p.createElement(Bf,{className:FU.icon},i||p.createElement(Rhe,{fontSize:"small"})),p.createElement(tm,null,h("ra.auth.logout",{_:"Logout"}))):null}),sj="RaLogout",FU={icon:"".concat(sj,"-icon")},Ahe=ve(oi,{name:sj,overridesResolver:function(e,t){return t.root}})((A2={},A2["& .".concat(FU.icon)]={},A2)),Ihe=p.createContext(void 0),jhe=function(e){var t=e.children,r=e.value;return p.createElement(Ihe.Provider,{value:r},t)},LU=function(e){var t=Mt({props:e,name:sw}),r=p.useState(null),n=r[0],a=r[1],o=nt(),i=Zte(),u=i.isPending,d=i.identity,l=pi(),h=po(function(E){return E.breakpoints.up("sm")}),v=t.children,y=v===void 0?l?p.createElement(The,null):null:v,b=t.className,_=t.label,w=_===void 0?"ra.auth.user_menu":_,S=t.icon,A=S===void 0?Fhe:S,R=function(E){return a(E.currentTarget)},C=p.useCallback(function(){return a(null)},[]),O=p.useMemo(function(){return{onClose:C}},[C]);if(!y)return null;var T=!!n;return p.createElement(Mhe,{className:b},h&&!u&&(d!=null&&d.fullName)?p.createElement(Dn,{"aria-label":w&&o(w,{_:w}),className:jy.userButton,color:"inherit",startIcon:d.avatar?p.createElement(hb,{className:jy.avatar,src:d.avatar,alt:d.fullName}):A,onClick:R,variant:"text"},d.fullName):p.createElement(Ca,{title:w&&o(w,{_:"Profile"})},p.createElement(vn,{"aria-label":w&&o(w,{_:"Profile"}),"aria-owns":T?"menu-appbar":void 0,"aria-haspopup":!0,color:"inherit",onClick:R},!u&&(d!=null&&d.avatar)?p.createElement(hb,{className:jy.avatar,src:d.avatar,alt:d.fullName}):A)),p.createElement(jhe,{value:O},p.createElement(aS,{id:"menu-appbar",disableScrollLock:!0,anchorEl:n,anchorOrigin:Lhe,transformOrigin:$he,open:T,onClose:C},y)))},sw="RaUserMenu",jy={userButton:"".concat(sw,"-userButton"),avatar:"".concat(sw,"-avatar")},Mhe=ve("div",{name:sw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(jy.userButton)]={textTransform:"none",marginInlineStart:r.spacing(.5)},t["& .".concat(jy.avatar)]={width:r.spacing(3),height:r.spacing(3)},t}),Fhe=p.createElement(Phe,null),Lhe={vertical:"bottom",horizontal:"right"},$he={vertical:"top",horizontal:"right"},Dhe=function(e){var t=e.children,r=e.className,n=AU();return p.createElement(iU,{appear:!1,direction:"down",in:!n,className:r},t)},nT=function(){return nT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},nT.apply(this,arguments)},Nhe=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Bhe=function(e){return p.createElement(Qt,nT({variant:"h6",color:"inherit",id:"react-admin-title"},e,{sx:Nhe([{flex:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}],Array.isArray(e.sx)?e.sx:[e.sx],!0)}))},$U=p.createContext({}),uS=function(e){var t={},r=t.lightTheme,n=t.darkTheme,a=t.defaultTheme,o=p.useContext($U);return{lightTheme:r||o.lightTheme,darkTheme:n||o.darkTheme,defaultTheme:a??o.defaultTheme}};const zhe=ot(I.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"})),qhe=ot(I.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"}));var DU=function(e){var t=uS().darkTheme,r=po("(prefers-color-scheme: dark)",{noSsr:!0}),n=xa("theme",e??(r&&t?"dark":"light")),a=n[0],o=n[1];return[t!=null?a:"light",o]},Uhe=function(e){var t=e.children,r=uS(),n=r.lightTheme,a=r.darkTheme,o=r.defaultTheme,i=po("(prefers-color-scheme: dark)",{noSsr:!0}),u=DU(o||(i&&a?"dark":"light"))[0],d=p.useMemo(function(){try{return cb(u==="dark"?a:n)}catch(l){return console.warn("Failed to reuse custom theme from store",l),cb()}},[u,n,a]);return p.createElement(zoe,{theme:d},t)},NU={typography:{h6:{fontWeight:400}},sidebar:{width:240,closedWidth:50},components:{MuiAutocomplete:{defaultProps:{fullWidth:!0},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiTextField:{defaultProps:{variant:"filled",margin:"dense",size:"small",fullWidth:!0},variants:[{props:{},style:function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={width:"100%"},t}}]},MuiFormControl:{defaultProps:{variant:"filled",margin:"dense",size:"small",fullWidth:!0}},MuiTableCell:{styleOverrides:{root:{"&.MuiTableCell-paddingCheckbox":{padding:"0 8px 0 8px"}}}},RaSimpleFormIterator:{defaultProps:{fullWidth:!0}},RaTranslatableInputs:{defaultProps:{fullWidth:!0}}}},Vhe=Ln(NU,{palette:{background:{default:"#fafafb"},secondary:{light:"#6ec6ff",main:"#2196f3",dark:"#0069c0",contrastText:"#fff"}},components:{MuiFilledInput:{styleOverrides:{root:{backgroundColor:"rgba(0, 0, 0, 0.04)","&$disabled":{backgroundColor:"rgba(0, 0, 0, 0.04)"}}}}}}),Whe=Ln(NU,{palette:{mode:"dark",primary:{main:"#90caf9"},background:{default:"#313131"}}}),Hhe=function(){var e=nt(),t=uS(),r=t.darkTheme,n=t.defaultTheme,a=po("(prefers-color-scheme: dark)",{noSsr:!0}),o=DU(n||(a&&r?"dark":"light")),i=o[0],u=o[1],d=function(){u(i==="dark"?"light":"dark")},l=e("ra.action.toggle_theme",{_:"Toggle Theme"});return Qe.createElement(Ca,{title:l,enterDelay:300},Qe.createElement(vn,{color:"inherit",onClick:d,"aria-label":l},i==="dark"?Qe.createElement(qhe,null):Qe.createElement(zhe,null)))},aT=function(){return aT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},aT.apply(this,arguments)},Khe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Ghe=p.memo(function(e){var t=Mt({props:e,name:rm}),r=t.alwaysOn,n=t.children,a=t.className,o=t.color,i=o===void 0?"secondary":o,u=t.toolbar,d=u===void 0?Xhe:u,l=t.userMenu,h=l===void 0?Yhe:l,v=t.container,y=v===void 0?r?"div":Dhe:v,b=Khe(t,["alwaysOn","children","className","color","toolbar","userMenu","container"]),_=po(function(w){return w.breakpoints.down("sm")});return p.createElement(y,{className:a},p.createElement(Jhe,aT({className:zf.appBar,color:i},b),p.createElement(yv,{disableGutters:!0,variant:_?"regular":"dense",className:zf.toolbar},p.createElement(xhe,{className:zf.menuButton}),p.Children.count(n)===0?p.createElement(Bhe,{className:zf.title}):n,d,typeof h=="boolean"?h===!0?p.createElement(LU,null):null:h)))}),Qhe=function(){var e=XA(),t=uS().darkTheme;return p.createElement(p.Fragment,null,e&&e.length>1?p.createElement(Ave,null):null,t&&p.createElement(Hhe,null),p.createElement(Ehe,null))},Xhe=p.createElement(Qhe,null),Yhe=p.createElement(LU,null),rm="RaAppBar",zf={appBar:"".concat(rm,"-appBar"),toolbar:"".concat(rm,"-toolbar"),menuButton:"".concat(rm,"-menuButton"),title:"".concat(rm,"-title")},Jhe=ve(Vie,{name:rm,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(zf.toolbar)]=(r={padding:"0 ".concat(n.spacing(1))},r[n.breakpoints.down("md")]={minHeight:n.spacing(6)},r),t["& .".concat(zf.menuButton)]={marginRight:"0.2em"},t["& .".concat(zf.title)]={},t});const Zhe=ot([I.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),I.jsx("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")]);var lw=function(){return lw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},lw.apply(this,arguments)},eme=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},BU=function(e){var t=e.title,r=e.defaultTitle,n=e.className,a=eme(e,["title","defaultTitle","className"]),o=nt();return p.createElement("span",{className:n},t?typeof t=="string"?p.createElement("span",lw({},a),o(t,{_:t})):t:p.createElement("span",lw({},a),r))};const tme=ot(I.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}));var zU=function(e){var t=Mt({props:e,name:My}),r=t.children,n=t.editor,a=t.preferenceKey,o=t.openButtonLabel,i=o===void 0?"ra.configurable.customize":o,u=t.sx,d="preferences.".concat(a),l=wI(),h=!!l,v=nt(),y=l||{},b=y.isEnabled,_=y.setEditor,w=y.preferenceKey,S=y.setPreferenceKey,A=d===w,R=p.useRef(A),C=p.useRef(null),O=p.useState(!1),T=O[0],E=O[1];if(p.useEffect(function(){R.current=A},[A]),p.useEffect(function(){return function(){R.current&&(S&&S(null),_&&_(null))}},[_,S]),!h)return r;var L=function(){if(!_)throw new Error("Configurable must be used inside a PreferencesEditorContextProvider");if(_(p.cloneElement(n,{preferenceKey:d,key:d})),!S)throw new Error("Configurable must be used inside a PreferencesEditorContextProvider");S(d)},j=function(){E(!0)},M=function(){E(!1)};return p.createElement(V6,{value:d},p.createElement(rme,{className:Ae(_u.root,b&&_u.editMode,A&&_u.editorActive),sx:u,ref:C,onMouseEnter:b?j:void 0,onMouseLeave:b?M:void 0},r),p.createElement(rj,{open:!!b&&(T||A),sx:{pointerEvents:"none","& .MuiPaper-root":{pointerEvents:"auto",borderRadius:10,padding:"2px",lineHeight:0,backgroundColor:"warning.light",color:"warning.contrastText","&:hover":{cursor:"pointer"}}},anchorEl:C.current,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"center"},onClose:M,PaperProps:{elevation:1,onMouseEnter:j,onMouseLeave:M,title:v(i),onClick:L},disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,disableScrollLock:!0,marginThreshold:8},p.createElement(tme,{fontSize:"12px"})))},My="RaConfigurable",_u={root:"".concat(My,"-root"),editMode:"".concat(My,"-editMode"),editorActive:"".concat(My,"-editorActive")},rme=ve("span",{name:My,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative",display:"inline-block"},t["&.".concat(_u.editMode)]={transition:r.transitions.create("outline"),outline:"color-mix(in srgb, ".concat((r.vars||r).palette.warning.main,", transparent 30%) solid 2px")},t["&.".concat(_u.editMode,":hover ")]={outline:"color-mix(in srgb, ".concat((r.vars||r).palette.warning.main,", transparent 50%) solid 2px")},t["&.".concat(_u.editMode,".").concat(_u.editorActive," , &.").concat(_u.editMode,".").concat(_u.editorActive,":hover ")]={outline:"".concat((r.vars||r).palette.warning.main," solid 2px")},t});const nme=ot(I.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}));var qU=function(e){var t=e.selected,r=e.label,n=e.onToggle,a=e.onMove,o=e.source,i=e.index,u=er(),d=p.useRef(null),l=p.useRef(null),h=p.useRef(null),v=p.useCallback(function(S){l.current=S.clientX,h.current=S.clientY},[]),y=function(){document.addEventListener("dragover",v)},b=function(S){var A=S.target;A.classList.add("drag-active");var R=A.closest("ul");if(!(l.current==null||h.current==null)){var C=document.elementFromPoint(l.current,h.current),O=C===null?A:C.closest("li");O&&(O.classList.contains("dragIcon")&&(O=O.parentNode),O!==A&&R===O.parentNode.closest("ul")&&(d.current=O.dataset.index,O===A.nextSibling&&(O=O.nextSibling),R.insertBefore(A,O)))}},_=function(S){var A=S.target,R=A.closest("ul"),C=l.current!=null&&h.current!=null?document.elementFromPoint(l.current,h.current):null,O=l.current==null||h.current==null||C===null?A:C.closest("li");if(h.current!==null&&R&&!O){var T=A.closest("ul");T&&h.current>T.getBoundingClientRect().bottom?O=R.lastChild:O=R.firstChild}O&&R===O.closest("ul")?a&&a(A.dataset.index,d.current):(S.preventDefault(),S.stopPropagation()),A.classList.remove("drag-active"),document.removeEventListener("dragover",v)},w=function(S){S.preventDefault(),S.dataTransfer.dropEffect="move"};return p.createElement(ome,{key:o,draggable:a?"true":void 0,onDrag:a?b:void 0,onDragStart:a?y:void 0,onDragEnd:a?_:void 0,onDragOver:a?w:void 0,"data-index":i},p.createElement("label",{htmlFor:"switch_".concat(i)},p.createElement(xU,{checked:t,onChange:n,name:"".concat(i),id:"switch_".concat(i),size:"small",sx:{mr:.5,ml:-.5}}),p.createElement(Qt,{variant:"body2",component:"span"},p.createElement(Vi,{label:r,source:o,resource:u}))),a&&p.createElement(nme,{className:"dragIcon",color:"disabled",fontSize:"small"}))},ame="RaFieldToggle",ome=ve("li",{name:ame,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{display:"flex",justifyContent:"space-between",paddingLeft:0,"& svg":{cursor:"move"},"&.drag-active":{background:"transparent",color:"transparent",outline:"1px solid ".concat((t.vars||t).palette.action.selected),"& .MuiSwitch-root, & svg":{visibility:"hidden"}}}}),Ec=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},ime=function(e){var t=e.name,r=t===void 0?"columns":t,n=e.availableName,a=n===void 0?"availableColumns":n,o=nt(),i=ad(a,[]),u=i[0],d=i[1],l=ad("omit",[])[0],h=ad(r,u.filter(function(A){return!(l!=null&&l.includes(A.source))}).map(function(A){return A.index})),v=h[0],y=h[1],b=function(A){A.target.checked?y(u.filter(function(R){return R.index===A.target.name||v.includes(R.index)}).map(function(R){return R.index})):y(v.filter(function(R){return R!==A.target.name}))},_=function(A,R){var C=u.findIndex(function(E){return E.index==A}),O=u.findIndex(function(E){return E.index==R});if(!(C===-1||O===-1)){var T;C>O?T=Ec(Ec(Ec(Ec([],u.slice(0,O),!0),[u[C]],!1),u.slice(O,C),!0),u.slice(C+1),!0):T=Ec(Ec(Ec(Ec([],u.slice(0,C),!0),u.slice(C+1,O+1),!0),[u[C]],!1),u.slice(O+1),!0),d(T),y(function(E){return T.filter(function(L){return E.includes(L.index)}).map(function(L){return L.index})})}},w=function(){y([])},S=function(){y(u.map(function(A){return A.index}))};return p.createElement(Mo,{sx:{pt:.5}},p.createElement(Mo,{component:"ul",sx:{paddingInlineStart:0,m:0}},u.map(function(A){return p.createElement(qU,{key:A.index,source:A.source,label:A.label,index:A.index,selected:v.includes(A.index),onToggle:b,onMove:_})})),p.createElement(Mo,{onDrop:function(A){return A.preventDefault()},sx:{display:"flex",justifyContent:"space-between",mx:-.5,mt:1}},p.createElement(Dn,{size:"small",onClick:w},o("ra.inspector.hideAll",{_:"Hide All"})),p.createElement(Dn,{size:"small",onClick:S},o("ra.inspector.showAll",{_:"Show All"}))))};const sme=ot(I.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"})),lme=ot(I.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}));var ume=function(){var e=nt();return W6("ra.configurable.inspector.title",{_:"Inspector"}),p.createElement(Qt,null,e("ra.configurable.inspector.content",{_:"Hover the application UI elements to configure them"}))},UU=function(){var e=wI(),t=e.isEnabled,r=e.disable,n=e.title,a=e.titleOptions,o=e.editor,i=e.preferenceKey,u=p.useRef(!1),d=Rte(i),l=fo(),h=nt(),v=p.useState(0),y=v[0],b=v[1],_=xa("ra.inspector.position",{x:(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8,y:8}),w=_[0],S=_[1],A=p.useState(),R=A[0],C=A[1],O=function(L){var j=document==null?void 0:document.elementFromPoint(L.clientX,L.clientY);(j==null?void 0:j.id)==="inspector-dialog-title"&&(u.current=!0,L.dataTransfer.effectAllowed="move",L.dataTransfer.setData("inspector",""),setTimeout(function(){L.target.classList.add("hide")},0),C({x:L.clientX-w.x,y:L.clientY-w.y}))},T=function(L){u.current&&R&&(S({x:L.clientX-R.x,y:L.clientY-R.y}),L.target.classList.remove("hide"),u.current=!1)};p.useEffect(function(){if(t){var L=function(j){j.dataTransfer.types.includes("inspector")&&j.preventDefault()};return document==null||document.addEventListener("dragover",L),function(){document==null||document.removeEventListener("dragover",L)}}},[t]),p.useEffect(function(){if(t){var L=function(){window==null||window.requestAnimationFrame(function(){S(function(j){return{x:Math.min(j.x,(document==null?void 0:document.body.clientWidth)-l.breakpoints.values.sm/2-8),y:Math.min(j.y,(window==null?void 0:window.innerHeight)-50)}})})};return L(),window==null||window.addEventListener("resize",L),function(){window==null||window.removeEventListener("resize",L)}}},[t,S,l.breakpoints.values.sm]);var E=function(){d(),b(function(L){return L+1})};return t?p.createElement(cme,{className:Fy.modal,elevation:3,draggable:!0,onDragStart:O,onDragEnd:T,sx:{left:w.x,top:w.y}},p.createElement("div",{className:Fy.title},p.createElement(Qt,{id:"inspector-dialog-title",variant:"overline",component:"div",sx:{py:1,px:2,flex:"1"}},n&&h(n,a)),p.createElement("span",{id:"inspector-toolbar"}),i&&p.createElement(vn,{"aria-label":h("ra.action.remove"),onClick:E,size:"small"},p.createElement(lme,{fontSize:"inherit"})),p.createElement(vn,{"aria-label":h("ra.action.close"),onClick:r,size:"small",sx:{mr:1}},p.createElement(sme,{fontSize:"inherit"}))),p.createElement("div",{className:Fy.content,key:y},p.createElement(V6,{value:i},o||p.createElement(ume,null)))):null},x1="RaInspector",Fy={modal:"".concat(x1,"-modal"),title:"".concat(x1,"-title"),content:"".concat(x1,"-content")},cme=ve(wd,{name:x1,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"fixed",zIndex:r.zIndex.modal+1,width:r.breakpoints.values.sm/2,transition:r.transitions.create(["height","width"]),"&.hide":{display:"none"}},t["& .".concat(Fy.title)]={display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"move"},t["& .".concat(Fy.content)]={overflowY:"auto",maxHeight:"75vh",padding:r.spacing(2),paddingTop:0},t});UU.displayName="Inspector";var td=function(){return td=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},td.apply(this,arguments)},VU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},dme=function(){var e=sre("","");return p.createElement("form",null,p.createElement(s0,td({label:"title",variant:"filled",size:"small",fullWidth:!0,sx:{mb:1}},e)))},fme=function(e){var t=e.preferenceKey,r=e.title,n=e.defaultTitle,a=VU(e,["preferenceKey","title","defaultTitle"]),o=an().pathname;return p.createElement(zU,{editor:p.createElement(dme,null),preferenceKey:t||"".concat(o,".title"),sx:{"&.RaConfigurable-editMode":{margin:"2px"}}},p.createElement(pme,td({title:r,defaultTitle:n},a)))},pme=function(e){var t=e.title,r=e.defaultTitle,n=VU(e,["title","defaultTitle"]),a=ad()[0],o=nt(),i=gr();return a?p.createElement("span",td({className:n.className},n),o(a,td(td({},i),{_:a}))):p.createElement(p.Fragment,null,p.createElement(BU,td({title:t,defaultTitle:r},n)))},uw=function(){return uw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},uw.apply(this,arguments)},hme=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Ed=function(e){var t=e.defaultTitle,r=e.title,n=e.preferenceKey,a=hme(e,["defaultTitle","title","preferenceKey"]),o=p.useState(function(){return typeof document<"u"?document.getElementById("react-admin-title"):null}),i=o[0],u=o[1];if(p.useEffect(function(){u(function(l){var h=typeof document<"u"&&document.body.contains(l);return l&&h?l:typeof document<"u"?document.getElementById("react-admin-title"):null})},[]),!i)return null;bI(!t&&!r,"Missing title prop in <Title> element");var d=n===!1?p.createElement(BU,uw({title:r,defaultTitle:t},a)):p.createElement(fme,uw({title:r,defaultTitle:t,preferenceKey:n},a));return p.createElement(p.Fragment,null,ax.createPortal(d,i))},oT=function(){return oT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},oT.apply(this,arguments)},mme=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},r1,vme=function(e){var t=Mt({props:e,name:Ly}),r=t.className,n=t.icon,a=n===void 0?yme:n,o=t.textPrimary,i=o===void 0?"ra.page.authentication_error":o,u=t.textSecondary,d=u===void 0?"ra.message.authentication_error":u,l=mme(t,["className","icon","textPrimary","textSecondary"]),h=nt(),v=mI();return p.createElement(gme,oT({className:Ae(_b.root,r)},l),p.createElement(Ed,{defaultTitle:v}),p.createElement("div",{className:_b.message},a,p.createElement(Qt,{variant:"h5",sx:{mt:3,color:"text.secondary"}},h(i,{_:i})),p.createElement(Qt,{variant:"body2"},h(d,{_:d}))))},Ly="RaAuthenticationError",_b={root:"".concat(Ly,"-root"),icon:"".concat(Ly,"-icon"),message:"".concat(Ly,"-message")},gme=ve("div",{name:Ly,overridesResolver:function(e,t){return t.root}})((r1={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%"},r1["& .".concat(_b.message)]={textAlign:"center",paddingTop:"1em",paddingBottom:"1em",opacity:.5},r1["& .".concat(_b.icon)]={width:"9em",height:"9em"},r1)),yme=p.createElement(Zhe,{className:_b.icon});const bme=ot(I.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),_me=ot(I.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}));var $y=function(){return $y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},$y.apply(this,arguments)},wme=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},lj=function(e){var t,r=Mt({props:e,name:cw}),n=r.className,a=r.isOpen,o=a===void 0?!1:a,i=r.loading,u=r.title,d=r.content,l=r.cancel,h=l===void 0?"ra.action.cancel":l,v=r.confirm,y=v===void 0?"ra.action.confirm":v,b=r.confirmColor,_=b===void 0?"primary":b,w=r.ConfirmIcon,S=w===void 0?bme:w,A=r.CancelIcon,R=A===void 0?_me:A,C=r.onClose,O=r.onConfirm,T=r.translateOptions,E=T===void 0?{}:T,L=r.titleTranslateOptions,j=L===void 0?E:L,M=r.contentTranslateOptions,k=M===void 0?E:M,$=wme(r,["className","isOpen","loading","title","content","cancel","confirm","confirmColor","ConfirmIcon","CancelIcon","onClose","onConfirm","translateOptions","titleTranslateOptions","contentTranslateOptions"]),B=nt(),z=p.useCallback(function(W){W.stopPropagation(),O(W)},[O]),U=p.useCallback(function(W){W.stopPropagation()},[]);return p.createElement(xme,$y({className:n,open:o,onClose:C,onClick:U,"aria-labelledby":"alert-dialog-title"},$),p.createElement(o0,{id:"alert-dialog-title"},typeof u=="string"?B(u,$y({_:u},j)):u),p.createElement(a0,null,typeof d=="string"?p.createElement(rS,null,B(d,$y({_:d},k))):d),p.createElement(JI,null,p.createElement(Dn,{disabled:i,onClick:C,startIcon:p.createElement(R,null)},B(h,{_:h})),p.createElement(Dn,{disabled:i,onClick:z,className:Ae("ra-confirm",(t={},t[dw.confirmWarning]=_==="warning",t[dw.confirmPrimary]=_==="primary",t)),autoFocus:!0,startIcon:p.createElement(S,null)},B(y,{_:y}))))},cw="RaConfirm",dw={confirmPrimary:"".concat(cw,"-confirmPrimary"),confirmWarning:"".concat(cw,"-confirmWarning")},xme=ve(n0,{name:cw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(dw.confirmPrimary)]={color:(r.vars||r).palette.primary.main},t["& .".concat(dw.confirmWarning)]={color:(r.vars||r).palette.error.main,"&:hover":{backgroundColor:"color-mix(in srgb, ".concat((r.vars||r).palette.error.main,", transparent 12%)"),"@media (hover: none)":{backgroundColor:"transparent"}}},t});const Sme=ot(I.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}));var wb=function(){return wb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},wb.apply(this,arguments)},Cme=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},uj=p.forwardRef(function(e,t){var r=Mt({props:e,name:fw}),n=r.className,a=r.primaryText,o=r.leftIcon,i=r.onClick;r.sidebarIsOpen;var u=r.tooltipProps,d=r.children,l=Cme(r,["className","primaryText","leftIcon","onClick","sidebarIsOpen","tooltipProps","children"]),h=po(function(O){return O.breakpoints.down("md")}),v=nt(),y=Lu(),b=lS(),_=b[0],w=b[1],S=p.useCallback(function(O){h&&w(!1),i&&i(O)},[w,h,i]),A=(typeof r.to=="string"?r.to:r.to.pathname)||"",R=fK({path:A,end:A==="".concat(y,"/")}),C=function(){var O;return Qe.createElement(Eme,wb({className:Ae(n,(O={},O[Dy.active]=!!R,O)),component:Ome,ref:t,tabIndex:0},l,{onClick:S}),o&&Qe.createElement(Bf,{className:Dy.icon},o),d||(typeof a=="string"?v(a,{_:a}):a))};return _?C():Qe.createElement(Ca,wb({title:typeof a=="string"?v(a,{_:a}):a,placement:"right"},u),C())}),fw="RaMenuItemLink",Dy={active:"".concat(fw,"-active"),icon:"".concat(fw,"-icon")},Eme=ve(oi,{name:fw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={color:(r.vars||r).palette.text.secondary},t["&.".concat(Dy.active)]={color:(r.vars||r).palette.text.primary},t["& .".concat(Dy.icon)]={minWidth:r.spacing(5)},t[".MuiList-dense > & > .".concat(Dy.icon)]={minWidth:r.spacing(3.5)},t}),Ome=p.forwardRef(function(e,t){return Qe.createElement(ui,wb({ref:t},e))}),iT=function(){return iT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},iT.apply(this,arguments)},Pme=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},WU=function(e){var t=Lu(),r=e.leftIcon,n=r===void 0?Qe.createElement(Sme,null):r,a=e.to,o=a===void 0?"".concat(t,"/"):a,i=e.primaryText,u=i===void 0?"ra.page.dashboard":i,d=Pme(e,["leftIcon","to","primaryText"]);return Qe.createElement(uj,iT({leftIcon:n,to:o,primaryText:u},d))};const Rme=ot(I.jsx("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM12 17.3c-.72 0-1.3-.58-1.3-1.3s.58-1.3 1.3-1.3 1.3.58 1.3 1.3-.58 1.3-1.3 1.3m1-4.3h-2V7h2z"})),cS=ot(I.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),HU=ot(I.jsx("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}));var sT=function(){return sT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},sT.apply(this,arguments)},kme=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},KU=function(e){var t=Mt({props:e,name:bu}),r=t.error,n=t.errorComponent,a=t.errorInfo,o=t.resetErrorBoundary,i=t.className,u=kme(t,["error","errorComponent","errorInfo","resetErrorBoundary","className"]),d=nt(),l=mI();return bz(o),n?p.createElement(n,{error:r,errorInfo:a,title:l}):p.createElement(p.Fragment,null,l&&p.createElement(Ed,{title:l}),p.createElement(Tme,sT({className:i},u),p.createElement("h1",{className:ul.title,role:"alert"},p.createElement(Rme,{className:ul.icon}),d("ra.page.error")),p.createElement("div",null,d("ra.message.error")),!1,p.createElement("div",{className:ul.toolbar},p.createElement(Dn,{variant:"contained",startIcon:p.createElement(HU,null),onClick:Ame},d("ra.action.back")))))},bu="RaError",ul={title:"".concat(bu,"-title"),icon:"".concat(bu,"-icon"),panel:"".concat(bu,"-panel"),panelSummary:"".concat(bu,"-panelSummary"),panelDetails:"".concat(bu,"-panelDetails"),toolbar:"".concat(bu,"-toolbar"),advice:"".concat(bu,"-advice")},Tme=ve("div",{name:bu,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},t[r.breakpoints.down("md")]={padding:"1em"},t.fontFamily="Roboto, sans-serif",t.opacity=.5,t["& .".concat(ul.title)]={display:"flex",alignItems:"center"},t["& .".concat(ul.icon)]={width:"2em",height:"2em",marginRight:"0.5em"},t["& .".concat(ul.panel)]={marginTop:"1em",maxWidth:"60em"},t["& .".concat(ul.panelSummary)]={userSelect:"all"},t["& .".concat(ul.panelDetails)]={whiteSpace:"pre-wrap"},t["& .".concat(ul.toolbar)]={marginTop:"2em"},t["& .".concat(ul.advice)]={marginTop:"2em"},t});function Ame(){window.history.go(-1)}var pw=function(){return pw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},pw.apply(this,arguments)},Ime=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},jme=function(e){var t=Mt({props:e,name:ga}),r=t.appBarAlwaysOn,n=t.children;t.closedSize,t.size;var a=Ime(t,["appBarAlwaysOn","children","closedSize","size"]),o=po(function(v){return v.breakpoints.down("sm")}),i=lS(),u=i[0],d=i[1];oX();var l=AU(),h=function(){return d(!u)};return o?p.createElement(D4,pw({variant:"temporary",open:u,onClose:h,classes:ya},a),n):p.createElement(D4,pw({variant:"permanent",open:u,onClose:h,classes:ya,className:Ae(l&&!r?ya.appBarCollapsed:"",u?Mme:Fme)},a),p.createElement("div",{className:ya.fixed},n))},ga="RaSidebar",ya={docked:"".concat(ga,"-docked"),paper:"".concat(ga,"-paper"),paperAnchorLeft:"".concat(ga,"-paperAnchorLeft"),paperAnchorRight:"".concat(ga,"-paperAnchorRight"),paperAnchorTop:"".concat(ga,"-paperAnchorTop"),paperAnchorBottom:"".concat(ga,"-paperAnchorBottom"),paperAnchorDockedLeft:"".concat(ga,"-paperAnchorDockedLeft"),paperAnchorDockedTop:"".concat(ga,"-paperAnchorDockedTop"),paperAnchorDockedRight:"".concat(ga,"-paperAnchorDockedRight"),paperAnchorDockedBottom:"".concat(ga,"-paperAnchorDockedBottom"),modal:"".concat(ga,"-modal"),fixed:"".concat(ga,"-fixed"),appBarCollapsed:"".concat(ga,"-appBarCollapsed")},Mme="".concat(ga,"-open"),Fme="".concat(ga,"-closed"),D4=ve(hce,{name:ga,slot:"Root",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(){return!0}})(function(e){var t,r,n,a=e.open,o=e.theme;return t={height:"calc(100vh - 3em)",marginTop:0,transition:o.transitions.create("margin",{easing:o.transitions.easing.easeOut,duration:o.transitions.duration.enteringScreen})},t["&.".concat(ya.appBarCollapsed)]=(r={marginTop:o.spacing(-6)},r[o.breakpoints.down("sm")]={marginTop:o.spacing(-7)},r.transition=o.transitions.create("margin",{easing:o.transitions.easing.sharp,duration:o.transitions.duration.leavingScreen}),r),t["& .".concat(ya.docked)]={},t["& .".concat(ya.paper)]={},t["& .".concat(ya.paperAnchorLeft)]={},t["& .".concat(ya.paperAnchorRight)]={},t["& .".concat(ya.paperAnchorTop)]={},t["& .".concat(ya.paperAnchorBottom)]={},t["& .".concat(ya.paperAnchorDockedLeft)]={},t["& .".concat(ya.paperAnchorDockedTop)]={},t["& .".concat(ya.paperAnchorDockedRight)]={},t["& .".concat(ya.paperAnchorDockedBottom)]={},t["& .".concat(ya.modal)]={},t["& .".concat(ya.fixed)]={position:"fixed",height:"calc(100vh - 3em)",overflowX:"hidden",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}},t["& .MuiPaper-root"]=(n={position:"relative",width:a?or(o,"sidebar.width",GU):or(o,"sidebar.closedWidth",QU),transition:o.transitions.create("width",{easing:o.transitions.easing.sharp,duration:o.transitions.duration.leavingScreen}),backgroundColor:"transparent",borderRight:"none"},n[o.breakpoints.only("xs")]={marginTop:0,height:"100vh",position:"inherit",backgroundColor:(o.vars||o).palette.background.default},n[o.breakpoints.up("md")]={border:"none"},n.zIndex="inherit",n),t}),GU=240,QU=55;const bv=ot(I.jsx("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}));var XU=function(e){var t=e.name,r=cv(),n=Pl({action:"list",resource:t}),a=n.canAccess,o=n.error,i=n.isPending,u=dp(),d=pd();return!r||!r[t]||i||a===!1||o!=null?null:p.createElement(uj,{to:d({resource:t,type:"list"}),state:{_scrollToTop:!0},primaryText:p.createElement(p.Fragment,null,u(t,2)),leftIcon:r[t].icon?p.createElement(r[t].icon):p.createElement(bv,null)})},YU=function(){var e=cv();return p.createElement(p.Fragment,null,Object.keys(e).filter(function(t){return e[t].hasList}).map(function(t){return p.createElement(XU,{key:t,name:t})}))},lT=function(){return lT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},lT.apply(this,arguments)},Lme=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},u0=function(e){var t,r=Mt({props:e,name:hw}),n=r.children,a=r.className,o=Lme(r,["children","className"]),i=nte(),u=lS()[0];return p.createElement($me,lT({className:Ae((t={},t[mw.open]=u,t[mw.closed]=!u,t),a)},o),i&&!n&&p.createElement(WU,null),n??p.createElement(YU,null))};u0.Item=uj;u0.DashboardItem=WU;u0.ResourceItem=XU;u0.ResourceItems=YU;var hw="RaMenu",mw={open:"".concat(hw,"-open"),closed:"".concat(hw,"-closed")},$me=ve(fU,{name:hw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flexDirection:"column",justifyContent:"flex-start"},t[r.breakpoints.only("xs")]={marginTop:0},t.transition=r.transitions.create("width",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.leavingScreen}),t["&.".concat(mw.open)]={width:or(r,"sidebar.width",GU)},t["&.".concat(mw.closed)]={width:or(r,"sidebar.closedWidth",QU)},t}),uT=function(){return uT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},uT.apply(this,arguments)},Dme=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Od=function(e){var t=Mt({props:e,name:vw}),r=t.className,n=t.loadingPrimary,a=n===void 0?"ra.page.loading":n,o=t.loadingSecondary,i=o===void 0?"ra.message.loading":o,u=t.timeout,d=u===void 0?1e3:u,l=Dme(t,["className","loadingPrimary","loadingSecondary","timeout"]),h=Cx(d),v=nt();return h?p.createElement(Nme,uT({className:r},l),p.createElement("div",{className:gw.message},p.createElement(xd,{className:gw.icon}),p.createElement(Qt,{variant:"h5",sx:{mt:3,color:"text.secondary"}},v(a,{_:a})),p.createElement(Qt,{variant:"body2"},v(i,{_:i})))):null},vw="RaLoading",gw={icon:"".concat(vw,"-icon"),message:"".concat(vw,"-message")},Nme=ve("div",{name:vw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%"},t["& .".concat(gw.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",color:(r.vars||r).palette.text.disabled,paddingTop:"1em",paddingBottom:"1em"},t["& .".concat(gw.icon)]={width:"9em",height:"9em"},t}),cT=function(){return cT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},cT.apply(this,arguments)},Bme=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},zme=function(e){var t=Mt({props:e,name:Ny}),r=t.appBar,n=r===void 0?Ghe:r,a=t.appBarAlwaysOn,o=t.children,i=t.className,u=t.error,d=t.menu,l=d===void 0?u0:d,h=t.sidebar,v=h===void 0?jme:h,y=Bme(t,["appBar","appBarAlwaysOn","children","className","error","menu","sidebar"]),b=p.useState(void 0),_=b[0],w=b[1],S=function(A,R){w(R)};return Qe.createElement(qme,cT({className:Ae("layout",i)},y),Qe.createElement(Gve,null),Qe.createElement("div",{className:dm.appFrame},Qe.createElement(n,{alwaysOn:a}),Qe.createElement("main",{className:dm.contentWithSidebar},Qe.createElement(v,{appBarAlwaysOn:a},Qe.createElement(l,null)),Qe.createElement("div",{id:"main-content",className:dm.content},Qe.createElement(A6,{onError:S,fallbackRender:function(A){var R=A.error,C=A.resetErrorBoundary;return Qe.createElement(KU,{error:R,errorComponent:u,errorInfo:_,resetErrorBoundary:C})}},Qe.createElement(p.Suspense,{fallback:Qe.createElement(Od,null)},o)))),Qe.createElement(UU,null)))},Ny="RaLayout",dm={appFrame:"".concat(Ny,"-appFrame"),contentWithSidebar:"".concat(Ny,"-contentWithSidebar"),content:"".concat(Ny,"-content")},qme=ve("div",{name:Ny,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n,a=e.theme;return t={display:"flex",flexDirection:"column",zIndex:1,minHeight:"100vh",backgroundColor:(a.vars||a).palette.background.default,position:"relative",minWidth:"fit-content",width:"100%"},t["& .".concat(dm.appFrame)]=(r={display:"flex",flexDirection:"column",flexGrow:1,marginTop:a.spacing(6)},r[a.breakpoints.down("sm")]={marginTop:a.spacing(7)},r),t["& .".concat(dm.contentWithSidebar)]={display:"flex",flexGrow:1,transition:a.transitions.create("margin",{easing:a.transitions.easing.easeOut,duration:a.transitions.duration.enteringScreen})},t["& .".concat(dm.content)]=(n={backgroundColor:(a.vars||a).palette.background.default,zIndex:2,display:"flex",flexDirection:"column",flexGrow:1,flexBasis:0,padding:0},n[a.breakpoints.up("xs")]={paddingRight:a.spacing(1),paddingLeft:a.spacing(1)},n),t}),dT=function(){return dT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},dT.apply(this,arguments)},Ume=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},cj=function(e){var t=Mt({props:e,name:JU}),r=t.className,n=t.timeout,a=n===void 0?1e3:n,o=Ume(t,["className","timeout"]),i=Cx(a);return i?p.createElement(Vme,dT({className:r},o)):p.createElement(Mo,{component:"span",sx:{my:1,height:4,display:"block"}})};cj.displayName="LinearProgress";var JU="RaLinearProgress",Vme=ve(sde,{name:JU,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{margin:"".concat(t.spacing(1)," 0"),width:t.spacing(20)}}),fT=function(){return fT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},fT.apply(this,arguments)},Wme=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Hme=function(e){var t=e.loadingPrimary,r=t===void 0?"ra.page.loading":t,n=e.loadingSecondary,a=n===void 0?"ra.message.loading":n,o=Wme(e,["loadingPrimary","loadingSecondary"]);return p.createElement(Od,fT({loadingPrimary:r,loadingSecondary:a},o))};const Kme=ot([I.jsx("circle",{cx:"7",cy:"6",r:"2"},"0"),I.jsx("path",{d:"M11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12H2v8c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-8zM7 20H5v-6h2zm4 0H9v-6h2zm4 0h-2v-6h2zm4 0h-2v-6h2zm-.35-14.14-.07-.07c-.57-.62-.82-1.41-.67-2.2L18 3h-1.89l-.06.43c-.2 1.36.27 2.71 1.3 3.72l.07.06c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71m-4 0-.07-.07c-.57-.62-.82-1.41-.67-2.2L14 3h-1.89l-.06.43c-.2 1.36.27 2.71 1.3 3.72l.07.06c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71"},"1")]);var pT=function(){return pT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},pT.apply(this,arguments)},Gme=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Qme=function(e){var t=Mt({props:e,name:By}),r=nt(),n=fp().isPending,a=mI();return n?p.createElement(Od,null):p.createElement(Yme,pT({},Xme(t)),p.createElement(Ed,{defaultTitle:a}),p.createElement("div",{className:fm.message},p.createElement(Kme,{className:fm.icon}),p.createElement("h1",null,r("ra.page.not_found")),p.createElement("div",null,r("ra.message.not_found"),".")),p.createElement("div",{className:fm.toolbar},p.createElement(Dn,{variant:"contained",startIcon:p.createElement(HU,null),onClick:Jme},r("ra.action.back"))))},Xme=function(e){e.staticContext,e.history,e.location,e.match;var t=Gme(e,["staticContext","history","location","match"]);return t},By="RaNotFound",fm={icon:"".concat(By,"-icon"),message:"".concat(By,"-message"),toolbar:"".concat(By,"-toolbar")},Yme=ve("div",{name:By,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flexDirection:"column",justifyContent:"center"},t[r.breakpoints.up("md")]={height:"100%"},t[r.breakpoints.down("md")]={height:"100vh",marginTop:"-3em"},t["& .".concat(fm.icon)]={width:"9em",height:"9em"},t["& .".concat(fm.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",opacity:.5,margin:"0 1em"},t["& .".concat(fm.toolbar)]={textAlign:"center",marginTop:"2em"},t});function Jme(){window.history.go(-1)}var hT=function(){return hT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},hT.apply(this,arguments)},N4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Zme={vertical:"bottom",horizontal:"center"},ZU=function(e){var t,r=Mt({props:e,name:Mf}),n=r.className,a=r.type,o=a===void 0?"info":a,i=r.autoHideDuration,u=i===void 0?4e3:i,d=r.multiLine,l=d===void 0?!1:d,h=r.anchorOrigin,v=h===void 0?Zme:h,y=N4(r,["className","type","autoHideDuration","multiLine","anchorOrigin"]),b=ez(),_=b.notifications,w=b.takeNotification,S=Bee(),A=p.useState(!1),R=A[0],C=A[1],O=p.useState(void 0),T=O[0],E=O[1],L=nt();p.useEffect(function(){var te;if(_.length&&!T){var G=w();G&&(E(G),C(!0))}else _.length&&T&&R&&C(!1);var J=function(de){de.preventDefault();var ce="";return de.returnValue=ce,ce};if(!((te=T==null?void 0:T.notificationOptions)===null||te===void 0)&&te.undoable)return window.addEventListener("beforeunload",J),function(){window.removeEventListener("beforeunload",J)}},[_,T,R,w]);var j=p.useCallback(function(){C(!1)},[C]),M=p.useCallback(function(){var te;if(T&&(!((te=T.notificationOptions)===null||te===void 0)&&te.undoable)){var G=S();G?G({isUndo:!1}):TD.emit("end",{isUndo:!1})}E(void 0)},[T,S]),k=p.useCallback(function(){var te=S();te?te({isUndo:!0}):TD.emit("end",{isUndo:!0}),C(!1)},[S]);if(!T)return null;var $=T.message,B=T.type,z=T.notificationOptions,U=z||{},W=U.autoHideDuration,Q=U.messageArgs,V=U.multiLine,K=U.undoable,X=N4(U,["autoHideDuration","messageArgs","multiLine","undoable"]);return p.createElement($Q.Provider,{value:j},p.createElement(eve,hT({className:n,open:R,message:$&&typeof $=="string"&&L($,Q),autoHideDuration:W===void 0?u:W??void 0,disableWindowBlurListener:K,TransitionProps:{onExited:M},onClose:j,ContentProps:{className:Ae(Fc[B||o],(t={},t[Fc.multiLine]=V||l,t))},action:K?p.createElement(Dn,{color:"primary",className:Fc.undo,size:"small",onClick:k},p.createElement(p.Fragment,null,L("ra.action.undo"))):null,anchorOrigin:v},y,X),$&&typeof $!="string"&&p.isValidElement($)?$:void 0))},Mf="RaNotification",Fc={success:"".concat(Mf,"-success"),error:"".concat(Mf,"-error"),warning:"".concat(Mf,"-warning"),undo:"".concat(Mf,"-undo"),multiLine:"".concat(Mf,"-multiLine")},eve=ve(Ife,{name:Mf,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme,n=e.type;return t={},t["& .".concat(Fc.success)]={backgroundColor:r==null?void 0:r.palette.success.main,color:r==null?void 0:r.palette.success.contrastText},t["& .".concat(Fc.error)]={backgroundColor:r==null?void 0:r.palette.error.main,color:r==null?void 0:r.palette.error.contrastText},t["& .".concat(Fc.warning)]={backgroundColor:r==null?void 0:r.palette.warning.main,color:r==null?void 0:r.palette.warning.contrastText},t["& .".concat(Fc.undo)]={color:n==="success"?r==null?void 0:r.palette.success.contrastText:r==null?void 0:r.palette.primary.light},t["& .".concat(Fc.multiLine)]={whiteSpace:"pre-wrap"},t}),mT=function(){return mT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},mT.apply(this,arguments)},tve=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Qi=function(e){var t=Mt({props:e,name:e9}),r=po(function(n){return n.breakpoints.down("sm")});return p.createElement(rve,mT({disableGutters:!0,variant:r?"regular":"dense"},nve(t)))},e9="RaTopToolbar",rve=ve(yv,{name:e9,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",justifyContent:"flex-end",alignItems:"flex-end",gap:r.spacing(1),whiteSpace:"nowrap",flex:"0 1 auto",padding:r.spacing(.5),paddingBottom:r.spacing(1)},t[r.breakpoints.down("md")]={flex:"0 1 100%"},t[r.breakpoints.down("sm")]={backgroundColor:(r.vars||r).palette.background.paper,padding:0,paddingBottom:0},t}),nve=function(e){e.hasCreate;var t=tve(e,["hasCreate"]);return t},yw=function(){return yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},yw.apply(this,arguments)},vT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ave=function(e){var t=Mt({props:e,name:t9}),r=t.confirmTitle,n=r===void 0?"ra.message.bulk_delete_title":r,a=t.confirmContent,o=a===void 0?"ra.message.bulk_delete_content":a,i=t.confirmColor,u=i===void 0?"primary":i,d=t.icon,l=d===void 0?sve:d,h=t.label,v=h===void 0?"ra.action.delete":h,y=t.mutationMode,b=y===void 0?"pessimistic":y,_=t.mutationOptions,w=_===void 0?{}:_,S=t.successMessage,A=t.onClick,R=vT(t,["confirmTitle","confirmContent","confirmColor","icon","label","mutationMode","mutationOptions","successMessage","onClick"]),C=w.meta,O=vT(w,["meta"]),T=Va(),E=T.selectedIds,L=T.onUnselectItems,j=p.useState(!1),M=j[0],k=j[1],$=Ur(),B=er(t),z=jl(),U=nt(),W=k6(B,{ids:E,meta:C},yw({onSuccess:function(){z(),$(S??"resources.".concat(B,".notifications.deleted"),{type:"info",messageArgs:{smart_count:E.length,_:U("ra.notification.deleted",{smart_count:E.length})},undoable:b==="undoable"}),L(),k(!1)},onError:function(G){$(typeof G=="string"?G:G.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof G=="string"?G:G&&G.message?G.message:void 0}}),k(!1)},mutationMode:b},O)),Q=W[0],V=W[1].isPending,K=function(G){k(!0),G.stopPropagation()},X=function(){k(!1)},te=function(G){Q(),typeof A=="function"&&A(G)};return p.createElement(p.Fragment,null,p.createElement(ive,yw({onClick:K,label:v},ove(R)),l),p.createElement(lj,{isOpen:M,loading:V,title:n,content:o,confirmColor:u,titleTranslateOptions:{smart_count:E.length,name:U("resources.".concat(B,".forcedCaseName"),{smart_count:E.length,_:ku.humanize(U("resources.".concat(B,".name"),{smart_count:E.length,_:B?ku.inflect(B,E.length):void 0}),!0)})},contentTranslateOptions:{smart_count:E.length,name:U("resources.".concat(B,".forcedCaseName"),{smart_count:E.length,_:ku.humanize(U("resources.".concat(B,".name"),{smart_count:E.length,_:B?ku.inflect(B,E.length):void 0}),!0)})},onConfirm:te,onClose:X}))},ove=function(e){e.classes,e.label;var t=vT(e,["classes","label"]);return t},t9="RaBulkDeleteWithConfirmButton",ive=ve(Ir,{name:t9,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{color:(t.vars||t).palette.error.main,"&:hover":{backgroundColor:"color-mix(in srgb, ".concat((t.vars||t).palette.error.main,", transparent 12%)"),"@media (hover: none)":{backgroundColor:"transparent"}}}}),sve=p.createElement(sS,null),bw=function(){return bw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},bw.apply(this,arguments)},gT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},lve=function(e){var t=Mt({props:e,name:r9}),r=t.label,n=r===void 0?"ra.action.delete":r,a=t.icon,o=a===void 0?uve:a,i=t.onClick,u=t.mutationOptions,d=u===void 0?{}:u,l=t.successMessage,h=gT(t,["label","icon","onClick","mutationOptions","successMessage"]),v=d.meta,y=gT(d,["meta"]),b=Va(),_=b.selectedIds,w=b.onUnselectItems,S=Ur(),A=er(t),R=jl(),C=nt(),O=k6(),T=O[0],E=O[1].isPending,L=function(j){T(A,{ids:_,meta:v},bw({onSuccess:function(){S(l??"resources.".concat(A,".notifications.deleted"),{type:"info",messageArgs:{smart_count:_.length,_:C("ra.notification.deleted",{smart_count:_.length})},undoable:!0}),w()},onError:function(M){S(typeof M=="string"?M:M.message||"ra.notification.http_error",{type:"error",messageArgs:{_:typeof M=="string"?M:M&&M.message?M.message:void 0}}),R()},mutationMode:"undoable"},y)),typeof i=="function"&&i(j)};return p.createElement(dve,bw({onClick:L,label:n,disabled:E},cve(h)),o)},uve=p.createElement(sS,null),cve=function(e){e.classes,e.label;var t=gT(e,["classes","label"]);return t},r9="RaBulkDeleteWithUndoButton",dve=ve(Ir,{name:r9,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{color:(t.vars||t).palette.error.main,"&:hover":{backgroundColor:"color-mix(in srgb, ".concat((t.vars||t).palette.error.main,", transparent 12%)"),"@media (hover: none)":{backgroundColor:"transparent"}}}}),_w=function(){return _w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},_w.apply(this,arguments)},fve=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},dS=function(e){var t=e.mutationMode,r=t===void 0?"undoable":t,n=fve(e,["mutationMode"]),a=er(n);if(!a)throw new Error("<BulkDeleteButton> components should be used inside a <Resource> component or provided with a resource prop.");var o=Pl({action:"delete",resource:a}),i=o.canAccess,u=o.isPending;return!i||u?null:r==="undoable"?p.createElement(lve,_w({},n)):p.createElement(ave,_w({mutationMode:r},n))};const n9=ot(I.jsx("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}));var yT=function(){return yT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},yT.apply(this,arguments)},pve=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},hve=function(e){var t=e.label,r=t===void 0?"ra.action.delete":t,n=e.className,a=e.icon,o=a===void 0?mve:a,i=e.onClick,u=e.redirect,d=u===void 0?"list":u,l=e.mutationOptions,h=e.color,v=h===void 0?"error":h,y=e.successMessage,b=pve(e,["label","className","icon","onClick","redirect","mutationOptions","color","successMessage"]),_=gr(e),w=er(e),S=tJ({record:_,resource:w,redirect:d,onClick:i,mutationOptions:l,successMessage:y}),A=S.isPending,R=S.handleDelete;return p.createElement(Ir,yT({onClick:R,disabled:A,label:r,className:Ae("ra-delete-button",n),key:"button",color:v},b),o)},mve=p.createElement(sS,null),zy=function(){return zy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},zy.apply(this,arguments)},vve=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},a9=function(e){var t=e.className,r=e.confirmTitle,n=e.confirmContent,a=e.confirmColor,o=a===void 0?"primary":a,i=e.icon,u=i===void 0?gve:i,d=e.label,l=d===void 0?"ra.action.delete":d,h=e.mutationMode,v=h===void 0?"pessimistic":h,y=e.onClick,b=e.redirect,_=b===void 0?"list":b,w=e.translateOptions,S=w===void 0?{}:w,A=e.titleTranslateOptions,R=A===void 0?S:A,C=e.contentTranslateOptions,O=C===void 0?S:C,T=e.mutationOptions,E=e.color,L=E===void 0?"error":E,j=e.successMessage,M=vve(e,["className","confirmTitle","confirmContent","confirmColor","icon","label","mutationMode","onClick","redirect","translateOptions","titleTranslateOptions","contentTranslateOptions","mutationOptions","color","successMessage"]),k=nt(),$=gr(e),B=er(e),z=nJ({record:$,redirect:_,mutationMode:v,onClick:y,mutationOptions:T,resource:B,successMessage:j}),U=z.open,W=z.isPending,Q=z.handleDialogOpen,V=z.handleDialogClose,K=z.handleDelete,X=Hb(B),te=X($),G="resources.".concat(B,".message.delete_title"),J="resources.".concat(B,".message.delete_content"),de=k("resources.".concat(B,".forcedCaseName"),{smart_count:1,_:ku.humanize(k("resources.".concat(B,".name"),{smart_count:1,_:B?ku.singularize(B):void 0}),!0)});return p.isValidElement(te)&&(te="#".concat($==null?void 0:$.id)),Qe.createElement(p.Fragment,null,Qe.createElement(Ir,zy({onClick:Q,label:l,className:Ae("ra-delete-button",t),key:"button",color:L},M),u),Qe.createElement(lj,{isOpen:U,loading:W,title:r??G,content:n??J,confirmColor:o,titleTranslateOptions:zy({recordRepresentation:te,name:de,id:$==null?void 0:$.id,_:r??k("ra.message.delete_title",{recordRepresentation:te,name:de,id:$==null?void 0:$.id})},R),contentTranslateOptions:zy({recordRepresentation:te,name:de,id:$==null?void 0:$.id,_:n??k("ra.message.delete_content",{recordRepresentation:te,name:de,id:$==null?void 0:$.id})},O),onConfirm:K,onClose:V}))},gve=Qe.createElement(sS,null),ww=function(){return ww=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ww.apply(this,arguments)},yve=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},_v=function(e){var t=e.mutationMode,r=yve(e,["mutationMode"]),n=gr(e),a=er(e);if(!a)throw new Error("<DeleteButton> components should be used inside a <Resource> component or provided the resource prop.");var o=Pl({action:"delete",resource:a,record:n}),i=o.canAccess,u=o.isPending,d=rI();if(!n||n.id==null||!i||u)return null;var l=t||(d!=null&&d.mutationMode?d.mutationMode:"undoable");return l==="undoable"?p.createElement(hve,ww({record:n},r)):p.createElement(a9,ww({mutationMode:l,record:n},r))};const bve=ot(I.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}));var bT=function(){return bT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},bT.apply(this,arguments)},_ve=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},wve=function(e){var t=Mt({props:e,name:dj}),r=t.icon,n=r===void 0?Sve:r,a=t.label,o=a===void 0?"ra.action.edit":a,i=t.scrollToTop,u=i===void 0?!0:i,d=t.className,l=_ve(t,["icon","label","scrollToTop","className"]),h=er(t);if(!h)throw new Error("<EditButton> components should be used inside a <Resource> component or provided with a resource prop. (The <Resource> component set the resource prop for all its children).");var v=gr(t),y=pd(),b=Pl({action:"edit",resource:h,record:v}),_=b.canAccess,w=b.isPending;return!v||!_||w?null:p.createElement(Ove,bT({component:ui,to:y({type:"edit",resource:h,id:v.id}),state:xve[String(u)],label:o,onClick:Cve,className:Ae(Eve.root,d)},l),n)},xve={true:{_scrollToTop:!0},false:{}},Sve=p.createElement(bve,null),Cve=function(e){return e.stopPropagation()},dj="RaEditButton",Eve={root:"".concat(dj,"-root")},Ove=ve(Ir,{name:dj,overridesResolver:function(e,t){return t.root}})({}),qy=function(){return qy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},qy.apply(this,arguments)},o9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},c0=function(e){var t=e.maxResults,r=t===void 0?1e3:t,n=e.onClick,a=e.label,o=a===void 0?"ra.action.export":a,i=e.icon,u=i===void 0?Pve:i,d=e.exporter,l=e.meta,h=o9(e,["maxResults","onClick","label","icon","exporter","meta"]),v=Va(),y=v.filter,b=v.filterValues,_=v.resource,w=v.sort,S=v.exporter,A=v.total,R=d||S,C=co(),O=Ur(),T=p.useCallback(function(E){C.getList(_,{sort:w,filter:y?qy(qy({},b),y):b,pagination:{page:1,perPage:r},meta:l}).then(function(L){var j=L.data;return R&&R(j,UJ(C),C,_)}).catch(function(L){console.error(L),O("ra.notification.http_error",{type:"error"})}),typeof n=="function"&&n(E)},[C,R,y,b,r,O,n,_,w,l]);return p.createElement(Ir,qy({onClick:T,label:o,disabled:A===0},Rve(h)),u)},Pve=p.createElement(n9,null),Rve=function(e){e.resource;var t=o9(e,["resource"]);return t},_T=function(){return _T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},_T.apply(this,arguments)},kve=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},xb=function(e){var t=e.label,r=e.onClick,n=kve(e,["label","onClick"]),a=nt(),o=p.useState(!1),i=o[0],u=o[1],d=function(){u(!1)},l=function(){u(!0)},h=a(t,{_:t}),v=function(y){d(),r&&r(y)};return p.createElement(Ca,{title:h,open:i,onOpen:l,onClose:d},p.createElement(vn,_T({"aria-label":h,onClick:v},n)))};const Tve=ot(I.jsx("path",{d:"m12.87 15.07-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2zm-2.62 7 1.62-4.33L19.12 17z"}));var Ave=function(e){var t=Mt({props:e,name:i9}),r=t.icon,n=r===void 0?Ive:r,a=t.languages,o=p.useState(null),i=o[0],u=o[1],d=XA({locales:a}),l=QA(),h=l[0],v=l[1],y=function(S){var A=d.find(function(R){return R.locale===S});return A?A.name:""},b=function(S){return function(){v(S),u(null)}},_=function(S){u(S.currentTarget)},w=function(){u(null)};return p.createElement(jve,{component:"span"},p.createElement(Dn,{color:"inherit",variant:"text","aria-controls":"simple-menu","aria-label":"","aria-haspopup":"true",onClick:_,startIcon:n,endIcon:p.createElement(cS,{fontSize:"small"})},y(h)),p.createElement(aS,{id:"simple-menu",anchorEl:i,keepMounted:!0,open:!!i,onClose:w},d.map(function(S){return p.createElement(oi,{key:S.locale,onClick:b(S.locale),selected:S.locale===h},S.name)})))},Ive=p.createElement(Tve,null),i9="RaLocalesMenuButton",jve=ve("span",{name:i9,overridesResolver:function(e,t){return t.root}})({});const Mve=ot(I.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),Fve=ot(I.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}));var wT=function(){return wT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},wT.apply(this,arguments)},Lve=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},$ve=function(e){var t=e.label,r=t===void 0?"ra.action.refresh":t,n=e.icon,a=n===void 0?Dve:n,o=e.onClick,i=e.className,u=Lve(e,["label","icon","onClick","className"]),d=jl(),l=nt(),h=p.useCallback(function(v){v.preventDefault(),d(),typeof o=="function"&&o(v)},[d,o]);return p.createElement(Ca,{title:r&&l(r,{_:"Refresh"})},p.createElement(vn,wT({"aria-label":r&&l(r,{_:"Refresh"}),className:i,color:"inherit",onClick:h},u),a))},Dve=p.createElement(Fve,null);const Nve=ot(I.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}));var Uy=function(){return Uy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Uy.apply(this,arguments)},B4=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},z4=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Bve=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},fS=function(e){var t=Mt({props:e,name:s9}),r=t.color,n=r===void 0?"primary":r,a=t.icon,o=a===void 0?qve:a;t.invalid;var i=t.label,u=i===void 0?"ra.action.save":i,d=t.onClick,l=t.mutationOptions,h=t.disabled,v=t.type,y=v===void 0?"submit":v,b=t.transform,_=t.variant,w=_===void 0?"contained":_,S=t.alwaysEnable,A=S===void 0?!1:S,R=Bve(t,["color","icon","invalid","label","onClick","mutationOptions","disabled","type","transform","variant","alwaysEnable"]),C=nt(),O=ks(),T=rI(),E=qb(),L=E.dirtyFields,j=E.isValidating,M=E.isSubmitting,k=Object.keys(L).length>0,$=Vve(A===!1||A===void 0?void 0:!A,h||!k||j||M);bI(y==="submit"&&(l&&(l.onSuccess||l.onError)||b),'Cannot use <SaveButton mutationOptions> props on a button of type "submit". To override the default mutation options on a particular save button, set the <SaveButton type="button"> prop, or set mutationOptions in the main view component (<Create> or <Edit>).');var B=p.useCallback(function(W){return B4(void 0,void 0,void 0,function(){var Q;return z4(this,function(V){switch(V.label){case 0:return T!=null&&T.save?[4,T.save(W,Uy(Uy({},l),{transform:b}))]:[3,2];case 1:Q=V.sent(),V.label=2;case 2:return Q!=null&&y6(Q,O.setError),[2]}})})},[O.setError,T,l,b]),z=p.useCallback(function(W){return B4(void 0,void 0,void 0,function(){return z4(this,function(Q){switch(Q.label){case 0:return d&&d(W),W.defaultPrevented?[2]:y!=="button"?[3,2]:(W.stopPropagation(),[4,O.handleSubmit(B)(W)]);case 1:Q.sent(),Q.label=2;case 2:return[2]}})})},[d,y,O,B]),U=u&&C(u,{_:u});return p.createElement(Uve,Uy({variant:w,type:y,color:n,"aria-label":U,disabled:$,onClick:z},R),M?p.createElement(xd,{sx:zve,size:14,thickness:3,color:"inherit"}):o,U)},zve={"&.MuiCircularProgress-root":{marginRight:"10px",marginLeft:"2px"}},qve=p.createElement(Nve,null),s9="RaSaveButton",Uve=ve(Dn,{name:s9,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={position:"relative"},t["& .MuiSvgIcon-root, & .MuiIcon-root, & .MuiCircularProgress-root"]={marginRight:r.spacing(1)},t["& .MuiSvgIcon-root, & .MuiIcon-root"]={fontSize:18},t}),Vve=function(e,t){return typeof e>"u"?t:e},xT=function(){return xT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},xT.apply(this,arguments)},Wve=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Hve=function(e){var t=Mt({props:e,name:l9}),r=t.label,n=r===void 0?"ra.action.select_all_button":r,a=t.limit,o=a===void 0?250:a,i=t.onClick,u=t.queryOptions,d=Wve(t,["label","limit","onClick","queryOptions"]),l=Va(),h=l.total,v=l.selectedIds,y=l.onSelectAll,b=l.data,_=p.useCallback(function(S){y({limit:o,queryOptions:u}),i&&i(S)},[i,y,u,o]),w=b&&b.every(function(S){return v.includes(S.id)});return h===v.length||v.length>=o||!w?null:Qe.createElement(Kve,xT({label:n,onClick:_,type:"button"},d))},l9="RaSelectAllButton",Kve=ve(Ir,{name:l9,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{"&:hover":{backgroundColor:"color-mix(in srgb, ".concat((t.vars||t).palette.primary.main,", transparent 12%)"),"@media (hover: none)":{backgroundColor:"transparent"}}}}),ST=function(){return ST=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ST.apply(this,arguments)},Gve=function(e){var t=Mt({props:e,name:u9});return Qe.createElement(Qve,ST({onClick:Xve,className:"skip-nav-button",label:"ra.navigation.skip_nav",variant:"contained"},t))},u9="RaSkipNavigationButton",Qve=ve(Ir,{name:u9,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{position:"fixed",padding:t.spacing(1),backgroundColor:(t.vars||t).palette.background.default,color:(t.vars||t).palette.primary.contrastText,transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.leavingScreen}),left:t.spacing(2),top:t.spacing(-10),zIndex:5e3,"&:hover":{opacity:.8,backgroundColor:(t.vars||t).palette.background.default},"&:focus":{top:t.spacing(2),transition:t.transitions.create(["top","opacity"],{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.enteringScreen})}}}),Xve=function(){if(!(typeof document>"u")){var e=document.getElementById("main-content");e&&(e.setAttribute("tabIndex","-1"),e.focus(),e.blur(),e.removeAttribute("tabIndex"))}},CT=function(){return CT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},CT.apply(this,arguments)},Yve=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Jve=function(e){var t=Mt({props:e,name:fj}),r=t.className,n=t.title,a=n===void 0?"ra.page.error":n,o=t.message,i=o===void 0?"ra.message.auth_error":o,u=Yve(t,["className","title","message"]),d=nt();return p.createElement(Zve,CT({className:r},u),p.createElement("div",{className:c9.message},p.createElement("h1",null,d(a,{_:a})),p.createElement("div",null,d(i,{_:i})),p.createElement(Ir,{component:ui,to:"/login",label:"ra.auth.sign_in"},p.createElement(l0,null))))},fj="RaAuthError",c9={message:"".concat(fj,"-message")},Zve=ve("div",{name:fj,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flexDirection:"column",justifyContent:"center"},t[r.breakpoints.up("md")]={height:"100%"},t[r.breakpoints.down("xl")]={height:"100vh",marginTop:"-3em"},t["& .".concat(c9.message)]={textAlign:"center",fontFamily:"Roboto, sans-serif",opacity:.5,margin:"0 1em"},t}),ege=function(){var e=tre().error;return e?p.createElement(Jve,{message:e?e.message:void 0}):p.createElement(Od,null)},lp=function(e){var t=e.helperText,r=e.error,n=nt();return r?p.createElement(yee,{error:r}):t===!1?null:p.isValidElement(t)?t:typeof t=="string"&&t.length>0?p.createElement(p.Fragment,null,n(t,{_:t})):p.createElement("span",{dangerouslySetInnerHTML:tge})},tge={__html:"&#8203;"},rge=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},wv=function(e){e.afterSubmit,e.allowNull,e.alwaysOn,e.beforeSubmit,e.component,e.data,e.defaultValue,e.error,e.format,e.formatOnBlur,e.initializeForm,e.input,e.isEqual,e.isRequired,e.label,e.limitChoicesToValue,e.locale,e.meta,e.multiple,e.name,e.options,e.optionText,e.optionValue,e.parse,e.record,e.ref,e.refetch,e.render,e.resource,e.setFilter,e.setPagination,e.setSort,e.shouldUnregister,e.source,e.submitError,e.subscription,e.textAlign,e.translate,e.translateChoice,e.validate,e.validateFields,e.value;var t=rge(e,["afterSubmit","allowNull","alwaysOn","beforeSubmit","component","data","defaultValue","error","format","formatOnBlur","initializeForm","input","isEqual","isRequired","label","limitChoicesToValue","locale","meta","multiple","name","options","optionText","optionValue","parse","record","ref","refetch","render","resource","setFilter","setPagination","setSort","shouldUnregister","source","submitError","subscription","textAlign","translate","translateChoice","validate","validateFields","value"]);return t},xw=function(){return xw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},xw.apply(this,arguments)},nge=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},n1,pj=function(e){var t,r,n,a=Zb({props:e,name:Sw}),o=a.children,i=a.className,u=i===void 0?"":i,d=a.color,l=a.component,h=l===void 0?"span":l,v=a.fullWidth,y=a.isRequired,b=a.label,_=a.resource,w=a.source,S=a.TypographyProps,A=nge(a,["children","className","color","component","fullWidth","isRequired","label","resource","source","TypographyProps"]);return p.createElement(age,xw({component:h,className:Ae(u,(t={},t[Cw.fullWidth]=v,t))},A),b!==!1&&o.props.label!==!1&&typeof o.type!="string"&&((r=o.type)===null||r===void 0?void 0:r.displayName)!=="Labeled"&&((n=o.type)===null||n===void 0?void 0:n.displayName)!=="Labeled"?p.createElement(Qt,xw({sx:d?{color:d}:{color:function(R){return(R.vars||R).palette.text.secondary}},className:Cw.label},S),p.createElement(Vi,{label:b||o.props.label,source:w||o.props.source,resource:_,isRequired:y})):null,o)};pj.displayName="Labeled";var Sw="RaLabeled",Cw={label:"".concat(Sw,"-label"),fullWidth:"".concat(Sw,"-fullWidth")},age=ve(i0,{name:Sw,overridesResolver:function(e,t){return t.root}})((n1={display:"inline-flex",marginBottom:"0.2em"},n1["&.".concat(Cw.fullWidth)]={width:"100%"},n1["& .".concat(Cw.label)]={fontSize:"0.75em",marginBottom:"0.2em"},n1)),d9=p.createContext(void 0),Vy=function(){return Vy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Vy.apply(this,arguments)},oge=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},ige=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},sge=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Ew=function(e){var t,r,n=Mt({props:e,name:Ow}),a=n.className,o=n.defaultValue,i=o===void 0?[]:o,u=n.label;n.isFetching,n.isLoading;var d=n.isPending,l=n.children,h=n.helperText,v=n.resource,y=n.source,b=n.validate;n.variant;var _=n.margin,w=_===void 0?"dense":_,S=sge(n,["className","defaultValue","label","isFetching","isLoading","isPending","children","helperText","resource","source","validate","variant","margin"]),A=_6(),R=Rx(),C=yI(),O=C.getSource(y),T=Array.isArray(b)?mee(b):b,E=uee(),L=ks(),j=L.getFieldState,M=L.formState,k=L.getValues,$=RZ({name:O,rules:{validate:function(W){return oge(void 0,void 0,void 0,function(){var Q;return ige(this,function(V){switch(V.label){case 0:return T?[4,T(W,k(),n)]:[2,!0];case 1:return Q=V.sent(),Q?[2,E(Q)]:[2,!0]}})})}}});p.useEffect(function(){return R&&A!=null&&R.registerField(O,A),function(){R&&A!=null&&R.unregisterField(O,A)}},[O,R,A]),w6({inputProps:Vy(Vy({},n),{defaultValue:i}),isArrayInput:!0,fieldArrayInputControl:$});var B=j(O,M).error,z=p.useMemo(function(){return{getSource:function(W){return W?C.getSource("".concat(y,".").concat(W)):C.getSource(y)},getLabel:function(W){return C.getLabel("".concat(y,".").concat(W))}}},[C,y]);if(d)return p.createElement(pj,{label:u,className:a},p.createElement(cj,null));var U=h!==!1||!!B;return p.createElement(lge,Vy({fullWidth:!0,margin:w,className:Ae("ra-input","ra-input-".concat(O),Pw.root,a),error:!!B},wv(S)),p.createElement(cU,{component:"span",className:Pw.label,shrink:!0,error:!!B},p.createElement(Vi,{label:u,source:y,resource:v,isRequired:E6(b)})),p.createElement(d9.Provider,{value:$},p.createElement(pv,{value:v},p.createElement(Ax,{value:z},l))),U?p.createElement(ej,{error:!!B},p.createElement(lp,{error:(r=(t=B==null?void 0:B.root)===null||t===void 0?void 0:t.message)!==null&&r!==void 0?r:B==null?void 0:B.message,helperText:h})):null)},Ow="RaArrayInput",Pw={root:"".concat(Ow,"-root"),label:"".concat(Ow,"-label")},lge=ve(uU,{name:Ow,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={marginTop:0},t["& .".concat(Pw.label)]={position:"relative",top:r.spacing(.5),left:r.spacing(-1.5)},t["& .".concat(Pw.root)]={paddingLeft:r.spacing(2)},t}),uge=function(e){var t=p.useContext(d9),r=p.useMemo(function(){return{append:e==null?void 0:e.append,fields:e==null?void 0:e.fields,insert:e==null?void 0:e.insert,move:e==null?void 0:e.move,prepend:e==null?void 0:e.prepend,remove:e==null?void 0:e.remove,replace:e==null?void 0:e.replace,swap:e==null?void 0:e.swap,update:e==null?void 0:e.update}},[e]);if(e!=null&&e.fields)return r;if(!t)throw new Error("useArrayInput must be used inside an ArrayInputContextProvider");return t},vs="RaSimpleFormIterator",Qn={action:"".concat(vs,"-action"),add:"".concat(vs,"-add"),clear:"".concat(vs,"-clear"),form:"".concat(vs,"-form"),index:"".concat(vs,"-index"),inline:"".concat(vs,"-inline"),line:"".concat(vs,"-line"),list:"".concat(vs,"-list"),buttons:"".concat(vs,"-buttons")},f9=p.createContext(void 0),pS=function(){var e=p.useContext(f9);if(!e)throw new Error("useSimpleFormIterator must be used inside a SimpleFormIterator");return e},p9=p.createContext(void 0);const h9=ot(I.jsx("path",{d:"M7 11v2h10v-2zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}));var m9=function(){var e=p.useContext(p9);if(!e)throw new Error("useSimpleFormIteratorItem must be used inside a SimpleFormIteratorItem");return e},ET=function(){return ET=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ET.apply(this,arguments)},cge=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},dge=function(e){var t=m9(),r=t.remove,n=t.index,a=pS().source,o=e.className,i=cge(e,["className"]);return p.createElement(xb,ET({label:"ra.action.remove",size:"small",onClick:function(){return r()},color:"warning",className:Ae("button-remove button-remove-".concat(a,"-").concat(n),o)},i),p.createElement(h9,{fontSize:"small"}))};const fge=ot(I.jsx("path",{d:"M12 20c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0 2c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10m-1-10v4h2v-4h3l-4-4-4 4z"})),pge=ot(I.jsx("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 10V8h-2v4H8l4 4 4-4z"}));var hge=function(e){var t=e.className,r=m9(),n=r.index,a=r.total,o=r.reOrder,i=pS().source;return p.createElement("span",{className:Ae("button-reorder button-reorder-".concat(i,"-").concat(n),t)},p.createElement(xb,{label:"ra.action.move_up",size:"small",onClick:function(){return o(n-1)},disabled:n<=0,color:"primary"},p.createElement(fge,{fontSize:"small"})),p.createElement(xb,{label:"ra.action.move_down",size:"small",onClick:function(){return o(n+1)},disabled:a==null||n>=a-1,color:"primary"},p.createElement(pge,{fontSize:"small"})))},mge=p.forwardRef(function(e,t){var r=e.children,n=e.disabled,a=e.disableReordering,o=e.disableRemove,i=e.getItemLabel,u=e.index,d=e.inline,l=e.record,h=e.removeButton,v=h===void 0?p.createElement(dge,null):h,y=e.reOrderButtons,b=y===void 0?p.createElement(hge,null):y,_=er(e);if(!_)throw new Error("SimpleFormIteratorItem must be used in a ResourceContextProvider or be passed a resource prop.");var w=pS(),S=w.total,A=w.reOrder,R=w.remove,C=function(j){return typeof o=="boolean"?o:o&&o(j)},O=p.useMemo(function(){return{index:u,total:S,reOrder:function(j){return A(u,j)},remove:function(){return R(u)}}},[u,S,A,R]),T=typeof i=="function"?i(u):i,E=yI(),L=p.useMemo(function(){return{getSource:function(j){return j?E.getSource("".concat(u,".").concat(j)):E.getSource("".concat(u))},getLabel:function(j){return E.getLabel(j)}}},[u,E]);return p.createElement(p9.Provider,{value:O},p.createElement("li",{className:Qn.line,ref:t},T!=null&&T!==!1&&p.createElement(Qt,{variant:"body2",className:Qn.index},T),p.createElement(Ax,{value:L},p.createElement(hd,{value:l},p.createElement(i0,{className:Ae(Qn.form),direction:d?{xs:"column",sm:"row"}:"column",sx:{gap:d?2:0}},r))),!n&&p.createElement("span",{className:Qn.action},!a&&b,!C(l)&&v)))});const vge=ot(I.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}));var OT=function(){return OT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},OT.apply(this,arguments)},gge=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},yge=function(e){var t=pS(),r=t.add,n=t.source,a=e.className,o=gge(e,["className"]);return p.createElement(xb,OT({label:"ra.action.add",size:"small",onClick:function(){return r()},color:"primary",className:Ae("button-add button-add-".concat(n),a)},o),p.createElement(vge,{fontSize:"small"}))};const bge=ot(I.jsx("path",{d:"M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}));var PT=function(){return PT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},PT.apply(this,arguments)},_ge=function(e){return p.createElement(xb,PT({label:"ra.action.clear_array_input",size:"small",color:"warning"},e),p.createElement(bge,{fontSize:"small"}))},wge=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Rw=function(e){var t=Mt({props:e,name:vs}),r=t.addButton,n=r===void 0?p.createElement(yge,null):r,a=t.removeButton,o=t.reOrderButtons,i=t.children,u=t.className,d=t.resource,l=t.disabled,h=t.disableAdd,v=h===void 0?!1:h,y=t.disableClear,b=t.disableRemove,_=b===void 0?!1:b,w=t.disableReordering,S=t.inline,A=t.getItemLabel,R=A===void 0?!1:A,C=t.fullWidth,O=t.sx,T=Ix("");if(!T)throw new Error("SimpleFormIterator can only be called within an iterator input like ArrayInput");var E=p.useState(!1),L=E[0],j=E[1],M=uge(t),k=M.append,$=M.fields,B=M.move,z=M.remove,U=M.replace,W=ks(),Q=W.trigger,V=W.getValues,K=nt(),X=gr(t),te=p.useRef({}),G=p.useCallback(function(xe){z(xe);var Oe=V(T).every(function(Te){return typeof Te!="object"});Oe&&Q(T)},[z,Q,T,V]);if($.length>0){var J=$[0];J.id;var de=wge(J,["id"]);te.current=de;for(var ce in te.current)te.current[ce]=null}var ue=p.useCallback(function(xe){xe===void 0&&(xe=void 0);var Oe=xe;xe==null&&(Oe=te.current,p.Children.count(i)===1&&p.isValidElement(p.Children.only(i))&&!p.Children.only(i).props.source&&p.Children.only(i).type!==_k?Oe="":(Oe=Oe||{},p.Children.forEach(i,function(Te){var Me;p.isValidElement(Te)&&Te.type!==_k&&Te.props.source&&(Oe[Te.props.source]=(Me=Te.props.defaultValue)!==null&&Me!==void 0?Me:null)}))),k(Oe)},[k,i]),be=p.useCallback(function(xe,Oe){B(xe,Oe)},[B]),Pe=p.useCallback(function(){U([]),j(!1)},[U]),Ee=or(X,T),ge=p.useMemo(function(){return{total:$.length,add:ue,remove:G,reOrder:be,source:T}},[ue,$.length,be,G,T]);return $?p.createElement(f9.Provider,{value:ge},p.createElement(xge,{className:Ae(u,C&&"fullwidth",l&&"disabled"),sx:O},p.createElement("ul",{className:Qn.list},$.map(function(xe,Oe){return p.createElement(mge,{key:xe.id,disabled:l,disableRemove:_,disableReordering:w,fields:$,getItemLabel:R,index:Oe,onRemoveField:G,onReorder:be,record:Ee&&Ee[Oe]||{},removeButton:a,reOrderButtons:o,resource:d,inline:S},i)})),!l&&!(v&&(y||_))&&p.createElement("div",{className:Qn.buttons},!v&&p.createElement("div",{className:Qn.add},n),$.length>0&&!y&&!_&&p.createElement("div",{className:Qn.clear},p.createElement(lj,{isOpen:L,title:K("ra.action.clear_array_input"),content:K("ra.message.clear_array_input"),onConfirm:Pe,onClose:function(){return j(!1)}}),p.createElement(_ge,{onClick:function(){return j(!0)}}))))):null},xge=ve("div",{name:vs,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n,a=e.theme;return t={"& > ul":{padding:0,marginTop:0,marginBottom:0},"& > ul > li:last-child":{borderBottom:"none"}},t["& .".concat(Qn.line)]=(r={display:"flex",listStyleType:"none",borderBottom:"solid 1px ".concat((a.vars||a).palette.divider)},r[a.breakpoints.down("sm")]={display:"block"},r),t["& .".concat(Qn.index)]=(n={display:"flex",alignItems:"top",marginRight:a.spacing(1),marginTop:a.spacing(1)},n[a.breakpoints.down("md")]={display:"none"},n),t["& .".concat(Qn.form)]={minWidth:0},t["&.fullwidth > ul > li > .".concat(Qn.form)]={flex:2},t["& .".concat(Qn.inline)]={flexDirection:"row",columnGap:"1em"},t["& .".concat(Qn.action)]={marginTop:a.spacing(.5),visibility:"hidden","@media(hover:none)":{visibility:"visible"}},t["& .".concat(Qn.buttons)]={display:"flex"},t["& .".concat(Qn.add)]={borderBottom:"none"},t["& .".concat(Qn.clear)]={borderBottom:"none"},t["& .".concat(Qn.line,":hover > .").concat(Qn.action)]={visibility:"visible"},t}),Sge=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},Cge=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},Ege=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Oge=function(e){var t=e.create,r=e.createLabel,n=r===void 0?"ra.action.create":r,a=e.createItemLabel,o=e.createValue,i=o===void 0?"@@ra-create":o,u=e.createHintValue,d=u===void 0?"@@ra-create-hint":u,l=e.optionText,h=l===void 0?"name":l,v=e.filter,y=e.handleChange,b=e.onCreate,_=nt(),w=p.useState(!1),S=w[0],A=w[1],R=p.useRef(v);return{createId:i,createHintId:d,getCreateItem:function(C){return R.current=C,fx({id:a&&!C?d:i},typeof h=="string"?h:"name",C&&a?_(a,{item:C,_:a}):_(n,{_:n}))},handleChange:function(C){return Sge(void 0,void 0,void 0,function(){var O,T,E,L;return Cge(this,function(j){switch(j.label){case 0:if(O=((L=C==null?void 0:C.target)===null||L===void 0?void 0:L.value)||C,T=Array.isArray(O)?Ege([],O,!0).pop():O,!((T==null?void 0:T.id)===i||T===i))return[3,3];if(p.isValidElement(t))return[3,2];if(!b)throw new Error("To create a new option, you must pass an onCreate function or a create element.");return[4,b(v)];case 1:return E=j.sent(),E?(y(E),[2]):[3,3];case 2:return A(!0),[2];case 3:return y(C),[2]}})})},createElement:S&&p.isValidElement(t)?p.createElement(Pge.Provider,{value:{filter:R.current,onCancel:function(){return A(!1)},onCreate:function(C){A(!1),y(C)}}},t):null,getOptionDisabled:function(C){return(C==null?void 0:C.id)===d||C===d}}},Pge=p.createContext(void 0),kw=function(){return kw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},kw.apply(this,arguments)},Rge=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},xl=function(e){var t=e.className,r=e.row,n=r===void 0?!1:r,a=e.defaultValue,o=a===void 0?!1:a,i=e.format,u=e.label;e.fullWidth;var d=e.helperText,l=e.onBlur,h=e.onChange,v=e.onFocus,y=e.readOnly,b=e.disabled,_=e.parse,w=e.resource,S=e.source,A=e.validate,R=e.options,C=R===void 0?kge:R,O=e.sx,T=Rge(e,["className","row","defaultValue","format","label","fullWidth","helperText","onBlur","onChange","onFocus","readOnly","disabled","parse","resource","source","validate","options","sx"]),E=Ub(kw({defaultValue:o,format:i,parse:_,resource:w,source:S,onBlur:l,onChange:h,type:"checkbox",validate:A,disabled:b,readOnly:y},T)),L=E.id,j=E.field,M=E.isRequired,k=E.fieldState,$=k.error,B=k.invalid,z=p.useCallback(function(W){j.onChange(W),j.onBlur()},[j]),U=d!==!1||B;return p.createElement(Ice,{className:Ae("ra-input","ra-input-".concat(S),t),row:n,sx:O},p.createElement(Wk,{inputRef:j.ref,control:p.createElement(xU,kw({id:L,name:j.name,onChange:z,onFocus:v,checked:!!j.value},wv(T),C,{disabled:b||y,readOnly:y})),label:p.createElement(Vi,{label:u,source:S,resource:w,isRequired:M})}),U?p.createElement(ej,{error:B},p.createElement(lp,{error:$==null?void 0:$.message,helperText:d})):null)},kge={},fn="RaDatagrid",zt={root:"".concat(fn,"-root"),table:"".concat(fn,"-table"),tableWrapper:"".concat(fn,"-tableWrapper"),thead:"".concat(fn,"-thead"),tbody:"".concat(fn,"-tbody"),headerRow:"".concat(fn,"-headerRow"),headerCell:"".concat(fn,"-headerCell"),checkbox:"".concat(fn,"-checkbox"),row:"".concat(fn,"-row"),clickableRow:"".concat(fn,"-clickableRow"),rowEven:"".concat(fn,"-rowEven"),rowOdd:"".concat(fn,"-rowOdd"),rowCell:"".concat(fn,"-rowCell"),selectable:"".concat(fn,"-selectable"),expandHeader:"".concat(fn,"-expandHeader"),expandIconCell:"".concat(fn,"-expandIconCell"),expandIcon:"".concat(fn,"-expandIcon"),expandable:"".concat(fn,"-expandable"),expanded:"".concat(fn,"-expanded"),expandedPanel:"".concat(fn,"-expandedPanel")},Tge=ve("div",{name:fn,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(zt.table)]={tableLayout:"auto"},t["& .".concat(zt.tableWrapper)]={},t["& .".concat(zt.thead)]={},t["& .".concat(zt.tbody)]={},t["& .".concat(zt.headerRow)]={},t["& .".concat(zt.headerCell)]={position:"sticky",top:0,zIndex:2,backgroundColor:(r.vars||r).palette.background.paper,"&:first-of-type":{borderTopLeftRadius:r.shape.borderRadius},"&:last-child":{borderTopRightRadius:r.shape.borderRadius}},t["& .".concat(zt.checkbox)]={},t["& .".concat(zt.row)]={},t["& .".concat(zt.clickableRow)]={cursor:"pointer"},t["& .".concat(zt.rowEven)]={},t["& .".concat(zt.rowOdd)]={},t["& .".concat(zt.rowCell)]={},t["& .".concat(zt.expandHeader)]={padding:0,width:r.spacing(6)},t["& .".concat(zt.expandIconCell)]={width:r.spacing(6)},t["& .".concat(zt.expandIcon)]={padding:r.spacing(1),transform:"rotate(-90deg)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shortest})},t["& .".concat(zt.expandIcon,".").concat(zt.expanded)]={transform:"rotate(0deg)"},t["& .".concat(zt.expandedPanel)]={},t}),RT=function(){return RT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},RT.apply(this,arguments)},Age=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},v9=p.forwardRef(function(e,t){var r=e.className,n=e.field;e.record,e.resource;var a=Age(e,["className","field","record","resource"]);return p.createElement(za,RT({className:Ae(r,n.props.cellClassName),align:n.props.textAlign||n.type.textAlign,ref:t},a),n)});v9.displayName="DatagridCell";var kT=function(){return kT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},kT.apply(this,arguments)},Ige=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},jge=function(e){var t=e.expanded,r=e.expandContentId,n=Ige(e,["expanded","expandContentId"]),a=nt();return p.createElement(vn,kT({"aria-label":a(t?"ra.action.close":"ra.action.expand"),"aria-expanded":t,"aria-controls":r,tabIndex:-1,"aria-hidden":"true",component:"div"},n,{size:"small"}),p.createElement(cS,{fontSize:"inherit"}))};const Mge=p.memo(jge);var hj=p.createContext({});hj.displayName="DatagridContext";var g9=function(e){var t=p.useContext(hj);return p.useMemo(function(){return sI({},{},t)},[t,e])},TT=function(){return TT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},TT.apply(this,arguments)},Fge=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},Lge=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},AT=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},q4=function(e,t,r){return e?1+(r?1:0)+Qe.Children.toArray(t).filter(function(n){return!!n}).length:0},y9=Qe.forwardRef(function(e,t){var r,n,a=e.children,o=e.className,i=e.expand,u=e.hasBulkActions,d=u===void 0?!1:u,l=e.hover,h=l===void 0?!0:l,v=e.id,y=e.onToggleItem;e.record;var b=e.rowClick,_=e.selected,w=_===void 0?!1:_,S=e.style,A=e.selectable,R=A===void 0?!0:A,C=AT(e,["children","className","expand","hasBulkActions","hover","id","onToggleItem","record","rowClick","selected","style","selectable"]);if(typeof v>"u")throw new Error("DatagridRow expects an id prop");var O=g9(),T=nt(),E=gr(e);if(!E)throw new Error("DatagridRow can only be used within a RecordContext or be passed a record prop");var L=er(e),j=Ml(e),M=j.hasShow||j.hasEdit;if(!L)throw new Error("DatagridRow can only be used within a ResourceContext or be passed a resource prop");var k=(!O||!O.isRowExpandable||O.isRowExpandable(E))&&i,$=uZ(L,v,O&&O.expandSingle),B=$[0],z=$[1],U=p.useState(function(){return q4(k,a,d)}),W=U[0],Q=U[1];p.useEffect(function(){var J=q4(k,a,d);J!==W&&Q(J)},[k,W,a,d]);var V=Os(),K=p.useCallback(function(J){z(),J.stopPropagation()},[z]),X=p.useCallback(function(J){!R||!y||(y(v,J),J.stopPropagation())},[v,y,R]),te=HX(),G=p.useCallback(function(J){return Fge(void 0,void 0,void 0,function(){var de,ce,ue,be;return Lge(this,function(Pe){switch(Pe.label){case 0:return J.persist(),de=typeof b=="function"?b(E.id,L,E):b,Dge(de)?[4,de]:[3,2];case 1:return ue=Pe.sent(),[3,3];case 2:ue=de,Pe.label=3;case 3:return ce=ue,ce==="expand"?(K(J),[2]):ce==="toggleSelection"?(X(J),[2]):[4,te({record:E,resource:L,link:ce})];case 4:return be=Pe.sent(),be===!1||be==null?[2]:(V(be,{state:{_scrollToTop:!0}}),[2])}})})},[E,L,b,V,K,X,te]);return Qe.createElement(Qe.Fragment,null,Qe.createElement(gb,TT({ref:t,className:Ae(o,(r={},r[zt.expandable]=k,r[zt.selectable]=R,r[zt.clickableRow]=b??M,r)),key:v,style:S,hover:h,onClick:G},C),i&&Qe.createElement(za,{padding:"none",className:zt.expandIconCell},k&&Qe.createElement(Mge,{className:Ae(zt.expandIcon,(n={},n[zt.expanded]=B,n)),expanded:B,onClick:K,expandContentId:"".concat(v,"-expand")})),d&&Qe.createElement(za,{padding:"checkbox"},Qe.createElement(ev,{"aria-label":T("ra.action.select_row",{_:"Select this row"}),color:"primary",className:"select-item ".concat(zt.checkbox),checked:R&&w,onClick:X,disabled:!R})),Qe.Children.map(a,function(J,de){return p.isValidElement(J)?Qe.createElement(v9,{key:"".concat(v,"-").concat(J.props.source||de),className:Ae("column-".concat(J.props.source),zt.rowCell),record:E,field:J,resource:L}):null})),k&&B&&Qe.createElement(gb,{key:"".concat(v,"-expand"),id:"".concat(v,"-expand"),className:zt.expandedPanel},Qe.createElement(za,{colSpan:W},p.isValidElement(i)?i:p.createElement(i))))}),$ge=function(e,t){e.children,e.expand;var r=AT(e,["children","expand"]);t.children,t.expand;var n=AT(t,["children","expand"]);return Pz(r,n)},b9=p.memo(y9,$ge);b9.displayName="PureDatagridRow";var Dge=function(e){return e&&typeof e.then=="function"},Tw=function(){return Tw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Tw.apply(this,arguments)},Nge=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},mj=p.forwardRef(function(e,t){var r=e.children,n=e.className,a=e.data,o=a===void 0?zge:a,i=e.expand,u=e.hasBulkActions,d=u===void 0?!1:u,l=e.hover,h=e.onToggleItem,v=e.resource,y=e.row,b=y===void 0?Bge:y,_=e.rowClick,w=e.rowSx,S=e.rowStyle,A=e.selectedIds,R=e.isRowSelectable,C=Nge(e,["children","className","data","expand","hasBulkActions","hover","onToggleItem","resource","row","rowClick","rowSx","rowStyle","selectedIds","isRowSelectable"]);return p.createElement(OU,Tw({ref:t,className:Ae("datagrid-body",n,zt.tbody)},C),o.map(function(O,T){var E,L,j;return p.createElement(hd,{value:O,key:(L=O.id)!==null&&L!==void 0?L:"row".concat(T)},p.cloneElement(b,{className:Ae(zt.row,(E={},E[zt.rowEven]=T%2===0,E[zt.rowOdd]=T%2!==0,E)),expand:i,hasBulkActions:d&&!!A,hover:l,id:(j=O.id)!==null&&j!==void 0?j:"row".concat(T),onToggleItem:h,resource:v,rowClick:_,selectable:!R||R(O),selected:A==null?void 0:A.includes(O.id),sx:w==null?void 0:w(O,T),style:S==null?void 0:S(O,T)},r))}))}),Bge=p.createElement(y9,null),zge=[];mj.muiName="TableBody";var _9=p.memo(function(e){return p.createElement(mj,Tw({row:p.createElement(b9,null)},e))});_9.muiName="TableBody";var IT=function(){return IT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},IT.apply(this,arguments)},qge=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},a1,Uge={ASC:"DESC",DESC:"ASC"},Vge=function(e){var t,r=Mt({props:e,name:vj}),n=r.className,a=r.field,o=r.sort,i=r.updateSort;r.isSorting;var u=qge(r,["className","field","sort","updateSort","isSorting"]),d=er(),l=nt(),h=D6(),v=a?o&&o.field===(a.props.sortBy||a.props.source)?Uge[o.order]:(t=a==null?void 0:a.props.sortByOrder)!==null&&t!==void 0?t:"ASC":void 0,y=a?h({label:typeof a.props.label=="string"?a.props.label:void 0,resource:d,source:a.props.source}):void 0,b=l("ra.sort.sort_by",{field:y,field_lower_first:typeof y=="string"?y.charAt(0).toLowerCase()+y.slice(1):void 0,order:l("ra.sort.".concat(v)),_:l("ra.action.sort")});return p.createElement(Kge,IT({className:Ae(n,a==null?void 0:a.props.headerClassName),align:(a==null?void 0:a.props.textAlign)||(a==null?void 0:a.type.textAlign),variant:"head"},u),i&&o&&a&&a.props.sortable!==!1&&a.type.sortable!==!1&&(a.props.sortBy||a.props.source)?p.createElement(Ca,{title:b,placement:a.props.textAlign==="right"||a.type.textAlign==="right"?"bottom-end":"bottom-start",enterDelay:300},p.createElement(Ipe,{active:o.field===(a.props.sortBy||a.props.source),direction:o.order==="ASC"?"asc":"desc","data-field":a.props.sortBy||a.props.source,"data-order":a.props.sortByOrder||"ASC",onClick:i,classes:Hge},p.createElement(Vi,{label:a.props.label,source:a.props.source,resource:d}))):p.createElement(Vi,{label:a==null?void 0:a.props.label,source:a==null?void 0:a.props.source,resource:d}))};const Wge=p.memo(Vge,function(e,t){var r,n,a,o;return e.updateSort===t.updateSort&&((r=e.sort)===null||r===void 0?void 0:r.field)===((n=t.sort)===null||n===void 0?void 0:n.field)&&((a=e.sort)===null||a===void 0?void 0:a.order)===((o=t.sort)===null||o===void 0?void 0:o.order)&&e.isSorting===t.isSorting});var vj="RaDatagridHeaderCell",Hge={icon:"".concat(vj,"-icon")},Kge=ve(za,{name:vj,overridesResolver:function(e,t){return t.root}})((a1={},a1["& .MuiTableSortLabel-icon"]={display:"none"},a1["& .Mui-active .MuiTableSortLabel-icon"]={display:"inline"},a1)),jT=function(){return jT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},jT.apply(this,arguments)},U4=function(e){var t=Mt({props:e,name:w9});return p.createElement(Gge,jT({},t)," ")},w9="RaPlaceholder",Gge=ve("span",{name:w9,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.grey[300],display:"flex"}}),I2=function(e,t){return Array.from({length:e},function(r,n){return t(n)})},Qge=function(e){var t=e.className,r=e.expand,n=e.hasBulkActions,a=e.nbChildren,o=e.nbFakeLines,i=o===void 0?5:o,u=e.size,d=Cx(1e3);return d?p.createElement("div",{className:zt.root},p.createElement(EU,{className:Ae(zt.table,t),size:u},p.createElement(PU,null,p.createElement(gb,{className:zt.row},r&&p.createElement(za,{padding:"none",className:zt.expandHeader}),n&&p.createElement(za,{padding:"checkbox",className:zt.expandIconCell},p.createElement(ev,{className:"select-all",color:"primary",checked:!1})),I2(a,function(l){return p.createElement(za,{variant:"head",className:zt.headerCell,key:l},p.createElement(U4,null))}))),p.createElement(OU,null,I2(i,function(l){return p.createElement(gb,{key:l,style:{opacity:1/(l+1)}},r&&p.createElement(za,{padding:"none",className:zt.expandIconCell},p.createElement(vn,{className:zt.expandIcon,component:"div","aria-hidden":"true",size:"large"},p.createElement(cS,null))),n&&p.createElement(za,{padding:"checkbox",className:zt.expandIconCell},p.createElement(ev,{className:"select-all",color:"primary",checked:!1})),I2(a,function(h){return p.createElement(za,{className:zt.rowCell,key:h},p.createElement(U4,null))}))})))):null};const Xge=p.memo(Qge);var Yge=function(e){var t,r=e.ids,n=e.classes,a=n===void 0?zt:n,o=nt(),i=er(),u=cZ(i||"",r),d=u[0],l=u[1];return i?p.createElement(vn,{className:Ae(a.expandIcon,(t={},t[a.expanded]=d,t)),"aria-label":o(d?"ra.action.close":"ra.action.expand"),"aria-expanded":d,tabIndex:-1,"aria-hidden":"true",onClick:l,size:"small"},p.createElement(cS,{fontSize:"inherit"})):null};const Jge=p.memo(Yge);var x9=function(e){var t=e.children,r=e.className,n=e.hasExpand,a=n===void 0?!1:n,o=e.hasBulkActions,i=o===void 0?!1:o,u=e.isRowSelectable,d=nt(),l=lI(e),h=l.sort,v=l.data,y=l.onSelect,b=l.selectedIds,_=l.setSort,w=g9().expandSingle,S=p.useCallback(function(O){if(O.stopPropagation(),!!_){var T=O.currentTarget.dataset.field,E=(h==null?void 0:h.field)===T?(h==null?void 0:h.order)==="ASC"?"DESC":"ASC":O.currentTarget.dataset.order;_({field:T,order:E})}},[h==null?void 0:h.field,h==null?void 0:h.order,_]),A=_?S:null,R=p.useCallback(function(O){!y||!b||!v||y(O.target.checked?b.concat(v.filter(function(T){return!b.includes(T.id)}).filter(function(T){return u?u(T):!0}).map(function(T){return T.id})):[])},[v,y,u,b]),C=Array.isArray(v)?u?v.filter(function(O){return u(O)}).map(function(O){return O.id}):v.map(function(O){return O.id}):[];return p.createElement(PU,{className:Ae(r,zt.thead)},p.createElement(gb,{className:Ae(zt.row,zt.headerRow)},a&&p.createElement(za,{padding:"none",className:Ae(zt.headerCell,zt.expandHeader)},!w&&v?p.createElement(Jge,{ids:v.map(function(O){return O.id})}):null),i&&b&&p.createElement(za,{padding:"checkbox",className:zt.headerCell},p.createElement(ev,{inputProps:{"aria-label":d("ra.action.select_all",{_:"Select all"})},className:"select-all",color:"primary",checked:b.length>0&&C.length>0&&C.every(function(O){return b.includes(O)}),onChange:R,onClick:function(O){return O.stopPropagation()}})),p.Children.map(t,function(O,T){return p.isValidElement(O)?p.createElement(Wge,{className:Ae(zt.headerCell,"column-".concat(O.props.source)),sort:h,field:O,isSorting:(h==null?void 0:h.field)===(O.props.sortBy||O.props.source),key:O.props.source||T,updateSort:A||void 0}):null})))};x9.displayName="DatagridHeader";var Zge=function(e){var t=e.children,r=e.value;return Qe.createElement(hj.Provider,{value:r},t)};const eye=ot(I.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));var MT=function(){return MT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},MT.apply(this,arguments)},tye=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},rye=p.createElement(Hve,null),nye=function(e){var t,r=Mt({props:e,name:Ac}),n=r.label,a=n===void 0?"ra.action.bulk_actions":n,o=r.children,i=r.className,u=r.selectAllButton,d=tye(r,["label","children","className","selectAllButton"]),l=Va(),h=l.selectedIds,v=h===void 0?[]:h,y=l.onUnselectItems,b=nt(),_=p.useCallback(function(){y()},[y]);return p.createElement(aye,{className:i},p.createElement(yv,MT({"data-test":"bulk-actions-toolbar",className:Ae(xs.toolbar,(t={},t[xs.collapsed]=v.length===0,t))},nb(d)),p.createElement("div",{className:xs.title},p.createElement(vn,{className:xs.icon,"aria-label":b("ra.action.unselect"),title:b("ra.action.unselect"),onClick:_,color:"primary",size:"small"},p.createElement(eye,{fontSize:"small"})),p.createElement(Qt,{sx:{color:function(w){return(w.vars||w).palette.text.primary}},variant:"subtitle1"},b(a,{_:a,smart_count:v.length})),u!==!1?p.isValidElement(u)?u:rye:null),p.createElement(Qi,{className:xs.topToolbar},o)))},Ac="RaBulkActionsToolbar",xs={toolbar:"".concat(Ac,"-toolbar"),topToolbar:"".concat(Ac,"-topToolbar"),buttons:"".concat(Ac,"-buttons"),collapsed:"".concat(Ac,"-collapsed"),title:"".concat(Ac,"-title"),icon:"".concat(Ac,"-icon")},aye=ve("div",{name:Ac,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={position:"relative"},t["& .".concat(xs.toolbar)]={position:"absolute",left:0,right:0,zIndex:3,color:(n.vars||n).palette.primary.contrastText,justifyContent:"space-between",backgroundColor:n.vars?n.vars.palette.bulkActionsToolbarBackgroundColor:n.palette.mode==="light"?_d(n.palette.primary.light,.8):n.palette.primary.dark,minHeight:n.spacing(6),height:n.spacing(6),paddingRight:n.spacing(2),transform:"translateY(".concat(n.spacing(-6),")"),transition:"".concat(n.transitions.create("height"),", ").concat(n.transitions.create("min-height"),", ").concat(n.transitions.create("transform")),borderTopLeftRadius:n.shape.borderRadius,borderTopRightRadius:n.shape.borderRadius},t["& .".concat(xs.topToolbar)]=(r={padding:n.spacing(.5),minHeight:"auto"},r[n.breakpoints.down("sm")]={backgroundColor:"transparent"},r),t["& .".concat(xs.buttons)]={},t["& .".concat(xs.collapsed)]={minHeight:0,height:0,transform:"translateY(0)",overflowY:"hidden"},t["& .".concat(xs.title)]={display:"flex",flex:"0 0 auto",gap:n.spacing(1)},t["& .".concat(xs.icon)]={marginLeft:"-0.5em","&:hover":{backgroundColor:"color-mix(in srgb, ".concat((n.vars||n).palette.primary.main,", transparent 12%)")}},t}),oye=function(){var e=nt(),t=er(),r=lI(),n=r.filterValues,a=r.setFilters,o=dp();if(!t)throw new Error("<ListNoResults> must be used inside a <List> component");return p.createElement(Di,null,p.createElement(Qt,{variant:"body2"},n&&a&&Object.keys(n).length>0?p.createElement(p.Fragment,null,e("ra.navigation.no_filtered_results",{resource:t,name:o(t,0),_:"No results found with the current filters."})," ",p.createElement(Ir,{onClick:function(){return a({},[])},label:e("ra.navigation.clear_filters",{_:"Clear filters"})})):e("ra.navigation.no_results",{resource:t,name:o(t,0),_:"No results found."})))},Sb=function(){return Sb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Sb.apply(this,arguments)},iye=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},V4=p.createElement(dS,null),qa=p.forwardRef(function(e,t){var r=Mt({name:fn,props:e}),n=er(r),a=Pl({resource:n,action:"delete"}).canAccess,o=r.optimized,i=o===void 0?!1:o,u=r.body,d=u===void 0?i?_9:mj:u,l=r.header,h=l===void 0?x9:l,v=r.children,y=r.className,b=r.empty,_=b===void 0?uye:b,w=r.expand,S=r.bulkActionsToolbar,A=r.bulkActionButtons,R=A===void 0?a?V4:!1:A,C=r.hover,O=r.isRowSelectable,T=r.isRowExpandable,E=r.resource,L=r.rowClick,j=r.rowSx,M=r.rowStyle,k=r.size,$=k===void 0?"small":k,B=r.sx,z=r.expandSingle,U=z===void 0?!1:z,W=iye(r,["optimized","body","header","children","className","empty","expand","bulkActionsToolbar","bulkActionButtons","hover","isRowSelectable","isRowExpandable","resource","rowClick","rowSx","rowStyle","size","sx","expandSingle"]),Q=lI(r),V=Q.sort,K=Q.data,X=Q.isPending,te=Q.onSelect,G=Q.onToggleItem,J=Q.selectedIds,de=Q.setSort,ce=Q.total,ue=!!R,be=p.useMemo(function(){return{isRowExpandable:T,expandSingle:U}},[T,U]),Pe=p.useRef(null);p.useEffect(function(){(!J||J.length===0)&&(Pe.current=null)},[JSON.stringify(J)]);var Ee=p.useCallback(function(ge,xe){if(K){var Oe=K.map(function(et){return et.id}),Te=Oe.indexOf(Pe.current);if(Pe.current=xe.target.checked?ge:null,xe.shiftKey&&Te!==-1){var Me=Oe.indexOf(ge),Fe=Oe.slice(Math.min(Te,Me),Math.max(Te,Me)+1),$e=xe.target.checked?Oz(J,Fe):dre(J,Fe);te==null||te(O?$e.filter(function(et){return O(K.find(function(qe){return qe.id===et}))}):$e)}else G==null||G(ge)}},[K,O,te,G,J]);return X===!0?p.createElement(Xge,{className:y,expand:w,hasBulkActions:ue,nbChildren:p.Children.count(v),size:$}):K==null||K.length===0||ce===0?_||null:p.createElement(Zge,{value:be},p.createElement(pv,{value:E},p.createElement(Tge,{sx:B,className:Ae(zt.root,y)},S??(R!==!1?p.createElement(nye,null,p.isValidElement(R)?R:V4):null),p.createElement("div",{className:zt.tableWrapper},p.createElement(EU,Sb({ref:t,className:zt.table,size:$},lye(W)),W4(h,{children:v,sort:V,data:K,hasExpand:!!w,hasBulkActions:ue,isRowSelectable:O,onSelect:te,selectedIds:J,setSort:de},v),W4(d,{expand:w,rowClick:L,data:K,hasBulkActions:ue,hover:C,onToggleItem:Ee,resource:E,rowSx:j,rowStyle:M,selectedIds:J,isRowSelectable:O},v))))))}),W4=function(e,t,r){return p.isValidElement(e)?p.cloneElement(e,t,r):p.createElement(e,t,r)},sye=["isRequired","setFilter","setPagination","limitChoicesToValue","translateChoice","field","fieldState","formState"],lye=function(e){return Object.keys(nb(e)).filter(function(t){return!sye.includes(t)||t==="ref"}).reduce(function(t,r){var n;return Sb(Sb({},t),(n={},n[r]=e[r],n))},{})};qa.displayName="Datagrid";var uye=p.createElement(oye,null),cye=function(){return W6("ra.inspector.Datagrid.title",{_:"Datagrid"}),p.createElement(ime,{name:"columns",availableName:"availableColumns"})},Aw=function(){return Aw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Aw.apply(this,arguments)},S9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},C9=function(e){var t=e.preferenceKey,r=e.omit,n=S9(e,["preferenceKey","omit"]);if(n.optimized)throw new Error("DatagridConfigurable does not support the optimized prop");var a=nt(),o=er(n),i=t||"".concat(o,".datagrid"),u=xa("preferences.".concat(i,".availableColumns"),[]),d=u[0],l=u[1],h=xa("preferences.".concat(i,".omit"),r),v=h[1];return p.useEffect(function(){var y=p.Children.toArray(n.children).filter(function(b){return p.isValidElement(b)}).map(function(b,_){return{index:String(_),source:b.props.source,label:b.props.label&&typeof b.props.label=="string"?b.props.label:b.props.source?void 0:a("ra.configurable.Datagrid.unlabeled",{column:_,_:"Unlabeled column #%{column}"})}});y.length!==d.length&&(l(y),v(r))},[d]),p.createElement(zU,{editor:p.createElement(cye,null),preferenceKey:i,sx:{display:"block",minHeight:2}},p.createElement(dye,Aw({},n)))},dye=function(e){var t=e.children,r=S9(e,["children"]),n=ad("availableColumns",[])[0],a=ad("omit",[])[0],o=ad("columns",n.filter(function(u){return u.source?!(a!=null&&a.includes(u.source)):!0}).map(function(u){return u.index}))[0],i=p.Children.toArray(t);return p.createElement(qa,Aw({},r),o===void 0?t:o.map(function(u){return i[u]}))};const H4=ot(I.jsx("path",{d:"M5.33 20H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h1.33c1.1 0 2 .9 2 2v12c0 1.1-.89 2-2 2M22 18V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2H20c1.11 0 2-.9 2-2m-7.33 0V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h1.33c1.1 0 2-.9 2-2"}));var Iw=function(){return Iw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Iw.apply(this,arguments)},fye=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Oc=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},E9=function(e){var t=Mt({props:e,name:O9}),r=t.preferenceKey,n=er(t),a=r||"".concat(n,".datagrid"),o=p.useState(null),i=o[0],u=o[1],d=xa("preferences.".concat(a,".availableColumns"),[]),l=d[0],h=d[1],v=xa("preferences.".concat(a,".omit"),[])[0],y=xa("preferences.".concat(a,".columns"),l.filter(function(E){return E.source?!(v!=null&&v.includes(E.source)):!0}).map(function(E){return E.index})),b=y[0],_=y[1],w=nt(),S=po(function(E){return E.breakpoints.down("sm")}),A=w("ra.action.select_columns",{_:"Columns"}),R=function(E){u(E.currentTarget)},C=function(){u(null)},O=function(E){E.target.checked?_(l.filter(function(L){return L.index===E.target.name||b.includes(L.index)}).map(function(L){return L.index})):_(b.filter(function(L){return L!==E.target.name}))},T=function(E,L){var j=l.findIndex(function($){return $.index==E}),M=l.findIndex(function($){return $.index==L});if(!(j===-1||M===-1)){var k;j>M?k=Oc(Oc(Oc(Oc([],l.slice(0,M),!0),[l[j]],!1),l.slice(M,j),!0),l.slice(j+1),!0):k=Oc(Oc(Oc(Oc([],l.slice(0,j),!0),l.slice(j+1,M+1),!0),[l[j]],!1),l.slice(M+1),!0),h(k),_(function($){return k.filter(function(B){return $.includes(B.index)}).map(function(B){return B.index})})}};return p.createElement(p.Fragment,null,S?p.createElement(Ca,{title:A},p.createElement(vn,Iw({"aria-label":A,color:"primary",onClick:R,size:"large"},K4(t)),p.createElement(H4,null))):p.createElement(pye,Iw({size:"small",onClick:R,startIcon:p.createElement(H4,null)},K4(t)),A),p.createElement(rj,{open:!!i,anchorEl:i,onClose:C,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},p.createElement(Mo,{component:"ul",sx:{p:1,my:0}},l.map(function(E){return p.createElement(qU,{key:E.index,source:E.source,label:E.label,index:E.index,selected:b.includes(E.index),onToggle:O,onMove:T})}))))},O9="RaSelectColumnsButton",pye=ve(Dn,{name:O9,overridesResolver:function(e,t){return t.root}})({"&.MuiButton-sizeSmall":{lineHeight:1.5}}),K4=function(e){e.resource,e.preferenceKey;var t=fye(e,["resource","preferenceKey"]);return t},hS=p.createContext(void 0),hye=function(e){var t,r=Mt({props:e,name:jw}),n=r.filterElement,a=r.handleHide,o=r.className,i=er(r),u=nt();return p.createElement(mye,{"data-source":n.props.source,className:Ae("filter-field",o)},p.cloneElement(n,{resource:i,record:vye,size:(t=n.props.size)!==null&&t!==void 0?t:"small",helperText:!1,defaultValue:void 0}),!n.props.alwaysOn&&p.createElement(vn,{className:Ae("hide-filter",Mw.hideButton),onClick:a,"data-key":n.props.source,title:u("ra.action.remove_filter"),size:"small"},p.createElement(h9,null)),p.createElement("div",{className:Mw.spacer}," "))},jw="RaFilterFormInput",Mw={spacer:"".concat(jw,"-spacer"),hideButton:"".concat(jw,"-hideButton")},mye=ve("div",{name:jw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",alignItems:"flex-end",pointerEvents:"auto"},t[r.breakpoints.down("sm")]={width:"100%"},t["& .".concat(Mw.spacer)]={width:r.spacing(2)},t["& .".concat(Mw.hideButton)]={marginBottom:r.spacing(1)},t}),vye={},FT=function(){return FT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},FT.apply(this,arguments)},P9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},gye=function(e){var t=Mt({props:e,name:Fw}),r=t.filters,n=P9(t,["filters"]),a=p.useContext(hS)||r;return p.createElement(Ree,FT({formComponent:_ye},bye(n)),p.createElement(yye,{filters:a}))},yye=function(e){var t=e.filters,r=er(e),n=Va(),a=n.displayedFilters,o=a===void 0?{}:a,i=n.filterValues,u=n.hideFilter;p.useEffect(function(){t&&t.forEach(function(h){if(h.props.alwaysOn&&h.props.defaultValue)throw new Error("Cannot use alwaysOn and defaultValue on a filter input. Please set the filterDefaultValues props on the <List> element instead.")})},[t]);var d=function(){if(!t)return[];var h=i;return t.filter(function(v){var y=or(h,v.props.source);return v.props.alwaysOn||o[v.props.source]||!R9(y)})},l=p.useCallback(function(h){return u(h.currentTarget.dataset.key)},[u]);return p.createElement(p.Fragment,null,d().map(function(h){return p.createElement(hye,{key:h.key||h.props.source,filterElement:h,handleHide:l,resource:r,className:Lw.filterFormInput})}),p.createElement("div",{className:Lw.clearFix}))},bye=function(e){e.hasCreate,e.resource;var t=P9(e,["hasCreate","resource"]);return t},Fw="RaFilterForm",Lw={clearFix:"".concat(Fw,"-clearFix"),filterFormInput:"".concat(Fw,"-filterFormInput")},_ye=ve("form",{name:Fw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flex:"0 1 auto"},t[r.breakpoints.down("sm")]={width:"100%"},t[r.breakpoints.up("sm")]={minHeight:r.spacing(8)},t[r.breakpoints.up("md")]={flex:"0 1 100%"},t.flexWrap="wrap",t.alignItems="flex-end",t.pointerEvents="none",t.padding="0 0 ".concat(r.spacing(.5)," 0"),t["& .MuiFormHelperText-root"]={display:"none"},t["& .".concat(Lw.clearFix)]={clear:"right"},t["& .".concat(Lw.filterFormInput," .MuiFormControl-root")]={marginTop:"".concat(r.spacing(1))},t}),R9=function(e){return e===""||e==null?!0:typeof e=="object"?Object.keys(e).every(function(t){return R9(e[t])}):!1};const rv=ot(I.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),wye=ot(I.jsx("path",{d:"M21 7h-2v2h-2V7h-2V5h2V3h2v2h2zm-2 14-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1z"})),xye=ot(I.jsx("path",{d:"M21 7h-6V5h6zm-2 3.9c-.32.07-.66.1-1 .1-2.76 0-5-2.24-5-5 0-1.13.37-2.16 1-3H7c-1.1 0-2 .9-2 2v16l7-3 7 3z"})),Sye=ot(I.jsx("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2m0 15-5-2.18L7 18V5h10z"})),Cye=ot(I.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"})),Eye=ot(I.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),Oye=ot(I.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}));var Pye=p.forwardRef(function(e,t){var r=e.filter,n=e.onShow,a=e.onHide,o=e.autoFocus,i=e.displayed,u=er(e),d=p.useCallback(function(){n({source:r.props.source,defaultValue:r.props.defaultValue})},[r.props.defaultValue,r.props.source,n]),l=p.useCallback(function(){a({source:r.props.source})},[r.props.source,a]);return p.createElement(oi,{className:"new-filter-item","data-key":r.props.source,"data-default-value":r.props.defaultValue,key:r.props.source,onClick:i?l:d,autoFocus:o,ref:t,disabled:r.props.disabled,role:"menuitemcheckbox","aria-checked":i},p.createElement(Bf,null,i?p.createElement(Oye,{fontSize:"small"}):p.createElement(Eye,{fontSize:"small"})),p.createElement(tm,null,p.createElement(Vi,{label:r.props.label,source:r.props.source,resource:u})))}),gj=function(e){return xa("".concat(e,".savedQueries"),[])},yj=function(e){return Array.isArray(e)?e.filter(function(t){return Rye(t)}):[]},Rye=function(e){var t,r;return!!(e.label&&typeof e.label=="string"&&e.value&&typeof Array.isArray(e.value.displayedFilters)&&typeof e.value.perPage=="number"&&typeof((t=e.value.sort)===null||t===void 0?void 0:t.field)=="string"&&typeof((r=e.value.sort)===null||r===void 0?void 0:r.order)=="string"&&typeof e.value.filter=="object")},kye=function(e){var t=e.open,r=e.onClose,n=nt(),a=Va(),o=a.resource,i=a.filterValues,u=a.displayedFilters,d=a.sort,l=a.perPage,h=gj(o),v=h[0],y=h[1],b=p.useState(""),_=b[0],w=b[1],S=function(C){w(C.target.value)},A=function(C){C.preventDefault(),R()},R=function(){var C={label:_,value:{filter:i,sort:d,perPage:l,displayedFilters:u}},O=yj(v);y(O.concat(C)),w(""),r()};return p.createElement(n0,{open:t,onClose:r,"aria-labelledby":"form-dialog-title"},p.createElement(o0,{id:"form-dialog-title"},n("ra.saved_queries.new_dialog_title",{_:"Save current query as"})),p.createElement(a0,null,p.createElement("form",{onSubmit:A},p.createElement(s0,{autoFocus:!0,margin:"dense",id:"name",label:n("ra.saved_queries.query_name",{_:"Query name"}),fullWidth:!0,value:_,onChange:S}))),p.createElement(JI,null,p.createElement(Dn,{onClick:r},n("ra.action.cancel")),p.createElement(Dn,{onClick:R,color:"primary"},n("ra.action.save"))))},G4=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Tye=function(e){var t=e.open,r=e.onClose,n=nt(),a=Va(),o=a.resource,i=a.filterValues,u=a.sort,d=a.perPage,l=a.displayedFilters,h=gj(o),v=h[0],y=h[1],b=function(){var _={filter:i,sort:u,perPage:d,displayedFilters:l},w=yj(v),S=w.findIndex(function(A){return ii(A.value,_)});y(G4(G4([],w.slice(0,S),!0),w.slice(S+1),!0)),r()};return p.createElement(n0,{open:t,onClose:r,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},p.createElement(o0,{id:"alert-dialog-title"},n("ra.saved_queries.remove_dialog_title",{_:"Remove saved query?"})),p.createElement(a0,null,p.createElement(rS,null,n("ra.saved_queries.remove_message",{_:"Are you sure you want to remove that item from your list of saved queries?"}))),p.createElement(JI,null,p.createElement(Dn,{onClick:r},n("ra.action.cancel")),p.createElement(Dn,{onClick:b,color:"primary",autoFocus:!0},n("ra.action.confirm"))))},LT=function(){return LT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},LT.apply(this,arguments)},k9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Aye=function(e){var t=Mt({props:e,name:T9}),r=t.filters,n=t.className,a=t.disableSaveQuery,o=t.size,i=t.variant,u=k9(t,["filters","className","disableSaveQuery","size","variant"]),d=p.useContext(hS)||r,l=er(t),h=nt();if(!l&&!a)throw new Error("<FilterButton> must be called inside a ResourceContextProvider, or must provide a resource prop");var v=gj(l||"")[0],y=Os(),b=Va(),_=b.displayedFilters,w=_===void 0?{}:_,S=b.filterValues,A=b.perPage,R=b.setFilters,C=b.showFilter,O=b.hideFilter,T=b.sort,E=!ii(S,{}),L=yj(v),j=L.some(function(Ee){return ii(Ee.value,{filter:S,sort:T,perPage:A,displayedFilters:w})}),M=p.useState(!1),k=M[0],$=M[1],B=p.useRef();if(d===void 0)throw new Error("The <FilterButton> component requires the <List filters> prop to be set");var z=d.filter(function(Ee){return!Ee.props.alwaysOn}),U=p.useCallback(function(Ee){Ee.preventDefault(),$(!0),B.current=Ee.currentTarget},[B,$]),W=p.useCallback(function(){$(!1)},[$]),Q=p.useCallback(function(Ee){var ge=Ee.source,xe=Ee.defaultValue;C(ge,xe===""?void 0:xe),setTimeout(function(){var Oe=document.querySelector("input[name='".concat(ge,"']"));Oe&&Oe.focus()},50),$(!1)},[C,$]),V=p.useCallback(function(Ee){var ge=Ee.source;O(ge),$(!1)},[O,$]),K=p.useState(!1),X=K[0],te=K[1],G=function(){te(!1)},J=function(){$(!1),te(!0)},de=p.useState(!1),ce=de[0],ue=de[1],be=function(){ue(!1)},Pe=function(){$(!1),ue(!0)};return z.length===0&&L.length===0&&!E?null:p.createElement(jye,LT({className:n},Iye(u)),p.createElement(Ir,{className:"add-filter",label:"ra.action.add_filter","aria-haspopup":"true",onClick:U,variant:i,size:o},p.createElement(Cye,null)),p.createElement(aS,{open:k,anchorEl:B.current,onClose:W},z.map(function(Ee,ge){return p.createElement(Pye,{key:Ee.props.source,filter:Ee,displayed:!!w[Ee.props.source],resource:l,onShow:Q,onHide:V,autoFocus:ge===0})}),(E||L.length>0)&&p.createElement(tv,null),L.map(function(Ee,ge){return ii(Ee.value,{filter:S,sort:T,perPage:A,displayedFilters:w})?p.createElement(oi,{onClick:Pe,key:ge},p.createElement(Bf,null,p.createElement(xye,{fontSize:"small"})),p.createElement(tm,null,h("ra.saved_queries.remove_label_with_name",{_:'Remove query "%{name}"',name:Ee.label}))):p.createElement(oi,{onClick:function(){var xe,Oe;y({search:Um.stringify({filter:JSON.stringify(Ee.value.filter),sort:(xe=Ee.value.sort)===null||xe===void 0?void 0:xe.field,order:(Oe=Ee.value.sort)===null||Oe===void 0?void 0:Oe.order,page:1,perPage:Ee.value.perPage,displayedFilters:JSON.stringify(Ee.value.displayedFilters)})}),$(!1)},key:ge},p.createElement(Bf,null,p.createElement(Sye,{fontSize:"small"})),p.createElement(tm,null,Ee.label))}),E&&!j&&!a&&p.createElement(oi,{onClick:J},p.createElement(Bf,null,p.createElement(wye,{fontSize:"small"})),p.createElement(tm,null,h("ra.saved_queries.new_label",{_:"Save current query..."}))),E&&p.createElement(oi,{onClick:function(){R({},{}),$(!1)}},p.createElement(Bf,null,p.createElement(rv,{fontSize:"small"})),p.createElement(tm,null,h("ra.action.remove_all_filters",{_:"Remove all filters"})))),!a&&p.createElement(p.Fragment,null,p.createElement(kye,{open:X,onClose:G}),p.createElement(Tye,{open:ce,onClose:be})))},Iye=function(e){e.displayedFilters,e.filterValues,e.showFilter;var t=k9(e,["displayedFilters","filterValues","showFilter"]);return t},T9="RaFilterButton",jye=ve("div",{name:T9,overridesResolver:function(e,t){return t.root}})({display:"inline-block"});const Mye=ot(I.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}));var $T=function(){return $T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},$T.apply(this,arguments)},A9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Fye=p.memo(function(e){var t=Mt({props:e,name:I9}),r=t.page,n=t.rowsPerPage,a=t.count,o=t.onPageChange,i=t.size,u=i===void 0?"small":i,d=t.className,l=A9(t,["page","rowsPerPage","count","onPageChange","size","className"]),h=nt(),v=Math.ceil(a/n)||1;if(v===1)return p.createElement(Q4,{className:d});var y=function(b,_,w){return b==="page"?w?h("ra.navigation.current_page",{page:_,_:"page ".concat(_)}):h("ra.navigation.page",{page:_,_:"Go to page ".concat(_)}):h("ra.navigation.".concat(b),{_:"Go to ".concat(b," page")})};return p.createElement(Q4,{className:d},p.createElement(cfe,$T({size:u,count:v,page:r+1,onChange:function(b,_){return o(b,_-1)}},Lye(l),{getItemAriaLabel:y})))}),I9="RaPaginationActions",Q4=ve("div",{name:I9,overridesResolver:function(e,t){return t.root}})(function(){return{flexShrink:0,ml:4}}),Lye=function(e){e.nextIconButtonProps,e.backIconButtonProps,e.slotProps;var t=A9(e,["nextIconButtonProps","backIconButtonProps","slotProps"]);return t},$w=function(){return $w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},$w.apply(this,arguments)},$ye=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},hp=p.memo(function(e){var t=e.rowsPerPageOptions,r=t===void 0?Dye:t,n=e.actions;e.limit;var a=$ye(e,["rowsPerPageOptions","actions","limit"]),o=vZ(),i=o.isPending,u=o.hasNextPage,d=o.page,l=o.perPage,h=o.total,v=o.setPage,y=o.setPerPage,b=nt(),_=po(function(T){return T.breakpoints.down("md")}),w=p.useMemo(function(){return h!=null?Math.ceil(h/l):void 0},[l,h]),S=p.useCallback(function(T,E){if(T&&T.stopPropagation(),E<0||w&&E>w-1)throw new Error(b("ra.navigation.page_out_of_boundaries",{page:E+1}));v(E+1)},[w,v,b]),A=p.useCallback(function(T){y(T.target.value)},[y]),R=p.useCallback(function(T){var E=T.from,L=T.to,j=T.count;return j===-1&&u?b("ra.navigation.partial_page_range_info",{offsetBegin:E,offsetEnd:L,_:"%{from}-%{to} of more than %{to}"}):b("ra.navigation.page_range_info",{offsetBegin:E,offsetEnd:L,total:j===-1?L:j,_:"%{from}-%{to} of %{count === -1 ? to : count}"})},[b,u]),C=p.useCallback(function(T){return b("ra.navigation.".concat(T),{_:"Go to ".concat(T," page")})},[b]);if(i)return p.createElement(yv,{variant:"dense"});if(h===0||d<1||h!=null&&d>w)return null;if(_)return p.createElement(I4,$w({count:h??-1,rowsPerPage:l,page:d-1,onPageChange:S,rowsPerPageOptions:Nye,component:"span",labelDisplayedRows:R},nb(a)));var O=n||(!i&&h!=null?Fye:void 0);return p.createElement(I4,$w({count:h??-1,rowsPerPage:l,page:d-1,onPageChange:S,onRowsPerPageChange:A,ActionsComponent:O,nextIconButtonProps:{disabled:!u},component:"span",labelRowsPerPage:b("ra.navigation.page_rows_per_page"),labelDisplayedRows:R,getItemAriaLabel:C,rowsPerPageOptions:r},nb(a)))}),Dye=[5,10,25,50],Nye=[],Dw=function(){return Dw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Dw.apply(this,arguments)},Bye=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},bj=function(e){var t=e.className,r=e.defaultValue,n=e.format,a=n===void 0?Vye:n,o=e.label,i=e.helperText,u=e.margin,d=e.onBlur,l=e.onChange,h=e.onFocus,v=e.source,y=e.resource,b=e.validate,_=e.variant,w=e.disabled,S=e.readOnly,A=Bye(e,["className","defaultValue","format","label","helperText","margin","onBlur","onChange","onFocus","source","resource","validate","variant","disabled","readOnly"]),R=Ub(Dw({defaultValue:r,onBlur:d,resource:y,source:v,validate:b,disabled:w,readOnly:S,format:a},A)),C=R.field,O=R.fieldState,T=R.id,E=R.isRequired,L=p.useRef(),j=p.useRef(C.value),M=p.useState(1),k=M[0],$=M[1],B=p.useRef(!1);p.useEffect(function(){var ce,ue;if(B.current){B.current=!1;return}var be=((ce=L.current)===null||ce===void 0?void 0:ce.value)!==C.value&&!(((ue=L.current)===null||ue===void 0?void 0:ue.value)===""&&C.value==null);be&&(j.current=C.value,$(function(Pe){return Pe+1}),B.current=!1)},[$,C.value]);var z=C.onBlur,U=p.useRef(!1),W=function(ce){if(l&&l(ce),!(typeof ce.target>"u"||typeof ce.target.value>"u")){var ue=ce.target,be=ue.value,Pe=be===""||!isNaN(new Date(ue.value).getTime());be!==""&&be!=null&&Pe&&(C.onChange(be),B.current=!0)}},Q=function(ce){h&&h(ce),U.current=!0},V=function(){if(U.current=!1,!!L.current){var ce=L.current.value,ue=ce===""||!isNaN(new Date(L.current.value).getTime());ue&&C.value!==ce&&C.onChange(ce??""),z&&z()}},K=O.error,X=O.invalid,te=i!==!1||X,G=C.ref,J=C.name,de=En(G,L);return p.createElement(s0,Dw({id:T,inputRef:de,name:J,defaultValue:a(j.current),key:k,type:"datetime-local",onChange:W,onFocus:Q,onBlur:V,className:Ae("ra-input","ra-input-".concat(v),t),size:"small",variant:_,margin:u,error:X,disabled:w||S,readOnly:S,helperText:te?p.createElement(lp,{error:K==null?void 0:K.message,helperText:i}):null,label:o!==""&&o!==!1?p.createElement(Vi,{label:o,source:v,resource:y,isRequired:E}):null,InputLabelProps:Uye},wv(A)))},j9=function(e){return e===void 0&&(e=2),function(t){return("0".repeat(e)+t).slice(-e)}},zye=j9(4),o1=j9(2),X4=function(e){if(!(e instanceof Date)||isNaN(e.getDate()))return"";var t=zye(e.getFullYear()),r=o1(e.getMonth()+1),n=o1(e.getDate()),a=o1(e.getHours()),o=o1(e.getMinutes());return"".concat(t,"-").concat(r,"-").concat(n,"T").concat(a,":").concat(o)},qye=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,Uye={shrink:!0},Vye=function(e){return e==null||e===""?"":e instanceof Date?X4(e):qye.test(e)?e:X4(new Date(e))},Nw=function(){return Nw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Nw.apply(this,arguments)},Y4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Ef,mS=p.forwardRef(function(e,t){var r=Mt({props:e,name:"MuiTextField"}),n=Mt({props:r,name:Ff}),a=n.clearAlwaysVisible,o=n.InputProps,i=n.value,u=n.resettable,d=n.disabled,l=n.readOnly,h=n.variant,v=n.margin,y=n.className,b=Y4(n,["clearAlwaysVisible","InputProps","value","resettable","disabled","readOnly","variant","margin","className"]),_=nt(),w=n.onChange,S=p.useCallback(function(k){k.preventDefault(),w&&w("")},[w]),A=_l.clearButton,R=_l.clearIcon,C=_l.inputAdornedEnd,O=_l.selectAdornment,T=_l.visibleClearIcon,E=o||{},L=E.endAdornment,j=Y4(E,["endAdornment"]);if(a&&L)throw new Error("ResettableTextField cannot display both an endAdornment and a clear button always visible");var M=function(){var k;return u?i?p.createElement(um,{position:"end",className:n.select?O:void 0},p.createElement(vn,{className:A,"aria-label":_("ra.action.clear_input_value"),title:_("ra.action.clear_input_value"),onClick:S,onMouseDown:Wye,disabled:d||l,size:"large"},p.createElement(rv,{className:Ae(R,(k={},k[T]=a||i,k))}))):a?p.createElement(um,{position:"end",className:n.select?O:void 0},p.createElement(vn,{className:A,"aria-label":_("ra.action.clear_input_value"),title:_("ra.action.clear_input_value"),disabled:!0,size:"large"},p.createElement(rv,{className:Ae(R,T)}))):L||p.createElement(um,{position:"end",className:n.select?O:void 0},p.createElement("span",{className:A}," ")):L};return p.createElement(Hye,Nw({value:i,InputProps:Nw({readOnly:l,classes:n.select&&h==="filled"?{adornedEnd:C}:{},endAdornment:M()},j),disabled:d||l,variant:h,margin:v,className:y},b,{inputRef:t}))});mS.displayName="ResettableTextField";var Wye=function(e){e.preventDefault()},Ff="RaResettableTextField",_l={clearIcon:"".concat(Ff,"-clearIcon"),visibleClearIcon:"".concat(Ff,"-visibleClearIcon"),clearButton:"".concat(Ff,"-clearButton"),selectAdornment:"".concat(Ff,"-selectAdornment"),inputAdornedEnd:"".concat(Ff,"-inputAdornedEnd")},M9=(Ef={},Ef["& .".concat(_l.clearIcon)]={height:16,width:0},Ef["& .".concat(_l.visibleClearIcon)]={width:16},Ef["& .".concat(_l.clearButton)]={height:24,width:24,padding:0},Ef["& .".concat(_l.selectAdornment)]={position:"absolute",right:24},Ef["& .".concat(_l.inputAdornedEnd)]={paddingRight:0},Ef),Hye=ve(s0,{name:Ff,overridesResolver:function(e,t){return t.root}})(M9),Bw=function(){return Bw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Bw.apply(this,arguments)},Kye=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},oa=function(e){var t=e.className,r=e.defaultValue,n=e.label,a=e.format,o=e.helperText,i=e.onBlur,u=e.onChange,d=e.parse,l=e.resource,h=e.source,v=e.validate,y=Kye(e,["className","defaultValue","label","format","helperText","onBlur","onChange","parse","resource","source","validate"]),b=Ub(Bw({defaultValue:r,format:a,parse:d,resource:l,source:h,type:"text",validate:v,onBlur:i,onChange:u},y)),_=b.field,w=b.fieldState,S=w.error,A=w.invalid,R=b.id,C=b.isRequired,O=o!==!1||A;return p.createElement(mS,Bw({id:R},_,{className:Ae("ra-input","ra-input-".concat(h),t),label:n!==""&&n!==!1?p.createElement(Vi,{label:n,source:h,resource:l,isRequired:C}):null,error:A,helperText:O?p.createElement(lp,{error:S==null?void 0:S.message,helperText:o}):null},wv(y)))},mp=function(e){var t,r=p.memo(e);return r.displayName=(t=e.displayName)===null||t===void 0?void 0:t.replace("Impl",""),r},F9=function(e){var t=e.children,r=e.resource,n=e.perPage,a=e.sort,o=e.filter,i=yd(e)||Qye,u=Wz({data:i,resource:r,perPage:n,sort:a,filter:o});return p.createElement(iI,{value:u},t)};F9.displayName="ArrayFieldImpl";var Gye=mp(F9),Qye=[];const Xye=ot(I.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}));var Yye=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},kl=function(e){e.cellClassName,e.className,e.emptyText,e.fullWidth,e.headerClassName,e.label,e.linkType,e.link,e.locale,e.record,e.refetch,e.resource,e.sortable,e.sortBy,e.sortByOrder,e.source,e.textAlign,e.translateChoice;var t=Yye(e,["cellClassName","className","emptyText","fullWidth","headerClassName","label","linkType","link","locale","record","refetch","resource","sortable","sortBy","sortByOrder","source","textAlign","translateChoice"]);return t},zw=function(){return zw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},zw.apply(this,arguments)},Jye=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},i1,L9=function(e){var t=Mt({props:e,name:qw}),r=t.className,n=t.emptyText,a=t.valueLabelTrue,o=t.valueLabelFalse,i=t.TrueIcon,u=i===void 0?Xye:i,d=t.FalseIcon,l=d===void 0?rv:d,h=t.looseValue,v=h===void 0?!1:h,y=Jye(t,["className","emptyText","valueLabelTrue","valueLabelFalse","TrueIcon","FalseIcon","looseValue"]),b=nt(),_=yd(t),w=_===!0||v&&_,S=_?a:o;return S||(S=w?"ra.boolean.true":"ra.boolean.false"),v||_===!1||_===!0?p.createElement(Zye,zw({component:"span",variant:"body2",className:r},kl(y)),p.createElement(Ca,{title:b(S,{_:S})},w?u?p.createElement(u,{"data-testid":"true",fontSize:"small",className:Uw.trueIcon}):p.createElement(p.Fragment,null):l?p.createElement(l,{"data-testid":"false",fontSize:"small",className:Uw.falseIcon}):p.createElement(p.Fragment,null))):p.createElement(Qt,zw({component:"span",variant:"body2",className:r},kl(y)),n&&b(n,{_:n}))};L9.displayName="BooleanFieldImpl";var zi=mp(L9),qw="RaBooleanField",Uw={trueIcon:"".concat(qw,"-trueIcon"),falseIcon:"".concat(qw,"-falseIcon")},Zye=ve(Qt,{name:qw,overridesResolver:function(e,t){return t.root}})((i1={display:"inline-flex",verticalAlign:"middle",lineHeight:0},i1["& .".concat(Uw.trueIcon)]={},i1["& .".concat(Uw.falseIcon)]={},i1)),Vw=function(){return Vw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Vw.apply(this,arguments)},ebe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},$9=function(e){var t=e.className,r=e.emptyText,n=e.locales,a=e.options,o=e.showTime,i=o===void 0?!1:o,u=e.showDate,d=u===void 0?!0:u,l=e.transform,h=l===void 0?tbe:l,v=ebe(e,["className","emptyText","locales","options","showTime","showDate","transform"]),y=nt();if(!i&&!d)throw new Error("<DateField> cannot have showTime and showDate false at the same time");var b=yd(e);if(b==null||b==="")return r?p.createElement(Qt,Vw({component:"span",variant:"body2",className:t},kl(v)),r&&y(r,{_:r})):null;var _=h(b),w="";if(_)if(i&&d)w=j2?_.toLocaleString(n,a):_.toLocaleString();else if(d){var S=a??(typeof b=="string"&&b.length<=10?{timeZone:"UTC"}:void 0);w=j2?_.toLocaleDateString(n,S):_.toLocaleDateString()}else i&&(w=j2?_.toLocaleTimeString(n,a):_.toLocaleTimeString());return p.createElement(Qt,Vw({component:"span",variant:"body2",className:t},kl(v)),w)};$9.displayName="DateFieldImpl";var wa=mp($9),tbe=function(e){return e instanceof Date?e:typeof e=="string"||typeof e=="number"?new Date(e):void 0},j2=function(){try{new Date().toLocaleString("i")}catch(e){return e instanceof RangeError}return!1}(),DT=function(){return DT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},DT.apply(this,arguments)},rbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},nbe=function(e){var t=e.className,r=e.source,n=r===void 0?"":r,a=e.render,o=rbe(e,["className","source","render"]),i=gr(e);return p.useMemo(function(){return i?p.createElement(Qt,DT({component:"span",variant:"body2",className:t},kl(o)),a(i,n)):null},[t,i,n,a,o])},Ww=function(){return Ww=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ww.apply(this,arguments)},abe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},D9=function(e){var t=e.className,r=e.emptyText;e.source;var n=e.locales,a=e.options;e.textAlign;var o=e.transform,i=o===void 0?obe:o,u=abe(e,["className","emptyText","source","locales","options","textAlign","transform"]),d=nt(),l=yd(e);return l==null?r?p.createElement(Qt,Ww({component:"span",variant:"body2",className:t},kl(u)),r&&d(r,{_:r})):null:(i&&(l=i(l)),p.createElement(Qt,Ww({variant:"body2",component:"span",className:t},kl(u)),ibe&&typeof l=="number"?l.toLocaleString(n,a):l))},obe=function(e){return e&&typeof e=="string"&&!isNaN(e)?+e:e};D9.displayName="NumberFieldImpl";var Ol=mp(D9);Ol.textAlign="right";var ibe=!!(typeof Intl=="object"&&Intl&&typeof Intl.NumberFormat=="function"),NT=function(){return NT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},NT.apply(this,arguments)},sbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},lbe=function(e){var t=Mt({props:e,name:_j}),r=t.to,n=t.children,a=t.className,o=sbe(t,["to","children","className"]);return p.createElement(cbe,NT({component:ui,to:r,className:Ae(ube.link,a)},o),n)},_j="RaLink",ube={link:"".concat(_j,"-link")},cbe=ve(pde)({name:_j,overridesResolver:function(e,t){return t.root}}),Hw=function(){return Hw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Hw.apply(this,arguments)},Tu=function(e){var t=Mt({props:e,name:Kw}),r=t.emptyText,n=nt(),a=yd(t);return a==null?r?p.createElement(Qt,{component:"span",variant:"body2"},r&&n(r,{_:r})):null:p.createElement(AJ,Hw({},t),p.createElement(pbe,Hw({},t)))},dbe=function(e){return e.stopPropagation()},fbe=function(e){var t=e.children,r=e.className,n=e.emptyText,a=e.reference,o=e.sx,i=PJ(),u=i.error,d=i.link,l=i.isLoading,h=i.referenceRecord,v=Hb(a),y=nt();if(u)return p.createElement("div",null,p.createElement(Mve,{role:"presentation",color:"error",fontSize:"small"}),p.createElement("span",{style:dfe},typeof u=="string"?u:u==null?void 0:u.message));if(l)return p.createElement(cj,null);if(!h)return n?p.createElement(Qt,{component:"span",variant:"body2"},n&&y(n,{_:n})):null;var b=t||p.createElement(Qt,{component:"span",variant:"body2"},v(h));return d?p.createElement(J4,{className:Ae(S1.root,r),sx:o},p.createElement(lbe,{to:d,className:S1.link,onClick:dbe,state:{_scrollToTop:!0}},b)):p.createElement(J4,{className:Ae(S1.root,r),sx:o},b)},pbe=mp(fbe),Kw="RaReferenceField",S1={root:"".concat(Kw,"-root"),link:"".concat(Kw,"-link")},J4=ve("span",{name:Kw,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={lineHeight:"initial"},t["& .".concat(S1.link)]={"& > *":{color:(r.vars||r).palette.primary.main}},t}),rd=function(e){var t=e.children,r=e.debounce,n=e.filter,a=n===void 0?hbe:n,o=e.page,i=o===void 0?1:o,u=e.pagination,d=u===void 0?null:u,l=e.perPage,h=l===void 0?25:l,v=e.reference,y=e.resource,b=e.sort,_=b===void 0?mbe:b,w=e.source,S=w===void 0?"id":w,A=e.storeKey,R=e.target,C=e.queryOptions,O=gr(e),T=bZ({debounce:r,filter:a,page:i,perPage:h,record:O,reference:v,resource:y,sort:_,source:S,storeKey:A,target:R,queryOptions:C});return Qe.createElement(Tx,{value:v},Qe.createElement(iI,{value:T},t,d))},hbe={},mbe={field:"id",order:"DESC"},Gw=function(){return Gw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Gw.apply(this,arguments)},vbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},N9=function(e){var t=e.className,r=e.emptyText,n=e.choices,a=e.optionValue,o=a===void 0?"id":a,i=e.optionText,u=i===void 0?"name":i,d=e.translateChoice,l=d===void 0?!0:d,h=vbe(e,["className","emptyText","choices","optionValue","optionText","translateChoice"]),v=yd(e),y=p6({optionText:u,optionValue:o,translateChoice:l}),b=y.getChoiceText,_=y.getChoiceValue,w=nt(),S=n?n.find(function(R){return _(R)===v}):null;if(!S)return r?p.createElement(Qt,Gw({component:"span",variant:"body2",className:t},kl(h)),r&&w(r,{_:r})):null;var A=b(S);return p.createElement(Qt,Gw({component:"span",variant:"body2",className:t},kl(h)),A)};N9.displayName="SelectFieldImpl";var M2=mp(N9),BT=function(){return BT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},BT.apply(this,arguments)},gbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},B9=function(e){var t=e.className,r=e.emptyText,n=gbe(e,["className","emptyText"]),a=nt(),o=yd(e);return p.createElement(Qt,BT({component:"span",variant:"body2",className:t},kl(n)),o!=null&&typeof o!="string"?o.toString():o||(r?a(r,{_:r}):null))};B9.displayName="TextFieldImpl";var st=mp(B9),ybe=function(e){var t=Mt({props:e,name:z9}),r=t.fullWidth,n=t.label,a=t.helperText,o=t.margin,i=t.size,u=t.sx,d=t.timeout,l=d===void 0?1e3:d,h=t.variant,v=Cx(l);return p.createElement(bbe,{sx:u,label:n,helperText:a,fullWidth:r,variant:h,margin:o,size:i,disabled:!0,onChange:function(){},InputProps:{endAdornment:p.createElement(um,{position:"end"},v?p.createElement(xd,{color:"inherit",size:20}):p.createElement("span",{style:{width:20}}," "))}})},z9="RaLoadingInput",bbe=ve(mS,{name:z9,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return{"& .MuiInputLabel-root.Mui-disabled":{color:(t.vars||t).palette.text.secondary},"& .MuiFilledInput-root.Mui-disabled":{background:(t.vars||t).palette.action.disabledBackground},"& .MuiFilledInput-root.Mui-disabled:before":{borderBottomStyle:"solid"}}}),Ic=function(){return Ic=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ic.apply(this,arguments)},Z4=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},pm=function(e){var t=e.className,r=e.defaultValue,n=r===void 0?null:r,a=e.format,o=a===void 0?wbe:a,i=e.helperText,u=e.label,d=e.margin,l=e.onChange,h=e.onBlur,v=e.onFocus,y=e.parse,b=e.resource,_=e.source,w=e.step,S=w===void 0?"any":w,A=e.min,R=e.max,C=e.validate,O=e.variant,T=e.inputProps,E=e.disabled,L=e.readOnly,j=Z4(e,["className","defaultValue","format","helperText","label","margin","onChange","onBlur","onFocus","parse","resource","source","step","min","max","validate","variant","inputProps","disabled","readOnly"]),M=Ub(Ic({defaultValue:n,onBlur:h,resource:b,source:_,validate:C,disabled:E,readOnly:L},j)),k=M.field,$=M.fieldState,B=$.error,z=$.invalid,U=M.id,W=M.isRequired,Q=k.onBlur,V=Ic(Ic({},T),{step:S,min:A,max:R}),K=p.useState(o(k.value)),X=K[0],te=K[1],G=p.useRef(!1);p.useEffect(function(){if(!G.current){var Ee=o(k.value);te(function(ge){return ge!==Ee?Ee:ge})}},[k.value,o]);var J=function(Ee){if(l&&l(Ee),!(typeof Ee.target>"u"||typeof Ee.target.value>"u")){var ge=Ee.target;te(ge.value);var xe=ge.valueAsNumber!==void 0&&ge.valueAsNumber!==null&&!isNaN(ge.valueAsNumber)?y?y(ge.valueAsNumber):ge.valueAsNumber:y?y(ge.value):_be(ge.value);k.onChange(xe)}},de=function(Ee){v&&v(Ee),G.current=!0},ce=function(Ee){Q&&Q(Ee),G.current=!1;var ge=o(k.value);te(function(xe){return xe!==ge?ge:xe})},ue=i!==!1||z,be=k.ref,Pe=Z4(k,["ref"]);return p.createElement(s0,Ic({id:U},Pe,{inputRef:be,value:X,onChange:J,onFocus:de,onBlur:ce,className:Ae("ra-input","ra-input-".concat(_),t),type:"number",size:"small",variant:O,error:z,disabled:E||L,readOnly:L,helperText:ue?p.createElement(lp,{error:B==null?void 0:B.message,helperText:i}):null,label:u!==""&&u!==!1?p.createElement(Vi,{label:u,source:_,resource:b,isRequired:W}):null,margin:d,inputProps:Ic(Ic({},V),{readOnly:L})},wv(j)))},_be=function(e){if(e==null||e==="")return null;var t=parseFloat(e);return isNaN(t)?0:t},wbe=function(e){return e==null||isNaN(e)?"":e.toString()};const q9=ot(I.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),xbe=ot(I.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}));var zT=function(){return zT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},zT.apply(this,arguments)},Sbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},vS=function(e){var t=e.initiallyVisible,r=t===void 0?!1:t,n=Sbe(e,["initiallyVisible"]),a=p.useState(r),o=a[0],i=a[1],u=nt(),d=function(){i(!o)};return p.createElement(oa,zT({type:o?"text":"password",size:"small",InputProps:{endAdornment:p.createElement(um,{position:"end"},p.createElement(vn,{"aria-label":u(o?"ra.input.password.toggle_visible":"ra.input.password.toggle_hidden"),onClick:d,size:"small"},o?p.createElement(q9,{fontSize:"small"}):p.createElement(xbe,{fontSize:"small"})))}},n))},qT=function(){return qT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},qT.apply(this,arguments)},Cbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},gS=function(e){var t=Mt({props:e,name:U9}),r=t.label,n=Cbe(t,["label"]),a=nt();if(r)throw new Error("<SearchInput> isn't designed to be used with a label prop. Use <TextInput> if you need a label.");return p.createElement(Ebe,qT({hiddenLabel:!0,label:"",resettable:!0,placeholder:a("ra.action.search"),InputProps:{endAdornment:p.createElement(um,{position:"end"},p.createElement(Mye,{color:"disabled"}))},size:"small"},n))},U9="RaSearchInput",Ebe=ve(oa,{name:U9,overridesResolver:function(e,t){return t.root}})({marginTop:0}),nv=function(){return nv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},nv.apply(this,arguments)},Obe=function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function u(h){try{l(n.next(h))}catch(v){i(v)}}function d(h){try{l(n.throw(h))}catch(v){i(v)}}function l(h){h.done?o(h.value):a(h.value).then(u,d)}l((n=n.apply(e,t||[])).next())})},Pbe=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(h){return d([l,h])}}function d(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(l[0]===6&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(h){l=[6,h],a=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},V9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},e5=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Qw=function(e){var t=Mt({props:e,name:W9}),r=t.choices,n=t.className,a=t.create,o=t.createLabel,i=t.createValue,u=t.createHintValue,d=t.defaultValue,l=t.disableValue,h=l===void 0?"disabled":l,v=t.emptyText,y=v===void 0?"":v,b=t.emptyValue,_=b===void 0?"":b,w=t.format;t.filter;var S=t.helperText,A=t.isFetching,R=t.isLoading,C=t.isPending,O=t.label,T=t.margin,E=T===void 0?"dense":T,L=t.onBlur,j=t.onChange,M=t.onCreate,k=t.optionText,$=t.optionValue,B=t.parse,z=t.resource,U=t.source,W=t.translateChoice,Q=t.validate,V=V9(t,["choices","className","create","createLabel","createValue","createHintValue","defaultValue","disableValue","emptyText","emptyValue","format","filter","helperText","isFetching","isLoading","isPending","label","margin","onBlur","onChange","onCreate","optionText","optionValue","parse","resource","source","translateChoice","validate"]),K=nt();p.useEffect(function(){if(_==null)throw new Error("emptyValue being set to null or undefined is not supported. Use parse to turn the empty string into null.")},[_]);var X=NZ({choices:r,isLoading:R,isFetching:A,isPending:C,resource:z,source:U}),te=X.allChoices,G=X.isPending,J=X.error,de=X.source,ce=X.resource,ue=X.isFromReference;if(de===void 0)throw new Error("If you're not wrapping the SelectInput inside a ReferenceInput, you must provide the source prop");if(!G&&!J&&te===void 0)throw new Error("If you're not wrapping the SelectInput inside a ReferenceInput, you must provide the choices prop");var be=Hb(ce),Pe=p6({optionText:k??(ue?be:void 0),optionValue:$,disableValue:h,translateChoice:W??!ue,createValue:i,createHintValue:u}),Ee=Pe.getChoiceText,ge=Pe.getChoiceValue,xe=Pe.getDisableValue,Oe=Ub(nv({defaultValue:d,parse:B,format:w,onBlur:L,onChange:j,resource:ce,source:de,validate:Q},V)),Te=Oe.field,Me=Oe.fieldState,Fe=Oe.id,$e=Oe.isRequired,et=Me.error,qe=Me.invalid,re=p.useCallback(function(){return typeof y=="string"?y===""?"":K(y,{_:y}):y},[y,K]),oe=p.useCallback(function(Pt){return Ee(Pt)},[Ee]),pe=p.useCallback(function(Pt){return Obe(void 0,void 0,void 0,function(){return Pbe(this,function(Tt){return typeof Pt=="string"?Pt===""&&Te.onChange(_):Pt!=null&&Pt.target?Te.onChange(Pt):Te.onChange(ge(Pt)),[2]})})},[Te,ge,_]),Se=Oge({create:a,createLabel:o,createValue:i,createHintValue:u,handleChange:pe,onCreate:M,optionText:k}),ne=Se.getCreateItem,we=Se.handleChange,Ne=Se.createElement,De=a||M?ne():null,ht=p.useCallback(function(Pt){return Pt?p.createElement(oi,{key:ge(Pt),value:ge(Pt),disabled:xe(Pt)},oe(De&&(Pt==null?void 0:Pt.id)===De.id?De:Pt)):null},[ge,xe,oe,De]);if(G)return p.createElement(ybe,{label:O!==""&&O!==!1&&p.createElement(Vi,{label:O,source:de,resource:z,isRequired:$e}),sx:t.sx,helperText:p.createElement(lp,{error:et==null?void 0:et.message,helperText:S}),variant:t.variant,size:t.size,margin:t.margin,fullWidth:t.fullWidth});var lt=J?[]:te;(a||M)&&(lt=e5(e5([],lt,!0),[De],!1));var bt=!!J||S!==!1||qe;return p.createElement(p.Fragment,null,p.createElement(kbe,nv({id:Fe},Te,{className:Ae("ra-input","ra-input-".concat(de),n),onChange:we,select:!0,label:O!==""&&O!==!1?p.createElement(Vi,{label:O,source:de,resource:z,isRequired:$e}):null,clearAlwaysVisible:!0,error:!!J||qe,helperText:bt?p.createElement(lp,{error:(et==null?void 0:et.message)||(J==null?void 0:J.message),helperText:S}):null,margin:E},Rbe(V)),!$e&&p.createElement(oi,{value:_,key:"null","aria-label":K("ra.action.clear_input_value"),title:K("ra.action.clear_input_value")},re()),lt.map(ht)),Ne)},Rbe=function(e){e.afterSubmit,e.allowNull,e.beforeSubmit,e.choices,e.className,e.crudGetMatching,e.crudGetOne,e.data,e.field,e.fieldState,e.formState,e.filter,e.filterToQuery,e.formatOnBlur,e.isEqual,e.limitChoicesToValue,e.multiple,e.name,e.pagination,e.perPage,e.ref,e.reference,e.refetch,e.render,e.setFilter,e.setPagination,e.setSort,e.shouldUnregister,e.sort,e.subscription,e.type,e.validateFields,e.validation,e.value;var t=V9(e,["afterSubmit","allowNull","beforeSubmit","choices","className","crudGetMatching","crudGetOne","data","field","fieldState","formState","filter","filterToQuery","formatOnBlur","isEqual","limitChoicesToValue","multiple","name","pagination","perPage","ref","reference","refetch","render","setFilter","setPagination","setSort","shouldUnregister","sort","subscription","type","validateFields","validation","value"]);return wv(t)},W9="RaSelectInput",kbe=ve(mS,{name:W9,overridesResolver:function(e,t){return t.root}})(function(e){var t=e.theme;return nv(nv({},M9),{minWidth:t.spacing(20),"& .MuiFilledInput-root":{paddingRight:0}})}),Tbe=function(e){var t=Mt({props:e,name:Wy}),r=t.redirectTo,n=t.className,a=t.sx,o=t.children,i=p.useState(!1),u=i[0],d=i[1],l=z6(),h=nt(),v=Ur(),y=function(b){d(!0),l(b,r).then(function(){d(!1)}).catch(function(_){d(!1),v(typeof _=="string"?_:typeof _>"u"||!_.message?"ra.auth.sign_in_error":_.message,{type:"error",messageArgs:{_:typeof _=="string"?_:_&&_.message?_.message:void 0}})})};return p.createElement(Abe,{onSubmit:y,mode:"onChange",noValidate:!0,className:n,sx:a},p.createElement(Di,{className:hm.content},o||p.createElement(p.Fragment,null,p.createElement(oa,{autoFocus:!0,source:"username",label:h("ra.auth.username"),autoComplete:"username",validate:si()}),p.createElement(vS,{source:"password",label:h("ra.auth.password"),autoComplete:"current-password",validate:si()})),p.createElement(Dn,{variant:"contained",type:"submit",color:"primary",disabled:u,fullWidth:!0,className:hm.button},u?p.createElement(xd,{className:hm.icon,size:19,thickness:3}):h("ra.auth.sign_in"))))},Wy="RaLoginForm",hm={content:"".concat(Wy,"-content"),button:"".concat(Wy,"-button"),icon:"".concat(Wy,"-icon")},Abe=ve(Px,{name:Wy,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .".concat(hm.content)]={width:300,paddingBottom:"".concat(r.spacing(2),"!important")},t["& .".concat(hm.button)]={marginTop:r.spacing(2)},t["& .".concat(hm.icon)]={margin:r.spacing(.3)},t}),UT=function(){return UT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},UT.apply(this,arguments)},Ibe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},jbe=function(e){var t=Mt({props:e,name:Hy}),r=t.children,n=r===void 0?Mbe:r,a=t.backgroundImage,o=t.avatarIcon,i=o===void 0?Fbe:o,u=Ibe(t,["children","backgroundImage","avatarIcon"]),d=p.useRef(null),l=!1,h=Wte(),v=Os();p.useEffect(function(){h({},!1).then(function(){v("/")}).catch(function(){})},[h,v]);var y=function(){!l&&d.current&&(d.current.style.backgroundImage="url(".concat(a,")"),l=!0)},b=function(){if(a){var _=new Image;_.onload=y,_.src=a}};return p.useEffect(function(){l||b()}),p.createElement(Lbe,UT({},u,{ref:d}),p.createElement(pp,{className:mm.card},p.createElement("div",{className:mm.avatar},p.createElement(hb,{className:mm.icon},i)),n))},Mbe=p.createElement(Tbe,null),Fbe=p.createElement(l0,null),Hy="RaLogin",mm={card:"".concat(Hy,"-card"),avatar:"".concat(Hy,"-avatar"),icon:"".concat(Hy,"-icon")},Lbe=ve("div",{name:Hy,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",flexDirection:"column",minHeight:"100vh",height:"1px",alignItems:"center",justifyContent:"flex-start",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundImage:"radial-gradient(circle at 50% 14em, #313264 0%, #00023b 60%, #00023b 100%)"},t["& .".concat(mm.card)]={minWidth:300,marginTop:"6em"},t["& .".concat(mm.avatar)]={margin:"1em",display:"flex",justifyContent:"center"},t["& .".concat(mm.icon)]={backgroundColor:(r.vars||r).palette.secondary[500]},t}),VT=function(){return VT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},VT.apply(this,arguments)},$be=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Dbe=function(e){var t,r=Mt({props:e,name:Ky}),n=r.actions,a=r.aside,o=r.children,i=r.className,u=r.component,d=u===void 0?pp:u,l=r.title,h=$be(r,["actions","aside","children","className","component","title"]),v=bJ(),y=v.resource,b=v.defaultTitle;return p.createElement(Nbe,VT({className:Ae("create-page",i)},h),l!==!1&&p.createElement(Ed,{title:l,defaultTitle:b,preferenceKey:"".concat(y,".create.title")}),n,p.createElement("div",{className:Ae(vm.main,(t={},t[vm.noActions]=!n,t))},p.createElement(d,{className:vm.card},o),a))},Ky="RaCreate",vm={main:"".concat(Ky,"-main"),noActions:"".concat(Ky,"-noActions"),card:"".concat(Ky,"-card")},Nbe=ve("div",{name:Ky,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={},t["& .".concat(vm.main)]={display:"flex"},t["& .".concat(vm.noActions)]=(r={},r[n.breakpoints.up("sm")]={marginTop:"1em"},r),t["& .".concat(vm.card)]={flex:"1 1 auto"},t}),WT=function(){return WT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},WT.apply(this,arguments)},Bbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},H9=function(e){Fz("Create",["children"],e);var t=e.resource,r=e.record,n=e.redirect,a=e.transform,o=e.mutationMode,i=e.mutationOptions,u=e.disableAuthentication,d=e.hasEdit,l=e.hasShow,h=e.loading,v=h===void 0?zbe:h,y=Bbe(e,["resource","record","redirect","transform","mutationMode","mutationOptions","disableAuthentication","hasEdit","hasShow","loading"]);return p.createElement(yJ,{resource:t,record:r,redirect:n,transform:a,mutationMode:o,mutationOptions:i,disableAuthentication:u,hasEdit:d,hasShow:l,loading:v},p.createElement(Dbe,WT({},y)))},zbe=p.createElement(Od,null),HT=function(){return HT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},HT.apply(this,arguments)},qbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Ube=function(e){var t=Ml(e).hasShow;return p.createElement(Qi,HT({},Vbe(e)),t&&p.createElement(vhe,null))},Vbe=function(e){e.hasCreate,e.hasEdit,e.hasShow,e.hasList,e.resource;var t=qbe(e,["hasCreate","hasEdit","hasShow","hasList","resource"]);return t},KT=function(){return KT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},KT.apply(this,arguments)},Wbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ry,Hbe=p.createElement(Ube,null),Kbe=function(e){var t,r=Mt({props:e,name:Gy}),n=r.actions,a=r.aside,o=r.children,i=r.className,u=r.component,d=u===void 0?pp:u,l=r.emptyWhileLoading,h=l===void 0?!1:l,v=r.title,y=Wbe(r,["actions","aside","children","className","component","emptyWhileLoading","title"]),b=Ml().hasShow,_=EJ(),w=_.resource,S=_.defaultTitle,A=_.record,R=_.isPending,C=typeof n>"u"&&b?Hbe:n;return!o||!A&&R&&h?null:p.createElement(Gbe,KT({className:Ae("edit-page",i)},y),v!==!1&&p.createElement(Ed,{title:v,defaultTitle:S,preferenceKey:"".concat(w,".edit.title")}),C,p.createElement("div",{className:Ae(gm.main,(t={},t[gm.noActions]=!C,t))},p.createElement(d,{className:gm.card},A?o:p.createElement(Di,null," ")),a))},Gy="RaEdit",gm={main:"".concat(Gy,"-main"),noActions:"".concat(Gy,"-noActions"),card:"".concat(Gy,"-card")},Gbe=ve("div",{name:Gy,overridesResolver:function(e,t){return t.root}})((ry={},ry["& .".concat(gm.main)]={display:"flex",alignItems:"flex-start"},ry["& .".concat(gm.noActions)]={marginTop:"1em"},ry["& .".concat(gm.card)]={flex:"1 1 auto"},ry)),GT=function(){return GT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},GT.apply(this,arguments)},Qbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},K9=function(e){Fz("Edit",["children"],e);var t=e.resource,r=e.id,n=e.mutationMode,a=e.mutationOptions,o=e.queryOptions,i=e.redirect,u=e.transform,d=e.disableAuthentication,l=e.loading,h=l===void 0?Xbe:l,v=Qbe(e,["resource","id","mutationMode","mutationOptions","queryOptions","redirect","transform","disableAuthentication","loading"]);return p.createElement(CJ,{resource:t,id:r,mutationMode:n,mutationOptions:a,queryOptions:o,redirect:i,transform:u,disableAuthentication:d,loading:h},p.createElement(Kbe,GT({},v)))},Xbe=p.createElement(Od,null),QT=function(){return QT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},QT.apply(this,arguments)},Ybe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},d0=function(e){var t,r=Mt({props:e,name:Qy}),n=r.children,a=r.className,o=r.resource,i=Ybe(r,["children","className","resource"]),u=po(function(d){return d.breakpoints.down("sm")});return p.createElement(Jbe,QT({className:Ae((t={},t[ym.mobileToolbar]=u,t[ym.desktopToolbar]=!u,t),a),role:"toolbar"},i),p.Children.count(n)===0?p.createElement("div",{className:ym.defaultToolbar},p.createElement(fS,null),p.createElement(_v,{resource:o})):n)},Qy="RaToolbar",ym={desktopToolbar:"".concat(Qy,"-desktopToolbar"),mobileToolbar:"".concat(Qy,"-mobileToolbar"),defaultToolbar:"".concat(Qy,"-defaultToolbar")},Jbe=ve(yv,{name:Qy,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={backgroundColor:(r.vars||r).palette.divider},t["&.".concat(ym.desktopToolbar)]={},t["&.".concat(ym.mobileToolbar)]={position:"fixed",bottom:0,left:0,right:0,padding:"16px",width:"100%",boxSizing:"border-box",flexShrink:0,zIndex:2},t["& .".concat(ym.defaultToolbar)]={flex:1,display:"flex",justifyContent:"space-between"},t}),XT=function(){return XT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},XT.apply(this,arguments)},Zbe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},e0e=function(e){var t=e.children;e.url;var r=e.syncWithLocation,n=e.value,a=Zbe(e,["children","url","syncWithLocation","value"]),o=Lb(),i=o["*"];return p.createElement(TU,XT({value:r?i:n,indicatorColor:"primary"},a),p.Children.map(t,function(u,d){if(!p.isValidElement(u))return null;var l=G9(u,d);return p.cloneElement(u,{intent:"header",value:r?l:d,syncWithLocation:r})}))},G9=function(e,t){return e.props.path!=null?e.props.path:t>0?t.toString():""},YT=function(){return YT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},YT.apply(this,arguments)},Q9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},t0e=function(e){var t=Mt({props:e,name:wj}),r=t.children,n=t.className,a=t.component,o=a===void 0?n0e:a,i=t.formRootPathname,u=t.syncWithLocation,d=u===void 0?!0:u,l=t.tabs,h=l===void 0?r0e:l,v=t.toolbar,y=v===void 0?a0e:v,b=Q9(t,["children","className","component","formRootPathname","syncWithLocation","tabs","toolbar"]),_=an(),w=er(t),S=p.useState(0),A=S[0],R=S[1],C=JA(),O=function(E,L){d||R(L),h.props.onChange&&h.props.onChange(E,L)},T=function(){return p.cloneElement(h,{onChange:O,syncWithLocation:d,url:i,value:A},r)};return p.createElement(o0e,YT({className:Ae("tabbed-form",n)},i0e(b)),d?p.createElement(Zc,null,p.createElement(Mn,{path:"/*",element:T()})):T(),p.createElement(tv,null),p.createElement(o,null,p.Children.map(r,function(E,L){if(!E)return null;var j=G9(E,L),M=d?!id("".concat(C,"/").concat(j),_.pathname):A!==L;return p.isValidElement(E)?p.cloneElement(E,{intent:"content",resource:w,hidden:M,value:d?j:L}):null})),y!==!1?y:null)},r0e=p.createElement(e0e,null),n0e=function(e){var t=e.children;return p.createElement(Di,null,t)},a0e=p.createElement(d0,null),wj="RaTabbedForm",X9={errorTabButton:"".concat(wj,"-errorTabButton")},o0e=ve("div",{name:wj,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t["& .MuiTab-root.".concat(X9.errorTabButton)]={color:(r.vars||r).palette.error.main},t}),i0e=function(e){e.record,e.resource;var t=Q9(e,["record","resource"]);return t},s0e=function(){var e=an(),t=id(":resource/create/*",e.pathname),r=id(":resource/:id/*",e.pathname);return t?t.pathnameBase:r?r.pathnameBase:""},Xy=function(){return Xy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Xy.apply(this,arguments)},l0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},u0e=function(e){var t,r=e.count,n=e.label,a=e.value,o=e.icon,i=e.className,u=e.onChange,d=e.syncWithLocation,l=l0e(e,["count","label","value","icon","className","onChange","syncWithLocation"]),h=nt(),v=iee(a.toString()),y=an(),b=JA(),_=a==null||a===""?b:"".concat(b,"/").concat(a),w={component:ui,to:Xy(Xy({},y),{pathname:_})},S=typeof n=="string"?h(n,{_:n}):n;return r!==void 0&&(S=p.createElement("span",null,S," (",r,")")),p.createElement(SU,Xy({label:S,value:a,icon:o,className:Ae("form-tab",i,(t={},t[X9.errorTabButton]=!v.isValid,t.error=!v.isValid,t))},d?w:{},{id:"tabheader-".concat(a),"aria-controls":"tabpanel-".concat(a),onChange:u},l))},Xw=function(){return Xw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Xw.apply(this,arguments)},Y9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},c0e=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},ll=function(e){var t=e.children,r=e.className,n=e.contentClassName,a=e.count,o=e.hidden,i=e.icon,u=e.iconPosition,d=e.intent,l=e.label,h=e.onChange;e.path,e.resource;var v=e.syncWithLocation,y=e.value,b=Y9(e,["children","className","contentClassName","count","hidden","icon","iconPosition","intent","label","onChange","path","resource","syncWithLocation","value"]);if(typeof y>"u")throw new Error("the value prop is required at runtime");var _=function(){return p.createElement(u0e,Xw({label:l,count:a,value:y,icon:i,iconPosition:u,className:r,syncWithLocation:v,onChange:h},f0e(b)))},w=function(){return p.createElement(oee,{name:y.toString()},p.createElement(i0,Xw({style:o?d0e:void 0,className:n,id:"tabpanel-".concat(y),"aria-labelledby":"tabheader-".concat(y),"aria-hidden":o||void 0},b,{sx:c0e([{alignItems:"flex-start"}],Array.isArray(b.sx)?b.sx:[b.sx],!0)}),t))};return d==="header"?_():w()};ll.displayName="FormTab";var d0e={display:"none"},f0e=function(e){e.classes,e.ref,e.margin;var t=Y9(e,["classes","ref","margin"]);return t},Yw=function(){return Yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Yw.apply(this,arguments)},p0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},J9=function(e){var t=s0e();return p.createElement(Px,Yw({formRootPathname:t},e),p.createElement(t0e,Yw({formRootPathname:t},h0e(e))))};J9.Tab=ll;var h0e=function(e){e.criteriaMode,e.defaultValues,e.delayError,e.formRootPathname,e.mode,e.noValidate,e.onSubmit,e.record,e.resetOptions,e.resolver,e.reValidateMode,e.sanitizeEmptyValues,e.shouldFocusError,e.shouldUnregister,e.shouldUseNativeValidation,e.validate,e.warnWhenUnsavedChanges;var t=p0e(e,["criteriaMode","defaultValues","delayError","formRootPathname","mode","noValidate","onSubmit","record","resetOptions","resolver","reValidateMode","sanitizeEmptyValues","shouldFocusError","shouldUnregister","shouldUseNativeValidation","validate","warnWhenUnsavedChanges"]);return t},Jw=function(){return Jw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Jw.apply(this,arguments)},Z9=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},f0=function(e){var t=Mt({props:e,name:e8}),r=t.children,n=t.className,a=t.component,o=a===void 0?m0e:a,i=t.sx,u=t.toolbar,d=u===void 0?v0e:u,l=Z9(t,["children","className","component","sx","toolbar"]);return p.createElement(Px,Jw({},l),p.createElement(o,{className:n,sx:i},p.createElement(i0,Jw({},g0e(t),{sx:{alignItems:"flex-start"}}),r)),d!==!1?d:null)},e8="RaSimpleForm",m0e=ve(Di,{name:e8,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={},t[r.breakpoints.down("sm")]={paddingBottom:"5em"},t}),v0e=p.createElement(d0,null),g0e=function(e){e.children,e.className,e.component,e.criteriaMode,e.defaultValues,e.delayError,e.onSubmit,e.record,e.resource,e.reValidateMode,e.sx,e.toolbar,e.validate,e.resetOptions,e.resolver,e.sanitizeEmptyValues,e.shouldFocusError,e.shouldUnregister,e.shouldUseNativeValidation,e.warnWhenUnsavedChanges;var t=Z9(e,["children","className","component","criteriaMode","defaultValues","delayError","onSubmit","record","resource","reValidateMode","sx","toolbar","validate","resetOptions","resolver","sanitizeEmptyValues","shouldFocusError","shouldUnregister","shouldUseNativeValidation","warnWhenUnsavedChanges"]);return t},JT=function(){return JT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},JT.apply(this,arguments)},y0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},b0e=function(e){var t=Ml(e).hasEdit;return p.createElement(Qi,JT({},_0e(e)),t&&p.createElement(wve,null))},_0e=function(e){e.hasCreate,e.hasEdit,e.hasShow,e.hasList,e.resource;var t=y0e(e,["hasCreate","hasEdit","hasShow","hasList","resource"]);return t},ZT=function(){return ZT=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ZT.apply(this,arguments)},w0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ny,x0e=p.createElement(b0e,null),S0e=function(e){var t,r=Mt({props:e,name:Yy}),n=r.actions,a=r.aside,o=r.children,i=r.className,u=r.component,d=u===void 0?pp:u,l=r.emptyWhileLoading,h=l===void 0?!1:l,v=r.title,y=w0e(r,["actions","aside","children","className","component","emptyWhileLoading","title"]),b=Dee(),_=b.resource,w=b.defaultTitle,S=b.record,A=Ml().hasEdit,R=typeof n>"u"&&A?x0e:n;return!o||!S&&h?null:p.createElement(C0e,ZT({className:Ae("show-page",i)},y),v!==!1&&p.createElement(Ed,{title:v,defaultTitle:w,preferenceKey:"".concat(_,".show.title")}),R!==!1&&R,p.createElement("div",{className:Ae(bm.main,(t={},t[bm.noActions]=!R,t))},p.createElement(d,{className:bm.card},o),a))},Yy="RaShow",bm={main:"".concat(Yy,"-main"),noActions:"".concat(Yy,"-noActions"),card:"".concat(Yy,"-card")},C0e=ve("div",{name:Yy,overridesResolver:function(e,t){return t.root}})((ny={},ny["& .".concat(bm.main)]={display:"flex"},ny["& .".concat(bm.noActions)]={marginTop:"1em"},ny["& .".concat(bm.card)]={flex:"1 1 auto"},ny)),eA=function(){return eA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},eA.apply(this,arguments)},E0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},xj=function(e){var t=e.id,r=e.resource,n=e.queryOptions,a=e.disableAuthentication,o=e.loading,i=o===void 0?O0e:o,u=E0e(e,["id","resource","queryOptions","disableAuthentication","loading"]);return p.createElement($ee,{id:t,disableAuthentication:a,queryOptions:n,resource:r,loading:i},p.createElement(S0e,eA({},u)))},O0e=p.createElement(Od,null);const P0e=ot(I.jsx("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}));var R0e=function(e){var t=Mt({props:e,name:Jy}),r=t.className,n=Ml(t).hasCreate,a=er(t),o=nt(),i=dp(),u=o("resources.".concat(a,".forcedCaseName"),{smart_count:0,_:a?i(a,0):void 0}),d=o("ra.page.empty",{name:u}),l=o("ra.page.invite");return p.createElement(k0e,{className:r},p.createElement("div",{className:_m.message},p.createElement(P0e,{className:_m.icon}),p.createElement(Qt,{variant:"h4",paragraph:!0},o("resources.".concat(a,".empty"),{_:d})),n&&p.createElement(Qt,{variant:"body1"},o("resources.".concat(a,".invite"),{_:l}))),n&&p.createElement("div",{className:_m.toolbar},p.createElement(ij,{variant:"contained"})))},Jy="RaEmpty",_m={message:"".concat(Jy,"-message"),icon:"".concat(Jy,"-icon"),toolbar:"".concat(Jy,"-toolbar")},k0e=ve("span",{name:Jy,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={flex:1},t["& .".concat(_m.message)]={textAlign:"center",margin:"0 1em",color:(r.vars||r).palette.text.disabled},t["& .".concat(_m.icon)]={width:"9em",height:"9em"},t["& .".concat(_m.toolbar)]={textAlign:"center",marginTop:"2em"},t}),Lf=function(){return Lf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Lf.apply(this,arguments)},T0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},A0e=p.memo(function(e){var t=Mt({props:e,name:t8}),r=t.filters,n=t.actions,a=t.className,o=T0e(t,["filters","actions","className"]);return Array.isArray(r)?p.createElement(hS.Provider,{value:r},p.createElement(t5,{className:a},p.createElement(gye,null),p.createElement("span",null),n)):p.createElement(t5,{className:a},r&&p.cloneElement(r,Lf(Lf({},o),{context:"form"})),p.createElement("span",null),n&&p.cloneElement(n,Lf(Lf(Lf({},o),{filters:r}),n.props)))}),t8="RaListToolbar",t5=ve("div",{name:t8,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={display:"flex",position:"relative",justifyContent:"space-between",alignItems:"flex-end",width:"100%"},t[r.breakpoints.down("md")]={flexWrap:"wrap"},t[r.breakpoints.down("sm")]={backgroundColor:(r.vars||r).palette.background.paper,flexWrap:"inherit",flexDirection:"column-reverse"},t}),tA=function(){return tA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},tA.apply(this,arguments)},I0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},j0e=function(e){var t=e.className,r=e.filters;e.hasCreate;var n=I0e(e,["className","filters","hasCreate"]),a=Va(),o=a.displayedFilters,i=a.filterValues,u=a.exporter,d=a.showFilter,l=a.total,h=er(e),v=Ml(e).hasCreate,y=p.useContext(hS)||r;return p.useMemo(function(){return p.createElement(Qi,tA({className:t},nb(n)),r?p.cloneElement(r,{resource:h,showFilter:d,displayedFilters:o,filterValues:i,context:"button"}):y&&p.createElement(Aye,null),v&&p.createElement(ij,null),u!==!1&&p.createElement(c0,{disabled:l===0,resource:h}))},[h,o,i,r,d,y,l,t,u,v])},rA=function(){return rA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},rA.apply(this,arguments)},M0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},F0e=p.createElement(j0e,null),L0e=p.createElement(hp,null),$0e=p.createElement(R0e,null),D0e=pp,N0e=function(e){var t=Mt({props:e,name:nm}),r=t.actions,n=r===void 0?F0e:r,a=t.aside,o=t.filters,i=t.emptyWhileLoading,u=t.pagination,d=u===void 0?L0e:u,l=t.children,h=t.className,v=t.component,y=v===void 0?D0e:v,b=t.title,_=t.empty,w=_===void 0?$0e:_,S=M0e(t,["actions","aside","filters","emptyWhileLoading","pagination","children","className","component","title","empty"]),A=Va(),R=A.defaultTitle,C=A.data,O=A.error,T=A.isPending,E=A.filterValues,L=A.resource,j=A.total,M=A.hasNextPage,k=A.hasPreviousPage;if(!l||!C&&T&&i)return null;var $=function(){return p.createElement("div",{className:nd.main},(o||n)&&p.createElement(A0e,{className:nd.actions,filters:o,actions:n}),p.createElement(y,{className:nd.content},l),!O&&d!==!1&&d)},B=function(){return w!==!1&&p.createElement("div",{className:nd.noResults},w)},z=!O&&!T&&(j===0||j==null&&k===!1&&M===!1&&C.length===0)&&!Object.keys(E).length&&w!==!1;return p.createElement(B0e,rA({className:Ae("list-page",h)},S),b!==!1&&p.createElement(Ed,{title:b,defaultTitle:R,preferenceKey:"".concat(L,".list.title")}),z?B():$(),a)},nm="RaList",nd={main:"".concat(nm,"-main"),content:"".concat(nm,"-content"),actions:"".concat(nm,"-actions"),noResults:"".concat(nm,"-noResults")},B0e=ve("div",{name:nm,overridesResolver:function(e,t){return t.root}})(function(e){var t,r,n=e.theme;return t={display:"flex"},t["& .".concat(nd.main)]={flex:"1 1 auto",display:"flex",flexDirection:"column"},t["& .".concat(nd.content)]=(r={position:"relative"},r[n.breakpoints.down("sm")]={boxShadow:"none"},r.overflow="inherit",r),t["& .".concat(nd.actions)]={},t["& .".concat(nd.noResults)]={flex:1},t}),nA=function(){return nA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},nA.apply(this,arguments)},z0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},vp=function(e){var t=e.debounce,r=e.disableAuthentication,n=e.disableSyncWithLocation,a=e.exporter,o=e.filter,i=o===void 0?q0e:o,u=e.filterDefaultValues,d=e.loading,l=d===void 0?U0e:d,h=e.perPage,v=h===void 0?10:h,y=e.queryOptions,b=e.resource,_=e.sort,w=e.storeKey,S=z0e(e,["debounce","disableAuthentication","disableSyncWithLocation","exporter","filter","filterDefaultValues","loading","perPage","queryOptions","resource","sort","storeKey"]);return p.createElement(lZ,{debounce:t,disableAuthentication:r,disableSyncWithLocation:n,exporter:a,filter:i,filterDefaultValues:u,loading:l,perPage:v,queryOptions:y,resource:b,sort:_,storeKey:w},p.createElement(N0e,nA({},S)))},q0e={},U0e=p.createElement(Od,null),aA=function(){return aA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},aA.apply(this,arguments)},V0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},W0e=function(e){var t=e.children,r=e.syncWithLocation,n=e.value,a=V0e(e,["children","syncWithLocation","value"]),o=Lb(),i=o["*"];return p.createElement(TU,aA({indicatorColor:"primary",value:r?i:n},a),p.Children.map(t,function(u,d){if(!u||!p.isValidElement(u))return null;var l=r8(u,d);return p.cloneElement(u,{context:"header",value:r?l:d,syncWithLocation:r})}))},r8=function(e,t){return"".concat(e.props.path?"".concat(e.props.path):t>0?t:"")},Zy=function(){return Zy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Zy.apply(this,arguments)},H0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Ss=function(e){var t=Zb({props:e,name:Sj}),r=t.children,n=t.contentClassName,a=t.context,o=t.count,i=t.className,u=t.divider,d=t.icon,l=t.iconPosition,h=t.label;t.record;var v=t.spacing,y=v===void 0?1:v,b=t.syncWithLocation,_=b===void 0?!0:b,w=t.value,S=H0e(t,["children","contentClassName","context","count","className","divider","icon","iconPosition","label","record","spacing","syncWithLocation","value"]),A=nt(),R=an(),C=JA(),O=w==null||w===""?C:"".concat(C,"/").concat(w),T={component:ui,to:Zy(Zy({},R),{pathname:O})},E=function(){var j=typeof h=="string"?A(h,{_:h}):h;return o!==void 0&&(j=p.createElement("span",null,j," (",o,")")),p.createElement(SU,Zy({key:"tab-header-".concat(w),label:j,value:w,icon:d,iconPosition:l,className:Ae("show-tab",i)},_?T:{},S))},L=function(){return p.createElement(K0e,{className:n,spacing:y,divider:u},p.Children.map(r,function(j){return j&&p.isValidElement(j)?p.createElement(pj,{key:j.props.source,className:Ae("ra-field",j.props.source&&"ra-field-".concat(j.props.source),n8.row,j.props.className)},j):null}))};return a==="header"?E():L()},Sj="RaTab",n8={row:"".concat(Sj,"-row")},K0e=ve(i0,{name:Sj,overridesResolver:function(e,t){return t.root}})(function(){var e;return e={},e["& .".concat(n8.row)]={display:"inline"},e}),oA=function(){return oA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},oA.apply(this,arguments)},a8=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},yS=function(e){var t=Mt({props:e,name:Cj}),r=t.children,n=t.className,a=t.spacing,o=t.divider,i=t.syncWithLocation,u=i===void 0?!0:i,d=t.tabs,l=d===void 0?G0e:d;t.value;var h=a8(t,["children","className","spacing","divider","syncWithLocation","tabs","value"]),v=gr(t),y=p.Children.toArray(r).filter(function(R){return R!==null}),b=p.useState(0),_=b[0],w=b[1],S=function(R,C){u||w(C)};if(!v)return null;var A=function(){return p.cloneElement(l,{onChange:S,syncWithLocation:u,value:_},y)};return p.createElement(Bz,{value:t.record},p.createElement(Q0e,oA({className:n},X0e(h)),u?p.createElement(Zc,null,p.createElement(Mn,{path:"/*",element:p.createElement(p.Fragment,null,A(),p.createElement(tv,null),p.createElement("div",{className:iA.content},p.createElement(FK,null)))},p.Children.map(y,function(R,C){return p.isValidElement(R)?p.createElement(Mn,{path:r8(R,C),element:p.cloneElement(R,{context:"content",spacing:a,divider:o})}):null}))):p.createElement(p.Fragment,null,A(),p.createElement(tv,null),p.createElement("div",{className:iA.content},p.Children.map(y,function(R,C){return!p.isValidElement(R)||_!==C?null:p.cloneElement(R,{context:"content",spacing:a,divider:o})})))))};yS.Tab=Ss;var G0e=p.createElement(W0e,null),Cj="RaTabbedShowLayout",iA={content:"".concat(Cj,"-content")},Q0e=ve("div",{name:Cj,overridesResolver:function(e,t){return t.root}})(function(e){var t,r=e.theme;return t={flex:1},t["& .".concat(iA.content)]={padding:"".concat(r.spacing(1)," ").concat(r.spacing(2))},t}),X0e=function(e){e.record,e.resource,e.initialValues,e.staticContext,e.translate,e.tabs;var t=a8(e,["record","resource","initialValues","staticContext","translate","tabs"]);return t},sA=function(){return sA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},sA.apply(this,arguments)},Y0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},J0e=function(e){var t=e.accessDenied,r=t===void 0?yhe:t,n=e.authCallbackPage,a=n===void 0?ege:n,o=e.authenticationError,i=o===void 0?vme:o,u=e.catchAll,d=u===void 0?Qme:u,l=e.error,h=l===void 0?KU:l,v=e.layout,y=v===void 0?zme:v,b=e.loading,_=b===void 0?Hme:b,w=e.loginPage,S=w===void 0?jbe:w,A=e.notification,R=A===void 0?ZU:A,C=Y0e(e,["accessDenied","authCallbackPage","authenticationError","catchAll","error","layout","loading","loginPage","notification"]);return p.createElement(vue,{enableColorScheme:!0},p.createElement(pte,sA({accessDenied:r,authCallbackPage:a,authenticationError:i,catchAll:d,error:h,layout:y,loading:_,loginPage:S},C)),p.createElement(R))},lA=function(){return lA=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},lA.apply(this,arguments)},Z0e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},o8=function(e){var t=e.theme,r=e.lightTheme,n=r===void 0?Vhe:r,a=e.darkTheme,o=e.defaultTheme,i=e.children,u=Z0e(e,["theme","lightTheme","darkTheme","defaultTheme","children"]);return p.createElement(Vee,lA({},u),p.createElement($U.Provider,{value:{lightTheme:t||n,darkTheme:t&&!a?void 0:!a&&a!==null?Whe:a??void 0,defaultTheme:o}},p.createElement(Uhe,null,i)))};o8.displayName="AdminContext";var i8={ra:{action:{add_filter:"Add filter",add:"Add",back:"Go Back",bulk_actions:"1 item selected |||| %{smart_count} items selected",cancel:"Cancel",clear_array_input:"Clear the list",clear_input_value:"Clear value",clone:"Clone",confirm:"Confirm",create:"Create",create_item:"Create %{item}",delete:"Delete",edit:"Edit",export:"Export",list:"List",refresh:"Refresh",remove_filter:"Remove this filter",remove_all_filters:"Remove all filters",remove:"Remove",save:"Save",search:"Search",select_all:"Select all",select_all_button:"Select all",select_row:"Select this row",show:"Show",sort:"Sort",undo:"Undo",unselect:"Unselect",expand:"Expand",close:"Close",open_menu:"Open menu",close_menu:"Close menu",update:"Update",move_up:"Move up",move_down:"Move down",open:"Open",toggle_theme:"Toggle light/dark mode",select_columns:"Columns",update_application:"Reload Application"},boolean:{true:"Yes",false:"No",null:""},page:{create:"Create %{name}",dashboard:"Dashboard",edit:"%{name} %{recordRepresentation}",error:"Something went wrong",list:"%{name}",loading:"Loading",not_found:"Not Found",show:"%{name} %{recordRepresentation}",empty:"No %{name} yet.",invite:"Do you want to add one?",access_denied:"Access denied",authentication_error:"Authentication error"},input:{file:{upload_several:"Drop some files to upload, or click to select one.",upload_single:"Drop a file to upload, or click to select it."},image:{upload_several:"Drop some pictures to upload, or click to select one.",upload_single:"Drop a picture to upload, or click to select it."},references:{all_missing:"Unable to find references data.",many_missing:"At least one of the associated references no longer appears to be available.",single_missing:"Associated reference no longer appears to be available."},password:{toggle_visible:"Hide password",toggle_hidden:"Show password"}},message:{about:"About",access_denied:"You don't have the right permissions to access this page",are_you_sure:"Are you sure?",authentication_error:"The authentication server returned an error and your credentials could not be checked.",auth_error:"An error occurred while validating the authentication token.",bulk_delete_content:"Are you sure you want to delete this %{name}? |||| Are you sure you want to delete these %{smart_count} items?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name}",bulk_update_content:"Are you sure you want to update %{name} %{recordRepresentation}? |||| Are you sure you want to update these %{smart_count} items?",bulk_update_title:"Update %{name} %{recordRepresentation} |||| Update %{smart_count} %{name}",clear_array_input:"Are you sure you want to clear the whole list?",delete_content:"Are you sure you want to delete this %{name}?",delete_title:"Delete %{name} %{recordRepresentation}",details:"Details",error:"A client error occurred and your request couldn't be completed.",invalid_form:"The form is not valid. Please check for errors",loading:"Please wait",no:"No",not_found:"Either you typed a wrong URL, or you followed a bad link.",select_all_limit_reached:"There are too many elements to select them all. Only the first %{max} elements were selected.",unsaved_changes:"Some of your changes weren't saved. Are you sure you want to ignore them?",yes:"Yes",placeholder_data_warning:"Network issue: Data refresh failed."},navigation:{clear_filters:"Clear filters",no_filtered_results:"No %{name} found using the current filters.",no_results:"No %{name} found",no_more_results:"The page number %{page} is out of boundaries. Try the previous page.",page_out_of_boundaries:"Page number %{page} out of boundaries",page_out_from_end:"Cannot go after last page",page_out_from_begin:"Cannot go before page 1",page_range_info:"%{offsetBegin}-%{offsetEnd} of %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}",current_page:"Page %{page}",page:"Go to page %{page}",first:"Go to first page",last:"Go to last page",next:"Go to next page",previous:"Go to previous page",page_rows_per_page:"Rows per page:",skip_nav:"Skip to content"},sort:{sort_by:"Sort by %{field_lower_first} %{order}",ASC:"ascending",DESC:"descending"},auth:{auth_check_error:"Please login to continue",user_menu:"Profile",username:"Username",password:"Password",email:"Email",sign_in:"Sign in",sign_in_error:"Authentication failed, please retry",logout:"Logout"},notification:{updated:"Element updated |||| %{smart_count} elements updated",created:"Element created",deleted:"Element deleted |||| %{smart_count} elements deleted",bad_item:"Incorrect element",item_doesnt_exist:"Element does not exist",http_error:"Server communication error",data_provider_error:"dataProvider error. Check the console for details.",i18n_error:"Cannot load the translations for the specified language",canceled:"Action cancelled",logged_out:"Your session has ended, please reconnect.",not_authorized:"You're not authorized to access this resource.",application_update_available:"A new version is available."},validation:{required:"Required",minLength:"Must be %{min} characters at least",maxLength:"Must be %{max} characters or less",minValue:"Must be at least %{min}",maxValue:"Must be %{max} or less",number:"Must be a number",email:"Must be a valid email",oneOf:"Must be one of: %{options}",regex:"Must match a specific format (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Saved queries",query_name:"Query name",new_label:"Save current query...",new_dialog_title:"Save current query as",remove_label:"Remove saved query",remove_label_with_name:'Remove query "%{name}"',remove_dialog_title:"Remove saved query?",remove_message:"Are you sure you want to remove that item from your list of saved queries?",help:"Filter the list and save this query for later"},configurable:{customize:"Customize",configureMode:"Configure this page",inspector:{title:"Inspector",content:"Hover the application UI elements to configure them",reset:"Reset Settings",hideAll:"Hide All",showAll:"Show All"},Datagrid:{title:"Datagrid",unlabeled:"Unlabeled column #%{column}"},SimpleForm:{title:"Form",unlabeled:"Unlabeled input #%{input}"},SimpleList:{title:"List",primaryText:"Primary text",secondaryText:"Secondary text",tertiaryText:"Tertiary text"}}}},e_e=G5(function(){return i8},"en",[{name:"en",value:"English"}],{allowMissing:!0}),t_e=wG(),r_e=function(e){var t=e.accessDenied,r=e.authCallbackPage,n=e.authenticationError,a=e.authProvider,o=e.basename,i=e.catchAll,u=e.children,d=e.darkTheme,l=e.dashboard,h=e.dataProvider,v=e.defaultTheme,y=e.disableTelemetry,b=e.error,_=e.i18nProvider,w=_===void 0?e_e:_,S=e.layout,A=e.lightTheme,R=e.loading,C=e.loginPage,O=e.notification,T=e.queryClient,E=e.ready,L=e.requireAuth,j=e.store,M=j===void 0?t_e:j,k=e.theme,$=e.title,B=$===void 0?"React Admin":$;return p.createElement(o8,{authProvider:a,basename:o,darkTheme:d,dataProvider:h,defaultTheme:v,i18nProvider:w,lightTheme:A,queryClient:T,store:M,theme:k},p.createElement(J0e,{accessDenied:t,authCallbackPage:r,authenticationError:n,catchAll:i,dashboard:l,disableTelemetry:y,error:b,layout:S,loading:R,loginPage:C,notification:O,ready:E,requireAuth:L,title:B},u))},C1={exports:{}};/* @license
Papa Parse
v5.4.1
https://github.com/mholt/PapaParse
License: MIT
*/var n_e=C1.exports,r5;function a_e(){return r5||(r5=1,function(e,t){(function(r,n){e.exports=n()})(n_e,function r(){var n=typeof self<"u"?self:typeof window<"u"?window:n!==void 0?n:{},a=!n.document&&!!n.postMessage,o=n.IS_PAPA_WORKER||!1,i={},u=0,d={parse:function(j,M){var k=(M=M||{}).dynamicTyping||!1;if(L(k)&&(M.dynamicTypingFunction=k,k={}),M.dynamicTyping=k,M.transform=!!L(M.transform)&&M.transform,M.worker&&d.WORKERS_SUPPORTED){var $=function(){if(!d.WORKERS_SUPPORTED)return!1;var z=(W=n.URL||n.webkitURL||null,Q=r.toString(),d.BLOB_URL||(d.BLOB_URL=W.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",Q,")();"],{type:"text/javascript"})))),U=new n.Worker(z),W,Q;return U.onmessage=R,U.id=u++,i[U.id]=U}();return $.userStep=M.step,$.userChunk=M.chunk,$.userComplete=M.complete,$.userError=M.error,M.step=L(M.step),M.chunk=L(M.chunk),M.complete=L(M.complete),M.error=L(M.error),delete M.worker,void $.postMessage({input:j,config:M,workerId:$.id})}var B=null;return d.NODE_STREAM_INPUT,typeof j=="string"?(j=function(z){return z.charCodeAt(0)===65279?z.slice(1):z}(j),B=M.download?new v(M):new b(M)):j.readable===!0&&L(j.read)&&L(j.on)?B=new _(M):(n.File&&j instanceof File||j instanceof Object)&&(B=new y(M)),B.stream(j)},unparse:function(j,M){var k=!1,$=!0,B=",",z=`\r
`,U='"',W=U+U,Q=!1,V=null,K=!1;(function(){if(typeof M=="object"){if(typeof M.delimiter!="string"||d.BAD_DELIMITERS.filter(function(J){return M.delimiter.indexOf(J)!==-1}).length||(B=M.delimiter),(typeof M.quotes=="boolean"||typeof M.quotes=="function"||Array.isArray(M.quotes))&&(k=M.quotes),typeof M.skipEmptyLines!="boolean"&&typeof M.skipEmptyLines!="string"||(Q=M.skipEmptyLines),typeof M.newline=="string"&&(z=M.newline),typeof M.quoteChar=="string"&&(U=M.quoteChar),typeof M.header=="boolean"&&($=M.header),Array.isArray(M.columns)){if(M.columns.length===0)throw new Error("Option columns is empty");V=M.columns}M.escapeChar!==void 0&&(W=M.escapeChar+U),(typeof M.escapeFormulae=="boolean"||M.escapeFormulae instanceof RegExp)&&(K=M.escapeFormulae instanceof RegExp?M.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var X=new RegExp(S(U),"g");if(typeof j=="string"&&(j=JSON.parse(j)),Array.isArray(j)){if(!j.length||Array.isArray(j[0]))return te(null,j,Q);if(typeof j[0]=="object")return te(V||Object.keys(j[0]),j,Q)}else if(typeof j=="object")return typeof j.data=="string"&&(j.data=JSON.parse(j.data)),Array.isArray(j.data)&&(j.fields||(j.fields=j.meta&&j.meta.fields||V),j.fields||(j.fields=Array.isArray(j.data[0])?j.fields:typeof j.data[0]=="object"?Object.keys(j.data[0]):[]),Array.isArray(j.data[0])||typeof j.data[0]=="object"||(j.data=[j.data])),te(j.fields||[],j.data||[],Q);throw new Error("Unable to serialize unrecognized input");function te(J,de,ce){var ue="";typeof J=="string"&&(J=JSON.parse(J)),typeof de=="string"&&(de=JSON.parse(de));var be=Array.isArray(J)&&0<J.length,Pe=!Array.isArray(de[0]);if(be&&$){for(var Ee=0;Ee<J.length;Ee++)0<Ee&&(ue+=B),ue+=G(J[Ee],Ee);0<de.length&&(ue+=z)}for(var ge=0;ge<de.length;ge++){var xe=be?J.length:de[ge].length,Oe=!1,Te=be?Object.keys(de[ge]).length===0:de[ge].length===0;if(ce&&!be&&(Oe=ce==="greedy"?de[ge].join("").trim()==="":de[ge].length===1&&de[ge][0].length===0),ce==="greedy"&&be){for(var Me=[],Fe=0;Fe<xe;Fe++){var $e=Pe?J[Fe]:Fe;Me.push(de[ge][$e])}Oe=Me.join("").trim()===""}if(!Oe){for(var et=0;et<xe;et++){0<et&&!Te&&(ue+=B);var qe=be&&Pe?J[et]:et;ue+=G(de[ge][qe],et)}ge<de.length-1&&(!ce||0<xe&&!Te)&&(ue+=z)}}return ue}function G(J,de){if(J==null)return"";if(J.constructor===Date)return JSON.stringify(J).slice(1,25);var ce=!1;K&&typeof J=="string"&&K.test(J)&&(J="'"+J,ce=!0);var ue=J.toString().replace(X,W);return(ce=ce||k===!0||typeof k=="function"&&k(J,de)||Array.isArray(k)&&k[de]||function(be,Pe){for(var Ee=0;Ee<Pe.length;Ee++)if(-1<be.indexOf(Pe[Ee]))return!0;return!1}(ue,d.BAD_DELIMITERS)||-1<ue.indexOf(B)||ue.charAt(0)===" "||ue.charAt(ue.length-1)===" ")?U+ue+U:ue}}};if(d.RECORD_SEP="",d.UNIT_SEP="",d.BYTE_ORDER_MARK="\uFEFF",d.BAD_DELIMITERS=["\r",`
`,'"',d.BYTE_ORDER_MARK],d.WORKERS_SUPPORTED=!a&&!!n.Worker,d.NODE_STREAM_INPUT=1,d.LocalChunkSize=10485760,d.RemoteChunkSize=5242880,d.DefaultDelimiter=",",d.Parser=A,d.ParserHandle=w,d.NetworkStreamer=v,d.FileStreamer=y,d.StringStreamer=b,d.ReadableStreamStreamer=_,n.jQuery){var l=n.jQuery;l.fn.parse=function(j){var M=j.config||{},k=[];return this.each(function(z){if(!(l(this).prop("tagName").toUpperCase()==="INPUT"&&l(this).attr("type").toLowerCase()==="file"&&n.FileReader)||!this.files||this.files.length===0)return!0;for(var U=0;U<this.files.length;U++)k.push({file:this.files[U],inputElem:this,instanceConfig:l.extend({},M)})}),$(),this;function $(){if(k.length!==0){var z,U,W,Q,V=k[0];if(L(j.before)){var K=j.before(V.file,V.inputElem);if(typeof K=="object"){if(K.action==="abort")return z="AbortError",U=V.file,W=V.inputElem,Q=K.reason,void(L(j.error)&&j.error({name:z},U,W,Q));if(K.action==="skip")return void B();typeof K.config=="object"&&(V.instanceConfig=l.extend(V.instanceConfig,K.config))}else if(K==="skip")return void B()}var X=V.instanceConfig.complete;V.instanceConfig.complete=function(te){L(X)&&X(te,V.file,V.inputElem),B()},d.parse(V.file,V.instanceConfig)}else L(j.complete)&&j.complete()}function B(){k.splice(0,1),$()}}}function h(j){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(M){var k=T(M);k.chunkSize=parseInt(k.chunkSize),M.step||M.chunk||(k.chunkSize=null),this._handle=new w(k),(this._handle.streamer=this)._config=k}).call(this,j),this.parseChunk=function(M,k){if(this.isFirstChunk&&L(this._config.beforeFirstChunk)){var $=this._config.beforeFirstChunk(M);$!==void 0&&(M=$)}this.isFirstChunk=!1,this._halted=!1;var B=this._partialLine+M;this._partialLine="";var z=this._handle.parse(B,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var U=z.meta.cursor;this._finished||(this._partialLine=B.substring(U-this._baseIndex),this._baseIndex=U),z&&z.data&&(this._rowCount+=z.data.length);var W=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)n.postMessage({results:z,workerId:d.WORKER_ID,finished:W});else if(L(this._config.chunk)&&!k){if(this._config.chunk(z,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);z=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(z.data),this._completeResults.errors=this._completeResults.errors.concat(z.errors),this._completeResults.meta=z.meta),this._completed||!W||!L(this._config.complete)||z&&z.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),W||z&&z.meta.paused||this._nextChunk(),z}this._halted=!0},this._sendError=function(M){L(this._config.error)?this._config.error(M):o&&this._config.error&&n.postMessage({workerId:d.WORKER_ID,error:M,finished:!1})}}function v(j){var M;(j=j||{}).chunkSize||(j.chunkSize=d.RemoteChunkSize),h.call(this,j),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(k){this._input=k,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(M=new XMLHttpRequest,this._config.withCredentials&&(M.withCredentials=this._config.withCredentials),a||(M.onload=E(this._chunkLoaded,this),M.onerror=E(this._chunkError,this)),M.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var k=this._config.downloadRequestHeaders;for(var $ in k)M.setRequestHeader($,k[$])}if(this._config.chunkSize){var B=this._start+this._config.chunkSize-1;M.setRequestHeader("Range","bytes="+this._start+"-"+B)}try{M.send(this._config.downloadRequestBody)}catch(z){this._chunkError(z.message)}a&&M.status===0&&this._chunkError()}},this._chunkLoaded=function(){M.readyState===4&&(M.status<200||400<=M.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:M.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(k){var $=k.getResponseHeader("Content-Range");return $===null?-1:parseInt($.substring($.lastIndexOf("/")+1))}(M),this.parseChunk(M.responseText)))},this._chunkError=function(k){var $=M.statusText||k;this._sendError(new Error($))}}function y(j){var M,k;(j=j||{}).chunkSize||(j.chunkSize=d.LocalChunkSize),h.call(this,j);var $=typeof FileReader<"u";this.stream=function(B){this._input=B,k=B.slice||B.webkitSlice||B.mozSlice,$?((M=new FileReader).onload=E(this._chunkLoaded,this),M.onerror=E(this._chunkError,this)):M=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var B=this._input;if(this._config.chunkSize){var z=Math.min(this._start+this._config.chunkSize,this._input.size);B=k.call(B,this._start,z)}var U=M.readAsText(B,this._config.encoding);$||this._chunkLoaded({target:{result:U}})},this._chunkLoaded=function(B){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(B.target.result)},this._chunkError=function(){this._sendError(M.error)}}function b(j){var M;h.call(this,j=j||{}),this.stream=function(k){return M=k,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var k,$=this._config.chunkSize;return $?(k=M.substring(0,$),M=M.substring($)):(k=M,M=""),this._finished=!M,this.parseChunk(k)}}}function _(j){h.call(this,j=j||{});var M=[],k=!0,$=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(B){this._input=B,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){$&&M.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),M.length?this.parseChunk(M.shift()):k=!0},this._streamData=E(function(B){try{M.push(typeof B=="string"?B:B.toString(this._config.encoding)),k&&(k=!1,this._checkIsFinished(),this.parseChunk(M.shift()))}catch(z){this._streamError(z)}},this),this._streamError=E(function(B){this._streamCleanUp(),this._sendError(B)},this),this._streamEnd=E(function(){this._streamCleanUp(),$=!0,this._streamData("")},this),this._streamCleanUp=E(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function w(j){var M,k,$,B=Math.pow(2,53),z=-B,U=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,W=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Q=this,V=0,K=0,X=!1,te=!1,G=[],J={data:[],errors:[],meta:{}};if(L(j.step)){var de=j.step;j.step=function(ge){if(J=ge,be())ue();else{if(ue(),J.data.length===0)return;V+=ge.data.length,j.preview&&V>j.preview?k.abort():(J.data=J.data[0],de(J,Q))}}}function ce(ge){return j.skipEmptyLines==="greedy"?ge.join("").trim()==="":ge.length===1&&ge[0].length===0}function ue(){return J&&$&&(Ee("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+d.DefaultDelimiter+"'"),$=!1),j.skipEmptyLines&&(J.data=J.data.filter(function(ge){return!ce(ge)})),be()&&function(){if(!J)return;function ge(Oe,Te){L(j.transformHeader)&&(Oe=j.transformHeader(Oe,Te)),G.push(Oe)}if(Array.isArray(J.data[0])){for(var xe=0;be()&&xe<J.data.length;xe++)J.data[xe].forEach(ge);J.data.splice(0,1)}else J.data.forEach(ge)}(),function(){if(!J||!j.header&&!j.dynamicTyping&&!j.transform)return J;function ge(Oe,Te){var Me,Fe=j.header?{}:[];for(Me=0;Me<Oe.length;Me++){var $e=Me,et=Oe[Me];j.header&&($e=Me>=G.length?"__parsed_extra":G[Me]),j.transform&&(et=j.transform(et,$e)),et=Pe($e,et),$e==="__parsed_extra"?(Fe[$e]=Fe[$e]||[],Fe[$e].push(et)):Fe[$e]=et}return j.header&&(Me>G.length?Ee("FieldMismatch","TooManyFields","Too many fields: expected "+G.length+" fields but parsed "+Me,K+Te):Me<G.length&&Ee("FieldMismatch","TooFewFields","Too few fields: expected "+G.length+" fields but parsed "+Me,K+Te)),Fe}var xe=1;return!J.data.length||Array.isArray(J.data[0])?(J.data=J.data.map(ge),xe=J.data.length):J.data=ge(J.data,0),j.header&&J.meta&&(J.meta.fields=G),K+=xe,J}()}function be(){return j.header&&G.length===0}function Pe(ge,xe){return Oe=ge,j.dynamicTypingFunction&&j.dynamicTyping[Oe]===void 0&&(j.dynamicTyping[Oe]=j.dynamicTypingFunction(Oe)),(j.dynamicTyping[Oe]||j.dynamicTyping)===!0?xe==="true"||xe==="TRUE"||xe!=="false"&&xe!=="FALSE"&&(function(Te){if(U.test(Te)){var Me=parseFloat(Te);if(z<Me&&Me<B)return!0}return!1}(xe)?parseFloat(xe):W.test(xe)?new Date(xe):xe===""?null:xe):xe;var Oe}function Ee(ge,xe,Oe,Te){var Me={type:ge,code:xe,message:Oe};Te!==void 0&&(Me.row=Te),J.errors.push(Me)}this.parse=function(ge,xe,Oe){var Te=j.quoteChar||'"';if(j.newline||(j.newline=function($e,et){$e=$e.substring(0,1048576);var qe=new RegExp(S(et)+"([^]*?)"+S(et),"gm"),re=($e=$e.replace(qe,"")).split("\r"),oe=$e.split(`
`),pe=1<oe.length&&oe[0].length<re[0].length;if(re.length===1||pe)return`
`;for(var Se=0,ne=0;ne<re.length;ne++)re[ne][0]===`
`&&Se++;return Se>=re.length/2?`\r
`:"\r"}(ge,Te)),$=!1,j.delimiter)L(j.delimiter)&&(j.delimiter=j.delimiter(ge),J.meta.delimiter=j.delimiter);else{var Me=function($e,et,qe,re,oe){var pe,Se,ne,we;oe=oe||[","," ","|",";",d.RECORD_SEP,d.UNIT_SEP];for(var Ne=0;Ne<oe.length;Ne++){var De=oe[Ne],ht=0,lt=0,bt=0;ne=void 0;for(var Pt=new A({comments:re,delimiter:De,newline:et,preview:10}).parse($e),Tt=0;Tt<Pt.data.length;Tt++)if(qe&&ce(Pt.data[Tt]))bt++;else{var Je=Pt.data[Tt].length;lt+=Je,ne!==void 0?0<Je&&(ht+=Math.abs(Je-ne),ne=Je):ne=Je}0<Pt.data.length&&(lt/=Pt.data.length-bt),(Se===void 0||ht<=Se)&&(we===void 0||we<lt)&&1.99<lt&&(Se=ht,pe=De,we=lt)}return{successful:!!(j.delimiter=pe),bestDelimiter:pe}}(ge,j.newline,j.skipEmptyLines,j.comments,j.delimitersToGuess);Me.successful?j.delimiter=Me.bestDelimiter:($=!0,j.delimiter=d.DefaultDelimiter),J.meta.delimiter=j.delimiter}var Fe=T(j);return j.preview&&j.header&&Fe.preview++,M=ge,k=new A(Fe),J=k.parse(M,xe,Oe),ue(),X?{meta:{paused:!0}}:J||{meta:{paused:!1}}},this.paused=function(){return X},this.pause=function(){X=!0,k.abort(),M=L(j.chunk)?"":M.substring(k.getCharIndex())},this.resume=function(){Q.streamer._halted?(X=!1,Q.streamer.parseChunk(M,!0)):setTimeout(Q.resume,3)},this.aborted=function(){return te},this.abort=function(){te=!0,k.abort(),J.meta.aborted=!0,L(j.complete)&&j.complete(J),M=""}}function S(j){return j.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function A(j){var M,k=(j=j||{}).delimiter,$=j.newline,B=j.comments,z=j.step,U=j.preview,W=j.fastMode,Q=M=j.quoteChar===void 0||j.quoteChar===null?'"':j.quoteChar;if(j.escapeChar!==void 0&&(Q=j.escapeChar),(typeof k!="string"||-1<d.BAD_DELIMITERS.indexOf(k))&&(k=","),B===k)throw new Error("Comment character same as delimiter");B===!0?B="#":(typeof B!="string"||-1<d.BAD_DELIMITERS.indexOf(B))&&(B=!1),$!==`
`&&$!=="\r"&&$!==`\r
`&&($=`
`);var V=0,K=!1;this.parse=function(X,te,G){if(typeof X!="string")throw new Error("Input must be a string");var J=X.length,de=k.length,ce=$.length,ue=B.length,be=L(z),Pe=[],Ee=[],ge=[],xe=V=0;if(!X)return Dt();if(j.header&&!te){var Oe=X.split($)[0].split(k),Te=[],Me={},Fe=!1;for(var $e in Oe){var et=Oe[$e];L(j.transformHeader)&&(et=j.transformHeader(et,$e));var qe=et,re=Me[et]||0;for(0<re&&(Fe=!0,qe=et+"_"+re),Me[et]=re+1;Te.includes(qe);)qe=qe+"_"+re;Te.push(qe)}if(Fe){var oe=X.split($);oe[0]=Te.join(k),X=oe.join($)}}if(W||W!==!1&&X.indexOf(M)===-1){for(var pe=X.split($),Se=0;Se<pe.length;Se++){if(ge=pe[Se],V+=ge.length,Se!==pe.length-1)V+=$.length;else if(G)return Dt();if(!B||ge.substring(0,ue)!==B){if(be){if(Pe=[],bt(ge.split(k)),Lt(),K)return Dt()}else bt(ge.split(k));if(U&&U<=Se)return Pe=Pe.slice(0,U),Dt(!0)}}return Dt()}for(var ne=X.indexOf(k,V),we=X.indexOf($,V),Ne=new RegExp(S(Q)+S(M),"g"),De=X.indexOf(M,V);;)if(X[V]!==M)if(B&&ge.length===0&&X.substring(V,V+ue)===B){if(we===-1)return Dt();V=we+ce,we=X.indexOf($,V),ne=X.indexOf(k,V)}else if(ne!==-1&&(ne<we||we===-1))ge.push(X.substring(V,ne)),V=ne+de,ne=X.indexOf(k,V);else{if(we===-1)break;if(ge.push(X.substring(V,we)),Je(we+ce),be&&(Lt(),K))return Dt();if(U&&Pe.length>=U)return Dt(!0)}else for(De=V,V++;;){if((De=X.indexOf(M,De+1))===-1)return G||Ee.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Pe.length,index:V}),Tt();if(De===J-1)return Tt(X.substring(V,De).replace(Ne,M));if(M!==Q||X[De+1]!==Q){if(M===Q||De===0||X[De-1]!==Q){ne!==-1&&ne<De+1&&(ne=X.indexOf(k,De+1)),we!==-1&&we<De+1&&(we=X.indexOf($,De+1));var ht=Pt(we===-1?ne:Math.min(ne,we));if(X.substr(De+1+ht,de)===k){ge.push(X.substring(V,De).replace(Ne,M)),X[V=De+1+ht+de]!==M&&(De=X.indexOf(M,V)),ne=X.indexOf(k,V),we=X.indexOf($,V);break}var lt=Pt(we);if(X.substring(De+1+lt,De+1+lt+ce)===$){if(ge.push(X.substring(V,De).replace(Ne,M)),Je(De+1+lt+ce),ne=X.indexOf(k,V),De=X.indexOf(M,V),be&&(Lt(),K))return Dt();if(U&&Pe.length>=U)return Dt(!0);break}Ee.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Pe.length,index:V}),De++}}else De++}return Tt();function bt(Ct){Pe.push(Ct),xe=V}function Pt(Ct){var ct=0;if(Ct!==-1){var Kt=X.substring(De+1,Ct);Kt&&Kt.trim()===""&&(ct=Kt.length)}return ct}function Tt(Ct){return G||(Ct===void 0&&(Ct=X.substring(V)),ge.push(Ct),V=J,bt(ge),be&&Lt()),Dt()}function Je(Ct){V=Ct,bt(ge),ge=[],we=X.indexOf($,V)}function Dt(Ct){return{data:Pe,errors:Ee,meta:{delimiter:k,linebreak:$,aborted:K,truncated:!!Ct,cursor:xe+(te||0)}}}function Lt(){z(Dt()),Pe=[],Ee=[]}},this.abort=function(){K=!0},this.getCharIndex=function(){return V}}function R(j){var M=j.data,k=i[M.workerId],$=!1;if(M.error)k.userError(M.error,M.file);else if(M.results&&M.results.data){var B={abort:function(){$=!0,C(M.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:O,resume:O};if(L(k.userStep)){for(var z=0;z<M.results.data.length&&(k.userStep({data:M.results.data[z],errors:M.results.errors,meta:M.results.meta},B),!$);z++);delete M.results}else L(k.userChunk)&&(k.userChunk(M.results,B,M.file),delete M.results)}M.finished&&!$&&C(M.workerId,M.results)}function C(j,M){var k=i[j];L(k.userComplete)&&k.userComplete(M),k.terminate(),delete i[j]}function O(){throw new Error("Not implemented.")}function T(j){if(typeof j!="object"||j===null)return j;var M=Array.isArray(j)?[]:{};for(var k in j)M[k]=T(j[k]);return M}function E(j,M){return function(){j.apply(M,arguments)}}function L(j){return typeof j=="function"}return o&&(n.onmessage=function(j){var M=j.data;if(d.WORKER_ID===void 0&&M&&(d.WORKER_ID=M.workerId),typeof M.input=="string")n.postMessage({workerId:d.WORKER_ID,results:d.parse(M.input,M.config),finished:!0});else if(n.File&&M.input instanceof File||M.input instanceof Object){var k=d.parse(M.input,M.config);k&&n.postMessage({workerId:d.WORKER_ID,results:k,finished:!0})}}),(v.prototype=Object.create(h.prototype)).constructor=v,(y.prototype=Object.create(h.prototype)).constructor=y,(b.prototype=Object.create(b.prototype)).constructor=b,(_.prototype=Object.create(h.prototype)).constructor=_,d})}(C1)),C1.exports}var n5=a_e();const vr=localStorage,o_e=e=>{var r;return(r=/^@(?<name>[a-zA-Z0-9._=\-/]+):(?<domain>[a-zA-Z0-9\-.]+\.[a-zA-Z]+)$/.exec(e))==null?void 0:r.groups},i_e=e=>/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/.test(e),s_e=async e=>{const t=`https://${e}/.well-known/matrix/client`;try{return(await op(t,{method:"GET"})).json["m.homeserver"].base_url}catch{return`https://${e}`}},l_e=async e=>{const t=`${e}/_synapse/admin/v1/server_version`;return(await op(t,{method:"GET"})).json.server_version},u_e=async e=>{const t=`${e}/_matrix/client/versions`;return(await op(t,{method:"GET"})).json},c_e=async e=>{const t=`${e}/_matrix/client/r0/login`;return(await op(t,{method:"GET"})).json.flows},d_e=e=>`${vr.getItem("base_url")}/_matrix/media/v1/download/${e}?allow_redirect=true`;function a5(){const e=vr.getItem("home_server"),t="0123456789abcdefghijklmnopqrstuvwxyz";return`@${Array.from(crypto.getRandomValues(new Uint32Array(8))).map(n=>t[n%t.length]).join("")}:${e}`}function f_e(e=20){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@-#$";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(r=>t[r%t.length]).join("")}const F2=!0,p_e=["id","displayname"].sort();function s1({value:e,text:t}){const r=nt();return I.jsx("option",{value:e,children:r(t)})}const h_e=()=>{const[e,t]=p.useState([]),[r,n]=p.useState(null),[a,o]=p.useState(null),[i,u]=p.useState(!0),[d,l]=p.useState(null),[h,v]=p.useState(null),[y,b]=p.useState(""),[_,w]=p.useState("stop"),[S,A]=p.useState(!0),[R,C]=p.useState("ignore"),O=nt(),T=Ur(),E=co(),L=async ce=>{if(d!==null)return;t([]),n(null),o(null),v(null);const ue=ce.target.files?ce.target.files[0]:null;if(ue){if(ue.size>1e8){const be=O("import_users.errors.unreasonably_big",{size:(ue.size/1048576).toFixed(2)});T(be),n(be);return}try{n5.parse(ue,{header:!0,skipEmptyLines:!0,complete:be=>{be.errors&&n(be.errors.map(Pe=>Pe.toString())),j(be,{setValues:t,setStats:o,setError:n})}})}catch{return n("Unknown error"),null}}},j=({data:ce,meta:ue,errors:be},{setValues:Pe,setStats:Ee,setError:ge})=>{const xe=p_e.filter(Me=>{var Fe;return!((Fe=ue.fields)!=null&&Fe.includes(Me))});if(xe.length>0)return ge(O("import_users.error.required_field",{field:xe[0]})),!1;const Oe={user_types:{default:0},is_guest:0,admin:0,deactivated:0,password:0,avatar_url:0,id:0,total:ce.length},Te=be.map(Me=>Me.message);return ce.forEach((Me,Fe)=>{var $e,et,qe;Me.user_type===void 0||Me.user_type===""?Oe.user_types.default++:Oe.user_types[Me.user_type]+=1,($e=ue.fields)!=null&&$e.includes("name")&&delete Me.name,(et=ue.fields)!=null&&et.includes("user_type")&&delete Me.user_type,(qe=ue.fields)!=null&&qe.includes("is_admin")&&delete Me.is_admin,["is_guest","admin","deactivated"].forEach(re=>{Me[re]==="true"?(Oe[re]++,Me[re]=!0):(Me[re]!=="false"&&Me[re]!==""&&Te.push(O("import_users.error.invalid_value",{field:re,row:Fe})),Me[re]=!1)}),Me.password!==void 0&&Me.password!==""&&Oe.password++,Me.avatar_url!==void 0&&Me.avatar_url!==""&&Oe.avatar_url++,Me.id!==void 0&&Me.id!==""&&Oe.id++}),Te.length>0&&ge(Te),Ee(Oe),Pe(ce),!0},M=async()=>{if(d!==null){T("import_users.errors.already_in_progress");return}const ce=await k(E,e,_,S,R,i,l,n);v(ce),b(n5.unparse(ce.skippedRecords)),console.log("Skipped records:"),console.log(y)},k=async(ce,ue,be,Pe,Ee,ge,xe,Oe)=>{const Te=[],Me=[],Fe=[],$e={total:0,id:0,is_guest:0,admin:0,password:0};let et=0;const qe=ue.length;try{xe({done:et,limit:qe});for(const re of ue){const oe={...re};(Ee==="ignore"||oe.id===void 0)&&(oe.id=a5()),(Pe===!1||re.password===void 0)&&(oe.password=f_e()),F2&&console.log("will check for existence of record "+JSON.stringify(oe));let pe=0;const Se=ne=>ce.getOne("users",{id:ne.id}).then(async()=>{if(F2&&console.log("already existed"),Ee==="update"||be==="skip")Te.push(ne);else{if(be==="stop")throw new Error(O("import_users.error.id_exits",{id:ne.id}));{const we=Object.assign({},ne,{id:a5()});pe++,pe>512?(console.warn("retry loop got stuck? pathological situation?"),Te.push(ne)):await Se(we)}}},async()=>{F2&&console.log("OK to create record "+ne.id+" ("+ne.displayname+")."),ge||await ce.create("users",{data:ne}),Fe.push(ne)});await Se(oe),et++,xe({done:et,limit:ue.length})}xe(null)}catch(re){Oe(O("import_users.error.at_entry",{entry:et+1,message:re instanceof Error?re.message:String(re)})),xe(null)}return{skippedRecords:Te,erroredRecords:Me,succeededRecords:Fe,totalRecordCount:qe,changeStats:$e,wasDryRun:ge}},$=()=>{const ce=document.createElement("a");console.log(y);const ue=new Blob([y],{type:"text/comma-separated-values"});ce.href=URL.createObjectURL(ue),ce.download="skippedRecords.csv",document.body.appendChild(ce),ce.click()},B=async ce=>{if(d!==null)return;const ue=ce.target.value;w(ue)},z=ce=>{d===null&&A(ce.target.checked)},U=async ce=>{if(d!==null)return;const ue=ce.target.value;C(ue)},W=ce=>{d===null&&u(ce.target.checked)},Q=a&&!h&&[I.jsxs(Hh,{children:[I.jsx(Cf,{title:O("import_users.cards.importstats.header")}),I.jsxs(Di,{children:[I.jsx("div",{children:O("import_users.cards.importstats.users_total",a.total)}),I.jsx("div",{children:O("import_users.cards.importstats.guest_count",a.is_guest)}),I.jsx("div",{children:O("import_users.cards.importstats.admin_count",a.admin)})]})]}),I.jsxs(Hh,{children:[I.jsx(Cf,{title:O("import_users.cards.ids.header")}),I.jsxs(Di,{children:[I.jsx("div",{children:a.id===a.total?O("import_users.cards.ids.all_ids_present"):O("import_users.cards.ids.count_ids_present",a.id)}),a.id>0?I.jsx("div",{children:I.jsxs(Yk,{onChange:U,value:R,disabled:d!==null,children:[I.jsx(s1,{value:"ignore",text:"import_users.cards.ids.mode.ignore"}),I.jsx(s1,{value:"update",text:"import_users.cards.ids.mode.update"})]})}):""]})]}),I.jsxs(Hh,{children:[I.jsx(Cf,{title:O("import_users.cards.passwords.header")}),I.jsxs(Di,{children:[I.jsx("div",{children:a.password===a.total?O("import_users.cards.passwords.all_passwords_present"):O("import_users.cards.passwords.count_passwords_present",a.password)}),a.password>0?I.jsx("div",{children:I.jsx(Wk,{control:I.jsx(ev,{checked:S,disabled:d!==null,onChange:z}),label:O("import_users.cards.passwords.use_passwords")})}):""]})]})],V=a&&!h&&I.jsxs(Hh,{children:[I.jsx(Cf,{title:O("import_users.cards.conflicts.header")}),I.jsx(Di,{children:I.jsx("div",{children:I.jsxs(Yk,{onChange:B,value:_,disabled:d!==null,children:[I.jsx(s1,{value:"stop",text:"import_users.cards.conflicts.mode.stop"}),I.jsx(s1,{value:"skip",text:"import_users.cards.conflicts.mode.skip"})]})})})]}),K=r&&I.jsxs(Hh,{children:[I.jsx(Cf,{title:O("import_users.error.error")}),I.jsx(Di,{children:(Array.isArray(r)?r:[r]).map(ce=>I.jsx("div",{children:ce}))})]}),X=!h&&I.jsxs(Hh,{children:[I.jsx(Cf,{title:O("import_users.cards.upload.header")}),I.jsxs(Di,{children:[O("import_users.cards.upload.explanation"),I.jsx("a",{href:"./data/example.csv",children:"example.csv"}),I.jsx("br",{}),I.jsx("br",{}),I.jsx("input",{type:"file",onChange:L,disabled:d!==null})]})]}),te=h&&I.jsxs(Di,{children:[I.jsx(Cf,{title:O("import_users.cards.results.header")}),I.jsxs("div",{children:[O("import_users.cards.results.total",h.totalRecordCount),I.jsx("br",{}),O("import_users.cards.results.successful",h.succeededRecords.length),I.jsx("br",{}),h.skippedRecords.length?[O("import_users.cards.results.skipped",h.skippedRecords.length),I.jsx("div",{children:I.jsx("button",{onClick:$,children:O("import_users.cards.results.download_skipped")})}),I.jsx("br",{})]:"",h.erroredRecords.length?[O("import_users.cards.results.skipped",h.erroredRecords.length),I.jsx("br",{})]:"",I.jsx("br",{}),h.wasDryRun&&[O("import_users.cards.results.simulated_only"),I.jsx("br",{})]]})]}),G=!e||e.length===0||h?void 0:I.jsxs(tU,{children:[I.jsx(Wk,{control:I.jsx(ev,{checked:i,onChange:W,disabled:d!==null}),label:O("import_users.cards.startImport.simulate_only")}),I.jsx(Dn,{size:"large",onClick:M,disabled:d!==null,children:O("import_users.cards.startImport.run_import")}),d!==null?I.jsxs("div",{children:[d.done," of ",d.limit," done"]}):null]}),J=[];X&&J.push(X),K&&J.push(K),V&&J.push(V),Q&&J.push(...Q),G&&J.push(G),te&&J.push(te);const de=I.jsx(pp,{children:J});return[I.jsx(Ed,{defaultTitle:O("import_users.title")}),de]},m_e=h_e,E1={ra:{action:{add_filter:"Filter hinzufügen",add:"Neu",back:"Zurück",bulk_actions:"Ein Element ausgewählt |||| %{smart_count} Elemente ausgewählt",cancel:"Abbrechen",clear_array_input:"Liste löschen",clear_input_value:"Eingabe löschen",clone:"Klonen",confirm:"Bestätigen",create:"Erstellen",create_item:"%{item} erstellen",delete:"Löschen",edit:"Bearbeiten",export:"Exportieren",list:"Liste",refresh:"Neu laden",remove_filter:"Filter entfernen",remove_all_filters:"Alle Filter entfernen",remove:"Entfernen",save:"Speichern",search:"Suchen",select_all:"Alles auswählen",select_row:"Reihe auswählen",show:"Anzeigen",sort:"Sortieren",undo:"Rückgängig machen",unselect:"Abwählen",expand:"Erweitern",close:"Schließen",open_menu:"Menü öffnen",close_menu:"Menü schließen",update:"Aktualisieren",move_up:"Nach oben",move_down:"Nach unten",open:"Öffnen",toggle_theme:"Theme wechseln",select_columns:"Spalten"},boolean:{true:"Ja",false:"Nein",null:""},page:{create:"%{name} erstellen",dashboard:"Dashboard",edit:"%{name} %{recordRepresentation}",error:"Etwas ist schiefgelaufen",list:"%{name}",loading:"Laden",not_found:"Nicht gefunden",show:"%{name} %{recordRepresentation}",empty:"Noch kein %{name}.",invite:"Neu erstellen?"},input:{file:{upload_several:"Dateien hier ablegen, oder zum Auswählen klicken.",upload_single:"Dateien hier ablegen, oder zum Auswählen klicken."},image:{upload_several:"Bilder hier ablegen, oder zum Auswählen klicken.",upload_single:"Bild hier ablegen, oder zum Auswählen klicken."},references:{all_missing:"Die Daten der Referenz können nicht gefunden werden.",many_missing:"Mindestens eine Referenz scheint nicht mehr verfügbar zu sein.",single_missing:"Die Referenz scheint nicht mehr verfügbar zu sein."},password:{toggle_visible:"Passwort verbergen",toggle_hidden:"Passwort einblenden"}},message:{about:"Über",are_you_sure:"Sind Sie sicher?",auth_error:"Bei der Validierung des Authentifizierungstokens ist ein Fehler aufgetreten.",bulk_delete_content:"Sicher, dass Sie %{name} löschen wollen? |||| Sicher, dass Sie diese %{smart_count} Elemente löschen wollen?",bulk_delete_title:"%{name} löschen |||| %{smart_count} %{name} löschen",bulk_update_content:"Sicher, dass Sie %{name} aktualisieren wollen? |||| Sicher, dass Sie %{smart_count} Elemente aktualisieren wollen?",bulk_update_title:"%{name} aktualisieren |||| %{smart_count} %{name} aktualisieren",clear_array_input:"Sicher, dass Sie die ganze Liste löschen wollen?",delete_content:"Sicher, dass Sie dieses Element löschen wollen?",delete_title:"%{name} #%{id} löschen",details:"Details",error:"Ein Fehler trat auf, Ihre Anfrage konnte nicht verarbeitet werden.",invalid_form:"Das Formular ist ungültig. Bitte überprüfen Sie Ihre Eingaben.",loading:"Die Seite wird geladen, noch einen Moment.",no:"Nein",not_found:"Sie eine falsche URL aufgerufen oder eingegeben.",yes:"Ja",unsaved_changes:"Einige Änderungen wurden nicht gespeichert. Sicher, dass Sie diese nicht übernehmen wollen?"},navigation:{no_results:"Keine Ergebnisse gefunden.",no_more_results:"Es gibt keine Seite %{page}. Versuche eine vorherige.",page_out_of_boundaries:"Es gibt keine Seite %{page}.",page_out_from_end:"Es gibt keine Seite mehr nach dieser.",page_out_from_begin:"Es gibt keine Seite vor Seite 1.",page_range_info:"%{offsetBegin}-%{offsetEnd} von %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} von mehr als %{offsetEnd}",current_page:"Seite %{page}",page:"Gehe zu Seite %{page}",first:"Gehe zur ersten Seite",last:"Gehe zur letzten Seite",next:"Gehe zur nächsten Seite",previous:"Gehe zur vorherigen Seite",page_rows_per_page:"Reihen pro Seite:",skip_nav:"Zum Inhalt springen"},sort:{sort_by:"Nach %{field} %{order} sortieren",ASC:"Aufsteigend",DESC:"Absteigend"},auth:{auth_check_error:"Bitte anmelden um fortzufahren",user_menu:"Profil",username:"Nutzername",password:"Passwort",sign_in:"Anmelden",sign_in_error:"Anmeldung fehlgeschlagen, bitte erneut versuchen.",logout:"Abmelden"},notification:{updated:"Element aktualisiert |||| %{smart_count} Elemente aktualisiert",created:"Element erstellt",deleted:"Element gelöscht |||| %{smart_count} Elemente gelöscht",bad_item:"Fehlerhaftes Element",item_doesnt_exist:"Element existiert nicht",http_error:"Kommunikation mit Server fehlgeschlagen",data_provider_error:"DataProvider-Fehler. Mehr Details in der Konsole.",i18n_error:"Die Übersetzungen für die ausgewählte Sprache können nicht geladen werden",canceled:"Aktion abgebrochen",logged_out:"Ihre Sitzung ist abgelaufen, bitte erneut verbinden.",not_authorized:"Sie sind nicht berechtigt, auf diese Ressource zuzugreifen."},validation:{required:"Erforderlich",minLength:"Muss mindestens %{min} Zeichen betragen",maxLength:"Darf %{max} Zeichen oder weniger betragen",minValue:"Muss mindestens %{min} betragen",maxValue:"Darf %{max} oder weniger betragen",number:"Muss eine Nummer sein",email:"Muss eine gültige E-Mail sein",oneOf:"Muss eine der folgenden Optionen sein: %{options}",regex:"Muss einem gewissen Format entsprechen (regexp): %{pattern}"},saved_queries:{label:"Gespeicherte Anfragen",query_name:"Name der Anfrage",new_label:"Speichere aktuelle Anfrage...",new_dialog_title:"Speichere aktuelle Anfrage als",remove_label:"Gespeicherte Anfrage löschen",remove_label_with_name:'Anfrage "%{name}" löschen',remove_dialog_title:"Gespeicherte Anfrage löschen?",remove_message:"Sicher, dass Sie diese Anfrage aus der Liste der gespeicherten löschen wollen?",help:"Liste filtern und diese Anfrage für später speichern"},configurable:{customize:"Anpassen",configureMode:"Diese Seite anpassen",inspector:{title:"Inspektor",content:"Bewegen Sie den Mauszeigen über die UI-Elemente, um sie zu konfigurieren",reset:"Einstellungen zurücksetzen",hideAll:"Alles verbergen",showAll:"Alles anzeigen"},Datagrid:{title:"Datagrid",unlabeled:"Unbekannte Spalte #%{column}"},SimpleForm:{title:"Formular",unlabeled:"Unbenannter Input #%{input}"},SimpleList:{title:"Liste",primaryText:"Primärtext",secondaryText:"Sekundärtext",tertiaryText:"Tertiärtext"}}}},v_e={ra:{message:{are_you_sure:"Bist du sicher?",bulk_delete_content:"Sicher, dass du %{name} löschen willst? |||| Sicher, dass du diese %{smart_count} Elemente löschen willst?",bulk_update_content:"Sicher, dass du %{name} aktualisieren willst? |||| Sicher, dass du %{smart_count} Elemente aktualisieren willst?",clear_array_input:"Sicher, dass du die ganze Liste löschen willst?",delete_content:"Sicher, dass du dieses Element löschen willst?",error:"Ein Fehler trat auf, Deine Anfrage konnte nicht verarbeitet werden.",invalid_form:"Das Formular ist ungültig. Bitte überprüfe Deine Eingaben.",not_found:"Du hast eine falsche URL aufgerufen oder eingegeben.",unsaved_changes:"Einige Änderungen wurden nicht gespeichert. Sicher, dass du diese nicht übernehmen willst?"},notification:{logged_out:"Deine Sitzung ist abgelaufen, bitte erneut verbinden.",not_authorized:"Du bist nicht berechtigt, auf diese Ressource zuzugreifen."},saved_queries:{remove_message:"Sicher, dass du diese Anfrage aus der Liste der gespeicherten löschen willst?"},configurable:{inspector:{content:"Bewege den Mauszeigen über die UI-Elemente, um sie zu konfigurieren"}}}};_x(E1,v_e);const g_e={...E1,ra:{...E1.ra,navigation:{...E1.ra.navigation,no_filtered_results:"Keine Ergebnisse",clear_filters:"Alle Filter entfernen"}},synapseadmin:{auth:{base_url:"Heimserver URL",welcome:"Willkommen bei Synapse-admin",server_version:"Synapse Version",supports_specs:"unterstützt Matrix-Specs",username_error:"Bitte vollständigen Nutzernamen angeben: '@user:domain'",protocol_error:"Die URL muss mit 'http://' oder 'https://' beginnen",url_error:"Keine gültige Matrix Server URL",sso_sign_in:"Anmeldung mit SSO"},users:{invalid_user_id:"Lokaler Anteil der Matrix Benutzer-ID ohne Homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Raumdetails",tabs:{basic:"Allgemein",members:"Mitglieder",detail:"Details",permission:"Berechtigungen"}},reports:{tabs:{basic:"Allgemein",detail:"Details"}}},import_users:{error:{at_entry:"Bei Eintrag %{entry}: %{message}",error:"Fehler",required_field:"Pflichtfeld '%{field}' fehlt",invalid_value:"Ungültiger Wert in Zeile %{row}. Feld '%{field}' darf nur die Werte 'true' oder 'false' enthalten",unreasonably_big:"Datei ist zu groß für den Import (%{size} Megabytes)",already_in_progress:"Es läuft bereits ein Import",id_exits:"ID %{id} existiert bereits"},title:"Benutzer aus CSV importieren",goToPdf:"Gehe zum PDF",cards:{importstats:{header:"Benutzer importieren",users_total:"%{smart_count} Benutzer in der CSV Datei |||| %{smart_count} Benutzer in der CSV Datei",guest_count:"%{smart_count} Gast |||| %{smart_count} Gäste",admin_count:"%{smart_count} Server Administrator |||| %{smart_count} Server Administratoren"},conflicts:{header:"Konfliktstrategie",mode:{stop:"Stoppe bei Fehlern",skip:"Zeige Fehler und überspringe fehlerhafte Einträge"}},ids:{header:"IDs",all_ids_present:"IDs in jedem Eintrag vorhanden",count_ids_present:"%{smart_count} Eintrag mit ID |||| %{smart_count} Einträge mit IDs",mode:{ignore:"Ignoriere IDs der CSV-Datei und erstelle neue",update:"Aktualisiere existierende Benutzer"}},passwords:{header:"Passwörter",all_passwords_present:"Passwörter in jedem Eintrag vorhanden",count_passwords_present:"%{smart_count} Eintrag mit Passwort |||| %{smart_count} Einträge mit Passwörtern",use_passwords:"Verwende Passwörter aus der CSV Datei"},upload:{header:"CSV Datei importieren",explanation:"Hier können Sie eine Datei mit kommagetrennten Daten hochladen, die verwendet werden um Benutzer anzulegen oder zu ändern. Die Datei muss mindestens die Felder 'id' und 'displayname' enthalten. Hier können Sie eine Beispieldatei herunterladen und anpassen: "},startImport:{simulate_only:"Nur simulieren",run_import:"Importieren"},results:{header:"Ergebnis",total:"%{smart_count} Eintrag insgesamt |||| %{smart_count} Einträge insgesamt",successful:"%{smart_count} Einträge erfolgreich importiert",skipped:"%{smart_count} Einträge übersprungen",download_skipped:"Übersprungene Einträge herunterladen",with_error:"%{smart_count} Eintrag mit Fehlern ||| %{smart_count} Einträge mit Fehlern",simulated_only:"Import-Vorgang war nur simuliert"}}},delete_media:{name:"Medien",fields:{before_ts:"Letzter Zugriff vor",size_gt:"Größer als (in Bytes)",keep_profiles:"Behalte Profilbilder"},action:{send:"Medien löschen",send_success:"Anfrage erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:"Diese API löscht die lokalen Medien von der Festplatte des eigenen Servers. Dies umfasst alle lokalen Miniaturbilder und Kopien von Medien. Diese API wirkt sich nicht auf Medien aus, die sich in externen Medien-Repositories befinden."}},resources:{users:{name:"Benutzer",email:"E-Mail",msisdn:"Telefon",threepid:"E-Mail / Telefon",fields:{avatar:"Avatar",id:"Benutzer-ID",name:"Name",is_guest:"Gast",admin:"Server Administrator",locked:"Gesperrt",deactivated:"Deaktiviert",erased:"Gelöscht",guests:"Zeige Gäste",show_deactivated:"Zeige deaktivierte Benutzer",user_id:"Suche Benutzer",displayname:"Anzeigename",password:"Passwort",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Adresse",creation_ts_ms:"Zeitpunkt der Erstellung",consent_version:"Zugestimmte Geschäftsbedingungen",auth_provider:"Provider",user_type:"Benutzertyp"},helper:{password:"Durch die Änderung des Passworts wird der Benutzer von allen Sitzungen abgemeldet.",deactivate:"Sie müssen ein Passwort angeben, um ein Konto wieder zu aktivieren.",erase:"DSGVO konformes Löschen der Benutzerdaten"},action:{erase:"Lösche Benutzerdaten"}},rooms:{name:"Raum |||| Räume",fields:{room_id:"Raum-ID",name:"Name",canonical_alias:"Alias",joined_members:"Mitglieder",joined_local_members:"Lokale Mitglieder",joined_local_devices:"Lokale Endgeräte",state_events:"Zustandsereignisse / Komplexität",version:"Version",is_encrypted:"Verschlüsselt",encryption:"Verschlüsselungs-Algorithmus",federatable:"Fö­de­rierbar",public:"Sichtbar im Raumverzeichnis",creator:"Ersteller",join_rules:"Beitrittsregeln",guest_access:"Gastzugriff",history_visibility:"Historie-Sichtbarkeit",topic:"Thema",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Öffentlich",knock:"Auf Anfrage",invite:"Nur auf Einladung",private:"Privat"},guest_access:{can_join:"Gäste können beitreten",forbidden:"Gäste können nicht beitreten"},history_visibility:{invited:"Ab Einladung",joined:"Ab Beitritt",shared:"Ab Setzen der Einstellung",world_readable:"Jeder"},unencrypted:"Nicht verschlüsselt"},action:{erase:{title:"Raum löschen",content:"Sind Sie sicher dass Sie den Raum löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden. Alle Nachrichten und Medien, die der Raum beinhaltet werden vom Server gelöscht!"}}},reports:{name:"Gemeldetes Ereignis |||| Gemeldete Ereignisse",fields:{id:"ID",received_ts:"Meldezeit",user_id:"Meldender",name:"Raumname",score:"Wert",reason:"Grund",event_id:"Event-ID",event_json:{origin:"Ursprungsserver",origin_server_ts:"Sendezeit",type:"Eventtyp",content:{msgtype:"Inhaltstyp",body:"Nachrichteninhalt",format:"Nachrichtenformat",formatted_body:"Formatierter Nachrichteninhalt",algorithm:"Verschlüsselungsalgorithmus",info:{mimetype:"Typ"},url:"URL"}}},action:{erase:{title:"Gemeldetes Event löschen",content:"Sind Sie sicher dass Sie das gemeldete Event löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden."}}},connections:{name:"Verbindungen",fields:{last_seen:"Datum",ip:"IP-Adresse",user_agent:"User Agent"}},devices:{name:"Gerät |||| Geräte",fields:{device_id:"Geräte-ID",display_name:"Gerätename",last_seen_ts:"Zeitstempel",last_seen_ip:"IP-Adresse"},action:{erase:{title:"Entferne %{id}",content:'Möchten Sie das Gerät "%{name}" wirklich entfernen?',success:"Gerät erfolgreich entfernt.",failure:"Beim Entfernen ist ein Fehler aufgetreten."}}},users_media:{name:"Medien",fields:{media_id:"Medien ID",media_length:"Größe",media_type:"Typ",upload_name:"Dateiname",quarantined_by:"Zur Quarantäne hinzugefügt",safe_from_quarantine:"Schutz vor Quarantäne",created_ts:"Erstellt",last_access_ts:"Letzter Zugriff"},action:{open:"Mediendatei in neuem Fenster öffnen"}},protect_media:{action:{create:"Ungeschützt, Schutz erstellen",delete:"Geschützt, Schutz aufheben",none:"In Quarantäne",send_success:"Erfolgreich den Schutz-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},quarantine_media:{action:{name:"Quarantäne",create:"Zur Quarantäne hinzufügen",delete:"In Quarantäne, Quarantäne aufheben",none:"Geschützt vor Quarantäne",send_success:"Erfolgreich den Quarantäne-Status geändert.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App-Anzeigename",app_id:"App ID",device_display_name:"Geräte-Anzeigename",kind:"Art",lang:"Sprache",profile_tag:"Profil-Tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Serverbenachrichtigungen",send:"Servernachricht versenden",fields:{body:"Nachricht"},action:{send:"Sende Nachricht",send_success:"Nachricht erfolgreich versendet.",send_failure:"Beim Versenden ist ein Fehler aufgetreten."},helper:{send:'Sendet eine Serverbenachrichtigung an die ausgewählten Nutzer. Hierfür muss das Feature "Server Notices" auf dem Server aktiviert sein.'}},user_media_statistics:{name:"Dateien je Benutzer",fields:{media_count:"Anzahl der Dateien",media_length:"Größe der Dateien"}},forward_extremities:{name:"Vorderextremitäten",fields:{id:"Event-ID",received_ts:"Zeitstempel",depth:"Tiefe",state_group:"Zustandsgruppe"}},room_state:{name:"Zustandsereignisse",fields:{type:"Typ",content:"Inhalt",origin_server_ts:"Sendezeit",sender:"Absender"}},room_directory:{name:"Raumverzeichnis",fields:{world_readable:"Gastbenutzer dürfen ohne Beitritt lesen",guest_can_join:"Gastbenutzer dürfen beitreten"},action:{title:"Raum aus Verzeichnis löschen |||| %{smart_count} Räume aus Verzeichnis löschen",content:"Möchten Sie den Raum wirklich aus dem Raumverzeichnis löschen? |||| Möchten Sie die %{smart_count} Räume wirklich aus dem Raumverzeichnis löschen?",erase:"Lösche aus Verzeichnis",create:"Eintragen ins Verzeichnis",send_success:"Raum erfolgreich eingetragen.",send_failure:"Beim Entfernen ist ein Fehler aufgetreten."}},destinations:{name:"Föderation",fields:{destination:"Ziel",failure_ts:"Fehlerzeitpunkt",retry_last_ts:"Letzter Wiederholungsversuch",retry_interval:"Wiederholungsintervall",last_successful_stream_ordering:"letzte erfogreicher Stream",stream_ordering:"Stream"},action:{reconnect:"Neu verbinden"}},registration_tokens:{name:"Registrierungstoken",fields:{token:"Token",valid:"Gültige Token",uses_allowed:"Anzahl",pending:"Ausstehend",completed:"Abgeschlossen",expiry_time:"Ablaufzeit",length:"Länge"},helper:{length:"Länge des Tokens, wenn kein Token vorgegeben wird."}}}},y_e={...i8,synapseadmin:{auth:{base_url:"Homeserver URL",welcome:"Welcome to Synapse-admin",server_version:"Synapse version",supports_specs:"supports Matrix specs",username_error:"Please enter fully qualified user ID: '@user:domain'",protocol_error:"URL has to start with 'http://' or 'https://'",url_error:"Not a valid Matrix server URL",sso_sign_in:"Sign in with SSO"},users:{invalid_user_id:"Localpart of a Matrix user-id without homeserver.",tabs:{sso:"SSO"}},rooms:{details:"Room details",tabs:{basic:"Basic",members:"Members",detail:"Details",permission:"Permissions"}},reports:{tabs:{basic:"Basic",detail:"Details"}}},import_users:{error:{at_entry:"At entry %{entry}: %{message}",error:"Error",required_field:"Required field '%{field}' is not present",invalid_value:"Invalid value on line %{row}. '%{field}' field may only be 'true' or 'false'",unreasonably_big:"Refused to load unreasonably big file of %{size} megabytes",already_in_progress:"An import run is already in progress",id_exits:"ID %{id} already present"},title:"Import users via CSV",goToPdf:"Go to PDF",cards:{importstats:{header:"Import users",users_total:"%{smart_count} user in CSV file |||| %{smart_count} users in CSV file",guest_count:"%{smart_count} guest |||| %{smart_count} guests",admin_count:"%{smart_count} admin |||| %{smart_count} admins"},conflicts:{header:"Conflict strategy",mode:{stop:"Stop on conflict",skip:"Show error and skip on conflict"}},ids:{header:"IDs",all_ids_present:"IDs present on every entry",count_ids_present:"%{smart_count} entry with ID |||| %{smart_count} entries with IDs",mode:{ignore:"Ignore IDs in CSV and create new ones",update:"Update existing records"}},passwords:{header:"Passwords",all_passwords_present:"Passwords present on every entry",count_passwords_present:"%{smart_count} entry with password |||| %{smart_count} entries with passwords",use_passwords:"Use passwords from CSV"},upload:{header:"Input CSV file",explanation:"Here you can upload a file with comma separated values that is processed to create or update users. The file must include the fields 'id' and 'displayname'. You can download and adapt an example file here: "},startImport:{simulate_only:"Simulate only",run_import:"Import"},results:{header:"Import results",total:"%{smart_count} entry in total |||| %{smart_count} entries in total",successful:"%{smart_count} entries successfully imported",skipped:"%{smart_count} entries skipped",download_skipped:"Download skipped records",with_error:"%{smart_count} entry with errors |||| %{smart_count} entries with errors",simulated_only:"Run was only simulated"}}},delete_media:{name:"Media",fields:{before_ts:"last access before",size_gt:"Larger then (in bytes)",keep_profiles:"Keep profile images"},action:{send:"Delete media",send_success:"Request successfully sent.",send_failure:"An error has occurred."},helper:{send:"This API deletes the local media from the disk of your own server. This includes any local thumbnails and copies of media downloaded. This API will not affect media that has been uploaded to external media repositories."}},resources:{users:{name:"User |||| Users",email:"Email",msisdn:"Phone",threepid:"Email / Phone",fields:{avatar:"Avatar",id:"User-ID",name:"Name",is_guest:"Guest",admin:"Server Administrator",locked:"Locked",deactivated:"Deactivated",erased:"Erased",guests:"Show guests",show_deactivated:"Show deactivated users",show_locked:"Show locked users",user_id:"Search user",displayname:"Displayname",password:"Password",avatar_url:"Avatar URL",avatar_src:"Avatar",medium:"Medium",threepids:"3PIDs",address:"Address",creation_ts_ms:"Creation timestamp",consent_version:"Consent version",auth_provider:"Provider",user_type:"User type"},helper:{password:"Changing password will log user out of all sessions.",deactivate:"You must provide a password to re-activate an account.",erase:"Mark the user as GDPR-erased"},action:{erase:"Erase user data"}},rooms:{name:"Room |||| Rooms",fields:{room_id:"Room-ID",name:"Name",canonical_alias:"Alias",joined_members:"Members",joined_local_members:"Local members",joined_local_devices:"Local devices",state_events:"State events / Complexity",version:"Version",is_encrypted:"Encrypted",encryption:"Encryption",federatable:"Federatable",public:"Visible in room directory",creator:"Creator",join_rules:"Join rules",guest_access:"Guest access",history_visibility:"History visibility",topic:"Topic",avatar:"Avatar"},helper:{forward_extremities:"Forward extremities are the leaf events at the end of a Directed acyclic graph (DAG) in a room, aka events that have no children. The more exist in a room, the more state resolution that Synapse needs to perform (hint: it's an expensive operation). While Synapse has code to prevent too many of these existing at one time in a room, bugs can sometimes make them crop up again. If a room has >10 forward extremities, it's worth checking which room is the culprit and potentially removing them using the SQL queries mentioned in #1760."},enums:{join_rules:{public:"Public",knock:"Knock",invite:"Invite",private:"Private"},guest_access:{can_join:"Guests can join",forbidden:"Guests can not join"},history_visibility:{invited:"Since invited",joined:"Since joined",shared:"Since shared",world_readable:"Anyone"},unencrypted:"Unencrypted"},action:{erase:{title:"Delete room",content:"Are you sure you want to delete the room? This cannot be undone. All messages and shared media in the room will be deleted from the server!"}}},reports:{name:"Reported event |||| Reported events",fields:{id:"ID",received_ts:"report time",user_id:"announcer",name:"name of the room",score:"score",reason:"reason",event_id:"event ID",event_json:{origin:"origin server",origin_server_ts:"time of send",type:"event type",content:{msgtype:"content type",body:"content",format:"format",formatted_body:"formatted content",algorithm:"algorithm",url:"URL",info:{mimetype:"Type"}}}},action:{erase:{title:"Delete reported event",content:"Are you sure you want to delete the reported event? This cannot be undone."}}},connections:{name:"Connections",fields:{last_seen:"Date",ip:"IP address",user_agent:"User agent"}},devices:{name:"Device |||| Devices",fields:{device_id:"Device-ID",display_name:"Device name",last_seen_ts:"Timestamp",last_seen_ip:"IP address"},action:{erase:{title:"Removing %{id}",content:'Are you sure you want to remove the device "%{name}"?',success:"Device successfully removed.",failure:"An error has occurred."}}},users_media:{name:"Media",fields:{media_id:"Media ID",media_length:"File Size (in Bytes)",media_type:"Type",upload_name:"File name",quarantined_by:"Quarantined by",safe_from_quarantine:"Safe from quarantine",created_ts:"Created",last_access_ts:"Last access"},action:{open:"Open media file in new window"}},protect_media:{action:{create:"Unprotected, create protection",delete:"Protected, remove protection",none:"In quarantine",send_success:"Successfully changed the protection status.",send_failure:"An error has occurred."}},quarantine_media:{action:{name:"Quarantine",create:"Add to quarantine",delete:"In quarantine, unquarantine",none:"Protected from quarantine",send_success:"Successfully changed the quarantine status.",send_failure:"An error has occurred."}},pushers:{name:"Pusher |||| Pushers",fields:{app:"App",app_display_name:"App display name",app_id:"App ID",device_display_name:"Device display name",kind:"Kind",lang:"Language",profile_tag:"Profile tag",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Server Notices",send:"Send server notices",fields:{body:"Message"},action:{send:"Send note",send_success:"Server notice successfully sent.",send_failure:"An error has occurred."},helper:{send:'Sends a server notice to the selected users. The feature "Server Notices" has to be activated at the server.'}},user_media_statistics:{name:"Users' media",fields:{media_count:"Media count",media_length:"Media length"}},forward_extremities:{name:"Forward Extremities",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Depth",state_group:"State group"}},room_state:{name:"State events",fields:{type:"Type",content:"Content",origin_server_ts:"time of send",sender:"Sender"}},room_directory:{name:"Room directory",fields:{world_readable:"guest users may view without joining",guest_can_join:"guest users may join"},action:{title:"Delete room from directory |||| Delete %{smart_count} rooms from directory",content:"Are you sure you want to remove this room from directory? |||| Are you sure you want to remove these %{smart_count} rooms from directory?",erase:"Delete from room directory",create:"Publish in room directory",send_success:"Room successfully published.",send_failure:"An error has occurred."}},destinations:{name:"Federation",fields:{destination:"Destination",failure_ts:"Failure timestamp",retry_last_ts:"Last retry timestamp",retry_interval:"Retry interval",last_successful_stream_ordering:"Last successful stream",stream_ordering:"Stream"},action:{reconnect:"Reconnect"}},registration_tokens:{name:"Registration tokens",fields:{token:"Token",valid:"Valid token",uses_allowed:"Uses allowed",pending:"Pending",completed:"Completed",expiry_time:"Expiry time",length:"Length"},helper:{length:"Length of the token if no token is given."}}}};var b_e={ra:{action:{add_filter:"Ajouter un filtre",add:"Ajouter",back:"Retour",bulk_actions:"%{smart_count} sélectionné |||| %{smart_count} sélectionnés",cancel:"Annuler",clear_array_input:"Vider la liste",clear_input_value:"Vider le champ",clone:"Dupliquer",confirm:"Confirmer",create:"Créer",create_item:"Créer %{item}",delete:"Supprimer",edit:"Éditer",export:"Exporter",list:"Liste",refresh:"Actualiser",remove_filter:"Supprimer ce filtre",remove_all_filters:"Supprimer tous les filtres",remove:"Supprimer",save:"Enregistrer",select_all:"Tout sélectionner",select_all_button:"Tout sélectionner",select_row:"Sélectionner cette ligne",search:"Rechercher",show:"Afficher",sort:"Trier",undo:"Annuler",unselect:"Désélectionner",expand:"Étendre",close:"Fermer",open_menu:"Ouvrir le menu",close_menu:"Fermer le menu",update:"Modifier",move_up:"Déplacer vers le haut",move_down:"Déplacer vers le bas",open:"Ouvrir",toggle_theme:"Thème clair/sombre",select_columns:"Colonnes",update_application:"Recharger l'application"},boolean:{true:"Oui",false:"Non",null:""},page:{create:"Créer %{name}",dashboard:"Tableau de bord",edit:"%{name} %{recordRepresentation}",error:"Un problème est survenu",list:"%{name}",loading:"Chargement",not_found:"Page manquante",show:"%{name} %{recordRepresentation}",empty:"Pas encore de %{name}.",invite:"Voulez-vous en créer un ?",access_denied:"Non autorisé",authentication_error:"Erreur d'authentification"},input:{file:{upload_several:"Déposez les fichiers à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez le fichier à uploader, ou cliquez pour le sélectionner."},image:{upload_several:"Déposez les images à uploader, ou cliquez pour en sélectionner.",upload_single:"Déposez l'image à uploader, ou cliquez pour la sélectionner."},references:{all_missing:"Impossible de trouver des données de références.",many_missing:"Au moins une des références associées semble ne plus être disponible.",single_missing:"La référence associée ne semble plus disponible."},password:{toggle_visible:"Cacher le mot de passe",toggle_hidden:"Montrer le mot de passe"}},message:{about:"Au sujet de",access_denied:"Vous n'avez pas les droits d'accès à cette page",are_you_sure:"Êtes-vous sûr ?",authentication_error:"Le serveur d'authentification a retourné une erreur et vos autorisations n'ont pas pu être vérifiées.",auth_error:"Une erreur est survenue lors de la validation de votre jeton d'authentification.",bulk_delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ? |||| Êtes-vous sûr(e) de vouloir supprimer ces %{smart_count} éléments ?",bulk_delete_title:"Supprimer %{name} |||| Supprimer %{smart_count} %{name}",bulk_update_content:"Êtes-vous sûr(e) de vouloir modifier cet élément ? |||| Êtes-vous sûr(e) de vouloir modifier ces %{smart_count} éléments ?",bulk_update_title:"Modifier %{name} %{recordRepresentation} |||| Modifier %{smart_count} %{name}",clear_array_input:"Êtes-vous sûr(e) de vouloir supprimer tous les éléments de la liste ?",delete_content:"Êtes-vous sûr(e) de vouloir supprimer cet élément ?",delete_title:"Supprimer %{name} %{recordRepresentation}",details:"Détails",error:"En raison d'une erreur côté navigateur, votre requête n'a pas pu aboutir.",invalid_form:"Le formulaire n'est pas valide.",loading:"La page est en cours de chargement, merci de bien vouloir patienter.",no:"Non",not_found:"L'URL saisie est incorrecte, ou vous avez suivi un mauvais lien.",select_all_limit_reached:"Il y a trop d'éléments pour tous les sélectionner. Seuls les %{max} premiers éléments ont été sélectionnés.",unsaved_changes:"Certains changements n'ont pas été enregistrés. Êtes-vous sûr(e) de vouloir quitter cette page ?",yes:"Oui",placeholder_data_warning:"Problème réseau : Impossible de charger les données."},navigation:{clear_filters:"Effacer les filtres",no_filtered_results:"Aucun résultat trouvé avec les filtres actuels.",no_results:"Aucun résultat",no_more_results:"La page numéro %{page} est en dehors des limites. Essayez la page précédente.",page_out_of_boundaries:"La page %{page} est en dehors des limites",page_out_from_end:"Fin de la pagination",page_out_from_begin:"La page doit être supérieure à 1",page_range_info:"%{offsetBegin}-%{offsetEnd} sur %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} sur plus de %{offsetEnd}",page_rows_per_page:"Lignes par page :",current_page:"Page %{page}",page:"Aller à la page %{page}",first:"Aller à la première page",last:"Aller à la dernière page",next:"Aller à la prochaine page",previous:"Aller à la page précédente",skip_nav:"Aller au contenu"},sort:{sort_by:"Trier par %{field_lower_first} %{order}",ASC:"croissant",DESC:"décroissant"},auth:{auth_check_error:"Merci de vous connecter pour continuer",user_menu:"Profil",username:"Identifiant",password:"Mot de passe",email:"Email",sign_in:"Connexion",sign_in_error:"Échec de l'authentification, merci de réessayer",logout:"Déconnexion"},notification:{updated:"Élément mis à jour |||| %{smart_count} éléments mis à jour",created:"Élément créé",deleted:"Élément supprimé |||| %{smart_count} éléments supprimés",bad_item:"Élément inconnu",item_doesnt_exist:"L'élément n'existe pas",http_error:"Erreur de communication avec le serveur",data_provider_error:"Erreur dans le dataProvider. Plus de détails dans la console.",i18n_error:"Erreur de chargement des traductions pour la langue sélectionnée",canceled:"Action annulée",logged_out:"Votre session a pris fin, veuillez vous reconnecter.",not_authorized:"Vous n'êtes pas autorisé(e) à accéder à cette ressource.",application_update_available:"Une mise à jour est disponible."},validation:{required:"Ce champ est requis",minLength:"Minimum %{min} caractères",maxLength:"Maximum %{max} caractères",minValue:"Minimum %{min}",maxValue:"Maximum %{max}",number:"Doit être un nombre",email:"Doit être un email",oneOf:"Doit être au choix: %{options}",regex:"Doit respecter un format spécifique (regexp): %{pattern}",unique:"Doit être unique"},saved_queries:{label:"Mes requêtes",query_name:"Nom de la requête",new_label:"Ajouter à mes requêtes...",new_dialog_title:"Ajouter la requête en cours à mes requêtes",remove_label:"Retirer de mes requêtes",remove_label_with_name:'Retirer "%{name}" des mes requêtes',remove_dialog_title:"Effacer de mes requêtes ?",remove_message:"Etes-vous sûr(e) de vouloir supprimer cette requête de votre liste de requêtes ?",help:"Filtrez la liste et ajoutez cette requête à votre liste"},configurable:{customize:"Personnaliser",configureMode:"Configurer cette page",inspector:{title:"Inspecteur",content:"Sélectionner un composant pour le configurer",reset:"Réinitialiser",hideAll:"Masquer tout",showAll:"Afficher tout"},Datagrid:{title:"Tableau",unlabeled:"Colonne #%{column}"},SimpleForm:{title:"Formulaire",unlabeled:"Champ #%{input}"},SimpleList:{title:"Liste",primaryText:"Texte principal",secondaryText:"Texte secondaire",tertiaryText:"Texte annexe"}}}};const __e={...b_e,synapseadmin:{auth:{base_url:"URL du serveur daccueil",welcome:"Bienvenue sur Synapse-admin",server_version:"Version du serveur Synapse",username_error:"Veuillez entrer un nom d'utilisateur complet : « @utilisateur:domaine »",protocol_error:"L'URL doit commencer par « http:// » ou « https:// »",url_error:"L'URL du serveur Matrix n'est pas valide",sso_sign_in:"Se connecter avec lauthentification unique"},users:{invalid_user_id:"Partie locale d'un identifiant utilisateur Matrix sans le nom du serveur daccueil.",tabs:{sso:"Authentification unique"}},rooms:{tabs:{basic:"Informations de base",members:"Membres",detail:"Détails",permission:"Permissions"}},reports:{tabs:{basic:"Informations de base",detail:"Détails"}}},import_users:{error:{at_entry:"Pour l'entrée %{entry} : %{message}",error:"Erreur",required_field:"Le champ requis « %{field} » est manquant",invalid_value:"Valeur non valide à la ligne %{row}. Le champ « %{field} » ne peut être que « true » ou « false »",unreasonably_big:"Refus de charger un fichier trop volumineux de %{size} mégaoctets",already_in_progress:"Un import est déjà en cours",id_exits:"L'identifiant %{id} déjà présent"},title:"Importer des utilisateurs à partir d'un fichier CSV",goToPdf:"Voir le PDF",cards:{importstats:{header:"Importer des utilisateurs",users_total:"%{smart_count} utilisateur dans le fichier CSV |||| %{smart_count} utilisateurs dans le fichier CSV",guest_count:"%{smart_count} visiteur |||| %{smart_count} visiteurs",admin_count:"%{smart_count} administrateur |||| %{smart_count} administrateurs"},conflicts:{header:"Stratégie de résolution des conflits",mode:{stop:"S'arrêter en cas de conflit",skip:"Afficher l'erreur et ignorer le conflit"}},ids:{header:"Identifiants",all_ids_present:"Identifiants présents pour chaque entrée",count_ids_present:"%{smart_count} entrée avec identifiant |||| %{smart_count} entrées avec identifiant",mode:{ignore:"Ignorer les identifiants dans le ficher CSV et en créer de nouveaux",update:"Mettre à jour les enregistrements existants"}},passwords:{header:"Mots de passe",all_passwords_present:"Mots de passe présents pour chaque entrée",count_passwords_present:"%{smart_count} entrée avec mot de passe |||| %{smart_count} entrées avec mot de passe",use_passwords:"Utiliser les mots de passe provenant du fichier CSV"},upload:{header:"Fichier CSV en entrée",explanation:"Vous pouvez télécharger ici un fichier contenant des valeurs séparées par des virgules qui sera traité pour créer ou mettre à jour des utilisateurs. Le fichier doit inclure les champs « id » et « displayname ». Vous pouvez télécharger et adapter un fichier d'exemple ici : "},startImport:{simulate_only:"Simuler",run_import:"Importer"},results:{header:"Résultats de l'import",total:"%{smart_count} entrée au total |||| %{smart_count} entrées au total",successful:"%{smart_count} entrées importées avec succès",skipped:"%{smart_count} entrées ignorées",download_skipped:"Télécharger les entrées ignorées",with_error:"%{smart_count} entrée avec des erreurs ||| %{smart_count} entrées avec des erreurs",simulated_only:"L'import était simulé"}}},delete_media:{name:"Media",fields:{before_ts:"Dernier accès avant",size_gt:"Plus grand que (en octets)",keep_profiles:"Conserver les images de profil"},action:{send:"Supprimer le média",send_success:"Requête envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Cette API supprime les médias locaux du disque de votre propre serveur. Cela inclut toutes les vignettes locales et les copies des médias téléchargés. Cette API n'affectera pas les médias qui ont été téléversés dans des dépôts de médias externes."}},resources:{users:{name:"Utilisateur |||| Utilisateurs",email:"Adresse électronique",msisdn:"Numéro de téléphone",threepid:"Adresse électronique / Numéro de téléphone",fields:{avatar:"Avatar",id:"Identifiant",name:"Nom",is_guest:"Visiteur",admin:"Administrateur du serveur",locked:"Verrouillé",deactivated:"Désactivé",guests:"Afficher les visiteurs",show_deactivated:"Afficher les utilisateurs désactivés",user_id:"Rechercher un utilisateur",displayname:"Nom d'affichage",password:"Mot de passe",avatar_url:"URL de l'avatar",avatar_src:"Avatar",medium:"Type",threepids:"Identifiants tiers",address:"Adresse",creation_ts_ms:"Date de création",consent_version:"Version du consentement",auth_provider:"Fournisseur d'identité"},helper:{deactivate:"Vous devrez fournir un mot de passe pour réactiver le compte.",erase:"Marquer l'utilisateur comme effacé conformément au RGPD"},action:{erase:"Effacer les données de l'utilisateur"}},rooms:{name:"Salon |||| Salons",fields:{room_id:"Identifiant du salon",name:"Nom",canonical_alias:"Alias",joined_members:"Membres",joined_local_members:"Membres locaux",joined_local_devices:"Appareils locaux",state_events:"Événements d'État / Complexité",version:"Version",is_encrypted:"Chiffré",encryption:"Chiffrement",federatable:"Fédérable",public:"Visible dans le répertoire des salons",creator:"Créateur",join_rules:"Règles d'adhésion",guest_access:"Accès des visiteurs",history_visibility:"Visibilité de l'historique",topic:"Sujet",avatar:"Avatar"},helper:{forward_extremities:"Les extrémités avant sont les événements feuilles à la fin d'un graphe orienté acyclique (DAG) dans un salon, c'est-à-dire les événements qui n'ont pas de descendants. Plus il y en a dans un salon, plus la résolution d'état que Synapse doit effectuer est importante (indice : c'est une opération coûteuse). Bien que Synapse dispose d'un algorithme pour éviter qu'un trop grand nombre de ces événements n'existent en même temps dans un salon, des bogues peuvent parfois les faire réapparaître. Si un salon présente plus de 10 extrémités avant, cela vaut la peine d'y prêter attention et éventuellement de les supprimer en utilisant les requêtes SQL mentionnées dans la discussion traitant du problème https://github.com/matrix-org/synapse/issues/1760."},enums:{join_rules:{public:"Public",knock:"Sur demande",invite:"Sur invitation",private:"Privé"},guest_access:{can_join:"Les visiteurs peuvent rejoindre le salon",forbidden:"Les visiteurs ne peuvent pas rejoindre le salon"},history_visibility:{invited:"Depuis l'invitation",joined:"Depuis l'adhésion",shared:"Depuis le partage",world_readable:"Tout le monde"},unencrypted:"Non chiffré"},action:{erase:{title:"Supprimer le salon",content:"Voulez-vous vraiment supprimer le salon ? Cette opération ne peut être annulée. Tous les messages et médias partagés du salon seront supprimés du serveur !"}}},reports:{name:"Événement signalé |||| Événements signalés",fields:{id:"Identifiant",received_ts:"Date du rapport",user_id:"Rapporteur",name:"Nom du salon",score:"Score",reason:"Motif",event_id:"Identifiant de l'événement",event_json:{origin:"Serveur d'origine",origin_server_ts:"Date d'envoi",type:"Type d'événement",content:{msgtype:"Type de contenu",body:"Contenu",format:"Format",formatted_body:"Contenu mis en forme",algorithm:"Algorithme"}}}},connections:{name:"Connexions",fields:{last_seen:"Date",ip:"Adresse IP",user_agent:"Agent utilisateur"}},devices:{name:"Appareil |||| Appareils",fields:{device_id:"Identifiant de l'appareil",display_name:"Nom de l'appareil",last_seen_ts:"Date",last_seen_ip:"Adresse IP"},action:{erase:{title:"Suppression de %{id}",content:"Voulez-vous vraiment supprimer l'appareil « %{name} » ?",success:"Appareil supprimé avec succès",failure:"Une erreur s'est produite"}}},users_media:{name:"Media",fields:{media_id:"Identifiant du média",media_length:"Taille du fichier (en octets)",media_type:"Type",upload_name:"Nom du fichier",quarantined_by:"Mis en quarantaine par",safe_from_quarantine:"Protection contre la mise en quarantaine",created_ts:"Date de création",last_access_ts:"Dernier accès"}},protect_media:{action:{create:"Protéger",delete:"Révoquer la protection",none:"En quarantaine",send_success:"Le statut de protection a été modifié avec succès",send_failure:"Une erreur s'est produite"}},quarantine_media:{action:{name:"Quarantaine",create:"Mettre en quarantaine",delete:"Révoquer la mise en quarantaine",none:"Protégé contre la mise en quarantaine",send_success:"Le statut de la quarantaine a été modifié avec succès",send_failure:"Une erreur s'est produite"}},pushers:{name:"Émetteur de notifications |||| Émetteurs de notifications",fields:{app:"Application",app_display_name:"Nom d'affichage de l'application",app_id:"Identifiant de l'application",device_display_name:"Nom d'affichage de l'appareil",kind:"Type",lang:"Langue",profile_tag:"Profil",pushkey:"Identifiant de l'émetteur",data:{url:"URL"}}},servernotices:{name:"Annonces du serveur",send:"Envoyer des « Annonces du serveur »",fields:{body:"Message"},action:{send:"Envoyer une annonce",send_success:"Annonce envoyée avec succès",send_failure:"Une erreur s'est produite"},helper:{send:"Envoie une annonce au nom du serveur aux utilisateurs sélectionnés. La fonction « Annonces du serveur » doit être activée sur le serveur."}},user_media_statistics:{name:"Médias des utilisateurs",fields:{media_count:"Nombre de médias",media_length:"Taille des médias"}},forward_extremities:{name:"Extrémités avant",fields:{id:"Identifiant de l'événement",received_ts:"Date de réception",depth:"Profondeur",state_group:"Groupe d'état"}},room_state:{name:"Événements d'état",fields:{type:"Type",content:"Contenu",origin_server_ts:"Date d'envoi",sender:"Expéditeur"}},room_directory:{name:"Répertoire des salons",fields:{world_readable:"Tout utilisateur peut avoir un aperçu du salon, sans en devenir membre",guest_can_join:"Les visiteurs peuvent rejoindre le salon"},action:{title:"Supprimer un salon du répertoire |||| Supprimer %{smart_count} salons du répertoire",content:"Voulez-vous vraiment supprimer ce salon du répertoire ? |||| Voulez-vous vraiment supprimer ces %{smart_count} salons du répertoire ?",erase:"Supprimer du répertoire des salons",create:"Publier dans le répertoire des salons",send_success:"Salon publié avec succès",send_failure:"Une erreur s'est produite"}},registration_tokens:{name:"Jetons d'inscription",fields:{token:"Jeton",valid:"Jeton valide",uses_allowed:"Nombre d'inscription autorisées",pending:"Nombre d'inscription en cours",completed:"Nombre d'inscription accomplie",expiry_time:"Date d'expiration",length:"Longueur"},helper:{length:"Longueur du jeton généré aléatoirement si aucun jeton n'est pas spécifié"}}}};var L2,o5;function w_e(){return o5||(o5=1,L2={ra:{action:{add_filter:"Aggiungi un filtro",add:"Aggiungi",back:"Indietro",bulk_actions:"%{smart_count} selezionati",cancel:"Annulla",clear_input_value:"Svuota il modulo",clone:"Duplica",confirm:"Conferma",create:"Crea",delete:"Cancella",edit:"Modifica",export:"Esporta",list:"Elenco",refresh:"Aggiorna",remove_filter:"Rimuovi questo filtro",remove:"Rimuovi",save:"Salva",search:"Ricerca",show:"Mostra",sort:"Ordina",undo:"Annulla",unselect:"Annulla selezione",expand:"Espandi",close:"Chiudi",open_menu:"Apri il menu",close_menu:"Chiudi il menu"},boolean:{true:"Si",false:"No",null:""},page:{create:"Aggiungi %{name}",dashboard:"Cruscotto",edit:"%{name} %{id}",error:"Qualcosa non ha funzionato",list:"%{name}",loading:"Caricamento in corso",not_found:"Non trovato",show:"%{name} %{id}",empty:"Nessun %{name} ancora.",invite:"Vuoi aggiungerne uno?"},input:{file:{upload_several:"Trascina i files da caricare, oppure clicca per selezionare.",upload_single:"Trascina il file da caricare, oppure clicca per selezionarlo."},image:{upload_several:"Trascina le immagini da caricare, oppure clicca per selezionarle.",upload_single:"Trascina l'immagine da caricare, oppure clicca per selezionarla."},references:{all_missing:"Impossibile trovare i riferimenti associati.",many_missing:"Almeno uno dei riferimenti associati non sembra più disponibile.",single_missing:"Il riferimento associato non sembra più disponibile."}},password:{toggle_visible:"Nascondi la password",toggle_hidden:"Mostra la password"},message:{about:"Informazioni",are_you_sure:"Sei sicuro ?",bulk_delete_content:"Sei sicuro di voler cancellare questo %{name}? |||| Sei sicuro di voler eliminare questi %{smart_count}?",bulk_delete_title:"Delete %{name} |||| Delete %{smart_count} %{name} items",delete_content:"Are you sure you want to delete this item?",delete_title:"Cancella %{name} #%{id}",details:"Dettagli",error:"Un errore locale è occorso e la tua richiesta non è stata completata.",invalid_form:"Il modulo non è valido. Si prega di verificare la presenza di errori.",loading:"La pagina si sta caricando, solo un momento per favore",no:"No",not_found:"Hai inserito un URL errato, oppure hai cliccato un link errato",yes:"Si",unsaved_changes:"Alcune modifiche non sono state salvate. Sei sicuro di volerle ignorare?"},navigation:{no_results:"Nessun risultato trovato",no_more_results:"La pagina numero %{page} è fuori dell'intervallo. Prova la pagina precedente.",page_out_of_boundaries:"Il numero di pagina %{page} è fuori dei limiti",page_out_from_end:"Fine della paginazione",page_out_from_begin:"Il numero di pagina deve essere maggiore di 1",page_range_info:"%{offsetBegin}-%{offsetEnd} di %{total}",page_rows_per_page:"Righe per pagina",next:"Successivo",prev:"Precedente",skip_nav:"Vai al contenuto"},sort:{sort_by:"Ordina per %{field} %{order}",ASC:"cresente",DESC:"decrescente"},auth:{auth_check_error:"È necessario accedere per continuare",user_menu:"Profilo",username:"Nome utente",password:"Password",sign_in:"Login",sign_in_error:"Autenticazione fallita, riprovare.",logout:"Disconnessione"},notification:{updated:"Record aggiornato |||| %{smart_count} records aggiornati",created:"Record creato",deleted:"Record eliminato |||| %{smart_count} records eliminati",bad_item:"Record errato",item_doesnt_exist:"Record inesistente",http_error:"Errore di comunicazione con il server dati",data_provider_error:"Errore del data provider. Controlla la console per i dettagli.",i18n_error:"Traduzioni non trovate per il linguaggio specificato",canceled:"Azione annullata",logged_out:"La sessione è stata terminata, si prega di ripetere l'autenticazione."},validation:{required:"Campo obbligatorio",minLength:"Deve essere lungo %{min} caratteri almeno",maxLength:"Deve essere lungo %{max} caratteri al massimo",minValue:"Deve essere almeno %{min}",maxValue:"Deve essere al massimo %{max}",number:"Deve essere un numero",email:"Deve essere un valido indirizzo email",oneOf:"Deve essere uno di: %{options}",regex:"Deve rispettare il formato (espressione regolare): %{pattern}"}}}),L2}var x_e=w_e();const S_e=Nn(x_e),C_e={...S_e,synapseadmin:{auth:{base_url:"URL dell'homeserver",welcome:"Benvenuto in Synapse-admin",server_version:"Versione di Synapse",username_error:"Per favore inserisci un ID utente completo: '@utente:dominio'",protocol_error:"L'URL deve iniziare per 'http://' o 'https://'",url_error:"URL del server Matrix non valido",sso_sign_in:"Accedi con SSO"},users:{invalid_user_id:"ID utente non valido su questo homeserver.",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"Semplice",members:"Membro",detail:"Dettagli",permission:"Permessi"}},reports:{tabs:{basic:"Semplice",detail:"Dettagli"}}},import_users:{error:{at_entry:"Alla voce %{entry}: %{message}",error:"Errore",required_field:"Il campo '%{field}' non è presente",invalid_value:"Valore non valido alla riga %{row}. '%{field}' Il campo può essere solo 'true' o 'false'",unreasonably_big:"Impossibile caricare un file così grosso (%{size} megabyte)",already_in_progress:"Un import è attualmente già in caricamento",id_exits:"L'ID %{id} è già presente"},title:"Importa utenti tramite file CSV",goToPdf:"Vai al PDF",cards:{importstats:{header:"Importa utenti",users_total:"%{smart_count} utente nel file CSV |||| %{smart_count} utenti nel file CSV",guest_count:"%{smart_count} ospite |||| %{smart_count} ospiti",admin_count:"%{smart_count} amministratore |||| %{smart_count} amministratori"},conflicts:{header:"Strategia di conflitto",mode:{stop:"Stoppa al conflitto",skip:"Mostra l'errore e ignora il conflitto"}},ids:{header:"ID",all_ids_present:"ID presenti in ogni voce",count_ids_present:"%{smart_count} voce con ID |||| %{smart_count} voci con ID",mode:{ignore:"Ignora gli ID nel file CSV e creane di nuovi",update:"Aggiorna le voci esistenti"}},passwords:{header:"Passwords",all_passwords_present:"Password presenti in ogni voce",count_passwords_present:"%{smart_count} voce con password |||| %{smart_count} voci con password",use_passwords:"Usa le password dal file CSV"},upload:{header:"Input file CSV",explanation:"Qui puoi caricare un file con valori separati da virgole che verrà poi utilizzato per creare o aggiornare gli utenti. Il file deve includere i campi 'id' and 'displayname'. Puoi scaricare un file di esempio per adattarlo: "},startImport:{simulate_only:"Solo simulazione",run_import:"Importa"},results:{header:"Importa i risultati",total:"%{smart_count} voce in totale |||| %{smart_count} voci in totale",successful:"%{smart_count} voci importate con successo",skipped:"%{smart_count} voci ignorate",download_skipped:"Scarica le voci ignorate",with_error:"%{smart_count} voce con errori ||| %{smart_count} voci con errori",simulated_only:"Il processo era stato solamente simulato"}}},delete_media:{name:"Media",fields:{before_ts:"ultimo accesso effettuato prima",size_gt:"Più grande di (in byte)",keep_profiles:"Mantieni le immagini del profilo"},action:{send:"Cancella media",send_success:"Richiesta inviata con successo.",send_failure:"C'è stato un errore."},helper:{send:"Questa API cancella i media locali dal disco del tuo server. Questo include anche ogni miniatura e copia del media scaricato. Questa API non inciderà sui media che sono stati caricati nei repository esterni."}},resources:{users:{name:"Utente |||| Utenti",email:"Email",msisdn:"Telefono",threepid:"Email / Telefono",fields:{avatar:"Avatar",id:"ID utente",name:"Nome",is_guest:"Ospite",admin:"Amministratore",locked:"Bloccato",deactivated:"Disattivato",guests:"Mostra gli ospiti",show_deactivated:"Mostra gli utenti disattivati",user_id:"Cerca utente",displayname:"Nickname",password:"Password",avatar_url:"URL dell'avatar",avatar_src:"Avatar",medium:"Medium",threepids:"3PID",address:"Indirizzo",creation_ts_ms:"Creazione del timestamp",consent_version:"Versione minima richiesta",auth_provider:"Provider",user_type:"Tipo d'utente"},helper:{password:"Cambiando la password l'utente verrà disconnesso da tutte le sessioni attive.",deactivate:"Devi fornire una password per riattivare l'account.",erase:"Constrassegna l'utente come cancellato dal GDPR"},action:{erase:"Cancella i dati dell'utente"}},rooms:{name:"Stanza |||| Stanze",fields:{room_id:"ID della stanza",name:"Nome",canonical_alias:"Alias",joined_members:"Membri",joined_local_members:"Membri locali",joined_local_devices:"Dispositivi locali",state_events:"Eventi di stato / Complessità",version:"Versione",is_encrypted:"Criptato",encryption:"Crittografia",federatable:"Federabile",public:"Visibile nella cartella della stanza",creator:"Creatore",join_rules:"Regole per entrare",guest_access:"Entra come ospite",history_visibility:"Visibilità temporale",topic:"Topic",avatar:"Avatar"},helper:{},enums:{join_rules:{public:"Pubblica",knock:"Bussa",invite:"Invita",private:"Privata"},guest_access:{can_join:"Gli utenti ospiti possono entrare",forbidden:"Gli utenti ospiti non possono entrare"},history_visibility:{invited:"Dall'invito",joined:"Dall'entrata",shared:"Dalla condivisione",world_readable:"Chiunque"},unencrypted:"Non criptata"},action:{erase:{title:"Cancella stanza",content:"Sei sicuro di voler eliminare questa stanza? Questa azione è definitiva. Tutti i messaggi e i media condivisi in questa stanza verranno eliminati dal server!"}}},reports:{name:"Evento segnalato |||| Eventi segnalati",fields:{id:"ID",received_ts:"Orario del report",user_id:"richiedente",name:"nome della stanza",score:"punteggio",reason:"ragione",event_id:"ID dell'evento",event_json:{origin:"server di origine",origin_server_ts:"ora dell'invio",type:"tipo di evento",content:{msgtype:"tipo di contenuto",body:"contenuto",format:"formato",formatted_body:"contenuto formattato",algorithm:"algoritmo"}}}},connections:{name:"Connessioni",fields:{last_seen:"Data",ip:"Indirizzo IP",user_agent:"agente utente"}},devices:{name:"Dispositivo |||| Dispositivi",fields:{device_id:"ID del dispositivo",display_name:"Nome del dispositivo",last_seen_ts:"Timestamp",last_seen_ip:"Indirizzo IP"},action:{erase:{title:"Rimozione del dispositivo %{id}",content:'Sei sicuro di voler rimuovere il dispositivo "%{name}"?',success:"Dispositivo rimosso con successo.",failure:"C'è stato un errore."}}},users_media:{name:"Media",fields:{media_id:"ID del media",media_length:"Peso del file (in Byte)",media_type:"Tipo",upload_name:"Nome del file",quarantined_by:"In quarantena da",safe_from_quarantine:"Protetto dalla quarantena",created_ts:"Creato",last_access_ts:"Ultimo accesso"}},protect_media:{action:{create:"Non protetto, proteggi",delete:"Protetto, rimuovi protezione",none:"In quarantena",send_success:"Stato della protezione cambiato con successo.",send_failure:"C'è stato un errore."}},quarantine_media:{action:{name:"Quarantina",create:"Aggiungi alla quarantena",delete:"In quarantena, rimuovi dalla quarantena",none:"Protetto dalla quarantena",send_success:"Stato della quarantena cambiato con successo.",send_failure:"C'è stato un errore."}},pushers:{name:"Pusher |||| Pusher",fields:{app:"App",app_display_name:"Nome dell'app",app_id:"ID dell'app",device_display_name:"Nome del dispositivo",kind:"Tipo",lang:"Lingua",profile_tag:"Tag del profilo",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"Avvisi del server",send:"Invia avvisi",fields:{body:"Messaggio"},action:{send:"Invia nota",send_success:"Avviso inviato con successo.",send_failure:"C'è stato un errore."},helper:{send:'Invia un avviso dal server agli utenti selezionati. La feature "Avvisi del server" è stata attivata sul server.'}},user_media_statistics:{name:"Media degli utenti",fields:{media_count:"Numero media",media_length:"Lunghezza media"}},forward_extremities:{name:"Invia estremità",fields:{id:"Event ID",received_ts:"Timestamp",depth:"Profondità",state_group:"State group"}},room_state:{name:"Eventi di stato",fields:{type:"Tipo",content:"Contenuto",origin_server_ts:"Ora dell'invio",sender:"Mittente"}},room_directory:{name:"Elenco delle stanze",fields:{world_readable:"gli utenti ospite possono vedere senza entrare",guest_can_join:"gli utenti ospite possono entrare"},action:{title:"Cancella stanza dall'elenco |||| Cancella %{smart_count} stanze dall'elenco",content:"Sei sicuro di voler rimuovere questa stanza dall'elenco? |||| Sei sicuro di voler rimuovere %{smart_count} stanze dall'elenco?",erase:"Rimuovi dall'elenco",create:"Crea",send_success:"Stanza creata con successo.",send_failure:"C'è stato un errore."}},destinations:{name:"Federazione",fields:{destination:"Destinazione",failure_ts:"Timestamp dell'errore",retry_last_ts:"Tentativo ultimo timestamp",retry_interval:"Intervallo dei tentativi",last_successful_stream_ordering:"Ultimo flusso riuscito con successo",stream_ordering:"Flusso"},action:{reconnect:"Riconnetti"}},registration_tokens:{name:"Token di registrazione",fields:{token:"Token",valid:"Token valido",uses_allowed:"Usi permessi",pending:"In attesa",completed:"Completato",expiry_time:"Data della scadenza",length:"Lunghezza"},helper:{length:"Lunghezza del token se non viene dato alcun token."}}}},$2={ra:{action:{add_filter:"Добавить фильтр",add:"Добавить",back:"Назад",bulk_actions:"1 выбран |||| %{smart_count} выбрано |||| %{smart_count} выбрано",cancel:"Отмена",clear_array_input:"Очистить список",clear_input_value:"Очистить",clone:"Дублировать",confirm:"Подтвердить",create:"Создать",create_item:"Создать %{item}",delete:"Удалить",edit:"Редактировать",export:"Экспорт",list:"Список",refresh:"Обновить",remove_filter:"Убрать фильтр",remove_all_filters:"Убрать все фильтры",remove:"Удалить",save:"Сохранить",search:"Поиск",select_all:"Выбрать все",select_row:"Выбрать эту запись",show:"Просмотр",sort:"Сортировка",undo:"Отменить",unselect:"Не выбрано",expand:"Раскрыть",close:"Закрыть",open_menu:"Открыть меню",close_menu:"Закрыть меню",update:"Обновить",move_up:"Переместить вверх",move_down:"Переместить вниз",open:"Открыть",toggle_theme:"Переключить тему",select_columns:"Столбцы",update_application:"Обновить приложение"},boolean:{true:"Да",false:"Нет",null:""},page:{create:"Создать %{name}",dashboard:"Главная",edit:"%{name} %{recordRepresentation}",error:"Что-то пошло не так",list:"%{name}",loading:"Загрузка",not_found:"Не найдено",show:"%{name} %{recordRepresentation}",empty:"Нет %{name}.",invite:"Вы хотите добавить еще одну?"},input:{file:{upload_several:"Перетащите файлы сюда или нажмите для выбора.",upload_single:"Перетащите файл сюда или нажмите для выбора."},image:{upload_several:"Перетащите изображения сюда или нажмите для выбора.",upload_single:"Перетащите изображение сюда или нажмите для выбора."},references:{all_missing:"Связанных данных не найдено",many_missing:"Некоторые из связанных данных недоступны",single_missing:"Связанный объект недоступен"},password:{toggle_visible:"Скрыть пароль",toggle_hidden:"Показать пароль"}},message:{about:"Справка",are_you_sure:"Вы уверены?",auth_error:"Произошла ошибка при валидации токена аутентификации",bulk_delete_content:"Вы уверены, что хотите удалить %{name}? |||| Вы уверены, что хотите удалить %{smart_count} объектов? |||| Вы уверены, что хотите удалить %{smart_count} объектов?",bulk_delete_title:"Удалить %{name} |||| Удалить %{smart_count} %{name} |||| Удалить %{smart_count} %{name}",bulk_update_content:"Вы уверены, что хотите обновить %{name}? |||| Вы уверены, что хотите обновить %{smart_count} объектов?",bulk_update_title:"Обновить %{name} |||| Обновить %{smart_count} %{name}",clear_array_input:"Вы уверены, что хотите очистить весь список?",delete_content:"Вы уверены что хотите удалить этот объект",delete_title:"Удалить %{name} #%{id}",details:"Описание",error:"В процессе запроса возникла ошибка, и он не может быть завершен",invalid_form:"Форма заполнена неверно, проверьте, пожалуйста, ошибки",loading:"Идет загрузка, пожалуйста, подождите...",no:"Нет",not_found:"Ошибка URL или вы следуете по неверной ссылке",yes:"Да",unsaved_changes:"Некоторые из ваших изменений не были сохранены. Вы уверены, что хотите их игнорировать?"},navigation:{no_results:"Результатов не найдено",no_more_results:"Страница %{page} выходит за пределы нумерации, попробуйте предыдущую",page_out_of_boundaries:"Страница %{page} вне границ",page_out_from_end:"Невозможно переместиться дальше последней страницы",page_out_from_begin:"Номер страницы не может быть меньше 1",page_range_info:"%{offsetBegin}-%{offsetEnd} из %{total}",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} из более %{offsetEnd}",current_page:"Страница %{page}",page:"На %{page} страницу",first:"На первую страницу",last:"На последнюю страницу",next:"Следующая",prev:"Предыдущая",previous:"Предыдущая",page_rows_per_page:"Строк на странице:",skip_nav:"Перейти к содержанию"},sort:{sort_by:"Сортировать по %{field} %{order}",ASC:"возрастанию",DESC:"убыванию"},auth:{auth_check_error:"Пожалуйста, авторизуйтесь для продолжения работы",user_menu:"Профиль",username:"Имя пользователя",password:"Пароль",sign_in:"Войти",sign_in_error:"Ошибка аутентификации, попробуйте снова",logout:"Выйти"},notification:{updated:"Элемент обновлен |||| %{smart_count} обновлено |||| %{smart_count} обновлено",created:"Элемент создан",deleted:"Элемент удален |||| %{smart_count} удалено |||| %{smart_count} удалено",bad_item:"Элемент не валиден",item_doesnt_exist:"Элемент не существует",http_error:"Ошибка сервера",data_provider_error:"Ошибка dataProvider, проверьте консоль",i18n_error:"Не удалось загрузить перевод для указанного языка",canceled:"Операция отменена",logged_out:"Ваша сессия завершена, попробуйте переподключиться/войти снова",not_authorized:"У вас нет доступа к этому ресурсу",application_update_available:"Имеется новая версия приложения."},validation:{required:"Обязательно для заполнения",minLength:"Минимальное кол-во символов %{min}",maxLength:"Максимальное кол-во символов %{max}",minValue:"Минимальное значение %{min}",maxValue:"Значение может быть %{max} или меньше",number:"Должно быть цифрой",email:"Некорректный email",oneOf:"Должно быть одним из: %{options}",regex:"Должно быть в формате (regexp): %{pattern}",unique:"Must be unique"},saved_queries:{label:"Сохраненные запросы",query_name:"Имя запроса",new_label:"Сохранить текущий запрос...",new_dialog_title:"Сохранить текущий запрос как",remove_label:"Удалить сохраненный запрос",remove_label_with_name:'Удалить запрос "%{name}"',remove_dialog_title:"Удалить сохраненный запрос?",remove_message:"Вы уверены, что хотите удалить этот запрос из списка сохраненных запросов?",help:"Отфильтровать список и сохранить запрос на будущее"},configurable:{customize:"Настроить",configureMode:"Настроить эту страницу",inspector:{title:"Инспектор",content:"Наведите на UI-элементы приложения, чтобы настроить",reset:"Сбросить настройки",hideAll:"Скрыть все",showAll:"Показать все"},Datagrid:{title:"Таблица данных",unlabeled:"Безымянный столбец #%{column}"},SimpleForm:{title:"Форма",unlabeled:"Безымянное поле ввода #%{input}"},SimpleList:{title:"Список",primaryText:"Первичный текст",secondaryText:"Вторичный текст",tertiaryText:"Третичный текст"}}}},E_e={...$2,ra:{...$2.ra,navigation:{...$2.ra.navigation,no_filtered_results:"Нет результатов",clear_filters:"Все фильтры сбросить"}},synapseadmin:{auth:{base_url:"Адрес домашнего сервера",welcome:"Добро пожаловать в Synapse-admin",server_version:"Версия Synapse",supports_specs:"поддерживает спецификации Matrix",username_error:"Пожалуйста, укажите полный ID пользователя: '@user:domain'",protocol_error:"Адрес должен начинаться с 'http://' или 'https://'",url_error:"Неверный адрес сервера Matrix",sso_sign_in:"Вход через SSO"},users:{invalid_user_id:"Локальная часть ID пользователя Matrix без адреса домашнего сервера.",tabs:{sso:"SSO"}},rooms:{details:"Данные комнаты",tabs:{basic:"Основные",members:"Участники",detail:"Подробности",permission:"Права доступа"}},reports:{tabs:{basic:"Основные",detail:"Подробности"}}},import_users:{error:{at_entry:"В записи %{entry}: %{message}",error:"Ошибка",required_field:"Отсутствует обязательное поле '%{field}'",invalid_value:"Неверное значение в строке %{row}. Поле '%{field}' может быть либо 'true', либо 'false'",unreasonably_big:"Отказано в загрузке слишком большого файла размером %{size} мегабайт",already_in_progress:"Импорт уже в процессе",id_exits:"ID %{id} уже существует"},title:"Импорт пользователей из CSV",goToPdf:"Перейти к PDF",cards:{importstats:{header:"Импорт пользователей",users_total:"%{smart_count} пользователь в CSV файле |||| %{smart_count} пользователя в CSV файле |||| %{smart_count} пользователей в CSV файле",guest_count:"%{smart_count} гость |||| %{smart_count} гостя |||| %{smart_count} гостей",admin_count:"%{smart_count} администратор |||| %{smart_count} администратора |||| %{smart_count} администраторов"},conflicts:{header:"Стратегия разрешения конфликтов",mode:{stop:"Остановка при конфликте",skip:"Показать ошибку и пропустить при конфликте"}},ids:{header:"Идентификаторы",all_ids_present:"Идентификаторы присутствуют в каждой записи",count_ids_present:"%{smart_count} запись с ID |||| %{smart_count} записи с ID |||| %{smart_count} записей с ID",mode:{ignore:"Игнорировать идентификаторы в CSV и создать новые",update:"Обновить существующие записи"}},passwords:{header:"Пароли",all_passwords_present:"Пароли присутствуют в каждой записи",count_passwords_present:"%{smart_count} запись с паролем |||| %{smart_count} записи с паролями |||| %{smart_count} записей с паролями",use_passwords:"Использовать пароли из CSV"},upload:{header:"Загрузить CSV файл",explanation:"Здесь вы можете загрузить файл со значениями, разделёнными запятыми, которые будут использованы для создания или обновления данных пользователей. В файле должны быть поля 'id' и 'displayname'. Вы можете скачать и изменить файл-образец отсюда: "},startImport:{simulate_only:"Только симулировать",run_import:"Импорт"},results:{header:"Результаты импорта",total:"%{smart_count} запись всего |||| %{smart_count} записи всего |||| %{smart_count} записей всего",successful:"%{smart_count} запись успешно импортирована |||| %{smart_count} записи успешно импортированы |||| %{smart_count} записей успешно импортированы",skipped:"%{smart_count} запись пропущена |||| %{smart_count} записи пропущены |||| %{smart_count} записей пропущено",download_skipped:"Скачать пропущенные записи",with_error:"%{smart_count} запись с ошибкой |||| %{smart_count} записи с ошибками |||| %{smart_count} записей с ошибками",simulated_only:"Импорт был симулирован"}}},delete_media:{name:"Файлы",fields:{before_ts:"Последнее обращение до",size_gt:"Более чем (в байтах)",keep_profiles:"Сохранить аватары"},action:{send:"Удалить файлы",send_success:"Запрос успешно отправлен.",send_failure:"Произошла ошибка."},helper:{send:"Это API удаляет локальные файлы с вашего собственного сервера, включая локальные миниатюры и копии скачанных файлов. Данный API не затрагивает файлы, загруженные во внешние хранилища."}},resources:{users:{name:"Пользователь |||| Пользователи",email:"Почта",msisdn:"Телефон",threepid:"Почта / Телефон",fields:{avatar:"Аватар",id:"ID пользователя",name:"Имя",is_guest:"Гость",admin:"Администратор сервера",locked:"Заблокирован",deactivated:"Деактивирован",erased:"Удалён",guests:"Показывать гостей",show_deactivated:"Показывать деактивированных",user_id:"Поиск пользователя",displayname:"Отображаемое имя",password:"Пароль",avatar_url:"Адрес аватары",avatar_src:"Аватар",medium:"Тип",threepids:"3PID'ы",address:"Адрес",creation_ts_ms:"Дата создания",consent_version:"Версия соглашения",auth_provider:"Провайдер",user_type:"Тип пользователя"},helper:{password:"Смена пароля завершит все сессии пользователя.",deactivate:"Вы должны предоставить пароль для реактивации учётной записи.",erase:"Пометить пользователя как удалённого в соответствии с GDPR"},action:{erase:"Удалить данные пользователя"}},rooms:{name:"Комната |||| Комнаты",fields:{room_id:"ID комнаты",name:"Название",canonical_alias:"Псевдоним",joined_members:"Участники",joined_local_members:"Локальные участники",joined_local_devices:"Локальные устройства",state_events:"События состояния / Сложность",version:"Версия",is_encrypted:"Зашифровано",encryption:"Шифрование",federatable:"Федерация",public:"Отображается в каталоге комнат",creator:"Создатель",join_rules:"Правила входа",guest_access:"Гостевой доступ",history_visibility:"Видимость истории",topic:"Тема",avatar:"Аватар"},helper:{forward_extremities:"Оконечности — это события-листья в конце ориентированного ациклического графа (DAG) в комнате, т.е. события без дочерних элементов. Чем больше их в комнате, тем больше Synapse работает над разрешением состояния (это дорогостоящая операция). Хотя Synapse старается не допускать существования слишком большого числа таких событий в комнате, из-за ошибок они иногда снова появляются. Если в комнате >10 оконечностей, стоит найти комнату-виновника и попробовать удалить их с помощью SQL-запросов из #1760."},enums:{join_rules:{public:"Для всех",knock:"Надо постучать",invite:"По приглашению",private:"Приватная"},guest_access:{can_join:"Гости могут войти",forbidden:"Гости не могут войти"},history_visibility:{invited:"С момента приглашения",joined:"С момента входа",shared:"С момента открытия доступа",world_readable:"Для всех"},unencrypted:"Без шифрования"},action:{erase:{title:"Удалить комнату",content:"Действительно удалить эту комнату? Это действие будет невозможно отменить. Все сообщения и файлы в комнате будут удалены с сервера!"}}},reports:{name:"Жалоба |||| Жалобы",fields:{id:"ID",received_ts:"Дата и время жалобы",user_id:"Автор жалобы",name:"Название комнаты",score:"Баллы",reason:"Причина",event_id:"ID события",event_json:{origin:"Исходнный сервер",origin_server_ts:"Дата и время отправки",type:"Тип события",content:{msgtype:"Тип содержимого",body:"Содержимое",format:"Формат",formatted_body:"Форматированное содержимое",algorithm:"Алгоритм",url:"Ссылка",info:{mimetype:"Тип"}}}},action:{erase:{title:"Удалить жалобу",content:"Действительно удалить жалобу? Это действие будет невозможно отменить."}}},connections:{name:"Подключения",fields:{last_seen:"Дата",ip:"IP адрес",user_agent:"Юзер-агент"}},devices:{name:"Устройство |||| Устройства",fields:{device_id:"ID устройства",display_name:"Название",last_seen_ts:"Дата и время",last_seen_ip:"IP адрес"},action:{erase:{title:"Удаление %{id}",content:'Действительно удалить устройство "%{name}"?',success:"Устройство успешно удалено.",failure:"Произошла ошибка."}}},users_media:{name:"Файлы",fields:{media_id:"ID файла",media_length:"Размер файла (в байтах)",media_type:"Тип",upload_name:"Имя файла",quarantined_by:"На карантине",safe_from_quarantine:"Защитить от карантина",created_ts:"Создано",last_access_ts:"Последний доступ"},action:{open:"Открыть файл в новом окне"}},protect_media:{action:{create:"Не защищён, установить защиту",delete:"Защищён, снять защиту",none:"На карантине",send_success:"Статус защиты успешно изменён.",send_failure:"Произошла ошибка."}},quarantine_media:{action:{name:"Карантин",create:"Поместить на карантин",delete:"На карантине, снять карантин",none:"Защищено от карантина",send_success:"Статус карантина успешно изменён.",send_failure:"Произошла ошибка."}},pushers:{name:"Пушер |||| Пушеры",fields:{app:"Приложение",app_display_name:"Название приложения",app_id:"ID приложения",device_display_name:"Название устройства",kind:"Вид",lang:"Язык",profile_tag:"Тег профиля",pushkey:"Ключ",data:{url:"URL"}}},servernotices:{name:"Серверные уведомления",send:"Отправить серверные уведомления",fields:{body:"Сообщение"},action:{send:"Отправить",send_success:"Серверное уведомление успешно отправлено.",send_failure:"Произошла ошибка."},helper:{send:'Отправить серверное уведомление выбранным пользователям. На сервере должна быть активна функция "Server Notices".'}},user_media_statistics:{name:"Файлы пользователей",fields:{media_count:"Количество файлов",media_length:"Размер файлов"}},forward_extremities:{name:"Оконечности",fields:{id:"ID события",received_ts:"Дата и время",depth:"Глубина",state_group:"Группа состояния"}},room_state:{name:"События состояния",fields:{type:"Тип",content:"Содержимое",origin_server_ts:"Дата отправки",sender:"Отправитель"}},room_directory:{name:"Каталог комнат",fields:{world_readable:"Гости могут просматривать без входа",guest_can_join:"Гости могут войти"},action:{title:"Удалить комнату из каталога |||| Удалить %{smart_count} комнаты из каталога |||| Удалить %{smart_count} комнат из каталога",content:"Действительно удалить комнату из каталога? |||| Действительно удалить %{smart_count} комнаты из каталога? |||| Действительно удалить %{smart_count} комнат из каталога?",erase:"Удалить из каталога комнат",create:"Опубликовать в каталоге комнат",send_success:"Комната успешно опубликована.",send_failure:"Произошла ошибка."}},destinations:{name:"Федерация",fields:{destination:"Назначение",failure_ts:"Дата и время ошибки",retry_last_ts:"Дата и время последней попытки",retry_interval:"Интервал между попытками",last_successful_stream_ordering:"Последний успешный поток",stream_ordering:"Поток"},action:{reconnect:"Переподключиться"}},registration_tokens:{name:"Токены регистрации",fields:{token:"Токен",valid:"Рабочий токен",uses_allowed:"Количество использований",pending:"Ожидает",completed:"Завершено",expiry_time:"Дата окончания",length:"Длина"},helper:{length:"Длина токена, если токен не задан."}}}};var l1={},i5;function O_e(){if(i5)return l1;i5=1,Object.defineProperty(l1,"__esModule",{value:!0});var e={ra:{action:{add:"增加",add_filter:"添加搜索条件",back:"回退",bulk_actions:"选中1项 |||| 选中%{smart_count}项",cancel:"取消",clear_array_input:"清空列表",clear_input_value:"清空输入",clone:"克隆",close:"关闭",close_menu:"关闭菜单",confirm:"确认",create:"新建",create_item:"新建 %{item}",delete:"删除",edit:"编辑",expand:"展开",export:"导出",list:"列表",move_down:"下移",move_up:"上移",open:"打开",open_menu:"打开菜单",refresh:"刷新",remove:"删除",remove_all_filters:"移除所有检索",remove_filter:"移除检索",save:"保存",search:"检索",select_all:"选择所有",select_columns:"列",select_row:"选择此行",show:"查看",sort:"排序",toggle_theme:"切换主题",undo:"撤销",unselect:"反选",update:"更新",update_application:"重载应用"},auth:{auth_check_error:"请登录以继续",user_menu:"设置",username:"用户名",password:"密码",sign_in:"登录",sign_in_error:"验证失败, 请重试",logout:"登出"},boolean:{true:"是",false:"否",null:""},configurable:{customize:"自定义",configureMode:"配置此页面",inspector:{title:"Inspector",content:"悬停应用程序UI元素来配置它们",reset:"重置设置",hideAll:"隐藏所有",showAll:"显示所有"},Datagrid:{title:"数据网格",unlabeled:"未设置标签的列 #%{column}"},SimpleForm:{title:"表单",unlabeled:"未设置标签的输入框 #%{input}"},SimpleList:{title:"列表",primaryText:"主要的文本",secondaryText:"二级文本",tertiaryText:"三级文本"}},input:{file:{upload_several:"将文件集合拖拽到这里, 或点击这里选择文件集合.",upload_single:"将文件拖拽到这里, 或点击这里选择文件."},image:{upload_several:"将图片文件集合拖拽到这里, 或点击这里选择图片文件集合.",upload_single:"将图片文件拖拽到这里, 或点击这里选择图片文件."},password:{toggle_visible:"隐藏密码",toggle_hidden:"显示密码"},references:{all_missing:"未找到参考数据.",many_missing:"至少有一条参考数据不再可用.",single_missing:"关联的参考数据不再可用."}},message:{about:"关于",are_you_sure:"您确定操作?",bulk_delete_content:"您确定要删除 %{name}? |||| 您确定要删除 %{smart_count} 项?",bulk_delete_title:"删除 %{name} |||| 删除 %{smart_count}项 %{name} ",delete_content:"您确定要删除该条目?",delete_title:"删除 %{name} #%{id}",error:"客户端错误导致请求未完成.",invalid_form:"表单输入无效. 请检查错误提示",loading:"正在加载页面, 请稍候",no:"否",not_found:"您输入了错误的URL或者错误的链接.",unsaved_changes:"修改未保存. 放弃修改吗?",yes:"是",auth_error:"身份认证出错",bulk_update_content:"是否确实要更新此 %{name}? |||| 是否确实要更新这些 %{smart_count} ?",bulk_update_title:"更新 %{name} |||| 更新 %{smart_count} %{name}",clear_array_input:"您确定要清除整个列表吗?",details:"详情"},navigation:{no_results:"结果为空",no_more_results:"页码 %{page} 超出边界. 试试上一页.",page_out_of_boundaries:"页码 %{page} 超出边界",page_out_from_end:"已到最末页",page_out_from_begin:"已到最前页",page_range_info:"%{offsetBegin}-%{offsetEnd} / %{total}",page_rows_per_page:"每页行数:",next:"向后",prev:"向前",skip_nav:"跳到内容",partial_page_range_info:"%{offsetBegin}-%{offsetEnd} of more than %{offsetEnd}",current_page:"页码 %{page}",page:"跳到页码 %{page}",first:"第一页",last:"最后一页",previous:"向前"},notification:{updated:"条目已更新 |||| %{smart_count} 项条目已更新",created:"条目已新建",deleted:"条目已删除 |||| %{smart_count} 项条目已删除",bad_item:"不正确的条目",item_doesnt_exist:"条目不存在",http_error:"与服务通信出错",canceled:"取消动作",data_provider_error:"dataProvider错误. 请检查console的详细信息.",i18n_error:"无法加载指定语言包",logged_out:"会话失效, 请重连.",not_authorized:"你没有权限访问此资源.",application_update_available:"新版本可用."},page:{create:"新建 %{name}",dashboard:"概览",edit:"%{name} #%{id}",empty:"无 %{name} ",error:"出现错误",invite:"要增加吗?",list:"%{name} 列表",loading:"加载中",not_found:"未发现",show:"%{name} #%{id}"},saved_queries:{label:"保存查询",query_name:"查询名称",new_label:"保存当前查询...",new_dialog_title:"保存当前查询为",remove_label:"删除保存的查询",remove_label_with_name:'删除查询 "%{name}"',remove_dialog_title:"删除保存的查询?",remove_message:"确定要从保存的查询列表中删除该项吗?",help:"过滤列表,并保存此查询"},sort:{sort_by:"按 %{field} %{order}",ASC:"升序",DESC:"降序"},validation:{required:"必填",minLength:"必须不少于 %{min} 个字符",maxLength:"必须不多于 %{max} 个字符",minValue:"必须不小于 %{min}",maxValue:"必须不大于 %{max}",number:"必须为数字",email:"必须是有效的邮箱",oneOf:"必须为: %{options}其中一项",regex:"必须符合指定的格式 (regexp): %{pattern}"}}};return l1.default=e,l1}var P_e=O_e();const D2=Nn(P_e),R_e={...D2,ra:{...D2.ra,navigation:{...D2.ra.navigation,no_filtered_results:"没有结果",clear_filters:"清除所有过滤器"}},synapseadmin:{auth:{base_url:"服务器 URL",welcome:"欢迎来到 Synapse-admin",server_version:"Synapse 版本",username_error:"请输入完整有效的用户 ID: '@user:domain'",protocol_error:"URL 需要以'http://'或'https://'作为起始",url_error:"不是一个有效的 Matrix 服务器地址",sso_sign_in:"使用 SSO 登录"},users:{invalid_user_id:"必须要是一个有效的 Matrix 用户 ID ,例如 @user_id:homeserver",tabs:{sso:"SSO"}},rooms:{tabs:{basic:"基本",members:"成员",detail:"细节",permission:"权限"}},reports:{tabs:{basic:"基本",detail:"细节"}}},import_users:{error:{at_entry:"在条目 %{entry}: %{message}",error:"错误",required_field:"需要的值 '%{field}' 未被设置。",invalid_value:"第 %{row} 行出现无效值。 '%{field}' 只可以是 'true' 或 'false'。",unreasonably_big:"拒绝加载过大的文件: %{size} MB",already_in_progress:"一个导入进程已经在运行中",id_exits:"ID %{id} 已经存在"},title:"通过 CSV 导入用户",goToPdf:"转到 PDF",cards:{importstats:{header:"导入用户",users_total:"%{smart_count} 用户在 CSV 文件中 |||| %{smart_count} 用户在 CSV 文件中",guest_count:"%{smart_count} 访客 |||| %{smart_count} 访客",admin_count:"%{smart_count} 管理员 |||| %{smart_count} 管理员"},conflicts:{header:"冲突处理策略",mode:{stop:"在冲突处停止",skip:"显示错误并跳过冲突"}},ids:{header:"IDs",all_ids_present:"每条记录的 ID",count_ids_present:"%{smart_count} 个含 ID 的记录 |||| %{smart_count} 个含 ID 的记录",mode:{ignore:"忽略 CSV 中的 ID 并创建新的",update:"更新已经存在的记录"}},passwords:{header:"密码",all_passwords_present:"每条记录的密码",count_passwords_present:"%{smart_count} 个含密码的记录 |||| %{smart_count} 个含密码的记录",use_passwords:"使用 CSV 中标记的密码"},upload:{header:"导入 CSV 文件",explanation:"在这里,你可以上传一个用逗号分隔的文件,用于创建或更新用户。该文件必须包括 'id' 和 'displayname' 字段。你可以在这里下载并修改一个示例文件:"},startImport:{simulate_only:"模拟模式",run_import:"导入"},results:{header:"导入结果",total:"共计 %{smart_count} 条记录 |||| 共计 %{smart_count} 条记录",successful:"%{smart_count} 条记录导入成功",skipped:"跳过 %{smart_count} 条记录",download_skipped:"下载跳过的记录",with_error:"%{smart_count} 条记录出现错误 ||| %{smart_count} 条记录出现错误",simulated_only:"只是一次模拟运行"}}},delete_media:{name:"媒体文件",fields:{before_ts:"最后访问时间",size_gt:"大于 (字节)",keep_profiles:"保留头像"},action:{send:"删除媒体",send_success:"请求发送成功。",send_failure:"出现了一个错误。"},helper:{send:"这个API会删除您硬盘上的本地媒体。包含了任何的本地缓存和下载的媒体备份。这个API不会影响上传到外部媒体存储库上的媒体文件。"}},resources:{users:{name:"用户",email:"邮箱",msisdn:"电话",threepid:"邮箱 / 电话",fields:{avatar:"邮箱",id:"用户 ID",name:"用户名",is_guest:"访客",admin:"服务器管理员",deactivated:"被禁用",guests:"显示访客",show_deactivated:"显示被禁用的账户",user_id:"搜索用户",displayname:"显示名字",password:"密码",avatar_url:"头像 URL",avatar_src:"头像",medium:"Medium",threepids:"3PIDs",address:"地址",creation_ts_ms:"创建时间戳",consent_version:"协议版本"},helper:{deactivate:"您必须提供一串密码来激活账户。",erase:"将用户标记为根据 GDPR 的要求抹除了"},action:{erase:"抹除用户信息"}},rooms:{name:"房间",fields:{room_id:"房间 ID",name:"房间名",canonical_alias:"别名",joined_members:"成员",joined_local_members:"本地成员",state_events:"状态事件",version:"版本",is_encrypted:"已经加密",encryption:"加密",federatable:"可联合的",public:"公开",creator:"创建者",join_rules:"加入规则",guest_access:"访客访问",history_visibility:"历史可见性"},enums:{join_rules:{public:"公开",knock:"申请",invite:"邀请",private:"私有"},guest_access:{can_join:"访客可以加入",forbidden:"访客不可加入"},history_visibility:{invited:"自从被邀请",joined:"自从加入",shared:"自从分享",world_readable:"任何人"},unencrypted:"未加密"}},reports:{name:"报告事件",fields:{id:"ID",received_ts:"报告时间",user_id:"报告者",name:"房间名",score:"分数",reason:"原因",event_id:"事件 ID",event_json:{origin:"原始服务器",origin_server_ts:"发送时间",type:"事件类型",content:{msgtype:"内容类型",body:"内容",format:"格式",formatted_body:"格式化的数据",algorithm:"算法"}}}},connections:{name:"连接",fields:{last_seen:"日期",ip:"IP 地址",user_agent:"用户代理 (UA)"}},devices:{name:"设备",fields:{device_id:"设备 ID",display_name:"设备名",last_seen_ts:"时间戳",last_seen_ip:"IP 地址"},action:{erase:{title:"移除 %{id}",content:'您确定要移除设备 "%{name}"?',success:"设备移除成功。",failure:"出现了一个错误。"}}},users_media:{name:"媒体文件",fields:{media_id:"媒体文件 ID",media_length:"长度",media_type:"类型",upload_name:"文件名",quarantined_by:"被隔离",safe_from_quarantine:"取消隔离",created_ts:"创建",last_access_ts:"上一次访问"}},pushers:{name:"发布者",fields:{app:"App",app_display_name:"App 名称",app_id:"App ID",device_display_name:"设备显示名",kind:"类型",lang:"语言",profile_tag:"数据标签",pushkey:"Pushkey",data:{url:"URL"}}},servernotices:{name:"服务器提示",send:"发送服务器提示",fields:{body:"信息"},action:{send:"发送提示",send_success:"服务器提示发送成功。",send_failure:"出现了一个错误。"},helper:{send:'向选中的用户发送服务器提示。服务器配置中的 "服务器提示(Server Notices)" 选项需要被设置为启用。'}},user_media_statistics:{name:"用户的媒体文件",fields:{media_count:"媒体文件统计",media_length:"媒体文件长度"}}}},s8=p.createContext({}),k_e=()=>p.useContext(s8),T_e=ve(Mo)(({theme:e})=>({display:"flex",flexDirection:"column",minHeight:"calc(100vh - 1rem)",alignItems:"center",justifyContent:"flex-start",background:"url(./images/floating-cogs.svg)",backgroundColor:"#f9f9f9",backgroundRepeat:"no-repeat",backgroundSize:"cover","& .card":{width:"30rem",marginTop:"6rem",marginBottom:"6rem"},"& .avatar":{margin:"1rem",display:"flex",justifyContent:"center"},"& .icon":{backgroundColor:e.palette.grey[500]},"& .hint":{marginTop:"1em",marginBottom:"1em",display:"flex",justifyContent:"center",color:e.palette.grey[600]},"& .form":{padding:"0 1rem 1rem 1rem"},"& .select":{marginBottom:"2rem"},"& .actions":{padding:"0 1rem 1rem 1rem"},"& .serverVersion":{color:e.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",marginLeft:"0.5rem"},"& .matrixVersions":{color:e.palette.grey[500],fontFamily:"Roboto, Helvetica, Arial, sans-serif",fontSize:"0.8rem",marginBottom:"1rem",marginLeft:"0.5rem"}})),A_e=()=>{const e=z6(),t=Ur(),{restrictBaseUrl:r}=k_e(),n=typeof r=="string",a=Array.isArray(r),o=!(n||a),[i,u]=p.useState(!1),[d,l]=p.useState(!0),[h,v]=QA(),y=XA(),b=nt(),_=n?r:vr.getItem("base_url"),[w,S]=p.useState(""),A=/\?loginToken=([a-zA-Z0-9_-]+)/.exec(window.location.href);if(A){const E=A[1];console.log("SSO token is",E),window.history.replaceState({},"",window.location.href.replace(A[0],"#").split("#")[0]);const L=vr.getItem("sso_base_url");if(vr.removeItem("sso_base_url"),L){const j={base_url:L,username:null,password:null,loginToken:E};console.log("Base URL is:",L),console.log("SSO Token is:",E),console.log("Let's try token login..."),e(j).catch(M=>{alert(typeof M=="string"?M:typeof M>"u"||!M.message?"ra.auth.sign_in_error":M.message),console.error(M)})}}const R=E=>E.match(/^(http|https):\/\//)?E.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/)?void 0:b("synapseadmin.auth.url_error"):b("synapseadmin.auth.protocol_error"),C=E=>{u(!0),e(E).catch(L=>{u(!1),t(typeof L=="string"?L:typeof L>"u"||!L.message?"ra.auth.sign_in_error":L.message,{type:"warning"})})},O=()=>{vr.setItem("sso_base_url",w);const E=`${w}/_matrix/client/r0/login/sso/redirect?redirectUrl=${encodeURIComponent(window.location.href)}`;window.location.href=E},T=({formData:E})=>{const L=ks(),[j,M]=p.useState(""),[k,$]=p.useState(""),B=()=>{var U;if(E.base_url||n)return;const z=(U=o_e(E.username))==null?void 0:U.domain;z&&s_e(z).then(W=>{(o||a&&r.includes(W))&&L.setValue("base_url",W)})};return p.useEffect(()=>{E.base_url===""&&a&&L.setValue("base_url",r[0]),i_e(E.base_url)&&(l_e(E.base_url).then(z=>M(`${b("synapseadmin.auth.server_version")} ${z}`)).catch(()=>M("")),u_e(E.base_url).then(z=>$(`${b("synapseadmin.auth.supports_specs")} ${z.versions.join(", ")}`)).catch(()=>$("")),c_e(E.base_url).then(z=>{const U=z.find(Q=>Q.type==="m.login.password")!==void 0,W=z.find(Q=>Q.type==="m.login.sso")!==void 0;l(U),S(W?E.base_url:"")}).catch(()=>S("")))},[E.base_url,L]),I.jsxs(I.Fragment,{children:[I.jsx(Mo,{children:I.jsx(oa,{autoFocus:!0,source:"username",label:"ra.auth.username",autoComplete:"username",disabled:i||!d,onBlur:B,resettable:!0,validate:si()})}),I.jsx(Mo,{children:I.jsx(vS,{source:"password",label:"ra.auth.password",type:"password",autoComplete:"current-password",disabled:i||!d,resettable:!0,validate:si()})}),I.jsx(Mo,{children:I.jsx(oa,{source:"base_url",label:"synapseadmin.auth.base_url",select:a,autoComplete:"url",disabled:i,readOnly:n,resettable:o,validate:[si(),R],children:a&&r.map(z=>I.jsx(oi,{value:z,children:z},z))})}),I.jsx(Qt,{className:"serverVersion",children:j}),I.jsx(Qt,{className:"matrixVersions",children:k})]})};return I.jsxs(Px,{defaultValues:{base_url:_},onSubmit:C,mode:"onTouched",children:[I.jsx(T_e,{children:I.jsxs(pp,{className:"card",children:[I.jsx(Mo,{className:"avatar",children:i?I.jsx(xd,{size:25,thickness:2}):I.jsx(hb,{className:"icon",children:I.jsx(l0,{})})}),I.jsx(Mo,{className:"hint",children:b("synapseadmin.auth.welcome")}),I.jsxs(Mo,{className:"form",children:[I.jsx(oS,{value:h,onChange:E=>v(E.target.value),fullWidth:!0,disabled:i,className:"select",children:y.map(E=>I.jsx(oi,{value:E.locale,children:E.name},E.locale))}),I.jsx(_k,{children:E=>I.jsx(T,{...E})}),I.jsxs(tU,{className:"actions",children:[I.jsx(Dn,{variant:"contained",type:"submit",color:"primary",disabled:i||!d,fullWidth:!0,children:b("ra.auth.sign_in")}),I.jsx(Dn,{variant:"contained",color:"secondary",onClick:O,disabled:i||w==="",fullWidth:!0,children:b("synapseadmin.auth.sso_sign_in")})]})]})]})}),I.jsx(ZU,{})]})},I_e=ot(I.jsx("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"})),j_e=ot(I.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h.71C7.37 7.69 9.48 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3"})),xv=ot(I.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2z"})),Ua={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},Ej=e=>new Date(e).getTime(),M_e=e=>{if(e==null)return"";const t=new Date(e),r="00",n=t.getFullYear().toString(),a=(r+(t.getMonth()+1).toString()).slice(-2),o=(r+t.getDate().toString()).slice(-2),i=(r+t.getHours().toString()).slice(-2),u=(r+t.getMinutes().toString()).slice(-2);return`${n}-${a}-${o}T${i}:${u}`},l8=()=>I.jsx(hp,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),F_e=[I.jsx(gS,{source:"destination",alwaysOn:!0})],u8=()=>{const e=gr(),t=jl(),r=Ur(),[n,{isLoading:a}]=Wb();if(!e||!e.failure_ts)return null;const o=i=>{i.stopPropagation(),n("destinations",{id:e.id},{onSuccess:()=>{r("ra.notification.updated",{messageArgs:{smart_count:1}}),t()},onError:()=>{r("ra.message.error",{type:"error"})}})};return I.jsx(Ir,{label:"resources.destinations.action.reconnect",onClick:o,disabled:a,children:I.jsx(I_e,{})})},L_e=()=>I.jsx(Qi,{children:I.jsx(u8,{})}),$_e=()=>{const e=gr(),t=nt();return I.jsxs("span",{children:[t("resources.destinations.name",1)," ",e==null?void 0:e.destination]})},D_e=e=>{const t=gr(e);return e.source&&Ab.get(t,e.source)===0?I.jsx(wa,{...e,record:{...t,[e.source]:null}}):I.jsx(wa,{...e})},N_e=e=>{const{palette:{error:t,mode:r}}=fo(),n=a=>({backgroundColor:a.retry_last_ts>0?_d(t[r],.5):void 0,"& > td":r==="dark"?{color:a.retry_last_ts>0?"black":"white","& > button":{color:Of[700]}}:void 0});return I.jsx(vp,{...e,filters:F_e,pagination:I.jsx(l8,{}),sort:{field:"destination",order:"ASC"},children:I.jsxs(qa,{rowSx:n,rowClick:a=>`${a}/show/rooms`,bulkActionButtons:!1,children:[I.jsx(st,{source:"destination"}),I.jsx(wa,{source:"failure_ts",showTime:!0,options:Ua}),I.jsx(D_e,{source:"retry_last_ts",showTime:!0,options:Ua}),I.jsx(st,{source:"retry_interval"}),I.jsx(st,{source:"last_successful_stream_ordering"}),I.jsx(u8,{})]})})},B_e=e=>{const t=nt();return I.jsx(xj,{actions:I.jsx(L_e,{}),title:I.jsx($_e,{}),...e,children:I.jsxs(yS,{children:[I.jsxs(Ss,{label:"status",icon:I.jsx(bv,{}),children:[I.jsx(st,{source:"destination"}),I.jsx(wa,{source:"failure_ts",showTime:!0,options:Ua}),I.jsx(wa,{source:"retry_last_ts",showTime:!0,options:Ua}),I.jsx(st,{source:"retry_interval"}),I.jsx(st,{source:"last_successful_stream_ordering"})]}),I.jsx(Ss,{label:t("resources.rooms.name",{smart_count:2}),icon:I.jsx(xv,{}),path:"rooms",children:I.jsx(rd,{reference:"destination_rooms",target:"destination",label:!1,pagination:I.jsx(l8,{}),perPage:50,children:I.jsxs(qa,{style:{width:"100%"},rowClick:r=>`/rooms/${r}/show`,children:[I.jsx(st,{source:"room_id",label:"resources.rooms.fields.room_id"}),I.jsx(st,{source:"stream_ordering",sortable:!1}),I.jsx(Tu,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:I.jsx(st,{source:"name",sortable:!1})})]})})})]})})},z_e={name:"destinations",icon:j_e,list:N_e,show:B_e},q_e=ot(I.jsx("path",{d:"M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2m-9 7.5h-2v-2h2zm0-4.5h-2v-2h2zm0-4.5h-2v-2h2z"})),U_e=[pI(/^[A-Za-z0-9._~-]{0,64}$/)],c8=[C6()],V_e=[C6(),vee(64)],W_e=[I.jsx(xl,{source:"valid",alwaysOn:!0})],H_e=e=>I.jsx(vp,{...e,filters:W_e,filterDefaultValues:{valid:!0},pagination:!1,perPage:500,children:I.jsxs(qa,{rowClick:"edit",children:[I.jsx(st,{source:"token",sortable:!1}),I.jsx(Ol,{source:"uses_allowed",sortable:!1}),I.jsx(Ol,{source:"pending",sortable:!1}),I.jsx(Ol,{source:"completed",sortable:!1}),I.jsx(wa,{source:"expiry_time",showTime:!0,options:Ua,sortable:!1})]})}),K_e=e=>I.jsx(H9,{...e,redirect:"list",children:I.jsxs(f0,{toolbar:I.jsx(d0,{children:I.jsx(fS,{alwaysEnable:!0})}),children:[I.jsx(oa,{source:"token",autoComplete:"off",validate:U_e,resettable:!0}),I.jsx(pm,{source:"length",validate:V_e,helperText:"resources.registration_tokens.helper.length",step:1}),I.jsx(pm,{source:"uses_allowed",validate:c8,step:1}),I.jsx(bj,{source:"expiry_time",parse:Ej})]})}),G_e=e=>I.jsx(K9,{...e,children:I.jsxs(f0,{children:[I.jsx(oa,{source:"token",disabled:!0}),I.jsx(pm,{source:"pending",disabled:!0}),I.jsx(pm,{source:"completed",disabled:!0}),I.jsx(pm,{source:"uses_allowed",validate:c8,step:1}),I.jsx(bj,{source:"expiry_time",parse:Ej,format:M_e})]})}),Q_e={name:"registration_tokens",icon:q_e,list:H_e,edit:G_e,create:K_e},d8=ot(I.jsx("path",{d:"M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-3.21 14.21-2.91-2.91c-.69.44-1.51.7-2.39.7C9.01 16 7 13.99 7 11.5S9.01 7 11.5 7 16 9.01 16 11.5c0 .88-.26 1.69-.7 2.39l2.91 2.9z"})),X_e=ot(I.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"})),s5=ot(I.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"})),f8=ot(I.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"})),p8=ot(I.jsx("path",{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3zM14 5h-3l-1-1H6L5 5H2v2h12z"})),Y_e=ot(I.jsx("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H15v-8h5V8zm-1 7V3.5L18.5 9zm4 12.66V16h5.66v2h-2.24l2.95 2.95-1.41 1.41L19 19.41v2.24h-2z"})),J_e=ot(I.jsx("path",{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12z"}));var p0=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},bS=typeof window>"u"||"Deno"in globalThis;function Fi(){}function Z_e(e,t){return typeof e=="function"?e(t):e}function e1e(e){return typeof e=="number"&&e>=0&&e!==1/0}function t1e(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l5(e,t){return typeof e=="function"?e(t):e}function r1e(e,t){return typeof e=="function"?e(t):e}function u5(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:u}=e;if(i){if(n){if(t.queryHash!==Oj(i,t.options))return!1}else if(!Cb(t.queryKey,i))return!1}if(r!=="all"){const d=t.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||o&&!o(t))}function c5(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(up(t.options.mutationKey)!==up(o))return!1}else if(!Cb(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function Oj(e,t){return((t==null?void 0:t.queryKeyHashFn)||up)(e)}function up(e){return JSON.stringify(e,(t,r)=>uA(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function Cb(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Cb(e[r],t[r])):!1}function h8(e,t){if(e===t)return e;const r=d5(e)&&d5(t);if(r||uA(e)&&uA(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,u=r?[]:{};let d=0;for(let l=0;l<i;l++){const h=r?l:o[l];(!r&&n.includes(h)||r)&&e[h]===void 0&&t[h]===void 0?(u[h]=void 0,d++):(u[h]=h8(e[h],t[h]),u[h]===e[h]&&e[h]!==void 0&&d++)}return a===i&&d===a?e:u}return t}function n1e(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function d5(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function uA(e){if(!f5(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!f5(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function f5(e){return Object.prototype.toString.call(e)==="[object Object]"}function a1e(e){return new Promise(t=>{setTimeout(t,e)})}function o1e(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?h8(e,t):t}function i1e(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function s1e(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Pj=Symbol();function m8(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Pj?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function l1e(e,t){return typeof e=="function"?e(...t):!!e}var Xf,Hc,Mm,R5,u1e=(R5=class extends p0{constructor(){super();rt(this,Xf);rt(this,Hc);rt(this,Mm);He(this,Mm,t=>{if(!bS&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){Y(this,Hc)||this.setEventListener(Y(this,Mm))}onUnsubscribe(){var t;this.hasListeners()||((t=Y(this,Hc))==null||t.call(this),He(this,Hc,void 0))}setEventListener(t){var r;He(this,Mm,t),(r=Y(this,Hc))==null||r.call(this),He(this,Hc,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){Y(this,Xf)!==t&&(He(this,Xf,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof Y(this,Xf)=="boolean"?Y(this,Xf):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Xf=new WeakMap,Hc=new WeakMap,Mm=new WeakMap,R5),v8=new u1e,Fm,Kc,Lm,k5,c1e=(k5=class extends p0{constructor(){super();rt(this,Fm,!0);rt(this,Kc);rt(this,Lm);He(this,Lm,t=>{if(!bS&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){Y(this,Kc)||this.setEventListener(Y(this,Lm))}onUnsubscribe(){var t;this.hasListeners()||((t=Y(this,Kc))==null||t.call(this),He(this,Kc,void 0))}setEventListener(t){var r;He(this,Lm,t),(r=Y(this,Kc))==null||r.call(this),He(this,Kc,t(this.setOnline.bind(this)))}setOnline(t){Y(this,Fm)!==t&&(He(this,Fm,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return Y(this,Fm)}},Fm=new WeakMap,Kc=new WeakMap,Lm=new WeakMap,k5),Zw=new c1e;function d1e(){let e,t;const r=new Promise((a,o)=>{e=a,t=o});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}function f1e(e){return Math.min(1e3*2**e,3e4)}function g8(e){return(e??"online")==="online"?Zw.isOnline():!0}var y8=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function N2(e){return e instanceof y8}function b8(e){let t=!1,r=0,n=!1,a;const o=d1e(),i=w=>{var S;n||(y(new y8(w)),(S=e.abort)==null||S.call(e))},u=()=>{t=!0},d=()=>{t=!1},l=()=>v8.isFocused()&&(e.networkMode==="always"||Zw.isOnline())&&e.canRun(),h=()=>g8(e.networkMode)&&e.canRun(),v=w=>{var S;n||(n=!0,(S=e.onSuccess)==null||S.call(e,w),a==null||a(),o.resolve(w))},y=w=>{var S;n||(n=!0,(S=e.onError)==null||S.call(e,w),a==null||a(),o.reject(w))},b=()=>new Promise(w=>{var S;a=A=>{(n||l())&&w(A)},(S=e.onPause)==null||S.call(e)}).then(()=>{var w;a=void 0,n||(w=e.onContinue)==null||w.call(e)}),_=()=>{if(n)return;let w;const S=r===0?e.initialPromise:void 0;try{w=S??e.fn()}catch(A){w=Promise.reject(A)}Promise.resolve(w).then(v).catch(A=>{var E;if(n)return;const R=e.retry??(bS?0:3),C=e.retryDelay??f1e,O=typeof C=="function"?C(r,A):C,T=R===!0||typeof R=="number"&&r<R||typeof R=="function"&&R(r,A);if(t||!T){y(A);return}r++,(E=e.onFail)==null||E.call(e,r,A),a1e(O).then(()=>l()?void 0:b()).then(()=>{t?y(A):_()})})};return{promise:o,cancel:i,continue:()=>(a==null||a(),o),cancelRetry:u,continueRetry:d,canStart:h,start:()=>(h()?_():b().then(_),o)}}var p1e=e=>setTimeout(e,0);function h1e(){let e=[],t=0,r=u=>{u()},n=u=>{u()},a=p1e;const o=u=>{t?e.push(u):a(()=>{r(u)})},i=()=>{const u=e;e=[],u.length&&a(()=>{n(()=>{u.forEach(d=>{r(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||i()}return d},batchCalls:u=>(...d)=>{o(()=>{u(...d)})},schedule:o,setNotifyFunction:u=>{r=u},setBatchNotifyFunction:u=>{n=u},setScheduler:u=>{a=u}}}var _a=h1e(),Yf,T5,_8=(T5=class{constructor(){rt(this,Yf)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),e1e(this.gcTime)&&He(this,Yf,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bS?1/0:5*60*1e3))}clearGcTimeout(){Y(this,Yf)&&(clearTimeout(Y(this,Yf)),He(this,Yf,void 0))}},Yf=new WeakMap,T5),$m,Dm,ji,Jf,Ba,kb,Zf,bs,gu,A5,m1e=(A5=class extends _8{constructor(t){super();rt(this,bs);rt(this,$m);rt(this,Dm);rt(this,ji);rt(this,Jf);rt(this,Ba);rt(this,kb);rt(this,Zf);He(this,Zf,!1),He(this,kb,t.defaultOptions),this.setOptions(t.options),this.observers=[],He(this,Jf,t.client),He(this,ji,Y(this,Jf).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,He(this,$m,g1e(this.options)),this.state=t.state??Y(this,$m),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Y(this,Ba))==null?void 0:t.promise}setOptions(t){this.options={...Y(this,kb),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Y(this,ji).remove(this)}setData(t,r){const n=o1e(this.state.data,t,this.options);return jt(this,bs,gu).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){jt(this,bs,gu).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,a;const r=(n=Y(this,Ba))==null?void 0:n.promise;return(a=Y(this,Ba))==null||a.cancel(t),r?r.then(Fi).catch(Fi):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Y(this,$m))}isActive(){return this.observers.some(t=>r1e(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Pj||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!t1e(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=Y(this,Ba))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=Y(this,Ba))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Y(this,ji).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(Y(this,Ba)&&(Y(this,Zf)?Y(this,Ba).cancel({revert:!0}):Y(this,Ba).cancelRetry()),this.scheduleGc()),Y(this,ji).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||jt(this,bs,gu).call(this,{type:"invalidate"})}fetch(t,r){var d,l,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(Y(this,Ba))return Y(this,Ba).continueRetry(),Y(this,Ba).promise}if(t&&this.setOptions(t),!this.options.queryFn){const v=this.observers.find(y=>y.options.queryFn);v&&this.setOptions(v.options)}const n=new AbortController,a=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(He(this,Zf,!0),n.signal)})},o=()=>{const v=m8(this.options,r),y={client:Y(this,Jf),queryKey:this.queryKey,meta:this.meta};return a(y),He(this,Zf,!1),this.options.persister?this.options.persister(v,y,this):v(y)},i={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:Y(this,Jf),state:this.state,fetchFn:o};a(i),(d=this.options.behavior)==null||d.onFetch(i,this),He(this,Dm,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=i.fetchOptions)==null?void 0:l.meta))&&jt(this,bs,gu).call(this,{type:"fetch",meta:(h=i.fetchOptions)==null?void 0:h.meta});const u=v=>{var y,b,_,w;N2(v)&&v.silent||jt(this,bs,gu).call(this,{type:"error",error:v}),N2(v)||((b=(y=Y(this,ji).config).onError)==null||b.call(y,v,this),(w=(_=Y(this,ji).config).onSettled)==null||w.call(_,this.state.data,v,this)),this.scheduleGc()};return He(this,Ba,b8({initialPromise:r==null?void 0:r.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:v=>{var y,b,_,w;if(v===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(v)}catch(S){u(S);return}(b=(y=Y(this,ji).config).onSuccess)==null||b.call(y,v,this),(w=(_=Y(this,ji).config).onSettled)==null||w.call(_,v,this.state.error,this),this.scheduleGc()},onError:u,onFail:(v,y)=>{jt(this,bs,gu).call(this,{type:"failed",failureCount:v,error:y})},onPause:()=>{jt(this,bs,gu).call(this,{type:"pause"})},onContinue:()=>{jt(this,bs,gu).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),Y(this,Ba).start()}},$m=new WeakMap,Dm=new WeakMap,ji=new WeakMap,Jf=new WeakMap,Ba=new WeakMap,kb=new WeakMap,Zf=new WeakMap,bs=new WeakSet,gu=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...v1e(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return N2(a)&&a.revert&&Y(this,Dm)?{...Y(this,Dm),fetchStatus:"idle"}:{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),_a.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),Y(this,ji).notify({query:this,type:"updated",action:t})})},A5);function v1e(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:g8(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function g1e(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var pl,I5,y1e=(I5=class extends p0{constructor(t={}){super();rt(this,pl);this.config=t,He(this,pl,new Map)}build(t,r,n){const a=r.queryKey,o=r.queryHash??Oj(a,r);let i=this.get(o);return i||(i=new m1e({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){Y(this,pl).has(t.queryHash)||(Y(this,pl).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=Y(this,pl).get(t.queryHash);r&&(t.destroy(),r===t&&Y(this,pl).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){_a.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Y(this,pl).get(t)}getAll(){return[...Y(this,pl).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>u5(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>u5(t,n)):r}notify(t){_a.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){_a.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){_a.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},pl=new WeakMap,I5),hl,oo,ep,ml,kc,j5,b1e=(j5=class extends _8{constructor(t){super();rt(this,ml);rt(this,hl);rt(this,oo);rt(this,ep);this.mutationId=t.mutationId,He(this,oo,t.mutationCache),He(this,hl,[]),this.state=t.state||w8(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Y(this,hl).includes(t)||(Y(this,hl).push(t),this.clearGcTimeout(),Y(this,oo).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){He(this,hl,Y(this,hl).filter(r=>r!==t)),this.scheduleGc(),Y(this,oo).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Y(this,hl).length||(this.state.status==="pending"?this.scheduleGc():Y(this,oo).remove(this))}continue(){var t;return((t=Y(this,ep))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,u,d,l,h,v,y,b,_,w,S,A,R,C,O,T,E,L,j;const r=()=>{jt(this,ml,kc).call(this,{type:"continue"})};He(this,ep,b8({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(M,k)=>{jt(this,ml,kc).call(this,{type:"failed",failureCount:M,error:k})},onPause:()=>{jt(this,ml,kc).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Y(this,oo).canRun(this)}));const n=this.state.status==="pending",a=!Y(this,ep).canStart();try{if(n)r();else{jt(this,ml,kc).call(this,{type:"pending",variables:t,isPaused:a}),await((i=(o=Y(this,oo).config).onMutate)==null?void 0:i.call(o,t,this));const k=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,t));k!==this.state.context&&jt(this,ml,kc).call(this,{type:"pending",context:k,variables:t,isPaused:a})}const M=await Y(this,ep).start();return await((h=(l=Y(this,oo).config).onSuccess)==null?void 0:h.call(l,M,t,this.state.context,this)),await((y=(v=this.options).onSuccess)==null?void 0:y.call(v,M,t,this.state.context)),await((_=(b=Y(this,oo).config).onSettled)==null?void 0:_.call(b,M,null,this.state.variables,this.state.context,this)),await((S=(w=this.options).onSettled)==null?void 0:S.call(w,M,null,t,this.state.context)),jt(this,ml,kc).call(this,{type:"success",data:M}),M}catch(M){try{throw await((R=(A=Y(this,oo).config).onError)==null?void 0:R.call(A,M,t,this.state.context,this)),await((O=(C=this.options).onError)==null?void 0:O.call(C,M,t,this.state.context)),await((E=(T=Y(this,oo).config).onSettled)==null?void 0:E.call(T,void 0,M,this.state.variables,this.state.context,this)),await((j=(L=this.options).onSettled)==null?void 0:j.call(L,void 0,M,t,this.state.context)),M}finally{jt(this,ml,kc).call(this,{type:"error",error:M})}}finally{Y(this,oo).runNext(this)}}},hl=new WeakMap,oo=new WeakMap,ep=new WeakMap,ml=new WeakSet,kc=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),_a.batch(()=>{Y(this,hl).forEach(n=>{n.onMutationUpdate(t)}),Y(this,oo).notify({mutation:this,type:"updated",action:t})})},j5);function w8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Su,_s,Tb,M5,_1e=(M5=class extends p0{constructor(t={}){super();rt(this,Su);rt(this,_s);rt(this,Tb);this.config=t,He(this,Su,new Set),He(this,_s,new Map),He(this,Tb,0)}build(t,r,n){const a=new b1e({mutationCache:this,mutationId:++wf(this,Tb)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){Y(this,Su).add(t);const r=u1(t);if(typeof r=="string"){const n=Y(this,_s).get(r);n?n.push(t):Y(this,_s).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Y(this,Su).delete(t)){const r=u1(t);if(typeof r=="string"){const n=Y(this,_s).get(r);if(n)if(n.length>1){const a=n.indexOf(t);a!==-1&&n.splice(a,1)}else n[0]===t&&Y(this,_s).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=u1(t);if(typeof r=="string"){const n=Y(this,_s).get(r),a=n==null?void 0:n.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var n;const r=u1(t);if(typeof r=="string"){const a=(n=Y(this,_s).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){_a.batch(()=>{Y(this,Su).forEach(t=>{this.notify({type:"removed",mutation:t})}),Y(this,Su).clear(),Y(this,_s).clear()})}getAll(){return Array.from(Y(this,Su))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>c5(r,n))}findAll(t={}){return this.getAll().filter(r=>c5(t,r))}notify(t){_a.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return _a.batch(()=>Promise.all(t.map(r=>r.continue().catch(Fi))))}},Su=new WeakMap,_s=new WeakMap,Tb=new WeakMap,M5);function u1(e){var t;return(t=e.options.scope)==null?void 0:t.id}function p5(e){return{onFetch:(t,r)=>{var h,v,y,b,_;const n=t.options,a=(y=(v=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:v.fetchMore)==null?void 0:y.direction,o=((b=t.state.data)==null?void 0:b.pages)||[],i=((_=t.state.data)==null?void 0:_.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const l=async()=>{let w=!1;const S=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},A=m8(t.options,t.fetchOptions),R=async(C,O,T)=>{if(w)return Promise.reject();if(O==null&&C.pages.length)return Promise.resolve(C);const E={client:t.client,queryKey:t.queryKey,pageParam:O,direction:T?"backward":"forward",meta:t.options.meta};S(E);const L=await A(E),{maxPages:j}=t.options,M=T?s1e:i1e;return{pages:M(C.pages,L,j),pageParams:M(C.pageParams,O,j)}};if(a&&o.length){const C=a==="backward",O=C?w1e:h5,T={pages:o,pageParams:i},E=O(n,T);u=await R(T,E,C)}else{const C=e??o.length;do{const O=d===0?i[0]??n.initialPageParam:h5(n,u);if(d>0&&O==null)break;u=await R(u,O),d++}while(d<C)}return u};t.options.persister?t.fetchFn=()=>{var w,S;return(S=(w=t.options).persister)==null?void 0:S.call(w,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=l}}}function h5(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function w1e(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var hn,Gc,Qc,Nm,Bm,Xc,zm,qm,F5,x1e=(F5=class{constructor(e={}){rt(this,hn);rt(this,Gc);rt(this,Qc);rt(this,Nm);rt(this,Bm);rt(this,Xc);rt(this,zm);rt(this,qm);He(this,hn,e.queryCache||new y1e),He(this,Gc,e.mutationCache||new _1e),He(this,Qc,e.defaultOptions||{}),He(this,Nm,new Map),He(this,Bm,new Map),He(this,Xc,0)}mount(){wf(this,Xc)._++,Y(this,Xc)===1&&(He(this,zm,v8.subscribe(async e=>{e&&(await this.resumePausedMutations(),Y(this,hn).onFocus())})),He(this,qm,Zw.subscribe(async e=>{e&&(await this.resumePausedMutations(),Y(this,hn).onOnline())})))}unmount(){var e,t;wf(this,Xc)._--,Y(this,Xc)===0&&((e=Y(this,zm))==null||e.call(this),He(this,zm,void 0),(t=Y(this,qm))==null||t.call(this),He(this,qm,void 0))}isFetching(e){return Y(this,hn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Y(this,Gc).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Y(this,hn).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=Y(this,hn).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(l5(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return Y(this,hn).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=Y(this,hn).get(n.queryHash),o=a==null?void 0:a.state.data,i=Z_e(t,o);if(i!==void 0)return Y(this,hn).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return _a.batch(()=>Y(this,hn).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Y(this,hn).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=Y(this,hn);_a.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=Y(this,hn);return _a.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=_a.batch(()=>Y(this,hn).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then(Fi).catch(Fi)}invalidateQueries(e,t={}){return _a.batch(()=>(Y(this,hn).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=_a.batch(()=>Y(this,hn).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let o=a.fetch(void 0,r);return r.throwOnError||(o=o.catch(Fi)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(Fi)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=Y(this,hn).build(this,t);return r.isStaleByTime(l5(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Fi).catch(Fi)}fetchInfiniteQuery(e){return e.behavior=p5(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Fi).catch(Fi)}ensureInfiniteQueryData(e){return e.behavior=p5(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Zw.isOnline()?Y(this,Gc).resumePausedMutations():Promise.resolve()}getQueryCache(){return Y(this,hn)}getMutationCache(){return Y(this,Gc)}getDefaultOptions(){return Y(this,Qc)}setDefaultOptions(e){He(this,Qc,e)}setQueryDefaults(e,t){Y(this,Nm).set(up(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Y(this,Nm).values()],r={};return t.forEach(n=>{Cb(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){Y(this,Bm).set(up(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Y(this,Bm).values()],r={};return t.forEach(n=>{Cb(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Y(this,Qc).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Oj(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Pj&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Y(this,Qc).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Y(this,hn).clear(),Y(this,Gc).clear()}},hn=new WeakMap,Gc=new WeakMap,Qc=new WeakMap,Nm=new WeakMap,Bm=new WeakMap,Xc=new WeakMap,zm=new WeakMap,qm=new WeakMap,F5),Yc,Jc,jo,Cu,Iu,O1,cA,L5,S1e=(L5=class extends p0{constructor(r,n){super();rt(this,Iu);rt(this,Yc);rt(this,Jc);rt(this,jo);rt(this,Cu);He(this,Yc,r),this.setOptions(n),this.bindMethods(),jt(this,Iu,O1).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=Y(this,Yc).defaultMutationOptions(r),n1e(this.options,n)||Y(this,Yc).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Y(this,jo),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&up(n.mutationKey)!==up(this.options.mutationKey)?this.reset():((a=Y(this,jo))==null?void 0:a.state.status)==="pending"&&Y(this,jo).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=Y(this,jo))==null||r.removeObserver(this)}onMutationUpdate(r){jt(this,Iu,O1).call(this),jt(this,Iu,cA).call(this,r)}getCurrentResult(){return Y(this,Jc)}reset(){var r;(r=Y(this,jo))==null||r.removeObserver(this),He(this,jo,void 0),jt(this,Iu,O1).call(this),jt(this,Iu,cA).call(this)}mutate(r,n){var a;return He(this,Cu,n),(a=Y(this,jo))==null||a.removeObserver(this),He(this,jo,Y(this,Yc).getMutationCache().build(Y(this,Yc),this.options)),Y(this,jo).addObserver(this),Y(this,jo).execute(r)}},Yc=new WeakMap,Jc=new WeakMap,jo=new WeakMap,Cu=new WeakMap,Iu=new WeakSet,O1=function(){var n;const r=((n=Y(this,jo))==null?void 0:n.state)??w8();He(this,Jc,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},cA=function(r){_a.batch(()=>{var n,a,o,i,u,d,l,h;if(Y(this,Cu)&&this.hasListeners()){const v=Y(this,Jc).variables,y=Y(this,Jc).context;(r==null?void 0:r.type)==="success"?((a=(n=Y(this,Cu)).onSuccess)==null||a.call(n,r.data,v,y),(i=(o=Y(this,Cu)).onSettled)==null||i.call(o,r.data,null,v,y)):(r==null?void 0:r.type)==="error"&&((d=(u=Y(this,Cu)).onError)==null||d.call(u,r.error,v,y),(h=(l=Y(this,Cu)).onSettled)==null||h.call(l,void 0,r.error,v,y))}this.listeners.forEach(v=>{v(Y(this,Jc))})})},L5),x8=p.createContext(void 0),C1e=e=>{const t=p.useContext(x8);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},E1e=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),I.jsx(x8.Provider,{value:e,children:t}));function Rj(e,t){const r=C1e(),[n]=p.useState(()=>new S1e(r,e));p.useEffect(()=>{n.setOptions(e)},[n,e]);const a=p.useSyncExternalStore(p.useCallback(i=>n.subscribe(_a.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=p.useCallback((i,u)=>{n.mutate(i,u).catch(Fi)},[n]);if(a.error&&l1e(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}const O1e=({open:e,onClose:t,onSubmit:r})=>{const n=nt(),a=o=>I.jsxs(d0,{...o,children:[I.jsx(fS,{label:"delete_media.action.send",icon:I.jsx(p8,{})}),I.jsx(Ir,{label:"ra.action.cancel",onClick:t,children:I.jsx(f8,{})})]});return I.jsxs(n0,{open:e,onClose:t,children:[I.jsx(o0,{children:n("delete_media.action.send")}),I.jsxs(a0,{children:[I.jsx(rS,{children:n("delete_media.helper.send")}),I.jsxs(f0,{toolbar:I.jsx(a,{}),onSubmit:r,children:[I.jsx(bj,{source:"before_ts",label:"delete_media.fields.before_ts",defaultValue:0,parse:Ej}),I.jsx(pm,{source:"size_gt",label:"delete_media.fields.size_gt",defaultValue:0,min:0,step:1024}),I.jsx(xl,{source:"keep_profiles",label:"delete_media.fields.keep_profiles",defaultValue:!0})]})]})]})},P1e=e=>{const t=fo(),[r,n]=p.useState(!1),a=Ur(),o=co(),{mutate:i,isPending:u}=Rj({mutationFn:h=>o.deleteMedia(h),onSuccess:()=>{a("delete_media.action.send_success"),l()},onError:()=>{a("delete_media.action.send_failure",{type:"error"})}}),d=()=>n(!0),l=()=>n(!1);return I.jsxs(I.Fragment,{children:[I.jsx(Ir,{...e,label:"delete_media.action.send",onClick:d,disabled:u,sx:{color:t.palette.error.main,"&:hover":{backgroundColor:dr(t.palette.error.main,.12),"@media (hover: none)":{backgroundColor:"transparent"}}},children:I.jsx(p8,{})}),I.jsx(O1e,{open:r,onClose:l,onSubmit:i})]})},R1e=e=>{const t=gr(),r=nt(),n=jl(),a=Ur(),[o,{isLoading:i}]=Vb(),[u]=Wb();if(!t)return null;const d=()=>{o("protect_media",{data:t},{onSuccess:()=>{a("resources.protect_media.action.send_success"),n()},onError:()=>a("resources.protect_media.action.send_failure",{type:"error"})})},l=()=>{u("protect_media",{id:t.id},{onSuccess:()=>{a("resources.protect_media.action.send_success"),n()},onError:()=>a("resources.protect_media.action.send_failure",{type:"error"})})};return I.jsxs(I.Fragment,{children:[t.quarantined_by&&I.jsx(Ca,{title:r("resources.protect_media.action.none",{_:"resources.protect_media.action.none"}),children:I.jsx("div",{children:I.jsx(Ir,{...e,disabled:!0,children:I.jsx(rv,{})})})}),t.safe_from_quarantine&&I.jsx(Ca,{title:r("resources.protect_media.action.delete",{_:"resources.protect_media.action.delete"}),arrow:!0,children:I.jsx("div",{children:I.jsx(Ir,{...e,onClick:l,disabled:i,children:I.jsx(l0,{})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&I.jsx(Ca,{title:r("resources.protect_media.action.create",{_:"resources.protect_media.action.create"}),children:I.jsx("div",{children:I.jsx(Ir,{...e,onClick:d,disabled:i,children:I.jsx(J_e,{})})})})]})},k1e=e=>{const t=gr(),r=nt(),n=jl(),a=Ur(),[o,{isLoading:i}]=Vb(),[u]=Wb();if(!t)return null;const d=()=>{o("quarantine_media",{data:t},{onSuccess:()=>{a("resources.quarantine_media.action.send_success"),n()},onError:()=>a("resources.quarantine_media.action.send_failure",{type:"error"})})},l=()=>{u("quarantine_media",{id:t.id,previousData:t},{onSuccess:()=>{a("resources.quarantine_media.action.send_success"),n()},onError:()=>a("resources.quarantine_media.action.send_failure",{type:"error"})})};return I.jsxs(I.Fragment,{children:[t.safe_from_quarantine&&I.jsx(Ca,{title:r("resources.quarantine_media.action.none",{_:"resources.quarantine_media.action.none"}),children:I.jsx("div",{children:I.jsx(Ir,{...e,disabled:!0,children:I.jsx(rv,{})})})}),t.quarantined_by&&I.jsx(Ca,{title:r("resources.quarantine_media.action.delete",{_:"resources.quarantine_media.action.delete"}),children:I.jsx("div",{children:I.jsx(Ir,{...e,onClick:l,disabled:i,children:I.jsx(s5,{color:"error"})})})}),!t.safe_from_quarantine&&!t.quarantined_by&&I.jsx(Ca,{title:r("resources.quarantine_media.action.create",{_:"resources.quarantine_media.action.create"}),children:I.jsx("div",{children:I.jsx(Ir,{...e,onClick:d,disabled:i,children:I.jsx(s5,{})})})})]})},S8=({media_id:e,label:t})=>{const r=nt(),n=d_e(e);return I.jsxs(Mo,{style:{whiteSpace:"pre"},children:[I.jsx(Ca,{title:r("resources.users_media.action.open"),children:I.jsx("span",{children:I.jsx(Ir,{component:ui,to:n,target:"_blank",rel:"noopener",style:{minWidth:0,paddingLeft:0,paddingRight:0},children:I.jsx(Y_e,{})})})}),t]})},T1e=({source:e})=>{var a;const t=vr.getItem("home_server"),r=gr();if(!r)return null;const n=(a=Ab.get(r,e))==null?void 0:a.toString();return n?I.jsx(S8,{media_id:`${t}/${n}`,label:n}):null},A1e=({source:e})=>{var a;const t=gr();if(!t)return null;const r=(a=Ab.get(t,e))==null?void 0:a.toString();if(!r)return null;const n=r.replace("mxc://","");return I.jsx(S8,{media_id:n,label:r})},I1e=()=>I.jsx(hp,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),j1e=e=>{const t=nt();return I.jsx(xj,{...e,actions:I.jsx(M1e,{}),children:I.jsxs(yS,{children:[I.jsxs(Ss,{label:t("synapseadmin.reports.tabs.basic",{smart_count:1}),icon:I.jsx(bv,{}),children:[I.jsx(wa,{source:"received_ts",showTime:!0,options:Ua,sortable:!0}),I.jsx(Tu,{source:"user_id",reference:"users",children:I.jsx(st,{source:"id"})}),I.jsx(Ol,{source:"score"}),I.jsx(st,{source:"reason"}),I.jsx(st,{source:"name"}),I.jsx(st,{source:"canonical_alias",label:"resources.rooms.fields.canonical_alias"}),I.jsx(Tu,{source:"room_id",reference:"rooms",link:"show",label:"resources.rooms.fields.room_id",children:I.jsx(st,{source:"id"})})]}),I.jsxs(Ss,{label:"synapseadmin.reports.tabs.detail",icon:I.jsx(d8,{}),path:"detail",children:[I.jsx(wa,{source:"event_json.origin_server_ts",showTime:!0,options:Ua,sortable:!0}),I.jsx(Tu,{source:"sender",reference:"users",children:I.jsx(st,{source:"id"})}),I.jsx(st,{source:"sender",label:"Sender (raw user ID)"}),I.jsx(st,{source:"event_id"}),I.jsx(st,{source:"event_json.origin"}),I.jsx(st,{source:"event_json.type"}),I.jsx(st,{source:"event_json.content.msgtype"}),I.jsx(st,{source:"event_json.content.body"}),I.jsx(st,{source:"event_json.content.info.mimetype"}),I.jsx(A1e,{source:"event_json.content.url"}),I.jsx(st,{source:"event_json.content.format"}),I.jsx(st,{source:"event_json.content.formatted_body"}),I.jsx(st,{source:"event_json.content.algorithm"}),I.jsx(st,{source:"event_json.content.device_id",label:"resources.devices.fields.device_id"})]})]})})},M1e=()=>{const e=gr();return I.jsx(Qi,{children:I.jsx(_v,{record:e,mutationMode:"pessimistic",confirmTitle:"resources.reports.action.erase.title",confirmContent:"resources.reports.action.erase.content"})})},F1e=e=>I.jsx(vp,{...e,pagination:I.jsx(I1e,{}),sort:{field:"received_ts",order:"DESC"},children:I.jsxs(qa,{rowClick:"show",bulkActionButtons:!1,children:[I.jsx(st,{source:"id",sortable:!1}),I.jsx(wa,{source:"received_ts",showTime:!0,options:Ua,sortable:!0}),I.jsx(st,{sortable:!1,source:"user_id"}),I.jsx(st,{sortable:!1,source:"name"}),I.jsx(st,{sortable:!1,source:"score"})]})}),L1e={name:"reports",icon:X_e,list:F1e,show:j1e},kj=({source:e,...t})=>{var l;const r=gr(t),n=(l=Ab.get(r,e))==null?void 0:l.toString(),{alt:a,classes:o,sizes:i,sx:u,variant:d}=t;return I.jsx(hb,{alt:a,classes:o,sizes:i,src:n,sx:u,variant:d})},$1e=()=>I.jsx(hp,{rowsPerPageOptions:[100,500,1e3,2e3]}),D1e=e=>{const t=nt();return I.jsx(_v,{...e,label:"resources.room_directory.action.erase",redirect:!1,mutationMode:"pessimistic",confirmTitle:t("resources.room_directory.action.title",{smart_count:1}),confirmContent:t("resources.room_directory.action.content",{smart_count:1}),resource:"room_directory",icon:I.jsx(xv,{})})},C8=e=>I.jsx(dS,{...e,label:"resources.room_directory.action.erase",mutationMode:"pessimistic",confirmTitle:"resources.room_directory.action.title",confirmContent:"resources.room_directory.action.content",resource:"room_directory",icon:I.jsx(xv,{})}),N1e=e=>{const{selectedIds:t}=Va(),r=Ur(),n=jl(),a=Kz("rooms"),o=co(),{mutate:i,isPending:u}=Rj({mutationFn:()=>o.createMany("room_directory",{ids:t,data:{}}),onSuccess:()=>{r("resources.room_directory.action.send_success"),a(),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})});return I.jsx(Ir,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:u,children:I.jsx(xv,{})})},B1e=e=>{const t=gr(),r=Ur(),n=jl(),[a,{isLoading:o}]=Vb();if(!t)return;const i=()=>{a("room_directory",{data:{id:t.id}},{onSuccess:()=>{r("resources.room_directory.action.send_success"),n()},onError:()=>r("resources.room_directory.action.send_failure",{type:"error"})})};return I.jsx(Ir,{...e,label:"resources.room_directory.action.create",onClick:i,disabled:o,children:I.jsx(xv,{})})},z1e=()=>I.jsxs(Qi,{children:[I.jsx(E9,{}),I.jsx(c0,{})]}),q1e=()=>I.jsx(vp,{pagination:I.jsx($1e,{}),perPage:100,actions:I.jsx(z1e,{}),children:I.jsxs(C9,{rowClick:e=>"/rooms/"+e+"/show",bulkActionButtons:I.jsx(C8,{}),omit:["room_id","canonical_alias","topic"],children:[I.jsx(kj,{source:"avatar_src",sortable:!1,sx:{height:"40px",width:"40px"},label:"resources.rooms.fields.avatar"}),I.jsx(st,{source:"name",sortable:!1,label:"resources.rooms.fields.name"}),I.jsx(st,{source:"room_id",sortable:!1,label:"resources.rooms.fields.room_id"}),I.jsx(st,{source:"canonical_alias",sortable:!1,label:"resources.rooms.fields.canonical_alias"}),I.jsx(st,{source:"topic",sortable:!1,label:"resources.rooms.fields.topic"}),I.jsx(Ol,{source:"num_joined_members",sortable:!1,label:"resources.rooms.fields.joined_members"}),I.jsx(zi,{source:"world_readable",sortable:!1,label:"resources.room_directory.fields.world_readable"}),I.jsx(zi,{source:"guest_can_join",sortable:!1,label:"resources.room_directory.fields.guest_can_join"})]})}),U1e={name:"room_directory",icon:xv,list:q1e},V1e=ot(I.jsx("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"})),W1e=ot(I.jsx("path",{d:"m4 18 8.5-6L4 6zm9-12v12l8.5-6z"})),E8=ot(I.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),m5=ot(I.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),H1e=ot(I.jsx("path",{d:"M21 21.78 4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H9.66L20 18.34V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5-2.56 0-4.64 1.93-4.94 4.4L8.9 7.24z"})),K1e=()=>I.jsx(hp,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),G1e=()=>{const e=gr(),t=nt();let r="";return e&&(r=e.name!==""?e.name:e.id),I.jsxs("span",{children:[t("resources.rooms.name",1)," ",r]})},Q1e=()=>{const e=gr(),t=e!=null&&e.public?I.jsx(D1e,{}):I.jsx(B1e,{});return I.jsxs(Qi,{children:[t,I.jsx(_v,{mutationMode:"pessimistic",confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content"})]})},X1e=e=>{const t=nt();return I.jsx(xj,{...e,actions:I.jsx(Q1e,{}),title:I.jsx(G1e,{}),children:I.jsxs(yS,{children:[I.jsxs(Ss,{label:"synapseadmin.rooms.tabs.basic",icon:I.jsx(bv,{}),children:[I.jsx(st,{source:"room_id"}),I.jsx(st,{source:"name"}),I.jsx(st,{source:"topic"}),I.jsx(st,{source:"canonical_alias"}),I.jsx(Tu,{source:"creator",reference:"users",children:I.jsx(st,{source:"id"})})]}),I.jsxs(Ss,{label:"synapseadmin.rooms.tabs.detail",icon:I.jsx(d8,{}),path:"detail",children:[I.jsx(st,{source:"joined_members"}),I.jsx(st,{source:"joined_local_members"}),I.jsx(st,{source:"joined_local_devices"}),I.jsx(st,{source:"state_events"}),I.jsx(st,{source:"version"}),I.jsx(st,{source:"encryption",emptyText:t("resources.rooms.enums.unencrypted")})]}),I.jsx(Ss,{label:"synapseadmin.rooms.tabs.members",icon:I.jsx(E8,{}),path:"members",children:I.jsx(rd,{reference:"room_members",target:"room_id",label:!1,children:I.jsxs(qa,{style:{width:"100%"},rowClick:r=>"/users/"+r,bulkActionButtons:!1,children:[I.jsx(st,{source:"id",sortable:!1,label:"resources.users.fields.id"}),I.jsx(Tu,{label:"resources.users.fields.displayname",source:"id",reference:"users",sortable:!1,link:"",children:I.jsx(st,{source:"displayname",sortable:!1})})]})})}),I.jsxs(Ss,{label:"synapseadmin.rooms.tabs.permission",icon:I.jsx(q9,{}),path:"permission",children:[I.jsx(zi,{source:"federatable"}),I.jsx(zi,{source:"public"}),I.jsx(M2,{source:"join_rules",choices:[{id:"public",name:"resources.rooms.enums.join_rules.public"},{id:"knock",name:"resources.rooms.enums.join_rules.knock"},{id:"invite",name:"resources.rooms.enums.join_rules.invite"},{id:"private",name:"resources.rooms.enums.join_rules.private"}]}),I.jsx(M2,{source:"guest_access",choices:[{id:"can_join",name:"resources.rooms.enums.guest_access.can_join"},{id:"forbidden",name:"resources.rooms.enums.guest_access.forbidden"}]}),I.jsx(M2,{source:"history_visibility",choices:[{id:"invited",name:"resources.rooms.enums.history_visibility.invited"},{id:"joined",name:"resources.rooms.enums.history_visibility.joined"},{id:"shared",name:"resources.rooms.enums.history_visibility.shared"},{id:"world_readable",name:"resources.rooms.enums.history_visibility.world_readable"}]})]}),I.jsx(Ss,{label:t("resources.room_state.name",{smart_count:2}),icon:I.jsx(V1e,{}),path:"state",children:I.jsx(rd,{reference:"room_state",target:"room_id",label:!1,children:I.jsxs(qa,{style:{width:"100%"},bulkActionButtons:!1,children:[I.jsx(st,{source:"type",sortable:!1}),I.jsx(wa,{source:"origin_server_ts",showTime:!0,options:Ua,sortable:!1}),I.jsx(st,{source:"content",sortable:!1}),I.jsx(Tu,{source:"sender",reference:"users",sortable:!1,children:I.jsx(st,{source:"id"})})]})})}),I.jsxs(Ss,{label:"resources.forward_extremities.name",icon:I.jsx(W1e,{}),path:"forward_extremities",children:[I.jsx(Mo,{sx:{fontFamily:"Roboto, Helvetica, Arial, sans-serif",margin:"0.5em"},children:t("resources.rooms.helper.forward_extremities")}),I.jsx(rd,{reference:"forward_extremities",target:"room_id",label:!1,children:I.jsxs(qa,{style:{width:"100%"},bulkActionButtons:!1,children:[I.jsx(st,{source:"id",sortable:!1}),I.jsx(wa,{source:"received_ts",showTime:!0,options:Ua,sortable:!1}),I.jsx(Ol,{source:"depth",sortable:!1}),I.jsx(st,{source:"state_group",sortable:!1})]})})]})]})})},Y1e=()=>I.jsxs(I.Fragment,{children:[I.jsx(N1e,{}),I.jsx(C8,{}),I.jsx(dS,{confirmTitle:"resources.rooms.action.erase.title",confirmContent:"resources.rooms.action.erase.content",mutationMode:"pessimistic"})]}),J1e=[I.jsx(gS,{source:"search_term",alwaysOn:!0})],Z1e=()=>I.jsxs(Qi,{children:[I.jsx(E9,{}),I.jsx(c0,{})]}),ewe=e=>{const t=fo();return I.jsx(vp,{...e,pagination:I.jsx(K1e,{}),sort:{field:"name",order:"ASC"},filters:J1e,actions:I.jsx(Z1e,{}),children:I.jsxs(C9,{rowClick:"show",bulkActionButtons:I.jsx(Y1e,{}),omit:["joined_local_members","state_events","version","federatable"],children:[I.jsx(zi,{source:"is_encrypted",sortBy:"encryption",TrueIcon:m5,FalseIcon:H1e,label:I.jsx(m5,{}),sx:{'& [data-testid="true"]':{color:t.palette.success.main},'& [data-testid="false"]':{color:t.palette.error.main}}}),I.jsx(nbe,{source:"name",render:r=>r.name||r.canonical_alias||r.id}),I.jsx(st,{source:"joined_members"}),I.jsx(st,{source:"joined_local_members"}),I.jsx(st,{source:"state_events"}),I.jsx(st,{source:"version"}),I.jsx(zi,{source:"federatable"}),I.jsx(zi,{source:"public"})]})})},twe={name:"rooms",icon:bv,list:ewe,show:X1e},rwe=ot(I.jsx("path",{d:"M10 20h4V4h-4zm-6 0h4v-8H4zM16 9v11h4V9z"})),nwe=()=>{const{isLoading:e,total:t}=Va();return I.jsxs(Qi,{children:[I.jsx(P1e,{}),I.jsx(c0,{disabled:e||t===0})]})},awe=()=>I.jsx(hp,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),owe=[I.jsx(gS,{source:"search_term",alwaysOn:!0})],iwe=e=>I.jsx(vp,{...e,actions:I.jsx(nwe,{}),filters:owe,pagination:I.jsx(awe,{}),sort:{field:"media_length",order:"DESC"},children:I.jsxs(qa,{rowClick:t=>"/users/"+t+"/media",bulkActionButtons:!1,children:[I.jsx(st,{source:"user_id",label:"resources.users.fields.id"}),I.jsx(st,{source:"displayname",label:"resources.users.fields.displayname"}),I.jsx(Ol,{source:"media_count"}),I.jsx(Ol,{source:"media_length"})]})}),swe={name:"user_media_statistics",icon:rwe,list:iwe},lwe=ot(I.jsx("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1z"})),uwe=ot(I.jsx("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"})),cwe=ot(I.jsx("path",{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 9h-4v-7h4z"})),dwe=ot(I.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"})),fwe=ot(I.jsx("path",{d:"M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M7 15l4.5-6 3.5 4.51 2.5-3.01L21 15z"})),pwe=ot(I.jsx("path",{d:"M12 2c-4.97 0-9 4.03-9 9 0 4.17 2.84 7.67 6.69 8.69L12 22l2.31-2.31C18.16 18.67 21 15.17 21 11c0-4.97-4.03-9-9-9m0 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m0 14.3c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22"})),hwe=ot(I.jsx("path",{d:"M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9zm-8 0c0 1.3.84 2.4 2 2.82V23h2v-4.18C6.16 18.4 7 17.3 7 16v-2H1zM21 6V2c0-.55-.45-1-1-1s-1 .45-1 1v4h-2v6h6V6zm-8-4c0-.55-.45-1-1-1s-1 .45-1 1v4H9v6h6V6h-2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2h-6z"})),O8=ot(I.jsx("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-2 12H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"})),P8=({open:e,onClose:t,onSubmit:r})=>{const n=nt(),a=o=>I.jsxs(d0,{...o,children:[I.jsx(fS,{label:"resources.servernotices.action.send",disabled:o.pristine}),I.jsx(Ir,{label:"ra.action.cancel",onClick:t,children:I.jsx(f8,{})})]});return I.jsxs(n0,{open:e,onClose:t,children:[I.jsx(o0,{children:n("resources.servernotices.action.send")}),I.jsxs(a0,{children:[I.jsx(rS,{children:n("resources.servernotices.helper.send")}),I.jsx(f0,{toolbar:I.jsx(a,{}),onSubmit:r,children:I.jsx(oa,{source:"body",label:"resources.servernotices.fields.body",multiline:!0,rows:"4",resettable:!0,validate:si()})})]})]})},mwe=()=>{const e=gr(),[t,r]=p.useState(!1),n=Ur(),[a,{isLoading:o}]=Vb(),i=()=>r(!0),u=()=>r(!1);if(!e)return;const d=l=>{a("servernotices",{data:{id:e.id,...l}},{onSuccess:()=>{n("resources.servernotices.action.send_success"),u()},onError:()=>n("resources.servernotices.action.send_failure",{type:"error"})})};return I.jsxs(I.Fragment,{children:[I.jsx(Ir,{label:"resources.servernotices.send",onClick:i,disabled:o,children:I.jsx(O8,{})}),I.jsx(P8,{open:t,onClose:u,onSubmit:d})]})},vwe=()=>{const{selectedIds:e}=Va(),[t,r]=p.useState(!1),n=()=>r(!0),a=()=>r(!1),o=Ur(),i=Kz("users"),u=co(),{mutate:d,isPending:l}=Rj({mutationFn:h=>u.createMany("servernotices",{ids:e,data:h}),onSuccess:()=>{o("resources.servernotices.action.send_success"),i(),a()},onError:()=>o("resources.servernotices.action.send_failure",{type:"error"})});return I.jsxs(I.Fragment,{children:[I.jsx(Ir,{label:"resources.servernotices.send",onClick:n,disabled:l,children:I.jsx(O8,{})}),I.jsx(P8,{open:t,onClose:a,onSubmit:d})]})},gwe=e=>{const t=gr();return t?I.jsx(a9,{...e,label:"ra.action.remove",confirmTitle:"resources.devices.action.erase.title",confirmContent:"resources.devices.action.erase.content",mutationMode:"pessimistic",redirect:!1,translateOptions:{id:t.id,name:t.display_name?t.display_name:t.id}}):null},R8=[{id:"email",name:"resources.users.email"},{id:"msisdn",name:"resources.users.msisdn"}],k8=[{id:"bot",name:"bot"},{id:"support",name:"support"}],ywe=()=>{const{isLoading:e,total:t}=Va();return I.jsxs(Qi,{children:[I.jsx(ij,{}),I.jsx(c0,{disabled:e||t===0,maxResults:1e4}),I.jsx(Ir,{component:ui,to:"/import_users",label:"CSV Import",children:I.jsx(n9,{sx:{transform:"rotate(180deg)",fontSize:"20px"}})})]})},T8=()=>I.jsx(hp,{rowsPerPageOptions:[10,25,50,100,500,1e3]}),bwe=[I.jsx(gS,{source:"name",alwaysOn:!0}),I.jsx(xl,{source:"guests",alwaysOn:!0}),I.jsx(xl,{label:"resources.users.fields.show_deactivated",source:"deactivated",alwaysOn:!0}),I.jsx(xl,{label:"resources.users.fields.show_locked",source:"locked",alwaysOn:!0})],_we=()=>I.jsxs(I.Fragment,{children:[I.jsx(vwe,{}),I.jsx(dS,{label:"resources.users.action.erase",confirmTitle:"resources.users.helper.erase",mutationMode:"pessimistic"})]}),wwe=e=>I.jsx(vp,{...e,filters:bwe,filterDefaultValues:{guests:!0,deactivated:!1,locked:!1},sort:{field:"name",order:"ASC"},actions:I.jsx(ywe,{}),pagination:I.jsx(T8,{}),children:I.jsxs(qa,{rowClick:(t,r)=>`/${r}/${t}`,bulkActionButtons:I.jsx(_we,{}),children:[I.jsx(kj,{source:"avatar_src",sx:{height:"40px",width:"40px"},sortBy:"avatar_url"}),I.jsx(st,{source:"id",sortBy:"name"}),I.jsx(st,{source:"displayname"}),I.jsx(zi,{source:"is_guest"}),I.jsx(zi,{source:"admin"}),I.jsx(zi,{source:"deactivated"}),I.jsx(zi,{source:"locked"}),I.jsx(zi,{source:"erased",sortable:!1}),I.jsx(wa,{source:"creation_ts",label:"resources.users.fields.creation_ts_ms",showTime:!0,options:Ua})]})}),xwe=[si(),H1(253),pI(/^[a-z0-9._=\-/]+$/,"synapseadmin.users.invalid_user_id")],Swe=[si(),H1(255)],Cwe=()=>{const e=gr(),t=nt();return I.jsxs(Qi,{children:[!(e!=null&&e.deactivated)&&I.jsx(mwe,{}),I.jsx(_v,{label:"resources.users.action.erase",confirmTitle:t("resources.users.helper.erase",{smart_count:1}),mutationMode:"pessimistic"})]})},Ewe=e=>I.jsx(H9,{...e,redirect:(t,r)=>`${t}/${r}`,children:I.jsxs(f0,{children:[I.jsx(oa,{source:"id",autoComplete:"off",validate:xwe}),I.jsx(oa,{source:"displayname",validate:H1(256)}),I.jsx(vS,{source:"password",autoComplete:"new-password",validate:H1(512)}),I.jsx(Qw,{source:"user_type",choices:k8,translateChoice:!1,resettable:!0}),I.jsx(xl,{source:"admin"}),I.jsx(Ew,{source:"threepids",children:I.jsxs(Rw,{disableReordering:!0,children:[I.jsx(Qw,{source:"medium",choices:R8,validate:si()}),I.jsx(oa,{source:"address",validate:Swe})]})}),I.jsx(Ew,{source:"external_ids",label:"synapseadmin.users.tabs.sso",children:I.jsxs(Rw,{disableReordering:!0,children:[I.jsx(oa,{source:"auth_provider",validate:si()}),I.jsx(oa,{source:"external_id",label:"resources.users.fields.id",validate:si()})]})})]})}),Owe=()=>{const e=gr(),t=nt();return I.jsxs("span",{children:[t("resources.users.name",{smart_count:1})," ",e?`"${e.displayname}"`:""]})},Pwe=e=>{const t=nt();return I.jsx(K9,{...e,title:I.jsx(Owe,{}),actions:I.jsx(Cwe,{}),children:I.jsxs(J9,{children:[I.jsxs(ll,{label:t("resources.users.name",{smart_count:1}),icon:I.jsx(pwe,{}),children:[I.jsx(kj,{source:"avatar_src",sortable:!1,sx:{height:"120px",width:"120px",float:"right"}}),I.jsx(oa,{source:"id",disabled:!0}),I.jsx(oa,{source:"displayname"}),I.jsx(vS,{source:"password",autoComplete:"new-password",helperText:"resources.users.helper.password"}),I.jsx(Qw,{source:"user_type",choices:k8,translateChoice:!1,resettable:!0}),I.jsx(xl,{source:"admin"}),I.jsx(xl,{source:"locked"}),I.jsx(xl,{source:"deactivated",helperText:"resources.users.helper.deactivate"}),I.jsx(xl,{source:"erased",disabled:!0}),I.jsx(wa,{source:"creation_ts_ms",showTime:!0,options:Ua}),I.jsx(st,{source:"consent_version"})]}),I.jsx(ll,{label:"resources.users.threepid",icon:I.jsx(uwe,{}),path:"threepid",children:I.jsx(Ew,{source:"threepids",children:I.jsxs(Rw,{disableReordering:!0,children:[I.jsx(Qw,{source:"medium",choices:R8}),I.jsx(oa,{source:"address"})]})})}),I.jsx(ll,{label:"synapseadmin.users.tabs.sso",icon:I.jsx(lwe,{}),path:"sso",children:I.jsx(Ew,{source:"external_ids",label:!1,children:I.jsxs(Rw,{disableReordering:!0,children:[I.jsx(oa,{source:"auth_provider",validate:si()}),I.jsx(oa,{source:"external_id",label:"resources.users.fields.id",validate:si()})]})})}),I.jsx(ll,{label:t("resources.devices.name",{smart_count:2}),icon:I.jsx(cwe,{}),path:"devices",children:I.jsx(rd,{reference:"devices",target:"user_id",label:!1,children:I.jsxs(qa,{style:{width:"100%"},children:[I.jsx(st,{source:"device_id",sortable:!1}),I.jsx(st,{source:"display_name",sortable:!1}),I.jsx(st,{source:"last_seen_ip",sortable:!1}),I.jsx(wa,{source:"last_seen_ts",showTime:!0,options:Ua,sortable:!1}),I.jsx(gwe,{})]})})}),I.jsx(ll,{label:"resources.connections.name",icon:I.jsx(hwe,{}),path:"connections",children:I.jsx(Tu,{reference:"connections",source:"id",label:!1,link:!1,children:I.jsx(Gye,{source:"devices[].sessions[0].connections",label:"resources.connections.name",children:I.jsxs(qa,{style:{width:"100%"},bulkActionButtons:!1,children:[I.jsx(st,{source:"ip",sortable:!1}),I.jsx(wa,{source:"last_seen",showTime:!0,options:Ua,sortable:!1}),I.jsx(st,{source:"user_agent",sortable:!1,style:{width:"100%"}})]})})})}),I.jsx(ll,{label:t("resources.users_media.name",{smart_count:2}),icon:I.jsx(fwe,{}),path:"media",children:I.jsx(rd,{reference:"users_media",target:"user_id",label:!1,pagination:I.jsx(T8,{}),perPage:50,sort:{field:"created_ts",order:"DESC"},children:I.jsxs(qa,{style:{width:"100%"},children:[I.jsx(T1e,{source:"media_id"}),I.jsx(wa,{source:"created_ts",showTime:!0,options:Ua}),I.jsx(wa,{source:"last_access_ts",showTime:!0,options:Ua}),I.jsx(Ol,{source:"media_length"}),I.jsx(st,{source:"media_type"}),I.jsx(st,{source:"upload_name"}),I.jsx(st,{source:"quarantined_by"}),I.jsx(k1e,{label:"resources.quarantine_media.action.name"}),I.jsx(R1e,{label:"resources.users_media.fields.safe_from_quarantine"}),I.jsx(_v,{mutationMode:"pessimistic",redirect:!1})]})})}),I.jsx(ll,{label:t("resources.rooms.name",{smart_count:2}),icon:I.jsx(bv,{}),path:"rooms",children:I.jsx(rd,{reference:"joined_rooms",target:"user_id",label:!1,children:I.jsxs(qa,{style:{width:"100%"},rowClick:r=>"/rooms/"+r+"/show",bulkActionButtons:!1,children:[I.jsx(st,{source:"id",sortable:!1,label:"resources.rooms.fields.room_id"}),I.jsx(Tu,{label:"resources.rooms.fields.name",source:"id",reference:"rooms",sortable:!1,link:"",children:I.jsx(st,{source:"name",sortable:!1})})]})})}),I.jsx(ll,{label:t("resources.pushers.name",{smart_count:2}),icon:I.jsx(dwe,{}),path:"pushers",children:I.jsx(rd,{reference:"pushers",target:"user_id",label:!1,children:I.jsxs(qa,{style:{width:"100%"},bulkActionButtons:!1,children:[I.jsx(st,{source:"kind",sortable:!1}),I.jsx(st,{source:"app_display_name",sortable:!1}),I.jsx(st,{source:"app_id",sortable:!1}),I.jsx(st,{source:"data.url",sortable:!1}),I.jsx(st,{source:"device_display_name",sortable:!1}),I.jsx(st,{source:"lang",sortable:!1}),I.jsx(st,{source:"profile_tag",sortable:!1}),I.jsx(st,{source:"pushkey",sortable:!1})]})})})]})})},Rwe={name:"users",icon:E8,list:wwe,edit:Pwe,create:Ewe},kwe={login:async({base_url:e,username:t,password:r,loginToken:n})=>{console.log("login ");const a={method:"POST",body:JSON.stringify(Object.assign({device_id:vr.getItem("device_id"),initial_device_display_name:"Synapse Admin"},n?{type:"m.login.token",token:n}:{type:"m.login.password",user:t,password:r,identifier:{type:"m.id.user",user:t}}))};e=e.replace(/\/+$/g,""),vr.setItem("base_url",e);const i=window.decodeURIComponent(e)+"/_matrix/client/r0/login",{json:u}=await op(i,a);vr.setItem("home_server",u.home_server),vr.setItem("user_id",u.user_id),vr.setItem("access_token",u.access_token),vr.setItem("device_id",u.device_id)},logout:async()=>{console.log("logout");const e=vr.getItem("base_url")+"/_matrix/client/r0/logout",t=vr.getItem("access_token"),r={method:"POST",user:{authenticated:!0,token:`Bearer ${t}`}};typeof t=="string"&&(await op(e,r),vr.removeItem("access_token"))},checkError:({status:e})=>(console.log("checkError "+e),e===401||e===403?Promise.reject():Promise.resolve()),checkAuth:()=>{const e=vr.getItem("access_token");return console.log("checkAuth "+e),typeof e=="string"?Promise.resolve():Promise.reject()},getPermissions:()=>Promise.resolve()},ti=(e,t={})=>{const r=vr.getItem("access_token");return console.log("httpClient "+e),r!=null&&(t.user={authenticated:!0,token:`Bearer ${r}`}),op(e,t)},v5=e=>{const t=vr.getItem("base_url"),n=/^mxc:\/\/([^/]+)\/(\w+)/.exec(e);if(console.log("mxcClient "+n),n==null)return null;const a=n[1],o=n[2];return`${t}/_matrix/media/r0/thumbnail/${a}/${o}?width=24&height=24&method=scale`},An={users:{path:"/_synapse/admin/v2/users",map:e=>({...e,id:e.name,avatar_src:e.avatar_url?v5(e.avatar_url):void 0,is_guest:!!e.is_guest,admin:!!e.admin,deactivated:!!e.deactivated,creation_ts_ms:e.creation_ts*1e3}),data:"users",total:e=>e.total,create:e=>({endpoint:`/_synapse/admin/v2/users/@${encodeURIComponent(e.id)}:${vr.getItem("home_server")}`,body:e,method:"PUT"}),delete:e=>({endpoint:`/_synapse/admin/v1/deactivate/${encodeURIComponent(e.id)}`,body:{erase:!0},method:"POST"})},rooms:{path:"/_synapse/admin/v1/rooms",map:e=>({...e,id:e.room_id,alias:e.canonical_alias,members:e.joined_members,is_encrypted:!!e.encryption,federatable:!!e.federatable,public:!!e.public}),data:"rooms",total:e=>e.total_rooms,delete:e=>({endpoint:`/_synapse/admin/v2/rooms/${e.id}`,body:{block:!1}})},reports:{path:"/_synapse/admin/v1/event_reports",map:e=>({...e}),data:"event_reports",total:e=>e.total},devices:{map:e=>({...e,id:e.device_id}),data:"devices",total:e=>e.total,reference:e=>({endpoint:`/_synapse/admin/v2/users/${encodeURIComponent(e)}/devices`}),delete:e=>({endpoint:`/_synapse/admin/v2/users/${encodeURIComponent(e.previousData.user_id)}/devices/${e.id}`})},connections:{path:"/_synapse/admin/v1/whois",map:e=>({...e,id:e.user_id}),data:"connections"},room_members:{map:e=>({id:e}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/members`}),data:"members",total:e=>e.total},room_state:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/state`}),data:"state",total:e=>e.state.length},pushers:{map:e=>({...e,id:e.pushkey}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/pushers`}),data:"pushers",total:e=>e.total},joined_rooms:{map:e=>({id:e}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/joined_rooms`}),data:"joined_rooms",total:e=>e.total},users_media:{map:e=>({...e,id:e.media_id}),reference:e=>({endpoint:`/_synapse/admin/v1/users/${encodeURIComponent(e)}/media`}),data:"media",total:e=>e.total,delete:e=>({endpoint:`/_synapse/admin/v1/media/${vr.getItem("home_server")}/${e.id}`})},protect_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/protect/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unprotect/${e.id}`,method:"POST"})},quarantine_media:{map:e=>({id:e.media_id}),create:e=>({endpoint:`/_synapse/admin/v1/media/quarantine/${vr.getItem("home_server")}/${e.media_id}`,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/media/unquarantine/${vr.getItem("home_server")}/${e.id}`,method:"POST"})},servernotices:{map:e=>({id:e.event_id}),create:e=>({endpoint:"/_synapse/admin/v1/send_server_notice",body:{user_id:e.id,content:{msgtype:"m.text",body:e.body}},method:"POST"})},user_media_statistics:{path:"/_synapse/admin/v1/statistics/users/media",map:e=>({...e,id:e.user_id}),data:"users",total:e=>e.total},forward_extremities:{map:e=>({...e,id:e.event_id}),reference:e=>({endpoint:`/_synapse/admin/v1/rooms/${e}/forward_extremities`}),data:"results",total:e=>e.count,delete:e=>({endpoint:`/_synapse/admin/v1/rooms/${e.id}/forward_extremities`})},room_directory:{path:"/_matrix/client/r0/publicRooms",map:e=>({...e,id:e.room_id,public:!!e.public,guest_access:!!e.guest_access,avatar_src:e.avatar_url?v5(e.avatar_url):void 0}),data:"chunk",total:e=>e.total_room_count_estimate,create:e=>({endpoint:`/_matrix/client/r0/directory/list/room/${e.id}`,body:{visibility:"public"},method:"PUT"}),delete:e=>({endpoint:`/_matrix/client/r0/directory/list/room/${e.id}`,body:{visibility:"private"},method:"PUT"})},destinations:{path:"/_synapse/admin/v1/federation/destinations",map:e=>({...e,id:e.destination}),data:"destinations",total:e=>e.total,delete:e=>({endpoint:`/_synapse/admin/v1/federation/destinations/${e.id}/reset_connection`,method:"POST"})},destination_rooms:{map:e=>({...e,id:e.room_id}),reference:e=>({endpoint:`/_synapse/admin/v1/federation/destinations/${e}/rooms`}),data:"rooms",total:e=>e.total},registration_tokens:{path:"/_synapse/admin/v1/registration_tokens",map:e=>({...e,id:e.token}),data:"registration_tokens",total:e=>e.registration_tokens.length,create:e=>({endpoint:"/_synapse/admin/v1/registration_tokens/new",body:e,method:"POST"}),delete:e=>({endpoint:`/_synapse/admin/v1/registration_tokens/${e.id}`})}};function ay(e,t){if(!(t===null&&e!=="user_type"))return t}function g5(e){return e==="DESC"?"b":"f"}const Twe={getList:async(e,t)=>{console.log("getList "+e);const{user_id:r,name:n,guests:a,deactivated:o,locked:i,search_term:u,destination:d,valid:l}=t.filter,{page:h,perPage:v}=t.pagination,{field:y,order:b}=t.sort,_=(h-1)*v,w={from:_,limit:v,user_id:r,search_term:u,name:n,destination:d,guests:a,deactivated:o,locked:i,valid:l,order_by:y,dir:g5(b)},S=vr.getItem("base_url");if(!S||!(e in An))throw Error("Homeserver not set");const A=An[e],C=`${S+A.path}?${Um.stringify(w)}`,{json:O}=await ti(C);return{data:O[A.data].map(A.map),total:A.total(O,_,v)}},getOne:async(e,t)=>{console.log("getOne "+e);const r=vr.getItem("base_url");if(!r||!(e in An))throw Error("Homeserver not set");const n=An[e],a=r+n.path,{json:o}=await ti(`${a}/${encodeURIComponent(t.id)}`);return{data:n.map(o)}},getMany:async(e,t)=>{console.log("getMany "+e);const r=vr.getItem("base_url");if(!r||!(e in An))throw Error("Homerserver not set");const n=An[e],a=r+n.path,o=await Promise.all(t.ids.map(i=>ti(`${a}/${encodeURIComponent(i)}`)));return{data:o.map(({json:i})=>n.map(i)),total:o.length}},getManyReference:async(e,t)=>{console.log("getManyReference "+e);const{page:r,perPage:n}=t.pagination,{field:a,order:o}=t.sort,i=(r-1)*n,u={from:i,limit:n,order_by:a,dir:g5(o)},d=vr.getItem("base_url");if(!d||!(e in An))throw Error("Homeserver not set");const l=An[e],h=l.reference(t.id),v=`${d}${h.endpoint}?${Um.stringify(u)}`,{json:y}=await ti(v);return{data:y[l.data].map(l.map),total:l.total(y,i,n)}},update:async(e,t)=>{console.log("update "+e);const r=vr.getItem("base_url");if(!r||!(e in An))throw Error("Homeserver not set");const n=An[e],a=r+n.path,{json:o}=await ti(`${a}/${encodeURIComponent(t.id)}`,{method:"PUT",body:JSON.stringify(t.data,ay)});return{data:n.map(o)}},updateMany:async(e,t)=>{console.log("updateMany "+e);const r=vr.getItem("base_url");if(!r||!(e in An))throw Error("Homeserver not set");const n=An[e],a=r+n.path;return{data:(await Promise.all(t.ids.map(i=>ti(`${a}/${encodeURIComponent(i)}`),{method:"PUT",body:JSON.stringify(t.data,ay)}))).map(({json:i})=>i)}},create:async(e,t)=>{console.log("create "+e);const r=vr.getItem("base_url");if(!r||!(e in An))throw Error("Homeserver not set");const n=An[e];if(!("create"in n))return Promise.reject();const a=n.create(t.data),o=r+a.endpoint,{json:i}=await ti(o,{method:a.method,body:JSON.stringify(a.body,ay)});return{data:n.map(i)}},createMany:async(e,t)=>{console.log("createMany "+e);const r=vr.getItem("base_url");if(!r||!(e in An))throw Error("Homeserver not set");const n=An[e];if(!("create"in n))throw Error(`Create ${e} is not allowed`);return{data:(await Promise.all(t.ids.map(o=>{t.data.id=o;const i=n.create(t.data),u=r+i.endpoint;return ti(u,{method:i.method,body:JSON.stringify(i.body,ay)})}))).map(({json:o})=>o)}},delete:async(e,t)=>{console.log("delete "+e);const r=vr.getItem("base_url");if(!r||!(e in An))throw Error("Homeserver not set");const n=An[e];if("delete"in n){const a=n.delete(t),o=r+a.endpoint,{json:i}=await ti(o,{method:"method"in a?a.method:"DELETE",body:"body"in a?JSON.stringify(a.body):null});return{data:i}}else{const a=r+n.path,{json:o}=await ti(`${a}/${t.id}`,{method:"DELETE",body:JSON.stringify(t.previousData,ay)});return{data:o}}},deleteMany:async(e,t)=>{console.log("deleteMany "+e);const r=vr.getItem("base_url");if(!r||!(e in An))throw Error("Homeserver not set");const n=An[e];if("delete"in n)return{data:(await Promise.all(t.ids.map(o=>{const i=n.delete({...t,id:o}),u=r+i.endpoint;return ti(u,{method:"method"in i?i.method:"DELETE",body:"body"in i?JSON.stringify(i.body):null})}))).map(({json:o})=>o)};{const a=r+n.path;return{data:(await Promise.all(t.ids.map(i=>ti(`${a}/${i}`,{method:"DELETE"})))).map(({json:i})=>i)}}},deleteMedia:async({before_ts:e,size_gt:t=0,keep_profiles:r=!0})=>{const a=`/_synapse/admin/v1/media/${vr.getItem("home_server")}/delete?before_ts=${e}&size_gt=${t}&keep_profiles=${r}`,i=vr.getItem("base_url")+a,{json:u}=await ti(i,{method:"POST"});return u}},c1={de:g_e,en:y_e,fr:__e,it:C_e,ru:E_e,zh:R_e},Awe=G5(e=>c1[e]?Ab.merge({},c1.en,c1[e]):c1.en,aX(),[{locale:"en",name:"English"},{locale:"de",name:"Deutsch"},{locale:"fr",name:"Français"},{locale:"it",name:"Italiano"},{locale:"fa",name:"Persian(فارسی)"},{locale:"ru",name:"Russian(Русский)"},{locale:"zh",name:"简体中文"}]),Iwe=new x1e,jwe=()=>I.jsx(E1e,{client:Iwe,children:I.jsxs(r_e,{disableTelemetry:!0,requireAuth:!0,loginPage:A_e,authProvider:kwe,dataProvider:Twe,i18nProvider:Awe,children:[I.jsx($6,{children:I.jsx(Mn,{path:"/import_users",element:I.jsx(m_e,{})})}),I.jsx(Kn,{...Rwe}),I.jsx(Kn,{...twe}),I.jsx(Kn,{...swe}),I.jsx(Kn,{...L1e}),I.jsx(Kn,{...U1e}),I.jsx(Kn,{...z_e}),I.jsx(Kn,{...Q_e}),I.jsx(Kn,{name:"connections"}),I.jsx(Kn,{name:"devices"}),I.jsx(Kn,{name:"room_members"}),I.jsx(Kn,{name:"users_media"}),I.jsx(Kn,{name:"joined_rooms"}),I.jsx(Kn,{name:"pushers"}),I.jsx(Kn,{name:"servernotices"}),I.jsx(Kn,{name:"forward_extremities"}),I.jsx(Kn,{name:"room_state"}),I.jsx(Kn,{name:"destination_rooms"})]})}),Mwe="/synapse-admin",Fwe="config.json",Lwe=`${Mwe.replace(/\/$/,"")}/${Fwe}`;fetch(Lwe).then(e=>e.json()).then(e=>cH.createRoot(document.getElementById("root")).render(I.jsx(Qe.StrictMode,{children:I.jsx(s8.Provider,{value:e,children:I.jsx(jwe,{})})})));